@calimero-network/mero-js 29.9.0 → 29.11.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 +54 -1
- package/dist/cloud-v2/client.js +15 -0
- 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 +15 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +2 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2392,6 +2392,19 @@ var CalimeroClient = class _CalimeroClient {
|
|
|
2392
2392
|
async revokeSession(session) {
|
|
2393
2393
|
await this.delete(`auth/sessions/${seg(session)}`);
|
|
2394
2394
|
}
|
|
2395
|
+
/**
|
|
2396
|
+
* What the signed-in account's passkeys did, newest first (the last 100,
|
|
2397
|
+
* `GET /auth/activity`): each sign-in, with the package and origin its
|
|
2398
|
+
* session is bound to, and each change a passkey approved, with its method
|
|
2399
|
+
* and subject. `after` (Unix seconds) keeps only what came later. Gated as
|
|
2400
|
+
* {@link listSessions}: the account holder's own session on the cluster's
|
|
2401
|
+
* origin only. A node before core #4901 has no such route ({@link NotFound}).
|
|
2402
|
+
*/
|
|
2403
|
+
async listActivity(after) {
|
|
2404
|
+
const query = after === void 0 ? "" : `?after=${encodeURIComponent(String(after))}`;
|
|
2405
|
+
const { activity } = await this.get(`auth/activity${query}`);
|
|
2406
|
+
return activity;
|
|
2407
|
+
}
|
|
2395
2408
|
async signingOut(path) {
|
|
2396
2409
|
try {
|
|
2397
2410
|
await this.post(path);
|
|
@@ -3197,6 +3210,8 @@ var CalimeroClient = class _CalimeroClient {
|
|
|
3197
3210
|
* Give apps their own access lists in one step (owner or admin): find or
|
|
3198
3211
|
* make each package's app team, add everyone who reaches its instances now,
|
|
3199
3212
|
* and move those instances onto it; with `shared`, close every app team.
|
|
3213
|
+
* A package's own `join` opens or closes its team alone, a close keeping
|
|
3214
|
+
* everyone who reaches it or only the leads and `keep`.
|
|
3200
3215
|
* Idempotent per package. Approved with the caller's `passkey`
|
|
3201
3216
|
* (`__scope_apps { apps, shared }`); a refusal is `400 REJECTED` with the
|
|
3202
3217
|
* node's reason. For a fresh standalone install pass
|