@nmshd/runtime 7.1.1 → 7.2.0-openid4vc.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/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +3 -0
- package/dist/Runtime.js.map +1 -1
- package/dist/buildInformation.js +5 -5
- package/dist/extensibility/ConsumptionServices.d.ts +3 -2
- package/dist/extensibility/ConsumptionServices.d.ts.map +1 -1
- package/dist/extensibility/ConsumptionServices.js +5 -2
- package/dist/extensibility/ConsumptionServices.js.map +1 -1
- package/dist/extensibility/facades/consumption/OpenId4VcFacade.d.ts +15 -0
- package/dist/extensibility/facades/consumption/OpenId4VcFacade.d.ts.map +1 -0
- package/dist/extensibility/facades/consumption/OpenId4VcFacade.js +49 -0
- package/dist/extensibility/facades/consumption/OpenId4VcFacade.js.map +1 -0
- package/dist/extensibility/facades/consumption/index.d.ts +1 -0
- package/dist/extensibility/facades/consumption/index.d.ts.map +1 -1
- package/dist/extensibility/facades/consumption/index.js +1 -0
- package/dist/extensibility/facades/consumption/index.js.map +1 -1
- package/dist/useCases/common/Schemas.d.ts +5 -0
- package/dist/useCases/common/Schemas.d.ts.map +1 -1
- package/dist/useCases/common/Schemas.js +416 -3
- package/dist/useCases/common/Schemas.js.map +1 -1
- package/dist/useCases/consumption/index.d.ts +1 -0
- package/dist/useCases/consumption/index.d.ts.map +1 -1
- package/dist/useCases/consumption/index.js +1 -0
- package/dist/useCases/consumption/index.js.map +1 -1
- package/dist/useCases/consumption/openid4vc/AcceptAuthorizationRequest.d.ts +25 -0
- package/dist/useCases/consumption/openid4vc/AcceptAuthorizationRequest.d.ts.map +1 -0
- package/dist/useCases/consumption/openid4vc/AcceptAuthorizationRequest.js +46 -0
- package/dist/useCases/consumption/openid4vc/AcceptAuthorizationRequest.js.map +1 -0
- package/dist/useCases/consumption/openid4vc/AcceptCredentialOffer.d.ts +24 -0
- package/dist/useCases/consumption/openid4vc/AcceptCredentialOffer.d.ts.map +1 -0
- package/dist/useCases/consumption/openid4vc/AcceptCredentialOffer.js +47 -0
- package/dist/useCases/consumption/openid4vc/AcceptCredentialOffer.js.map +1 -0
- package/dist/useCases/consumption/openid4vc/ResolveAuthorizationRequest.d.ts +22 -0
- package/dist/useCases/consumption/openid4vc/ResolveAuthorizationRequest.d.ts.map +1 -0
- package/dist/useCases/consumption/openid4vc/ResolveAuthorizationRequest.js +59 -0
- package/dist/useCases/consumption/openid4vc/ResolveAuthorizationRequest.js.map +1 -0
- package/dist/useCases/consumption/openid4vc/ResolveCredentialOffer.d.ts +20 -0
- package/dist/useCases/consumption/openid4vc/ResolveCredentialOffer.d.ts.map +1 -0
- package/dist/useCases/consumption/openid4vc/ResolveCredentialOffer.js +52 -0
- package/dist/useCases/consumption/openid4vc/ResolveCredentialOffer.js.map +1 -0
- package/dist/useCases/consumption/openid4vc/index.d.ts +5 -0
- package/dist/useCases/consumption/openid4vc/index.d.ts.map +1 -0
- package/dist/useCases/consumption/openid4vc/index.js +21 -0
- package/dist/useCases/consumption/openid4vc/index.js.map +1 -0
- package/package.json +26 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/useCases/consumption/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/useCases/consumption/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./attributes"), exports);
|
|
|
18
18
|
__exportStar(require("./drafts"), exports);
|
|
19
19
|
__exportStar(require("./identityMetadata"), exports);
|
|
20
20
|
__exportStar(require("./notifications"), exports);
|
|
21
|
+
__exportStar(require("./openid4vc"), exports);
|
|
21
22
|
__exportStar(require("./requests"), exports);
|
|
22
23
|
__exportStar(require("./settings"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/useCases/consumption/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,qDAAmC;AACnC,kDAAgC;AAChC,6CAA2B;AAC3B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/useCases/consumption/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,2CAAyB;AACzB,qDAAmC;AACnC,kDAAgC;AAChC,8CAA4B;AAC5B,6CAA2B;AAC3B,6CAA2B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OpenId4VpResolvedAuthorizationRequest } from "@credo-ts/openid4vc";
|
|
2
|
+
import { Result } from "@js-soft/ts-utils";
|
|
3
|
+
import { OpenId4VcController } from "@nmshd/consumption";
|
|
4
|
+
import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
|
|
5
|
+
export interface AbstractAcceptAuthorizationRequestRequest<T> {
|
|
6
|
+
authorizationRequest: T;
|
|
7
|
+
}
|
|
8
|
+
export interface AcceptAuthorizationRequestRequest extends AbstractAcceptAuthorizationRequestRequest<OpenId4VpResolvedAuthorizationRequest> {
|
|
9
|
+
}
|
|
10
|
+
export interface SchemaValidatableAcceptAuthorizationRequestRequest extends AbstractAcceptAuthorizationRequestRequest<Record<string, any>> {
|
|
11
|
+
}
|
|
12
|
+
export interface AcceptAuthorizationRequestResponse {
|
|
13
|
+
status: number;
|
|
14
|
+
message: string;
|
|
15
|
+
}
|
|
16
|
+
declare class Validator extends SchemaValidator<AcceptAuthorizationRequestRequest> {
|
|
17
|
+
constructor(schemaRepository: SchemaRepository);
|
|
18
|
+
}
|
|
19
|
+
export declare class AcceptAuthorizationRequestUseCase extends UseCase<AcceptAuthorizationRequestRequest, AcceptAuthorizationRequestResponse> {
|
|
20
|
+
private readonly openId4VcController;
|
|
21
|
+
constructor(openId4VcController: OpenId4VcController, validator: Validator);
|
|
22
|
+
protected executeInternal(request: AcceptAuthorizationRequestRequest): Promise<Result<AcceptAuthorizationRequestResponse>>;
|
|
23
|
+
}
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=AcceptAuthorizationRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcceptAuthorizationRequest.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/openid4vc/AcceptAuthorizationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE1E,MAAM,WAAW,yCAAyC,CAAC,CAAC;IACxD,oBAAoB,EAAE,CAAC,CAAC;CAC3B;AAED,MAAM,WAAW,iCAAkC,SAAQ,yCAAyC,CAAC,qCAAqC,CAAC;CAAG;AAE9I,MAAM,WAAW,kDAAmD,SAAQ,yCAAyC,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAAG;AAE7I,MAAM,WAAW,kCAAkC;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,iCAAiC,CAAC;gBAC3C,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,iCAAkC,SAAQ,OAAO,CAAC,iCAAiC,EAAE,kCAAkC,CAAC;IAErH,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,mBAAmB,EACzD,SAAS,EAAE,SAAS;cAKP,eAAe,CAAC,OAAO,EAAE,iCAAiC,GAAG,OAAO,CAAC,MAAM,CAAC,kCAAkC,CAAC,CAAC;CAI5I"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AcceptAuthorizationRequestUseCase = void 0;
|
|
16
|
+
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
17
|
+
const consumption_1 = require("@nmshd/consumption");
|
|
18
|
+
const typescript_ioc_1 = require("@nmshd/typescript-ioc");
|
|
19
|
+
const common_1 = require("../../common");
|
|
20
|
+
let Validator = class Validator extends common_1.SchemaValidator {
|
|
21
|
+
constructor(schemaRepository) {
|
|
22
|
+
super(schemaRepository.getSchema("AcceptAuthorizationRequestRequest"));
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
Validator = __decorate([
|
|
26
|
+
__param(0, typescript_ioc_1.Inject),
|
|
27
|
+
__metadata("design:paramtypes", [common_1.SchemaRepository])
|
|
28
|
+
], Validator);
|
|
29
|
+
let AcceptAuthorizationRequestUseCase = class AcceptAuthorizationRequestUseCase extends common_1.UseCase {
|
|
30
|
+
constructor(openId4VcController, validator) {
|
|
31
|
+
super(validator);
|
|
32
|
+
this.openId4VcController = openId4VcController;
|
|
33
|
+
}
|
|
34
|
+
async executeInternal(request) {
|
|
35
|
+
const result = await this.openId4VcController.acceptAuthorizationRequest(request.authorizationRequest);
|
|
36
|
+
return ts_utils_1.Result.ok({ status: result.status, message: JSON.stringify(result.message) });
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.AcceptAuthorizationRequestUseCase = AcceptAuthorizationRequestUseCase;
|
|
40
|
+
exports.AcceptAuthorizationRequestUseCase = AcceptAuthorizationRequestUseCase = __decorate([
|
|
41
|
+
__param(0, typescript_ioc_1.Inject),
|
|
42
|
+
__param(1, typescript_ioc_1.Inject),
|
|
43
|
+
__metadata("design:paramtypes", [consumption_1.OpenId4VcController,
|
|
44
|
+
Validator])
|
|
45
|
+
], AcceptAuthorizationRequestUseCase);
|
|
46
|
+
//# sourceMappingURL=AcceptAuthorizationRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcceptAuthorizationRequest.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/openid4vc/AcceptAuthorizationRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,gDAA2C;AAC3C,oDAAyD;AACzD,0DAA+C;AAC/C,yCAA0E;AAe1E,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAkD;IACtE,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,mCAAmC,CAAC,CAAC,CAAC;IAC3E,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,iCAAiC,GAA9C,MAAa,iCAAkC,SAAQ,gBAA8E;IACjI,YAC6B,mBAAwC,EACzD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAHQ,wBAAmB,GAAnB,mBAAmB,CAAqB;IAIrE,CAAC;IAEkB,KAAK,CAAC,eAAe,CAAC,OAA0C;QAC/E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,0BAA0B,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QACvG,OAAO,iBAAM,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACzF,CAAC;CACJ,CAAA;AAZY,8EAAiC;4CAAjC,iCAAiC;IAErC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCADuC,iCAAmB;QAC9C,SAAS;GAHvB,iCAAiC,CAY7C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OpenId4VciResolvedCredentialOffer } from "@credo-ts/openid4vc";
|
|
2
|
+
import { Result } from "@js-soft/ts-utils";
|
|
3
|
+
import { OpenId4VcController } from "@nmshd/consumption";
|
|
4
|
+
import { LocalAttributeDTO } from "@nmshd/runtime-types";
|
|
5
|
+
import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
|
|
6
|
+
export interface AbstractCredentialOfferRequest<T> {
|
|
7
|
+
credentialOffer: T;
|
|
8
|
+
pinCode?: string;
|
|
9
|
+
credentialConfigurationIds: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface AcceptCredentialOfferRequest extends AbstractCredentialOfferRequest<OpenId4VciResolvedCredentialOffer> {
|
|
12
|
+
}
|
|
13
|
+
export interface SchemaValidatableAcceptCredentialOfferRequest extends AbstractCredentialOfferRequest<Record<string, any>> {
|
|
14
|
+
}
|
|
15
|
+
declare class Validator extends SchemaValidator<AcceptCredentialOfferRequest> {
|
|
16
|
+
constructor(schemaRepository: SchemaRepository);
|
|
17
|
+
}
|
|
18
|
+
export declare class AcceptCredentialOfferUseCase extends UseCase<AcceptCredentialOfferRequest, LocalAttributeDTO> {
|
|
19
|
+
private readonly openId4VcController;
|
|
20
|
+
constructor(openId4VcController: OpenId4VcController, validator: Validator);
|
|
21
|
+
protected executeInternal(request: AcceptCredentialOfferRequest): Promise<Result<LocalAttributeDTO>>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=AcceptCredentialOffer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcceptCredentialOffer.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/openid4vc/AcceptCredentialOffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG1E,MAAM,WAAW,8BAA8B,CAAC,CAAC;IAC7C,eAAe,EAAE,CAAC,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0BAA0B,EAAE,MAAM,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,4BAA6B,SAAQ,8BAA8B,CAAC,iCAAiC,CAAC;CAAG;AAE1H,MAAM,WAAW,6CAA8C,SAAQ,8BAA8B,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAAG;AAE7H,cAAM,SAAU,SAAQ,eAAe,CAAC,4BAA4B,CAAC;gBACtC,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,4BAA6B,SAAQ,OAAO,CAAC,4BAA4B,EAAE,iBAAiB,CAAC;IAE1F,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,mBAAmB,EACzD,SAAS,EAAE,SAAS;cAKP,eAAe,CAAC,OAAO,EAAE,4BAA4B,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;CAItH"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AcceptCredentialOfferUseCase = void 0;
|
|
16
|
+
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
17
|
+
const consumption_1 = require("@nmshd/consumption");
|
|
18
|
+
const typescript_ioc_1 = require("@nmshd/typescript-ioc");
|
|
19
|
+
const common_1 = require("../../common");
|
|
20
|
+
const attributes_1 = require("../attributes");
|
|
21
|
+
let Validator = class Validator extends common_1.SchemaValidator {
|
|
22
|
+
constructor(schemaRepository) {
|
|
23
|
+
super(schemaRepository.getSchema("AcceptCredentialOfferRequest"));
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
Validator = __decorate([
|
|
27
|
+
__param(0, typescript_ioc_1.Inject),
|
|
28
|
+
__metadata("design:paramtypes", [common_1.SchemaRepository])
|
|
29
|
+
], Validator);
|
|
30
|
+
let AcceptCredentialOfferUseCase = class AcceptCredentialOfferUseCase extends common_1.UseCase {
|
|
31
|
+
constructor(openId4VcController, validator) {
|
|
32
|
+
super(validator);
|
|
33
|
+
this.openId4VcController = openId4VcController;
|
|
34
|
+
}
|
|
35
|
+
async executeInternal(request) {
|
|
36
|
+
const result = await this.openId4VcController.acceptCredentialOffer(request.credentialOffer, request.credentialConfigurationIds, request.pinCode);
|
|
37
|
+
return ts_utils_1.Result.ok(attributes_1.AttributeMapper.toAttributeDTO(result));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.AcceptCredentialOfferUseCase = AcceptCredentialOfferUseCase;
|
|
41
|
+
exports.AcceptCredentialOfferUseCase = AcceptCredentialOfferUseCase = __decorate([
|
|
42
|
+
__param(0, typescript_ioc_1.Inject),
|
|
43
|
+
__param(1, typescript_ioc_1.Inject),
|
|
44
|
+
__metadata("design:paramtypes", [consumption_1.OpenId4VcController,
|
|
45
|
+
Validator])
|
|
46
|
+
], AcceptCredentialOfferUseCase);
|
|
47
|
+
//# sourceMappingURL=AcceptCredentialOffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcceptCredentialOffer.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/openid4vc/AcceptCredentialOffer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,gDAA2C;AAC3C,oDAAyD;AAEzD,0DAA+C;AAC/C,yCAA0E;AAC1E,8CAAgD;AAYhD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAA6C;IACjE,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,8BAA8B,CAAC,CAAC,CAAC;IACtE,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,4BAA4B,GAAzC,MAAa,4BAA6B,SAAQ,gBAAwD;IACtG,YAC6B,mBAAwC,EACzD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAHQ,wBAAmB,GAAnB,mBAAmB,CAAqB;IAIrE,CAAC;IAEkB,KAAK,CAAC,eAAe,CAAC,OAAqC;QAC1E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,qBAAqB,CAAC,OAAO,CAAC,eAAe,EAAE,OAAO,CAAC,0BAA0B,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAClJ,OAAO,iBAAM,CAAC,EAAE,CAAC,4BAAe,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7D,CAAC;CACJ,CAAA;AAZY,oEAA4B;uCAA5B,4BAA4B;IAEhC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCADuC,iCAAmB;QAC9C,SAAS;GAHvB,4BAA4B,CAYxC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { OpenId4VpResolvedAuthorizationRequest } from "@credo-ts/openid4vc";
|
|
2
|
+
import { Result } from "@js-soft/ts-utils";
|
|
3
|
+
import { OpenId4VcController } from "@nmshd/consumption";
|
|
4
|
+
import { LocalAttributeDTO } from "@nmshd/runtime-types";
|
|
5
|
+
import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
|
|
6
|
+
export interface ResolveAuthorizationRequestRequest {
|
|
7
|
+
authorizationRequestUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ResolveAuthorizationRequestResponse {
|
|
10
|
+
authorizationRequest: OpenId4VpResolvedAuthorizationRequest;
|
|
11
|
+
usedCredentials: LocalAttributeDTO[];
|
|
12
|
+
}
|
|
13
|
+
declare class Validator extends SchemaValidator<ResolveAuthorizationRequestRequest> {
|
|
14
|
+
constructor(schemaRepository: SchemaRepository);
|
|
15
|
+
}
|
|
16
|
+
export declare class ResolveAuthorizationRequestUseCase extends UseCase<ResolveAuthorizationRequestRequest, ResolveAuthorizationRequestResponse> {
|
|
17
|
+
private readonly openId4VcController;
|
|
18
|
+
constructor(openId4VcController: OpenId4VcController, validator: Validator);
|
|
19
|
+
protected executeInternal(request: ResolveAuthorizationRequestRequest): Promise<Result<ResolveAuthorizationRequestResponse>>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=ResolveAuthorizationRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolveAuthorizationRequest.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/openid4vc/ResolveAuthorizationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAG1E,MAAM,WAAW,kCAAkC;IAC/C,uBAAuB,EAAE,MAAM,CAAC;CACnC;AAED,MAAM,WAAW,mCAAmC;IAChD,oBAAoB,EAAE,qCAAqC,CAAC;IAC5D,eAAe,EAAE,iBAAiB,EAAE,CAAC;CACxC;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,kCAAkC,CAAC;gBAC5C,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,kCAAmC,SAAQ,OAAO,CAAC,kCAAkC,EAAE,mCAAmC,CAAC;IAExH,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,mBAAmB,EACzD,SAAS,EAAE,SAAS;cAKP,eAAe,CAAC,OAAO,EAAE,kCAAkC,GAAG,OAAO,CAAC,MAAM,CAAC,mCAAmC,CAAC,CAAC;CAe9I"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ResolveAuthorizationRequestUseCase = void 0;
|
|
19
|
+
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
20
|
+
const consumption_1 = require("@nmshd/consumption");
|
|
21
|
+
const typescript_ioc_1 = require("@nmshd/typescript-ioc");
|
|
22
|
+
const json_stringify_safe_1 = __importDefault(require("json-stringify-safe"));
|
|
23
|
+
const common_1 = require("../../common");
|
|
24
|
+
const attributes_1 = require("../attributes");
|
|
25
|
+
let Validator = class Validator extends common_1.SchemaValidator {
|
|
26
|
+
constructor(schemaRepository) {
|
|
27
|
+
super(schemaRepository.getSchema("ResolveAuthorizationRequestRequest"));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
Validator = __decorate([
|
|
31
|
+
__param(0, typescript_ioc_1.Inject),
|
|
32
|
+
__metadata("design:paramtypes", [common_1.SchemaRepository])
|
|
33
|
+
], Validator);
|
|
34
|
+
let ResolveAuthorizationRequestUseCase = class ResolveAuthorizationRequestUseCase extends common_1.UseCase {
|
|
35
|
+
constructor(openId4VcController, validator) {
|
|
36
|
+
super(validator);
|
|
37
|
+
this.openId4VcController = openId4VcController;
|
|
38
|
+
}
|
|
39
|
+
async executeInternal(request) {
|
|
40
|
+
const result = await this.openId4VcController.resolveAuthorizationRequest(request.authorizationRequestUrl);
|
|
41
|
+
const authorizationRequest = JSON.parse((0, json_stringify_safe_1.default)(result.authorizationRequest));
|
|
42
|
+
// the 'get encoded' of the credential is lost while making it app-safe, we have to re-add it for PEX
|
|
43
|
+
// quick-fix for the simplest case with one requested credential only - otherwise every [0] would have to be generalised.
|
|
44
|
+
if (result.authorizationRequest.presentationExchange) {
|
|
45
|
+
const encodedCredential = result.authorizationRequest.presentationExchange.credentialsForRequest.requirements[0].submissionEntry[0].verifiableCredentials[0].credentialRecord.encoded;
|
|
46
|
+
authorizationRequest.presentationExchange.credentialsForRequest.requirements[0].submissionEntry[0].verifiableCredentials[0].credentialRecord.encoded =
|
|
47
|
+
encodedCredential;
|
|
48
|
+
}
|
|
49
|
+
return ts_utils_1.Result.ok({ authorizationRequest, usedCredentials: attributes_1.AttributeMapper.toAttributeDTOList(result.usedCredentials) });
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.ResolveAuthorizationRequestUseCase = ResolveAuthorizationRequestUseCase;
|
|
53
|
+
exports.ResolveAuthorizationRequestUseCase = ResolveAuthorizationRequestUseCase = __decorate([
|
|
54
|
+
__param(0, typescript_ioc_1.Inject),
|
|
55
|
+
__param(1, typescript_ioc_1.Inject),
|
|
56
|
+
__metadata("design:paramtypes", [consumption_1.OpenId4VcController,
|
|
57
|
+
Validator])
|
|
58
|
+
], ResolveAuthorizationRequestUseCase);
|
|
59
|
+
//# sourceMappingURL=ResolveAuthorizationRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolveAuthorizationRequest.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/openid4vc/ResolveAuthorizationRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,gDAA2C;AAC3C,oDAAyD;AAEzD,0DAA+C;AAC/C,8EAAgD;AAChD,yCAA0E;AAC1E,8CAAgD;AAWhD,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAAmD;IACvE,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,oCAAoC,CAAC,CAAC,CAAC;IAC5E,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,kCAAkC,GAA/C,MAAa,kCAAmC,SAAQ,gBAAgF;IACpI,YAC6B,mBAAwC,EACzD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAHQ,wBAAmB,GAAnB,mBAAmB,CAAqB;IAIrE,CAAC;IAEkB,KAAK,CAAC,eAAe,CAAC,OAA2C;QAChF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,2BAA2B,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;QAE3G,MAAM,oBAAoB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAA,6BAAa,EAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC;QACpF,qGAAqG;QACrG,yHAAyH;QACzH,IAAI,MAAM,CAAC,oBAAoB,CAAC,oBAAoB,EAAE,CAAC;YACnD,MAAM,iBAAiB,GACnB,MAAM,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC;YAChK,oBAAoB,CAAC,oBAAoB,CAAC,qBAAqB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO;gBAChJ,iBAAiB,CAAC;QAC1B,CAAC;QAED,OAAO,iBAAM,CAAC,EAAE,CAAC,EAAE,oBAAoB,EAAE,eAAe,EAAE,4BAAe,CAAC,kBAAkB,CAAC,MAAM,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;IAC5H,CAAC;CACJ,CAAA;AAvBY,gFAAkC;6CAAlC,kCAAkC;IAEtC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCADuC,iCAAmB;QAC9C,SAAS;GAHvB,kCAAkC,CAuB9C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OpenId4VciResolvedCredentialOffer } from "@credo-ts/openid4vc";
|
|
2
|
+
import { Result } from "@js-soft/ts-utils";
|
|
3
|
+
import { OpenId4VcController } from "@nmshd/consumption";
|
|
4
|
+
import { SchemaRepository, SchemaValidator, UseCase } from "../../common";
|
|
5
|
+
export interface ResolveCredentialOfferRequest {
|
|
6
|
+
credentialOfferUrl: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ResolveCredentialOfferResponse {
|
|
9
|
+
credentialOffer: OpenId4VciResolvedCredentialOffer;
|
|
10
|
+
}
|
|
11
|
+
declare class Validator extends SchemaValidator<ResolveCredentialOfferRequest> {
|
|
12
|
+
constructor(schemaRepository: SchemaRepository);
|
|
13
|
+
}
|
|
14
|
+
export declare class ResolveCredentialOfferUseCase extends UseCase<ResolveCredentialOfferRequest, ResolveCredentialOfferResponse> {
|
|
15
|
+
private readonly openId4VcController;
|
|
16
|
+
constructor(openId4VcController: OpenId4VcController, validator: Validator);
|
|
17
|
+
protected executeInternal(request: ResolveCredentialOfferRequest): Promise<Result<ResolveCredentialOfferResponse>>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=ResolveCredentialOffer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolveCredentialOffer.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/openid4vc/ResolveCredentialOffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGzD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE1E,MAAM,WAAW,6BAA6B;IAC1C,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,8BAA8B;IAC3C,eAAe,EAAE,iCAAiC,CAAC;CACtD;AAED,cAAM,SAAU,SAAQ,eAAe,CAAC,6BAA6B,CAAC;gBACvC,gBAAgB,EAAE,gBAAgB;CAGhE;AAED,qBAAa,6BAA8B,SAAQ,OAAO,CAAC,6BAA6B,EAAE,8BAA8B,CAAC;IAEzG,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAAnB,mBAAmB,EAAE,mBAAmB,EACzD,SAAS,EAAE,SAAS;cAKP,eAAe,CAAC,OAAO,EAAE,6BAA6B,GAAG,OAAO,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC;CAMpI"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.ResolveCredentialOfferUseCase = void 0;
|
|
19
|
+
const ts_utils_1 = require("@js-soft/ts-utils");
|
|
20
|
+
const consumption_1 = require("@nmshd/consumption");
|
|
21
|
+
const typescript_ioc_1 = require("@nmshd/typescript-ioc");
|
|
22
|
+
const json_stringify_safe_1 = __importDefault(require("json-stringify-safe"));
|
|
23
|
+
const common_1 = require("../../common");
|
|
24
|
+
let Validator = class Validator extends common_1.SchemaValidator {
|
|
25
|
+
constructor(schemaRepository) {
|
|
26
|
+
super(schemaRepository.getSchema("ResolveCredentialOfferRequest"));
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
Validator = __decorate([
|
|
30
|
+
__param(0, typescript_ioc_1.Inject),
|
|
31
|
+
__metadata("design:paramtypes", [common_1.SchemaRepository])
|
|
32
|
+
], Validator);
|
|
33
|
+
let ResolveCredentialOfferUseCase = class ResolveCredentialOfferUseCase extends common_1.UseCase {
|
|
34
|
+
constructor(openId4VcController, validator) {
|
|
35
|
+
super(validator);
|
|
36
|
+
this.openId4VcController = openId4VcController;
|
|
37
|
+
}
|
|
38
|
+
async executeInternal(request) {
|
|
39
|
+
const credentialOffer = await this.openId4VcController.resolveCredentialOffer(request.credentialOfferUrl);
|
|
40
|
+
return ts_utils_1.Result.ok({
|
|
41
|
+
credentialOffer: JSON.parse((0, json_stringify_safe_1.default)(credentialOffer))
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.ResolveCredentialOfferUseCase = ResolveCredentialOfferUseCase;
|
|
46
|
+
exports.ResolveCredentialOfferUseCase = ResolveCredentialOfferUseCase = __decorate([
|
|
47
|
+
__param(0, typescript_ioc_1.Inject),
|
|
48
|
+
__param(1, typescript_ioc_1.Inject),
|
|
49
|
+
__metadata("design:paramtypes", [consumption_1.OpenId4VcController,
|
|
50
|
+
Validator])
|
|
51
|
+
], ResolveCredentialOfferUseCase);
|
|
52
|
+
//# sourceMappingURL=ResolveCredentialOffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResolveCredentialOffer.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/openid4vc/ResolveCredentialOffer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,gDAA2C;AAC3C,oDAAyD;AACzD,0DAA+C;AAC/C,8EAAgD;AAChD,yCAA0E;AAU1E,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,wBAA8C;IAClE,YAA2B,gBAAkC;QACzD,KAAK,CAAC,gBAAgB,CAAC,SAAS,CAAC,+BAA+B,CAAC,CAAC,CAAC;IACvE,CAAC;CACJ,CAAA;AAJK,SAAS;IACS,WAAA,uBAAM,CAAA;qCAAmB,yBAAgB;GAD3D,SAAS,CAId;AAED,IAAa,6BAA6B,GAA1C,MAAa,6BAA8B,SAAQ,gBAAsE;IACrH,YAC6B,mBAAwC,EACzD,SAAoB;QAE5B,KAAK,CAAC,SAAS,CAAC,CAAC;QAHQ,wBAAmB,GAAnB,mBAAmB,CAAqB;IAIrE,CAAC;IAEkB,KAAK,CAAC,eAAe,CAAC,OAAsC;QAC3E,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;QAC1G,OAAO,iBAAM,CAAC,EAAE,CAAC;YACb,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,IAAA,6BAAa,EAAC,eAAe,CAAC,CAAC;SAC9D,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,sEAA6B;wCAA7B,6BAA6B;IAEjC,WAAA,uBAAM,CAAA;IACN,WAAA,uBAAM,CAAA;qCADuC,iCAAmB;QAC9C,SAAS;GAHvB,6BAA6B,CAczC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/useCases/consumption/openid4vc/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AcceptAuthorizationRequest"), exports);
|
|
18
|
+
__exportStar(require("./AcceptCredentialOffer"), exports);
|
|
19
|
+
__exportStar(require("./ResolveAuthorizationRequest"), exports);
|
|
20
|
+
__exportStar(require("./ResolveCredentialOffer"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/useCases/consumption/openid4vc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,0DAAwC;AACxC,gEAA8C;AAC9C,2DAAyC"}
|
package/package.json
CHANGED
|
@@ -51,30 +51,47 @@
|
|
|
51
51
|
"testEnvironment": "node",
|
|
52
52
|
"testTimeout": 60000,
|
|
53
53
|
"transform": {
|
|
54
|
-
"^.+\\.
|
|
54
|
+
"^.+\\.(t|j)s$": [
|
|
55
55
|
"ts-jest",
|
|
56
56
|
{
|
|
57
57
|
"tsconfig": "test/tsconfig.json"
|
|
58
58
|
}
|
|
59
|
+
],
|
|
60
|
+
"^.+\\.mjs$": [
|
|
61
|
+
"babel-jest",
|
|
62
|
+
{
|
|
63
|
+
"presets": [
|
|
64
|
+
[
|
|
65
|
+
"@babel/preset-env",
|
|
66
|
+
{
|
|
67
|
+
"modules": "commonjs"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
]
|
|
71
|
+
}
|
|
59
72
|
]
|
|
60
|
-
}
|
|
73
|
+
},
|
|
74
|
+
"transformIgnorePatterns": [
|
|
75
|
+
"<rootDir>/node_modules/(?!(@noble|@stablelib|@credo\\-ts)/)"
|
|
76
|
+
]
|
|
61
77
|
},
|
|
62
78
|
"dependencies": {
|
|
63
79
|
"@js-soft/docdb-querytranslator": "^1.1.6",
|
|
64
80
|
"@js-soft/logging-abstractions": "^1.0.2",
|
|
65
81
|
"@js-soft/ts-serval": "2.0.14",
|
|
66
82
|
"@js-soft/ts-utils": "^2.3.5",
|
|
67
|
-
"@nmshd/consumption": "7.
|
|
68
|
-
"@nmshd/content": "7.
|
|
69
|
-
"@nmshd/core-types": "7.
|
|
83
|
+
"@nmshd/consumption": "7.2.0-openid4vc.2",
|
|
84
|
+
"@nmshd/content": "7.2.0-openid4vc.2",
|
|
85
|
+
"@nmshd/core-types": "7.2.0-openid4vc.2",
|
|
70
86
|
"@nmshd/crypto": "2.1.3",
|
|
71
87
|
"@nmshd/iql": "^1.0.4",
|
|
72
|
-
"@nmshd/runtime-types": "7.
|
|
73
|
-
"@nmshd/transport": "7.
|
|
88
|
+
"@nmshd/runtime-types": "7.2.0-openid4vc.2",
|
|
89
|
+
"@nmshd/transport": "7.2.0-openid4vc.2",
|
|
74
90
|
"@nmshd/typescript-ioc": "3.2.5",
|
|
75
91
|
"ajv": "^8.17.1",
|
|
76
92
|
"ajv-errors": "^3.0.0",
|
|
77
93
|
"ajv-formats": "^3.0.1",
|
|
94
|
+
"elliptic": "^6.6.1",
|
|
78
95
|
"json-stringify-safe": "^5.0.1",
|
|
79
96
|
"lodash": "^4.17.21",
|
|
80
97
|
"luxon": "^3.7.2",
|
|
@@ -85,6 +102,7 @@
|
|
|
85
102
|
"@js-soft/docdb-access-loki": "1.3.1",
|
|
86
103
|
"@js-soft/docdb-access-mongo": "1.3.1",
|
|
87
104
|
"@js-soft/node-logger": "1.2.1",
|
|
105
|
+
"@types/elliptic": "^6.4.18",
|
|
88
106
|
"@types/json-stringify-safe": "^5.0.3",
|
|
89
107
|
"@types/lodash": "^4.17.21",
|
|
90
108
|
"@types/luxon": "^3.7.1",
|
|
@@ -95,5 +113,5 @@
|
|
|
95
113
|
"access": "public",
|
|
96
114
|
"provenance": true
|
|
97
115
|
},
|
|
98
|
-
"version": "7.
|
|
116
|
+
"version": "7.2.0-openid4vc.2"
|
|
99
117
|
}
|