@velocitycareerlabs/vcl-react-native 2.6.14 → 2.7.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 (38) hide show
  1. package/android/build.gradle +2 -2
  2. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +24 -0
  3. package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +43 -2
  4. package/ios/Utils/Converter.swift +37 -0
  5. package/ios/VclReactNative.mm +5 -0
  6. package/ios/VclReactNative.swift +17 -1
  7. package/lib/commonjs/api/VCLApi.js +27 -20
  8. package/lib/commonjs/api/VCLApi.js.map +1 -1
  9. package/lib/commonjs/api/entities/VCLAuthToken.js +6 -0
  10. package/lib/commonjs/api/entities/VCLAuthToken.js.map +1 -0
  11. package/lib/commonjs/api/entities/VCLAuthTokenDescriptor.js +6 -0
  12. package/lib/commonjs/api/entities/VCLAuthTokenDescriptor.js.map +1 -0
  13. package/lib/commonjs/index.js.map +1 -1
  14. package/lib/module/api/VCLApi.js +10 -3
  15. package/lib/module/api/VCLApi.js.map +1 -1
  16. package/lib/module/api/entities/VCLAuthToken.js +4 -0
  17. package/lib/module/api/entities/VCLAuthToken.js.map +1 -0
  18. package/lib/module/api/entities/VCLAuthTokenDescriptor.js +4 -0
  19. package/lib/module/api/entities/VCLAuthTokenDescriptor.js.map +1 -0
  20. package/lib/module/index.js.map +1 -1
  21. package/lib/typescript/src/api/VCLApi.d.ts +3 -29
  22. package/lib/typescript/src/api/VCLApi.d.ts.map +1 -1
  23. package/lib/typescript/src/api/entities/VCLAuthToken.d.ts +17 -0
  24. package/lib/typescript/src/api/entities/VCLAuthToken.d.ts.map +1 -0
  25. package/lib/typescript/src/api/entities/VCLAuthTokenDescriptor.d.ts +16 -0
  26. package/lib/typescript/src/api/entities/VCLAuthTokenDescriptor.d.ts.map +1 -0
  27. package/lib/typescript/src/api/entities/VCLPresentationRequest.d.ts +1 -0
  28. package/lib/typescript/src/api/entities/VCLPresentationRequest.d.ts.map +1 -1
  29. package/lib/typescript/src/index.d.ts +3 -1
  30. package/lib/typescript/src/index.d.ts.map +1 -1
  31. package/package.json +13 -3
  32. package/src/api/VCLApi.ts +46 -32
  33. package/src/api/entities/VCLAuthToken.ts +17 -0
  34. package/src/api/entities/VCLAuthTokenDescriptor.ts +16 -0
  35. package/src/api/entities/VCLPresentationRequest.ts +1 -0
  36. package/src/index.tsx +4 -0
  37. package/velocitycareerlabs-vcl-react-native.podspec +7 -28
  38. package/lib/module/package.json +0 -1
@@ -92,9 +92,9 @@ dependencies {
92
92
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
93
93
 
94
94
  //--------- Must: be added:
95
- implementation "io.velocitycareerlabs:vcl:2.6.14"
95
+ implementation "io.velocitycareerlabs:vcl:2.7.2"
96
96
  implementation 'com.nimbusds:nimbus-jose-jwt:10.0.1'
97
- implementation "androidx.security:security-crypto:1.1.0-alpha06"
97
+ implementation "androidx.security:security-crypto:1.1.0-alpha07"
98
98
  //-------------------------
99
99
  }
100
100
 
@@ -37,7 +37,10 @@ import io.velocitycareerlabs.api.VCLProvider
37
37
  import io.velocitycareerlabs.api.entities.error.VCLError
38
38
  import io.velocitycareerlabs.api.entities.initialization.VCLInitializationDescriptor
39
39
  import io.velocitycareerlabs.reactnative.extensions.toThrowable
40
+ import io.velocitycareerlabs.reactnative.utlis.Converter.authTokenToMap
40
41
  import io.velocitycareerlabs.reactnative.utlis.Converter.didJwkToMap
42
+ import io.velocitycareerlabs.reactnative.utlis.Converter.mapToAuthToken
43
+ import io.velocitycareerlabs.reactnative.utlis.Converter.mapToAuthTokenDescriptor
41
44
  import io.velocitycareerlabs.reactnative.utlis.Converter.mapToDidJwk
42
45
  import io.velocitycareerlabs.reactnative.utlis.Converter.mapToDidJwkDescriptor
43
46
  import io.velocitycareerlabs.reactnative.utlis.Converter.mapToInitializationDescriptor
@@ -152,11 +155,13 @@ class VclReactNativeModule(reactContext: ReactApplicationContext) :
152
155
  @ReactMethod
153
156
  fun submitPresentation(
154
157
  presentationSubmissionMap: ReadableMap,
158
+ authTokenMap: ReadableMap? = null,
155
159
  promise: Promise
156
160
  ) {
157
161
  try {
158
162
  vcl.submitPresentation(
159
163
  presentationSubmission = mapToPresentationSubmission(presentationSubmissionMap),
164
+ authToken = mapToAuthToken(authTokenMap),
160
165
  successHandler = {
161
166
  promise.resolve(presentationSubmissionResultToMap(it))
162
167
  },
@@ -294,6 +299,25 @@ class VclReactNativeModule(reactContext: ReactApplicationContext) :
294
299
  }
295
300
  }
296
301
 
302
+ @ReactMethod
303
+ fun getAuthToken(
304
+ authTokenDescriptorMap: ReadableMap,
305
+ promise: Promise
306
+ ) {
307
+ try {
308
+ vcl.getAuthToken(
309
+ authTokenDescriptor = mapToAuthTokenDescriptor(authTokenDescriptorMap),
310
+ successHandler = {
311
+ promise.resolve(authTokenToMap(it))
312
+ },
313
+ errorHandler = {
314
+ promise.reject(it.toThrowable())
315
+ })
316
+ } catch (ex: Exception) {
317
+ promise.reject(VCLError(ex).toThrowable())
318
+ }
319
+ }
320
+
297
321
  @ReactMethod
298
322
  fun getCredentialTypesUIFormSchema(
299
323
  credentialTypesUIFormSchemaDescriptorMap: ReadableMap,
@@ -242,6 +242,7 @@ object Converter {
242
242
  )
243
243
  presentationRequestMap.putMap("deepLink", deepLinkToMap(presentationRequest.deepLink))
244
244
  presentationRequestMap.putMap("didJwk", didJwkToMap(presentationRequest.didJwk))
245
+ presentationRequestMap.putBoolean("feed", presentationRequest.feed)
245
246
  presentationRequestMap.putMap(
246
247
  "remoteCryptoServicesToken",
247
248
  tokenToMap(presentationRequest.remoteCryptoServicesToken)
@@ -471,8 +472,8 @@ object Converter {
471
472
  VCLIssuingType.Career
472
473
  ),
473
474
  credentialTypes =
474
- (credentialManifestDescriptorByServiceMap.getArrayOpt("credentialTypes")?.toArrayList()
475
- ?.toList() as? List<String>),
475
+ (credentialManifestDescriptorByServiceMap.getArrayOpt("credentialTypes")?.toArrayList()
476
+ ?.toList() as? List<String>),
476
477
  pushDelegate = mapToPushDelegate(
477
478
  credentialManifestDescriptorByServiceMap.getMapOpt("pushDelegate")
478
479
  ),
@@ -683,6 +684,46 @@ object Converter {
683
684
  fun mapToJwt(jwtMap: ReadableMap?) =
684
685
  VCLJwt(encodedJwt = jwtMap?.getStringOpt("encodedJwt") ?: "")
685
686
 
687
+ fun mapToAuthTokenDescriptor(
688
+ authTokenDescriptorMap: ReadableMap
689
+ ): VCLAuthTokenDescriptor {
690
+ authTokenDescriptorMap.getMapOpt("presentationRequest")?.let { presentationRequestMap ->
691
+ return VCLAuthTokenDescriptor(
692
+ presentationRequest = mapToPresentationRequest(
693
+ presentationRequestMap
694
+ )
695
+ )
696
+ }
697
+ return VCLAuthTokenDescriptor(
698
+ authTokenUri = authTokenDescriptorMap.getStringOpt("authTokenUri") ?: "",
699
+ refreshToken = mapToToken(authTokenDescriptorMap.getMapOpt("refreshToken")),
700
+ walletDid = authTokenDescriptorMap.getStringOpt("walletDid"),
701
+ relyingPartyDid = authTokenDescriptorMap.getStringOpt("relyingPartyDid"),
702
+ vendorOriginContext = authTokenDescriptorMap.getStringOpt("vendorOriginContext")
703
+ )
704
+ }
705
+
706
+ fun authTokenToMap(
707
+ authToken: VCLAuthToken
708
+ ): ReadableMap {
709
+ val authTokenMap = Arguments.createMap()
710
+ authTokenMap.putMap("payload", authToken.payload.toReadableMap())
711
+ authTokenMap.putString("authTokenUri", authToken.authTokenUri)
712
+ authTokenMap.putMap("refreshToken", tokenToMap(authToken.refreshToken))
713
+ authTokenMap.putString("walletDid", authToken.walletDid)
714
+ authTokenMap.putString("relyingPartyDid", authToken.relyingPartyDid)
715
+ return authTokenMap
716
+ }
717
+
718
+ fun mapToAuthToken(authTokenMap: ReadableMap?): VCLAuthToken {
719
+ return VCLAuthToken(
720
+ payload = authTokenMap?.getMapOpt("payload")?.toJsonObject() ?: JSONObject(),
721
+ authTokenUri = authTokenMap?.getStringOpt("authTokenUri"),
722
+ walletDid = authTokenMap?.getStringOpt("walletDid"),
723
+ relyingPartyDid = authTokenMap?.getStringOpt("relyingPartyDid")
724
+ )
725
+ }
726
+
686
727
  fun mapToCredentialTypesUIFormSchemaDescriptor(
687
728
  credentialTypesUIFormSchemaDescriptorMap: ReadableMap
688
729
  ) = VCLCredentialTypesUIFormSchemaDescriptor(
@@ -234,6 +234,7 @@ func presentationRequestToDictionary(
234
234
  presentationRequestDictionary["presentationDefinitionId"] = presentationRequest.presentationDefinitionId
235
235
  presentationRequestDictionary["deepLink"] = deepLinkToDictionary(presentationRequest.deepLink)
236
236
  presentationRequestDictionary["didJwk"] = didJwkToDictionary(presentationRequest.didJwk)
237
+ presentationRequestDictionary["feed"] = presentationRequest.feed
237
238
  presentationRequestDictionary["remoteCryptoServicesToken"] = tokenToDictionary(presentationRequest.remoteCryptoServicesToken)
238
239
  return presentationRequestDictionary
239
240
  }
@@ -622,6 +623,42 @@ func jwtVerifiableCredentialsToDictionary(
622
623
  return jwtVerifiableCredentialsDictionary
623
624
  }
624
625
 
626
+ func dictionaryToAuthTokenDescriptor(
627
+ _ authTokenDescriptorDictionary: [String: Any]
628
+ ) -> VCLAuthTokenDescriptor {
629
+ if let presentationRequestDictionary = authTokenDescriptorDictionary["presentationRequest"] as? [String: Any] {
630
+ return VCLAuthTokenDescriptor(presentationRequest: dictionaryToPresentationRequest(presentationRequestDictionary))
631
+ }
632
+ return VCLAuthTokenDescriptor(
633
+ authTokenUri: authTokenDescriptorDictionary["authTokenUri"] as? String ?? "",
634
+ refreshToken: dictionaryToToken(authTokenDescriptorDictionary["refreshToken"] as? [String : Any]),
635
+ walletDid: authTokenDescriptorDictionary["walletDid"] as? String,
636
+ relyingPartyDid: authTokenDescriptorDictionary["relyingPartyDid"] as? String,
637
+ vendorOriginContext: authTokenDescriptorDictionary["vendorOriginContext"] as? String
638
+ )
639
+ }
640
+
641
+ func authTokenToDictionary(
642
+ _ authToken: VCLAuthToken
643
+ ) -> [String: Any] {
644
+ var authTokenDictionary = [String: Any]()
645
+ authTokenDictionary["payload"] = authToken.payload
646
+ authTokenDictionary["authTokenUri"] = authToken.authTokenUri
647
+ authTokenDictionary["refreshToken"] = tokenToDictionary(authToken.refreshToken)
648
+ authTokenDictionary["walletDid"] = authToken.walletDid
649
+ authTokenDictionary["relyingPartyDid"] = authToken.relyingPartyDid
650
+ return authTokenDictionary
651
+ }
652
+
653
+ func dictionaryToAuthToken(_ authTokenDictionary: [String: Any]) -> VCLAuthToken {
654
+ return VCLAuthToken(
655
+ payload: authTokenDictionary["payload"] as? [String: Any] ?? [:],
656
+ authTokenUri: authTokenDictionary["authTokenUri"] as? String,
657
+ walletDid: authTokenDictionary["walletDid"] as? String,
658
+ relyingPartyDid: authTokenDictionary["relyingPartyDid"] as? String
659
+ )
660
+ }
661
+
625
662
  func readableMapToCredentialTypesUIFormSchemaDescriptor(
626
663
  _ credentialTypesUIFormSchemaDescriptorDictionary: [String: Any]
627
664
  ) -> VCLCredentialTypesUIFormSchemaDescriptor {
@@ -26,6 +26,7 @@ RCT_EXTERN_METHOD(getPresentationRequest:(NSDictionary*)presentationRequestDescr
26
26
  withRejecter:(RCTPromiseRejectBlock)reject)
27
27
 
28
28
  RCT_EXTERN_METHOD(submitPresentation:(NSDictionary*)presentationSubmissionDictionary
29
+ withAuthTokenDictionary:(NSDictionary*)authTokenDictionary
29
30
  withResolver:(RCTPromiseResolveBlock)resolve
30
31
  withRejecter:(RCTPromiseRejectBlock)reject)
31
32
 
@@ -55,6 +56,10 @@ RCT_EXTERN_METHOD(finalizeOffers:(NSDictionary*)finalizeOffersDescriptorDictiona
55
56
  withResolver:(RCTPromiseResolveBlock)resolve
56
57
  withRejecter:(RCTPromiseRejectBlock)reject)
57
58
 
59
+ RCT_EXTERN_METHOD(getAuthToken:(NSDictionary*)authTokenDescriptorDictionary
60
+ withResolver:(RCTPromiseResolveBlock)resolve
61
+ withRejecter:(RCTPromiseRejectBlock)reject)
62
+
58
63
  RCT_EXTERN_METHOD(getCredentialTypesUIFormSchema:(NSDictionary*)credentialTypesUIFormSchemaDescriptorDictionary
59
64
  withResolver:(RCTPromiseResolveBlock)resolve
60
65
  withRejecter:(RCTPromiseRejectBlock)reject)
@@ -87,15 +87,17 @@ class VclReactNative: NSObject {
87
87
  )
88
88
  }
89
89
 
90
- @objc(submitPresentation:withResolver:withRejecter:)
90
+ @objc(submitPresentation:withAuthTokenDictionary:withResolver:withRejecter:)
91
91
  func submitPresentation(
92
92
  presentationSubmissionDictionary: [String: Any],
93
+ authTokenDictionary: [String: Any],
93
94
  resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
94
95
  ) {
95
96
  vcl.submitPresentation(
96
97
  presentationSubmission: dictionaryToPresentationSubmission(
97
98
  presentationSubmissionDictionary
98
99
  ),
100
+ authToken: dictionaryToAuthToken(authTokenDictionary),
99
101
  successHandler: {
100
102
  resolve(presentationSubmissionResultToDictionary($0))
101
103
  },
@@ -203,6 +205,20 @@ class VclReactNative: NSObject {
203
205
  reject(nil, $0.toDictionary().toJsonString(), $0)
204
206
  })
205
207
  }
208
+
209
+ @objc(getAuthToken:withResolver:withRejecter:)
210
+ func getAuthToken(
211
+ authTokenDescriptorDictionary: [String: Any],
212
+ resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock
213
+ ) {
214
+ vcl.getAuthToken(authTokenDescriptor: dictionaryToAuthTokenDescriptor(authTokenDescriptorDictionary),
215
+ successHandler: {
216
+ resolve(authTokenToDictionary($0))
217
+ },
218
+ errorHandler: {
219
+ reject(nil, $0.toDictionary().toJsonString(), $0)
220
+ })
221
+ }
206
222
 
207
223
  @objc(getCredentialTypesUIFormSchema:withResolver:withRejecter:)
208
224
  func getCredentialTypesUIFormSchema(
@@ -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/error/VCLError");
8
+ var _vclReactNative = require("@velocitycareerlabs/vcl-react-native");
9
9
  /**
10
10
  * Created by Michael Avoyan.
11
11
  *
@@ -21,119 +21,126 @@ const VclApi = exports.VclApi = {
21
21
  try {
22
22
  return await VclReactNative.initialize(initializationDescriptor);
23
23
  } catch (e) {
24
- throw new _VCLError.VCLError(e);
24
+ throw new _vclReactNative.VCLError(e);
25
25
  }
26
26
  },
27
27
  getCountries: async () => {
28
28
  try {
29
29
  return await VclReactNative.getCountries();
30
30
  } catch (e) {
31
- throw new _VCLError.VCLError(e);
31
+ throw new _vclReactNative.VCLError(e);
32
32
  }
33
33
  },
34
34
  getCredentialTypes: async () => {
35
35
  try {
36
36
  return await VclReactNative.getCredentialTypes();
37
37
  } catch (e) {
38
- throw new _VCLError.VCLError(e);
38
+ throw new _vclReactNative.VCLError(e);
39
39
  }
40
40
  },
41
41
  getCredentialTypeSchemas: async () => {
42
42
  try {
43
43
  return await VclReactNative.getCredentialTypeSchemas();
44
44
  } catch (e) {
45
- throw new _VCLError.VCLError(e);
45
+ throw new _vclReactNative.VCLError(e);
46
46
  }
47
47
  },
48
48
  getPresentationRequest: async presentationRequestDescriptor => {
49
49
  try {
50
50
  return await VclReactNative.getPresentationRequest(presentationRequestDescriptor);
51
51
  } catch (e) {
52
- throw new _VCLError.VCLError(e);
52
+ throw new _vclReactNative.VCLError(e);
53
53
  }
54
54
  },
55
- submitPresentation: async presentationSubmission => {
55
+ submitPresentation: async (presentationSubmission, authToken) => {
56
56
  try {
57
- return await VclReactNative.submitPresentation(presentationSubmission);
57
+ return await VclReactNative.submitPresentation(presentationSubmission, authToken);
58
58
  } catch (e) {
59
- throw new _VCLError.VCLError(e);
59
+ throw new _vclReactNative.VCLError(e);
60
60
  }
61
61
  },
62
62
  getExchangeProgress: async exchangeDescriptor => {
63
63
  try {
64
64
  return await VclReactNative.getExchangeProgress(exchangeDescriptor);
65
65
  } catch (e) {
66
- throw new _VCLError.VCLError(e);
66
+ throw new _vclReactNative.VCLError(e);
67
67
  }
68
68
  },
69
69
  searchForOrganizations: async organizationsSearchDescriptor => {
70
70
  try {
71
71
  return await VclReactNative.searchForOrganizations(organizationsSearchDescriptor);
72
72
  } catch (e) {
73
- throw new _VCLError.VCLError(e);
73
+ throw new _vclReactNative.VCLError(e);
74
74
  }
75
75
  },
76
76
  getCredentialManifest: async credentialManifestDescriptor => {
77
77
  try {
78
78
  return await VclReactNative.getCredentialManifest(credentialManifestDescriptor);
79
79
  } catch (e) {
80
- throw new _VCLError.VCLError(e);
80
+ throw new _vclReactNative.VCLError(e);
81
81
  }
82
82
  },
83
83
  generateOffers: async generateOffersDescriptor => {
84
84
  try {
85
85
  return await VclReactNative.generateOffers(generateOffersDescriptor);
86
86
  } catch (e) {
87
- throw new _VCLError.VCLError(e);
87
+ throw new _vclReactNative.VCLError(e);
88
88
  }
89
89
  },
90
90
  checkForOffers: async (generateOffersDescriptor, sessionToken) => {
91
91
  try {
92
92
  return await VclReactNative.checkForOffers(generateOffersDescriptor, sessionToken);
93
93
  } catch (e) {
94
- throw new _VCLError.VCLError(e);
94
+ throw new _vclReactNative.VCLError(e);
95
95
  }
96
96
  },
97
97
  finalizeOffers: async (finalizeOffersDescriptor, sessionToken) => {
98
98
  try {
99
99
  return await VclReactNative.finalizeOffers(finalizeOffersDescriptor, sessionToken);
100
100
  } catch (e) {
101
- throw new _VCLError.VCLError(e);
101
+ throw new _vclReactNative.VCLError(e);
102
+ }
103
+ },
104
+ getAuthToken: async authTokenDescriptor => {
105
+ try {
106
+ return await VclReactNative.getAuthToken(authTokenDescriptor);
107
+ } catch (e) {
108
+ throw new _vclReactNative.VCLError(e);
102
109
  }
103
110
  },
104
111
  getCredentialTypesUIFormSchema: async credentialTypesUIFormSchemaDescriptor => {
105
112
  try {
106
113
  return await VclReactNative.getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor);
107
114
  } catch (e) {
108
- throw new _VCLError.VCLError(e);
115
+ throw new _vclReactNative.VCLError(e);
109
116
  }
110
117
  },
111
118
  getVerifiedProfile: async verifiedProfileDescriptor => {
112
119
  try {
113
120
  return await VclReactNative.getVerifiedProfile(verifiedProfileDescriptor);
114
121
  } catch (e) {
115
- throw new _VCLError.VCLError(e);
122
+ throw new _vclReactNative.VCLError(e);
116
123
  }
117
124
  },
118
125
  verifyJwt: async (jwt, jwkPublic, remoteCryptoServicesToken) => {
119
126
  try {
120
127
  return await VclReactNative.verifyJwt(jwt, jwkPublic, remoteCryptoServicesToken);
121
128
  } catch (e) {
122
- throw new _VCLError.VCLError(e);
129
+ throw new _vclReactNative.VCLError(e);
123
130
  }
124
131
  },
125
132
  generateSignedJwt: async (jwtDescriptor, didJwk, remoteCryptoServicesToken) => {
126
133
  try {
127
134
  return await VclReactNative.generateSignedJwt(jwtDescriptor, didJwk, remoteCryptoServicesToken);
128
135
  } catch (e) {
129
- throw new _VCLError.VCLError(e);
136
+ throw new _vclReactNative.VCLError(e);
130
137
  }
131
138
  },
132
139
  generateDidJwk: async didJwkDescriptor => {
133
140
  try {
134
141
  return await VclReactNative.generateDidJwk(didJwkDescriptor);
135
142
  } catch (e) {
136
- throw new _VCLError.VCLError(e);
143
+ throw new _vclReactNative.VCLError(e);
137
144
  }
138
145
  }
139
146
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_VCLError","VclReactNative","NativeModules","VclApi","exports","initialize","initializationDescriptor","e","VCLError","getCountries","getCredentialTypes","getCredentialTypeSchemas","getPresentationRequest","presentationRequestDescriptor","submitPresentation","presentationSubmission","getExchangeProgress","exchangeDescriptor","searchForOrganizations","organizationsSearchDescriptor","getCredentialManifest","credentialManifestDescriptor","generateOffers","generateOffersDescriptor","checkForOffers","sessionToken","finalizeOffers","finalizeOffersDescriptor","getCredentialTypesUIFormSchema","credentialTypesUIFormSchemaDescriptor","getVerifiedProfile","verifiedProfileDescriptor","verifyJwt","jwt","jwkPublic","remoteCryptoServicesToken","generateSignedJwt","jwtDescriptor","didJwk","generateDidJwk","didJwkDescriptor"],"sour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,EACNH,yBACF,CAAC;IACH,CAAC,CAAC,OAAO5B,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF,CAAC;EAEDgC,cAAc,EAAE,MACdC,gBAAqC,IACd;IACvB,IAAI;MACF,OAAO,MAAMvC,cAAc,CAACsC,cAAc,CAACC,gBAAgB,CAAC;IAC9D,CAAC,CAAC,OAAOjC,CAAC,EAAE;MACV,MAAM,IAAIC,kBAAQ,CAACD,CAAC,CAAC;IACvB;EACF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_vclReactNative","VclReactNative","NativeModules","VclApi","exports","initialize","initializationDescriptor","e","VCLError","getCountries","getCredentialTypes","getCredentialTypeSchemas","getPresentationRequest","presentationRequestDescriptor","submitPresentation","presentationSubmission","authToken","getExchangeProgress","exchangeDescriptor","searchForOrganizations","organizationsSearchDescriptor","getCredentialManifest","credentialManifestDescriptor","generateOffers","generateOffersDescriptor","checkForOffers","sessionToken","finalizeOffers","finalizeOffersDescriptor","getAuthToken","authTokenDescriptor","getCredentialTypesUIFormSchema","credentialTypesUIFormSchemaDescriptor","getVerifiedProfile","verifiedProfileDescriptor","verifyJwt","jwt","jwkPublic","remoteCryptoServicesToken","generateSignedJwt","jwtDescriptor","didJwk","generateDidJwk","didJwkDescriptor"],"sourceRoot":"../../../src","sources":["api/VCLApi.ts"],"mappings":";;;;;;AAOA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AARA;AACA;AACA;AACA;AACA;AACA;;AAqCA,MAAM;EAAEE;AAAe,CAAC,GAAGC,0BAAa;AAEjC,MAAMC,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG;EACpBE,UAAU,EAAE,MACVC,wBAAqD,IACnC;IAClB,IAAI;MACF,OAAO,MAAML,cAAc,CAACI,UAAU,CAACC,wBAAwB,CAAC;IAClE,CAAC,CAAC,OAAOC,CAAC,EAAE;MACV,MAAM,IAAIC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;IACvB,IAAI;MACF,OAAO,MAAM1C,cAAc,CAACyC,cAAc,CAACC,gBAAgB,CAAC;IAC9D,CAAC,CAAC,OAAOpC,CAAC,EAAE;MACV,MAAM,IAAIC,wBAAQ,CAACD,CAAC,CAAC;IACvB;EACF;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=VCLAuthToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/entities/VCLAuthToken.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=VCLAuthTokenDescriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/entities/VCLAuthTokenDescriptor.ts"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_VCLApi","require","_VCLEnvironment","_VCLXVnfProtocolVersion","_VCLCryptoServiceType","_VCLSignatureAlgorithm","_VCLCountries","_VCLServiceType","_VCLIssuingType","_VCLError","_VCLStatusCode","_VCLErrorCode","_default","exports","default","VclApi"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AAOA,IAAAK,aAAA,GAAAL,OAAA;AAiCA,IAAAM,eAAA,GAAAN,OAAA;AAEA,IAAAO,eAAA,GAAAP,OAAA;AAYA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AAnEA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAW,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAqEeC,cAAM","ignoreList":[]}
1
+ {"version":3,"names":["_VCLApi","require","_VCLEnvironment","_VCLXVnfProtocolVersion","_VCLCryptoServiceType","_VCLSignatureAlgorithm","_VCLCountries","_VCLServiceType","_VCLIssuingType","_VCLError","_VCLStatusCode","_VCLErrorCode","_default","exports","default","VclApi"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,uBAAA,GAAAF,OAAA;AACA,IAAAG,qBAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AAOA,IAAAK,aAAA,GAAAL,OAAA;AAiCA,IAAAM,eAAA,GAAAN,OAAA;AAEA,IAAAO,eAAA,GAAAP,OAAA;AAYA,IAAAQ,SAAA,GAAAR,OAAA;AACA,IAAAS,cAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;AAnEA;AACA;AACA;AACA;AACA;AACA;AALA,IAAAW,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAuEeC,cAAM","ignoreList":[]}
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  import { NativeModules } from 'react-native';
11
- import { VCLError } from './entities/error/VCLError';
11
+ import { VCLError } from '@velocitycareerlabs/vcl-react-native';
12
12
  const {
13
13
  VclReactNative
14
14
  } = NativeModules;
@@ -48,9 +48,9 @@ export const VclApi = {
48
48
  throw new VCLError(e);
49
49
  }
50
50
  },
51
- submitPresentation: async presentationSubmission => {
51
+ submitPresentation: async (presentationSubmission, authToken) => {
52
52
  try {
53
- return await VclReactNative.submitPresentation(presentationSubmission);
53
+ return await VclReactNative.submitPresentation(presentationSubmission, authToken);
54
54
  } catch (e) {
55
55
  throw new VCLError(e);
56
56
  }
@@ -97,6 +97,13 @@ export const VclApi = {
97
97
  throw new VCLError(e);
98
98
  }
99
99
  },
100
+ getAuthToken: async authTokenDescriptor => {
101
+ try {
102
+ return await VclReactNative.getAuthToken(authTokenDescriptor);
103
+ } catch (e) {
104
+ throw new VCLError(e);
105
+ }
106
+ },
100
107
  getCredentialTypesUIFormSchema: async credentialTypesUIFormSchemaDescriptor => {
101
108
  try {
102
109
  return await VclReactNative.getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor);
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","VCLError","VclReactNative","VclApi","initialize","initializationDescriptor","e","getCountries","getCredentialTypes","getCredentialTypeSchemas","getPresentationRequest","presentationRequestDescriptor","submitPresentation","presentationSubmission","getExchangeProgress","exchangeDescriptor","searchForOrganizations","organizationsSearchDescriptor","getCredentialManifest","credentialManifestDescriptor","generateOffers","generateOffersDescriptor","checkForOffers","sessionToken","finalizeOffers","finalizeOffersDescriptor","getCredentialTypesUIFormSchema","credentialTypesUIFormSchemaDescriptor","getVerifiedProfile","verifiedProfileDescriptor","verifyJwt","jwt","jwkPublic","remoteCryptoServicesToken","generateSignedJwt","jwtDescriptor","didJwk","generateDidJwk","didJwkDescriptor"],"sourceRoot":"../../../src","sources":["api/VCLApi.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,QAAQ,cAAc;AA8B5C,SAASC,QAAQ,QAAQ,2BAA2B;AAEpD,MAAM;EAAEC;AAAe,CAAC,GAAGF,aAAa;AAExC,OAAO,MAAMG,MAAM,GAAG;EACpBC,UAAU,EAAE,MACVC,wBAAqD,IACnC;IAClB,IAAI;MACF,OAAO,MAAMH,cAAc,CAACE,UAAU,CAACC,wBAAwB,CAAC;IAClE,CAAC,CAAC,OAAOC,CAAC,EAAE;MACV,MAA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C,IAAI;MACF,OAAO,MAAMzB,cAAc,CAACwB,8BAA8B,CACxDC,qCACF,CAAC;IACH,CAAC,CAAC,OAAOrB,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAEDsB,kBAAkB,EAAE,MAClBC,yBAAuD,IACvB;IAChC,IAAI;MACF,OAAO,MAAM3B,cAAc,CAAC0B,kBAAkB,CAACC,yBAAyB,CAAC;IAC3E,CAAC,CAAC,OAAOvB,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAEDwB,SAAS,EAAE,MAAAA,CACTC,GAAW,EACXC,SAAuB,EACvBC,yBAAoC,KACf;IACrB,IAAI;MACF,OAAO,MAAM/B,cAAc,CAAC4B,SAAS,CACnCC,GAAG,EACHC,SAAS,EACTC,yBACF,CAAC;IACH,CAAC,CAAC,OAAO3B,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAED4B,iBAAiB,EAAE,MAAAA,CACjBC,aAA+B,EAC/BC,MAAiB,EACjBH,yBAAoC,KAChB;IACpB,IAAI;MACF,OAAO,MAAM/B,cAAc,CAACgC,iBAAiB,CAC3CC,aAAa,EACbC,MAAM,EACNH,yBACF,CAAC;IACH,CAAC,CAAC,OAAO3B,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAED+B,cAAc,EAAE,MACdC,gBAAqC,IACd;IACvB,IAAI;MACF,OAAO,MAAMpC,cAAc,CAACmC,cAAc,CAACC,gBAAgB,CAAC;IAC9D,CAAC,CAAC,OAAOhC,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["NativeModules","VCLError","VclReactNative","VclApi","initialize","initializationDescriptor","e","getCountries","getCredentialTypes","getCredentialTypeSchemas","getPresentationRequest","presentationRequestDescriptor","submitPresentation","presentationSubmission","authToken","getExchangeProgress","exchangeDescriptor","searchForOrganizations","organizationsSearchDescriptor","getCredentialManifest","credentialManifestDescriptor","generateOffers","generateOffersDescriptor","checkForOffers","sessionToken","finalizeOffers","finalizeOffersDescriptor","getAuthToken","authTokenDescriptor","getCredentialTypesUIFormSchema","credentialTypesUIFormSchemaDescriptor","getVerifiedProfile","verifiedProfileDescriptor","verifyJwt","jwt","jwkPublic","remoteCryptoServicesToken","generateSignedJwt","jwtDescriptor","didJwk","generateDidJwk","didJwkDescriptor"],"sourceRoot":"../../../src","sources":["api/VCLApi.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,QAAQ,cAAc;AAC5C,SA+BEC,QAAQ,QACH,sCAAsC;AAE7C,MAAM;EAAEC;AAAe,CAAC,GAAGF,aAAa;AAExC,OAAO,MAAMG,MAAM,GAAG;EACpBC,UAAU,EAAE,MACVC,wBAAqD,IACnC;IAClB,IAAI;MACF,OAAO,MAAMH,cAAc,CAACE,UAAU,CAACC,wBAAwB,CAAC;IAClE,CAAC,CAAC,OAAOC,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAEDC,YAAY,EAAE,MAAAA,CAAA,KAAmC;IAC/C,IAAI;MACF,OAAO,MAAML,cAAc,CAACK,YAAY,CAAC,CAAC;IAC5C,CAAC,CAAC,OAAOD,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAEDE,kBAAkB,EAAE,MAAAA,CAAA,KAAyC;IAC3D,IAAI;MACF,OAAO,MAAMN,cAAc,CAACM,kBAAkB,CAAC,CAAC;IAClD,CAAC,CAAC,OAAOF,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAEDG,wBAAwB,EAAE,MAA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OAAO,MAAM9B,cAAc,CAAC6B,kBAAkB,CAACC,yBAAyB,CAAC;IAC3E,CAAC,CAAC,OAAO1B,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAED2B,SAAS,EAAE,MAAAA,CACTC,GAAW,EACXC,SAAuB,EACvBC,yBAAoC,KACf;IACrB,IAAI;MACF,OAAO,MAAMlC,cAAc,CAAC+B,SAAS,CACnCC,GAAG,EACHC,SAAS,EACTC,yBACF,CAAC;IACH,CAAC,CAAC,OAAO9B,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAED+B,iBAAiB,EAAE,MAAAA,CACjBC,aAA+B,EAC/BC,MAAiB,EACjBH,yBAAoC,KAChB;IACpB,IAAI;MACF,OAAO,MAAMlC,cAAc,CAACmC,iBAAiB,CAC3CC,aAAa,EACbC,MAAM,EACNH,yBACF,CAAC;IACH,CAAC,CAAC,OAAO9B,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAEDkC,cAAc,EAAE,MACdC,gBAAqC,IACd;IACvB,IAAI;MACF,OAAO,MAAMvC,cAAc,CAACsC,cAAc,CAACC,gBAAgB,CAAC;IAC9D,CAAC,CAAC,OAAOnC,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=VCLAuthToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/entities/VCLAuthToken.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+
3
+ export {};
4
+ //# sourceMappingURL=VCLAuthTokenDescriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/entities/VCLAuthTokenDescriptor.ts"],"mappings":"","ignoreList":[]}
@@ -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,cAAc;AACrC,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,sBAAsB,QAAQ,8BAA8B;AACrE,SAASC,oBAAoB,QAAQ,4BAA4B;AACjE,SAASC,qBAAqB,QAAQ,6BAA6B;AAOnE,SAASC,eAAe,QAAQ,6BAA6B;AAiC7D,SAASC,cAAc,QAAQ,+BAA+B;AAE9D,SAASC,cAAc,QAAQ,+BAA+B;AAY9D,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,aAAa,QAAQ,oCAAoC;AAClE,SAASC,YAAY,QAAQ,mCAAmC;AAEhE,eAAeV,MAAM;AACrB,SACEC,cAAc,EACdE,oBAAoB,EACpBC,qBAAqB,EACrBF,sBAAsB,EACtBG,eAAe,EACfC,cAAc,EACdC,cAAc,EACdC,QAAQ,EACRC,aAAa,EACbC,YAAY","ignoreList":[]}
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,cAAc;AACrC,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,sBAAsB,QAAQ,8BAA8B;AACrE,SAASC,oBAAoB,QAAQ,4BAA4B;AACjE,SAASC,qBAAqB,QAAQ,6BAA6B;AAOnE,SAASC,eAAe,QAAQ,6BAA6B;AAiC7D,SAASC,cAAc,QAAQ,+BAA+B;AAE9D,SAASC,cAAc,QAAQ,+BAA+B;AAY9D,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,aAAa,QAAQ,oCAAoC;AAClE,SAASC,YAAY,QAAQ,mCAAmC;AAIhE,eAAeV,MAAM;AACrB,SACEC,cAAc,EACdE,oBAAoB,EACpBC,qBAAqB,EACrBF,sBAAsB,EACtBG,eAAe,EACfC,cAAc,EACdC,cAAc,EACdC,QAAQ,EACRC,aAAa,EACbC,YAAY","ignoreList":[]}
@@ -4,47 +4,21 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- import type { VCLCredentialManifest } from './entities/VCLCredentialManifest';
8
- import type { VCLCredentialManifestDescriptor } from './entities/VCLCredentialManifestDescriptor';
9
- import type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchemas';
10
- import type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';
11
- import type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';
12
- import type { VCLExchange } from './entities/VCLExchange';
13
- import type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';
14
- import type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';
15
- import type { VCLGenerateOffersDescriptor } from './entities/VCLGenerateOffersDescriptor';
16
- import type { VCLJwt } from './entities/VCLJwt';
17
- import type { VCLJwtVerifiableCredentials } from './entities/VCLJwtVerifiableCredentials';
18
- import type { VCLOffers } from './entities/VCLOffers';
19
- import type { VCLOrganizations } from './entities/VCLOrganizations';
20
- import type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';
21
- import type { VCLPresentationRequest } from './entities/VCLPresentationRequest';
22
- import type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';
23
- import type { VCLPublicJwk } from './entities/VCLPublicJwk';
24
- import type { VCLToken } from './entities/VCLToken';
25
- import type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';
26
- import type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';
27
- import type { VCLCountries } from './entities/VCLCountries';
28
- import type { VCLInitializationDescriptor } from './entities/initialization/VCLInitializationDescriptor';
29
- import type { VCLSubmissionResult } from './entities/VCLSubmissionResult';
30
- import type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';
31
- import type { VCLJwtDescriptor } from './entities/VCLJwtDescriptor';
32
- import type { VCLDidJwk } from './entities/VCLDidJwk';
33
- import type { VCLCredentialTypes } from './entities/VCLCredentialTypes';
34
- import type { VCLDidJwkDescriptor } from './entities/VCLDidJwkDescriptor';
7
+ import { type VCLAuthToken, type VCLAuthTokenDescriptor, type VCLCredentialManifest, type VCLCredentialManifestDescriptor, type VCLCredentialTypeSchemas, type VCLCredentialTypesUIFormSchema, type VCLCredentialTypesUIFormSchemaDescriptor, type VCLExchange, type VCLExchangeDescriptor, type VCLFinalizeOffersDescriptor, type VCLGenerateOffersDescriptor, type VCLJwt, type VCLJwtVerifiableCredentials, type VCLOffers, type VCLOrganizations, type VCLOrganizationsSearchDescriptor, type VCLPresentationRequest, type VCLPresentationSubmission, type VCLPublicJwk, type VCLToken, type VCLVerifiedProfile, type VCLVerifiedProfileDescriptor, type VCLCountries, type VCLInitializationDescriptor, type VCLSubmissionResult, type VCLPresentationRequestDescriptor, type VCLJwtDescriptor, type VCLDidJwk, type VCLCredentialTypes, type VCLDidJwkDescriptor } from '@velocitycareerlabs/vcl-react-native';
35
8
  export declare const VclApi: {
36
9
  initialize: (initializationDescriptor: VCLInitializationDescriptor) => Promise<void>;
37
10
  getCountries: () => Promise<VCLCountries>;
38
11
  getCredentialTypes: () => Promise<VCLCredentialTypes>;
39
12
  getCredentialTypeSchemas: () => Promise<VCLCredentialTypeSchemas>;
40
13
  getPresentationRequest: (presentationRequestDescriptor: VCLPresentationRequestDescriptor) => Promise<VCLPresentationRequest>;
41
- submitPresentation: (presentationSubmission: VCLPresentationSubmission) => Promise<VCLSubmissionResult>;
14
+ submitPresentation: (presentationSubmission: VCLPresentationSubmission, authToken?: VCLAuthToken) => Promise<VCLSubmissionResult>;
42
15
  getExchangeProgress: (exchangeDescriptor: VCLExchangeDescriptor) => Promise<VCLExchange>;
43
16
  searchForOrganizations: (organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor) => Promise<VCLOrganizations>;
44
17
  getCredentialManifest: (credentialManifestDescriptor: VCLCredentialManifestDescriptor) => Promise<VCLCredentialManifest>;
45
18
  generateOffers: (generateOffersDescriptor: VCLGenerateOffersDescriptor) => Promise<VCLOffers>;
46
19
  checkForOffers: (generateOffersDescriptor: VCLGenerateOffersDescriptor, sessionToken: VCLToken) => Promise<VCLOffers>;
47
20
  finalizeOffers: (finalizeOffersDescriptor: VCLFinalizeOffersDescriptor, sessionToken: VCLToken) => Promise<VCLJwtVerifiableCredentials>;
21
+ getAuthToken: (authTokenDescriptor: VCLAuthTokenDescriptor) => Promise<VCLAuthToken>;
48
22
  getCredentialTypesUIFormSchema: (credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor) => Promise<VCLCredentialTypesUIFormSchema>;
49
23
  getVerifiedProfile: (verifiedProfileDescriptor: VCLVerifiedProfileDescriptor) => Promise<VCLVerifiedProfile>;
50
24
  verifyJwt: (jwt: VCLJwt, jwkPublic: VCLPublicJwk, remoteCryptoServicesToken?: VCLToken) => Promise<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"VCLApi.d.ts","sourceRoot":"","sources":["../../../../src/api/VCLApi.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,KAAK,EAA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AA2B,CAAC;wCAYhB,sBAAsB,KAC1C,OAAO,CAAC,YAAY,CAAC;4EASiB,wCAAwC,KAC9E,OAAO,CAAC,8BAA8B,CAAC;oDAWb,4BAA4B,KACtD,OAAO,CAAC,kBAAkB,CAAC;qBASvB,MAAM,aACA,YAAY,8BACK,QAAQ,KACnC,OAAO,CAAC,OAAO,CAAC;uCAaF,gBAAgB,UACvB,SAAS,8BACW,QAAQ,KACnC,OAAO,CAAC,MAAM,CAAC;uCAaE,mBAAmB,KACpC,OAAO,CAAC,SAAS,CAAC;CAOtB,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Created by Michael Avoyan on 17/04/2025.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import type { Dictionary, VCLToken } from '@velocitycareerlabs/vcl-react-native';
8
+ export interface VCLAuthToken {
9
+ payload: Dictionary<any>;
10
+ authTokenUri?: string;
11
+ walletDid?: string;
12
+ relyingPartyDid?: string;
13
+ accessToken: VCLToken;
14
+ refreshToken: VCLToken;
15
+ tokenType: string;
16
+ }
17
+ //# sourceMappingURL=VCLAuthToken.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VCLAuthToken.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLAuthToken.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAEjF,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,EAAE,QAAQ,CAAA;IACrB,YAAY,EAAE,QAAQ,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;CAClB"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Created by Michael Avoyan on 17/04/2025.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import type { VCLPresentationRequest, VCLToken } from '@velocitycareerlabs/vcl-react-native';
8
+ export interface VCLAuthTokenDescriptor {
9
+ authTokenUri?: string;
10
+ presentationRequest?: VCLPresentationRequest;
11
+ refreshToken?: VCLToken;
12
+ walletDid?: string;
13
+ relyingPartyDid?: string;
14
+ vendorOriginContext?: string;
15
+ }
16
+ //# sourceMappingURL=VCLAuthTokenDescriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VCLAuthTokenDescriptor.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLAuthTokenDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAE7F,MAAM,WAAW,sBAAsB;IACrC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mBAAmB,CAAC,EAAE,sBAAsB,CAAA;IAC5C,YAAY,CAAC,EAAE,QAAQ,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC7B"}
@@ -16,6 +16,7 @@ export interface VCLPresentationRequest {
16
16
  presentationDefinitionId: string;
17
17
  iss: string;
18
18
  didJwk: VCLDidJwk;
19
+ feed?: boolean;
19
20
  remoteCryptoServicesToken?: VCLToken;
20
21
  }
21
22
  //# sourceMappingURL=VCLPresentationRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VCLPresentationRequest.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLPresentationRequest.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,kBAAkB,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB,EAAE,MAAM,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,SAAS,CAAC;IAClB,yBAAyB,CAAC,EAAE,QAAQ,CAAC;CACtC"}
1
+ {"version":3,"file":"VCLPresentationRequest.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLPresentationRequest.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,kBAAkB,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB,EAAE,MAAM,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yBAAyB,CAAC,EAAE,QAAQ,CAAC;CACtC"}
@@ -65,7 +65,9 @@ import type { VCLDidJwk } from './api/entities/VCLDidJwk';
65
65
  import { VCLError } from './api/entities/error/VCLError';
66
66
  import { VCLStatusCode } from './api/entities/error/VCLStatusCode';
67
67
  import { VCLErrorCode } from './api/entities/error/VCLErrorCode';
68
+ import type { VCLAuthToken } from './api/entities/VCLAuthToken';
69
+ import type { VCLAuthTokenDescriptor } from './api/entities/VCLAuthTokenDescriptor';
68
70
  export default VclApi;
69
71
  export { VCLEnvironment, VCLCryptoServiceType, VCLSignatureAlgorithm, VCLXVnfProtocolVersion, VCLCountryCodes, VCLServiceType, VCLIssuingType, VCLError, VCLStatusCode, VCLErrorCode, };
70
- 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, };
72
+ 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, };
71
73
  //# 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,iDAAiD,CAAC;AACzF,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,qEAAqE,CAAC;AACjI,OAAO,KAAK,EAAE,UAAU,EAAE,M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AAmC,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAEpF,eAAe,MAAM,CAAC;AACtB,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,cAAc,EACd,QAAQ,EACR,aAAa,EACb,YAAY,GACb,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,GACvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vcl-react-native",
3
- "version": "2.6.14",
3
+ "version": "2.7.2",
4
4
  "description": "Velocity Career Labs React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -26,6 +26,7 @@
26
26
  "!**/.*"
27
27
  ],
28
28
  "scripts": {
29
+ "check-licenses": "yarn licenses list --production --json | grep table | ./scripts/check-license.js",
29
30
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
30
31
  "lint:affected": "nx affected --target=lint",
31
32
  "lint:fix": "nx run-many --target=lint:fix --all",
@@ -55,9 +56,17 @@
55
56
  "publishConfig": {
56
57
  "registry": "https://registry.npmjs.org/"
57
58
  },
59
+ "dependencies": {
60
+ "license-checker": "^25.0.1"
61
+ },
58
62
  "devDependencies": {
63
+ "@babel/core": "7.26.0",
64
+ "@babel/preset-env": "7.26.0",
65
+ "@babel/preset-typescript": "7.26.0",
59
66
  "@commitlint/config-conventional": "^19.1.0",
60
67
  "@evilmartians/lefthook": "^1.5.0",
68
+ "@react-native/babel-preset": "^0.77.0",
69
+ "@react-native/community-cli-plugin": "^0.77.0",
61
70
  "@react-native/eslint-config": "^0.74.75",
62
71
  "@release-it/conventional-changelog": "^8.0.1",
63
72
  "@types/jest": "^29.5.14",
@@ -72,6 +81,7 @@
72
81
  "eslint-config-react-app": "^7.0.1",
73
82
  "eslint-import-resolver-typescript": "^3.6.1",
74
83
  "eslint-plugin-autofix": "^1.1.0",
84
+ "eslint-plugin-ft-flow": "^3.0.11",
75
85
  "eslint-plugin-import": "^2.29.1",
76
86
  "eslint-plugin-jest": "^28.2.0",
77
87
  "eslint-plugin-jsx-a11y": "^6.8.0 ",
@@ -84,8 +94,8 @@
84
94
  "jest": "^29.7.0",
85
95
  "prettier": "^3.0.3",
86
96
  "react": "18.3.1",
87
- "react-native": "0.73.6",
88
- "react-native-builder-bob": "^0.30.0",
97
+ "react-native": "0.73.10",
98
+ "react-native-builder-bob": "^0.40.6",
89
99
  "release-it": "^15.0.0",
90
100
  "turbo": "^1.10.7",
91
101
  "typescript": "^5.2.2"
package/src/api/VCLApi.ts CHANGED
@@ -6,36 +6,39 @@
6
6
  */
7
7
 
8
8
  import { NativeModules } from 'react-native';
9
- import type { VCLCredentialManifest } from './entities/VCLCredentialManifest';
10
- import type { VCLCredentialManifestDescriptor } from './entities/VCLCredentialManifestDescriptor';
11
- import type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchemas';
12
- import type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';
13
- import type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';
14
- import type { VCLExchange } from './entities/VCLExchange';
15
- import type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';
16
- import type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';
17
- import type { VCLGenerateOffersDescriptor } from './entities/VCLGenerateOffersDescriptor';
18
- import type { VCLJwt } from './entities/VCLJwt';
19
- import type { VCLJwtVerifiableCredentials } from './entities/VCLJwtVerifiableCredentials';
20
- import type { VCLOffers } from './entities/VCLOffers';
21
- import type { VCLOrganizations } from './entities/VCLOrganizations';
22
- import type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';
23
- import type { VCLPresentationRequest } from './entities/VCLPresentationRequest';
24
- import type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';
25
- import type { VCLPublicJwk } from './entities/VCLPublicJwk';
26
- import type { VCLToken } from './entities/VCLToken';
27
- import type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';
28
- import type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';
29
- import type { VCLCountries } from './entities/VCLCountries';
30
- import type { VCLInitializationDescriptor } from './entities/initialization/VCLInitializationDescriptor';
31
- import type { VCLSubmissionResult } from './entities/VCLSubmissionResult';
32
- import type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';
33
- import type { VCLJwtDescriptor } from './entities/VCLJwtDescriptor';
34
- import type { VCLDidJwk } from './entities/VCLDidJwk';
35
- import type { VCLCredentialTypes } from './entities/VCLCredentialTypes';
36
- import type { VCLDidJwkDescriptor } from './entities/VCLDidJwkDescriptor';
37
-
38
- import { VCLError } from './entities/error/VCLError';
9
+ import {
10
+ type VCLAuthToken,
11
+ type VCLAuthTokenDescriptor,
12
+ type VCLCredentialManifest,
13
+ type VCLCredentialManifestDescriptor,
14
+ type VCLCredentialTypeSchemas,
15
+ type VCLCredentialTypesUIFormSchema,
16
+ type VCLCredentialTypesUIFormSchemaDescriptor,
17
+ type VCLExchange,
18
+ type VCLExchangeDescriptor,
19
+ type VCLFinalizeOffersDescriptor,
20
+ type VCLGenerateOffersDescriptor,
21
+ type VCLJwt,
22
+ type VCLJwtVerifiableCredentials,
23
+ type VCLOffers,
24
+ type VCLOrganizations,
25
+ type VCLOrganizationsSearchDescriptor,
26
+ type VCLPresentationRequest,
27
+ type VCLPresentationSubmission,
28
+ type VCLPublicJwk,
29
+ type VCLToken,
30
+ type VCLVerifiedProfile,
31
+ type VCLVerifiedProfileDescriptor,
32
+ type VCLCountries,
33
+ type VCLInitializationDescriptor,
34
+ type VCLSubmissionResult,
35
+ type VCLPresentationRequestDescriptor,
36
+ type VCLJwtDescriptor,
37
+ type VCLDidJwk,
38
+ type VCLCredentialTypes,
39
+ type VCLDidJwkDescriptor,
40
+ VCLError,
41
+ } from '@velocitycareerlabs/vcl-react-native';
39
42
 
40
43
  const { VclReactNative } = NativeModules;
41
44
 
@@ -87,10 +90,11 @@ export const VclApi = {
87
90
  },
88
91
 
89
92
  submitPresentation: async (
90
- presentationSubmission: VCLPresentationSubmission
93
+ presentationSubmission: VCLPresentationSubmission,
94
+ authToken?: VCLAuthToken
91
95
  ): Promise<VCLSubmissionResult> => {
92
96
  try {
93
- return await VclReactNative.submitPresentation(presentationSubmission);
97
+ return await VclReactNative.submitPresentation(presentationSubmission, authToken);
94
98
  } catch (e) {
95
99
  throw new VCLError(e);
96
100
  }
@@ -168,6 +172,16 @@ export const VclApi = {
168
172
  }
169
173
  },
170
174
 
175
+ getAuthToken: async (
176
+ authTokenDescriptor: VCLAuthTokenDescriptor,
177
+ ): Promise<VCLAuthToken> => {
178
+ try {
179
+ return await VclReactNative.getAuthToken(authTokenDescriptor);
180
+ } catch (e) {
181
+ throw new VCLError(e);
182
+ }
183
+ },
184
+
171
185
  getCredentialTypesUIFormSchema: async (
172
186
  credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor
173
187
  ): Promise<VCLCredentialTypesUIFormSchema> => {
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Created by Michael Avoyan on 17/04/2025.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import type { Dictionary, VCLToken } from '@velocitycareerlabs/vcl-react-native';
8
+
9
+ export interface VCLAuthToken {
10
+ payload: Dictionary<any>,
11
+ authTokenUri?: string
12
+ walletDid?: string
13
+ relyingPartyDid?: string
14
+ accessToken: VCLToken
15
+ refreshToken: VCLToken
16
+ tokenType: string
17
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Created by Michael Avoyan on 17/04/2025.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import type { VCLPresentationRequest, VCLToken } from '@velocitycareerlabs/vcl-react-native';
8
+
9
+ export interface VCLAuthTokenDescriptor {
10
+ authTokenUri?: string
11
+ presentationRequest?: VCLPresentationRequest
12
+ refreshToken?: VCLToken
13
+ walletDid?: string
14
+ relyingPartyDid?: string
15
+ vendorOriginContext?: string
16
+ }
@@ -18,5 +18,6 @@ export interface VCLPresentationRequest {
18
18
  presentationDefinitionId: string;
19
19
  iss: string;
20
20
  didJwk: VCLDidJwk;
21
+ feed?: boolean;
21
22
  remoteCryptoServicesToken?: VCLToken;
22
23
  }
package/src/index.tsx CHANGED
@@ -66,6 +66,8 @@ import type { VCLDidJwk } from './api/entities/VCLDidJwk';
66
66
  import { VCLError } from './api/entities/error/VCLError';
67
67
  import { VCLStatusCode } from './api/entities/error/VCLStatusCode';
68
68
  import { VCLErrorCode } from './api/entities/error/VCLErrorCode';
69
+ import type { VCLAuthToken } from './api/entities/VCLAuthToken';
70
+ import type { VCLAuthTokenDescriptor } from './api/entities/VCLAuthTokenDescriptor';
69
71
 
70
72
  export default VclApi;
71
73
  export {
@@ -131,4 +133,6 @@ export type {
131
133
  VCLJwtServiceUrls,
132
134
  VCLKeyServiceUrls,
133
135
  VCLRemoteCryptoServicesUrlsDescriptor,
136
+ VCLAuthToken,
137
+ VCLAuthTokenDescriptor,
134
138
  };
@@ -1,7 +1,6 @@
1
1
  require "json"
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
- folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'
5
4
 
6
5
  Pod::Spec.new do |s|
7
6
  s.name = "velocitycareerlabs-vcl-react-native"
@@ -16,33 +15,13 @@ Pod::Spec.new do |s|
16
15
 
17
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
17
 
19
- # https://github.com/CocoaPods/CocoaPods/issues/7234#issuecomment-346136322
20
- # s.static_framework = true
18
+ s.dependency "VCL", "2.7.2"
21
19
 
22
- # s.swift_version = "5"
23
-
24
- s.dependency "VCL", "2.6.14"
25
-
26
- # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
27
- # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
28
- if respond_to?(:install_modules_dependencies, true)
29
- install_modules_dependencies(s)
30
- else
20
+ # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
21
+ # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
22
+ if respond_to?(:install_modules_dependencies, true)
23
+ install_modules_dependencies(s)
24
+ else
31
25
  s.dependency "React-Core"
32
-
33
- # Don't install the dependencies when we run `pod install` in the old architecture.
34
- if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
35
- s.compiler_flags = folly_compiler_flags + " -DRCT_NEW_ARCH_ENABLED=1"
36
- s.pod_target_xcconfig = {
37
- "HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\"",
38
- "OTHER_CPLUSPLUSFLAGS" => "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1",
39
- "CLANG_CXX_LANGUAGE_STANDARD" => "c++17"
40
- }
41
- s.dependency "React-Codegen"
42
- s.dependency "RCT-Folly"
43
- s.dependency "RCTRequired"
44
- s.dependency "RCTTypeSafety"
45
- s.dependency "ReactCommon/turbomodule/core"
46
- end
47
- end
26
+ end
48
27
  end
@@ -1 +0,0 @@
1
- {"type":"module"}