{"_id":"@bluesky-social/lexicon","_rev":"2-e80313b85cd8ced3b6ffb76691ed45bd","name":"@bluesky-social/lexicon","dist-tags":{"latest":"0.5.1"},"versions":{"0.4.12":{"name":"@bluesky-social/lexicon","version":"0.4.12","keywords":["atproto","lexicon"],"license":"MIT","_id":"@bluesky-social/lexicon@0.4.12","maintainers":[{"name":"openweb3.io","email":"mtsocialdao@gmail.com"},{"name":"web3km","email":"web3km@proton.me"}],"homepage":"https://atproto.com","bugs":{"url":"https://github.com/bluesky-social/atproto/issues"},"dist":{"shasum":"80ad98205be78a88c132b19a8d274b1dbf0cc694","tarball":"https://registry.npmjs.org/@bluesky-social/lexicon/-/lexicon-0.4.12.tgz","fileCount":72,"integrity":"sha512-+y23WhymZyAKrF9i0o0WNUif+ypJ2RWmgF9UGlV9OaBnzMy7Jki0Ly92Q+PsiDRb1Jlw55LYmD8wsFS+Csn5HA==","signatures":[{"sig":"MEUCIAw0UTnVryzsIrmf6X02ADbXsI3MRw/tzYl+jHrHYo2RAiEAyGPkRb5JaRb9YLfXDXwmjhp9tuBV6tOslpdk36rze6Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1182428},"main":"dist/index.js","_from":"file:bluesky-social-lexicon-0.4.12.tgz","types":"dist/index.d.ts","scripts":{"test":"jest","build":"tsc --build tsconfig.build.json"},"_npmUser":{"name":"web3km","email":"web3km@proton.me"},"_resolved":"/private/var/folders/cb/7sst87dj7jd40nc7b7q7h76r0000gn/T/21338d3223e36e07e060fa37f91013a0/bluesky-social-lexicon-0.4.12.tgz","_integrity":"sha512-+y23WhymZyAKrF9i0o0WNUif+ypJ2RWmgF9UGlV9OaBnzMy7Jki0Ly92Q+PsiDRb1Jlw55LYmD8wsFS+Csn5HA==","repository":{"url":"git+https://github.com/bluesky-social/atproto.git","type":"git","directory":"packages/lexicon"},"_npmVersion":"10.8.2","description":"atproto Lexicon schema language library","directories":{},"_nodeVersion":"18.20.8","dependencies":{"zod":"^3.23.8","multiformats":"^9.9.0","@bluesky-social/syntax":"^0.4.0","iso-datestring-validator":"^2.2.2","@bluesky-social/common-web":"^0.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^28.1.2","typescript":"^5.6.3"},"_npmOperationalInternal":{"tmp":"tmp/lexicon_0.4.12_1753545367971_0.31997613917250933","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@bluesky-social/lexicon","version":"0.5.1","license":"MIT","description":"atproto Lexicon schema language library","keywords":["atproto","lexicon"],"homepage":"https://atproto.com","repository":{"type":"git","url":"git+https://github.com/bluesky-social/atproto.git","directory":"packages/lexicon"},"main":"dist/index.js","types":"dist/index.d.ts","dependencies":{"iso-datestring-validator":"^2.2.2","multiformats":"^9.9.0","zod":"^3.25.76","@bluesky-social/common-web":"^0.4.3","@bluesky-social/syntax":"^0.4.1"},"devDependencies":{"jest":"^28.1.3","typescript":"^5.9.3"},"scripts":{"test":"jest","build":"tsc --build tsconfig.build.json"},"_id":"@bluesky-social/lexicon@0.5.1","bugs":{"url":"https://github.com/bluesky-social/atproto/issues"},"_integrity":"sha512-VDSXru+u4s+nPMtJs1mUU4YxXbxm3eB/EPE+M4D+Avn9ZPCuSOPK+cca1f3uY0ZBeL0Ta6dECi+GwS+AwRKUmQ==","_resolved":"/private/var/folders/cb/7sst87dj7jd40nc7b7q7h76r0000gn/T/54fe1d14c1e5cb0bce3c450032e2d5d7/bluesky-social-lexicon-0.5.1.tgz","_from":"file:bluesky-social-lexicon-0.5.1.tgz","_nodeVersion":"20.15.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-VDSXru+u4s+nPMtJs1mUU4YxXbxm3eB/EPE+M4D+Avn9ZPCuSOPK+cca1f3uY0ZBeL0Ta6dECi+GwS+AwRKUmQ==","shasum":"2e17274c0a52750932b25cf5c395185defeda3eb","tarball":"https://registry.npmjs.org/@bluesky-social/lexicon/-/lexicon-0.5.1.tgz","fileCount":71,"unpackedSize":1208597,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBB4jmlEiGVcy55HEY1CkM8wk6QgoxnZSFmR0ksTEGLwAiEApV9RisAepI2pqryXpJoa5OKkI49Uuz3QS/+sKiDZPpk="}]},"_npmUser":{"name":"web3km","email":"web3km@proton.me"},"directories":{},"maintainers":[{"name":"openweb3.io","email":"mtsocialdao@gmail.com"},{"name":"web3km","email":"web3km@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lexicon_0.5.1_1761039226559_0.030930293954302135"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-26T15:56:07.865Z","modified":"2025-10-21T09:33:46.963Z","0.4.12":"2025-07-26T15:56:08.238Z","0.5.1":"2025-10-21T09:33:46.742Z"},"bugs":{"url":"https://github.com/bluesky-social/atproto/issues"},"license":"MIT","homepage":"https://atproto.com","keywords":["atproto","lexicon"],"repository":{"type":"git","url":"git+https://github.com/bluesky-social/atproto.git","directory":"packages/lexicon"},"description":"atproto Lexicon schema language library","maintainers":[{"name":"openweb3.io","email":"mtsocialdao@gmail.com"},{"name":"web3km","email":"web3km@proton.me"}],"readme":"# @bluesky-social/lexicon: schema validation library\n\nTypeScript implementation of the Lexicon data and API schema description language, which is part of [atproto](https://atproto.com).\n\n[![NPM](https://img.shields.io/npm/v/@bluesky-social/lexicon)](https://www.npmjs.com/package/@bluesky-social/lexicon)\n[![Github CI Status](https://github.com/bluesky-social/atproto/actions/workflows/repo.yaml/badge.svg)](https://github.com/bluesky-social/atproto/actions/workflows/repo.yaml)\n\n## Usage\n\n```typescript\nimport { Lexicons } from '@bluesky-social/lexicon'\n\n// create your lexicons collection\nconst lex = new Lexicons()\n\n// add lexicon documents\nlex.add({\n  lex: 1,\n  id: 'com.example.post',\n  defs: {\n    // ...\n  }\n})\n\n// validate\nlex.assertValidRecord('com.example.record', {$type: 'com.example.record', ...})\nlex.assertValidXrpcParams('com.example.query', {...})\nlex.assertValidXrpcInput('com.example.procedure', {...})\nlex.assertValidXrpcOutput('com.example.query', {...})\n```\n\n## License\n\nThis project is dual-licensed under MIT and Apache 2.0 terms:\n\n- MIT license ([LICENSE-MIT.txt](https://github.com/bluesky-social/atproto/blob/main/LICENSE-MIT.txt) or http://opensource.org/licenses/MIT)\n- Apache License, Version 2.0, ([LICENSE-APACHE.txt](https://github.com/bluesky-social/atproto/blob/main/LICENSE-APACHE.txt) or http://www.apache.org/licenses/LICENSE-2.0)\n\nDownstream projects and end users may chose either license individually, or both together, at their discretion. The motivation for this dual-licensing is the additional software patent assurance provided by Apache 2.0.\n","readmeFilename":"README.md"}