{"_id":"@a2a-compliance/schemas","_rev":"5-effdd71db94c82b8821ae56720d0ccfd","name":"@a2a-compliance/schemas","dist-tags":{"latest":"0.3.3"},"versions":{"0.1.0":{"name":"@a2a-compliance/schemas","version":"0.1.0","keywords":["a2a","agent2agent","mcp","zod","schema","llm","protocol"],"author":{"name":"a2a-compliance contributors"},"license":"MIT","_id":"@a2a-compliance/schemas@0.1.0","maintainers":[{"name":"demonskye","email":"rainer.lute.vp@gmail.com"}],"homepage":"https://github.com/UltraSkye/a2a-compliance#readme","bugs":{"url":"https://github.com/UltraSkye/a2a-compliance/issues"},"dist":{"shasum":"5db88571bc61dbc53a3abd01ec494b1702e76761","tarball":"https://registry.npmjs.org/@a2a-compliance/schemas/-/schemas-0.1.0.tgz","fileCount":23,"integrity":"sha512-mEW3Y1bMZL1PWamnJGTGIPsN+nWmhucunvzaSYWAetnJRaFO1qJrhy10wU9JAxo+aIjw2g/BZwTuJSY52vqdGw==","signatures":[{"sig":"MEYCIQDjsgtSRIt9T94YGp96AH6WlJOjYJe/1B1RkehAOmPEQQIhAI3oh3c80oylGsg/ssBS4cYgRrW0Uw8dOh/wJzy7scqw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32109},"main":"./dist/index.js","type":"module","_from":"file:a2a-compliance-schemas-0.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.10.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc -p tsconfig.json --watch","test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"demonskye","email":"rainer.lute.vp@gmail.com"},"_resolved":"/tmp/9b373780ca5f7779da5eb0610142dfd6/a2a-compliance-schemas-0.1.0.tgz","_integrity":"sha512-mEW3Y1bMZL1PWamnJGTGIPsN+nWmhucunvzaSYWAetnJRaFO1qJrhy10wU9JAxo+aIjw2g/BZwTuJSY52vqdGw==","repository":{"url":"git+https://github.com/UltraSkye/a2a-compliance.git","type":"git","directory":"packages/schemas"},"_npmVersion":"11.11.0","description":"Zod schemas for the A2A (Agent2Agent) protocol: Agent Card, JSON-RPC envelope, Task, Message","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.4","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/schemas_0.1.0_1776502463590_0.9307463723257037","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@a2a-compliance/schemas","version":"0.3.0","keywords":["a2a","a2a-protocol","a2a-schema","a2a-compliance","a2a-validator","agent2agent","agent-card","agent-card-schema","agent-card-validator","agent-protocol","ai-agent","ai-agents","llm-agent","llm-tools","google-a2a","zod","zod-schema","schema","validator","json-schema","jsonrpc","json-rpc","json-rpc-2.0","protocol","typescript","types","message","task"],"author":{"name":"a2a-compliance contributors"},"license":"MIT","_id":"@a2a-compliance/schemas@0.3.0","maintainers":[{"name":"demonskye","email":"rainer.lute.vp@gmail.com"}],"homepage":"https://github.com/UltraSkye/a2a-compliance#readme","bugs":{"url":"https://github.com/UltraSkye/a2a-compliance/issues"},"dist":{"shasum":"d374d7f1ea578d8b0ae7ae95a8f4926810f3d66b","tarball":"https://registry.npmjs.org/@a2a-compliance/schemas/-/schemas-0.3.0.tgz","fileCount":23,"integrity":"sha512-eXhbGdL9armahDZ1ualmtQvoC6yWhkh5tWte3erVxl0d80IXBZmJbdwFnhbXqJKbbOj4bHdPP2vlSgWEO4Zvsg==","signatures":[{"sig":"MEUCIQDuJzl82jZ7HGh72QJvNI0erRDZ/es/IlRaxhh8yreaTgIgZHpQbCkrF4c9MHmRlBUtIrjQnW8sI3KmwB88D1zZ7jQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34199},"main":"./dist/index.js","type":"module","_from":"file:a2a-compliance-schemas-0.3.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.10.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc -p tsconfig.json --watch","test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"demonskye","email":"rainer.lute.vp@gmail.com"},"_resolved":"/tmp/5c912351ece6d0d256d162cc98cab1ef/a2a-compliance-schemas-0.3.0.tgz","_integrity":"sha512-eXhbGdL9armahDZ1ualmtQvoC6yWhkh5tWte3erVxl0d80IXBZmJbdwFnhbXqJKbbOj4bHdPP2vlSgWEO4Zvsg==","repository":{"url":"git+https://github.com/UltraSkye/a2a-compliance.git","type":"git","directory":"packages/schemas"},"_npmVersion":"11.11.0","description":"Zod schemas for the A2A (Agent2Agent) protocol: Agent Card, JSON-RPC 2.0 envelope, Task, Message, Part. Zero runtime deps beyond Zod; runs in Node / Bun / Deno / browser / edge.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.4","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/schemas_0.3.0_1776508797975_0.11997087230642367","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@a2a-compliance/schemas","version":"0.3.1","keywords":["a2a","a2a-protocol","a2a-schema","a2a-compliance","a2a-validator","agent2agent","agent-card","agent-card-schema","agent-card-validator","agent-protocol","ai-agent","ai-agents","llm-agent","llm-tools","google-a2a","zod","zod-schema","schema","validator","json-schema","jsonrpc","json-rpc","json-rpc-2.0","protocol","typescript","types","message","task"],"author":{"name":"a2a-compliance contributors"},"license":"MIT","_id":"@a2a-compliance/schemas@0.3.1","maintainers":[{"name":"demonskye","email":"rainer.lute.vp@gmail.com"}],"homepage":"https://github.com/UltraSkye/a2a-compliance#readme","bugs":{"url":"https://github.com/UltraSkye/a2a-compliance/issues"},"dist":{"shasum":"8f4b96735ac444119885df93600750a3830c0d8f","tarball":"https://registry.npmjs.org/@a2a-compliance/schemas/-/schemas-0.3.1.tgz","fileCount":23,"integrity":"sha512-PG9V2lSGI5sLr5+rWi23nBPhTO9uPIQNtqFjfnmQmInRgvAoi+HkAb8JIAxqJnacvKvxfKG+7iz5cUMkkATZuw==","signatures":[{"sig":"MEUCIQD+EUKjxAm5ULsqygqbtirHh010N16D0aQCmP8NLv0RAQIgdYr42R5ErMNvKAX8pVlAJ6PeDfJiC9/4zR+hpYsrFXE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34199},"main":"./dist/index.js","type":"module","_from":"file:a2a-compliance-schemas-0.3.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.10.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc -p tsconfig.json --watch","test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"demonskye","email":"rainer.lute.vp@gmail.com"},"_resolved":"/tmp/0c2c093249d5bf805fad971c3508ca14/a2a-compliance-schemas-0.3.1.tgz","_integrity":"sha512-PG9V2lSGI5sLr5+rWi23nBPhTO9uPIQNtqFjfnmQmInRgvAoi+HkAb8JIAxqJnacvKvxfKG+7iz5cUMkkATZuw==","repository":{"url":"git+https://github.com/UltraSkye/a2a-compliance.git","type":"git","directory":"packages/schemas"},"_npmVersion":"11.11.0","description":"Zod schemas for the A2A (Agent2Agent) protocol: Agent Card, JSON-RPC 2.0 envelope, Task, Message, Part. Zero runtime deps beyond Zod; runs in Node / Bun / Deno / browser / edge.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.4","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/schemas_0.3.1_1776509206123_0.8673356828458996","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@a2a-compliance/schemas","version":"0.3.2","keywords":["a2a","a2a-protocol","a2a-schema","a2a-compliance","a2a-validator","agent2agent","agent-card","agent-card-schema","agent-card-validator","agent-protocol","ai-agent","ai-agents","llm-agent","llm-tools","google-a2a","zod","zod-schema","schema","validator","json-schema","jsonrpc","json-rpc","json-rpc-2.0","protocol","typescript","types","message","task"],"author":{"name":"a2a-compliance contributors"},"license":"MIT","_id":"@a2a-compliance/schemas@0.3.2","maintainers":[{"name":"demonskye","email":"rainer.lute.vp@gmail.com"}],"homepage":"https://github.com/UltraSkye/a2a-compliance#readme","bugs":{"url":"https://github.com/UltraSkye/a2a-compliance/issues"},"dist":{"shasum":"5774f40e30442b4f9a0499128b09c00a22e68ac5","tarball":"https://registry.npmjs.org/@a2a-compliance/schemas/-/schemas-0.3.2.tgz","fileCount":23,"integrity":"sha512-BxyGiMF4n5G3YYqHLKCxq+Tivb+7MtxUaVXUKHmGXdU3R7vwaZu0mdxNIMbTI4CVNA+oOXHU+CfF6wZ0SOVLvg==","signatures":[{"sig":"MEUCIAgOb2c9zOjigqpbWbsXZD0YSQYuLMu24L3Ht0KiDTUHAiEA7PmRvsCJSwu2JTiI+U7Ma77Xtiy+HlRPEnQdydLJcgU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34199},"main":"./dist/index.js","type":"module","_from":"file:a2a-compliance-schemas-0.3.2.tgz","types":"./dist/index.d.ts","engines":{"node":">=22.10.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc -p tsconfig.json --watch","test":"vitest run","build":"tsc -p tsconfig.build.json","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"demonskye","email":"rainer.lute.vp@gmail.com"},"_resolved":"/tmp/94ee0dd3cdc1ba459a8df200b17250bd/a2a-compliance-schemas-0.3.2.tgz","_integrity":"sha512-BxyGiMF4n5G3YYqHLKCxq+Tivb+7MtxUaVXUKHmGXdU3R7vwaZu0mdxNIMbTI4CVNA+oOXHU+CfF6wZ0SOVLvg==","repository":{"url":"git+https://github.com/UltraSkye/a2a-compliance.git","type":"git","directory":"packages/schemas"},"_npmVersion":"11.11.0","description":"Zod schemas for the A2A (Agent2Agent) protocol: Agent Card, JSON-RPC 2.0 envelope, Task, Message, Part. Zero runtime deps beyond Zod; runs in Node / Bun / Deno / browser / edge.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.1","dependencies":{"zod":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.4","typescript":"^5.6.0"},"_npmOperationalInternal":{"tmp":"tmp/schemas_0.3.2_1776515196042_0.4839315548251799","host":"s3://npm-registry-packages-npm-production"}},"0.3.3":{"name":"@a2a-compliance/schemas","version":"0.3.3","description":"Zod schemas for the A2A (Agent2Agent) protocol: Agent Card, JSON-RPC 2.0 envelope, Task, Message, Part. Zero runtime deps beyond Zod; runs in Node / Bun / Deno / browser / edge.","keywords":["a2a","a2a-protocol","a2a-schema","a2a-compliance","a2a-validator","agent2agent","agent-card","agent-card-schema","agent-card-validator","agent-protocol","ai-agent","ai-agents","llm-agent","llm-tools","google-a2a","zod","zod-schema","schema","validator","json-schema","jsonrpc","json-rpc","json-rpc-2.0","protocol","typescript","types","message","task"],"license":"MIT","author":{"name":"a2a-compliance contributors"},"homepage":"https://github.com/UltraSkye/a2a-compliance#readme","bugs":{"url":"https://github.com/UltraSkye/a2a-compliance/issues"},"repository":{"type":"git","url":"git+https://github.com/UltraSkye/a2a-compliance.git","directory":"packages/schemas"},"publishConfig":{"access":"public"},"engines":{"node":">=22.10.0"},"type":"module","sideEffects":false,"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"dependencies":{"zod":"^4.0.0"},"devDependencies":{"typescript":"^5.6.0","vitest":"^4.1.4"},"scripts":{"build":"tsc -p tsconfig.build.json","dev":"tsc -p tsconfig.json --watch","typecheck":"tsc -p tsconfig.json --noEmit","test":"vitest run"},"_id":"@a2a-compliance/schemas@0.3.3","_integrity":"sha512-/DFsVPlEdjnziR6HuYqujaivPkAZUNAyuvbkSB4hF5B/hRSQ6a5H9YMQiEVr6WvtCWagkS9oTjW1m2BGkgipJg==","_resolved":"/tmp/91f9b304edea92eb112a240f3f1a2322/a2a-compliance-schemas-0.3.3.tgz","_from":"file:a2a-compliance-schemas-0.3.3.tgz","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-/DFsVPlEdjnziR6HuYqujaivPkAZUNAyuvbkSB4hF5B/hRSQ6a5H9YMQiEVr6WvtCWagkS9oTjW1m2BGkgipJg==","shasum":"cf516c55c2688defe5f21c442e1b32eda1d02ea7","tarball":"https://registry.npmjs.org/@a2a-compliance/schemas/-/schemas-0.3.3.tgz","fileCount":23,"unpackedSize":34199,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICcxio+VNdbTz21GLmndVooppm0i2ZmtD/BYPxe/JWoIAiARhBrz7+wo9R5OiN0bLKN5EWUoBcoVDrFuWgaHNNX2jw=="}]},"_npmUser":{"name":"demonskye","email":"rainer.lute.vp@gmail.com"},"directories":{},"maintainers":[{"name":"demonskye","email":"rainer.lute.vp@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/schemas_0.3.3_1777021537926_0.05107508687828122"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-18T08:54:23.492Z","modified":"2026-04-24T09:05:38.220Z","0.1.0":"2026-04-18T08:54:23.734Z","0.3.0":"2026-04-18T10:39:58.125Z","0.3.1":"2026-04-18T10:46:46.265Z","0.3.2":"2026-04-18T12:26:36.192Z","0.3.3":"2026-04-24T09:05:38.073Z"},"bugs":{"url":"https://github.com/UltraSkye/a2a-compliance/issues"},"author":{"name":"a2a-compliance contributors"},"license":"MIT","homepage":"https://github.com/UltraSkye/a2a-compliance#readme","keywords":["a2a","a2a-protocol","a2a-schema","a2a-compliance","a2a-validator","agent2agent","agent-card","agent-card-schema","agent-card-validator","agent-protocol","ai-agent","ai-agents","llm-agent","llm-tools","google-a2a","zod","zod-schema","schema","validator","json-schema","jsonrpc","json-rpc","json-rpc-2.0","protocol","typescript","types","message","task"],"repository":{"type":"git","url":"git+https://github.com/UltraSkye/a2a-compliance.git","directory":"packages/schemas"},"description":"Zod schemas for the A2A (Agent2Agent) protocol: Agent Card, JSON-RPC 2.0 envelope, Task, Message, Part. Zero runtime deps beyond Zod; runs in Node / Bun / Deno / browser / edge.","maintainers":[{"name":"demonskye","email":"rainer.lute.vp@gmail.com"}],"readme":"# @a2a-compliance/schemas\n\n> **Zod schemas for the [A2A (Agent2Agent) protocol](https://a2a-protocol.org/).**\n> Parse and validate Agent Cards, JSON-RPC envelopes, Tasks, and\n> Messages without depending on a full runtime. Zero runtime deps\n> beyond Zod; runs in Node, Bun, Deno, the browser, and edge runtimes.\n\n[![npm](https://img.shields.io/npm/v/%40a2a-compliance%2Fschemas.svg)](https://www.npmjs.com/package/@a2a-compliance/schemas)\n[![license](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/UltraSkye/a2a-compliance/blob/main/LICENSE)\n\nPart of [`a2a-compliance`](https://github.com/UltraSkye/a2a-compliance).\nIf you want the assertion engine + reporters, use\n[`@a2a-compliance/core`](https://www.npmjs.com/package/@a2a-compliance/core).\nFor a CLI, use\n[`@a2a-compliance/cli`](https://www.npmjs.com/package/@a2a-compliance/cli).\n\n## Install\n\n```bash\nnpm i @a2a-compliance/schemas\n# or\npnpm add @a2a-compliance/schemas\n```\n\n## What's in the box\n\n| Export | Description |\n|---|---|\n| `AgentCardSchema` | Zod schema for `/.well-known/agent-card.json` |\n| `AgentCard` | TypeScript type inferred from the schema |\n| `AgentSkillSchema`, `AgentProviderSchema`, `AgentAuthenticationSchema`, `AgentCapabilitiesSchema` | Sub-schemas |\n| `AGENT_CARD_WELL_KNOWN_PATH` | `'/.well-known/agent-card.json'` |\n| `JsonRpcRequestSchema`, `JsonRpcResponseSchema` | JSON-RPC 2.0 envelopes |\n| `JsonRpcErrorCode`, `A2AErrorCode` | Numeric constants for the error taxonomy |\n| `MessageSchema`, `PartSchema` | A2A Message + discriminated Part union (text / file / data) |\n| `TaskSchema`, `TaskStateSchema` | A2A Task and its state enum |\n| `makeProbeMessage(text)` | UUID-keyed valid Message for smoke testing |\n| `isErrorResponse(r)` | Type-guard narrowing a response to the error variant |\n\n## Usage\n\n```ts\nimport { AgentCardSchema } from '@a2a-compliance/schemas';\n\nconst res = await fetch('https://agent.example.com/.well-known/agent-card.json');\nconst parsed = AgentCardSchema.safeParse(await res.json());\nif (!parsed.success) {\n  console.error(parsed.error.issues);\n  return;\n}\nconsole.log(parsed.data.name, '→', parsed.data.skills.length, 'skills');\n```\n\nValidate a JSON-RPC response:\n\n```ts\nimport { JsonRpcResponseSchema, isErrorResponse } from '@a2a-compliance/schemas';\n\nconst parsed = JsonRpcResponseSchema.safeParse(await res.json());\nif (parsed.success && isErrorResponse(parsed.data)) {\n  console.error('RPC error', parsed.data.error.code, parsed.data.error.message);\n}\n```\n\n## Design notes\n\n- **HTTPS-only URL fields.** `card.url`, `provider.url`,\n  `documentationUrl` reject non-http(s) schemes at the schema layer —\n  no `javascript:`, `data:`, `file:`, `mailto:`, `gopher:`. Prevents a\n  malicious card from feeding those URIs into downstream clients that\n  blindly trust parsed input.\n- **Strict parts.** `Part` is a discriminated union on `kind` (v1.0):\n  `text` / `file` / `data`. Mistyped parts fail parse.\n- **Forward-compatible.** Unknown top-level fields are tolerated so\n  cards from future minor versions still parse; missing required\n  fields fail as expected.\n\n## Spec version\n\nTargets A2A protocol spec **v0.3** and **v1.0**.\n\n## See also\n\n- 🏠 [Repository + full docs](https://github.com/UltraSkye/a2a-compliance)\n- 🤖 [`AGENTS.md`](https://github.com/UltraSkye/a2a-compliance/blob/main/AGENTS.md) — AI-agent quick reference\n- 🧱 [`@a2a-compliance/core`](https://www.npmjs.com/package/@a2a-compliance/core) — assertion engine that uses these schemas\n- 🔌 [`@a2a-compliance/cli`](https://www.npmjs.com/package/@a2a-compliance/cli) — command-line tool\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}