@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/README.md +1 -1
- package/dist/cloud-v2/client.d.ts +33 -0
- package/dist/cloud-v2/client.js +13 -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 +13 -0
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +13 -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);
|