mezon-js 2.11.46 → 2.12.2

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
@@ -198,7 +198,6 @@ export interface ApiUpdateClanOrderRequest {
198
198
  /** A user with additional account details. Always the current user. */
199
199
  export interface ApiAccount {
200
200
  custom_id?: string;
201
- devices?: Array<ApiAccountDevice>;
202
201
  disable_time?: string;
203
202
  email?: string;
204
203
  encrypt_private_key?: string;
@@ -215,59 +214,17 @@ export interface ApiAccountApp {
215
214
  token?: string;
216
215
  vars?: Record<string, string>;
217
216
  }
218
- /** Send a Apple Sign In token to the server. Used with authenticate/link/unlink. */
219
- export interface ApiAccountApple {
220
- token?: string;
221
- vars?: Record<string, string>;
222
- }
223
- /** Send a device to the server. Used with authenticate/link/unlink and user. */
224
- export interface ApiAccountDevice {
225
- id?: string;
226
- vars?: Record<string, string>;
227
- }
228
217
  /** Send an email with password to the server. Used with authenticate/link/unlink. */
229
218
  export interface ApiAccountEmail {
230
219
  email?: string;
231
220
  password?: string;
232
221
  vars?: Record<string, string>;
233
222
  }
234
- /** Send a Facebook token to the server. Used with authenticate/link/unlink. */
235
- export interface ApiAccountFacebook {
236
- token?: string;
237
- vars?: Record<string, string>;
238
- }
239
- /** Send a Facebook Instant Game token to the server. Used with authenticate/link/unlink. */
240
- export interface ApiAccountFacebookInstantGame {
241
- signed_player_info?: string;
242
- vars?: Record<string, string>;
243
- }
244
- /** Send Apple's Game Center account credentials to the server. Used with authenticate/link/unlink.
245
-
246
- https://developer.apple.com/documentation/gamekit/gklocalplayer/1515407-generateidentityverificationsign */
247
- export interface ApiAccountGameCenter {
248
- bundle_id?: string;
249
- player_id?: string;
250
- public_key_url?: string;
251
- salt?: string;
252
- signature?: string;
253
- timestamp_seconds?: number;
254
- vars?: Record<string, string>;
255
- }
256
- /** Send a Google token to the server. Used with authenticate/link/unlink. */
257
- export interface ApiAccountGoogle {
258
- token?: string;
259
- vars?: Record<string, string>;
260
- }
261
223
  /** Send a Mezon token to the server. Used with authenticate/link/unlink. */
262
224
  export interface ApiAccountMezon {
263
225
  token?: string;
264
226
  vars?: Record<string, string>;
265
227
  }
266
- /** Send a Steam token to the server. Used with authenticate/link/unlink. */
267
- export interface ApiAccountSteam {
268
- token?: string;
269
- vars?: Record<string, string>;
270
- }
271
228
  /** */
272
229
  export interface ApiAddFavoriteChannelRequest {
273
230
  channel_id?: string;
@@ -899,11 +856,6 @@ export interface ApiLinkInviteUserRequest {
899
856
  clan_id?: string;
900
857
  expiry_time?: number;
901
858
  }
902
- /** Link Steam to the current user's account. */
903
- export interface ApiLinkSteamRequest {
904
- account?: ApiAccountSteam;
905
- sync?: boolean;
906
- }
907
859
  export interface ApiNotifiReactMessage {
908
860
  channel_id?: string;
909
861
  id?: string;
@@ -1378,6 +1330,7 @@ export interface ApiSession {
1378
1330
  refresh_token?: string;
1379
1331
  token?: string;
1380
1332
  is_remember?: boolean;
1333
+ api_url?: string;
1381
1334
  }
1382
1335
  /** Log out a session, invalidate a refresh token, or log out all sessions/refresh tokens for a user. */
1383
1336
  export interface ApiSessionLogoutRequest {
@@ -1867,70 +1820,28 @@ export declare class MezonApi {
1867
1820
  getAccount(bearerToken: string, options?: any): Promise<ApiAccount>;
1868
1821
  /** Update fields in the current user's account. */
1869
1822
  updateAccount(bearerToken: string, body: ApiUpdateAccountRequest, options?: any): Promise<any>;
1870
- /** Authenticate a user with an Apple ID against the server. */
1871
- authenticateApple(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountApple, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
1872
1823
  /** */
1873
- checkLoginRequest(basicAuthUsername: string, basicAuthPassword: string, body: ApiConfirmLoginRequest, options?: any): Promise<ApiSession>;
1824
+ checkLoginRequest(basePath: string, basicAuthUsername: string, basicAuthPassword: string, body: ApiConfirmLoginRequest, options?: any): Promise<ApiSession>;
1874
1825
  /** */
1875
- confirmLogin(bearerToken: string, body: ApiConfirmLoginRequest, options?: any): Promise<any>;
1826
+ confirmLogin(basePath: string, bearerToken: string, body: ApiConfirmLoginRequest, options?: any): Promise<any>;
1876
1827
  /** */
1877
- createQRLogin(basicAuthUsername: string, basicAuthPassword: string, body: ApiLoginRequest, options?: any): Promise<ApiLoginIDResponse>;
1878
- /** Authenticate a user with a device id against the server. */
1879
- authenticateDevice(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountDevice, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
1828
+ createQRLogin(basePath: string, basicAuthUsername: string, basicAuthPassword: string, body: ApiLoginRequest, options?: any): Promise<ApiLoginIDResponse>;
1880
1829
  /** Authenticate a user with an email+password against the server. */
1881
- authenticateEmail(basicAuthUsername: string, basicAuthPassword: string, body: ApiAuthenticateEmailRequest, options?: any): Promise<ApiSession>;
1882
- /** Authenticate a user with a Facebook OAuth token against the server. */
1883
- authenticateFacebook(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountFacebook, create?: boolean, username?: string, sync?: boolean, options?: any): Promise<ApiSession>;
1884
- /** Authenticate a user with a Facebook Instant Game token against the server. */
1885
- authenticateFacebookInstantGame(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountFacebookInstantGame, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
1886
- /** Authenticate a user with Apple's GameCenter against the server. */
1887
- authenticateGameCenter(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountGameCenter, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
1888
- /** Authenticate a user with Google against the server. */
1889
- authenticateGoogle(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountGoogle, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
1830
+ authenticateEmail(basePath: string, basicAuthUsername: string, basicAuthPassword: string, body: ApiAuthenticateEmailRequest, options?: any): Promise<ApiSession>;
1890
1831
  /** Authenticate a user with Mezon against the server. */
1891
- authenticateMezon(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountMezon, create?: boolean, username?: string, isRemember?: boolean, options?: any): Promise<ApiSession>;
1892
- /** Authenticate a user with Steam against the server. */
1893
- authenticateSteam(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountSteam, create?: boolean, username?: string, sync?: boolean, options?: any): Promise<ApiSession>;
1894
- /** Add an Apple ID to the social profiles on the current user's account. */
1895
- linkApple(bearerToken: string, body: ApiAccountApple, options?: any): Promise<any>;
1896
- /** Add a device ID to the social profiles on the current user's account. */
1897
- linkDevice(bearerToken: string, body: ApiAccountDevice, options?: any): Promise<any>;
1832
+ authenticateMezon(basePath: string, basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountMezon, create?: boolean, username?: string, isRemember?: boolean, options?: any): Promise<ApiSession>;
1898
1833
  /** Add an email+password to the social profiles on the current user's account. */
1899
1834
  linkEmail(bearerToken: string, body: ApiAccountEmail, options?: any): Promise<any>;
1900
- /** Add Facebook to the social profiles on the current user's account. */
1901
- linkFacebook(bearerToken: string, account: ApiAccountFacebook, sync?: boolean, options?: any): Promise<any>;
1902
- /** Add Facebook Instant Game to the social profiles on the current user's account. */
1903
- linkFacebookInstantGame(bearerToken: string, body: ApiAccountFacebookInstantGame, options?: any): Promise<any>;
1904
- /** Add Apple's GameCenter to the social profiles on the current user's account. */
1905
- linkGameCenter(bearerToken: string, body: ApiAccountGameCenter, options?: any): Promise<any>;
1906
1835
  /** Add a mezon ID to the social profiles on the current user's account. */
1907
1836
  linkMezon(bearerToken: string, body: ApiAccountMezon, options?: any): Promise<any>;
1908
- /** Add Google to the social profiles on the current user's account. */
1909
- linkGoogle(bearerToken: string, body: ApiAccountGoogle, options?: any): Promise<any>;
1910
- /** Add Steam to the social profiles on the current user's account. */
1911
- linkSteam(bearerToken: string, body: ApiLinkSteamRequest, options?: any): Promise<any>;
1912
1837
  /** Authenticate a user with an email+password against the server. */
1913
1838
  registrationEmail(bearerToken: string, body: ApiRegistrationEmailRequest, options?: any): Promise<ApiSession>;
1914
1839
  /** Refresh a user's session using a refresh token retrieved from a previous authentication request. */
1915
1840
  sessionRefresh(basicAuthUsername: string, basicAuthPassword: string, body: ApiSessionRefreshRequest, options?: any): Promise<ApiSession>;
1916
- /** Remove the Apple ID from the social profiles on the current user's account. */
1917
- unlinkApple(bearerToken: string, body: ApiAccountApple, options?: any): Promise<any>;
1918
- /** Remove the device ID from the social profiles on the current user's account. */
1919
- unlinkDevice(bearerToken: string, body: ApiAccountDevice, options?: any): Promise<any>;
1920
1841
  /** Remove the email+password from the social profiles on the current user's account. */
1921
1842
  unlinkEmail(bearerToken: string, body: ApiAccountEmail, options?: any): Promise<any>;
1922
- /** Remove Facebook from the social profiles on the current user's account. */
1923
- unlinkFacebook(bearerToken: string, body: ApiAccountFacebook, options?: any): Promise<any>;
1924
- /** Remove Facebook Instant Game profile from the social profiles on the current user's account. */
1925
- unlinkFacebookInstantGame(bearerToken: string, body: ApiAccountFacebookInstantGame, options?: any): Promise<any>;
1926
- /** Remove Apple's GameCenter from the social profiles on the current user's account. */
1927
- unlinkGameCenter(bearerToken: string, body: ApiAccountGameCenter, options?: any): Promise<any>;
1928
- /** Remove Google from the social profiles on the current user's account. */
1929
- unlinkGoogle(bearerToken: string, body: ApiAccountGoogle, options?: any): Promise<any>;
1930
1843
  /** Remove the mezon ID from the social profiles on the current user's account. */
1931
1844
  unlinkMezon(bearerToken: string, body: ApiAccountMezon, options?: any): Promise<any>;
1932
- /** Remove Steam from the social profiles on the current user's account. */
1933
- unlinkSteam(bearerToken: string, body: ApiAccountSteam, options?: any): Promise<any>;
1934
1845
  /** List activity */
1935
1846
  listActivity(bearerToken: string, options?: any): Promise<ApiListUserActivity>;
1936
1847
  /** Create user activity */
@@ -2059,10 +1970,6 @@ export declare class MezonApi {
2059
1970
  addFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: any): Promise<any>;
2060
1971
  /** Block one or more users by ID or username. */
2061
1972
  blockFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: any): Promise<any>;
2062
- /** Import Facebook friends and add them to a user's account. */
2063
- importFacebookFriends(bearerToken: string, account: ApiAccountFacebook, reset?: boolean, options?: any): Promise<any>;
2064
- /** Import Steam friends and add them to a user's account. */
2065
- importSteamFriends(bearerToken: string, account: ApiAccountSteam, reset?: boolean, options?: any): Promise<any>;
2066
1973
  /** List GetChannelCategoryNotiSettingsList */
2067
1974
  getChannelCategoryNotiSettingsList(bearerToken: string, clanId?: string, options?: any): Promise<ApiNotificationChannelCategorySettingList>;
2068
1975
  /** */
package/dist/client.d.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { ApiAccount, ApiAccountMezon, ApiAccountDevice, ApiAccountEmail, ApiAccountFacebook, ApiAccountFacebookInstantGame, ApiAccountGoogle, ApiAccountGameCenter, ApiAccountSteam, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, ApiAccountApple, ApiLinkSteamRequest, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiListStreamingChannelsResponse, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiWithdrawTokenRequest, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, ApiTransactionDetail, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, MezonapiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest } from "./api.gen";
16
+ import { ApiAccount, ApiAccountMezon, ApiAccountEmail, ApiChannelDescList, ApiChannelDescription, ApiCreateChannelDescRequest, ApiDeleteRoleRequest, ApiClanDescList, ApiCreateClanDescRequest, ApiClanDesc, ApiCategoryDesc, ApiCategoryDescList, ApiPermissionList, ApiRoleUserList, ApiRole, ApiCreateRoleRequest, ApiAddRoleChannelDescRequest, ApiCreateCategoryDescRequest, ApiUpdateCategoryDescRequest, ApiEvent, ApiNotificationList, ApiUpdateAccountRequest, ApiSession, ApiClanDescProfile, ApiClanProfile, ApiChannelUserList, ApiClanUserList, ApiLinkInviteUserRequest, ApiLinkInviteUser, ApiInviteUserRes, ApiUploadAttachmentRequest, ApiUploadAttachment, ApiMessageReaction, ApiMessageMention, ApiMessageAttachment, ApiMessageRef, ApiChannelMessageHeader, ApiVoiceChannelUserList, ApiChannelAttachmentList, ApiCreateEventRequest, ApiEventManagement, ApiEventList, ApiDeleteEventRequest, ApiSetDefaultNotificationRequest, ApiSetNotificationRequest, ApiSetMuteNotificationRequest, ApiSearchMessageRequest, ApiSearchMessageResponse, ApiPinMessageRequest, ApiPinMessagesList, ApiDeleteChannelDescRequest, ApiChangeChannelPrivateRequest, ApiClanEmojiCreateRequest, MezonUpdateClanEmojiByIdBody, ApiWebhookCreateRequest, ApiWebhookListResponse, MezonUpdateWebhookByIdBody, ApiWebhookGenerateResponse, ApiCheckDuplicateClanNameResponse, ApiClanStickerAddRequest, MezonUpdateClanStickerByIdBody, MezonChangeChannelCategoryBody, ApiUpdateRoleChannelRequest, ApiAddAppRequest, ApiAppList, ApiApp, MezonUpdateAppBody, ApiSystemMessagesList, ApiSystemMessage, ApiSystemMessageRequest, MezonUpdateSystemMessageBody, ApiUpdateCategoryOrderRequest, ApiGiveCoffeeEvent, ApiListStreamingChannelsResponse, ApiStreamingChannelUserList, ApiRegisterStreamingChannelRequest, ApiRoleList, ApiListChannelAppsResponse, ApiNotificationChannelCategorySettingList, ApiNotificationUserChannel, ApiNotificationSetting, ApiNotifiReactMessage, ApiHashtagDmList, ApiEmojiListedResponse, ApiStickerListedResponse, ApiAllUsersAddChannelResponse, ApiRoleListEventResponse, ApiAllUserClans, ApiUserPermissionInChannelListResponse, ApiPermissionRoleChannelListEventResponse, ApiMarkAsReadRequest, ApiChannelCanvasListResponse, ApiEditChannelCanvasRequest, ApiChannelSettingListResponse, ApiAddFavoriteChannelResponse, ApiRegistFcmDeviceTokenResponse, ApiListUserActivity, ApiCreateActivityRequest, ApiLoginIDResponse, ApiLoginRequest, ApiConfirmLoginRequest, ApiUserActivity, ApiChanEncryptionMethod, ApiGetPubKeysResponse, ApiPubKey, ApiGetKeyServerResp, MezonapiListAuditLog, ApiTokenSentEvent, MezonDeleteWebhookByIdBody, ApiWithdrawTokenRequest, ApiListOnboardingResponse, ApiCreateOnboardingRequest, MezonUpdateOnboardingBody, ApiOnboardingItem, ApiGenerateClanWebhookRequest, ApiGenerateClanWebhookResponse, ApiListClanWebhookResponse, MezonUpdateClanWebhookByIdBody, MezonUpdateClanDescBody, ApiUserStatusUpdate, ApiUserStatus, ApiListOnboardingStepResponse, MezonUpdateOnboardingStepByClanIdBody, ApiWalletLedgerList, ApiSdTopicList, ApiSdTopicRequest, ApiSdTopic, MezonUpdateEventBody, ApiTransactionDetail, MezonapiCreateRoomChannelApps, ApiGenerateMeetTokenRequest, ApiGenerateMeetTokenResponse, ApiMezonOauthClientList, ApiMezonOauthClient, ApiCreateHashChannelAppsResponse, MezonapiEmojiRecentList, ApiUserEventRequest, ApiUpdateRoleOrderRequest, ApiGenerateMezonMeetResponse, ApiGenerateMeetTokenExternalResponse, ApiUpdateClanOrderRequest, ApiMessage2InboxRequest } from "./api.gen";
17
17
  import { Session } from "./session";
18
18
  import { Socket } from "./socket";
19
19
  import { WebSocketAdapter } from "./web_socket_adapter";
@@ -352,28 +352,14 @@ export declare class Client {
352
352
  /** thre refreshTokenPromise */
353
353
  private refreshTokenPromise;
354
354
  constructor(serverkey?: string, host?: string, port?: string, useSSL?: boolean, timeout?: number, autoRefreshSession?: boolean);
355
+ /** Authenticate a user with a custom id against the server. */
356
+ authenticateMezon(basePath: string, token: string, create?: boolean, username?: string, isRemember?: boolean, vars?: Record<string, string>, options?: any): Promise<Session>;
357
+ /** Authenticate a user with an email+password against the server. */
358
+ authenticateEmail(basePath: string, email: string, password: string, username?: string, vars?: Record<string, string>): Promise<Session>;
355
359
  /** Add users to a channel, or accept their join requests. */
356
360
  addChannelUsers(session: Session, channelId: string, ids?: Array<string>): Promise<boolean>;
357
361
  /** Add friends by ID or username to a user's account. */
358
362
  addFriends(session: Session, ids?: Array<string>, usernames?: Array<string>): Promise<boolean>;
359
- /** Authenticate a user with an Apple ID against the server. */
360
- authenticateApple(token: string, create?: boolean, username?: string, vars?: Record<string, string>, options?: any): Promise<Session>;
361
- /** Authenticate a user with a custom id against the server. */
362
- authenticateMezon(token: string, create?: boolean, username?: string, isRemember?: boolean, vars?: Record<string, string>, options?: any): Promise<Session>;
363
- /** Authenticate a user with a device id against the server. */
364
- authenticateDevice(id: string, create?: boolean, username?: string, vars?: Record<string, string>): Promise<Session>;
365
- /** Authenticate a user with an email+password against the server. */
366
- authenticateEmail(email: string, password: string, username?: string, vars?: Record<string, string>): Promise<Session>;
367
- /** Authenticate a user with a Facebook Instant Game token against the server. */
368
- authenticateFacebookInstantGame(signedPlayerInfo: string, create?: boolean, username?: string, vars?: Record<string, string>, options?: any): Promise<Session>;
369
- /** Authenticate a user with a Facebook OAuth token against the server. */
370
- authenticateFacebook(token: string, create?: boolean, username?: string, sync?: boolean, vars?: Record<string, string>, options?: any): Promise<Session>;
371
- /** Authenticate a user with Google against the server. */
372
- authenticateGoogle(token: string, create?: boolean, username?: string, vars?: Record<string, string>, options?: any): Promise<Session>;
373
- /** Authenticate a user with GameCenter against the server. */
374
- authenticateGameCenter(bundleId: string, playerId: string, publicKeyUrl: string, salt: string, signature: string, timestamp: number, username?: string, create?: boolean, vars?: Record<string, string>, options?: any): Promise<Session>;
375
- /** Authenticate a user with Steam against the server. */
376
- authenticateSteam(token: string, create?: boolean, username?: string, sync?: boolean, vars?: Record<string, string>): Promise<Session>;
377
363
  /** Block one or more users by ID or username. */
378
364
  blockFriends(session: Session, ids?: Array<string>, usernames?: Array<string>): Promise<boolean>;
379
365
  /** Create a new group with the current user as the creator and superadmin. */
@@ -415,10 +401,6 @@ export declare class Client {
415
401
  emitEvent(session: Session, request: ApiEvent): Promise<boolean>;
416
402
  /** Fetch the current user's account. */
417
403
  getAccount(session: Session): Promise<ApiAccount>;
418
- /** Import Facebook friends and add them to a user's account. */
419
- importFacebookFriends(session: Session, request: ApiAccountFacebook): Promise<boolean>;
420
- /** Import Steam friends and add them to a user's account. */
421
- importSteamFriends(session: Session, request: ApiAccountSteam, reset: boolean): Promise<boolean>;
422
404
  /** Fetch zero or more users by ID and/or username. */
423
405
  getUsers(session: Session, ids?: Array<string>, usernames?: Array<string>, facebookIds?: Array<string>): Promise<Users>;
424
406
  /** Kick a set of users from a clan. */
@@ -453,26 +435,12 @@ export declare class Client {
453
435
  /** Get a clan desc profile */
454
436
  getClanDescProfile(session: Session, clanId: string): Promise<ApiClanDescProfile>;
455
437
  getUserProfileOnClan(session: Session, clanId: string): Promise<ApiClanProfile>;
456
- /** Add an Apple ID to the social profiles on the current user's account. */
457
- linkApple(session: Session, request: ApiAccountApple): Promise<boolean>;
458
438
  closeDirectMess(session: Session, request: ApiDeleteChannelDescRequest): Promise<boolean>;
459
439
  openDirectMess(session: Session, request: ApiDeleteChannelDescRequest): Promise<boolean>;
460
440
  /** Add a custom ID to the social profiles on the current user's account. */
461
441
  linkMezon(session: Session, request: ApiAccountMezon): Promise<boolean>;
462
- /** Add a device ID to the social profiles on the current user's account. */
463
- linkDevice(session: Session, request: ApiAccountDevice): Promise<boolean>;
464
442
  /** Add an email+password to the social profiles on the current user's account. */
465
443
  linkEmail(session: Session, request: ApiAccountEmail): Promise<boolean>;
466
- /** Add Facebook to the social profiles on the current user's account. */
467
- linkFacebook(session: Session, request: ApiAccountFacebook): Promise<boolean>;
468
- /** Add Facebook Instant to the social profiles on the current user's account. */
469
- linkFacebookInstantGame(session: Session, request: ApiAccountFacebookInstantGame): Promise<boolean>;
470
- /** Add Google to the social profiles on the current user's account. */
471
- linkGoogle(session: Session, request: ApiAccountGoogle): Promise<boolean>;
472
- /** Add GameCenter to the social profiles on the current user's account. */
473
- linkGameCenter(session: Session, request: ApiAccountGameCenter): Promise<boolean>;
474
- /** Add Steam to the social profiles on the current user's account. */
475
- linkSteam(session: Session, request: ApiLinkSteamRequest): Promise<boolean>;
476
444
  /** List all friends for the current user. */
477
445
  listFriends(session: Session, state?: number, limit?: number, cursor?: string): Promise<Friends>;
478
446
  /** Fetch list of notifications. */
@@ -485,24 +453,10 @@ export declare class Client {
485
453
  sessionLogout(session: Session, token: string, refreshToken: string, deviceId: string, platform: string): Promise<boolean>;
486
454
  /** Refresh a user's session using a refresh token retrieved from a previous authentication request. */
487
455
  sessionRefresh(session: Session, vars?: Record<string, string>): Promise<Session>;
488
- /** Remove the Apple ID from the social profiles on the current user's account. */
489
- unlinkApple(session: Session, request: ApiAccountApple): Promise<boolean>;
490
456
  /** Remove custom ID from the social profiles on the current user's account. */
491
457
  unlinkCustom(session: Session, request: ApiAccountMezon): Promise<boolean>;
492
- /** Remove a device ID from the social profiles on the current user's account. */
493
- unlinkDevice(session: Session, request: ApiAccountDevice): Promise<boolean>;
494
458
  /** Remove an email+password from the social profiles on the current user's account. */
495
459
  unlinkEmail(session: Session, request: ApiAccountEmail): Promise<boolean>;
496
- /** Remove Facebook from the social profiles on the current user's account. */
497
- unlinkFacebook(session: Session, request: ApiAccountFacebook): Promise<boolean>;
498
- /** Remove Facebook Instant social profiles from the current user's account. */
499
- unlinkFacebookInstantGame(session: Session, request: ApiAccountFacebookInstantGame): Promise<boolean>;
500
- /** Remove Google from the social profiles on the current user's account. */
501
- unlinkGoogle(session: Session, request: ApiAccountGoogle): Promise<boolean>;
502
- /** Remove GameCenter from the social profiles on the current user's account. */
503
- unlinkGameCenter(session: Session, request: ApiAccountGameCenter): Promise<boolean>;
504
- /** Remove Steam from the social profiles on the current user's account. */
505
- unlinkSteam(session: Session, request: ApiAccountSteam): Promise<boolean>;
506
460
  /** Update fields in the current user's account. */
507
461
  updateAccount(session: Session, request: ApiUpdateAccountRequest): Promise<boolean>;
508
462
  /** Update fields in a given channel */
@@ -618,9 +572,9 @@ export declare class Client {
618
572
  /** List activity */
619
573
  listActivity(session: Session): Promise<ApiListUserActivity>;
620
574
  createActiviy(session: Session, request: ApiCreateActivityRequest): Promise<ApiUserActivity>;
621
- createQRLogin(requet: ApiLoginRequest): Promise<ApiLoginIDResponse>;
622
- checkLoginRequest(requet: ApiConfirmLoginRequest): Promise<Session | null>;
623
- confirmLogin(session: Session, body: ApiConfirmLoginRequest): Promise<any>;
575
+ createQRLogin(basePath: string, requet: ApiLoginRequest): Promise<ApiLoginIDResponse>;
576
+ checkLoginRequest(basePath: string, requet: ApiConfirmLoginRequest): Promise<Session | null>;
577
+ confirmLogin(basePath: string, session: Session, body: ApiConfirmLoginRequest): Promise<any>;
624
578
  getChanEncryptionMethod(session: Session, channelId: string): Promise<ApiChanEncryptionMethod>;
625
579
  setChanEncryptionMethod(session: Session, channelId: string, method: string): Promise<any>;
626
580
  getPubKeys(session: Session, userIds: Array<string>): Promise<ApiGetPubKeysResponse>;