diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 000000000..1f36be9aa --- /dev/null +++ b/.mcp.json @@ -0,0 +1,11 @@ +{ + "mcpServers": { + "nano-banana": { + "command": "npx", + "args": ["-y", "nano-banana-mcp@1.0.3"], + "env": { + "GEMINI_API_KEY": "${GEMINI_API_KEY}" + } + } + } +} diff --git a/package-lock.json b/package-lock.json index 0e7fcc926..71d8a2b08 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,14 +12,14 @@ "src/*" ], "dependencies": { - "@accordproject/cicero-core": "2.1.1", - "@accordproject/concerto-cli": "4.0.1", - "@accordproject/concerto-codegen": "4.1.3", - "@accordproject/concerto-core": "4.1.4", - "@accordproject/concerto-util": "4.1.4", - "@accordproject/markdown-cicero": "1.0.1", - "@accordproject/markdown-html": "1.0.1", - "@accordproject/template-engine": "4.0.0", + "@accordproject/cicero-core": "github:accordproject/template-archive#claude/agreement-1.0-dual-runtime-dist", + "@accordproject/concerto-cli": "^4.2.0", + "@accordproject/concerto-codegen": "^6.3.0", + "@accordproject/concerto-core": "^5.0.0", + "@accordproject/concerto-util": "^5.0.0", + "@accordproject/markdown-cicero": "^1.1.0", + "@accordproject/markdown-html": "^1.1.0", + "@accordproject/template-engine": "github:accordproject/template-engine#claude/agreement-1.0-logic-dist", "adm-zip": "^0.4.11", "bulma": "^0.7.1", "chai": "4.2.0", @@ -52,17 +52,16 @@ } }, "node_modules/@accordproject/cicero-core": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@accordproject/cicero-core/-/cicero-core-2.1.1.tgz", - "integrity": "sha512-1OkV41WYM7zJhwSjDUOkJfj36OmZNxwEWFATec8Bt2dKKtdijU4T1T/K0M/NriI1W3C/eeSIDTdT/UITzUnvRg==", + "version": "2.3.0-agreement.0", + "resolved": "git+ssh://git@github.com/accordproject/template-archive.git#44aabf7c5297fcc40f01f3c14bbe7fe373a10913", "license": "Apache-2.0", "dependencies": { - "@accordproject/concerto-core": "4.1.4", - "@accordproject/concerto-util": "4.1.4", - "@accordproject/markdown-cicero": "1.0.1", - "@accordproject/markdown-common": "1.0.1", - "@accordproject/markdown-template": "1.0.1", - "@accordproject/markdown-transform": "1.0.1", + "@accordproject/concerto-core": "^5.0.0", + "@accordproject/concerto-util": "^5.0.0", + "@accordproject/markdown-cicero": "^1.1.0", + "@accordproject/markdown-common": "^1.1.0", + "@accordproject/markdown-template": "^1.1.0", + "@accordproject/markdown-transform": "^1.1.0", "axios": "1.15.0", "debug": "4.3.4", "ietf-language-tag-regex": "0.0.5", @@ -79,7 +78,7 @@ "npm": ">=10" }, "peerDependencies": { - "@accordproject/concerto-core": "^4.1.3" + "@accordproject/concerto-core": "^5.0.0" } }, "node_modules/@accordproject/cicero-core/node_modules/lru-cache": { @@ -116,12 +115,12 @@ "license": "ISC" }, "node_modules/@accordproject/concerto-analysis": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-analysis/-/concerto-analysis-4.1.2.tgz", - "integrity": "sha512-w3d9ths1jtbHnD4HttKtlV/KcIkcGq3VhwA7VKYEx1rkufcLfpSoVD1jLhVQ+ct784nRAC/pjIUq9+V9nFl+vA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@accordproject/concerto-analysis/-/concerto-analysis-5.0.0.tgz", + "integrity": "sha512-UmJdUMMp82ErBv2894Nlz6exEuEMWQd81aGA4zvg7x6TzWRrmoaZdC2VF7ZsRuoh6w996iZ3ojeZK//qup7JXA==", "license": "Apache-2.0", "dependencies": { - "@accordproject/concerto-core": "4.1.2", + "@accordproject/concerto-core": "5.0.0", "semver": "7.5.4" }, "engines": { @@ -129,98 +128,6 @@ "npm": ">=10" } }, - "node_modules/@accordproject/concerto-analysis/node_modules/@accordproject/concerto-core": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-core/-/concerto-core-4.1.2.tgz", - "integrity": "sha512-2k5J4Rwb50DZQwdMS1hQMNwHMqtETTjkqSjVXYopemzNjYdlGAF+6FrRl2cC7zfxIffiQbd0FJPbE0bDJ0mf+A==", - "license": "Apache-2.0", - "dependencies": { - "@accordproject/concerto-cto": "4.1.2", - "@accordproject/concerto-metamodel": "^3.13.0", - "@accordproject/concerto-util": "4.1.2", - "dayjs": "1.11.13", - "debug": "4.3.7", - "lorem-ipsum": "2.0.8", - "randexp": "0.5.3", - "rfdc": "1.4.1", - "semver": "7.6.3", - "urijs": "1.19.11", - "uuid": "11.0.3", - "yaml": "^2.8.3" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-analysis/node_modules/@accordproject/concerto-core/node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@accordproject/concerto-analysis/node_modules/@accordproject/concerto-core/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@accordproject/concerto-analysis/node_modules/@accordproject/concerto-cto": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-cto/-/concerto-cto-4.1.2.tgz", - "integrity": "sha512-oidSD2YC26YRiuEUctgYhIN2HMnNRA4TH/rTvMdmLUJasfD947TYCh4XwtJ4YNcjpRy80TRmCwcup7O/CIQ0vA==", - "license": "Apache-2.0", - "dependencies": { - "@accordproject/concerto-metamodel": "^3.13.0", - "@accordproject/concerto-util": "4.1.2", - "acorn": "^8.15.0", - "path-browserify": "^1.0.1", - "schema-utils": "^4.3.3" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-analysis/node_modules/@accordproject/concerto-util": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-util/-/concerto-util-4.1.2.tgz", - "integrity": "sha512-pHtZuWDrLXuNLrpyGaoRKcSW5fBZyrnz9IQ27aNnQt+JLSTovQzkw/JHuPUSi9EWZBC1/Ak/yUCiDpLjHfV1Dg==", - "license": "Apache-2.0", - "dependencies": { - "@supercharge/promise-pool": "1.7.0", - "colors": "1.4.0", - "debug": "4.3.4", - "slash": "3.0.0" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-analysis/node_modules/dayjs": { - "version": "1.11.13", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", - "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", - "license": "MIT" - }, "node_modules/@accordproject/concerto-analysis/node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -233,12 +140,6 @@ "node": ">=10" } }, - "node_modules/@accordproject/concerto-analysis/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, "node_modules/@accordproject/concerto-analysis/node_modules/semver": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", @@ -254,19 +155,6 @@ "node": ">=10" } }, - "node_modules/@accordproject/concerto-analysis/node_modules/uuid": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.3.tgz", - "integrity": "sha512-d0z310fCWv5dJwnX1Y/MncBAqGMKEzlBb1AOf7z9K8ALnd0utBX/msg/fA0+sbyN1ihbMsLhrBlnl1ak7Wa0rg==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/esm/bin/uuid" - } - }, "node_modules/@accordproject/concerto-analysis/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -274,18 +162,19 @@ "license": "ISC" }, "node_modules/@accordproject/concerto-cli": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-cli/-/concerto-cli-4.0.1.tgz", - "integrity": "sha512-c9LmMCrAspcuqcULcOZwZ1fcFJJJVY+r8/LEKgR7EwtupIMJUkXihd1S8aea/CztLfbdIS8MHOGZqAq+IyM5lw==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@accordproject/concerto-cli/-/concerto-cli-4.2.0.tgz", + "integrity": "sha512-pLR1B2j+YJdhcyuSLsE1XwRQkwHTbXrOxY++x6Fp0AWa2Qun8U731NyOZrsmVYIiPMb/ATN6Dm2uzWk1lt+2Uw==", "license": "Apache-2.0", "dependencies": { - "@accordproject/concerto-analysis": "4.1.2", - "@accordproject/concerto-codegen": "4.1.1", - "@accordproject/concerto-core": "4.1.2", - "@accordproject/concerto-cto": "4.1.2", - "@accordproject/concerto-linter": "4.1.2", - "@accordproject/concerto-metamodel": "3.13.0", - "@accordproject/concerto-util": "4.1.2", + "@accordproject/concerto-analysis": "^5.0.0", + "@accordproject/concerto-codegen": "^6.3.0", + "@accordproject/concerto-core": "^5.0.0", + "@accordproject/concerto-cto": "^5.0.0", + "@accordproject/concerto-linter": "^5.0.0", + "@accordproject/concerto-metamodel": "^3.17.0", + "@accordproject/concerto-util": "^5.0.0", + "@accordproject/concerto-vocabulary": "^5.0.0", "ansi-colors": "4.1.3", "glob": "7.2.3", "randexp": "0.5.3", @@ -300,123 +189,6 @@ "npm": ">=10" } }, - "node_modules/@accordproject/concerto-cli/node_modules/@accordproject/concerto-codegen": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-codegen/-/concerto-codegen-4.1.1.tgz", - "integrity": "sha512-1fKBd0AnYCPwgDcKun7hUA6rUPL2i7HsCeMRlyqyB9C5aI91khWTxx5DErLfojF/1pDmdPf2R1lPIJlKg88raQ==", - "license": "Apache-2.0", - "dependencies": { - "@openapi-contrib/openapi-schema-to-json-schema": "4.0.0", - "ajv": "8.18.0", - "ajv-formats": "3.0.1", - "camelcase": "6.3.0", - "debug": "4.3.4", - "get-value": "3.0.1", - "json-schema-migrate": "2.0.0", - "pluralize": "8.0.0" - }, - "engines": { - "node": ">=18", - "npm": ">=6" - }, - "peerDependencies": { - "@accordproject/concerto-core": "^4.1.2", - "@accordproject/concerto-util": "^4.1.2", - "@accordproject/concerto-vocabulary": "^4.1.2" - } - }, - "node_modules/@accordproject/concerto-cli/node_modules/@accordproject/concerto-core": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-core/-/concerto-core-4.1.2.tgz", - "integrity": "sha512-2k5J4Rwb50DZQwdMS1hQMNwHMqtETTjkqSjVXYopemzNjYdlGAF+6FrRl2cC7zfxIffiQbd0FJPbE0bDJ0mf+A==", - "license": "Apache-2.0", - "dependencies": { - "@accordproject/concerto-cto": "4.1.2", - "@accordproject/concerto-metamodel": "^3.13.0", - "@accordproject/concerto-util": "4.1.2", - "dayjs": "1.11.13", - "debug": "4.3.7", - "lorem-ipsum": "2.0.8", - "randexp": "0.5.3", - "rfdc": "1.4.1", - "semver": "7.6.3", - "urijs": "1.19.11", - "uuid": "11.0.3", - "yaml": "^2.8.3" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-cli/node_modules/@accordproject/concerto-core/node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@accordproject/concerto-cli/node_modules/@accordproject/concerto-core/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@accordproject/concerto-cli/node_modules/@accordproject/concerto-cto": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-cto/-/concerto-cto-4.1.2.tgz", - "integrity": "sha512-oidSD2YC26YRiuEUctgYhIN2HMnNRA4TH/rTvMdmLUJasfD947TYCh4XwtJ4YNcjpRy80TRmCwcup7O/CIQ0vA==", - "license": "Apache-2.0", - "dependencies": { - "@accordproject/concerto-metamodel": "^3.13.0", - "@accordproject/concerto-util": "4.1.2", - "acorn": "^8.15.0", - "path-browserify": "^1.0.1", - "schema-utils": "^4.3.3" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-cli/node_modules/@accordproject/concerto-util": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-util/-/concerto-util-4.1.2.tgz", - "integrity": "sha512-pHtZuWDrLXuNLrpyGaoRKcSW5fBZyrnz9IQ27aNnQt+JLSTovQzkw/JHuPUSi9EWZBC1/Ak/yUCiDpLjHfV1Dg==", - "license": "Apache-2.0", - "dependencies": { - "@supercharge/promise-pool": "1.7.0", - "colors": "1.4.0", - "debug": "4.3.4", - "slash": "3.0.0" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-cli/node_modules/dayjs": { - "version": "1.11.13", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", - "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", - "license": "MIT" - }, "node_modules/@accordproject/concerto-cli/node_modules/lru-cache": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", @@ -429,12 +201,6 @@ "node": ">=10" } }, - "node_modules/@accordproject/concerto-cli/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, "node_modules/@accordproject/concerto-cli/node_modules/semver": { "version": "7.5.2", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz", @@ -450,19 +216,6 @@ "node": ">=10" } }, - "node_modules/@accordproject/concerto-cli/node_modules/uuid": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.3.tgz", - "integrity": "sha512-d0z310fCWv5dJwnX1Y/MncBAqGMKEzlBb1AOf7z9K8ALnd0utBX/msg/fA0+sbyN1ihbMsLhrBlnl1ak7Wa0rg==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/esm/bin/uuid" - } - }, "node_modules/@accordproject/concerto-cli/node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", @@ -470,9 +223,9 @@ "license": "ISC" }, "node_modules/@accordproject/concerto-codegen": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-codegen/-/concerto-codegen-4.1.3.tgz", - "integrity": "sha512-a1OvKHIFNnJNJ0+AxgWIG4RAe7PQ+P0CJZufu4f+6YIeaEDHln5Y7uBcnnXFVMc76XbnKXteLdmVBuIPjG+DDQ==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@accordproject/concerto-codegen/-/concerto-codegen-6.3.0.tgz", + "integrity": "sha512-bn18PCWCHfN6XzLqbs70arsZWtU48YJyxmuJ9QwZJb1vW7bdD10vCkV9E6neLBl6rrnO3DJZ/2cdz+9rgcAUfw==", "license": "Apache-2.0", "dependencies": { "@openapi-contrib/openapi-schema-to-json-schema": "4.0.0", @@ -486,30 +239,28 @@ }, "engines": { "node": ">=18", - "npm": ">=6" + "npm": ">=9" }, "peerDependencies": { - "@accordproject/concerto-core": "^4.1.3", - "@accordproject/concerto-util": "^4.1.3", - "@accordproject/concerto-vocabulary": "^4.1.3" + "@accordproject/concerto-core": "^5.0.0", + "@accordproject/concerto-util": "^5.0.0", + "@accordproject/concerto-vocabulary": "^5.0.0" } }, "node_modules/@accordproject/concerto-core": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-core/-/concerto-core-4.1.4.tgz", - "integrity": "sha512-Fc0S/+jQUPxouhN/onRoVjSV+WYm/yjCzKN3JEM0mzV8lHXBtLOR6SQtOfJC8Ott0JIySKI9J4QtBKpicIHdQw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@accordproject/concerto-core/-/concerto-core-5.0.0.tgz", + "integrity": "sha512-nEyRBlTKW82Rr1iq2QiPGnnCYHd8XZ/BGlCHCGnkkFFfrZxRZYD58Uk4gRKy2r6QuVqhLWgfgJkPgWja9CVX3g==", "license": "Apache-2.0", "dependencies": { - "@accordproject/concerto-cto": "4.1.4", - "@accordproject/concerto-metamodel": "^3.13.0", - "@accordproject/concerto-util": "4.1.4", + "@accordproject/concerto-cto": "5.0.0", + "@accordproject/concerto-metamodel": "^3.17.0", + "@accordproject/concerto-util": "5.0.0", "dayjs": "1.11.13", "debug": "4.3.7", - "lorem-ipsum": "2.0.8", "randexp": "0.5.3", "rfdc": "1.4.1", "semver": "7.6.3", - "urijs": "1.19.11", "uuid": "11.0.3", "yaml": "^2.8.3" }, @@ -573,13 +324,13 @@ } }, "node_modules/@accordproject/concerto-cto": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-cto/-/concerto-cto-4.1.4.tgz", - "integrity": "sha512-ZA5naXqHdX2FcdMIM5945/wIO+CzqG8beGzB1sqKNwsbEutjin+NQW/VM+gjqplWITR3ZR6b8tsIu/Q0jU5RMw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@accordproject/concerto-cto/-/concerto-cto-5.0.0.tgz", + "integrity": "sha512-6c0iWKdGPCVlssDBrkEQbw/s1SgQNes8H4ff0Vhh14U4T8pA68m25OisaYsLFriAk3mq/EGi1blAVBXdgvG02A==", "license": "Apache-2.0", "dependencies": { - "@accordproject/concerto-metamodel": "^3.13.0", - "@accordproject/concerto-util": "4.1.4", + "@accordproject/concerto-metamodel": "^3.17.0", + "@accordproject/concerto-util": "5.0.0", "acorn": "^8.15.0", "path-browserify": "^1.0.1", "schema-utils": "^4.3.3" @@ -590,15 +341,15 @@ } }, "node_modules/@accordproject/concerto-linter": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-linter/-/concerto-linter-4.1.2.tgz", - "integrity": "sha512-Z5cZi1x3Eoiz+h9OqNhWajLyGR7RteoEKooor0P33HwmkjTzS4dKc/ld28stAefq8nOO3w8wujEmX92+mNK/0g==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@accordproject/concerto-linter/-/concerto-linter-5.0.0.tgz", + "integrity": "sha512-PtuWmiKQuC+PSkb1LyHY6t8z52xORHcnOUdbYlfRi45D3cLRfTBV+bQCA2yyHXJuWjE1zLiik+trvg5PugapIw==", "license": "Apache-2.0", "dependencies": { - "@accordproject/concerto-core": "4.1.2", - "@accordproject/concerto-cto": "4.1.2", - "@accordproject/concerto-linter-default-ruleset": "4.1.2", - "@accordproject/concerto-metamodel": "^3.13.0", + "@accordproject/concerto-core": "5.0.0", + "@accordproject/concerto-cto": "5.0.0", + "@accordproject/concerto-linter-default-ruleset": "5.0.0", + "@accordproject/concerto-metamodel": "^3.17.0", "@stoplight/spectral-cli": "6.15.0", "@stoplight/spectral-core": "1.20.0", "@stoplight/spectral-parsers": "1.0.5", @@ -611,12 +362,12 @@ } }, "node_modules/@accordproject/concerto-linter-default-ruleset": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-linter-default-ruleset/-/concerto-linter-default-ruleset-4.1.2.tgz", - "integrity": "sha512-k1nqQjOaOQu+LThffcnB4/SuVxzCZWPJYbJ+c2AqtbeMEYtYv6G+sD4M95xoQ1rYiLjACVtwEyScEKPdEWz4vA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@accordproject/concerto-linter-default-ruleset/-/concerto-linter-default-ruleset-5.0.0.tgz", + "integrity": "sha512-A1ICsTmkeup6qL3vNH4ZXr+Ry2+GvMmZvKvff/wsCMtSESdm9PHa0bAbImL9V5gtRk4BcqgjbE1uAcanHzdMxw==", "license": "Apache-2.0", "dependencies": { - "@accordproject/concerto-core": "4.1.2", + "@accordproject/concerto-core": "5.0.0", "@stoplight/spectral-core": "1.20.0", "@stoplight/spectral-functions": "1.10.1", "@stoplight/spectral-parsers": "1.0.5" @@ -626,266 +377,44 @@ "npm": ">=10" } }, - "node_modules/@accordproject/concerto-linter-default-ruleset/node_modules/@accordproject/concerto-core": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-core/-/concerto-core-4.1.2.tgz", - "integrity": "sha512-2k5J4Rwb50DZQwdMS1hQMNwHMqtETTjkqSjVXYopemzNjYdlGAF+6FrRl2cC7zfxIffiQbd0FJPbE0bDJ0mf+A==", + "node_modules/@accordproject/concerto-metamodel": { + "version": "3.17.0", + "resolved": "https://registry.npmjs.org/@accordproject/concerto-metamodel/-/concerto-metamodel-3.17.0.tgz", + "integrity": "sha512-5uJldC+9abQEURAAwelFIXRpBVwfyZ9twUMFN8A+3FPltO06UCE2uYZJ0E8+9R99Z1F/1/UGBXMIrFzJPeqAyA==", + "license": "Apache-2.0", + "engines": { + "node": ">=14", + "npm": ">=6" + } + }, + "node_modules/@accordproject/concerto-util": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@accordproject/concerto-util/-/concerto-util-5.0.0.tgz", + "integrity": "sha512-fynLzFrLduS/zmgCPpCpqotKhUfsMnuwsUdc4C8ifr9xY4D6lqpdwK1zI46in+VngfFrDUs6nCfCJRHeXqh0MQ==", "license": "Apache-2.0", "dependencies": { - "@accordproject/concerto-cto": "4.1.2", - "@accordproject/concerto-metamodel": "^3.13.0", - "@accordproject/concerto-util": "4.1.2", - "dayjs": "1.11.13", - "debug": "4.3.7", - "lorem-ipsum": "2.0.8", - "randexp": "0.5.3", - "rfdc": "1.4.1", - "semver": "7.6.3", - "urijs": "1.19.11", - "uuid": "11.0.3", - "yaml": "^2.8.3" + "@supercharge/promise-pool": "1.7.0", + "colors": "1.4.0", + "debug": "4.3.4", + "slash": "3.0.0" }, "engines": { "node": ">=18", "npm": ">=9" } }, - "node_modules/@accordproject/concerto-linter-default-ruleset/node_modules/@accordproject/concerto-core/node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", - "license": "MIT", + "node_modules/@accordproject/concerto-vocabulary": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@accordproject/concerto-vocabulary/-/concerto-vocabulary-5.0.0.tgz", + "integrity": "sha512-BUUP2qBrr2Jkzn1TmDBIKLr7bjFN0Q2c5uzRUXjBrU0AP3fYsul2Wk45g00DwjngNhxfyjuDnPGb6dE1ajnbng==", + "license": "Apache-2.0", "dependencies": { - "ms": "^2.1.3" + "@accordproject/concerto-metamodel": "^3.17.0", + "yaml": "2.8.3" }, "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@accordproject/concerto-linter-default-ruleset/node_modules/@accordproject/concerto-cto": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-cto/-/concerto-cto-4.1.2.tgz", - "integrity": "sha512-oidSD2YC26YRiuEUctgYhIN2HMnNRA4TH/rTvMdmLUJasfD947TYCh4XwtJ4YNcjpRy80TRmCwcup7O/CIQ0vA==", - "license": "Apache-2.0", - "dependencies": { - "@accordproject/concerto-metamodel": "^3.13.0", - "@accordproject/concerto-util": "4.1.2", - "acorn": "^8.15.0", - "path-browserify": "^1.0.1", - "schema-utils": "^4.3.3" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-linter-default-ruleset/node_modules/@accordproject/concerto-util": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-util/-/concerto-util-4.1.2.tgz", - "integrity": "sha512-pHtZuWDrLXuNLrpyGaoRKcSW5fBZyrnz9IQ27aNnQt+JLSTovQzkw/JHuPUSi9EWZBC1/Ak/yUCiDpLjHfV1Dg==", - "license": "Apache-2.0", - "dependencies": { - "@supercharge/promise-pool": "1.7.0", - "colors": "1.4.0", - "debug": "4.3.4", - "slash": "3.0.0" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-linter-default-ruleset/node_modules/dayjs": { - "version": "1.11.13", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", - "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", - "license": "MIT" - }, - "node_modules/@accordproject/concerto-linter-default-ruleset/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, - "node_modules/@accordproject/concerto-linter-default-ruleset/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@accordproject/concerto-linter-default-ruleset/node_modules/uuid": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.3.tgz", - "integrity": "sha512-d0z310fCWv5dJwnX1Y/MncBAqGMKEzlBb1AOf7z9K8ALnd0utBX/msg/fA0+sbyN1ihbMsLhrBlnl1ak7Wa0rg==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/esm/bin/uuid" - } - }, - "node_modules/@accordproject/concerto-linter/node_modules/@accordproject/concerto-core": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-core/-/concerto-core-4.1.2.tgz", - "integrity": "sha512-2k5J4Rwb50DZQwdMS1hQMNwHMqtETTjkqSjVXYopemzNjYdlGAF+6FrRl2cC7zfxIffiQbd0FJPbE0bDJ0mf+A==", - "license": "Apache-2.0", - "dependencies": { - "@accordproject/concerto-cto": "4.1.2", - "@accordproject/concerto-metamodel": "^3.13.0", - "@accordproject/concerto-util": "4.1.2", - "dayjs": "1.11.13", - "debug": "4.3.7", - "lorem-ipsum": "2.0.8", - "randexp": "0.5.3", - "rfdc": "1.4.1", - "semver": "7.6.3", - "urijs": "1.19.11", - "uuid": "11.0.3", - "yaml": "^2.8.3" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-linter/node_modules/@accordproject/concerto-core/node_modules/debug": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", - "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", - "license": "MIT", - "dependencies": { - "ms": "^2.1.3" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@accordproject/concerto-linter/node_modules/@accordproject/concerto-cto": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-cto/-/concerto-cto-4.1.2.tgz", - "integrity": "sha512-oidSD2YC26YRiuEUctgYhIN2HMnNRA4TH/rTvMdmLUJasfD947TYCh4XwtJ4YNcjpRy80TRmCwcup7O/CIQ0vA==", - "license": "Apache-2.0", - "dependencies": { - "@accordproject/concerto-metamodel": "^3.13.0", - "@accordproject/concerto-util": "4.1.2", - "acorn": "^8.15.0", - "path-browserify": "^1.0.1", - "schema-utils": "^4.3.3" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-linter/node_modules/@accordproject/concerto-util": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-util/-/concerto-util-4.1.2.tgz", - "integrity": "sha512-pHtZuWDrLXuNLrpyGaoRKcSW5fBZyrnz9IQ27aNnQt+JLSTovQzkw/JHuPUSi9EWZBC1/Ak/yUCiDpLjHfV1Dg==", - "license": "Apache-2.0", - "dependencies": { - "@supercharge/promise-pool": "1.7.0", - "colors": "1.4.0", - "debug": "4.3.4", - "slash": "3.0.0" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-linter/node_modules/dayjs": { - "version": "1.11.13", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", - "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", - "license": "MIT" - }, - "node_modules/@accordproject/concerto-linter/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "license": "MIT" - }, - "node_modules/@accordproject/concerto-linter/node_modules/semver": { - "version": "7.6.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", - "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@accordproject/concerto-linter/node_modules/uuid": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-11.0.3.tgz", - "integrity": "sha512-d0z310fCWv5dJwnX1Y/MncBAqGMKEzlBb1AOf7z9K8ALnd0utBX/msg/fA0+sbyN1ihbMsLhrBlnl1ak7Wa0rg==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "license": "MIT", - "bin": { - "uuid": "dist/esm/bin/uuid" - } - }, - "node_modules/@accordproject/concerto-metamodel": { - "version": "3.13.0", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-metamodel/-/concerto-metamodel-3.13.0.tgz", - "integrity": "sha512-BkWJLYvWkDAG1lPgEr0T/4IqhjqEqzMVxAfFdJzDH3lxfEJsZ+bVJZzdcsHZUubuO0SsoahuHSs4j2Cv7DQ+Lw==", - "license": "Apache-2.0", - "engines": { - "node": ">=14", - "npm": ">=6" - } - }, - "node_modules/@accordproject/concerto-util": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-util/-/concerto-util-4.1.4.tgz", - "integrity": "sha512-FifiXZkUIZisSxG6AJ9ORR/+EULHKxk9qeW69pffLei+WpmSUJDFSp4gHiW8hb11Z46IXO+/9RqdcJfXYI43eA==", - "license": "Apache-2.0", - "dependencies": { - "@supercharge/promise-pool": "1.7.0", - "colors": "1.4.0", - "debug": "4.3.4", - "slash": "3.0.0" - }, - "engines": { - "node": ">=18", - "npm": ">=9" - } - }, - "node_modules/@accordproject/concerto-vocabulary": { - "version": "4.1.4", - "resolved": "https://registry.npmjs.org/@accordproject/concerto-vocabulary/-/concerto-vocabulary-4.1.4.tgz", - "integrity": "sha512-MYCpIKLBK0/yNTM2cJcRrKLPhzJr6hSU90t852VmT66aoykQm+oh0Eh3nN9s3Zd8+t4mMY/9svP8+T0vnxKrnA==", - "license": "Apache-2.0", - "dependencies": { - "@accordproject/concerto-metamodel": "^3.13.0", - "yaml": "2.8.3" - }, - "engines": { - "node": ">=18", - "npm": ">=9" + "node": ">=18", + "npm": ">=9" } }, "node_modules/@accordproject/concerto-vocabulary/node_modules/yaml": { @@ -904,13 +433,13 @@ } }, "node_modules/@accordproject/markdown-cicero": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@accordproject/markdown-cicero/-/markdown-cicero-1.0.1.tgz", - "integrity": "sha512-+S5lJA1g2+CHJ6qvA3kaQEO8GU9rH7KU7wLniQQVq1TbAFri+sAglKj3lN1bo4kIpUIQJ3SKQK5w+TmVSa2aJQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@accordproject/markdown-cicero/-/markdown-cicero-1.1.0.tgz", + "integrity": "sha512-UqgmBBSyfFj6xvdhmoBDax8iO0y/rY4yNSQWZXs9YPupepR49AWivpQ2B93Ms9IxgCNcfFAqeEhE6mCTqXYTrw==", "license": "Apache-2.0", "dependencies": { - "@accordproject/markdown-common": "1.0.1", - "@accordproject/markdown-it-cicero": "1.0.1", + "@accordproject/markdown-common": "1.1.0", + "@accordproject/markdown-it-cicero": "1.1.0", "markdown-it": "^14.1.0", "semver": "7.6.3", "winston": "3.17.0" @@ -920,7 +449,7 @@ "npm": ">=9" }, "peerDependencies": { - "@accordproject/concerto-core": "^4.1.2" + "@accordproject/concerto-core": "^5.0.0" } }, "node_modules/@accordproject/markdown-cicero/node_modules/semver": { @@ -936,9 +465,9 @@ } }, "node_modules/@accordproject/markdown-common": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@accordproject/markdown-common/-/markdown-common-1.0.1.tgz", - "integrity": "sha512-3ZpZZaGDB7FVQiv7SWjsAtb7mnkHDUxoH74iYxEzoWQxL89C6qMSXRecmP+CGA5jPxbSsOspjiPYZDqrQPHgxw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@accordproject/markdown-common/-/markdown-common-1.1.0.tgz", + "integrity": "sha512-WS/hXNFNADp3AyMQMycGbpQf8q4ifMJnVrzTVx46qA1GS/wD1ASPz1nuLr70D0jguUV8Ihy1uZERadmv8BgKIQ==", "license": "Apache-2.0", "dependencies": { "@xmldom/xmldom": "^0.9.10", @@ -949,17 +478,17 @@ "npm": ">=9" }, "peerDependencies": { - "@accordproject/concerto-core": "^4.1.3" + "@accordproject/concerto-core": "^5.0.0" } }, "node_modules/@accordproject/markdown-html": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@accordproject/markdown-html/-/markdown-html-1.0.1.tgz", - "integrity": "sha512-WZDHTrlJUdi9sd3VrwnLBZGkcr+qi1ShpUIGmcFWFw+lUOw2kENROGX1CZJnnhuboFQrZMsgvZAvBuqJfhn96Q==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@accordproject/markdown-html/-/markdown-html-1.1.0.tgz", + "integrity": "sha512-5STgytJdxgbTSOoeNaSgArwA3cESgkLTBgdxtxNhPBvIwS2KfEhDp+orwRKrQwkWJ6ANEsigAxkkK0xmntXAGQ==", "license": "Apache-2.0", "dependencies": { - "@accordproject/markdown-cicero": "1.0.1", - "@accordproject/markdown-common": "1.0.1", + "@accordproject/markdown-cicero": "1.1.0", + "@accordproject/markdown-common": "1.1.0", "jsdom": "^25.0.1", "process": "^0.11.10", "type-of": "^2.0.1" @@ -1181,27 +710,6 @@ "node": ">=18" } }, - "node_modules/@accordproject/markdown-html/node_modules/ws": { - "version": "8.21.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", - "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", - "license": "MIT", - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, "node_modules/@accordproject/markdown-html/node_modules/xml-name-validator": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz", @@ -1212,9 +720,9 @@ } }, "node_modules/@accordproject/markdown-it-cicero": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@accordproject/markdown-it-cicero/-/markdown-it-cicero-1.0.1.tgz", - "integrity": "sha512-6cgDtb9/OJtWb0fzNsRsKWPdnOSeklfQMn371i8B3mnFI5pj7SQplyQUlTe6DGjYFP4BWmslV8VHKywa+uhuKA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@accordproject/markdown-it-cicero/-/markdown-it-cicero-1.1.0.tgz", + "integrity": "sha512-zY+kMMSMv1WojxyOLdkvQKwyvOmCJ5mDX7EHqaihkEHGa7oXiszATFIqMsoSeWnVR05uXmcyylSm0q1XrAENWQ==", "license": "Apache-2.0", "dependencies": { "markdown-it": "^14.1.0" @@ -1225,9 +733,9 @@ } }, "node_modules/@accordproject/markdown-it-template": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@accordproject/markdown-it-template/-/markdown-it-template-1.0.1.tgz", - "integrity": "sha512-I8Op+r3ZCEBuHrL2URn/hxxP0Gss66cWjn30/E4uVbZS6Jf3K0YeQWSWTpvLwxeFVQBn50MiXaTs89e+KHFl/Q==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@accordproject/markdown-it-template/-/markdown-it-template-1.1.0.tgz", + "integrity": "sha512-5ySqRgOTCY36qyz7gDF9huVe8q9xsXGimFihFVZmwTLsgsuzB87gx8uAvlO1r9QTyThYaFwYTsRsQFaAnQGD7A==", "license": "Apache-2.0", "dependencies": { "markdown-it": "^14.1.0" @@ -1238,14 +746,14 @@ } }, "node_modules/@accordproject/markdown-template": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@accordproject/markdown-template/-/markdown-template-1.0.1.tgz", - "integrity": "sha512-P1yEXbtUdSwUS/PbDKWms41etpa/gjD7PfWlXiotE0F2IglgHZfAjzWh5/elpdwXSY54rLpOH2JK9edpyZrSwQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@accordproject/markdown-template/-/markdown-template-1.1.0.tgz", + "integrity": "sha512-3iB+2xPllWa2Px0/7j0WqLhX4GpKv8ja7RXMawTHSVrsiFLHDs3IpszJRM+j3IXGRf2sdObft4H+o17bezNTGg==", "license": "Apache-2.0", "dependencies": { - "@accordproject/markdown-cicero": "1.0.1", - "@accordproject/markdown-common": "1.0.1", - "@accordproject/markdown-it-template": "1.0.1", + "@accordproject/markdown-cicero": "1.1.0", + "@accordproject/markdown-common": "1.1.0", + "@accordproject/markdown-it-template": "1.1.0", "dayjs": "1.11.13", "markdown-it": "^14.1.0", "process": "^0.11.10" @@ -1255,8 +763,8 @@ "npm": ">=9" }, "peerDependencies": { - "@accordproject/concerto-core": "^4.1.3", - "@accordproject/concerto-cto": "^4.1.3" + "@accordproject/concerto-core": "^5.0.0", + "@accordproject/concerto-cto": "^5.0.0" } }, "node_modules/@accordproject/markdown-template/node_modules/dayjs": { @@ -1266,15 +774,15 @@ "license": "MIT" }, "node_modules/@accordproject/markdown-transform": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@accordproject/markdown-transform/-/markdown-transform-1.0.1.tgz", - "integrity": "sha512-gth7Nz34DPhSvoh4IxxMZK6ZfcvHRMdSGYW9/0z4Ohau46lyMpUMudoRU+EsYh9ELjAdosoBgrg3ac3zFHi/xw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@accordproject/markdown-transform/-/markdown-transform-1.1.0.tgz", + "integrity": "sha512-Gyht4yNiyISRO2AeMPOlFdoGqIYA/zDSPTgJKe2S7Mgi7dejv7RPhYnGtVD0UYv3AI/ezrLOFn/y1AORXrHYUg==", "license": "Apache-2.0", "dependencies": { - "@accordproject/markdown-cicero": "1.0.1", - "@accordproject/markdown-common": "1.0.1", - "@accordproject/markdown-html": "1.0.1", - "@accordproject/markdown-template": "1.0.1", + "@accordproject/markdown-cicero": "1.1.0", + "@accordproject/markdown-common": "1.1.0", + "@accordproject/markdown-html": "1.1.0", + "@accordproject/markdown-template": "1.1.0", "dijkstrajs": "^1.0.3", "jszip": "^3.10.1", "process": "^0.11.10" @@ -1284,25 +792,22 @@ "npm": ">=9" }, "peerDependencies": { - "@accordproject/concerto-core": "^4.1.3" + "@accordproject/concerto-core": "^5.0.0" } }, "node_modules/@accordproject/template-engine": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@accordproject/template-engine/-/template-engine-4.0.0.tgz", - "integrity": "sha512-2MNwgK/Cp7iFmvmmYODflUX7yMkUHSjdEF03ZjBcoAxGJdASrGnWgnL/SSdK7kBnCiH87wa3i9GuXZJXnnMi1Q==", + "version": "5.2.0-agreement.0", + "resolved": "git+ssh://git@github.com/accordproject/template-engine.git#2bd173d718e78db3dc21e25b5e21e65bcc576704", "license": "Apache-2.0", - "workspaces": [ - "e2e" - ], "dependencies": { - "@accordproject/cicero-core": "1.0.1", - "@accordproject/concerto-codegen": "4.1.3", - "@accordproject/concerto-core": "4.1.4", - "@accordproject/concerto-util": "4.1.4", - "@accordproject/concerto-vocabulary": "4.1.4", - "@accordproject/markdown-common": "1.0.1", - "@accordproject/markdown-template": "1.0.1", + "@accordproject/cicero-core": "github:accordproject/template-archive#claude/agreement-1.0-dual-runtime-dist", + "@accordproject/concerto-codegen": "^6.3.0", + "@accordproject/concerto-core": "^5.0.0", + "@accordproject/concerto-util": "^5.0.0", + "@accordproject/concerto-vocabulary": "^5.0.0", + "@accordproject/markdown-common": "^1.1.0", + "@accordproject/markdown-template": "^1.1.0", + "@accordproject/markdown-transform": "^1.1.0", "@typescript/twoslash": "^3.2.9", "browser-or-node": "^3.0.0", "dayjs": "1.11.13", @@ -1312,40 +817,20 @@ "traverse": "^0.6.11", "typescript": "^5.8.2" }, - "engines": { - "node": ">=22", - "npm": ">=6" - } - }, - "node_modules/@accordproject/template-engine/node_modules/@accordproject/cicero-core": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@accordproject/cicero-core/-/cicero-core-1.0.1.tgz", - "integrity": "sha512-19b8c7B3gN6r5SnmevGdKTlXA0Lagf7tyhJoLBF/EAVN5OWx+hO8Fff07dp/wVQ/Ked9wVLkyhje+qGVu31wmw==", - "license": "Apache-2.0", - "dependencies": { - "@accordproject/concerto-core": "4.1.4", - "@accordproject/concerto-util": "4.1.4", - "@accordproject/markdown-cicero": "1.0.1", - "@accordproject/markdown-common": "1.0.1", - "@accordproject/markdown-template": "1.0.1", - "@accordproject/markdown-transform": "1.0.1", - "axios": "1.15.0", - "debug": "4.3.4", - "ietf-language-tag-regex": "0.0.5", - "json-stable-stringify": "1.0.2", - "jszip": "3.10.1", - "node-cache": "5.1.2", - "node-forge": "^1.4.0", - "semver": "7.5.3", - "slash": "3.0.0", - "xregexp": "5.1.1" + "bin": { + "template-engine-codegen": "bin/codegen.js" }, "engines": { "node": ">=22", - "npm": ">=10" + "npm": ">=6" }, - "peerDependencies": { - "@accordproject/concerto-core": "^4.1.3" + "optionalDependencies": { + "@anthropic-ai/sdk": "^0.100.1", + "@google/genai": "^2.10.0", + "@mistralai/mistralai": "^2.4.0", + "@openrouter/sdk": "^0.13.22", + "groq-sdk": "^1.3.0", + "openai": "^6.42.0" } }, "node_modules/@accordproject/template-engine/node_modules/dayjs": { @@ -1354,38 +839,27 @@ "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", "license": "MIT" }, - "node_modules/@accordproject/template-engine/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "license": "ISC", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@accordproject/template-engine/node_modules/semver": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", - "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", - "license": "ISC", + "node_modules/@anthropic-ai/sdk": { + "version": "0.100.1", + "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.100.1.tgz", + "integrity": "sha512-RANcEe7LpiLczkKGOwoXOTuFdPhuubS0i4xaAKOMpcqc55YO0mukgxppV7eygx3DXNjxWT6RYOLPyOy0aIAmwg==", + "license": "MIT", + "optional": true, "dependencies": { - "lru-cache": "^6.0.0" + "json-schema-to-ts": "^3.1.1", + "standardwebhooks": "^1.0.0" }, "bin": { - "semver": "bin/semver.js" + "anthropic-ai-sdk": "bin/cli" }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@accordproject/template-engine/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "license": "ISC" + "peerDependencies": { + "zod": "^3.25.0 || ^4.0.0" + }, + "peerDependenciesMeta": { + "zod": { + "optional": true + } + } }, "node_modules/@asamuzakjp/css-color": { "version": "3.2.0", @@ -1431,14 +905,14 @@ } }, "node_modules/@babel/generator": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz", - "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==", + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", + "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", "dev": true, "license": "MIT", "dependencies": { - "@babel/parser": "^7.29.7", - "@babel/types": "^7.29.7", + "@babel/parser": "^7.29.8", + "@babel/types": "^7.29.8", "@jridgewell/gen-mapping": "^0.3.12", "@jridgewell/trace-mapping": "^0.3.28", "jsesc": "^3.0.2" @@ -1478,13 +952,13 @@ } }, "node_modules/@babel/parser": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz", - "integrity": "sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==", + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.8.tgz", + "integrity": "sha512-E8lTAYNB1KW+FH+VGJuZM1ioAx2E6oVlvQFRrf5P8ZZmsiJXYAD9vTFV7yyEURNzgh1dFqMZuO6tUwcARbqFCA==", "dev": true, "license": "MIT", "dependencies": { - "@babel/types": "^7.29.7" + "@babel/types": "^7.29.8" }, "bin": { "parser": "bin/babel-parser.js" @@ -1493,6 +967,16 @@ "node": ">=6.0.0" } }, + "node_modules/@babel/runtime": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.29.7.tgz", + "integrity": "sha512-Nq8OhGWiZIZGV6hLHoyAKLLcJihP/xFeBMGJoUrxTX2psI8dCifzLhZISFb+VWS3wFMRDmCGw5R+dOySCqPLhw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/@babel/runtime-corejs3": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.29.7.tgz", @@ -1521,18 +1005,18 @@ } }, "node_modules/@babel/traverse": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz", - "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==", + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.8.tgz", + "integrity": "sha512-I5z7H3bf/41ktsNVLtpN0wAa336HkqIHQ5BuPLEhTkt1jVSyZpeNKIzTgEWmlxjdg81R0IgUCcaE+Ok3NvrfZg==", "dev": true, "license": "MIT", "dependencies": { "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.7", + "@babel/generator": "^7.29.8", "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.7", + "@babel/parser": "^7.29.8", "@babel/template": "^7.29.7", - "@babel/types": "^7.29.7", + "@babel/types": "^7.29.8", "debug": "^4.3.1" }, "engines": { @@ -1540,9 +1024,9 @@ } }, "node_modules/@babel/types": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz", - "integrity": "sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==", + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", "dev": true, "license": "MIT", "dependencies": { @@ -1554,9 +1038,9 @@ } }, "node_modules/@colors/colors": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.0.tgz", - "integrity": "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.1.tgz", + "integrity": "sha512-dTmUJzXSuayBK+hZydEaXd2mhx61qWQwkwaBBY6LyEOVx/L9aQU5ac8eFNEsd9nrD1+zb9zvDCphLSe8g1F4Qw==", "license": "MIT", "engines": { "node": ">=0.1.90" @@ -1673,9 +1157,9 @@ } }, "node_modules/@dabh/diagnostics": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.8.tgz", - "integrity": "sha512-R4MSXTVnuMzGD7bzHdW2ZhhdPC/igELENcq5IjEverBvq5hn1SXCWcsi6eSsdWP0/Ur+SItRRjAktmdoX/8R/Q==", + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.9.tgz", + "integrity": "sha512-R6siwR65Hm+3yfgP7o8DKhNvputQAwfoz9zTc3kyDudnomj2/BcLmD+uGQQPICjuFUp8ounPBU+jmKsocwVVAg==", "license": "MIT", "dependencies": { "@so-ric/colorspace": "^1.1.6", @@ -1683,627 +1167,296 @@ "kuler": "^2.0.0" } }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz", - "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", + "node_modules/@google/genai": { + "version": "2.22.0", + "resolved": "https://registry.npmjs.org/@google/genai/-/genai-2.22.0.tgz", + "integrity": "sha512-NE90Nl0AP75YZ2tGxXjQQs6Gkunma7a1JmPCx5g5CxvjHXshmuI2aNoPJ1xLrRixjkNxog898oylM+MyNudUQw==", + "hasInstallScript": true, + "license": "Apache-2.0", "optional": true, - "os": [ - "aix" - ], + "dependencies": { + "google-auth-library": "^10.3.0", + "p-retry": "^4.6.2", + "protobufjs": "^7.5.4", + "ws": "^8.18.0" + }, "engines": { - "node": ">=18" + "node": ">=20.0.0" + }, + "peerDependencies": { + "@modelcontextprotocol/sdk": "^1.25.2" + }, + "peerDependenciesMeta": { + "@modelcontextprotocol/sdk": { + "optional": true + } } }, - "node_modules/@esbuild/android-arm": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz", - "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], + "node_modules/@isaacs/fs-minipass": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", + "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", + "license": "ISC", + "dependencies": { + "minipass": "^7.0.4" + }, "engines": { - "node": ">=18" + "node": ">=18.0.0" } }, - "node_modules/@esbuild/android-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz", - "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==", - "cpu": [ - "arm64" - ], + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=18" + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" } }, - "node_modules/@esbuild/android-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz", - "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==", - "cpu": [ - "x64" - ], + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "android" - ], "engines": { - "node": ">=18" + "node": ">=6.0.0" } }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz", - "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==", - "cpu": [ - "arm64" - ], + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" - } + "license": "MIT" }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz", - "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==", - "cpu": [ - "x64" - ], + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=18" + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz", - "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==", - "cpu": [ - "arm64" - ], - "dev": true, + "node_modules/@jsep-plugin/assignment": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", + "integrity": "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==", "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], "engines": { - "node": ">=18" + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" } }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz", - "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==", - "cpu": [ - "x64" - ], - "dev": true, + "node_modules/@jsep-plugin/regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.4.tgz", + "integrity": "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg==", "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], "engines": { - "node": ">=18" + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" } }, - "node_modules/@esbuild/linux-arm": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz", - "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==", - "cpu": [ - "arm" - ], - "dev": true, + "node_modules/@jsep-plugin/ternary": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.4.tgz", + "integrity": "sha512-ck5wiqIbqdMX6WRQztBL7ASDty9YLgJ3sSAK5ZpBzXeySvFGCzIvM6UiAI4hTZ22fEcYQVV/zhUbNscggW+Ukg==", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">=18" + "node": ">= 10.16.0" + }, + "peerDependencies": { + "jsep": "^0.4.0||^1.0.0" } }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz", - "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", + "node_modules/@mistralai/mistralai": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/@mistralai/mistralai/-/mistralai-2.7.0.tgz", + "integrity": "sha512-zCrx6MtNpcz+EL/Nqvg55QubSgmfwJfBmd3d3wSYfJGfnvlNnWcJYlxEW5xQpS3KR6A5qK9KUyRBwMDIWnyVGA==", + "license": "Apache-2.0", "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" + "dependencies": { + "@opentelemetry/semantic-conventions": "^1.40.0", + "ws": "^8.18.0", + "zod": "^3.25.0 || ^4.0.0", + "zod-to-json-schema": "^3.25.0" + }, + "peerDependencies": { + "@opentelemetry/api": "^1.9.0", + "@opentelemetry/exporter-trace-otlp-http": "^0.220.0", + "@opentelemetry/resources": "^2.9.0", + "@opentelemetry/sdk-trace-base": "^2.9.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + }, + "@opentelemetry/exporter-trace-otlp-http": { + "optional": true + }, + "@opentelemetry/resources": { + "optional": true + }, + "@opentelemetry/sdk-trace-base": { + "optional": true + } } }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz", - "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==", - "cpu": [ - "ia32" - ], - "dev": true, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, "engines": { - "node": ">=18" + "node": ">= 8" } }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz", - "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==", - "cpu": [ - "loong64" - ], - "dev": true, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">=18" + "node": ">= 8" } }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz", - "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==", - "cpu": [ - "mips64el" - ], - "dev": true, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, "engines": { - "node": ">=18" + "node": ">= 8" } }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz", - "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz", - "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz", - "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==", - "cpu": [ - "s390x" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/linux-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz", - "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz", - "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==", - "cpu": [ - "arm64" - ], - "dev": true, + "node_modules/@openapi-contrib/openapi-schema-to-json-schema": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-4.0.0.tgz", + "integrity": "sha512-HRLG6NCHbdjCv3hacJKhZe5Al3QCig90SCvcXAS+JLb85ypuwFqcVSDnGzBqaithlUibq9UyPwQH0ATitvBBTw==", "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" + "dependencies": { + "fast-deep-equal": "^3.1.3" } }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz", - "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", + "node_modules/@openrouter/sdk": { + "version": "0.13.67", + "resolved": "https://registry.npmjs.org/@openrouter/sdk/-/sdk-0.13.67.tgz", + "integrity": "sha512-kUVaFYA9Xehq67ndTk98i+tRLfYH/F6xSf/WuC8dsukBzcgBvYQydoeKw4Xe+peXG/wOVtDxukWt5SqzhbloKw==", + "hasInstallScript": true, + "license": "Apache-2.0", "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=18" + "dependencies": { + "zod": "^3.25.0 || ^4.0.0" } }, - "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz", - "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", + "node_modules/@opentelemetry/semantic-conventions": { + "version": "1.43.0", + "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.43.0.tgz", + "integrity": "sha512-eSYWTm620tTk45EKSedaUL8MFYI8hW164hIXsgIHyxu3VobUB3fFCu5t0hQby6OoWRPsG1KkKUG2M5UadiLiVg==", + "license": "Apache-2.0", "optional": true, - "os": [ - "openbsd" - ], "engines": { - "node": ">=18" + "node": ">=14" } }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz", - "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==", - "cpu": [ - "x64" - ], + "node_modules/@oxc-project/types": { + "version": "0.149.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.149.0.tgz", + "integrity": "sha512-Efcc+iF0j3Bf67YjEqIqWXbX5XddXoK/Mw4K1/JuXwRCZ8N16VR7iT23nlCc9XrveFVh/E5Rqs2StT0V8v9LdA==", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=18" + "funding": { + "url": "https://github.com/sponsors/oxc-project" } }, - "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz", - "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ], - "engines": { - "node": ">=18" - } + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause", + "optional": true }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz", - "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=18" - } + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause", + "optional": true }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz", - "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } + "node_modules/@protobufjs/codegen": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz", + "integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==", + "license": "BSD-3-Clause", + "optional": true }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz", - "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.1.tgz", + "integrity": "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==", + "license": "BSD-3-Clause", + "optional": true }, - "node_modules/@esbuild/win32-x64": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz", - "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", + "node_modules/@protobufjs/fetch": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.1.tgz", + "integrity": "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==", + "license": "BSD-3-Clause", "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/@isaacs/fs-minipass": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz", - "integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==", - "license": "ISC", "dependencies": { - "minipass": "^7.0.4" - }, - "engines": { - "node": ">=18.0.0" + "@protobufjs/aspromise": "^1.1.1" } }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.13", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", - "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/sourcemap-codec": "^1.5.0", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", - "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", - "dev": true, - "license": "MIT" - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.31", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", - "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@jsep-plugin/assignment": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@jsep-plugin/assignment/-/assignment-1.3.0.tgz", - "integrity": "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ==", - "license": "MIT", - "engines": { - "node": ">= 10.16.0" - }, - "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" - } - }, - "node_modules/@jsep-plugin/regex": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@jsep-plugin/regex/-/regex-1.0.4.tgz", - "integrity": "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg==", - "license": "MIT", - "engines": { - "node": ">= 10.16.0" - }, - "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" - } + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause", + "optional": true }, - "node_modules/@jsep-plugin/ternary": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/@jsep-plugin/ternary/-/ternary-1.1.4.tgz", - "integrity": "sha512-ck5wiqIbqdMX6WRQztBL7ASDty9YLgJ3sSAK5ZpBzXeySvFGCzIvM6UiAI4hTZ22fEcYQVV/zhUbNscggW+Ukg==", - "license": "MIT", - "engines": { - "node": ">= 10.16.0" - }, - "peerDependencies": { - "jsep": "^0.4.0||^1.0.0" - } + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause", + "optional": true }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "license": "MIT", - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause", + "optional": true }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "license": "MIT", - "engines": { - "node": ">= 8" - } + "node_modules/@protobufjs/utf8": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.2.tgz", + "integrity": "sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==", + "license": "BSD-3-Clause", + "optional": true }, - "node_modules/@nodelib/fs.walk": { + "node_modules/@rolldown/binding-android-arm-eabi": { "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "license": "MIT", - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@openapi-contrib/openapi-schema-to-json-schema": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@openapi-contrib/openapi-schema-to-json-schema/-/openapi-schema-to-json-schema-4.0.0.tgz", - "integrity": "sha512-HRLG6NCHbdjCv3hacJKhZe5Al3QCig90SCvcXAS+JLb85ypuwFqcVSDnGzBqaithlUibq9UyPwQH0ATitvBBTw==", - "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.3" - } - }, - "node_modules/@rollup/plugin-commonjs": { - "version": "22.0.2", - "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.2.tgz", - "integrity": "sha512-//NdP6iIwPbMTcazYsiBMbJW7gfmpHom33u1beiIoHDEM0Q9clvtQB1T0efvMqHeKsGohiHo97BCPCkBXdscwg==", - "license": "MIT", - "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "commondir": "^1.0.1", - "estree-walker": "^2.0.1", - "glob": "^7.1.6", - "is-reference": "^1.2.1", - "magic-string": "^0.25.7", - "resolve": "^1.17.0" - }, - "engines": { - "node": ">= 12.0.0" - }, - "peerDependencies": { - "rollup": "^2.68.0" - } - }, - "node_modules/@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", - "license": "MIT", - "dependencies": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" - }, - "engines": { - "node": ">= 8.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0" - } - }, - "node_modules/@rollup/pluginutils/node_modules/estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", - "license": "MIT" - }, - "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.61.1.tgz", - "integrity": "sha512-JnBB8MdXj45cajvTuO5FmPlvFVJRQgvrz1uSEl3NwqFnReAPGwb8EanbGi4z2nRaqLzjJSv5/JmycoTKlRZxHA==", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm-eabi/-/binding-android-arm-eabi-1.2.8.tgz", + "integrity": "sha512-tN5aztYkKCte4i5SIrrz5yK/HMjEuCqCSCJa418jOV8tZ1cBY3YF2otxB1ktPxzsLA1BeTqwapK0bfjxNvHJVw==", "cpu": [ "arm" ], @@ -2312,12 +1465,15 @@ "optional": true, "os": [ "android" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-android-arm64": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.61.1.tgz", - "integrity": "sha512-Jx2g7iSjw4AOT0HDPHM9RV3GNjRXwybWtSFZiZAYUTjUwjVrYIwq3kBf+LnhqJlzXFAqTAh2F7IGI+O568exPw==", + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.2.8.tgz", + "integrity": "sha512-dIYTWl9XprMUiQFoc55KUyk/oS8SKYH3zFl0LTR7RT0Xj4hgSVyuJcroH8JUu8RcpF8fTB6E0aOwCkZoYPcDSQ==", "cpu": [ "arm64" ], @@ -2326,12 +1482,15 @@ "optional": true, "os": [ "android" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.61.1.tgz", - "integrity": "sha512-0F1L/Z3Eqv8mT2n3dCpeO8GcTvHvVqkP5/t6DMsn0KzhYVcg+s7Ncl5DS8qjKYEeio6Az0Gt6nyBORay5qIlCA==", + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.2.8.tgz", + "integrity": "sha512-PCSDQGXD2IyTEFrcgPyBM8jJuGmrbCMuoIOXdbEGVemruKACXoLQJrb+A45Z0L5t1RQkdfJprAYPkikbh7dzdA==", "cpu": [ "arm64" ], @@ -2340,12 +1499,15 @@ "optional": true, "os": [ "darwin" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.61.1.tgz", - "integrity": "sha512-qLttcH871ujY4YcVfUSShhOw+CsoTatYz8gRbHO7Bb92QH059/P0y5do1KMs41fY0BpD2x4AJH/gID0zFiqVKQ==", + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.2.8.tgz", + "integrity": "sha512-Uk7lRsGhPFHVX/sAUC6D5H9Ol30dFHd6iquokll2th3LpdJ3F5CzQB+7DHn0Ri2mG+U7k2zXiPHDrwZenXhwSA==", "cpu": [ "x64" ], @@ -2354,26 +1516,15 @@ "optional": true, "os": [ "darwin" - ] - }, - "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.61.1.tgz", - "integrity": "sha512-fUI4RapGE0Oh3mb8mgfvC1O2nU1RpDZUKnDQm3xB1Ipg7C2wTs5Kstz7G2uWK99a8S2yTMq8/P4uycwNa0nJyw==", - "cpu": [ - "arm64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.61.1.tgz", - "integrity": "sha512-H5YrdvJaDtI/U9/emrD4b++xkvp3y/JvOe4rizHbxvkyMfRS/CiRYdji+Pl8D0brEaNFWUh1drQxgAGIl6Xudw==", + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.2.8.tgz", + "integrity": "sha512-DjszaTEVogPqA5bYzsEeqDCQxbcp2fexQwKcRspYji2yzR68fCf+e4fx6kBSRDwX5/brZaHw/hWS9+A/+/w9sQ==", "cpu": [ "x64" ], @@ -2382,26 +1533,15 @@ "optional": true, "os": [ "freebsd" - ] - }, - "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.61.1.tgz", - "integrity": "sha512-Q8CBCCQtDFrYtXoeUXSrnFXKOnyUhx6bz+SkL6A0E7V8kAiCJ5pamq1WtbfpVGhR5TSpXY6ak3avmDc5fHTyJA==", - "cpu": [ - "arm" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.61.1.tgz", - "integrity": "sha512-nwnhk1581l0FBVellGcVCAT0Oi06onEA3WB53sf01VO3I0UPBkMH9sXONYME2K0ovXcNayJfNtHfm6mpJElatQ==", + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.2.8.tgz", + "integrity": "sha512-zmwa7FTmdzB6aaEEuuls18H6Ap5JmJPSoPTuXixeJZV6tG40SyLkApQtz1g8ptZtiEKqj9OM0oNLPh1AgvE31Q==", "cpu": [ "arm" ], @@ -2410,26 +1550,15 @@ "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.61.1.tgz", - "integrity": "sha512-x5Xr49hwt3hdW75UOZm3395YwwzPyauktslv29KpWL/T+vVAzoT3azLcTWv0eMciBNrx+DYjH4paehHoLpPvpg==", - "cpu": [ - "arm64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.61.1.tgz", - "integrity": "sha512-unMS3H73DpaoPyyEVPjGKleM/s0mkmsauTENpw4INQY8y4+IuLNjkueQ5QCtC0D3N38Y38yhAU8OoZ20S2Tm6w==", + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.2.8.tgz", + "integrity": "sha512-KdYQDPHwJVnbFwdTGMgxsI9SqblBlz6STGM+w1We/d5B8OWWidYH0MwkU/uA1wM5fIpO2MkOVxXrNzzuZhw9ew==", "cpu": [ "arm64" ], @@ -2438,54 +1567,32 @@ "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.61.1.tgz", - "integrity": "sha512-zNZzGRnAhwjFEYmvphJRV5XaQGjs62cCmeYYHUT//NbvEnHauw+I85nGG+SiVg5ld4GX8D1IbKIX+ozITQnhMQ==", - "cpu": [ - "loong64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-loong64-musl": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.61.1.tgz", - "integrity": "sha512-LdpWGL8X209B2SIvWjqlc8VZgM6PKfontSerGepuldQmHYrAOtnMCXeJkxXGbC+PPZVOuu5czJo7fNV6aeW8rQ==", + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.2.8.tgz", + "integrity": "sha512-jFJTifHnNPY+yzOoNZQfSIysrVyXzEQPhPnOUjmD1bcQGHH6s7c8cViKWar8YplQImE5N9JRqMCLrM2CdxOrZA==", "cpu": [ - "loong64" + "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.61.1.tgz", - "integrity": "sha512-EC5kTtNaNGOmbMGqar8dvJy6y/hg99GAwjfBz++pxZhQATXGcRjd6c5en5wcbru0vkRmiMGsQKdMJOOf6sza4g==", - "cpu": [ - "ppc64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-ppc64-musl": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.61.1.tgz", - "integrity": "sha512-8hiwp6D4acEcNK78I4rP0/XtS1sknWIAMJBPdR4l6zUtyTm5KiTDr5bXmWt4foY7nAN7AThDHgkLIEZOWKbzWw==", + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.2.8.tgz", + "integrity": "sha512-FhiOziBDWPBjbcmRzfLyIJnaP7AVMFXT7YCXPjXxj7wKU3vx24RjrCNN/zjvVa+N2vVoHJwCoUBvsrN/DG3zIA==", "cpu": [ "ppc64" ], @@ -2494,40 +1601,15 @@ "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.61.1.tgz", - "integrity": "sha512-10dh/h/BqA7DuMPWSxkR8uks18FRwnwOEqr5zOTEl+NOwP/OMzKX8OFR/Of9xxDA7D5qef1Nzar5WDD2kCCr1g==", - "cpu": [ - "riscv64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] - }, - "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.61.1.tgz", - "integrity": "sha512-YKJ5lg35DP17gcAOggnihe+APw9HLyj1Xn7gsmGumBJAUDa6NGXNixJzmkWLhcK9TOuuyQjdamzvJefkO7qHZQ==", - "cpu": [ - "riscv64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.61.1.tgz", - "integrity": "sha512-Mlil5G2Jj6a7B3LWGctg+XPL9vdXYuzCtNXfxOQ0nPjc2m6ueUktocPGH9bnAM0bNRKb/bAWTujUU7IJQdQA+g==", + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.2.8.tgz", + "integrity": "sha512-WnHfADMzOV2Y55wlx1hzzQnar/wDt/VdvWSD99r18Mz9ylNieIGOkRx3UV21h7m/eJvjySYJkO26VvGNFkwsIQ==", "cpu": [ "s390x" ], @@ -2536,26 +1618,15 @@ "optional": true, "os": [ "linux" - ] - }, - "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.61.1.tgz", - "integrity": "sha512-bVWIOIk6pV01p4CdUbPP7CJ/434z+OooYjDuFcR+44N35YvKUC66G8MGnvcWx5mWKW3g61J+t74l3Kj15Kwn2Q==", - "cpu": [ - "x64" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.61.1.tgz", - "integrity": "sha512-qy5pBvZbqNFheBz61R1rzsezjm0J7O2oNGoWtGoY89SZYLUfxAJTBAqDChqAIdB4rCiIbi9nF7yZ83GnNiLwSw==", + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.2.8.tgz", + "integrity": "sha512-H9tRr5ibfXFVLxbPOseVewewFpl28zcEdjRDt2FTUZU7odxP0gEv1ki4/kGmcGOh78oRwZuuQllGLZ9zTJp84g==", "cpu": [ "x64" ], @@ -2564,12 +1635,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-openbsd-x64": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.61.1.tgz", - "integrity": "sha512-E83TXjI4zm0+5f2qO+UOudaCYIhYwpJ5jq6YCZNIZ+6CbfhKrkAGezeiASBL9ElxAxFsRS9ZhESv8mfnj6TKeg==", + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.2.8.tgz", + "integrity": "sha512-UefiqfM3D6IVNlZ8tSGs9+Ejjud2T+oxO0IHADU45Y+lyEjD2dVFyZHbkfX0LUb5Zugo/oIv1eCO/KVYhgYJYA==", "cpu": [ "x64" ], @@ -2577,27 +1651,16 @@ "license": "MIT", "optional": true, "os": [ - "openbsd" - ] - }, - "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.61.1.tgz", - "integrity": "sha512-fbWnKqVkjrJN38vNe3ahkbk6iejS/3b0Nt7EEtPpE6RBacZcGXNKbzfHN3GUUlXOPghUg0j6XUGrtjX9z1sIvA==", - "cpu": [ - "arm64" + "linux" ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "openharmony" - ] + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.61.1.tgz", - "integrity": "sha512-ArMl38iVAbk0New1ogihQNY6iphLi4ZaRsa037gUzv5yeKPY8TD3Dmy4x2RNC1VztU/uqm+G+/RwFrSka3Oy2g==", + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.2.8.tgz", + "integrity": "sha512-637Ke4kWSy6rp9cxQ9gMOXlxPgIw/c1beASV4M//3+9I4uwBVOOl74G+e3zyU3u19U7RkRl/HuewixZ/Z6+Rjg==", "cpu": [ "arm64" ], @@ -2605,27 +1668,33 @@ "license": "MIT", "optional": true, "os": [ - "win32" - ] + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.61.1.tgz", - "integrity": "sha512-0mYtjHS9ucAbcATycCNK9IGBk/cCe/ma7EmSLGZdsxnOA8cjRIyU04wDpVAD9NiOfLUR9KTxdiO53uOkherqjQ==", + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.2.8.tgz", + "integrity": "sha512-xWBkPOF1Q9k/Gv1nQXnVdLxKu74jXppuOM4Z3mnypVUJJJwLsMl7hNJGRAUJoG8A5MgOI1ACKM+wBFxSJzKy4A==", "cpu": [ - "ia32" + "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ "win32" - ] + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } }, - "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.61.1.tgz", - "integrity": "sha512-gK1iCEPfpoSG9wfBihXxvBMi8ZfcWffYkEsC/Eih+iFENTaewvNcrEQ69lIOWYO5pePHKLHHO7nq5AILGO/HQQ==", + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.2.8.tgz", + "integrity": "sha512-uz2ZvfgXbxqNwijjjbxrnvALwpyODDcgc1T1N8N3rf/DXKQmaFwmB4LX4yyjggpwN2obdQLb2rgirX5ffCWYng==", "cpu": [ "x64" ], @@ -2634,21 +1703,68 @@ "optional": true, "os": [ "win32" - ] - }, - "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.61.1.tgz", - "integrity": "sha512-X+zaP2x+j4RXGfbp/seSoRHWnPxzApilDszisZxbYH5C/jTxFhCtDNdPGZb9lJyYPs24wGxruPF7Y+sIXt9Gzw==", - "cpu": [ - "x64" ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", "dev": true, + "license": "MIT" + }, + "node_modules/@rollup/plugin-commonjs": { + "version": "22.0.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.2.tgz", + "integrity": "sha512-//NdP6iIwPbMTcazYsiBMbJW7gfmpHom33u1beiIoHDEM0Q9clvtQB1T0efvMqHeKsGohiHo97BCPCkBXdscwg==", "license": "MIT", - "optional": true, - "os": [ - "win32" - ] + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "commondir": "^1.0.1", + "estree-walker": "^2.0.1", + "glob": "^7.1.6", + "is-reference": "^1.2.1", + "magic-string": "^0.25.7", + "resolve": "^1.17.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "rollup": "^2.68.0" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", + "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "license": "MIT", + "dependencies": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" + } + }, + "node_modules/@rollup/pluginutils/node_modules/estree-walker": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", + "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", + "license": "MIT" + }, + "node_modules/@scarf/scarf": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scarf/scarf/-/scarf-1.4.0.tgz", + "integrity": "sha512-xxeapPiUXdZAE3che6f3xogoJPeZgig6omHEy1rIY5WVsB3H2BHNnZH+gHG6x91SCWyQCzWGsuL2Hh3ClO5/qQ==", + "hasInstallScript": true, + "license": "Apache-2.0" }, "node_modules/@so-ric/colorspace": { "version": "1.1.6", @@ -2660,6 +1776,13 @@ "text-hex": "1.0.x" } }, + "node_modules/@stablelib/base64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@stablelib/base64/-/base64-1.0.1.tgz", + "integrity": "sha512-1bnPQqSxSuc3Ii6MhBysoWCg58j97aUjuCSZrGSmDxNqtytIi0k8utUenAwTZN4V5mXXYGsVUI9zeBqy+jBOSQ==", + "license": "MIT", + "optional": true + }, "node_modules/@standard-schema/spec": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@standard-schema/spec/-/spec-1.1.0.tgz", @@ -2812,9 +1935,9 @@ "license": "MIT" }, "node_modules/@stoplight/spectral-cli/node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "version": "17.7.3", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.3.tgz", + "integrity": "sha512-GZtjxm/J/4TSxuL3FNYjCmLktBTnIw/rVmKSIyKeYAZpmJB2ig9VauCC5xsa82GNKVKDAqpOn3KVzNt0zmrU0g==", "license": "MIT", "dependencies": { "cliui": "^8.0.1", @@ -2907,13 +2030,14 @@ "license": "MIT" }, "node_modules/@stoplight/spectral-formats": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.8.2.tgz", - "integrity": "sha512-c06HB+rOKfe7tuxg0IdKDEA5XnjL2vrn/m/OVIIxtINtBzphZrOgtRn7epQ5bQF5SWp84Ue7UJWaGgDwVngMFw==", + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-formats/-/spectral-formats-1.8.5.tgz", + "integrity": "sha512-xaC0rCH0p7/bzNJsz+JgLSj+Cp6uwYGWpePQxdLkF2G6a8Zyp3OyS7umkGYNiimEwKrOjvCNNTFJpeuiENZSBA==", "license": "Apache-2.0", "dependencies": { + "@scarf/scarf": "^1.4.0", "@stoplight/json": "^3.17.0", - "@stoplight/spectral-core": "^1.19.2", + "@stoplight/spectral-core": "^1.23.0", "@types/json-schema": "^7.0.7", "tslib": "^2.8.1" }, @@ -2921,6 +2045,81 @@ "node": "^16.20 || ^18.18 || >= 20.17" } }, + "node_modules/@stoplight/spectral-formats/node_modules/@stoplight/spectral-core": { + "version": "1.23.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.23.1.tgz", + "integrity": "sha512-VLC8OhpO/pMJKb6IHhurxJjXO1qB56Ng1unIb8b+hNxdw0+SEcASvmR+RpjfHYX/jv/DfSaA1x8QhFBJBmqBOQ==", + "license": "Apache-2.0", + "dependencies": { + "@scarf/scarf": "^1.4.0", + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "~3.21.0", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-parsers": "^1.0.0", + "@stoplight/spectral-ref-resolver": "^1.0.4", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "~13.6.0", + "@types/es-aggregate-error": "^1.0.2", + "@types/json-schema": "^7.0.11", + "ajv": "^8.18.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.1", + "es-aggregate-error": "^1.0.7", + "expr-eval-fork": "^3.0.1", + "jsonpath-plus": "^10.3.0", + "lodash": "^4.18.1", + "lodash.topath": "^4.5.2", + "minimatch": "^3.1.4", + "nimma": "0.2.3", + "pony-cause": "^1.1.1", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^16.20 || ^18.18 || >= 20.17" + } + }, + "node_modules/@stoplight/spectral-formats/node_modules/@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + } + }, + "node_modules/@stoplight/spectral-formats/node_modules/ajv-formats": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", + "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/@stoplight/spectral-formats/node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/@stoplight/spectral-formatters": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/@stoplight/spectral-formatters/-/spectral-formatters-1.5.1.tgz", @@ -3062,9 +2261,9 @@ } }, "node_modules/@stoplight/spectral-ruleset-migrator": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-ruleset-migrator/-/spectral-ruleset-migrator-1.12.1.tgz", - "integrity": "sha512-IUEbDmmTro0oF6VoAtrUySRV/b6bvYmV7wV6lB99f0Ym5lF9M2DXcgPLo7VMbKTPjCOQcaBzWRnIMXAyLjIRMA==", + "version": "1.12.2", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-ruleset-migrator/-/spectral-ruleset-migrator-1.12.2.tgz", + "integrity": "sha512-9hTcyXnBGppM1kMA8vVvY6aWzF3vXbU7+mZvvd9wdPE8QdHj9NO//1s+A/TfiWOKdH9GOERC5NITCnVvbEYEWg==", "license": "Apache-2.0", "dependencies": { "@stoplight/json": "~3.21.0", @@ -3108,15 +2307,16 @@ "license": "Apache-2.0" }, "node_modules/@stoplight/spectral-rulesets": { - "version": "1.22.3", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.22.3.tgz", - "integrity": "sha512-CDkXEsrA1OOQPmF0VE92zira+eSI411s7hyIdfVeS/91BrNz3Y5HJgnwWFbh2abKVJ2rNciOzBPyGar+xfiFKA==", + "version": "1.22.7", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-rulesets/-/spectral-rulesets-1.22.7.tgz", + "integrity": "sha512-cT1B6Ly21923lvr235lu7iIgmcnoCTJaN3ANOyTqr4D5GA/4p2k0+yhjhdfj/1ks/Os3kUzSFnFkzpWH7WszFA==", "license": "Apache-2.0", "dependencies": { - "@asyncapi/specs": "^6.8.0", + "@asyncapi/specs": "6.11.1", + "@scarf/scarf": "^1.4.0", "@stoplight/better-ajv-errors": "1.0.3", "@stoplight/json": "^3.17.0", - "@stoplight/spectral-core": "^1.19.4", + "@stoplight/spectral-core": "^1.23.0", "@stoplight/spectral-formats": "^1.8.1", "@stoplight/spectral-functions": "^1.9.1", "@stoplight/spectral-runtime": "^1.1.2", @@ -3133,6 +2333,52 @@ "node": "^16.20 || ^18.18 || >= 20.17" } }, + "node_modules/@stoplight/spectral-rulesets/node_modules/@stoplight/spectral-core": { + "version": "1.23.1", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-core/-/spectral-core-1.23.1.tgz", + "integrity": "sha512-VLC8OhpO/pMJKb6IHhurxJjXO1qB56Ng1unIb8b+hNxdw0+SEcASvmR+RpjfHYX/jv/DfSaA1x8QhFBJBmqBOQ==", + "license": "Apache-2.0", + "dependencies": { + "@scarf/scarf": "^1.4.0", + "@stoplight/better-ajv-errors": "1.0.3", + "@stoplight/json": "~3.21.0", + "@stoplight/path": "1.3.2", + "@stoplight/spectral-parsers": "^1.0.0", + "@stoplight/spectral-ref-resolver": "^1.0.4", + "@stoplight/spectral-runtime": "^1.1.2", + "@stoplight/types": "~13.6.0", + "@types/es-aggregate-error": "^1.0.2", + "@types/json-schema": "^7.0.11", + "ajv": "^8.18.0", + "ajv-errors": "~3.0.0", + "ajv-formats": "~2.1.1", + "es-aggregate-error": "^1.0.7", + "expr-eval-fork": "^3.0.1", + "jsonpath-plus": "^10.3.0", + "lodash": "^4.18.1", + "lodash.topath": "^4.5.2", + "minimatch": "^3.1.4", + "nimma": "0.2.3", + "pony-cause": "^1.1.1", + "tslib": "^2.8.1" + }, + "engines": { + "node": "^16.20 || ^18.18 || >= 20.17" + } + }, + "node_modules/@stoplight/spectral-rulesets/node_modules/@stoplight/types": { + "version": "13.6.0", + "resolved": "https://registry.npmjs.org/@stoplight/types/-/types-13.6.0.tgz", + "integrity": "sha512-dzyuzvUjv3m1wmhPfq82lCVYGcXG0xUYgqnWfCq3PCVR4BKFhjdkHrnJ+jIDoMKvXb05AZP/ObQF6+NpDo29IQ==", + "license": "Apache-2.0", + "dependencies": { + "@types/json-schema": "^7.0.4", + "utility-types": "^3.10.0" + }, + "engines": { + "node": "^12.20 || >=14.13" + } + }, "node_modules/@stoplight/spectral-rulesets/node_modules/ajv-formats": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", @@ -3150,16 +2396,27 @@ } } }, + "node_modules/@stoplight/spectral-rulesets/node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/@stoplight/spectral-runtime": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.5.tgz", - "integrity": "sha512-6/HSCQBKnI4M5qonCKos2W7oggXv+U/ml+m/cAd4eJAYfIVEmaLUo03qSWIIl4cBc5ujJPmn2WnCiRrz1++P7Q==", + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/@stoplight/spectral-runtime/-/spectral-runtime-1.1.6.tgz", + "integrity": "sha512-Y8rEDyMN4bSMJCrDs2shdcVHYyCnH3FvXRP4dBhha4Z8iJv+JPp7KqOV/hwVB/hWFC209upiwj2oDmLfR0qCDg==", "license": "Apache-2.0", "dependencies": { "@stoplight/json": "^3.20.1", "@stoplight/path": "^1.3.2", "@stoplight/types": "^13.6.0", - "abort-controller": "^3.0.0", "lodash": "^4.18.1", "node-fetch": "^2.7.0", "tslib": "^2.8.1" @@ -3280,14 +2537,21 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "25.9.1", - "resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.1.tgz", - "integrity": "sha512-xfrlY7UD5rMJk3ZVJP8BNzS28J36YJg+xp+LPXV1TdWxr8uMH5A860QNxYDGQe/ylDSgjxE52Q9VnO7p75tJxg==", + "version": "26.5.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-26.5.1.tgz", + "integrity": "sha512-CzNm2FezW4VR/LjG6yUdiEgLE/rAQ9Slj5gCu/C2VrdcW7I0ahNZ8DRbHT7zOZ6r3ONgd/bsQIeSaoDGrd1C6g==", "license": "MIT", "dependencies": { - "undici-types": ">=7.24.0 <7.24.7" + "undici-types": "~8.9.0" } }, + "node_modules/@types/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==", + "license": "MIT", + "optional": true + }, "node_modules/@types/sarif": { "version": "2.1.7", "resolved": "https://registry.npmjs.org/@types/sarif/-/sarif-2.1.7.tgz", @@ -3379,16 +2643,16 @@ "license": "MIT" }, "node_modules/@vitest/expect": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.8.tgz", - "integrity": "sha512-h3nDO677RDLEGlBxyQ5CW8RlMThSKSRLUePLOx09gNIWRL40edgA1GCZSZgf1W55MFAG6/Sw14KeaAnqv0NKdQ==", + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.11.tgz", + "integrity": "sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==", "dev": true, "license": "MIT", "dependencies": { "@standard-schema/spec": "^1.1.0", "@types/chai": "^5.2.2", - "@vitest/spy": "4.1.8", - "@vitest/utils": "4.1.8", + "@vitest/spy": "4.1.11", + "@vitest/utils": "4.1.11", "chai": "^6.2.2", "tinyrainbow": "^3.1.0" }, @@ -3407,13 +2671,13 @@ } }, "node_modules/@vitest/mocker": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.8.tgz", - "integrity": "sha512-LEiN/xe4OSIbKe9HQIp5OC24agGD9J5CnmMgsLohVVoOPWL9a2sBoR6VBx43jQZb7Kr1l4RCuyCJzcAa0+dojw==", + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.11.tgz", + "integrity": "sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/spy": "4.1.8", + "@vitest/spy": "4.1.11", "estree-walker": "^3.0.3", "magic-string": "^0.30.21" }, @@ -3461,9 +2725,9 @@ } }, "node_modules/@vitest/pretty-format": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.8.tgz", - "integrity": "sha512-9GasEBxpZ1VYIpqHf/0+YGg121uSNwCKOJqIrTwWP/TB7DmFCiaBpNl3aPZzoLWfWkuqhbH8vJIVobZkvdo2cA==", + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.11.tgz", + "integrity": "sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==", "dev": true, "license": "MIT", "dependencies": { @@ -3474,13 +2738,13 @@ } }, "node_modules/@vitest/runner": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.8.tgz", - "integrity": "sha512-EmVxeBAfMJvycdjd6Hm+RbFBbA9fKvo0Kx37hNpBYoYeavH3RNsBXWDooR1mgD52dCrxIIuP7UotpfiwOikvcg==", + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.11.tgz", + "integrity": "sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/utils": "4.1.8", + "@vitest/utils": "4.1.11", "pathe": "^2.0.3" }, "funding": { @@ -3488,14 +2752,14 @@ } }, "node_modules/@vitest/snapshot": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.8.tgz", - "integrity": "sha512-acfZboRmAIf05DEKcBQy33VXojFJjtUdLyo7oOmV9kebb2xdU01UknNiPuPZoJZQyO7DF0gZdTGTpeAzET9QPQ==", + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.11.tgz", + "integrity": "sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "4.1.8", - "@vitest/utils": "4.1.8", + "@vitest/pretty-format": "4.1.11", + "@vitest/utils": "4.1.11", "magic-string": "^0.30.21", "pathe": "^2.0.3" }, @@ -3514,9 +2778,9 @@ } }, "node_modules/@vitest/spy": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.8.tgz", - "integrity": "sha512-6EevtBp6OZOPF7bmz36HrGMeP3txgVSrgebWxHOafDXGkhIzfXK14f8KF6MuFfgXXUeHxmpD3BQxkV00/3s5mA==", + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.11.tgz", + "integrity": "sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==", "dev": true, "license": "MIT", "funding": { @@ -3524,13 +2788,13 @@ } }, "node_modules/@vitest/utils": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.8.tgz", - "integrity": "sha512-uOJamYALNhfJ6iolExyQM40yIQwDqYnkKtQ5VCiSe17E33H0aQ/u+1GlRuz4LZBk6Mm3sg90G9hEbmEt37C1Zg==", + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.11.tgz", + "integrity": "sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "4.1.8", + "@vitest/pretty-format": "4.1.11", "convert-source-map": "^2.0.0", "tinyrainbow": "^3.1.0" }, @@ -3546,9 +2810,9 @@ "license": "MIT" }, "node_modules/@xmldom/xmldom": { - "version": "0.9.10", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.10.tgz", - "integrity": "sha512-A9gOqLdi6cV4ibazAjcQufGj0B1y/vDqYrcuP6d/6x8P27gRS8643Dj9o1dEKtB6O7fwxb2FgBmJS2mX7gpvdw==", + "version": "0.9.12", + "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.9.12.tgz", + "integrity": "sha512-5AXjrcMClTryPe9LgZrygpB1lj7s0S9E0+W+AHaVKAVyHanafK86iPSvG5xHVSp/jC+VH1UXu0TAEmY279xH7A==", "license": "MIT", "engines": { "node": ">=14.6" @@ -3567,26 +2831,14 @@ "deprecated": "Use your platform's native atob() and btoa() methods instead", "license": "BSD-3-Clause" }, - "node_modules/abort-controller": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", - "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", - "license": "MIT", - "dependencies": { - "event-target-shim": "^5.0.0" - }, - "engines": { - "node": ">=6.5" - } - }, "node_modules/acceptance-of-delivery": { "resolved": "src/acceptance-of-delivery", "link": true }, "node_modules/acorn": { - "version": "8.16.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz", - "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz", + "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -3948,6 +3200,27 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "license": "MIT" }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "optional": true + }, "node_modules/bcrypt-pbkdf": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", @@ -3957,14 +3230,24 @@ "tweetnacl": "^0.14.3" } }, + "node_modules/bignumber.js": { + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.3.1.tgz", + "integrity": "sha512-Ko0uX15oIUS7wJ3Rb30Fs6SkVbLmPBAKdlm7q9+ak9bbIeFf0MwuBsQV6z7+X768/cHsfg+WlysDWJcmthjsjQ==", + "license": "MIT", + "optional": true, + "engines": { + "node": "*" + } + }, "node_modules/bill-of-lading": { "resolved": "src/bill-of-lading", "link": true }, "node_modules/brace-expansion": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.15.tgz", - "integrity": "sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg==", + "version": "1.1.18", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", + "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", @@ -4001,6 +3284,13 @@ "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", "license": "ISC" }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause", + "optional": true + }, "node_modules/builtins": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz", @@ -4238,9 +3528,9 @@ } }, "node_modules/color-string/node_modules/color-name": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-2.1.0.tgz", - "integrity": "sha512-1bPaDNFm0axzE4MEAzKPuqKWeRaT43U/hyxKPBdqTfmPF+d6n7FSoTFxLVULUJOmiLp01KjhIPPH+HrXZJN4Rg==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-2.1.1.tgz", + "integrity": "sha512-p2FdgwVx1a9yWBHP2wI0VgShkDpgN4kZISkxdNipGBJWpa5G6b04OINlVWCyJj0JmfvcPrgqt95E9k8yvaOJFg==", "license": "MIT", "engines": { "node": ">=12.20" @@ -4259,9 +3549,9 @@ } }, "node_modules/color/node_modules/color-name": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-2.1.0.tgz", - "integrity": "sha512-1bPaDNFm0axzE4MEAzKPuqKWeRaT43U/hyxKPBdqTfmPF+d6n7FSoTFxLVULUJOmiLp01KjhIPPH+HrXZJN4Rg==", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-2.1.1.tgz", + "integrity": "sha512-p2FdgwVx1a9yWBHP2wI0VgShkDpgN4kZISkxdNipGBJWpa5G6b04OINlVWCyJj0JmfvcPrgqt95E9k8yvaOJFg==", "license": "MIT", "engines": { "node": ">=12.20" @@ -4289,13 +3579,10 @@ } }, "node_modules/commander": { - "version": "9.5.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz", - "integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==", - "license": "MIT", - "engines": { - "node": "^12.20.0 || >=14" - } + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", + "license": "MIT" }, "node_modules/commondir": { "version": "1.0.1", @@ -4328,12 +3615,19 @@ "resolved": "src/copyright-license", "link": true }, + "node_modules/copyright-license-agreement-poc": { + "resolved": "src/copyright-license-agreement-poc", + "link": true + }, "node_modules/core-js-pure": { - "version": "3.49.0", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.49.0.tgz", - "integrity": "sha512-XM4RFka59xATyJv/cS3O3Kml72hQXUeGRuuTmMYFxwzc9/7C8OYTaIR/Ji+Yt8DXzsFLNhat15cE/JP15HrCgw==", + "version": "3.50.0", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.50.0.tgz", + "integrity": "sha512-6GP3Pxz4IKyWjAfa747vIu/jilB5z29JWROLqH/b+pXVcpgh6tM06ZIBwSuglgVqzDYURhOK6oEzTrG0bCHitA==", "hasInstallScript": true, "license": "MIT", + "engines": { + "node": "*" + }, "funding": { "type": "opencollective", "url": "https://opencollective.com/core-js" @@ -4478,9 +3772,9 @@ } }, "node_modules/dayjs": { - "version": "1.11.21", - "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.21.tgz", - "integrity": "sha512-98IT+HOahAisibz/yjKbzuOBwYcjJ7BCLPzARyHiyEBmRz4fatF+KPJszEHXsGYjUG234aH/cOjW1wwTbKUZlA==", + "version": "1.11.23", + "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.23.tgz", + "integrity": "sha512-QDTCU0M0MxR3hQfnlDJfwekQiaanm1ubOD231u73WBckQ/fsamwRLiE2GBz6D3a/xF1NgfiDLJjXBa1hYOYTtQ==", "license": "MIT" }, "node_modules/debug": { @@ -4602,6 +3896,16 @@ "node": ">= 0.6.0" } }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, "node_modules/diff": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", @@ -4668,6 +3972,16 @@ "safer-buffer": "^2.1.0" } }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -4778,6 +4092,24 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es-abstract-get": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-abstract-get/-/es-abstract-get-1.0.0.tgz", + "integrity": "sha512-6PMWXpdhshVvFp+FoWYs1EvG1Nj0tvk0dZM+XcK0xMEM1czRVcP6ohqPWHy6qPagSpC8j4+p89WXlT+xXJs/fg==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.2", + "is-callable": "^1.2.7", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/es-aggregate-error": { "version": "1.0.14", "resolved": "https://registry.npmjs.org/es-aggregate-error/-/es-aggregate-error-1.0.14.tgz", @@ -4819,9 +4151,9 @@ } }, "node_modules/es-module-lexer": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.1.0.tgz", - "integrity": "sha512-n27zTYMjYu1aj4MjCWzSP7G9r75utsaoc8m61weK+W8JMBGGQybd43GstCXZ3WNmSFtGT9wi59qQTW6mhTR5LQ==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", + "integrity": "sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==", "dev": true, "license": "MIT" }, @@ -4853,14 +4185,17 @@ } }, "node_modules/es-to-primitive": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.0.tgz", - "integrity": "sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==", + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.3.4.tgz", + "integrity": "sha512-yPDz7wqpg1/mmHLmS3tcfTfbw5f1eryXvyghYBffGdERwe+mV7ZcWzTR8LR17Kvqt3qfPurjlonmnq3MKXIOXw==", "license": "MIT", "dependencies": { + "es-abstract-get": "^1.0.0", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", "is-callable": "^1.2.7", - "is-date-object": "^1.0.5", - "is-symbol": "^1.0.4" + "is-date-object": "^1.1.0", + "is-symbol": "^1.1.1" }, "engines": { "node": ">= 0.4" @@ -4876,48 +4211,6 @@ "dev": true, "license": "MIT" }, - "node_modules/esbuild": { - "version": "0.25.12", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz", - "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "bin": { - "esbuild": "bin/esbuild" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.12", - "@esbuild/android-arm": "0.25.12", - "@esbuild/android-arm64": "0.25.12", - "@esbuild/android-x64": "0.25.12", - "@esbuild/darwin-arm64": "0.25.12", - "@esbuild/darwin-x64": "0.25.12", - "@esbuild/freebsd-arm64": "0.25.12", - "@esbuild/freebsd-x64": "0.25.12", - "@esbuild/linux-arm": "0.25.12", - "@esbuild/linux-arm64": "0.25.12", - "@esbuild/linux-ia32": "0.25.12", - "@esbuild/linux-loong64": "0.25.12", - "@esbuild/linux-mips64el": "0.25.12", - "@esbuild/linux-ppc64": "0.25.12", - "@esbuild/linux-riscv64": "0.25.12", - "@esbuild/linux-s390x": "0.25.12", - "@esbuild/linux-x64": "0.25.12", - "@esbuild/netbsd-arm64": "0.25.12", - "@esbuild/netbsd-x64": "0.25.12", - "@esbuild/openbsd-arm64": "0.25.12", - "@esbuild/openbsd-x64": "0.25.12", - "@esbuild/openharmony-arm64": "0.25.12", - "@esbuild/sunos-x64": "0.25.12", - "@esbuild/win32-arm64": "0.25.12", - "@esbuild/win32-ia32": "0.25.12", - "@esbuild/win32-x64": "0.25.12" - } - }, "node_modules/escalade": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", @@ -4995,25 +4288,25 @@ "node": ">=0.10.0" } }, - "node_modules/event-target-shim": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", - "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, "node_modules/expect-type": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz", - "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.4.0.tgz", + "integrity": "sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==", "dev": true, "license": "Apache-2.0", "engines": { "node": ">=12.0.0" } }, + "node_modules/expr-eval-fork": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/expr-eval-fork/-/expr-eval-fork-3.0.3.tgz", + "integrity": "sha512-BhC+hbc5lIVjygr840n5DEkW3MQq7H9o+mc1/N7Z5uIiCFVyESLL5DIE7LNq4CYUNxy+XjA+3jRrL/h0Kt2xcg==", + "license": "MIT", + "engines": { + "node": ">=16.9.0" + } + }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", @@ -5063,10 +4356,17 @@ "integrity": "sha512-Ue0LwpDYErFbmNnZSF0UH6eImUwDmogUO1jyE+JbN2gsQz/jICm1Ve7t9QT0rNSsfJt+Hs4/S3GnsDVjL4HVrw==", "license": "MIT" }, + "node_modules/fast-sha256": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/fast-sha256/-/fast-sha256-1.3.0.tgz", + "integrity": "sha512-n11RGP/lrWEFI/bWdygLxhI+pVeo1ZYIVwvvPkW7azl/rOy+F3HYRZ2K5zeE9mmkhQppyv9sQFx0JM9UabnpPQ==", + "license": "Unlicense", + "optional": true + }, "node_modules/fast-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.2.tgz", - "integrity": "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz", + "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==", "funding": [ { "type": "github", @@ -5080,9 +4380,9 @@ "license": "BSD-3-Clause" }, "node_modules/fastq": { - "version": "1.20.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.1.tgz", - "integrity": "sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==", + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", + "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", "license": "ISC", "dependencies": { "reusify": "^1.0.4" @@ -5094,6 +4394,30 @@ "integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw==", "license": "MIT" }, + "node_modules/fetch-blob": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", + "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "paypal", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "optional": true, + "dependencies": { + "node-domexception": "^1.0.0", + "web-streams-polyfill": "^3.0.3" + }, + "engines": { + "node": "^12.20 || >= 14.13" + } + }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", @@ -5207,21 +4531,34 @@ } }, "node_modules/form-data": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", - "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.6.tgz", + "integrity": "sha512-vKatAh4SlVfgbv+YtmhiRjhEMJsYpsG1Y2rMQtR+SVSbytsSD1YGzDIcrAJmdFec88u/+VoGmxnl+80gL1tRCQ==", "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" + "hasown": "^2.0.4", + "mime-types": "^2.1.35" }, "engines": { "node": ">= 6" } }, + "node_modules/formdata-polyfill": { + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", + "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", + "license": "MIT", + "optional": true, + "dependencies": { + "fetch-blob": "^3.1.2" + }, + "engines": { + "node": ">=12.20.0" + } + }, "node_modules/fragile-goods": { "resolved": "src/fragile-goods", "link": true @@ -5275,17 +4612,20 @@ } }, "node_modules/function.prototype.name": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.8.tgz", - "integrity": "sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.2.0.tgz", + "integrity": "sha512-jObKIik1P2QjPHP5nz5BaOtUlfgS0fWo8IUByNXkM+o+02sJOi94em77GwJKQSJ3gfPHdgzLNrHc1uokV4P/ew==", "license": "MIT", "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.3", - "define-properties": "^1.2.1", + "call-bind": "^1.0.9", + "call-bound": "^1.0.4", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", "functions-have-names": "^1.2.3", - "hasown": "^2.0.2", - "is-callable": "^1.2.7" + "has-property-descriptors": "^1.0.2", + "hasown": "^2.0.4", + "is-callable": "^1.2.7", + "is-document.all": "^1.0.0" }, "engines": { "node": ">= 0.4" @@ -5303,6 +4643,65 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/gaxios": { + "version": "7.3.1", + "resolved": "https://registry.npmjs.org/gaxios/-/gaxios-7.3.1.tgz", + "integrity": "sha512-kB3rzJV7d9juLZh8/56QTXCwQfxyhdOMdyYk1HdQKFtF8TJTDTZQJtixWIwXdE9Jji91mC41DUNpjleo4L4eAQ==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "extend": "^3.0.2", + "https-proxy-agent": "^7.0.1", + "node-fetch": "^3.3.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/gaxios/node_modules/data-uri-to-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", + "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 12" + } + }, + "node_modules/gaxios/node_modules/node-fetch": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", + "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", + "license": "MIT", + "optional": true, + "dependencies": { + "data-uri-to-buffer": "^4.0.0", + "fetch-blob": "^3.1.4", + "formdata-polyfill": "^4.0.10" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/node-fetch" + } + }, + "node_modules/gcp-metadata": { + "version": "8.1.2", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-8.1.2.tgz", + "integrity": "sha512-zV/5HKTfCeKWnxG0Dmrw51hEWFGfcF2xiXqcA3+J90WDuP0SvoiSO5ORvcBsifmx/FoIjgQN3oNOGaQ5PhLFkg==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "gaxios": "^7.0.0", + "google-logging-utils": "^1.0.0", + "json-bigint": "^1.0.0" + }, + "engines": { + "node": ">=18" + } + }, "node_modules/generator-function": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/generator-function/-/generator-function-2.0.1.tgz", @@ -5464,6 +4863,34 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/google-auth-library": { + "version": "10.9.1", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-10.9.1.tgz", + "integrity": "sha512-i1ydyHrqcIxXkWh/uBmVkzCvIuq5yiK2ATndIe5XxKholrG/MTYP9xGYka4sQhrbIAgGjL2B6NOE7rFaiF3fXw==", + "license": "Apache-2.0", + "optional": true, + "dependencies": { + "base64-js": "^1.3.0", + "ecdsa-sig-formatter": "^1.0.11", + "gaxios": "^7.1.4", + "gcp-metadata": "8.1.2", + "google-logging-utils": "1.1.3", + "jws": "^4.0.0" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/google-logging-utils": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/google-logging-utils/-/google-logging-utils-1.1.3.tgz", + "integrity": "sha512-eAmLkjDjAFCVXg7A1unxHsLf961m6y17QFqXqAXGj/gVkKFrEICfStRfwUlGNfeCEjNRa32JEWOUTlYXPyyKvA==", + "license": "Apache-2.0", + "optional": true, + "engines": { + "node": ">=14" + } + }, "node_modules/gopd": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", @@ -5482,6 +4909,16 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "license": "ISC" }, + "node_modules/groq-sdk": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/groq-sdk/-/groq-sdk-1.6.0.tgz", + "integrity": "sha512-ggMgo6n84aZdNObgkSbSxWrdAq4wABsViIRb5e4N15bMUtDLZVhqlgZOI7X4TeqdBMdaVUOuUdZxAZIp06u0vw==", + "license": "Apache-2.0", + "optional": true, + "bin": { + "groq-sdk": "bin/cli" + } + }, "node_modules/growl": { "version": "1.10.5", "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", @@ -5950,6 +5387,21 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-document.all": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-document.all/-/is-document.all-1.0.0.tgz", + "integrity": "sha512-+XSoyS05OdBbhFuELhgTCpFNHkpBOJqtsZfUFFpe5QTw+9Sjbh8zitxhQkYAo6wV7e1Vb8cAPvpCk9jGam/82g==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -6392,9 +5844,9 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", - "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", + "version": "3.15.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.2.tgz", + "integrity": "sha512-6EuL879VkRA+1Cz578mKMiKvjPNEuk6+r1JaFzoSWejZmtf7xWbIyw1e3KkxlkzTIt9Taw6JBhEppG7utc1P+w==", "dev": true, "license": "MIT", "dependencies": { @@ -6478,6 +5930,27 @@ "node": ">=0.4.0" } }, + "node_modules/jsdom/node_modules/ws": { + "version": "7.5.13", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.13.tgz", + "integrity": "sha512-rsKI6xDBFVf4r/x8XyChGK04QR/XHroxs/jUcoWvtEZM8TPU/X/uIY9B1CsSzYws9ZJb/6bbBu7dPhFW00CAoA==", + "license": "MIT", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, "node_modules/jsep": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/jsep/-/jsep-1.4.0.tgz", @@ -6500,6 +5973,16 @@ "node": ">=6" } }, + "node_modules/json-bigint": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-bigint/-/json-bigint-1.0.0.tgz", + "integrity": "sha512-SiPv/8VpZuWbvLSMtTDU8hEfrZWg/mH/nV/b4o0CYbSxu1UIQPLdwKOCIyLQX+VIPO5vrLX3i8qtqFyhdPSUSQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, "node_modules/json-parse-better-errors": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", @@ -6522,6 +6005,20 @@ "ajv": "^8.0.0" } }, + "node_modules/json-schema-to-ts": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/json-schema-to-ts/-/json-schema-to-ts-3.1.1.tgz", + "integrity": "sha512-+DWg8jCJG2TEnpy7kOm/7/AxaYoaRbjVB4LFZLySZlWn8exGs3A4OLJR966cVvU26N7X9TWxl+Jsw7dzAqKT6g==", + "license": "MIT", + "optional": true, + "dependencies": { + "@babel/runtime": "^7.18.3", + "ts-algebra": "^2.0.0" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -6635,16 +6132,39 @@ "node": ">=0.6.0" } }, - "node_modules/jszip": { - "version": "3.10.1", - "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", - "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", - "license": "(MIT OR GPL-3.0-or-later)", + "node_modules/jszip": { + "version": "3.10.1", + "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", + "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", + "license": "(MIT OR GPL-3.0-or-later)", + "dependencies": { + "lie": "~3.3.0", + "pako": "~1.0.2", + "readable-stream": "~2.3.6", + "setimmediate": "^1.0.5" + } + }, + "node_modules/jwa": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz", + "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==", + "license": "MIT", + "optional": true, + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz", + "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==", + "license": "MIT", + "optional": true, "dependencies": { - "lie": "~3.3.0", - "pako": "~1.0.2", - "readable-stream": "~2.3.6", - "setimmediate": "^1.0.5" + "jwa": "^2.0.1", + "safe-buffer": "^5.0.1" } }, "node_modules/kuler": { @@ -6653,6 +6173,10 @@ "integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A==", "license": "MIT" }, + "node_modules/late-payment-poc": { + "resolved": "src/late-payment-poc", + "link": true + }, "node_modules/latedeliveryandpenalty": { "resolved": "src/latedeliveryandpenalty", "link": true @@ -6699,6 +6223,10 @@ "node": ">= 0.8.0" } }, + "node_modules/licensed-work-schedule-poc": { + "resolved": "src/licensed-work-schedule-poc", + "link": true + }, "node_modules/lie": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", @@ -6708,10 +6236,271 @@ "immediate": "~3.0.5" } }, + "node_modules/lightningcss": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", + "integrity": "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.33.0", + "lightningcss-darwin-arm64": "1.33.0", + "lightningcss-darwin-x64": "1.33.0", + "lightningcss-freebsd-x64": "1.33.0", + "lightningcss-linux-arm-gnueabihf": "1.33.0", + "lightningcss-linux-arm64-gnu": "1.33.0", + "lightningcss-linux-arm64-musl": "1.33.0", + "lightningcss-linux-x64-gnu": "1.33.0", + "lightningcss-linux-x64-musl": "1.33.0", + "lightningcss-win32-arm64-msvc": "1.33.0", + "lightningcss-win32-x64-msvc": "1.33.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.33.0.tgz", + "integrity": "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.33.0.tgz", + "integrity": "sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.33.0.tgz", + "integrity": "sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.33.0.tgz", + "integrity": "sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.33.0.tgz", + "integrity": "sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.33.0.tgz", + "integrity": "sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.33.0.tgz", + "integrity": "sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.33.0.tgz", + "integrity": "sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.33.0.tgz", + "integrity": "sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.33.0.tgz", + "integrity": "sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.33.0.tgz", + "integrity": "sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, "node_modules/linkify-it": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.1.tgz", - "integrity": "sha512-wVoTjP4Q6R0NW5hiZkVJaFZPWgtXfoGF+6LucL3/FtiNjmcHhYjEr5f1Kqjirc1nBW07J/ZuRFumqr2oqccEWg==", + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz", + "integrity": "sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==", "funding": [ { "type": "github", @@ -6810,6 +6599,15 @@ "node": ">= 12.0.0" } }, + "node_modules/logform/node_modules/@colors/colors": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.0.tgz", + "integrity": "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==", + "license": "MIT", + "engines": { + "node": ">=0.1.90" + } + }, "node_modules/logform/node_modules/safe-stable-stringify": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz", @@ -6819,21 +6617,12 @@ "node": ">=10" } }, - "node_modules/lorem-ipsum": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/lorem-ipsum/-/lorem-ipsum-2.0.8.tgz", - "integrity": "sha512-5RIwHuCb979RASgCJH0VKERn9cQo/+NcAi2BMe9ddj+gp7hujl6BI+qdOG4nVsLDpwWEJwTVYXNKP6BGgbcoGA==", - "license": "ISC", - "dependencies": { - "commander": "^9.3.0" - }, - "bin": { - "lorem-ipsum": "dist/bin/lorem-ipsum.bin.js" - }, - "engines": { - "node": ">= 8.x", - "npm": ">= 5.x" - } + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0", + "optional": true }, "node_modules/lru-cache": { "version": "4.1.5", @@ -6885,9 +6674,9 @@ "license": "MIT" }, "node_modules/markdown-it": { - "version": "14.2.0", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.2.0.tgz", - "integrity": "sha512-1TGiQiJVRQ3NPmZH6sx5Cfnmg6GQm9jvC1ch4TK511NjSJvjzKLzn5pPfZRNZkRPZP0HqCioSndqH8v2nRaWVQ==", + "version": "14.3.2", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.2.tgz", + "integrity": "sha512-sHHjZ5fJKlgrG4qns2YwVcdNep35h5fERrfkD2YNsb9UFk0UIHarbiTaHKVMlPuWAoiilyK8Fv/jAm11slsY7Q==", "funding": [ { "type": "github", @@ -6901,8 +6690,8 @@ "license": "MIT", "dependencies": { "argparse": "^2.0.1", - "entities": "^4.4.0", - "linkify-it": "^5.0.1", + "entities": "^4.5.0", + "linkify-it": "^5.0.2", "mdurl": "^2.0.0", "punycode.js": "^2.3.1", "uc.micro": "^2.1.0" @@ -6921,9 +6710,9 @@ } }, "node_modules/mdurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.1.0.tgz", + "integrity": "sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==", "license": "MIT" }, "node_modules/merge-source-map": { @@ -7073,12 +6862,6 @@ "node": ">= 4.0.0" } }, - "node_modules/mocha/node_modules/commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", - "license": "MIT" - }, "node_modules/mocha/node_modules/debug": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", @@ -7171,9 +6954,9 @@ "license": "MIT" }, "node_modules/nanoid": { - "version": "3.3.12", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", - "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "version": "3.3.19", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", + "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", "dev": true, "funding": [ { @@ -21681,7 +21464,28 @@ "clone": "2.x" }, "engines": { - "node": ">= 8.0.0" + "node": ">= 8.0.0" + } + }, + "node_modules/node-domexception": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", + "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "deprecated": "Use your platform's native DOMException instead", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jimmywarting" + }, + { + "type": "github", + "url": "https://paypal.me/jimmywarting" + } + ], + "license": "MIT", + "optional": true, + "engines": { + "node": ">=10.5.0" } }, "node_modules/node-fetch": { @@ -21831,9 +21635,9 @@ } }, "node_modules/nwsapi": { - "version": "2.2.23", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.23.tgz", - "integrity": "sha512-7wfH4sLbt4M0gCDzGE6vzQBo0bfTKjU7Sfpqy/7gs1qBfYz2vEJH6vXcBKpO3+6Yu1telwd0t9HpyOoLEQQbIQ==", + "version": "2.2.27", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.27.tgz", + "integrity": "sha512-gQPNF78qebCQ6tvVFBYrvJdBNOrYZm90ZlXgpIFm06p6qHDHq/XC4TnJftN6OMbxVE0UTBAoRgcsDeJBBooITw==", "license": "MIT" }, "node_modules/nyc": { @@ -22131,9 +21935,9 @@ } }, "node_modules/obug": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.2.tgz", - "integrity": "sha512-AWGB9WFcRXOQs48Z/udjI5ZcZMHXwX8XPByNpOydgcGsDLIzjGizhoMWJyKAWze7AVW/2W1i+/gPX4YtKe5cyg==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/obug/-/obug-2.2.1.tgz", + "integrity": "sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==", "dev": true, "funding": [ "https://github.com/sponsors/sxzz", @@ -22170,6 +21974,37 @@ "resolved": "src/online-payment-contract-tr", "link": true }, + "node_modules/openai": { + "version": "6.49.0", + "resolved": "https://registry.npmjs.org/openai/-/openai-6.49.0.tgz", + "integrity": "sha512-aYCc0C6L864eR6WSYIwQGyXriw/nIyZx0ObvhzOEVuk0zoBDpynjSbrionWI7q65B5H8jJX0DXR9snEzM6bfPg==", + "license": "Apache-2.0", + "optional": true, + "peerDependencies": { + "@aws-sdk/credential-provider-node": ">=3.972.0 <4", + "@smithy/hash-node": ">=4.3.0 <5", + "@smithy/signature-v4": ">=5.4.0 <6", + "ws": "^8.18.0", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@aws-sdk/credential-provider-node": { + "optional": true + }, + "@smithy/hash-node": { + "optional": true + }, + "@smithy/signature-v4": { + "optional": true + }, + "ws": { + "optional": true + }, + "zod": { + "optional": true + } + } + }, "node_modules/optionator": { "version": "0.8.3", "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", @@ -22198,12 +22033,13 @@ } }, "node_modules/own-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.1.tgz", - "integrity": "sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/own-keys/-/own-keys-1.0.2.tgz", + "integrity": "sha512-19YVAg7T+WTrxggPukVq7DjTv6+PJ867TmhCvBsYwmbFCsZd344rq2Ld1p0wo8f8Qrrhgp82c6FJRqdXWtSEhg==", "license": "MIT", "dependencies": { - "get-intrinsic": "^1.2.6", + "call-bound": "^1.0.4", + "get-intrinsic": "^1.3.0", "object-keys": "^1.1.1", "safe-push-apply": "^1.0.0" }, @@ -22244,6 +22080,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/p-retry": { + "version": "4.6.2", + "resolved": "https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz", + "integrity": "sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", @@ -22534,9 +22384,9 @@ } }, "node_modules/postcss": { - "version": "8.5.15", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.15.tgz", - "integrity": "sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==", + "version": "8.5.28", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", + "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", "dev": true, "funding": [ { @@ -22554,7 +22404,7 @@ ], "license": "MIT", "dependencies": { - "nanoid": "^3.3.12", + "nanoid": "^3.3.18", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" }, @@ -22603,6 +22453,30 @@ "resolved": "src/promissory-note-md", "link": true }, + "node_modules/protobufjs": { + "version": "7.6.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.6.tgz", + "integrity": "sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "optional": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.5", + "@protobufjs/eventemitter": "^1.1.1", + "@protobufjs/fetch": "^1.1.1", + "@protobufjs/float": "^1.0.2", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.1", + "@types/node": ">=13.7.0", + "long": "^5.3.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/proxy-from-env": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz", @@ -23051,6 +22925,16 @@ "node": ">=4" } }, + "node_modules/retry": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.13.1.tgz", + "integrity": "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 4" + } + }, "node_modules/reusify": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", @@ -23080,6 +22964,40 @@ "rimraf": "bin.js" } }, + "node_modules/rolldown": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.2.8.tgz", + "integrity": "sha512-Z67nTmhZe7anqnM/EjI392w5i/ANUinjip7QYsOyN37oayduxt3ksdX0hf5OOamkAd53BiIHfbfSzfUmzKFQqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.149.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm-eabi": "1.2.8", + "@rolldown/binding-android-arm64": "1.2.8", + "@rolldown/binding-darwin-arm64": "1.2.8", + "@rolldown/binding-darwin-x64": "1.2.8", + "@rolldown/binding-freebsd-x64": "1.2.8", + "@rolldown/binding-linux-arm-gnueabihf": "1.2.8", + "@rolldown/binding-linux-arm64-gnu": "1.2.8", + "@rolldown/binding-linux-arm64-musl": "1.2.8", + "@rolldown/binding-linux-ppc64-gnu": "1.2.8", + "@rolldown/binding-linux-s390x-gnu": "1.2.8", + "@rolldown/binding-linux-x64-gnu": "1.2.8", + "@rolldown/binding-linux-x64-musl": "1.2.8", + "@rolldown/binding-openharmony-arm64": "1.2.8", + "@rolldown/binding-win32-arm64-msvc": "1.2.8", + "@rolldown/binding-win32-x64-msvc": "1.2.8" + } + }, "node_modules/rollup": { "version": "2.80.0", "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.80.0.tgz", @@ -23249,14 +23167,14 @@ } }, "node_modules/schema-utils": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.3.3.tgz", - "integrity": "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-4.5.0.tgz", + "integrity": "sha512-zJlMCZ0cAR5p/Y4oVpRoqioDMJcGxaXRrQ/4rP4WyR84vc5z/DolXdbvXeDpTwbtocDFr2rhPqHPErDCUtz2kA==", "license": "MIT", "dependencies": { - "@types/json-schema": "^7.0.9", - "ajv": "^8.9.0", - "ajv-formats": "^2.1.1", + "@types/json-schema": "^7.0.15", + "ajv": "^8.20.0", + "ajv-formats": "^3.0.1", "ajv-keywords": "^5.1.0" }, "engines": { @@ -23267,23 +23185,6 @@ "url": "https://opencollective.com/webpack" } }, - "node_modules/schema-utils/node_modules/ajv-formats": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz", - "integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==", - "license": "MIT", - "dependencies": { - "ajv": "^8.0.0" - }, - "peerDependencies": { - "ajv": "^8.0.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, "node_modules/semver": { "version": "5.6.0", "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", @@ -23575,14 +23476,14 @@ } }, "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz", + "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==", "license": "MIT", "dependencies": { "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", + "object-inspect": "^1.13.4", + "side-channel-list": "^1.0.1", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" }, @@ -23824,6 +23725,17 @@ "get-source": "^2.0.12" } }, + "node_modules/standardwebhooks": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/standardwebhooks/-/standardwebhooks-1.1.1.tgz", + "integrity": "sha512-bCbX9ZEyFkWPsRz7Bl3NuQUJohmwGSev/yhr7vhaGPlc4AfIrspIRa6cPTBuI1ItmrTDJ4d/S2hCsfe4+vQGnQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "@stablelib/base64": "^1.0.0", + "fast-sha256": "^1.3.0" + } + }, "node_modules/static-eval": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-2.1.1.tgz", @@ -23864,9 +23776,9 @@ } }, "node_modules/std-env": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.1.0.tgz", - "integrity": "sha512-Rq7ybcX2RuC55r9oaPVEW7/xu3tj8u4GeBYHBWCychFtzMIr86A7e3PPEBPT37sHStKX3+TiX/Fr/ACmJLVlLQ==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-4.2.0.tgz", + "integrity": "sha512-oCUKSupKTHX53EyjDtuZQ64pjLJ6yYCtpmEw0goYxtjG9KpbRe8KAsl2tBUGU9DyMcJ0RwJ8GqJAFzMXcXW1Rw==", "dev": true, "license": "MIT" }, @@ -23922,18 +23834,19 @@ } }, "node_modules/string.prototype.trim": { - "version": "1.2.10", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.10.tgz", - "integrity": "sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==", + "version": "1.2.11", + "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.11.tgz", + "integrity": "sha512-PwvK7BU+CMTJGYQCTZb5RWXIML92lftJLhQz1tBzgKiqGxJaMlBAa48POXaNAC2s4y8jr3EFqrkF9+44neS46w==", "license": "MIT", "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.2", + "call-bind": "^1.0.9", + "call-bound": "^1.0.4", "define-data-property": "^1.1.4", "define-properties": "^1.2.1", - "es-abstract": "^1.23.5", - "es-object-atoms": "^1.0.0", - "has-property-descriptors": "^1.0.2" + "es-abstract": "^1.24.2", + "es-object-atoms": "^1.1.2", + "has-property-descriptors": "^1.0.2", + "safe-regex-test": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -23943,15 +23856,15 @@ } }, "node_modules/string.prototype.trimend": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.9.tgz", - "integrity": "sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.10.tgz", + "integrity": "sha512-2+3aDAOmPTmuFwjDnmJG2ctEkQKVki7vOSqaxkv42Mowj1V6PnvuwFCRrR5lChUux1TBskPjfkeTOhqczDMxTw==", "license": "MIT", "dependencies": { - "call-bind": "^1.0.8", - "call-bound": "^1.0.2", + "call-bind": "^1.0.9", + "call-bound": "^1.0.4", "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" + "es-object-atoms": "^1.1.2" }, "engines": { "node": ">= 0.4" @@ -24042,9 +23955,9 @@ "license": "MIT" }, "node_modules/tar": { - "version": "7.5.16", - "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.16.tgz", - "integrity": "sha512-56adEpPMouktRlBLXiaYFFzZ/3+JXa8P9n7WbR+ibIjtviN55mEaOkiysCnPnWm+7kkui1Dn8J9l+g6zV8731w==", + "version": "7.5.22", + "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.22.tgz", + "integrity": "sha512-MFO/QzvtAOmJbkhOaCTvbGcFN9L9b+JunIsDwaKljSOdcLMea3NJ1k9Usz/rjdfSXTq4dfzfeS7W4p4YOAAHeA==", "license": "BlueOak-1.0.0", "dependencies": { "@isaacs/fs-minipass": "^4.0.0", @@ -24102,9 +24015,9 @@ "license": "MIT" }, "node_modules/tinyexec": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.2.4.tgz", - "integrity": "sha512-SHf/r48b7vOrjve9PxJo3MN5v5yuyjHvdUcrQffT3WXMUfnGmHDVbC4k3sHJaJTgZCwpUplIaAo5ANtMyp3YHg==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.1.tgz", + "integrity": "sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==", "dev": true, "license": "MIT", "engines": { @@ -24147,9 +24060,9 @@ } }, "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", - "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { @@ -24160,9 +24073,9 @@ } }, "node_modules/tinyrainbow": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.0.tgz", - "integrity": "sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.1.tgz", + "integrity": "sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==", "dev": true, "license": "MIT", "engines": { @@ -24257,6 +24170,13 @@ "node": ">= 14.0.0" } }, + "node_modules/ts-algebra": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ts-algebra/-/ts-algebra-2.0.0.tgz", + "integrity": "sha512-FPAhNPFMrkwz76P7cdjdmiShwMynZYN6SgOujD1urY4oNm80Ou9oMdmbR45LotcKOXoy7wSmHkRFE6Mxbrhefw==", + "license": "MIT", + "optional": true + }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", @@ -24448,9 +24368,9 @@ "license": "MIT" }, "node_modules/undici-types": { - "version": "7.24.6", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", - "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz", + "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==", "license": "MIT" }, "node_modules/universalify": { @@ -24534,24 +24454,23 @@ "license": "MIT" }, "node_modules/vite": { - "version": "6.4.3", - "resolved": "https://registry.npmjs.org/vite/-/vite-6.4.3.tgz", - "integrity": "sha512-NTKlcQjlAK7MlQoyb6LgaqHc8sso/pVyUJYWMws3jg21uTJw/LddqIFPcPqP6PzpgbIcZyKI85sFE4HBrQDA8A==", + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.0.tgz", + "integrity": "sha512-lhZBVvEHefgE+HQZC9O7EBJgCU/nVzFNl7vkS4RE0APtWLP02/8QVIkQtzBxPquh7lq5/78NHipTj7ODQ6XuyQ==", "dev": true, "license": "MIT", "dependencies": { - "esbuild": "^0.25.0", - "fdir": "^6.4.4", - "picomatch": "^4.0.2", - "postcss": "^8.5.3", - "rollup": "^4.34.9", - "tinyglobby": "^0.2.13" + "lightningcss": "^1.33.0", + "picomatch": "^4.0.7", + "postcss": "^8.5.28", + "rolldown": "~1.2.6", + "tinyglobby": "^0.2.17" }, "bin": { "vite": "bin/vite.js" }, "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + "node": "^20.19.0 || >=22.12.0" }, "funding": { "url": "https://github.com/vitejs/vite?sponsor=1" @@ -24560,14 +24479,15 @@ "fsevents": "~2.3.3" }, "peerDependencies": { - "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.7.1", + "esbuild": "^0.27.0 || ^0.28.0", "jiti": ">=1.21.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" @@ -24576,13 +24496,16 @@ "@types/node": { "optional": true }, - "jiti": { + "@vitejs/devtools": { "optional": true }, - "less": { + "esbuild": { "optional": true }, - "lightningcss": { + "jiti": { + "optional": true + }, + "less": { "optional": true }, "sass": { @@ -24608,35 +24531,10 @@ } } }, - "node_modules/vite/node_modules/@types/estree": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", - "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", - "dev": true, - "license": "MIT" - }, - "node_modules/vite/node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, "node_modules/vite/node_modules/picomatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", - "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { @@ -24646,65 +24544,20 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/vite/node_modules/rollup": { - "version": "4.61.1", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.61.1.tgz", - "integrity": "sha512-I4KW6iuRpuu2uHBLraZ1wNZe0DP7lnRha+VJ9tNaYVaVgKhW0aI3h4RYnoRPeql0flHm/Co55b7snEDcOfOJrA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/estree": "1.0.9" - }, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=18.0.0", - "npm": ">=8.0.0" - }, - "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.61.1", - "@rollup/rollup-android-arm64": "4.61.1", - "@rollup/rollup-darwin-arm64": "4.61.1", - "@rollup/rollup-darwin-x64": "4.61.1", - "@rollup/rollup-freebsd-arm64": "4.61.1", - "@rollup/rollup-freebsd-x64": "4.61.1", - "@rollup/rollup-linux-arm-gnueabihf": "4.61.1", - "@rollup/rollup-linux-arm-musleabihf": "4.61.1", - "@rollup/rollup-linux-arm64-gnu": "4.61.1", - "@rollup/rollup-linux-arm64-musl": "4.61.1", - "@rollup/rollup-linux-loong64-gnu": "4.61.1", - "@rollup/rollup-linux-loong64-musl": "4.61.1", - "@rollup/rollup-linux-ppc64-gnu": "4.61.1", - "@rollup/rollup-linux-ppc64-musl": "4.61.1", - "@rollup/rollup-linux-riscv64-gnu": "4.61.1", - "@rollup/rollup-linux-riscv64-musl": "4.61.1", - "@rollup/rollup-linux-s390x-gnu": "4.61.1", - "@rollup/rollup-linux-x64-gnu": "4.61.1", - "@rollup/rollup-linux-x64-musl": "4.61.1", - "@rollup/rollup-openbsd-x64": "4.61.1", - "@rollup/rollup-openharmony-arm64": "4.61.1", - "@rollup/rollup-win32-arm64-msvc": "4.61.1", - "@rollup/rollup-win32-ia32-msvc": "4.61.1", - "@rollup/rollup-win32-x64-gnu": "4.61.1", - "@rollup/rollup-win32-x64-msvc": "4.61.1", - "fsevents": "~2.3.2" - } - }, "node_modules/vitest": { - "version": "4.1.8", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.8.tgz", - "integrity": "sha512-flY6ScbCIt9HThs+C5HS7jvGOB560DJtk/Z15IQROTA6zEy49Nh8T/dofWTQL+n3vswqn87sbJNiuqw1SDp5Ig==", + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.11.tgz", + "integrity": "sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/expect": "4.1.8", - "@vitest/mocker": "4.1.8", - "@vitest/pretty-format": "4.1.8", - "@vitest/runner": "4.1.8", - "@vitest/snapshot": "4.1.8", - "@vitest/spy": "4.1.8", - "@vitest/utils": "4.1.8", + "@vitest/expect": "4.1.11", + "@vitest/mocker": "4.1.11", + "@vitest/pretty-format": "4.1.11", + "@vitest/runner": "4.1.11", + "@vitest/snapshot": "4.1.11", + "@vitest/spy": "4.1.11", + "@vitest/utils": "4.1.11", "es-module-lexer": "^2.0.0", "expect-type": "^1.3.0", "magic-string": "^0.30.21", @@ -24732,12 +24585,12 @@ "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", - "@vitest/browser-playwright": "4.1.8", - "@vitest/browser-preview": "4.1.8", - "@vitest/browser-webdriverio": "4.1.8", - "@vitest/coverage-istanbul": "4.1.8", - "@vitest/coverage-v8": "4.1.8", - "@vitest/ui": "4.1.8", + "@vitest/browser-playwright": "4.1.11", + "@vitest/browser-preview": "4.1.11", + "@vitest/browser-webdriverio": "4.1.11", + "@vitest/coverage-istanbul": "4.1.11", + "@vitest/coverage-v8": "4.1.11", + "@vitest/ui": "4.1.11", "happy-dom": "*", "jsdom": "*", "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" @@ -24792,9 +24645,9 @@ } }, "node_modules/vitest/node_modules/picomatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", - "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { @@ -24837,6 +24690,16 @@ "xml-name-validator": "^3.0.0" } }, + "node_modules/web-streams-polyfill": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", + "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", + "license": "MIT", + "optional": true, + "engines": { + "node": ">= 8" + } + }, "node_modules/webidl-conversions": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", @@ -24960,9 +24823,9 @@ "license": "ISC" }, "node_modules/which-typed-array": { - "version": "1.1.21", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.21.tgz", - "integrity": "sha512-zbRA8cVm6io/d5W8uIe2hblzN76/Wm3v/yiythQvr+dpBWeqhPSWIDNj4zOyHi4zKbMK6DN34Xsr9jPHJERAEw==", + "version": "1.1.22", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.22.tgz", + "integrity": "sha512-fvO4ExWMFsqyhG3AiPAObMuY1lxaqgYcxbc49CNdWDDECOJNgQyvsOWVwbZc+qf3rzRtxojBK+CMEv0Ld5CYpw==", "license": "MIT", "dependencies": { "available-typed-arrays": "^1.0.7", @@ -25127,16 +24990,16 @@ } }, "node_modules/ws": { - "version": "7.5.11", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.11.tgz", - "integrity": "sha512-zS54Oen9bITtp7kp2XM3AydrCIq1D+HwJOuH+c+e4LfpL/lotP5osijd+UoMnxwAam1GN8R4KtLAyIrIcBNpiA==", + "version": "8.21.3", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz", + "integrity": "sha512-201TZ/kPWxoPr/OKWjquZR1SWKXcvxdH+e1xrx89b3YbmzLMFCLfnaG1HFIgWzJOEWZ7MvpK++odZufgYR50Rw==", "license": "MIT", "engines": { - "node": ">=8.3.0" + "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -25185,9 +25048,9 @@ "license": "ISC" }, "node_modules/yaml": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.0.tgz", - "integrity": "sha512-2AvhNX3mb8zd6Zy7INTtSpl1F15HW6Wnqj0srWlkKLcpYl/gMIMJiyuGq2KeI2YFxUPjdlB+3Lc10seMLtL4cA==", + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", + "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", "license": "ISC", "bin": { "yaml": "bin.mjs" @@ -25259,6 +25122,26 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/zod": { + "version": "4.6.5", + "resolved": "https://registry.npmjs.org/zod/-/zod-4.6.5.tgz", + "integrity": "sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==", + "license": "MIT", + "optional": true, + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-to-json-schema": { + "version": "3.25.2", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz", + "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==", + "license": "ISC", + "optional": true, + "peerDependencies": { + "zod": "^3.25.28 || ^4" + } + }, "src/acceptance-of-delivery": { "version": "1.0.0", "license": "Apache-2.0" @@ -25272,7 +25155,7 @@ "license": "Apache-2.0" }, "src/certificate-of-incorporation": { - "version": "1.0.0", + "version": "1.0.2", "license": "Apache-2.0" }, "src/company-information": { @@ -25284,7 +25167,11 @@ "license": "Apache-2.0" }, "src/copyright-license": { - "version": "1.0.0", + "version": "1.0.1", + "license": "Apache-2.0" + }, + "src/copyright-license-agreement-poc": { + "version": "0.1.0", "license": "Apache-2.0" }, "src/demandforecast": { @@ -25292,16 +25179,16 @@ "license": "Apache-2.0" }, "src/docusign-connect": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/docusign-po-failure": { "name": "purchase-order-failure", - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/eat-apples": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/empty": { @@ -25321,15 +25208,15 @@ "license": "Apache-2.0" }, "src/fragile-goods": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/full-payment-upon-demand": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/full-payment-upon-signature": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/hellomodule": { @@ -25345,7 +25232,7 @@ "license": "Apache-2.0" }, "src/installment-sale": { - "version": "6.0.0", + "version": "6.0.1", "license": "Apache-2.0" }, "src/interest-rate-swap": { @@ -25353,7 +25240,11 @@ "license": "Apache-2.0" }, "src/ip-payment": { - "version": "1.0.0", + "version": "2.0.0", + "license": "Apache-2.0" + }, + "src/late-payment-poc": { + "version": "0.1.0", "license": "Apache-2.0" }, "src/latedeliveryandpenalty": { @@ -25377,7 +25268,11 @@ "license": "Apache-2.0" }, "src/lateinvoicewithpayment": { - "version": "1.0.0", + "version": "1.0.2", + "license": "Apache-2.0" + }, + "src/licensed-work-schedule-poc": { + "version": "0.1.0", "license": "Apache-2.0" }, "src/minilatedeliveryandpenalty": { @@ -25389,11 +25284,11 @@ "license": "Apache-2.0" }, "src/minilatedeliveryandpenalty-payment": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/one-time-payment-tr": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/online-payment-contract-tr": { @@ -25401,19 +25296,19 @@ "license": "Apache-2.0" }, "src/payment-upon-delivery": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/payment-upon-iot": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/payment-upon-signature": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/perishable-goods": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/project-information": { @@ -25429,11 +25324,11 @@ "license": "Apache-2.0" }, "src/rental-deposit": { - "version": "1.0.0", + "version": "1.0.2", "license": "Apache-2.0" }, "src/rental-deposit-with": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/roommate": { @@ -25453,7 +25348,7 @@ "license": "Apache-2.0" }, "src/servicelevelagreement": { - "version": "1.0.0", + "version": "1.0.2", "license": "Apache-2.0" }, "src/signature-block-title-name-date": { @@ -25469,11 +25364,11 @@ "license": "Apache-2.0" }, "src/supplyagreement": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/supplyagreement-perishable-goods": { - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0" }, "src/volumediscount": { diff --git a/package.json b/package.json index dcdcfef7c..231056f1b 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "node": ">=22" }, "overrides": { - "ajv": "8.17.1" + "ajv": "8.17.1", + "@accordproject/cicero-core": "$@accordproject/cicero-core" }, "nyc": { "include": [ @@ -34,14 +35,14 @@ "all": true }, "dependencies": { - "@accordproject/cicero-core": "2.1.1", - "@accordproject/concerto-cli": "4.0.1", - "@accordproject/concerto-core": "4.1.4", - "@accordproject/concerto-codegen": "4.1.3", - "@accordproject/concerto-util": "4.1.4", - "@accordproject/markdown-cicero": "1.0.1", - "@accordproject/markdown-html": "1.0.1", - "@accordproject/template-engine": "4.0.0", + "@accordproject/cicero-core": "github:accordproject/template-archive#claude/agreement-1.0-dual-runtime-dist", + "@accordproject/concerto-cli": "^4.2.0", + "@accordproject/concerto-core": "^5.0.0", + "@accordproject/concerto-codegen": "^6.3.0", + "@accordproject/concerto-util": "^5.0.0", + "@accordproject/markdown-cicero": "^1.1.0", + "@accordproject/markdown-html": "^1.1.0", + "@accordproject/template-engine": "github:accordproject/template-engine#claude/agreement-1.0-logic-dist", "adm-zip": "^0.4.11", "bulma": "^0.7.1", "chai": "4.2.0", diff --git a/src/acceptance-of-delivery/logic/generated/concerto@1.0.0.ts b/src/acceptance-of-delivery/logic/generated/concerto@1.0.0.ts index 8943ced8b..cf5a8215a 100644 --- a/src/acceptance-of-delivery/logic/generated/concerto@1.0.0.ts +++ b/src/acceptance-of-delivery/logic/generated/concerto@1.0.0.ts @@ -57,14 +57,14 @@ export interface IParticipant extends IConcept { } export interface ITransaction extends IConcept { - $timestamp: Date; + $timestamp: string; } export type TransactionUnion = IRequest | IResponse; export interface IEvent extends IConcept { - $timestamp: Date; + $timestamp: string; } export type EventUnion = IObligation; diff --git a/src/acceptance-of-delivery/logic/generated/org.accordproject.acceptanceofdelivery@0.1.0.ts b/src/acceptance-of-delivery/logic/generated/org.accordproject.acceptanceofdelivery@0.1.0.ts index e7a497627..efae5d9eb 100644 --- a/src/acceptance-of-delivery/logic/generated/org.accordproject.acceptanceofdelivery@0.1.0.ts +++ b/src/acceptance-of-delivery/logic/generated/org.accordproject.acceptanceofdelivery@0.1.0.ts @@ -7,7 +7,7 @@ import {IRequest,IResponse} from './org.accordproject.runtime@0.2.0'; // interfaces export interface IInspectDeliverable extends IRequest { - deliverableReceivedAt: Date; + deliverableReceivedAt: string; inspectionPassed: boolean; } diff --git a/src/acceptance-of-delivery/logic/generated/org.accordproject.runtime@0.2.0.ts b/src/acceptance-of-delivery/logic/generated/org.accordproject.runtime@0.2.0.ts index b81ba12ac..4d74152e3 100644 --- a/src/acceptance-of-delivery/logic/generated/org.accordproject.runtime@0.2.0.ts +++ b/src/acceptance-of-delivery/logic/generated/org.accordproject.runtime@0.2.0.ts @@ -31,7 +31,7 @@ export interface IObligation extends IEvent { contract: IContract; promisor?: IParticipant; promisee?: IParticipant; - deadline?: Date; + deadline?: string; } export interface IState extends IAsset { diff --git a/src/bill-of-lading/logic/generated/concerto@1.0.0.ts b/src/bill-of-lading/logic/generated/concerto@1.0.0.ts index 59a68657e..ca6762ae0 100644 --- a/src/bill-of-lading/logic/generated/concerto@1.0.0.ts +++ b/src/bill-of-lading/logic/generated/concerto@1.0.0.ts @@ -37,10 +37,10 @@ export interface IParticipant extends IConcept { } export interface ITransaction extends IConcept { - $timestamp: Date; + $timestamp: string; } export interface IEvent extends IConcept { - $timestamp: Date; + $timestamp: string; } diff --git a/src/certificate-of-incorporation/logic/generated/concerto@1.0.0.ts b/src/certificate-of-incorporation/logic/generated/concerto@1.0.0.ts index c4cb437b3..4b094af69 100644 --- a/src/certificate-of-incorporation/logic/generated/concerto@1.0.0.ts +++ b/src/certificate-of-incorporation/logic/generated/concerto@1.0.0.ts @@ -19,9 +19,6 @@ import type { } from './org.accordproject.runtime@0.2.0'; // Warning: Beware of circular dependencies when modifying these imports -import type { - IIncorporationEvent -} from './org.accordproject.certificateofincorporation@0.1.0'; import type { IObligation } from './org.accordproject.runtime@0.2.0'; @@ -44,16 +41,15 @@ export interface IParticipant extends IConcept { } export interface ITransaction extends IConcept { - $timestamp: Date; + $timestamp: string; } export type TransactionUnion = IRequest | IResponse; export interface IEvent extends IConcept { - $timestamp: Date; + $timestamp: string; } -export type EventUnion = IIncorporationEvent | -IObligation; +export type EventUnion = IObligation; diff --git a/src/certificate-of-incorporation/logic/generated/org.accordproject.certificateofincorporation@0.1.0.ts b/src/certificate-of-incorporation/logic/generated/org.accordproject.certificateofincorporation@0.1.0.ts index c5e4b98fa..00bc4316d 100644 --- a/src/certificate-of-incorporation/logic/generated/org.accordproject.certificateofincorporation@0.1.0.ts +++ b/src/certificate-of-incorporation/logic/generated/org.accordproject.certificateofincorporation@0.1.0.ts @@ -2,18 +2,19 @@ // Generated code for namespace: org.accordproject.certificateofincorporation@0.1.0 // imports -import {IClause} from './org.accordproject.contract@0.2.0'; -import {IEvent} from './concerto@1.0.0'; +import {IContract} from './org.accordproject.contract@0.2.0'; +import {IObligation} from './org.accordproject.runtime@0.2.0'; +import {IParticipant} from './concerto@1.0.0'; // interfaces -export interface IIncorporationEvent extends IEvent { +export interface IIncorporationEvent extends IObligation { companyName: string; - incorporationDate: Date; + incorporationDate: string; authorizedShareCapital: number; parValue: number; } -export interface ITemplateModel extends IClause { +export interface ITemplateModel extends IContract { companyName: string; incorporationState: string; streetAddress: string; @@ -21,7 +22,7 @@ export interface ITemplateModel extends IClause { addressLocality: string; postalCode: string; registeredAgentName: string; - incorporationDate: Date; + incorporationDate: string; authorizedShareCapital: number; parValue: number; incorporatorName: string; diff --git a/src/certificate-of-incorporation/logic/generated/org.accordproject.contract@0.2.0.ts b/src/certificate-of-incorporation/logic/generated/org.accordproject.contract@0.2.0.ts index 365412886..fd31a2940 100644 --- a/src/certificate-of-incorporation/logic/generated/org.accordproject.contract@0.2.0.ts +++ b/src/certificate-of-incorporation/logic/generated/org.accordproject.contract@0.2.0.ts @@ -14,9 +14,9 @@ export interface IContract extends IAsset { contractId: string; } +export type ContractUnion = ITemplateModel; + export interface IClause extends IAsset { clauseId: string; } -export type ClauseUnion = ITemplateModel; - diff --git a/src/certificate-of-incorporation/logic/generated/org.accordproject.runtime@0.2.0.ts b/src/certificate-of-incorporation/logic/generated/org.accordproject.runtime@0.2.0.ts index bd06d133f..31791d76a 100644 --- a/src/certificate-of-incorporation/logic/generated/org.accordproject.runtime@0.2.0.ts +++ b/src/certificate-of-incorporation/logic/generated/org.accordproject.runtime@0.2.0.ts @@ -7,6 +7,11 @@ import type { IContractSigned } from './org.accordproject.signature@0.3.0'; + +// Warning: Beware of circular dependencies when modifying these imports +import type { + IIncorporationEvent +} from './org.accordproject.certificateofincorporation@0.1.0'; import {IContract} from './org.accordproject.contract@0.2.0'; import {ITransaction,IEvent,IParticipant,IAsset} from './concerto@1.0.0'; @@ -24,9 +29,11 @@ export interface IObligation extends IEvent { contract: IContract; promisor?: IParticipant; promisee?: IParticipant; - deadline?: Date; + deadline?: string; } +export type ObligationUnion = IIncorporationEvent; + export interface IState extends IAsset { } diff --git a/src/company-information/logic/generated/concerto@1.0.0.ts b/src/company-information/logic/generated/concerto@1.0.0.ts index 9794398b6..8fe14478a 100644 --- a/src/company-information/logic/generated/concerto@1.0.0.ts +++ b/src/company-information/logic/generated/concerto@1.0.0.ts @@ -33,10 +33,10 @@ export interface IParticipant extends IConcept { } export interface ITransaction extends IConcept { - $timestamp: Date; + $timestamp: string; } export interface IEvent extends IConcept { - $timestamp: Date; + $timestamp: string; } diff --git a/src/contact-information/logic/generated/concerto@1.0.0.ts b/src/contact-information/logic/generated/concerto@1.0.0.ts index 2fee5e946..6c6099424 100644 --- a/src/contact-information/logic/generated/concerto@1.0.0.ts +++ b/src/contact-information/logic/generated/concerto@1.0.0.ts @@ -34,10 +34,10 @@ export interface IParticipant extends IConcept { } export interface ITransaction extends IConcept { - $timestamp: Date; + $timestamp: string; } export interface IEvent extends IConcept { - $timestamp: Date; + $timestamp: string; } diff --git a/src/copyright-license-agreement-poc/README.md b/src/copyright-license-agreement-poc/README.md new file mode 100644 index 000000000..a4be1b6b2 --- /dev/null +++ b/src/copyright-license-agreement-poc/README.md @@ -0,0 +1,254 @@ +# Copyright License (agreement@1.0.0 migration prototype) + +A prototype of [`copyright-license`](../copyright-license) migrated onto the +org.accordproject 1.0.0 namespaces: +[accordproject/models#200](https://github.com/accordproject/models/pull/200) +("Agreement 1.0 Model Redesign"), extended for composed, executable clauses +by [accordproject/models#205](https://github.com/accordproject/models/pull/205). +It shows what migrating a template with a nested payment clause looks like +at the model, sample-data and logic level, and it loads, drafts, initialises +and triggers end to end through cicero-core and template-engine. + +It is one of three templates that make up its example agreement: + +- **`copyright-license-agreement-poc`** (this template): the licence, a + stateful document with an inline payment clause; +- **[`late-payment-poc`](../late-payment-poc)**: a stateful clause template, + composed into the licence; +- **[`licensed-work-schedule-poc`](../licensed-work-schedule-poc)**: a + stateless document, Schedule 1 to the licence. + +## Models + +`model/` holds the 1.0.0 namespaces (`templatedata`, `party`, `template`, +`crypto`, `agreement`, `obligation`, `runtime` and `money`) as of models#205. +They are not yet published at models.accordproject.org, so each is saved +under the file name Concerto gives a downloaded external model, and +`npm run compile` runs offline. + +The licence's logic uses the late payment clause's request types and reads +the schedule's data, so its models also hold copies of theirs +(`late-payment-poc.cto` and `licensed-work-schedule-poc.cto`, identical to +those templates' `model.cto`; an agreement's templates must define a shared +namespace identically). With three `TemplateData` subtypes in its models, +the licence names its template model in package.json +(`accordproject.templateModel`). + +## The current design + +Per models#200: + +- **No `@template` decorator.** A template's model declares exactly one + *concrete* subtype of `templatedata@1.0.0.TemplateData`, and that subtype + IS the template model — the renderable root is found by its parent type, + not a decorator. `model/model.cto`'s `CopyrightLicenseData` is that root; + it carries the template's variables directly, so the grammar + (`text/grammar.tem.md`) roots at the data itself: `{{effectiveDate}}` + resolves directly, with no `{{#with data}}` wrapper. +- **The root is the data, never an envelope.** There is no + `TemplateModel extends AgreementDocument {}` wrapper class — that's the + anti-pattern the design forbids. Types the data is composed of (like + `PaymentTerms`) are ordinary concepts and must NOT extend `TemplateData`; + only the root does. +- **Inline clauses are data.** `copyright-license`'s `{{#clause + paymentTerms}}` block is an inline grammar block written directly in + this template's own grammar, not a composed sub-template. So + `PaymentTerms` is simply a nested ordinary concept, addressed as a + subtree of the data at `"paymentTerms"`. +- **`PartyRef`, not a relationship.** `licensee`/`licensor` are + party@1.0.0 `PartyRef` values — portable embedded references — not + `--> Party` relationships. A relationship reaches logic as an + unresolvable `"resource:...#me"` string; `PartyRef` needs no resolution + step. `--> Party` relationships remain the right tool on the agreement's + `AgreementParty`, where a registry actually exists. +- **State has the same shape as data.** The original `copyright-license` + has no state; it is added here to show how clause-scoped state works. + `CopyrightLicenseState` is the template's one concrete + `templatedata@1.0.0.StateData` subtype, found by its parent type like + `CopyrightLicenseData`. The inline payment clause's state is + `paymentTerms: PaymentTermsState`, an ordinary nested concept at the same + path as its data. Composed clauses work differently; see below. +- **The obligation, not template state, owns the payment lifecycle.** The + fee is an obligation@1.0.0 `PaymentObligation` moving `PENDING` → `DUE` + → `FULFILLED`. Logic can't read the obligation registry, so clause state + records only *facts* — `amountPaid`, and `dueAt` once payment is + requested — and logic derives the obligation's status and revision from + them. Whether the licence is in force is also derived: it is exactly + when the obligation is `FULFILLED`. + + `init` seeds the state and issues the obligation with an + obligation@1.0.0 `ObligationIssued` event (models#205). + `PaymentRequest` returns the outstanding balance and, the first time, + makes the obligation `DUE`. `PaymentReceived` records a payment, + rejecting the wrong currency or scale, non-positive amounts and + overpayment, and fulfils the obligation once the fee is paid. Status + changes are `ObligationTransition` events carrying an accurate + `fromStatus` and `revision`. Timestamps come from the data or the + request, never the clock, so replaying the same inputs reproduces the + same state and events. + + Logic can see the agreement it is in, so it gives the obligation an id + unique across agreements and a full `AgreementReference`: agreement, + document (added by models#205, since a clause path is only unique within + one document) and clause path. +- **Amounts are exact.** Amounts are money@1.0.0 `PreciseAmount`s: an + integer `unscaledValue` plus a `unit` with a `scale`, so $100.00 is + `"10000"` at scale 2. Logic does the arithmetic with `BigInt`. + +## Composed clauses: an agreement as one tree of template instances + +models#205 lets a clause be a template instance of its own, while keeping a +single structure for the template hierarchy. + +**One tree.** An `AgreementDocument` is the root template instance (its +`template` and `data`). Each entry in its `clauses` map is an +agreement@1.0.0 `Clause`: a template, a `clauseId`, the clause's own `data` +and its own composed `clauses`. + +- An **inline** clause is a subtree of its template's `data`. +- A **composed** clause has its own template and its own data, so a + parent's model declares nothing about the clauses composed into it. + +**One state index.** runtime@1.0.0 `AgreementState.states` maps each +stateful instance's id (a document's `documentId`, a clause's `clauseId`) +to its own `StateData` subtype. Keys are stable ids, so the index never +mirrors the tree's shape, and a stateless instance has no entry. + +**The example** (`test/agreement.test.ts`) is one agreement of two +documents, run by template-engine's `AgreementProcessor` over the three +templates: + +- **The licence** (this template). Its payment terms are inline. A late + payment clause (an instance of `late-payment-poc`) is composed at + `"latePayment"`. Chasing an overdue payment delegates to the clause. + Paying in full fulfils the obligation and discharges the clause, + committed in one revision. Issuing the obligation reads the title of the + licensed work from the schedule, a cousin document. +- **Schedule 1** (an instance of `licensed-work-schedule-poc`), a stateless + document. It gets no state entry and has nothing to trigger. + +Every document, state and event validates against the models. + +## The logic API + +The logic is written with template-engine's logic API +(`@accordproject/template-engine/logic`, accordproject/template-engine#187): +`defineLogic`, one handler per request type it handles, and an optional +`init`: + +```ts +export type Licence = Self; +}>; + +export default defineLogic() + .init(licence => { + licence.setState(CopyrightLicenseState.create({ paymentTerms: PaymentTermsState.create({ ... }) })); + licence.emit(ObligationIssued.create({ $timestamp: data.effectiveDate, obligation })); + }) + .on(PaymentRequest, async (request, licence): Promise => { + ... + await licence.clauses.latePayment?.trigger(PaymentOverdue.create({ $timestamp: request.$timestamp })); + return PayOut.create({ $timestamp: request.$timestamp, amount: outstanding(data, terms) }); + }) + .on(PaymentReceived, async (request, licence): Promise => { ... }); +``` + +- **A factory for every type.** Every value is made with its type's + factory (`PayOut.create({...})`), which fills in `$class`, and + `$identifier` for an identified type, so logic never writes either by + hand. Factories also check a value's type (`LicensedWorkSchedule.is(data)`) + and make relationships (`PaymentObligation.ref(id)`). + `npm run compile` (`template-engine-codegen --offline`) generates them + from the models into `logic/generated/types.ts`, alongside Concerto's + interfaces; when logic runs, the engine supplies the same factories. +- **No dispatch switch.** A request type's factory is also the key its + handler is registered under. The engine dispatches on the request's + `$class` to the handler registered for it, or for its nearest + supertype, and rejects a request nothing handles before any logic runs. +- **The signatures are the declaration.** Each handler's `request` is + typed by the request type it is registered for, and its response type + is whatever it declares. `ApiOf` collects them into the + API a composing template triggers it with (`LatePayment`). The licence imports that as a + type only, so it depends on the clause's requests and responses, never + its state or code. +- **`self` is this instance's node in the agreement tree.** It reads its + own `data` and `state`, and reaches everything else by walking: + `self.parent`, `self.clauses`, `self.document.agreement.documents`, or + `agreement.resolve(reference)`. Everything but its own writes is a frozen, + read-only view, and reading another template's data at its own type + means knowing that type statically. +- **Deterministic and transactional, not pure.** A handler writes only + through `self`: `setState`, `emit`, and triggering its own composed + clauses. The engine buffers the writes, and the handler sees them + straight away. Each clause runs in a nested transaction, merged into its + parent's when it returns, and discarded if it throws, so a parent that + catches a clause's error loses only that clause's writes. The whole + request commits as one revision, or not at all. + +`test/types.check.ts` holds compile-time checks of all of this (e.g. +triggering the clause with `PaymentOverdue` returns `IReminderSent`, +writing to another document doesn't compile, and a factory won't take a +hand-written `$class`). `test/types.test.ts` runs them with `tsc`, along +with strict type-checking of both logic files. + +### Testing + +`@accordproject/template-engine/testing` gives unit tests a `self` +(`testInstance`) running on the engine's own transaction code, recording +what the engine would commit, and typed stand-ins for composed clauses +(`stubClause`), which record the requests they get. `logic/logic.test.ts` +and `../late-payment-poc/logic/logic.test.ts` test each template alone that +way; template-engine's own tests cover the transaction semantics. + +### Running it as a stateless function + +`AgreementProcessor`'s entry points are functions from JSON to JSON: + +``` +initialise(agreement, documents, effectiveAt) -> { state@0, events } +execute({ agreement, documents, state@N }, documentId, request) + -> { result, events, state@N+1 } +``` + +So one invocation (e.g. a serverless function) can load the state, +execute, and commit with a conditional write on the revision, writing the +events to an outbox in the same write. A lost race is retried from the +winning state, and a redelivered request returns its stored result. +`test/agreement.test.ts` shows both against an in-memory store. Composed +clauses run in the same invocation and transaction as their parent, so +the unit of deployment is the agreement, not the clause. + +On its own, through `TemplateArchiveProcessor`, each template runs as the +one document of an agreement: `init(data)` returns its state and events, +and `trigger(data, request, state)` its response, next state and events. +That is how `test/render.test.mjs` drafts, initialises and triggers it. + +### Not yet possible + +- Placing the composed clause in the licence's text: TemplateMark's + `ClauseDefinition` has no way to name a composed template. Each template + drafts on its own. +- Resolving a `TemplateReference` to an archive. The tests name templates by + `templateId` (their package names), and hash each template's files as a + stand-in for its `archiveHash`. + +## Toolchain + +This runs on unreleased branches, installed from git by the repository's +root package.json: + +- **cicero-core** finds the template model by its `TemplateData` parent + type, or by `accordproject.templateModel`, and state by `StateData`, + alongside runtime@0.2.0 templates + ([template-archive#946](https://github.com/accordproject/template-archive/pull/946), + [#950](https://github.com/accordproject/template-archive/pull/950)). +- **template-engine** adds the logic API, the agreement runtime, codegen + and the testing helpers, and drafts by the named template model + ([template-engine#187](https://github.com/accordproject/template-engine/pull/187)). +- **Concerto**: concerto-core 5.0.0's ESM build reports its own version as + `5.0.0-beta.2`, which rejects the `concerto version "^5.0.0"` the 1.0.0 + namespaces declare + ([concerto#1462](https://github.com/accordproject/concerto/issues/1462)). + These tests load concerto-core only through cicero-core and + template-engine, whose CommonJS builds report 5.0.0. diff --git a/src/copyright-license-agreement-poc/logic/generated/concerto.decorator@1.0.0.ts b/src/copyright-license-agreement-poc/logic/generated/concerto.decorator@1.0.0.ts new file mode 100644 index 000000000..28a1c9caa --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/concerto.decorator@1.0.0.ts @@ -0,0 +1,14 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: concerto.decorator@1.0.0 + +// imports +import {IConcept} from './concerto@1.0.0'; + +// interfaces +export interface IDecorator extends IConcept { +} + +export interface IDotNetNamespace extends IDecorator { + namespace: string; +} + diff --git a/src/copyright-license-agreement-poc/logic/generated/concerto@1.0.0.ts b/src/copyright-license-agreement-poc/logic/generated/concerto@1.0.0.ts new file mode 100644 index 000000000..813681c61 --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/concerto@1.0.0.ts @@ -0,0 +1,133 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: concerto@1.0.0 + +// imports + +// Warning: Beware of circular dependencies when modifying these imports +import type { + IClause, + IAgreementParty, + IAgreementReference +} from './org.accordproject.agreement@1.0.0'; +import type { + ObligationStatus, + FulfilmentAttemptStatus +} from './org.accordproject.obligation@1.0.0'; +import type { + IPartyRef +} from './org.accordproject.party@1.0.0'; +import type { + TemplateArtifactRole, + ITemplateArtifact, + ITemplateReference +} from './org.accordproject.template@1.0.0'; +import type { + ITemplateData, + IStateData +} from './org.accordproject.templatedata@1.0.0'; +import type { + HashAlgorithmType, + IHashAlgorithm, + HashEncoding, + IHash, + CanonicalizationType, + ICanonicalization, + IHashedResource +} from './org.accordproject.crypto@1.0.0'; +import type { + IApproximateAmount, + IUnit, + IPreciseAmount +} from './org.accordproject.money@1.0.0'; +import type { + IPaymentTerms, + IPaymentTermsState +} from './poc.accordproject.copyrightlicense@0.1.0'; + +// Warning: Beware of circular dependencies when modifying these imports +import type { + IAgreementDocument, + IAgreement +} from './org.accordproject.agreement@1.0.0'; +import type { + IObligation, + IFulfilmentAttempt +} from './org.accordproject.obligation@1.0.0'; +import type { + IAgreementState +} from './org.accordproject.runtime@1.0.0'; + +// Warning: Beware of circular dependencies when modifying these imports +import type { + IParty +} from './org.accordproject.party@1.0.0'; + +// Warning: Beware of circular dependencies when modifying these imports +import type { + IRequest, + IResponse +} from './org.accordproject.runtime@1.0.0'; + +// Warning: Beware of circular dependencies when modifying these imports +import type { + IObligationTransition, + IObligationIssued +} from './org.accordproject.obligation@1.0.0'; +import type { + IPaymentReminder +} from './poc.accordproject.latepayment@0.1.0'; + +// interfaces +export interface IConcept { + $class: string; +} + +export type ConceptUnion = IClause | +IAgreementParty | +IAgreementReference | +IPartyRef | +ITemplateArtifact | +ITemplateReference | +ITemplateData | +IStateData | +IHashAlgorithm | +IHash | +ICanonicalization | +IHashedResource | +IApproximateAmount | +IUnit | +IPreciseAmount | +IPaymentTerms | +IPaymentTermsState; + +export interface IAsset extends IConcept { + $identifier: string; +} + +export type AssetUnion = IAgreementDocument | +IAgreement | +IObligation | +IFulfilmentAttempt | +IAgreementState; + +export interface IParticipant extends IConcept { + $identifier: string; +} + +export type ParticipantUnion = IParty; + +export interface ITransaction extends IConcept { + $timestamp: string; +} + +export type TransactionUnion = IRequest | +IResponse; + +export interface IEvent extends IConcept { + $timestamp: string; +} + +export type EventUnion = IObligationTransition | +IObligationIssued | +IPaymentReminder; + diff --git a/src/copyright-license-agreement-poc/logic/generated/org.accordproject.agreement@1.0.0.ts b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.agreement@1.0.0.ts new file mode 100644 index 000000000..e4027c2e4 --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.agreement@1.0.0.ts @@ -0,0 +1,51 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: org.accordproject.agreement@1.0.0 + +// imports +import {IContentHash} from './org.accordproject.crypto@1.0.0'; +import {ITemplateData} from './org.accordproject.templatedata@1.0.0'; +import {IParty} from './org.accordproject.party@1.0.0'; +import {ITemplateReference} from './org.accordproject.template@1.0.0'; +import {IConcept,IAsset} from './concerto@1.0.0'; + +// interfaces +export interface IClause extends IConcept { + template: ITemplateReference; + clauseId: string; + data: ITemplateData; + clauses?: Clauses; + clauseHash?: IContentHash; +} + +export type Clauses = Map; + +export interface IAgreementParty extends IConcept { + party: IParty; + role: string; +} + +export interface IAgreementDocument extends IAsset { + documentId: string; + documentHash?: IContentHash; + template?: ITemplateReference; + data?: ITemplateData; + clauses?: Clauses; + parties?: IAgreementParty[]; +} + +export interface IAgreement extends IAsset { + agreementId: string; + agreementHash?: IContentHash; + documents: IAgreementDocument[]; + parties: IAgreementParty[]; +} + +export interface IAgreementReference extends IConcept { + agreementId: string; + agreementHash?: IContentHash; + documentId?: string; + template?: ITemplateReference; + clausePath?: string; + clauseHash?: IContentHash; +} + diff --git a/src/copyright-license-agreement-poc/logic/generated/org.accordproject.crypto@1.0.0.ts b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.crypto@1.0.0.ts new file mode 100644 index 000000000..0dfaa03a3 --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.crypto@1.0.0.ts @@ -0,0 +1,68 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: org.accordproject.crypto@1.0.0 + +// imports + +// Warning: Beware of circular dependencies when modifying these imports +import {IConcept} from './concerto@1.0.0'; + +// interfaces +export enum HashAlgorithmType { + SHA_256 = 'SHA_256', + SHA_384 = 'SHA_384', + SHA_512 = 'SHA_512', + SHA3_256 = 'SHA3_256', + SHA3_512 = 'SHA3_512', + KECCAK_256 = 'KECCAK_256', + BLAKE2B_256 = 'BLAKE2B_256', + BLAKE3 = 'BLAKE3', + CUSTOM = 'CUSTOM', +} + +export interface IHashAlgorithm extends IConcept { + type: HashAlgorithmType; + customName?: string; + uri?: string; +} + +export enum HashEncoding { + HEX = 'HEX', + HEX_0X = 'HEX_0X', + BASE64 = 'BASE64', + BASE64URL = 'BASE64URL', + MULTIBASE = 'MULTIBASE', +} + +export interface IHash extends IConcept { + algorithm: IHashAlgorithm; + value: string; + encoding: HashEncoding; +} + +export type HashUnion = IContentHash; + +export enum CanonicalizationType { + RAW_BYTES = 'RAW_BYTES', + RFC8785_JCS = 'RFC8785_JCS', + DAG_CBOR = 'DAG_CBOR', + ZIP_NORMALIZED = 'ZIP_NORMALIZED', + CUSTOM = 'CUSTOM', +} + +export interface ICanonicalization extends IConcept { + type: CanonicalizationType; + customName?: string; + uri?: string; +} + +export interface IContentHash extends IHash { + canonicalization?: ICanonicalization; + mediaType?: string; + byteLength?: number; +} + +export interface IHashedResource extends IConcept { + uri?: string; + hash: IContentHash; +} + diff --git a/src/copyright-license-agreement-poc/logic/generated/org.accordproject.money@1.0.0.ts b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.money@1.0.0.ts new file mode 100644 index 000000000..bcbb2dcce --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.money@1.0.0.ts @@ -0,0 +1,28 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: org.accordproject.money@1.0.0 + +// imports +import {IConcept} from './concerto@1.0.0'; + +// interfaces +export type CurrencyCode = string; + +export interface IApproximateAmount extends IConcept { + doubleValue: number; + currencyCode: CurrencyCode; +} + +export interface IUnit extends IConcept { + code: string; + scheme: string; + identifier?: string; + scale: number; +} + +export type BigInteger = string; + +export interface IPreciseAmount extends IConcept { + unscaledValue: BigInteger; + unit: IUnit; +} + diff --git a/src/copyright-license-agreement-poc/logic/generated/org.accordproject.obligation@1.0.0.ts b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.obligation@1.0.0.ts new file mode 100644 index 000000000..f9ead00fa --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.obligation@1.0.0.ts @@ -0,0 +1,106 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: org.accordproject.obligation@1.0.0 + +// imports + +// Warning: Beware of circular dependencies when modifying these imports +import {IContentHash} from './org.accordproject.crypto@1.0.0'; +import {IPreciseAmount} from './org.accordproject.money@1.0.0'; +import {IPartyRef} from './org.accordproject.party@1.0.0'; +import {IAgreementReference} from './org.accordproject.agreement@1.0.0'; +import {IAsset,IEvent} from './concerto@1.0.0'; + +// interfaces +export enum ObligationStatus { + PENDING = 'PENDING', + DUE = 'DUE', + FULFILLED = 'FULFILLED', + BREACHED = 'BREACHED', + WAIVED = 'WAIVED', + SUPERSEDED = 'SUPERSEDED', + DISPUTED = 'DISPUTED', +} + +export enum FulfilmentAttemptStatus { + INITIATED = 'INITIATED', + SUCCEEDED = 'SUCCEEDED', + FAILED = 'FAILED', + REVERSED = 'REVERSED', +} + +export interface IObligation extends IAsset { + obligationId: string; + status: ObligationStatus; + createdAt: string; + dueAt?: string; + bearers: IPartyRef[]; + beneficiaries?: IPartyRef[]; + agreement: IAgreementReference; + description?: string; + authorityRef?: string; + basisHash?: IContentHash; + evidenceHash?: IContentHash; + parentObligationId?: string; + supersedesObligationId?: string; + revision: number; +} + +export type ObligationUnion = IPaymentObligation | +IPerformanceObligation | +INotificationObligation | +IRemediationObligation | +IEvidenceObligation | +IMitigationObligation; + +export interface IPaymentObligation extends IObligation { + amount: IPreciseAmount; +} + +export interface IPerformanceObligation extends IObligation { + performance: string; +} + +export interface INotificationObligation extends IObligation { + title: string; + message: string; +} + +export interface IRemediationObligation extends IObligation { + remedy: string; +} + +export interface IEvidenceObligation extends IObligation { + evidenceRequirement: string; +} + +export interface IMitigationObligation extends IObligation { + mitigationMeasure: string; +} + +export interface IObligationTransition extends IEvent { + obligation: IObligation; + fromStatus?: ObligationStatus; + toStatus: ObligationStatus; + effectiveAt: string; + actor?: IPartyRef; + reason?: string; + evidenceHash?: IContentHash; + correlationId?: string; + revision: number; +} + +export interface IObligationIssued extends IEvent { + obligation: IObligation; +} + +export interface IFulfilmentAttempt extends IAsset { + attemptId: string; + obligation: IObligation; + status: FulfilmentAttemptStatus; + initiatedAt: string; + completedAt?: string; + actor?: IPartyRef; + evidenceHash?: IContentHash; + correlationId?: string; +} + diff --git a/src/copyright-license-agreement-poc/logic/generated/org.accordproject.party@1.0.0.ts b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.party@1.0.0.ts new file mode 100644 index 000000000..4794bc2ae --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.party@1.0.0.ts @@ -0,0 +1,18 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: org.accordproject.party@1.0.0 + +// imports +import {IParticipant,IConcept} from './concerto@1.0.0'; + +// interfaces +export interface IParty extends IParticipant { + partyId: string; + name?: string; +} + +export interface IPartyRef extends IConcept { + id: string; + scheme: string; + label?: string; +} + diff --git a/src/copyright-license-agreement-poc/logic/generated/org.accordproject.runtime@1.0.0.ts b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.runtime@1.0.0.ts new file mode 100644 index 000000000..5a74651b5 --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.runtime@1.0.0.ts @@ -0,0 +1,58 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: org.accordproject.runtime@1.0.0 + +// imports + +// Warning: Beware of circular dependencies when modifying these imports +import type { + IPaymentOverdue, + IPaymentSettled +} from './poc.accordproject.latepayment@0.1.0'; +import type { + IPaymentRequest, + IPaymentReceived +} from './poc.accordproject.copyrightlicense@0.1.0'; + +// Warning: Beware of circular dependencies when modifying these imports +import type { + IReminderSent, + ILatePaymentDischarged +} from './poc.accordproject.latepayment@0.1.0'; +import type { + IPayOut, + IPaymentReceipt +} from './poc.accordproject.copyrightlicense@0.1.0'; +import {IAgreement} from './org.accordproject.agreement@1.0.0'; +import {IContentHash} from './org.accordproject.crypto@1.0.0'; +import {IStateData} from './org.accordproject.templatedata@1.0.0'; +import {ITransaction,IAsset} from './concerto@1.0.0'; + +// interfaces +export interface IRequest extends ITransaction { +} + +export type RequestUnion = IPaymentOverdue | +IPaymentSettled | +IPaymentRequest | +IPaymentReceived; + +export interface IResponse extends ITransaction { +} + +export type ResponseUnion = IReminderSent | +ILatePaymentDischarged | +IPayOut | +IPaymentReceipt; + +export type InstanceStates = Map; + +export interface IAgreementState extends IAsset { + stateId: string; + agreement: IAgreement; + revision: number; + effectiveAt: string; + states?: InstanceStates; + stateHash?: IContentHash; + previousStateHash?: IContentHash; +} + diff --git a/src/copyright-license-agreement-poc/logic/generated/org.accordproject.template@1.0.0.ts b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.template@1.0.0.ts new file mode 100644 index 000000000..7a252f379 --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.template@1.0.0.ts @@ -0,0 +1,38 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: org.accordproject.template@1.0.0 + +// imports +import {IContentHash} from './org.accordproject.crypto@1.0.0'; +import {IConcept} from './concerto@1.0.0'; + +// interfaces +export enum TemplateArtifactRole { + LOGIC = 'LOGIC', + MODEL = 'MODEL', + GRAMMAR = 'GRAMMAR', + PROSE = 'PROSE', + DOCUMENTATION = 'DOCUMENTATION', + TEST = 'TEST', + RESOURCE = 'RESOURCE', + CUSTOM = 'CUSTOM', +} + +export interface ITemplateArtifact extends IConcept { + name: string; + role: TemplateArtifactRole; + customRole?: string; + path: string; + language?: string; + runtime?: string; + entryPoint: boolean; + contentHash: IContentHash; +} + +export interface ITemplateReference extends IConcept { + templateId: string; + version: string; + archiveHash: IContentHash; + artifactManifestHash?: IContentHash; + artifacts?: ITemplateArtifact[]; +} + diff --git a/src/copyright-license-agreement-poc/logic/generated/org.accordproject.templatedata@1.0.0.ts b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.templatedata@1.0.0.ts new file mode 100644 index 000000000..042c9a2c3 --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/org.accordproject.templatedata@1.0.0.ts @@ -0,0 +1,39 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: org.accordproject.templatedata@1.0.0 + +// imports + +// Warning: Beware of circular dependencies when modifying these imports +import type { + ILatePaymentData +} from './poc.accordproject.latepayment@0.1.0'; +import type { + ILicensedWorkSchedule +} from './poc.accordproject.licensedwork@0.1.0'; +import type { + ICopyrightLicenseData +} from './poc.accordproject.copyrightlicense@0.1.0'; + +// Warning: Beware of circular dependencies when modifying these imports +import type { + ILatePaymentState +} from './poc.accordproject.latepayment@0.1.0'; +import type { + ICopyrightLicenseState +} from './poc.accordproject.copyrightlicense@0.1.0'; +import {IConcept} from './concerto@1.0.0'; + +// interfaces +export interface ITemplateData extends IConcept { +} + +export type TemplateDataUnion = ILatePaymentData | +ILicensedWorkSchedule | +ICopyrightLicenseData; + +export interface IStateData extends IConcept { +} + +export type StateDataUnion = ILatePaymentState | +ICopyrightLicenseState; + diff --git a/src/copyright-license-agreement-poc/logic/generated/poc.accordproject.copyrightlicense@0.1.0.ts b/src/copyright-license-agreement-poc/logic/generated/poc.accordproject.copyrightlicense@0.1.0.ts new file mode 100644 index 000000000..dc107cf77 --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/poc.accordproject.copyrightlicense@0.1.0.ts @@ -0,0 +1,52 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: poc.accordproject.copyrightlicense@0.1.0 + +// imports +import {ITemplateData,IStateData} from './org.accordproject.templatedata@1.0.0'; +import {IPartyRef} from './org.accordproject.party@1.0.0'; +import {IPreciseAmount} from './org.accordproject.money@1.0.0'; +import {IRequest,IResponse} from './org.accordproject.runtime@1.0.0'; +import {IConcept} from './concerto@1.0.0'; + +// interfaces +export interface IPaymentRequest extends IRequest { +} + +export interface IPayOut extends IResponse { + amount: IPreciseAmount; +} + +export interface IPaymentReceived extends IRequest { + amount: IPreciseAmount; +} + +export interface IPaymentReceipt extends IResponse { + outstanding: IPreciseAmount; +} + +export interface IPaymentTerms extends IConcept { + amountText: string; + amount: IPreciseAmount; + paymentProcedure: string; +} + +export interface ICopyrightLicenseData extends ITemplateData { + effectiveDate: string; + licensee: IPartyRef; + licensor: IPartyRef; + territory: string; + purposeDescription: string; + workDescription: string; + paymentTerms: IPaymentTerms; +} + +export interface IPaymentTermsState extends IConcept { + obligationId: string; + amountPaid: IPreciseAmount; + dueAt?: string; +} + +export interface ICopyrightLicenseState extends IStateData { + paymentTerms: IPaymentTermsState; +} + diff --git a/src/copyright-license-agreement-poc/logic/generated/poc.accordproject.latepayment@0.1.0.ts b/src/copyright-license-agreement-poc/logic/generated/poc.accordproject.latepayment@0.1.0.ts new file mode 100644 index 000000000..191428297 --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/poc.accordproject.latepayment@0.1.0.ts @@ -0,0 +1,36 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: poc.accordproject.latepayment@0.1.0 + +// imports +import {ITemplateData,IStateData} from './org.accordproject.templatedata@1.0.0'; +import {IRequest,IResponse} from './org.accordproject.runtime@1.0.0'; +import {IEvent} from './concerto@1.0.0'; + +// interfaces +export interface IPaymentOverdue extends IRequest { +} + +export interface IReminderSent extends IResponse { + remindersSent: number; +} + +export interface IPaymentSettled extends IRequest { +} + +export interface ILatePaymentDischarged extends IResponse { +} + +export interface IPaymentReminder extends IEvent { + reminderNumber: number; + gracePeriodDays: number; +} + +export interface ILatePaymentData extends ITemplateData { + gracePeriodDays: number; +} + +export interface ILatePaymentState extends IStateData { + remindersSent: number; + discharged: boolean; +} + diff --git a/src/copyright-license-agreement-poc/logic/generated/poc.accordproject.licensedwork@0.1.0.ts b/src/copyright-license-agreement-poc/logic/generated/poc.accordproject.licensedwork@0.1.0.ts new file mode 100644 index 000000000..5376b9c4f --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/poc.accordproject.licensedwork@0.1.0.ts @@ -0,0 +1,13 @@ +/* eslint-disable @typescript-eslint/no-empty-interface */ +// Generated code for namespace: poc.accordproject.licensedwork@0.1.0 + +// imports +import {ITemplateData} from './org.accordproject.templatedata@1.0.0'; + +// interfaces +export interface ILicensedWorkSchedule extends ITemplateData { + title: string; + format: string; + description: string; +} + diff --git a/src/copyright-license-agreement-poc/logic/generated/types.ts b/src/copyright-license-agreement-poc/logic/generated/types.ts new file mode 100644 index 000000000..62abe042d --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/generated/types.ts @@ -0,0 +1,59 @@ +// Generated by template-engine from the models: one factory per concrete type, +// so logic never writes a $class by hand. Do not edit. +import { conceptType, identifiedType } from '@accordproject/template-engine/logic'; +import type { IAgreement, IAgreementDocument, IAgreementParty, IAgreementReference, IClause } from './org.accordproject.agreement@1.0.0'; +import type { ICanonicalization, IContentHash, IHash, IHashAlgorithm, IHashedResource } from './org.accordproject.crypto@1.0.0'; +import type { IApproximateAmount, IPreciseAmount, IUnit } from './org.accordproject.money@1.0.0'; +import type { IEvidenceObligation, IFulfilmentAttempt, IMitigationObligation, INotificationObligation, IObligationIssued, IObligationTransition, IPaymentObligation, IPerformanceObligation, IRemediationObligation } from './org.accordproject.obligation@1.0.0'; +import type { IParty, IPartyRef } from './org.accordproject.party@1.0.0'; +import type { IAgreementState, IRequest, IResponse } from './org.accordproject.runtime@1.0.0'; +import type { ITemplateArtifact, ITemplateReference } from './org.accordproject.template@1.0.0'; +import type { ICopyrightLicenseData, ICopyrightLicenseState, IPaymentReceipt, IPaymentReceived, IPaymentRequest, IPaymentTerms, IPaymentTermsState, IPayOut } from './poc.accordproject.copyrightlicense@0.1.0'; +import type { ILatePaymentData, ILatePaymentDischarged, ILatePaymentState, IPaymentOverdue, IPaymentReminder, IPaymentSettled, IReminderSent } from './poc.accordproject.latepayment@0.1.0'; +import type { ILicensedWorkSchedule } from './poc.accordproject.licensedwork@0.1.0'; + +export const Agreement = identifiedType()('org.accordproject.agreement@1.0.0.Agreement', 'agreementId'); +export const AgreementDocument = identifiedType()('org.accordproject.agreement@1.0.0.AgreementDocument', 'documentId'); +export const AgreementParty = conceptType()('org.accordproject.agreement@1.0.0.AgreementParty'); +export const AgreementReference = conceptType()('org.accordproject.agreement@1.0.0.AgreementReference'); +export const Clause = conceptType()('org.accordproject.agreement@1.0.0.Clause'); +export const Canonicalization = conceptType()('org.accordproject.crypto@1.0.0.Canonicalization'); +export const ContentHash = conceptType()('org.accordproject.crypto@1.0.0.ContentHash'); +export const Hash = conceptType()('org.accordproject.crypto@1.0.0.Hash'); +export const HashAlgorithm = conceptType()('org.accordproject.crypto@1.0.0.HashAlgorithm'); +export const HashedResource = conceptType()('org.accordproject.crypto@1.0.0.HashedResource'); +export const ApproximateAmount = conceptType()('org.accordproject.money@1.0.0.ApproximateAmount'); +export const PreciseAmount = conceptType()('org.accordproject.money@1.0.0.PreciseAmount'); +export const Unit = conceptType()('org.accordproject.money@1.0.0.Unit'); +export const EvidenceObligation = identifiedType()('org.accordproject.obligation@1.0.0.EvidenceObligation', 'obligationId'); +export const FulfilmentAttempt = identifiedType()('org.accordproject.obligation@1.0.0.FulfilmentAttempt', 'attemptId'); +export const MitigationObligation = identifiedType()('org.accordproject.obligation@1.0.0.MitigationObligation', 'obligationId'); +export const NotificationObligation = identifiedType()('org.accordproject.obligation@1.0.0.NotificationObligation', 'obligationId'); +export const ObligationIssued = conceptType()('org.accordproject.obligation@1.0.0.ObligationIssued'); +export const ObligationTransition = conceptType()('org.accordproject.obligation@1.0.0.ObligationTransition'); +export const PaymentObligation = identifiedType()('org.accordproject.obligation@1.0.0.PaymentObligation', 'obligationId'); +export const PerformanceObligation = identifiedType()('org.accordproject.obligation@1.0.0.PerformanceObligation', 'obligationId'); +export const RemediationObligation = identifiedType()('org.accordproject.obligation@1.0.0.RemediationObligation', 'obligationId'); +export const Party = identifiedType()('org.accordproject.party@1.0.0.Party', 'partyId'); +export const PartyRef = conceptType()('org.accordproject.party@1.0.0.PartyRef'); +export const AgreementState = identifiedType()('org.accordproject.runtime@1.0.0.AgreementState', 'stateId'); +export const Request = conceptType()('org.accordproject.runtime@1.0.0.Request'); +export const Response = conceptType()('org.accordproject.runtime@1.0.0.Response'); +export const TemplateArtifact = conceptType()('org.accordproject.template@1.0.0.TemplateArtifact'); +export const TemplateReference = conceptType()('org.accordproject.template@1.0.0.TemplateReference'); +export const CopyrightLicenseData = conceptType()('poc.accordproject.copyrightlicense@0.1.0.CopyrightLicenseData'); +export const CopyrightLicenseState = conceptType()('poc.accordproject.copyrightlicense@0.1.0.CopyrightLicenseState'); +export const PaymentReceipt = conceptType()('poc.accordproject.copyrightlicense@0.1.0.PaymentReceipt'); +export const PaymentReceived = conceptType()('poc.accordproject.copyrightlicense@0.1.0.PaymentReceived'); +export const PaymentRequest = conceptType()('poc.accordproject.copyrightlicense@0.1.0.PaymentRequest'); +export const PaymentTerms = conceptType()('poc.accordproject.copyrightlicense@0.1.0.PaymentTerms'); +export const PaymentTermsState = conceptType()('poc.accordproject.copyrightlicense@0.1.0.PaymentTermsState'); +export const PayOut = conceptType()('poc.accordproject.copyrightlicense@0.1.0.PayOut'); +export const LatePaymentData = conceptType()('poc.accordproject.latepayment@0.1.0.LatePaymentData'); +export const LatePaymentDischarged = conceptType()('poc.accordproject.latepayment@0.1.0.LatePaymentDischarged'); +export const LatePaymentState = conceptType()('poc.accordproject.latepayment@0.1.0.LatePaymentState'); +export const PaymentOverdue = conceptType()('poc.accordproject.latepayment@0.1.0.PaymentOverdue'); +export const PaymentReminder = conceptType()('poc.accordproject.latepayment@0.1.0.PaymentReminder'); +export const PaymentSettled = conceptType()('poc.accordproject.latepayment@0.1.0.PaymentSettled'); +export const ReminderSent = conceptType()('poc.accordproject.latepayment@0.1.0.ReminderSent'); +export const LicensedWorkSchedule = conceptType()('poc.accordproject.licensedwork@0.1.0.LicensedWorkSchedule'); diff --git a/src/copyright-license-agreement-poc/logic/logic.test.ts b/src/copyright-license-agreement-poc/logic/logic.test.ts new file mode 100644 index 000000000..0edc5a1f3 --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/logic.test.ts @@ -0,0 +1,330 @@ +// @ts-nocheck - test fixtures are plain JSON +// Unit tests of the licence's logic alone. Each test gets a `self` from +// @accordproject/template-engine/testing, runs on the engine's own transaction code, and +// stands stubs in for any composed clause. Everything written is +// validated against the models. +import copyrightLicense from './logic'; +import { + AgreementDocument, + CopyrightLicenseState, + AgreementReference, + LatePaymentDischarged, + ObligationIssued, + ObligationTransition, + PaymentObligation, + PaymentOverdue, + PaymentReceipt, + PaymentReceived, + PaymentRequest, + PaymentSettled, + PaymentTermsState, + PayOut, + ReminderSent, +} from './generated/types'; +import { stubClause, testInstance, TEST_AGREEMENT, TEST_DOCUMENT } from '@accordproject/template-engine/testing'; +import { amount, at, loadModels, sample, templateReference } from '../test/support'; + +const OBLIGATION_ID = `${TEST_AGREEMENT}/${TEST_DOCUMENT}/paymentTerms`; +const EFFECTIVE_DATE = '2018-01-01T01:00:00.000+01:00'; + +let models; +beforeAll(async () => { + models = await loadModels(); +}); + +let clock = 0; +const paymentRequest = () => PaymentRequest.create({ $timestamp: at(clock++) }); +const paymentReceived = (unscaledValue: string, code = 'USD', scale = 2) => + PaymentReceived.create({ $timestamp: at(clock++), amount: amount(unscaledValue, code, scale) }); + +// The licensed work schedule, as a cousin document in the same agreement. +const schedule = () => AgreementDocument.create({ + documentId: 'schedule-1', + template: templateReference('licensed-work-schedule-poc'), + data: sample('licensed-work-schedule-poc'), +}); + +describe('copyright licence logic', () => { + let data; + + beforeEach(() => { + data = sample('copyright-license-agreement-poc'); + }); + + const licence = (options = {}) => testInstance({ data, models, ...options }); + + // Runs init then each request, committing what each one writes, as the + // engine would. Returns the final state and every event emitted. + const run = async (...requests) => { + let self = licence(); + await copyrightLicense.start(self); + let { state } = self.committed; + const events = [...self.committed.events]; + for (const request of requests) { + self = licence({ state }); + await copyrightLicense.handle(request, self); + ({ state } = self.committed); + events.push(...self.committed.events); + } + return { state, events }; + }; + + const initialState = async () => (await run()).state; + + describe('init', () => { + it('starts the payment clause with nothing paid and no due date', async () => { + expect(await initialState()).toEqual(CopyrightLicenseState.create({ + paymentTerms: PaymentTermsState.create({ obligationId: OBLIGATION_ID, amountPaid: amount('0') }), + })); + }); + + it('issues a PENDING PaymentObligation for the fee at revision 0', async () => { + const { events } = await run(); + + expect(events).toHaveLength(1); + expect(ObligationIssued.is(events[0])).toBe(true); + expect(events[0].$timestamp).toBe(EFFECTIVE_DATE); + expect(events[0].obligation).toMatchObject({ + $class: PaymentObligation.$class, + obligationId: OBLIGATION_ID, + status: 'PENDING', + revision: 0, + createdAt: EFFECTIVE_DATE, + amount: amount('10000'), + bearers: [data.licensee], + beneficiaries: [data.licensor], + description: 'Me should pay the licence fee for other stuff to Myself', + }); + }); + + it('references the payment clause fully, since logic can see the agreement it is in', async () => { + const { events } = await run(); + + expect(events[0].obligation.agreement).toMatchObject({ + $class: AgreementReference.$class, + agreementId: TEST_AGREEMENT, + documentId: TEST_DOCUMENT, + clausePath: 'paymentTerms', + }); + }); + + it('names the licensed work from the agreement\'s schedule, a cousin document', async () => { + const self = licence({ documents: [schedule()] }); + + await copyrightLicense.start(self); + + expect(self.committed.events[0].obligation.description) + .toBe('Me should pay the licence fee for "Other Stuff" to Myself'); + }); + + it('is deterministic, so replaying init reproduces the same state and events', async () => { + expect(await run()).toEqual(await run()); + }); + }); + + describe('PaymentRequest', () => { + it('returns the outstanding fee, timestamped by the request', async () => { + const request = paymentRequest(); + + const result = await copyrightLicense.handle(request, licence({ state: await initialState() })); + + expect(result).toEqual(PayOut.create({ $timestamp: request.$timestamp, amount: amount('10000') })); + }); + + it('reads the fee from the nested paymentTerms field', async () => { + data.paymentTerms.amount = amount('25000', 'GBP'); + + const result = await copyrightLicense.handle(paymentRequest(), licence({ state: await initialState() })); + + expect(result.amount).toEqual(amount('25000', 'GBP')); + }); + + it('makes the obligation DUE: records dueAt and emits a PENDING to DUE transition', async () => { + const self = licence({ state: await initialState() }); + const request = paymentRequest(); + + await copyrightLicense.handle(request, self); + + expect(self.committed.state.paymentTerms.dueAt).toBe(request.$timestamp); + expect(self.committed.events).toEqual([ObligationTransition.create({ + $timestamp: request.$timestamp, + obligation: PaymentObligation.ref(OBLIGATION_ID), + fromStatus: 'PENDING', + toStatus: 'DUE', + effectiveAt: request.$timestamp, + revision: 1, + })]); + }); + + it('sees its own write straight away, before anything is committed', async () => { + const self = licence({ state: await initialState() }); + expect(self.state.paymentTerms.dueAt).toBeUndefined(); + + await copyrightLicense.handle(paymentRequest(), self); + + expect(self.state.paymentTerms.dueAt).toBeDefined(); + }); + + it('chases an already-DUE payment through the composed late payment clause', async () => { + const { state } = await run(paymentRequest()); + const latePayment = stubClause({ [PaymentOverdue.$class]: ReminderSent.create({ $timestamp: at(0), remindersSent: 1 }) }); + const self = licence({ state, clauses: { latePayment } }); + const request = paymentRequest(); + + const result = await copyrightLicense.handle(request, self); + + expect(latePayment.calls).toEqual([PaymentOverdue.create({ $timestamp: request.$timestamp })]); + expect(self.committed.state).toEqual(state); + expect(result.amount).toEqual(amount('10000')); + }); + + it('leaves an already-DUE obligation unchanged when no late payment clause is composed', async () => { + const { state } = await run(paymentRequest()); + const self = licence({ state }); + + await copyrightLicense.handle(paymentRequest(), self); + + expect(self.committed).toEqual({ state, events: [] }); + }); + + it('requests only the outstanding balance after a partial payment', async () => { + const { state } = await run(paymentReceived('4000')); + + const result = await copyrightLicense.handle(paymentRequest(), licence({ state })); + + expect(result.amount).toEqual(amount('6000')); + }); + + it('rejects a request once the fee has been paid in full', async () => { + const { state } = await run(paymentReceived('10000')); + + await expect(copyrightLicense.handle(paymentRequest(), licence({ state }))) + .rejects.toThrow('already been paid in full'); + }); + }); + + describe('PaymentReceived', () => { + it('records a partial payment without changing the obligation status', async () => { + const { state } = await run(paymentRequest()); + const self = licence({ state }); + + const result = await copyrightLicense.handle(paymentReceived('4000'), self); + + expect(PaymentReceipt.is(result)).toBe(true); + expect(result.outstanding).toEqual(amount('6000')); + expect(self.committed.state.paymentTerms.amountPaid).toEqual(amount('4000')); + expect(self.committed.events).toHaveLength(0); + }); + + it('fulfils a DUE obligation when the balance is paid, at revision 2', async () => { + const { state } = await run(paymentRequest(), paymentReceived('4000')); + const self = licence({ state }); + + const result = await copyrightLicense.handle(paymentReceived('6000'), self); + + expect(result.outstanding).toEqual(amount('0')); + expect(self.committed.events).toEqual([expect.objectContaining({ fromStatus: 'DUE', toStatus: 'FULFILLED', revision: 2 })]); + }); + + it('fulfils a PENDING obligation paid before it was requested, at revision 1', async () => { + const self = licence({ state: await initialState() }); + + await copyrightLicense.handle(paymentReceived('10000'), self); + + expect(self.committed.events).toEqual([expect.objectContaining({ fromStatus: 'PENDING', toStatus: 'FULFILLED', revision: 1 })]); + }); + + it('discharges the composed late payment clause once paid in full, and only then', async () => { + const latePayment = stubClause({ [PaymentSettled.$class]: LatePaymentDischarged.create({ $timestamp: at(0) }) }); + const { state } = await run(paymentRequest()); + + await copyrightLicense.handle(paymentReceived('4000'), licence({ state, clauses: { latePayment } })); + expect(latePayment.calls).toEqual([]); + + const request = paymentReceived('10000'); + await copyrightLicense.handle(request, licence({ state, clauses: { latePayment } })); + expect(latePayment.calls).toEqual([PaymentSettled.create({ $timestamp: request.$timestamp })]); + }); + + it('keeps exact totals beyond the range doubles represent exactly', async () => { + // 2^53 + 1 minor units: a double rounds it to 2^53. + data.paymentTerms.amount = amount('9007199254740993'); + + const { state, events } = await run(paymentReceived('9007199254740992'), paymentReceived('1')); + + expect(state.paymentTerms.amountPaid).toEqual(amount('9007199254740993')); + expect(events.at(-1)).toMatchObject({ toStatus: 'FULFILLED' }); + }); + + it('rejects a payment in a different currency or scale from the fee', async () => { + const state = await initialState(); + + await expect(copyrightLicense.handle(paymentReceived('10000', 'EUR'), licence({ state }))) + .rejects.toThrow('Payment must be made in USD at scale 2'); + await expect(copyrightLicense.handle(paymentReceived('100', 'USD', 0), licence({ state }))) + .rejects.toThrow('Payment must be made in USD at scale 2'); + }); + + it('rejects a non-positive payment', async () => { + await expect(copyrightLicense.handle(paymentReceived('0'), licence({ state: await initialState() }))) + .rejects.toThrow('must be positive'); + }); + + it('rejects a payment that would exceed the fee', async () => { + const { state } = await run(paymentReceived('4000')); + + await expect(copyrightLicense.handle(paymentReceived('6001'), licence({ state }))) + .rejects.toThrow('would exceed the licence fee'); + }); + + it('rejects a payment once the fee has been paid in full', async () => { + const { state } = await run(paymentReceived('10000')); + + await expect(copyrightLicense.handle(paymentReceived('1'), licence({ state }))) + .rejects.toThrow('already been paid in full'); + }); + }); + + describe('dispatch', () => { + it('registers a handler for exactly the licence\'s own request types', () => { + expect(copyrightLicense.requestTypes).toEqual([PaymentRequest.$class, PaymentReceived.$class]); + }); + + it('rejects a request it has no handler for, before any logic runs', async () => { + const self = licence({ state: await initialState() }); + + await expect(copyrightLicense.handle(PaymentOverdue.create({ $timestamp: at(0) }), self)) + .rejects.toThrow(`No handler for ${PaymentOverdue.$class}.`); + expect(self.committed.events).toEqual([]); + }); + }); + + describe('obligation registry', () => { + // A minimal stand-in for the registry that owns the obligation: it + // applies ObligationIssued and ObligationTransition events, checking + // each transition against the record it holds. + const applyObligationEvents = (events) => { + let obligation; + for (const event of events) { + if (ObligationIssued.is(event)) { + obligation = { ...event.obligation }; + continue; + } + expect(event.obligation).toBe(PaymentObligation.ref(obligation.obligationId)); + expect(event.fromStatus).toBe(obligation.status); + expect(event.revision).toBe(obligation.revision + 1); + obligation = { ...obligation, status: event.toStatus, revision: event.revision }; + } + return obligation; + }; + + it('receives transitions whose fromStatus and revision match the record it holds', async () => { + const { events } = await run(paymentRequest(), paymentRequest(), paymentReceived('4000'), paymentReceived('6000')); + + const obligation = applyObligationEvents(events); + + expect(obligation.status).toBe('FULFILLED'); + expect(obligation.revision).toBe(2); + }); + }); +}); diff --git a/src/copyright-license-agreement-poc/logic/logic.ts b/src/copyright-license-agreement-poc/logic/logic.ts new file mode 100644 index 000000000..2b6bc9ecf --- /dev/null +++ b/src/copyright-license-agreement-poc/logic/logic.ts @@ -0,0 +1,176 @@ +import { + ICopyrightLicenseData, + ICopyrightLicenseState, + IPaymentTermsState, + IPayOut, + IPaymentReceipt, +} from './generated/poc.accordproject.copyrightlicense@0.1.0'; +import { IPreciseAmount, IUnit } from './generated/org.accordproject.money@1.0.0'; +import { IObligationTransition, ObligationStatus } from './generated/org.accordproject.obligation@1.0.0'; +import { + CopyrightLicenseState, + LicensedWorkSchedule, + ObligationIssued, + ObligationTransition, + PaymentObligation, + PaymentOverdue, + PaymentReceipt, + PaymentReceived, + PaymentRequest, + PaymentSettled, + PaymentTermsState, + PayOut, + PreciseAmount, +} from './generated/types'; +import { Clause, DeepReadonly, Self, defineLogic } from '@accordproject/template-engine/logic'; +import type { LatePayment } from '../../late-payment-poc/logic/logic'; + +// The inline payment clause's path within this licence's data. +const PAYMENT_TERMS = 'paymentTerms'; + +/** + * This licence, as its logic sees it. A late payment clause may be + * composed into it at "latePayment"; the licence depends only on that + * clause's requests and responses (`LatePayment`), never its state. + */ +export type Licence = Self; +}>; + +type Data = Licence['data']; +type TermsState = DeepReadonly; + +function precise(unscaledValue: bigint, unit: DeepReadonly): IPreciseAmount { + return PreciseAmount.create({ unscaledValue: unscaledValue.toString(), unit }); +} + +function sameUnit(a: DeepReadonly, b: DeepReadonly): boolean { + return a.code === b.code && a.scheme === b.scheme && a.scale === b.scale; +} + +// The obligation registry, not template state, owns the payment lifecycle. +// Clause state records only facts, from which the status is derived. +function obligationStatus(data: Data, terms: TermsState): ObligationStatus { + if (BigInt(terms.amountPaid.unscaledValue) >= BigInt(data.paymentTerms.amount.unscaledValue)) { + return ObligationStatus.FULFILLED; + } + return terms.dueAt ? ObligationStatus.DUE : ObligationStatus.PENDING; +} + +// Issued at revision 0; each transition this logic emits adds one. +function obligationRevision(status: ObligationStatus, terms: TermsState): number { + return (terms.dueAt ? 1 : 0) + (status === ObligationStatus.FULFILLED ? 1 : 0); +} + +function outstanding(data: Data, terms: TermsState): IPreciseAmount { + const due = data.paymentTerms.amount; + return precise(BigInt(due.unscaledValue) - BigInt(terms.amountPaid.unscaledValue), due.unit); +} + +function transition(terms: TermsState, fromStatus: ObligationStatus, toStatus: ObligationStatus, revision: number, effectiveAt: string): IObligationTransition { + return ObligationTransition.create({ + $timestamp: effectiveAt, + obligation: PaymentObligation.ref(terms.obligationId), + fromStatus, + toStatus, + effectiveAt, + revision, + }); +} + +// What is licensed: the title from the agreement's licensed work schedule, +// a cousin document, if the agreement has one. Reading another template's +// data at its own type means knowing that type statically, so this +// licence's models include the schedule's. +function licensedWork(licence: Licence): string { + for (const document of licence.document.agreement.documents.values()) { + const data = document.root.data; + if (LicensedWorkSchedule.is(data)) { + return `"${data.title}"`; + } + } + return licence.data.workDescription; +} + +function assertUnpaid(status: ObligationStatus): void { + if (status === ObligationStatus.FULFILLED) { + throw new Error('The licence fee has already been paid in full.'); + } +} + +// Timestamps come from the data or the request, never the clock, so +// replaying the same inputs reproduces the same state and events. +const copyrightLicense = defineLogic() + .init(licence => { + const { data } = licence; + const due = data.paymentTerms.amount; + // Unique across agreements, so the obligation registry needs no + // qualification from the runtime. + const obligationId = `${licence.document.agreement.id}/${licence.document.id}/${PAYMENT_TERMS}`; + const obligation = PaymentObligation.create({ + obligationId, + status: ObligationStatus.PENDING, + createdAt: data.effectiveDate, + bearers: [data.licensee], + beneficiaries: [data.licensor], + agreement: licence.reference(PAYMENT_TERMS), + description: `${data.licensee.label} should pay the licence fee for ${licensedWork(licence)} to ${data.licensor.label}`, + revision: 0, + amount: due, + }); + licence.setState(CopyrightLicenseState.create({ + paymentTerms: PaymentTermsState.create({ obligationId, amountPaid: precise(0n, due.unit) }), + })); + licence.emit(ObligationIssued.create({ $timestamp: data.effectiveDate, obligation })); + }) + .on(PaymentRequest, async (request, licence): Promise => { + const { data, state } = licence; + const terms = state.paymentTerms; + const status = obligationStatus(data, terms); + assertUnpaid(status); + + if (status === ObligationStatus.DUE) { + // Already requested and still outstanding: chase it through the + // late payment clause, if one is composed into this licence. + await licence.clauses.latePayment?.trigger(PaymentOverdue.create({ $timestamp: request.$timestamp })); + } else { + const next = { ...terms, dueAt: request.$timestamp }; + licence.setState({ ...state, paymentTerms: next }); + licence.emit(transition(next, status, ObligationStatus.DUE, obligationRevision(ObligationStatus.DUE, next), request.$timestamp)); + } + return PayOut.create({ $timestamp: request.$timestamp, amount: outstanding(data, terms) }); + }) + .on(PaymentReceived, async (request, licence): Promise => { + const { data, state } = licence; + const terms = state.paymentTerms; + const due = data.paymentTerms.amount; + const status = obligationStatus(data, terms); + assertUnpaid(status); + if (!sameUnit(request.amount.unit, due.unit)) { + throw new Error(`Payment must be made in ${due.unit.code} at scale ${due.unit.scale}.`); + } + const payment = BigInt(request.amount.unscaledValue); + if (payment <= 0n) { + throw new Error('Payment amount must be positive.'); + } + const amountPaid = BigInt(terms.amountPaid.unscaledValue) + payment; + if (amountPaid > BigInt(due.unscaledValue)) { + throw new Error('Payment would exceed the licence fee.'); + } + + const next = { ...terms, amountPaid: precise(amountPaid, due.unit) }; + licence.setState({ ...state, paymentTerms: next }); + const nextStatus = obligationStatus(data, next); + if (nextStatus !== status) { + licence.emit(transition(next, status, nextStatus, obligationRevision(nextStatus, next), request.$timestamp)); + } + if (nextStatus === ObligationStatus.FULFILLED) { + // Paying in full also discharges the late payment clause. Its + // state is committed with the licence's in one revision, or + // neither is if anything here throws. + await licence.clauses.latePayment?.trigger(PaymentSettled.create({ $timestamp: request.$timestamp })); + } + return PaymentReceipt.create({ $timestamp: request.$timestamp, outstanding: outstanding(data, next) }); + }); + +export default copyrightLicense; diff --git a/src/copyright-license-agreement-poc/logo.png b/src/copyright-license-agreement-poc/logo.png new file mode 100644 index 000000000..31f10ab90 Binary files /dev/null and b/src/copyright-license-agreement-poc/logo.png differ diff --git a/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.agreement@1.0.0.cto b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.agreement@1.0.0.cto new file mode 100644 index 000000000..79361fff5 --- /dev/null +++ b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.agreement@1.0.0.cto @@ -0,0 +1,260 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// Requires a Concerto with map type support: concerto-core 3.x accepts a map +// type only behind the enableMapType flag, which the models build does not set. +// The requirement first held at 4.0.0; the declared floor tracks the release +// the models build supports, which is Concerto 5 since #204. +concerto version "^5.0.0" + +/** + * Agreements and the documents that record them. + * + * The templates they are created from are modelled in + * org.accordproject.template@1.0.0, which this namespace imports. Templates + * are cited by records that have no agreement in hand, so naming one does not + * require taking on this model. + * + * Scope: this model records structure and provenance. It does not carry prose. + * The text of an agreement is defined by its templates, and its instantiated + * form is TemplateMark and CiceroMark markup, which remains authoritative for + * document structure. Clause instances are recorded here for provenance and + * are addressed by the same instance paths the markup uses. + * + * The following are deliberately left to extension profiles and are not + * modelled here. Each is listed with what a profile would have to define. + * + * Order of precedence. + * Which document prevails where two conflict, as with a schedule prevailing + * over a master agreement. Not modelled because reading order and precedence + * order are commonly the inverse of one another, and the documents list + * holds reading order. A profile must define a precedence ordering over an + * agreement's documents, whether it is total or may be scoped to a subject + * matter, and how ties are resolved. + * + * Supersession and amendment. + * That a later instrument replaces or amends an earlier one. Not modelled + * because it is a link between documents rather than an ordering over them. + * A profile must define the reference from the superseding document to the + * superseded one, whether supersession is partial or total, and the point + * from which it takes effect. + * + * Incorporation by reference. + * That a document incorporates terms defined elsewhere, such as standard + * terms published at a URL. A profile must define how the incorporated + * material is identified and hash-committed, and whether it is incorporated + * as at a fixed version or as amended from time to time. + * + * Hash canonicalization. + * Every hash property here is optional, and this model does not define how + * the bytes they commit to are produced. Two implementations hashing the + * same agreement under different canonicalization rules would both be + * conformant, so a hash is only meaningful under a profile that fixes those + * rules. A deterministic profile must define the canonical serialization, + * state that the hash property itself is excluded from its own pre-image, + * and may require the properties this model leaves optional. Where a hash is + * supplied its crypto@1.0.0 Canonicalization should be populated, so that a + * verifier can tell which discipline produced it rather than having to + * assume one. + * + * The properties are optional rather than required because optional to + * required is a breaking change and this family is published permanently: a + * profile can tighten what the core model leaves open, but nothing can + * loosen it afterwards. + * + * Cross-level hash commitment. + * Each hash in this model commits only to its own level. Nothing states that + * an agreement's hash commits to its documents' hashes, or a document's to + * its clauses'. A profile that needs a composed agreement to be verifiable + * as the composition of its parts must define the canonical serialization at + * each level and the order in which child hashes are combined. + * + * Party role vocabulary. + * AgreementParty.role is an open string. A profile should constrain it for + * its domain. + */ +namespace org.accordproject.agreement@1.0.0 + +import org.accordproject.crypto@1.0.0.ContentHash from https://models.accordproject.org/crypto/crypto@1.0.0.cto +import org.accordproject.templatedata@1.0.0.TemplateData from https://models.accordproject.org/accordproject/templatedata@1.0.0.cto +import org.accordproject.party@1.0.0.Party from https://models.accordproject.org/accordproject/party@1.0.0.cto +import org.accordproject.template@1.0.0.TemplateReference from https://models.accordproject.org/accordproject/template@1.0.0.cto + +/** + * A clause instance within an agreement document. + * + * A Clause records a sub-template archive composed into this document: a + * {{#clause ...}} block whose body is supplied by a separate template, named + * by Clause.template. It is provenance for composition, not an index of the + * document's structure. + * + * An inline {{#clause ...}} block, whose body is written in the parent grammar + * and which composes no separate archive, gets no entry. A document whose + * clause blocks are all inline has no composed archives to record, so its + * clauses map is absent rather than present and empty. Clause.template is + * required for the same reason: there is nothing to name where nothing was + * composed. Prose outside a clause block is likewise not a Clause; it is + * ordinary markup in the parent grammar. + * + * A composed clause is a template instance in its own right: it carries its + * own data, at its own TemplateData subtype, and the clauses composed into it + * in turn. A document and the clauses composed into it therefore form one + * tree of template instances, rooted at the document. The parent's model + * declares nothing about the clauses composed into it, and an inline clause, + * which is a subtree of its template's data, is unaffected. + * + * A clause is addressed by its instance path, which is the key it appears + * under in its parent's clauses map. The path is rooted at the parent's data + * — the TemplateData subtype carried in AgreementDocument.data, or in the + * parent Clause.data — and not at the parent itself, so a clause bound to the + * paymentTerms property of the data has the path "paymentTerms" and never + * "data.paymentTerms". A clause composed into a composed clause is addressed + * from the document by joining the keys with "/", for example + * "latePayment/notice". It is a + * bare name for a singleton clause, for example "payment", and is qualified by + * index where a clause is generated inside a list or foreach block, for + * example "deliveries[2].inspection". Instance paths, rather than a static + * clause tree, are used because the number of clause instances is determined + * by the data: a list block yields one instance per element and a conditional + * block may yield none. The authoritative structure of the agreement remains + * the TemplateMark and CiceroMark markup; this model records provenance over + * it and does not restate it. + * + * The path is deliberately held only in the map key and not repeated as a + * property, so there is one place it is stated and no invariant tying two + * copies together. Records which cite a clause from outside the map, such as + * AgreementReference, carry the path themselves. + * + * clauseId is the clause's stable instance id. It survives across agreement + * revisions, where the instance path may change, and it keys the clause's + * state in runtime@1.0.0's AgreementState.states, as documentId keys a + * document's. It is unique within the agreement. + */ +concept Clause { + o TemplateReference template + o String clauseId + o TemplateData data + o Clauses clauses optional + o ContentHash clauseHash optional +} + +/** + * The sub-template archives composed into a document or a clause, keyed by + * clause instance path. + * + * Absent, rather than empty, where a document or clause composes no archives + * of its own. + */ +map Clauses { + o String + o Clause +} + +/** + * A party in a stated role, such as "buyer", "licensor" or "guarantor". + * + * Roles are open strings rather than an enumeration because the vocabulary is + * domain-specific; profiles should constrain it for their domain. + */ +concept AgreementParty { + --> Party party + o String role +} + +/** + * A single instrument recording part of an agreement: a master agreement, a + * schedule, a confirmation, an annex or a standalone contract. + * + * documentHash commits to the document, excluding the documentHash property + * itself. It is optional and its canonicalization is left to a deterministic + * profile, as set out under Hash canonicalization above. It is independent of + * the hashes of the agreement above it and the clauses within it; no + * cross-level commitment is implied. + * + * template is optional because an assembled instrument may bind sub-templates + * per clause without itself being generated from a document-level template. + * + * parties narrows the agreement's party set when a document binds fewer or + * different parties than the agreement as a whole, as with an affiliate + * schedule under a master agreement. When absent the agreement's parties apply. + * + * This type is concrete so that a document needing no additional properties + * can be used directly. It may still be extended by a profile. + */ +asset AgreementDocument identified by documentId { + o String documentId + o ContentHash documentHash optional + o TemplateReference template optional + o TemplateData data optional + o Clauses clauses optional + o AgreementParty[] parties optional +} + +/** + * An agreement between parties, recorded in one or more documents. + * + * agreementHash commits to the agreement, excluding the agreementHash + * property itself. It is optional and its canonicalization is left to a + * deterministic profile, as set out under Hash canonicalization above. + * + * documents is ordered by reading order, that is, the order in which the + * instruments are assembled and rendered. Order of precedence between + * conflicting documents is deliberately not modelled here: in common practice + * the two orderings are inverse, and precedence, incorporation by reference + * and supersession belong to an agreement profile. + * + * This type is concrete so that an agreement needing no additional properties + * can be used directly; template-specific data belongs in + * AgreementDocument.data rather than in a subclass. It may still be extended + * by a profile. + */ +asset Agreement identified by agreementId { + o String agreementId + o ContentHash agreementHash optional + --> AgreementDocument[] documents + o AgreementParty[] parties +} + +/** + * Portable provenance for an instantiated agreement. + * + * This is a projection for records which must travel standalone, such as + * obligations, attestations and settlement evidence. It is deliberately not + * identified: it denotes an agreement rather than being one, and must not + * claim the identifier of the Agreement asset. + * + * agreementId corresponds to Agreement.agreementId when the complete asset is + * available. template is optional because an agreement carries no template of + * its own; supply it when the provenance derives from a single templated + * document. documentId names the document the reference points into, and + * clausePath a specific originating clause within it, using the instance path + * that keys the clauses maps, or a path into an inline clause in the + * document's data. A clause path is only unique within its document, so a + * reference into an agreement of several documents needs both. They are held + * here because a reference travels without the agreement that would otherwise + * supply them. + * + * agreementHash is optional and its canonicalization is left to a + * deterministic profile, as set out under Hash canonicalization above. A + * profile whose evidence depends on the reference being verifiable should + * require it. + */ +concept AgreementReference { + o String agreementId + o ContentHash agreementHash optional + o String documentId optional + o TemplateReference template optional + o String clausePath optional + o ContentHash clauseHash optional +} diff --git a/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.obligation@1.0.0.cto b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.obligation@1.0.0.cto new file mode 100644 index 000000000..19011591c --- /dev/null +++ b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.obligation@1.0.0.cto @@ -0,0 +1,170 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// Requires map type support: this model has no map type of its own, but it +// imports agreement@1.0.0, which does. The models build parses a model's +// imports with the parser chosen for the importing file, so the requirement is +// inherited, and the declared floor tracks agreement@1.0.0's. +concerto version "^5.0.0" + +namespace org.accordproject.obligation@1.0.0 + +import org.accordproject.crypto@1.0.0.ContentHash from https://models.accordproject.org/crypto/crypto@1.0.0.cto +import org.accordproject.money@1.0.0.PreciseAmount from https://models.accordproject.org/money@1.0.0.cto +import org.accordproject.party@1.0.0.PartyRef from https://models.accordproject.org/accordproject/party@1.0.0.cto +import org.accordproject.agreement@1.0.0.AgreementReference from https://models.accordproject.org/accordproject/agreement@1.0.0.cto + +/** + * Lifecycle states for the legal obligation itself. + * + * These states deliberately exclude operational attempt outcomes. A failed + * attempt does not, by itself, establish that an obligation is breached. + */ +enum ObligationStatus { + o PENDING + o DUE + o FULFILLED + o BREACHED + o WAIVED + o SUPERSEDED + o DISPUTED +} + +/** + * Outcome states for an operational attempt to fulfil an obligation. + */ +enum FulfilmentAttemptStatus { + o INITIATED + o SUCCEEDED + o FAILED + o REVERSED +} + +/** + * A durable obligation derived from an agreement. + * + * Lifecycle changes are recorded as ObligationTransition events. Applications + * and profiles remain responsible for validating allowed transitions. + * + * agreement uses the shared agreement@1.0.0.AgreementReference rather than a + * local type, so that obligations, attestations and settlement evidence all + * denote an agreement the same way. Its clausePath is the clause instance path + * defined by agreement@1.0.0.Clause, for example "deliveries[2].inspection". + * Note that its template is optional: an agreement recorded across several + * documents has no single template, so an obligation derived from one cannot + * always state template provenance. + */ +abstract asset Obligation identified by obligationId { + o String obligationId + o ObligationStatus status + o DateTime createdAt + o DateTime dueAt optional + o PartyRef[] bearers + o PartyRef[] beneficiaries optional + o AgreementReference agreement + o String description optional + o String authorityRef optional + o ContentHash basisHash optional + o ContentHash evidenceHash optional + o String parentObligationId optional + o String supersedesObligationId optional + o Long revision default=0 range=[0,] +} + +/** + * An obligation to transfer an exact monetary amount. + */ +asset PaymentObligation extends Obligation { + o PreciseAmount amount +} + +/** + * An obligation to perform an act other than transferring money. + */ +asset PerformanceObligation extends Obligation { + o String performance +} + +/** + * An obligation to deliver a notice or other communication. + */ +asset NotificationObligation extends Obligation { + o String title + o String message +} + +/** + * An obligation to cure or otherwise remediate a condition. + */ +asset RemediationObligation extends Obligation { + o String remedy +} + +/** + * An obligation to produce or preserve specified evidence. + */ +asset EvidenceObligation extends Obligation { + o String evidenceRequirement +} + +/** + * An obligation to reduce an identified risk or loss. + */ +asset MitigationObligation extends Obligation { + o String mitigationMeasure +} + +/** + * An explicit lifecycle transition for an obligation. + * + * fromStatus is optional so that producers which did not observe the previous + * state can still submit a transition for validation by the receiving system. + */ +event ObligationTransition { + --> Obligation obligation + o ObligationStatus fromStatus optional + o ObligationStatus toStatus + o DateTime effectiveAt + o PartyRef actor optional + o String reason optional + o ContentHash evidenceHash optional + o String correlationId optional + o Long revision range=[0,] +} + +/** + * The issue of an obligation. + * + * Logic issues an obligation by emitting this event rather than by writing the + * obligation record itself, as it changes one by emitting an + * ObligationTransition. The obligation registry applies both, so the record + * has one writer. + */ +event ObligationIssued { + o Obligation obligation +} + +/** + * A durable record of an operational attempt to fulfil an obligation. + */ +asset FulfilmentAttempt identified by attemptId { + o String attemptId + --> Obligation obligation + o FulfilmentAttemptStatus status + o DateTime initiatedAt + o DateTime completedAt optional + o PartyRef actor optional + o ContentHash evidenceHash optional + o String correlationId optional +} diff --git a/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.party@1.0.0.cto b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.party@1.0.0.cto new file mode 100644 index 000000000..5ee5afb37 --- /dev/null +++ b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.party@1.0.0.cto @@ -0,0 +1,53 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +concerto version "^3.0.0" + +namespace org.accordproject.party@1.0.0 + +/** + * A party to an agreement. + * + * Party is registry-resident: it is the target of relationships from models + * which can assume a resolver, such as agreement@1.0.0. + */ +participant Party identified by partyId { + o String partyId + o String name optional +} + +/** + * A portable, self-contained projection of a Party. + * + * PartyRef is the serializable form used by records which must travel + * standalone and therefore cannot assume a registry: obligations, attestations + * and settlement evidence. scheme names the identifier authority, for example + * "did", "lei" or "email", so that id can be resolved without ambiguity. + * + * A PartyRef with scheme "party" and id equal to Party.partyId denotes the + * corresponding Party in the same deployment. + * + * PartyRef deliberately carries no role. A role is a property of an act, not + * of a party: the same party may be a signatory on one document and a witness + * on another, and may sign in different roles on documents within one + * agreement. Role therefore belongs on the record of the act — on + * agreement@1.0.0's AgreementParty for a party's role under an agreement, and + * on an attestation for the capacity in which a signature was given. label is + * a display name only and must not be used to carry one. + */ +concept PartyRef { + o String id + o String scheme + o String label optional +} diff --git a/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.runtime@1.0.0.cto b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.runtime@1.0.0.cto new file mode 100644 index 000000000..4aebbbb78 --- /dev/null +++ b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.runtime@1.0.0.cto @@ -0,0 +1,111 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// Requires map type support, and specifically a release in which map values +// that are a type imported from another namespace serialize correctly: 3.x +// accepts a map type only behind the enableMapType flag that the models build +// does not set, and the cross-namespace map value fix landed in 4.2.0 +// (accordproject/concerto#1279). The requirement first held at 4.2.0; the +// declared floor tracks the release the models build supports, which is +// Concerto 5 since #204. +concerto version "^5.0.0" + +namespace org.accordproject.runtime@1.0.0 + +import org.accordproject.agreement@1.0.0.Agreement from https://models.accordproject.org/accordproject/agreement@1.0.0.cto +import org.accordproject.crypto@1.0.0.ContentHash from https://models.accordproject.org/crypto/crypto@1.0.0.cto +import org.accordproject.templatedata@1.0.0.StateData from https://models.accordproject.org/accordproject/templatedata@1.0.0.cto + +/** + * Base request for invoking contract logic with no custom request properties. + */ +transaction Request { +} + +/** + * Base response for contract logic with no custom response properties. + */ +transaction Response { +} + +/** + * The state of an agreement's template instances, keyed by instance id. + * + * Keys are a document's AgreementDocument.documentId or a composed clause's + * Clause.clauseId from agreement@1.0.0. Ids are stable across revisions, so + * the index never has to mirror the shape of the agreement's tree, and a + * stateless instance has no entry. + * + * The value is StateData itself, so a template's own state subtype is the map + * value with nothing wrapping it. Both the declared value type and the + * concrete type an instance carries are therefore imported from other + * namespaces, which requires concerto-core 4.2.0 or later + * (accordproject/concerto#1279). + */ +map InstanceStates { + o String + o StateData +} + +/** + * An identified, revisioned snapshot of the whole runtime state of an + * agreement, including the state of each of its clause instances. + * + * AgreementState is registry-resident, and intentionally so. It holds a + * relationship to its Agreement rather than the portable AgreementReference + * used by obligations and settlement evidence, because state is written by a + * runtime that has the agreement and its documents in hand: a revision counter + * and a previous-state hash chain are only meaningful where successive + * revisions can be resolved against one another. Records which must travel + * standalone reference an agreement portably instead; state does not travel, + * so it does not need to. This mirrors the distinction party@1.0.0 draws + * between Party and PartyRef. + * + * State is held as one document per agreement rather than one asset per + * clause. A transition which spans scopes, such as marking a clause BREACHED + * because of a condition detected in the agreement or in a peer clause, is + * then a single write producing a single revision and a single hash, and + * sibling state is in scope without a further lookup. Per-clause state assets + * would require a cross-asset transaction that Concerto does not provide, and + * would leave revision and previousStateHash without a well-defined meaning. + * + * states holds every stateful instance's state, the documents' and the + * composed clauses' alike, keyed by instance id. A template's logic reads and + * writes only its own entry; a transition that changes a document and the + * clauses composed into it is still one write and one revision. + * + * stateHash commits to the state, excluding the stateHash property itself, + * and previousStateHash links a revision to its immediate predecessor when one + * exists. Both are optional and this model does not define the canonicalization + * they use, so a hash chain over revisions is only meaningful under a profile + * that fixes those rules. A deterministic profile must define the canonical + * serialization, state that stateHash is excluded from its own pre-image, and + * should require stateHash where the chain is relied upon. Where a hash is + * supplied its crypto@1.0.0 Canonicalization should be populated. The + * properties are optional rather than required because optional to required is + * a breaking change and this namespace is published permanently. + * + * Obligations are intentionally not defined in this namespace. New + * implementations should use org.accordproject.obligation@1.0.0 so durable + * obligation state and lifecycle events are not coupled to the runtime API. + */ +asset AgreementState identified by stateId { + o String stateId + --> Agreement agreement + o Long revision default=0 range=[0,] + o DateTime effectiveAt + o InstanceStates states optional + o ContentHash stateHash optional + o ContentHash previousStateHash optional +} diff --git a/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.template@1.0.0.cto b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.template@1.0.0.cto new file mode 100644 index 000000000..4c8256a3c --- /dev/null +++ b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.template@1.0.0.cto @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +concerto version "^3.0.0" + +/** + * Templates: the immutable, hash-addressed archives that agreements are + * created from, and the named artifacts inside them. + * + * Scope: this namespace identifies a template and commits to its content. It + * says nothing about agreements, clauses or runtime state, and imports nothing + * but the hash types, so a consumer that only needs to name a template does not + * take on the agreement model to do it. Templates are referenced by more than + * agreements — obligations, attestations and settlement evidence all cite the + * template an artefact derives from — and a registry may catalogue templates + * with no agreement in sight. + * + * Deliberately deferred to profiles: + * + * Artifact manifests. + * Where TemplateReference.artifacts is populated, a profile must define the + * manifest canonicalization and require the list to agree with + * artifactManifestHash. This model cannot express that conditional. + * + * Identifier syntax. + * TemplateReference.templateId is an open string. A profile should define + * whether it is a name, a URI or a registry key, and how it is compared. + */ +namespace org.accordproject.template@1.0.0 + +import org.accordproject.crypto@1.0.0.ContentHash from https://models.accordproject.org/crypto/crypto@1.0.0.cto + +/** + * The role of a named artifact within a template archive. + */ +enum TemplateArtifactRole { + o LOGIC + o MODEL + o GRAMMAR + o PROSE + o DOCUMENTATION + o TEST + o RESOURCE + o CUSTOM +} + +/** + * A named, hash-addressed artifact contained in a template archive. + * + * For executable logic, name and path can identify an entry point such as + * "logic.ts" while language and runtime describe how it is executed. The + * content hash ensures that an evaluation can identify the exact artifact, + * independently of the archive-level hash. + */ +concept TemplateArtifact { + o String name + o TemplateArtifactRole role + o String customRole optional + o String path + o String language optional + o String runtime optional + o Boolean entryPoint default=false + o ContentHash contentHash +} + +/** + * A reference to an immutable template archive. + * + * archiveHash commits to the complete archive. artifactManifestHash commits to + * the canonical manifest of named artifacts when the archive supplies one. + * Profiles which populate artifacts should define the manifest canonicalization + * and require the list to agree with artifactManifestHash. + * + * templateId names the template itself, not this reference: the same + * templateId and version denote the same archive wherever they are cited. + * TemplateReference is deliberately not a Concerto-identified type, so + * templateId carries no identity semantics of its own; its syntax is deferred + * to a profile. + * + * The hash commits only to the archive. Nothing here states a relationship + * between it and the hash of anything created from the template. + */ +concept TemplateReference { + o String templateId + o String version + o ContentHash archiveHash + o ContentHash artifactManifestHash optional + o TemplateArtifact[] artifacts optional +} diff --git a/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.templatedata@1.0.0.cto b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.templatedata@1.0.0.cto new file mode 100644 index 000000000..5c377841c --- /dev/null +++ b/src/copyright-license-agreement-poc/model/@models.accordproject.org.accordproject.templatedata@1.0.0.cto @@ -0,0 +1,91 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +concerto version "^3.0.0" + +/** + * The extension points a template declares its own types against. + * + * These are the two concepts every template subclasses: one for the variables + * it instantiates, one for the state its logic keeps. They are deliberately + * empty, and this namespace deliberately imports nothing. + * + * They are held apart from the models that consume them so that declaring the + * shape of a template's own data does not require taking on the agreement + * envelope, the runtime state envelope, or the hash and party types those + * carry. A template subclassing TemplateData is describing its variables; it + * is not asserting anything about agreements, documents or clause structure. + * The same holds for StateData and runtime state. + * + * Keeping this namespace free of imports also keeps it free of the Concerto + * version floors its consumers carry: agreement@1.0.0 and runtime@1.0.0 both + * declare map types and require Concerto 4, while a template that only + * subclasses these two concepts stays on Concerto 3 syntax. + */ +namespace org.accordproject.templatedata@1.0.0 + +/** + * The extension point for template-specific data. + * + * A template declares one concrete subtype holding its instantiated variables. + * That subtype is carried by composition, in agreement@1.0.0's + * AgreementDocument.data, rather than by subclassing the document itself, so + * the envelope's type and its relationship URIs stay stable across template + * versions. + * + * The data of a clause is a subtree of the document's data, addressed by the + * clause's instance path. A clause does not carry its own copy. + * + * Extending this concept is what declares a template's data. A template's + * model holds exactly one concrete subtype of TemplateData, and that subtype + * is the template's renderable root, found by its parent type. No decorator + * marks it: the supertype carries that meaning, so a template author states + * the fact once rather than declaring an inheritance and then repeating it as + * an annotation which nothing keeps in agreement with it. Types the data is + * composed of are ordinary concepts and do not extend TemplateData; only the + * root does. + * + * Because the grammar roots at the data, {{effectiveDate}} resolves against it + * directly and no {{#with data}} wrapper is required. Rooting a grammar at an + * agreement envelope instead cannot render at all: markdown-template resolves + * clause and with blocks with getOwnProperty, which does not walk supertypes, + * so {{#with data}} on an empty subclass of an envelope never resolves. Plain + * variables resolve through inheritance; block constructs do not. The division + * of labour is that a template author writes data, and the runtime wraps it in + * a provenance envelope the author never has to see. + * + * A template's data should name parties with party@1.0.0's PartyRef rather + * than with a relationship to Party. Data travels to contract logic as a + * serialized value with no resolution step, where a relationship arrives as an + * unresolvable "resource:...#me" string. Relationships to Party belong on the + * envelope, in agreement@1.0.0's AgreementParty, where a registry is available + * to resolve them. + */ +abstract concept TemplateData {} + +/** + * The extension point for template-specific runtime state. + * + * A template declares one concrete subtype, and as with TemplateData that + * subtype is found by its parent type rather than by a decorator. It is + * carried in runtime@1.0.0's AgreementState.data for state scoped to the + * agreement, and as a ClauseStates value, keyed by clause instance path, for + * state scoped to a clause. + * + * There is deliberately no lifecycle status property. What it means for a + * clause to be, for example, active or breached is a matter for the template + * and its logic, not for this model, so the status vocabulary belongs in the + * concrete subtype a template declares. + */ +abstract concept StateData {} diff --git a/src/copyright-license-agreement-poc/model/@models.accordproject.org.crypto.crypto@1.0.0.cto b/src/copyright-license-agreement-poc/model/@models.accordproject.org.crypto.crypto@1.0.0.cto new file mode 100644 index 000000000..f2784d249 --- /dev/null +++ b/src/copyright-license-agreement-poc/model/@models.accordproject.org.crypto.crypto@1.0.0.cto @@ -0,0 +1,127 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +concerto version "^3.0.0" + +namespace org.accordproject.crypto@1.0.0 + +/** + * Common hash algorithms used across legal, payment, content-addressing, and + * distributed-ledger systems. + * + * Scope: the stable, fully-specified, non-parameterised set. An algorithm is + * included only when its name alone pins the digest unambiguously. Algorithms + * whose behaviour depends on parameters that a bare name does not carry (field, + * arity, round constants — e.g. Poseidon, Pedersen) are deliberately excluded: + * a bare enum literal for them would imply an interop guarantee that does not + * exist. Use CUSTOM with HashAlgorithm.customName (and uri for a parameter + * profile) for those, and for anything newer or domain-specific. + * + * Coverage note: this set keeps the primary digests of common ledgers + * first-class — SHA-384 (Hedera), BLAKE2b-256 and Keccak-256 (Sui), + * SHA2/SHA3 (general) — while ZK hashes (e.g. Midnight-class Poseidon) fall + * to CUSTOM by design, since those chains do not commit to a fully-specified + * algorithm name in their public APIs. + */ +enum HashAlgorithmType { + o SHA_256 + o SHA_384 // Hedera block/running hash default + o SHA_512 + o SHA3_256 + o SHA3_512 + o KECCAK_256 // Ethereum/EVM; Sui; fully specified by name + o BLAKE2B_256 // Sui primary digest; fully specified by name + o BLAKE3 + o CUSTOM +} + +/** + * Identifies the digest algorithm used to produce a hash value. + * + * When type is CUSTOM, customName should carry the protocol or implementation + * name, for example "poseidon2", "stark-pedersen", or "sha256d". + * uri may point to a registry entry, specification, or implementation profile. + */ +concept HashAlgorithm { + o HashAlgorithmType type + o String customName optional + o String uri optional +} + +/** + * Text encoding used for the digest value. + */ +enum HashEncoding { + o HEX + o HEX_0X + o BASE64 + o BASE64URL + o MULTIBASE +} + +/** + * A digest value with the metadata needed to interpret it. + * + * Domain models should still name the field according to its role, for example + * templateHash, evidenceHash, receiptHash, or mandateHash. + */ +concept Hash { + o HashAlgorithm algorithm + o String value + o HashEncoding encoding default="HEX" +} + +/** + * Canonicalization or byte discipline used before hashing content. + * + * RAW_BYTES means the digest is over the bytes as supplied. Use CUSTOM with + * Canonicalization.customName for protocol-specific rules. + */ +enum CanonicalizationType { + o RAW_BYTES + o RFC8785_JCS + o DAG_CBOR + o ZIP_NORMALIZED + o CUSTOM +} + +/** + * Identifies how structured content was converted to bytes before hashing. + */ +concept Canonicalization { + o CanonicalizationType type default="RAW_BYTES" + o String customName optional + o String uri optional +} + +/** + * A hash of a concrete content artifact, with enough metadata for a verifier + * to reproduce the digest where the surrounding protocol requires that. + */ +concept ContentHash extends Hash { + o Canonicalization canonicalization optional + o String mediaType optional + o Long byteLength optional +} + +/** + * A reference to an external resource together with its content hash. + * + * uri can be an HTTPS URL, IPFS URI, content-addressed storage reference, or + * any other resolver understood by the consuming protocol. + */ +concept HashedResource { + o String uri optional + o ContentHash hash +} diff --git a/src/copyright-license-agreement-poc/model/@models.accordproject.org.money@1.0.0.cto b/src/copyright-license-agreement-poc/model/@models.accordproject.org.money@1.0.0.cto new file mode 100644 index 000000000..759a0f8d6 --- /dev/null +++ b/src/copyright-license-agreement-poc/model/@models.accordproject.org.money@1.0.0.cto @@ -0,0 +1,120 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +concerto version "^3.0.0" + +namespace org.accordproject.money@1.0.0 + +/** + * An ISO 4217 alphabetic currency code: three uppercase Latin letters + * (e.g. "USD", "JPY", "KWD"). The regex matches the ISO 4217 format without + * enumerating the code list, so new/retired codes need no model change. + * + * Every value of the org.accordproject.money@0.3.0.CurrencyCode enum is three + * uppercase letters, so existing instances validate against this scalar + * unchanged. + */ +scalar CurrencyCode extends String regex=/^[A-Z]{3}$/ + +/** + * An approximate (floating-point) monetary amount. + * + * `doubleValue` is an IEEE-754 double, so it cannot represent most decimal + * fractions exactly and errors accumulate under arithmetic. This type is for + * display, estimates, and legacy contracts only — NOT for settlement, ledgers, + * or any calculation. For exact arithmetic use PreciseAmount. + * + * Backwards-compatible with org.accordproject.money@0.3.0.MonetaryAmount: + * instances of the 0.3.0 concept validate against this definition unchanged + * (its `currencyCode` enum members are three uppercase letters and so satisfy + * the CurrencyCode scalar, e.g. "USD"); only the `$class` name changes on + * migration. + * + * Example: { "doubleValue": 10.50, "currencyCode": "USD" } + */ +concept ApproximateAmount { + o Double doubleValue + o CurrencyCode currencyCode +} + +/** + * A unit of account, self-describing across schemes. + * + * `code` the unit's short code within `scheme` (e.g. "USD", "JPY", "ETH"). + * `scheme` the namespace the code is drawn from. Defaults to ISO 4217 for + * fiat; other schemes (e.g. "iso24165", "erc20", "slip44", + * "caip19") allow non-fiat units without hard-coding ticker codes + * into the model. + * `identifier` an optional, unambiguous, scheme-scoped identifier for the exact + * asset — e.g. a CAIP-19 asset id + * ("eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"), a + * token contract address, or a DTI (ISO 24165). `code` alone is + * ambiguous for token schemes — the same ticker can exist on many + * chains / contracts — so carrying the disambiguator on the + * instance avoids relying solely on a registry lookup. + * `scale` the number of decimal places / minor units (non-negative). + * Travels with the unit so that a PreciseAmount is fully + * self-describing without needing to resolve external reference + * data. e.g. USD=2, JPY=0, KWD=3, USDC=6, ETH=18. + * + * Canonical scales/identifiers for well-known schemes are published as + * reference data in org.accordproject.money.reference. + */ +concept Unit { + o String code + o String scheme default="iso4217" + o String identifier optional + o Integer scale range=[0,] +} + +/** + * An arbitrary-precision, base-10 integer represented as a string, in + * canonical form (no leading zeros). Used as the unscaled value of a + * PreciseAmount. + * + * Encoded as a string so the value is exact at any magnitude — unbounded by + * the 2^53 limit of a JSON number / IEEE-754 double, and never silently + * truncated by a JSON parser. Clients convert once at the boundary (e.g. + * BigInt(unscaledValue), or a Dinero.js v2 / big.js money object) and then do + * exact integer arithmetic. + */ +scalar BigInteger extends String regex=/^(0|-?[1-9][0-9]*)$/ + +/** + * A precise (fixed-point) monetary amount. + * + * Follows the same model as Java's BigDecimal — an integer `unscaledValue` + * and a `scale` (here carried on `unit`): + * + * amount = unscaledValue × 10^(−unit.scale) + * + * `unscaledValue` is an exact integer (see BigInteger): amounts add, subtract + * and compare with exact integer arithmetic — no floating-point drift, and + * exact at any magnitude (e.g. 18-decimal tokens, aggregate balances) rather + * than being capped at 2^53. Because the encoding is fixed there is no + * discriminator to interpret. + * + * Use for banking, settlement, ledgers, tax computation, regulated + * reporting, cross-currency arithmetic, on-chain base-unit accounting, and + * any currency with non-decimal denominations. + * + * Examples: + * $10.50 -> { "unscaledValue": "1050", "unit": { "code": "USD", "scale": 2 } } + * ¥10,050 -> { "unscaledValue": "10050", "unit": { "code": "JPY", "scale": 0 } } + * 100.500 KWD -> { "unscaledValue": "100500", "unit": { "code": "KWD", "scale": 3 } } + * 1.5 ETH -> { "unscaledValue": "1500000000000000000", "unit": { "code": "ETH", "scheme": "slip44", "scale": 18 } } + */ +concept PreciseAmount { + o BigInteger unscaledValue + o Unit unit +} diff --git a/src/copyright-license-agreement-poc/model/late-payment-poc.cto b/src/copyright-license-agreement-poc/model/late-payment-poc.cto new file mode 100644 index 000000000..124a122f7 --- /dev/null +++ b/src/copyright-license-agreement-poc/model/late-payment-poc.cto @@ -0,0 +1,49 @@ +/* + * PROTOTYPE: a clause template, composed into a document (accordproject/models#205). + * + * A separately versioned clause archive with its own model, grammar and + * logic. An instance of it is composed into a copyright licence + * (copyright-license-agreement-poc) at path "latePayment" of the licence's + * AgreementDocument `clauses`. + * + * Its parent never reads or writes this clause's state. It depends only on + * the requests and responses declared here: it triggers the clause with + * `PaymentOverdue` / `PaymentSettled`, and the engine commits the state + * the clause's own logic writes with the parent's, as one revision. + */ + +concerto version "^5.0.0" + +namespace poc.accordproject.latepayment@0.1.0 + +import org.accordproject.templatedata@1.0.0.{TemplateData, StateData} +import org.accordproject.runtime@1.0.0.{Request, Response} + +/* A payment this clause governs is overdue */ +transaction PaymentOverdue extends Request { +} + +transaction ReminderSent extends Response { + o Integer remindersSent +} + +/* The payment this clause governs has been made in full */ +transaction PaymentSettled extends Request { +} + +transaction LatePaymentDischarged extends Response { +} + +event PaymentReminder { + o Integer reminderNumber + o Integer gracePeriodDays +} + +concept LatePaymentData extends TemplateData { + o Integer gracePeriodDays range=[0,] +} + +concept LatePaymentState extends StateData { + o Integer remindersSent + o Boolean discharged +} diff --git a/src/copyright-license-agreement-poc/model/licensed-work-schedule-poc.cto b/src/copyright-license-agreement-poc/model/licensed-work-schedule-poc.cto new file mode 100644 index 000000000..6a5e7e0f6 --- /dev/null +++ b/src/copyright-license-agreement-poc/model/licensed-work-schedule-poc.cto @@ -0,0 +1,17 @@ +/* + * PROTOTYPE: a second document template, for agreements of several documents. + * + * Schedule 1 to the copyright licence, describing the licensed work. It is + * an ordinary, stateless document template: no `StateData` subtype and no + * logic, so it contributes nothing to the agreement's state index. + */ + +namespace poc.accordproject.licensedwork@0.1.0 + +import org.accordproject.templatedata@1.0.0.TemplateData + +concept LicensedWorkSchedule extends TemplateData { + o String title + o String format + o String description +} diff --git a/src/copyright-license-agreement-poc/model/model.cto b/src/copyright-license-agreement-poc/model/model.cto new file mode 100644 index 000000000..4d04eaf96 --- /dev/null +++ b/src/copyright-license-agreement-poc/model/model.cto @@ -0,0 +1,138 @@ +/* + * PROTOTYPE: migrating `copyright-license`'s nested `PaymentClause` onto + * the org.accordproject 1.0.0 namespaces (accordproject/models#200, with + * the composed clauses of accordproject/models#205). + * + * Compare with src/copyright-license/model/model.cto, which has: + * + * asset PaymentClause extends Clause { ... } + * asset TemplateModel extends Contract { + * ... licensee/licenseeState/licenseeEntityType/licenseeAddress ... + * ... licensor/licensorState/licensorEntityType/licensorAddress ... + * o PaymentClause paymentClause + * } + * + * Here: + * - There is no `@template` decorator. The template model is a + * concrete subtype of `templatedata@1.0.0.TemplateData`: + * `CopyrightLicenseData` below, carrying the template's variables + * directly. This template's models also hold the late payment + * clause's and the licensed work schedule's (late-payment-poc.cto and + * licensed-work-schedule-poc.cto, copies of those templates' models), + * because its logic uses their types, so package.json names the + * template model (`accordproject.templateModel`). + * - `PaymentTerms` is an inline clause: an ordinary nested concept, + * addressed as a subtree of the data at "paymentTerms" and written in + * this template's own grammar (`{{#clause paymentTerms}}`). A late + * payment clause may also be composed into a licence: an instance of + * the late-payment-poc template in the AgreementDocument's `clauses`, + * with its own data and state, of which this model declares nothing. + * - The four duplicated "licensee..." / "licensor..." string fields + * collapse to two party@1.0.0 `PartyRef` values: a portable embedded + * reference, not a `--> Party` relationship. `--> Party` + * relationships belong on the agreement's `AgreementParty`. + * - State follows the same shape as data. `CopyrightLicenseState` is + * the template's one concrete `templatedata@1.0.0.StateData` + * subtype; the inline payment clause's state is an ordinary nested + * concept at the same path as its data ("paymentTerms"). + * - The payment lifecycle lives in an obligation@1.0.0 + * `PaymentObligation`, which logic issues (`ObligationIssued`) and + * moves on (`ObligationTransition`), not in template state. Clause + * state holds only the facts logic derives the obligation's status + * from (`amountPaid`, `dueAt`), so no status is stored anywhere an + * obligation registry could disagree with it. + * - Amounts are money@1.0.0 `PreciseAmount`s, not money@0.3.0 + * `MonetaryAmount` doubles, so arithmetic is exact. + */ + +concerto version "^5.0.0" + +namespace poc.accordproject.copyrightlicense@0.1.0 + +import org.accordproject.templatedata@1.0.0.{TemplateData, StateData} +import org.accordproject.party@1.0.0.PartyRef +import org.accordproject.money@1.0.0.PreciseAmount +import org.accordproject.runtime@1.0.0.{Request, Response} +// What this template's logic issues and emits. +import org.accordproject.obligation@1.0.0.{PaymentObligation, ObligationIssued, ObligationTransition} + +/* Requesting a payment */ +transaction PaymentRequest extends Request { +} + +/* PayOut response: the amount still outstanding */ +transaction PayOut extends Response { + o PreciseAmount amount +} + +/* Recording a payment made by the licensee */ +transaction PaymentReceived extends Request { + o PreciseAmount amount +} + +/* PaymentReceived response */ +transaction PaymentReceipt extends Response { + o PreciseAmount outstanding +} + +/* + * An ordinary nested concept, not a `Clause` subclass and not a + * `TemplateData` subtype -- just a subtree of `CopyrightLicenseData`, + * addressed by TemplateMark at "paymentTerms". Was: + * asset PaymentClause extends Clause { ... } + */ +concept PaymentTerms { + o String amountText + o PreciseAmount amount + o String paymentProcedure +} + +/* + * The template model. This concept IS the renderable root -- there is + * no `@template` decorator and no envelope it's composed onto. Its + * properties are declared directly here, so the grammar roots at the + * data itself (`{{effectiveDate}}` resolves directly; no `{{#with + * data}}` wrapper is needed). + * + * `licensee` and `licensor` are `PartyRef` values -- portable embedded + * references, not relationships -- replacing eight ad hoc string fields + * (four per party) with two references to one shared representation. + */ +concept CopyrightLicenseData extends TemplateData { + o DateTime effectiveDate + + o PartyRef licensee + o PartyRef licensor + + o String territory + o String purposeDescription + o String workDescription + + o PaymentTerms paymentTerms +} + +/* + * The inline payment clause's state: an ordinary concept, not a + * `StateData` subtype, mirroring `PaymentTerms` not extending + * `TemplateData`. It records facts, not a status: logic derives the + * PaymentObligation's status from them (FULFILLED once `amountPaid` + * reaches the fee, DUE once `dueAt` is set, otherwise PENDING). + * + * `obligationId` is set by init(): the agreement id, document id and + * clause path, so it is unique wherever the obligation travels. + */ +concept PaymentTermsState { + o String obligationId + o PreciseAmount amountPaid + o DateTime dueAt optional +} + +/* + * The template's state. Like `CopyrightLicenseData`, it is found by its + * parent type (`StateData`) and carries no identifier: the runtime wraps + * it in an identified, revisioned runtime@1.0.0 `AgreementState`, under + * this instance's id in its `states`. + */ +concept CopyrightLicenseState extends StateData { + o PaymentTermsState paymentTerms +} diff --git a/src/copyright-license-agreement-poc/package.json b/src/copyright-license-agreement-poc/package.json new file mode 100644 index 000000000..e6500962c --- /dev/null +++ b/src/copyright-license-agreement-poc/package.json @@ -0,0 +1,30 @@ +{ + "name": "copyright-license-agreement-poc", + "displayName": "Copyright License (agreement@1.0.0 migration prototype)", + "version": "0.1.0", + "description": "Prototype migration of copyright-license's nested PaymentClause onto the org.accordproject 1.0.0 namespaces (accordproject/models#200 and #205): an agreement of template instances, with a late payment clause (late-payment-poc) composed into the licence and a licensed work schedule (licensed-work-schedule-poc) alongside it, and logic written with template-engine's defineLogic API.", + "author": "Accord Project", + "license": "Apache-2.0", + "accordproject": { + "runtime": "typescript", + "template": "contract", + "cicero": "^2.0.0", + "templateModel": "poc.accordproject.copyrightlicense@0.1.0.CopyrightLicenseData" + }, + "keywords": [ + "clause", + "copyright", + "license", + "agreement", + "prototype", + "agreement-1.0" + ], + "scripts": { + "test": "vitest run", + "compile": "template-engine-codegen --offline" + }, + "tags": [ + "intellectual-property", + "prototype" + ] +} diff --git a/src/copyright-license-agreement-poc/request.json b/src/copyright-license-agreement-poc/request.json new file mode 100644 index 000000000..d55aff89a --- /dev/null +++ b/src/copyright-license-agreement-poc/request.json @@ -0,0 +1,4 @@ +{ + "$class": "poc.accordproject.copyrightlicense@0.1.0.PaymentRequest", + "$timestamp": "2018-01-01T00:00:00Z" +} diff --git a/src/copyright-license-agreement-poc/sample.json b/src/copyright-license-agreement-poc/sample.json new file mode 100644 index 000000000..ab6c23006 --- /dev/null +++ b/src/copyright-license-agreement-poc/sample.json @@ -0,0 +1,34 @@ +{ + "$class": "poc.accordproject.copyrightlicense@0.1.0.CopyrightLicenseData", + "effectiveDate": "2018-01-01T01:00:00.000+01:00", + "licensee": { + "$class": "org.accordproject.party@1.0.0.PartyRef", + "id": "me", + "scheme": "org.accordproject.party@1.0.0.Party", + "label": "Me" + }, + "licensor": { + "$class": "org.accordproject.party@1.0.0.PartyRef", + "id": "myself", + "scheme": "org.accordproject.party@1.0.0.Party", + "label": "Myself" + }, + "territory": "United States", + "purposeDescription": "stuff", + "workDescription": "other stuff", + "paymentTerms": { + "$class": "poc.accordproject.copyrightlicense@0.1.0.PaymentTerms", + "amountText": "one hundred US Dollars", + "amount": { + "$class": "org.accordproject.money@1.0.0.PreciseAmount", + "unscaledValue": "10000", + "unit": { + "$class": "org.accordproject.money@1.0.0.Unit", + "code": "USD", + "scheme": "iso4217", + "scale": 2 + } + }, + "paymentProcedure": "bank transfer" + } +} diff --git a/src/copyright-license-agreement-poc/test/agreement.test.ts b/src/copyright-license-agreement-poc/test/agreement.test.ts new file mode 100644 index 000000000..bbfa4388d --- /dev/null +++ b/src/copyright-license-agreement-poc/test/agreement.test.ts @@ -0,0 +1,278 @@ +// @ts-nocheck - test fixtures are plain JSON +// An agreement of two documents, run by template-engine's AgreementProcessor +// over the three templates, whose logic it compiles and loads as it would +// from their archives. The licence has an inline payment clause in its data +// and a late payment clause composed into it; the licensed work schedule is +// stateless. +import { + Agreement, + AgreementDocument, + AgreementParty, + Clause, + ObligationIssued, + Party, + PaymentReceived, + PaymentReminder, + PaymentRequest, +} from '../logic/generated/types'; +import { amount, at, loadAgreementProcessor, sample, templateReference } from './support'; + +const EFFECTIVE_AT = '2018-01-01T00:00:00.000Z'; + +let processor; +beforeAll(async () => { + processor = await loadAgreementProcessor(); +}, 60_000); + +const document = (documentId: string, templateId, clauses?) => AgreementDocument.create({ + documentId, + template: templateReference(templateId), + data: sample(templateId), + ...(clauses ? { clauses } : {}), +}); + +function licenceAgreement({ withLatePaymentClause = true } = {}) { + const latePaymentClause = Clause.create({ + clauseId: 'licence/late-payment', + template: templateReference('late-payment-poc'), + data: sample('late-payment-poc'), + }); + const documents = [ + document('licence', 'copyright-license-agreement-poc', withLatePaymentClause ? { latePayment: latePaymentClause } : undefined), + document('schedule-1', 'licensed-work-schedule-poc'), + ]; + const party = (id: string, role: string) => AgreementParty.create({ party: Party.ref(id), role }); + const agreement = Agreement.create({ + agreementId: 'licence-001', + documents: documents.map(d => AgreementDocument.ref(d.documentId)), + parties: [party('me', 'licensee'), party('myself', 'licensor')], + }); + return { agreement, documents }; +} + +const paymentRequest = (seconds: number) => PaymentRequest.create({ $timestamp: at(seconds) }); +const paymentReceived = (unscaledValue: string, seconds: number) => + PaymentReceived.create({ $timestamp: at(seconds), amount: amount(unscaledValue) }); + +describe('an agreement as one tree of template instances', () => { + let agreement; + let documents; + + beforeEach(() => { + ({ agreement, documents } = licenceAgreement()); + }); + + const start = () => processor.initialise(agreement, documents, EFFECTIVE_AT); + const trigger = (state, documentId, request) => processor.execute({ agreement, documents, state }, documentId, request); + + it('holds two documents, one with an inline and a composed clause, as valid instances', () => { + expect(() => processor.validate(agreement)).not.toThrow(); + for (const d of documents) { + expect(() => processor.validate(d)).not.toThrow(); + } + const [licence] = documents; + // The inline clause is a subtree of the licence's own data... + expect(licence.data.paymentTerms.amountText).toBe('one hundred US Dollars'); + // ...while the composed clause carries its own template and data. + expect(licence.clauses.latePayment.template.templateId).toBe('late-payment-poc'); + expect(licence.data).not.toHaveProperty('latePayment'); + }); + + it('initialises one state entry per stateful instance, and none for the stateless schedule', async () => { + const { state, events } = await start(); + + expect(Object.keys(state.states)).toEqual(['licence', 'licence/late-payment']); + expect(state.states['licence'].paymentTerms.amountPaid.unscaledValue).toBe('0'); + expect(state.states['licence/late-payment']).toMatchObject({ remindersSent: 0, discharged: false }); + expect(state.revision).toBe(0); + expect(events.map(e => e.$class)).toEqual([ObligationIssued.$class]); + expect(() => processor.validate(state)).not.toThrow(); + }); + + it('lets the licence read its cousin, the schedule, when it issues the obligation', async () => { + const { events } = await start(); + + expect(events[0].obligation.description).toBe('Me should pay the licence fee for "Other Stuff" to Myself'); + expect(events[0].obligation.agreement).toMatchObject({ agreementId: 'licence-001', documentId: 'licence', clausePath: 'paymentTerms' }); + }); + + it('delegates a chase to the composed clause, committing only the clause\'s new state', async () => { + const { state: initial } = await start(); + const { state: requested } = await trigger(initial, 'licence', paymentRequest(1)); + + const chased = await trigger(requested, 'licence', paymentRequest(2)); + + expect(chased.state.revision).toBe(2); + expect(chased.state.states['licence']).toEqual(requested.states['licence']); + expect(chased.state.states['licence/late-payment'].remindersSent).toBe(1); + expect(chased.events).toEqual([expect.objectContaining({ + $class: PaymentReminder.$class, reminderNumber: 1, gracePeriodDays: 14, + })]); + }); + + it('commits the licence and its composed clause together when payment in full discharges the clause', async () => { + const { state: initial } = await start(); + const { state: requested } = await trigger(initial, 'licence', paymentRequest(1)); + + const paid = await trigger(requested, 'licence', paymentReceived('10000', 2)); + + expect(paid.state.revision).toBe(2); + expect(paid.state.states['licence'].paymentTerms.amountPaid.unscaledValue).toBe('10000'); + expect(paid.state.states['licence/late-payment'].discharged).toBe(true); + expect(paid.events).toEqual([expect.objectContaining({ fromStatus: 'DUE', toStatus: 'FULFILLED' })]); + expect(() => processor.validate(paid.state)).not.toThrow(); + }); + + it('commits nothing when the licence logic rejects a request', async () => { + const { state: initial } = await start(); + const before = structuredClone(initial); + + await expect(trigger(initial, 'licence', paymentReceived('10001', 1))) + .rejects.toThrow('would exceed the licence fee'); + expect(initial).toEqual(before); + }); + + it('has nothing to trigger in the stateless schedule', async () => { + const { state } = await start(); + + await expect(trigger(state, 'schedule-1', paymentRequest(1))) + .rejects.toThrow("Instance 'schedule-1' has no logic to trigger."); + }); + + it('runs the same licence logic unchanged when no late payment clause is composed into it', async () => { + ({ agreement, documents } = licenceAgreement({ withLatePaymentClause: false })); + const { state: initial } = await start(); + const { state: requested } = await trigger(initial, 'licence', paymentRequest(1)); + + const chased = await trigger(requested, 'licence', paymentRequest(2)); + const paid = await trigger(chased.state, 'licence', paymentReceived('10000', 3)); + + expect(Object.keys(initial.states)).toEqual(['licence']); + expect(chased.events).toEqual([]); + expect(paid.state.states['licence'].paymentTerms.amountPaid.unscaledValue).toBe('10000'); + }); + + it('is deterministic: replaying the same requests reproduces every outcome exactly', async () => { + const replay = async () => { + const outcomes = [await start()]; + for (const request of [paymentRequest(1), paymentRequest(2), paymentReceived('4000', 3), paymentReceived('6000', 4)]) { + outcomes.push(await trigger(outcomes.at(-1).state, 'licence', request)); + } + return outcomes; + }; + + expect(await replay()).toEqual(await replay()); + }); + + // execute() is a function from JSON to JSON, so a stateless function + // (e.g. one serverless invocation per request) can host the agreement: + // load the state, run, then commit with a conditional write on the + // revision, putting events in an outbox in the same write. + describe('as a stateless function over a store', () => { + class ConflictError extends Error {} + + // A stand-in for a store with conditional writes, holding JSON only. + class Store { + private state: string; + readonly outbox: object[] = []; + private readonly results = new Map(); + + constructor(state: object) { + this.state = JSON.stringify(state); + } + + load() { + return JSON.parse(this.state); + } + + result(requestId: string) { + return this.results.has(requestId) ? JSON.parse(this.results.get(requestId)) : undefined; + } + + commit(expectedRevision: number, requestId: string, outcome) { + if (this.load().revision !== expectedRevision) { + throw new ConflictError(`Revision ${expectedRevision} is stale.`); + } + this.state = JSON.stringify(outcome.state); + this.outbox.push(...outcome.events); + this.results.set(requestId, JSON.stringify(outcome.result)); + } + } + + // One invocation. A redelivered request returns its stored result; + // a lost conditional write is retried from the new state, which is + // safe because logic is deterministic and wrote nothing elsewhere. + async function handle(store: Store, requestId: string, documentId: string, request, { onLoad = () => {} } = {}) { + for (;;) { + const stored = store.result(requestId); + if (stored) { + return stored; + } + const state = store.load(); + await onLoad(); + const outcome = await processor.execute({ agreement, documents, state }, documentId, request); + try { + store.commit(state.revision, requestId, outcome); + return outcome.result; + } catch (e) { + if (!(e instanceof ConflictError)) { + throw e; + } + } + } + } + + it('retries a request whose conditional write lost a race, from the state that won', async () => { + const store = new Store((await start()).state); + await handle(store, 'r1', 'licence', paymentRequest(1)); + + // r3, paying in full, commits while r2 is between loading and committing. + let raced = false; + const r2 = handle(store, 'r2', 'licence', paymentReceived('4000', 2), { + onLoad: async () => { + if (!raced) { + raced = true; + await handle(store, 'r3', 'licence', paymentReceived('10000', 3)); + } + }, + }); + + // Re-run from the state r3 committed, r2 finds the fee already paid, + // and r2's first run left nothing behind. + await expect(r2).rejects.toThrow('already been paid in full'); + expect(store.load().revision).toBe(2); + expect(store.load().states['licence/late-payment'].discharged).toBe(true); + expect(store.outbox.map(e => e.toStatus)).toEqual(['DUE', 'FULFILLED']); + }); + + it('commits a retried request once, on top of the request that won', async () => { + const store = new Store((await start()).state); + + let raced = false; + const receipt = await handle(store, 'r2', 'licence', paymentReceived('4000', 2), { + onLoad: async () => { + if (!raced) { + raced = true; + await handle(store, 'r1', 'licence', paymentRequest(1)); + } + }, + }); + + expect(receipt.outstanding.unscaledValue).toBe('6000'); + expect(store.load().revision).toBe(2); + expect(store.load().states['licence'].paymentTerms).toMatchObject({ dueAt: at(1), amountPaid: amount('4000') }); + expect(store.outbox.map(e => e.toStatus)).toEqual(['DUE']); + }); + + it('returns the stored result for a redelivered request, without running it again', async () => { + const store = new Store((await start()).state); + + const first = await handle(store, 'r1', 'licence', paymentReceived('4000', 1)); + const again = await handle(store, 'r1', 'licence', paymentReceived('4000', 1)); + + expect(again).toEqual(first); + expect(store.load().revision).toBe(1); + expect(store.load().states['licence'].paymentTerms.amountPaid).toEqual(amount('4000')); + }); + }); +}); diff --git a/src/copyright-license-agreement-poc/test/support.ts b/src/copyright-license-agreement-poc/test/support.ts new file mode 100644 index 000000000..6cc3a205a --- /dev/null +++ b/src/copyright-license-agreement-poc/test/support.ts @@ -0,0 +1,65 @@ +// Fixtures shared by this workspace's tests. +import { createHash } from 'crypto'; +import { readFileSync, readdirSync } from 'fs'; +import { join } from 'path'; +import { Template } from '@accordproject/cicero-core'; +import { AgreementProcessor } from '@accordproject/template-engine'; +import { ContentHash, HashAlgorithm, PreciseAmount, TemplateReference, Unit } from '../logic/generated/types'; +import { HashAlgorithmType, HashEncoding } from '../logic/generated/org.accordproject.crypto@1.0.0'; + +export const ROOT = join(__dirname, '..'); + +/** The templates an agreement of a licence is made of, by templateId (each one's package name). */ +export const TEMPLATES = { + 'copyright-license-agreement-poc': '.', + 'late-payment-poc': '../late-payment-poc', + 'licensed-work-schedule-poc': '../licensed-work-schedule-poc', +} as const; + +export type TemplateId = keyof typeof TEMPLATES; + +export const read = (...path: string[]) => readFileSync(join(ROOT, ...path), 'utf8'); +export const sample = (templateId: TemplateId) => JSON.parse(read(TEMPLATES[templateId], 'sample.json')); + +/** A template, loaded as the engine loads it. */ +export const loadTemplate = (templateId: TemplateId): Promise