{"_id":"@airtop/json-schema-adapter-zod","_rev":"3-47cafb772e34ebf0a013c3c6efe5aeb8","name":"@airtop/json-schema-adapter-zod","dist-tags":{"latest":"1.0.0-alpha2.2"},"versions":{"1.0.0-alpha2.0":{"name":"@airtop/json-schema-adapter-zod","version":"1.0.0-alpha2.0","keywords":["airtop","adapter","json schema","zod"],"author":{"name":"Theo Gravity","email":"theo@airtop.ai"},"license":"MIT","_id":"@airtop/json-schema-adapter-zod@1.0.0-alpha2.0","maintainers":[{"name":"dshteremberg","email":"daniel@airtop.ai"},{"name":"aidyl.kareh","email":"aidyl@airtop.ai"},{"name":"chris.parker.airtop","email":"chris.parker@airtop.ai"},{"name":"pciporin","email":"peter@airtop.ai"},{"name":"nikola-airtop","email":"nikola@airtop.ai"},{"name":"jim-cullison-sb","email":"jim@switchboard.app"},{"name":"arnaud.renevier","email":"arno@airtop.ai"},{"name":"theo.gravity","email":"theo@suteki.nu"}],"homepage":"https://airtop.ai","bugs":{"url":"https://github.com/airtop-ai/airtop-sdk/issues"},"dist":{"shasum":"4d0c1921842522cc5b74b1c1e4e77207c0893e1b","tarball":"https://registry.npmjs.org/@airtop/json-schema-adapter-zod/-/json-schema-adapter-zod-1.0.0-alpha2.0.tgz","fileCount":8,"integrity":"sha512-0nweKDRjj62qeqDxPtmVbBDJZqIOeNEUolRzSeaeV5dS8XdMD5+nxh3LmOSpXIQmiUQqSpQyZ4BHmC9+2QWX+w==","signatures":[{"sig":"MEYCIQCfEvP2Oq+BnR9Y3xug4jTZtvkKDhuxR55t1wHfvfHwAAIhAOrpPq9N90eW5zDfpdvV0n1mtm1g+JfU/HwSy+ygaviL","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6145},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{"import":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","require":"./dist/index.cjs"}},"gitHead":"91eea7bf51a7841bb13a8e985cdc298f8f12d70b","scripts":{"lint":"biome check --write --unsafe src && biome format src --write && biome lint src --fix","test":"vitest --run","build":"tsup src/index.ts","clean":"rm -rf .turbo node_modules dist","build:dev":"hash-runner","verify-types":"tsc --noEmit"},"_npmUser":{"name":"theo.gravity","email":"theo@suteki.nu"},"repository":{"url":"git+https://github.com/airtop-ai/airtop-sdk.git","type":"git"},"_npmVersion":"10.9.2","description":"Zod adapter for JSON Schema output for use with the Airtop SDK","directories":{},"_nodeVersion":"22.13.0","dependencies":{"zod-to-json-schema":"3.24.5","@airtop/json-schema-adapter":"workspace:*"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.5.0","devDependencies":{"tsup":"8.4.0","vitest":"3.1.1","typescript":"5.8.2","hash-runner":"2.0.1","@biomejs/biome":"1.9.4","@internal/tsconfig":"workspace:*"},"peerDependencies":{"zod":"*"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-adapter-zod_1.0.0-alpha2.0_1743543673483_0.17824143165986084","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-alpha2.1":{"name":"@airtop/json-schema-adapter-zod","version":"1.0.0-alpha2.1","keywords":["airtop","adapter","json schema","zod"],"author":{"name":"Theo Gravity","email":"theo@airtop.ai"},"license":"MIT","_id":"@airtop/json-schema-adapter-zod@1.0.0-alpha2.1","maintainers":[{"name":"dshteremberg","email":"daniel@airtop.ai"},{"name":"aidyl.kareh","email":"aidyl@airtop.ai"},{"name":"chris.parker.airtop","email":"chris.parker@airtop.ai"},{"name":"pciporin","email":"peter@airtop.ai"},{"name":"nikola-airtop","email":"nikola@airtop.ai"},{"name":"jim-cullison-sb","email":"jim@switchboard.app"},{"name":"arnaud.renevier","email":"arno@airtop.ai"},{"name":"theo.gravity","email":"theo@suteki.nu"}],"homepage":"https://airtop.ai","bugs":{"url":"https://github.com/airtop-ai/airtop-sdk/issues"},"dist":{"shasum":"67a03104f2b49141a1f3aeb1061a2ac9b3fb4819","tarball":"https://registry.npmjs.org/@airtop/json-schema-adapter-zod/-/json-schema-adapter-zod-1.0.0-alpha2.1.tgz","fileCount":8,"integrity":"sha512-50gO5Kfikm0ZwJqHuPYLfirTxLK9yvgCNJxnot0bBp7BoYSXaMVMvAgKjh+WAxa/Ii0YdjRcdOL7QZvMDnk3QQ==","signatures":[{"sig":"MEUCIQCM1m8j76lGtSOakdWLaWhAripxLSEqUKXTlL5/dFrH0QIgaUcnhebTaZGv6s9ZpQnrQ6wa7yi8ADU9AH9mZ9zzT+g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6097},"main":"./dist/index.cjs","type":"module","_from":"file:airtop-json-schema-adapter-zod-1.0.0-alpha2.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{"import":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check --write --unsafe src && biome format src --write && biome lint src --fix","test":"vitest --run","build":"tsup src/index.ts","clean":"rm -rf .turbo node_modules dist","build:dev":"hash-runner","verify-types":"tsc --noEmit"},"_npmUser":{"name":"theo.gravity","email":"theo@suteki.nu"},"_resolved":"/tmp/dca0c75cf73a9dc25f634f17a94509ce/airtop-json-schema-adapter-zod-1.0.0-alpha2.1.tgz","_integrity":"sha512-50gO5Kfikm0ZwJqHuPYLfirTxLK9yvgCNJxnot0bBp7BoYSXaMVMvAgKjh+WAxa/Ii0YdjRcdOL7QZvMDnk3QQ==","repository":{"url":"git+https://github.com/airtop-ai/airtop-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"Zod adapter for JSON Schema output for use with the Airtop SDK","directories":{},"_nodeVersion":"20.19.0","dependencies":{"zod-to-json-schema":"3.24.5","@airtop/json-schema-adapter":"1.0.0-alpha2.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"8.4.0","vitest":"3.1.1","typescript":"5.8.2","hash-runner":"2.0.1","@biomejs/biome":"1.9.4","@internal/tsconfig":"3.0.0-alpha2.1"},"peerDependencies":{"zod":"*"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-adapter-zod_1.0.0-alpha2.1_1743545175223_0.6850397420383652","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-alpha2.2":{"name":"@airtop/json-schema-adapter-zod","description":"Zod adapter for JSON Schema output for use with the Airtop SDK","version":"1.0.0-alpha2.2","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","exports":{"import":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","require":"./dist/index.cjs"}},"types":"./dist/index.d.ts","license":"MIT","repository":{"type":"git","url":"git+https://github.com/airtop-ai/airtop-sdk.git"},"author":{"name":"Theo Gravity","email":"theo@airtop.ai"},"keywords":["airtop","adapter","json schema","zod"],"dependencies":{"zod-to-json-schema":"3.24.6","@airtop/json-schema-adapter":"1.0.0-alpha2.2"},"devDependencies":{"@biomejs/biome":"2.1.2","hash-runner":"2.0.1","tsup":"8.5.0","typescript":"5.8.3","vitest":"3.2.4","@internal/tsconfig":"3.0.0-alpha2.1"},"peerDependencies":{"zod":"*"},"bugs":{"url":"https://github.com/airtop-ai/airtop-sdk/issues"},"engines":{"node":">=18"},"homepage":"https://airtop.ai","scripts":{"build":"tsup src/index.ts","test":"vitest --run","build:dev":"hash-runner","clean":"rm -rf .turbo node_modules dist","lint":"biome check --no-errors-on-unmatched --write --unsafe src","lint:staged":"biome check --no-errors-on-unmatched --write --unsafe --staged src","verify-types":"tsc --noEmit"},"_id":"@airtop/json-schema-adapter-zod@1.0.0-alpha2.2","_integrity":"sha512-OKs2H3nntCTCX0kuPwPZVw96y/0ca8Tm/QhJJA5l/gC6ifY12S1KGu1ClBKXbtcvn6FMYluaudj81BJ5vpYJlw==","_resolved":"/tmp/e3a3c700bb9815b171762fc051f57a57/airtop-json-schema-adapter-zod-1.0.0-alpha2.2.tgz","_from":"file:airtop-json-schema-adapter-zod-1.0.0-alpha2.2.tgz","_nodeVersion":"20.19.3","_npmVersion":"10.8.2","dist":{"integrity":"sha512-OKs2H3nntCTCX0kuPwPZVw96y/0ca8Tm/QhJJA5l/gC6ifY12S1KGu1ClBKXbtcvn6FMYluaudj81BJ5vpYJlw==","shasum":"cb8dcd348e309c4959d7b5f56dc6424a71baea17","tarball":"https://registry.npmjs.org/@airtop/json-schema-adapter-zod/-/json-schema-adapter-zod-1.0.0-alpha2.2.tgz","fileCount":9,"unpackedSize":7308,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHeXdzOOXo3bqaZpo5TQlY6W+VZATflXWQqd4BeLEdSQAiEA/KINHgzCAmdX7wJN5Hhy2Loy0iEF9mD37MUEb0WnU8A="}]},"_npmUser":{"name":"theo.gravity","email":"theo@suteki.nu"},"directories":{},"maintainers":[{"name":"dshteremberg","email":"daniel@airtop.ai"},{"name":"aidyl.kareh","email":"aidyl@airtop.ai"},{"name":"chris.parker.airtop","email":"chris.parker@airtop.ai"},{"name":"pciporin","email":"peter@airtop.ai"},{"name":"nikola-airtop","email":"nikola@airtop.ai"},{"name":"jim-cullison-sb","email":"jim@switchboard.app"},{"name":"arnaud.renevier","email":"arno@airtop.ai"},{"name":"theo.gravity","email":"theo@suteki.nu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/json-schema-adapter-zod_1.0.0-alpha2.2_1752867488057_0.7400952280197999"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-01T21:41:13.407Z","modified":"2025-07-18T19:38:08.573Z","1.0.0-alpha2.0":"2025-04-01T21:41:13.648Z","1.0.0-alpha2.1":"2025-04-01T22:06:15.433Z","1.0.0-alpha2.2":"2025-07-18T19:38:08.265Z"},"bugs":{"url":"https://github.com/airtop-ai/airtop-sdk/issues"},"author":{"name":"Theo Gravity","email":"theo@airtop.ai"},"license":"MIT","homepage":"https://airtop.ai","keywords":["airtop","adapter","json schema","zod"],"repository":{"type":"git","url":"git+https://github.com/airtop-ai/airtop-sdk.git"},"description":"Zod adapter for JSON Schema output for use with the Airtop SDK","maintainers":[{"name":"dshteremberg","email":"daniel@airtop.ai"},{"name":"aidyl.kareh","email":"aidyl@airtop.ai"},{"name":"chris.parker.airtop","email":"chris.parker@airtop.ai"},{"name":"pciporin","email":"peter@airtop.ai"},{"name":"nikola-airtop","email":"nikola@airtop.ai"},{"name":"jim-cullison-sb","email":"jim@switchboard.app"},{"name":"arnaud.renevier","email":"arno@airtop.ai"},{"name":"theo.gravity","email":"theo@suteki.nu"}],"readme":"# Zod JSON Schema Adapter for the Airtop SDK\n\nThis schema adapter allows specifying [zod](https://zod.dev/) objects as input\nwhen an Airtop SDK method requires a JSON schema.\n\n## Installation\n\n```bash\nnpm install @airtop/sdk @airtop/json-schema-adapter-zod zod\n```\n\n## Usage\n\n```typescript\nimport { AirtopClient } from \"@airtop/sdk\";\nimport { ZodJsonSchemaAdapter } from \"@airtop/json-schema-adapter-zod\";\nimport { z } from \"zod\";\n\nconst schema = z.object({\n  results: z\n    .array(\n      z\n        .object({\n          name: z.string().describe(\"The name of the product\"),\n          description: z.string().describe(\"A brief description of the product's purpose\"),\n          benefit: z.string().describe(\"How the product supports developers\"),\n        })\n        .strict(),\n    )\n    .optional(),\n  error: z.string().min(1).describe(\"Error message in case of failure\").optional(),\n});\n\nconst client = new AirtopClient({\n  outputSchemaAdapter: new ZodJsonSchemaAdapter(),\n});\n\nawait client\n  .withSessionId(\"session-id\")\n  .withWindowId(\"window-id\")\n  .pageQuery(\"title of the page\", {\n    configuration: {\n      outputSchema: schema,\n    }\n  })\n```\n","readmeFilename":"README.md"}