@calimero-network/mero-js 29.8.0 → 29.8.1
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/dist/cloud-v2/client.d.ts +9 -2
- package/dist/cloud-v2/client.js +11 -3
- package/dist/index.browser.mjs +1 -1
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +11 -3
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3101,9 +3101,17 @@ var CalimeroClient = class _CalimeroClient {
|
|
|
3101
3101
|
async updateTeam(org, team, update) {
|
|
3102
3102
|
await this.post(`orgs/${seg(org)}/teams/${seg(team)}`, update);
|
|
3103
3103
|
}
|
|
3104
|
-
/**
|
|
3105
|
-
|
|
3106
|
-
|
|
3104
|
+
/**
|
|
3105
|
+
* Delete a team, the teams below it and their apps. When any of those
|
|
3106
|
+
* teams holds apps the node asks for the caller's passkey (`412
|
|
3107
|
+
* CONFIRM_REQUIRED`, its details listing the `apps` that go, which the
|
|
3108
|
+
* approval names; an app added after it is refused), which `passkey` gives.
|
|
3109
|
+
* Without one that `412` reaches the caller as {@link ConfirmRequired}. A
|
|
3110
|
+
* team with no apps is deleted without a passkey.
|
|
3111
|
+
*/
|
|
3112
|
+
async deleteTeam(org, team, passkey) {
|
|
3113
|
+
const path = `orgs/${seg(org)}/teams/${seg(team)}`;
|
|
3114
|
+
await (passkey ? this.deleteConfirmed(path, passkey) : this.delete(path));
|
|
3107
3115
|
}
|
|
3108
3116
|
/**
|
|
3109
3117
|
* Add a member to a team, or change their row: role, lead, capability bits.
|