@velocitycareerlabs/vcl-react-native 1.7.0 → 1.8.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 (45) hide show
  1. package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
  2. package/android/.gradle/7.4.2/checksums/md5-checksums.bin +0 -0
  3. package/android/.gradle/7.4.2/checksums/sha1-checksums.bin +0 -0
  4. package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
  5. package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
  6. package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
  7. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  8. package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
  9. package/android/build.gradle +1 -1
  10. package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +14 -23
  11. package/ios/Utils/Converter.swift +15 -28
  12. package/lib/commonjs/api/entities/VCLCredentialManifestDescriptor.js.map +1 -1
  13. package/lib/commonjs/api/entities/VCLIssuingType.js +21 -0
  14. package/lib/commonjs/api/entities/VCLIssuingType.js.map +1 -0
  15. package/lib/commonjs/api/entities/VCLPresentationRequestDescriptor.js.map +1 -1
  16. package/lib/commonjs/api/entities/VCLServiceType.js +3 -7
  17. package/lib/commonjs/api/entities/VCLServiceType.js.map +1 -1
  18. package/lib/commonjs/api/entities/VCLVerifiedProfileDescriptor.js +0 -4
  19. package/lib/commonjs/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -1
  20. package/lib/commonjs/index.js +7 -0
  21. package/lib/commonjs/index.js.map +1 -1
  22. package/lib/module/api/entities/VCLCredentialManifestDescriptor.js.map +1 -1
  23. package/lib/module/api/entities/VCLIssuingType.js +15 -0
  24. package/lib/module/api/entities/VCLIssuingType.js.map +1 -0
  25. package/lib/module/api/entities/VCLPresentationRequestDescriptor.js.map +1 -1
  26. package/lib/module/api/entities/VCLServiceType.js +3 -7
  27. package/lib/module/api/entities/VCLServiceType.js.map +1 -1
  28. package/lib/module/api/entities/VCLVerifiedProfileDescriptor.js +1 -1
  29. package/lib/module/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -1
  30. package/lib/module/index.js +2 -1
  31. package/lib/module/index.js.map +1 -1
  32. package/lib/typescript/api/entities/VCLCredentialManifestDescriptor.d.ts +2 -2
  33. package/lib/typescript/api/entities/VCLIssuingType.d.ts +12 -0
  34. package/lib/typescript/api/entities/VCLPresentationRequestDescriptor.d.ts +0 -2
  35. package/lib/typescript/api/entities/VCLServiceType.d.ts +3 -7
  36. package/lib/typescript/api/entities/VCLVerifiedProfileDescriptor.d.ts +0 -2
  37. package/lib/typescript/index.d.ts +3 -1
  38. package/package.json +1 -1
  39. package/src/api/entities/VCLCredentialManifestDescriptor.ts +2 -2
  40. package/src/api/entities/VCLIssuingType.ts +13 -0
  41. package/src/api/entities/VCLPresentationRequestDescriptor.ts +0 -2
  42. package/src/api/entities/VCLServiceType.ts +3 -7
  43. package/src/api/entities/VCLVerifiedProfileDescriptor.ts +0 -3
  44. package/src/index.tsx +4 -0
  45. package/vcl-react-native.podspec +1 -1
@@ -1,2 +1,2 @@
1
- #Mon Dec 19 18:12:27 IST 2022
1
+ #Sun Feb 19 13:05:19 IST 2023
2
2
  gradle.version=7.4.2
@@ -131,5 +131,5 @@ dependencies {
131
131
 
132
132
  // VCL:
133
133
  implementation "com.nimbusds:nimbus-jose-jwt:9.29"
134
- implementation "io.velocitycareerlabs:vcl:1.7.0"
134
+ implementation "io.velocitycareerlabs:vcl:1.8.0"
135
135
  }
@@ -135,10 +135,6 @@ object Converter {
135
135
  fun mapTopPresentationRequestDescriptor(presentationRequestDescriptorLinkMap: ReadableMap) =
136
136
  VCLPresentationRequestDescriptor(
137
137
  deepLink = mapToDeepLink(presentationRequestDescriptorLinkMap.getMapOpt("deepLink")),
138
- serviceType = mapToServiceType(
139
- presentationRequestDescriptorLinkMap,
140
- VCLServiceType.Inspector
141
- ),
142
138
  pushDelegate = mapToPushDelegate(presentationRequestDescriptorLinkMap.getMapOpt("pushDelegate"))
143
139
  )
144
140
 
@@ -151,13 +147,13 @@ object Converter {
151
147
  return retVal
152
148
  }
153
149
 
154
- fun mapToServiceType(
155
- serviceTypeMap: ReadableMap,
156
- defaultServiceType: VCLServiceType
150
+ fun mapToIssuingType(
151
+ issuingTypeMap: ReadableMap,
152
+ defaultIssuingType: VCLIssuingType
157
153
  ) =
158
- serviceTypeMap.getStringOpt("serviceType")?.let { serviceType ->
159
- VCLServiceType.fromString(serviceType)
160
- } ?: defaultServiceType
154
+ issuingTypeMap.getStringOpt("issuingType")?.let { issuingType ->
155
+ VCLIssuingType.fromString(issuingType)
156
+ } ?: defaultIssuingType
161
157
 
162
158
  fun mapToToken(tokenMap: ReadableMap?) =
163
159
  VCLToken(tokenMap?.getStringOpt("value") ?: "")
@@ -304,9 +300,10 @@ object Converter {
304
300
  credentialType?.let { ct -> credentialTypesList?.add(ct) }
305
301
  }
306
302
  }
303
+ val serviceTypes = serviceTypesList?.let { VCLServiceTypes(it) }
307
304
  return VCLFilter(
308
305
  did = did,
309
- serviceTypes = serviceTypesList,
306
+ serviceTypes = serviceTypes,
310
307
  credentialTypes = credentialTypesList
311
308
  )
312
309
  }
@@ -390,9 +387,9 @@ object Converter {
390
387
  ): VCLCredentialManifestDescriptorByDeepLink {
391
388
  return VCLCredentialManifestDescriptorByDeepLink(
392
389
  mapToDeepLink(credentialManifestDescriptorByDeepLinkMap.getMapOpt("deepLink")),
393
- mapToServiceType(
390
+ mapToIssuingType(
394
391
  credentialManifestDescriptorByDeepLinkMap,
395
- VCLServiceType.Issuer
392
+ VCLIssuingType.Career
396
393
  )
397
394
  )
398
395
  }
@@ -406,9 +403,9 @@ object Converter {
406
403
  service = mapToServiceCredentialAgentIssuer(
407
404
  credentialManifestDescriptorByServiceMap.getMapOpt("service")
408
405
  ),
409
- serviceType = mapToServiceType(
406
+ issuingType = mapToIssuingType(
410
407
  credentialManifestDescriptorByServiceMap,
411
- VCLServiceType.Issuer
408
+ VCLIssuingType.Career
412
409
  ),
413
410
  credentialTypes =
414
411
  (credentialManifestDescriptorByServiceMap.getArrayOpt("credentialTypes")?.toArrayList()
@@ -424,10 +421,6 @@ object Converter {
424
421
  service = mapToServiceCredentialAgentIssuer(
425
422
  credentialManifestDescriptorRefreshMap.getMapOpt("service")
426
423
  ),
427
- serviceType = mapToServiceType(
428
- credentialManifestDescriptorRefreshMap,
429
- VCLServiceType.Issuer
430
- ),
431
424
  credentialIds = credentialManifestDescriptorRefreshMap.getArrayOpt("credentialIds")
432
425
  ?.toArrayList()?.toList() as? List<String> ?: listOf()
433
426
  )
@@ -559,10 +552,8 @@ object Converter {
559
552
 
560
553
  fun mapToVerifiedProfileDescriptor(verifiedProfileDescriptor: ReadableMap) =
561
554
  VCLVerifiedProfileDescriptor(
562
- did = verifiedProfileDescriptor.getStringOpt("did") ?: "",
563
- serviceType = verifiedProfileDescriptor.getStringOpt("serviceType")?.let {
564
- VCLServiceType.fromString(it)
565
- })
555
+ did = verifiedProfileDescriptor.getStringOpt("did") ?: ""
556
+ )
566
557
 
567
558
  fun verifiedProfileToMap(
568
559
  verifiedProfile: VCLVerifiedProfile
@@ -133,10 +133,6 @@ func dictionaryTopPresentationRequestDescriptor(
133
133
  ) -> VCLPresentationRequestDescriptor {
134
134
  return VCLPresentationRequestDescriptor(
135
135
  deepLink: dictionaryToDeepLink(presentationRequestDescriptorLinkDictionary["deepLink"] as? [String: Any]),
136
- serviceType: dictionaryToServiceType(
137
- serviceTypeDictionary: presentationRequestDescriptorLinkDictionary,
138
- defaultServiceType: VCLServiceType.Inspector
139
- ),
140
136
  pushDelegate: dictionaryToPushDelegate(presentationRequestDescriptorLinkDictionary["pushDelegate"] as? [String: Any])
141
137
  )
142
138
  }
@@ -157,14 +153,14 @@ func tokenToDictionary(_ token: VCLToken) -> [String: Any] {
157
153
  return ["value": token.value]
158
154
  }
159
155
 
160
- func dictionaryToServiceType(
161
- serviceTypeDictionary: [String: Any],
162
- defaultServiceType: VCLServiceType
163
- ) -> VCLServiceType {
164
- if let serviceType = serviceTypeDictionary["serviceType"] as? String {
165
- return VCLServiceType.fromString(value: serviceType)
156
+ func dictionaryToIssuingType(
157
+ issuingTypeDictionary: [String: Any],
158
+ defaultIssuingType: VCLIssuingType
159
+ ) -> VCLIssuingType {
160
+ if let issuingType = issuingTypeDictionary["issuingType"] as? String {
161
+ return VCLIssuingType.fromString(value: issuingType)
166
162
  }
167
- return defaultServiceType
163
+ return defaultIssuingType
168
164
  }
169
165
 
170
166
  func dictionaryToPresentationRequest(
@@ -292,7 +288,8 @@ func dictionaryToFilter(
292
288
  credentialTypesList?.append(credentialType)
293
289
  }
294
290
  }
295
- return VCLFilter(did: did, serviceTypes: serviceTypesList, credentialTypes: credentialTypesList)
291
+ var serviceTypes: VCLServiceTypes? = serviceTypesList != nil ? VCLServiceTypes(all: serviceTypesList ?? [VCLServiceType]()) : nil
292
+ return VCLFilter(did: did, serviceTypes: serviceTypes, credentialTypes: credentialTypesList)
296
293
  }
297
294
 
298
295
  func dictionaryToPage(_ pageDictionary: [String: Any]?) -> VCLPage {
@@ -364,9 +361,9 @@ func dictionaryToCredentialManifestDescriptorByDeepLink(
364
361
  deepLink: dictionaryToDeepLink(
365
362
  credentialManifestDescriptorByDeepLinkDictionary["deepLink"] as? [String : Any]
366
363
  ),
367
- serviceType: dictionaryToServiceType(
368
- serviceTypeDictionary: credentialManifestDescriptorByDeepLinkDictionary,
369
- defaultServiceType: VCLServiceType.Issuer
364
+ issuingType: dictionaryToIssuingType(
365
+ issuingTypeDictionary: credentialManifestDescriptorByDeepLinkDictionary,
366
+ defaultIssuingType: VCLIssuingType.Career
370
367
  )
371
368
  )
372
369
  }
@@ -380,9 +377,9 @@ func dictionaryToCredentialManifestDescriptorByService(
380
377
  service: dictionaryToServiceCredentialAgentIssuer(
381
378
  credentialManifestDescriptorByServiceDictionary["service"] as? [String : Any]
382
379
  ),
383
- serviceType: dictionaryToServiceType(
384
- serviceTypeDictionary: credentialManifestDescriptorByServiceDictionary,
385
- defaultServiceType: VCLServiceType.Issuer
380
+ issuingType: dictionaryToIssuingType(
381
+ issuingTypeDictionary: credentialManifestDescriptorByServiceDictionary,
382
+ defaultIssuingType: VCLIssuingType.Career
386
383
  ),
387
384
  credentialTypes: credentialManifestDescriptorByServiceDictionary["credentialTypes"] as? [String],
388
385
  pushDelegate: pushDelegate
@@ -396,10 +393,6 @@ func dictionaryToCredentialManifestDescriptorRefresh(
396
393
  service: dictionaryToServiceCredentialAgentIssuer(
397
394
  credentialManifestDescriptorRefreshDictionary["service"] as? [String : Any]
398
395
  ),
399
- serviceType: dictionaryToServiceType(
400
- serviceTypeDictionary: credentialManifestDescriptorRefreshDictionary,
401
- defaultServiceType: VCLServiceType.Issuer
402
- ),
403
396
  credentialIds: credentialManifestDescriptorRefreshDictionary["credentialIds"] as? [String] ?? [String]()
404
397
  )
405
398
  }
@@ -521,12 +514,6 @@ func readableMapToCredentialTypesUIFormSchemaDescriptor(
521
514
  func dictionaryToVerifiedProfileDescriptor(
522
515
  _ verifiedProfileDescriptor: [String: Any]
523
516
  ) -> VCLVerifiedProfileDescriptor {
524
- if let serviceTypeStr = verifiedProfileDescriptor["serviceType"] as? String {
525
- return VCLVerifiedProfileDescriptor(
526
- did: (verifiedProfileDescriptor["did"] as? String) ?? "",
527
- serviceType: VCLServiceType.fromString(value: serviceTypeStr)
528
- )
529
- }
530
517
  return VCLVerifiedProfileDescriptor(did: (verifiedProfileDescriptor["did"] as? String) ?? "")
531
518
  }
532
519
 
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["VCLCredentialManifestDescriptor.ts"],"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 { VCLPushDelegate } from './VCLPushDelegate';\nimport type { VCLServiceType } from './VCLServiceType';\n\nexport interface VCLCredentialManifestDescriptor {\n serviceType?: VCLServiceType;\n credentialTypes?: string[];\n pushDelegate?: VCLPushDelegate;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["VCLCredentialManifestDescriptor.ts"],"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 { VCLPushDelegate } from './VCLPushDelegate';\nimport type { VCLIssuingType } from './VCLIssuingType';\n\nexport interface VCLCredentialManifestDescriptor {\n issuingType?: VCLIssuingType;\n credentialTypes?: string[];\n pushDelegate?: VCLPushDelegate;\n}\n"],"mappings":""}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.VCLIssuingType = void 0;
7
+ /**
8
+ * Created by Michael Avoyan.
9
+ *
10
+ * Copyright 2022 Velocity Career Labs inc.
11
+ * SPDX-License-Identifier: Apache-2.0
12
+ */
13
+ let VCLIssuingType;
14
+ exports.VCLIssuingType = VCLIssuingType;
15
+ (function (VCLIssuingType) {
16
+ VCLIssuingType["Career"] = "Career";
17
+ VCLIssuingType["Identity"] = "Identity";
18
+ VCLIssuingType["Refresh"] = "Refresh";
19
+ VCLIssuingType["Undefined"] = "Undefined";
20
+ })(VCLIssuingType || (exports.VCLIssuingType = VCLIssuingType = {}));
21
+ //# sourceMappingURL=VCLIssuingType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["VCLIssuingType"],"sources":["VCLIssuingType.ts"],"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 VCLIssuingType {\n Career = 'Career',\n Identity = 'Identity',\n Refresh = 'Refresh',\n Undefined = 'Undefined',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,cAAc;AAAA;AAAA,WAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,8BAAdA,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["VCLPresentationRequestDescriptor.ts"],"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 { VCLDeepLink } from './VCLDeepLink';\nimport type { VCLPushDelegate } from './VCLPushDelegate';\nimport type { VCLServiceType } from './VCLServiceType';\n\nexport interface VCLPresentationRequestDescriptor {\n deepLink: VCLDeepLink;\n serviceType?: VCLServiceType;\n pushDelegate?: VCLPushDelegate;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["VCLPresentationRequestDescriptor.ts"],"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 { VCLDeepLink } from './VCLDeepLink';\nimport type { VCLPushDelegate } from './VCLPushDelegate';\n\nexport interface VCLPresentationRequestDescriptor {\n deepLink: VCLDeepLink;\n pushDelegate?: VCLPushDelegate;\n}\n"],"mappings":""}
@@ -13,15 +13,11 @@ exports.VCLServiceType = void 0;
13
13
  let VCLServiceType;
14
14
  exports.VCLServiceType = VCLServiceType;
15
15
  (function (VCLServiceType) {
16
- VCLServiceType["Issuer"] = "Issuer";
17
16
  VCLServiceType["Inspector"] = "Inspector";
18
- VCLServiceType["TrustRoot"] = "TrustRoot";
19
- VCLServiceType["CareerIssuer"] = "CareerIssuer";
20
- VCLServiceType["NodeOperator"] = "NodeOperator";
21
- VCLServiceType["NotaryIssuer"] = "NotaryIssuer";
17
+ VCLServiceType["Issuer"] = "Issuer";
22
18
  VCLServiceType["IdentityIssuer"] = "IdentityIssuer";
23
- VCLServiceType["HolderAppProvider"] = "HolderAppProvider";
24
- VCLServiceType["CredentialAgentOperator"] = "CredentialAgentOperator";
19
+ VCLServiceType["NotaryIssuer"] = "NotaryIssuer";
20
+ VCLServiceType["CareerIssuer"] = "CareerIssuer";
25
21
  VCLServiceType["Undefined"] = "Undefined";
26
22
  })(VCLServiceType || (exports.VCLServiceType = VCLServiceType = {}));
27
23
  //# sourceMappingURL=VCLServiceType.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["VCLServiceType"],"sources":["VCLServiceType.ts"],"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 VCLServiceType {\n Issuer = 'Issuer',\n Inspector = 'Inspector',\n TrustRoot = 'TrustRoot',\n CareerIssuer = 'CareerIssuer',\n NodeOperator = 'NodeOperator',\n NotaryIssuer = 'NotaryIssuer',\n IdentityIssuer = 'IdentityIssuer',\n HolderAppProvider = 'HolderAppProvider',\n CredentialAgentOperator = 'CredentialAgentOperator',\n Undefined = 'Undefined',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,cAAc;AAAA;AAAA,WAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,8BAAdA,cAAc"}
1
+ {"version":3,"names":["VCLServiceType"],"sources":["VCLServiceType.ts"],"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 VCLServiceType {\n Inspector = 'Inspector',\n Issuer = 'Issuer',\n IdentityIssuer = 'IdentityIssuer',\n NotaryIssuer = 'NotaryIssuer',\n CareerIssuer = 'CareerIssuer',\n Undefined = 'Undefined',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,cAAc;AAAA;AAAA,WAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,8BAAdA,cAAc"}
@@ -1,6 +1,2 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
2
  //# sourceMappingURL=VCLVerifiedProfileDescriptor.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["VCLVerifiedProfileDescriptor.ts"],"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 { VCLServiceType } from './VCLServiceType';\n\nexport interface VCLVerifiedProfileDescriptor {\n did: string;\n serviceType?: VCLServiceType;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["VCLVerifiedProfileDescriptor.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport interface VCLVerifiedProfileDescriptor {\n did: string;\n}\n"],"mappings":""}
@@ -21,6 +21,12 @@ Object.defineProperty(exports, "VCLErrorCode", {
21
21
  return _VCLErrorCode.VCLErrorCode;
22
22
  }
23
23
  });
24
+ Object.defineProperty(exports, "VCLIssuingType", {
25
+ enumerable: true,
26
+ get: function () {
27
+ return _VCLIssuingType.VCLIssuingType;
28
+ }
29
+ });
24
30
  Object.defineProperty(exports, "VCLServiceType", {
25
31
  enumerable: true,
26
32
  get: function () {
@@ -32,6 +38,7 @@ var _VCLApi = require("./api/VCLApi");
32
38
  var _VCLEnvironment = require("./api/VCLEnvironment");
33
39
  var _VCLCountries = require("./api/entities/VCLCountries");
34
40
  var _VCLServiceType = require("./api/entities/VCLServiceType");
41
+ var _VCLIssuingType = require("./api/entities/VCLIssuingType");
35
42
  var _VCLErrorCode = require("./api/entities/VCLErrorCode");
36
43
  /**
37
44
  * Created by Michael Avoyan.
@@ -1 +1 @@
1
- {"version":3,"names":["VclApi"],"sources":["index.tsx"],"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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;AAEA;AAGA;AAiCA;AAWA;AAxDA;AACA;AACA;AACA;AACA;AACA;AALA,eA2DeA,cAAM;AAAA"}
1
+ {"version":3,"names":["VclApi"],"sources":["index.tsx"],"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 { VCLServiceTypes } from './api/entities/VCLServiceTypes';\nimport { VCLIssuingType } from './api/entities/VCLIssuingType';\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 VCLServiceTypes,\n VCLIssuingType,\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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;AAEA;AAGA;AAiCA;AAEA;AAWA;AA1DA;AACA;AACA;AACA;AACA;AACA;AALA,eA6DeA,cAAM;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["VCLCredentialManifestDescriptor.ts"],"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 { VCLPushDelegate } from './VCLPushDelegate';\nimport type { VCLServiceType } from './VCLServiceType';\n\nexport interface VCLCredentialManifestDescriptor {\n serviceType?: VCLServiceType;\n credentialTypes?: string[];\n pushDelegate?: VCLPushDelegate;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["VCLCredentialManifestDescriptor.ts"],"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 { VCLPushDelegate } from './VCLPushDelegate';\nimport type { VCLIssuingType } from './VCLIssuingType';\n\nexport interface VCLCredentialManifestDescriptor {\n issuingType?: VCLIssuingType;\n credentialTypes?: string[];\n pushDelegate?: VCLPushDelegate;\n}\n"],"mappings":""}
@@ -0,0 +1,15 @@
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 let VCLIssuingType;
9
+ (function (VCLIssuingType) {
10
+ VCLIssuingType["Career"] = "Career";
11
+ VCLIssuingType["Identity"] = "Identity";
12
+ VCLIssuingType["Refresh"] = "Refresh";
13
+ VCLIssuingType["Undefined"] = "Undefined";
14
+ })(VCLIssuingType || (VCLIssuingType = {}));
15
+ //# sourceMappingURL=VCLIssuingType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["VCLIssuingType"],"sources":["VCLIssuingType.ts"],"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 VCLIssuingType {\n Career = 'Career',\n Identity = 'Identity',\n Refresh = 'Refresh',\n Undefined = 'Undefined',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,cAAc;AAKzB,WALWA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,KAAdA,cAAc"}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["VCLPresentationRequestDescriptor.ts"],"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 { VCLDeepLink } from './VCLDeepLink';\nimport type { VCLPushDelegate } from './VCLPushDelegate';\nimport type { VCLServiceType } from './VCLServiceType';\n\nexport interface VCLPresentationRequestDescriptor {\n deepLink: VCLDeepLink;\n serviceType?: VCLServiceType;\n pushDelegate?: VCLPushDelegate;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["VCLPresentationRequestDescriptor.ts"],"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 { VCLDeepLink } from './VCLDeepLink';\nimport type { VCLPushDelegate } from './VCLPushDelegate';\n\nexport interface VCLPresentationRequestDescriptor {\n deepLink: VCLDeepLink;\n pushDelegate?: VCLPushDelegate;\n}\n"],"mappings":""}
@@ -7,15 +7,11 @@
7
7
 
8
8
  export let VCLServiceType;
9
9
  (function (VCLServiceType) {
10
- VCLServiceType["Issuer"] = "Issuer";
11
10
  VCLServiceType["Inspector"] = "Inspector";
12
- VCLServiceType["TrustRoot"] = "TrustRoot";
13
- VCLServiceType["CareerIssuer"] = "CareerIssuer";
14
- VCLServiceType["NodeOperator"] = "NodeOperator";
15
- VCLServiceType["NotaryIssuer"] = "NotaryIssuer";
11
+ VCLServiceType["Issuer"] = "Issuer";
16
12
  VCLServiceType["IdentityIssuer"] = "IdentityIssuer";
17
- VCLServiceType["HolderAppProvider"] = "HolderAppProvider";
18
- VCLServiceType["CredentialAgentOperator"] = "CredentialAgentOperator";
13
+ VCLServiceType["NotaryIssuer"] = "NotaryIssuer";
14
+ VCLServiceType["CareerIssuer"] = "CareerIssuer";
19
15
  VCLServiceType["Undefined"] = "Undefined";
20
16
  })(VCLServiceType || (VCLServiceType = {}));
21
17
  //# sourceMappingURL=VCLServiceType.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["VCLServiceType"],"sources":["VCLServiceType.ts"],"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 VCLServiceType {\n Issuer = 'Issuer',\n Inspector = 'Inspector',\n TrustRoot = 'TrustRoot',\n CareerIssuer = 'CareerIssuer',\n NodeOperator = 'NodeOperator',\n NotaryIssuer = 'NotaryIssuer',\n IdentityIssuer = 'IdentityIssuer',\n HolderAppProvider = 'HolderAppProvider',\n CredentialAgentOperator = 'CredentialAgentOperator',\n Undefined = 'Undefined',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,cAAc;AAWzB,WAXWA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,KAAdA,cAAc"}
1
+ {"version":3,"names":["VCLServiceType"],"sources":["VCLServiceType.ts"],"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 VCLServiceType {\n Inspector = 'Inspector',\n Issuer = 'Issuer',\n IdentityIssuer = 'IdentityIssuer',\n NotaryIssuer = 'NotaryIssuer',\n CareerIssuer = 'CareerIssuer',\n Undefined = 'Undefined',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,cAAc;AAOzB,WAPWA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;AAAA,GAAdA,cAAc,KAAdA,cAAc"}
@@ -1,2 +1,2 @@
1
- export {};
1
+
2
2
  //# sourceMappingURL=VCLVerifiedProfileDescriptor.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["VCLVerifiedProfileDescriptor.ts"],"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 { VCLServiceType } from './VCLServiceType';\n\nexport interface VCLVerifiedProfileDescriptor {\n did: string;\n serviceType?: VCLServiceType;\n}\n"],"mappings":""}
1
+ {"version":3,"names":[],"sources":["VCLVerifiedProfileDescriptor.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport interface VCLVerifiedProfileDescriptor {\n did: string;\n}\n"],"mappings":""}
@@ -9,7 +9,8 @@ import { VclApi } from './api/VCLApi';
9
9
  import { VCLEnvTypes } from './api/VCLEnvironment';
10
10
  import { VCLCountryCodes } from './api/entities/VCLCountries';
11
11
  import { VCLServiceType } from './api/entities/VCLServiceType';
12
+ import { VCLIssuingType } from './api/entities/VCLIssuingType';
12
13
  import { VCLErrorCode } from './api/entities/VCLErrorCode';
13
14
  export default VclApi;
14
- export { VCLEnvTypes, VCLCountryCodes, VCLServiceType, VCLErrorCode };
15
+ export { VCLEnvTypes, VCLCountryCodes, VCLServiceType, VCLIssuingType, VCLErrorCode };
15
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["VclApi","VCLEnvTypes","VCLCountryCodes","VCLServiceType","VCLErrorCode"],"sources":["index.tsx"],"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"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,cAAc;AAErC,SAASC,WAAW,QAAQ,sBAAsB;AAGlD,SAASC,eAAe,QAAQ,6BAA6B;AAiC7D,SAASC,cAAc,QAAQ,+BAA+B;AAW9D,SAASC,YAAY,QAAQ,6BAA6B;AAG1D,eAAeJ,MAAM;AACrB,SAGEC,WAAW,EAGXC,eAAe,EAiCfC,cAAc,EAUdC,YAAY"}
1
+ {"version":3,"names":["VclApi","VCLEnvTypes","VCLCountryCodes","VCLServiceType","VCLIssuingType","VCLErrorCode"],"sources":["index.tsx"],"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 { VCLServiceTypes } from './api/entities/VCLServiceTypes';\nimport { VCLIssuingType } from './api/entities/VCLIssuingType';\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 VCLServiceTypes,\n VCLIssuingType,\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"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,cAAc;AAErC,SAASC,WAAW,QAAQ,sBAAsB;AAGlD,SAASC,eAAe,QAAQ,6BAA6B;AAiC7D,SAASC,cAAc,QAAQ,+BAA+B;AAE9D,SAASC,cAAc,QAAQ,+BAA+B;AAW9D,SAASC,YAAY,QAAQ,6BAA6B;AAG1D,eAAeL,MAAM;AACrB,SAGEC,WAAW,EAGXC,eAAe,EAiCfC,cAAc,EAEdC,cAAc,EAUdC,YAAY"}
@@ -5,9 +5,9 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
  import type { VCLPushDelegate } from './VCLPushDelegate';
8
- import type { VCLServiceType } from './VCLServiceType';
8
+ import type { VCLIssuingType } from './VCLIssuingType';
9
9
  export interface VCLCredentialManifestDescriptor {
10
- serviceType?: VCLServiceType;
10
+ issuingType?: VCLIssuingType;
11
11
  credentialTypes?: string[];
12
12
  pushDelegate?: VCLPushDelegate;
13
13
  }
@@ -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 enum VCLIssuingType {
8
+ Career = "Career",
9
+ Identity = "Identity",
10
+ Refresh = "Refresh",
11
+ Undefined = "Undefined"
12
+ }
@@ -6,9 +6,7 @@
6
6
  */
7
7
  import type { VCLDeepLink } from './VCLDeepLink';
8
8
  import type { VCLPushDelegate } from './VCLPushDelegate';
9
- import type { VCLServiceType } from './VCLServiceType';
10
9
  export interface VCLPresentationRequestDescriptor {
11
10
  deepLink: VCLDeepLink;
12
- serviceType?: VCLServiceType;
13
11
  pushDelegate?: VCLPushDelegate;
14
12
  }
@@ -5,14 +5,10 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
  export declare enum VCLServiceType {
8
- Issuer = "Issuer",
9
8
  Inspector = "Inspector",
10
- TrustRoot = "TrustRoot",
11
- CareerIssuer = "CareerIssuer",
12
- NodeOperator = "NodeOperator",
13
- NotaryIssuer = "NotaryIssuer",
9
+ Issuer = "Issuer",
14
10
  IdentityIssuer = "IdentityIssuer",
15
- HolderAppProvider = "HolderAppProvider",
16
- CredentialAgentOperator = "CredentialAgentOperator",
11
+ NotaryIssuer = "NotaryIssuer",
12
+ CareerIssuer = "CareerIssuer",
17
13
  Undefined = "Undefined"
18
14
  }
@@ -4,8 +4,6 @@
4
4
  * Copyright 2022 Velocity Career Labs inc.
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
- import type { VCLServiceType } from './VCLServiceType';
8
7
  export interface VCLVerifiedProfileDescriptor {
9
8
  did: string;
10
- serviceType?: VCLServiceType;
11
9
  }
@@ -43,6 +43,8 @@ import type { VCLPushDelegate } from './api/entities/VCLPushDelegate';
43
43
  import type { VCLService } from './api/entities/VCLService';
44
44
  import type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';
45
45
  import { VCLServiceType } from './api/entities/VCLServiceType';
46
+ import type { VCLServiceTypes } from './api/entities/VCLServiceTypes';
47
+ import { VCLIssuingType } from './api/entities/VCLIssuingType';
46
48
  import type { VCLSubmissionResult } from './api/entities/VCLSubmissionResult';
47
49
  import type { VCLToken } from './api/entities/VCLToken';
48
50
  import type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCredential';
@@ -56,4 +58,4 @@ import type { VCLDidJwk } from './api/entities/VCLDidJwk';
56
58
  import { VCLErrorCode } from './api/entities/VCLErrorCode';
57
59
  import type { VCLError, toVclError } from './api/entities/VCLError';
58
60
  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, };
61
+ 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, VCLServiceTypes, VCLIssuingType, 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.7.0",
3
+ "version": "1.8.1",
4
4
  "description": "Velocity Career Labs React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -6,10 +6,10 @@
6
6
  */
7
7
 
8
8
  import type { VCLPushDelegate } from './VCLPushDelegate';
9
- import type { VCLServiceType } from './VCLServiceType';
9
+ import type { VCLIssuingType } from './VCLIssuingType';
10
10
 
11
11
  export interface VCLCredentialManifestDescriptor {
12
- serviceType?: VCLServiceType;
12
+ issuingType?: VCLIssuingType;
13
13
  credentialTypes?: string[];
14
14
  pushDelegate?: VCLPushDelegate;
15
15
  }
@@ -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
+ export enum VCLIssuingType {
9
+ Career = 'Career',
10
+ Identity = 'Identity',
11
+ Refresh = 'Refresh',
12
+ Undefined = 'Undefined',
13
+ }
@@ -7,10 +7,8 @@
7
7
 
8
8
  import type { VCLDeepLink } from './VCLDeepLink';
9
9
  import type { VCLPushDelegate } from './VCLPushDelegate';
10
- import type { VCLServiceType } from './VCLServiceType';
11
10
 
12
11
  export interface VCLPresentationRequestDescriptor {
13
12
  deepLink: VCLDeepLink;
14
- serviceType?: VCLServiceType;
15
13
  pushDelegate?: VCLPushDelegate;
16
14
  }
@@ -6,14 +6,10 @@
6
6
  */
7
7
 
8
8
  export enum VCLServiceType {
9
- Issuer = 'Issuer',
10
9
  Inspector = 'Inspector',
11
- TrustRoot = 'TrustRoot',
12
- CareerIssuer = 'CareerIssuer',
13
- NodeOperator = 'NodeOperator',
14
- NotaryIssuer = 'NotaryIssuer',
10
+ Issuer = 'Issuer',
15
11
  IdentityIssuer = 'IdentityIssuer',
16
- HolderAppProvider = 'HolderAppProvider',
17
- CredentialAgentOperator = 'CredentialAgentOperator',
12
+ NotaryIssuer = 'NotaryIssuer',
13
+ CareerIssuer = 'CareerIssuer',
18
14
  Undefined = 'Undefined',
19
15
  }
@@ -5,9 +5,6 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
 
8
- import type { VCLServiceType } from './VCLServiceType';
9
-
10
8
  export interface VCLVerifiedProfileDescriptor {
11
9
  did: string;
12
- serviceType?: VCLServiceType;
13
10
  }
package/src/index.tsx CHANGED
@@ -44,6 +44,8 @@ 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';
46
46
  import { VCLServiceType } from './api/entities/VCLServiceType';
47
+ import type { VCLServiceTypes } from './api/entities/VCLServiceTypes';
48
+ import { VCLIssuingType } from './api/entities/VCLIssuingType';
47
49
  import type { VCLSubmissionResult } from './api/entities/VCLSubmissionResult';
48
50
  import type { VCLToken } from './api/entities/VCLToken';
49
51
  import type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCredential';
@@ -98,6 +100,8 @@ export {
98
100
  VCLService,
99
101
  VCLServiceCredentialAgentIssuer,
100
102
  VCLServiceType,
103
+ VCLServiceTypes,
104
+ VCLIssuingType,
101
105
  VCLSubmissionResult,
102
106
  VCLToken,
103
107
  VCLVerifiableCredential,
@@ -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.7.0"
21
+ s.dependency "VCL", "1.8.0"
22
22
  end