@calimero-network/mero-js 29.11.0 → 29.12.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/README.md +1 -1
- package/dist/cloud-v2/client.d.ts +38 -2
- package/dist/cloud-v2/client.js +16 -2
- package/dist/cloud-v2/index.d.ts +1 -1
- package/dist/index.browser.mjs +5 -5
- package/dist/index.browser.mjs.map +3 -3
- package/dist/index.cjs +18 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +18 -2
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3005,6 +3005,21 @@ var CalimeroClient = class _CalimeroClient {
|
|
|
3005
3005
|
getOrg(org) {
|
|
3006
3006
|
return this.get(`orgs/${seg(org)}`);
|
|
3007
3007
|
}
|
|
3008
|
+
/**
|
|
3009
|
+
* Each member's lockout risk (`GET /orgs/{org}/members?detail=security`),
|
|
3010
|
+
* for the organization's owner and admins: name, role, teams, passkeys held
|
|
3011
|
+
* (to `'3+'`), recovery code set, last active UTC day and live sessions.
|
|
3012
|
+
* A member below admin is refused (`403 FORBIDDEN`), someone outside the
|
|
3013
|
+
* organization gets {@link NotFound}; the admin's own session on the
|
|
3014
|
+
* cluster's origin only, never an API key or a package-bound session. A
|
|
3015
|
+
* node before core #4902 has no such route (a bare `404`).
|
|
3016
|
+
*/
|
|
3017
|
+
async orgMembersSecurity(org) {
|
|
3018
|
+
const { members } = await this.get(
|
|
3019
|
+
`orgs/${seg(org)}/members?detail=security`
|
|
3020
|
+
);
|
|
3021
|
+
return members;
|
|
3022
|
+
}
|
|
3008
3023
|
/**
|
|
3009
3024
|
* Delete an organization with its teams, invites and apps (its owner only).
|
|
3010
3025
|
* The node asks for the owner's passkey (`412 CONFIRM_REQUIRED`), which `passkey` gives.
|
|
@@ -3427,8 +3442,9 @@ var CalimeroClient = class _CalimeroClient {
|
|
|
3427
3442
|
}
|
|
3428
3443
|
/**
|
|
3429
3444
|
* The organizations with instances created from deployment `id`, for its
|
|
3430
|
-
* managers: each one's id, name, instance count, apps and releases,
|
|
3431
|
-
*
|
|
3445
|
+
* managers: each one's id, name, instance count, apps and releases, first
|
|
3446
|
+
* instance, and (core #4902) how many members it has and how many were
|
|
3447
|
+
* active in 30 days. Never who the members are, teams or app data.
|
|
3432
3448
|
*/
|
|
3433
3449
|
deploymentOrgs(id) {
|
|
3434
3450
|
return this.get(`deployments/${seg(id)}/orgs`);
|