@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.
package/dist/index.cjs CHANGED
@@ -1947,6 +1947,26 @@ var Users = class {
1947
1947
  async signOut() {
1948
1948
  return this.request("POST", "/user/signout");
1949
1949
  }
1950
+ /**
1951
+ * Paginated login history for the authenticated user — IP, User-Agent,
1952
+ * country / city / lat-lon (when GeoIP is enabled in backend), success
1953
+ * and failure events with their reasons. Strictly scoped to the JWT
1954
+ * subject; a user can only see their own activity.
1955
+ *
1956
+ * `GET /user/me/login-activity`. Requires a logged-in JWT.
1957
+ *
1958
+ * The backend returns an empty page when a Delopay admin is impersonating
1959
+ * a non-admin merchant, so the admin's metadata never renders inside the
1960
+ * merchant dashboard.
1961
+ */
1962
+ async listLoginActivity(params) {
1963
+ if (params === void 0) {
1964
+ return this.request("GET", "/user/me/login-activity");
1965
+ }
1966
+ return this.request("GET", "/user/me/login-activity", {
1967
+ query: params
1968
+ });
1969
+ }
1950
1970
  async getDetails() {
1951
1971
  return this.request("GET", "/user");
1952
1972
  }