@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.mjs
CHANGED
|
@@ -2872,6 +2872,21 @@ var CalimeroClient = class _CalimeroClient {
|
|
|
2872
2872
|
getOrg(org) {
|
|
2873
2873
|
return this.get(`orgs/${seg(org)}`);
|
|
2874
2874
|
}
|
|
2875
|
+
/**
|
|
2876
|
+
* Each member's lockout risk (`GET /orgs/{org}/members?detail=security`),
|
|
2877
|
+
* for the organization's owner and admins: name, role, teams, passkeys held
|
|
2878
|
+
* (to `'3+'`), recovery code set, last active UTC day and live sessions.
|
|
2879
|
+
* A member below admin is refused (`403 FORBIDDEN`), someone outside the
|
|
2880
|
+
* organization gets {@link NotFound}; the admin's own session on the
|
|
2881
|
+
* cluster's origin only, never an API key or a package-bound session. A
|
|
2882
|
+
* node before core #4902 has no such route (a bare `404`).
|
|
2883
|
+
*/
|
|
2884
|
+
async orgMembersSecurity(org) {
|
|
2885
|
+
const { members } = await this.get(
|
|
2886
|
+
`orgs/${seg(org)}/members?detail=security`
|
|
2887
|
+
);
|
|
2888
|
+
return members;
|
|
2889
|
+
}
|
|
2875
2890
|
/**
|
|
2876
2891
|
* Delete an organization with its teams, invites and apps (its owner only).
|
|
2877
2892
|
* The node asks for the owner's passkey (`412 CONFIRM_REQUIRED`), which `passkey` gives.
|
|
@@ -3294,8 +3309,9 @@ var CalimeroClient = class _CalimeroClient {
|
|
|
3294
3309
|
}
|
|
3295
3310
|
/**
|
|
3296
3311
|
* The organizations with instances created from deployment `id`, for its
|
|
3297
|
-
* managers: each one's id, name, instance count, apps and releases,
|
|
3298
|
-
*
|
|
3312
|
+
* managers: each one's id, name, instance count, apps and releases, first
|
|
3313
|
+
* instance, and (core #4902) how many members it has and how many were
|
|
3314
|
+
* active in 30 days. Never who the members are, teams or app data.
|
|
3299
3315
|
*/
|
|
3300
3316
|
deploymentOrgs(id) {
|
|
3301
3317
|
return this.get(`deployments/${seg(id)}/orgs`);
|