mezon-js 2.12.80 → 2.12.82

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/api.gen.ts CHANGED
@@ -374,6 +374,8 @@ export interface ApiAccount {
374
374
  verify_time?: string;
375
375
  //The user's wallet data.
376
376
  wallet?: number;
377
+ //Password is setted
378
+ password_setted?: boolean;
377
379
  }
378
380
 
379
381
  /** Send a app token to the server. Used with authenticate/link/unlink. */
@@ -394,6 +396,8 @@ export interface ApiAccountEmail {
394
396
  email?: string;
395
397
  //A password for the user account. Ignored with unlink operations.
396
398
  password?: string;
399
+ // Old email
400
+ prev_email?: string;
397
401
  //Extra information that will be bundled in the session token.
398
402
  vars?: Record<string, string>;
399
403
  }
@@ -2146,6 +2150,8 @@ export interface ApiRegistrationEmailRequest {
2146
2150
  email?: string;
2147
2151
  //A password for the user account.
2148
2152
  password?: string;
2153
+ //A old password for the user account.
2154
+ old_password?: string;
2149
2155
  //Set the username on the account at register. Must be unique.
2150
2156
  username?: string;
2151
2157
  //Extra information that will be bundled in the session token.
@@ -3698,7 +3704,7 @@ export class MezonApi {
3698
3704
  bearerToken: string,
3699
3705
  body: ApiAccountEmail,
3700
3706
  options: any = {}
3701
- ): Promise<any> {
3707
+ ): Promise<ApiLinkAccountConfirmRequest> {
3702
3708
  if (body === null || body === undefined) {
3703
3709
  throw new Error(
3704
3710
  "'body' is a required parameter but is null or undefined."
package/dist/api.gen.d.ts CHANGED
@@ -213,6 +213,7 @@ export interface ApiAccount {
213
213
  user?: ApiUser;
214
214
  verify_time?: string;
215
215
  wallet?: number;
216
+ password_setted?: boolean;
216
217
  }
217
218
  /** Send a app token to the server. Used with authenticate/link/unlink. */
218
219
  export interface ApiAccountApp {
@@ -225,6 +226,7 @@ export interface ApiAccountApp {
225
226
  export interface ApiAccountEmail {
226
227
  email?: string;
227
228
  password?: string;
229
+ prev_email?: string;
228
230
  vars?: Record<string, string>;
229
231
  }
230
232
  /** Send a Mezon token to the server. Used with authenticate/link/unlink. */
@@ -1226,6 +1228,7 @@ export interface ApiRegistrationEmailRequest {
1226
1228
  dob?: string;
1227
1229
  email?: string;
1228
1230
  password?: string;
1231
+ old_password?: string;
1229
1232
  username?: string;
1230
1233
  vars?: Record<string, string>;
1231
1234
  }
@@ -1943,7 +1946,7 @@ export declare class MezonApi {
1943
1946
  /** Authenticate a user with Mezon against the server. */
1944
1947
  authenticateMezon(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountMezon, create?: boolean, username?: string, isRemember?: boolean, options?: any): Promise<ApiSession>;
1945
1948
  /** Add an email+password to the social profiles on the current user's account. */
1946
- linkEmail(bearerToken: string, body: ApiAccountEmail, options?: any): Promise<any>;
1949
+ linkEmail(bearerToken: string, body: ApiAccountEmail, options?: any): Promise<ApiLinkAccountConfirmRequest>;
1947
1950
  /** Add a mezon ID to the social profiles on the current user's account. */
1948
1951
  linkMezon(bearerToken: string, body: ApiAccountMezon, options?: any): Promise<ApiLinkAccountConfirmRequest>;
1949
1952
  /** */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js",
3
- "version": "2.12.80",
3
+ "version": "2.12.82",
4
4
  "scripts": {
5
5
  "build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
6
6
  },