@delopay/sdk 0.19.1 → 0.20.1

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.
@@ -1881,6 +1881,26 @@ var Users = class {
1881
1881
  async signOut() {
1882
1882
  return this.request("POST", "/user/signout");
1883
1883
  }
1884
+ /**
1885
+ * Paginated login history for the authenticated user — IP, User-Agent,
1886
+ * country / city / lat-lon (when GeoIP is enabled in backend), success
1887
+ * and failure events with their reasons. Strictly scoped to the JWT
1888
+ * subject; a user can only see their own activity.
1889
+ *
1890
+ * `GET /user/me/login-activity`. Requires a logged-in JWT.
1891
+ *
1892
+ * The backend returns an empty page when a Delopay admin is impersonating
1893
+ * a non-admin merchant, so the admin's metadata never renders inside the
1894
+ * merchant dashboard.
1895
+ */
1896
+ async listLoginActivity(params) {
1897
+ if (params === void 0) {
1898
+ return this.request("GET", "/user/me/login-activity");
1899
+ }
1900
+ return this.request("GET", "/user/me/login-activity", {
1901
+ query: params
1902
+ });
1903
+ }
1884
1904
  async getDetails() {
1885
1905
  return this.request("GET", "/user");
1886
1906
  }
@@ -3559,4 +3579,4 @@ export {
3559
3579
  applyBrandingVariables,
3560
3580
  shadowFor
3561
3581
  };
3562
- //# sourceMappingURL=chunk-QGQR2OBR.js.map
3582
+ //# sourceMappingURL=chunk-4FTI5GO7.js.map