@calimero-network/mero-js 22.3.0 → 22.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/index.browser.mjs +2 -2
- package/dist/index.browser.mjs.map +4 -4
- package/dist/index.cjs +266 -17
- package/dist/index.cjs.map +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +266 -17
- package/dist/index.mjs.map +4 -4
- package/dist/relay/index.d.ts +1 -1
- package/dist/relay/relay-client.d.ts +76 -0
- package/dist/relay/relay-client.js +77 -0
- package/dist/warrant/creation-warrant.d.ts +145 -0
- package/dist/warrant/creation-warrant.js +189 -0
- package/dist/warrant/index.d.ts +2 -0
- package/dist/warrant/index.js +1 -0
- package/dist/warrant/warrant.d.ts +5 -0
- package/dist/warrant/warrant.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -140,6 +140,11 @@ and a node too old to report a role needs an admin of the namespace to grant it
|
|
|
140
140
|
which folds that rule in, and otherwise throws saying which of those is missing —
|
|
141
141
|
naming the account that needs the grant when that is the fix.
|
|
142
142
|
|
|
143
|
+
A keyholder can also **create** a context through a relay:
|
|
144
|
+
`relay.createContext({ groupId, applicationId, initArgs })` signs a creation
|
|
145
|
+
warrant (checked against *your* `CAN_CREATE_CONTEXT`, not the relay's) and
|
|
146
|
+
returns the new `contextId`.
|
|
147
|
+
|
|
143
148
|
See the [cloud client](https://calimero-network.github.io/mero-js/reference/cloud/),
|
|
144
149
|
[relay client](https://calimero-network.github.io/mero-js/reference/relay/) and
|
|
145
150
|
[connectCloud](https://calimero-network.github.io/mero-js/reference/connect-cloud/)
|