@velocitycareerlabs/vcl-react-native 1.13.0 → 1.14.2

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.
Files changed (69) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +5 -5
  3. package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +60 -29
  4. package/ios/Utils/Converter.swift +75 -31
  5. package/ios/VclReactNative.swift +3 -3
  6. package/lib/commonjs/api/VCLApi.js +1 -1
  7. package/lib/commonjs/api/VCLApi.js.map +1 -1
  8. package/lib/commonjs/api/VCLEnvironment.js +9 -9
  9. package/lib/commonjs/api/VCLEnvironment.js.map +1 -1
  10. package/lib/commonjs/api/VCLKeyServiceType.js +19 -0
  11. package/lib/commonjs/api/VCLKeyServiceType.js.map +1 -0
  12. package/lib/commonjs/api/VCLXVnfProtocolVersion.js +19 -0
  13. package/lib/commonjs/api/VCLXVnfProtocolVersion.js.map +1 -0
  14. package/lib/commonjs/api/entities/VCLCredentialManifest.js.map +1 -1
  15. package/lib/commonjs/api/entities/VCLErrorCode.js +7 -2
  16. package/lib/commonjs/api/entities/VCLErrorCode.js.map +1 -1
  17. package/lib/commonjs/api/entities/VCLInitializationDescriptor.js.map +1 -1
  18. package/lib/commonjs/api/entities/VCLStatusCode.js +19 -0
  19. package/lib/commonjs/api/entities/VCLStatusCode.js.map +1 -0
  20. package/lib/commonjs/index.js +17 -3
  21. package/lib/commonjs/index.js.map +1 -1
  22. package/lib/module/api/VCLApi.js +1 -1
  23. package/lib/module/api/VCLApi.js.map +1 -1
  24. package/lib/module/api/VCLEnvironment.js +7 -7
  25. package/lib/module/api/VCLEnvironment.js.map +1 -1
  26. package/lib/module/api/VCLKeyServiceType.js +13 -0
  27. package/lib/module/api/VCLKeyServiceType.js.map +1 -0
  28. package/lib/module/api/VCLXVnfProtocolVersion.js +13 -0
  29. package/lib/module/api/VCLXVnfProtocolVersion.js.map +1 -0
  30. package/lib/module/api/entities/VCLCredentialManifest.js.map +1 -1
  31. package/lib/module/api/entities/VCLErrorCode.js +7 -2
  32. package/lib/module/api/entities/VCLErrorCode.js.map +1 -1
  33. package/lib/module/api/entities/VCLInitializationDescriptor.js.map +1 -1
  34. package/lib/module/api/entities/VCLStatusCode.js +13 -0
  35. package/lib/module/api/entities/VCLStatusCode.js.map +1 -0
  36. package/lib/module/index.js +8 -3
  37. package/lib/module/index.js.map +1 -1
  38. package/lib/typescript/api/VCLApi.d.ts +3 -3
  39. package/lib/typescript/api/VCLEnvironment.d.ts +5 -8
  40. package/lib/typescript/api/VCLKeyServiceType.d.ts +10 -0
  41. package/lib/typescript/api/VCLXVnfProtocolVersion.d.ts +10 -0
  42. package/lib/typescript/api/entities/VCLCredentialManifest.d.ts +3 -0
  43. package/lib/typescript/api/entities/VCLErrorCode.d.ts +7 -2
  44. package/lib/typescript/api/entities/VCLInitializationDescriptor.d.ts +4 -0
  45. package/lib/typescript/api/entities/VCLStatusCode.d.ts +10 -0
  46. package/lib/typescript/index.d.ts +5 -4
  47. package/package.json +1 -1
  48. package/src/api/VCLApi.ts +4 -4
  49. package/src/api/VCLEnvironment.ts +5 -9
  50. package/src/api/VCLKeyServiceType.ts +11 -0
  51. package/src/api/VCLXVnfProtocolVersion.ts +11 -0
  52. package/src/api/entities/VCLCredentialManifest.ts +3 -0
  53. package/src/api/entities/VCLErrorCode.ts +8 -2
  54. package/src/api/entities/VCLInitializationDescriptor.ts +4 -0
  55. package/src/api/entities/VCLStatusCode.ts +11 -0
  56. package/src/index.tsx +9 -5
  57. package/vcl-react-native.podspec +1 -1
  58. package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
  59. package/android/.gradle/7.4.2/checksums/md5-checksums.bin +0 -0
  60. package/android/.gradle/7.4.2/checksums/sha1-checksums.bin +0 -0
  61. package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  62. package/android/.gradle/7.4.2/dependencies-accessors/gc.properties +0 -0
  63. package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
  64. package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
  65. package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
  66. package/android/.gradle/7.4.2/gc.properties +0 -0
  67. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  68. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  69. package/android/.gradle/vcs-1/gc.properties +0 -0
@@ -131,5 +131,5 @@ dependencies {
131
131
 
132
132
  // VCL:
133
133
  implementation "com.nimbusds:nimbus-jose-jwt:9.31"
134
- implementation "io.velocitycareerlabs:vcl:1.13.0"
134
+ implementation "io.velocitycareerlabs:vcl:1.14.2"
135
135
  }
@@ -40,7 +40,6 @@ import io.velocitycareerlabs.reactnative.utlis.Converter.didJwkToMap
40
40
  import io.velocitycareerlabs.reactnative.utlis.Converter.mapToDidJwk
41
41
  import io.velocitycareerlabs.reactnative.utlis.Converter.mapToInitializationDescriptor
42
42
  import io.velocitycareerlabs.reactnative.utlis.Converter.mapToJwtDescriptor
43
- import io.velocitycareerlabs.reactnative.utlis.Converter.mapToOffers
44
43
  import java.lang.Exception
45
44
 
46
45
  /**
@@ -52,7 +51,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
52
51
  const val ModuleName = "VclReactNative"
53
52
  }
54
53
 
55
- private val vcl = VCLProvider.vclInstance(reactContext.applicationContext)
54
+ private val vcl = VCLProvider.vclInstance()
56
55
 
57
56
  override fun getName(): String {
58
57
  return ModuleName
@@ -65,6 +64,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
65
64
  ) {
66
65
  try {
67
66
  vcl.initialize(
67
+ context = reactContext.applicationContext,
68
68
  initializationDescriptor = mapToInitializationDescriptor(
69
69
  initializationDescriptor
70
70
  ),
@@ -131,7 +131,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
131
131
  @ReactMethod
132
132
  fun submitPresentation(
133
133
  presentationSubmissionMap: ReadableMap,
134
- didJwkMap: ReadableMap,
134
+ didJwkMap: ReadableMap? = null,
135
135
  promise: Promise
136
136
  ) {
137
137
  try {
@@ -210,7 +210,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
210
210
  @ReactMethod
211
211
  fun generateOffers(
212
212
  generateOffersDescriptorMap: ReadableMap,
213
- didJwkMap: ReadableMap,
213
+ didJwkMap: ReadableMap? = null,
214
214
  promise: Promise
215
215
  ) {
216
216
  try {
@@ -252,7 +252,7 @@ class VclReactNativeModule(private val reactContext: ReactApplicationContext) :
252
252
  @ReactMethod
253
253
  fun finalizeOffers(
254
254
  finalizeOffersDescriptorMap: ReadableMap,
255
- didJwkMap: ReadableMap,
255
+ didJwkMap: ReadableMap? = null,
256
256
  tokenMap: ReadableMap,
257
257
  promise: Promise
258
258
  ) {
@@ -22,22 +22,40 @@ object Converter {
22
22
 
23
23
  fun mapToInitializationDescriptor(
24
24
  initializationDescriptorMap: ReadableMap
25
- ) =
26
- VCLInitializationDescriptor(
25
+ ) = VCLInitializationDescriptor(
27
26
  environment = mapToEnvironment(
28
- initializationDescriptorMap.getMapOpt("environment")
29
- ?: mapOf(Pair("value", VCLEnvironment.PROD.value)).toReadableMap()
27
+ initializationDescriptorMap.getStringOpt("environment")
28
+ ),
29
+ keyServiceType = mapToKeyServiceType(
30
+ initializationDescriptorMap.getStringOpt("keyServiceType")
31
+ ),
32
+ xVnfProtocolVersion = mapToXVnfProtocolVersion(
33
+ (initializationDescriptorMap.getStringOpt("xVnfProtocolVersion"))
30
34
  ),
31
35
  cacheSequence = initializationDescriptorMap.getIntOpt("cacheSequence") ?: 0
32
36
  )
33
37
 
34
- fun mapToEnvironment(environmentMap: ReadableMap) =
35
- when (environmentMap.getStringOpt("value")) {
36
- VCLEnvironment.DEV.value -> VCLEnvironment.DEV
37
- VCLEnvironment.QA.value -> VCLEnvironment.QA
38
- VCLEnvironment.STAGING.value -> VCLEnvironment.STAGING
39
- VCLEnvironment.PROD.value -> VCLEnvironment.PROD
40
- else -> VCLEnvironment.PROD
38
+ private fun mapToEnvironment(environment: String?) =
39
+ when(environment) {
40
+ VCLEnvironment.Dev.value -> VCLEnvironment.Dev
41
+ VCLEnvironment.Qa.value -> VCLEnvironment.Qa
42
+ VCLEnvironment.Staging.value -> VCLEnvironment.Staging
43
+ VCLEnvironment.Prod.value -> VCLEnvironment.Prod
44
+ else -> VCLEnvironment.Prod
45
+ }
46
+
47
+ private fun mapToKeyServiceType(keyServiceType: String?) =
48
+ when(keyServiceType) {
49
+ VCLKeyServiceType.Local.value -> VCLKeyServiceType.Local
50
+ VCLKeyServiceType.Remote.value -> VCLKeyServiceType.Remote
51
+ else -> VCLKeyServiceType.Local
52
+ }
53
+
54
+ private fun mapToXVnfProtocolVersion(xVnfProtocolVersion: String?) =
55
+ when(xVnfProtocolVersion) {
56
+ VCLXVnfProtocolVersion.XVnfProtocolVersion1.value -> VCLXVnfProtocolVersion.XVnfProtocolVersion1
57
+ VCLXVnfProtocolVersion.XVnfProtocolVersion2.value -> VCLXVnfProtocolVersion.XVnfProtocolVersion2
58
+ else -> VCLXVnfProtocolVersion.XVnfProtocolVersion1
41
59
  }
42
60
 
43
61
  fun regionToMap(
@@ -177,7 +195,7 @@ object Converter {
177
195
  ): ReadableMap {
178
196
  val presentationRequestMap = Arguments.createMap()
179
197
  val jwtMap = Arguments.createMap()
180
- jwtMap.putString("encodedJwt", presentationRequest.jwt.signedJwt.serialize())
198
+ jwtMap.putString("encodedJwt", presentationRequest.jwt.encodedJwt)
181
199
  presentationRequestMap.putMap("jwt", jwtMap)
182
200
  val jwkMap = Arguments.createMap()
183
201
  jwkMap.putString("valueStr", presentationRequest.jwkPublic.valueStr)
@@ -443,12 +461,13 @@ object Converter {
443
461
  ): ReadableMap {
444
462
  val credentialManifestMap = Arguments.createMap()
445
463
  val jwtMap = Arguments.createMap()
446
- jwtMap.putString("encodedJwt", credentialManifest.jwt.signedJwt.serialize())
464
+ jwtMap.putString("encodedJwt", credentialManifest.jwt.encodedJwt)
447
465
  credentialManifestMap.putMap("jwt", jwtMap)
448
466
  credentialManifestMap.putString("did", credentialManifest.did)
449
467
  credentialManifestMap.putString("iss", credentialManifest.iss)
450
468
  credentialManifestMap.putString("exchangeId", credentialManifest.exchangeId)
451
469
  credentialManifestMap.putString("vendorOriginContext", credentialManifest.vendorOriginContext)
470
+ credentialManifestMap.putMap("verifiedProfile", credentialManifest.verifiedProfile.payload.toReadableMap())
452
471
  return credentialManifestMap
453
472
  }
454
473
 
@@ -458,7 +477,12 @@ object Converter {
458
477
  val jwt =
459
478
  VCLJwt(encodedJwt = credentialManifestMap?.getMapOpt("jwt")?.getStringOpt("encodedJwt") ?: "")
460
479
  val vendorOriginContext: String? = credentialManifestMap?.getStringOpt("vendorOriginContext")
461
- return VCLCredentialManifest(jwt = jwt, vendorOriginContext = vendorOriginContext)
480
+ val verifiedProfileMap: ReadableMap? = credentialManifestMap?.getMapOpt("verifiedProfile")
481
+ return VCLCredentialManifest(
482
+ jwt = jwt,
483
+ vendorOriginContext = vendorOriginContext,
484
+ verifiedProfile = VCLVerifiedProfile(payload = verifiedProfileMap?.toJsonObject() ?: JSONObject())
485
+ )
462
486
  }
463
487
 
464
488
  fun mapToGenerateOffersDescriptor(
@@ -546,10 +570,10 @@ object Converter {
546
570
  val passedCredentials = Arguments.createArray()
547
571
  val failedCredentials = Arguments.createArray()
548
572
  jwtVerifiableCredentials.passedCredentials.forEach {
549
- passedCredentials.pushString(it.signedJwt.serialize())
573
+ passedCredentials.pushString(it.encodedJwt)
550
574
  }
551
575
  jwtVerifiableCredentials.failedCredentials.forEach {
552
- failedCredentials.pushString(it.signedJwt.serialize())
576
+ failedCredentials.pushString(it.encodedJwt)
553
577
  }
554
578
  jwtVerifiableCredentialsMap.putArray("passedCredentials", passedCredentials)
555
579
  jwtVerifiableCredentialsMap.putArray("failedCredentials", failedCredentials)
@@ -558,7 +582,7 @@ object Converter {
558
582
 
559
583
  fun jwtToMap(jwt: VCLJwt): ReadableMap {
560
584
  val jwtReadableMap = Arguments.createMap()
561
- jwtReadableMap.putString("encodedJwt", jwt.signedJwt.serialize())
585
+ jwtReadableMap.putString("encodedJwt", jwt.encodedJwt)
562
586
  return jwtReadableMap
563
587
  }
564
588
 
@@ -593,19 +617,26 @@ object Converter {
593
617
  jti = jwtDescriptorDictionary.getStringOpt("jti") ?: ""
594
618
  )
595
619
 
596
- fun didJwkToMap(didJwk: VCLDidJwk): ReadableMap {
597
- val didJwkMap = Arguments.createMap()
598
- didJwkMap.putString("keyId", didJwk.keyId)
599
- didJwkMap.putString("value", didJwk.value)
600
- didJwkMap.putString("kid", didJwk.kid)
601
- return didJwkMap
620
+ fun didJwkToMap(didJwk: VCLDidJwk?): ReadableMap? {
621
+ didJwk?.let {
622
+ val didJwkMap = Arguments.createMap()
623
+ didJwkMap.putString("keyId", it.keyId)
624
+ didJwkMap.putString("value", it.value)
625
+ didJwkMap.putString("kid", it.kid)
626
+ return didJwkMap
627
+ }
628
+ return null
602
629
  }
603
630
 
604
- fun mapToDidJwk(didJwkMap: ReadableMap) =
605
- VCLDidJwk(
606
- keyId = didJwkMap.getStringOpt("keyId") ?: "",
607
- value = didJwkMap.getStringOpt("value") ?: "",
608
- kid = didJwkMap.getStringOpt("kid") ?: "",
609
- )
631
+ fun mapToDidJwk(didJwkMap: ReadableMap?): VCLDidJwk? {
632
+ didJwkMap?.let {
633
+ return VCLDidJwk(
634
+ keyId = it.getStringOpt("keyId") ?: "",
635
+ value = it.getStringOpt("value") ?: "",
636
+ kid = it.getStringOpt("kid") ?: ""
637
+ )
638
+ }
639
+ return null
640
+ }
610
641
  }
611
642
 
@@ -4,8 +4,8 @@
4
4
  //
5
5
  // Created by Michael Avoyan on 05/07/2021.
6
6
  //
7
- // Copyright 2022 Velocity Career Labs inc.
8
- // SPDX-License-Identifier: Apache-2.0
7
+ // Copyright 2022 Velocity Career Labs inc.
8
+ // SPDX-License-Identifier: Apache-2.0
9
9
  //
10
10
 
11
11
  import Foundation
@@ -16,26 +16,58 @@ func dictionaryToInitializationDescriptor(
16
16
  ) -> VCLInitializationDescriptor {
17
17
  return VCLInitializationDescriptor(
18
18
  environment: dictionaryToEnvironment(
19
- initializationDescriptorDictionary["environment"] as? [String: String] ?? ["value": VCLEnvironment.PROD.rawValue]
19
+ initializationDescriptorDictionary["environment"] as? String
20
+ ),
21
+ keyServiceType: dictionaryToKeyServiceType(
22
+ initializationDescriptorDictionary["keyServiceType"] as? String
23
+ ),
24
+ xVnfProtocolVersion: dictionaryToXVnfProtocolVersion (
25
+ initializationDescriptorDictionary["xVnfProtocolVersion"] as? String
20
26
  ),
21
27
  cacheSequence: initializationDescriptorDictionary["cacheSequence"] as? Int ?? 0
22
28
  )
23
29
  }
24
30
 
25
- func dictionaryToEnvironment(
26
- _ environmentDictionary: [String: String]
31
+ private func dictionaryToEnvironment(
32
+ _ environment: String?
27
33
  ) -> VCLEnvironment {
28
- switch environmentDictionary["value"] {
29
- case VCLEnvironment.DEV.rawValue:
30
- return VCLEnvironment.DEV
31
- case VCLEnvironment.QA.rawValue:
32
- return VCLEnvironment.QA
33
- case VCLEnvironment.STAGING.rawValue:
34
- return VCLEnvironment.STAGING
35
- case VCLEnvironment.PROD.rawValue:
36
- return VCLEnvironment.PROD
34
+ switch environment {
35
+ case VCLEnvironment.Dev.rawValue:
36
+ return VCLEnvironment.Dev
37
+ case VCLEnvironment.Qa.rawValue:
38
+ return VCLEnvironment.Qa
39
+ case VCLEnvironment.Staging.rawValue:
40
+ return VCLEnvironment.Staging
41
+ case VCLEnvironment.Prod.rawValue:
42
+ return VCLEnvironment.Prod
43
+ default:
44
+ return VCLEnvironment.Prod
45
+ }
46
+ }
47
+
48
+ private func dictionaryToKeyServiceType(
49
+ _ keyServiceType: String?
50
+ ) -> VCLKeyServiceType {
51
+ switch keyServiceType {
52
+ case VCLKeyServiceType.Local.rawValue:
53
+ return VCLKeyServiceType.Local
54
+ case VCLKeyServiceType.Remote.rawValue:
55
+ return VCLKeyServiceType.Remote
56
+ default:
57
+ return VCLKeyServiceType.Local
58
+ }
59
+ }
60
+
61
+ private func dictionaryToXVnfProtocolVersion(
62
+ _ xVnfProtocolVersion: String?
63
+ ) -> VCLXVnfProtocolVersion {
64
+ switch xVnfProtocolVersion {
65
+ case VCLXVnfProtocolVersion.XVnfProtocolVersion1.rawValue:
66
+ return VCLXVnfProtocolVersion.XVnfProtocolVersion1
67
+ case VCLXVnfProtocolVersion.XVnfProtocolVersion2.rawValue:
68
+ return VCLXVnfProtocolVersion.XVnfProtocolVersion2
37
69
  default:
38
- return VCLEnvironment.PROD
70
+ return VCLXVnfProtocolVersion.XVnfProtocolVersion1
39
71
  }
40
72
  }
41
73
 
@@ -414,15 +446,21 @@ func credentialManifestToDictionary(
414
446
  credentialManifestDictinary["iss"] = credentialManifest.iss
415
447
  credentialManifestDictinary["exchangeId"] = credentialManifest.exchangeId
416
448
  credentialManifestDictinary["vendorOriginContext"] = credentialManifest.vendorOriginContext
449
+ credentialManifestDictinary["verifiedProfile"] = credentialManifest.verifiedProfile.payload
417
450
  return credentialManifestDictinary
418
451
  }
419
452
 
420
453
  func dictionaryToCredentialManifest(
421
- _ credentialMAnifestDictionary: [String: Any]?
454
+ _ credentialManifestDictionary: [String: Any]?
422
455
  ) -> VCLCredentialManifest {
423
- let jwt: VCLJwt = VCLJwt(encodedJwt: (credentialMAnifestDictionary?["jwt"] as? [String: Any])?["encodedJwt"] as? String ?? "")
424
- let vendorOriginContext: String? = credentialMAnifestDictionary?["vendorOriginContext"] as? String
425
- return VCLCredentialManifest(jwt: jwt, vendorOriginContext: vendorOriginContext)
456
+ let jwt: VCLJwt = VCLJwt(encodedJwt: (credentialManifestDictionary?["jwt"] as? [String: Any])?["encodedJwt"] as? String ?? "")
457
+ let vendorOriginContext: String? = credentialManifestDictionary?["vendorOriginContext"] as? String
458
+ let verifiedProfileDictionary: [String: Any]? = credentialManifestDictionary?["verifiedProfile"] as? [String: Any]
459
+ return VCLCredentialManifest(
460
+ jwt: jwt,
461
+ vendorOriginContext: vendorOriginContext,
462
+ verifiedProfile: VCLVerifiedProfile(payload: verifiedProfileDictionary ?? [:])
463
+ )
426
464
  }
427
465
 
428
466
  func dictionaryToGenerateOffersDescriptor(
@@ -556,18 +594,24 @@ func dictionaryToJwtDescriptor(
556
594
  )
557
595
  }
558
596
 
559
- func didJwkToDictionary(_ didJwk: VCLDidJwk) -> [String: Any] {
560
- var didJwkDictionary = [String: Any]()
561
- didJwkDictionary["keyId"] = didJwk.keyId
562
- didJwkDictionary["value"] = didJwk.value
563
- didJwkDictionary["kid"] = didJwk.kid
564
- return didJwkDictionary
597
+ func didJwkToDictionary(_ didJwk: VCLDidJwk?) -> [String: Any]? {
598
+ if let didJwk = didJwk {
599
+ return [
600
+ "keyId": didJwk.keyId,
601
+ "value": didJwk.value,
602
+ "kid": didJwk.kid
603
+ ]
604
+ }
605
+ return nil
565
606
  }
566
607
 
567
- func dictionaryToJwk(_ didJwkDictionary: [String: Any]) -> VCLDidJwk {
568
- return VCLDidJwk(
569
- keyId: didJwkDictionary["keyId"] as? String ?? "",
570
- value: didJwkDictionary["value"] as? String ?? "",
571
- kid: didJwkDictionary["kid"] as? String ?? ""
572
- )
608
+ func dictionaryToJwk(_ didJwkDictionary: [String: Any]?) -> VCLDidJwk? {
609
+ if let didJwkDictionary = didJwkDictionary {
610
+ return VCLDidJwk(
611
+ keyId: didJwkDictionary["keyId"] as? String ?? "",
612
+ value: didJwkDictionary["value"] as? String ?? "",
613
+ kid: didJwkDictionary["kid"] as? String ?? ""
614
+ )
615
+ }
616
+ return nil
573
617
  }
@@ -81,7 +81,7 @@ class VclReactNative: NSObject {
81
81
  @objc(submitPresentation:withDidJwkDictionary:withResolver:withRejecter:)
82
82
  func submitPresentation(
83
83
  presentationSubmissionDictionary: [String: Any],
84
- didJwkDictionary: [String: Any],
84
+ didJwkDictionary: [String: Any]? = nil,
85
85
  resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
86
86
  ) {
87
87
  vcl.submitPresentation(
@@ -149,7 +149,7 @@ class VclReactNative: NSObject {
149
149
  @objc(generateOffers:withDidJwkDictionary:withResolver:withRejecter:)
150
150
  func generateOffers(
151
151
  generateOffersDescriptorDictionary: [String: Any],
152
- didJwkDictionary: [String: Any],
152
+ didJwkDictionary: [String: Any]? = nil,
153
153
  resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
154
154
  ) {
155
155
  vcl.generateOffers(
@@ -183,7 +183,7 @@ class VclReactNative: NSObject {
183
183
  @objc(finalizeOffers:withDidJwkDictionary:withTokenDictionary:withResolver:withRejecter:)
184
184
  func finalizeOffers(
185
185
  finalizeOffersDescriptorDictionary: [String: Any],
186
- didJwkDictionary: [String: Any],
186
+ didJwkDictionary: [String: Any]? = nil,
187
187
  tokenDictionary: [String: Any],
188
188
  resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
189
189
  ) {
@@ -94,7 +94,7 @@ const VclApi = {
94
94
  throw new _VCLError.VCLError(e);
95
95
  }
96
96
  },
97
- finalizeOffers: async (finalizeOffersDescriptor, didJwk, token) => {
97
+ finalizeOffers: async (finalizeOffersDescriptor, token, didJwk) => {
98
98
  try {
99
99
  return await VclReactNative.finalizeOffers(finalizeOffersDescriptor, didJwk, token);
100
100
  } catch (e) {
@@ -1 +1 @@
1
- {"version":3,"names":["VclReactNative","NativeModules","VclApi","initialize","initializationDescriptor","e","VCLError","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"],"sources":["VCLApi.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { VCLCredentialManifest } from './entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLExchange } from './entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';\nimport type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './entities/VCLGenerateOffersDescriptor';\nimport type { VCLJwt } from './entities/VCLJwt';\nimport type { VCLJwtVerifiableCredentials } from './entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './entities/VCLOffers';\nimport type { VCLOrganizations } from './entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPresentationRequest } from './entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';\nimport type { VCLJwkPublic } from './entities/VCLJwkPublic';\nimport type { VCLToken } from './entities/VCLToken';\nimport type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';\nimport type { VCLCountries } from './entities/VCLCountries';\nimport type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';\nimport type { VCLSubmissionResult } from './entities/VCLSubmissionResult';\nimport type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';\nimport type { VCLJwtDescriptor } from './entities/VCLJwtDescriptor';\nimport type { VCLDidJwk } from './entities/VCLDidJwk';\nimport type { VCLCredentialTypes } from './entities/VCLCredentialTypes';\n\nimport { NativeModules } from 'react-native';\nimport { VCLError } from './entities/VCLError';\nconst { VclReactNative } = NativeModules;\n\nexport const VclApi = {\n initialize: async (\n initializationDescriptor: VCLInitializationDescriptor\n ): Promise<void> => {\n try {\n return await VclReactNative.initialize(initializationDescriptor);\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCountries: async (): Promise<VCLCountries> => {\n try {\n return await VclReactNative.getCountries();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialTypes: async (): Promise<VCLCredentialTypes> => {\n try {\n return await VclReactNative.getCredentialTypes();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialTypeSchemas: async (): Promise<VCLCredentialTypeSchemas> => {\n try {\n return await VclReactNative.getCredentialTypeSchemas();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getPresentationRequest: async (\n presentationRequestDescriptor: VCLPresentationRequestDescriptor\n ): Promise<VCLPresentationRequest> => {\n try {\n return await VclReactNative.getPresentationRequest(\n presentationRequestDescriptor\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n submitPresentation: async (\n presentationSubmission: VCLPresentationSubmission,\n didJwk: VCLDidJwk\n ): Promise<VCLSubmissionResult> => {\n try {\n return await VclReactNative.submitPresentation(\n presentationSubmission,\n didJwk\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getExchangeProgress: async (\n exchangeDescriptor: VCLExchangeDescriptor\n ): Promise<VCLExchange> => {\n try {\n return await VclReactNative.getExchangeProgress(exchangeDescriptor);\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n searchForOrganizations: async (\n organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor\n ): Promise<VCLOrganizations> => {\n try {\n return await VclReactNative.searchForOrganizations(\n organizationsSearchDescriptor\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialManifest: async (\n credentialManifestDescriptor: VCLCredentialManifestDescriptor\n ): Promise<VCLCredentialManifest> => {\n try {\n return await VclReactNative.getCredentialManifest(\n credentialManifestDescriptor\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n generateOffers: async (\n generateOffersDescriptor: VCLGenerateOffersDescriptor,\n didJwk: VCLDidJwk\n ): Promise<VCLOffers> => {\n try {\n return await VclReactNative.generateOffers(\n generateOffersDescriptor,\n didJwk\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n checkForOffers: async (\n generateOffersDescriptor: VCLGenerateOffersDescriptor,\n token: VCLToken\n ): Promise<VCLOffers> => {\n try {\n return await VclReactNative.checkForOffers(\n generateOffersDescriptor,\n token\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n finalizeOffers: async (\n finalizeOffersDescriptor: VCLFinalizeOffersDescriptor,\n didJwk: VCLDidJwk,\n token: VCLToken\n ): Promise<VCLJwtVerifiableCredentials> => {\n try {\n return await VclReactNative.finalizeOffers(\n finalizeOffersDescriptor,\n didJwk,\n token\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialTypesUIFormSchema: async (\n credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor\n ): Promise<VCLCredentialTypesUIFormSchema> => {\n try {\n return await VclReactNative.getCredentialTypesUIFormSchema(\n credentialTypesUIFormSchemaDescriptor\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getVerifiedProfile: async (\n verifiedProfileDescriptor: VCLVerifiedProfileDescriptor\n ): Promise<VCLVerifiedProfile> => {\n try {\n return await VclReactNative.getVerifiedProfile(verifiedProfileDescriptor);\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n verifyJwt: async (jwt: VCLJwt, jwkPublic: VCLJwkPublic): Promise<boolean> => {\n try {\n return await VclReactNative.verifyJwt(jwt, jwkPublic);\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n generateSignedJwt: async (\n jwtDescriptor: VCLJwtDescriptor\n ): Promise<VCLJwt> => {\n try {\n return await VclReactNative.generateSignedJwt(jwtDescriptor);\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n generateDidJwk: async (): Promise<VCLDidJwk> => {\n try {\n return await VclReactNative.generateDidJwk();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n};\n"],"mappings":";;;;;;AAmCA;AACA;AApCA;AACA;AACA;AACA;AACA;AACA;;AAgCA,MAAM;EAAEA;AAAe,CAAC,GAAGC,0BAAa;AAEjC,MAAMC,MAAM,GAAG;EACpBC,UAAU,EAAE,MACVC,wBAAqD,IACnC;IAClB,IAAI;MACF,OAAO,MAAMJ,cAAc,CAACG,UAAU,CAACC,wBAAwB,CAAC;IAClE,CAAC,CAAC,OAAOC,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF,CAAC;EAEDE,YAAY,EAAE,YAAmC;IAC/C,IAAI;MACF,OAAO,MAAMP,cAAc,CAACO,YAAY,EAAE;IAC5C,CAAC,CAAC,OAAOF,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF,CAAC;EAEDG,kBAAkB,EAAE,YAAyC;IAC3D,IAAI;MACF,OAAO,MAAMR,cAAc,CAACQ,kBAAkB,EAAE;IAClD,CAAC,CAAC,OAAOH,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF,CAAC;EAEDI,wBAAwB,EAAE,YAA+C;IACvE,IAAI;MACF,OAAO,MAAMT,cAAc,CAACS,wBAAwB,EAAE;IACxD,CAAC,CAAC,OAAOJ,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF,CAAC;EAEDK,sBAAsB,EAAE,MACtBC,6BAA+D,IAC3B;IACpC,IAAI;MACF,OAAO,MAAMX,cAAc,CAACU,sBAAsB,CACh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X;IACpB,IAAI;MACF,OAAO,MAAMnC,cAAc,CAACkC,iBAAiB,CAACC,aAAa,CAAC;IAC9D,CAAC,CAAC,OAAO9B,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF,CAAC;EAED+B,cAAc,EAAE,YAAgC;IAC9C,IAAI;MACF,OAAO,MAAMpC,cAAc,CAACoC,cAAc,EAAE;IAC9C,CAAC,CAAC,OAAO/B,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF;AACF,CAAC;AAAC"}
1
+ {"version":3,"names":["VclReactNative","NativeModules","VclApi","initialize","initializationDescriptor","e","VCLError","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"],"sources":["VCLApi.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { VCLCredentialManifest } from './entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLExchange } from './entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';\nimport type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './entities/VCLGenerateOffersDescriptor';\nimport type { VCLJwt } from './entities/VCLJwt';\nimport type { VCLJwtVerifiableCredentials } from './entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './entities/VCLOffers';\nimport type { VCLOrganizations } from './entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPresentationRequest } from './entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';\nimport type { VCLJwkPublic } from './entities/VCLJwkPublic';\nimport type { VCLToken } from './entities/VCLToken';\nimport type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';\nimport type { VCLCountries } from './entities/VCLCountries';\nimport type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';\nimport type { VCLSubmissionResult } from './entities/VCLSubmissionResult';\nimport type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';\nimport type { VCLJwtDescriptor } from './entities/VCLJwtDescriptor';\nimport type { VCLDidJwk } from './entities/VCLDidJwk';\nimport type { VCLCredentialTypes } from './entities/VCLCredentialTypes';\n\nimport { NativeModules } from 'react-native';\nimport { VCLError } from './entities/VCLError';\nconst { VclReactNative } = NativeModules;\n\nexport const VclApi = {\n initialize: async (\n initializationDescriptor: VCLInitializationDescriptor\n ): Promise<void> => {\n try {\n return await VclReactNative.initialize(initializationDescriptor);\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCountries: async (): Promise<VCLCountries> => {\n try {\n return await VclReactNative.getCountries();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialTypes: async (): Promise<VCLCredentialTypes> => {\n try {\n return await VclReactNative.getCredentialTypes();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialTypeSchemas: async (): Promise<VCLCredentialTypeSchemas> => {\n try {\n return await VclReactNative.getCredentialTypeSchemas();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getPresentationRequest: async (\n presentationRequestDescriptor: VCLPresentationRequestDescriptor\n ): Promise<VCLPresentationRequest> => {\n try {\n return await VclReactNative.getPresentationRequest(\n presentationRequestDescriptor\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n submitPresentation: async (\n presentationSubmission: VCLPresentationSubmission,\n didJwk?: VCLDidJwk\n ): Promise<VCLSubmissionResult> => {\n try {\n return await VclReactNative.submitPresentation(\n presentationSubmission,\n didJwk\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getExchangeProgress: async (\n exchangeDescriptor: VCLExchangeDescriptor\n ): Promise<VCLExchange> => {\n try {\n return await VclReactNative.getExchangeProgress(exchangeDescriptor);\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n searchForOrganizations: async (\n organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor\n ): Promise<VCLOrganizations> => {\n try {\n return await VclReactNative.searchForOrganizations(\n organizationsSearchDescriptor\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialManifest: async (\n credentialManifestDescriptor: VCLCredentialManifestDescriptor\n ): Promise<VCLCredentialManifest> => {\n try {\n return await VclReactNative.getCredentialManifest(\n credentialManifestDescriptor\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n generateOffers: async (\n generateOffersDescriptor: VCLGenerateOffersDescriptor,\n didJwk?: VCLDidJwk\n ): Promise<VCLOffers> => {\n try {\n return await VclReactNative.generateOffers(\n generateOffersDescriptor,\n didJwk\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n checkForOffers: async (\n generateOffersDescriptor: VCLGenerateOffersDescriptor,\n token: VCLToken\n ): Promise<VCLOffers> => {\n try {\n return await VclReactNative.checkForOffers(\n generateOffersDescriptor,\n token\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n finalizeOffers: async (\n finalizeOffersDescriptor: VCLFinalizeOffersDescriptor,\n token: VCLToken,\n didJwk?: VCLDidJwk\n ): Promise<VCLJwtVerifiableCredentials> => {\n try {\n return await VclReactNative.finalizeOffers(\n finalizeOffersDescriptor,\n didJwk,\n token\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialTypesUIFormSchema: async (\n credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor\n ): Promise<VCLCredentialTypesUIFormSchema> => {\n try {\n return await VclReactNative.getCredentialTypesUIFormSchema(\n credentialTypesUIFormSchemaDescriptor\n );\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getVerifiedProfile: async (\n verifiedProfileDescriptor: VCLVerifiedProfileDescriptor\n ): Promise<VCLVerifiedProfile> => {\n try {\n return await VclReactNative.getVerifiedProfile(verifiedProfileDescriptor);\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n verifyJwt: async (jwt: VCLJwt, jwkPublic: VCLJwkPublic): Promise<boolean> => {\n try {\n return await VclReactNative.verifyJwt(jwt, jwkPublic);\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n generateSignedJwt: async (\n jwtDescriptor: VCLJwtDescriptor\n ): Promise<VCLJwt> => {\n try {\n return await VclReactNative.generateSignedJwt(jwtDescriptor);\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n generateDidJwk: async (): Promise<VCLDidJwk> => {\n try {\n return await VclReactNative.generateDidJwk();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n};\n"],"mappings":";;;;;;AAmCA;AACA;AApCA;AACA;AACA;AACA;AACA;AACA;;AAgCA,MAAM;EAAEA;AAAe,CAAC,GAAGC,0BAAa;AAEjC,MAAMC,MAAM,GAAG;EACpBC,UAAU,EAAE,MACVC,wBAAqD,IACnC;IAClB,IAAI;MACF,OAAO,MAAMJ,cAAc,CAACG,UAAU,CAACC,wBAAwB,CAAC;IAClE,CAAC,CAAC,OAAOC,CAAC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DsB,8BAA8B,EAAE,MAC9BC,qCAA+E,IACnC;IAC5C,IAAI;MACF,OAAO,MAAM5B,cAAc,CAAC2B,8BAA8B,CACxDC,qCAAqC,CACtC;IACH,CAAC,CAAC,OAAOvB,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF,CAAC;EAEDwB,kBAAkB,EAAE,MAClBC,yBAAuD,IACvB;IAChC,IAAI;MACF,OAAO,MAAM9B,cAAc,CAAC6B,kBAAkB,CAACC,yBAAyB,CAAC;IAC3E,CAAC,CAAC,OAAOzB,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF,CAAC;EAED0B,SAAS,EAAE,OAAOC,GAAW,EAAEC,SAAuB,KAAuB;IAC3E,IAAI;MACF,OAAO,MAAMjC,cAAc,CAAC+B,SAAS,CAACC,GAAG,EAAEC,SAAS,CAAC;IACvD,CAAC,CAAC,OAAO5B,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF,CAAC;EAED6B,iBAAiB,EAAE,MACjBC,aAA+B,IACX;IACpB,IAAI;MACF,OAAO,MAAMnC,cAAc,CAACkC,iBAAiB,CAACC,aAAa,CAAC;IAC9D,CAAC,CAAC,OAAO9B,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF,CAAC;EAED+B,cAAc,EAAE,YAAgC;IAC9C,IAAI;MACF,OAAO,MAAMpC,cAAc,CAACoC,cAAc,EAAE;IAC9C,CAAC,CAAC,OAAO/B,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF;AACF,CAAC;AAAC"}
@@ -3,19 +3,19 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.VCLEnvTypes = void 0;
6
+ exports.VCLEnvironment = void 0;
7
7
  /**
8
8
  * Created by Michael Avoyan.
9
9
  *
10
10
  * Copyright 2022 Velocity Career Labs inc.
11
11
  * SPDX-License-Identifier: Apache-2.0
12
12
  */
13
- let VCLEnvTypes;
14
- exports.VCLEnvTypes = VCLEnvTypes;
15
- (function (VCLEnvTypes) {
16
- VCLEnvTypes["DEV"] = "dev";
17
- VCLEnvTypes["QA"] = "qa";
18
- VCLEnvTypes["STAGING"] = "staging";
19
- VCLEnvTypes["PROD"] = "prod";
20
- })(VCLEnvTypes || (exports.VCLEnvTypes = VCLEnvTypes = {}));
13
+ let VCLEnvironment;
14
+ exports.VCLEnvironment = VCLEnvironment;
15
+ (function (VCLEnvironment) {
16
+ VCLEnvironment["Dev"] = "dev";
17
+ VCLEnvironment["Qa"] = "qa";
18
+ VCLEnvironment["Staging"] = "staging";
19
+ VCLEnvironment["Prod"] = "prod";
20
+ })(VCLEnvironment || (exports.VCLEnvironment = VCLEnvironment = {}));
21
21
  //# sourceMappingURL=VCLEnvironment.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["VCLEnvTypes"],"sources":["VCLEnvironment.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport interface VCLEnvironment {\n value: string;\n}\n\nexport enum VCLEnvTypes {\n DEV = 'dev',\n QA = 'qa',\n STAGING = 'staging',\n PROD = 'prod',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAWYA,WAAW;AAAA;AAAA,WAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;AAAA,GAAXA,WAAW,2BAAXA,WAAW"}
1
+ {"version":3,"names":["VCLEnvironment"],"sources":["VCLEnvironment.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport enum VCLEnvironment {\n Dev = 'dev',\n Qa = 'qa',\n Staging = 'staging',\n Prod = 'prod',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,cAAc;AAAA;AAAA,WAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,8BAAdA,cAAc"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.VCLKeyServiceType = 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 VCLKeyServiceType;
14
+ exports.VCLKeyServiceType = VCLKeyServiceType;
15
+ (function (VCLKeyServiceType) {
16
+ VCLKeyServiceType["Local"] = "local";
17
+ VCLKeyServiceType["Remote"] = "remote";
18
+ })(VCLKeyServiceType || (exports.VCLKeyServiceType = VCLKeyServiceType = {}));
19
+ //# sourceMappingURL=VCLKeyServiceType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["VCLKeyServiceType"],"sources":["VCLKeyServiceType.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport enum VCLKeyServiceType {\n Local = 'local',\n Remote = 'remote',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,iBAAiB;AAAA;AAAA,WAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;AAAA,GAAjBA,iBAAiB,iCAAjBA,iBAAiB"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.VCLXVnfProtocolVersion = 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 VCLXVnfProtocolVersion;
14
+ exports.VCLXVnfProtocolVersion = VCLXVnfProtocolVersion;
15
+ (function (VCLXVnfProtocolVersion) {
16
+ VCLXVnfProtocolVersion["XVnfProtocolVersion1"] = "1.0";
17
+ VCLXVnfProtocolVersion["XVnfProtocolVersion2"] = "2.0";
18
+ })(VCLXVnfProtocolVersion || (exports.VCLXVnfProtocolVersion = VCLXVnfProtocolVersion = {}));
19
+ //# sourceMappingURL=VCLXVnfProtocolVersion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["VCLXVnfProtocolVersion"],"sources":["VCLXVnfProtocolVersion.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport enum VCLXVnfProtocolVersion {\n XVnfProtocolVersion1 = '1.0',\n XVnfProtocolVersion2 = '2.0',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,sBAAsB;AAAA;AAAA,WAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;AAAA,GAAtBA,sBAAsB,sCAAtBA,sBAAsB"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["VCLCredentialManifest.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { VCLJwt } from './VCLJwt';\n\nexport interface VCLCredentialManifest {\n jwt: VCLJwt;\n iss: string;\n did: string;\n exchangeId: string;\n presentationDefinitionId: string;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["VCLCredentialManifest.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { VCLJwt } from './VCLJwt';\nimport type { VCLVerifiedProfile } from './VCLVerifiedProfile';\n\nexport interface VCLCredentialManifest {\n jwt: VCLJwt;\n vendorOriginContext?: String;\n verifiedProfile: VCLVerifiedProfile;\n iss: string;\n did: string;\n exchangeId: string;\n presentationDefinitionId: string;\n}\n"],"mappings":""}
@@ -13,7 +13,12 @@ exports.VCLErrorCode = void 0;
13
13
  let VCLErrorCode;
14
14
  exports.VCLErrorCode = VCLErrorCode;
15
15
  (function (VCLErrorCode) {
16
- VCLErrorCode[VCLErrorCode["NetworkError"] = 1] = "NetworkError";
17
- VCLErrorCode[VCLErrorCode["VerificationError"] = 403] = "VerificationError";
16
+ VCLErrorCode["CredentialTypeNotRegistered"] = "credential_type_not_registered";
17
+ VCLErrorCode["IssuerRequiresIdentityPermission"] = "issuer_requires_identity_permission";
18
+ VCLErrorCode["IssuerRequiresNotaryPermission"] = "issuer_requires_notary_permission";
19
+ VCLErrorCode["CredentialSubjectContextMissing"] = "credential_subject_context_missing";
20
+ VCLErrorCode["InvalidCredentialSubjectType"] = "invalid_credential_subject_type";
21
+ VCLErrorCode["InvalidCredentialSubjectContext"] = "invalid_credential_subject_context";
22
+ VCLErrorCode["IssuerUnexpectedPermissionFailure"] = "issuer_unexpected_permission_failure";
18
23
  })(VCLErrorCode || (exports.VCLErrorCode = VCLErrorCode = {}));
19
24
  //# sourceMappingURL=VCLErrorCode.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["VCLErrorCode"],"sources":["VCLErrorCode.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport enum VCLErrorCode {\n NetworkError = 1,\n VerificationError = 403,\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,YAAY;AAAA;AAAA,WAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;AAAA,GAAZA,YAAY,4BAAZA,YAAY"}
1
+ {"version":3,"names":["VCLErrorCode"],"sources":["VCLErrorCode.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport enum VCLErrorCode {\n // Credential issuer verification error codes:\n CredentialTypeNotRegistered = 'credential_type_not_registered',\n IssuerRequiresIdentityPermission = 'issuer_requires_identity_permission',\n IssuerRequiresNotaryPermission = 'issuer_requires_notary_permission',\n CredentialSubjectContextMissing = 'credential_subject_context_missing',\n InvalidCredentialSubjectType = 'invalid_credential_subject_type',\n InvalidCredentialSubjectContext = 'invalid_credential_subject_context',\n IssuerUnexpectedPermissionFailure = 'issuer_unexpected_permission_failure',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,YAAY;AAAA;AAAA,WAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;AAAA,GAAZA,YAAY,4BAAZA,YAAY"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["VCLInitializationDescriptor.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { VCLEnvironment } from '../VCLEnvironment';\n\nexport interface VCLInitializationDescriptor {\n environment?: VCLEnvironment;\n cacheSequence?: number;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["VCLInitializationDescriptor.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport type { VCLEnvironment } from '../VCLEnvironment';\nimport type { VCLKeyServiceType } from '../VCLKeyServiceType';\nimport type { VCLXVnfProtocolVersion } from '../VCLXVnfProtocolVersion';\n\nexport interface VCLInitializationDescriptor {\n environment?: VCLEnvironment;\n keyServiceType?: VCLKeyServiceType;\n xVnfProtocolVersion?: VCLXVnfProtocolVersion;\n cacheSequence?: number;\n}\n"],"mappings":""}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.VCLStatusCode = 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 VCLStatusCode;
14
+ exports.VCLStatusCode = VCLStatusCode;
15
+ (function (VCLStatusCode) {
16
+ VCLStatusCode[VCLStatusCode["NetworkError"] = 1] = "NetworkError";
17
+ VCLStatusCode[VCLStatusCode["VerificationError"] = 403] = "VerificationError";
18
+ })(VCLStatusCode || (exports.VCLStatusCode = VCLStatusCode = {}));
19
+ //# sourceMappingURL=VCLStatusCode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["VCLStatusCode"],"sources":["VCLStatusCode.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport enum VCLStatusCode {\n NetworkError = 1,\n VerificationError = 403,\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,aAAa;AAAA;AAAA,WAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;AAAA,GAAbA,aAAa,6BAAbA,aAAa"}
@@ -9,10 +9,10 @@ Object.defineProperty(exports, "VCLCountryCodes", {
9
9
  return _VCLCountries.VCLCountryCodes;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "VCLEnvTypes", {
12
+ Object.defineProperty(exports, "VCLEnvironment", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _VCLEnvironment.VCLEnvTypes;
15
+ return _VCLEnvironment.VCLEnvironment;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "VCLError", {
@@ -39,14 +39,28 @@ Object.defineProperty(exports, "VCLServiceType", {
39
39
  return _VCLServiceType.VCLServiceType;
40
40
  }
41
41
  });
42
+ Object.defineProperty(exports, "VCLStatusCode", {
43
+ enumerable: true,
44
+ get: function () {
45
+ return _VCLStatusCode.VCLStatusCode;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "VCLXVnfProtocolVersion", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _VCLXVnfProtocolVersion.VCLXVnfProtocolVersion;
52
+ }
53
+ });
42
54
  exports.default = void 0;
43
55
  var _VCLApi = require("./api/VCLApi");
44
56
  var _VCLEnvironment = require("./api/VCLEnvironment");
57
+ var _VCLXVnfProtocolVersion = require("./api/VCLXVnfProtocolVersion");
45
58
  var _VCLCountries = require("./api/entities/VCLCountries");
46
59
  var _VCLServiceType = require("./api/entities/VCLServiceType");
47
60
  var _VCLIssuingType = require("./api/entities/VCLIssuingType");
48
- var _VCLErrorCode = require("./api/entities/VCLErrorCode");
49
61
  var _VCLError = require("./api/entities/VCLError");
62
+ var _VCLStatusCode = require("./api/entities/VCLStatusCode");
63
+ var _VCLErrorCode = require("./api/entities/VCLErrorCode");
50
64
  /**
51
65
  * Created by Michael Avoyan.
52
66
  *