{"_id":"@azphalt/repository-client","_rev":"7-5c05fb0b35cd70e510cddb0e3c3ca479","name":"@azphalt/repository-client","dist-tags":{"latest":"0.3.2"},"versions":{"0.1.0":{"name":"@azphalt/repository-client","version":"0.1.0","author":{"url":"https://hereliesaz.com","name":"Az"},"license":"MIT","_id":"@azphalt/repository-client@0.1.0","maintainers":[{"name":"azcamehere","email":"hereliesaz@gmail.com"}],"dist":{"shasum":"cbc81ac232e16e43f3b286601f20efcd79f033a0","tarball":"https://registry.npmjs.org/@azphalt/repository-client/-/repository-client-0.1.0.tgz","fileCount":5,"integrity":"sha512-UMEnxdsnx9D3iUlBkMn0BOoHawIDRzQXj+AjHXYnO0WLBsBzRxg9sDzAoBhfvd4exOF5N3iqCr8VrCHuOD9M1A==","signatures":[{"sig":"MEYCIQCgVZez4UwGR7k6Tq4wudT8HmZ9NBqwEtgiKKIVLRQoIQIhAM1rEdyTKSB1H8jvYuofpOnTsDa/9AyXB+HF35IppMqu","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6953},"main":"./dist/index.js","type":"module","_from":"file:azphalt-repository-client-0.1.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"azcamehere","email":"hereliesaz@gmail.com"},"_resolved":"/tmp/813cae84d8f12ede44826a72672582c2/azphalt-repository-client-0.1.0.tgz","_integrity":"sha512-UMEnxdsnx9D3iUlBkMn0BOoHawIDRzQXj+AjHXYnO0WLBsBzRxg9sDzAoBhfvd4exOF5N3iqCr8VrCHuOD9M1A==","_npmVersion":"10.9.8","description":"Client SDK for the azphalt Repository API.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@azphalt/sdk":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/repository-client_0.1.0_1784028738173_0.38697302541935885","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@azphalt/repository-client","version":"0.1.1","author":{"url":"https://hereliesaz.com","name":"Az"},"license":"MIT","_id":"@azphalt/repository-client@0.1.1","maintainers":[{"name":"azcamehere","email":"hereliesaz@gmail.com"},{"name":"hahapewpew","email":"az@hahapewpew.com"}],"dist":{"shasum":"5dbf14e4477d6841d1dc4ebbacb9645e742ca92d","tarball":"https://registry.npmjs.org/@azphalt/repository-client/-/repository-client-0.1.1.tgz","fileCount":5,"integrity":"sha512-SV9RdEDEyrWHbx/zTzU2RTft7XHnCEAl/fjLzLRnr9Qj1J+DNDpCPbB8V3Op8vb47e5SlHvzDoGwPEj85l6org==","signatures":[{"sig":"MEYCIQDCzZ8fmp+rUJKS1RqzwDz2UoizR10RFX+nqSZ9IxjTgQIhAPK2nG7qIC6jJJASwtPBICASliDwTWD5HB0XQmb4XDs5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6956},"main":"./dist/index.js","type":"module","_from":"file:azphalt-repository-client-0.1.1.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"azcamehere","email":"hereliesaz@gmail.com"},"_resolved":"/tmp/bbea76951c844e32ecea8edb2e7f74ab/azphalt-repository-client-0.1.1.tgz","_integrity":"sha512-SV9RdEDEyrWHbx/zTzU2RTft7XHnCEAl/fjLzLRnr9Qj1J+DNDpCPbB8V3Op8vb47e5SlHvzDoGwPEj85l6org==","_npmVersion":"10.9.8","description":"Client SDK for the azphalt Repository API.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@azphalt/azdk":"0.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/repository-client_0.1.1_1784125870859_0.703519550968311","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@azphalt/repository-client","version":"0.2.0","author":{"url":"https://hereliesaz.com","name":"Az"},"license":"MIT","_id":"@azphalt/repository-client@0.2.0","maintainers":[{"name":"azcamehere","email":"hereliesaz@gmail.com"},{"name":"hahapewpew","email":"az@hahapewpew.com"}],"dist":{"shasum":"45e6b731c3b8038666034025c7ed8fdf7c3c5e4b","tarball":"https://registry.npmjs.org/@azphalt/repository-client/-/repository-client-0.2.0.tgz","fileCount":5,"integrity":"sha512-On5sY6a+KwO25H2v9jmGUYR8tD2G16HLnoy9lz6EaHmRzuK4BUnJRtcpbSQI2k3ibMIhtPFP5ZCCsCVES3MMsQ==","signatures":[{"sig":"MEQCIDAb46ebHPHG7g+CdG1hNfiDh6Pe5tngPvPfMaYW9RfPAiBVTVZRPUkzRkZfKdZ79iqlM1uolyRz+2HXQsIPtVYAbA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17185},"main":"./dist/index.js","type":"module","_from":"file:azphalt-repository-client-0.2.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"azcamehere","email":"hereliesaz@gmail.com"},"_resolved":"/tmp/06276b846d349a194ee941d74fc130ad/azphalt-repository-client-0.2.0.tgz","_integrity":"sha512-On5sY6a+KwO25H2v9jmGUYR8tD2G16HLnoy9lz6EaHmRzuK4BUnJRtcpbSQI2k3ibMIhtPFP5ZCCsCVES3MMsQ==","_npmVersion":"10.9.8","description":"Client SDK for the azphalt Repository API.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@azphalt/azdk":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/repository-client_0.2.0_1784628657807_0.40166015430733837","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@azphalt/repository-client","version":"0.3.0","author":{"url":"https://hereliesaz.com","name":"Az"},"license":"MIT","_id":"@azphalt/repository-client@0.3.0","maintainers":[{"name":"azcamehere","email":"hereliesaz@gmail.com"},{"name":"hahapewpew","email":"az@hahapewpew.com"}],"dist":{"shasum":"3206993fdf467873777f3120c3052c5f5af605a7","tarball":"https://registry.npmjs.org/@azphalt/repository-client/-/repository-client-0.3.0.tgz","fileCount":5,"integrity":"sha512-ISsy8RlGKF2O/6gv1SBpJE6cdCASCwKUU28q4ZXkJRgMF9KtadKUGxNeAGzpivGRn64H27Z4j2TpRx+TrEnJsQ==","signatures":[{"sig":"MEUCIQDzY0Xam41xqx2fioXSfwhmfupjoyiATV9/Bvu14XkxTQIgM/ir606CQqEJsfK9/n0LKfxXoWgUhdW7QyVti9Mg4Z4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17555},"main":"./dist/index.js","type":"module","_from":"file:azphalt-repository-client-0.3.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"azcamehere","email":"hereliesaz@gmail.com"},"_resolved":"/tmp/0fa0e070ea716aa3eb7d09eb22d78894/azphalt-repository-client-0.3.0.tgz","_integrity":"sha512-ISsy8RlGKF2O/6gv1SBpJE6cdCASCwKUU28q4ZXkJRgMF9KtadKUGxNeAGzpivGRn64H27Z4j2TpRx+TrEnJsQ==","_npmVersion":"10.9.9","description":"Client SDK for the azphalt Repository API.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@azphalt/azdk":"0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/repository-client_0.3.0_1785554806374_0.948183427859141","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@azphalt/repository-client","version":"0.3.1","author":{"url":"https://hereliesaz.com","name":"Az"},"license":"MIT","_id":"@azphalt/repository-client@0.3.1","maintainers":[{"name":"azcamehere","email":"hereliesaz@gmail.com"},{"name":"hahapewpew","email":"az@hahapewpew.com"}],"dist":{"shasum":"1eba243d9bd62ab9b74950646ad7d7647d21c500","tarball":"https://registry.npmjs.org/@azphalt/repository-client/-/repository-client-0.3.1.tgz","fileCount":5,"integrity":"sha512-OmFIAFFaOaKi4Cu0Ae1MJDnvwAv43Iy5YdYH+H8uZK4mTS2lcQoz7t5R89HMr0xRYr04O31bge9y6fwLIY0VQA==","signatures":[{"sig":"MEUCIHZrfQ/Y1iAm4u3PnjDDHoJg0aOLKQzjPY8oFGd6J0v0AiEAhBQ9ObtV6x2iKQIsK5kDYR6HvYOZvmCcR1GAEpq9qRo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17555},"main":"./dist/index.js","type":"module","_from":"file:azphalt-repository-client-0.3.1.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"azcamehere","email":"hereliesaz@gmail.com"},"_resolved":"/tmp/39973a12e25adb628d1dd0063c2856d1/azphalt-repository-client-0.3.1.tgz","_integrity":"sha512-OmFIAFFaOaKi4Cu0Ae1MJDnvwAv43Iy5YdYH+H8uZK4mTS2lcQoz7t5R89HMr0xRYr04O31bge9y6fwLIY0VQA==","_npmVersion":"10.9.9","description":"Client SDK for the azphalt Repository API.","directories":{},"sideEffects":false,"_nodeVersion":"22.23.1","dependencies":{"@azphalt/azdk":"0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/repository-client_0.3.1_1786266689478_0.5414943434176804","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@azphalt/repository-client","version":"0.3.2","publishConfig":{"access":"public"},"description":"Client SDK for the azphalt Repository API.","license":"MIT","author":{"name":"Az","url":"https://hereliesaz.com"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"dependencies":{"@azphalt/azdk":"0.5.0"},"sideEffects":false,"scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","typecheck":"tsc -p tsconfig.json --noEmit","clean":"rm -rf dist"},"_id":"@azphalt/repository-client@0.3.2","_integrity":"sha512-Qur7IOwtvvkZ5/nAY+6tIjdZWRTaTSOV4JEGXn3hTqQ1JCriYjJp9PPflkHm/7afZUBPEBGd6SrCxJZnPWtnQg==","_resolved":"/tmp/418587670b9502e8e946bba88e04d175/azphalt-repository-client-0.3.2.tgz","_from":"file:azphalt-repository-client-0.3.2.tgz","_nodeVersion":"22.23.1","_npmVersion":"10.9.9","dist":{"integrity":"sha512-Qur7IOwtvvkZ5/nAY+6tIjdZWRTaTSOV4JEGXn3hTqQ1JCriYjJp9PPflkHm/7afZUBPEBGd6SrCxJZnPWtnQg==","shasum":"171da3ff8413fe71280294316516c0117069a623","tarball":"https://registry.npmjs.org/@azphalt/repository-client/-/repository-client-0.3.2.tgz","fileCount":5,"unpackedSize":17555,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGDLlUccyycyapLMaNIYVDt5nWEQNzCJw02mtj1+WOxtAiA/sfHNaNX3mQ0RuCnYrRXMWg1K9DXEuIJxbDoOGN4eOQ=="}]},"_npmUser":{"name":"azcamehere","email":"hereliesaz@gmail.com"},"directories":{},"maintainers":[{"name":"azcamehere","email":"hereliesaz@gmail.com"},{"name":"hahapewpew","email":"az@hahapewpew.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/repository-client_0.3.2_1786700457192_0.9452120590241344"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-14T11:32:17.991Z","modified":"2026-08-14T09:40:57.519Z","0.1.0":"2026-07-14T11:32:18.324Z","0.1.1":"2026-07-15T14:31:11.002Z","0.2.0":"2026-07-21T10:10:57.957Z","0.3.0":"2026-08-01T03:26:46.506Z","0.3.1":"2026-08-09T09:11:29.626Z","0.3.2":"2026-08-14T09:40:57.324Z"},"author":{"name":"Az","url":"https://hereliesaz.com"},"license":"MIT","description":"Client SDK for the azphalt Repository API.","maintainers":[{"name":"azcamehere","email":"hereliesaz@gmail.com"},{"name":"hahapewpew","email":"az@hahapewpew.com"}],"readme":"# @azphalt/repository-client\n\nA small client SDK for the azphalt [Repository API](../../spec/repository-api.md) — the standard HTTP interface any backend can expose so a host can discover and download `.azp` extensions. It's the caller side of [`@azphalt/repository-server`](../../apps/repository-server); the two are tested against each other end-to-end.\n\n## Use it\n\n~~~ts\nimport { RepositoryClient } from \"@azphalt/repository-client\";\n\nconst client = new RepositoryClient({ url: \"https://packages.example.com\" });\n\nconst index = await client.getIndex();               // GET /.well-known/azphalt-repository.json\nconst results = await client.search({ types: [\"lut\"], q: \"cinematic\", page: 1 });\nconst manifest = await client.getPackage(\"com.example.grade\");\nconst bytes = await client.download(\"com.example.grade\", \"1.2.0\"); // the raw .azp\n~~~\n\n## Paid packages\n\nIf a package is marked `priceStatus: \"paid\"`, the download needs a Bearer token. Pass one at construction or set it later:\n\n~~~ts\nconst client = new RepositoryClient({ url, token: \"…\" });\nclient.setToken(\"…\"); // e.g. after an OAuth exchange\n~~~\n\n`download()` throws a clear error on **401 Unauthorized** (missing/invalid token) and **402 Payment Required** (no license), matching the spec's gating.\n\n## API\n\n- `getIndex()` → the repository's discovery document (`RepositoryIndex`).\n- `search({ q?, types?, tags?, page? })` → a paginated `PackageSearchResponse`.\n- `getPackage(id)` → the package's manifest / detail.\n- `download(id, version)` → the binary `.azp` as a `Uint8Array`.\n\nTypes (`RepositoryIndex`, `PackageSummary`, `PackageSearchResponse`) come from [`@azphalt/azdk`](../sdk). Verify downloaded bytes with [`@azphalt/azp`](../azp)'s `verifyAzp` before use.\n","readmeFilename":"readme.md"}