From e36a155f591450a50c344430061340ca139fc9aa Mon Sep 17 00:00:00 2001 From: Dwynr Date: Fri, 23 Aug 2024 13:27:17 +0200 Subject: [PATCH] fix: pw reset endpoint --- dist/browser/api/v3/user/password/forgotReset.js | 2 +- dist/browser/api/v3/user/password/forgotReset.js.map | 2 +- dist/node/api/v3/user/password/forgotReset.js | 2 +- dist/node/api/v3/user/password/forgotReset.js.map | 2 +- package.json | 2 +- src/api/v3/user/password/forgotReset.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/browser/api/v3/user/password/forgotReset.js b/dist/browser/api/v3/user/password/forgotReset.js index d91c969b..3c161e78 100644 --- a/dist/browser/api/v3/user/password/forgotReset.js +++ b/dist/browser/api/v3/user/password/forgotReset.js @@ -44,7 +44,7 @@ export class UserPasswordForgotReset { async fetch({ token, password, authVersion, salt, hasRecoveryKeys, newMasterKeys }) { await this.apiClient.request({ method: "POST", - endpoint: "/v3/user/password/forgot", + endpoint: "/v3/user/password/forgot/reset", data: { token, password, diff --git a/dist/browser/api/v3/user/password/forgotReset.js.map b/dist/browser/api/v3/user/password/forgotReset.js.map index e1ad4ed3..8b83f978 100644 --- a/dist/browser/api/v3/user/password/forgotReset.js.map +++ b/dist/browser/api/v3/user/password/forgotReset.js.map @@ -1 +1 @@ -{"version":3,"file":"forgotReset.js","sourceRoot":"","sources":["../../../../../../src/api/v3/user/password/forgotReset.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,OAAO,uBAAuB;IAClB,SAAS,CAAW;IAErC;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,KAAK,CAAC,KAAK,CAAC,EAClB,KAAK,EACL,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,eAAe,EACf,aAAa,EAQb;QACA,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,0BAA0B;YACpC,IAAI,EAAE;gBACL,KAAK;gBACL,QAAQ;gBACR,WAAW;gBACX,IAAI;gBACJ,eAAe;gBACf,aAAa;aACb;SACD,CAAC,CAAA;IACH,CAAC;CACD;AAED,eAAe,uBAAuB,CAAA"} \ No newline at end of file +{"version":3,"file":"forgotReset.js","sourceRoot":"","sources":["../../../../../../src/api/v3/user/password/forgotReset.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,OAAO,uBAAuB;IAClB,SAAS,CAAW;IAErC;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,KAAK,CAAC,KAAK,CAAC,EAClB,KAAK,EACL,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,eAAe,EACf,aAAa,EAQb;QACA,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,gCAAgC;YAC1C,IAAI,EAAE;gBACL,KAAK;gBACL,QAAQ;gBACR,WAAW;gBACX,IAAI;gBACJ,eAAe;gBACf,aAAa;aACb;SACD,CAAC,CAAA;IACH,CAAC;CACD;AAED,eAAe,uBAAuB,CAAA"} \ No newline at end of file diff --git a/dist/node/api/v3/user/password/forgotReset.js b/dist/node/api/v3/user/password/forgotReset.js index 4a5355f2..fb11a5fb 100644 --- a/dist/node/api/v3/user/password/forgotReset.js +++ b/dist/node/api/v3/user/password/forgotReset.js @@ -46,7 +46,7 @@ class UserPasswordForgotReset { async fetch({ token, password, authVersion, salt, hasRecoveryKeys, newMasterKeys }) { await this.apiClient.request({ method: "POST", - endpoint: "/v3/user/password/forgot", + endpoint: "/v3/user/password/forgot/reset", data: { token, password, diff --git a/dist/node/api/v3/user/password/forgotReset.js.map b/dist/node/api/v3/user/password/forgotReset.js.map index 6981b6ff..fcfe75e2 100644 --- a/dist/node/api/v3/user/password/forgotReset.js.map +++ b/dist/node/api/v3/user/password/forgotReset.js.map @@ -1 +1 @@ -{"version":3,"file":"forgotReset.js","sourceRoot":"","sources":["../../../../../../src/api/v3/user/password/forgotReset.ts"],"names":[],"mappings":";;;AAEA;;;;;;;GAOG;AACH,MAAa,uBAAuB;IAGnC;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,KAAK,CAAC,KAAK,CAAC,EAClB,KAAK,EACL,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,eAAe,EACf,aAAa,EAQb;QACA,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,0BAA0B;YACpC,IAAI,EAAE;gBACL,KAAK;gBACL,QAAQ;gBACR,WAAW;gBACX,IAAI;gBACJ,eAAe;gBACf,aAAa;aACb;SACD,CAAC,CAAA;IACH,CAAC;CACD;AAjED,0DAiEC;AAED,kBAAe,uBAAuB,CAAA"} \ No newline at end of file +{"version":3,"file":"forgotReset.js","sourceRoot":"","sources":["../../../../../../src/api/v3/user/password/forgotReset.ts"],"names":[],"mappings":";;;AAEA;;;;;;;GAOG;AACH,MAAa,uBAAuB;IAGnC;;;;;;;;OAQG;IACH,YAAmB,EAAE,SAAS,EAA4B;QACzD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAA;IAC3B,CAAC;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,KAAK,CAAC,KAAK,CAAC,EAClB,KAAK,EACL,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,eAAe,EACf,aAAa,EAQb;QACA,MAAM,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,QAAQ,EAAE,gCAAgC;YAC1C,IAAI,EAAE;gBACL,KAAK;gBACL,QAAQ;gBACR,WAAW;gBACX,IAAI;gBACJ,eAAe;gBACf,aAAa;aACb;SACD,CAAC,CAAA;IACH,CAAC;CACD;AAjED,0DAiEC;AAED,kBAAe,uBAAuB,CAAA"} \ No newline at end of file diff --git a/package.json b/package.json index c053f68a..45b724e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@filen/sdk", - "version": "0.1.155", + "version": "0.1.156", "description": "Filen SDK", "main": "dist/node/index.js", "browser": "dist/browser/index.js", diff --git a/src/api/v3/user/password/forgotReset.ts b/src/api/v3/user/password/forgotReset.ts index 489329c7..fd928f97 100644 --- a/src/api/v3/user/password/forgotReset.ts +++ b/src/api/v3/user/password/forgotReset.ts @@ -62,7 +62,7 @@ export class UserPasswordForgotReset { }): Promise { await this.apiClient.request({ method: "POST", - endpoint: "/v3/user/password/forgot", + endpoint: "/v3/user/password/forgot/reset", data: { token, password,