mezon-js 2.11.45 → 2.12.1
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 +118 -1135
- package/client.ts +42 -574
- package/dist/api.gen.d.ts +6 -99
- package/dist/client.d.ts +8 -54
- package/dist/mezon-js.cjs.js +83 -1134
- package/dist/mezon-js.esm.mjs +83 -1134
- package/package.json +1 -1
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;
|
@@ -881,6 +838,7 @@ export interface ApiInviteUserRes {
|
|
881
838
|
user_joined?: boolean;
|
882
839
|
expiry_time?: string;
|
883
840
|
clan_logo: string;
|
841
|
+
member_count: number;
|
884
842
|
}
|
885
843
|
/** Add link invite users to. */
|
886
844
|
export interface ApiLinkInviteUser {
|
@@ -898,11 +856,6 @@ export interface ApiLinkInviteUserRequest {
|
|
898
856
|
clan_id?: string;
|
899
857
|
expiry_time?: number;
|
900
858
|
}
|
901
|
-
/** Link Steam to the current user's account. */
|
902
|
-
export interface ApiLinkSteamRequest {
|
903
|
-
account?: ApiAccountSteam;
|
904
|
-
sync?: boolean;
|
905
|
-
}
|
906
859
|
export interface ApiNotifiReactMessage {
|
907
860
|
channel_id?: string;
|
908
861
|
id?: string;
|
@@ -1866,70 +1819,28 @@ export declare class MezonApi {
|
|
1866
1819
|
getAccount(bearerToken: string, options?: any): Promise<ApiAccount>;
|
1867
1820
|
/** Update fields in the current user's account. */
|
1868
1821
|
updateAccount(bearerToken: string, body: ApiUpdateAccountRequest, options?: any): Promise<any>;
|
1869
|
-
/** Authenticate a user with an Apple ID against the server. */
|
1870
|
-
authenticateApple(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountApple, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
1871
1822
|
/** */
|
1872
|
-
checkLoginRequest(basicAuthUsername: string, basicAuthPassword: string, body: ApiConfirmLoginRequest, options?: any): Promise<ApiSession>;
|
1823
|
+
checkLoginRequest(basePath: string, basicAuthUsername: string, basicAuthPassword: string, body: ApiConfirmLoginRequest, options?: any): Promise<ApiSession>;
|
1873
1824
|
/** */
|
1874
|
-
confirmLogin(bearerToken: string, body: ApiConfirmLoginRequest, options?: any): Promise<any>;
|
1825
|
+
confirmLogin(basePath: string, bearerToken: string, body: ApiConfirmLoginRequest, options?: any): Promise<any>;
|
1875
1826
|
/** */
|
1876
|
-
createQRLogin(basicAuthUsername: string, basicAuthPassword: string, body: ApiLoginRequest, options?: any): Promise<ApiLoginIDResponse>;
|
1877
|
-
/** Authenticate a user with a device id against the server. */
|
1878
|
-
authenticateDevice(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountDevice, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
1827
|
+
createQRLogin(basePath: string, basicAuthUsername: string, basicAuthPassword: string, body: ApiLoginRequest, options?: any): Promise<ApiLoginIDResponse>;
|
1879
1828
|
/** Authenticate a user with an email+password against the server. */
|
1880
|
-
authenticateEmail(basicAuthUsername: string, basicAuthPassword: string, body: ApiAuthenticateEmailRequest, options?: any): Promise<ApiSession>;
|
1881
|
-
/** Authenticate a user with a Facebook OAuth token against the server. */
|
1882
|
-
authenticateFacebook(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountFacebook, create?: boolean, username?: string, sync?: boolean, options?: any): Promise<ApiSession>;
|
1883
|
-
/** Authenticate a user with a Facebook Instant Game token against the server. */
|
1884
|
-
authenticateFacebookInstantGame(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountFacebookInstantGame, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
1885
|
-
/** Authenticate a user with Apple's GameCenter against the server. */
|
1886
|
-
authenticateGameCenter(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountGameCenter, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
1887
|
-
/** Authenticate a user with Google against the server. */
|
1888
|
-
authenticateGoogle(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountGoogle, create?: boolean, username?: string, options?: any): Promise<ApiSession>;
|
1829
|
+
authenticateEmail(basePath: string, basicAuthUsername: string, basicAuthPassword: string, body: ApiAuthenticateEmailRequest, options?: any): Promise<ApiSession>;
|
1889
1830
|
/** Authenticate a user with Mezon against the server. */
|
1890
|
-
authenticateMezon(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountMezon, create?: boolean, username?: string, isRemember?: boolean, options?: any): Promise<ApiSession>;
|
1891
|
-
/** Authenticate a user with Steam against the server. */
|
1892
|
-
authenticateSteam(basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountSteam, create?: boolean, username?: string, sync?: boolean, options?: any): Promise<ApiSession>;
|
1893
|
-
/** Add an Apple ID to the social profiles on the current user's account. */
|
1894
|
-
linkApple(bearerToken: string, body: ApiAccountApple, options?: any): Promise<any>;
|
1895
|
-
/** Add a device ID to the social profiles on the current user's account. */
|
1896
|
-
linkDevice(bearerToken: string, body: ApiAccountDevice, options?: any): Promise<any>;
|
1831
|
+
authenticateMezon(basePath: string, basicAuthUsername: string, basicAuthPassword: string, account: ApiAccountMezon, create?: boolean, username?: string, isRemember?: boolean, options?: any): Promise<ApiSession>;
|
1897
1832
|
/** Add an email+password to the social profiles on the current user's account. */
|
1898
1833
|
linkEmail(bearerToken: string, body: ApiAccountEmail, options?: any): Promise<any>;
|
1899
|
-
/** Add Facebook to the social profiles on the current user's account. */
|
1900
|
-
linkFacebook(bearerToken: string, account: ApiAccountFacebook, sync?: boolean, options?: any): Promise<any>;
|
1901
|
-
/** Add Facebook Instant Game to the social profiles on the current user's account. */
|
1902
|
-
linkFacebookInstantGame(bearerToken: string, body: ApiAccountFacebookInstantGame, options?: any): Promise<any>;
|
1903
|
-
/** Add Apple's GameCenter to the social profiles on the current user's account. */
|
1904
|
-
linkGameCenter(bearerToken: string, body: ApiAccountGameCenter, options?: any): Promise<any>;
|
1905
1834
|
/** Add a mezon ID to the social profiles on the current user's account. */
|
1906
1835
|
linkMezon(bearerToken: string, body: ApiAccountMezon, options?: any): Promise<any>;
|
1907
|
-
/** Add Google to the social profiles on the current user's account. */
|
1908
|
-
linkGoogle(bearerToken: string, body: ApiAccountGoogle, options?: any): Promise<any>;
|
1909
|
-
/** Add Steam to the social profiles on the current user's account. */
|
1910
|
-
linkSteam(bearerToken: string, body: ApiLinkSteamRequest, options?: any): Promise<any>;
|
1911
1836
|
/** Authenticate a user with an email+password against the server. */
|
1912
1837
|
registrationEmail(bearerToken: string, body: ApiRegistrationEmailRequest, options?: any): Promise<ApiSession>;
|
1913
1838
|
/** Refresh a user's session using a refresh token retrieved from a previous authentication request. */
|
1914
1839
|
sessionRefresh(basicAuthUsername: string, basicAuthPassword: string, body: ApiSessionRefreshRequest, options?: any): Promise<ApiSession>;
|
1915
|
-
/** Remove the Apple ID from the social profiles on the current user's account. */
|
1916
|
-
unlinkApple(bearerToken: string, body: ApiAccountApple, options?: any): Promise<any>;
|
1917
|
-
/** Remove the device ID from the social profiles on the current user's account. */
|
1918
|
-
unlinkDevice(bearerToken: string, body: ApiAccountDevice, options?: any): Promise<any>;
|
1919
1840
|
/** Remove the email+password from the social profiles on the current user's account. */
|
1920
1841
|
unlinkEmail(bearerToken: string, body: ApiAccountEmail, options?: any): Promise<any>;
|
1921
|
-
/** Remove Facebook from the social profiles on the current user's account. */
|
1922
|
-
unlinkFacebook(bearerToken: string, body: ApiAccountFacebook, options?: any): Promise<any>;
|
1923
|
-
/** Remove Facebook Instant Game profile from the social profiles on the current user's account. */
|
1924
|
-
unlinkFacebookInstantGame(bearerToken: string, body: ApiAccountFacebookInstantGame, options?: any): Promise<any>;
|
1925
|
-
/** Remove Apple's GameCenter from the social profiles on the current user's account. */
|
1926
|
-
unlinkGameCenter(bearerToken: string, body: ApiAccountGameCenter, options?: any): Promise<any>;
|
1927
|
-
/** Remove Google from the social profiles on the current user's account. */
|
1928
|
-
unlinkGoogle(bearerToken: string, body: ApiAccountGoogle, options?: any): Promise<any>;
|
1929
1842
|
/** Remove the mezon ID from the social profiles on the current user's account. */
|
1930
1843
|
unlinkMezon(bearerToken: string, body: ApiAccountMezon, options?: any): Promise<any>;
|
1931
|
-
/** Remove Steam from the social profiles on the current user's account. */
|
1932
|
-
unlinkSteam(bearerToken: string, body: ApiAccountSteam, options?: any): Promise<any>;
|
1933
1844
|
/** List activity */
|
1934
1845
|
listActivity(bearerToken: string, options?: any): Promise<ApiListUserActivity>;
|
1935
1846
|
/** Create user activity */
|
@@ -2058,10 +1969,6 @@ export declare class MezonApi {
|
|
2058
1969
|
addFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: any): Promise<any>;
|
2059
1970
|
/** Block one or more users by ID or username. */
|
2060
1971
|
blockFriends(bearerToken: string, ids?: Array<string>, usernames?: Array<string>, options?: any): Promise<any>;
|
2061
|
-
/** Import Facebook friends and add them to a user's account. */
|
2062
|
-
importFacebookFriends(bearerToken: string, account: ApiAccountFacebook, reset?: boolean, options?: any): Promise<any>;
|
2063
|
-
/** Import Steam friends and add them to a user's account. */
|
2064
|
-
importSteamFriends(bearerToken: string, account: ApiAccountSteam, reset?: boolean, options?: any): Promise<any>;
|
2065
1972
|
/** List GetChannelCategoryNotiSettingsList */
|
2066
1973
|
getChannelCategoryNotiSettingsList(bearerToken: string, clanId?: string, options?: any): Promise<ApiNotificationChannelCategorySettingList>;
|
2067
1974
|
/** */
|
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,
|
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>;
|