{"_id":"@aethex.os/game","_rev":"3-b9bb07fc744de0231187f0c160e87e68","name":"@aethex.os/game","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@aethex.os/game","version":"1.0.0","keywords":["aethex","game","metaverse","minecraft","roblox","steam","meta","schema","types","zod","matchmaking"],"author":{"name":"AeThex Corporation"},"license":"MIT","_id":"@aethex.os/game@1.0.0","maintainers":[{"name":"mrpiglr","email":"mrpiglr@aethex.dev"}],"homepage":"https://aethex.dev","bugs":{"url":"https://github.com/AeThex-Corporation/AeThex-OS/issues"},"dist":{"shasum":"ffbfcfcb76a799468b38797e977cb4646b449ec6","tarball":"https://registry.npmjs.org/@aethex.os/game/-/game-1.0.0.tgz","fileCount":9,"integrity":"sha512-dCkXVM1MzMSFnofPPcBmzAVMXHZKR8hTgtDBWvcAT7xleBMO/Zm/sC+peMdEjXwNt7bHQtHJrLiynmLctrBEzA==","signatures":[{"sig":"MEUCIBmytEM/nxD/PSRU8xdAasEG4YbXKG7ltrg0O9LgbvumAiEAtH8ZETbh3W3HLHTo+NqUFlbrPyQFCHHnxSILntWjCO8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25208},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"b094d5c032765a30612c2348ce0356d3a50d9feb","scripts":{"dev":"tsc --watch","build":"tsc"},"_npmUser":{"name":"mrpiglr","email":"mrpiglr@aethex.dev"},"repository":{"url":"git+https://github.com/AeThex-Corporation/AeThex-OS.git","type":"git","directory":"packages/aethex-game"},"_npmVersion":"11.12.1","description":"AeThex game platform types — Zod schemas and TypeScript types for Minecraft, Roblox, Steam, Meta, and more","directories":{},"_nodeVersion":"22.22.0","dependencies":{"zod":"^3.22.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/game_1.0.0_1777698347259_0.7317123745337863","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aethex.os/game","version":"1.0.1","keywords":["aethex","game","metaverse","minecraft","roblox","steam","meta","schema","types","zod","matchmaking"],"author":{"name":"AeThex Corporation"},"license":"MIT","_id":"@aethex.os/game@1.0.1","maintainers":[{"name":"mrpiglr","email":"mrpiglr@aethex.dev"}],"homepage":"https://aethex.dev","bugs":{"url":"https://github.com/AeThex-Corporation/AeThex-OS/issues"},"dist":{"shasum":"dc1992bda49da9dbbb88f23947256d3d419c9827","tarball":"https://registry.npmjs.org/@aethex.os/game/-/game-1.0.1.tgz","fileCount":10,"integrity":"sha512-+rqVrfJ0P15tRWB5MdLSaU6W+NuSX8weKeYPbb+6UfiYS+I6fpRBDqwK90mX0zYzL/xxVwME6bMNBpohFvGLpw==","signatures":[{"sig":"MEYCIQCN9sohz+QPYuLCr4vY3k9zoA9n8f/ybn4yofuc0rQLigIhAOZP8wlY2ObRHjMfujb5+GCkSHIl6ZZPO3gpiZpv0eno","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27275},"main":"lib/index.js","types":"lib/index.d.ts","engines":{"node":">=18.0.0"},"gitHead":"b094d5c032765a30612c2348ce0356d3a50d9feb","scripts":{"dev":"tsc --watch","build":"tsc"},"_npmUser":{"name":"mrpiglr","email":"mrpiglr@aethex.dev"},"repository":{"url":"git+https://github.com/AeThex-Corporation/AeThex-OS.git","type":"git","directory":"packages/aethex-game"},"_npmVersion":"11.12.1","description":"AeThex game platform types — Zod schemas and TypeScript types for Minecraft, Roblox, Steam, Meta, and more","directories":{},"_nodeVersion":"22.22.0","dependencies":{"zod":"^3.22.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/game_1.0.1_1777932476427_0.4564207674928835","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@aethex.os/game","version":"1.0.2","description":"AeThex game platform types — Zod schemas and TypeScript types for Minecraft, Roblox, Steam, Meta, and more","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"build":"tsc","dev":"tsc --watch"},"keywords":["aethex","game","metaverse","minecraft","roblox","steam","meta","schema","types","zod","matchmaking"],"author":{"name":"AeThex Corporation"},"license":"MIT","homepage":"https://aethex.dev/docs","repository":{"type":"git","url":"git+https://git.aethex.tech/Labs/os.git","directory":"packages/aethex-game"},"dependencies":{"zod":"^3.22.0"},"devDependencies":{"@types/node":"^20.0.0","typescript":"^5.3.0"},"engines":{"node":">=18.0.0"},"bugs":{"url":"https://git.aethex.tech/Labs/os/issues"},"_id":"@aethex.os/game@1.0.2","gitHead":"6c77abd6440deb925777f64998d4c67a398236e0","_nodeVersion":"22.22.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-PUjZSQonDLolNV6nmslZBqS6VuvsaHLdgYw1sE6c8SvQYPPEy3i28PnfI40CrWbnf/4bJR7jqnzasTvqs36edQ==","shasum":"bb3c527d97bcd7b3b20eae9741e67735263b3a63","tarball":"https://registry.npmjs.org/@aethex.os/game/-/game-1.0.2.tgz","fileCount":10,"unpackedSize":27337,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDobbvx+6/0a45eXJ1mZog/EZvqHRFVooCJOG7Qn3McrgIgM7RVaaMr6adUKJuGsl9dCHF5+DpVVtGXu8Z6N1Bx6dc="}]},"_npmUser":{"name":"mrpiglr","email":"mrpiglr@aethex.dev"},"directories":{},"maintainers":[{"name":"mrpiglr","email":"mrpiglr@aethex.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/game_1.0.2_1783400203418_0.06259891965312248"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-02T05:05:47.128Z","modified":"2026-07-07T04:56:43.668Z","1.0.0":"2026-05-02T05:05:47.467Z","1.0.1":"2026-05-04T22:07:56.563Z","1.0.2":"2026-07-07T04:56:43.543Z"},"bugs":{"url":"https://git.aethex.tech/Labs/os/issues"},"author":{"name":"AeThex Corporation"},"license":"MIT","homepage":"https://aethex.dev/docs","keywords":["aethex","game","metaverse","minecraft","roblox","steam","meta","schema","types","zod","matchmaking"],"repository":{"type":"git","url":"git+https://git.aethex.tech/Labs/os.git","directory":"packages/aethex-game"},"description":"AeThex game platform types — Zod schemas and TypeScript types for Minecraft, Roblox, Steam, Meta, and more","maintainers":[{"name":"mrpiglr","email":"mrpiglr@aethex.dev"}],"readme":"# @aethex.os/game\n\nZod schemas and TypeScript types for game platform integrations — accounts, profiles, achievements, servers, matchmaking, sessions, assets, and marketplace items across Minecraft, Roblox, Steam, Meta, and more.\n\n## Install\n\n```bash\nnpm install @aethex.os/game\n```\n\n## Usage\n\n### Validate incoming data\n\n```ts\nimport { GameAccountSchema, MatchmakingTicketSchema } from '@aethex.os/game';\n\nconst account = GameAccountSchema.parse(req.body);\n// throws ZodError if invalid, returns typed GameAccount if valid\n```\n\n### Type your functions\n\n```ts\nimport type { GameAccount, GameAchievement, GameServer } from '@aethex.os/game';\n\nfunction grantAchievement(userId: string, achievement: GameAchievement) {\n  // ...\n}\n```\n\n### Schemas\n\n| Schema | What it validates |\n|---|---|\n| `GameAccountSchema` | Platform account link (Minecraft, Roblox, Steam, Meta, Twitch, etc.) |\n| `GameProfileSchema` | Platform-specific profile stats |\n| `GameAchievementSchema` | Achievement with rarity, points, unlock time |\n| `GameServerSchema` | Game server with location, capacity, status |\n| `GameAssetSchema` | 3D assets, textures, audio with license info |\n| `MatchmakingTicketSchema` | Matchmaking request with skill rating and regions |\n| `GameSessionSchema` | Active game session state |\n| `GameEventSchema` | Analytics event (player_died, objective_completed, etc.) |\n| `GameItemSchema` | Marketplace item with rarity and trading info |\n\n### Supported platforms\n\n```ts\nimport { GamePlatform } from '@aethex.os/game';\n// 'minecraft' | 'roblox' | 'steam' | 'meta' | 'twitch' | 'youtube' | 'eos' | 'epic'\n```\n\n### Rarity enum\n\n```ts\nimport { Rarity } from '@aethex.os/game';\n// 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary'\n```\n\n### Safe parsing\n\n```ts\nconst result = GameAccountSchema.safeParse(data);\nif (!result.success) {\n  console.log(result.error.issues);\n} else {\n  const account = result.data; // fully typed\n}\n```\n\n## Part of the @aethex.os ecosystem\n\nSee [@aethex.os/core](https://npmjs.com/package/@aethex.os/core) for the full package list.\n","readmeFilename":"README.md"}