@velocitycareerlabs/vcl-react-native 2.9.1 → 2.10.0-rc.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 +12 -1
- package/VclReactNative.podspec +1 -1
- package/android/build.gradle +4 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +10 -2
- package/ios/Utils/Converter.swift +18 -3
- package/lib/module/api/entities/error/VCLErrorCode.js +17 -0
- package/lib/module/api/entities/error/VCLErrorCode.js.map +1 -1
- package/lib/module/api/entities/initialization/VCLErrorCodeCompatibilityMode.js +15 -0
- package/lib/module/api/entities/initialization/VCLErrorCodeCompatibilityMode.js.map +1 -0
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/api/entities/error/VCLErrorCode.d.ts +15 -0
- package/lib/typescript/src/api/entities/error/VCLErrorCode.d.ts.map +1 -1
- package/lib/typescript/src/api/entities/initialization/VCLErrorCodeCompatibilityMode.d.ts +11 -0
- package/lib/typescript/src/api/entities/initialization/VCLErrorCodeCompatibilityMode.d.ts.map +1 -0
- package/lib/typescript/src/api/entities/initialization/VCLInitializationDescriptor.d.ts +6 -0
- package/lib/typescript/src/api/entities/initialization/VCLInitializationDescriptor.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/entities/error/VCLErrorCode.ts +18 -0
- package/src/api/entities/initialization/VCLErrorCodeCompatibilityMode.ts +11 -0
- package/src/api/entities/initialization/VCLInitializationDescriptor.ts +6 -0
- package/src/index.tsx +2 -0
package/README.md
CHANGED
|
@@ -48,7 +48,9 @@ npm install @velocitycareerlabs/vcl-react-native --save
|
|
|
48
48
|
### Usage
|
|
49
49
|
To start using the VCL SDK, you’ll need to create its object and initialize it in Velocity Network™:
|
|
50
50
|
```js
|
|
51
|
-
import vcl
|
|
51
|
+
import vcl, {
|
|
52
|
+
VCLErrorCodeCompatibilityMode,
|
|
53
|
+
} from '@velocitycareerlabs/vcl-react-native';
|
|
52
54
|
```
|
|
53
55
|
```js
|
|
54
56
|
const initializationDescriptor: VCLInitializationDescriptor = {
|
|
@@ -64,4 +66,13 @@ vcl.initialize(initializationDescriptor).then(
|
|
|
64
66
|
);
|
|
65
67
|
```
|
|
66
68
|
|
|
69
|
+
SDK `2.10.0` uses native taxonomy error codes by default. To temporarily
|
|
70
|
+
preserve legacy native error-code mappings during migration, initialize with:
|
|
71
|
+
```js
|
|
72
|
+
const initializationDescriptor: VCLInitializationDescriptor = {
|
|
73
|
+
environment: environment,
|
|
74
|
+
errorCodeCompatibilityMode: VCLErrorCodeCompatibilityMode.Legacy,
|
|
75
|
+
};
|
|
76
|
+
```
|
|
77
|
+
|
|
67
78
|
More details can be found [HERE](https://www.velocitynetwork.foundation/main/career-wallets-velocity-sdks#react-native)
|
package/VclReactNative.podspec
CHANGED
package/android/build.gradle
CHANGED
|
@@ -21,6 +21,9 @@ apply plugin: "kotlin-android"
|
|
|
21
21
|
|
|
22
22
|
apply plugin: "com.facebook.react"
|
|
23
23
|
|
|
24
|
+
def packageJson = new groovy.json.JsonSlurper().parse(file("$projectDir/../package.json"))
|
|
25
|
+
def vclSdkVersion = packageJson.version
|
|
26
|
+
|
|
24
27
|
def getExtOrIntegerDefault(name) {
|
|
25
28
|
return rootProject.ext.has(name) ? rootProject.ext.get(name) : (project.properties["VclReactNative_" + name]).toInteger()
|
|
26
29
|
}
|
|
@@ -76,7 +79,7 @@ dependencies {
|
|
|
76
79
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
|
77
80
|
|
|
78
81
|
//--------- Must: be added:
|
|
79
|
-
implementation "io.velocitycareerlabs:vcl
|
|
82
|
+
implementation "io.velocitycareerlabs:vcl:$vclSdkVersion"
|
|
80
83
|
implementation 'com.nimbusds:nimbus-jose-jwt:10.5'
|
|
81
84
|
implementation "androidx.security:security-crypto:1.1.0"
|
|
82
85
|
//-------------------------
|
|
@@ -10,6 +10,7 @@ import com.facebook.react.bridge.*
|
|
|
10
10
|
import io.velocitycareerlabs.api.*
|
|
11
11
|
import io.velocitycareerlabs.api.entities.*
|
|
12
12
|
import io.velocitycareerlabs.api.entities.initialization.VCLCryptoServicesDescriptor
|
|
13
|
+
import io.velocitycareerlabs.api.entities.initialization.VCLErrorCodeCompatibilityMode
|
|
13
14
|
import io.velocitycareerlabs.api.entities.initialization.VCLInitializationDescriptor
|
|
14
15
|
import io.velocitycareerlabs.api.entities.initialization.VCLJwtServiceUrls
|
|
15
16
|
import io.velocitycareerlabs.api.entities.initialization.VCLKeyServiceUrls
|
|
@@ -34,7 +35,10 @@ object Converter {
|
|
|
34
35
|
initializationDescriptorMap.getMapOpt("cryptoServicesDescriptor")
|
|
35
36
|
),
|
|
36
37
|
isDirectIssuerCheckOn = initializationDescriptorMap.getBooleanOpt("isDirectIssuerCheckOn")
|
|
37
|
-
?: true
|
|
38
|
+
?: true,
|
|
39
|
+
errorCodeCompatibilityMode = mapToErrorCodeCompatibilityMode(
|
|
40
|
+
initializationDescriptorMap.getStringOpt("errorCodeCompatibilityMode")
|
|
41
|
+
)
|
|
38
42
|
)
|
|
39
43
|
|
|
40
44
|
private fun mapToEnvironment(environment: String?) =
|
|
@@ -69,6 +73,11 @@ object Converter {
|
|
|
69
73
|
private fun mapToXVnfProtocolVersion(xVnfProtocolVersion: String?) =
|
|
70
74
|
VCLXVnfProtocolVersion.fromString(xVnfProtocolVersion ?: "")
|
|
71
75
|
|
|
76
|
+
private fun mapToErrorCodeCompatibilityMode(errorCodeCompatibilityMode: String?) =
|
|
77
|
+
VCLErrorCodeCompatibilityMode.entries.firstOrNull {
|
|
78
|
+
it.value == errorCodeCompatibilityMode
|
|
79
|
+
} ?: VCLErrorCodeCompatibilityMode.Taxonomy
|
|
80
|
+
|
|
72
81
|
fun regionToMap(
|
|
73
82
|
region: VCLRegion
|
|
74
83
|
): ReadableMap {
|
|
@@ -796,4 +805,3 @@ object Converter {
|
|
|
796
805
|
)
|
|
797
806
|
}
|
|
798
807
|
}
|
|
799
|
-
|
|
@@ -26,7 +26,10 @@ func dictionaryToInitializationDescriptor(
|
|
|
26
26
|
cryptoServicesDescriptor: dictionaryToCryptoServicesDescriptor(
|
|
27
27
|
initializationDescriptorDictionary["cryptoServicesDescriptor"] as? [String : Any]
|
|
28
28
|
),
|
|
29
|
-
isDirectIssuerCheckOn: initializationDescriptorDictionary["isDirectIssuerCheckOn"] as? Bool ?? true
|
|
29
|
+
isDirectIssuerCheckOn: initializationDescriptorDictionary["isDirectIssuerCheckOn"] as? Bool ?? true,
|
|
30
|
+
errorCodeCompatibilityMode: dictionaryToErrorCodeCompatibilityMode(
|
|
31
|
+
initializationDescriptorDictionary["errorCodeCompatibilityMode"] as? String
|
|
32
|
+
)
|
|
30
33
|
)
|
|
31
34
|
}
|
|
32
35
|
|
|
@@ -67,6 +70,14 @@ private func dictionaryToXVnfProtocolVersion(
|
|
|
67
70
|
return VCLXVnfProtocolVersion.fromString(value: xVnfProtocolVersion ?? "")
|
|
68
71
|
}
|
|
69
72
|
|
|
73
|
+
private func dictionaryToErrorCodeCompatibilityMode(
|
|
74
|
+
_ errorCodeCompatibilityMode: String?
|
|
75
|
+
) -> VCLErrorCodeCompatibilityMode {
|
|
76
|
+
return VCLErrorCodeCompatibilityMode(
|
|
77
|
+
rawValue: errorCodeCompatibilityMode ?? ""
|
|
78
|
+
) ?? .Taxonomy
|
|
79
|
+
}
|
|
80
|
+
|
|
70
81
|
func regionToDictionary(
|
|
71
82
|
_ region: VCLRegion
|
|
72
83
|
) -> [String: Any] {
|
|
@@ -493,7 +504,7 @@ func credentialManifestToDictionary(
|
|
|
493
504
|
func dictionaryToCredentialManifest(
|
|
494
505
|
_ credentialManifestDictionary: [String: Any]?
|
|
495
506
|
) -> VCLCredentialManifest {
|
|
496
|
-
let jwt =
|
|
507
|
+
let jwt = jwtFromEncodedJwt((credentialManifestDictionary?["jwt"] as? [String: Any])?["encodedJwt"] as? String ?? "")
|
|
497
508
|
let vendorOriginContext = credentialManifestDictionary?["vendorOriginContext"] as? String
|
|
498
509
|
let verifiedProfileDictionary = credentialManifestDictionary?["verifiedProfile"] as? [String: Any]
|
|
499
510
|
let deepLink = dictionaryToDeepLink(credentialManifestDictionary?["deepLink"] as? [String: Any])
|
|
@@ -580,7 +591,11 @@ func credentialTypesFormSchemaToDictionary(
|
|
|
580
591
|
func dictionaryToJwt(
|
|
581
592
|
_ jwtDictionary: [String: Any]?
|
|
582
593
|
) -> VCLJwt {
|
|
583
|
-
return
|
|
594
|
+
return jwtFromEncodedJwt(jwtDictionary?["encodedJwt"] as? String ?? "")
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
func jwtFromEncodedJwt(_ encodedJwt: String) -> VCLJwt {
|
|
598
|
+
return (try? VCLJwt(encodedJwt: encodedJwt)) ?? VCLJwt(header: nil, payload: nil, signature: nil, encodedJwt: encodedJwt)
|
|
584
599
|
}
|
|
585
600
|
|
|
586
601
|
func jwtToDictionary(_ jwt: VCLJwt) -> [String: Any?] {
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
export let VCLErrorCode = /*#__PURE__*/function (VCLErrorCode) {
|
|
11
|
+
// Initialization
|
|
12
|
+
VCLErrorCode["RemoteServicesUrlsNotFound"] = "remote_services_urls_not_found";
|
|
13
|
+
VCLErrorCode["InjectedServicesNotFound"] = "injected_services_not_found";
|
|
11
14
|
// Credential issuer verification error codes:
|
|
12
15
|
VCLErrorCode["CredentialTypeNotRegistered"] = "credential_type_not_registered";
|
|
13
16
|
VCLErrorCode["IssuerRequiresIdentityPermission"] = "issuer_requires_identity_permission";
|
|
@@ -21,6 +24,20 @@ export let VCLErrorCode = /*#__PURE__*/function (VCLErrorCode) {
|
|
|
21
24
|
VCLErrorCode["MismatchedOfferIssuerDid"] = "mismatched_offer_issuer_did";
|
|
22
25
|
VCLErrorCode["MismatchedCredentialIssuerDid"] = "mismatched_credential_issuer_did";
|
|
23
26
|
VCLErrorCode["MismatchedPresentationRequestInspectorDid"] = "mismatched_presentation_request_inspector_did";
|
|
27
|
+
// Error taxonomy
|
|
28
|
+
VCLErrorCode["InvalidLink"] = "invalid_link";
|
|
29
|
+
VCLErrorCode["ConnectivityFailure"] = "connectivity_failure";
|
|
30
|
+
VCLErrorCode["ClientRequestUnauthorized"] = "client_request_unauthorized";
|
|
31
|
+
VCLErrorCode["ClientRequestRejected"] = "client_request_rejected";
|
|
32
|
+
VCLErrorCode["IssuerDidUnresolvable"] = "issuer_did_unresolvable";
|
|
33
|
+
VCLErrorCode["VerifierDidUnresolvable"] = "verifier_did_unresolvable";
|
|
34
|
+
VCLErrorCode["RegistrationCheckInconclusive"] = "registration_check_inconclusive";
|
|
35
|
+
VCLErrorCode["IssuerNotRegistered"] = "issuer_not_registered";
|
|
36
|
+
VCLErrorCode["VerifierNotRegistered"] = "verifier_not_registered";
|
|
37
|
+
VCLErrorCode["IssuerRequestInvalid"] = "issuer_request_invalid";
|
|
38
|
+
VCLErrorCode["VerifierRequestInvalid"] = "verifier_request_invalid";
|
|
39
|
+
VCLErrorCode["IssuerRequestUnauthorized"] = "issuer_request_unauthorized";
|
|
40
|
+
VCLErrorCode["VerifierRequestUnauthorized"] = "verifier_request_unauthorized";
|
|
24
41
|
// General error
|
|
25
42
|
VCLErrorCode["SdkError"] = "sdk_error";
|
|
26
43
|
return VCLErrorCode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["VCLErrorCode"],"sourceRoot":"../../../../../src","sources":["api/entities/error/VCLErrorCode.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,YAAY,0BAAZA,YAAY;EACtB;EADUA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;
|
|
1
|
+
{"version":3,"names":["VCLErrorCode"],"sourceRoot":"../../../../../src","sources":["api/entities/error/VCLErrorCode.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,YAAY,0BAAZA,YAAY;EACtB;EADUA,YAAY;EAAZA,YAAY;EAKtB;EALUA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAatB;EAbUA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAkBtB;EAlBUA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAgCtB;EAhCUA,YAAY;EAAA,OAAZA,YAAY;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Created by Michael Avoyan.
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
7
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export let VCLErrorCodeCompatibilityMode = /*#__PURE__*/function (VCLErrorCodeCompatibilityMode) {
|
|
11
|
+
VCLErrorCodeCompatibilityMode["Taxonomy"] = "taxonomy";
|
|
12
|
+
VCLErrorCodeCompatibilityMode["Legacy"] = "legacy";
|
|
13
|
+
return VCLErrorCodeCompatibilityMode;
|
|
14
|
+
}({});
|
|
15
|
+
//# sourceMappingURL=VCLErrorCodeCompatibilityMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VCLErrorCodeCompatibilityMode"],"sourceRoot":"../../../../../src","sources":["api/entities/initialization/VCLErrorCodeCompatibilityMode.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,6BAA6B,0BAA7BA,6BAA6B;EAA7BA,6BAA6B;EAA7BA,6BAA6B;EAAA,OAA7BA,6BAA6B;AAAA","ignoreList":[]}
|
package/lib/module/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import { VCLEnvironment } from "./api/VCLEnvironment.js";
|
|
|
12
12
|
import { VCLXVnfProtocolVersion } from "./api/VCLXVnfProtocolVersion.js";
|
|
13
13
|
import { VCLCryptoServiceType } from "./api/VCLCryptoServiceType.js";
|
|
14
14
|
import { VCLSignatureAlgorithm } from "./api/VCLSignatureAlgorithm.js";
|
|
15
|
+
import { VCLErrorCodeCompatibilityMode } from "./api/entities/initialization/VCLErrorCodeCompatibilityMode.js";
|
|
15
16
|
import { VCLCountryCodes } from "./api/entities/VCLCountries.js";
|
|
16
17
|
import { VCLServiceType } from "./api/entities/VCLServiceType.js";
|
|
17
18
|
import { VCLIssuingType } from "./api/entities/VCLIssuingType.js";
|
|
@@ -19,5 +20,5 @@ import { VCLError } from "./api/entities/error/VCLError.js";
|
|
|
19
20
|
import { VCLStatusCode } from "./api/entities/error/VCLStatusCode.js";
|
|
20
21
|
import { VCLErrorCode } from "./api/entities/error/VCLErrorCode.js";
|
|
21
22
|
export default VclApi;
|
|
22
|
-
export { VCLEnvironment, VCLCryptoServiceType, VCLSignatureAlgorithm, VCLXVnfProtocolVersion, VCLCountryCodes, VCLServiceType, VCLIssuingType, VCLError, VCLStatusCode, VCLErrorCode };
|
|
23
|
+
export { VCLEnvironment, VCLCryptoServiceType, VCLSignatureAlgorithm, VCLXVnfProtocolVersion, VCLCountryCodes, VCLServiceType, VCLIssuingType, VCLError, VCLStatusCode, VCLErrorCode, VCLErrorCodeCompatibilityMode };
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["VclApi","VCLEnvironment","VCLXVnfProtocolVersion","VCLCryptoServiceType","VCLSignatureAlgorithm","VCLCountryCodes","VCLServiceType","VCLIssuingType","VCLError","VCLStatusCode","VCLErrorCode"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,iBAAc;AACrC,SAASC,cAAc,QAAQ,yBAAsB;AACrD,SAASC,sBAAsB,QAAQ,iCAA8B;AACrE,SAASC,oBAAoB,QAAQ,+BAA4B;AACjE,SAASC,qBAAqB,QAAQ,gCAA6B;
|
|
1
|
+
{"version":3,"names":["VclApi","VCLEnvironment","VCLXVnfProtocolVersion","VCLCryptoServiceType","VCLSignatureAlgorithm","VCLErrorCodeCompatibilityMode","VCLCountryCodes","VCLServiceType","VCLIssuingType","VCLError","VCLStatusCode","VCLErrorCode"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,iBAAc;AACrC,SAASC,cAAc,QAAQ,yBAAsB;AACrD,SAASC,sBAAsB,QAAQ,iCAA8B;AACrE,SAASC,oBAAoB,QAAQ,+BAA4B;AACjE,SAASC,qBAAqB,QAAQ,gCAA6B;AACnE,SAASC,6BAA6B,QAAQ,gEAA6D;AAO3G,SAASC,eAAe,QAAQ,gCAA6B;AAiC7D,SAASC,cAAc,QAAQ,kCAA+B;AAE9D,SAASC,cAAc,QAAQ,kCAA+B;AAY9D,SAASC,QAAQ,QAAQ,kCAA+B;AACxD,SAASC,aAAa,QAAQ,uCAAoC;AAClE,SAASC,YAAY,QAAQ,sCAAmC;AAShE,eAAeX,MAAM;AACrB,SACEC,cAAc,EACdE,oBAAoB,EACpBC,qBAAqB,EACrBF,sBAAsB,EACtBI,eAAe,EACfC,cAAc,EACdC,cAAc,EACdC,QAAQ,EACRC,aAAa,EACbC,YAAY,EACZN,6BAA6B","ignoreList":[]}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
export declare enum VCLErrorCode {
|
|
8
|
+
RemoteServicesUrlsNotFound = "remote_services_urls_not_found",
|
|
9
|
+
InjectedServicesNotFound = "injected_services_not_found",
|
|
8
10
|
CredentialTypeNotRegistered = "credential_type_not_registered",
|
|
9
11
|
IssuerRequiresIdentityPermission = "issuer_requires_identity_permission",
|
|
10
12
|
IssuerRequiresNotaryPermission = "issuer_requires_notary_permission",
|
|
@@ -16,6 +18,19 @@ export declare enum VCLErrorCode {
|
|
|
16
18
|
MismatchedOfferIssuerDid = "mismatched_offer_issuer_did",
|
|
17
19
|
MismatchedCredentialIssuerDid = "mismatched_credential_issuer_did",
|
|
18
20
|
MismatchedPresentationRequestInspectorDid = "mismatched_presentation_request_inspector_did",
|
|
21
|
+
InvalidLink = "invalid_link",
|
|
22
|
+
ConnectivityFailure = "connectivity_failure",
|
|
23
|
+
ClientRequestUnauthorized = "client_request_unauthorized",
|
|
24
|
+
ClientRequestRejected = "client_request_rejected",
|
|
25
|
+
IssuerDidUnresolvable = "issuer_did_unresolvable",
|
|
26
|
+
VerifierDidUnresolvable = "verifier_did_unresolvable",
|
|
27
|
+
RegistrationCheckInconclusive = "registration_check_inconclusive",
|
|
28
|
+
IssuerNotRegistered = "issuer_not_registered",
|
|
29
|
+
VerifierNotRegistered = "verifier_not_registered",
|
|
30
|
+
IssuerRequestInvalid = "issuer_request_invalid",
|
|
31
|
+
VerifierRequestInvalid = "verifier_request_invalid",
|
|
32
|
+
IssuerRequestUnauthorized = "issuer_request_unauthorized",
|
|
33
|
+
VerifierRequestUnauthorized = "verifier_request_unauthorized",
|
|
19
34
|
SdkError = "sdk_error"
|
|
20
35
|
}
|
|
21
36
|
//# sourceMappingURL=VCLErrorCode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VCLErrorCode.d.ts","sourceRoot":"","sources":["../../../../../../src/api/entities/error/VCLErrorCode.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,oBAAY,YAAY;IAEtB,2BAA2B,mCAAmC;IAC9D,gCAAgC,wCAAwC;IACxE,8BAA8B,sCAAsC;IACpE,+BAA+B,uCAAuC;IACtE,4BAA4B,oCAAoC;IAChE,+BAA+B,uCAAuC;IACtE,iCAAiC,yCAAyC;IAE1E,0BAA0B,kCAAkC;IAC5D,wBAAwB,gCAAgC;IACxD,6BAA6B,qCAAqC;IAClE,yCAAyC,kDAAkD;IAE3F,QAAQ,cAAc;CACvB"}
|
|
1
|
+
{"version":3,"file":"VCLErrorCode.d.ts","sourceRoot":"","sources":["../../../../../../src/api/entities/error/VCLErrorCode.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,oBAAY,YAAY;IAEtB,0BAA0B,mCAAmC;IAC7D,wBAAwB,gCAAgC;IAGxD,2BAA2B,mCAAmC;IAC9D,gCAAgC,wCAAwC;IACxE,8BAA8B,sCAAsC;IACpE,+BAA+B,uCAAuC;IACtE,4BAA4B,oCAAoC;IAChE,+BAA+B,uCAAuC;IACtE,iCAAiC,yCAAyC;IAE1E,0BAA0B,kCAAkC;IAC5D,wBAAwB,gCAAgC;IACxD,6BAA6B,qCAAqC;IAClE,yCAAyC,kDAAkD;IAE3F,WAAW,iBAAiB;IAC5B,mBAAmB,yBAAyB;IAC5C,yBAAyB,gCAAgC;IACzD,qBAAqB,4BAA4B;IACjD,qBAAqB,4BAA4B;IACjD,uBAAuB,8BAA8B;IACrD,6BAA6B,oCAAoC;IACjE,mBAAmB,0BAA0B;IAC7C,qBAAqB,4BAA4B;IACjD,oBAAoB,2BAA2B;IAC/C,sBAAsB,6BAA6B;IACnD,yBAAyB,gCAAgC;IACzD,2BAA2B,kCAAkC;IAE7D,QAAQ,cAAc;CACvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
export declare enum VCLErrorCodeCompatibilityMode {
|
|
8
|
+
Taxonomy = "taxonomy",
|
|
9
|
+
Legacy = "legacy"
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=VCLErrorCodeCompatibilityMode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLErrorCodeCompatibilityMode.d.ts","sourceRoot":"","sources":["../../../../../../src/api/entities/initialization/VCLErrorCodeCompatibilityMode.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,oBAAY,6BAA6B;IACvC,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB"}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { VCLEnvironment } from '../../VCLEnvironment';
|
|
8
8
|
import type { VCLCryptoServicesDescriptor } from './VCLCryptoServicesDescriptor';
|
|
9
|
+
import type { VCLErrorCodeCompatibilityMode } from './VCLErrorCodeCompatibilityMode';
|
|
9
10
|
import type { VCLXVnfProtocolVersion } from '../../VCLXVnfProtocolVersion';
|
|
10
11
|
export interface VCLInitializationDescriptor {
|
|
11
12
|
environment?: VCLEnvironment;
|
|
@@ -14,6 +15,11 @@ export interface VCLInitializationDescriptor {
|
|
|
14
15
|
isDebugOn?: boolean;
|
|
15
16
|
cryptoServicesDescriptor?: VCLCryptoServicesDescriptor;
|
|
16
17
|
isDirectIssuerCheckOn?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Controls whether native SDK errors use the new taxonomy codes or legacy
|
|
20
|
+
* backward-compatible mappings. Native SDKs default to taxonomy mode.
|
|
21
|
+
*/
|
|
22
|
+
errorCodeCompatibilityMode?: VCLErrorCodeCompatibilityMode;
|
|
17
23
|
/**
|
|
18
24
|
* Maximum number of native stack frames to include in bridged error diagnostics.
|
|
19
25
|
* Native implementations clamp values to the range `0..20`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VCLInitializationDescriptor.d.ts","sourceRoot":"","sources":["../../../../../../src/api/entities/initialization/VCLInitializationDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAE3E,MAAM,WAAW,2BAA2B;IAC1C,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,mBAAmB,CAAC,EAAE,sBAAsB,CAAC;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wBAAwB,CAAC,EAAE,2BAA2B,CAAC;IACvD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC"}
|
|
1
|
+
{"version":3,"file":"VCLInitializationDescriptor.d.ts","sourceRoot":"","sources":["../../../../../../src/api/entities/initialization/VCLInitializationDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AACrF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAE3E,MAAM,WAAW,2BAA2B;IAC1C,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,mBAAmB,CAAC,EAAE,sBAAsB,CAAC;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wBAAwB,CAAC,EAAE,2BAA2B,CAAC;IACvD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;OAGG;IACH,0BAA0B,CAAC,EAAE,6BAA6B,CAAC;IAC3D;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC"}
|
|
@@ -9,6 +9,7 @@ import { VCLEnvironment } from './api/VCLEnvironment';
|
|
|
9
9
|
import { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';
|
|
10
10
|
import { VCLCryptoServiceType } from './api/VCLCryptoServiceType';
|
|
11
11
|
import { VCLSignatureAlgorithm } from './api/VCLSignatureAlgorithm';
|
|
12
|
+
import { VCLErrorCodeCompatibilityMode } from './api/entities/initialization/VCLErrorCodeCompatibilityMode';
|
|
12
13
|
import type { VCLCryptoServicesDescriptor } from './api/entities/initialization/VCLCryptoServicesDescriptor';
|
|
13
14
|
import type { VCLJwtServiceUrls } from './api/entities/initialization/VCLJwtServiceUrls';
|
|
14
15
|
import type { VCLKeyServiceUrls } from './api/entities/initialization/VCLKeyServiceUrls';
|
|
@@ -69,6 +70,6 @@ import type { VCLAuthToken } from './api/entities/VCLAuthToken';
|
|
|
69
70
|
import type { VCLAuthTokenDescriptor } from './api/entities/VCLAuthTokenDescriptor';
|
|
70
71
|
import type { VCLDiagnostics, VCLNativeCauseDiagnostics, VCLErrorInit } from './api/entities/error/VCLError';
|
|
71
72
|
export default VclApi;
|
|
72
|
-
export { VCLEnvironment, VCLCryptoServiceType, VCLSignatureAlgorithm, VCLXVnfProtocolVersion, VCLCountryCodes, VCLServiceType, VCLIssuingType, VCLError, VCLStatusCode, VCLErrorCode, };
|
|
73
|
+
export { VCLEnvironment, VCLCryptoServiceType, VCLSignatureAlgorithm, VCLXVnfProtocolVersion, VCLCountryCodes, VCLServiceType, VCLIssuingType, VCLError, VCLStatusCode, VCLErrorCode, VCLErrorCodeCompatibilityMode, };
|
|
73
74
|
export type { Dictionary, VCLCountry, VCLCountries, VCLRegion, VCLRegions, VCLCredentialManifest, VCLCredentialManifestDescriptor, VCLCredentialManifestDescriptorByDeepLink, VCLCredentialManifestDescriptorByService, VCLCredentialType, VCLCredentialTypes, VCLCredentialTypeSchema, VCLCredentialTypeSchemas, VCLCredentialTypesUIFormSchema, VCLCredentialTypesUIFormSchemaDescriptor, VCLCredentialManifestDescriptorRefresh, VCLDeepLink, VCLExchange, VCLExchangeDescriptor, VCLFilter, VCLFinalizeOffersDescriptor, VCLGenerateOffersDescriptor, VCLJwt, VCLJwtVerifiableCredentials, VCLOffers, VCLOffer, VCLOrganization, VCLOrganizations, VCLOrganizationsSearchDescriptor, VCLPage, VCLPresentationRequest, VCLPresentationSubmission, VCLPublicJwk, VCLPushDelegate, VCLService, VCLServiceTypes, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, VCLInitializationDescriptor, VCLPresentationRequestDescriptor, VCLJwtDescriptor, VCLDidJwkDescriptor, VCLDidJwk, VCLCryptoServicesDescriptor, VCLJwtServiceUrls, VCLKeyServiceUrls, VCLRemoteCryptoServicesUrlsDescriptor, VCLAuthToken, VCLAuthTokenDescriptor, VCLDiagnostics, VCLNativeCauseDiagnostics, VCLErrorInit, };
|
|
74
75
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2DAA2D,CAAC;AAC7G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iD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AAQ,EACR,aAAa,EACb,YAAY,EACZ,6BAA6B,GAC9B,CAAC;AACF,YAAY,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,SAAS,EACT,UAAU,EACV,qBAAqB,EACrB,+BAA+B,EAC/B,yCAAyC,EACzC,wCAAwC,EACxC,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,8BAA8B,EAC9B,wCAAwC,EACxC,sCAAsC,EACtC,WAAW,EACX,WAAW,EACX,qBAAqB,EACrB,SAAS,EACT,2BAA2B,EAC3B,2BAA2B,EAC3B,MAAM,EACN,2BAA2B,EAC3B,SAAS,EACT,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,gCAAgC,EAChC,OAAO,EACP,sBAAsB,EACtB,yBAAyB,EACzB,YAAY,EACZ,eAAe,EACf,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,uBAAuB,EACvB,kBAAkB,EAClB,4BAA4B,EAC5B,2BAA2B,EAC3B,gCAAgC,EAChC,gBAAgB,EAChB,mBAAmB,EACnB,SAAS,EACT,2BAA2B,EAC3B,iBAAiB,EACjB,iBAAiB,EACjB,qCAAqC,EACrC,YAAY,EACZ,sBAAsB,EACtB,cAAc,EACd,yBAAyB,EACzB,YAAY,GACb,CAAC"}
|
package/package.json
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
export enum VCLErrorCode {
|
|
9
|
+
// Initialization
|
|
10
|
+
RemoteServicesUrlsNotFound = 'remote_services_urls_not_found',
|
|
11
|
+
InjectedServicesNotFound = 'injected_services_not_found',
|
|
12
|
+
|
|
9
13
|
// Credential issuer verification error codes:
|
|
10
14
|
CredentialTypeNotRegistered = 'credential_type_not_registered',
|
|
11
15
|
IssuerRequiresIdentityPermission = 'issuer_requires_identity_permission',
|
|
@@ -19,6 +23,20 @@ export enum VCLErrorCode {
|
|
|
19
23
|
MismatchedOfferIssuerDid = 'mismatched_offer_issuer_did',
|
|
20
24
|
MismatchedCredentialIssuerDid = 'mismatched_credential_issuer_did',
|
|
21
25
|
MismatchedPresentationRequestInspectorDid = 'mismatched_presentation_request_inspector_did',
|
|
26
|
+
// Error taxonomy
|
|
27
|
+
InvalidLink = 'invalid_link',
|
|
28
|
+
ConnectivityFailure = 'connectivity_failure',
|
|
29
|
+
ClientRequestUnauthorized = 'client_request_unauthorized',
|
|
30
|
+
ClientRequestRejected = 'client_request_rejected',
|
|
31
|
+
IssuerDidUnresolvable = 'issuer_did_unresolvable',
|
|
32
|
+
VerifierDidUnresolvable = 'verifier_did_unresolvable',
|
|
33
|
+
RegistrationCheckInconclusive = 'registration_check_inconclusive',
|
|
34
|
+
IssuerNotRegistered = 'issuer_not_registered',
|
|
35
|
+
VerifierNotRegistered = 'verifier_not_registered',
|
|
36
|
+
IssuerRequestInvalid = 'issuer_request_invalid',
|
|
37
|
+
VerifierRequestInvalid = 'verifier_request_invalid',
|
|
38
|
+
IssuerRequestUnauthorized = 'issuer_request_unauthorized',
|
|
39
|
+
VerifierRequestUnauthorized = 'verifier_request_unauthorized',
|
|
22
40
|
// General error
|
|
23
41
|
SdkError = 'sdk_error',
|
|
24
42
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { VCLEnvironment } from '../../VCLEnvironment';
|
|
9
9
|
import type { VCLCryptoServicesDescriptor } from './VCLCryptoServicesDescriptor';
|
|
10
|
+
import type { VCLErrorCodeCompatibilityMode } from './VCLErrorCodeCompatibilityMode';
|
|
10
11
|
import type { VCLXVnfProtocolVersion } from '../../VCLXVnfProtocolVersion';
|
|
11
12
|
|
|
12
13
|
export interface VCLInitializationDescriptor {
|
|
@@ -16,6 +17,11 @@ export interface VCLInitializationDescriptor {
|
|
|
16
17
|
isDebugOn?: boolean;
|
|
17
18
|
cryptoServicesDescriptor?: VCLCryptoServicesDescriptor;
|
|
18
19
|
isDirectIssuerCheckOn?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Controls whether native SDK errors use the new taxonomy codes or legacy
|
|
22
|
+
* backward-compatible mappings. Native SDKs default to taxonomy mode.
|
|
23
|
+
*/
|
|
24
|
+
errorCodeCompatibilityMode?: VCLErrorCodeCompatibilityMode;
|
|
19
25
|
/**
|
|
20
26
|
* Maximum number of native stack frames to include in bridged error diagnostics.
|
|
21
27
|
* Native implementations clamp values to the range `0..20`.
|
package/src/index.tsx
CHANGED
|
@@ -10,6 +10,7 @@ import { VCLEnvironment } from './api/VCLEnvironment';
|
|
|
10
10
|
import { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';
|
|
11
11
|
import { VCLCryptoServiceType } from './api/VCLCryptoServiceType';
|
|
12
12
|
import { VCLSignatureAlgorithm } from './api/VCLSignatureAlgorithm';
|
|
13
|
+
import { VCLErrorCodeCompatibilityMode } from './api/entities/initialization/VCLErrorCodeCompatibilityMode';
|
|
13
14
|
import type { VCLCryptoServicesDescriptor } from './api/entities/initialization/VCLCryptoServicesDescriptor';
|
|
14
15
|
import type { VCLJwtServiceUrls } from './api/entities/initialization/VCLJwtServiceUrls';
|
|
15
16
|
import type { VCLKeyServiceUrls } from './api/entities/initialization/VCLKeyServiceUrls';
|
|
@@ -86,6 +87,7 @@ export {
|
|
|
86
87
|
VCLError,
|
|
87
88
|
VCLStatusCode,
|
|
88
89
|
VCLErrorCode,
|
|
90
|
+
VCLErrorCodeCompatibilityMode,
|
|
89
91
|
};
|
|
90
92
|
export type {
|
|
91
93
|
Dictionary,
|