{"_id":"@sphereon/ssi-sdk-wellknown-did-issuer","_rev":"188-f447c22e132d062cd9777643eb8a77ce","name":"@sphereon/ssi-sdk-wellknown-did-issuer","dist-tags":{"next":"0.10.2-next.11","latest":"0.11.0","unstable":"0.10.2-unstable.72"},"versions":{"0.7.1-next.66":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.7.1-next.66","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/wellknown-dids-client":"^0.1.1","did-jwt-vc":"^2.1.9","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"b4151a9cde3e5e5dcabb32367e7a6b6ab99cb6cd","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.7.1-next.66","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-7xFeQJUSHlO9HGc9OKpBd/k0EfTH60f7ttLbwnoS72lgd6ZjSjOZ3kKl17sZOZ1bfw+U4d9KiDTI18z/w/xY6Q==","shasum":"020921a19901aff31419e2cc01c5763ac91dc0c4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.7.1-next.66.tgz","fileCount":54,"unpackedSize":100768,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBYTT1jjc9o1t3/ql/nhrBalW3qKc7Wzpn1rGzHYcPH3AiBVy0gd8tN9iAJAyevFKbg5OiX/kkkbr29YqB7HByLPDw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEoXVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpW7g/8CWmZwj7OXNT01Jy6LxWCpe5+Q14+UmLN/eL6JqzbXlKKZ5UA\r\n5qsitX3I7sTyR8o9w6U83BLyepEcIyYEN9BiN0Uu+hpJTyT9HxQoWAnwUV4v\r\nJbS13r+DZJhyU/ONG+UVmzuiG5qFj0JnJ8EKUX6oPdXmGI7A/8STSOczH6gX\r\nHGDPTe2/4XCuobdYR1aTcWAaYj5ZLNS75SaQ51xNW/iZZOscFPlk2ch+u5gB\r\n2xpyNHro7w4vn5h+yWrAeLhu4VW0LqYuB+lQK8XeKRGjuU6F/IKdK1vyHc4h\r\nyqdy/wJx9/+BUHyoVgX/ozO7UgOtYf5XwXREsitfflzpnL7IeA80ckbrNLEN\r\nQvouyxdvJQAXHlL1Sb2wVxUcmOF9t/XzkV/IAqfjQzGMFnVh+eJeQEdc3TSs\r\ndBqbn7EEQ/oiRnprbvtx8uX1DI9Q6zZRfgGOFaeIYiPBZnoLtHwtb/gBga71\r\nIjGQxPfMmECOeBw++lnwe6OiA9gUSyN3Bzv7UU5BE1hktr0LUOjvNYfHK6kn\r\nW2S4dd8419c0r432amx5aFTLuXzygI80f0qCyTo7aILkXyXBH8aXWTHvIuqU\r\nESycZ624X4a7AUEdqCt3l9FacMCIubq45PIvIZ29FwZn7fgLkkyeQGJ8Fy/6\r\nI13Pn87gSDWEPRz/+c6e9febNzdzJt/mNHw=\r\n=ofxw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.7.1-next.66_1662158293708_0.06866874375244736"},"_hasShrinkwrap":false},"0.7.1-next.68":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.7.1-next.68","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/wellknown-dids-client":"^0.1.1","did-jwt-vc":"^2.1.9","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"00c9747efd89f125fc77330af0fc6ca6accdab74","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.7.1-next.68","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-ldbUR8NXdjga6Jchi5hGJ57Q1WDf0CbfjmsQmm5bSx64qRIgNA7IRff8/3+uZEP/l+CNhPbrtXwCsuBZEEvBfw==","shasum":"508b997947a070e2b772bfc9801fa067a85511fa","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.7.1-next.68.tgz","fileCount":54,"unpackedSize":100859,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOL9rO672vwukX+Pcf2UENJDS0j9PltDXKKdhdEQOyMwIhAKUBvjA27A7lVV7Ym5//6Vl8uFApWXqOmUN+9cvbZz+6"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEpdXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonCQ//QeAaq9BIznxBfVodKcU+GdjUzWxb/eIyEmZvKYtYYrGCUu91\r\nUzm6ge0TXbpuh0MLlk54KMP2JqesW1F3BlrjMCQAch9wpXxsMV3liwnpxRVZ\r\niQjpASpon19VRHION2GGr28PTtnhoo/OPwC0CP+rlFK3DQQuBLJnZhdhQu0x\r\nuNdCtXw2L8Y7ubz2yHaBVV1Z4f7geVUXhY6cM2syl9wLkQtGVHOP+tzXbTKs\r\nmFZYlF5zWcB83mxZMmhlsyGBW4VTI5MBf76XQlNraZxz6Mlgba35cD6/H+De\r\nGQzg2cOu9pz/76Ic0cWVop6UgJdEDPMBPjUJE2Y6WVCQHn4D42sXog+gRVr9\r\nQwh/i+UbdHGduv8W9fNvGdnV/qDj4NQ2bvXqJoIYAs5f7gElllybCqEHl+4x\r\nXn1qULBrsxWMhoJ5sjmYbjyodfZ7e6pCkP7GnT8nVMRqHFGE4s32xwIxTi8G\r\n+QoY3YqGWzxzX9oiKrAhVYbemZOsWLn4eL/XEnvmwRNuW9jdh64i34H6L4Xs\r\nsIn6ZdoTBpHLkSz1ZWP7mpxkcpqdqy5zbMZvflSvP/boq5JWtPJ21m3ckfaR\r\n9ntfhViqOBBKitzqiqrd3bu87iwoFUb/w1qNSPQs4oRdZdB5p+jfGxjZSvtl\r\nWz9rpe03XX4KQA6JUXtCfiDxN1ptpHNDFCU=\r\n=IC29\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.7.1-next.68_1662162774916_0.5820409591914681"},"_hasShrinkwrap":false},"0.8.0":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.0","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/wellknown-dids-client":"^0.1.1","did-jwt-vc":"^2.1.9","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"1032feb5588568edfbca0110f3ff9e6c38894135","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.0","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-kJmcjFNe6XAFC9kZKIMMlcl8s6FnzLwGu9pFFnccOTjsE4FyWIqZmWG0aUMXrNM/y4cEn1Aa/nb1OmP0lKdP4w==","shasum":"a5275e00fbfa00d549b50cc3dfc9e8648d19bf96","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.0.tgz","fileCount":54,"unpackedSize":100843,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBL3iKRRg1+cnQh0vGyrmE81qzfVRC/0BbtAeUbK4LitAiEAvNwtzjWBsbN4Vm2PD+jTqCmHK4nDG2bUbY0LVkHYVt0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEpsnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmon3Q//S6SwWhXbjMbonrHEo5PAezooFlf9uHAS4GsV7znSMV36O7h1\r\n1RhyPr2BjaPXOifaLnhGduyAXyz66sRH3/U2Z2y7nyTzpGyVRcYqOgwj+x02\r\nWSHlmnWdjrFVRY/Sa3B1ycfs3jFkxDMbNsOr1ZnuaKV5DwtRKIzb++WsMXIL\r\npmh8MZRISKLwabtI+JV+gOwWPkSw88OftwFp1yYm2MkXxklwC0B8vQi9a9pw\r\nwb8G8N9nYD6uPUkRpxHqUPFHzavK3nVe6tuZrpCy91PC4GinEPQ3YB9yqsWJ\r\n2rXGsJKVgk2amEqqHu7jIKu2R0/w8/T4wlwt99QHFcmk97Q4ZYicTHN2ZPLx\r\n+1wfxYIQ/dLZX+V65iF6kmLYMX5wvvSFJQJn8c70+gnWq0aRmKaLJeq3MVko\r\nDlxgW8+tBMlNZg0pVSYJ8oIQKYx2AJ7N7dXSiNikxbhyh+VOwURuDXqbU6+1\r\nw1d35vGRpkg6AllTIz0I1Ef5gPtVCjazSP7VMYtK4cXPCv6cEEVCwKgCZYeB\r\nXxiPs61Ad0dQCJREfp8eb0unxxoLV10deL4kHBSoUUDg68ypYG6OoaUR6kez\r\nyGRkCgRLddvcx4piUFwOmmkJ2yBVIZGBaXbYc4G2mdtVRvfrYJSe9qt/Beq5\r\nC/0U/j30maz48iRFB/hFT/xz1Xt3ywzoYRA=\r\n=ksYm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.0_1662163751754_0.4704749780355275"},"_hasShrinkwrap":false},"0.8.1-next.2":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.2","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.2+0b28de3","@sphereon/wellknown-dids-client":"^0.1.2","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"0b28de3de21afd0a224d3d174103e072162231ed","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.2","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-/Bo2t0PaFu1KYsLuB6qDmh5HF4Wv4Pb2a7CEwRUVWzZKtaelmyK3EoRvdIwvr4pgiQUfHuySNlF6dKk6GeYwJw==","shasum":"3ccd32567a8ed0ea3e93e9c98e330a60ad0e217f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.2.tgz","fileCount":54,"unpackedSize":100895,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGRRwz7zUUwBhhBVxM4qEhA88sGa2u+mNA3H2+3w6aywIgRHSLbn1VelwBEdLW75dHuKzHVeWmGGzcm5zrTDIFDC0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEqZXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrtrRAAlpeuHsbOPw0RxIh9wWF06T8poe++kZ3zghkKhDEVJ76U52Lv\r\nDsdUPo+f1ce+OzmvPjt85pUn0Dn65BpCeG7TDSUIUFnEWpYADhDqhXbbgTc7\r\nVn5Eqope2Z00zd1zHLU9ffkPCD1y6aSIHOehZ0hyc0F/kwax8zP3bgfEAUI3\r\n8l5WxVb8WS4qYTqwNdW6vYuE2ReUvwpeQz0uoVgVmZ8kmjWVUzqHkcv8sCql\r\nwWUTcGb61/NeTcOYdz7m6IPTLxfMCaaLHj5to40ScBy1gipn5i7P0QrhAO2y\r\nKpu1Z9mUGb+EriM4usG3EULHAW4KFBSLLsIpEYo1Tez0OdRLlCCoLmczz3CR\r\nXYDyK6Y4fY4/UAip5XLcSNO6ckUab2OSNVD/SsOKTzcD7O9oukqFJYTIEqIr\r\njrCSSJXXlgaHivTSwrFYHCFnIfPFi2WLnbe0VSdl+CtMpxqIrt+e88gs07rd\r\n4OclHcDHY7YTHM/LM2YftceGSlnefEktbGY3mWaIEL3p0fBLWbb+aC0FJzWB\r\nNLTx1c9VnGcXNVLssW9+91q175uUFjqYPTPa1yuMagwgN53fpe/WzQj4f0Pm\r\nyhzLVZ9b0pm5xYFzS9sECxNV7EZexusEquCQkv6iM2NQEovJb3ZoFev9X4Sa\r\nSdnVuI9m0kFVUzW5JTTNanWQlErZCx/Hsh4=\r\n=xpzn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.2_1662166615739_0.6575267639254578"},"_hasShrinkwrap":false},"0.8.1-next.3":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.3","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.3+0c75aaa","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"0c75aaa73635bb037c226183071e10a184dfe549","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.3","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-8LzP4H0mUj0rL0169S6FjnZr/CgGGH2zvIEVqnJtaGNtIuff7/od3zK0llwVH3lI7AsJxgGlzqYwhtOA60MWHg==","shasum":"d1090940d5fe19e42addd9c97eece32f89ef3bf1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.3.tgz","fileCount":54,"unpackedSize":100906,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0Ca1VroOzrjcxJTLWUtvJmzT41nMhJhlHCwgarJdmMwIgc3SiZ/bKWpyO+DXmy2BQxGqb7IRTWXxN0Lr3mH+MORk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEqldACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdFQ/9FKEVFrEmY73CWlZzMKix8PMbwl+Af6rVnUsODTgpmVkH0LU2\r\nL/jk0NrxZMtDd497jisj6eSoqAhT+PQ5OraIBwb9+n6PQimfDV5hMVNTgjB+\r\nR+72WzalLX7d8eAZdACNbACfaU9CEwlBqHdgiauM/5IWbWH3hSCg8NXgh1e5\r\naTR+L6dfyVM9m0zOwWnXxaRvTGEJMFUMyBZvuplG0RCGREVujWweAoqf5og3\r\nfW+JTR9w1PJnJSre1RrJb0sLO++ft7UPn/+7TPXykyj468O7Mw2vI8rEag6U\r\nMfARAVpdXebYpDXkbaK3FA9MsjTMT1rP0BStSZ/xiNgK+saMqwtyM8hQshwT\r\nQg5vpTYVuNpRMFms+MkCjLMIUmKtpM0AIy1fE44blhlmGJSMbRjGPh5AxWa6\r\nKWlkR1fr0Ak9YmFiqohjTQX7Ggguk6YeooR7QMxVJcaQw82cClo4iCcP01Z2\r\nlsabXmpTtcsEXIPbSUwjmLcos49hxlgL2BS2AH1BZvyIsQanMLisrLJoRu1A\r\nIQytikM6V2BcoGYD7vEnk0akrntMvmBkEXPMhlIOpv2/bWfM3cUkdg/wyKCf\r\nzsUvFve8xaZz7QuVMCbPlCoqjE2euj/OMix/yM/7aXrsyjyZQQpdPyUdmgkK\r\nlJXL3RYWeTFimnAc7Ciq9pr5nEeAcLGZhrU=\r\n=uHSP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.3_1662167389663_0.7575153568297508"},"_hasShrinkwrap":false},"0.8.1-unstable.4":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.4","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.4+e8c9e78","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"e8c9e783b4a8b61a176213a8e465cf18db2f63d6","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.4","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-MnjU1dXk11be4E/71vee/eU3jEl596sRNDI4a2Bq1tfOq0mO6rbX7Zof4jDoL2A7P71IxZFx4N48r8fKuCIonw==","shasum":"3a1c563bdb38ef8bddf0a28e111ee814116e9aaa","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.4.tgz","fileCount":54,"unpackedSize":100914,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFqrLdWJ7Jjx8B32InC/qEqASTmaQlJOc2g+NkP3Bj2eAiEAsENZGPZi92GaSbbTAPqxzdXifPgmFzfYvHzc8dGIl6g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIum1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr57g/+KSbYX8fBJP+XhJBSKKXmteePOQ7ZFt07fLrrIUNIVm0wZV1R\r\nBHdiFmC/z74K868FDWkgHB9xY5kFSw+jWTN58qWDd/lnNIVAWxXbohOO1MsH\r\naBTKB+3UrNUyIdH9aMmZgyyKaBtEfSZ/hyXDKz8huTb6enBrTYIY/mgelkmz\r\nYsB1abXZve5P+ZZPlYSRhZ207w8ndCec9NK+uZTKv2k6OjYjtkn4MftKSdEv\r\noOD1n8HPkFG9ztoWPhw7WbfpNwn/2JojGOaLNbVcOi0DyaT9I9z/NY/TQ+f1\r\nsdb0tecjdxlOkJaHmKV46vm7cJYpQv7kSYeoiehvfl8EWY6ZW5y7RqN7Ov1D\r\nIX7eDGpsF3XXuUZ7N0wTkneXvk63eQ+3azSRUrO9a/Sai6lEMXenjkRfV5RU\r\nSwaxv3stAZEc0c2yjzE9MZReZ2mjbYK0VFX4DKYMOZPmGl0qDss+LFEuYQyG\r\n2aHv49JEszwK4BGE0dzQdYJJOYZSU9rOpi4NYRLXk0TAkKE2ykxPzfL3Mjq+\r\n04/paMreISaCwiPl7ifWvzlZsxEsjEN2GIFNp84byTzskk/A0lO2LBjnObOx\r\nko8AeTSu7W+Jem/HVpISi+v2HrlPw5NJfp/Z14S7L5jcDIMUH4UGvIV9iaEP\r\n/nUq3emM6l+C9LPXWpqHZMvrYnFLJtB/pps=\r\n=8DRP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.4_1663232437560_0.1631052576044052"},"_hasShrinkwrap":false},"0.8.1-unstable.5":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.5","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.5+ed329f6","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"ed329f67a9fa92473dbbb1e42b23e7a7452f8686","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.5","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-ssmiqqvrPM0pYwx09YC1fIwcb5/zPHfQa+3jfbG553KgG8hKDD6ejvCvA66t2OM4Iy4Kbf6Vn2tK7a4NFegzyw==","shasum":"b9804f662601397c638b6693f6045792e4e448ef","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.5.tgz","fileCount":54,"unpackedSize":100914,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhCXSIvLdNt/1oJrh6XYTQrTdK5jRexGi0fE9K5Tp5tAiEAyCMdbdcKL390MhiWnUZuRET5PYydjopQiy1oP5ZHQYg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIu2sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoo5xAAjusEOWmU7Jjng4qsPjXvoeGXBcrZcpaPmm+PkgxXDv1GBfxK\r\nDKh5pOFMtW+mjUmGAWRHYhpviRqzJ1HYnEEDE6QQJlphCIhnGhPP0mtq929a\r\n+XIrH/heuzcdkbZEKmZW0txeaUJTPmNor5H2chXoCuyNAwFL3KuPC8/io49i\r\n9l9sRBAFSYx8iDnlO1+6ZtR8IrANA8mtvanFbP6Zz3mH2rTWG/UR2g2OCnVu\r\nEgpG1lfiTQHNMm1E7in7D9NOPWB2jAGw8iqqH6cQkPCoqih8aoJqSp/Vi0nc\r\nAToKYECj5vGnUxpjUG49OkmXVGwWQDy6zxo8sAsTNX0j4z/ijo3HPv3kaJiT\r\nWkQYyIKcP6iGwccn99J7qb5T4esCLfJ0Cq++0gaC+K0GzERyvNkDyJFRo1wc\r\nPecMBPLH2lYgR4o+6CFbWlyIgkuidEQNtuNHWfn1uf5xeQgtSGl5oiDpI0mO\r\nz9m3oH4yohg1RmPLcVMokJ/Rj4s0pBv6ZOlhEtonwJlU7Rdtv18+2HkN4z9E\r\nVoZq6D4lol6J2wOz1pLCcBpaW9uY9QCDvgaGFxEIlMKZdVXVnzju1YLp+lZB\r\nuGlDk28QvrNosK+tOkk+MZ+Ch5cSrfY7jrycEOfWw0QIu8cfpOuw5LyncD4u\r\nzcnoAMKObzxfAopobU2mBPBv68cNmcUvQXE=\r\n=0Ziz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.5_1663233451974_0.6348085650568485"},"_hasShrinkwrap":false},"0.8.1-next.6":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.6","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.6+27069f8","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"27069f85062685aa678ccb7846cefb84b253990f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.6","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-fVQ7VAWf9lxqm8eRQJCLIjGk9nch6H6Fb3QYH1dLP/bBAQSbtIoEMWbFdeZ0zb5Ry38jOxiJj/L8OArI7Rzp0w==","shasum":"6c01e831a2c5992f4ec1d09a21e8a5190f7c1e72","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.6.tgz","fileCount":54,"unpackedSize":100906,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDdazvlNXMORFRDqRAX3eM3LYIiHWTS08BIWbfxiFKTeAiBvRm/f0a1MkZP3/VF8v489zd3rwZoa633Xrb05EucZPw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIvEPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmokjhAAhrG1W2M7oDGcOVhPVLjLVlHLFkgQGEmFlMwwKmbrAKSsk4X9\r\npFB22tBWh+2lj9wlxwuzHfXqmvPhUYVn9flwAkIszakpHmGDtLwAJ/XoOTxi\r\nd5De7yluxBUgoEgQYltQ9stEhn9cy2LpKsXQxrLfH5AKdxmpT6jIzvR8fq++\r\ncHWMtZShJJLSjVJwMMJ+VtULX9LWRRn3az2LCPBRF7S7zrJcN+KQ6+i0tJWN\r\n/WFwFqf5Hx+Brq2Dc18HcL4qmp7EHuz0JzEUDFEvJqtr4pnPosmEfVLZjJoE\r\nyHfnvEZCtwS8REyEH8bHm9OCawvn8sXU2BlGlCbdmJAbqI8Lxjx2GOo37Bta\r\nDixDinzXphsnczjG/9gIuVVSmPhs/AeIcSxVT/aPbbUIqDSt1FM66gffvGYs\r\ng8LLIS17shGZmYy020K+N32OVfOkbBdvTyTZeWDURlcAsFdJNAkhULyaeFCv\r\nKsu9f1yNegoOeUJKMaX8ARo784DXhSTkABRb/cpzs6E7QpQFu136Us0EOWuY\r\nOG0nHkNhHo0WTF2TNCw4d4PjVF4KghXMZ1GzastTnRCHVzj+srjZxuZoVAwk\r\nO/yDBViJ3NwRPc1cqptXzwTtSNu5WoVkbccXfeB0U74UsIufBEJlE0/WPcn9\r\nb+qE+kT8U3KE6RPnX+HZWYbsYjV1L4e9fe8=\r\n=wyTx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.6_1663234319313_0.4319847700398698"},"_hasShrinkwrap":false},"0.8.1-unstable.9":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.9","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.9+af7f532","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"af7f5324bc1718f724e3258c3f218eb85e4199cd","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.9","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-k1jMBllQTi63uU5sXuw1AIlah8WEC3dKCU7H3pPv42hEJ3vRJEwQ3pQM0d3ChcFnCubkHM6OK4gZnrNta0WaFg==","shasum":"d442b75a7dbf9a98296b2bf05eb7a36187ab6d91","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.9.tgz","fileCount":54,"unpackedSize":100914,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsNEKqTUYeioEwkG/bJ3EJg93t4G6Gp12XZg7mPn9GwAIhAJeUdQZQ+HbqTpjgSmD8zuB7Abxd+OYAlevFaBaND6a4"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJl7QACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqbBAAgWGrec77yfOySz1fynkByOLGfgNFC9PpnQWRJuR6ts+2Rf76\r\nkUpp/VOypmrJVvJEgM45eLEhywvn0voQPEaPNSN/PDQxQOVVHHwMaGxFwliH\r\nn3JHObJBoYQAWDE5P4y0xSdTvCiVcQTFpcVFrqcVIY7aQXeryNJvyrzZErlw\r\nnODQ08SYAEAYugBYfNwPSOXaQjpjK+ubX3GgJD71s/vEJqcxOhHLOPyDbY0P\r\ndCdnkVEl+4/1KSZypIyK1IiGZ6Y0/OQ6OH9o6+OxuHWtgwWFdWdjFbFR2azW\r\nDs+28nqhF1gMQNk+bxPyfOxfYtibdfZqkpNU1x7dqcCZBu/KfOIiNQnByhcz\r\nYAYwGaqyX+vJb99SK5kcy/wUT159Q3kT6V5brX224C/CjpizGfEDzjYhbj7L\r\nHZC6dBqjP8EchWV8//PkAdB2CeCFujxQ4QvJSmz9IDW42uwEuLWQhA9tmCfS\r\nJLIQTBQM82ItIUxlfwdXTzq0K6TXcGv2iZdlSiUFja0e5mpI2BriVJcG261f\r\nUB1EWwEgL4tSzV8x4j9TJ7R2EXlbJ3CvwQqXcN7HF37YvdTCHvKR0rZ7YQ7x\r\nABdsNswbRu/K2X8i7AD/UnVtbkj4D4RwbcG6ejvF3m88fy6yBO/yNbcLhDVG\r\nRC5HYfth9IebWYh+UopLyYLC3g/kBdeBoZA=\r\n=uspv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.9_1663459024294_0.472074823636073"},"_hasShrinkwrap":false},"0.8.1-unstable.11":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.11","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.11+e5fd396","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"e5fd396f0430a594fd72f590136d281355f61408","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.11","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-6w2TanVND0yTrd4VThiiaH+2Ir5/BAKyS78s2VoPjoQ0usc+2IeO7jOKTYCNWpzgBSsc+4dj5ecGXb9x0BXflg==","shasum":"e1d7397120bedd2eed4cdeacaedf898015cdcbde","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.11.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx2Tmqh5w38pzVTDjsouhBRyXA8lLnuR7elMa84kTHBAIhAKZaFrP0MkU9jtsGViNtWeJeDnD2HgzCYWB7R8B9YNg1"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKHZjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqJg//WJz2IqwEXEOsKkNi+upaFpXth+gu/rmXkgQ1VUNqgzIwgS6Y\r\ndpIFhg4uePciyQ8rcDaWDlj3OkUqgbuIGxY3traoiE+nth1CVXNNtVyf96ga\r\nGtDO6K3g5VTBGb4BLYf6e9dFqiXGz1IdMI2aC2+WtuOpvdjxhXi2VeplcT6/\r\noNAxaapHpV1IB+rhd31Hknn3rMqHDspUbkg9zeHHNqLlRQQXVhX8/SVkg6P8\r\nEWqCd2IZl/bzyzkc90a0pwUvRmqRLHsA48ZyvTpxoNbUUF8jKMbfnCEOCHXT\r\nqXTb0bKp/fV/LJ8g5yuRK+H2XVe5XAJy8iSLegGUcMk9MDJS1CM/cZOZ3lW8\r\nHkmnAXEB5LrFgFZWtpxu+KEVyOhsVwfVvsN4CiKSp7c0GCPYrMf+1MtxH/st\r\nwmWiPZSZZIl9JudCurWX84D7s2l7YeWYSZj85NO5xkxV01vUizNx2Z5f/Mmf\r\nJFK3Ay5gPg/f9xQMueuPdChHC/rdNCH0pKcWV5Br7YYD2jSopRDhBGUyoYkx\r\ncbiQ0p1iL6+jWuTqqApF4KhQvdqSVSfSBumLgNHAaQ3gjZ0tLg5t9WaK/ffA\r\n1UyHolWwr6ZdxAyIXVQeLtuUNzwIIArwBPDUnPQMZuD8XS0sDzTXMl2rDtMo\r\n+daLsmp5sIg9R9CTqoXrqPKKfTZQIz6vG6w=\r\n=thbu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.11_1663596131021_0.761627953922897"},"_hasShrinkwrap":false},"0.8.1-next.12":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.12","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.12+84fb570","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"84fb570f29ecd7a4fbd6477fd22284f47e814ab8","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.12","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-o6Gn1kAL5KyuCS5JPEc3v7t8R43GnTmSXvfXr31XbSpFdSpWzLiHNlI///bo7F2/DBNlAvD6+RtSocASxYlDaA==","shasum":"fb84f66a660836009f49ff6151777c2d7c0fb7c2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.12.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCGtGqxnaW6gkmCQz/TquT2cG/7Kv1GI405bJcoLubJAIgcrrWc3qulvmE0h/KJLi0PtjUTGtqnvaBluhYreukLwc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKIakACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnhQ/+P5dDubpMbYbScAsSB3pM6ANN14uQiQbsbhjCxfMvxU90bowU\r\nrysHfGl4Ll22BltU20063jwDSW90nRamZSaTGf/3mlqrvvi6QFUf371e4rQU\r\nevWdwhSK/LbKKcs56nGojIxb9LJ7+xFgkKIBRgmVytV9bDtga+vsuQKfonsu\r\ndyG3M2Y4x4gTNkGzfZ5oKheqZWwSnBcvqfvV2YM9g5D4HYscR+lZjjjEARkQ\r\n6sfOqpE2ZEfKwVCpKSZn5n69bgRhSOPrLTh1vkGAtkr2+Ejlyp4zvgMRIP3/\r\nlduMzT7PYb5+ywPSd7B1wZA2UeQlLY/zWYXyAxeGDxPlaRDc+qK5qrJkOqV1\r\nHgdUWZc91rXkW73zuYJ1s1MTPQXt7IO518Fbd+aUzH3qV/S/WlRzEjBwFdep\r\nbt1SKYviQMxKQENy9rG7AsLgeWcaGWzJM9ptWqR/9PVwNkvL/hnOnp8xI7iV\r\nJf3z6bt5u6+fqkLWxiXZi8pf+cX/bwLBP7I+7LNWwcUkev6ouiQ3VwCfqlC1\r\naYFZ4VRA24HBgbKuikNoABQz9T4TRjEuIFwLnKGd0WkS4c+yMk9jfojCMs25\r\nRSsnfUOrwfygYEH9GuZGUFYYHU5FMaC1IUuWdjgnoNPGlvdw0mW7QMwwJ6Sq\r\nJHrIYr+rcMwk8IO6X6ngxgBb4LrZHXYbIQs=\r\n=cyKe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.12_1663600292372_0.5365314075114682"},"_hasShrinkwrap":false},"0.8.1-next.18":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.18","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.18+71e09b8","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"71e09b8e8cfa8237d8e3d0a6b0be0ed4f3beff48","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.18","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-G0IoaxRpOqam5vRQ7h4I8E09JcuzC/BqyobObFaslu3usvdoS+7+0rkf2WhLQODS24jRWYKQVelbdh9vaCKZeQ==","shasum":"75825890e056907e6c3893c7e350ad9135d1ca81","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.18.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKkfVelWDyF+o0Bhebr9UDYgKw6Y2djVaQXiBD4bpvVgIgR6ywzHszAHswokMJKVOoun2U91coEUHa1QlYLunSzS4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLHtdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpy3g//Wge7aSVvSUkDyHH/rI0Eh7gylAA/eEDTvY9rAYoxBvyasGJg\r\nGLcWLnn95gyLFELesIvCh4ccaGNMkE7BcRlOn2+NtG8INRYlSAPTlBViacla\r\nZ03MbWRmRIvCtDt3shIvC9pDFptF5zI8vcKO9EzR7EQD1LuidOOckkXzd7wy\r\nzPpkPBf44+5DNaKfOBUYqq8vAlHmDvHBGRMbYi3P01tu7kV6Fvr67zzu3WQo\r\nfUSkzmMrj/w7uBANX99a3S5RY4CG4f2J5fWSwiIPGPtMsG4txiCzcTJuDjxN\r\nCsdmsKXiMXU411nb9ofqR0+Bpsv0xv8eYj7MxqavXZ9QAKM7nvbGvnwEMxM6\r\nWCnBXpUIbFHq0/UMcOmT2CsWM6VrMV+Or/mnGAmgGMqF4dfX9yRjsXItDAou\r\ne1qmr/6VL/YvjRijzPspipD2q3sgWj7chiNogHWUReVMxw+ogXdqXhTDBI6o\r\nYkd8UuUHGllWqJkv+UK3NvUN68eM+e7niX+DdAVr2iU7VhIRFhxk9aTSVufP\r\nPcLscyo70IHDdWFQ3nQouxdfhZealF+ZYyi9i/Jx3FdfNPBM5LkgktAsJK0d\r\nEy33Wr0v593eftus+bLcTHGJkxRtzOSFYA4+iXrRJX2iiIBU9KaQ0SKpI6Aw\r\ni3cQzgZaEj/ShNCa1juu5rHv/MzA1q9AP80=\r\n=VFL0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.18_1663859549201_0.6584501082996845"},"_hasShrinkwrap":false},"0.8.1-unstable.24":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.24","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.24+5e407ac","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"5e407accd822ccb099677876df192e850b17ccd1","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.24","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-3i5Ef0nPK46UnyGO//GMUtYCc1jv3TFC4Y1NgACeo9IbUIbiiQtiNw1R1KlOpUtJy6zIuTdprdwZLn3J6zW33A==","shasum":"01217d1e631844d5f054594eb1b8232c71282bc8","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.24.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE/prWyLrV7b6ntKeU7QfzZh1pZX1n6Ek2lTgxqahUlDAiEAiamPoxsRFk8AWW6yTvJvTTUQVPinUX5BekYijmaSw7M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNgjqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZ5Q//V3EHb7G0eJYWWxALMtVJNtBoGO5rfxNc3f3wwrQ8yHEp9prD\r\nPnKVSSVGyuQ2HW6+f6iP6DKscs1PrTWDuAna4h5QyNMZGdque/4moI8DZfsU\r\n/k6wa2Z4xcZZF17xXxtlv9Fx64ANDfgn1sLTFj9Prpo+0gru8CHCikd55aVJ\r\npnlZVk1mqJiDR10zm+zeiyN0AYKCGZWC9PUqKVThlkw8a2Qhb1XnpXcD6LWG\r\nwUxHuvwey3fgPx3Eja95fbkkmeoGD5gI71YRNRXKvDH4n5wFOjGw4vF1WZIg\r\n3K2ySQFVmEd5HeXuE2504sPq1hcNapHemoRsoZOek73WomuXmY25GSXP4LER\r\nl9vS+87h0tRFXgwbagKhGL5hK9jNHwMkeJBhF7HEMvf/iS4F6pid90m3S97e\r\ntEHO8tmWqHIKAMyUOctOl6tG4tE9TO33R1buoRCHFaBaV3ClqJAkoPTePiPu\r\nXYzgQgd0M1qiGNnAs4LGwEaK/xIwp/Z+mkzk4XwnyxYk6UkAnSKalRNIcCRR\r\nuRtLnAyFg6Zeiitg920E5dUzIOgB0THTheMI3Y9wa37onjIeSNAi/sWlsiq+\r\n+7B2zw5/mAlvmSz5VP+qESiuiRfesOT2NB1DSHQjcVD4r7Vtrz+cVvKO201z\r\naNAhtgAgcfLIt2AgY+fzTE6JJYwId6iX5LM=\r\n=+HeZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.24_1664485610413_0.06200482376879268"},"_hasShrinkwrap":false},"0.8.1-unstable.25":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.25","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.25+8c8420a","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"8c8420a269feeb27374aa810986b4400d2a6c6d6","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.25","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-sqvSu2ibuRSSwcYAbfchsp4gGpuUcB6Tmr+TMtnpOVD74QLte9BrDpn+7qSObyWNzyJoqs5FKTIZJezy5uEsjg==","shasum":"550e21a7723627a640304c7be2da33282dabdb2f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.25.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICAfRWvghFv3R474h1pN06lve0Hqe2LdQaVZaMF9377NAiEA6Ymd/uNQWJn80OvObYCuol3yUPQ5BGl46s+l5rM26i4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPJUMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIjw/+IuNfqEqwXrrKZ2UmSkDQrc0ebYzTqcEeFTSN1ES6nMqdOQr3\r\nDsdN/pi79iuwUW0sdEJP4Ctt/+om2zmP/fMFQEkGhXKTtC3YOlNoa5+9hD5X\r\nWy5V9j/rmYOwO0C6OKpW6a3mLQlqWkthGB03wDmi/NLUEMuakbK5IHzzZiaM\r\nuvuDeQyNyX0uRx2vJ8U1qUQnPIEC1FySLTDgLhRdmFT9lC8cU5/zgsoeitxF\r\nPWncxpY7jWeXxBFDHrFZfCEG6TQO+OX2Wn2Zmhshql+fKOiVX8ozxJireTuD\r\njskRi6lkd8z1DHx9T9/F9fwgNh+ahGKPTaFbwawE5k/e/8YJoOSo1qwiyXUk\r\n5C/q8fm8ZOqS8qBC0DB+Mb2lbSkC4M+re8hXEZqu7p6G/EyhF3JRpEXTDcC8\r\nKhzHFGmahHKH127S8Kfv9Qp6+bUSpajOo7IuNjcNY90evwSt9Lq6nN6kaVZI\r\nRTvsydUBsrK7QaGdcSzcaAB9UZOIoEF5fmwL3adFI8oSXYo3zU42DoRZnO7t\r\nZ/tGvbteslIfuAjf8hx0XbgUYiVvMMv/3ismjiDqahgDrWJT5bRDvKLljViS\r\nzJoKoae61m7R+ruHSItAFxevboy8z9aUKI4kVgaNLLCGedX1Stvv7EX6eGia\r\nvqXn9/Na3aDBngs1Ap3Y75yEHFUVAYyNhQs=\r\n=8/Ie\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.25_1664914700683_0.5912275983679633"},"_hasShrinkwrap":false},"0.8.1-next.26":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.26","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.26+4dc8dea","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"4dc8dea175ff9eb8526ce6f1abb4b72ffbb58128","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.26","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-kAddeN7lLnejLGWkHlt42sxti5Znd6xqcDJFiZHe7OJkoF8hG9DNEKksN/3gHS20YIBxgvzAc6ecBCYI1lHKGQ==","shasum":"0d8ef1b423d97e73606161195e075b5549019c43","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.26.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCUs96PJ/E0w7B50VRpb4rDwKGrbhdV9ODw98AbY48HqAIhAP1H5Hl2KL6dtAwnn0D+IDnPB6RGvdm6PFsunz8rSzh6"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPJyAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpy7A//QDbWQIekEzRJu0TI/kEE1ElkcbSj5moYC3Ai7B++cDRLAODl\r\nH9b7Imc8pSYRfDwxqBzk2zUMSqEQK7Q2Wys85qd0hQHJBEtIq3phz9rcntVz\r\niJa1kAx47HNt3voUEdEzlLqJhewT0Fv4XBLGxmKZ5Kv4ji0uYSHuX6za68ZM\r\n4Ni4Wwd48NW3ahau7KZEVefWTiPvIAH2oB/g/d6ebyfOv/Hq1zHMXKuHR3dJ\r\nKFhfCqb5BYVqVmQjD2U9PjsJxetacPJei7cWw8AoJi9Vgl4WMm3JvEr2OY2n\r\nCmN5sXyNzk78/JSSvmpKWQHGbZ1AI2fC02HRjw2jX+EWzMzJLnk34c7vJqC2\r\nEYf4j1W+s+Jc1MUssS+bWdLNYymC/S0wDiQOBnZodb6VDxfcS8gxCMYBR98o\r\nwVhNUwn5pnlfhSWwDAuyws2zNoOP8hxrYW/HDciLCPXxOPPeIAD1ROfdmOo6\r\nukhbInTVT6T5wg0xAoGhgSlrAiXbhy9tIvYTY+/rdQZiBjiebfbz8M+u+N5T\r\nehYfifvB+gVwGwIFdEiujZF3I8j7AEmqs6hrnT7rbXjg/pNlY2x/8fzB/Bq+\r\nviFwYOMiWXsjMUwzNlkwtpoCLuI7QvySMzgT5l1qh3yNPrpshw1WggZvBv27\r\n0RmhoUeOeLrI0pxq50gtDy5va7iAuFa87ns=\r\n=647R\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.26_1664916608204_0.6294625666612481"},"_hasShrinkwrap":false},"0.8.1-unstable.27":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.27","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.27+b3caacb","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"b3caacb4d7850e5ac9ff2cc6b17b203871d2af12","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.27","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-KQVcyegXDOzsc70qefJNwbe8zZ8Om+caEAxC8LTyTI6aQoCvIShf2+9XdIgPT2JVKLKVGQkCvScY4mMkEW3/6Q==","shasum":"80a8998421ed054745b456852642567133dbdd08","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.27.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEZokfmBHb/RWRjhP8sBGrpc8T5cfuCGx8Of3qV7dzD5AiAdNCUqOsTM+HpUHJ5/tXTEExmMeHGesmcMJ9RErwQTGg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRpwUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrIQ/9F8E0zp0HtBuAsskwMEX2E08+cowQG1DriDhY26s3Owq0vevg\r\nns21G2aKQUpEP6LLgjubBeqZ3MCIDMSwKYBbtFyp5utVJmU3tU1P4tuTYdwE\r\n0Hd5G/UuMCp24rdFAmWQ+1zkZQFrpBE8ONwUBurZOBCSv0trKrs3O44D31vY\r\nPO10ztqL13ODqk85XNUndwaATS9Gj8FgBkxZ9KEIZ2UNH0DVMmAqsvBkb940\r\nTINBjw3YfJ3hHlGxj2B2Uty3/KvkUyJy6gc4/+X4NVemZA4p7hNQwkNhDYHt\r\ngaxwsDmAQ2sy6t+A/msfqukKNEu3UsiyDPQ17CSngiG5V8qnV7u4iXZiXUYt\r\nTPMvaUEhSsC6RMA5BTFvU0/xQCeY8VBovSnTiICIOXfE340WKCwnnd/16IM/\r\nAFMg5U+5RE1OQr2rB5c4nJroKYjUTjF8RAs2kCATVov1s4EFfuwRltTZOtS9\r\nhMP8CCUfxjqHJh8BnoHq6kKjB55ZrhrX6c0+JWTEYvTMfYMvnFgsvIRuBxZI\r\nUlRYWQ173MEtbPKziEHBmnjY+S7FAIi66K0PkPl8Gt8cMngXM3Ip71tKQTfd\r\n+A58sjQHx7Kyv1s7sdGQbK+roZ2dTVP1isg9+INi5HONt24jafp4yxd3fLIb\r\nnxh8m25hkM/4oLBxq7GQfmTXqm9PQjutgXo=\r\n=ySeA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.27_1665571860413_0.8395828301365125"},"_hasShrinkwrap":false},"0.8.1-unstable.29":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.29","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.29+f5e1817","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"f5e1817d3a1e1abcf902b9a9760c76e5ccb990bc","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.29","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-2fZCk/S4V1De61gAZaeF2lZ/AaPSEwhpmmKq55EJu9faNdD4viQjVhmQ/fUVo5ezhudY5BYi5GXBlOvTo35MSA==","shasum":"dd941e9301601c934f6c30ecc435663c4cff4213","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.29.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvOuXnsXrbkM9L+NomuGiXOYr2ycv4Z0lpmd4DysVWCAiEAmwOyfKhsVtH4fTBzmZg0dXrKmLrU5Gm9PtnoPs/yC88="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR7o+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopKg/+OOdkviZ7IE94eixlSQ7yn82p6rWbaddO+wSPkOAg1uLdDKCi\r\nVLITdDtBifgpK4HcQIpTzew1ghvrGkNt7ihGhFf0qOTlQElbZjxFHurNmj2n\r\n1WhuZ9xKF0hUS8fewuEXzJaOJvUrMQrLlj03QTh7cfXc+jq24f+78xQ7ncI5\r\nE7IbgB2TadEJrSG8ntk9/Ky2KQZpOuZhrKG7seo+Anbp4nezX4Xtr3uhrqne\r\nKdaJXsr+ZahvEVoZAq/rmp30xqckX1gB2QIUTUigN3zXGAlbMjXPzNSaKEUi\r\nIKHx6J8a1OnMUN/suCNSOstWu4zHMcZhMIcCyu6jiYM+CzHDfVMV2oOH1lEy\r\nvD51LSpU1W0eU7Xm/5yEeLuhc4VqX3+iqpO6c4Q5nLyVElgfLzY/LNwC0A/S\r\nNjaVe+Ns1GfNm99U+9/Wu3OgNgjF8zbYu//UMkCBfZ/ZKvyLMituuMrV1Goj\r\n4j4xHNy3BIz0e2je2Ad67P6u2VJbeSGIX8Fy6trtFKjA9tY404ipAV50arjG\r\nxBzLV6tUVIKYW1In9aXRdHl8dwwOBvdv59r3P6CRW6bn3NSjDVys1ERH6lck\r\n4EzBXaVizIylTFJpV9w/XHPm0NnV3KGr48yh5i11GxJA53OGEG5IjxZDSdBN\r\neQYS0hxD9MrBpOfNa0KtZ8w0eOwe3zpx6Ec=\r\n=ECYx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.29_1665645117897_0.871358488406059"},"_hasShrinkwrap":false},"0.8.1-unstable.28":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.28","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.28+3f6cc47","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"3f6cc47892b065522be088d72bcf4d0c5042d17d","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.28","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-+chLyyG5HuKeq3SXiq/fipwghz76IRJHwmV0jGxIh5Yaq3xIu8yWwj/6dkUzRMY8FuRDTiKajNbxwQmIrJ5ULA==","shasum":"c3456093d4b9cdc6620e7b2799db397f5b57c60c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.28.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGsCdRrShwZwoloKU2LWJ5OqVliXwjOVph+yXmTF4IGwIgV/P8rIXI5TEmP3n9HuZ7NSXa9V07Ov0TxNKZpD0lBZw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR7qNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRlA/+NHkMBZJsf9M2NI12HgY4IsgHciTTgk/HAXEwj+CCwi82Dvx1\r\n6sbbhNdv6R6T7KJGz9smBgVB2O1TwL0KLSAcK3ADVYZi/VpNGZHfaJOmuh3H\r\nUehHX6ni15LTG4oZCI8Bb5tGnjMMi9/9ILFLu0Q6nfFt42cE5Al5oFC3kbV1\r\ntuiQMFQed0P3ovVbeRgrvPXT+21mNLEg4qIsu2r5Mbudua5p776cYhNKsekH\r\n5atfUsFkB4xDJAGBAh6bWmpak6VPxkta7xrNBbuW6+DfFq1bI4jgpFkr14nx\r\nDN3zjtMPSRzPk+JvfdOebUptr+CatMXvU/UmSFF7qRaWDTlPC4t88Kw9fiIO\r\nD4j97D+EZpSmq3b1d7BPbOxE4aVSFJ7KVbAZ1yKPMoTcmNf5m9AKCeqsMyDr\r\nmwAJtV5BswTalOBS2qVj+4jXhKOlU7bN9HyHSyQg0FTr5ymzqgo6cTtkMO3j\r\nJXxTqmY/akhiT1/Medd+SC53eVq0ZuaSz58FHc/FsivspQEWCIJB+v1vPmOX\r\nz1SSOw3dv1QPO3+TY/8eLsafoUedeNeQg7psrhNz2tzabdbjFIpaNn9KQSV0\r\nxFhu9AIqycbE8XeMYBLFII6bpe/bD/h17l6pG129rl36PIX43tActQo+Fzn2\r\nTB6h4q9fKrr1cvgHcDCUu6b2cMwDtVQCspw=\r\n=sa2F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.28_1665645197031_0.6705434834985524"},"_hasShrinkwrap":false},"0.8.1-unstable.30":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.30","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.30+54625bc","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"54625bc582f8c51b1823f097fadb6a4f6947e974","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.30","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-5yaX1T+dtfPtV+DeHOdxoIaHNOh6dV2iaEtjJTQHPsme2+f2/qG5b64KFxhMHyJQPkojUvvIdS19UHRNorrSlg==","shasum":"a7a20ccc785041be9884c9cb836ef63ca361cea7","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.30.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCg5tp1va8g+oSQIzin9O7DmEBoPmLfisCs116BHfaaagIgOi712japsG4wly29Ys1CMmeA2+OHqAb/EJM+XN+fWaE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR7uZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLCg/+Mov722J/IhJk1O4fLB/vf6wsHOI4TPnfUeOJRjmDuONpFRON\r\nOjZ4Mpq2ZjWfngPBkWowHOZqkYn0DM3LZVqZdrnSxu29fmfgnOLNj5frti+L\r\nBYFjRyhJQctHHV2I3xgXDO6+/m52lKHsiTQXQwVk8YqB++i9SqijYIjuNDTv\r\n+HM2SgM1S89vv1mf3Ltwk81OLqYXHM7hIiQHBlRvvdZizGZuqi/I1iced3iu\r\n+yWh/Kiuav0dLKOdGXMkLpsUFn4ZKgXZaIfhDkye2AdSc2ISWBKRRg45kmrJ\r\nzyvicH/KIJ6oY+zDeH49UUsxgV6MH0TAIp372IN5GHyyrzHJWnJQaY7HnOIU\r\npDt/mHie+bd+KoYIv3h6NxuD8rUL0mLKZCRuRzkGIjbJ9PRs4Knfc16ubmJI\r\n3qnl9S+nqRKkw7kS73UIQBTZKydtxD+xuQehbo+0QXvYaFVD0moS8vCqMoVN\r\nE19KlvPoJ7nHtcqW5PFFgCrk49bF5WItQ1fc7GlPbl8yL/y6vZzBKcR8UYlG\r\nywpHGDchmjmpwGzriv+gKf7NOB723ics49BSRpkOsJsUWboTjSnmDsrEqT/V\r\ngRG8wIQ2kwumbqVLWGnjr55cb4txUc4RUoui0rzw/FhuVZIDFDnTT6A4HTHp\r\nck5Z+uYh+LhhgAWtu0h6nIS/STUDThlouzQ=\r\n=A/ns\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.30_1665645465092_0.9089178204283084"},"_hasShrinkwrap":false},"0.8.1-next.31":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.31","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.31+fe90ad0","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"fe90ad0ac1fc1f401075310cae842a1e2136a361","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.31","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-5hlXEuFCcFk8PH3HxWs5S9KjAwMHXhDEpQwVJOAz9YxbbmKTRnIjXhsyemPp/e1uBV64EPk6d0Kyt1I8/08mjw==","shasum":"78981d5ae9d7665319a4a79003ddcaccc0e17a1d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.31.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCj0ON4Q0QK7TYaBWKSsXOVUzzJh5R8LqMjuwJ+qTpgJwIgaff71c+3HNianZ8dmvHX3X6f2t/BuPhhWhKzmBjA60I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR8OEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkpxAAmdR8HuQpOhRBe/PMIKlP5+L2uH6SMctcit77YXlWL0hI9A9F\r\nh26ig+MA/ybnturaT8LJUwsAaPRdhJWNOZ8L+Ou9lVR7yPsywOX9hr6DlJZz\r\nZhL3irbxhfdX22bIGChPHrW5j5sfEq/FUJlM0SrNVIEJcu+7Py3hbVQHOqXK\r\njYIERdvmkM2QF7sUgK71QHehYUnRFv2+VAhuK9rZtuSX/evUo94wP7gT+uxC\r\n6CGoAbSxGUG7LQ+pLr4M+Pu1erNCCWQHtDttJG3ybkm4CTcc8mCGari9nimP\r\ndLH9+NnUK0krzj+hQQ6rWj87f/uLtYYjPI842cjDpa5UN3e3RO1KshXa+mc4\r\nJBnNE05slwzHcgpQ5STfR9stNfCG3GgW2VVNLTegmnNCPs8DEs/OmQoC/Vab\r\nDKbSJI5FZLi8257Zmuz/fRaM1yaQIHRWyfugZYIRc9o/zKE/KqAox158Nlf9\r\nSuXywwoUKdDBXGNdIk3IyvfSQFdYpC4KP9QVPLcpTafqnMJJjYAnz00czzfb\r\nU7O2ihLYksaSXnYa9pkeq+2JgIoE22Zip2Ek3S4+M407PdXwz8/RwpbYwqq2\r\nhLjBXQxc8OBQAc2dZhE5pxIjcG4kfThfyuYzkMbXGI29m/voXHUgieweipHz\r\nFu6Nsq3jCCszw/XNkAMoHo3Xn+tPxIwhUog=\r\n=L5A3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.31_1665647491922_0.6736966560206765"},"_hasShrinkwrap":false},"0.8.1-next.42":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.42","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.42+5ee80bf","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"5ee80bf59c72b012736e5a1f5bd1cf57e7264150","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.42","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-No6DEQxHU++534KSaCFZI5OFQV7pKSqP3AF8qpyc5SeVD2feBMAfrJVTNcOLHbDurCRh63uTBdtIbZTqJr5Ziw==","shasum":"e938c2e63fdc60c7d20daa28709a239a18ad4155","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.42.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHxBX+xvWvegBfA8GhdmDcSWd7UV4iJc8X5XxsXqdAfJAiEA2BaduDDsBHIzKybdCsJTA9R/hdiF+4qkYixJq5VJZQE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTonvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmojxw/8CMGqm+nAHXHkLYAJ1lEbYs4wA22xIvaaKOGm7+fy6TWpu4aE\r\noJCHpr58HyXC7Lo+s7zdob1pdPRUi7Li3Cis3OMq5N+q2c1/ces04+Ze9uTM\r\nQKgRYyjTgd/Q1/pGH2AnI6SpBuYJmpyPjInWBem4gfq3gm3aEz/my6nrRKNO\r\nLRchQG4bSHQh/j0jMZz54veV6rmSGjWW16YQ+kAvwn8K6zTtO0s4umyb93wn\r\n3+Gy3EQ+emmuj+w0EESBZ/+2FQuJdEH3V6mu3vhYM+yRrP0hDbtoX292Xy49\r\na2RA9/05mPAEg7b51K72g166IUt/GilG9dfLzyE9JBGK8X8x13lfmYeAPZs6\r\nHyML2XbcQggE0mX6Briz/u9w0SWnEwVYOt9izr9DsqREJ9vaT+uC/fGSCOWB\r\nvjcSNdplL5ZA8weSkISZ5caNk8HUAGCh8gh4DLMfT8r3MDHLM2D7Pza5sEap\r\nwUOFwp5YIly2l/zrsajOraWLevpLpLqs5LiohY6ZWxYI7WvC0Fb/Q+4U+9HT\r\nT4MTI01751koKEOGQqrZjJHcgw7nvii2vsHOQu4P9HtK2FkcTxNJ/kpGqrGk\r\nb4hk3WbzKE24iySMhh6UPTHb1SXTksZiVsFKs4mLEm7I93A//G/Iqy2zcAWW\r\nqP9mJQ6D7aVvOIMjYURqd960EZEU5u6Qogc=\r\n=htEm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.42_1666091503440_0.737108488628077"},"_hasShrinkwrap":false},"0.8.1-next.50":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.50","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.50+9c2d649","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9c2d649295ab8802118f6216b882de6f86ea06dd","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.50","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-JhRVH6CbLRyu84qkOjWlO/fmeUV8dSrtGCSD6xukRD8S/hGxTCf2bFOFH65y184zL30DxLqBkImpujO5gokbGA==","shasum":"e4cc1bf72525128f9eecc21441fe9e7051f777bf","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.50.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFpNDx3+sDyWsGX5p4UgKA79GFrcQGbsM8tztoy1ktcBAiAjAkrefTYQJUbR+wAsCFqg1yjNn5Pth0kJrmkJFZG/pw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTopAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGVA//T9c44W4+aacD3bfFaK2jD5/JwUAggnIGUXN+CXEFDkjYQuPP\r\nyVUC1jix6SDRP2smd0mtOJ1mRVBwBPd7l4kMFXHidV2j+QS8e1pyLfFUsbNK\r\n4C9OfCruN7MS5jdBEKLV6E3tyTzwxBLvGEjZ0zC8cI/E7AxY8RHkk5U4LE98\r\nzS4PkZLr5GAcwxBxCPQb837NF31cQjLem+xLPNEackzTIqn946GBSIupPzMI\r\nSbq/NDx9tDHCFkM8jdkCJerDAGJWjgKpMkuXLG30rcR3n6kT+2Xf6piaI6Hu\r\nz8TCRjueCGdrapwm5av5BCEQWHV6gdGXCoJ5mePuiDgnWLO+r57LyJkXtnPq\r\naQc7kGYo0Zw1MCSYcFy/+vDsQKix/IPPjTAqWKtM1vb68P0TnqXTmMK67zlP\r\nCMUo/bOEvpYNSUF4c4Ei9Usv+8/U8lfDd+nt5vTjwYUytnA7fIo9dF9kOVuE\r\nOasvbhWL3LnzcVzTif8Qn1ybf/lm14jA/wsaGhWT1E0+o8bFoLc1VwC5dFit\r\nBc6udJEH2zcnUyoHtjqYOjncVo360x57FQxZuQGTRbJqjSCHIDjw6TtQE76s\r\nVFnRpEhQbqPSkjPbJqusU02VT4xnr0oaETsfbSz82+7VqVfJLLK17h0V1cB+\r\nZXb4tzXFIbwvyhfgA1FaNPx+IXcrx5F/0cU=\r\n=4BJm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.50_1666091584746_0.018865333001809148"},"_hasShrinkwrap":false},"0.8.1-unstable.50":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.50","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.50+9c2d649","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9c2d649295ab8802118f6216b882de6f86ea06dd","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.50","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-TrLKoAqUIWtcyLrGX9uwAT3anZcknOmfxYseYvYPveRNraVTMfjvul67+rBioeItVdmFYlvSL7U+WcqY2HUq+g==","shasum":"81cf3b07c69e90d7a7e34ad75ed6cae1935316aa","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.50.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUpnGAe3tHBC0nZp+QZ/m2FE9LNROeUx+hNvqPVjSuSgIhAMQW9z1+KJ2t/Jdi6RWmLiTbE6C8R99dk0bTUNPL1CtT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWIL0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmraxg//R2zt+J5G2GKtAKB5MV1+xSUnmLXl/waLg660ur/V6lK+o5Jp\r\njv0wjbKr7kjW92fVZpzjYB4xRhO0ljVHG9GOjnYHD857ID9Nyf60//1hXf9c\r\n6gjoxYIoWZMvw66X+LclvX5atA7Y79ykzrdekC7u4f0/zN8lL27u7L/NVhmt\r\nyDIOGzAl+aSU6eTKuivwnotA2nLfcol46NWHq9aFj4+yIS5J/pd+p+pxryCl\r\ntmApu9JJwFoXdEn8OACB2V8gnNpF58SqJ+VnPy0ypRBVHYooYTnZvxyXZ1J2\r\n1uLOJ5iw2FcMYAMxghpVYBZ4CRYFI3e44Cj5AQXZVrTUPz/zQhcklwVRK1Su\r\nfhcJFysqWmSLin02eCJVd5/6qLCZMVZ67TnyET9VvhHbX8KklnKfRu1nXUYm\r\nKDKMr0rMraB98HD/+Ytx/AJIkdMzmplAKkdxYCujMFtLlpp4itjXcapqnjeX\r\ndZr7wPlddMJ2saJYwRqWUvBT7WvWBUwEMblGc7YJI4Z9O15FYb8V/EBX4Eyq\r\nHP1MFOPAv/DZUgY388mYerdCoJBs8swR375QOdjsmJ/otSFi3J1YVFdhYO6G\r\np/x7RfWORuPERLht3YVgapW3LSsQYTalH4j6lmQ6grLLPzPlwQTeptNsHvOh\r\nvHWlPT9v8grUc2GUCaEccGScmiznwGpoj20=\r\n=N7ow\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.50_1666745076151_0.15154314631449295"},"_hasShrinkwrap":false},"0.8.1-unstable.53":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.53","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.53+25b005d","@sphereon/wellknown-dids-client":"^0.1.3-unstable.0","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","did-resolver":"^4.0.0","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"25b005d39c3f06c1fe3db9def63cb6642e774f75","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.53","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-k6PhYBYCngLkDvpR9aybQbBFJ9TH4+JVG0I5nwcXayI6UaadU/7JjyDA7V/cDRoReUZJ7Af3bcxB5RpBk9td4g==","shasum":"60cac67a2643266b1c13432b6b72b32879391802","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.53.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBtpP3v3QFPy6JkoUvuQR0VxNLEThYQg++ogXWdAcK3ZAiEA/5Pja6ZBt03ZJoChuPxPKqttyHrs8drJfje6Nnwz6YE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWb9jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZ1hAAnp3x8LlroU2V0n4SRPYC+ni9LF8t8KDsydUzMBN0hjRT51SN\r\nxxVlw9sorOcmjJ2tGjRwKP/zQE7e0O9/wr8Oc6yf72VyBdV/h1Y1CPlUBJwM\r\nMAgi8aAtMT0hDMxjnbYKSAS4Hw9Wddi7N5+6yx5h/4y2TyABoAPROAI74cfT\r\nV+FrYpov42zTc5Yf/O8f0P1SGihHgkgAaVaZQ6PoeLAcBKWMPIB9x8pN85tm\r\nPGAzxCcTkZE12FX8wcGYBuFejsraosJ5X5ruqdfS9WwfxIXNB3y7IAfKkShT\r\ncaMHIQJOgIyEdi4qRRL8DY9Aipd/u35rNOxUxC7XgeI6UVqAbuHtBjSucGJD\r\nJoz1/OcYBRhYhEVBuAbU6Su5mtfiGYTMF6yh5qQiphsvnP0la5ZzTxukjuUh\r\nO9TTg2upv7r0aPYU8+/FXlaHnqKQEGn6gllbVG01dG8P0Rdob6r/IIJWK0UF\r\n/ucS5rFTwtgmvPhe2Bycr5lQsYnrANRr/udWZBeHlZxMn8W+9F7sqjTuJ1Gw\r\nt8NAf+APLCgqVaZH3PxA9xiC2ZMVs2iGAAtiW8U712oC5pWc9RpzxarP4vEZ\r\nr/mQ3f2ORswdAhUVgcZIIsP4whZUn4Ak3W5iAnYdAIGctQ2m4/gQHtHLIgZV\r\nZ/IK5LIAm+nNcrTVaN68Tk1xYI1iOv7A+CQ=\r\n=c9PB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.53_1666826082844_0.420553841127304"},"_hasShrinkwrap":false},"0.8.1-unstable.54":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.54","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.54+652c6d8","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"652c6d88fc4778f6ae276d938d1d7866a9816271","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.54","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-dfqdXH6Svj37IqprYE1aBVAmOStZ7hVV9+4BWU31wToOq8Dyg6q4OVfRmXwDF2GntUjm9h47Lqdj781JVr76BA==","shasum":"0aa3b1d965efa5ea8129a1010b41a291850bef80","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.54.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICKk89HZp6IsddDksoOcFhbRKCB5WkGINtwJTFpnNhWaAiEA/xQBSNETLaxlvS2rnrlGzA6PayKYcrpu/Z54JDv3tHE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWcBiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwWA//Tv1fw0JOR+9YCmvZH5XoPbeJ0zTwVavAIRJX1Oo7ZrtQLlxx\r\nCOWHVYi5KFK/daGqYeOzSBV5Ms2gjklhM6clq/ka8NpEpTJ3TlaGDGdlem6F\r\n/ogShoZt+R6FwWKZsaLxg1U6wMrN71YTeoQqPLkFLJPsqDMB3wpcImn7JrO+\r\njp/m+46kQLhGqU8v4VTnwVPDHL6imL/0JwrfL1jmPVKTTBXBNxYJFhGJZDaw\r\nhSJowhhqEFpn4CdlfBSQvpahb6YoVsIaRO7ro1U+Um0LGTk8x/WtkUPr4Oc/\r\nTQJC21jB5pto0uyPR3MS07J0wsFsO6O5OJ06WnOdrKG8ci5XwW4WUbfizBg8\r\nZ+6wEKAAXN8HTqeLe7FS8M0U/3IWopUh1JJ4m/Wsq1OvMElJedqAL6rFdtXi\r\nc/Ojmm+CiaQbG/Uf2oEfS3G8Ca6pPgKnHkMMJwT/QwVnyLLxMaLnCu6pFUhN\r\nK0PaTZ1I0EfV/o61rgDNf2xCQziamtZkMsZSElShc1J6n5naaDw0m35fg8ip\r\nxXgEco5dC7Aha21UhClNKGiyVBpHTCewgSt6s4ov9zV2DVlsalUV98wv9kxq\r\nSy335huAXAzOhGHNk5y9/P+pJlWIvIJlh1ZKgJc5P+eyBLDfbk2Sc/8I+X5K\r\neXABbeQ3/XPHijo0Mv3tGJqru+o6BSBtyms=\r\n=jpgg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.54_1666826337840_0.8649872818999551"},"_hasShrinkwrap":false},"0.8.1-next.55":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.55","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.55+67d3bbc","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"67d3bbcc2680bba9ff7fd474ebe4f234f6a1a4d6","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.55","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-5Ztul4+deZVhx8EJTPJ66nkX4OQ6iR386PP8Pac5qjAa53h/dWaUUjlknNmAWTRyR+ViKF/Dvcx4DMN3et/mBQ==","shasum":"cbecc0c0d89fe11e3ce7f730ea45e6a36ddf6a02","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.55.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC261aL64R+3W3uQn1Y968llxv84Q4eEepcGZZkQ5yYNwIgQFdWKjFC39KpAuIjZHKIMfZSUFkFSQ/NErlpzqXezXs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWcNDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFABAAikoRg2td1aARn/vRYZNwC8pmjtAiyAh6ExbnOFFHT5vlo2+i\r\nRUSOiPFlrYs4Msjbh3U/gyoR1YIqP7wNcHhbKlwdAPcfH6lTn5YSvK1dzmsO\r\n3gQgxegPKDqcWwyjlKPap1kHR6qt+p3s2b7ehfTv+6yjD0EDE6zEEAOBnvfv\r\ng4wb5ZXZ0Zfr8Cv4z4OJXWlu8uOLu+4hrFpyfcNFteR7NdDbsxLF+XRM16Sg\r\nt5ew1KhAUHL79aqzJ8UA1VZmaB85+5sn/mayWMeI1AxwkLJEWKGSrsj0rCgf\r\nvJL4HHz18Drs4yJUWoaDnSdYyIkWlnVNMgof/nMto3U7o7YWqW92JHQIzOd8\r\nW8qCRiW/lzAQGTwyMX+Qzo94UvHRnemdtbFZVUgLNx8dHZkzwsnWL/JKx2Rs\r\n05CAwfCICFoa14nJB/RSRUOQL3hkm6l7+K0PF9ldTun2DxnKRkid3T07eNF5\r\n9RQFm0zBnoqXC+6/l+sltKDkvmS/PUy/S9jF5eP/eNlukCERDCaZ2k8mPzP5\r\naLPwhs1J+sjqicNx0p4aUJ7cXGGAYU3CJZOLAF1MBkCd7iUn7//AKkhE5Jfn\r\ncdeWwTpLra5FQ2FODvMGSt/WO6yQaqiWUMNvCHpL13SJX/Huw7Fq8saaXFHT\r\n7mO9wAjTbAJOtDGAHIOa0SHK2iLOljsKfqU=\r\n=6DWW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.55_1666827075571_0.433768110624809"},"_hasShrinkwrap":false},"0.8.1-unstable.55":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.55","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.55+9a710ed","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9a710eda8c2eeedeb58ab41fd64172b59317f29f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.55","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-Yija8NtGAAIuuglhqOFYNSfJC92Io0J5q2+pI/LlSErOiRaH74LMjRKds/2RX2SMRyGT0qdWy1Njs8EUk2id4w==","shasum":"707856f997bc132569352393386cddadcb42cc77","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.55.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHSfb54PnEhnoRTwktrQDEyAJcpuSij8Ebc/tMXDjubSAiEAqmsYqCQIRz11dsveBNyMWoXmZL5lE2XaQ+2qKJ/TszA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWurrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5dg/9FnCnqs7QnaAVtjJa8kHmiaHVrVc8riti+U6/yPFyHbqMM/Hh\r\nEWpkHeGvsDW0XIbg7FxqqF4gy83vqxY3Zup18e1ySEcztUlMrU4FF2Hu3SSh\r\nrsKfy1EsPnUldv9v63w8UyGRATuXKKh3oTk7SBtW6NT5RNVyh2xqjHTrwhCj\r\nSWY/GBWAvthJqr1QH8ug0hVWCO6pUTe1+DenmY4k48QqsHh/lEkFJ7xitcMn\r\nZPSsfzLXudojuG4SJNNmw6SG563+Ww+bkqes5xwsVEHA0U7Vxy7IlZMv0m/K\r\njqH2s4leGllTXBEy6pOifqi/8zgYAoFhvorjmOiSPXDXbxGHhCCNAtltXRLK\r\nT8y/ckxIDf4HISq/iBQKMxuirXss4wMqbDyI5Uzf5LVOA3XZeqolv4rBDp8r\r\n55tU7+4lWASFVqLpsNdxLgLrRQ3Zah01qduY03OuF4EP7AveV4NIhLYGtZnO\r\nsCGEa9i/k2kxLSCxc/hmKWbJ6Gi+BKFXN8CAUmXuU2PJqNix4oOu5qQmjP6l\r\n7fyO6cfgr6uRejWnxYO+HRrvGKv834N8fQlc/crSoS1kD6HJihC9GUEDrhzo\r\nGQNHXJWNbbeIQ36NHYa0Cuy1HKm3MUYc8cc0LFiZyy3waSBCfqqc6vJ8+URd\r\nRpgr51AGJo6F9Pflrmrybgje14OyWVBGUdo=\r\n=0TyO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.55_1666902763117_0.3626038266396614"},"_hasShrinkwrap":false},"0.8.1-next.57":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.57","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.57+12b0e93","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"12b0e939c1ac9e6d5fd7a1509e24da4cf25d4cdd","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.57","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-3kuyZ+quLvzBq5XgkCQbzU0NoOBl5e+yBCRADY9en6BPOh5EXSFhbMzJ2l8nPGx/m+redIVQIe/oyoKlLJ3nWA==","shasum":"c8f4412eb7a39126a0a2c3c4a4fec21797a41be4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.57.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCD1ZtPbDtnPE4TSWgrtzVwhV+HST/18f+o96Ehk3rBbwIgK9SRkkVKeb2DG61b86fbV0euALw0PeESsN8KTqovFro="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWuwYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeMQ/9EHT7vZohYZ5ZPoj1fdtOCvwlY9LPVQ1HpoDi3d9A0AOjnhcl\r\ncZB4fm60c4lqCS/2dpOapW7AHfY7c/48eKc/jGwDJ6Fsep5g2I2/0ya/YXNe\r\n9k79KD7vvCaI8ZEsJfFJgrjke4ih+CXTF4wvdmyMxHB8sLiPh3T3FA/AZz5a\r\nHAH3IuJGP4Snon0pHEdLAT0u8OqD0SpbT7AeMMmnv4e9gcdO/alEJGWZizJw\r\ngGOe3YsV4+i7RH3SyKTGu4jpU+mue3gAMpCCbduByEuDSd1TThwQSnuPE+tF\r\nAEpYqrsd8QRFjDX11eCNWkaoroKZRo41fGGCcYBNStDrRHVX5hK3y4afk9LL\r\nFzd6KVt7GCz4+Q5jXmJWsfRfuBGoq3/1SGEU+MZEjuh2gYX+1clIvI7ILr14\r\n8t3NlWTTuItqpjzQsj1IZgRki+KsCZ16wSJ1MlTSdiJF+8RSn2n3Gf880SUF\r\nbQ0OleS7mPG07FbZfmzaufZ80ojxS3oHURiwD4LdAtukhrAm676B9qRRK69Q\r\nObfUffednJJdVHbd2maKotUIqxqcb9HUttk/t4PzYfPEyoCpfxD4ZVc+k6Sg\r\nY8U8/Oh300e78tXz7Zk2w75JA7l12pvp7+s6/sZyMOJA8n8J4cexYNUFzy1f\r\ntIVpgQG1r9x4nG9h2jpbCgYQhlGODuKChhk=\r\n=ku34\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.57_1666903064531_0.7582868733556707"},"_hasShrinkwrap":false},"0.8.1-unstable.61":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.61","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.61+5254adf","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"5254adfc5ab0d368bca2a55bafa4498ee270dbd8","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.61","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-Hyilhl2GByX0aBJptplYEORDHN2SvApBRjpCD51sfb88wrSM99nzwZmHsuIaHhlGrw9szOQoINrVhRagKgnnqw==","shasum":"f3c00a48808949d9b1059c402dfa55e8f76e8da7","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.61.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDI4bzwNS+t/AMYmhsDDtZBOTTjTU9rorWv8FCb3nCjIAIgMxI5DDRh7hy6rgJZBbqShR4UnjLgLU/XZH+GTFdL228="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWu2AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCTw//cTEXWL4nnWwn0NWva3y8L8TZPjCn1yvZewn5IufpX7b40N7z\r\nxYM1vdPCozfU2FmV1DhdTQhWLCkoZqS7KfsoWGOYfrqvCSL7x8FhYoyJNyF4\r\nRNW0IOM3pyQfTpCZ7jqrh4XpMsQ1xAFQvDpdDnhruF65oA7S30N0SsInARxl\r\nz+Cmo7Fmk1eP+UCCnLyM+BVK2YHrJlxCIUwAtU+QVUgWNRE2x4j8ZDVKP/Uy\r\njCCriALSsDreXWeCwpIx8DdAb12uACd04yX3Hgfqr6nuAKk+TmRPTa9g6QXJ\r\nfTF7OpNYZduR/UqOCtrDkNyiwuw0EJmzLpsrzjz+1qz2RGi5laQGtUEseS7M\r\ndsagF7bsBmUbPKrVkWnBN84fz9Gp4fxe4MuPA3aCWYatXozJF0+/z5Z5oj+Y\r\nxlCtch3bzoWMMIMVtP9Bfp3HZfK/7iKVkNf1AsvlVhyK7krFQfuG2fmTy9RT\r\nIHbneWWx509prv4mEqnYc/IOErGq4Drl+E+X7VlJ4grTe+fxH7HP2+3rQv9+\r\n+7u+zIVQS3WFMi0tf0xLpBWEabHBzw/uYgq+xuvjmhuVyN8vfOBTra8wAb0a\r\nByBLKF6QWg+QVOW1yKr7YJyS+UWu3giXBT0PmSuIpq7Lg715MsA7TRMzQn3X\r\nSEJ9MTUZ5B9LpA1gRx84A48e7XLlvweWs7I=\r\n=8JNG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.61_1666903424295_0.43398416054425626"},"_hasShrinkwrap":false},"0.8.1-unstable.63":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.63","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.63+469843f","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"469843faa86f08a88f7fd253381c904fd1aae282","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.63","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-A4t/ohl+lrLX/aGUHofXt/ulX7J7p7Lp8n6ni8DxdHQeLJFksEmNhxNU0RxQj2XNUIgC9dSBQL+auIOrD5Myvw==","shasum":"5543a9eb58dc6a0a0ec78f6f2c71d5d1f87d09fc","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.63.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeEwIkf9kio6tlFQutgxa1df1i2FyBi6w+ztaWIEUjdQIgPEtNM9dO+OXXyKpC1TKggi0DOSWTyjzb0dKMUOzSSfc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWxwyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrY9g//R5p2pJb7kB94HpR7vfy3vic4TG4m8Ven3fNZ3EmUxE46USdk\r\nMIEJFvQeHAELNOCLJKH0ajhIQbF1CaQDXyrNqdY7CPVaG+cqowGL9f+PKuLS\r\nGZuuN425FXI02B3TCUOKpaSW5fvfGfbfIyJZgkT09zeD7RRyka8MUiow8lGq\r\n5lcBmKVH7XuwzGb9NHaPPrrqcmH3x5dzK4k8L9hp6GISkDG/TTAvpPYsyWaN\r\ngBwCLVC2j4rqgWd2/wfnx4ET4mmYlOYSi/C/wigUpEgSIc3apdPV+ZVeHmSt\r\n4vNceRU+KLDy88xPmry3qClRPRxOnDk6GLekIbzV6SV7S4yKS1rOrLdXQHwS\r\ne4laCbDFZN+MZmByJWT+C20JZt2dvlmItuiz/qz16xbP1nrfIJYKR3aVcJUm\r\nDobZImWPWef08P9LdK9k7+DPRfNScdnCzE3l4oAXpDBRfj6iXyzOEwjNw0N4\r\nzQoLkzGzipveCGuZs8vQM0hTp/J1vPvh1C0+5kCI/2Nfse1XFZF9otvJGnO8\r\n4Q8N4DV0eX06Q2NoJypwNeLTAVwcXCQYM6dvRZN9J+qIxHWaU2BmI6O+RHhx\r\nok66ETMbkCa04/kZPsGZm/Og47jBKtTiYosXBJx+SYahfzUpQdOI+VW9xf9A\r\nc8bmmo5obDKEiW/ShuH7kDKSm7fjnqttPFo=\r\n=egrc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.63_1666915378648_0.10797551392393934"},"_hasShrinkwrap":false},"0.8.1-unstable.65":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.65","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.65+d66c11e","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"d66c11ea4977275629555d84be0f1e8dd23cfa35","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.65","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-KR3gupTZqloiAmRFGMEuOdzh1ZELVg2vQnySoo0fqRznI2XF22n+FssUx6WCgXLBlfXtvd+VgJ2CUAs3RVAs8A==","shasum":"d41a65321d86607af6a00ac812d7ab401e5b7af9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.65.tgz","fileCount":54,"unpackedSize":100916,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIChM4ANF+LFwqCQZovBUJEZf64k0dovZrLGaoI8TWDNgAiEAjaaK0txPD2BfcTUP4iZrcpukpikM/qci/UUeTwyVOYs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjW5e5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOKBAAmfXIS6qlkqoZVp4Q+J6baL9NWTMcndw4oTqiKtQJOnAcfzHV\r\nk0F6VAwvcdc4LgazDFsBg+omFPC80M2m1KX5Qe9VvsPauDjdok/4hl5G9tPP\r\nhykvmE6lpcZLx1msvlC3Eg+C0I4obeCPrd7oM5SIVZAWs4n7eVL/YAkP4cKY\r\n3eHklPdUc3EquWaBi/wazFzxmDOeOXChTfc3oV8ZUbTexU9DZt1Tqi4YTbXG\r\nTcyx14XsbYlKezdGR2o1Ge+KVpYuZ/ps1cjlf3oQzdeNLQi6f+zL4R/6+OAt\r\nDX5eRI6xTfRdQ+IWKso/HO4sxBYEW+sFgI0UK2z9TbPujElexhfN9ysEppnJ\r\nweiX2g+Df/YCM9Do2W/SzzmdyNraRlxVUrYqeukzmqsZGvpkyy8Xgk8rWe38\r\nPEATgFFIrSNeicSza5QbemOuMelFzQQHoc7w+1h0QrNd2zU/20UXpz95n08d\r\nGso1l9Dq3/50OxzAvPkfVBRRT7tRPgQ9TeF5J6QmsZxHspgJ9vmynhT4ZlD7\r\n4786L3HVUIYax+99LhZZCfbzgELvEddPafP5OVMncRbx6Q0VaFlPe8vZExbZ\r\n1E2kPyrdDPLLIr/F3IuDU8oWUaJnPXKdOHcjiCgxEkrZmvmFASAEZyot1cZy\r\nKwgFrdyuTagCey/PXjCgSl8EvsI1AqHH4Wo=\r\n=vIIK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.65_1666947001318_0.39979008731866283"},"_hasShrinkwrap":false},"0.8.1-next.66":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.66","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.66+9a65e8f","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9a65e8f0cbedd244a79460add8b3e7c6bb45ea66","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.66","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-MmLgByFXZ6q7pDnyxMCilYTtzSMAshC7SLULsik69rWRlpu+1VE2FaZ6pwrJ0O6ZKkovJUMrh5EH9GFIo0XPLQ==","shasum":"e0004a207efdb34939ab75c3a780141923a43bd3","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.66.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkHBBGJPhQ0BSNKHrlyzEEKarCGkE+zIX8vSOeN4Bm+AIhAOFwvFxVBDAY2tVc/Tk8NRgyM/nPMKLp0xr9yWC37NXl"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjW7upACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqgag//Yx7vPpp2YVWuGz8nndT3iikiaSGBUMSnQAdmvg9jxc17xl1b\r\nc7qlwjiG75qFED7YUlVOMAwbg995PoPmAgGYtxtAYW/qlmDZVRVW23MK/IyG\r\nt9zO0Oh3FEkuxNc1QXb4jBMMWBc/GmZiiPKMzu+iITFvkhTxmPfnh6DEkk4D\r\nVox5MCjcgN8RPgEzGH9Z5qt8fqLzQPGHgmFVh0Yu1+7Cp56QSkkHckxCX0pG\r\n3W2s6Gq5Pk8DY0X3fmYi0GiJsTVqvrPgurwpySIAuC25DX7apUotY33UiDfG\r\nWfDUjAwQ4+V9ONLwlL8fd+NDiS1RmvqdgJwone62CHZb4WWZQnhJ3PmdqBfv\r\neKP1oQUbQ2s4Ckq+oCJl5t0nRh3JmI45rzL8xMT6C64g8du+QrGGwNftJA9r\r\n99u0Nbe3hmyo9c4+ZP/a5SytcQB3SlKH+qIMBVL3B2tYVynM+KKRNrjdocuC\r\nXqZ4XdXhC2t/9jPQ6lgsOyqpr9zqvgS4+WGrYdEdy+AcqMm8Pkks9UGr7D/m\r\nPvYhPFGkX/iuu9wQ+w+/TVq6ViJn0teLWdkT6TDNKk2UBKZ5+FiuFAMHR3Ws\r\nl4zbsCJ33RDHkEK1tr+FYxZR/GzWV523ynQ8RCuVa3RYMJXI1hqdRchPsjtL\r\nTdYe8cYaHfXTB2+DvNodzS17Pj/cdSmG/iI=\r\n=oJwC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.66_1666956201161_0.4732689541865185"},"_hasShrinkwrap":false},"0.8.1-unstable.73":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.73","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.73+0cd067d","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.1.1","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"0cd067d71cca9832da452ed00e03bde91159c691","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.73","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-QhZ943ZHZ4asTkM9rcNFuctSR0J5ueRoCbqtlC7SW2ElByMyoWV5qt9gHA7YgsWO2KSc9UM/RuDWlKCoZAdkxQ==","shasum":"e09f6a8d1ffb86d97f862299184b0be2882a7f4b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.73.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHCYHR19C9PdRgGtzr87TBhJifitmAgPpRoMz6plZlB6AiEAl3/9poXMqWN5wckA4CEZYiibk4+cita62Km+NEoGCtc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZEXdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/cg/+L4tHgsZ8TgdFCoTMb5bqDl7OmEg/s1LDZkVP+0zaJAdgG8m+\r\nM5DEsN0TWhJb9eIRnufYYPK19v2fNALZ94EvG3oWwUz8AZo21EpJmIXkEQYd\r\n5/4bP4yh8nxF7d4XAUbo9tkV7uRLhDuCNzVE6jyex0nXVMI+FXvKSN2TSVpM\r\nVhGFPjMkq4eI0HyW3iC/zuFF4et0AifNEcnWLqlIRgjtMmOQAkEQoy2x9ahI\r\n7x2ylZOMA5MnuSai/kymOuxPWV8iIjP5aCWOi/Kw1w3rOji27RoUi28sjt96\r\nCHfJScnp9tNrsVUvzKITarysAMM/3xniqIM5S1nsYMzFnl80f+6HXF4k2WTf\r\ngM4WVb4ZBbB8OmAQ5kt5y/L+FeCQZlxxwqSqDXEYoolix/omCr7yzt7EHmMM\r\nupbtWjg5r/s9DO2yja9ou0IeeMymxIxogB4DXTp4OoF7FnCKcr3nsmEB/F6M\r\ns8o3B0urgMDxh4X+ZS1kJakjYK19ccnYI5lhOlJNzriwMW/SENmrqcVDNIQ3\r\nVe0DhThJYw+QxXKzxP3ZnC87Sz9TcXVzmVpfjmLkO16JnenqGSa0py03xIaW\r\ndCu9MaeWYSIgx2NuTvgQ7qIovhQyVBMLUg/VaagtYfytp22gdoTh/FdTzXEp\r\nWk0q4CEJDI2YOir6WoS+jH6iCy1t4rg2ErQ=\r\n=9Hgq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.73_1667515869463_0.9014835527028127"},"_hasShrinkwrap":false},"0.8.1-unstable.74":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.74","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.74+12dae72","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.1.1","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"12dae72860fd0dc00e96a8121b136c2195843388","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.74","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-DqEyCr8OsXhjVK7jJHqPn0GHuT19fFh+vmtyZW9GDHmjBwBlroViTexAQEwngNidkRiacs5nN/Q+8FoMHTsYrw==","shasum":"d75ebbffb5130dd244c90f1223134f536f593f5f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.74.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCO2etnHL5CCp5chX6Im33BZT1Gh4r+ChVbP56TsczIDAIgPzYWl4PmLDjKO11D5tOOKOjX4bH2lxi8Ih3v7yr1jeQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZFutACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPBg//VJ4ApwMughbaDFlODG8uMWx8qnjTXZhN3BrhRS/+BcE7PplQ\r\nxBPHWl/kfzAYubUf0ToQrKyL7cH1B86bAkFIjTlr+ucWslEoiIb0Fd7DVbNk\r\nXR45cEjGV5ZTzG7tbLYY0zdgomJ8dtybl+c2pD3hVxqdpuHizv8AWsZfUZB3\r\nJjasibbzaN4qG0EIA3CxMTdJiElR6LM7kKbL8LyZpQi+6+oYi3zAzRBiURE+\r\nMfXWTDivU5kp0a/Evshr2ICzn3Bf3Itcez1gXkh24ljX4ru5m7tNzcGC3E4H\r\nU9iSd0VNkaZepzMwKFz9T9KBK1Ly6sJ0AuflaGm6WaRnlaeb39WmeOUHNLr+\r\nkp5tjYpK6EDyrKdM125SU1nHCvvTtVb2KqGzuvxiGqCUv8S5xZOzOA6f7i7l\r\ngXb58kHiVzFyLQaqkglgDbhRie4wcE5eKN0l6ZNzQTtrMo0A3xek/oDPkLbf\r\n2Kag7JLUQ/EuW2IO8dbOQWtBvqwuxXGkzx9mtCAJSz98GYvwQj942UMflQUC\r\nDuz2LqqTmxt2/ehyp7x4FZoLl0FyEZxcv85HkYs+OlRpY9HTd0L/qxTegQbz\r\nloKUT07w6poyciXgKrUuqNR0HrRYHU8OIf0clGN8e4KxE7vFrB23nyyKlHYg\r\nNav7xQ8uDkdVBgFlQ5jjSzFZ2BTW1eoLhnk=\r\n=3LJO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.74_1667521452868_0.7353276253094609"},"_hasShrinkwrap":false},"0.8.1-next.77":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.77","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.77+473b111","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.1.1","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"473b111b98030a1f795ff1e521ce17caf202b4b8","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.77","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-vOc2e0r3CS0/2tMs68NyzUHGzSLjzIz3ZzEMLeTyoZFTkYSsu29ygjHG7jCvGMuJxXUFAxpTy+0jgea+toyO+g==","shasum":"de17ff5120aa872fad2766e2b845b9d314784fd9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.77.tgz","fileCount":54,"unpackedSize":100900,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDU+mUZyJw6Y/Uw8k/3KRaWQvqF7CSw5OsQHDOV/14GcAIhANs5A9XI5iSPysdKkwJn2cFViQocpe/i/iMk4Y0nK5Bo"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjanPVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo0NQ/+JqkRASJpf9yyi/+buOUN72g8eg8TB0RhWbuEcaCSWNb2OI19\r\noo+KM2exoaOUfUvUDW6dsWoutDzptlJaENdLb/eOC6MfTUAPfrOQa0LJulqG\r\nCF1WRGKkJZPbNInavhr5fQPnQhmCduoOxlEv8EKXllcsZrC/DRMWCRwJjUez\r\nGR7BA1Qks9VhYWCvBoSi+JyVknH8RqTu6RhU3P/pSllZTGqTEgQQtFpdrrEU\r\nVvjY6Op0U3JHuvMqWEJ7vrERSdeH08+5BfuEYXc6GK3c0R+OLEK2wp9eu78I\r\nqCp64CGNsL88dcv9twLlXNm4k79kiLLxYStUeeKwhazICqM6xJ+Hz7ihJyal\r\nSUiRhR98z23iP5CQaKGiy7Kbj587fhS8rXar7o9MXKLYVGrnmSAaZ8DLBSRW\r\ny4ib3IoLQ/gJYrReZ3GIgJhe6wZrDcxMK+078mZCHrT7Jbsq8YJ9SvBGQ0Re\r\nG5cIAokl79kb7IbmNHyjHxjpoQUafjR0uTaaWduxjYK7uLhM08GcwN1qPA1Q\r\nrP4iRQ1yuwyWx5NjzDtDn8sFGdTbaYy19hCKAossAaHNavGEbdHapesdV39k\r\n5b3Rk4ouV8NVzTnaf+TaZzrrDh3T7g2yd9VN9ajM73DW650zhFOFQaESOi1t\r\nnKB+FxSpWReQ2rpXqOyYFIozaWpiVnxht8Y=\r\n=vaZu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.77_1667920853313_0.04771948815291793"},"_hasShrinkwrap":false},"0.8.1-next.84":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.84","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.84+d94e147","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.1.1","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"d94e147dcc96a10c1107c8f66a991dad9c5cfac5","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.84","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-wjNJj1SheWmTIZAAiHVhOzjeOtb6uKPmSbzdrrwbuiHzgsgxjtkdA2pn42Q+sS8uxFYtEaZ9+UCVecgKpM6+Qg==","shasum":"f0957717c0868816264d86ccada30e50df0e0b09","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.84.tgz","fileCount":54,"unpackedSize":100900,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCK9d6ceQsVMgl1zhHJNgnbdpigTCkhxaHjgYJ5QGMylAIhAPI7KVCT5pIwnzUXeEWcOUrK8CqQtEDbegjH/ai/8nFQ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjanXxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRzQ/5AE0inaiLCyGTArAOU1SbJD7/Ovq9s+AVNeCogRCPkBXmItVp\r\nblWL4usDRLmlKcop5lJLSrjAqp++QNIf+nH9yLuQoRHewKUST8Zg+ZsyriyD\r\n+/p7dY185yBPxIMo1/ax1l3QDQn5n/y6MDuCjTUHoH5uIjk1ws5SPtAuFuT1\r\nHlJbpbJoNA/52TAR2Hwn6m+S320I7zPBQJg70/SVaORIa3gC7Q/kdTfgxrVr\r\ntjiwZL6HWovAzScqJgdjmR45pz1suOpSjPHD7ucz44iiPZD8eUALYyneeuEV\r\nKo7BOsblJgguyH8kxvD9RcoRp/1MpSDPB37NAm2El/+QmbARsCetmOgqH+pn\r\nFxP2hdwdV6/P7faBMdldNTq4KulWp2m0oo9mjXEKS8DGUlkfy9O9plAVtJi0\r\nXvRsbizXfHv2ositst7lHGjOAGmBkjB8+K9fDCG5r5qjlNEkJnkMTLkVmC/G\r\nY7t47pAq4/zvQxveLcniWsmV+92Ccb7b6mZcQGsAmccUh0vxrqd+215qivRO\r\nVVAxNfcVZ2XNV97mVkMDhTqrqLnsGEIGNmohyUuZSbs8uTZDimbZrqjxPXuM\r\ninjqcqaFqQ5z5srj4gzVayL6WscLnNrlPpvCI9tsc00PuBXgLqvt09Oyiban\r\nb29VGFHckcQQQXsAj9ZEYyWBBIRGFuYhhzs=\r\n=cLAs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.84_1667921393362_0.21228645579251326"},"_hasShrinkwrap":false},"0.8.1-unstable.85":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.85","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.85+9c5cedd","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.1.1","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9c5ceddd61087efa8def8f748ae1a9450bbeae46","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.85","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-7soM3zD/F4NMAbEIcrX5QoUZx5nJO3/gVWZmxbKeGI/z3QmFTPF0TetqLiEeV97MqwKw9KwnGwAT2SbvL86+bw==","shasum":"a42d37cd8adeb9503f4581602fdce40f479b56b1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.85.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdTrJhTzlo2KiYn8Xy0/M6OzaFj81didRWFx/R43tO2wIhAMIhMvfFJfvE9VNvtvmsE+t3wCKxc3CK9S/B4U8CbPqm"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjckUhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrodQ//RtiJ0ZeemJ8hjqUwoBG/OLrWj7W712xC9dU/BLnIxDtQpglj\r\nwEm4fpb6VPYmh1GzYwCEkEQTeRLp9pq85EyF/a42wUrT5Q0Eskj4TurS9q6g\r\nHxS1vc4/LjCK/jLeP4xTQoi7wRbFm/eJabBXbsLrcYNt2kvDCv2cYHZLbBMj\r\nqTYG4kQatt1BrQac0Xdtdl+Vh/uEzH6A6ln0DoIHruBPMCyS00pAdV6JoAM0\r\nA9IT1t4NbRktZpsleqGWkeNN7/dcFYxtRIBT5+X3+BMFqgfdUtsQpnPNLMxK\r\nGgXT8yio5cwNhej1u+vkW8y1id31fePxlz4h2ab81Fr795+yIFxt2E3scKIG\r\nf2qTJADBmhUXV61ERZg+siAXB2XqNWgeY28H/nM/i5+Dir89/6oaXBEI8keS\r\nwqk92P4qArLGo181ILsqMIN4SDQzrN0ONHc44eflNIMV7GyJ9uGbq/8tWvH3\r\nHsylO4zAU7WdWVeKGe2zagvbs01rV1wETZOed9RKuKP104ncdnTOW37FE5Vq\r\nDtuVr3/Ue7NKnlwmhpuxXTvKJs+GKAnUN/D+CjzUTB0hfBwTBCviI3d92Y7q\r\n2oNKFTZfwkUZexdh2Xn0jykiAqmJXPW5e8bMBRJqRl3yNgkYFIyKNfPFAFAx\r\nWwM86H8iv0lnZJX2zVBn/6SuAOfSpjdIBEE=\r\n=2QQw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.85_1668433184855_0.027514089807800346"},"_hasShrinkwrap":false},"0.8.1-unstable.86":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.86","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.86+55d3de7","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.1.1","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"55d3de7ef96fee215cc1eb1c497ffa3b125c218a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.86","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-VTNI/QXVxxThlLKw7GDbQck+5JaeRlVq1qz+7R2+Fh2ejoJcTNQhcvXx4zI9MbISziYTSkcfM6asPntByyHGpw==","shasum":"8d49932c1cbb3e96b84ed99372d2914189f58c78","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.86.tgz","fileCount":54,"unpackedSize":100908,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDswpHb9/KRS5KMgAd8RDpo/v24nZ0W6jQPtc7/vR2D4AIhAPasNrP7DjqPXbDLvLALAKQSVnH6aEbDuzhQ1Pw+Guzp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjckhpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWZxAAoR0pemJIgNTFtOxTUIV88ucZJnyEDRIMfHLWAzSM0luh10W2\r\nWJV+I8mmy/bps+0DwpfyFhK3tp00E9aJgkR8L4ldtBO0v7Pzzn0CZDdVu3Rq\r\n/HzyjqVm7wkGrV8HmJlH5aXY2JXFWoDdg3pg7HCHtrPH5Eo27UxRt6jgDkkK\r\neQI4cMNKzvqQJOK34bf1TNVvJStKb7WodAvxX8ywCILKbYd22gWXbkplyukj\r\nldzjXdX4X+eXhvOJrastr4zxf2hXqAbxAF6gdT7EOgBoLnmvH1zDpNMJJRlh\r\nAgyUDyIyQCM/fdXpUDfrTixmt3/qoLqJf1nmcwGWC+1SmRSgs7a5Vy2sF+bD\r\nMofLzdYOa+dM7CX2GPZDJtve6aaYmKR19oniBaTamJ076ZNLju5kIBrQugkZ\r\nrDcilW5dQAvuMcr0lkQalMUchhln9lpDOZvx32hg1bfCtx8P5VfAYydPVfFG\r\nSfkWL2UTrbNg5ebiK3sAgZ6Itk81rwoiS4fxYUXvnr3e94TvqdM9x48Hu/hc\r\nqf7xGbVFYxPl445es7GqHtUUXU3kTe5o4OcFu4h+rzH8+NGfIQIt+qrywL9Z\r\niVePtA6exJeaIVK0w64x72JhZZxXQjYNd/7AdXw11fQF9TtAmh9l0h9P1Z+G\r\nTxxyrI6Q8dPJh8JYuIJzCsaxYhWweuJKZsg=\r\n=v8dj\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.86_1668434024990_0.6018039820764378"},"_hasShrinkwrap":false},"0.8.1-next.114":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.114","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.114+62debd9","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"62debd972f51a3f1ad90e922115eed4c2f56cefb","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.114","_nodeVersion":"16.17.1","_npmVersion":"lerna/4.0.0/node@v16.17.1+x64 (linux)","dist":{"integrity":"sha512-RjkhZgUwOTOEq7FoI1XBB4Omz85c6GsyeeEVnKvOX1CiXZmKq3AdYYZZecmj82KNkwAoQmRbgv0fqyVZaw2DCg==","shasum":"8f381ed77876cb35556ac7653d33795b389b1f9c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.114.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8St+OHUxSE9f/D0o+DNI9Sh9yRNDG/4pCUEH35f8acQIhAOs7sN5Ov7VDHjit5Zq+Oel7pr9jnKFIVSAp7orwcRH/"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnSLsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYdg//f/9mY+qXXv9zc9N6Udc4BRQaUTBOlo/NWQQafZAyDm0hNuhv\r\nSUDMGizc/FGWd0qXLLgzUO+c8gvrfJBhU6BaHhXGXML0XH3ySsHedUwhQ6e/\r\ntXZW98hwBTL5qIJZbArucqiXQPRmv9V3eDpFnVhIxMo901ZW07aFo0kWGN58\r\n8Yw/DfJ12SNPVDViomdYkhqajvpAE4kyBefJiYOM1WQZWA+9jpBnlA8Uhktm\r\nlNQa/i83Bw617DC+KtVmPVSWVEBea/bgCRXHPvPOApdWbyJKYq8Alyd+zrXx\r\nO88wnVY1l9mO5GXyCj1iP+69cwgM0q/N37IWc1CrrYxsBfHV2jt/HZ/bswI5\r\nkBt4dHpnhctdnUORh0MjoiyciDWwomQDuY2VrPII/kIT+HuF4ifOFNOA91/M\r\noF2WGXCkVp3QY01oZcWWvFoO705qYPBiyx4lZGm+fkCgjxFt0BgDDk850N4S\r\nWTXYl7QBPE0yNt64pJiCo+I/CgC0PqHZebL2blj+wrns9vt5QSVUD68rSorQ\r\nrMjID4wIgdv0+nqJSQnJ5vvM/JAbIR1yq/rgn8rWo2LJsl1tE0+OyRr5VzSx\r\nf013DNRx82yKpSSdqvIZwOcL9HWI2mkJ1U9bUlrXhWKA/wo0qtKaJ6fy5ahb\r\n9ai3bXv5d4juv2xMT9nIn2w84p4sXn/3J3E=\r\n=HIU8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.114_1671242476750_0.47195368532127135"},"_hasShrinkwrap":false},"0.8.1-next.117":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.117","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.117+fc10bcc","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"fc10bcc41f4802957e122567ce5aa025ced56d3f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.117","_nodeVersion":"16.17.1","_npmVersion":"lerna/4.0.0/node@v16.17.1+x64 (linux)","dist":{"integrity":"sha512-4FhlJyaciWzndmSk0LFbU+pGGlkLJeEORwz6Tc0XYGRMyc5RrS2zgDxKSOfdeOdkFDCcODCceV+qbdMWtadAXA==","shasum":"dc1359a1f3ee0b7f83358abb2a76f184e4723ec2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.117.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFBQlzUfaod42AdJkZccc5h+ZVZJZCLaS0DAJNce78tQIhANC7AOfAzq4ESoyUD6CuoSR8qJnNslXx9OI/EOsq9k+N"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnSceACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoj8Q/8CG2m0ILnwfNR0veHfAv3FoEAU8Ultmlf1914VJtUNYfXidXi\r\n7LsM/GodqYwJ93Bn88lYkZBKvn4itmaDM2miwtoemI3MaPu24FZ58b0hUK4s\r\ngJXArhzSu8i+UJOlpU8sqDEIuQlUnIWAdwl4nAqLimq3h16sodAV4CC7KjeK\r\nlN4QUADH8CJUg2dDhp3GtLkDO2P4WWvoopq3W+Y64H6AVIV4vjqmXv67ftpa\r\nk8D2gB5zq7gUJ8G+syg7cwEFRGe/ZBGYJ9ByKmipWUKSruzAx0FFLJGHI4A1\r\nrxU8Y+JwBYgHvHoAgHECQPepmYKfh/IzJ3+7yCQdr5geMAkJEt3Cd5cqVN/6\r\nuy0pAZHH6B1bVJ3CwyqsMurTqEfWBpIkfRWKEeDb5g6QxhKG9Noc65yfuLow\r\nxSjrShHA1Fvy59ASdhNxqHw9yL4IRmceGuNqoiBSWF/7RkeqxZSE03Z9p2SY\r\nWP4StmWed4TIvwlShIJG2TSNR1MPG1Gf7TBLgyh3psgr8fz8XFh1PHZHjFBI\r\nubTlmhkSKP2NKjkPhPNGxirAj+WYZ/fUP6kZevnQVPlFK5gq4El7UlvDGQNu\r\n/it0dYAvIsHlhGJea73UOpATY6FbkNmpKbxLhboTGJj8f+PRB+s72TK9Yad7\r\ntq8jkg2RepCdBNkKff3IrslXt1r5rOTvB2o=\r\n=Aw0v\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.117_1671243550090_0.7568313924850727"},"_hasShrinkwrap":false},"0.8.1-next.119":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.119","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.119+4fd058a","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"4fd058a3a06f2c56598e72749b87b6690fe1101e","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.119","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-wWBoe882waRXWWVQ4f/fStWYmf2UI0w8d1HMk3F8XJd5x8wMh4Gy/Q0Bek5p7kuKWrdCaSxGk5fORIOVxglgoA==","shasum":"02cc72a3dc3d6126c0e0078659d8b90fe824b1c8","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.119.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDswJHI957s+67MJYS1SJzxlPV4WdWDsAYylnjy76L01AiA2pPAxHM26VI1f6U1m6l9kbKrZfJvlJK8QnfN6EGxrcg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjq4ZZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQhg/+K84/H9B3vGQcvfy7hFPgtcBtS7Vq1OXPb7d4La+xGRm5w3ht\r\nyBJXAa/2z+RioaiW8Qwt2clB5Pt1nxTH8kGwbIXM5BFU54lv52a8kVmVdXax\r\nCG8B/mPZM4c7EKitm7m9h0iGlyUPusK4ZyrYF0EcOjzofps9hayDxPZVDL8g\r\nju4knV2CiZS7LNVHmGhtGf4+KoL5BexpnnGy6I8AGgN+Ca7xaDl8Q1QWaodl\r\nDIQtxbwAVyundgV+MBA+agtpcGJr/nM8ERN6CqnGLhS8TsCyrSJ5Drfu8NZf\r\ngEhBQMqqZgQXVNT7YC8gUsLZqTiFGIeTWmW2q+88F2BzaSo5Bye7AtNrSO3s\r\n0Wiq0WOdkHXkNlpqAU/1edOQ5FUeqDaxi7Ib3iDdVdk0ShDrdqI9lyBSpnGS\r\nEiPTdJ9qQncIPGD8XEH0hNJNnuVi6I5gvJ0nXAG7Oj4FO4xZQxZvgm4c1iDk\r\nQbvH3aeAdNgbkomzd1slm2X3kdSREWStUSslBeCZH32RIv8G/WnAeSvGY5Fv\r\nvQ24zOuerajUU00BiUGZoSzVxTnabgWXbSKMvdN+W3jvkbDvSR65dwvQ5zV2\r\n6YvGuw3XaERvVbdxuhnZQu10MDSUpHsAihCY+cA4mMUafpAfKrLAZO9IehGg\r\nGdwYYbDxTQug+ZtKYAw/LWHtjnHEhEsLqBM=\r\n=c0Qm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.119_1672185433281_0.4220805016214966"},"_hasShrinkwrap":false},"0.8.1-unstable.135":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.135","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.135+680e974","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"680e97483a66a78848f98f4c54b707a24a20a155","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.135","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-SBDNe6GCGpfCI3MQ/AUWPqjjTyFBDCwMKS6uaDH64KxepIE8qOUOmUnpulqUIPQD4tOyJjeo0URhNKwVZqb4DQ==","shasum":"0c5efb313f569a67d250e1ecd0075a6cd6bbe344","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.135.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxwYl2I5WgQi8hVCCXpvBGn3lFnjcs9b2gnFI4qywarAIgcxezDCUwkxvWMtAZ/S47wcxU3w5axKEQ9lnz2FtpeQI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtEplACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoA7g//WMccxFyzPLN4sXaYJPxVn+5xgqRtuarPkWdVdYi3dHAhxDTE\r\nLzMajQr0KSsTi1H8yPg9hR+5wnmNsQaxpd39+CgalP9sInFJJJ+q2zJXLWNC\r\n2jChFIMo4M0P1PTF+Ilv2esXU6tVpKur1t1NR+hxzdocA5ogvMM4PpJye76f\r\nMdXh6ooXgUFJ8DRY/wNWtfJANLlZJFxn2nP1A92/RPjNXwcAsgLZidIszJSW\r\n7znZo9opBZw21x2XkCPo7H6m1I4ga0oOGz1sxVk4mQ0aDP/QMHq21AdIua65\r\ncHNMkeJ7DCGCgktfEXbC5S3HGmwyo6DxBLGlGnY0z8+NRYUIP9WBJ+n7xgyu\r\nHmxkAkLVlNyhtGweCYOO0YOKaRb1YoTjNTTFXb8GvlCaWyVXmDBRYhl6I0ZX\r\nzxVuMq6ZhsqyCLq/SC36X7m/qwDhzTNjXSS/rvuH7rmeqOp2nJGWjm8etFcN\r\ncaniXtjMZIhjjKty/tEFhJPBUn5cuHJ4CBjJSNUV4BRWrrAmsYcRNM2Aw5ud\r\na9WTJK7J4jWLYRWHl2Xj9XogI4x/AdBzQxvrwK7Yvdo6oOTfw/cbl+vqDq3E\r\n4Tlzkk8mNF6whjqBU0WuuJp11uz47E0MwUyygzf2usyDJBq8+kKgJHO17xI5\r\noHpA7ay4ytGgzf+sRNSRAZr336Wf2ILqsY4=\r\n=mrOL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.135_1672759909548_0.9156000841319432"},"_hasShrinkwrap":false},"0.8.1-next.120":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.120","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.120+43a3adf","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"43a3adfbe683ee4040a293cc5b75d17a029d7c49","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.120","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-B6Na1C15iEu/mqP//+qtpvBx/7fRVnbSMwtVX30qeeVSrXofsJRd5cPT2wczqnI574l7ROuyx2q5yjhOnzyHAw==","shasum":"54d70137036aa2385e0bffc501301910c5f3a902","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.120.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGUPCK71kW4jsEVpiXl/RCFqm6XsYUMUlI9iOw3tAQrIAiEA3qNKgHN4ONND3C+lYuJA/IZR+jyv1xtQKoYr29gybog="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvL1VACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpwMg//bQkfBWeY5huw0r10fk6FYgzcq14RX7BkIs+a4o/OtB4DuL0y\r\nH1x0C1lGdNNEJ3KZOJL4udKWuXowrPQI3IcuDUBapFUNOdCm7M3Er4epYn4O\r\n0ylhs3i8aOXUrPTodDYZVxwIFL45P3WZWGG8+S6Wzvose3Oc8B/TxC64Attv\r\n31DE3dE4rMkDrvdOWlt9DqFokS/2Skn0V/A4tjU2LsTkzE3KU0TS3ymUE7Z3\r\n5OfMRbnbjaFjI1rTaoltqBHE87YKqU477FxmAR4cOdljwOFjLoUKXKKPlY4s\r\nomETw5A1j8xCx8JRFp/nHbFaDu19zd/Ebi4USX8rRAKj14dpw5vfOYLaeyOz\r\nCrwwHxT6ak8XDWoB4uN8kmnvZ2MudWPULVYeIrlenIpZqtfyuyqzwqc88MKt\r\nNkyzA59i51Nx9uXv4aor9UZY73ZW55cLbp4Zk1aK2ZiC3SRycvD9kICQ6lIh\r\n7+UTrSSN9EQ6m7U3HBUiwVVdMhtbljY8wA/ohzsQoaC8R0MdEZgES3todDQW\r\nCO3nwiGYdzNQJAp2PiYY9BzJlqLq8+XhYUPqk2FSHVwWrvdD5PLEGOLdU062\r\nXPx8IQNDH+HwbzQNTTqvV7k8NBVsarqFCUi3uK0KzmRZDhy1YPuMl3DX6sM1\r\nV+/punl9UWF5rzaSOEae/fPhSY6NseeqPTw=\r\n=8eLF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.120_1673313621048_0.15161730614985358"},"_hasShrinkwrap":false},"0.8.1-next.121":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.121","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.121+d98b358","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"d98b358ff7f9c787667b4bf48fd748ae9f58197a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.121","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-5O4qV8mG8DT5cnDhayxSOMTgocE2kYh/SdHQHXKcW7+XN7nRn+bJqBO9EIJ+JqHKIIRNLWHoDaS4lyuC9xDumA==","shasum":"cb4cdde5b8c81b74d3fb5351d63a4958321bbb6b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.121.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHtSQG89GBtUq8JhFcd7hJgna+TTPWeoby5yMR12+OwVAiEAlnRKLR+1/g2VojcwFvMAW1S3W99quypkWI/JQB03Js8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvwnKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbQA//W2GjvF2gVD8uHKcZ4/wVTHyCbeR6XUW6KttohXpMv2+7gTL1\r\n2lDb+Ze2O+wKG1vnKmGmb3/ikyvEZbap0yp9+UMoY3O4wWpIVbYD52V2baD5\r\nTDINAEtS5yFHMfq1/ZED/nwgEdsKbiZuN/FkSGbvYH46LEkqw/3En1p8B1qa\r\nUxneOL/ANHASpf7ZEvBWq52Zdt5x/BqZqSCiwapqkyRh2Z3QtSgFD5lQxHmq\r\nJ/AK8G2GOnuQtiYIF+BPQ+Vhb3QWcoIFFILPIx5kqynKiG/EMbWEtDf7B+Qb\r\n3h94EYR48PMAIv6pGnyJMGW0hOceVbxBOZXndhdF2e3vJ2MY5khyyWhSHY9B\r\nTdjJHPs3f88B05Hn56Ed8guSoLMmfpcd7Jvh4YEIH55P3r3+le0EZ7UEvjoU\r\nIkOUXbQ7PtkYwiyWbT2gp/X5eL9ladvoCSSD+1BlEfcc9YO2YRO+NcO6BfGi\r\n4tbpP4Sntxt48slYOlezTBEreuLm2oR0X190e72Zq3CAhqWJhnx+CLVbJrMw\r\nFEXlok67ofw/qsMB4ApsxcR5kpss1Rll2Kwl59/G2oWluHM3oY726VG5oQv0\r\njdsYxQyFsWE0THI8vTKdw2kwuJel7wa7MoLcDeykS/sNi+zkTF+YpgfWnGRJ\r\nSYOvIPFzzMvxNZKTgNf2KvBYO/STzuJl+B0=\r\n=D1XW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.121_1673464266491_0.9275182870856433"},"_hasShrinkwrap":false},"0.8.1-next.122":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.122","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.122+26cff51","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"26cff511b345e412dc37586ef3c3c8fe678cd574","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.122","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-Db3UhaozcX1adVeKgdxNXQU52qB+iQxTBdj3/4b9yrLKu8r5O+yqzhwZwPDW4b1R+/c+FL58xUrxCuuqKvHQNg==","shasum":"ecf68ebf873a661719a6d2c48851979c06e68de2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.122.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5UysjlTuLHv+liVJHg2rE5+cNWekvspXDxjAgwv6W/wIgJLsEov//XHxukZb+h9nr1rxH2OD51b+AHLCJas1Vb94="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvx1PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmri7w/9F3eLNmNJZvn8sKC/5XGH/wgAStiRpfq0poKYLU4AWwn56DSy\r\nY0ap7yualWzkjNZFE+TGTb0hxGs6ctd+Yb8GllqCSM96H4W1cowiruK8A1Bk\r\ntuORoTp4/zKRj9NaAHGIFFLh1eFzyognZSmuV6oHTQpLEdf1B58nfJmORKNZ\r\nSA34GmN1EJMN5bBWyg2Qx9Z0m9udS2tbBeTOSOB3RScvLSUVR0grn/Hrxx6H\r\n0xaG6T36FZjfy9wNJDqfZQfkSjdnqq66xP9boM+BwrmNVIR68iZ+q/JLYQBB\r\n0h8AEXSDlJjuRCfFf/+RTB492DgmQWgeCdvjWVIEBoYY+WDa0DIhwxNa4L7v\r\nvbBCudO2JexCBr7OlsgHB2occyF6ck4fp0wKPaSToSsagOERhFgjZgigfH8/\r\nA+YiQAwsLdwkD3Jg0T3A5OvgpPywkQER1sAP24m/bquZCXbTfUDcvWzOBdCH\r\nPkjjpiPKr5CGlg2KhRIaKWl+Mo0/9B5AR9Ws2Qw6/n9FVnZv0qH9R4AxXOqZ\r\nL7HdMZkqcc+DohOkTCDK22MB80nCTKX6OC2RFEd19XcZJ/+AQJfevmjUcMrD\r\nRXlgMxwpn0yo+eoOMf/ihCSPgsNbWuAOGQXPHHxt8s9TWvjU+0hH9jEjVt7j\r\nKp+aDxmuuiqxdclXD4JizzhMGvWs7Co4AQk=\r\n=DmU9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.122_1673469262756_0.9742786739447948"},"_hasShrinkwrap":false},"0.8.1-next.123":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.123","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.123+0204094","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"0204094e7b7fd33314a31df5d06344f54e6f6442","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.123","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-8ljVE5OsQ94qWbaiQdTmItzKAvMzFdpJUfn9El+sxd4KAXpVUzZljbjAfhwO15t9D6tDtS9R8ZZXGCqsD0+sfQ==","shasum":"9ef9a1149bd975636b4bf08879854dfb110e8c84","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.123.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDB0VJo3xzDESpv4dHafZGI+pSoZuCIWLh+q01KHjmU0gIhAIBKpWAJISQCJAogLH9xbsgCbRac9X+NGiwh3947vBhX"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvyzJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqFHw//YxIffLM5CRatafHChW4svPHJiJjWL18qB4jAYI4SufpHgNCy\r\nx4BNY+bnA2b9+3hcdOtjF2YMXloSxB6eH8FRuW97VGHtEt9jgpwY6SmGSaIM\r\nSeKOhC1a5Q/4o8GAYuw+B99zT4LBw6q5KltVCxSdMzBcq1eAY44Zmq8YKSPZ\r\npjsYL0IEY95tYmr360JAf8zDdD2eNxyZpyWEfTDiv/yBO9w6N/jLiMaVdERV\r\n4sZ9I4c/kdMNoEHmabX+dDe7Pnzlr6pnq4Tskkvyyi6n2MrLsppX+WzX+vIb\r\nyUBm4WO9yvbrMQLmzUU9yn34zRBgHn+OBA3hwecEjs415noNiP+rE4W0Wn5+\r\npaRqcxT8MXY5CVQR1h82PxX91UsjUj0nvpNPzufwIMoB7yPy3QClg1TIpfVX\r\nixgpex4GvAPVrNd1MTfbkhwmQUjIy6KEDvgvYJ6Unviy8kChw1to2vHuKpzE\r\ngu7pgPP8PGwHiOyGeLv2WoYNTEobS2r6+AiieT3iTVdR1uVf+enGsGkT7ehW\r\nUNJ/ak0OE5Ye2Sol1eoZfashYERcvbNBE6x7qquYHuPf/5cSsO7r/NiF+CRv\r\nTvWctkiTeC7sZTYA8vuFrgyBsCylecP+rFfXwCY5MUOIPHP9fIG+8o1rY1On\r\n8KKi1hY7+RUKIRLux+ph5J2Kldc8DgxAmbQ=\r\n=Y5Ox\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.123_1673473225269_0.4520839241393009"},"_hasShrinkwrap":false},"0.8.1-unstable.145":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.145","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.145+17a1229","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"17a12299ebced331f45a5c7cf53a5bebcbef1280","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.145","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-E/QjKY9pdNuExX8BaHR7xw0IEXzdqS2Ls0cQ7dKXUdfqikefcpDz6nV4rlbOPE2QTI1TFUWc9ZAvHgo6DhV37w==","shasum":"f34af6961ab803836a07fba6da367ad395485ba4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.145.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6DWLNINZ5SG3sbGpvf8qqxTiW/PZfdmaYSQDqJl4fpwIgCs/wXI2D+7srOXl7ullUPirT6GnJ3nxVR7IvX90LdW0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv160ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodoQ//f3w1qEVFwxmkgCgxm5MVLN5W43tO9XNoXMJfiLHbqHn5Ps64\r\nqMs9I+wnqNcFr1hbemq4PHlmq+4m1iP9MqDTjtB/EZNUiP+QudDhhG3XOLg2\r\njVzFKOwTP5EmkQv6nYHMRJItjVP4ZeOflfWbrWG7CRXMlIYNmp8PjEnHnZxN\r\neQCUo53atqz5uX68QW2zyxfY7dAPWKjp6FODzpdeFjL3DituosggwZzqvWwp\r\nXTZUgvLr1CnoZzxrI0YlNjQe0uFYPRt+mNj3JvuA9yDiuX2mk+hXPwddqskZ\r\n5j3kXTuurjWVl3TL7M2mPt/ghjQyxjmhSavcXlRF8iTHVGZn+rLXckg2pRj+\r\nnLVqjcWp0qYxeRRUo4nC/LqZzE7/5l/mhB68ZuQU6Dc1mm9Io/lu6gcBFDlX\r\nxPqCRB0nzCvqAv9IX+Ts1lD1sn1s1gQdnO48Pi+IlTTiFeUU6dht9WAvrIrL\r\niRNnHomShfYMw79MZoZPL/9wQqJRdV22LL4cNoVNd0qAbkxFW6vi+j6dhEgo\r\n9TfZLQmnRjoAVxlDPHYIZmpFj1Zg2U+vdOWoC5xvpAt/fYlbfqZFcTjrsSGF\r\naQjzCwbLntg21NQq9CGmoQLdIhueJ5ieVH5sw+UNeGtB+YmO7UFDSpYK8JQ9\r\nc+ExYm7I7EHkPK2rPjAmLB/H5Um2gEIM4gg=\r\n=bM/w\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.145_1673486004312_0.28552896550165774"},"_hasShrinkwrap":false},"0.8.1-next.146":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.146","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.146+3081280","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"308128069e9233df39a3492f74c27277e67bd557","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.146","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-42aFK0okitFydjy/zUN3zb/jXEkmaAI9p3OvyiFlW7RCyenzLGS2PHbiVevN58nlFwhUunpP9PR4bdSaGNGppA==","shasum":"87c47c201806bc98f6dc2ffa249f204206d6f14b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.146.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBLZDPZUpT+mtKb5NJj4SLD7H9Kt0qifltNmfz035lnAIgAsCVDCDeAQrDKh2NsLOzAA2ra6w7Hmfj6cpTDYed8U0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv2EjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLeQ/+Klp7ru7u86veNubHDOJQxlS7TlPCdK1eim4DabUJngxXepiQ\r\nhz+67Ma5WB4S6pN9rKiooHrzOXE/LaIE+tS9hLbylhenPStgWzJ1HLS+sh1k\r\nSycHGwcZjjW/L0HTQEOo4WwYEEtSdQObA5WqEOhbj30XadQUbvurmLmXLCFU\r\nyD+I6s0fqJrLtPb7nI97+BHkJIL2cDol71dmb5eBlHeYukyl0mvac+4U+lPK\r\neHZeD4/LP7bdDCZU0p+JC8X/eRZctvI+sQA7c76f04NNYbfevtSZOBgvmGwS\r\nBwkJQhvihfpUl8PtpJf3RAs9OWpMUou/Dxbh9HlDdXHrWdDuMKZ1QL3TkRrv\r\nxdN2sc6WgbMSdTSToFLk7W881O6dnN5Mf/EFsvt9c0dpHjzqjC7cjdctUPnC\r\nRLzGnaZ/XPjb9DF+/EGJdhu7f6mIE7zrF1vomK7NmjBX1RR8WRRp8U/MVye+\r\nL5FeBhHzCOgcygmhdAff2FMoNGceUs0XExgrPQSpKSMTBGCjwk0IqF2Snzrb\r\nTt1mXiaMqy/uFLYl8jUdOXXgQNjH8PoZpWrEIw2rcsE18VNLRlrRhKlxioh8\r\nsZT8+qnlon5WqqsWovZ2oD79Ig9A5tqSgxGdq5gCgoQTY5irPScMM2Ipo6++\r\n3SqGIqv0bwZ8RhqDxbKHAj+yiqPQVvq5wmc=\r\n=DsrC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.146_1673486626804_0.11326626967196685"},"_hasShrinkwrap":false},"0.8.1-next.154":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.154","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.154+a0bd467","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"a0bd4676a62920e8f92ee980213b187677ad5aaa","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.154","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-64NqZor2FNpaI3nvhel9dcReZTJ0/ZfBMmi5kbFXLK/PP4+EM+ofZhJiMcBnmL3+yttgaRjNlA+aQifIO51/YA==","shasum":"d471ae264ef581f6b408495c81eac216ef7b0eb5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.154.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc3ttiFUKpSEE0xM+I7UpNEa0++8KIfwm6mrm5bJRqBQIgEery6XJRhMf6TcDh+eIwV60oEqL+E6UPf0b/PRLe0FM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwAb0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGOhAAg8yBeCpHk6dgejHkfOfm+1E+Kv0IuR2Lc0qpTL1w13XyU+NJ\r\nqmvxYTWWyHOsw3qklktGFBbWcJfGkUMsJ5FmId0JLsk5kawefarG09vvlqdF\r\nDoA3CqEFkdoQegl6OdZzk6wJznkhzxs/R3SJXTlwOcsp7TA6tqCCjCb1LiAk\r\nA+qddD+4dYQq86Xy3ooqjKzVkpZAvdrWWuQSSnWdwg+Uvy/SFiLKt9BGxUHB\r\nqMS/AM0qZ+bDnwcYFb3xQqS933PXwEPDaj/d1+LRRW13i6VAT63PGBsaR9Ou\r\nhZ2Q1FBQmR/vsQlp6AGIcsQCzGvrQqgIpmXgs0IYcugf8teFA3xNvcItAnhP\r\nk03fUQ5WECso95FbhRpp98Gtuy2/S3h1YHHivj/nCh5qLL6I+upiwT4RaM83\r\nt8cvQsYlf4c9M1e0sOqQDx8jOjIyUAzQEf/L25cl6m++T96uIGe4CHGf4JDi\r\nazT6ju9xL0Jdm5KIwFw75BAOUsO8xJlbZElR2/hFYeyLXhnB0tJKl7/Zh4Ft\r\nBpUnW51sY2QxGgoXkaaAmp43uxsZV4EimKXdUG9gZ8wsF351bPMhEjUUVCIf\r\nIihWOZugpsI5ARvHe399AgDYASbXT4qD5Ag/pGS46bT5okbpK6AfGqjbq43B\r\nx9qHcXvcipM6Lvse8jYj4VG4q4FFrzLji5Q=\r\n=OBmC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.154_1673529076350_0.05908118636553539"},"_hasShrinkwrap":false},"0.8.1-next.156":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.156","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.156+5e5328b","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"5e5328b9f2429c4dbbfb4402cbecfe5f114e0550","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.156","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-vObXssWXCO1MwN67uetXLZyivNWMlHq4nqfIjmis/idBwc1ppQYyI/FnAip3RkgObuYipP4aKJh56pbd4sSY/g==","shasum":"9737ef4c6580111b25045132ec1045aab23cb1bf","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.156.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEyGpF28mHIZyEqszS7GfU+HQnBGT1Ggf7ke4UzSCcTuAiEA2i6VALiFldqk9sEpa/QBwE/GZ4DFkYGfOjONPWOSpiM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwKlHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcHxAAmXhtBCol8RM2lBS4iRkQXOHwr+F4Z8MYFSlVfS2Ru0Tk7LfZ\r\nt8dMrb2sqLbmLUSDqJglAw6micAn1SlnU2MrT4vSWYd9piaoM3W63NyPtKn6\r\nxpfoNhmij8IkvkRD9x+W2ZCYh3YyJioLCgJMqsqxnW8HQHgh9m3rp+ghAjUR\r\nSrbH0v1TsnJL4laWv09C9vOfwBquREs1+KQ0FNwQd6bn/i44yIk0ZSh45FN2\r\nQIPbY8OeLjzr19V2R7sgb9A2CrYUWL9h/jKi1/n+Fe34mXkjkIw0+IJGCb7j\r\nRpWBmtWas04h/c49J36PFtsW8qDNuHWTrQ3jm3d0dwSvGu2WHjBwRFUTHWqf\r\nSaukiCcNd8m9mW3e85YpIHWwaAWFkHAiYAElNKNwhPvdmwK2g30nLZ9hsspv\r\nB/I1UPYQli7kQ7M+xwqc01kFOOjx10/MeA28Y/i8FkBSgB/VveSHyoHDRVFw\r\nY3Bizsw4ea+xSKhnifokA+AJ3DRCk+C0r3gONJbCnoPVCiWnpXWSYn3KPpjA\r\nBYdHQFaAXsuuwY+8jcksq/9QqxyZ+/0saPQ91LxXEAsQ7Xx+C0filp+gsrRf\r\nJHES9qd1fHTwvzR1B/J/qMDSBgpFXulw6J2S23XZWBpU8a86XIsRLCyCuudO\r\n3vyV27bAYhjKDzbB/Pz6iEWh83a2wHJnToI=\r\n=WZha\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.156_1673570630973_0.8017890628114162"},"_hasShrinkwrap":false},"0.8.1-next.157":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.157","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.157+b010d7a","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"b010d7ac65ba49d4e85641558ce801e1c3fea730","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.157","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-QivMyqDkEgt63VSUoLEs0tYnPjO8vW7asYJfGBytDGe+hcERR77wU1Dve4/2MPANtN53Oa2qOVOD2glvo2ks2w==","shasum":"515098bcceda0573736da4e6aca646b11e0e457c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.157.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGw5O42SLTfvmtqAPcb3B7oBuZ4SQUaxooBZE6TsPLOAIgflxC54ZBl5ZxPgXS6nr1hhsztTLwOh/FVZ8nhnwrh2U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwLbyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr9IQ//VGDLgO/7A+ANxg3GMzWcBk2Mk5JtLoonzq9BOwWOkkp3rloQ\r\nUVkprS0l1If+rGla0FfOh4dhWPkH6/C34txjXqo+4douQ1syfbE3NtZ4f3PU\r\n/k5c1a2QCKzPOJ8g5DMImhyuL6MutFsJ5e+MZzI4khmA5+LZ6cm3pU5i2zky\r\nrv1PhJB5uOAayEp2Oj/t8wTIOmL6yxCNmgn10OMsxav+nDlyGRkP7g2cde5u\r\nyDrfds9yFIFHKyVcnvpgykP9h5/T+vLNsrUrsd31dlY+D/rLqMwwb+RYfhVJ\r\n1CQB9hnZvMVrxa2SgipGHr/303IpQCcm5j6coAmlZvEnH2CWH0uo09CAeMmp\r\nkcKJwU/Vr/JVNbOEKWDn3jswREhMn6eM2LH0M32EIlhxYa0w7FbHOFM2pHou\r\nqZdIowxcJ7RQZm4qcnSaVpUnvBSAhbgHK9l3b5F56Lwa3tpahwzEwTSv9ZZA\r\nbxJPvvLmqDWZhrTrxBIF0tNvEsTWkEf+5kpq8lgN+S7ZF2nwJ+zmMSfo7WnV\r\nqXQcSwODRKJYg8ijHilTVDd07cuuZAKugW1EWw5dXbeMJMaKHpXzVGsk+4L1\r\n2Mcpkg4eTzt0xUwfQ+rQG0f//kUXP1jXTL17tDTLnm396bm9zAOzequGs9ZQ\r\ndVBzLKutj39KRkasgBR3lVUPTU766C7Z61E=\r\n=Kxwa\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.157_1673574130003_0.43067400582669557"},"_hasShrinkwrap":false},"0.8.1-next.158":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.158","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.158+625ea6f","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"625ea6feb62a08d3ce013850c6de7da8d833bc35","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.158","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-6ABDqEZ6YrtWZNYjbtp3BPWUia0G338gOocbRKOkHysGGMUfYCkc3BGG8PM1wDbgsq3uo9UoavT0/OMLogmDUw==","shasum":"f4fee114c61562b904627babd8c8f82585dad51a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.158.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFVPcaQkf8tn+bbQpBXP85FaJ9DvEcAdF+3Z2uw3tzZZAiEA2cVYNVmM9iuEzH2sK5H1tUnOzJzuB38E99XhaV87x3Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwLvjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrcNg//RQ02aPPR2tmVHUhGIQTWfFDa8nKqsuIRUfrcKSdAJdkiFyot\r\nisg7f3jMaKTBzAufyE97bJpbCuBHzjUEsk2kefztJsfilu/pa1IT6R3LgYMN\r\njqfulu+RfI+3sM0BSXEp6p4Cu2lsJ0G9DBGCowD6C90yX9ZLGtfaLJt3yykk\r\njV3WvCE1/eLppcHwTpyx2G25c8Z/gKc/NCQ1fMvYeOvtN4u35f6Hq3iPgShi\r\nuHQMVb+ruvaaX08k4SUMfdOsky/ZO+96Sn2q86P4hxgelDBZP2ZKHAf0mK8H\r\niJea48rO1C9sBTeRvBFZsH/sZYk0kVuZizCyCPy6GmdAMbcEQACa4dWNoog2\r\nkLrrhTD5cFCVt+HUhnpSlB66ua+GTBMCOmmnxrvngAiVirtIO3MnMf04rRI0\r\nvlXEgveQM1z5D2AMRDPZEOsiknVqWCT0wUEI/HEbD7TololCkPyG2bTcxUCB\r\ntY5E1m339IoW0m0BEkIjLRtZ+1TQvSx8vOFs7gfTBoC/ZWatiOthXEe6O4Xt\r\nupVund284jDDkUPskbtIt0E6sd8Ulk6Fe3Ynnozp8H+wt2hu/e7BnqDCj43p\r\ndlzbB8Ue+5DcYsnMkK3npGM+1YC5lyvklIEg2t0V65JTUgpoQWNmh78KEJkG\r\nAzn7FxLCuzW9NTekRdVIQuQ4UrNcW3DOGoI=\r\n=OvL2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.158_1673575395097_0.9567909713259186"},"_hasShrinkwrap":false},"0.8.1-next.159":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.159","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.159+00892e2","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"00892e2bb7fd279e2fdc3583cd132292708f71c6","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.159","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-ari2L53kWZIoaC0/b1trf8L3YpDRneDwFF9YHQhFVFkj93e4SyNJo9zFADVv8hemdvdjZPIhs0mhKpsNf+BvBg==","shasum":"933f8d0fd40d0a3700b717da53dac2eb0a50e433","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.159.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFyi0yIj60uI2sEaD6Jwp+eYKeYxUIwi16E1LGzP8P2WAiBCD7XESMs0fJ0/FAy+H5LyLkSMSHu9qlQNWZok4Vm4WQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwMAYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmotSg//bdf5tgzbsB/mbS7KXIc7nGylvMIwxRmNTpimfmcEb3AgATLi\r\n7GCOmZte4Hk/jI4ysJxJI0NlgzT9WwJefjpaWwNwFsd44vqGxsPA1ppStAb6\r\nlqT13sdgCYn501hlfkp2gPeo18YVqXj6S3xHrRAHrEnUskXRw6uRunOWCdSc\r\n+pC/0RZNx95UW4I4sfsrctsm2MqsxZGml/i2fogYUyN/imK7Nx1sPXKvnadH\r\nSIM6m3ufLZhFnWg6yxfx9tIiV4WUq1QniEjK4r/5ts4b3xBYp1hhnUJQj/2x\r\n6MoPOHm62jdX8qtQRpc77m/cPu7ZnHGcgQRB7v1RBa6BkwYCfq8Jvdr89IXi\r\nRyYb3HYzbNPlR/aq5Sk8ZwmfI+U4apIe7eMxSGWIFOriJ7B/8Xl2+3uwCyMO\r\nJjVphXdN6FL+wSiNBFTrBmb4EVyknvdWJnjFBxuOHLnwnvMKzGvg8Zo9tFGJ\r\nVmvyx5gKQxzW8LYmU8b4BV9lyKLgPuisDECALsEAb7EMm/58N8Qjn/dTfdCo\r\nxDJjkQgLh91ywGmhlKnRZhHFs9k4iB0/NavTCZ+NAodz8+yOCVyzbSJeauZ8\r\nMWCdL1bqP9nxxhnHWT6dANRCwnt5oFjHY/q4rwN/s31BBHl/88UGGqaAt9LB\r\nnBHace1sHZwc5ot+BofGNKGAR1akLtnPD1Q=\r\n=SJVP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.159_1673576471893_0.389833655886755"},"_hasShrinkwrap":false},"0.8.1-next.161":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.161","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.161+bdbf4ef","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"bdbf4ef55e50a9d19d7998a5ceac7136034524ef","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.161","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-X3AMU6gzzne8YCGPOJe0fV6FBExsC0x6SsDWHRdISmZ7fqhmP2ymaVS/LIS8SUft5hTZEgxz5VsLmPRPEo/L0g==","shasum":"8f7b3675d8d94b33a75253fb38bb675d71c6d9aa","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.161.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPwspInmTwwoJYDwDQqr2eG2+/GyhbabJcw9+A5wldtAiEAkaW780OllOyokXkaZff7MDQ1C/KYhRf5AL6GAfrAhbQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwMuhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmOBAAn8T8MgGqqmegDLKBrFIvYmbXG5LwyrCyinFizw8t9aurC3zm\r\n7zjz4IORRN4ih7kZkFSaJ3FdhPsedWwA2Z7YXDmS1BXSe9qz5oDdWG33tqK0\r\nz26omF2Mg8qQ8qYzuhciNgAvwpmdXQ22FI1zdVCgbO+6Fz1gA70DSDFu5lVy\r\n65UrSzw0S0WnfKnHHAK8hav2Hd7s5F1bi/L5+RM/GxjDMCwvncfFzSoO2n2h\r\nunxfg7KifiGtpz/0ItkcGxsmKrjXmTpIGrMBR2G3cDlGUC6iB8PIRW1JhX9r\r\nzFVDhlkKi81XIf8U7YlLEYEJmWJLmqGuZnjg7BYjlZdeqA/AiANgQ3hHMLL/\r\ndbEYVCOt64GhqbLk8Ffsy3wRQekL/7zbWG1uz3wO+g2yVnajjdNK+RX2rpGR\r\n01dPKSo6ygWz0oSbnxr5JmtPtDVd/AOZd1byZIERSqhRwfUZHP7/P3Kf3m07\r\n8apj9fdwkhbQP+Pwzb77ujhO9z6xJS7xuK13kl7X22DiFXgbwLz5goRedfdT\r\nFF6FRM8C6vIArWfJ+FNvbRQEE8MPzMihPwjZpRzYfHjkrZ7EC3nJlUfhbZpl\r\nHlxgl1Qr7R0N8bBVK3lcQbitIes9QonYjT3YoG4edjs0Kkscvj1KvnV2sAp9\r\nDR56JTnk9eDwsCdbiT/bn8tF376s5e882Dw=\r\n=7oej\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.161_1673579425152_0.4635831964264405"},"_hasShrinkwrap":false},"0.8.1-next.162":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.162","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.162+518b8fc","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"518b8fc82e26711bc6204d5e0d66bbf04b0844c1","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.162","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-cZ9KhEtHOpG6P1ku00QfB6BBXw37xFBQaGf6jaSmWsC+NF1oTx2RZ51jbx/23TlbuqdzBniZ9LZYFyJDHdkylg==","shasum":"5b924aa874e173e1767ec01083f118a384a6a8d2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.162.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKzc4zLjpbWpZVFnCtRgaE6MRu8KqRijpeVnCbq8Q67wIgdvkRieh4mo2sIY36mC3uc1xfZbIBG8utL6t2hKW0GaU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwNVlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoIkA/8DTkS/NFTr11CoMdnq4dJMX9tUoLSULtk03dJtCVi7b2baULv\r\nWx92hTxGg/DL35J+XPGdL3rI+Lj9JdaL+qgM9H1ucOxVg4THTjmjRGEQEzu8\r\n7m3bavTfuGp3F0bsOGvzEqRD7a90rKu3N3yGG+CfEEIALhSm414TqKDePnkm\r\n53wBIqj78LsUUCmFmK10/ES3O2fXalS09IKsEx6GgFXpYJHn2YgOLOI0BD5D\r\nWiwcOUa2yyOHmNxaJrtf9s9S+0m+AMuK+9Q24dk3WTYd0beRDvPHmUiOPxL7\r\nIG38DZmaFK1mOE8gIn7ypazetkYWpQAO1k45Rno2XunrjTWEeyMAjc1rMR1Q\r\nfAA1FZNfKgEaWZoRrK4AfNtqR2xYJQ+xuXKZ7OPvFabGTY53gRfjP+jQ+YDA\r\n0gm79U1H56nA8lk3B6UXcUSmtuoDDLO5QrF6XsrmQxsGKf14guaI3B9uLi2W\r\nWhDohvb0BHaLMMULHhquoAjG7b3Txnio+MLWuZ9CuboaL34nZ8R0sm1T/NJy\r\nDb7eCbCV4gfUGJP3a4H/d034kIdj8YRVKAkNBC2CeQ2RzLeMgm0CXuBxSS0A\r\nS4upZbVe1kqFHFU8vcfg7J3GJYCmGxeiYnrg098jSmp3daQwoNSwmUCWOHnq\r\n3TQBIG2exQeI8IHWErHFfTyYwrwHNKbjfKs=\r\n=MvBo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.162_1673581924912_0.8803893756616017"},"_hasShrinkwrap":false},"0.8.1-next.163":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.163","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.163+1f3f6b5","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"1f3f6b5078868ad4447a6c2e60c81160d428025e","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.163","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-iqGqkWD5qOtk8fL+PRPQFT9IRtC2jBewekNta1Rs++A3ZaFP0DgLjtTABd85IRWhM6X5l2+mW3DZyOiwfcewQw==","shasum":"e0562497f2700cc3e6d3eee7e4dbacf3fb1f4823","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.163.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE+ktOwbx1HEHKGIqGtY02rsm+yjo2AylkDZEnCXHignAiAvQUf6ESgI8rd725lYmNa3F9RRvlZPuF0/c5W5lNBaXA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwNkVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZ0w/+MUyGVM8hU68SzfouwX/QDd57H80c23FFrceh4BTAoPIESEjW\r\nGkCG2xOAjviaF/4x1yRMN6X2DuvHTM7raJwxelsZ4guRW8cFf90evarZzei0\r\nyDsWDds9mmZJAto84qSx7j/ErVXfNvOktoHy78K5eUC6BDn70u+VJLyzwX7I\r\nHMlkLRBoME2xHavpaEUskuTU6DTOiPKUf6KaAommxZmqvK47KpsEykL3T3Ub\r\ndSxDKEjytXavYJbAxUvuGWDu3/sianBCEBoxpE1eGHiOXzrJalceufIoXVwz\r\niPc989HwEOKS/TQ9kqLhzAgQbeVXF0UGnPqUUTLlfKYcbyUCNsXGCWUJehCo\r\n2z0slnqVI359wCzA57Eya76v1kIIpabo0g2fW1pVtSnmeVcUv9phB+iSOX0q\r\nuFiEEFsEI4zak9YWohMtGrNrnz7/vAhQPsrMdsKQmYeJdAdyNj/n7j3hPZcy\r\nbTmweQ0E6s8ywHqJ8VGjGn8H51K1zwl2YH8z4ny8Aga9SbmOx8d46iaGNZXv\r\nGIMEq1mJnmYY+0nI6TInhpRdqpJjeyiwhFlQCkoJuF13n8MaivRTnhjJU0oB\r\nsMDxV77nvdPeOx+wHsQvRj7VFcXmobgax3y/fdyrbZXkLKd6mXKlmeaw3Pv3\r\nX5wFEakhuw4kdgX/RE5WLIBqwySAmrlnI9I=\r\n=7c+p\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.163_1673582868913_0.516158671090156"},"_hasShrinkwrap":false},"0.8.1-next.164":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.164","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.164+3df79ab","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"3df79ab1012764ac61e6f3ac910b9a91cb19f996","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.164","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-t9xbW80t6CtsMOL6K2pTt+BhMCOW/JMulw3TBaVlQoUthd3m5rbjkRtWJQL0Dji/Pn3Z4yPU7/Ihl/ioiyNUNw==","shasum":"a984107a8d5dbd94586eb408f0627b3b194f826c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.164.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1bHio/zYzBwJSUaZtYP/zw2jEFwGoY6nM4P687mSnrQIhAP6DT+0zbk1GRW88ovGflZQ9rNjy8/2t1d39D/6jzFPx"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwkEcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojGA//bq0QXiRSrCHFJ1f2oedF7dV/2olLvaKvEJV0PaDnBQ17cYgT\r\nNXc1sHKIE3ChwN5vnwsw12AGJG9EhorNN+J89jYbLU4wgcKXgplt+s6sxo4t\r\nUhgrBuSdPZBSmNjF7pXUfUOQXyX5GMaS3NE8dIOjXsOXOkHtMgkWHv1VkmgQ\r\n/o4MSDx8CLld19eKCQJBh8HybzWvKR1QPGDztW+jlF7hkPtIVB0MtKG3zoPv\r\nE9N8h2eH73FtJOkQkIQPdv6jCrM0qhXMoxJL+snhUbsffLLXfY4nM7pTHbxe\r\nBeaRpaip5kSNNIXnKhZvx+oq1m+nu+c1xCuJ1o1K6b+Qzz5x/t9ezZ+hZW7G\r\n9DgsdmWCuGN828rFAK/SZK8FLLvPChZQs8Gp5TPWfneOzTPWmmqlmtzf05WR\r\n6Qe9kPzFVWx6fTUx3ab7pDzVMQ3mKb8ucD04M5u35y6tnj7IMmDQCicBtjFr\r\njUOIag6/PTIpuqimyHi5Cn1jU2cxjhNYoAC+Y9ggqwB6EmEzP0pF5tXQPyEw\r\neo8jvlX53VlnKUYBDix0GR8/u16d9AjOXEqMVX2trvy5gXXQbloNROFCoYXT\r\nF8jY+PPcQi1rOjkHi6NiEEHQN4xQP7iwXmoGTY4x+9/ONLgaMROwC0RnMHmu\r\nH5zuCGwg9E+7PqIYqeEvFH8rxxAt/ZowAp8=\r\n=u0of\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.164_1673675036600_0.06231397039553643"},"_hasShrinkwrap":false},"0.8.1-next.165":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.165","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.165+834642a","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"834642a3881b14195ac47f5bdd639bdaae35c7a5","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.165","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-33DuqJPYdqDS/rYCXG5wvQvog8R8F8FkyZFtClvubB21bWT26g4PKeLrVgurT4m8DHi8f1Ivp1av5pCBYdr0eA==","shasum":"939f6e9c35908031f1ed3ad69277d00536633a48","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.165.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEgBUg6aFDkgvrvDLAdG1pwCfCoOhElAGuKn+l5+h1WLAiAyiJODhdfNKquVEg/PNP6xXCMSSil81ESlVTI/Kr4mqQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwkkrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2iRAAoEzM6QbSAaQC3CYlCxlzg80tHQlkNgVCoriLHC4oNsJA3rJk\r\nEioxKpzYVoipK4g92IfJosqFnpzEDG+1sda8GZ7REb741BcBhUG+Kk+arXVo\r\n+ZU0UO1if38R4OQ1YVeerVWF+0aQ/hMAdm+/KTQWsdi7ewHHfY+bhY6m/PfV\r\n3Mxk4Drqz93lcEKDVjJVlub9c3mWX79cFqVQYaFzlGWt1snmf4l8GWK1K+O2\r\nZxM0Rl/htTXhvuuQ98RPz2N7Y1O9Cz+5OK2ugIeMg1exlJSFH4/AM3MC072G\r\n+GJfM9vJ5XNxvhHcdCTyqpRedl+xvf1V2phCtuy+IAhwlbDPv0Z7FbtmAKPU\r\ndQLytu14msNgSY+1sWvHWiwg83Q0QuBrzkhbKyB/lDQa7j6iWimADfvi6XuW\r\nP4Abe6KoL10VqNUZCsdxCN7NBFnpsAPvfG273IWQ0mJJwoc1IAVi5caQcmXM\r\nGMEXVNa9xwnREackHlLUCWiO/25F+Bu5KhuAkg68eoDXhVa7P+tjAQEFnxd6\r\nRfQv7zuKRDDJawTV3eoPuAlqLvDjbsiPmQIJexzUl01slxU/W8NTVM4F156o\r\n2zbf8jIe4iMzoF0rYWOHOT2xMm338Qhmn8OUfYz8ccMet9VZt9OVHc9zQco0\r\n5z3Dm8eFaLEcXqZCzjk8dRPAmvG/vlWDtpg=\r\n=nOoI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.165_1673677099286_0.4296251205725663"},"_hasShrinkwrap":false},"0.8.1-next.166":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.166","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.166+9eb47d1","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9eb47d1147d15f87bf9e6ac8861bede21a2511dc","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.166","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-btrbCfP6RvUIl7tIWsqvGjR5hkEQ7pwSSfw0uFGROs0nOusf5bRLjQnseN/n95K/gZapsuvX6DW+KVKtCh7nKQ==","shasum":"7a0b89bc44cdf122cddb66f8c461015b293cbad8","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.166.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtmGzxVenEPFE5ue1sH4pDw/3dMWrheZ8pomTZ9bt5XwIhAN/1AmJsyTbptTj/ruwI+gDtcHbAoI1bndfjvOpW/01q"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwk3GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOkQ/7BWH9ojP0qEYC+hNfmBTHSbUwi2K2wlO/mw3i8YYYud9KbZCB\r\ny6y/+sjHLZDYaPGA4Wy6tJPLoYKCO/DDn+iAs84vWVaQATLali16ZQK8Irck\r\nivQ0L8Kh7lTvAqp0Kwjpxik09z7pg429D03Puga04d1Zag14keJvTq+ddIEH\r\nxoiy6DPt6tTe/0aUPJgnExx7XVU2L+SHPAkJwcz77/NPEEL4Mf6lAgSML6PA\r\nOpHEnkwcbs6k6A6Ak0nxmonUI2VyIM+2mDqTlvi8TmYRFRSK+ElsMCgp6JUu\r\n/Jdygg9WkRp1uFk09QoANv2iJEmK7uXyZPuiSoss3tkpyH1tQsUFJyCpe099\r\nx9F+3xz9q2BDhtPzWbFLZIOsFn8QR8UiKkQV7qi1sqgeFpv3wS2pD7t2dAzD\r\nMJ8UmVLpCAwbWye99p1Qxk4zO7LWIfyl6e6xMEGSgT+5bbRMWIL8qEWpZWIT\r\nq76rvZFtfsK7jxrEAWncW3BGCap07HAjl1EyNhOrrUQRmEjjjt4MDEZr00GH\r\nzTWyvGTuZusSoTL+Vpaj+xtPRHua/4O1SSmJglwT7UCDlDZPeuCqk+m1WT/8\r\n5x8Pjp3WmN3z2n5Q0pfAqqjL3/wjOvkWL5q8rcNqpwCWM86lTfB8LJZNNvw2\r\nbjoMoF71nmmnvxrtNMyzrLCQjwCemt9ddg0=\r\n=+Jjg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.166_1673678278407_0.8120868382608766"},"_hasShrinkwrap":false},"0.8.1-next.167":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.167","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.167+d6f57b8","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"d6f57b86b07a74e81c3949fa2663e5ab4732760f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.167","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-18+hOeSW2Sa6WHyz34ASFWUdduvnl1QU/uTRrg9kyKKTnkkgkKTyl8ovY1s2kS1wdR2jPcp9G49PYJVEVUM/Hg==","shasum":"9f1e5f3e05757011b33d0e1247d40bed043bf635","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.167.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxcRbeaFFD0BDBnHG1+oHNRVFbJMeZGY2hK16AMbfJtAIhAP9irrcHtwm9CGskCSzkTklOPmrAx+L8zWM3NBBpS6dK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwlIpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrIuA//ZAoOsDmKanvg1/HXRPwnVRx9ZlUcKn2zHmwLIhP0vgYr6idK\r\nzOfLVn+82wA9Xv4IZUvqP5juFVFjOhdqQkmrLwm9pquUrJayAqxXdnu33UuG\r\nwo1e/d5fqv34Lj9c3D56J5K8jiRUDTdgzyvZcr5sUpRHy5JZnGDuoTadhSC8\r\nxU0OWM4JmbFeYZvuOP5dspy7JPdo3Gcm6qtjJFfeGwQvERlrt6KyJE3p3Vog\r\nqDO+QWIRGx5ZIgdu2vvmbh46hCgNkbYcq/zmGCjklatkU8L9z/kySbTnprOn\r\nXkJP38ILvGWVUK6hZMVFX/hnNnyMSEfqZA3sEGbhhYrR7vuIWm4Rtz8QBPhb\r\nICN+p1B97Rvm5RIECaOcLu+IbC1g510G78f+dmxaTp96ZXuGLddppPCgHjUU\r\ncBHcKg1Zn06McjcIByNSRu5zq3aSUjSgxMxnfrAQBwlT721/4VfIFYAC1fjd\r\nZp2V8G9X3v3euRDnjGVoiAvw4jUe+64mW4y97YKwOyVVRy8vFwI2qKDDZzd0\r\ndCe+9zVVtGwxUNejQ9ETTFp8v1gjSMagjLqFWteRmU0a/u8OEaqSE4RDbtsq\r\njIrQqOcbvg+41d6Ncyb6VgwmI5VbA/sRsCulEszHD0VEjClscY4J1vL99A+T\r\njQXP02l9vKhE6TRsqvoZKyErcPXxsra0fj4=\r\n=uRzI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.167_1673679401379_0.6556747758520851"},"_hasShrinkwrap":false},"0.8.1-next.168":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.168","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.168+b163872","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"b163872e14a43b3566db1413497885cb918b982b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.168","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-/jRMvB3BNC5+6uyL8NUh7HIwv23ETlUxqvIdEVCHZ1/PDJ5aBrSb7zToYi5IewDV39CaH50p2pWh5jL8L6gexA==","shasum":"ff9d494813aea99af4299d280ba75f518c892e6f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.168.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCKwrqu/OTPHH0uKGmFbhBEqQK5OS9QRrlJGuABWdoUWwIhAPr+WlqjqAmMXuUnPkULglsagoROWe2kYd9MN8thXIE9"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwlo6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5og//ZbZwMO4jm12ihXxYAMeXac5CnTUe7Q+AUFca7wwxteQbzxmx\r\nEqi27JNDcu3ThWecZBI+2bqBQbnij4bOj+suHeuOUU+ntjueVq0mCWjP/jvL\r\n2G0KVAeqaByRznWPUI6UK/+8OzL63Ps+QvzwfLPrItkuHuraeZRDhVK6UT+l\r\nVpSx8hOwEqctCGwv3Jkrelf1P/Wist0FAfKktRu7be+pTWyNP9NiN2Rmf5R3\r\ny/yW5TTf4AuxtZrkvsL6kONUaEjHfVgJjt44stMNPHuvG43H4JmgRGhXX3IT\r\necNNgnKkf4ToKhedq2Sob9XxYI+nzDK8Jn6Kmn7xs+AJmu1Ywuj/artnOavr\r\nvxaOuT4U1yRPufCYFbLyB0OsjhkwRp39byHKuZ6hEZ7PYNJ6TBCBSt4v3M37\r\nsA5Uh7GS36zn40JKxCKjw564vK5To42vsrg717y9CjpT+X/S8Ef/ma7oMKVd\r\nHR+5woj1pFJm7Zkwt4BmTMHggsoe7PAml+sRJUp0a/SfrvKZj85oQugzW9k4\r\nO11AxiVvPHiXUz0y2Jzfm2HNCKKIxuU1FPWhbG55NU6rDRY+oR3TfyzPsHur\r\nw5a3G6WISb0p8U7QAeUQPFwrpnULWa3/FtLLIDxle7xkYcHcCFFSFZXxVrSO\r\nx+826hyKET+j/UCe63h1V5Hv4mIssFXa6s0=\r\n=rASg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.168_1673681466038_0.43312391468462663"},"_hasShrinkwrap":false},"0.8.1-next.169":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.169","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.169+3da5bad","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"3da5bad3a79efc42755e354e86ecedc76a2828eb","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.169","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-lXSy6FGhB622QiaiTcwA5Pg9SliaM4DewJXQSl1r75j8AX302dwRcBj2BgZIXQ7SaSi7z7xG7IBMZMhUF8Wb+A==","shasum":"b03ca3844e5dc5611d9cf86c5796f7061ed39098","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.169.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFrpS6dvvKqSP01anI97R/w1LSJeZZViv040hSLYod58AiEA1YhMmP2vD97uNSDgpt1Dr1dlpIFp6131NJEYp/SWPos="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw2BKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0/g/8DZ1UWeO3HNI14CvBEXd2RUeeiaZ5wnC31t17nJVye9LS1iVJ\r\nC/wBpi4mZfNo3yeEmZUfHrD4kRR+0+iHbkm1qCDS082OqtPlsphiTyry2nPY\r\nG18KsSxFCSwhvw9B2ek9QszKddU1qo1k5c4vrP037a2+IYkAbk00YamaqBl6\r\n/G2WPQx5qOgc0Q5cG7UXw/v4st3rrS4j+0veWVIhxZbWGB8M03B+/ayPIoxg\r\nSzwGzKg8IJoCF8CNC3RZJKiGW2/v+O61i84l/gM+lGMFQ2K61oUMuJhLaIu8\r\n8Me6OGEj3WCO8QvXacoZw15l2GlOJRapBE9SWsExUyg1vdMoirLzKhCDEOYf\r\nDJHwtsSO1Fo6qZ8QaqtkXoJtcGMPldrW5ip3LcE3X6jaAU7Hx2ElrGjasffg\r\ndP4VR4bFcHJgFkjx/Pi3RK3mxwe86oXXL1tjl/a5towzP49JruORFVfXpB3q\r\nSmjj4fEcy5sw1wj9jC4cZUFXAYxyUBxIOMqMcQ0ftknK3f/8ruNdRsZXR2tP\r\nl9LWNkZvLVJ3NddWH1fIMWoIkF7YAO7IOFQ3cakjhcBc5djDi2hSjK+o/f0D\r\n7UjuDCduDsQA70TW92OOfQKUnPLv8cJ7dTJXHOI10yFjbBzVK1N6FHVD6CBB\r\nLERlz7W2maH1O9G2MyrdJMgJoJvM51ywRlc=\r\n=QyYh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.169_1673748554675_0.20261754175304247"},"_hasShrinkwrap":false},"0.8.1-unstable.170":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.170","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.170+5d7cd19","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"5d7cd190771aad89620bff9e1e271436e9d78bd3","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.170","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-GH+8RlT5BTj8buxy33w5XN6tn7zbQnM1QDMOGyIZXR2INC0oc+a5e2Ka5oCVQ1MIHDYUDRnrd5XSwdEDUaXDZg==","shasum":"b1918de5e829b2296084689189a7f39dff8a1b43","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.170.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzDXKoW34Ug3zpEqTTbMLG/h8mrJKefFBbb+eSamGjhgIhAOjsaYLpXonWPtQoQD2eYvn7NXPZV+bYgL1N2a6WxBoe"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw3JEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKyBAAg5g86CrkNUuwzrOy7/GD4dL6xADTCCnmrHKzyinKQdYdcCOA\r\nDu3YUwsQ0CdaCnUxcuYUSPGwzryvoJvH+964i9DIJAkoXEWuUaQv8nwoEXiw\r\nnrMZmzlq/O8gbbYT6iL070O95B8PObwX+IgMuEPIc0wRLq3qcB7ekGEIf3Lg\r\nBEHs4s+ohrwRS0hP8EbOycvqwTgdSNSrX3qV1OjO48h0fQxvCXVp1GXJg2Kj\r\nmz2W4utse2UuuUZhp5kZC8wvnPxIU6kmIgOenY3Fx6s5gEwiBnlqOhMSfv0F\r\nFsn5+xrgrySMuFDwDalf/tAq5Th5zjmHnM8a0hd7VUr5ucZ4f8SbO+PLBP2z\r\nsPYAvHlJyis+Fltpnkeq6x0Pqx3vBZxkz8/lTRWDD/SUK8wb6K3hL6JoGwKy\r\nG/B6DhRaKW3vAK2FJB10aKwGuiF3JJWbWnwqv5RQpIFl78VFgjgpSwF/hzXc\r\nZSBcl4oCcswweRZGCfMnpmBKliIPjAq/zWyIr6KCfycR2NPlfHrmwVAxe33H\r\npmjSAnEr0WGRofF9nd8ZCmBXBosL5EoOrxsu7Y74lECn67kQqIZuXaS0cnOn\r\ns4mpkjWNQofeSkeMcstIcPCtGewLGs6WAgQfvbM+71n4bGEiutJD2d+Nu4/R\r\nL4ftoIn2H6LVYouCXWUICivOODJ2vIlRd8Y=\r\n=gdwZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.170_1673753156721_0.49103622031375416"},"_hasShrinkwrap":false},"0.8.1-unstable.171":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.171","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.171+67a8185","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"67a8185c5d60a4036e74b412f8e3a1e6720c05ed","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.171","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-860Wv/6i2ggIbWVyeE/bTvQe+oEjoKJGCJnUCuosraPI2nt+1g2I+kMuiNOZqcrL8jILeHz5D7lLUgKj+T8fYA==","shasum":"76f3433079b3c3b05f36c4c8b94b18040efbaa43","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.171.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC88qcacHbh+rKrw3NFZsqMsdaLTaSkfR+b2c29HZZeeAIgZva4ck1gHMZFfs3J7E68JmB3xefvO7CE9XyL6JOZQnk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw3SkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBZA/+Ob96H1RTUELOp1k2no2/ZrOqQK4yTRZE51sLwGBDMNmMRHMH\r\nLvdQd13BZ1VPL0dZbbBCg/c3R9EO428uBnoyhibYSzeRwRb7CK3IrJ0BqcXs\r\nKkuE0HQnAzUd6rSYa/hvBTCtKM8/c7/TALrv0RRQzbdSvYmK/ekWZxapNq0J\r\n19dSWKLKFlaClsURcuEI1p4MFG1vD/49Jkn0ofgGl/ibl3SwgV+PZEiXW2HO\r\nvIfUMm+IWC/vVZSfEUsKvgr3owEw50Op4/46M/Tl1LxmgFF/Geau5drKVVkz\r\nm/zNbcDHhVVtqSNHN8eMUOEXQ0FM/Gtb4CIHHdGLIj1bwwO5OWUiQ9I4Q/x4\r\nKC9xlpaCwRV+IKQlSks4XbGae21us9cWmncGyt7pE3mifpLIl2YxIEvCx6ep\r\nELKTJWmXtjDo+rt+B67Imx1ln9MQDpsOYaFpN3sqT2IUoVQrScO4etWZYMjU\r\nCUh4/vevTCGwdJY1QmH22IouOHHpvvbr5GmAWTnxINOkM0JrgQtz70etuHgZ\r\nZ3GY5ekZLc1k8I2fdH4tnWoxhhC7cU8uGXq34dFMbLZEn34betzvToNp4WtW\r\nobPtch//zy1GZCuSEhBdx7leg6pl2v/ZgDxliD+JBvzrMilll6NEhsfp9ouN\r\ndSauUpgpm5JWzZB9hH7J4dbDPkOIHqvrvS8=\r\n=MXWO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.171_1673753764154_0.782713867582586"},"_hasShrinkwrap":false},"0.8.1-unstable.172":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.172","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.172+b388091","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"b388091cfea0993d0e20f9d61402a7cbbae9b9e4","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.172","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-auCvThah8MvLTOpCh7rUKAdNRi/2oPtWDZRoPcBjsqitso8vvvF0FMYia1afKUr5SI5wz7AWBT8BPv15i93fIw==","shasum":"24243a93a7ceed30ea5660992275145cbb841855","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.172.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGAYS+nLfEZRGLnFjWx+FJOgLGrb5nJ9V3Nejx3CBnV8AiAtcB3hGADvK0q4nmIAKBbSQeFYtyCvcyhYKWFqZa4AJQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw3ohACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoleg//Utj/w9t4RvcDr4MZ42cgEdblwEhRMK+DgiZklT3tyqjuQr5V\r\n592oLEB60O60HYMW+OqP0ACCYtTlrAMQPTtOlIyuHqq95fL79TaFcVKKlcMI\r\n12hxq3aIDheJU5bMKapZkoV+xQs1mwZzltHTPR95WYQ6B2Bh5RWnBa4OEzEW\r\nRrK0x7KDCk428PuYyLsKOLAEOInro7RPAfFIRfYdJrShzHvcncyeFy/CAE/P\r\n9PnW6aH/JMSL7S2rGY4Hzb96DQ0xnGAP6gXpCJW2DwGaSJL+FBjY7hNSbFbV\r\nthhgIZ5NrDUT58pIuqsW0JgQzuXFMfBf0XrXPoUCH1ZutPaQquSEwKMew5st\r\n0hSGqa/aVlO7T6meOGprkw9Njd2Z1HW3B2+yInZ63koPT1GngwmRz1ga17v3\r\nEnlOBVF6j6a3+NQn8BfcjByGevCrI6OAF3j90hicglywRidcKICSN/D2u5SE\r\nPTmhx6ngAbgEWtr+m4G+LMGdzVb0QCU34MQ6sRXgZQR0hwE09h6xOECPeq6C\r\nZHr+gdgsf6TjSXbKz+kIDAPjklLng644rrXvF0pJD29r36mpmXitmGh2BKkE\r\nPmp6Eux6RhODmtIE+Xm/pWyTXlfYMtOD0jNWur7SXdOZOpkjzmBjYSo8n51q\r\nMkfjlRiLRJTdB+PsShxqNKjn5TarS7qYhU0=\r\n=N9hI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.172_1673755169639_0.24081003213714625"},"_hasShrinkwrap":false},"0.8.1-unstable.173":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.173","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.173+e98ac2b","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"e98ac2b97b3248538b7cd5d05f0c7f639a63feed","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.173","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-wpw9xfE8Lh076GcReS6ghOdtAi6733oB2iW4pZC4FS1JHuM2EQa6Z064bS04brXdftaa1oEZuQiw28wuS54gNg==","shasum":"1e24ec202ff7c84b0c33a2a08ba31cd001bcb722","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.173.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFAi2N1kLfEYNnBWCE94jL1aoV1PQQhmRWLow3rdY+j1AiBup46RuhSpZ1KwnfpQocPs89f/0J8n78jLphTYtc5RyQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw4mgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpn1g//egj7jIDQZVHW9BfdJNgdAch17AExRbhFjadVqv3/AkY54/xs\r\nUgNeYISDkYtP0Qn2mNattN0jW/fY1QpLCLWdoLCEdMGmTygsNxTtCvigwEYS\r\nPyyfA7cMjcjDQRMJ7YVOPGifm/FccyqToR/9TLReOBzC+YB+xvkjT9Y/ntjP\r\nW0FoIhvKuNGgG+E8ajWBMlWwBaLsAa2xWn+6WVRsvimfrOqsxp49LQeK927U\r\nJCO6FMQK0wCnKWJkIUS8zOA4cIPwCIuUi+eZO/LRDZ59b69uYyeK6wf1fJ4H\r\nyPcg7OFq/VQjTStD0/uOANpK9rxWzts2DHZ8ScwPyyQYcESIui/O1EXFBjDz\r\n8ZKgc8h9Y7MNfQbh+h7qU18i0PkAeJXFVt74X9PwLensjpbiS6VyW4Q/U4y5\r\nLgcQrCFuX0WXvsWeHXhA7pIMABFlh5bJzyuRaCOtzlZzwJNEg6zDGjZZ6ruZ\r\nfypEKmUTusHtIKsjk0peL+PSpvbIXJpGGFjRzsXhSiXh5lMgCeqbHzsrHhw0\r\nrxSZPJwwnKAUmyloUyVCYTrHXlXYoHr0+vWgUyAfW0fJMBONtWKiAioxy0+z\r\n1X581IOeg6c8II2srt2RuANV4qADHaJOvpZ/kODzhjmJZGOVvFm2MIkkkeA1\r\n9oEOkACKjTESSPwG9uTkDun+ovcgFmo8XZI=\r\n=IpNv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.173_1673759136670_0.8225447600196019"},"_hasShrinkwrap":false},"0.8.1-unstable.174":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.174","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.174+3070df2","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"3070df22e8e979371fbc97bbb088a5e95e50e4dc","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.174","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-m5mp5cGvNcLvOQ4hnijbY3hXasbUnArEomvLE6ohRbWVNbDsPQG3yiHAVRMA0hlrv+I2F76zGUTHO86514PvRA==","shasum":"9179711f0e1ca663940830e87c7dc893e61aff1d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.174.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZgvBjWZxokR0soi8sIMACQVNezVrR9TPyTcifzpFHvgIhAK/UL6HPa+iuR8s9S3yne0/EzBDQAUclXNDo2ZdfUppP"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw5ONACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpghg//W5ks3eiZpS+Noe/8gfxUEMmEwFkzAimtsR3d4ooWGepakusT\r\n9WkRbHzMnld10T+RpDCT1xp9HYlHs74WO5aO4d8qCnlOWe/TuGYpsUgg6r1V\r\n6EU15sfI7LNmQJe/Og/jC2B4XqsDi/34g6B5OKTtfjTw8wLqX8xMTSWbftIP\r\nmJil5D26OxKO4KqUKHDlaEfAMs9mnnqqcSZK/utBVAGJEt7GaLgCEIxPabc1\r\niSk4513Q/kbw6T5X33x42w1hLfesw24VW0DyToNEj87VlQ+m5LWSdta/e7Gg\r\nl6xzniF6cY7vTpypNKjeCWCI5qfw2mkfbfryJHzg78sMrJGBPufhtjgUtk36\r\nEI1eiPaIO69T7NEmMenbrQOQWvhmWTkVS0cjh4t8L9l8s++ft3zH1SDATwBf\r\n3lXj+l3NsXZ7N3+Mec0cguh/vjVzWVwitkmYBzOs69TnuNLaKQEP8aH6DZjK\r\neQMItEqdEThBqMNKSEpTljl0SbXP94WoCBL1mVRCnSHZE2Ikvku9mxxkQOkv\r\npd3fl90Iy8AZa3vgpAKJoKIAIr0TA2fuckIBfUgqdIIH8daMdNrOjomdx3FU\r\nmIOMJlT2OtYSetZIYR1qilgIWT4pGc2sLkqGo0mSKhboz2YlL3nIxZ9E59LJ\r\nyuT4a+/LiLNm2iW3Oi3a4fh0k3K31DNrYRM=\r\n=Rmyr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.174_1673761677020_0.25109654092949785"},"_hasShrinkwrap":false},"0.8.1-unstable.175":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.175","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.175+e2117fe","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"e2117feeb7afddfd41b6fab1d755040520c64107","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.175","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-2x8ECf9kyhiM/5CwLEAVqX4HNnzTcmCvhUIyodRrtMgUtu5B6CUGTKiVZE910xKHo9GOASryaH0h4FN/szjmsg==","shasum":"8072eea2a9aeec86d5c286b6ff65cf8b392ef0a7","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.175.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4NBYoeX0LZrsVV/bj4HybcVPco/0GBca5omWXKGpflwIgKZhodm7+FLTV5cZMr2vKwhSJqMufAUUjdsR3cKNG1hM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw7QbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPjA//RGhji5dE2ZYiL/p4MdXvkO3IsSMznsFsEmiV9Nc4z/4CYR0s\r\nSBwbZ/lG8lEF0Y1BKSho/Xppc92RM8xbZMyKt13/8HjlJ7mG71549EnVQMkm\r\nY4lwfLMIDHqzNX6eN2jFMLEowdJR3SbXx9IvEbnGQJuXuHTa364vuDH1oSHW\r\ng3KF5DYVu11ZbwlUSIboKuLxWx6QOq2LI28lko82IREmUThWcwMPyok6uCOM\r\nNEfneXdeMgQlUfmd8FNLBRimOcNUrtlJStFtupBU+PfH3ht4/+FEQyitR0QZ\r\nsLb5DxPLa91/8+fQaKkw7BR5ugVDC9cyG1NHnNiWTbJZ3v5mNVixGBZDsLLI\r\nEIGwpw5BbrtpH8sVujuMDpA/fY3uzjqXhdTAmDnKqFAsGROvPyLt7xVOPwGH\r\nsQ9e3HR60Uue0NSeiclHuULBiCqVh34st1qyVowcvOP9wPhwmeFbWBWRYcTH\r\nudrF5hwbWSE/wf996YWAVoR6fvj6sRaECoKWW7ySGz7vH1bitGsgIic39ttu\r\nuZBEgDq4lqJ/l+TNocC9gL92YSIrnj/c4WcuLS6EBaSUfi//DBO1G8cx8BBu\r\ndD5TyW1kItaKClsBdIyDwtFXpGoKP793oCyj8LNgY27igpXnzJHSiZGV3kvn\r\n4YdUXUh0sQ6WHSR9XgyKBputTiejaW8ia5s=\r\n=6g9E\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.175_1673770011001_0.5024098259457224"},"_hasShrinkwrap":false},"0.8.1-unstable.176":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.176","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.176+f57ae17","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"f57ae177d5df83d347401dc57aa4a887806e56ea","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.176","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-smmrrY//X1lqd5QzDKnG64mz9AcXn3Oo3WTQimxzfHQJvCxMV/tz34k08fhyZtjFirGfyh0SpH4BpS08hFmtSg==","shasum":"03ca0410dc0e515b5d7d83bab34d0406edfe9b10","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.176.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCj8l8e05MzdHgKfoVu5caF3EhjSwYCYRq8qhJ2/8E28AIhAK+Mwz0bAWVS1GHzHsZtMbgVOd6gGl5VM/U++OC2XX5W"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxLHPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpz9xAAh8Xxrhoyvsf4grw2dOy9bUbG4r6VGgJ2WuTYMQidV3Q1lwAp\r\nrMb6D19cGE6oCd6PduTfHc5WUBZEsjs6wbkQOaJqzSVUGHJ85rxUFmMrfBnt\r\nPZwNu3or8K6nBii9Fgj6M8IgswEHip6DgZ2TEu+322jPyQYBZ1hK3NNKQnDx\r\nv7qinEXNShrsub2X6veABU7fMY69OQhmf3Ss9ohx8I92b5zANqQTJHUlYFhc\r\nwymjZbZLy1DBUwo8FDejGyZC9jUg3ONYNKiI5i1WeDMzFO+1r3YZ2t9WGlrF\r\n80hbPgGbGcpIfvxkOcN6V9m27jYPAoy5N/9rZ+Y4kGAgr9sE4LEYF0Wq4w23\r\n6mjxfc4mCjOEffODoM7181KGV+Uyyi4Dows1Cw2p5V8GsgzaHBCohYp152xq\r\nnUBiGVwCSNOb2Cz+EJoccp1uyAtUq3p7ztOumH++LRubFvvnseilmuwXy0RX\r\nUgj1DHgrLVFi+7BvCbN1n/iuvvfMuW+pX+LjMUP3WSKoEXJI+BAwQ3z0j9s1\r\n7ZDcEv9YTdrPuvn1G28u4YmyVEYxStfLs9AqejxEkIjlfANLlXEuPHlYiDeH\r\n6RitZ96NSu0cfkpqW12Rl12P25tYYT5GASnwLQtNMkYqb4rhtpcziH9Gf/+Q\r\nOhXuX5BRCpKqLoVYUypcsUgO8dnWBCq+zUA=\r\n=kHZH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.176_1673834959064_0.23346937323088768"},"_hasShrinkwrap":false},"0.8.1-unstable.177":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.177","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.177+4d82518","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"4d82518653ff456383561c22870856f110976aa0","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.177","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-unR4uyaeY264WOTR5e+cjtrSC+Vm2zqFyTe5VrfTtZuduTvmAc1hl1cmboc9qvQ+0k2oCHF0my8hg12mrAlurA==","shasum":"059d7547cab4f7c54970c2e13d0b7ab8b1c83d31","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.177.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDadz5YwaYW+WBh+dLeLkjqj5N8nK9/Oqyt72vB/Y8j8AiEAqMwrmKB+A26Sm6Npq4mfilWNAB44BIDZ3ZTOBb8cyKU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxNZUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoXURAAhLCrKf5AKBGCIK6o9yutkzDhgmafAc+s18ZeQiAv7dhiCqAa\r\nicMu8/RZbBUEJCFI8+wif5UvCuaLX6IrIZa17exDy1RSvf2pTTUJ98ZRWoP2\r\n+iGuLyXVKmeuFQWBIIlDRoEkVpNHRslEAcdVY32M1dHICIizcjlIe1s/EeM0\r\nn5kN8qzq9Wl+4PeDETbmKLfww5imsuH939LGYtjxKxVOkdd5nXq3d//JywUc\r\nfJhPPz2Ne9xAFRN9uMOVB/EnvtyJ49frT5rU2yTkNY295nDTVGedORxWD5iZ\r\nXyGKV8crcCUC4H6RghdQ99GAu2miM3OIwsfW0oSVwSc5ZDJP/xyFugeI5Y1T\r\nWmAkFJGF1352x5OefqKGXxUpQFWbRtEfTgnsbhY765oQRDuDJN6AKwrdnJy3\r\nNB3O2c/qaAANfs/dBdP16d/ZBZY8OaVbSZdYhGlTN5igGJXaAnI08B+MiN4b\r\nK5k9PHujqfaGngklK5YUSb/yoYwkIq8jGofQHmkrjwjUMMfWyk7WkDlXv1+J\r\nNbQ1yzvHOcOoxz2lW3t+j9OOQoOacuqaxrYwQ7oNBCDBcGY2graFQhW9FOa9\r\nGImAK/+FDcNUL4SZV0h9853IbNMwlkC6VmrxJ2vXj3z8N609QF0B4aSiZX6H\r\nFsslmEjLyz/4FKCmWplPa/dbFkKxHJyzBy0=\r\n=izO5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.177_1673844307936_0.9650195505229859"},"_hasShrinkwrap":false},"0.8.1-unstable.178":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.178","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.178+5f183ce","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"5f183ce655a40332a65480634b356ae8fa4d7a84","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.178","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-KVT17Z1FLD93S76skfUXB9uDOmVPx5Qoe0cq/NdqPG+Ek19Y0gadJHkmVl30ZEZCNoWkJaKka5JTRc4c2q2egQ==","shasum":"7f578de4ca584de1eca8dd243e3af2751e05b611","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.178.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfaLkoQGvVt4ZjlpKpV+LiH2sw8OvPXJO4h3eV7YlfJgIhAL4Mgd1MLE3t84JX0gIzkrMj+1rdsqo/9zzfUBUfHi7c"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxNn8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVow/+L3cpAa8o8actXQw3nvvN47p9qyHqhCsvlSISSPNCx8dyBpee\r\nmak1U846lXntTi4OwotQaaByRQ0kodjL3nlohhPjBiVoAhZBCAAK8EzcU/Q4\r\noApShDmAEN+cDUcS6FRHc5cjt6lPm1+4fdOSRV9mz4MkPcC0J7vlgsv/O5wF\r\nEwmC3KtEtXT+QLNAkUg0rLfZVfpnIqZmfAeZUy8i1EBtlVRyCwvW+DgLMA9e\r\n+q1m0e5MBxFNZbeI/Ubt3/xfVewG60iuANyqQLTXDEQWcOvHU4r/e5seZ8D8\r\nLMQ6Ty9vzldwhEKYzrXv1Ev8c2Yt95c37MXpcWwmR7DqrreOLEjbQ+0i9bbK\r\nOptEI8tTXNdMI0CqakClO4xgO/U97L8OqLx7wqLQSWN8PyHPHMHxoLhznB7O\r\nupn68GMBPBkLGUE4DP0fP+EXvimmM9W5ZvJI9unw28zopK4nqPg0I5WZDA65\r\nJa87jA57aB4PI4ZWo475uZXk6QpAZAQlRv5eHp8gvE3CVzhQxd1z8U6RRusz\r\nWbc9aVRCCipI27Jfdoyrxjs8vtpEHVYNeBCSDK+jkxWMUTWbShKhP99GQsJG\r\ni/+RfydxrPgbE3VWbaaWBqBnWlIKmY0+RAx3Rom0ZgClbWhsTZCz3YmYtLOc\r\nmsZIqfrmw2LLFroLUN+Iki0O2n9J+z8ef7I=\r\n=sO3W\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.178_1673845244785_0.03578972711170114"},"_hasShrinkwrap":false},"0.8.1-unstable.179":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.179","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.179+2e97af6","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"2e97af6eeab2fe0530cd12425fd6eaf72f42a012","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.179","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-3o6kWRHlhqjJhvVVJvkUb9rZowkhCVQpeSh2BKhccVYmsg4zhywSX0vixTBhWVM3W3NSwt53SxwSfTg+Z1cAzA==","shasum":"6ce533e6d70b4fb910a6b7d928f662bbfd94aec1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.179.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHPrizN4ozOPxznNyNopsDLiggQiQHPWzDA+VYjvcDOxAiEAlxin5xuPi03mA0T2DJqQodmRceTOd2KMNY1iFximzwI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyesYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrG1w/8CgTvURjYUe74PFePqvWpxastpjquQAXnqRMFF2UmbBy1FwCN\r\n2wl6+h1B6TDjvHUDuzGRNrGSJg66IexwPerwFb4phV1dCggM+44dkW5QARy5\r\nA6bZWOEiDibmb65ZC6RRIJ5BO4GuZ63Yzgx1xT63Oc0AbqCapgJoLJemHXxf\r\nc9vOD+JjF7INnddBpqxgtU9PgKTrBH+9smY4rIHf0fRtU6xixw5+liowGV4p\r\n1YxUwwUsIEbKyuXuftPvBJ+8SedW0GUyfPfcz1e6ezlKhzPDw+aIMTNd7dE2\r\nGuZEBOCeXrJG39vjxQWafXtN0iHpZ5BhkGeslbohIZ2HPmBDvJLTeoWuM+YY\r\nrbzYnmjmK7LrwnGOfGL9phFQjuBoONls2OzVUMdvnYFAy/AfCxQIhbYzf+QA\r\ngUPg99z1y3TRCwax2U18Y67ga/kIZ9CnJuHfAbUydyXDWex1Im2nyg7pnj/1\r\nnPnfZXnTPu2MckePjPuRunaE6fanMuB+q4FfptCG89ky4+U7RuCfGXbOHI2i\r\nmS6JASL2oEt420GCorPsD/waNvcjvQg7cP5hzRuPMRvwlhMXzSKOAVk3Q6eB\r\nYCpn80PHG3MOqEjMDkHMQtHAL+9+ZxGmsWqCuyLWvL5r8BA+yKgn/Smg+QsS\r\n7zy0qELTj+2mkrODhFlPnXCjWEPDMQZp0yU=\r\n=Gen0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.179_1674177303743_0.18420487969015853"},"_hasShrinkwrap":false},"0.8.1-next.179":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.179","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.179+176cd05","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"176cd05cb2412a799a55a460f7983afbef80fa36","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.179","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-vk6pKkeg1CT13Gi6m+U+h4yO0XmrJqHWiB1PRbYdLhSfgeyldZ88V/mt8J8tpkfkznHReCNiecdQY+I3/EMCFg==","shasum":"b6c50d21998df8866b895c7e1872625d38ab1fc3","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.179.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE6LiFOEwZT44xkmxuNZ6jyTL/z+lMkDDC3QSq3t5MAXAiEA0Gz87PGpEzBCMGweO4LoyGLk5cRBFSO2riO9oWSJ6aY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0aCFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGfw//WOtGaA7bbDGFoMPFX4HRUz4vk7XaCFQISVf33tCzv5ohNd1i\r\nbrOet2YV0Te7f5NaxMhZngraDxWU+oh4CuXgHK3EERwn5BPZWNBGJnUTnsTU\r\nx96t0dyzDEOBnvStzTNELuy6pAEngbEA4eCsXY4oCeYWZ6x+WZHBYsJ8vzN9\r\nd3N0FbVwH4tWyOlXLNM23cTm6DN4fI43HIfGMZennf6JbVU/N5RKOP4TOyOs\r\n0rikSx8G99T7fBJhgriQyjMSJNdMlO5lxfO25BwMuE2gdKx8oKy0QbDVhCis\r\neXOUTSskfcodAlILv+7zJrUepMWeHx2jQpQwsGD7OOtYLga5EsocifsqLnJP\r\nu7ikNQ3gYzLJ83GA8SshA6GyS0fhgLIuDhNakky0jjvmKNpEQ5b1cjMt+AIf\r\njY/57EXamgEEHzoB3uy3eC9ai7B165MkO69I6IjLj6HHC5B7AY6i8L1GudZz\r\n2TdnyZnglNh65hCAqskikPl3bJe3gsw3oZ9Q3TvI+NfSTD9ECQ73zcKCW29J\r\n1Fo+sbxuA4Q79QakkABw7/5XTbh4hauNRqmWUIh1xaGXdDGo6RJH2zWPkulG\r\nqMedZFi7o4DkN5fz5AP5LM/uOtrGWV/KzcQxFR1/01sKjTMe5PZKfRmgp8+B\r\nI7LAsqSIt1zXcjK5zhdR2AXtuIDaByNNJPs=\r\n=1jdv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.179_1674682500864_0.7892974068302461"},"_hasShrinkwrap":false},"0.8.1-next.190":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.190","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.190+35cba86","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"35cba864cc44acdaa17e4d81f6215282bf80e9ca","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.190","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-MHALQjEs+iQoXzMITTK41r5BWgjD+yrVoCjrpdnMqvZxoen9a/DCm2MGi6ILdsJm5/xwKNejlsH5IvoAFchz4g==","shasum":"2621b6f12c8d582f0148d0774bc8cca5b5347586","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.190.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF6ztoGJ08XeQjHmlDP7JySoSQKRXf1Rfd8zpy/Pq7E0AiEAtnlkfcI3ZVgZuRBDh/uaiD+a4NooPivzBkEzejM8hkM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7f+FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqfBAAlB3YCZkQpCp5uL6ZCqV4r8Ix3PYyJIi1oGU/N2uhSPIGv5pl\r\nN/xUuidU2zdTbquddZCi1d6Fep6/KbfwqhSoNrrRRG73dlS5irfrH/kBnVhl\r\n7Ww6mJakWWtqk3WnpUtBqMKxckgE0rF/QiiPTPw9hEZI3xYr7gjZLSrFwCzq\r\nkbZQwqaUSrYcGzfAVnPjhbO80JOd3yuQqrRb3iOnxcWmWEY9Cdo0ZvVttewN\r\nyQYxB6nDFC3VmZSY6piaWjTJkzjmIY7nyMGC3E+NmJQB5l8VrENMXAkYmURq\r\nF8cumnBdQHHaAmGRFuJ67zMDmfJh8jdQA89x+Tve7k9wnMKJQt8ykIiOHA7X\r\nZ/jY5qgTwO89N18TXKE9O1br5gyI/DirhfrcY2kBxoriZkr4XyWnmraDAary\r\nNWuLafMES8sF1nkmv8pkddXGScH2+qjNrRrMr+um2nierAsNHyX2+aGtxq4k\r\nW79KSjyjZGtHkMzOIF+xXCG2Fxm6MHPm6F5u7Lv8ef0L8Q97o7qS2m1kSYFA\r\n49X8imA9a34CgX3qbLpWpBh7JkaddNc7UPz+nq5UCaNw7u1+oeCXXf1TFnAd\r\nm8QY6t46Hp/xdV7F7FjucDfqXdEUbCJkHbPk6YD5NF/Kk9cs/4y8/a/AcG9O\r\n17HCQelLhwgJ+7SNGxrKsP9BfWKUOfMtZ7c=\r\n=JYzf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.190_1676541828747_0.7346420917933807"},"_hasShrinkwrap":false},"0.8.1-next.192":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.192","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.192+7033a2e","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"7033a2e5a80935335e5ad7989f1c03850270a986","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.192","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-tqU9e5mHuvN8HZwIFwpkK6zj6dBSJ/sITrx1pZJUi4/sCuITigRrlMLntnt1Xz6UYNlfuiVwbYIgBwnbg5haVg==","shasum":"b71c8fec6b7e3d8ab3d693c48552bfb692ba434b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.192.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4OzKz/s42jQR+BP2NN+gp/45arfh2aQKIdzezK39PAgIgIW3y8R9rpXjjlVvQvEHfbZ6Ln7tdkhNTta0Ub+xQ0gc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj76S9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoe+Q//ZYLBOG4OD7AAMFcdNt0r6HmevgcUd3jHhlO8r4xmmz2PqXxE\r\nz/3PziZsvJ5xSpshirEVYkbSrXXCerx01JtcWdF9OZ7BGKeZ23vOJy8q5tJs\r\nbYexblMEie3np4XXr0BXmf988hMJkROwfri7IOiJqSGav0DEyWL5C4sSAQfj\r\nya1tz9iN4GtaQEhOB7+rgrDviTYM7/cgcNoAEW9O+8ZXZoUZw0Hp4aa60dHi\r\nCTEejoBg97027Bgo8Xr5H/aIH2yEwhMGiJWubZcNbvd55KwxbDKerlc/owXV\r\nW0hZNtBot60yqBU2rd0+nPbR9nlt/gUssOiMzHt13ZrQ7gOpOaXOrISHzf4/\r\nJr2rB11Y5SwlV4Q7umx5xIHTdIUvnv+Myi27QnWXwlKWEvsVlkA22Bcd6aib\r\nZ5agLuvN0OeS0uqhyEnd/BtZR13jsLHqCpNfO1t3jH3xhC4Uzja26b35PQnP\r\n0y3FZ3Bk+ob0LttPbuOyVjjw83xhTEuwGwNzntsRVFm4BoBQlk6EcFsqQRAh\r\nTr4WSrneyCtvjD8hYaoO/Pym+NZkPzDQhOt34a4FAa2mpJ+fGkwbvE4KWgVV\r\nnTuwo2AuwMqkx/pBJtT2qF+DDmmPp0TPxDjIyYOr2oXpslwA4TzqB4kKnvpP\r\nlgYFG/buhtznDDwwnrp34b1fmBFrJXOk5qI=\r\n=8DYe\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.192_1676649661170_0.6541141898462308"},"_hasShrinkwrap":false},"0.8.1-next.194":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.194","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.194+1db71de","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"1db71de2a69c72a14bf393d8093e559554f2ab34","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.194","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-SmzQLHS8z4eLOWU0MlHRynSgz+tPv6/lRGJWBF8UaRzbEpad6ebp7EB7hB2MJy5099gTlYf5rZkVn2TElDZ5qA==","shasum":"6f066f72a8ded183d70c63f38bf8bf4036dc2c21","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.194.tgz","fileCount":54,"unpackedSize":100902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvWWLwZ2nEbE1RyEhgeVZa5Kcyi6iRB9tMt5DJYnRnFwIgXA7PHqj1CprFCiNEUEXGIEHqMdRulN9vvU6bg0h6y5g="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7/npACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqUew//YdE0CRk+gN3RUT9YBtO+hQ3h9UXKQ6nrgjxij/ZW4EkufcmN\r\nCfxhIvgzGOZZqpPj6GK2jtZIFzxJ60bdXPC/8yeIYZjlX2PBePxxhxd616GS\r\nUYs0Q/v3ahHBfXyVnKwkkWrZ/H4s3fH5T+XKqf9rAxIU/zI9DUhYQz1nO/zi\r\ny5WNybg4h3B/n+JONT1z5oVVf2CARnEfVd/Jq5Pfgywsu3e/618EVAS493HM\r\nLVO5uJUlGG62yUcnp7tTXduM3KhZPv+vLRT9w6gB3/BQvaPbu/8+kwCvE+xN\r\nFLiQc8qRSlkWncwUJdduIEGLDABfl0OkMjMwIZQA0BvkKs760P3PUZ13GNYn\r\noVX/QiTD/VoFKlFzTtX8NGBL5aHBVktqs0AvtT63RqD2Ha0Yy7B5y/3bcgzC\r\nhDYbUgrslk+7FSF7n6i5BNIDdcTezjU6+J4dxvzlMLrGwrnMRrn79INjnz/v\r\nKU1XWCwmec9V65XFkp+byDZUbhiyfO9gKXlLkX3tQDkft7y0mnuTBh6mnHNR\r\nI5HwFk2GqWRLuzC0HGNKXMX8i43G5Dsquvxkf8b/PxYyUI2JTDzoYRI4Xhu8\r\n7cYIhGPIXk6ETmVbEDBPoumW3Ik5KJ6e9avmcH6wfAxtSXJepllBlKggMkHB\r\nmPt5/QYTaLhqQWcvgyXRPGabikDo7t38nY8=\r\n=Kui/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.194_1676671465282_0.20040471179607033"},"_hasShrinkwrap":false},"0.8.1-unstable.195":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.195","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.195+926e358","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"926e358ef3eadf19fc3c8f7c9940fe6322c5ff85","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.195","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-QFCoR5FOso3iOginU9kz7JJ6Y6Svn6shvKguuE+w2cioU4HxJaCnEAHNB7JkKIC64jX6tGJiGBbuOMTeH7F+9w==","shasum":"4fb05ff2c027ff8fefd539a3ca63ac7df7064d63","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.195.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhsC9l5HgCYg8JOSA9pcQQ778xpVwTtvw7Z21o+T91lAiBhC1arzcuxvZPtaNvkGkM1jCh7VUSFf3JJjtbU0k2Bqw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8B7uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmotIhAAnU2ryg6CL8ZaRppth/7uJBdLQ58Krol4PBUJV7QVhJmQwrKk\r\ntDeU+JzwiKADwOIsKineRIhA5hhmZkZgB2+vlvMDDIXHL9ifMb7Gy4yFa1XV\r\nkBjLJ2c5bLy1xz5blPJjOrXFBp6M86YFIBqprkAHX5KYPel4rjYlaxoboRib\r\nX9uXHULUnP7NHz2L9lPZS7RvP/C3FcWArcJ04KBE2ib3CPNdgkEben/DtPlX\r\nFIK6cH00th8jnB5X6z8QI6ORtpfA86DGXVSqZyRbta/wlWZrhweSFDKsnWuF\r\n2Romb2PpaZrfy+mEQ/nyGPDlJQ0MX18Owd+0gOo8km0dJ59+PpgE2jZqw19L\r\n4Q3JlBuXoNAwadwkPqMjzeuDHwp4oJmJpmFjrA6UFVc9ZDv3v7agvSr5jnCf\r\nkq92SR1lcltF4uJXQiIhaO4meDFlF2yNITEq0K96d35hLj0EW+ht9iawlZfa\r\ny5dL9nlOozp3uUvFo5ARpayadL9s7krz3/1mWHgFG9nDiibdf1bddLpxyuX2\r\n9gzeWOQ7n0VrMaSP6+3GM89mmZpZ6qDquZyRHaBlVNCy0jOd46/JvjnxnWm7\r\nff5ryLA//rh5FI4aYoOlXx+4NVC+htJrZZciKYSj7hFu3VFDHImFfA47c/yU\r\nHXPX+TR51fkmVcjuKwzGcxdAicEc53W6Wd0=\r\n=+lSQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.195_1676680942326_0.6600614507730009"},"_hasShrinkwrap":false},"0.8.1-unstable.198":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.198","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.198+cd7ce41","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"cd7ce41993a9558adccb4f960643151bd7523c4f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.198","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-UdiQCD3dT/llQkNcfcplv+WgxEb+OfjSumhF/RWQ4kUNWCeUiIfQs4+0CKaDCBuZK7usg77yAP0uqe2eYfcGxQ==","shasum":"97111054beea080ef4afab1addfdb77226f67d5b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.198.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfHMxUP+2mjlFl9Lm6mdNEdNHI8dGgx02FZ8LWCp+PxAiEAxiLBxg5CIetUVZFb8cGnrZN9InRuXF/bC1U5oz46Ugk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8D9vACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqzqg//TYsteE4XFgnq21Sb3A1B/tIm2WUxUWPr2hTB2u+eIrtyLXiB\r\npD8qE+iF6R1EI5bpRC235FQRlauGPhlkhwQYE7Vuu4xTxxc3LGD/XgYl8/ez\r\nYJaFfKOI5BdbOwapBpOKIMAzXTPfc792vbSyZexx4M5/OJZB3CsLKd2as63p\r\nF1CEv49NMFSJIBHTPmIZSUnZ1OrOd96aXomxjerDegLmbNzmZShFge6MKqXN\r\nkL5N2xDOQExvd4g9ybyhK3wmLw8fyQZxZ87gKMPnwnXAQGQuThTDTtErWNL+\r\nLxmBSkRlGXW0aPLRWM+0BOaQ9DLs9wxH0NXtiWDOLCxAV7MTn2D/MMOXEV7G\r\n0jSoXN0O3BWJfTKufMFP8Y304T6DI+qUyYBcHtVjk7d/pzHtKMze7/M396vY\r\nfJvFS+NL5FDFv7LElBfTVLIAEh2Fr9Nev8CLFzdOxTTBf29v6erV8ptaEvU/\r\nbu8jgQ1Bw3BlccN/25Dm23njhpb436F62L6L95WohHNtFMHdwf2oGYdexLFH\r\nTkws24ilCwfse3gCKo68vbhzMNX3uDdekiPZi37nJ0zFZHzGDsCykigGkkq2\r\nq24LvH8O3bnw9svx0faQndqaed05yZ9vvTSzpgdaUkbBOJxtKnfoWW4sZ13P\r\nftwpWsBH0iZStZ4rb48BadSprJKfGMChhmw=\r\n=lhFO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.198_1676689263456_0.8479734044497751"},"_hasShrinkwrap":false},"0.8.1-unstable.200":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.200","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.200+559efe2","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"559efe254d9b5780b8cd10ca8e70875c3c835ca0","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.200","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-mvABQd+AX0kkmuLSYNvC4Mvjw+ts6qz07S9tb+vUgcqhAceRNd2NYATN83oKxPdFsjEkBHfi8HcWD2NlPR0yTA==","shasum":"e3b45571e789c656af37ccee58ec0e54f198453f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.200.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCh1dpKBpGob3MLcJnykLjEVWfpxsKx6vGE1Loo+UTgTgIhAPQgYAcwYNc076Dxs8lJ62+QzhY8CLjN39Wrjhj5dy6A"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8M+wACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrwtw/+J6FvPHwO9LaLD6I/FGYQ53sVOM7TlcEGiYfKAwL9QPuqGwO5\r\nhsVLfseJrqvtiAzhiDME+BW5Kw+lhJJAhZEsOknwcxt2gvUQzHddNslO4BZX\r\nFW2fSTsa+sgCFJ0YMewf+XK9iGgcb63XH9GcfYZGQOyOwRrjH0Z9LS2YtNQk\r\nuvmlbQpSSjhy/9fDPqGOpKxQiWj9O8Ls9I0r6GKPmeek310HhHulnRuz8jdf\r\nC9gqLJdt7XM1GuVBV2NMjcF2MHtGb4MIATi7iq1bmfvHmBtMC7ZaWSlKJ+Ir\r\nNcBB17hFL5o7lPa9WIFYUPEf31Oyn0POG4DDtUWeiwcI+Qeif35RhY0pnhtd\r\nrgNLMEe6gykWOyd3rs3L8hvnS61/T+cr2Rr3hV0mlhSOV7uVXDB61vL+Nw+0\r\nOxhmD/Qc9fTBtAxYPspJIhVUodijwytgSscdAwrXXA9jtZSuFyKmP6OAcuDQ\r\nEeBZ+viyIqfxvGxDEPLz8nWOUfj5w79D+QV5s/Ny19bB5HECKUZO3mnMkiVb\r\nssyJsXPycMaFTLxf2MW3TiYrLjxWfwn4hXLEYBtlVN+Ks3Xn5GTYXzjzvsoc\r\nuDaqy7TO0qKibceBmY2ohT+ljSu4XgAJHQsJ0174LTl2Eqxl1lnLCQBNdPai\r\nAYjVcewstJTdLx1Lb0JOVU2L9yoe9ipzBFg=\r\n=u7TV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.200_1676726192377_0.17227736612831168"},"_hasShrinkwrap":false},"0.8.1-unstable.201":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.201","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.201+f04345b","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"f04345b97ff9a78a3dff096599f0b675b3239a3e","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.201","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-phN7ezQlDjIJhuOnRqTi6h2qta5KTW8Upc9sfp8Fier2aySJEJcx2NPghOtpEvqL0HFoqx9uruNqnE6uVd3pNA==","shasum":"0b186c0e966305012bc14ce188e5e63643473f6b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.201.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAvxD6Lm5XfY/Nzrnmw2Os/fYD9CdXIQ2z8+Rywqw1zRAiEAtXHAq22pkHFImlkfB8PVxO/eCNJk21nGfPHVejt6wUE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8NsQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoq1Q//RP7lQOqLISCvv7zdAOYfkqv1BtSTvbM4HOuv766mE8twqinK\r\nUs1ncw8E4bigogJWTyxfjD5Up2xeZmznE8ymGRFyPaxwCwHj1Mo7xMlA4I7e\r\nYDxS67isGhA4j5SOhxrd+S4BDIludmooHf7bGqykZyfijXHFfi/pddYCiDKn\r\neiVGOOtP5kYI5NKXzlHmkSkseCFY8lhQq3f7wF14q9Zs+fq24uNropDIssmU\r\n9HYPl2i7Yb5Ay+BMSE0r3Iwu4lh8ageF07ZqpB95K5fRE5gxlOnNBCCr9e7Z\r\n54Bxuqz7IhG7oqa9VEQf3UDodUiGFS4osunfIVapbKwq5K8K2WpozTMyGQ9J\r\nMXt2q8NyBgbxKo9DLriEjrE5yFIoF4knW5kPKsyz+2NLXUxAE1TJ9V83yd3v\r\nYzPRz6fWaKX9wLXsWFcdcDJQptDBXKSatwa6mgW3qiN/5mqgLr0mIl4t//eO\r\nT13jhjgttii6t7ItmOg25O4AYn2i4mzh1UYhrZPJOWAAupGBXfdAD8Bhp6aW\r\nyQAvS0Z3a1bF1X4Q0Yl41Uzl+zzeshGlBHuhenjcTV7ScXLUxiFU817dvf+4\r\ntVkSJ9P6/YLVBMB27Joe9XLrlXxqIV01GkOBukd5mrvcB5Qj5vB4UFpWMHEX\r\nf0up5RHq7BFDt3zcLLscnnTWEY7NXiG9qW8=\r\n=al50\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.201_1676729104349_0.17763549302264137"},"_hasShrinkwrap":false},"0.8.1-unstable.203":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.203","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.203+129b663","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"129b66383752e05ab3067e459bff591a07aac690","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.203","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-xEI4kyE+Ago9Q9ux7ZwW5gokxMTP3xbrU7XVreSOC8a1xaHJ8qe4uNNutZV+9WuKqTyi0Ze9vHUCQgQxQNlHWQ==","shasum":"cfb5eb9893d89a16aa66566e98c1673e550388cc","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.203.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDogLGT8cfy6lLSNH7z6Gpkswx+0mzKITaomT6Rys724wIgU90g7Q5WrBp/RKXezmbJ138CCXaigDyhuuy1Qx4O0YE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8VY9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnfhAAhvkqOQHmrWtuaxtq8UYebUYMEmZx7GvJWt/90yd1H9RLOiVO\r\nx5YkglGV4KhTcbAyB2hUNndraTpoqbuNQ6RPQ75YoDwNaoUSvVDNbEGg/5BC\r\nJ6zpZqvugyVO6Ldrj77E4YO2aP9h5m8fyHiWAg/2XTtB26bOV8l++duioEi2\r\n4xpsO7gkgIlovPmXCllLXEV9peBB2LaNPrf8UcSE+CtBKU6RhmFatdG0KINa\r\nD8gwDkwSlhf0bOIauYGmL8dHJF7e910C8NJ+lMP2tjtPRl3lKfreZ7qfhCP6\r\n4F+YfuXm0aGjWrw+EnnY6UTR2bM9qmlyYjXVwJNwljJbmcHHnY2v1V3xK95W\r\n0n4z5AXsoOL2q809w26XMdue+UeCe2zj0Z0KvWQ27kOhVjn8o62bOgjBcge6\r\nuRFl0n1jiZhT3ykDtqJoZ6rhfP2MZl3Za0NRXBgM/SmUjt3qwFh5ag1CftXZ\r\nTrLaelwqEXh6ffq0Ibh5VqKdhfV7GnFvs/7ei2rsPPpgicl2Y+1MrHIP3UAF\r\nOBMYzlzViwNmFpU+M5PJMRjC3tItld/yaoNY4olUyd3nwDFFR+NosTmu37b9\r\ntvSMI3WeJEpPHhwZ/7kqJXbA0paIThJ24t32vuDfiesFLh44dvULmmEpM6sM\r\n9Ougsc6bV2PprbKoh27kWJLjQGRLJ48OneQ=\r\n=1bbS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.203_1676760636822_0.5877010090912032"},"_hasShrinkwrap":false},"0.8.1-unstable.206":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.206","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.206+61712f4","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"61712f427df2d8f61f72d1e1887f1fed095f56e1","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.206","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-sTHk9TvWgoJzqJPeeILfsQLZzSqsRvEMBtcQXxqmSUW2K7/nwBKJQTLYr3eGZFZSlpJGhDIIEfAEsC7UqQdvng==","shasum":"04fde173700d7a5330332047faacdfb80c3fdf16","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.206.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRo9pFf2qBc9dpCr+FLIhAKFSAlKxTWOURjKxZoyhT1AiEAz/4vKNJlkd0BjNdv1fGvZ8z/9A6s6TiYswVntpK8ubc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9CK2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrN7A//Yts4ZvMvEu+zxMaVYLIi/nBsATNq3l+vHKAbMNrsyKC8HqMO\r\noBCJUARohz2BuzyWJ3VW9zQUjkX7VUYFPH1iItT8h9CTYukLY/GimK8lEaz3\r\noU3orEcvg0ycJNVzvJOOl9vOiJt9amvMk2+Slhh2ioHTu1V86MgR2YDv+rgv\r\n6ccqrk/fzZAOetr8fTqmJBoAqQTKa8qskl+SyXafBB2KmY77RsYl0rXkvMIR\r\nopUhi1JAf7xSGjO4W/lfgztlB+5ZCoCJEcKKlUkVK8SxFGN7huMZ5/smrbMu\r\natl1O6nm81nMwJd/cSPAjSbbr40/IlmJXxjyUlsolscidm/puJrQZZhdf79X\r\n9JpjWaHY/d5yau8JVfril2fv/LpPCXwt4WACPHZOyr3ET4OxNj4fIwQG12DH\r\nMNOmwUcnz+89TTYn4gnEjPVJMlxAuTlgYymhIZ8oh/zD+sU2zGRTu+zsxXLp\r\nWJkuvKaZqrtuPT9Kdq1yH7XZpA/Zn48RiL0pzYFVoY2Cq4wq4yq9FKOl3Thi\r\nrRm/J0VtFLvmhqqB9gMEGGXctZYROjxTdMgLs6bRFFjXMnH2KOfl3PLVPLA/\r\nrA62ad3gZqS4qeY6jhamlY87Xd1WbOYjEyvVjk1pO+62JQhSxfMiNnAne31D\r\nV5E5vlMA2lyN7KwESVId48a8R0nYuPkWjZA=\r\n=xDU7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.206_1676944054759_0.0391084164586708"},"_hasShrinkwrap":false},"0.8.1-unstable.207":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.207","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.207+8b4f22e","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"8b4f22ec199a2b9fcb297c705edfa4e3dd1be7a8","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.207","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-r3ACbVVujObh/qGOXZka3iGyGcMRATHFTgiV8FqdC7u/MPzdYkazNrzdOya21vVBjs5g25UM77Sz3TMz5vRtxA==","shasum":"b160d7d190525dc315781253aa1682faec7aa1f7","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.207.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFKblQARV8fGPmgMYlONpQxhfQzrrWVp73F4lWPM76XHAiEAzFPanpArPRiw2pz0GxQf6XE+lxVcRDDbCnM+7OUlxas="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9Cd4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmppew/+IG2leBIX8vkJL2XHO1uNOFjBGENUBhchn4JVrIY8sM8wr+p9\r\nNb9Cfr+g9aAPZiJ82TIpsBo3/SpxoVqFDbGwUvwyvgdftLFR/Oq9jOea2o3N\r\nlvJg2Y4syJQT4YSTQSGr6hjbkav9dkFksy0Ad+AvHi3FvBYbCFyqzwheWYpW\r\njD7ymhRuvuyysJBCSGzk67jTF7SA8Hp1a1ujkQBP3w+rvbt+0hM+aazySvfL\r\nBO3H9NcaEly+ubaIFouHioYoi8YL9vlHq7NW1owPYLBRP+EcZqTXTvGsOLnB\r\ngeY1TWgPj8fvdRUNeeqYhOH7ePblJ40i/3wj3yFJuZhGYFv16zCphUsZz8TH\r\nmHs19ax7j2AjHXpdNuHoNX6zp+UsXHFKztjB/FFKtSCPEdih7EBHEcixzW4l\r\nkZnKfj8V2lDCjViJoR5r8mBRE0lQjYBM4ZtjOMpmkKGMrUWx/gfJRiy15YK/\r\n6HSoxrlkp2rtIzUnrPj/x7GdBhrAKTGwZfX5c3BwR3M8PDJBdW4RahSP8m3+\r\nh63jdzk+khNJ7TX8f0lLdNu0QVoQ8L1vxUehj5WQjEZScmhU3I5oWT0PfS0M\r\n0N+CdS/hdjoxFgMbNxcL6xQXqVLAqPie0Y5hYa9RRb5f/dQY7iLYyHpicRXx\r\n3irLsyitnLJxWdir4tEgF59vFs1nyFa5dQw=\r\n=TKtT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.207_1676945271923_0.04036562417000278"},"_hasShrinkwrap":false},"0.8.1-unstable.208":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.208","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.208+2beea04","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"2beea04a6604d82b12ecbc11e68a9f41775c22ed","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.208","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-oHeLPR5+Huo85/YivzTMHrV6DH4H2AcVIF0g2z7MJ9SRP0gdE31dDWKAY3k79NXTfE4Muxr93+xKYoE6IE664Q==","shasum":"09d89aaf5b761c605bdca7182364113d1eb21774","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.208.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDHnq/RtN2lgWXbyDtKh+3d3qmhKjL9ccgKGevTn8FaRAiEAsM9+BRyA0eJ7CLdt9EUSaRvlLPe64DTM9JPq+OT2f1k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9YtvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLjw/+KhRL5U8WM7mvhAICAgRej6bgX4qsligQcZgcpP6LgN9L2zQy\r\nKn0+vdXwjUMMmWyViKDR7PqoWt4LFwtbLZBb9L5ys3L3bgA/2IwEJZJxIENE\r\nGzRVQ9C509YA8cRIMTLqwQVsbczWUPqxnN/t3fp0ZA9vl5Oio2sR5Cid457g\r\nVHA9Xhi7yV3Ep6EJv1I2z+jzzG3wkx2oEf4qUk7qPNwUDZegtDyMG6O3/Ru4\r\nPXBHQ1/AxR5ZbF4UFJKY+KcU9Z2L3Q1DwMXntBnKle36YcHtijNHuGKRTJqS\r\nnHkoHeq+gecMsYbrxhR2GyHLQhwRPaGNLLphuMSNsKrKNV86CtwFLNZbEBW0\r\nAe2A9yHwEcpp3nmK6+8zUC+Cd4E/19/Rx35fNNh1JCHIREZ6Gig5ooxmTLxj\r\nV+bqGZPVsN+y6YO7fIbX9ec/QLSpzWLTO3YB4k2EZ+JPHc5PwEQx1trcDnaR\r\n2oCAGMZSyH+w5rNbnbycKZ6c8191wWOanajPoQbArRcvn1HG31WAIhEBKlqh\r\nEr3idq4xGjQEcA9kX8It9WiP7weomnNaR32lSCKZpDNE4LJLpPzgqq7CwKm4\r\ny097l4nTHSbD29EplGIb/hV3FJywIH36LKS7662Y+C0DkilVMTv77fw0jNGr\r\nJPa1H1+HkX3AR6MpUFqgdon3yEi+FADqGC8=\r\n=129B\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.208_1677036399170_0.6054704449333899"},"_hasShrinkwrap":false},"0.8.1-unstable.209":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.209","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.209+b9b4c2a","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"b9b4c2a81e92d8d9fff64cd652125f521d8d5cee","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.209","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-ZMfdrrAi1xf02MDeZaKlIhvx8scz9e2LDh0G9ItdC1Od7l6ePp/FVBW/mrYUJJ/Om5TXvbbqRrv3nMd4960F1g==","shasum":"a8773b53aa828253b58a0618da5c6ae1911ac794","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.209.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCskbFC3N9n/nc9WvihmRfYvCo7gx+6DO/c4a7kpzZgbgIgH+NES6z6OFRQUAZT0c0gpmTrJ4GnZa2mLMM2G+dK4yk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9m8hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0PxAAndqm+lEBY8gHCKKDsaIhf597hagaE2e8uc4sBbi4VDcYZbtt\r\nCzqplU+dmxzN/p7XC22nUSzFMTSraFEWXCnLi6EWu+z7FZSA3VSflkijYkrV\r\n2XGmHQEQSuJOfC9SFlZ/AVJUPb79SDq58v4P3diSZXMrtCGbJkN0xCuoLlN0\r\nEJEigseOHq2NU+LDiopORwji5VaLryz8QX7gw5vlqlrTbUGarGKM/4K4TAeC\r\n/eh1BhDXewQ+h4hPuY4t20C6yHoF05+poWCjZ/Qh2m4ARnzgq0V4Iok4GTGc\r\n7ZaaOQ6svazfklIdG3VeW8lsZv3i3o6P35JdhDlqcNaCr4yfliP1a1+7HOZ7\r\nMoxWTErJOyQbdV7eVUEYXyHpO9zFzKR4Jz6oXpzMjCcUkjfo4pl8pKaWJNKk\r\n0+VauYUbhP7u1UG9RKUqRiGPbRFmig9h94SLrft8WN7NxoSqr4VAW5KdPWOH\r\n0SYYYAXGcBYyE6UBEd6P1dUS+mwzVTJ9QNWZs2yQLCM0yHbD5udOiXJOCc1X\r\n2MDKeucGXlWUk03EF/+sIGSns+Tn8kXN4f1JhuGMgXifIwJ8JSzSyV3ClUlZ\r\nuQDiissRFIXTUMjjfvvhI14AlhGYzzrC5nufuI4W5HWYZnyZz/rK6KGjtBGy\r\nALaNo9mNqPMw/9Vc+YZn90fCDUD4rZlyV+4=\r\n=tHfK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.209_1677094689338_0.9339706660202858"},"_hasShrinkwrap":false},"0.8.1-unstable.210":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.210","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.210+482d119","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"482d1191078fd53a9bd5f8413a2bab93cd8ae60b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.210","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-MZ2axwaHUnswnsZRhMHLW4yY/EA/ROoAMVFbcAC6TNVyz1V+HOjqY0z/cxQxUgz7Jq3qpi7dscRqXNE1mM3X8w==","shasum":"cfbd954814364845c5774d96a0bef1c00def5907","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.210.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH8VB3sASx1Em7zqUJ9iHhpimKbplVzgBEWE6bwresdUAiAtRfYIlL63ISyYwTn54RMQjd3vowKVXC7MYYtdCtGBpg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9qhjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnYg//S689hpfRQd0bDET2XLLP0c3abDmPhbsJdTFE5EQwcJrjC89S\r\nud9a+2BVHHEpUxQzjkiiFe1fbRpE/zcWsstGRqZZNshWQ5qnjxeMiaGe0Hq6\r\ngW+y3mnoPtogTrYpxGQ1MDZRrt0iHjAWIrsD4dbGjuZqr2EmhWDj5oQWZvoJ\r\na6rY6SkOwlzJIMRGIvaOQvX1EBE/PVdMUbHYWOX2LKDSOAN2BCkIZPh4Gs2M\r\n0vK7ervny5SCyYKhBtExFMb7CQfC7uBavdcfdVrXl36I5vBg1foyhhdSv0rh\r\nHyd+BsDj9/qdH3MNFTCAx+VpYTWBfoTVEtA5HQyjWi5Xm/+zbnysYQ+KfsZS\r\njvALdFcKF9ENVYY055Q5qwb4QYoYZyVgRayOMdC2jAR2R/FMVzugPekoRMfi\r\nwA1eAUCVnZgkNZZrGe3CIqLOO8WczVRiq6k2FBIsf6GvRDGVMDpYekIXqyIZ\r\nzX3pv251ehZEYgVZ/uGg1b8ChUWuVpChQoOwHXQTkGc6sKqc1jB9meBzR+Ro\r\nl9z9lnq7qotlVmi8/tXiFOYmG8iIE9h8yhuSRDuT2yKYA1BLeKe5xAJgKZev\r\nuMrJDHw5Xob/G2t0MIMtBqbmQXoGtPJpoq9DA7JCa7oeZKxYRPSr9mDufr/i\r\nhGEVvTRydPwlmUBn/0KGR49hTH5AcLqrFHE=\r\n=KBIP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.210_1677109347200_0.6310168008054711"},"_hasShrinkwrap":false},"0.8.1-unstable.211":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.211","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.211+fd0012a","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"fd0012a9ab01e5eade331e849f0de1d0047643ec","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.211","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-6QlVIDSDV/enko5xov90eO0HtxAsF2+a5lhAuFVKpogQcmI2eF7OzRgbJETYBfTsrtudk1LRLyeKOkAy1Dkncw==","shasum":"cd6f2e61653a5c87bd51f96cead312ecec386146","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.211.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICT9am/KMl30qiWFiAe0aQNSc/YGCepjisHVeuJ5amHjAiAb+rLrzx4Fuv/tRsPOCnTA98Tb8pjC+jWeU/xkKZjKxQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9rAsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp74xAAoNA/aSS9Kjm/3CzTHcKiOI6nRYIjNprY5q0sUG8SInVTlU7c\r\nFM+GtvxWoBn7fyjnrJXRLGWDt/ydh4JGPKqaOfbflN9IoDWlS8/ekYhk7flJ\r\nkSnPbIuCb7AoV9o7lZJr6AxqHFfugZutaYrh3WZx015ZRULyVUUZDU3c4RR0\r\nnnshkHAYCF+8w1SnWsPjstWO35F0VU5xbWmdRXgJqmgDCXKU7Yp1g5sENuHl\r\nuyd7Ka4j89Y49O/ftYoziZG9HnYvi95z2PQ9xSMN/5obgS5W6gK3yiCFW8H+\r\nuyXP+dIBLU4FV0kZxO0n6N6EqOnYGTZnj4lCxEBVg1/ObwBeBb8V/F0iBb3f\r\n+I/wXTMzZJjaexffM6GfsEQpxRBJZdOjOr9+R+TGpcSwKoCmuBmN77aTckOv\r\n0j043IdwIaQ0gmaRcAAUEd0sZ2bkMHKieswDxhyRTJkp1fo2cxAjtMy5NJaH\r\nVI69yU96xUrs3xH+5PcA21N+2YqlysgtyNJKPzPctqQnWeUgxrvFlUpLgZmj\r\nKak3ZMJyn6AGLVRSzmQMpXyodFyzTIGTkk0KEpug0z6a5TrkjtM+FYh4gqV3\r\nTIqFNc5dBtzkRwwNX0O/PkindDxfIfGx7L0k8zoeLpS9K7MMuu1uhRWdoCvy\r\nkEGA+OAI1/907mhpLgCmS2SwOMCrX5UuQpM=\r\n=VJ2J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.211_1677111340237_0.8743346311695421"},"_hasShrinkwrap":false},"0.8.1-unstable.212":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.212","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.212+acb75ff","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"acb75ffdad63691167cbdaa2385b8d1e302f757b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.212","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-028CTh9zU2chhTQf/VsiG1khksiINXn8aIZ3n60vlh+x3UityZoCWb5NXXijuE37CYIgZiHU+vCS1FVEx/bt0Q==","shasum":"55760301b3749a9b76c56a71f9d6226bc36eb50d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.212.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVnmgGezSvosONFuvcZGEs/uStMw8sYXU3cP4GDRrx5QIgPUOBWXo4sM4hODCwBxiwGJCnS2+3ykmC6k74dgz6P58="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9sUTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0IBAAoLNMl14J2UbcO4iVKQlvHp7+okw+9hp4QR4L7+bYwgvOKyuJ\r\n4n3DfZfhpKn6CP8LqCA6N/Verik1SLnFxGjwV/icRKMale0UDpQDBEqxQi/n\r\nQg76QdPP0nB8/dqp7Rj9syGquQtBMRMxjuipYzStVhVQQTWAn5fln5mf6GXL\r\n88AG8OOn0zd4SL/Gj5buLysEk+NV9vyj1n1Y/dUqwlPnetnpTggy47cltB0x\r\nY6jHTTFVXcIhsCepYE+N6wSe8urGXrzhsiN4GgJDkcL2HD7oJ/OnbaIxrso9\r\naG9V2udyItSI1B0pGlDYEyiV5ceobMaZYTqdNNUT+XyJwitM+W/GLAtrlnXR\r\n8F8IS4I+J5JSQ0Y9UINHk9LEkq1SybJvMUtn12DfSQDyrkjnEcDW+exkB4yc\r\nn7GDkzGQN8q2xELLMkGwL47awAnYZdpLtsgBiZxk6rWOczwpmk/BNwKvTZfn\r\n2qknhYBVZZ8pGX+Bp8lVHtoy42kvDBzVvG+LJir/pCrPrkV/vP4nrEgO+aT/\r\nMpuTrIQQdQpkgdiXjX+7Kcn4kUj8GEwGS5TQ9sdvGvg809vd1MyIbZyNWtsg\r\njuN/YhtIIv4DP4rrd665ZvPVKZ5bL1EhsNuRf2URbW9TNzslXZh4EwpyquN1\r\nTauMzl/lXkaEA3bkLDRgkQKw9m+9/suEpDw=\r\n=gDgL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.212_1677116691493_0.3195620414514859"},"_hasShrinkwrap":false},"0.8.1-unstable.213":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.213","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.213+beb99bd","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"beb99bd2861034dd6e739e18b6863118a7af44e9","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.213","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-5YN+fd3cMZE453n7zsY/VGIG7Qyj37ty9FiAm6K6qPCH0BoAvzf40HBnC+BEvsRfS8lzKgbYRgfojpkavQxy/Q==","shasum":"ab858e000b120e24d5cf55913ac0a434aa6ab3e5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.213.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZWylNYwPT/eK+jwdFEwntzJmTP0FpbeEZRG5Xn1lA2QIgde7uctkhO/ooere+Brj3IehAeTxuu6G6qpoDDvaFjws="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9svQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVhg/8Cb+C135PjbwHSrCEiE8YdRkoWELlLhOmaW+cj9ZDA4Wfl0bW\r\nCut6uVawPyEbktDrQwBPDWgb+JuXRsnvVlifYJTjrnmAL8dSsXm/8vKOr1k4\r\nrXccA+1g0oTA9xPExozEfexi8d3z9VLZsV5yA2fUz5tTFku2n0pScaTiP8SO\r\n1rl/o9U2a8fZTi2yNE9ilYSnE1Qftbd8Kf4Zd/1HwQ0AMtYpIqx7c3PGpQGv\r\nSU32KeMVOvdYZV1zQWeA5skEP5iPb23FMFyodNzhxISo+vO3PYqjGQnzmZfy\r\nd4nFEVjb1i+vjrAh2tCSB52G5lS1Q7njUAK9DKo2mo6gX90flLrbRmKLX2yD\r\n1XeFCG/waqtUzoilaY7fYYUq0b186NJN7XyWcJgr6zLrAK9BqGJ5AFPkApYX\r\n08kuOOJ3+F+SeMPGIa5M/nVxtbMxtQN0LwzLWI8EJ3nNfZ0qwMyG9pKAirZ7\r\nYlQI57KqwQt075bDRoy/sRKmwf3/wclWbkvVBXzZnx5P9Uxn2H3zfWHUQn+w\r\nyfGASv6bvdqTKYFW6hpGq0Og6xVVULCb3Szvt6wKVMeZ+8fZWZhx3tM9KSpc\r\n9Js+Y0qi9gE/8A0mSqcpQd6kaZJ30ZD0PmspQdfOrPzI2tM632hdRnwxsNPR\r\nowcVO03pIRqHYUmrOJYMnHshnT6iGTPwBsU=\r\n=N6UP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.213_1677118416197_0.22109995479503608"},"_hasShrinkwrap":false},"0.8.1-unstable.215":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.215","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.215+f76cceb","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"f76cceb2244a237570dbe8e97056362e842a55e6","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.215","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-gMrbf/DN8fTQqVHrxGmCHOK4RwmFrLceLYe23wIxFFl6gL2nzZHt6RUU79W3rkNy4v4gnxfxwsHUvUsdUrHAqg==","shasum":"4c5e2c0d3a10c411ef195c22858e3cb2824198a1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.215.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqJrXlwi1dwAmwlc2SHrP4+C2+cdK3TfQDPdlYFEZdUAIgSou//Ma8liBzmqKmq/a7MdL+kgwIh9E9xy03F6rFt0Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9793ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmra/Q/+PjgzzXeOOx+/2zRfYtFceuwuR4Hwj4TAv2A3m9nbu9LYuCRt\r\nlTDzZYUdn9FFLbarslN8qCthgVaJekZdnOZuqsDQ2X7lC/SVH1S57pq6IOkH\r\nQP5ufdjRM/V4H4mMO67MIJkbBIYRWoYiqOjBqqw9s+eOtHlPfKohIww8wgmO\r\nMxZlkcl4xy72NFXwsopBapS2aUy+tQX/Sbt8fxLkaO1vn2OURmF2n8wk0V9R\r\nd8qFS7Qcb0fIPnGzefB/yvQJEcsPJ0TvYdgZzVcVap+4p1LgevA+V+rId08P\r\nD+JzZo9SAAlL/bJz+aQhfJyex/dythQbgmMW0TbsHxlJNet8CLa02MvQFjQh\r\nzJ6cAI+4VNu3DasjwOFMPmTbVNJLfRxWoc+311VOcwXB/d6d8BRZITe0VkwZ\r\nXekXuXlOoaWt9a0fi+7B4Zc6rjhcaM6D/dJFS/NSNY9DVASAXruc7o+qzVUF\r\nwAVHw48GliJYnK/FJldjX29d1f/sdr0E6J6gh+l4qxekqXwhUVRBfv+/gfCi\r\n6l559NIbakHd5ocg5gg2SWhPCRZsVQH7A4b6iJ6vDn554yhJseLRIr/gG8te\r\nMBtffbgKoKEmhScqV4eVUpEE8TFtW2oxQC0G06+qBzb07fC+zrjUjMIJnwuq\r\nYUVSUPWXGHfXwTjYVLu/atY+ApP6eBsesfQ=\r\n=Q8zG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.215_1677180791031_0.817670419819601"},"_hasShrinkwrap":false},"0.8.1-unstable.217":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.217","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.217+bc342f9","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"bc342f9d00dc5dbcf5c127eb90ca78392a33b546","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.217","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-fQiezkEZqWuX6057f7Vb/isCs4gauApInhN3QYQTl+hI9goQnn5hIIWl0z/ZAYXnE3dQdFLdSrz0DHnaLyDomg==","shasum":"ffc6f2eb84f9622237e1e7d16333639b2bdfc107","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.217.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDH4WgAtR5HeJ8PwgvgXM8QgBc5VyKOokWriZ/oTTF6xAiBBYi54U4k45zEZl4oy1+zgI8awwV2YepxPOu4b4xAKSA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj980dACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhLw//ftOQY/F3+QkmFnUQdLGd5HrLaIgGj9o3/ltc9XR0ZB0y2jvr\r\ne4rmgVJkMEfqEBer/macPinRl4KRBxr1woQlW1cRBcnwhs2KmINMFVtkT+zx\r\nrHJ4ZisPm38UwzFngTnSpxGMPzwgpF5nm4UdkHCmLyvm5B89gbfJPdb282b/\r\nROOFb3RxA8zW6p3QmINFftjE550RHKrE5TV5YvX1EMbi3NTQuCKjOFkgH4up\r\ni6exIxp/Z65c4HdZIL3mXa3m4s+2Ly8r+nXvMcURUP59/ap00j/nzqMa10AI\r\nWbKvPBY3Ujdgg0Z+r04ygnA5uRopmN0F5gEe+NNzvhmJH3mibnV8nKBej48I\r\na5NjCJlM4ycFYzHqvivS/3ZbYSQHo+GNpDjFRMcyepWzkaTHF7oQcIw8uOZ8\r\nB1pNdNqwvaE7GDxabRtcvdQhTdIpBG10mMrF+xHA9UhC3eAc0RgwMuynyrju\r\nPjWhnx1sN4S3mE6HyK9I4rPujKp0lYTtmPW8sPmoLxWWPSUL9L85G7IyxXNf\r\nEDPPEVSsz3B1h+EuO/WhPpAHnQXT2lV/NBeTQvm+FEVmeMuCYL8YUlG4leVn\r\nJisRGL1n4KtftByjbBAVZhFiykO1ohiDguIrvKAECL/Zxj05eZKjX8TuIlTg\r\nG+NxCeEZLFmuhHLV0a0TX5ugP6tQJwYcxQI=\r\n=aM3G\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.217_1677184285050_0.2699426440770649"},"_hasShrinkwrap":false},"0.8.1-unstable.218":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.218","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.218+0708195","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"070819585e783410dc75c51d88cc3ade45e69148","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.218","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-eCVd7vpI/ABRI0gH5Ijj5u1/Ip8GY5On1EGNsbSNHUuXBm8rw+HkGyrFdhvi6VSIcJPGnx7XRgZUxn0HglFtdQ==","shasum":"5e50a1a3752b954f1b5f0b35635b754288ddbb83","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.218.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDe3H3scsWUBLEnTcbKvRLTD5mVoWEjMgTWOckiaV31KgIhALrXi3wr1NUc+lsr9baYNIC1wygwVxz4AZTL6Y3QUgS7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9+SyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobaxAApAl76X8BPY1k5PQQGlnJ/Rgc3+OH7P+07DLhza0XllQq2h7x\r\n6bIwkQ2eBBUnK6WiqRHc1u/zc28Y15JWVA1UB4FE2NSDIKbDsZOlAHR5XMoD\r\n7PgaB6WQe4kvJfRFeFTZHxbuT2KQXPbJGB24xZtSXqS3j++O0SJ8oJ0sdTUK\r\n2bA1RFc1O9GsYWYwhRbpkyYipTjXJS4yjFSvKl2q/O9YitPPTfZSIDfJQvKK\r\nCfpCvwYE+uYjuTbpiauwx72hQlqIF328IEK8U5M8Usb6o/Rl3jLcVbZR432H\r\n9kPEhpMxTeA6iuwQFtBJrkPrF+YsrZG+hvC6RhljhMXte7D87/eHZYFutoAZ\r\nPoNQP2Tn7bgHJV99PHZwRVUr7HxjbPQxO6aQL6o33D3jvDM48HiP1dpvXQN4\r\nvvDsOHmxZqVXWiHG/MfFxFjnwMWFXlt7IpeE2FIffnxL9MkGL0dQ8NmNhhtD\r\nR1sJZHjTbnrQa9bokUyYihJ4ClAalzyMaYakhAX6ToVr5Nn0kiKutsskLCw4\r\ntVyfMPR3H8EEM5M8drU5wXsQlwWo9+HmM72YlysVulfMR6SyhT6hihvIV3aV\r\ne+MRNaI6S0om4YCT9ZZUN0J/Ty8wh3hGAtrOTJd6oIATir6hijNsP2TOAUVx\r\njDjy6P0bRe+C4e0kDfvSSpkFXJ28sEHew08=\r\n=1OOh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.218_1677190321844_0.44418715851829127"},"_hasShrinkwrap":false},"0.8.1-unstable.219":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.219","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.219+39c84c0","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"39c84c0a44d0bfff00c630ac10eed2b540eab5ee","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.219","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-aG08zcXMUcXuWfAQmjgPpxJG+VmCj8rVDXjnnyEwE8B8LVktlBL3Atg1zIWBaH6616cWoOeyDrvplpiLAPQ2YQ==","shasum":"7cc77a1e7975a1c1a72f19b66e4bca0ab4c0e216","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.219.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEuFPSqR2ltsKepyGvq5A3RcRsvl5BhYiwTZZxXzOdilAiEA7QBnqSKBkkvlITRiUV31loNQTwjh8erkhYM7DYILEjQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9+4BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocYQ/8D69SsmmJ3/t3kY5tNhH1Ofl12HcdviGo3T0e9icZOILZ38Vt\r\nyeOvPA/dQoYPYFKb5q8yMCeywi4jEkGgGfypdePcNC08KQtTqUq0SyROaTVD\r\ntXWDvaG5cOL6eL2RcpHb3Bjl+WVdvCB1GhsWMeJ6FCWo37yIUO0sJ6D2PE5y\r\n35LwSWmjAyoE4wTjA0ivtHMlkY5Ipx6kSxCFi1vPUjF4zJtFEAgTaexMSsJv\r\naPZ0czDXOlhm6XDQoXvut7NRGH1cnUXc+iSVAYZjP/XMhvoS7OOUtyO0uWn1\r\nxPq0qKCyeq8e+Li9trfb2iLXhW39ESEAfk8IuJ3BL9mElstKTm0jvKHghn/2\r\niQ3gMBhc/elqdOkNENmuGewoOBvDfw8zOcuJZkJFbW0gsjVg5WLElAd3FILe\r\no5zulPmtdu7PGPNk5OmgiTW4FZV3mBhNuIt1c8AcuMuHnK25/8zu3N7nBk2P\r\nf8A/jKBXuo222yl5/rse17tbzFf6Mfs9eW43A0Gf0gn9Qa7mA4LBGwmClN+Y\r\nHfwQppU0yo12pR8GYfXRKZV3i8X1CxiXdOiwhgA/v4aiVmklGVnefRJnQiuh\r\nbEntyad9UTeV/Paopl5ntFFt7g3wrABEoXSJKE9z/xdRH5nwNeQCbQRQS8DN\r\nGRi3ISC6n0GFeH/hgrpO2OH/QWqhTEVbI9w=\r\n=iOvO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.219_1677192704864_0.3332648741509674"},"_hasShrinkwrap":false},"0.8.1-unstable.220":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.220","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.220+eca3e18","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"eca3e1811df58ea348aef1d8e353711a50bab0c1","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.220","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-oI5aqalURpkh6s35ri+HXi/p3/mfshd0q4kiV+0e2IVrU/N/8VePx+N3/fLa+kP29P42VqOzpAhkwk1NYLF69w==","shasum":"8bd70cdade74acca7ddf7e08c8cb074c8c17122c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.220.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaLWwPUK9fXq83NNwLZN+bOgXaUHgrROJEFnSYwdeIEwIhAIjjWp+h7oUWGvGzxQnyJPQK6gY3VopzdqYi1QX4JJgo"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9/YLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpnNRAAi55sRtL5MkmFdiSSVnAKzVSbI+OUoHMhiKj5nG+hN/grKmkF\r\nPibegcGRdWgrq0tt7Z0VTohmw7rDUgniBZumxLXJsfE1T2ct1lMyIXQvVFlG\r\nGybfVg/QV8Upx8SWKNOfaIf2KSkEpigDzNn3rwwgj8JD8d3bIVg3EPiNW3E7\r\nptmpi9KyQci7GM7ohanlyyL22cgUOzpSDOQjUB9eLlNcjryZq+BiHGNgAl/E\r\nafaMBSyUPEQ3Nummjbzk19FyxWw8K6NMBAWS+0XcF/HOk5ZqWNBROOc+66Kh\r\nbEEccLPE6w5en5w1vBTBi/QJn42Z0UvAd/gtDFENZMhvryPCE20OC5X2X3is\r\nE35HpPsStVyOV0vUyF+00n5IP/YFybb5arVqEN3HGIwBFi9VTg6oANeeFiUo\r\nyBTm+inkJ+2Jm5ei3clKwxooPuQAoMYLD1asvXFB2bOsf7JrvYVfPdBtWbqV\r\nU2JQMLoWawRKJ+Cgp09M4TSjRfRrqxqjPNdGck9tztYkxKge6n63VOWy1DHD\r\n8tqjwHaSaLqBEbKUuiCA6R5jxBveSp1olABcMafqaPQyXtALOA5uhv2/Hi4u\r\nFlO6KME52BvsBAsmj+LGyEZVdi7ag6emJ+dW7f6lRtUfiE9Jgu+uvUG6MzzM\r\nUdoxpQ4vBB4iG3t2dFopxg01R1m7XXtcqoc=\r\n=T2MT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.220_1677194763477_0.8896117330131867"},"_hasShrinkwrap":false},"0.8.1-unstable.221":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.221","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.221+66cff3f","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"66cff3f98096f061b797655e1d83f64a03e74663","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.221","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-9jhsFEp2XYpX8xUax8TRiQZhXvUX5E28zwvWKyFlCJZAwrqELmy73xs4KR/TEhddQcVnKOfnTor8sgG4L8p70g==","shasum":"aa71333d38a6e1223fbcb9a88e8aa2189533b72c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.221.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGX6ys1gJMRHS1eR4YobQWp1+q7SFnVafUWKApKmUnsAIgFDDAvfHPicMaQ/fPpiJZgjOhIeo3EE8DwV5jzqNe/e0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+AVPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrApQ//VywJGPtQJA5E9MiT8jmR20WaZcQw6AR5MhUMfa24T/uS3aeY\r\nHbgRcuIgCzb1SP48dXWgbCwlW8rqXbB4FvvFedAS11EbRD+/a+lNNsnIxDr5\r\nibX4t3q8TSTRO1hbaKycMBuhImsrmvMVEBnBaOTGSgMljYh95bZMMs1Yljo3\r\nZMy+sjpk8NXBOjtgG+rIuNAb3MrpImADrOTcXuaYYL57UChQC7aTXXvCILZP\r\nGGkattaqiDoQ1uKb/fDbAZdLVMpFwzls9xn7vww2plxqXOZFb0BsWOntIwsm\r\n0b9Jj2GV45TPu5pdgJevSsPe3B0RSPAKu26KG4RgkNyjmDcyv2D1bCk0Ui1y\r\nGlgD83xVxSwlDRxndtPAMnrkkGMkcmPG/7sngXWG96Hx/zue0vagPZt4XKMD\r\ntlYvnmpV60ZZeJ3ijGlzLamU3SE0oUjV/VIrKrGhTEYNrRFgWxeOg/3sN4q6\r\nrHmWDAvAF18tdvhXo0lvTS5+N8FZtfc0n5Cv7Y+4t+FG1UjN2R0/YRvTnu70\r\nzmL2y6l2OWJOZUdvyTJGTtN5CdGfdUsO7BFn6xriIkRYZjYt0mG42GDrYMpN\r\nab/jT72jkXoMmQ33BI3AxDwO/GLixPj87/JveCZNWd0tKjqJ2j9i6Mt0vEAL\r\n/28uTooiguSTlR3fop5OHYMpXQzyRBOOUt4=\r\n=SLS5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.221_1677198671425_0.2980546924156051"},"_hasShrinkwrap":false},"0.8.1-unstable.222":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.222","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.222+4b14542","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"4b145421eae3e49df6417bfa296585752ce4c295","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.222","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-yt9LgPruULxZktRbCYZ9Yr9IOYzWHXjIBA+GrTM7lqhLuIgQCkWG1433SEF90DZfuB/DAet8q9PzmciO+EDD9g==","shasum":"01dbab3c442490328a3e9db10d2e691b5c26060a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.222.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHDuCYx1IGunn/dP0LsC4hgHNgP1XWMRAldPLJ5n5V4PAiEAi90qBeuzHvfb6/dk92VmrUFgNn4osCVgvSaHlBDymhg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+BH+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpMJw/+JZj71lI6IjUd6t8ZCfHhHgsJ+p6S4Y53WcuZJZLs8LP4rKh2\r\nBQwmR+A5ErUBbHS7Khsw6EtwwHYf0rP9ZXKvmripqWB6SBvz0KS1KKuAi6OG\r\nOqCz+t0PVnbBAOcon6Bl7aIEoOv+iQQbGLqUHZk0bLTZxSMGm8M6MyXXL1T4\r\ndjWGN79bl1E7ql4zYO2jkZG19J9Neqa6nEhDauG0n3hEUTG3loDJOdrj7BPy\r\nPXMZwQltfQGmTi81386c3y4tHEPTav/8Xo0Np9+vpm7I4x8PIrc7VKcpPics\r\nmszASrjwwvlLRvL9In3Il9XxpOvZH2IkII86MW1ctQDP09YsNLfCAvoWWdHv\r\nHOnlOzBTTCWBoFQ4psaPXHbyc2JBHzWRqhT/xA67NfNcTIUC95VmPr/lWH1N\r\nd3kE00EO35Ujw58684JawRcODSr0XA8gKPTXPwP8SsgVgXY3gsbkeh68aAH2\r\nkVLowFet0OC1qTwT/W3zonswqt2w1c1tjDI6xOt2hoPDV/bN7OhP9bJRM2KU\r\nd3F6RuqOahvhSftFy9a5gYpaTAtkZ3jw3M9SB4GD6688FFfl6/qVuFwhhM1A\r\nMka4GtDDLDNPppiigYqFpeg3soeKjz6+6J113WST5BsY4I7kndCzCQ7fsdip\r\nX/FAtbjRS4Lo5VbJ+gKznlHvPoXGrqtF+L4=\r\n=j3gB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.222_1677201918096_0.14624414189025714"},"_hasShrinkwrap":false},"0.8.1-unstable.225":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.225","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.225+5a87aa3","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"5a87aa3eeed588b910636b358c7d718ae74f54c9","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.225","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Y2xbRMKVgUQPzKJfYOm9gdaGxIrmUY6RGX/aindbnNVFmwZJNIDiyDQ5bImwF4ziGx3dP1VgSYbvJ9KEEHxW8A==","shasum":"7b9f4ff4e0a45c28a8769e46ffbc4dd14508ba2c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.225.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD64jyJgaGzFL5iroEqOVzJusZKy81j3H4r3DrwI9tIrgIgVeqcsSNAreV+FlF2pB9a6Qa2UR7VZgJjGkZWDy8XcL4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+Dh7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqO8Q//dGNxU+AWm8+QzBIvb9zWInHsjP/p4qh32AtlLGBRqHsFW5S4\r\nhbu4wK6IApSIaPilIy9Jlq9rctKeyH02f90hd0xsvG+YL0W3hDWqqKV5jtRH\r\n8ZtcIudvj5FMCPm85M4WQCTO/VYIImxM/5R8uO60v8TLVP1p6s3Vk58ErMqq\r\n8yTQ9AKI6qmt4cAafnZuqQHRGZmslEXeJr83iPg6HjRGBJqhYUIoC0EIMRwM\r\nZAuBIpY7umYJU8cdC1yowoRouzEC95ywrFhyAzMypURvhng7fBGtyKPrSU7x\r\nwexiU3G00Kxj2W8Yo7gOZmD+JgGnMg/iH7L9U8J1uZxT4JfzkuWGay0QG78b\r\njS1X7iLMKYoqrxAUb22x2Vxnu9O36u9Se9y3XphV5b0aM01uPdziFsqzxxLm\r\n28z0EzBRLSueDMswhA5Oc5vqafJWd9IItK/mPNHY5HgWpYbO+nJZJcU3yu2L\r\nS8phvVpC7jEXoLlU7qSlWeyEmEoCtS0Ydgx8D/PZApNqHAPp7eLBtMkOWKlx\r\nS4LbYgynqCNli1KfDPcwJ9mvOC4GHpvqrrGkj4AdzcnovxLw5sdWRPsGfknd\r\nqcHO69/bC1ND/Yj69RWcKluS9vnbdIUV9c+SjeET/9uA2BafHRPWAok3xmnN\r\n/OngorB7TmHU8GkJyywoOUpwZmT0HzGiCVg=\r\n=NNJ9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.225_1677211771014_0.8406435855246932"},"_hasShrinkwrap":false},"0.8.1-unstable.227":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.227","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.227+b7ab1a0","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"b7ab1a095dcff2bdacfd93c99a68baf8ef37146f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.227","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-X2JhhMxJbRgBTIY4K4TBkNlhzvLl+YPKYYT6/TjUSA57QN2Fy0ut2DEjwtB88BrXBsfpbGYCtp1Qz9yqijdaMg==","shasum":"1eb0fd67639e8857e4d3bf88095c7d48b094d9fa","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.227.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGRac72ckaaCDi9+6zUYnnYSC/IJXxUGuA+PIuObOCDwIhAPQPCVSk9RgwqZxgrZ2FuUmLpNq/qWQU6bQCn3nbmbT2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+V5GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2dA/+MmluE/mosTcwpEnpWVn9W1V5rIVqwoS4cA3ePSYsqGAnfjmZ\r\nnSiYiIEjzBI/1YtJoRhf9l31xJ9l1oCcaT8qbyC7q1oPQWdtzG4lNHZfJeVd\r\nGuDG9eq78BpuUfqle6qbqq5l7aK1MiHvHZmVwhb91i5fE7kasIkRPkXkNP5N\r\nGQ9e6Icozp78TwJrM3hHeF75HOjK5NeWEDcjsWnQ98Xfr9l9yORT7ZSsquK8\r\nZ+HzmjjWMIQ5VtuDcWxiLLjN2PG0BZ8r/a6J/mfCbevH5QoV/OenIcWXsriz\r\n5tuncA4D1DwenEYi+Ul7DfvQchk/mwO3n9i9Iy09ULeXTIV5Dx5TBSODvn+k\r\ng2UMhmvXZlWpsfcsZROdOQHZkX7L6mMzPAXtir7PkVGovc609rXoy/fdO3Hd\r\n8tHhfn+MGsYpDjL2Q2jxqeNJ4DK7csOIu6qN4WOaPgXqDWpylTshwJNWWSGL\r\nJ79ZoBFh5vnyyD3SOcbjd3Q2TgE3TNW7dpaIYLLCaq8GVE/t29It3soaW1WA\r\n1jD3SvDr9N9yEeLNxyZk+MBe7hQq9MpdQsmXQ2rhBQu+UIr1CHFsMP2o/EVM\r\nNxKzNanw+KokUyVY3/n5+XnP2ngVHp/MZXr9moM2nHZs4ZSKP1DczW+kQH7y\r\nDV6GEFhtcTXeazyoOIu0I+zhGrvtHq/QEWE=\r\n=lgMU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.227_1677286982451_0.24574463593475748"},"_hasShrinkwrap":false},"0.8.1-unstable.228":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.228","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.228+d19bd2e","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"d19bd2efe1ada5c3854de7b86cd6e2e13689d86a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.228","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-bCiN0k5QcGSYOoJ+LN3xwmbZRIUVKo7d1QVw42ADLNXp3C3hWytqqXeBksZknUkjRhl/BTj+Q3z4nPXq06brdQ==","shasum":"8fb0ba5df700a70960eab9357a1a4a1cd43c134a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.228.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4H8okt9T4DSeJqqE0ZYJ2joj6sZKIksb861C6cYPxMwIgTNAVIsn6NXx8I2QzwQSwpr6npiJLCdLG2MMayF3vIeI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+tD8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+IQ/7BdHr6b75OxR2sgryon5VldPV7WwID3GdAPCJw4DP09Xk+NKD\r\nwT0wC15QKwQGPptbZ5rjKEImQAsKQBQBIHcbRyNmRUdD7Udl6FBgCrCbOqZJ\r\nOn7tbSE1wIJKGgMPhs1ezXcyUdOGNxt1Y5fF3TW1wz1r+O0AZd4fudCLcMk0\r\nLBYOmSTKbosWXRW3M8js9n2a2yC68pQAd3YKhunLe7mPVODPDZ2oXPgI+vMY\r\nnFma7AN5A96MU4aEFhhG03WHVf0MXG38DAcmAn5v0sj8TPbaIEL1wHNr0eqP\r\n0qBrNWrMbSI+r/1VOUPejZL9nf3Ni5I+7Q+s1hmu40vEn8hsrjFeuRx/kmW+\r\nrUVxN/dOegQorCx5Ina5mQsb1Ln7hm+KAwDflT+2vVPivQAkMourMVPk3aMO\r\nbrOdYXM/rmHp4n3+eFU+YRiO8YoJTK9eapGeRC20JmtBVRjv6nQm+AsInMBe\r\ndu1qveOyUHgR4RLPoGlOP3RRUyVYtLaMPIfjOcr2i4B0Mfv3rYs3btMJXa3h\r\nQ2bjwVmyn3mttBxBW3mZVxFcdwd5BlmQA90FZhTKCVV/1/HCMjI1Ovd9jOOd\r\nGdJP6LmcZrk8cOKSu5+D4lgXKulEDV/K61s6e0UBMoyPLdUVslCtiUY7aNL9\r\nyPtsDU4AuvTpW/0CADwh4iEHqnOVmiqz9fY=\r\n=BqkR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.228_1677381883819_0.7561934397016596"},"_hasShrinkwrap":false},"0.8.1-unstable.229":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.229","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.229+457a5f8","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"457a5f8f586050881b170d35c89716f9b72dd139","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.229","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-eVrwcIvJt/Sehl872DaTZ28g48/pD6PT5rdO2YYP0PB9N9By9rYZu0Jc2/9xwUj5l5qMIl5NVXc07p0Z+GQG6w==","shasum":"903a2a111badd9963631b195debad7da2c5d9466","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.229.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGkXMcK7X6Ou99KDkBcVUvP62dGeLUMJvxlb/0VyGosyAiEAnmR3YdTkVIe3p5S8ReC5VW212Fu2y5Dk6uZJTM+CHc0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+wT/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplVBAAgzhLqfmlCBh1dxCbRgSmpnz3Ai+00FujAMxIIdtICZbdbctw\r\nklxFdPrR5sq5C3njQT64cq4cXJRakZChZMHfg4oFa1rT+4tqftskI0VN0i/A\r\nDPH+408icSsqbWUodO1fPIWA+eGLpaPXSfIpnPbOTpqtN6F+5NGWk4KiP1Sy\r\nYbMimBAh+g7XRHJObU7DRF9NpkCqwsWTACv+CZ07eBdVRGtdS3VgRsNXARVn\r\nDLHxHm5JuTm8T/6HC5bnu8rN9FUTDXoiZmQx5u7RJbVmnNPiPe8MBxmGb/pq\r\n0Bg9MLVoET2JtIAfsAbYmM1ytge7AnvEz6A9RSl4K8dRIvD5VHhJeFJ1boNg\r\nzExvza/HjkfgvD50H7vUIqQYNNtXEwqTia8Olas+a4+B2jc1SQ/7pR/H3N9X\r\nzc1mPpkF0eYOhQmDjlQ0STi5OxLSchb56e2HDF+oDtR0ZwUd2nzKb+donboU\r\nqLBwrF0vDpsc5NE/ugWlQA4T7/HzzNqamRgv/cO8NADV/jOYCl27rxT5FAFV\r\ng0ImL1QE3uv/JXzxgfO4weg3JVjAreFPf8um1FpiDNoqfn3z7yxqgCV8WDQq\r\nEhKWzIcQHrFCoMBvv6zgGimECq0Mxo925qNf8bjHJhHT1J9ozhrZBqusas/x\r\nsnW/VlBKzGXws1ZuS6FGuayJN+uumIwbMMw=\r\n=JOdT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.229_1677395199786_0.8799562891155319"},"_hasShrinkwrap":false},"0.8.1-unstable.230":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.230","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.230+1139352","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"11393527630c48fdb34f5f2394b96305a9597ac3","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.230","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-8KtSnzPQ5Gqaqp+e/35svScuCmTxZ/ZDKxn6TFo6r3KXNQdmwVILbL0PRY8wpqr8cGh9mpV5zEeAKvhMWcSkNA==","shasum":"deec2979287b536fb2ce0e7b2f39e30d5bc8f179","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.230.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTEshT1Lj8s9jHZU0hXR9n/dyoNjvMnHFXt8LgOl9PmAIhAMfHnIL4iF5Z8Pe4eWklcX55L594gn1c1hCMSjHF5zDo"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+wvnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp1Yg//V0hGRYiurh7K2mZL7W3OVyNj242VtX3ymVMMWir2cB/jpv3V\r\nIV26XC7Oldo+hsERQrpn17lCOcbJlYHwDBS+efk/pxkXljUNEafjYxA7Ebgn\r\nZ5n0ra56kSbyHPiLCwkHPWkYka58KOG4WrbgEzeCzmYeZo+NP//bcvO45ScE\r\nUoLOn9V5cppvyCYWLtb27GAv7Kg1fAbbNG0fTOWhdyVW16gkqOm6zFr9Q1u2\r\nWljSotAQDmLvZtaIo7ehzFmf0iwvCg8shpCuVjIznCmyX1hokVYBZpTECjrn\r\nA/7HKPm74igpwEmZpgDEFx8S123EsxRLrN64KIR+7ZErBBCbpI6roikNDDnS\r\n+1ahiVUJj09UPhGvDEX1+w+9u4Bw8Ieo1H6pieoXM6jK/D2CF66zfxPAn2FR\r\nbQUWV21HfYTI6WVUCyEFdJdjQi7pMHMYbupXARmz2TGm79sqxrz0xOGcdvYr\r\naR2/tn70wOzKdGazWUSrHmONgenSR2rMzcXBooBTMLRd2bBKjz2r8p8lXnVB\r\nGX+IW6EuLPll/qfVlDnYJcbjTNRxddUDtYiBPxS6UjoxhtIHuyfvNghHbCbK\r\nexf0N7xMEWV3BH8vqmym3FptEh/FkWixVmf1QY0aRK0lLy5BzA4ZWkD4EbFd\r\nXFP7pGvs1KbF9PHmzMDG7pO+kpZTX5Gnybo=\r\n=Fe6U\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.230_1677396966828_0.8113153469966701"},"_hasShrinkwrap":false},"0.8.1-unstable.238":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.238","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.238+ec062f8","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"ec062f8ec01de800469ef10b05b0a79a5ba5dea7","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.238","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-XcEzPS+Ai69XCAy/1qtiZbotm6oziw+nbEHS+dTtk9YPlpCTXsn4tcKredpEKRaGgfhtnxnzDD0ThNO9dJHmlA==","shasum":"f95bdf42a236b83d13fefe02ad8881c5baa5c545","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.238.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYvuSfBKlt7ox0nmbynhlcxBwsLhtOu798Rp4KO+uoJQIgMnNU7tP2E4u1ZeYCD8jT9e6UMzAbC3puUtsMypZm3Wg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+ytcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8pg/9GCYDc/LRm+I6TNJAOFSqNLkUIB6bZ7FW5xqy9+GASt4Eow3P\r\ntZL3RUq0wEnhqo5zayc+e0UMiELTYTPXrm15vXau7DjLt9rlfAVIYi9YykAq\r\nli6cN220cHghsayNDLMCcWVy8+mu8yoC7rVEd/OP66u3s9tIhZq+Kprv++QI\r\nPMmaXlGiRX8xlcrI7yoB5MijLLhO6sp76K1ttC+UenaAlF0dWtPQcBV398nV\r\nIskg3KyWD8MkaLGFsvvTaDo7GcDnTJ7yRVxK62uLg13EuSBL5EJDa+ILEkzf\r\nbdRww0krYEiAMecwjnY6Iwkm88S3IgA9SvCnFFBuLX402rahvmputlBkVawa\r\n8rsrEDZX7tqWRTwFLsmQyrCUwNMmiW0GC6yihAcdbX/nM9XSKYR3ZFmM9nF+\r\n0rR/BGQpE0/O2OlKOEUEJ42H/nkIizSHoSLvmY5XrZcPFtv8Ho83J0faJfvD\r\nQXWP8NIJCykYxmb0rC0FIetnYOZReYQjLZPbmPp8v780ZHfGnBpepSBBEtKG\r\nenh8fIVOCLaAIJGE334C8neKNFb+j6w0+w+RSnvi0wlb4wB4x+77Y2Zh0/mj\r\nVFefl3ZXidOQWk+xTA65aqjohvevv2wXg/6eZqgSsiJTahEjKx+0i6oNDzp6\r\nxMQ09MIK1Gqwoy6Fw/NoRv0b7xPwygQIT0w=\r\n=6Mxm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.238_1677405020767_0.890229898352279"},"_hasShrinkwrap":false},"0.8.1-unstable.239":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.239","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.239+ffdc606","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"ffdc606a95d43d831fa9fe2eabfacf47e62d1361","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.239","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-vVt/qamCdX2Y2z8l+nJc2fZP83c63c+gAYCcGZquiGZDCXzPhB5nZ8c+O+GkTCXE9fG451Av5kfAoTYfiIU0XQ==","shasum":"d719fd7705b8bdc8b59022a9e24393b07d8accb6","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.239.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSjjsIas7ubPpHCWBBAvlrYTfLcxnDWW4mqQOGVsOPhAiB2Vhgh7eW9AIm8bU23s4A/ZWsHOvKkoeE/R8kzRoMteg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+43MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopoBAAmFFL4r4mSPHnhs8+wTJEwm41HiGY+hI93akO0lbNQGMeTFJN\r\nex5PApU0z3bGi3Mze98N2BwuM2ubeogEgN/n4dHEUnljEI7j2tt7H+zUS9+1\r\nUTp5e/40aqENm8l0xIpljebfFvJmX++8L1c7AsEXOxiHII2BQqwM/CS+FgNd\r\nuvEvQAmbrHhTeCEQ6nxEMkubzpdxg/VZCKDb+Pe+4n3N63eLFwwT2/hA0wcs\r\nNctgcTXW81vyW8OOeNaqMF7sFxzTXVtZyU9czE1L4HmtDhyeOVxNG50ytPpB\r\nijpTF/ggd4O1sjlRXIAzhPuLNrZ/mZ9w7mqAo8L2snyYJ+zxPCouIsSajMOV\r\nJeD6GsPYSo+KJYW8etxzZSv/oYwoDsYVjaQUghVyxVOPw79zNyu10P0PMcCR\r\nPbwF+nLT435bez7Ttc6QPJnFOBTMj/O0Vd891uiLVZVL8YQ1ksh3t6OamSFm\r\nvtmnqW2HmsC6AWQxHiInowE16lRqtihwcMjrpzoiP6I2MPLN4wAbqg2rDS7n\r\nKlkUdNx8GTtbwf16hKB58oFOPViLvUiIZnzuBKHmVgpuGhW56tAuJ/fJDchE\r\n1Hi7gbDLkGhwP2xARWRnQvRJKSZe22G/+OFY6Ukq0HL94CEHt/HWQgWLTty+\r\nDFoKjOoykh8NCpSHvB1+AovHdIPsyxk7QTo=\r\n=Ls2v\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.239_1677430220437_0.4306924450076868"},"_hasShrinkwrap":false},"0.8.1-unstable.240":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.240","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.240+2fcf72d","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"2fcf72d1acff4ea1b3b09543c37b75d098eec2e2","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.240","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-rHFnwdqxKljF3mKhX2UZgqtFNTW6alwMGHOxLA7wEIg9FMmmQuT/fqp8nIO2Ii0+glTTbYJHXpWbTryt/JoItg==","shasum":"05f0756249752887e2adcb4b0b0afa837cf97182","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.240.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGtw1ptSyvcXjrOYp8mVsXnQVDCRXrX8kd8WTDGMljuDAiA7fA3Z7xpco31CpKvtYzlmRhEN12Mt/MRZzK+GH2TA7Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj++zCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbYg//ZWgrzFWj4j0A5wcE3iWy0rPcrtzNxWR/H3GMHIQFuJ7Lz3p/\r\nDYQqsnzcrKfYhVpeKcjEWq5Z+ZaaLlfr1qQzpDfhGujBUzrSo7Ve6rsxw4y0\r\nFX044FgVuu9eUL2RIfsJ3fYXqahkwa0AkV84O76ogi7zvV3B/HIn3D/73yke\r\ntcpQv1B8HtIfjn9NjQ18HsTQZUp8EdP5JHKB7DWfU9G7OTOBmJJJKYx98oKa\r\nCXr0+sTDmLKoPFxSTh5b3L3nj5vQtNqBmlfxO7QWc2FJh5/JJLpNDoL9dviq\r\nbwXHqT84zJKnSXQAxtTyceZ6bVrAa2X2YJcMXj087tqqVC+fKX0qqGG5YFPY\r\nzbr2oc3hocaxxmElpKq9X8S1SmxXhHXsZ0PI/B1UT4GTPLr2ZCsZVDTg2xGW\r\nmNSw9JLFXUFhBrnB2QEiFRoXe7U856vmaG2+8yfEhWLKHrI1CeJTp1sOFkAH\r\n4sUfiqbbxQei4ElRR+5TTQTKAUyJZbiVLSDWaBhTkMc2PjgldbY1ESdhaplH\r\npc1l5YHqkNJxxfW7u+9WcWawEs+iyu9lBX4bnjazFsKCp1HNJAzaI89M5rqu\r\nEWxEWRiYRNV6i51ejrgMBYA4AUJP0Vf1fSNyrf4mz3DxjPs136S/VPNCl5o7\r\nRIaelmRVfQYAScHP7KSqocjzIxcPVbDT2Uo=\r\n=NO4G\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.240_1677454530587_0.1424262750032088"},"_hasShrinkwrap":false},"0.8.1-unstable.242":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.242","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.242+7ed0727","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"7ed072708585d2479928bd4314ce3244761c7f4e","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.242","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-IdtWx8merx9S4sTCgcd1zAiF5lQG0xNMy9e+TtIRXvVqtysH6Z/wSHQFaPjT2SqvER1ydqJ1R8NgKkMx1G49wg==","shasum":"b22d2e52ff00ab725883beafc7f098a9c03a6b7f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.242.tgz","fileCount":54,"unpackedSize":100910,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPEP4nxaa0MP82kdzsS2tu40RfM99ffDGSG/B7f6U3dwIhANqPRnhPcxcUoPOEMobILDpOarmrY3LW3WuTAkNej7DT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/A6gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/5Q/9F+H13Is6O9F0mQBfNckpCvUqiz5C8wtgtG43jCQ/NYe9a84W\r\noMGSba85Jv+ZacLpIaU+2Rg0ng7HPXl/DjHeJWgO8uC+bcjO2csuWiOJQYPd\r\n5xQ4IxKavcFnZKZuK4lcXt4EBtbDNnppikWl0m9+/UJWPEc9bB41X6t82cx+\r\nTH1pldtVFq+gbDpYDWL7e9YLmtUbSppkECkXLJxbfMPsHAt2H4bXu073NZPZ\r\naa/0N0NhgnnPnRjek1gzlIiCG9D52F+57R1VLKghpneVq6bk7WxbjT8I/Sok\r\nWUWQEJ1DQO3acqMlyKdSXPS34iuEH92yrX3cA5tvSNJKl4T6iJrJUqZfRkXS\r\n9igLRDH8x3CoR4X6w5U+Ew1YyRJQXCDY7MQ526JpEmm8ztZ7aVeZRd6ffufR\r\nBDq2CxfWRkz6aeRESB7jZuLrKru9tqp7pPyHLv7CCyVqpX/uLCQ3eiYYOkKu\r\nWoBz3UOAJAW+XR4w3VMVonQwn5xoXloHFGuyhrS8iWjhQDVgoS0dkLqk8xsN\r\nyAOE4a51Lb5vGifzOzkauSnx+ciNU4WKJs2UB3Z7ry60CmS5V7wq2VLoFv0Z\r\nhKlTHBpwG/04BvWzDosKOaZOrX4Zt5McJ3qbrm4VCUXS06+Be8vSnEnRsFsq\r\nDNKkmmVFM0kDxT3DHV692yZ2UolTCPEauiE=\r\n=f5yr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.242_1677463200105_0.5386697108385146"},"_hasShrinkwrap":false},"0.8.1-unstable.264":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.264","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.264+455ebb3","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"455ebb3f0bbb50688c9cf62e10ba084d8fe41041","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.264","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-k2yA9IZevAv3kr/Tr/gu45TkbZQjXIt1Ua0vFWgyTf/+UxWafgCyxreLdCzrjYtrKt3Iid8M37ItwWNFL1YEgg==","shasum":"6cbad874bd9054f42434b577d752577982575faf","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.264.tgz","fileCount":54,"unpackedSize":101057,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDt03cEtrUh+Nheko13VHeKG+QMxno9cQooqywjWcYnmgIgeVphN/A4TjNGRCZbvY0fYXHCSz1JW48JFd8T+NvnoiA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAbEmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBjg//SNKisia9MqS/hdqRmReL/zCl1Pudg/RAta26yxQ9or4bANyk\r\nHHJO2CmfhtJS0XP1hRULfwF+G5rViNRuaIcN7m8RNbklStA2NIm2QU9YxK2m\r\ndSM0hijJvPKkvniCozEMnwxk2UHK1JNpdRp0imEkObBzFQzw5l/1UyYQI0Rp\r\nwn8K9CUEjGGQrEPMZc1LbNkVaRlrNkOH6nnFdO/Z3ae4v1yS4WOTcUh9UBLY\r\nVgnYSmT0J8dNfP9aVtYbw/L79EQeXHqEwOxsSH5YmSs9JpCeWkMIbEM9tVBo\r\n+ovbTQJA2uxEi+tecDeqJzTR5g3oAsu1SnGXsgs0yZnyzPZgo0ZaZfj59zIT\r\nBjoJ57v0QDZ/yjGYuHWznurU+1RYx3UxjUy59mWhSCVdnJwC/A3JBN++UQ/7\r\n8UD+uh1LNapR7QUvy9JQuZ+3015oWLg3Btn5oylR0Chxh9dx4Px8BfEtxMVl\r\n+sRu3sAZwTu1ToolM+Avvh1LLhuHtUB3djVXNvKD6RDWR0idCuzpUsaFJzSz\r\nFPHdElAwtEUlf7tiCNNV/zSDgWBHMejW6aPlV7o3PWk+55/w1smN1bomkCDY\r\neY2Czac5w6gTqkkG24zwaX+J3SSFCTqj78c7iBMGAWAupmW9rJMItAUhVPYT\r\nL6cKxJvfa2cmn3cuK/KXVCGQiUvnn+QcLtM=\r\n=JIvR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.264_1677832486009_0.6436917420332229"},"_hasShrinkwrap":false},"0.8.1-unstable.263":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.263","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.263+0ccab93","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"0ccab93d1692d0e82262f7778c22aeae8e8683e8","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.263","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-6q1llStdHCBDfYNbSn4dJk15dKs09kOSZ91rc3xEDGHgcD6UE2bA1zbrMkKRRICoqV6P3rwpSF/uSDUYkQn8Aw==","shasum":"048c277a2017d6fb3f725aa40a508999455838ba","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.263.tgz","fileCount":54,"unpackedSize":101057,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVJI1eawxAfAslDPEiEbxAyAirWMdvROp2wjAYSZTSPAIgMq/3E4Qq4OMcpUvIJJVP+5nkhw7bC0+eEavRHmv9HOM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAh19ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7pQ//apVvbdlGs0ik5GeMmepDCJx7C+TVv2Gvk3X6/tIqP2Iq6FUu\r\neMTPYIbgjCwfo6pJKXjJcAvuvF5r8pTymbB0CofSLtldc1NSXG5xkckSTrCc\r\nsMROejXfibypqHeqGnXe8Bt14+3lvGXplsKQj/caKPd8tnJk+nduTmnTjr9r\r\nvqJ76Bp3REg3RuNUDYCzGMK/u20geQL2BrLNEyMmjvAKuE7iBfxiM1MXmu1Y\r\na89MEwcl+xlCo3DXCO1xpNpmsfAlzqO8Zj0VFO40ukfCzztiBGot24KLybqE\r\nK7egmZzBxkP6UUFCY4Js3X67XohSpMAXL3eYAjG6evAhpbye4a73/DRlalqT\r\n2OEE0a5w9yiHfDnjnH+CDzYkqMhBk1uVB8KPO7w1AQ9u7gbb1qUGb75+ZT3E\r\n6IuOOJkr2LHtc0tT9iJ7pckJ3o3DFPc3j6bjNbJsxY8U5V/kyE89/66Ad0gP\r\nHRWJhgusKWthAs9ntlUDtWZOBkuoQf0MUH7w4ZUJTnv5d9xqlK0A0jpEagpC\r\nQvbq39DpQHKbufRnc0eXW6QTSvbKDH2rM6PVshqMYGWbWgHx7gvm1NFvAejw\r\nqR4Q8C0xbf+dgKTFo3q4G2yFu3JmveWgX8Z4hZtyb5RnhGyz04LGRfPCdKkC\r\nJn6aDBN7rw7UlER5EVuhHd9cWpqk808rNaQ=\r\n=tEue\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.263_1677860221278_0.0755559584683152"},"_hasShrinkwrap":false},"0.8.1-unstable.271":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.271","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.271+9a734b5","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9a734b5892bde59c0a57812d2f77c8168744c63a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.271","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-DE2IYn/i2VJBFkrxg0YyA5y3756OevRM9AFfKqddyAxO1KVpTJXgkLyfxwh9KNK+AKWB1QJ8fSZEinOXYjQ78A==","shasum":"aa03fce74a85427499ff8bf701b79f80dc4296a5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.271.tgz","fileCount":54,"unpackedSize":101080,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFo2Ywi+4TzQ1m88oP2U1qiNao0l2FR9e1xVKp5eTdGqAiEA2w7v9JC4C7jYaEyjrbvNT0QT2nBMidrbSzkkeXnpuL8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBfouACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/qRAAktEpKT8bq8LRfONJPmmlwtBYQ9zGv4Bs2scMzC/3HFEOL7Y2\r\n8iJesXzYg0uqlNVKKmUMEsKleDMPKQyyK/2YE0Fho0tBMkfUXOWBFszUf3It\r\njxfvPyvaPg7QbbftOZl0wlY5QbmrFYj4/Ijyg4eHJaOwS0yTI4s12vk4Vx00\r\nFr88OC4WmtOl6M0zUa1MaKOpL9yh4a2FusCebdlYw2N5McsnhzOEbiaDgtPW\r\nJxFzh0bHcXqu/i2mgyblgbKPuCoqcQNBs2cJSCoruF1AB5WEwlF1HhEPQmo4\r\noKiU9YgAmPFi4H9fAcsTytJE8ZT3+MYzQDY3CTwY5W8cWHu18rAEH9EN4OuC\r\n2tY+9JWpv72jpeO6vv8HChP2LXcURkLenO6Go3hBirzV8umUBKPSn5Z/PBws\r\nIx59hvVzugDQnCaZQkJtRL1e49HQiMWjDW59NTIhVO+nP9ek3guPkWc5WQPG\r\ntwCm0QtYnE3+kDuaw/tF3gnZU3DKeFvcIc22IBCs8p+daFH+y0X2Pzq47PNa\r\nWI/SRbrbZZNbt3rOQKz/eEYehRrFr5L52eoe+bVW82mUPlcw3tRHeSUumpt5\r\nkRolCNVhB4/VBTpN8Jq77+lsYkz3d3QaF/yYgwifroPC+QRA4wLRuQ4sSpJA\r\n1aSaG+titG7VxLCECaN2Qf/DmC8uc3UQF/U=\r\n=YRTv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.271_1678113326275_0.3842818195216895"},"_hasShrinkwrap":false},"0.8.1-unstable.272":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.272","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.272+af4fcbf","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"af4fcbf2de49be3defba0dd4985102f452bb7fa6","readme":"<!--suppress HtmlDeprecatedAttribute -->\r\n<h1 align=\"center\">\r\n  <br>\r\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r\n  <br>Well-Known DID Issuer (Typescript) \r\n  <br>\r\n</h1>\r\n\r\n---\r\n\r\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\r\n\r\n---\r\n\r\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\r\n\r\n## Available functions\r\n\r\n- addLinkedDomainsService\r\n- getDidConfigurationResource\r\n- issueDidConfigurationResource\r\n- issueDomainLinkageCredential\r\n- registerCredentialIssuance\r\n- removeCredentialIssuance\r\n- saveDidConfigurationResource\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\r\n\r\nconst agent = createAgent<IWellKnownDidIssuer>({\r\n  plugins: [\r\n    new WellKnownDidIssuer({\r\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Register credential issuance callback:\r\n\r\nRegisters a callback function.\r\n\r\n```typescript\r\nagent\r\n  .registerCredentialIssuance({\r\n    callbackName: 'example_key',\r\n    credentialIssuance: () => Promise.resolve({ ...vc }),\r\n  })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Remove credential issuance callback:\r\n\r\nRemoves a registered callback function.\r\n\r\n```typescript\r\nagent\r\n  .removeCredentialIssuance({ callbackName: 'example_key' })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Issue DID configuration resource:\r\n\r\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDidConfigurationResource({\r\n    issuances: [\r\n      {\r\n        did: DID,\r\n        origin: ORIGIN,\r\n        issuanceDate: new Date().toISOString(),\r\n        expirationDate: new Date().toISOString(),\r\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n      },\r\n    ],\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Get DID configuration resource:\r\n\r\nGet a DID configuration resource from the database.\r\n\r\n```typescript\r\nagent\r\n  .getDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Save DID configuration resource:\r\n\r\nSaves a DID configuration resource to a database.\r\n\r\n```typescript\r\nagent\r\n  .saveDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n    didConfiguration,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Issue domain linkage credential:\r\n\r\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDomainLinkageCredential({\r\n    did: DID,\r\n    origin: ORIGIN,\r\n    issuanceDate: new Date().toISOString(),\r\n    expirationDate: new Date().toISOString(),\r\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Add linked domains service:\r\n\r\nAdds a LinkedDomains service to a DID.\r\n\r\n```typescript\r\nagent\r\n  .addLinkedDomainsService({\r\n    did: 'did:key:example',\r\n    origin: 'https://example.com',\r\n    servideId: 'linkedDomains1',\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\r\n```\r\n\r\n## Build\r\n\r\n```shell\r\nyarn build\r\n```\r\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute -->\r <h1 align=\"center\">\r   <br>\r   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r   <br>Well-Known DID Issuer (Typescrip","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.272","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-PHjxQU+f5/aMJwZX6IJCUxBQO61TVahp7FK41FIQovOVwC/5OCUjwQmBu9J9iGSzJcVs5KjyObkyr5G9tIz9zg==","shasum":"d7d842feee063735cbad76f489205e0bbff05298","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.272.tgz","fileCount":54,"unpackedSize":101726,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHdHsoMCGNApw3S0MHyzDdibejGWUkNwcsBC/AVTv4eyAiEA9D6plcDuqmfht9XgpGAEvEyKu7/BaVIxbGUwPy+zMgo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBgJUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPbw/9ENywi1TDS0bVnM0lWK1yUxeOvLbzbz+kt/2D2H7ivgzds4jB\r\nuw5pZsfeyHbVhxxrLC6fxSVKB8g2mKh6vcnL/lMJ+Ich2/TY9OgnXl618m4u\r\nOUQMwmHdL7Fir+6sCBsb8AYMQw/8jK202oEUUyf7IgvP2NGTQGAQVgCRr76q\r\nf8zKhmMsf7pUT25ZSElSwA6TQU0eXxFey+g01e9i5FZpVwabn+kF/cSsaLMj\r\nId9S6o5ixkJNk1dgSBE3tzbViqo6wLyc1JOxIDtPRRnJ0yIHafe+lctjzun2\r\nVHMxe4f/VFNA26Nj7pr4DhJSTfBA0h2IhbwlrxOethPa2AcdViWcB4LAKRyQ\r\n/uNTKsbmeiRlhnrdLUB0s+sH8JLVCSQ4mWQde/wDBsYa854t4fAGqH8GaJw7\r\nepOL4LjQlTGsm+0avbe4nNp9Ra6Xi3Ne5V3rqHovQnRQ4Ot/U9kfMaorf8Gp\r\nkti3ic8Enr0eovf7M0eG4GFUIZdQVU5irNFR3HLDtMVf4+xIj6x+Jlf8kVog\r\np2yo7VK6YPIYepBP/82nPULW9+KkY7y5STVQTpthfF5BjjvuA3jYwvtCfya1\r\nyRNYRKrZrFgSZZ0HHu04kgUSRM7nN2AxPN77rlCNVtFur+7LhWdE6WM39yFW\r\n1Eexj0yW20ql3AHUhpFYPiyaJhPiri7WoVk=\r\n=mww5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.272_1678115412191_0.8341576660959888"},"_hasShrinkwrap":false},"0.8.1-unstable.277":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.277","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.277+9f18a4d","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9f18a4df8f65c5fc9fb23591404af2ab19b90a76","readme":"<!--suppress HtmlDeprecatedAttribute -->\r\n<h1 align=\"center\">\r\n  <br>\r\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r\n  <br>Well-Known DID Issuer (Typescript) \r\n  <br>\r\n</h1>\r\n\r\n---\r\n\r\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\r\n\r\n---\r\n\r\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\r\n\r\n## Available functions\r\n\r\n- addLinkedDomainsService\r\n- getDidConfigurationResource\r\n- issueDidConfigurationResource\r\n- issueDomainLinkageCredential\r\n- registerCredentialIssuance\r\n- removeCredentialIssuance\r\n- saveDidConfigurationResource\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\r\n\r\nconst agent = createAgent<IWellKnownDidIssuer>({\r\n  plugins: [\r\n    new WellKnownDidIssuer({\r\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Register credential issuance callback:\r\n\r\nRegisters a callback function.\r\n\r\n```typescript\r\nagent\r\n  .registerCredentialIssuance({\r\n    callbackName: 'example_key',\r\n    credentialIssuance: () => Promise.resolve({ ...vc }),\r\n  })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Remove credential issuance callback:\r\n\r\nRemoves a registered callback function.\r\n\r\n```typescript\r\nagent\r\n  .removeCredentialIssuance({ callbackName: 'example_key' })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Issue DID configuration resource:\r\n\r\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDidConfigurationResource({\r\n    issuances: [\r\n      {\r\n        did: DID,\r\n        origin: ORIGIN,\r\n        issuanceDate: new Date().toISOString(),\r\n        expirationDate: new Date().toISOString(),\r\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n      },\r\n    ],\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Get DID configuration resource:\r\n\r\nGet a DID configuration resource from the database.\r\n\r\n```typescript\r\nagent\r\n  .getDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Save DID configuration resource:\r\n\r\nSaves a DID configuration resource to a database.\r\n\r\n```typescript\r\nagent\r\n  .saveDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n    didConfiguration,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Issue domain linkage credential:\r\n\r\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDomainLinkageCredential({\r\n    did: DID,\r\n    origin: ORIGIN,\r\n    issuanceDate: new Date().toISOString(),\r\n    expirationDate: new Date().toISOString(),\r\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Add linked domains service:\r\n\r\nAdds a LinkedDomains service to a DID.\r\n\r\n```typescript\r\nagent\r\n  .addLinkedDomainsService({\r\n    did: 'did:key:example',\r\n    origin: 'https://example.com',\r\n    servideId: 'linkedDomains1',\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\r\n```\r\n\r\n## Build\r\n\r\n```shell\r\nyarn build\r\n```\r\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute -->\r <h1 align=\"center\">\r   <br>\r   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r   <br>Well-Known DID Issuer (Typescrip","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.277","_nodeVersion":"18.14.2","_npmVersion":"lerna/4.0.0/node@v18.14.2+x64 (linux)","dist":{"integrity":"sha512-44KTAo/EbT28SrtZyOXRx5pdUZOQb45C3frRaveehqNvfBFpohpIJ8bUkY6naox2k887kfcGFrNbdSNa/ZauBg==","shasum":"7eae98da2bf4255c3d5d48f00dd032a35a656a84","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.277.tgz","fileCount":54,"unpackedSize":101726,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvhwB/sCRIm07M9jhcVqmg+SGxpXjgIPzFDoqv4xB9DQIhAKNWXqI4kOtbN/C/tyPwMHEwxDiX0JQHlQqB5qgqnTxt"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkByd/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSlg/+Oxf5BMCxBlcSIispniLV3SfdwIWJhmLIaZJaxeYwey553KES\r\nXG6CbUrci2fo4BuPSU6jRrjaFs/7/ezFEjbCczoB222TVnskEbCkPakLKyFx\r\nOtp+uzUyYl1J4raKa/nEFDPhzDcPFjxJlaqUEZOF2X69PjhDCQe0Bf4IZwZ6\r\nFBoZm83eaWI/VZWNwa45VAg6Ib8F9nVSyY1NaP9Qy0wgQTtq7bfjEln1Y0Q7\r\nwPZKHYiiMEG6j/G828Lp5P553Lri4kz/0QBJ7iH+T990jkWttVw6qrVA4NN9\r\n49+C75Y6OEP3xZ57WI6EmJ1hf5R7VBupitwAYNE4K5em6pXHne8/cghmaAK5\r\nS8GOz2z4P80dlXqDoNm55DRG8gJZMiM8BIGihPgtYg/S3Le7YAKNHn2miO2C\r\nHXcIJ3Cf8AssqdrUtpcF0P/BnaFBjRc5sOKPx7Sj/gYhjXqSbvYiVhAqrIPf\r\naqbLS0HKut5rx5E2IONm2Wm5GqsR+RMBuqNHF5868TwBKQkArAfbiexHnMxG\r\n+9b4TANgFLvVNDwZn8MgOC/wZjiw4yB5SJFRLFPVpdtHnKr7i5+GLmE+Mv2X\r\nKzYtOSyEKSI4z4+/DEpqGHccdIPmTylwzdYMDdwADk41EhzEbXo1lBEL/wxh\r\nZTsdoZsumTw2a3LeowZWrM/McK84sA69k7E=\r\n=kXWE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.277_1678190462828_0.050555972791333836"},"_hasShrinkwrap":false},"0.8.1-unstable.266":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.266","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.266+f089ac1","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"f089ac18dc470f0b8c581b49e70e7eba64d72bc3","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.266","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-fWqY/XnR5dbennWGbAWuEfMlsaLO8DcmIGRxBLVdBxogynQR0rfHk+FqbD427V2wFPKokibOiTH+gPbbjbvzTg==","shasum":"263c233f12cf087df4d9fdc45d0d5eb92801f56a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.266.tgz","fileCount":54,"unpackedSize":101057,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC0LhE9aAzwhAh7Vwh0X1zApZGrfGNXR50l61QrJNmw6AiEAqmOIgWNVKrLK/RS0z4apBzbMQVLZhHZ/pMhH6pLwQ/Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB7jTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWVw//UXjeHyTi+Q/fIphe9bd5XSvxbU7sDwEX9qVQ1NmBOrMmL5fc\r\niLvHVU6cuCNG0fsYCpIXi1MKXJfkvmRl2b/HndsgPbj1ySwdOwKan7/EW7AJ\r\nGBjxlJsK1E9xIy3hyQXORnJeSf5WLEhtOQglNBJOutU7G9qXws8h0auFytkt\r\nNiyoZ43zn0yV0wp88CHqaqwgiEP17fCnBF6FeQvvJKVn+354m2GD5ovJvY1K\r\nO8p/haN1XX4b2L9mbCv6yvnlYZfJ/UkYs5ybCq5qxCUD8w5bCfE4ozTwKkCi\r\nJSb2nhvyXuf3z/z+Bj2opLZb+/vIBW+fhM8IOvHJZjhoYG01OUJb1D12Qi0o\r\nqGjGQ2RCsoYjU39YM2G+RgdYwwx2sO7Xd2LuKEDoLp5Y9EeKM9FJRXdvCYQN\r\n1mpyFFyZr74cW991TKKa33Kg+uq2aPGoE6oBEfcUyZVp70Qlbpu8ga1YElia\r\ngiQ4oGzyS+j+rSiaTP2W+g9Mc7u+e0Df/HYluGLRusm2PPJCGJsGLpqpNtY9\r\nV5hoL1aNPC2E74Vca+vOH8hpOFmlfTk28Mcu6k+Rm72+ZMDUclwhE/WqepMa\r\n0jb0vOtvLaa9j8tngoZi4rtoZ+y16FcQ29FLG5dpjLI0V3t0+VPv5aqzxroX\r\nS6xggiWzIxgaEFIBUhDljtUDMLi3LsTdwFk=\r\n=H3YY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.266_1678227667764_0.8249880657524904"},"_hasShrinkwrap":false},"0.8.1-unstable.267":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.267","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.267+3c2b8ed","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"3c2b8ed171aa196473afedb007ba27e4c1c3e71f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.267","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-N6uzwoYEb7LbxAsin0Jq/X++H2y7SpV2wC6c67isNi2iqhmOYWiYWP3RKnGMCJKeXoqxxj4Q3f8/UihfQqVZ5Q==","shasum":"8e17132f997590b255ce2ad4a2290559cd19c5b3","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.267.tgz","fileCount":54,"unpackedSize":101057,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFD2gElXlLUlZP085H0tR2+sglwHeAZFgqGCdzBYC+rwAiEAjbqeEPM6pBEzUewAWvDM6sNqApu9+xvqg3+OfP+ryAM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB8kjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoTyA//e0LPw6YoFmSjaQiHVEJp2XZ3WHkmECrpy1cSUTe7hvM0HpD0\r\nbDhjSyUFQNvAroYk/UQGfeTRj8jl54TjTHnmkZrQ7Ysp4hHkc+cfrKrompVy\r\naE+hTPme+yaWdubZXsMh+VQ+atyUzVbibU8Gtfc6IOZDErCOBf+6FzLTvb4P\r\nDHF9zALMAlTp8pGlWarYZD1RG0X09rZgZnLtZWriTG8FC1yil43keNHu5HS8\r\nSgLY7ipw85ag7BvMoj7hWhPXkolpqk0GttMFnfA8fKMbF2Eou9Qw7rP49NJv\r\n1kEajMTVlpEd6yioHeYz904TTKTxmS+P4PT3BqdYkn+8Vz7TdAyyY95BQspB\r\nnxkepXmhrG5gtLsce58BLL8Lfz6E2qnhSu5oub54aRdMe7Sds8wkwAYdBtH1\r\nU/h+APQbvARnfRQwgmK85ReKDJEYewBr18dYet/QQddEup2QmvpHpnbsrh5A\r\nNCJ3rLuIWxnCzzCZwT6zQmSBGvzOI6b5B8JYP8cgqpwtzuKWpWZ/rOvRps5O\r\nbGTfCz9wnGFj4ylRCN2VkC78O0wbz+XE6Zqn/f4n7DqcClcO32HhcXCJ4+75\r\nkFNKvI3oOUcwYyn0MgEtosBWA+rPXqifY5qboMhTGXkiQGFxTp0FHeq+NmUW\r\n9epMMXeISi7rUe9bBgbG/7A9IJJqMvQrr6A=\r\n=Gmh6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.267_1678231843635_0.6630033150313281"},"_hasShrinkwrap":false},"0.8.1-unstable.268":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.268","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.268+50a264a","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"50a264a366a293a9d9cec9c81aad640ba3391bb1","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.268","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-3hvJjhevkaRcP32iUgPObLigILOKtlHUFe2Mihocj5r+TZmO/RStySbdK+s1A51ZoqZ5cNT2cRjLQwHMgPGRQA==","shasum":"02116c8df940a7fe7ed2ba64005fa0f266745e86","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.268.tgz","fileCount":54,"unpackedSize":101057,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID1J7EgXqiFV51X3GdoNtXRaIfjwplHatq8VZDMMHdQFAiEAv3TpHE5OGfDKBDrMM7oRdWPSEvvYeGGZbn+rC8iUTZk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB8utACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoz/A//Yatt8M0G2TpYxzEdUVwI0J0rpM4CdvZ+UAjsPxVhGublOJi7\r\npX2R7EgSFTSlxTQRBJCF2glUkdP5kSqHw29dW7Br2Ve9RPMgwbJuNdA4UU6S\r\nPwR/ToQNVBtJTkR4cGaVR1u+hWpPptdDf9OyRueC+N2xsrOaELsik3tonhUa\r\n3hlWKkXvKWzZlL50NOg6f2DCbCyAQqemRX/WbwsZFsJ0ashJK1zkMurryNR5\r\ncUixjPF/Ops88KOYPoZoeWh5Q1vkINMY/nMPUjeAl4sHgUjDzQvxwz7+QxJ3\r\ngKaktGTapoVSuoMZZuT6df0OLo4uBukGeaEk5ZO3IQg3ZAHmu8EWcs0iSat3\r\n2sSbvYO6/KPho/Klt9Py1+XWq8iKOlbcG54apVcLlN+xzOa6qS/OecM9+exk\r\nPNzdyP98/PClVSNKiZMhcaBKr1ha9lwsxmrFevSdt2kNopp3hWy95CKBpg0G\r\nLJPPbIF7aGvPQnxQC+ctHxZNDFiEL0D2sXSP99MANr1BU/uWdoRmk+o8zhzR\r\npN28E1rHF4krmsVb8WlqMClBrStRKHcG76ho137XEPo84OfdjZD/pZ1dRHLH\r\nvhBckwRW1tjCYVv5IXFr3FSIXnxsB5fuHkHUmr0EKtg7hmfi3P14bfFjo5gy\r\nLr9H38Chqr7j7rEQIOcCqUBC/IFShGtRkLA=\r\n=GT5O\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.268_1678232493720_0.3476070564493241"},"_hasShrinkwrap":false},"0.8.1-unstable.269":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.269","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.269+4caadec","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"4caadec6fe8afbda53d30a74da7b5c8187aac0ad","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.269","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-LVSCeVmInjS6i6dtEecLHHD+Alu8xI2UOAa6M7s8bw76D+qR6cZkqMpaz2Kf+s6dawuxG5PtUhnMDEiwPJXMrg==","shasum":"df3c15cf3712d9cbaae1cb9a68182846e9d753ae","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.269.tgz","fileCount":54,"unpackedSize":101057,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICVhbsl+3rtVasdonyZFOizYukNju2ddzJ7msCLenvcAAiEA5MDqdO9jQKa/YvGOadbdEtu0/GCK9WS7mWHJ07cY/RE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB9ISACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoR+Q//XUg/vcgZ5WtQhc6MjHrKEwao1eV5lnKNFWjcr/LXAoCDckXD\r\ndf3GfTCbCPJ6GejZ+QPM1u3otv2PdZNrfM9fws3NMGWrHLCBPdkAOcq+QUqR\r\nspQOKkPGqvNJ0Q5Em1qiG6BaA4prDeiQsPordfW9kEsWzB2B8TvManvuSM6o\r\n/+bBIRk/nXiezAZZ6bjh8PbcPBbo3Gc+QfSSPdydTuKyey7nPfizAE2/Mrjt\r\nqCLrAQM6BuPOZHq7I/kqO28ktVqGvZMTcS4WXRKE8Ar2E7W+TGH/l306RPQV\r\n2jDkW59MNf7TJU6v8tzgt0+FZ/YWBcnpMZ+ZdiZPq29rI9LXc0eGMYrJ98Ip\r\ntYsuU+vf1F8r/hlAU1qND3kIat3UtuLq03L2r7KUM68DC/6xKB/WDAyxCUqj\r\n0Py298EVX++0FkFbh1r1ZufGbX6CjXzTZdgKdMXOT9od2GfkcGnAejLB7rt2\r\nBe30iNo29oRN8n1e3MnOHIBOnBB2M/dCelMaYolFlcInNEFZdiEik56VovlP\r\nLIUU9T7ixWhhysVzwRWbVkB0nJIyDX0IcI4zMUZ6wBpkRJqR9JS6TScekKRS\r\n6WfecfbnBwrH+kUqz6b5YN19QN7Lq/wOZLSrxARHjRqQtEyX4UWVyh/7PzKP\r\nMjoP6oBFRSUA0jHcxXw8o/tiKBwLzF35SFk=\r\n=f20m\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.269_1678234129981_0.2644562033780944"},"_hasShrinkwrap":false},"0.8.1-unstable.270":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.270","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.270+8b6b21e","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"8b6b21e50655c69f0aafe533faab93b47825715f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.270","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-/NGsWFvNONmj+d0gkuNaRY0pMgZXV+yyBfptonK+2Bn1WLME2eA07JNYmnUptioNoaJZUQR/iRm60t70KpH8qw==","shasum":"8eea94392a0f7abd54ac14bccfa02aac59344ac4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.270.tgz","fileCount":54,"unpackedSize":101057,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfh0GBBXOqMD7EgBUgqre7oK4DwRdNONAomBp02U1chgIhALNj+/a0zyNxBIcWYELqYF51YSsENB1EeGHhGvfChBm4"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB95sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbYRAAg8HuHLyXpa0sq+A2j3/8bw4RU8oSZm/LtnL/xrlmOLC42iw7\r\nLYnRb15uvpNP9ySwiwc9HG1aF2V0bfAYwaC07Zggc1K9TQ+tCtiwHgngoqGD\r\n2M9yastR/OZg/m5yy36Six6LT5zwq1e341btxlY/gNRx0vGAfsd11eggu66g\r\njQMCZESYYfEaWdHxXtuUexXnVpQrlwcKtQIg+lKxV3zus58Vzk8UWDp1fiLW\r\nQZ0Mc/is/JEhcjbSqcY8Qsy9ZSXitnuKjhMuQzWsiD4h5OnmcD5pfd4b5vVS\r\n8u0f1TMGwNe9le1h70h7/kNnbXpYX6NAqtpdouMnWqQrPB+UBVr5AnixfH8T\r\nnAsy50N6owgKVZctCysUzJoYMcYUYvU0ylZSR7ASjWn7pyAlQhJmzEkZzNLm\r\n9O94+sCPMfm228FSciZTHjmex9pe0y8w+EBUjYdNnchL1FQAg5wTABF0s+gx\r\nrEgjktYFJcSXoNcQR4GWLuHw8/1zuVmUHxpk3vdQ9AuGO6Hoz0sDHs64aq0E\r\nkIfZrwgvCG4/1qSy/G7fuhujWqXw0F9hGmqIZtX3F3aASrJ0kzNF6v3p26CJ\r\n+wggZtMBuan+xlPOhf3Ws0ZKQ+yeBL+7J2rip3zP3MDz6XogO9oI/Ju4Fx/g\r\nyJwRxEK+VbVra0DZmyfcF6RwBNkIe1Q9ntQ=\r\n=BalO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.270_1678237292493_0.23319518395074312"},"_hasShrinkwrap":false},"0.8.1-unstable.278":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.278","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.278+ced76fd","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"ced76fd69a1d8235dcccaf77a6a619d9aa7838b7","readme":"<!--suppress HtmlDeprecatedAttribute -->\r\n<h1 align=\"center\">\r\n  <br>\r\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r\n  <br>Well-Known DID Issuer (Typescript) \r\n  <br>\r\n</h1>\r\n\r\n---\r\n\r\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\r\n\r\n---\r\n\r\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\r\n\r\n## Available functions\r\n\r\n- addLinkedDomainsService\r\n- getDidConfigurationResource\r\n- issueDidConfigurationResource\r\n- issueDomainLinkageCredential\r\n- registerCredentialIssuance\r\n- removeCredentialIssuance\r\n- saveDidConfigurationResource\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\r\n\r\nconst agent = createAgent<IWellKnownDidIssuer>({\r\n  plugins: [\r\n    new WellKnownDidIssuer({\r\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Register credential issuance callback:\r\n\r\nRegisters a callback function.\r\n\r\n```typescript\r\nagent\r\n  .registerCredentialIssuance({\r\n    callbackName: 'example_key',\r\n    credentialIssuance: () => Promise.resolve({ ...vc }),\r\n  })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Remove credential issuance callback:\r\n\r\nRemoves a registered callback function.\r\n\r\n```typescript\r\nagent\r\n  .removeCredentialIssuance({ callbackName: 'example_key' })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Issue DID configuration resource:\r\n\r\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDidConfigurationResource({\r\n    issuances: [\r\n      {\r\n        did: DID,\r\n        origin: ORIGIN,\r\n        issuanceDate: new Date().toISOString(),\r\n        expirationDate: new Date().toISOString(),\r\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n      },\r\n    ],\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Get DID configuration resource:\r\n\r\nGet a DID configuration resource from the database.\r\n\r\n```typescript\r\nagent\r\n  .getDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Save DID configuration resource:\r\n\r\nSaves a DID configuration resource to a database.\r\n\r\n```typescript\r\nagent\r\n  .saveDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n    didConfiguration,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Issue domain linkage credential:\r\n\r\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDomainLinkageCredential({\r\n    did: DID,\r\n    origin: ORIGIN,\r\n    issuanceDate: new Date().toISOString(),\r\n    expirationDate: new Date().toISOString(),\r\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Add linked domains service:\r\n\r\nAdds a LinkedDomains service to a DID.\r\n\r\n```typescript\r\nagent\r\n  .addLinkedDomainsService({\r\n    did: 'did:key:example',\r\n    origin: 'https://example.com',\r\n    servideId: 'linkedDomains1',\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\r\n```\r\n\r\n## Build\r\n\r\n```shell\r\nyarn build\r\n```\r\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute -->\r <h1 align=\"center\">\r   <br>\r   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r   <br>Well-Known DID Issuer (Typescrip","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.278","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-4ksOdm/CEovAVXkmU7myp4kMp5j4xEAzRDT7lzf1BbaY2KoIBxcH1u/yBq7vDyjOk0NKyc15QJuivlWiTs8rmw==","shasum":"94a7d48076326152bf28bfb4069ca87a9b71f200","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.278.tgz","fileCount":54,"unpackedSize":101726,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICh7l1JaWNeupY8ZsUcMoNpVsf2rC+qs8KKjunvyL+EyAiEAyDICVAx1DnugZzbNzHX5DW+AzBQxyPdsJwD9l8+RETo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCLerACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmouuw/9GPbRZr3rqCJ/PTAisOkQS0QQ1YHPpU+yRykYV+or5aQiZ4XL\r\nAKJE5BE2CKEISTJmIVA1fkzCubVFNKYXjb3HJquu+Y+X2IkdLAXosQOHcIw4\r\njOYusmd5QT+Yu9dqLu81tn+6TVZ2mcr9Ff2pJcGeDsabU/M2iKB0zRO3vfwE\r\ny2oTQ0SJlc5f7XOxvR3Oow9NlDBEg1CO20lTl1+tMvFdsQ4UplLZiFFofl8d\r\nj/W2cnDDEDL/jsv/9uqxx0IIjkkUH1CWctDRdGYetxmokWRNWArDgxB0BqgY\r\nY1X2BdlrNWGBpKjTRHxfyKU2iYElLXFbWpGVaCB06/ihoDDJjM2NJ97l5bZP\r\nE4ZdourH04nNS46AKQlzUZBxSO3KX7n2vaOoZ6BFsTeguJD65SgX1eNrD3Rg\r\nHm+iMG2E/BmRqaLip2hK44I8wlJVBUqdoYjCCbxW4jPCxX2ARrhxrCPmESRa\r\npxG/Rl0ODFKebWfx+DAT3pRH+e1tfJ/QAvco1IqzjLaE2Hp70KJTpJsjiK4T\r\nvyeZdeldkpv28iHOPj0MpK+15IHJh2dM3dCa+VUdYr/M9eF99HIo0bRtwajs\r\nl+4r6+s2JSv5A6s4So5bn1RQbFqkMT7cScCIZikMRGyw9IMpaoGVyXTcSuBa\r\nJv7BEIK3rH39sOmE5LaiZeFoUCOg77qnmBc=\r\n=x+P5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.278_1678292907221_0.4583508203255704"},"_hasShrinkwrap":false},"0.8.1-unstable.279":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.279","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.279+31f0db4","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"31f0db4b692262cab82cfda3d038589f1987fc69","readme":"<!--suppress HtmlDeprecatedAttribute -->\r\n<h1 align=\"center\">\r\n  <br>\r\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r\n  <br>Well-Known DID Issuer (Typescript) \r\n  <br>\r\n</h1>\r\n\r\n---\r\n\r\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\r\n\r\n---\r\n\r\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\r\n\r\n## Available functions\r\n\r\n- addLinkedDomainsService\r\n- getDidConfigurationResource\r\n- issueDidConfigurationResource\r\n- issueDomainLinkageCredential\r\n- registerCredentialIssuance\r\n- removeCredentialIssuance\r\n- saveDidConfigurationResource\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\r\n\r\nconst agent = createAgent<IWellKnownDidIssuer>({\r\n  plugins: [\r\n    new WellKnownDidIssuer({\r\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Register credential issuance callback:\r\n\r\nRegisters a callback function.\r\n\r\n```typescript\r\nagent\r\n  .registerCredentialIssuance({\r\n    callbackName: 'example_key',\r\n    credentialIssuance: () => Promise.resolve({ ...vc }),\r\n  })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Remove credential issuance callback:\r\n\r\nRemoves a registered callback function.\r\n\r\n```typescript\r\nagent\r\n  .removeCredentialIssuance({ callbackName: 'example_key' })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Issue DID configuration resource:\r\n\r\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDidConfigurationResource({\r\n    issuances: [\r\n      {\r\n        did: DID,\r\n        origin: ORIGIN,\r\n        issuanceDate: new Date().toISOString(),\r\n        expirationDate: new Date().toISOString(),\r\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n      },\r\n    ],\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Get DID configuration resource:\r\n\r\nGet a DID configuration resource from the database.\r\n\r\n```typescript\r\nagent\r\n  .getDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Save DID configuration resource:\r\n\r\nSaves a DID configuration resource to a database.\r\n\r\n```typescript\r\nagent\r\n  .saveDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n    didConfiguration,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Issue domain linkage credential:\r\n\r\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDomainLinkageCredential({\r\n    did: DID,\r\n    origin: ORIGIN,\r\n    issuanceDate: new Date().toISOString(),\r\n    expirationDate: new Date().toISOString(),\r\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Add linked domains service:\r\n\r\nAdds a LinkedDomains service to a DID.\r\n\r\n```typescript\r\nagent\r\n  .addLinkedDomainsService({\r\n    did: 'did:key:example',\r\n    origin: 'https://example.com',\r\n    servideId: 'linkedDomains1',\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\r\n```\r\n\r\n## Build\r\n\r\n```shell\r\nyarn build\r\n```\r\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute -->\r <h1 align=\"center\">\r   <br>\r   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r   <br>Well-Known DID Issuer (Typescrip","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.279","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-0b5+2ocD6P9oPaQE8/EnXznzlgv4QiWaHc/FoGXLCWiE8ue0ng839ZEA1K4n/jfU5w+YWvBxmaLsbw6yUrPiAA==","shasum":"a5d1c96c3b608dd4cd4d2b4652278005473c8da1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.279.tgz","fileCount":54,"unpackedSize":101726,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3RvZMts4TOSbsv8+Uu4pxnTTUcOAU+k376lC29YA0pwIhAO81HyXi6VN0F1iMhJavEtsD0B0cKAGu1cmITwj36rLK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCOXqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDYw//eRuIMSSyG6F73JjjDdMLB1/cP8dLN7+ziplqouRnOWJ0Seou\r\nYWSZPi/wsiWcDAjXpbud+ATrjNN5n/ugVFVk4ExTR2sY89rEDyyXsXlgH0d5\r\nQrnPEmtHnZnldsdT0LkhP4xLNXQjwkdSmqlmjYWdb9nd+JBp7pfd4yWCmFj4\r\nmgjysZ7Qs5rcFyudo4KuwrNJc7HnXgf/KJUNmgvrmjkmLXb1h/hJv+S61GGr\r\n3eJqoy68jpv5U/EHFd9cuor4ZS+BF4Gd0MvQZmugg0XjN98EPwdb4buzIt0F\r\nSZFHNAph3P9G/mHexPFKQE07sjx/Bp2eHem8xam3h753AnIi2TaRmDs6ArXt\r\n+9E/3zg+vkfPAT9/qUD2Qg+EYLSExdH+D67eZkF2cmZjr2QKvvMy/oJAJzJp\r\n4nVlGh3lbDlmlMQ/PTVaDKkEcRAeWFFI2CcDL5QEZDmWlIHERpt1Wrkkc65l\r\nIHuzHckxKvXXd1uu3LK2KZ6x8xu6Z6o+t7qB5W7RwuqSAR0aYEyMZRS1uOkx\r\nAxmtC0OXLUY9tUtGh0sztli2uJITIpIce71xtRF3peaCucDoBIkKELzfPXxf\r\nFTJrxM37vyrFVZc5HWHLkgOOv/B/GSxQ9mEcIX42tbvJTJ5VjvSS5JPxxIXb\r\nfxyGIzWJ/XoY2H0yL3F3732G/drbmnOWh28=\r\n=qxmE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.279_1678304746623_0.3183688474117883"},"_hasShrinkwrap":false},"0.8.1-unstable.280":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-unstable.280","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-unstable.280+fb79036","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"fb79036acd60a5da2aaab44b49fc942436d3b23e","readme":"<!--suppress HtmlDeprecatedAttribute -->\r\n<h1 align=\"center\">\r\n  <br>\r\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r\n  <br>Well-Known DID Issuer (Typescript) \r\n  <br>\r\n</h1>\r\n\r\n---\r\n\r\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\r\n\r\n---\r\n\r\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\r\n\r\n## Available functions\r\n\r\n- addLinkedDomainsService\r\n- getDidConfigurationResource\r\n- issueDidConfigurationResource\r\n- issueDomainLinkageCredential\r\n- registerCredentialIssuance\r\n- removeCredentialIssuance\r\n- saveDidConfigurationResource\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\r\n\r\nconst agent = createAgent<IWellKnownDidIssuer>({\r\n  plugins: [\r\n    new WellKnownDidIssuer({\r\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Register credential issuance callback:\r\n\r\nRegisters a callback function.\r\n\r\n```typescript\r\nagent\r\n  .registerCredentialIssuance({\r\n    callbackName: 'example_key',\r\n    credentialIssuance: () => Promise.resolve({ ...vc }),\r\n  })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Remove credential issuance callback:\r\n\r\nRemoves a registered callback function.\r\n\r\n```typescript\r\nagent\r\n  .removeCredentialIssuance({ callbackName: 'example_key' })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Issue DID configuration resource:\r\n\r\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDidConfigurationResource({\r\n    issuances: [\r\n      {\r\n        did: DID,\r\n        origin: ORIGIN,\r\n        issuanceDate: new Date().toISOString(),\r\n        expirationDate: new Date().toISOString(),\r\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n      },\r\n    ],\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Get DID configuration resource:\r\n\r\nGet a DID configuration resource from the database.\r\n\r\n```typescript\r\nagent\r\n  .getDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Save DID configuration resource:\r\n\r\nSaves a DID configuration resource to a database.\r\n\r\n```typescript\r\nagent\r\n  .saveDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n    didConfiguration,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Issue domain linkage credential:\r\n\r\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDomainLinkageCredential({\r\n    did: DID,\r\n    origin: ORIGIN,\r\n    issuanceDate: new Date().toISOString(),\r\n    expirationDate: new Date().toISOString(),\r\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Add linked domains service:\r\n\r\nAdds a LinkedDomains service to a DID.\r\n\r\n```typescript\r\nagent\r\n  .addLinkedDomainsService({\r\n    did: 'did:key:example',\r\n    origin: 'https://example.com',\r\n    servideId: 'linkedDomains1',\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\r\n```\r\n\r\n## Build\r\n\r\n```shell\r\nyarn build\r\n```\r\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute -->\r <h1 align=\"center\">\r   <br>\r   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r   <br>Well-Known DID Issuer (Typescrip","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-unstable.280","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-P1T/jLax8QDcThucB57vX1azn2Jm7bq0LXDXD2W150EzOSFUfSW+S6V3CtJA2e3mHyFwIgUVb69bMEYUrH/EIg==","shasum":"3ae6e9bd81d5a41c91aa8684442513c2de75c9f4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-unstable.280.tgz","fileCount":54,"unpackedSize":101726,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICsLVEqxQOBtwbTZTQtbAz3LTlN1Qlb1g9MP8oh/11J1AiEA4qVrcufdDp13atd2HpdwpxLLmjMU3m1M7dL2pRleElY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCQgvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUxw/5AN/IZ5ibRiEkcK2oeO48pJuvakH0h1q9o8reIs0F18DKX6Y2\r\n/pdLRzAPl8v9x9x2dd3CcELpPod/YMm1M5ti3TawNppv91oqsV0xH9HI9OnD\r\nQQ+mRENvv8LS1AUOMyn1ak6j81RooaOlk5Gl6D0tDVFEnaGRbtc66SpTDlAv\r\nBmT+OnzlD6VSXo2UcJuyNlzSu7YfUyLLLb+05lto+xYkeqPUseD18TjP9QR6\r\nFqhaMWdui23aF2+zzQoPkWrTlC/kIRraiuAoawLirf5Ht8Jf1ugapXC6SVit\r\nX5SicR+8QV70Yc+ApeRvE5EKOrkkSnGiGWW5+o3HRHTWXR4vZTYg5AyGC/zu\r\nzWnbmxiSvqlYbr1UOppZSyz9pcBZrmPxIHz+PaMC4qgcgkPcCIu12g5uGj08\r\nP8EjiW5kRniIEuYXFIGe5jq2SmYWlWX7m/eTTozCvpXEPx80ILnfEWv4Y5Rc\r\nP6ElKm3Attl1BuB7ez0pJDeLMo/Zf2yUCfQ489k7TmO2WCbz5XdC5h+NOpmf\r\nA1yh4ABLOArbdIXTMqZko08jNFq6GLjmdG2+jtph9/igI/oXuMDMNXddstXA\r\neDqdewUrJWe11TfCKzAUAbPjFBxmHo23IUN/wu+x+z8VOtiuJjnpe63o5VH/\r\nqq2GBYa8qKQe3RAd+epV2b6/zOVPWK/xHvI=\r\n=4lbF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-unstable.280_1678313519692_0.8279882721616247"},"_hasShrinkwrap":false},"0.8.1-next.272":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.8.1-next.272","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.8.1-next.272+a34f653","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"a34f653b26d26b6d980aa9196b814ad42cfa5e3f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.8.1-next.272","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-2S/HXpY5YMxod5A/DY2c6fFuAOy9Ylhpld6Ld9DOpA7GxuKIbG93mvFRmUNstNxWisKXb+xVcSPQS/kD4yMyww==","shasum":"a667a4781e66b88f690c1b94ac3e0d9b87d62759","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.8.1-next.272.tgz","fileCount":54,"unpackedSize":101049,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD++rNKUEZeP7oXVYvTZP2mVZHaMaOWORy11N0bZfauwgIhAJAHWr/jDjtfDzEHMO0k/PoLciZh7Mf0TiKw/Ut2CUFT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCSo0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNbA//UvQptHHRixbUV2BUJsh379Zgrcd0sYn1V1CebZyi9w8f/lBo\r\nbTeuu/0gDApQAN2vEvBa3rU/YvW7FHOg6JAIfOtl83EH2MG8BtomT1maYNcE\r\nj5XhSsjv8/rLB3xgpTzb9MTKTFfiFsKJqf+N9A7s2JCzotJ2DVoDgteZ3m0B\r\nLCnbgfzZYFtyRasJZXPSe7aZ3K4yfCIK15aPvERnOUiCzzYZUAJRRJMZr4i0\r\ni/+ADQrgnlqBprh1gtfvfwiT2TKtPYulfQKA/VOBGatnqHqm/7MhxhQ1UJy6\r\nN6P+PJLg631LT+yYzS5McOGbMnt5xb2mbp6Er0FaLzeIjDCjuFaz+e6dulNv\r\nhtvQRLokje+L4/zecIOOCH7Cc35zEhKb1Ds+skoiWaLSJT3LKUEG7vcUQceK\r\n89tuVFKbyQTt/JvAaI3OhEY98bAK4M0WgjksvvC8sgOBpo4IxsHNX+sfmsJv\r\nhd3TiMoO75hXh2ijwfb6zlaY+CbRuPGvNpPJxgOFnVAzktvTxlcuTT7FLHFR\r\ndWd2QiNk7fXMIAeslQfqgZ/drZK022VWt+SyLU2knMVbbGPHr0F/p2SXeotO\r\nPi8hE6cy6W7il4P5R7VaxF1XwjQ7X7XxbrvIMB+CWKeMkgIOtTosDndcBQ/K\r\nQMaL0KI9a8mwgQYwL2/xY5o8LNim8ciyVIY=\r\n=azPU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.8.1-next.272_1678322227832_0.7160602824095088"},"_hasShrinkwrap":false},"0.9.0":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.0","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.0","@sphereon/wellknown-dids-client":"^0.1.3-unstable.1","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.2.45","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9119280fec93d685824f0baa454163d703431025","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.0","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-2Z09pt1bB7KxeTcuo9YxOvzUdkCVzVKjNW1uER7FQrt3m8V0aBL6IfTX6PCQp3x1nQWrp0k5tV95+B3e5R9TrQ==","shasum":"d071554ffc2ee989ed0e2ad7bd3ed963397c7dae","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.0.tgz","fileCount":54,"unpackedSize":101015,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgReckfm3PdwHeWVaEbTrjUb5Z1NiVKakGOk540uYNxAIgSzvuffxHR8SIb7f7PrxTe9RtQiQ3wgsVKv0EJGF+mWQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCSxEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRpQ/9GBkdFJKv47sKNqsPY2Zl56dMw+lNVBOcnCZxw7Nt860jluoR\r\nuYzneSD3hLDTJgGtDzcifIVz8yXb9UvxRVILOttuESBMiB1ls9JrYHPWYQW6\r\nzrX2So8aNENHTJoXm+wHfS++/JjJQJW7qHvyCI9GynnqbXaRYChTyKgeVDtV\r\ncAg4JTdr/j1HNwXKRi4olX0H8dy+5ti7kZ0FPfVHCPJefkI6fI14y3pGwRm1\r\n8LrFa2HMaaBSgdsGQPYrwLZHAZkT8FhhHTp/EvwNloOycR1T2cygdkrA0wLe\r\nE9146CBayFFJYdpOHq6/U384o3ImRiZZew8I2Rpm3SXlsKJKJMVBZIhT8TO0\r\nxCKtjkTLvHH7ZoIuPJAF0aX+038zMpwDCD3vdI03i3c5QAbbW/r7EUxY7eE6\r\nUBV76D0PYic0hvSaVhwkIt+arPRPTcKZevrkPpXK0CRXfia4z8jD0wr3tsQo\r\nN41q6qzUs/EThGLP13qgRnUfJkQNmtd/1EjxweT32NJEMFclAYQjO3TAbcOg\r\nCKItNpr0FyGGaxkO0xVX1AWPbtkmLBJ4C0CeSaUb9smduX1uKlnxKcfgqRkt\r\nqyoqj0Z9z94KPAzF2l55cbRlepp/ED1c0vRI7URxOcDO8ijjCvVi+Lzc5hwk\r\npdIqHXLjVXYkfu2GGvtr2qghpIGP/0pMKLc=\r\n=J7HZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.0_1678322756711_0.37990258940839183"},"_hasShrinkwrap":false},"0.9.1-next.9":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.9","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.9+fc228a2","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.3.10","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"fc228a2e85d72e0e1118d71ed8ce6252f4bc273b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.9","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-L80bvJQV2EGqfxjE47fvoKo9uTa+HADCbYebEIvOInwzQIWjNZG1wCsYEs7IvZ7QBQEmZ3y4b/2NHWyfwo7xHg==","shasum":"5cf8454025b50b7a2290bdc67024157e853b2703","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.9.tgz","fileCount":54,"unpackedSize":100964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGwuP1nFGakVmc5V9cJ9L3Z0IUPlBiRaoQQhvB4mK/3QIhAMXU46oOdKBdChBiX0pAvN5/h0Ber+i2B6Ew2XdUJZKq"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCn6WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3IA/9HKqtDEGd0rUr1rVKElgHj/cvElsoayFgjgMJyPEomBVhYzNS\r\nQH9LhUiPv36VH1s6wCp2jOQCzlQfkAIUtqN/Ja1HucTfrHbAzCavxWmJ6R+G\r\nhyon6osX6PIJU2WOlByIwkqmTJVphVLis6cJbqpKluL9peM9WKLDTg3SYi7r\r\n5PBeCoJZfa+UNOl13lpkBkjD+px9uNHCnzHXVk+FHQbe5aWL+IcfhOyXNFZN\r\nJF1N7s89cXOaXJWquGbWIXWq3brr42vgs/312D+pLXx4VEAGb6bIQfMJw8qk\r\n/6Qdj4xg4W5U4pmX90plQ6oXmqtfEJwJJYLQxF2Two5sDgAv/fm4C5O9vvRH\r\nWZjPUDYxdZFDNLqMXCvwLySCLUKqDglJ5dx6/5RJ7MkI6Q/9xbQQ+x6XMkFM\r\nQypxMDZhUv5k134BGfu6D4YRBiYiG89iHbhFj420evdS7sS2KCe72147nvTT\r\n2rFcP+LvrpwAmq/BZrxT2TmAJzm8Faat0s66ue6q4V91Mr6oxOFzKJJkaryj\r\neqBDL7GJRfs/qWcmhn0Yjmcfy4bv2u0rA9ToAcLEcn9oPDQCO9owR6bgI61h\r\nkPQ7/FVCQoU/9WzuOHZukqlDtHsdrFaHAEvJCMwe3KuIhZXy2LY1+ng0H5X3\r\njQhiBLO1b8qqiqegqCR83b4iKmN47hHr2ls=\r\n=hHAL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.9_1678409365834_0.2429975199274128"},"_hasShrinkwrap":false},"0.9.1-unstable.17":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.17","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.17+9f929cb","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.3.10","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9f929cb88baf569a1b51d699d1cd2456c5d03255","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.17","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Ss08SuRb/zHlI5r3mGXoIpLFdzqs9rPCwC3SuKe03V1oQgIazI9fqJE/VCcu1GgZ4j7QpXbShj6smFBtsLxXAw==","shasum":"a6a9c17493f298662a3908d7b87a3fe706865f76","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.17.tgz","fileCount":54,"unpackedSize":100974,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClfgbHIduHsl5PmX6EOZAS2dCTMOp2VTNTfTytTYOtXwIhAMyJsNtvMQEymKHzeIX3ZoLhLYt9ZzwGlyjx4jIiBr8a"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCwYDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrqURAAgRjsSvjYAfWWTcpILGtfptu4dY3OPzz0ZZa1rt2UacZZ2JS4\r\ns5mm5RD4EAIDPde5djgfO9cBfzvHarRn2g68/SLKa0n2J3EkRil6ncEmymEy\r\n9kuYm9T91fW4Kls27bl8skzQW1yUJccZTvuk7q82PkGMIlW0Xv7zpvDHWlhz\r\n6zxjYmEI7PHWtA+ZLaQncWjlfEMO4ejqB73HQiD/RW2kIQN9KNjJ5IiqiOhd\r\n7nCIeymXD4BTXgRvT22T5JOI6REjLH8zIpcDY+P5bxTBdipvQg3KN1/GLlN3\r\nhOBZSXB1pP5Ls7qc9AvshENl3r58HMKJgoaCpRdv3cB0Acj/c8ZVW5KxjB+m\r\nd/f2aKD2JzLmHRuHHtpRcBMS72nIs2tq5JHQdy4axfoPKeLVuBBIxdAyEuvM\r\nMJYeQnW6V9WGM7VPvljwx5KsdRMfuTF9XmeRIjVP3HhKErHXWgTm7019P7Ze\r\nLnA50V3BvlyPTwIPw8DdUxfFlIv4lkZb0E2Sjx5OcedTBgdM79jTbKmBHEaV\r\nYJD2dM1fP6n/bUrdSMIOsMBvi9dvO1CFBQYk+mtBT5Bj0GutqFbU0Pk9iATk\r\n5Ym1vMDBHZ6aF1DjLXDA0OE5f28x9EFAEIpS9Ckc2BYqir2465eFIF5fyfUY\r\nMZiilbSEE2WIR11QWMxqLv+u3hbV7+q2BpU=\r\n=Aeq8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.17_1678444034977_0.6574443586901935"},"_hasShrinkwrap":false},"0.9.1-next.10":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.10","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.10+84c08f1","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"0.3.10","uuid":"^8.3.2"},"devDependencies":{"@types/debug":"^4.1.7","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.0.1","nock":"^13.2.9","typescript":"4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"84c08f19f2d40ba7aef0c3b5642c99fe857a2d84","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.10","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-ucGFhZKa12mcIBInLaYEFmgqWgEfsBJwxN3kO15uuO3fQCxFYR4sAOX2Xz9/t+hTPcy8LQahZiiMeAVhEs/DMg==","shasum":"7b62c047feb3e2df5fc1410105e1e99da2f5f9c5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.10.tgz","fileCount":54,"unpackedSize":100966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGGBdQ5nInhEBtsLxD0P2ZqixrA1x8WRPf6w2mxjJf1GAiArIKPnlUDJl0+hp9RkKOCXnPxOVZJy4UAVHGvXgpQZ2w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC8W2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrntg//cifHATRjP9MzYGqrGS0hLmQjV/4mCOajo+3RdYqY2+414D69\r\nSIPstYu4cORuSyqFoWgsJqCxNZGNv/UnSjTTYyV5gkuLvge8fIj/MG7lDEud\r\nnwpWk3lmNxItfjCZrxsE4UeuBqkFi6i0WrckdIYVSJ5fK/rIFuQ5dGhxJSB+\r\nb/ms40gKf3JedeauBt/qYtg2k3zMRCtaopwqdACnf4UrncqNmmnML3Q0VPTH\r\noXxPHqBoNfxCnZSWh6yyyfWs61lokGReZaT4B4yaj/KRL/Ope/10WB2sfCdO\r\ngq1VSKrMYMxcawOHmWrhQZIZq/9rvzczm0SRY3QHlBacNr5X+1fc6/Oa8ngj\r\ntcbJbQJ5ZGO5c2fqIda7B9pk0yLS2zuetbs1dcQ3W7C1/DTMT0hv2O11EdVN\r\nzn7ISucZNJy1egOER2PAEBQKWG04pmho8ikm4G58+/gIgmBogUk9hd5cbP2m\r\nWYPo2g7BKbkoOQSuR9Op5LYlVCJsEClLA+VOqoX9hA6M4BwQo1tXdSDvBr/Z\r\nHCqmKjvgF5a8QUV/lyIypcVfonl34mc8UaCd+XDotUwdv6zkMoEknGluSLCQ\r\nz2fvoFrxx2GAOnnCV9BNQQ1LtN7WJA7D4oSPHQu1aeqw7ks5CttBPOxiDJuo\r\n+7SCQMc9CDyUHYvtlscowmJ1H3nbyOLINqM=\r\n=63eu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.10_1678493110363_0.5677685558816834"},"_hasShrinkwrap":false},"0.9.1-next.11":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.11","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.11+0cc08b6","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"0cc08b6acc168b838bff48b42fdabbdea4cd0899","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.11","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-dBSbDiJDKQpwEzNQDafN+bu11YsNs+/USkD5jH9SLJHtfYx5xmujbs+Thn9HaAT/L0y+zgViLO/MQouYPrchGg==","shasum":"eae6197e00ab3a84dcf33160d407463c65c67096","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.11.tgz","fileCount":54,"unpackedSize":100907,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFnZZ7QwfbJ/VyibpQYVjvrow2N+rNXnwfzt5Elcg9pwIgfVmjoMWCTPEBoPkXY7Hk+0B6eqJIUmcvcl5sXHXLBj0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC8xbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpvsQ//UMYyBAWpAe7loRe+bOSCO37DIB1v8KVVFnCjhd3rJgVmt2+A\r\nGExULJIs1EgTfUfjLdDW8bWq1g4ch2ymo3bLr5QSz5edMAwCaQW508cNq9O1\r\nQZH4l1eOVWbfOR5nKKyYFNAWWtvICIlfjXFJDxEFDXQoFt93ApBmda8VYdi4\r\nQyyLCewVLGnI4UcnRP9r8QhRk6DlxeoKXGogSAEP2iE17CgN37if4kNBca9b\r\npF3JIgceiYdYW2MMr8Y1MprtXxB+UnyAeILWljvghdRemTuJBV4vq3JenuRt\r\nBA7wcVD91EsRMuvA/hM4+6byHGFLn2UMEG9jN6Oh96DdXBB27HWBh4sbAnNv\r\nxOVeDeZFxIri0lwkjG4h0Ft4TI4jie8lSMuZgu3MPKqRAhgtMs1msKunWUoh\r\nisXkCHhiPZJssnaq96s0yX/kUJe1kTafCd4gje2cMae5Z7EMHuwWhypR6IKm\r\nHKml3SLz8q2mswissCz6hoPpn5ssIYs7WkRZdSR516wXFyFaNe28wTyCF4Bb\r\neYeczgPRx3PVBXVX9dKHZs4mpAiFj4gDcNOQhEDa56bH4Fnh+E4/F4foxjXU\r\n0kwuBoHV5eDTejs26q8yuugUjERjCQnKWmp3LMDJT9qbSiDqMHYmtbi2I8m0\r\nl+qTVXBJDxtJ5AhF6wudfeTFUqGuCkcHhpk=\r\n=aDhB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.11_1678494811356_0.5770107525886967"},"_hasShrinkwrap":false},"0.9.1-next.12":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.12","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.12+aca017b","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"aca017b322fa302461d7a8482f4814c7fe1b0f9d","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.12","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-20XUEXyoWIUVW1GnqEE+rkjfU96vZ1oe3qSghmRjcAG+8oAnWkIU+rd/ucvbb1H2Zx+Zk6Pdeww1jPC8uY9dfw==","shasum":"efb1cee76b0d76a49fc6980daa88f66ef092ac1f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.12.tgz","fileCount":54,"unpackedSize":100907,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa724/AoyaxK+SuZV4wDP7bFwX1r+I13clup9FB7GsKAIgM8TcmkajM1XhyU/WuZZcWVPuIU2cRE9aWoL6EdYq93Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC9URACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrLYQ/6AnEEY6i39qkK8r/68ObuqMtM/G982pJsUDuAgmqMjOYhyyCy\r\nGJQZ+Kq9p+Uhc+AfyarFS8cuMDa8c2rEV1kVkqTFjfZYJe3915iB8NfWFYqX\r\nY9SR6EPF873tfZ3cf4x2BSfERYUu37afTwrGJ4KoLC3e0hY6fgR9rm9R88oo\r\n9koN/Lg945Dz8SXY2E+P1Wub5shYhNwraJBYtkzIk3kISL0cHp7XU4lY03u6\r\nhvwcY2B+b0F80WN0+yWMwuWf/Vbt5ldl6uF6Ohszdf5Pkxfo8cNucOnLhqB7\r\nW2ZHAztFou5NEOiwicxlhAs7mSUbKxb1kxp1RLqkl69LeF3Fhj513o8eTJPB\r\n3H41CYHCwzxMMNOBIlAOG6LLH+Va+JEsDOarN86Sa2xS0rc32G0Ir8gpUBg2\r\nHbhfAOCpr6sc1P0lJ1rXsNHzRgTwjD6BVQ7dAZH2PqLTsQ+Jnl0HAQpizJye\r\ndJLDRUxS4gra0dMtbYFOX5qDkIMURjcF/OqLm39TLBLgP7hADs6RmVOPZqCY\r\nOa0Oq3gZXGYtF4a91LWx67AvyzieTUHXI7pFL2UXQvF2dRLAKIby5vFP55Ax\r\n7bXD2SuDTWAM0akR8msm0jA/gdgGIwpOKZG6+vqsLd5pwT7iPmItPFoRUdaV\r\nf8ReXNOrVDfLX0kmZTAmNG0vCzG7Ma1sb1Q=\r\n=lnxp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.12_1678497041556_0.9364322848555258"},"_hasShrinkwrap":false},"0.9.1-next.13":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.13","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.13+e7dbf55","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"e7dbf550b1cabadabb8f1617cec252ea6f692225","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.13","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-GOFhWbwxU40xMqXMKKY+iBUl2aem7a7C3MCeUd1LLS5I7XtYZuO/pArovaAgp/3MzAu8CUs2e3u5V5USPdjWzw==","shasum":"445acac17c3bbd355fa38cb5290913f1930ae874","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.13.tgz","fileCount":54,"unpackedSize":100907,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFnrndfVcRXk1dq4FPc00/ms/qjzqw51RII5X05Z8oJWAiEA9Lofp/+J2klb9n2QgXkXMAtJAZNSYgeW5couaHPGy7o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC/sAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoobw//eVohvenXPqftJ2DHj7DENTsntAglikQyLw4D/Ur09N32NBIz\r\nu8MMrcMrmgEn0sXXZHb53swDslq1+9fB0wzShswjpuqomhHMVf7zIpnIjs4U\r\nSUiV8Sav2e1P5bpwVoZ9ad5b6V8C1CNr2rNTyKqcUgVXBtre85JhTS1I2VcM\r\njX26P/b0JmrVu2NYXFnejto5dG5xdq6OkRIdDc1vse08luVgIYebSRL+nLzS\r\nQwFl9eeKpyzqkjUKYJ+6vlQvRBWc3/hbHegcfhHMnlHDOnkNUU9wLFRKoBGm\r\nUAbRG/x+pHm8dZ4Ko949enp/tm0SNDpb5gP3XImgAhWdb2otcLCg8tO6w6YG\r\n8zBgECU8beSFy0mlWiLG7vFJ6apib2cm78NiNdWYHBs7UMZBHDr9+T6vqeor\r\nzqnRmQ6zm06Z7f4JUeOyToMEUnRj3g8k/XyxfMwAhuoi/y2DCMDJ9Bhy1dKY\r\nu6eHx5w8sCdAnH9CRxyq5JiPZPYDgBeswf358VKVMjhrujcFu4uneweDcazJ\r\nuWHhMYas+nApTxjagn1MbWGFPyGgGCQzKE12QcaCEKydASD/HCFU23QkHfAZ\r\njI6h8s+rbo84U3sdPWthgoD8hWhgjuBPo/66LC2QFM6oo1nhZ8mUPwHkS3Uw\r\nH/0ZPiFmAvgdcmeK222mF0s+7hEAqIuLV/k=\r\n=WGEf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.13_1678506751839_0.4307245700920017"},"_hasShrinkwrap":false},"0.9.1-next.15":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.15","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.15+d2b89c2","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"d2b89c2bcec9187b81621dca670b0884031cccc8","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.15","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-oH50NCsj17Kcyblo1vIfLbQPq1v/TvxFrQ0HAhzPFPEl2r0m+P1NClXtl5tQDiUE7QzevE0BDRwGU9FsaJi38w==","shasum":"00b7fc00ca72dd3af167f80fe8c69fed179fe570","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.15.tgz","fileCount":54,"unpackedSize":100907,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtMXWA48RTdPSCEUERQ6TduYjxRhoO1fYOjh4ABbNhKQIhAN2XS9LrUyIZjtxtZWsPFl3sIdutut83stcl8Ersiqi2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDRLuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUURAAhUmUD0GvAW5VCDzuZSXxrSzRJOvZd3Qa39I1FGoHyiixT8jg\r\nNVPSAEPI2ZltZwEXeRlawujcBd8zWrGhi+/LAPcYkXlu65KFJY7CMAVTrMlI\r\nS0gkZ/nymOSukcJBxnw21CSE2y8CGldtn6GgjGSqc8dssPntcV1lCSB8XLLA\r\nguwCRCA4fVR3Zjc+AzqbjkGJMJvqJKDo2egZzRXmf4n/TD3lVHGGZtC6w00U\r\ncrKycorGYo1Kepire7b7Z9MBZuiHfqgi7nPtE4ETP1AZraT68MxxJLsc3uJi\r\n5uYtd5P6QmWisipITWZ2/6UNdCsLNeKsReqfNENs7TqZqXzpBTIAKSf4Ck8U\r\n7h5nvsvFQJ9l8GX8rIl85mZ5xYDI7bc5rNJemiDcZ4+PiPnuwhTfJD76jBtA\r\nlgzheZeudCUPUx/tIAOuUI9HD6OoVtAfVrN/H8kXowHb+ZKvVtyfXwSO5Phh\r\ngVFhfQvsdBu5xNu/rt1hacXXQNgDEVYv17o5/mbHZ7UWZVp75jBzY99WLIBs\r\nkacV1en7UoXu5Wi3T77w2/PMjKF+RrksmoqasSuOI0Oa2W42kxJgTYVRVaLl\r\n69HmqjhDYwnYBQVpk8EsuqW7YPrSoEyy2FMxH/gLoS7x3hp+FSZyc6ymkO4S\r\nKkZChZjBv/E+wYBIpa9ABMKWNuiCCA6NxZw=\r\n=p8po\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.15_1678578414562_0.9972003059716956"},"_hasShrinkwrap":false},"0.9.1-next.16":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.16","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.16+1907345","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"1907345725090a90ae9b96104114f33bc4ed8250","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.16","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-VSyuoMUkTr7YibpP8vT6swmTJ8gQViW/GTWXPE6/YisU/w4PjOIi53hWgAJlvxXlu+2jIpq5rWuqKiDqK1LexQ==","shasum":"877d26b4e795e88c5a9c00a65476c0faa151ec3e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.16.tgz","fileCount":54,"unpackedSize":100907,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCU3buCIvhIOgegQ0hiBDVi78FtRn2QEvT53E3zU6y0lwIgHcErFeJbX7N0f/kU2swDiJbPrCW3ZNDyTlpzzePAQVc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDWHSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdPRAAnqtgs3fuz43msjJp72HclwJ1nUURPEQmLryYBjQhV9twfY2h\r\nfbuNm/hbw66UKUhUESwtaDpBGthf74XLHagr8n+WrZgmf3tEBQEIX8sCFNkF\r\nSLUe+lgbKU3cqVr0uX5h9VNR7pJjYOXV9rkiCAgtCrEfUrE5XYhoAqSbpAW1\r\nBrKgdyjG0Y42x9QuimVHfj0oItPDCLXoHa5qC9HGPsSB4htI/d9PZi1tXJoc\r\ngb0sdUIZQtPwdX2qkRqHX4tkb9zPifYQBw1xeqpHBkbUj8IuAlksVWmcRmiL\r\nxr4NDAbjFTKOYnchRHfiCFFOcSV13nxNZbpIjNrSOCYNrS3GxPtcbGsepFUQ\r\n42vfWEnLgb9487vgb2wrpJEwGL+cKTuBgy4D1x9H06zBvtPPRwB0+vQMQYba\r\n2ArwkArBVZcIULJjPFvLyZRo023d/GWpLKmDhzVJiYl/aY7ujKqB6l0mBHzA\r\nLdTVsk3FEPzkJ7o55l53Tbg+NZ5FrVa0oAlVMaxpJotSYeW+muo3HW81vFTY\r\nRdZ11i1vy5shfv0l8g7qVuK5O2p0w7D3YZKCBBpF13Mx98da/7MuyLcNDzca\r\n7131qCCs4R0TJgqW+VmNdAIMBMRUL5bei8SHcMIEl9gNZNeF1w1ZlNpg+3HZ\r\nmIeVQgRVy8YYT90DLnjgG2xCfmcZ5zGdySM=\r\n=IFO2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.16_1678598610343_0.813960899534651"},"_hasShrinkwrap":false},"0.9.1-next.17":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.17","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.17+63e059b","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"63e059b0460ae40e6d31a5ed0f0707fbd99f75af","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.17","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-t17rAQ9/p1U5uJNoP/fqSah3iqo1oS2DPfLxB7qPrFuFZVfNk+RzaP7Dvwb8cuKXWe5z2QBLtD1OKAeHj7mn5w==","shasum":"b3243e0a9babd88b3361013894ab28fb2a10a7d5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.17.tgz","fileCount":54,"unpackedSize":100907,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1n9XvWmdNJIjeJPVau9GNOTYfGfjQtJBjBojdOlqidAiEApIicOnHmoQ2aq4t42PlIOzJw2fPDiVjW76fJnXAyz0c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDWniACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3uQ/+MNf2+9QMBp6mlI1iQHzYEyTPQVB8FyPCVxltwTWHYrDZvu69\r\nfk7L20q9y50gxDVXWuWM6PinuNfrm8bUmpFqSNZJefDmSsXbE+voqtI9prXy\r\nZV8jfhFzR6eglrcaZbhus2BXhsI6JiR0XSNLEm8lIrQ/va42CBb3uJkjyDi1\r\npC9IwQeQYxbOBVAZTq/WjYX9NInV5JMmSXEWH8WorPrB33agekgpzc357tRq\r\na0bG37Ftaz3t7pcGVR7zDPaWh8UVoazamlxVtau4bONAYtyoY5MC25Vfn6WR\r\nMcrOp9tjEJh4nTuUf9KpnAjLf/NsCsEkzw7IuDrNsdho66QGBxtU2ZyBpwBv\r\nZdQnoRysH2idMk61+GqILfBc7muQKon141p/wKSHy8LrHsAmOHshr4QAavUm\r\nFG8eaVD3eXIuvbfQMCmnt8kjpmAK99vK9Z+04N4G6WK8M6PWt2FmL3b2hn4n\r\nOQlOTUKsG4b4OvDDQ4+qnSo8I/mBHa+Zs9z4C/Yoski+Qp1pg7h2/SHIfY6j\r\nZqNAby+97XAr0OoUNMrbojvxBFt+gx0281iwLIR89hB4dcIa90q3nShzWja/\r\nc42kQlunLUcbsX5BAGTOr3S5f0GvE0auQiHdzoyVFSTmUwUC6eAAWM0IwEfQ\r\nQdburmgbzcSCO6iU6AkOzmKgNOhpznsqFBY=\r\n=hUb7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.17_1678600673821_0.9853344074567938"},"_hasShrinkwrap":false},"0.9.1-unstable.27":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.27","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.27+f588994","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"f588994f2aad4f6e7554a3449df78a0816ee063a","readme":"<!--suppress HtmlDeprecatedAttribute -->\r\n<h1 align=\"center\">\r\n  <br>\r\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r\n  <br>Well-Known DID Issuer (Typescript) \r\n  <br>\r\n</h1>\r\n\r\n---\r\n\r\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\r\n\r\n---\r\n\r\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\r\n\r\n## Available functions\r\n\r\n- addLinkedDomainsService\r\n- getDidConfigurationResource\r\n- issueDidConfigurationResource\r\n- issueDomainLinkageCredential\r\n- registerCredentialIssuance\r\n- removeCredentialIssuance\r\n- saveDidConfigurationResource\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\r\n\r\nconst agent = createAgent<IWellKnownDidIssuer>({\r\n  plugins: [\r\n    new WellKnownDidIssuer({\r\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Register credential issuance callback:\r\n\r\nRegisters a callback function.\r\n\r\n```typescript\r\nagent\r\n  .registerCredentialIssuance({\r\n    callbackName: 'example_key',\r\n    credentialIssuance: () => Promise.resolve({ ...vc }),\r\n  })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Remove credential issuance callback:\r\n\r\nRemoves a registered callback function.\r\n\r\n```typescript\r\nagent\r\n  .removeCredentialIssuance({ callbackName: 'example_key' })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Issue DID configuration resource:\r\n\r\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDidConfigurationResource({\r\n    issuances: [\r\n      {\r\n        did: DID,\r\n        origin: ORIGIN,\r\n        issuanceDate: new Date().toISOString(),\r\n        expirationDate: new Date().toISOString(),\r\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n      },\r\n    ],\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Get DID configuration resource:\r\n\r\nGet a DID configuration resource from the database.\r\n\r\n```typescript\r\nagent\r\n  .getDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Save DID configuration resource:\r\n\r\nSaves a DID configuration resource to a database.\r\n\r\n```typescript\r\nagent\r\n  .saveDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n    didConfiguration,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Issue domain linkage credential:\r\n\r\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDomainLinkageCredential({\r\n    did: DID,\r\n    origin: ORIGIN,\r\n    issuanceDate: new Date().toISOString(),\r\n    expirationDate: new Date().toISOString(),\r\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Add linked domains service:\r\n\r\nAdds a LinkedDomains service to a DID.\r\n\r\n```typescript\r\nagent\r\n  .addLinkedDomainsService({\r\n    did: 'did:key:example',\r\n    origin: 'https://example.com',\r\n    servideId: 'linkedDomains1',\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\r\n```\r\n\r\n## Build\r\n\r\n```shell\r\nyarn build\r\n```\r\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute -->\r <h1 align=\"center\">\r   <br>\r   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r   <br>Well-Known DID Issuer (Typescrip","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.27","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-KfH54bHsSx4lsHvl/h7V7vnDAjelsuH+994GWKCSZueRMwXK3zEjWT1FK9rD2mEXvk5VF8CjsLWFny/m4fQMew==","shasum":"f67ac16f51bd98c5893e2cdd5f2646a61c7bb60f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.27.tgz","fileCount":54,"unpackedSize":101561,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEhC1bX1oPMtqafFJ6ywvA2p1XK9LCur6G27xt9t6qi/AiAo/RCoRO0rTY59l+PaVZUvBi8YgSCXnRC5zYCWXagpYw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEc9sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoutw/+MOdoRguQmuzHhui4RG7q0MZym0WnvT0y4fxoZilt/yhAcNwm\r\nkXyy3G/Tf613vgYB64AExD+cNwshlNwfw3SgBfrqPXgwQDMab1y1qt7TqUTM\r\nJmo+rSj1OuYi5+XvZ8o+9rKbNLDyaoFv3fOq0oMvGQYylhIAZwRHIp1COGuI\r\naFg89yM/0B5Wpgqa49UdCS8C+/zlipNvWabn8ANR3ZprEXID36XNh0J6f4Fy\r\nnpAS8cHAVSxi4VldFkEl1JHXm9NutUtv5z2TH78IV2VBWznN6W9EcD5RHw/f\r\n6uJBNIJ6Fd+YAT0TqzDORqhh5iHBRCXwJTd3dB0T9bH1/V0ImUxG74D17xch\r\n3pJoolbAHEB/lTCODAYqx/KGG239hBE73oq2s3d7QxZhl7kKfHgfgVDbYdzp\r\nVDcKizrPoF7hq9m0rFXh7Ur8xmyxCnB8HUJohEKIbpUuQVCD0qcr7ULVOlT2\r\nJ1K4unU1x1uARz//9X6RTePTvfqqtAnrQR6uTlk6v12XhjXsFMzdH83Qp5AB\r\naFxNdvuLSJXvFhHvI86x2qLWSFgX1vzZ4LRBM0OkzYdQYOvXAnzRQ1HCKptz\r\n8Ef4fIvkXK3nY6uryTO1bg/BckuIugI7WzaxiVEgoYr8ak2Zlc6tYYS89Voq\r\n94P9fxajLcT+NBvnusc0B90IX9hbxSY+dw4=\r\n=O0Yl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.27_1678888812435_0.05209103879776378"},"_hasShrinkwrap":false},"0.9.1-unstable.28":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.28","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.28+9ec78ec","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9ec78ec4fba4ce80a35d1e9577aceb8adc10d726","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.28","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-fPWmXQcrafIeQnC/ShUY8jmePs8HJ+UFzIzz6NkUayBoSbgL7OoraQu95pG4aO86DZCZ5ShpJqNQNfymg+lEvA==","shasum":"3efceea16e1712ac3d8b77ce9f495a30337df781","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.28.tgz","fileCount":54,"unpackedSize":100915,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDLFakuOPrIZb13t3Ab/AR8XCVOqD2b5BIht5zUdjqzyAiALxg1CpMWjalEM+drFL8QTXTBcuXCLhbNx2HGeKG4nlA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEdVmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBTRAAggcawNhiGkgSFJUUV1NEiFA60ccXX59VwhNlq0W7n+Fr7q18\r\nFNXiuQaABBHYMa9bni7XVfOw13LkGeJxpKC81LYcrxbi2JW29UxoP090i2aY\r\nobCHKhH0VG8PH8OcCJglKITqNLWiB7Nm4AXYZjpjHSzQELg1UKuEKEecaJgE\r\nA+HUiRB1tnzvNE2aOc0pnedx4rBtYimjW1YZcF6/5ZaAQauwE4Rzo7275uO3\r\nZvYgHL6oUindAksBKJS/VC5eEw81hF5aDZYbXRbEsxkuOwvO5Uuq83+u8G7a\r\ncPMvd7J5Nh8LLyzPjrKuYDgrTwqQdiTvI3qc2vU0NFa2zLeNN6sn7lS+pu9U\r\nDymKcjKkXzo6xPB9wlwp4QxuOQz61S1Fw9ShHjzXkl8gkA9GbFdmjKyirFvg\r\nZ+j+9xidP+dAUzNrFr+5gzuVJUcn8LJ/R6gwLT/IO564Qf+UxvuSLNfcBFh5\r\n4CDbl5e7BNhXmdbokoqLxzLt76DeUBd8AEJcmIAC4zgosZeJ5n6Y6Bm8PeqZ\r\npgr4ldKpvfBUqjpTLxj0jW30qEV1CuPQGgtm+GCRvACPlW0rWEldi2In/DGB\r\nIeF2P9Qn6RJxojfcuhmAfUyIrmeQfFe3UfSQ8WtXO+rFLYGDl/cDYqf69GM3\r\njx0UE+yCAN7Btlzh5ip6y6db/5ufSAo5O5w=\r\n=/fzw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.28_1678890341853_0.985486196940643"},"_hasShrinkwrap":false},"0.9.1-unstable.30":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.30","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.30+f9e10f1","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"f9e10f18b07a49ec535f88e87c93cd69f216d121","readme":"<!--suppress HtmlDeprecatedAttribute -->\r\n<h1 align=\"center\">\r\n  <br>\r\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r\n  <br>Well-Known DID Issuer (Typescript) \r\n  <br>\r\n</h1>\r\n\r\n---\r\n\r\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\r\n\r\n---\r\n\r\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\r\n\r\n## Available functions\r\n\r\n- addLinkedDomainsService\r\n- getDidConfigurationResource\r\n- issueDidConfigurationResource\r\n- issueDomainLinkageCredential\r\n- registerCredentialIssuance\r\n- removeCredentialIssuance\r\n- saveDidConfigurationResource\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\r\n\r\nconst agent = createAgent<IWellKnownDidIssuer>({\r\n  plugins: [\r\n    new WellKnownDidIssuer({\r\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Register credential issuance callback:\r\n\r\nRegisters a callback function.\r\n\r\n```typescript\r\nagent\r\n  .registerCredentialIssuance({\r\n    callbackName: 'example_key',\r\n    credentialIssuance: () => Promise.resolve({ ...vc }),\r\n  })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Remove credential issuance callback:\r\n\r\nRemoves a registered callback function.\r\n\r\n```typescript\r\nagent\r\n  .removeCredentialIssuance({ callbackName: 'example_key' })\r\n  .then(() => console.log('success'))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Issue DID configuration resource:\r\n\r\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDidConfigurationResource({\r\n    issuances: [\r\n      {\r\n        did: DID,\r\n        origin: ORIGIN,\r\n        issuanceDate: new Date().toISOString(),\r\n        expirationDate: new Date().toISOString(),\r\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n      },\r\n    ],\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Get DID configuration resource:\r\n\r\nGet a DID configuration resource from the database.\r\n\r\n```typescript\r\nagent\r\n  .getDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n  })\r\n  .then((result: IDidConfiguration) => console.log(result))\r\n  .catch(() => console.log('failed'))\r\n```\r\n\r\n### Save DID configuration resource:\r\n\r\nSaves a DID configuration resource to a database.\r\n\r\n```typescript\r\nagent\r\n  .saveDidConfigurationResource({\r\n    origin: 'https://example.com',\r\n    didConfiguration,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Issue domain linkage credential:\r\n\r\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\r\n\r\n```typescript\r\nagent\r\n  .issueDomainLinkageCredential({\r\n    did: DID,\r\n    origin: ORIGIN,\r\n    issuanceDate: new Date().toISOString(),\r\n    expirationDate: new Date().toISOString(),\r\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\r\n    credentialIssuance: 'example_key',\r\n    save: true,\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n### Add linked domains service:\r\n\r\nAdds a LinkedDomains service to a DID.\r\n\r\n```typescript\r\nagent\r\n  .addLinkedDomainsService({\r\n    did: 'did:key:example',\r\n    origin: 'https://example.com',\r\n    servideId: 'linkedDomains1',\r\n  })\r\n  .then((result: IResourceValidation) => console.log(result.status))\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\r\n```\r\n\r\n## Build\r\n\r\n```shell\r\nyarn build\r\n```\r\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute -->\r <h1 align=\"center\">\r   <br>\r   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\r   <br>Well-Known DID Issuer (Typescrip","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.30","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-ugK5Aa9sYn3Z9MtgfKepJ7rH7YLBTDgVrykrgB0S59/b5ivj6ePIqmgNc1B/rNvPmJ2XKW2U6qlyFfdzLWuSTQ==","shasum":"8d39534ac0aeee1504d90d61d8437a1ed9983c99","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.30.tgz","fileCount":54,"unpackedSize":101584,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICF/ZrFj2KCvDPvw3yrpcx12/D3osIcKQnaV6qPtPi2UAiEA5hp4g9/6q17pjSAxwQMeOrWZb5yiZj3vPq7gwVN3b6M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEd26ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCzxAAkJdTrCYoKCgf8y198IA6cn/D0pWbYBP6LfbH536RcsYhztwQ\r\nXXOs5fw9OaWme/p6fuVP7wfE6HB6zHB4r86BDwy5xd1XcHc4EiMnlmHYb0hD\r\ncEzEcoRIiLpMcd00EdAKu2kUFh/b//1g8WXqlgt+ie0loXv0XzYvhMbD/2Ng\r\nw0Ixqi/38J5B3Lkl4aY+UIT487DIfoyYO2D83jrNrTzgxgGeJXV2F9pWsUhg\r\nO4QL1EC9JvhB+ZuEUEAzLe2ybm4+2Bp3cd2F3T+Wbf2kCqHfeI3n8We9/mRa\r\n/JZHC6zWFvnMhPqYg8Vzfow/F9isUpipBqT6I66nDXksemR8684GBq5/Xk+Y\r\nhG0bMFNHsmopSqbH4XK2sWKpk5dBW4ObN3ZXiGktfjhB8rRv8zfa2qeDHZYH\r\nIo5qcT9Tbl1sayRWlhhsc9yxrjjqKmfDdx7vMw7+zW48de2YLlwwnDN5pA7W\r\n3z7MT4VpXjAN6VVyN2rAqoHb07yk8hMrCH3S+HjTxwFyJS0hp3eVm6AoHT95\r\n8emi6Ah3IQnRQo4fxHGRGC5vU94Q2jZNe/ztNEcavdkKpMq7G4e/IvFImFfT\r\nVY8jKlWgUCUcXkTtzcZCEyZ2/rD5qBGvVUdV9ys4LMVBwnqWYUEiaLtEA9lA\r\nM50becz3lgvISxzWldn2znEOULMTESvo6+I=\r\n=tGgp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.30_1678892474452_0.8933660954006013"},"_hasShrinkwrap":false},"0.9.1-unstable.34":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.34","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.34+0a44ee7","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"0a44ee76d7df4f0a1bd0a7aa092ab1f417269f97","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.34","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-1ArEcfhtZEF+uq2rbNc8e2AFWBaA29KoqB5LKLU21CIPpAbAI6I/a7ZdFfeHaoPObpE5FnrMXk11Mlhtj9sl4g==","shasum":"88d916e5e64d5a424feef0c3217a74b785566c2f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.34.tgz","fileCount":54,"unpackedSize":100938,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZyRnRQ9KyFD/Qw91EhAri3hzTfVvUA7eMPjDvh6ImdAIhAMp/PMhoc3FBYVPNxSb3K9mniWGmOgQaLxG6YAnD0OLN"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEfMOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTFw//baVBGXvOZSuVejwY+hRNL2laLQ4Nrp9JUV/UOd9GpeKU/qS3\r\n6zyUcux8HHP5MtROFKQ5yg6zleq17Yo2U4j2EzfaUj3UJWN5ead9CoepsbIw\r\ncp9zKo01we0khltymbshZIhm+Uuf2Y5NNVz1iDwNHXwRnIiUA2hmhUEVFpdW\r\nAJiEXxs6e3IWwLHTrtAYp9a4YkhvgYWz3ASY+B+6ycZHXBarVNArHge0l9Ld\r\nFlBvrafUiWBwMvWGs3v4TF9mlBAh82TccV1sJ7Tt7edu1QB5R4H0dTWsyxHy\r\nHUtyQG61ehdN8wMZL9TlD4Jbo3cJ8xsytED7a96EeifJlfqRP+kmVfMbU8NA\r\nYlvmpM+1Y4lt0Dx+zoqcm9BfXxR99TJrRGrd4jO5qcq2ywDvwZYjnd0He19c\r\nSOW0HOfA1sg+k/BNNG06VsYP9Q+q4uTy8+eWapLQ1C37Ykd9EU+LFFM86HZ7\r\nK6/or3xTHzofUDwkn6/XFRfMCQqfnDsp3nhiSmyDHU+eMd3wHOFFuXorYsqz\r\nvX0shvlpGFpvdjVeF1CxLjGSKsYK7vPQ7IsrRnYjO2NUiUd2AXPluk8AZu4y\r\nUFzGdFYFMFNo0WMAWAptAmjW7zCiPuwVva1EAWUowj8uQVufmPixTUZX1Q6A\r\njkosr3iNygHutZeRTpypPB/8QGpSDIz42Sg=\r\n=UQsr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.34_1678897934631_0.16230633149346052"},"_hasShrinkwrap":false},"0.9.1-unstable.18":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.18","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.18+a4e1114","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"a4e11143915eb1638d999fffdcd92b8578227b2b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.18","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-eDAtNsLVn2RZOJN7WfQwDz9La+NUlrQwkPWUpfbuf9WK6jbuM9U7Kw7fcz+gGEtRebc/Q6fS9jBXKLN/FNM1HQ==","shasum":"9759bac1a76814a756d0b97b16cc6250c08fc57f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.18.tgz","fileCount":54,"unpackedSize":100972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCad+oexvoIci7elI1duaEc8NcWPysGEEupJVPqx6yhpAIgQYNf1pqyrG2j4yVNR63StJSh2Zkdummbj0td/5+lACU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEuu6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAAQ//QgSF5UoB2pszeb8q4DTZtYYP1cWGiBb4bUiovBb8/2PuXp3c\r\neZk0znqihaJuhfZJirFtvDhUcWWMdu8gdum76i23ujFAdjzB9CB+N4nBiw0/\r\nedckf65qvgpFFKaFB0eZSmL0Vw86GS+jnSNNneHk+XCTWESEhBTu/ESQKD+E\r\nVZAqABiqrvzQ4abJSJG6S1tK8rT+a10H9Q85m8FX81sfXZf+cNR16s384Ysm\r\nULbxWSu50RDAMd55/8SkgJf82ui6zp4RKhkt5kdhxH2eqS/AJhRxTx2thMUU\r\ngQhnHxJOz9ZiF8LDOs/DmlQMcCJXYpDGPbQ6CZMLZA5EmYwQepugkMleZ0Ex\r\nR9hwfk1diTcoA5goxYrg7Hqjc2DWj0WzDRo/00gdoa8l5g2fdZ3/3KNeXlt+\r\nQnQ68qDKRSM1W9QD0iBmK1742yC/4F+grEi9jNRKo6nkSMT8rpz/7P+ZLl0V\r\n/ITnLhfQ/ep4cf6+IZJ5Xu6RslOrR63ixoSOR6aalg+ZIpvDT+F4OINdK/OM\r\nAQIQCqnibdMYNp64g8dlTlTbdbyjusPdTsLrGEndRnDb/J6Ppotikh9KAmnp\r\nQJ0N13beiWDiJLqFaaZQfoNDuvb4ILTjRU7DArdbtag1Q75VPp9LBePMDWqa\r\nKYNqrCi95iuf14F1b4zoqlB6hl67z+s5ccA=\r\n=e8VW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.18_1678961594470_0.056548914702815756"},"_hasShrinkwrap":false},"0.9.1-unstable.19":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.19","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.19+728fc16","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"728fc1657d956e66ee8e0a65680b8f9dd6ee701e","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.19","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-YK8xmfJ6bocpo3lRGALL2m+3ekii/WEYLimN37YW75ZqiKxogS17c7Sf3mkZu7UwcbEwnbMjGyI2E9308DoGIw==","shasum":"50dbee4b91d918c963dce9c794153b339313717c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.19.tgz","fileCount":54,"unpackedSize":100972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDf2d+SSIsswP/i0qF+9TShYgsWZSjYedI779FIq/DKsAIgCbUbLEkj1i89AXB7tycz28W+sgaLA2bJCNvbMiAB1cg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEu0BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqORAAjcBjKoaVxkcUkyPng9Ks/SwmCJB7/TSmWQRJCo/9bQcKwb1/\r\noYIlU2rtfKhhSCYA9ks3ixPuhqHyt7f1/3Zw7SRFZ7KmaMVgcdGf5JbwY0Tg\r\nELzatmix9OV27gR904IIvY1zLjmZnWue3kvg0MeZ4pINNqSvBc4jK5Bd6aVP\r\n5wHjY9D4nX9Zi5febP01gUY8oNGW9d/BLaC6cOcu1f9WCQ9HDcR3OVikDnhj\r\nT7ff4xwlajzqa2AmbC+KYQuAZwIw/nZAM4Y0xUtuKMHulX/wjA8stOJOYVDy\r\n5bZx3EE3cKIGCkgYtw3kIMs51sPDR4suwfLy7ygabBK5hV/Y2Z0/0m6KAcqp\r\nzPfniCsOa5xHkxS0esDwekCq17jqzyoi2NuoLiJyrRceCkBSMjaJAaoBniGO\r\nGGPR2yyBtiIr2eB0NCDoEhAUAbXOxI+jaeAaCYZ1fKvAFWzON5qX5PKk28iO\r\nC2M74ybciwxUruqQgzcSwZagkuuerHmrBE08M5ycmk36q0TtYyfsMFHejXp6\r\nY18ldQRy2QTuT7dqecyqhX0yU+Qvp3CNEo3B3U7ywgpH14ApVTVShvQNzYw4\r\n2YFYgzDhbhkZqiFbQrxa9zbClodP/aIFaWz17JFomhL8xcaqsKO0Veupc7a5\r\n4oWdMVN5XCk86xmgMNodieQ1+S9qU1UOUDs=\r\n=4286\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.19_1678961921139_0.5515905818940163"},"_hasShrinkwrap":false},"0.9.1-unstable.20":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.20","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.20+a9192f4","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"a9192f4b8922f5ec3a82e588081adc49f564b9b4","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.20","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-3CssoZhSNu7giRAEMvXBW8Z7+c0offpZa/Z0q2YYOut0ySgc3BTyiyAboYfrZCNpDohmXVTYEbOXpgDir4GKBA==","shasum":"95818dce93f15c23636619e9b435fdfaa42bf0e9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.20.tgz","fileCount":54,"unpackedSize":100972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQiPX/mIozdbQVRTuO2nzCspUOYPiEoU/b1xsQ0qJcWAIhANleZ8uGuwuAboTVdLoVtmcjH7EncSEl0XpMcQWNuVJX"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEu12ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyyxAAmjV6uXG1xK5cjU9H43f716EQFwVljHBs3YoE31Y4LcR0qbtx\r\nyjh2fd5lMFROn2BNjUJ5CTX2kcOgGgneSOtvd83cXH6UtVgoBeSfBKHjzdh1\r\nHXUESa6nOV0TSjYTxHhR8FAKINVZ5rFW6BxC/E1jgsNoMNzLB9pTFFHEB/Rl\r\nU7T4oZXYRpz4IjnlK3nNdb2MW7kUwvbmhWVz9enxtgFuzXfB9JhesY4wBj3E\r\n9uuv2Xir2fvF6Ck49ndOsirTa3d/ibynI8PO5IDsDuz6Y7APLq1nX4t26QJG\r\n37XxKbwODDACzUyH/VDQWnDyqom0CT09ICm5AX4aLJWFqr+22r5HYK9x5mJb\r\n2Awu/GmrLhlIvnDyq+CUKAjXwGG883oGrHS6bFULNDj6gPHSxMFMf4ZTaQ0T\r\ntzuvvTAiSV50nwKeJk624k/6nXMzMI9XQvzqUAvEsCiR4b4iZ251txYC4nAU\r\n3vTS5MA0wsj2TaG6i8D6rPEPaOEmcJnhn4r8c+bMpafhY8BlxpTazuZUjMUP\r\n59bwV8qRYWnG24dIbnRNtpsLr2lVoJxNmv+0mxzYfg2cpwYp2XVx4melQyXd\r\np5AVoJULwZ+yOmB7V9sGfzn8eltAc+vyuH4FBLm+NOvJR+ukKu2fCCrQawNf\r\nDjpso+7ZpQ5XtnD24oBn0abX9fapG+qVaas=\r\n=x3NR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.20_1678962037901_0.08590331297648501"},"_hasShrinkwrap":false},"0.9.1-next.21":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.21","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.21+b824d21","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"b824d21a986787d0989ecd164941a4d74996c9f5","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.21","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-oFdnOniygGDvFSX6Zw8RJUFHgXGkQk9v/qAsaKQCWZ3tpLXxokScti7xWfd++AP6NQOQ+KX0FFCNBD9wbWEAfg==","shasum":"dca7b48e101245ce648bc95988ba8b1e4eb18718","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.21.tgz","fileCount":54,"unpackedSize":100964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvhKxi3IsbqaWrqZ3uJOrTgTBSbHa6juoksxWyN0ljJwIgRk84DFFl5iJSNNO1mnS++2q61TgA7hRIeBVXJXdKfHk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFDBvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEBg//coENWZzu9VO1KgkKF4/n/hiVZTevnf14qpaCWSi5+UiWMSVj\r\nsA7Yup3rkA+OtYCzm8RueNlTZDJ1SoXrY0TrduCVTAKUJsNJkzlF7rxifmCy\r\nUvGNIpzX8FeLlFk/2D8DZyRdwxfllq7Mbc29s6NAoF6FvZJq+WIf4eAB8lv8\r\na/f3MDTF31qQJnwSY6hOkUeeVeqI39GgOUTmxp4JmogtmpTr7ZpEe7R+4dE9\r\nBbdLjaB1xyffaGaLdW3jfMVmeF2O2KGLQTV5jpAPcCo6BJY6ejhXiiM9ah6f\r\nUKyxQYYTA0G6xW/+2JNHBwjdtqD4akWhJAsm7CJNz23kAZgyDmZnSj6eDZ7p\r\nB6R2bILNm39GMPW8tyrn+tKzDtVFzwmo8Sy2DS2d4V0501scTCGDE4zDhsVB\r\nUb/UOhWk5EZ+//aaHsD56ebqf9jT1gPslSOS8w700Cej9SSCwsya5HfLF6OZ\r\nC2cmWnLuZE67Tfn/nYfLHYk0A6HlRYEyEBfX9ojoH3q8HRmIZABsymG49ICX\r\nURda358MZmiLgZs9toAFgj9wzq2kr9aWV4are5a0Pse4reGjxB66v+b1nv6j\r\n0qCvQ7fcGnngUTcdZTdYo/timV1maIhgXi5E4UxL+jqx8agxEPtZIjZYfCKK\r\nZrvg+9U1PgjkFZKljhOjnJyzkKhX19s6QHo=\r\n=81tH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.21_1679044719114_0.6989637463242386"},"_hasShrinkwrap":false},"0.9.1-next.42":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.42","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.42+13ad882","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"13ad8825d5bc1148a429c7ff927021891b14b828","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.42","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-uwJksCbm5FYeJaXb/8iApDEKTJXKwbzdETj/cvjxsCDfV0eddQkbIKI+sbze3KcdmIAOpqVaM7qOwxfD5NdJBQ==","shasum":"2abc9999c8c39a1805b294db087951e5557fc3e1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.42.tgz","fileCount":54,"unpackedSize":100964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA3k1WWCdpp4qo8ZbZeJR1GSugP7HpuY8aE2Z/oPHfZ4AiBKGOxAjBWetXyEIYPCJO9YgWoU5MzOOhOid/Hnsfly0Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFDl4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZVw//YTUyqWDGzkQ0dqm2ja7ehXKwboHBzQ3ouj/jSL4x9buyYxDk\r\nKVyewiPMZSvVHgM7Csf5Mv4PpfQQISsY3L1MUf2hN+E/FFhJC2nZfeShAP+L\r\nWRIxpl48asAVPcTpV39mLcSt8LdjpJnifd7iDdKnce5cgVBtHs9aT7PJnXxn\r\na/X8eNW0kOGh5fCPSgoD/fhLLD1TIwbJf7enQ9wuqx5UN0pDnuhbIKaJNhWm\r\n1WUnBQaDmzEKdUA8qhMS0gQfmwAPlVb009cdkzb8bdHxDkZh3R+GvJFFDrO7\r\nRmWOu+ae4Eu6uhIxi6NAwU9m0ZkGzAwpjsHi71hIl3qHVJ6NxM56pctFfWQB\r\nOxEVsDyPCBeW4d3cC9MPmg55XutV757bNe8/RfJs24CVqjN1K14FDMU5/GH9\r\nvQQkcw84OqlXIek1knfVylILMnTt1SV4TLd3n+aCBRlOiSgW+Yf5iupMHEJk\r\nWjbxar2NOjWwJtGRIuAz/dRierIIHoHpnZpP7VhFiZcaWPjdf1rijzWCFZCK\r\nI/YclTfd0qU8NKWUot+cmCYXIW4lUZT4ox5RDEt3N52UB0swmkSpVMLcIkEt\r\nKLTQaFPiiNTOry0pjZucorslOVFiIXayaIxEItZ7zmL8IfwpFbsfi+eCdxyb\r\no3zxJvYp/KYO0zW+W51Gl1QbNa33PYcS9XQ=\r\n=Pm2s\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.42_1679047032253_0.6432922267090544"},"_hasShrinkwrap":false},"0.9.1-next.55":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.55","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.55+6a7ec2e","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"6a7ec2ee42281456394a8135cc973a33ba3ea82b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.55","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-AJ/3c5ZJ9Kpwyab9uRp9vUh9ZQMpX0WHC69C6lZr25Gu3omPBCGrMP4G5YFoQPnW/QVpnW3avP2fWB6meWxBFg==","shasum":"73eab00d8b5aa754c65f190032b9143877bfb353","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.55.tgz","fileCount":54,"unpackedSize":100964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2juCAdHxEKzNDAtSzhNWUR1DZhoeeqfV8gk+DQt+A3AIhAKxoqn52HVyFnJCePK+tskp7WgEA8RQiRsum3p46xqBZ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFFR9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqSfQ//SuJ13s0xyNXn+jTMBiYloVclVlUujhJ2KOh1z86+iBGA2mSl\r\nJ0vYIlHhxUa1T+OZKqYl2GSX2YoTk0vK1UIPIx9feq1akcdIGRe/PZbQzfkH\r\nLHhrRIqQuNHOS+ZqRCHB7kzJlTFflMiA0yNpeu1w4ic8mHp68hBeHUHtP/XR\r\n6YDYY5ch+nTkGBk1oSrIavSBPLsCEft91ODv3YPYYJ8PyJVV0kDOYUmZ2Se1\r\nH/uyX5rpgn69q5TnVx7LpRN0k1aWsE44DvcTAmaFrUVLmNXgi3xN53sa5VkN\r\n3z1ckmliKtjUmxLqZCXOmZtQPnOBZxmszGS/KtIt8Jgpw5AtWwZwzLc1Dsnz\r\n5j2ihddsjFsDFuQBg6b9PA+VeOg/PZpznfeI3NvkF7EqQT/fxKzkcxvJyVsR\r\nRIORlYas7jjFGBGqEzPE3OI86m6rIATXg788nC28ziemvsSFIZmu45wb2v1R\r\nsmIL0tWaaJEd04nYVSZQkK2bxHvlIg270JpxjciD7LHs1JANiHDLkJntnJxv\r\n8V9le9ZNqVZ490v7WYEvYLdagdQ1djEDkzlq4dv7Rf2nfbCS+uPEIQUOOTg6\r\n/SJBSgVnByAvs/234weWyJ0WJtj4obOD+edh+9HVM9asyc+L0pT0zMuaBST+\r\nhFJjnHPY51zx3PhxK6bGPfK9dAVMnthxF0U=\r\n=jzNz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.55_1679053948856_0.07625182499060923"},"_hasShrinkwrap":false},"0.9.1-next.56":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.56","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.56+22d9f1a","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"22d9f1a3c4e8b3cd58de013ca244898d7e3e91af","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.56","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-cDkMJJznsnoMeBiefF78vwbtQ+4aF0QIRm7ts5518IkSQCuoDagOa8MtlHjpPCrTHR6ubJYhzLGXop6gfy8Jpw==","shasum":"7380619a06af3fdebc848de31b29a45a75f27dcf","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.56.tgz","fileCount":54,"unpackedSize":100964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlQNIOsQyOEjIhPNensTY1fjyaRJO6Jy+PLu9Ou5is8gIhAMWT4/1nk1bnWQqEisU3Oj8Ao7uHReSv2NMa0H0EPxfp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFlGeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqg5hAAi1fb2L4pH6mVsv0GMf8BOFC/FH7alM9CJ0HNrUI3RHrKhW9P\r\n2TIkLQ042JXt7ZICD0kUz1nkVQ/ac+NKhXsWD6RUEREOEnDOg5CObzThh6nw\r\nWjP+ITcXdn0/36jiMzfakpPkMs0LMlyFkRYt5NiUHztzg2FUitKH0eoduSHH\r\ny1wbS5H6/lWpi1lSaab/NXj2895g3EPxd4vFZq2AT0Omx+kz34euIXH8qJW+\r\ng8QVveiwOEExIAxPdOf13ObVihi0/RzaL9PyJf3mb9Hh5y6SaZclG6RIvnvr\r\n+DRsqzuA8OjFRxxeiZI8AhmXwTJ2A4SnZKhyRjty0gI1y4ED9CxmUSq74Tgq\r\nShvYjGNtl7LAuwY4Y8vU1vqpGnZOW2Mrjn/OpJx549GyRfJebQnXaphrvVNI\r\n5Hmt9iYqaWVdDuIqqXOGROt3uCS004SZZ55qMzKd6vnbXwr9KwNG0bZphSvk\r\n/GlVKNR8xgq/A2KKIZDek2eLNBmNkat04HUYOMXKPL1G2DCCxEi+sMD+4kFi\r\nUagDqGd/P48Ku2jd6wTxg9uIllpee0G2cgJbxCqXF41q7a3OWDJCzHB1S5G1\r\nbOcLQimRpnhDZONP1LF+xTUHssMVpErfNg5an2kCbCzcsnaHFT0hS78rVuMf\r\nz8khGc64UHq4Kpu5ia9r26+4aIhedecK5Ww=\r\n=nDHT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.56_1679184286109_0.25509287613210874"},"_hasShrinkwrap":false},"0.9.1-next.62":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.62","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.62+867d15c","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"867d15c0b2f2f7647eea939e8344c69a462466fe","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.62","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-J9xiE6jIFm/lfLYvX09qSHR68jKgr9583H6QJBSfC+mVh/CfnJcvVZ7+lIvBZKsjvFx0i5/5qEgWbrtjx8jlXQ==","shasum":"aa5d8a026522cb1b0fd668df11ec502a6e1f0144","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.62.tgz","fileCount":54,"unpackedSize":100964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICv9yssZcCSDmam9A3tMuMfO5SiiN1RN8UeBR3rWMt0BAiEA3ddx6CHecgfYQvEKyYZlRUG9VL0jyuJ7epK0towwqh8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGk27ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9YA//cWUdKej1FlwiJx7ESMEIxAn3ZLSG2QgMsUVuAH9FskgtWfrj\r\n1JKGJK+cZOOVP5fMGTDSGCq8HFCCM9Wemc6SozPCAVVKmyC0d1oKYECBDsq8\r\nrS1qIwmyaCti3J48b0NLxzW5yim6YVgtQAN1nm+m2CBx5PnWYtExvUVCcCxq\r\ng4xbWQklHvjqVHNeGfpw0CdtKryCm20QXcf7Yq0bxQ8Ga6fy0UjEPj9sNeBu\r\noIdu7OzguWppL6NP48wWcV7aqk6L4Ge0lTpq2z1SYqgXg5X2jSdSrGxBRqEN\r\nvsVamyCDRZAtETr+ZaPRF9Frig0IK/R5N0ZK0UrBy5y4tRK97v8xbbyTh+Dv\r\nCpcRfxKePNY6dixqUD+ZUHLdLyR+NTWaIZefoOxOr1s5V1Et0HyJp3mVKf2e\r\ncTju1fmPR8B7D1afFokGqrjoT/XxIYUuxIcMffnRg+/z4GEjkPQG/ZDc+Hxk\r\nIP9jpV/4xbYz8BjPhW05v5wafhD87fAX1jxes6A4Kt97O0yG5+T55bGfNe3Q\r\n7ahjqC8nEs4qVGwUFRvwEaYHBhZzsHZp3I49ixexC5QtC7AIECkVu56BdFZG\r\nA5XnmD0g4huXxfTs7QoKM+CjaLZO4X8KSouCwemzzUAxyLBHyReXTmPVBbGT\r\n7r73H7bramh19OfJIvi54hb9qdFYsW/lCE4=\r\n=Mb0c\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.62_1679445435115_0.025896165934267135"},"_hasShrinkwrap":false},"0.9.1-unstable.66":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.66","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.66+61cb806","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"61cb806b4909d593791158fee36260b12301d2bc","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.66","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-PRaYAUdheKbSzFl5uXdO0y49MVETY0AL3a7bNad50jtqI15TKoY7i4uOVwlBAo8iZsY4va/Ty7i7oCWkJEM+6Q==","shasum":"7d157d3bc21d73436734aa60580d15df18be9d4f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.66.tgz","fileCount":54,"unpackedSize":100972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/B75E6RteE3FKVY5N2Jz2LTtI5SGwnt1sV+KotASTOwIgYGpUWVqbymHsE5pk/uP5P7GCgIXRMroOBq7euYFbOaM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkGu8XACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqpMw/+IMzuefW4+S2lPTXyn4etgvYaDs5Bbcxa27uz8nkara17UpWu\r\nx97Q7tmXZV5z0dns5ehyqODZGj+1d7tQ75GQxmN5FwMIS80m5OU72mJXbQhO\r\nVeEeilZBxUj/zzo534NfnDrmh4W0z9M02GnvdnzAMuLLBpdPylustBeHBE4/\r\nZYK7gBRGpJAigr/+B4tohk+l99T1pjqCqR0xX+jlk6H/6V75WV8U5bdQSfjs\r\njPJX+zx1kWezYkS2a0tBV94MeLyuCCXS/s7o8Gk/zU7Yohcf/8hsynQx+/L6\r\ngZqsj+tbxebfy2cOJEqVx7c1K/pdSR2gWPykKyEYjTU8KypD929+wCUtNY1q\r\nVh7pCZKwxXXDb045HlO7YhN8AMuSQAGWE8s0vmqZa5rOeHCIODgjFnlJkDry\r\neLa0WhtT/2ZcZ/54KYGlQFkoPGHi9ix6jPJv1HlGsmmViXkt3djCg0BlEJYG\r\nzs9brY7DJX4z+Q3X5aSn7pkbi2GMJQunhWcLuXv5QGSWaHthB/GSTAKNXieP\r\nn7DAH0JBzCCMk9HM9xrg7RRDI+ERrhKEnQGcmUjmA6XvRRZnFg5+udWIfW3P\r\ns2DxP5LL+8KuQE7/ANeO0v1w5+l+GFFg7oi1slKiaZX6DXG996H+pYNLEbv1\r\nXwdLkOPTnc7IZvIXV1aYDPxN8yCnnLRufh8=\r\n=kO6w\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.66_1679486743557_0.7125445742350736"},"_hasShrinkwrap":false},"0.9.1-unstable.67":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.67","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.67+789c507","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"789c5070d6a1d4d0176243219ce4f2642e8d74cb","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.67","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-KwZCrxKSmghR7mhZ2PrA8ZArJWCh1RuRviodA2fmx02m5zZYVXtYpjZUPArPtVCjP+CSrv99WJQlkgPLNQFn4w==","shasum":"2d3d7e0a10271f56852753a4042a8c2258df24b1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.67.tgz","fileCount":54,"unpackedSize":100972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFN9aS8fWz9kWK1cp2pBSWBu9WCy2c0rgMjWORp0Nh8AiEAoCfF/qEHTsVfgdpRvVajuZF5j23ZaQnu+dTOXl7YEWM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHBfxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2cA/8D/NFGNT0jF0iU9jiKHTcLc+tU9j5JiRAS6eHq0tV72iGDkIH\r\n3IFFEKxgxeXY/RVDGlidzqTcMbb74BbWEaY3dz/pD9rJeqimgSPyp/2f4O3U\r\nwKBN16OXyeGlDQqKadAAiAXQmx+qOOGTTw3yTBDydUyzaL4NxvkklG0W6LoI\r\nNVVUInbvSO9CF81eJ7YV/uinouL9usWQoMtxunCTRFWkhIy8ukTk0yE6Z/mv\r\no2RWniiTawtB9icC2CDO1DIs61RrAXcrbcdR4d1UVvFIry7q4n1NwwHzw/Bg\r\n51OPLWqpQb5u/jeOCfcHBNw3LNqA1WgGNfr3IRW/ujsGtUbg2JyYYTFvkgW9\r\nially078UOz4kiYPH+i7y0LNeovvJ/VQEDLXI8xZID3P/rvh8983d5MzCOPB\r\nC/3moVaX4pmc3CIBZZ+EP7yC7cxir37MknsDOX1vNfJhYZEvU4vhMpE8j13j\r\n9fV6EXmp33jSFQSUxFArfKJplFFu9Y4jhLdwlAswdQxtgHH+rbKMkgHvFZWt\r\nCKD/Szkg4dN5LRLIFSs9J8SrPSBgOH1f51YXaciU6la+ynby7Rc9ZOvpjXXB\r\njJtM2DdBpXonwrH60Pspy1nCpT/TfB43fhyJ4LVILwhm7Q5gwusOv9d9YweI\r\necZvaq7X1A7drX3JGZ2Y0NGDUTZYUmNa3oc=\r\n=TYFl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.67_1679562737723_0.10427142317702232"},"_hasShrinkwrap":false},"0.9.1-unstable.65":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.65","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.65+9f05c76","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"9f05c76e0ad11f5d2229b3ebb612e921a1dfd590","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.65","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-zSFWBMdh2zqgw0oUDOtLmco9Bxl0wvuA7dOscCyed41oNKerpb+v5/+9EAv4V0+CiXHrZ+lY3D69j+b2sVnasg==","shasum":"20989087be5dc738946adc0343e6b034a5f151d2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.65.tgz","fileCount":54,"unpackedSize":100972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDeJqls8jc+HzCXQQDG4yq9LMUevC+kJepWKcd7wmCbbAIhAOOuc1pzfgB8Re+D42/7iikgDbmEu2utN3fyJCQXUHol"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHD62ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHLg/9GFx8iu4jkExZAB88ylytUha7z9TATbvMPNKIWQbEtaR3BekR\r\njtIqhoW+/af8nsNIFnbHJsIN2d3Kix6MmD/I3+Hep4X3XcdXf3dDwAw1tH7t\r\nrZ7JEFSdDzc1Z1BL1Kbp9HcOA15XLQl1i9yJ+pH+OCpWQUGAyOMnDaY1n0qX\r\nnM/rIHtbSdJeZmMT8/fYtFIeqWrlLOKoh72Bn/yYcwK9qHWSAcGAZEbWuw2P\r\nQs6K2cF9B4Hfl1Xe9kdc9ic7BW7XBvUxjxTN5+bjBWBMsYCFQq38YPo8TWRF\r\nTeHfX1gof3K3mpExpymdwuzwTEvj8MW6uQokHURIZy87YpnBgzHJ8YphJzln\r\nHtpE/ANji4XCZffC/UOF2rCabL9IjZNsZKtPTacgx/8OMRUZOBAPHVzTQ57i\r\n6AjnWkJEdqNwPH7ma4oS7NYBCHfzisP/1tiUkv7ar3kcvk6a3dLoGE9n96gQ\r\nClMu1tfeX9xCZROYo0FP2DU2xNeVZWZxH0XaKE5qf5M86tsCaKTbAeUr+Vxk\r\nbLZpUW+L0A9wAar14kGkCbmo1vxLMLAB5M0At3WS4aY0Mcb2gKUj1UBDMaiB\r\nAi5jGSR0uYrIXFu2PfPHE+EJL1ODTRIofhopWgCCOJugxUZ/WUPHVqH4VsZK\r\ng+/OvG9Zsmkn5aLjwbImICbMJMumaHfV8rk=\r\n=PxnB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.65_1679572662367_0.49497261254919245"},"_hasShrinkwrap":false},"0.9.1-unstable.68":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.68","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.68+5363668","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"536366823b09bdb6aae23ff5d4f87098eac68ea1","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.68","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-yTyWeH8eNT1W6MNZkvMlrBE3QIq6aO8039PHa51pIqBIPtm/HpLCKSbrm5yj5Z3Nk505Sj4h3ruKkNB586iIxg==","shasum":"c967d766cd321c426351b18f82155066e2aa4de1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.68.tgz","fileCount":54,"unpackedSize":100972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEtZ+JC8x4i0RxWDMLppGd9wUYpEt2T+yEZcCrQska3vAiEA4b20pM/5q8pObKPHTWJpZYWQpqvjt1yuMx+F9zr8iP4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHGygACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRqQ/+I3IbvLH8zCT0rSRNJJxHmQfNP+UwN+UrMaXR+4K4NXj2/Jj7\r\nEIIExE/cmBCD1zp4yVwvhe9LBKrxwPkh9JX1k2s+kY+m/gQgnLD4BiivFSPd\r\nWOQUHm8mRwk9Vaz4jPqabj4a9sYrhGdilk3wKvV6tUXtcalSRe+MmI1Pc6XK\r\nqQ++rcH/qXn2bfWuJKQjxqKZz7pgq7YSFfs7qTOyvmqNpLB4b6UjcbzWyapB\r\nka92rCluMC/JNEB/xsQD50bWzJvs74zIDOsJjbTPtUgrGvntrC0I7b3DIYQE\r\nhtNWBugZkLEEomGn0iRdhIF9jLPRheCPt7qP/5gpc1TZHs06i5nhR/ZM6twH\r\niTLVlDxHsc8hEF5E+nFzybFGPZZ90IkOp3JXs+/wMI/SZdvJYqdb++wE3QYs\r\nKFrT02I7YqijnJD21t/U4Q82dIFUGtnXGfQPahRLzAsqQie/WPurOkaH3/lq\r\nO4nFx6hHE5kI9ypNUxB7oBoL/jaU/ftH41CTow9iaZ7YFD1zlUjiO3SXOgZe\r\nVOvyhBXEiVm+vneaV7llMYTDVjvrqxjmm0qVS+NnyhGT0thgNAatTXdwBW3U\r\nrs/+xItAMoVHmdnYRbBuA7vgtgLQLUkn+tSRKdAvCIAaw6stpbkq0AOnvZlV\r\nmQ/GGZFIbJ3HoGm5l9fCmuDA14aGHUVbJrM=\r\n=1Hh9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.68_1679584416628_0.4723064685456795"},"_hasShrinkwrap":false},"0.9.1-next.69":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.69","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.69+d229f07","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"d229f07072144fc691a1e2dff575a7113373495c","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.69","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-iwLghwp/eeKm/tO4fP9bkon2rYYeQtnOKVOElKXHm5VH7Qcx9jCFq1daPjD2ulfUOZ3h99w+odSeVW9OebFFuw==","shasum":"36c89a096ed9ed0d84cdd93f2f38a890615a99be","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.69.tgz","fileCount":54,"unpackedSize":100964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDDpkKPMGTXVtnsYG3OoxURWK6kVFhR7igZU6cpCVxCwAiBvzjA/iI+pPJfMDCbssAH/R4rcykcyiw6v6s1gjWWK2g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkHZCTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmruNw/8Di/WH48GdHhhzVfHEFwSrrc+mLB7Pcdot8WZJbTWqZOHqUWL\r\ntJSHJ04r4sWQ3hrruNh22ptMM0BeaKAfLaHRmRx+F/VjfdRBR+mB0tAztUwf\r\nBYl4zmqnHKIjiWX8MY+uDzjS3dzLDCID9V3eO9aEEI5HK7bQQ71n+2rTA5+n\r\nWydcaGgDClTgE95A4Ue9AvKTeLh/2oYATsXSMDvaGd86fW78aD/wTGQwnvpN\r\nstDUrSVupQcQBV1UggAaf+1MPYSWRaILKiWOO515o0LbalYVq9jC1vD/fj7i\r\nQHCDsLj53qVjBpzAopy8HjP9bnnU4KTno0IOd8Qhi6w0dIA1FxTWVK2OklJL\r\na4byzyZwWT0aiYN5O/e6X9ewaXLZSlDtLENKjJwrTPilZTtiBGYq6l/fkO3T\r\nf7pZSlcAd906ESRNFpIB8uA5QLm502ldCApniAW67o3Flxlj+z/Du3/G/pD7\r\nGe2puvBYJEKqvvIHUv1S91roFs90JHl0WRTFMNfw/f/Ox+GSskU0p4DIluhK\r\n2el9j7M8YXBYAw94CMvG7CtwIMKhfqb83lSfjbIGuu+fTYZY2QFjW/dopdBZ\r\n2PyNHxvxP/i4ilwJ1llG3EqJtYIQxBL7tqfbacXDL/zzUvwq/upl8ol6qB1d\r\nLkIfMBw3SluG6sQBiUIUOWFb6XjoIZ9mooY=\r\n=R1tn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.69_1679659155167_0.14726871675010944"},"_hasShrinkwrap":false},"0.9.1-unstable.85":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.85","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.85+2a31791","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"2a31791523e2053c51f99bd5f3bf66304d8e7268","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.85","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-6DHUPE6+g8zhUVhO4ys8xC+oIUGa7lwH4AAJXIPSDVlO8yR8uNaOfdrIEgpCCO+xIBnOWNMAXz/EmdYwTogqHA==","shasum":"a6698e257ff43d4b3ca5f601f51231bb9c20096f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.85.tgz","fileCount":54,"unpackedSize":100972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICMMpuSF9NZYJ7CrQ5QO96UsShMFwQ5wHyFR7icVMQRIAiANZ5tSfCDe1Hk56Q1flFfDEQvsEpjHTZeeqTOFNWU7sA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIXTHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkIRAAnvprtPgo6K/YDStXFVkpULIsJUymzjUwKCWzMnxKJCV+oW/i\r\niekL1dORRl3UhihSln/cIwH+r7ASHCRI+ZgbFK2GJUIUijmOPAhVXa/qwtTj\r\nhNSRkyaDl3/087OGTDIbFJSiO3DxoFruvibbKzncKvGsWnFolM4WEYP3ESZk\r\nkhzLVUAZuLFHVMPo4eXzi6Hx3mYDnMhKgBuYOHn234ZmaNNbBpTGE3tMiXoW\r\n5TjgUJDk519LEvq5v0pQ3tjsR0BYldXZhZMA8KvqTG00HrV8j2iN8SnNMnpp\r\nqbwfCmPGmcIyq1ltVhgEew3aPMIZt6jOqd4IFQ88Xpqh2gQh+/FbbUOAt6B2\r\neiI5Y+rLi9rew83ZqUdBqYyLhgyT4QrbvToC2pQ8wcbS5gywsXPFp+xQiz7k\r\nFfvn7JdNbBlyug6A656guxXnb5zEHQkA8u6x+l4p1aUpmI3DypvBq0wQA/e5\r\nq/FZxdTd5eYGEJJu6sPGjbslkExKgPsmx89LgSOFp2lSx6ePn13h6SQH7sIR\r\nWoxxfuo7suIp1hTqBRRlbuI/TrC7Z4H5IWuOZHf1uISi9CVciQFOJqgTl6ut\r\nDrvXmQGr6fKBCw0f5YcGgwsNJMs4BFOSjpotUsDIgi8GVNNu3nWB4Udi6LnI\r\n7zLJMvPqeBt898XzOwiZahPqwIwkk4Pw1Ac=\r\n=sJg7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.85_1679914183553_0.10148964137723615"},"_hasShrinkwrap":false},"0.9.1-unstable.87":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.87","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.87+fcacce8","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"fcacce8a15dc0d1555c57afa143c25116bda8224","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.87","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-6O3ZGtUhnKLfvKoIP5eBFuzIoT3i0IDMLVyp8DCyjcpXlUnHRoEi56dj3Ql8RWFcxFfaWk+w5UdwJUjN6WGyOQ==","shasum":"229d1374521a5ca144e8b406973f119dda44d032","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.87.tgz","fileCount":54,"unpackedSize":100972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEXyUvV28Jtfsnqokis2tkGFvtS1QL4Stx0ig7E2PspNAiAItJ3K6Wid/8B1LaThEgeOc6i5CDBnx2gElSpFttnRng=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIYd8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZ8g/+LLrHRW+lEDf03eZFWmxHnSgOtf6Uf1alsho2JRNsDRKkEbWu\r\nUhJwmjlzlped9RRqgQcyVETjaHj1jTZyFgMMASWAtvA1inUa/7vZ7xKkTf7N\r\n0BFd9Er99HKkIuEzPYN9HmfURvJuoNrZVOD+oQcezK7Y4AWgyDL7OA/Co2RX\r\nGKmAhv/sDNNQmB4u3yqivT2IhWF7FbciaBlrzxxYmTwksOSA0yFpGPlMUJH6\r\nv+qEOmbeKcrXkovNaR/6g43bsQtZYAewVOWUVif3PCUqUhCAf7IlyfHSGZvr\r\n6RN1bcUCUIGiBaUboDuESQ3XHzOK1kHAb+6Oj2abutoltqO7KKF7HStj79VP\r\n/rcW36Hhy8NZkf4d32Tfi51Ka5wtYrYMiHhWfxVEqxKiKZkcaPY4Yj0l4fCP\r\nVTovhh++YoGei6Bi9cpVyQ2S3aCnY3lADmoPpMUFbU8v18ps9Dlidqivlc8D\r\nGp2tNjND27yO8nDSJH1VxbZBL/Gbf5hZcoa+DSih51zgAuW6AZMWTzOea+d6\r\n8euMveV0IBiQwHJqq256HZOk2NS75dBxHm2AMg7iaLRxrqMohPw6MRdUlYLT\r\n42zwM7lfhBcrdiM5ZqnLpOdH+mvniiZcZnpZe3M1SUIWxoB9cZ08+h2bAm01\r\nMwq9LNgvKOLQxB+xfJEhlo5xg/8UkbdKdA8=\r\n=SxvU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.87_1679918972240_0.8764131245064273"},"_hasShrinkwrap":false},"0.9.1-unstable.88":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.88","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.88+bc20d25","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"bc20d25d9b58688fa745e6e1020979ad936025c0","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.88","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Ql5Fb4bI9Rcmqw+ldnX9/01ibtaM9irJYqjbuAQfyDrlQPLTo2JSiTK4bF/5bjMxCMyxRwhHl1HKYQOicw06Mw==","shasum":"6488a471bf52f663738de97651e6f8c7ed5ea62b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.88.tgz","fileCount":54,"unpackedSize":100972,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBJ5lFHzJrkJfxhkzgYK0YWcgxw+NQfz/vZ4vsquGh4gAiEA+cfw5BAs0LYd29SokUgmyD9hc90QQmENCDtbJftIVPQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIYgVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGng//Zo7ZkuUHk+bBG5NffdsVBFhoq+QAWAAjjpWAoGkzbgeymvJW\r\nAwlsUUIQ92dQ9uvun3uKHYBTX8qYHJ0VB9Fa/fqe7SjSsRXSZr2gmhPmWA6v\r\nttJ0ElG4+uxAQjPUAhObFbES3lbnuywxYEbbPEcfBFmDRG6h8obbFdixQeal\r\nTDYl3KcxdsJYfaqXtrHFJ1flxgRAHZ+5SQBFb75bIWPTx9Wia12wOTSck8fU\r\n8aepz2rEAOD4i1dTMfM8fDsDJKjSlXMryGcvAXNsvmB/INFxej5VH51YRg0l\r\n46O2n3zZ77do5L2pqV3cYoi4ZoGgQVyanJvdHgkcbBmcppT2NsfZMbKh0qE2\r\niUUSOspuoerllc3pzXFXRWUZoMCAvqQyfn46Iw9Faum6pWzd1+1pXkvnRnD7\r\nKyaYtutL0mBjC03++FOfM72jzsrfTVxO3xI9D+jqY+PTrWnD5HvAdt3IYXr4\r\nxghMUBJr7HqbR8OoBzmjKA3AS2E8KFEdIW6IfL2+oB5IYBYPaH4dJjgMGB7r\r\nJNOKrCMwBMmTnDR/cJ5t2GiPBMcW8LINd04YO8fSh2JOB3LR4dAZfNv5eG4i\r\nCMMxx1DJ+NQX3Kr/vZ53z/FxAcGdz9FSA5SSJFkEn8HNwhEu28IzyC64aAko\r\nk+6eb+Kh/3dcBpcJwErfbSWpJQUZaKL3qao=\r\n=OJws\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.88_1679919125547_0.3227994036427013"},"_hasShrinkwrap":false},"0.9.1-next.89":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.89","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.89+163fa09","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"163fa09b8b1dab08dd59e07ddd28d4d0802fda5d","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.89","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-rNLBnIawfKtm9MOOL/u5ZOicxn3B36Caxn8ytxqN83rLbpIXnx1ShX7IvmgKtNyHHsBuP/AZKW7zacd2knktSw==","shasum":"6ef2cd2a2049acdabe3042a6bb57992fb974029f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.89.tgz","fileCount":54,"unpackedSize":100964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC+PQSpYQVUt12Mgmdrog5gj+Uz2BVlpnnbSuDz5msL/AiEA2Lm0Ns6psd5x6FHdxfxltiLoQmvo5lUz9/0a7vd4FUk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkIgvdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqrA//RFHMIYG6Ud680gkDAiDdmGnazuB81ABWs0Pt6+wiQGs9Nhhm\r\nF7C1vYyU6vwTN5+kY0UcE6AfxYfoG0pj5GN30rWG3W3jrRECeyeyt0/q4oHE\r\nIQyrCjf8eX47JLVukW2feEKUUGk9zh1E6c/asw5uHJIuaHNGlBA9qVAbVHP/\r\nttJU+My20LeWZXav/QRMR3baID0Hf9eJGuxtca7pZi6NQQJlIKyNnWEi9HjO\r\n5yXx25fe1juJDykhnTgvQbUOUo4zlMSPZEQquSKLhRj3Vo6pbeG10TOPHiP2\r\nV/BgpvIBvrYsHjOa/5io36Rab4Zb0yLv3sUPuAdht4UUMSc//M8PllMs7k1E\r\nY7RlqJQgYBLAqVg7gsorfYmsKbE6ArfUJsdBaE1jMOUXPrAl9h5goQnPxftC\r\nlxvWM5DKIyHL1wOAaog06GO01xYN64lAxrYf7UQyjx5xc+mAClvDMAc5heNU\r\ncOjLICaPViGFkWTk91fhSv4pFPwucZdFtnJwJ556Bsw9SdRYBpqcMk0c9R+E\r\nXH7t9O0CxE03C4HPFrJsCmEH3B5h24ZEAkTtD/4oBEuEP4AI0MRfktnN8h/L\r\nJ1joM/rkblqPru7rPln1uY3bH4UQVbIRQbZGch4wPZzBapdOqvR7YGE9l48B\r\n80tfSTyt6tx5oJycgLNMicklHaebgLPGmys=\r\n=Crlf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.89_1679952861011_0.6405922351411366"},"_hasShrinkwrap":false},"0.9.1-next.96":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.96","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.96+2aadaaa","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"2aadaaac883e78141d67ebb8e8a9dc3574a0da78","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.96","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-B9gEhZMZBlYptxjhVurCmNpQMUz2M57kC6nBxWEiuGQeZiLUjap249dTzc9Z3fce+8Nfv2nZkIUQP48M13ZHAg==","shasum":"05187dc1ef8be89a5982733cd1d73af1e72b7668","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.96.tgz","fileCount":54,"unpackedSize":100964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCvviP5NrSPPpL47SlkhXbDiaIIrz6xk5KeV3k+aVMTIAIhANWMIUjcN2F1maF10+sGXxn+tt4BCIvr1SZ32+xIV2zA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkI/+5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpDXQ/+NvIBW8SceuBLrIZxLnnl2rpBok3V3u2+ko5aHML9VTRU1TUb\r\nt5+V6EleYAc1hGlt4K22EV48W+jDbf0lXreuOyKm3vGNHfLMRFlOk/ew3dgs\r\nPkDjHrVW0Z2jayfcvGCgK1SWzCIdeuDcPCtzyCC21+DpDqZ7KuG1JC9+sqT3\r\ngOd9UO+QzJTU2uppwYSz2+iP3wDuuL9idODRW4u5wbIuagDlj4qFocOxVThK\r\nGwB7OLr38VUC1MU4qnKSX3oWtSCtuCbDR+SiqM/L1d54sLhDjtoWAbIDEEHH\r\nmyI/aNi2NDfXpwLPyoBEn4nhenfZwHcpb0t7zktQMbTztJH7ax7s2IT+lKbd\r\ny04gDvSJ55CLmR3QTXawJKG5E14YbEIXWp7hsV0zcmjnxkoay9sl2emYS1/S\r\n96WMNA/1r5OEe4nu7xZ5YIQv4jQVg3Kz01mzN9OJyAdM2Knlt4cabA/Q9QSc\r\nKEfmfOmpxEwgWiwzxH/Xy1vUboZMjnhH7KeOWkyMBNyGyvbOd/afsKC52p/Z\r\nRtPbXJ09X4C2vew0JQCG/EoDEEP55wLWSbbT6JV4V5IGS187l/zpuJnn1pKY\r\nfeAzmA3csV5w8Eh+HX01i2uGOeR3IBvGgWOpTg3SEAu7B3oUPExFKP5ZpbpP\r\nWm/bf2dwlrLAQ9X20cJKxGwkR8y9r2LhyQU=\r\n=DrbH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.96_1680080825336_0.4266618146901602"},"_hasShrinkwrap":false},"0.9.1-next.97":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.97","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.97+c75ff12","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"c75ff124dd85cd4e19e536324fb5a8c8dae4910e","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.97","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-0Uudlj9p1rD1d7r/VeiXO4osyvZGGo9IsiDP8JBnQ4f7Rjj6ajqMpUHWMjUAeHS/5W6rAQtukFC4xCZzRjIvtA==","shasum":"a6e45079d173aca3fefad89c7340ad5e742f7b6f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.97.tgz","fileCount":54,"unpackedSize":100964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/qrSvxg4V4zSB+MBry9sf/B02MjikZLcUpSxPb1JfXgIhANvqvQn1t9foKKKaodlPmDYW7CAd4Z30Ih3reEwsP5a0"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJJAyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqh5w/9HtnsWw3VQZy+HaXLBlPGYa1y1IgCaxsXB1sqKxIGvN4qYjjt\r\nOnTiaNtrR1Jz74+zPor+MyJZ5aUE4yOIUu2n4rUF7VDuB+7kkJSsAXKrI8HW\r\npp7G6LG6IlSG1paWx2VAfJEHaRmySZJMSNL4WEwlM2GIYKEW8Xwp/e0VBwLU\r\nGZpJn03U7FF4PZHyVFLHJ1v8dSpLbkY+maLbKUgfrg7ta5V3InSDb4ftF+Oh\r\nkhQNDRJ2cDI96k7Sm4IaiY9IpCatbNZvmFoTZR3CcP7LX6+KwhnLUxvlYlmY\r\nRqeGAZL12rCCDnVhAfofhnN3GbR12WGvo3koE7ZsBGtoz880hy5jfEedOtvs\r\ndQ4LiV1oJXzS2Beq9he9AXOdX0rb+xYQKp0oJ9Ffi4Yxv0Y4f5p6FZ7gBxRw\r\nmJSsW6RfH1TFvrUIzVrGHzvswW5JRdChKa5X6YpJOBh4OUtqXQ6dR9btrHWq\r\nvTP5WUwnZ6q+LL6/QwbcqpCL52O09zfMSGlA6zgGSnDM7jjE7ppBjxXUhtp1\r\n9e7HJ3R1SrZyAmbI1wTNmP6NxG6P1+GLLDBB/eX+//W+Iw81/ojHJ9P34QRD\r\nvBu3H8iW7wUEj3IkHOMWRIK0/JuVHVQOGSlis3ygIYYwesHUrIggefjMuUD4\r\n3Ai6yUJv0aar1ru72gdSTzouDKos9w9/M+o=\r\n=c6WB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.97_1680117810326_0.08680496466415333"},"_hasShrinkwrap":false},"0.9.1-next.99":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.99","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.99+7c555dc","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"7c555dccaa9c361efc4516f7cd5e8583ca07a146","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.99","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-oRhaDlVY4sSoZ5CTCT/AIoi0doBg2ubaAAAYzt0PNAPJmjO3wxmfn5I9qbG2jGSpV/zTFA5gAjcOE1EHdz8dPg==","shasum":"293387e9574929149cc8964b23731951df543995","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.99.tgz","fileCount":54,"unpackedSize":100964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9YqzbL0ROqluqm8RfO5MsSUhwuQsSkhZOl4jeO6ZnKgIhAJkk57C+vLaVCUD6kBrhdeGAFYrMbO7h1ovM4gsosqI8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJJDYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1VA/+LFo6QJQw8qov0W+9yufWYHEtJ+pGPJuBkXt1ccmfpmI6defy\r\nIm8NHcnnBs6fm2icfp/5chl+NBkW64vVsrcZDwj5OeT+16Kiq0TdzOhwkDc6\r\nm5AB5wR+9YsHYB9ptNsEDoAxu+wn2WhoQDaLdqWDY6dRfE4/DMBS6+dkrGVw\r\nlKiJdYYIk4DFBKrsbRtehXS1RfTTRDknsqW0PgqJxjmkYWCnq/INbJ7q27Zp\r\nV2919mPwvWUVntiCQYG3YqtTelFwjbcFUAAIrukTSBTmhJl0M7nxCFfa6r0Z\r\n+yKFzpn7SeQJ/GxbnSR7uGCRyDfBvIhxCJLPhuEpcm017p+MtwPEpuQfrrPa\r\nUWAaM2mDLEgRDQir0kHAc9mkUNEtUOZO8AU2eutq76mC0iUu/pPaQkImCpxl\r\n1bKxfv5HccxWzkjkQsyyrGvMVTyTLsY593AlxtIQrl5e57JGyUhLZlDuIg45\r\nxYn5q54crcOatcWBi0aXfgF4BB1Z0RxqREoxXFXNQlNEh1iYSdgEmrrpmoYH\r\n6jcXt4167P9cQzJChtfrAsNQ25klaNfvZpaS6OTZjpMNiF3mVzvr5N67Wxg6\r\neCWQxhahU9FZBh5A9YWapdg4Vq5KACj8W2RkU/uiDozsHF2iTqYxR6nnkENR\r\nLywrtDtE3PPPAX1rwM4omiCayt6gSYS1wrc=\r\n=HRZd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.99_1680117975983_0.32394055547480183"},"_hasShrinkwrap":false},"0.9.1-next.100":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.100","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.100+d77ff41","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"d77ff412cb9da4de9e5932c82e1eae142a083172","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.100","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-3FNjhCXeeLKa6HbynpVbfApplifiS8D7o2DVIlpXKMk6c+7H3vuIJulwJ+m/BWE5EG+dFpoDkEqafKFz0oX47g==","shasum":"108d5dc7573a8f950f96ef580d4b1abfd83072aa","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.100.tgz","fileCount":54,"unpackedSize":100966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrfXY0rQ0mbA5/7Nl67R5imY2nKfDqrE61P4nXAyvChwIgRfm4P7GhEBmBLdROtqanq1gp/13VBbFOY5uYr1xD92c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkJJMFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXkA//ePrp6xGdoo6TCdaknupfhXVeHfGufvv8Ir9cNiX5I6SnOuTh\r\noOoBWBkldvjYJ15K2WZFc1ETe73Kil+QMibhHMLjKEcbP4MoA/B3iJ7O0kFJ\r\nXR1JDgaayXkoXoRJUJqCC+QtFW/IZVtRYxBANkst0Q0uOCm/LhT+XHSOXNyh\r\ntODQz2busBvzQma7uHzGTttbl2BAFXn9OKqef1MDelxSRzSRGC1BEcZgHoue\r\nyMh4qjKvGVsSY6yKdCjjdkBYMXdQ9SbLTKsBBg4Ux00rBenYFgMXGk2F1bxb\r\nveINY50utZuUgKqYq8jofMmIKDIP6pFtuTFDXJts7zWa3ic1iEckXYmspDhh\r\nh/YGGBKoUf38E0XqDjoQmrzIvWWD4RGIhyhPo+ouagap4D81qJ5/WrhvnLme\r\n1cGdpAiR/EnjJq4QpHJNY8ZAMZqiW+4xnMAAxeVRNk1OxhaGty9xJ/YgXY2Z\r\n1p00wWoUT8mYfTRvrkfK9MiY2th+5MytuU1D26ugISk8ul+fBwTwnxHxI1L5\r\nqo6+SApp1myA8p1H8agkvLrf8SNPvSDGAl34Z4ZFiYjk4ub1kGbvRyO5wRMA\r\nFg67zDPshVMPA0DhCPQax4YMG1v0Bll0EFals4jDFBBoEhxuOKKR/i8CqbLb\r\nILgz/Kr4GM5I/OYAmnNM3iQ11aifyIkocvI=\r\n=E7mi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.100_1680118533020_0.8153066907505382"},"_hasShrinkwrap":false},"0.9.1-unstable.109":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.109","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.109+db2213e","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"db2213ec08f5d44a9e39c619ef0b5456155f2e0c","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.109","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-NjgJnCeDoICsZWBcwOqcEJCqxE5DXC1stkxD3Zg8qM0jIL4ritIv9z3CHW1NBsnO3TcgqAbV9e+mdTCAxbEPMg==","shasum":"69a3d4692e3781d3b1dd89aafdecd930df4ef82a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.109.tgz","fileCount":54,"unpackedSize":100994,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJmJFrLLIsDiWlN+FJU3aa0LtpKz13h6Zt+eWxf84HdAiBTM7opQ18D2VDnWAnnDqAPMDoOo1h5YLf+6CIaECf9Rw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkN0HtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdKRAAo0ZRx4D0DoD1ApL5SFi46LQUdI9NG38gQR9MzZ45mhIYx//v\r\nmIW8jMRANI4DEQcTjq1RFfiyn3YB1Ye4qjVziFPH1xE/nNdO5fZwa1pUJGzX\r\nLJ/YSgVfCAiYwNPPp41m3gT6haTxJtRRsjdww8dgWVWMJISFN3emELYF2yLp\r\n3BG97UzXWo/9piaJ76TchI7cngYbR6Nc5qCQgL5Os7aevAUAQ1MeorDPQIds\r\n3EBxKkeE7nL4/Q1Gp36bRcZqG3jObhb+1RaefPQSxcHw7IjSCLzFQcEl66Nf\r\nPTjm7xiF6Nh9wRMIvRZmedU9LHX6Ec8q/03WRtNa8kX+RCaT/+BY2kg+UtWl\r\nVTfx1DzA19C33R9c3cS8/vXreVAoFOZ3HuupePefw71208T9Us3RQu90MFm7\r\nFPUV/lsyj+3Yc7dgd71FDkECGpIdSY+xgf+RpMz6/K4CR4mmmaofKYqB9Ejf\r\nZh0IRXBthKKSOtnpE32Iba0Yd2GkLnf/KN3XjE8FmS8L4CDcw5Ij4A438mkZ\r\nKoLqymWWKyTv6F+z0XzoMdmzsbRlYlt5UgF3ym1FE5KFI6hDw0Y9K0SywK36\r\n8j8XR6UpqMjTYN0SY79j/j5jEurvyLl774SjIf8s9Ec1VnNkqOO337tOC/0E\r\nrOOMQjBswo3uOWvNmfO2zRbItpJojlIFUSQ=\r\n=QIin\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.109_1681342957373_0.989846069615872"},"_hasShrinkwrap":false},"0.9.1-unstable.101":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.101","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.101+fafa982","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"fafa982bef719986aacce61ac59d2cba1685744c","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.101","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-faDhl9l5TtVt36oO2U/FLIR1D3yZYneM03QwITe00EYsfrSPYO9OBcJJzqrRYFSDQwVB6gfU+HTE8+pDaJ2/og==","shasum":"217e311356a0014ea95e92a5a1bf58b935551234","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.101.tgz","fileCount":54,"unpackedSize":100974,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0ZQK/7s7YP1CxFKcUWAs15GiwLmX8r67zQKj5VwVH3gIhAKQaED8JJrF0owsHeYOc7VJDGHBhy7NjQzmYSKte+B8b"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkN895ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmps/hAAlfGTVacZvaPIqYwIt0vqvZgum7DLsI7Gn9q1/1mXv538IQGz\r\nVHP8SxpcRATr5kG1qV6ItZ27elbK0jVgSy7sv2zlDT+iNOgwEul1x2TK6d6b\r\nzzklzrI7DhBEf2ZD8fkYMKrDZBjikp6lSmmLsjQI9da2UsE32/PHwA0xxEaT\r\n7e7g9KknfWrvAB0H6NcqaKlkCf6nyDrskVLsA1P5nkD/+Gip4x4c97n1TCCH\r\nT6jXdMExibidd0hyCG85D/wcrg6s50BUN1I0MECfCSyPkbjnANgElCPVVY3Z\r\nif7/wl+zzJLxclqMNJHwc7OhHygCXaW9pXdr4Qsjf+RK3BCl5huYVazLQaRm\r\nZsnbqh/3k+bj2inxYUvTtouF+MHeWt1xUlGhT3NaByUxZThSfqmO0VS2uyI+\r\nfbwKgDW2ayfbHit7/HF97fH2sio0g2lC1KUbq0DUFdbBKpt0DMALHWYQhckJ\r\n1nLc2RFTHpf1oR/Q352QEsDkOcHSb/slZAw9ajYlqMaTf7y5semWugnbh2tu\r\nAv39y5QyKx7ofs9FBHkNu1UAjgNOcQrQVl/di8VnRHNG7mjUfsfYnUf9dDZd\r\nAu+EcNCqHVUaTw1ZJgZ/zI7vWh3Jd5hKdnfpcKfNCBuwhdAhx10gxPbEK83t\r\ncwg5WVza6oxnSGRUvZyTpKTwsMyBOcJ5gU0=\r\n=yX4E\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.101_1681379193645_0.225806267145513"},"_hasShrinkwrap":false},"0.9.1-unstable.112":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.112","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.112+b48f38d","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"b48f38d804083f4278f146e286ef05bb557baa7a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.112","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-v4p9Evv6OVpaZZe+Y6pjL8LQGow0RgHcKfx7icsebEIcmVqgA9bbYpr3k9LHvkpl8fne2zfgVJotsiohhfyT8w==","shasum":"4f65645f213b3aeeec7c9a5cfefaefdd5cebbb16","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.112.tgz","fileCount":54,"unpackedSize":100994,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHBojdpfYvWfkg6Rzu+4xJYeZIaAB1eEtG5p3heaH9QWAiEA3wcsHPCOBH8C0iCnPyS6rsettvHfTPgpEHGNMbOWO0E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOB5BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVShAAgaxp7TCm1jBhqnZpvg1dZc3ORZzqwsmyk8xmzLU+kMlQg+n0\r\noVuNiSNihysdP1HyCuR2baBBmDTf8L5c0j5cD6Wok3Bw3Ex2Scr9Rn/ZrPnh\r\nV3vxnem0Go8ZqPrtMV6FFL62ZuNkCA1vnjNoSt1y2OJTv/i49cSRDD26b49F\r\nVQi+I3BrhXFQLFuNtARFmP5DLe7K4H8DSzoURPTfNaPoa83/ytZIrtSttqkl\r\nEQ1JyBB+4Kb2LCtROnySYUDG95sNlk10SBFnbQXbes/y9q51sxae6ioa1y0D\r\nUvPZjshzAZoL9aXX4ZQfs5EkWAj1NArGuNaD+TBymCNN0Iw0i38fSwEm+nGs\r\nf3EXSP9rFO/pYoGRMKoLwEgvSqXEM2SF93BU0KUz5Dor8CEbXUYw6xwsLoSh\r\nzouzzDkN61s6+AId2Nv4DSXBB+LQeURgQoeN3UhpYO54Myuc3upNIxrOOW15\r\n8S7NuJh8IFtQu/cDfBCWQ9U+fsmesryJakS3cz1RiQs2XQhdX/SgGpOQx3mt\r\nbhl1ylCct1qDa8D2gDqdRm9irCXWMfxwaZFNyk8WfWe54I6p7a/gJm+E+3x1\r\nM3lbLuTmysfgCf0rqweTZXrY/pnqLkmKmGBA/cFeOnORRfJUm9011F4TDpCR\r\nAvEl2VnqpzvwMmwxcqh1CpSSr96aQibJ2Dw=\r\n=z83S\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.112_1681399361224_0.05884615243944569"},"_hasShrinkwrap":false},"0.9.1-unstable.113":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.113","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.113+1a534cd","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"1a534cd5eab80a1bd697856e4a240fd2f30fa86b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.113","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-/yqbegQAd1YIO1tcRgeuZL7NX5gK+AOc63HCqmzsvta/fBazh95FbfZV7EdD9pruHygVYpel1HsUrXVqZxO+vg==","shasum":"33d09b25222048597fb58fc2e2151e39d51d12cc","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.113.tgz","fileCount":54,"unpackedSize":100994,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBRbsUMwEgQgQvCT710XodmJcHpnEZICIp2h4PWm7CmxAiBTxxhe39hXh3N6t88qwZl8gWJh00stwYS91+zq4W+4wA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOCJkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpvdg/+P6KIZNTZNxG425XaJVsYjsBVOEIzerWiA4eTCHHqY11ffHTo\r\nPTSD7D7OHUYoQQh/F8ZGnWfh5vVn3KKxe2M/kvUsJQUxzI57+bs20JuXFyQF\r\n9Xm7MQ0yWfU/WBMpQ0eBjrgCC0xaDOV5PZeQXdiKsYpEnKeifG3NGCV8NUmW\r\naJZ37+sO5PX7FpVWBYc/0o8rsb5MTRB45Zi7KEt0MMeyFyF3hRmkXR4YYXFy\r\nw8wJ51l1EanxHKOWaFamgYeiuV2nvPlq8YX4Lr022RzNez+yghwGDFmumCSG\r\nKURcH/H7kg/UzELuQOUZI8sSHOGSUAW0JMEgoi755+wGpkOz7nc25mXIbcBz\r\nJcscyt/Bj/qPb9t2n6j8oXz7uJhuktP1wpjOxJZ4kAS0bvy98/rfzx9CHpqe\r\nobTALcj5YK61hSqazmwGfhdZsn945uaHhS1P6SRBTvIwL1QTyoxRFwDcugx6\r\noNYWEmHjYOaatGkNz5Wz5gtq/cQ0WGNcO7blQg/cdNloI0gL2aNARiUtx+xp\r\n/M1myuZTou53ZJzHS+6OPMVIe8eSNgmtuTgQobwZh2So5jNX+T8ey+uJ4du/\r\nSVyQOP1EI7HUCKzKID06o/dQN5EwSbxcDOhjkDuPMEWkuxQsi2E52i3fkoka\r\nQ58Y/Sywu/D8PjRbQQP1qAWo9SnWRY6yN8M=\r\n=apnG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.113_1681400420409_0.4792707615538254"},"_hasShrinkwrap":false},"0.9.1-unstable.114":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.114","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.114+0fd92c1","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"0fd92c10ff980915bd64d10fee08dfae8b0e179d","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.114","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-g/4ByYE/ulrqzhDjln17GlbCBXLLiDBilewthuKA1KgZOkBbeS+Uz2Cu4bRT5UqR9D/LLhZPK9iOKBYsCzo5Hw==","shasum":"1dae2d7b94467a537ddb55123a685c7163264a63","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.114.tgz","fileCount":54,"unpackedSize":100994,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQq4SVfu65SQ4DXVa8B+8UyhWVu3zO4Uwux2ZNhDG+3AIhAJWnLxqU1htX53HFpnPyoDhrDkjRQNP64M98m1TFGuSI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOGk/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1cw//fbsy0Jjwn9VpBuO9MLcftTLmkfUQY5sF7KoupiMzm//AB8td\r\nSRtK3KJ9Uqs0igLyef1H49f5CReeBX1Oq6jK9nviHbZIxva/eZeuq/FbQn7a\r\nNbDIZeVk4vJU88OYEfDZrAOQwixtEUEnvq3ryQjjDWRsjM5TSBBMnYwuJpgn\r\n7ExxExqeCamaAtV1BtPAB9nuAtg8Wolfk42vrU4B+qSOPv4irz5oD1kPOjFd\r\nujzoRUm6OALzPn+ZeVshXeaAH692n2JVG7uNbuxeyXMOnz6H3hGv7wI/blXR\r\nXSDP/ByPkgz4GBp4ZFaoXBv9M3QkV6Ng/EmC/WbwiBedumQl2w/gbWzudt0T\r\n8UL3j71OTqTG1Ajn1XcWPNsqkYoO85ELkVoZMPTHtftGH41UZoHG8sziJc+/\r\nWOPq/kMgYQX673dcZfdmKzaqe4CEgQPQLvpWdvKQQNonxJVq/NTtTeN6PlO4\r\n1ggRJRNv56sIH65DGihMXp/cVtSRFNzZYQACzHNJlqjsvx2FrqEhgc3Eza1e\r\ngC5gsL2R8kagblrGhkrhellTD1dwN8QWeaYC2ger/1ZyrVsRVekvH/gowewu\r\nWYqv7VeUErqSBpkM1XQGRq6dBbtfarIaYuC+c+0wxZQaHLFF30P52P65MJX4\r\nLNunDNn+9W5bw31u/N14ZOLSxy3C43C/ens=\r\n=jRAA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.114_1681418559095_0.2735818216402621"},"_hasShrinkwrap":false},"0.9.1-unstable.116":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.116","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.116+31f99e9","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"31f99e9f3d13f979adaafc8fe46a6bd6adf8615f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.116","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-8sZVGO18yeuvms/yJLLZQm8vFdoqvAguAeN2LrAHRKUUZqUkIj78f4YpQ08CT83CC420EHCayGxBE2mKS2sevQ==","shasum":"cabd6856344b76611d2e02e0f84b90eebf1015a0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.116.tgz","fileCount":54,"unpackedSize":100994,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjJWhfKz+HfE54ZSSHEOGuCn1EbHKDhP84OpSYnZjBDwIgQixaiAgmQUPSZ1Oey+VQtlxQE8hT0Ht9XlTuvWAITBU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOIrxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpg4xAApD0mB5BO6bW5OGC3L3JLb+AmeDZF6WhfafHTFszfG5sBto0R\r\nvF2k4Vnmhp9D7TAx/oXJIrHpPb/7KwwcK/UASY2P4GJZ13fGX9vw4T7is8ai\r\n7T+ePu++ruaoHkCvFFsA6bhlvX2dU0XptkDZSu8z1udYgSnFGDy2bLgH/kng\r\nwrT654bCPg50Y2tOAX3DlwAmYvi+35j1NVEru34OdX+9FnNr2dyIqlyUCMGZ\r\n7tYUuK2khS/OIsDgwg8zvqiKHjeZpj/CDzkSYslmBUfiwcIGw3/A51OOMxQk\r\noV8qEHFhIBuNXoSnRAuMNHYPt6OQXdahgPe8T5ZHjxOMjCQrjWb3n9gYAEuq\r\nZdSXfmmiPQ12Ahu63z90/ZcPkHoCRKpYrg2GEbekluwtIJtyGk8gR2DiwLFz\r\nkQERuTLNmWalSPrtLzTf0M1tQgiS3RbEvkZ/6WfBcIeIthGmG9nvoNlrXqWG\r\nEP24nMfF1e3gZc5Kc8ImOR2UQxvAL7H85fZA++KgN0/1IpQWvh3EgcgFxvKg\r\nxPZE+P6MMIex3S9m1heLXeovKPyQ49wc44MTpfvxOkFI+nL1ZswzRCcymFxO\r\n3YfFA8FMSsjKkwSrT1i10Lr2RG76KiuF9DC1yf/jErcMU3jVvAcUjaXrX1+u\r\nrR40Ivy6kC9DC8IOnbvPifarQ1HcZxyFafY=\r\n=slFS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.116_1681427185142_0.06316289935267982"},"_hasShrinkwrap":false},"0.9.1-unstable.117":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.117","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.117+6425e4f","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"6425e4f9912043dcc6a104722e184a91d47e8048","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.117","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-CM3FcDFEDEjZfBBaWWAtlzLB+EMiPxVsyeOLN45PEaCP6tzk4MCiEZgx2OVWYYD3MlT2J6dHG0KfCGyW22X7cg==","shasum":"674aa9f6e1e89caea7353c284f5af73cebdf7a77","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.117.tgz","fileCount":54,"unpackedSize":100994,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEW+UOR4W+dx8badx1WJyWSgQHG7K7dvT8FeLOdmPCOJAiBlWLWVoSXjJ4D8Cffox26GZODe7ZKVqRMayx21N9WBFg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOJ66ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3nA//XwigsDC6+rttIzMaYbW1shmELKXv9fCYyIvepqHkNzAddL5z\r\nBimeoh3/pCgsL0XtI7Mopgx41p+M04U9dlK0xgocwJc4OHubL1lhPoSwGrap\r\ntacgnvwAcoqfEJcr/yE/hoAE1XQc+sTo1NcSqA7tzZ9aKJyRzNn2BrDdWo+3\r\nFmCIh9eiq/+af9vBW5oUMPJmtIcybbkEDHpdaNyFxkYwpnpiJaKvV/SVOnHN\r\n2dJ0YuDdHZutEjAR+SuGKUAnmTInwBhkWGP9+cZvu1NM3HP3z+UHB707mYiP\r\nMK6sNVWoZdN6y2armm1+gqoHc0seivna27uzyfesMsIk5Pnech7n+0lJrr2K\r\nj+unqrVTc3WQwk4hwHRXqwZJ/ArXpSUyb2INoj5j1r6gTgkc8kSJTT+JsU/v\r\n0he5HY6TmvSlBqhD8rOPA/P+JmxFzP9FAa+IRGgqhnVb8cwF+z7dwRAvok8j\r\nN57Vpuf7A+gsJc/3TkmAQDYHXKEj32q44QXw02Ru/irsk6qOjYgmpb3Y8c79\r\n3bj2swMvSsnOnMy2MB3FJ7JlRgutYAdptTo9cj368K8FT6tFdelse4oyLJ6T\r\nxM5cRMPvyQffDaJbyMrhBvLOWDSJ/IFYFTkB5tOJzxMuqDqQ6swDDkIvWDuw\r\nEkq//I0CeNN2FK2WE3D+hchNFvjmUIyBATw=\r\n=dEa+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.117_1681432250475_0.24122730072428133"},"_hasShrinkwrap":false},"0.9.1-unstable.102":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.102","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.102+21fe47b","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"21fe47b972573ef0d1bd27ba112bde191716895d","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.102","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-+2MZrTFPYGKvSPaL+sgfGFxfCrEA+Sw6PtczLREA7QFXNh6+iKCF1+sczRCJNhwb/f82VO2h36f+uwoA1htPtQ==","shasum":"dffd05447a97e6ad02ebb344f72864d5eedd0d40","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.102.tgz","fileCount":54,"unpackedSize":100974,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICX4gFHJQJ6YUNfl9YSYtpHMeu0VWnujjIU7eFWMs818AiBOS9P9AHQONY20gKFqWgl2MFYlo9IVNec+mObRLqlGmQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOVH+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+txAAiCaE4Dp5pju/H9L1RDosKU7ZU/QwPdTnn9ZAD/Hielgp0ToQ\r\nVHyatMIlKr346EI9PbAu3LBGEAvSyo5iV3zigbEoJi4pqhl0P9c6ki5jRO0X\r\nzbvz1VLPdIVAs2yVUWsSVxcJ1dzf4IjpmY64cxEu3Xm28dq1Tq6svZDQ4E7A\r\nGmV/Sy7u0vX24RdRP869I1GwVjfpSD6JxM0IuxAkoyxHcqlJhIc0GA6n9eI4\r\npk/j0szXbY5C6NvyvmYmKoGBvm84IEIhgcsEj22qtu6aGH7lwIKIN0X4qlQM\r\nsQaGMa7XUS2f31xtueOsMhIZs9x7JDYh5D+EMSaKPUQ88/nS7zP/79vBFgFa\r\nAlc1cduN6Kg2adOe+rBtJnW7Tex0e99g8lLCEOsNObKajBaHzFLrQb+4ezMv\r\n89KPMFKYZQ56/L4WKkVHnSXz1V5Sf1qyXbVbterEHNCyJ0RNRQ/4EdkrqUOI\r\n2Vasmc58j9Z3meS2lxehgZbhS0oZs1dLirXCRyAR3f4CRjLI6o5T0vfX808w\r\ntAnfo9qLPpfuNP5eu5tJkip0LQyja1h6Lm2UW82SshZn3m1VV2olhGcWpXuA\r\nY49IBWeIZfK1pV3UIyIf+jOJgjX1i3svmX/+UsarYPJ8rhdBEdvIXA8rJ/3T\r\nAyRZQ82ukp5nMtBJdh9ujXOexVpBXK/MubY=\r\n=0RtT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.102_1681478142248_0.5797237068714931"},"_hasShrinkwrap":false},"0.9.1-unstable.130":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.130","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.130+975801e","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"975801e1e6c8270fd470acd7e2ce67ae4971a16f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.130","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-Lkd7cfztlTHRkqwfpa3WiwGQ6L0yDgtSfhAy/YNGaxnVf5frhZxUML4CyKMaYSewFULHPpE1PEOAmQiJ4c5nHg==","shasum":"95d7346cb2d7a91f9371e738b1de971b96b7b54d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.130.tgz","fileCount":54,"unpackedSize":100994,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIETkGKtTpwvxYgcR6SZn5vxti7lJEe0INscaXD03IYN9AiEAoc0hlPcBbQMdhwWaSQ05De1Fs1DPVNeTj1UVgX6Iqe0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOWTrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpV0g/+NQpKWiva0tJWtZ4Ul7BGEmNHVM3YROgkdbrGNTsDe+2H5pAp\r\niCr6ZBrMtVORwt3epMn3nAjvcIi3Wd3v2IYDeISJU0zrVDgf8wFXsSteRwG5\r\nDdsIwt5cWf3dkClE5mbHMhoT7zoCHX05/50lKEQI5iOyfTUIXJFxNkVDBEPo\r\n4QWc80ahJsS///Q798e/c6N5nVySeUNV10tOpqB34O3uhm92ZKyUIfFUJvXa\r\n6l9JszWDA4Yjer7w7DQCniYuBCjsUPbCyl8GNbIQm3j6HSkEEvbYnPzUHlZN\r\nu9sST+Y37BVtISvVEk9WSTdYUwigYTgkPfVCPsmzcwf01fwuCMbR5PuF3avV\r\n4yYHVr1/+5acLIIu+cWh9h19ucBelTtA8azrAsLv1hgLgU/RZ+WN8qRzsAwN\r\npvasE3o6drt59gAHOCXv3Xo/JXjpC6ilEaru8G8uCtjBhWk/4F7jP4e3Q4wI\r\nyQlSz6gOSykQPCwrgc2KuAsfA8CsoJRrj/at9Bk7WpZC2jZhOCKANe9a4n1A\r\nqr17YaCbRh5sqSeyToKZ+qXxRoz+i+XXmvs0PAWk2VeIWIt3JBXVm3MNGFZv\r\nf77WJjhaFlUfb/2sELr6fi2KFsma20oUSanHmED/G9CRs0Qu8yUzNwzAQH1M\r\n5lSMu650NyMkcA6P2uHI/Wn0RaMfMyn7Uuc=\r\n=/i0U\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.130_1681482987185_0.5317898617407628"},"_hasShrinkwrap":false},"0.9.1-next.103":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.103","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.103+61d5c12","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"61d5c12378a1c8214bb321a2c87050e61739f242","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.103","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-reMn4AGO4GQr/Q7eFLSXjY/XbizfJJw4XIh+Sb6zVeVcfjnJY0YQzvVaFEyrvM14BUgXpkqeUKQ5Y6aZYpIKdA==","shasum":"ec885a40e23a67c8524d1ba551c78a8a06c63fd9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.103.tgz","fileCount":54,"unpackedSize":100966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+UkaTDm4rwTklL6hS9e2dKntFt/+VyuHFITH+jfeUzQIgeAwL9XT644yhffdsi0hg0jkPjiVY0ajLGCvbEo3xMic="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPQ1PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpQ6w/+OMBuXkffJH5Q3wiY4HVUMTgrhnXAeKXLmbtjN6se1FDeEqtA\r\nT3XHSwH0PTCSKa/Y0ayrQX1G4kiuONoWKi91JsDEime2MQTm89OUNzA7HuwH\r\ntDxHBlJBjNMaJ2XDKQAafNp4aOKVdzjwzS/Zq2eYMZSB2URSu5BK5HjiVxwV\r\n5TVT9smyBYgzolVR/4ftWD7ZVeenvSsdAbQODgVBvkUGRU/pRKTqP3H99eg4\r\ndz72BtKIS3P9jDwYMwPONqRL1ljiPtb4EpoNmmvcf57305MC/1wU4N3GApM4\r\njxOgqLAgxFESbgJArLtxFgzc0WN038Wpnemb9v2vIj6+GbJrPP5LETz/KQQ0\r\nUJ9nZId1WIWRFuKZsEpdV4C/ehoREG88P5qSDzhGGhppCdf8EwQLgjj+sd7U\r\ncRH2PjPyVU3xyZCvCoaypjhRqq+X5r1bhsyWuyG4J8/ag/sb80/5T0YeKWdD\r\nEKfdc+M0qJ70Qgg/CPEnsMDB6fNVuZOYiGfa88LFO39JaXDIN6BpECFJUFhV\r\n5+70u7zkAvpB0o/VhmV73w4YGY1E5Ar/JbizgTQYUryYThvXx9O7d/6hv3to\r\nbSeGCoAORogf3S5t4HlAupYCzFq7AYTkUr/bd7aNfUO5tpcSJ31mnnWQ/00A\r\nNavzq+4wNa/Ld1eOfV7T3mkadCsyIzY7kps=\r\n=y982\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.103_1681722703703_0.4430607226248502"},"_hasShrinkwrap":false},"0.9.1-unstable.136":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.136","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.136+e9f30f1","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"e9f30f1acf0fba4df29924d5a3ab9c1bf7e83340","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.136","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-GLQXiQrVX5p8jg1VcbB70I+z9tyBszQRMxnqPFYdpuDqCB8hpqmKEioX8IWkf+F/8Ovvsj4sa7WLjplE+8qPyA==","shasum":"b78c4aa317c66d337e2f6c99932ff6a31e3d2260","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.136.tgz","fileCount":54,"unpackedSize":100994,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6N8+7U5ch2uw+gns/hP+E8JdfTFypM/CKgrXKLer1JAiEAqnEfXi+/9dFO91BhR9YdCEvHsvbgCdbiyatVtbPGzEE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPVdWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFdw//dYw3FUzzX2+eXAmdrAfVSrsyJDNt8vjq48Jgwpll2b2QFS8X\r\nLDXaNSrUaBY/ISxNYosftZA+px4ZHcUZeGINEhTKBXGwcAgj3N5C/kFA4LBD\r\n9tWOzE/M6knbwZKmGa4uY80M1N4IUQ+qYW6nzRava1AWaXnTHG1fxz8HOji6\r\njlDwWp/BMBDW/FqyBjRBa6aCDwVghgRjxoBel5dkj0GmRn2ivZQMasOPHihy\r\n0woOX0yc4+8Ic81qf5MixU3sd6ckvt1zibmtprIPFcQXAWgSl7K5ITsVY3dY\r\nESz3osFW0rW0qBgeWbygM7IsaCVZAYUhmCTLiBhuxD1uPUvtuGYq8jdtsxYp\r\nmui8TE8mZJIMJIQ4nEMLA08ak0cieSmQK3WXSVUqoLCnojoAvhkh6mqlwuZH\r\ne1J+pLmsgjeKbCeYa5FpF1BK+YU9VV3NvxzlGS0vuoXCbJhNh7e1dU3YU4at\r\nGg5uCEg2kCDa4abYfHY5XsrUQP76L3uKlHP4Plizx81nkyEfIo5LkMdaek7q\r\ntHeScvPsapXM3oGvydW3oykotFKpiu1osXr4PVQ+jI0vaVWgW+KRfkHUJgep\r\n3IBdtsqUdolpq8HBIci1pBPYOIjwHgv4qDaa1+66FDHLqz2K8+D3OWm6zxk+\r\n6nTGSPHbM4giqphvh6vvvrshE6DeeIyCkwk=\r\n=cdF/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.136_1681741654226_0.4217664222800299"},"_hasShrinkwrap":false},"0.9.1-unstable.104":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-unstable.104","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-unstable.104+728c8e1","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"728c8e10be5ca3f5491c3f31870bbf57975c597b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-unstable.104","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-UtIELCzL/ef++3BGq0B15PbXQPSYDqEOVnT/bW+0j8iAgF6EZUuEo9rGmsbHOJUrKnfxMan9nUcr1sILYckGvA==","shasum":"846fe28fcad86243568bb6d891dc3acfb758abdf","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-unstable.104.tgz","fileCount":54,"unpackedSize":100974,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEFWAHfWIDWM96a+LuIOMwjRW8I8/+ex48nE9ciRxRYAAiA2zZZD/Qn8aIElFKIxWNsWObLqaLO7h9u7AeJ60Swfqg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRpzwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrg5xAAh4CjWyjuwkjbziwp/7o2GaUXGVV/vDySuPesczoHvjBHFPoI\r\nvZL+WSbtBnI+gl8Kzv1NvWjUarQpGgznGPMOBoMghiFA9MFEWgHNpinfs9cy\r\nM2hMdbs3+y7FTNYgz1N0ESCLzrAT+PTiEt8j9qK+D+6btCO0Yap6EE4DvbtF\r\niJmNBc7CJdHJ8sxKWGskJCXvkh7ZJGEl/nGHnQuYHhEnbM/9R0u0/XtCqkD3\r\nckRbwopcLSj87Whaxwbpn7n4ur5jeqVD/CC+tTz4zzd1Mxr4b+OP/Dcqle3K\r\ncOucaHRv5twkz6iq3YjkMnhBhkHjGqLeJV6j7y8/BSmO9gMIMgKTzyOaCLsV\r\nfT5RquYe5ezmtr49zmjwY8UjAHIq6lm/7JheSsaNGVLBLOQxGHqkr/IL1SYq\r\n0nfcWp4xSMGRMH58RNMViMQow77j0itfLPDMdaxsLjTPBYp9I2gs36dcYnSz\r\neZksyLte4KUQ345Iak+hX6LlEu6YI8Ke63/wQA/8uqdHUaNdVcoGHSvDeHRK\r\nzwKVwH8R8V8kxBpkFMNNrBeGfSEgTs0c0Bj8plHnPIydSxtJNXmEqiYF8wpf\r\nvRUIJgXPJXfZxEDZkHytm7pdNU932mfyhDur54LX/UYBd+8eXR7JkfM08YUL\r\nO94pclR80ddtskn6hpRKKvG+x5la1ktpmQw=\r\n=jt3J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-unstable.104_1682349296340_0.3368294217990657"},"_hasShrinkwrap":false},"0.9.1-next.105":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.105","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.105+cbcf678","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"cbcf678b279648f358aa9f9e56745b5745161e1f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.105","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-shzrN/fVo5P+lodYIWYP4Wjcvr5Tj6dCa3KdZI9iWm1XnmLytc3MBnvzopNUpAmyeXokRukQEHMXi/r++492mQ==","shasum":"614b3d85931ba2cc2fe92d494a1ab7d6e8f372ec","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.105.tgz","fileCount":54,"unpackedSize":100966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGNEiBGKVnTlbiIcrHiP2W7W6E9xokw+nSsZX1+RWpTFAiEAg55D2nt6JskCU44HcSaa0ycSdUM1JcqyDoN48cCB8aU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRumWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrjwg/+PyD3mGgg6M83TNWla84PTaOqveOWcIKRtdQFEzCXv5Pc0Qz5\r\nsiR4HpRKsiv3S7Q+sLprjY9KPwz2BdI96X01VjUJ33LtmNFNRl3zv09I2Doo\r\nqTBe9tUhltVhguga4m3spz9adADWr5T536ILTd62hPowsRgPsExaLdqUFGWi\r\ng0vwz0RoADugmC4OgGrqRizPg1QHtBon/87jmPKdHp5Ie5HswMGHb1gr/SiD\r\nhhCXCFGri5zlvLpfWEzDk1JQQwVOp6hXJ6gLJbnKs4dJDeA6xUmsCIrlnyB6\r\n0v54VZ4vDjZ/k7UwHd/yFp/x0o7VBmSL0H/KGbGjHfId71IcYLmWej8UFTYc\r\nWELaTDD1C6Ex5bMjajTE+GjU8MEq/htwHxVjb3JTVREb5ZsP2qZqj9mre6W2\r\nZOVTXWnNM6mSIAomSdrc7TVWUvYS7/u69LSou2JJrO9oEfcfyRziGisVOo6w\r\nsE9ZLUZyn4EShIt3FGEUFFVQJIB6FY9KoPXm8u9SGCitPtkMAY45VPpzN/xZ\r\nOAVMKKmAAwFuqkLCgH+T7wP0a6OPINk0BSVK3+yFBbfydbekSb1DIKnhvOeK\r\nQPkLL5I4rYRq67HbsyP3EWdqbCQOd9w4fRUYBptBMKdfoVPDm1CVns1wYA10\r\nZbS2ghgcCqZLKOVqQLopR4rky135QdO1HdM=\r\n=BRsp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.105_1682368917506_0.8069225275570426"},"_hasShrinkwrap":false},"0.9.1-next.107":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.107","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.107+41161a4","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"41161a405425e30dff40e39d6123368c58c3f655","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.107","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-fbYQrTC43V/FPWdhYvrQ4hWtJCHOgj37uX3dgmNOOxoF/y6fjFwP0dCKmTryvTPHqd/v/9cZuHCbDgtsAO7WoA==","shasum":"2ea730389e9d133de0ccc5a0fd403bc40071012d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.107.tgz","fileCount":54,"unpackedSize":100966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAjLcyRFm7VP09knxYvMLJ6ERlDXWGOKicd50rac7CPgIhAM7479qo739rjwvuIaFfiRJN8uXkLSrLtBiBMVm0P0Eu"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkR6R9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp3bA//dLI4nOMcyMlTM6O+SVEntc9mPGTHmWNUJ5bgnkNLkuED8EB0\r\n+mwCXP40JpD/Q2L0RaQnpbPJ1KXcQRVZirskmMKDTlWQdDkm0WQ+Frmb33s0\r\nytdiK0uaVWrFulLn6rVPKziyZSSggVaxzoG+C5roCFxY1W30z1FiG0NDck4U\r\nEJo10wYgnl/wkPHLWgBFmIcaGanBFCHa7ME6JbwWriUME/xvyzvU9iICySQH\r\nqt8gUw2xpnmg4sjhLZD74tzbtq8MiYo14eE85md39wgCID0z5HwGMMU57fyj\r\nvkoqeDdVCK2fC51Hu9PTq7eyPvGRlNj//0kEBd4ZSoAWaBvRTc66P/pPvHbQ\r\nth5uloHK0k32j8Qqal9V6Tv10RXx5/IQGcb989nba53RSh5ToO1NeIGW0taE\r\ni/Y/RiOlLuXmfx3htuP3jr+aSwjAy36cmhJYWEvimoH87q3pJu/IK69UrCQF\r\ne3M3P4qnkd1+LuYUf+G6Y3cCG7PkczDW6H68HzgY+lShJL3ET69UgQxQPWkP\r\nBhAINVxhBdLCkTlUZ/1m89lxuypFcFsLiQb2DlrL8bh+/ASqzye6QQFhQPgx\r\nYErVfWBOcRf3l5jyMS/NTHwLu3GkKRX7fONHU90JEnUyf0HB3HsaciauQ59n\r\nQS3jakPoPBncEh18pBfLeynERuogHVbEUiU=\r\n=0Z/0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.107_1682416765731_0.41445986864340134"},"_hasShrinkwrap":false},"0.9.1-next.109":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.109","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.109+bd82063","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"bd82063fc3f98bde5d171420266993642c530cfd","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.109","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-U+eoqHRHhDuTJyApHwLpT2wP9xXi17mASKWFkPAGiOqW/m6vbr4Sx/pVDmHDtGK+15Rl8U3ukrr1WgRYhOix7w==","shasum":"124306606973566e8e40ee8d4bddcf97c8fbda36","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.109.tgz","fileCount":54,"unpackedSize":100966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDonuVxBEDd02wNRlHnr2zdeqRtI+5g2XxEE2uacbTPTgIgXkUC7JjXI5FbeEjH//PuuBKfS6zjCuwDCw9zSWtTRgY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSQwOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrKnhAAi2NfFvNUX4CEBYGHducJouNWG9AjHEAMKW6cF/b38fsc23Er\r\nyZqh/RQHiKaW6RmcNwLlZATwgdosnHqXZZk/cyZ5mr4kO6pgNsCb1urGkJna\r\nZNEUbn67zDlPc7/4VzjSJK8VNTRrC0Pn8l+RsawyAwBo7zTsC0FeSeUKqKCs\r\neWYgVmVEsjqOzr1UFqbet/uUCwA47D7e+1FjUPvWPnl9B07I/wonYzyx7vlN\r\nMF/W49rrCnOuvV985OBKE9/k6c2FWY4UDC9hHZflmT0+RGHtt3PZv+K60I7X\r\n7zT54pQz5N9qGLYSQnF+ddTKCZvzKZb0dERs72VW9z8bCaIQnfmPrTWc6v1X\r\ngxkpHBlJzir1A7sMVF9Rl6D6NApfLlhAQS0IkIh2iOwmvnQ8IhdfvRXy6VBi\r\nybc2dzV4t4aOvbToSDLpA6gTXJDwN2ht3YmJzf6BGp6AUQ9vAB1heSiRHim2\r\nPrafS6esmYfuzBFWx/Md3HLJHYcEflD5kcgJfuI49hiKyICFsED55mMZoSji\r\n7vgRF2efNnpBkbDiZ4wTNSayt0yC92IkPMSlhRoO7zl+TuIAw2nzSxXuOoYM\r\nN36+7zpHCx4zZkouM7nEdrojWZDDea/w9u5Tt5xFX7mxYHl9WFS/QsZIb1Sr\r\nkehuC+ZABLnxg38VEheELRD+KFYC5IOAWJU=\r\n=kAOt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.109_1682508814504_0.5616002167739407"},"_hasShrinkwrap":false},"0.9.1-next.113":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.113","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.113+cc806d4","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"cc806d4e2d4da20a32fabcc806a560155e123487","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.113","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-VavYkEpAhzVCf8DEI+AAtMdxNjXU9ZKyZi75HRVVKVlEZcH1hTFFCtPiyJsw9OKXqh1XKEcEchQzQlX7iSDqRg==","shasum":"f3a83d9ee310b35010cb1b9ae8b8dbb1e2f3e00d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.113.tgz","fileCount":54,"unpackedSize":100966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVmfhA72qQ1lkGxWSjZOjLve68bQz4oCfKmsUQ1luWoAIgew24z/0RqMzvwiG6ym2s2kawc9mnAFACvy3Yd21ta9U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSTuzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgCg/9FaQhQMEIJbFTNcFXE5aoj8CEDt3EJ3S7R29s4QzRXm0IEEX1\r\nR8m/fa+NBaz9vRipIj7bv/0VYfaacd4wQpyYjAVBb3WXM5IRpI767lEUStEu\r\niWSBMxbtozbc9P3n2UCwtYpkM5gri4moNX2Dnb3l+rt98grThA4v09CUP0uo\r\n+R1fztIKLQLEfN3hZ5GrkUxmJKaIFuImAieCeRbYgDuQQY0ykY0kDawaP1Bc\r\nuE6ishR/lvr+zgyMwY+o36OMLS+lnizKX7YVGJw0j0jfM7jwH3TUIVOduIde\r\nn5Nl5Ol21/zTZKSfcSr6qRUC50/N1RTzY3eLtcRRzRYC6GjbukCA2T45oAOt\r\nsJo/7MZCIaZ58hLU0McErtdwMvSywXNKeo0Tce77utaZnroHmWg+Fs+kRU9k\r\nltBhSEBNcAYSuXw0zU9UsGhWkS6lNldu3L8xo2vXBvLXe2jJEeUfzI8o2OmF\r\nV0Gf4+3sPeh3Vw2v8sLgKOdzxr3Ic8/9yBEMxpK/+mA5+tKFP5C+zGRVJFVO\r\nW/BJdNU/XE01L+RaKi9AxOKqRkSEp1HyRKUAjC11CTz3rbh3f87nr+O8NH3K\r\nEgzBbuntFrxRJO9DuwbdkgWx96TXO4659Ope4xTN5YmCeIXldWzoVAkdNsPR\r\nN4SvWorzDEz898BgCf30m1dk3UIusWEsO0w=\r\n=RRdo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.113_1682521010706_0.40228045376174837"},"_hasShrinkwrap":false},"0.9.1-next.114":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.114","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.114+08ec06e","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"08ec06ee2c9b883f7f497e960068458a51113b55","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.114","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-ZMas1uasIPOtS1tIAzRR7GVqBwlqhw4TUBbCUT73b4WqeZxCM+C++W5u3J6VkbsLK7aKMlkbxKEzSbVA6w5GUQ==","shasum":"0b6a19b9621ce00f8427bfcb2a52226ab58fae7c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.114.tgz","fileCount":54,"unpackedSize":100966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtOs+ZnjapNJqoSDly9ehcMauKr4z5MpXJODCv4e4L/gIgG95YZx5yRHL9Ex6qrA0q2negl1k6PrgtXryQWATLKlE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSsoSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSJQ/+Jv0Hz7tCa9r7ui23UZejASr2U9H+y+Rb+Cvs28qKP/SStyKN\r\nzaS5Ime1ww12WWm45fIF3jDHD1RhOaBUyHWRPsJ/oTX3LnRbVK4mLbAZ6yjP\r\nD/WXs/2QGP8Z66a1wIyIFIncKNEpxTb99E+4shhdBXON2P9pIc1iS4UQv+kT\r\nFz9it+5HCTaI+5czylN4WRRERx2GwA7R3v01IWEo8DvgU1jLe3N42CSqSis/\r\nhf8ynQiOQYyDCyuhby0tUWa+nzVK47KfCZ1vEqxL5pf43KhI08DcwXZIJc9B\r\nD7vThAl8S/mFxAQYlXIEnawHvF+ogy++sTrmmRtOd31I4uUsrMrnrFdHFVWH\r\nzI/WCetoJl/wbi882M/JQjySwLvaNFyDZFAroFnje8KShBPtFLwFNjXBe2wh\r\nfGroYMwPQJkosIJ5zOM1wtqlDyS+9xMofad9gEYMp8Hnh4cTqrg8BkHXwsoU\r\nHJwT1oMyQ6TFyJYPP/8p46a9uJUWwyJg8OYdB93azpTIvtBhgCK9XUrgw6xE\r\nx+FfpLEReB6gnoEOZ/L/6bll9hNzhyxyc5n9bY2izqDpVt1gC7JPAxRMqnA7\r\nHrld6i+I8KXNmE4rvHXpIqLdFcepBLgd6YLUqhxajeb5Me5+EhWbOlAR9gc1\r\nJGEX5nLbxM9zUgTm1A7WaB7VNj2KJ8a9Ams=\r\n=ARkp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.114_1682622994481_0.9639584915473545"},"_hasShrinkwrap":false},"0.9.1-next.116":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.116","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.116+01593a4","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"01593a4452e25fed16ec878e17d70c280f28e4ca","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.116","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-kFeV26R7MCOVvqRYtnYYktNR6Fr2zFDXxpjfLVXuLix29IstEN2FaC33Ssu+OE05Htij6J+rFT4TpWmr9PUdaQ==","shasum":"53e5c25ea7c3ec881d116f18869f5f3bcc6b405c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.116.tgz","fileCount":54,"unpackedSize":100966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtc3Nb1q2kLA2DNdyqnsn5COS0Roz3uM9X3NuMo4+RhAIhAK8BhW0F71yjm8Ss34ewJDEvD1lFHviJLWqEdyCx4haT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSvLsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTUQ//b6a4rZx7zh74wLm+BLfECli+/ssXxMPdaDq82am5vczL/apv\r\nUx0x4LEjYVgfghDIA7nfu4qw4tSGjrcay+NH+iusJIMt+kCt96J5XpQheONO\r\nbewyEx1JzqHXseHYulvP9whviju0fJp3ij3kFuR8yLzfXJxyxXFpMCFj9EO6\r\n23C5gpGcC72GkffE9uObUvZ1wIfu8q1dcIEXwMOZQCRZWSbWnOo/WCTQlGln\r\nmfs2WS2UfWhJYJTTMG835FQBxCZ0qA29DeT2IYA47XNQLEjzVI8BLuK6ByaG\r\ntFm4OiqhPTtjX6latPKjoUnCGtkI28kv5HsJ8Y8VPpJ+MBmn8gtj5KlK3GaV\r\n5OBRCLJaaSgK0Ye9wLaoMrv6fhGa+OYmnwOQpv7+ZdTN4TqLvwOzp1HX4K05\r\n46uFY2XrUpXuk+YIg8iqM7wX+fPYmDRi1dZ17aru+m3CaQmUFMfbdUQ2KoOG\r\ns6h/HyZsidnkHO5C7TuDn1eZU+uXWssfplyeGpWgxSJ36vCGOw7UtR7Hx2c2\r\nqMl15PVZavhftOpw6UT7IoTLXB2+GF4ZG+yBcGpsoSfYXXEd2kaMNYH6TZbf\r\nMg5hVo27ao6k3AHeyoO7B0fLufQJc/GHCZ0fMduNDEHKB8KbdZ+2DdISH1O7\r\nRqU8RoWG+jIDEYMdzA0/Xz35J5j8V6lZ7dc=\r\n=Chb2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.116_1682633452229_0.6975185869971181"},"_hasShrinkwrap":false},"0.9.1-next.118":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.118","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.118+612b082","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"612b082d754eb90402160f423d939f3a6f9ec181","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.118","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-oGFtS7Hgu2ClVTN5y/PzGHzdPNoATY650vYnyfun5vWruAmIwfp/qCj8ripQvxYSZO+UzyBQjjY9QF06iDzn8Q==","shasum":"3bda0094082b6db9f4a0e5980d4470b21fa0b753","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.118.tgz","fileCount":54,"unpackedSize":100966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8QjqfIJMjWv15O3dCtRlGQCVRymueQ2z2udxWvqMvuAIgCCIi5vFCrWDAwCDBUnPVeSOKfkr7sTg4UbjrRP+wmZs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTYHmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogHA//WEkeCBys5RFsQrOdchcA2HfPXbG7HBjadIkZprsNO0rGrTVT\r\n7jKA3HmaD85zHXIJUdSr5ivmW4th5mXocqMsKLiLXEJndi0cXT7hkTWMsQqj\r\nBNnVj+3mhqPZttn9BCLLb15TFJ0JyxxgmUL7+qNX1HgVrgixGguGk0yXAxsP\r\naWvgLgtYauwM46XJuSWvKWeiTw0TOoD10bziEJuzKkpzihuhLAty5W/r8uiE\r\noNsUGjdiWunLYBs+TtxP7U/GC6huBopJvWuzAgkBFYLSwoaHcBokCYN1tLH1\r\no01tfxyeK+/GmX9HaVrEeufNwrF0PQiCIz++wRKAwa6t7dOW/UdB4SzCq1UF\r\nGpyn7CvMijo9sG3n8+WQwwew74oAWnkXEpUDTnxMg4ziNtzcq65fW/NaWPJe\r\nKNvLHwQO3XYWSD3zXM7g3GkYkMJeh9o4ICaLxz++kA1hvS8Q0WIsbNAPPBBX\r\nO75tVlvNurcU7zP4nf4AeUcpgx6DcMNRpc/WRXrUym1P2+efP+E8fjjmgj7Y\r\nwLWXikmn1JcE9CBqvmjxgREjweiq+lFpGzNVxHxZFQDDcB7DTKqBSfkhkOi3\r\n8w/5A2UcPEMikUuYSW6C29VlpIpX8hKwKsmlppmZOXV/MZFjZEJaVWbmM1Io\r\nlSc2/+B7GmfSz5GP6PsdzpADuqorWpkB6WM=\r\n=IMmu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.118_1682801126243_0.3505734088292529"},"_hasShrinkwrap":false},"0.9.1-next.120":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.120","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.120+198701d","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"198701dd4319c030608df1fc33ce25d62870dc43","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.120","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-tNwdbKHYDmQeT99ZgbM19liTjr9H6W/vJbwfLduhfOWiZqwE0+2x6GTVnclW59nf26oOh3elK+bPaR/GueBy6A==","shasum":"b28c8a9d2fb5595e87e4de9cb3e0c42a097fe461","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.120.tgz","fileCount":54,"unpackedSize":100986,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1B9t0WoUXd+GdhbRbnPEYzoDEPVuDQRgc1LiOQfUvygIhAM+nIxkpfvtciUSJbnF3Czf8zmuSWZAqiuiiH1QSNc8V"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTkiQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVrQ/+OCwEsTgxY2Sb6t6suS9eVkqIHY8uN0LIbK9SyGgNwVEK3L5F\r\nokXzYdYc1AY2DuMzaYMmOY2CgjTMVvB6itwFJtrFqxDB0rllMoVeb7GDmtEY\r\n3mFRHF11b6xCDifX9iGB5MwQY1pg5DWwIFjLFdluy2iuvsOQO7JhV5MwFnlW\r\npJCXX3E5Jya8lYYkPFYfbRKmThaGxzlWPNCeKdwkAHBJpJTkqMKigPiBCvlx\r\n4Uh1ePesCZjHGdB8RX4FA2xJyZaa+HhvgEDrxqnF3/OrtzV3ZlU+FHJD33po\r\nqrUe29vOvzhUhbaYmGi3sc79kksvJ2h2NK3iCdaPFRgYvzO1qyQeQrQF48Jt\r\n3QlW0v9jrpFZ36HuRjbMtsgAbcDhQ/hjVgGOEqKDXub0cpXKiW/Bt6v3t3ad\r\nWCw43Npr3qvivJHsQy3dnMUt7BZDVNAYd/QuqyswIAEJBhqTNdkO1ioDwqfj\r\nCHfoUUHvu3krpFu2MMkSgmlkGuXLaLR+9TCTzaa8029gsr9UWM5FVAV71B+Y\r\nMq15k/lLYi32h6i17pfiKgvpmUElHeUcCUgigLV1f3zwCBuRbuVcQziLZDhL\r\n2RYcl+rZ7qibcIZsFp280u4kT78laCH6FWo8ubLABjx3yJXpQZDhqs4sbtpo\r\nNk9zOV9S6Oz+0FHELrwD9RZxrgZ7W8TCzT0=\r\n=ZoST\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.120_1682851984733_0.8089314217910017"},"_hasShrinkwrap":false},"0.9.1-next.121":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.9.1-next.121","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.9.1-next.121+60cb6d6","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"60cb6d63087feae065bd4cb5d43fb6665725d694","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.9.1-next.121","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-+OhiHrucyXe3f0srqlsQameM5IfRJrOtBZ+9RoKmizy88ZgThfD3gMIG787O0f79/YNkvcXSTlpnRTY722KjSg==","shasum":"104eeefeab25ae5eae3fba7744c545f5d7db193e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.9.1-next.121.tgz","fileCount":54,"unpackedSize":100986,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG63eBZI28+w4SWMq5FBOSfpjOI67l+mQgSNI+3fEh8/AiEAo0kIwezUAsfgQtNqjhe5G61EYvmkmLm6pi1PD5BchUc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTtIKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqmQA//cbSXjDppd7X4PwZ/ayb+mTEFOXjrBBXkc+iQwD0KRzKbAAVn\r\nyPDPpbE6uZ5DotBmIckmANWtixmDAK9jZUBrA9iK0lfeEJHZTRTwaR4Q7rcm\r\ne45QG4jh4F2L1lJesameQCGN24RuX+JFvuMSazNRsZDJWo8dfZZXEYFhuDWT\r\nKOIGzM97L2rjaBIWINRMH9uU7f/IA+V6WMhzCXifHeejRd1tOjJppncGJ5GE\r\neoZuNplpohGTObrv8s1iOgBOPt6T1sK9yB83kdEp52oCaKr0ovFCiKRDeChA\r\nrlxS3d5Mumk2HN3vfshkovzKdBgW84hwa2WVQB/hLhx+8uQkrmtpnFQ0mt9o\r\nL5spXjm2Z6u/0IL/3eKYjqjvuXBgDxN7Be4hQ43cwFhTqcBfnyxs0T8sAfU8\r\np4kaEhwLbQ6T5zP3dq2HYe3qDGSF/iDh+9//AkI5TuXZ04hs7EWRCl41O8Wh\r\nN9JuTHBI8UDtNLOWNSz7D1aDVBMzsQIfaANKQAqj6b/5Az1Odu2S/ziS4b/z\r\nHJWDo8cctQIhGUdWagBZVem+lVeNRzXXYTZurgRw1hDfe5wNI1J9HtokIYh+\r\nD58VTGzON/fsLVOb9cf6bh/x/FwOSEXibEXiwsTWy7KUBQsTayUZgaye5Bkc\r\nYS8qkE5bc5TqBtHyqeZP6oxityJswR4AH1U=\r\n=uuxr\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.9.1-next.121_1682887177818_0.43872618529559837"},"_hasShrinkwrap":false},"0.10.0":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.0","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.10.0","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"134e3ba941e7f9574c2e11c6d5088ab5e8581955","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.0","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-+nRjlP6Gz4uoT0BZHl7mMeBLkcsjI/bDvD9fIvWt41pqaovUhaOOjL8t70KhUORmr3zFHHM5USOVcVH5c8SVdg==","shasum":"52bc5f350570ba0015905700272aed3375b7603f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.0.tgz","fileCount":54,"unpackedSize":100954,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXIa7ziVAL+IziE63xyEgV2DiQb4C6so23mDfIbrBDYgIhAO8CBdDaGdbLgQf6OvNRPMUZ02Dx2ns0/qitQF/KFnID"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTudpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpteA/+O8u579gh03vtcvw/SHvpN+4p2CjzGR5I6SoSOPILyVaJ7jSg\r\n8Aexv0li453AYpDyVFLzLY/KAC5JCltYdKBfQYPMtSpZ3dLCRNru0M6SHzAa\r\nK1Z01vd4HsY4RHusI4upfLP+jX/a5AxH4z9kAOAxYH4itBukP30GS1I58sxV\r\nEe2SjzrCkWrvOMxY+890vsmqD0S9XaUcv6Y/L+dKRVzEn7dq8m4q0vd63mmt\r\nHFdSO7CtMCMR8VnAYBb0iDgNBO7qA/0UbIQPZSzk0TXatOHFbe0Zrd7Lpw38\r\n6SlfVz2TbxKrf3rLP3ouiYVt4gxKFAW6YZXcBuZi4uxqkW9bLFETDvoYzO85\r\nOTZfGA4waKHIKoXU2AbSdVEfVRdQfjuQJ/wVvqCdoyRyz1tWXvkW8AvOcOiC\r\nxuH+IsQ1ftH2soECEazBRqXj1MSSJG0M0cZj5nl+qUOTyAG5p8kcZXGcYhLb\r\nik9MRPGGFQYSCcUoxFilVBtbTydgFR6XRiZ+hKH+3iwe6poGfcNwivVJu3Bp\r\nKPXPE+wunZL+eZYUJf9fCo6x23CzWUuCaH/m7WMn5NV+nVBkCiV2kOlxmM2p\r\nW3ftj0DvDikvoErMC4HHPgL/p8N11XCWs6TMVGR8V2xVq3yy7rmdXeq+tQtg\r\nh5cPamah5jHcgDwVxC+H+WRGjMSJBzz9Dy0=\r\n=O54T\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.0_1682892649296_0.8971186000137334"},"_hasShrinkwrap":false},"0.10.1-next.2":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.1-next.2","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.10.1-next.2+488111f","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"488111f22ed6a844f0db4738994647e02e0cf23d","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.1-next.2","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-5B5qK5NpNnbUNrLZtFMNB/Z8mvz/+9xj9rFz4meRxb7PxJuyMlNm8dt1Op+hy+dzQVUYOEqzmzUrHIL/o967pA==","shasum":"258b55cc222bbaa57a77a88164e08fb2fb89edbf","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.1-next.2.tgz","fileCount":54,"unpackedSize":100984,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIgbrTsGMRWrh+e9iOWsCF4Hz4bvJ0fCFwNPCVrMInYQIhAKqk6I9fo+LqwHkcxzGr/YBRdDK+Iy2HUa26Yiqeam2n"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTxY4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosqQ//Xd1Z20McE7AtXbAufEJ2yCk02ar5qI8DxuhVNPAiiW8o3dyf\r\nBoHzfECfLYlTHKK2IwhEyY5MGW0U31yHcK+SJr6qxzllQF5iW9tGMCRMsCBm\r\nlc6wOSxeG4GCas98Vw9Y7DIXCgrL3LtKAniJ07ihACM4Ywjn2+CEZUdOsFUu\r\ndWFTiiDyKe2gU0ruCwMqKNsT4f+n0jhAom9Aoxaq/XrQINruWbbY9sodAgLG\r\n2eSghU8nC+vnYAKzssRV7GJ5baPXW3aa+ZEKI8sdhWocwsYYseFqJ4AptxU/\r\nljOpG2rLw/tI3w06aP+P0LlgVEIsxTbNoy5vOc5sC2MydoTyBQfgkXNif0GG\r\nbr3w2hKYrSb9+PK/BzacfmD6tO+/J9ZBMpyqeQgaN3Jmwg1l/1zbahv/uLeu\r\nMQ0iZZ3b2SDRCkPPFCB5px5ggRcOmrZZJxKN6/HWK0GNQxPdHZYrnSZlopnL\r\nfJGcTK51XbD0YjvVY+Abxd3Dr8lJs3/Y03LqOiYdkZJm4/YOk0Zg7Oq/32+X\r\n2QxnQ/EdlDNEZ75oks4ZXRI8qOzfyvWML1na/xsgBMrK3VtzQJPhaxdi2oSN\r\nsMaFxHclwnCpSu7WE7ahMILAKE6J2yLtgRLhLhaaP3b2Jvdsv8yrDTlbpX8v\r\nOp4SSVIEAp+aoTzLcbm3JiSE1lJpXfzlw1w=\r\n=khNN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.1-next.2_1682904631997_0.1919034513867066"},"_hasShrinkwrap":false},"0.10.1-unstable.49":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.1-unstable.49","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.10.1-unstable.49+79bca14","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"79bca14b2561576176b0ed87bffb87f7f16a2c97","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.1-unstable.49","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-8qwr6XIsb2CJnLtIcVTSY4kpLx+omKnRyI6pdgJQg2B0/FEVgHhEGSgfD9yaC4TrouZO6SnYtUmuQohz26uuLA==","shasum":"432dbace0e7e3701a7bae2f9b69ffcccdbc8f5ed","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.1-unstable.49.tgz","fileCount":54,"unpackedSize":101014,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZLCv53kSbZ1pzKpRN4If8CzIzcgi5YrmHUf80j3iBBAIhAOtARv4lnNRFVchlVi+TE1c38GqffBmiJCEqe0Hr9HkK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUmsqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr1Tw/9HTXBKVph8a5BX+cQg+Wqd3Q4E9zgr6wd3ig6cDBgnZBY3HMS\r\n+e+JevA7Yt5Mb9l9ZbkEMTUaz853/rbjvcwm55CwgHKcN6xC+CQwXeytFV0j\r\nyNxVvQz+lV8lf7dPvBiFaslCGP6zQpf48upc8+8pmHPboEkiRgPmiNUgkfIK\r\n2pPAQynYcXM+ilYDxWZnEplaOwo6Vg+XJCkWHfy1PDyDbJGO6FV7jZ/cLkWc\r\nseI53zZDPKgkgLuixob8rl5EbfY5J6sBaukqg+/y4ahgK4bqGPGqJz+pujB+\r\nYKhRkXh3gvECqH6E9lVfNvu3Y3ZAn0n3WJaXYAsSuQo0D9qQtP+9J1qULdNI\r\nCQAFNOwoNcCBbxCaJrJxBhKZXOwAQb2X25B96VxFgp7LR5xWa0XlJ3co+xyI\r\nyNMzjHeW9Cxk5KhW5ANIvx/LNCXz1HFWd3LsIK4+YBoUJ5I8zEUirDh/Fl2W\r\ny81nE1ZzoRYpExBkfqbUcjOuIjF8jQPP3bjoWK05ZJ6AdfV28yMfAFcEadjP\r\na9F6KU9rd2R5u1WfRRjiumHrn3DyZYlLS76/fX9UWynMSGvMs/clHnWDVHg3\r\nCVZ6CQ91lP1ge6nuZz21u9W7gL5s30/5R0WOSBERik1XSpfxSIHvxB+eJAyv\r\nlcykKxhptogOdrf+L49w9/iv2rwHgTgbo5o=\r\n=YLkX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.1-unstable.49_1683122985975_0.16687512605476873"},"_hasShrinkwrap":false},"0.10.1-unstable.50":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.1-unstable.50","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.10.1-unstable.50+6f3a76c","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"6f3a76c592a31dbf0c4d352bb55933372932ae33","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.1-unstable.50","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-9dXOIq3oi42GX4Hz8X+0kWuL/3oitkWYtGTOgOQZ0k1OG6gVQx+nRKu6+CL6KfxrqbXf/0dNCIeqH4HeLIHcbw==","shasum":"8123af9bc2dee40b715c904afe688e4a02eba71d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.1-unstable.50.tgz","fileCount":54,"unpackedSize":101014,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC9vTFOVyat0nTU1CxxIyOd/msoB3IZIdbI3Nb+LQRxLwIhAOvzeV7XWwX9v8WHgVW08LOP09bLqWPMWHQjR5P/cMYJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUnKoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpvzg//Y2NcGbNcMA1M1zI2pw/OXheFUCFz791xCnF5RF09xk6wcmdq\r\n+Ev9XfGJD1qKZEXvI+Zew4FTPzfdfmZ5LYxJc2Nhc4rUmJlWXw/zjcAkMMGV\r\n0Z2iKnjUqLfMNESivhWBoOubXNbskBMNsQdkbZDgcfJvF0PjkHlbGsee992L\r\nQ+9lihn9tyqMmPqEwGwRne991XtjzFZzjDMwA1K61qKFplc/V+FLjR7r+wl/\r\nW6klm+Eh/ObQwM/b0zU7kwVZm1eIk5owfZkx7LFfWHm1k7oXayw6vMUlTBut\r\nnhwj2JJ/yR99lTHHj5ZCoGEpGTFLaEMDN+/jvikxeeyszllScPTkGYsF1M+e\r\n1+O0owHNlUSCBuLliG2pyNsN0oHTTg4+AmHpaxtDkmCjHc/S2wjPtCf8QOTw\r\n+G+b1gk8azyCMh1/TiwyBah2rPQoE4hc0wpjvQN62AcFrqpLmuvAVvU63DKX\r\nTVyfasNzn92ARro6FwNHKSlRK7l7PKlTeTGBOpQ9LfIhC15KzKrmImLr/JMG\r\neLDWknZ+dC0EHwjDXNIoSFmDavKw773aMGu4+HFJnPxeyGPtqVi+KGrqtQ5l\r\nUWRUhacjD4ev3xOb7JLM1D1zprHXQoRsAQfzjaWPhHezMiWo9ANq+BZ79S28\r\ntg1bVF5DiefmryzSvj2gqH0Z05dAQQacDbI=\r\n=aVx5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.1-unstable.50_1683124903950_0.7674662327661141"},"_hasShrinkwrap":false},"0.10.1-unstable.52":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.1-unstable.52","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.10.1-unstable.52+8463776","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"84637764cbeb97af4d4f300ccfef01fb77c280d5","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.1-unstable.52","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.6.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-RvFeSiVfyeC5Yu5too9l7IRWf/uGFIs+T3iAtCN8Hjkw5fbAa7knarTQZlO2347eWxDsPFybe/xEuAJYeJX8Og==","shasum":"a3ab06edcfe8232c71b0a7d3f27c96373f76cea6","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.1-unstable.52.tgz","fileCount":54,"unpackedSize":101038,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCFt/yEAUo/0FvhDikU5ElaT2mpPm91m38nR/hx1GWpkAIhALvzwjH4EsSXjShLKwT3nUvlGOG7UJbUW6gFQdNPz6JL"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUo6FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolMBAAgGkvFVgJTZbn/mtqkThsL0SAuxYwqwncj4NlPW8mqK2T/HYU\r\nVddP0uH+inlO/LecRJeMoWWPrq+CgPtLw7/hEVhWDNMCCqVIV0LHRmquTaQ5\r\nF3VfU+9M50HgSZgDJwmTmbKALlEct7HAdCmnfwrRm5QwusBQUHJb7Np6APIq\r\n/3yCIW88zexc0duAYrSWydvbOS9LQu6yWIEkiryd8zc7+vB59BD6Y/3TPD8K\r\nHSUKeenxdkS1miZBsYotF9Wq/l1c9AvtLuPPltSp9936Mjfw83r9tAJRP5EK\r\nxga9L3q/LolPwGCnSvppXcCXBMF7qO/v42kEK9cew0Oyh+2WQFU0m2lBp0ED\r\n6WHa12D0TUa9Iah3oxR5L4jNHhlCbjhAsK2MEtaCtL5orIjF2zzCnPawjW2e\r\n5Fx4e/DK3HhgM1S1wgkML1stxb/Z1LhdbSnp5OMEbNx8V7skzobEjLKLDlXJ\r\nACmuoOYNWKduJvypdKAm/Koi+6Hvub7xxGQaK0Pm8yq+79eqWwwkXbWk9VMA\r\nkyt+zLYJf0pw9rQEfbHU+/QKsY7EItubIbimvXtdkZTu1fE6rEn6PQdc+4/J\r\nGpEudq5heJTfoE/lTjizkddwZZ0B4RnKImPjsJ1MwTg1X+0x7vkYUrMlAToG\r\nHuKt3SPxf46KY30tY+MdYZzKEOVeai79MqU=\r\n=+Jof\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.1-unstable.52_1683132037162_0.7599007193746781"},"_hasShrinkwrap":false},"0.10.1-next.6":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.1-next.6","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.10.1-next.6+ce5b487","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"ce5b487d4b5831aa033615fec9e4a45c19c1f3f7","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.1-next.6","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-F8f7GeKEuHjqs+RkM2g+XvdSK+yVXfYTEB787djdFMKUdm4DLt7u30j5hFW0Q1Cm52e3daO+otoDm/cM+bhn9A==","shasum":"605d90d72711480fb59a58d5a9324910d0adda67","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.1-next.6.tgz","fileCount":54,"unpackedSize":100984,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGKwVXrUkEhQubgK76dwEZn/QZmHxfGAE6AyFxcJhDwlAiA0nXwuiGoPg2kMFXGMnXz7dd5Erfg0Dm1FCYgE4kUNGQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkVD1OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLHxAAoH4oPLvwiJ/LPpSv7Zo4HCug4Qvem212p1TbCWJqq9fZ3oKj\r\nBTZ1xW+jJXMLgZNGRIMiw0g/bGpXmpiZ5AnGdOBEqya3fxp8sojMwbI34iho\r\nf7HkAlKYLq2REjMwFgOOjFvt9EeqsBHo10Kutn8OBzZQQc+QP9FWi8tECCHd\r\n04s3s5wItX7wdVvf1ibSb0vTrtwattCotKQA+3BCyGXb9J/6Nh1ID7ldKL1e\r\nxrHqBzMfscctm+wZDWwcJO/NMzNbnE3Pm/5mQPls3EzuNUrDW818xNlN+wxs\r\nSKfNFVZR88kLbelwGncKkxU9pAR1JI0Mx9r2fay20pRTrhbB1896SQXHk1a6\r\nn3Nm8H7C88gLGjS0AjRdtxQpRPtkUvAK/JL+WbATVny/HkMnS0mTPt7Q7TTi\r\nZxR6TKtNuVwbTNR8t/b1DxVaK0zHX5OOgREFEhbtz6jQ9NfhCABdXcdvHdmP\r\nW1PSG7eWOMKZ9mEQx5Rcx0ZYXI5HwayMt7hR9+qtANDr3jRgjkgVcNdIMZao\r\neYduDH9XOiV+fPV70aGaGnjGbzPd/Dye7sXUX3Ko75k061/5C7VZNz32ttou\r\nsZwq75Xfg3WsWbue48iUeWc9Qn0j/jGuVrFSw9bOJthQZ2SoqwQQ4MCvXINw\r\n8MbdkpIfESsJJ9uqDWWAm70ZZTGADSl/4NY=\r\n=t0Dq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.1-next.6_1683242318108_0.7601660007484545"},"_hasShrinkwrap":false},"0.10.1-next.8":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.1-next.8","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.10.1-next.8+7df0e64","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"7df0e64ad6553e8153cf96d62156867fde8e4cef","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.1-next.8","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-OcnZnZ2ndpI+HGS7qYQKgE7bx7EYvvN4NierNAG5hy2o+BaSg6uOkLl694CdnYYl/31Gcq3vM4Y78fDwwSDJDQ==","shasum":"2e10bdd38f760a6fcb3170c751887864563b6b71","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.1-next.8.tgz","fileCount":54,"unpackedSize":100984,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFv52GPwtO/mfYuCKPTA4nfixBFseSDpQ6PcGa86BD13AiBwfH22/s6GH7C8wAnTk65rByPoo1iHLB3GIMNJgnBR+w=="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.1-next.8_1683307220392_0.7351281414175337"},"_hasShrinkwrap":false},"0.10.1-next.9":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.1-next.9","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.10.1-next.9+1b2d26b","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"2.1.14","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"1b2d26bee8ef80eedbdb3389a36c960f30d9fa9d","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.1-next.9","_nodeVersion":"16.20.0","_npmVersion":"lerna/6.5.1/node@v16.20.0+x64 (linux)","dist":{"integrity":"sha512-R7Co/Y8O+0k9prYpjcRtWd3RkadjPkqyA2xXKRUilKZmq7JHv7UtJTvS7iHYWZCD7PPUlvNrryq4GYUm+rzPow==","shasum":"321e338a7f30c7f6922aabaf953cf1b4478aece2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.1-next.9.tgz","fileCount":54,"unpackedSize":100984,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC1MylRA1VYx4awbNpRWdNF0Bb4heDt4L+wUHhmaRJtnAiEAhF7ibW8ZyDFV9zfZfbpLu2gl/c1WFVhAbLkip20Z8tQ="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.1-next.9_1683309634116_0.8974879081350229"},"_hasShrinkwrap":false},"0.10.1-next.13":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.1-next.13","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.10.1-next.13+8f56f22","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"3.1.3","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@sphereon/ssi-sdk-agent-config":"^0.10.1-next.13+8f56f22","@types/uuid":"^8.3.4","@veramo/remote-client":"4.2.0","@veramo/remote-server":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"8f56f226b2845ec49488734fabb9fde6ae707017","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.1-next.13","_nodeVersion":"18.16.0","_npmVersion":"lerna/6.6.2/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-OYCgrPtjkbbRIyUGB/BfZ9qmuqoWi3VovYJ7U8d3Z3yS39jA7uZLRUOxQ1NOAaj+GRphueeKG3v6CR8uBh16cg==","shasum":"7299358c48515476f5ba0e69ef1fce2c94329466","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.1-next.13.tgz","fileCount":54,"unpackedSize":101098,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdOBpjsmp43uxxFXOavHkOhT4gDIyTxbFpBvxsZh1tZAiBog8PlHiyTOXhHOWRB24ggeRrqGI9C6ntBy2M+nlqg8g=="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.1-next.13_1683332805346_0.8074743103939268"},"_hasShrinkwrap":false},"0.10.1-next.14":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.1-next.14","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.10.1-next.14+344ae1c","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"3.1.3","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@sphereon/ssi-sdk-agent-config":"^0.10.1-next.14+344ae1c","@types/uuid":"^8.3.4","@veramo/remote-client":"4.2.0","@veramo/remote-server":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"344ae1c41b4c30ceab399df3ee531635ae789835","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.1-next.14","_nodeVersion":"18.16.0","_npmVersion":"lerna/6.6.2/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-c0taLY8LVZz22ibb7dgmOYxi5qEYIQ3MDpLvFhGwrmMkgfuZqnKAPSyzqQrfaumjyXG3slG7diSCnzr4ifSY6w==","shasum":"ae383dc93bfe5af1f5e1aa0f7dc4c039f3cccb22","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.1-next.14.tgz","fileCount":54,"unpackedSize":101098,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE2XkVuFrektU8SURA0qCOlq0afUCzcLFui84k3Jj2k2AiEAyIOrX+L1gXMdlT2EMncTcyvmchqLw2tje7kHf91urZ0="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.1-next.14_1683357315584_0.4761610947344834"},"_hasShrinkwrap":false},"0.10.1-unstable.73":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.1-unstable.73","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"0.10.1-unstable.73+ad39a5c","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"3.1.3","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@sphereon/ssi-sdk-agent-config":"0.10.1-unstable.73+ad39a5c","@types/express":"4.17.13","@types/uuid":"^8.3.4","@veramo/remote-client":"4.2.0","@veramo/remote-server":"4.2.0","did-resolver":"^4.1.0","express":"^4.17.3","nock":"^13.2.9","typescript":"4.9.5"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"ad39a5c4eb0893c4699ee119214d638f954486d4","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.1-unstable.73","_nodeVersion":"18.16.0","_npmVersion":"lerna/6.6.1/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-45fx6guF8AxHSYUE1oxYhb0GA4CmXjY4hPPlfvIklYOdOV4fhr/kExFkwQ247WuJoHTykVuAPB2ROKiilKdjNg==","shasum":"f774ba083faf0ee21c2790f787cce782c476672b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.1-unstable.73.tgz","fileCount":54,"unpackedSize":101238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPFavF4t1JHzA3Cm2gk2LBYwt1cOeNmCik4+3wWmU7WwIhAN6Uxv7qulvn6u5d42CJXtBwUNRgzFufPrx+KX7g9nqH"}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.1-unstable.73_1683495199477_0.31620493284814466"},"_hasShrinkwrap":false},"0.10.2-next.11":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.2-next.11","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.10.2-next.11+6e6b83f","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"3.1.3","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@sphereon/ssi-sdk-agent-config":"^0.10.2-next.11+6e6b83f","@types/uuid":"^8.3.4","@veramo/remote-client":"4.2.0","@veramo/remote-server":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"6e6b83fe7e6887cd2faad5846b8b1c7ad24aee7b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.2-next.11","_nodeVersion":"18.16.0","_npmVersion":"lerna/6.6.2/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-iJBvpELfl6hnrnUQ6p3XySP1/Bj9X1KysHU8XZNugBXnveQ+6UMQalFULUdgIntdVsUp5wilI5zTAD7/iRADkA==","shasum":"97a90456d34e527380c9e1cc2afb02cb1521e131","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.2-next.11.tgz","fileCount":54,"unpackedSize":101098,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4DmPUBaRhMKv9pZe4pZs//Nvk4/5g0zFa94b1HXoTtAiEA4dSsOp7/nglBbKmo1x0tpS9GuSyjSCsYuI+SeH4eMog="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.2-next.11_1683495869477_0.48909087331979806"},"_hasShrinkwrap":false},"0.10.2-unstable.72":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.10.2-unstable.72","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"0.10.2-unstable.72+34aa2c9","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"3.1.3","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@sphereon/ssi-sdk-agent-config":"0.10.2-unstable.72+34aa2c9","@types/express":"4.17.13","@types/uuid":"^8.3.4","@veramo/remote-client":"4.2.0","@veramo/remote-server":"4.2.0","did-resolver":"^4.1.0","express":"^4.17.3","nock":"^13.2.9","typescript":"4.9.5"},"private":false,"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"34aa2c9e407ad98fdacf62c68fb85425a31c9856","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.10.2-unstable.72","_nodeVersion":"18.16.0","_npmVersion":"lerna/6.6.1/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-R9cBv+mmhmjxCctlNr8OgQtqHIK53152+FCF3ZdpXaMGzp4GjYZ74fO8OsaVloTUgNZyIdBpw8ZIi5NLU27Mmw==","shasum":"f78b8984c10897b8d4528b2a644d31be16e8f449","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.10.2-unstable.72.tgz","fileCount":54,"unpackedSize":101238,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMGtxPTU0RsDrhkhQKcc6WCuemsI7q9Yt4N1FShutE8AiBKiyk58bkOZW/v1m/zN1TY4Z3usWx4t26tQeCajxXb7w=="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.10.2-unstable.72_1683495897739_0.46824747265560984"},"_hasShrinkwrap":false},"0.11.0":{"name":"@sphereon/ssi-sdk-wellknown-did-issuer","version":"0.11.0","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IWellknownDidIssuer":"./src/types/IWellKnownDidIssuer.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-types":"^0.11.0","@sphereon/wellknown-dids-client":"^0.1.3","@veramo/data-store":"4.2.0","@veramo/utils":"4.2.0","debug":"^4.3.4","did-jwt-vc":"3.1.3","typeorm":"^0.3.12","uuid":"^8.3.2"},"devDependencies":{"@sphereon/ssi-sdk-agent-config":"^0.11.0","@types/uuid":"^8.3.4","@veramo/remote-client":"4.2.0","@veramo/remote-server":"4.2.0","did-resolver":"^4.1.0","nock":"^13.2.9"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"gitHead":"c0b30e037a02bb4bedbf1165feb73184ca8ef571","description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-wellknown-did-issuer@0.11.0","_nodeVersion":"18.16.0","_npmVersion":"lerna/6.6.2/node@v18.16.0+x64 (linux)","dist":{"integrity":"sha512-HIA3XsKAV/18GoKgx5nJQAz2osdSvfNt02ZpPWAdk4Tj3Cqx3ITZ4glAchRT83XpFTyzON6ThLerN+QxlGdDJg==","shasum":"6c3f722f5bc94653908a635eaa0252abc250877b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-wellknown-did-issuer/-/ssi-sdk-wellknown-did-issuer-0.11.0.tgz","fileCount":54,"unpackedSize":101050,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7ZNrYvkCEAqA7gxmUDodYxwgaAWYaVT1W55cSoA2XkAiEAlxS1PCVYEQfwJa6S6ohS/w8SEsVKp+UAkYm2uKQrO0w="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-wellknown-did-issuer_0.11.0_1683497038943_0.5009941738276669"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-02T22:38:13.644Z","0.7.1-next.66":"2022-09-02T22:38:13.958Z","modified":"2023-05-07T22:03:59.241Z","0.7.1-next.68":"2022-09-02T23:52:55.142Z","0.8.0":"2022-09-03T00:09:11.923Z","0.8.1-next.2":"2022-09-03T00:56:55.942Z","0.8.1-next.3":"2022-09-03T01:09:49.892Z","0.8.1-unstable.4":"2022-09-15T09:00:37.687Z","0.8.1-unstable.5":"2022-09-15T09:17:32.118Z","0.8.1-next.6":"2022-09-15T09:31:59.586Z","0.8.1-unstable.9":"2022-09-17T23:57:04.456Z","0.8.1-unstable.11":"2022-09-19T14:02:11.212Z","0.8.1-next.12":"2022-09-19T15:11:32.538Z","0.8.1-next.18":"2022-09-22T15:12:29.411Z","0.8.1-unstable.24":"2022-09-29T21:06:50.631Z","0.8.1-unstable.25":"2022-10-04T20:18:20.865Z","0.8.1-next.26":"2022-10-04T20:50:08.454Z","0.8.1-unstable.27":"2022-10-12T10:51:00.608Z","0.8.1-unstable.29":"2022-10-13T07:11:58.065Z","0.8.1-unstable.28":"2022-10-13T07:13:17.245Z","0.8.1-unstable.30":"2022-10-13T07:17:45.477Z","0.8.1-next.31":"2022-10-13T07:51:32.083Z","0.8.1-next.42":"2022-10-18T11:11:43.666Z","0.8.1-next.50":"2022-10-18T11:13:04.929Z","0.8.1-unstable.50":"2022-10-26T00:44:36.317Z","0.8.1-unstable.53":"2022-10-26T23:14:43.049Z","0.8.1-unstable.54":"2022-10-26T23:18:58.026Z","0.8.1-next.55":"2022-10-26T23:31:15.810Z","0.8.1-unstable.55":"2022-10-27T20:32:43.335Z","0.8.1-next.57":"2022-10-27T20:37:44.744Z","0.8.1-unstable.61":"2022-10-27T20:43:44.480Z","0.8.1-unstable.63":"2022-10-28T00:02:58.876Z","0.8.1-unstable.65":"2022-10-28T08:50:01.522Z","0.8.1-next.66":"2022-10-28T11:23:21.297Z","0.8.1-unstable.73":"2022-11-03T22:51:09.737Z","0.8.1-unstable.74":"2022-11-04T00:24:13.013Z","0.8.1-next.77":"2022-11-08T15:20:53.477Z","0.8.1-next.84":"2022-11-08T15:29:53.571Z","0.8.1-unstable.85":"2022-11-14T13:39:45.017Z","0.8.1-unstable.86":"2022-11-14T13:53:45.154Z","0.8.1-next.114":"2022-12-17T02:01:16.906Z","0.8.1-next.117":"2022-12-17T02:19:10.242Z","0.8.1-next.119":"2022-12-27T23:57:13.477Z","0.8.1-unstable.135":"2023-01-03T15:31:49.716Z","0.8.1-next.120":"2023-01-10T01:20:21.224Z","0.8.1-next.121":"2023-01-11T19:11:06.684Z","0.8.1-next.122":"2023-01-11T20:34:22.981Z","0.8.1-next.123":"2023-01-11T21:40:25.385Z","0.8.1-unstable.145":"2023-01-12T01:13:24.524Z","0.8.1-next.146":"2023-01-12T01:23:46.998Z","0.8.1-next.154":"2023-01-12T13:11:16.485Z","0.8.1-next.156":"2023-01-13T00:43:51.172Z","0.8.1-next.157":"2023-01-13T01:42:10.217Z","0.8.1-next.158":"2023-01-13T02:03:15.208Z","0.8.1-next.159":"2023-01-13T02:21:12.070Z","0.8.1-next.161":"2023-01-13T03:10:25.332Z","0.8.1-next.162":"2023-01-13T03:52:05.109Z","0.8.1-next.163":"2023-01-13T04:07:49.071Z","0.8.1-next.164":"2023-01-14T05:43:56.781Z","0.8.1-next.165":"2023-01-14T06:18:19.466Z","0.8.1-next.166":"2023-01-14T06:37:58.569Z","0.8.1-next.167":"2023-01-14T06:56:41.596Z","0.8.1-next.168":"2023-01-14T07:31:06.215Z","0.8.1-next.169":"2023-01-15T02:09:14.899Z","0.8.1-unstable.170":"2023-01-15T03:25:56.913Z","0.8.1-unstable.171":"2023-01-15T03:36:04.302Z","0.8.1-unstable.172":"2023-01-15T03:59:29.778Z","0.8.1-unstable.173":"2023-01-15T05:05:36.837Z","0.8.1-unstable.174":"2023-01-15T05:47:57.214Z","0.8.1-unstable.175":"2023-01-15T08:06:51.172Z","0.8.1-unstable.176":"2023-01-16T02:09:19.223Z","0.8.1-unstable.177":"2023-01-16T04:45:08.088Z","0.8.1-unstable.178":"2023-01-16T05:00:44.960Z","0.8.1-unstable.179":"2023-01-20T01:15:04.008Z","0.8.1-next.179":"2023-01-25T21:35:01.085Z","0.8.1-next.190":"2023-02-16T10:03:48.965Z","0.8.1-next.192":"2023-02-17T16:01:01.351Z","0.8.1-next.194":"2023-02-17T22:04:25.490Z","0.8.1-unstable.195":"2023-02-18T00:42:22.504Z","0.8.1-unstable.198":"2023-02-18T03:01:03.608Z","0.8.1-unstable.200":"2023-02-18T13:16:32.546Z","0.8.1-unstable.201":"2023-02-18T14:05:04.544Z","0.8.1-unstable.203":"2023-02-18T22:50:36.985Z","0.8.1-unstable.206":"2023-02-21T01:47:34.932Z","0.8.1-unstable.207":"2023-02-21T02:07:52.072Z","0.8.1-unstable.208":"2023-02-22T03:26:39.432Z","0.8.1-unstable.209":"2023-02-22T19:38:09.542Z","0.8.1-unstable.210":"2023-02-22T23:42:27.335Z","0.8.1-unstable.211":"2023-02-23T00:15:40.459Z","0.8.1-unstable.212":"2023-02-23T01:44:51.664Z","0.8.1-unstable.213":"2023-02-23T02:13:36.315Z","0.8.1-unstable.215":"2023-02-23T19:33:11.195Z","0.8.1-unstable.217":"2023-02-23T20:31:25.178Z","0.8.1-unstable.218":"2023-02-23T22:12:02.010Z","0.8.1-unstable.219":"2023-02-23T22:51:45.035Z","0.8.1-unstable.220":"2023-02-23T23:26:03.663Z","0.8.1-unstable.221":"2023-02-24T00:31:11.570Z","0.8.1-unstable.222":"2023-02-24T01:25:18.297Z","0.8.1-unstable.225":"2023-02-24T04:09:31.216Z","0.8.1-unstable.227":"2023-02-25T01:03:02.700Z","0.8.1-unstable.228":"2023-02-26T03:24:43.988Z","0.8.1-unstable.229":"2023-02-26T07:06:39.951Z","0.8.1-unstable.230":"2023-02-26T07:36:07.021Z","0.8.1-unstable.238":"2023-02-26T09:50:20.921Z","0.8.1-unstable.239":"2023-02-26T16:50:20.635Z","0.8.1-unstable.240":"2023-02-26T23:35:30.795Z","0.8.1-unstable.242":"2023-02-27T02:00:00.289Z","0.8.1-unstable.264":"2023-03-03T08:34:46.148Z","0.8.1-unstable.263":"2023-03-03T16:17:01.426Z","0.8.1-unstable.271":"2023-03-06T14:35:26.443Z","0.8.1-unstable.272":"2023-03-06T15:10:12.359Z","0.8.1-unstable.277":"2023-03-07T12:01:03.074Z","0.8.1-unstable.266":"2023-03-07T22:21:07.941Z","0.8.1-unstable.267":"2023-03-07T23:30:43.791Z","0.8.1-unstable.268":"2023-03-07T23:41:33.871Z","0.8.1-unstable.269":"2023-03-08T00:08:50.195Z","0.8.1-unstable.270":"2023-03-08T01:01:32.679Z","0.8.1-unstable.278":"2023-03-08T16:28:27.374Z","0.8.1-unstable.279":"2023-03-08T19:45:46.798Z","0.8.1-unstable.280":"2023-03-08T22:11:59.836Z","0.8.1-next.272":"2023-03-09T00:37:08.034Z","0.9.0":"2023-03-09T00:45:56.894Z","0.9.1-next.9":"2023-03-10T00:49:26.016Z","0.9.1-unstable.17":"2023-03-10T10:27:15.141Z","0.9.1-next.10":"2023-03-11T00:05:10.587Z","0.9.1-next.11":"2023-03-11T00:33:31.568Z","0.9.1-next.12":"2023-03-11T01:10:41.780Z","0.9.1-next.13":"2023-03-11T03:52:32.102Z","0.9.1-next.15":"2023-03-11T23:46:54.717Z","0.9.1-next.16":"2023-03-12T05:23:30.517Z","0.9.1-next.17":"2023-03-12T05:57:54.020Z","0.9.1-unstable.27":"2023-03-15T14:00:12.603Z","0.9.1-unstable.28":"2023-03-15T14:25:42.003Z","0.9.1-unstable.30":"2023-03-15T15:01:14.646Z","0.9.1-unstable.34":"2023-03-15T16:32:14.842Z","0.9.1-unstable.18":"2023-03-16T10:13:14.622Z","0.9.1-unstable.19":"2023-03-16T10:18:41.337Z","0.9.1-unstable.20":"2023-03-16T10:20:38.040Z","0.9.1-next.21":"2023-03-17T09:18:39.265Z","0.9.1-next.42":"2023-03-17T09:57:12.372Z","0.9.1-next.55":"2023-03-17T11:52:29.012Z","0.9.1-next.56":"2023-03-19T00:04:46.262Z","0.9.1-next.62":"2023-03-22T00:37:15.399Z","0.9.1-unstable.66":"2023-03-22T12:05:43.749Z","0.9.1-unstable.67":"2023-03-23T09:12:17.870Z","0.9.1-unstable.65":"2023-03-23T11:57:42.554Z","0.9.1-unstable.68":"2023-03-23T15:13:36.853Z","0.9.1-next.69":"2023-03-24T11:59:15.328Z","0.9.1-unstable.85":"2023-03-27T10:49:43.730Z","0.9.1-unstable.87":"2023-03-27T12:09:32.400Z","0.9.1-unstable.88":"2023-03-27T12:12:05.737Z","0.9.1-next.89":"2023-03-27T21:34:21.186Z","0.9.1-next.96":"2023-03-29T09:07:05.476Z","0.9.1-next.97":"2023-03-29T19:23:30.479Z","0.9.1-next.99":"2023-03-29T19:26:16.139Z","0.9.1-next.100":"2023-03-29T19:35:33.280Z","0.9.1-unstable.109":"2023-04-12T23:42:37.552Z","0.9.1-unstable.101":"2023-04-13T09:46:33.792Z","0.9.1-unstable.112":"2023-04-13T15:22:41.379Z","0.9.1-unstable.113":"2023-04-13T15:40:20.624Z","0.9.1-unstable.114":"2023-04-13T20:42:39.298Z","0.9.1-unstable.116":"2023-04-13T23:06:25.357Z","0.9.1-unstable.117":"2023-04-14T00:30:50.649Z","0.9.1-unstable.102":"2023-04-14T13:15:42.482Z","0.9.1-unstable.130":"2023-04-14T14:36:27.369Z","0.9.1-next.103":"2023-04-17T09:11:43.891Z","0.9.1-unstable.136":"2023-04-17T14:27:34.417Z","0.9.1-unstable.104":"2023-04-24T15:14:56.534Z","0.9.1-next.105":"2023-04-24T20:41:58.035Z","0.9.1-next.107":"2023-04-25T09:59:25.876Z","0.9.1-next.109":"2023-04-26T11:33:34.649Z","0.9.1-next.113":"2023-04-26T14:56:50.982Z","0.9.1-next.114":"2023-04-27T19:16:34.638Z","0.9.1-next.116":"2023-04-27T22:10:52.455Z","0.9.1-next.118":"2023-04-29T20:45:26.408Z","0.9.1-next.120":"2023-04-30T10:53:04.916Z","0.9.1-next.121":"2023-04-30T20:39:38.027Z","0.10.0":"2023-04-30T22:10:49.440Z","0.10.1-next.2":"2023-05-01T01:30:32.166Z","0.10.1-unstable.49":"2023-05-03T14:09:46.149Z","0.10.1-unstable.50":"2023-05-03T14:41:44.126Z","0.10.1-unstable.52":"2023-05-03T16:40:37.359Z","0.10.1-next.6":"2023-05-04T23:18:38.327Z","0.10.1-next.8":"2023-05-05T17:20:20.570Z","0.10.1-next.9":"2023-05-05T18:00:34.302Z","0.10.1-next.13":"2023-05-06T00:26:45.545Z","0.10.1-next.14":"2023-05-06T07:15:15.737Z","0.10.1-unstable.73":"2023-05-07T21:33:19.660Z","0.10.2-next.11":"2023-05-07T21:44:29.667Z","0.10.2-unstable.72":"2023-05-07T21:44:57.941Z","0.11.0":"2023-05-07T22:03:59.118Z"},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"description":"<!--suppress HtmlDeprecatedAttribute --> <h1 align=\"center\">   <br>   <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>   <br>Well-Known DID Issuer (Typescript)  ","homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","keywords":["DID","Domain Linkage","DID Configuration Resource","Issuer","Well-Known DIDs","Verifiable Credential"],"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"license":"Apache-2.0","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>Well-Known DID Issuer (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\nA `Sphereon SSI-SDK` plugin to create DID configuration resources and domain linkage credentials conforming to the DIF [spec for well-known DID Configurations](https://identity.foundation/.well-known/resources/did-configuration/). It is written in Typescript and can be compiled to any target JavaScript version.\n\n## Available functions\n\n- addLinkedDomainsService\n- getDidConfigurationResource\n- issueDidConfigurationResource\n- issueDomainLinkageCredential\n- registerCredentialIssuance\n- removeCredentialIssuance\n- saveDidConfigurationResource\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { IWellKnownDidIssuer, WellKnownDidIssuer } from '@sphereon/ssi-sdk-wellknown-did-issuer'\n\nconst agent = createAgent<IWellKnownDidIssuer>({\n  plugins: [\n    new WellKnownDidIssuer({\n      credentialIssuances: { issueVc: () => Promise.resolve({ ...vc }) },\n    }),\n  ],\n})\n```\n\n### Register credential issuance callback:\n\nRegisters a callback function.\n\n```typescript\nagent\n  .registerCredentialIssuance({\n    callbackName: 'example_key',\n    credentialIssuance: () => Promise.resolve({ ...vc }),\n  })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Remove credential issuance callback:\n\nRemoves a registered callback function.\n\n```typescript\nagent\n  .removeCredentialIssuance({ callbackName: 'example_key' })\n  .then(() => console.log('success'))\n  .catch(() => console.log('failed'))\n```\n\n### Issue DID configuration resource:\n\nIssues a DID configuration resource. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDidConfigurationResource({\n    issuances: [\n      {\n        did: DID,\n        origin: ORIGIN,\n        issuanceDate: new Date().toISOString(),\n        expirationDate: new Date().toISOString(),\n        options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n      },\n    ],\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Get DID configuration resource:\n\nGet a DID configuration resource from the database.\n\n```typescript\nagent\n  .getDidConfigurationResource({\n    origin: 'https://example.com',\n  })\n  .then((result: IDidConfiguration) => console.log(result))\n  .catch(() => console.log('failed'))\n```\n\n### Save DID configuration resource:\n\nSaves a DID configuration resource to a database.\n\n```typescript\nagent\n  .saveDidConfigurationResource({\n    origin: 'https://example.com',\n    didConfiguration,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Issue domain linkage credential:\n\nIssues a domain linkage credential. Can optionally save it to a database using the `save` flag.\n\n```typescript\nagent\n  .issueDomainLinkageCredential({\n    did: DID,\n    origin: ORIGIN,\n    issuanceDate: new Date().toISOString(),\n    expirationDate: new Date().toISOString(),\n    options: { proofFormat: ProofFormatTypesEnum.JSON_WEB_TOKEN },\n    credentialIssuance: 'example_key',\n    save: true,\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n### Add linked domains service:\n\nAdds a LinkedDomains service to a DID.\n\n```typescript\nagent\n  .addLinkedDomainsService({\n    did: 'did:key:example',\n    origin: 'https://example.com',\n    servideId: 'linkedDomains1',\n  })\n  .then((result: IResourceValidation) => console.log(result.status))\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-wellknown-did-issuer\n```\n\n## Build\n\n```shell\nyarn build\n```\n","readmeFilename":"README.md"}