{"_id":"@bunny.net/scriptable-dns-types","_rev":"3-b027f44f5e0656fbb85f78fdab44fb2c","name":"@bunny.net/scriptable-dns-types","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.1":{"name":"@bunny.net/scriptable-dns-types","version":"0.1.1","keywords":["bunny","dns","scriptable-dns","types"],"license":"MIT","_id":"@bunny.net/scriptable-dns-types@0.1.1","maintainers":[{"name":"kevin_at_bunny","email":"kevin@bunny.net"},{"name":"antho-bunny","email":"anthony@bunny.net"},{"name":"notrab","email":"jamie@notrab.dev"},{"name":"bogdan-at-bunny","email":"bogdan@bunny.net"}],"dist":{"shasum":"ac0b8e5f081d2ff2fd70d2269b025d2e1463ac7e","tarball":"https://registry.npmjs.org/@bunny.net/scriptable-dns-types/-/scriptable-dns-types-0.1.1.tgz","fileCount":3,"integrity":"sha512-ma8hcr66/C/B+h7iEuQlry4/k/kP9872BM4dkx6BxQJfobloQfP2T1b3g1vjARg8z8k1ykVNnBWxJr4fgtGhHQ==","signatures":[{"sig":"MEUCIBPPr5QNa8owGFezCHcNGR+vtRtJvqZ3qjMVTNwCc7/jAiEA4Jhl58x3pQ6qZW8Vv/+/aA1IYD31oL9UFn09Asn2jls=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5930},"types":"index.d.ts","exports":{".":{"types":"./index.d.ts"}},"gitHead":"656b9fb396d52f67fc93021ffe05ea1ff98775e0","_npmUser":{"name":"notrab","email":"jamie@notrab.dev"},"_npmVersion":"10.9.8","description":"Ambient TypeScript types for the bunny.net Scriptable DNS runtime.","directories":{},"_nodeVersion":"22.23.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/scriptable-dns-types_0.1.1_1782897573678_0.7748098569552673","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@bunny.net/scriptable-dns-types","version":"0.1.2","keywords":["bunny","dns","scriptable-dns","types"],"license":"MIT","_id":"@bunny.net/scriptable-dns-types@0.1.2","maintainers":[{"name":"kevin_at_bunny","email":"kevin@bunny.net"},{"name":"antho-bunny","email":"anthony@bunny.net"},{"name":"notrab","email":"jamie@notrab.dev"},{"name":"bogdan-at-bunny","email":"bogdan@bunny.net"}],"dist":{"shasum":"26c7cace1b68ab7b7417072ba93863979b61969e","tarball":"https://registry.npmjs.org/@bunny.net/scriptable-dns-types/-/scriptable-dns-types-0.1.2.tgz","fileCount":3,"integrity":"sha512-mwfw18gL9ScvEl71TttJ09r5WQC6NRqdhgPEbA3QbUhVJ6ihYJI3N2ZieWMXHKJvqPvnhpuDu7FZVyAH0i6GEw==","signatures":[{"sig":"MEUCIEGSyqj3jJTuCuzlFmh43goeV58oRx6UmbK60R5JBeYHAiEAw5Tn0BhM3tSrzNDL38kJ58rXLUw4Zo8HX5fLciqZ3KI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5939},"types":"index.d.ts","exports":{".":{"types":"./index.d.ts"}},"gitHead":"936bc4ebaa4de3e9276d9c1f7fcc9db26d2560b9","_npmUser":{"name":"notrab","email":"jamie@notrab.dev"},"_npmVersion":"10.9.8","description":"Ambient TypeScript types for the bunny.net Scriptable DNS runtime.","directories":{},"_nodeVersion":"22.23.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/scriptable-dns-types_0.1.2_1787235775686_0.7860511134562618","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"_id":"@bunny.net/scriptable-dns-types@0.1.3","dist":{"shasum":"0d6cf19744af4a476f3c89852854e3b54dfa8875","tarball":"https://registry.npmjs.org/@bunny.net/scriptable-dns-types/-/scriptable-dns-types-0.1.3.tgz","fileCount":4,"integrity":"sha512-TZa7/J5q/LzW49oibioyaf6IVLM/QV0zXx5shrmywgvJN5qoS0pldJzHSrmOI3WKDMSVYFa2Wy2MdpBW3IzyVA==","signatures":[{"sig":"MEUCIQDrn9pizSIsN0hNXZa8Y9+JNthDkBGKbgreHfJn4d8I/wIgb/Sjh/X0NNejgtFdtGyuF+T8Ilh7q1oO1jqXqfKEPTQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQChAzzhoxy1XKxX4pNyT1jFZPUYTcN5qDqV4SMUV02ZAAIhAJhTOEQ9GGrwNHDIcwa9jHJDKoKZfJ+dvPBtSB0BarKy"}],"unpackedSize":7026},"name":"@bunny.net/scriptable-dns-types","types":"index.d.ts","exports":{".":{"types":"./index.d.ts"}},"gitHead":"d8a0108b86e9b0036a35b4818d3c40fe799e2ccc","license":"MIT","version":"0.1.3","_npmUser":{"name":"notrab","email":"jamie@notrab.dev"},"keywords":["bunny","dns","scriptable-dns","types"],"_npmVersion":"10.9.8","description":"Ambient TypeScript types for the bunny.net Scriptable DNS runtime.","directories":{},"maintainers":[{"name":"kevin_at_bunny","email":"kevin@bunny.net"},{"name":"antho-bunny","email":"anthony@bunny.net"},{"name":"notrab","email":"jamie@notrab.dev"},{"name":"bogdan-at-bunny","email":"bogdan@bunny.net"}],"_nodeVersion":"22.23.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/scriptable-dns-types_0.1.3_1790585081008_0.3199470434752487"}}},"time":{"created":"2026-07-01T09:19:33.510Z","modified":"2026-09-28T08:44:41.291Z","0.1.1":"2026-07-01T09:19:33.810Z","0.1.2":"2026-08-20T14:22:55.834Z","0.1.3":"2026-09-28T08:44:41.085Z"},"license":"MIT","keywords":["bunny","dns","scriptable-dns","types"],"description":"Ambient TypeScript types for the bunny.net Scriptable DNS runtime.","maintainers":[{"name":"kevin_at_bunny","email":"kevin@bunny.net"},{"name":"antho-bunny","email":"anthony@bunny.net"},{"name":"notrab","email":"jamie@notrab.dev"},{"name":"bogdan-at-bunny","email":"bogdan@bunny.net"}],"readme":"# @bunny.net/scriptable-dns-types\n\nAmbient TypeScript types for the [bunny.net Scriptable DNS](https://bunny.net/docs/dns/scriptable/introduction) runtime.\n\nScriptable DNS scripts run with a set of globals injected by the runtime (`ARecord`, `Monitoring`, `RoutingEngine`, and so on). Because the runtime does not support `import`, these are provided as ambient declarations: they power editor autocomplete and an optional typecheck step, but are never imported at runtime.\n\n## Usage\n\nAdd the package as a dev dependency, then reference it from your script or your `tsconfig.json`.\n\nReference from the script file:\n\n```js\n/// <reference types=\"@bunny.net/scriptable-dns-types\" />\n\n/** @param {DnsRequest} query */\nexport default function handleQuery(query) {\n  if (query.request.geoLocation.country === \"DE\") {\n    return new ARecord(\"203.0.113.20\", 30);\n  }\n  return new ARecord(\"203.0.113.10\", 30);\n}\n```\n\nOr wire it up globally in `tsconfig.json`:\n\n```jsonc\n{\n  \"compilerOptions\": {\n    \"allowJs\": true,\n    \"checkJs\": true,\n    \"noEmit\": true,\n    \"types\": [\"@bunny.net/scriptable-dns-types\"],\n  },\n}\n```\n\nThe CLI scaffolds all of this for you with `bunny dns scripts init`.\n","readmeFilename":"README.md"}