@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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export var CacheType;
|
|
2
|
+
(function (CacheType) {
|
|
3
|
+
CacheType["DID_DOCUMENT"] = "DID_DOCUMENT";
|
|
4
|
+
CacheType["JSON_LD_CONTEXT"] = "JSON_LD_CONTEXT";
|
|
5
|
+
CacheType["STATUS_LIST_CREDENTIAL"] = "STATUS_LIST_CREDENTIAL";
|
|
6
|
+
CacheType["VCT_METADATA"] = "VCT_METADATA";
|
|
7
|
+
CacheType["JSON_SCHEMA"] = "JSON_SCHEMA";
|
|
8
|
+
CacheType["TRUST_LIST"] = "TRUST_LIST";
|
|
9
|
+
})(CacheType || (CacheType = {}));
|
package/dist/src/config.d.ts
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
|
+
export declare enum KeyAlgorithmFeatureEnum {
|
|
2
|
+
GENERATE_CSR = "GENERATE_CSR"
|
|
3
|
+
}
|
|
4
|
+
export interface KeyAlgorithmCapabilities {
|
|
5
|
+
features: KeyAlgorithmFeatureEnum[];
|
|
6
|
+
}
|
|
1
7
|
export declare enum KeyStorageSecurityEnum {
|
|
2
8
|
HARDWARE = "HARDWARE",
|
|
3
9
|
SOFTWARE = "SOFTWARE"
|
|
4
10
|
}
|
|
11
|
+
export declare enum KeyStorageFeatureEnum {
|
|
12
|
+
EXPORTABLE = "EXPORTABLE"
|
|
13
|
+
}
|
|
5
14
|
export interface KeyStorageCapabilities {
|
|
6
15
|
algorithms: string[];
|
|
16
|
+
features: KeyStorageFeatureEnum[];
|
|
7
17
|
security: KeyStorageSecurityEnum[];
|
|
8
18
|
}
|
|
19
|
+
export declare enum DidOperationEnum {
|
|
20
|
+
RESOLVE = "RESOLVE",
|
|
21
|
+
CREATE = "CREATE",
|
|
22
|
+
DEACTIVATE = "DEACTIVATE"
|
|
23
|
+
}
|
|
9
24
|
export interface DidCapabilities {
|
|
10
|
-
operations:
|
|
25
|
+
operations: DidOperationEnum[];
|
|
26
|
+
keyAlgorithms: string[];
|
|
11
27
|
}
|
|
12
28
|
export declare enum FormatFeatureEnum {
|
|
13
29
|
SelectiveDisclosure = "SELECTIVE_DISCLOSURE",
|
|
@@ -27,13 +43,21 @@ export interface FormatCapabilities {
|
|
|
27
43
|
revocationMethods: string[];
|
|
28
44
|
signingKeyAlgorithms: string[];
|
|
29
45
|
verificationKeyAlgorithms: string[];
|
|
46
|
+
verificationKeyStorages: string[];
|
|
30
47
|
datatypes: Array<DataTypeEnum | string>;
|
|
31
48
|
allowedSchemaIds: string[];
|
|
32
49
|
forbiddenClaimNames: string[];
|
|
33
50
|
}
|
|
51
|
+
export declare enum RevocationOperationEnum {
|
|
52
|
+
REVOKE = "REVOKE",
|
|
53
|
+
SUSPEND = "SUSPEND"
|
|
54
|
+
}
|
|
55
|
+
export interface RevocationCapabilities {
|
|
56
|
+
operations: RevocationOperationEnum[];
|
|
57
|
+
}
|
|
34
58
|
export interface ConfigEntity<Capabilities> {
|
|
35
|
-
|
|
36
|
-
capabilities
|
|
59
|
+
enabled?: boolean;
|
|
60
|
+
capabilities: Capabilities;
|
|
37
61
|
display: string;
|
|
38
62
|
order: number;
|
|
39
63
|
}
|
|
@@ -86,15 +110,24 @@ export type DataTypeParams = {
|
|
|
86
110
|
type: DataTypeEnum.Object;
|
|
87
111
|
params?: undefined;
|
|
88
112
|
};
|
|
113
|
+
export interface IssuanceProtocolCapabilities {
|
|
114
|
+
didMethods: string[];
|
|
115
|
+
}
|
|
116
|
+
export interface VerificationProtocolCapabilities {
|
|
117
|
+
didMethods: string[];
|
|
118
|
+
supportedTransports: string[];
|
|
119
|
+
}
|
|
89
120
|
export interface Config {
|
|
90
121
|
format: ConfigEntities<FormatCapabilities>;
|
|
91
|
-
|
|
122
|
+
issuanceProtocol: ConfigEntities<IssuanceProtocolCapabilities>;
|
|
123
|
+
verificationProtocol: ConfigEntities<VerificationProtocolCapabilities>;
|
|
92
124
|
transport: ConfigEntities;
|
|
93
|
-
revocation: ConfigEntities
|
|
125
|
+
revocation: ConfigEntities<RevocationCapabilities>;
|
|
94
126
|
did: ConfigEntities<DidCapabilities>;
|
|
95
127
|
datatype: ConfigEntities<undefined, DataTypeParams>;
|
|
96
|
-
keyAlgorithm: ConfigEntities
|
|
128
|
+
keyAlgorithm: ConfigEntities<KeyAlgorithmCapabilities, {}>;
|
|
97
129
|
keyStorage: ConfigEntities<KeyStorageCapabilities>;
|
|
130
|
+
trustManagement: ConfigEntities;
|
|
98
131
|
cacheEntities: ConfigEntities;
|
|
99
132
|
}
|
|
100
133
|
export {};
|
package/dist/src/config.js
CHANGED
|
@@ -1,8 +1,22 @@
|
|
|
1
|
+
export var KeyAlgorithmFeatureEnum;
|
|
2
|
+
(function (KeyAlgorithmFeatureEnum) {
|
|
3
|
+
KeyAlgorithmFeatureEnum["GENERATE_CSR"] = "GENERATE_CSR";
|
|
4
|
+
})(KeyAlgorithmFeatureEnum || (KeyAlgorithmFeatureEnum = {}));
|
|
1
5
|
export var KeyStorageSecurityEnum;
|
|
2
6
|
(function (KeyStorageSecurityEnum) {
|
|
3
7
|
KeyStorageSecurityEnum["HARDWARE"] = "HARDWARE";
|
|
4
8
|
KeyStorageSecurityEnum["SOFTWARE"] = "SOFTWARE";
|
|
5
9
|
})(KeyStorageSecurityEnum || (KeyStorageSecurityEnum = {}));
|
|
10
|
+
export var KeyStorageFeatureEnum;
|
|
11
|
+
(function (KeyStorageFeatureEnum) {
|
|
12
|
+
KeyStorageFeatureEnum["EXPORTABLE"] = "EXPORTABLE";
|
|
13
|
+
})(KeyStorageFeatureEnum || (KeyStorageFeatureEnum = {}));
|
|
14
|
+
export var DidOperationEnum;
|
|
15
|
+
(function (DidOperationEnum) {
|
|
16
|
+
DidOperationEnum["RESOLVE"] = "RESOLVE";
|
|
17
|
+
DidOperationEnum["CREATE"] = "CREATE";
|
|
18
|
+
DidOperationEnum["DEACTIVATE"] = "DEACTIVATE";
|
|
19
|
+
})(DidOperationEnum || (DidOperationEnum = {}));
|
|
6
20
|
export var FormatFeatureEnum;
|
|
7
21
|
(function (FormatFeatureEnum) {
|
|
8
22
|
FormatFeatureEnum["SelectiveDisclosure"] = "SELECTIVE_DISCLOSURE";
|
|
@@ -14,6 +28,11 @@ export var FormatSelectiveDisclosureEnum;
|
|
|
14
28
|
FormatSelectiveDisclosureEnum["AnyLevel"] = "ANY_LEVEL";
|
|
15
29
|
FormatSelectiveDisclosureEnum["SecondLevel"] = "SECOND_LEVEL";
|
|
16
30
|
})(FormatSelectiveDisclosureEnum || (FormatSelectiveDisclosureEnum = {}));
|
|
31
|
+
export var RevocationOperationEnum;
|
|
32
|
+
(function (RevocationOperationEnum) {
|
|
33
|
+
RevocationOperationEnum["REVOKE"] = "REVOKE";
|
|
34
|
+
RevocationOperationEnum["SUSPEND"] = "SUSPEND";
|
|
35
|
+
})(RevocationOperationEnum || (RevocationOperationEnum = {}));
|
|
17
36
|
export var DataTypeEnum;
|
|
18
37
|
(function (DataTypeEnum) {
|
|
19
38
|
DataTypeEnum["String"] = "STRING";
|
package/dist/src/core.d.ts
CHANGED
|
@@ -4,12 +4,15 @@ import { CredentialDetail, CredentialListItem, CredentialListQuery, CredentialRe
|
|
|
4
4
|
import { CredentialSchema, CredentialSchemaDetail, CredentialSchemaListQuery, ImportCredentialSchemaRequest, ShareCredentialSchemaResponse } from "./credentialSchema";
|
|
5
5
|
import { DidListItem, DidListQuery, DidRequest } from "./did";
|
|
6
6
|
import { HistoryListItem, HistoryListQuery } from "./history";
|
|
7
|
-
import { KeyRequest } from "./key";
|
|
7
|
+
import { KeyCheckCertificateRequestBindingDto, KeyListItem, KeyRequest } from "./key";
|
|
8
8
|
import { ItemList } from "./list";
|
|
9
|
-
import { CreateProofRequest, InvitationResultProofRequest, PresentationDefinition, PresentationDefinitionRequestedCredential, PresentationSubmitCredentialRequest, ProofDetail, ProofListItem, ProofListQuery, ProposeProofResponse, ShareProofResponse } from "./proof";
|
|
9
|
+
import { CreateProofRequest, InvitationResultProofRequest, PresentationDefinition, PresentationDefinitionRequestedCredential, PresentationSubmitCredentialRequest, ProofDetail, ProofListItem, ProofListQuery, ProposeProofResponse, ShareProofRequest, ShareProofResponse } from "./proof";
|
|
10
10
|
import { CreateProofSchemaRequest, ImportProofSchemaRequest, ProofSchema, ProofSchemaListItem, ProofSchemaListQuery, ShareProofSchemaResponse } from "./proofSchema";
|
|
11
|
-
import { CreateTrustAnchorRequest, TrustAnchor, TrustAnchorListItem, TrustAnchorListQuery } from "./trust";
|
|
11
|
+
import { CreateRemoteTrustEntityRequest, CreateTrustAnchorRequest, CreateTrustEntityRequest, TrustAnchor, TrustAnchorListItem, TrustAnchorListQuery, TrustEntity, TrustEntityListItem, TrustEntityListQuery, UpdateRemoteTrustEntityRequest } from "./trust";
|
|
12
|
+
import { CacheType } from "./cache";
|
|
13
|
+
import { CreateOrganisationRequest, UpsertOrganisationRequest } from "./organisation";
|
|
12
14
|
export * from "./backup";
|
|
15
|
+
export * from "./cache";
|
|
13
16
|
export * from "./config";
|
|
14
17
|
export * from "./credential";
|
|
15
18
|
export * from "./credentialSchema";
|
|
@@ -17,6 +20,7 @@ export * from "./did";
|
|
|
17
20
|
export * from "./history";
|
|
18
21
|
export * from "./key";
|
|
19
22
|
export * from "./list";
|
|
23
|
+
export * from "./organisation";
|
|
20
24
|
export * from "./proof";
|
|
21
25
|
export * from "./proofSchema";
|
|
22
26
|
export * from "./trust";
|
|
@@ -36,18 +40,20 @@ export interface ResolveJsonLdContextResponse {
|
|
|
36
40
|
export interface ONECore {
|
|
37
41
|
getVersion(): Promise<Version>;
|
|
38
42
|
getConfig(): Promise<Config>;
|
|
39
|
-
createOrganisation(
|
|
43
|
+
createOrganisation(request: CreateOrganisationRequest): Promise<string>;
|
|
44
|
+
upsertOrganisation(request: UpsertOrganisationRequest): Promise<void>;
|
|
40
45
|
generateKey(keyRequest: KeyRequest): Promise<string>;
|
|
41
46
|
createDid(didRequest: DidRequest): Promise<string>;
|
|
42
47
|
getDids(query: DidListQuery): Promise<ItemList<DidListItem>>;
|
|
43
48
|
handleInvitation(url: string, organisationId: string, transport: string[] | undefined): Promise<InvitationResult>;
|
|
44
|
-
holderAcceptCredential(interactionId: InvitationResultCredentialIssuance["interactionId"], didId: string, keyId: string | undefined): Promise<void>;
|
|
49
|
+
holderAcceptCredential(interactionId: InvitationResultCredentialIssuance["interactionId"], didId: string, keyId: string | undefined, txCode: string | undefined): Promise<void>;
|
|
45
50
|
holderRejectCredential(interactionId: InvitationResultCredentialIssuance["interactionId"]): Promise<void>;
|
|
46
51
|
getPresentationDefinition(proofId: ProofDetail["id"]): Promise<PresentationDefinition>;
|
|
47
52
|
holderRejectProof(interactionId: InvitationResultProofRequest["interactionId"]): Promise<void>;
|
|
48
53
|
holderSubmitProof(interactionId: InvitationResultProofRequest["interactionId"], credentials: Record<PresentationDefinitionRequestedCredential["id"], PresentationSubmitCredentialRequest>, didId: string, keyId: string | undefined): Promise<void>;
|
|
49
54
|
getCredentials(query: CredentialListQuery): Promise<ItemList<CredentialListItem>>;
|
|
50
55
|
runTask(task: string): Promise<string>;
|
|
56
|
+
checkCertificate(keyId: KeyListItem["id"], certificate: KeyCheckCertificateRequestBindingDto): Promise<void>;
|
|
51
57
|
deleteProofClaims(proofId: ProofDetail["id"]): Promise<void>;
|
|
52
58
|
getCredential(credentialId: CredentialListItem["id"]): Promise<CredentialDetail>;
|
|
53
59
|
deleteCredential(credentialId: CredentialListItem["id"]): Promise<void>;
|
|
@@ -56,26 +62,35 @@ export interface ONECore {
|
|
|
56
62
|
getCredentialSchemas(query: CredentialSchemaListQuery): Promise<ItemList<CredentialSchema>>;
|
|
57
63
|
deleteCredentialSchema(credentialSchemaId: CredentialSchema["id"]): Promise<void>;
|
|
58
64
|
createProof(request: CreateProofRequest): Promise<ProofDetail["id"]>;
|
|
59
|
-
shareProof(proofId: ProofDetail["id"]): Promise<ShareProofResponse>;
|
|
65
|
+
shareProof(proofId: ProofDetail["id"], request: ShareProofRequest): Promise<ShareProofResponse>;
|
|
60
66
|
shareProofSchema(proofSchemaId: ProofSchema["id"]): Promise<ShareProofSchemaResponse>;
|
|
61
67
|
shareCredentialSchema(credentialSchemaId: CredentialSchema["id"]): Promise<ShareCredentialSchemaResponse>;
|
|
62
68
|
getProof(proofId: ProofDetail["id"]): Promise<ProofDetail>;
|
|
63
69
|
getProofs(query: ProofListQuery): Promise<ItemList<ProofListItem>>;
|
|
64
|
-
|
|
70
|
+
deleteProof(proofId: ProofDetail["id"]): Promise<void>;
|
|
65
71
|
proposeProof(exchange: string, organisationId: string): Promise<ProposeProofResponse>;
|
|
66
72
|
createProofSchema(request: CreateProofSchemaRequest): Promise<ProofSchema["id"]>;
|
|
67
73
|
getProofSchemas(query: ProofSchemaListQuery): Promise<ItemList<ProofSchemaListItem>>;
|
|
68
74
|
getProofSchema(proofSchemaId: ProofSchema["id"]): Promise<ProofSchema>;
|
|
69
75
|
deleteProofSchema(proofSchemaId: ProofSchema["id"]): Promise<void>;
|
|
70
76
|
importProofSchema(request: ImportProofSchemaRequest): Promise<ProofSchema["id"]>;
|
|
71
|
-
checkRevocation(credentialIds: Array<CredentialListItem["id"]
|
|
77
|
+
checkRevocation(credentialIds: Array<CredentialListItem["id"]>, forceRefresh: boolean): Promise<CredentialRevocationCheckResponse[]>;
|
|
72
78
|
createTrustAnchor(request: CreateTrustAnchorRequest): Promise<TrustAnchor["id"]>;
|
|
79
|
+
deleteTrustAnchor(trustAnchorId: TrustAnchor["id"]): Promise<void>;
|
|
73
80
|
getTrustAnchor(trustAnchorId: TrustAnchor["id"]): Promise<TrustAnchor>;
|
|
74
81
|
getTrustAnchors(query: TrustAnchorListQuery): Promise<ItemList<TrustAnchorListItem>>;
|
|
82
|
+
createTrustEntity(request: CreateTrustEntityRequest): Promise<TrustEntity["id"]>;
|
|
83
|
+
getTrustEntity(trustEntityId: TrustEntity["id"]): Promise<TrustEntity>;
|
|
84
|
+
getTrustEntities(query: TrustEntityListQuery): Promise<ItemList<TrustEntityListItem>>;
|
|
85
|
+
getTrustEntityByDid(didId: DidListItem["id"]): Promise<TrustEntity>;
|
|
86
|
+
createRemoteTrustEntity(request: CreateRemoteTrustEntityRequest): Promise<TrustEntity["id"]>;
|
|
87
|
+
getRemoteTrustEntity(didId: DidListItem["id"]): Promise<TrustEntity>;
|
|
88
|
+
updateRemoteTrustEntity(request: UpdateRemoteTrustEntityRequest): Promise<void>;
|
|
75
89
|
getHistory(query: HistoryListQuery): Promise<ItemList<HistoryListItem>>;
|
|
76
90
|
getHistoryEntry(historyId: HistoryListItem["id"]): Promise<HistoryListItem>;
|
|
77
91
|
createBackup(password: string, outputPath: string): Promise<BackupCreate>;
|
|
78
92
|
backupInfo(): Promise<UnexportableEntities>;
|
|
93
|
+
deleteCache(types: CacheType[] | undefined): Promise<void>;
|
|
79
94
|
/**
|
|
80
95
|
* Start import procedure
|
|
81
96
|
*
|
|
@@ -107,3 +122,4 @@ export interface ONECore {
|
|
|
107
122
|
*/
|
|
108
123
|
uninitialize(deleteData: boolean): Promise<void>;
|
|
109
124
|
}
|
|
125
|
+
export declare const interfaceMethodNames: readonly ["getVersion", "getConfig", "createOrganisation", "upsertOrganisation", "generateKey", "createDid", "getDids", "handleInvitation", "holderAcceptCredential", "holderRejectCredential", "getPresentationDefinition", "holderRejectProof", "holderSubmitProof", "getCredentials", "runTask", "checkCertificate", "deleteProofClaims", "getCredential", "deleteCredential", "importCredentialSchema", "getCredentialSchema", "getCredentialSchemas", "deleteCredentialSchema", "createProof", "shareProof", "shareProofSchema", "shareCredentialSchema", "getProof", "getProofs", "deleteProof", "proposeProof", "createProofSchema", "getProofSchemas", "getProofSchema", "deleteProofSchema", "importProofSchema", "checkRevocation", "createTrustAnchor", "deleteTrustAnchor", "getTrustAnchor", "getTrustAnchors", "createTrustEntity", "getTrustEntity", "getTrustEntities", "getTrustEntityByDid", "createRemoteTrustEntity", "getRemoteTrustEntity", "updateRemoteTrustEntity", "getHistory", "getHistoryEntry", "createBackup", "backupInfo", "deleteCache", "unpackBackup", "finalizeImport", "rollbackImport", "resolveJsonldContext", "uninitialize"];
|
package/dist/src/core.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./backup";
|
|
2
|
+
export * from "./cache";
|
|
2
3
|
export * from "./config";
|
|
3
4
|
export * from "./credential";
|
|
4
5
|
export * from "./credentialSchema";
|
|
@@ -6,6 +7,73 @@ export * from "./did";
|
|
|
6
7
|
export * from "./history";
|
|
7
8
|
export * from "./key";
|
|
8
9
|
export * from "./list";
|
|
10
|
+
export * from "./organisation";
|
|
9
11
|
export * from "./proof";
|
|
10
12
|
export * from "./proofSchema";
|
|
11
13
|
export * from "./trust";
|
|
14
|
+
// New Architecture bridgeless issue workaround: see https://github.com/facebook/react-native/issues/43221
|
|
15
|
+
export const interfaceMethodNames = [
|
|
16
|
+
"getVersion",
|
|
17
|
+
"getConfig",
|
|
18
|
+
"createOrganisation",
|
|
19
|
+
"upsertOrganisation",
|
|
20
|
+
"generateKey",
|
|
21
|
+
"createDid",
|
|
22
|
+
"getDids",
|
|
23
|
+
"handleInvitation",
|
|
24
|
+
"holderAcceptCredential",
|
|
25
|
+
"holderRejectCredential",
|
|
26
|
+
"getPresentationDefinition",
|
|
27
|
+
"holderRejectProof",
|
|
28
|
+
"holderSubmitProof",
|
|
29
|
+
"getCredentials",
|
|
30
|
+
"runTask",
|
|
31
|
+
"checkCertificate",
|
|
32
|
+
"deleteProofClaims",
|
|
33
|
+
"getCredential",
|
|
34
|
+
"deleteCredential",
|
|
35
|
+
"importCredentialSchema",
|
|
36
|
+
"getCredentialSchema",
|
|
37
|
+
"getCredentialSchemas",
|
|
38
|
+
"deleteCredentialSchema",
|
|
39
|
+
"createProof",
|
|
40
|
+
"shareProof",
|
|
41
|
+
"shareProofSchema",
|
|
42
|
+
"shareCredentialSchema",
|
|
43
|
+
"getProof",
|
|
44
|
+
"getProofs",
|
|
45
|
+
"deleteProof",
|
|
46
|
+
"proposeProof",
|
|
47
|
+
"createProofSchema",
|
|
48
|
+
"getProofSchemas",
|
|
49
|
+
"getProofSchema",
|
|
50
|
+
"deleteProofSchema",
|
|
51
|
+
"importProofSchema",
|
|
52
|
+
"checkRevocation",
|
|
53
|
+
"createTrustAnchor",
|
|
54
|
+
"deleteTrustAnchor",
|
|
55
|
+
"getTrustAnchor",
|
|
56
|
+
"getTrustAnchors",
|
|
57
|
+
"createTrustEntity",
|
|
58
|
+
"getTrustEntity",
|
|
59
|
+
"getTrustEntities",
|
|
60
|
+
"getTrustEntityByDid",
|
|
61
|
+
"createRemoteTrustEntity",
|
|
62
|
+
"getRemoteTrustEntity",
|
|
63
|
+
"updateRemoteTrustEntity",
|
|
64
|
+
"getHistory",
|
|
65
|
+
"getHistoryEntry",
|
|
66
|
+
"createBackup",
|
|
67
|
+
"backupInfo",
|
|
68
|
+
"deleteCache",
|
|
69
|
+
"unpackBackup",
|
|
70
|
+
"finalizeImport",
|
|
71
|
+
"rollbackImport",
|
|
72
|
+
"resolveJsonldContext",
|
|
73
|
+
"uninitialize",
|
|
74
|
+
];
|
|
75
|
+
// Typescript automatic assertions to keep ONECore and interfaceMethodNames in sync
|
|
76
|
+
/** assert that all method names listed in {@link interfaceMethodNames} exist in {@link ONECore} interface */
|
|
77
|
+
const methodNamesCheck = interfaceMethodNames;
|
|
78
|
+
/** assert that all {@link ONECore} interface methods are listed in {@link interfaceMethodNames} */
|
|
79
|
+
const interfaceMethodsCheck = null;
|
package/dist/src/credential.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DataTypeEnum } from "./config";
|
|
2
2
|
import { CredentialSchema } from "./credentialSchema";
|
|
3
3
|
import { ListQuery, SortDirection } from "./list";
|
|
4
|
+
import { DidListItem } from "./did";
|
|
4
5
|
export declare enum CredentialStateEnum {
|
|
5
6
|
CREATED = "CREATED",
|
|
6
7
|
PENDING = "PENDING",
|
|
@@ -51,12 +52,15 @@ export interface CredentialListItem {
|
|
|
51
52
|
schema: CredentialSchema;
|
|
52
53
|
role: CredentialRoleEnum;
|
|
53
54
|
suspendEndDate?: string;
|
|
55
|
+
exchange: string;
|
|
54
56
|
}
|
|
55
|
-
export interface CredentialDetail extends CredentialListItem {
|
|
57
|
+
export interface CredentialDetail extends Omit<CredentialListItem, "issuerDid"> {
|
|
56
58
|
claims: Claim[];
|
|
57
59
|
redirectUri?: string;
|
|
58
60
|
lvvcIssuanceDate?: string;
|
|
59
61
|
mdocMsoValidity?: MdocMsoValidity;
|
|
62
|
+
issuerDid?: DidListItem;
|
|
63
|
+
holderDid?: DidListItem;
|
|
60
64
|
}
|
|
61
65
|
export interface MdocMsoValidity {
|
|
62
66
|
expiration: string;
|
|
@@ -112,4 +116,14 @@ export interface CredentialRevocationCheckResponse {
|
|
|
112
116
|
export interface InvitationResultCredentialIssuance {
|
|
113
117
|
interactionId: string;
|
|
114
118
|
credentialIds: Array<CredentialListItem["id"]>;
|
|
119
|
+
txCode?: OpenID4VCITxCode;
|
|
120
|
+
}
|
|
121
|
+
export interface OpenID4VCITxCode {
|
|
122
|
+
inputMode?: OpenID4VCITxCodeInputMode;
|
|
123
|
+
length?: number;
|
|
124
|
+
description?: string;
|
|
125
|
+
}
|
|
126
|
+
export declare enum OpenID4VCITxCodeInputMode {
|
|
127
|
+
NUMERIC = "NUMERIC",
|
|
128
|
+
TEXT = "TEXT"
|
|
115
129
|
}
|
package/dist/src/credential.js
CHANGED
|
@@ -37,3 +37,8 @@ export var CredentialListSearchType;
|
|
|
37
37
|
CredentialListSearchType["CLAIM_VALUE"] = "CLAIM_VALUE";
|
|
38
38
|
CredentialListSearchType["CREDENTIAL_SCHEMA_NAME"] = "CREDENTIAL_SCHEMA_NAME";
|
|
39
39
|
})(CredentialListSearchType || (CredentialListSearchType = {}));
|
|
40
|
+
export var OpenID4VCITxCodeInputMode;
|
|
41
|
+
(function (OpenID4VCITxCodeInputMode) {
|
|
42
|
+
OpenID4VCITxCodeInputMode["NUMERIC"] = "NUMERIC";
|
|
43
|
+
OpenID4VCITxCodeInputMode["TEXT"] = "TEXT";
|
|
44
|
+
})(OpenID4VCITxCodeInputMode || (OpenID4VCITxCodeInputMode = {}));
|
|
@@ -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/did.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { KeyListItem } from "./key";
|
|
1
2
|
import { ListQuery, SortDirection } from "./list";
|
|
2
3
|
export declare enum DidTypeEnum {
|
|
3
4
|
LOCAL = "LOCAL",
|
|
@@ -11,11 +12,11 @@ export interface DidRequest {
|
|
|
11
12
|
params: Record<string, string>;
|
|
12
13
|
}
|
|
13
14
|
export interface DidRequestKeys {
|
|
14
|
-
authentication:
|
|
15
|
-
assertionMethod:
|
|
16
|
-
keyAgreement:
|
|
17
|
-
capabilityInvocation:
|
|
18
|
-
capabilityDelegation:
|
|
15
|
+
authentication: Array<KeyListItem["id"]>;
|
|
16
|
+
assertionMethod: Array<KeyListItem["id"]>;
|
|
17
|
+
keyAgreement: Array<KeyListItem["id"]>;
|
|
18
|
+
capabilityInvocation: Array<KeyListItem["id"]>;
|
|
19
|
+
capabilityDelegation: Array<KeyListItem["id"]>;
|
|
19
20
|
}
|
|
20
21
|
export interface DidListItem {
|
|
21
22
|
id: string;
|
|
@@ -56,4 +57,7 @@ export interface DidListQuery extends ListQuery {
|
|
|
56
57
|
exact?: ExactDidFilterColumnEnum[];
|
|
57
58
|
keyAlgorithms?: string[];
|
|
58
59
|
keyRoles?: KeyRoleEnum[];
|
|
60
|
+
keyStorages?: string[];
|
|
61
|
+
keyIds?: Array<KeyListItem["id"]>;
|
|
62
|
+
didMethods?: string[];
|
|
59
63
|
}
|
package/dist/src/error.d.ts
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
export declare enum OneErrorCode {
|
|
2
|
-
AlreadyExists = "AlreadyExists",
|
|
3
|
-
NotFound = "NotFound",
|
|
4
|
-
NotSupported = "NotSupported",
|
|
5
|
-
ValidationError = "ValidationError",
|
|
6
|
-
ConfigValidationError = "ConfigValidationError",
|
|
7
|
-
Uninitialized = "Uninitialized",
|
|
8
|
-
DbErr = "DbErr",
|
|
9
|
-
IOError = "IOError",
|
|
10
|
-
Unknown = "Unknown"
|
|
11
|
-
}
|
|
12
1
|
/**
|
|
13
|
-
* Specific errors being
|
|
2
|
+
* Specific errors being thrown from the {@link ONECore} functions
|
|
14
3
|
*/
|
|
15
4
|
export declare class OneError extends Error {
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
5
|
+
readonly operation: string;
|
|
6
|
+
readonly code: string;
|
|
7
|
+
readonly cause?: string;
|
|
8
|
+
readonly originalError: Error;
|
|
18
9
|
constructor(params: {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
message
|
|
10
|
+
operation: string;
|
|
11
|
+
code: string;
|
|
12
|
+
message: string;
|
|
13
|
+
cause?: string;
|
|
14
|
+
originalError: Error;
|
|
22
15
|
});
|
|
23
16
|
}
|
package/dist/src/error.js
CHANGED
|
@@ -1,25 +1,16 @@
|
|
|
1
|
-
export var OneErrorCode;
|
|
2
|
-
(function (OneErrorCode) {
|
|
3
|
-
// BindingError
|
|
4
|
-
OneErrorCode["AlreadyExists"] = "AlreadyExists";
|
|
5
|
-
OneErrorCode["NotFound"] = "NotFound";
|
|
6
|
-
OneErrorCode["NotSupported"] = "NotSupported";
|
|
7
|
-
OneErrorCode["ValidationError"] = "ValidationError";
|
|
8
|
-
OneErrorCode["ConfigValidationError"] = "ConfigValidationError";
|
|
9
|
-
OneErrorCode["Uninitialized"] = "Uninitialized";
|
|
10
|
-
OneErrorCode["DbErr"] = "DbErr";
|
|
11
|
-
OneErrorCode["IOError"] = "IOError";
|
|
12
|
-
OneErrorCode["Unknown"] = "Unknown";
|
|
13
|
-
})(OneErrorCode || (OneErrorCode = {}));
|
|
14
1
|
/**
|
|
15
|
-
* Specific errors being
|
|
2
|
+
* Specific errors being thrown from the {@link ONECore} functions
|
|
16
3
|
*/
|
|
17
4
|
export class OneError extends Error {
|
|
5
|
+
operation;
|
|
18
6
|
code;
|
|
19
7
|
cause;
|
|
8
|
+
originalError;
|
|
20
9
|
constructor(params) {
|
|
21
10
|
super(params.message);
|
|
11
|
+
this.operation = params.operation;
|
|
22
12
|
this.code = params.code;
|
|
23
13
|
this.cause = params.cause;
|
|
14
|
+
this.originalError = params.originalError;
|
|
24
15
|
}
|
|
25
16
|
}
|
package/dist/src/history.d.ts
CHANGED
|
@@ -5,19 +5,25 @@ 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
|
-
REACTIVATED = "REACTIVATED",
|
|
11
11
|
REJECTED = "REJECTED",
|
|
12
12
|
REQUESTED = "REQUESTED",
|
|
13
13
|
REVOKED = "REVOKED",
|
|
14
14
|
PENDING = "PENDING",
|
|
15
15
|
SUSPENDED = "SUSPENDED",
|
|
16
16
|
RESTORED = "RESTORED",
|
|
17
|
-
ERRORED = "ERRORED",
|
|
18
17
|
SHARED = "SHARED",
|
|
19
18
|
IMPORTED = "IMPORTED",
|
|
20
|
-
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"
|
|
21
27
|
}
|
|
22
28
|
export declare enum HistoryEntityTypeEnum {
|
|
23
29
|
KEY = "KEY",
|
|
@@ -27,7 +33,9 @@ export declare enum HistoryEntityTypeEnum {
|
|
|
27
33
|
PROOF = "PROOF",
|
|
28
34
|
PROOF_SCHEMA = "PROOF_SCHEMA",
|
|
29
35
|
ORGANISATION = "ORGANISATION",
|
|
30
|
-
BACKUP = "BACKUP"
|
|
36
|
+
BACKUP = "BACKUP",
|
|
37
|
+
TRUST_ANCHOR = "TRUST_ANCHOR",
|
|
38
|
+
TRUST_ENTITY = "TRUST_ENTITY"
|
|
31
39
|
}
|
|
32
40
|
export declare enum HistorySearchTypeEnum {
|
|
33
41
|
CLAIM_NAME = "CLAIM_NAME",
|
|
@@ -54,11 +62,17 @@ export interface HistoryListQuery extends ListQuery {
|
|
|
54
62
|
searchText?: string;
|
|
55
63
|
searchType?: HistorySearchTypeEnum;
|
|
56
64
|
}
|
|
57
|
-
export
|
|
65
|
+
export interface HistoryErrorMetadata {
|
|
66
|
+
errorCode: string;
|
|
67
|
+
message: string;
|
|
68
|
+
}
|
|
69
|
+
export type HistoryMetadata = UnexportableEntities | HistoryErrorMetadata;
|
|
58
70
|
export interface HistoryListItem {
|
|
59
71
|
id: string;
|
|
60
72
|
createdDate: string;
|
|
61
73
|
action: HistoryActionEnum;
|
|
74
|
+
name: string;
|
|
75
|
+
target?: string;
|
|
62
76
|
entityId?: string;
|
|
63
77
|
entityType: HistoryEntityTypeEnum;
|
|
64
78
|
organisationId: string;
|
package/dist/src/history.js
CHANGED
|
@@ -4,19 +4,25 @@ 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
|
-
HistoryActionEnum["REACTIVATED"] = "REACTIVATED";
|
|
10
10
|
HistoryActionEnum["REJECTED"] = "REJECTED";
|
|
11
11
|
HistoryActionEnum["REQUESTED"] = "REQUESTED";
|
|
12
12
|
HistoryActionEnum["REVOKED"] = "REVOKED";
|
|
13
13
|
HistoryActionEnum["PENDING"] = "PENDING";
|
|
14
14
|
HistoryActionEnum["SUSPENDED"] = "SUSPENDED";
|
|
15
15
|
HistoryActionEnum["RESTORED"] = "RESTORED";
|
|
16
|
-
HistoryActionEnum["ERRORED"] = "ERRORED";
|
|
17
16
|
HistoryActionEnum["SHARED"] = "SHARED";
|
|
18
17
|
HistoryActionEnum["IMPORTED"] = "IMPORTED";
|
|
19
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";
|
|
20
26
|
})(HistoryActionEnum || (HistoryActionEnum = {}));
|
|
21
27
|
export var HistoryEntityTypeEnum;
|
|
22
28
|
(function (HistoryEntityTypeEnum) {
|
|
@@ -28,6 +34,8 @@ export var HistoryEntityTypeEnum;
|
|
|
28
34
|
HistoryEntityTypeEnum["PROOF_SCHEMA"] = "PROOF_SCHEMA";
|
|
29
35
|
HistoryEntityTypeEnum["ORGANISATION"] = "ORGANISATION";
|
|
30
36
|
HistoryEntityTypeEnum["BACKUP"] = "BACKUP";
|
|
37
|
+
HistoryEntityTypeEnum["TRUST_ANCHOR"] = "TRUST_ANCHOR";
|
|
38
|
+
HistoryEntityTypeEnum["TRUST_ENTITY"] = "TRUST_ENTITY";
|
|
31
39
|
})(HistoryEntityTypeEnum || (HistoryEntityTypeEnum = {}));
|
|
32
40
|
export var HistorySearchTypeEnum;
|
|
33
41
|
(function (HistorySearchTypeEnum) {
|
package/dist/src/key.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|