openvibers/openvibe.network Commits
Network: OpenVibe.Quest may grant inventory items (inventory.item.grant on openvibe.inventory) — the six of Live's items Live names it a grantor of, as quest rewards (#103)
Changes
@@@ -39,6 +39,9 @@ const DEFAULT_GRANTS = [['inventory', 'events.subscription.manage', 'openvibe.events', []],...['inventory.item.read', 'inventory.item.list', 'inventory.equip.manage', 'inventory.item.grant', 'inventory.item.consume', 'inventory.definition.manage'].map((cap) => ['live', cap, 'openvibe.inventory', []]),++ // OpenVibe.Quest gives six of Live's items as quest rewards: Live names Quest a grantor of them (ADR-054 §3), so++ // Quest grants them itself (origin earned, the completion id as the key) and nothing else.++ ['quest', 'inventory.item.grant', 'openvibe.inventory', []],['live', 'network.coins.debit', SELF_AUDIENCE, ['live']],['live', 'network.notifications.push', SELF_AUDIENCE, ['live']],// User modules: each service reads and writes the namespaces it owns (openvibe-contracts manifests/namespaces).
@@ -39,6 +39,9 @@ const DEFAULT_GRANTS = [
@@ -39,6 +39,9 @@ const DEFAULT_GRANTS = [
['inventory', 'events.subscription.manage', 'openvibe.events', []],
['inventory', 'events.subscription.manage', 'openvibe.events', []],
...['inventory.item.read', 'inventory.item.list', 'inventory.equip.manage', 'inventory.item.grant', 'inventory.item.consume', 'inventory.definition.manage']
...['inventory.item.read', 'inventory.item.list', 'inventory.equip.manage', 'inventory.item.grant', 'inventory.item.consume', 'inventory.definition.manage']
.map((cap) => ['live', cap, 'openvibe.inventory', []]),
.map((cap) => ['live', cap, 'openvibe.inventory', []]),
+ // OpenVibe.Quest gives six of Live's items as quest rewards: Live names Quest a grantor of them (ADR-054 §3), so
+ // Quest grants them itself (origin earned, the completion id as the key) and nothing else.
+ ['quest', 'inventory.item.grant', 'openvibe.inventory', []],
['live', 'network.coins.debit', SELF_AUDIENCE, ['live']],
['live', 'network.coins.debit', SELF_AUDIENCE, ['live']],
['live', 'network.notifications.push', SELF_AUDIENCE, ['live']],
['live', 'network.notifications.push', SELF_AUDIENCE, ['live']],
// User modules: each service reads and writes the namespaces it owns (openvibe-contracts manifests/namespaces).
// User modules: each service reads and writes the namespaces it owns (openvibe-contracts manifests/namespaces).