@calimero-network/mero-js 29.13.0 → 29.14.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/dist/index.cjs CHANGED
@@ -3274,6 +3274,20 @@ var CalimeroClient = class _CalimeroClient {
3274
3274
  async setCapabilities(org, capabilities, passkey, at = {}) {
3275
3275
  await this.postConfirmed(`orgs/${seg(org)}/capabilities`, { capabilities, ...at }, passkey);
3276
3276
  }
3277
+ /**
3278
+ * Give a member every app added to the organization from now on, or stop
3279
+ * it (`allApps: false`), core `POST /orgs/{org}/all-apps`: the owner's or
3280
+ * an admin's, approved with `passkey` (`__set_all_apps { account, allApps
3281
+ * }`). Each app team made after gives them a row, so in an organization
3282
+ * that keeps its apps apart a new app reaches them though nobody named
3283
+ * them; apps already there are untouched. {@link invite} with
3284
+ * `{ allApps: true }` gives it to whoever redeems the invite. A member
3285
+ * below admin is refused (`403`), someone outside gets {@link NotFound};
3286
+ * a node from before the route answers a bare `404`.
3287
+ */
3288
+ async setAllApps(org, account, allApps, passkey) {
3289
+ await this.postConfirmed(`orgs/${seg(org)}/all-apps`, { account, allApps }, passkey);
3290
+ }
3277
3291
  /**
3278
3292
  * Set the capability bits everyone in `team` holds there on top of their
3279
3293
  * own, unless their row sets its own (`POST /orgs/{org}/capabilities` with