@sphereon/ssi-sdk.remote-server-rest-api 0.34.1-feature.merge.crypto.extensions.modules.39 → 0.34.1-fix.103

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 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/remote-server-api-server.ts"],"sourcesContent":["export * from './types'\nexport * from './remote-server-api-server'\n","import { Express, Router } from 'express'\nimport { TAgent } from '@veramo/core'\nimport { AgentRouter, RequestWithAgentRouter } from '@veramo/remote-server'\nimport { copyGlobalAuthToEndpoint } from '@sphereon/ssi-express-support'\nimport { RemoteServerApiServerArgs, RemoteServerApiOpts } from './types'\n\nexport class RemoteServerApiServer {\n private readonly _agent: TAgent<any>\n private readonly _exposedMethods: Array<string>\n private readonly _express: Express\n private readonly _opts: RemoteServerApiOpts\n private readonly _requestWithAgentRouter: Router\n private readonly _agentRouter: Router\n\n get agent(): TAgent<any> {\n return this._agent\n }\n\n get opts(): RemoteServerApiOpts {\n return this._opts\n }\n\n get exposedMethods(): Array<string> {\n return this._exposedMethods\n }\n\n get express(): Express {\n return this._express\n }\n\n get agentRouter(): Router {\n return this._agentRouter\n }\n\n get requestWithAgentRouter(): Router {\n return this._requestWithAgentRouter\n }\n\n constructor(args: RemoteServerApiServerArgs) {\n const { agent, expressSupport, opts } = args\n\n this._agent = agent\n this._opts = opts\n this._exposedMethods = opts.exposedMethods ?? []\n this._express = expressSupport.express\n this._requestWithAgentRouter = RequestWithAgentRouter({ agent: this._agent })\n this._agentRouter = AgentRouter({ exposedMethods: this._exposedMethods })\n\n if (opts.endpointOpts?.globalAuth) {\n this._exposedMethods.forEach((method) => {\n copyGlobalAuthToEndpoint({ opts, key: method })\n })\n }\n\n const basePath = opts.endpointOpts?.basePath ?? ''\n\n this._express.use(this._requestWithAgentRouter)\n this._express.use(basePath, this._agentRouter)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACEA,2BAAoD;AACpD,iCAAyC;AAGlC,IAAMA,wBAAN,MAAMA;EAJb,OAIaA;;;EACMC;EACAC;EACAC;EACAC;EACAC;EACAC;EAEjB,IAAIC,QAAqB;AACvB,WAAO,KAAKN;EACd;EAEA,IAAIO,OAA4B;AAC9B,WAAO,KAAKJ;EACd;EAEA,IAAIK,iBAAgC;AAClC,WAAO,KAAKP;EACd;EAEA,IAAIQ,UAAmB;AACrB,WAAO,KAAKP;EACd;EAEA,IAAIQ,cAAsB;AACxB,WAAO,KAAKL;EACd;EAEA,IAAIM,yBAAiC;AACnC,WAAO,KAAKP;EACd;EAEA,YAAYQ,MAAiC;AAC3C,UAAM,EAAEN,OAAOO,gBAAgBN,KAAI,IAAKK;AAExC,SAAKZ,SAASM;AACd,SAAKH,QAAQI;AACb,SAAKN,kBAAkBM,KAAKC,kBAAkB,CAAA;AAC9C,SAAKN,WAAWW,eAAeJ;AAC/B,SAAKL,8BAA0BU,6CAAuB;MAAER,OAAO,KAAKN;IAAO,CAAA;AAC3E,SAAKK,mBAAeU,kCAAY;MAAEP,gBAAgB,KAAKP;IAAgB,CAAA;AAEvE,QAAIM,KAAKS,cAAcC,YAAY;AACjC,WAAKhB,gBAAgBiB,QAAQ,CAACC,WAAAA;AAC5BC,iEAAyB;UAAEb;UAAMc,KAAKF;QAAO,CAAA;MAC/C,CAAA;IACF;AAEA,UAAMG,WAAWf,KAAKS,cAAcM,YAAY;AAEhD,SAAKpB,SAASqB,IAAI,KAAKnB,uBAAuB;AAC9C,SAAKF,SAASqB,IAAID,UAAU,KAAKjB,YAAY;EAC/C;AACF;","names":["RemoteServerApiServer","_agent","_exposedMethods","_express","_opts","_requestWithAgentRouter","_agentRouter","agent","opts","exposedMethods","express","agentRouter","requestWithAgentRouter","args","expressSupport","RequestWithAgentRouter","AgentRouter","endpointOpts","globalAuth","forEach","method","copyGlobalAuthToEndpoint","key","basePath","use"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/remote-server-api-server.ts"],"sourcesContent":["export * from './types'\nexport * from './remote-server-api-server'\n","import { Express, Router } from 'express'\nimport { TAgent } from '@veramo/core'\nimport { AgentRouter, RequestWithAgentRouter } from '@veramo/remote-server'\nimport { copyGlobalAuthToEndpoint } from '@sphereon/ssi-express-support'\nimport { RemoteServerApiServerArgs, RemoteServerApiOpts } from './types'\n\nexport class RemoteServerApiServer {\n private readonly _agent: TAgent<any>\n private readonly _exposedMethods: Array<string>\n private readonly _express: Express\n private readonly _opts: RemoteServerApiOpts\n private readonly _requestWithAgentRouter: Router\n private readonly _agentRouter: Router\n\n get agent(): TAgent<any> {\n return this._agent\n }\n\n get opts(): RemoteServerApiOpts {\n return this._opts\n }\n\n get exposedMethods(): Array<string> {\n return this._exposedMethods\n }\n\n get express(): Express {\n return this._express\n }\n\n get agentRouter(): Router {\n return this._agentRouter\n }\n\n get requestWithAgentRouter(): Router {\n return this._requestWithAgentRouter\n }\n\n constructor(args: RemoteServerApiServerArgs) {\n const { agent, expressSupport, opts } = args\n\n this._agent = agent\n this._opts = opts\n this._exposedMethods = opts.exposedMethods ?? []\n this._express = expressSupport.express\n this._requestWithAgentRouter = RequestWithAgentRouter({ agent: this._agent })\n this._agentRouter = AgentRouter({ exposedMethods: this._exposedMethods })\n\n if (opts.endpointOpts?.globalAuth) {\n this._exposedMethods.forEach((method) => {\n copyGlobalAuthToEndpoint({ opts, key: method })\n })\n }\n\n const basePath = opts.endpointOpts?.basePath ?? ''\n\n this._express.use(this._requestWithAgentRouter)\n this._express.use(basePath, this._agentRouter)\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;ACEA,2BAAoD;AACpD,iCAAyC;AAGlC,IAAMA,wBAAN,MAAMA;EAJb,OAIaA;;;EACMC;EACAC;EACAC;EACAC;EACAC;EACAC;EAEjB,IAAIC,QAAqB;AACvB,WAAO,KAAKN;EACd;EAEA,IAAIO,OAA4B;AAC9B,WAAO,KAAKJ;EACd;EAEA,IAAIK,iBAAgC;AAClC,WAAO,KAAKP;EACd;EAEA,IAAIQ,UAAmB;AACrB,WAAO,KAAKP;EACd;EAEA,IAAIQ,cAAsB;AACxB,WAAO,KAAKL;EACd;EAEA,IAAIM,yBAAiC;AACnC,WAAO,KAAKP;EACd;EAEAQ,YAAYC,MAAiC;AAC3C,UAAM,EAAEP,OAAOQ,gBAAgBP,KAAI,IAAKM;AAExC,SAAKb,SAASM;AACd,SAAKH,QAAQI;AACb,SAAKN,kBAAkBM,KAAKC,kBAAkB,CAAA;AAC9C,SAAKN,WAAWY,eAAeL;AAC/B,SAAKL,8BAA0BW,6CAAuB;MAAET,OAAO,KAAKN;IAAO,CAAA;AAC3E,SAAKK,mBAAeW,kCAAY;MAAER,gBAAgB,KAAKP;IAAgB,CAAA;AAEvE,QAAIM,KAAKU,cAAcC,YAAY;AACjC,WAAKjB,gBAAgBkB,QAAQ,CAACC,WAAAA;AAC5BC,iEAAyB;UAAEd;UAAMe,KAAKF;QAAO,CAAA;MAC/C,CAAA;IACF;AAEA,UAAMG,WAAWhB,KAAKU,cAAcM,YAAY;AAEhD,SAAKrB,SAASsB,IAAI,KAAKpB,uBAAuB;AAC9C,SAAKF,SAASsB,IAAID,UAAU,KAAKlB,YAAY;EAC/C;AACF;","names":["RemoteServerApiServer","_agent","_exposedMethods","_express","_opts","_requestWithAgentRouter","_agentRouter","agent","opts","exposedMethods","express","agentRouter","requestWithAgentRouter","constructor","args","expressSupport","RequestWithAgentRouter","AgentRouter","endpointOpts","globalAuth","forEach","method","copyGlobalAuthToEndpoint","key","basePath","use"]}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/remote-server-api-server.ts"],"sourcesContent":["import { Express, Router } from 'express'\nimport { TAgent } from '@veramo/core'\nimport { AgentRouter, RequestWithAgentRouter } from '@veramo/remote-server'\nimport { copyGlobalAuthToEndpoint } from '@sphereon/ssi-express-support'\nimport { RemoteServerApiServerArgs, RemoteServerApiOpts } from './types'\n\nexport class RemoteServerApiServer {\n private readonly _agent: TAgent<any>\n private readonly _exposedMethods: Array<string>\n private readonly _express: Express\n private readonly _opts: RemoteServerApiOpts\n private readonly _requestWithAgentRouter: Router\n private readonly _agentRouter: Router\n\n get agent(): TAgent<any> {\n return this._agent\n }\n\n get opts(): RemoteServerApiOpts {\n return this._opts\n }\n\n get exposedMethods(): Array<string> {\n return this._exposedMethods\n }\n\n get express(): Express {\n return this._express\n }\n\n get agentRouter(): Router {\n return this._agentRouter\n }\n\n get requestWithAgentRouter(): Router {\n return this._requestWithAgentRouter\n }\n\n constructor(args: RemoteServerApiServerArgs) {\n const { agent, expressSupport, opts } = args\n\n this._agent = agent\n this._opts = opts\n this._exposedMethods = opts.exposedMethods ?? []\n this._express = expressSupport.express\n this._requestWithAgentRouter = RequestWithAgentRouter({ agent: this._agent })\n this._agentRouter = AgentRouter({ exposedMethods: this._exposedMethods })\n\n if (opts.endpointOpts?.globalAuth) {\n this._exposedMethods.forEach((method) => {\n copyGlobalAuthToEndpoint({ opts, key: method })\n })\n }\n\n const basePath = opts.endpointOpts?.basePath ?? ''\n\n this._express.use(this._requestWithAgentRouter)\n this._express.use(basePath, this._agentRouter)\n }\n}\n"],"mappings":";;;;AAEA,SAASA,aAAaC,8BAA8B;AACpD,SAASC,gCAAgC;AAGlC,IAAMC,wBAAN,MAAMA;EAJb,OAIaA;;;EACMC;EACAC;EACAC;EACAC;EACAC;EACAC;EAEjB,IAAIC,QAAqB;AACvB,WAAO,KAAKN;EACd;EAEA,IAAIO,OAA4B;AAC9B,WAAO,KAAKJ;EACd;EAEA,IAAIK,iBAAgC;AAClC,WAAO,KAAKP;EACd;EAEA,IAAIQ,UAAmB;AACrB,WAAO,KAAKP;EACd;EAEA,IAAIQ,cAAsB;AACxB,WAAO,KAAKL;EACd;EAEA,IAAIM,yBAAiC;AACnC,WAAO,KAAKP;EACd;EAEA,YAAYQ,MAAiC;AAC3C,UAAM,EAAEN,OAAOO,gBAAgBN,KAAI,IAAKK;AAExC,SAAKZ,SAASM;AACd,SAAKH,QAAQI;AACb,SAAKN,kBAAkBM,KAAKC,kBAAkB,CAAA;AAC9C,SAAKN,WAAWW,eAAeJ;AAC/B,SAAKL,0BAA0BU,uBAAuB;MAAER,OAAO,KAAKN;IAAO,CAAA;AAC3E,SAAKK,eAAeU,YAAY;MAAEP,gBAAgB,KAAKP;IAAgB,CAAA;AAEvE,QAAIM,KAAKS,cAAcC,YAAY;AACjC,WAAKhB,gBAAgBiB,QAAQ,CAACC,WAAAA;AAC5BC,iCAAyB;UAAEb;UAAMc,KAAKF;QAAO,CAAA;MAC/C,CAAA;IACF;AAEA,UAAMG,WAAWf,KAAKS,cAAcM,YAAY;AAEhD,SAAKpB,SAASqB,IAAI,KAAKnB,uBAAuB;AAC9C,SAAKF,SAASqB,IAAID,UAAU,KAAKjB,YAAY;EAC/C;AACF;","names":["AgentRouter","RequestWithAgentRouter","copyGlobalAuthToEndpoint","RemoteServerApiServer","_agent","_exposedMethods","_express","_opts","_requestWithAgentRouter","_agentRouter","agent","opts","exposedMethods","express","agentRouter","requestWithAgentRouter","args","expressSupport","RequestWithAgentRouter","AgentRouter","endpointOpts","globalAuth","forEach","method","copyGlobalAuthToEndpoint","key","basePath","use"]}
1
+ {"version":3,"sources":["../src/remote-server-api-server.ts"],"sourcesContent":["import { Express, Router } from 'express'\nimport { TAgent } from '@veramo/core'\nimport { AgentRouter, RequestWithAgentRouter } from '@veramo/remote-server'\nimport { copyGlobalAuthToEndpoint } from '@sphereon/ssi-express-support'\nimport { RemoteServerApiServerArgs, RemoteServerApiOpts } from './types'\n\nexport class RemoteServerApiServer {\n private readonly _agent: TAgent<any>\n private readonly _exposedMethods: Array<string>\n private readonly _express: Express\n private readonly _opts: RemoteServerApiOpts\n private readonly _requestWithAgentRouter: Router\n private readonly _agentRouter: Router\n\n get agent(): TAgent<any> {\n return this._agent\n }\n\n get opts(): RemoteServerApiOpts {\n return this._opts\n }\n\n get exposedMethods(): Array<string> {\n return this._exposedMethods\n }\n\n get express(): Express {\n return this._express\n }\n\n get agentRouter(): Router {\n return this._agentRouter\n }\n\n get requestWithAgentRouter(): Router {\n return this._requestWithAgentRouter\n }\n\n constructor(args: RemoteServerApiServerArgs) {\n const { agent, expressSupport, opts } = args\n\n this._agent = agent\n this._opts = opts\n this._exposedMethods = opts.exposedMethods ?? []\n this._express = expressSupport.express\n this._requestWithAgentRouter = RequestWithAgentRouter({ agent: this._agent })\n this._agentRouter = AgentRouter({ exposedMethods: this._exposedMethods })\n\n if (opts.endpointOpts?.globalAuth) {\n this._exposedMethods.forEach((method) => {\n copyGlobalAuthToEndpoint({ opts, key: method })\n })\n }\n\n const basePath = opts.endpointOpts?.basePath ?? ''\n\n this._express.use(this._requestWithAgentRouter)\n this._express.use(basePath, this._agentRouter)\n }\n}\n"],"mappings":";;;;AAEA,SAASA,aAAaC,8BAA8B;AACpD,SAASC,gCAAgC;AAGlC,IAAMC,wBAAN,MAAMA;EAJb,OAIaA;;;EACMC;EACAC;EACAC;EACAC;EACAC;EACAC;EAEjB,IAAIC,QAAqB;AACvB,WAAO,KAAKN;EACd;EAEA,IAAIO,OAA4B;AAC9B,WAAO,KAAKJ;EACd;EAEA,IAAIK,iBAAgC;AAClC,WAAO,KAAKP;EACd;EAEA,IAAIQ,UAAmB;AACrB,WAAO,KAAKP;EACd;EAEA,IAAIQ,cAAsB;AACxB,WAAO,KAAKL;EACd;EAEA,IAAIM,yBAAiC;AACnC,WAAO,KAAKP;EACd;EAEAQ,YAAYC,MAAiC;AAC3C,UAAM,EAAEP,OAAOQ,gBAAgBP,KAAI,IAAKM;AAExC,SAAKb,SAASM;AACd,SAAKH,QAAQI;AACb,SAAKN,kBAAkBM,KAAKC,kBAAkB,CAAA;AAC9C,SAAKN,WAAWY,eAAeL;AAC/B,SAAKL,0BAA0BW,uBAAuB;MAAET,OAAO,KAAKN;IAAO,CAAA;AAC3E,SAAKK,eAAeW,YAAY;MAAER,gBAAgB,KAAKP;IAAgB,CAAA;AAEvE,QAAIM,KAAKU,cAAcC,YAAY;AACjC,WAAKjB,gBAAgBkB,QAAQ,CAACC,WAAAA;AAC5BC,iCAAyB;UAAEd;UAAMe,KAAKF;QAAO,CAAA;MAC/C,CAAA;IACF;AAEA,UAAMG,WAAWhB,KAAKU,cAAcM,YAAY;AAEhD,SAAKrB,SAASsB,IAAI,KAAKpB,uBAAuB;AAC9C,SAAKF,SAASsB,IAAID,UAAU,KAAKlB,YAAY;EAC/C;AACF;","names":["AgentRouter","RequestWithAgentRouter","copyGlobalAuthToEndpoint","RemoteServerApiServer","_agent","_exposedMethods","_express","_opts","_requestWithAgentRouter","_agentRouter","agent","opts","exposedMethods","express","agentRouter","requestWithAgentRouter","constructor","args","expressSupport","RequestWithAgentRouter","AgentRouter","endpointOpts","globalAuth","forEach","method","copyGlobalAuthToEndpoint","key","basePath","use"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sphereon/ssi-sdk.remote-server-rest-api",
3
- "version": "0.34.1-feature.merge.crypto.extensions.modules.39+dea3b6de",
3
+ "version": "0.34.1-fix.103+693d8f0b",
4
4
  "source": "src/index.ts",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -22,8 +22,8 @@
22
22
  "start:prod": "node build/index.js"
23
23
  },
24
24
  "dependencies": {
25
- "@sphereon/ssi-express-support": "0.34.1-feature.merge.crypto.extensions.modules.39+dea3b6de",
26
- "@sphereon/ssi-types": "0.34.1-feature.merge.crypto.extensions.modules.39+dea3b6de",
25
+ "@sphereon/ssi-express-support": "0.34.1-fix.103+693d8f0b",
26
+ "@sphereon/ssi-types": "0.34.1-fix.103+693d8f0b",
27
27
  "@veramo/core": "4.2.0",
28
28
  "@veramo/remote-server": "4.2.0",
29
29
  "express": "^4.19.2"
@@ -52,5 +52,5 @@
52
52
  "REST",
53
53
  "API"
54
54
  ],
55
- "gitHead": "dea3b6de7ecd726e67ce100337fba2ea968500af"
55
+ "gitHead": "693d8f0b0c6566650a31647fda630a0715f960c7"
56
56
  }