@calimero-network/mero-js 29.10.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/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);