@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/{chunk-QGQR2OBR.js → chunk-4FTI5GO7.js} +21 -1
- package/dist/chunk-4FTI5GO7.js.map +1 -0
- package/dist/index.cjs +20 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +74 -1
- package/dist/index.d.ts +74 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +20 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-QGQR2OBR.js.map +0 -1
|
@@ -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-
|
|
3582
|
+
//# sourceMappingURL=chunk-4FTI5GO7.js.map
|