@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.mjs CHANGED
@@ -3141,6 +3141,20 @@ var CalimeroClient = class _CalimeroClient {
3141
3141
  async setCapabilities(org, capabilities, passkey, at = {}) {
3142
3142
  await this.postConfirmed(`orgs/${seg(org)}/capabilities`, { capabilities, ...at }, passkey);
3143
3143
  }
3144
+ /**
3145
+ * Give a member every app added to the organization from now on, or stop
3146
+ * it (`allApps: false`), core `POST /orgs/{org}/all-apps`: the owner's or
3147
+ * an admin's, approved with `passkey` (`__set_all_apps { account, allApps
3148
+ * }`). Each app team made after gives them a row, so in an organization
3149
+ * that keeps its apps apart a new app reaches them though nobody named
3150
+ * them; apps already there are untouched. {@link invite} with
3151
+ * `{ allApps: true }` gives it to whoever redeems the invite. A member
3152
+ * below admin is refused (`403`), someone outside gets {@link NotFound};
3153
+ * a node from before the route answers a bare `404`.
3154
+ */
3155
+ async setAllApps(org, account, allApps, passkey) {
3156
+ await this.postConfirmed(`orgs/${seg(org)}/all-apps`, { account, allApps }, passkey);
3157
+ }
3144
3158
  /**
3145
3159
  * Set the capability bits everyone in `team` holds there on top of their
3146
3160
  * own, unless their row sets its own (`POST /orgs/{org}/capabilities` with