{"_id":"@airtop/json-schema-adapter-typebox","_rev":"3-e150ca490dee24b77a4776569b805cb1","name":"@airtop/json-schema-adapter-typebox","dist-tags":{"latest":"1.0.0-alpha2.2"},"versions":{"1.0.0-alpha2.0":{"name":"@airtop/json-schema-adapter-typebox","version":"1.0.0-alpha2.0","keywords":["airtop","adapter","json schema","typebox"],"author":{"name":"Theo Gravity","email":"theo@airtop.ai"},"license":"MIT","_id":"@airtop/json-schema-adapter-typebox@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":"eae04d8726a9e548a666b1f5ba264f05e0c4d08f","tarball":"https://registry.npmjs.org/@airtop/json-schema-adapter-typebox/-/json-schema-adapter-typebox-1.0.0-alpha2.0.tgz","fileCount":8,"integrity":"sha512-9NAb8/XhBe4QtkbiJ49lZgDOmDGTIxlyr1d1SLN88xHqaUlNzMKaius/+9zYT8gI92AHWYtuMRR7URwESr4CpA==","signatures":[{"sig":"MEQCIAe0LTPE61lKpbs6JH2QKO+CzhpIomOMSV20pd+slrVDAiAL7f8k4SJH2WjZIuHlm6c/ekLueEKTTBU87FB7WcDVCw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6199},"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":"Typebox adapter for JSON Schema output for use with the Airtop SDK","directories":{},"_nodeVersion":"22.13.0","dependencies":{"@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":{"@sinclair/typebox":">=0.34.30"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-adapter-typebox_1.0.0-alpha2.0_1743543654705_0.5302907501779763","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-alpha2.1":{"name":"@airtop/json-schema-adapter-typebox","version":"1.0.0-alpha2.1","keywords":["airtop","adapter","json schema","typebox"],"author":{"name":"Theo Gravity","email":"theo@airtop.ai"},"license":"MIT","_id":"@airtop/json-schema-adapter-typebox@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":"b25b35a7599ce7ae7d524a93bceec7708304c870","tarball":"https://registry.npmjs.org/@airtop/json-schema-adapter-typebox/-/json-schema-adapter-typebox-1.0.0-alpha2.1.tgz","fileCount":8,"integrity":"sha512-GqIJhHt4pKJP3d0+tSJkAlaN1NizJ85ZKDp/dTjowMJKQe6z2PavpVmc39H8nLbkLGYPe/7a0KOGbNyFv0Ff9A==","signatures":[{"sig":"MEQCIGY+bgt3Fret1r5cHW/acE6wf5R4O4ehD+TbTXyHylVIAiBke5LDn5DRhuDLKqWMLGLdXo0GDyjqYJM6HDTfv35S2g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6151},"main":"./dist/index.cjs","type":"module","_from":"file:airtop-json-schema-adapter-typebox-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/6e9f18e24f523d2f2e09e8f05300db03/airtop-json-schema-adapter-typebox-1.0.0-alpha2.1.tgz","_integrity":"sha512-GqIJhHt4pKJP3d0+tSJkAlaN1NizJ85ZKDp/dTjowMJKQe6z2PavpVmc39H8nLbkLGYPe/7a0KOGbNyFv0Ff9A==","repository":{"url":"git+https://github.com/airtop-ai/airtop-sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"Typebox adapter for JSON Schema output for use with the Airtop SDK","directories":{},"_nodeVersion":"20.19.0","dependencies":{"@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":{"@sinclair/typebox":">=0.34.30"},"_npmOperationalInternal":{"tmp":"tmp/json-schema-adapter-typebox_1.0.0-alpha2.1_1743545175240_0.2578941049235899","host":"s3://npm-registry-packages-npm-production"}},"1.0.0-alpha2.2":{"name":"@airtop/json-schema-adapter-typebox","description":"Typebox 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","typebox"],"dependencies":{"@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":{"@sinclair/typebox":">=0.34.30"},"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-typebox@1.0.0-alpha2.2","_integrity":"sha512-2/UpYA715quD4y+xwT7NH3wFZef+j4GErHVceK+SsUQwOA0a4EwpDUCle+SKtjtmRRiHB+rIk383zmHPYdbv3g==","_resolved":"/tmp/249b270cf4bec1d65f1cb88852d93015/airtop-json-schema-adapter-typebox-1.0.0-alpha2.2.tgz","_from":"file:airtop-json-schema-adapter-typebox-1.0.0-alpha2.2.tgz","_nodeVersion":"20.19.3","_npmVersion":"10.8.2","dist":{"integrity":"sha512-2/UpYA715quD4y+xwT7NH3wFZef+j4GErHVceK+SsUQwOA0a4EwpDUCle+SKtjtmRRiHB+rIk383zmHPYdbv3g==","shasum":"80f25314567535244efc9e384306e3c01fe6770b","tarball":"https://registry.npmjs.org/@airtop/json-schema-adapter-typebox/-/json-schema-adapter-typebox-1.0.0-alpha2.2.tgz","fileCount":9,"unpackedSize":7590,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDyMsiWa+PUNf3UZZRU12i7GvDxpp+OCRoqd8wv4h+svgIhAM4VZif6lo+oObuRmDgXlzFcFdBqMEnKC2HD6H1EORUn"}]},"_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-typebox_1.0.0-alpha2.2_1752867488061_0.7110785760765077"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-01T21:40:54.631Z","modified":"2025-07-18T19:38:08.557Z","1.0.0-alpha2.0":"2025-04-01T21:40:54.879Z","1.0.0-alpha2.1":"2025-04-01T22:06:15.403Z","1.0.0-alpha2.2":"2025-07-18T19:38:08.224Z"},"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","typebox"],"repository":{"type":"git","url":"git+https://github.com/airtop-ai/airtop-sdk.git"},"description":"Typebox 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":"# Typebox JSON Schema Adapter for the Airtop SDK\n\nThis schema adapter allows specifying [typebox](https://github.com/sinclairzx81/typebox) 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-typebox @sinclair/typebox\n```\n\n## Usage\n\n```typescript\nimport { AirtopClient } from \"@airtop/sdk\";\nimport { TypeboxSchemaAdapter } from \"@airtop/json-schema-adapter-typebox\";\nimport { Type } from \"@sinclair/typebox\";\n\nconst schema = Type.Object(\n  {\n    results: Type.Optional(\n      Type.Array(\n        Type.Object(\n          {\n            name: Type.String({ description: \"The name of the product\" }),\n            description: Type.String({ description: \"A brief description of the product's purpose\" }),\n            benefit: Type.String({ description: \"How the product supports developers\" }),\n          },\n          { additionalProperties: false },\n        ),\n      ),\n    ),\n    error: Type.Optional(Type.String({ minLength: 1, description: \"Error message in case of failure\" })),\n  },\n  { additionalProperties: false },\n);\n\nconst client = new AirtopClient({\n  outputSchemaAdapter: new TypeboxSchemaAdapter(),\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"}