@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.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);