mezon-js 2.12.80 → 2.12.81
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 +5 -1
- package/dist/api.gen.d.ts +3 -1
- package/package.json +1 -1
package/api.gen.ts
CHANGED
|
@@ -394,6 +394,8 @@ export interface ApiAccountEmail {
|
|
|
394
394
|
email?: string;
|
|
395
395
|
//A password for the user account. Ignored with unlink operations.
|
|
396
396
|
password?: string;
|
|
397
|
+
// Old email
|
|
398
|
+
prev_email?: string;
|
|
397
399
|
//Extra information that will be bundled in the session token.
|
|
398
400
|
vars?: Record<string, string>;
|
|
399
401
|
}
|
|
@@ -2146,6 +2148,8 @@ export interface ApiRegistrationEmailRequest {
|
|
|
2146
2148
|
email?: string;
|
|
2147
2149
|
//A password for the user account.
|
|
2148
2150
|
password?: string;
|
|
2151
|
+
//A old password for the user account.
|
|
2152
|
+
old_password?: string;
|
|
2149
2153
|
//Set the username on the account at register. Must be unique.
|
|
2150
2154
|
username?: string;
|
|
2151
2155
|
//Extra information that will be bundled in the session token.
|
|
@@ -3698,7 +3702,7 @@ export class MezonApi {
|
|
|
3698
3702
|
bearerToken: string,
|
|
3699
3703
|
body: ApiAccountEmail,
|
|
3700
3704
|
options: any = {}
|
|
3701
|
-
): Promise<
|
|
3705
|
+
): Promise<ApiLinkAccountConfirmRequest> {
|
|
3702
3706
|
if (body === null || body === undefined) {
|
|
3703
3707
|
throw new Error(
|
|
3704
3708
|
"'body' is a required parameter but is null or undefined."
|
package/dist/api.gen.d.ts
CHANGED
|
@@ -225,6 +225,7 @@ export interface ApiAccountApp {
|
|
|
225
225
|
export interface ApiAccountEmail {
|
|
226
226
|
email?: string;
|
|
227
227
|
password?: string;
|
|
228
|
+
prev_email?: string;
|
|
228
229
|
vars?: Record<string, string>;
|
|
229
230
|
}
|
|
230
231
|
/** Send a Mezon token to the server. Used with authenticate/link/unlink. */
|
|
@@ -1226,6 +1227,7 @@ export interface ApiRegistrationEmailRequest {
|
|
|
1226
1227
|
dob?: string;
|
|
1227
1228
|
email?: string;
|
|
1228
1229
|
password?: string;
|
|
1230
|
+
old_password?: string;
|
|
1229
1231
|
username?: string;
|
|
1230
1232
|
vars?: Record<string, string>;
|
|
1231
1233
|
}
|
|
@@ -1943,7 +1945,7 @@ export declare class MezonApi {
|
|
|
1943
1945
|
/** Authenticate a user with Mezon against the server. */
|
|
1944
1946
|
authenticateMezon(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountMezon, create?: boolean, username?: string, isRemember?: boolean, options?: any): Promise<ApiSession>;
|
|
1945
1947
|
/** Add an email+password to the social profiles on the current user's account. */
|
|
1946
|
-
linkEmail(bearerToken: string, body: ApiAccountEmail, options?: any): Promise<
|
|
1948
|
+
linkEmail(bearerToken: string, body: ApiAccountEmail, options?: any): Promise<ApiLinkAccountConfirmRequest>;
|
|
1947
1949
|
/** Add a mezon ID to the social profiles on the current user's account. */
|
|
1948
1950
|
linkMezon(bearerToken: string, body: ApiAccountMezon, options?: any): Promise<ApiLinkAccountConfirmRequest>;
|
|
1949
1951
|
/** */
|