@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/index.cjs CHANGED
@@ -3234,9 +3234,17 @@ var CalimeroClient = class _CalimeroClient {
3234
3234
  async updateTeam(org, team, update) {
3235
3235
  await this.post(`orgs/${seg(org)}/teams/${seg(team)}`, update);
3236
3236
  }
3237
- /** Delete a team, the teams below it and their apps. */
3238
- async deleteTeam(org, team) {
3239
- await this.delete(`orgs/${seg(org)}/teams/${seg(team)}`);
3237
+ /**
3238
+ * Delete a team, the teams below it and their apps. When any of those
3239
+ * teams holds apps the node asks for the caller's passkey (`412
3240
+ * CONFIRM_REQUIRED`, its details listing the `apps` that go, which the
3241
+ * approval names; an app added after it is refused), which `passkey` gives.
3242
+ * Without one that `412` reaches the caller as {@link ConfirmRequired}. A
3243
+ * team with no apps is deleted without a passkey.
3244
+ */
3245
+ async deleteTeam(org, team, passkey) {
3246
+ const path = `orgs/${seg(org)}/teams/${seg(team)}`;
3247
+ await (passkey ? this.deleteConfirmed(path, passkey) : this.delete(path));
3240
3248
  }
3241
3249
  /**
3242
3250
  * Add a member to a team, or change their row: role, lead, capability bits.