@sphereon/oid4vci-client 0.1.1-unstable.1 → 0.1.1-unstable.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/README.md +52 -4
- package/dist/main/lib/AccessTokenClient.d.ts +6 -6
- package/dist/main/lib/AccessTokenClient.js +20 -16
- package/dist/main/lib/MetadataClient.d.ts +36 -0
- package/dist/main/lib/MetadataClient.js +116 -0
- package/dist/main/lib/functions/HttpUtils.d.ts +6 -0
- package/dist/main/lib/functions/HttpUtils.js +31 -2
- package/dist/main/lib/index.d.ts +1 -0
- package/dist/main/lib/index.js +2 -1
- package/dist/main/lib/types/Authorization.types.d.ts +4 -1
- package/dist/main/lib/types/Authorization.types.js +1 -1
- package/dist/main/lib/types/Generic.types.d.ts +11 -0
- package/dist/main/lib/types/Generic.types.js +8 -2
- package/dist/main/lib/types/OAuth2ASMetadata.d.ts +37 -0
- package/dist/main/lib/types/OAuth2ASMetadata.js +3 -0
- package/dist/main/lib/types/OID4VCIServerMetadata.d.ts +65 -0
- package/dist/main/lib/types/OID4VCIServerMetadata.js +3 -0
- package/dist/main/lib/types/index.d.ts +2 -0
- package/dist/main/lib/types/index.js +3 -1
- package/dist/main/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
[](https://github.com/Sphereon-Opensource/oid4vci-client/actions/workflows/main.yml) [](https://codecov.io/gh/Sphereon-Opensource/oid4vci-client) [](https://npm.im/@sphereon/oid4vci-client)
|
|
9
9
|
|
|
10
|
-
|
|
11
10
|
_IMPORTANT this package is in an early development stage and does not support all functionality from the OID4VCI spec
|
|
12
11
|
yet!_
|
|
13
12
|
|
|
@@ -62,6 +61,47 @@ console.log(initiationRequestWithUrl);
|
|
|
62
61
|
*/
|
|
63
62
|
```
|
|
64
63
|
|
|
64
|
+
#### Getting issuer/token metadata
|
|
65
|
+
|
|
66
|
+
The OID4VCI spec defines a server metadata object that contains information about the issuer and the credentials they
|
|
67
|
+
support. Next to this predefined endpoint there are also the well-known locations for OIDC Discovery configuration and
|
|
68
|
+
Oauth2 Authorization Server configuration. These contain for instance the token endponts.
|
|
69
|
+
The MetadataClient checks the OID4VCI well-known location for the medata and existence of a token endpoint. If the
|
|
70
|
+
OID4VCI well-known location is not found, the OIDC/OAuth2 well-known locations will be tried:
|
|
71
|
+
|
|
72
|
+
Example:
|
|
73
|
+
|
|
74
|
+
````typescript
|
|
75
|
+
import { MetadataClient } from './MetadataClient';
|
|
76
|
+
|
|
77
|
+
const metadata = await MetadataClient.retrieveAllMetadataFromInitiation(initiationRequestWithUrl);
|
|
78
|
+
|
|
79
|
+
console.log(metadata)
|
|
80
|
+
/**
|
|
81
|
+
* {
|
|
82
|
+
* issuer: 'https://server.example.com',
|
|
83
|
+
* credential_endpoint: 'https://server.example.com/credential',
|
|
84
|
+
* token_endpoint: 'https://server.example.com/token',
|
|
85
|
+
* jwks_uri: 'https://server.example.com/jwks',
|
|
86
|
+
* grant_types_supported: ['urn:ietf:params:oauth:grant-type:pre-authorized_code'],
|
|
87
|
+
* credentials_supported: {
|
|
88
|
+
* OpenBadgeCredential: {
|
|
89
|
+
* formats: {
|
|
90
|
+
* jwt_vc: {
|
|
91
|
+
* types: [
|
|
92
|
+
* 'https://imsglobal.github.io/openbadges-specification/ob_v3p0.html#OpenBadgeCredential',
|
|
93
|
+
* 'https://w3id.org/ngi/OpenBadgeExtendedCredential',
|
|
94
|
+
* ],
|
|
95
|
+
* binding_methods_supported: ['did'],
|
|
96
|
+
* cryptographic_suites_supported: ['ES256'],
|
|
97
|
+
* },
|
|
98
|
+
* },
|
|
99
|
+
* },
|
|
100
|
+
* },
|
|
101
|
+
* }
|
|
102
|
+
*/
|
|
103
|
+
````
|
|
104
|
+
|
|
65
105
|
#### Acquiring the Access Token
|
|
66
106
|
|
|
67
107
|
Now you will need to get an access token from the oAuth2 Authorization Server (AS), using some values from
|
|
@@ -84,7 +124,10 @@ const asOpts: AuthorizationServerOpts = {
|
|
|
84
124
|
as: "as.example.com"
|
|
85
125
|
}
|
|
86
126
|
|
|
87
|
-
const accessTokenResponse = AccessTokenClient.acquireAccessTokenUsingIssuanceInitiation(initiationRequestWithUrl, clientId, {
|
|
127
|
+
const accessTokenResponse = AccessTokenClient.acquireAccessTokenUsingIssuanceInitiation(initiationRequestWithUrl, clientId, {
|
|
128
|
+
pin,
|
|
129
|
+
asOpts
|
|
130
|
+
})
|
|
88
131
|
console.log(accessTokenResponse)
|
|
89
132
|
/**
|
|
90
133
|
* {
|
|
@@ -98,7 +141,8 @@ console.log(accessTokenResponse)
|
|
|
98
141
|
|
|
99
142
|
#### Asking for the Verifiable Credential to be issued
|
|
100
143
|
|
|
101
|
-
First of all we need to hook up a library that can sign JWTs. The library makes no assumptions as it will provide
|
|
144
|
+
First of all we need to hook up a library that can sign JWTs. The library makes no assumptions as it will provide
|
|
145
|
+
callbacks to perform the signature. In this example we will be using the jose library.
|
|
102
146
|
|
|
103
147
|
````typescript
|
|
104
148
|
|
|
@@ -115,6 +159,7 @@ const signJWT = async (args: JWTSignerArgs): Promise<string> => {
|
|
|
115
159
|
````
|
|
116
160
|
|
|
117
161
|
The JWT Signer Interfaces:
|
|
162
|
+
|
|
118
163
|
````typescript
|
|
119
164
|
export type Alg = 'ES256' | 'EdDSA';
|
|
120
165
|
|
|
@@ -155,7 +200,8 @@ export type JWTSignerCallback = (args: JWTSignerArgs) => Promise<string>;
|
|
|
155
200
|
export type JWTVerifyCallback = (args: JWTVerifyArgs) => Promise<void>;
|
|
156
201
|
````
|
|
157
202
|
|
|
158
|
-
Now it is time to request the actual Credential(s) from the Issuer. The example uses a DID:JWK .The DID:JWK should match
|
|
203
|
+
Now it is time to request the actual Credential(s) from the Issuer. The example uses a DID:JWK .The DID:JWK should match
|
|
204
|
+
the keypair created earlier.
|
|
159
205
|
|
|
160
206
|
````typescript
|
|
161
207
|
import { CredentialRequestClientBuilder, CredentialResponse, ProofOfPossessionOpts } from './CredentialIssuance.types';
|
|
@@ -185,7 +231,9 @@ const credentialResponse: CredentialResponse = await credentialRequestClient.acq
|
|
|
185
231
|
````
|
|
186
232
|
|
|
187
233
|
### Interfaces
|
|
234
|
+
|
|
188
235
|
Some important interfaces are described below:
|
|
236
|
+
|
|
189
237
|
```typescript
|
|
190
238
|
export interface IssuanceInitiationRequestPayload {
|
|
191
239
|
issuer: string; //REQUIRED The issuer URL of the Credential issuer, the Wallet is requested to obtain one or more Credentials from.
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { AccessTokenRequest, AccessTokenRequestOpts, AccessTokenResponse, AuthorizationServerOpts, ErrorResponse, IssuanceInitiationRequestPayload, IssuanceInitiationWithBaseUrl,
|
|
1
|
+
import { AccessTokenRequest, AccessTokenRequestOpts, AccessTokenResponse, AuthorizationServerOpts, ErrorResponse, IssuanceInitiationRequestPayload, IssuanceInitiationWithBaseUrl, IssuerOpts, OID4VCIServerMetadata } from './types';
|
|
2
2
|
export declare class AccessTokenClient {
|
|
3
|
-
acquireAccessTokenUsingIssuanceInitiation(issuanceInitiation: IssuanceInitiationWithBaseUrl,
|
|
4
|
-
acquireAccessTokenUsingRequest(accessTokenRequest: AccessTokenRequest, opts
|
|
3
|
+
acquireAccessTokenUsingIssuanceInitiation(issuanceInitiation: IssuanceInitiationWithBaseUrl, opts?: AccessTokenRequestOpts): Promise<AccessTokenResponse | ErrorResponse>;
|
|
4
|
+
acquireAccessTokenUsingRequest(accessTokenRequest: AccessTokenRequest, opts?: {
|
|
5
5
|
isPinRequired?: boolean;
|
|
6
|
+
metadata?: OID4VCIServerMetadata;
|
|
6
7
|
asOpts?: AuthorizationServerOpts;
|
|
7
|
-
issuerOpts?:
|
|
8
|
+
issuerOpts?: IssuerOpts;
|
|
8
9
|
}): Promise<AccessTokenResponse | ErrorResponse>;
|
|
9
|
-
createAccessTokenRequest(issuanceInitiationRequest: IssuanceInitiationRequestPayload,
|
|
10
|
+
createAccessTokenRequest(issuanceInitiationRequest: IssuanceInitiationRequestPayload, opts?: AccessTokenRequestOpts): Promise<AccessTokenRequest>;
|
|
10
11
|
private assertPreAuthorizedGrantType;
|
|
11
12
|
private assertNumericPin;
|
|
12
13
|
private assertNonEmptyPreAuthorizedCode;
|
|
13
|
-
private assertNonEmptyClientId;
|
|
14
14
|
private validate;
|
|
15
15
|
private sendAuthCode;
|
|
16
16
|
private determineTokenURL;
|
|
@@ -11,10 +11,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AccessTokenClient = void 0;
|
|
13
13
|
const ssi_types_1 = require("@sphereon/ssi-types");
|
|
14
|
+
const MetadataClient_1 = require("./MetadataClient");
|
|
14
15
|
const functions_1 = require("./functions");
|
|
15
16
|
const types_1 = require("./types");
|
|
16
17
|
class AccessTokenClient {
|
|
17
|
-
acquireAccessTokenUsingIssuanceInitiation(issuanceInitiation,
|
|
18
|
+
acquireAccessTokenUsingIssuanceInitiation(issuanceInitiation, opts) {
|
|
18
19
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
20
|
const { issuanceInitiationRequest } = issuanceInitiation;
|
|
20
21
|
const reqOpts = {
|
|
@@ -22,21 +23,28 @@ class AccessTokenClient {
|
|
|
22
23
|
issuerOpts: { issuer: issuanceInitiationRequest.issuer },
|
|
23
24
|
asOpts: (opts === null || opts === void 0 ? void 0 : opts.asOpts) ? Object.assign({}, opts.asOpts) : undefined,
|
|
24
25
|
};
|
|
25
|
-
return yield this.acquireAccessTokenUsingRequest(yield this.createAccessTokenRequest(issuanceInitiationRequest,
|
|
26
|
+
return yield this.acquireAccessTokenUsingRequest(yield this.createAccessTokenRequest(issuanceInitiationRequest, opts), reqOpts);
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
29
|
acquireAccessTokenUsingRequest(accessTokenRequest, opts) {
|
|
30
|
+
var _a;
|
|
29
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
32
|
this.validate(accessTokenRequest, opts === null || opts === void 0 ? void 0 : opts.isPinRequired);
|
|
31
|
-
const requestTokenURL = this.determineTokenURL(opts === null || opts === void 0 ? void 0 : opts.asOpts, opts === null || opts === void 0 ? void 0 : opts.issuerOpts)
|
|
33
|
+
const requestTokenURL = this.determineTokenURL(opts === null || opts === void 0 ? void 0 : opts.asOpts, opts === null || opts === void 0 ? void 0 : opts.issuerOpts, (opts === null || opts === void 0 ? void 0 : opts.metadata)
|
|
34
|
+
? opts === null || opts === void 0 ? void 0 : opts.metadata
|
|
35
|
+
: ((_a = opts === null || opts === void 0 ? void 0 : opts.issuerOpts) === null || _a === void 0 ? void 0 : _a.fetchMetadata)
|
|
36
|
+
? yield MetadataClient_1.MetadataClient.retrieveOID4VCIServerMetadata(opts === null || opts === void 0 ? void 0 : opts.issuerOpts.issuer)
|
|
37
|
+
: undefined);
|
|
32
38
|
return this.sendAuthCode(requestTokenURL, accessTokenRequest);
|
|
33
39
|
});
|
|
34
40
|
}
|
|
35
|
-
createAccessTokenRequest(issuanceInitiationRequest,
|
|
41
|
+
createAccessTokenRequest(issuanceInitiationRequest, opts) {
|
|
42
|
+
var _a;
|
|
36
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
const request = {
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
const request = {};
|
|
45
|
+
if ((_a = opts === null || opts === void 0 ? void 0 : opts.asOpts) === null || _a === void 0 ? void 0 : _a.clientId) {
|
|
46
|
+
opts.asOpts.clientId;
|
|
47
|
+
}
|
|
40
48
|
if (issuanceInitiationRequest.user_pin_required) {
|
|
41
49
|
this.assertNumericPin(true, opts.pin);
|
|
42
50
|
request.user_pin = opts.pin;
|
|
@@ -75,17 +83,11 @@ class AccessTokenClient {
|
|
|
75
83
|
throw new Error('Pre-authorization must be proven by presenting the pre-authorized code. Code must be present.');
|
|
76
84
|
}
|
|
77
85
|
}
|
|
78
|
-
assertNonEmptyClientId(accessTokenRequest) {
|
|
79
|
-
if (!accessTokenRequest.client_id || accessTokenRequest.client_id.length < 1) {
|
|
80
|
-
throw new Error('The client Id must be present.');
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
86
|
validate(accessTokenRequest, isPinRequired) {
|
|
84
87
|
if (accessTokenRequest.grant_type === types_1.GrantTypes.PRE_AUTHORIZED_CODE) {
|
|
85
88
|
this.assertPreAuthorizedGrantType(accessTokenRequest.grant_type);
|
|
86
89
|
this.assertNonEmptyPreAuthorizedCode(accessTokenRequest);
|
|
87
90
|
this.assertNumericPin(isPinRequired, accessTokenRequest.user_pin);
|
|
88
|
-
this.assertNonEmptyClientId(accessTokenRequest);
|
|
89
91
|
}
|
|
90
92
|
else {
|
|
91
93
|
this.throwNotSupportedFlow();
|
|
@@ -97,13 +99,15 @@ class AccessTokenClient {
|
|
|
97
99
|
return yield response.json();
|
|
98
100
|
});
|
|
99
101
|
}
|
|
100
|
-
determineTokenURL(asOpts, issuerOpts) {
|
|
102
|
+
determineTokenURL(asOpts, issuerOpts, metadata) {
|
|
101
103
|
if (!asOpts && !issuerOpts) {
|
|
102
104
|
throw new Error('Cannot determine token URL if no issuer and no Authorization Server values are present');
|
|
103
105
|
}
|
|
104
106
|
const url = asOpts
|
|
105
107
|
? this.creatTokenURLFromURL(asOpts.as, asOpts.tokenEndpoint)
|
|
106
|
-
:
|
|
108
|
+
: metadata
|
|
109
|
+
? metadata.token_endpoint
|
|
110
|
+
: this.creatTokenURLFromURL(issuerOpts.issuer, issuerOpts.tokenEndpoint);
|
|
107
111
|
if (!url || !ssi_types_1.ObjectUtils.isString(url)) {
|
|
108
112
|
throw new Error('No authorization server token URL present. Cannot acquire access token');
|
|
109
113
|
}
|
|
@@ -120,4 +124,4 @@ class AccessTokenClient {
|
|
|
120
124
|
}
|
|
121
125
|
}
|
|
122
126
|
exports.AccessTokenClient = AccessTokenClient;
|
|
123
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
127
|
+
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xDQUFDLENBQUM7SUFDaEUsQ0FBQztDQUNGO0FBeEhELDhDQXdIQyJ9
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EndpointMetadata, IssuanceInitiationRequestPayload, IssuanceInitiationWithBaseUrl, OID4VCIServerMetadata, WellKnownEndpoints } from './types';
|
|
2
|
+
export declare class MetadataClient {
|
|
3
|
+
static async: any;
|
|
4
|
+
/**
|
|
5
|
+
* Retrieve metadata using the Initiation obtained from a previous step
|
|
6
|
+
*
|
|
7
|
+
* @param initiation
|
|
8
|
+
*/
|
|
9
|
+
static retrieveAllMetadataFromInitiation(initiation: IssuanceInitiationWithBaseUrl): Promise<EndpointMetadata>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve the metada using the initiation request obtained from a previous step
|
|
12
|
+
* @param initiationRequest
|
|
13
|
+
*/
|
|
14
|
+
static retrieveAllMetadataFromInitiationRequest(initiationRequest: IssuanceInitiationRequestPayload): Promise<EndpointMetadata>;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve all metadata from an issuer
|
|
17
|
+
* @param issuerHost The issuer hostname
|
|
18
|
+
*/
|
|
19
|
+
static retrieveAllMetadata(issuerHost: string): Promise<EndpointMetadata>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve only the OID4VCI metadata for the issuer. So no OIDC/OAuth2 metadata
|
|
22
|
+
*
|
|
23
|
+
* @param issuerHost The issuer hostname
|
|
24
|
+
*/
|
|
25
|
+
static retrieveOID4VCIServerMetadata(issuerHost: string): Promise<OID4VCIServerMetadata | undefined>;
|
|
26
|
+
/**
|
|
27
|
+
* Allows to retrieve information from a well-known location
|
|
28
|
+
*
|
|
29
|
+
* @param host The host
|
|
30
|
+
* @param endpointType The endpoint type, currently supports OID4VCI, OIDC and OAuth2 endpoint types
|
|
31
|
+
* @param opts Options, like for instance whether an error should be thrown in case the endpoint doesn't exist
|
|
32
|
+
*/
|
|
33
|
+
static retrieveWellknown<T>(host: string, endpointType: WellKnownEndpoints, opts?: {
|
|
34
|
+
errorOnNotFound?: boolean;
|
|
35
|
+
}): Promise<T | undefined>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MetadataClient = void 0;
|
|
13
|
+
const functions_1 = require("./functions");
|
|
14
|
+
const types_1 = require("./types");
|
|
15
|
+
class MetadataClient {
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve metadata using the Initiation obtained from a previous step
|
|
18
|
+
*
|
|
19
|
+
* @param initiation
|
|
20
|
+
*/
|
|
21
|
+
static retrieveAllMetadataFromInitiation(initiation) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
return MetadataClient.retrieveAllMetadataFromInitiationRequest(initiation.issuanceInitiationRequest);
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve the metada using the initiation request obtained from a previous step
|
|
28
|
+
* @param initiationRequest
|
|
29
|
+
*/
|
|
30
|
+
static retrieveAllMetadataFromInitiationRequest(initiationRequest) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return MetadataClient.retrieveAllMetadata(initiationRequest.issuer);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Retrieve all metadata from an issuer
|
|
37
|
+
* @param issuerHost The issuer hostname
|
|
38
|
+
*/
|
|
39
|
+
static retrieveAllMetadata(issuerHost) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
let token_endpoint;
|
|
42
|
+
let credential_endpoint;
|
|
43
|
+
let oid4vciMetadata = yield MetadataClient.retrieveOID4VCIServerMetadata(issuerHost);
|
|
44
|
+
if (oid4vciMetadata) {
|
|
45
|
+
credential_endpoint = oid4vciMetadata.credential_endpoint;
|
|
46
|
+
token_endpoint = oid4vciMetadata.token_endpoint;
|
|
47
|
+
if (!token_endpoint && oid4vciMetadata.auth_service) {
|
|
48
|
+
// Crossword uses this to separate the AS metadata. We fail when not found, since we now have no way of getting the token endpoint
|
|
49
|
+
const asMetadata = yield this.retrieveWellknown(oid4vciMetadata.auth_service, types_1.WellKnownEndpoints.OAUTH_AS, {
|
|
50
|
+
errorOnNotFound: true,
|
|
51
|
+
});
|
|
52
|
+
token_endpoint = asMetadata === null || asMetadata === void 0 ? void 0 : asMetadata.token_endpoint;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
// No specific OID4VCI endpoint. Either can be an OAuth2 AS or an OpenID IDP. Let's start with OIDC first
|
|
57
|
+
let asConfig = yield MetadataClient.retrieveWellknown(issuerHost, types_1.WellKnownEndpoints.OIDC_CONFIGURATION, {
|
|
58
|
+
errorOnNotFound: false,
|
|
59
|
+
});
|
|
60
|
+
if (!asConfig) {
|
|
61
|
+
// Now oAuth2
|
|
62
|
+
asConfig = yield MetadataClient.retrieveWellknown(issuerHost, types_1.WellKnownEndpoints.OAUTH_AS, { errorOnNotFound: false });
|
|
63
|
+
}
|
|
64
|
+
if (asConfig) {
|
|
65
|
+
oid4vciMetadata = asConfig; // TODO: Strip other info?
|
|
66
|
+
credential_endpoint = oid4vciMetadata.credential_endpoint;
|
|
67
|
+
token_endpoint = oid4vciMetadata.token_endpoint;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
if (!token_endpoint) {
|
|
71
|
+
throw new Error(`Could not deduce the token endpoint for ${issuerHost}`);
|
|
72
|
+
}
|
|
73
|
+
else if (!credential_endpoint) {
|
|
74
|
+
throw new Error(`Could not deduce the credential endpoint for ${issuerHost}`);
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
token_endpoint,
|
|
78
|
+
credential_endpoint,
|
|
79
|
+
oid4vci_metadata: oid4vciMetadata,
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Retrieve only the OID4VCI metadata for the issuer. So no OIDC/OAuth2 metadata
|
|
85
|
+
*
|
|
86
|
+
* @param issuerHost The issuer hostname
|
|
87
|
+
*/
|
|
88
|
+
static retrieveOID4VCIServerMetadata(issuerHost) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
// Since the server metadata endpoint is optional we are not going to throw an error.
|
|
91
|
+
return MetadataClient.retrieveWellknown(issuerHost, types_1.WellKnownEndpoints.OIDC4VCI, { errorOnNotFound: false });
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Allows to retrieve information from a well-known location
|
|
96
|
+
*
|
|
97
|
+
* @param host The host
|
|
98
|
+
* @param endpointType The endpoint type, currently supports OID4VCI, OIDC and OAuth2 endpoint types
|
|
99
|
+
* @param opts Options, like for instance whether an error should be thrown in case the endpoint doesn't exist
|
|
100
|
+
*/
|
|
101
|
+
static retrieveWellknown(host, endpointType, opts) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
try {
|
|
104
|
+
return yield (0, functions_1.getJson)(`${host}${endpointType}`);
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
if (!(opts === null || opts === void 0 ? void 0 : opts.errorOnNotFound) && error instanceof functions_1.NotFoundError) {
|
|
108
|
+
return undefined;
|
|
109
|
+
}
|
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sSUFBSSxDQUFDLG1CQUFtQixFQUFFO2dCQUMvQixNQUFNLElBQUksS0FBSyxDQUFDLGdEQUFnRCxVQUFVLEVBQUUsQ0FBQyxDQUFDO2FBQy9FO1lBQ0QsT0FBTztnQkFDTCxjQUFjO2dCQUNkLG1CQUFtQjtnQkFDbkIsZ0JBQWdCLEVBQUUsZUFBZTthQUNsQyxDQUFDO1FBQ0osQ0FBQztLQUFBO0lBRUQ7Ozs7T0FJRztJQUNJLE1BQU0sQ0FBTyw2QkFBNkIsQ0FBQyxVQUFrQjs7WUFDbEUscUZBQXFGO1lBQ3JGLE9BQU8sY0FBYyxDQUFDLGlCQUFpQixDQUFDLFVBQVUsRUFBRSwwQkFBa0IsQ0FBQyxRQUFRLEVBQUUsRUFBRSxlQUFlLEVBQUUsS0FBSyxFQUFFLENBQUMsQ0FBQztRQUMvRyxDQUFDO0tBQUE7SUFFRDs7Ozs7O09BTUc7SUFDSSxNQUFNLENBQU8saUJBQWlCLENBQ25DLElBQVksRUFDWixZQUFnQyxFQUNoQyxJQUFvQzs7WUFFcEMsSUFBSTtnQkFDRixPQUFPLE1BQU0sSUFBQSxtQkFBTyxFQUFDLEdBQUcsSUFBSSxHQUFHLFlBQVksRUFBRSxDQUFDLENBQUM7YUFDaEQ7WUFBQyxPQUFPLEtBQUssRUFBRTtnQkFDZCxJQUFJLENBQUMsQ0FBQSxJQUFJLGFBQUosSUFBSSx1QkFBSixJQUFJLENBQUUsZUFBZSxDQUFBLElBQUksS0FBSyxZQUFZLHlCQUFhLEVBQUU7b0JBQzVELE9BQU8sU0FBUyxDQUFDO2lCQUNsQjtnQkFDRCxNQUFNLEtBQUssQ0FBQzthQUNiO1FBQ0gsQ0FBQztLQUFBO0NBQ0Y7QUFqR0Qsd0NBaUdDIn0=
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
export declare class NotFoundError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export declare function getJson<T>(URL: string): Promise<T>;
|
|
1
5
|
export declare function formPost(url: string, body: BodyInit, opts?: {
|
|
2
6
|
bearerToken?: string;
|
|
3
7
|
contentType?: string;
|
|
8
|
+
accept?: string;
|
|
4
9
|
customHeaders?: HeadersInit;
|
|
5
10
|
}): Promise<Response>;
|
|
6
11
|
export declare function post(url: string, body: BodyInit, opts?: {
|
|
7
12
|
bearerToken?: string;
|
|
8
13
|
contentType?: string;
|
|
14
|
+
accept?: string;
|
|
9
15
|
customHeaders?: HeadersInit;
|
|
10
16
|
}): Promise<Response>;
|
|
11
17
|
export declare function isValidURL(url: string): boolean;
|
|
@@ -9,9 +9,37 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.isValidURL = exports.post = exports.formPost = void 0;
|
|
12
|
+
exports.isValidURL = exports.post = exports.formPost = exports.getJson = exports.NotFoundError = void 0;
|
|
13
13
|
const cross_fetch_1 = require("cross-fetch");
|
|
14
14
|
const types_1 = require("../types");
|
|
15
|
+
class NotFoundError extends Error {
|
|
16
|
+
constructor(message) {
|
|
17
|
+
super(message);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.NotFoundError = NotFoundError;
|
|
21
|
+
function getJson(URL) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
let message = '';
|
|
24
|
+
const response = yield (0, cross_fetch_1.fetch)(URL);
|
|
25
|
+
if (!response) {
|
|
26
|
+
message = 'no response returned';
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
if (response.status && response.status < 400) {
|
|
30
|
+
return (yield response.json());
|
|
31
|
+
}
|
|
32
|
+
else if (response.status === 404) {
|
|
33
|
+
throw new NotFoundError(`URL ${URL} was not found`);
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
message = `${response.status}:${response.statusText}, ${yield response.text()}`;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
throw new Error('error: ' + message);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
exports.getJson = getJson;
|
|
15
43
|
function formPost(url, body, opts) {
|
|
16
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17
45
|
return yield post(url, body, (opts === null || opts === void 0 ? void 0 : opts.contentType) ? Object.assign({}, opts) : Object.assign({ contentType: types_1.Encoding.FORM_URL_ENCODED }, opts));
|
|
@@ -33,6 +61,7 @@ function post(url, body, opts) {
|
|
|
33
61
|
if (opts === null || opts === void 0 ? void 0 : opts.contentType) {
|
|
34
62
|
headers['Content-Type'] = opts.contentType;
|
|
35
63
|
}
|
|
64
|
+
headers['Accept'] = (opts === null || opts === void 0 ? void 0 : opts.accept) ? opts.accept : 'application/json';
|
|
36
65
|
payload.headers = headers;
|
|
37
66
|
const response = yield (0, cross_fetch_1.fetch)(url, payload);
|
|
38
67
|
if (response && response.status && response.status < 400) {
|
|
@@ -61,4 +90,4 @@ function isValidURL(url) {
|
|
|
61
90
|
return !!urlPattern.test(url);
|
|
62
91
|
}
|
|
63
92
|
exports.isValidURL = isValidURL;
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
93
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSHR0cFV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGliL2Z1bmN0aW9ucy9IdHRwVXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsNkNBQW9DO0FBRXBDLG9DQUFvQztBQUVwQyxNQUFhLGFBQWMsU0FBUSxLQUFLO0lBQ3RDLFlBQVksT0FBZTtRQUN6QixLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDakIsQ0FBQztDQUNGO0FBSkQsc0NBSUM7QUFFRCxTQUFzQixPQUFPLENBQU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+16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./functions"), exports);
|
|
18
18
|
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./MetadataClient"), exports);
|
|
19
20
|
__exportStar(require("./IssuanceInitiation"), exports);
|
|
20
21
|
__exportStar(require("./AccessTokenClient"), exports);
|
|
21
22
|
__exportStar(require("./CredentialRequestClient"), exports);
|
|
22
23
|
__exportStar(require("./CredentialRequestClientBuilder"), exports);
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDhDQUE0QjtBQUM1QiwwQ0FBd0I7QUFDeEIsbURBQWlDO0FBQ2pDLHVEQUFxQztBQUNyQyxzREFBb0M7QUFDcEMsNERBQTBDO0FBQzFDLG1FQUFpRCJ9
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IssuanceInitiationRequestPayload } from './CredentialIssuance.types';
|
|
2
|
+
import { OID4VCIServerMetadata } from './OID4VCIServerMetadata';
|
|
2
3
|
export declare enum GrantTypes {
|
|
3
4
|
AUTHORIZATION_CODE = "authorization_code",
|
|
4
5
|
PRE_AUTHORIZED_CODE = "urn:ietf:params:oauth:grant-type:pre-authorized_code",
|
|
@@ -16,12 +17,14 @@ export interface AuthorizationServerOpts {
|
|
|
16
17
|
tokenEndpoint?: string;
|
|
17
18
|
clientId?: string;
|
|
18
19
|
}
|
|
19
|
-
export interface
|
|
20
|
+
export interface IssuerOpts {
|
|
20
21
|
issuer: string;
|
|
21
22
|
tokenEndpoint?: string;
|
|
23
|
+
fetchMetadata?: boolean;
|
|
22
24
|
}
|
|
23
25
|
export interface AccessTokenRequestOpts {
|
|
24
26
|
asOpts?: AuthorizationServerOpts;
|
|
27
|
+
metadata?: OID4VCIServerMetadata;
|
|
25
28
|
pin?: string;
|
|
26
29
|
}
|
|
27
30
|
export interface AuthorizationRequest {
|
|
@@ -32,4 +32,4 @@ var AuthzFlowType;
|
|
|
32
32
|
}
|
|
33
33
|
AuthzFlowType.valueOf = valueOf;
|
|
34
34
|
})(AuthzFlowType = exports.AuthzFlowType || (exports.AuthzFlowType = {}));
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXV0aG9yaXphdGlvbi50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi90eXBlcy9BdXRob3JpemF0aW9uLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLG1EQUF3RDtBQUd4RCxJQUFZLFVBSVg7QUFKRCxXQUFZLFVBQVU7SUFDcEIsdURBQXlDLENBQUE7SUFDekMsMEZBQTRFLENBQUE7SUFDNUUsbUNBQXFCLENBQUE7QUFDdkIsQ0FBQyxFQUpXLFVBQVUsR0FBVixrQkFBVSxLQUFWLGtCQUFVLFFBSXJCO0FBRUQsSUFBWSxRQUdYO0FBSEQsV0FBWSxRQUFRO0lBQ2xCLGtFQUFzRCxDQUFBO0lBQ3RELDJCQUFlLENBQUE7QUFDakIsQ0FBQyxFQUhXLFFBQVEsR0FBUixnQkFBUSxLQUFSLGdCQUFRLFFBR25CO0FBRUQsSUFBWSxZQUVYO0FBRkQsV0FBWSxZQUFZO0lBQ3RCLGtDQUFrQixDQUFBO0FBQ3BCLENBQUMsRUFGVyxZQUFZLEdBQVosb0JBQVksS0FBWixvQkFBWSxRQUV2QjtBQXNERCxJQUFZLGFBR1g7QUFIRCxXQUFZLGFBQWE7SUFDdkIsb0VBQW1ELENBQUE7SUFDbkQsc0VBQXFELENBQUE7QUFDdkQsQ0FBQyxFQUhXLGFBQWEsR0FBYixxQkFBYSxLQUFiLHFCQUFhLFFBR3hCO0FBRUQsMkRBQTJEO0FBQzNELFdBQWlCLGFBQWE7SUFDNUIsU0FBZ0IsT0FBTyxDQUFDLE9BQXlDO1FBQy9ELElBQUksT0FBTyxDQUFDLHFDQUFxQixDQUFDLEVBQUU7WUFDbEMsT0FBTyxhQUFhLENBQUMsd0JBQXdCLENBQUM7U0FDL0M7UUFDRCxPQUFPLGFBQWEsQ0FBQyx1QkFBdUIsQ0FBQztJQUMvQyxDQUFDO0lBTGUscUJBQU8sVUFLdEIsQ0FBQTtBQUNILENBQUMsRUFQZ0IsYUFBYSxHQUFiLHFCQUFhLEtBQWIscUJBQWEsUUFPN0IifQ==
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OID4VCIServerMetadata } from './OID4VCIServerMetadata';
|
|
1
2
|
export interface ErrorResponse extends Response {
|
|
2
3
|
error: string;
|
|
3
4
|
error_description?: string;
|
|
@@ -5,3 +6,13 @@ export interface ErrorResponse extends Response {
|
|
|
5
6
|
state?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const PRE_AUTH_CODE_LITERAL = "pre-authorized_code";
|
|
9
|
+
export declare enum WellKnownEndpoints {
|
|
10
|
+
OIDC_CONFIGURATION = "/.well-known/openid-configuration",
|
|
11
|
+
OAUTH_AS = "/.well-known/oauth-authorization-server",
|
|
12
|
+
OIDC4VCI = "/.well-known/openid-credential-issuer"
|
|
13
|
+
}
|
|
14
|
+
export interface EndpointMetadata {
|
|
15
|
+
token_endpoint: string;
|
|
16
|
+
credential_endpoint: string;
|
|
17
|
+
oid4vci_metadata: OID4VCIServerMetadata;
|
|
18
|
+
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PRE_AUTH_CODE_LITERAL = void 0;
|
|
3
|
+
exports.WellKnownEndpoints = exports.PRE_AUTH_CODE_LITERAL = void 0;
|
|
4
4
|
exports.PRE_AUTH_CODE_LITERAL = 'pre-authorized_code';
|
|
5
|
-
|
|
5
|
+
var WellKnownEndpoints;
|
|
6
|
+
(function (WellKnownEndpoints) {
|
|
7
|
+
WellKnownEndpoints["OIDC_CONFIGURATION"] = "/.well-known/openid-configuration";
|
|
8
|
+
WellKnownEndpoints["OAUTH_AS"] = "/.well-known/oauth-authorization-server";
|
|
9
|
+
WellKnownEndpoints["OIDC4VCI"] = "/.well-known/openid-credential-issuer";
|
|
10
|
+
})(WellKnownEndpoints = exports.WellKnownEndpoints || (exports.WellKnownEndpoints = {}));
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiR2VuZXJpYy50eXBlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi90eXBlcy9HZW5lcmljLnR5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQVNhLFFBQUEscUJBQXFCLEdBQUcscUJBQXFCLENBQUM7QUFFM0QsSUFBWSxrQkFJWDtBQUpELFdBQVksa0JBQWtCO0lBQzVCLDhFQUF3RCxDQUFBO0lBQ3hELDBFQUFvRCxDQUFBO0lBQ3BELHdFQUFrRCxDQUFBO0FBQ3BELENBQUMsRUFKVyxrQkFBa0IsR0FBbEIsMEJBQWtCLEtBQWxCLDBCQUFrQixRQUk3QiJ9
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface OAuth2ASMetadata {
|
|
2
|
+
issuer: string;
|
|
3
|
+
authorization_endpoint?: string;
|
|
4
|
+
token_endpoint?: string;
|
|
5
|
+
token_endpoint_auth_methods_supported?: string[];
|
|
6
|
+
token_endpoint_auth_signing_alg_values_supported?: string[];
|
|
7
|
+
jwks_uri?: string;
|
|
8
|
+
registration_endpoint?: string;
|
|
9
|
+
scopes_supported?: string[];
|
|
10
|
+
response_types_supported: string[];
|
|
11
|
+
response_modes_supported?: string[];
|
|
12
|
+
grant_types_supported?: string[];
|
|
13
|
+
service_documentation?: string;
|
|
14
|
+
ui_locales_supported?: string[];
|
|
15
|
+
op_policy_uri?: string;
|
|
16
|
+
op_tos_uri?: string;
|
|
17
|
+
revocation_endpoint?: string;
|
|
18
|
+
revocation_endpoint_auth_methods_supported?: string[];
|
|
19
|
+
revocation_endpoint_auth_signing_alg_values_supported?: string[];
|
|
20
|
+
introspection_endpoint?: string;
|
|
21
|
+
code_challenge_methods_supported?: string[];
|
|
22
|
+
frontchannel_logout_supported?: boolean;
|
|
23
|
+
frontchannel_logout_session_supported?: boolean;
|
|
24
|
+
backchannel_logout_supported?: boolean;
|
|
25
|
+
backchannel_logout_session_supported?: boolean;
|
|
26
|
+
userinfo_endpoint?: string;
|
|
27
|
+
check_session_iframe?: string;
|
|
28
|
+
end_session_endpoint?: string;
|
|
29
|
+
acr_values_supported?: string[];
|
|
30
|
+
subject_types_supported?: string[];
|
|
31
|
+
request_object_signing_alg_values_supported?: string[];
|
|
32
|
+
display_values_supported?: string[];
|
|
33
|
+
claim_types_supported?: string[];
|
|
34
|
+
claims_supported?: string[];
|
|
35
|
+
claims_parameter_supported?: boolean;
|
|
36
|
+
[x: string]: any;
|
|
37
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT0F1dGgyQVNNZXRhZGF0YS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYi90eXBlcy9PQXV0aDJBU01ldGFkYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { CredentialFormat } from '@sphereon/ssi-types';
|
|
2
|
+
import { OAuth2ASMetadata } from './OAuth2ASMetadata';
|
|
3
|
+
export interface OID4VCIServerMetadata {
|
|
4
|
+
credential_endpoint: string;
|
|
5
|
+
credentials_supported: CredentialsSupported;
|
|
6
|
+
credential_issuer?: CredentialIssuer;
|
|
7
|
+
token_endpoint?: string;
|
|
8
|
+
auth_service?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare type Oauth2ASWithOID4VCIMetadata = OAuth2ASMetadata & OID4VCIServerMetadata;
|
|
11
|
+
export interface CredentialIssuer {
|
|
12
|
+
display?: IssuerDisplay;
|
|
13
|
+
}
|
|
14
|
+
export interface CredentialMetadata {
|
|
15
|
+
display?: CredentialDisplay[];
|
|
16
|
+
formats: Formats;
|
|
17
|
+
claims: Claims;
|
|
18
|
+
}
|
|
19
|
+
export interface CredentialsSupported {
|
|
20
|
+
[credentialId: string]: CredentialMetadata;
|
|
21
|
+
}
|
|
22
|
+
export interface CredentialDisplay {
|
|
23
|
+
name: string;
|
|
24
|
+
locale?: string;
|
|
25
|
+
logo?: Logo;
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
}
|
|
28
|
+
export interface Logo {
|
|
29
|
+
url?: string;
|
|
30
|
+
alt_text?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
background_color?: string;
|
|
33
|
+
text_color?: string;
|
|
34
|
+
[x: string]: any;
|
|
35
|
+
}
|
|
36
|
+
export interface ClaimSupport {
|
|
37
|
+
mandatory?: boolean;
|
|
38
|
+
namespace?: string;
|
|
39
|
+
value_type?: string;
|
|
40
|
+
display?: ClaimDisplay[];
|
|
41
|
+
[x: string]: any;
|
|
42
|
+
}
|
|
43
|
+
export interface Claims {
|
|
44
|
+
[claimId: string]: ClaimSupport;
|
|
45
|
+
}
|
|
46
|
+
export declare type OID4VCICredentialFormatTypes = CredentialFormat | 'mdl_iso' | 'ac_vc' | string;
|
|
47
|
+
export interface CredentialFormatSupport {
|
|
48
|
+
types: string[];
|
|
49
|
+
cryptographic_binding_methods_supported?: string[];
|
|
50
|
+
cryptographic_suites_supported?: string[];
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
}
|
|
53
|
+
export declare type Formats = {
|
|
54
|
+
[format in OID4VCICredentialFormatTypes]: CredentialFormatSupport;
|
|
55
|
+
};
|
|
56
|
+
export interface ClaimDisplay {
|
|
57
|
+
name?: string;
|
|
58
|
+
locale?: string;
|
|
59
|
+
[x: string]: any;
|
|
60
|
+
}
|
|
61
|
+
export interface IssuerDisplay {
|
|
62
|
+
name?: string;
|
|
63
|
+
locale?: string;
|
|
64
|
+
[x: string]: any;
|
|
65
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT0lENFZDSVNlcnZlck1ldGFkYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vbGliL3R5cGVzL09JRDRWQ0lTZXJ2ZXJNZXRhZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -18,4 +18,6 @@ __exportStar(require("./Authorization.types"), exports);
|
|
|
18
18
|
__exportStar(require("./Oidc4vciErrors"), exports);
|
|
19
19
|
__exportStar(require("./CredentialIssuance.types"), exports);
|
|
20
20
|
__exportStar(require("./Generic.types"), exports);
|
|
21
|
-
|
|
21
|
+
__exportStar(require("./OID4VCIServerMetadata"), exports);
|
|
22
|
+
__exportStar(require("./OAuth2ASMetadata"), exports);
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWIvdHlwZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHdEQUFzQztBQUN0QyxtREFBaUM7QUFDakMsNkRBQTJDO0FBQzNDLGtEQUFnQztBQUNoQywwREFBd0M7QUFDeEMscURBQW1DIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es6.d.ts","../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/@sphereon/ssi-types/dist/types/did.d.ts","../../node_modules/@sphereon/ssi-types/dist/types/pex.d.ts","../../node_modules/@sphereon/ssi-types/dist/types/vc.d.ts","../../node_modules/@sphereon/ssi-types/dist/types/index.d.ts","../../node_modules/@sphereon/ssi-types/dist/utils/object.d.ts","../../node_modules/@sphereon/ssi-types/dist/utils/index.d.ts","../../node_modules/@sphereon/ssi-types/dist/mapper/credential-mapper.d.ts","../../node_modules/@sphereon/ssi-types/dist/mapper/index.d.ts","../../node_modules/@sphereon/ssi-types/dist/index.d.ts","../../lib/types/credentialissuance.types.ts","../../lib/types/generic.types.ts","../../lib/types/authorization.types.ts","../../lib/types/oidc4vcierrors.ts","../../lib/types/index.ts","../../lib/functions/encoding.ts","../../node_modules/cross-fetch/index.d.ts","../../lib/functions/httputils.ts","../../lib/functions/proofutil.ts","../../lib/functions/index.ts","../../lib/issuanceinitiation.ts","../../lib/accesstokenclient.ts","../../lib/credentialrequestclientbuilder.ts","../../lib/credentialrequestclient.ts","../../lib/index.ts","../../index.ts","../../node_modules/@types/jest/node_modules/@jest/expect-utils/build/index.d.ts","../../node_modules/chalk/index.d.ts","../../node_modules/@sinclair/typebox/typebox.d.ts","../../node_modules/@jest/schemas/build/index.d.ts","../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../node_modules/@types/jest/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/@types/jest/node_modules/expect/build/index.d.ts","../../node_modules/@types/jest/index.d.ts","../../node_modules/@types/node/ts4.8/assert.d.ts","../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../node_modules/@types/node/ts4.8/globals.d.ts","../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../node_modules/@types/node/ts4.8/buffer.d.ts","../../node_modules/@types/node/ts4.8/child_process.d.ts","../../node_modules/@types/node/ts4.8/cluster.d.ts","../../node_modules/@types/node/ts4.8/console.d.ts","../../node_modules/@types/node/ts4.8/constants.d.ts","../../node_modules/@types/node/ts4.8/crypto.d.ts","../../node_modules/@types/node/ts4.8/dgram.d.ts","../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../node_modules/@types/node/ts4.8/dns.d.ts","../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../node_modules/@types/node/ts4.8/domain.d.ts","../../node_modules/@types/node/ts4.8/dom-events.d.ts","../../node_modules/@types/node/ts4.8/events.d.ts","../../node_modules/@types/node/ts4.8/fs.d.ts","../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../node_modules/@types/node/ts4.8/http.d.ts","../../node_modules/@types/node/ts4.8/http2.d.ts","../../node_modules/@types/node/ts4.8/https.d.ts","../../node_modules/@types/node/ts4.8/inspector.d.ts","../../node_modules/@types/node/ts4.8/module.d.ts","../../node_modules/@types/node/ts4.8/net.d.ts","../../node_modules/@types/node/ts4.8/os.d.ts","../../node_modules/@types/node/ts4.8/path.d.ts","../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../node_modules/@types/node/ts4.8/process.d.ts","../../node_modules/@types/node/ts4.8/punycode.d.ts","../../node_modules/@types/node/ts4.8/querystring.d.ts","../../node_modules/@types/node/ts4.8/readline.d.ts","../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../node_modules/@types/node/ts4.8/repl.d.ts","../../node_modules/@types/node/ts4.8/stream.d.ts","../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../node_modules/@types/node/ts4.8/test.d.ts","../../node_modules/@types/node/ts4.8/timers.d.ts","../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../node_modules/@types/node/ts4.8/tls.d.ts","../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../node_modules/@types/node/ts4.8/tty.d.ts","../../node_modules/@types/node/ts4.8/url.d.ts","../../node_modules/@types/node/ts4.8/util.d.ts","../../node_modules/@types/node/ts4.8/v8.d.ts","../../node_modules/@types/node/ts4.8/vm.d.ts","../../node_modules/@types/node/ts4.8/wasi.d.ts","../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../node_modules/@types/node/ts4.8/zlib.d.ts","../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../node_modules/@types/node/ts4.8/index.d.ts"],"fileInfos":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"dbb73d4d99be496175cb432c74c2615f78c76f4272f1d83cba11ee0ed6dbddf0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"a4808b147aa1d5755b757ca5339104baa3fd437a4ba59ff4a5c9e87402190785","f496bd62d85a3e77606c94acab065e1ed2307a7c9011c160cbe812b5d537fe9d","07a5b7db44c9a24f62143187b510777d0e6f195ce0eb344bc57b80a2d338dc16","a3071902b649b7a88edfc16348e7665c6848d19d22874e217f3a0771221e7369","bc9acf7b33397ba8d9793abe3e8abef9b8c1dba460535912ff06c8291afe057f","25cc382e1907d5e54633f70827e1ed49ae26438b1a8d7083ce13da2ffd33bedb","0562befdc4db98aae9a340fd7e31d059d88b39a494a3effe4d831c859d6a0639","b248545ba1c998334b2d73b711e63f8fedaac7eb6b8e8c5264719ceabe6cd80c","112c9abf3de14453aa3d02e584714bd62d4fac3755b13ccb3cba6c755e3ad396","f566ea4410b3d97de96fccff68fd48b30d5d39b4104d0a33171214dd5f3140e4","1be5d3829e6f0a30f94d20c7e2509028ad54b8246941de89c565c0b2b6f6675f","2a8bd202acdbb01b5ce84cf31d1df6a497e3c02caf70b42721041d9e8e9898e7","790f3751d6fc2a62a9e1a759694ad9d39429e097c19e86f0ec1ec56ab2f68400","3d7014eada247ca0068c9f1372fbd8ce4f98b7b75b963786f2e7ab2ed7e27414",{"version":"acd55d680763c9b8518c17319b378984785677356dfc0854b557138202e147aa","signature":"da91f1bc3c90a29fa6ca777827f0256ac35ffc9c72532e9f1ea555705121344e"},{"version":"409cf8770fbb9f099124e9ca744282ebfd85df2fd3650ae05c4ee3d03af66714","affectsGlobalScope":true},{"version":"c0e8f44dc109891d330037bd7bc30a682450293d23114b2fe55e14c83313f627","signature":"db924e63a401d5b6aca153bf36dcd8626863e838f1b42b4b5127b8e3883eca89"},"7ea124007f01d5547099fcb12be49e29d27db882f14decbfd9de69c870d6c33d",{"version":"97885acc4a3ad5bb7b45305ef8d2e3eb0a9bd4462d1dd9c0e14fdf7c5dae029f","signature":"a2389eef1e50152d9b36dd0effb930ad20f072be8b9a9a3ef73598f5ad9fce9e"},"935a2c5aaf28cceb7e6ce2157589130766fb440d926b13770a40507ba149ee82","690165490a04564a9585034c6b4fa919541af3b5278a6881bb1edae48716c1ca","1449da0af0fb1e1b5e36cbda7375feec74fc9bd7be24633759365d47a6476417","bc10c1f70726159994af4ad891f59394da7943f8e2b8cf407e76b4a5e6d47135","b3e3d44bbcb3585192d0229583841a10e44f6396b6b5ab5e32352bdf8626fe87","84802f990c0f90e8ace5e8e885d92c07b007d827a5fa40085264d04707df6909","763e521cf114b80e0dd0e21ca49b9f8ae62e8999555a5e7bade8ce36b33001c2","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","776bb20d045af25df4f1b85a5e0c8bcc19d5ec1d653594b297e52e89ee7924e4","ffcc5500e77223169833fc6eb59b3a507944a1f89574e0a1276b0ea7fc22c4a4","22f13de9e2fe5f0f4724797abd3d34a1cdd6e47ef81fc4933fea3b8bf4ad524b","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","cda0cb09b995489b7f4c57f168cd31b83dcbaa7aad49612734fb3c9c73f6e4f2","f72f8428f3c1caa22e9c247d046603b85b442c0dae7b77a7a0bc092c18867cb7",{"version":"195f63105abc03e72b6a176e3e34dfb5ac932b55db378fdc7874b1617e24b465","affectsGlobalScope":true},"9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"02873d070f9cb79f50833fbf4a9a27ac578a2edf8ddb8421eba1b37faba83bfb","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"e9d541cf4452ff2a5543c2d8a220f645b094b5e2b6cf7c5dd2a8cb54e8731f31","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","c4cfc9a6e2ebb8bc8c0e2392dfc4056993ced3b35069ebf132ac18ca7a562881","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"9b4e8e95e480a6ef470e0b0e1eaea9d986011d4dc05267dcc9edfaa6d22e7cd1","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","df36874d9e56aff601e921c4b3971d37cf66d14f6455935ce821e6cad13b1823","dc98702ca783c4956d8b421ab069e5b4d4dcbeb7edc6ea2feaf13913e3bdb9b6","1abb206a4ecd13b21536b677d7d5f66e0d7316f0d44610197cfcc5776f78884a","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d4ac44f01d42f541631c5fc88d0ed8efac29a3a3ad9a745d9fd58f8b61ed132e","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b68bd7bef90dab08b1866a9fee24f03d9fee10bcb3f587b074e96e61abf6d3f0",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","3163f47436da41706c6e2b3c1511f3b7cce9f9f3905b2f3e01246c48b4ba7d14","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","24ad30a03d6c9266b63540956868dd70fa2dc523d60d780d6586eb0c281946bc",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"fefc6ec049aacd88cf8cb8e3a102962105c8b78c50eae10f853614756530b147","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7"],"options":{"declaration":true,"esModuleInterop":true,"inlineSourceMap":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","target":2},"fileIdsList":[[67,124],[52,57,62,124],[52,57,62,65,124],[52,57,62,66,124],[57,124],[57,59,124],[58,60,61,124],[57,62,63,64,65,66,124],[57,62,124],[53,54,124],[52,87,124],[124],[53,54,55,56,124],[71,124],[47,49,51,124],[47,124],[50,124],[44,45,46,124],[44,45,124],[48,124],[73,76,124],[69,75,124],[73,124],[70,74,124],[72,124],[78,124],[81,124],[82,87,115,124],[83,94,95,102,112,123,124],[83,84,94,102,124],[85,124],[86,87,95,103,124],[87,112,120,124],[88,90,94,102,124],[89,124],[90,91,124],[94,124],[92,94,124],[94,95,96,112,123,124],[94,95,96,112,115,124],[124,128],[97,102,112,123,124],[94,95,97,98,102,112,120,123,124],[97,99,112,120,123,124],[78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130],[94,100,124],[101,123,124],[90,94,102,112,124],[103,124],[104,124],[81,105,124],[106,122,124,128],[107,124],[108,124],[94,109,110,124],[109,111,124,126],[82,94,112,113,114,115,124],[82,112,114,124],[112,113,124],[115,124],[116,124],[94,118,119,124],[118,119,124],[87,102,112,120,124],[121,124],[102,122,124],[82,97,108,123,124],[87,124],[112,124,125],[124,126],[124,127],[82,87,94,96,105,112,123,124,126,128],[112,124,129],[57],[58,60,61]],"referencedMap":[[68,1],[64,2],[66,3],[65,4],[58,5],[60,6],[62,7],[61,5],[67,8],[63,9],[55,10],[53,11],[54,12],[57,13],[56,12],[72,14],[71,12],[52,15],[50,16],[51,17],[44,12],[47,18],[45,12],[46,19],[49,20],[48,12],[77,21],[69,12],[76,22],[74,23],[75,24],[73,25],[78,26],[79,26],[81,27],[82,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,36],[93,37],[92,38],[94,37],[95,39],[96,40],[80,41],[130,12],[97,42],[98,43],[99,44],[131,45],[100,46],[101,47],[102,48],[103,49],[104,50],[105,51],[106,52],[107,53],[108,54],[109,55],[110,55],[111,56],[112,57],[114,58],[113,59],[115,60],[116,61],[117,12],[118,62],[119,63],[120,64],[121,65],[122,66],[123,67],[124,68],[125,69],[126,70],[127,71],[128,72],[129,73],[70,12],[59,12],[9,12],[10,12],[14,12],[13,12],[3,12],[15,12],[16,12],[17,12],[18,12],[19,12],[20,12],[21,12],[22,12],[4,12],[5,12],[26,12],[23,12],[24,12],[25,12],[27,12],[28,12],[29,12],[6,12],[30,12],[31,12],[32,12],[33,12],[7,12],[34,12],[35,12],[36,12],[37,12],[8,12],[42,12],[38,12],[39,12],[40,12],[41,12],[2,12],[1,12],[43,12],[12,12],[11,12]],"exportedModulesMap":[[68,1],[64,2],[66,3],[65,4],[58,74],[62,75],[61,5],[67,8],[63,9],[55,10],[53,11],[54,12],[57,13],[56,12],[72,14],[71,12],[52,15],[50,16],[51,17],[44,12],[47,18],[45,12],[46,19],[49,20],[48,12],[77,21],[69,12],[76,22],[74,23],[75,24],[73,25],[78,26],[79,26],[81,27],[82,28],[83,29],[84,30],[85,31],[86,32],[87,33],[88,34],[89,35],[90,36],[91,36],[93,37],[92,38],[94,37],[95,39],[96,40],[80,41],[130,12],[97,42],[98,43],[99,44],[131,45],[100,46],[101,47],[102,48],[103,49],[104,50],[105,51],[106,52],[107,53],[108,54],[109,55],[110,55],[111,56],[112,57],[114,58],[113,59],[115,60],[116,61],[117,12],[118,62],[119,63],[120,64],[121,65],[122,66],[123,67],[124,68],[125,69],[126,70],[127,71],[128,72],[129,73],[70,12],[59,12],[9,12],[10,12],[14,12],[13,12],[3,12],[15,12],[16,12],[17,12],[18,12],[19,12],[20,12],[21,12],[22,12],[4,12],[5,12],[26,12],[23,12],[24,12],[25,12],[27,12],[28,12],[29,12],[6,12],[30,12],[31,12],[32,12],[33,12],[7,12],[34,12],[35,12],[36,12],[37,12],[8,12],[42,12],[38,12],[39,12],[40,12],[41,12],[2,12],[1,12],[43,12],[12,12],[11,12]],"semanticDiagnosticsPerFile":[68,64,66,65,58,60,62,61,67,63,55,53,54,57,56,72,71,52,50,51,44,47,45,46,49,48,77,69,76,74,75,73,78,79,81,82,83,84,85,86,87,88,89,90,91,93,92,94,95,96,80,130,97,98,99,131,100,101,102,103,104,105,106,107,108,109,110,111,112,114,113,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,70,59,9,10,14,13,3,15,16,17,18,19,20,21,22,4,5,26,23,24,25,27,28,29,6,30,31,32,33,7,34,35,36,37,8,42,38,39,40,41,2,1,43,12,11]},"version":"4.6.4"}
|
|
1
|
+
{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es6.d.ts","../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../node_modules/typescript/lib/lib.scripthost.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/@sphereon/ssi-types/dist/types/did.d.ts","../../node_modules/@sphereon/ssi-types/dist/types/pex.d.ts","../../node_modules/@sphereon/ssi-types/dist/types/vc.d.ts","../../node_modules/@sphereon/ssi-types/dist/types/index.d.ts","../../node_modules/@sphereon/ssi-types/dist/utils/object.d.ts","../../node_modules/@sphereon/ssi-types/dist/utils/index.d.ts","../../node_modules/@sphereon/ssi-types/dist/mapper/credential-mapper.d.ts","../../node_modules/@sphereon/ssi-types/dist/mapper/index.d.ts","../../node_modules/@sphereon/ssi-types/dist/index.d.ts","../../lib/types/credentialissuance.types.ts","../../lib/types/oauth2asmetadata.ts","../../lib/types/oid4vciservermetadata.ts","../../lib/types/generic.types.ts","../../lib/types/authorization.types.ts","../../lib/types/oidc4vcierrors.ts","../../lib/types/index.ts","../../lib/functions/encoding.ts","../../node_modules/cross-fetch/index.d.ts","../../lib/functions/httputils.ts","../../lib/functions/proofutil.ts","../../lib/functions/index.ts","../../lib/metadataclient.ts","../../lib/issuanceinitiation.ts","../../lib/accesstokenclient.ts","../../lib/credentialrequestclientbuilder.ts","../../lib/credentialrequestclient.ts","../../lib/index.ts","../../index.ts","../../node_modules/@types/jest/node_modules/@jest/expect-utils/build/index.d.ts","../../node_modules/chalk/index.d.ts","../../node_modules/@sinclair/typebox/typebox.d.ts","../../node_modules/@jest/schemas/build/index.d.ts","../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../node_modules/@types/jest/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/@types/jest/node_modules/expect/build/index.d.ts","../../node_modules/@types/jest/index.d.ts","../../node_modules/@types/node/ts4.8/assert.d.ts","../../node_modules/@types/node/ts4.8/assert/strict.d.ts","../../node_modules/@types/node/ts4.8/globals.d.ts","../../node_modules/@types/node/ts4.8/async_hooks.d.ts","../../node_modules/@types/node/ts4.8/buffer.d.ts","../../node_modules/@types/node/ts4.8/child_process.d.ts","../../node_modules/@types/node/ts4.8/cluster.d.ts","../../node_modules/@types/node/ts4.8/console.d.ts","../../node_modules/@types/node/ts4.8/constants.d.ts","../../node_modules/@types/node/ts4.8/crypto.d.ts","../../node_modules/@types/node/ts4.8/dgram.d.ts","../../node_modules/@types/node/ts4.8/diagnostics_channel.d.ts","../../node_modules/@types/node/ts4.8/dns.d.ts","../../node_modules/@types/node/ts4.8/dns/promises.d.ts","../../node_modules/@types/node/ts4.8/domain.d.ts","../../node_modules/@types/node/ts4.8/dom-events.d.ts","../../node_modules/@types/node/ts4.8/events.d.ts","../../node_modules/@types/node/ts4.8/fs.d.ts","../../node_modules/@types/node/ts4.8/fs/promises.d.ts","../../node_modules/@types/node/ts4.8/http.d.ts","../../node_modules/@types/node/ts4.8/http2.d.ts","../../node_modules/@types/node/ts4.8/https.d.ts","../../node_modules/@types/node/ts4.8/inspector.d.ts","../../node_modules/@types/node/ts4.8/module.d.ts","../../node_modules/@types/node/ts4.8/net.d.ts","../../node_modules/@types/node/ts4.8/os.d.ts","../../node_modules/@types/node/ts4.8/path.d.ts","../../node_modules/@types/node/ts4.8/perf_hooks.d.ts","../../node_modules/@types/node/ts4.8/process.d.ts","../../node_modules/@types/node/ts4.8/punycode.d.ts","../../node_modules/@types/node/ts4.8/querystring.d.ts","../../node_modules/@types/node/ts4.8/readline.d.ts","../../node_modules/@types/node/ts4.8/readline/promises.d.ts","../../node_modules/@types/node/ts4.8/repl.d.ts","../../node_modules/@types/node/ts4.8/stream.d.ts","../../node_modules/@types/node/ts4.8/stream/promises.d.ts","../../node_modules/@types/node/ts4.8/stream/consumers.d.ts","../../node_modules/@types/node/ts4.8/stream/web.d.ts","../../node_modules/@types/node/ts4.8/string_decoder.d.ts","../../node_modules/@types/node/ts4.8/test.d.ts","../../node_modules/@types/node/ts4.8/timers.d.ts","../../node_modules/@types/node/ts4.8/timers/promises.d.ts","../../node_modules/@types/node/ts4.8/tls.d.ts","../../node_modules/@types/node/ts4.8/trace_events.d.ts","../../node_modules/@types/node/ts4.8/tty.d.ts","../../node_modules/@types/node/ts4.8/url.d.ts","../../node_modules/@types/node/ts4.8/util.d.ts","../../node_modules/@types/node/ts4.8/v8.d.ts","../../node_modules/@types/node/ts4.8/vm.d.ts","../../node_modules/@types/node/ts4.8/wasi.d.ts","../../node_modules/@types/node/ts4.8/worker_threads.d.ts","../../node_modules/@types/node/ts4.8/zlib.d.ts","../../node_modules/@types/node/ts4.8/globals.global.d.ts","../../node_modules/@types/node/ts4.8/index.d.ts"],"fileInfos":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"dbb73d4d99be496175cb432c74c2615f78c76f4272f1d83cba11ee0ed6dbddf0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"a4808b147aa1d5755b757ca5339104baa3fd437a4ba59ff4a5c9e87402190785","f496bd62d85a3e77606c94acab065e1ed2307a7c9011c160cbe812b5d537fe9d","07a5b7db44c9a24f62143187b510777d0e6f195ce0eb344bc57b80a2d338dc16","a3071902b649b7a88edfc16348e7665c6848d19d22874e217f3a0771221e7369","bc9acf7b33397ba8d9793abe3e8abef9b8c1dba460535912ff06c8291afe057f","25cc382e1907d5e54633f70827e1ed49ae26438b1a8d7083ce13da2ffd33bedb","0562befdc4db98aae9a340fd7e31d059d88b39a494a3effe4d831c859d6a0639","b248545ba1c998334b2d73b711e63f8fedaac7eb6b8e8c5264719ceabe6cd80c","112c9abf3de14453aa3d02e584714bd62d4fac3755b13ccb3cba6c755e3ad396","f566ea4410b3d97de96fccff68fd48b30d5d39b4104d0a33171214dd5f3140e4",{"version":"43e95387a58fd6aa2c56da2cc078c80dd882e7684ffe56b5b187d51c3ccb36f4","signature":"c71ea880442628f6f54f45e0f8365090e5b3804ed46037a5abdb4459dd661679"},{"version":"06f91ddbce8af1740462520b3b62ed7a6dc241009e02d2e59a133208fe58278c","signature":"4bf676f721ce11916cac73831c81489a3393e7698dc1fad59ab7418ee87f3444"},{"version":"29d7a4f65318a33f301bd7c0ba2db0d162d3d3b00514b9809b4fac5b6b77f321","signature":"3beec4881195f7dd3d6650e229f185619c20830b1220dd83a8265dd7f10fbf9c"},{"version":"172c22691b3a08f1b1f311e817c467ee0fea76dba1a832de92a1f3cecc56beca","signature":"62a4c13a4ce521accc62eb2057fb6a6894a3835643e551deb514d809c66f1364"},"790f3751d6fc2a62a9e1a759694ad9d39429e097c19e86f0ec1ec56ab2f68400",{"version":"f165820277cc63d35d7953a8165be7909bfd4896723697972488a5b0730d3240","signature":"a9bfa161040679c6e71e87159e359267891d6d88f39f88d352a5336fc1e20d4f"},"acd55d680763c9b8518c17319b378984785677356dfc0854b557138202e147aa",{"version":"409cf8770fbb9f099124e9ca744282ebfd85df2fd3650ae05c4ee3d03af66714","affectsGlobalScope":true},"d28dcd3b1f035d95117bc450d266128e89d7223b36e04b01089df7263964d4a3","7ea124007f01d5547099fcb12be49e29d27db882f14decbfd9de69c870d6c33d","97885acc4a3ad5bb7b45305ef8d2e3eb0a9bd4462d1dd9c0e14fdf7c5dae029f",{"version":"27176addeeea5a9e3fe86be9d2f731bdb73ad7e64874d7c8bb264a67c1617c69","signature":"3a249ea217c0d1afa243ee0ee8f3d7caab1d2426708c819a3ddd718d04a05e96"},"935a2c5aaf28cceb7e6ce2157589130766fb440d926b13770a40507ba149ee82",{"version":"80c621f5de370feb544ce6f074a239ec4b914f84dadeb13f3c5dfbc2e6d41454","signature":"31d6b4eb2224dc0f1a23cc347d0a4bf98ae659c9e03583ed2e36535ecffddd5e"},"1449da0af0fb1e1b5e36cbda7375feec74fc9bd7be24633759365d47a6476417","bc10c1f70726159994af4ad891f59394da7943f8e2b8cf407e76b4a5e6d47135",{"version":"c881faf9499989e7f360c5a02665769f4d604d7c7499edf18bb5c5147e0435ba","signature":"97fa0b35824a801693401fdb5f01f27f30716c691e7c48a2413013214cf61a6a"},{"version":"84802f990c0f90e8ace5e8e885d92c07b007d827a5fa40085264d04707df6909","signature":"0db505f5c685c8e2d75323ae3c7a1bd1dd2b79042f0ede18e39a31eccbb352aa"},"763e521cf114b80e0dd0e21ca49b9f8ae62e8999555a5e7bade8ce36b33001c2","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","776bb20d045af25df4f1b85a5e0c8bcc19d5ec1d653594b297e52e89ee7924e4","ffcc5500e77223169833fc6eb59b3a507944a1f89574e0a1276b0ea7fc22c4a4","22f13de9e2fe5f0f4724797abd3d34a1cdd6e47ef81fc4933fea3b8bf4ad524b","e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","cda0cb09b995489b7f4c57f168cd31b83dcbaa7aad49612734fb3c9c73f6e4f2","f72f8428f3c1caa22e9c247d046603b85b442c0dae7b77a7a0bc092c18867cb7",{"version":"195f63105abc03e72b6a176e3e34dfb5ac932b55db378fdc7874b1617e24b465","affectsGlobalScope":true},"9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"02873d070f9cb79f50833fbf4a9a27ac578a2edf8ddb8421eba1b37faba83bfb","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"e9d541cf4452ff2a5543c2d8a220f645b094b5e2b6cf7c5dd2a8cb54e8731f31","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","c4cfc9a6e2ebb8bc8c0e2392dfc4056993ced3b35069ebf132ac18ca7a562881","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"9b4e8e95e480a6ef470e0b0e1eaea9d986011d4dc05267dcc9edfaa6d22e7cd1","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","df36874d9e56aff601e921c4b3971d37cf66d14f6455935ce821e6cad13b1823","dc98702ca783c4956d8b421ab069e5b4d4dcbeb7edc6ea2feaf13913e3bdb9b6","1abb206a4ecd13b21536b677d7d5f66e0d7316f0d44610197cfcc5776f78884a","dbe5aa5a5dd8bd1c6a8d11b1310c3f0cdabaacc78a37b394a8c7b14faeb5fb84","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"d4ac44f01d42f541631c5fc88d0ed8efac29a3a3ad9a745d9fd58f8b61ed132e","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b68bd7bef90dab08b1866a9fee24f03d9fee10bcb3f587b074e96e61abf6d3f0",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","3163f47436da41706c6e2b3c1511f3b7cce9f9f3905b2f3e01246c48b4ba7d14","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","24ad30a03d6c9266b63540956868dd70fa2dc523d60d780d6586eb0c281946bc",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","4c8525f256873c7ba3135338c647eaf0ca7115a1a2805ae2d0056629461186ce","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"fefc6ec049aacd88cf8cb8e3a102962105c8b78c50eae10f853614756530b147","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"652ee9c5103e89102d87bc20d167a02a0e3e5e53665674466c8cfea8a9e418c7"],"options":{"declaration":true,"esModuleInterop":true,"inlineSourceMap":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","target":2},"fileIdsList":[[70,127],[52,59,64,65,127],[52,59,64,68,127],[52,59,64,69,127],[59,127],[59,61,127],[60,62,63,127],[59,64,65,66,67,68,69,127],[59,64,127],[53,55,56,127],[52,90,127],[55,127],[53,54,55,56,57,58,127],[127],[52,54,127],[74,127],[47,49,51,127],[47,127],[50,127],[44,45,46,127],[44,45,127],[48,127],[76,79,127],[72,78,127],[76,127],[73,77,127],[75,127],[81,127],[84,127],[85,90,118,127],[86,97,98,105,115,126,127],[86,87,97,105,127],[88,127],[89,90,98,106,127],[90,115,123,127],[91,93,97,105,127],[92,127],[93,94,127],[97,127],[95,97,127],[97,98,99,115,126,127],[97,98,99,115,118,127],[127,131],[100,105,115,126,127],[97,98,100,101,105,115,123,126,127],[100,102,115,123,126,127],[81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133],[97,103,127],[104,126,127],[93,97,105,115,127],[106,127],[107,127],[84,108,127],[109,125,127,131],[110,127],[111,127],[97,112,113,127],[112,114,127,129],[85,97,115,116,117,118,127],[85,115,117,127],[115,116,127],[118,127],[119,127],[97,121,122,127],[121,122,127],[90,105,115,123,127],[124,127],[105,125,127],[85,100,111,126,127],[90,127],[115,127,128],[127,129],[127,130],[85,90,97,99,108,115,126,127,129,131],[115,127,132],[70],[59],[59,64,65,66,67,68,69],[53,55],[55],[53,54,55,56,57,58],[52,54]],"referencedMap":[[71,1],[67,2],[69,3],[68,4],[60,5],[62,6],[64,7],[63,5],[70,8],[66,9],[65,9],[57,10],[53,11],[56,12],[59,13],[54,14],[55,15],[58,14],[75,16],[74,14],[52,17],[50,18],[51,19],[44,14],[47,20],[45,14],[46,21],[49,22],[48,14],[80,23],[72,14],[79,24],[77,25],[78,26],[76,27],[81,28],[82,28],[84,29],[85,30],[86,31],[87,32],[88,33],[89,34],[90,35],[91,36],[92,37],[93,38],[94,38],[96,39],[95,40],[97,39],[98,41],[99,42],[83,43],[133,14],[100,44],[101,45],[102,46],[134,47],[103,48],[104,49],[105,50],[106,51],[107,52],[108,53],[109,54],[110,55],[111,56],[112,57],[113,57],[114,58],[115,59],[117,60],[116,61],[118,62],[119,63],[120,14],[121,64],[122,65],[123,66],[124,67],[125,68],[126,69],[127,70],[128,71],[129,72],[130,73],[131,74],[132,75],[73,14],[61,14],[9,14],[10,14],[14,14],[13,14],[3,14],[15,14],[16,14],[17,14],[18,14],[19,14],[20,14],[21,14],[22,14],[4,14],[5,14],[26,14],[23,14],[24,14],[25,14],[27,14],[28,14],[29,14],[6,14],[30,14],[31,14],[32,14],[33,14],[7,14],[34,14],[35,14],[36,14],[37,14],[8,14],[42,14],[38,14],[39,14],[40,14],[41,14],[2,14],[1,14],[43,14],[12,14],[11,14]],"exportedModulesMap":[[71,76],[67,77],[69,3],[68,4],[60,5],[62,6],[64,7],[63,5],[70,78],[66,9],[65,77],[57,79],[53,11],[56,80],[59,81],[55,82],[58,14],[75,16],[74,14],[52,17],[50,18],[51,19],[44,14],[47,20],[45,14],[46,21],[49,22],[48,14],[80,23],[72,14],[79,24],[77,25],[78,26],[76,27],[81,28],[82,28],[84,29],[85,30],[86,31],[87,32],[88,33],[89,34],[90,35],[91,36],[92,37],[93,38],[94,38],[96,39],[95,40],[97,39],[98,41],[99,42],[83,43],[133,14],[100,44],[101,45],[102,46],[134,47],[103,48],[104,49],[105,50],[106,51],[107,52],[108,53],[109,54],[110,55],[111,56],[112,57],[113,57],[114,58],[115,59],[117,60],[116,61],[118,62],[119,63],[120,14],[121,64],[122,65],[123,66],[124,67],[125,68],[126,69],[127,70],[128,71],[129,72],[130,73],[131,74],[132,75],[73,14],[61,14],[9,14],[10,14],[14,14],[13,14],[3,14],[15,14],[16,14],[17,14],[18,14],[19,14],[20,14],[21,14],[22,14],[4,14],[5,14],[26,14],[23,14],[24,14],[25,14],[27,14],[28,14],[29,14],[6,14],[30,14],[31,14],[32,14],[33,14],[7,14],[34,14],[35,14],[36,14],[37,14],[8,14],[42,14],[38,14],[39,14],[40,14],[41,14],[2,14],[1,14],[43,14],[12,14],[11,14]],"semanticDiagnosticsPerFile":[71,67,69,68,60,62,64,63,70,66,65,57,53,56,59,54,55,58,75,74,52,50,51,44,47,45,46,49,48,80,72,79,77,78,76,81,82,84,85,86,87,88,89,90,91,92,93,94,96,95,97,98,99,83,133,100,101,102,134,103,104,105,106,107,108,109,110,111,112,113,114,115,117,116,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,73,61,9,10,14,13,3,15,16,17,18,19,20,21,22,4,5,26,23,24,25,27,28,29,6,30,31,32,33,7,34,35,36,37,8,42,38,39,40,41,2,1,43,12,11]},"version":"4.6.4"}
|
package/package.json
CHANGED