@velocitycareerlabs/vcl-react-native 1.5.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +23 -6
- package/ios/Utils/Converter.swift +24 -6
- package/lib/commonjs/api/Dictionary.js.map +1 -1
- package/lib/commonjs/api/VCLApi.js +1 -3
- package/lib/commonjs/api/VCLApi.js.map +1 -1
- package/lib/commonjs/api/VCLEnvironment.js +0 -2
- package/lib/commonjs/api/VCLEnvironment.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCountries.js +0 -2
- package/lib/commonjs/api/entities/VCLCountries.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCountry.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCredentialManifest.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptor.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCredentialType.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCredentialTypeSchema.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCredentialTypeSchemas.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCredentialTypes.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -1
- package/lib/commonjs/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -1
- package/lib/commonjs/api/entities/VCLDeepLink.js.map +1 -1
- package/lib/commonjs/api/entities/VCLDidJwk.js.map +1 -1
- package/lib/commonjs/api/entities/VCLError.js +4 -10
- package/lib/commonjs/api/entities/VCLError.js.map +1 -1
- package/lib/commonjs/api/entities/VCLErrorCode.js +0 -2
- package/lib/commonjs/api/entities/VCLErrorCode.js.map +1 -1
- package/lib/commonjs/api/entities/VCLExchange.js.map +1 -1
- package/lib/commonjs/api/entities/VCLExchangeDescriptor.js.map +1 -1
- package/lib/commonjs/api/entities/VCLFilter.js.map +1 -1
- package/lib/commonjs/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -1
- package/lib/commonjs/api/entities/VCLGenerateOffersDescriptor.js.map +1 -1
- package/lib/commonjs/api/entities/VCLInitializationDescriptor.js.map +1 -1
- package/lib/commonjs/api/entities/VCLJwkPublic.js.map +1 -1
- package/lib/commonjs/api/entities/VCLJwt.js.map +1 -1
- package/lib/commonjs/api/entities/VCLJwtDescriptor.js.map +1 -1
- package/lib/commonjs/api/entities/VCLJwtVerifiableCredentials.js.map +1 -1
- package/lib/commonjs/api/entities/VCLOffers.js.map +1 -1
- package/lib/commonjs/api/entities/VCLOrganization.js.map +1 -1
- package/lib/commonjs/api/entities/VCLOrganizations.js.map +1 -1
- package/lib/commonjs/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -1
- package/lib/commonjs/api/entities/VCLPage.js.map +1 -1
- package/lib/commonjs/api/entities/VCLPresentationRequest.js.map +1 -1
- package/lib/commonjs/api/entities/VCLPresentationRequestDescriptor.js.map +1 -1
- package/lib/commonjs/api/entities/VCLPresentationSubmission.js.map +1 -1
- package/lib/commonjs/api/entities/VCLPushDelegate.js.map +1 -1
- package/lib/commonjs/api/entities/VCLRegion.js.map +1 -1
- package/lib/commonjs/api/entities/VCLRegions.js.map +1 -1
- package/lib/commonjs/api/entities/VCLService.js.map +1 -1
- package/lib/commonjs/api/entities/VCLServiceCredentialAgentIssuer.js.map +1 -1
- package/lib/commonjs/api/entities/VCLServiceType.js +0 -2
- package/lib/commonjs/api/entities/VCLServiceType.js.map +1 -1
- package/lib/commonjs/api/entities/VCLServiceTypes.js.map +1 -1
- package/lib/commonjs/api/entities/VCLSubmissionResult.js.map +1 -1
- package/lib/commonjs/api/entities/VCLToken.js.map +1 -1
- package/lib/commonjs/api/entities/VCLVerifiableCredential.js.map +1 -1
- package/lib/commonjs/api/entities/VCLVerifiedProfile.js.map +1 -1
- package/lib/commonjs/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -1
- package/lib/commonjs/index.js +0 -6
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/api/Dictionary.js.map +1 -1
- package/lib/module/api/VCLApi.js +1 -0
- package/lib/module/api/VCLApi.js.map +1 -1
- package/lib/module/api/VCLEnvironment.js +1 -1
- package/lib/module/api/VCLEnvironment.js.map +1 -1
- package/lib/module/api/entities/VCLCountries.js +1 -1
- package/lib/module/api/entities/VCLCountries.js.map +1 -1
- package/lib/module/api/entities/VCLCountry.js.map +1 -1
- package/lib/module/api/entities/VCLCredentialManifest.js.map +1 -1
- package/lib/module/api/entities/VCLCredentialManifestDescriptor.js.map +1 -1
- package/lib/module/api/entities/VCLCredentialManifestDescriptorByDeepLink.js.map +1 -1
- package/lib/module/api/entities/VCLCredentialManifestDescriptorByService.js.map +1 -1
- package/lib/module/api/entities/VCLCredentialManifestDescriptorRefresh.js.map +1 -1
- package/lib/module/api/entities/VCLCredentialType.js.map +1 -1
- package/lib/module/api/entities/VCLCredentialTypeSchema.js.map +1 -1
- package/lib/module/api/entities/VCLCredentialTypeSchemas.js.map +1 -1
- package/lib/module/api/entities/VCLCredentialTypes.js.map +1 -1
- package/lib/module/api/entities/VCLCredentialTypesUIFormSchema.js.map +1 -1
- package/lib/module/api/entities/VCLCredentialTypesUIFormSchemaDescriptor.js.map +1 -1
- package/lib/module/api/entities/VCLDeepLink.js.map +1 -1
- package/lib/module/api/entities/VCLDidJwk.js.map +1 -1
- package/lib/module/api/entities/VCLError.js +4 -6
- package/lib/module/api/entities/VCLError.js.map +1 -1
- package/lib/module/api/entities/VCLErrorCode.js +1 -1
- package/lib/module/api/entities/VCLErrorCode.js.map +1 -1
- package/lib/module/api/entities/VCLExchange.js.map +1 -1
- package/lib/module/api/entities/VCLExchangeDescriptor.js.map +1 -1
- package/lib/module/api/entities/VCLFilter.js.map +1 -1
- package/lib/module/api/entities/VCLFinalizeOffersDescriptor.js.map +1 -1
- package/lib/module/api/entities/VCLGenerateOffersDescriptor.js.map +1 -1
- package/lib/module/api/entities/VCLInitializationDescriptor.js.map +1 -1
- package/lib/module/api/entities/VCLJwkPublic.js.map +1 -1
- package/lib/module/api/entities/VCLJwt.js.map +1 -1
- package/lib/module/api/entities/VCLJwtDescriptor.js.map +1 -1
- package/lib/module/api/entities/VCLJwtVerifiableCredentials.js.map +1 -1
- package/lib/module/api/entities/VCLOffers.js.map +1 -1
- package/lib/module/api/entities/VCLOrganization.js.map +1 -1
- package/lib/module/api/entities/VCLOrganizations.js.map +1 -1
- package/lib/module/api/entities/VCLOrganizationsSearchDescriptor.js.map +1 -1
- package/lib/module/api/entities/VCLPage.js.map +1 -1
- package/lib/module/api/entities/VCLPresentationRequest.js.map +1 -1
- package/lib/module/api/entities/VCLPresentationRequestDescriptor.js.map +1 -1
- package/lib/module/api/entities/VCLPresentationSubmission.js.map +1 -1
- package/lib/module/api/entities/VCLPushDelegate.js.map +1 -1
- package/lib/module/api/entities/VCLRegion.js.map +1 -1
- package/lib/module/api/entities/VCLRegions.js.map +1 -1
- package/lib/module/api/entities/VCLService.js.map +1 -1
- package/lib/module/api/entities/VCLServiceCredentialAgentIssuer.js.map +1 -1
- package/lib/module/api/entities/VCLServiceType.js +1 -1
- package/lib/module/api/entities/VCLServiceType.js.map +1 -1
- package/lib/module/api/entities/VCLServiceTypes.js.map +1 -1
- package/lib/module/api/entities/VCLSubmissionResult.js.map +1 -1
- package/lib/module/api/entities/VCLToken.js.map +1 -1
- package/lib/module/api/entities/VCLVerifiableCredential.js.map +1 -1
- package/lib/module/api/entities/VCLVerifiedProfile.js.map +1 -1
- package/lib/module/api/entities/VCLVerifiedProfileDescriptor.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/api/entities/VCLCredentialManifestDescriptor.d.ts +1 -1
- package/lib/typescript/api/entities/VCLPresentationRequestDescriptor.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/entities/VCLCredentialManifestDescriptor.ts +1 -1
- package/src/api/entities/VCLPresentationRequestDescriptor.ts +1 -1
- package/vcl-react-native.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -135,7 +135,10 @@ object Converter {
|
|
|
135
135
|
fun mapTopPresentationRequestDescriptor(presentationRequestDescriptorLinkMap: ReadableMap) =
|
|
136
136
|
VCLPresentationRequestDescriptor(
|
|
137
137
|
deepLink = mapToDeepLink(presentationRequestDescriptorLinkMap.getMapOpt("deepLink")),
|
|
138
|
-
serviceType = mapToServiceType(
|
|
138
|
+
serviceType = mapToServiceType(
|
|
139
|
+
presentationRequestDescriptorLinkMap,
|
|
140
|
+
VCLServiceType.Inspector
|
|
141
|
+
),
|
|
139
142
|
pushDelegate = mapToPushDelegate(presentationRequestDescriptorLinkMap.getMapOpt("pushDelegate"))
|
|
140
143
|
)
|
|
141
144
|
|
|
@@ -148,8 +151,13 @@ object Converter {
|
|
|
148
151
|
return retVal
|
|
149
152
|
}
|
|
150
153
|
|
|
151
|
-
fun mapToServiceType(
|
|
152
|
-
|
|
154
|
+
fun mapToServiceType(
|
|
155
|
+
serviceTypeMap: ReadableMap,
|
|
156
|
+
defaultServiceType: VCLServiceType
|
|
157
|
+
) =
|
|
158
|
+
serviceTypeMap.getStringOpt("serviceType")?.let { serviceType ->
|
|
159
|
+
VCLServiceType.fromString(serviceType)
|
|
160
|
+
} ?: defaultServiceType
|
|
153
161
|
|
|
154
162
|
fun mapToToken(tokenMap: ReadableMap?) =
|
|
155
163
|
VCLToken(tokenMap?.getStringOpt("value") ?: "")
|
|
@@ -382,7 +390,10 @@ object Converter {
|
|
|
382
390
|
): VCLCredentialManifestDescriptorByDeepLink {
|
|
383
391
|
return VCLCredentialManifestDescriptorByDeepLink(
|
|
384
392
|
mapToDeepLink(credentialManifestDescriptorByDeepLinkMap.getMapOpt("deepLink")),
|
|
385
|
-
mapToServiceType(
|
|
393
|
+
mapToServiceType(
|
|
394
|
+
credentialManifestDescriptorByDeepLinkMap,
|
|
395
|
+
VCLServiceType.Issuer
|
|
396
|
+
)
|
|
386
397
|
)
|
|
387
398
|
}
|
|
388
399
|
|
|
@@ -395,7 +406,10 @@ object Converter {
|
|
|
395
406
|
service = mapToServiceCredentialAgentIssuer(
|
|
396
407
|
credentialManifestDescriptorByServiceMap.getMapOpt("service")
|
|
397
408
|
),
|
|
398
|
-
serviceType = mapToServiceType(
|
|
409
|
+
serviceType = mapToServiceType(
|
|
410
|
+
credentialManifestDescriptorByServiceMap,
|
|
411
|
+
VCLServiceType.Issuer
|
|
412
|
+
),
|
|
399
413
|
credentialTypes =
|
|
400
414
|
(credentialManifestDescriptorByServiceMap.getArrayOpt("credentialTypes")?.toArrayList()
|
|
401
415
|
?.toList() as? List<String>),
|
|
@@ -410,7 +424,10 @@ object Converter {
|
|
|
410
424
|
service = mapToServiceCredentialAgentIssuer(
|
|
411
425
|
credentialManifestDescriptorRefreshMap.getMapOpt("service")
|
|
412
426
|
),
|
|
413
|
-
serviceType = mapToServiceType(
|
|
427
|
+
serviceType = mapToServiceType(
|
|
428
|
+
credentialManifestDescriptorRefreshMap,
|
|
429
|
+
VCLServiceType.Issuer
|
|
430
|
+
),
|
|
414
431
|
credentialIds = credentialManifestDescriptorRefreshMap.getArrayOpt("credentialIds")
|
|
415
432
|
?.toArrayList()?.toList() as? List<String> ?: listOf()
|
|
416
433
|
)
|
|
@@ -133,7 +133,10 @@ func dictionaryTopPresentationRequestDescriptor(
|
|
|
133
133
|
) -> VCLPresentationRequestDescriptor {
|
|
134
134
|
return VCLPresentationRequestDescriptor(
|
|
135
135
|
deepLink: dictionaryToDeepLink(presentationRequestDescriptorLinkDictionary["deepLink"] as? [String: Any]),
|
|
136
|
-
serviceType: dictionaryToServiceType(
|
|
136
|
+
serviceType: dictionaryToServiceType(
|
|
137
|
+
serviceTypeDictionary: presentationRequestDescriptorLinkDictionary,
|
|
138
|
+
defaultServiceType: VCLServiceType.Inspector
|
|
139
|
+
),
|
|
137
140
|
pushDelegate: dictionaryToPushDelegate(presentationRequestDescriptorLinkDictionary["pushDelegate"] as? [String: Any])
|
|
138
141
|
)
|
|
139
142
|
}
|
|
@@ -154,8 +157,14 @@ func tokenToDictionary(_ token: VCLToken) -> [String: Any] {
|
|
|
154
157
|
return ["value": token.value]
|
|
155
158
|
}
|
|
156
159
|
|
|
157
|
-
func dictionaryToServiceType(
|
|
158
|
-
|
|
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)
|
|
166
|
+
}
|
|
167
|
+
return defaultServiceType
|
|
159
168
|
}
|
|
160
169
|
|
|
161
170
|
func dictionaryToPresentationRequest(
|
|
@@ -355,7 +364,10 @@ func dictionaryToCredentialManifestDescriptorByDeepLink(
|
|
|
355
364
|
deepLink: dictionaryToDeepLink(
|
|
356
365
|
credentialManifestDescriptorByDeepLinkDictionary["deepLink"] as? [String : Any]
|
|
357
366
|
),
|
|
358
|
-
serviceType: dictionaryToServiceType(
|
|
367
|
+
serviceType: dictionaryToServiceType(
|
|
368
|
+
serviceTypeDictionary: credentialManifestDescriptorByDeepLinkDictionary,
|
|
369
|
+
defaultServiceType: VCLServiceType.Issuer
|
|
370
|
+
)
|
|
359
371
|
)
|
|
360
372
|
}
|
|
361
373
|
|
|
@@ -368,7 +380,10 @@ func dictionaryToCredentialManifestDescriptorByService(
|
|
|
368
380
|
service: dictionaryToServiceCredentialAgentIssuer(
|
|
369
381
|
credentialManifestDescriptorByServiceDictionary["service"] as? [String : Any]
|
|
370
382
|
),
|
|
371
|
-
serviceType: dictionaryToServiceType(
|
|
383
|
+
serviceType: dictionaryToServiceType(
|
|
384
|
+
serviceTypeDictionary: credentialManifestDescriptorByServiceDictionary,
|
|
385
|
+
defaultServiceType: VCLServiceType.Issuer
|
|
386
|
+
),
|
|
372
387
|
credentialTypes: credentialManifestDescriptorByServiceDictionary["credentialTypes"] as? [String],
|
|
373
388
|
pushDelegate: pushDelegate
|
|
374
389
|
)
|
|
@@ -381,7 +396,10 @@ func dictionaryToCredentialManifestDescriptorRefresh(
|
|
|
381
396
|
service: dictionaryToServiceCredentialAgentIssuer(
|
|
382
397
|
credentialManifestDescriptorRefreshDictionary["service"] as? [String : Any]
|
|
383
398
|
),
|
|
384
|
-
serviceType: dictionaryToServiceType(
|
|
399
|
+
serviceType: dictionaryToServiceType(
|
|
400
|
+
serviceTypeDictionary: credentialManifestDescriptorRefreshDictionary,
|
|
401
|
+
defaultServiceType: VCLServiceType.Issuer
|
|
402
|
+
),
|
|
385
403
|
credentialIds: credentialManifestDescriptorRefreshDictionary["credentialIds"] as? [String] ?? [String]()
|
|
386
404
|
)
|
|
387
405
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["Dictionary.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 type Dictionary<T> = {\n [key: string]: T;\n};\n"],"mappings":""}
|
|
@@ -4,17 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.VclApi = void 0;
|
|
7
|
-
|
|
8
7
|
var _VCLError = require("./entities/VCLError");
|
|
9
|
-
|
|
10
8
|
var _reactNative = require("react-native");
|
|
11
|
-
|
|
12
9
|
/**
|
|
13
10
|
* Created by Michael Avoyan.
|
|
14
11
|
*
|
|
15
12
|
* Copyright 2022 Velocity Career Labs inc.
|
|
16
13
|
* SPDX-License-Identifier: Apache-2.0
|
|
17
14
|
*/
|
|
15
|
+
|
|
18
16
|
const {
|
|
19
17
|
VclReactNative
|
|
20
18
|
} = _reactNative.NativeModules;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["VCLApi.ts"],"names":["VclReactNative","NativeModules","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":";;;;;;;AAiCA;;AAGA;;AApCA;AACA;AACA;AACA;AACA;AACA;AAgCA,MAAM;AAAEA,EAAAA;AAAF,IAAqBC,0BAA3B;AAEO,MAAMC,MAAM,GAAG;AACpBC,EAAAA,UAAU,EAAE,MACVC,wBADU,IAEQ;AAClB,QAAI;AACF,aAAO,MAAMJ,cAAc,CAACG,UAAf,CAA0BC,wBAA1B,CAAb;AACD,KAFD,CAEE,OAAOC,CAAP,EAAU;AACV,YAAM,0BAAWA,CAAX,CAAN;AACD;AACF,GATmB;AAWpBC,EAAAA,YAAY,EAAE,YAAmC;AAC/C,QAAI;AACF,aAAO,MAAMN,cAAc,CAACM,YAAf,EAAb;AACD,KAFD,CAEE,OAAOD,CAAP,EAAU;AACV,YAAM,0BAAWA,CAAX,CAAN;AACD;AACF,GAjBmB;AAmBpBE,EAAAA,kBAAkB,EAAE,YAAyC;AAC3D,QAAI;AACF,aAAO,MAAMP,cAAc,CAACO,kBAAf,EAAb;AACD,KAFD,CAEE,OAAOF,CAAP,EAAU;AACV,YAAM,0BAAWA,CAAX,CAAN;AACD;AACF,GAzBmB;AA2BpBG,EAAAA,wBAAwB,E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AO1B,CAAP,EAAU;AACV,YAAM,0BAAWA,CAAX,CAAN;AACD;AACF,GA7JmB;AA+JpB2B,EAAAA,iBAAiB,EAAE,MACjBC,aADiB,IAEG;AACpB,QAAI;AACF,aAAO,MAAMjC,cAAc,CAACgC,iBAAf,CAAiCC,aAAjC,CAAb;AACD,KAFD,CAEE,OAAO5B,CAAP,EAAU;AACV,YAAM,0BAAWA,CAAX,CAAN;AACD;AACF,GAvKmB;AAyKpB6B,EAAAA,cAAc,EAAE,YAAgC;AAC9C,QAAI;AACF,aAAO,MAAMlC,cAAc,CAACkC,cAAf,EAAb;AACD,KAFD,CAEE,OAAO7B,CAAP,EAAU;AACV,YAAM,0BAAWA,CAAX,CAAN;AACD;AACF;AA/KmB,CAAf","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"]}
|
|
1
|
+
{"version":3,"names":["VclReactNative","NativeModules","VclApi","initialize","initializationDescriptor","e","toVclError","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"],"sources":["VCLApi.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 { 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"],"mappings":";;;;;;AAiCA;AAGA;AApCA;AACA;AACA;AACA;AACA;AACA;;AAgCA,MAAM;EAAEA;AAAe,CAAC,GAAGC,0BAAa;AAEjC,MAAMC,MAAM,GAAG;EACpBC,UAAU,EAAE,MACVC,wBAAqD,IACnC;IAClB,IAAI;MACF,OAAO,MAAMJ,cAAc,CAACG,UAAU,CAACC,wBAAwB,C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I;MACF,OAAO,MAAM3B,cAAc,CAAC0B,8BAA8B,CACxDC,qCAAqC,CACtC;IACH,CAAC,CAAC,OAAOtB,CAAC,EAAE;MACV,MAAM,IAAAC,oBAAU,EAACD,CAAC,CAAC;IACrB;EACF,CAAC;EAEDuB,kBAAkB,EAAE,MAClBC,yBAAuD,IACvB;IAChC,IAAI;MACF,OAAO,MAAM7B,cAAc,CAAC4B,kBAAkB,CAACC,yBAAyB,CAAC;IAC3E,CAAC,CAAC,OAAOxB,CAAC,EAAE;MACV,MAAM,IAAAC,oBAAU,EAACD,CAAC,CAAC;IACrB;EACF,CAAC;EAEDyB,SAAS,EAAE,OAAOC,GAAW,EAAEC,SAAuB,KAAuB;IAC3E,IAAI;MACF,OAAO,MAAMhC,cAAc,CAAC8B,SAAS,CAACC,GAAG,EAAEC,SAAS,CAAC;IACvD,CAAC,CAAC,OAAO3B,CAAC,EAAE;MACV,MAAM,IAAAC,oBAAU,EAACD,CAAC,CAAC;IACrB;EACF,CAAC;EAED4B,iBAAiB,EAAE,MACjBC,aAA+B,IACX;IACpB,IAAI;MACF,OAAO,MAAMlC,cAAc,CAACiC,iBAAiB,CAACC,aAAa,CAAC;IAC9D,CAAC,CAAC,OAAO7B,CAAC,EAAE;MACV,MAAM,IAAAC,oBAAU,EAACD,CAAC,CAAC;IACrB;EACF,CAAC;EAED8B,cAAc,EAAE,YAAgC;IAC9C,IAAI;MACF,OAAO,MAAMnC,cAAc,CAACmC,cAAc,EAAE;IAC9C,CAAC,CAAC,OAAO9B,CAAC,EAAE;MACV,MAAM,IAAAC,oBAAU,EAACD,CAAC,CAAC;IACrB;EACF;AACF,CAAC;AAAC"}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.VCLEnvTypes = void 0;
|
|
7
|
-
|
|
8
7
|
/**
|
|
9
8
|
* Created by Michael Avoyan.
|
|
10
9
|
*
|
|
@@ -13,7 +12,6 @@ exports.VCLEnvTypes = void 0;
|
|
|
13
12
|
*/
|
|
14
13
|
let VCLEnvTypes;
|
|
15
14
|
exports.VCLEnvTypes = VCLEnvTypes;
|
|
16
|
-
|
|
17
15
|
(function (VCLEnvTypes) {
|
|
18
16
|
VCLEnvTypes["DEV"] = "dev";
|
|
19
17
|
VCLEnvTypes["STAGING"] = "staging";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["VCLEnvTypes"],"sources":["VCLEnvironment.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 VCLEnvironment {\n value: string;\n}\n\nexport enum VCLEnvTypes {\n DEV = 'dev',\n STAGING = 'staging',\n PROD = 'prod',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAWYA,WAAW;AAAA;AAAA,WAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;AAAA,GAAXA,WAAW,2BAAXA,WAAW"}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.VCLCountryCodes = void 0;
|
|
7
|
-
|
|
8
7
|
/**
|
|
9
8
|
* Created by Michael Avoyan.
|
|
10
9
|
*
|
|
@@ -13,7 +12,6 @@ exports.VCLCountryCodes = void 0;
|
|
|
13
12
|
*/
|
|
14
13
|
let VCLCountryCodes;
|
|
15
14
|
exports.VCLCountryCodes = VCLCountryCodes;
|
|
16
|
-
|
|
17
15
|
(function (VCLCountryCodes) {
|
|
18
16
|
VCLCountryCodes["BD"] = "BD";
|
|
19
17
|
VCLCountryCodes["BE"] = "BE";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["VCLCountryCodes"],"sources":["VCLCountries.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 { VCLCountry } from './VCLCountry';\n\nexport interface VCLCountries {\n all: VCLCountry[];\n}\n\nexport enum VCLCountryCodes {\n BD = 'BD',\n BE = 'BE',\n BF = 'BF',\n BG = 'BG',\n BA = 'BA',\n BB = 'BB',\n WF = 'WF',\n BL = 'BL',\n BM = 'BM',\n BN = 'BN',\n BO = 'BO',\n BH = 'BH',\n BI = 'BI',\n BJ = 'BJ',\n BT = 'BT',\n JM = 'JM',\n BV = 'BV',\n BW = 'BW',\n WS = 'WS',\n BQ = 'BQ',\n BR = 'BR',\n BS = 'BS',\n JE = 'JE',\n BY = 'BY',\n BZ = 'BZ',\n RU = 'RU',\n RW = 'RW',\n RS = 'RS',\n TL = 'TL',\n RE = 'RE',\n TM = 'TM',\n TJ = 'TJ',\n RO = 'RO',\n TK = 'TK',\n GW = 'GW',\n GU = 'GU',\n GT = 'GT',\n GS = 'GS',\n GR = 'GR',\n GQ = 'GQ',\n GP = 'GP',\n JP = 'JP',\n GY = 'GY',\n GG = 'GG',\n GF = 'GF',\n GE = 'GE',\n GD = 'GD',\n GB = 'GB',\n GA = 'GA',\n SV = 'SV',\n GN = 'GN',\n GM = 'GM',\n GL = 'GL',\n GI = 'GI',\n GH = 'GH',\n OM = 'OM',\n TN = 'TN',\n JO = 'JO',\n HR = 'HR',\n HT = 'HT',\n HU = 'HU',\n HK = 'HK',\n HN = 'HN',\n HM = 'HM',\n VE = 'VE',\n PR = 'PR',\n PS = 'PS',\n PW = 'PW',\n PT = 'PT',\n SJ = 'SJ',\n PY = 'PY',\n IQ = 'IQ',\n PA = 'PA',\n PF = 'PF',\n PG = 'PG',\n PE = 'PE',\n PK = 'PK',\n PH = 'PH',\n PN = 'PN',\n PL = 'PL',\n PM = 'PM',\n ZM = 'ZM',\n EH = 'EH',\n EE = 'EE',\n EG = 'EG',\n ZA = 'ZA',\n EC = 'EC',\n IT = 'IT',\n VN = 'VN',\n SB = 'SB',\n ET = 'ET',\n SO = 'SO',\n ZW = 'ZW',\n SA = 'SA',\n ES = 'ES',\n ER = 'ER',\n ME = 'ME',\n MD = 'MD',\n MG = 'MG',\n MF = 'MF',\n MA = 'MA',\n MC = 'MC',\n UZ = 'UZ',\n MM = 'MM',\n ML = 'ML',\n MO = 'MO',\n MN = 'MN',\n MH = 'MH',\n MK = 'MK',\n MU = 'MU',\n MT = 'MT',\n MW = 'MW',\n MV = 'MV',\n MQ = 'MQ',\n MP = 'MP',\n MS = 'MS',\n MR = 'MR',\n IM = 'IM',\n UG = 'UG',\n TZ = 'TZ',\n MY = 'NY',\n MX = 'MX',\n IL = 'IL',\n FR = 'FR',\n IO = 'IO',\n SH = 'SH',\n FI = 'FI',\n FJ = 'FJ',\n FK = 'FK',\n FM = 'FM',\n FO = 'FO',\n NI = 'NI',\n NL = 'NL',\n NO = 'NO',\n NA = 'NA',\n VU = 'VU',\n NC = 'NC',\n NE = 'NE',\n NF = 'NF',\n NG = 'NG',\n NZ = 'NZ',\n NP = 'NP',\n NR = 'NR',\n NU = 'NU',\n CK = 'CK',\n XK = 'XK',\n CI = 'CI',\n CH = 'CH',\n CO = 'CO',\n CN = 'CN',\n CM = 'CM',\n CL = 'CL',\n CC = 'CC',\n CA = 'CA',\n CG = 'CG',\n CF = 'CF',\n CD = 'CD',\n CZ = 'CZ',\n CY = 'CY',\n CX = 'CX',\n CR = 'CR',\n CW = 'CW',\n CV = 'CV',\n CU = 'CU',\n SZ = 'SZ',\n SY = 'SY',\n SX = 'SX',\n KG = 'KG',\n KE = 'KE',\n SS = 'SS',\n SR = 'SR',\n KI = 'KI',\n KH = 'KH',\n KN = 'KN',\n KM = 'KM',\n ST = 'ST',\n SK = 'SK',\n KR = 'KR',\n SI = 'SI',\n KP = 'KP',\n KW = 'KW',\n SN = 'SN',\n SM = 'SM',\n SL = 'SL',\n SC = 'SC',\n KZ = 'KZ',\n KY = 'KY',\n SG = 'SG',\n SE = 'SE',\n SD = 'SD',\n DO = 'DO',\n DM = 'DM',\n DJ = 'DJ',\n DK = 'DK',\n VG = 'VG',\n DE = 'DE',\n YE = 'YE',\n DZ = 'DZ',\n US = 'US',\n UY = 'UY',\n YT = 'YT',\n UM = 'UM',\n LB = 'LB',\n LC = 'LC',\n LA = 'LA',\n TV = 'TV',\n TW = 'TW',\n TT = 'TT',\n TR = 'TR',\n LK = 'LK',\n LI = 'LI',\n LV = 'LV',\n TO = 'TO',\n LT = 'LT',\n LU = 'LU',\n LR = 'LR',\n LS = 'LS',\n TH = 'TH',\n TF = 'TF',\n TG = 'TG',\n TD = 'TD',\n TC = 'TC',\n LY = 'LY',\n VA = 'VA',\n VC = 'VC',\n AE = 'AE',\n AD = 'AD',\n AG = 'AG',\n AF = 'AF',\n AI = 'AI',\n VI = 'VI',\n IS = 'IS',\n IR = 'IR',\n AM = 'AM',\n AL = 'AL',\n AO = 'AO',\n AQ = 'AQ',\n AS = 'AS',\n AR = 'AR',\n AU = 'AU',\n AT = 'AT',\n AW = 'AW',\n IN = 'IN',\n AX = 'AX',\n AZ = 'AZ',\n IE = 'IE',\n ID = 'ID',\n UA = 'UA',\n QA = 'QA',\n MZ = 'MZ',\n UK = 'UK',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAaYA,eAAe;AAAA;AAAA,WAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe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AAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;AAAA,GAAfA,eAAe,+BAAfA,eAAe"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLCountry.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 { Dictionary } from '../Dictionary';\nimport type { VCLRegions } from './VCLRegions';\n\nexport interface VCLCountry {\n payload: Dictionary<any>;\n code: string;\n name: string;\n regions: VCLRegions;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLCredentialManifest.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 { VCLJwt } from './VCLJwt';\n\nexport interface VCLCredentialManifest {\n jwt: VCLJwt;\n iss: string;\n did: string;\n exchangeId: string;\n presentationDefinitionId: string;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLCredentialManifestDescriptorByDeepLink.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 { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';\nimport type { VCLDeepLink } from './VCLDeepLink';\n\nexport interface VCLCredentialManifestDescriptorByDeepLink\n extends VCLCredentialManifestDescriptor {\n deepLink: VCLDeepLink;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLCredentialManifestDescriptorByService.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 { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';\nimport type { VCLService } from './VCLService';\n\nexport interface VCLCredentialManifestDescriptorByService\n extends VCLCredentialManifestDescriptor {\n service: VCLService;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLCredentialManifestDescriptorRefresh.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 { VCLCredentialManifestDescriptor } from './VCLCredentialManifestDescriptor';\nimport type { VCLService } from './VCLService';\n\nexport interface VCLCredentialManifestDescriptorRefresh\n extends VCLCredentialManifestDescriptor {\n service: VCLService;\n credentialIds: string[];\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLCredentialType.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 { Dictionary } from '../Dictionary';\n\nexport interface VCLCredentialType {\n payload: Dictionary<any>;\n id: string;\n schema: string;\n createdAt: string;\n schemaName: string;\n credentialType: string;\n recommended: boolean;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLCredentialTypeSchema.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 { Dictionary } from '../Dictionary';\n\nexport interface VCLCredentialTypeSchema {\n payload: Dictionary<any>;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLCredentialTypeSchemas.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 { Dictionary } from '../Dictionary';\nimport type { VCLCredentialTypeSchema } from './VCLCredentialTypeSchema';\n\nexport interface VCLCredentialTypeSchemas {\n all: Dictionary<VCLCredentialTypeSchema>;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLCredentialTypes.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 { Dictionary } from '../Dictionary';\n\nexport interface VCLCredentialTypes {\n all: Dictionary<string>[];\n recommendedTypes: Dictionary<string>[];\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLCredentialTypesUIFormSchema.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 { Dictionary } from '../Dictionary';\n\nexport interface VCLCredentialTypesUIFormSchema {\n payload: Dictionary<any>;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLCredentialTypesUIFormSchemaDescriptor.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 VCLCredentialTypesUIFormSchemaDescriptor {\n credentialType: string;\n countryCode: string;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLDeepLink.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 VCLDeepLink {\n value: string;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLDidJwk.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 VCLDidJwk {\n value: string;\n}\n"],"mappings":""}
|
|
@@ -4,23 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.toVclError = exports.VCLError = void 0;
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
10
|
/**
|
|
11
11
|
* Created by Michael Avoyan.
|
|
12
12
|
*
|
|
13
13
|
* Copyright 2022 Velocity Career Labs inc.
|
|
14
14
|
* SPDX-License-Identifier: Apache-2.0
|
|
15
15
|
*/
|
|
16
|
+
|
|
16
17
|
class VCLError extends Error {
|
|
17
18
|
constructor(error) {
|
|
18
19
|
super(error);
|
|
19
|
-
|
|
20
20
|
_defineProperty(this, "description", void 0);
|
|
21
|
-
|
|
22
21
|
_defineProperty(this, "code", void 0);
|
|
23
|
-
|
|
24
22
|
try {
|
|
25
23
|
const errorJson = JSON.parse(error.message);
|
|
26
24
|
this.description = errorJson.description;
|
|
@@ -29,14 +27,10 @@ class VCLError extends Error {
|
|
|
29
27
|
this.description = JSON.stringify(error);
|
|
30
28
|
}
|
|
31
29
|
}
|
|
32
|
-
|
|
33
30
|
}
|
|
34
|
-
|
|
35
31
|
exports.VCLError = VCLError;
|
|
36
|
-
|
|
37
32
|
const toVclError = error => {
|
|
38
33
|
return new VCLError(error);
|
|
39
34
|
};
|
|
40
|
-
|
|
41
35
|
exports.toVclError = toVclError;
|
|
42
36
|
//# sourceMappingURL=VCLError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["VCLError","Error","constructor","error","errorJson","JSON","parse","message","description","code","parseInt","e","stringify","toVclError"],"sources":["VCLError.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 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 this.description = JSON.stringify(error);\n }\n }\n}\n\nexport const toVclError = (error: any) => {\n return new VCLError(error);\n};\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMA,QAAQ,SAASC,KAAK,CAAC;EAIlCC,WAAW,CAACC,KAAU,EAAE;IACtB,KAAK,CAACA,KAAK,CAAC;IAAC;IAAA;IACb,IAAI;MACF,MAAMC,SAAS,GAAGC,IAAI,CAACC,KAAK,CAACH,KAAK,CAACI,OAAO,CAAC;MAC3C,IAAI,CAACC,WAAW,GAAGJ,SAAS,CAACI,WAAW;MACxC,IAAI,CAACC,IAAI,GAAGC,QAAQ,CAACN,SAAS,CAACK,IAAI,EAAE,EAAE,CAAC;IAC1C,CAAC,CAAC,OAAOE,CAAC,EAAE;MACV,IAAI,CAACH,WAAW,GAAGH,IAAI,CAACO,SAAS,CAACT,KAAK,CAAC;IAC1C;EACF;AACF;AAAC;AAEM,MAAMU,UAAU,GAAIV,KAAU,IAAK;EACxC,OAAO,IAAIH,QAAQ,CAACG,KAAK,CAAC;AAC5B,CAAC;AAAC"}
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.VCLErrorCode = void 0;
|
|
7
|
-
|
|
8
7
|
/**
|
|
9
8
|
* Created by Michael Avoyan.
|
|
10
9
|
*
|
|
@@ -13,7 +12,6 @@ exports.VCLErrorCode = void 0;
|
|
|
13
12
|
*/
|
|
14
13
|
let VCLErrorCode;
|
|
15
14
|
exports.VCLErrorCode = VCLErrorCode;
|
|
16
|
-
|
|
17
15
|
(function (VCLErrorCode) {
|
|
18
16
|
VCLErrorCode[VCLErrorCode["NetworkError"] = 1] = "NetworkError";
|
|
19
17
|
VCLErrorCode[VCLErrorCode["VerificationError"] = 403] = "VerificationError";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["VCLErrorCode"],"sources":["VCLErrorCode.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 VCLErrorCode {\n NetworkError = 1,\n VerificationError = 403,\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAOYA,YAAY;AAAA;AAAA,WAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;EAAZA,YAAY,CAAZA,YAAY;AAAA,GAAZA,YAAY,4BAAZA,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLExchange.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 VCLExchange {\n id: string;\n type: string;\n disclosureComplete: boolean;\n exchangeComplete: boolean;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLExchangeDescriptor.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 { VCLPresentationSubmission } from './VCLPresentationSubmission';\nimport type { VCLSubmissionResult } from './VCLSubmissionResult';\n\nexport interface VCLExchangeDescriptor {\n presentationSubmission: VCLPresentationSubmission;\n submissionResult: VCLSubmissionResult;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLFilter.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 VCLFilter {\n did?: string;\n serviceTypes?: VCLServiceType[];\n credentialTypes?: string[];\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLFinalizeOffersDescriptor.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 { VCLCredentialManifest } from './VCLCredentialManifest';\n\nexport interface VCLFinalizeOffersDescriptor {\n credentialManifest: VCLCredentialManifest;\n rejectedOfferIds: string[];\n approvedOfferIds: string[];\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLGenerateOffersDescriptor.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 { VCLCredentialManifest } from './VCLCredentialManifest';\nimport type { VCLVerifiableCredential } from './VCLVerifiableCredential';\n\nexport interface VCLGenerateOffersDescriptor {\n credentialManifest: VCLCredentialManifest;\n types?: string[];\n offerHashes?: string[];\n identificationVerifiableCredentials: VCLVerifiableCredential[];\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLInitializationDescriptor.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 { VCLEnvironment } from '../VCLEnvironment';\n\nexport interface VCLInitializationDescriptor {\n environment?: VCLEnvironment;\n cacheSequence?: number;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLJwkPublic.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 VCLJwkPublic {\n valueStr: string;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLJwt.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 VCLJwt {\n encodedJwt: string; // 3 base64Url strings splitted by a dot\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLJwtDescriptor.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 { Dictionary } from '../Dictionary';\n\nexport interface VCLJwtDescriptor {\n payload: Dictionary<any>;\n iss: string;\n jti: string;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLJwtVerifiableCredentials.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 { VCLJwt } from './VCLJwt';\n\nexport interface VCLJwtVerifiableCredentials {\n all: VCLJwt[];\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLOffers.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 { Dictionary } from '../Dictionary';\nimport type { VCLToken } from './VCLToken';\n\nexport interface VCLOffers {\n all: Dictionary<any>[];\n responseCode: number;\n token: VCLToken;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLOrganization.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 { Dictionary } from '../Dictionary';\nimport type { VCLServiceCredentialAgentIssuer } from './VCLServiceCredentialAgentIssuer';\n\nexport interface VCLOrganization {\n payload: Dictionary<any>;\n serviceCredentialAgentIssuers: VCLServiceCredentialAgentIssuer[];\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLOrganizations.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 { VCLOrganization } from './VCLOrganization';\n\nexport interface VCLOrganizations {\n all: VCLOrganization[];\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLOrganizationsSearchDescriptor.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 { VCLFilter } from './VCLFilter';\nimport type { VCLPage } from './VCLPage';\n\nexport interface VCLOrganizationsSearchDescriptor {\n filter?: VCLFilter;\n page?: VCLPage;\n sort?: string[][];\n query?: string;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLPage.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 VCLPage {\n size?: string;\n skip?: string;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLPresentationRequest.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 { VCLJwt } from './VCLJwt';\nimport type { VCLJwkPublic } from './VCLJwkPublic';\n\nexport interface VCLPresentationRequest {\n exchangeId: string;\n jwt: VCLJwt;\n jwkPublic: VCLJwkPublic;\n keyID: string;\n presentationDefinitionId: string;\n iss: string;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLPresentationSubmission.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 { VCLPresentationRequest } from './VCLPresentationRequest';\nimport type { VCLVerifiableCredential } from './VCLVerifiableCredential';\n\nexport interface VCLPresentationSubmission {\n presentationRequest: VCLPresentationRequest;\n verifiableCredentials: VCLVerifiableCredential[];\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLPushDelegate.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 VCLPushDelegate {\n /**\n * the url of the endpoint that will send pushes to the device\n */\n pushUrl: string;\n /**\n * the token to use for identifying the group of devices this device belongs to\n */\n pushToken: string;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLRegion.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 { Dictionary } from '../Dictionary';\n\nexport interface VCLRegion {\n payload: Dictionary<any>;\n code: string;\n name: string;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLRegions.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 { Dictionary } from '../Dictionary';\nimport type { VCLRegion } from './VCLRegion';\n\nexport interface VCLRegions {\n all: Dictionary<VCLRegion>;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLService.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 { Dictionary } from '../Dictionary';\n\nexport interface VCLService {\n payload: Dictionary<string>;\n}\n"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":[],"sources":["VCLServiceCredentialAgentIssuer.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 { VCLService } from './VCLService';\n\nexport interface VCLServiceCredentialAgentIssuer extends VCLService {}\n"],"mappings":""}
|