@sphereon/ssi-sdk.w3c-vc-api 0.33.0 → 0.33.1-feature.vcdm2.4

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.
@@ -1,44 +1,23 @@
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
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.issueCredentialEndpoint = issueCredentialEndpoint;
16
- exports.getCredentialsEndpoint = getCredentialsEndpoint;
17
- exports.getCredentialEndpoint = getCredentialEndpoint;
18
- exports.verifyCredentialEndpoint = verifyCredentialEndpoint;
19
- exports.deleteCredentialEndpoint = deleteCredentialEndpoint;
20
- const ssi_express_support_1 = require("@sphereon/ssi-express-support");
21
- const ssi_sdk_agent_config_1 = require("@sphereon/ssi-sdk.agent-config");
22
- const uuid_1 = require("uuid");
23
- const debug_1 = __importDefault(require("debug"));
24
- const ssi_sdk_credential_store_1 = require("@sphereon/ssi-sdk.credential-store");
25
- const ssi_sdk_data_store_1 = require("@sphereon/ssi-sdk.data-store");
26
- const debug = (0, debug_1.default)('sphereon:ssi-sdk:w3c-vc-api');
27
- function issueCredentialEndpoint(router, context, opts) {
28
- var _a;
29
- if ((opts === null || opts === void 0 ? void 0 : opts.enabled) === false) {
1
+ import { checkAuth, sendErrorResponse } from '@sphereon/ssi-express-support';
2
+ import { contextHasPlugin } from '@sphereon/ssi-sdk.agent-config';
3
+ import { v4 } from 'uuid';
4
+ import Debug from 'debug';
5
+ import { DocumentType } from '@sphereon/ssi-sdk.credential-store';
6
+ import { CredentialRole } from '@sphereon/ssi-sdk.data-store';
7
+ const debug = Debug('sphereon:ssi-sdk:w3c-vc-api');
8
+ export function issueCredentialEndpoint(router, context, opts) {
9
+ if (opts?.enabled === false) {
30
10
  console.log(`Issue credential endpoint is disabled`);
31
11
  return;
32
12
  }
33
- const path = (_a = opts === null || opts === void 0 ? void 0 : opts.path) !== null && _a !== void 0 ? _a : '/credentials/issue';
34
- router.post(path, (0, ssi_express_support_1.checkAuth)(opts === null || opts === void 0 ? void 0 : opts.endpoint), (request, response) => __awaiter(this, void 0, void 0, function* () {
35
- var _a, _b, _c;
13
+ const path = opts?.path ?? '/credentials/issue';
14
+ router.post(path, checkAuth(opts?.endpoint), async (request, response) => {
36
15
  try {
37
16
  const credential = request.body.credential;
38
- const reqOpts = (_a = request.body.options) !== null && _a !== void 0 ? _a : {};
17
+ const reqOpts = request.body.options ?? {};
39
18
  let reqProofFormat;
40
19
  if (reqOpts.proofFormat) {
41
- if ((_b = reqOpts === null || reqOpts === void 0 ? void 0 : reqOpts.proofFormat) === null || _b === void 0 ? void 0 : _b.includes('ld')) {
20
+ if (reqOpts?.proofFormat?.includes('ld')) {
42
21
  reqProofFormat = 'lds';
43
22
  }
44
23
  else {
@@ -46,49 +25,48 @@ function issueCredentialEndpoint(router, context, opts) {
46
25
  }
47
26
  }
48
27
  if (!credential) {
49
- return (0, ssi_express_support_1.sendErrorResponse)(response, 400, 'No credential supplied');
28
+ return sendErrorResponse(response, 400, 'No credential supplied');
50
29
  }
51
30
  if (!credential.id) {
52
- credential.id = `urn:uuid:${(0, uuid_1.v4)()}`;
31
+ credential.id = `urn:uuid:${v4()}`;
53
32
  }
54
- if ((0, ssi_sdk_agent_config_1.contextHasPlugin)(context, 'slAddStatusToCredential')) {
33
+ if (contextHasPlugin(context, 'slAddStatusToCredential')) {
55
34
  // Add status list if enabled (and when the input has a credentialStatus object (can be empty))
56
- const credentialStatusVC = yield context.agent.slAddStatusToCredential({ credential });
35
+ const credentialStatusVC = await context.agent.slAddStatusToCredential({ credential });
57
36
  if (credential.credentialStatus && !credential.credentialStatus.statusListCredential) {
58
37
  credential.credentialStatus = credentialStatusVC.credentialStatus;
59
38
  }
60
39
  }
61
- const issueOpts = opts === null || opts === void 0 ? void 0 : opts.issueCredentialOpts;
62
- const vc = yield context.agent.createVerifiableCredential({
40
+ const issueOpts = opts?.issueCredentialOpts;
41
+ const vc = await context.agent.createVerifiableCredential({
63
42
  credential,
64
- save: (opts === null || opts === void 0 ? void 0 : opts.persistIssuedCredentials) !== false,
65
- proofFormat: (_c = reqProofFormat !== null && reqProofFormat !== void 0 ? reqProofFormat : issueOpts === null || issueOpts === void 0 ? void 0 : issueOpts.proofFormat) !== null && _c !== void 0 ? _c : 'lds',
66
- fetchRemoteContexts: (issueOpts === null || issueOpts === void 0 ? void 0 : issueOpts.fetchRemoteContexts) !== false,
43
+ save: opts?.persistIssuedCredentials !== false,
44
+ proofFormat: reqProofFormat ?? issueOpts?.proofFormat ?? 'lds',
45
+ fetchRemoteContexts: issueOpts?.fetchRemoteContexts !== false,
67
46
  });
68
47
  response.statusCode = 201;
69
48
  return response.send({ verifiableCredential: vc });
70
49
  }
71
50
  catch (e) {
72
- return (0, ssi_express_support_1.sendErrorResponse)(response, 500, e.message, e);
51
+ return sendErrorResponse(response, 500, e.message, e);
73
52
  }
74
- }));
53
+ });
75
54
  }
76
- function getCredentialsEndpoint(router, context, opts) {
77
- var _a;
78
- if ((opts === null || opts === void 0 ? void 0 : opts.enabled) === false) {
55
+ export function getCredentialsEndpoint(router, context, opts) {
56
+ if (opts?.enabled === false) {
79
57
  console.log(`Get credentials endpoint is disabled`);
80
58
  return;
81
59
  }
82
- const path = (_a = opts === null || opts === void 0 ? void 0 : opts.path) !== null && _a !== void 0 ? _a : '/credentials';
83
- router.get(path, (0, ssi_express_support_1.checkAuth)(opts === null || opts === void 0 ? void 0 : opts.endpoint), (request, response) => __awaiter(this, void 0, void 0, function* () {
60
+ const path = opts?.path ?? '/credentials';
61
+ router.get(path, checkAuth(opts?.endpoint), async (request, response) => {
84
62
  try {
85
- const credentialRole = request.query.credentialRole || ssi_sdk_data_store_1.CredentialRole.HOLDER;
86
- if (!Object.values(ssi_sdk_data_store_1.CredentialRole).includes(credentialRole)) {
87
- return (0, ssi_express_support_1.sendErrorResponse)(response, 400, `Invalid credentialRole: ${credentialRole}`);
63
+ const credentialRole = request.query.credentialRole || CredentialRole.HOLDER;
64
+ if (!Object.values(CredentialRole).includes(credentialRole)) {
65
+ return sendErrorResponse(response, 400, `Invalid credentialRole: ${credentialRole}`);
88
66
  }
89
- const documentType = request.query.documentType || ssi_sdk_credential_store_1.DocumentType.VC;
90
- if (!Object.values(ssi_sdk_credential_store_1.DocumentType).includes(documentType)) {
91
- return (0, ssi_express_support_1.sendErrorResponse)(response, 400, `Invalid documentType: ${documentType}`);
67
+ const documentType = request.query.documentType || DocumentType.VC;
68
+ if (!Object.values(DocumentType).includes(documentType)) {
69
+ return sendErrorResponse(response, 400, `Invalid documentType: ${documentType}`);
92
70
  }
93
71
  const filter = [
94
72
  {
@@ -96,112 +74,109 @@ function getCredentialsEndpoint(router, context, opts) {
96
74
  credentialRole: credentialRole,
97
75
  },
98
76
  ];
99
- const uniqueVCs = yield context.agent.crsGetUniqueCredentials({ filter });
77
+ const uniqueVCs = await context.agent.crsGetUniqueCredentials({ filter });
100
78
  response.statusCode = 202;
101
79
  return response.send(uniqueVCs.map((uVC) => uVC.uniformVerifiableCredential));
102
80
  }
103
81
  catch (e) {
104
- return (0, ssi_express_support_1.sendErrorResponse)(response, 500, e.message, e);
82
+ return sendErrorResponse(response, 500, e.message, e);
105
83
  }
106
- }));
84
+ });
107
85
  }
108
- function getCredentialEndpoint(router, context, opts) {
109
- var _a;
110
- if ((opts === null || opts === void 0 ? void 0 : opts.enabled) === false) {
86
+ export function getCredentialEndpoint(router, context, opts) {
87
+ if (opts?.enabled === false) {
111
88
  console.log(`Get credential endpoint is disabled`);
112
89
  return;
113
90
  }
114
- const path = (_a = opts === null || opts === void 0 ? void 0 : opts.path) !== null && _a !== void 0 ? _a : '/credentials/:id';
115
- router.get(path, (0, ssi_express_support_1.checkAuth)(opts === null || opts === void 0 ? void 0 : opts.endpoint), (request, response) => __awaiter(this, void 0, void 0, function* () {
91
+ const path = opts?.path ?? '/credentials/:id';
92
+ router.get(path, checkAuth(opts?.endpoint), async (request, response) => {
116
93
  try {
117
94
  const id = request.params.id;
118
95
  if (!id) {
119
- return (0, ssi_express_support_1.sendErrorResponse)(response, 400, 'no id provided');
96
+ return sendErrorResponse(response, 400, 'no id provided');
120
97
  }
121
- const credentialRole = request.query.credentialRole || ssi_sdk_data_store_1.CredentialRole.HOLDER;
122
- if (!Object.values(ssi_sdk_data_store_1.CredentialRole).includes(credentialRole)) {
123
- return (0, ssi_express_support_1.sendErrorResponse)(response, 400, `Invalid credentialRole: ${credentialRole}`);
98
+ const credentialRole = request.query.credentialRole || CredentialRole.HOLDER;
99
+ if (!Object.values(CredentialRole).includes(credentialRole)) {
100
+ return sendErrorResponse(response, 400, `Invalid credentialRole: ${credentialRole}`);
124
101
  }
125
- const vcInfo = yield context.agent.crsGetUniqueCredentialByIdOrHash({
102
+ const vcInfo = await context.agent.crsGetUniqueCredentialByIdOrHash({
126
103
  credentialRole: credentialRole,
127
104
  idOrHash: id,
128
105
  });
129
106
  if (!vcInfo) {
130
- return (0, ssi_express_support_1.sendErrorResponse)(response, 403, `id ${id} not found`);
107
+ return sendErrorResponse(response, 403, `id ${id} not found`);
131
108
  }
132
109
  response.statusCode = 200;
133
110
  return response.send(vcInfo.uniformVerifiableCredential);
134
111
  }
135
112
  catch (e) {
136
- return (0, ssi_express_support_1.sendErrorResponse)(response, 500, e.message, e);
113
+ return sendErrorResponse(response, 500, e.message, e);
137
114
  }
138
- }));
115
+ });
139
116
  }
140
- function verifyCredentialEndpoint(router, context, opts) {
141
- var _a;
142
- if ((opts === null || opts === void 0 ? void 0 : opts.enabled) === false) {
117
+ export function verifyCredentialEndpoint(router, context, opts) {
118
+ if (opts?.enabled === false) {
143
119
  console.log(`Verify credential endpoint is disabled`);
144
120
  return;
145
121
  }
146
- router.post((_a = opts === null || opts === void 0 ? void 0 : opts.path) !== null && _a !== void 0 ? _a : '/credentials/verify', (0, ssi_express_support_1.checkAuth)(opts === null || opts === void 0 ? void 0 : opts.endpoint), (request, response) => __awaiter(this, void 0, void 0, function* () {
122
+ router.post(opts?.path ?? '/credentials/verify', checkAuth(opts?.endpoint), async (request, response) => {
147
123
  try {
148
124
  debug(JSON.stringify(request.body, null, 2));
149
125
  const credential = request.body.verifiableCredential;
150
126
  // const options: IIssueOptionsPayload = request.body.options
151
127
  if (!credential) {
152
- return (0, ssi_express_support_1.sendErrorResponse)(response, 400, 'No verifiable credential supplied');
128
+ return sendErrorResponse(response, 400, 'No verifiable credential supplied');
153
129
  }
154
- const verifyResult = yield context.agent.verifyCredential({
130
+ const verifyResult = await context.agent.verifyCredential({
155
131
  credential,
156
132
  policies: {
157
133
  credentialStatus: false, // Do not use built-in. We have our own statusList implementations
158
134
  },
159
- fetchRemoteContexts: (opts === null || opts === void 0 ? void 0 : opts.fetchRemoteContexts) !== false,
135
+ fetchRemoteContexts: opts?.fetchRemoteContexts !== false,
160
136
  });
161
137
  response.statusCode = 200;
162
138
  return response.send(verifyResult);
163
139
  }
164
140
  catch (e) {
165
- return (0, ssi_express_support_1.sendErrorResponse)(response, 500, e.message, e);
141
+ return sendErrorResponse(response, 500, e.message, e);
166
142
  }
167
- }));
143
+ });
168
144
  }
169
- function deleteCredentialEndpoint(router, context, opts) {
170
- var _a;
171
- if ((opts === null || opts === void 0 ? void 0 : opts.enabled) === false) {
145
+ export function deleteCredentialEndpoint(router, context, opts) {
146
+ if (opts?.enabled === false) {
172
147
  console.log(`Delete credential endpoint is disabled`);
173
148
  return;
174
149
  }
175
- router.delete((_a = opts === null || opts === void 0 ? void 0 : opts.path) !== null && _a !== void 0 ? _a : '/credentials/:id', (0, ssi_express_support_1.checkAuth)(opts === null || opts === void 0 ? void 0 : opts.endpoint), (request, response) => __awaiter(this, void 0, void 0, function* () {
150
+ router.delete(opts?.path ?? '/credentials/:id', checkAuth(opts?.endpoint), async (request, response) => {
176
151
  try {
177
152
  const id = request.params.id;
178
153
  if (!id) {
179
- return (0, ssi_express_support_1.sendErrorResponse)(response, 400, 'no id provided');
154
+ return sendErrorResponse(response, 400, 'no id provided');
180
155
  }
181
156
  const credentialRole = request.query.credentialRole;
182
157
  if (credentialRole === undefined) {
183
- return (0, ssi_express_support_1.sendErrorResponse)(response, 400, 'credentialRole query parameter is missing');
158
+ return sendErrorResponse(response, 400, 'credentialRole query parameter is missing');
184
159
  }
185
- if (!Object.values(ssi_sdk_data_store_1.CredentialRole).includes(credentialRole)) {
186
- return (0, ssi_express_support_1.sendErrorResponse)(response, 400, `Invalid credentialRole: ${credentialRole}`);
160
+ if (!Object.values(CredentialRole).includes(credentialRole)) {
161
+ return sendErrorResponse(response, 400, `Invalid credentialRole: ${credentialRole}`);
187
162
  }
188
- const vcInfo = yield context.agent.crsGetUniqueCredentialByIdOrHash({
163
+ const vcInfo = await context.agent.crsGetUniqueCredentialByIdOrHash({
189
164
  credentialRole: credentialRole,
190
165
  idOrHash: id,
191
166
  });
192
167
  if (!vcInfo) {
193
- return (0, ssi_express_support_1.sendErrorResponse)(response, 404, `id ${id} not found`);
168
+ return sendErrorResponse(response, 404, `id ${id} not found`);
194
169
  }
195
- const success = yield context.agent.crsDeleteCredentials({ filter: [{ hash: vcInfo.hash }] });
170
+ const success = await context.agent.crsDeleteCredentials({ filter: [{ hash: vcInfo.hash }] });
196
171
  if (success === 0) {
197
- return (0, ssi_express_support_1.sendErrorResponse)(response, 400, `Could not delete Verifiable Credential with id ${id}`);
172
+ return sendErrorResponse(response, 400, `Could not delete Verifiable Credential with id ${id}`);
198
173
  }
199
174
  response.statusCode = 200;
200
175
  return response.send();
201
176
  }
202
177
  catch (e) {
203
- return (0, ssi_express_support_1.sendErrorResponse)(response, 500, e.message, e);
178
+ return sendErrorResponse(response, 500, e.message, e);
204
179
  }
205
- }));
180
+ });
206
181
  }
207
182
  //# sourceMappingURL=api-functions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-functions.js","sourceRoot":"","sources":["../src/api-functions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAaA,0DA6CC;AAED,wDA+BC;AAED,sDA8BC;AAED,4DA2BC;AAED,4DAoCC;AA9LD,uEAAiG;AACjG,yEAAiE;AAKjE,+BAAyB;AAEzB,kDAAyB;AACzB,iFAA4F;AAE5F,qEAA6D;AAC7D,MAAM,KAAK,GAAG,IAAA,eAAK,EAAC,6BAA6B,CAAC,CAAA;AAClD,SAAgB,uBAAuB,CAAC,MAAc,EAAE,OAAyB,EAAE,IAAmC;;IACpH,IAAI,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,MAAK,KAAK,EAAE,CAAC;QAC5B,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAA;QACpD,OAAM;IACR,CAAC;IACD,MAAM,IAAI,GAAG,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,IAAI,mCAAI,oBAAoB,CAAA;IAE/C,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAA,+BAAS,EAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,CAAC,EAAE,CAAO,OAAgB,EAAE,QAAkB,EAAE,EAAE;;QAC1F,IAAI,CAAC;YACH,MAAM,UAAU,GAAsB,OAAO,CAAC,IAAI,CAAC,UAAU,CAAA;YAC7D,MAAM,OAAO,GAAG,MAAA,OAAO,CAAC,IAAI,CAAC,OAAO,mCAAI,EAAE,CAAA;YAC1C,IAAI,cAAuC,CAAA;YAC3C,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;g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,EAAE,CAAC;gBAClB,OAAO,iBAAiB,CAAC,QAAQ,EAAE,GAAG,EAAE,kDAAkD,EAAE,EAAE,CAAC,CAAA;YACjG,CAAC;YACD,QAAQ,CAAC,UAAU,GAAG,GAAG,CAAA;YACzB,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAA;QACxB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,iBAAiB,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,OAAiB,EAAE,CAAC,CAAC,CAAA;QACjE,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
package/dist/index.js CHANGED
@@ -1,23 +1,7 @@
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
1
  /**
18
2
  * @public
19
3
  */
20
- __exportStar(require("./vc-api-server"), exports);
21
- __exportStar(require("./types"), exports);
22
- __exportStar(require("./api-functions"), exports);
4
+ export * from './vc-api-server';
5
+ export * from './types';
6
+ export * from './api-functions';
23
7
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,kDAA+B;AAC/B,0CAAuB;AACvB,kDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA"}
package/dist/types.js CHANGED
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=types.js.map
@@ -1,21 +1,18 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.VcApiServer = void 0;
7
- const ssi_sdk_core_1 = require("@sphereon/ssi-sdk.core");
8
- const express_1 = __importDefault(require("express"));
9
- const api_functions_1 = require("./api-functions");
10
- class VcApiServer {
1
+ import { agentContext } from '@sphereon/ssi-sdk.core';
2
+ import express from 'express';
3
+ import { deleteCredentialEndpoint, getCredentialEndpoint, getCredentialsEndpoint, issueCredentialEndpoint, verifyCredentialEndpoint, } from './api-functions';
4
+ export class VcApiServer {
11
5
  get router() {
12
6
  return this._router;
13
7
  }
8
+ _express;
9
+ _agent;
10
+ _opts;
11
+ _router;
14
12
  constructor(args) {
15
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
16
13
  const { agent, opts } = args;
17
14
  this._agent = agent;
18
- if ((_a = opts === null || opts === void 0 ? void 0 : opts.endpointOpts) === null || _a === void 0 ? void 0 : _a.globalAuth) {
15
+ if (opts?.endpointOpts?.globalAuth) {
19
16
  copyGlobalAuthToEndpoint(opts, 'issueCredential');
20
17
  copyGlobalAuthToEndpoint(opts, 'getCredential');
21
18
  copyGlobalAuthToEndpoint(opts, 'getCredentials');
@@ -24,23 +21,29 @@ class VcApiServer {
24
21
  }
25
22
  this._opts = opts;
26
23
  this._express = args.expressSupport.express;
27
- this._router = express_1.default.Router();
28
- const context = (0, ssi_sdk_core_1.agentContext)(agent);
29
- const features = (_c = (_b = opts === null || opts === void 0 ? void 0 : opts.issueCredentialOpts) === null || _b === void 0 ? void 0 : _b.enableFeatures) !== null && _c !== void 0 ? _c : ['vc-issue', 'vc-persist', 'vc-verify'];
24
+ this._router = express.Router();
25
+ const context = agentContext(agent);
26
+ const features = opts?.issueCredentialOpts?.enableFeatures ?? ['vc-issue', 'vc-persist', 'vc-verify'];
30
27
  console.log(`VC API enabled, with features: ${JSON.stringify(features)}`);
31
28
  // Credential endpoints
32
29
  if (features.includes('vc-issue')) {
33
- (0, api_functions_1.issueCredentialEndpoint)(this.router, context, Object.assign(Object.assign({}, (_d = opts === null || opts === void 0 ? void 0 : opts.endpointOpts) === null || _d === void 0 ? void 0 : _d.issueCredential), { issueCredentialOpts: opts === null || opts === void 0 ? void 0 : opts.issueCredentialOpts }));
30
+ issueCredentialEndpoint(this.router, context, {
31
+ ...opts?.endpointOpts?.issueCredential,
32
+ issueCredentialOpts: opts?.issueCredentialOpts,
33
+ });
34
34
  }
35
35
  if (features.includes('vc-persist')) {
36
- (0, api_functions_1.getCredentialEndpoint)(this.router, context, (_e = opts === null || opts === void 0 ? void 0 : opts.endpointOpts) === null || _e === void 0 ? void 0 : _e.getCredential);
37
- (0, api_functions_1.getCredentialsEndpoint)(this.router, context, (_f = opts === null || opts === void 0 ? void 0 : opts.endpointOpts) === null || _f === void 0 ? void 0 : _f.getCredentials);
38
- (0, api_functions_1.deleteCredentialEndpoint)(this.router, context, (_g = opts === null || opts === void 0 ? void 0 : opts.endpointOpts) === null || _g === void 0 ? void 0 : _g.deleteCredential); // not in spec.
36
+ getCredentialEndpoint(this.router, context, opts?.endpointOpts?.getCredential);
37
+ getCredentialsEndpoint(this.router, context, opts?.endpointOpts?.getCredentials);
38
+ deleteCredentialEndpoint(this.router, context, opts?.endpointOpts?.deleteCredential); // not in spec.
39
39
  }
40
40
  if (features.includes('vc-verify')) {
41
- (0, api_functions_1.verifyCredentialEndpoint)(this.router, context, Object.assign(Object.assign({}, (_h = opts === null || opts === void 0 ? void 0 : opts.endpointOpts) === null || _h === void 0 ? void 0 : _h.verifyCredential), { fetchRemoteContexts: (_j = opts === null || opts === void 0 ? void 0 : opts.issueCredentialOpts) === null || _j === void 0 ? void 0 : _j.fetchRemoteContexts }));
41
+ verifyCredentialEndpoint(this.router, context, {
42
+ ...opts?.endpointOpts?.verifyCredential,
43
+ fetchRemoteContexts: opts?.issueCredentialOpts?.fetchRemoteContexts,
44
+ });
42
45
  }
43
- this._express.use((_l = (_k = opts === null || opts === void 0 ? void 0 : opts.endpointOpts) === null || _k === void 0 ? void 0 : _k.basePath) !== null && _l !== void 0 ? _l : '', this.router);
46
+ this._express.use(opts?.endpointOpts?.basePath ?? '', this.router);
44
47
  }
45
48
  get agent() {
46
49
  return this._agent;
@@ -52,14 +55,15 @@ class VcApiServer {
52
55
  return this._express;
53
56
  }
54
57
  }
55
- exports.VcApiServer = VcApiServer;
56
58
  function copyGlobalAuthToEndpoint(opts, key) {
57
- var _a, _b;
58
- if ((_a = opts === null || opts === void 0 ? void 0 : opts.endpointOpts) === null || _a === void 0 ? void 0 : _a.globalAuth) {
59
+ if (opts?.endpointOpts?.globalAuth) {
59
60
  // @ts-ignore
60
- opts.endpointOpts[key] = Object.assign(Object.assign({}, opts.endpointOpts[key]), {
61
+ opts.endpointOpts[key] = {
61
62
  // @ts-ignore
62
- endpoint: Object.assign(Object.assign({}, opts.endpointOpts.globalAuth), (_b = opts.endpointOpts[key]) === null || _b === void 0 ? void 0 : _b.endpoint) });
63
+ ...opts.endpointOpts[key],
64
+ // @ts-ignore
65
+ endpoint: { ...opts.endpointOpts.globalAuth, ...opts.endpointOpts[key]?.endpoint },
66
+ };
63
67
  }
64
68
  }
65
69
  //# sourceMappingURL=vc-api-server.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vc-api-server.js","sourceRoot":"","sources":["../src/vc-api-server.ts"],"names":[],"mappings":";;;;;;AAAA,yDAAqD;AAIrD,sDAAkD;AAClD,mDAMwB;AAG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,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,wBAAwB,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,EAAE;gBAC7C,GAAG,IAAI,EAAE,YAAY,EAAE,gBAAgB;gBACvC,mBAAmB,EAAE,IAAI,EAAE,mBAAmB,EAAE,mBAAmB;aACpE,CAAC,CAAA;QACJ,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,QAAQ,IAAI,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;IACpE,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAA;IACpB,CAAC;IAED,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,KAAK,CAAA;IACnB,CAAC;IAED,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;CACF;AAED,SAAS,wBAAwB,CAAC,IAAgB,EAAE,GAAW;IAC7D,IAAI,IAAI,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;QACnC,aAAa;QACb,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG;YACvB,aAAa;YACb,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC;YACzB,aAAa;YACb,QAAQ,EAAE,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE;SACnF,CAAA;IACH,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.w3c-vc-api",
3
- "version": "0.33.0",
3
+ "version": "0.33.1-feature.vcdm2.4+9f634bdb",
4
4
  "source": "src/index.ts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,15 +12,15 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@sphereon/did-auth-siop": "0.17.0",
15
- "@sphereon/ssi-express-support": "0.33.0",
16
- "@sphereon/ssi-sdk.agent-config": "0.33.0",
17
- "@sphereon/ssi-sdk.core": "0.33.0",
18
- "@sphereon/ssi-sdk.credential-store": "0.33.0",
19
- "@sphereon/ssi-sdk.kv-store-temp": "0.33.0",
20
- "@sphereon/ssi-sdk.presentation-exchange": "0.33.0",
21
- "@sphereon/ssi-sdk.vc-status-list": "0.33.0",
22
- "@sphereon/ssi-sdk.vc-status-list-issuer": "0.33.0",
23
- "@sphereon/ssi-types": "0.33.0",
15
+ "@sphereon/ssi-express-support": "0.33.1-feature.vcdm2.4+9f634bdb",
16
+ "@sphereon/ssi-sdk.agent-config": "0.33.1-feature.vcdm2.4+9f634bdb",
17
+ "@sphereon/ssi-sdk.core": "0.33.1-feature.vcdm2.4+9f634bdb",
18
+ "@sphereon/ssi-sdk.credential-store": "0.33.1-feature.vcdm2.4+9f634bdb",
19
+ "@sphereon/ssi-sdk.kv-store-temp": "0.33.1-feature.vcdm2.4+9f634bdb",
20
+ "@sphereon/ssi-sdk.presentation-exchange": "0.33.1-feature.vcdm2.4+9f634bdb",
21
+ "@sphereon/ssi-sdk.vc-status-list": "0.33.1-feature.vcdm2.4+9f634bdb",
22
+ "@sphereon/ssi-sdk.vc-status-list-issuer": "0.33.1-feature.vcdm2.4+9f634bdb",
23
+ "@sphereon/ssi-types": "0.33.1-feature.vcdm2.4+9f634bdb",
24
24
  "@veramo/core": "4.2.0",
25
25
  "@veramo/credential-w3c": "4.2.0",
26
26
  "body-parser": "^1.20.2",
@@ -42,8 +42,8 @@
42
42
  "@sphereon/ssi-sdk-ext.key-manager": "0.28.0",
43
43
  "@sphereon/ssi-sdk-ext.kms-local": "0.28.0",
44
44
  "@sphereon/ssi-sdk.agent-config": "workspace:*",
45
- "@sphereon/ssi-sdk.data-store": "0.33.0",
46
- "@sphereon/ssi-sdk.vc-handler-ld-local": "0.33.0",
45
+ "@sphereon/ssi-sdk.data-store": "0.33.1-feature.vcdm2.4+9f634bdb",
46
+ "@sphereon/ssi-sdk.vc-handler-ld-local": "0.33.1-feature.vcdm2.4+9f634bdb",
47
47
  "@types/body-parser": "^1.19.5",
48
48
  "@types/cookie-parser": "^1.4.7",
49
49
  "@types/cors": "^2.8.17",
@@ -97,5 +97,5 @@
97
97
  "VC API"
98
98
  ],
99
99
  "nx": {},
100
- "gitHead": "c575bdd6642bda761881f0152e0a70ddc82d7f61"
100
+ "gitHead": "9f634bdb714061141e277508c124b08d626f6036"
101
101
  }