{"_id":"@anteriorai/srg-types","_rev":"5-d3090afdce0b3876d4a83566673e1fc3","name":"@anteriorai/srg-types","dist-tags":{"latest":"0.6.1"},"versions":{"0.5.1":{"name":"@anteriorai/srg-types","version":"0.5.1","keywords":["srg","types","typescript","symbolic-reasoning","json-schema"],"license":"SEE LICENSE IN LICENSE","_id":"@anteriorai/srg-types@0.5.1","maintainers":[{"name":"ant-alpacolypse","email":"anuj@anterior.com"},{"name":"vitali_avagyan","email":"vitali.avagyan@anterior.com"}],"homepage":"https://github.com/anteriorai/symbolic-reasoning#readme","bugs":{"url":"https://github.com/anteriorai/symbolic-reasoning/issues"},"dist":{"shasum":"07bbafecca457f1a42b7da1e32b978030fc0dd65","tarball":"https://registry.npmjs.org/@anteriorai/srg-types/-/srg-types-0.5.1.tgz","fileCount":7,"integrity":"sha512-tf8AtIdmjkbI/w39s9637nML95UM9SO5YU7sDvJGiOaEB/6kg1bghi14aqkuImzPFe0pHq1c6Id3sOVtkflDgA==","signatures":[{"sig":"MEQCIEAk09YhwG2FBMyL7F2ogn8wook2xgP8kiWIbuWNrC+7AiBAhUCHH1d4D/CT7oqWKzR9EcMn/8CrWp+JzBYWs114ZA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12661},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=24.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"e9693600ab401c56a7f4f6c5f22d56d685564627","private":false,"scripts":{"build":"tsc"},"_npmUser":{"name":"ant-alpacolypse","email":"anuj@anterior.com"},"repository":{"url":"git+https://github.com/anteriorai/symbolic-reasoning.git","type":"git","directory":"packages/srg-types"},"_npmVersion":"10.9.2","description":"TypeScript types for SRG (Symbolic Reasoning Graph) schema","directories":{},"_nodeVersion":"22.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/srg-types_0.5.1_1778567524792_0.12880759265007602","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@anteriorai/srg-types","version":"0.6.0","keywords":["srg","types","typescript","symbolic-reasoning","json-schema"],"license":"SEE LICENSE IN LICENSE","_id":"@anteriorai/srg-types@0.6.0","maintainers":[{"name":"ant-alpacolypse","email":"anuj@anterior.com"},{"name":"vitali_avagyan","email":"vitali.avagyan@anterior.com"}],"homepage":"https://github.com/anteriorai/symbolic-reasoning#readme","bugs":{"url":"https://github.com/anteriorai/symbolic-reasoning/issues"},"dist":{"shasum":"e664a20a7e68069fc56d7585242413cf55ff7651","tarball":"https://registry.npmjs.org/@anteriorai/srg-types/-/srg-types-0.6.0.tgz","fileCount":7,"integrity":"sha512-x3VI4kKKDykoTS2zFi0CeeklnJceCR6SangNaJUnOrCwvoXKrAUrqDvI7rb6geW5XL3Yh2PgMwe3hIjHsHhWTA==","signatures":[{"sig":"MEUCIFsqAdT/M3THg2ZvXhmcwGwQYmg0nna2yRfJ/IrD0O1PAiEAlLviy8heAFS04Q00M9WPNg1ZBArbs28Vws2a6HdvWkQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12661},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=24.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"137137672d18f28a4d31a3a73081e9a2b24bcbc5","private":false,"scripts":{"build":"tsc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0bdc11d4-239b-445e-8815-60e26f2b1408"}},"repository":{"url":"git+https://github.com/anteriorai/symbolic-reasoning.git","type":"git","directory":"packages/srg-types"},"_npmVersion":"11.6.2","description":"TypeScript types for SRG (Symbolic Reasoning Graph) schema","directories":{},"_nodeVersion":"24.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/srg-types_0.6.0_1782925052541_0.149046626855724","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"@anteriorai/srg-types","version":"0.6.1","private":false,"license":"SEE LICENSE IN LICENSE","description":"TypeScript types for SRG (Symbolic Reasoning Graph) schema","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","publishConfig":{"access":"public"},"exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsc"},"keywords":["srg","types","typescript","symbolic-reasoning","json-schema"],"engines":{"node":">=24.0.0"},"devDependencies":{"typescript":"5.9.3"},"repository":{"type":"git","url":"git+https://github.com/anteriorai/symbolic-reasoning.git","directory":"packages/srg-types"},"gitHead":"81b1da875eee92a866fcf59bc2256042131a3288","_id":"@anteriorai/srg-types@0.6.1","bugs":{"url":"https://github.com/anteriorai/symbolic-reasoning/issues"},"homepage":"https://github.com/anteriorai/symbolic-reasoning#readme","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-rMgXXYgwntn17JhMfkW9/w81+jW+OZPbm/vsGvFaUWmshlcYjqqCYWOWTZQDYVCWs6EdKHJlj6HqjxbFD8XAPA==","shasum":"f135cec4d11f4d21bd1bcf4741b1d489c12ef536","tarball":"https://registry.npmjs.org/@anteriorai/srg-types/-/srg-types-0.6.1.tgz","fileCount":7,"unpackedSize":12661,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCERgqB1qe4HFGz6Ue7F2G4nHhwGycB+BIBQtiYDEVf3AIhAJLzdkAE61KUQvelYvySHEW0xbaIC7UB8FLS6h9ZLJxY"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0bdc11d4-239b-445e-8815-60e26f2b1408"}},"directories":{},"maintainers":[{"name":"ant-alpacolypse","email":"anuj@anterior.com"},{"name":"vitali_avagyan","email":"vitali.avagyan@anterior.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/srg-types_0.6.1_1782937367368_0.7396772173802721"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-12T06:32:04.640Z","modified":"2026-07-01T20:22:47.678Z","0.5.0":"2026-05-05T22:47:21.939Z","0.5.1":"2026-05-12T06:32:04.941Z","0.6.0":"2026-07-01T16:57:32.706Z","0.6.1":"2026-07-01T20:22:47.533Z"},"bugs":{"url":"https://github.com/anteriorai/symbolic-reasoning/issues"},"license":"SEE LICENSE IN LICENSE","homepage":"https://github.com/anteriorai/symbolic-reasoning#readme","keywords":["srg","types","typescript","symbolic-reasoning","json-schema"],"repository":{"type":"git","url":"git+https://github.com/anteriorai/symbolic-reasoning.git","directory":"packages/srg-types"},"description":"TypeScript types for SRG (Symbolic Reasoning Graph) schema","maintainers":[{"name":"ant-alpacolypse","email":"anuj@anterior.com"},{"name":"vitali_avagyan","email":"vitali.avagyan@anterior.com"}],"readme":"# @anteriorai/srg-types\n\nTypeScript type definitions for the SRG (Symbolic Reasoning Graph) schema.\n\n> **Public preview.** This package is an early public release of Anterior's symbolic reasoning tooling.\n> It is being published to support transparency, research discussion, and early experimentation while the broader open-source repository is prepared for release.\n>\n> Future releases may be made available under updated licensing terms. Until then, use of this package is governed by the license included with this release.\n>\n> This release should not be treated as a supported product, a stable API, or a complete reference implementation.\n> It is provided \"as is,\" without warranties of any kind. Users are responsible for evaluating correctness, security, compliance, and suitability for their own use case.\n\n## Installation\n\n```bash\nnpm install @anteriorai/srg-types\n```\n\n## Usage\n\n```typescript\nimport type { SRG, Predicate, Aggregator, Outcome } from '@anteriorai/srg-types';\n\n// Use the types in your code\nfunction processSRG(srg: SRG) {\n  console.log('Predicates:', Object.keys(srg.predicates).length);\n  console.log('Aggregators:', Object.keys(srg.aggregators).length);\n  console.log('Outcomes:', Object.keys(srg.outcomes).length);\n}\n\n// Create an SRG instance\nconst mySRG: SRG = {\n  predicates: {\n    is_adult: {\n      type: 'Predicate',\n      id: 'is_adult',\n      question: 'Is the person 18 or older?',\n      context: null,\n    },\n  },\n  aggregators: {},\n  outcomes: {\n    approved: {\n      type: 'Outcome',\n      id: 'approved',\n      description: 'Application approved',\n    },\n  },\n  nodes: {\n    Root: { id: 'Root', item_id: 'Root' },\n    SN_1: { id: 'SN_1', item_id: 'is_adult' },\n    SN_2: { id: 'SN_2', item_id: 'approved' },\n  },\n  edges: {\n    'E_Root->SN_1': { source: 'Root', target: 'SN_1', condition: true },\n    'E_SN_1->SN_2': { source: 'SN_1', target: 'SN_2', condition: true },\n  },\n  policy_context: null,\n};\n```\n\n## Type Exports\n\nThis package exports all types defined in the SRG JSON Schema, including:\n\n- `SRG` - The main SRG structure\n- `Predicate` - A predicate (question) definition\n- `Aggregator` - An aggregator (boolean logic) definition\n- `Outcome` - An outcome definition\n- `Node` - A graph node\n- `Edge` - A graph edge\n- `Strategy` - Aggregation strategies (AllStrategy, AtLeastStrategy, etc.)\n\n## Schema Version\n\nThese types are generated from `schemas/srg-schema-v1.json`.\n\n## Development\n\nThese types are automatically generated from the JSON Schema using [`json-schema-to-typescript`](https://github.com/bcherny/json-schema-to-typescript).\n\n","readmeFilename":"README.md"}