{"_id":"@agent-society/shared","_rev":"2-46d9fe07675fadccbeb09a342aea1feb","name":"@agent-society/shared","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@agent-society/shared","version":"1.0.0","keywords":["interledger","ilp","payment","oer","codec","types"],"license":"MIT","_id":"@agent-society/shared@1.0.0","maintainers":[{"name":"di3twater","email":"dev.jonathan.green@gmail.com"}],"homepage":"https://github.com/ALLiDoizCode/agent-runtime/tree/main/packages/shared#readme","bugs":{"url":"https://github.com/ALLiDoizCode/agent-runtime/issues"},"dist":{"shasum":"a978e424c57da1ac5f390f5c3032422984829c5a","tarball":"https://registry.npmjs.org/@agent-society/shared/-/shared-1.0.0.tgz","fileCount":35,"integrity":"sha512-QKz0Sruw59LQ0Z7yeOqESesImIZbAnnksgqClgJ3uAYQoSUT5iNvxkCWLkwatuYTGe6ukjdkLQcAT/ETLcAaRw==","signatures":[{"sig":"MEUCIFAM+vSz2savEXmT6EXbWLPSd/K9GwoV7Rq4E8SbBqKTAiEAkKXc+gDm/Ic9MJPbhESWginE9zIFla61Qpqy/Bq9EB4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":87435},"main":"dist/index.js","types":"dist/index.d.ts","engines":{"node":">=22.11.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"fa3a19b8d18e5e750f46d93ec91cc058be76e333","scripts":{"lint":"eslint src --ext .ts","test":"jest","build":"tsc","test:watch":"jest --watch","test:coverage":"jest --coverage","prepublishOnly":"npm run build && npm test"},"_npmUser":{"name":"di3twater","email":"dev.jonathan.green@gmail.com"},"repository":{"url":"git+https://github.com/ALLiDoizCode/agent-runtime.git","type":"git","directory":"packages/shared"},"_npmVersion":"11.6.2","description":"Shared TypeScript types and utilities for Agent Runtime","directories":{},"_nodeVersion":"24.12.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.2","@types/jest":"^29.5.12","@types/node":"^20.11.19"},"_npmOperationalInternal":{"tmp":"tmp/shared_1.0.0_1771119512028_0.9446938662669517","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@agent-society/shared","version":"1.0.1","description":"Shared TypeScript types and utilities for Agent Runtime","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/ALLiDoizCode/agent-runtime.git","directory":"packages/shared"},"license":"MIT","engines":{"node":">=22.11.0"},"keywords":["interledger","ilp","payment","oer","codec","types"],"homepage":"https://github.com/ALLiDoizCode/agent-runtime/tree/main/packages/shared#readme","bugs":{"url":"https://github.com/ALLiDoizCode/agent-runtime/issues"},"scripts":{"build":"tsc","test":"jest","test:coverage":"jest --coverage","test:watch":"jest --watch","lint":"eslint src --ext .ts","prepublishOnly":"npm run build && npm test"},"dependencies":{},"devDependencies":{"@types/jest":"^29.5.12","@types/node":"^20.11.19","jest":"^29.7.0","ts-jest":"^29.1.2"},"_id":"@agent-society/shared@1.0.1","gitHead":"fbb7536ab3ee5a7bfd61074991dedbfe1d14cfe5","_nodeVersion":"24.12.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-khTyVhCzuPeF0jMDv2EkXnrDtJJnDjO0nonL5k13iXGLu0dCHFRKaus+urWuKDfG/ouymz4AZPrBqD+fvX7Ltg==","shasum":"e1cceb92da047a6f9408f4c0cff2f93ae5de7f66","tarball":"https://registry.npmjs.org/@agent-society/shared/-/shared-1.0.1.tgz","fileCount":35,"unpackedSize":87564,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDwfhcQawiiIfloHBomJEQmMnXOUOUsbKBuGtsoeI1RVgIgTUZ7m6ZFDxRsnbwqQMj52+7BU9vqC78KgBAXdgNJbMs="}]},"_npmUser":{"name":"di3twater","email":"dev.jonathan.green@gmail.com"},"directories":{},"maintainers":[{"name":"di3twater","email":"dev.jonathan.green@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/shared_1.0.1_1771277085689_0.3184293305797481"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-15T01:38:31.935Z","modified":"2026-02-16T21:24:45.986Z","1.0.0":"2026-02-15T01:38:32.183Z","1.0.1":"2026-02-16T21:24:45.841Z"},"bugs":{"url":"https://github.com/ALLiDoizCode/agent-runtime/issues"},"license":"MIT","homepage":"https://github.com/ALLiDoizCode/agent-runtime/tree/main/packages/shared#readme","keywords":["interledger","ilp","payment","oer","codec","types"],"repository":{"type":"git","url":"git+https://github.com/ALLiDoizCode/agent-runtime.git","directory":"packages/shared"},"description":"Shared TypeScript types and utilities for Agent Runtime","maintainers":[{"name":"di3twater","email":"dev.jonathan.green@gmail.com"}],"readme":"# @agent-society/shared\n\n[![npm](https://img.shields.io/npm/v/@agent-society/shared)](https://www.npmjs.com/package/@agent-society/shared)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](../../LICENSE)\n\n> Shared ILP types and OER codec for the [agent-runtime](https://github.com/ALLiDoizCode/agent-runtime) monorepo.\n\n## Install\n\n```bash\nnpm install @agent-society/shared\n```\n\n## Usage\n\n```typescript\nimport {\n  ILPPreparePacket,\n  PacketType,\n  serializePacket,\n  deserializePacket,\n} from '@agent-society/shared';\n\n// Create an ILP Prepare packet\nconst prepare: ILPPreparePacket = {\n  type: PacketType.Prepare,\n  amount: BigInt(1000),\n  expiresAt: new Date(Date.now() + 30000),\n  executionCondition: Buffer.alloc(32),\n  destination: 'g.example.receiver',\n  data: Buffer.alloc(0),\n};\n\n// Serialize to binary (OER encoding per RFC-0030)\nconst encoded: Buffer = serializePacket(prepare);\n\n// Deserialize back\nconst decoded = deserializePacket(encoded);\n```\n\n## Exports\n\n**ILP Packets:** `ILPPreparePacket`, `ILPFulfillPacket`, `ILPRejectPacket`, `ILPPacket`, `PacketType`, `ILPErrorCode`\n\n**BTP Types:** BTP message and frame types for bilateral transfer protocol\n\n**Routing:** `RoutingTableEntry` and routing table structures\n\n**Telemetry:** `TelemetryEvent`, settlement events, payment channel events\n\n**Payment Channels:** `ChannelState`, `ChannelStatus`, `BalanceProof`\n\n**Validation:** `isValidILPAddress`, `isPreparePacket`, `isFulfillPacket`, `isRejectPacket`\n\n**OER Codec:** `serializePacket`, `deserializePacket`, OER primitives\n\n## License\n\nMIT — see [LICENSE](../../LICENSE).\n","readmeFilename":"README.md"}