@velocitycareerlabs/vcl-react-native 1.15.6 → 1.16.3
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/android/build.gradle +1 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +5 -5
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/VCLErrorExtensions.kt +1 -2
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +64 -43
- package/ios/Utils/Converter.swift +45 -49
- package/ios/VclReactNative.mm +1 -1
- package/ios/VclReactNative.swift +3 -3
- package/lib/commonjs/api/VCLApi.js +1 -1
- package/lib/commonjs/api/VCLCryptoServiceType.js +19 -0
- package/lib/commonjs/api/VCLCryptoServiceType.js.map +1 -0
- package/lib/commonjs/api/entities/VCLDidJwk.js +4 -0
- package/lib/commonjs/api/entities/VCLPublicJwk.js +2 -0
- package/lib/commonjs/api/entities/{VCLJwkPublic.js.map → VCLPublicJwk.js.map} +1 -1
- package/lib/commonjs/api/entities/error/VCLError.js.map +1 -0
- package/lib/commonjs/api/entities/error/VCLErrorCode.js.map +1 -0
- package/lib/commonjs/api/entities/error/VCLStatusCode.js.map +1 -0
- package/lib/commonjs/api/entities/initialization/VCLCryptoServicesDescriptor.js +6 -0
- package/lib/commonjs/api/entities/initialization/VCLCryptoServicesDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/initialization/VCLInitializationDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/initialization/VCLJwtServiceUrls.js +2 -0
- package/lib/commonjs/api/entities/initialization/VCLJwtServiceUrls.js.map +1 -0
- package/lib/commonjs/api/entities/initialization/VCLKeyServiceUrls.js +2 -0
- package/lib/commonjs/api/entities/initialization/VCLKeyServiceUrls.js.map +1 -0
- package/lib/commonjs/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.js +6 -0
- package/lib/commonjs/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.js.map +1 -0
- package/lib/commonjs/index.js +3 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/api/VCLApi.js +1 -1
- package/lib/module/api/VCLApi.js.map +1 -1
- package/lib/module/api/VCLCryptoServiceType.js +13 -0
- package/lib/module/api/VCLCryptoServiceType.js.map +1 -0
- package/lib/module/api/entities/VCLDidJwk.js +1 -1
- package/lib/module/api/entities/VCLPublicJwk.js +2 -0
- package/lib/module/api/entities/{VCLJwkPublic.js.map → VCLPublicJwk.js.map} +1 -1
- package/lib/module/api/entities/error/VCLError.js.map +1 -0
- package/lib/module/api/entities/error/VCLErrorCode.js.map +1 -0
- package/lib/module/api/entities/error/VCLStatusCode.js.map +1 -0
- package/lib/module/api/entities/initialization/VCLCryptoServicesDescriptor.js +2 -0
- package/lib/module/api/entities/initialization/VCLCryptoServicesDescriptor.js.map +1 -0
- package/lib/module/api/entities/initialization/VCLInitializationDescriptor.js.map +1 -0
- package/lib/module/api/entities/initialization/VCLJwtServiceUrls.js +2 -0
- package/lib/module/api/entities/initialization/VCLJwtServiceUrls.js.map +1 -0
- package/lib/module/api/entities/initialization/VCLKeyServiceUrls.js +2 -0
- package/lib/module/api/entities/initialization/VCLKeyServiceUrls.js.map +1 -0
- package/lib/module/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.js +2 -0
- package/lib/module/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.js.map +1 -0
- package/lib/module/index.js +3 -5
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/api/VCLApi.d.ts +3 -3
- package/lib/typescript/api/VCLApi.d.ts.map +1 -1
- package/lib/typescript/api/{VCLKeyServiceType.d.ts → VCLCryptoServiceType.d.ts} +2 -2
- package/lib/typescript/api/VCLCryptoServiceType.d.ts.map +1 -0
- package/lib/typescript/api/entities/VCLDidJwk.d.ts +9 -4
- package/lib/typescript/api/entities/VCLDidJwk.d.ts.map +1 -1
- package/lib/typescript/api/entities/VCLPresentationRequest.d.ts +2 -2
- package/lib/typescript/api/entities/{VCLJwkPublic.d.ts → VCLPublicJwk.d.ts} +2 -2
- package/lib/typescript/api/entities/VCLPublicJwk.d.ts.map +1 -0
- package/lib/typescript/api/entities/error/VCLError.d.ts.map +1 -0
- package/lib/typescript/api/entities/error/VCLErrorCode.d.ts.map +1 -0
- package/lib/typescript/api/entities/error/VCLStatusCode.d.ts.map +1 -0
- package/lib/typescript/api/entities/initialization/VCLCryptoServicesDescriptor.d.ts +13 -0
- package/lib/typescript/api/entities/initialization/VCLCryptoServicesDescriptor.d.ts.map +1 -0
- package/lib/typescript/api/entities/initialization/VCLInitializationDescriptor.d.ts +17 -0
- package/lib/typescript/api/entities/initialization/VCLInitializationDescriptor.d.ts.map +1 -0
- package/lib/typescript/api/entities/initialization/VCLJwtServiceUrls.d.ts +11 -0
- package/lib/typescript/api/entities/initialization/VCLJwtServiceUrls.d.ts.map +1 -0
- package/lib/typescript/api/entities/initialization/VCLKeyServiceUrls.d.ts +10 -0
- package/lib/typescript/api/entities/initialization/VCLKeyServiceUrls.d.ts.map +1 -0
- package/lib/typescript/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.d.ts +13 -0
- package/lib/typescript/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +11 -6
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/VCLApi.ts +4 -4
- package/src/api/{VCLKeyServiceType.ts → VCLCryptoServiceType.ts} +1 -1
- package/src/api/entities/VCLDidJwk.ts +10 -4
- package/src/api/entities/VCLPresentationRequest.ts +2 -2
- package/src/api/entities/{VCLJwkPublic.ts → VCLPublicJwk.ts} +1 -1
- package/src/api/entities/initialization/VCLCryptoServicesDescriptor.ts +14 -0
- package/src/api/entities/{VCLInitializationDescriptor.ts → initialization/VCLInitializationDescriptor.ts} +4 -4
- package/src/api/entities/initialization/VCLJwtServiceUrls.ts +11 -0
- package/src/api/entities/initialization/VCLKeyServiceUrls.ts +10 -0
- package/src/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.ts +14 -0
- package/src/index.tsx +16 -8
- package/velocitycareerlabs-vcl-react-native.podspec +2 -2
- package/lib/commonjs/api/VCLKeyServiceType.js +0 -19
- package/lib/commonjs/api/VCLKeyServiceType.js.map +0 -1
- package/lib/commonjs/api/entities/VCLError.js.map +0 -1
- package/lib/commonjs/api/entities/VCLErrorCode.js.map +0 -1
- package/lib/commonjs/api/entities/VCLInitializationDescriptor.js.map +0 -1
- package/lib/commonjs/api/entities/VCLJwkPublic.js +0 -2
- package/lib/commonjs/api/entities/VCLStatusCode.js.map +0 -1
- package/lib/module/api/VCLKeyServiceType.js +0 -13
- package/lib/module/api/VCLKeyServiceType.js.map +0 -1
- package/lib/module/api/entities/VCLError.js.map +0 -1
- package/lib/module/api/entities/VCLErrorCode.js.map +0 -1
- package/lib/module/api/entities/VCLInitializationDescriptor.js.map +0 -1
- package/lib/module/api/entities/VCLJwkPublic.js +0 -2
- package/lib/module/api/entities/VCLStatusCode.js.map +0 -1
- package/lib/typescript/api/VCLKeyServiceType.d.ts.map +0 -1
- package/lib/typescript/api/entities/VCLError.d.ts.map +0 -1
- package/lib/typescript/api/entities/VCLErrorCode.d.ts.map +0 -1
- package/lib/typescript/api/entities/VCLInitializationDescriptor.d.ts +0 -17
- package/lib/typescript/api/entities/VCLInitializationDescriptor.d.ts.map +0 -1
- package/lib/typescript/api/entities/VCLJwkPublic.d.ts.map +0 -1
- package/lib/typescript/api/entities/VCLStatusCode.d.ts.map +0 -1
- /package/lib/commonjs/api/entities/{VCLError.js → error/VCLError.js} +0 -0
- /package/lib/commonjs/api/entities/{VCLErrorCode.js → error/VCLErrorCode.js} +0 -0
- /package/lib/commonjs/api/entities/{VCLStatusCode.js → error/VCLStatusCode.js} +0 -0
- /package/lib/commonjs/api/entities/{VCLInitializationDescriptor.js → initialization/VCLInitializationDescriptor.js} +0 -0
- /package/lib/module/api/entities/{VCLError.js → error/VCLError.js} +0 -0
- /package/lib/module/api/entities/{VCLErrorCode.js → error/VCLErrorCode.js} +0 -0
- /package/lib/module/api/entities/{VCLStatusCode.js → error/VCLStatusCode.js} +0 -0
- /package/lib/module/api/entities/{VCLInitializationDescriptor.js → initialization/VCLInitializationDescriptor.js} +0 -0
- /package/lib/typescript/api/entities/{VCLError.d.ts → error/VCLError.d.ts} +0 -0
- /package/lib/typescript/api/entities/{VCLErrorCode.d.ts → error/VCLErrorCode.d.ts} +0 -0
- /package/lib/typescript/api/entities/{VCLStatusCode.d.ts → error/VCLStatusCode.d.ts} +0 -0
- /package/src/api/entities/{VCLError.ts → error/VCLError.ts} +0 -0
- /package/src/api/entities/{VCLErrorCode.ts → error/VCLErrorCode.ts} +0 -0
- /package/src/api/entities/{VCLStatusCode.ts → error/VCLStatusCode.ts} +0 -0
package/android/build.gradle
CHANGED
|
@@ -29,13 +29,13 @@ import io.velocitycareerlabs.reactnative.utlis.Converter.mapToFinalizedOffersDes
|
|
|
29
29
|
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToGenerateOffersDescriptor
|
|
30
30
|
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToJwt
|
|
31
31
|
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToOrganizationsSearchDescriptor
|
|
32
|
-
import io.velocitycareerlabs.reactnative.utlis.Converter.
|
|
32
|
+
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToPublicJwk
|
|
33
33
|
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToToken
|
|
34
34
|
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToVerifiedProfileDescriptor
|
|
35
35
|
import io.velocitycareerlabs.reactnative.utlis.Converter.verifiedProfileToMap
|
|
36
36
|
import io.velocitycareerlabs.api.VCLProvider
|
|
37
|
-
import io.velocitycareerlabs.api.entities.VCLError
|
|
38
|
-
import io.velocitycareerlabs.api.entities.VCLInitializationDescriptor
|
|
37
|
+
import io.velocitycareerlabs.api.entities.error.VCLError
|
|
38
|
+
import io.velocitycareerlabs.api.entities.initialization.VCLInitializationDescriptor
|
|
39
39
|
import io.velocitycareerlabs.reactnative.extensions.toThrowable
|
|
40
40
|
import io.velocitycareerlabs.reactnative.utlis.Converter.didJwkToMap
|
|
41
41
|
import io.velocitycareerlabs.reactnative.utlis.Converter.mapToDidJwk
|
|
@@ -325,11 +325,11 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
|
|
|
325
325
|
@ReactMethod
|
|
326
326
|
fun verifyJwt(
|
|
327
327
|
jwtMap: ReadableMap,
|
|
328
|
-
|
|
328
|
+
publicJwkMap: ReadableMap,
|
|
329
329
|
promise: Promise
|
|
330
330
|
) {
|
|
331
331
|
try {
|
|
332
|
-
vcl.verifyJwt(mapToJwt(jwtMap),
|
|
332
|
+
vcl.verifyJwt(mapToJwt(jwtMap), mapToPublicJwk(publicJwkMap),
|
|
333
333
|
{
|
|
334
334
|
promise.resolve(it)
|
|
335
335
|
},
|
package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/VCLErrorExtensions.kt
CHANGED
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
package io.velocitycareerlabs.reactnative.extensions
|
|
9
9
|
|
|
10
|
-
import io.velocitycareerlabs.api.entities.VCLError
|
|
11
|
-
import org.json.JSONObject
|
|
10
|
+
import io.velocitycareerlabs.api.entities.error.VCLError
|
|
12
11
|
|
|
13
12
|
fun VCLError.toThrowable() =
|
|
14
13
|
Throwable(this.toJsonObject().toString())
|
|
@@ -5,11 +5,16 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
package io.velocitycareerlabs.reactnative.utlis
|
|
9
9
|
|
|
10
10
|
import com.facebook.react.bridge.*
|
|
11
11
|
import io.velocitycareerlabs.api.*
|
|
12
12
|
import io.velocitycareerlabs.api.entities.*
|
|
13
|
+
import io.velocitycareerlabs.api.entities.initialization.VCLCryptoServicesDescriptor
|
|
14
|
+
import io.velocitycareerlabs.api.entities.initialization.VCLInitializationDescriptor
|
|
15
|
+
import io.velocitycareerlabs.api.entities.initialization.VCLJwtServiceUrls
|
|
16
|
+
import io.velocitycareerlabs.api.entities.initialization.VCLKeyServiceUrls
|
|
17
|
+
import io.velocitycareerlabs.api.entities.initialization.VCLRemoteCryptoServicesUrlsDescriptor
|
|
13
18
|
import io.velocitycareerlabs.reactnative.extensions.*
|
|
14
19
|
import org.json.JSONArray
|
|
15
20
|
import org.json.JSONObject
|
|
@@ -20,41 +25,50 @@ object Converter {
|
|
|
20
25
|
fun mapToInitializationDescriptor(
|
|
21
26
|
initializationDescriptorMap: ReadableMap
|
|
22
27
|
) = VCLInitializationDescriptor(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
environment = mapToEnvironment(
|
|
29
|
+
initializationDescriptorMap.getStringOpt("environment")
|
|
30
|
+
),
|
|
31
|
+
xVnfProtocolVersion = mapToXVnfProtocolVersion(
|
|
32
|
+
(initializationDescriptorMap.getStringOpt("xVnfProtocolVersion"))
|
|
33
|
+
),
|
|
34
|
+
cacheSequence = initializationDescriptorMap.getIntOpt("cacheSequence") ?: 0,
|
|
35
|
+
isDebugOn = initializationDescriptorMap.getBooleanOpt("isDebugOn") ?: false,
|
|
36
|
+
cryptoServicesDescriptor = mapToCryptoServicesDescriptor(
|
|
37
|
+
initializationDescriptorMap.getMapOpt("cryptoServicesDescriptor")
|
|
38
|
+
)
|
|
34
39
|
)
|
|
35
40
|
|
|
36
41
|
private fun mapToEnvironment(environment: String?) =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
VCLEnvironment.fromString(environment ?: "")
|
|
43
|
+
|
|
44
|
+
private fun mapToCryptoServicesDescriptor(
|
|
45
|
+
cryptoServicesDescriptorMap: ReadableMap?
|
|
46
|
+
): VCLCryptoServicesDescriptor {
|
|
47
|
+
val cryptoServiceType =
|
|
48
|
+
VCLCryptoServiceType.fromString(
|
|
49
|
+
cryptoServicesDescriptorMap?.getStringOpt("cryptoServiceType") ?: ""
|
|
50
|
+
)
|
|
51
|
+
val remoteCryptoServicesUrlsDescriptorMap =
|
|
52
|
+
cryptoServicesDescriptorMap?.getMap("remoteCryptoServicesUrlsDescriptor")
|
|
53
|
+
val keyServiceUrls = remoteCryptoServicesUrlsDescriptorMap?.getMapOpt("keyServiceUrls")
|
|
54
|
+
val jwtServiceUrls = remoteCryptoServicesUrlsDescriptorMap?.getMapOpt("jwtServiceUrls")
|
|
55
|
+
val remoteCryptoServicesUrlsDescriptor = VCLRemoteCryptoServicesUrlsDescriptor(
|
|
56
|
+
keyServiceUrls = VCLKeyServiceUrls(
|
|
57
|
+
createDidKeyServiceUrl = keyServiceUrls?.getStringOpt("createDidKeyServiceUrl") ?: ""
|
|
58
|
+
),
|
|
59
|
+
jwtServiceUrls = VCLJwtServiceUrls(
|
|
60
|
+
jwtSignServiceUrl = jwtServiceUrls?.getStringOpt("jwtSignServiceUrl") ?: "",
|
|
61
|
+
jwtVerifyServiceUrl = jwtServiceUrls?.getStringOpt("jwtVerifyServiceUrl") ?: ""
|
|
62
|
+
)
|
|
63
|
+
)
|
|
64
|
+
return VCLCryptoServicesDescriptor(
|
|
65
|
+
cryptoServiceType = cryptoServiceType,
|
|
66
|
+
remoteCryptoServicesUrlsDescriptor = remoteCryptoServicesUrlsDescriptor
|
|
67
|
+
)
|
|
68
|
+
}
|
|
51
69
|
|
|
52
70
|
private fun mapToXVnfProtocolVersion(xVnfProtocolVersion: String?) =
|
|
53
|
-
|
|
54
|
-
VCLXVnfProtocolVersion.XVnfProtocolVersion1.value -> VCLXVnfProtocolVersion.XVnfProtocolVersion1
|
|
55
|
-
VCLXVnfProtocolVersion.XVnfProtocolVersion2.value -> VCLXVnfProtocolVersion.XVnfProtocolVersion2
|
|
56
|
-
else -> VCLXVnfProtocolVersion.XVnfProtocolVersion1
|
|
57
|
-
}
|
|
71
|
+
VCLXVnfProtocolVersion.fromString(xVnfProtocolVersion ?: "")
|
|
58
72
|
|
|
59
73
|
fun regionToMap(
|
|
60
74
|
region: VCLRegion
|
|
@@ -186,7 +200,7 @@ object Converter {
|
|
|
186
200
|
presentationRequestMap: ReadableMap?
|
|
187
201
|
) = VCLPresentationRequest(
|
|
188
202
|
mapToJwt(presentationRequestMap?.getMapOpt("jwt")),
|
|
189
|
-
|
|
203
|
+
mapToPublicJwk(presentationRequestMap?.getMapOpt("publicJwk")),
|
|
190
204
|
mapToDeepLink(presentationRequestMap?.getMapOpt("deepLink"))
|
|
191
205
|
)
|
|
192
206
|
|
|
@@ -198,8 +212,8 @@ object Converter {
|
|
|
198
212
|
jwtMap.putString("encodedJwt", presentationRequest.jwt.encodedJwt)
|
|
199
213
|
presentationRequestMap.putMap("jwt", jwtMap)
|
|
200
214
|
val jwkMap = Arguments.createMap()
|
|
201
|
-
jwkMap.putString("valueStr", presentationRequest.
|
|
202
|
-
presentationRequestMap.putMap("
|
|
215
|
+
jwkMap.putString("valueStr", presentationRequest.publicJwk.valueStr)
|
|
216
|
+
presentationRequestMap.putMap("publicJwk", jwkMap)
|
|
203
217
|
presentationRequestMap.putString("iss", presentationRequest.iss)
|
|
204
218
|
presentationRequestMap.putString("exchangeId", presentationRequest.exchangeId)
|
|
205
219
|
presentationRequestMap.putString(
|
|
@@ -467,7 +481,10 @@ object Converter {
|
|
|
467
481
|
credentialManifestMap.putString("iss", credentialManifest.iss)
|
|
468
482
|
credentialManifestMap.putString("exchangeId", credentialManifest.exchangeId)
|
|
469
483
|
credentialManifestMap.putString("vendorOriginContext", credentialManifest.vendorOriginContext)
|
|
470
|
-
credentialManifestMap.putMap(
|
|
484
|
+
credentialManifestMap.putMap(
|
|
485
|
+
"verifiedProfile",
|
|
486
|
+
credentialManifest.verifiedProfile.payload.toReadableMap()
|
|
487
|
+
)
|
|
471
488
|
return credentialManifestMap
|
|
472
489
|
}
|
|
473
490
|
|
|
@@ -481,7 +498,9 @@ object Converter {
|
|
|
481
498
|
return VCLCredentialManifest(
|
|
482
499
|
jwt = jwt,
|
|
483
500
|
vendorOriginContext = vendorOriginContext,
|
|
484
|
-
verifiedProfile = VCLVerifiedProfile(
|
|
501
|
+
verifiedProfile = VCLVerifiedProfile(
|
|
502
|
+
payload = verifiedProfileMap?.toJsonObject() ?: JSONObject()
|
|
503
|
+
)
|
|
485
504
|
)
|
|
486
505
|
}
|
|
487
506
|
|
|
@@ -549,8 +568,8 @@ object Converter {
|
|
|
549
568
|
fun mapToJwt(jwtMap: ReadableMap?) =
|
|
550
569
|
VCLJwt(encodedJwt = jwtMap?.getStringOpt("encodedJwt") ?: "")
|
|
551
570
|
|
|
552
|
-
fun
|
|
553
|
-
|
|
571
|
+
fun mapToPublicJwk(publicJwkMap: ReadableMap?) =
|
|
572
|
+
VCLPublicJwk(valueStr = publicJwkMap?.getStringOpt("valueStr") ?: "")
|
|
554
573
|
|
|
555
574
|
fun mapToFinalizedOffersDescriptor(
|
|
556
575
|
finalizedOffersDescriptorMap: ReadableMap
|
|
@@ -620,9 +639,10 @@ object Converter {
|
|
|
620
639
|
fun didJwkToMap(didJwk: VCLDidJwk?): ReadableMap? {
|
|
621
640
|
didJwk?.let {
|
|
622
641
|
val didJwkMap = Arguments.createMap()
|
|
623
|
-
didJwkMap.putString("
|
|
624
|
-
didJwkMap.
|
|
642
|
+
didJwkMap.putString("did", it.did)
|
|
643
|
+
didJwkMap.putMap("publicJwk", it.publicJwk.valueJson.toReadableMap())
|
|
625
644
|
didJwkMap.putString("kid", it.kid)
|
|
645
|
+
didJwkMap.putString("keyId", it.keyId)
|
|
626
646
|
return didJwkMap
|
|
627
647
|
}
|
|
628
648
|
return null
|
|
@@ -631,9 +651,10 @@ object Converter {
|
|
|
631
651
|
fun mapToDidJwk(didJwkMap: ReadableMap?): VCLDidJwk? {
|
|
632
652
|
didJwkMap?.let {
|
|
633
653
|
return VCLDidJwk(
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
kid = it.getStringOpt("kid") ?: ""
|
|
654
|
+
did = it.getStringOpt("did") ?: "",
|
|
655
|
+
publicJwk = mapToPublicJwk(it.getMap("publicJwk")),
|
|
656
|
+
kid = it.getStringOpt("kid") ?: "",
|
|
657
|
+
keyId = it.getStringOpt("keyId") ?: ""
|
|
637
658
|
)
|
|
638
659
|
}
|
|
639
660
|
return null
|
|
@@ -18,58 +18,52 @@ func dictionaryToInitializationDescriptor(
|
|
|
18
18
|
environment: dictionaryToEnvironment(
|
|
19
19
|
initializationDescriptorDictionary["environment"] as? String
|
|
20
20
|
),
|
|
21
|
-
keyServiceType: dictionaryToKeyServiceType(
|
|
22
|
-
initializationDescriptorDictionary["keyServiceType"] as? String
|
|
23
|
-
),
|
|
24
21
|
xVnfProtocolVersion: dictionaryToXVnfProtocolVersion (
|
|
25
22
|
initializationDescriptorDictionary["xVnfProtocolVersion"] as? String
|
|
26
23
|
),
|
|
27
24
|
cacheSequence: initializationDescriptorDictionary["cacheSequence"] as? Int ?? 0,
|
|
28
|
-
isDebugOn: initializationDescriptorDictionary["isDebugOn"] as? Bool ?? false
|
|
25
|
+
isDebugOn: initializationDescriptorDictionary["isDebugOn"] as? Bool ?? false,
|
|
26
|
+
cryptoServicesDescriptor: dictionaryToCryptoServicesDescriptor(
|
|
27
|
+
initializationDescriptorDictionary["cryptoServicesDescriptor"] as? [String : Any]
|
|
28
|
+
)
|
|
29
29
|
)
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
private func dictionaryToEnvironment(
|
|
33
33
|
_ environment: String?
|
|
34
34
|
) -> VCLEnvironment {
|
|
35
|
-
|
|
36
|
-
case VCLEnvironment.Dev.rawValue:
|
|
37
|
-
return VCLEnvironment.Dev
|
|
38
|
-
case VCLEnvironment.Qa.rawValue:
|
|
39
|
-
return VCLEnvironment.Qa
|
|
40
|
-
case VCLEnvironment.Staging.rawValue:
|
|
41
|
-
return VCLEnvironment.Staging
|
|
42
|
-
case VCLEnvironment.Prod.rawValue:
|
|
43
|
-
return VCLEnvironment.Prod
|
|
44
|
-
default:
|
|
45
|
-
return VCLEnvironment.Prod
|
|
46
|
-
}
|
|
35
|
+
return VCLEnvironment.fromString(value: environment ?? "")
|
|
47
36
|
}
|
|
48
37
|
|
|
49
|
-
private func
|
|
50
|
-
_
|
|
51
|
-
) ->
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
38
|
+
private func dictionaryToCryptoServicesDescriptor(
|
|
39
|
+
_ cryptoServicesDescriptorDictionary: [String: Any]?
|
|
40
|
+
) -> VCLCryptoServicesDescriptor {
|
|
41
|
+
let cryptoServiceType =
|
|
42
|
+
VCLCryptoServiceType.fromString(
|
|
43
|
+
value: cryptoServicesDescriptorDictionary?["cryptoServiceType"] as? String ?? ""
|
|
44
|
+
)
|
|
45
|
+
let remoteCryptoServicesUrlsDescriptorDictionary = cryptoServicesDescriptorDictionary?["remoteCryptoServicesUrlsDescriptor"] as? [String: Any]
|
|
46
|
+
let keyServiceUrls = remoteCryptoServicesUrlsDescriptorDictionary?["keyServiceUrls"] as? [String: Any]
|
|
47
|
+
let jwtServiceUrls = remoteCryptoServicesUrlsDescriptorDictionary?["jwtServiceUrls"] as? [String: Any]
|
|
48
|
+
let remoteCryptoServicesUrlsDescriptor = VCLRemoteCryptoServicesUrlsDescriptor(
|
|
49
|
+
keyServiceUrls: VCLKeyServiceUrls(
|
|
50
|
+
createDidKeyServiceUrl: keyServiceUrls?["createDidKeyServiceUrl"] as? String ?? ""
|
|
51
|
+
),
|
|
52
|
+
jwtServiceUrls: VCLJwtServiceUrls(
|
|
53
|
+
jwtSignServiceUrl: jwtServiceUrls?["jwtSignServiceUrl"] as? String ?? "",
|
|
54
|
+
jwtVerifyServiceUrl: jwtServiceUrls?["jwtVerifyServiceUrl"] as? String ?? ""
|
|
55
|
+
)
|
|
56
|
+
)
|
|
57
|
+
return VCLCryptoServicesDescriptor(
|
|
58
|
+
cryptoServiceType: cryptoServiceType,
|
|
59
|
+
remoteCryptoServicesUrlsDescriptor: remoteCryptoServicesUrlsDescriptor
|
|
60
|
+
)
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
private func dictionaryToXVnfProtocolVersion(
|
|
63
64
|
_ xVnfProtocolVersion: String?
|
|
64
65
|
) -> VCLXVnfProtocolVersion {
|
|
65
|
-
|
|
66
|
-
case VCLXVnfProtocolVersion.XVnfProtocolVersion1.rawValue:
|
|
67
|
-
return VCLXVnfProtocolVersion.XVnfProtocolVersion1
|
|
68
|
-
case VCLXVnfProtocolVersion.XVnfProtocolVersion2.rawValue:
|
|
69
|
-
return VCLXVnfProtocolVersion.XVnfProtocolVersion2
|
|
70
|
-
default:
|
|
71
|
-
return VCLXVnfProtocolVersion.XVnfProtocolVersion1
|
|
72
|
-
}
|
|
66
|
+
return VCLXVnfProtocolVersion.fromString(value: xVnfProtocolVersion ?? "")
|
|
73
67
|
}
|
|
74
68
|
|
|
75
69
|
func regionToDictionary(
|
|
@@ -205,7 +199,7 @@ func dictionaryToPresentationRequest(
|
|
|
205
199
|
) -> VCLPresentationRequest {
|
|
206
200
|
return VCLPresentationRequest(
|
|
207
201
|
jwt: dictionaryToJwt(presentationRequestDictionary?["jwt"] as? [String : Any]),
|
|
208
|
-
|
|
202
|
+
publicJwk: dictionaryToPublicJwk(presentationRequestDictionary?["publicJwk"] as? [String: Any]),
|
|
209
203
|
deepLink: dictionaryToDeepLink(presentationRequestDictionary?["deepLink"] as? [String : Any])
|
|
210
204
|
)
|
|
211
205
|
}
|
|
@@ -215,9 +209,9 @@ func presentationRequestToDictionary(
|
|
|
215
209
|
) -> [String: Any] {
|
|
216
210
|
var presentationRequestDictionary = [String: Any]()
|
|
217
211
|
presentationRequestDictionary["jwt"] = ["encodedJwt": presentationRequest.jwt.encodedJwt]
|
|
218
|
-
var
|
|
219
|
-
|
|
220
|
-
presentationRequestDictionary["
|
|
212
|
+
var publicJwkDictionary = [String: Any]()
|
|
213
|
+
publicJwkDictionary["valueStr"] = presentationRequest.publicJwk.valueStr
|
|
214
|
+
presentationRequestDictionary["publicJwk"] = publicJwkDictionary
|
|
221
215
|
presentationRequestDictionary["iss"] = presentationRequest.iss
|
|
222
216
|
presentationRequestDictionary["exchangeId"] = presentationRequest.exchangeId
|
|
223
217
|
presentationRequestDictionary["presentationDefinitionId"] = presentationRequest.presentationDefinitionId
|
|
@@ -525,10 +519,10 @@ func dictionaryToJwt(
|
|
|
525
519
|
return VCLJwt(encodedJwt: jwtDictionary?["encodedJwt"] as? String ?? "")
|
|
526
520
|
}
|
|
527
521
|
|
|
528
|
-
func
|
|
529
|
-
_
|
|
530
|
-
) ->
|
|
531
|
-
return
|
|
522
|
+
func dictionaryToPublicJwk(
|
|
523
|
+
_ publicJwkDictionary: [String: Any]?
|
|
524
|
+
) -> VCLPublicJwk {
|
|
525
|
+
return VCLPublicJwk(valueStr: (publicJwkDictionary?["valueStr"] as? String ?? ""))
|
|
532
526
|
}
|
|
533
527
|
|
|
534
528
|
func dictionaryToFinalizedOffersDescriptor(
|
|
@@ -600,9 +594,10 @@ func dictionaryToJwtDescriptor(
|
|
|
600
594
|
func didJwkToDictionary(_ didJwk: VCLDidJwk?) -> [String: Any]? {
|
|
601
595
|
if let didJwk = didJwk {
|
|
602
596
|
return [
|
|
603
|
-
"
|
|
604
|
-
"
|
|
605
|
-
"kid": didJwk.kid
|
|
597
|
+
"did": didJwk.did,
|
|
598
|
+
"publicJwk": didJwk.publicJwk.valueDict,
|
|
599
|
+
"kid": didJwk.kid,
|
|
600
|
+
"keyId": didJwk.keyId
|
|
606
601
|
]
|
|
607
602
|
}
|
|
608
603
|
return nil
|
|
@@ -611,9 +606,10 @@ func didJwkToDictionary(_ didJwk: VCLDidJwk?) -> [String: Any]? {
|
|
|
611
606
|
func dictionaryToJwk(_ didJwkDictionary: [String: Any]?) -> VCLDidJwk? {
|
|
612
607
|
if let didJwkDictionary = didJwkDictionary {
|
|
613
608
|
return VCLDidJwk(
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
kid: didJwkDictionary["kid"] as? String ?? ""
|
|
609
|
+
did: didJwkDictionary["did"] as? String ?? "",
|
|
610
|
+
publicJwk: dictionaryToPublicJwk(didJwkDictionary["publicJwk"] as? [String: Any]),
|
|
611
|
+
kid: didJwkDictionary["kid"] as? String ?? "",
|
|
612
|
+
keyId: didJwkDictionary["keyId"] as? String ?? ""
|
|
617
613
|
)
|
|
618
614
|
}
|
|
619
615
|
return nil
|
package/ios/VclReactNative.mm
CHANGED
|
@@ -67,7 +67,7 @@ RCT_EXTERN_METHOD(getVerifiedProfile:(NSDictionary*)verifiedProfileDescriptorDic
|
|
|
67
67
|
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
68
68
|
|
|
69
69
|
RCT_EXTERN_METHOD(verifyJwt:(NSDictionary*)jwtDictionary
|
|
70
|
-
|
|
70
|
+
withPublicJwkDictionary:(NSDictionary*)publicJwkDictionary
|
|
71
71
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
72
72
|
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
73
73
|
|
package/ios/VclReactNative.swift
CHANGED
|
@@ -241,15 +241,15 @@ class VclReactNative: NSObject {
|
|
|
241
241
|
})
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
@objc(verifyJwt:
|
|
244
|
+
@objc(verifyJwt:withPublicJwkDictionary:withResolver:withRejecter:)
|
|
245
245
|
func verifyJwt(
|
|
246
246
|
jwtDictionary: [String: Any],
|
|
247
|
-
|
|
247
|
+
publicJwkDictionary: [String: Any],
|
|
248
248
|
resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
|
|
249
249
|
) {
|
|
250
250
|
vcl.verifyJwt(
|
|
251
251
|
jwt: dictionaryToJwt(jwtDictionary),
|
|
252
|
-
|
|
252
|
+
publicJwk: dictionaryToPublicJwk(publicJwkDictionary),
|
|
253
253
|
successHandler: {
|
|
254
254
|
resolve($0)
|
|
255
255
|
},
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.VclApi = void 0;
|
|
7
7
|
var _reactNative = require("react-native");
|
|
8
|
-
var _VCLError = require("./entities/VCLError");
|
|
8
|
+
var _VCLError = require("./entities/error/VCLError");
|
|
9
9
|
/**
|
|
10
10
|
* Created by Michael Avoyan.
|
|
11
11
|
*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.VCLCryptoServiceType = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Created by Michael Avoyan.
|
|
9
|
+
*
|
|
10
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
11
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
*/
|
|
13
|
+
let VCLCryptoServiceType = /*#__PURE__*/function (VCLCryptoServiceType) {
|
|
14
|
+
VCLCryptoServiceType["Local"] = "local";
|
|
15
|
+
VCLCryptoServiceType["Remote"] = "remote";
|
|
16
|
+
return VCLCryptoServiceType;
|
|
17
|
+
}({});
|
|
18
|
+
exports.VCLCryptoServiceType = VCLCryptoServiceType;
|
|
19
|
+
//# sourceMappingURL=VCLCryptoServiceType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VCLCryptoServiceType","exports"],"sourceRoot":"../../../src","sources":["api/VCLCryptoServiceType.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA;AAAAC,OAAA,CAAAD,oBAAA,GAAAA,oBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/entities/
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/entities/VCLPublicJwk.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VCLError","Error","constructor","error","errorJson","JSON","parse","message","payload","errorCode","statusCode","parseInt","e","stringify","exports"],"sourceRoot":"../../../../../src","sources":["api/entities/error/VCLError.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,QAAQ,SAASC,KAAK,CAAC;EAMlCC,WAAWA,CAACC,KAAU,EAAE;IACtB,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI;MACF,MAAMC,SAAS,GAAGC,IAAI,CAACC,KAAK,CAACH,KAAK,CAACI,OAAO,CAAC;MAC3C,IAAI,CAACC,OAAO,GAAGJ,SAAS,CAACI,OAAO;MAChC,IAAI,CAACL,KAAK,GAAGC,SAAS,CAACD,KAAK;MAC5B,IAAI,CAACM,SAAS,GAAGL,SAAS,CAACK,SAAS;MACpC,IAAI,CAACF,OAAO,GAAGH,SAAS,CAACG,OAAO;MAChC,IAAI,CAACG,UAAU,GAAGC,QAAQ,CAACP,SAAS,CAACM,UAAU,EAAE,EAAE,CAAC;IACtD,CAAC,CAAC,OAAOE,CAAC,EAAE;MACV,IAAI,CAACL,OAAO,GAAGF,IAAI,CAACQ,SAAS,CAACV,KAAK,CAAC;IACtC;EACF;AACF;AAACW,OAAA,CAAAd,QAAA,GAAAA,QAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VCLErrorCode","exports"],"sourceRoot":"../../../../../src","sources":["api/entities/error/VCLErrorCode.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAAAC,OAAA,CAAAD,YAAA,GAAAA,YAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VCLStatusCode","exports"],"sourceRoot":"../../../../../src","sources":["api/entities/error/VCLStatusCode.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,aAAa,0BAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAAAC,OAAA,CAAAD,aAAA,GAAAA,aAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/entities/initialization/VCLCryptoServicesDescriptor.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/entities/initialization/VCLInitializationDescriptor.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/entities/initialization/VCLJwtServiceUrls.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/entities/initialization/VCLKeyServiceUrls.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.ts"],"mappings":""}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -58,17 +58,15 @@ var _VCLXVnfProtocolVersion = require("./api/VCLXVnfProtocolVersion");
|
|
|
58
58
|
var _VCLCountries = require("./api/entities/VCLCountries");
|
|
59
59
|
var _VCLServiceType = require("./api/entities/VCLServiceType");
|
|
60
60
|
var _VCLIssuingType = require("./api/entities/VCLIssuingType");
|
|
61
|
-
var _VCLError = require("./api/entities/VCLError");
|
|
62
|
-
var _VCLStatusCode = require("./api/entities/VCLStatusCode");
|
|
63
|
-
var _VCLErrorCode = require("./api/entities/VCLErrorCode");
|
|
61
|
+
var _VCLError = require("./api/entities/error/VCLError");
|
|
62
|
+
var _VCLStatusCode = require("./api/entities/error/VCLStatusCode");
|
|
63
|
+
var _VCLErrorCode = require("./api/entities/error/VCLErrorCode");
|
|
64
64
|
/**
|
|
65
65
|
* Created by Michael Avoyan.
|
|
66
66
|
*
|
|
67
67
|
* Copyright 2022 Velocity Career Labs inc.
|
|
68
68
|
* SPDX-License-Identifier: Apache-2.0
|
|
69
69
|
*/
|
|
70
|
-
// import type { VCLKeyServiceType } from './api/VCLKeyServiceType';
|
|
71
|
-
// import { VCLKeyServiceTypes } from './api/VCLKeyServiceType';
|
|
72
70
|
var _default = _VCLApi.VclApi;
|
|
73
71
|
exports.default = _default;
|
|
74
72
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_VCLApi","require","_VCLEnvironment","_VCLXVnfProtocolVersion","_VCLCountries","_VCLServiceType","_VCLIssuingType","_VCLError","_VCLStatusCode","_VCLErrorCode","_default","VclApi","exports","default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;
|
|
1
|
+
{"version":3,"names":["_VCLApi","require","_VCLEnvironment","_VCLXVnfProtocolVersion","_VCLCountries","_VCLServiceType","_VCLIssuingType","_VCLError","_VCLStatusCode","_VCLErrorCode","_default","VclApi","exports","default"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AAQA,IAAAG,aAAA,GAAAH,OAAA;AAiCA,IAAAI,eAAA,GAAAJ,OAAA;AAEA,IAAAK,eAAA,GAAAL,OAAA;AAWA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AAjEA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAS,QAAA,GAmEeC,cAAM;AAAAC,OAAA,CAAAC,OAAA,GAAAH,QAAA"}
|
package/lib/module/api/VCLApi.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","VCLError","VclReactNative","VclApi","initialize","initializationDescriptor","e","getCountries","getCredentialTypes","getCredentialTypeSchemas","getPresentationRequest","presentationRequestDescriptor","submitPresentation","presentationSubmission","didJwk","getExchangeProgress","exchangeDescriptor","searchForOrganizations","organizationsSearchDescriptor","getCredentialManifest","credentialManifestDescriptor","generateOffers","generateOffersDescriptor","checkForOffers","token","finalizeOffers","finalizeOffersDescriptor","getCredentialTypesUIFormSchema","credentialTypesUIFormSchemaDescriptor","getVerifiedProfile","verifiedProfileDescriptor","verifyJwt","jwt","jwkPublic","generateSignedJwt","jwtDescriptor","generateDidJwk"],"sourceRoot":"../../../src","sources":["api/VCLApi.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AA8BA,SAASA,aAAa,QAAQ,cAAc;AAC5C,SAASC,QAAQ,QAAQ,
|
|
1
|
+
{"version":3,"names":["NativeModules","VCLError","VclReactNative","VclApi","initialize","initializationDescriptor","e","getCountries","getCredentialTypes","getCredentialTypeSchemas","getPresentationRequest","presentationRequestDescriptor","submitPresentation","presentationSubmission","didJwk","getExchangeProgress","exchangeDescriptor","searchForOrganizations","organizationsSearchDescriptor","getCredentialManifest","credentialManifestDescriptor","generateOffers","generateOffersDescriptor","checkForOffers","token","finalizeOffers","finalizeOffersDescriptor","getCredentialTypesUIFormSchema","credentialTypesUIFormSchemaDescriptor","getVerifiedProfile","verifiedProfileDescriptor","verifyJwt","jwt","jwkPublic","generateSignedJwt","jwtDescriptor","generateDidJwk"],"sourceRoot":"../../../src","sources":["api/VCLApi.ts"],"mappings":"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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export let VCLCryptoServiceType = /*#__PURE__*/function (VCLCryptoServiceType) {
|
|
9
|
+
VCLCryptoServiceType["Local"] = "local";
|
|
10
|
+
VCLCryptoServiceType["Remote"] = "remote";
|
|
11
|
+
return VCLCryptoServiceType;
|
|
12
|
+
}({});
|
|
13
|
+
//# sourceMappingURL=VCLCryptoServiceType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VCLCryptoServiceType"],"sourceRoot":"../../../src","sources":["api/VCLCryptoServiceType.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=VCLDidJwk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/entities/
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/entities/VCLPublicJwk.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VCLError","Error","constructor","error","errorJson","JSON","parse","message","payload","errorCode","statusCode","parseInt","e","stringify"],"sourceRoot":"../../../../../src","sources":["api/entities/error/VCLError.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,QAAQ,SAASC,KAAK,CAAC;EAMlCC,WAAWA,CAACC,KAAU,EAAE;IACtB,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI;MACF,MAAMC,SAAS,GAAGC,IAAI,CAACC,KAAK,CAACH,KAAK,CAACI,OAAO,CAAC;MAC3C,IAAI,CAACC,OAAO,GAAGJ,SAAS,CAACI,OAAO;MAChC,IAAI,CAACL,KAAK,GAAGC,SAAS,CAACD,KAAK;MAC5B,IAAI,CAACM,SAAS,GAAGL,SAAS,CAACK,SAAS;MACpC,IAAI,CAACF,OAAO,GAAGH,SAAS,CAACG,OAAO;MAChC,IAAI,CAACG,UAAU,GAAGC,QAAQ,CAACP,SAAS,CAACM,UAAU,EAAE,EAAE,CAAC;IACtD,CAAC,CAAC,OAAOE,CAAC,EAAE;MACV,IAAI,CAACL,OAAO,GAAGF,IAAI,CAACQ,SAAS,CAACV,KAAK,CAAC;IACtC;EACF;AACF"}
|
|
@@ -0,0 +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;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VCLStatusCode"],"sourceRoot":"../../../../../src","sources":["api/entities/error/VCLStatusCode.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,aAAa,0BAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA"}
|