rubjs 2.4.0 → 2.4.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.
Files changed (401) hide show
  1. package/package.json +1 -1
  2. package/rubjs/client.d.ts +0 -35
  3. package/rubjs/client.js +0 -48
  4. package/rubjs/crypto/index.d.ts +0 -12
  5. package/rubjs/crypto/index.js +0 -95
  6. package/rubjs/index.d.ts +0 -7
  7. package/rubjs/index.js +0 -51
  8. package/rubjs/methods/advanced/builder.d.ts +0 -3
  9. package/rubjs/methods/advanced/builder.js +0 -41
  10. package/rubjs/methods/advanced/index.d.ts +0 -2
  11. package/rubjs/methods/advanced/index.js +0 -8
  12. package/rubjs/methods/auth/index.d.ts +0 -5
  13. package/rubjs/methods/auth/index.js +0 -14
  14. package/rubjs/methods/auth/logout.d.ts +0 -3
  15. package/rubjs/methods/auth/logout.js +0 -17
  16. package/rubjs/methods/auth/registerDevice.d.ts +0 -3
  17. package/rubjs/methods/auth/registerDevice.js +0 -61
  18. package/rubjs/methods/auth/sendCode.d.ts +0 -3
  19. package/rubjs/methods/auth/sendCode.js +0 -25
  20. package/rubjs/methods/auth/signIn.d.ts +0 -3
  21. package/rubjs/methods/auth/signIn.js +0 -24
  22. package/rubjs/methods/channels/addChannel.d.ts +0 -3
  23. package/rubjs/methods/channels/addChannel.js +0 -26
  24. package/rubjs/methods/channels/addChannelMembers.d.ts +0 -3
  25. package/rubjs/methods/channels/addChannelMembers.js +0 -22
  26. package/rubjs/methods/channels/banChannelMember.d.ts +0 -3
  27. package/rubjs/methods/channels/banChannelMember.js +0 -23
  28. package/rubjs/methods/channels/cancelChangeObjectOwner.d.ts +0 -3
  29. package/rubjs/methods/channels/cancelChangeObjectOwner.js +0 -17
  30. package/rubjs/methods/channels/channelPreviewByJoinLink.d.ts +0 -3
  31. package/rubjs/methods/channels/channelPreviewByJoinLink.js +0 -19
  32. package/rubjs/methods/channels/checkChannelUsername.d.ts +0 -3
  33. package/rubjs/methods/channels/checkChannelUsername.js +0 -19
  34. package/rubjs/methods/channels/createChannelVoiceChat.d.ts +0 -3
  35. package/rubjs/methods/channels/createChannelVoiceChat.js +0 -17
  36. package/rubjs/methods/channels/discardChannelVoiceChat.d.ts +0 -3
  37. package/rubjs/methods/channels/discardChannelVoiceChat.js +0 -20
  38. package/rubjs/methods/channels/editChannelInfo.d.ts +0 -4
  39. package/rubjs/methods/channels/editChannelInfo.js +0 -48
  40. package/rubjs/methods/channels/getBannedChannelMembers.d.ts +0 -3
  41. package/rubjs/methods/channels/getBannedChannelMembers.js +0 -20
  42. package/rubjs/methods/channels/getChannelAdminAccessList.d.ts +0 -3
  43. package/rubjs/methods/channels/getChannelAdminAccessList.js +0 -20
  44. package/rubjs/methods/channels/getChannelAdminMembers.d.ts +0 -3
  45. package/rubjs/methods/channels/getChannelAdminMembers.js +0 -20
  46. package/rubjs/methods/channels/getChannelAllMembers.d.ts +0 -3
  47. package/rubjs/methods/channels/getChannelAllMembers.js +0 -21
  48. package/rubjs/methods/channels/getChannelInfo.d.ts +0 -3
  49. package/rubjs/methods/channels/getChannelInfo.js +0 -17
  50. package/rubjs/methods/channels/getChannelLink.d.ts +0 -3
  51. package/rubjs/methods/channels/getChannelLink.js +0 -17
  52. package/rubjs/methods/channels/getPendingObjectOwner.d.ts +0 -3
  53. package/rubjs/methods/channels/getPendingObjectOwner.js +0 -17
  54. package/rubjs/methods/channels/index.d.ts +0 -26
  55. package/rubjs/methods/channels/index.js +0 -56
  56. package/rubjs/methods/channels/joinChannelAction.d.ts +0 -3
  57. package/rubjs/methods/channels/joinChannelAction.js +0 -19
  58. package/rubjs/methods/channels/joinChannelByLink.d.ts +0 -3
  59. package/rubjs/methods/channels/joinChannelByLink.js +0 -19
  60. package/rubjs/methods/channels/leaveChannelVoiceChat.d.ts +0 -3
  61. package/rubjs/methods/channels/leaveChannelVoiceChat.js +0 -20
  62. package/rubjs/methods/channels/removeChannel.d.ts +0 -3
  63. package/rubjs/methods/channels/removeChannel.js +0 -17
  64. package/rubjs/methods/channels/requestChangeObjectOwner.d.ts +0 -3
  65. package/rubjs/methods/channels/requestChangeObjectOwner.js +0 -20
  66. package/rubjs/methods/channels/seenChannelMessages.d.ts +0 -3
  67. package/rubjs/methods/channels/seenChannelMessages.js +0 -21
  68. package/rubjs/methods/channels/setChannelLink.d.ts +0 -3
  69. package/rubjs/methods/channels/setChannelLink.js +0 -17
  70. package/rubjs/methods/channels/setChannelVoiceChatSetting.d.ts +0 -3
  71. package/rubjs/methods/channels/setChannelVoiceChatSetting.js +0 -26
  72. package/rubjs/methods/channels/updateChannelUsername.d.ts +0 -3
  73. package/rubjs/methods/channels/updateChannelUsername.js +0 -20
  74. package/rubjs/methods/chats/actionOnJoinRequest.d.ts +0 -3
  75. package/rubjs/methods/chats/actionOnJoinRequest.js +0 -22
  76. package/rubjs/methods/chats/addLiveComment.d.ts +0 -3
  77. package/rubjs/methods/chats/addLiveComment.js +0 -17
  78. package/rubjs/methods/chats/clickMessageUrl.d.ts +0 -3
  79. package/rubjs/methods/chats/clickMessageUrl.js +0 -17
  80. package/rubjs/methods/chats/createJoinLink.d.ts +0 -3
  81. package/rubjs/methods/chats/createJoinLink.js +0 -23
  82. package/rubjs/methods/chats/deleteAvatar.d.ts +0 -3
  83. package/rubjs/methods/chats/deleteAvatar.js +0 -17
  84. package/rubjs/methods/chats/deleteChatHistory.d.ts +0 -3
  85. package/rubjs/methods/chats/deleteChatHistory.js +0 -20
  86. package/rubjs/methods/chats/editJoinLink.d.ts +0 -3
  87. package/rubjs/methods/chats/editJoinLink.js +0 -34
  88. package/rubjs/methods/chats/getAbsObjects.d.ts +0 -3
  89. package/rubjs/methods/chats/getAbsObjects.js +0 -19
  90. package/rubjs/methods/chats/getAvatars.d.ts +0 -3
  91. package/rubjs/methods/chats/getAvatars.js +0 -17
  92. package/rubjs/methods/chats/getChatReaction.d.ts +0 -3
  93. package/rubjs/methods/chats/getChatReaction.js +0 -17
  94. package/rubjs/methods/chats/getChats.d.ts +0 -3
  95. package/rubjs/methods/chats/getChats.js +0 -17
  96. package/rubjs/methods/chats/getChatsUpdates.d.ts +0 -3
  97. package/rubjs/methods/chats/getChatsUpdates.js +0 -17
  98. package/rubjs/methods/chats/getJoinLinks.d.ts +0 -3
  99. package/rubjs/methods/chats/getJoinLinks.js +0 -17
  100. package/rubjs/methods/chats/getJoinRequests.d.ts +0 -3
  101. package/rubjs/methods/chats/getJoinRequests.js +0 -17
  102. package/rubjs/methods/chats/getLinkFromAppUrl.d.ts +0 -3
  103. package/rubjs/methods/chats/getLinkFromAppUrl.js +0 -17
  104. package/rubjs/methods/chats/getLiveComments.d.ts +0 -3
  105. package/rubjs/methods/chats/getLiveComments.js +0 -17
  106. package/rubjs/methods/chats/getLivePlayUrl.d.ts +0 -3
  107. package/rubjs/methods/chats/getLivePlayUrl.js +0 -17
  108. package/rubjs/methods/chats/getLiveStatus.d.ts +0 -3
  109. package/rubjs/methods/chats/getLiveStatus.js +0 -17
  110. package/rubjs/methods/chats/getObjectInfoByUsername.d.ts +0 -3
  111. package/rubjs/methods/chats/getObjectInfoByUsername.js +0 -19
  112. package/rubjs/methods/chats/getTopChatUsers.d.ts +0 -3
  113. package/rubjs/methods/chats/getTopChatUsers.js +0 -18
  114. package/rubjs/methods/chats/index.d.ts +0 -29
  115. package/rubjs/methods/chats/index.js +0 -62
  116. package/rubjs/methods/chats/removeFromTopChatUsers.d.ts +0 -3
  117. package/rubjs/methods/chats/removeFromTopChatUsers.js +0 -17
  118. package/rubjs/methods/chats/removeJoinLink.d.ts +0 -3
  119. package/rubjs/methods/chats/removeJoinLink.js +0 -19
  120. package/rubjs/methods/chats/searchChatMessages.d.ts +0 -3
  121. package/rubjs/methods/chats/searchChatMessages.js +0 -23
  122. package/rubjs/methods/chats/searchGlobalMessages.d.ts +0 -3
  123. package/rubjs/methods/chats/searchGlobalMessages.js +0 -17
  124. package/rubjs/methods/chats/seenChats.d.ts +0 -3
  125. package/rubjs/methods/chats/seenChats.js +0 -17
  126. package/rubjs/methods/chats/sendChatActivity.d.ts +0 -3
  127. package/rubjs/methods/chats/sendChatActivity.js +0 -19
  128. package/rubjs/methods/chats/sendLive.d.ts +0 -3
  129. package/rubjs/methods/chats/sendLive.js +0 -28
  130. package/rubjs/methods/chats/setActionChat.d.ts +0 -3
  131. package/rubjs/methods/chats/setActionChat.js +0 -19
  132. package/rubjs/methods/chats/uploadAvatar.d.ts +0 -3
  133. package/rubjs/methods/chats/uploadAvatar.js +0 -29
  134. package/rubjs/methods/contacts/addAddressBook.d.ts +0 -3
  135. package/rubjs/methods/contacts/addAddressBook.js +0 -17
  136. package/rubjs/methods/contacts/deleteContact.d.ts +0 -3
  137. package/rubjs/methods/contacts/deleteContact.js +0 -17
  138. package/rubjs/methods/contacts/getContacts.d.ts +0 -3
  139. package/rubjs/methods/contacts/getContacts.js +0 -17
  140. package/rubjs/methods/contacts/getContactsLastOnline.d.ts +0 -3
  141. package/rubjs/methods/contacts/getContactsLastOnline.js +0 -17
  142. package/rubjs/methods/contacts/getContactsUpdates.d.ts +0 -3
  143. package/rubjs/methods/contacts/getContactsUpdates.js +0 -17
  144. package/rubjs/methods/contacts/index.d.ts +0 -7
  145. package/rubjs/methods/contacts/index.js +0 -18
  146. package/rubjs/methods/contacts/resetContacts.d.ts +0 -3
  147. package/rubjs/methods/contacts/resetContacts.js +0 -18
  148. package/rubjs/methods/extras/banMember.d.ts +0 -3
  149. package/rubjs/methods/extras/banMember.js +0 -20
  150. package/rubjs/methods/extras/getInfo.d.ts +0 -3
  151. package/rubjs/methods/extras/getInfo.js +0 -26
  152. package/rubjs/methods/extras/getObjectByUsername.d.ts +0 -3
  153. package/rubjs/methods/extras/getObjectByUsername.js +0 -19
  154. package/rubjs/methods/extras/getProfileLinkItems.d.ts +0 -3
  155. package/rubjs/methods/extras/getProfileLinkItems.js +0 -17
  156. package/rubjs/methods/extras/getRelatedObjects.d.ts +0 -3
  157. package/rubjs/methods/extras/getRelatedObjects.js +0 -17
  158. package/rubjs/methods/extras/getTranscription.d.ts +0 -3
  159. package/rubjs/methods/extras/getTranscription.js +0 -20
  160. package/rubjs/methods/extras/index.d.ts +0 -13
  161. package/rubjs/methods/extras/index.js +0 -30
  162. package/rubjs/methods/extras/join.d.ts +0 -3
  163. package/rubjs/methods/extras/join.js +0 -22
  164. package/rubjs/methods/extras/leaveChat.d.ts +0 -3
  165. package/rubjs/methods/extras/leaveChat.js +0 -20
  166. package/rubjs/methods/extras/reportObject.d.ts +0 -14
  167. package/rubjs/methods/extras/reportObject.js +0 -32
  168. package/rubjs/methods/extras/searchGlobalObjects.d.ts +0 -3
  169. package/rubjs/methods/extras/searchGlobalObjects.js +0 -17
  170. package/rubjs/methods/extras/transcribeVoice.d.ts +0 -3
  171. package/rubjs/methods/extras/transcribeVoice.js +0 -17
  172. package/rubjs/methods/extras/userIsAdmin.d.ts +0 -3
  173. package/rubjs/methods/extras/userIsAdmin.js +0 -29
  174. package/rubjs/methods/gif/addToMyGifSet.d.ts +0 -3
  175. package/rubjs/methods/gif/addToMyGifSet.js +0 -17
  176. package/rubjs/methods/gif/getMyGifSet.d.ts +0 -3
  177. package/rubjs/methods/gif/getMyGifSet.js +0 -17
  178. package/rubjs/methods/gif/index.d.ts +0 -4
  179. package/rubjs/methods/gif/index.js +0 -12
  180. package/rubjs/methods/gif/removeFromMyGifSet.d.ts +0 -3
  181. package/rubjs/methods/gif/removeFromMyGifSet.js +0 -17
  182. package/rubjs/methods/groups/addGroup.d.ts +0 -3
  183. package/rubjs/methods/groups/addGroup.js +0 -19
  184. package/rubjs/methods/groups/addGroupMembers.d.ts +0 -3
  185. package/rubjs/methods/groups/addGroupMembers.js +0 -19
  186. package/rubjs/methods/groups/banGroupMember.d.ts +0 -3
  187. package/rubjs/methods/groups/banGroupMember.js +0 -23
  188. package/rubjs/methods/groups/createGroupVoiceChat.d.ts +0 -3
  189. package/rubjs/methods/groups/createGroupVoiceChat.js +0 -17
  190. package/rubjs/methods/groups/deleteNoAccessGroupChat.d.ts +0 -3
  191. package/rubjs/methods/groups/deleteNoAccessGroupChat.js +0 -17
  192. package/rubjs/methods/groups/discardGroupVoiceChat.d.ts +0 -3
  193. package/rubjs/methods/groups/discardGroupVoiceChat.js +0 -20
  194. package/rubjs/methods/groups/editGroupInfo.d.ts +0 -6
  195. package/rubjs/methods/groups/editGroupInfo.js +0 -51
  196. package/rubjs/methods/groups/getBannedGroupMembers.d.ts +0 -3
  197. package/rubjs/methods/groups/getBannedGroupMembers.js +0 -17
  198. package/rubjs/methods/groups/getGroupAdminAccessList.d.ts +0 -3
  199. package/rubjs/methods/groups/getGroupAdminAccessList.js +0 -20
  200. package/rubjs/methods/groups/getGroupAdminMembers.d.ts +0 -3
  201. package/rubjs/methods/groups/getGroupAdminMembers.js +0 -17
  202. package/rubjs/methods/groups/getGroupAllMembers.d.ts +0 -3
  203. package/rubjs/methods/groups/getGroupAllMembers.js +0 -21
  204. package/rubjs/methods/groups/getGroupDefaultAccess.d.ts +0 -3
  205. package/rubjs/methods/groups/getGroupDefaultAccess.js +0 -17
  206. package/rubjs/methods/groups/getGroupInfo.d.ts +0 -3
  207. package/rubjs/methods/groups/getGroupInfo.js +0 -17
  208. package/rubjs/methods/groups/getGroupLink.d.ts +0 -3
  209. package/rubjs/methods/groups/getGroupLink.js +0 -17
  210. package/rubjs/methods/groups/getGroupMentionList.d.ts +0 -3
  211. package/rubjs/methods/groups/getGroupMentionList.js +0 -20
  212. package/rubjs/methods/groups/getGroupOnlineCount.d.ts +0 -3
  213. package/rubjs/methods/groups/getGroupOnlineCount.js +0 -17
  214. package/rubjs/methods/groups/getGroupVoiceChatUpdates.d.ts +0 -3
  215. package/rubjs/methods/groups/getGroupVoiceChatUpdates.js +0 -21
  216. package/rubjs/methods/groups/groupPreviewByJoinLink.d.ts +0 -3
  217. package/rubjs/methods/groups/groupPreviewByJoinLink.js +0 -19
  218. package/rubjs/methods/groups/index.d.ts +0 -28
  219. package/rubjs/methods/groups/index.js +0 -60
  220. package/rubjs/methods/groups/joinGroup.d.ts +0 -3
  221. package/rubjs/methods/groups/joinGroup.js +0 -19
  222. package/rubjs/methods/groups/leaveGroup.d.ts +0 -3
  223. package/rubjs/methods/groups/leaveGroup.js +0 -17
  224. package/rubjs/methods/groups/leaveGroupVoiceChat.d.ts +0 -3
  225. package/rubjs/methods/groups/leaveGroupVoiceChat.js +0 -20
  226. package/rubjs/methods/groups/removeGroup.d.ts +0 -3
  227. package/rubjs/methods/groups/removeGroup.js +0 -17
  228. package/rubjs/methods/groups/seenGroupMessages.d.ts +0 -3
  229. package/rubjs/methods/groups/seenGroupMessages.js +0 -21
  230. package/rubjs/methods/groups/setGroupAdmin.d.ts +0 -5
  231. package/rubjs/methods/groups/setGroupAdmin.js +0 -26
  232. package/rubjs/methods/groups/setGroupDefaultAccess.d.ts +0 -4
  233. package/rubjs/methods/groups/setGroupDefaultAccess.js +0 -22
  234. package/rubjs/methods/groups/setGroupLink.d.ts +0 -3
  235. package/rubjs/methods/groups/setGroupLink.js +0 -17
  236. package/rubjs/methods/groups/setGroupVoiceChatSetting.d.ts +0 -3
  237. package/rubjs/methods/groups/setGroupVoiceChatSetting.js +0 -26
  238. package/rubjs/methods/index.d.ts +0 -195
  239. package/rubjs/methods/index.js +0 -929
  240. package/rubjs/methods/messages/actionOnMessageReaction.d.ts +0 -3
  241. package/rubjs/methods/messages/actionOnMessageReaction.js +0 -25
  242. package/rubjs/methods/messages/createPoll.d.ts +0 -3
  243. package/rubjs/methods/messages/createPoll.js +0 -35
  244. package/rubjs/methods/messages/deleteMessages.d.ts +0 -3
  245. package/rubjs/methods/messages/deleteMessages.js +0 -26
  246. package/rubjs/methods/messages/editMessage.d.ts +0 -3
  247. package/rubjs/methods/messages/editMessage.js +0 -23
  248. package/rubjs/methods/messages/forwardMessages.d.ts +0 -3
  249. package/rubjs/methods/messages/forwardMessages.js +0 -31
  250. package/rubjs/methods/messages/getMessageShareUrl.d.ts +0 -3
  251. package/rubjs/methods/messages/getMessageShareUrl.js +0 -17
  252. package/rubjs/methods/messages/getMessages.d.ts +0 -3
  253. package/rubjs/methods/messages/getMessages.js +0 -23
  254. package/rubjs/methods/messages/getMessagesByID.d.ts +0 -3
  255. package/rubjs/methods/messages/getMessagesByID.js +0 -22
  256. package/rubjs/methods/messages/getMessagesInterval.d.ts +0 -3
  257. package/rubjs/methods/messages/getMessagesInterval.js +0 -20
  258. package/rubjs/methods/messages/getMessagesUpdates.d.ts +0 -3
  259. package/rubjs/methods/messages/getMessagesUpdates.js +0 -17
  260. package/rubjs/methods/messages/getPollOptionVoters.d.ts +0 -3
  261. package/rubjs/methods/messages/getPollOptionVoters.js +0 -21
  262. package/rubjs/methods/messages/getPollStatus.d.ts +0 -3
  263. package/rubjs/methods/messages/getPollStatus.js +0 -17
  264. package/rubjs/methods/messages/index.d.ts +0 -26
  265. package/rubjs/methods/messages/index.js +0 -56
  266. package/rubjs/methods/messages/requestSendFile.d.ts +0 -4
  267. package/rubjs/methods/messages/requestSendFile.js +0 -22
  268. package/rubjs/methods/messages/sendDocument.d.ts +0 -3
  269. package/rubjs/methods/messages/sendDocument.js +0 -17
  270. package/rubjs/methods/messages/sendGif.d.ts +0 -3
  271. package/rubjs/methods/messages/sendGif.js +0 -17
  272. package/rubjs/methods/messages/sendMessage.d.ts +0 -3
  273. package/rubjs/methods/messages/sendMessage.js +0 -146
  274. package/rubjs/methods/messages/sendMusic.d.ts +0 -3
  275. package/rubjs/methods/messages/sendMusic.js +0 -17
  276. package/rubjs/methods/messages/sendPhoto.d.ts +0 -3
  277. package/rubjs/methods/messages/sendPhoto.js +0 -17
  278. package/rubjs/methods/messages/sendSticker.d.ts +0 -3
  279. package/rubjs/methods/messages/sendSticker.js +0 -17
  280. package/rubjs/methods/messages/sendText.d.ts +0 -3
  281. package/rubjs/methods/messages/sendText.js +0 -17
  282. package/rubjs/methods/messages/sendVideo.d.ts +0 -3
  283. package/rubjs/methods/messages/sendVideo.js +0 -17
  284. package/rubjs/methods/messages/sendVideoMessage.d.ts +0 -3
  285. package/rubjs/methods/messages/sendVideoMessage.js +0 -17
  286. package/rubjs/methods/messages/sendVoice.d.ts +0 -3
  287. package/rubjs/methods/messages/sendVoice.js +0 -17
  288. package/rubjs/methods/messages/setPinMessage.d.ts +0 -3
  289. package/rubjs/methods/messages/setPinMessage.js +0 -23
  290. package/rubjs/methods/messages/votePoll.d.ts +0 -3
  291. package/rubjs/methods/messages/votePoll.js +0 -17
  292. package/rubjs/methods/settings/changePassword.d.ts +0 -3
  293. package/rubjs/methods/settings/changePassword.js +0 -17
  294. package/rubjs/methods/settings/checkTwoStepPasscode.d.ts +0 -3
  295. package/rubjs/methods/settings/checkTwoStepPasscode.js +0 -17
  296. package/rubjs/methods/settings/deleteFolder.d.ts +0 -3
  297. package/rubjs/methods/settings/deleteFolder.js +0 -17
  298. package/rubjs/methods/settings/getBlockedUsers.d.ts +0 -3
  299. package/rubjs/methods/settings/getBlockedUsers.js +0 -17
  300. package/rubjs/methods/settings/getFolders.d.ts +0 -3
  301. package/rubjs/methods/settings/getFolders.js +0 -17
  302. package/rubjs/methods/settings/getMySessions.d.ts +0 -3
  303. package/rubjs/methods/settings/getMySessions.js +0 -17
  304. package/rubjs/methods/settings/getPrivacySetting.d.ts +0 -3
  305. package/rubjs/methods/settings/getPrivacySetting.js +0 -17
  306. package/rubjs/methods/settings/getSuggestedFolders.d.ts +0 -3
  307. package/rubjs/methods/settings/getSuggestedFolders.js +0 -17
  308. package/rubjs/methods/settings/getTwoPasscodeStatus.d.ts +0 -3
  309. package/rubjs/methods/settings/getTwoPasscodeStatus.js +0 -17
  310. package/rubjs/methods/settings/index.d.ts +0 -19
  311. package/rubjs/methods/settings/index.js +0 -42
  312. package/rubjs/methods/settings/requestRecoveryEmail.d.ts +0 -3
  313. package/rubjs/methods/settings/requestRecoveryEmail.js +0 -20
  314. package/rubjs/methods/settings/setSetting.d.ts +0 -5
  315. package/rubjs/methods/settings/setSetting.js +0 -50
  316. package/rubjs/methods/settings/setupTwoStepVerification.d.ts +0 -3
  317. package/rubjs/methods/settings/setupTwoStepVerification.js +0 -21
  318. package/rubjs/methods/settings/terminateOtherSessions.d.ts +0 -3
  319. package/rubjs/methods/settings/terminateOtherSessions.js +0 -18
  320. package/rubjs/methods/settings/terminateSession.d.ts +0 -3
  321. package/rubjs/methods/settings/terminateSession.js +0 -17
  322. package/rubjs/methods/settings/turnOffTwoStep.d.ts +0 -3
  323. package/rubjs/methods/settings/turnOffTwoStep.js +0 -18
  324. package/rubjs/methods/settings/updateProfile.d.ts +0 -3
  325. package/rubjs/methods/settings/updateProfile.js +0 -30
  326. package/rubjs/methods/settings/updateUsername.d.ts +0 -3
  327. package/rubjs/methods/settings/updateUsername.js +0 -17
  328. package/rubjs/methods/settings/verifyRecoveryEmail.d.ts +0 -3
  329. package/rubjs/methods/settings/verifyRecoveryEmail.js +0 -17
  330. package/rubjs/methods/stickers/actionOnStickerSet.d.ts +0 -3
  331. package/rubjs/methods/stickers/actionOnStickerSet.js +0 -19
  332. package/rubjs/methods/stickers/getMyStickerSets.d.ts +0 -3
  333. package/rubjs/methods/stickers/getMyStickerSets.js +0 -17
  334. package/rubjs/methods/stickers/getStickerSetByID.d.ts +0 -3
  335. package/rubjs/methods/stickers/getStickerSetByID.js +0 -17
  336. package/rubjs/methods/stickers/getStickersByEmoji.d.ts +0 -3
  337. package/rubjs/methods/stickers/getStickersByEmoji.js +0 -17
  338. package/rubjs/methods/stickers/getStickersBySetIds.d.ts +0 -3
  339. package/rubjs/methods/stickers/getStickersBySetIds.js +0 -19
  340. package/rubjs/methods/stickers/getTrendStickerSets.d.ts +0 -3
  341. package/rubjs/methods/stickers/getTrendStickerSets.js +0 -17
  342. package/rubjs/methods/stickers/index.d.ts +0 -8
  343. package/rubjs/methods/stickers/index.js +0 -20
  344. package/rubjs/methods/stickers/searchStickers.d.ts +0 -3
  345. package/rubjs/methods/stickers/searchStickers.js +0 -17
  346. package/rubjs/methods/users/checkUserUsername.d.ts +0 -3
  347. package/rubjs/methods/users/checkUserUsername.js +0 -17
  348. package/rubjs/methods/users/deleteUserChat.d.ts +0 -3
  349. package/rubjs/methods/users/deleteUserChat.js +0 -20
  350. package/rubjs/methods/users/getMe.d.ts +0 -3
  351. package/rubjs/methods/users/getMe.js +0 -17
  352. package/rubjs/methods/users/getUserInfo.d.ts +0 -4
  353. package/rubjs/methods/users/getUserInfo.js +0 -18
  354. package/rubjs/methods/users/index.d.ts +0 -6
  355. package/rubjs/methods/users/index.js +0 -16
  356. package/rubjs/methods/users/setBlockUser.d.ts +0 -3
  357. package/rubjs/methods/users/setBlockUser.js +0 -19
  358. package/rubjs/methods/utilities/download.d.ts +0 -4
  359. package/rubjs/methods/utilities/download.js +0 -17
  360. package/rubjs/methods/utilities/downloadProfilePicture.d.ts +0 -3
  361. package/rubjs/methods/utilities/downloadProfilePicture.js +0 -27
  362. package/rubjs/methods/utilities/get.d.ts +0 -4
  363. package/rubjs/methods/utilities/get.js +0 -21
  364. package/rubjs/methods/utilities/index.d.ts +0 -8
  365. package/rubjs/methods/utilities/index.js +0 -20
  366. package/rubjs/methods/utilities/post.d.ts +0 -4
  367. package/rubjs/methods/utilities/post.js +0 -21
  368. package/rubjs/methods/utilities/run.d.ts +0 -3
  369. package/rubjs/methods/utilities/run.js +0 -24
  370. package/rubjs/methods/utilities/start.d.ts +0 -3
  371. package/rubjs/methods/utilities/start.js +0 -70
  372. package/rubjs/methods/utilities/thumbnail.d.ts +0 -6
  373. package/rubjs/methods/utilities/thumbnail.js +0 -75
  374. package/rubjs/network/index.d.ts +0 -38
  375. package/rubjs/network/index.js +0 -338
  376. package/rubjs/parser/index.d.ts +0 -25
  377. package/rubjs/parser/index.js +0 -112
  378. package/rubjs/session/index.d.ts +0 -18
  379. package/rubjs/session/index.js +0 -57
  380. package/rubjs/types/auth.d.ts +0 -40
  381. package/rubjs/types/auth.js +0 -2
  382. package/rubjs/types/chats.d.ts +0 -79
  383. package/rubjs/types/chats.js +0 -2
  384. package/rubjs/types/decorators.d.ts +0 -168
  385. package/rubjs/types/decorators.js +0 -2
  386. package/rubjs/types/groups.d.ts +0 -129
  387. package/rubjs/types/groups.js +0 -2
  388. package/rubjs/types/index.d.ts +0 -8
  389. package/rubjs/types/index.js +0 -53
  390. package/rubjs/types/message.d.ts +0 -25
  391. package/rubjs/types/message.js +0 -61
  392. package/rubjs/types/messages.d.ts +0 -176
  393. package/rubjs/types/messages.js +0 -2
  394. package/rubjs/types/users.d.ts +0 -64
  395. package/rubjs/types/users.js +0 -2
  396. package/rubjs/utils/filters.d.ts +0 -29
  397. package/rubjs/utils/filters.js +0 -123
  398. package/rubjs/utils/index.d.ts +0 -3
  399. package/rubjs/utils/index.js +0 -10
  400. package/rubjs/utils/utils.d.ts +0 -10
  401. package/rubjs/utils/utils.js +0 -12
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function checkChannelUsername(username) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("checkChannelUsername", {
15
- username: username.replace("@", ""),
16
- });
17
- });
18
- }
19
- exports.default = checkChannelUsername;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function createChannelVoiceChat(this: Client, channel_guid: string): Promise<any>;
3
- export default createChannelVoiceChat;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function createChannelVoiceChat(channel_guid) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("createChannelVoiceChat", { channel_guid });
15
- });
16
- }
17
- exports.default = createChannelVoiceChat;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function discardChannelVoiceChat(this: Client, channel_guid: string, voice_chat_id: string): Promise<any>;
3
- export default discardChannelVoiceChat;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function discardChannelVoiceChat(channel_guid, voice_chat_id) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("discardChannelVoiceChat", {
15
- channel_guid,
16
- voice_chat_id,
17
- });
18
- });
19
- }
20
- exports.default = discardChannelVoiceChat;
@@ -1,4 +0,0 @@
1
- import Client from "../..";
2
- type ChatHistory = "Hidden" | "Visible";
3
- declare function editChannelInfo(this: Client, channel_guid: string, title?: string, description?: string, channel_type?: string, sign_messages?: boolean, is_restricted_content?: boolean, chat_reaction_setting?: {}, chat_history_for_new_members?: ChatHistory): Promise<any>;
4
- export default editChannelInfo;
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function editChannelInfo(channel_guid, title, description, channel_type, sign_messages, is_restricted_content, chat_reaction_setting, chat_history_for_new_members) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- let input = { channel_guid, updated_parameters: [] };
15
- if (title) {
16
- input.title = title;
17
- input.updated_parameters.push("title");
18
- }
19
- if (description !== undefined) {
20
- input.description = description;
21
- input.updated_parameters.push("description");
22
- }
23
- if (channel_type !== undefined) {
24
- input.channel_type = channel_type;
25
- input.updated_parameters.push("channel_type");
26
- }
27
- if (sign_messages !== undefined) {
28
- input.sign_messages = sign_messages;
29
- input.updated_parameters.push("sign_messages");
30
- }
31
- if (chat_reaction_setting !== undefined) {
32
- input.chat_reaction_setting = chat_reaction_setting;
33
- input.updated_parameters.push("chat_reaction_setting");
34
- }
35
- if (is_restricted_content !== undefined) {
36
- input.is_restricted_content = is_restricted_content;
37
- input.updated_parameters.push("is_restricted_content");
38
- }
39
- if (chat_history_for_new_members) {
40
- if (!["Hidden", "Visible"].includes(chat_history_for_new_members))
41
- throw new Error('`chat_history_for_new_members` argument can only be in `["Hidden", "Visible"]`.');
42
- input.chat_history_for_new_members = chat_history_for_new_members;
43
- input.updated_parameters.push("chat_history_for_new_members");
44
- }
45
- return yield this.builder("editChannelInfo", input);
46
- });
47
- }
48
- exports.default = editChannelInfo;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function getBannedChannelMembers(this: Client, channel_guid: string, start_id?: string): Promise<any>;
3
- export default getBannedChannelMembers;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function getBannedChannelMembers(channel_guid, start_id) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("getBannedChannelMembers", {
15
- channel_guid,
16
- start_id,
17
- });
18
- });
19
- }
20
- exports.default = getBannedChannelMembers;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function getChannelAdminAccessList(this: Client, channel_guid: string, member_guid: string): Promise<any>;
3
- export default getChannelAdminAccessList;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function getChannelAdminAccessList(channel_guid, member_guid) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("getChannelAdminAccessList", {
15
- channel_guid,
16
- member_guid,
17
- });
18
- });
19
- }
20
- exports.default = getChannelAdminAccessList;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function getChannelAdminMembers(this: Client, channel_guid: string, start_id?: string): Promise<any>;
3
- export default getChannelAdminMembers;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function getChannelAdminMembers(channel_guid, start_id) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("getChannelAdminMembers", {
15
- channel_guid,
16
- start_id,
17
- });
18
- });
19
- }
20
- exports.default = getChannelAdminMembers;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function getChannelAllMembers(this: Client, channel_guid: string, search_text?: string, start_id?: string): Promise<any>;
3
- export default getChannelAllMembers;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function getChannelAllMembers(channel_guid, search_text, start_id) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("getChannelAllMembers", {
15
- channel_guid,
16
- search_text,
17
- start_id,
18
- });
19
- });
20
- }
21
- exports.default = getChannelAllMembers;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function getChannelInfo(this: Client, channel_guid: string): Promise<any>;
3
- export default getChannelInfo;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function getChannelInfo(channel_guid) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("getChannelInfo", { channel_guid });
15
- });
16
- }
17
- exports.default = getChannelInfo;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function getChannelLink(this: Client, channel_guid: string): Promise<any>;
3
- export default getChannelLink;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function getChannelLink(channel_guid) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("getChannelLink", { channel_guid });
15
- });
16
- }
17
- exports.default = getChannelLink;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function getPendingObjectOwner(this: Client, object_guid: string): Promise<any>;
3
- export default getPendingObjectOwner;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function getPendingObjectOwner(object_guid) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("getPendingObjectOwner", { object_guid });
15
- });
16
- }
17
- exports.default = getPendingObjectOwner;
@@ -1,26 +0,0 @@
1
- import addChannel from "./addChannel";
2
- import addChannelMembers from "./addChannelMembers";
3
- import banChannelMember from "./banChannelMember";
4
- import channelPreviewByJoinLink from "./channelPreviewByJoinLink";
5
- import checkChannelUsername from "./checkChannelUsername";
6
- import createChannelVoiceChat from "./createChannelVoiceChat";
7
- import discardChannelVoiceChat from "./discardChannelVoiceChat";
8
- import editChannelInfo from "./editChannelInfo";
9
- import getBannedChannelMembers from "./getBannedChannelMembers";
10
- import getChannelAdminAccessList from "./getChannelAdminAccessList";
11
- import getChannelAdminMembers from "./getChannelAdminMembers";
12
- import getChannelAllMembers from "./getChannelAllMembers";
13
- import getChannelInfo from "./getChannelInfo";
14
- import getChannelLink from "./getChannelLink";
15
- import joinChannelAction from "./joinChannelAction";
16
- import joinChannelByLink from "./joinChannelByLink";
17
- import removeChannel from "./removeChannel";
18
- import seenChannelMessages from "./seenChannelMessages";
19
- import setChannelLink from "./setChannelLink";
20
- import setChannelVoiceChatSetting from "./setChannelVoiceChatSetting";
21
- import updateChannelUsername from "./updateChannelUsername";
22
- import leaveChannelVoiceChat from "./leaveChannelVoiceChat";
23
- import getPendingObjectOwner from "./getPendingObjectOwner";
24
- import requestChangeObjectOwner from "./requestChangeObjectOwner";
25
- import cancelChangeObjectOwner from "./cancelChangeObjectOwner";
26
- export { addChannel, addChannelMembers, banChannelMember, channelPreviewByJoinLink, checkChannelUsername, createChannelVoiceChat, discardChannelVoiceChat, editChannelInfo, getBannedChannelMembers, getChannelAdminAccessList, getChannelAdminMembers, getChannelAllMembers, getChannelInfo, getChannelLink, joinChannelAction, joinChannelByLink, removeChannel, seenChannelMessages, setChannelLink, setChannelVoiceChatSetting, updateChannelUsername, leaveChannelVoiceChat, getPendingObjectOwner, requestChangeObjectOwner, cancelChangeObjectOwner };
@@ -1,56 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.cancelChangeObjectOwner = exports.requestChangeObjectOwner = exports.getPendingObjectOwner = exports.leaveChannelVoiceChat = exports.updateChannelUsername = exports.setChannelVoiceChatSetting = exports.setChannelLink = exports.seenChannelMessages = exports.removeChannel = exports.joinChannelByLink = exports.joinChannelAction = exports.getChannelLink = exports.getChannelInfo = exports.getChannelAllMembers = exports.getChannelAdminMembers = exports.getChannelAdminAccessList = exports.getBannedChannelMembers = exports.editChannelInfo = exports.discardChannelVoiceChat = exports.createChannelVoiceChat = exports.checkChannelUsername = exports.channelPreviewByJoinLink = exports.banChannelMember = exports.addChannelMembers = exports.addChannel = void 0;
7
- const addChannel_1 = __importDefault(require("./addChannel"));
8
- exports.addChannel = addChannel_1.default;
9
- const addChannelMembers_1 = __importDefault(require("./addChannelMembers"));
10
- exports.addChannelMembers = addChannelMembers_1.default;
11
- const banChannelMember_1 = __importDefault(require("./banChannelMember"));
12
- exports.banChannelMember = banChannelMember_1.default;
13
- const channelPreviewByJoinLink_1 = __importDefault(require("./channelPreviewByJoinLink"));
14
- exports.channelPreviewByJoinLink = channelPreviewByJoinLink_1.default;
15
- const checkChannelUsername_1 = __importDefault(require("./checkChannelUsername"));
16
- exports.checkChannelUsername = checkChannelUsername_1.default;
17
- const createChannelVoiceChat_1 = __importDefault(require("./createChannelVoiceChat"));
18
- exports.createChannelVoiceChat = createChannelVoiceChat_1.default;
19
- const discardChannelVoiceChat_1 = __importDefault(require("./discardChannelVoiceChat"));
20
- exports.discardChannelVoiceChat = discardChannelVoiceChat_1.default;
21
- const editChannelInfo_1 = __importDefault(require("./editChannelInfo"));
22
- exports.editChannelInfo = editChannelInfo_1.default;
23
- const getBannedChannelMembers_1 = __importDefault(require("./getBannedChannelMembers"));
24
- exports.getBannedChannelMembers = getBannedChannelMembers_1.default;
25
- const getChannelAdminAccessList_1 = __importDefault(require("./getChannelAdminAccessList"));
26
- exports.getChannelAdminAccessList = getChannelAdminAccessList_1.default;
27
- const getChannelAdminMembers_1 = __importDefault(require("./getChannelAdminMembers"));
28
- exports.getChannelAdminMembers = getChannelAdminMembers_1.default;
29
- const getChannelAllMembers_1 = __importDefault(require("./getChannelAllMembers"));
30
- exports.getChannelAllMembers = getChannelAllMembers_1.default;
31
- const getChannelInfo_1 = __importDefault(require("./getChannelInfo"));
32
- exports.getChannelInfo = getChannelInfo_1.default;
33
- const getChannelLink_1 = __importDefault(require("./getChannelLink"));
34
- exports.getChannelLink = getChannelLink_1.default;
35
- const joinChannelAction_1 = __importDefault(require("./joinChannelAction"));
36
- exports.joinChannelAction = joinChannelAction_1.default;
37
- const joinChannelByLink_1 = __importDefault(require("./joinChannelByLink"));
38
- exports.joinChannelByLink = joinChannelByLink_1.default;
39
- const removeChannel_1 = __importDefault(require("./removeChannel"));
40
- exports.removeChannel = removeChannel_1.default;
41
- const seenChannelMessages_1 = __importDefault(require("./seenChannelMessages"));
42
- exports.seenChannelMessages = seenChannelMessages_1.default;
43
- const setChannelLink_1 = __importDefault(require("./setChannelLink"));
44
- exports.setChannelLink = setChannelLink_1.default;
45
- const setChannelVoiceChatSetting_1 = __importDefault(require("./setChannelVoiceChatSetting"));
46
- exports.setChannelVoiceChatSetting = setChannelVoiceChatSetting_1.default;
47
- const updateChannelUsername_1 = __importDefault(require("./updateChannelUsername"));
48
- exports.updateChannelUsername = updateChannelUsername_1.default;
49
- const leaveChannelVoiceChat_1 = __importDefault(require("./leaveChannelVoiceChat"));
50
- exports.leaveChannelVoiceChat = leaveChannelVoiceChat_1.default;
51
- const getPendingObjectOwner_1 = __importDefault(require("./getPendingObjectOwner"));
52
- exports.getPendingObjectOwner = getPendingObjectOwner_1.default;
53
- const requestChangeObjectOwner_1 = __importDefault(require("./requestChangeObjectOwner"));
54
- exports.requestChangeObjectOwner = requestChangeObjectOwner_1.default;
55
- const cancelChangeObjectOwner_1 = __importDefault(require("./cancelChangeObjectOwner"));
56
- exports.cancelChangeObjectOwner = cancelChangeObjectOwner_1.default;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function joinChannelAction(this: Client, channel_guid: string, action?: "Join" | "Remove" | "Archive"): Promise<any>;
3
- export default joinChannelAction;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function joinChannelAction(channel_guid_1) {
13
- return __awaiter(this, arguments, void 0, function* (channel_guid, action = "Join") {
14
- if (!["Join", "Remove", "Archive"].includes(action))
15
- throw new Error('The `action` argument can only be in `["Join", "Remove", "Archive"]`.');
16
- return yield this.builder("joinChannelAction", { channel_guid, action });
17
- });
18
- }
19
- exports.default = joinChannelAction;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function joinChannelByLink(this: Client, link: string): Promise<any>;
3
- export default joinChannelByLink;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function joinChannelByLink(link) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- if (link.includes("/"))
15
- link = link.split("/")[-1];
16
- return yield this.builder("joinChannelByLink", { hash_link: link });
17
- });
18
- }
19
- exports.default = joinChannelByLink;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function leaveChannelVoiceChat(this: Client, channel_guid: string, voice_chat_id: string): Promise<any>;
3
- export default leaveChannelVoiceChat;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function leaveChannelVoiceChat(channel_guid, voice_chat_id) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("leaveChannelVoiceChat", {
15
- channel_guid,
16
- voice_chat_id,
17
- });
18
- });
19
- }
20
- exports.default = leaveChannelVoiceChat;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function removeChannel(this: Client, channel_guid: string): Promise<any>;
3
- export default removeChannel;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function removeChannel(channel_guid) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("removeChannel", { channel_guid });
15
- });
16
- }
17
- exports.default = removeChannel;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function requestChangeObjectOwner(this: Client, new_owner_user_guid: string, object_guid: string): Promise<any>;
3
- export default requestChangeObjectOwner;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function requestChangeObjectOwner(new_owner_user_guid, object_guid) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("requestChangeObjectOwner", {
15
- new_owner_user_guid,
16
- object_guid,
17
- });
18
- });
19
- }
20
- exports.default = requestChangeObjectOwner;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function seenChannelMessages(this: Client, channel_guid: string, min_id: string | number, max_id: string | number): Promise<any>;
3
- export default seenChannelMessages;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function seenChannelMessages(channel_guid, min_id, max_id) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("seenChannelMessages", {
15
- channel_guid,
16
- min_id,
17
- max_id,
18
- });
19
- });
20
- }
21
- exports.default = seenChannelMessages;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function setChannelLink(this: Client, channel_guid: string): Promise<any>;
3
- export default setChannelLink;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function setChannelLink(channel_guid) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- return yield this.builder("setChannelLink", { channel_guid });
15
- });
16
- }
17
- exports.default = setChannelLink;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function setChannelVoiceChatSetting(this: Client, channel_guid: string, voice_chat_id: string, title?: string): Promise<any>;
3
- export default setChannelVoiceChatSetting;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- function setChannelVoiceChatSetting(channel_guid, voice_chat_id, title) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- let input = {
15
- channel_guid,
16
- voice_chat_id,
17
- updated_parameters: [],
18
- };
19
- if (title) {
20
- input.title = title;
21
- input.updated_parameters.push("title");
22
- }
23
- return yield this.builder("setChannelVoiceChatSetting", input);
24
- });
25
- }
26
- exports.default = setChannelVoiceChatSetting;
@@ -1,3 +0,0 @@
1
- import Client from "../..";
2
- declare function updateChannelUsername(this: Client, channel_guid: string, username: string): Promise<any>;
3
- export default updateChannelUsername;