@calimero-network/mero-js 29.9.0 → 29.10.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/cloud-v2/client.d.ts +21 -1
- package/dist/cloud-v2/client.js +2 -0
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
|
@@ -175,6 +175,20 @@ export interface ScopeApp {
|
|
|
175
175
|
* instance of the package here; `[]`: none, for a fresh install).
|
|
176
176
|
*/
|
|
177
177
|
instances?: string[];
|
|
178
|
+
/**
|
|
179
|
+
* Open (`everyone`) or close (`invite`) this package's app team in this
|
|
180
|
+
* step, and no other (absent: as `shared` says). Naming it on any package
|
|
181
|
+
* leaves an absent `shared` meaning "no other team"; `shared: true` with an
|
|
182
|
+
* `everyone` is refused.
|
|
183
|
+
*/
|
|
184
|
+
join?: 'everyone' | 'invite';
|
|
185
|
+
/**
|
|
186
|
+
* Closing (`join: 'invite'`) only: who keeps the app besides the team's
|
|
187
|
+
* leads, members of the organization (at most 1024). Absent: everyone who
|
|
188
|
+
* reaches it now keeps it. Everyone else loses it, with their rows in the
|
|
189
|
+
* teams below it (its private channels); opening the team again lets them back.
|
|
190
|
+
*/
|
|
191
|
+
keep?: string[];
|
|
178
192
|
}
|
|
179
193
|
/** What {@link CalimeroClient.scopeApps} asks for; every field absent takes the node's default. */
|
|
180
194
|
export interface ScopeAppsOptions {
|
|
@@ -191,8 +205,12 @@ export interface ScopedAppTeam {
|
|
|
191
205
|
created: boolean;
|
|
192
206
|
/** The instances moved onto it. */
|
|
193
207
|
apps: string[];
|
|
194
|
-
/** How many rows were added for people who reached those instances. */
|
|
208
|
+
/** How many rows were added for people who reached those instances (or kept on a close). */
|
|
195
209
|
added: number;
|
|
210
|
+
/** The team's `join` after the step (absent from nodes before per-app close). */
|
|
211
|
+
join?: 'everyone' | 'invite';
|
|
212
|
+
/** How many people lost the app in this step (a close with `keep`; absent from nodes before per-app close). */
|
|
213
|
+
dropped?: number;
|
|
196
214
|
}
|
|
197
215
|
/** `POST /orgs/{org}/app-teams`: the organization's mode after, and each package's team. */
|
|
198
216
|
export interface ScopeAppsResult {
|
|
@@ -1392,6 +1410,8 @@ export declare class CalimeroClient {
|
|
|
1392
1410
|
* Give apps their own access lists in one step (owner or admin): find or
|
|
1393
1411
|
* make each package's app team, add everyone who reaches its instances now,
|
|
1394
1412
|
* and move those instances onto it; with `shared`, close every app team.
|
|
1413
|
+
* A package's own `join` opens or closes its team alone, a close keeping
|
|
1414
|
+
* everyone who reaches it or only the leads and `keep`.
|
|
1395
1415
|
* Idempotent per package. Approved with the caller's `passkey`
|
|
1396
1416
|
* (`__scope_apps { apps, shared }`); a refusal is `400 REJECTED` with the
|
|
1397
1417
|
* node's reason. For a fresh standalone install pass
|
package/dist/cloud-v2/client.js
CHANGED
|
@@ -1468,6 +1468,8 @@ export class CalimeroClient {
|
|
|
1468
1468
|
* Give apps their own access lists in one step (owner or admin): find or
|
|
1469
1469
|
* make each package's app team, add everyone who reaches its instances now,
|
|
1470
1470
|
* and move those instances onto it; with `shared`, close every app team.
|
|
1471
|
+
* A package's own `join` opens or closes its team alone, a close keeping
|
|
1472
|
+
* everyone who reaches it or only the leads and `keep`.
|
|
1471
1473
|
* Idempotent per package. Approved with the caller's `passkey`
|
|
1472
1474
|
* (`__scope_apps { apps, shared }`); a refusal is `400 REJECTED` with the
|
|
1473
1475
|
* node's reason. For a fresh standalone install pass
|