@velocitycareerlabs/vcl-react-native 2.0.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +2 -18
  3. package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +57 -20
  4. package/ios/Utils/Converter.swift +53 -21
  5. package/ios/VclReactNative.mm +2 -10
  6. package/ios/VclReactNative.swift +8 -24
  7. package/lib/commonjs/api/VCLApi.js +12 -12
  8. package/lib/commonjs/api/VCLApi.js.map +1 -1
  9. package/lib/commonjs/api/VCLSignatureAlgorithm.js +18 -0
  10. package/lib/commonjs/api/VCLSignatureAlgorithm.js.map +1 -0
  11. package/lib/commonjs/index.js +7 -0
  12. package/lib/commonjs/index.js.map +1 -1
  13. package/lib/module/api/VCLApi.js +12 -12
  14. package/lib/module/api/VCLApi.js.map +1 -1
  15. package/lib/module/api/VCLSignatureAlgorithm.js +13 -0
  16. package/lib/module/api/VCLSignatureAlgorithm.js.map +1 -0
  17. package/lib/module/index.js +2 -1
  18. package/lib/module/index.js.map +1 -1
  19. package/lib/typescript/api/VCLApi.d.ts +6 -6
  20. package/lib/typescript/api/VCLApi.d.ts.map +1 -1
  21. package/lib/typescript/api/VCLSignatureAlgorithm.d.ts +11 -0
  22. package/lib/typescript/api/VCLSignatureAlgorithm.d.ts.map +1 -0
  23. package/lib/typescript/api/entities/VCLCredentialManifest.d.ts +4 -0
  24. package/lib/typescript/api/entities/VCLCredentialManifest.d.ts.map +1 -1
  25. package/lib/typescript/api/entities/VCLCredentialManifestDescriptor.d.ts +4 -0
  26. package/lib/typescript/api/entities/VCLCredentialManifestDescriptor.d.ts.map +1 -1
  27. package/lib/typescript/api/entities/VCLPresentationRequest.d.ts +4 -0
  28. package/lib/typescript/api/entities/VCLPresentationRequest.d.ts.map +1 -1
  29. package/lib/typescript/api/entities/VCLPresentationRequestDescriptor.d.ts +4 -0
  30. package/lib/typescript/api/entities/VCLPresentationRequestDescriptor.d.ts.map +1 -1
  31. package/lib/typescript/api/entities/initialization/VCLCryptoServicesDescriptor.d.ts +2 -0
  32. package/lib/typescript/api/entities/initialization/VCLCryptoServicesDescriptor.d.ts.map +1 -1
  33. package/lib/typescript/index.d.ts +2 -1
  34. package/lib/typescript/index.d.ts.map +1 -1
  35. package/package.json +1 -1
  36. package/src/api/VCLApi.ts +12 -32
  37. package/src/api/VCLSignatureAlgorithm.ts +11 -0
  38. package/src/api/entities/VCLCredentialManifest.ts +4 -0
  39. package/src/api/entities/VCLCredentialManifestDescriptor.ts +4 -0
  40. package/src/api/entities/VCLPresentationRequest.ts +4 -0
  41. package/src/api/entities/VCLPresentationRequestDescriptor.ts +4 -0
  42. package/src/api/entities/initialization/VCLCryptoServicesDescriptor.ts +2 -0
  43. package/src/index.tsx +2 -0
  44. package/velocitycareerlabs-vcl-react-native.podspec +1 -1
@@ -6,7 +6,9 @@
6
6
  */
7
7
 
8
8
  import type { VCLDeepLink } from './VCLDeepLink';
9
+ import type { VCLDidJwk } from './VCLDidJwk';
9
10
  import type { VCLJwt } from './VCLJwt';
11
+ import type { VCLToken } from './VCLToken';
10
12
  import type { VCLVerifiedProfile } from './VCLVerifiedProfile';
11
13
 
12
14
  export interface VCLCredentialManifest {
@@ -18,4 +20,6 @@ export interface VCLCredentialManifest {
18
20
  did: string;
19
21
  exchangeId: string;
20
22
  presentationDefinitionId: string;
23
+ didJwk: VCLDidJwk;
24
+ remoteCryptoServicesToken?: VCLToken;
21
25
  }
@@ -7,9 +7,13 @@
7
7
 
8
8
  import type { VCLPushDelegate } from './VCLPushDelegate';
9
9
  import type { VCLIssuingType } from './VCLIssuingType';
10
+ import type { VCLDidJwk } from './VCLDidJwk';
11
+ import type { VCLToken } from './VCLToken';
10
12
 
11
13
  export interface VCLCredentialManifestDescriptor {
12
14
  issuingType?: VCLIssuingType;
13
15
  credentialTypes?: string[];
14
16
  pushDelegate?: VCLPushDelegate;
17
+ didJwk: VCLDidJwk;
18
+ remoteCryptoServicesToken?: VCLToken;
15
19
  }
@@ -5,8 +5,10 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
+ import type { VCLDidJwk } from './VCLDidJwk';
8
9
  import type { VCLJwt } from './VCLJwt';
9
10
  import type { VCLPublicJwk } from './VCLPublicJwk';
11
+ import type { VCLToken } from './VCLToken';
10
12
 
11
13
  export interface VCLPresentationRequest {
12
14
  exchangeId: string;
@@ -15,4 +17,6 @@ export interface VCLPresentationRequest {
15
17
  keyID: string;
16
18
  presentationDefinitionId: string;
17
19
  iss: string;
20
+ didJwk: VCLDidJwk;
21
+ remoteCryptoServicesToken?: VCLToken;
18
22
  }
@@ -6,9 +6,13 @@
6
6
  */
7
7
 
8
8
  import type { VCLDeepLink } from './VCLDeepLink';
9
+ import type { VCLDidJwk } from './VCLDidJwk';
9
10
  import type { VCLPushDelegate } from './VCLPushDelegate';
11
+ import type { VCLToken } from './VCLToken';
10
12
 
11
13
  export interface VCLPresentationRequestDescriptor {
12
14
  deepLink: VCLDeepLink;
13
15
  pushDelegate?: VCLPushDelegate;
16
+ didJwk: VCLDidJwk;
17
+ remoteCryptoServicesToken?: VCLToken;
14
18
  }
@@ -6,9 +6,11 @@
6
6
  */
7
7
 
8
8
  import type { VCLCryptoServiceType } from '../../VCLCryptoServiceType';
9
+ import type { VCLSignatureAlgorithm } from '../../VCLSignatureAlgorithm';
9
10
  import type { VCLRemoteCryptoServicesUrlsDescriptor } from './VCLRemoteCryptoServicesUrlsDescriptor';
10
11
 
11
12
  export interface VCLCryptoServicesDescriptor {
12
13
  cryptoServiceType?: VCLCryptoServiceType;
14
+ signatureAlgorithm?: VCLSignatureAlgorithm;
13
15
  remoteCryptoServicesUrlsDescriptor?: VCLRemoteCryptoServicesUrlsDescriptor;
14
16
  }
package/src/index.tsx CHANGED
@@ -9,6 +9,7 @@ import { VclApi } from './api/VCLApi';
9
9
  import { VCLEnvironment } from './api/VCLEnvironment';
10
10
  import { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';
11
11
  import { VCLCryptoServiceType } from './api/VCLCryptoServiceType';
12
+ import { VCLSignatureAlgorithm } from './api/VCLSignatureAlgorithm';
12
13
  import type { VCLCryptoServicesDescriptor } from './api/entities/initialization/VCLCryptoServicesDescriptor';
13
14
  import type { VCLJwtServiceUrls } from './api/entities/initialization/VCLJwtServiceUrls';
14
15
  import type { VCLKeyServiceUrls } from './api/entities/initialization/VCLKeyServiceUrls';
@@ -70,6 +71,7 @@ export default VclApi;
70
71
  export {
71
72
  VCLEnvironment,
72
73
  VCLCryptoServiceType,
74
+ VCLSignatureAlgorithm,
73
75
  VCLXVnfProtocolVersion,
74
76
  VCLCountryCodes,
75
77
  VCLServiceType,
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
19
19
  # https://github.com/CocoaPods/CocoaPods/issues/7234#issuecomment-346136322
20
20
  # s.static_framework = true
21
21
 
22
- s.dependency "VCL", "2.0.0"
22
+ s.dependency "VCL", "2.2.0"
23
23
 
24
24
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
25
25
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.