@velocitycareerlabs/vcl-react-native 1.3.1 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +27 -12
  3. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/MapExtensions.kt +15 -1
  4. package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +28 -10
  5. package/ios/Utils/Converter.swift +30 -12
  6. package/ios/VclReactNative.m +5 -4
  7. package/ios/VclReactNative.swift +19 -10
  8. package/lib/commonjs/api/VCLApi.js +137 -0
  9. package/lib/commonjs/api/VCLApi.js.map +1 -1
  10. package/lib/commonjs/api/entities/VCLDidJwk.js +2 -0
  11. package/lib/commonjs/api/entities/{VCLJWT.js.map → VCLDidJwk.js.map} +0 -0
  12. package/lib/commonjs/api/entities/VCLError.js +40 -0
  13. package/lib/commonjs/api/entities/VCLError.js.map +1 -0
  14. package/lib/commonjs/api/entities/VCLErrorCode.js +21 -0
  15. package/lib/commonjs/api/entities/VCLErrorCode.js.map +1 -0
  16. package/lib/commonjs/api/entities/VCLJwkPublic.js +2 -0
  17. package/lib/commonjs/api/entities/{VCLPublicKey.js.map → VCLJwkPublic.js.map} +0 -0
  18. package/lib/commonjs/api/entities/VCLJwt.js +2 -0
  19. package/lib/{module/api/entities/VCLJWT.js.map → commonjs/api/entities/VCLJwt.js.map} +0 -0
  20. package/lib/commonjs/api/entities/VCLJwtDescriptor.js +6 -0
  21. package/lib/{module/api/entities/VCLPublicKey.js.map → commonjs/api/entities/VCLJwtDescriptor.js.map} +0 -0
  22. package/lib/commonjs/index.js +10 -5
  23. package/lib/commonjs/index.js.map +1 -1
  24. package/lib/module/api/VCLApi.js +132 -1
  25. package/lib/module/api/VCLApi.js.map +1 -1
  26. package/lib/module/api/entities/VCLDidJwk.js +2 -0
  27. package/lib/module/api/entities/VCLDidJwk.js.map +1 -0
  28. package/lib/module/api/entities/VCLError.js +28 -0
  29. package/lib/module/api/entities/VCLError.js.map +1 -0
  30. package/lib/module/api/entities/VCLErrorCode.js +13 -0
  31. package/lib/module/api/entities/VCLErrorCode.js.map +1 -0
  32. package/lib/module/api/entities/VCLJwkPublic.js +2 -0
  33. package/lib/module/api/entities/VCLJwkPublic.js.map +1 -0
  34. package/lib/module/api/entities/VCLJwt.js +2 -0
  35. package/lib/module/api/entities/VCLJwt.js.map +1 -0
  36. package/lib/module/api/entities/VCLJwtDescriptor.js +2 -0
  37. package/lib/module/api/entities/VCLJwtDescriptor.js.map +1 -0
  38. package/lib/module/index.js +4 -6
  39. package/lib/module/index.js.map +1 -1
  40. package/lib/typescript/api/VCLApi.d.ts +23 -21
  41. package/lib/typescript/api/entities/VCLCredentialManifest.d.ts +2 -2
  42. package/lib/typescript/api/entities/{VCLPublicKey.d.ts → VCLDidJwk.d.ts} +2 -2
  43. package/lib/typescript/api/entities/VCLError.d.ts +12 -0
  44. package/lib/typescript/api/entities/VCLErrorCode.d.ts +10 -0
  45. package/lib/typescript/api/entities/VCLJwkPublic.d.ts +9 -0
  46. package/lib/typescript/api/entities/{VCLJWT.d.ts → VCLJwt.d.ts} +1 -1
  47. package/lib/typescript/api/entities/VCLJwtDescriptor.d.ts +12 -0
  48. package/lib/typescript/api/entities/VCLJwtVerifiableCredentials.d.ts +2 -2
  49. package/lib/typescript/api/entities/VCLPresentationRequest.d.ts +4 -4
  50. package/lib/typescript/index.d.ts +10 -6
  51. package/package.json +1 -1
  52. package/src/api/VCLApi.ts +159 -36
  53. package/src/api/entities/VCLCredentialManifest.ts +2 -2
  54. package/src/api/entities/{VCLPublicKey.ts → VCLDidJwk.ts} +2 -2
  55. package/src/api/entities/VCLError.ts +24 -0
  56. package/src/api/entities/VCLErrorCode.ts +11 -0
  57. package/src/api/entities/VCLJwkPublic.ts +10 -0
  58. package/src/api/entities/{VCLJWT.ts → VCLJwt.ts} +1 -1
  59. package/src/api/entities/VCLJwtDescriptor.ts +14 -0
  60. package/src/api/entities/VCLJwtVerifiableCredentials.ts +2 -2
  61. package/src/api/entities/VCLPresentationRequest.ts +4 -4
  62. package/src/index.tsx +17 -9
  63. package/vcl-react-native.podspec +1 -1
  64. package/lib/commonjs/api/entities/VCLJWT.js +0 -2
  65. package/lib/commonjs/api/entities/VCLPublicKey.js +0 -2
  66. package/lib/module/api/entities/VCLJWT.js +0 -2
  67. package/lib/module/api/entities/VCLPublicKey.js +0 -2
package/src/api/VCLApi.ts CHANGED
@@ -7,7 +7,6 @@
7
7
 
8
8
  import type { VCLCredentialManifest } from './entities/VCLCredentialManifest';
9
9
  import type { VCLCredentialManifestDescriptor } from './entities/VCLCredentialManifestDescriptor';
10
- import type { VCLCredentialType } from './entities/VCLCredentialType';
11
10
  import type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchemas';
12
11
  import type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';
13
12
  import type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';
@@ -15,79 +14,203 @@ import type { VCLExchange } from './entities/VCLExchange';
15
14
  import type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';
16
15
  import type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';
17
16
  import type { VCLGenerateOffersDescriptor } from './entities/VCLGenerateOffersDescriptor';
18
- import type { VCLJWT } from './entities/VCLJWT';
17
+ import type { VCLJwt } from './entities/VCLJwt';
19
18
  import type { VCLJwtVerifiableCredentials } from './entities/VCLJwtVerifiableCredentials';
20
19
  import type { VCLOffers } from './entities/VCLOffers';
21
20
  import type { VCLOrganizations } from './entities/VCLOrganizations';
22
21
  import type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';
23
22
  import type { VCLPresentationRequest } from './entities/VCLPresentationRequest';
24
23
  import type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';
25
- import type { VCLPublicKey } from './entities/VCLPublicKey';
24
+ import type { VCLJwkPublic } from './entities/VCLJwkPublic';
26
25
  import type { VCLToken } from './entities/VCLToken';
27
26
  import type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';
28
27
  import type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';
29
28
  import type { VCLCountries } from './entities/VCLCountries';
30
- import type { Dictionary } from './Dictionary';
31
29
  import type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';
32
30
  import type { VCLSubmissionResult } from './entities/VCLSubmissionResult';
33
31
  import type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';
32
+ import type { VCLJwtDescriptor } from './entities/VCLJwtDescriptor';
33
+ import type { VCLDidJwk } from './entities/VCLDidJwk';
34
+ import { toVclError } from './entities/VCLError';
35
+ import type { VCLCredentialTypes } from './entities/VCLCredentialTypes';
34
36
 
35
- export type VclApi = {
36
- initialize(
37
+ import { NativeModules } from 'react-native';
38
+ const { VclReactNative } = NativeModules;
39
+
40
+ export const VclApi = {
41
+ initialize: async (
37
42
  initializationDescriptor: VCLInitializationDescriptor
38
- ): Promise<void>;
43
+ ): Promise<void> => {
44
+ try {
45
+ return await VclReactNative.initialize(initializationDescriptor);
46
+ } catch (e) {
47
+ throw toVclError(e);
48
+ }
49
+ },
50
+
51
+ getCountries: async (): Promise<VCLCountries> => {
52
+ try {
53
+ return await VclReactNative.getCountries();
54
+ } catch (e) {
55
+ throw toVclError(e);
56
+ }
57
+ },
39
58
 
40
- getCountries(): Promise<VCLCountries>;
41
- getCredentialTypeSchemas(): Promise<VCLCredentialTypeSchemas>;
42
- getCredentialTypes(): Promise<Array<VCLCredentialType>>;
59
+ getCredentialTypes: async (): Promise<VCLCredentialTypes> => {
60
+ try {
61
+ return await VclReactNative.getCredentialTypes();
62
+ } catch (e) {
63
+ throw toVclError(e);
64
+ }
65
+ },
43
66
 
44
- getPresentationRequest(
67
+ getCredentialTypeSchemas: async (): Promise<VCLCredentialTypeSchemas> => {
68
+ try {
69
+ return await VclReactNative.getCredentialTypeSchemas();
70
+ } catch (e) {
71
+ throw toVclError(e);
72
+ }
73
+ },
74
+
75
+ getPresentationRequest: async (
45
76
  presentationRequestDescriptor: VCLPresentationRequestDescriptor
46
- ): Promise<VCLPresentationRequest>;
77
+ ): Promise<VCLPresentationRequest> => {
78
+ try {
79
+ return await VclReactNative.getPresentationRequest(
80
+ presentationRequestDescriptor
81
+ );
82
+ } catch (e) {
83
+ throw toVclError(e);
84
+ }
85
+ },
47
86
 
48
- submitPresentation(
87
+ submitPresentation: async (
49
88
  presentationSubmission: VCLPresentationSubmission
50
- ): Promise<VCLSubmissionResult>;
89
+ ): Promise<VCLSubmissionResult> => {
90
+ try {
91
+ return await VclReactNative.submitPresentation(presentationSubmission);
92
+ } catch (e) {
93
+ throw toVclError(e);
94
+ }
95
+ },
51
96
 
52
- getExchangeProgress(
97
+ getExchangeProgress: async (
53
98
  exchangeDescriptor: VCLExchangeDescriptor
54
- ): Promise<VCLExchange>;
99
+ ): Promise<VCLExchange> => {
100
+ try {
101
+ return await VclReactNative.getExchangeProgress(exchangeDescriptor);
102
+ } catch (e) {
103
+ throw toVclError(e);
104
+ }
105
+ },
55
106
 
56
- searchForOrganizations(
107
+ searchForOrganizations: async (
57
108
  organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor
58
- ): Promise<VCLOrganizations>;
109
+ ): Promise<VCLOrganizations> => {
110
+ try {
111
+ return await VclReactNative.searchForOrganizations(
112
+ organizationsSearchDescriptor
113
+ );
114
+ } catch (e) {
115
+ throw toVclError(e);
116
+ }
117
+ },
59
118
 
60
- getCredentialManifest(
119
+ getCredentialManifest: async (
61
120
  credentialManifestDescriptor: VCLCredentialManifestDescriptor
62
- ): Promise<VCLCredentialManifest>;
121
+ ): Promise<VCLCredentialManifest> => {
122
+ try {
123
+ return await VclReactNative.getCredentialManifest(
124
+ credentialManifestDescriptor
125
+ );
126
+ } catch (e) {
127
+ throw toVclError(e);
128
+ }
129
+ },
63
130
 
64
- generateOffers(
131
+ generateOffers: async (
65
132
  generateOffersDescriptor: VCLGenerateOffersDescriptor
66
- ): Promise<VCLOffers>;
133
+ ): Promise<VCLOffers> => {
134
+ try {
135
+ return await VclReactNative.generateOffers(generateOffersDescriptor);
136
+ } catch (e) {
137
+ throw toVclError(e);
138
+ }
139
+ },
67
140
 
68
- checkForOffers(
141
+ checkForOffers: async (
69
142
  generateOffersDescriptor: VCLGenerateOffersDescriptor,
70
143
  token: VCLToken
71
- ): Promise<VCLOffers>;
144
+ ): Promise<VCLOffers> => {
145
+ try {
146
+ return await VclReactNative.checkForOffers(
147
+ generateOffersDescriptor,
148
+ token
149
+ );
150
+ } catch (e) {
151
+ throw toVclError(e);
152
+ }
153
+ },
72
154
 
73
- finalizeOffers(
155
+ finalizeOffers: async (
74
156
  finalizeOffersDescriptor: VCLFinalizeOffersDescriptor,
75
157
  token: VCLToken
76
- ): Promise<VCLJwtVerifiableCredentials>;
158
+ ): Promise<VCLJwtVerifiableCredentials> => {
159
+ try {
160
+ return await VclReactNative.finalizeOffers(
161
+ finalizeOffersDescriptor,
162
+ token
163
+ );
164
+ } catch (e) {
165
+ throw toVclError(e);
166
+ }
167
+ },
77
168
 
78
- getCredentialTypesUIFormSchema(
169
+ getCredentialTypesUIFormSchema: async (
79
170
  credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor
80
- ): Promise<VCLCredentialTypesUIFormSchema>;
171
+ ): Promise<VCLCredentialTypesUIFormSchema> => {
172
+ try {
173
+ return await VclReactNative.getCredentialTypesUIFormSchema(
174
+ credentialTypesUIFormSchemaDescriptor
175
+ );
176
+ } catch (e) {
177
+ throw toVclError(e);
178
+ }
179
+ },
81
180
 
82
- getVerifiedProfile(
181
+ getVerifiedProfile: async (
83
182
  verifiedProfileDescriptor: VCLVerifiedProfileDescriptor
84
- ): Promise<VCLVerifiedProfile>;
183
+ ): Promise<VCLVerifiedProfile> => {
184
+ try {
185
+ return await VclReactNative.getVerifiedProfile(verifiedProfileDescriptor);
186
+ } catch (e) {
187
+ throw toVclError(e);
188
+ }
189
+ },
190
+
191
+ verifyJwt: async (jwt: VCLJwt, jwkPublic: VCLJwkPublic): Promise<boolean> => {
192
+ try {
193
+ return await VclReactNative.verifyJwt(jwt, jwkPublic);
194
+ } catch (e) {
195
+ throw toVclError(e);
196
+ }
197
+ },
85
198
 
86
- verifyJwt(jwt: VCLJWT, publicKey: VCLPublicKey): Promise<boolean>;
199
+ generateSignedJwt: async (
200
+ jwtDescriptor: VCLJwtDescriptor
201
+ ): Promise<VCLJwt> => {
202
+ try {
203
+ return await VclReactNative.generateSignedJwt(jwtDescriptor);
204
+ } catch (e) {
205
+ throw toVclError(e);
206
+ }
207
+ },
87
208
 
88
- generateSignedJwt(
89
- payload: Dictionary<any>,
90
- iss: string,
91
- jti: string
92
- ): Promise<VCLJWT>;
209
+ generateDidJwk: async (): Promise<VCLDidJwk> => {
210
+ try {
211
+ return await VclReactNative.generateDidJwk();
212
+ } catch (e) {
213
+ throw toVclError(e);
214
+ }
215
+ },
93
216
  };
@@ -5,10 +5,10 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
- import type { VCLJWT } from './VCLJWT';
8
+ import type { VCLJwt } from './VCLJwt';
9
9
 
10
10
  export interface VCLCredentialManifest {
11
- jwt: VCLJWT;
11
+ jwt: VCLJwt;
12
12
  iss: string;
13
13
  did: string;
14
14
  exchangeId: string;
@@ -5,6 +5,6 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
- export interface VCLPublicKey {
9
- jwkStr: string;
8
+ export interface VCLDidJwk {
9
+ value: string;
10
10
  }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+
8
+ export class VCLError extends Error {
9
+ description?: string;
10
+ code?: number;
11
+
12
+ constructor(error: any) {
13
+ super(error);
14
+ try {
15
+ const errorJson = JSON.parse(error.message);
16
+ this.description = errorJson.description;
17
+ this.code = parseInt(errorJson.code, 10);
18
+ } catch (e) {}
19
+ }
20
+ }
21
+
22
+ export const toVclError = (error: any) => {
23
+ return new VCLError(error);
24
+ };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+
8
+ export enum VCLErrorCode {
9
+ NetworkError = 1,
10
+ VerificationError = 403,
11
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+
8
+ export interface VCLJwkPublic {
9
+ valueStr: string;
10
+ }
@@ -5,6 +5,6 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
- export interface VCLJWT {
8
+ export interface VCLJwt {
9
9
  encodedJwt: string; // 3 base64Url strings splitted by a dot
10
10
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+
8
+ import type { Dictionary } from '../Dictionary';
9
+
10
+ export interface VCLJwtDescriptor {
11
+ payload: Dictionary<any>;
12
+ iss: string;
13
+ jti: string;
14
+ }
@@ -5,8 +5,8 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
- import type { VCLJWT } from './VCLJWT';
8
+ import type { VCLJwt } from './VCLJwt';
9
9
 
10
10
  export interface VCLJwtVerifiableCredentials {
11
- all: VCLJWT[];
11
+ all: VCLJwt[];
12
12
  }
@@ -5,13 +5,13 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
- import type { VCLJWT } from './VCLJWT';
9
- import type { VCLPublicKey } from './VCLPublicKey';
8
+ import type { VCLJwt } from './VCLJwt';
9
+ import type { VCLJwkPublic } from './VCLJwkPublic';
10
10
 
11
11
  export interface VCLPresentationRequest {
12
12
  exchangeId: string;
13
- jwt: VCLJWT;
14
- publicKey: VCLPublicKey;
13
+ jwt: VCLJwt;
14
+ jwkPublic: VCLJwkPublic;
15
15
  keyID: string;
16
16
  presentationDefinitionId: string;
17
17
  iss: string;
package/src/index.tsx CHANGED
@@ -5,8 +5,7 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
- import { NativeModules } from 'react-native';
9
- import type { VclApi } from './api/VCLApi';
8
+ import { VclApi } from './api/VCLApi';
10
9
  import type { VCLEnvironment } from './api/VCLEnvironment';
11
10
  import { VCLEnvTypes } from './api/VCLEnvironment';
12
11
  import type { VCLCountry } from './api/entities/VCLCountry';
@@ -20,6 +19,7 @@ import type { VCLCredentialManifestDescriptorByDeepLink } from './api/entities/V
20
19
  import type { VCLCredentialManifestDescriptorByService } from './api/entities/VCLCredentialManifestDescriptorByService';
21
20
  import type { VCLCredentialManifestDescriptorRefresh } from './api/entities/VCLCredentialManifestDescriptorRefresh';
22
21
  import type { VCLCredentialType } from './api/entities/VCLCredentialType';
22
+ import type { VCLCredentialTypes } from './api/entities/VCLCredentialTypes';
23
23
  import type { VCLCredentialTypeSchema } from './api/entities/VCLCredentialTypeSchema';
24
24
  import type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeSchemas';
25
25
  import type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';
@@ -30,7 +30,7 @@ import type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor
30
30
  import type { VCLFilter } from './api/entities/VCLFilter';
31
31
  import type { VCLFinalizeOffersDescriptor } from './api/entities/VCLFinalizeOffersDescriptor';
32
32
  import type { VCLGenerateOffersDescriptor } from './api/entities/VCLGenerateOffersDescriptor';
33
- import type { VCLJWT } from './api/entities/VCLJWT';
33
+ import type { VCLJwt } from './api/entities/VCLJwt';
34
34
  import type { VCLJwtVerifiableCredentials } from './api/entities/VCLJwtVerifiableCredentials';
35
35
  import type { VCLOffers } from './api/entities/VCLOffers';
36
36
  import type { VCLOrganization } from './api/entities/VCLOrganization';
@@ -39,7 +39,7 @@ import type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganiz
39
39
  import type { VCLPage } from './api/entities/VCLPage';
40
40
  import type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';
41
41
  import type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';
42
- import type { VCLPublicKey } from './api/entities/VCLPublicKey';
42
+ import type { VCLJwkPublic } from './api/entities/VCLJwkPublic';
43
43
  import type { VCLPushDelegate } from './api/entities/VCLPushDelegate';
44
44
  import type { VCLService } from './api/entities/VCLService';
45
45
  import type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';
@@ -52,10 +52,12 @@ import type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedPro
52
52
  import type { Dictionary } from './api/Dictionary';
53
53
  import type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';
54
54
  import type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';
55
+ import type { VCLJwtDescriptor } from './api/entities/VCLJwtDescriptor';
56
+ import type { VCLDidJwk } from './api/entities/VCLDidJwk';
57
+ import { VCLErrorCode } from './api/entities/VCLErrorCode';
58
+ import type { VCLError, toVclError } from './api/entities/VCLError';
55
59
 
56
- const { VclReactNative } = NativeModules;
57
-
58
- export default VclReactNative as VclApi;
60
+ export default VclApi;
59
61
  export {
60
62
  Dictionary,
61
63
  VCLEnvironment,
@@ -70,6 +72,7 @@ export {
70
72
  VCLCredentialManifestDescriptorByDeepLink,
71
73
  VCLCredentialManifestDescriptorByService,
72
74
  VCLCredentialType,
75
+ VCLCredentialTypes,
73
76
  VCLCredentialTypeSchema,
74
77
  VCLCredentialTypeSchemas,
75
78
  VCLCredentialTypesUIFormSchema,
@@ -81,7 +84,7 @@ export {
81
84
  VCLFilter,
82
85
  VCLFinalizeOffersDescriptor,
83
86
  VCLGenerateOffersDescriptor,
84
- VCLJWT,
87
+ VCLJwt,
85
88
  VCLJwtVerifiableCredentials,
86
89
  VCLOffers,
87
90
  VCLOrganization,
@@ -90,7 +93,7 @@ export {
90
93
  VCLPage,
91
94
  VCLPresentationRequest,
92
95
  VCLPresentationSubmission,
93
- VCLPublicKey,
96
+ VCLJwkPublic,
94
97
  VCLPushDelegate,
95
98
  VCLService,
96
99
  VCLServiceCredentialAgentIssuer,
@@ -102,4 +105,9 @@ export {
102
105
  VCLVerifiedProfileDescriptor,
103
106
  VCLInitializationDescriptor,
104
107
  VCLPresentationRequestDescriptor,
108
+ VCLJwtDescriptor,
109
+ VCLDidJwk,
110
+ VCLErrorCode,
111
+ VCLError,
112
+ toVclError,
105
113
  };
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
18
18
  s.swift_version = "5.0"
19
19
 
20
20
  s.dependency "React"
21
- s.dependency "VCL", "1.3.1"
21
+ s.dependency "VCL", "1.4.0"
22
22
  end
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=VCLJWT.js.map
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=VCLPublicKey.js.map
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=VCLJWT.js.map
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=VCLPublicKey.js.map