{"_id":"@sphereon/ssi-sdk-connection-manager","_rev":"198-d1435b07c2d37d2304c4a697a1c4cca7","name":"@sphereon/ssi-sdk-connection-manager","dist-tags":{"next":"0.9.1-next.42","latest":"0.9.0","unstable":"0.9.1-unstable.20"},"versions":{"0.5.2-next.70":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.5.2-next.70","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.5.2-next.70+2007615","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"20076153a8958b0541d9548d4c980d5b4c8afffa","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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.5.2-next.70","_nodeVersion":"14.19.2","_npmVersion":"lerna/4.0.0/node@v14.19.2+x64 (linux)","dist":{"integrity":"sha512-BjUw1vfupUjAQjFzx7koXeKUMuTwLV4M1PyK3AjQx9naRecl5TCmnSz+R1YguvY4rCw1EMI1UoNILxjIJyxjHQ==","shasum":"668cb43d574f8488b81fc77e9ad7f9f6baa655fc","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.5.2-next.70.tgz","fileCount":26,"unpackedSize":61860,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/joE2nkw/CCBB/d6v+LMZ+18b+8xE8MwLY2nOwWYlGAIhAKmnGwnm0h89jrgIiN7rVxuFEvbdJ+JNNr2VXRo3S4+a"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilfvsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqx7Q/9GkkSQgGSXkcolmpj0XFxmHL8rnBUS9r+f/5WqFaaz5G7ld21\r\nslBlxwSZYNH6gJBGyZo9++9SuxWD/Rk62nuroDqCX68EonvojOU9Wm191JXM\r\nv52ajgULNLJeRTWsuexILB98U5JjbFT83/QdnzZo84AgjmtLbbE4266KuESP\r\n04a+OlOAvPA7NgN/o9qg2C2EWfqiOHyQNjP1ZLk8vF2ZQAnYg/xPO+5DKwvw\r\nLfzA94eusODJGlG/lFWEuZ9kngf8i99aIfTPwlWjt5Sy/I8GtyDZZE+gkHeU\r\nkP9bTWyZnyD150qYsrJR+jnhGFNZxI9dbyW8zXzKwAxAjcRZSlJSlNUdCNG3\r\n11e1SWrgNv5rN8eNBQtEUrrbs0B2s60FdnEkOpaHxM9El3wBxwKQTPsbM0Re\r\nqaN07IfjpTT11PVgXeIMM4LkgiLpqH0J6B1U4XTtAFyeai0ka9mAK4PODRb/\r\ncw7R8Ru2Pv6613euN7nimfZTrqYVZjehriqPyAoYmtVdjwyhghiYGtcukrJd\r\n2vF0pOOUMzHw7XHQ2dXw+K9BMRC1CPQ6Zk+qAVCk2iUeogK5/U0L3bpEkzPs\r\nw6ugTlg+o6Is/bS+SoN8BpbSp3w62bhAwN0z6Cp+m6hJKf5+W7Mk7f93p9w9\r\n8kljwEw4ZCQVcOaC7fOer4m2fzVrCZBxYoM=\r\n=Zi3r\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-connection-manager_0.5.2-next.70_1653996523787_0.1893110600752521"},"_hasShrinkwrap":false},"0.5.2-unstable.73":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.5.2-unstable.73","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.5.2-unstable.73+fcef61d","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"fcef61daf8ec509ee3125f65f114a6b3e9e53bb3","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\nFor now the following connection types are supported:\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n    'type': 'react-native',\n    'database': 'app.sqlite',\n    'location': 'default',\n    'logging': true,\n    'synchronize': true,\n    'entities': Entities\n});\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection)\n    }),\n  ],\n})\n```\n\n### Get a party:\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent.cmGetConnection({\n  partyId\n}).then(party => {\n  return {...party, name: 'new_name'}\n})\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID,\n  identifier: {\n    type: ConnectionIdentifierEnum.URL,\n    correlationId: 'https://example.com'\n  },\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01',\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0',\n    scopes: ['auth'],\n    issuer: 'https://example.com/app-test',\n    redirectUrl: 'app:/callback',\n    dangerouslyAllowInsecureHttpRequests: true,\n    clientAuthMethod: 'post'\n  },\n  metadata: [\n    {\n      label: 'Authorization URL',\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope',\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection\n})\n```\n\n### Update a connection:\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n}).then(connection => {\n  return {...connection, identifier: {...connection.identifier, correlationId: 'new_id'}}\n})\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\n```\n\n## Build\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.5.2-unstable.73","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-A8Bk8a203n8LIZC1okjrgLnfn1KkCTfFRIQqDECyYngMuosA0kUkV//gWz+WAKhRtc5YsjeCwLzWjz2eSnm8Xg==","shasum":"7b3483bad80ec9240441ed2f0cd0b21a2e361e8f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.5.2-unstable.73.tgz","fileCount":26,"unpackedSize":61868,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdKAueY9KYRrXKxg8fNlrJOqjaziG1uaOKVt+9anUpOgIgVJw4I6i3oBzvNabX0bISzKnjbDnYpgv/IEJ331w0B0c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiquhvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoK8BAAjYyZ5oN0z7h90UvLKz8BW1HPcakBcqa7AOd2zas9pmgv3tw/\r\noz3GG5+Fu1CsMLA7EIcQPiKaxB++8w0pfBIT7kLmBiQERn1muAaCQJiIna0i\r\nBYB6I8ePbWNEplJDCE2lqMlNTgEXeHRcoRIj9cMhg6jivyJtTiXs/37T/bvN\r\nR8bo29k50aYwB25XiSch0BqfwzXtDlOFzI6+DNjW668AuN3oN9119D3YG4XV\r\nA9mYDlzGRt+V8YCAEY+b8+7KCh+uQtJCJvflWFqkRGcupATkQ6H9ObpniHNq\r\nWt+E0PiXRad0+pslTlXs9NR2VH6qGM7khXfghj2eVJ7Q2QSWnC3qKKSDIXky\r\njHNbSLRKNkwqXG4zi3ifmxx6uOvTVKh4HUy/Av6BZCzcqkr7MDqdvpTnkkiO\r\nhiDpR+l2kAcmvRRGdfETasFIqmU88kE2L/wQ3BbpiNLAq1XcTu7ZyTXofzLa\r\npOpMHJZOcaMEK3X8q85aA0vnrocMnHBElqDw6zt6JSop5LF9YwJ9OPd9QiQv\r\nVYMfmyv6nAU+q8ekaWEUZsMZpL/pyIA2QbrDldkRTWDHDKGSz6p1Qs5Eszrp\r\nTuEDPMjULneHWAZCkCzP2QgGnCgUT4YIW4h3YxcbUjGspWSN7imW+LYzflLw\r\nB7Q+g9ZEJqxKmUn3faPyN22q7ADTlXeY+EE=\r\n=W9Fd\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-connection-manager_0.5.2-unstable.73_1655367791646_0.9721474408973529"},"_hasShrinkwrap":false},"0.5.2-unstable.70":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.5.2-unstable.70","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.5.2-unstable.70+2007615","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"20076153a8958b0541d9548d4c980d5b4c8afffa","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\nFor now the following connection types are supported:\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n    'type': 'react-native',\n    'database': 'app.sqlite',\n    'location': 'default',\n    'logging': true,\n    'synchronize': true,\n    'entities': Entities\n});\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection)\n    }),\n  ],\n})\n```\n\n### Get a party:\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent.cmGetConnection({\n  partyId\n}).then(party => {\n  return {...party, name: 'new_name'}\n})\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID,\n  identifier: {\n    type: ConnectionIdentifierEnum.URL,\n    correlationId: 'https://example.com'\n  },\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01',\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0',\n    scopes: ['auth'],\n    issuer: 'https://example.com/app-test',\n    redirectUrl: 'app:/callback',\n    dangerouslyAllowInsecureHttpRequests: true,\n    clientAuthMethod: 'post'\n  },\n  metadata: [\n    {\n      label: 'Authorization URL',\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope',\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection\n})\n```\n\n### Update a connection:\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n}).then(connection => {\n  return {...connection, identifier: {...connection.identifier, correlationId: 'new_id'}}\n})\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\n```\n\n## Build\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.5.2-unstable.70","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-wZKfF5Lnk2ffaMSQTwFqO49jeFAk3Gu7bxmIWAh3ezblR6hI9D08p8V3benjCBNaAcJXcVV/jAKEfFuCx2n4Xw==","shasum":"be1ba6dea66910037d239aadb824014ac631be3e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.5.2-unstable.70.tgz","fileCount":26,"unpackedSize":61868,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEClAuI/8KkWvKaIEhEDhoU4ABemIEnJvvphPxsB0PNyAiAPn77RVUe9UGH+qczQTYj6IrAVEmXjwBdb9usRzIhHtg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiucHPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmreXw//ekw6oMzagqqLlbvN5iLaxwLFrM2pfMCOCGYOscqe4+B5KXkY\r\nRL38i6tWNQ+FrChZQ/XDcHddN3cxTOh6A1ulmCpf0RG/1LkofYTM4qV+VrnI\r\nS+N9vtBNpraXbAPyXaFJ1ruEbIz2naR7tMQY+PbukCUBrL5Q27EP6iIT8OzR\r\nEMoLktk51kOKW7AIvGnTRXjf8tCNLawWvgdF7lhe8zBK8o6v3HcjRJJyiN9/\r\nqLXxgLv3v8BZKubuIQil0t7x3FNrkIHzbc7mkNplsYt1aeVo9DdzuLnf5xH4\r\n9FJEHFfKoyhGuYX0xZYbMySvC/8eP8xkhT819UIrjIfF3NVjIWVNiOE+WBoy\r\n7Q2EMqhK7P255LM721Ha393KCtqgPYflM/yoXu1niu4lRF6LP1fSIOGOu2V0\r\nxuY/XekByvfZUKLEi7EkRORP0ggPzO7BAnie9QEJDdkOvtVBm+I2ZH7RetLI\r\naOiwsHkhHO88L4DsGbDNbnsbqgMhoKxkyN9a4Nt2YlnHQc6Y0SLjxFSNNGfV\r\nbvgDEqnCSPFdJ8kuILJZmmPMHUOwmcmngMKHMquGAF+9/5Ope7wjUrB9kdGk\r\nntDxvn3++UHMcvp4NT22NugvKXqeywvNa6HQF6zp2GI6MN3XEievHh7n9nRX\r\n/OgxynqDGDVUVncdrow+sixJOmKqVgLUlws=\r\n=/qYh\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-connection-manager_0.5.2-unstable.70_1656340942961_0.1111511847736617"},"_hasShrinkwrap":false},"0.5.2-next.73":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.5.2-next.73","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.5.2-next.73+6e3e765","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"6e3e7657ccfd52ee13eb8e556fdea5241a160dd9","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\nFor now the following connection types are supported:\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n    'type': 'react-native',\n    'database': 'app.sqlite',\n    'location': 'default',\n    'logging': true,\n    'synchronize': true,\n    'entities': Entities\n});\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection)\n    }),\n  ],\n})\n```\n\n### Get a party:\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent.cmGetConnection({\n  partyId\n}).then(party => {\n  return {...party, name: 'new_name'}\n})\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID,\n  identifier: {\n    type: ConnectionIdentifierEnum.URL,\n    correlationId: 'https://example.com'\n  },\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01',\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0',\n    scopes: ['auth'],\n    issuer: 'https://example.com/app-test',\n    redirectUrl: 'app:/callback',\n    dangerouslyAllowInsecureHttpRequests: true,\n    clientAuthMethod: 'post'\n  },\n  metadata: [\n    {\n      label: 'Authorization URL',\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope',\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection\n})\n```\n\n### Update a connection:\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n}).then(connection => {\n  return {...connection, identifier: {...connection.identifier, correlationId: 'new_id'}}\n})\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\n```\n\n## Build\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.5.2-next.73","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-PV5wsOSxtVRkppaijXpRDO1KjkFMC3UxI8W5gAuOWAj44eHvv4Gi2kG2qBIy/oxrmKLeAThwF2rEHihBCF/r6Q==","shasum":"6da6acd0ba73f2ab85b6673a2ca86a08e6164c9e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.5.2-next.73.tgz","fileCount":26,"unpackedSize":61890,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICmcJJI8gmdAKjzhMPGzoYNVh+0acXPylo+Qh9ZjUoimAiBu77H9FvV60jLItT4h4Uy8/VYthE8pQqZffHejKjyVCA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivYLiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTLg//VNA8pP6wo91PqzVoX/5/GfYFR+RLCjpGJJWoR4ir7vXtZ0bm\r\nAF0ArQkHACTXltnBwXteAjDk/odPWOlTQHhCbfd233AMWyNMtT+pqbhsbrAj\r\na5/mUOLrd+aIcc2QFIGreLiKUe1iDAwGx0vy64x2cYTPVnpqa2Z3t/YeQUFl\r\nVREn647jXoTnBahedtfWBcebIeK1njhP7pZ8qIj4ewkGepdoPXfavCC4LHHm\r\nkaT3/P4xSiZrCrrxs57jmaGn6Vbj5TRom5xZ1nro5HP3aGTqk/KaunYmB7SI\r\nRx5p5OtpR8PpjtLFFX8ozFFV+3d4lUMhB0EHEeNnZjV1f/CBV7Aa9jVS1SUD\r\nzLwIjEWoCpMyhm2lIsibW7CmxoMJSEokN+dZG6wxhOt9rkzxidk0/kpfy0ca\r\nuDq3efMMJh7uXguMMJkyV4J5he6z2i/B2iy1icmBIWnkd6zk8TcV7I7jQ7Hc\r\nzjm6/96e2UfrdGzMbRETKhT+P1Jf/Usk1+M6OD8+C2nT1TyGOvGKYNma+Gnh\r\no5BLfTNgQggjn/2jQJtXN/wVUaSBawQZ88g3X9tmAhDZVOZ4pS3HRhrM53Qt\r\nI9DUG9Z/yMQq5z3Up9MVBHknhrZG3NDkYda9+g3stZ6kB5h8kuMXkzdvILAa\r\nTiMy36VyPVHMwRKHFjqJm3AymGy4gjCoRGc=\r\n=ZRXY\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-connection-manager_0.5.2-next.73_1656586977983_0.28022707814494163"},"_hasShrinkwrap":false},"0.5.2-next.113":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.5.2-next.113","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.5.2-next.113+ce7be9b","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"ce7be9b3403541cf714c5bdc5cd02633c9aaecb2","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.5.2-next.113","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-lm5jV+ERZOBaIXItMyIdnDW/wmUipcIrTbTotF+p9Hmi4RHSr6nbZg9nDf2TtPsSGUnkSWmFSrnuPrwCw21P/Q==","shasum":"5aa549a587061ce64fff84b61c6abbbfd4573ccf","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.5.2-next.113.tgz","fileCount":26,"unpackedSize":61921,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCf7DTavGIZyCO4J4/FzG3n9QBXM2NK/D1XedCEg29rFQIgJwb8+KfP9cGJ5KklbLHIOz/iPuWRye5LuvIvL/xZkgI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiv3SKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZExAAhqV1bFsqvzX7yg9Q0odu7sh2fEUQP+D66gu752LrmZkZEFTy\r\nFW9j5efd5/yAsgODAaGmyPv1WJ5bZ1ltWF7NUvYJp8uGrNdTV4GTgUkVBtxh\r\nXHfY9wK6BNVAGaKixCNzeEgXY5I0xPfvD7APFSvfvA1FAuxqTaBLOE3lhS8u\r\nKLPr/bv3qZ18TO61UTWxlDWXq4FxiKATX1VAI2duSodqCHw15Ev6AQ8B3BbW\r\nMNRf69iSNf/S56tmsVnoV3xaFmoiSKcJ7CleSXnVaPPiYTa8ilXo2nEdb+DE\r\nqvqFnSw0tK7cLyYN5j10+G+eqIZsXnTKpncxKmnl4r37XAx3OsPVB/F2L820\r\nsQweb6X/khCAdoAv1c/0ZNwTMv6ZuhAIMdHdDFSfAX+wQW3EgVLBFBek+Uy/\r\nH9itYoeYgw4hrIjwQ5y8DeUB1rl+b+WmJrYGBcB4daACTdDJCU+VKw0+VGok\r\nyMjNLyz8vp6eue4vTRASrVE/8Oz6Tfi8zou1OMf1m3phUxLSsJQdui8iCAph\r\nJROnzOufqL/LJmh/Y6XZlyStZ2c7T18w4GOnNnBAOIWalVIZCN8xpcOQ/V6M\r\nVVd1gXCA458NDsunkYnj6+g34+n9PYdfadiPCtsenUhVl9Kj5jzZlMuhqZ5I\r\nlxVGEFyZuuIif7o2dh02DjkXoitTCmicXLs=\r\n=o5QZ\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-connection-manager_0.5.2-next.113_1656714378013_0.26484588797813235"},"_hasShrinkwrap":false},"0.6.0":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.0","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.0","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"36f554af6b5c0fad8a7f860b4babcdf10e4174b2","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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.0","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-OWavXfGthdI3UKWQxOGYSnPflYNRZCKqLlmGDCKJF5/iLv8zqwCm7rcwaE8pCSFVLMpbcdU57Gn9BSlaEmJciA==","shasum":"b3f778628eefdbb6ac237bd7b2b1f0bc67aadb20","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.0.tgz","fileCount":26,"unpackedSize":61887,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2/6ruGpHVqkIIkWiWFIacxpKRtGH69fz3ZUL4Re462wIhAOns025rx3CSBhAR3yCapmA6jtuSAIVm0VzqTFN4/G6p"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiv3dTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmopLg/+LOhXCv7B30kFQx280ralRMYbnuA5AseUBimj4He1D44ujC5d\r\ny4Kd7q7ht3NplN/b95o7SvIEKzvfDprRLag+erLovqyRJ3gFCiv325o2DMVA\r\nLGlsxwsK7wd6teD5IZTq74f+9p09yKK8I401D0Z3HxBlNbL655IZuNVuF5Sx\r\nQpe/qbKaAr92UNUm9UD2+RPhxtu6bF1+TxQBr7RSSJyVy1QVkyehlU2LXQz1\r\n0WulACbJWNKlnMqBfYq8rHMTOWxRYkSvMtmj7Cg0yHa/ZpZJP1WaiA/CmrRe\r\nXvX4KOOwWlbcnOrrAF/9CjIfyxPPNCYuYiKMKr1fvIvumzrzNcJ1xDgn4QUM\r\nJrWomNjbOnPrHcNhatPHk8X/nN89KVoORzMKSWoJLKlc62i+YJt6zY2bOfbJ\r\nlRFRDqonTMR9NSiLQUo0x6mTpaPZNG6akX9bkc1EcXq2WEVxngcVPRDx2Nbm\r\nOhFaoVZ6ZaQHzKpi3tzKDvIuER3wIdtJBwRnEOARGmYmfVBko032XvlxlMOr\r\n+tV2pY124tun7j4VLQxLC1glp+iSDcHKiGRSoY1GtE00CT2V/ikncDfboiuk\r\nVlN+MO8A3SYNYWIg1GUwD3tJCxD9ingoEqxmoB+M0NTY00kVlpvERL7U6/KD\r\nMP2ilxhbrCEQFzd4LywCYoISU15GnJF/eVI=\r\n=W+bd\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-connection-manager_0.6.0_1656715090792_0.8397407192179116"},"_hasShrinkwrap":false},"0.5.2-next.116":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.5.2-next.116","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.5.2-next.116+1cf21f8","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"1cf21f8a17f99d49479db556eb6dc70c30dc8cfa","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.5.2-next.116","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-s1uDv/y0CFlg8UpIIHochM+53rN1zET7xrGkVu+8xi5JyfoLxmMSWb4tYHlkpMXWoIKDAU9DmWX9/O6zIP1xQg==","shasum":"5be74cd0e566dc1cb8be098970ba5d7e473c4fcd","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.5.2-next.116.tgz","fileCount":26,"unpackedSize":61921,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcABhuZp8esUlGC0pSvHVDeib8dnxSG+OCxdVSYXPrDQIgKWeI6+z01zWvaCZePEHkNyQjZ3Zo7YLrxkVjb46OaKQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixNLYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqpjA//fz46ERhP3Upp8tq9iKYQUMtkiSXBfC4LT7IuirS2UBRgi2kq\r\nVGwsyBm5Jt+LiNjW/094pBvxlx3LrXlnXeoWIal/lz2wMWGQEPHPIf1mpGk6\r\nozgXzYW9dARSgW4dqIwiyFjup9P18HaMJ5n5Q+VzT85nxTW6WsNIwA3YOKsg\r\nCJB8gSTXx0AqYpnyObk2wc68ulepXnceBA9uawFBL8rpaG8gG4wT4zL21BG4\r\nw3EyJdN2bjy6nxZXOt9IiS4kycuAiYRvsLmVXNS6DsWtTy2a3Z88MKZhrPJV\r\n78WtVhWVo0FlHeYrI+wHcNv9hKiMSB3kJPdHC8pqGpQhqKAJ5dpoj/tlwrSA\r\nv8f39tFelWTJr6kYPZ8TGjNV+Q+AxyTvW8KguLaISsHtyyYSIGB1OBonirqW\r\niTWGbf4IblwOclmUbkbBjx8eQuGdrxz7Bmfd83umIq3LphDWU+vzn9Wc6RRy\r\nKRkEZqBKj6qwnb1z4tRoWCTpc/ZvclRTShTyYPnkMwd+IXm8EMuZCPH/0c9f\r\nAwEeCcA3OT3OVQn3knBvVAIwKN9ujjTJrVfJ7OdCR1GL1leydlt7CpAyEIXK\r\nSCfaKjBt8D78fAtuoypwNjTO9LeHtF2JsEn1sfXe56DHyr0TycMMS/cFKuGr\r\nKfVAnMbUhCEGhhnRrU0E4lP2Tqkop9pg54M=\r\n=mb8x\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-connection-manager_0.5.2-next.116_1657066200241_0.96640070121496"},"_hasShrinkwrap":false},"0.6.1-next.6":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-next.6","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-next.6+d455c9f","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"d455c9f6b3bfdeda0a399bf183d3b29ec6b02df3","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-next.6","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-1W3DM/l9vWO56Vir0rW4rcONVUTpXbat4K/i7VKMgspLtgIi+Sfwf1EYggcaMoMX0cF1mlJrkw8P4LsnSYl08Q==","shasum":"d427ced17f973891af23366b4e7a628920f21e31","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-next.6.tgz","fileCount":26,"unpackedSize":61917,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH4QQtSHOhtKQK5pfLNyXrSv+eUD/3SNov6r1KU/+alEAiEAr7BfnkrR2ehuPcIllJiNl03+NbacVW7X9ZTqzBGO4hw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixNngACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfwBAAkQ7/k7+xFCSbikC7emVpsq8dKLhX7VczbiT7iI8JvA5t8fve\r\nAkjiHhfKGu2YobjXhxPmCX39RA3c5VlI1bWDiYIe5d2cS3edbxrrrJhAitv3\r\nlWyug1xEKWWQlAVvLN7UM14d7ahABHXD4SU1SC3qBHyZX6MAmac+wActHhpk\r\ntGd+SyWEPDMh8fCOQOuSof1nIM156uQl/a4PzhWVD58OQQF2lMKV1f15XFvv\r\nR7E9nXcqqEUBnYITbrOluDVbwg/8aNq1IuFZnBncxCiULdjTwDUuDlSiePaN\r\nHXWipmbS5gleiEeHKnA3xkF5rk0Jax5xWK7Iln/9ylmYHQT168YSdsBfdUHT\r\nHsN+ZOC+DIqAxJuwrOc6C03ANds/viR4VZ9lA2pfJamP/mn2h29SOwzaWerj\r\nNpAWv41gMhBUxAInUHMDTyhsf1A/HtH2SFFC2YHSlqDSkUg/zIyG+r0HVFM5\r\n/0NfEP/vmO0tstSre49mFuSKdnIruSvioAI64s/9xyYuH4oLPGGUXWxXVQ8u\r\nNGDhd7Ego5qAiKZOVfW7B5SY315VWs/dnRGtrBFg3OWe+pk+dm/IH1NKWE0t\r\n98i7qMV8A3hpCEw3lo3a1KM4UEEWDFFyOReULA0Kwch3OYUyYlXdw6I1bkTV\r\nL3Iy/fjhdUbbR+fNkl4VyJDaZHqwioZafOA=\r\n=77G7\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-connection-manager_0.6.1-next.6_1657068000036_0.4367855676262613"},"_hasShrinkwrap":false},"0.6.1-next.8":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-next.8","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-next.8+873e8b1","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"873e8b12f9c20604eaca3f12fd439eaf10a7d68f","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-next.8","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-svF5Gbnf+dr2D9L00zVUHcgF/7r8eL1VnPj7WCgquRD5SWaFmrXBZkKBOKXNv0NrBOEbcLp2ZAp5a8ZDSjRHBQ==","shasum":"03e3a480f7f687dee9ca35df74855456327dd351","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-next.8.tgz","fileCount":26,"unpackedSize":61917,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrSB6LdlPJ7D0hpETKMD8xO89W3+/uiqOcTKDoED+eZgIgEl7vM1iCRbEDryyOESrACJND/4gqJfQF3qmjU/mHPU4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixgIfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpCUA//bmligGB0SDT8i/Ylqf9DdtWTKZ0wwp+AwHlx6coo4y8evZ/a\r\ne/gKS3rlvXiDGjj+UTCtk6GU1kpXQKCWeQSX6iHi0cPUY1QorzR0xVbXvkPG\r\nQEnEeHy7Qbn0NqCZBF9cUjrY66xcwyxR9f6pVX6Bt3qsgGdEtnGV9MQDwmS1\r\n2yrcYOaWvNlSZk7gylBVETgbtzQP03q1obGIjhFUsuu04m49V+xJuk7mgvZ0\r\nwKxz+DyWpzsY1cw9DKZvWx+Gwn7aF55WYdpiyXokmReZOh0b0HVW0EkowvVS\r\nRoe2HcnV21ALsp0o2xT4WcrNB1eFpqG6AIrz+rAf+S4ktQmR1AXDlV8p6xkH\r\nkbiZehrVMUKKXlgHltikw8eWuWMAxu67b/ekgWSO1pCZzfj9zwHL7OqY+mlj\r\nu3nelv6UJyJkg6EcK3lSPcdWxCJxCoTrB0FhYhKsg4cdx63OcNNSPFfqlJX7\r\nDw9Uvv+TV2vZu+sfZ4U/SJ8F6KwELerX/u011caMvoF9+TgL8Oc1TcVmTw2J\r\nYj7aeL6H2AcFgPqYFNjWT/2BdpKDN+XiT4T5qW89X+toc2VDqL7KOoIQ+i6p\r\nPfNwvie7hwfaK4w1yaxzU/2O2EWFV46A+Q6oXb36ljG8LayOactj5HCeykLN\r\nqSfRh1dRqt4cdNoZW1FI4qJL36KqoIiRiew=\r\n=STLl\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-connection-manager_0.6.1-next.8_1657143839361_0.7209428377745395"},"_hasShrinkwrap":false},"0.6.1-next.9":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-next.9","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-next.9+ca83b93","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"ca83b932ac3a56e223cb63f8dbdefdc0ae3f0d62","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-next.9","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-GPw7IP8XO4GtkenwrxIwZPtyqqXJ+QYXHcj69uoWg7rO8Wcpnd52sj3zVUqvirvCBWfyNM+9JEObcp7wmHs5Ww==","shasum":"e107699854ca435be279fcd999058715990d5eb7","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-next.9.tgz","fileCount":26,"unpackedSize":61917,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDgq9NSMSvzMKzpm8sDCLK0KVTLLx7oPG8Zlj6G/GiylAiEAm98MB6tPYv/y62oMfpaw4wuDDWkMF8owvskdp9nPF/Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixgoIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpv9Q/+OjcheYxHqkGgmDe5jDd9mUWBab4XobyQ6BM+LMhb+nCqFUvO\r\nLborO7X/GuitaV65oMQQ/6M0g6hQvHlIGruGlXhpUtTGvFr4WbdW+VpkLVGw\r\nSaWfB0PfjZDZYOTvLVJWaaZDHf7+wTIE4vjpLBCNw4OKUxrcwiBUo11nz1K0\r\nuyPHKiOjHI+1Oyem94/2XRlpOVHErQzxewmliucqAsNdYunrYDpswWyPNwDx\r\n2W66f5LXC/X+LQmq31+I2Mf7hC2Icd2hMlJ43yWCdzuNqs0uUs9p/0YQdL4R\r\n5lEbR/AwoN23hhDwqRnuoZvxiS/MRy1oQYz3Tv9T56TRAEz64d+4V6sS6+NL\r\nnpCQ5bEp1bMpgcZG6buGQbOKTe3vaM0S0fmuKNy2crLiOrbUGtD7CzyJc3T/\r\ntUSB1iK98ha3mvd86tPwDMg5CzOT/PCHRiOMKsbRTbMvkDsJBECy36VMFbZj\r\neftCK2LvnVkaeZHddwG0q/wNmIsi0uLm7jNeGPEKfRxBM3eryEq/jRhhUNFH\r\nSjSK77nlv40sm4g3pnkCvmENPaIftObfY9lNLTfjFKl3JIe7ywl76zuoJ8wY\r\nThhQ2ViiLtneKc7zw2o8VOUWb4ot0lbEXd2m88dAZed+V2VCbSfYEDMMIgiv\r\nxKdX4bfeenVBBJMpo+TumhO3uPmmRooZbKE=\r\n=e3To\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-connection-manager_0.6.1-next.9_1657145864120_0.7769583387713246"},"_hasShrinkwrap":false},"0.6.1-unstable.49":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.49","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.49+251ed60","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"251ed60ebd6984d5fe494a764d8cd662dd0eba6d","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.49","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-8kzRoD9+3TqKiKEwRUrfWjKfs0lI1sP0qZWilWttnYG3mEnIs1sRdjvBTdZEMzlJjm2cHJ9Jl8m4F3ovHBIIow==","shasum":"07bf2730524703d6523c01cc29fc7dacbfe73226","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.49.tgz","fileCount":26,"unpackedSize":61927,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDdr7li4pwW3hBdIgj/dkTnR2MZsCciHbYxfoDa1pwYSAiAmVHGDKW2Capm64/ZpBU6Q/jY4KrTBauBUu5Uwd6M0Vg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizfmXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmow0A/+OicKp94OfYGdud0khdICBklrUP6Y7BZGGgHD+A1Zm/ehi7SG\r\ne5A1leod3wSioaQX/8goBwWM0clP+cNUqPfaGCPGK6ks3aIoSnW4fD8nAW7z\r\nidfLhHSVvAiRw/l2QcXaGBjxVQ1+WupVxZx+RggC3+bWnI2VxXSLLTvsygn5\r\npldBIYnumGUH5723Y4eElMyLqXM1PBscXp4LafdfeSWt/PQHdFgvYsfCbmUo\r\nga8kDjhBk+ornWwXWAJRkmn+8dlU1Xa4BIijhCAXW7cNwXmw/Dt+oEzOYWLu\r\nQx1LxGfhhP82uMJMPMlNQaTirgUtWHDy/DekUNDFsjNpq8nV66bfd5/2ZbI6\r\nG0nEG2ELKCajO7069fxz5lo1/rXSEW0PAfJFGjGs8jaeaG38ycpG0Rnw+2q3\r\npTesyYuzVjDpBHjNsc3YRH9JeFtaixRGluk0piYthRLGqKMe+PwPuVFZK1Ub\r\nRqjevryBbwszBq74ZNyHpTS9hhkMJIPHh+zNONOP04GWfmsCcBY1D8avI9Jw\r\nFqDX7VRF4nL3QgdyjbMyXrRRJStaz/UXKbneiUIUUsUjA6ffSAKY44v6w8+Q\r\n52Q4b7/Tw/mMs1rR8lBsgx41Xjq3NcD2xHoKBes4TT3GcJ3riWnwCNn+T6hi\r\ngjnOfzaS4CFfxFUYfqr5glrvf+NkcE+sjhA=\r\n=vX0H\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-connection-manager_0.6.1-unstable.49_1657665943054_0.20763716954852196"},"_hasShrinkwrap":false},"0.6.1-next.50":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-next.50","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-next.50+5ae3140","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"5ae3140c252b6a3d90194fc3c57c00d2494cbd9c","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-next.50","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-K+yhZRdcvy9xUc4bwNsDfYeMqWF+kEDcKt2FlWQdUTKdWRMDUoa1MdnuMYMMEVdxT0BsuzwWAqBlYMFGb5knkA==","shasum":"6695306657422773ce300e01d69accf127ee7012","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-next.50.tgz","fileCount":26,"unpackedSize":61919,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDng0aQW3pq03IlVWV9wJQQy/PXGj8AQDMVtzfv7X/fRgIgI5RgY0LVKARrFD5ehSlNe2Srth8G/GPwrulAbiFw128="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizfybACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnVQ/8CV8ysKVssHOVRsy6Ue7QzzhqW+L1Rp0+qKFtLjxKSzvl5PNH\r\npsvNe9eiPmpW60lDVNUkAarnngX1gZF9rn8QpOAUGsDbtGCCWPFPw2JqQPIz\r\n4TJmLo4AX39msseYEQyzgs6VC++m43T/HDcTV6uP8fLG5PrSJer4qwuM7aoE\r\nrJ+pztWYHkOEuM+zOnbZg+aSTO8e6WCVYP7x/+YZ30r5jYkmO7eUJTAewyn1\r\nhPeFG+VsBfc2340eoc1LOMgzRmItV7x+EeobM+xEg93ygNg86bYDcB9La7RQ\r\n4QqbQMyrrKFUgKvXwvnOiqJc16EoV4hpwS7b6W91IQq8k2G3zhYf7bMm5dV8\r\nrwnJ1cRHykM2nhvygJhotmFeUXwHAUq5kdExTzgCzl3Y8SN/mUl6QxCb491+\r\nBWbv24VPurfLssC/LREoo0WHb9GQJNM5kqyhEfRCJMAlLOVC6ROElCY46+4c\r\n3yRMh5Dtt1kQzToAbJIvDuSJKR1+4r0qOVFugJWdlhbmR9hbe2jDnK/0uHUh\r\n/LNcTnXnZ/2ONttRFduads3h2hV0dU60Pdkiprlaqx66PO/Ub1tuQUjKavyB\r\n8yia/DI7/RpuuEpg34qVPbH0TuBr9Qf6FOBIZAcWVMBIGTqY/ZH7mSaWf/Av\r\nvFfTF4z6rHG1h+ZQnx97XU69q2WgV7D/u7Q=\r\n=v4u/\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-connection-manager_0.6.1-next.50_1657666715375_0.6161697738868617"},"_hasShrinkwrap":false},"0.6.1-unstable.63":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.63","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.63+a709ce6","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"a709ce639056f768745bf9faf7388f348cfa4a62","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.63","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-KgJ4PJCS5R4uKDfsv5qwC+mYkENunig6iKKlNNWMMFmdgZWX6cwHgRJi6p9cx5tvVfAxyb+d6Xhh7KqX/he3SA==","shasum":"21e20649534a7963a3be3fb6c99885561fd707d9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.63.tgz","fileCount":26,"unpackedSize":61927,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICYQzjmkwJPVjf1UDiR7qIR8nJieiOgrz5/2ik6Dkv2oAiEAqs+guHjIDfiRNbjbIwET8aGRTVVDMquJIUSJJ53WgkQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizoLUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpp6g/+Lvf5mqZYZEp9Edkbavs8fOx9nxZyq4vxvADiQFZ9ybWxBUsH\r\ndpVReiH+x3BtKLdAqixxrEwYjHdHkln5kfgzOYW0zkXUiVrMhyXFVrIFInV3\r\n4B4mzTqyOpfqs/q5iPPSFPnq9zmm51F8bDv2NFRpkB3IZL/QflC3Zda90s93\r\n7j/wGDrhRMzWTE/umyiNjIRIbNSmUk52/iokLzn5Uli9LDenJuS53uUar7jH\r\neqiR8WPt8GY5xLWV+iB7ZC8BUubPSynFGYuFTu4EXINz0hM15D1NFAxZKbpB\r\nXbUknHqksCLWRja5J6QrImg9Y/xlf35DcSfE88NcYN+CNNYPlPzVo2g8NZMr\r\nBzb+yRQK9420RJp4f67Zu3RaIIEPS/E61pm+5t2O9qnMeVTjwO+/SyFRZ9U2\r\nSnqFiVP6i/xMQN132JFpUsa2J/OcCCpiwqagewlZ/AETigdXtOCguwNn1yha\r\nz+iug0U95v8cAil6wKJqwGvDiuVT+CVjReU/WZvymg3FPGqidrabN8LOWTkN\r\nuYFmZPyvnX79DPEIeuGQmYT2dd9wGbFJDNt00E8ooeHN8XWdfxSLNt5js1L0\r\n/oc9/howZ6O0xELrGDooS6noPfrhx2w8eUR8jsXIMikS/fD4xtFGfEamOsTp\r\n74j/EUsC9OdOmJRsYrOFyccC36UFdarhRbY=\r\n=mcZW\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-connection-manager_0.6.1-unstable.63_1657701076041_0.9511118687925875"},"_hasShrinkwrap":false},"0.6.1-unstable.64":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.64","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.64+8b69827","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"8b69827a11b02c26a1aab59cf8e37ed50c6b59ff","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.64","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-R0PUL/W+yCIlwP0/kV0WzWsV5HPWVf5OeXFHe0o4dBSznA6PVC5a6HhNcEkK++HN/Lspio0q5sP9wWMJ4UX7MQ==","shasum":"05cd670637868bfece662b76b5a803942f239d78","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.64.tgz","fileCount":26,"unpackedSize":61927,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6BROShyWFRgKrn1vA4N2CXM9y5dl784IHvYWL6fA8hgIgA4UE7h6GLYHBcG2nhWCnByiZicVPYgbIDcpFFCfnSig="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizqe5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7Bw//cBIjjEVmTXBlHvnGNJAxMXOYv8/3kzTUnD/IM8LRrYHfwztt\r\n6E/+HZGl6gNGsMOiStX0tMZEPoTvbROWKY+W2uIXf+vheBD8Mz15u9ONzkHY\r\nHYJYKAAoD3uTsIXlkhb8u0D4taLgGjS5yD3uFSvQ8ylATBc+R57z15ca+LII\r\nQJuaegX3LpPsuRX5vIAJBx1iNsxje9VB2WZIr9FG4o5sIILO6a7gX0uajPtB\r\nyj1PkriCanWZejunEQS3EDL9nZdOUtvCCShS52LzoxbpxYI8WrJ5SuAQCT3P\r\n7TntQ+IrfrX1sor4bf08kC3RPrWvBwOzrcvXXTqlXiNziJU8u13APdDHJxj5\r\n9vldXQrMYsZhyGpZWq/n3R31TqdnqpoiHLrqYVOO5YoCa6hU3cy7IHsx7bPv\r\naAbgV3i4s8OsljIokEQBQFuJ+y4WGfKE6yVtELc2KRT4vU4FE2P3PiNq8trQ\r\nVpGJYt40PL6g++soyBoIzfWrbkwfOPrLck3ArQGYuiacKl8Ncx9hgfB9KyC4\r\npB24NRTurHAYZYjjfQVwDp1UI6ZPL5mmlE/rRi9iy2Q+gRVNvLSu6yt6++lR\r\nP/g7prydm0kAK81QMc0cqIlqPpzK7lROUi3uRgJA2gSoB+63kegvJmNzy9Ik\r\na4C/4DB+9DivlWfm48FhpEMQ3s8ajOxVn0M=\r\n=r6tH\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-connection-manager_0.6.1-unstable.64_1657710521262_0.478731130544485"},"_hasShrinkwrap":false},"0.6.1-unstable.65":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.65","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.65+a525017","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"a52501731e5fe58bf890234cfb9c671c3cb08aa4","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.65","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-uCG7nosn/+8TAB5b563Nu/jfzmurMNcPm60sg4luS9iaOfUfWqzhrTTgokegLpYY8kgUwJUkiqrOPZTqRuckUA==","shasum":"1b02790720affb4593b49e8880bcfabd2b354569","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.65.tgz","fileCount":26,"unpackedSize":61927,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAuQnWKxI1QMoWQIKdTUba3csuh1yDXk8t2LQO01mBg3AiBkOs9ypaRarcvcikGyqHSRZAkr4iX/fXJDJl9E8klk6g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizqj3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq0bg//bM7ohBr7WI3eg+LfjCNHkNuUUCXeq/PzaFFaQwgIpmMrc/vz\r\nHcDImITL0jK1iwKdX4fl7jDzzE7mjRsnxareF6FTFcZm+VADWzajzwiWkfEG\r\nzBHuq1/mIvCgZB9Ia5QHze+haPXQtK0Ydzg7St87rXYWuGQBiivScqcvgIn7\r\nz6kK7o22hzd92gpptMA+pjvoIijEasxv/5OHSXrYPKNopEHn1FHOlaSgLhMk\r\nwGkOeloVFKm0hSDUSAvOwbtUwpd9xKhjO0eKl1TihOnzCpoySctp0Q+1u+Zk\r\n46YihS+vMWk5Z7VxdOq85T23GvGS/wjy05vdqwLIA7+uESmby8gG2Jkjbydy\r\nH/Pj/NA227u2pYjCw5GQLpJRGaMsaGVAYylNKGCr4Q7sQYJpw8ccAH7dxGIs\r\nvqVUD9DMWOgBtFw56QOJZ+Gunsm6BtLDJUfiUN4uWUYUUBLD27VHKLL8tEjV\r\nxeaxEWh5wiWe09oWaYJYYtxvQnI203r+o3Fa+5N7LNvNeMnMAEiAngqQjo5m\r\nP6x+r97fK6sGPo/FkUF70Ndgf+j4q+us9i6P+fkJMpTdve+EeZeGsr0ec283\r\nHVNUzTQfb5tALtNGvIW6650bJwg6woVg/tnF9b78yJ6P6PjVUmfYk9L1r/HO\r\nR2hPLrAdIpOjKE3RpNKYplDbVKtckH2Y7ZM=\r\n=TgDS\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-connection-manager_0.6.1-unstable.65_1657710839425_0.842868947551124"},"_hasShrinkwrap":false},"0.6.1-next.66":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-next.66","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-next.66+cff4c2f","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"cff4c2f3e71a6943d384dafc659deb3bd69ab805","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-next.66","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-UyLyKKS4jF6wDc03roDsoVufEaRdLecWuYCO21JAB/B/nWZyvt3ZPvH5xT2Kse95k+ntTf1B25G9jmociSob4g==","shasum":"0faf1b6c2fdcc51b04c9b5cfc0d77f3ea627cc9a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-next.66.tgz","fileCount":26,"unpackedSize":61919,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDz9H0iL8kxFrnuWjjjblREZ/N7VW1I7t9ZGXv+nXkDeAiBDdjfitujqpV6jwM5eoRX3ok0Hn7LIIpwe8HT/++Lknw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizq5HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrcUA/7BfKG3zHhA+51qU9LpeuWEs74mUjITlIw/2k82LE+Wgr9byi0\r\nogezq+Zm557KbtHEreyKI04NDmDlZ/4gtf7U8PsfodHYipitbjVTOn4W5h7v\r\n7s+CWswojW4I9IXD9zXEg3HBo9+5DaAQNpNdPT3OCh1+aPeghU03NFWFkkBr\r\niMvp9S/XigmwVsgTqbhSslGNMFvpsSigj+2/IR4rrmlRRwjc9+LiPc9IfEGc\r\nSFcuIXCc0bVVNdt3g0+wCGpw62yf1pgg+MEFNNh44PC+KiQ8kTUUGM2AIWdN\r\nD1DIMqxigZop/cX5lkBgcAfkLIuTWbco1XvtWsk9ZgiCsO+pYdBcWcgxUtfp\r\nJQVPFafkNVu5c31VeojBxak60xel0D2eqVyGcRt9emKM/OO26i60RFlkLQEG\r\nSIZ4KaJyu+OK+Gi3z6kCKYNM7YSR+BZuDsQ3fdzJLJvsmw7gdTRk+nGPNDt/\r\n7L/SZxleZHbSGfPpn0/wvG7V3z3o5D/vXCG+Sk3zhS+wbby+AhtZawQF0CuU\r\ncG908R8Ixq6QLSqKYXzKSO3GgOdTTAk3l/pY+Rkcp84eK2F7jrRbmq2wblzK\r\nLu9l7HY6sTM+nPgA1NMstYuUASy/VRC1G5GcuRq0qAzwvvWfYh6Iizp2L/Ne\r\nayM+jvHOMY+tW/l697KFhCPAY27hHGAGXWQ=\r\n=FYBN\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-connection-manager_0.6.1-next.66_1657712199196_0.8040081364698193"},"_hasShrinkwrap":false},"0.6.1-next.67":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-next.67","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-next.67+386efc7","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"386efc71b18195004773fc74eb51b62cd3f5dd76","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport Entities from '@sphereon/ssi-sdk-connection-manager'\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: true,\n  synchronize: true,\n  entities: Entities,\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-next.67","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-2C7EwV73AHeTTL8wjSYj1P/rpKGjQcbeDaP2SK8m+k88a+DFficqtn5SL2vf1NTZYRqB4rAVgo7KJWHzKXDxQA==","shasum":"fe8ad992a9519ec2ca76c671bcd1afda5fd1e1a2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-next.67.tgz","fileCount":26,"unpackedSize":61919,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKi4Jj7PHJcOJkLAllbhgIsUcRg3esSvU/FdiOvtgOGAiBOmX0HnUPC4lAsW9Hjs6UPCFPNCOmdqgh8eTLZ/YxuCg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4wFMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMag/9F8+oJmpd3rJTW6b57nR67XqjePh584Tv383SJMW2EW11vFMN\r\nIkVni1ytT57SsyZ7Gd25yCNu5oHRu2w4TwFiTUFddvSC035/5LPQoc/E4crD\r\n/h8gh26GIUTMbb4iSq4zdEdb7c9cLSFEYdJv9zbUMukECYN/2k5I9ZiyzH0k\r\nA/EDgjdSksOtBOCYHLjbHc40P3twbR3XdI5ld823Rl2hf5KZgLGrXHm9vBkT\r\nJsGZFDOqYGEK11ITupLO2gbWkdIXb+Sxhe76BC9byvv/NjRpuLpaqs1uryrl\r\nrGeM3XzgM/6aUca4mwsxEOxSdJo6dNBcLejlCj2z2dYcNMDDcpx1i5+4tgy6\r\nryXh520/UIRj2uiX62wrSNJpduML6m2fQ7AM99DXG1sGXXHjlYLJgUMXRlD+\r\nfZTeIpEVCNcE/LCyWkgIwd5D8CU88s9qTP5klANq8v9LN768kBprz7tK70w1\r\nTWf1HGGXv3Z6xVi1UzYZGqlSV5ZTu8JNocU/D38Jj/qIvEo2+bk0joWkBS1W\r\nEczakN8MrxoKJP8dqC83WXf1XoNw+ZX/RKWxNsNT8fibOZxntFphsO1d4p2Y\r\nM9BmPEXtTjf7hse5lYHKBSzj7qMJhbd0qEKXJg1WVEnopaOr1MF9YjxhNUpX\r\nedR/dZb0hdNAPRvhfTG6xwMzreFC3Gq8VY0=\r\n=dxwS\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-connection-manager_0.6.1-next.67_1659044172509_0.9012256654888064"},"_hasShrinkwrap":false},"0.6.1-unstable.74":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.74","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.74+1462b74","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"1462b74119f7a73f43ce3f0d4717e01b60a5ac1a","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.74","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-aI/XP2qjYJHsi5ezJOZ4OGSGQ61OWEgZa/XH/cOuNHUZMwsi9GBGC0r+6Y43JERCNlswBEubZIj6aWBowMShEA==","shasum":"2ee395de6db6b990bf442842a8bf9b4d0fbc97ee","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.74.tgz","fileCount":26,"unpackedSize":62189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSBqzQK1QL/myWDXqBTAtWrB5GfkSkSTn71RQGVj+qegIgA1wkZkxTQNhWrcfJZECjtiJBW9ZESiUaBh1eW8LPuJk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6X00ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbwA//d8QK3lkPDt2x4Ur9Ka+FrHk5cvEo/nh45Nt/jRtDoC9GmMoN\r\nqtd6n/hFTObbdgWE3IP3HfJon6iags9r+3mJq47nEdQSqnEmcsh+Fr2kNucs\r\n+WP9BC6oQNIzf5obgI60YlCriHu9F9L40dL7IaSKJfpCsQ1WaI7QD4m8MMaz\r\n7SH7IEvrJsFcsgTSlIVEWuQbmgjDhn6Ek6c3clKB3uvGA9MM3Pq9ac28/Acz\r\napTl0gggGbHsSKV4x7oe2hxg0VMednmEdhRczIl29mcE792BcAYlzleW31Qo\r\nSjUP08p1SGefogCXVQ55N27iB8ZoNM7nrh3Qq2S6Lp9FaG2UKLbxMko/HUKG\r\nVBEpxiEsvsF5906GqwAYagQDftWYypm0v/6RTY4Af2dLNINxZbA95EtB7VAM\r\n6EnFffrx1hXLS+DcDXi1arxv5KZq3aCTeNUlGTsDnFqQGYAn7ZI6nWBz5xYt\r\nRmkoomPuTvcvnIP71FG1KnNQVPDGqdYLfMDM3vcegn9zGs993DP5YS/xINPF\r\nWHx4cDRNarOCD9r748ehy/90zweOGTfUOLmD28iDI7zesUFmCOpQH+XTlo9y\r\n2BuwWzTg8CzC6yHC4cVs/M8N1elaAAqQ6rIsivFKTNDFhj0KQdQ9yxgGa3yO\r\nnZWUpJqliqhg5nbE4P0mmM7K3oE6dLupKcw=\r\n=3rbA\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-connection-manager_0.6.1-unstable.74_1659469108388_0.4771648632367571"},"_hasShrinkwrap":false},"0.6.1-unstable.75":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.75","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.75+a0af167","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"a0af1670692eed24d0ae9f5721a68d0340173f19","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.75","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-RE4DChg5H5N4XHBQgxLHS61vbrfsVCvfhpIqxTCdKwqQadROj8I9U7QIhOLGFWWwKywVo5QOhjTccDyNHPq63A==","shasum":"634041d22365633a3f19d6d264e209ee84e861c2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.75.tgz","fileCount":26,"unpackedSize":62189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDPdan+5eVfO+wNqLEULSwlBBZcfngdd05vOtuZWAd0yAiAyfPCj2rDt1CnPqN11O/dy+2dVjlese1zDE0i3IweNiA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6Z32ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmooLRAAjLWetwSwqGkxCWayY+5ani9X9ByV0CwjbiKhBMyNSXG1cpN2\r\nemTlGuEmigyIICDw/sJU8+fW0ANQGV2+MWZ8MNHyWgRE/EavtAc+jnkw5HOt\r\nG3MWAde9fL1SiOpuHwsGZtgzmRaQGAvTOYFjU6mMzRSN3uqfpdGm5XTyRlKu\r\nD72Ix1Ef1f9+eq+/7XmEWjzLpBL5MfAYhKf3n1up7xvggGo2Kz+FTlVmGnGR\r\n4kRkzFRjlbUKkgDYLi7BiQNgox7nZx5EA23WU8Im+hI3QTYj6n7JA4w+MIVe\r\ni5GAsaYtCf7GclklCM9EidML0bkJg4n5KqZvYxR7SkRJK663hCXgBxWIrRjv\r\nGIE4a4QHD8WFH8u4LrlnPqLY/pxjI8vaCDY0Wa+ERZPx5sqI1CWdD5cKyeM4\r\nKi0sy+K1TqlkUgqYvsGhZzzlL3ziG7n+AI0ikhNU3Jwr6V0R2OgHZxEbSq30\r\nGZvG/NoRGWmGoFwREp8xWd8nRsOvLju4p9DLtvOviHTsNJXN12LXKmeBHr0m\r\nNRvWDsjAM5moFJ4tVKxcIrJyIjFhYwZTabO4dku65P0z6MnTm/shcOcR60NA\r\nYuiCtJoHrrsrqpcSRp/pyEod7pzMLZSjzLXf5acVdShWHhCTZ6X45m09E26S\r\nLyBlfdjSh19OxdxbJsjZm29uoJ5yEuPLhcM=\r\n=v+TQ\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-connection-manager_0.6.1-unstable.75_1659477494075_0.7336756071398756"},"_hasShrinkwrap":false},"0.6.1-unstable.76":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.76","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.76+527741d","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"527741dfdfa81336210fadbe66fbcf475de98cb6","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.76","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-4nHur2pc5wt5gwc3FxJLGzua5zWN2ScoaFpWW9tjvuLtVaOIQXW1QJwfrgJ5s3Y8P4m5k8iLhm1egZEAKeq84Q==","shasum":"43d09bb9ae40c7fd8a28e57108e5ed58bd767366","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.76.tgz","fileCount":26,"unpackedSize":62189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDwJD3l6TeKO2VDFQxmotSi97ORYOlhnu4f5FO3Q1RKFAiAGjjzdPg5TTfQ9xvNAPCq1v9ggGRbysvDp5deYW5MAOg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6aiKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVxQ//Y7NpDzn1vEPDRZqx49ODv0GutFvfnIlOw4Y+2Zq0qL4BvmD/\r\nRHVuiW7H715iUzpGSOIs1Ohno/F4Uq4pK46XLGGAQelR9GSkOkTn953KDvQI\r\nSzKzAMFoI7N86sY7EzfH0Txx20hS+TeQTR6J0xa7LZSDASMORyFh8bUlzjCQ\r\nbs+qGzj3N6boAPOFjh5RzC9IYqa2C+yEJ7uk2ZOkP5D8hjPNnloA3Fu8C7Yn\r\nrbHbhgRC0tt4a8eyPK9xwORhK12Et230ZbvscfHHh70BPQIIkD8fnNIwzekI\r\nHxcc1C9HYu3PjiyI8sBY5xX/9Evl7q8FVnVduuPVuWRc/z+iSCqoV1ISWb9X\r\n23UjnFQGi+qAVzHEyatd/2SF3EzgFOJlGhZXgGQ1DlCiw9VNgTUQcmVBVohp\r\nIIFbTUbVBCfCNLegw25Ex4ihKNm//s+l83AVMUnMzd2gzjdTiYMV4UcUGg2B\r\nyr/tHEywBOMJH0GW/Fkiun9gNFY7wcmBQgkAe1h6dh2tB3jLt3BgA28bokRx\r\nha+Into8BtgA69Ltpal/atKF7aYVjsfFjagObcgNOBz/5IR5DMrtt4yQ9lY+\r\n+MpUd3/aJZFsm4lvLWwPrn1PhI1zNrnLo6Qzl4vIH2qIDCfQDeJHVtegA1wg\r\n2YhFgXKp7jF4P7loYHnqjZ2/gdZrGtK50JU=\r\n=zUkI\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-connection-manager_0.6.1-unstable.76_1659480201788_0.1325930533820192"},"_hasShrinkwrap":false},"0.6.1-unstable.77":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.77","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.77+0ca5117","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"0ca5117be012752ea88fc437e88378393d7c905a","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.77","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-8cenBb8XUYSZSscOwQu5+R2dYWSlr4M5OVezrIwZZvHdIQj7ZPhADPYqfd3G9YRJw2KXHQuXG/WTGLF7U0CJ6A==","shasum":"2afa78c812251089eb2fdc02e59254e99d5dcd49","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.77.tgz","fileCount":26,"unpackedSize":62189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbZdohzn2JUit8/XpM86DlKbG+N7ym7S3iywFkkcih9gIgZNRePQ/cbkKxRpJFkjHIBRYB12D2O7UPIGk+uOnkx/I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6bSwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/8w//SrHUIwkq6QrARHpNlG+KolCcBt7P1zKvoM4OBnFToDefK5G1\r\na5pxWsIev2V+zNEARdLO3Y6yGupbLCF0AUWex+o30Xi7+UTAkd8YT9z3JqQ8\r\nl4UATX/Ju4h/30FqpZ0tGUBlMM58AYJkGtmXSCd8zuLjt9iiuLMV4+YwhXpr\r\naRC4Fjif+XsOJf+PX040r9rMwNqRCjpiEpr5t5bx7GEpy2WwVGiez9I8NJV1\r\nEc1NPMWbV4tKHtegr+Hcine7mBsnkRQ4+KwA8jJ7Z1bXOtEoPgs+0+IzEpBf\r\nhCAU8QKi/sslBpyHPZJsGWdGbT/M7FhhKqKuEE9cGW2KeICVIB39iKZFX+4f\r\nr8sGUnVtXer0dTV7IeBs7tRcpFnXNQzf5wuxVFFkaYiwOdqRFV6ZGj2vBizw\r\nZqY+sf1PORv+vGWCzU7+trCDfpjylkqWU5dhGMOkh+x5XyvekDOmA+MzC2ku\r\nw+pCves/YZIDX+TE3W0U0rl17aQ30lbBobUdUcW6q1yLpl2omqj/TIDfm7Xw\r\nO/gBMcULh8txbZFBummCekh+yhtTYJwewcJlwL1h7kQwQhWAT7y+WC25ROq3\r\nGcLakUNUc7fGs90kdE/DDiE3AtVEiXl8U3Olv1hTsT068QKzxVw3C2bC3pvi\r\noEQ6j3/vRE76ro34oGabbe58ngH9QKz95qc=\r\n=muSo\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-connection-manager_0.6.1-unstable.77_1659483312170_0.6727332721997197"},"_hasShrinkwrap":false},"0.6.1-unstable.78":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.78","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.78+689ad12","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"689ad12d9dfb15b8471e7b4ea4bd777493ff5bd0","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.78","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-+mOYibAuFAkWn6p40tdPWOgTIZmbNM3eXN2gMR6lni0ZNrvNygLvNySPl4CHb4dA/ZgfASoZZS6dn5jbjgTQUg==","shasum":"656843821453ffdd4587379d0ee0e66e47f28a2d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.78.tgz","fileCount":26,"unpackedSize":62189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwdjMGdWSQa/oLl3CavZmvrWLMbrYkYs+FJaQWRbpA4gIhAOxit9lY0Kn+HOjmPu3ujCDi22Fasw/Uqw6CkLVfVTsf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6bs+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqB+w/8DbuH3u5nhkGTww8n3Q58BjzXftd7RHWw+CjJfw0vPvEjpE91\r\n8Ljgm+jlKC3kgUgDvNjidGow3QJ5zqiK5W6CfOk1+LH5xM49ilB4ZYuXQUky\r\nLwNrb+2FquDCShqzVBD6hgEsezywjog2nlUN5enqDPylZ7YNyFU/leK+fOfD\r\nasgve7+tLJ/MzQ7E8uxXs/ANVEyyABiCzmxHLrcNVMGuygBFG/X8v8gae3Ki\r\nzFMacWtZ2xzLwtS6Ol6tBizN0PK/uN8jtCoeacrIBlOQhOctiPYLR1fdSZEU\r\nIdDWFDuu2ksj/COiVDSaFn19zgM6qUUNoAmQ1Otmw4jYpBy06EyO5XB37dYQ\r\nITMqKylCnUsc+KAJxikXRWCFvYOa1R2w8KE9C8DsFC6W7iv/B85kbkO+C8Lu\r\nTK+/7ND3L5K1xoFMBlJC1ilM1ZlnEYc8759sJLqQH4G5LsERSHGDt48hNidJ\r\nkONIUgwfjSCig1Gevp0VpBTRW4+U8eI2iLaaouUB6r8j78V4ohJ3ytkx/vPR\r\nlpNdLZY9CuU6SPk2QX7fJ5INCYMpuGRhf72mRrHizMiJ9EEG2Datt1rmqohd\r\n/cvVrKj4zO5n5TwQR4PNP3nWHEqxkrAFt6WFrgV6IrhuO5XGiwmgFW4vGDPx\r\nsR6zKz17336t6TDpFC9Kd5vA9ef/f6DR3Zc=\r\n=9rkH\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-connection-manager_0.6.1-unstable.78_1659484990434_0.838532783015669"},"_hasShrinkwrap":false},"0.6.1-unstable.79":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.79","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.79+ed4dca7","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"ed4dca756a3a1575a13a10dd5ca757676a7aa438","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.79","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-UjEulfJLB6yVYcdtssHolWtpM13ron9WRzrw+i++6chI6fX0ToSE8XF5JKXnn+suv/j6Xq/z5lXaQP5giv35bg==","shasum":"da6a40493ed48923447e8efbab3603aa19912a3e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.79.tgz","fileCount":26,"unpackedSize":62189,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClYuVpEG0Y9z6G2Atf3bGP/L3VZBK8OVqZLVuu88L9igIhAJRV5zWT5tyemrpzREXGUTD9jPFcWtijP3R7cAYqbBOa"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6cCbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoeQxAAjkKU+QvD3NOnKP5IPCyFbHPikWlB6SkXDTe7Kq1SYdW8q6bY\r\nPrSSXHPdERZl8bjgeJdM2tv8ASvAVu5bM1qHH29ym330XXbSj2Y0L4ooiM6D\r\nU/1yQ6Eq2s6k11n0Y6p7XZoeqvQltqnNfK9QUZfZbDovbDI4HH8v6DLoRmkA\r\nmIxxDc4gSM9Y2GRb06Qqq8kkB42VNgiiBYWMjxsYfpfNqIiStnJ9Odenqnib\r\nYrmEj7Y5oamNGFYQIJyVeI09DzvOYOqcs5p4FL47m+31EpfXPRvzYo4mqhos\r\nRC8SpZaSikYXY2Z1tUVIEUIUkSSwd/mnFpKA1z6Uau0qjpp9/2nNq4regjzn\r\nuktFXIl5tBMGo0j79sYfNCbqQsQYiiChbRzKNwl7GjifoHEjb+GYVhyFSuD2\r\nN7aikGLcE+cq/i5z0iS+PaKxo0VPA3VjITswVJ2Vfg3Fe3B7+N04uO3kLju+\r\nnyc4JjOe+WX5rDoGEnXIFUa3EUTNSzK1Sq5lMhlFi61u4puTmcaU1j8wIJOA\r\ndkvjh3Q41tmwRsCPaQjmvyqZyrsMzMa9iSRuvKlGvz+mYrsl31P6k+q4WkDf\r\nRR0we0+tQrsOktQOt7Hj1zR7Q1BU9k6FkuSnJMTDaSOYchYPlMXnKYSFfFDJ\r\npJU9WQ8TOFXkRlDAgfZ4PVWjoIfhbWb1Fi8=\r\n=80Sq\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-connection-manager_0.6.1-unstable.79_1659486363479_0.43024445642875575"},"_hasShrinkwrap":false},"0.6.1-unstable.80":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.80","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.80+35f316e","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"35f316eefab395c1ae2c1a279dc43cd8de6cdbae","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.80","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-QpGvyj7Nl54To9da5HO3RYq9EErumXY3L5Bic8+kk6fJ45CJpwbcGtZ4ddUey83zAx+FAhEJ37umwV/O/1Ob5A==","shasum":"2e96aa6eb9156b7b5f6cb8c1e392339f9841785e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.80.tgz","fileCount":26,"unpackedSize":62293,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICTqK8s1oeI+1j16Vv/Z7/6pY8NQ2T3kPEkdgS1IAKs/AiBQ1Gb57xLgc7o4At5zlearfopVw2E3oF8QhSC+xDsIZA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6igYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZVhAAlzh8DBkUVIBfB7HiTyJeWbF8cx9YU5t0MyrjVfUdVSS7w9jh\r\nGfCJ0bpNq0zJzQ4R+4+xbLT7EiX08yXFXGDaWDqeOcO6k2xuVag6hhccpYKa\r\nXRL/gWf23pfWwuQ2iZxpfBTr9j8tvU/iSgPn220c5arOCoJIIZ2j8V6clDFO\r\ns2ZI/mctgYc57fvfJFS324Eiqc5Mnrsq5hAaK4cyyD1CC6nNPbPGobD2O1sm\r\n+Jd7zoCHRT/xcFMMV+T/9SOZq2KKIaTzSEc5e99cghvBC+QoME0gfFz5v9Gc\r\nieEnQPXHpUA+oKpvN6PRLIu2HaYmXi7UWh2CA4jNrv67glyhCukFHpsMuL3F\r\ntvwD0fPGK7/QYGzX6UAB/yrFZ9hs/XgqxhEexSGgHYrpG/25IqOT2j33kOZm\r\nzCgmXkIjiAlPfkeGdqwNdPu+rintLao1VAHcouNmVPUZfWTRYUOYj/BHOq95\r\nNtCOtQHZxCebdNu6wqgLaIw2MVS+BZ5SwS3YEy/InRrQEhpVJ275y1ma6K68\r\nhLWKXBBmCb+FVF3XnOQXVzPlfnrRiFdlVGEsEo4BTWR1r8HyX/F+j0f48g11\r\n3HmKdiuSg23CF6ZkLMA7gXSLp2aB6vEjYwqeGBkl+1skTaLczErxwvstyyWt\r\n00KvHQJzF04buRiJ7Mer31j4d/Xa17lNpoc=\r\n=NiLv\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-connection-manager_0.6.1-unstable.80_1659512856743_0.5053989891360311"},"_hasShrinkwrap":false},"0.6.1-unstable.82":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.82","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.82+0148dea","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"0148dea6b2a782c547e3e453bb933b300216ffe0","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.82","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-hspHcq6Ko6D6fvrM6M5vz9iBYQusjtf2v03U7FwVTNQ414OJhdVVz7T1c3dVaHQXByCxp7vkq/TIFkclBtt9vQ==","shasum":"c3d8524f9eec3fab9d49066211cf15aa95ff62d7","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.82.tgz","fileCount":26,"unpackedSize":62293,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjxqb94jvKur5cYDlGJwADwadZ/TGdXT/HM6vyS3Bp8AIgQo5Ul/kKCkzYcqgl0k1hZgNJLK+dXPM/7xWFViU9l8Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6k1mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGaBAAgBrO0O24UmFeht/vKu8OJmc2denv9FrO9hi4bijBfuwlGBOe\r\nfsvl1Yd8v67uf8/hK2SU7R+qahlmyYNH8PoQRLz/wYyz8UAvJoA3nvgzLQJj\r\nf9JdYdejwY0LkItOAB1Nf+NLTm3SnXWdakC9b9g8pDPphljArq90DY6if4KW\r\nG78LkCtxELoOuxx5Mp1nb2Hia8cDc4FM1SwXSR6A9NqSejZcCTgYCg47zDGG\r\nJJr54b7NPz9qDuhHsfegHPUGFjCqt9OBkVNlXRkGpUX/TaPAZhm0KzXshZoq\r\ny4povmEqr6PAIvlQ0TBZsci3+ghsjhz0uFQnCp6eR45rIES+cjr4SDZY3Ge/\r\n4QDs2nv0sbJeSc3zgLx+hw4bjd14oaqPPWMtvw3bNRP2IIXXv5WThYXaEOxv\r\nDhotz7VLC3lHfhpyg/xYYFhg828cKpGqS+B8jtN8s9fW6LeNV9vlFo1NnTvM\r\nuuI2uupvKD6UbhytyTngYs7FcPSXxRhoVCIOPjClupLdgQE+yC7iw0KCP/nq\r\nfjJzHBvVBMDiHbrB5rqne7S6MwtzTrdsfYmcVNearQ7eJkppX9ay0paTAVql\r\nMwxOKKoMkAhNrU3khfK0sHlJjr2mbb15pae8i85k9h1U22h8/o8o9CH7tngb\r\nrS1aG3XzDwszRtcTFpZsGgor5AXfk1zvTNk=\r\n=Ab1N\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-connection-manager_0.6.1-unstable.82_1659522405865_0.8316562262894818"},"_hasShrinkwrap":false},"0.6.1-unstable.83":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.83","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-core":"^0.6.1-unstable.83+996ed7b","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"996ed7bcf5955afedc71fe6bdde1fb32200aba3b","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.83","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-gB/WALNj6/1ZhPKg47ufLV8JsQ662Knwei5ZjKXWPwiiVZVa8X0b54/SqXRKqXZlepl/ffnNgaG6bzjSrXr87Q==","shasum":"536fa8b046d7b458c0bbd976ab04fa4629ceef84","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.83.tgz","fileCount":26,"unpackedSize":62293,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFxgnDyrhXP9d7buIjEybk/mYNRYC+NbTjmFYN1Gz20wIgILGB7r2ETZoCFCclyzpOhV7pqiEDeIS2qztWBjNYCkQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6ntGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosLA//YuPAilDZLOSeddv/UtvmsmUyQZ+ltnpULHZJXapS1N1AwDiQ\r\nVF9CllTC5sWUNp+o8cqYab34dB2cjtOsL3zo0DnX2bHLJnKqXyselPD9TmUg\r\nCT4dFdIdAOXxfLEAPB3clV22hTgwWzdiqKk4R3qN6VTZnxQzgoWUPrhQra9l\r\nLY48RCmsHTL3k94ffL5qHDNmaPJJgA1eH/eS7rCEo3B2nQKrUTi9neaejRkD\r\nKNABqFeTix7xFyUk1EJ3+xQnTzYDsxVHV1Z3PSdNUZWYfHPBSoYR4Z6PWzCC\r\neyVo5PgUNYHUcz4LPgusGN8xKbkI8xDum1WRDBUr3XQmyq+mkMwfoUBByRnm\r\npuq2mbFxGkqR4BjwQz7uHDsl3TBTD/XsqwWtgwQsz1lgvJoWMrnXwPrg9ark\r\n7QxHzaE7QSSg4tYmob5vpGNYi0nKxjvKyne4jJ1gUt4Yx9V/CISSH8OWAB6I\r\nJm5iafxRSBh7SHibnByFk7T8p/Ts/yvlbJSonXgQ5ExH8TMcs1VazgCV1PQ1\r\n4gaceM6F8YG0fpdMPtnTdvpdSvcgaGXC493/dnZ2CbYsBdDLJSeyOWyxKTts\r\n1My+A3ZJjvLxrr1XPAZoROdYRxFARLbSqOnsB15xHlNFQrKp0J9oQjtt9UNi\r\ns0vXx09FkbTInyduLnQaNyYUT/8SYBbU7wE=\r\n=oevE\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-connection-manager_0.6.1-unstable.83_1659534150272_0.8637348204172592"},"_hasShrinkwrap":false},"0.6.1-unstable.84":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.84","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.84+d4b7207","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"d4b7207bc5a97e97841c9236b8dad1b6cb6bfafb","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.84","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-qkD5xmrvZnyG7y0ozLOmIt+MqTtVBRNZ8GWl9kaNQEFg+125AeKnj2I8sQRiz4aizxQNxcCHDmYqTKbCx2fHxQ==","shasum":"49ab97347223deeaea6806fe891c3e198d969294","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.84.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGyKs9+/xOVVZ4+9E8PgJofjeNDdKbCOqqmDtkQPBrT1AiEA88v1pV+mJQw2BZnOKkA0d/UNIG1sAqLVJrnSaPq0RHQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6sGbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpP0g//VycO8u12/4lXt4xUGa5AUbENTjBlpHxkiJ5MaVeS//baHP3v\r\nKhkjAhe5OuePOIIWjT9Zu58dE8PbUFasfGClCgrDZ/scejHmDBvpY5v3JNhT\r\nfy2IcPqW7Qyl/k5o8ZrOfxF20b/EpiiUnS+e6scV/vLhYJTBwq/XqQFfmMlx\r\nBqkLTcgKVFnGrXeRaUNl9bwEoKZsO0WxPq7Q+KtHQkvdq07TscRe/qfs12HD\r\noRN6UrNzvT0o5PLg/vpov5lq7q3w3EpcSoFfMsA3b3od2648yp6dLsX8A7a2\r\nEi3Wrhu+Tezst9sA2w6O+0AvE3HpjWQwhd6ug4rX+MUB6uo0ZlUvvsrAdtqE\r\naMUOuDz27kRj18EhmAvFXIa7f8gvuZaSFoTHlmNAHT0iFebo6XAC4XeHnMWU\r\n+gemb/HrIbLJdYeMpORWE8KRD36Jk76w7p8Dw7cbvuaaKJWTV1TBsKaiab1O\r\nMPPFG2FsyEGlOJIYAMrIouPGQLs8nPopksoybdqhRNykU2gcrvlL3Qyw4n59\r\n1gkgHulHWh6K1ib6E74PBSQ0S7weSEX2dGAu6UFwXpFuecb21vYWsDi56J6+\r\nL3GyEQec2ah567voudeV/YTyGceKREwjjEA058fVaoelSPIFxAFXuLreHVAR\r\nGViMeLNLjRVVzp13d/pdsO0bPB7QK/1zKWs=\r\n=XGqR\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-connection-manager_0.6.1-unstable.84_1659552155337_0.4289457012324034"},"_hasShrinkwrap":false},"0.6.1-unstable.86":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.86","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.86+974e837","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"974e8371a30483c7496bde1acc3346bd8f86661f","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.86","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-rDOxZMuE/s9Kr1Fnt0oaD5MSGpzFeGsRhIZwp5MD6CMzs0goSs9wyEZT2v6SH+XYJcStk0zWm0OpU+1oeSaPiQ==","shasum":"ff5ff2c5609de87977efa8c44d7af267127f5e25","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.86.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa844v/55aHd0Sec2VCKnBjQWVZe8VtyAHgOTHtiv7swIgaeLxatHVjQWXYfVDsWSC1lTN11AeQ3knv8m8KfmtslM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6sQ8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzuRAAhpOWlLKlWeSvYhzma/zzjrBF9VcrZpmE9zjplnR3vk0oISjD\r\n8YE7cgKz1mpaAE3yCziyWZE+rn79gPU/8eqEIaDysnugiw0OZy7pX6c41DSa\r\nhyAAzbFNdMhnv6VwGoSyaHcHms75ALhSxdS+Kqft+pSDdd8uDWxwmFfDVAUy\r\nfeLtf1B5XIo6FyzcKdc9iyOo/dl6/J6h4QLfOTEmQLTyaJqfRfut1NLjuicv\r\n1x9l+MPtkHaMpu8AaJ3gdqfJ0J10Tkkt3SD1TCKf1zvaxM9ctlAE6eRiwkaH\r\nmOev51SQ+bIUZQqykVdXuQFX2TcXTmb/etZ/yBSbBGJRPAHWzUBhwPcjW4J/\r\nUTU+btiYZd7DMFB1DQyA3kRR5SlZV0bfi4fUVRLWm0G2tJaa5ccop58dF/Nc\r\nWA0TOouhCthzTb2bwmkl5PAIdUW2itrmla4bzJ5s+XARc4xZIAV6c6b1FYMX\r\nfGHF/B3iLm99xJ0cPGR1xgoY+v+Pfz6rrgRkQtDSHjFqQwXxXkErIaGz46QH\r\nyS9Cmj0p5hyIHw2CruEX5e3ACYI776bNRLTwMKGHM8tquTvjtbrtMu/iNRC+\r\n4DgCmjv81xY3h+F3GHS61FJ0nRWMC367kJGLpcsUb7QyyPBPffhLZRC6TTjn\r\nGOqUjb8AzgoW+/dJSUmxCiyRz9FUrE39dpc=\r\n=3ykg\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-connection-manager_0.6.1-unstable.86_1659552828078_0.13617319179301912"},"_hasShrinkwrap":false},"0.6.1-unstable.87":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.87","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.87+86e6aa3","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"86e6aa3b5d64eee0765b6b0d8a049dd3f2b5d4fc","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.87","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-tsK+x51DgVvbhLAtLF46LBzVbMqV5R6V4Ly39ZhN3QD1ou/Sas1UnWOLpaOZVExF26fM5qXXz8m1sDsB+0+K6Q==","shasum":"98907b4c1c2aede82d8bfa9cc43b64e3dc44be6c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.87.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHwtWvyPKkh/jRFg0uMqnksHEQBCU64BLiQ6hianmJb/AiEAzvwH8FwzrqGG1YroRIsH/V70YbLgjW/xn9pf+EahVXU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6tVQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAKw/6A7R31b583feCzUwdnzbFZ7Pty0IrKxIqDWcSiCuKt/CN3PKu\r\nvZ4cbuv6lYmFa6gn2tzEUBrsPXgOJEMLpUOCshzJd1N+KWTCMvjy887UP5QK\r\nclDCiH6DeOAGKUHUK9ZASqdOiYy7GIT/IVL3pgQR7537UYDbRrTRWR8MVXZ2\r\nokpfq34cPuJWi9fGN3toOHIrIBnVIY2yVtJ59tAtjlleSJTbNS3aFmJZlgzQ\r\nPKGO76E8MpqrN4N5295dvEoZXTyHTSm6Ha/vYdHRKAPZVyhXUmqD1G62Qe6G\r\njjE5RRKglM2QN6xR/6gh6i2d8r2b9B8FlNa5JIYSBxQbBSkkC7p8/IHvqMWn\r\nGgRirrQGfEI4zti85X5SPJGF2vwJls0bh7B1JrTMIto9sG69Kz04ypuRk22c\r\nmiEdgK1dhww76LLyBCyXs+QL3c4Z10K1Mk6CjOH/I/lUjFz5yDfNYSz4TBuJ\r\nRFUgLl1+Xt400rsrWdsd5Sqrp15y4rymFiBMVsX2EE7oqXR98byEDMQidgkl\r\nOuC8ZRm0Jel/u5neAFI2HJ6NwWxfnPXa3sZu/lql8GCuHGXyRXEilF7zbAyT\r\npPjs+HK+0jXTvI3WIUHLHx2V9xcUNrMD9bCqyZzWxoaYAHeQM7470zbTwfzD\r\nYCxzBzqzTYEY31hL9elbWqitKJL2wxGgjBo=\r\n=brUr\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-connection-manager_0.6.1-unstable.87_1659557200481_0.10765842766074463"},"_hasShrinkwrap":false},"0.6.1-unstable.88":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.88","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.88+5367e34","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"5367e3400bab10edefedb6bbe710089e85303e7b","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.88","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-Trg5LLSex1pL+rocphaRnw/cL7vV3162xRQl3PZdYFL1xk/5Jn8VS6QMxd/3H2Sc+LtmUhpsoiMVElcmoDVoEw==","shasum":"31374bc71e4f89c31e94abf203c70f338efcec00","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.88.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt8FsnKeCXHNNQWMSpjbKq5MudYkeWLdUSyOMg/ynSswIhALypU8xutTmB3f8gmm4TTHyB7VyZvpOQYUYdSZCSYVYB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6u4MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNwRAAosAd9ZLWyA1YP16FLVZQBacdEZWUAo79LvyM5+YygDzQF9Mm\r\nzNE6GYeKEZgE4k4c1X3kFl+vHl5w9PR5Y36VXS+/VtmrIskD9NqpdqTco8h2\r\nic7PO35EpGRhrrsBUcaDdv3AgCOzLf6Osu6g8hA/MJWWGLrO0bRt0U62/Xtg\r\nMK0QSuEdiQjlNvdJTVYzDmoNrQzPJtFnkE17zx6h3mnY7HyTJgjzfe0Jr0MU\r\nA0Z1YkIp8+f1Y6K8zqB9J899xf3/J/MxEHeAb6oC1mMlEaufml5ZhnDokbu0\r\n3lsSVlHYVvh+9PO1VJMtAczwoAxwvTe6omRVKl0ITHm6arqmM6GFYb8Wf2AZ\r\nOZMUWSZluaNCaug58FSSomSsuvKdL2HVpG4zvWq7v9ehvaBiO1qQvCyLEjlG\r\nHnEqUcmiFYu1QkaUm5Je53pmcUC0FfqGobw+M7ydWZKNwW0Stlhcj1waX/AE\r\nLZX64c2DCKMR4kOH6CKFgYu6YESmPEBdhMDEtO9LrBSOXegzaDJ4Zre/W7mL\r\nynYdlwvGrdTLFCeq0aQVzYYzEe8NFLiJDBzS0CuMXNEitm5+qbNynHtmq7eu\r\nMG/lnRB2KMD8sMiMLregXn/PB+VITDJJLLOLG45wlplv/6WtX0HZNf1vyyO3\r\n/OMnXU30GiLCe+M9i0tgXYidQWCh1WlRjeU=\r\n=W8Zl\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-connection-manager_0.6.1-unstable.88_1659563532129_0.60354300613366"},"_hasShrinkwrap":false},"0.6.1-unstable.89":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.89","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.89+9acad48","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"9acad48023206ed51a8e82f414ea5dc7892884a0","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.89","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-9PB2xaae/cexsK6/2PuRLjvLVyk47ouBxYJ6v7a14QmOx4c3Dldw0HXTWdk3FyZKzoTYlrEqAkdHojkt8jEy+Q==","shasum":"401a837993505d04fa9b935bad59912aa227574a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.89.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHot+TQLjOaKhKst6MUwHPSOTh+tji4uRabSREU04x1KAiAGqVNm0x3zFtpIoRK7oaLJeHX7I2Qi2TzRuoa83Zg3fw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6u7mACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoxbg/9FUwoL0Ue1iH7TCAo1UP1/6IB8kQowNBTmyr2i4Uy+cfgoT29\r\nNEYshU24oYosJmSACkLlzZUuAIYMW1pNZeINeO013dsWZ2HhUlFRn7L+jz8L\r\nKv6YkUZVBupdy2jFkxhjh22l78hrcBoBD/BD/mg/u/iE4uFIWzeiDXPr0sN8\r\nUjfCGZK0YYCtNUM4pA3w5GexEKIse8DRcPuSXd20KM6p4GSrCFeWvtKl+ANf\r\nvQg897VIH1n1+dhVqrMjuw+ICzj3td8WvdLbmEVPxzpR2CLWJ6GkDTwA7+Ne\r\n/O8qUX0oOipcseABZCdtUuzMyUW0vTm/QVtQS+7NPbGW8L6R+p9OALH2DHmi\r\niSIoWr1fKLneVLvx7MZq/p1cTC99ngDYPClZFMXzDcmJohZO85S3P1npkcJC\r\nCUmatKRDjbK0J7l1okl1EaqfcxmykHlkYJFO2MwIXBCvwGq7T9vTPGHCWzhg\r\nNSUJ+Y0Utwp7znjdY3DGdmO3c3lpe1XmlKT6rrhSUWEHONsaD90d90heYiKc\r\n9zFWZf87YdMuXxKX96aWffc0ae6Cox1UVZeOh8M845NztBFBU+Kfiwv2G52C\r\neF/m7tQO7JU3J5IDTze/RKpm7YuuWXOfLK+0RsKoxuYktyfViB9Wh38j7Km4\r\n6gX1Gz29/5rmD7bh3M5zHO/sf7zZWdd2vxU=\r\n=dtJu\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-connection-manager_0.6.1-unstable.89_1659563749860_0.2842702842552507"},"_hasShrinkwrap":false},"0.6.1-unstable.90":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.90","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.90+13f402a","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"13f402a7a6a0b7820c7961c83460e77920950b23","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.90","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-JxsIPeyv17dPfNijbHFYreQTDqkYZ1saXQ+GZdYR1OhAQyl2F48God8Ds8e0gyh3B8HChEyDgPyUkV+6wsETWw==","shasum":"0a4e2e1e2c39bcb22c57c062227089ffa116a8de","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.90.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCP3cBxeOkE4Sz92JbsjXkUwNtV/2YEVLWz4+OVLr0iYwIhALD3jMnJ5tifUcXwcNMaU2nEAcPtgSUA2Edoj2BdZDME"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6vIdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrvvg//SYI4DqZgulmkjD8FBHIlgKJMqXJbK74bWkm739qyAKUZ160H\r\nDhiFh3Pkzitvnev34y1CqXiM5fJAM2I0XGfl6qSvTK7D2fsTT2+9qZd+tSaO\r\nfkKZfsA/AkceDMv0s07Oj3fVmDk1cVnlyQLqx68bVHDSCaOlpRBMpSDGpGBU\r\nEP7fmfSziB0FUM4OcbZy6PNWIo05/0TBEXIh1VW1P5t4th441eSeRk66Tz1F\r\n19W6kUM7EUVSsY/mlm0uzk6xufNrAx4lHneV3DqXTRg8z5tdRJ006iX7bk24\r\nFX960QtQr+I+R2I7ri2gTiYYolq2DCdKHxSMIpLqkrqJjwWCxPQNUmG90VfC\r\njFz+8bftWvFlncG+e3U0jDFSKYHgGM0kyM9UfGFx0JzN0Wsm8fi5gMPlc6/Q\r\nB5H53YbtbQ/bkR3BoTOoocxCbtPUj+BPEgr868W461D741/8JPS0gznQTodn\r\natpITLbFpJfskqj2mOEbg2FF+QoedEwguqva0OF9KXzocLDyljxLZUv/0jvk\r\nR4D2YSSYKDBpBdBv4f9BAltbvNCLkx6Z23dqLzqaw0DU3YaJobOxZIWfO1Qv\r\n2MJxQWhVGZuphKFdlSQvfX3sXdrrYxwjpol2e21lOZtjQRXMWv5JkIyn0620\r\nlbrOyuL2wRgvvbQtJXh6LTQT3/jV8KtjRkM=\r\n=C7uD\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-connection-manager_0.6.1-unstable.90_1659564573637_0.3200515553430643"},"_hasShrinkwrap":false},"0.6.1-unstable.92":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.92","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.92+a0b2849","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"a0b2849209ca15de97eceb0ebee53c21f20bff80","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.92","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-SmfgKsecpg3zjv173VxYau5I8/9fmhp2tKZr7N/N1w6E8LYN4PprX/LZtWn2QldXpyz1L+c4/8CfSIzD8iCrTQ==","shasum":"1753d7cb39c7db7d96b74b0b7a6f7885c8889845","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.92.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGJCI04N/7YlgIeeK7NWh1ptPDQ43Ik/cst/NYLH7oHlAiEA2PE/YUvy9/eonjpxLTVc74sErj4pfqO8DMRMFdtm7I4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6vX2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpG+Q//QH1KDIn2sd7XZG2i4eZoIc7Mw5u12iZHVk+GUecJf/BHrHrV\r\ncLiF62BYF35I8IR/cTjurC0ijb0J0likiETwIOWkm3Y/hrKW8r+rcqeekCf4\r\nm2/CxOHHUE1Fr1bkPEE6jRt1Sa158YlE3XwJZOxzI2hRXmkOPqYypCsheKAa\r\nphMXF8jPQOWhNHKuCoahBGLqHfOlqoDF9fjOHKJMuW8nOoB4zGNAqnr9MTwt\r\nLUkX+e3CsZv9eiXq1Lna047fKPdc9H8HXoH+SZPf3pRnvAQSrWBhWYqBCahU\r\n7tjrFZg5Q1jsqmP0iazFYwsEfYFSHwO7D8QRW/iMOmbuhN08jmaDFwkAQasH\r\nSeuzmHfxmMjsimnKLYLlf47RYkYsz7T4a+fh+PbosrrpZmgGXiXWWvuZaAwa\r\nZUmkt+T5VmFHQPp4kCM/DDNOJuZR5HY0woFk5/cIAE1rdK5wLDpSck+Xodc6\r\nOI+XluBBYOkeE3O8+u6XQnxE5c5KzmYgk7FCIJbTD7wq/uW0DXj7mVwFqt8i\r\nEKloN+eVwK+ckJCAu/gt+uLYYgqCu8uVqBakhzPf4dIgEXa4yZits/y8mAv6\r\nIKI1YEmysknVhsPtn6VWkPpC8Gr5BKWX+JGvsGu5J0qn4OJ236AJXRSFplcq\r\nT7yjSLdSQLZohzCqdVjFouN25m0FT36cwbk=\r\n=rECd\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-connection-manager_0.6.1-unstable.92_1659565558206_0.47546103335962897"},"_hasShrinkwrap":false},"0.6.1-unstable.68":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.68","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.68+347272d","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"347272ddc49d8bb065597a9f5bf789227fa5051c","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.68","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-S4YBzPGzbCksDlKHhI4WD2gaqavht7u5E7geJQ/uqpGJqP2iKdlLAlbHoudN69OA4ysJ+vFlPjAH7wN706skDA==","shasum":"0ab7104c6176a120cc754246ed8264738e29e5b2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.68.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKQ8X/++BfehYEUNRBr8rEDWM57F7Ev/KeSKn+GfOI3wIhAKG6rYV9Twq8nTFf1BDNg7h6/+CPdZ8x74pViNtzodkK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6vZoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpXIw//fH0zb6BR/2Tzr9/6o/h/ESjzZzECH5Xm09iwRqeXzP8JqVsB\r\nV3+79OeHftVVBI+oxkK+etmthZtEKv3Lzd5Py1uGCw2FOVtXqsICB7wmIFUm\r\n0geM+dFPVLm0Q3gShLFC/pRUSv4av3X9MMEweYSfQHvLeCWTV1+D//vdKV7Z\r\nW1lvTdnE1vJnLStzXpYYutzdS1yktJbDwfGEOhuzkWQPxm2jmf1A4wMXEaJm\r\nrvioIxOSoZMRWSISpH+m485Lr1mvlPNOQ3mi21GOQsj9eo9c1IUl7i3/wFsO\r\nmH6cDwoq+P4JsO7EvEGN5schzXdhyzjo9bbtci0LeQxL2O7yl4N4426ks78U\r\nYd1sUbf9elqpjLzsfWc72tQTPnh/Frj1/NVJmpXBPNJTY2JKWorN2peb8OPP\r\n4q2dpOT363T03+tYa90b+hveBG6i3YiEWYnNgVZ8PxpNlaxpIuSd4LFkf2IJ\r\nVrgYNLJGMIuLsKt2XQ2FbtxOnOG48B//L9nyOCpSTl7ZFLSA0XfKAS2HvBih\r\nii5AZOe2sbYfMemxJ5H75pXRn/jsugbf6LlzTswJXfxbYVsFO2l3jvA+iGU0\r\n3VHogINyQfDQRrfdjRYXOmjoIc9qGYxkBkwLAYKj9vXOIojYanfr6Vk6iRGy\r\n3hI5SwbPIXahvsvwoTRJgl9q93HJv4dWEMM=\r\n=zhoh\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-connection-manager_0.6.1-unstable.68_1659565672773_0.04054061935010411"},"_hasShrinkwrap":false},"0.6.1-unstable.70":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.70","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.70+0d608ed","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"0d608edd8a515687ecd4dc1cb612cd8a08474429","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.70","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-/31q5rc2cN2t7/pKbYcXmnMHSwzQM5u/z2r2NVshHJ2Jsyrp6lREYJwl+mHzDofvg22Uoe7SI2a+t6pJK+n5WA==","shasum":"e6bd87b3dc19c2c73aabe31c411b25b39f27665c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.70.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBB2Y3bLSfKDahCBPgAiWisVTKJk8R+bh+lxYC2BgvKpAiEAhftxTplgu0OalLErtEkSOybZWYs/Y2X5RkSC4x6NJzk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6wctACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBFQ/9EXxKpK3y/8pnwFcik+ZWIQrA+Tlzwzz74u78xvnoltN1d6Tp\r\n99hnIeIr5Cg2i8MbnkAtRrKLB1mvDI+vTxhHUPuc2ksvNLUW7MRzOLmHNmY3\r\n0R1b3/kNi6b50lEgzj9UU3B9RvWOyFJDHG2mR7Wc03LT5G+nqJsZUWSeJhvD\r\nenw0QXpb+L3w36V2Uuvxgg2P71ifCWh5HCd+nYy5MPjGFAqP2PPDWK+J6K0d\r\nUWjn55W0+Qo4pvqAEAbSyVWKd7A05PNLkqwu4TwlaTezOXxcb1/kY/6Qiejp\r\nLom5xoncXI9yUhsDn7k/hur+w/YyX8XbbAPcYQll8+5e5+ZQ0/LY7/fb42m1\r\nQaHpZWgPjwJY5Jf6Nv6UP3KvsLG0D8YWDnBwV2QVM9EiHY4k461AVL6pt7Fd\r\nlAN4ILgWwN6qKYkVHKUhNG3c55GBZfPMp3xBVrODE+nFeds4yXQXLmA7fhsZ\r\nfI3SPrE13RXPrE+YWkWQzmEO41E8FGOE31gfTCzU3G5btx5BSCaJb4evyspk\r\n8hrYqKbM1aSBuWi1fyynXAAuiY8JKm2Cav+kAmct4lm5pLyMCEkWITP5UfP5\r\nWJtW7DdeLMWsG8goFLR+LvKkWPqBR8b6OthNpBNLK4aHq6cgfzswLlOejl6P\r\n4WtSwsLvpWaL4rxFTSJEG9+GoVs/mC9IyS4=\r\n=Jk8D\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-connection-manager_0.6.1-unstable.70_1659569965466_0.2638059162985753"},"_hasShrinkwrap":false},"0.6.1-unstable.71":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.71","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.71+ed77957","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"ed779574438feb5fd4c1927ca19c6fe41366e71c","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.71","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-kAPxxtM4z8aVBeiY2Ec/metRiIedACqspt52Rk1pbKgmY0R9GCBFlm8cHJ7V4QcAHpRj2QkVdnjC7KUtParQbA==","shasum":"8f45d55680decbee1f74343771d11d1cbedc53e0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.71.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICZ87hLwH4NHVMCq5x6Ypa7FO/LqE5WnigTRotPasEIQAiAf9ZIlsQ3rb+aOP2L7KX7FPgrqVzW1CunifqidbnM6Bg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi655zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosHQ//b17nBh74W+4qy4G90U+YJP09D9p0x9JfqWRRb2ZoYaOGzbHf\r\ncs8qfteBi7huViU/rrt+I6GHrkMkrecWrnuPGOxbu4y51BhPFAusyMWqvdd6\r\nDkGKYczKwRj8Id5xAsxsJwarhxWlYHDrLtnXw3GhTxfRh1wk7guQN9FF4z46\r\n25ksP3i6c7T5MqjWoWoxexQp4NSnvEdT1ptq1BcClEczhBwfat6S9rYVVjYI\r\nDj6D2l8/Eh2K5G+VSPocIPkOcEYfHX6ywHCSpmnaYQDxKsGJ01Gx1FRvKD4E\r\nP2eRn+HFtmIt1eK6Ceyf/F2ioOB5KyvnngUOx0GORK2PeZa2xAoCND8IvyRN\r\nZxf0Qy7xU4ncbvpoux2Ez75i0XISepChluUaRecT+WTTlHUi+x/oTSb3b4jF\r\nJrhoYdSU2eqNB06agT30mBJon3p2KcfiQzBc5Dp0D2GZ7lAgXgkbjgucsgcv\r\nMoKkwrCfOcFVcorB/1bx1WxtV3eV0dD1U2SshjDNoE9kVqt+G6sa5c1m3qbQ\r\ngMzDrxeJxTt7zNJuAPWQY6p2KiPPtjyK2HkoLn3dndmrw370NR4kdnVSsBiQ\r\n97EXAtOGsoFt1JKImi6RMBe38hh0l8WGC7UvLeIA41ZW0dgGAD1STLMcTg0r\r\nZzbQEM1+4NagaQug41pO8dL0EM3mMORjq1g=\r\n=pmrv\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-connection-manager_0.6.1-unstable.71_1659608691257_0.7770015244272537"},"_hasShrinkwrap":false},"0.6.1-unstable.72":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.72","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.72+f1bda5b","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"f1bda5b441d8b27fb883359124dc4f68748c6e81","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.72","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-qT5XBJHMqfdIlot7MH5V0rB0JjCuaUkZXVd7H7ht5/+AKgXI2cwMi6x0o2wvIciLPnigo2yfZphOgGHNboNjdA==","shasum":"81ec9211c126fdd123036f22482324533b9ee476","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.72.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCo0xaLatRAPbcJbAzA7LT31R05eesGwlGn+qL/3TToRAIhAO5CVGe3IW5CKkeAqsxI7z+8P+OQIXcreDeajzgt28FY"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi657ZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSvhAAiLnn5bIsIVKCGpSpUKbHxd/xdgwYN4Q9vIFXy32ohsCENvwd\r\n7nXfz1gInx00i+dWMaa1SvwBjnM4KiReMkwxW70pQAny0zP0XvduwakQCJ7g\r\nqPPLVMAivLJ/+00jBWDdl8NAdXW8leu1FoIh+Y4IK1LCEawU0FFWfmX9uHYo\r\na7au9eEZUTTo3ctpIMbznceu1bpZb/CpXnqfkSlt1w1TJw1DyhG+kPrKl4rR\r\nxXiCGiAeEoWh/dtnz7lAqrp4m1h2IKczOmWKpvcAjTqxKvW7CNQvAA1VP8vd\r\n/Has9NogLJqXEPWc0QjIvpHfMJurkM3rHhvOxZxrMVm5QiyIh3HfEfl0GEQc\r\nCUpmxKM+lrWGy+OXu0irDDaB7vC2HXnOGB4Dg8oIZcbqNVe7s8ARW+6E3B7B\r\nu0Fj8dXXynAnQiEobnUKk8lC7OQuFUZxIZytAzoOnXxOtpxhowQvHA5//B9l\r\ny815544Me7zgmpVNuJxP8aSE8DM86HbdJCc3NFz5T+AsCfNHwnWds6IZQtOQ\r\nQhBcf2xEEyUK88cPcSzRle8uwXf2EuPIvfmOt6lF4dhNAEFtXOK8phtgfqEL\r\nGhSakI4clikidN1DcCoiOJjeTSHvRaRXiyma/wHY+BXIeCiCGqan9Dmdvmzv\r\nd0GoAMipnqAmMD8CpLHkNYgvPE9ed1XXZ1M=\r\n=HMjn\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-connection-manager_0.6.1-unstable.72_1659608792855_0.05466290515616645"},"_hasShrinkwrap":false},"0.6.1-unstable.73":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-unstable.73","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-unstable.73+0b45146","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"0b4514625e2771a407dca9a5083d18eeabedf33f","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-unstable.73","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-vVuJldpANCtEtZvrIzOAk3OhUbqsscXOk2Sh204CU95fNShKfOAYBtznZDEcxMPEIvcOe95excksfSJHKPpc8g==","shasum":"02cd0c319f83abd16ebed00414ca0b39a9116474","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-unstable.73.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWavEXzfXoUnA8C0J3crZ8QvcHKfvYMmN+XiUvCX/wNQIhAOP4YoPvQRMScrcJzpjLYttKVywaCIDJfkMT8WiUaMeF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi659HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrfhw/+N+4Zn91pcb0rwU06Y3OWJ4DiCo3xEroY81Ll9KIQmrsxR/Wn\r\nCgjZ18ohOtf51nnmkYDBQvfhI41Hf/bFLRYCE4UXPF+fALulAn+a+ztTgp4b\r\nC7QEc7vdl3DRAfeM3qmO16Uyx+n16kYqPPekhLotizYjAPrcHL5RrxjQhX3N\r\nEcgmmCOjsj/KVCEhqiU56fTiS+DNcEzqH7h/+D6p4FScgP1nuoZ8bXeZE/bj\r\nfiXQYQqjf1NRzIgnxmVMOS6kKVEOgXRtXNDpLzYTWiDTSV7ht53GUlC9OZFl\r\nTwePqSEuUatJEEm+Bn9t8tYDstCd0o2o6ctbR+MS+D8rinr5F53P38pwbebU\r\nmAQLwIIw1H84+L5/w1iCJFF6Ma/LdM6lGCV2gIM1fBQf4O4HQ+PDyle4MkxF\r\nLkO265P7VMfB1Ch5ZnSbxlDoLhPYUpCN9AuouYjoQMm5OBNMXBPiVaM01qdf\r\nVREbJSjtvDwENvggWyMWCUvbKHPUGPTJ4Qm8map7kyqzpTgRZUfyxtHZIyZk\r\nyQfvjJzF07CG+cQatsg/sZGTTX5539xZPaEofK+FS7nm1zdAD3HGRifpy783\r\n/KRzgzUZKWk8gJIwwbOblPAPKcA9JPcgjmARuO8NBpEPdreymYA9NZr3Py/U\r\nxY3KNjOKLW+7p75Jo1PVG77NFqLJbCamF9o=\r\n=oKkl\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-connection-manager_0.6.1-unstable.73_1659608902948_0.7738855206258057"},"_hasShrinkwrap":false},"0.6.1-next.76":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-next.76","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-next.76+d3987b6","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"d3987b64fba3d460639893ff6664fa6e15178458","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-next.76","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-sZCYOiY96pXjz4uyNcmQO/8CeXTy0tcyGusD1xNHgFKxpAQlQ7M5DajGjOroVB5Dakq8pFd+qr5XBmHmVC9nWg==","shasum":"edc62c39827b74385b1892dd9251ded5714229c0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-next.76.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBF1QB827FAbhQvihi7ZX/KFu600r3aL86alweJq+6EHAiEAhGpL+z4em6296+dXiOkPlytJilJRky7QY7/aan1a3+w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi67CWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo21g/+OWKb3ONys7GEyyxSibnk3uFd5BEqWs3nElYyVKHYpiVV+hqc\r\niYt2+JtMUG2BcgRLnxBuUN1ciiAl8L3F9pHZqgz2Yyi+89ybkKMnqti3hbD1\r\nsA/y2qd+jsGIPqanZr6U1KepTE1AGIBo/LzROaqBW8KkNy+xdQGgsmF1dxgr\r\n1UBwCM68wImEcqmorXC/5TE1ncpL/BONm2lVsPgplgdjNLBE95ocxwsytNLO\r\nogNQJ9VA1xjXcRqMm5wexekMPdx0WFhCp5W2zhUU8mKPdPEBlosmUN0SyRpL\r\nzBrlCfLS3BV/Yn2fgSuFeXyXaA3P8hxJRBlWuUHlVCs6act+5ulGl+HPIlsk\r\nxf3T+c4ATj6CG0jyF3PhcBr7eAccizCbs2OXFLUgi8lKcrwgLBpQFPu7urmu\r\nPxVJmkOHFsFoppev25ThVJPZOtrtXgk5ZHgC/z7i0dcQJLAZyVANUNqteEwu\r\n24o9dM6QIQ4rrxmjZqAo/ogagyDZ93BJ4PUlFOaqykrdlX4P2mnEFWbPxS8+\r\n3/PgoGQe4yoKlTMX/9HOgzfH3zFrf6PEiNBCXAgbpx1DX8wG6bqx69Y1KXYy\r\nhDk6pfWUu1o94zNLCfaZiq7Ecu9uZcFJvnAt0QJlPdD+IrFS1hTDVKFHu7By\r\noz16fMDIySCASedhTXPrlYukTtquYJiR59U=\r\n=kYDt\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-connection-manager_0.6.1-next.76_1659613333846_0.45152285913660317"},"_hasShrinkwrap":false},"0.6.1-next.78":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-next.78","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-next.78+1583f2e","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"1583f2e5a7807247270b60a7e551f2fd2f8d8030","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-next.78","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-XDyhd6CNN4yJ9IFx4JHmMK7PV7d9uefnVQM6GhSv22Ph+RmFm8KjlOwddCZDgy6OCQugxZTGG3ZW7OvnHpLngA==","shasum":"52eac44d28211671e06dc28fc2619d2fad789161","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-next.78.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsWv1M5r0hjnRCHoMJGDXxlcGYiQgWLp+TIjWRuEhGtwIgSvVSeckL0k9P0eFTzxRlEnNJW+TJ8+FLkWi4xfQUd1c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7UAeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6mw/+Ne/vB1rxKZpDFOor+r1YhMSnMqFQZF7qSzoXQR38kjcT4rTB\r\nPWeffUFELzh5PFgltDnRuDjEC4aOQ3RUbiuvO/o/JYvDWND1JyDnMvKcr4rb\r\n6yM3aw4SvqaExNfb/sPOZTa5j+PliXfbjTJk1bRQmZ5Kt2C4TOyQgIUbOFsm\r\ngON8VDFdJBNFQVICoxBurKinNVBZQV5LiZIKD6dKVDqhBB3ROROZ1DrtLovH\r\n8G++TaFc9TPpffMVByfA5+d89D1npH+DoIuLQSOokVv0k2TnTu3cPv2VlP1n\r\nNUhCNTwfVaRi9nK9oWm+ZUGF0Uc/mEHo3yGkC3scBUODaE90ShSmj5A6yV3+\r\ni+qEG1C5hX+vEj/RBT80T40TKC8kiUEDSznszCql1Nana5OU6AAxK6xK22qp\r\nVPOdRdRBtnArjZMOqvgpQlfWvA8L1wqUKddILUX315gj8Yv9R8F0482fL6na\r\nqcx0UP2aTnDW6WdcCBe/cw873SCpyRStdm+KplRXIdbru0GhifyOs6+/TVzw\r\nY/kEEShJsdwe3mUpbZ1Ad4ss/U0F49bNls3KliAi/q+gB0leiB+ovApcXiVc\r\nc4AYLNg6W+U2OPtZH6gGRpUs9rgRb6GduOUrD1b7x/nO/Qmy2SAvFxGf47K3\r\n7L9frA62xi8g2jUSzhBti0+75J5VpCj278M=\r\n=lSve\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-connection-manager_0.6.1-next.78_1659715614116_0.14397808334194884"},"_hasShrinkwrap":false},"0.6.1-next.79":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.6.1-next.79","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.6.1-next.79+69825d9","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"69825d9f539bbad080d96e0f2d1601d04d583bde","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.6.1-next.79","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-4FWeUfxXhuqsBGZqFea9dkNxGQqrFcgVnvZOq0NaGgfQxgm7VPqPmgekr5Hyoq/Zeg3HQZgBIpA+r73OWjSyZQ==","shasum":"fa99faca8884aae740980e0702bf187148ef7432","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.6.1-next.79.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLZpR/wB7kGa4qQndNdAfAQ6Pay6uPSlE1YOQ33x7PewIgFGQmS2H8Fxub7KSCvIJ/KGDHmxceJ6JJxcxEOH1kOAo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7UGhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrxTw/8CVNIJ5NdXCrUcdTk3i3qt4YYokL5cOtoJ73xfyi6xUWAJMB/\r\ntOnE1paZ75TVfMr9Y9y0ZkJ+K75hneHQHh61CZSAEPwSTyYjis1mIFZYLkY2\r\naZuiew4OcQU3cZvsmweKoYwovF2FZ+xKcLfc2Rdm9DzXXGYeoglWn1Plg2zm\r\n4ncgFhpaFupddA5XgAAdIe/PGojegHBxn0uh//4uUhxEC6EXvoxVdfn5dN/o\r\nbmPtuSUSllpND53JT1Zz/mCSxUPu8LF1/kxaXUds4PkTSYMmOBVa+oQznYyo\r\nwZOPZOzo53ASYwgRzUYYogVwTFDFAapixAvwwM72Zd1hrZEj1gCQVUq+8AH2\r\nZhOsHjv+sD8FhSG8191SwfpjoMccp8K5f1I8hXEIXsbqOa+n93N+Pqj5vKk9\r\nBLzJKPUzaQryii5M9abQ6nZ7nUKUvrLctP+0TufYzq+lxtWoM+F3PxExRsue\r\nfqTMBEZ3vifoY6WTuQ5rHs+FFHiiix53ZnXUUiFX6sE2emnuLlXw6pGJKAPf\r\nfKSwZmSpBLdnoYaZt3q3pCwXwvUXnfMBWd19R9sTXTCpbnGt9vqfgVp6Lbj1\r\niwuBJhi6tKuc4JFYqnFtxidUZZtZrxeGGR2NNu2SxWbp6jSJ4hYhcbbSbft9\r\n7QwiXJQa8NXTNPPmeizP1AWiSnHwgqeBn6Q=\r\n=AOH/\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-connection-manager_0.6.1-next.79_1659716001304_0.7955794527238111"},"_hasShrinkwrap":false},"0.7.0":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.0","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.0","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"c7b02995ab00955811f9069296fefb492ed64e4d","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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.0","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-Uq8lAoFrvhWhIHBBe+L5pQpc1mcP9lxjTKzq0tYaFIGmd0Arkl3WnHRqau70qKKfiex227zqxupa1vTgBiTGbA==","shasum":"8ef43e1d3bde3614f5671e4dcdbb991079a98e59","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.0.tgz","fileCount":26,"unpackedSize":62266,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGc0g1aaQu5rGDH+OCoSM7vLPTrTYN9ofSt3KkDYm2F2AiAvvmy9AyLanLTgYfgysRme3gEu9Xk71f3jji689xQHyQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7XUOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp42A/9HeKFhHUq623goNKFXLhgreI1ew9hV6LiYaFf/Y5NT/7YZ7Sc\r\nFl4q2oKZbKHo3bZ2BEJ0+MbQOjgZikQ/w1MWbH5a9Kgx/rFDBgPwE8PNL4eE\r\n5GYECxDlJaH/TUOqDThaTGlG/kQkZSsr3U5Ch0ZZsGCfoykZjydfgjOeM6Nd\r\nV3575CSUq36M5quWg2hqSYd6+AJGb2/2GPICiXxEaHnR+D5SfRDDbbDzX7uV\r\nR5QFDpENcPiJgPJ7yUxOxfHHj2Xx15DVHn97Rc+/NGteZ8YOEfildWb3h1j0\r\nNFFM9p0QM+zF3XBZfVBKE0foszKV3RlQSeKo0gmHrFFJhKNPg69aHUy3GU1W\r\nvDfaLW+wvvOS8FG1WX22q1aUJPC6tSNVMdfPm/7FwIJ9YrWoZ9ZUUJZYTwk2\r\nZyW6IDBPg9FfkCdNsR3gwTbdGcOLmPVVYnQJOYQeQT6JfAFUaGDpWtQSGWPO\r\ni3Sx3lz3ZqxSrmPLe8RNQELUnOi5inrV0holpTgcVhPgwMi1TwQJBVCv0HTu\r\nROrJOMD+90q7mUsfZdKmfYIq/3/9ZNunfNC2abRLI6cLRnijcsN3mNQYaa0x\r\ne+B342Ks1Kl5xczmN4VEBegswhDTtrrtY3UYge/88NB4DH6tisdFEN/Eixb+\r\n60yd4T+njXLnkAMgjc7vx19u5uYqnikNhg4=\r\n=gTXP\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-connection-manager_0.7.0_1659729165946_0.6438765873355983"},"_hasShrinkwrap":false},"0.7.1-unstable.9":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.9","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.9+760f456","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"760f456453494b824c2d7a95fe2b7c06494f01c8","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.9","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-vS5YvLJ3Etx0NrAwwDjuaD83gupEfvWu6AYjEO6g11N7WXW2vLh3l8UbFPr9UlTGOQKXPSs+coEvFar9ErSckg==","shasum":"4542ece9ea90784bc181a9a6fb67620f66f8f253","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.9.tgz","fileCount":26,"unpackedSize":62304,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGzxGV1v+LbXsxYK3Sj8rIiXHPbLCg1wBEXOsgjQca/vAiEAoK4hw6U32jE9k8hc3+GJ5QdlD5fQSIAlwnjdImnCXrU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7bWDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmouLQ/9EnkXjkrsWu72vNj5aea1+jyKqPEMWWLQmw/TFqKaWpWlo7FG\r\n3RepQMUV2Cr4CRhe+ipK8XXCOV0TOitMy9WfbPVT1hD2dZdzDdhd2Jiu7oer\r\nCzec5oHy0GVxlrDX/U2BOX13ith79fF51/btMFz3D1zKaQbbXW/TWPo9XPYB\r\n0eD3MRuARDcU48w+43k30HxM9rpEkvpZ90YGsb9cge51ufMdkTIDIvbeSuIG\r\nus/JusFRy2IFWlFmDqsz31vqExDZrKOCG1BiSHcbkSHW9HSO9MbMmSM1zmoK\r\n0PZ4tXEqIhqMA7UOuaaFmrbQZ7sWq+mthYcNQERRQAtC2aV+cxyBMVxrOlC+\r\nvSsJ6ia7GyJLnHKFB5/14JxPo2H1lLwzPc8TXmdLpset8EqFenOINwP//cH1\r\n2MU+2Ii/0Gjhh6289WvXT9rzMnp+WMyOZ2RHChpLnn/vhF5Z1FIoUr96E1Og\r\nSDQGCjlrjjlf2gQxn7yGcFaFagHGJkHMYIgpgxCjbfwAAf7ezY5hnjPnLERp\r\nR/SPyGqkHG6APMM7D89hHwIHZEb9FwdxKLLZC1Ysijnmwm/JtrnpJgjZcBDG\r\nM+OVKPK/EABZFPKvSRheZE6VaUbLChxNedq5/gcIYZl0ZDt/5gyL27l39K+C\r\nLViqr+t5fwUivtU/+Hphvn+xul8Xz28Npo8=\r\n=F1Bc\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-connection-manager_0.7.1-unstable.9_1659745666962_0.7080990711425539"},"_hasShrinkwrap":false},"0.7.1-unstable.11":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.11","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.11+c3ec119","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"c3ec119dd8eff1aa095807a90ee5a4b87c624098","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.11","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-xIsHb3Ls0kMoIwCEsWMlGGB39zpP3B0XpwVj5RfbG+zC66Z1Kqi1ejUP5gtlcz6SesQukUvYuoFdGJt+OUqT2g==","shasum":"6de5e0112d31ccc832e676b68601da2ac5f1f5dd","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.11.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXd83MIyybr2rlZa/o9mlTsMYH81fACFTWGvkGJusD8AIhAOih+31Wp8r9LyeYz9VNoXh6cUOxydc5ng3matZklHuW"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7lYYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgIA//Z3jf42vW7cqKKvQutsYOaH465I4+58av9jBdQqgLOt4v+DnR\r\n4a3O3RPmWYON0jGiOr687jO8E6wh4TmJqLu2S1PiSReqhBfumVR2w8A2/6Ix\r\ngKl5B6NfM9SAG3timGTwC8o1IP5YMDrqf0SmqXmpzscvFPIsNfYQ613c8y4h\r\nvTLVOUqLcef7Qusr6175yenA3C69/BvIONbVMkbVRtxVI74LdPDktou/ZuC7\r\nDM4tRdk7VZiR5HEwE7qvauWjesui9zzShX0861DWIoN7ejY2AEYgMbfwRVkl\r\ndE09t7bXRogr4Z0hpXwTwfug8Iie/u4rAiIyLasVpHuROeyNNM4ecPqUa6GZ\r\nG2nMbZMDLx2l/C43IO3cWO0XlzLhBdEhD72z2AZGhUdDbcDSdmkTw1UxZHXa\r\n+hEojQn8eEzoejcvbXEJ+3SG6fLzdwbaHyTtPWqzuGCPO0zwW0XNpoLRPbSV\r\n85Ab1+TeintPR1Tr6Gdhafwhti4bvIMZDiURAYotxC0xz3zHsojcxNEYcAGV\r\npdV+vKgq02CdB9N/yWf9rgBPoLudc1a8TYo/cOa2QvfmK55rsBjTAVbOCrPS\r\ngaazEWKmpTTJdGZeVQrXKpVe+RLU9sKAPjiF7Ln6b1S5xgjsfTW8MZTTSApy\r\nZJ7k2HIDkvm7UIphb+3YxAR7XhQ80TQeisw=\r\n=YjJJ\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-connection-manager_0.7.1-unstable.11_1659786776516_0.7359981795168689"},"_hasShrinkwrap":false},"0.7.1-unstable.13":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.13","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.13+c74fb25","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"c74fb251cc3afc16bcac92731eb0fad114c6bf0d","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.13","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-U39Hi+M3edysujRXez+HkMVG3JFvcfvC9OM0EyEdTgXecspgohIWuG08uUbF97zpo3yaMisPfuUTGwLo0cYrew==","shasum":"45f688e9dbc5e0334fbe3b99516e6400410897ff","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.13.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBDie5BLSM99umfUO5YtCtOfC5fvuG8BifwOSGYc+ODAIgUUOPoqj8ZObOVmJ6BqFKWWHSd0aEuoS5QAGdY6S39vs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8FTXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGtg//YSqK+60dbOEHhUXY5K5xUG7L5upXUj/NUcVYIMFRbRnOnm66\r\nDgCMB8a13J6m9eWE+B0ABzfIQjGIIFDMpNxyCxuUtcD63QrNBRdIYTn1MMzV\r\n1lnm6J+IMcwhBEblv3U/ej+hHjPWzfyMk//kg+N+4rUs1ymWLHVHg6y0613Q\r\npE796OvotL4EqpRnRLUOtUNVkkapUp0Ox0EyZs48VazQ3toX7R1+imgJe4i6\r\n8XmxCv/ItZg9z3kiyRqvgvg1p//CkDA3G0x1lgpRH1671vBXDEDg0xNH/msj\r\nBaLLKoVFg45AZ2RMyEE1v94R3/W54CteS4OIqxwChMRLVsdwy9ikZ1iSIY2a\r\nhR+uz31pEV0r0Lr5B39XoV8wZSQGf0j/1FNwXcQuqSYsIvbXd2gUF+NMmjb4\r\nutMsz8DYHovLB0PvSlG+FkSzLNT7dzLjcaLYfHAVoxGVMuRwWgtoYlQmbvEb\r\nH9PjerXFOBx2jABBmiuuTHbfPKBrBAMCk2lclKnbcEY3IgyDhSx+alNkIKUT\r\nIYya98zcjM6PD0lotF8MYPuEWXuwVoF6fbgDp2MPuxiL5tPtwYGzVWWZi++O\r\noeOgINjLi4PYBBXgKKlSySIeXCofbIOYkB2rj8lJUCrIZkO85edEFZXzGncw\r\nuAc+kfjVlSQq6k4f3vilrJ3Fy1618U13FEM=\r\n=8LkI\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-connection-manager_0.7.1-unstable.13_1659917527643_0.7494500307230427"},"_hasShrinkwrap":false},"0.7.1-unstable.15":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.15","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.15+3d615ac","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"3d615acba0695472d9581a04966057bf0f78206a","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.15","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-K/QSTOfBQ2yJ/YlAqxZ9APbOlgcBErDrlLpTyDPbgg2N0IFtE1wHfWpXoDNQwMlB9d4To1IZyvZRoONZMmVCxw==","shasum":"15acad8458f0a0e7e01be81d59f5eb78201c7b41","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.15.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWKjgopM41qOLt1mAhucigIzzZSVwvZTLXSm2WXG9veAiB5Ipq4Os1BgsnmEG1vjyZTfEEan3CWN82/ZYLG+W4APg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi85dTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdZg/8CsocC9Qh1lC6KkmHyjbLqMI9jdeyePJ4k8v2vbCywbI8zu2E\r\nGYLQNNlo+1X8GztxtPKIyB5LvEpNpcDUukIl92oy2d77rXDjWD8Hqwa9QOGP\r\ndv7sPRKTYyksnxU++3QlQHvdjX5h0lI17dFm91oK8qx2bsdyL3TsVmNr7QH2\r\n4jZILjZ3wVcPwK/f7xSgWzyCe7XiaiZuoEGlczsoIQBHvGVASNuXjU3B3bMZ\r\nRAetqA54YoQ/AcBWTtUg7SBGoppEIllZG/g6H+sQyQfs7iDf6RSMTGdlhZSR\r\nxH7iTz55BpbHzxX24qfPVfPK2ZtkIR87tUej65fK9RySvP93sH+CtwKTYwO/\r\nYnF4KmSGbM6PGDQkbnG6b5doy9Ix6ATss64tHxVFbkYBx2r6SCuYDko1gfFS\r\nO1///Vi6nHw1Zz2rEp2XLRpEk8hWZwuwmd+NVeE0SR0W0FhCSLnrYysTGp16\r\niRm+d8Qm/mDY8sabMRiaGxjK+jmeK30BCi9w8qG9o6jhBV+5BnpJwYi1ZSVU\r\nY9ImsQx+QbKvJuQmpRoON6UgD0qXlNsXxK5XNrs9cuw1iKcC+dr13DYLBJQt\r\nSN2nQSusayn3DcaVehKD3r6j04UFvBEa6dvP9Wuvo5FLKLJjHl0A12bjsmvR\r\nrmqOXbSaES2TKI5C7bgPYDKJEs0oznyKlkE=\r\n=vjth\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-connection-manager_0.7.1-unstable.15_1660131155519_0.2141505135696038"},"_hasShrinkwrap":false},"0.7.1-unstable.16":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.16","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.16+e2ec3e9","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"e2ec3e9bb69c59f9546b3eb874ffafe425268261","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.16","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-psZFA3uhTFRwroTvbSKgx/upRnhjuuXNfGfV0YJwaV1UTwaLKyNeoYiCYnR4U6eXhDL4yXMXDsO1lCK3oMxkcw==","shasum":"1f586c719717ac8419e3398a7a055e701ba079d9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.16.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICKizePxVM1kcLDoIDNxztat18vGStAv/sYNtAlXCtsbAiAX1b3BFnmOYiZoROBZVgGm6F5Q01iymBUCkOAaxXfM/g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi855BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIMg//Z4nx34dAg8b/AAuhvK/nc7vAIdjWVcSfTCsDI4k4XD7GIWpe\r\nJMW0Yd0A2VZXHL3iIVn8lHssuVYN529df01IOJkyK47RhASVgXoNOGQAP8KY\r\nqiKSI7uV/yQC8HEotlMmAaN6EpzluDIiB04vfB1YIk5A/FGSsg/mzE1Zdhky\r\n2AWspr3QUQiViMq2tQKZA2DITpnvUSMnw8xiGgQ7eLTUtWfuES5f0D0q3xiK\r\n6nhIRbKDlcRB5Xe7SNrJi+6YtRoLjHEmpRxVF0vTM0TRstUqQ+iDuhHAZhOu\r\nPEevRJCv4IRGjOQ+s574s5hmol84Xji0ask+Go/TIsNOJVLOVJzrT7NgSmVf\r\ndAV6lc3fsN5EVjEV/P00nsabLQi7ZocYeMiSFGg8YyrSJfOGTj3TM6BZ6VyS\r\nUSIWyrw590HHUooHE/BNWuRt2Q99eo38+dH/4MDa20+Fm+hAxqAIpmqSKAFf\r\nQb0rKbrh07uv58Mb9mJX7czbEYRbhuv13EGldL3bITMhrn0B5y0gk7/Dv120\r\nsReHS9oXpKutntAA6MmNqRkEFS3Qd+KlI7tLC5bX34eWRsTOC1iUN4Tss/Zu\r\n/WO/rBSkJ86LwTl3LR370Zy1gJfWCDePw6TDAhAIGaWS4Lf2IvUA0osNVCNw\r\nhRvhyw6xK3xThhI3fDvpsxxuZa6vxmrQB2Q=\r\n=ZPjn\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-connection-manager_0.7.1-unstable.16_1660132929641_0.6401773698300648"},"_hasShrinkwrap":false},"0.7.1-unstable.17":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.17","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.17+9046468","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"904646897b11b117e143a4da57fcafe2e0fd76f9","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.17","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-msE0s4ZnvAOe1YEwnSDzlMDZ8jHsCHwy8KcssqxpcQZjtWfpl8ZmSh5KrM5v1VSl7mCcLQlRTip9Noq8r4ueSg==","shasum":"b7995fc0cf7dc9b421cfb4f5bb33a38b3fbb5bfc","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.17.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/7tQ/NZfoK2py2twgaAy/3kTwd+FeSX4UkirIOCjfzgIgI01l2qgheh/06TPhYj2ofh7H++iI+Ej9lz1acwSfE08="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi86y4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEcQ//cHHe4HQpXI74EvL7ftBWddBRv/K6CWDCb7Aea7CaJrl7MgXu\r\n9DoYUl2dnpTyeD7fqZ3wH9mEvG87vagW/isETqB2xLwCchuY9QISGHv9bwPo\r\nrGeJ6+nhTdO66UvngsyJMsE63P+dCEllJgArN81aQoonrVvEBIBKp60HSZ+q\r\nbxUZTmqCvuuQ9GHxLizC48+jnkmgAzH3ixn3l/0xBaDq0owljdxG7gf+b5+t\r\nTP3GPsDzOZhQjhgxtf3CxYwwYsnrR7S0gZYvKE9G1vTNyeXKTpOIyQhIreuv\r\nE12Gfyp+H0gYCsdWQxVh+z1Xew7TLF54nf69OTo92JlIZQSJhoNzeXx7UgwY\r\nAvEBi27tIlfvpn55GpuKa3+9E58LIkdRrvHydPLvePgsELn7G1QiHpGwTKdC\r\n5isGNfe4exy+OQahWMEQRQPCBxc0zYHT1pwc/oNV7H+omvIdC4dC8BIgbM21\r\num6ZKWmkZCmOifTc+N1SeWoFIw7EWvMoHfhnkZlSNF2zs/N5lJ30Vv577xJL\r\nckrJt5mOPO/RyPihRmFxMM+qJ3C8EtFRxtJsjGL5dlY9Pn2sABzKFOY6wfsy\r\nktm1SWA2d7ZDMDzVdFHduPbLN1VMCEfBBhfwvlM/e40OrH8+HYyaByOE0FEA\r\nK4oiFT5ScvzYPMWpDxHOVisgHNe63MePgFw=\r\n=TVzP\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-connection-manager_0.7.1-unstable.17_1660136632753_0.5994727371067827"},"_hasShrinkwrap":false},"0.7.1-unstable.18":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.18","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.18+db658c8","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"db658c83320480a98f29310b5289a5cb53030e07","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.18","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-oL+vKJU8tNDn4YyuDbk56WOWPB/PVDs8D6C8nmjQH3Kmo2OsJCYdrujQcYaNfui9MYdkpdH1C+GxsG6DOszm7g==","shasum":"4a18677276904ad8d887f5e3587aa13e830950c4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.18.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAVvpnbF+K8eNtgAkxuA6iBqLIjqXzAlGhJD4q1kD4OHAiAr3gimE/6Lx3sBTbBBsZ4I6tmHAf0SQ/EKb8NFeJ9YNQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9Ao+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4Ag//QawDeeP8qmZ7Gjj9vkVqsLRTNAV1R64Iox5ISvsM69fhmxdw\r\nnmilIrFruOQ7PXs4TEwLQux3/SqrMa5CuUnIZtOpatw7ntsoypYTWYRsfsbi\r\nASTyqhcW1b8MsfnjWrryMffJSppvWAZa4+jNWpp/+6yHtIhjbQwLJAu6uACk\r\nXopbtIPscO/GAkZG5QyHE5GJLr3dcUpUo3ENEY6BVQ8jJV74QF2244eejHfw\r\nurRwlQ0jYr1BBOfimXtksQ230W2nJTnflomIzDDJEL82ePaKG13T2B0c0n2T\r\nSZnPZEuHmS96U+Yb5dbOU4BmILIzbZSLwYiroxsYnfzL6tefKswrg5dhBVVi\r\nbITfC8qSqTFxv/u9061yFcnT5KhmzD680BdZcpYkMiEA4dFuRNQjBPJCrW+g\r\n4CxRXsDu8Sl3jei/mj5gJ1ghxSdppXRX+frg5Ua/nRBBMrf7VCmMsagrom/s\r\nhJVodTFeCDsZGRb/O1ldriVU/kV8H9X+pMmPibclupwX5kHobfYpLHcLsBLr\r\nOKCerc0Qm4FY/5Oaj9gwoTCsr7uN9lbCGzA1tTlgjvizy4FnmEyBrqXZITNQ\r\n4fD7BUfCCUiVtxH9ZG0Svbmn3IDQ7ip41jdIiKmw4EK5HLIP1aNtUqiGykcK\r\n/Iu5+7REb/vWv681jyJVk/0RFehIujB8Dls=\r\n=ntCa\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-connection-manager_0.7.1-unstable.18_1660160573998_0.0051409199751160095"},"_hasShrinkwrap":false},"0.7.1-next.18":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-next.18","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-next.18+26f3ede","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"26f3edef541a35242769a076a8d630e15bd2e03b","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-next.18","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-vZgr4Kkc+M++XdVQXIhRymdjsGs1pevAbQWEfoKYi0P/DcgC+W43eLdlLw2iPwTiYZ5/NIalMsaJKiYNTmgZDA==","shasum":"3dfdc25c8b7810b0bd3b4436e52a52349df1feaf","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-next.18.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMzLVD1/07EJsYs3AioQYnFoffELSF4tV49cNGPq77HwIgTHDJjMUUy6Ry8tv/ullgQIRGyBHw28rd/1Aj0mSgFWE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9hFVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmooAA/9Fq0JLF7zEkWbPELvERT/PHhFJhE1u+fVP73rVbY64N5uVdEb\r\nfdVQB59wqzRfqmM4rKm7kkffwY39WkPRGTIJkf0vPfA5OOQvzwk2u3VuEj4z\r\nR57Aw17/sqMxn8uZdQL2AlgKbV1j74ICQ/JRCVMuC5sTrf80Pk8u/bmolkQ+\r\nsp5AkDJYcihMd38KQ8tMXiruZc7uKO0YSb/UEZgPyKsz0yLV5ktGakqlSaxI\r\nXPFk5ECOa5kndd+kW9wwHDnWVUSRmlbt3W926PFmp2sGe9iDZodULVk+Wzhc\r\nlDmCMmSQNY4Nu/AtkKe53iFKfHdjOD6q8czOhu+zX8brWg0wqOamDjVKIXOM\r\nkx/7QqArCFj4dJrpfr1dzon7893360bXrXVdEYS+5rhJe+ZshDIG7gNJQPp7\r\nw7KoGxXLzeAGmm1iyvcB0R8T6pY/L3UzCl2Upf2CphFVMMe99bWEXUciszGp\r\nTYt4MS4WbPO85jPBWevjqkXHkPms1YM8Ffhe8yGOSZINcuCs85n19arvMSjT\r\npoHx+za3xX45MMrvtNw8vNV58dFxkc0AAhCb3ztFD5Zhhqfcqj2cs0KW1j/J\r\nNs6Vl/zZCqKN+lBUkIzg+4krsJj8wauuo2rOWyy4KwMs240liwyevWbAWZ88\r\nqNMjJY3bIetHk6Z90tIS3cNZ9LNHCcfrxBg=\r\n=RwuJ\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-connection-manager_0.7.1-next.18_1660293461740_0.053621310914306664"},"_hasShrinkwrap":false},"0.7.1-unstable.67":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.67","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.67+4f3798b","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"4f3798bc8314b8a08760a15fff94d3f9b050d72f","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.67","_nodeVersion":"14.20.0","_npmVersion":"lerna/5.4.1/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-Tq6FWgyM2mkw0KoBktYrTPij830uAt9RckQmGc6K/er3QrPeRvUE8N42jmd0uHnM2A/Z5f/3JIlI9LTzD4X/Ag==","shasum":"046286f93ce892a35a4c099397d44558cc9512f8","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.67.tgz","fileCount":29,"unpackedSize":74433,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGZzNrr8up0rd+E4ofStJXGl1QfqDA99asG41xd3dgo9AiBAVmMyKpMKPy2dikqIDtfZEkbPbjF9iysQ32djZQ+XNw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9oUmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9BBAAgVuCwg3N/YWUGDv2OpppEu+jSa5382vTRM9lhbJtytVIkIqy\r\nazUNH0CSxWwqoqih0FXUWQUcrNxsSbyY+dsF3NsjbhGEzgCa4qy00HwwoRf1\r\nk0KNfY2DyHV/BmUjyo+x42THp0Xg/ZhWYW0I+qiSkgSkRkIetAU+ImIrrKkv\r\nHo/xqeFocSDGoZ17l3v5YpFAuAx+2NLKxgH/eOzq9yXX7h8Cfc7w2o6hjhjk\r\nkn6SSaDNDOTgSaHDULKzNf5CDbuFFwvN+5AiTIwQsJTMrSp73tc7bLm+eb0h\r\nsLcwFU3J9s/Ov6EuwXx544TPAQ8wCewDPRSK2E4QeDL4Ms+3Yrg9akjXtuuU\r\nJklz0gK4Xgz3OI7HqGx4pwbWZUh50Hg2Ed0z/TOe6B4iKuwVvjt2KoHtGRPu\r\nHkskmyEWjSzBQPEgSxy8pCwbLDhz3YC0e1zSR4yvI11QZvTO3X94QfkSVDc3\r\nTYwxZemlA6d91d4Bx1blpkm/oXHoEj1X6hmCZ8hPJyaj1REa8KT3FsIAxgXA\r\nQC4/1elpDZYdBnZ+J3L1aLoAV0nCatxUdQL4Iw3qeah6z1nVybqQJbFnagPz\r\nfXxOZnHGm4TF2w8wzM4TsUZEJOf/SwJ3gEonkdiEkY93T7B1ic2luoM9QJpF\r\n2yNxv4pF1a5poaK4f1mH9hLjqIn8vh8WcJA=\r\n=18d8\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-connection-manager_0.7.1-unstable.67_1660323109933_0.10727999770062135"},"_hasShrinkwrap":false},"0.7.1-unstable.39":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.39","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.39+dee730b","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"dee730b73e2c451da459e244190a87a6442a83bc","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.39","_nodeVersion":"14.20.0","_npmVersion":"lerna/5.4.1/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-QsvXQ3YHoAHllL2osUX/Aep6NSbi7JmsooaSCmVJo2YK7NN9H8hgaeRc3AFCUMNMczNNrXhF67N0fukUPBt8bg==","shasum":"823a43533bb4eb3be0ceeffdc26c65ca395a8b12","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.39.tgz","fileCount":29,"unpackedSize":74433,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFOubogwNQhM5G74beQMXGLP4d0HVFBgsqFBhTjORF5TAiEA+PZg9DeBjxNERPKtPxyRZU6kDlsh/UnB/3KM4EC7ZGY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9ovxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoARw/7BeM2lTMiMkR6fVzhQG9E8B0D4hj8Ek1mJilthBoxSCfJ0eTT\r\nZ9ObkeBfmtWfadwGdiTg6tOSpZYjSKeUNZ97av2PGP9o6B0CoE2Xqi4IJQv4\r\n48v9jEwWyjjrXvtD1yBwK0sPvr3Gqb7bftNIoG5TYsAzrr4obyIXySQKYy6t\r\nbYPofQqql5eNwVJEjgA7tNyCp9OqalZVS3YCCoAeUIGjQ7vCJszLVxxjcdY7\r\nP9ukS69YGTcio6StiZcmPw62CvFrE8BIgjyi4gui4EoTXVmGSkivBiUvTUlO\r\nFMrdlRIzlZzxmGe/8nUMDTeTGg/1hhdL0IbcAE2bQknOf9y/+6DuYiY3HRrt\r\nMidu42FU/CWuN4jd8BBw7r2eF/bcuUGy51ldZ+rB3orHzRBKSajIeIBjWfME\r\n9hZ90yfpsr/EPtcYjiH3MQppRXPZ9GV1XaBb8k6wBZ0JzVKxYDOBxzfZQl48\r\nZcKUDIeTxc6i3JUUqrvQxj2i7uAEV1bmYactj0Ex8Cb0nWSads8P2YyAWKEz\r\nNX+xAORcfK3hVtlavsOFoFn4CGjOoIjslYbhAjfTO2Y1kEls8DNQDmA4KheI\r\nDSjEIRhM8bFiqAod8y4z2TIVu2ZChqo8pLLl3v/Y4Bf4EGX4EQrnisUMzlG3\r\nIJ3REmC+1P7RIeOQARKl/ZZb8LFIDF0tLdY=\r\n=mRMV\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-connection-manager_0.7.1-unstable.39_1660324849632_0.08773130392977047"},"_hasShrinkwrap":false},"0.7.1-next.38":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-next.38","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-next.38+e6783a1","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"e6783a19e978e7a14225987522ada3e88bd61c40","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-next.38","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-bmtSTovn6tLm0BE5JIXApOGXYslTbuW1MK+FMBAhJfLiGdd/t9UZEe+/S4Voa/NVqHwmuqeDnRzCyGwT2ULhoA==","shasum":"eb9187f30a96378f955feb6b1447a90bcbf9e007","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-next.38.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwyz/jOrrZxF6n88oegIEGeJeJwelNqPUnkJOMcyLbQgIgHPWgNM7cY7ro20KhZX60a0E85TLtO+pXGfqPrMKK8kY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9oyBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoALw/+O8t2Hh7UpgqkUjMb4PvDozGGiGGW3s2XL6jw/nB+ktW1+lLf\r\npC9cXcCMRCm67/oU8xbnCGLc0TrbgtxYmuMQvdHVvxB61t8ro4mUps6Tu8MG\r\nMMlhMVUw5ZEaa46kUnX/TW9qTU0SCRbl0C0xIllI+bhPtKW561aXdgoAgXZg\r\nZwE6SctFYbdmebkv9x5Sbl5wJZxvKTmfsnAYCtooiVGFSgxy6UOEyuwHo7mp\r\nqQEVOy+VW826DetiH3NVDHNVI/9K1tCSApiDBryaZbOWkcu7xSWm50Ytj/TG\r\nLZXrO3Hy2Ujf+bWMXkobRdKYfS8lUssD6Ia1G8JEj6n+8E8am2hU/iQfeInD\r\nkc0WPB6glTLc3VqXYwD5BxzURgxFw18AFadTlqMJGpihwEn+s82+2cuiPopQ\r\noXk/Po7PzfSpq/aoKk+LXI41Xn2SBU4FdXfqbstXHqfLQX6f7Y7hcm2x23+R\r\nDtIRHHxHvqR2LHQ5engrxAsJU2Z+yegQUDiUDa2ofM5Jlf12muq/HGoISRbi\r\n7XybQnfHFjW90yUUEmsEvLqj0OGnZwaD4bdJMTmywaLwIuV2CcxrgBdipVjs\r\n0amCfaEYxRy8gJAVFFg/JhknHK3lyV2i/gyy2LLyQcT6wuZ/cgJEz+Qyn8P3\r\n2Qb4XmU+3Vczjt+Je3bLZmHdwqyNU9PkmoU=\r\n=xHsA\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-connection-manager_0.7.1-next.38_1660324993696_0.10069955898300997"},"_hasShrinkwrap":false},"0.7.1-unstable.40":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.40","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.40+0b9a628","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"0b9a628b4e313eaaf767154f862cd88c58b31073","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.40","_nodeVersion":"14.20.0","_npmVersion":"lerna/5.4.1/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-GekCvT3PyvpOacDdqnBb9owOk4CvGIIG/L2iVnDULFq9sOga+2z75T2rgt0jGqRXiPLwtbmipoDZbMg6P8iwww==","shasum":"37c51974a5af6864afea179020d1f7c8fcb6378b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.40.tgz","fileCount":29,"unpackedSize":74427,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCVzhZ7qwyxQMpwJplDyDYxC34XKVNsSVIH/AKPhx5M/QIgBXlMm/PIfwVuCSKBXlRGVks68/Bwc/QK6821maXBS7A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+mu4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5WA/+LjBKlYmAQFNBboLd5uuyllW5p0OUWdVY9QwTrcm5AXjpO8yM\r\nP91ab4+iaSeZX0y38NOtel+RxRR7QDsZgZwqbky68rgQ7mFlEK1v9v4nR+TR\r\n6jBEkC2kqzIoEnq8SnMZMNFud4muA9zOxDvflftiRkK0+989iF8BS3ExGCjl\r\nIBo+I64mjRpdPGcYvrpA1L9AhrBNWRxEnBNsz+hpqKacRcArFoxgAjcNJkFo\r\nWABr/YU4DMLV1Hdd6UuSkRCkuSChprILK6eEvtX4nRilhx5hC+UWtx1zI91Y\r\nmJaYMo6DeaSzYDsn8fgoze81WR8Gifw4iQpuJlhZ+Z968kyhv/IFFxzfRFMt\r\n4oDE9KWblZvVTPEtMFOdas2g2lzPvaYYIr6nOrV1ntU5Ororve6bSajtWX4o\r\niNyaOGwuQDKyfILRlX9X2oun/oKXv1p7aGQ9b8qAJuXVRrwxNxF/yXNTyFrO\r\nwsGqDDC5auu8/og8Vp/tpXbAxPYD0XzwVPao+NqCB8jNx4Z8RJkMvZbBFX/B\r\nVeOYh4Q+q8MPKKgfrHZx8ub4cRWEfDfpddc28wfrgc2n8HyLbz3ai54s6f/0\r\n3dvN8ekxZNBpCWRy/h1uSJyh9Y/1IE9o6KXnJ4UBm/c8iGE8PVkYLh9kwzVX\r\nmsqSS5M6yyGm6tUHtlKvRe3Bv5IdT8md8Og=\r\n=srSc\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-connection-manager_0.7.1-unstable.40_1660578744353_0.4884250751513186"},"_hasShrinkwrap":false},"0.7.1-next.39":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-next.39","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-next.39+2aa7169","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"2aa71696258eff9e8dd07217a6ed7b8c8198a63f","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-next.39","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-d7KYMLAZd2PPgz1V29xMFROIfoAe6p87+MwMJclreHDrzFAFifguRKpGjDrlkj5UQomWUbMeTsxRwqbSNRto4w==","shasum":"0e418b5109d128acabb2d94975fc1de9d90d3d00","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-next.39.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOmAZ0pOe3DbECcNWetD+YasZNVC2B+qNa35sjGSjjVAIgYMXYvUed/KaalEBYcedauiASkwDexKvkR2kxyLaRyWQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+m3FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqmww//ZaaEVMLfplo8v8oJy6wM9L2TcBA9qHyT4UhYP503XTXdc+c9\r\nqbjVNtGqY6/Q5Rzagx7fAb4EnejFwIn5UdroUvvlI5FET58TRylZDq4iIhpq\r\nHU9EwrUjzI7vjn0JP+VjxFBq4JCUnbyGQzXp2cDWRYV0/wWMuSL7j5eYYOuS\r\na0dImKai9oghYnTol3QC2DsY8nu6AHYAoyxlyUqCd/lRRLjj/wiZBOuhzuvd\r\nzGZnh4Y50x5HbYpNgmy4OPIeNOrvNOYu4TuayNePcGXW2N7wQRBKJnYf5gwX\r\njLCxORxTE6VAnxRyH0dZpLw00EOdbWqsVaUj36g2qzctca7wNET13bVfLjqp\r\nxN06hGIx3ledg6Sl37QBt7a/pjETuVacHJREqLBumdcWwdBVikRjtO7ihO2k\r\nxV+bPSvWzdDFrfvU22QMJSFat6nc+pG2NrZtxd8QydeWFPUbM1w93q1UUAxf\r\nfysGUnk3+uRORjhFoKAL9WPrAn5aUsOHucPrwwiPgZtrRNX8kXYpBi5G/FPU\r\n6Wo6i94m8s97rAn+8O8d13b7dKVaYC1MG503SkjKS0qKF77smeumxbZoKjFO\r\nbiIBGMPRo9w6lg3GpoCvek9eqY8mdm+vXwNa0bHiw1WQLmZMIEigQNXgroWo\r\nsEEDWn7yCrGgECKGC9DXCaFFnHRtqnDq3kA=\r\n=nkMa\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-connection-manager_0.7.1-next.39_1660579268951_0.8849679655767555"},"_hasShrinkwrap":false},"0.7.1-next.40":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-next.40","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-next.40+b9a4b43","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"b9a4b4320113c013f37e7a6d7304e461fa69e12f","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-next.40","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-n8rwYQOZWZ7h42As40zUm16GMBZy0fDdFYAiiLl6Q8ik8/gJm6Dow2VWOf/tLeP8V8ZS/1S3lSCFkNgURd5tng==","shasum":"e667db40356951de90ce14f2e6e452a428ac0484","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-next.40.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1grC35gfCWcsbrRxbj1ulb8Qz0MUcIW4VeDuAOEuq1QIgKgKbi7ZENCxJQWSGWHc/8Bgt/Uigme00MW4YE8dc7fI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/Y/OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpoIA/9FAqyo3XkfI+celEwvnQnsLfiRTx9YPXqqDwwaBvBfhYMY8HW\r\nwY9UgHYIYUDm2kmB2pA0N84um4NYj+HHeKhe6es+1vxZ1AwAdo5yV47rdGmV\r\n8AbWIcIHxG8KmmvY5rGExqq/hob0/261PCkf3GINGRQq0l0eY7NbY9nY9uGW\r\n4lY5OY+939vIU9QSIKMruEA/86JG7RrXo2M2S/XkfSwbWIUTb0ta4Mij082U\r\nNh82F5Dmbe0bXbSjvGUxGa8lUjSDYvYrmlDoxrjc3TQjoACYnc8T3c88cQN3\r\nJozZtwMF+xscsO7OHt0oloem4PKyewPHWns7WTL1gZDP3iMNRgikvySz6Z9y\r\nwcwdHMje2e9P8JpF0J4DJ5qMHCQKK7CEYz8zkSTjUO8IyBxhuTDv9HIDNpRt\r\n5ZnbVnLU12bqoQl75u6dR7KjzWSNQcFpsDLjFOKmYeXAvWZ5KT2ztoJGV0Au\r\nzEuJMNZcg/tlI9BnQSp11UlJnMtVeVvE8CR3H7VlrvAXUEHBrzpyML0NNhPI\r\nmQIPQOAiD62kqsRETw+Be7ASpv1ymrTqLG0BYzfRgxcU+NOfDOfHQviACvqu\r\nEMhT5Dxw18XLNmFFuBxWnC2ttO90WHQWZ+2v/8ol/owlSHD3biynRXbJrUqR\r\nli3RbZs6vmFUoG9b17QX7zUD6+wyqYXvpiU=\r\n=uwsS\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-connection-manager_0.7.1-next.40_1660784589980_0.8814435086404329"},"_hasShrinkwrap":false},"0.7.1-next.43":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-next.43","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-next.43+6389a80","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"6389a80e4d589b359af61cd1759cb0c38c5047e9","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-next.43","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-0XgqETEo4fMCRvjJlR/7b94xvQJksHKzhQxrNDb6s2dDqFgvfcb/rMT3+lmRz8RtMG4NRZlC6F3VfWRoxfxsIg==","shasum":"e94d4b0ded409c6153700d9e5cbf881350f5a69a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-next.43.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEfUoSEvm5/Hj/NEGBGDXSwDzszIhZwg4cSqXqPqr06vAiEAkRvpxzGDfDPilx1hEH9CFD1WMg8kEVIHJCttDkuWnOE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAXk6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoV0xAAlIDrjRs+5cuZl5uGIzPnzyiKC7C0LVWe0JoHHsuJoP1/LXss\r\noJ4/GuIEV/IJmt9PdcB2HaoraJRVxEIuE5b5Xt2qJ+lM3ufuiuekFoZu1FAF\r\n/tq8X3yScDvjHbrl5elaMPW+ZQZZn7x+O7+0FWx1gz1wEPp720WCRVnJHfBH\r\n2NyruNwcIXl1qInhieS/Dp27ZMFJTEydYE2GI3v+smAJc407fHKwc9ViWEcX\r\nWMVjOiYJ4Kxr5ia7vDm/kVF8FytYXNL7wpiPRqic2kUNILXyxgi4Ky/IXufW\r\nprWO+nKi1GUY/S1VscKFJsPG2p9DiJT0UHhggt8Lhn8jH7US5xvPyXIstnEv\r\nX3zymrl1t8XE/OSDoQyMifQ5PofXyfIlwH9oOrdhpKLsQVquZGigVozTHeft\r\no/TWeDGPC1LVYIAaE18bQizHmThGDOdEWMNNhLbTGzlys6hZ6FUHpHArOthG\r\nQtGBsL+T1eIYARR93q5ji3Nu3YEk+N4PPB+WoPhVcjmjASbFcFQDtbDL2bRA\r\n/Y+nTD65vfziqqCJ5TAzMRiNwlptsQwI5t0F74ITXMsp8BGyHzI8BuziXBHu\r\nP3YgUkogpb1YSuzpOtErmwMdBiT4/Uc+bxDrlNDRERLilSPzhRvtp/+Ja1Kc\r\nTLS6J6/jvg0V0cBPpNdTwb0kusy1jDj+UA8=\r\n=yesv\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-connection-manager_0.7.1-next.43_1661040953990_0.9475791834231919"},"_hasShrinkwrap":false},"0.7.1-unstable.43":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.43","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.43+6389a80","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"6389a80e4d589b359af61cd1759cb0c38c5047e9","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.43","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-HMjs5uSrQnoXRR1zOLs8gsUZFgjmeUHFhRQ/yfnqLGEk//rlLTIF4FRSYy4dd1bMbVesyaAxEct+8ty+kp3p9Q==","shasum":"b8adb2652b4c44b2819aeeaf40c36ea090988ae7","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.43.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxfz3EUEvqoG565lSksq2cECmBz5EHRwNQM2/cgA4RygIgVWhj0U1HKzqqCvEcA0LRn7eMPEhbBlvH46ea5KQKXtY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjA72cACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRtw/6AqQex+R/ecx7fnCHjCL5lV2vSY++SHx3S2F43/HGOMvdf0PF\r\noeDv9Hg1dW+hJ47udHuDKdW2ElIkR64VYeu7bLxlpmLq215UN3SHiPPzjlwY\r\ntShJZV1CvsaTo6Cn04ylLM8Ky9ohVJXm6zZuxTRhsf4o2nMx1lzstzDgPRfG\r\nd/VdIbuQ2dPOdoQBMewq2L+eSmh7lqVeEKTC52Mou0Ckn/j5qJy0eV4Vm/Ta\r\nyv2Lu+XwMvFrSL/BFEBNDDfTrbe/b3ZRfFnkKzVlgLggLxoEnTyoklPexir6\r\nRcZ03XISrIr2lO7/tNpqQE8P8BG5AGSco4Zn0Sos2wd4zXvV9AkCOcV07u0Q\r\nVW0uEgNYhNrhikkwAtgldNWt+7xJ7VCfwgxtnNU+xVu0BRc1LXVpT3y/qkAk\r\nhys4jFI/SkZQ3CbAfF2S3iXIzSNpLlTgC9ErnHAXCmAdSiiUZs67laeQPQRS\r\n0Wn+DFPOWZDUdTsnzbB+KgAOTkjjwHpUR4xdeVlYSsbu+0CMY+DH3Eq4dqaV\r\nEuinkRJogVzE1cDVH6aefKDoTTrsdE8SV3L8SpW6XxUtIYRRXnfZC9Op5Qz2\r\nUQKxa2cWiC9f5RJ6OsRkzZvisMO44wNkiHrEAO4/GWGXtwSkC/FCaXhnQofx\r\nP4Nlbh/PAwuJst+ss5VnZC9K+ikjX6V9F6k=\r\n=Xv4b\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-connection-manager_0.7.1-unstable.43_1661189531757_0.43908781221068915"},"_hasShrinkwrap":false},"0.7.1-unstable.44":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.44","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.44+8c1bcf6","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"8c1bcf68b3592c1e26e5c4ffcc7725da5b42d736","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.44","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-ZQ8L7gsXQChlUxaL1yNibi/R+f0/5Y+fyUmpCkzY/EvQ3JyYMpCTeqadXL7FfK5PmpWTra8FPZaLUHP+JVfQ6w==","shasum":"61ed44e3e36903402c344d0f291ec97082bad420","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.44.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC287xUJP0pGC+UNo6vovsP3IhIyqbGtTsimGZhUYX5LAIhAPA8W3n7OhNkCGKmlX13lGtUpe770kYGBx8Bs8H6PNV/"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBPSbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpO8w/+JwbuZT1c/WBrKzy1IRDxBZAm3PPyRGI1vzn+f6y4CEthCLZu\r\nE75j1rd191U/u3415CIqdiUZti2T6BWGlkDhfOUIJQ1ISOZIHbrqt99jXtQ5\r\nLGa5OxNIqG1tlAGhJvg4zNhWhAVHvmXCkArT/nYf3BkuZT1u6TVd/M5BW2hY\r\naL5uNx/DwozSo+B8MKN9X1dCw/3nmrIJHF86KV+xuiqNQQiOsELCPA0rAEzv\r\nUJ51rg750Cl+RPd7Zm+u8gxdFxjViReUudva7Y/zVRrfgOB8c7XA2zVcyRG0\r\nj/iukTQJO2lRP5YhxlGube5WZb26+YmQQ+T+F7+X3Y4FzvB48tmH2RYbKrLy\r\nY3fneYs2Xr6NarFRq7iex8d4vfWbD3MozDj8eONkB3hp4VkaPgTQ0K2BaKjJ\r\npRMr7d0HH3XyROkNjqbChaETnhxx59ULDtCEJbKi8ULZPIXlHAtY/+hAu87a\r\njhWrMtxmtlCEb2WI80p4zvbajFwFHjWGxlP3qAo8fsowuJx6d3+Sm0Z9AGvB\r\niS0/5v2saVb2ei+BrhzqYsAAvyZjHjeL9sREUmd+z4oXMQuB8XJnokIu4e+V\r\nXDyBeZMPxnNsAQ1JSkTnPiGmS3aRxILpDtlAdAN1vDQn13vP5kXImd/YUTu1\r\nC1qsUK4CWBQbUZkaozjOkq1mgj3mehRBBOs=\r\n=lGkg\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-connection-manager_0.7.1-unstable.44_1661269147360_0.45294953661590465"},"_hasShrinkwrap":false},"0.7.1-unstable.45":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-unstable.45","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-unstable.45+080808c","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"080808c185ae370102187781106cacaa422e7c87","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-unstable.45","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-CYrU7AZxfw4NutxCiJYbBMzqgv+4nlRK03kZnzYL9MAQ8hNsO/upLyVLtpEwsiA4hTnpGBJl5LxX8t2YE9ESHQ==","shasum":"272a1eb4def3fe6448723d0cb5703fecd599bfb0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-unstable.45.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF6PwqS13G/K7/2xsRkyAFSHhCwyGDMcGHgsanUVieUpAiEAwyuN0g35LplSP+cL8Fv2nvds4gnETaQ6TZhP9uspAX0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBQdRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWNxAAo/2cuiQQSXcFhhFRh8MIeF7v0DpMLeWpA8epd1KZrcs3U9AD\r\nfm+svM4lZOcyyONVaY3U7LxBeqiqeBb7Y4VD+C5wORpqtGUEcJSdzoCSleRM\r\nAuSvHM6lmosUpIYYAFm8fgeIdJIEiCNw1wZiUSUNO/ft71CuX2mDMTe5dUuI\r\nLZ+YG9tGfgvAlisB5F9VlgBkm6zbTjskKyl/1DVLAiUoqH+dGJGCQCyKH7FZ\r\nT6D2EAcQeEw1b1O5iLARkpoiIuMaA1Z3jYhIKiKDqgja5nLRzRACFgYpQY5c\r\nMVZJ8CMiV+w3iTZVeDnurKqkzoMAmUGQuqfIPSGILwSTi+Q+iCi2zXcff7+0\r\neaEi+NzN0t8zxjVjqEc3VFkthFKXBrlaEEAo2SbjkQ1Lc3AmHSlHR/O21WJb\r\nMGKm/gPQWt9HZvtBhpCPLaXwIM1tQS3D2KgQ5KAOKMLNxnynnDny0T8MA9gL\r\novEdgUJfrusXNdvT5y2X/08Bqs8ONevI0eNvwoWZCxBTRxXz0tAVmdh/dga9\r\nop5pmlp7wF0s2jsGB91loc69SCUi2xXUrI+/QApyHZZm7YmUkBlDcP/1hwUV\r\nPsX6/s2Tid9QpkV5G7enAexA9Ov3j5t2YeTe8wB8ba63pZLH75sTxS1hbJQk\r\nFYeWbxOxx760uu5nVOI/WV4UcnzXGYZip2Y=\r\n=y/Us\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-connection-manager_0.7.1-unstable.45_1661273937585_0.029712263836399133"},"_hasShrinkwrap":false},"0.7.1-next.54":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-next.54","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-next.54+a9ccba1","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"a9ccba1270296fb1e8e74e1be73f0d2a49ae6969","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-next.54","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-uCiYS5d4DTHr8Pcsh5Lh+UUjGrfIhMXOSLAFEWfanuKWFGFc6A6zY9kI0XV1Tab6B3xr0T+tg+hrsQ16cbknVw==","shasum":"35d06f7c495518ddb0f11f7b249a830d83ecdb0e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-next.54.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBwNXRhm4N6T6jiaPyD7dhmjQYp+qbtpaE8JlQn3pLIjAiAVxiRjzf4yZkyELDPxzsvAtcjvaYB51EDYqbZO2evPlQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjB2N/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqW1A//dkvUE/LKw/e1Qid6YjDOcp32EoKD/gYwD+2VJcSxJggdyuGt\r\neGLDByBHwLptEMeaCxB8ubdesDrfdUirjioBONrX1EG2jlM5HwulJnB0it9C\r\nw9G+ulVrnOPw8DZT91wCHcNgdQz95EOtwpJ8EnyqkV36EEqmuH+YZC2jZXPZ\r\nqqORUjSP0ynwrpMHyfLhLhairOvFqtQFN6c9Fb3XQNCyEW0Mrnu4SW7L/uAW\r\nKtyVSQQUEnaQA9LiPmlZk9rH7v0HiWSnTXu+kArN7P8x1JpB0hg78XNppH6z\r\n3DQpjPJMT3KpLrPu2siWJluVyzFJoqBknyA1JRw47tw8U4D2Cxit/ycDrFKC\r\nS1KQ0ui6yrJ94WsLqhgcHodty5BLOwHnr8PCqbPKOZ+12aPUZKVKzdZN7KsS\r\n6+EM7NiOlebdB7voruvk/mwsiI4rg/QkxfvqeeUSaHR6FC84Y2ahp2ibJV40\r\n5p8CT5hxG2/WMvqNsAGXDXuYHKOx0ZDQmEkqVpgq3+PUnQGZ7WfD3Tfl2JIv\r\nQptd/Me2yBEyifAYmhjles4GsaD2pxYyvkByzmS2S4MsAKdYI8vaV+VGglHT\r\nyMwijKv/zyWs739Lhd1JZTw7PT2moDhDey2tz3V6hKoL/+K38fhSaCRivEpO\r\n6vcy9ZJxoZgFc9BsReg2c+vFrE1mAMtoJWs=\r\n=cqZB\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-connection-manager_0.7.1-next.54_1661428607677_0.9725577531099057"},"_hasShrinkwrap":false},"0.7.1-next.66":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-next.66","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-next.66+b4151a9","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"gitHead":"b4151a9cde3e5e5dcabb32367e7a6b6ab99cb6cd","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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-next.66","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-wDHvWB6eskLlBC2PfPKC6+NJSAFdfjQsbAuVghSINM4w4nDZhxNxsy9YExfABV0xGBVy9MNGEpglOEmPRySFsA==","shasum":"127373e8e0dff9dcc2a5fc323feeaed5a308ca6f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-next.66.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHYHffsyNaD7L6VcF/g7wJZq8QSfZFve93s8UeBWElnnAiAZFxSnRUVkCaXoCeJtaQCGQQ463ElaWTHj/MnER4axOw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEoXWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqksQ/9Fm62FWFykn0PgDSzYV1ctVX3CzA0tCWZSC2waGf3a1owcXkq\r\nOQXyTZ9B0XCk2p/BzSAwL/JYBaJdTAp3w0qL42z3Xmi0HU3QKy9Y3sL4SC2i\r\nF+fBmxnMQBH3jZm1Ijpq5QO+E0YbExOO2lLwKXd2TxrACkoJRFIDk+ZIKQ48\r\neIzBnxTNoQMZ9crlrdSywxyDMCHVymzwwVDCg2wPOw4BG7gWp1fuI/z/tcPu\r\nMyUdhhcCdCcirpp50h73KFm5QqspGl7o1viDU8dT2YOMhUmSw576RxJtg6w6\r\nuPT9UZFSFlj5CVYDFRKbzTpR23pwFcCgyyyI8bAcVRYsU33OWKu4vgzChQiG\r\nOEeSlu4V9Ai+vLFcQo5YDd+Oo/263jngJyh/zWu4qnxgYZXTRya4K5+/ONNq\r\n5WIs5D2rt3NQBjamm3qQpuf25IEcsKQNwhk06XxgUtor7GYBuUvFx0C9/XF7\r\nRRPDHNAHI8SRZhOAI31u5TMRSvz3JeMk7+YAvXfKMDYjhhWGCKyojugHd1IF\r\nJ79W0QJ95UoUfltLPxiKGwkMvrgFQ2MUHxt6UjyzpoCFxFo7DinWRpHPFw4b\r\nrZGOnWNHBMUiky8eKLsDqnazA1EdL/H/hd2IXoZ3Kqd/QFFDP8zqAJMo6kXj\r\nJ/Evhy/vrhS3N7Tsf5chqVm5mtS6DOuoLh0=\r\n=HFc9\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-connection-manager_0.7.1-next.66_1662158294800_0.11244682625465674"},"_hasShrinkwrap":false},"0.7.1-next.68":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.7.1-next.68","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.7.1-next.68+00c9747","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.7.1-next.68","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-Tz0Kh8Gyj73CdgsVXxzJQgF7ztVUTSDwO3vaXIEqiM8kiRmBYntDaSRsGcrznQ3Cgws30C+Er1rJgMeV4BrHtA==","shasum":"e19151fadf6b6a2dbbdb8f6f6c32e2aa6d353e11","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.7.1-next.68.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDloKEXB9rQskm4graM6pssoCUZdSApG+Gn5lr6AkjJQgIgOKgDrsibHio0IXNd1lx0hztnuE638aDZeluHHtXOiRg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEpdYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPLg/6A0GZnZns4K9BqVYREpUqoaFgmWrasSiWB7oYW5VrHRALgFzq\r\nv/HGE62x6i80c0Hv8MaKy73WafjKqNAS/v1kwSAz5BU5tTGbDqEedL019Pyr\r\nvrcXrAXGJuP+EtAIZNtQ45A+f27OWBQBbGkWMP9XgF2A6QCSY7+3YWUXWgO6\r\n9f7ByfZXbXXEZ1BmiWM6l5QrToYUrJ5JHojtHO/X5PDNiki+c0SDKJgtxHRe\r\nLUgSspgSbhNu0kcvbYNTzKX1eWxdlysnghXypYfokkIZ0A9bMMBV/OiyyxBB\r\n4KUQiIlRm/+8y2vE0jLHwoSd6iaLjBoxzVyfGMuRJMCwDYaQAmBnNUyRYnZg\r\n4MHUXJqnn+LlGMzHaI2nidLngTVTe/M6ZPA0r8eaIGHpuf0CptU1OijkRPpB\r\n3ausFzYcdQFZSHm3ED03OIThtEHeEeQDVm0vHI3jq6MC9Y3Qi8OsAQgowA35\r\nsovYfXEZ46ltDeMWZCu8umlLhKypo47jWWSH3n24+8IA+sDK12iPe07Abe5L\r\nQlS7SgP7pCvs014c27PfHIM+UHk0cB1/x+EC1wdota7ZbaNRwgbqMWIyDLsN\r\ncNLR0jj/JD7A0kQdIByALla4YrJdFxXDHbhfdCxbil8qjCRt3Fzur7o0n1W4\r\n2Ys7x+oaGX/HpebbE6T7x3YhrODVoucADyc=\r\n=DWRF\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-connection-manager_0.7.1-next.68_1662162776661_0.034171212988090005"},"_hasShrinkwrap":false},"0.8.0":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.0","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.0","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.0","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-78mAmY4bRKoasK/K58jfGlCDiWUxGXhsZzsmqPGYD4gp34IY9atsTkHiyX9wjF9p9RNfL+zaw8LIr++fCAfL1w==","shasum":"45d665aaeb45ae5a527f3fbec709997552a5f4a1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.0.tgz","fileCount":26,"unpackedSize":62266,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTiLQGpu0B4WemAvVBcJ7DnKQB1zD7m1VpSxG8ZLifsAIhANadzf4UDIOnE8YTitbggS+xG610jhhN4owfufpkxHo2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEpsqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmot1A/+NIuIppoF/W/bv9W+YQRwCByjnnKTf5gqsYAhqyOt3S66wPKm\r\nb60vEpXcTe5lcoDIlTz3duk2btjdNyrKqMt/QZlxdmJTQ1EmadqySp+pnsmA\r\nS74vH3zBQiQyLWUSi5v+zfa+jQoCXXMS+OK+klGTyPlIEGUqWBmiSzOrE7Ym\r\nako0N0qupCIVe/Atn9VvwvqrvO3LgTH7c135NyEeiu1j+BHOxoJX9CMnSpD4\r\ndIu5gGb37QFxmeF7ye4LyiRhm3pyLC7ytc0c/MKdlJ+m94VuCbMSey7uRm3s\r\nEHP+fRgKVeVpqF9GynFJdm4cf95b6K31oCyRX79z2ytwV0Nas5HqJaL45vZV\r\nk+3GlVJvKb+LaESJr11fvdX3R9nvhr0KUL4FiBqlCCcXEInRTSsDp6u/lQ4J\r\nox0KP/l+QHWQT5ua+trusd4PTymaFja8T79GFbIcgb0/oXzJcyEZ/z3GlTom\r\nfqwUlLjXvvnMVcjyKeY8Vn6fskyiA+jFkLfdpgZ1YCPAKa5lw2csUie9BmZq\r\nlI8t9LAP1SsUihkKzHDKXVLSFypDFkUER+7HfHHl0lw+HeXYFYKZ5RI/XHd7\r\nuPr0geFaMcSp4KNdu/K3ZEqX2SxwasoYFvuQFL/sisXPiQ3DydF0REafaqzY\r\nNGyl8bLw7RAfl9ZRuLweWfUFHFh6X8XMqDM=\r\n=4tyX\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-connection-manager_0.8.0_1662163754008_0.3921009949485432"},"_hasShrinkwrap":false},"0.8.1-next.2":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.2","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.2+0b28de3","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.2","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-E8yawQ9hp0dJFhzT1DwqBjwflHdX1fAXQ1IMNP27r9habvCxEMvdFLnt+ybj/rlUNrGZwz8HJH78IhVXMwhiqg==","shasum":"68a94dab7fe092b7cc05cb2aff664b0e5a306b7d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.2.tgz","fileCount":26,"unpackedSize":62296,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE5Lv8z61TAnLixFLteys7pu1Udl8JHD5D2t174wIDzdAiAZwD4Q4ZFX8T7KjIU4W8Kp6cXRPdIz1Zm+SxCNKyuf0Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEqZVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVrg/+JllP1xVplKY1bvqRpTiee3v41X8d24eFBnHZsEqFUiNfDqeV\r\nO4AdJm0OfpGwHKqOqn2k2+krOJU8uRUer/47nimdJx81mxouHTUqGW3eBd9S\r\nMe28hB6qFFrZ5z1n9H1HJyIpLGpDz/6s4cHoL4UNQkPpA7eWPeOq8/vuPFd7\r\nTC71g5i6opPhTM2mM5yPgSi3vfR0dsriodnV4BrZ7ibCX8Rc46Rnc6iFvAaX\r\ncdOtP0DsJKA0w/5vfw1LyDEzaLp/lYTK8WlfMgjTUPJPHSFx3NgjC3knFTt4\r\nTqtIqXG+whpcsoNXFZQcYzo6/GFjQUjce9vaydTNgbwCiu7oGqcQBfnOXfQV\r\nLWkpmX09XhULSAURKhvGyBPU23zATDNidxps7AplgENR8jb1Jl/vfIVf3iC+\r\n/jOq2bxpOfMykpGk+FLID10C7YL0m9vKWnSmm6oECiUmnw/pJoP0TpnGg1Yc\r\nVAdxu7rYCaB2yixjnSHNJlvOgbMC5KMlY/0plByk+uckzD2xOEGn5KOp1Dhh\r\n9G5/71iyUdLrOgovgYgeC15K0uBd8z7R9JQThMqL1xDsQDUp2WVG5YQn4dU1\r\nVbd/Xhbd1OQeNQe2unb8GNHLlyMFyFH3BpRP8NDydZczT20IXr87D3266DaV\r\ndwQnytldc7RewCuz7ChemtM7/XGcJ3Qhfew=\r\n=ZnUP\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-connection-manager_0.8.1-next.2_1662166613776_0.019829885339178732"},"_hasShrinkwrap":false},"0.8.1-next.3":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.3","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.3+0c75aaa","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.3","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-qCdGnbZMgJNgkjk0RDd9klF2+egNbrmhtWCImczEHg+8WqFi+BkJApxgdUeZy+BwVqh/zmMcN0yf6tdkN135nw==","shasum":"d6dbd6424a389d3d8f8082580890835c424e0bab","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.3.tgz","fileCount":26,"unpackedSize":62296,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFmPH1JaAXKRAVACu/YVoA31FUGlij61MfGCaf3ZEllyAiA7SqNv3qdIzqqosA91IvHXZ9gMFl7WAAkvTs8CO1gZ1w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEqlcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfsA//VkWab4B7A9p1zl6xBpuhtfBRnVfXVBi5jwOn6bVoSfLAsyZf\r\nEYm633ckQeg59UJRQRCkLH7d6pa0O4yTwa6HCoieK1leBEOlt9UWEZPNVLzT\r\nC7s7uyvkOauP1QnwlJkVJqhk6Fj833pk12XzkYueVK/HG7/VfakDhDxV9Tcg\r\nsejSB07YGosv58JvA46KRwyb5SUmuw96g77VQfEvBlkRJJ4bwpI+QiFzOlD0\r\nmJFu6WGZc5HbQ0tcSxi1YnZ5nLMP2XxSvfjv0EzCiFiIVMDa6JGAATGGrv8G\r\nQvFIIx+pB5txAPbVpi0AzQO/6GUCZFkqXYvTVvp+kyoTuJlk1oSaDpMwnaj6\r\nhjI8/kV4qFxtBnKxcZhZifxboD7ZRfvZMwJgO7lK23Thhol48vuvU3nKbdhj\r\nbCP0TZG2jUZc63m+ThMZ1Cc/8u0DRK2NCbBEdVR1Xq86WYd1RUf9YrYwecXC\r\nQlfbVccGrR1SIA93+M/Er0+G9nEkCL8QF+PJK+Xh+XglM//WlZ28SmO7uV2j\r\nTfdxeuQnQ4UpGM1Qt0EILlbqgZMzxubMjxPEW0omBRz10dcGIAmHxTZCsy6j\r\n9TFAN2KZ/f+SyqARgoW0X4ZivLw1dwFts3WA+/LCjcEuFUL6I79h3u36L8HP\r\nxEQfXKbi5JDHbWBlwkokX0OJdWsWowjORng=\r\n=tpBy\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-connection-manager_0.8.1-next.3_1662167388646_0.7698088548080748"},"_hasShrinkwrap":false},"0.8.1-unstable.4":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.4","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.4+e8c9e78","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.4","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-IGz/S+tfpXhVGf4iZGbT1oMEtqvbt2tfef/WnbYG6/j9/+3zLvLoL+il3qku5dbm9U1ZUc9pUytl4dRfHfsZaA==","shasum":"9b25d3b99319c768c725c8f82ecda0f5be0a36b2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.4.tgz","fileCount":26,"unpackedSize":62304,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfwIqCdZ1POcH9ME9EBWzRyCD870TI+zk0D1OW6vZnSwIgSrR1/CV0rIfqSN+ytvOEYP81I+pKnD4F+5OYOoUvooQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIum0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJ4xAAoksVvr8PCSbTW/4OhQgeKZLq6n8xyviAIOz+YvfuG479P3al\r\n9p8YfGmBLhIgfbiDXrfxgc2uQrLSyVECMXn5DCruFvFpZDjHtEzfH4fAlIEa\r\n4Eptq7qCvThK447dEOka3qs23LK/7E+TGluXrsM0/+kgNs5aAB33GVUH+pAI\r\nSwP9eT+qKarGjDFv0vFVurTstvG3C/zzmiYitz4S1DcZ/A7y6W5HP0t2eiqD\r\nUhh2OPqQHmNdAprTj2nDKppZHNtWiCznlSjKD28kUouD3/vWrcSnt0HxHmVa\r\ntkwkw9y7A/1ysAF3lxJZQKZhZVLmh+17v7Q1yrhx9XS5GZyHEyhbZoBy+khE\r\ndw00ojZ3ShdvSSVMA8qF4p11NBL1b/ewTLZSwq2WVSl/FBaVLYzZnfUmYiN3\r\nGK7lZg4pHJj1y5sKuQQra0UJwZseloXcC875htiYBjXA+dth/SAA+k4yE33r\r\nKbDOMJBZg5srON2pMr8ratOq5ob8y+dIMrjNi6rZzDGINa6D/1IEqOYt0HVd\r\nBJ0a0tiuj3TWO0xKQHJnvyiN+jzW9carLACpCLSDmchfprvJ2Cril1i3AXPi\r\nX4lBsvxOydl+2IEcxkUJjozcETtxS0+rwVTmX6xrnCLrJb86L4moT8+vzTqX\r\nSqJw2PfsocDM9yRz+xZPh+KfjFbWCIOIefw=\r\n=ZFHM\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-connection-manager_0.8.1-unstable.4_1663232436371_0.8404259079334886"},"_hasShrinkwrap":false},"0.8.1-unstable.5":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.5","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.5+ed329f6","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.5","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-hJRU112ugEiNiByY6a+fbuAO1LEt9i7bxUa/dMwE8dimpQ1sdnKkI2kEnd54mhbgk2IR7tqbFWDhD9rvLLVaOQ==","shasum":"157f38c4cbca0812af6396edd0fbd51a2041738d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.5.tgz","fileCount":26,"unpackedSize":62304,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICxkQzqPG9Fb0clqJnD8m9tSKzmJv/ijfOOvSau0aBY0AiEA58ZUxKtoUTzDhjVYQNlzSmLyNAKc1u7ltKhJe6lqUPE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIu2pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfXQ//fzefV5sag1+P4yezqr/XfGvsOgb1yi1jLAYK99mhMDag04Xt\r\nJKCjc07ckmMxdLqpDJILdpQWoI9KzvysanaPLvEuGYW7VGl91ZW4kJo8h88a\r\n80xKqYo2uC8Ls86b0ZAuo1P0xqdAa0raSVTeJLhwrO2v2JZGbGsYUGcdbZru\r\nwmXOFn7TdQRyrG/8CjONE3wwZsdbne6BScfdGTkXXAs8xpYxXSbtsDxXAlAz\r\nkzsghRQievdXZ1b9GLAZZipYXYa46epoplnT/ZbN1q3FurJPnMKNJi8W3CxD\r\n5DdrtEBBtYJxEk4H6gsRFuxiN+lOknmMt4xCbSwdc3jNYX3cLTIYr064vaFy\r\nhMioEueXmxE47Uom9hEEjfssuwyJ0ZTD8xJ7zId3Sy7U2B4+5TWFfIpGyuG6\r\nozxijLuDFs+mxiz8R49VYPAB+K45IVILGBDq+6yfJaI47FUOoXZV6MtZry2a\r\npPYHH/TwrHCI3XKg8abaY/m1famPILM4Nr49ncXU2PMUMxascuWDc3rFSsjh\r\nvOAU7RsZTqOYXaPT+idoZyhF2xzhzTW+ZmL6xkElBadlE7EIdNe+uc5v5SK+\r\nrQ4qMTDewQHYn//UFBFbpNy6/wwHSTQGxhhll0P8iz/j4a4DMfaW2fYMnz7e\r\n0CsfNGOs+QLdBjBHtXzNxP/X/7BVJAzMyuk=\r\n=9U2r\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-connection-manager_0.8.1-unstable.5_1663233449020_0.9757472729347161"},"_hasShrinkwrap":false},"0.8.1-next.6":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.6","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.6+27069f8","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.6","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-XQIgefc1Qzge3q7Ox0LoajBc/C/CqOZUXFL62QQVN1UtxdulkIZ+TGkslDg6eBI/Pbcmzw59GAlw1PTLRifmSg==","shasum":"5149805492125c781bc329047bee2fac79601446","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.6.tgz","fileCount":26,"unpackedSize":62296,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdK+ZBPoekjl5vrY72IYRiG8XoJ5w8g4CWAbtVa74gRgIgMS1TC4NgXMWcdg+1kDIRCw33kflcdhQeYf0tkrxK4Ik="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIvEOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrr8g//TmEbb58wzk1k1UK6EtokBDk4czSLS95nn3J6qhA1GL33j6tw\r\nWdvJ6qbKnBQB939xl0HCzUltXM5BQWW20qH/LBpje/7AsidioZIbof0R3PXd\r\nTDqoITZMXPZ5Q7NYcix8MkXUn5d83QEnT+u4A400zckVcztYUj5YBsBI8cd+\r\n7P+x3s518WQi96kpm2ts7VU4HFJJFkm9s+iXPZ046Icg7xq0t48o5FJBzgbN\r\nFWQ7iqpUJjJWOnO0mbtYoHT+aRlyiaHpmzRfECUh8AlIW9DTmwg+dbc3taCp\r\n9xSszz/xiFnwgg5PJjsxn4u7XR8Ik/BdGWNah4Z8WE5Hyla25UEbYBysv2+6\r\nzbgLpW50j/juD19aQVv5exeJlK04az+MNwBw5MOhu0vqz74A1MpqPVDSgFJ+\r\n5Dg5Y3wGldLLp5cFRvZgqYgHo98CjOQrbLUkD7XZN1NcfjrctL8nUvFslv2q\r\nK5ZW9/qCcVy+NecoWmTw8uF7X1kk5uD1KjY0QODr9SS3CL5I4I1u/a01+NS3\r\nVt9Wlg5IMwhAOhqoGguqT8lqdgGMmI6Yb2HozgT5rl9ZsOyCaxa56OwJY5Q7\r\n8WlxIeAmOIgZPeU5paoKSNpxXfeeUXsdpdwjC5BMoxKs9Sw3AHONZxnmQAUz\r\nhFpYYoKrXGhFZOiNkrLuNCWk3lQL60KMh48=\r\n=oDjf\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-connection-manager_0.8.1-next.6_1663234318097_0.6434851435932651"},"_hasShrinkwrap":false},"0.8.1-unstable.9":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.9","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.9+af7f532","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.9","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-Lz5W9fo999RdptXVoyoXeNNLDEXWpsuObmNVjoaF/VGb9aneFSLxqHP38z/Cab4s7QbpoCq65ILxvX9z9WL62A==","shasum":"b28445f7ed8cda594c654818bf20eb612781248d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.9.tgz","fileCount":26,"unpackedSize":62304,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCw5UgQAtuJ8z+zmPIoR5LjTe4rZUAo/Y8MnDTANkdsmAIhAJvo2uzGRZJW+dmqJYC+acmRlyLF0EfH54dNzMKvSukH"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJl7OACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnvxAAn5SoDoD/C1vJg3A+OK/Lh3UfFsJgMAYwx7QwsVhMUXgJbIyj\r\n/AvPWQUjcZFRGf8wJu0TzmbGonYggdHTTGlTyPGY7HGpvc8WHXFQZKVNuruf\r\nnyAbQ3CNpx9RbwtaxmFfgg62L3PFNRj8sNWcVurMKo4XiXW5eACRmgIzsGjw\r\nndEJn9ZiDVsAfhwbBIOtoObjOoTJZL/JYsZF+A2F1/kgXnkUL+DvEWNYOj/c\r\nCGDiKZGhSWibeXTC4Bp4GG8ljqq28+ixbyIwhCGcOzf0QMQqWDfFBwEZ0HHG\r\n+l5yqFlhUWSfwpsOTpTILrESPnPihiSFc3hP+ZPyxC9V7+UIe5JVfUxsxxCi\r\nBqDpAZe44H8QvNOs75JKUY5MjVaGNBCvouFOrjZtzcY5JqZgnCl7F+iGUqg2\r\nLHkCejnfinv1AvbwKhGD9TOKWpaiYDjInkvWujZdzkJ0d8CDpKFlHnqcnxxM\r\nZKzOS/MHi95hGW77MIQ+F8wQKZq5IqxRiOJ0Pj/XA+k/DxERV/ORZAXxe8s8\r\nI+VZpQbttDONM526UaJy7xPlDiQKwPUEotl7ARBHFkbttBAc4bS8QfR7fFC0\r\nOYnwPupZDTf629hmYD+/qlgvj7luGu/o3hKffn1o+q/bixFh3kn+bfYa5+n9\r\nmIRKRg0m4K2IPcjS+jqd8jS+I3IJW1Ip+1s=\r\n=3+nX\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-connection-manager_0.8.1-unstable.9_1663459022661_0.3162600623053242"},"_hasShrinkwrap":false},"0.8.1-unstable.11":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.11","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.11+e5fd396","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.11","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-c6CGwT1TRmEgh8MS7WNGiI7ohvYjsDOt6tHatG/mwv9+S0GD37vnjNiFjZ4KbYL8sZEVUhDb4FnwZC0itGKXeg==","shasum":"3e6ee529c6e323d9f834b59c33ea132e17188280","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.11.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3RBnXMTLC+VqkVt8Okk7I17G7rIzPD7nw7xC084/H+QIgdiyPrmFKb1AQL6Z2OOHth18RDnxtvwpk5T0qb0UukZk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKHZhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/+RAAhzTJWOeMfWjSTfIPJlS391uuGWSuoya6OXrWQVVzGRJYWd9F\r\nL6f7GHUIio+KEDUAtjW4tr7Q3bV5mCl8+fE10KozwVd93vz9pnAaKVbG5mgU\r\nUmdQRkgELIIWn+5AxUcnBJCtykXPWIhSEN55JpXs8UKkB1ihXIwXGnWSnD3t\r\nXMEHqWeVRN/duIE/RvU4c9NdD6f+6ry2HuqjrTDAjMcRZ/P5t2wmPa4lUKgv\r\nSi8rrYscOz8G/z+BvpDprc0dt+hamlrK/tZ6rFmxRq7wmPiCGk4X4LzZsdUC\r\nrW5pUysOR0f9oTLRx3PigXPcNgo0hFf0eT/0UiMJGg7qtKcV8gP2InIF4KE5\r\nAnfBkrCcdPiT2jT97zx+gTpgwpWSiYE5tM24i/0diqKJf1PilJnygvyPs4uv\r\nuUsv3I2Mo7OCSLx+t66z+HAjzz8ZJSDL7z07VHQrhgf4IMQJT4IAO607pqZy\r\nb1qSLJvzVsCdszbOuly36Vd5kWSnEQqvBa1EjbNyxaAh0IVzgw6A1uJ9WItz\r\nNnAJWLGaWdzE9TBfgrME0mnp4ObuctXPGKL8Xpedq58XNFiuU/BHV0BkNqYF\r\n77eQ6+e0Nez1b/bMNf/ohf+L0SFYx8wf2E/8qDnk5vYsgOHxVtQ8AHp2vofF\r\nYx5qpC9QaLZx9R69xm8g/oKabfaLte8yjf4=\r\n=QjJx\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-connection-manager_0.8.1-unstable.11_1663596129654_0.9355384490620913"},"_hasShrinkwrap":false},"0.8.1-next.12":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.12","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.12+84fb570","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.12","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-nzS87a5A8/mMVUgskhQpzpSJApzFNk0ylByMOLuiju0hmUM7gnfAXFrcMi99LtMcF78gkfSkaDx5zEvfv8pAOw==","shasum":"49969a5ca189366ff27f8318bcdf589d67156cc2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.12.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD80sHeA22WqufRKN45SUdklN5rpA/3dF/2t2ZSMwoTTQIhAMu5nuyCgwf3uMWHv9OtH/yMu26e+ieC+5uMHQKU8GzT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKIajACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+IA/+Kn3L5GtgTDmQStdTxaHJWvfvRsV78fJQ4Amw0I32TtBW2Lxc\r\nw7b3kkROfMRFxc5yHFWlkzM13e67IHCT59fMvGjDafY25g3uFtO3PWLw0U+v\r\nHmRdicqCqr5JJLIbs2AX2Mo8KdPLaCYMsWK9MzBF6taY3knpVVKUr0m/mpWF\r\nOup8vAL8ykJyEx5ZxGDrZzGgYPkfqJTlssvjB3dIUgQcXDYY+7BUumaBevsl\r\nOw1CIpBhwxztY40PMFW72XS3w7YjINxQ1lLNysVl43CHM8M3AmVoskyYvixs\r\n+kOoek5Ptu4XCZDzrdEhOGNlxGIWFORcmsD59KZ8ueiqpaOyJsOv9iO94pH+\r\nC6yE8IApZFbX4xATX4gjNtSVnIe2bnlJwenKPkQP6TLel+v5yoWmmSSj+d9E\r\n+B8JsaX6ofQ0nptpC92aA+CM8Szu4eT22pONwuUaxkeadPsddIc8iKE008fb\r\nX7K0+NSZtwlmgQvB8zHt3n0zuu0YeaZCC8qlqCZCwqug1NHNkU5nQ0d90xmY\r\nHfGilncJCZ6vfo192WLXVGvsEM+Y8RKlyXRXKPENgeRr0mmrSfxu+mbjS9Ks\r\nQVChp7yZWQ1hwH9qo7KmSO2mlFEBc8dwn1nZFjNrKLH7datlFscByjfR0hGT\r\nOaCmSKhykLD149U3M1omUhIzrwSX3on8Evs=\r\n=ArGN\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-connection-manager_0.8.1-next.12_1663600291314_0.02701417931057204"},"_hasShrinkwrap":false},"0.8.1-next.18":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.18","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.18+71e09b8","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.18","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-Dpb+WKpuP1UfzTn/QF0RmGgGNvMPPbVwajM6gEt1R0p2Ep9NiMEaLrL5XpdVjKrmwn+VZc6G++CV2/tFw2QbuQ==","shasum":"d2d828d3591126362401c512075aa48f54fe26e0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.18.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu4o7c3a/QFZt61zfaDv2l/Ex7+4Uy+Sh2qGjhjzYthAIgeRa+M38+V/A6Tjovs10l2WtdKR2r1pSEAjAi0oA+OFQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLHtbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoP3w//SPhOyV/Hw1ypuTnVMG/5QDpPUSWi5AFTwEzwyLeSNJHNYxGL\r\nsEV8uhZrrl+Ncd0OyLgESH5GG7H2r/L2mLe0Co8UW5vFIuThPDAa/n4OHXiV\r\np1ETZdnGe13tlFFClnibB35zEctNW+y98WB4Sh02FgIkDFFLxkiJFwRq4pqJ\r\nIno/noS9hmS69+JCHNMWuJq8wiRDYqxI1/rcykEfRHOi1TZdmsf8NC4R/YFB\r\nb3RHvNMH99goYROvn21ONsqzmWUVHddP0SMYnotzbNJo1gdm+LdYrPuh1O6a\r\n8OkvDzEJqTozJvNuIU4euLXwEO314l6Tb1XYJjivl6V4NIKOLbkTSMGI/YWG\r\nnZL1RXuEk4BBvKp26UNf0keGFRmYNPNT8sS/Y9aY4iQaslbpbIqF9ssSLIM1\r\nrbFIsSvLiAhGKB68jkkuNj6/dIxvhDoqd5+znKt4zsqke5AbsjIxERKv0mrY\r\njNrPufAzkn496jmkmcmLxcLaQK/rnvaoNuOe0jukLaho273UlB8QGaA/ooH6\r\nHotYpoBBIJElO4ZxsyTkfh6UhrPzrqdm5k8ykHyuNgCF405Ngq0DmFcp+Uod\r\nS/rq0QIrE4tCOcpAHXPYHcSg7BaMl8trm/KgHM1lQwdeWtNR2afM1Nwap5lC\r\nO7SOI0dlDFYxyMzeNzMyX42YkDbbJMXN54w=\r\n=iRtk\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-connection-manager_0.8.1-next.18_1663859547064_0.7396784741857956"},"_hasShrinkwrap":false},"0.8.1-unstable.24":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.24","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.24+5e407ac","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.24","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-KXTEKmHa0uoJh4DEI2VCw+ANTpyNjyMDR91/6htVrl0X1NTivZerjqTPEkcMXDx/gQEW3kpMr6VWm/B6vKAkJQ==","shasum":"10d0a0d65cff92670c72f441439ef7d70eb05181","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.24.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAReg2tbdU0OMG0tZ8NXHrYg9mjzdvDXA1b5AhRG/PwbAiBse3JGjJGhpwD2SZedHpvfwjlO1NmbtHaSDeJkGx6sHw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNgjnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmKg//f09JHfB/c4HyFimW+YOQsTm9UM/Mbvlb7UQhP9B01uaRNcTO\r\nwOtRmNnEvi++HeBoNHF3LOATzoTmj7wp3dw47hUe4F6wGdh7iubZgNVjlI2t\r\nvaNqSHvR3dEWstnkzKqbDkKfRii8peKg/FAFgS4XXY9U1Vg7T8EcpPJTH+1W\r\nkGtocDB9jFz0i2M6udmfR8W8LPJtCmJxQZCe0yY9orOAB1u+Fvlv7t725Dw9\r\nzzfoLns3aRQn8/cZVgEMWAelu1KLTD1efO094hIhftCcXMFs0d1giFUWx6Hz\r\npjFKRl/xL+7Py8uvoV6tUCErxWJ+rkEaZfUYNS6PStVl9o1SUBo13bUkhktt\r\nQLFd21/Bkr2Et6W/NPw/Y0BK3wURu0JRtE7heanRlU+JBy/d64wvyy1YfEoK\r\nfngZVBsfZAbXxx5a3cYF7MhQ04sFCO1nyjvZOY6fh2KglNIh2F8tr6Ac3gHG\r\ndMEdG5cKok1a0WWjp+NbDSC2YJtq2bGXKFFruzBALiWs15okcRyxlvGKUVH3\r\nxd05CLFSTCtb0AVJM7ovpVFWLUUZxQUPmja7d7Y5ehj1NgGOAktba7X6MIbX\r\n73Vxt67DIoA6cp1eUx5mvXdW4yhZssHkpIQSE/Lb9mIY/l5QKpxEzybrBXEf\r\nQFQVviHuG3QfBebNwnlG7Qlih3qYtajtA1U=\r\n=+xuV\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-connection-manager_0.8.1-unstable.24_1664485607444_0.7153508966759388"},"_hasShrinkwrap":false},"0.8.1-unstable.25":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.25","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.25+8c8420a","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.25","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-2V/UUa01YK+LNlcJk3qo9PEReaWtS3vbgNg7asT9liT8/amaugx9ywRIH0aLuwwHBJrjaLrz2TCaGIyIjppNow==","shasum":"b58880a23c64beecea1ed7818af97fe5e4fcbf7b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.25.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/xg/Rc8Bud9e6+OlWE12UjBhXVSO9evojx3Im9QNBiQIgfUWJUmsA3yfJYGsWXkO9/rx1Fb9rvQZxW7m1qrofx7c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPJUKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmouvQ//fADGMwskJ3l0+mgv0/NWtC1mbme+gjpf0xTOydEFYnseuz2o\r\nvibJIkK13QMZhaI8Iokal1xwWFFlEschMCuMKyTVflLxXTw0Wp3kslIiQs71\r\nPLWvGi6Go9clRHowmjm0MvmLHiwdYPIHKm6newK1CEV5E3DE/hFQRCmmcpeC\r\nH/BFTno1goV6ikViYhwlg6mVrnMBy8sFmf7hOxmLPcmKciAFZ5GTD44jSOIW\r\nSDG1LgWhxAwkH5fs02Jct4sScl4BkrIkv4aJp2LHwuRFQT3y1veFB6oYi2MS\r\nPWSNvfOVHRd8/EVn6mKovkbb8RO3CvQtSZ8KdB6UkpXjkXTdttbOrjZx6nBK\r\nj7Jl28F9uyWy0lZC5jOZ0rJp3q3jlDADt08EPbV+qXf0FIdpHNyyUR9SjsrJ\r\nipBKGuFr2Xvp1q4HZgJ31AYTj8DMrji1y5N729lYT+9eLrHQgItrbybmUQ6Q\r\n67uzN561/xPduX1fHgeFIaiAQfgFndM3+7uzWuI7EB882ynVWGzgSFe8BHaX\r\nOKI3ab381WHDLtOlNsGJ1FqNdWXzpwyf/aFnO61cCgrvDtayEsi77nsCpo/n\r\n2JjTRClc3+VH8kQFRPbIl15gGTW4M7tew/WcF9W6h3J5xZWwWrEjoNCP/CsF\r\nVrDhbZsocdwOPy7aaAj1/8wKUH5waizFUn0=\r\n=49P/\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-connection-manager_0.8.1-unstable.25_1664914698618_0.3508999041273506"},"_hasShrinkwrap":false},"0.8.1-next.26":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.26","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.26+4dc8dea","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.26","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-zi0p/l8Vryrq4F94TJMSHgWzenhdtMn6PI7lH93EIMkEBxsx9qZ4qs/oAeKQBGKN9/lc7UVDTtAjV9He19STcA==","shasum":"2cec44594865ebe5f04e47c5419c8c72df5a85db","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.26.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBYLAkk+XO0ZQZCiRTyEH372k0hgUnRi6Bqulmv92ko0AiA1h9SX9UwGFietbb9ORO2bawrK4W06XODasggmpQ/BhA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPJx+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoS0g/+Kdlih3/ouw8eLaZOmXhpaCuD4rK8ouNGt4dR9Z9f5fM9EbWP\r\nKVc5AKwf4OF9krRKs1xrFCVMX2E5X7Bmb8IBalm9x1pti3flYdebrL3iI/YB\r\nY7EFWkuhw77l6s10dsO2DV3IXq0S0lIIP+eW+zcVsg4u/NY7trK/1tz27qzy\r\nlLjgWh8Daxd1hx7JcZ1BeIG2BiP8HSU+Ys/GZwvkt309a3XPGBdPbQTMOaQ/\r\nqnhzTvaYATY2/EO5eHYcSpLeV/A9lY2U05B0bM+PVA2I3KMjZKPZztz6VlG/\r\nNdLmQ5umdmszD5MPbcTazeb0iehJux9CGZMLoE5FLRh8q9Ybv4roYj3hoY/A\r\nttnswMeLIWGqtHev52iRBo3INZom1IS1MkgyCvuFY4C6t2On455vROtiVnv5\r\nPyJi6JKndTYjzDaFDHmUSJo4csmhropMNTieO+IqzitYZ9XyBmoIvP+P8Pm/\r\niNalo65uptl4YSqc1g98zHN/FzxdsWnpVC+cugVU2Qd5VfwO6n4h2AdCY8js\r\nJD2WhDlFZq3wouEopunzZBIEgyie2c+VDJorCBZ/1f9y0r+5RIMg+G8CZRSH\r\niP6MV2y1+yWuD/KDNruN+1Io0azTcrgKQVyp8gLOD5PHCLymYDN5+5noGNpO\r\ngchhJLLPRSPTvaFhp1SwzQnwLZsh0NBgcbc=\r\n=bNOW\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-connection-manager_0.8.1-next.26_1664916606540_0.2654720409067435"},"_hasShrinkwrap":false},"0.8.1-unstable.27":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.27","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.27+b3caacb","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.27","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-aUjdCU+MVNaX3avKJGZtU8hExX3a4qmZHIbgjutd72ieQKKCPBQOw8JxMqkSCRyraFCfBuT2HlzcspOakHQOEA==","shasum":"abfbf4efae4ae3070753b5e8bcb6e3e8f4733dac","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.27.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLGvLm/WePu7J9tPB9rK//BHYpfTUlY7reeQ5nq4KzvwIgB7/2n/gyM/XGc+S+/cZbvFsGbUXa2+9lNHnFcl6dOIA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRpwSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8mQ//aQhm7rm9C9vLZNUk+u7j52Q1a6Bamm+DNtlm4pxtYi0tWUB0\r\nkCcgc61gafLlm8rty1OKLsULv9R5XZZlDdCwxlga3/fiWpfBOqDnMXkal84O\r\nnbLO+/tp3cVkAbluNlGXrFATj22azV3SL5x+MybELzghk2ljSILKdXxKKEiI\r\nefxiVjYcVlg9+6A7H6Mq8prfGImRFf/1XQU+VPVb3QPgq8ET5CyGWlN30Y0y\r\ndJHug0QP/50WSYgQ4TxPFodA2WH+CMUh9D3lsPgUDuXgyvn6DWdxTCMjfg9l\r\nw5YBG4PiLlRJKJ3cUZw/8KcDQYt/ZROB9VPS0qbNGJ39BhBXdgXz+0hbupgK\r\ngA9nGBysC1KfR89NimynkTrDI/uyo5eodVvNJb/g7q1DXSeUVv3XqNVCxG52\r\ntpxKpYE/XV4ZfLDV8t4ruWMcpOrOGPebn/vrykYMACJJd/Z+qbTdB0BfIqNm\r\nnx+rOalrggajvi2sehc7lJyY7pf8IS/gNqoU1mr5wmt2H/qaWBa4idLvhdjP\r\ns3Yxvq2OtMXiRBuLblCsawbp7arpsitpbWnHaXtIMRAoHhD1y/twosBXFTg6\r\nPU+3Asvj9qG7UYHHm1+vydE7RTQ8/pDG5atebkogyssfNJZX24cQ5t59nqfu\r\nrh66DfsV7hx701fWy+sj7u6LbgeCq7cRNc4=\r\n=5lpG\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-connection-manager_0.8.1-unstable.27_1665571858225_0.7360773025014391"},"_hasShrinkwrap":false},"0.8.1-unstable.29":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.29","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.29+f5e1817","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.29","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-JR+A8yLqC5Hr3Foky8Lbpzt5e3o6RpPecXaKqVBZPb402rvfRM+d2EohzYocxvuGnoBWuTz9fCPqgGW/D2FFNw==","shasum":"1156d955ec6d155d49e0a9592ec81fbc200958ef","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.29.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhDi30o7DqEVbP8UDIOO++hOJKRUIS/akGgTa3FQzOxAiA9ttmk9i/QCcczXrBTrTwuR0e1m3wKn9fnC1FPXJp3/w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR7o7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpH/RAAkRoEfSuqgi6sFDrrrb0W4jzfTF8IXE+fd1elkW3gg+t0YNfi\r\nDxADLMv1u8DWKPD7OQSuRuM3NucWu0dBaeUUVpxKQLReV7leTVe56pPCEcu6\r\n+/Fk2YE+2ZMkDzuFANi+6B7ExSJfz7vkwXVBxZBdKlUC4PRGWWXOpaO09dta\r\n4A3ifJrzaYinBM1pM7q6a0HJoRfkxSqnWN0q9riLCaUJmxeaPHCJXJsekR7R\r\nrmXdRTLM5rHXh5yo9mSKFaQ1H6yaMyoUaAnbE1Sbu8KQihlAmjMtII5jin79\r\nLL0EEMHU0RBUu75K2l0xqFW645qR7IVCLX8WCAeJu4ZxZX/lUs0P4kZYHx8U\r\nuu6IRkIL3y0WDP0b2w++9P+f5zhZJ1AKMsXTR/8QliBVn1ELQ850ZFPTbkbA\r\nxbT3hWqHTjt1+J8HB0oIJkLRZp/1qGuNt/WUnwZNMWP/HATYMkQx9UOrhT3T\r\nDSZsWXiArx78d0A1wLwcv25i0MiFdfvEhpG6BubAmPXhu+C8xelUPmqTbxL/\r\nsD1rtMes/N1JzQoHVCTxnRgjohCs780cCbQVtZbzmuXWxq9ySleg0gljiyIL\r\nhLIqHzQWtP3hkF9zXQbWSLEgvzMixzlimSyOVh51iZ020/HZU5/JPcjYnU3D\r\nSGQjSgmQkdmNSZMB2GDG8dF52ENa5mXx0r0=\r\n=HOu+\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-connection-manager_0.8.1-unstable.29_1665645115543_0.6050748149693341"},"_hasShrinkwrap":false},"0.8.1-unstable.28":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.28","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.28+3f6cc47","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.28","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-JZV7ZH9K/STYR+BZgo3CY/K5d2AWN0THe1plAXB1Nc8PgfULPl+f57vtXkSUsWZZJ6LBxa0IM7ymVL+HaY47Uw==","shasum":"4df014774c04f874649edeee404e648571025833","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.28.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6yME1jrcCJ91ibm+FfpRNPWhFRWTu+B+uexdbU2eBhAIgK8gQB28tA4UWbjcDHDVWFQuCPr2Is0Ofcop6Las9DGg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR7qLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqjyBAAhrEvWFfRYfD4BzGJXwIe5e/J2ZLWivxHyMSnoEv42c015sX4\r\nFqC06yLgJyVfOLYUUvpa2Ru+3k/eb1RlDCjpwjW/XX4+w9oQtUsFLAchA1Qm\r\nKJ3QavkHi4rtAobJVgxZ9gtXDlh4z5u3/cWs6GttU4hNJFESvUH5umQTio1t\r\nnBF1tVEEzXMOHT2wyjNvP/pvatYEdTnEec2ccLy1WptuhraLusdVLOeHBwyA\r\ni4c0pDXx+MN4DLLSGBlKbtWd0ExltAhooxp1JKfkmii8HLRxgg+kZh7txg8r\r\nq23JuPalwcdL7M/WsuZliBkoZaHNxXtNClpXK1BqfJVhICSIxfdGIKDpJsst\r\nfNbyMq+GqjS83KMxRFzQ3Uto61C+tHnJpmkqdeJxMTjarj3DHgvCjgxPTiuq\r\nmywJ7x4t/ScX/bZnAveoXClK3XsVwJrnoWQEfgeapaVHz1+Br5dzPNSyx4YJ\r\nKKgxhrmZ1isRIlb1TFa+xpSBzZB/xbjOvBJF9aV+IlgDSE7U33yxZUTAmJap\r\nc34U0jVgzqGZ+IxeMRoElVRhg1NAB1Kh7TNmuJjHOKgcyQ4mq0EKbnsyWE+z\r\nEKbdlGj4lGdKApf+NPJLrS79N3WdKJ7CTz+mOzHOzOPqoxxFGvqOZZ0ARGqM\r\nUT2F+RSQPRdftdDierGY4zEUxJTsR9WFWoU=\r\n=4jLe\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-connection-manager_0.8.1-unstable.28_1665645195519_0.48230138392420674"},"_hasShrinkwrap":false},"0.8.1-unstable.30":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.30","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.30+54625bc","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.30","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-tJi7yd82/R9gB9D/QRJj7VlKakm7i3pZ49CebIE1fYRsqqNbqFzvmcWsFJkCANmK7+AbvczzBEwrz4E8MZyusQ==","shasum":"a09e81e541705e5cea351b6bfb0104360b51fe2d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.30.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrRlSLT1jn7tddR0pihTN+FHq8iWxUIuEUyYhFiHM/ZwIhALxsR43Edfuxp1+6ZguHSyvqBgBl0iRNLE/fiG0BJexc"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR7uWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3aQ//QPDiRXTNLudyF2/nTX6kqdHk65ndYO5hzbSczFIiVphY8Rei\r\npeOKL8cNNS5WYV4NpKmrVdOwz1LjkvjRU+1/QMrVhCl92SAJE/Hb9oxrjrMI\r\npqpvBPp3lIAgDbEutLH1hAQqaeyrQcGX9pldLzAO3ALSXs9sw58+n0R6vUWj\r\nE6+r5BwzFlVpOrMTOUt2oL8SKGFa3S/fNtKXHJlbzagNXIAVD3gjW08XVybO\r\ngeMGawj6WMJsD67U8m1YEiKly0/yPCd73zs4Gmu9CCNb6YiYMoKUR4FuJzz0\r\nB+2drZC1DKAJAZO4Av2/RdjzqOgJIk4n1XxIF5aUptmv7G1IAGdcj1N2Y+PG\r\nIcIyJXaQJsQmTzY1SdGiaJbOBwVEvd+V0xf8PqHQVgP/vhmxNyKESFU7p5aE\r\nOCdKtWtfyF/xGcvfKZTCgROqNqWOvMYEXxrpwfEoJetHJVaCy+jLCy2zL7QQ\r\nzSDJgfK+leLn/zqUjpUbop5CdQHQMMTDR1uwcfDQQycIzi3fngB1Ah6YxoNn\r\nTQVobtItfIX4e5xWf8a5KXJwMC8rwaSF01FHgRO5vhY7+pyjC5y/j1wFKoFA\r\n5wT4zu81sVbuzuD40vieQ4mIMaLiNl9iXV+WAzq8Ui/TdTEEIq5X0Hd/Z7iU\r\nOtyPdwrez+eWY/yJmcfykdpii79gGW/KBhE=\r\n=v0df\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-connection-manager_0.8.1-unstable.30_1665645462361_0.9843456841691474"},"_hasShrinkwrap":false},"0.8.1-next.31":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.31","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.31+fe90ad0","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.31","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-Oumo+dGIt5GAKUJ0kKN9lIBK+mBh0WUX8JC688yroXHsgHvRp02UIHkxDjSKhLwTjmNaC3XsVssUuNqRGtBf9Q==","shasum":"4796927d56bb35f86395e4ce0461f0bca61bdd2b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.31.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAvYyROqt7P/38JcZdCdRsB5go0DelQH4OrN//mUoWqpAiEA6peE9fKakD/BodU+yvqmnn+WqnU692iPkY3zKoQ/JJY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR8ODACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3jBAAklL9nrAlutJQi6Q1wjDLnusIwK9Iu2izRL5Vn1Y95XuyAQN0\r\ny9S1Pm5Wor5im+hjP5ZURtnGxLQmNlLPxv8MT3kmgrpwodnr+f75QRdLFAHk\r\nwzvRzN6e3A3aiLfVSmYTyFj4zQZR/4EENOzaBtlwEV+oEvPhTTbyHE4CRZBl\r\nOaZRJ5TAAjKeHxYjtVddYwC6wI58BPteEty/vbf+ir31FYf07sdCEt4j+ot/\r\nsOZCf0TCUTD6egxANoW2VbC6GC1r4OZ3DDuRG3JE5ggNELUdqK29ojs3pn/W\r\nrnuKEhajWvzJBeY+dRZNqFbBr+nswlbq1fqx0ELfu47LJWq0MkUJw7bB+Z3N\r\nACHPq81J1ldbLz4UZxCFLX9HMRubhcjGHwXLaaMLq4V1e6BTf65eYqYLnbSA\r\nlTZ1+Cbph/J4G+BLM5NaUJBgOxv2K76xhBwDNIi/u1lqvrMYwbOgkRP3LEeY\r\nPkORnRdcXGf2og84zSfqpWQYvVR51HCFjkj2EGloee+hc5VTCStauEc3TiT0\r\no/PxNCJhjk8WEhqkZ4/ohcMn2cenjKqS8CzWLH4PaRbNhpR7x9IjA1BvTB+K\r\npb9JxZxDPeqCC//mWkGn6smf8ihVGhkgAHsOtG5+gEPbGZpnTY5Oszconq1I\r\nc/dSj9G1nHP1KoHi2xjoq3JK6YNSddgeAZY=\r\n=JIL6\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-connection-manager_0.8.1-next.31_1665647490827_0.1909443817082055"},"_hasShrinkwrap":false},"0.8.1-next.42":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.42","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.42+5ee80bf","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.42","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-vhf1LaHvv3BXicDRN25qlxlx1jOd6U+QIGinOwN3j40g1ZBlILyvmgcxijYFGGe7Xg8qudVTLL4Lk0zpYBN0FQ==","shasum":"78e955931c5177146c33380502ffd066abb6e137","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.42.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDOPm/u7KkoXqR3Wk0WD7HVZfYkJFGUs6klRra/EdyhhAiAqUD8ZZ2rEvsHHEggfnAJ4ChxR60eLjdd2wxdpnUTe4Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTonuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqT1A//SbPm7Ja/39Av5pt2oRkUxJegs3hRaCYNvb+HXzII36TQJ9d5\r\nsFgfBuyYJZuI1vsxL5HUmPMaB1uPgOq/KEQlvcjgpmNC7xJuClOOTBexMN3Q\r\nUH2VFZXY3LkSzgBS/sfPDeTMWuc4KEbJ5AWiZsFgZ26lAp6SItn21ZXQ7ebP\r\nKec2zVyva/wyYnp+CgWAKupKCsBFZmVU7JV2atEVFg/biCr5ex6WHOVUwJn2\r\nHaNoukVGDf+Q6AZQv33IgZa8k7kCOgzPDQNh0I0V6rEXIbo0g4l4cN8HkwYW\r\nAJbamMlm04+Ev6+f0d9y7Z7IcV8awZaO0wT5p6ldILIxO9QR7ft9zXKE/M2g\r\nQjOlEbf3rK28w3yykuJ27+xi8fEDSPtd2urY3UyfOVJOVSF7EWXakBc/6EF7\r\noOKQuIY/hhcyw3+94Vzok7Ej7382rt3QKFEmn6QZoKc9ODJ4Yz14aOs4cqNS\r\npownR6v8HG54l1NAB405+j2GHi594CGmrqhKC90NxqV9J2woz9i1sWPnY6eJ\r\nNUWHLRETW48Yvy+HxBkBvImI1Wh1Pm38o8q2/G4ZJpCdPQzlhCZd3evEtBAC\r\nzjwIOv0Qonv7gwRlH+mRiZewf6sS3b7Ayy79ICvwOOFTe3XPbVuDHHIS7pjD\r\nagFRNxJPmLMwIpGUuX8Wfo1QeDM+6hALnjA=\r\n=YII0\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-connection-manager_0.8.1-next.42_1666091501983_0.06744083016287417"},"_hasShrinkwrap":false},"0.8.1-next.50":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.50","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.50+9c2d649","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.50","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-ry0wqjSr5KM/7VRPtIq3ZkN3NujZSMcEaYxkSFdSbbDo8ZpTTcZMC1YjwB8+2hmgaqMPmayBWwPKDVrBS+hIxw==","shasum":"9e3ea8b72c9c3ed41cd45017d89f116f793dcd72","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.50.tgz","fileCount":26,"unpackedSize":62298,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDRSPdlbeXjWDR3dwm25ukEuIVEILnb+/0Oi6HdFbSlsAiEAnV+ez0ROyYANiPbtqFYYTbpFa/amj1dTihmvpNmHY/A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjToo/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrcfg/8DOpR/7ahbR/nXEH2BMeKjZ6vPHOmjCHsg/RcbMI7YIANVx+a\r\n4Qz42eI46qOPKXpCyR/mqRd6jxyoWq3AHT96V5HPkTzVouwFtHlvLrTQelR6\r\nm6m/CibieYW44aHYSiRkT7S4VNKnlT3GxEw3FWOXcG1ZqGWtmCBBiRyoSDi2\r\n1PE7LsQgQdziGy0y0+MR43SiV6wg1X5q21uLT7vXVHLrl2/xr16kVWFJ1kWF\r\n64MOEMjl5M8eBYhqSnD9/AxpqSpvwHig9MIHAsrojKWu6HLoHoBVJZBV1N9F\r\ngzq4tgK1kQ2e9RFqivgQH7ZtjHsQKetpew2XMHJTFPA1YBlbBP4rSZQ9rTGn\r\nZrZbxW4jPACep1g57M3J3m7IMWDXkDgL0YfLF50Uc2y6DQ/htuTqMu1vWicn\r\ntMF19zLuJ9KOjdvcYs6dzFMEHavnxQHZ6SZ0apTloBdiHm7pB1C1gICsPBo3\r\n3Fl6+IohTIX6lIO5IIhLBevdgHIn3DwKrBOYFdnsRz0BilVdBkDloB0B9T/E\r\ntneh0JSvnqfzUk5IMgTtJY9/u815qGYR5KV68Sx/9Xz2qKrxOquj7CI8MwpT\r\nklio1Bp/mvFjfISbu/UXZOKovYFzNpBx6S+5z4W0fzpkkWVjO5MZbwHufeH0\r\n8IIHyVtWH01D/CmhjVBrCHWCVwK1PiyEf+o=\r\n=jAAN\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-connection-manager_0.8.1-next.50_1666091582926_0.5669297659090469"},"_hasShrinkwrap":false},"0.8.1-unstable.50":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.50","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.50+9c2d649","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.50","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-MbAk4hfUgp/r4mKhVKZBUBuBM0wSuYE4jXmuenLXN+/hLV5BSSSsTwkjH5TwXrHLw7HkWKN/f3EvzwL+6U8vOA==","shasum":"f1f7527c61445dbfee369e4c208f0f3b9b1ccc05","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.50.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWrSqlB0mFaI5Lmx2YAR3MMhTUG1IK4IBZOTX3Uq8mUAIgQylNSuzoKF2xVP5IUh/n7+LNQZKLM5ndkM7tzBEc5V4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWILxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqc2BAAgWIju7tLlUn39BD1atLKGq5f6ogiUbFWz6kPjggqvUi9nB8t\r\ntx/b86qBadfW5nR4n/PXY2Th4W12tiAw5dNIiGwNwSwRM9Mfy40UQcrz3VHr\r\nMT0yJ1y8Wb2ZrC0Oz3Rp9KSgiDvtHk7AlfK1po6y2zfRc+zVNfzaBRXKwwum\r\nHjaYfYrhh898dS/ZAgksYCj0Qkd+/C7iIeNbb2dLGUJJGyS7kkp4ODXLRsBH\r\nqfX8Fxdc6dwDyVuHJ4nemld7bkK65HRFXjx2QcT1y2OtpTjxrcuShQQCtVNs\r\nbTiR6V8X+QDya/2KhtIpqy8nIf0D9LI/oitYYa7n7jCioOPp9whP/LjR72T7\r\nLaONtjdUvYyywMG+BaSXBEpUDUp6EUIuWkTsjCanF7lSo0piEF0l5hJrfHE1\r\nGApyVGECgxpP2WWG6nKxO5r7N3MMNvcfZUl97KKuQ/gbLkg87L49vnSYeuvG\r\n3GzbhKqEr038hr564fDz3yXAcw56ZJ6thpQnppJOblYcOkEj4td05dm7VL7B\r\nAQgZjHshKs+hsqVOYR+UegFi9e/3uRgaWvhthMUu+OOUmOp3F5r2rKqrCLJf\r\n0TNQ7uu8hPkwtLiyTBgtMA9G+iKB9qRjyxmAK2JhQEY+waA+mbv/oXvSXQu+\r\nppXO6e7351VNbPFrX0uoE+qEY7M0CTI9lvk=\r\n=Wj1Y\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-connection-manager_0.8.1-unstable.50_1666745073287_0.6254655587443205"},"_hasShrinkwrap":false},"0.8.1-unstable.53":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.53","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.53+25b005d","cross-fetch":"^3.1.5","typeorm":"0.2.45"},"devDependencies":{"@veramo/cli":"3.1.2-next.84","typescript":"^4.5.2"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.53","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-Rg1lB2B1LpggCvNa9NdTMvn8k6CFnSesXw6tZmHrEs0ynSIPa1wqlkiPMpLBdpBWBxXQiBvqH6tE+OsByI11BQ==","shasum":"cc654f93e67ca46eb2074c3667aee5a3df1eaad3","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.53.tgz","fileCount":26,"unpackedSize":62306,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD22vhRO4G6XuDyRfFDwd8U6vTUDNwB210IGbie22pQMAIhAKwMHMsYHUvYaGOxJrpYloeRNbTmWA/b/Scuu/YvxSXP"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWb9gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPQA//aoHOhusDvhwmz5u6nDgaylcmk+pK9hsimCZ29u2/UsGMk6zj\r\nSkNgHdOq7BxdhobVDvBVfIToew+tOCpEokI0en3SZHOZU0Msmwze3zSzQvKr\r\n6a/vAgJ/U18YpyDBZfLRb85VuuD+O1oMVO0jC1spuPQrkrJRJetkeSRLRHK/\r\nUuKWYnlFYOcFXZ2f3Cb1TUZT2A9+xirTXAfX87mSut300ZijAwFsfr658cU8\r\ngc7Um81Ec70ocITdpT7aPI6HvyWQTVFr8bj8vDQBV8KnfPgtX4ALlxD442y+\r\npjXaihcnms0doiKh9eGLwe+u8f5HslO2YOpRB5zmJJlRcrfmYfzJSQ2Q6pb1\r\n/Uro5Pl0TkYLazSs92UkHtmcdSACPWl9BgYoXAhdTJb/P1QutUD5zC0kVglk\r\njCiIfTliDmGcIk3g3vwr+0e+76xsFndOjyxoY/ICHIw3cSDcbO9Wg2P6RhPJ\r\nckP8Ko8JfwtKgTqeiwwUqqaGS1A/o33cQ9haMFEQMwn6b1ucEFWfLM+fN7QS\r\nmAJE15+WhB+EP8pZJPuAxTqMsPdQU6qQUQpJ1TnYp0qwUFqO2RxXUEaIC1me\r\nxoBY1Qh5AVHT22VivaRFyASwHsvwEImySOFCgvoSW6NG1g/5c727PXjiQ9Rg\r\nU0JApwbVYlzE9Q6bOdDzU+aqtqucdkE/VPA=\r\n=kpJ/\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-connection-manager_0.8.1-unstable.53_1666826080265_0.9714820229363028"},"_hasShrinkwrap":false},"0.8.1-unstable.54":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.54","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.54+652c6d8","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.54","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-ufQ8CxMQ9PO4hGIx2uFz1IWM8G/Vna0UjXNtR8t1a7Vk3bC2+KxCceVTLlYypsu1JR+pgGLtpzvyhz/yhDXF5Q==","shasum":"2c2d190440ec599e7bbfaeeea58a8f0cb9e960d9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.54.tgz","fileCount":26,"unpackedSize":63251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+jyN+di8Qm/EJQN4vZtqLQBMZBVP1lhrk95wjZyvzJAiEA912iZWf+2VaZCzCM5wVTd9YpVL6SNHPrLvTL0oAllx4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWcBfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoIhw//bLWOSJQHIxX4EuRqMj7XHk6WdIvBFszbGclOoK0+zzcCZ2qG\r\nxJL8wHZ4+CWfASK2Ben0X3kqkUtB8qiCfnTgHo7wF+q6STBGzdH9+p6HJSPn\r\nKTA4eVWnkAqPrjNiwqwUIYLQ1T5XXq7DGgA0rFvGVGpBjCZ/2XBN34Ujq1Dt\r\n4GLQMG0BWiNI8tmQsOWIbPKAXFdXzwsU7ZU0bt+rZjdHu6b/kah5YpcCkulX\r\nuULyQNydqAekok+JS+AcY8K1gDgfS1EXwlPOfVcNIkK5lSNPjOyk/Sr4mHwT\r\n0yfKsp/mBfXRalvuac7BlbiV+KQ8w8bQWRari6sQfP2smpee7JsEMdauZ7mt\r\n+BNojjM5Z57fL5gJ7y1eTzUwK14Ah8fs8iJFBt8Yk7/hpzYoGRLc97r3938X\r\ne4UFfGATmb3/WJ/BsfzYjNRjxrQKNRdzMjNzOIMhgea97i0xtmA5PL95w6NQ\r\n7HjOo2UAufSbOFsATHfARfmqeQxEUAw1sZJdrNohBpFBuyB4BXsljMZQBT1x\r\nvdyZz9yzPE+YlVP37kj6V5Ar61chWw98zzfBW2sxn8038ymp2OJcQfbbmbry\r\nwRDnebXOHdxvqzFZ9K73WIR5IJ8ujEZDjNpPqEZKSq1GRApbniJlDw3THdiA\r\ngX7JOYxY0UkMx/vURg7BJ0MaTfLg9bAsHJA=\r\n=WJ2J\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-connection-manager_0.8.1-unstable.54_1666826335674_0.24055724993036476"},"_hasShrinkwrap":false},"0.8.1-next.55":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.55","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.55+67d3bbc","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.55","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-dWW9n0iK/Ph9XR1Z03cZU0wmx/rEAM8ltXlKGk14ITrwA5yaE0FtqAr9wnW3msBX0Zd8kYDZWVGAXUCe+eBBTQ==","shasum":"b309d767aed166fd84919cdb78c80dff92601f0d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.55.tgz","fileCount":26,"unpackedSize":63243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFxrjZ/sHlDq28i2aRFIub/T9sFIgbg/6AGm3KldydawIhAJpqVRMrMn35a7bDR01xx5Dl1mIYX7j/NJaJwvTjoylW"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWcNCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrU9w//VQym7QuMMBJ9abVrejGRDuM+0Ve+q6nwfOo4LcwJeTcGfXi5\r\npru9c56Q6k2BE70zdwpqvFau49olz+87eFUDuKmXkShd4J/pbuJkV0RXzLx/\r\ne6/Y8JS9D2cmz8l6KkQ2wobaXC9P6LAlzmhor22JCiIDIvhGGHtM3WJ/7K0f\r\ngG6GyJPu6kQ4GUM69QnIJCW3f0HoUE0cO4ktD9GmjnHTu8cdKJUNRqdpFyVE\r\n7rxuztV5SVB2IYYlQP8DfPeE6PsPEUHGLRczYTWKduYhWcbXmF8TNv+h0eNO\r\nR6+T5WVFLYjSuTxVDw56lPjup4yZ1apD8uzNxa9N4Goi/ZUGfgJJo+vD60Ys\r\nCLyKZSjKZ2+q0ADeOQXHaqWFpx2qu3JSuctNAP7rhdZgBpXo4ynTMwiZhC8G\r\n+9u1PJdPtM4YDn1DYmQw6EbdXtphvnkjYlLP+yoFqyS5Hn4uNOV1vi+5hHlm\r\nSaB5lMIl1YqeUsVA5GG8nB1ERogllIcaP2qrZNSNjCPaKCFd28vD6hS07rpJ\r\n8rUY/xgwQ1X44hra1Ylv47u8yG0lp/PVRAg+txCXN11WRKte/JYVxjeP+qZk\r\nKI4N/xLdRcSqNlZ9sS7RK9wbUIoga1+nv9kalwxswyN6Nav1TXmZgJzuqpFm\r\nNg16xy58xao9RnqemTEne0inOLSX/XVmh84=\r\n=yfXR\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-connection-manager_0.8.1-next.55_1666827073859_0.39078070902343676"},"_hasShrinkwrap":false},"0.8.1-unstable.55":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.55","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.55+9a710ed","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.55","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-B/CifvyttzRbW6rc4+m9V4x5l3j+6LU9oCVCZNZtzhc84k2dcpZoEpWrLCml3iK4W5nCVNfUDaiAEVmGc/VN7w==","shasum":"389967d12806a849c7851b82a2a6ca61b2b71bc1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.55.tgz","fileCount":26,"unpackedSize":63251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsKav2WBPlb7Va7doTwlCPUxMuS3AIAbO6ztV1ZInUNQIgJ8JtlimRDaHIx3L/jzO4C0D/T99udIAQ1izzF1XC4b4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWurpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQpA/9H6J74eEFu8UiTsM7uVstSIjlgRj9eNu7wcQYVjWI1p68eHBu\r\nB4sZEcnTRDR5CbGWZ87hRUavBDGAaBrP0Q3caSMBaAd2b81ytir3FPH8+RKT\r\njo1D+3+ENLZsK4PlXeEmELSaobzVQT1sj+Hgi77+ALhxmKkJP88YnQ/TSxRI\r\ncbopg5oaRq6vlOedszNkNghitKgYGj0pNsGigzE7mZuWXQCNf1wNBH2PswEu\r\nuJEAEAkH7WRe/bEPXNn2pZVqn38jcLPcxlzK56ZcLx54gWuBOc9odq0vXHDT\r\nTBUy95wmfnDoAOmFjbojm8sRHE7UOgz3a6+zfZbHXHTn5Pbgv+hxE4k5zh1S\r\nSwMGL6dNKYQ+RsIMFrE1g2O7lI4STvCsTewDnG9KElXo9PDPtcPYRZP496/3\r\nHeEznB/igl7QgdUsWNsS6fT4l7ywhatUIHT++O9IegPCqCt1jKgjPmKaDkJ5\r\nJ1XJoofpLXObU+Ff5/GOsCMa01cxUUtaCvje/gkNJ000BtHl0bDwAb6aazMU\r\ny4C1hS+kA7TIQRK2dJ9Ia9qI343l6hqfV3nT38eywvsN+jWAS6Ma04htsdBc\r\nrckL2FKK+k1e5wKWL27lLPcQXA9Ffv1qpSIIjMHKSDguCvl2M9+zvO4WQYd4\r\nGJGrwKSvHkAk+1pgIRzCeh3WCrXa6nByJFk=\r\n=cTou\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-connection-manager_0.8.1-unstable.55_1666902760846_0.17208426325826065"},"_hasShrinkwrap":false},"0.8.1-next.57":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.57","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.57+12b0e93","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.57","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-1YA7dkkj65vZr/lmfsZnaoXL5xJSnZ9t6scofq+1BcHrRWaIZNqsmlDI+2IWIxEc+tR5O1efqnc055Um+kwN9A==","shasum":"22104cc18f3bef97598ce177a16a8aab75839ced","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.57.tgz","fileCount":26,"unpackedSize":63243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDvgVSuD92IqvUG6erbi1NJ8VO8wtIdpIGIR/j1rhA8jQIgONwrvPDwsxyGSO/8Aa5l2IW1VAlYVqj+kNrJfhFrV78="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWuwWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmom3A/7BBv4kKwb3c7zOOQ3QkmQrmvOsfZS4VNcS7D8mc2H6bWt8fB3\r\nUeGKK+w67F32N0QzM+K8gDD5bJuIrwZYZtQAk10hsLqMQq1MzXQtixQIimPn\r\nf6Sugn3bknl7TgRXxF6UZWTngdF7/IrmQl4wzNMtbi7buAoO/iivndkkEqnO\r\n1jF+DsQluY5QGnd2y8jAz9VLDbZbaHD8w6cPgNk40Xdj5BMqUCM/aeanDB7I\r\n9a7n2RISAlBUfrQMQ3gThR4OSMhOCzb+yhryrSAWiMnRne8fOpR7atmZcpHo\r\n0jayOfhbZGep49ZQOrjuPNWXnKCoaGqslUyVN+Tihq10VvwNnFdhXhcmhBlK\r\npW1z35GrvJE8VgI8Yi4f36TiJawgC5Y53W66NvAkYsMuEHFrIovZBTlBLONS\r\nVEPh+3/+uJWERxMAARVTkQlUTP2CSHJ0hd5kMHUN74wUO42hIPi3gQLrZ3Ec\r\neZSMJR7aTX3B5+G9C+r0VN2QEcL3vHBLcKfMU0snle6FnXBCxOw1TcyQ2qHX\r\n2dJ6OL3Agtg7XUxH4V8xoNrKtuhlEZo0bixE4Xukub72q09iLCtvww6Pm7b7\r\nW+reCbCGPiEu8JS+Mb1FrxozOkPhLPoPc+U5X1Ie6BbIMdaa8XeI52T8co+i\r\ndsn1+4+on0vpZS4adUP6VnwNpV1lDGCgqnU=\r\n=9vvc\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-connection-manager_0.8.1-next.57_1666903062377_0.2194527104960029"},"_hasShrinkwrap":false},"0.8.1-unstable.61":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.61","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.61+5254adf","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.61","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-QBw22tYXwN/jfby6vkDme3SNyNB+xoLQMTK0khChxL9kElEOF0PRrQuNE39oNioONCEAPgOu3SVZ8supNnHMgA==","shasum":"ae6b91bf9e8de61cbc0cff35ebf07ebccf170756","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.61.tgz","fileCount":26,"unpackedSize":63251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3MsaLjOrYdDtw3LqwX+2AvBtq/xX4xNW7Huwz6+kYzAIgMW0Qjrwqv8UFLWdfoDxhHu9RWC1VaJQpw8xFRJSuYS4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWu1+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbnA/8CimYdjUWWzJgld/OUzXJIX5Kywofpu46Nd2y0VcHWYwIWqif\r\nGz1bY8qgvmzGEEGkKx3s+YUKdHjZlx/s4P/VN+t48GNfM0wptD2syq9U/wkZ\r\no1f0OdG+xWZ8v2y7de7l+7dla93XAhU47ZMYPbM2VE/Ar+jG/XleOb8BcOrI\r\nU3R5yX8Jc8GkDzvMKCOQatkvXz4jTRpMn/gqXOe46XQkn0RErY6n11Ri02Jr\r\npnoIO0aMxurKYNYkhPCouDa8iFuSR24Zn3d3908AxsT+8A4yl3ToZ550xs8E\r\nEak6MwepRcnK7BqKuFBWqRYubdljoKp7rLiaeL7MZ198cfXryDh87yjaN7HE\r\nU+HTy++gTOltv1+6fHM0t+bw0WMJvC7UhdAsHvTVIjFmPvgLeUf+uUfYpdaJ\r\nvR7pICs9Jf4p6BEwzbDfA3LIVGQLV2/3NiOvg/WK0Y6Ua0ZmXo2i4JIh7+/i\r\nHeRJizTz3VdeR86wlwXDeWw3Glo0Z+Jj2L5Kh3omYi4+Z6rGb6HFvB443lOT\r\n2JIOMdfbls8hs3JEDPwxqNAeMsSvJMtUeMXk++bX07tB1Jjca2LFzBHm1Sph\r\nis79VNd0Uwnmx0NE2IoG6PCwtVvnPoTQpSBJaatrwRoAz90dbBJ82P1/rDpJ\r\n22SeJII21z/9bY4ZmOStXMzZTSGDpzRs8tg=\r\n=/9EC\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-connection-manager_0.8.1-unstable.61_1666903422322_0.33569711413878345"},"_hasShrinkwrap":false},"0.8.1-unstable.63":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.63","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.63+469843f","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.63","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-EtnaxE7S4CJWuYHIPO7opXdxmG74kNWze4uHHUYUjFrzpzCnzIGU7StjfDCT4v3GrGmgpqzv2IVkxalm5H4A3g==","shasum":"5e5996d9de0626dce2fc018d9f1d3adaa4f0328f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.63.tgz","fileCount":26,"unpackedSize":63251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTjn8tA75XaGsDCR7EIhDI1UQLN3gq2Cq7AwGZP2/0cwIhAIVE2q0dqxF0GAgyC95SGwxeVF29cihATmUJRIuajt/n"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWxwuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovDA//YNBG37BSWGtut4vNKrO+Z9NgMgUoBzUaqOtIt4wko17snXMd\r\nVTlPtAfmczkYYmzq1TH/FWOrJzCvIZ8r9pHB6mPtrgP32SiEW6WtXvjv/bZN\r\n1X+GbBrUza55mEkc6coZwen80DidKyTsRE3Bg0KdU1vwt6Z31ZAUY1QNE4SB\r\n23xMDW3Elg6G1ATfJaArC8s1HjNUDKFFA6IOBwyR1B8vLF6AuBee5TIk+YN1\r\nBTGfvIZKYq6YU/8al9O09u8ac1cxICmgmtl2UjdKLSDMYBNk4TbEbUlSKCDq\r\nJ5CmG+Y35wo/2hNXxjoTdE7vGv1TftAhNim1Lg8wean/Aay8ae9UMxUbiEEx\r\n8I3LYyrAuylYLVIJJ3Yaq0rRy7wR4mexJWIXpNZaim8MKRZgmh3akvz4x/y4\r\nPkvgF4HFXMAwlCZA3O3S23hnhhx5ZyLoqYKiBj1OqhmB271CC/hM6RMhFgZE\r\nBpyYg65C1jc0sy8E9/K5KBQR4j2OvquJRUcBAP3N5llTSPWMTqnCU1pkq7tW\r\nz5LBb4+7Mn55aLqe183GYqnMx+TNYFD0OwKz9o4JpDliXV6A4akdwbK/e9ng\r\nT9V7K6e5ivpJ2qZ31YQ64ydTamw8nDU6XbgFrTuVT8Ej5gN3Mmx+x/tI2zWX\r\nKQxP4o6DPCV69ccZkDrf+AxpB4At8nN4C0k=\r\n=+0RN\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-connection-manager_0.8.1-unstable.63_1666915374550_0.7289187857000123"},"_hasShrinkwrap":false},"0.8.1-unstable.65":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.65","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.65+d66c11e","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.65","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-RfEDYR5teLTJKBDgKUfCCe428Y+t0k+js7roN5o7+XmrXoQYBlF1aC2wdI+TjJeY7oM/duD0M3T/F9YPYt9Y8A==","shasum":"08a73de3ddb345545d2fbb3ed4e668d3636ae49f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.65.tgz","fileCount":26,"unpackedSize":63251,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXY8tCR+HKu9E7P4D6gtu4pN8lWU1YKjTGKll0ZoYOmQIhAMnv3VwhKFkViv36exSgJ/MsnzM7JNKFjEXiv1IPAV/l"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjW5e3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmorBw/+Ne5VI5maKF0I7RRNeGeyu+9u87QYhjgRubLjfLPKFRYEpeEo\r\nPhp+oBZFGAebVoL2+bcCEutPb6TLvUcS+wanb4i8Bnc5AdI5p056RnYc+M/1\r\n9HQYo09WnD/Q/SXeuOzR1Ae+CJB0VmNHyi5J8MRlj41aweHLU/cmsFyiR6GE\r\nGkaMD/JHvBl5PLF79Yn2zXSDQxiHkSEk0e7Gzk6sO1KkRH47pXO/FQOVp4L8\r\n87a5TWqOapfugzs2rCDZ7czXpTMtkRq5I0eKN923+l/bX/CZdzAkejoX62L4\r\nA/2m8xRSB5y/XC/eQpe5wEvg9i65y1Y8d0rOROQuyomgAN4Qt6wPfa8oPkOh\r\nZNKf66U4IQYUQBdXYkTu4aY0KS5FWQ6R3eJq/5MXCZUXJWmvZyIqr7CLVStZ\r\nYBvia3dYGQJnSzbN3HqfmzUKC5kx0VfKQPVeiA3lFw7zBjYHAhNM1mrI3gHE\r\nN6Ge0mz3I75XbvfqwpXY1H+aY2LR2Le9jQ1Vusc7GZijMQpOxOpT2J6vOlFc\r\nxoDIbgm7zz/cN+WN+iLOnZynuTa5TU1gcU26fkiSyVqiR8AaJ9I8HOjouM9i\r\n/7YAsvcSBlCJ+KarUdReyW6aO5bZ57EhijwnVeGH0ZIPTFMWZQFeDxU4TUJP\r\nf5l/CFL1dMEO7hHZYcbnBNauMGXM49TIZXM=\r\n=eC6g\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-connection-manager_0.8.1-unstable.65_1666946998656_0.8974394552951976"},"_hasShrinkwrap":false},"0.8.1-next.66":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.66","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.66+9a65e8f","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.0.2-next.19","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.66","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-In0znS+uqocj7p26G++9UbsTi4iwy+2NDv7ojP2TedJsCd3ja5hdU/NB5ulltW3O6foV6rzGj8Rauzwn0h4/pQ==","shasum":"411c41dea21113cc09a973ad0042f0ea480db70d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.66.tgz","fileCount":26,"unpackedSize":63243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDe0Q1QHpgBhmd8U00IMOPbrqYVXl5u+EZAxt4NahCRQAiAj1HjkQ/O6TC8ztVyBFRQa4v1dCseZUG3OjIHzrTMHPQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjW7umACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoR8w/9HCe3mexyTkbSxDAtNwnmTP94/CZQ24ceztm1U7PE0L8eg3Xv\r\nflAeNDCMx36UEoKVq71VE4UxrEzuCufaNJmHEOBXHE4ifgyOTnzV8qwFgfOa\r\nzdRexLDw3f3Cl4OQjz7sm+WXsnbgex+Qo/lpIsuPxy07kZR5qAua6tIQ44L+\r\n9gdFNMWFu3MLFOKNI+w9vVoStnDJOzpNrqLyRDXVYsOzkYwpQc6TydyFX0Je\r\n0NrYiBQysQezdhbkr0kOrYiIJ37WwCM6Z/2TicVbBVMt3UQ4xnl8hfDcYUTX\r\nZ1Bj2TJ1I+8HBWJI7vzn77PXdlegSr3fGVZ2XX13FgBEl7AZgqJFoKftfTWD\r\nF6PTkHe7MDceGwB1XTI+2A5SS8pvBDoMdgazd2RBdd1D4EGoRWLgZwBQD9YW\r\nTzK43q0qLZj5bCtW960JY+qVJ7jFQVC7zEo6P+TvPAS1yLb29AlHVBHs9Gl+\r\n7w5FwjLMHW49sGAP9yW+nSQPg38iqX6kNG/1R7cYhZ9Qn7GKcPQ720YMoCq6\r\nSi2pWkIPlCMIK9slZ6BZm0mzglhsayav/51HdvV3Id7ALNpbkK+juLCVCn9m\r\nvHIZHLegbsJYeZhrZMHtR4nOqhAi1HoEa5jZkrdijCEEXt+B030NeZBHlPJc\r\nnyBvtpqr0Lg4D9uF5Y3N8/RNiJITQgkfbBM=\r\n=5GqH\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-connection-manager_0.8.1-next.66_1666956198487_0.5616547233001428"},"_hasShrinkwrap":false},"0.8.1-unstable.73":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.73","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.73+0cd067d","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.1.1","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.73","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-oTV5I1Jo/sp97wwRF1aHbf6gZkg48kZ/zuuMr6dFLgvKwdh5AgIWI6FOMPnIFqH/ONKCX4l6r0nlk/EJOSvZFA==","shasum":"0e9ffa5ce956ae347529f9da9a4574d000b9f4cc","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.73.tgz","fileCount":26,"unpackedSize":63243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCJjikI6p9lxGcdwGsVfC7LZ2Ts16lI2wgVtA9X6sA72gIgOY4XYg9eSk6pMykXEB8kGikeEiEOuooOFyZgTUXVzKI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZEXaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo08g/+LMoFHaL/tV5PnIMGeTpfm4W358PMHSt2qTw4Qgy2FJZN9kE+\r\nP/qy/ff7+ZYRzUNc45NjSzcDepLjrpHTcosAfWwxAGgImgCkxrRr8XOPbyr9\r\nMYaRbT1xwBJpBuCbAWYQ/3sUWMMaGgkZd7szOOxP7aATZv4wNPdK8u8ecBmV\r\n4NEDB5TRojNCvvf91ALGmN4lcmLLoQnSRDcr1f9WWjB070wghjndQel31t9r\r\nrTmX0BE26Z4wx3++lbkY+goA433uH9kKLJRe93N7TnC0cVdF6FFkRMKM/G44\r\ngt4GW1tyekTdRkz+a+Pl3XaiKsS2eLlIdogBHbTe8t48tsh3ALj4mjybwbfD\r\nXvR2s0STUzXfQoLyqodsVamHjYM82cg63UhG53IYjgX7t7GvBgbe25C6GfuS\r\n6+9Nu1RyhELXVx2i2TrHTMG86rO2JMSiTskJT4UWF8f9oykT4gmm4iuwAZr1\r\nU3Gqu5fUFtHb6S136iuVQnUkVEiVW63Pihxe372IR1tGmI2PWB7A9eycgjam\r\nN9XfqzIgKw6XbikV8aR70jdWC1QN7zZfDmIYkkxOX6fJptF1EEzQjMrRqcp3\r\n0mJQctCuB402L3Pd2X73/f596Izk73l/dGMavA2SItsiK2oR5B4S3a/CytE9\r\nOlaeJe5rFDCB+BviaCGxUnBEPcorXMtuZ+o=\r\n=1ipC\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-connection-manager_0.8.1-unstable.73_1667515866377_0.5914491428200404"},"_hasShrinkwrap":false},"0.8.1-unstable.74":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.74","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.74+12dae72","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.1.1","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.74","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-HANRoz/HaW7VaU+DpncP2IJ+zipSrgfr5FzhUhc8DDx/Fwn93dRcqiBrrGSmBFb/bxbURaLwfUxs4rQaSW6f3A==","shasum":"f43d1bf5c812e337d9989e2bccdf93f74c9423cc","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.74.tgz","fileCount":26,"unpackedSize":63243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBW03ngt9aRaFPOWOuEV5fRDH0/FIfhiSFWPij9eqCZ1AiAyZ0AuilIv0oqxqHUrbkgegl8pNS1r812APEfh9MtaGw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZFurACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIDA//W4Cr8L2A9j12O7mwZs4OzVrx5TmUOQz0CAOdZuock0NEqVsA\r\nYDGNiOY4B4vIJz/AdheMA/h/6iDl9USxwS3OZn1/eC16jELgJfM/rtKg5GTR\r\nBg46pGeEbrEu7buV3F9JHmxTm6tG/Q9XvGHxUy0iaoNW7uhc3DQ8pI4t4hMC\r\nnb7RlrWPNKKEVBeWmrIkEVaDRBvhAkXpwR3ql67E865eZAlpodi5S1ey2VV6\r\nnysfhjLuc5WuGZAB5aKkbs21heO5rPGoK58QdY1SgGJioWtTEuR/jRvlKqv4\r\nOLz3oR2ZR7/0gBXFv58PGdn9rRVoJ5O6dN1zBwOWQVKb5z00fG4e1RoOq4XJ\r\nIcN1/zzYByDJILq1abtoHquEJFypxjqXbS4X7guJARBEOQJEM/Iv78I1it4z\r\nX+9f+lieYrgiNMYq/uUdr5SLCgUwRDVRsmnaIJgAMhkAgPAo637VnO9Qm4Uf\r\n3TX4N8e3ZXYB5wvWUoSYw1bs3KDAb5fxMPR12HWT3ZT6HTiV6MtOG18bOpeR\r\n/pY5MW3HxT/o8waFyDeNRo3MM8nQpYhMqXpxNJ4hC8QnHiD+6bYL9we/dUXS\r\n11C5yJay9ZddZDFTxQtSuqCqtdSoYIS+2O8QRddoeCIFSg7duCKylHxjxav8\r\nb2gfkIrQL4PLC1kQN23eYZCvyUDN4BDNq38=\r\n=hqyY\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-connection-manager_0.8.1-unstable.74_1667521450901_0.054025263391306755"},"_hasShrinkwrap":false},"0.8.1-next.77":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.77","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.77+473b111","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.1.1","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.77","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-ocP0J6fCeeztyGOPAKgqARgM6f7XVKLGNhP6z7nORyQvupGKTyOhQYA3dbYwjZJTtGgmoHN82AJvxNxeb2tgNw==","shasum":"c1bc00208c44f64c74ed01668acbd245be403188","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.77.tgz","fileCount":26,"unpackedSize":63235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFjXKO90USHKfaHlnDAxg3/2UI6q6Of4gU8CFPl0G/VDAiB39yWBLG/FhwLd6+4IEfep7FB3/8x6b8izrMNEuyzFog=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjanPRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqxqg//TH3TIM2P8KLpbRnrtghDIOAWgf4XwHlE64DbDWNTacd9cNUt\r\nP6FzuQGJXzlSLSKxbcCXmsG5i1tSTGavSk2pZ2weZPKd0mSL/BQQSMqQdXMV\r\nDrHV1VeCPfyhz1XVPnEi9kJPNXzdgNgjuoOz0RlpNJS5+jPKQyBEMEiWbzfl\r\nq+WLOUWXDE9Nk0ORx2DUIUckTfV7GytsuHNj3UzoMIkf9O2JZBye70au6B7e\r\np8VbqIAncSyzeKcQDTs0pE+GXDxzTNkR8u1VpuYUwiCC80KeNu+LNGq2g9qh\r\ndOx3f3AsYSTDPP7BxU3bgD/IowQSG0eHpY8hStJoEYgFyEYZBxHXL9OuBopK\r\nBAcMd5hQiHwubd1KtqqmnIypRLu+t+fmVQJpBlHD4hhdpy5mqgbihO3eOepW\r\nrVbvr8HaHO7o9pLKSSuMrKO2bri+1ZQzWEXTnZ9D2PR9AGi7zNY52pcUji1h\r\nPHnk9Sp+UUIyJ8iFej56sS+1E1VZfkRzh2aPNModZXSPZme4/7ONAqKiLdxn\r\n9iVsTN33Y1b5CMDxv5FLX5NeTIuonIoGNELq1nJxSaE3IVQ1Emw4sJ3bSlMY\r\nhTy6cZxTi730l7Z2IpzkJLmkSAH33p4qSxdfn7Ltn6Jd9BqiN5GhIX303BKU\r\n5shtRgmHHeqgCjCbyhpqCmJOFFPv3HaIM2M=\r\n=1DQx\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-connection-manager_0.8.1-next.77_1667920848928_0.6809249255848437"},"_hasShrinkwrap":false},"0.8.1-next.84":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.84","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.84+d94e147","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.1.1","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.84","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-LucTYs4oBv8rLQpr3S2J6QrwlAeSSk0THM3RuvMtb/6cBkN2hfSJl8GivrhsK6A9w9kLLsmnNO+zrXnrwIyFFg==","shasum":"76c353414081d0e6396836b6022fe1c0b0a75135","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.84.tgz","fileCount":26,"unpackedSize":63235,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQConWl7+7N7UI+PhQkXihLWTso/JYrIbzhW7d3sP6Vp+gIgeeSkwZ+zdwdGxaYV8SRF3STr8ISlNMx7cjQsfb0tJpI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjanXvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNQhAAgP7dyB7EvuLUAZlpRK5UMHz9V7JgorX3HXwmCx/JIofsfl1d\r\nOnonRGFAV3CmcRzPMD6wvIqD1J0xQUOIFe2k5DfeEzfUQRVjoNE/t9IKr7Pv\r\nUQEsgbWLUjjNQNSC8PpPOg0tWat/K59KsCmjlspFmyYEcojef/eVC5lNhP2c\r\nX3FZiXseaCUsL5Oy0jcVlFVlgZ8oFqFPGqm13sb/vedhyJklC/FGCoM43TS9\r\n7iG7kB82Mo8Hd14/aY+wG2Or8FPiErAdOVn/YSCzLgg3nagewVIJNAGVu8JJ\r\n2AJp6puDbavkrFUS27E4IgDlt/ax5Cd0h0n9mWjP2wD9zqfYeAGGDgRWA458\r\nkvaI2AUr+GJJJiz62CUmN22Ocm+4WR1Wk5zkbnbf66JK8zCyVe2qehzjLscA\r\nrh/4EXKKFeZkkUFNWlbfeJ4TeQPvnoKTa6EnvaXqdIy6kK785hG0+vQXG7lz\r\nFJhB4MLymcl1swGyE3Guq1v7fxWaupoudz46j1oTS+pCrlkTwObvQ3VDw+7a\r\nj1BUwGdCSWGBK1kYtvIRfTW1VHuuIKns5FijPQ/xrx9udGNfd38Nkd64K+Ax\r\nIi0xelhh5+ZX4CoQhCr5QbWgkZtAS10BoygiXVrjQgExzaVaNdj3mrkCTk7V\r\nbNNX5+U6rBxRJAptGlfbhuFYbyQ26g56PS0=\r\n=67Jw\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-connection-manager_0.8.1-next.84_1667921390846_0.2957330818642909"},"_hasShrinkwrap":false},"0.8.1-unstable.85":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.85","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.85+9c5cedd","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.1.1","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.85","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-/PhyXSdZocSlZzmD8m1UqJVfVZNpxqsx2KCAt1oxsJwx405Lo4gKw0m2RuoXVrMkm9hKBnQ6Kgx4e2F1NtTNNw==","shasum":"4651c09795efc282d16e8e0bca54f9009e583f69","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.85.tgz","fileCount":26,"unpackedSize":63243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHakN6aOhpPW4SIWowCR4oCWvv9618vUUQkNq3wsZHE2AiEAspDuSIZEIaPS33dIovQbWgTeMMrhBPTSjsqQ+7DcFIA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjckUaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpkdhAAgqz0ewAWhIjziUJePYttSTdRMdRrKH/eQNE6WxDwfhm7hMZx\r\ndFA7WYob0xFCo+ITaEbrR2Bf2rbnGGMBt1iV9kAffPs7NvByCli8jeEOyumh\r\nOhXLcWrMDcfKy9jE94fm27DrOpMCTQGHDFu1pPNa8fL//trsEljC9ylI7B6y\r\nmqMLCRvHJj8LD6A4iOWRuVgzL1idmlB9wYVicz7AqclqBn4SRAGuy/xhwFtN\r\nBR3AnWVvXUOODjdeujEPB3NRLmCggOQBe7atLiLsBL4i/lBTPFeY7ZlR++aH\r\nehnCKq4TnspMGHr6AovF41v1cEAd/PUC7GvxUIbbYkMjDmVSyL6x0TbxlkOE\r\nGwzOSIUcU5+7UZhfgT/1JgmQgO1Q8miOFaLWjJYP+gXEBfYm0J9CjabD/fPt\r\nGeRq0Qrmmx2DZ4oN1gwPO18urR2iM3Tv9yVEy5XeGvpn7jhoSrmmTX9uD7xk\r\n9waW/NEK/+JTRhyQnodurvIHxjE6qX4OaGd62GxnT0+61bIMVLbmd8gWcn50\r\n3zE5WwNXovl7sQ7uhtY+fjpCmePKtAjnh3HDD7kKzKuEc3a11GWl8YwuiylJ\r\nd8yhLxXuaQ0ZrjkFbwXMgjXvN506pYKzgdagS49a+l8Jn8BiT5simgcio3ro\r\n/+tYQwvCXim4QnEGTH/Y8h/GwCNBtt6C41s=\r\n=Tpbt\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-connection-manager_0.8.1-unstable.85_1668433178668_0.9281067731795485"},"_hasShrinkwrap":false},"0.8.1-unstable.86":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.86","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.86+55d3de7","cross-fetch":"^3.1.5","typeorm":"0.3.10"},"devDependencies":{"@veramo/cli":"4.1.1","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.86","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-zlM20MTfPgPOih7/90OpOXRS9yu8L3Tne5k3TgwVRibEMijyhecSOJg9n9wUSmbkJjzFMa8HeGqHfpnaavCRtQ==","shasum":"ce3b10866de7400d0723eac3ffefdf1a8f7f4a85","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.86.tgz","fileCount":26,"unpackedSize":63243,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDOFqfmNlqvvTUrskCJWrZhVSa325GygNn6RzHI87IIQIhAPf3sMWmwy+TFElHvO65Go6qxPn8mcGSXclco7p6zRn1"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjckhlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSIQ//aHKLsrCuepFs76IopX+yfetQDrAlVH9Zj8Sl20TIMA0MSxvS\r\nkYlyJ9k7uNGhlglXhZ9PG07Wf8ErDCzllyhe0vCG3PTLYBBh0kRQuS59pSwB\r\n9CnJ2ndJXmukVkgkuQV3CS75mTwiX+iBb/PcUxo9OtQ/CGH12ltzBBSrjgcC\r\nK9NOsKWzYs6fgb3hPoOf0d4kJCxvyqrbSfqcM74yV7+Bt3aeghYLF3IxFCwo\r\nlYuquIoZ+MNvevL+irfot6SR7o5wDTZUsA0alNp/kEerHzkuq80NQwOnk22w\r\ndKRWxYHn/asATU3ULjFo7YK7Mm2/4yDvGepmW5ftcH8zpFHTLavkrNHHxyDD\r\nRV7wHEQMV2sSOmo7NI6TyAJ8N3iklgv4baficxvbMLzpON66POSm5Iv3QfAr\r\nvYjLjuEJdVyZc5j09Vc3IUAhjnKFzdb6GAqr+KhQliJUR4YkAYjR8ixZYGIe\r\nztpURsyb9fmUC7VkrtHd06xnmcy8/IHyl0UcKZlujKxuMvTvPX73HJy9VMBD\r\nalemUi9lXaDaAydrIqD5XxmaeLoQzOOCl7S4/2EoEBVqJ0RLGT2PhdqYvTd7\r\n/Lm8m1sjeAlLeTLNaJ8RwpNmiWYffIQJbQUueOSHWxp9TPL6tXZS4r0GZ9jg\r\nMScLdilfWGaySsdvo00JqqrBPaGJJ/BwjHY=\r\n=TJtp\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-connection-manager_0.8.1-unstable.86_1668434021189_0.6065884905434535"},"_hasShrinkwrap":false},"0.8.1-next.114":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.114","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.114+62debd9","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.114","_nodeVersion":"16.17.1","_npmVersion":"lerna/4.0.0/node@v16.17.1+x64 (linux)","dist":{"integrity":"sha512-lN3i0sI0ty7vA8ZThC4Cdu1ko4jzihOaYaI11G4ecfldBmdTb5RmmhGlya2OVy1QTotTvZcZgBbiekgqnzzjDA==","shasum":"77fbddd1c2349417acaf2dd6ca8f13efb5408d2a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.114.tgz","fileCount":31,"unpackedSize":66428,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGClilQRHtSuSWx85RvpZsG7zASQ3Iu6rmmfzLP+VXTnAiEA2ksTIxKAsPcVbhzTPY7Zxmb4S4yekikQ0elBU8aFTDk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnSLqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxRw//SeGenUODkpuIImebL6T1Acf0dvKFVw+S8iBo7e2xZk7w7yZI\r\n6wnUcylNUQU1aNFdozXnKRTWOS31cefXcucXo4komEAKg+u+CdHMEaUH8fCt\r\nB5xLoSMFcicirKhkoxaAsyvs8hgg/d61x/FD4G48xbbluHMQaSePNRGFMKne\r\nIH4q5UPepf0gJV30tZuYyT41zaq/p95BHo+53Q4Baw9owN9/hirFsW/ali6U\r\n78V63lnHtnZnDoRMxkWAW+oOIljkWKByDsVSsa+XgNopvabkEa26H/2VwbVT\r\ndUNNVUDo48Hh/AeH45RmBV00GSsm+B83oTQCuJiz57LIfczWreFzt4TKLoR9\r\n5STCYvlEoij/VX+7PhynhAhGg4BZEL80UPPsVz1+PtGXMihuSVmKJ7tX/5Ax\r\n0w4Ke/hdLRTDHoW/bbNRnj8FLypYIjz7R3ZJhkJJFFm3g9DbMswY5nrVfSRo\r\nLvljSSKfa7Q0G//1N7jFQLhxnvXquY0tQigs/A7rIjayinNPqeGsmkyEU/b+\r\nphTCdCsFXg3KiSR9fq4aSC/xIJbQdieylyc/th3MP58k9nNUJSk9u9cA3q1m\r\nUdD3f0O1sv30MaWeau5DicLTFYhwD+uTo3fPdfbt4KOhGGckMgY2EmpQP0C6\r\nvvxdFrOJIZAiS9SiPrGC1++vvQ9yg4qyGYQ=\r\n=AcZ5\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-connection-manager_0.8.1-next.114_1671242474647_0.87715944278815"},"_hasShrinkwrap":false},"0.8.1-next.117":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.117","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.117+fc10bcc","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.117","_nodeVersion":"16.17.1","_npmVersion":"lerna/4.0.0/node@v16.17.1+x64 (linux)","dist":{"integrity":"sha512-ksXUt48biXvIY2hiQSNuaEWQ3g+M0Tml1Cw004bs7Fb7/FZu1dwlkMHnrkbowndDx7s9pYWGVLNeoXz2dmRC4Q==","shasum":"2be3003efa734445bc926806f9f0dc56194a9954","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.117.tgz","fileCount":31,"unpackedSize":66428,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDZ/tD1fuKNfz4rDBuMD6xsXXYg373Ypg1ZgZpwFFy8+AiBbabcA6r3JPjTYsc7DA/NSdflLWi308jWsAYrOZlrBUQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnScbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmofQQ//SwUWOwaeV24IKhpmhvGMANo8atL+O7WLNnNOaXyqZvcB9bLF\r\nzc6++gf02m9VzCM4fvAv1MoDHig5yhZyYZIfmWr8dEkmTX6rBZkIPCgqFoR6\r\n1HudgdcI7zziWkrlGkg1JeKp9HXSN0f4ulfZGpx49e4zT+B3uh09iqUCMTky\r\nYQ+cKVFOB2HgAs+nLPjRqkp1ICLjaXOMrr+gtPIop/MdwWo13hE//Panfl09\r\nc74b13Po2EkwIhj9aa1cUstLbri1XBHJNLS9J0qE4hwViX0qllhiYaEBJ2FQ\r\nd9FcWXHA9ujWSsxi1jr4xfRPgW7Qa/XHwaK/MXtkNw5v/EwgXfO2TGdRNXO5\r\n15bfWCQutFN1XdTVGNof1E+X6eWhqKmTTqYFPZDOk9uOX4Nso8889qK+GzPE\r\nLPcVevp0M7KqYgqhEaRi60sWcZ5y3N4RREalPJZb+LODdO1+jcRwzwelezHj\r\nn+TUeZQXMVA1c3fvVQ/B3e8X4grck8Bo9wX31Evk9SfopCaWwJI98S3sGXXh\r\nJYaoX+5+Fuw7LoHlBTQ9JyTQREz9weaPv2q+Yk/7RwytF/dSx5tMY2rtYadw\r\nuxMWDuazHPUTUeZweqny8YrGlRUpoCSZopwR+dtQ9PHFBhagauenPjaOw9Eh\r\n7WQHdi7ytw8bLpHJLTJW0UfxFvC9VneecTQ=\r\n=i2s4\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-connection-manager_0.8.1-next.117_1671243546907_0.8133916675443726"},"_hasShrinkwrap":false},"0.8.1-next.119":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.119","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.119+4fd058a","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.119","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-r1kakLq05BUwGfUZm9VQ/AxjNa5dL761KVB5Yv7VG4OtnewpROpUwca1mH/afW+iLbt+XxnlN2ZMi8cZOSeXQg==","shasum":"8756ffc20f375c01f27d219e9277be15651711c3","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.119.tgz","fileCount":31,"unpackedSize":66428,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBJ3XQ5W+e+LBP52MZ3Vqp6aI4p+J8NW7fXT4gYmcfkAIgFA2d0yLEODh4fcZyMl1Y8QrvfNj13oeO6awclk6yPfc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjq4ZXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJTQ//YE/qNShehn0WDxRplSLpmIOCSRI9T+HTZnpggw3RpHB0KaPE\r\nSa7iksq240j/r/7c4L6RSA2jTHu+/rDpZj1tZpcdtcjhcS9UmZTqGLyPqufI\r\nEOktx3XQUa/XYvwYzxAd0IECe55hgDkKO6L775UQMIVRRCr9j+Zcm4fDiCJQ\r\nk64tzS1MXk5D7tLnDJnsCIBpJ8L5ZERjGRplZvlxLh5ODNNCXlVd/9KFNk9O\r\nTkOMNwnJXoRtNiLw+JmapLE15yqk0xtS178brW1NwLeL+7+KBGJUbTSIosCV\r\nQTipHcQzJwzFk1yLo6KtN5VxhluzGLmnMq0XklruOhur3YS0G5dfu1al6nCz\r\n3lp9B1mHjlwGmuEOQRTZI9FYpIki8MRiLfqZ1EnABGtaqViJPfH1hRDN8fL4\r\nHKZDnO27ToWN6fzE21iFrRzlD0zndmqsWo7HuqEQyJWkFGgg6+rDUDjnhyBB\r\nLoMPwROpVHdydHXI6MjIVrqpCsdoD1ZDM6eh1m0814JaosbqfFF//HYD14mI\r\nwzQTLxMCFsNLyPVRbkGbhsfVcCWibq9BrW9UWKJ/yrJY3BstXjs9Jq1UhlGT\r\ngks8kbWBiS/JEuZwzPkkkpaXpnTZauKaSymuTtBYImMnf4cL5ffpOxPLRJMm\r\nUdoWc/rMxFpdxCaBndGW4aGUuHz/yspqE/U=\r\n=Ut+4\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-connection-manager_0.8.1-next.119_1672185431009_0.9814686356952169"},"_hasShrinkwrap":false},"0.8.1-unstable.135":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.135","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.135+680e974","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.135","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-KLgiu0ZjT6ZCrg4Keybdc7KNhfzxR5KoZ8WWZB2OEIMfxrIDwwsplNaI/eVQUoV8W9XQ5nFPuIPRVvD8QqJOcw==","shasum":"aa79eda09f8f6a80f3ae2a4297cb916149cbb732","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.135.tgz","fileCount":31,"unpackedSize":66436,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCIF0brT/hKJAcVFEDgg4idOh8wPpyaA8y4caotkYGtVT7Ah98eq63f2stozo4ScmpFXHZuv8i9DDTW9jhiV3c/o4h"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtEpjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovLQ/9EIpLl4Ei4bwBjtiI8w/AbkFV+FF9fi1onBhc1AyfB4AJd5Tt\r\nDjm49h9GhM0h4siveOGmnWi1/v94FfbBi43xQvwtdFaMCrzsjcy7PecV08QU\r\nSrX9JVJP+MF+AOamNwKQKJ/918OVEiSA2OsUj3POvJ6vrgrndtmaW7udENDb\r\n+lbatFpKAtCRmHm10eBgBw0JcLeSlsrjr0LoN6MZSNvLrnM9yP0xMA7u2gRO\r\nuRurvFwA+iKqbotxIvsBtRYWq+J8njbOIZlU3FDZFxlQKvt0H0dJKI/PSKCI\r\nKkNHDSKnNSnfhkUJLx3PPWAzSutPDhpSAKT0iMgy6p8qp4KYxQr801KwDIQh\r\n+7DzIUjl6LYMSWDN3leyOqU/hs416aLzNdx4r4I0nE6tojiUXgo3CUtbKyZb\r\nyYSrD3ttVEJqw7hLniH9jTm81Wsi8UoeKP4dR+CF8Kqo+yOjriwvZAA/otWH\r\nnOpvJpsOAABXHd0NiNuzTCt9ADnTIfQ9285F3c22uNXq+BDpjDnuHMvXKXka\r\n7sleXsWWR/BiFAxfltJpEsFbFpUuQ9aoS+eLlhWE8gwskpi0GRiAdLStWaJa\r\njfdNj/bSwa9dYQ4eMpBcL3gD+LSKDRTdVVHYoggbv4yHmJz8lES4gsiPEpZC\r\n22lbrd9N0pAJGgv6XuMNhmOB76YD+Kr2vIw=\r\n=LZ36\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-connection-manager_0.8.1-unstable.135_1672759907250_0.1718884519583963"},"_hasShrinkwrap":false},"0.8.1-next.120":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.120","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.120+43a3adf","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.120","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-t/4gTBfl6WhVHXp69G5LlmZtjHfPNwAbfwR7mP3ISdy1kxyMlj0HthdQIR2u+8iLNiPd5doYhNJypW9/pccCwQ==","shasum":"97b9840b32ce73ea3f3dfe24a08da970d7b04cfe","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.120.tgz","fileCount":31,"unpackedSize":66428,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtoKFf74c7DOALZZUNJ0ICXo/CDbjXWuKMw0zNVUQtqgIgaeTKERH6mOxd9tOohlCHB8I5vLrnNXKv6TiLJFg23VY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvL1SACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSQg/9Fr2m9tvRGKbY7ZYNuMhf4D60gZFEIZq+pxrq7J1NwELP2TXA\r\nsaB4sDWXDM7anruxVhU5/dOpVohieCV8vTBTXVYDgoMFbzAUELNsnw55zeIr\r\n1Xg749BO6dlhB8a4xwwlkeRsHsTTnf39R5j2iwMzh6JVm6l4QRbYdUOr44B4\r\nr1hkQ7DMWkxrlvYvsanjXgP1cFs9E5XDDJXihp6r7ZqYwSDdqBXtgewqI+uX\r\nVEpVfWvobDYEHBzYiGVHjbPu4Cpak18id+WRagcAw3ZDgHROY43GmHSLNBaI\r\n9XQFrp+S8m1cnqQA+kqoLf4zKaqFtpNxyeB2+mnR41acpcPfqSYnfSJmE7Lx\r\nch7Hw4HpbJgjKma+8+vTnnlanvCWgXfg7FgJKQIMmTQPRg4YI80tkNjAJBJw\r\nsnxK1ie/yweuchh6urd69Dopcq700ht4/ejKyYrfCiWIe2O1CZ7bzq/h9Gfc\r\nP+4L8IAuDiNUEs/Yk9ZRBGEtUleiyjmtRVlQf9ud03VFBnSbtJ8/oNJ0b8/K\r\nMv9Ynh+JPgtmpmSF+qpHND5qgCQpm1bPcGItUUDu4KqiobAUxn7Q38T6LlEb\r\njn+XpQFLef+nTKgQm/ZteUmwS5XUJHir4U1VujVHTj4AXu6dPeMxLYrru8F3\r\nssklubsoJhhAj4ghZzMPcfnjE6CmshV46AY=\r\n=qc8p\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-connection-manager_0.8.1-next.120_1673313618640_0.7468484979905263"},"_hasShrinkwrap":false},"0.8.1-next.121":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.121","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.121+d98b358","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.121","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-1YUesFjO4Sio3N5l0nnq9snHUkaxp6XBv3SswdPavZCjTMpNJJgCaFQo+QsPeqHAS4cwfVZGvwpHeIlY8vwTeg==","shasum":"19b9918d2beee4ed6bb41a38b621d4d330a1c578","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.121.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDC1SoB5o3/eopTP9gm/IWs3RntGf65WTb+JMeBkLxnRAIgJNVpV5D7eRuIDwdKJ38EFfoopgs00cwvD9j6tbQ2FmI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvwnHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3aA//Wcwb1t0hBDaysXpWNf82OQwoQvx3lhoa8b4RZFmdCh4CL13o\r\nwrXNTaZ4+PaMWka0aRmYKQeUzp1WLElAkzD2bm38qsKK27Ky8UmqcpVdpe5a\r\n4Qb5enyEM9O56rcodIPl6p7KBoyqVdrqeC4NXXJxNYW7hPXcRfbC/DadySvF\r\nwyAxcDsuivbX4iuzdChh7peHstFXL8X6QK+AbpHwWG3OhrUgJR3oeCbST5J7\r\nZY2y2LtngKWG0hCX1KH8dq0sAXFJVnSEj+od3iEHcrmnR9woFWjCkELCcdnY\r\nUjByofTRo/PszxK26nntYOl4em1sdkEmuVQemQKaAPscInISXsO2W/NPYAdd\r\n8SsRPhfWPiExUu7sEzdLYdeNxaR4RPc1WR3cb0SMiveufsL77aS6VRoaODr1\r\nBopZcqWbb20tlY+TLO5/W3zz/c7CpGP8MM05yyt5sXNj7Cjx19GW1KVV+Qm+\r\nisooTdznZvWwxggbMmB29Wfns/4aoSHhFqdZX9KPTvzGvvf+fULWmmRRgI6U\r\nrXMMCb8+HBOQz2p0x9mNFFPAJKNgIK6NVOb3EZq8o9vU8Tu0dp1YCXkMCYya\r\nWSvFv0lPJLL6211uzkoEkTdOAUSx3sqt8WUR4oHfqzFvtBoo4EgqbqgaZsms\r\naGCScwbbREZkIAL+9k1fO4c/8bs5iXNBuZA=\r\n=7/Vn\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-connection-manager_0.8.1-next.121_1673464262906_0.09769216782734702"},"_hasShrinkwrap":false},"0.8.1-next.122":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.122","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.122+26cff51","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.122","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-eDcpvjRp4rqg2KsTSGgqEuVG+dOayMVJaPe64YLhTGdJg9eVcSkEYbqwJZB6EyOdgoEWmYlOaWNEwKxzjVOtcA==","shasum":"d1cad6d95115207c3d04450bc0c14618feb1d753","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.122.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDK7Mt55YrdYc6WLNLPNxH0Ou+V/0J4Am8EcDyKx5pmcgIhAM3wOb+ZqoxHoY+D7EmBOf2vEYWpXcawVjKJL4MkfCyf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvx1MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3MxAAoP+yAVY9PEWiICJb/xdvO2MFFZbG+II8BSVTwAcM8FbyF53X\r\nmQA7XVbNbPCsXrxkbs9h1CfMrgOwzZXMmxOhulEkYekHnQ+ZtLw8UgQU1VUe\r\nefEF4A3Tbmr+EDQx8Dk/8iaJ090U+ruHO0cB6IYfpfjQ/yW7SJFrXvWAc6Az\r\nzH7mcuf4kRzNIoVlXh0KulKQ8hSILeNy80tdoIXcHTeSJZ96bTi5tE+0dZj4\r\nzDkt7RZyVG+/9GiY/ebWplhOfmzLG933C+sLeEeYlC5xIPsHMeWhcjn985qc\r\n7Ju7/QYYGncjYNO3RNTgi+aRfE6IJmhj1vMZGAzE/O4TqkNsXwlGPwHkJ1z2\r\nHWR5cjUl1CEPF7btIa3fpNgkgW+jt7ipYy79KQthfNUWCaibfraNXsYbMQk2\r\nZ8zOGtjYVsIUZaX3vbT/BZLP+srEwLuMRyEOTc1u0VBBuG8sObj4SZ4Yj7hj\r\nXVPkv6GCs5m5Zxq3FGoYQi5MSHUIPwt1g+eEnQ7VYnWO5CdqPBO51/o8wCBn\r\nWvomGG3MMAcGEmqbfy15DbkZSQiMkgp9uNcxQoWMjETGTkRTrqJnVhH6s/hY\r\nhgwN8blV6AYiRf55WQNCF63QMDyvLKJGdHevQ77twMF3jk28uOtva4N9rNlr\r\nJ6aa2wfO4WavTwCZnrI0xxLT/LXJdeAMrWE=\r\n=Hfjh\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-connection-manager_0.8.1-next.122_1673469260450_0.8660468720663415"},"_hasShrinkwrap":false},"0.8.1-next.123":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.123","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.123+0204094","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.123","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-lPbrHtwivV/5iVl+BWXLhGkuK2XeMr0ikGzhZn2iy9swSGMwyQFVWc3LAKtHT8xxF4n9F0AXMG6ZOINmdbFZUQ==","shasum":"3f66968a7d1e0aeb1e114fa4989cc2b88fc7293b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.123.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAtLFbgENkfrH4sa/cyNOAWJeZTRpKbz5D2F4ioJnTzCAiBOCDv2gl6CGOfPVGGQaNyqMxTwHyPR4LSgYpmyqLD9OA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvyzFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovtA//fiOZUgHHk3YJHB9gsUQ1AzH7fDstWuKuPgIjfMIObBrV0dtP\r\nbK8+cWlOg1LaQELoeeELpp7vzsp/euNOssrqCmcw1WRFO4qnN+JCKlwMcGSO\r\nZdyX4RQeQCioC1Jzb09sWMGj+NtQr+aUPi77wEQnz4XfkA4chaGsXBdub2VH\r\nRDeL64RI0lM9HhqDnEPi2cU5NH/YkuRKvzn+grURjbjtIsInCtIQXe8PKL72\r\ntcA7n5k0HbzunjUndPTvlQRmqbbJWN2x9ILQLjcd9ani22IbFnj/rAp2U3mn\r\nHTiyEb9i4s2WyzRi3ZHtFWOyHaqya4qVrENKLm+t1ewJpCW+uowniTgcdu0O\r\nMZCnH+JUDpPRv5UAGpMJi1F64Od2SPeFHkqGlk0So1hM8BmJzQNbq3P4IzzL\r\nQbPOTRMhcfD0nP1C9xqdbi9IdRtOjCMkxNGCHzhZYKqkwr/tk6dbkC2W/xKM\r\nBVvsbuh1Viua7bQeeVe5oSXONKRu9SnTIBuQ0brfL9q5zvVGp2gGqfE7EkUN\r\nBcPbuRyX6JCxWtKOpMC0dPljNoGFVboMEtMf+d9beerxIdVZaqsYwOtNSMiC\r\nWzr7kTBGdm3Dw3OhjUUbVVC3usP7lL4Z+gShdqukdia2qkvtZuIw8LUajeY1\r\nChdV5+OeOw7jnQQeFsuSeXVCo7+QMLd8+b8=\r\n=oHpu\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-connection-manager_0.8.1-next.123_1673473221626_0.2882169919480222"},"_hasShrinkwrap":false},"0.8.1-unstable.145":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.145","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.145+17a1229","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.145","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-JlunEFU+LvMwDl53XT5gX4xoTSvLpeWK5mcC7Z8T8nXluuhxtsxC5HhN+C1JTcHCoiT1BAnNLl9vtNLF9vc6qw==","shasum":"88a7bcc64fe0fe49ef5646924feb03e716506145","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.145.tgz","fileCount":31,"unpackedSize":66455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECrVmNScAP1ui/NS6VAOyJNuc5YRr/pA/+CERg+/zwXAiA7vjlxIzwO6KhdCLXEW8HAy2uiusYN6ZFZhOAg0IEBeg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv16vACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWBw//XgDfLXBatjEpec9VI3WzP9NiCaW41Z1aV4FfRsHz359BVYN5\r\nxXfVpcbfad1oX8a2UiZp2WeQERlVV8OjLvO8a73gKaqaCTFPsbcTRiozhymd\r\nRjmBMoYfwU8RnkBA5P+bo58yGhnkSGajTfoj9O1qgsPSwX/lOfGfZlcnqcZh\r\ncUZgy9NfG1GrKf//wff0PtNWXQiAY4yxBqX6+1mZZAA5t4XiLSt9blyj4qwr\r\nfk+SDaB5Jg/EYUP8+YiU+KvuohPQ/mDZPdQrK2wSfXMP3mySFlbBPopCfD3+\r\nT4gWz2jNd+Eu3CAFT5+aWjsybrVru2ZMcF0Oh9h2sSvHhU2OpMjfmoH/HkDk\r\nXR7p+OoB9gRgrCTE5LyTUo9QhEW2bk8aWjT01JMJkRob2fJe86EufHrjJklF\r\nL+vtMTikfwta+e9ghKzwi0iJ0X1XN+xSqZJ1WtY+8FcuZHS9N3ydZJNTwMLD\r\nizJgMgXU4E7vUqeJH/2iL6WCIXYQTemr0PgaS/0oi40yfcqJrydIOCxtkgh0\r\nXPzqs5V7RrwS++Ryg3NKA6dJhXnIkR0AreKsl5VdnEHBeyg8C0/qvISyEiL9\r\nnNViy/JD6bDnvejCZSl0IblY6bxpbSSivdtITLeL+wS2nU5scA2oIkzHuYhW\r\nawu21/UlZb7S+volRUxUwnrt/6QNpP/40D4=\r\n=SrMP\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-connection-manager_0.8.1-unstable.145_1673485999472_0.5859994239141035"},"_hasShrinkwrap":false},"0.8.1-next.146":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.146","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.146+3081280","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.146","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-t0RdkaxnnmSY99WaIcrk0Z9/5kG13YV2sFdcSXlLt4nbGYhxR6RAPvTOgqr1KRYae7gHh3iWuKct6BMr0XAH1A==","shasum":"ebcb8f3ed07c73982dd4811357b5ca3ba399e6bb","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.146.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDn+teelaqFZjmoeN+xyA9M22OhADjiKOenAdo8CDMMFQIhAPTGRswymaNLxadZlk1kKWj3AWir3MqxcWsw/rAJ9DeP"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv2EhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJhA//fdYURieRmnQwO+OKM4UfLb3IPwhSg1DuuowoF4SB6Z6Ms4TZ\r\nI+Zk9FQF2na6shf+m2x/+bSpm77KlzGexUdKULNhllFxT3VJ/IIL8tew8ZGC\r\nRatXhhrEaqChSo0ABHKc5WYO1bz3qxkHTZ1vzUKVHp62+tYkFXaFeUi/PWqw\r\nx9MUNHX2bm3xCH96gwyVGBMdx82Mdpxn1W6CvE2Dx8ew559VNhiZlqLGt++O\r\nY+GB0Mnnus4wpproGsBZTnUbqBpP7FC+uxrSybE0yraZu41cvFh0JSAECZTF\r\nCjWvnkB5iaN9gO7cV16pI5Wwa/uviq8UhdURM3Vw+qvKARBLEaQRusJ/tN9y\r\nBh4s6eMvGVbvsaHR/HFMPkphBOQncqMgN2VvY3z7bcpn5seP8sKjfQ+KVjon\r\nmpeRE+j7mS+NbdMoKIjtHKOkg6Z5ZCJWbxB8kxa2sJkYlcKVGAnO40WkmxMa\r\n2rfEGv5tb46iO6qgOhotIEgQUQk8V7Pjzan9D4UeuMX7fyaK0yNOBupfBiBj\r\nVz7liz2t53YimOjdPxYU75P3SmLm/Up0ncToZC/zJSKr6wwysrfISyiIIGkU\r\nxl8vGA3H/kuVanOR+UKiSpYYYJH6hivzp779SOUxBOIAAd2RaOP7Sc5iQMrY\r\nhtvCKJqPhoPXPrSFm3TaqbnH6k1OoowS38Y=\r\n=bpLC\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-connection-manager_0.8.1-next.146_1673486625590_0.43126643963407574"},"_hasShrinkwrap":false},"0.8.1-next.154":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.154","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.154+a0bd467","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.154","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-nfst3YsoS+1G+KN67EnTbO9nY828gAtrWKo4xy12I33uU4xTp7SbO/97EwGS6UHKbhS9LKrFeJjZ+dNar9in3A==","shasum":"c543c33b711d385ee9efa342d2cf09a079b5e7d2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.154.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFbgjGQSEUmSGQJ8Jz9SVDlwUCsb8PNDwhkg4cECOQypAiBLOADfmzzWEfQfONGAJuPzI6ZeP1VxtRnfRQNN1/51QQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwAbyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJsg/9FJazUVxoXwdL55sm04QlXnUXQGLjEMCZsxUbv45uvscjGETL\r\nq1ayotxp1oRDa+auwdMOPJBFeZ8jYspiOp1Qu8THaqZ51fBekCGEOavBcKp3\r\nKs0ArliTMfcO5g7az1hRx+TrXZvq6h+ao/gHThjqQnrTjKZhCfggOggN4tlz\r\nPhTLMkzF2kNZ6yORZc9tb1r93gkAm3G8v4vy60Xn2AzS7dBYOJRXfo9LAgIo\r\n5BySPCr+oYmiG0TXInOp5uSPIE/WkFfjaHWQbjbERsht+jiaic+x5pwgS68V\r\nj+Y/an6WITuuEJmeRb1Hztjm2ScrEQ3Z82jQbH79j+2zECQfJ8uV9/ASpU9N\r\nDF/ruhqdsg7UdJgR5w+iN94JKU286BOLbwuHKlcuLq36ho+rI9BgjFYGhnTL\r\nmR07Z/MI3WFsyeUWdKQ5NIgYBqGDSlA0Z45KUCGU34YpGwLixfh0ayPgrQy+\r\nxA++cGLUDWy476gq0MlntR+WL/hf17DhpmY7Qtd45CjSIvhgtT+ULjtM9/9X\r\nlil1ae8U4xzp+IrvPCreXV2wsS6GX8fY12FFXsikOk7srnoou5PCRdNJfN+x\r\nKjxwy1RNyQ3wLrhUoPwTvimeDibTI5MvQBiSBoLBcvo5DwmbFrrBOVfQWqhl\r\ntmbROkhCa5SkBKBg3idCn/AjXrhITwzvnZw=\r\n=+los\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-connection-manager_0.8.1-next.154_1673529074281_0.13835357542010307"},"_hasShrinkwrap":false},"0.8.1-next.156":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.156","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.156+5e5328b","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.156","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-U6EgwoS3WABtDcyp8HdQ1iE6MPHEDuOn7cHpHyWgF9Z6+Wmy4WCyMfjgaAsnmOx5psjokUHRYqkKLDXyhnZ+IQ==","shasum":"0e01a3882e328d4eb5b3f25b2eb9e8ba736565d2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.156.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZaw7nC7eI5N+nghjl9tCWCL1tF74nFQeQu7p2GijwUgIhAK+9r/IaiknyZWkxY5hqGuySpjOPY5mdYnl6Up9memEZ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwKlBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtLRAAlnU8x0TrO91ZOLE3EWBWNKMkXZ/qGmPsrmUWMBo8PZhPWY2Z\r\nl/hrkSjTZZiICz8Wz6PlpL4T3Vap1vmLIzMsWEXUJODJuPM48GRvhry5dQsH\r\ntLYIdbcMlg6R3h47pJJW66wFrmobg/GGA/M6QqzQChe0wISVUhlLMUGGRAkT\r\nPDmdA5Lfd5gl/z8jynkUJ0vevXo9lQcchMDhaEroXiq2fDtdEaN5Tsg3XjEa\r\njOodgi73QxxtNUIk7QsUi4gDHOJYO5nYpEjId0wfneOXE3eb0ts2hfqupq+R\r\nzpDch8M0KnIGMouMoEdmFvhagURRGYLwiS7OYM2xHclYQETdvPwFClFRdDnW\r\nTLFqd9YYQBZpT23yLXCkfSjJ7/PYQWKCMnts5HnhszqPCckW34hdCvYuo3fm\r\nqeRghrYwpZaKX/BwfcGXN4MzwweJZGziV5Wn+eqqFzzHZ7dcWrkEbclgPtnq\r\nIXRRzyZxC9PBqew2xeub3pnvJ3R79BjNVYS65dEYqPYnxhwcjJsnObnRnBJ3\r\nAQkYjE3IHZnm0n6kFS+2co8niVAqRRhv8X4BamTAIpzYBHCPZgNejhYPrg5b\r\nHbwbwghgbZB/SZKDW2ifvABiYq9+dimkt5kamvzrtBLVxnES/KbNyaflQB1u\r\n6jloQYc+P1AEVDzBljaiDsmBoqxUpkczcPg=\r\n=Yn69\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-connection-manager_0.8.1-next.156_1673570625555_0.039700712969003904"},"_hasShrinkwrap":false},"0.8.1-next.157":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.157","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.157+b010d7a","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.157","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-c6vzRLXkuVZucg7rPjhy4x/zlzgfHEA446XpXQzSVSSc7u/NmV2RyPe2GOyB50dZFikbrv2DjDEA3NIH2EiEBg==","shasum":"fa8f98fc546424a0f83ed588e9a1b4b81f5ad2de","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.157.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHd2/galo53MMbxTFPf8aklprJSKOY37eMTcA3FwdqfaAiEA+Iq93UYKdvg/j0kEE9KG3aLpryEti8DeO7Okk6YZEJ0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwLbvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4cQ/+PE2QI2V163zHja7InEh7wXkJOWMBgzR893qmKN/emeGh+XnF\r\nlZSNDV73TepioviSNFwAAXp71Gx+59CzmQzinM4dx4Gr05IO30VavvKt6nyx\r\nyLNXUnKd/9zvv6vxBrHOYN5d+M2v2kb+ciw8AmWVtnDMQ36kEHPXIRKjgdMV\r\n5MQtpak0dgzepusWukPqGj8s519q13IZPGREvGbzPp6x4RA/ZY+UDK0CL3Kw\r\ncIqAmqcUidNvRlw8AfcOQyBtuOH9FToPJb+Az8O0Lq8zIeH8cwR/vpnS5HBj\r\nzbUqWIAu+uFGtL8goqhrxxWsWtD3Kt8Zjq1+HQsTxivAjnsciNNfB41G6kHt\r\njo43FvxPTnMCXDVSx8EhYbUXn5NG5T/iY8leRRr8UmxQ0shjxZT1xJ5/YlUE\r\nSepYinewDY76l2JHuEiUaB5/gRbAckDVJ8QMQzaZEo07QkWviX+nMpJ9vq6o\r\nMuBOiqA3vttkGSSR81uB+RqMEqDtB/5LMwyHinjQT/L76vhxbWQu0eEY3xgr\r\n6JT/63cbhkpQI261JspbqrOhj/anbikOJHp1uXJWf8DmRc+aX7McNDSdCeCx\r\njPwBPZbOUl2ks2WSwi3/QLlZEylIr6Ram2Rc2PvrbogRSgDZ1rPXZsetJ3tA\r\nPrRTe8H+7JHTH2Bmbu9eglBYaVk/SbWxNgU=\r\n=1Ez/\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-connection-manager_0.8.1-next.157_1673574127686_0.6912056398263204"},"_hasShrinkwrap":false},"0.8.1-next.158":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.158","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.158+625ea6f","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.158","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-X7smTO4lhcdJIulNXEsJuMBE7TSs7poDCC6lvwdLNTizXGuV2ramFBnJsp88nF7rP5goQT9noBqY+Y+BuxjWBw==","shasum":"33b3736946afa5682290cbed10e9f97eb3b79142","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.158.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICV7ForXp1h7kStTQ6JHIbeJ46scMU2iDGqVjyAu5j5eAiEAm1ZjdASvCAWRxmqNf3qrWdT4z3AZCibi2A2EqE2xuFM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwLvhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqM2Q/+KqhuYv/MhXkznmrCj6ynaS4FqBnV4A1G0OHx3QxtT3sxSxVy\r\nBpo9z4g+YUH43AMp9Hrm4OtdbPy5i9PN/S57GmXw0/P0XVGyzTdarR809B3Q\r\nKrQWkuE62ghP64rAxbiYNBqLGTCSCRG4qqOwN4wNGZXRMWQx2sp73/lZniyA\r\noEhrRQBE+NovzFKpUc1T3Y1IG79N9+y2WJzd/bnkyS/WipIBXGCtOob1QDNs\r\ng4JQlMJfNy8mPPqbjFb+EwPSykQFFd8+7ELY7vJGgiuuIqMUIKKZTPd3Lj3m\r\nJZUIR/0so2UHqXBxZcd2JZdfJLYblI8/TmPVgvWSVsG3xJpPXm0vBgSElIHC\r\niVdZoicDbiNx8tBTlwnEz63AjfgURIZ7Z8W0iPIvxRa3eNcS9Pl19GKRLpm4\r\n1P8QKwcJfEpOr0bhfsunDMaFjQ8VIFpJhMAsE6ffzRoDBQzuGBT29RgVXd13\r\n/Uu9pKg9E5aFs77MxQMY4PL15wKrGd6v+g4OgRE6no8wm6pF/WmguUhchsdY\r\nYiV7rIf2gRCGFdmDRGy1qu8+E/Sek9EsCicI9I0f097CHVMT4tt7TSBzr2dW\r\nIWXBiBbVtyFFZdRoaloXcBdQ9KyRH4smd1uqJCIu5arNalFOWBbn6ATb+bsr\r\nZBYMHnzcwdAAzepAun31rZgndj0hqX1otls=\r\n=r0c8\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-connection-manager_0.8.1-next.158_1673575393737_0.5088996059351252"},"_hasShrinkwrap":false},"0.8.1-next.159":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.159","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.159+00892e2","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.159","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-n5GDTAZzBE7tAdKhVF0wgU18dw+jPkSwkl8JkaWioUewkUP/jYAjZ3sJD8b1P76E2l5j0gBKq1QLDac8EVq3XA==","shasum":"7c2473f40731f54641fefc83645ced098ae0e5c1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.159.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEDYHh5yK8Y8iWxpNUO1QyjVWRKZiS5Zg3Xs4jh2jIWTAiA3+5JBO9Ez/AgdhXowAo3U2czqY9FMRB7IeZhonbKDmQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwMATACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmra1RAAhS2OfUIAqbT3wy835QaV+PfBJOar+m8rjGxjBuOn8l3Iaegx\r\nQGiDzPYVq/574HHAJiLxxtkA9HYXhhRuspahsXU+t+BLWS++1WmzmKBfq5N+\r\nJpjt50Qyh/8By97DCxbtjuLYsOtVQud5pzjdS/mExi8F6RYAwCeaLYsqCTnz\r\nSuVwPYDySVgdmWyn1yNjvcKzMA6Bplk7chdkVgbdC+AUPBNKZZFh/qvbJxEb\r\nFnzi5vUBgPS9gNgHT9m4OVe8y+UtMxLUZySQ/kqtDjRVbAPI8IfLtYmiegPF\r\nBIAuQqXD1uJtXywnpMM86XhHav3M4uYfJvj128vqMUHIMOjcwG+/a0im3a0R\r\n3dodn9/1pEnIcB4WwPrTNPkTb6UFjYiXax4+PDEd++o82BT1eFvEo6eJSEyU\r\nMfOPSrGqQZEY14Ny00aZ7lPMYbWC9ohFspY/+xvN5/3Km/B2LslUfTkGxRp4\r\njL9YPtgrBC0m9cxpIAh84/MwUHULfLvvJnFYP3kupDMmy2OlAlxbufoxGVik\r\n2vwtz3QkUVRymhywNAiwODb0TsXxphAqQFAVhfX7xYU9XfaZ9ZSV7dEU/WjP\r\nl1CwXoL+YTS6yZ0buMI+tAdEsbINVT5RU7VsBfBuuzkk0de9mrh+Tnhfj8IF\r\n16OKu/udZo1qWVDJF3Su0y4Kl0/pjcc/0Es=\r\n=GhX/\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-connection-manager_0.8.1-next.159_1673576466894_0.13235292795170905"},"_hasShrinkwrap":false},"0.8.1-next.161":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.161","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.161+bdbf4ef","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.161","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-Q6wvaGjrIJEq4QtDWUMiS1UdiYN8mis8a417ZsAZ2Z0GYSuAZUIJHsOHukIuxII92xKj6Z/Crq3uYrNXStfzTQ==","shasum":"67ef64af3fa7a6e602525a997e739a2f4582f8b4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.161.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCp6TVfKCnPTkEpDFRkAZa+glmI7kvmyhZE4rsqYR3s3wIhAJJYTIMpNTFky9Td1WQWd7e+oTNMevpwhWWWwohDLGGw"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwMufACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr73g/9E/j2PMsxiLcsCPLQg1IurVh0aLqMBBneyUNBKvw32+cYkI5D\r\nAy/oi91Y1zKAf4JQOg9/1V3E3NL4aj2y1c5tV1UJLi7Ii24ociN+4MAe6aGa\r\nkNN5wLCfHUq8u9DC09bHH95FUiWShgQZrlkypcN6LZ3AfC2+mSPghe2Gr8qM\r\nY93/0AJaipOwU4dRsiroVedMaSv4Mn0d7G3lpI7DkIMBA2VhdHuxngVxwrRa\r\nBty+YvRNYNRp3Phv6XIiM1+BZveBoP/S3MnxMODqy7eviPpYsgXZNB0EjK2t\r\n+0QczqcvnTsf39+ZLtVALXmtkUB4a7XDbtvsoEIRY4zz/GrG4KUrwb4w+Ruq\r\nLipLLX4PpHXW1NMQOFWMQueX+FtMU2M4dC0pzDjA8StTtJnOMii+sicIf7zZ\r\nUeuRmmCY8y8Bm54Lge11/vOEP9JhQ/xgSxzvvJUgeAYCNZVXg0IWfECtvAY5\r\nC8tsvfcDzEjAQ5bFULX9tbHOGI5huu2n09aDtNyb7hoN5I+IEwRkwckVn6Lj\r\ns0nP9TWzdW9RRx7b8tekZGdg6k3OIYDeZ3I0jZ6cmyp6gZ+LX7Dcrr/CGVz+\r\nx2k2XuUXAK3SiQh/mmOUNBLWU9defN8Kpd4X3EBjuQoU5eQ2aFqCBtyzY/tX\r\nLoMLnnWewfE0vy7/C84Ftav9gkl+SIYLLcs=\r\n=PDFU\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-connection-manager_0.8.1-next.161_1673579422992_0.6903129367825607"},"_hasShrinkwrap":false},"0.8.1-next.162":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.162","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.162+518b8fc","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.162","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-HA/Xtj/bjASZ1F38A01nDnKfRvZgi2EdfVDQ661jHskij+1p3sScsIXCxsFWSe3/ZY2pGk6zsxAiGWb1+Kq8Og==","shasum":"e0de1b66f35974e9867159a8b640fa536b24bbb2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.162.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDb7YM0QgtxVTvDBstOdgYA7a51kscJKQm1m5ZPOEDuvQIhAKiiHK7jAGvcE99XnvaL7wURe19r57oBTj2DgAs3a4k2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwNVjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoarA/+NVxWFbUdGlysYCZUvNWBfIGNBEFjFud3nKLkAZr7J1bWLSd3\r\nVPmATzPaFh23totpR1vWuT0MMF8cZUWBL0yldqNE5mNo1FvI2REhQSA4Y6U0\r\nSjCQVDnv8ruIZ02YoWvUDDC8/4WxpyYhISEOcsGQYisWOl5OIDabVtI3QM0h\r\nk2Opq3JVBN0woPat8uSwYJW0B0CODbOVdy3SlVb393ggaUcrYW1tPFaBDB6A\r\n4wS92AqmsMOW/UKxd3gtEuAstk2J3A7iXLq2WmlTic9b3vvAb0IrLy8CAA/V\r\ntiAUhuW64QDxkQ3gyR0hReW+G1kOKnPG4yJH4MGdJltX979GHmchnDuzPSeo\r\nIpLiciAwjomXXy+0PVEcaHn7Hfurjk0E2EkU9vMVmdfBlTQOSnnsH7QwK22+\r\nX1WvK+s58Gku8bT0ak52v7Lbf8JmsM9TpfOWjEY/PygIxSg1PWjDOSegWsM7\r\nsWv15K84q5orDPQxAI9Td1q9wq5EtJIHdHNJQKC0p+HUGOJ17tKthRG12Yq1\r\nnfwM/xuT9YhUigLIIqzHHXDysH4YQ9mmBAKDsJN1Lm6h5YMO1P9yoqzp6Tuo\r\nkjCL9Bmao8TvZzF+h1s4OCjdf9b9Fhp9Z44Ui18c3ONYFmy/8HPDR9/YZkCz\r\nyceNkJA1otR8GIOpPKHDx1RdKXh0Ot5tzQs=\r\n=Nzvm\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-connection-manager_0.8.1-next.162_1673581923530_0.24853491084548684"},"_hasShrinkwrap":false},"0.8.1-next.163":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.163","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.163+1f3f6b5","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.163","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-FjwBfMeGkvsbO5s9wExRYjYjzCRCIVp0f2jrb/Wfp71M5QcR1DGl6H20Hu5YqXr+WTyG6ClNduOtQzdzRwLg/w==","shasum":"a0b88298118eb5a286a71e86518384b9dc6be536","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.163.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEoH1aXe5BB0UeAhUFig+FFGk/z4B/Zaes69UM9K4yq+AiBtg44tBoPSvEpPnAZUxoIPxKhM7pdezU5xpiMTnUt0bQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwNkPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqythAAlEfyE389FzQi1fwu5b3IrMAVK7X7dlORETJyplfVkUulPqm2\r\n8LlDAfuIX63VaWGx5xywORHO5IR/EtzSWmelE85vt8wYtL6gxtdvPjRqn8S/\r\ndV1fURZmvCbqZr3LTkiQIV4ZESfAKGTzMEygP+ET7NEDYJNGZfYogbIKL7lH\r\nHzrHktG20avgs4V/syVgXoRDqLmOwSlkR5aWmxR+xum3HN1BQ3L7JRKvBjy8\r\nm5Qz1EpXC3jZv+cA8/f4dOnrXfQye8za2u8NhZvoNUux17JoJNrcEsqBH/vf\r\nGI16wPuddo+00/gPnrzh11dQOILXKWn9la5pRsB9gyshm0GuZFUsomc2RqeI\r\n7wQCeOAIp4X3SkuaLdUXZAI73CpWu4FnLpUj6QZ5cEDjtPJ+pZZOBQWnfgnQ\r\nKo4l1QZMNr6z20ECt9h6CRHH8dSgbFddr3fA47mXabzAZ179lXC+sVFAhu44\r\n+9N+YYAUiNi0iEZ3GnpPM2pgyY7CgM7qqm6An6EeHXvm2WJy04XPWvmu7ni7\r\nDO81IhYGwFNd6lSNhq60nhgbL7Y+yvzA6zqZ2w51V5yj0aenROQIyIOZWufA\r\nBQlH+HJh0qCjMMNers+R1wJJUr7umhmG4Rlm2a9Zv8iYA/uQJpPwR7f/Pkla\r\nN+9d1hWTE19DsNw9wQcoFN93UQdCguZmDxs=\r\n=KOBf\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-connection-manager_0.8.1-next.163_1673582863458_0.386833452074939"},"_hasShrinkwrap":false},"0.8.1-next.164":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.164","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.164+3df79ab","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.164","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-CY815AeXS1JPuXGCxUeWcszF2KivxPhCHXjhYO0PVaXfMOd/wyOQVmGuq71KBV0+TkA4lXuiapwAzSEij6tLfg==","shasum":"c50fef8dd47a1882e9f2a1ffa02df17ed759cc35","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.164.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjRrIsQGammM8zgAM0WwKRRyTuVGTS6xqgTE7C1hbg6wIgW0qP7DDr/FvEuRWmo+Uh/zBBSbX3fKmzIGhpvxHgjM0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwkEbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmocrg//S4qNn6RkE+hWfkYsSn5hTRZKCx41FuWpr7r00AqCfBbIoriI\r\n5/uoK6BtiVxiNPwFgFzDlsfDDFzKDUPkEMxGYSlTa7cEPdo3RvmD+epOtTjY\r\nC5TlvZoCfItx07Y3sa+WZV79QzmEkqna/eHdwQttd1qUjMC+XVp/DA3PwNk3\r\nTjuxdaMvgIaTvNbaZfSyAlfBiG77cA5UzzU6bZI4VNYOAVTERK4pu6VD2VoI\r\nK1sD4aSYa3Yco5oN2iRStabLPtx3saM8tq7Jg7Y4jA9t3gHrNU1rTb8SpdYQ\r\nWJjh+GWkNU1xPfo5jCnxYhhntjCLAZncMiAgosQ7D69Zeg9Lw8WOQFjgiox3\r\n1ndH0KpqwiZIkKuXdxg/Tf4rKWYD2ZELMcGeWo7GPb+78qPGvTtt6lvRSTV0\r\nM//tVZtWNfAoEqG8E/yXDHNNNpubaICrzlYn69I3Z8nEMg/2YHsFtXbjDOc0\r\nq/GeBDkDQ3ZVyVc8q4NMTgSE6LuoviujuBvVpj0OyHGty+7+oWEvpfMM/5zN\r\nUw2HCk0zOCtXqztV322Yr76Ko2J4xBhC4yqQLxp7a9fzgb0gstiZjKJhh4W6\r\nF75aJMKouZMMP2NKMuZXw6Xmu+Cg2r+Ay0MjIYgViZUqh/W0rKzKPrJhd5j/\r\nAYrz+cValti8rG+XfUPI/NjMxwEg/ApXkUo=\r\n=Ae4r\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-connection-manager_0.8.1-next.164_1673675035376_0.9963389741076814"},"_hasShrinkwrap":false},"0.8.1-next.165":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.165","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.165+834642a","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.165","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-VeuDl5DlH36S05O9begnmDS/VgzIr3QWFs1bMG0hIHK2P0tXyakCvwe1c5RIiNtVPGWCsjsm/SWkV0oi0jb2xg==","shasum":"035059c504b44da139b10b0a71812b25383b86c7","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.165.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCM4M83UcjvNCuV5jiF7kZL7uykmoMPmXkut/RdjSXZJAIhAO6gohCFk4wjXK4okrR/fkFfh94+j08O4gDhTCUhH6Sd"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwkkoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpi3w//WcZwXbuyAPupo2Zl87yd609/tQpfpHz97zfWeZ4rZ8hZWyLe\r\nXs7w+YbC0slQ511foHFseK3PbPMYII1Y2d0Gr+Di+vlVpNNf2dPKNOvNgWWG\r\nD3edqshrMTvHukFMr3bM16bHr1UMtdtVGWktC5kM0/EAhJKb0a3bTiewHzvh\r\nrWenIO3btAQVTKldQVQUr8V40cVZJ1T9gmlkuVbG+9ez6NoTVZ583yjdRx3F\r\n4uXntEJ/gr9NDasu7sxeGfHyyTKplSVv/abji0Ozl21LgnCsDkHmXogA8CFf\r\n0oa5iHojsGNvsU6SXH1sFQAt75PWV7eKAKENhlE08xqe2v3FdeEWnQVcgZaG\r\nHhvpyIvxW1IzDbuPSjLXpg/9I1WckoBTVa11NK/9l1b0mGGOhmXERjZP3M/S\r\nWsFYJ5j52PsFYar6t5bPwRv5GypZr+8pUDmIe+6ElMMhQdONrMyqHifVuZen\r\neer+/aHGTn333SC4qCj20VRkP/LpOSAgjVjZgRGoseBkLvAITHiLx8gjdFyQ\r\nbYiEBE38yP6t+KPWGvUunXl4DsCUBcP8BMfu+C47UxIEJ8Nc6kna+g5T4nLV\r\nvnRYGwGaP2VN33zfJDYF1D5YOa/eG+2heULm8v3ICN5DnJNQwU7kTj66DNEJ\r\n53q6OLtla76K6lS7MzXw61+pDwzZ5BPKAcw=\r\n=9gcC\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-connection-manager_0.8.1-next.165_1673677095941_0.16857154701656896"},"_hasShrinkwrap":false},"0.8.1-next.166":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.166","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.166+9eb47d1","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.166","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-BYr5P7bkMNub6DZ5NxPItMklm3lX5pi98uoj6pWfKkLRKpWlQq2Pyb220GPRsCrB5tCEFeRcPSBLc48kYk+RUw==","shasum":"2016678088edf8fc6d0bc77037815b797eaa83c0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.166.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+a5l1cQC07rO+0bhXcunNUT9l+OhmBLFtnkSnfHWlNwIgEMH79oYkkbUxR/LiKqnhndGaVpUBSKhnB98tCqien2Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwk3FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVMxAAigzW4zG1AMVt30SyVOi+z7dJ/VLPvbJCnBNsk8fF00Pt6hq9\r\nGfW7JdyRCmRUWjA+CVg184ddXgoYFxQh/aktlgnOtxnwou1qFuHSETvojL0z\r\nm/D2QKsm9udYMWGgX934HG38SIZAxgE7zieZDg1lmt/1gdJqfQzDBZnkEc2L\r\ntQ7SrchNn36S95WM7U3dymTeFvu3wmLsvsjxa/m2tXthrhfb4SjLOB8jwVx0\r\nLFBRreGgq8ECJo7IC7Y5Ji45C3tapql0oszM7/oUCfA9BmtalJwk+GqK8B/V\r\nUA54S2zXqX+JNp7HEQ5PZA8Ruey921RAegboZ3f8ciO+jFiRiqhlHPeaj+pW\r\nmjv8ERAPEZDUgVee6nX6IUGQdJkO2PYRrtdrPT0/kL337MMffPfMj82Zrt28\r\nv1tUvQjvQv/O0fRA7k/VCcWl34r68w00IrM7e05FVj5q/tek1v0co8oixJAB\r\nx0RuyBVLlOqzks6QEiUC0fiOWkLS3biuNMzrc8j7Rtw7i/4Xsq3MytoqVzhw\r\nUsU1mErz7YiIjFsA0hlIaHUwCTyYD+PzJXQJ1KOktw7xOsSWezgmUIR94hXe\r\nMxo3BEEyKp/RzPhbgtVLovJYu82pw7CvnXOyGczz0SrDp0CroY1yfPSWNmmz\r\nn4lCzvH0YHbF2FVNWH/O3P3m7bbxKuAt8vg=\r\n=1iZQ\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-connection-manager_0.8.1-next.166_1673678277213_0.7898955521404956"},"_hasShrinkwrap":false},"0.8.1-next.167":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.167","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.167+d6f57b8","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.167","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-4PUyXz6Aw6X5W8zLQETKBypJ6X9ieleTcbtHPwvxh5JzJL5KN9Pi6G1Ph/AlZv6hTbV2PYun7evEGoABfooYKg==","shasum":"dcf14c21159b783f29800f2dc8d215526fa54ecb","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.167.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOXUZhJYsaEMeGcTxajpKLCXjLblnwpOnIh1B6F+iE4QIgPUcLc1CcHfjlCWBpjH9c++AbYM9zo7OIQ7KEJwOUEW4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwlIoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWlA/+PPWParLPUNeTxTdAKb5mIoXaeA7n8mUBsuOoJFAWPssvsFpA\r\naLmNC2HynN7Lh13zke8FIIO73QZAWaE3ijT9g559IUrrJ5sJzUxnBeTxcsNW\r\nbifTInorM5gS2DaXPDqiwL+fM2TNIncHpUeCQAUb3Zgpf8+Hw63adtblT7SX\r\nc3M+iEGO8w/x5HFuBaH+snj+L5GQsLmsRnkypEIEvE3CMaY7gU9atRqlyK8f\r\n3eKkyKj53rcsE0mdR0pxiO4TMVsYoP/2VJgRBvIyZPu2ah+/mDohBPk8aeHI\r\nUOJFoIB2S7OB+VqMe9d/K81jPAjBWxneuXx/bcDLuL54zbQMNJeve4APf1ji\r\ncKxAoMFCtDy2iyvr1bKEoD1lk4hGLb0sIuInu0C2CvVSC0Cqu06xhkqrWozM\r\nhkkLrISLx/YzEmOOxQsei7/EAMdlRwriDSEC7p0GiJkXJhaeXPcrCXK2gY5g\r\nENbYzZ25AFJ7tGPF3M9gC4fP5UQUzkt20HuJp3rlbCjYcCdkD8uUweec3K/R\r\ndznUYI39g986aPqxoCAIP0Sh7risZM1NOyQFA802AC1GCCQ3+GSQxkNQiiGu\r\nkUYeEdag3gwlWRyBxhW3MHWvxBeDqy0fAB5zQQ9Tumr3EQNbQWFhqD6KcIu+\r\n+sRr+A8/XWS52ndFznLcma1viLXt4Xyu6m4=\r\n=3BeQ\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-connection-manager_0.8.1-next.167_1673679400258_0.15431836374934038"},"_hasShrinkwrap":false},"0.8.1-next.168":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.168","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.168+b163872","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.168","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-QLRcAcLWgtzIJ1R0zNrfV9pU5usoulWoXOfpdJlPco/JJGc65t5jpI1GNxoKAVwNo3/q3G4suMhB2t+/laZm+Q==","shasum":"b9086c55751dd1d5cff06d91e6bf75bf29aac4a8","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.168.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBsUzWQ8vsomRJiBStfkfplKQ7Lhi04I2k30ByWcMz+yAiBnh4j7+4TszkOWcNPkng+cscxNp7GucouMNPfLAHbEEA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwlo4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdfhAAm26rM1jKVnluE9brlmYn7FoyAH2zlb1xs1BS5aLVEBSsgW96\r\ntHzuKXZOxNum216PZZZQcs5eg2FaIv/L7d9pfmifR0Q9RAn7Y/h38RlVQaV7\r\nzSpm0R6FNU33hG4SbHf3k1pzbEUwv58GmkGUsa8fPTpvzJ4auHO92DTxc9so\r\nDhFONJn1/vO7NWQY0Y4ddWQ1RKZNtO0yoZTmnFFFMvjpcpPHSHvhEB3H36W6\r\nYTz0C5xbmSolir6KmEECXblMvrlwDWdnqJBaJN7rZ2RbMuVnC3g5xLe5J1rU\r\nAshPvfDjM6czAARHpzuFiWcQatCHcd4uTfaGsyuS2c2GyMzIsRKjV6+yw06P\r\nWFzVPPDZYMcZ4ukCsS/daPGOHWjez1qWN6zyO0wcJPffwGF2l7jIe1PWBQeA\r\nFi0rfmC2FJLz11fq4FvXBHL/KLreeW/ekjBTIEYbLx2cl8gsXAMBuZf2+D1k\r\nT9Oo7yywZ6ZTfTvM6zhOqKmbf/zrp/1p2zzbJ9SnEbNnpeCk30JKFlGPkWxI\r\nAyVaxoX+nK7baSn77ypyB9Q6EdlpHyM46x/rvkygDdWui5C1iG/2lUj3J9L2\r\n1FlMCg7JWeB7RQk+YSyHrV6X3kGSoMdh/ezZT5xuHc6t9KiYzEQdd+XXiVwa\r\nG7t+dtSkK+Ax79inWzFNWjdMY2N+ZFY7bl8=\r\n=pMvr\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-connection-manager_0.8.1-next.168_1673681464654_0.28274050010275986"},"_hasShrinkwrap":false},"0.8.1-next.169":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.169","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.169+3da5bad","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.169","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-1RYVVixOnFxvAGz9Dt0vF0k5TPCEZomXyNrIYt8b4GqC3gkDhSGSEes28pVxlBRFA33lNo2FfowZUerulzM/+g==","shasum":"8d4cb7db6e1a0e4755db6ed919c16a2b581bd85c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.169.tgz","fileCount":31,"unpackedSize":66447,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAUeuBgTc9AdjO/NxRBPJAeB92oLyc0PuZF4J35waZjeAiBCR9jUWPXWhxIGH+Kr5dJeMp0e7FK8q6qKD/QadQ+SvA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw2BIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqgTg/6A9xokrQ6oEEkHoQIaajneJz3fk1hKFWHQiqk7Zf67zK8DirC\r\nCc/IAExzHRx5lH87pJiUG/1a4ZEluXfvIKNxLqIpAsfRsL2Ud2D3aYVXoLbh\r\nhMYaycwjYVEG8mTciLEsBZb9Vj8NYPP77Inm1lVOYQESB9tMMl9LH6w4Cgzg\r\nNWAMOHoagndCabKn7OFwCspEwizNGVl9SCYA4Souo9O/6j36Q2o7toiV7MaP\r\nJqhllSEnEn7CFN6llu5HP3UXgMGHANrmjRkcE6yamXPtzqX9InESKcdx9x2X\r\nLXeTSZRIr2PVSyDmTjpKswXx6aDcFOpc2T7GMd1n1u55yxh4MJhK0xRNpwBB\r\nsk8fKrQfue2xLUm8eSShh/9T0Rays5nAYk6ZLmfPtU4tWBTqCwgf0UxzewFR\r\nnBPz84/QhSFp3KSdmmq+YNraiADigDwV75Td2SjEAmIvCucbNZuFIRkQeQVt\r\ni5YPsouYcCYi0udfEsr9/TdvN0WpfOoUI4P192HoH3QVELqaplpjOOa1FuwW\r\nKB6jCqTSkF93blo9ZfY1osfWbunPuyfH49QvmYEnrikmguMseqGoaa0CtfYY\r\nYPMExpM8jtJ4/M6hvHj+E2jld95lrrHjqLtWh1hgrQZpbT6WZRNkMlPV1pXF\r\nzYxk2gKz6wLa+cR49f06pizDHP2sQ4rlx2Q=\r\n=k9YU\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-connection-manager_0.8.1-next.169_1673748552613_0.25244733830157884"},"_hasShrinkwrap":false},"0.8.1-unstable.170":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.170","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.170+5d7cd19","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.170","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-lVfAWq0fCmz7EnELx4cRLXCgs9s/j/V0IHF2WgNvX7lLqn5n09ESa9NGM47sCgFF3vUYGSaXOEQ1aKk/Z5ioBw==","shasum":"6cb3c7f0e1f9e94c308d4a66ea90fbeb83a4e363","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.170.tgz","fileCount":31,"unpackedSize":66455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPmJJb8bUY2hYx5Dej3dVRHaydXWkljc5CYEY8K7ZY3QIhAJgMR7JqOuv4fqIxewouOMS/dtkPV+4A9a8oP7Q7jGV2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw3JDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZPw//V5msf6HB8unt8/wCl0UCA6WMJ1jOqgfYUuUVfj2LD3GEv1Vr\r\nxX7oOIO/3Fi+KrMsMNn12QlAscsKtv+KtXYJLqW1bQIBYde6gTsE8roe2xLH\r\nEKfb83O47t2+k9xlhwluEwiO9Advw6AlggnHN9dz6/A1huUWUg3vmh78Jcou\r\npdISc4W1vSE8164I8hkf+alTLJaBK7qvpw6EwUMncJlDftn0ZpWwL5VcPJ6/\r\nu2qq6UI3zdSKcWyxnwzrmqstuPLM0eybH4Bsvvj5vDEOzIAYvmGtlGSld8Lx\r\ntPJHsiixYJKuB0QiizKJM7wUR/unG5i5ILxknE+1QGBObUW5mJeM+TMW7VkL\r\nc+0pAWSnovRfB+dXC2rpfMAh4SHruWc/7yzMwWGKVslRa1TUjZSqIIIP7UrI\r\n7ycHowEi4o4mfU6oJzjVcd7okgDFLdqfXuaqfjd126Ne/JOUSGIHdsqheyfb\r\nPGYP9hZPVuA2kOZa7lWOn34a/bpC6NbTqbirNnm/KOC2mL4i1559jIx/ofyz\r\nYGmceOvoJ6WkjttoRPc09RjZA2OrmOlfCdZ1zGMDP6RN1BKk6D3umcHkPln1\r\nKbac8hqBSBYGRMndBASc5Pd3K+f53LbxN9T5JSAgaNgDy5RVnsKltCUHCZ/Z\r\nSfA5WHRK0KxmOMfYbDjSW0B3xsPoH6tnTCg=\r\n=E82q\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-connection-manager_0.8.1-unstable.170_1673753155480_0.5677067976938412"},"_hasShrinkwrap":false},"0.8.1-unstable.171":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.171","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.171+67a8185","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.171","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-0XoxSY7xhUfjnKz7Ym2718dJy7JZPm8wlbKzFIMxuD8xEsgXSubxzMpE1/sLNMLchxBseKuTous2ZFVONY24cw==","shasum":"51b96baae77a0d353946b8604323a92fc50164af","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.171.tgz","fileCount":31,"unpackedSize":66455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2gBN5D8FDHFXw8r+pkpHahl92BxSKm/QDLdxoQtfLAgIhAO49Y6VEA6+dzey3loTZcLbqOM3MpZXXSeOBQS7Nfo9m"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw3SiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmps0A//ReyLya8Z4/alPbUvc+auVVKtIJdsmGi1YMcnq1I0oX1fix/T\r\nSZeXLVHjuAVkg6R1twD9GLstZzQljCUQvRF+KtjXiniKHcTiklNR0sn7ntDX\r\ntILxC8ayz0vfoXQA+ew5G/Klj09kP3i42WeR/thiv5fPngKbNj2kunxhGMnE\r\nfC5udj4SSkr2h1duWJtHb38WNSQbbbEfm5ARBP+n0/pJEbFhJkloGoQwfXcE\r\nhfKJ88NvTthTxDt5IX7Gy4zM1AajcuXfcbdCnMNb3j4l0O4LMaSVrw3fLmm+\r\n93Qvn4eVtJvUwHOjqOOCFfIF8uIaxHs7n6c+13vOssL8DM6TD7wafBBMZA7A\r\nvyD9aPHx0G/QTp8CsjTLmNikBcN2ZYrd8TkFKkfKlmz6Y42qBOOgVXMq2CtL\r\nQDlvPP7iAkTBAzkHavQH89Efd0iZUm7+EnQvU+nu6YfEGJdWt/qsvHmrw8Q3\r\na4oCI21ksFJ7OIPLY2xehCFZaVVgWl47iVY8AnrV2fFBW38O/fjYnvqEai6E\r\n8nTZBbXT1m/C7MurmrGcIoAhYbkaAQcUGHcB/WS/sBqWmRXDJ3l5Utx7pcd7\r\nIDo8q00njQLG+NpSxx5qwI72ECd0YtIVA/dYslnoPwNqlN4PpqPBiJYY5vG+\r\n7CiQ/1BbNgOvM72EImo3BDX8G4Gs0zLUp3U=\r\n=yrwv\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-connection-manager_0.8.1-unstable.171_1673753762229_0.34068575306392335"},"_hasShrinkwrap":false},"0.8.1-unstable.172":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.172","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.172+b388091","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.172","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-GAusxb+t93mIaoVOIXzFB+plaH8QIHe7ekeiufpTAziK0CpeJy0l9mxAT67gUtznwaSeTgDoX/DRkoZPFd+ZEw==","shasum":"946143408489661764cae95240a23716c1497ee0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.172.tgz","fileCount":31,"unpackedSize":66455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmSVzd+mKud3gJJ+sMGoohXnVrGodG/jrYws5vRjYD7AiEA1BDYO9SnrGtBYbAYETMOrNazAmPPcotFx2s/hSBxk6c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw3ogACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNDw/+KRsPoJJX/HJ4fzA2FDit8Ed6yhxSL8+q01lLISmdshOm8Nh2\r\n+YqirRzvl8IdWEwblqaf/joaEBHlaJuvNI0HmzRKKd+kRzyWGLVqvDOkhUdL\r\nitG4FoYt/RVUc92pSnax7+MU0pQFfNpWBveJHEbBfcLeH6cYugUtJ42q7vDm\r\nsy6seXYQd0nMqrc+Si/xmsSACpWUisxL871JA9jyF4TlAi6RL5BqdKHIZXjE\r\nOyCWYtIXwLIjAjNL9AYd7qNYA82Wib46y2XlW6uvboEkZ9YYN0FFLVZHK7wI\r\nTmjr9w4k4aqMLYk0Qy+ZwTkg2fZK4dP1TVRPeGzWJDxg8jDl8ssxJBYnxujZ\r\n0QSdIjWbKPNJT5f5dJjWq5JHZ1YHHSIzeeNMJL3rARe1ux35UJQAHXCeiUK2\r\ndCE+Yr7hfEpVfOeyeBmYWFs0fQKDAR+FjWnABa+1hv5D8d8Q6idscDh+mRnC\r\n4WyUErThqh73TNWO5ekajIevNU1cG86Pfd/NpIpSlVFI5ngGBY7WvVj8Us0t\r\nsNqm3Ig+t9v7+6/1czO5OpWQQqjCAJJ1ksNfxrP4N/2UYdaJ+mgeRTZnBqxi\r\ndv0CAEH3x/maXVF/1pF/QEtizLxCXxizOslx/LUHtjXHLAmAv6KQMZz/O1Rh\r\n9sYFmqr/dAY9TnSf4DzOT9901t7szEG1K4M=\r\n=Bt32\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-connection-manager_0.8.1-unstable.172_1673755168435_0.18211895745688622"},"_hasShrinkwrap":false},"0.8.1-unstable.173":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.173","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.173+e98ac2b","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.173","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-qMmxlu6Wjyiqw5Y33CZAmhL7wC/gk5aIkgb50Kw+aDeyXrJN+dmVbDDRs9e6Mumj+5fedTx5elSmtoXDcihQsA==","shasum":"cfc86da874453e3787c609c5d5f8bf2700877e16","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.173.tgz","fileCount":31,"unpackedSize":66455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0pHd+hqnkLlsD97Cs6x6NJBxodhaz4+5A3n80t3xEbQIgOCPicdiiOUbBzGuPRXnAyGPoDSm4ux9Pl4p+c14GyUQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw4mfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTag//eeRwVGwj9ARRp9iu4ou1SV5GpeRfA8Qc1qoP6YteWepzmkf/\r\nlmKsRm1a5BCYmPCsMeRwfKYaIVu/z9dhr77xp3Ayp32FbnPcs7wimovnVMKr\r\n25xvVeLL9K3D7mApoSDdRF6lxvmT6nNdbBuivycnjRo4C+80UGx3YNIABFo+\r\njRJYIl7bX5QAR69n5qW+IfMDO9GcoR89JpEO680NTpiV88oXwMfFZA9Zo5ij\r\nS+WVtTdoVAA1BbXV8Q8I7XaB2K8yUuWCyiPpCMHQ90gGjnobWTRH3SOcHS84\r\n8DXNcGuBBANKzgv72qKCRRq5EATcv4z9cbUjjW7NvPRb6wFlBlUNCG8fiIcV\r\nfxdsEBfop+AnqxYnvmHsi3q/gHwuVPcBuT6cgDEnYL6qJ8YwZ6F/NIj5WzFn\r\n/M6EyDRcXiTIaox4TgwmgghXzxDbrHR8hgoFNteRcihzv9xlK/WueI7WPxrJ\r\nKh9nTA1aTn+0X3h3Nxaqq9wFml9F1KVH47b803BInCSAYGV/EEu0yvV4DWAK\r\nU959AiELm9/N85mJSkTnQUzc6KHDhD6l55LBQ0axjRDAgko0jymKUrJTefd0\r\naPw6EgxQ0hz5pljYBp5YLQEXfwI9Hvs0NepBhIJaBYabxV+dGB8LnZX8CijK\r\nHPsGkll7tNG3kixV6WBfeN5Vtr7n6+wB7YI=\r\n=vQXh\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-connection-manager_0.8.1-unstable.173_1673759135079_0.2687528589841419"},"_hasShrinkwrap":false},"0.8.1-unstable.174":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.174","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.174+3070df2","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.174","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-L/B4R3zdpGUxk7dUKVPiJlUDy/o8Y1RBTwxoObOYxBRd7Eex/1iYZdcCm43DVoFpvTtAnlXvX0ApIAW2lashXA==","shasum":"f91f52ffcb67a837043d7ae88a011c881f1ecd58","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.174.tgz","fileCount":31,"unpackedSize":66455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBaeyaZGc8Td4L3fwbcMdX4kYQZRW8oYDjsIg+yipHmBAiAoCax2TSGlU++4sQsR6D0RcGEGzQc4/ir4Z0fbiEzKdA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw5OMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9IQ//SZV9vmbViR/VzrljcqDD0+wzURLCX1wDX6MSsr2VHTnHq8Ih\r\ntrzZ2S2Mdcwu26grfchYj7itGEvtdsTD/zsQJxHIuwJf4K0+5jIElHXQV0Tp\r\nAQlCbrs+4tkVYJDlH8Mq6Csw6xnE3r2Y6soQAMWd2dTIIhnRxJ1rNoA89KkV\r\ncg+BsJ2osEoVyZnpu/P6bwLjB5xjD3T5LbmZs7lKcN7lrE6Ck7hF9L8IFTJP\r\nYC7BaM7uLGmuM6c5MBdDwiSyDb58QBmuU42xTD+NsIXvIl7nwxCcd5KvTnMh\r\nLPz7iDZ1DT7pU1C0jty0crvP5rdt1tg1JfFvmk/ktq1lA8Hs1rD6yFH+bs6m\r\nqZShD6zanvt88N4YTuLnBWPWU3jhmejxZJr36utaKqJRmZ+5KI42tfDpitn0\r\n5HKq2Jo8KH2HMKTHPNyQ1Qbdnybw4NU1zy/fm63gpOJyObstY9EAlZJvHd20\r\nPE/I/86fx1OhWtQhHuMgYAn+QhTtrJQgfoF2EYKmLeV6TxwjxG1mfdURPQks\r\n76LYf2tBpmGhapMlPPe/IByLjtmMYdnH342BBwEhEt9b1TvGncP7Mb3GqLSu\r\nYGAyWPNutRuP6bWbiFYdASxEHHbhgnqU/G13ng+qJk1qPEsFenZD1wiTySsX\r\nHtQEhmi1tpifPlsoSYrGZerHp5gCVQKHb80=\r\n=rFl1\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-connection-manager_0.8.1-unstable.174_1673761675841_0.007180140869749385"},"_hasShrinkwrap":false},"0.8.1-unstable.175":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.175","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.175+e2117fe","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.175","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-Eb4plg4o+oYAKB3kyax2Eh9GAdU9WdEamdQgorB4blZKUj0v4Bg3NjUpGA/w0sIRo2Ai3M87bCduUrwNts3Ayw==","shasum":"563052b98f9dc7f68d4afd67579409cb6bf7e10b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.175.tgz","fileCount":31,"unpackedSize":66455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnbSISrmun4KEGQbzLfOTbJnwspzKOnKxzYiyp5UPHmQIhAKPyOMzW5L+w2wGChZXs3w1ut2S8v0sO9bOXQ1kEoQfX"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw7QZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrtsA//T9w+VabxDRggmqEg8+6YyC9h8wtFR1pJrKoyM/WeNSNxE4bF\r\nwM37yd/5vd3S8bNLIGLSaWn/BkvQscC+DmjPovl7hO8M8CXlJLMkd+nMYOC/\r\nOEaQdV/cYP9mctuGOYig6TZKINOo0SUE44q1AEL0sq9gwKri/eCkVBot8p4v\r\n7EMi+hdNNMTBQtSrKiU1unqc/HT0xfG51ypkXNSiGnga2pP28tQfxxqcd5bH\r\newId9jYNMXvm4gAUxRF2e46I3zTP6o0NUU2T4HBoQruvrj1+5ryQuwFHrdYE\r\n8uN+TTGpGnOjdHeEyrN8PYYe9LjXs4hOqpXpXLsTUSiwV4xwZ6ly9mSPlJ1u\r\n/GBB7wBiBPbsW4iJzGKiL1xpt9D7q7MCfYuEZdf0qGF/C5rux2667OwLFC/t\r\nQ89SfPrONZ05V8BF4+HN4KxjDXkLxOPp4Qv5285r+Kxg851SNB7yMfYdiAUl\r\nV18L5XpJ7EeL76+1PA3nem1pGOS+CWDpqo9no4iWhFfPD+rdhXTd+AJywpqY\r\nnEm4kp8oMC0/ZnqI7tjVLCUHzbyYr0s4bTP9XwycTVGHJ2OiYq8sKUNHhxAD\r\nVuLnnqJRoq/UrbFni1CAXuOCF4W3lEZRbvJw+zJA4xcR/9lM9iVhKLvK42Uf\r\ney1HavJ1RP3udlns8QTAo2rRFBu3cswh1Q4=\r\n=Phlq\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-connection-manager_0.8.1-unstable.175_1673770009490_0.4806410932741394"},"_hasShrinkwrap":false},"0.8.1-unstable.176":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.176","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.176+f57ae17","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.176","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-IFNG/TCyu8rfWb1qaJbard9xp116OSM/NQ8Ilj8DRj3FtfWOdSQiuZn/LTh0jjCurRjMHfzGddKDR3TTEhPong==","shasum":"0f10eee341249f28c1743593c23696206c383f5e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.176.tgz","fileCount":31,"unpackedSize":66455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBPQkH/p5BGcm8vh2DZzBPC1/7GnhuCLMHc7q2k2YwKAiANquTOcNE9GdterQ3eU/ZCjTQclhE/Ev1WpK6gwu9cLw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxLHMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpVw//f+V82Lfh1KF0Zk/eJFHgN1GWWaDGss7Nx++sjx0SC6NrEfSv\r\nyJlBjUhIn+ucMJ8+O8YexjGFtRS7omo2rKcWK6YwknGr+6UlNcgI/vbh1hKu\r\nT0eq8885k/3NQIhg7J8WAXiSXIOKVGwbgKMSQe8GROsXnQ0GW9vzsPvwsqW3\r\nD28WVxvb8XXcX391hfEFMb7/8IAgRqCXVInv3ZBzLx2EWvwfUKlfXiJY0HZK\r\n+HybpKsjngMrUNoChM5vb9Dpl+2L1fKs2213d+hCAbXFjNZNHH5Gj8GK8i66\r\nZi51+XW3mcgu+v+hOT+sNkgVc4ZW0gvVmgbpiYBwLtfyP974iNdh9Qy+fA2y\r\nN/ulfpSP966xKqebMPmEOLFUZ6WZm9XEbdZts01J1Qfr9dX+HuzDSH7/tSZD\r\niSzkuK82AvBBdbibyOCY+QbOj5nyZ/OSiMQrtejWWo2dRVUCRx1R5vYcVbrv\r\nIkm8JE7IVZrLAAl427Zv3xSPTj/R4JbyTOk94sVkexKt7XNaSOZItRzmGVYA\r\nhjdj1Py5w1s6SW87IFKFYqvaBUr3AIzjbRRusnhOpIz/KE9zf97SKDXQvWGB\r\nSzIT4Hy+IL6VNEGPCYTtJ7YM5bbJxeFyiJKKP/bwUAp1ww4CIttaJzClJ38b\r\nwETmDIt+0xdyswTzAYIzmhXUhAJz/YHAqV4=\r\n=9zkB\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-connection-manager_0.8.1-unstable.176_1673834956424_0.9602991834949144"},"_hasShrinkwrap":false},"0.8.1-unstable.177":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.177","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.177+4d82518","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.177","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-IbYItX5hTIgUQapxZDyU6ponRNbuxIbNkqHF7bHZOYZxbFw31c6NczX/+vwDX1QAh4JOEKYlWvSK0qSVYJUDFA==","shasum":"8d88ff5630eaa98209e673ce659c51e4b7008f9e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.177.tgz","fileCount":31,"unpackedSize":66455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBT1csh3uvxXrfymb2T3yGlzEXjzqIIRAtmJyFRh6PP7AiAdzaqFwluGtvuZuw/nL7E/9zxUCKWiS0X9UnBZ4xr7eg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxNZSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmolkA/+NvSlr4IYFP6cWzZXH3OLfxzTz1rPj4ED/coJTcOswwiWOigE\r\nnjE9MofNxC+aDkviCth/Jr2obAdkBs8lPKCWovsvC9dH07/XinXVsc2Wg3wu\r\nxbZu9TmZJsc5ki18bcicanVhDlV0wrXNYf3K124X4jhKW0wRzRYyc1qrW43c\r\nJP7zcPwtI/XUga7VY1vjZuQhKq4ZCNwZaXFtOo6+4kCP25edaKZaPBXp4PtG\r\nB/USIAhWy7rhurOs0Bx9bMk9AdyY3Q4ZEwIOUTbwjidp8E1WCexqf62slDU0\r\nwXJKa1/7/IQlwbjDbEMMhN6FO4W4gGaKU6maeLFQ+R+3Sp8tXHpWsphhi3r2\r\naMUsb7Ta8b14bjznL3aVCdR28yXiaFYGpXUneVp6l+ExwDdOe2GtTXGHg44J\r\n/ACDRmuU2kIliEQGN3fr3svOLAAmvrvAdu6V+7qTq73CYlh/d475fElNU6JX\r\nH2ZVWbWi1EvKCleQq4Ed/vDGjWWBOjnI/gM/VXx8YMYMXB3aDrrfvsY+Z9Hg\r\nlp9pLdJ6hP/NFVeWPs64rrsAhGMaZVpU+9feVWLQwjJyk7VEadrtRlAziUbt\r\nlv6fEvYgsDWPvJjK0Z28bf/4ca5hNGhBGYpnnq6oB+mt4GHqjv7S+QX1TRYr\r\njrZEcCIu1lhZo7AfFM6exhi0/9y1/lQ0ltM=\r\n=UKGB\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-connection-manager_0.8.1-unstable.177_1673844306739_0.051941363008100705"},"_hasShrinkwrap":false},"0.8.1-unstable.178":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.178","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.178+5f183ce","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.178","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-Vr/tWvUV/gMk6/ueNFFx5WBOnI4FRyHhjp3bPbs8Lkf3KZu+r80yi0AoguawcViW2qK9i75BIIUsXhiu19ahyw==","shasum":"7676519d7eb9ded64ef6fe6a25a742cc1c3d4c3c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.178.tgz","fileCount":31,"unpackedSize":66455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG6R3EoiiPszBR7K9UOCRr4krTn4MpQa7R59oGiSq06XAiB+IS5gOw8pvpMm2VI8iP98h4Zu7I/nBfSfeks86SBAAw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxNnvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqf2Q//cUyDh47YQp3eMt+Us12GKcyVv7b7OqMjL2QjRzGhvL+1PV1A\r\n80YYZLJjnU0iiXG+SfWduesDlZ/xVAk4p/eEocqKc+SWTdxB+oK0vtKOoOFZ\r\nURSgZqAv+gSKkLSmX8pPFJOGGLnGIT7kx6zXlUdAodgwseHUQWqmVnORGQXn\r\nm0v6e738Dm3fCpK10xiQmHBo7a6PHqemIfOgpp8m+RpUk4VIVTkjdYk5EoMD\r\ngSyzS6Frp/bYMW8bDLkZ+7C7sv2MlVZqREV1YBJ3KBGMyJWl7lPWW385vj6n\r\nusFhbWwcI/1muGVcJiCPw8xfTsThgQ3XZo5KQL18aizCq1wt4R7UYQqHgzcE\r\nGwvT40jYW2GJLXr4qP+bSX2x4tIDNitTAs1yDbx0F4iGZGFB3Cid6PJwVFmb\r\nvPzhkTv/+G+GN3Sd/ps4gZGxBJZL9SNysafI+niTwH9Z3RAOyMNiJ3yXvMvZ\r\nvAbvKcaJ7KzUZdzOdBwbI2SOJF08ARDTFl8WleV9xkJ2D16TT1hKPisEsMKr\r\nK4ZytV9Mu/mYzzm3Z0uRXoreMY+d7LnuK4lS+5DQgwqVJbaV4ha5hQLWxto4\r\nQ7G3PyHJ+3+RzTBzpoKyzuFzUOcmNqti16zCagaK0O2IKtMAbtHcHFmyFAx9\r\nTWnfCALPcXUEjL3lP9ZIETEedcL9TunaoJY=\r\n=Zfaa\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-connection-manager_0.8.1-unstable.178_1673845231172_0.524582858794661"},"_hasShrinkwrap":false},"0.8.1-unstable.179":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.179","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","generate-plugin-schema":"yarn veramo dev generate-plugin-schema"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.179+2e97af6","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.179","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-ph3L2PqIs3tQcTiNCPBTU9xwlAclgeKEp2uANN2bo9FzF7tANbYJ24GfO/Gfzx9xh/iqY5K3aApZoixG0DlDDQ==","shasum":"037f20c9f15ebfe6a706f3907a7cb8e846920e0d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.179.tgz","fileCount":31,"unpackedSize":66455,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZlF644eC6iTKpRIUaevJzG4jawKNvuC+9KrMCSvtNEAiEA41HVTekZ7dfdyWLkJbUovLofvXls84OPLsFIPqbEJYg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyesWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqKDg/8Cz1n8ydflIkOzuJFp2L8K6vvzoI2eM+2iHFYN0KF6VzYzIJ+\r\nuNDt6dSNEJcKYmZJSnLqK2fiXSsJ5wx0/c2zHyiCLVEKxvc8VH5kFc5H+T3h\r\n77ZoyTNKJII3LNe7VFM7trdbArLqml5pc9FPMuXATkBafr1au9xkg2GRxErd\r\nFD/w/L2bSvOnB68TQDcC4bVXaYL/AfR0CpPHIyleQ/+I5LYXKrWob7CApvfv\r\nJtjB9bQ+4EjfIzQr57xHwoGvkVkF5YVtGN9FxtHlJ0gAHbMPsg9AVMkIcuI3\r\nEC4yihDULUv5k1Y7du/YVwpiy/H2NZCuDtGXyjVszpD4DFkR92VyvanHwLMf\r\nSJggpRnNzNh/BwTo64N2DUxhz2Zlt3p3yQz4EVsD4MFjsxekexlR8FsCv2YB\r\n/A4PvmB1CD48/nZzhNOk5pJm/I/MHXwaTk9zsLgOxTQURgJiqXbCVLEAjtFx\r\n8exe5pbxKN2IR78+DoBd0Pw9SsjM4QiruPwQ0CczrNKgWK8a6P1AmVkJnJza\r\nXrQTAcvR/roTVZrdyPU+uO18iVLkNDadjT9WxFTX/N597ux7Em2hCNk5tzvh\r\nOqJ60ua/whJr9/icEurL59CihGoeARZzJOtcnEzroKNhsDXQUkye/RJTYhsu\r\nrnk7gNBgBtiD+VD3q46U3wsrW0zZ5JoAm2g=\r\n=PFL6\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-connection-manager_0.8.1-unstable.179_1674177302006_0.7573062466547029"},"_hasShrinkwrap":false},"0.8.1-next.179":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.179","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.179+176cd05","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.179","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-lm+V89gOGw0D/mPbt6yek+hz18omZDMv143ybw2WhW/V8LddmDP+iupAafbBhHO/hJ4iG7RZ2Itave8dWOLYTg==","shasum":"8565d323d6826cbc6acdf5609d8e285bacc6edf8","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.179.tgz","fileCount":29,"unpackedSize":61415,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICFaGVhj1rPRdTnn/+YhDwl4DAjZvZ2A+BI7AUOyTY64AiEA3JaNHvWUoyC3/4LK2CnLT2DAjsUHXWJ42gd3j6+WLGk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0aB8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrY9Q//W98aEFMwT0eZXC+uRsuPKGKbKQrkhjwpYlc87U0oaauT/Hms\r\nZ9CGqDq4KoU6hdAJJb2t70fOEvfhG34Q5dbbpk8DqrlvHOjltk32tRyuyJzM\r\n9ThH8XgbAOyw5IOfhnZYsAolYfvl3Ol/Js7F2RzWruEP9Yxn1+zYLtDxctt5\r\nMizUA/HpVJyfduKRkOv93wTzT3yBT15HVmyHGqZbtkMH7dWpIC7yrmoZAOty\r\nj+9SY6AHUDOxsznGqK6yyTEZXhdxFp//W1YIuus7ZdJiI7bAB1U8FOzkIoBN\r\nnwQcWAfGyKosEX/uubpsf7ZkX3ZXvZ7u985tig+WusqFItDdRd04KrsnHjAE\r\nbyQ12ZdRS9BnvtNH3/mxq+XBgO2pYUJv1fcNB5WoFvADmYQK5DSObEk1LrK6\r\nOTXBki5x13EI1RlekWL1Xdvs5X9EID/XxDDN8w9yfswSlXgWWXLMxoCQ+p0m\r\nevZI3UlkmrVHvNrmulxLL2aRFgMdGLbWZvmAS8ITroVDB8yeTOZ3uJx9Qoks\r\n0l6JOWhoaeZOoKPNduT4OIUWeZOBzZUsI8dBTRKuPa6oRTggBTX4snezx7rQ\r\nseBMpifoFFFgHCFL39+HrbHow0cZqGhdFKbXsUs6wx6rKG0ihw6pQ7L6Fzs9\r\nNKavixzTfTfd+7oJ9CavUqOIiCeYGynTyPI=\r\n=Huxm\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-connection-manager_0.8.1-next.179_1674682492458_0.13683970450175864"},"_hasShrinkwrap":false},"0.8.1-next.190":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.190","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.190+35cba86","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.190","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-tznmLeQuiVAB4LB6TNb7W92ig5M5XphKPZhKmEC00meqGiDjTdWp3PVgix5qXc+F/5Uq8yDgv+428qO30mq4Dg==","shasum":"09a69bebd4ca00a71d3e5aa93a4992210533e5b0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.190.tgz","fileCount":29,"unpackedSize":61415,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDO6PReNNtOuB9N5FXz9I8TNq67g5u1xY3Dq8EzdH+GPAiEAv5vythJvINYsKyuuEVQEEryFrvf5pB4rRn4W2cdktc8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7f+DACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgFQ/+PgPtluotGqwFYioK+TzcloF1FpCnla5XASwMc6RpcPHXAr8p\r\nd+7xgDFRKjp412EqnTLwFdImS0HLzRQ+Gd2TTZyJQhVP+uTWh+dQf2yrMTt6\r\ngljHjEDrYkNyQbcF5G5SbDy8ZK1RxNh5ktcSJr1KMxpVhq4da5dU6NzBhzJY\r\n6NSyX2t3L3VoRwPM4nvKGbTJEddNlIf9C3Ke5Mt8fGee3aBt4JrEMHnBlrWN\r\nAhy9Yhv39zP31q3bZZXiiuo5l7em/o8sq96EofCvF9LFyk36nIN2zsgJxyNq\r\n5v6qb6Wl9u37gjaowT2sN/wOh/EbVywoismSry8x6HXSSarpT992lgLkEBtm\r\naGjNKxG/xIfN28yAcBnWSJKOWSIgcGvOXgGWg9wUlvKwQqOjGaUpxQgyFgG0\r\nZp+17j2n6byd8hM9+f0vT7LMBq4vlZGl43igOX699eIjDJN01YYeLU+20C3w\r\njdbOwRvn+4HmsbPKr9dIgDpqvwPd7ta1cK2/lmGbwj5Fi9MvQta3PKAGK7Fz\r\nTGC5llzFkZkqs77/bhOxTfMeSnsDuzmS3X3zUc9ofAngymVPKvXHTtMTK/Z5\r\n9OrPWmKmeSPPfPoF+kGr7Fl17H97p0asb8jKJohdbmB6rsYis0H3jXhBNwpO\r\nvIp/zrlKhhBvw0Zj7gpCm2RJm/2GNtlNhLE=\r\n=2mhN\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-connection-manager_0.8.1-next.190_1676541827085_0.6557347082277976"},"_hasShrinkwrap":false},"0.8.1-next.192":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.192","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.192+7033a2e","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.192","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-qukGioCl7uI8CXGuUOgIBGYvVTBThg8dOCZ9rGRbz+gDeWcenaeVkXQ3rvesRjkrOhUPuq/qgTjEC9r8hMVQog==","shasum":"fd48a51a7a427cff2d2bb17955af74a0f0f9bf9d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.192.tgz","fileCount":29,"unpackedSize":61415,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHts3hnGNAtqzyIUzXpOHX6ld/rIvEU+ai1uFWV2VUJMAiBDSNyK9b7yQKt6CeKHeYoPE2+QySHYz0chZhRZfOxZ3Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj76S5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOzw/8DFAT2PefB/RzCVMnjSbbFVkm83TtZimrkGakiIjpNXmzj/6l\r\nD0y0ySZl4e2++c7PSRGslRZftxUXO4Qls3p4VR0N6ij8iXYkc0TBJ0Z0Y1A5\r\nHWaJVcahrMe5Sx+3bzYobmsq04q4j7RAGXyF2Bfp/vd04+SJGz+m6LSeoBGE\r\nhjbC0YS1Eiwl3TkSVbKlcuvMlhKmA1GqV8u3RdXkANwj2jxOrQ00qZKBMlTh\r\n42cuEmSjH3sCvGEakK14L0HGvE2blylMd6XVNUkN+WATArDkO2QA4BKTV0MT\r\nii+H6OuFlIDKC1qGS2ZGIMelrHLr4jdIXhEF26DZaS/N3JbUAIg5+Wjk1M9Y\r\nK0skQI0pYhN8VXGPjAuRwyUiit8mXYjp5cc01+Ptajsl3dzxzh/5LBMBDsFK\r\nUnMdKXHipBU6rRHlDVq0nvTWxnAcC/TrmngfxDEqp91mT18xO1zlAls2HiiE\r\nU1fienMVTvMHghmyHdGjW6a3XMNy9/YDrcVZn7I0OhfkTu19K9DCOQtJTE/X\r\nz50ClErYNGo4FSPwNMmHhGGoxGVC1qFTS8ZoRQzacC/XEAPTbUcX6o9xpqC+\r\nu/feuYfC4rBr34Cku+jqaXP4oABXAyBPRIcaUGINe6NV9aVMzyRK3laYFeBg\r\n1Vu32eoLAOiEN8hqs2SotsMr3TSOYF+uCck=\r\n=i7ol\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-connection-manager_0.8.1-next.192_1676649657601_0.7411040217770293"},"_hasShrinkwrap":false},"0.8.1-next.194":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.194","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.194+1db71de","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.194","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-ouGxB0LsI3q6dnkXEs4mvI9Kz3M6d/DAwztUEeZ8APPZVRtmCRAsYB7YrGyL3EbzjDpJPxugl49yG3eN8+e+EA==","shasum":"a340f275a693bc65aa6ac5c2547776b5e91991f5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.194.tgz","fileCount":29,"unpackedSize":61415,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCutGWpkjQo8+4vKsVyocxaGobL6i5HZuaKXKVKqM9tUgIgHgOlpULtASie5jV5Lac9ACIHKt/2+QY+kTrVinbD2fg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7/nnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4+A/+II4FDB4RFkr+IbGAKaM+O2x2xTdW2CN3PizL7kEHDwd0QMZW\r\nw7z6ct6ku4AhZ0XN9zXTbDg14/SD6aUlDe4v8QIk4C7r5S8TPC9xLvtA0c6p\r\nXxD7YDHy3aagSDx5r521cHS0o8fTrsv9peWQuh8Dlo2KFJN3H7D8VtaWVrk3\r\nbQMvdsF4MTqpN4RNPZv945j0E1KwrPBFeAsR6Ziv5ttGJ7vQe3NO3xaNG7Yv\r\n2pTpV3ptkVaPX9zT2cH2JkFeiJqxW+8Rh36bS78/Y1gqxEEvbQkdQShRuLk7\r\nVwPSGuhsW8TdZdq9606sR4SUvkoT593K3jikCCi3JRQAQPUtdB9zeVF2VyyU\r\nrJ05nEzDOMM1FgpwBJx8rnMsnRhTMch/N4C+M+WZhRoPFQkRlkRnBayeX6DP\r\nyBFyOLR7zuUXz4nlUJke6lmHsHZkwpiuXTf2eLXdUUvUC6JuXwb8T7WTxeqP\r\nBydH08kKa+O5B/C48kLuZD+rXUqXNQLip2tI+XRa5Y+bBM9IL1ogp7TOkDTa\r\nburGz9ciFPqgeowiSUX0XfaDtpDfxlkRdR5n7GvNLNFGDEG0VMa6VatswXcp\r\nK2RKTuH8jrQvffIJYyFm9+Bj8bcA/M1K+aV/cHgFDzWM9MiRsjJnaMVjL3C0\r\n1iUrB54lODv36xaVgBB2sQhJhXf9S+FRk1s=\r\n=zxHb\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-connection-manager_0.8.1-next.194_1676671463036_0.2811844977801634"},"_hasShrinkwrap":false},"0.8.1-unstable.195":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.195","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.195+926e358","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.195","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-tOgJXWZpkwJCk+VZbMqAp089x9fjt4yIwn1qHWUJsQ+DiAfLN9iBTJ4+RHEa67Aw2J/9NqLs+eRyz7RSt5lPdw==","shasum":"c456bd1789b9736f828c1ad3d112057a5ad5c949","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.195.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEgp12T92pCMosf52MGBFv50TyFrA44Sv5l4e9Eil8qLAiALarvx8kGb+/sO20HvwfzDOWsRoUkUjdOgzFa7IEXtCQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8B7oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqwsw/8D58F7FNGzde8psMIXE9OrQrrd2W6x+ddxMgXMNDUSqwlUHmt\r\n37JnGKEunSjiKwDXgpcdGKTWLe2zZCtPzmSaZuOzMMyDW1Xu9Gh9uclddDh2\r\n2H5js64DaewB0w/JBRWh3SgvJLAaUy0IekErUEdd8x+XyttsbMYgaB31Aapp\r\nfAk+UGvwz9WI9Gsgxs6EaLi/JowpQG5SSjRJeNymqNRXDbsBOAsBSIya1oew\r\nSY8R4Iy51Nx0Y2pnanznekOdwwq5++p71hZHnDJyza8KoVHveGyk3XLktnsu\r\nAce77prWYxtZGU9XIK5agJg6MAndMJZL8M7psdLOZvXTKfRdEphVFaTVq6Dj\r\ngekGL/5OCX06Ka8ec7XHcbaZIDc34uC0H6XRqfT1GV1sWQeU5mRoHpT3zVBu\r\nNGAdHpGpF1GakcXcsByw5Dgx/sVoFyGgj8CWr6StSeHGis7l4DCDBw2G2jGx\r\noS9Wk87WBj53oi97S1gEPUsTxEI/pepVX/F/yGbk2O41NhWF5d41KrQMWrB3\r\n4vMUNb/3R9dUzWSAyoaqbMGC0bHOrixwK/byg7gkus5TwyI+ZtuwXZOt3sCg\r\n+XL67UsroqOXCzNAF1WU3AFu6vt9lnyw2xaQdDrj5ztS57l3tZCzVtjNMX1n\r\nvle1PUyzNFnMcA19s3nuSjd66Ps/DqLoOoc=\r\n=bVWn\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-connection-manager_0.8.1-unstable.195_1676680936723_0.11968737670478347"},"_hasShrinkwrap":false},"0.8.1-unstable.198":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.198","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.198+cd7ce41","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.198","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-eTOkvd8SG+nBH38oDZ3nasV37/tXb2E6HkzxtQg5GUQCPcRATwnjh9SJuJSNUVI6CXctnyJpcsYFnu79aG+WQw==","shasum":"9bfe6b3889e68dcc3ba15664a207cb0315cdad71","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.198.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNh15ZpfEL4Xosz92kpAH0OeektFpXaBhiWpMgVDV1GwIhAOz5rAUA6IbaiYSf9uqwEJAkgexVgDP8YKNUSkfPBEs1"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8D9uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4Eg/+K3STWRgwV6D/KPCPXFcKVs8F6AQazLi9XTsn+7sdjFKa0qOq\r\nSxchF1B6yBlc5zRY3WK3j4OUIol3dWd+YtvqgMKgbNtKiKvmB9iuqF9pmNQ7\r\nNquYaH2wA1/l8jsIR+IQt2FZIbNK9itksOM0RPIahmklx6ivHXh01QnST8WY\r\nnxbdl/lnG9exkyY9FyJkQSiWzUoz3CdIGB1ojLvQu0LSkNcnvn7LuvpwLCi5\r\nnxieH5cpnHH5J2YEVLp/5NsIIJxDVLZCPLwPrPahQN/o8pnV6YjjRZtNbG6A\r\nqGRDPvevc7ZyfT1GHE/IGW3bXqiAgQasMee5ARF+MFKPh6QOMHwmblAvLf9I\r\n5DDYIXiUeUR8gqKza8J2Gr49+KJ2h4a2SdRauhAUhr/UzrZtbOBrKvrB0apP\r\niQQPwut05QNIuSXNV3A6RLSKjmHtx2qZaBpLPlzVRsQtkS4ql3danXsVYOp+\r\nbksyAC5OBH474Wt5GIsWarF1oFC3iDY+b7PM1D8ffvcDo40A+j2Hjjfc56lc\r\n8Ym5O/ZG9l52EUw1DG9rT2waM8l8tdTdjMwAHnR9YvLJ+TQg/EygCfp/ce1u\r\nRU9w3ItRnU/FgulKZQwojsqYJUG2156pUed26uOsEKJKm6ONfQTndfM97pce\r\nTBUJBBqLxRez4zwTtDFyk5Hf/fnpGOeqMLw=\r\n=/+Qo\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-connection-manager_0.8.1-unstable.198_1676689261773_0.8908022834927023"},"_hasShrinkwrap":false},"0.8.1-unstable.200":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.200","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.200+559efe2","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.200","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-WOjVwpad6E+UTN7poYlUpsoxPrnirDz6fv+gV3LRh/zeuhAto8TrR1oU/uFO+lYgjezkGMnjKelasjWF3KFrjA==","shasum":"e3a6ba1e83dc167d3578a12d8e5c597504b67cdb","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.200.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmo2lzAvqKCqwsYuzftFZo8VaHkutBiD7PX4TjgZaAZAiAUA0BOKxmdva+rjufIxs5cqHgaGBR3xHD/0PE0DlFfxw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8M+vACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqlQ//RhCL4YiYvY6th70wIU2Sj9/j+f9B/oCDVMXinkkf91fs5L4u\r\nlKvsL2FLjVlXsIWzNsX5nLiudFr+MsvZDjutf9dLM5RxTzGUf4hgj7+jpEoL\r\nT1FTASXs0JQyWM/dKz1ykzPVyN/RsZY8UDpcr70L2af4hKqfof6IqP5BdVHC\r\nEX8NIj4q5BpKL3BdS7xfCJezQh+nxWsu0H3jUcMdRAp+d/y+9hB0c8TUhU1I\r\nBRqPy9tArR2qZK1PUIVdZg1t1SUHYsszvHrybmENh/NKwpsHCZ7ggWZNH0xt\r\nTuHZsDRT81R9xXmmPSmjjIJ3mZNZ5EddUHICltLv8YxJanMkTdot82iQwoxp\r\nschUmluf/Dv+QFAXjhunI6cjJpfhYWpPZxnU4c95bhFFz7SfAbLHHBEFmEFW\r\npntSz5fnwKedgD+B2ZO5cOAcZidpZr1isdWQfGJ2q+lTUtBrpH9hOZxRme0J\r\n9Mm7dw06c2BS3VTncDXOelDXcnHNCN0RZ1OGLZs1ojUZ9yPEsQpIlHZRbuZF\r\n8bevS2SF+wztRo5hwEQqb1U4ORiI4+C6C5/JNY45T4Cy7OjwB5Dj0wlhuxKl\r\ne2YnYOJGkR0lt6OdANF0NTepqYZFiXT0RLzmvklQMFomFSmswKJGiERouE4e\r\nJxHEVquZiCYBEsOzXP8G0wZWA4c9LKXPZ0A=\r\n=qbj+\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-connection-manager_0.8.1-unstable.200_1676726190990_0.4832808208692543"},"_hasShrinkwrap":false},"0.8.1-unstable.201":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.201","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.201+f04345b","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.201","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-XGFB/ENAK1GTV6SFR5TPnY31CsJ7lWr16WCg75nM2lr7stAzddjcEOqT1/e8g+yer0wgBXMrFFZV+AKkxai6bA==","shasum":"1adbb818e0d7ea83186158cd80fc822fadd7025f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.201.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCnvv5pv1rv2eAM/JzlWY0xA1G9+w+GH+ofLDMEyU9tHwIhAM7uoPheM8q6e50D/fIoGHZbcScl6NG+HTZYj6TYoi8a"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8NsLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1OQ/+L2pCP56mzYbwP/5FwIegLFb4za7n6Xzt7u9Ko6P4M4F9PcGr\r\nhqXXesBBwxUsEnP8aHfSjqvpq59+Awuhkyw9gFylyALBfYM7l7pcFNKDf6Mn\r\nypMaEcQRp2DaX+TfzLaw5N3pyBRCc/KiYjkGEzsCVdtXwLhPisvEX5JEOpFV\r\nVorUAGgxJTrSC9hTpAgX69Et/IrGnSkLwFCAJRibrE7kI4KW0dEf5+a80r4a\r\nB7dYbgKB0gNra1B/QaYnYZ13asDYaJtthKspc6F9BPox/5sRfSU3cxkJKQb9\r\nQePFQOWTldpfYoMvisruEB11Mfm4RB+PLVekQ0+KgbzaSNlFMt9K41tFAQtQ\r\nXAD7Qvtqw7DgMRk2P2UplN+f7upe65ac+MUC+QLUlt7iahuLLuuNlX92ipYG\r\nIIc4+dWuBYcTUNJOX//NolMQax1sYcma0wDLEd081vqOgXmf2N2+xxhjectr\r\nZm7wiNn9z7TX9clsp9pIdWoPjuBKpRanTjqYPBH3IpVfvPhR158PAmh9E6ac\r\nGCEb8WCps5NFShRKDmGY9JUbsvt/rIxe2soa5lry5jUjGW/L5RpKgoS5AvJc\r\ncOkwtrMszF9Jv1lYFPnXB+aVFHDgURUJRTd8FueojQLCeYBZJUrt7+diOedl\r\nB16n9EznvkqM1Ef8Vl2qSuTHZVVsGdWL6v0=\r\n=4bch\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-connection-manager_0.8.1-unstable.201_1676729099323_0.9198318866879052"},"_hasShrinkwrap":false},"0.8.1-unstable.203":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.203","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.203+129b663","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.203","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-az1fygyH2NsJ1TKmZOpGHnFFb6DvZrVjHY0/l1CokgGITxfSNxxoHXgm4eVMdQ9zGhWsMqMzHG5i0HILEbzs1Q==","shasum":"b24a7c36f4c89150ede777907ab1dfd8e54e1907","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.203.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMDMTyc+V2+9SMgj2b0yXnX8fxfoWBvC/TzDAG1P7sLAiEArivEffpSIITRYCy/A/eWSbhCINTj3/+VQ+6AQOYLwis="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8VY5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+Hg//VgVQnm5jhO5gn8SaksmYcvY9vkYcOZeTQpZjkQRoeELk4gH+\r\n7NPi6apa6cNIBoho2wgmzOeuei4mnNc1oVIix9OEnidKiVX+dWQsvqjIlUOD\r\nJo5dtPozdPOcmWROWtNIWLEz3I3wgMZjPBWFw45KC2xfmxsopuF2+5qwocUk\r\nga7LrwBWKDWAc1WgejQBXOflujR5+u6NjCqdBOWCzJgQzHpjTc2XtPcjWR27\r\nEqf8yNA3UXUy9AOuh4IZjICiXTjGV2yCKhStpxsUJYYFCKCz8HiF3hLQsgpb\r\nnIew+V5JYeaq1yRh0BHcB88i6eMCn5KDfzjUAUPBrxUqlNQMMKEAF3wwEfaR\r\nNgQ/cmxwz7wdhsq5haVhqR0XYLE0VIw5Hr5aHcHAKncIflvgq9p14Tb0Oa2M\r\nGNUWKafpJbzaZsFMK+Hq6vydNPzoCSX6s66Xa8ERM2Xheufwvp2aO7yTUvlx\r\nzbqlbJwzOpdf2znVFRjBoYBkmVohNoUye6MDN6SocHOJ8waOXaPTxbgIIi4W\r\nGXTGvXfF8wrVHK0+Myszvq+dY3skQ084QAWDUaKq1q0UDKkW5Q/JF2fCht3o\r\nJCbkFpjgBuVp/z2TQZOOoi4lkFQs/Vs39Lxoa0gApnITkNkWsIYDaREDv/xa\r\n9WYkGqlXA8mf58/vU5EuUFqjAAPiYJcs3Vs=\r\n=nQON\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-connection-manager_0.8.1-unstable.203_1676760632979_0.03484016981853433"},"_hasShrinkwrap":false},"0.8.1-unstable.206":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.206","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.206+61712f4","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.206","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Ac5JnRU+NGg1FMM5xIL45PxGF8AloZv0jaevmr8m2ktt6n9+ZnEF3N3lz+TZEwJyNQ3CRpGk01lY+3a4FkW4Ow==","shasum":"be20f5f371fba249d5eb60230ba83559152f46f3","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.206.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEU3BoU0tjB8CkFPH/xpdfffQ4+byDQE39JmYngGpr0dAiEA9BGtWIijrE+201O4X3pt02xHEvxhtcjaz+dn/M/9Gds="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9CK1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5MxAAoFnxKGLm7g3EzYIbpStskulrbX61DSqcinmP1rj5c+CRtj53\r\nbK/yOozhAfdE2rw5y/uN8FIrDsa73Mpl225HsdCVpJJgoj4rZLUclAoDhWp4\r\n6RFJqAIEC1wDjlPf6lRlfARVwetd9DB1QmsDtWsq7+nAHRp4F+BN/iVxoa4K\r\nqXySaK0PQxRSy3lVqpWJV0LZ6hdRSJ13LzTRwvvbpL+VB3gVXD1mo/oGho/m\r\nFBMZABcm4DMRqTy8iVy7xlSf8giHJc1X3vHz4FhAZa8/lTXtHwPVXgN4M94R\r\nozDQoUwTvREFxOINab3YBgk8h0IjNVI5kkfdopXylVnyikSNJvuK72QKW5Xh\r\nWl32Nm1Qn4oP+XlOwUyf9BsSjwf2jX/WhFU4kwoXvcBo4TAYu2WtvYl8GIF1\r\n9QqE6hArv14FZeTAff0vvyP3KZ4xuYOtfEYL4Pvq21ZTp9UAPlsbm99g0ac3\r\n/CH5/1X0tKaBk6yGtMJ/OrrTgKiVxwhyTKBq21kAGlimeBRLX40jA70xKhzl\r\nEYVoikCydkE2ZNXJ3QkK6vdmhFjMBhjynFYVBNXJa3VaHo9HUU9kMcrLopVj\r\nZ3yH5Wgwi373Sjbh8e7hOgCbNb67q76B/69r4QK+nvFmPl6TZHJjkdZApnN2\r\neMSUmWHRrTX4gB4DjJGavcG931XZlPpfIOk=\r\n=vt/k\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-connection-manager_0.8.1-unstable.206_1676944053516_0.5050476915485445"},"_hasShrinkwrap":false},"0.8.1-unstable.207":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.207","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.207+8b4f22e","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.207","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-HpMoPD01oPXChDnj3Bl7/6BQ5/Z9M+mQf6NDHsqsBCwDsMJKLjzFhCLkc0Rldzv6O9NsgZwH7CDW82FhRIcE7Q==","shasum":"919d20107621007850cae0d9d74ed12626ae704e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.207.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEHLLtTFTCHTr5HV0oxjsVyxb3Fp4HPlxRS635sbGTHAiEA7p21bH7buaVpUAepAvQpXlQL1a+/XC3s9/uFYWA49U0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9Cd1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo6yg//bRrVZGMWWGfrugUeeSdgTJ6X8khh9nj9fPSTe4+k4Gy6vEed\r\ncUzqf+2eJHeV9T+z9ivijt5R0XT9jtL3gEuyfbpg4CaA80OicZyw1i1Arnxg\r\nyAl03MGwDLntyJsH2G7lrOrDsmjpgBqNx8FpYHSPLHbITQZgaTwRstAyp3XT\r\n5MyGr+9Mzu8Qh7V5okUJpfyds4cr8buiX0YgWKV5/rWWbs3jlRqmVqCCssWW\r\nXPjwRIhagZ5NYS1sArAELhHVg9KW8bSpL3j9Mnr+J9f7hLovKGeopSOo1d6l\r\nLm4htCXYdT6mOy4wAx/ej3JUe7Hv1mmWgMLmtb9cwI5uW/nauHTRdRR3FUjT\r\nr4l05mZSmSd+xYlw4hHvyDHZJpeM6SJVPknCRA5yYsq5xr40mUmxaobBb1b5\r\nQSz9SoDxeMZujZWe/udVzUNPVMqaZExDtceu9+s+uUE0m3Yyeik3gx6wm2lr\r\nimzczjXSbvM129/aY1+t6jesFDknh6NtE8uidQT6dHGILgGGIJGFD2MqO7Ey\r\nX5LczlXsTwWCGOcUAhqQT0mbdbs5JWo0K1aWPmAmRekGqc0emC3W/LJ4kg5G\r\nAIZtX43C8H7NrdJTxDejrhDaqqS3nGcpbJYZfm/V+xqZM83ZPCz13br4BXOR\r\nyAJ1i4jD9CfaL5zvGXmFMtFzo1pXOVIhwFU=\r\n=3cQL\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-connection-manager_0.8.1-unstable.207_1676945269534_0.9587086598836445"},"_hasShrinkwrap":false},"0.8.1-unstable.208":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.208","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.208+2beea04","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.208","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-+X/A+p0Cocd5LEPC+N6fuIdu3HRDhkkWtfC4BuzMusUe0XEIBmB0jiiSdK2xgEmLNFQ6czcdZaEbaRMCMrFUtQ==","shasum":"6767f2ab19fd3bab6d035ecc04606d9904198e9b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.208.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuhCbrnjJSXuyNyXkafrBOP66OUArOAhTE8rNelGxWeAIhAKfSdmICNkVSWGLyoRRSbNQpPKmYz6OtlQFUmK+NxIKh"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9YtsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpHw/+LBEC02DfucmzKpUb4EqYoRxqlEvu2hPJeKtlLRF3rDBzmKmS\r\njR9wTE5sTgSIpTL5tPefr5ueNezw0EDww6Mg5x7LSEeYZaGn/D8ho/sps/av\r\nfLePQAbdlTpzejQpvEAx7mQnjM/vfxbX0n7BQK24RQZEltBumkEdAiLvwc+a\r\nLlgis33FpRy9wDjNKvIOzNeGPAtzDn1QJiS55kqE6YkkKD0uZisxNfe2ImjW\r\nRDePyQV2rr/iUtgxsgo/OqqZF0mQnEFvbBoMaG1BT2yItm6Q7tI3GJb31SoJ\r\na74mIgp/9Nfjju25PBrMga5EF1fkI5cCaCu2834LcMxl9WtpwIXdSa8Y2VvR\r\n8XlRR0ED19pjNQMUtIH/e/t+ESiIVdj2HSvSHz5d8KvvKesGgFM3LC09FCXZ\r\npeDPg463Yb+9RwUrwrDdSyzDMy0fP6jR2h4yoICbNecY4eVpKTIP/OGXxGyV\r\n8k7kAuyqCUAavnS8XpvMNlKKqlKLgYaGP58erPp0sd6Yw0HcKvq2DFC8o7wm\r\nBARLnNcT/yXJYu4A/cuFCPkFkMrZrajTpbgjxMeSHC2x5HYhVW7pnuiQDuVv\r\nN016J2Q/fA4jPGo8his/FNqf9+A8v5DjmovCWmaxHRIz9mdrBqgM+Ru3BLh+\r\nLmfo0hxeZpHIW2tkhf4VqA/Vv8sSeQSaSbM=\r\n=IPr9\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-connection-manager_0.8.1-unstable.208_1677036396671_0.2555724169186546"},"_hasShrinkwrap":false},"0.8.1-unstable.209":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.209","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.209+b9b4c2a","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.209","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-mgtv8MUWYfQVkMa4ZORmYjggpoRQND4ZkZRIPuW/4eykVtHCxgJ0mOl0ZlSqy8PxHZMOcm2jxuRRAvrhWmBwuw==","shasum":"2d0c42f70c6e988085395e61b352eaccfd0cc4fa","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.209.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoRNKR+NjdMQWcVw4O8A5VWQFWpuprE/RQcGpn5oBsxwIhAPqXxV8vur4OkaiNACZ2Iw0at8CC1rV2GyT4XCnhONPC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9m8aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoasw/+Mdq/KvBwMIM1pKNKTbXfdVLuCDdO9taFpOmY2eEwO0te6pLo\r\nxL6vA9dynK8yd6TNh2fQyDpXb/jm3M+oQYkuAzRR7vud/1p3cRT7VY32BCbM\r\nTYwSlL9xLfpYW3cAw88N/5pwpaQUmAUAmhdiyWkBf2p/75glTim/Qteqps8Q\r\nlgYjp6wkcKw0xkfLu4GksOOmikJc9DXcU0L1vHQReviQCSrzXzfBHHB1HUyY\r\nnuR6DebTKHyCZUfbNcQNgDCR8vcquPc9zV4QeUXfS68iZ7GinOnqjHbUXbID\r\nIcdH47m3E08yNEX02QKyGDD4wtgfXfrODIkUOKYpR1TRuh97mU4ERl5SS7gu\r\n7r2QB3YW23lz87t/ERzGWAdVxzPe+vYyAYefLrS3TmlaH2ri5VJICoQ7xgHQ\r\nhNzvvHHywmwjWZiXE9XlWuHXxVtXQ8Ipu8g+ISM34Wn9/IfHl/V+AkquUou6\r\naMiy42UJoj+edzq0G6Wmi1xM0CPtjXBjNRmCa6qztIHDM36aUgkQy5ZiIECQ\r\nGu8mIA37eng50Dvys4gIQY9wWih4LeDDBd6RYecSXB5HfiU3SsesRSTcsOOS\r\nAKbX2whmYVWDwrms4+Ctl4iMV4AqH/CjZZh8gZk1bZJdFgDTR9MyJfuNcLEv\r\nZ/dfno6oj2V0btW/xb0kwHecz2YEzxrxjqM=\r\n=hsRN\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-connection-manager_0.8.1-unstable.209_1677094682119_0.7295076708769672"},"_hasShrinkwrap":false},"0.8.1-unstable.210":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.210","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.210+482d119","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.210","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-lhDLop+FBO2243Ytqi+upN0VbR5/sXoOON7bRxToGYZLKMISSZ19g6CrPsvkkwkZj1YFRgSlRK3Gs3mz4C2opA==","shasum":"c8531bac658246c88042fd94cae007a368900acc","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.210.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA6jMmw85W1vdmawqPNDhvZR+WdyV9eMIMSjtjtQxPZ6AiEA9Xk4SPmgiv2I2JQLLmd6jLpukMk8YB1+IXJzB7Yhg2U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9qheACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoG2g//Z1R9ZnrW/Pgx7DmsL0MuN5iva4OBYN5DRhkFky1xyntimRJq\r\nTkEbPd5t8Ec9Szk9ussCQ1I+IGHoWnFIkPVwefT4rSlOpaOFXFENICejaKin\r\nTUBojuaVqOsY6Z+8lFEEiF3NrFIGeqcmSkftjwc20TPlz253XLUwzgg9gHv1\r\nUPDtBBkjEu4YHE4yNP8iG8qo5KTrqTFGz3IZUpSCc00yiYaH6G4vTbjUf5sm\r\n19XiEN7r5uE3UCW8Crbm3N1etTBV82ylXLfu01NkxeUDspMsZ3o1d6ZQAGCl\r\nlHB/JHTuVov1c+px89Ht9l46pnaNQYDbIaBg8NTphBCDaey8gajgCCKjUuLb\r\nYCY9cdD9DlzYk9EVnEDkHYLC0dGwADcHaojH0GLM+0gxKZ6K9YNZniyMvpRy\r\nAtKXaE2hqXfA0kaz2OQL70LLcF0C1jNC5Lwmp/AI2v9ybvzyms8aGOgyb4kt\r\nvuI7j4ugZJW6v9ENQy8sbgnlteWqK6/4zQvyaXi13ABteiRqI137pM0mqyqI\r\nEhIQ74im5Bp+X5LT1JV/uFvy2CzaOR5uqbQO/G6jTV1e51fEEKKtj7EwlcAO\r\n9Wh5CGklgK4/46WBl4d2UYjZvcw/BeYUa3VxqznZnFQExkCKpRQn+h7qnX2P\r\nGCy0Ocz4gnJJMpdfzxfL9YsV2EjGJGiuYEU=\r\n=L2yk\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-connection-manager_0.8.1-unstable.210_1677109342368_0.46922193557531333"},"_hasShrinkwrap":false},"0.8.1-unstable.211":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.211","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.211+fd0012a","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.211","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-4Cj1pY/pxMb1uA4APyWO22pvVUZ1/QACdgwcEr3jt15llI1MXBVSyUpZXAOzB0hdCyWcZUiX6rA73lT2xVKfWQ==","shasum":"e21154337bef61141e0b65e1cb49ef3add89356b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.211.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCr25Z2WWmk67ToaWtlSmmC2r8q++kSo8QST+I+ahvYfAIgHG9bU2F9VEaQCjif1Ev0ge/CkTSD1NQk3L2WTRUTOEk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9rAmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8iQ/7BDVj2gnrFVCP3L/OnHLlnE9nZA1mezdTwGg9qiaqwwD9MRb9\r\nBqixmcgk4XO/gtitbBR93xHWEhsjmsUz/uz7K8OAGxykYZmZJI3YIZ2dxTII\r\nlCBr6/ESnTnhjf7ZvCrfyom2bvgT7pgnZyZnjg++9pROMCfV7hxyBRktsbew\r\nYPCneOj3cFn3Ecz0nXeMKu5pf9Si6ynbe+oy1Rs6f739Fgf/CHacMh4+GZd0\r\nrSWx5NWqBkmph2j2ITTkuSv9ndv3fF5S51O+Sqj1lDUSo83xMMtqsIJQe1Tr\r\nBEY6qyn5f4/d4z+uqtKnHQmWeLgrL+0vlqkF3JpeR26lyPyDxybMW1A1jqge\r\n49PH7shAC4yhrgSU1DfdSoC9v82l9CNJFr9aDQmPRi3YG4W85VFY3a4IFR85\r\nUlBUv3xDd/8mv4tYtg3eVfobe2pM1U7fgvbbDDgbrMGq+JbfpEmKwLX4ZVL4\r\n+2vkORJlr0u+S5KI3NR7EVGSgzfQxQlNVfzd4ugYl77ysdB3SEIFl0/fKqVs\r\nI2yEz73HXX8PRRhCWLw2iFtLKESeZNkd2uNU5tCHOJ3VYTb0bAIjkvLy7N8F\r\n8W/sEaUC7Opy8XyrKTAD70ayA9ZQZPmeQMs2xtgJ4YN8rN+be1xi56S2vQKb\r\n7ZCcXpHraFhUmfZyksWPxLnP+zW0pPgBtrM=\r\n=e0SQ\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-connection-manager_0.8.1-unstable.211_1677111334226_0.5878540521951006"},"_hasShrinkwrap":false},"0.8.1-unstable.212":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.212","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.212+acb75ff","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.212","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-F2KKlxKUpzLy4gWMnCKBi64tpWEIPQ8iJCE0kFEks6u67NWzc+HDRO4eL36WuyzpXKojTocO/26u2j3f0Ub5yg==","shasum":"958fa9c61c69c26236cb488783d966a0fef010c1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.212.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFssLtwt4Q0B0oIX8yNSceeTn3yPOnv/1BsOCkP1N8EtAiEAq4q/21tPTpaGYHa+6QvbN/YZHZFYFUpMy47uM2GceRI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9sUQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmooFQ/+PqMDcCTtzjUAH0/Vlfbm5CeBV0kNJzXhIpyO+XPZvZwSVw9c\r\nyjut/7ycAxFS7daWja9Ki6JrWRVvKeosi24IZhEGjZ029pMHOazUeVzXZxR3\r\nDp3Y0UbIlmV2OLlFPtd3ACYjsOTHrer/Ox2/K+LQSgRcnF49P7IA140A7vA1\r\n0an/OaXFr4xuchPqJ+UhbZW1vls1n1Q6vkLx342RmbsOdDQm6rT6J0g9LSEC\r\nacAu3G8Tsnhs2xB0rAcrxT4GwWdET2ZGf2l2B2FaU8slhAwiyesgcdsLE1I/\r\n70i2nMvdCi5rrF1IvBxJC5CmIe/KFNcJWh5ji89s74dX/xM2HbJwvh1aOzPF\r\nL2KuvgEmij6JD0urNy6yXtyBF9973apuv0uHVA5P9031G+RRhJKmBKwzPV72\r\ngSD845MxEA7PEGn4xoLJpynvFNwwN1TRV41GvnB7RMioYl5lH4ARtyE+rQVM\r\nb+TSn2SOHiDeWJ/vG0Wp1Tx0NgtkHVnk4opaC5iSf72+tm10nQGP9IlLkdEO\r\n3AakHN/hcm/I1ogOqKXh+cW6U2aWnpKJG5m8cIPsAe+EtPFdu+nWfzNDHDeF\r\n30SaoQNokMZPWEuc3WzFrgnS0/loVcwfQvuF6UiAA3U3yJq9khfEs/DNfZf5\r\nhmoDZ7vzYjtXsz7XeiFdRm5T6JxMhR4Jxm4=\r\n=QO0s\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-connection-manager_0.8.1-unstable.212_1677116688714_0.33937806693206474"},"_hasShrinkwrap":false},"0.8.1-unstable.213":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.213","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.213+beb99bd","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.213","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Ltzm1f7nVN0QM3iH8Ef7m2ZWyxlBBE9y6/i7f48phvyvWFQ5O8bbJkd+AVa6Uxa7NEVubQe9/CBFmg+NCOGuXQ==","shasum":"15b306399529b3efd137fd2e3b19f78250150a72","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.213.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAqhxl3GvPmC+ALuW4aHxuyAsiEPZ6fDGD2A59yrqP1zAiBGe7cwT/tfkWKjc79Y0wKk7mU+XkteBQAO15aPKMRe6g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9svNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdqQ//YuzfYmi9IKuq6A+ng9S4s/Xf5O2uDktc5qsnslxX3sU0cSPv\r\nrpsvDF7xCPRh6l3AJHtzSZ0z7JEReucYismOmvj/qY+jHfRQe31zQ/08NWM6\r\nd42hdqLDGEw6LE9JBUCS8wcnHFfAQUmXeUx1/U5wbsAfd2fVjFdDqZM1laOy\r\nd546KR90JdOu7YBh6JgY7xuToBfwrjtcL4s16Li8oBuNtX+X66sUlS40TKXs\r\ndLvjHUuLcAVawpfXzXMZF7QpKhez1us1ftM/UU/kVbBUcpPgOD1hMnppKY2d\r\nVoFjN80Rf46yolYfvUFjRu8uvySDlA4J9dW58p3JBz5kZI9OolhuZdeU0h0M\r\nz00HjwRBHRPZOKoD6kICzZ8C4rzEQrnRTuEjBN5lGZI/sdgwNYC36Y4ZXt4R\r\ny5PwHx90oSF8CqnVE4DZx6ysCZLeqMxReWMgzyOd0KNytczmn/ibPBnYbUF6\r\ntrzSPm/wU+54cBdvk16VOwOB0uyAurlVNdWiA5Js5ajFjWUy35RQ/uScBZAR\r\nUtFQyow+z6UWxs6CGCnV1v/VjDxg+dVf9aQl8IIvFfqCiZyXsQBa/yp7DOjB\r\nW5VsD2Pv8RiLFlw8ZKnMXlkKdja+TrZbM0UKpZYBycWkV7TRlL36/AzAZueF\r\n1N87nYTtc7e50/jgYSh2AeUVExWLPPxQVQg=\r\n=2w5V\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-connection-manager_0.8.1-unstable.213_1677118413734_0.07457501653766752"},"_hasShrinkwrap":false},"0.8.1-unstable.215":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.215","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.215+f76cceb","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.215","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-YF1JD06pbTfLTj+OZsay6RIJaib+w/ZEyiUgCTHeNC1e6blbVuluASuQ2B6uw0MRu3w+rKUfTd4A4d30LaBdlA==","shasum":"cc37cde28583cbf5bd87434e6b79fcf7cecba690","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.215.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICtPeqCsY6nxh9BoNKLZnuozIn3IFRIgIFvgPN0uIj5cAiEAx9ak388ce7ll6CfZvLC2V6KRzSYWPkRwiPu339ldhzg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj979yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPrA//cpRpFTUgCAt8zmJq2t3vR3EatTo68MfQa8yWi+nnKC7DTKZv\r\nvRIL/MUnu7qUKv78sfenY8mAhwe3h3ZKpOKM0s6vfAn6heUnGp3okHaDcwM1\r\nrNfiHhsaOf4+T2gs5j0J/jtzZgBbvXu1pXI1It0PlKtH05NyZFXKPEvzUn7J\r\nEaR8oaIk0P33IkDhSyA8/HGi3IWwXOUZ3eq6b9Qi/ZL9HbezruYg4OqCv+Bf\r\n2Kaf83DiKX+DKUNrq6VU78GpPHjSyTi6EIqIZGYGEv/7AIIZk11tvQBHY+P8\r\nlAFgcRiIku8YAluo0kYfAs9JgB57QohmRd8I1K+a5dwirWcCDJl4sMMuYLyI\r\n2MdevA4Lk7opRG73cBAEpGCtZRRh+fxnvpaE+A9vFvx+FyXfPUIrGr8MN8dQ\r\nO3vSrx9cH+rnV8VVHS2wNiSKyXUjvBGWbhy5eoAqztrtEMsGbXLmZ5uZ8jGE\r\nt7/UAJ1LqKzBUu2urT8riCuIlTagZ0DzmVf1wjSBSHccSUD9WD1L5O/L5AyE\r\nX4ysm0OkETLv/x5IDa6gW/jtp711TdIfUw5SocHx7ylhr2ItBV3Nbf94XQva\r\nZmcrVernxiqBPKMLnWxYHJNV261rOaYKSpWpe+5piD7f1Il4fyz041G1jtqe\r\nWNvHpA1Y22BEUDQrYrkQkF5HsP9wXTyjBLQ=\r\n=o5gz\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-connection-manager_0.8.1-unstable.215_1677180786673_0.311945437195259"},"_hasShrinkwrap":false},"0.8.1-unstable.217":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.217","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.217+bc342f9","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.217","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-+J+rN4D8vVjWyklFLGazn2iJ0MkdymrcgkNWUUV2BtjmM3EEkyUM9xfWbGRE5rrt/qcJVzSL8prtiSkNqpmvmg==","shasum":"392f73cf3825b79660d808aa3401836a0cf6bd5a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.217.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUUa/h+CYuwDVbZiFa9FYo//ne6/jf/wfjGJlN7xWmSAiEAzYXMVvLB9EkkUWeBsP4ER0yjVnKKDlhazBRr94bDJgY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj980bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJQxAAormzeP9Lm7qbeE6VINwH5PDr/lIr/EAmPWqPCjmXgIkqvFaE\r\n3vGzW3lPqyJiiGWw06rBQCfDpdgUHJIfsiAA8dfigheOAxdET16gyhSi6vmM\r\nkQEQIOc/4wXaXeyTfTB26z6CXqgLyNyXu9WTVOtx5G1P6qxY5otiSOWAwOyz\r\n6VhtFy78qU1T5abtlOyPrlv+kNPqmvQoWR24OFvUR7VkdwcUuAjfFaNTm9JK\r\nTy1zeUZufOVOYlGuqU5+ANZbFNfsYuhkGNJzC2gkHYfs+5DGble0iVUKkky5\r\nfP34diJcdiXT34PSfZhN96gpG9VNQEtZtOr3/YIffHCp/bzYtdvSiG1w7RDP\r\nXrtukkr0e4yoj4VCgkosWiw2/7fsmUgyalZQYrujwQARXXW8lPVpVqkhk1OX\r\nbnte8Ox4LcTyORna1FiUI6E3XvufrEXjue4eeWMvJu/e+cQFDOzEzvM1MJi8\r\nYsFhWN500l3V1RdNqLCq37ILAXRq1MrdP/xewDJ1vmFwXl1QFTDemhBPJCMl\r\ntDbu7rsCXZ0ykS+Rr73qyN8hEvd7dVsnvyUVXnwCxQXk6c1NS0PU7aZeZtCa\r\nluN1cDAGlRtwnpeIF+5IHxKo0Vz7DCR+mfTX/RTP5OHIkYZYN+2nyKVq7wK8\r\nkL1Q/lvnqa71poj2NzGnhU++YZYOLZtWyNQ=\r\n=gLZU\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-connection-manager_0.8.1-unstable.217_1677184283505_0.5701138447017442"},"_hasShrinkwrap":false},"0.8.1-unstable.218":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.218","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.218+0708195","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.218","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-1Vwhyxfv9N4+er8864wiPt1ZsNEIBTmfS/2411MHS+L8vECZW1wy7ko5R+a65QIQXylQ3t2642BnshXRSxu3Fg==","shasum":"57a4cd5b97566cc6ea59758891489841bb09bb58","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.218.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHToY7hunpg93Pt+5AWFcV86wxjJhW8F9Z1EwRur2rIuAiEAvbI3JuZ6Ri7v9LUMMqWZ/aUEeDM4Iubo7oYVhQrglsI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9+SvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmplmQ//dUtiQuAZazq16LH5FcfEbl3kJmdBPuRme/Vc5QHvt3dXDXuy\r\nlnfyH+iAqHX0BTqgh0NXmS8ut5y98ztlxS6NDyv7Z9ZP8f40H3KSAJcUBN/r\r\ndjOoUjb7Th/6z38dmZQNqFoyNbvhMigcFqiH3/InRT3yW6IWC0uMpTJNyxOy\r\nEH7RUbMVi43eBwWscNaKgh8Wlr9sMcMJGWtvMcyypDLuLWQil0+ht+YkSVsE\r\nzBPdKZ91eR7C3D7hsXigkksTzn+2NtcsE543wV4iaqYLNnRhW461ftmjtsLh\r\nVFlN5nJdaitPaeBZJ0JcBxdFp3Z0FmRK7z7795U+LxZwI4H+6xHE3nvPG+yV\r\nSr032jUWRwouuwnevwwbsGWKIAUkFpp0o8tmc45EXxjBPSwrVCaA4tB+th19\r\nGov7nliuiYBn75Fq+ytA7McCEFtF1vutho6X5JFsjnujYLUw88tAf8p7rtrs\r\n2iJbomqY+UT8pvswUOtsmJInWXRlPGCJilqlc3kaKhzmrzhzspa2+CxKs0D4\r\nfQbbhPSZVjMo9+Ot7TQW5XuFnWhDyC518M9/K8KoMJMi2PJoiweGop2ApQzw\r\nLIAGJMHYFTTVPsYJnAvU/+WdmdnWFEPyKi/hJmYOPMQEwMUyY14OIVSMBFSl\r\nOizvnZjn9ytathvFE5IlsAbsQN5E/ApP0+M=\r\n=vxpK\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-connection-manager_0.8.1-unstable.218_1677190319505_0.8887729569398899"},"_hasShrinkwrap":false},"0.8.1-unstable.219":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.219","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.219+39c84c0","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.219","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-PXpV/zg01XOObotYb5jA44GmoUZ7HqkaRzgf+e1SPGWsemHdW2ru6aDqgT2AW+4d5N+KmimwdDRFw4UtCiyO2A==","shasum":"969dc5f29f3801b55f776221c97494a900afca26","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.219.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7RQVt0SRk4i0fhl18BlgZKExqzJp25Qhf/1zhdJMWEAIhAIqFRAVzDCwtrO7ua+9FpwkizCxf6UiT295XuJlyVqp+"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9+39ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpKjg//T2y6k3qLoIPt22WF7jQiLYUXridoQymbN1Stf9391Sy4IGck\r\n/qxe84HKyQbXKu6pEELfhf8lwcrNkjONZpm3CgPENx8LcboANU15K0l/kTuJ\r\nX7/JZsKi7FlK5FCJjgD+saREvS0ddekjwb28EyOcbH0zOEn4jLSAOPD+8pPo\r\np/PfbIF9fZm63bY0UntbmnzwvsupOyK9ltf9JW6Lc5SeKMLhLPUEAoaPuzW/\r\nht4fF2byZIgQyUNy+7Mq1I2ioHMt4kvN6Pyh+T7cCh0TnRJT0EZ/uIsAckLv\r\n0nqgJ0wzFnWJoMTj11STDV915MnELFeOCuHSM8UKisb6LkZxggAuj7f7E/XI\r\nMCMQlKvKh7HU5031kmgUWGQSosKqmpWjLQmPF6jM5QRKrlZ2ERh5hLKLVjM8\r\nRYW0dbdP1+sdz0hhlKAZ/Dtw6coLODZ5wEP30suml/MPxO7P7mzV3lTOObny\r\nZTFUUyWlICIYUEaFlFcMe0pC8lfqGoXI7dUvCgEF+LTQQ5BBpgCrtoZlFpJI\r\nwCmRYCCtPWMoU5zfQspuyp/g+s17MhQqDi+YDbDxP4JDy+2Y9StONtPI+57K\r\ngpDi2MGBulGd9NTrHbmBGGyGc/1tiairEPIOK4//dX9VIlgjd2piGosQMJZK\r\nDtvQd1nMyQUG3H9BlO5+rfW4VhrYpjnfBwk=\r\n=sPpx\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-connection-manager_0.8.1-unstable.219_1677192701273_0.5934566773126102"},"_hasShrinkwrap":false},"0.8.1-unstable.220":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.220","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.220+eca3e18","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.220","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Qg/S5Bxc9T0LJl5tNQvO5z9goJlwjm4pfz8PHAhqyhjqsn4/it8uG1bQZvEThn0nuPXMOPc9XUfRF+pX5vrRyg==","shasum":"5628ce4e39e836f3bb3d76a427257cd0ac556423","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.220.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0JjDoAv16VaxaQ3CAIjdgOymdp2TT8BZC6yLGF0+xGQIhAI0BekcqtylrIlZIFMNIpQ2GOWVhhlyEXk3Oxvzv+ABE"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9/YJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8uw//XDsizBPmFanI9+I81i1ESgyV/thqJyeMrpwGBOhWMNKVQ5eE\r\n31Zi0IMFuwMezsK5OL8j5ckO6NiAH3OiIPFKhlvUn3HgwiBhzTvk9IMzaMZS\r\nGALvClOXthLqrrwKBDz3eXJ+Rz7p4x/aeVWn4bKnDtYMy77X2MNoWFLMxg53\r\nezLhnu1H6Poon+nwtVWDnAye2dMOUyyYB/hhrZfeja6gtkngdE7b3zpypAzy\r\npTP3Qg5sRd++IxgVU8c+SkbIG2ZBF20n9fd2bvniFj0VZ1vyRHEPmS/t80BN\r\nWqSD+Axt/WUjiMB64LCKGzbN4wX8RlWRi9UoNlGmvXHo1nxuVtLhyBIE5Skc\r\nrfA4mfkkopbBTqt2XzqujKJSNhU3i2t0rLgg7g06SEEPqEd7kbcUOmOBj3dc\r\naqsYBgTR3lk/N6Qmj18e2k3TU+0BiJcjQ9OzWkvLDodq+GRxa3Kafhe0lU6i\r\nuJ4tPhMUzBX4N+DVQl27zLJKDY3jCVfbQcrc5eAKhdvMd8OUobNTEB3QQ0w9\r\noTZdLf3drZcuX0JZYWbvydv67tB5y8NcB6Yh5lZ5CQSJf1wOpjOuT98IDhaC\r\nYVt2pM6NDiQAh9xu02CZagnae3XxeawoeR0E07vs8UouIb/1LqwZgPDk+4Ev\r\nkd3MozPqMZpu6As9XrLh/yfGm25XYd1Q5Bg=\r\n=DynZ\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-connection-manager_0.8.1-unstable.220_1677194760815_0.08185164195400407"},"_hasShrinkwrap":false},"0.8.1-unstable.221":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.221","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.221+66cff3f","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.221","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-yIulwuuDDUlWpP38HSbnI5pjNdhzPUmoIstPOkPiMaSbxVcwqeT1YJloZud+wHfq3nuInppXd+e26+SADk9ufg==","shasum":"347c9e75e4e6e670bf1c2e8ee5ac5fa86efea96b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.221.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDl7ZUn8iVm7tT+gdp7zHMdA9LsS3svhbm9lCwticBw0AiBUdeR4U8V/4PKUseRdNuu4AwBQrKO4CJ3E0fcmbiTOsg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+AVMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMYA/+KLqEZbEANBCJVCVFLwIkoogcqKoQskHEM1WuvScp/eYYf++2\r\n329YIqSYLTdhq7TKQyjxwGLoYVCjPjvhLjJmTNp7PBo/S34GMoDFq2CMVZGp\r\nVjop9bv0AffVlbsXZ3KoII6xgVJlh5uQ/z9IAsbbv5yL1Vwstbod7XhCKi1H\r\niJ3FAsfv7Bocr59vZ6g9jF+UKvyOPVn9TsQN+9PyPA2fhbsiMXHydYDFrzUJ\r\nwTiXV81bi103/jSV2vaBS/+VWFxhb7cAmw+dNo5LzfqCQ6SRt/I6uHP2puTH\r\nvOj4uIepx8RkBn1QMb15mihbQYVsuDup9GZ9Z2iLW11HPU5MWedZGccD+mzm\r\nikRdk6On316Jc9eMjNJjj7bFpG5wK2Yjikz2JGfEh2rlIq0xT+CslFuceOS1\r\nTlhuEGTZqtR1mxrYOsjOJ+ICjGufrFNeByK/I2nOGPkexNRcL8FlndTJ2b3t\r\n4xGZBT3UtYAB2Y77jBy2z2GE/znaZLDt9oJPvwa6nUb2m/jgvQBPUmwtZMmK\r\nQ4wPUoH8VjjyzPUKlxOczp4+iMzPezujkxIv5W8hzJrhLR8OU2HgvksVXHRp\r\nkCv8SNenRaNe9MgDirtLUuJLAB5FPUhyfyU3GKJHCKS0HOI+96vNmvuMhfX4\r\n7VE05MNIP69m8EgjwYlf49Nu3OF8t2v0EPw=\r\n=2x4C\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-connection-manager_0.8.1-unstable.221_1677198668137_0.8291452028414388"},"_hasShrinkwrap":false},"0.8.1-unstable.222":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.222","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.222+4b14542","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.222","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-YT5SQBASIyhLcYs3WR/VxSMawPawp6+PTFcUhhIe6++b4r0OhOOAZSmQq18h0bIKveFR2fusAbbLhq1CnS9Oxg==","shasum":"46c0cc159d15134818819f743d4ea0681cf1d1c4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.222.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrRFoGbLm5DDDbsQYJ8v6FBDQ4Qg+c4jNTmDOF4NiSTwIhALDY4b+/LqL2DJxr5ZpmbYQsbQ47i/hYWUzNzJZErPFc"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+BH7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmorphAApAQhys3LKCCWPomro09MVf2QY88yDgmAjMUljrt3Aq/JjT2J\r\nX7UVbmIGH4c2I2i1imicP3O8IQo0Gn7DoSAqXJdPKw1OzlwjX7S2LButRgn7\r\nbyJ5Chiy4MrTOHS0k4Sj6EEkGD3OqQya87hASAgFaqT+a5+NHOA+dp3q6gYe\r\nCJDmnBrzgNKBLBgXY/dOPEdVq92UTaL0cJj0kn9dsiclGXnDSatrkaQP87Fq\r\nBhSupQxgaeoGDfGXW600OkSUtv1QJpi37iSJFNl7XNt+XRjWiph2A4NTA/JC\r\nm1h2Yo9/Q39MCv67XXdrF2MOKr11Z/s23Na0hb3hw+qqlZjU93TGSGwxtaKB\r\nLLUKgTS8eT7YgUJRnu55reWIUMZXvBZX6Vow5GJbcCWe9KbkZ06CPuqkAF/6\r\nsDXy3gNeSmdW9rDjLTQMrxqhiujw0YzxWbyPDZcRuoo+ZQET7HuXvHDoESnP\r\nSqPbTM36F6Ixs4x4chK5Lhr3mo9wGFQqKa5UxQlnyn6UdXPRfG0trE1Nl14T\r\n1Eguvrn+ousjPQ3Io67h/Wa1CyeSNaAZd24QNhxiCZ2HsHRQwfVvXWXhpP9L\r\n2TcxaFLcdRAJ9ed0b3nRblASk6XV80TIwIL90OmfK/KqHDa7tF39gdPAo9ST\r\nKSe10BP2uP+xWpV8v/p0mxhQlCepT+xvFJc=\r\n=ECNp\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-connection-manager_0.8.1-unstable.222_1677201915530_0.691470691901823"},"_hasShrinkwrap":false},"0.8.1-unstable.225":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.225","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.225+5a87aa3","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.225","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-c+fX+4jz8SUS+922raT/tywcrk0P5O8Yd/dbBmR4qg0hDE+1umPRfY3+D3hXaXvY+tGzkpEWM6O+t5Uw1kPaNg==","shasum":"f7da8e27cc7c177b588e07fddde5c71cdf428e75","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.225.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr+PUoI7zMTz806hQlzPjrlxXdvx27KTiCTrcA6wgzVQIgQdUZb90bF5+pjfXT7DlDc0a4rGzlZ5xhbJWYzK5ZzFY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+Dh5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5tg//bXrknWFHQPfJZgM5IyOSlRlMwvkC9ogUloLgTd+q6jEBjVPt\r\nBROA5wRba81ycwTB1hGFCCXLnCss0tAKNZlS07PBEJVPtxJkxVED+62VgEMo\r\nLBHtbFj0VSc391nJ03cv3OtcmgRyxbdCYOCoGHYXfy62zeyBPQPkObutO/pk\r\ndlh1+FrpTGJpGAhkqNpQsXAUfuhY9RDNOv++VDc8fG/rmvBu/xoY6VcTTDDs\r\nQrIcc7FIrkh1UV3nFHdE0lqjDjuJqvr0YzO0D+FUo9vrRmB1F3lfkP+0E2KN\r\nGSDDbFFj04Rv/6HH1F8Q3nulLbUoO+bnAtCwZ9C7bcTgW4UQ1lQnDBfgUn8i\r\n7HLTSxh1FeiV79DRmoHAxtAnlW/kInmZxiC0P3klnjSvUM0sPHan3rKHf2hB\r\nSAYQmTvLkQztc9HT+HfFnJaPwBQErfAdhgbS/RC6Gi18XvI1W5LC26Bxzpvr\r\nHs/LflMZrIGPu8DgNNKRzJSxbkAPvjWG0w94yyHeV/vXwJ8dLYe9jCiGhaLN\r\nmMv91JL5hyoiPxTCPADYAIlvCMz+Zr4j7fQdDqQ37PA0PQ7GSHkwocoarNeS\r\nFJbtVWFpQUI14IHBQAxISZaFY8A1IyHV8i+kWYuqBTugBEWGz66736MaWZiB\r\nRccn2Q+Obejep5OdGDlWqN3/Qwspz54y64I=\r\n=O8dX\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-connection-manager_0.8.1-unstable.225_1677211769570_0.919679079386952"},"_hasShrinkwrap":false},"0.8.1-unstable.227":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.227","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.227+b7ab1a0","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.227","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-TUVEGrktG/O14su1rQnLb8oJCjF+D/Nwt62mOk2CwjoqIWN3011lxXLVx9sZkgdt2OFUREN3G4mDvXy3Ih/IHQ==","shasum":"f4817514a4d457d983c1abb26883029379c21024","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.227.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGex0XVW2PM4TouZ3JVC9dqkgsqxQciDvoJuREPJfs4KAiEAwcKxZ8/o73kqsljYvyVR6RzXnM8gfhywQQi1HvLgtHg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+V5EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonBw/8DkynhBzavNUqNZaBSwBjbrr7HDAUc1VSAiFxaisclZfYd4HT\r\naRVqHFjfgnAwRg//LcWsXa2+4E/yQ2JpykhlLOEiV+LmCUmkB+76SEplz2iW\r\nOm/Ppfaz3Y7sckr5Q9sbI9Tg3BF7C+pdM4Odl1rvEym1Io89uz88RhnJja5s\r\nNbj1JxOkXedyNMKyH1AO8iwdMc9M47wVESZ3JhcIcXZcO46mTB/IkkyY1MGI\r\nhgnPlq2GquZKWhjd+iP5dwyqkgxjaFmOIMD9qO3J9J75oya2cKioIb+WrENq\r\n/+77Q3/saoV80/onB6n+kTlYbcVGIz4U7+uwsqBRUcvrHsIrMHhXO/N+jjKk\r\nE7g3UMWXciF3Nl5Nm8Q1N3ZraYLgVZtkdyAxrL26kR6B+oJV/R3n2V1sulom\r\nATdvEzWFbL/tNsufEN5M9BQazIElgWDzhQTCF4L6w1tB6van7jjZa5Tn0Bmj\r\nOUtkz98z8hWn2r6ODwPGLSYFZeHhiq6MPF5Axb/opypjbN3o3lkKt1SxlyYk\r\nLEa4MfFHjyOdQdCxgCatjcMpRbrYcSWutZbNPKs1RLe9WfqzLntlLYx2vFbk\r\nrlwuPEAbJiRSUskTe5ECXiVMjJFwOIygJiIV6yiOazBTRsJiOecsNAsKfgtX\r\no9LOR/kDtrFV9IDe3Gr9L3eSU9MK2d1FEVg=\r\n=5FFL\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-connection-manager_0.8.1-unstable.227_1677286979901_0.013582581324454335"},"_hasShrinkwrap":false},"0.8.1-unstable.228":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.228","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.228+d19bd2e","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.228","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-hrWyq1KMclB1Uc0yE9CmFUKFoXa0WMwVD3ssML3xKxe7SXACBDwiQMWCrSjjy4dNUFvDAt+TnJU3Q78FBDB6SQ==","shasum":"f1f9e00979bcca8206336bb97b37b0c6ca464f64","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.228.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHq0IjkCxbSPxWeMWUfPiQZTlN5wUH/QIMZkqCjuO3YFAiEAqnSEnyw20Pd1Lz6XEvmRnFIxOePxbRFKrR+BBTr8FWc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+tD5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHLg/9HZom2U0jp9D2KMLseQniLD6w6VFu7CSy9d2IwBjgs92z9y/U\r\n7MXVmfikC099b3Lw4LEVrU2DKFBtvMqXZSm+EIpibIRP4Su4OBdZCv7AUL7L\r\nLhpSUkK/f2slkZS6ob1ut57bH8GV3ApeT6XHc0qcgs0P4EOqF8x+/5tTPqYp\r\npuJXJYeV4RErelhqKienq4gnwj570iamzwHy3Eb5EjhAzoKQhmPkWrTafnue\r\n9cDkND8FB0zHwF4G63j2Z98tmj3qNtevZI2i018Y3YVw/VBS+YTftjDy0BDW\r\ntXCrMS/QliUWRtnjn7yHXboPDWguHVi5yDiHNXzl8OmBBhZRW1eKZf37psNq\r\nyTObI7tblSH/ZCzCXRrhgPrWZaq9alHM2aQNO3967+pLI9qsOnhjT3avKe6m\r\nt+u32giK6L94A2doXotHBh/E+D9L9fFNB7+H3v+0w9yT33m0pl+kWunP2hnn\r\nrP/B3hEdFKIVJO+H7Aqnth+GH3Wy1JAu0gsrem4NqZJO4Gw/E7zpTWo1jImq\r\no26100zPYQ+TcAkVrqLGJ/hvMDlUTRdfFVpbnnNjYfQ7q7XLtHTAsVfusiC/\r\nW8Ez6vYdZ6G8oWFq5csvgx3xY8antx53dbUmdH1MWWLatAEv6Ppj8ELOuhVx\r\nivfRA2wVxV+JG+9WhHe9BbcQ4O55Spp1Ogo=\r\n=9nsh\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-connection-manager_0.8.1-unstable.228_1677381881324_0.1575230516516244"},"_hasShrinkwrap":false},"0.8.1-unstable.229":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.229","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.229+457a5f8","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.229","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-iBjupz/gyMIivnOMBhGsgcYXLCoppQ61Fuu2ZPNUndQjeG+A+Kah/qvrk33vXAOu/k7EDrIbLZ+kYS16PVSHNQ==","shasum":"85b8ba284724acefbaf3ac8e31d3969c1217b80a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.229.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCH1wQwizRQ9XFzpX3ap0IEZW1B+eGEi3RKwSaRFGedCAIhANz/zRwlLKBEl7nEQOgtPSQBvJ07L8nyRNPkEE965f8u"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+wT9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0hg/+Ods063FFZJ6InUtNPxVPiuuvtVag4ebxsiiBs7B31kYZ+CL3\r\nnLLYdPGcNyaoDKSl47UfxEPrxyyYDL1ujHNk+6TPZZ4BQFrVAi2UnK5MX8wv\r\nnZPYyq9Nl3ODXgT9rUR2Xsk46fVohgMQovyZbzJxbVKuSsTLOsq8dHrsGEbY\r\nUnZZ71FtQbTmN4M41JoIzGwNCzTUcbcK84iQwVBredUX5jMU+VXifq4rEcsq\r\nAXgSjVICyY7vzSRqPUn3OM31u9rIxlXx+3mA22ORsy9kZHFd9O3ajF2A76CR\r\nRWSd7alURlJ9RrQMbT/zKkIKCUXs6H3G3VdO+m7Ft0al+6PtCs70AwQqiWQP\r\nfvg5gXCtcJR0BniUOOa+cNETU0rLJxzgqzwd/Y1wZEg/xHtK3rAtr4anGWjt\r\n+OvRYFQhzSpihvJRpYLoFeiDQTn5NBHS0lfpCYaZi4nymqq92Axeu7iKfI/Q\r\niRGpgnqdgU973DyAfFSYnmWKSP3dsewob74NZv2E09g5wJ++qoxmmOIBZMhW\r\nLSr1KP1PF9xyTsUjVrQ2/t7lQmTXrxJZW7ada1p0aoyA5pBgyaozSipHltAJ\r\nYy4mMxGrn4JRS1biqBo3oDi7rnNrkpHzz0UrL2cgkJrKzY8kUj8e5lZDgHZZ\r\nUzW5dRVWQ+ta000/vDRXsswfxTsG4kJ2hes=\r\n=NxEt\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-connection-manager_0.8.1-unstable.229_1677395197360_0.6009845662114581"},"_hasShrinkwrap":false},"0.8.1-unstable.230":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.230","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.230+1139352","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.230","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-2DNuDaNk7gk4Z8j4oKJzXxJBcOKSuFbeFJFcgYrACClLsXBRcHf8RwGThjKgtjPt6JwbS7wb8nP7XHHt/ia8lQ==","shasum":"f99ff40775771306b694c9949671caa875dcf53d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.230.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjKzN0Nm8OLIrKbL66qtRgSdtOKdjUao6S5vyD8vCyFgIgJLJ5k0Ork0m7OBaBPtiT855iGmhW7ddjIemJRDhgVNs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+wvkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmryWRAAnM6OyovUQ9rdZS/+k7/nhLrcdQCzq+PhWlJQmPgBXQPnDuXr\r\nRdl0PBcjvDT/zh64QHbq4EVfQcoAs+mLJ+szDbiFgVnTtYEcfZRLpRIQwrHH\r\n4eH7W8pPmWuk5SwcZ1XcklLkbOXZ8TISv+YpoIY+se8kEcQU4PX1Tb4iPSvO\r\n3r/+t1wVF67ACQeIgpawV6cjfqfG5PTnCsuI51wipyMysSWChgEe330qg5+O\r\n58HcxhxDHjCyFXsHRW88HIOUb69sANqMJ3HydMh+34pT1Z9sX3MXEBmVTP3i\r\nqzKaYINByFC6B38OhQJ5KPYtHyt1Lrjt3Z0I5lDNkiUSXnNDuGRJO0OveT4H\r\nwuEH/cxbsrnu4ZjT8LIOeDMDI13DmgI4PiW+8cudCQsIRIXHOjWfKA3q3aQk\r\nn28A3Rvy1PcEYoHVRGyF97w+pHB5HaTtAt6pW5W8uYMrqGQfVHwbFpN8Uy/i\r\nK0wjETJpS6IWvaq2kzDcjk/Gb/UZ8C4Q3mpifXtlDLX/P3AXc5v6N5lPyfdx\r\nzOhKMNYgbaQTuft9A1EukbG4X3uphGXFlMPrjdhv0/9vlWk0zT2jGzq+F0BQ\r\njwttS+r4pu51WVWbA7aHGwaungIay6A9ZccosuFgUmlDXGcA6xRRdFt9UG0h\r\nPOd6636s/xz3wkzyGbYQ+jfm6/LoRn7s+GQ=\r\n=deWS\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-connection-manager_0.8.1-unstable.230_1677396963899_0.6063730984802111"},"_hasShrinkwrap":false},"0.8.1-unstable.238":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.238","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.238+ec062f8","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.238","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-JmImw3kQzT3+y5duaq31ssszfWJOmGC6uASvXgAAkynOR2KNogSIly6Qpzed/9Onm+hsFeLgrqvN0KbrPSossw==","shasum":"31bec44ecb556e6e310279f40fb2bd830e856d19","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.238.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEauXaC+oRkXzYy/QsFq6e/aXOco6xXhouR2XPTvn33wIhAO9wEP7xUGfywDhHBfrZ0HlBy+ZdANo7j2aljCDpAGNV"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+ytbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2Fw/8DPrDk1Z4AJ1ShbYo74i8e5SXnXfLMzSZLf6umDeNv7UeXvJT\r\nuaEMiP92DORMlamtogkmzHPYVc6AUHhVE8lLdQB486AYwx/id0f8vJVFpXRs\r\n6m93i4ocxxj+1JxtY3/sJFdk75DSFWF3gAr6mQv/zV0s9t295JcEoVcBmCFk\r\ndIYLvtffT6QP1Pvt8olOH/3dexQD463EM5ZHwh700onwTNv30udUb9rJBT00\r\nHRYLin9JAAAuyH3CMBgPVX5MfPx2OVbeQqH+GB/gZaYB0jvIHGtmMhyYeeFX\r\ntdtu91Pjd3KAIvus5fDY6T1OLGkfZcYqlwaphBXc4p71+4BIhvYFrpT8zXbr\r\niG7riBqKM+b0GXtwsPl9JzExWJB3dBHQxpSaOFEV33zaOH2DzKekwRQybax5\r\nWhU3Oa9ZH0c6TaA4kZTB4KjNwjQgHdJJVPp0OnuP+O+JexZxKlW10s7j7WU5\r\nMuL4XUdkkgrrfQKBtHnOyQ9SkIKBjW/rkXDbv1qaXpf79B/0n07Nm5lbuKLE\r\nAr9EReLS+nHNQTNEsaI1RRPFvFQfdLRv3EauMnIfECiTgp/aN0IqUxCLN695\r\nsFiEjsYrLotMfMh2vHykvC+iSU/4QjogyF0gD4gr3Tup76jvwH/l1rEaHqSd\r\niKjLYuH6Ng3J20pofG6iC1FoTfykUEBdzHs=\r\n=FaXE\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-connection-manager_0.8.1-unstable.238_1677405019144_0.03931821407397962"},"_hasShrinkwrap":false},"0.8.1-unstable.239":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.239","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.239+ffdc606","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.239","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-RSEY5maoQGyN1VI9+nZGntfCCaVxX4d529I4zWeIazqJKOzN5XOxvQsvLxf3ibyif2QfZgFk7g+S2AS10mKlvg==","shasum":"47ad065c48ed1372ac97537bef19a28d3c3905ac","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.239.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqo54jRZwHkD2mkTMpK5/Fi1FcCZlq61szu2hcJCD9QAIhAIDDi13lcjB1vh3EeFR0rthKR/66pSG47/+EOUqLAlaw"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+43JACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozlQ/+IQbzXXC8GIRiQOFySkdb8axTPWBxZwasCoTilNfI+v3i97hb\r\nQNGBUtqCOD463FOZ1kp2gR0u5EXcsWAe2Zv+E1gqdJIA4aydVU2JMoaRc3rZ\r\n/q4ygu54UbTCFcsMvc0Ssc8cjN5m6h2lG9NNblv4DaDOY5U5jaP0tnUxFQ1A\r\ndwuJo8/t1He6RPNof9YnwqhbDeYErm8IoC1Zu8qyIG6RT+ApZTCfZ7OGS4pl\r\nZydAacL8ZFlzweG4+YplRWXX3Iw18vB9y+5DBobfgna+Y6+BZOrB/3ziOVa1\r\n55okigD/I9uFNIH5bs0GWi+SxLYl90eR70XShkmY1cBmSL5xucA/zluHd0cr\r\n2rBaH9QtAk5tsbRo49rJvuoPlhkflgVhCwMF4xUOAp8m3G7qi/c6zj/MHWHv\r\nXkYcJ74ejbxN4lRKJ0ZYFZu3jp54MqsGBzlFtsDI3tjtzatbM+oAA+ufoOwn\r\nPq4V2uoT0ouOb4fLwsw5eAYvmZ61Znsc2lzsfzaUD3tj4FGlQKoAePLjUiU3\r\nzU3j9CoYWZka300KHLTV39SJjYpG598QqLTAUzyDsnRIyu+oV+FmopLcL/IG\r\n4pC4880DJyTJ1vbKVrVPvVGA1ILqcirC9hQHcB3p2eaIAc2I34y7o52/G9mu\r\nP9gms0N4dTK6yJG0q7BgeM9y2uC6qtbi8uo=\r\n=uWh+\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-connection-manager_0.8.1-unstable.239_1677430217550_0.4448155919697121"},"_hasShrinkwrap":false},"0.8.1-unstable.240":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.240","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.240+2fcf72d","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.240","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-WgCdOQfRXoWKPHAAunKCmeJOTRuV46u/xt3qrVSeojrd2xQv94Cel57oPLM0A6z5NP5M/fVzT1VRoGewMGxmVg==","shasum":"7938a2c8ad3676af053a4fec59c023f8bd31253b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.240.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB0tHAjDGqfEtwfGCutsuXa6iaVFHIFneZlhj5AFUBJyAiEAhcNl0knh00Os8Ee69IH416fP9Tb8fN4rmjHZNPgwM8U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj++zAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrEKhAAgkY8d93dJzoYZeSp/Ejpx3c0IxeeCooNs6j9EisZpXy4eqgM\r\nmFKgB7sUQpJDDX2uHw8y693vCtQSy5jbDTrAf2sIzqjgT3onOxLE69raFyEC\r\nTYrrthlugoYh02QQZhcKryQvTjY28rYkjT8xttNKcGG38ivK4k/Z4tE0FEp5\r\nAycxzZb4BqXBxLpLv+fNA5TykIilqVoFaIueb+7zcxfKu1G7vJ0eL5UlzlbG\r\n5kzESp4qWrA+dBgOtBbjiAQGDxZjtDaIMnrJ43S5S8Uj4WPvywlUbne3ISKz\r\np1/pyKR9muj9yDG7csLee4Hc8jBAGYII0AV3tykovMXoRIqqEOaMuuuSdat0\r\n48XN1xkst+OuIKaJ9bvQVIYSKTZ71ZgXDTBg4VX6aNN6PQCVa087vsP3onPw\r\nneF9eWVxD/vrmRN1pqiDmUdUMQXm/A9cSTrEvNE7b4DI993ZWJGeca08PZAy\r\n5Dlph0Gn+lhoo59zC1PWLxC0t+V3RFkeF9P/AYQXp4diIuRYp+ws727UjYRu\r\nYpUclGQKhwRXsnfM6pixP8Nxt/NTr1OGfKML1TVPGe4msNCEHRRWDD/uCBgA\r\nXFtloIv+UlNoykXQ+/oNxNsxVXK/iFCHlXMF243CdyhPbeDmRupM3MfzFpS3\r\nwvY8bng4BbCHMdCPTeOfjkft35EBGU54mVs=\r\n=Jvsn\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-connection-manager_0.8.1-unstable.240_1677454528096_0.37143429567700936"},"_hasShrinkwrap":false},"0.8.1-unstable.242":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.242","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.242+7ed0727","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.242","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-vBefyf4hl1BL3381XeP3xkcMBr8khXusyiv3QxfqmE+P9fkO1eEM+9zAKsmP/GUc4/hZHdLMA1fYwEnXTDCIvQ==","shasum":"22bee8a2ee2ba02497ce2ee02ae3b8d1bef082a3","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.242.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH5reaU1AiEMPtKdgKoJTcmo94jWifunQ9my6QHO6g+QAiBLuplKa1bJrk/iblSbEqgRlOvSxc/ukO5iBqOAXRWIPQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/A6eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHHQ//baKy5FPtI0NAzBhe7AQA7kDudtTGYRx+9LIKVmpXCasDAkBR\r\nhgLyY68S8o3RQAWYBiCcsOftq0rhjXdg9YnM0K3bB3xa9CrVKp/YAEqiHm8B\r\no4uPJdX3oBBBC3Tv0Xez/W/kEj9Sj48K8QaorlrVsM0iWhGBOP85/NqtxTyc\r\nKEnPksAPdMdIspPcUEWuYAnAy0L12cnuOPNN2m0EkLeib8u4QFG1UhWub/C7\r\nFnUcrjgwga+JhxQMFGfkJaU7dyFW4nuFdGUoyj+9xzFQDZAJLGEXTpOOC7KQ\r\nzPQr01A0tfcor6aJ4fiehj7tzHoDzFX8IwbjJjBS5lr0eAEjnO2zK2VM+Epz\r\ndf8epV1yXCCqF+pjBW1NXT/BcpXYfmZUFdPofA876NlGIRi68uSt1arLBgm0\r\n473L2Y14hEcww7a7EtZ6eLL+lOm1YIhDFpL1IRAzb6qbdVOMVkbt878qIew0\r\nGWNuisOkerkAgOuA2thewZ6RMxp2PTgf7PRvsU9F2t+iOtap/Ut9cEI33YY6\r\n/sDNWXZcTbAXUEar6VE4BGgPc3t0qqNaEAa7uV2q/bdWh01Eptem/zqm8roB\r\n/SBjGw0kUyu+arumy6MPCXrZNMlag/QLb73KQn9GU4zteHWsZ5cvRDONIY/R\r\n6kpuDClG4dt7zIkfWoN1JQqTl326zXV2bVw=\r\n=LaQ9\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-connection-manager_0.8.1-unstable.242_1677463198376_0.6920380152820975"},"_hasShrinkwrap":false},"0.8.1-unstable.264":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.264","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.264+455ebb3","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.264","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-wbDk6yXF0AG+Le1/zc7dFWAwkvqG5REeFOja4Yt+EMPCdLlL5bF755YGa4e5l6KtuJybb8INIhQX4S/+FE/AXw==","shasum":"153e0134d91d3c7e535ecd2f04943db14204efd4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.264.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIElKk70VT7UgIkbZwR0OxQ+w6VpZfQwSl7fpeQNgY0qwAiEA4mcw44HqxuEmffbMH+U7p+bNT6W5pzzVQaomBkr7BeI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAbEjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqfxw/9G1DdtTZUy3gvxtw1oBL9eMl/nqgTxDdpF8owNNFEz+s/qe70\r\n0zSHE5E5CY+YtvHPfoVhSE74mM1FAVI1Oz/uaYe0Yu9uJd8P+h4WSivsy4r5\r\nlhmjdGpaILTHDllbBQVvQj7cYz1hdEXvIK9WXYEWK3nD7dCUAwQGgrQgS9wI\r\nep+p1gNYhYS2U0BE9/N4AId/rX8/yQZdw+4b/Ux2Ej81MorDsuzrsDwZ9fow\r\n54zYOkZVQmYcxuVtpehb4d4UOppA3jQQ/UIKfF0tlOgXn1AJusJSvBfA+gn4\r\n/9A+ub7W6/Ag61xBB8VcyP9XVMzOCbtj1DGmoxiLiVMzHk65z4+6Gxbd8mUd\r\nnSOypqVwA6qJNbZr06iawSkuwxrCDzmPNBMwmjqpK4AoBLJqgP9lDm2GrDIv\r\nARXuNYwZLCXHzPAq+RfhfZ12caQbPvxnfs937Z9n4NN7TLMrWgveTu7OIAeW\r\nzlvI45ZkfdfsDjBFrqoPgrgcAySsJRU2wWkkS7s0gDXptjTTTdCsfQ6upIi9\r\nxHYOFHzUDLRjSAFExhsuMveBC9yhbjvqkLS5pTcDTWouwlm6lENLODBbJwgf\r\nL/rKB1BfQynHQbNtDNNZfwbWk4YfZTQRiTL5cC0pBNE4QGrBzUuEHm0Hm5RT\r\n4I9pWJmw5/aMM+3IiFFAop2sOK4f6PUtGVw=\r\n=igdw\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-connection-manager_0.8.1-unstable.264_1677832483516_0.3306115600494932"},"_hasShrinkwrap":false},"0.8.1-unstable.263":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.263","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.263+0ccab93","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.263","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-2dTzCm3l/Lt0bgk603mb1647vooQu6cf3HerdvqGgdswHGkZqvgxJYYDiJMLbGf0OutScfQtMSLMgfD2T3MJoQ==","shasum":"c5e09a8a0244a6eac85bc4dcd7206ef6ebc9f6cd","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.263.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD62AEq7dwS7twS5EhfW3oNNWFBNxtJ/wivqk/YujoqRQIhAK46SniOO+vs486CrpLH7/DPhK8DXagIUqq1tDt2eT3X"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkAh17ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrTahAAir15fmpu0xu6ACRtPqIRy74MWWEsJYZuICfkiBSQbcOYLle+\r\nhxgowGB6kXalhowzRVGXixQvs4Mii1Z44P8jTXLPvtXLmWh0f5oQGZ2yxsax\r\nLOIicdEDfXbl3LvTbonUSgRjdS4S1rR+xZkKqKogBsU6R+xeiADzyQlht1tW\r\nObCPavyrycWkxXeEAuj5LjzRY88oIaQX2t68jEek8RzTNY/HgaNgNOkc3cvH\r\nftXdMewptldZWYATmHWt9+majfkgF55Z56XVkqYYF67iD/5BedIsUkLt5+bs\r\noQj5hbDIwrnXr6/nWwd8p/ATCSGYuXCJnoCma3g8g2vHfhcMyYi873XythUc\r\nK9CR/VgJS9Dkw+EcFfG+FCrTgjG5eSMW3+TL2tDrfTFO6ALIEjqS/bJBuNTZ\r\nimO1GJ5+RzdUFqocpL/xlsp1Xo4xug3QFw3PBta7AhCni20FwjHBrR5QN7s8\r\nXhCU13skfheUsQh6MZq1BIHEN/2cNr9w4WM1oUtUI3cCPYDyvlBkzxRddd3Q\r\n0vlkATvKiNNFPFpK3JcZ/I8i9hdZGeBT+MDUmKVy02efPyQCFEFBEQTnPftZ\r\nG4TTXe0c3P1xDjZkFWyE3icB3jh2zp4TrHTHqWNmBOsau8sWkSr65td57f0Q\r\nRYpch12qsVs/qWgb54w4f9968DACTnpTJyc=\r\n=bdPl\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-connection-manager_0.8.1-unstable.263_1677860219432_0.7484346542079534"},"_hasShrinkwrap":false},"0.8.1-unstable.271":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.271","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.271+9a734b5","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.271","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-KFUOFjtrPwZrtQ6rLfSJNKTBaZmiGpd1fyzyNvC0/C5OFEbcCiymP1UL9oRTe0NSQV/MHw4Fw9s/3mbD4gOk5A==","shasum":"70ae31320be23587d12ce274ae729a96aead4596","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.271.tgz","fileCount":29,"unpackedSize":61446,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/eew4QPX/LbPjvz6+YK5u5LrYTJOYSBIQA226sbKw6wIgakr2fAi3CvOkl1CjrSRDl4uh72IO0hsgipB3LY8Ed/o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBfopACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmorvQ/9GJLnjBtM0ujKWsxvDqlzM0BC2Z0lyb7SMNBZv9w32aZ7J8qp\r\nqpU4EjCEU2cLZlqNRx8COWWK/2L3UWcMsnk30JthakTGgpl4SpjtUnLOlDyo\r\nh5UUdCz706QEm3vUIVfBfGgtJfW0KmZJjiuBS/rYJTRl3sJKv1jNt1Sx89rI\r\nwgBJ05G0bDxC799Gl/tDUNSJE83JIQ5ByztL7x0D8AwsyFs6H8Sh8OkaujWt\r\nq5iYQ/smxXwphV3TE6Pz00cPRiVizMNeyqtkq4HdVUw3nPYATARRFVmaIn/1\r\nuZiCe3omicEkZwONIsu3XlBRBOYOCnLIY7wwYqHk+LXkFr3wMEm9vGDpRptU\r\nQvlgOmlibdG4sAALYvoF8HXpqu1sMIdQzUaYNaF/Bc0kxB3BWU0lVPFy2QZ/\r\nwfKSL7DYjUyUHTpnhiccfrVVpuoKT5dvIwuJGlFnL99JSva2R0aZ+jY6mjKI\r\nTYnI9+57VspW9ciG6FWLb84clkoeFoSIMMoBgtvisa6pWfyExvsWhvtA7mhZ\r\nqwjzniaK+IX2sdIUhHf2L1bXb3c9aVex0gMLoBHwMgj9/KLp4o47JIy177i5\r\nwTOBBWevyhmuVW2M7A7mRntjUqahbMr0WwehqEp7jr6Mh2DtVILwzPtN++In\r\nWMqGcarloy+VAiX+pGAmPc7OG90zNOqPpik=\r\n=lkGr\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-connection-manager_0.8.1-unstable.271_1678113321573_0.5806719890210659"},"_hasShrinkwrap":false},"0.8.1-unstable.272":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.272","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.272+af4fcbf","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\r\n\r\n## Supported connection types\r\n\r\nFor now the following connection types are supported:\r\n\r\n- OpenID\r\n- DID AUTH SIOP\r\n\r\n## Available functions\r\n\r\n- cmGetParty\r\n- cmGetParties\r\n- cmAddParty\r\n- cmUpdateParty\r\n- cmRemoveParty\r\n- cmGetConnection\r\n- cmGetConnections\r\n- cmAddConnection\r\n- cmUpdateConnection\r\n- cmRemoveConnection\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { migrations, Entities } from '@veramo/data-store'\r\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\r\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\r\n\r\nconst dbConnection = createConnection({\r\n  type: 'react-native',\r\n  database: 'app.sqlite',\r\n  location: 'default',\r\n  logging: false,\r\n  synchronize: false,\r\n  migrationsRun: true,\r\n  migrations: [...DataStoreMigrations, ...migrations],\r\n  entities: [...DataStoreConnectionEntities, ...Entities],\r\n})\r\n\r\nconst agent = createAgent<IConnectionManager>({\r\n  plugins: [\r\n    new ConnectionManager({\r\n      store: new TestConnectionStore(dbConnection),\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Get a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst result = await agent.cmGetConnection({\r\n  partyId,\r\n})\r\n```\r\n\r\n### Get parties:\r\n\r\n```typescript\r\nconst result = await agent.cmGetParties()\r\n```\r\n\r\n### Add a party:\r\n\r\n```typescript\r\nconst result = await agent.cmAddParty({ name: 'Party' })\r\n```\r\n\r\n### Update a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst party = await agent\r\n  .cmGetConnection({\r\n    partyId,\r\n  })\r\n  .then((party) => {\r\n    return { ...party, name: 'new_name' }\r\n  })\r\n\r\nconst result = await agent.cmUpdateParty({ party })\r\n```\r\n\r\n### Remove a party:\r\n\r\n```typescript\r\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\r\nconst result = await agent.cmRemoveParty({ partyId })\r\n```\r\n\r\n### Get a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent.cmGetConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n### Get connections:\r\n\r\n```typescript\r\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\r\nconst result = await agent.cmGetConnections({ partyId })\r\n```\r\n\r\n### Add a connection:\r\n\r\n```typescript\r\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\r\nconst connection: {\r\n  type: ConnectionTypeEnum.OPENID\r\n  identifier: {\r\n    type: ConnectionIdentifierEnum.URL\r\n    correlationId: 'https://example.com'\r\n  }\r\n  config: {\r\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\r\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\r\n    scopes: ['auth']\r\n    issuer: 'https://example.com/app-test'\r\n    redirectUrl: 'app:/callback'\r\n    dangerouslyAllowInsecureHttpRequests: true\r\n    clientAuthMethod: 'post'\r\n  }\r\n  metadata: [\r\n    {\r\n      label: 'Authorization URL'\r\n      value: 'https://example.com'\r\n    },\r\n    {\r\n      label: 'Scope'\r\n      value: 'Authorization'\r\n    }\r\n  ]\r\n}\r\nconst result = await agent.cmAddConnection({\r\n  partyId,\r\n  connection,\r\n})\r\n```\r\n\r\n### Update a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent\r\n  .cmGetConnection({\r\n    connectionId,\r\n  })\r\n  .then((connection) => {\r\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\r\n  })\r\nconst connection = await agent.cmUpdateConnection({ connection })\r\n```\r\n\r\n### Remove a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nawait agent.cmRemoveConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript) ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.272","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-SAFMQtFEhrp/kh9lurKTNYiv9JZJuUtefuYGZfaydpUHHgBz5WHFoGaG75CIexvecbLeHTfu2Ay21v5xYbr0UQ==","shasum":"7e44e338c2f8ed040fdba460bc0f3bd158770a7e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.272.tgz","fileCount":29,"unpackedSize":62069,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnTrvtpJmVIdo3eLSdZY2b+KXF2u2zLMuz9vsdnGyaCgIhAKVd0Y7fJGp82fVPUYDPkEh2kH+nJPlVd0ImRWa5Vpce"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkBgJUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrxQBAAo0UuFc1JFzyBBmKWyXbVBldsi7Ph9HJcOG2Vqe/fdG6xtJ6e\r\nxH+Sz/V5i+/1GBJsAYjxxU0nXDoo9kvuUMugzAxobkYgFP/XPIfdVGFw315X\r\nqZasEhqNHLoRog2hU+g9ZYXJN5uYN7lbgOReyK78lV+CaT9toiueQD8NmioM\r\ntpDtAc7wpejJ5wFYfpgaCfPlelYFM84heyFrvKbna0s8af4FWsszNqRoVKfN\r\ntXutz2kem4Y2OfNHMF2W54Y/RgZtvon1R8Xi8d9CAmNR7YATrbg7kDlI2P+1\r\n320r1tA326X7Yz+8gc5LPm/obtyi13rfc3KkD+CIRbbsLgID9lQj3stN1xmN\r\n9MTInooAAiu3WNJ+gm3q9xzVc0+5OwWjy1LEDH+Ga7Gpw4duPwnGPqpEXcCt\r\n/1OwWR5UKCE/k98h1uuA4lB7yi7IFv/rtQlmRst9rRp4d8pY7/lJ4TZq4lOS\r\nf+NBxofsQZZg48WxY7NFnTJLXyJZt80iDKfMQLUA9j0WDPoaHQUJtBkSWECH\r\nDzFYKCZsdfzsgEs2G4oQ5Nf9xeAR1Uvxed1piBQJe0ta4B+Y3K85wZ+KB6r3\r\nWSzI+UDF/IbV7J1P58En0xdWd4m+5GeDqhbURxbZezTPcNIhcu9+3pHLRPJJ\r\nlAFT7GwhbWiYjWPzTlgdeAlq2Ro5a7aA9sI=\r\n=aKzy\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-connection-manager_0.8.1-unstable.272_1678115412292_0.3403846469184797"},"_hasShrinkwrap":false},"0.8.1-unstable.277":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.277","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.277+9f18a4d","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\r\n\r\n## Supported connection types\r\n\r\nFor now the following connection types are supported:\r\n\r\n- OpenID\r\n- DID AUTH SIOP\r\n\r\n## Available functions\r\n\r\n- cmGetParty\r\n- cmGetParties\r\n- cmAddParty\r\n- cmUpdateParty\r\n- cmRemoveParty\r\n- cmGetConnection\r\n- cmGetConnections\r\n- cmAddConnection\r\n- cmUpdateConnection\r\n- cmRemoveConnection\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { migrations, Entities } from '@veramo/data-store'\r\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\r\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\r\n\r\nconst dbConnection = createConnection({\r\n  type: 'react-native',\r\n  database: 'app.sqlite',\r\n  location: 'default',\r\n  logging: false,\r\n  synchronize: false,\r\n  migrationsRun: true,\r\n  migrations: [...DataStoreMigrations, ...migrations],\r\n  entities: [...DataStoreConnectionEntities, ...Entities],\r\n})\r\n\r\nconst agent = createAgent<IConnectionManager>({\r\n  plugins: [\r\n    new ConnectionManager({\r\n      store: new TestConnectionStore(dbConnection),\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Get a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst result = await agent.cmGetConnection({\r\n  partyId,\r\n})\r\n```\r\n\r\n### Get parties:\r\n\r\n```typescript\r\nconst result = await agent.cmGetParties()\r\n```\r\n\r\n### Add a party:\r\n\r\n```typescript\r\nconst result = await agent.cmAddParty({ name: 'Party' })\r\n```\r\n\r\n### Update a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst party = await agent\r\n  .cmGetConnection({\r\n    partyId,\r\n  })\r\n  .then((party) => {\r\n    return { ...party, name: 'new_name' }\r\n  })\r\n\r\nconst result = await agent.cmUpdateParty({ party })\r\n```\r\n\r\n### Remove a party:\r\n\r\n```typescript\r\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\r\nconst result = await agent.cmRemoveParty({ partyId })\r\n```\r\n\r\n### Get a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent.cmGetConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n### Get connections:\r\n\r\n```typescript\r\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\r\nconst result = await agent.cmGetConnections({ partyId })\r\n```\r\n\r\n### Add a connection:\r\n\r\n```typescript\r\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\r\nconst connection: {\r\n  type: ConnectionTypeEnum.OPENID\r\n  identifier: {\r\n    type: ConnectionIdentifierEnum.URL\r\n    correlationId: 'https://example.com'\r\n  }\r\n  config: {\r\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\r\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\r\n    scopes: ['auth']\r\n    issuer: 'https://example.com/app-test'\r\n    redirectUrl: 'app:/callback'\r\n    dangerouslyAllowInsecureHttpRequests: true\r\n    clientAuthMethod: 'post'\r\n  }\r\n  metadata: [\r\n    {\r\n      label: 'Authorization URL'\r\n      value: 'https://example.com'\r\n    },\r\n    {\r\n      label: 'Scope'\r\n      value: 'Authorization'\r\n    }\r\n  ]\r\n}\r\nconst result = await agent.cmAddConnection({\r\n  partyId,\r\n  connection,\r\n})\r\n```\r\n\r\n### Update a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent\r\n  .cmGetConnection({\r\n    connectionId,\r\n  })\r\n  .then((connection) => {\r\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\r\n  })\r\nconst connection = await agent.cmUpdateConnection({ connection })\r\n```\r\n\r\n### Remove a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nawait agent.cmRemoveConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript) ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.277","_nodeVersion":"18.14.2","_npmVersion":"lerna/4.0.0/node@v18.14.2+x64 (linux)","dist":{"integrity":"sha512-lpgDw2NZGQgGjBO12RRUsxQ2G2AY9iaEmm9kXSjl+cr6Gsy8vbPcvup3q44snPfxGAynJRwDZS0dwt7AOQdcLA==","shasum":"dc9b96e5a362b8c814f2ea75b1f14fa0643dbe8a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.277.tgz","fileCount":29,"unpackedSize":62069,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDv1rB8DyVmFgko+LmMuMgTS24EJKcwOX/rJL9ras7PHAIgLKwwZBV2Rwi6rRLzl6QIPmCc9zps1kT5/0dEQ1Flw8Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkByd/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoekQ//W9EMDXQL1GQQJJ8j9fH10CVq8GhVDekGt7BmYNjb2PNkgg88\r\nnKuiTLVkSSyykXQNr9jezlIX1bNM9RnJ5T5UQlNFHj8uKg1bvSLnACO4ijA/\r\nMNdIDOpiIAshc6mjafq7PqRbUUDzbiI4kIB5lMbWcY//7r4qYTXPaJfkXCTv\r\nk8pwi3Bc/yV3DGoXgLFJELGOz3e+ZcHGJOemjVsv8pfaBFkR1/O+aEUFvb4v\r\n8U4ZODVS0XdY4BLGtlpnSuSE1ywanOWzPts9m5oJhZ+WZ2L+vKijDJ+OsprH\r\najAPqeDh1/eD/+dNrklcD0DdznqecPcpdtumpUVoOATzNM0LM0aE7NsjBEDC\r\nBjNORYdI13ef+/xVmY/t0cDs2HLHLFqgdbmRABi6J0x2ZU8GjIejEU2Mixrz\r\nfo3EZYuSuAqD+IZXq02OG6xwWmMmUv4DOr2lEJw6WXg4+NZXmYYSL/QYoeev\r\nId/4zZQdx4vR0PcTckb7BuzdmnkzxKeKXAw2Jx8lL1TY+hE64S8irJ5T4/nt\r\nRNldk8hAvohoHIju5rFVflA5aDA6n5o68pPRG8mHFfzdcY90XoCgd2NxBOzp\r\nYzJZTfbywofhl/silSvVXP1Subu6/vElaLDwvc4zeOF29i6ApNvAIj6hUs0L\r\nYM/XmaTq/RV90QTJmSWyNHzf4F+TlStNqqY=\r\n=PHqX\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-connection-manager_0.8.1-unstable.277_1678190463545_0.9663676106823549"},"_hasShrinkwrap":false},"0.8.1-unstable.266":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.266","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.266+f089ac1","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.266","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-sP2aKjzjGh49rfhql/7WOmP6qdxlVbiViaK7ZuZlsUttOEj3S5q/Ay984LS2+pp9DPhROUM11vdcyLvGcXCKrg==","shasum":"cd6a988d1da3e84cb1c3ae8227c406bfaf0f7ae4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.266.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQCaSxaOWf9C5CjdiAo+w2qkrny6MwvpOpSatOJIwK1rRAIfCID2ag90Gc2PT0vrjaTlti0PN879uXNXs/a2VLOGlQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB7jRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBYBAAkRJ5uILGAQ/XP641avXwbC8ctZb421aoX1YdwRAuhLbfQLOK\r\nlZNwyk0A7NOeBH64MrionU/4KPwNZtYcZGZ9Wrh1PPoDfe0df3ilsXlljj+Z\r\nNFQV0Q3Ou6kSGgvWjiuGFbQEG+0rkC/+rrRqP5LAD7Ka1WVCe0tjGIFXS2yo\r\n6Ol8ZFkJSApu8CKIE1jVSgJSj/iBttpaC2+66Z2hEO9v1DoDyhvp8sEyWNen\r\nbNScClZzQeD1yyFtlr7yqcBXZxMN9KcwHAxO8lP0BY5yTSNegz1iwwuTwHK6\r\n7KpnF2dQCKE0tud3mhe6wYXDB13pRwewMdwv8Gq8dOHQkpuA9TGJ//qmZ2dI\r\n+cosref8/Lg/KdwT7ho9IBbQN2owqQ5ILE+Mlp0qZp+nxRXDd7p9alwP+S6o\r\n8x2pRFsvPKRfhmRHDl1NuaU+WiRUWxWO5DKW/DQK8Kuhy3AC3J+eOB5XEDGW\r\nANEd/4ydoc9e6/KaMh204N9hNwI0XaOPRlYYxCW/iZ/6klNHI6Egw1mwLnNR\r\n0ZNwu3dAXsU+X/ncL00EN23nY3gIZeF90GWZSp5rOt80GWm7+IReOqQQ2IBi\r\njALgW+mvinqpf/mOsHa7a6Zu4IMkvoEdwF9CZJOiU4QCWof5DVntxWO+wC6w\r\nlUNu9f783eczq4jYuhVG4Up1QSN7ifvVCAg=\r\n=pctz\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-connection-manager_0.8.1-unstable.266_1678227665388_0.4545055678321417"},"_hasShrinkwrap":false},"0.8.1-unstable.267":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.267","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.267+3c2b8ed","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.267","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-kaQtl+lSlMbCi1fmWx3L/Y9jfvflJYCF27ubDKkA5WpeqYOx306lu4j57w6E7Lhun/Gsqq2ciK1eIg6eXC5YJQ==","shasum":"4d804cc80f453c651abcee15986b370b9080b5d1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.267.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID8aGp6BSiPFmQnzILVULTWFpksSrCJGNtK8eS5ea8R/AiEA6xi2rre1761kE6wcvhIKCSBAL7sTYEQPA2HcsJ418BU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB8kgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9JQ//eIyU8BzVqNcYLzmZkN8/g3/AlnjWxDeEDkfGiDtbUCb9PNnV\r\nDOOiPCZi2f2uM/zkEqX3/yaH3tWkYkHtlndeEin71EsM7CGpZdJesymmGSuB\r\nPV4tPIt4Liw+SWTk+qWC9GNgTMKnAvgBGn1VuuW/LYEGOS2Q2ZpzIydhpLMI\r\ngO6zfT/xOLs3gZMiSJ/uHyNICAtHalwUIVFbxfhy4URsJ7EmkxBuUtRnCGWn\r\nu9GTU6u5CUI/LZCgcxZYvILtMPnDhiPD1+nCRn0e5gelyyRU33X01RRfyVH3\r\nlBwVZPVPh+O4r+Y58uRHuXNl+DkzYa78F3TYgvIgDC0Ml6NDpRCpkbGxkd3W\r\njph5zD1zajCkHnQcX39UcmDS7jJlu5IxuhBr0iHkVw/3PshhgYsySe4P0pKI\r\nKzHXCnhQ2GQ10JC4SGxg7jWSB7ifLjWngLyTkcjcjC5XjvAl8rchtdmHMGA9\r\ntslR+jGg6m2JGR1zCSAWRcu0NZ1TDoHV7xZY9wD3QpJG133AMWGFK1TGEYIZ\r\npii2Hl/1vnWzGwaj3G4ml0WDMmJdpXYAWM7JJZPq0d6jpWovIwvy6SO1AItt\r\nYF992V+qI+n1RD1My2lhaXUUzV8IULz/uvRj0HpGeth8tcrjhM+KC2QcVbTb\r\nIAjDei2B+FGAu2LR037LbOJVjilRTQoBj3E=\r\n=Ek4P\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-connection-manager_0.8.1-unstable.267_1678231840283_0.4233877286931802"},"_hasShrinkwrap":false},"0.8.1-unstable.268":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.268","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.268+50a264a","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.268","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-O9MDDUV7mTQRUJldsOSA0iqrE85KQvVjgakZpxDgwXnyfKICBHeqsOkQ5QdxFOJ9FfUwGwl6ndM8tWexcfa6KQ==","shasum":"3c8e719c07ab1b20cc74c2954179a45ebf8797cb","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.268.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/+U7i1G/M/dNNPTiYo4S3ySDAlMRI4QaEd5MHcJPyogIgNOftx/1j9Fe+pTotxi/OoZohjd/9fROPHoysgGwkeDI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB8urACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAAQ/+NZx4yWVHgPz+7E4gPvFVMBvxUbhjStvGSNYCWo3AAambrxA5\r\njrW4ic2TkIJsCV9waq5DmdVzdL2T4jp6FhJGg+sR01P+RaNDCBFn6AcyXRZl\r\nvpj84yEIRwnWFKgBURA3736Oqs3GU9ul3N9l5GKyUFHicqdu6OyffLRwCYku\r\nJkBDOGcIYOQYWfBC7svfaf9F/0DkaboGC/KpDBIr/czl4B+waKG0SUqlBuD3\r\nzVSKdMNVw9WPdumN7UTVVSWgJtfnuyAh9xQgrBse20n/Yr3huUMVKsE9Yly2\r\n4H1lhqlpPmU1gyYiAcJQYug2SIFoNpokfTDS2u7Wg2KATC3+Lx1jhOLJckSw\r\npkIFA/yol9ULN2sLCUskSEGldK8qwnUFMyj7hfYyIA6AybMmvKoi9JBHPApb\r\nC9cRZ364Kj0kVZOhWWzPxAQNjjg57a70UcINEz4XxSwS2zhLJYqH1KfN6xg9\r\nNzzi8eV3CAlmcs8t2Yg1V5FjOk67BepqsKKbZCgYvprTvlkDWQHkG6pjBpC7\r\noQLgtIqG8jiiKJn4EKWSG06fwFqCqDGLXvYvjGVZxlD2aAUnX/rtg/jJt34C\r\nH4obO+6Ad7wgqSe/XnCRHoQ1l0mf4tejD69RkFPQeBQ/4ne4wQU+AiTH0IBi\r\nEDwf1H8heZeYdS7bGoQFBiKO+D4JKo+UwSQ=\r\n=x454\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-connection-manager_0.8.1-unstable.268_1678232491185_0.10037218974587025"},"_hasShrinkwrap":false},"0.8.1-unstable.269":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.269","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.269+4caadec","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.269","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-WgXJLFBuiwlqU1nF78Dd/OULX+RuCH0p57EpfbjqGfuH+Wvv0Ft9oO+P1XmvYtS+yTvXVT9g0Wenokxtunvqxw==","shasum":"c95874f7b67b42cc46586d551c72f254eafbdcbf","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.269.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC4oMV5xxQFvC9PeUXgkZ7xSW/ezltbv9K4j12MExZR7gIgCArbCNH3K0Jbby+KRb0VJjPHm3CK3xuEoK8dScySUQw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB9IPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqv6w//QaJV6FTcZihLB/dkYvHoF8ZirxbtGo00Y0nyIiXeWFuLHYuP\r\nFAT2T23VWFwUjGpY/uM9IgcrNTqAE22YksBXraItTUOG+rmB13hBF37NICyb\r\nDyet0wHrCqVvm01ouYWxFqS5NtSSgOzedWbOjxqnBUCjsnHg9HZGujL/STGF\r\nhWnvNO047zjQI1QL8PrMSduA3zd5Z7XZHsjcwaFd+AY47f0MakcjsvXr4/pb\r\ndNDcLsp26QM5SYYlHC4aPGjbluv6mM28cjtrCsyqKWRULtsJLqinKI7SOQ9P\r\n0uTC9IKOLWOVcg1BpoXWNEbPsGbYeXwBnw2sVATLjIZqtbbSqdmeI3PBM+Sw\r\nuFe6NZ3GmNWB4A45YS1ua4SGG4xj0TUjAGoKn1NKfVZyl34PtNI2t7wFMrBJ\r\nG9LKAiqwW7YzsIUmJ4WVGgU1qSKEqWgQaHDGDt6jIHeq2gfzyG1e2hFl7sMj\r\nYiLnyCr2uWY/scGPYO9r2VC9PsIOXh67VbHv/wxuW+C7HPQBqoXSM51YKgBp\r\nTn6Nuq/c0vjicn1ZdngGKoLE2qyYzVzZV6zPzNChS9QZqsv5sN4pwk0wEBoY\r\n4mLpSF+UHB89vy34kvuz1huZfOoB8wlQpXJ0H9Z/76dVluxejZ8riRKx+SAD\r\nC4hjBq5o7WxnZzIIAlr3498HsJUCbRi3Aig=\r\n=Zjy9\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-connection-manager_0.8.1-unstable.269_1678234127583_0.5177953892650788"},"_hasShrinkwrap":false},"0.8.1-unstable.270":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.270","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.270+8b6b21e","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.270","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-KWgDkdJclTrSpoBTaKCH6RIvnn41Xv+H9Bysyev/KEKan4uiNYYekF/a9NX06b9zGcqHgKJ/MFZRgE5DBe/9Ug==","shasum":"0d67a25e0eecefeae996d7b7af1eeb2d023509f7","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.270.tgz","fileCount":29,"unpackedSize":61423,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+ZskxP+BWD5WUiWu+soHCWWTmUjud/B2xxAqcIVYo5wIhAMBrCwOvpsqELQnLNqo4VY0XwTAgcQj1pZ7HVIrmjuoJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkB95pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMMBAAnM1/Nw6kRblxtgYwcN9Fps9QQiIgGPyw0E1I39c9S6LRP9Mx\r\nrySTctSqJLdlSmfbJIUNnGs1983xegrdxY1zBbGPVSqRARG7O7dRrXhe8i/7\r\n/z13zKATYF/ulCxZ08uEBYYvhiEhdzggwtP0TR9W9QcxAvtwclxBm1kb/O4k\r\nFWdGjslhf9M25/PpAZ1v8qP4zvd6ezqZPFNPEbY7nZOaqO9Z2fuTxwb/U8sd\r\nD94kvqhtmjHIKPiDLYq1hc2xzOA6Tr39ahdksGSnL2KzuvIqZ/Aqy7jJAsd9\r\nCQw+0q4GuWyr8lxNXpHqy/L16tkEcN0i13+iTk6RMIqWv//pF64HDpG/wqtO\r\n4/TZUMQ4us2WzF6Esaf1TF44AerYVNLzZDnJGThxqCfAJehTOkPvWgWQLE2v\r\neNdi8uCfQZwM6Y8ZEGBzJ3SjPZnUbtKALCzZoVIMsaGE3CKrI9Cgjn3kMwTi\r\nw6dTbrBj4UsDm9DQGZKd3cA8NwV8AJOR20Cn+tvbxuYLHHEQmoAMygFiSkBv\r\nRuOV0SebN3B5stVr9ABCx4uBoWt+zwzTwQ0S06uILwHAc7NTVOLGQS2q+dN6\r\npWpwqrz2+WIHvASm+yeSBqOpq+YqetbJqChm4dAJXtkdUo/HgQiAIZwYf3fk\r\nnZTxg0LlvpBXTHNhAjHC87v6dNS3bK4Oyw4=\r\n=34Gz\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-connection-manager_0.8.1-unstable.270_1678237289394_0.04416077698564802"},"_hasShrinkwrap":false},"0.8.1-unstable.278":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.278","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.278+ced76fd","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\r\n\r\n## Supported connection types\r\n\r\nFor now the following connection types are supported:\r\n\r\n- OpenID\r\n- DID AUTH SIOP\r\n\r\n## Available functions\r\n\r\n- cmGetParty\r\n- cmGetParties\r\n- cmAddParty\r\n- cmUpdateParty\r\n- cmRemoveParty\r\n- cmGetConnection\r\n- cmGetConnections\r\n- cmAddConnection\r\n- cmUpdateConnection\r\n- cmRemoveConnection\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { migrations, Entities } from '@veramo/data-store'\r\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\r\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\r\n\r\nconst dbConnection = createConnection({\r\n  type: 'react-native',\r\n  database: 'app.sqlite',\r\n  location: 'default',\r\n  logging: false,\r\n  synchronize: false,\r\n  migrationsRun: true,\r\n  migrations: [...DataStoreMigrations, ...migrations],\r\n  entities: [...DataStoreConnectionEntities, ...Entities],\r\n})\r\n\r\nconst agent = createAgent<IConnectionManager>({\r\n  plugins: [\r\n    new ConnectionManager({\r\n      store: new TestConnectionStore(dbConnection),\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Get a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst result = await agent.cmGetConnection({\r\n  partyId,\r\n})\r\n```\r\n\r\n### Get parties:\r\n\r\n```typescript\r\nconst result = await agent.cmGetParties()\r\n```\r\n\r\n### Add a party:\r\n\r\n```typescript\r\nconst result = await agent.cmAddParty({ name: 'Party' })\r\n```\r\n\r\n### Update a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst party = await agent\r\n  .cmGetConnection({\r\n    partyId,\r\n  })\r\n  .then((party) => {\r\n    return { ...party, name: 'new_name' }\r\n  })\r\n\r\nconst result = await agent.cmUpdateParty({ party })\r\n```\r\n\r\n### Remove a party:\r\n\r\n```typescript\r\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\r\nconst result = await agent.cmRemoveParty({ partyId })\r\n```\r\n\r\n### Get a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent.cmGetConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n### Get connections:\r\n\r\n```typescript\r\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\r\nconst result = await agent.cmGetConnections({ partyId })\r\n```\r\n\r\n### Add a connection:\r\n\r\n```typescript\r\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\r\nconst connection: {\r\n  type: ConnectionTypeEnum.OPENID\r\n  identifier: {\r\n    type: ConnectionIdentifierEnum.URL\r\n    correlationId: 'https://example.com'\r\n  }\r\n  config: {\r\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\r\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\r\n    scopes: ['auth']\r\n    issuer: 'https://example.com/app-test'\r\n    redirectUrl: 'app:/callback'\r\n    dangerouslyAllowInsecureHttpRequests: true\r\n    clientAuthMethod: 'post'\r\n  }\r\n  metadata: [\r\n    {\r\n      label: 'Authorization URL'\r\n      value: 'https://example.com'\r\n    },\r\n    {\r\n      label: 'Scope'\r\n      value: 'Authorization'\r\n    }\r\n  ]\r\n}\r\nconst result = await agent.cmAddConnection({\r\n  partyId,\r\n  connection,\r\n})\r\n```\r\n\r\n### Update a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent\r\n  .cmGetConnection({\r\n    connectionId,\r\n  })\r\n  .then((connection) => {\r\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\r\n  })\r\nconst connection = await agent.cmUpdateConnection({ connection })\r\n```\r\n\r\n### Remove a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nawait agent.cmRemoveConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript) ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.278","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-USZaeehCqNdQtVfCDY92vAML02W+kWrOVA6FebgpmV0SmOhi1gcOaqX30AszJuZ1sOmapReCIOxUTdo3h0uv8g==","shasum":"02641b5569dd5fa2e00fd7fbb25da4208ae30f0c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.278.tgz","fileCount":29,"unpackedSize":62069,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHsu83vRfPAh3fhnWH4/aYgesqpajgK2V7O0vfex4RvQIhAJ6fEtyqvhaa0DLRI+XjyizfZ7qAPSjQXthY1cp2HVxA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCLesACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpwug//bDUScmmNTXCsqqrQDRohdk0hDDPduPqKZultzJgEMPT63SOE\r\nzzBMfFh9M4U2jKarT/2KMzDQHvM1MXpVrM1XL1f5Cucn+jHio4zSu3RfhWG0\r\nC74bKLdmee+IyTjyTDwd55pIztrfTRqg4PmA37wmfxotjfEL+I9xW0IFMrBh\r\nKBrBjG8qCn/S9rUosqzgb2xIyWUWleaWeMks/+WEdu7JNEkH+MibPeGlXg4a\r\ni7RnUt3B88vcLvshVQIMjAMMyZU/frkXw/Tp4zGSiKtxHDhxMqTlhCTFpFb3\r\nSGycvgVG5e1thl/3cdgHlTDlrjF03gugyqYImTgjEk3Rt45EEF1q2X49RffE\r\nFqfufz20Tz1greZycXcPD+GPtq7R/PsUgGzRZnaAyWjsfJtgBlWWAhQGi/X7\r\n+TY/NpsqpAenEur1j5KIwjw7Iebqqi42NYLR2VSgX5miwRZzmQ3Ko/mIh4Zh\r\nnVpZeTvJ52Y0+dODBdkGou6BCwgldaAlXsAc9DKLInljDu0Mh6SZRsyF5D3B\r\nJykIrKSVI/ASSQXRJPUB21iI4rGl6IQEqNataoVoPnB3JKO5EODPL5QOaFSN\r\nzU4jkXCIKChvtLFJ1U/8ianG8hJdxjiWJ9NIg+ks8ZpH6JQph7K1Ifu6KNNp\r\nWkYLFwXi1mMJ7n4L3gLhZyh2fW86PEK7Po0=\r\n=OKDR\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-connection-manager_0.8.1-unstable.278_1678292908549_0.07945157110628598"},"_hasShrinkwrap":false},"0.8.1-unstable.279":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.279","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.279+31f0db4","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\r\n\r\n## Supported connection types\r\n\r\nFor now the following connection types are supported:\r\n\r\n- OpenID\r\n- DID AUTH SIOP\r\n\r\n## Available functions\r\n\r\n- cmGetParty\r\n- cmGetParties\r\n- cmAddParty\r\n- cmUpdateParty\r\n- cmRemoveParty\r\n- cmGetConnection\r\n- cmGetConnections\r\n- cmAddConnection\r\n- cmUpdateConnection\r\n- cmRemoveConnection\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { migrations, Entities } from '@veramo/data-store'\r\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\r\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\r\n\r\nconst dbConnection = createConnection({\r\n  type: 'react-native',\r\n  database: 'app.sqlite',\r\n  location: 'default',\r\n  logging: false,\r\n  synchronize: false,\r\n  migrationsRun: true,\r\n  migrations: [...DataStoreMigrations, ...migrations],\r\n  entities: [...DataStoreConnectionEntities, ...Entities],\r\n})\r\n\r\nconst agent = createAgent<IConnectionManager>({\r\n  plugins: [\r\n    new ConnectionManager({\r\n      store: new TestConnectionStore(dbConnection),\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Get a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst result = await agent.cmGetConnection({\r\n  partyId,\r\n})\r\n```\r\n\r\n### Get parties:\r\n\r\n```typescript\r\nconst result = await agent.cmGetParties()\r\n```\r\n\r\n### Add a party:\r\n\r\n```typescript\r\nconst result = await agent.cmAddParty({ name: 'Party' })\r\n```\r\n\r\n### Update a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst party = await agent\r\n  .cmGetConnection({\r\n    partyId,\r\n  })\r\n  .then((party) => {\r\n    return { ...party, name: 'new_name' }\r\n  })\r\n\r\nconst result = await agent.cmUpdateParty({ party })\r\n```\r\n\r\n### Remove a party:\r\n\r\n```typescript\r\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\r\nconst result = await agent.cmRemoveParty({ partyId })\r\n```\r\n\r\n### Get a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent.cmGetConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n### Get connections:\r\n\r\n```typescript\r\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\r\nconst result = await agent.cmGetConnections({ partyId })\r\n```\r\n\r\n### Add a connection:\r\n\r\n```typescript\r\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\r\nconst connection: {\r\n  type: ConnectionTypeEnum.OPENID\r\n  identifier: {\r\n    type: ConnectionIdentifierEnum.URL\r\n    correlationId: 'https://example.com'\r\n  }\r\n  config: {\r\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\r\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\r\n    scopes: ['auth']\r\n    issuer: 'https://example.com/app-test'\r\n    redirectUrl: 'app:/callback'\r\n    dangerouslyAllowInsecureHttpRequests: true\r\n    clientAuthMethod: 'post'\r\n  }\r\n  metadata: [\r\n    {\r\n      label: 'Authorization URL'\r\n      value: 'https://example.com'\r\n    },\r\n    {\r\n      label: 'Scope'\r\n      value: 'Authorization'\r\n    }\r\n  ]\r\n}\r\nconst result = await agent.cmAddConnection({\r\n  partyId,\r\n  connection,\r\n})\r\n```\r\n\r\n### Update a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent\r\n  .cmGetConnection({\r\n    connectionId,\r\n  })\r\n  .then((connection) => {\r\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\r\n  })\r\nconst connection = await agent.cmUpdateConnection({ connection })\r\n```\r\n\r\n### Remove a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nawait agent.cmRemoveConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript) ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.279","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-yy+jSX4n6dGyS7ofoZkL2ZTUoEXN2mrAZ+Ykr/zqOSRL6yAhuwryAe9xAfqr4K0w9nFrgUKcTzKgT0YkYDlISg==","shasum":"958a9c7443227d620e4e855698782297d3368879","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.279.tgz","fileCount":29,"unpackedSize":62069,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7sBVDZkSNzu/awr0nMGsr03nt2ADpvZN415DMTSIIqQIgfZhn2Ru1enAzrCaGayGtdYekGsOk8qobYVMeqYvCco4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCOXrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRBw//csC4Dx8ci5qIJ2W4Ug9Gh/fEQgWQLkPBQaF8u5+jLJfatzm3\r\nPOaF1mLCYlWQIQdiWDEV70/kiJGGE9orNhhGlwwS+NCR4hd5Kjedgk3dyI4E\r\n0v+zO72Ye+jXrmQnOpOLId1T5zcyzOR6KBlgO4rFaso7Xm/Ht141GloLN49a\r\nuHenNeR8b7W4KD8CIepK8rZmHLAYr7P0LOUr59FwKHVnPSAbKvWAS7mvRIOJ\r\n5/8qzgmu6LKxoWh1WR18lOfO6kAXeoE6Ff/BTbk1smo3PcziCXemAOtvWalQ\r\nlYfgeamt3n3lqfRpdrjp4orJOdn/zs99SQY15IGc37m0emsJaSGBsF1yUvdu\r\ndIdbQXVzPgSiM44+Mu8KqYQ+GNzTvL5HHosTeMHTcZtIJjfoKgYPmJ1mR+7/\r\ngnu5kBCjvK580ODAZONgtTRjYdddnl8LGC8XTyQLErljIXh3uYvTHTocZ3ok\r\nnJnOn2QhrZ+bSb2nQiBlhgQbXfmGcXrGWAeJwxDBSs7w4oJCd+GjjnUjg3yJ\r\n3AY96c/yh2CIcSq2N6csycGn7N9kIeowlCT80ya3WiCXJaRj6vtqZkOzrFPU\r\nmFPrbIdZmqWONykK7TabKKpMBfFMEyZf8tKzuQenH3eP7rrbTZLE8hsz8voO\r\nW/jAw3Joz4n7SwdZaWzPI8ooKqB9mOG125Q=\r\n=YkGG\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-connection-manager_0.8.1-unstable.279_1678304747346_0.44433903527637986"},"_hasShrinkwrap":false},"0.8.1-unstable.280":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-unstable.280","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-unstable.280+fb79036","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\r\n\r\n## Supported connection types\r\n\r\nFor now the following connection types are supported:\r\n\r\n- OpenID\r\n- DID AUTH SIOP\r\n\r\n## Available functions\r\n\r\n- cmGetParty\r\n- cmGetParties\r\n- cmAddParty\r\n- cmUpdateParty\r\n- cmRemoveParty\r\n- cmGetConnection\r\n- cmGetConnections\r\n- cmAddConnection\r\n- cmUpdateConnection\r\n- cmRemoveConnection\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { migrations, Entities } from '@veramo/data-store'\r\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\r\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\r\n\r\nconst dbConnection = createConnection({\r\n  type: 'react-native',\r\n  database: 'app.sqlite',\r\n  location: 'default',\r\n  logging: false,\r\n  synchronize: false,\r\n  migrationsRun: true,\r\n  migrations: [...DataStoreMigrations, ...migrations],\r\n  entities: [...DataStoreConnectionEntities, ...Entities],\r\n})\r\n\r\nconst agent = createAgent<IConnectionManager>({\r\n  plugins: [\r\n    new ConnectionManager({\r\n      store: new TestConnectionStore(dbConnection),\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Get a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst result = await agent.cmGetConnection({\r\n  partyId,\r\n})\r\n```\r\n\r\n### Get parties:\r\n\r\n```typescript\r\nconst result = await agent.cmGetParties()\r\n```\r\n\r\n### Add a party:\r\n\r\n```typescript\r\nconst result = await agent.cmAddParty({ name: 'Party' })\r\n```\r\n\r\n### Update a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst party = await agent\r\n  .cmGetConnection({\r\n    partyId,\r\n  })\r\n  .then((party) => {\r\n    return { ...party, name: 'new_name' }\r\n  })\r\n\r\nconst result = await agent.cmUpdateParty({ party })\r\n```\r\n\r\n### Remove a party:\r\n\r\n```typescript\r\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\r\nconst result = await agent.cmRemoveParty({ partyId })\r\n```\r\n\r\n### Get a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent.cmGetConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n### Get connections:\r\n\r\n```typescript\r\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\r\nconst result = await agent.cmGetConnections({ partyId })\r\n```\r\n\r\n### Add a connection:\r\n\r\n```typescript\r\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\r\nconst connection: {\r\n  type: ConnectionTypeEnum.OPENID\r\n  identifier: {\r\n    type: ConnectionIdentifierEnum.URL\r\n    correlationId: 'https://example.com'\r\n  }\r\n  config: {\r\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\r\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\r\n    scopes: ['auth']\r\n    issuer: 'https://example.com/app-test'\r\n    redirectUrl: 'app:/callback'\r\n    dangerouslyAllowInsecureHttpRequests: true\r\n    clientAuthMethod: 'post'\r\n  }\r\n  metadata: [\r\n    {\r\n      label: 'Authorization URL'\r\n      value: 'https://example.com'\r\n    },\r\n    {\r\n      label: 'Scope'\r\n      value: 'Authorization'\r\n    }\r\n  ]\r\n}\r\nconst result = await agent.cmAddConnection({\r\n  partyId,\r\n  connection,\r\n})\r\n```\r\n\r\n### Update a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent\r\n  .cmGetConnection({\r\n    connectionId,\r\n  })\r\n  .then((connection) => {\r\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\r\n  })\r\nconst connection = await agent.cmUpdateConnection({ connection })\r\n```\r\n\r\n### Remove a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nawait agent.cmRemoveConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript) ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-unstable.280","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-RbIoWpv1gtL2ARg/PLasPW15dSmAdjp8n+xv1B7mQ/CjnXEfu6A5tkl4+T6II/fbffM+y679jZ/OLnfk6xCnQA==","shasum":"a1c55a1b319ffbe8aa349eece022ee044a95fb01","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-unstable.280.tgz","fileCount":29,"unpackedSize":62069,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAkS74wh/3DnYmWqg/Gx2Xg3u2EhPPvP7uEXOPzmqlZIAiBvLr08tqOnlKB3vd0pQeGccs61+MuYuo0MWLtIsHefyg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCQgvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmog6RAApNBZtcZnynZCBkEAURMU2N0oGttJotXIApsL3PLfzOvRENKx\r\n0EytJQopsiGOOvcP5xdysbXU6AXbzzqmI0CBapZ7Gczqbf1FKeaLQCkkkXsv\r\nN3HbpL1HLZ/kgG+9/jtUDbrb+4Mlv0SF1bEGhIjJtIomsOsxVPrtIM4CEZ5R\r\nLemRr2xZ4XArYKHxyFz60JwJJqAVonRbJro4LE46dxOlvme7eX0hil6bCXN+\r\ni0Q6QUXUUsO+wHISD5UGdoO01LoH8XtTyeK+CZX8tg0ajrBlQyZwnQK/Xzyh\r\nvYzSM4bWNFngwPMwEX3tYuUpkcg2svPuxGG7tTUJEeYjYBUopMM9sao5RrnJ\r\nJs6Qe/oRb2ce7LIPvCoQRZM5bUvRUNQvH9q152ARgrsetWPrFXP8X5t5xJoQ\r\nkCKBI3a3DGKVp0DzlOcTLCgX7sbcoFUcqkMECPS46F1Es+C+aoCkTj552Fby\r\n2hgLlgCdY24ghQOy7IJk+jq8STXRjIiVS7E1xX7zKiKhS8z9q5IYuu8803Rv\r\nI0stBQ2DlLHth+nVyBeMubFydoe5DoHLXOXKdbuzkH6b43WUFuz66tHt2uzo\r\nj5/2p6bq7icEhjNUIiSUDpEbDt+mDUkMnJZlHwNUmxp82iT+Azbl9JcorrFL\r\nDOJkHlPJTLGTm/GNmzMrw0cndfWG+hXVGBs=\r\n=YFaR\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-connection-manager_0.8.1-unstable.280_1678313519188_0.6552707282019568"},"_hasShrinkwrap":false},"0.8.1-next.272":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.8.1-next.272","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.8.1-next.272+a34f653","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.8.1-next.272","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-MjEz9hwlVUqQYuNAtPw3oa1sPME4y9hhlfPEY1SqmYNvsJb5XTJAhSOZsuP7aKZPFFq/SEpIBBaAxDateKU7FQ==","shasum":"ea59e6e5fbf98842207b6d2b8dcb3ec50c8de522","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.8.1-next.272.tgz","fileCount":29,"unpackedSize":61415,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGJO7zCAlGDq4Ze8L1J6xp/6TW7ERORRU7YYmMtWjQXMAiEAhpI8qDxw6VM11MypHoMM5zyl9xLqzAXjxyopfuZGy4Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCSowACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9UBAAnWUohTyZ2jXhiuYMzCFDSQ0yQTLQvhLR6il2Cv3chupI1rsj\r\nRuq/DTgVv1GKfWmkhk+cy4dc8sWE4mcUM9EQVyTfY+8juJv15BqpWtw2UYRU\r\neo+jr6O9wbO2ADc+Yqex5IYMVbnVK7JO4effd8dYJ4cBwnSKhmWxTqaWe1m1\r\nPfUFhB8DI3+jpHZQGrPw+wN8x1/P8NglDLoaBA+HIsCpVN3l4iCjU+IeueyQ\r\nm+YsgPbP1wakYbaRkRRjNQzYjOB+CKVGBlEYNnCuD+KFM/9qZtIH5c1rWVfd\r\n7m3bxB5sE0xXO4vfnb2b6+854HjkCclhLKKeX0bymZetx9APUDJJuV6TFcLS\r\nqQ02vo5UnVmNbivL9CDtTb3SPpXgccMX+GiVxjv2ddyUetm7j/2KAvpFytQO\r\nnmUBgpEY819lCrWBdFJOIcEqEtTrSStkz3St0qysG9IS0y+1ZD+g50hdplUc\r\n9xOgac9pFrOm2WrNc9S6Rbh1VHHMDyZcw28/WVtgLcYnwmaVIks7eAeARy5p\r\nh4P+NZj3EsXXUv9rUP9NpVCofllc3k5Do4UUjCJJg0as7p5e0S64ZEXKeYRb\r\nyusOJrNqzOj3PJ9tbrw1ewpeR134OyWYv5Af3W+MOKtAbgVxr6toATbx+WUV\r\n+2lLXjvN564M4u1Rxoh4L8Q5HZpwzK1s/cM=\r\n=RrWG\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-connection-manager_0.8.1-next.272_1678322224775_0.10429703638700016"},"_hasShrinkwrap":false},"0.9.0":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.0","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.0","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.0","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-0xnS3mhogQ7CA29QRK9bICbtKE6T5voW4wivyIQx5iUUkQOsAO04/YzA/gpZLLB4yavg2UhQOWnpldlr7EwjZQ==","shasum":"ee450cbe868c633ba50371fa9eefdee096659b2c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.0.tgz","fileCount":29,"unpackedSize":61381,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPImrqPnUfKYu+7HW7w8+wQs38CyIred05JF/DcY9ZEQIhAJY1hPdQvte3FNYJLFJbIfiAP5fmOIADajpzYj5zWPLo"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCSxCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmroWw/5AGY420hSXKCCylvWJFEBOvqUK7kJmB45cc1hrRCYmATLSITQ\r\ns3cElJWPOYhbuoeY6HxyzzeHkg3Or1gc5oXNHmr9EypqHWLYPRaIuEqrrRRe\r\nL7md7DQBYpfR2DpIaJ+oGojjGMvy7vjwOyKNb0Bqs/cz5hUTVBAxTu8rjD3R\r\nGzMzYfX22E2nFvUIFxtD3tqfMCl9kdM0qZC5BvsvzaRAoqDJnN1yVvvoyixX\r\nOj+fwi2z/5fTPVwgTwRG+8LM3tP8VLYm4JNuh1ph4p6gG1VtFKrpjfFJX2gz\r\nA0ua+IUbCEXTPBlNGdAoMsjgZOZF3RsTAVWMFYkOsouhieKJ+eZ7Ww1euk1e\r\nDlZu6ULzUrQx1zK72tUBKukCGNsUHxwO5YMr3NzwPMZCnNiXcPQM+g9/htGL\r\nzu+ZklsoGBEq7xHm+N3EF8NP1j8y6xOCAVYCBThyPmxtwFy8lDRyyx+5xVbO\r\n/Vr5AAH6D2Twww0tDqej67BhLsC/IcUvXO9t0FrdMoPt2jzkYRD3L9hei/5g\r\nJZ160GNH/eWfhTHG98Db3lhZPMrBnwaYCRtdY8EHCYKKUAi0nnxFLj+Cmkyl\r\n/+mwWjHGw5ZM6qyZjG6XbV4IGms04d5OCXpNxd12mJ0ExchtGT4ez5nZW3bh\r\nLeU3HcEtHGuLO0DFoj9USpH/Js7mj75MtzE=\r\n=WiIB\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-connection-manager_0.9.0_1678322753790_0.7517588583238306"},"_hasShrinkwrap":false},"0.9.1-next.9":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-next.9","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-next.9+fc228a2","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-next.9","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-OMrX5WRU3CUzD/ePoqqZHQvfHXCQwGuRrPyqmyL5er8xu7nt2Bz64uTJWkoGWxGNCttVen/jGOcM7KKWAFGqGA==","shasum":"e582af4775f7ed6f93dd19d7d952af7d05f79abe","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-next.9.tgz","fileCount":29,"unpackedSize":61411,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICROUFCK3ctlqRfIruG9uGGldRl6iSZWY7JrR1tW6ooGAiEApcxn5Hx5v4DUE+4pUOkqD5DPhLzmHZmsv2W+FbN74AI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCn6TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq27xAAmMfZbtUdf46+D96vFY317gCLW68cpSEJAYTLJDaoBTQH8hXo\r\nzQY+vUBkR7U/nyZGZeLp19mxqDwj7TnB/+NepqOKI6Xl8UWp7GOHy84vbVU/\r\nhbaoJoyXNs2MwjMOi8PC9Na7t+T3A62yTd/Goy9t4XWTYA8+KYhWc27C/HcT\r\nCBvCE2YwdAarZ5Kv/r/D/ATmCf9f0W408VDiA0HS2tkDj36yj0IGaqetzSm6\r\n221xVnP7Ty9l/7ezyok/cCIf7LRbHBMPyvOtWZNKNdQyAwKQB9LW2DyyP+6u\r\nWbcTwK8cODMTHNRL13c9QajpswnsBzdX/ZF7pQM1zP8mMGnvKpbKREMbhyGH\r\nSsnr7Y5SKTqYFmlHYe0s+6sjr9Iz9TkArsFekCArcQw/mS+IKgYULpvPOilg\r\n19u8w9sGqYjASArw17d5MANy7igayuiW8L+T30b6jiSpoKsNbqp8Czbjg5eV\r\npVhmX6uDE7qBg4UHwynZHbWebJNlzP8dtSNUbrnDo4t9r8NovpF3Sj3dyy48\r\n0yMnGd9NmYb28FZ6JvE7qxPHewRLhXPYzbbq1r0ThAMlBBJM0iRoR+A2BbDc\r\nWiGAEqkNAVxLup/k5uaSU+3fCxAg7hmQ3qdPoW0bfRtN03hlQ10oYerk6CMm\r\nFzgUHQ30WzQIPqrIlsxqawOxDg8qI+IOjC4=\r\n=GXCk\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-connection-manager_0.9.1-next.9_1678409363155_0.43189863920232274"},"_hasShrinkwrap":false},"0.9.1-unstable.17":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-unstable.17","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-unstable.17+9f929cb","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-unstable.17","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Cjq8JdQzLJs1HRcsOfnQMPjPSsOEb2XnwSFDk+XZ+zPebs+ZOJVkOEHPcYTx+gCcXhsaM6wOmnFN8MHLVqQ15w==","shasum":"b54fc8000f4d8470038e190290a6098a3135b5f5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-unstable.17.tgz","fileCount":29,"unpackedSize":61421,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAI0nC5GmieR+25JY3VUj8tw1Uhik35z99FO7DtIe1keAiEA0s/xxj/swjAtDvM1L7+7ifyf9S7gQBBb/vfNc81ncSo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCwX/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWzg/9ER5CndbRFE+Ly51YMPr9GsgpUlEg1+yHdqSrlLg7FENWXnQF\r\nZ2oXx5FyLiXfQUQL9JxRt7t/dOVVe07pI6V8JCkQtnA10fnwkyiuYQV+WNuO\r\nrm6uzof2mjZalW+DiJJUimrk+eyhv8wSclOLAfF/7AOHd95VErjFAFy5NsZ6\r\nhYWeUjcqGBtCVFb+3tWkok6R4VNhGfBfqNPIXPY/gA34YRm4Lil53vDI656A\r\nQUwDUOv2VQCz9wBeNcbZvLrSqUOpHJveB0AAmPsckgUfaIcFB4vGdIeHxZpq\r\nyBvoya7o+kwSmrJCGxb7bcGi8io8Kwk/ExBPQI2bxFaUUCbqtJptg3zFO2OC\r\n6Xbg5NMjR874hSq+OvzPKcUoLqa2EJNa83sjHBNMGK5pQ/vmxt61oXguxmvX\r\nRXU0uzQRhIl25b6fW2R+o1s6wRWGnv8rkUkqSvejLOsXAcHcrg/BgN/SG/AW\r\n/7qY0+seoAMQlTBxM4UOsGolcQxa+rfCyqy4RSiYyf81oHTak8yGECsFl9Bk\r\n4VUm4jDj3KIygUdbZ5Vm+duy0AEFq1cssqbX59Mut8kcKv3ou2k9LAZagRtG\r\n1KapNbodZTgTJByGUPTlsy8rKb+SIQ3boTRXk8wXk5UpTTHyGKozL9kQHGbS\r\nfpuQUtqcc2nozJR/2X7BNDqP7SF8MbqIer4=\r\n=uc2A\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-connection-manager_0.9.1-unstable.17_1678444031459_0.670305498488323"},"_hasShrinkwrap":false},"0.9.1-next.10":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-next.10","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-next.10+84c08f1","cross-fetch":"^3.1.5","typeorm":"^0.3.10"},"devDependencies":{"@veramo/cli":"4.2.0","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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-next.10","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-P5+JdS86Hhq3rWAwsxqqEicsr6SJvI9D0wlvChkKHkI+k5XQuD1pEffD/as6oMTNZVXfDB6s3JRYNJ2G3+pDLw==","shasum":"a2453ac522f4528d5c8f6f56c37c579b2ac06ae0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-next.10.tgz","fileCount":29,"unpackedSize":61413,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC57oLS97u+/kQRu8qAerbULjADzowQDpQiBFkn6iOouwIhALtNDe9kNwDTPDnHz2rN19f+pcF6WOi9zkHE2ob47jrR"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC8W0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoErA/5AechlLEtSAtf0RlYJdOuoXMoOdHj8rAvSDyH9gPW6/wiQyDm\r\nsh4PrzUZ2ccV6yljUztygywbJWIELXz/ZPq+mLhhJOE7fsBM00ytuX4DQZV5\r\nLUk/toixu19LkxaLC6Axf9r7e2bk02GjQ+JTgcUDD6kkZ3k+v3MaiK3YWyH1\r\n1IPfieTC5doxGiCRP6fULh/hfT17vqTDu3SVW3q9vkjJK6dLBKYzT9CP/ErH\r\nnN7gG/wJwBxfcDA7Ke58Lrx92hr4BoUuyRBcAMWc5mOGhBs4mLFsS99gYozh\r\nRj01EHSAKkhBKBmj56IXn/eb+Jkomxw+jEgu38NRz/FHmSuH45JAtTArlqpy\r\n8hmeN148ojq5owqBZKNl64s9P6L7DDIHERKL7+QoDVQiax8FCif/JJ9AKBQb\r\nM98eagJ+YUxBnUuqnsaxUW+spurBTtQhNWxR3AzgXBh8oTi6FnMqRTKpslHv\r\nHF6F+jr9rwCOQsyaAwvWw5+QrRT2518z660c34+6iVKweN+YUwlGZxaO2xMI\r\nw0C6aZFXriz/V8dqmtICXjzWV2QNw0PN6Ne5Y+4wr+smvLg2Jb8nOSu22lOl\r\n9vVzUM+5F6OlwaPL/PnrBc6LAqBx5zM2lK1nC7R5/B5YmzCu/tN8Z5yAmDVj\r\ngHl7q0KSKZh4qpfUxN3ZBC4GkqwIewI0FjU=\r\n=4ocn\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-connection-manager_0.9.1-next.10_1678493108054_0.20061995226891205"},"_hasShrinkwrap":false},"0.9.1-next.11":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-next.11","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-next.11+0cc08b6","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-next.11","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-TE4aOLELYeTQPMwjpP4z9AXE1uFMJnQb0O0nz5dLuPNRtui4AwnljLRJhtUp+Y3UV0IiyDdUTlX80kfSc8SqrQ==","shasum":"a9d11a9175f4d3d63acf8e2f24a273af435d2d92","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-next.11.tgz","fileCount":29,"unpackedSize":61385,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjh3sFKCHt9Cjx8L8L3k29fYXHNEXvnVBV+vGUmwhG8AIgLtiwRsP/1SSml21/Ku+pJeQKj6CnoejKO4N5rqc6TJI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC8xYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqGsw/+J74OCzYcR8ZyMdtKa83Y2dQc0w/KOQKI19+M41Dgg19lPvZm\r\nT86V7I2ElKi38ckGlJr4gEkzXZyojHk8vhVncNvXX9TIi4D9W+ES7wz1B3xp\r\nJJeUT2SNXoMCp+ObX3ydmszmpK9tlXfYyrSRpDP3nED4LOLQWOUWhcvDyCWS\r\nyMvBqKA26boycDyRaRKIesTKVjYMoSxp6C2LdDZCXj3K1D1sotT8WOYxb7v+\r\nP6I+qHDnPYqowshF/eYr9Gcd+SUgY+hvaTNk+6wMPr1kXTAfpj7CDil0KiTQ\r\n2F/Evr/mjXTRgNDzAucapX8oi6W+sjkOAKl2CLVpCjKEg8WDRpCvY5LvYdZo\r\nMIi3C2w4xXIeTs4sgi7iXTgNZIbxx5ysE+esDZQaX0HFFj0p0yrYYvINrVrf\r\nJeAng5IXyXY1ZencwGW/uRLj7pST1vFLc1xbla24UefeHvSqzc6umU0L2r9E\r\nO7DCcndPavT7Jy3ijICP3CFGf3igeFXVIf7OG2pOfAvqDiIMxBk1Z4kzG/MP\r\nYsot0tMfvKsZPYlGh3yxefOw8V6xPpAMVijxYEnAVorPVPRLQdnQbPbIp/LK\r\nN4ZdYkdnyekVIuGz33+JV40S6cvBbKHWICdOd1zZPx0H5gDoIRaytEioHLt9\r\nU5/TLcn6TJy8+EohmJFBY6NeCK0WseuVLQA=\r\n=PjQA\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-connection-manager_0.9.1-next.11_1678494808639_0.7175432607630277"},"_hasShrinkwrap":false},"0.9.1-next.12":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-next.12","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-next.12+aca017b","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-next.12","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-oGhlCw7wxKP7o5AV4FyK/IJJHMgE5s0vwK2RnFprJhl0kdOsM50/XLOh/DZAFMyCIFQeGTJDvGJWm+3s/3DPNw==","shasum":"7f4dce20b9653c4236b8a03d0cfc98ed757e4c0a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-next.12.tgz","fileCount":29,"unpackedSize":61385,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICxsQ2cYD83RLHTth4s2SaIYTAMAANv2tOlTyZZFd8giAiA0qVckaAnwyNUGODhFQXXoctjVSbkO7Ly9Qry/Ytpc/A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC9UPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmomERAAkWiClaofM+TPOJ+GzNf8r8bKlHufbuafN25wc0LcbN0XeR3K\r\nPHmFkM7eTxfC2Qxbg33YaanonpaCz8XRGAXQr5hWileoH5wmUGQw41OgSMdu\r\n23BBd0mglcOIoZRbG15G06fHOH7VPbWcyoQ+rExGI/nEQTcq7Eg5Uo87qkvB\r\neVoVlrrT757femvIi1M7l5YwMjQ8TrIwkEZ+iRGOq5jLBJX32QAWsjCG4QK+\r\nJgVMcUD5S6jf3MFhspYhU2H5sPQcvIboi8VmdBDnTck0X5cI17/gec8W+5MB\r\nir+GiAEcOq03RNbulpW9NvKeUadjMTJQJQDwLCFYEFn1pNeZBSQkfmcxwidt\r\nROicqQvDLq2z+Q52JOMNBMSAHOp1kajzPhN9qvTY/6TQ0IEAa5nvmvJyb6mO\r\nBixRdxXFwxnkuYgw3LHVB0RkUhFD2aaX79gcjh8hKoUQpwt/9LTTqCEB1dDZ\r\nQr1MeN0YLqYBE+cGcPyX+QMBBRepd7yBRBo+2XpCC7Q+fOftvc2y4fC2j29j\r\n+JJvOIWARWegeg3N4k2fNyyztkfxD/ZLdqjyaJIbSyL4/YbFaHN7ipg1Tg8B\r\nVkTplxwkAi3Je1pw48Mpg88Vm4oF5ZWH0MmCxT9f56BoLPOwUzGlOJuJEPTH\r\nhYEE5O3A4UGegK4xlHpAs/xLhe2zQHIUAdw=\r\n=imdj\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-connection-manager_0.9.1-next.12_1678497038878_0.6984733139297357"},"_hasShrinkwrap":false},"0.9.1-next.13":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-next.13","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-next.13+e7dbf55","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-next.13","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-tfE9yCfFnm+xSn6DIgOZ/D0X0iQDeypmFP7KTHT7l8zZ4doZw3dt7tc8jWbDsy3XMWuTf9dEqzmDhVcTa3RNTA==","shasum":"eca965b0775996d7321379cbd0760d12d6654a9a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-next.13.tgz","fileCount":29,"unpackedSize":61385,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgetB6byJ3jJccNgPf7ldyEyTyiISsZizonoDFXaVSLAIgG9hgrwyRzxa35VrEGXDyK6axM/dS9iJwYbkKy+ZOGLk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkC/r9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/7xAAlznBSOLqboeTa90NY7qHQF3igNkQWCm8iWejnpsFZaODMiLY\r\nNTGEYsSJG8Zi/OlpUspmY1w3Ryw2tAqBejt2QdZsHiOkMhnxm4WZT5eZbxjb\r\n9DxFFesYOc5HyQpeMCN9/zyuiF8mjWVALhDOsAB4zCV6GP3XMestIVMKAd/z\r\nOzz9QIo0Oi/d8jtfd+8xnGdzFYDb0uoGUNE0XJ0jf9GPnKu+vXGL+TenNzmL\r\nOkTJ34K34UiYDppGeHkKGsNaoxMNc0lChtucLGMGVhPODNO/UVQruUUKSkhe\r\nvtD78RlHDHjuEvQu2kpqFESKXpQ5VvyhWbtCjLR8+TG2gKv+7K9nKdKHxIft\r\nQIU5CgZIhd4aWphjehLYRYgi1amTBdU3mg1qVEJvTR2Fxj/GMHmIWRH/+vRh\r\nu2rJfrZBFQUewD0jVn9qXd/v6XqEQKe1pu7Qb/vu9A+N6ssrzXZ9TzsstP/L\r\nK7CFYFp5DTJVtX0NNV2WyG+jRBeOEGPhPS4QGNDmrKqw4WbxjatADwH/M3IX\r\nkGTJ50g3ULv1EoKgTqis10KrnkL0RJSNg0+5ATZdEViVBItXOiiIS2QYmQPe\r\nqB/I35ZKVz0ip3iuhkXZHevIpER/0kO5HHB8SNvK2PkbVDyfIwxRdyrx4qnA\r\ntcPcWs2VnXfuaalcqtoF7pjmGhXi6oU/4BA=\r\n=/MPk\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-connection-manager_0.9.1-next.13_1678506749632_0.4329184657196288"},"_hasShrinkwrap":false},"0.9.1-next.15":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-next.15","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-next.15+d2b89c2","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-next.15","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-lKVlrub1LiqfA+hbekMSQmJ0Bfjf1v4w9ncoo9IfSLisEYpdF3U94bp6ykXhtoy5jS/L/v55xvARgVnw4O1pgQ==","shasum":"5f3aafe91f480edf33dbb5f365e80787a1f3ab1d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-next.15.tgz","fileCount":29,"unpackedSize":61385,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcx0YbkQnSxrI+PtjSyVrupL3SV4sE/2rg6Nbpe+bSUQIhAMtvzt8dmVJbZdHPyR2w/VwG9CrxdN68q7MDyZ9bG4E4"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDRLsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoKQg//dMrA43nJvJK9QAxIIV4aBprYeN7++gUthD32tfyjxgGAkDIY\r\nDDWfGh7VTsMqO/EuuVsvCsGUlnccYpanfxBwSlsBEo64tIQ+3fAxwbZ6SX8b\r\nG+5dLKt562izunP5RGlRes9GcnlTmK3+kHr1UiLqPIE2JDKh3g9nwU3ZW6Q6\r\nwyes8LMTgtS2/UVlQj8d2h8KhDiCN6UN2h8Sw9iUK0bJbbWVt9/K3uD1i+68\r\nGX0LwCucLUs6SBVuav66RUrAPI60IM/dp0VPgqnmY1dg5eLss+oBCk9i3uVm\r\nladWbATncmy5fmPwpjm5suFbnXus23NozD5YrZonFR/JqkTrSZakqKvyZOKR\r\nshel2cYmnXS7lQpqQk3grFaF3pc3JV6en/Yw6N3Y0yzs2+bkEOoQU+gqVtvy\r\nJ8lOW4VeFrAw4vKysD/jnQOQ2NDrxJc0i35whO0gCLtQxZVUd/FpePhDti+U\r\nvny2coAs09iBir/ucq5pSSUHqG0QCWD0ermaN063nzQCd9Tcn9x5nhhrVj8R\r\nklEGgUm7/PtZ3Dw74V4LEM2xK59IQdIhTz75DhKlRBvmfkPk6D+ufmEJVLnI\r\n/IObVWDm/qTW4mSB9ve2KPyHkfhlxat8khaVUGVs7t5ZegDGdbdWxJOOa6Pl\r\n86QG1K3foNTCDdrzH8I6XTW/TuoL+tJdHNI=\r\n=fP5V\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-connection-manager_0.9.1-next.15_1678578411918_0.761930764239424"},"_hasShrinkwrap":false},"0.9.1-next.16":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-next.16","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-next.16+1907345","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-next.16","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Gz0RIUbkcCIeOJB95u2nnBDXmcbe7SvIv5DoQJ53D1v4QvD31dBRihK2ohDyU3QhgWP0Fbb+/dujend0Rg0h4w==","shasum":"6397996425b5176e1fc1e92a9c61aeea14ee9e0a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-next.16.tgz","fileCount":29,"unpackedSize":61385,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtRclrQZFvKs8ILgNx7XNpHuwk2POtszToG65AqWPVGwIgf6VsSd4xQYLrY8u299cyoGM/tEXr5Ar8G1W05MekzxA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDWHPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMsQ/5AJf2nCsYLz4knQ+mFjQL9J+1YTGe/6dpAKqF2dt/9Owo+JoW\r\n/5fE0MVGVCVcYKP0E4LwdJ1vI8SJXTg2Jw0kYaeAf5Ml1DJUoRDyuZbJeUX4\r\ntRR2tpi/nbfhg3irZm2hx9SyVfGw/ZIYaRfcUd5iOHDvw3yztUiYMMqwQA5f\r\n/txGRy7wk6Ypi2MpyGdbEwLtRdtOKKgS7wMyG94CnwsBnrBYuX7YivWqESME\r\nzR9sB7fVedTCIdnVLVw5lkj4pn+8oJe2Zlm6HiJ8vJvGYUdcez5CNSdCPPqk\r\namnYFqskO92ccA22u04n7qun7AUq4bdjRqtK5bai1oBkwm6jqibmArw8VCj9\r\nDpQoaEbTLsKhXlf0v/j/B5PbuqYS8OuA8ptXzxZQIgZEeBN+IKJJYUWJ4KYm\r\n8nW3eonESJgn4fUSqd0SwFqATlaV7RxUeuIEW88oYck0MG2UBuGWv+5zdF/v\r\nK5t5ff1N7lwqDUaYcHq3vkwEpnu7uVz5eoPxgBm2vb4mmdDdwKxk+0RmofU0\r\nix5MNFwrpBZSRtilxSdlnI4+b5wn8w60iW+zmArkV3e6a6YzGLSQF7PEpJoB\r\n+o7vw806d3Rjryf4zszVu8vnDf41+IlPDY0ouDxpXaIYxa2t3IRGi7YGPOK2\r\nHCv1qPg/TtVH4gu+VSo0wptaFhNaSFBdCoI=\r\n=4Vnj\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-connection-manager_0.9.1-next.16_1678598607347_0.36156586131991086"},"_hasShrinkwrap":false},"0.9.1-next.17":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-next.17","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-next.17+63e059b","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-next.17","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-d1ozWOemo/F9uebP8k1jw1JxGabnGZuARYolt+Y0GzdqQfNpmjXAcQMyw2YRLADhmcYlpf54DI93vpoQ4Tl0uQ==","shasum":"d8c29e1ba89ab472eed68e46dac41ef868a4fac3","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-next.17.tgz","fileCount":29,"unpackedSize":61385,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFSIkNm9QoSnGCy26bn5+chZHIlwcDG3S0oadOhbvs83AiEAsIEJhHPujTs15FXz5CVWpPBZoZansXAyBFalrisxU6U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkDWnfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3+w//QxR/Qw71sOZUXb7t1dXdiBcj2rFq4rSdQOb/KvLbNSDHxRAp\r\nIhYmECJfu9tG5/B3gzXom0NBj2bbwqMq8sqenyfi58SvPsJOMMrDXmvh9OTm\r\n4gSqtBALs3BVfuK8zqxHs7m8epVWV3zw07QrUSc7a3qRjTFy7csnZ6hkYq8U\r\nAzB//5WG20c/lfU7UitsmCBJ69A8Kpcguw9bLp1YgIEIJPO8eDOGEkedI86O\r\n1CcD8NvsEQYpVJ9st55rvxvChV/CbS7n6hcBfSHM9uraB9rQtgapcjbR1CW6\r\nYJU87Lth4QJCri/sMcxuul0xH5L0kTJ+3TxwOx1eoxx6cFP1DaF0PZO9k/gT\r\npj5AYMeCoPDOY6kWUX8N1/4f4C/aS5wkeLmzqUG1uGap6n7Mrgb09AQ6PIFa\r\ny1HXtplxdhd06uyitlFJWpx22/E15qcrQLTWe/IYOKcXDf0CqRY1JvGMuY++\r\n4TpUigbymeYgwvY5XFeG8hFDMn8aFFQZ/mVPb0fLcDnLLTYqLR6WrB4Acyfw\r\nP9/INA79b2VqBSKUmQVXeC4+rXoCWIwl9kIWrTY7WWOmdunBE/Z9+K3uYGpR\r\n7nN9Pslth8Slr0wwvVhex1l2R1entq+bBXdSArSkPmbKeHGeqALm0gM6/kE6\r\nkiTDc7VP+drAzTRf+QXWCkq9GY9lxMRCnsY=\r\n=91HO\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-connection-manager_0.9.1-next.17_1678600671635_0.8037885205591759"},"_hasShrinkwrap":false},"0.9.1-unstable.27":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-unstable.27","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-unstable.27+f588994","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\r\n\r\n## Supported connection types\r\n\r\nFor now the following connection types are supported:\r\n\r\n- OpenID\r\n- DID AUTH SIOP\r\n\r\n## Available functions\r\n\r\n- cmGetParty\r\n- cmGetParties\r\n- cmAddParty\r\n- cmUpdateParty\r\n- cmRemoveParty\r\n- cmGetConnection\r\n- cmGetConnections\r\n- cmAddConnection\r\n- cmUpdateConnection\r\n- cmRemoveConnection\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { migrations, Entities } from '@veramo/data-store'\r\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\r\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\r\n\r\nconst dbConnection = createConnection({\r\n  type: 'react-native',\r\n  database: 'app.sqlite',\r\n  location: 'default',\r\n  logging: false,\r\n  synchronize: false,\r\n  migrationsRun: true,\r\n  migrations: [...DataStoreMigrations, ...migrations],\r\n  entities: [...DataStoreConnectionEntities, ...Entities],\r\n})\r\n\r\nconst agent = createAgent<IConnectionManager>({\r\n  plugins: [\r\n    new ConnectionManager({\r\n      store: new TestConnectionStore(dbConnection),\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Get a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst result = await agent.cmGetConnection({\r\n  partyId,\r\n})\r\n```\r\n\r\n### Get parties:\r\n\r\n```typescript\r\nconst result = await agent.cmGetParties()\r\n```\r\n\r\n### Add a party:\r\n\r\n```typescript\r\nconst result = await agent.cmAddParty({ name: 'Party' })\r\n```\r\n\r\n### Update a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst party = await agent\r\n  .cmGetConnection({\r\n    partyId,\r\n  })\r\n  .then((party) => {\r\n    return { ...party, name: 'new_name' }\r\n  })\r\n\r\nconst result = await agent.cmUpdateParty({ party })\r\n```\r\n\r\n### Remove a party:\r\n\r\n```typescript\r\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\r\nconst result = await agent.cmRemoveParty({ partyId })\r\n```\r\n\r\n### Get a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent.cmGetConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n### Get connections:\r\n\r\n```typescript\r\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\r\nconst result = await agent.cmGetConnections({ partyId })\r\n```\r\n\r\n### Add a connection:\r\n\r\n```typescript\r\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\r\nconst connection: {\r\n  type: ConnectionTypeEnum.OPENID\r\n  identifier: {\r\n    type: ConnectionIdentifierEnum.URL\r\n    correlationId: 'https://example.com'\r\n  }\r\n  config: {\r\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\r\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\r\n    scopes: ['auth']\r\n    issuer: 'https://example.com/app-test'\r\n    redirectUrl: 'app:/callback'\r\n    dangerouslyAllowInsecureHttpRequests: true\r\n    clientAuthMethod: 'post'\r\n  }\r\n  metadata: [\r\n    {\r\n      label: 'Authorization URL'\r\n      value: 'https://example.com'\r\n    },\r\n    {\r\n      label: 'Scope'\r\n      value: 'Authorization'\r\n    }\r\n  ]\r\n}\r\nconst result = await agent.cmAddConnection({\r\n  partyId,\r\n  connection,\r\n})\r\n```\r\n\r\n### Update a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent\r\n  .cmGetConnection({\r\n    connectionId,\r\n  })\r\n  .then((connection) => {\r\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\r\n  })\r\nconst connection = await agent.cmUpdateConnection({ connection })\r\n```\r\n\r\n### Remove a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nawait agent.cmRemoveConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript) ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-unstable.27","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-wwsHtfkDbSuXc+qeMLrxrNeCpmXl+6zZd6F1PaXbaHyQYxp4gWc3ZzkrPKO9NkJaEUBRKY7DY9kewwTK4e85iw==","shasum":"ab4b717be98215ef2cb820acdfba9de5a89d67c5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-unstable.27.tgz","fileCount":29,"unpackedSize":61767,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGvlK30mU/SeAADx91wOqUBvLIaGKz6a6GVRsIi9KNgYAiEAokjW5+W9K0B0PtCBK1n56IVRpFZhbPUfhlb6sWQABME="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEc9tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobMw//eFhtxB6uSJcRi1l9ELdKqaihb3UOGp93oPXOdRdAmCsPBK0z\r\nVF7WfpZ/zEVDAtH67fPSea6ul5nIYImxJh9ST+FH9hxkrG9AoXFDPenkkYva\r\n+4W9LZ70ZV3QIJGizMRpDBfR3V07R9r00qbABZbhXSbLMpNKvIXyImIObOHp\r\nOCWBE1aHEuq8FFe/nZZ1ru0EMlnns0164En13KoChv8ZmHTZIUDi+1zjBh57\r\n2W7pGSwOa491zxcWZbHKEq2ICd62KmK54r9a2+xgverhpxqQ1BRvMq9coCzQ\r\niAo/qV5ptfhVPcdJI1/CBTdHb/gurEUscVw5swnv+fA3eHvg981mGHRkRbCw\r\n/tk7nALxpWOvvNdUOTFOPF6oZfBRji+vog6NO8UfFlAfHEqLb5vk1dQGoKc7\r\n2Xc5/gDGke3hRqlHf/CNRhHydHhgE2IWIylC3A5AMyI2h86vCqmVb63XJuWW\r\npj1sUoQfZWFzTi4L9vLHtOgbOaAK9coLf37g2Mp40lOejE/edMhPLWk3dX/6\r\n09k2ymlCy5joIfu9f6oHk6Lf3Zu3eAfRLJExUZOWu92rIEn9tbKtkHu0dUHE\r\ncLE92GWuzFf6mhmudr7l2/1DZ5ku5IOeYPsChxPX3C62pBXTLZvhKbLIFw7V\r\namDuz3wInCV7SihqQJ/+op6SviyVNYlJAjc=\r\n=vASb\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-connection-manager_0.9.1-unstable.27_1678888813079_0.7664450011998187"},"_hasShrinkwrap":false},"0.9.1-unstable.28":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-unstable.28","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-unstable.28+9ec78ec","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-unstable.28","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-08khbU2DlmgxeIZD5A/nATaUPZo8V+lmg+xGLMGLHG+zkuzEryl7NxsRg7Hs3U6Dj3IgYdmjIsliw3do0xLA3g==","shasum":"ca88c895503c86a1c2d247b196c4332982f63d4f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-unstable.28.tgz","fileCount":29,"unpackedSize":61393,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHf16jVp3WHmwJuZDAZk0FbviOqTrQfIl9FlwUkC5j2TAiEAjqgrVK2dGv+ucNKCcn37PAnXzxwq5nvR5rULYIjgaTk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEdVhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqw0hAAi4Y39kzAbHaEPiDMR1C/+7ie+Fkxsji5/Ae1ABY64sX1fRyy\r\ntKooiYMAICofkE3Q3G0GTSHyYO2Df13d3oX9VpIJLo2G7RmFcRf9y03Pbx/q\r\ne3lKtAnDsPiThRzxOg/lykic6jziKjY6fY5C+HUtRUZhrgLP6XTptto5j0GJ\r\nJMSR+rmU/YA9P/ClPrKY2KpTlsHCRtQnEsnkX3uqRQzoSK4atpH9YXsSVhWc\r\nnbcQOBUfDMNviEeAnJBaLVLMcCvc/+vva04y7a8V6EBUcRKOt/D1MIrguxMS\r\nhmgO1RqpsUA9PiZTpkTM2x3CFt9EiU2phBLKNZhRkpDfQwIBA6Lr6TFcH97W\r\nOZzMCLlTQnQ1W77YtrKbf6Ig3Vi+u2jr4AfRuG2UesD6nnAX2uKovc3NGDLg\r\nM9V7dbjBAkSMuuQi/61pdm64wfDs35gioT0ah/mBkJVHw2TBdawMjs8fQM73\r\nMU/F2SCg3MGopQNKSSigUd23WY3e1xRZrvgDWxT6q9LW08YDJEkIF4PqA02/\r\ndJpQDnqTo5XNF5RgiuTQyNahsq3MSEKOD2k08Lv8DYEi+T1ddrjN3wzeDRyV\r\n1Y9ljBunNfgJxiJ2tE/cLZfYP+TZ51P69RH+hWcHYrxExFxNAQCZfVuoaAEe\r\n1Qi03hVGN9VxgdUNTIP9T4zEm1rUq6K3QD0=\r\n=mE8Y\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-connection-manager_0.9.1-unstable.28_1678890337715_0.9383067580021411"},"_hasShrinkwrap":false},"0.9.1-unstable.30":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-unstable.30","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-unstable.30+f9e10f1","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\r\n\r\n## Supported connection types\r\n\r\nFor now the following connection types are supported:\r\n\r\n- OpenID\r\n- DID AUTH SIOP\r\n\r\n## Available functions\r\n\r\n- cmGetParty\r\n- cmGetParties\r\n- cmAddParty\r\n- cmUpdateParty\r\n- cmRemoveParty\r\n- cmGetConnection\r\n- cmGetConnections\r\n- cmAddConnection\r\n- cmUpdateConnection\r\n- cmRemoveConnection\r\n\r\n## Usage\r\n\r\n### Adding the plugin to an agent:\r\n\r\n```typescript\r\nimport { migrations, Entities } from '@veramo/data-store'\r\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\r\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\r\n\r\nconst dbConnection = createConnection({\r\n  type: 'react-native',\r\n  database: 'app.sqlite',\r\n  location: 'default',\r\n  logging: false,\r\n  synchronize: false,\r\n  migrationsRun: true,\r\n  migrations: [...DataStoreMigrations, ...migrations],\r\n  entities: [...DataStoreConnectionEntities, ...Entities],\r\n})\r\n\r\nconst agent = createAgent<IConnectionManager>({\r\n  plugins: [\r\n    new ConnectionManager({\r\n      store: new TestConnectionStore(dbConnection),\r\n    }),\r\n  ],\r\n})\r\n```\r\n\r\n### Get a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst result = await agent.cmGetConnection({\r\n  partyId,\r\n})\r\n```\r\n\r\n### Get parties:\r\n\r\n```typescript\r\nconst result = await agent.cmGetParties()\r\n```\r\n\r\n### Add a party:\r\n\r\n```typescript\r\nconst result = await agent.cmAddParty({ name: 'Party' })\r\n```\r\n\r\n### Update a party:\r\n\r\n```typescript\r\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\r\nconst party = await agent\r\n  .cmGetConnection({\r\n    partyId,\r\n  })\r\n  .then((party) => {\r\n    return { ...party, name: 'new_name' }\r\n  })\r\n\r\nconst result = await agent.cmUpdateParty({ party })\r\n```\r\n\r\n### Remove a party:\r\n\r\n```typescript\r\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\r\nconst result = await agent.cmRemoveParty({ partyId })\r\n```\r\n\r\n### Get a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent.cmGetConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n### Get connections:\r\n\r\n```typescript\r\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\r\nconst result = await agent.cmGetConnections({ partyId })\r\n```\r\n\r\n### Add a connection:\r\n\r\n```typescript\r\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\r\nconst connection: {\r\n  type: ConnectionTypeEnum.OPENID\r\n  identifier: {\r\n    type: ConnectionIdentifierEnum.URL\r\n    correlationId: 'https://example.com'\r\n  }\r\n  config: {\r\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\r\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\r\n    scopes: ['auth']\r\n    issuer: 'https://example.com/app-test'\r\n    redirectUrl: 'app:/callback'\r\n    dangerouslyAllowInsecureHttpRequests: true\r\n    clientAuthMethod: 'post'\r\n  }\r\n  metadata: [\r\n    {\r\n      label: 'Authorization URL'\r\n      value: 'https://example.com'\r\n    },\r\n    {\r\n      label: 'Scope'\r\n      value: 'Authorization'\r\n    }\r\n  ]\r\n}\r\nconst result = await agent.cmAddConnection({\r\n  partyId,\r\n  connection,\r\n})\r\n```\r\n\r\n### Update a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nconst result = await agent\r\n  .cmGetConnection({\r\n    connectionId,\r\n  })\r\n  .then((connection) => {\r\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\r\n  })\r\nconst connection = await agent.cmUpdateConnection({ connection })\r\n```\r\n\r\n### Remove a connection:\r\n\r\n```typescript\r\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\r\nawait agent.cmRemoveConnection({\r\n  connectionId,\r\n})\r\n```\r\n\r\n## Installation\r\n\r\n```shell\r\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript) ","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-unstable.30","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-VwC4rPaNv0qkYiplrpZ15BOKKvO1s66Oh3jx7bIOTlFPf/YFg24gWC7LffeRG6KUw/4zCDEMNBSElrQBamESYg==","shasum":"0687f217e130d1cd3b4ad19b5cddc8924b691d12","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-unstable.30.tgz","fileCount":29,"unpackedSize":62039,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4mFSDVgl4N+w/PpIkh49HluCYr3MrxfXMt0czceWDTwIgcTMC7qwcVQPEboYloNYd8YNGpEnJ00Su1lfxuCwm6kE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEd20ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmobqxAAoC8bEoouUFDJziSj8laIaXXbRjPemkf2jtyR1QyhIDMaiz1i\r\n7zraGNSGJRXTqDlu6iaiAs9snnSRe/vAoeLPMtezcYnF/f8abLsEKnExaeIO\r\n/cXG6zSEZwZ/q2LOtCwINQS2coBIFz+4GcbIga9qCtcPAgAo5ibw0/kaHU7p\r\ngM47i6pt3VJCF0LAiljkmiadz56vCdcKo7uzvWfOKqXuOHVmA1AtHaYAbuhP\r\nGrlOPZAHBBfPWDe6zEbec8WysveazBolEEqskgx5Tdr0dJvN3Cjzswq1XXgA\r\nClqB9ZCoRy9EBZcXXHj8LQe5dRpab7mduxZ8g9YgutGz3VP/aLV7F5EFe90s\r\nLGiZD219tejxtBunRNTBnykSvUJfxKGegxOX76iMz1DXhnaBlyY1/zhC3ufF\r\n/MvATcHJAHtS4JLMeWrn5iKZDoNx4T/zwfnV5+gtpnPgX4uCentA3piBMOL8\r\nsIjRU83F5j+YhBV6SZWIhm5jwDHerX5BptnpM0A/88NykXDMycsDlVDHyDep\r\n7SZaQr6yk7PYhDvgOJx16L/nmRFcLMhM53M1O5HpkiaL6cXmnf1Hxxq7BdMv\r\n18vFChw23McphxjhGcNQgp35UiF1IwS07wtFO3fqDWw/ZCA0/w+m/Kl1UcxA\r\nle4P2xqYQh/NV3HPUliiWQLEUwfn//Aha+U=\r\n=y4mB\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-connection-manager_0.9.1-unstable.30_1678892468150_0.2097825807668967"},"_hasShrinkwrap":false},"0.9.1-unstable.34":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-unstable.34","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-unstable.34+0a44ee7","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-unstable.34","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Cqmy8k6Bxr0nBTUaNjD/lituvikVzhwWC7oYrR0QPC9XfHcwhZPKL0tbE3/MDmPsKyO5w2fbZklD/mwdE+G8rg==","shasum":"4fc66b970af7fe66e3823050c19565541b2c778e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-unstable.34.tgz","fileCount":29,"unpackedSize":61416,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCORGR37Bk8biBh32QbmbtfoXE9M4asZz3d1tIViKshhgIhAPyOr8Jc+VL5nsEJvS2hvHf3OhZK9ty1UGsg2nPRHNyE"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEfMGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoachAAhsm/R2/ygOhJF5aYCDNVBHZQfQq1JbakMRrdG4opdGfTG5aR\r\nYMsXi7X3+ELaxaGhqajbABKBxHXZCNs1nxi+43oWgTC5ujDJxLO9SeWwRU7b\r\nkAvB+An0AFvQEw22JuR9FXpobBePyjiUYuW4/baLg1TnaIBdoZVpJ9ULm1Vf\r\n0U+y3T+eM0auaGs4gmA59IVDK6lX4S8lMsztAFXO8vBJ+mMmw1HFFSY8CQb/\r\nDdvgKyVizpmrudYVQa138ZtFI0SkoJt9rr6vWQoJjdlF1IUxDNubXskDBnxs\r\nUCf3xkD7GZExzb2vZIuJI0tucMFtDUDQ1vuMP4r8f30PxqR9I6L4KCZRHGEB\r\nX0SZVwOSjj86FFb1oj5RKw+IwY1Gaxlg8AHIAzUvB9MxVkBwkC/f0OubMdxN\r\nh7M5zRHpODUABTPjTW+Ve+LNnXXhA3dJQ7j5FpG0t/jkJoGiV4yw1jm6h0rS\r\nwSqPTVfwkI4lzk9wBY9ZPfRmMXg5KHug3Y0mDIT0ezk49/Y418EdVPMtSnar\r\nv9CMo/BO2zKpwKQuQz4h46zSXANMmEHubXd8y74bjgH/2yUqdlNZ3a9QvIEX\r\nJnynQ8sdUvcJ6dwehuswQ4sbsex8nQTk+s9jGTWkXNvMcpN9h5cSWK99jP7O\r\netLfPVgPMRekA17jcV9SEKHCkMdBc57JDG0=\r\n=DJ9O\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-connection-manager_0.9.1-unstable.34_1678897926388_0.34576216543927485"},"_hasShrinkwrap":false},"0.9.1-unstable.18":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-unstable.18","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-unstable.18+a4e1114","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-unstable.18","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-NygmcvsbvKWC1qMlvGnWE151NKFpu4o3ApWbhnwe2qyoGmrF2mC/CX38SEZVHX0OyjHrhnsj2SbBQ1aNdjxpFQ==","shasum":"0c1185bed9782d9e6056b2c75e6e7aca5ec43116","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-unstable.18.tgz","fileCount":29,"unpackedSize":61450,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCrK0LbIjb9uja0WWoWwreGG0IEI9iOSR7SRMswH8QkwIgHy/0xO7BZKX+qtGl9pnSr93pto40rlign2Hh6Jfa7Xg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEuu2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmofdw/8CtU0nvQOKSVWHas/iVR6Q18irunYwoM1gCuPcmrAbM1+2ri+\r\nOIl4M26W4Grl9MKPpOKKYUOLBBViH863DcYTmn0FZvLmxo6SJARm1eRmXVk2\r\nVDIXWdquYjgDZzD8C+ayIVXPxUKTPDsyF2mMfXBNewPFYXtJbAL4UAMjpx3R\r\ndOToMeq8IVxzM31nAkEwxQ89jH8TCIcf9YvI/bdhu6wUR1dlwK2Oa1ZemQ/V\r\nyOdLgzwk61JgbpM7/UB91y+jwAD66TzhelVzjYFMIoDagwO+W2MIiSWSl8Xe\r\nfvXL2z3/Pcrc/QFtZ097qNEe59PuqkP6y+fuRbo1O7FbKNqbDTA2YwmwH7Tu\r\nMVUcerUx5xLNThH+MSr4j6/XOidbEOpHbJRYHQ9aow4k3ZYh5MNywd1cbybs\r\n+rwF8QrDpBmnlKhAw127n1rhMDe6SdBCjM4DmRAOaDW4GC4cCFkX/4ED/eVq\r\nlcPGvAe0HWZTX/UjN40TJj1XqDiQFcQtKuRKGUPMnkwXBUO39ZqTzuIAtuGh\r\nrXEy1C++r0Z4quWjMeT95wxnV+Zv081rYwOQP2eeWqDKUEe46luZjjSbxmOr\r\n9+JCYYSMj0J170DlJDtAOOqs42dDxWzrN52PYJUS3CdiPVtiYJ/pXFX8inwp\r\n4a1kg1pSzqw8xNpj0EWD43jCrubvMgiAzVA=\r\n=bv4x\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-connection-manager_0.9.1-unstable.18_1678961590120_0.6843195344506601"},"_hasShrinkwrap":false},"0.9.1-unstable.19":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-unstable.19","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-unstable.19+728fc16","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-unstable.19","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-GzkquHWfpTwGn8li8UHcMxq0vu6iJztvXO0QjBg4KG6x2xvY1HxtHoUB5TGMU3O1pTYP6ZEkVZXOtZS/8MObFA==","shasum":"94c81d32ec4f4e798f62ed6878bcaf0bff3f2520","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-unstable.19.tgz","fileCount":29,"unpackedSize":61450,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbTpmKYowq1yw1onuvI+Hq7M+Q8evFRdUO41g1og7agAiEArhyYpoj4H1Ay5UIu/HSZ/ffjtVwEOj0z76qrwr0dDx8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEuz+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoDhBAAmuRYIYTPxK3kQIodHK2jZuJm2hrsdRnc/bmK3ARiw4QGc/SQ\r\n7y0pJIWvaSVhzqYL4wcAIBibXvu5BNiPoTStAtiJ9T8mkrd/vHi23GTO8Vke\r\n0TITCXWuiUoktejesmtBoS2Gj6XUHXsZWe2lOUcQScXlKqHCX5SG+GFPIUAZ\r\nMcLW9TvbNPVPWtg9qA92/nNdykYG2A48+kN+u3njdtCk09Ekv5/P2hveGFDG\r\nql2c/CutQ/FMJrPcsDcWIO1AR7Z6qVQacDWCqJC1sH1rZhVXeSDU9pk2ZYfF\r\nLvu6GhDtH2ofl/0b9q9QYqFNgLUza2fUHSjtHSXHgcfiVRFwSUREB4gJhkXR\r\nplWTAhc9BrjnO1eZaddyGT12672tu/0G1rGN4x1Y8dx6BRn4+i+oUoiV0dUd\r\ngCaIVo3usesro3LClWIIu1ALFoiPMk0FFtVCO49gabpy/Q044+V33YIHMgV+\r\nO534itbFCWM3wgQO1TswOWw6t4QExD+esdOMvot2IzWoLGhQ5mnMqEsl6+SN\r\nI/Mj88di+cO7R7jVbIVdNBAh3smk92p5juMk35r1P8CT4t0rgBKRpMSaR2O/\r\nZ9lB4PWAyi8V93S8HBm0U49vD5koIZDh8QBIyfTKEsCjazvqaPT6EwmMboqt\r\nd+qdGk0e5MknU8SGioNyljv0l34SgsKMXXs=\r\n=qV2f\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-connection-manager_0.9.1-unstable.19_1678961918732_0.5455010895523063"},"_hasShrinkwrap":false},"0.9.1-unstable.20":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-unstable.20","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-unstable.20+a9192f4","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-unstable.20","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-0hqQ1iKOsAqsWIAGxhEikbJWduBjqiaeOihzSklMMKuXY/BDt3XKZoPj5ofIYVNPZUz4+2OHcExQY4eY1fgMIw==","shasum":"c9b278044a02d506d65919140d7b70ce7323f5e9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-unstable.20.tgz","fileCount":29,"unpackedSize":61450,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGma3cowa2PcQTWHyVzSlxPExPRlfQaaT3HrGcAGT9R2AiBATHyFj4Xy2L7Le4wkJZUYxnLQGQB8tlz4ft45x7Kagw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEu1zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3BBAAguqPxybhjQooWWBzoiEXFqH+JXIuBr/IrcgtUTbVMElZ+mZR\r\nOA0pGfiUgUPMx0sGcoirNGV7Oc/y69wqB+xuFGNRk+Kg2YH8j0kExez/zGbR\r\ncJ7GC3nfc7rv+CQ9FETQeYadIqdLWIbVNyyCayd/Derpm38hsY18aF6FQlE0\r\nYtcjVayZ6tvieuofEi50vZ43cldSkIw6OORPMWWfjLRwbxWMVJeDUGOxorgm\r\n223CYF50QPMdbmJQcOrA5VMqWxbLKuMEohyVXJJhivuBxqWauylu6InD7+Td\r\n82hLR+/aKWwgndtK8SnGNPGavcCZC8tDrbDBdsspWgMpw6OY83iQZaEWGCdo\r\nsQYMWpEOAVMOurl90KcYLLr0+hjiKve6gZJOWArPLabSiHMYAveuuWyoo2ir\r\nTloPfI0+0lknSQuQhkgNghgU0gk6deN/g6pPtzRZB61wt6OTd5FGA+l01nCI\r\nuaxKOyI53KhQNVow//NlugIh5pAzL4QaYfcglQZOY5vcuVDHzGPfrgAVaOJG\r\nywPaKjZdXP4DMcc0IFNgIlOy7bUrIglYUEenT3gcTuAXcjxMaVi/9w1bkjfB\r\n+EIwOiysnJQn6EMmAICxAokZLYmPTW8ie7E4ii+esQpa+EWYSs6O80X5HBn4\r\nbY56fSXz7+FHkwROy4z1gYqSyU3du7TVCos=\r\n=bMKY\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-connection-manager_0.9.1-unstable.20_1678962035187_0.9203688616330661"},"_hasShrinkwrap":false},"0.9.1-next.21":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-next.21","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-next.21+b824d21","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-next.21","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-z+2IbBxCMHeenK3m2CDMEPmtLNjya953EGPAWPzHdEWtau09/9ZV8T0UzxQXud5pFVk4H36XCZGLCnrRt/DqJA==","shasum":"d7d2a0adc0afe75e9dcb2dffb15623bcf202d68d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-next.21.tgz","fileCount":29,"unpackedSize":61442,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbgHe9n6MocSLxr0rU80E9MAWXqAqeIRiDAInh0acdHwIhANMLt0drEDNFzESRDPQm7M6U7+8cNQpIaVLUlm7blX8k"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFDBrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUpA//XKRst0JRuhQauCr0LYYuLkV9x5eJYRvrW55xN+xGKj7osO/N\r\n3MjGwse/jW46jg9D8gQ4PPBSBGad3BLlD22uHgLs6hySFdwH3v+hhRXwoJ3B\r\nzqHF+45OQIWWwMZw+p+KZR1tpDemAlRZxtS++CHLTIPAhuK88WSKK1bbOKrv\r\nlpRAzY7y177THzY4XhOMLIumKzb5rSlqySQ0F2iYabGQVRqUrPrKMZxhYQO6\r\nInOSJTeq43nqXoZERroOmNy66se/BXV7/B0coWJPE6oqYX3rNf78fk8jVSZu\r\nXKV0TyP6n55nWQO9tVKGYzsuEXg3RILOUXaBv9Mgmy/o2dBEGmwlk3HSSetA\r\nhsyiGNzhFc9yEtscEHNpE8j0dbt/3agNHxE21j3lnsIWS8fCPS9dUHEm/Q+n\r\nhXIPhGREDwrP7hzvL5wUgreuT5rCp9WvfhHhe7MV7bWExH83cXh1M8iFdrPo\r\nfMImDcSZrMRi6UxshIDEdZ45ESIJktEPbutTFxwtei0AXknXkpxembdB+NNY\r\nEaqGxqqW1cSSVin8VtIVxfiQUxaYl0fBBMNOXUaHJXDhOVIoIG1tfEcWp6HH\r\nfDKMZH5C6TXNT9SeRiA6WGkUeLEre14HFJSWcC8tWp6gySZK25U1gSGTDXbl\r\nejQTwXWNzUqxhMbmrS3MW/7fDDZO1xvpTeI=\r\n=ArBu\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-connection-manager_0.9.1-next.21_1679044715708_0.3290947470173273"},"_hasShrinkwrap":false},"0.9.1-next.42":{"name":"@sphereon/ssi-sdk-connection-manager","version":"0.9.1-next.42","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"IConnectionManager":"./src/types/IConnectionManager.ts"}},"scripts":{"build":"tsc --build","build:clean":"tsc --build --clean && tsc --build"},"dependencies":{"@sphereon/ssi-sdk-data-store-common":"^0.9.1-next.42+13ad882","cross-fetch":"^3.1.5","typeorm":"^0.3.12"},"devDependencies":{"@veramo/cli":"4.2.0"},"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":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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>Connection Manager (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 Veramo connection manager plugin. This plugin manages connection configurations to third parties and persists them. These configurations can then be used to establish the connection.\n\n## Supported connection types\n\nFor now the following connection types are supported:\n\n- OpenID\n- DID AUTH SIOP\n\n## Available functions\n\n- cmGetParty\n- cmGetParties\n- cmAddParty\n- cmUpdateParty\n- cmRemoveParty\n- cmGetConnection\n- cmGetConnections\n- cmAddConnection\n- cmUpdateConnection\n- cmRemoveConnection\n\n## Usage\n\n### Adding the plugin to an agent:\n\n```typescript\nimport { migrations, Entities } from '@veramo/data-store'\nimport DataStoreConnectionEntities from '@sphereon/ssi-sdk-connection-manager'\nimport { DataStoreMigrations } from '@sphereon/ssi-sdk-data-store'\n\nconst dbConnection = createConnection({\n  type: 'react-native',\n  database: 'app.sqlite',\n  location: 'default',\n  logging: false,\n  synchronize: false,\n  migrationsRun: true,\n  migrations: [...DataStoreMigrations, ...migrations],\n  entities: [...DataStoreConnectionEntities, ...Entities],\n})\n\nconst agent = createAgent<IConnectionManager>({\n  plugins: [\n    new ConnectionManager({\n      store: new TestConnectionStore(dbConnection),\n    }),\n  ],\n})\n```\n\n### Get a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst result = await agent.cmGetConnection({\n  partyId,\n})\n```\n\n### Get parties:\n\n```typescript\nconst result = await agent.cmGetParties()\n```\n\n### Add a party:\n\n```typescript\nconst result = await agent.cmAddParty({ name: 'Party' })\n```\n\n### Update a party:\n\n```typescript\nconst partyId = '8efb937f-4e90-4056-9a4d-7185ce8dc173'\nconst party = await agent\n  .cmGetConnection({\n    partyId,\n  })\n  .then((party) => {\n    return { ...party, name: 'new_name' }\n  })\n\nconst result = await agent.cmUpdateParty({ party })\n```\n\n### Remove a party:\n\n```typescript\nconst partyId = 'ef6e13b2-a520-4bb6-9a13-9be529ce22b8'\nconst result = await agent.cmRemoveParty({ partyId })\n```\n\n### Get a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent.cmGetConnection({\n  connectionId,\n})\n```\n\n### Get connections:\n\n```typescript\nconst partyId = '00492d95-22b9-41c1-b475-90bf1667ae52'\nconst result = await agent.cmGetConnections({ partyId })\n```\n\n### Add a connection:\n\n```typescript\nconst partyId = 'a4a47842-43a7-4741-9562-0fb3a973ec98'\nconst connection: {\n  type: ConnectionTypeEnum.OPENID\n  identifier: {\n    type: ConnectionIdentifierEnum.URL\n    correlationId: 'https://example.com'\n  }\n  config: {\n    clientId: '138d7bf8-c930-4c6e-b928-97d3a4928b01'\n    clientSecret: '03b3955f-d020-4f2a-8a27-4e452d4e27a0'\n    scopes: ['auth']\n    issuer: 'https://example.com/app-test'\n    redirectUrl: 'app:/callback'\n    dangerouslyAllowInsecureHttpRequests: true\n    clientAuthMethod: 'post'\n  }\n  metadata: [\n    {\n      label: 'Authorization URL'\n      value: 'https://example.com'\n    },\n    {\n      label: 'Scope'\n      value: 'Authorization'\n    }\n  ]\n}\nconst result = await agent.cmAddConnection({\n  partyId,\n  connection,\n})\n```\n\n### Update a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nconst result = await agent\n  .cmGetConnection({\n    connectionId,\n  })\n  .then((connection) => {\n    return { ...connection, identifier: { ...connection.identifier, correlationId: 'new_id' } }\n  })\nconst connection = await agent.cmUpdateConnection({ connection })\n```\n\n### Remove a connection:\n\n```typescript\nconst connectionId = 'cdfd231c-6d40-4e43-9bd0-e8c97262ffe1'\nawait agent.cmRemoveConnection({\n  connectionId,\n})\n```\n\n## Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-connection-manager\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>Connection Manager (Typescript)    <","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-connection-manager@0.9.1-next.42","_nodeVersion":"16.19.1","_npmVersion":"lerna/6.5.1/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-LCnRtx9dWD8fNQV+KmQrD7BBG8Sp73JktPsccwJRfmKIuKKs/llLGLzrVICKk3uMEYxhi+L+96ic/kbY4UDK7A==","shasum":"18af9ed5a036ea48c1109c1dc9f7e4d571c3ee21","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-connection-manager/-/ssi-sdk-connection-manager-0.9.1-next.42.tgz","fileCount":29,"unpackedSize":61442,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnAg4JLG133q+MADeJlpqrH+/i9Dw30MrZSGpcF9P85AiEAzCdKn5bWf8qDmbVLdtsGNs5oI9+mKiLORzpLpd4043w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFDl1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmroWA//biZc1CHl4OsXWkq35/YBGW/L4bbTlQNXKRkjS81eIPrCNwvV\r\n2lafJSkKxRVm71Tqfp9oN6h6PsSQjHEWNKv29h1/LsVqbO+VtqCDpcpc78Bt\r\n/uZVNuxQGICeCiK+2M4iu7Hl/lVuFb3fb+woq6w41guhVUM3KxUxKWisWgDD\r\no7K4RHVQY55MCyAjgeDRWPLROHPbonhYWYpO0r77dJyFiBHxF+LhISx+bFif\r\nBWbx/bkVqqGvDpJYqFi8YZvhN+P0YiWNCwLN05UJWid/ADr93IgNyzRpyqbt\r\nv1P/23AVPJe532DhuT6JvjZ2KCxZ3X6/bkfjJvvj206mDwnMsYxK/w9bVq7y\r\nV8qz/SHdpSyF8GVNZniwpj1/iI+Ev08FB4ARcuswwwkRoxLqLJR5fGahFPyu\r\nVLDoHW32fiiafyRE6kvE6U1+Jm6TiZfL1GMTTUva5qjT51zny/a0abkPiubO\r\n7+5mIJlABzYyIExasozYBRgjVLto1pvy/j2iaIfBmPsakpy2zJ0HC1poP73b\r\nSUU6vUnBF4J1v/tHK3lUuMjYl1z3q3i4lkstsWxdNWoAi+OA16symd5b9fHv\r\noNdoKpGgfLYWr1LYviAEiwLsMJHkk2xoFEAyEzbwJ0PLQvAJKfKPyy2yZHeT\r\nW0mWY5b248pUEOgOoGcv43B+SgA7+1AMn5M=\r\n=WAVp\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-connection-manager_0.9.1-next.42_1679047029273_0.955489600492698"},"_hasShrinkwrap":false}},"time":{"created":"2022-05-31T11:28:43.726Z","0.5.2-next.70":"2022-05-31T11:28:44.010Z","modified":"2023-03-17T09:57:09.712Z","0.5.2-unstable.73":"2022-06-16T08:23:11.830Z","0.5.2-unstable.70":"2022-06-27T14:42:23.201Z","0.5.2-next.73":"2022-06-30T11:02:58.204Z","0.5.2-next.113":"2022-07-01T22:26:18.171Z","0.6.0":"2022-07-01T22:38:10.986Z","0.5.2-next.116":"2022-07-06T00:10:00.536Z","0.6.1-next.6":"2022-07-06T00:40:00.337Z","0.6.1-next.8":"2022-07-06T21:43:59.520Z","0.6.1-next.9":"2022-07-06T22:17:44.294Z","0.6.1-unstable.49":"2022-07-12T22:45:43.240Z","0.6.1-next.50":"2022-07-12T22:58:35.546Z","0.6.1-unstable.63":"2022-07-13T08:31:16.275Z","0.6.1-unstable.64":"2022-07-13T11:08:41.589Z","0.6.1-unstable.65":"2022-07-13T11:13:59.929Z","0.6.1-next.66":"2022-07-13T11:36:39.324Z","0.6.1-next.67":"2022-07-28T21:36:12.671Z","0.6.1-unstable.74":"2022-08-02T19:38:28.634Z","0.6.1-unstable.75":"2022-08-02T21:58:14.185Z","0.6.1-unstable.76":"2022-08-02T22:43:22.005Z","0.6.1-unstable.77":"2022-08-02T23:35:12.322Z","0.6.1-unstable.78":"2022-08-03T00:03:10.697Z","0.6.1-unstable.79":"2022-08-03T00:26:03.631Z","0.6.1-unstable.80":"2022-08-03T07:47:36.915Z","0.6.1-unstable.82":"2022-08-03T10:26:46.055Z","0.6.1-unstable.83":"2022-08-03T13:42:30.446Z","0.6.1-unstable.84":"2022-08-03T18:42:35.528Z","0.6.1-unstable.86":"2022-08-03T18:53:48.320Z","0.6.1-unstable.87":"2022-08-03T20:06:40.621Z","0.6.1-unstable.88":"2022-08-03T21:52:12.353Z","0.6.1-unstable.89":"2022-08-03T21:55:50.021Z","0.6.1-unstable.90":"2022-08-03T22:09:33.787Z","0.6.1-unstable.92":"2022-08-03T22:25:58.364Z","0.6.1-unstable.68":"2022-08-03T22:27:52.963Z","0.6.1-unstable.70":"2022-08-03T23:39:25.633Z","0.6.1-unstable.71":"2022-08-04T10:24:51.404Z","0.6.1-unstable.72":"2022-08-04T10:26:32.973Z","0.6.1-unstable.73":"2022-08-04T10:28:23.092Z","0.6.1-next.76":"2022-08-04T11:42:14.026Z","0.6.1-next.78":"2022-08-05T16:06:54.320Z","0.6.1-next.79":"2022-08-05T16:13:21.472Z","0.7.0":"2022-08-05T19:52:46.160Z","0.7.1-unstable.9":"2022-08-06T00:27:47.176Z","0.7.1-unstable.11":"2022-08-06T11:52:56.797Z","0.7.1-unstable.13":"2022-08-08T00:12:07.844Z","0.7.1-unstable.15":"2022-08-10T11:32:35.648Z","0.7.1-unstable.16":"2022-08-10T12:02:09.809Z","0.7.1-unstable.17":"2022-08-10T13:03:52.968Z","0.7.1-unstable.18":"2022-08-10T19:42:54.153Z","0.7.1-next.18":"2022-08-12T08:37:41.910Z","0.7.1-unstable.67":"2022-08-12T16:51:50.139Z","0.7.1-unstable.39":"2022-08-12T17:20:49.890Z","0.7.1-next.38":"2022-08-12T17:23:13.916Z","0.7.1-unstable.40":"2022-08-15T15:52:24.530Z","0.7.1-next.39":"2022-08-15T16:01:09.116Z","0.7.1-next.40":"2022-08-18T01:03:10.172Z","0.7.1-next.43":"2022-08-21T00:15:54.165Z","0.7.1-unstable.43":"2022-08-22T17:32:12.090Z","0.7.1-unstable.44":"2022-08-23T15:39:07.602Z","0.7.1-unstable.45":"2022-08-23T16:58:57.728Z","0.7.1-next.54":"2022-08-25T11:56:47.833Z","0.7.1-next.66":"2022-09-02T22:38:14.936Z","0.7.1-next.68":"2022-09-02T23:52:56.825Z","0.8.0":"2022-09-03T00:09:14.228Z","0.8.1-next.2":"2022-09-03T00:56:53.953Z","0.8.1-next.3":"2022-09-03T01:09:48.823Z","0.8.1-unstable.4":"2022-09-15T09:00:36.570Z","0.8.1-unstable.5":"2022-09-15T09:17:29.175Z","0.8.1-next.6":"2022-09-15T09:31:58.254Z","0.8.1-unstable.9":"2022-09-17T23:57:02.855Z","0.8.1-unstable.11":"2022-09-19T14:02:09.885Z","0.8.1-next.12":"2022-09-19T15:11:31.515Z","0.8.1-next.18":"2022-09-22T15:12:27.295Z","0.8.1-unstable.24":"2022-09-29T21:06:47.670Z","0.8.1-unstable.25":"2022-10-04T20:18:18.849Z","0.8.1-next.26":"2022-10-04T20:50:06.875Z","0.8.1-unstable.27":"2022-10-12T10:50:58.367Z","0.8.1-unstable.29":"2022-10-13T07:11:55.720Z","0.8.1-unstable.28":"2022-10-13T07:13:15.809Z","0.8.1-unstable.30":"2022-10-13T07:17:42.520Z","0.8.1-next.31":"2022-10-13T07:51:31.014Z","0.8.1-next.42":"2022-10-18T11:11:42.178Z","0.8.1-next.50":"2022-10-18T11:13:03.247Z","0.8.1-unstable.50":"2022-10-26T00:44:33.425Z","0.8.1-unstable.53":"2022-10-26T23:14:40.464Z","0.8.1-unstable.54":"2022-10-26T23:18:55.911Z","0.8.1-next.55":"2022-10-26T23:31:14.035Z","0.8.1-unstable.55":"2022-10-27T20:32:41.038Z","0.8.1-next.57":"2022-10-27T20:37:42.543Z","0.8.1-unstable.61":"2022-10-27T20:43:42.523Z","0.8.1-unstable.63":"2022-10-28T00:02:54.698Z","0.8.1-unstable.65":"2022-10-28T08:49:58.983Z","0.8.1-next.66":"2022-10-28T11:23:18.681Z","0.8.1-unstable.73":"2022-11-03T22:51:06.626Z","0.8.1-unstable.74":"2022-11-04T00:24:11.038Z","0.8.1-next.77":"2022-11-08T15:20:49.121Z","0.8.1-next.84":"2022-11-08T15:29:51.009Z","0.8.1-unstable.85":"2022-11-14T13:39:38.899Z","0.8.1-unstable.86":"2022-11-14T13:53:41.397Z","0.8.1-next.114":"2022-12-17T02:01:14.829Z","0.8.1-next.117":"2022-12-17T02:19:07.047Z","0.8.1-next.119":"2022-12-27T23:57:11.208Z","0.8.1-unstable.135":"2023-01-03T15:31:47.426Z","0.8.1-next.120":"2023-01-10T01:20:18.824Z","0.8.1-next.121":"2023-01-11T19:11:03.088Z","0.8.1-next.122":"2023-01-11T20:34:20.710Z","0.8.1-next.123":"2023-01-11T21:40:21.809Z","0.8.1-unstable.145":"2023-01-12T01:13:19.692Z","0.8.1-next.146":"2023-01-12T01:23:45.751Z","0.8.1-next.154":"2023-01-12T13:11:14.467Z","0.8.1-next.156":"2023-01-13T00:43:45.778Z","0.8.1-next.157":"2023-01-13T01:42:07.888Z","0.8.1-next.158":"2023-01-13T02:03:13.866Z","0.8.1-next.159":"2023-01-13T02:21:07.080Z","0.8.1-next.161":"2023-01-13T03:10:23.119Z","0.8.1-next.162":"2023-01-13T03:52:03.703Z","0.8.1-next.163":"2023-01-13T04:07:43.694Z","0.8.1-next.164":"2023-01-14T05:43:55.540Z","0.8.1-next.165":"2023-01-14T06:18:16.081Z","0.8.1-next.166":"2023-01-14T06:37:57.359Z","0.8.1-next.167":"2023-01-14T06:56:40.414Z","0.8.1-next.168":"2023-01-14T07:31:04.812Z","0.8.1-next.169":"2023-01-15T02:09:12.786Z","0.8.1-unstable.170":"2023-01-15T03:25:55.659Z","0.8.1-unstable.171":"2023-01-15T03:36:02.410Z","0.8.1-unstable.172":"2023-01-15T03:59:28.610Z","0.8.1-unstable.173":"2023-01-15T05:05:35.241Z","0.8.1-unstable.174":"2023-01-15T05:47:56.028Z","0.8.1-unstable.175":"2023-01-15T08:06:49.652Z","0.8.1-unstable.176":"2023-01-16T02:09:16.596Z","0.8.1-unstable.177":"2023-01-16T04:45:06.916Z","0.8.1-unstable.178":"2023-01-16T05:00:31.380Z","0.8.1-unstable.179":"2023-01-20T01:15:02.190Z","0.8.1-next.179":"2023-01-25T21:34:52.644Z","0.8.1-next.190":"2023-02-16T10:03:47.246Z","0.8.1-next.192":"2023-02-17T16:00:57.790Z","0.8.1-next.194":"2023-02-17T22:04:23.251Z","0.8.1-unstable.195":"2023-02-18T00:42:16.913Z","0.8.1-unstable.198":"2023-02-18T03:01:02.003Z","0.8.1-unstable.200":"2023-02-18T13:16:31.181Z","0.8.1-unstable.201":"2023-02-18T14:04:59.539Z","0.8.1-unstable.203":"2023-02-18T22:50:33.111Z","0.8.1-unstable.206":"2023-02-21T01:47:33.673Z","0.8.1-unstable.207":"2023-02-21T02:07:49.715Z","0.8.1-unstable.208":"2023-02-22T03:26:36.810Z","0.8.1-unstable.209":"2023-02-22T19:38:02.275Z","0.8.1-unstable.210":"2023-02-22T23:42:22.564Z","0.8.1-unstable.211":"2023-02-23T00:15:34.567Z","0.8.1-unstable.212":"2023-02-23T01:44:48.939Z","0.8.1-unstable.213":"2023-02-23T02:13:33.963Z","0.8.1-unstable.215":"2023-02-23T19:33:06.840Z","0.8.1-unstable.217":"2023-02-23T20:31:23.744Z","0.8.1-unstable.218":"2023-02-23T22:11:59.627Z","0.8.1-unstable.219":"2023-02-23T22:51:41.441Z","0.8.1-unstable.220":"2023-02-23T23:26:01.009Z","0.8.1-unstable.221":"2023-02-24T00:31:08.346Z","0.8.1-unstable.222":"2023-02-24T01:25:15.706Z","0.8.1-unstable.225":"2023-02-24T04:09:29.759Z","0.8.1-unstable.227":"2023-02-25T01:03:00.038Z","0.8.1-unstable.228":"2023-02-26T03:24:41.399Z","0.8.1-unstable.229":"2023-02-26T07:06:37.517Z","0.8.1-unstable.230":"2023-02-26T07:36:04.061Z","0.8.1-unstable.238":"2023-02-26T09:50:19.382Z","0.8.1-unstable.239":"2023-02-26T16:50:17.720Z","0.8.1-unstable.240":"2023-02-26T23:35:28.266Z","0.8.1-unstable.242":"2023-02-27T01:59:58.551Z","0.8.1-unstable.264":"2023-03-03T08:34:43.661Z","0.8.1-unstable.263":"2023-03-03T16:16:59.582Z","0.8.1-unstable.271":"2023-03-06T14:35:21.709Z","0.8.1-unstable.272":"2023-03-06T15:10:12.490Z","0.8.1-unstable.277":"2023-03-07T12:01:03.674Z","0.8.1-unstable.266":"2023-03-07T22:21:05.535Z","0.8.1-unstable.267":"2023-03-07T23:30:40.477Z","0.8.1-unstable.268":"2023-03-07T23:41:31.370Z","0.8.1-unstable.269":"2023-03-08T00:08:47.772Z","0.8.1-unstable.270":"2023-03-08T01:01:29.742Z","0.8.1-unstable.278":"2023-03-08T16:28:28.700Z","0.8.1-unstable.279":"2023-03-08T19:45:47.522Z","0.8.1-unstable.280":"2023-03-08T22:11:59.379Z","0.8.1-next.272":"2023-03-09T00:37:04.942Z","0.9.0":"2023-03-09T00:45:53.974Z","0.9.1-next.9":"2023-03-10T00:49:23.334Z","0.9.1-unstable.17":"2023-03-10T10:27:11.649Z","0.9.1-next.10":"2023-03-11T00:05:08.253Z","0.9.1-next.11":"2023-03-11T00:33:28.911Z","0.9.1-next.12":"2023-03-11T01:10:39.022Z","0.9.1-next.13":"2023-03-11T03:52:29.815Z","0.9.1-next.15":"2023-03-11T23:46:52.076Z","0.9.1-next.16":"2023-03-12T05:23:27.510Z","0.9.1-next.17":"2023-03-12T05:57:51.830Z","0.9.1-unstable.27":"2023-03-15T14:00:13.235Z","0.9.1-unstable.28":"2023-03-15T14:25:37.886Z","0.9.1-unstable.30":"2023-03-15T15:01:08.314Z","0.9.1-unstable.34":"2023-03-15T16:32:06.582Z","0.9.1-unstable.18":"2023-03-16T10:13:10.295Z","0.9.1-unstable.19":"2023-03-16T10:18:38.904Z","0.9.1-unstable.20":"2023-03-16T10:20:35.366Z","0.9.1-next.21":"2023-03-17T09:18:35.910Z","0.9.1-next.42":"2023-03-17T09:57:09.493Z"},"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>Connection Manager (Typescript)    <","homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","keywords":["Sphereon","SSI","Veramo","OpenID","Connection Manager"],"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":"","readmeFilename":""}