{"_id":"@2060.io/credo-ts-didcomm-shorten-url","_rev":"13-de3dffb8e90d05a9e0c128cbf068ac81","name":"@2060.io/credo-ts-didcomm-shorten-url","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.2":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.0.2","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.0.2","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext/tree/main/packages/shorten-url","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"4f542092c2802863a778d4a4444c3ebc08be957d","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.0.2.tgz","fileCount":62,"integrity":"sha512-Mch/PQy2vPHzc9yYorfBGxyXB/3tQdCF3DQNyBcKSbNJhdCBkhUpVhnv1fW/lZnRqefhSpm6cB+If3z7mnr6rA==","signatures":[{"sig":"MEUCIDu/x/gaJGHsJMMLy+wWmxPGwCe4u/F8+MYcUjLw/gjKAiEA6brZmkpxPwPojNU3dlh2RY5MGLvyYcR4pz3CZYD1q9I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75955},"main":"build/index","types":"build/index","gitHead":"89b256abe79ac6be6dc4c2328ad404165c83e8ea","scripts":{"test":"jest","build":"yarn run clean && yarn run compile","clean":"rimraf -rf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build"},"_npmUser":{"name":"genaris","email":"gentilester@gmail.com"},"repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"10.9.3","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.20.0","dependencies":{"tsyringe":"^4.8.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","class-transformer":"0.5.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node-dev":"^2.0.0","@credo-ts/node":"^0.5.13","@credo-ts/askar":"^0.5.13","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.5.13"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.0.2_1761154866225_0.3744844386009798","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.0.3","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.0.3","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext/tree/main/packages/shorten-url","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"def0e6e8ae835c629ad078ded8ab4c772ab3e3f7","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.0.3.tgz","fileCount":62,"integrity":"sha512-igr7AFg9wAt2ExBkm+23uN8+w8hbI9INzaZT4tNzP/rA70zPHCNh5/YOwCjI8utI9AZ6Ykm1QXm393/HZ9YW4w==","signatures":[{"sig":"MEUCIAYHA2u0eKTE1GxzIQMTgmRlc7HWNBd070ZzG3oIzrVSAiEAiNs8bDCpgKP4mrm6kNu6S/NTbFkP9qLtT1M7SaLYwYg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":75797},"main":"build/index","types":"build/index","gitHead":"3686f4569884556fad1c0bf172b8a0dde16e63c6","scripts":{"test":"jest","build":"yarn run clean && yarn run compile","clean":"rimraf -rf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build"},"_npmUser":{"name":"genaris","email":"gentilester@gmail.com"},"repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"10.9.3","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.20.0","dependencies":{"tsyringe":"^4.8.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","class-transformer":"0.5.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node-dev":"^2.0.0","@credo-ts/node":"^0.5.13","@credo-ts/askar":"^0.5.13","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.5.13"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.0.3_1761312896811_0.30652867309246057","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.0.4","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.0.4","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext/tree/main/packages/shorten-url","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"9166c2a5421716eb96bcdd621def2746d917787e","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.0.4.tgz","fileCount":62,"integrity":"sha512-h3JyM8fVamlyDtmuJ49U4l6NUnTQVbqsroZD4XLCofYz33PHeVL4tm4RABnTEJlMoxQ2CO7dNHjpxoPhm1C8Tg==","signatures":[{"sig":"MEUCIQC1wFfrMEwd/0OKEiKOpAhyGJ8iKPhY8s44FJXZazUA9wIgfezc0JTmWuoJcZRyXQlZrBg+z13SfAqw4tjEWPtLVdA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":76138},"main":"build/index","types":"build/index","gitHead":"20fa83c6237d04ad34701ca1e86a33f221501fe8","scripts":{"test":"jest","build":"yarn run clean && yarn run compile","clean":"rimraf -rf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build"},"_npmUser":{"name":"genaris","email":"gentilester@gmail.com"},"repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"10.9.3","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.20.0","dependencies":{"tsyringe":"^4.8.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","class-transformer":"0.5.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node-dev":"^2.0.0","@credo-ts/node":"^0.5.13","@credo-ts/askar":"^0.5.13","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.5.13"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.0.4_1761324603918_0.30993627820681247","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.0.5","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.0.5","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext/tree/main/packages/shorten-url","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"5f9ab0191078ee14ca23fb64ea7eda934b990c87","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.0.5.tgz","fileCount":62,"integrity":"sha512-jJT2ZM/uB74XkJmpHlVi87nAkGQkT/5rd9nXogyEJJ6jRXNGchEXe5B2t/FumupIEGZOtlFO7LyI/ROrPZ2pRQ==","signatures":[{"sig":"MEQCIHxN22z6169CiMQeC8pV0xj46UEONqJdtdx8Jbt6sk4OAiAk38hL9kF6scBiytEYWUPfEzht+REgWc7OQ0m1iCeaJA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":82684},"main":"build/index","types":"build/index","gitHead":"fe87656f3dbe56b5e9c596235046b9c06b3f3334","scripts":{"test":"jest","build":"yarn run clean && yarn run compile","clean":"rimraf -rf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build"},"_npmUser":{"name":"genaris","email":"gentilester@gmail.com"},"repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"10.9.3","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.20.0","dependencies":{"tsyringe":"^4.8.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","class-transformer":"0.5.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node-dev":"^2.0.0","@credo-ts/node":"^0.5.13","@credo-ts/askar":"^0.5.13","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.5.13"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.0.5_1761687690245_0.659501428474764","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.0.6","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.0.6","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext/tree/main/packages/shorten-url","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"49b3d4bb6a25fdfd339b193a232050953b263218","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.0.6.tgz","fileCount":62,"integrity":"sha512-yEhcJdrlOZiqAqtNHja8lZmGtA7k9njsyncvyniKr2czRs9DYP8pJR27IEe/SDQfkunKRCkxbYlPRM2p5d+pZQ==","signatures":[{"sig":"MEUCIQDgefzGfcfev68mki8vMG28rBTDsPQjUQdWUt1KLtNNPAIgQfrgBoMAlMthdbhz+zYYRfbCthO7b1/ejufGNoe9lAc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86531},"main":"build/index","types":"build/index","gitHead":"f15a51e90e0feccc1ae2ce9869d2fb56ea156fba","scripts":{"test":"jest","build":"yarn run clean && yarn run compile","clean":"rimraf -rf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build"},"_npmUser":{"name":"genaris","email":"gentilester@gmail.com"},"repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"10.9.4","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.21.1","dependencies":{"tsyringe":"^4.8.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","class-transformer":"0.5.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node-dev":"^2.0.0","@credo-ts/node":"^0.5.13","@credo-ts/askar":"^0.5.13","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.5.13"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.0.6_1761939521829_0.5961406744518094","host":"s3://npm-registry-packages-npm-production"}},"0.0.7":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.0.7","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.0.7","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext/tree/main/packages/shorten-url","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"06e8aaefb0e0d364613bd333b1b8f7678e415d54","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.0.7.tgz","fileCount":62,"integrity":"sha512-U/mmslBDjgfvOwhbDypJkaJFQDfEPcva+kb18AzgZn1zs08M/QhCBL0QY0cCJVsGQzaHGwoTNS62tXeP3s5L+g==","signatures":[{"sig":"MEQCIG3j+fzl5CfJQR/6fAlOoCWbRA5PRzUNdHHiwJ/oH1wvAiAXPOes9l7tHHtMmaIWOWTc9hNAoGCtC+Lu39qktPntxQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89230},"main":"build/index","types":"build/index","gitHead":"4c4aaf127a89341a2f8c90c2bbd532445262303b","scripts":{"test":"jest","build":"yarn run clean && yarn run compile","clean":"rimraf -rf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build"},"_npmUser":{"name":"genaris","email":"gentilester@gmail.com"},"repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"10.9.4","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.21.1","dependencies":{"tsyringe":"^4.8.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","class-transformer":"0.5.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node-dev":"^2.0.0","@credo-ts/node":"^0.5.13","@credo-ts/askar":"^0.5.13","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.5.13"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.0.7_1762437991727_0.09916304760426686","host":"s3://npm-registry-packages-npm-production"}},"0.0.8":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.0.8","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.0.8","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext/tree/main/packages/shorten-url","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"60ccf108b5cef45d688b20a2e97372563a2d66e8","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.0.8.tgz","fileCount":62,"integrity":"sha512-x8XDkHDLBHrGg24jrQUDFXKdvRB9ifGlez3dpIwi6KJ3PCWJW6OQghwNyWvXLRjIcCO0UAnwqeubG8WG86RXxg==","signatures":[{"sig":"MEUCIQDww7qXLOWB2/3NwLlRlyxVD1tQoObyNGIQMnpqHistRgIgC4a2jZwymukFILElivhq1u5pgt4Pxq3hloCtouc8ufM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89355},"main":"build/index","types":"build/index","gitHead":"0031334d843bf7b53e7b6be2fe2ea74a7b32dffe","scripts":{"test":"jest","build":"yarn run clean && yarn run compile","clean":"rimraf -rf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build"},"_npmUser":{"name":"genaris","email":"gentilester@gmail.com"},"repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"10.9.4","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.21.1","dependencies":{"tsyringe":"^4.8.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","class-transformer":"0.5.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node-dev":"^2.0.0","@credo-ts/node":"^0.5.13","@credo-ts/askar":"^0.5.13","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.5.13"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.0.8_1762460207179_0.22898531690161872","host":"s3://npm-registry-packages-npm-production"}},"0.0.9":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.0.9","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.0.9","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext/tree/main/packages/shorten-url","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"9155365c0cff45fa0b3361325cd78d34315d54e3","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.0.9.tgz","fileCount":62,"integrity":"sha512-yMEIDr4FB3C10v0ejSV1RZqStu8RbLjx6CuVTVwjOw/swXS0PtuuA7p8VqZiZF+PejyfCF+66Sswsdz8D2pCLQ==","signatures":[{"sig":"MEUCIECUHsL0ziVIvz7qOYJJFtIv71qTAJJlBjIHvOw6l/qbAiEA0xQy4YE/SDLN/Issi5v6dXBjVl3PeI/sVSHifkOG0Vk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89101},"main":"build/index","types":"build/index","gitHead":"ece6890d820175c18238caa00221f4660970d635","scripts":{"test":"jest","build":"yarn run clean && yarn run compile","clean":"rimraf -rf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build"},"_npmUser":{"name":"genaris","email":"gentilester@gmail.com"},"repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"10.9.4","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.21.1","dependencies":{"tsyringe":"^4.8.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","class-transformer":"0.5.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node-dev":"^2.0.0","@credo-ts/node":"^0.5.13","@credo-ts/askar":"^0.5.13","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.5.13"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.0.9_1762527956441_0.9680447460754966","host":"s3://npm-registry-packages-npm-production"}},"0.0.10":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.0.10","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.0.10","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext/tree/main/packages/shorten-url","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"8738f6ccc37ea8139f152219fe92462d5bcf30f1","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.0.10.tgz","fileCount":68,"integrity":"sha512-M0dbXXjk2strngEGn9czAx9fzARdtl7XgyDhVwfJpyxK2TN6KLLcGZqrsYaQ31rUEInJwTsJJBgk3Mqr7EImZw==","signatures":[{"sig":"MEQCIDNxYnzN3K98wvKHIA5WTZLSy2/a/YGFULaD81ZskYIeAiA7nOAAmCgmJVHgOMOByT+nEqEZ9ud5kqBeS3W6Y/Okng==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":97405},"main":"build/index","types":"build/index","gitHead":"fc0c26559945f7edadec37f4ab221d6c83c69e8a","scripts":{"test":"jest","build":"yarn run clean && yarn run compile","clean":"rimraf -rf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build"},"_npmUser":{"name":"genaris","email":"gentilester@gmail.com"},"repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"10.9.4","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.21.1","dependencies":{"tsyringe":"^4.8.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","class-transformer":"0.5.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node-dev":"^2.0.0","@credo-ts/node":"^0.5.13","@credo-ts/askar":"^0.5.13","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.5.13"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.0.10_1764683595251_0.5135318318877438","host":"s3://npm-registry-packages-npm-production"}},"0.0.11":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.0.11","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.0.11","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext/tree/main/packages/shorten-url","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"d03eac47c5fa973e9853304082e6a55e19e8aa17","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.0.11.tgz","fileCount":68,"integrity":"sha512-YDpjBub2PzXZodFu9cJQQTsf3FI9+2Qx992/oQ1/7w2jp5R87bT7IZf/KtkCpX+SDaOrvw071z9SrkOCVIBSCQ==","signatures":[{"sig":"MEUCICbJAhbue5UbjZCKrLwdAcYNjNSAOmqmbC3rWzm7af/7AiEAv6ryiOstDuIuWz5Ab/ytGz71Wx6cF4pxZ4qTSm0ck9g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":96222},"main":"build/index","types":"build/index","gitHead":"125a9835d21b65bfdbe7453da3b4bac8f6087c9a","scripts":{"test":"jest","build":"yarn run clean && yarn run compile","clean":"rimraf -rf ./build","compile":"tsc -p tsconfig.build.json","prepublishOnly":"yarn run build"},"_npmUser":{"name":"genaris","email":"gentilester@gmail.com"},"repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"10.9.4","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.21.1","dependencies":{"tsyringe":"^4.8.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","class-transformer":"0.5.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node-dev":"^2.0.0","@credo-ts/node":"^0.5.13","@credo-ts/askar":"^0.5.13","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.5.13"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.0.11_1764705036222_0.8632843931938485","host":"s3://npm-registry-packages-npm-production"}},"0.0.12":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.0.12","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.0.12","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext#readme","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"1612788b57809e94af08863069b2ef8b1d76f94c","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.0.12.tgz","fileCount":6,"integrity":"sha512-FJxopR3kuHQ8ZCRcAw50vz9wPDjYk0WIiQGEaof8jS/9jybppHYpopnkQxDgMz6u9SI5/w6Vb4P/PFhYVZGtkw==","signatures":[{"sig":"MEUCIGxaUumAlAoNYQoRjkNd26SGrQeL3uENwm4GOs4P6DX3AiEA7ArrL6ykSwfMvJke8VZn6GRxMVOCuS6sUujjt9UUQcY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@2060.io%2fcredo-ts-didcomm-shorten-url@0.0.12","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":108754},"main":"./build/index.mjs","type":"module","_from":"file:2060.io-credo-ts-didcomm-shorten-url-0.0.12.tgz","types":"./build/index.d.mts","module":"./build/index.mjs","exports":{".":{"types":"./build/index.d.mts","default":"./build/index.mjs"}},"scripts":{"test":"vitest","build":"tsdown --config ./tsdown.config.ts","clean":"rimraf -rf ./build","types:check":"tsc --noEmit -p tsconfig.build.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:baf60c78-0542-4a59-adb7-35037cd1fff9"}},"_resolved":"/tmp/d1f373cd9e32ff127a6b1883e5fef66c/2060.io-credo-ts-didcomm-shorten-url-0.0.12.tgz","_integrity":"sha512-FJxopR3kuHQ8ZCRcAw50vz9wPDjYk0WIiQGEaof8jS/9jybppHYpopnkQxDgMz6u9SI5/w6Vb4P/PFhYVZGtkw==","repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"11.7.0","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.21.1","dependencies":{"tsyringe":"^4.8.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","@credo-ts/didcomm":"^0.6.1","class-transformer":"0.5.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"~5.9.3","ts-node-dev":"^2.0.0","@credo-ts/node":"^0.6.1","tsconfig-paths":"^3.10.1","@credo-ts/askar":"^0.6.1","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.6.1","@credo-ts/didcomm":"^0.6.1"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.0.12_1766087284072_0.001993713541497799","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.1.0","license":"Apache-2.0","_id":"@2060.io/credo-ts-didcomm-shorten-url@0.1.0","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext#readme","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"dist":{"shasum":"597fdbc20aad82cc79d371239cf41e4efd183e5e","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.1.0.tgz","fileCount":6,"integrity":"sha512-ECgWZBZHLbMTH4I5qV3b58p6/7RDtZ3lml6SkSzrWvKMIkQM8/k23KQg6DrHBvuK42Stf84wc+fvvHAj5j7pVw==","signatures":[{"sig":"MEUCIQDJwch9ppIvi2Y2OU9HYI3yAYJrEVncRRL3uYz4+kRJPQIgBcRfezQS5AsRFc7W1A/Sj1l4C0ubGQInNKUkOAQY7bM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@2060.io%2fcredo-ts-didcomm-shorten-url@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":108560},"main":"./build/index.mjs","type":"module","_from":"file:2060.io-credo-ts-didcomm-shorten-url-0.1.0.tgz","types":"./build/index.d.mts","module":"./build/index.mjs","exports":{".":{"types":"./build/index.d.mts","default":"./build/index.mjs"}},"scripts":{"test":"vitest","build":"tsdown --config ./tsdown.config.ts","clean":"rimraf -rf ./build","types:check":"tsc --noEmit -p tsconfig.build.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:baf60c78-0542-4a59-adb7-35037cd1fff9"}},"_resolved":"/tmp/4babd9285985aeb602909c5fa9ded8da/2060.io-credo-ts-didcomm-shorten-url-0.1.0.tgz","_integrity":"sha512-ECgWZBZHLbMTH4I5qV3b58p6/7RDtZ3lml6SkSzrWvKMIkQM8/k23KQg6DrHBvuK42Stf84wc+fvvHAj5j7pVw==","repository":{"url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","type":"git","directory":"packages/shorten-url"},"_npmVersion":"11.11.0","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","directories":{},"_nodeVersion":"22.22.0","dependencies":{"tsyringe":"^4.10.0","class-validator":"0.14.1","reflect-metadata":"^0.1.13","@credo-ts/didcomm":"^0.6.1","class-transformer":"0.5.1"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"~5.9.3","ts-node-dev":"^2.0.0","@credo-ts/node":"^0.6.1","tsconfig-paths":"^3.10.1","@credo-ts/askar":"^0.6.1","@hyperledger/aries-askar-nodejs":"^0.2.3"},"peerDependencies":{"@credo-ts/core":"^0.6.1","@credo-ts/didcomm":"^0.6.1"},"_npmOperationalInternal":{"tmp":"tmp/credo-ts-didcomm-shorten-url_0.1.0_1773177460039_0.15546654954137984","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@2060.io/credo-ts-didcomm-shorten-url","version":"0.1.1","description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","license":"Apache-2.0","type":"module","main":"./build/index.mjs","module":"./build/index.mjs","types":"./build/index.d.mts","exports":{".":{"types":"./build/index.d.mts","default":"./build/index.mjs"}},"repository":{"type":"git","url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","directory":"packages/shorten-url"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"devDependencies":{"@credo-ts/askar":"^0.6.1","@credo-ts/core":"^0.6.1","@credo-ts/didcomm":"^0.6.1","@credo-ts/node":"^0.6.1","@hyperledger/aries-askar-nodejs":"^0.2.3","ts-node-dev":"^2.0.0","tsconfig-paths":"^3.10.1","typescript":"~5.9.3"},"peerDependencies":{"@credo-ts/core":"^0.6.1","@credo-ts/didcomm":"^0.6.1"},"dependencies":{"class-transformer":"0.5.1","class-validator":"0.14.1","reflect-metadata":"^0.1.13","tsyringe":"^4.10.0"},"scripts":{"build":"tsdown --config ./tsdown.config.ts","clean":"rimraf -rf ./build","types:check":"tsc --noEmit -p tsconfig.build.json","test":"vitest"},"_id":"@2060.io/credo-ts-didcomm-shorten-url@0.1.1","bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"homepage":"https://github.com/2060-io/credo-ts-didcomm-ext#readme","_integrity":"sha512-hk09aPaHokUbhzaHQQkSCtbl7EcDU+Sno0/SmwSJGowrA/SVobSVyryK9ReyfzdnMSmI7z9nNzkO9/MUeAhfUg==","_resolved":"/tmp/f0717a490908d8f9a6b6c19b9b970e2e/2060.io-credo-ts-didcomm-shorten-url-0.1.1.tgz","_from":"file:2060.io-credo-ts-didcomm-shorten-url-0.1.1.tgz","_nodeVersion":"22.22.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-hk09aPaHokUbhzaHQQkSCtbl7EcDU+Sno0/SmwSJGowrA/SVobSVyryK9ReyfzdnMSmI7z9nNzkO9/MUeAhfUg==","shasum":"356c468adf25b207cbf23fd5c1e11ae304afb1bb","tarball":"https://registry.npmjs.org/@2060.io/credo-ts-didcomm-shorten-url/-/credo-ts-didcomm-shorten-url-0.1.1.tgz","fileCount":6,"unpackedSize":108650,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@2060.io%2fcredo-ts-didcomm-shorten-url@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFskIIXB0FqM3XbZgZY6XzcdM+7Q0pW0cK/HHXh3K2m9AiEAtrt0vPkaWHHIdWyJTji6wJresGYkiAJxzxolXy6McmE="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:baf60c78-0542-4a59-adb7-35037cd1fff9"}},"directories":{},"maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/credo-ts-didcomm-shorten-url_0.1.1_1773250723351_0.10593121619082702"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-22T17:41:06.136Z","modified":"2026-03-11T17:38:43.812Z","0.0.2":"2025-10-22T17:41:06.429Z","0.0.3":"2025-10-24T13:34:57.034Z","0.0.4":"2025-10-24T16:50:04.107Z","0.0.5":"2025-10-28T21:41:30.450Z","0.0.6":"2025-10-31T19:38:41.995Z","0.0.7":"2025-11-06T14:06:31.903Z","0.0.8":"2025-11-06T20:16:47.367Z","0.0.9":"2025-11-07T15:05:56.643Z","0.0.10":"2025-12-02T13:53:15.462Z","0.0.11":"2025-12-02T19:50:36.395Z","0.0.12":"2025-12-18T19:48:04.247Z","0.1.0":"2026-03-10T21:17:40.232Z","0.1.1":"2026-03-11T17:38:43.490Z"},"bugs":{"url":"https://github.com/2060-io/credo-ts-didcomm-ext/issues"},"license":"Apache-2.0","homepage":"https://github.com/2060-io/credo-ts-didcomm-ext#readme","repository":{"type":"git","url":"git+https://github.com/2060-io/credo-ts-didcomm-ext.git","directory":"packages/shorten-url"},"description":"DIDComm Shorten URL protocol implementation for @credo-ts/core","maintainers":[{"name":"genaris","email":"gentilester@gmail.com"}],"readme":"# @2060.io/credo-ts-didcomm-shorten-url\n\nDIDComm **Shorten URL 1.0** protocol implementation for `@credo-ts/core`. This module lets an agent play either of the roles defined by the spec:\n\n- **long-url-provider** – asks for a shortened URL and can later invalidate it\n- **url-shortener** – returns a shortened URL and processes invalidate requests\n\n> Spec: <https://didcomm.org/shorten-url/1.0/>\n\n---\n\n## Features\n\n- Message models for the whole protocol (ready to use):\n  - `request-shortened-url`\n  - `shortened-url`\n  - `invalidate-shortened-url`\n- Typed API to send/receive messages\n- Optional maximum validity window for inbound requests (enforce by supplying a positive value)\n- Automatic DIDComm timestamp conversion for shortened-url responses (work with `Date`, sent as ISO strings)\n- Event emission for inbound messages so your app can plug in a real shortener\n- Automatic Ack replies for `invalidate-shortened-url` messages (url-shortener role) using the protocol’s own ack type, plus an event on the requester side when the ack arrives\n- Wallet records for each shorten-url exchange (full lifecycle saved in storage)\n- Protocol registration with configurable roles for feature discovery\n\n---\n\n## Installation\n\n```bash\npnpm add @2060.io/credo-ts-didcomm-shorten-url\n# or\nnpm i @2060.io/credo-ts-didcomm-shorten-url\n```\n\n---\n\n## Quick Start\n\n### 1) Register the module\n\n```ts\nimport { Agent } from '@credo-ts/core'\nimport { DidCommShortenUrlModule, ShortenUrlRole } from '@2060.io/credo-ts-didcomm-shorten-url'\n\nconst agent = new Agent({\n  config: { label: 'my-agent' },\n  modules: {\n    shortenUrl: new DidCommShortenUrlModule({\n      // Example: mobile agent acting only as long-url-provider\n      roles: [ShortenUrlRole.LongUrlProvider],\n      // Optional: enforce a 2 hour maximum validity (set to 0 or omit to allow any value)\n      maximumRequestedValiditySeconds: 60 * 60 * 2,\n    }),\n  },\n  // ... transports, storage, logger, etc.\n})\n```\n\nIf you omit the configuration, the module registers both `url-shortener` and `long-url-provider` roles by default, so it “just works”.\n\nInbound `request-shortened-url` messages that exceed the configured maximum are rejected with a `CredoError` whose message starts with `validity_too_long`, allowing callers to distinguish the cause.\n\n### 2) As **long-url-provider** – request a shortened URL\n\n```ts\nconst { messageId } = await agent.modules.shortenUrl.requestShortenedUrl({\n  connectionId: 'conn-123',\n  url: 'https://example.com/very/long/path?query=abc',\n  goalCode: 'share_link',\n  requestedValiditySeconds: 3600,\n  shortUrlSlug: 'my-campaign', // optional\n})\n```\n\n### 3) As **url-shortener** – listen for inbound requests and reply\n\n```ts\nimport {\n  DidCommShortenUrlEventTypes,\n  DidCommRequestShortenedUrlReceivedEvent,\n} from '@2060.io/credo-ts-didcomm-shorten-url'\n\nagent.events.on<DidCommRequestShortenedUrlReceivedEvent>(\n  DidCommShortenUrlEventTypes.DidCommRequestShortenedUrlReceived,\n  async (e) => {\n    const { shortenUrlRecord } = e.payload\n    const { url } = shortenUrlRecord\n\n    // your real shortener here\n    const shortUrl = await myShortener(url!)\n\n    await agent.modules.shortenUrl.sendShortenedUrl({\n      recordId: shortenUrlRecord.id,\n      shortenedUrl: shortUrl,\n      // optional expiration time (Date). When omitted, we reuse the requester’s validity window if provided.\n      // expiresTime: new Date(Date.now() + 60 * 60 * 1000),\n    })\n  },\n)\n```\n\n### 4) Optionally invalidate a shortened URL later\n\nWhen acting as the **long-url-provider**, you can ask the url-shortener to invalidate a previously issued short link. Look up the stored record from when you received the shortened URL (for example, from the `DidCommShortenedUrlReceived` event) and pass its id to the API:\n\n```ts\nconst recordId = shortenUrlRecord.id\nconst { messageId: invalidateMessageId } = await agent.modules.shortenUrl.invalidateShortenedUrl({ recordId })\n// We persist invalidateMessageId on the record to correlate the Ack that comes back from the url-shortener.\n\n// Listen for the ack on the same agent (long-url-provider) to confirm completion\nimport { DidCommShortenUrlEventTypes, DidCommShortenedUrlInvalidatedEvent } from '@2060.io/credo-ts-didcomm-shorten-url'\n\nagent.events.on<DidCommShortenedUrlInvalidatedEvent>(\n  DidCommShortenUrlEventTypes.DidCommShortenedUrlInvalidated,\n  ({ payload }) => {\n    const { shortenUrlRecord } = payload\n    console.log('Short link invalidated:', shortenUrlRecord.shortenedUrl)\n  },\n)\n```\n\nOn the **url-shortener** agent subscribe to `DidCommInvalidateShortenedUrlReceived` so you can stop serving the revoked URL. The handler automatically returns the DIDComm `ack` that the spec requires, so your app only needs to update its own state:\n\n```ts\nimport {\n  DidCommInvalidateShortenedUrlReceivedEvent,\n  DidCommShortenUrlEventTypes,\n} from '@2060.io/credo-ts-didcomm-shorten-url'\n\nagent.events.on<DidCommInvalidateShortenedUrlReceivedEvent>(\n  DidCommShortenUrlEventTypes.DidCommInvalidateShortenedUrlReceived,\n  async ({ payload }) => {\n    const { shortenUrlRecord } = payload\n\n    await disableShortUrlLocally(shortenUrlRecord.shortenedUrl!)\n    await agent.modules.shortenUrl.deleteById({ recordId: shortenUrlRecord.id })\n    // The Ack mandated by https://didcomm.org/shorten-url/1.0/ is already sent back to the long-url-provider by the handler.\n  },\n)\n```\n\n> **Important:** Only the `long-url-provider` role may call `invalidateShortenedUrl`. The url-shortener receives the message, emits the event above, and automatically acknowledges it per the protocol. This keeps both agents aligned with the [invalidate-shortened-url](https://didcomm.org/shorten-url/1.0/#invalidate-shortened-url) flow.\n> The Ack is fully handled for you; the returned `messageId` equals the `~thread.thid` if you need to correlate logs or metrics.\n\n---\n\n## API Overview\n\n### Configuration Options\n\n`DidCommShortenUrlModule` accepts the following options:\n\n- `roles` (default: both roles) – restrict the protocol roles this agent announces/supports.\n- `maximumRequestedValiditySeconds` (optional) – positive integer upper bound for `requested_validity_seconds`. Omit or set to `0` to allow any value. Requests that exceed the configured limit are rejected before persisting a record and emit a `validity_too_long` error.\n\n### `DidCommShortenUrlApi`\n\n```ts\nrequestShortenedUrl(options: {\n  connectionId: string\n  url: string\n  goalCode: string\n  requestedValiditySeconds: number\n  shortUrlSlug?: string\n}): Promise<{ messageId: string }>\n\nsendShortenedUrl(options: {\n  recordId: string\n  shortenedUrl: string\n  expiresTime?: Date\n}): Promise<{ messageId: string }>\n\ninvalidateShortenedUrl(options: {\n  recordId: string\n}): Promise<{ messageId: string }>\n\ndeleteById(options: {\n  recordId: string\n}): Promise<{ recordId: string }>\n```\n\n- `requestShortenedUrl` throws if the same `threadId` (the request `@id`) was already processed, keeping the exchange idempotent.\n- `sendShortenedUrl` throws if the referenced record already has a shortened URL or was invalidated. Pass the record id from the inbound event; the API automatically reuses the stored `connectionId`. If `expiresTime` is omitted and the request contained `requested_validity_seconds`, the expiration is derived automatically (`createdAt + validity`) and sent as an ISO-8601 string per DIDComm best practices.\n- `invalidateShortenedUrl` throws if the link was already invalidated (or never existed) and only sends `invalidate-shortened-url` when the stored record belongs to the `long-url-provider` role. Once the url-shortener processes the message, it automatically responds with the spec-defined Ack.\n- `deleteById` validates the connection ownership before removing a stored record, so only the owner agent can clean up its shorten-url entries.\n\nAll operations persist `DidCommShortenUrlRecord` entries in the agent wallet so you can audit or resume the flow later. Records carry the connection, protocol role, the thread id (we store the `@id` of the original `request-shortened-url`), state, original URL details, shortened URL, and expiration metadata.\n\n---\n\n## Events\n\nThe service emits events for inbound messages so you can plug your own logic. Timestamp fields are exposed as `Date` instances to your handler, but are serialized to ISO-8601 strings on the wire:\n\n```ts\nenum DidCommShortenUrlEventTypes {\n  DidCommRequestShortenedUrlReceived = 'DidCommRequestShortenedUrlReceived',\n  DidCommShortenedUrlReceived = 'DidCommShortenedUrlReceived',\n  DidCommInvalidateShortenedUrlReceived = 'DidCommInvalidateShortenedUrlReceived',\n  DidCommShortenedUrlInvalidated = 'DidCommShortenedUrlInvalidated',\n}\n```\n\n### Payloads\n\n- **DidCommRequestShortenedUrlReceived**\n\n  ```ts\n  {\n    shortenUrlRecord: DidCommShortenUrlRecord\n  }\n  ```\n\n- **DidCommShortenedUrlReceived**\n\n  ```ts\n  {\n    shortenUrlRecord: DidCommShortenUrlRecord\n  }\n  ```\n\n- **DidCommInvalidateShortenedUrlReceived**\n\n  ```ts\n  {\n    shortenUrlRecord: DidCommShortenUrlRecord\n  }\n  ```\n\n  > The handler that raises this event already returned an `ack` with `status = ok` to the sender, fulfilling the DIDComm requirement while giving you a clean hook to update your business logic.\n\n- **DidCommShortenedUrlInvalidated** (emitted on the long-url-provider when the url-shortener’s ack arrives)\n\n  ```ts\n  {\n    shortenUrlRecord: DidCommShortenUrlRecord\n  }\n  ```\n\n  > This confirms the invalidation round-trip is complete. The record state is set to `invalidated`.\n\n---\n\n## Message Models & JSON Shapes\n\n## Records & Repository\n\nEach API/service call stores a `DidCommShortenUrlRecord` in the wallet. You can resolve the repository through the dependency manager and query the current state:\n\n```ts\nimport { DidCommShortenUrlRepository, ShortenUrlState } from '@2060.io/credo-ts-didcomm-shorten-url'\n\nconst repository = agent.dependencyManager.resolve(DidCommShortenUrlRepository)\n\nconst openRequests = await repository.findByQuery(agent.context, {\n  connectionId: 'conn-123',\n  state: ShortenUrlState.RequestSent,\n})\n```\n\nStates follow the DIDComm spec lifecycle:\n\n- `request-sent` / `request-received` (records include the thread id so you can correlate the later response `thid`)\n- `shortened-sent` / `shortened-received`\n- `invalidation-sent` / `invalidation-received`\n- `invalidated` (set when the long-url-provider receives the protocol ack from the url-shortener)\n\nInvalidation calls will fail with an error if no record exists for the provided `shortened_url`, giving you a built-in safety check that only the agent that requested the short link (and still holds the record) can invalidate it.\n\n### `request-shortened-url`\n\nType URI: `https://didcomm.org/shorten-url/1.0/request-shortened-url`\n\n```json\n{\n  \"@type\": \"https://didcomm.org/shorten-url/1.0/request-shortened-url\",\n  \"@id\": \"<uuid>\",\n  \"url\": \"https://example.com/very/long/path?query=abc\",\n  \"goal_code\": \"share_link\",\n  \"requested_validity_seconds\": 3600,\n  \"short_url_slug\": \"my-campaign\"\n}\n```\n\n### `shortened-url`\n\nType URI: `https://didcomm.org/shorten-url/1.0/shortened-url`\n\n```json\n{\n  \"@type\": \"https://didcomm.org/shorten-url/1.0/shortened-url\",\n  \"@id\": \"<uuid>\",\n  \"shortened_url\": \"https://example.io/a1b2\",\n  \"expires_time\": 1732665600,\n  \"~thread\": { \"thid\": \"<request-id>\" }\n}\n```\n\n### `invalidate-shortened-url`\n\nType URI: `https://didcomm.org/shorten-url/1.0/invalidate-shortened-url`\n\n```json\n{\n  \"@type\": \"https://didcomm.org/shorten-url/1.0/invalidate-shortened-url\",\n  \"@id\": \"<uuid>\",\n  \"shortened_url\": \"https://example.io/a1b2\",\n  \"~thread\": { \"thid\": \"<optional-request-id>\" }\n}\n```\n","readmeFilename":"README.md"}