@velocitycareerlabs/vcl-react-native 1.13.0 → 1.14.2
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/VclReactNativeModule.kt +5 -5
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +60 -29
- package/ios/Utils/Converter.swift +75 -31
- package/ios/VclReactNative.swift +3 -3
- package/lib/commonjs/api/VCLApi.js +1 -1
- package/lib/commonjs/api/VCLApi.js.map +1 -1
- package/lib/commonjs/api/VCLEnvironment.js +9 -9
- package/lib/commonjs/api/VCLEnvironment.js.map +1 -1
- package/lib/commonjs/api/VCLKeyServiceType.js +19 -0
- package/lib/commonjs/api/VCLKeyServiceType.js.map +1 -0
- package/lib/commonjs/api/VCLXVnfProtocolVersion.js +19 -0
- package/lib/commonjs/api/VCLXVnfProtocolVersion.js.map +1 -0
- package/lib/commonjs/api/entities/VCLCredentialManifest.js.map +1 -1
- package/lib/commonjs/api/entities/VCLErrorCode.js +7 -2
- package/lib/commonjs/api/entities/VCLErrorCode.js.map +1 -1
- package/lib/commonjs/api/entities/VCLInitializationDescriptor.js.map +1 -1
- package/lib/commonjs/api/entities/VCLStatusCode.js +19 -0
- package/lib/commonjs/api/entities/VCLStatusCode.js.map +1 -0
- package/lib/commonjs/index.js +17 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/api/VCLApi.js +1 -1
- package/lib/module/api/VCLApi.js.map +1 -1
- package/lib/module/api/VCLEnvironment.js +7 -7
- package/lib/module/api/VCLEnvironment.js.map +1 -1
- package/lib/module/api/VCLKeyServiceType.js +13 -0
- package/lib/module/api/VCLKeyServiceType.js.map +1 -0
- package/lib/module/api/VCLXVnfProtocolVersion.js +13 -0
- package/lib/module/api/VCLXVnfProtocolVersion.js.map +1 -0
- package/lib/module/api/entities/VCLCredentialManifest.js.map +1 -1
- package/lib/module/api/entities/VCLErrorCode.js +7 -2
- package/lib/module/api/entities/VCLErrorCode.js.map +1 -1
- package/lib/module/api/entities/VCLInitializationDescriptor.js.map +1 -1
- package/lib/module/api/entities/VCLStatusCode.js +13 -0
- package/lib/module/api/entities/VCLStatusCode.js.map +1 -0
- package/lib/module/index.js +8 -3
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/api/VCLApi.d.ts +3 -3
- package/lib/typescript/api/VCLEnvironment.d.ts +5 -8
- package/lib/typescript/api/VCLKeyServiceType.d.ts +10 -0
- package/lib/typescript/api/VCLXVnfProtocolVersion.d.ts +10 -0
- package/lib/typescript/api/entities/VCLCredentialManifest.d.ts +3 -0
- package/lib/typescript/api/entities/VCLErrorCode.d.ts +7 -2
- package/lib/typescript/api/entities/VCLInitializationDescriptor.d.ts +4 -0
- package/lib/typescript/api/entities/VCLStatusCode.d.ts +10 -0
- package/lib/typescript/index.d.ts +5 -4
- package/package.json +1 -1
- package/src/api/VCLApi.ts +4 -4
- package/src/api/VCLEnvironment.ts +5 -9
- package/src/api/VCLKeyServiceType.ts +11 -0
- package/src/api/VCLXVnfProtocolVersion.ts +11 -0
- package/src/api/entities/VCLCredentialManifest.ts +3 -0
- package/src/api/entities/VCLErrorCode.ts +8 -2
- package/src/api/entities/VCLInitializationDescriptor.ts +4 -0
- package/src/api/entities/VCLStatusCode.ts +11 -0
- package/src/index.tsx +9 -5
- package/vcl-react-native.podspec +1 -1
- package/android/.gradle/7.4.2/checksums/checksums.lock +0 -0
- package/android/.gradle/7.4.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.4.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.4.2/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.4.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.4.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.4.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.4.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
|
@@ -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
|
|
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 { VCLEnvironment } from './api/VCLEnvironment';\nimport { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';\n// import type { VCLKeyServiceType } from './api/VCLKeyServiceType';\n// import { VCLKeyServiceTypes } from './api/VCLKeyServiceType';\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 { VCLError } from './api/entities/VCLError';\nimport { VCLStatusCode } from './api/entities/VCLStatusCode';\nimport { VCLErrorCode } from './api/entities/VCLErrorCode';\n\nexport default VclApi;\nexport {\n Dictionary,\n VCLEnvironment,\n VCLXVnfProtocolVersion,\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 VCLError,\n VCLStatusCode,\n VCLErrorCode,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;AACA;AACA;AAKA;AAiCA;AAEA;AAWA;AACA;AACA;AA9DA;AACA;AACA;AACA;AACA;AACA;AALA,eAgEeA,cAAM;AAAA"}
|
package/lib/module/api/VCLApi.js
CHANGED
|
@@ -88,7 +88,7 @@ export const VclApi = {
|
|
|
88
88
|
throw new VCLError(e);
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
-
finalizeOffers: async (finalizeOffersDescriptor,
|
|
91
|
+
finalizeOffers: async (finalizeOffersDescriptor, token, didJwk) => {
|
|
92
92
|
try {
|
|
93
93
|
return await VclReactNative.finalizeOffers(finalizeOffersDescriptor, didJwk, token);
|
|
94
94
|
} catch (e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","VCLError","VclReactNative","VclApi","initialize","initializationDescriptor","e","getCountries","getCredentialTypes","getCredentialTypeSchemas","getPresentationRequest","presentationRequestDescriptor","submitPresentation","presentationSubmission","didJwk","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 type { VCLCredentialTypes } from './entities/VCLCredentialTypes';\n\nimport { NativeModules } from 'react-native';\nimport { VCLError } from './entities/VCLError';\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 new VCLError(e);\n }\n },\n\n getCountries: async (): Promise<VCLCountries> => {\n try {\n return await VclReactNative.getCountries();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialTypes: async (): Promise<VCLCredentialTypes> => {\n try {\n return await VclReactNative.getCredentialTypes();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialTypeSchemas: async (): Promise<VCLCredentialTypeSchemas> => {\n try {\n return await VclReactNative.getCredentialTypeSchemas();\n } catch (e) {\n throw new VCLError(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 new VCLError(e);\n }\n },\n\n submitPresentation: async (\n presentationSubmission: VCLPresentationSubmission,\n didJwk: VCLDidJwk\n ): Promise<VCLSubmissionResult> => {\n try {\n return await VclReactNative.submitPresentation(\n presentationSubmission,\n didJwk\n );\n } catch (e) {\n throw new VCLError(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 new VCLError(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 new VCLError(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 new VCLError(e);\n }\n },\n\n generateOffers: async (\n generateOffersDescriptor: VCLGenerateOffersDescriptor,\n didJwk: VCLDidJwk\n ): Promise<VCLOffers> => {\n try {\n return await VclReactNative.generateOffers(\n generateOffersDescriptor,\n didJwk\n );\n } catch (e) {\n throw new VCLError(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 new VCLError(e);\n }\n },\n\n finalizeOffers: async (\n finalizeOffersDescriptor: VCLFinalizeOffersDescriptor,\n didJwk: VCLDidJwk,\n token: VCLToken\n ): Promise<VCLJwtVerifiableCredentials> => {\n try {\n return await VclReactNative.finalizeOffers(\n finalizeOffersDescriptor,\n didJwk,\n token\n );\n } catch (e) {\n throw new VCLError(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 new VCLError(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 new VCLError(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 new VCLError(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 new VCLError(e);\n }\n },\n\n generateDidJwk: async (): Promise<VCLDidJwk> => {\n try {\n return await VclReactNative.generateDidJwk();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AA8BA,SAASA,aAAa,QAAQ,cAAc;AAC5C,SAASC,QAAQ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MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF;AACF,CAAC"}
|
|
1
|
+
{"version":3,"names":["NativeModules","VCLError","VclReactNative","VclApi","initialize","initializationDescriptor","e","getCountries","getCredentialTypes","getCredentialTypeSchemas","getPresentationRequest","presentationRequestDescriptor","submitPresentation","presentationSubmission","didJwk","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 type { VCLCredentialTypes } from './entities/VCLCredentialTypes';\n\nimport { NativeModules } from 'react-native';\nimport { VCLError } from './entities/VCLError';\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 new VCLError(e);\n }\n },\n\n getCountries: async (): Promise<VCLCountries> => {\n try {\n return await VclReactNative.getCountries();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialTypes: async (): Promise<VCLCredentialTypes> => {\n try {\n return await VclReactNative.getCredentialTypes();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n\n getCredentialTypeSchemas: async (): Promise<VCLCredentialTypeSchemas> => {\n try {\n return await VclReactNative.getCredentialTypeSchemas();\n } catch (e) {\n throw new VCLError(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 new VCLError(e);\n }\n },\n\n submitPresentation: async (\n presentationSubmission: VCLPresentationSubmission,\n didJwk?: VCLDidJwk\n ): Promise<VCLSubmissionResult> => {\n try {\n return await VclReactNative.submitPresentation(\n presentationSubmission,\n didJwk\n );\n } catch (e) {\n throw new VCLError(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 new VCLError(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 new VCLError(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 new VCLError(e);\n }\n },\n\n generateOffers: async (\n generateOffersDescriptor: VCLGenerateOffersDescriptor,\n didJwk?: VCLDidJwk\n ): Promise<VCLOffers> => {\n try {\n return await VclReactNative.generateOffers(\n generateOffersDescriptor,\n didJwk\n );\n } catch (e) {\n throw new VCLError(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 new VCLError(e);\n }\n },\n\n finalizeOffers: async (\n finalizeOffersDescriptor: VCLFinalizeOffersDescriptor,\n token: VCLToken,\n didJwk?: VCLDidJwk\n ): Promise<VCLJwtVerifiableCredentials> => {\n try {\n return await VclReactNative.finalizeOffers(\n finalizeOffersDescriptor,\n didJwk,\n token\n );\n } catch (e) {\n throw new VCLError(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 new VCLError(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 new VCLError(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 new VCLError(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 new VCLError(e);\n }\n },\n\n generateDidJwk: async (): Promise<VCLDidJwk> => {\n try {\n return await VclReactNative.generateDidJwk();\n } catch (e) {\n throw new VCLError(e);\n }\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AA8BA,SAASA,aAAa,QAAQ,cAAc;AAC5C,SAASC,QAAQ,QAAQ,qBAAqB;AAC9C,MAAM;EAAEC;AAAe,CAAC,GAAGF,aAAa;AAExC,OAAO,MAAMG,MAAM,GAAG;EACpBC,UAAU,EAAE,MACVC,wBAAqD,IACnC;IAClB,IAAI;MACF,OAAO,MAAMH,cAAc,CAACE,UAAU,CAACC,wBAAwB,CAAC;IAClE,CAAC,CAAC,OAAOC,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAEDC,YAAY,EAAE,YAAmC;IAC/C,IAAI;MACF,OAAO,MAAML,cAAc,CAACK,YAAY,EAAE;IAC5C,CAAC,CAAC,OAAOD,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC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IAChC,IAAI;MACF,OAAO,MAAM5B,cAAc,CAAC2B,kBAAkB,CAACC,yBAAyB,CAAC;IAC3E,CAAC,CAAC,OAAOxB,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAEDyB,SAAS,EAAE,OAAOC,GAAW,EAAEC,SAAuB,KAAuB;IAC3E,IAAI;MACF,OAAO,MAAM/B,cAAc,CAAC6B,SAAS,CAACC,GAAG,EAAEC,SAAS,CAAC;IACvD,CAAC,CAAC,OAAO3B,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAED4B,iBAAiB,EAAE,MACjBC,aAA+B,IACX;IACpB,IAAI;MACF,OAAO,MAAMjC,cAAc,CAACgC,iBAAiB,CAACC,aAAa,CAAC;IAC9D,CAAC,CAAC,OAAO7B,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF,CAAC;EAED8B,cAAc,EAAE,YAAgC;IAC9C,IAAI;MACF,OAAO,MAAMlC,cAAc,CAACkC,cAAc,EAAE;IAC9C,CAAC,CAAC,OAAO9B,CAAC,EAAE;MACV,MAAM,IAAIL,QAAQ,CAACK,CAAC,CAAC;IACvB;EACF;AACF,CAAC"}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
export let
|
|
9
|
-
(function (
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})(
|
|
8
|
+
export let VCLEnvironment;
|
|
9
|
+
(function (VCLEnvironment) {
|
|
10
|
+
VCLEnvironment["Dev"] = "dev";
|
|
11
|
+
VCLEnvironment["Qa"] = "qa";
|
|
12
|
+
VCLEnvironment["Staging"] = "staging";
|
|
13
|
+
VCLEnvironment["Prod"] = "prod";
|
|
14
|
+
})(VCLEnvironment || (VCLEnvironment = {}));
|
|
15
15
|
//# sourceMappingURL=VCLEnvironment.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["VCLEnvironment"],"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 enum VCLEnvironment {\n Dev = 'dev',\n Qa = 'qa',\n Staging = 'staging',\n Prod = 'prod',\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"}
|
|
@@ -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 let VCLKeyServiceType;
|
|
9
|
+
(function (VCLKeyServiceType) {
|
|
10
|
+
VCLKeyServiceType["Local"] = "local";
|
|
11
|
+
VCLKeyServiceType["Remote"] = "remote";
|
|
12
|
+
})(VCLKeyServiceType || (VCLKeyServiceType = {}));
|
|
13
|
+
//# sourceMappingURL=VCLKeyServiceType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VCLKeyServiceType"],"sources":["VCLKeyServiceType.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 VCLKeyServiceType {\n Local = 'local',\n Remote = 'remote',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,iBAAiB;AAG5B,WAHWA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;AAAA,GAAjBA,iBAAiB,KAAjBA,iBAAiB"}
|
|
@@ -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 let VCLXVnfProtocolVersion;
|
|
9
|
+
(function (VCLXVnfProtocolVersion) {
|
|
10
|
+
VCLXVnfProtocolVersion["XVnfProtocolVersion1"] = "1.0";
|
|
11
|
+
VCLXVnfProtocolVersion["XVnfProtocolVersion2"] = "2.0";
|
|
12
|
+
})(VCLXVnfProtocolVersion || (VCLXVnfProtocolVersion = {}));
|
|
13
|
+
//# sourceMappingURL=VCLXVnfProtocolVersion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VCLXVnfProtocolVersion"],"sources":["VCLXVnfProtocolVersion.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 VCLXVnfProtocolVersion {\n XVnfProtocolVersion1 = '1.0',\n XVnfProtocolVersion2 = '2.0',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,sBAAsB;AAGjC,WAHWA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;AAAA,GAAtBA,sBAAsB,KAAtBA,sBAAsB"}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
{"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';\nimport type { VCLVerifiedProfile } from './VCLVerifiedProfile';\n\nexport interface VCLCredentialManifest {\n jwt: VCLJwt;\n vendorOriginContext?: String;\n verifiedProfile: VCLVerifiedProfile;\n iss: string;\n did: string;\n exchangeId: string;\n presentationDefinitionId: string;\n}\n"],"mappings":""}
|
|
@@ -7,7 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
export let VCLErrorCode;
|
|
9
9
|
(function (VCLErrorCode) {
|
|
10
|
-
VCLErrorCode[
|
|
11
|
-
VCLErrorCode[
|
|
10
|
+
VCLErrorCode["CredentialTypeNotRegistered"] = "credential_type_not_registered";
|
|
11
|
+
VCLErrorCode["IssuerRequiresIdentityPermission"] = "issuer_requires_identity_permission";
|
|
12
|
+
VCLErrorCode["IssuerRequiresNotaryPermission"] = "issuer_requires_notary_permission";
|
|
13
|
+
VCLErrorCode["CredentialSubjectContextMissing"] = "credential_subject_context_missing";
|
|
14
|
+
VCLErrorCode["InvalidCredentialSubjectType"] = "invalid_credential_subject_type";
|
|
15
|
+
VCLErrorCode["InvalidCredentialSubjectContext"] = "invalid_credential_subject_context";
|
|
16
|
+
VCLErrorCode["IssuerUnexpectedPermissionFailure"] = "issuer_unexpected_permission_failure";
|
|
12
17
|
})(VCLErrorCode || (VCLErrorCode = {}));
|
|
13
18
|
//# sourceMappingURL=VCLErrorCode.js.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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 // Credential issuer verification error codes:\n CredentialTypeNotRegistered = 'credential_type_not_registered',\n IssuerRequiresIdentityPermission = 'issuer_requires_identity_permission',\n IssuerRequiresNotaryPermission = 'issuer_requires_notary_permission',\n CredentialSubjectContextMissing = 'credential_subject_context_missing',\n InvalidCredentialSubjectType = 'invalid_credential_subject_type',\n InvalidCredentialSubjectContext = 'invalid_credential_subject_context',\n IssuerUnexpectedPermissionFailure = 'issuer_unexpected_permission_failure',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,YAAY;AASvB,WATWA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;AAAA,GAAZA,YAAY,KAAZA,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
{"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';\nimport type { VCLKeyServiceType } from '../VCLKeyServiceType';\nimport type { VCLXVnfProtocolVersion } from '../VCLXVnfProtocolVersion';\n\nexport interface VCLInitializationDescriptor {\n environment?: VCLEnvironment;\n keyServiceType?: VCLKeyServiceType;\n xVnfProtocolVersion?: VCLXVnfProtocolVersion;\n cacheSequence?: number;\n}\n"],"mappings":""}
|
|
@@ -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 let VCLStatusCode;
|
|
9
|
+
(function (VCLStatusCode) {
|
|
10
|
+
VCLStatusCode[VCLStatusCode["NetworkError"] = 1] = "NetworkError";
|
|
11
|
+
VCLStatusCode[VCLStatusCode["VerificationError"] = 403] = "VerificationError";
|
|
12
|
+
})(VCLStatusCode || (VCLStatusCode = {}));
|
|
13
|
+
//# sourceMappingURL=VCLStatusCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["VCLStatusCode"],"sources":["VCLStatusCode.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 VCLStatusCode {\n NetworkError = 1,\n VerificationError = 403,\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,WAAYA,aAAa;AAGxB,WAHWA,aAAa;EAAbA,aAAa,CAAbA,aAAa;EAAbA,aAAa,CAAbA,aAAa;AAAA,GAAbA,aAAa,KAAbA,aAAa"}
|
package/lib/module/index.js
CHANGED
|
@@ -6,12 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { VclApi } from './api/VCLApi';
|
|
9
|
-
import {
|
|
9
|
+
import { VCLEnvironment } from './api/VCLEnvironment';
|
|
10
|
+
import { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';
|
|
11
|
+
// import type { VCLKeyServiceType } from './api/VCLKeyServiceType';
|
|
12
|
+
// import { VCLKeyServiceTypes } from './api/VCLKeyServiceType';
|
|
13
|
+
|
|
10
14
|
import { VCLCountryCodes } from './api/entities/VCLCountries';
|
|
11
15
|
import { VCLServiceType } from './api/entities/VCLServiceType';
|
|
12
16
|
import { VCLIssuingType } from './api/entities/VCLIssuingType';
|
|
13
|
-
import { VCLErrorCode } from './api/entities/VCLErrorCode';
|
|
14
17
|
import { VCLError } from './api/entities/VCLError';
|
|
18
|
+
import { VCLStatusCode } from './api/entities/VCLStatusCode';
|
|
19
|
+
import { VCLErrorCode } from './api/entities/VCLErrorCode';
|
|
15
20
|
export default VclApi;
|
|
16
|
-
export {
|
|
21
|
+
export { VCLEnvironment, VCLXVnfProtocolVersion, VCLCountryCodes, VCLServiceType, VCLIssuingType, VCLError, VCLStatusCode, VCLErrorCode };
|
|
17
22
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["VclApi","
|
|
1
|
+
{"version":3,"names":["VclApi","VCLEnvironment","VCLXVnfProtocolVersion","VCLCountryCodes","VCLServiceType","VCLIssuingType","VCLError","VCLStatusCode","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 { VCLEnvironment } from './api/VCLEnvironment';\nimport { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';\n// import type { VCLKeyServiceType } from './api/VCLKeyServiceType';\n// import { VCLKeyServiceTypes } from './api/VCLKeyServiceType';\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 { VCLError } from './api/entities/VCLError';\nimport { VCLStatusCode } from './api/entities/VCLStatusCode';\nimport { VCLErrorCode } from './api/entities/VCLErrorCode';\n\nexport default VclApi;\nexport {\n Dictionary,\n VCLEnvironment,\n VCLXVnfProtocolVersion,\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 VCLError,\n VCLStatusCode,\n VCLErrorCode,\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,cAAc;AACrC,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,sBAAsB,QAAQ,8BAA8B;AACrE;AACA;;AAGA,SAASC,eAAe,QAAQ,6BAA6B;AAiC7D,SAASC,cAAc,QAAQ,+BAA+B;AAE9D,SAASC,cAAc,QAAQ,+BAA+B;AAW9D,SAASC,QAAQ,QAAQ,yBAAyB;AAClD,SAASC,aAAa,QAAQ,8BAA8B;AAC5D,SAASC,YAAY,QAAQ,6BAA6B;AAE1D,eAAeR,MAAM;AACrB,SAEEC,cAAc,EACdC,sBAAsB,EAGtBC,eAAe,EAiCfC,cAAc,EAEdC,cAAc,EAUdC,QAAQ,EACRC,aAAa,EACbC,YAAY"}
|
|
@@ -37,13 +37,13 @@ export declare const VclApi: {
|
|
|
37
37
|
getCredentialTypes: () => Promise<VCLCredentialTypes>;
|
|
38
38
|
getCredentialTypeSchemas: () => Promise<VCLCredentialTypeSchemas>;
|
|
39
39
|
getPresentationRequest: (presentationRequestDescriptor: VCLPresentationRequestDescriptor) => Promise<VCLPresentationRequest>;
|
|
40
|
-
submitPresentation: (presentationSubmission: VCLPresentationSubmission, didJwk
|
|
40
|
+
submitPresentation: (presentationSubmission: VCLPresentationSubmission, didJwk?: VCLDidJwk) => Promise<VCLSubmissionResult>;
|
|
41
41
|
getExchangeProgress: (exchangeDescriptor: VCLExchangeDescriptor) => Promise<VCLExchange>;
|
|
42
42
|
searchForOrganizations: (organizationsSearchDescriptor: VCLOrganizationsSearchDescriptor) => Promise<VCLOrganizations>;
|
|
43
43
|
getCredentialManifest: (credentialManifestDescriptor: VCLCredentialManifestDescriptor) => Promise<VCLCredentialManifest>;
|
|
44
|
-
generateOffers: (generateOffersDescriptor: VCLGenerateOffersDescriptor, didJwk
|
|
44
|
+
generateOffers: (generateOffersDescriptor: VCLGenerateOffersDescriptor, didJwk?: VCLDidJwk) => Promise<VCLOffers>;
|
|
45
45
|
checkForOffers: (generateOffersDescriptor: VCLGenerateOffersDescriptor, token: VCLToken) => Promise<VCLOffers>;
|
|
46
|
-
finalizeOffers: (finalizeOffersDescriptor: VCLFinalizeOffersDescriptor,
|
|
46
|
+
finalizeOffers: (finalizeOffersDescriptor: VCLFinalizeOffersDescriptor, token: VCLToken, didJwk?: VCLDidJwk) => Promise<VCLJwtVerifiableCredentials>;
|
|
47
47
|
getCredentialTypesUIFormSchema: (credentialTypesUIFormSchemaDescriptor: VCLCredentialTypesUIFormSchemaDescriptor) => Promise<VCLCredentialTypesUIFormSchema>;
|
|
48
48
|
getVerifiedProfile: (verifiedProfileDescriptor: VCLVerifiedProfileDescriptor) => Promise<VCLVerifiedProfile>;
|
|
49
49
|
verifyJwt: (jwt: VCLJwt, jwkPublic: VCLJwkPublic) => Promise<boolean>;
|
|
@@ -4,12 +4,9 @@
|
|
|
4
4
|
* Copyright 2022 Velocity Career Labs inc.
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
QA = "qa",
|
|
13
|
-
STAGING = "staging",
|
|
14
|
-
PROD = "prod"
|
|
7
|
+
export declare enum VCLEnvironment {
|
|
8
|
+
Dev = "dev",
|
|
9
|
+
Qa = "qa",
|
|
10
|
+
Staging = "staging",
|
|
11
|
+
Prod = "prod"
|
|
15
12
|
}
|
|
@@ -5,8 +5,11 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
import type { VCLJwt } from './VCLJwt';
|
|
8
|
+
import type { VCLVerifiedProfile } from './VCLVerifiedProfile';
|
|
8
9
|
export interface VCLCredentialManifest {
|
|
9
10
|
jwt: VCLJwt;
|
|
11
|
+
vendorOriginContext?: String;
|
|
12
|
+
verifiedProfile: VCLVerifiedProfile;
|
|
10
13
|
iss: string;
|
|
11
14
|
did: string;
|
|
12
15
|
exchangeId: string;
|
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
export declare enum VCLErrorCode {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
CredentialTypeNotRegistered = "credential_type_not_registered",
|
|
9
|
+
IssuerRequiresIdentityPermission = "issuer_requires_identity_permission",
|
|
10
|
+
IssuerRequiresNotaryPermission = "issuer_requires_notary_permission",
|
|
11
|
+
CredentialSubjectContextMissing = "credential_subject_context_missing",
|
|
12
|
+
InvalidCredentialSubjectType = "invalid_credential_subject_type",
|
|
13
|
+
InvalidCredentialSubjectContext = "invalid_credential_subject_context",
|
|
14
|
+
IssuerUnexpectedPermissionFailure = "issuer_unexpected_permission_failure"
|
|
10
15
|
}
|
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
import type { VCLEnvironment } from '../VCLEnvironment';
|
|
8
|
+
import type { VCLKeyServiceType } from '../VCLKeyServiceType';
|
|
9
|
+
import type { VCLXVnfProtocolVersion } from '../VCLXVnfProtocolVersion';
|
|
8
10
|
export interface VCLInitializationDescriptor {
|
|
9
11
|
environment?: VCLEnvironment;
|
|
12
|
+
keyServiceType?: VCLKeyServiceType;
|
|
13
|
+
xVnfProtocolVersion?: VCLXVnfProtocolVersion;
|
|
10
14
|
cacheSequence?: number;
|
|
11
15
|
}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
import { VclApi } from './api/VCLApi';
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
8
|
+
import { VCLEnvironment } from './api/VCLEnvironment';
|
|
9
|
+
import { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';
|
|
10
10
|
import type { VCLCountry } from './api/entities/VCLCountry';
|
|
11
11
|
import type { VCLCountries } from './api/entities/VCLCountries';
|
|
12
12
|
import { VCLCountryCodes } from './api/entities/VCLCountries';
|
|
@@ -55,7 +55,8 @@ import type { VCLInitializationDescriptor } from './api/entities/VCLInitializati
|
|
|
55
55
|
import type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';
|
|
56
56
|
import type { VCLJwtDescriptor } from './api/entities/VCLJwtDescriptor';
|
|
57
57
|
import type { VCLDidJwk } from './api/entities/VCLDidJwk';
|
|
58
|
-
import { VCLErrorCode } from './api/entities/VCLErrorCode';
|
|
59
58
|
import { VCLError } from './api/entities/VCLError';
|
|
59
|
+
import { VCLStatusCode } from './api/entities/VCLStatusCode';
|
|
60
|
+
import { VCLErrorCode } from './api/entities/VCLErrorCode';
|
|
60
61
|
export default VclApi;
|
|
61
|
-
export { Dictionary, VCLEnvironment,
|
|
62
|
+
export { Dictionary, VCLEnvironment, VCLXVnfProtocolVersion, 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, VCLError, VCLStatusCode, VCLErrorCode, };
|
package/package.json
CHANGED
package/src/api/VCLApi.ts
CHANGED
|
@@ -86,7 +86,7 @@ export const VclApi = {
|
|
|
86
86
|
|
|
87
87
|
submitPresentation: async (
|
|
88
88
|
presentationSubmission: VCLPresentationSubmission,
|
|
89
|
-
didJwk
|
|
89
|
+
didJwk?: VCLDidJwk
|
|
90
90
|
): Promise<VCLSubmissionResult> => {
|
|
91
91
|
try {
|
|
92
92
|
return await VclReactNative.submitPresentation(
|
|
@@ -134,7 +134,7 @@ export const VclApi = {
|
|
|
134
134
|
|
|
135
135
|
generateOffers: async (
|
|
136
136
|
generateOffersDescriptor: VCLGenerateOffersDescriptor,
|
|
137
|
-
didJwk
|
|
137
|
+
didJwk?: VCLDidJwk
|
|
138
138
|
): Promise<VCLOffers> => {
|
|
139
139
|
try {
|
|
140
140
|
return await VclReactNative.generateOffers(
|
|
@@ -162,8 +162,8 @@ export const VclApi = {
|
|
|
162
162
|
|
|
163
163
|
finalizeOffers: async (
|
|
164
164
|
finalizeOffersDescriptor: VCLFinalizeOffersDescriptor,
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
token: VCLToken,
|
|
166
|
+
didJwk?: VCLDidJwk
|
|
167
167
|
): Promise<VCLJwtVerifiableCredentials> => {
|
|
168
168
|
try {
|
|
169
169
|
return await VclReactNative.finalizeOffers(
|
|
@@ -5,13 +5,9 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
DEV = 'dev',
|
|
14
|
-
QA = 'qa',
|
|
15
|
-
STAGING = 'staging',
|
|
16
|
-
PROD = 'prod',
|
|
8
|
+
export enum VCLEnvironment {
|
|
9
|
+
Dev = 'dev',
|
|
10
|
+
Qa = 'qa',
|
|
11
|
+
Staging = 'staging',
|
|
12
|
+
Prod = 'prod',
|
|
17
13
|
}
|
|
@@ -6,9 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type { VCLJwt } from './VCLJwt';
|
|
9
|
+
import type { VCLVerifiedProfile } from './VCLVerifiedProfile';
|
|
9
10
|
|
|
10
11
|
export interface VCLCredentialManifest {
|
|
11
12
|
jwt: VCLJwt;
|
|
13
|
+
vendorOriginContext?: String;
|
|
14
|
+
verifiedProfile: VCLVerifiedProfile;
|
|
12
15
|
iss: string;
|
|
13
16
|
did: string;
|
|
14
17
|
exchangeId: string;
|
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
export enum VCLErrorCode {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
// Credential issuer verification error codes:
|
|
10
|
+
CredentialTypeNotRegistered = 'credential_type_not_registered',
|
|
11
|
+
IssuerRequiresIdentityPermission = 'issuer_requires_identity_permission',
|
|
12
|
+
IssuerRequiresNotaryPermission = 'issuer_requires_notary_permission',
|
|
13
|
+
CredentialSubjectContextMissing = 'credential_subject_context_missing',
|
|
14
|
+
InvalidCredentialSubjectType = 'invalid_credential_subject_type',
|
|
15
|
+
InvalidCredentialSubjectContext = 'invalid_credential_subject_context',
|
|
16
|
+
IssuerUnexpectedPermissionFailure = 'issuer_unexpected_permission_failure',
|
|
11
17
|
}
|
|
@@ -6,8 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type { VCLEnvironment } from '../VCLEnvironment';
|
|
9
|
+
import type { VCLKeyServiceType } from '../VCLKeyServiceType';
|
|
10
|
+
import type { VCLXVnfProtocolVersion } from '../VCLXVnfProtocolVersion';
|
|
9
11
|
|
|
10
12
|
export interface VCLInitializationDescriptor {
|
|
11
13
|
environment?: VCLEnvironment;
|
|
14
|
+
keyServiceType?: VCLKeyServiceType;
|
|
15
|
+
xVnfProtocolVersion?: VCLXVnfProtocolVersion;
|
|
12
16
|
cacheSequence?: number;
|
|
13
17
|
}
|
package/src/index.tsx
CHANGED
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import { VclApi } from './api/VCLApi';
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
9
|
+
import { VCLEnvironment } from './api/VCLEnvironment';
|
|
10
|
+
import { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';
|
|
11
|
+
// import type { VCLKeyServiceType } from './api/VCLKeyServiceType';
|
|
12
|
+
// import { VCLKeyServiceTypes } from './api/VCLKeyServiceType';
|
|
11
13
|
import type { VCLCountry } from './api/entities/VCLCountry';
|
|
12
14
|
import type { VCLCountries } from './api/entities/VCLCountries';
|
|
13
15
|
import { VCLCountryCodes } from './api/entities/VCLCountries';
|
|
@@ -56,14 +58,15 @@ import type { VCLInitializationDescriptor } from './api/entities/VCLInitializati
|
|
|
56
58
|
import type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';
|
|
57
59
|
import type { VCLJwtDescriptor } from './api/entities/VCLJwtDescriptor';
|
|
58
60
|
import type { VCLDidJwk } from './api/entities/VCLDidJwk';
|
|
59
|
-
import { VCLErrorCode } from './api/entities/VCLErrorCode';
|
|
60
61
|
import { VCLError } from './api/entities/VCLError';
|
|
62
|
+
import { VCLStatusCode } from './api/entities/VCLStatusCode';
|
|
63
|
+
import { VCLErrorCode } from './api/entities/VCLErrorCode';
|
|
61
64
|
|
|
62
65
|
export default VclApi;
|
|
63
66
|
export {
|
|
64
67
|
Dictionary,
|
|
65
68
|
VCLEnvironment,
|
|
66
|
-
|
|
69
|
+
VCLXVnfProtocolVersion,
|
|
67
70
|
VCLCountry,
|
|
68
71
|
VCLCountries,
|
|
69
72
|
VCLCountryCodes,
|
|
@@ -111,6 +114,7 @@ export {
|
|
|
111
114
|
VCLPresentationRequestDescriptor,
|
|
112
115
|
VCLJwtDescriptor,
|
|
113
116
|
VCLDidJwk,
|
|
114
|
-
VCLErrorCode,
|
|
115
117
|
VCLError,
|
|
118
|
+
VCLStatusCode,
|
|
119
|
+
VCLErrorCode,
|
|
116
120
|
};
|