@bagelink/sdk 1.6.36 → 1.6.41

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.d.cts CHANGED
@@ -406,7 +406,7 @@ declare class BagelAuth {
406
406
  validateUser(): Promise<User | undefined>;
407
407
  resetPassword(ctx: {
408
408
  token: string;
409
- password: string;
409
+ new_password: string;
410
410
  }): Promise<{
411
411
  [key: string]: any;
412
412
  }>;
package/dist/index.d.mts CHANGED
@@ -406,7 +406,7 @@ declare class BagelAuth {
406
406
  validateUser(): Promise<User | undefined>;
407
407
  resetPassword(ctx: {
408
408
  token: string;
409
- password: string;
409
+ new_password: string;
410
410
  }): Promise<{
411
411
  [key: string]: any;
412
412
  }>;
package/dist/index.d.ts CHANGED
@@ -406,7 +406,7 @@ declare class BagelAuth {
406
406
  validateUser(): Promise<User | undefined>;
407
407
  resetPassword(ctx: {
408
408
  token: string;
409
- password: string;
409
+ new_password: string;
410
410
  }): Promise<{
411
411
  [key: string]: any;
412
412
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/sdk",
3
3
  "type": "module",
4
- "version": "1.6.36",
4
+ "version": "1.6.41",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
package/src/index.ts CHANGED
@@ -124,7 +124,7 @@ class BagelAuth {
124
124
  }
125
125
  }
126
126
 
127
- async resetPassword(ctx: { token: string, password: string }) {
127
+ async resetPassword(ctx: { token: string, new_password: string }) {
128
128
  return this.bagel.post('auth/reset-password', ctx).catch((err) => {
129
129
  throw responses(err.response?.data?.detail)
130
130
  })