@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
@@ -15,6 +15,12 @@ Object.defineProperty(exports, "VCLEnvTypes", {
15
15
  return _VCLEnvironment.VCLEnvTypes;
16
16
  }
17
17
  });
18
+ Object.defineProperty(exports, "VCLErrorCode", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _VCLErrorCode.VCLErrorCode;
22
+ }
23
+ });
18
24
  Object.defineProperty(exports, "VCLServiceType", {
19
25
  enumerable: true,
20
26
  get: function () {
@@ -23,7 +29,7 @@ Object.defineProperty(exports, "VCLServiceType", {
23
29
  });
24
30
  exports.default = void 0;
25
31
 
26
- var _reactNative = require("react-native");
32
+ var _VCLApi = require("./api/VCLApi");
27
33
 
28
34
  var _VCLEnvironment = require("./api/VCLEnvironment");
29
35
 
@@ -31,15 +37,14 @@ var _VCLCountries = require("./api/entities/VCLCountries");
31
37
 
32
38
  var _VCLServiceType = require("./api/entities/VCLServiceType");
33
39
 
40
+ var _VCLErrorCode = require("./api/entities/VCLErrorCode");
41
+
34
42
  /**
35
43
  * Created by Michael Avoyan.
36
44
  *
37
45
  * Copyright 2022 Velocity Career Labs inc.
38
46
  * SPDX-License-Identifier: Apache-2.0
39
47
  */
40
- const {
41
- VclReactNative
42
- } = _reactNative.NativeModules;
43
- var _default = VclReactNative;
48
+ var _default = _VCLApi.VclApi;
44
49
  exports.default = _default;
45
50
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.tsx"],"names":["VclReactNative","NativeModules"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;AAGA;;AAGA;;AAgCA;;AA7CA;AACA;AACA;AACA;AACA;AACA;AAkDA,MAAM;AAAEA,EAAAA;AAAF,IAAqBC,0BAA3B;eAEeD,c","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { NativeModules } from 'react-native';\nimport type { VclApi } from './api/VCLApi';\nimport type { VCLEnvironment } from './api/VCLEnvironment';\nimport { VCLEnvTypes } from './api/VCLEnvironment';\nimport type { VCLCountry } from './api/entities/VCLCountry';\nimport type { VCLCountries } from './api/entities/VCLCountries';\nimport { VCLCountryCodes } from './api/entities/VCLCountries';\nimport type { VCLRegion } from './api/entities/VCLRegion';\nimport type { VCLRegions } from './api/entities/VCLRegions';\nimport type { VCLCredentialManifest } from './api/entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './api/entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialManifestDescriptorByDeepLink } from './api/entities/VCLCredentialManifestDescriptorByDeepLink';\nimport type { VCLCredentialManifestDescriptorByService } from './api/entities/VCLCredentialManifestDescriptorByService';\nimport type { VCLCredentialManifestDescriptorRefresh } from './api/entities/VCLCredentialManifestDescriptorRefresh';\nimport type { VCLCredentialType } from './api/entities/VCLCredentialType';\nimport type { VCLCredentialTypeSchema } from './api/entities/VCLCredentialTypeSchema';\nimport type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLCredentialTypesUIFormSchema } from './api/entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLDeepLink } from './api/entities/VCLDeepLink';\nimport type { VCLExchange } from './api/entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor';\nimport type { VCLFilter } from './api/entities/VCLFilter';\nimport type { VCLFinalizeOffersDescriptor } from './api/entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './api/entities/VCLGenerateOffersDescriptor';\nimport type { VCLJWT } from './api/entities/VCLJWT';\nimport type { VCLJwtVerifiableCredentials } from './api/entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './api/entities/VCLOffers';\nimport type { VCLOrganization } from './api/entities/VCLOrganization';\nimport type { VCLOrganizations } from './api/entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPage } from './api/entities/VCLPage';\nimport type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';\nimport type { VCLPublicKey } from './api/entities/VCLPublicKey';\nimport type { VCLPushDelegate } from './api/entities/VCLPushDelegate';\nimport type { VCLService } from './api/entities/VCLService';\nimport type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';\nimport { VCLServiceType } from './api/entities/VCLServiceType';\nimport type { VCLSubmissionResult } from './api/entities/VCLSubmissionResult';\nimport type { VCLToken } from './api/entities/VCLToken';\nimport type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCredential';\nimport type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';\nimport type { Dictionary } from './api/Dictionary';\nimport type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';\nimport type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';\n\nconst { VclReactNative } = NativeModules;\n\nexport default VclReactNative as VclApi;\nexport {\n Dictionary,\n VCLEnvironment,\n VCLEnvTypes,\n VCLCountry,\n VCLCountries,\n VCLCountryCodes,\n VCLRegion,\n VCLRegions,\n VCLCredentialManifest,\n VCLCredentialManifestDescriptor,\n VCLCredentialManifestDescriptorByDeepLink,\n VCLCredentialManifestDescriptorByService,\n VCLCredentialType,\n VCLCredentialTypeSchema,\n VCLCredentialTypeSchemas,\n VCLCredentialTypesUIFormSchema,\n VCLCredentialTypesUIFormSchemaDescriptor,\n VCLCredentialManifestDescriptorRefresh,\n VCLDeepLink,\n VCLExchange,\n VCLExchangeDescriptor,\n VCLFilter,\n VCLFinalizeOffersDescriptor,\n VCLGenerateOffersDescriptor,\n VCLJWT,\n VCLJwtVerifiableCredentials,\n VCLOffers,\n VCLOrganization,\n VCLOrganizations,\n VCLOrganizationsSearchDescriptor,\n VCLPage,\n VCLPresentationRequest,\n VCLPresentationSubmission,\n VCLPublicKey,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n VCLPresentationRequestDescriptor,\n};\n"]}
1
+ {"version":3,"sources":["index.tsx"],"names":["VclApi"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;AAEA;;AAGA;;AAiCA;;AAWA;;AAxDA;AACA;AACA;AACA;AACA;AACA;eAsDeA,c","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { VclApi } from './api/VCLApi';\nimport type { VCLEnvironment } from './api/VCLEnvironment';\nimport { VCLEnvTypes } from './api/VCLEnvironment';\nimport type { VCLCountry } from './api/entities/VCLCountry';\nimport type { VCLCountries } from './api/entities/VCLCountries';\nimport { VCLCountryCodes } from './api/entities/VCLCountries';\nimport type { VCLRegion } from './api/entities/VCLRegion';\nimport type { VCLRegions } from './api/entities/VCLRegions';\nimport type { VCLCredentialManifest } from './api/entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './api/entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialManifestDescriptorByDeepLink } from './api/entities/VCLCredentialManifestDescriptorByDeepLink';\nimport type { VCLCredentialManifestDescriptorByService } from './api/entities/VCLCredentialManifestDescriptorByService';\nimport type { VCLCredentialManifestDescriptorRefresh } from './api/entities/VCLCredentialManifestDescriptorRefresh';\nimport type { VCLCredentialType } from './api/entities/VCLCredentialType';\nimport type { VCLCredentialTypes } from './api/entities/VCLCredentialTypes';\nimport type { VCLCredentialTypeSchema } from './api/entities/VCLCredentialTypeSchema';\nimport type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLCredentialTypesUIFormSchema } from './api/entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLDeepLink } from './api/entities/VCLDeepLink';\nimport type { VCLExchange } from './api/entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor';\nimport type { VCLFilter } from './api/entities/VCLFilter';\nimport type { VCLFinalizeOffersDescriptor } from './api/entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './api/entities/VCLGenerateOffersDescriptor';\nimport type { VCLJwt } from './api/entities/VCLJwt';\nimport type { VCLJwtVerifiableCredentials } from './api/entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './api/entities/VCLOffers';\nimport type { VCLOrganization } from './api/entities/VCLOrganization';\nimport type { VCLOrganizations } from './api/entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPage } from './api/entities/VCLPage';\nimport type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';\nimport type { VCLJwkPublic } from './api/entities/VCLJwkPublic';\nimport type { VCLPushDelegate } from './api/entities/VCLPushDelegate';\nimport type { VCLService } from './api/entities/VCLService';\nimport type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';\nimport { VCLServiceType } from './api/entities/VCLServiceType';\nimport type { VCLSubmissionResult } from './api/entities/VCLSubmissionResult';\nimport type { VCLToken } from './api/entities/VCLToken';\nimport type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCredential';\nimport type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';\nimport type { Dictionary } from './api/Dictionary';\nimport type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';\nimport type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';\nimport type { VCLJwtDescriptor } from './api/entities/VCLJwtDescriptor';\nimport type { VCLDidJwk } from './api/entities/VCLDidJwk';\nimport { VCLErrorCode } from './api/entities/VCLErrorCode';\nimport type { VCLError, toVclError } from './api/entities/VCLError';\n\nexport default VclApi;\nexport {\n Dictionary,\n VCLEnvironment,\n VCLEnvTypes,\n VCLCountry,\n VCLCountries,\n VCLCountryCodes,\n VCLRegion,\n VCLRegions,\n VCLCredentialManifest,\n VCLCredentialManifestDescriptor,\n VCLCredentialManifestDescriptorByDeepLink,\n VCLCredentialManifestDescriptorByService,\n VCLCredentialType,\n VCLCredentialTypes,\n VCLCredentialTypeSchema,\n VCLCredentialTypeSchemas,\n VCLCredentialTypesUIFormSchema,\n VCLCredentialTypesUIFormSchemaDescriptor,\n VCLCredentialManifestDescriptorRefresh,\n VCLDeepLink,\n VCLExchange,\n VCLExchangeDescriptor,\n VCLFilter,\n VCLFinalizeOffersDescriptor,\n VCLGenerateOffersDescriptor,\n VCLJwt,\n VCLJwtVerifiableCredentials,\n VCLOffers,\n VCLOrganization,\n VCLOrganizations,\n VCLOrganizationsSearchDescriptor,\n VCLPage,\n VCLPresentationRequest,\n VCLPresentationSubmission,\n VCLJwkPublic,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n VCLPresentationRequestDescriptor,\n VCLJwtDescriptor,\n VCLDidJwk,\n VCLErrorCode,\n VCLError,\n toVclError,\n};\n"]}
@@ -1,2 +1,133 @@
1
- export {};
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import { toVclError } from './entities/VCLError';
8
+ import { NativeModules } from 'react-native';
9
+ const {
10
+ VclReactNative
11
+ } = NativeModules;
12
+ export const VclApi = {
13
+ initialize: async initializationDescriptor => {
14
+ try {
15
+ return await VclReactNative.initialize(initializationDescriptor);
16
+ } catch (e) {
17
+ throw toVclError(e);
18
+ }
19
+ },
20
+ getCountries: async () => {
21
+ try {
22
+ return await VclReactNative.getCountries();
23
+ } catch (e) {
24
+ throw toVclError(e);
25
+ }
26
+ },
27
+ getCredentialTypes: async () => {
28
+ try {
29
+ return await VclReactNative.getCredentialTypes();
30
+ } catch (e) {
31
+ throw toVclError(e);
32
+ }
33
+ },
34
+ getCredentialTypeSchemas: async () => {
35
+ try {
36
+ return await VclReactNative.getCredentialTypeSchemas();
37
+ } catch (e) {
38
+ throw toVclError(e);
39
+ }
40
+ },
41
+ getPresentationRequest: async presentationRequestDescriptor => {
42
+ try {
43
+ return await VclReactNative.getPresentationRequest(presentationRequestDescriptor);
44
+ } catch (e) {
45
+ throw toVclError(e);
46
+ }
47
+ },
48
+ submitPresentation: async presentationSubmission => {
49
+ try {
50
+ return await VclReactNative.submitPresentation(presentationSubmission);
51
+ } catch (e) {
52
+ throw toVclError(e);
53
+ }
54
+ },
55
+ getExchangeProgress: async exchangeDescriptor => {
56
+ try {
57
+ return await VclReactNative.getExchangeProgress(exchangeDescriptor);
58
+ } catch (e) {
59
+ throw toVclError(e);
60
+ }
61
+ },
62
+ searchForOrganizations: async organizationsSearchDescriptor => {
63
+ try {
64
+ return await VclReactNative.searchForOrganizations(organizationsSearchDescriptor);
65
+ } catch (e) {
66
+ throw toVclError(e);
67
+ }
68
+ },
69
+ getCredentialManifest: async credentialManifestDescriptor => {
70
+ try {
71
+ return await VclReactNative.getCredentialManifest(credentialManifestDescriptor);
72
+ } catch (e) {
73
+ throw toVclError(e);
74
+ }
75
+ },
76
+ generateOffers: async generateOffersDescriptor => {
77
+ try {
78
+ return await VclReactNative.generateOffers(generateOffersDescriptor);
79
+ } catch (e) {
80
+ throw toVclError(e);
81
+ }
82
+ },
83
+ checkForOffers: async (generateOffersDescriptor, token) => {
84
+ try {
85
+ return await VclReactNative.checkForOffers(generateOffersDescriptor, token);
86
+ } catch (e) {
87
+ throw toVclError(e);
88
+ }
89
+ },
90
+ finalizeOffers: async (finalizeOffersDescriptor, token) => {
91
+ try {
92
+ return await VclReactNative.finalizeOffers(finalizeOffersDescriptor, token);
93
+ } catch (e) {
94
+ throw toVclError(e);
95
+ }
96
+ },
97
+ getCredentialTypesUIFormSchema: async credentialTypesUIFormSchemaDescriptor => {
98
+ try {
99
+ return await VclReactNative.getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor);
100
+ } catch (e) {
101
+ throw toVclError(e);
102
+ }
103
+ },
104
+ getVerifiedProfile: async verifiedProfileDescriptor => {
105
+ try {
106
+ return await VclReactNative.getVerifiedProfile(verifiedProfileDescriptor);
107
+ } catch (e) {
108
+ throw toVclError(e);
109
+ }
110
+ },
111
+ verifyJwt: async (jwt, jwkPublic) => {
112
+ try {
113
+ return await VclReactNative.verifyJwt(jwt, jwkPublic);
114
+ } catch (e) {
115
+ throw toVclError(e);
116
+ }
117
+ },
118
+ generateSignedJwt: async jwtDescriptor => {
119
+ try {
120
+ return await VclReactNative.generateSignedJwt(jwtDescriptor);
121
+ } catch (e) {
122
+ throw toVclError(e);
123
+ }
124
+ },
125
+ generateDidJwk: async () => {
126
+ try {
127
+ return await VclReactNative.generateDidJwk();
128
+ } catch (e) {
129
+ throw toVclError(e);
130
+ }
131
+ }
132
+ };
2
133
  //# sourceMappingURL=VCLApi.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"sources":["VCLApi.ts"],"names":["toVclError","NativeModules","VclReactNative","VclApi","initialize","initializationDescriptor","e","getCountries","getCredentialTypes","getCredentialTypeSchemas","getPresentationRequest","presentationRequestDescriptor","submitPresentation","presentationSubmission","getExchangeProgress","exchangeDescriptor","searchForOrganizations","organizationsSearchDescriptor","getCredentialManifest","credentialManifestDescriptor","generateOffers","generateOffersDescriptor","checkForOffers","token","finalizeOffers","finalizeOffersDescriptor","getCredentialTypesUIFormSchema","credentialTypesUIFormSchemaDescriptor","getVerifiedProfile","verifiedProfileDescriptor","verifyJwt","jwt","jwkPublic","generateSignedJwt","jwtDescriptor","generateDidJwk"],"mappings":"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","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 { toVclError } from './entities/VCLError';\nimport type { VCLCredentialTypes } from './entities/VCLCredentialTypes';\n\nimport { NativeModules } from 'react-native';\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 toVclError(e);\n }\n },\n\n getCountries: async (): Promise<VCLCountries> => {\n try {\n return await VclReactNative.getCountries();\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCredentialTypes: async (): Promise<VCLCredentialTypes> => {\n try {\n return await VclReactNative.getCredentialTypes();\n } catch (e) {\n throw toVclError(e);\n }\n },\n\n getCredentialTypeSchemas: async (): Promise<VCLCredentialTypeSchemas> => {\n try {\n return await VclReactNative.getCredentialTypeSchemas();\n } catch (e) {\n throw toVclError(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 toVclError(e);\n }\n },\n\n submitPresentation: async (\n presentationSubmission: VCLPresentationSubmission\n ): Promise<VCLSubmissionResult> => {\n try {\n return await VclReactNative.submitPresentation(presentationSubmission);\n } catch (e) {\n throw toVclError(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 toVclError(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 toVclError(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 toVclError(e);\n }\n },\n\n generateOffers: async (\n generateOffersDescriptor: VCLGenerateOffersDescriptor\n ): Promise<VCLOffers> => {\n try {\n return await VclReactNative.generateOffers(generateOffersDescriptor);\n } catch (e) {\n throw toVclError(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 toVclError(e);\n }\n },\n\n finalizeOffers: async (\n finalizeOffersDescriptor: VCLFinalizeOffersDescriptor,\n token: VCLToken\n ): Promise<VCLJwtVerifiableCredentials> => {\n try {\n return await VclReactNative.finalizeOffers(\n finalizeOffersDescriptor,\n token\n );\n } catch (e) {\n throw toVclError(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 toVclError(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 toVclError(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 toVclError(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 toVclError(e);\n }\n },\n\n generateDidJwk: async (): Promise<VCLDidJwk> => {\n try {\n return await VclReactNative.generateDidJwk();\n } catch (e) {\n throw toVclError(e);\n }\n },\n};\n"]}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=VCLDidJwk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1,28 @@
1
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
+
3
+ /**
4
+ * Created by Michael Avoyan.
5
+ *
6
+ * Copyright 2022 Velocity Career Labs inc.
7
+ * SPDX-License-Identifier: Apache-2.0
8
+ */
9
+ export class VCLError extends Error {
10
+ constructor(error) {
11
+ super(error);
12
+
13
+ _defineProperty(this, "description", void 0);
14
+
15
+ _defineProperty(this, "code", void 0);
16
+
17
+ try {
18
+ const errorJson = JSON.parse(error.message);
19
+ this.description = errorJson.description;
20
+ this.code = parseInt(errorJson.code, 10);
21
+ } catch (e) {}
22
+ }
23
+
24
+ }
25
+ export const toVclError = error => {
26
+ return new VCLError(error);
27
+ };
28
+ //# sourceMappingURL=VCLError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["VCLError.ts"],"names":["VCLError","Error","constructor","error","errorJson","JSON","parse","message","description","code","parseInt","e","toVclError"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,OAAO,MAAMA,QAAN,SAAuBC,KAAvB,CAA6B;AAIlCC,EAAAA,WAAW,CAACC,KAAD,EAAa;AACtB,UAAMA,KAAN;;AADsB;;AAAA;;AAEtB,QAAI;AACF,YAAMC,SAAS,GAAGC,IAAI,CAACC,KAAL,CAAWH,KAAK,CAACI,OAAjB,CAAlB;AACA,WAAKC,WAAL,GAAmBJ,SAAS,CAACI,WAA7B;AACA,WAAKC,IAAL,GAAYC,QAAQ,CAACN,SAAS,CAACK,IAAX,EAAiB,EAAjB,CAApB;AACD,KAJD,CAIE,OAAOE,CAAP,EAAU,CAAE;AACf;;AAXiC;AAcpC,OAAO,MAAMC,UAAU,GAAIT,KAAD,IAAgB;AACxC,SAAO,IAAIH,QAAJ,CAAaG,KAAb,CAAP;AACD,CAFM","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport class VCLError extends Error {\n description?: string;\n code?: number;\n\n constructor(error: any) {\n super(error);\n try {\n const errorJson = JSON.parse(error.message);\n this.description = errorJson.description;\n this.code = parseInt(errorJson.code, 10);\n } catch (e) {}\n }\n}\n\nexport const toVclError = (error: any) => {\n return new VCLError(error);\n};\n"]}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ export let VCLErrorCode;
8
+
9
+ (function (VCLErrorCode) {
10
+ VCLErrorCode[VCLErrorCode["NetworkError"] = 1] = "NetworkError";
11
+ VCLErrorCode[VCLErrorCode["VerificationError"] = 403] = "VerificationError";
12
+ })(VCLErrorCode || (VCLErrorCode = {}));
13
+ //# sourceMappingURL=VCLErrorCode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["VCLErrorCode.ts"],"names":["VCLErrorCode"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,WAAYA,YAAZ;;WAAYA,Y;AAAAA,EAAAA,Y,CAAAA,Y;AAAAA,EAAAA,Y,CAAAA,Y;GAAAA,Y,KAAAA,Y","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"]}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=VCLJwkPublic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=VCLJwt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=VCLJwtDescriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -4,13 +4,11 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- import { NativeModules } from 'react-native';
7
+ import { VclApi } from './api/VCLApi';
8
8
  import { VCLEnvTypes } from './api/VCLEnvironment';
9
9
  import { VCLCountryCodes } from './api/entities/VCLCountries';
10
10
  import { VCLServiceType } from './api/entities/VCLServiceType';
11
- const {
12
- VclReactNative
13
- } = NativeModules;
14
- export default VclReactNative;
15
- export { VCLEnvTypes, VCLCountryCodes, VCLServiceType };
11
+ import { VCLErrorCode } from './api/entities/VCLErrorCode';
12
+ export default VclApi;
13
+ export { VCLEnvTypes, VCLCountryCodes, VCLServiceType, VCLErrorCode };
16
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.tsx"],"names":["NativeModules","VCLEnvTypes","VCLCountryCodes","VCLServiceType","VclReactNative"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,aAAT,QAA8B,cAA9B;AAGA,SAASC,WAAT,QAA4B,sBAA5B;AAGA,SAASC,eAAT,QAAgC,6BAAhC;AAgCA,SAASC,cAAT,QAA+B,+BAA/B;AAUA,MAAM;AAAEC,EAAAA;AAAF,IAAqBJ,aAA3B;AAEA,eAAeI,cAAf;AACA,SAGEH,WAHF,EAMEC,eANF,EAsCEC,cAtCF","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { NativeModules } from 'react-native';\nimport type { VclApi } from './api/VCLApi';\nimport type { VCLEnvironment } from './api/VCLEnvironment';\nimport { VCLEnvTypes } from './api/VCLEnvironment';\nimport type { VCLCountry } from './api/entities/VCLCountry';\nimport type { VCLCountries } from './api/entities/VCLCountries';\nimport { VCLCountryCodes } from './api/entities/VCLCountries';\nimport type { VCLRegion } from './api/entities/VCLRegion';\nimport type { VCLRegions } from './api/entities/VCLRegions';\nimport type { VCLCredentialManifest } from './api/entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './api/entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialManifestDescriptorByDeepLink } from './api/entities/VCLCredentialManifestDescriptorByDeepLink';\nimport type { VCLCredentialManifestDescriptorByService } from './api/entities/VCLCredentialManifestDescriptorByService';\nimport type { VCLCredentialManifestDescriptorRefresh } from './api/entities/VCLCredentialManifestDescriptorRefresh';\nimport type { VCLCredentialType } from './api/entities/VCLCredentialType';\nimport type { VCLCredentialTypeSchema } from './api/entities/VCLCredentialTypeSchema';\nimport type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLCredentialTypesUIFormSchema } from './api/entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLDeepLink } from './api/entities/VCLDeepLink';\nimport type { VCLExchange } from './api/entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor';\nimport type { VCLFilter } from './api/entities/VCLFilter';\nimport type { VCLFinalizeOffersDescriptor } from './api/entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './api/entities/VCLGenerateOffersDescriptor';\nimport type { VCLJWT } from './api/entities/VCLJWT';\nimport type { VCLJwtVerifiableCredentials } from './api/entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './api/entities/VCLOffers';\nimport type { VCLOrganization } from './api/entities/VCLOrganization';\nimport type { VCLOrganizations } from './api/entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPage } from './api/entities/VCLPage';\nimport type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';\nimport type { VCLPublicKey } from './api/entities/VCLPublicKey';\nimport type { VCLPushDelegate } from './api/entities/VCLPushDelegate';\nimport type { VCLService } from './api/entities/VCLService';\nimport type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';\nimport { VCLServiceType } from './api/entities/VCLServiceType';\nimport type { VCLSubmissionResult } from './api/entities/VCLSubmissionResult';\nimport type { VCLToken } from './api/entities/VCLToken';\nimport type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCredential';\nimport type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';\nimport type { Dictionary } from './api/Dictionary';\nimport type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';\nimport type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';\n\nconst { VclReactNative } = NativeModules;\n\nexport default VclReactNative as VclApi;\nexport {\n Dictionary,\n VCLEnvironment,\n VCLEnvTypes,\n VCLCountry,\n VCLCountries,\n VCLCountryCodes,\n VCLRegion,\n VCLRegions,\n VCLCredentialManifest,\n VCLCredentialManifestDescriptor,\n VCLCredentialManifestDescriptorByDeepLink,\n VCLCredentialManifestDescriptorByService,\n VCLCredentialType,\n VCLCredentialTypeSchema,\n VCLCredentialTypeSchemas,\n VCLCredentialTypesUIFormSchema,\n VCLCredentialTypesUIFormSchemaDescriptor,\n VCLCredentialManifestDescriptorRefresh,\n VCLDeepLink,\n VCLExchange,\n VCLExchangeDescriptor,\n VCLFilter,\n VCLFinalizeOffersDescriptor,\n VCLGenerateOffersDescriptor,\n VCLJWT,\n VCLJwtVerifiableCredentials,\n VCLOffers,\n VCLOrganization,\n VCLOrganizations,\n VCLOrganizationsSearchDescriptor,\n VCLPage,\n VCLPresentationRequest,\n VCLPresentationSubmission,\n VCLPublicKey,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n VCLPresentationRequestDescriptor,\n};\n"]}
1
+ {"version":3,"sources":["index.tsx"],"names":["VclApi","VCLEnvTypes","VCLCountryCodes","VCLServiceType","VCLErrorCode"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,MAAT,QAAuB,cAAvB;AAEA,SAASC,WAAT,QAA4B,sBAA5B;AAGA,SAASC,eAAT,QAAgC,6BAAhC;AAiCA,SAASC,cAAT,QAA+B,+BAA/B;AAWA,SAASC,YAAT,QAA6B,6BAA7B;AAGA,eAAeJ,MAAf;AACA,SAGEC,WAHF,EAMEC,eANF,EAuCEC,cAvCF,EAiDEC,YAjDF","sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { VclApi } from './api/VCLApi';\nimport type { VCLEnvironment } from './api/VCLEnvironment';\nimport { VCLEnvTypes } from './api/VCLEnvironment';\nimport type { VCLCountry } from './api/entities/VCLCountry';\nimport type { VCLCountries } from './api/entities/VCLCountries';\nimport { VCLCountryCodes } from './api/entities/VCLCountries';\nimport type { VCLRegion } from './api/entities/VCLRegion';\nimport type { VCLRegions } from './api/entities/VCLRegions';\nimport type { VCLCredentialManifest } from './api/entities/VCLCredentialManifest';\nimport type { VCLCredentialManifestDescriptor } from './api/entities/VCLCredentialManifestDescriptor';\nimport type { VCLCredentialManifestDescriptorByDeepLink } from './api/entities/VCLCredentialManifestDescriptorByDeepLink';\nimport type { VCLCredentialManifestDescriptorByService } from './api/entities/VCLCredentialManifestDescriptorByService';\nimport type { VCLCredentialManifestDescriptorRefresh } from './api/entities/VCLCredentialManifestDescriptorRefresh';\nimport type { VCLCredentialType } from './api/entities/VCLCredentialType';\nimport type { VCLCredentialTypes } from './api/entities/VCLCredentialTypes';\nimport type { VCLCredentialTypeSchema } from './api/entities/VCLCredentialTypeSchema';\nimport type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeSchemas';\nimport type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';\nimport type { VCLCredentialTypesUIFormSchema } from './api/entities/VCLCredentialTypesUIFormSchema';\nimport type { VCLDeepLink } from './api/entities/VCLDeepLink';\nimport type { VCLExchange } from './api/entities/VCLExchange';\nimport type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor';\nimport type { VCLFilter } from './api/entities/VCLFilter';\nimport type { VCLFinalizeOffersDescriptor } from './api/entities/VCLFinalizeOffersDescriptor';\nimport type { VCLGenerateOffersDescriptor } from './api/entities/VCLGenerateOffersDescriptor';\nimport type { VCLJwt } from './api/entities/VCLJwt';\nimport type { VCLJwtVerifiableCredentials } from './api/entities/VCLJwtVerifiableCredentials';\nimport type { VCLOffers } from './api/entities/VCLOffers';\nimport type { VCLOrganization } from './api/entities/VCLOrganization';\nimport type { VCLOrganizations } from './api/entities/VCLOrganizations';\nimport type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganizationsSearchDescriptor';\nimport type { VCLPage } from './api/entities/VCLPage';\nimport type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';\nimport type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';\nimport type { VCLJwkPublic } from './api/entities/VCLJwkPublic';\nimport type { VCLPushDelegate } from './api/entities/VCLPushDelegate';\nimport type { VCLService } from './api/entities/VCLService';\nimport type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';\nimport { VCLServiceType } from './api/entities/VCLServiceType';\nimport type { VCLSubmissionResult } from './api/entities/VCLSubmissionResult';\nimport type { VCLToken } from './api/entities/VCLToken';\nimport type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCredential';\nimport type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';\nimport type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';\nimport type { Dictionary } from './api/Dictionary';\nimport type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';\nimport type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';\nimport type { VCLJwtDescriptor } from './api/entities/VCLJwtDescriptor';\nimport type { VCLDidJwk } from './api/entities/VCLDidJwk';\nimport { VCLErrorCode } from './api/entities/VCLErrorCode';\nimport type { VCLError, toVclError } from './api/entities/VCLError';\n\nexport default VclApi;\nexport {\n Dictionary,\n VCLEnvironment,\n VCLEnvTypes,\n VCLCountry,\n VCLCountries,\n VCLCountryCodes,\n VCLRegion,\n VCLRegions,\n VCLCredentialManifest,\n VCLCredentialManifestDescriptor,\n VCLCredentialManifestDescriptorByDeepLink,\n VCLCredentialManifestDescriptorByService,\n VCLCredentialType,\n VCLCredentialTypes,\n VCLCredentialTypeSchema,\n VCLCredentialTypeSchemas,\n VCLCredentialTypesUIFormSchema,\n VCLCredentialTypesUIFormSchemaDescriptor,\n VCLCredentialManifestDescriptorRefresh,\n VCLDeepLink,\n VCLExchange,\n VCLExchangeDescriptor,\n VCLFilter,\n VCLFinalizeOffersDescriptor,\n VCLGenerateOffersDescriptor,\n VCLJwt,\n VCLJwtVerifiableCredentials,\n VCLOffers,\n VCLOrganization,\n VCLOrganizations,\n VCLOrganizationsSearchDescriptor,\n VCLPage,\n VCLPresentationRequest,\n VCLPresentationSubmission,\n VCLJwkPublic,\n VCLPushDelegate,\n VCLService,\n VCLServiceCredentialAgentIssuer,\n VCLServiceType,\n VCLSubmissionResult,\n VCLToken,\n VCLVerifiableCredential,\n VCLVerifiedProfile,\n VCLVerifiedProfileDescriptor,\n VCLInitializationDescriptor,\n VCLPresentationRequestDescriptor,\n VCLJwtDescriptor,\n VCLDidJwk,\n VCLErrorCode,\n VCLError,\n toVclError,\n};\n"]}
@@ -6,7 +6,6 @@
6
6
  */
7
7
  import type { VCLCredentialManifest } from './entities/VCLCredentialManifest';
8
8
  import type { VCLCredentialManifestDescriptor } from './entities/VCLCredentialManifestDescriptor';
9
- import type { VCLCredentialType } from './entities/VCLCredentialType';
10
9
  import type { VCLCredentialTypeSchemas } from './entities/VCLCredentialTypeSchemas';
11
10
  import type { VCLCredentialTypesUIFormSchema } from './entities/VCLCredentialTypesUIFormSchema';
12
11
  import type { VCLCredentialTypesUIFormSchemaDescriptor } from './entities/VCLCredentialTypesUIFormSchemaDescriptor';
@@ -14,37 +13,40 @@ import type { VCLExchange } from './entities/VCLExchange';
14
13
  import type { VCLExchangeDescriptor } from './entities/VCLExchangeDescriptor';
15
14
  import type { VCLFinalizeOffersDescriptor } from './entities/VCLFinalizeOffersDescriptor';
16
15
  import type { VCLGenerateOffersDescriptor } from './entities/VCLGenerateOffersDescriptor';
17
- import type { VCLJWT } from './entities/VCLJWT';
16
+ import type { VCLJwt } from './entities/VCLJwt';
18
17
  import type { VCLJwtVerifiableCredentials } from './entities/VCLJwtVerifiableCredentials';
19
18
  import type { VCLOffers } from './entities/VCLOffers';
20
19
  import type { VCLOrganizations } from './entities/VCLOrganizations';
21
20
  import type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';
22
21
  import type { VCLPresentationRequest } from './entities/VCLPresentationRequest';
23
22
  import type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';
24
- import type { VCLPublicKey } from './entities/VCLPublicKey';
23
+ import type { VCLJwkPublic } from './entities/VCLJwkPublic';
25
24
  import type { VCLToken } from './entities/VCLToken';
26
25
  import type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';
27
26
  import type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';
28
27
  import type { VCLCountries } from './entities/VCLCountries';
29
- import type { Dictionary } from './Dictionary';
30
28
  import type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';
31
29
  import type { VCLSubmissionResult } from './entities/VCLSubmissionResult';
32
30
  import type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';
33
- export declare type VclApi = {
34
- initialize(initializationDescriptor: VCLInitializationDescriptor): Promise<void>;
35
- getCountries(): Promise<VCLCountries>;
36
- getCredentialTypeSchemas(): Promise<VCLCredentialTypeSchemas>;
37
- getCredentialTypes(): Promise<Array<VCLCredentialType>>;
38
- getPresentationRequest(presentationRequestDescriptor: VCLPresentationRequestDescriptor): Promise<VCLPresentationRequest>;
39
- submitPresentation(presentationSubmission: VCLPresentationSubmission): Promise<VCLSubmissionResult>;
40
- getExchangeProgress(exchangeDescriptor: VCLExchangeDescriptor): Promise<VCLExchange>;
41
- searchForOrganizations(organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor): Promise<VCLOrganizations>;
42
- getCredentialManifest(credentialManifestDescriptor: VCLCredentialManifestDescriptor): Promise<VCLCredentialManifest>;
43
- generateOffers(generateOffersDescriptor: VCLGenerateOffersDescriptor): Promise<VCLOffers>;
44
- checkForOffers(generateOffersDescriptor: VCLGenerateOffersDescriptor, token: VCLToken): Promise<VCLOffers>;
45
- finalizeOffers(finalizeOffersDescriptor: VCLFinalizeOffersDescriptor, token: VCLToken): Promise<VCLJwtVerifiableCredentials>;
46
- getCredentialTypesUIFormSchema(credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor): Promise<VCLCredentialTypesUIFormSchema>;
47
- getVerifiedProfile(verifiedProfileDescriptor: VCLVerifiedProfileDescriptor): Promise<VCLVerifiedProfile>;
48
- verifyJwt(jwt: VCLJWT, publicKey: VCLPublicKey): Promise<boolean>;
49
- generateSignedJwt(payload: Dictionary<any>, iss: string, jti: string): Promise<VCLJWT>;
31
+ import type { VCLJwtDescriptor } from './entities/VCLJwtDescriptor';
32
+ import type { VCLDidJwk } from './entities/VCLDidJwk';
33
+ import type { VCLCredentialTypes } from './entities/VCLCredentialTypes';
34
+ export declare const VclApi: {
35
+ initialize: (initializationDescriptor: VCLInitializationDescriptor) => Promise<void>;
36
+ getCountries: () => Promise<VCLCountries>;
37
+ getCredentialTypes: () => Promise<VCLCredentialTypes>;
38
+ getCredentialTypeSchemas: () => Promise<VCLCredentialTypeSchemas>;
39
+ getPresentationRequest: (presentationRequestDescriptor: VCLPresentationRequestDescriptor) => Promise<VCLPresentationRequest>;
40
+ submitPresentation: (presentationSubmission: VCLPresentationSubmission) => Promise<VCLSubmissionResult>;
41
+ getExchangeProgress: (exchangeDescriptor: VCLExchangeDescriptor) => Promise<VCLExchange>;
42
+ searchForOrganizations: (organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor) => Promise<VCLOrganizations>;
43
+ getCredentialManifest: (credentialManifestDescriptor: VCLCredentialManifestDescriptor) => Promise<VCLCredentialManifest>;
44
+ generateOffers: (generateOffersDescriptor: VCLGenerateOffersDescriptor) => Promise<VCLOffers>;
45
+ checkForOffers: (generateOffersDescriptor: VCLGenerateOffersDescriptor, token: VCLToken) => Promise<VCLOffers>;
46
+ finalizeOffers: (finalizeOffersDescriptor: VCLFinalizeOffersDescriptor, token: VCLToken) => Promise<VCLJwtVerifiableCredentials>;
47
+ getCredentialTypesUIFormSchema: (credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor) => Promise<VCLCredentialTypesUIFormSchema>;
48
+ getVerifiedProfile: (verifiedProfileDescriptor: VCLVerifiedProfileDescriptor) => Promise<VCLVerifiedProfile>;
49
+ verifyJwt: (jwt: VCLJwt, jwkPublic: VCLJwkPublic) => Promise<boolean>;
50
+ generateSignedJwt: (jwtDescriptor: VCLJwtDescriptor) => Promise<VCLJwt>;
51
+ generateDidJwk: () => Promise<VCLDidJwk>;
50
52
  };
@@ -4,9 +4,9 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- import type { VCLJWT } from './VCLJWT';
7
+ import type { VCLJwt } from './VCLJwt';
8
8
  export interface VCLCredentialManifest {
9
- jwt: VCLJWT;
9
+ jwt: VCLJwt;
10
10
  iss: string;
11
11
  did: string;
12
12
  exchangeId: string;
@@ -4,6 +4,6 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- export interface VCLPublicKey {
8
- jwkStr: string;
7
+ export interface VCLDidJwk {
8
+ value: string;
9
9
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ export declare class VCLError extends Error {
8
+ description?: string;
9
+ code?: number;
10
+ constructor(error: any);
11
+ }
12
+ export declare const toVclError: (error: any) => VCLError;
@@ -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
+ export declare enum VCLErrorCode {
8
+ NetworkError = 1,
9
+ VerificationError = 403
10
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ export interface VCLJwkPublic {
8
+ valueStr: string;
9
+ }
@@ -4,6 +4,6 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- export interface VCLJWT {
7
+ export interface VCLJwt {
8
8
  encodedJwt: string;
9
9
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
7
+ import type { Dictionary } from '../Dictionary';
8
+ export interface VCLJwtDescriptor {
9
+ payload: Dictionary<any>;
10
+ iss: string;
11
+ jti: string;
12
+ }
@@ -4,7 +4,7 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- import type { VCLJWT } from './VCLJWT';
7
+ import type { VCLJwt } from './VCLJwt';
8
8
  export interface VCLJwtVerifiableCredentials {
9
- all: VCLJWT[];
9
+ all: VCLJwt[];
10
10
  }
@@ -4,12 +4,12 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- import type { VCLJWT } from './VCLJWT';
8
- import type { VCLPublicKey } from './VCLPublicKey';
7
+ import type { VCLJwt } from './VCLJwt';
8
+ import type { VCLJwkPublic } from './VCLJwkPublic';
9
9
  export interface VCLPresentationRequest {
10
10
  exchangeId: string;
11
- jwt: VCLJWT;
12
- publicKey: VCLPublicKey;
11
+ jwt: VCLJwt;
12
+ jwkPublic: VCLJwkPublic;
13
13
  keyID: string;
14
14
  presentationDefinitionId: string;
15
15
  iss: string;
@@ -4,7 +4,7 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- import type { VclApi } from './api/VCLApi';
7
+ import { VclApi } from './api/VCLApi';
8
8
  import type { VCLEnvironment } from './api/VCLEnvironment';
9
9
  import { VCLEnvTypes } from './api/VCLEnvironment';
10
10
  import type { VCLCountry } from './api/entities/VCLCountry';
@@ -18,6 +18,7 @@ import type { VCLCredentialManifestDescriptorByDeepLink } from './api/entities/V
18
18
  import type { VCLCredentialManifestDescriptorByService } from './api/entities/VCLCredentialManifestDescriptorByService';
19
19
  import type { VCLCredentialManifestDescriptorRefresh } from './api/entities/VCLCredentialManifestDescriptorRefresh';
20
20
  import type { VCLCredentialType } from './api/entities/VCLCredentialType';
21
+ import type { VCLCredentialTypes } from './api/entities/VCLCredentialTypes';
21
22
  import type { VCLCredentialTypeSchema } from './api/entities/VCLCredentialTypeSchema';
22
23
  import type { VCLCredentialTypeSchemas } from './api/entities/VCLCredentialTypeSchemas';
23
24
  import type { VCLCredentialTypesUIFormSchemaDescriptor } from './api/entities/VCLCredentialTypesUIFormSchemaDescriptor';
@@ -28,7 +29,7 @@ import type { VCLExchangeDescriptor } from './api/entities/VCLExchangeDescriptor
28
29
  import type { VCLFilter } from './api/entities/VCLFilter';
29
30
  import type { VCLFinalizeOffersDescriptor } from './api/entities/VCLFinalizeOffersDescriptor';
30
31
  import type { VCLGenerateOffersDescriptor } from './api/entities/VCLGenerateOffersDescriptor';
31
- import type { VCLJWT } from './api/entities/VCLJWT';
32
+ import type { VCLJwt } from './api/entities/VCLJwt';
32
33
  import type { VCLJwtVerifiableCredentials } from './api/entities/VCLJwtVerifiableCredentials';
33
34
  import type { VCLOffers } from './api/entities/VCLOffers';
34
35
  import type { VCLOrganization } from './api/entities/VCLOrganization';
@@ -37,7 +38,7 @@ import type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganiz
37
38
  import type { VCLPage } from './api/entities/VCLPage';
38
39
  import type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';
39
40
  import type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';
40
- import type { VCLPublicKey } from './api/entities/VCLPublicKey';
41
+ import type { VCLJwkPublic } from './api/entities/VCLJwkPublic';
41
42
  import type { VCLPushDelegate } from './api/entities/VCLPushDelegate';
42
43
  import type { VCLService } from './api/entities/VCLService';
43
44
  import type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';
@@ -50,6 +51,9 @@ import type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedPro
50
51
  import type { Dictionary } from './api/Dictionary';
51
52
  import type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';
52
53
  import type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';
53
- declare const _default: VclApi;
54
- export default _default;
55
- export { Dictionary, VCLEnvironment, VCLEnvTypes, VCLCountry, VCLCountries, VCLCountryCodes, VCLRegion, VCLRegions, VCLCredentialManifest, VCLCredentialManifestDescriptor, VCLCredentialManifestDescriptorByDeepLink, VCLCredentialManifestDescriptorByService, VCLCredentialType, VCLCredentialTypeSchema, VCLCredentialTypeSchemas, VCLCredentialTypesUIFormSchema, VCLCredentialTypesUIFormSchemaDescriptor, VCLCredentialManifestDescriptorRefresh, VCLDeepLink, VCLExchange, VCLExchangeDescriptor, VCLFilter, VCLFinalizeOffersDescriptor, VCLGenerateOffersDescriptor, VCLJWT, VCLJwtVerifiableCredentials, VCLOffers, VCLOrganization, VCLOrganizations, VCLOrganizationsSearchDescriptor, VCLPage, VCLPresentationRequest, VCLPresentationSubmission, VCLPublicKey, VCLPushDelegate, VCLService, VCLServiceCredentialAgentIssuer, VCLServiceType, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, VCLInitializationDescriptor, VCLPresentationRequestDescriptor, };
54
+ import type { VCLJwtDescriptor } from './api/entities/VCLJwtDescriptor';
55
+ import type { VCLDidJwk } from './api/entities/VCLDidJwk';
56
+ import { VCLErrorCode } from './api/entities/VCLErrorCode';
57
+ import type { VCLError, toVclError } from './api/entities/VCLError';
58
+ export default VclApi;
59
+ export { Dictionary, VCLEnvironment, VCLEnvTypes, VCLCountry, VCLCountries, VCLCountryCodes, VCLRegion, VCLRegions, VCLCredentialManifest, VCLCredentialManifestDescriptor, VCLCredentialManifestDescriptorByDeepLink, VCLCredentialManifestDescriptorByService, VCLCredentialType, VCLCredentialTypes, VCLCredentialTypeSchema, VCLCredentialTypeSchemas, VCLCredentialTypesUIFormSchema, VCLCredentialTypesUIFormSchemaDescriptor, VCLCredentialManifestDescriptorRefresh, VCLDeepLink, VCLExchange, VCLExchangeDescriptor, VCLFilter, VCLFinalizeOffersDescriptor, VCLGenerateOffersDescriptor, VCLJwt, VCLJwtVerifiableCredentials, VCLOffers, VCLOrganization, VCLOrganizations, VCLOrganizationsSearchDescriptor, VCLPage, VCLPresentationRequest, VCLPresentationSubmission, VCLJwkPublic, VCLPushDelegate, VCLService, VCLServiceCredentialAgentIssuer, VCLServiceType, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, VCLInitializationDescriptor, VCLPresentationRequestDescriptor, VCLJwtDescriptor, VCLDidJwk, VCLErrorCode, VCLError, toVclError, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vcl-react-native",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
4
4
  "description": "Velocity Career Labs React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",