@velocitycareerlabs/vcl-react-native 1.15.6 → 1.16.3
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/extensions/VCLErrorExtensions.kt +1 -2
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +64 -43
- package/ios/Utils/Converter.swift +45 -49
- package/ios/VclReactNative.mm +1 -1
- package/ios/VclReactNative.swift +3 -3
- package/lib/commonjs/api/VCLApi.js +1 -1
- package/lib/commonjs/api/VCLCryptoServiceType.js +19 -0
- package/lib/commonjs/api/VCLCryptoServiceType.js.map +1 -0
- package/lib/commonjs/api/entities/VCLDidJwk.js +4 -0
- package/lib/commonjs/api/entities/VCLPublicJwk.js +2 -0
- package/lib/commonjs/api/entities/{VCLJwkPublic.js.map → VCLPublicJwk.js.map} +1 -1
- package/lib/commonjs/api/entities/error/VCLError.js.map +1 -0
- package/lib/commonjs/api/entities/error/VCLErrorCode.js.map +1 -0
- package/lib/commonjs/api/entities/error/VCLStatusCode.js.map +1 -0
- package/lib/commonjs/api/entities/initialization/VCLCryptoServicesDescriptor.js +6 -0
- package/lib/commonjs/api/entities/initialization/VCLCryptoServicesDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/initialization/VCLInitializationDescriptor.js.map +1 -0
- package/lib/commonjs/api/entities/initialization/VCLJwtServiceUrls.js +2 -0
- package/lib/commonjs/api/entities/initialization/VCLJwtServiceUrls.js.map +1 -0
- package/lib/commonjs/api/entities/initialization/VCLKeyServiceUrls.js +2 -0
- package/lib/commonjs/api/entities/initialization/VCLKeyServiceUrls.js.map +1 -0
- package/lib/commonjs/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.js +6 -0
- package/lib/commonjs/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.js.map +1 -0
- package/lib/commonjs/index.js +3 -5
- 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/VCLCryptoServiceType.js +13 -0
- package/lib/module/api/VCLCryptoServiceType.js.map +1 -0
- package/lib/module/api/entities/VCLDidJwk.js +1 -1
- package/lib/module/api/entities/VCLPublicJwk.js +2 -0
- package/lib/module/api/entities/{VCLJwkPublic.js.map → VCLPublicJwk.js.map} +1 -1
- package/lib/module/api/entities/error/VCLError.js.map +1 -0
- package/lib/module/api/entities/error/VCLErrorCode.js.map +1 -0
- package/lib/module/api/entities/error/VCLStatusCode.js.map +1 -0
- package/lib/module/api/entities/initialization/VCLCryptoServicesDescriptor.js +2 -0
- package/lib/module/api/entities/initialization/VCLCryptoServicesDescriptor.js.map +1 -0
- package/lib/module/api/entities/initialization/VCLInitializationDescriptor.js.map +1 -0
- package/lib/module/api/entities/initialization/VCLJwtServiceUrls.js +2 -0
- package/lib/module/api/entities/initialization/VCLJwtServiceUrls.js.map +1 -0
- package/lib/module/api/entities/initialization/VCLKeyServiceUrls.js +2 -0
- package/lib/module/api/entities/initialization/VCLKeyServiceUrls.js.map +1 -0
- package/lib/module/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.js +2 -0
- package/lib/module/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.js.map +1 -0
- package/lib/module/index.js +3 -5
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/api/VCLApi.d.ts +3 -3
- package/lib/typescript/api/VCLApi.d.ts.map +1 -1
- package/lib/typescript/api/{VCLKeyServiceType.d.ts → VCLCryptoServiceType.d.ts} +2 -2
- package/lib/typescript/api/VCLCryptoServiceType.d.ts.map +1 -0
- package/lib/typescript/api/entities/VCLDidJwk.d.ts +9 -4
- package/lib/typescript/api/entities/VCLDidJwk.d.ts.map +1 -1
- package/lib/typescript/api/entities/VCLPresentationRequest.d.ts +2 -2
- package/lib/typescript/api/entities/{VCLJwkPublic.d.ts → VCLPublicJwk.d.ts} +2 -2
- package/lib/typescript/api/entities/VCLPublicJwk.d.ts.map +1 -0
- package/lib/typescript/api/entities/error/VCLError.d.ts.map +1 -0
- package/lib/typescript/api/entities/error/VCLErrorCode.d.ts.map +1 -0
- package/lib/typescript/api/entities/error/VCLStatusCode.d.ts.map +1 -0
- package/lib/typescript/api/entities/initialization/VCLCryptoServicesDescriptor.d.ts +13 -0
- package/lib/typescript/api/entities/initialization/VCLCryptoServicesDescriptor.d.ts.map +1 -0
- package/lib/typescript/api/entities/initialization/VCLInitializationDescriptor.d.ts +17 -0
- package/lib/typescript/api/entities/initialization/VCLInitializationDescriptor.d.ts.map +1 -0
- package/lib/typescript/api/entities/initialization/VCLJwtServiceUrls.d.ts +11 -0
- package/lib/typescript/api/entities/initialization/VCLJwtServiceUrls.d.ts.map +1 -0
- package/lib/typescript/api/entities/initialization/VCLKeyServiceUrls.d.ts +10 -0
- package/lib/typescript/api/entities/initialization/VCLKeyServiceUrls.d.ts.map +1 -0
- package/lib/typescript/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.d.ts +13 -0
- package/lib/typescript/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +11 -6
- package/lib/typescript/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/VCLApi.ts +4 -4
- package/src/api/{VCLKeyServiceType.ts → VCLCryptoServiceType.ts} +1 -1
- package/src/api/entities/VCLDidJwk.ts +10 -4
- package/src/api/entities/VCLPresentationRequest.ts +2 -2
- package/src/api/entities/{VCLJwkPublic.ts → VCLPublicJwk.ts} +1 -1
- package/src/api/entities/initialization/VCLCryptoServicesDescriptor.ts +14 -0
- package/src/api/entities/{VCLInitializationDescriptor.ts → initialization/VCLInitializationDescriptor.ts} +4 -4
- package/src/api/entities/initialization/VCLJwtServiceUrls.ts +11 -0
- package/src/api/entities/initialization/VCLKeyServiceUrls.ts +10 -0
- package/src/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.ts +14 -0
- package/src/index.tsx +16 -8
- package/velocitycareerlabs-vcl-react-native.podspec +2 -2
- package/lib/commonjs/api/VCLKeyServiceType.js +0 -19
- package/lib/commonjs/api/VCLKeyServiceType.js.map +0 -1
- package/lib/commonjs/api/entities/VCLError.js.map +0 -1
- package/lib/commonjs/api/entities/VCLErrorCode.js.map +0 -1
- package/lib/commonjs/api/entities/VCLInitializationDescriptor.js.map +0 -1
- package/lib/commonjs/api/entities/VCLJwkPublic.js +0 -2
- package/lib/commonjs/api/entities/VCLStatusCode.js.map +0 -1
- package/lib/module/api/VCLKeyServiceType.js +0 -13
- package/lib/module/api/VCLKeyServiceType.js.map +0 -1
- package/lib/module/api/entities/VCLError.js.map +0 -1
- package/lib/module/api/entities/VCLErrorCode.js.map +0 -1
- package/lib/module/api/entities/VCLInitializationDescriptor.js.map +0 -1
- package/lib/module/api/entities/VCLJwkPublic.js +0 -2
- package/lib/module/api/entities/VCLStatusCode.js.map +0 -1
- package/lib/typescript/api/VCLKeyServiceType.d.ts.map +0 -1
- package/lib/typescript/api/entities/VCLError.d.ts.map +0 -1
- package/lib/typescript/api/entities/VCLErrorCode.d.ts.map +0 -1
- package/lib/typescript/api/entities/VCLInitializationDescriptor.d.ts +0 -17
- package/lib/typescript/api/entities/VCLInitializationDescriptor.d.ts.map +0 -1
- package/lib/typescript/api/entities/VCLJwkPublic.d.ts.map +0 -1
- package/lib/typescript/api/entities/VCLStatusCode.d.ts.map +0 -1
- /package/lib/commonjs/api/entities/{VCLError.js → error/VCLError.js} +0 -0
- /package/lib/commonjs/api/entities/{VCLErrorCode.js → error/VCLErrorCode.js} +0 -0
- /package/lib/commonjs/api/entities/{VCLStatusCode.js → error/VCLStatusCode.js} +0 -0
- /package/lib/commonjs/api/entities/{VCLInitializationDescriptor.js → initialization/VCLInitializationDescriptor.js} +0 -0
- /package/lib/module/api/entities/{VCLError.js → error/VCLError.js} +0 -0
- /package/lib/module/api/entities/{VCLErrorCode.js → error/VCLErrorCode.js} +0 -0
- /package/lib/module/api/entities/{VCLStatusCode.js → error/VCLStatusCode.js} +0 -0
- /package/lib/module/api/entities/{VCLInitializationDescriptor.js → initialization/VCLInitializationDescriptor.js} +0 -0
- /package/lib/typescript/api/entities/{VCLError.d.ts → error/VCLError.d.ts} +0 -0
- /package/lib/typescript/api/entities/{VCLErrorCode.d.ts → error/VCLErrorCode.d.ts} +0 -0
- /package/lib/typescript/api/entities/{VCLStatusCode.d.ts → error/VCLStatusCode.d.ts} +0 -0
- /package/src/api/entities/{VCLError.ts → error/VCLError.ts} +0 -0
- /package/src/api/entities/{VCLErrorCode.ts → error/VCLErrorCode.ts} +0 -0
- /package/src/api/entities/{VCLStatusCode.ts → error/VCLStatusCode.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/entities/initialization/VCLCryptoServicesDescriptor.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/entities/initialization/VCLInitializationDescriptor.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/entities/initialization/VCLJwtServiceUrls.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/entities/initialization/VCLKeyServiceUrls.ts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.ts"],"mappings":""}
|
package/lib/module/index.js
CHANGED
|
@@ -8,14 +8,12 @@
|
|
|
8
8
|
import { VclApi } from './api/VCLApi';
|
|
9
9
|
import { VCLEnvironment } from './api/VCLEnvironment';
|
|
10
10
|
import { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';
|
|
11
|
-
// import type { VCLKeyServiceType } from './api/VCLKeyServiceType';
|
|
12
|
-
// import { VCLKeyServiceTypes } from './api/VCLKeyServiceType';
|
|
13
11
|
import { VCLCountryCodes } from './api/entities/VCLCountries';
|
|
14
12
|
import { VCLServiceType } from './api/entities/VCLServiceType';
|
|
15
13
|
import { VCLIssuingType } from './api/entities/VCLIssuingType';
|
|
16
|
-
import { VCLError } from './api/entities/VCLError';
|
|
17
|
-
import { VCLStatusCode } from './api/entities/VCLStatusCode';
|
|
18
|
-
import { VCLErrorCode } from './api/entities/VCLErrorCode';
|
|
14
|
+
import { VCLError } from './api/entities/error/VCLError';
|
|
15
|
+
import { VCLStatusCode } from './api/entities/error/VCLStatusCode';
|
|
16
|
+
import { VCLErrorCode } from './api/entities/error/VCLErrorCode';
|
|
19
17
|
export default VclApi;
|
|
20
18
|
export { VCLEnvironment, VCLXVnfProtocolVersion, VCLCountryCodes, VCLServiceType, VCLIssuingType, VCLError, VCLStatusCode, VCLErrorCode };
|
|
21
19
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["VclApi","VCLEnvironment","VCLXVnfProtocolVersion","VCLCountryCodes","VCLServiceType","VCLIssuingType","VCLError","VCLStatusCode","VCLErrorCode"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,cAAc;AACrC,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,sBAAsB,QAAQ,8BAA8B;
|
|
1
|
+
{"version":3,"names":["VclApi","VCLEnvironment","VCLXVnfProtocolVersion","VCLCountryCodes","VCLServiceType","VCLIssuingType","VCLError","VCLStatusCode","VCLErrorCode"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,MAAM,QAAQ,cAAc;AACrC,SAASC,cAAc,QAAQ,sBAAsB;AACrD,SAASC,sBAAsB,QAAQ,8BAA8B;AAQrE,SAASC,eAAe,QAAQ,6BAA6B;AAiC7D,SAASC,cAAc,QAAQ,+BAA+B;AAE9D,SAASC,cAAc,QAAQ,+BAA+B;AAW9D,SAASC,QAAQ,QAAQ,+BAA+B;AACxD,SAASC,aAAa,QAAQ,oCAAoC;AAClE,SAASC,YAAY,QAAQ,mCAAmC;AAEhE,eAAeR,MAAM;AACrB,SACEC,cAAc,EACdC,sBAAsB,EACtBC,eAAe,EACfC,cAAc,EACdC,cAAc,EACdC,QAAQ,EACRC,aAAa,EACbC,YAAY"}
|
|
@@ -20,12 +20,12 @@ import type { VCLOrganizations } from './entities/VCLOrganizations';
|
|
|
20
20
|
import type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';
|
|
21
21
|
import type { VCLPresentationRequest } from './entities/VCLPresentationRequest';
|
|
22
22
|
import type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';
|
|
23
|
-
import type {
|
|
23
|
+
import type { VCLPublicJwk } from './entities/VCLPublicJwk';
|
|
24
24
|
import type { VCLToken } from './entities/VCLToken';
|
|
25
25
|
import type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';
|
|
26
26
|
import type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';
|
|
27
27
|
import type { VCLCountries } from './entities/VCLCountries';
|
|
28
|
-
import type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';
|
|
28
|
+
import type { VCLInitializationDescriptor } from './entities/initialization/VCLInitializationDescriptor';
|
|
29
29
|
import type { VCLSubmissionResult } from './entities/VCLSubmissionResult';
|
|
30
30
|
import type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';
|
|
31
31
|
import type { VCLJwtDescriptor } from './entities/VCLJwtDescriptor';
|
|
@@ -46,7 +46,7 @@ export declare const VclApi: {
|
|
|
46
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
|
-
verifyJwt: (jwt: VCLJwt, jwkPublic:
|
|
49
|
+
verifyJwt: (jwt: VCLJwt, jwkPublic: VCLPublicJwk) => Promise<boolean>;
|
|
50
50
|
generateSignedJwt: (jwtDescriptor: VCLJwtDescriptor) => Promise<VCLJwt>;
|
|
51
51
|
generateDidJwk: () => Promise<VCLDidJwk>;
|
|
52
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VCLApi.d.ts","sourceRoot":"","sources":["../../../src/api/VCLApi.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,qDAAqD,CAAC;AACpH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,KAAK,EAAE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AAQ,IAAI,CAAC;wBAQQ,QAAQ,YAAY,CAAC;8BAQf,QAAQ,kBAAkB,CAAC;oCAQrB,QAAQ,wBAAwB,CAAC;4DASpC,gCAAgC,KAC9D,QAAQ,sBAAsB,CAAC;iDAWR,yBAAyB,WACxC,SAAS,KACjB,QAAQ,mBAAmB,CAAC;8CAYT,qBAAqB,KACxC,QAAQ,WAAW,CAAC;4DASU,gCAAgC,KAC9D,QAAQ,gBAAgB,CAAC;0DAWI,+BAA+B,KAC5D,QAAQ,qBAAqB,CAAC;+CAWL,2BAA2B,WAC5C,SAAS,KACjB,QAAQ,SAAS,CAAC;+CAYO,2BAA2B,SAC9C,QAAQ,KACd,QAAQ,SAAS,CAAC;+CAYO,2BAA2B,SAC9C,QAAQ,WACN,SAAS,KACjB,QAAQ,2BAA2B,CAAC;4EAaE,wCAAwC,KAC9E,QAAQ,8BAA8B,CAAC;oDAWb,4BAA4B,KACtD,QAAQ,kBAAkB,CAAC;qBAQP,MAAM,aAAa,YAAY,KAAG,QAAQ,OAAO,CAAC;uCASxD,gBAAgB,KAC9B,QAAQ,MAAM,CAAC;0BAQQ,QAAQ,SAAS,CAAC;CAO7C,CAAC"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Copyright 2022 Velocity Career Labs inc.
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
|
-
export declare enum
|
|
7
|
+
export declare enum VCLCryptoServiceType {
|
|
8
8
|
Local = "local",
|
|
9
9
|
Remote = "remote"
|
|
10
10
|
}
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=VCLCryptoServiceType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCryptoServiceType.d.ts","sourceRoot":"","sources":["../../../src/api/VCLCryptoServiceType.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,oBAAY,oBAAoB;IAC9B,KAAK,UAAU;IACf,MAAM,WAAW;CAClB"}
|
|
@@ -4,18 +4,23 @@
|
|
|
4
4
|
* Copyright 2022 Velocity Career Labs inc.
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
|
+
import type { VCLPublicJwk } from './VCLPublicJwk';
|
|
7
8
|
export interface VCLDidJwk {
|
|
8
9
|
/**
|
|
9
|
-
* The
|
|
10
|
+
* The did:jwk
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
+
did: string;
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* public JWK
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
+
publicJwk: VCLPublicJwk;
|
|
16
17
|
/**
|
|
17
18
|
* kid of jwt - did:jwk suffixed with #0
|
|
18
19
|
*/
|
|
19
20
|
kid: string;
|
|
21
|
+
/**
|
|
22
|
+
* The id of private key save in secure enclave
|
|
23
|
+
*/
|
|
24
|
+
keyId: string;
|
|
20
25
|
}
|
|
21
26
|
//# sourceMappingURL=VCLDidJwk.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VCLDidJwk.d.ts","sourceRoot":"","sources":["../../../../src/api/entities/VCLDidJwk.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"VCLDidJwk.d.ts","sourceRoot":"","sources":["../../../../src/api/entities/VCLDidJwk.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,SAAS,EAAE,YAAY,CAAC;IACxB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
import type { VCLJwt } from './VCLJwt';
|
|
8
|
-
import type {
|
|
8
|
+
import type { VCLPublicJwk } from './VCLPublicJwk';
|
|
9
9
|
export interface VCLPresentationRequest {
|
|
10
10
|
exchangeId: string;
|
|
11
11
|
jwt: VCLJwt;
|
|
12
|
-
|
|
12
|
+
publicJwk: VCLPublicJwk;
|
|
13
13
|
keyID: string;
|
|
14
14
|
presentationDefinitionId: string;
|
|
15
15
|
iss: string;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Copyright 2022 Velocity Career Labs inc.
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface VCLPublicJwk {
|
|
8
8
|
valueStr: string;
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=
|
|
10
|
+
//# sourceMappingURL=VCLPublicJwk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLPublicJwk.d.ts","sourceRoot":"","sources":["../../../../src/api/entities/VCLPublicJwk.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLError.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/error/VCLError.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,qBAAa,QAAS,SAAQ,KAAK;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;gBAER,KAAK,EAAE,GAAG;CAavB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLErrorCode.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/error/VCLErrorCode.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,oBAAY,YAAY;IAEtB,2BAA2B,mCAAmC;IAC9D,gCAAgC,wCAAwC;IACxE,8BAA8B,sCAAsC;IACpE,+BAA+B,uCAAuC;IACtE,4BAA4B,oCAAoC;IAChE,+BAA+B,uCAAuC;IACtE,iCAAiC,yCAAyC;CAC3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLStatusCode.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/error/VCLStatusCode.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,oBAAY,aAAa;IACvB,YAAY,IAAI;IAChB,iBAAiB,MAAM;CACxB"}
|
|
@@ -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
|
+
import type { VCLCryptoServiceType } from '../../VCLCryptoServiceType';
|
|
8
|
+
import type { VCLRemoteCryptoServicesUrlsDescriptor } from './VCLRemoteCryptoServicesUrlsDescriptor';
|
|
9
|
+
export interface VCLCryptoServicesDescriptor {
|
|
10
|
+
cryptoServiceType?: VCLCryptoServiceType;
|
|
11
|
+
remoteCryptoServicesUrlsDescriptor?: VCLRemoteCryptoServicesUrlsDescriptor;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=VCLCryptoServicesDescriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLCryptoServicesDescriptor.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/initialization/VCLCryptoServicesDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAErG,MAAM,WAAW,2BAA2B;IAC1C,iBAAiB,CAAC,EAAE,oBAAoB,CAAC;IACzC,kCAAkC,CAAC,EAAE,qCAAqC,CAAC;CAC5E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
import type { VCLEnvironment } from '../../VCLEnvironment';
|
|
8
|
+
import type { VCLCryptoServicesDescriptor } from './VCLCryptoServicesDescriptor';
|
|
9
|
+
import type { VCLXVnfProtocolVersion } from '../../VCLXVnfProtocolVersion';
|
|
10
|
+
export interface VCLInitializationDescriptor {
|
|
11
|
+
environment?: VCLEnvironment;
|
|
12
|
+
xVnfProtocolVersion?: VCLXVnfProtocolVersion;
|
|
13
|
+
cacheSequence?: number;
|
|
14
|
+
isDebugOn?: boolean;
|
|
15
|
+
cryptoServicesDescriptor?: VCLCryptoServicesDescriptor;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=VCLInitializationDescriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLInitializationDescriptor.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/initialization/VCLInitializationDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAE3E,MAAM,WAAW,2BAA2B;IAC1C,WAAW,CAAC,EAAE,cAAc,CAAC;IAC7B,mBAAmB,CAAC,EAAE,sBAAsB,CAAC;IAC7C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wBAAwB,CAAC,EAAE,2BAA2B,CAAC;CACxD"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
export interface VCLJwtServiceUrls {
|
|
8
|
+
jwtSignServiceUrl: string;
|
|
9
|
+
jwtVerifyServiceUrl: string;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=VCLJwtServiceUrls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLJwtServiceUrls.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/initialization/VCLJwtServiceUrls.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAmB,EAAE,MAAM,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLKeyServiceUrls.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/initialization/VCLKeyServiceUrls.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,iBAAiB;IAChC,sBAAsB,EAAE,MAAM,CAAC;CAChC"}
|
|
@@ -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
|
+
import type { VCLJwtServiceUrls } from './VCLJwtServiceUrls';
|
|
8
|
+
import type { VCLKeyServiceUrls } from './VCLKeyServiceUrls';
|
|
9
|
+
export interface VCLRemoteCryptoServicesUrlsDescriptor {
|
|
10
|
+
keyServiceUrls: VCLKeyServiceUrls;
|
|
11
|
+
jwtServiceUrls: VCLJwtServiceUrls;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=VCLRemoteCryptoServicesUrlsDescriptor.d.ts.map
|
package/lib/typescript/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VCLRemoteCryptoServicesUrlsDescriptor.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,MAAM,WAAW,qCAAqC;IACpD,cAAc,EAAE,iBAAiB,CAAC;IAClC,cAAc,EAAE,iBAAiB,CAAC;CACnC"}
|
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
import { VclApi } from './api/VCLApi';
|
|
8
8
|
import { VCLEnvironment } from './api/VCLEnvironment';
|
|
9
9
|
import { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';
|
|
10
|
+
import { VCLCryptoServiceType } from './api/VCLCryptoServiceType';
|
|
11
|
+
import type { VCLCryptoServicesDescriptor } from './api/entities/initialization/VCLCryptoServicesDescriptor';
|
|
12
|
+
import type { VCLJwtServiceUrls } from './api/entities/initialization/VCLJwtServiceUrls';
|
|
13
|
+
import type { VCLKeyServiceUrls } from './api/entities/initialization/VCLKeyServiceUrls';
|
|
14
|
+
import type { VCLRemoteCryptoServicesUrlsDescriptor } from './api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor';
|
|
10
15
|
import type { VCLCountry } from './api/entities/VCLCountry';
|
|
11
16
|
import type { VCLCountries } from './api/entities/VCLCountries';
|
|
12
17
|
import { VCLCountryCodes } from './api/entities/VCLCountries';
|
|
@@ -38,7 +43,7 @@ import type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganiz
|
|
|
38
43
|
import type { VCLPage } from './api/entities/VCLPage';
|
|
39
44
|
import type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';
|
|
40
45
|
import type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';
|
|
41
|
-
import type {
|
|
46
|
+
import type { VCLPublicJwk } from './api/entities/VCLPublicJwk';
|
|
42
47
|
import type { VCLPushDelegate } from './api/entities/VCLPushDelegate';
|
|
43
48
|
import type { VCLService } from './api/entities/VCLService';
|
|
44
49
|
import type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';
|
|
@@ -51,14 +56,14 @@ import type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCreden
|
|
|
51
56
|
import type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';
|
|
52
57
|
import type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';
|
|
53
58
|
import type { Dictionary } from './api/Dictionary';
|
|
54
|
-
import type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';
|
|
59
|
+
import type { VCLInitializationDescriptor } from './api/entities/initialization/VCLInitializationDescriptor';
|
|
55
60
|
import type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';
|
|
56
61
|
import type { VCLJwtDescriptor } from './api/entities/VCLJwtDescriptor';
|
|
57
62
|
import type { VCLDidJwk } from './api/entities/VCLDidJwk';
|
|
58
|
-
import { VCLError } from './api/entities/VCLError';
|
|
59
|
-
import { VCLStatusCode } from './api/entities/VCLStatusCode';
|
|
60
|
-
import { VCLErrorCode } from './api/entities/VCLErrorCode';
|
|
63
|
+
import { VCLError } from './api/entities/error/VCLError';
|
|
64
|
+
import { VCLStatusCode } from './api/entities/error/VCLStatusCode';
|
|
65
|
+
import { VCLErrorCode } from './api/entities/error/VCLErrorCode';
|
|
61
66
|
export default VclApi;
|
|
62
67
|
export { VCLEnvironment, VCLXVnfProtocolVersion, VCLCountryCodes, VCLServiceType, VCLIssuingType, VCLError, VCLStatusCode, VCLErrorCode, };
|
|
63
|
-
export type { Dictionary, VCLCountry, VCLCountries, 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,
|
|
68
|
+
export type { Dictionary, VCLCountry, VCLCountries, 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, VCLPublicJwk, VCLPushDelegate, VCLService, VCLServiceCredentialAgentIssuer, VCLServiceTypes, VCLSubmissionResult, VCLToken, VCLVerifiableCredential, VCLVerifiedProfile, VCLVerifiedProfileDescriptor, VCLInitializationDescriptor, VCLPresentationRequestDescriptor, VCLJwtDescriptor, VCLDidJwk, VCLCryptoServiceType, VCLCryptoServicesDescriptor, VCLJwtServiceUrls, VCLKeyServiceUrls, VCLRemoteCryptoServicesUrlsDescriptor, };
|
|
64
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2DAA2D,CAAC;AAC7G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,qEAAqE,CAAC;AACjI,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,KAAK,EAAE,q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M,0BAA0B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAEjE,eAAe,MAAM,CAAC;AACtB,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,cAAc,EACd,QAAQ,EACR,aAAa,EACb,YAAY,GACb,CAAC;AACF,YAAY,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,SAAS,EACT,UAAU,EACV,qBAAqB,EACrB,+BAA+B,EAC/B,yCAAyC,EACzC,wCAAwC,EACxC,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,8BAA8B,EAC9B,wCAAwC,EACxC,sCAAsC,EACtC,WAAW,EACX,WAAW,EACX,qBAAqB,EACrB,SAAS,EACT,2BAA2B,EAC3B,2BAA2B,EAC3B,MAAM,EACN,2BAA2B,EAC3B,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,gCAAgC,EAChC,OAAO,EACP,sBAAsB,EACtB,yBAAyB,EACzB,YAAY,EACZ,eAAe,EACf,UAAU,EACV,+BAA+B,EAC/B,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,uBAAuB,EACvB,kBAAkB,EAClB,4BAA4B,EAC5B,2BAA2B,EAC3B,gCAAgC,EAChC,gBAAgB,EAChB,SAAS,EACT,oBAAoB,EACpB,2BAA2B,EAC3B,iBAAiB,EACjB,iBAAiB,EACjB,qCAAqC,GACtC,CAAC"}
|
package/package.json
CHANGED
package/src/api/VCLApi.ts
CHANGED
|
@@ -21,12 +21,12 @@ import type { VCLOrganizations } from './entities/VCLOrganizations';
|
|
|
21
21
|
import type { VCLOrganizationsSearchDescriptor } from './entities/VCLOrganizationsSearchDescriptor';
|
|
22
22
|
import type { VCLPresentationRequest } from './entities/VCLPresentationRequest';
|
|
23
23
|
import type { VCLPresentationSubmission } from './entities/VCLPresentationSubmission';
|
|
24
|
-
import type {
|
|
24
|
+
import type { VCLPublicJwk } from './entities/VCLPublicJwk';
|
|
25
25
|
import type { VCLToken } from './entities/VCLToken';
|
|
26
26
|
import type { VCLVerifiedProfile } from './entities/VCLVerifiedProfile';
|
|
27
27
|
import type { VCLVerifiedProfileDescriptor } from './entities/VCLVerifiedProfileDescriptor';
|
|
28
28
|
import type { VCLCountries } from './entities/VCLCountries';
|
|
29
|
-
import type { VCLInitializationDescriptor } from './entities/VCLInitializationDescriptor';
|
|
29
|
+
import type { VCLInitializationDescriptor } from './entities/initialization/VCLInitializationDescriptor';
|
|
30
30
|
import type { VCLSubmissionResult } from './entities/VCLSubmissionResult';
|
|
31
31
|
import type { VCLPresentationRequestDescriptor } from './entities/VCLPresentationRequestDescriptor';
|
|
32
32
|
import type { VCLJwtDescriptor } from './entities/VCLJwtDescriptor';
|
|
@@ -34,7 +34,7 @@ import type { VCLDidJwk } from './entities/VCLDidJwk';
|
|
|
34
34
|
import type { VCLCredentialTypes } from './entities/VCLCredentialTypes';
|
|
35
35
|
|
|
36
36
|
import { NativeModules } from 'react-native';
|
|
37
|
-
import { VCLError } from './entities/VCLError';
|
|
37
|
+
import { VCLError } from './entities/error/VCLError';
|
|
38
38
|
const { VclReactNative } = NativeModules;
|
|
39
39
|
|
|
40
40
|
export const VclApi = {
|
|
@@ -198,7 +198,7 @@ export const VclApi = {
|
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
|
|
201
|
-
verifyJwt: async (jwt: VCLJwt, jwkPublic:
|
|
201
|
+
verifyJwt: async (jwt: VCLJwt, jwkPublic: VCLPublicJwk): Promise<boolean> => {
|
|
202
202
|
try {
|
|
203
203
|
return await VclReactNative.verifyJwt(jwt, jwkPublic);
|
|
204
204
|
} catch (e) {
|
|
@@ -5,17 +5,23 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import type { VCLPublicJwk } from './VCLPublicJwk';
|
|
9
|
+
|
|
8
10
|
export interface VCLDidJwk {
|
|
9
11
|
/**
|
|
10
|
-
* The
|
|
12
|
+
* The did:jwk
|
|
11
13
|
*/
|
|
12
|
-
|
|
14
|
+
did: string;
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
16
|
+
* public JWK
|
|
15
17
|
*/
|
|
16
|
-
|
|
18
|
+
publicJwk: VCLPublicJwk;
|
|
17
19
|
/**
|
|
18
20
|
* kid of jwt - did:jwk suffixed with #0
|
|
19
21
|
*/
|
|
20
22
|
kid: string;
|
|
23
|
+
/**
|
|
24
|
+
* The id of private key save in secure enclave
|
|
25
|
+
*/
|
|
26
|
+
keyId: string;
|
|
21
27
|
}
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type { VCLJwt } from './VCLJwt';
|
|
9
|
-
import type {
|
|
9
|
+
import type { VCLPublicJwk } from './VCLPublicJwk';
|
|
10
10
|
|
|
11
11
|
export interface VCLPresentationRequest {
|
|
12
12
|
exchangeId: string;
|
|
13
13
|
jwt: VCLJwt;
|
|
14
|
-
|
|
14
|
+
publicJwk: VCLPublicJwk;
|
|
15
15
|
keyID: string;
|
|
16
16
|
presentationDefinitionId: string;
|
|
17
17
|
iss: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import type { VCLCryptoServiceType } from '../../VCLCryptoServiceType';
|
|
9
|
+
import type { VCLRemoteCryptoServicesUrlsDescriptor } from './VCLRemoteCryptoServicesUrlsDescriptor';
|
|
10
|
+
|
|
11
|
+
export interface VCLCryptoServicesDescriptor {
|
|
12
|
+
cryptoServiceType?: VCLCryptoServiceType;
|
|
13
|
+
remoteCryptoServicesUrlsDescriptor?: VCLRemoteCryptoServicesUrlsDescriptor;
|
|
14
|
+
}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
* SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import type { VCLEnvironment } from '
|
|
9
|
-
import type {
|
|
10
|
-
import type { VCLXVnfProtocolVersion } from '
|
|
8
|
+
import type { VCLEnvironment } from '../../VCLEnvironment';
|
|
9
|
+
import type { VCLCryptoServicesDescriptor } from './VCLCryptoServicesDescriptor';
|
|
10
|
+
import type { VCLXVnfProtocolVersion } from '../../VCLXVnfProtocolVersion';
|
|
11
11
|
|
|
12
12
|
export interface VCLInitializationDescriptor {
|
|
13
13
|
environment?: VCLEnvironment;
|
|
14
|
-
keyServiceType?: VCLKeyServiceType;
|
|
15
14
|
xVnfProtocolVersion?: VCLXVnfProtocolVersion;
|
|
16
15
|
cacheSequence?: number;
|
|
17
16
|
isDebugOn?: boolean;
|
|
17
|
+
cryptoServicesDescriptor?: VCLCryptoServicesDescriptor;
|
|
18
18
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Created by Michael Avoyan.
|
|
3
|
+
*
|
|
4
|
+
* Copyright 2022 Velocity Career Labs inc.
|
|
5
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import type { VCLJwtServiceUrls } from './VCLJwtServiceUrls';
|
|
9
|
+
import type { VCLKeyServiceUrls } from './VCLKeyServiceUrls';
|
|
10
|
+
|
|
11
|
+
export interface VCLRemoteCryptoServicesUrlsDescriptor {
|
|
12
|
+
keyServiceUrls: VCLKeyServiceUrls;
|
|
13
|
+
jwtServiceUrls: VCLJwtServiceUrls;
|
|
14
|
+
}
|
package/src/index.tsx
CHANGED
|
@@ -8,8 +8,11 @@
|
|
|
8
8
|
import { VclApi } from './api/VCLApi';
|
|
9
9
|
import { VCLEnvironment } from './api/VCLEnvironment';
|
|
10
10
|
import { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
import { VCLCryptoServiceType } from './api/VCLCryptoServiceType';
|
|
12
|
+
import type { VCLCryptoServicesDescriptor } from './api/entities/initialization/VCLCryptoServicesDescriptor';
|
|
13
|
+
import type { VCLJwtServiceUrls } from './api/entities/initialization/VCLJwtServiceUrls';
|
|
14
|
+
import type { VCLKeyServiceUrls } from './api/entities/initialization/VCLKeyServiceUrls';
|
|
15
|
+
import type { VCLRemoteCryptoServicesUrlsDescriptor } from './api/entities/initialization/VCLRemoteCryptoServicesUrlsDescriptor';
|
|
13
16
|
import type { VCLCountry } from './api/entities/VCLCountry';
|
|
14
17
|
import type { VCLCountries } from './api/entities/VCLCountries';
|
|
15
18
|
import { VCLCountryCodes } from './api/entities/VCLCountries';
|
|
@@ -41,7 +44,7 @@ import type { VCLOrganizationsSearchDescriptor } from './api/entities/VCLOrganiz
|
|
|
41
44
|
import type { VCLPage } from './api/entities/VCLPage';
|
|
42
45
|
import type { VCLPresentationRequest } from './api/entities/VCLPresentationRequest';
|
|
43
46
|
import type { VCLPresentationSubmission } from './api/entities/VCLPresentationSubmission';
|
|
44
|
-
import type {
|
|
47
|
+
import type { VCLPublicJwk } from './api/entities/VCLPublicJwk';
|
|
45
48
|
import type { VCLPushDelegate } from './api/entities/VCLPushDelegate';
|
|
46
49
|
import type { VCLService } from './api/entities/VCLService';
|
|
47
50
|
import type { VCLServiceCredentialAgentIssuer } from './api/entities/VCLServiceCredentialAgentIssuer';
|
|
@@ -54,13 +57,13 @@ import type { VCLVerifiableCredential } from './api/entities/VCLVerifiableCreden
|
|
|
54
57
|
import type { VCLVerifiedProfile } from './api/entities/VCLVerifiedProfile';
|
|
55
58
|
import type { VCLVerifiedProfileDescriptor } from './api/entities/VCLVerifiedProfileDescriptor';
|
|
56
59
|
import type { Dictionary } from './api/Dictionary';
|
|
57
|
-
import type { VCLInitializationDescriptor } from './api/entities/VCLInitializationDescriptor';
|
|
60
|
+
import type { VCLInitializationDescriptor } from './api/entities/initialization/VCLInitializationDescriptor';
|
|
58
61
|
import type { VCLPresentationRequestDescriptor } from './api/entities/VCLPresentationRequestDescriptor';
|
|
59
62
|
import type { VCLJwtDescriptor } from './api/entities/VCLJwtDescriptor';
|
|
60
63
|
import type { VCLDidJwk } from './api/entities/VCLDidJwk';
|
|
61
|
-
import { VCLError } from './api/entities/VCLError';
|
|
62
|
-
import { VCLStatusCode } from './api/entities/VCLStatusCode';
|
|
63
|
-
import { VCLErrorCode } from './api/entities/VCLErrorCode';
|
|
64
|
+
import { VCLError } from './api/entities/error/VCLError';
|
|
65
|
+
import { VCLStatusCode } from './api/entities/error/VCLStatusCode';
|
|
66
|
+
import { VCLErrorCode } from './api/entities/error/VCLErrorCode';
|
|
64
67
|
|
|
65
68
|
export default VclApi;
|
|
66
69
|
export {
|
|
@@ -105,7 +108,7 @@ export type {
|
|
|
105
108
|
VCLPage,
|
|
106
109
|
VCLPresentationRequest,
|
|
107
110
|
VCLPresentationSubmission,
|
|
108
|
-
|
|
111
|
+
VCLPublicJwk,
|
|
109
112
|
VCLPushDelegate,
|
|
110
113
|
VCLService,
|
|
111
114
|
VCLServiceCredentialAgentIssuer,
|
|
@@ -119,4 +122,9 @@ export type {
|
|
|
119
122
|
VCLPresentationRequestDescriptor,
|
|
120
123
|
VCLJwtDescriptor,
|
|
121
124
|
VCLDidJwk,
|
|
125
|
+
VCLCryptoServiceType,
|
|
126
|
+
VCLCryptoServicesDescriptor,
|
|
127
|
+
VCLJwtServiceUrls,
|
|
128
|
+
VCLKeyServiceUrls,
|
|
129
|
+
VCLRemoteCryptoServicesUrlsDescriptor,
|
|
122
130
|
};
|
|
@@ -17,9 +17,9 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
18
|
|
|
19
19
|
# https://github.com/CocoaPods/CocoaPods/issues/7234#issuecomment-346136322
|
|
20
|
-
s.static_framework = true
|
|
20
|
+
# s.static_framework = true
|
|
21
21
|
|
|
22
|
-
s.dependency "VCL", "1.
|
|
22
|
+
s.dependency "VCL", "1.16.3"
|
|
23
23
|
|
|
24
24
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
25
25
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|