@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.cjs
CHANGED
|
@@ -2525,6 +2525,19 @@ var CalimeroClient = class _CalimeroClient {
|
|
|
2525
2525
|
async revokeSession(session) {
|
|
2526
2526
|
await this.delete(`auth/sessions/${seg(session)}`);
|
|
2527
2527
|
}
|
|
2528
|
+
/**
|
|
2529
|
+
* What the signed-in account's passkeys did, newest first (the last 100,
|
|
2530
|
+
* `GET /auth/activity`): each sign-in, with the package and origin its
|
|
2531
|
+
* session is bound to, and each change a passkey approved, with its method
|
|
2532
|
+
* and subject. `after` (Unix seconds) keeps only what came later. Gated as
|
|
2533
|
+
* {@link listSessions}: the account holder's own session on the cluster's
|
|
2534
|
+
* origin only. A node before core #4901 has no such route ({@link NotFound}).
|
|
2535
|
+
*/
|
|
2536
|
+
async listActivity(after) {
|
|
2537
|
+
const query = after === void 0 ? "" : `?after=${encodeURIComponent(String(after))}`;
|
|
2538
|
+
const { activity } = await this.get(`auth/activity${query}`);
|
|
2539
|
+
return activity;
|
|
2540
|
+
}
|
|
2528
2541
|
async signingOut(path) {
|
|
2529
2542
|
try {
|
|
2530
2543
|
await this.post(path);
|
|
@@ -3330,6 +3343,8 @@ var CalimeroClient = class _CalimeroClient {
|
|
|
3330
3343
|
* Give apps their own access lists in one step (owner or admin): find or
|
|
3331
3344
|
* make each package's app team, add everyone who reaches its instances now,
|
|
3332
3345
|
* and move those instances onto it; with `shared`, close every app team.
|
|
3346
|
+
* A package's own `join` opens or closes its team alone, a close keeping
|
|
3347
|
+
* everyone who reaches it or only the leads and `keep`.
|
|
3333
3348
|
* Idempotent per package. Approved with the caller's `passkey`
|
|
3334
3349
|
* (`__scope_apps { apps, shared }`); a refusal is `400 REJECTED` with the
|
|
3335
3350
|
* node's reason. For a fresh standalone install pass
|