@velocitycareerlabs/vcl-react-native 1.0.1 → 1.1.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 (131) hide show
  1. package/LICENSE +177 -21
  2. package/android/LICENSE +177 -0
  3. package/android/build.gradle +1 -1
  4. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +17 -4
  5. package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativePackage.kt +8 -1
  6. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/ArrayExtensions.kt +7 -0
  7. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/JSONExtensions.kt +8 -1
  8. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/MapExtensions.kt +8 -1
  9. package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/RNCollectionExtensions.kt +8 -1
  10. package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +72 -41
  11. package/ios/Extensions/StringExtensions.swift +3 -1
  12. package/ios/LICENSE +177 -0
  13. package/ios/Utils/Converter.swift +14 -0
  14. package/ios/VclReactNative.m +6 -0
  15. package/ios/VclReactNative.swift +11 -2
  16. package/lib/commonjs/api/VCLEnvironment.js +7 -0
  17. package/lib/commonjs/api/VCLEnvironment.js.map +1 -1
  18. package/lib/commonjs/api/entities/VCLCountries.js +7 -0
  19. package/lib/commonjs/api/entities/VCLCountries.js.map +1 -1
  20. package/lib/commonjs/api/entities/VCLInitializationDescriptor.js +6 -0
  21. package/lib/commonjs/api/entities/VCLInitializationDescriptor.js.map +1 -0
  22. package/lib/commonjs/api/entities/VCLServiceType.js +7 -0
  23. package/lib/commonjs/api/entities/VCLServiceType.js.map +1 -1
  24. package/lib/commonjs/index.js +6 -0
  25. package/lib/commonjs/index.js.map +1 -1
  26. package/lib/module/api/VCLEnvironment.js +6 -0
  27. package/lib/module/api/VCLEnvironment.js.map +1 -1
  28. package/lib/module/api/entities/VCLCountries.js +6 -0
  29. package/lib/module/api/entities/VCLCountries.js.map +1 -1
  30. package/lib/module/api/entities/VCLInitializationDescriptor.js +2 -0
  31. package/lib/module/api/entities/VCLInitializationDescriptor.js.map +1 -0
  32. package/lib/module/api/entities/VCLServiceType.js +6 -0
  33. package/lib/module/api/entities/VCLServiceType.js.map +1 -1
  34. package/lib/module/index.js +6 -0
  35. package/lib/module/index.js.map +1 -1
  36. package/lib/typescript/api/Dictionary.d.ts +6 -0
  37. package/lib/typescript/api/VCLApi.d.ts +8 -2
  38. package/lib/typescript/api/VCLEnvironment.d.ts +6 -0
  39. package/lib/typescript/api/entities/VCLCountries.d.ts +6 -0
  40. package/lib/typescript/api/entities/VCLCountry.d.ts +6 -0
  41. package/lib/typescript/api/entities/VCLCredentialManifest.d.ts +6 -0
  42. package/lib/typescript/api/entities/VCLCredentialManifestDescriptor.d.ts +6 -0
  43. package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByDeepLink.d.ts +6 -0
  44. package/lib/typescript/api/entities/VCLCredentialManifestDescriptorByService.d.ts +6 -0
  45. package/lib/typescript/api/entities/VCLCredentialManifestDescriptorRefresh.d.ts +6 -0
  46. package/lib/typescript/api/entities/VCLCredentialType.d.ts +6 -0
  47. package/lib/typescript/api/entities/VCLCredentialTypeSchema.d.ts +6 -0
  48. package/lib/typescript/api/entities/VCLCredentialTypeSchemas.d.ts +6 -0
  49. package/lib/typescript/api/entities/VCLCredentialTypes.d.ts +6 -0
  50. package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchema.d.ts +6 -0
  51. package/lib/typescript/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.d.ts +6 -0
  52. package/lib/typescript/api/entities/VCLDeepLink.d.ts +6 -0
  53. package/lib/typescript/api/entities/VCLError.d.ts +6 -0
  54. package/lib/typescript/api/entities/VCLExchange.d.ts +6 -0
  55. package/lib/typescript/api/entities/VCLExchangeDescriptor.d.ts +6 -0
  56. package/lib/typescript/api/entities/VCLFilter.d.ts +6 -0
  57. package/lib/typescript/api/entities/VCLFinalizeOffersDescriptor.d.ts +6 -0
  58. package/lib/typescript/api/entities/VCLGenerateOffersDescriptor.d.ts +6 -0
  59. package/lib/typescript/api/entities/VCLInitializationDescriptor.d.ts +11 -0
  60. package/lib/typescript/api/entities/VCLJWT.d.ts +6 -0
  61. package/lib/typescript/api/entities/VCLJwtVerifiableCredentials.d.ts +6 -0
  62. package/lib/typescript/api/entities/VCLOffers.d.ts +6 -0
  63. package/lib/typescript/api/entities/VCLOrganization.d.ts +6 -0
  64. package/lib/typescript/api/entities/VCLOrganizations.d.ts +6 -0
  65. package/lib/typescript/api/entities/VCLOrganizationsSearchDescriptor.d.ts +6 -0
  66. package/lib/typescript/api/entities/VCLPage.d.ts +6 -0
  67. package/lib/typescript/api/entities/VCLPresentationRequest.d.ts +6 -0
  68. package/lib/typescript/api/entities/VCLPresentationSubmission.d.ts +6 -0
  69. package/lib/typescript/api/entities/VCLPresentationSubmissionResult.d.ts +6 -0
  70. package/lib/typescript/api/entities/VCLPublicKey.d.ts +6 -0
  71. package/lib/typescript/api/entities/VCLPushDelegate.d.ts +6 -0
  72. package/lib/typescript/api/entities/VCLRegion.d.ts +6 -0
  73. package/lib/typescript/api/entities/VCLRegions.d.ts +6 -0
  74. package/lib/typescript/api/entities/VCLService.d.ts +6 -0
  75. package/lib/typescript/api/entities/VCLServiceCredentialAgentIssuer.d.ts +6 -0
  76. package/lib/typescript/api/entities/VCLServiceType.d.ts +6 -0
  77. package/lib/typescript/api/entities/VCLSubmissionResult.d.ts +6 -0
  78. package/lib/typescript/api/entities/VCLToken.d.ts +6 -0
  79. package/lib/typescript/api/entities/VCLVerifiableCredential.d.ts +6 -0
  80. package/lib/typescript/api/entities/VCLVerifiedProfile.d.ts +6 -0
  81. package/lib/typescript/api/entities/VCLVerifiedProfileDescriptor.d.ts +6 -0
  82. package/lib/typescript/index.d.ts +8 -1
  83. package/package.json +1 -1
  84. package/src/api/Dictionary.tsx +7 -0
  85. package/src/api/VCLApi.tsx +11 -1
  86. package/src/api/VCLEnvironment.tsx +7 -0
  87. package/src/api/entities/VCLCountries.tsx +7 -0
  88. package/src/api/entities/VCLCountry.tsx +7 -0
  89. package/src/api/entities/VCLCredentialManifest.tsx +7 -0
  90. package/src/api/entities/VCLCredentialManifestDescriptor.tsx +7 -0
  91. package/src/api/entities/VCLCredentialManifestDescriptorByDeepLink.tsx +7 -0
  92. package/src/api/entities/VCLCredentialManifestDescriptorByService.tsx +7 -0
  93. package/src/api/entities/VCLCredentialManifestDescriptorRefresh.tsx +7 -0
  94. package/src/api/entities/VCLCredentialType.tsx +7 -0
  95. package/src/api/entities/VCLCredentialTypeSchema.tsx +7 -0
  96. package/src/api/entities/VCLCredentialTypeSchemas.tsx +7 -0
  97. package/src/api/entities/VCLCredentialTypes.tsx +7 -0
  98. package/src/api/entities/VCLCredentialTypesUIFormSchema.tsx +7 -0
  99. package/src/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.tsx +7 -0
  100. package/src/api/entities/VCLDeepLink.tsx +7 -0
  101. package/src/api/entities/VCLError.tsx +7 -0
  102. package/src/api/entities/VCLExchange.tsx +7 -0
  103. package/src/api/entities/VCLExchangeDescriptor.tsx +7 -0
  104. package/src/api/entities/VCLFilter.tsx +7 -0
  105. package/src/api/entities/VCLFinalizeOffersDescriptor.tsx +7 -0
  106. package/src/api/entities/VCLGenerateOffersDescriptor.tsx +7 -0
  107. package/src/api/entities/VCLInitializationDescriptor.tsx +13 -0
  108. package/src/api/entities/VCLJWT.tsx +7 -0
  109. package/src/api/entities/VCLJwtVerifiableCredentials.tsx +7 -0
  110. package/src/api/entities/VCLOffers.tsx +7 -0
  111. package/src/api/entities/VCLOrganization.tsx +7 -0
  112. package/src/api/entities/VCLOrganizations.tsx +7 -0
  113. package/src/api/entities/VCLOrganizationsSearchDescriptor.tsx +7 -0
  114. package/src/api/entities/VCLPage.tsx +7 -0
  115. package/src/api/entities/VCLPresentationRequest.tsx +7 -0
  116. package/src/api/entities/VCLPresentationSubmission.tsx +7 -0
  117. package/src/api/entities/VCLPresentationSubmissionResult.tsx +7 -0
  118. package/src/api/entities/VCLPublicKey.tsx +7 -0
  119. package/src/api/entities/VCLPushDelegate.tsx +7 -0
  120. package/src/api/entities/VCLRegion.tsx +7 -0
  121. package/src/api/entities/VCLRegions.tsx +7 -0
  122. package/src/api/entities/VCLService.tsx +7 -0
  123. package/src/api/entities/VCLServiceCredentialAgentIssuer.tsx +7 -0
  124. package/src/api/entities/VCLServiceType.tsx +7 -0
  125. package/src/api/entities/VCLSubmissionResult.tsx +7 -0
  126. package/src/api/entities/VCLToken.tsx +7 -0
  127. package/src/api/entities/VCLVerifiableCredential.tsx +7 -0
  128. package/src/api/entities/VCLVerifiedProfile.tsx +7 -0
  129. package/src/api/entities/VCLVerifiedProfileDescriptor.tsx +7 -0
  130. package/src/index.tsx +9 -0
  131. package/vcl-react-native.podspec +1 -1
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
1
7
  export interface VCLVerifiableCredential {
2
8
  inputDescriptor: string;
3
9
  jwtVc: string;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
1
7
  import type { Dictionary } from '../Dictionary';
2
8
  export interface VCLVerifiedProfile {
3
9
  payload: Dictionary<string>;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
1
7
  export interface VCLVerifiedProfileDescriptor {
2
8
  did: string;
3
9
  }
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Created by Michael Avoyan.
3
+ *
4
+ * Copyright 2022 Velocity Career Labs inc.
5
+ * SPDX-License-Identifier: Apache-2.0
6
+ */
1
7
  import type { VclApi } from './api/VCLApi';
2
8
  import type { VCLEnvironment } from './api/VCLEnvironment';
3
9
  import { VCLEnvTypes } from './api/VCLEnvironment';
@@ -44,6 +50,7 @@ import type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCreden
44
50
  import type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';
45
51
  import type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';
46
52
  import type { Dictionary } from './api/Dictionary';
53
+ import type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';
47
54
  declare const _default: VclApi;
48
55
  export default _default;
49
- export { Dictionary, VCLEnvironment, VCLEnvTypes, VCLCountry, VCLCountries, VCLCountryCodes, VCLRegion, VCLRegions, VCLCredentialManifest, VCLCredentialManifestDescriptor, VCLCredentialManifestDescriptorByDeepLink, VCLCredentialManifestDescriptorByService, VCLCredentialType, VCLCredentialTypeSchema, VCLCredentialTypeSchemas, VCLCredentialTypesUIFormSchema, VCLCredentialTypesUIFormSchemaDescriptor, VCLCredentialManifestDescriptorRefresh, VCLDeepLink, VCLError, VCLExchange, VCLExchangeDescriptor, VCLFilter, VCLFinalizeOffersDescriptor, VCLGenerateOffersDescriptor, VCLJWT, VCLJwtVerifiableCredentials, VCLOffers, VCLOrganization, VCLOrganizations, VCLOrganizationsSearchDescriptor, VCLPage, VCLPresentationRequest, VCLPresentationSubmission, VCLPresentationSubmissionResult, VCLPublicKey, VCLPushDelegate, VCLService, VCLServiceCredentialAgentIssuer, VCLServiceType, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, };
56
+ export { Dictionary, VCLEnvironment, VCLEnvTypes, VCLCountry, VCLCountries, VCLCountryCodes, VCLRegion, VCLRegions, VCLCredentialManifest, VCLCredentialManifestDescriptor, VCLCredentialManifestDescriptorByDeepLink, VCLCredentialManifestDescriptorByService, VCLCredentialType, VCLCredentialTypeSchema, VCLCredentialTypeSchemas, VCLCredentialTypesUIFormSchema, VCLCredentialTypesUIFormSchemaDescriptor, VCLCredentialManifestDescriptorRefresh, VCLDeepLink, VCLError, VCLExchange, VCLExchangeDescriptor, VCLFilter, VCLFinalizeOffersDescriptor, VCLGenerateOffersDescriptor, VCLJWT, VCLJwtVerifiableCredentials, VCLOffers, VCLOrganization, VCLOrganizations, VCLOrganizationsSearchDescriptor, VCLPage, VCLPresentationRequest, VCLPresentationSubmission, VCLPresentationSubmissionResult, VCLPublicKey, VCLPushDelegate, VCLService, VCLServiceCredentialAgentIssuer, VCLServiceType, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, VCLInitializationDescriptor, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vcl-react-native",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "description": "Velocity Career Labs React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -1,3 +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
+
1
8
  export type Dictionary<T> = {
2
9
  [key: string]: T;
3
10
  };
@@ -1,3 +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
+
1
8
  import type { VCLCredentialManifest } from './entities/VCLCredentialManifest';
2
9
  import type { VCLCredentialManifestDescriptor } from './entities/VCLCredentialManifestDescriptor';
3
10
  import type { VCLCredentialType } from './entities/VCLCredentialType';
@@ -24,9 +31,12 @@ import type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';
24
31
  import type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';
25
32
  import type { VCLCountries } from './entities/VCLCountries';
26
33
  import type { Dictionary } from './Dictionary';
34
+ import type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';
27
35
 
28
36
  export type VclApi = {
29
- initialize(environment: VCLEnvironment): Promise<void>;
37
+ initialize(
38
+ initializationDescriptor: VCLInitializationDescriptor
39
+ ): Promise<void>;
30
40
 
31
41
  getCountries(): Promise<VCLCountries>;
32
42
  getCredentialTypeSchemas(): Promise<VCLCredentialTypeSchemas>;
@@ -1,3 +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
+
1
8
  export interface VCLEnvironment {
2
9
  value: string;
3
10
  }
@@ -1,3 +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
+
1
8
  import type { VCLCountry } from './VCLCountry';
2
9
 
3
10
  export interface VCLCountries {
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
  import type { VCLRegions } from './VCLRegions';
3
10
 
@@ -1,3 +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
+
1
8
  import type { VCLJWT } from './VCLJWT';
2
9
 
3
10
  export interface VCLCredentialManifest {
@@ -1,3 +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
+
1
8
  import type { VCLPushDelegate } from './VCLPushDelegate';
2
9
 
3
10
  export interface VCLCredentialManifestDescriptor {
@@ -1,3 +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
+
1
8
  import type { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';
2
9
  import type { VCLDeepLink } from './VCLDeepLink';
3
10
 
@@ -1,3 +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
+
1
8
  import type { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';
2
9
  import type { VCLService } from './VCLService';
3
10
 
@@ -1,3 +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
+
1
8
  import type { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';
2
9
  import type { VCLService } from './VCLService';
3
10
 
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
 
3
10
  export interface VCLCredentialType {
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
 
3
10
  export interface VCLCredentialTypeSchema {
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
  import type { VCLCredentialTypeSchema } from './VCLCredentialTypeSchema';
3
10
 
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
 
3
10
  export interface VCLCredentialTypes {
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
 
3
10
  export interface VCLCredentialTypesUIFormSchema {
@@ -1,3 +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
+
1
8
  export interface VCLCredentialTypesUIFormSchemaDescriptor {
2
9
  credentialType: string;
3
10
  countryCode: string;
@@ -1,3 +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
+
1
8
  export interface VCLDeepLink {
2
9
  value: string;
3
10
  }
@@ -1,3 +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
+
1
8
  export interface VCLError {
2
9
  description: string;
3
10
  code: number;
@@ -1,3 +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
+
1
8
  export interface VCLExchange {
2
9
  id: string;
3
10
  type: string;
@@ -1,3 +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
+
1
8
  import type { VCLPresentationSubmission } from './VCLPresentationSubmission';
2
9
  import type { VCLSubmissionResult } from './VCLSubmissionResult';
3
10
 
@@ -1,3 +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
+
1
8
  import type { VCLServiceType } from './VCLServiceType';
2
9
 
3
10
  export interface VCLFilter {
@@ -1,3 +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
+
1
8
  import type { VCLCredentialManifest } from './VCLCredentialManifest';
2
9
 
3
10
  export interface VCLFinalizeOffersDescriptor {
@@ -1,3 +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
+
1
8
  import type { VCLCredentialManifest } from './VCLCredentialManifest';
2
9
  import type { VCLVerifiableCredential } from './VCLVerifiableCredential';
3
10
 
@@ -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
+
8
+ import type { VCLEnvironment } from '../VCLEnvironment';
9
+
10
+ export interface VCLInitializationDescriptor {
11
+ environment?: VCLEnvironment;
12
+ resetCache?: Boolean;
13
+ }
@@ -1,3 +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
+
1
8
  export interface VCLJWT {
2
9
  encodedJwt: string; // 3 base64Url strings splitted by a dot
3
10
  }
@@ -1,3 +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
+
1
8
  import type { VCLJWT } from './VCLJWT';
2
9
 
3
10
  export interface VCLJwtVerifiableCredentials {
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
  import type { VCLToken } from './VCLToken';
3
10
 
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
  import type { VCLServiceCredentialAgentIssuer } from './VCLServiceCredentialAgentIssuer';
3
10
 
@@ -1,3 +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
+
1
8
  import type { VCLOrganization } from './VCLOrganization';
2
9
 
3
10
  export interface VCLOrganizations {
@@ -1,3 +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
+
1
8
  import type { VCLFilter } from './VCLFilter';
2
9
  import type { VCLPage } from './VCLPage';
3
10
 
@@ -1,3 +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
+
1
8
  export interface VCLPage {
2
9
  size?: string;
3
10
  skip?: string;
@@ -1,3 +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
+
1
8
  import type { VCLJWT } from './VCLJWT';
2
9
  import type { VCLPublicKey } from './VCLPublicKey';
3
10
 
@@ -1,3 +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
+
1
8
  import type { VCLPresentationRequest } from './VCLPresentationRequest';
2
9
  import type { VCLVerifiableCredential } from './VCLVerifiableCredential';
3
10
 
@@ -1,3 +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
+
1
8
  import type { VCLExchange } from './VCLExchange';
2
9
  import type { VCLToken } from './VCLToken';
3
10
 
@@ -1,3 +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
+
1
8
  export interface VCLPublicKey {
2
9
  jwkStr: string;
3
10
  }
@@ -1,3 +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
+
1
8
  export interface VCLPushDelegate {
2
9
  pushToken: string;
3
10
  pushUrl: string;
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
 
3
10
  export interface VCLRegion {
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
  import type { VCLRegion } from './VCLRegion';
3
10
 
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
 
3
10
  export interface VCLService {
@@ -1,3 +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
+
1
8
  import type { VCLService } from './VCLService';
2
9
 
3
10
  export interface VCLServiceCredentialAgentIssuer extends VCLService {}
@@ -1,3 +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
+
1
8
  export enum VCLServiceType {
2
9
  Issuer = 'Issuer',
3
10
  Inspector = 'Inspector',
@@ -1,3 +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
+
1
8
  import type { VCLExchange } from './VCLExchange';
2
9
  import type { VCLToken } from './VCLToken';
3
10
 
@@ -1,3 +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
+
1
8
  export interface VCLToken {
2
9
  value: string;
3
10
  }
@@ -1,3 +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
+
1
8
  export interface VCLVerifiableCredential {
2
9
  inputDescriptor: string;
3
10
  jwtVc: string;
@@ -1,3 +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
+
1
8
  import type { Dictionary } from '../Dictionary';
2
9
 
3
10
  export interface VCLVerifiedProfile {
@@ -1,3 +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
+
1
8
  export interface VCLVerifiedProfileDescriptor {
2
9
  did: string;
3
10
  }
package/src/index.tsx CHANGED
@@ -1,3 +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
+
1
8
  import { NativeModules } from 'react-native';
2
9
  import type { VclApi } from './api/VCLApi';
3
10
  import type { VCLEnvironment } from './api/VCLEnvironment';
@@ -45,6 +52,7 @@ import type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCreden
45
52
  import type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';
46
53
  import type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';
47
54
  import type { Dictionary } from './api/Dictionary';
55
+ import type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';
48
56
 
49
57
  const { VclReactNative } = NativeModules;
50
58
 
@@ -95,4 +103,5 @@ export {
95
103
  VCLVerifiableCredential,
96
104
  VCLVerifiedProfile,
97
105
  VCLVerifiedProfileDescriptor,
106
+ VCLInitializationDescriptor,
98
107
  };