{"_id":"@atlasdepin/atlas.js-protos","name":"@atlasdepin/atlas.js-protos","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@atlasdepin/atlas.js-protos","version":"0.1.1","description":"Protobuf type definitions and message helpers for Atlas Protocol.","author":{"name":"Ahmed Moussa"},"homepage":"https://github.com/Atlas-DePIN/atlas.js-protos","license":"SEE LICENSE IN LICENSE","main":"dist/index.js","module":"dist/index.mjs","typings":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./storage":{"types":"./dist/storage/index.d.ts","import":"./dist/storage/index.mjs","require":"./dist/storage/index.js"},"./storage/tx":{"types":"./dist/storage/tx.d.ts","import":"./dist/storage/tx.mjs","require":"./dist/storage/tx.js"},"./storage/query":{"types":"./dist/storage/query.d.ts","import":"./dist/storage/query.mjs","require":"./dist/storage/query.js"},"./filetree":{"types":"./dist/filetree/index.d.ts","import":"./dist/filetree/index.mjs","require":"./dist/filetree/index.js"},"./filetree/tx":{"types":"./dist/filetree/tx.d.ts","import":"./dist/filetree/tx.mjs","require":"./dist/filetree/tx.js"},"./filetree/query":{"types":"./dist/filetree/query.d.ts","import":"./dist/filetree/query.mjs","require":"./dist/filetree/query.js"}},"typesVersions":{"*":{"storage":["./dist/storage/index.d.ts"],"storage/tx":["./dist/storage/tx.d.ts"],"storage/query":["./dist/storage/query.d.ts"],"filetree":["./dist/filetree/index.d.ts"],"filetree/tx":["./dist/filetree/tx.d.ts"],"filetree/query":["./dist/filetree/query.d.ts"]}},"directories":{"lib":"src"},"scripts":{"build:cjs":"yarn tsc -p tsconfig.json --outDir dist --module commonjs || true","build:mjs":"yarn tsc -p tsconfig.json --outDir mjs --module es2022 --declaration false || true","clean:mjs":"rimraf mjs","clean:dist":"rimraf dist","clean":"npm run clean:mjs && npm run clean:dist","build:rename":"publish-scripts --cmd rename --srcDir mjs --outDir dist --findExt js --replaceExt mjs --no-rmDir","build":"npm run clean && npm run build:cjs && npm run build:mjs && npm run build:rename","codegen":"node scripts/codegen.js","prepare":"npm run build","lint":"eslint src --fix","test":"jest","test:watch":"jest --watch","test:debug":"node --inspect node_modules/.bin/jest --runInBand"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Atlas-DePIN/atlas.js-protos.git"},"keywords":[],"bugs":{"url":"https://github.com/Atlas-DePIN/atlas.js-protos/issues"},"devDependencies":{"@types/jest":"^29.5.0","eslint":"8.45.0","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","jest":"^29.5.0","jest-in-case":"^1.0.2","prettier":"^2.8.7","publish-scripts":"0.1.0","rimraf":"^5.0.0","ts-jest":"^29.1.0","typescript":"^5.0.4"},"dependencies":{"@ahm23/telescope":"^2.3.1","@ahm23/telescope-ast":"^2.3.1","@ahm23/telescope-lcd":"^0.17.1","@ahm23/telescope-proto-parser":"^2.2.2","@cosmjs/amino":"0.29.4","@cosmjs/proto-signing":"^0.38.1","@cosmjs/stargate":"^0.38.1","@cosmjs/tendermint-rpc":"^0.38.1","@improbable-eng/grpc-web":"^0.15.0","@improbable-eng/grpc-web-node-http-transport":"^0.15.0","@interchainjs/cosmos":"^1.19.3","@interchainjs/types":"^1.19.1","browser-headers":"^0.4.1","cosmjs-types":"^0.11.0","long":"^5.3.2","protobufjs":"^8.0.0"},"gitHead":"71b9765db779460dd45edc18842e3f27dc880861","_id":"@atlasdepin/atlas.js-protos@0.1.1","_nodeVersion":"26.1.0","_npmVersion":"11.14.1","dist":{"integrity":"sha512-na3BdYbaov1qSounbD0hvHEHYsGA2Lcy0N8Z+XvGGjMtl/qGotNdpLDlA0Nhl8RQu2pYx3yo7alFFtFg7qU+fw==","shasum":"537bf7647a8cbf7bed77e2149d406a030bf5a528","tarball":"https://registry.npmjs.org/@atlasdepin/atlas.js-protos/-/atlas.js-protos-0.1.1.tgz","fileCount":195,"unpackedSize":1899678,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIH90uVONIDjwMCzHy/01Q/5eU1676gjyujncHkQr4EWKAiEAwOeByQRgz6IFc0b/ttPYm12uVB0Wap+1x1hKaCosF/w="}]},"_npmUser":{"name":"ahm23","email":"ahm222223@gmail.com"},"maintainers":[{"name":"ahm23","email":"ahm222223@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/atlas.js-protos_0.1.1_1783889871039_0.5476985423325726"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-12T20:57:50.943Z","0.1.1":"2026-07-12T20:57:51.220Z","modified":"2026-07-12T20:57:51.375Z"},"maintainers":[{"name":"ahm23","email":"ahm222223@gmail.com"}],"description":"Protobuf type definitions and message helpers for Atlas Protocol.","homepage":"https://github.com/Atlas-DePIN/atlas.js-protos","keywords":[],"repository":{"type":"git","url":"git+https://github.com/Atlas-DePIN/atlas.js-protos.git"},"author":{"name":"Ahmed Moussa"},"bugs":{"url":"https://github.com/Atlas-DePIN/atlas.js-protos/issues"},"license":"SEE LICENSE IN LICENSE","readme":"# atlas.js-protos\n\nProtobuf type definitions and message helpers for Atlas Protocol.\n\n## Install\n\n```sh\nnpm install atlas.js-protos\n```\n\n## Usage\n\nAll types are exported from clean subpath entry points with no internal scaffolding (`*ProtoMsg`, `*SDKType`) leaking through.\n\n### Storage\n\n```ts\nimport { Provider, File, Params, StorageChallenge } from \"atlas.js-protos/storage\";\nimport { QueryProvidersResponse, QueryFileRequest } from \"atlas.js-protos/storage/query\";\nimport { MsgPostFile, MsgRegisterProvider } from \"atlas.js-protos/storage/tx\";\n\n// Encoding\nconst bytes = Provider.encode(myProvider).finish();\nconst decoded = Provider.decode(bytes);\n\n// Decoding with fromPartial\nconst partial = Provider.fromPartial({ address: \"atlas1...\", hostname: \"node01\" });\n```\n\n### Filetree\n\n```ts\nimport { TreeNode } from \"atlas.js-protos/filetree\";\nimport { QueryTreeNodeResponse } from \"atlas.js-protos/filetree/query\";\nimport { MsgPostNode, MsgDeleteNode } from \"atlas.js-protos/filetree/tx\";\n\nconst node = TreeNode.fromPartial({\n  nodeType: \"file\",\n  contents: \"data\",\n  editors: \"atlas1...\",\n});\n```\n\n### Full barrel import\n\nIf you prefer the namespaced telescope-style import, it's still available:\n\n```ts\nimport { atlas } from \"atlas.js-protos\";\n\nconst provider = atlas.storage.v1.Provider;\nconst treeNode = atlas.filetree.v1.TreeNode;\n```\n\n## Import paths\n\n| Path | Contents |\n|---|---|\n| `atlas.js-protos` | Telescope bundle (namespaced `atlas.*`) |\n| `atlas.js-protos/storage` | Storage state types (`Provider`, `File`, `Params`, etc.) |\n| `atlas.js-protos/storage/query` | Storage query request/response types |\n| `atlas.js-protos/storage/tx` | Storage transaction message types |\n| `atlas.js-protos/filetree` | Filetree state types (`TreeNode`, `Params`) |\n| `atlas.js-protos/filetree/query` | Filetree query request/response types |\n| `atlas.js-protos/filetree/tx` | Filetree transaction message types |\n\n## Developing\n\n```sh\n# Generate types from protobuf definitions\npnpm codegen\n\n# Build\npnpm build\n\n# Type-check\nnpx tsc --noEmit\n\n# Run tests\npnpm test\n```\n\n## License\n\nSEE LICENSE IN LICENSE.\n","readmeFilename":"README.md","_rev":"1-f01413cdb4625e13015206171675f0ab"}