mezon-js 2.11.1 → 2.11.3

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/api.gen.d.ts CHANGED
@@ -1298,6 +1298,8 @@ export interface ApiSession {
1298
1298
  export interface ApiSessionLogoutRequest {
1299
1299
  refresh_token?: string;
1300
1300
  token?: string;
1301
+ device_id?: string;
1302
+ platform?: string;
1301
1303
  }
1302
1304
  /** Authenticate against the server with a refresh token. */
1303
1305
  export interface ApiSessionRefreshRequest {
package/dist/client.d.ts CHANGED
@@ -343,8 +343,6 @@ export declare class Client {
343
343
  readonly useSSL: boolean;
344
344
  readonly timeout: number;
345
345
  readonly autoRefreshSession: boolean;
346
- /** The expired timespan used to check session lifetime. */
347
- expiredTimespanMs: number;
348
346
  /** The low level API client for Mezon server. */
349
347
  private readonly apiClient;
350
348
  /** thre refreshTokenPromise */
@@ -480,7 +478,7 @@ export declare class Client {
480
478
  /** Execute an RPC function on the server. */
481
479
  rpcHttpKey(httpKey: string, id: string, input?: object): Promise<RpcResponse>;
482
480
  /** Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user. */
483
- sessionLogout(session: Session, token: string, refreshToken: string): Promise<boolean>;
481
+ sessionLogout(session: Session, token: string, refreshToken: string, deviceId: string, platform: string): Promise<boolean>;
484
482
  /** Refresh a user's session using a refresh token retrieved from a previous authentication request. */
485
483
  sessionRefresh(session: Session, vars?: Record<string, string>): Promise<Session>;
486
484
  /** Remove the Apple ID from the social profiles on the current user's account. */