openvibers/openvibe.billing Commits
openvibe-contracts v0.8.0 (billing capabilities released); CI runs openvibe-contracts-check --service billing
Changes
@@@ -14,6 +14,4 @@ jobs:cache: npm- run: npm ci --no-audit --no-fund- run: npm test-- # openvibe-contracts-check --service billing is added once the billing manifest and the-- # billing.* capabilities (docs/capabilities-proposal/) ship in an openvibe-contracts release;-- # v0.5.1 still carries the placeholder manifest (range ^0.1.0, no capabilities).++ - run: npx openvibe-contracts-check --service billing@@@ -12,7 +12,7 @@"better-sqlite3": "^11.10.0","dotenv": "^16.4.7","express": "^4.21.2",-- "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.5.1"++ "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.8.0"},"engines": {"node": ">=22.0.0"@@@ -860,9 +860,9 @@}},"node_modules/openvibe-contracts": {-- "version": "0.5.1",-- "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.5.1",-- "integrity": "sha512-czQpWKEo8cY56Crj5l5Mv8r5vlIIj0vn/HMxv0OlIu5YTuSSlpvXyayYEfn3GQ5orDhaMIhOUlzmQMxUtWXaLA==",++ "version": "0.8.0",++ "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.8.0",++ "integrity": "sha512-2Msdb+k+fJZf9kQTPS2jdY8+o9FhL9tBuu3FzArHs3JcBcc06ReHpOi2sgnSBgQcSvZSaSsWT2YVbmhjnEplqQ==","license": "AGPL-3.0-only","dependencies": {"ajv": "^8.17.1",@@@ -18,7 +18,7 @@"better-sqlite3": "^11.10.0","dotenv": "^16.4.7","express": "^4.21.2",-- "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.5.1"++ "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.8.0"},"engines": {"node": ">=22.0.0"@@@ -5,10 +5,9 @@* from OpenVibe.Network for audience 'openvibe.billing'; the capability is checked here against* the token's `cap` claim.*-- * The billing.* capabilities are proposed (docs/capabilities-proposal/) and not yet in an-- * openvibe-contracts release, so contracts' capabilities.check() would answer capability.unknown.-- * Until they ship, the grant is matched locally with contracts' own grants(): an exact id, or a-- * trailing ".*" family grant ("billing.*", "billing.cashout.*").++ * The billing.* capabilities ship in openvibe-contracts v0.8.0. The grant is matched with++ * contracts' own grants(): an exact id, or a trailing ".*" family grant ("billing.*",++ * "billing.cashout.*").*/const { serviceAuth, capabilities, http, validate } = require('openvibe-contracts');
@@ -14,6 +14,4 @@ jobs:
@@ -14,6 +14,4 @@ jobs:
cache: npm
cache: npm
- run: npm ci --no-audit --no-fund
- run: npm ci --no-audit --no-fund
- run: npm test
- run: npm test
- # openvibe-contracts-check --service billing is added once the billing manifest and the
- # billing.* capabilities (docs/capabilities-proposal/) ship in an openvibe-contracts release;
- # v0.5.1 still carries the placeholder manifest (range ^0.1.0, no capabilities).
+ - run: npx openvibe-contracts-check --service billing
@@ -12,7 +12,7 @@
@@ -12,7 +12,7 @@
"better-sqlite3": "^11.10.0",
"better-sqlite3": "^11.10.0",
"dotenv": "^16.4.7",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"express": "^4.21.2",
- "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.5.1"
+ "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.8.0"
},
},
"engines": {
"engines": {
"node": ">=22.0.0"
"node": ">=22.0.0"
@@ -860,9 +860,9 @@
@@ -860,9 +860,9 @@
}
}
},
},
"node_modules/openvibe-contracts": {
"node_modules/openvibe-contracts": {
- "version": "0.5.1",
- "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.5.1",
- "integrity": "sha512-czQpWKEo8cY56Crj5l5Mv8r5vlIIj0vn/HMxv0OlIu5YTuSSlpvXyayYEfn3GQ5orDhaMIhOUlzmQMxUtWXaLA==",
+ "version": "0.8.0",
+ "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.8.0",
+ "integrity": "sha512-2Msdb+k+fJZf9kQTPS2jdY8+o9FhL9tBuu3FzArHs3JcBcc06ReHpOi2sgnSBgQcSvZSaSsWT2YVbmhjnEplqQ==",
"license": "AGPL-3.0-only",
"license": "AGPL-3.0-only",
"dependencies": {
"dependencies": {
"ajv": "^8.17.1",
"ajv": "^8.17.1",
@@ -18,7 +18,7 @@
@@ -18,7 +18,7 @@
"better-sqlite3": "^11.10.0",
"better-sqlite3": "^11.10.0",
"dotenv": "^16.4.7",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"express": "^4.21.2",
- "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.5.1"
+ "openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.8.0"
},
},
"engines": {
"engines": {
"node": ">=22.0.0"
"node": ">=22.0.0"
@@ -5,10 +5,9 @@
@@ -5,10 +5,9 @@
* from OpenVibe.Network for audience 'openvibe.billing'; the capability is checked here against
* from OpenVibe.Network for audience 'openvibe.billing'; the capability is checked here against
* the token's `cap` claim.
* the token's `cap` claim.
*
*
- * The billing.* capabilities are proposed (docs/capabilities-proposal/) and not yet in an
- * openvibe-contracts release, so contracts' capabilities.check() would answer capability.unknown.
- * Until they ship, the grant is matched locally with contracts' own grants(): an exact id, or a
- * trailing ".*" family grant ("billing.*", "billing.cashout.*").
+ * The billing.* capabilities ship in openvibe-contracts v0.8.0. The grant is matched with
+ * contracts' own grants(): an exact id, or a trailing ".*" family grant ("billing.*",
+ * "billing.cashout.*").
*/
*/
const { serviceAuth, capabilities, http, validate } = require('openvibe-contracts');
const { serviceAuth, capabilities, http, validate } = require('openvibe-contracts');