@sendbird/sendbird-platform-sdk-typescript 2.1.5 → 2.1.7

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 (821) hide show
  1. package/CHANGELOG +27 -0
  2. package/README.md +12 -12
  3. package/apis/AnnouncementApi.d.ts +11 -0
  4. package/apis/AnnouncementApi.js +59 -0
  5. package/apis/AnnouncementApi.js.map +1 -0
  6. package/apis/BotApi.d.ts +36 -0
  7. package/apis/BotApi.js +434 -0
  8. package/apis/BotApi.js.map +1 -0
  9. package/apis/GroupChannelApi.d.ts +63 -0
  10. package/apis/GroupChannelApi.js +902 -0
  11. package/apis/GroupChannelApi.js.map +1 -0
  12. package/apis/MessageApi.d.ts +40 -0
  13. package/apis/MessageApi.js +567 -0
  14. package/apis/MessageApi.js.map +1 -0
  15. package/apis/MetadataApi.d.ts +18 -0
  16. package/apis/MetadataApi.js +191 -0
  17. package/apis/MetadataApi.js.map +1 -0
  18. package/apis/ModerationApi.d.ts +24 -0
  19. package/apis/ModerationApi.js +229 -0
  20. package/apis/ModerationApi.js.map +1 -0
  21. package/apis/OpenChannelApi.d.ts +29 -0
  22. package/apis/OpenChannelApi.js +340 -0
  23. package/apis/OpenChannelApi.js.map +1 -0
  24. package/apis/StatisticsApi.d.ts +13 -0
  25. package/apis/StatisticsApi.js +88 -0
  26. package/apis/StatisticsApi.js.map +1 -0
  27. package/apis/UserApi.d.ts +107 -0
  28. package/apis/UserApi.js +1418 -0
  29. package/apis/UserApi.js.map +1 -0
  30. package/apis/baseapi.d.ts +18 -0
  31. package/apis/baseapi.js +27 -0
  32. package/apis/baseapi.js.map +1 -0
  33. package/apis/exception.d.ts +10 -0
  34. package/apis/exception.js +14 -0
  35. package/apis/exception.js.map +1 -0
  36. package/auth/auth.d.ts +26 -0
  37. package/auth/auth.js +13 -0
  38. package/auth/auth.js.map +1 -0
  39. package/configuration.d.ts +18 -0
  40. package/configuration.js +21 -0
  41. package/configuration.js.map +1 -0
  42. package/http/http.d.ts +83 -0
  43. package/http/http.js +170 -0
  44. package/http/http.js.map +1 -0
  45. package/http/isomorphic-fetch.d.ts +5 -0
  46. package/http/isomorphic-fetch.js +34 -0
  47. package/http/isomorphic-fetch.js.map +1 -0
  48. package/index.d.ts +10 -0
  49. package/index.js +37 -0
  50. package/index.js.map +1 -0
  51. package/middleware.d.ts +16 -0
  52. package/middleware.js +17 -0
  53. package/middleware.js.map +1 -0
  54. package/models/AcceptAnInvitationRequest.d.ts +18 -0
  55. package/models/AcceptAnInvitationRequest.js +27 -0
  56. package/models/AcceptAnInvitationRequest.js.map +1 -0
  57. package/models/AddARegistrationOrDeviceTokenRequest.d.ts +19 -0
  58. package/models/AddARegistrationOrDeviceTokenRequest.js +33 -0
  59. package/models/AddARegistrationOrDeviceTokenRequest.js.map +1 -0
  60. package/models/AddARegistrationOrDeviceTokenResponse.d.ts +20 -0
  61. package/models/AddARegistrationOrDeviceTokenResponse.js +33 -0
  62. package/models/AddARegistrationOrDeviceTokenResponse.js.map +1 -0
  63. package/models/AddExtraDataToAMessageRequest.d.ts +18 -0
  64. package/models/AddExtraDataToAMessageRequest.js +21 -0
  65. package/models/AddExtraDataToAMessageRequest.js.map +1 -0
  66. package/models/AddExtraDataToAMessageResponse.d.ts +18 -0
  67. package/models/AddExtraDataToAMessageResponse.js +21 -0
  68. package/models/AddExtraDataToAMessageResponse.js.map +1 -0
  69. package/models/BlockAUserRequest.d.ts +18 -0
  70. package/models/BlockAUserRequest.js +27 -0
  71. package/models/BlockAUserRequest.js.map +1 -0
  72. package/models/BlockAUserResponse.d.ts +19 -0
  73. package/models/BlockAUserResponse.js +27 -0
  74. package/models/BlockAUserResponse.js.map +1 -0
  75. package/models/CheckIfMemberResponse.d.ts +19 -0
  76. package/models/CheckIfMemberResponse.js +27 -0
  77. package/models/CheckIfMemberResponse.js.map +1 -0
  78. package/models/ChooseAPushNotificationContentTemplateRequest.d.ts +18 -0
  79. package/models/ChooseAPushNotificationContentTemplateRequest.js +21 -0
  80. package/models/ChooseAPushNotificationContentTemplateRequest.js.map +1 -0
  81. package/models/ChooseAPushNotificationContentTemplateResponse.d.ts +17 -0
  82. package/models/ChooseAPushNotificationContentTemplateResponse.js +21 -0
  83. package/models/ChooseAPushNotificationContentTemplateResponse.js.map +1 -0
  84. package/models/CreateABotRequest.d.ts +25 -0
  85. package/models/CreateABotRequest.js +69 -0
  86. package/models/CreateABotRequest.js.map +1 -0
  87. package/models/CreateABotResponse.d.ts +26 -0
  88. package/models/CreateABotResponse.js +63 -0
  89. package/models/CreateABotResponse.js.map +1 -0
  90. package/models/CreateABotResponseBot.d.ts +25 -0
  91. package/models/CreateABotResponseBot.js +69 -0
  92. package/models/CreateABotResponseBot.js.map +1 -0
  93. package/models/CreateABotResponseBotStyle.d.ts +21 -0
  94. package/models/CreateABotResponseBotStyle.js +39 -0
  95. package/models/CreateABotResponseBotStyle.js.map +1 -0
  96. package/models/CreateAChannelMetadataRequest.d.ts +18 -0
  97. package/models/CreateAChannelMetadataRequest.js +27 -0
  98. package/models/CreateAChannelMetadataRequest.js.map +1 -0
  99. package/models/CreateAChannelMetadataResponse.d.ts +18 -0
  100. package/models/CreateAChannelMetadataResponse.js +27 -0
  101. package/models/CreateAChannelMetadataResponse.js.map +1 -0
  102. package/models/CreateAGroupChannelRequest.d.ts +37 -0
  103. package/models/CreateAGroupChannelRequest.js +129 -0
  104. package/models/CreateAGroupChannelRequest.js.map +1 -0
  105. package/models/CreateAUserRequest.d.ts +25 -0
  106. package/models/CreateAUserRequest.js +63 -0
  107. package/models/CreateAUserRequest.js.map +1 -0
  108. package/models/CreateAnOpenChannelRequest.d.ts +26 -0
  109. package/models/CreateAnOpenChannelRequest.js +69 -0
  110. package/models/CreateAnOpenChannelRequest.js.map +1 -0
  111. package/models/CreateUserMetadataRequest.d.ts +17 -0
  112. package/models/CreateUserMetadataRequest.js +21 -0
  113. package/models/CreateUserMetadataRequest.js.map +1 -0
  114. package/models/CreateUserTokenRequest.d.ts +17 -0
  115. package/models/CreateUserTokenRequest.js +21 -0
  116. package/models/CreateUserTokenRequest.js.map +1 -0
  117. package/models/CreateUserTokenResponse.d.ts +18 -0
  118. package/models/CreateUserTokenResponse.js +27 -0
  119. package/models/CreateUserTokenResponse.js.map +1 -0
  120. package/models/FreezeAGroupChannelRequest.d.ts +17 -0
  121. package/models/FreezeAGroupChannelRequest.js +21 -0
  122. package/models/FreezeAGroupChannelRequest.js.map +1 -0
  123. package/models/FreezeAnOpenChannelRequest.d.ts +17 -0
  124. package/models/FreezeAnOpenChannelRequest.js +21 -0
  125. package/models/FreezeAnOpenChannelRequest.js.map +1 -0
  126. package/models/GetAGroupChannelResponse.d.ts +75 -0
  127. package/models/GetAGroupChannelResponse.js +291 -0
  128. package/models/GetAGroupChannelResponse.js.map +1 -0
  129. package/models/GetAGroupChannelResponseAllOf.d.ts +18 -0
  130. package/models/GetAGroupChannelResponseAllOf.js +21 -0
  131. package/models/GetAGroupChannelResponseAllOf.js.map +1 -0
  132. package/models/GetAGroupChannelResponseAllOfChannel.d.ts +24 -0
  133. package/models/GetAGroupChannelResponseAllOfChannel.js +63 -0
  134. package/models/GetAGroupChannelResponseAllOfChannel.js.map +1 -0
  135. package/models/GetChannelInvitationPreferenceResponse.d.ts +17 -0
  136. package/models/GetChannelInvitationPreferenceResponse.js +21 -0
  137. package/models/GetChannelInvitationPreferenceResponse.js.map +1 -0
  138. package/models/GetTotalNumberOfMessagesInAChannelResponse.d.ts +17 -0
  139. package/models/GetTotalNumberOfMessagesInAChannelResponse.js +21 -0
  140. package/models/GetTotalNumberOfMessagesInAChannelResponse.js.map +1 -0
  141. package/models/GroupChannelListMembersResponse.d.ts +19 -0
  142. package/models/GroupChannelListMembersResponse.js +27 -0
  143. package/models/GroupChannelListMembersResponse.js.map +1 -0
  144. package/models/GroupChatListChannelsResponse.d.ts +20 -0
  145. package/models/GroupChatListChannelsResponse.js +33 -0
  146. package/models/GroupChatListChannelsResponse.js.map +1 -0
  147. package/models/HideAChannelRequest.d.ts +20 -0
  148. package/models/HideAChannelRequest.js +39 -0
  149. package/models/HideAChannelRequest.js.map +1 -0
  150. package/models/InviteAsMembersRequest.d.ts +20 -0
  151. package/models/InviteAsMembersRequest.js +39 -0
  152. package/models/InviteAsMembersRequest.js.map +1 -0
  153. package/models/InviteAsMembersResponse.d.ts +75 -0
  154. package/models/InviteAsMembersResponse.js +291 -0
  155. package/models/InviteAsMembersResponse.js.map +1 -0
  156. package/models/InviteAsMembersResponseAllOf.d.ts +18 -0
  157. package/models/InviteAsMembersResponseAllOf.js +21 -0
  158. package/models/InviteAsMembersResponseAllOf.js.map +1 -0
  159. package/models/JoinAChannelRequest.d.ts +18 -0
  160. package/models/JoinAChannelRequest.js +27 -0
  161. package/models/JoinAChannelRequest.js.map +1 -0
  162. package/models/JoinChannelsRequest.d.ts +17 -0
  163. package/models/JoinChannelsRequest.js +21 -0
  164. package/models/JoinChannelsRequest.js.map +1 -0
  165. package/models/LeaveAChannelRequest.d.ts +21 -0
  166. package/models/LeaveAChannelRequest.js +39 -0
  167. package/models/LeaveAChannelRequest.js.map +1 -0
  168. package/models/LeaveMyGroupChannelsRequest.d.ts +17 -0
  169. package/models/LeaveMyGroupChannelsRequest.js +21 -0
  170. package/models/LeaveMyGroupChannelsRequest.js.map +1 -0
  171. package/models/ListBlockedUsersResponse.d.ts +19 -0
  172. package/models/ListBlockedUsersResponse.js +27 -0
  173. package/models/ListBlockedUsersResponse.js.map +1 -0
  174. package/models/ListBotsResponse.d.ts +19 -0
  175. package/models/ListBotsResponse.js +27 -0
  176. package/models/ListBotsResponse.js.map +1 -0
  177. package/models/ListBotsResponseBotsInner.d.ts +30 -0
  178. package/models/ListBotsResponseBotsInner.js +75 -0
  179. package/models/ListBotsResponseBotsInner.js.map +1 -0
  180. package/models/ListBotsResponseBotsInnerAi.d.ts +28 -0
  181. package/models/ListBotsResponseBotsInnerAi.js +87 -0
  182. package/models/ListBotsResponseBotsInnerAi.js.map +1 -0
  183. package/models/ListBotsResponseBotsInnerBot.d.ts +24 -0
  184. package/models/ListBotsResponseBotsInnerBot.js +63 -0
  185. package/models/ListBotsResponseBotsInnerBot.js.map +1 -0
  186. package/models/ListBotsResponseBotsInnerBotStyle.d.ts +21 -0
  187. package/models/ListBotsResponseBotsInnerBotStyle.js +39 -0
  188. package/models/ListBotsResponseBotsInnerBotStyle.js.map +1 -0
  189. package/models/ListBotsResponseBotsInnerBotStyleColor.d.ts +19 -0
  190. package/models/ListBotsResponseBotsInnerBotStyleColor.js +33 -0
  191. package/models/ListBotsResponseBotsInnerBotStyleColor.js.map +1 -0
  192. package/models/ListBotsResponseBotsInnerFirstMessagesInner.d.ts +19 -0
  193. package/models/ListBotsResponseBotsInnerFirstMessagesInner.js +27 -0
  194. package/models/ListBotsResponseBotsInnerFirstMessagesInner.js.map +1 -0
  195. package/models/ListBotsResponseBotsInnerFirstMessagesInnerData.d.ts +17 -0
  196. package/models/ListBotsResponseBotsInnerFirstMessagesInnerData.js +21 -0
  197. package/models/ListBotsResponseBotsInnerFirstMessagesInnerData.js.map +1 -0
  198. package/models/ListBotsResponseBotsInnerSafeguard.d.ts +20 -0
  199. package/models/ListBotsResponseBotsInnerSafeguard.js +39 -0
  200. package/models/ListBotsResponseBotsInnerSafeguard.js.map +1 -0
  201. package/models/ListMessagesResponse.d.ts +18 -0
  202. package/models/ListMessagesResponse.js +21 -0
  203. package/models/ListMessagesResponse.js.map +1 -0
  204. package/models/ListMyGroupChannelsResponse.d.ts +20 -0
  205. package/models/ListMyGroupChannelsResponse.js +33 -0
  206. package/models/ListMyGroupChannelsResponse.js.map +1 -0
  207. package/models/ListOpenChannelsResponse.d.ts +20 -0
  208. package/models/ListOpenChannelsResponse.js +33 -0
  209. package/models/ListOpenChannelsResponse.js.map +1 -0
  210. package/models/ListOperatorsResponse.d.ts +19 -0
  211. package/models/ListOperatorsResponse.js +27 -0
  212. package/models/ListOperatorsResponse.js.map +1 -0
  213. package/models/ListRegistrationOrDeviceTokensResponse.d.ts +21 -0
  214. package/models/ListRegistrationOrDeviceTokensResponse.js +39 -0
  215. package/models/ListRegistrationOrDeviceTokensResponse.js.map +1 -0
  216. package/models/ListUsersResponse.d.ts +19 -0
  217. package/models/ListUsersResponse.js +27 -0
  218. package/models/ListUsersResponse.js.map +1 -0
  219. package/models/MarkAllMessagesAsReadRequest.d.ts +17 -0
  220. package/models/MarkAllMessagesAsReadRequest.js +21 -0
  221. package/models/MarkAllMessagesAsReadRequest.js.map +1 -0
  222. package/models/MarkChannelMessagesAsReadRequest.d.ts +17 -0
  223. package/models/MarkChannelMessagesAsReadRequest.js +21 -0
  224. package/models/MarkChannelMessagesAsReadRequest.js.map +1 -0
  225. package/models/MigrateMessagesAdminMessageRequest.d.ts +26 -0
  226. package/models/MigrateMessagesAdminMessageRequest.js +69 -0
  227. package/models/MigrateMessagesAdminMessageRequest.js.map +1 -0
  228. package/models/MigrateMessagesFileMessageRequest.d.ts +32 -0
  229. package/models/MigrateMessagesFileMessageRequest.js +99 -0
  230. package/models/MigrateMessagesFileMessageRequest.js.map +1 -0
  231. package/models/MigrateMessagesFileMessageRequestThumbnailsInner.d.ts +16 -0
  232. package/models/MigrateMessagesFileMessageRequestThumbnailsInner.js +14 -0
  233. package/models/MigrateMessagesFileMessageRequestThumbnailsInner.js.map +1 -0
  234. package/models/MigrateMessagesRequest.d.ts +20 -0
  235. package/models/MigrateMessagesRequest.js +33 -0
  236. package/models/MigrateMessagesRequest.js.map +1 -0
  237. package/models/MigrateMessagesRequestMessagesInner.d.ts +35 -0
  238. package/models/MigrateMessagesRequestMessagesInner.js +117 -0
  239. package/models/MigrateMessagesRequestMessagesInner.js.map +1 -0
  240. package/models/MigrateMessagesTextMessageRequest.d.ts +26 -0
  241. package/models/MigrateMessagesTextMessageRequest.js +69 -0
  242. package/models/MigrateMessagesTextMessageRequest.js.map +1 -0
  243. package/models/ObjectSerializer.d.ts +139 -0
  244. package/models/ObjectSerializer.js +630 -0
  245. package/models/ObjectSerializer.js.map +1 -0
  246. package/models/RegisterOperatorsToAGroupChannelRequest.d.ts +17 -0
  247. package/models/RegisterOperatorsToAGroupChannelRequest.js +21 -0
  248. package/models/RegisterOperatorsToAGroupChannelRequest.js.map +1 -0
  249. package/models/RemoveARegistrationOrDeviceTokenResponse.d.ts +19 -0
  250. package/models/RemoveARegistrationOrDeviceTokenResponse.js +27 -0
  251. package/models/RemoveARegistrationOrDeviceTokenResponse.js.map +1 -0
  252. package/models/RemoveAllRegistrationOrDeviceTokenResponse.d.ts +19 -0
  253. package/models/RemoveAllRegistrationOrDeviceTokenResponse.js +27 -0
  254. package/models/RemoveAllRegistrationOrDeviceTokenResponse.js.map +1 -0
  255. package/models/ResetChatHistoryRequest.d.ts +18 -0
  256. package/models/ResetChatHistoryRequest.js +27 -0
  257. package/models/ResetChatHistoryRequest.js.map +1 -0
  258. package/models/ResetChatHistoryResponse.d.ts +17 -0
  259. package/models/ResetChatHistoryResponse.js +21 -0
  260. package/models/ResetChatHistoryResponse.js.map +1 -0
  261. package/models/ScheduleAnAnnouncementRequest.d.ts +36 -0
  262. package/models/ScheduleAnAnnouncementRequest.js +123 -0
  263. package/models/ScheduleAnAnnouncementRequest.js.map +1 -0
  264. package/models/ScheduleAnAnnouncementRequestCreateChannelOptions.d.ts +21 -0
  265. package/models/ScheduleAnAnnouncementRequestCreateChannelOptions.js +45 -0
  266. package/models/ScheduleAnAnnouncementRequestCreateChannelOptions.js.map +1 -0
  267. package/models/ScheduleAnAnnouncementRequestMessage.d.ts +21 -0
  268. package/models/ScheduleAnAnnouncementRequestMessage.js +45 -0
  269. package/models/ScheduleAnAnnouncementRequestMessage.js.map +1 -0
  270. package/models/ScheduleAnAnnouncementResponse.d.ts +42 -0
  271. package/models/ScheduleAnAnnouncementResponse.js +159 -0
  272. package/models/ScheduleAnAnnouncementResponse.js.map +1 -0
  273. package/models/ScheduleAnAnnouncementResponseMessage.d.ts +22 -0
  274. package/models/ScheduleAnAnnouncementResponseMessage.js +51 -0
  275. package/models/ScheduleAnAnnouncementResponseMessage.js.map +1 -0
  276. package/models/SendABotMessageRequest.d.ts +42 -0
  277. package/models/SendABotMessageRequest.js +141 -0
  278. package/models/SendABotMessageRequest.js.map +1 -0
  279. package/models/SendABotMessageResponse.d.ts +18 -0
  280. package/models/SendABotMessageResponse.js +21 -0
  281. package/models/SendABotMessageResponse.js.map +1 -0
  282. package/models/SendAMessageRequest.d.ts +47 -0
  283. package/models/SendAMessageRequest.js +171 -0
  284. package/models/SendAMessageRequest.js.map +1 -0
  285. package/models/SendAMessageRequestPushMessageTemplate.d.ts +18 -0
  286. package/models/SendAMessageRequestPushMessageTemplate.js +27 -0
  287. package/models/SendAMessageRequestPushMessageTemplate.js.map +1 -0
  288. package/models/SendAMessageRequestPushMessageTemplateOneOf.d.ts +18 -0
  289. package/models/SendAMessageRequestPushMessageTemplateOneOf.js +27 -0
  290. package/models/SendAMessageRequestPushMessageTemplateOneOf.js.map +1 -0
  291. package/models/SendAdminMessageRequestBody.d.ts +32 -0
  292. package/models/SendAdminMessageRequestBody.js +87 -0
  293. package/models/SendAdminMessageRequestBody.js.map +1 -0
  294. package/models/SendFileMessageRequestBody.d.ts +41 -0
  295. package/models/SendFileMessageRequestBody.js +141 -0
  296. package/models/SendFileMessageRequestBody.js.map +1 -0
  297. package/models/SendTextMessageRequestBody.d.ts +39 -0
  298. package/models/SendTextMessageRequestBody.js +129 -0
  299. package/models/SendTextMessageRequestBody.js.map +1 -0
  300. package/models/SendTextMessageRequestBodyPushMessageTemplate.d.ts +18 -0
  301. package/models/SendTextMessageRequestBodyPushMessageTemplate.js +27 -0
  302. package/models/SendTextMessageRequestBodyPushMessageTemplate.js.map +1 -0
  303. package/models/SendbirdBasicUserInfo.d.ts +25 -0
  304. package/models/SendbirdBasicUserInfo.js +63 -0
  305. package/models/SendbirdBasicUserInfo.js.map +1 -0
  306. package/models/SendbirdDisappearingMessage.d.ts +18 -0
  307. package/models/SendbirdDisappearingMessage.js +27 -0
  308. package/models/SendbirdDisappearingMessage.js.map +1 -0
  309. package/models/SendbirdExtendedMessagePayload.d.ts +18 -0
  310. package/models/SendbirdExtendedMessagePayload.js +27 -0
  311. package/models/SendbirdExtendedMessagePayload.js.map +1 -0
  312. package/models/SendbirdFile.d.ts +23 -0
  313. package/models/SendbirdFile.js +51 -0
  314. package/models/SendbirdFile.js.map +1 -0
  315. package/models/SendbirdGroupChannel.d.ts +73 -0
  316. package/models/SendbirdGroupChannel.js +285 -0
  317. package/models/SendbirdGroupChannel.js.map +1 -0
  318. package/models/SendbirdGroupChannelDetail.d.ts +60 -0
  319. package/models/SendbirdGroupChannelDetail.js +213 -0
  320. package/models/SendbirdGroupChannelDetail.js.map +1 -0
  321. package/models/SendbirdGroupChannelDetailChannel.d.ts +24 -0
  322. package/models/SendbirdGroupChannelDetailChannel.js +63 -0
  323. package/models/SendbirdGroupChannelDetailChannel.js.map +1 -0
  324. package/models/SendbirdGroupChannelLastMessage.d.ts +53 -0
  325. package/models/SendbirdGroupChannelLastMessage.js +195 -0
  326. package/models/SendbirdGroupChannelLastMessage.js.map +1 -0
  327. package/models/SendbirdMember.d.ts +41 -0
  328. package/models/SendbirdMember.js +147 -0
  329. package/models/SendbirdMember.js.map +1 -0
  330. package/models/SendbirdMessageResponse.d.ts +53 -0
  331. package/models/SendbirdMessageResponse.js +195 -0
  332. package/models/SendbirdMessageResponse.js.map +1 -0
  333. package/models/SendbirdMessageResponseExtendedMessagePayload.d.ts +18 -0
  334. package/models/SendbirdMessageResponseExtendedMessagePayload.js +27 -0
  335. package/models/SendbirdMessageResponseExtendedMessagePayload.js.map +1 -0
  336. package/models/SendbirdMessageResponseMessageEvents.d.ts +20 -0
  337. package/models/SendbirdMessageResponseMessageEvents.js +39 -0
  338. package/models/SendbirdMessageResponseMessageEvents.js.map +1 -0
  339. package/models/SendbirdOpenChannel.d.ts +30 -0
  340. package/models/SendbirdOpenChannel.js +93 -0
  341. package/models/SendbirdOpenChannel.js.map +1 -0
  342. package/models/SendbirdParentMessageInfo.d.ts +25 -0
  343. package/models/SendbirdParentMessageInfo.js +57 -0
  344. package/models/SendbirdParentMessageInfo.js.map +1 -0
  345. package/models/SendbirdPushTriggerOption.d.ts +1 -0
  346. package/models/SendbirdPushTriggerOption.js +3 -0
  347. package/models/SendbirdPushTriggerOption.js.map +1 -0
  348. package/models/SendbirdReaction.d.ts +19 -0
  349. package/models/SendbirdReaction.js +33 -0
  350. package/models/SendbirdReaction.js.map +1 -0
  351. package/models/SendbirdSmsFallback.d.ts +18 -0
  352. package/models/SendbirdSmsFallback.js +27 -0
  353. package/models/SendbirdSmsFallback.js.map +1 -0
  354. package/models/SendbirdSortedMetaarrayInner.d.ts +18 -0
  355. package/models/SendbirdSortedMetaarrayInner.js +27 -0
  356. package/models/SendbirdSortedMetaarrayInner.js.map +1 -0
  357. package/models/SendbirdThumbnail.d.ts +22 -0
  358. package/models/SendbirdThumbnail.js +51 -0
  359. package/models/SendbirdThumbnail.js.map +1 -0
  360. package/models/SendbirdUser.d.ts +38 -0
  361. package/models/SendbirdUser.js +141 -0
  362. package/models/SendbirdUser.js.map +1 -0
  363. package/models/StartTypingIndicatorsRequest.d.ts +17 -0
  364. package/models/StartTypingIndicatorsRequest.js +21 -0
  365. package/models/StartTypingIndicatorsRequest.js.map +1 -0
  366. package/models/UpdateAChannelMetadataRequest.d.ts +18 -0
  367. package/models/UpdateAChannelMetadataRequest.js +27 -0
  368. package/models/UpdateAChannelMetadataRequest.js.map +1 -0
  369. package/models/UpdateAGroupChannelRequest.d.ts +27 -0
  370. package/models/UpdateAGroupChannelRequest.js +75 -0
  371. package/models/UpdateAGroupChannelRequest.js.map +1 -0
  372. package/models/UpdateAMessageRequest.d.ts +24 -0
  373. package/models/UpdateAMessageRequest.js +57 -0
  374. package/models/UpdateAMessageRequest.js.map +1 -0
  375. package/models/UpdateAUserRequest.d.ts +26 -0
  376. package/models/UpdateAUserRequest.js +69 -0
  377. package/models/UpdateAUserRequest.js.map +1 -0
  378. package/models/UpdateAnOpenChannelRequest.d.ts +23 -0
  379. package/models/UpdateAnOpenChannelRequest.js +51 -0
  380. package/models/UpdateAnOpenChannelRequest.js.map +1 -0
  381. package/models/UpdateBotByIdData.d.ts +24 -0
  382. package/models/UpdateBotByIdData.js +63 -0
  383. package/models/UpdateBotByIdData.js.map +1 -0
  384. package/models/UpdateBotByIdResponse.d.ts +23 -0
  385. package/models/UpdateBotByIdResponse.js +51 -0
  386. package/models/UpdateBotByIdResponse.js.map +1 -0
  387. package/models/UpdateChannelInvitationPreferenceRequest.d.ts +17 -0
  388. package/models/UpdateChannelInvitationPreferenceRequest.js +21 -0
  389. package/models/UpdateChannelInvitationPreferenceRequest.js.map +1 -0
  390. package/models/UpdateChannelInvitationPreferenceResponse.d.ts +17 -0
  391. package/models/UpdateChannelInvitationPreferenceResponse.js +21 -0
  392. package/models/UpdateChannelInvitationPreferenceResponse.js.map +1 -0
  393. package/models/UpdateCountPreferenceOfAChannelRequest.d.ts +18 -0
  394. package/models/UpdateCountPreferenceOfAChannelRequest.js +21 -0
  395. package/models/UpdateCountPreferenceOfAChannelRequest.js.map +1 -0
  396. package/models/UpdateCountPreferenceOfChannelByUrlResponse.d.ts +18 -0
  397. package/models/UpdateCountPreferenceOfChannelByUrlResponse.js +21 -0
  398. package/models/UpdateCountPreferenceOfChannelByUrlResponse.js.map +1 -0
  399. package/models/UpdateExtraDataInAMessageRequest.d.ts +20 -0
  400. package/models/UpdateExtraDataInAMessageRequest.js +33 -0
  401. package/models/UpdateExtraDataInAMessageRequest.js.map +1 -0
  402. package/models/UpdateExtraDataInAMessageResponse.d.ts +18 -0
  403. package/models/UpdateExtraDataInAMessageResponse.js +21 -0
  404. package/models/UpdateExtraDataInAMessageResponse.js.map +1 -0
  405. package/models/UpdatePushPreferencesForAChannelRequest.d.ts +19 -0
  406. package/models/UpdatePushPreferencesForAChannelRequest.js +27 -0
  407. package/models/UpdatePushPreferencesForAChannelRequest.js.map +1 -0
  408. package/models/UpdatePushPreferencesForAChannelResponse.d.ts +20 -0
  409. package/models/UpdatePushPreferencesForAChannelResponse.js +33 -0
  410. package/models/UpdatePushPreferencesForAChannelResponse.js.map +1 -0
  411. package/models/UpdatePushPreferencesRequest.d.ts +33 -0
  412. package/models/UpdatePushPreferencesRequest.js +105 -0
  413. package/models/UpdatePushPreferencesRequest.js.map +1 -0
  414. package/models/UpdatePushPreferencesRequestDndSchedulesInner.d.ts +20 -0
  415. package/models/UpdatePushPreferencesRequestDndSchedulesInner.js +27 -0
  416. package/models/UpdatePushPreferencesRequestDndSchedulesInner.js.map +1 -0
  417. package/models/UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner.d.ts +20 -0
  418. package/models/UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner.js +39 -0
  419. package/models/UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner.js.map +1 -0
  420. package/models/UpdatePushPreferencesResponse.d.ts +33 -0
  421. package/models/UpdatePushPreferencesResponse.js +105 -0
  422. package/models/UpdatePushPreferencesResponse.js.map +1 -0
  423. package/models/UpdateSpecificUserMetadataRequest.d.ts +17 -0
  424. package/models/UpdateSpecificUserMetadataRequest.js +21 -0
  425. package/models/UpdateSpecificUserMetadataRequest.js.map +1 -0
  426. package/models/UpdateUserMetadataRequest.d.ts +18 -0
  427. package/models/UpdateUserMetadataRequest.js +27 -0
  428. package/models/UpdateUserMetadataRequest.js.map +1 -0
  429. package/models/ViewBotByIdResponse.d.ts +23 -0
  430. package/models/ViewBotByIdResponse.js +51 -0
  431. package/models/ViewBotByIdResponse.js.map +1 -0
  432. package/models/ViewBotByIdResponseBot.d.ts +22 -0
  433. package/models/ViewBotByIdResponseBot.js +51 -0
  434. package/models/ViewBotByIdResponseBot.js.map +1 -0
  435. package/models/ViewCountPreferenceOfAChannelResponse.d.ts +18 -0
  436. package/models/ViewCountPreferenceOfAChannelResponse.js +21 -0
  437. package/models/ViewCountPreferenceOfAChannelResponse.js.map +1 -0
  438. package/models/ViewNumberOfChannelsWithUnreadMessagesResponse.d.ts +17 -0
  439. package/models/ViewNumberOfChannelsWithUnreadMessagesResponse.js +21 -0
  440. package/models/ViewNumberOfChannelsWithUnreadMessagesResponse.js.map +1 -0
  441. package/models/ViewNumberOfDailyActiveUsersResponse.d.ts +17 -0
  442. package/models/ViewNumberOfDailyActiveUsersResponse.js +21 -0
  443. package/models/ViewNumberOfDailyActiveUsersResponse.js.map +1 -0
  444. package/models/ViewNumberOfMonthlyActiveUsersResponse.d.ts +17 -0
  445. package/models/ViewNumberOfMonthlyActiveUsersResponse.js +21 -0
  446. package/models/ViewNumberOfMonthlyActiveUsersResponse.js.map +1 -0
  447. package/models/ViewNumberOfUnreadMessagesResponse.d.ts +17 -0
  448. package/models/ViewNumberOfUnreadMessagesResponse.js +21 -0
  449. package/models/ViewNumberOfUnreadMessagesResponse.js.map +1 -0
  450. package/models/ViewPushPreferencesForAChannelResponse.d.ts +20 -0
  451. package/models/ViewPushPreferencesForAChannelResponse.js +33 -0
  452. package/models/ViewPushPreferencesForAChannelResponse.js.map +1 -0
  453. package/models/ViewPushPreferencesResponse.d.ts +33 -0
  454. package/models/ViewPushPreferencesResponse.js +105 -0
  455. package/models/ViewPushPreferencesResponse.js.map +1 -0
  456. package/models/all.d.ts +130 -0
  457. package/models/all.js +147 -0
  458. package/models/all.js.map +1 -0
  459. package/package.json +28 -32
  460. package/rxjsStub.d.ts +10 -0
  461. package/rxjsStub.js +32 -0
  462. package/rxjsStub.js.map +1 -0
  463. package/servers.d.ts +21 -0
  464. package/servers.js +31 -0
  465. package/servers.js.map +1 -0
  466. package/types/ObjectParamAPI.d.ts +853 -0
  467. package/types/ObjectParamAPI.js +343 -0
  468. package/types/ObjectParamAPI.js.map +1 -0
  469. package/types/ObservableAPI.d.ts +246 -0
  470. package/types/ObservableAPI.js +1467 -0
  471. package/types/ObservableAPI.js.map +1 -0
  472. package/types/PromiseAPI.d.ts +227 -0
  473. package/types/PromiseAPI.js +435 -0
  474. package/types/PromiseAPI.js.map +1 -0
  475. package/util.d.ts +2 -0
  476. package/util.js +29 -0
  477. package/util.js.map +1 -0
  478. package/.gitattributes +0 -8
  479. package/.openapi-generator/FILES +0 -156
  480. package/.openapi-generator/VERSION +0 -1
  481. package/AnnouncementApi.md +0 -100
  482. package/BotApi.md +0 -459
  483. package/GroupChannelApi.md +0 -1429
  484. package/MessageApi.md +0 -880
  485. package/MetadataApi.md +0 -274
  486. package/ModerationApi.md +0 -338
  487. package/OpenChannelApi.md +0 -540
  488. package/StatisticsApi.md +0 -125
  489. package/UserApi.md +0 -1868
  490. package/apis/AnnouncementApi.ts +0 -96
  491. package/apis/BotApi.ts +0 -832
  492. package/apis/GroupChannelApi.ts +0 -1865
  493. package/apis/MessageApi.ts +0 -1150
  494. package/apis/MetadataApi.ts +0 -365
  495. package/apis/ModerationApi.ts +0 -449
  496. package/apis/OpenChannelApi.ts +0 -676
  497. package/apis/StatisticsApi.ts +0 -155
  498. package/apis/UserApi.ts +0 -2916
  499. package/apis/baseapi.ts +0 -37
  500. package/apis/exception.ts +0 -15
  501. package/auth/auth.ts +0 -54
  502. package/catalog-info.yaml +0 -12
  503. package/configuration.ts +0 -66
  504. package/git_push.sh +0 -51
  505. package/http/http.ts +0 -231
  506. package/http/isomorphic-fetch.ts +0 -32
  507. package/index.ts +0 -12
  508. package/jest.config.ts +0 -11
  509. package/jest.setup.ts +0 -5
  510. package/middleware.ts +0 -66
  511. package/models/AcceptAnInvitationRequest.ts +0 -42
  512. package/models/AddARegistrationOrDeviceTokenRequest.ts +0 -49
  513. package/models/AddARegistrationOrDeviceTokenResponse.ts +0 -50
  514. package/models/AddExtraDataToAMessageRequest.ts +0 -36
  515. package/models/AddExtraDataToAMessageResponse.ts +0 -36
  516. package/models/BlockAUserRequest.ts +0 -45
  517. package/models/BlockAUserResponse.ts +0 -43
  518. package/models/CheckIfMemberResponse.ts +0 -45
  519. package/models/ChooseAPushNotificationContentTemplateRequest.ts +0 -41
  520. package/models/ChooseAPushNotificationContentTemplateResponse.ts +0 -35
  521. package/models/CreateABotRequest.ts +0 -100
  522. package/models/CreateABotResponse.ts +0 -86
  523. package/models/CreateABotResponseBot.ts +0 -91
  524. package/models/CreateABotResponseBotStyle.ts +0 -57
  525. package/models/CreateAChannelMetadataRequest.ts +0 -42
  526. package/models/CreateAChannelMetadataResponse.ts +0 -42
  527. package/models/CreateAGroupChannelRequest.ts +0 -171
  528. package/models/CreateAUserRequest.ts +0 -80
  529. package/models/CreateAnOpenChannelRequest.ts +0 -91
  530. package/models/CreateUserMetadataRequest.ts +0 -35
  531. package/models/CreateUserTokenRequest.ts +0 -35
  532. package/models/CreateUserTokenResponse.ts +0 -42
  533. package/models/FreezeAGroupChannelRequest.ts +0 -35
  534. package/models/FreezeAnOpenChannelRequest.ts +0 -38
  535. package/models/GetAGroupChannelResponse.ts +0 -365
  536. package/models/GetAGroupChannelResponseAllOf.ts +0 -36
  537. package/models/GetAGroupChannelResponseAllOfChannel.ts +0 -84
  538. package/models/GetChannelInvitationPreferenceResponse.ts +0 -35
  539. package/models/GetTotalNumberOfMessagesInAChannelResponse.ts +0 -35
  540. package/models/GroupChannelListMembersResponse.ts +0 -43
  541. package/models/GroupChatListChannelsResponse.ts +0 -50
  542. package/models/HideAChannelRequest.ts +0 -68
  543. package/models/InviteAsMembersRequest.ts +0 -62
  544. package/models/InviteAsMembersResponse.ts +0 -365
  545. package/models/InviteAsMembersResponseAllOf.ts +0 -36
  546. package/models/JoinAChannelRequest.ts +0 -48
  547. package/models/JoinChannelsRequest.ts +0 -35
  548. package/models/LeaveAChannelRequest.ts +0 -71
  549. package/models/LeaveMyGroupChannelsRequest.ts +0 -35
  550. package/models/ListBlockedUsersResponse.ts +0 -43
  551. package/models/ListBotsResponse.ts +0 -43
  552. package/models/ListBotsResponseBotsInner.ts +0 -102
  553. package/models/ListBotsResponseBotsInnerAi.ts +0 -112
  554. package/models/ListBotsResponseBotsInnerBot.ts +0 -84
  555. package/models/ListBotsResponseBotsInnerBotStyle.ts +0 -57
  556. package/models/ListBotsResponseBotsInnerBotStyleColor.ts +0 -49
  557. package/models/ListBotsResponseBotsInnerFirstMessagesInner.ts +0 -43
  558. package/models/ListBotsResponseBotsInnerFirstMessagesInnerData.ts +0 -35
  559. package/models/ListBotsResponseBotsInnerSafeguard.ts +0 -56
  560. package/models/ListMessagesResponse.ts +0 -36
  561. package/models/ListMyGroupChannelsResponse.ts +0 -50
  562. package/models/ListOpenChannelsResponse.ts +0 -50
  563. package/models/ListOperatorsResponse.ts +0 -43
  564. package/models/ListRegistrationOrDeviceTokensResponse.ts +0 -57
  565. package/models/ListUsersResponse.ts +0 -43
  566. package/models/MarkAllMessagesAsReadRequest.ts +0 -38
  567. package/models/MarkChannelMessagesAsReadRequest.ts +0 -35
  568. package/models/MigrateMessagesAdminMessageRequest.ts +0 -94
  569. package/models/MigrateMessagesFileMessageRequest.ts +0 -130
  570. package/models/MigrateMessagesFileMessageRequestThumbnailsInner.ts +0 -29
  571. package/models/MigrateMessagesRequest.ts +0 -50
  572. package/models/MigrateMessagesRequestMessagesInner.ts +0 -154
  573. package/models/MigrateMessagesTextMessageRequest.ts +0 -94
  574. package/models/ObjectSerializer.ts +0 -647
  575. package/models/RegisterOperatorsToAGroupChannelRequest.ts +0 -35
  576. package/models/RemoveARegistrationOrDeviceTokenResponse.ts +0 -43
  577. package/models/RemoveAllRegistrationOrDeviceTokenResponse.ts +0 -43
  578. package/models/ResetChatHistoryRequest.ts +0 -42
  579. package/models/ResetChatHistoryResponse.ts +0 -38
  580. package/models/ScheduleAnAnnouncementRequest.ts +0 -156
  581. package/models/ScheduleAnAnnouncementRequestCreateChannelOptions.ts +0 -63
  582. package/models/ScheduleAnAnnouncementRequestMessage.ts +0 -63
  583. package/models/ScheduleAnAnnouncementResponse.ts +0 -198
  584. package/models/ScheduleAnAnnouncementResponseMessage.ts +0 -70
  585. package/models/SendABotMessageRequest.ts +0 -220
  586. package/models/SendABotMessageResponse.ts +0 -36
  587. package/models/SendAMessageRequest.ts +0 -238
  588. package/models/SendAMessageRequestPushMessageTemplate.ts +0 -52
  589. package/models/SendAMessageRequestPushMessageTemplateOneOf.ts +0 -48
  590. package/models/SendAdminMessageRequestBody.ts +0 -121
  591. package/models/SendBirdFile.ts +0 -71
  592. package/models/SendBirdGroupChannel.ts +0 -355
  593. package/models/SendBirdMember.ts +0 -187
  594. package/models/SendBirdMessageResponse.ts +0 -245
  595. package/models/SendBirdParentMessageInfo.ts +0 -79
  596. package/models/SendBirdUser.ts +0 -181
  597. package/models/SendFileMessageRequestBody.ts +0 -187
  598. package/models/SendTextMessageRequestBody.ts +0 -170
  599. package/models/SendTextMessageRequestBodyPushMessageTemplate.ts +0 -52
  600. package/models/SendbirdBasicUserInfo.ts +0 -87
  601. package/models/SendbirdDisappearingMessage.ts +0 -42
  602. package/models/SendbirdExtendedMessagePayload.ts +0 -51
  603. package/models/SendbirdGroupChannelDetail.ts +0 -266
  604. package/models/SendbirdGroupChannelDetailChannel.ts +0 -84
  605. package/models/SendbirdGroupChannelLastMessage.ts +0 -246
  606. package/models/SendbirdMessageResponseExtendedMessagePayload.ts +0 -49
  607. package/models/SendbirdMessageResponseMessageEvents.ts +0 -56
  608. package/models/SendbirdOpenChannel.ts +0 -120
  609. package/models/SendbirdPushTriggerOption.ts +0 -15
  610. package/models/SendbirdReaction.ts +0 -49
  611. package/models/SendbirdSmsFallback.ts +0 -42
  612. package/models/SendbirdSortedMetaarrayInner.ts +0 -42
  613. package/models/SendbirdThumbnail.ts +0 -70
  614. package/models/StartTypingIndicatorsRequest.ts +0 -35
  615. package/models/UpdateAChannelMetadataRequest.ts +0 -42
  616. package/models/UpdateAGroupChannelRequest.ts +0 -98
  617. package/models/UpdateAMessageRequest.ts +0 -80
  618. package/models/UpdateAUserRequest.ts +0 -91
  619. package/models/UpdateAnOpenChannelRequest.ts +0 -70
  620. package/models/UpdateBotByIdData.ts +0 -108
  621. package/models/UpdateBotByIdResponse.ts +0 -71
  622. package/models/UpdateChannelInvitationPreferenceRequest.ts +0 -35
  623. package/models/UpdateChannelInvitationPreferenceResponse.ts +0 -35
  624. package/models/UpdateCountPreferenceOfAChannelRequest.ts +0 -38
  625. package/models/UpdateCountPreferenceOfChannelByUrlResponse.ts +0 -38
  626. package/models/UpdateExtraDataInAMessageRequest.ts +0 -50
  627. package/models/UpdateExtraDataInAMessageResponse.ts +0 -36
  628. package/models/UpdatePushPreferencesForAChannelRequest.ts +0 -48
  629. package/models/UpdatePushPreferencesForAChannelResponse.ts +0 -50
  630. package/models/UpdatePushPreferencesRequest.ts +0 -135
  631. package/models/UpdatePushPreferencesRequestDndSchedulesInner.ts +0 -46
  632. package/models/UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner.ts +0 -56
  633. package/models/UpdatePushPreferencesResponse.ts +0 -135
  634. package/models/UpdateSpecificUserMetadataRequest.ts +0 -35
  635. package/models/UpdateUserMetadataRequest.ts +0 -42
  636. package/models/ViewBotByIdResponse.ts +0 -71
  637. package/models/ViewBotByIdResponseBot.ts +0 -70
  638. package/models/ViewCountPreferenceOfAChannelResponse.ts +0 -38
  639. package/models/ViewNumberOfChannelsWithUnreadMessagesResponse.ts +0 -35
  640. package/models/ViewNumberOfDailyActiveUsersResponse.ts +0 -35
  641. package/models/ViewNumberOfMonthlyActiveUsersResponse.ts +0 -35
  642. package/models/ViewNumberOfUnreadMessagesResponse.ts +0 -35
  643. package/models/ViewPushPreferencesForAChannelResponse.ts +0 -50
  644. package/models/ViewPushPreferencesResponse.ts +0 -135
  645. package/models/all.ts +0 -130
  646. package/package.json-e +0 -40
  647. package/rxjsStub.ts +0 -27
  648. package/servers.ts +0 -53
  649. package/src/api/generated/.openapi-generator/FILES +0 -151
  650. package/src/api/generated/.openapi-generator/VERSION +0 -1
  651. package/src/api/generated/README.md +0 -30
  652. package/src/api/generated/apis/AnnouncementApi.ts +0 -96
  653. package/src/api/generated/apis/BotApi.ts +0 -471
  654. package/src/api/generated/apis/GroupChannelApi.ts +0 -1865
  655. package/src/api/generated/apis/MessageApi.ts +0 -1150
  656. package/src/api/generated/apis/MetadataApi.ts +0 -365
  657. package/src/api/generated/apis/ModerationApi.ts +0 -449
  658. package/src/api/generated/apis/OpenChannelApi.ts +0 -676
  659. package/src/api/generated/apis/StatisticsApi.ts +0 -155
  660. package/src/api/generated/apis/UserApi.ts +0 -2454
  661. package/src/api/generated/apis/baseapi.ts +0 -37
  662. package/src/api/generated/apis/exception.ts +0 -15
  663. package/src/api/generated/auth/auth.ts +0 -54
  664. package/src/api/generated/configuration.ts +0 -66
  665. package/src/api/generated/git_push.sh +0 -51
  666. package/src/api/generated/http/http.ts +0 -231
  667. package/src/api/generated/http/isomorphic-fetch.ts +0 -32
  668. package/src/api/generated/index.ts +0 -12
  669. package/src/api/generated/middleware.ts +0 -66
  670. package/src/api/generated/models/AcceptAnInvitationRequest.ts +0 -42
  671. package/src/api/generated/models/AddARegistrationOrDeviceTokenRequest.ts +0 -49
  672. package/src/api/generated/models/AddARegistrationOrDeviceTokenResponse.ts +0 -50
  673. package/src/api/generated/models/AddExtraDataToAMessageRequest.ts +0 -36
  674. package/src/api/generated/models/AddExtraDataToAMessageResponse.ts +0 -36
  675. package/src/api/generated/models/BlockAUserRequest.ts +0 -45
  676. package/src/api/generated/models/BlockAUserResponse.ts +0 -43
  677. package/src/api/generated/models/CheckIfMemberResponse.ts +0 -45
  678. package/src/api/generated/models/ChooseAPushNotificationContentTemplateRequest.ts +0 -41
  679. package/src/api/generated/models/ChooseAPushNotificationContentTemplateResponse.ts +0 -35
  680. package/src/api/generated/models/CreateABotRequest.ts +0 -100
  681. package/src/api/generated/models/CreateABotResponse.ts +0 -86
  682. package/src/api/generated/models/CreateABotResponseBot.ts +0 -91
  683. package/src/api/generated/models/CreateABotResponseBotStyle.ts +0 -57
  684. package/src/api/generated/models/CreateAChannelMetadataRequest.ts +0 -42
  685. package/src/api/generated/models/CreateAChannelMetadataResponse.ts +0 -42
  686. package/src/api/generated/models/CreateAGroupChannelRequest.ts +0 -171
  687. package/src/api/generated/models/CreateAUserRequest.ts +0 -80
  688. package/src/api/generated/models/CreateAnOpenChannelRequest.ts +0 -91
  689. package/src/api/generated/models/CreateUserTokenRequest.ts +0 -35
  690. package/src/api/generated/models/CreateUserTokenResponse.ts +0 -42
  691. package/src/api/generated/models/FreezeAGroupChannelRequest.ts +0 -35
  692. package/src/api/generated/models/FreezeAnOpenChannelRequest.ts +0 -38
  693. package/src/api/generated/models/GetAGroupChannelResponse.ts +0 -365
  694. package/src/api/generated/models/GetAGroupChannelResponseAllOf.ts +0 -36
  695. package/src/api/generated/models/GetAGroupChannelResponseAllOfChannel.ts +0 -84
  696. package/src/api/generated/models/GetChannelInvitationPreferenceResponse.ts +0 -35
  697. package/src/api/generated/models/GetTotalNumberOfMessagesInAChannelResponse.ts +0 -35
  698. package/src/api/generated/models/GroupChannelListMembersResponse.ts +0 -43
  699. package/src/api/generated/models/GroupChatListChannelsResponse.ts +0 -50
  700. package/src/api/generated/models/HideAChannelRequest.ts +0 -68
  701. package/src/api/generated/models/InviteAsMembersRequest.ts +0 -62
  702. package/src/api/generated/models/InviteAsMembersResponse.ts +0 -365
  703. package/src/api/generated/models/InviteAsMembersResponseAllOf.ts +0 -36
  704. package/src/api/generated/models/JoinAChannelRequest.ts +0 -48
  705. package/src/api/generated/models/JoinChannelsRequest.ts +0 -35
  706. package/src/api/generated/models/LeaveAChannelRequest.ts +0 -71
  707. package/src/api/generated/models/LeaveMyGroupChannelsRequest.ts +0 -35
  708. package/src/api/generated/models/ListBlockedUsersResponse.ts +0 -43
  709. package/src/api/generated/models/ListBotsResponse.ts +0 -43
  710. package/src/api/generated/models/ListBotsResponseBotsInner.ts +0 -110
  711. package/src/api/generated/models/ListBotsResponseBotsInnerAi.ts +0 -112
  712. package/src/api/generated/models/ListBotsResponseBotsInnerBot.ts +0 -84
  713. package/src/api/generated/models/ListBotsResponseBotsInnerBotStyle.ts +0 -57
  714. package/src/api/generated/models/ListBotsResponseBotsInnerBotStyleColor.ts +0 -49
  715. package/src/api/generated/models/ListBotsResponseBotsInnerFirstMessagesInner.ts +0 -43
  716. package/src/api/generated/models/ListBotsResponseBotsInnerFirstMessagesInnerData.ts +0 -35
  717. package/src/api/generated/models/ListBotsResponseBotsInnerSafeguard.ts +0 -56
  718. package/src/api/generated/models/ListMessagesResponse.ts +0 -36
  719. package/src/api/generated/models/ListMyGroupChannelsResponse.ts +0 -50
  720. package/src/api/generated/models/ListOpenChannelsResponse.ts +0 -50
  721. package/src/api/generated/models/ListOperatorsResponse.ts +0 -43
  722. package/src/api/generated/models/ListRegistrationOrDeviceTokensResponse.ts +0 -57
  723. package/src/api/generated/models/ListUsersResponse.ts +0 -43
  724. package/src/api/generated/models/MarkAllMessagesAsReadRequest.ts +0 -38
  725. package/src/api/generated/models/MarkChannelMessagesAsReadRequest.ts +0 -35
  726. package/src/api/generated/models/MigrateMessagesAdminMessageRequest.ts +0 -94
  727. package/src/api/generated/models/MigrateMessagesFileMessageRequest.ts +0 -130
  728. package/src/api/generated/models/MigrateMessagesFileMessageRequestThumbnailsInner.ts +0 -29
  729. package/src/api/generated/models/MigrateMessagesRequest.ts +0 -50
  730. package/src/api/generated/models/MigrateMessagesRequestMessagesInner.ts +0 -154
  731. package/src/api/generated/models/MigrateMessagesTextMessageRequest.ts +0 -94
  732. package/src/api/generated/models/ObjectSerializer.ts +0 -619
  733. package/src/api/generated/models/RegisterOperatorsToAGroupChannelRequest.ts +0 -35
  734. package/src/api/generated/models/RemoveARegistrationOrDeviceTokenResponse.ts +0 -43
  735. package/src/api/generated/models/RemoveAllRegistrationOrDeviceTokenResponse.ts +0 -43
  736. package/src/api/generated/models/ResetChatHistoryRequest.ts +0 -42
  737. package/src/api/generated/models/ResetChatHistoryResponse.ts +0 -38
  738. package/src/api/generated/models/ScheduleAnAnnouncementRequest.ts +0 -156
  739. package/src/api/generated/models/ScheduleAnAnnouncementRequestCreateChannelOptions.ts +0 -63
  740. package/src/api/generated/models/ScheduleAnAnnouncementRequestMessage.ts +0 -63
  741. package/src/api/generated/models/ScheduleAnAnnouncementResponse.ts +0 -198
  742. package/src/api/generated/models/ScheduleAnAnnouncementResponseMessage.ts +0 -70
  743. package/src/api/generated/models/SendABotMessageRequest.ts +0 -214
  744. package/src/api/generated/models/SendABotMessageResponse.ts +0 -36
  745. package/src/api/generated/models/SendAMessageRequest.ts +0 -238
  746. package/src/api/generated/models/SendAMessageRequestPushMessageTemplate.ts +0 -52
  747. package/src/api/generated/models/SendAMessageRequestPushMessageTemplateOneOf.ts +0 -48
  748. package/src/api/generated/models/SendAdminMessageRequestBody.ts +0 -121
  749. package/src/api/generated/models/SendFileMessageRequestBody.ts +0 -187
  750. package/src/api/generated/models/SendTextMessageRequestBody.ts +0 -170
  751. package/src/api/generated/models/SendTextMessageRequestBodyPushMessageTemplate.ts +0 -52
  752. package/src/api/generated/models/SendbirdBasicUserInfo.ts +0 -87
  753. package/src/api/generated/models/SendbirdDisappearingMessage.ts +0 -42
  754. package/src/api/generated/models/SendbirdExtendedMessagePayload.ts +0 -51
  755. package/src/api/generated/models/SendbirdFile.ts +0 -71
  756. package/src/api/generated/models/SendbirdGroupChannel.ts +0 -355
  757. package/src/api/generated/models/SendbirdGroupChannelDetail.ts +0 -266
  758. package/src/api/generated/models/SendbirdGroupChannelDetailChannel.ts +0 -84
  759. package/src/api/generated/models/SendbirdMember.ts +0 -187
  760. package/src/api/generated/models/SendbirdMessageResponse.ts +0 -245
  761. package/src/api/generated/models/SendbirdMessageResponseMessageEvents.ts +0 -56
  762. package/src/api/generated/models/SendbirdOpenChannel.ts +0 -120
  763. package/src/api/generated/models/SendbirdParentMessageInfo.ts +0 -79
  764. package/src/api/generated/models/SendbirdPushTriggerOption.ts +0 -15
  765. package/src/api/generated/models/SendbirdReaction.ts +0 -49
  766. package/src/api/generated/models/SendbirdSmsFallback.ts +0 -42
  767. package/src/api/generated/models/SendbirdSortedMetaarrayInner.ts +0 -42
  768. package/src/api/generated/models/SendbirdThumbnail.ts +0 -70
  769. package/src/api/generated/models/SendbirdUser.ts +0 -188
  770. package/src/api/generated/models/StartTypingIndicatorsRequest.ts +0 -35
  771. package/src/api/generated/models/UpdateAChannelMetadataRequest.ts +0 -42
  772. package/src/api/generated/models/UpdateAGroupChannelRequest.ts +0 -98
  773. package/src/api/generated/models/UpdateAMessageRequest.ts +0 -80
  774. package/src/api/generated/models/UpdateAUserRequest.ts +0 -91
  775. package/src/api/generated/models/UpdateAnOpenChannelRequest.ts +0 -70
  776. package/src/api/generated/models/UpdateChannelInvitationPreferenceRequest.ts +0 -35
  777. package/src/api/generated/models/UpdateChannelInvitationPreferenceResponse.ts +0 -35
  778. package/src/api/generated/models/UpdateCountPreferenceOfAChannelRequest.ts +0 -38
  779. package/src/api/generated/models/UpdateCountPreferenceOfChannelByUrlResponse.ts +0 -38
  780. package/src/api/generated/models/UpdateExtraDataInAMessageRequest.ts +0 -50
  781. package/src/api/generated/models/UpdateExtraDataInAMessageResponse.ts +0 -36
  782. package/src/api/generated/models/UpdatePushPreferencesForAChannelRequest.ts +0 -48
  783. package/src/api/generated/models/UpdatePushPreferencesForAChannelResponse.ts +0 -50
  784. package/src/api/generated/models/UpdatePushPreferencesRequest.ts +0 -127
  785. package/src/api/generated/models/UpdatePushPreferencesResponse.ts +0 -127
  786. package/src/api/generated/models/ViewCountPreferenceOfAChannelResponse.ts +0 -38
  787. package/src/api/generated/models/ViewNumberOfChannelsWithUnreadMessagesResponse.ts +0 -35
  788. package/src/api/generated/models/ViewNumberOfDailyActiveUsersResponse.ts +0 -35
  789. package/src/api/generated/models/ViewNumberOfMonthlyActiveUsersResponse.ts +0 -35
  790. package/src/api/generated/models/ViewNumberOfUnreadMessagesResponse.ts +0 -35
  791. package/src/api/generated/models/ViewPushPreferencesForAChannelResponse.ts +0 -50
  792. package/src/api/generated/models/ViewPushPreferencesResponse.ts +0 -127
  793. package/src/api/generated/models/all.ts +0 -121
  794. package/src/api/generated/package.json +0 -40
  795. package/src/api/generated/rxjsStub.ts +0 -27
  796. package/src/api/generated/servers.ts +0 -53
  797. package/src/api/generated/tsconfig.json +0 -28
  798. package/src/api/generated/types/ObjectParamAPI.ts +0 -3611
  799. package/src/api/generated/types/ObservableAPI.ts +0 -2594
  800. package/src/api/generated/types/PromiseAPI.ts +0 -1440
  801. package/src/api/generated/util.ts +0 -37
  802. package/src/types/FileCompat.ts +0 -7
  803. package/tests/asset/image/test_20kb.jpg +0 -0
  804. package/tests/asset/image/test_25mb.bmp +0 -0
  805. package/tests/asset/image/test_5mb.jpg +0 -0
  806. package/tests/asset/image/test_75kb.jpg +0 -0
  807. package/tests/integration/bot.test.ts +0 -548
  808. package/tests/integration/constants.ts +0 -10
  809. package/tests/integration/groupChannel.test.ts +0 -1624
  810. package/tests/integration/helper.ts +0 -8
  811. package/tests/integration/metadata.test.ts +0 -22
  812. package/tests/integration/moderation.test.ts +0 -172
  813. package/tests/integration/openChannel.test.ts +0 -239
  814. package/tests/integration/statistics.test.ts +0 -44
  815. package/tests/integration/user.test.ts +0 -957
  816. package/tests/utils/fileLoader.ts +0 -46
  817. package/tsconfig.json +0 -29
  818. package/types/ObjectParamAPI.ts +0 -3998
  819. package/types/ObservableAPI.ts +0 -2855
  820. package/types/PromiseAPI.ts +0 -1575
  821. package/util.ts +0 -37
@@ -1,1575 +0,0 @@
1
- import { ResponseContext, RequestContext, HttpFile } from '../http/http';
2
- import * as models from '../models/all';
3
- import { Configuration} from '../configuration'
4
-
5
- import { AcceptAnInvitationRequest } from '../models/AcceptAnInvitationRequest';
6
- import { AddARegistrationOrDeviceTokenRequest } from '../models/AddARegistrationOrDeviceTokenRequest';
7
- import { AddARegistrationOrDeviceTokenResponse } from '../models/AddARegistrationOrDeviceTokenResponse';
8
- import { AddExtraDataToAMessageRequest } from '../models/AddExtraDataToAMessageRequest';
9
- import { AddExtraDataToAMessageResponse } from '../models/AddExtraDataToAMessageResponse';
10
- import { BlockAUserRequest } from '../models/BlockAUserRequest';
11
- import { BlockAUserResponse } from '../models/BlockAUserResponse';
12
- import { CheckIfMemberResponse } from '../models/CheckIfMemberResponse';
13
- import { ChooseAPushNotificationContentTemplateRequest } from '../models/ChooseAPushNotificationContentTemplateRequest';
14
- import { ChooseAPushNotificationContentTemplateResponse } from '../models/ChooseAPushNotificationContentTemplateResponse';
15
- import { CreateABotRequest } from '../models/CreateABotRequest';
16
- import { CreateABotResponse } from '../models/CreateABotResponse';
17
- import { CreateABotResponseBot } from '../models/CreateABotResponseBot';
18
- import { CreateAChannelMetadataRequest } from '../models/CreateAChannelMetadataRequest';
19
- import { CreateAChannelMetadataResponse } from '../models/CreateAChannelMetadataResponse';
20
- import { CreateAGroupChannelRequest } from '../models/CreateAGroupChannelRequest';
21
- import { CreateAUserRequest } from '../models/CreateAUserRequest';
22
- import { CreateAnOpenChannelRequest } from '../models/CreateAnOpenChannelRequest';
23
- import { CreateUserMetadataRequest } from '../models/CreateUserMetadataRequest';
24
- import { CreateUserTokenRequest } from '../models/CreateUserTokenRequest';
25
- import { CreateUserTokenResponse } from '../models/CreateUserTokenResponse';
26
- import { FreezeAGroupChannelRequest } from '../models/FreezeAGroupChannelRequest';
27
- import { FreezeAnOpenChannelRequest } from '../models/FreezeAnOpenChannelRequest';
28
- import { GetAGroupChannelResponse } from '../models/GetAGroupChannelResponse';
29
- import { GetAGroupChannelResponseAllOf } from '../models/GetAGroupChannelResponseAllOf';
30
- import { GetChannelInvitationPreferenceResponse } from '../models/GetChannelInvitationPreferenceResponse';
31
- import { GetTotalNumberOfMessagesInAChannelResponse } from '../models/GetTotalNumberOfMessagesInAChannelResponse';
32
- import { GroupChannelListMembersResponse } from '../models/GroupChannelListMembersResponse';
33
- import { GroupChatListChannelsResponse } from '../models/GroupChatListChannelsResponse';
34
- import { HideAChannelRequest } from '../models/HideAChannelRequest';
35
- import { InviteAsMembersRequest } from '../models/InviteAsMembersRequest';
36
- import { InviteAsMembersResponse } from '../models/InviteAsMembersResponse';
37
- import { InviteAsMembersResponseAllOf } from '../models/InviteAsMembersResponseAllOf';
38
- import { JoinAChannelRequest } from '../models/JoinAChannelRequest';
39
- import { JoinChannelsRequest } from '../models/JoinChannelsRequest';
40
- import { LeaveAChannelRequest } from '../models/LeaveAChannelRequest';
41
- import { LeaveMyGroupChannelsRequest } from '../models/LeaveMyGroupChannelsRequest';
42
- import { ListBlockedUsersResponse } from '../models/ListBlockedUsersResponse';
43
- import { ListBotsResponse } from '../models/ListBotsResponse';
44
- import { ListBotsResponseBotsInner } from '../models/ListBotsResponseBotsInner';
45
- import { ListBotsResponseBotsInnerBot } from '../models/ListBotsResponseBotsInnerBot';
46
- import { ListBotsResponseBotsInnerBotStyle } from '../models/ListBotsResponseBotsInnerBotStyle';
47
- import { ListBotsResponseBotsInnerBotStyleColor } from '../models/ListBotsResponseBotsInnerBotStyleColor';
48
- import { ListBotsResponseBotsInnerFirstMessagesInner } from '../models/ListBotsResponseBotsInnerFirstMessagesInner';
49
- import { ListBotsResponseBotsInnerFirstMessagesInnerData } from '../models/ListBotsResponseBotsInnerFirstMessagesInnerData';
50
- import { ListBotsResponseBotsInnerSafeguard } from '../models/ListBotsResponseBotsInnerSafeguard';
51
- import { ListMessagesResponse } from '../models/ListMessagesResponse';
52
- import { ListMyGroupChannelsResponse } from '../models/ListMyGroupChannelsResponse';
53
- import { ListOpenChannelsResponse } from '../models/ListOpenChannelsResponse';
54
- import { ListOperatorsResponse } from '../models/ListOperatorsResponse';
55
- import { ListRegistrationOrDeviceTokensResponse } from '../models/ListRegistrationOrDeviceTokensResponse';
56
- import { ListUsersResponse } from '../models/ListUsersResponse';
57
- import { MarkAllMessagesAsReadRequest } from '../models/MarkAllMessagesAsReadRequest';
58
- import { MarkChannelMessagesAsReadRequest } from '../models/MarkChannelMessagesAsReadRequest';
59
- import { MigrateMessagesAdminMessageRequest } from '../models/MigrateMessagesAdminMessageRequest';
60
- import { MigrateMessagesFileMessageRequest } from '../models/MigrateMessagesFileMessageRequest';
61
- import { MigrateMessagesFileMessageRequestThumbnailsInner } from '../models/MigrateMessagesFileMessageRequestThumbnailsInner';
62
- import { MigrateMessagesRequest } from '../models/MigrateMessagesRequest';
63
- import { MigrateMessagesRequestMessagesInner } from '../models/MigrateMessagesRequestMessagesInner';
64
- import { MigrateMessagesTextMessageRequest } from '../models/MigrateMessagesTextMessageRequest';
65
- import { RegisterOperatorsToAGroupChannelRequest } from '../models/RegisterOperatorsToAGroupChannelRequest';
66
- import { RemoveARegistrationOrDeviceTokenResponse } from '../models/RemoveARegistrationOrDeviceTokenResponse';
67
- import { RemoveAllRegistrationOrDeviceTokenResponse } from '../models/RemoveAllRegistrationOrDeviceTokenResponse';
68
- import { ResetChatHistoryRequest } from '../models/ResetChatHistoryRequest';
69
- import { ResetChatHistoryResponse } from '../models/ResetChatHistoryResponse';
70
- import { ScheduleAnAnnouncementRequest } from '../models/ScheduleAnAnnouncementRequest';
71
- import { ScheduleAnAnnouncementRequestCreateChannelOptions } from '../models/ScheduleAnAnnouncementRequestCreateChannelOptions';
72
- import { ScheduleAnAnnouncementRequestMessage } from '../models/ScheduleAnAnnouncementRequestMessage';
73
- import { ScheduleAnAnnouncementResponse } from '../models/ScheduleAnAnnouncementResponse';
74
- import { ScheduleAnAnnouncementResponseMessage } from '../models/ScheduleAnAnnouncementResponseMessage';
75
- import { SendABotMessageRequest } from '../models/SendABotMessageRequest';
76
- import { SendABotMessageResponse } from '../models/SendABotMessageResponse';
77
- import { SendAMessageRequest } from '../models/SendAMessageRequest';
78
- import { SendAMessageRequestPushMessageTemplate } from '../models/SendAMessageRequestPushMessageTemplate';
79
- import { SendAMessageRequestPushMessageTemplateOneOf } from '../models/SendAMessageRequestPushMessageTemplateOneOf';
80
- import { SendAdminMessageRequestBody } from '../models/SendAdminMessageRequestBody';
81
- import { SendFileMessageRequestBody } from '../models/SendFileMessageRequestBody';
82
- import { SendTextMessageRequestBody } from '../models/SendTextMessageRequestBody';
83
- import { SendTextMessageRequestBodyPushMessageTemplate } from '../models/SendTextMessageRequestBodyPushMessageTemplate';
84
- import { SendbirdBasicUserInfo } from '../models/SendbirdBasicUserInfo';
85
- import { SendbirdDisappearingMessage } from '../models/SendbirdDisappearingMessage';
86
- import { SendbirdExtendedMessagePayload } from '../models/SendbirdExtendedMessagePayload';
87
- import { SendbirdFile } from '../models/SendbirdFile';
88
- import { SendbirdGroupChannel } from '../models/SendbirdGroupChannel';
89
- import { SendbirdGroupChannelDetail } from '../models/SendbirdGroupChannelDetail';
90
- import { SendbirdGroupChannelDetailChannel } from '../models/SendbirdGroupChannelDetailChannel';
91
- import { SendbirdGroupChannelLastMessage } from '../models/SendbirdGroupChannelLastMessage';
92
- import { SendbirdMember } from '../models/SendbirdMember';
93
- import { SendbirdMessageResponse } from '../models/SendbirdMessageResponse';
94
- import { SendbirdMessageResponseExtendedMessagePayload } from '../models/SendbirdMessageResponseExtendedMessagePayload';
95
- import { SendbirdMessageResponseMessageEvents } from '../models/SendbirdMessageResponseMessageEvents';
96
- import { SendbirdOpenChannel } from '../models/SendbirdOpenChannel';
97
- import { SendbirdParentMessageInfo } from '../models/SendbirdParentMessageInfo';
98
- import { SendbirdPushTriggerOption } from '../models/SendbirdPushTriggerOption';
99
- import { SendbirdReaction } from '../models/SendbirdReaction';
100
- import { SendbirdSmsFallback } from '../models/SendbirdSmsFallback';
101
- import { SendbirdSortedMetaarrayInner } from '../models/SendbirdSortedMetaarrayInner';
102
- import { SendbirdThumbnail } from '../models/SendbirdThumbnail';
103
- import { SendbirdUser } from '../models/SendbirdUser';
104
- import { StartTypingIndicatorsRequest } from '../models/StartTypingIndicatorsRequest';
105
- import { UpdateAChannelMetadataRequest } from '../models/UpdateAChannelMetadataRequest';
106
- import { UpdateAGroupChannelRequest } from '../models/UpdateAGroupChannelRequest';
107
- import { UpdateAMessageRequest } from '../models/UpdateAMessageRequest';
108
- import { UpdateAUserRequest } from '../models/UpdateAUserRequest';
109
- import { UpdateAnOpenChannelRequest } from '../models/UpdateAnOpenChannelRequest';
110
- import { UpdateBotByIdData } from '../models/UpdateBotByIdData';
111
- import { UpdateBotByIdResponse } from '../models/UpdateBotByIdResponse';
112
- import { UpdateChannelInvitationPreferenceRequest } from '../models/UpdateChannelInvitationPreferenceRequest';
113
- import { UpdateChannelInvitationPreferenceResponse } from '../models/UpdateChannelInvitationPreferenceResponse';
114
- import { UpdateCountPreferenceOfAChannelRequest } from '../models/UpdateCountPreferenceOfAChannelRequest';
115
- import { UpdateCountPreferenceOfChannelByUrlResponse } from '../models/UpdateCountPreferenceOfChannelByUrlResponse';
116
- import { UpdateExtraDataInAMessageRequest } from '../models/UpdateExtraDataInAMessageRequest';
117
- import { UpdateExtraDataInAMessageResponse } from '../models/UpdateExtraDataInAMessageResponse';
118
- import { UpdatePushPreferencesForAChannelRequest } from '../models/UpdatePushPreferencesForAChannelRequest';
119
- import { UpdatePushPreferencesForAChannelResponse } from '../models/UpdatePushPreferencesForAChannelResponse';
120
- import { UpdatePushPreferencesRequest } from '../models/UpdatePushPreferencesRequest';
121
- import { UpdatePushPreferencesRequestDndSchedulesInner } from '../models/UpdatePushPreferencesRequestDndSchedulesInner';
122
- import { UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner } from '../models/UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner';
123
- import { UpdatePushPreferencesResponse } from '../models/UpdatePushPreferencesResponse';
124
- import { UpdateSpecificUserMetadataRequest } from '../models/UpdateSpecificUserMetadataRequest';
125
- import { UpdateUserMetadataRequest } from '../models/UpdateUserMetadataRequest';
126
- import { ViewBotByIdResponse } from '../models/ViewBotByIdResponse';
127
- import { ViewBotByIdResponseBot } from '../models/ViewBotByIdResponseBot';
128
- import { ViewCountPreferenceOfAChannelResponse } from '../models/ViewCountPreferenceOfAChannelResponse';
129
- import { ViewNumberOfChannelsWithUnreadMessagesResponse } from '../models/ViewNumberOfChannelsWithUnreadMessagesResponse';
130
- import { ViewNumberOfDailyActiveUsersResponse } from '../models/ViewNumberOfDailyActiveUsersResponse';
131
- import { ViewNumberOfMonthlyActiveUsersResponse } from '../models/ViewNumberOfMonthlyActiveUsersResponse';
132
- import { ViewNumberOfUnreadMessagesResponse } from '../models/ViewNumberOfUnreadMessagesResponse';
133
- import { ViewPushPreferencesForAChannelResponse } from '../models/ViewPushPreferencesForAChannelResponse';
134
- import { ViewPushPreferencesResponse } from '../models/ViewPushPreferencesResponse';
135
- import { ObservableAnnouncementApi } from './ObservableAPI';
136
-
137
- import { AnnouncementApiRequestFactory, AnnouncementApiResponseProcessor} from "../apis/AnnouncementApi";
138
- export class PromiseAnnouncementApi {
139
- private api: ObservableAnnouncementApi
140
-
141
- public constructor(
142
- configuration: Configuration,
143
- requestFactory?: AnnouncementApiRequestFactory,
144
- responseProcessor?: AnnouncementApiResponseProcessor
145
- ) {
146
- this.api = new ObservableAnnouncementApi(configuration, requestFactory, responseProcessor);
147
- }
148
-
149
- /**
150
- * ## Schedule an announcement Creates an announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). [https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement](https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement)
151
- * Schedule an announcement
152
- * @param apiToken
153
- * @param scheduleAnAnnouncementRequest
154
- */
155
- public scheduleAnAnnouncement(apiToken?: string, scheduleAnAnnouncementRequest?: ScheduleAnAnnouncementRequest, _options?: Configuration): Promise<ScheduleAnAnnouncementResponse> {
156
- const result = this.api.scheduleAnAnnouncement(apiToken, scheduleAnAnnouncementRequest, _options);
157
- return result.toPromise();
158
- }
159
-
160
-
161
- }
162
-
163
-
164
-
165
- import { ObservableBotApi } from './ObservableAPI';
166
-
167
- import { BotApiRequestFactory, BotApiResponseProcessor} from "../apis/BotApi";
168
- export class PromiseBotApi {
169
- private api: ObservableBotApi
170
-
171
- public constructor(
172
- configuration: Configuration,
173
- requestFactory?: BotApiRequestFactory,
174
- responseProcessor?: BotApiResponseProcessor
175
- ) {
176
- this.api = new ObservableBotApi(configuration, requestFactory, responseProcessor);
177
- }
178
-
179
- /**
180
- * ## Create a bot Creates a new bot within an application. Creating a bot is similar to creating a normal user, except a callback URL should be specified for a bot to receive events. > **Note**: The bot must first [join a group channel](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels) to interact with users. In group channels, you can also invite a bot through the [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) action. [https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot](https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot)
181
- * Create a bot
182
- * @param apiToken
183
- * @param createABotRequest
184
- */
185
- public createABot(apiToken?: string, createABotRequest?: CreateABotRequest, _options?: Configuration): Promise<CreateABotResponse> {
186
- const result = this.api.createABot(apiToken, createABotRequest, _options);
187
- return result.toPromise();
188
- }
189
-
190
- /**
191
- * ## Delete a bot Deletes a bot from an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot ----------------------------
192
- * Delete a bot
193
- * @param botUserid
194
- * @param apiToken
195
- */
196
- public deleteBotById(botUserid: string, apiToken?: string, _options?: Configuration): Promise<any> {
197
- const result = this.api.deleteBotById(botUserid, apiToken, _options);
198
- return result.toPromise();
199
- }
200
-
201
- /**
202
- * ## Join channels Makes a bot join one or more group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels)
203
- * Join channels
204
- * @param botUserid (Required)
205
- * @param apiToken
206
- * @param joinChannelsRequest
207
- */
208
- public joinChannels(botUserid: string, apiToken?: string, joinChannelsRequest?: JoinChannelsRequest, _options?: Configuration): Promise<SendbirdGroupChannelDetail> {
209
- const result = this.api.joinChannels(botUserid, apiToken, joinChannelsRequest, _options);
210
- return result.toPromise();
211
- }
212
-
213
- /**
214
- * ## Leave channels Makes a bot leave a specific channel [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels)
215
- * Leave channels - When leaving a specific channel
216
- * @param channelUrl
217
- * @param botUserid (Required)
218
- * @param apiToken
219
- */
220
- public leaveAGroupChannel(channelUrl: string, botUserid: string, apiToken?: string, _options?: Configuration): Promise<any> {
221
- const result = this.api.leaveAGroupChannel(channelUrl, botUserid, apiToken, _options);
222
- return result.toPromise();
223
- }
224
-
225
- /**
226
- * ## Leave channels Makes a bot leave all group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels)
227
- * Leave channels - When leaving all channels
228
- * @param botUserid (Required)
229
- * @param apiToken
230
- */
231
- public leaveGroupChannels(botUserid: string, apiToken?: string, _options?: Configuration): Promise<any> {
232
- const result = this.api.leaveGroupChannels(botUserid, apiToken, _options);
233
- return result.toPromise();
234
- }
235
-
236
- /**
237
- * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/platform-api/v3/bot/listing-bots/list-bots#1-list-bots
238
- * List bots
239
- * @param token
240
- * @param limit
241
- * @param apiToken
242
- */
243
- public listBots(token?: string, limit?: number, apiToken?: string, _options?: Configuration): Promise<ListBotsResponse> {
244
- const result = this.api.listBots(token, limit, apiToken, _options);
245
- return result.toPromise();
246
- }
247
-
248
- /**
249
- * ## Send a bot message Sends a bot message to a group channel. [https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message](https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message) `bot_userid` Type: string Description: Specifies the ID of the bot to send a message.
250
- * Send a bot's message
251
- * @param botUserid (Required)
252
- * @param messageType Specifies the type of message to send. MESG for text message, FILE for file message.
253
- * @param channelUrl Specifies the URL of the channel to send the message to.
254
- * @param apiToken
255
- * @param message Specifies the content of the message. * This property is required when message_type is MESG.
256
- * @param mentioned * This property is available when message_type is MESG.
257
- * @param extendedMessagePayload
258
- * @param file When sending a single file with a message, specifies the data of the file to upload to the Sendbird server in raw binary format. When sending a request containing a file, change the value of the content-type header to multipart/form-data;boundary&#x3D;{your_unique_boundary_string} in the request. * This property is required when message_type is FILE. * This doesn&#39;t allow a converted base64-encoded string from a file as its value.
259
- * @param requireAuth Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. * This property is available when message_type is FILE.
260
- * @param mentionType * This property is available when message_type is FILE.
261
- * @param mentionedUserIds * This property is available when message_type is FILE.
262
- * @param isSilent * This property is available when message_type is FILE.
263
- * @param sortedMetaarray
264
- * @param apnsBundleId * This property is available when message_type is FILE.
265
- * @param appleCriticalAlertOptions * This property is available when message_type is FILE.
266
- * @param sound * This property is available when message_type is FILE.
267
- * @param volume * This property is available when message_type is FILE.
268
- * @param createdAt
269
- * @param customType
270
- * @param data
271
- * @param dedupId
272
- * @param markAsRead
273
- * @param sendPush
274
- */
275
- public sendABotMessage(botUserid: string, messageType: string, channelUrl: string, apiToken?: string, message?: string, mentioned?: Array<string>, extendedMessagePayload?: SendbirdExtendedMessagePayload, file?: HttpFile, requireAuth?: boolean, mentionType?: string, mentionedUserIds?: Array<string>, isSilent?: boolean, sortedMetaarray?: Array<SendbirdSortedMetaarrayInner>, apnsBundleId?: string, appleCriticalAlertOptions?: any, sound?: string, volume?: number, createdAt?: number, customType?: string, data?: string, dedupId?: string, markAsRead?: boolean, sendPush?: boolean, _options?: Configuration): Promise<SendABotMessageResponse> {
276
- const result = this.api.sendABotMessage(botUserid, messageType, channelUrl, apiToken, message, mentioned, extendedMessagePayload, file, requireAuth, mentionType, mentionedUserIds, isSilent, sortedMetaarray, apnsBundleId, appleCriticalAlertOptions, sound, volume, createdAt, customType, data, dedupId, markAsRead, sendPush, _options);
277
- return result.toPromise();
278
- }
279
-
280
- /**
281
- * ## Update a bot Updates information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot ----------------------------
282
- * Update a bot
283
- * @param botUserid
284
- * @param apiToken
285
- * @param updateBotByIdData
286
- */
287
- public updateBotById(botUserid: string, apiToken?: string, updateBotByIdData?: UpdateBotByIdData, _options?: Configuration): Promise<UpdateBotByIdResponse> {
288
- const result = this.api.updateBotById(botUserid, apiToken, updateBotByIdData, _options);
289
- return result.toPromise();
290
- }
291
-
292
- /**
293
- * ## View a bot Retrieves information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot ----------------------------
294
- * View a bot
295
- * @param botUserid
296
- * @param apiToken
297
- */
298
- public viewBotById(botUserid: string, apiToken?: string, _options?: Configuration): Promise<ViewBotByIdResponse> {
299
- const result = this.api.viewBotById(botUserid, apiToken, _options);
300
- return result.toPromise();
301
- }
302
-
303
-
304
- }
305
-
306
-
307
-
308
- import { ObservableGroupChannelApi } from './ObservableAPI';
309
-
310
- import { GroupChannelApiRequestFactory, GroupChannelApiResponseProcessor} from "../apis/GroupChannelApi";
311
- export class PromiseGroupChannelApi {
312
- private api: ObservableGroupChannelApi
313
-
314
- public constructor(
315
- configuration: Configuration,
316
- requestFactory?: GroupChannelApiRequestFactory,
317
- responseProcessor?: GroupChannelApiResponseProcessor
318
- ) {
319
- this.api = new ObservableGroupChannelApi(configuration, requestFactory, responseProcessor);
320
- }
321
-
322
- /**
323
- * ## Accept an invitation Accepts an invitation from a group channel for a user to join. A single user may join up to 2,000 group channels, and any invitation to a user who is at capacity will be automatically canceled. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: This action is only available when the `auto_accept` property of an application is set to **false**. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) action, or the [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference) action. [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation)
324
- * Accept an invitation
325
- * @param channelUrl (Required)
326
- * @param apiToken
327
- * @param acceptAnInvitationRequest
328
- */
329
- public acceptAnInvitation(channelUrl: string, apiToken?: string, acceptAnInvitationRequest?: AcceptAnInvitationRequest, _options?: Configuration): Promise<SendbirdGroupChannelDetail> {
330
- const result = this.api.acceptAnInvitation(channelUrl, apiToken, acceptAnInvitationRequest, _options);
331
- return result.toPromise();
332
- }
333
-
334
- /**
335
- * ## Unregister operators from a group channel You can unregister operators in a group channel but keep them in the channel as members using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-a-group-channel#1-unregister-operators-from-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators.
336
- * Cancel the registration of operators
337
- * @param channelUrl (Required)
338
- * @param operatorIds Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids&#x3D;urlencoded_id_1,urlencoded_id_2.
339
- * @param deleteAll
340
- * @param apiToken
341
- */
342
- public cancelTheRegistrationOfOperators(channelUrl: string, operatorIds: string, deleteAll?: boolean, apiToken?: string, _options?: Configuration): Promise<any> {
343
- const result = this.api.cancelTheRegistrationOfOperators(channelUrl, operatorIds, deleteAll, apiToken, _options);
344
- return result.toPromise();
345
- }
346
-
347
- /**
348
- * ## Check if user is a member Checks if a user is a member of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member)
349
- * Check if member
350
- * @param channelUrl (Required)
351
- * @param userId (Required)
352
- * @param apiToken
353
- */
354
- public checkIfMember(channelUrl: string, userId: string, apiToken?: string, _options?: Configuration): Promise<CheckIfMemberResponse> {
355
- const result = this.api.checkIfMember(channelUrl, userId, apiToken, _options);
356
- return result.toPromise();
357
- }
358
-
359
- /**
360
- * ## Create a group channel You can create a group channel for 1-to-1 and 1-to-N conversations. By default, group channels are used for conversations between up to 100 members. This number can stretch up to tens of thousands in Supergroup channels. Group channels can either be private and invite only, or public. They support typing indicators, unread count and read receipts, allowing for an interactive chat experience. A user can join up to 2000 group channels, and higher numbers would negatively impact the performance for the end user. The Chat history is turned off by default and its settings can be changed on Sendbird Dashboard by going to Settings > Chat > Channels > Group channels > Chat history. To learn more about group channels, see Channel Overview. > If you are seeing the error message Maximum \"channel join\" count reached., then consider deleting channels that are no longer used. For situations where an agent connects with many customers such as support, delivery logistics or sales, we recommend using Sendbird Desk. https://sendbird.com/docs/chat/platform-api/v3/channel/creating-a-channel/create-a-group-channel#1-create-a-group-channel
361
- * Create a group channel
362
- * @param apiToken
363
- * @param createAGroupChannelRequest
364
- */
365
- public createAGroupChannel(apiToken?: string, createAGroupChannelRequest?: CreateAGroupChannelRequest, _options?: Configuration): Promise<SendbirdGroupChannelDetail> {
366
- const result = this.api.createAGroupChannel(apiToken, createAGroupChannelRequest, _options);
367
- return result.toPromise();
368
- }
369
-
370
- /**
371
- * ## Delete a group channel You can delete a group channel or a Supergroup channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel)
372
- * Delete a group channel
373
- * @param channelUrl
374
- * @param apiToken
375
- */
376
- public deleteAGroupChannel(channelUrl: string, apiToken?: string, _options?: Configuration): Promise<any> {
377
- const result = this.api.deleteAGroupChannel(channelUrl, apiToken, _options);
378
- return result.toPromise();
379
- }
380
-
381
- /**
382
- * ## Get a group channel This action retrieves information about a specific [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use the optional query parameters to determine whether to include delivery receipt, read receipt, or member information in the response. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-a-group-channel#1-get-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve.
383
- * Get a group channel
384
- * @param channelUrl
385
- * @param showDeliveryReceipt
386
- * @param showReadReceipt
387
- * @param showMember
388
- * @param memberActiveMode Restricts the member list to members who are activated or deactivated in the channel. This parameter is only effective if the parameter show_member is true. Acceptable values are all, activated, and deactivated. (default: all)
389
- * @param userId
390
- * @param apiToken
391
- */
392
- public getAGroupChannel(channelUrl: string, showDeliveryReceipt?: boolean, showReadReceipt?: boolean, showMember?: boolean, memberActiveMode?: 'all' | 'activated' | 'deactivated', userId?: string, apiToken?: string, _options?: Configuration): Promise<GetAGroupChannelResponse> {
393
- const result = this.api.getAGroupChannel(channelUrl, showDeliveryReceipt, showReadReceipt, showMember, memberActiveMode, userId, apiToken, _options);
394
- return result.toPromise();
395
- }
396
-
397
- /**
398
- * ## Hide a channel This action allows you to hide a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) from a user's channel list. Hiding a channel gives users the ability to archive channels so that they can focus on channels that need the most attention. With this API, you can allow users to hide a channel from themselves or from all channel members. You can also determine whether to have the channel remain hidden when a new message is sent to the channel. Note that only group channels can be hidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel)
399
- * Hide a channel
400
- * @param channelUrl (Required)
401
- * @param apiToken
402
- * @param hideAChannelRequest
403
- */
404
- public hideAChannel(channelUrl: string, apiToken?: string, hideAChannelRequest?: HideAChannelRequest, _options?: Configuration): Promise<any> {
405
- const result = this.api.hideAChannel(channelUrl, apiToken, hideAChannelRequest, _options);
406
- return result.toPromise();
407
- }
408
-
409
- /**
410
- * ## Invite as members Invites one or more users as members to a group channel. Users can join a group channel immediately after receiving an invitation, without having to accept it. To give users an option to accept or decline an invitation, see [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) or [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference). See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: By default, [blocked users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users) are included when sending invitations. If you wish to exclude blocked users, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members)
411
- * Invite as members
412
- * @param channelUrl (Required)
413
- * @param apiToken
414
- * @param inviteAsMembersRequest
415
- */
416
- public inviteAsMembers(channelUrl: string, apiToken?: string, inviteAsMembersRequest?: InviteAsMembersRequest, _options?: Configuration): Promise<InviteAsMembersResponse> {
417
- const result = this.api.inviteAsMembers(channelUrl, apiToken, inviteAsMembersRequest, _options);
418
- return result.toPromise();
419
- }
420
-
421
- /**
422
- * ## Join a channel This API allows a user to join a [public](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-group-channel-types) group channel. Users can only join public group channels where the `is_public` property is set to `true` using this API. A single user can join up to 2,000 group channels, and a user who reaches the capacity can’t join a new channel. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel)
423
- * Join a channel
424
- * @param channelUrl (Required)
425
- * @param apiToken
426
- * @param joinAChannelRequest
427
- */
428
- public joinAChannel(channelUrl: string, apiToken?: string, joinAChannelRequest?: JoinAChannelRequest, _options?: Configuration): Promise<SendbirdGroupChannelDetail> {
429
- const result = this.api.joinAChannel(channelUrl, apiToken, joinAChannelRequest, _options);
430
- return result.toPromise();
431
- }
432
-
433
- /**
434
- * ## Leave a channel Makes one or more members leave a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-leave-a-channel ----------------------------
435
- * Leave a channel
436
- * @param channelUrl
437
- * @param apiToken
438
- * @param leaveAChannelRequest
439
- */
440
- public leaveAChannel(channelUrl: string, apiToken?: string, leaveAChannelRequest?: LeaveAChannelRequest, _options?: Configuration): Promise<any> {
441
- const result = this.api.leaveAChannel(channelUrl, apiToken, leaveAChannelRequest, _options);
442
- return result.toPromise();
443
- }
444
-
445
- /**
446
- * ## List group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you want to retrieve a list of group channels that a specific user has joined, use the [list group channels by user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user) action under the User section. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels#1-list-group-channels
447
- * List channels
448
- * @param apiToken
449
- * @param token Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0.
450
- * @param limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10)
451
- * @param distinctMode
452
- * @param publicMode
453
- * @param superMode
454
- * @param createdAfter Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format.
455
- * @param createdBefore Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format.
456
- * @param showEmpty
457
- * @param showMember
458
- * @param showDeliveryReceipt
459
- * @param showReadReceipt
460
- * @param showMetadata
461
- * @param showFrozen
462
- * @param order
463
- * @param metadataOrderKey Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key.
464
- * @param customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type.
465
- * @param customTypeStartswith Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended.
466
- * @param channelUrls Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended.
467
- * @param name Specifies one or more group channel names.
468
- * @param nameContains Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended.
469
- * @param nameStartswith Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended.
470
- * @param membersExactlyIn Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended.
471
- * @param membersIncludeIn Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended.
472
- * @param queryType Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND)
473
- * @param membersNickname Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended.
474
- * @param membersNicknameContains Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues.
475
- * @param metadataKey Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified.
476
- * @param metadataValues Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified.
477
- * @param metadataValueStartswith Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified.
478
- * @param metacounterKey Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified.
479
- * @param metacounterValues Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified.
480
- * @param metacounterValueGt Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is greater than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
481
- * @param metacounterValueGte Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is greater than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
482
- * @param metacounterValueLt Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
483
- * @param metacounterValueLte Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
484
- * @param includeSortedMetaarrayInLastMessage Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response.
485
- */
486
- public listChannels(apiToken: string, token?: string, limit?: number, distinctMode?: 'all' | 'distinct' | 'nondistinct', publicMode?: 'all' | 'private' | 'public', superMode?: 'all' | 'super' | 'nonsuper', createdAfter?: number, createdBefore?: number, showEmpty?: boolean, showMember?: boolean, showDeliveryReceipt?: boolean, showReadReceipt?: boolean, showMetadata?: boolean, showFrozen?: boolean, order?: 'chronological' | 'latest_last_message' | 'channel_name_alphabetical' | 'metadata_value_alphabetical', metadataOrderKey?: string, customTypes?: string, customTypeStartswith?: string, channelUrls?: string, name?: string, nameContains?: string, nameStartswith?: string, membersExactlyIn?: string, membersIncludeIn?: string, queryType?: string, membersNickname?: string, membersNicknameContains?: string, metadataKey?: string, metadataValues?: string, metadataValueStartswith?: string, metacounterKey?: string, metacounterValues?: string, metacounterValueGt?: string, metacounterValueGte?: string, metacounterValueLt?: string, metacounterValueLte?: string, includeSortedMetaarrayInLastMessage?: boolean, _options?: Configuration): Promise<GroupChatListChannelsResponse> {
487
- const result = this.api.listChannels(apiToken, token, limit, distinctMode, publicMode, superMode, createdAfter, createdBefore, showEmpty, showMember, showDeliveryReceipt, showReadReceipt, showMetadata, showFrozen, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, includeSortedMetaarrayInLastMessage, _options);
488
- return result.toPromise();
489
- }
490
-
491
- /**
492
- * ## List members Retrieves a list of members of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel) `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of.
493
- * List members
494
- * @param channelUrl (Required)
495
- * @param token
496
- * @param limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10)
497
- * @param userId Specifies the unique ID of a user. If &#x60;user_id&#x60; is provided, the response will include two additional boolean properties about each user in the members list. - &#x60;is_blocking_me&#x60;: Indicates whether the listed user is blocking the user specified in the user_id parameter. - &#x60;is_blocked_by_me&#x60;: Indicates whether the listed user is blocked by the user specified in the user_id parameter.
498
- * @param showDeliveryReceipt
499
- * @param showReadReceipt
500
- * @param showMemberIsMuted
501
- * @param order Specifies the method to sort a list of results. Acceptable values are the following: - &#x60;member_nickname_alphabetical&#x60; (default): sorts by the member nicknames in alphabetical order. - &#x60;operator_then_member_alphabetical&#x60;: sorts by the operational role and member nickname in alphabetical order where channel operators are listed before channel members.
502
- * @param operatorFilter Restricts the search scope to only retrieve operators or non-operator members of the channel. Acceptable values are the following: - &#x60;all&#x60; (default): no filter is applied to the list. - &#x60;operator&#x60;: only channel operators are retrieved. - &#x60;nonoperator&#x60;: all channel members, except channel operators, are retrieved.
503
- * @param memberStateFilter Restricts the search scope to retrieve members based on if they have accepted an invitation or if they were invited by a friend. Acceptable values are &#x60;invited_only&#x60;, &#x60;joined_only&#x60;, &#x60;invited_by_friend&#x60;, &#x60;invited_by_non_friend&#x60;, and &#x60;all&#x60;. (Default: &#x60;all&#x60;)
504
- * @param mutedMemberFilter Restricts the search scope to retrieve members who are muted or unmuted in the channel. Acceptable values are &#x60;all&#x60;, &#x60;muted&#x60;, and &#x60;unmuted&#x60;. (Default: &#x60;all&#x60;)
505
- * @param memberActiveModeFilter Restricts the search scope to retrieve members who are activated or deactivated in the channel. Acceptable values are &#x60;all&#x60;, &#x60;activated&#x60;, and &#x60;deactivated&#x60;. (default: &#x60;activated&#x60;)
506
- * @param nicknameStartswith Searches for members whose nicknames start with the specified value. Urlencoding the value is recommended.
507
- * @param includePushPreference Determines whether to include information about the push preference of each member, such as &#x60;push_enabled&#x60;, &#x60;push_trigger_option&#x60;, and &#x60;do_not_disturb&#x60;. (Default: &#x60;false&#x60;)
508
- * @param apiToken
509
- */
510
- public listMembers(channelUrl: string, token?: string, limit?: number, userId?: string, showDeliveryReceipt?: boolean, showReadReceipt?: boolean, showMemberIsMuted?: boolean, order?: 'member_nickname_alphabetical' | 'operator_then_member_alphabetical', operatorFilter?: 'all' | 'operator' | 'nonoperator', memberStateFilter?: 'all' | 'invited_only' | 'joined_only' | 'invited_by_friend' | 'invited_by_non_friend', mutedMemberFilter?: 'all' | 'muted' | 'unmuted', memberActiveModeFilter?: 'activated' | 'deactivated', nicknameStartswith?: string, includePushPreference?: boolean, apiToken?: string, _options?: Configuration): Promise<GroupChannelListMembersResponse> {
511
- const result = this.api.listMembers(channelUrl, token, limit, userId, showDeliveryReceipt, showReadReceipt, showMemberIsMuted, order, operatorFilter, memberStateFilter, mutedMemberFilter, memberActiveModeFilter, nicknameStartswith, includePushPreference, apiToken, _options);
512
- return result.toPromise();
513
- }
514
-
515
- /**
516
- * ## List operators You can retrieve a list of operators of a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-a-group-channel#1-list-operators-of-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators.
517
- * List operators
518
- * @param channelUrl (Required)
519
- * @param token
520
- * @param limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10)
521
- * @param apiToken
522
- */
523
- public listOperators(channelUrl: string, token?: string, limit?: number, apiToken?: string, _options?: Configuration): Promise<ListOperatorsResponse> {
524
- const result = this.api.listOperators(channelUrl, token, limit, apiToken, _options);
525
- return result.toPromise();
526
- }
527
-
528
- /**
529
- * ## Register operators to a group channel You can register one or more operators to a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-a-group-channel#1-register-operators-to-a-group-channel
530
- * Register operators to a group channel
531
- * @param channelUrl (Required)
532
- * @param apiToken
533
- * @param registerOperatorsToAGroupChannelRequest
534
- */
535
- public registerOperatorsToAGroupChannel(channelUrl: string, apiToken?: string, registerOperatorsToAGroupChannelRequest?: RegisterOperatorsToAGroupChannelRequest, _options?: Configuration): Promise<any> {
536
- const result = this.api.registerOperatorsToAGroupChannel(channelUrl, apiToken, registerOperatorsToAGroupChannelRequest, _options);
537
- return result.toPromise();
538
- }
539
-
540
- /**
541
- * ## Reset chat history This action resets the properties related to a specific user's chat history in a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel), clearing existing messages in a channel from only the specified user's end. Because this action doesn't delete messages from the Sendbird database, other members in the channel can still retrieve and see the messages. This action clears the messages for the specified user by updating the `last_message` and `read_receipt` properties of the [group channel resource](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-list-of-properties-for-group-channels) in addition to other internally managed data such as the count of a user's unread messages. Using the `reset_all` property, you can also reset the properties related to the chat history of all members in a group channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/reset-chat-history#1-reset-chat-history
542
- * Reset chat history
543
- * @param channelUrl (Required)
544
- * @param apiToken
545
- * @param resetChatHistoryRequest
546
- */
547
- public resetChatHistory(channelUrl: string, apiToken?: string, resetChatHistoryRequest?: ResetChatHistoryRequest, _options?: Configuration): Promise<ResetChatHistoryResponse> {
548
- const result = this.api.resetChatHistory(channelUrl, apiToken, resetChatHistoryRequest, _options);
549
- return result.toPromise();
550
- }
551
-
552
- /**
553
- * ## Start typing indicators You can start showing a typing indicator using this API. Seeing whether other users are typing can help a more interactive conversation environment by showing real-time engagement of other users. If you're looking for an easy way to show typing indicators on your app, check out Sendbird UIKit for a ready-to-use UI feature that can be customized to fit your needs. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/start-typing-indicators#1-start-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators.
554
- * Start typing indicators
555
- * @param channelUrl (Required)
556
- * @param apiToken
557
- * @param startTypingIndicatorsRequest
558
- */
559
- public startTypingIndicators(channelUrl: string, apiToken?: string, startTypingIndicatorsRequest?: StartTypingIndicatorsRequest, _options?: Configuration): Promise<any> {
560
- const result = this.api.startTypingIndicators(channelUrl, apiToken, startTypingIndicatorsRequest, _options);
561
- return result.toPromise();
562
- }
563
-
564
- /**
565
- * ## Stop typing indicators You can stop showing a typing indicator using this API. To signal that a user is no longer typing, you can let the indicator disappear when the user sends a message or completely deletes the message text. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/stop-typing-indicators#1-stop-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators.
566
- * Stop typing indicators
567
- * @param channelUrl (Required)
568
- * @param apiToken
569
- * @param startTypingIndicatorsRequest
570
- */
571
- public stopTypingIndicators(channelUrl: string, apiToken?: string, startTypingIndicatorsRequest?: StartTypingIndicatorsRequest, _options?: Configuration): Promise<any> {
572
- const result = this.api.stopTypingIndicators(channelUrl, apiToken, startTypingIndicatorsRequest, _options);
573
- return result.toPromise();
574
- }
575
-
576
- /**
577
- * ## Unhide a channel This action lets a hidden [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) reappear on the channel list of a specific user or every member in the group channel. Hiding or unhiding a channel lets users organize their channel list based on those that require the most attention. Note that only group channels can be hidden or unhidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel) `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive.
578
- * Unhide a channel
579
- * @param channelUrl (Required)
580
- * @param userId (Required)
581
- * @param shouldUnhideAll
582
- * @param apiToken
583
- */
584
- public unhideAChannel(channelUrl: string, userId: string, shouldUnhideAll?: boolean, apiToken?: string, _options?: Configuration): Promise<any> {
585
- const result = this.api.unhideAChannel(channelUrl, userId, shouldUnhideAll, apiToken, _options);
586
- return result.toPromise();
587
- }
588
-
589
- /**
590
- * ## Update a group channel You can update information about a group channel or a Supergroup channel using this API. You can't make any changes to the members of a channel with this API. To change members, see [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) instead. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-a-group-channel#1-update-a-group-channel
591
- * Update a group channel
592
- * @param channelUrl
593
- * @param apiToken
594
- * @param updateAGroupChannelRequest
595
- */
596
- public updateAGroupChannel(channelUrl: string, apiToken?: string, updateAGroupChannelRequest?: UpdateAGroupChannelRequest, _options?: Configuration): Promise<SendbirdGroupChannelDetail> {
597
- const result = this.api.updateAGroupChannel(channelUrl, apiToken, updateAGroupChannelRequest, _options);
598
- return result.toPromise();
599
- }
600
-
601
-
602
- }
603
-
604
-
605
-
606
- import { ObservableMessageApi } from './ObservableAPI';
607
-
608
- import { MessageApiRequestFactory, MessageApiResponseProcessor} from "../apis/MessageApi";
609
- export class PromiseMessageApi {
610
- private api: ObservableMessageApi
611
-
612
- public constructor(
613
- configuration: Configuration,
614
- requestFactory?: MessageApiRequestFactory,
615
- responseProcessor?: MessageApiResponseProcessor
616
- ) {
617
- this.api = new ObservableMessageApi(configuration, requestFactory, responseProcessor);
618
- }
619
-
620
- /**
621
- * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-add-metadata#1-add-metadata ----------------------------
622
- * Add extra data to a message
623
- * @param channelType (Required)
624
- * @param channelUrl (Required)
625
- * @param messageId (Required)
626
- * @param apiToken
627
- * @param addExtraDataToAMessageRequest
628
- */
629
- public addExtraDataToAMessage(channelType: 'open_channels' | 'group_channels', channelUrl: string, messageId: number, apiToken?: string, addExtraDataToAMessageRequest?: AddExtraDataToAMessageRequest, _options?: Configuration): Promise<AddExtraDataToAMessageResponse> {
630
- const result = this.api.addExtraDataToAMessage(channelType, channelUrl, messageId, apiToken, addExtraDataToAMessageRequest, _options);
631
- return result.toPromise();
632
- }
633
-
634
- /**
635
- * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/delete-a-message#1-delete-a-message ----------------------------
636
- * Delete a message
637
- * @param channelType (Required)
638
- * @param channelUrl (Required)
639
- * @param messageId (Required)
640
- * @param apiToken
641
- */
642
- public deleteAMessage(channelType: 'open_channels' | 'group_channels', channelUrl: string, messageId: number, apiToken?: string, _options?: Configuration): Promise<any> {
643
- const result = this.api.deleteAMessage(channelType, channelUrl, messageId, apiToken, _options);
644
- return result.toPromise();
645
- }
646
-
647
- /**
648
- * ## Get a message Retrieves information on a specific message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-a-message#1-get-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve.
649
- * Get a message
650
- * @param channelType (Required)
651
- * @param channelUrl (Required)
652
- * @param messageId (Required)
653
- * @param includeReactions
654
- * @param includeThreadInfo
655
- * @param includeParentMessageInfo
656
- * @param includePollDetails Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings &gt; Chat &gt; Features on Sendbird Dashboard.
657
- * @param withSortedMetaArray
658
- * @param apiToken
659
- */
660
- public getAMessage(channelType: 'open_channels' | 'group_channels', channelUrl: string, messageId: number, includeReactions?: boolean, includeThreadInfo?: boolean, includeParentMessageInfo?: boolean, includePollDetails?: boolean, withSortedMetaArray?: boolean, apiToken?: string, _options?: Configuration): Promise<SendbirdMessageResponse> {
661
- const result = this.api.getAMessage(channelType, channelUrl, messageId, includeReactions, includeThreadInfo, includeParentMessageInfo, includePollDetails, withSortedMetaArray, apiToken, _options);
662
- return result.toPromise();
663
- }
664
-
665
- /**
666
- * ## Get total number of messages in a channel Retrieves the total number of messages in a specific channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-total-number-of-messages-in-a-channel#1-get-total-number-of-messages-in-a-channel ----------------------------
667
- * Get total number of messages in a channel
668
- * @param channelType (Required)
669
- * @param channelUrl (Required)
670
- * @param apiToken
671
- */
672
- public getTotalNumberOfMessagesInAChannel(channelType: 'open_channels' | 'group_channels', channelUrl: string, apiToken?: string, _options?: Configuration): Promise<GetTotalNumberOfMessagesInAChannelResponse> {
673
- const result = this.api.getTotalNumberOfMessagesInAChannel(channelType, channelUrl, apiToken, _options);
674
- return result.toPromise();
675
- }
676
-
677
- /**
678
- * ## List messages You can retrieve a list of past messages of a specific channel with this API. By default, this action returns a list of messages in the order they were created. Replies in threaded messages are also listed in the chronological order of their creation like other messages, not grouped with their parent messages. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/list-messages#1-list-messages `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages.
679
- * List messages
680
- * @param channelType (Required)
681
- * @param channelUrl (Required)
682
- * @param messageTs Specifies the timestamp to be the reference point of the query in Unix milliseconds. Either this or the message_id parameter below should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_ts and the default value for both prev_limit and next_limit is 15.
683
- * @param messageId Specifies the unique ID of the message to be the reference point of the query. Either this or the message_ts parameter above should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_id and the default value for both prev_limit and next_limit is 15.
684
- * @param prevLimit Specifies the number of previously sent messages to retrieve before message_ts. For example, if message_ts&#x3D;1484202848298, then prev_limit&#x3D;50 returns 50 messages sent by 1484202848297 (message_ts - 1). Acceptable values range from 0 to 200. (Default: 15)
685
- * @param nextLimit Specifies the number of sent messages to retrieve after message_ts. For example, if message_ts&#x3D;1484202848298, then next_limit&#x3D;50 returns 50 messages sent from 1484202848299 (message_ts + 1). Acceptable values range from 0 to 200. (Default: 15)
686
- * @param include Determines whether to include messages sent exactly on the specified message_ts in the results. (Default: true)
687
- * @param reverse Determines whether to sort the results in reverse chronological order. If set to true, messages appear in reverse chronological order where the newest comes first and the oldest last. (Default: false)
688
- * @param senderId Restricts the search scope to only retrieve messages sent by the user with the specified ID.
689
- * @param senderIds Restricts the search scope to only retrieve messages sent by one or more users with the specified IDs listed in a comma-separated string.
690
- * @param operatorFilter
691
- * @param customTypes Specifies a comma-separated string of one or more custom message types to retrieve. The value set to this parameter can serve as a filter as follows: - A string of specific custom types: Messages with the corresponding custom types are returned. - Empty like &amp;custom_types&#x3D;&amp;...: Messages whose custom_type property is empty or has a value of null are returned. - An asterisk (\\*) (default): All messages are returned regardless of their custom_type.
692
- * @param messageType
693
- * @param includingRemoved
694
- * @param includeReactions
695
- * @param includeReplyType One of following values: NONE, ALL, ONLY_REPLY_TO_CHANNEL
696
- * @param includeParentMessageInfo
697
- * @param includeThreadInfo
698
- * @param includePollDetails Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings &gt; Chat &gt; Features on Sendbird Dashboard.
699
- * @param withSortedMetaArray Determines whether to include the sorted_metaarray property in the response. (Default: false)
700
- * @param showSubchannelMessagesOnly
701
- * @param userId
702
- * @param apiToken
703
- */
704
- public listMessages(channelType: 'open_channels' | 'group_channels', channelUrl: string, messageTs: number, messageId: number, prevLimit?: number, nextLimit?: number, include?: boolean, reverse?: boolean, senderId?: string, senderIds?: string, operatorFilter?: 'all' | 'operator' | 'nonoperator', customTypes?: string, messageType?: 'MESG' | 'FILE' | 'ADMM', includingRemoved?: boolean, includeReactions?: boolean, includeReplyType?: 'NONE' | 'ALL' | 'ONLY_REPLY_TO_CHANNEL', includeParentMessageInfo?: boolean, includeThreadInfo?: boolean, includePollDetails?: boolean, withSortedMetaArray?: boolean, showSubchannelMessagesOnly?: boolean, userId?: string, apiToken?: string, _options?: Configuration): Promise<ListMessagesResponse> {
705
- const result = this.api.listMessages(channelType, channelUrl, messageTs, messageId, prevLimit, nextLimit, include, reverse, senderId, senderIds, operatorFilter, customTypes, messageType, includingRemoved, includeReactions, includeReplyType, includeParentMessageInfo, includeThreadInfo, includePollDetails, withSortedMetaArray, showSubchannelMessagesOnly, userId, apiToken, _options);
706
- return result.toPromise();
707
- }
708
-
709
- /**
710
- * ## Mark all messages as read Marks all messages in a group channel as read for a specific user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/platform-api/v3/message/read-receipts/mark-all-messages-as-read-message#1-mark-all-messages-as-read
711
- * Mark all messages as read
712
- * @param channelUrl (Required)
713
- * @param apiToken
714
- * @param markChannelMessagesAsReadRequest
715
- */
716
- public markChannelMessagesAsRead(channelUrl: string, apiToken?: string, markChannelMessagesAsReadRequest?: MarkChannelMessagesAsReadRequest, _options?: Configuration): Promise<any> {
717
- const result = this.api.markChannelMessagesAsRead(channelUrl, apiToken, markChannelMessagesAsReadRequest, _options);
718
- return result.toPromise();
719
- }
720
-
721
- /**
722
- * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/platform-api/v3/message/migration/migrate-messages#1-migrate-messages
723
- * Migrate messages
724
- * @param targetChannelUrl (Required)
725
- * @param apiToken
726
- * @param migrateMessagesRequest
727
- */
728
- public migrateMessages(targetChannelUrl: string, apiToken?: string, migrateMessagesRequest?: MigrateMessagesRequest, _options?: Configuration): Promise<any> {
729
- const result = this.api.migrateMessages(targetChannelUrl, apiToken, migrateMessagesRequest, _options);
730
- return result.toPromise();
731
- }
732
-
733
- /**
734
- * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-remove-metadata#1-remove-metadata ----------------------------
735
- * Remove extra data from a message
736
- * @param channelType (Required)
737
- * @param channelUrl (Required)
738
- * @param messageId (Required)
739
- * @param keys
740
- * @param apiToken
741
- */
742
- public removeExtraDataFromAMessage(channelType: 'open_channels' | 'group_channels', channelUrl: string, messageId: number, keys?: string, apiToken?: string, _options?: Configuration): Promise<any> {
743
- const result = this.api.removeExtraDataFromAMessage(channelType, channelUrl, messageId, keys, apiToken, _options);
744
- return result.toPromise();
745
- }
746
-
747
- /**
748
- * ## Send a message You can use this action to send a text message, a file message, or an admin message to a specific channel. Sendbird Chat SDKs and the platform API allows you to upload any type of files in messages to the Sendbird server. See [Message Overview](https://sendbird.com/docs/chat/platform-api/v3/message/message-overview) for more information on each message type. Messages are sent between client devices running the Sendbird Chat SDK or UIKit as well as programmatically from businesses to their customers. For instance, a delivery app can automatically send a message like \"Arriving in one minute!\" on behalf of a delivery driver. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message#1-send-a-message ----------------------------
749
- * Send a message
750
- * @param channelType (Required)
751
- * @param channelUrl (Required)
752
- * @param apiToken
753
- * @param sendAMessageRequest
754
- */
755
- public sendAMessage(channelType: 'open_channels' | 'group_channels', channelUrl: string, apiToken?: string, sendAMessageRequest?: SendAMessageRequest, _options?: Configuration): Promise<SendbirdMessageResponse> {
756
- const result = this.api.sendAMessage(channelType, channelUrl, apiToken, sendAMessageRequest, _options);
757
- return result.toPromise();
758
- }
759
-
760
- /**
761
- * ## Update a message Updates specific information on a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/update-a-message#1-update-a-message ----------------------------
762
- * Update a message
763
- * @param channelType (Required)
764
- * @param channelUrl (Required)
765
- * @param messageId (Required)
766
- * @param apiToken
767
- * @param updateAMessageRequest
768
- */
769
- public updateAMessage(channelType: 'open_channels' | 'group_channels', channelUrl: string, messageId: number, apiToken?: string, updateAMessageRequest?: UpdateAMessageRequest, _options?: Configuration): Promise<SendbirdMessageResponse> {
770
- const result = this.api.updateAMessage(channelType, channelUrl, messageId, apiToken, updateAMessageRequest, _options);
771
- return result.toPromise();
772
- }
773
-
774
- /**
775
- * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-update-metadata#1-update-metadata ----------------------------
776
- * Update extra data in a message
777
- * @param channelType (Required)
778
- * @param channelUrl (Required)
779
- * @param messageId (Required)
780
- * @param apiToken
781
- * @param updateExtraDataInAMessageRequest
782
- */
783
- public updateExtraDataInAMessage(channelType: 'open_channels' | 'group_channels', channelUrl: string, messageId: number, apiToken?: string, updateExtraDataInAMessageRequest?: UpdateExtraDataInAMessageRequest, _options?: Configuration): Promise<UpdateExtraDataInAMessageResponse> {
784
- const result = this.api.updateExtraDataInAMessage(channelType, channelUrl, messageId, apiToken, updateExtraDataInAMessageRequest, _options);
785
- return result.toPromise();
786
- }
787
-
788
-
789
- }
790
-
791
-
792
-
793
- import { ObservableMetadataApi } from './ObservableAPI';
794
-
795
- import { MetadataApiRequestFactory, MetadataApiResponseProcessor} from "../apis/MetadataApi";
796
- export class PromiseMetadataApi {
797
- private api: ObservableMetadataApi
798
-
799
- public constructor(
800
- configuration: Configuration,
801
- requestFactory?: MetadataApiRequestFactory,
802
- responseProcessor?: MetadataApiResponseProcessor
803
- ) {
804
- this.api = new ObservableMetadataApi(configuration, requestFactory, responseProcessor);
805
- }
806
-
807
- /**
808
- * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-create-metadata#1-create-metadata ----------------------------
809
- * Create a channel metadata
810
- * @param channelType (Required)
811
- * @param channelUrl (Required)
812
- * @param apiToken
813
- * @param createAChannelMetadataRequest
814
- */
815
- public createAChannelMetadata(channelType: 'open_channels' | 'group_channels', channelUrl: string, apiToken?: string, createAChannelMetadataRequest?: CreateAChannelMetadataRequest, _options?: Configuration): Promise<CreateAChannelMetadataResponse> {
816
- const result = this.api.createAChannelMetadata(channelType, channelUrl, apiToken, createAChannelMetadataRequest, _options);
817
- return result.toPromise();
818
- }
819
-
820
- /**
821
- * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-delete-metadata#1-delete-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete.
822
- * Delete a channel metadata - When deleting all items of a channel metadata
823
- * @param channelType (Required)
824
- * @param channelUrl (Required)
825
- * @param key
826
- * @param apiToken
827
- */
828
- public deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata(channelType: 'open_channels' | 'group_channels', channelUrl: string, key?: string, apiToken?: string, _options?: Configuration): Promise<any> {
829
- const result = this.api.deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata(channelType, channelUrl, key, apiToken, _options);
830
- return result.toPromise();
831
- }
832
-
833
- /**
834
- * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-update-metadata#1-update-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel.
835
- * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata
836
- * @param channelType (Required)
837
- * @param channelUrl (Required)
838
- * @param apiToken
839
- * @param updateAChannelMetadataRequest
840
- */
841
- public updateAChannelMetadata(channelType: 'open_channels' | 'group_channels', channelUrl: string, apiToken?: string, updateAChannelMetadataRequest?: UpdateAChannelMetadataRequest, _options?: Configuration): Promise<any> {
842
- const result = this.api.updateAChannelMetadata(channelType, channelUrl, apiToken, updateAChannelMetadataRequest, _options);
843
- return result.toPromise();
844
- }
845
-
846
- /**
847
- * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-get-metadata#1-get-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel.
848
- * View a channel metadata - When retrieving all items of a channel metadata
849
- * @param channelType (Required)
850
- * @param channelUrl (Required)
851
- * @param key
852
- * @param keys In a query string, specifies an array of one or more keys of the metadata items. If not specified, all items of the metadata are returned. If specified, only the items that match the parameter values are returned. URL encoding each key is recommended.
853
- * @param apiToken
854
- */
855
- public viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata(channelType: 'open_channels' | 'group_channels', channelUrl: string, key?: string, keys?: string, apiToken?: string, _options?: Configuration): Promise<any> {
856
- const result = this.api.viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata(channelType, channelUrl, key, keys, apiToken, _options);
857
- return result.toPromise();
858
- }
859
-
860
-
861
- }
862
-
863
-
864
-
865
- import { ObservableModerationApi } from './ObservableAPI';
866
-
867
- import { ModerationApiRequestFactory, ModerationApiResponseProcessor} from "../apis/ModerationApi";
868
- export class PromiseModerationApi {
869
- private api: ObservableModerationApi
870
-
871
- public constructor(
872
- configuration: Configuration,
873
- requestFactory?: ModerationApiRequestFactory,
874
- responseProcessor?: ModerationApiResponseProcessor
875
- ) {
876
- this.api = new ObservableModerationApi(configuration, requestFactory, responseProcessor);
877
- }
878
-
879
- /**
880
- * ## Block a user A user can block another user if the user doesn't wish to receive any messages or notifications from the blocked user in a 1-to-1 group channel. In a 1-to-N group channel, the user can still receive messages from the blocked user, but this depends on the UI settings of the chat view. In any case, notifications from the blocked user won't be delivered to the 1-to-N group channel. You can choose whether or not the user can view [which users are blocked](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users) in the channel UI. Sendbird application provides two blocking options: include or exclude blocked users when sending invitations, and turn on or off notifications from blocked users. [Explicit and classic block modes](https://sendbird.com/docs/chat/platform-api/v3/deprecated#2-explicit-and-classic-block-modes) have been deprecated and are only supported for customers who started using them before they were deprecated. - **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated with the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - **Turn on or off notifications from blocked users**: Determines whether or not to receive message notifications from the blocked user in a specific 1-to-N group channel where they are both members. By default, a user doesn't receive notifications from blocked users. The value of this option can be set individually per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. [https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users)
881
- * Block a user
882
- * @param userId (Required)
883
- * @param apiToken
884
- * @param blockAUserRequest
885
- */
886
- public blockAUser(userId: string, apiToken?: string, blockAUserRequest?: BlockAUserRequest, _options?: Configuration): Promise<BlockAUserResponse> {
887
- const result = this.api.blockAUser(userId, apiToken, blockAUserRequest, _options);
888
- return result.toPromise();
889
- }
890
-
891
- /**
892
- * ## Freeze a group channel Freezes or unfreezes a group channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel)
893
- * Freeze a group channel
894
- * @param channelUrl (Required)
895
- * @param apiToken
896
- * @param freezeAGroupChannelRequest
897
- */
898
- public freezeAGroupChannel(channelUrl: string, apiToken?: string, freezeAGroupChannelRequest?: FreezeAGroupChannelRequest, _options?: Configuration): Promise<SendbirdGroupChannelDetail> {
899
- const result = this.api.freezeAGroupChannel(channelUrl, apiToken, freezeAGroupChannelRequest, _options);
900
- return result.toPromise();
901
- }
902
-
903
- /**
904
- * ## Freeze an open channel Freezes or unfreezes an open channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel)
905
- * Freeze an open channel
906
- * @param channelUrl (Required)
907
- * @param apiToken
908
- * @param freezeAnOpenChannelRequest
909
- */
910
- public freezeAnOpenChannel(channelUrl: string, apiToken?: string, freezeAnOpenChannelRequest?: FreezeAnOpenChannelRequest, _options?: Configuration): Promise<SendbirdOpenChannel> {
911
- const result = this.api.freezeAnOpenChannel(channelUrl, apiToken, freezeAnOpenChannelRequest, _options);
912
- return result.toPromise();
913
- }
914
-
915
- /**
916
- * ## List blocked by and blocking users This action retrieves a list of users who are either blocked by a specific user or a list of users who are blocking a specific user. [https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users) `user_id` Type: string Description: Specifies the unique ID of the target user.
917
- * List blocked users
918
- * @param userId (Required)
919
- * @param list Specifies whether to retrieve a list of users who are blocked by the specified user or a list of users who are blocking the specified user. Acceptable values are blocked_by_me and blocking_me. The &#x60;me&#x60; in the values refers to the user specified in the parameter. (Default: blocked_by_me)
920
- * @param token
921
- * @param limit
922
- * @param userIds Specifies the user IDs of the blocked or blocking users to search for. The value should be a comma-separated string that consists of multiple URL encoded user IDs.
923
- * @param metadatakey
924
- * @param metadatavaluesIn
925
- * @param apiToken
926
- */
927
- public listBlockedUsers(userId: string, list?: 'blocked_by_me' | 'blocking_me', token?: string, limit?: number, userIds?: string, metadatakey?: string, metadatavaluesIn?: string, apiToken?: string, _options?: Configuration): Promise<ListBlockedUsersResponse> {
928
- const result = this.api.listBlockedUsers(userId, list, token, limit, userIds, metadatakey, metadatavaluesIn, apiToken, _options);
929
- return result.toPromise();
930
- }
931
-
932
- /**
933
- * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/unblock-a-user#1-unblock-a-user
934
- * Unblock a user
935
- * @param userId (Required)
936
- * @param targetId (Required)
937
- * @param apiToken
938
- */
939
- public unblockAUser(userId: string, targetId: string, apiToken?: string, _options?: Configuration): Promise<any> {
940
- const result = this.api.unblockAUser(userId, targetId, apiToken, _options);
941
- return result.toPromise();
942
- }
943
-
944
-
945
- }
946
-
947
-
948
-
949
- import { ObservableOpenChannelApi } from './ObservableAPI';
950
-
951
- import { OpenChannelApiRequestFactory, OpenChannelApiResponseProcessor} from "../apis/OpenChannelApi";
952
- export class PromiseOpenChannelApi {
953
- private api: ObservableOpenChannelApi
954
-
955
- public constructor(
956
- configuration: Configuration,
957
- requestFactory?: OpenChannelApiRequestFactory,
958
- responseProcessor?: OpenChannelApiResponseProcessor
959
- ) {
960
- this.api = new ObservableOpenChannelApi(configuration, requestFactory, responseProcessor);
961
- }
962
-
963
- /**
964
- * ## Create an open channel You can create an [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel) that facilitates conversations for millions of users. Open channels allow a seamless chat experience possible for all participants by using [dynamic partitioning](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-how-dynamic-partitioning-works) which creates subchannels that each handle up to tens of thousands of participants. Because users don't need invitations to join open channels, short-lived live events like concerts or live streams that don't require a sustained membership are good use cases for open channels. [https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel)
965
- * Create an open channel
966
- * @param apiToken
967
- * @param createAnOpenChannelRequest
968
- */
969
- public createAnOpenChannel(apiToken?: string, createAnOpenChannelRequest?: CreateAnOpenChannelRequest, _options?: Configuration): Promise<SendbirdOpenChannel> {
970
- const result = this.api.createAnOpenChannel(apiToken, createAnOpenChannelRequest, _options);
971
- return result.toPromise();
972
- }
973
-
974
- /**
975
- * ## Delete an open channel You can delete an open channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-an-open-channel#1-delete-an-open-channel
976
- * Delete an open channel
977
- * @param channelUrl (Required)
978
- * @param apiToken
979
- */
980
- public deleteAnOpenChannel(channelUrl: string, apiToken?: string, _options?: Configuration): Promise<any> {
981
- const result = this.api.deleteAnOpenChannel(channelUrl, apiToken, _options);
982
- return result.toPromise();
983
- }
984
-
985
- /**
986
- * ## Get an open channel This action retrieves information about a specific [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel)
987
- * Get an open channel
988
- * @param channelUrl (Required)
989
- * @param apiToken
990
- * @param includeOperators Determines whether to include a list of operators in the response. (Default: false)
991
- */
992
- public getAnOpenChannel(channelUrl: string, apiToken?: string, includeOperators?: boolean, _options?: Configuration): Promise<SendbirdOpenChannel> {
993
- const result = this.api.getAnOpenChannel(channelUrl, apiToken, includeOperators, _options);
994
- return result.toPromise();
995
- }
996
-
997
- /**
998
- * ## List operators of an open channel You can retrieve a list of operators of an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-an-open-channel#1-list-operators-of-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators.
999
- * List operators of an open channel
1000
- * @param channelUrl (Required)
1001
- * @param token
1002
- * @param limit
1003
- * @param apiToken
1004
- */
1005
- public listChannelOperators(channelUrl: string, token?: string, limit?: number, apiToken?: string, _options?: Configuration): Promise<ListOperatorsResponse> {
1006
- const result = this.api.listChannelOperators(channelUrl, token, limit, apiToken, _options);
1007
- return result.toPromise();
1008
- }
1009
-
1010
- /**
1011
- * ## List open channels This action retrieves a list of [open channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels)
1012
- * List open channels
1013
- * @param token
1014
- * @param channelUrls Specifies a comma-separated string of one or more open channel URLs to restrict the search scope. URL encoding each channel URL is recommended.
1015
- * @param limit
1016
- * @param customTypes Specifies a comma-separated string of one or more custom types to filter open channels. Urlencoding each type is recommended (for example, ?custom_types&#x3D;urlencoded_type_1,urlencoded_type_2). If not specified, all channels are returned, regardless of their custom type.
1017
- * @param nameContains
1018
- * @param urlContains
1019
- * @param showFrozen Determines whether to include frozen channels in the response. Frozen channels are channels where only channel operators are allowed to send messages. (Default: true)
1020
- * @param showMetadata Determines whether to include channel metadata in the response. (Default: false)
1021
- * @param apiToken
1022
- */
1023
- public listOpenChannels(token?: string, channelUrls?: string, limit?: number, customTypes?: string, nameContains?: string, urlContains?: string, showFrozen?: boolean, showMetadata?: boolean, apiToken?: string, _options?: Configuration): Promise<ListOpenChannelsResponse> {
1024
- const result = this.api.listOpenChannels(token, channelUrls, limit, customTypes, nameContains, urlContains, showFrozen, showMetadata, apiToken, _options);
1025
- return result.toPromise();
1026
- }
1027
-
1028
- /**
1029
- * ## Register operators to an open channel You can register one or more operators to an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-an-open-channel#1-register-operators-to-an-open-channel
1030
- * Register operators to an open channel
1031
- * @param channelUrl (Required)
1032
- * @param apiToken
1033
- * @param registerOperatorsToAGroupChannelRequest
1034
- */
1035
- public registerOperators(channelUrl: string, apiToken?: string, registerOperatorsToAGroupChannelRequest?: RegisterOperatorsToAGroupChannelRequest, _options?: Configuration): Promise<any> {
1036
- const result = this.api.registerOperators(channelUrl, apiToken, registerOperatorsToAGroupChannelRequest, _options);
1037
- return result.toPromise();
1038
- }
1039
-
1040
- /**
1041
- * ## Unregister operators from an open channel You can unregister operators in an open channel but keep them in the channel as participants using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-an-open-channel#1-unregister-operators-from-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators.
1042
- * Unregister operators from an open channel
1043
- * @param channelUrl (Required)
1044
- * @param operatorIds Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids&#x3D;urlencoded_id_1,urlencoded_id_2.
1045
- * @param deleteAll Determines whether to unregister all operators and leave them as the participants of the channel. When this is set to true, the operator_ids property isn&#39;t effective and doesn&#39;t need to be specified in the request. (Default: false)
1046
- * @param apiToken
1047
- */
1048
- public unregisterOperators(channelUrl: string, operatorIds: string, deleteAll?: boolean, apiToken?: string, _options?: Configuration): Promise<any> {
1049
- const result = this.api.unregisterOperators(channelUrl, operatorIds, deleteAll, apiToken, _options);
1050
- return result.toPromise();
1051
- }
1052
-
1053
- /**
1054
- * ## Update an open channel You can update information about an open channel using this API. You can add a cover image to a channel to better identify the channel or specify a custom channel type for grouping channels by custom type. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-an-open-channel#1-update-an-open-channel
1055
- * Update an open channel
1056
- * @param channelUrl (Required)
1057
- * @param apiToken
1058
- * @param updateAnOpenChannelRequest
1059
- */
1060
- public updateAnOpenChannel(channelUrl: string, apiToken?: string, updateAnOpenChannelRequest?: UpdateAnOpenChannelRequest, _options?: Configuration): Promise<SendbirdOpenChannel> {
1061
- const result = this.api.updateAnOpenChannel(channelUrl, apiToken, updateAnOpenChannelRequest, _options);
1062
- return result.toPromise();
1063
- }
1064
-
1065
-
1066
- }
1067
-
1068
-
1069
-
1070
- import { ObservableStatisticsApi } from './ObservableAPI';
1071
-
1072
- import { StatisticsApiRequestFactory, StatisticsApiResponseProcessor} from "../apis/StatisticsApi";
1073
- export class PromiseStatisticsApi {
1074
- private api: ObservableStatisticsApi
1075
-
1076
- public constructor(
1077
- configuration: Configuration,
1078
- requestFactory?: StatisticsApiRequestFactory,
1079
- responseProcessor?: StatisticsApiResponseProcessor
1080
- ) {
1081
- this.api = new ObservableStatisticsApi(configuration, requestFactory, responseProcessor);
1082
- }
1083
-
1084
- /**
1085
- * ## View number of daily active users Retrieves the number of daily active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users)
1086
- * View number of daily active users
1087
- * @param date YYYY-MM-DD
1088
- * @param apiToken
1089
- */
1090
- public viewNumberOfDailyActiveUsers(date?: string, apiToken?: string, _options?: Configuration): Promise<ViewNumberOfDailyActiveUsersResponse> {
1091
- const result = this.api.viewNumberOfDailyActiveUsers(date, apiToken, _options);
1092
- return result.toPromise();
1093
- }
1094
-
1095
- /**
1096
- * ## View number of monthly active users Retrieves the number of monthly active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users)
1097
- * View number of monthly active users
1098
- * @param date YYYY-MM-DD
1099
- * @param apiToken
1100
- */
1101
- public viewNumberOfMonthlyActiveUsers(date?: string, apiToken?: string, _options?: Configuration): Promise<ViewNumberOfMonthlyActiveUsersResponse> {
1102
- const result = this.api.viewNumberOfMonthlyActiveUsers(date, apiToken, _options);
1103
- return result.toPromise();
1104
- }
1105
-
1106
-
1107
- }
1108
-
1109
-
1110
-
1111
- import { ObservableUserApi } from './ObservableAPI';
1112
-
1113
- import { UserApiRequestFactory, UserApiResponseProcessor} from "../apis/UserApi";
1114
- export class PromiseUserApi {
1115
- private api: ObservableUserApi
1116
-
1117
- public constructor(
1118
- configuration: Configuration,
1119
- requestFactory?: UserApiRequestFactory,
1120
- responseProcessor?: UserApiResponseProcessor
1121
- ) {
1122
- this.api = new ObservableUserApi(configuration, requestFactory, responseProcessor);
1123
- }
1124
-
1125
- /**
1126
- * ## Add a registration or device token > __Note__: A user can have up to 20 FCM registration tokens, 20 HMS device tokens, and 20 APNs device tokens each. The oldest token will be deleted before a new token is added for a user who already has 20 registration or device tokens. Only the 20 newest tokens will be maintained for users who already have more than 20 of each token type. To send notification requests to push notification services on behalf of your server, adds a specific user's FCM registration token, HMS device token, or APNs device token to Sendbird server. Depending on which push service you are using, you can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`. A FCM registration token and an APNs device token allow identification of each client app instance on each device, and are generated and registered by Android and iOS apps through the corresponding SDKs. Use this method if you need to register a token via your own server. > __Note__: For more information on the registration token and device token, visit the Google's [FCM](https://firebase.google.com/docs/auth/admin/verify-id-tokens) page, Huawei's [Push kit](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/service-introduction-0000001050040060) and Apple's [APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html) page. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-add-a-registration-or-device-token ----------------------------
1127
- * Add a registration or device token
1128
- * @param userId (Required)
1129
- * @param tokenType (Required)
1130
- * @param apiToken
1131
- * @param addARegistrationOrDeviceTokenRequest
1132
- */
1133
- public addARegistrationOrDeviceToken(userId: string, tokenType: 'gcm' | 'huawei' | 'apns', apiToken?: string, addARegistrationOrDeviceTokenRequest?: AddARegistrationOrDeviceTokenRequest, _options?: Configuration): Promise<AddARegistrationOrDeviceTokenResponse> {
1134
- const result = this.api.addARegistrationOrDeviceToken(userId, tokenType, apiToken, addARegistrationOrDeviceTokenRequest, _options);
1135
- return result.toPromise();
1136
- }
1137
-
1138
- /**
1139
- * ## Choose a push notification content template Users can choose a template to determine how push notifications appear to them. Push notification content templates are pre-formatted forms that can be customized to display your own push notification messages on a user's device. Sendbird provides two types: `default` and `alternative`. Go to **Settings** > **Chat** > **Push notifications** > **Push notification content templates** on [Sendbird Dashboard](https://dashboard.sendbird.com/auth/signin) to customize the templates. If the `push_message_template` property is specified when [sending a message](https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message), the content template customized for the message takes precedence over the user's choice. > **Note**: Push notifications are only available for group channels. https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/choose-a-push-notification-content-template#1-choose-a-push-notification-content-template
1140
- * Choose a push notification content template
1141
- * @param userId (Required)
1142
- * @param apiToken
1143
- * @param chooseAPushNotificationContentTemplateRequest
1144
- */
1145
- public chooseAPushNotificationContentTemplate(userId: string, apiToken?: string, chooseAPushNotificationContentTemplateRequest?: ChooseAPushNotificationContentTemplateRequest, _options?: Configuration): Promise<ChooseAPushNotificationContentTemplateResponse> {
1146
- const result = this.api.chooseAPushNotificationContentTemplate(userId, apiToken, chooseAPushNotificationContentTemplateRequest, _options);
1147
- return result.toPromise();
1148
- }
1149
-
1150
- /**
1151
- * ## Create a user You should create a user in your Sendbird application to initiate conversations in channels. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. Users are at the core of all conversations. Sendbird applications are made up of users who chat in either Open Channels or Group Channels. Using this API, it is possible to have fine grained control over your users and what those users can do. To learn more about users, see [User overview](https://sendbird.com/docs/chat/platform-api/v3/user/user-overview#2-resource-representation). https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#1-create-a-user
1152
- * Create a user
1153
- * @param apiToken
1154
- * @param createAUserRequest
1155
- */
1156
- public createAUser(apiToken?: string, createAUserRequest?: CreateAUserRequest, _options?: Configuration): Promise<SendbirdUser> {
1157
- const result = this.api.createAUser(apiToken, createAUserRequest, _options);
1158
- return result.toPromise();
1159
- }
1160
-
1161
- /**
1162
- * ## Create metadata When creating new items of the user metadata. https://sendbird.com/docs/chat/platform-api/v3/user/managing-metadata/user-create-metadata
1163
- * Create user metadata
1164
- * @param userId (Required)
1165
- * @param apiToken
1166
- * @param createUserMetadataRequest
1167
- */
1168
- public createUserMetadata(userId: string, apiToken?: string, createUserMetadataRequest?: CreateUserMetadataRequest, _options?: Configuration): Promise<any> {
1169
- const result = this.api.createUserMetadata(userId, apiToken, createUserMetadataRequest, _options);
1170
- return result.toPromise();
1171
- }
1172
-
1173
- /**
1174
- * ## Create user token This action issues a session token for user authentication. Session tokens provide an efficient stateless authentication method by not storing the tokens in the Sendbird database, and thus improving the server's performance. See [access token vs. session token](https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#2-access-token-vs-session-token) to learn more about authenticating users. > **Note**: The endpoint `/users/{user_id}` is deprecated. Use `/users/{user_id}/token` for greater efficiency. https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token#1-issue-a-session-token
1175
- * Create user token
1176
- * @param userId (Required)
1177
- * @param apiToken
1178
- * @param createUserTokenRequest
1179
- */
1180
- public createUserToken(userId: string, apiToken?: string, createUserTokenRequest?: CreateUserTokenRequest, _options?: Configuration): Promise<CreateUserTokenResponse> {
1181
- const result = this.api.createUserToken(userId, apiToken, createUserTokenRequest, _options);
1182
- return result.toPromise();
1183
- }
1184
-
1185
- /**
1186
- * ## Delete a user You can delete a user from your Sendbird application using this API. > **Note**: This API deletes user data and metadata, except for their messages. If you wish to delete user data including their messages, use the [GDPR request](https://sendbird.com/docs/chat/platform-api/v3/privacy/privacy-overview). [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user)
1187
- * Delete a user
1188
- * @param userId (Required)
1189
- * @param apiToken
1190
- */
1191
- public deleteAUser(userId: string, apiToken?: string, _options?: Configuration): Promise<any> {
1192
- const result = this.api.deleteAUser(userId, apiToken, _options);
1193
- return result.toPromise();
1194
- }
1195
-
1196
- /**
1197
- * ## Delete metadata https://sendbird.com/docs/chat/platform-api/v3/user/managing-metadata/user-delete-metadata
1198
- * Delete user metadata
1199
- * @param userId (Required)
1200
- * @param key
1201
- * @param apiToken
1202
- */
1203
- public deleteSpecificUserMetadata(userId: string, key: string, apiToken?: string, _options?: Configuration): Promise<any> {
1204
- const result = this.api.deleteSpecificUserMetadata(userId, key, apiToken, _options);
1205
- return result.toPromise();
1206
- }
1207
-
1208
- /**
1209
- * ## Delete metadata You can delete a specific or all metadata of a user. Metadata stores additional user information such as their preference settings. https://sendbird.com/docs/chat/platform-api/v3/user/managing-metadata/user-delete-metadata
1210
- * Delete user metadata
1211
- * @param userId (Required)
1212
- * @param apiToken
1213
- */
1214
- public deleteUserAllMetadata(userId: string, apiToken?: string, _options?: Configuration): Promise<any> {
1215
- const result = this.api.deleteUserAllMetadata(userId, apiToken, _options);
1216
- return result.toPromise();
1217
- }
1218
-
1219
- /**
1220
- * ## Get channel invitation preference This action retrieves a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Users are subject to both user-specific and application-wide invitation preferences. Of the two, the invitation preference set for a specific user takes precedence over [the default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/get-default-invitation-preference). [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference)
1221
- * Get channel invitation preference
1222
- * @param userId (Required)
1223
- * @param apiToken
1224
- */
1225
- public getChannelInvitationPreference(userId: string, apiToken?: string, _options?: Configuration): Promise<GetChannelInvitationPreferenceResponse> {
1226
- const result = this.api.getChannelInvitationPreference(userId, apiToken, _options);
1227
- return result.toPromise();
1228
- }
1229
-
1230
- /**
1231
- * ## Leave my group channels This action allows a user to leave all group channels or channels with a specific custom type. This API is useful if you want to let a user leave a set of channels at once. To let a user leave only one of their group channels, use the [leave a channel API](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/leave-a-channel) instead. Since this API can't be called for a deactivated user, ensure that the [<code>leave_all_when_deactivated</code>](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#2-request-body) property of the user is set to its default value of `true` to let the user leave all joined group channels upon deactivation. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/leave-group-channels#1-leave-group-channels `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels.
1232
- * Leave my group channels
1233
- * @param userId (Required)
1234
- * @param apiToken
1235
- * @param leaveMyGroupChannelsRequest
1236
- */
1237
- public leaveMyGroupChannels(userId: string, apiToken?: string, leaveMyGroupChannelsRequest?: LeaveMyGroupChannelsRequest, _options?: Configuration): Promise<any> {
1238
- const result = this.api.leaveMyGroupChannels(userId, apiToken, leaveMyGroupChannelsRequest, _options);
1239
- return result.toPromise();
1240
- }
1241
-
1242
- /**
1243
- * ## List my group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) that a specific user has joined. You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you're looking to retrieve a list of group channels in a specific application, visit the [list group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels) page under the Channel section. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user#1-list-group-channels-by-user `user_id` Type: string Description: Specifies the unique ID of the target user.
1244
- * List my group channels
1245
- * @param userId (Required)
1246
- * @param apiToken
1247
- * @param token Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0.
1248
- * @param limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10)
1249
- * @param distinctMode
1250
- * @param publicMode
1251
- * @param superMode
1252
- * @param createdAfter Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format.
1253
- * @param createdBefore Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format.
1254
- * @param showEmpty
1255
- * @param showMember
1256
- * @param showDeliveryReceipt
1257
- * @param showReadReceipt
1258
- * @param showMetadata
1259
- * @param showFrozen
1260
- * @param order
1261
- * @param metadataOrderKey Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key.
1262
- * @param customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type.
1263
- * @param customTypeStartswith Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended.
1264
- * @param channelUrls Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended.
1265
- * @param name Specifies one or more group channel names.
1266
- * @param nameContains Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended.
1267
- * @param nameStartswith Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended.
1268
- * @param membersExactlyIn Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended.
1269
- * @param membersIncludeIn Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended.
1270
- * @param queryType Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND)
1271
- * @param membersNickname Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended.
1272
- * @param membersNicknameContains Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues.
1273
- * @param membersNicknameStartswith Searches for group channels with members whose nicknames begin with the specified value. This parameter isn&#39;t case-sensitive. URL encoding the value is recommended.
1274
- * @param searchQuery Searches for group channels where the specified query string matches the channel name or the nickname of the member. This parameter isn&#39;t case-sensitive and should be specified in conjunction with the search_fields parameter below. URL encoding the value is recommended.
1275
- * @param searchFields Specifies a comma-separated string of one or more search fields to apply to the query, which restricts the results within the specified fields (OR search condition). Acceptable values are channel_name and member_nickname. This is effective only when the search_query parameter above is specified. (Default: channel_name, member_nickname together)
1276
- * @param metadataKey Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified.
1277
- * @param metadataValues Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified.
1278
- * @param metadataValueStartswith Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified.
1279
- * @param metacounterKey Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified.
1280
- * @param metacounterValues Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified.
1281
- * @param metacounterValueGt Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is greater than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
1282
- * @param metacounterValueGte Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is greater than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
1283
- * @param metacounterValueLt Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
1284
- * @param metacounterValueLte Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
1285
- * @param includeSortedMetaarrayInLastMessage Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response.
1286
- * @param hiddenMode Restricts the search scope to group channels that match a specific hidden_status and operating behavior
1287
- * @param unreadFilter Restricts the search scope to only retrieve group channels with one or more unread messages. This filter doesn&#39;t support Supergroup channels. Acceptable values are all and unread_message. (Default: all)
1288
- * @param memberStateFilter
1289
- */
1290
- public listMyGroupChannels(userId: string, apiToken: string, token?: string, limit?: number, distinctMode?: 'all' | 'distinct' | 'nondistinct', publicMode?: 'all' | 'private' | 'public', superMode?: 'all' | 'super' | 'nonsuper', createdAfter?: number, createdBefore?: number, showEmpty?: boolean, showMember?: boolean, showDeliveryReceipt?: boolean, showReadReceipt?: boolean, showMetadata?: boolean, showFrozen?: boolean, order?: 'chronological' | 'latest_last_message' | 'channel_name_alphabetical' | 'metadata_value_alphabetical', metadataOrderKey?: string, customTypes?: string, customTypeStartswith?: string, channelUrls?: string, name?: string, nameContains?: string, nameStartswith?: string, membersExactlyIn?: string, membersIncludeIn?: string, queryType?: string, membersNickname?: string, membersNicknameContains?: string, membersNicknameStartswith?: string, searchQuery?: string, searchFields?: string, metadataKey?: string, metadataValues?: string, metadataValueStartswith?: string, metacounterKey?: string, metacounterValues?: string, metacounterValueGt?: string, metacounterValueGte?: string, metacounterValueLt?: string, metacounterValueLte?: string, includeSortedMetaarrayInLastMessage?: boolean, hiddenMode?: 'unhidden_only' | 'hidden_only' | 'hidden_allow_auto_unhide' | 'hidden_prevent_auto_unhide' | 'all', unreadFilter?: 'all' | 'unread_message', memberStateFilter?: 'all' | 'invited_only' | 'joined_only' | 'invited_by_friend' | 'invited_by_non_friend', _options?: Configuration): Promise<ListMyGroupChannelsResponse> {
1291
- const result = this.api.listMyGroupChannels(userId, apiToken, token, limit, distinctMode, publicMode, superMode, createdAfter, createdBefore, showEmpty, showMember, showDeliveryReceipt, showReadReceipt, showMetadata, showFrozen, order, metadataOrderKey, customTypes, customTypeStartswith, channelUrls, name, nameContains, nameStartswith, membersExactlyIn, membersIncludeIn, queryType, membersNickname, membersNicknameContains, membersNicknameStartswith, searchQuery, searchFields, metadataKey, metadataValues, metadataValueStartswith, metacounterKey, metacounterValues, metacounterValueGt, metacounterValueGte, metacounterValueLt, metacounterValueLte, includeSortedMetaarrayInLastMessage, hiddenMode, unreadFilter, memberStateFilter, _options);
1292
- return result.toPromise();
1293
- }
1294
-
1295
- /**
1296
- * ## List registration or device tokens Retrieves a list of a user's registration or device tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/list-registration-or-device-tokens#1-list-registration-or-device-tokens
1297
- * List registration or device tokens
1298
- * @param userId (Required)
1299
- * @param tokenType (Required)
1300
- * @param apiToken
1301
- */
1302
- public listRegistrationOrDeviceTokens(userId: string, tokenType: 'gcm' | 'huawei' | 'apns', apiToken?: string, _options?: Configuration): Promise<ListRegistrationOrDeviceTokensResponse> {
1303
- const result = this.api.listRegistrationOrDeviceTokens(userId, tokenType, apiToken, _options);
1304
- return result.toPromise();
1305
- }
1306
-
1307
- /**
1308
- * ## List users You can retrieve a list of users in your Sendbird application using this API. You can generate a customized list using various parameter combinations. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/list-users#1-list-users
1309
- * List users
1310
- * @param token
1311
- * @param limit
1312
- * @param activeMode Specifies the activation status of the users in the list. Acceptable values are &#x60;activated&#x60;, &#x60;deactivated&#x60;, and &#x60;all&#x60;. (Default: &#x60;activated&#x60;)
1313
- * @param showBot Determines whether to include bots in the list. (Default: true)
1314
- * @param userIds Specifies the user IDs. The value should be a comma-separated string that consists of multiple urlencoded user IDs. An example of a urlencoded string is ?user_ids&#x3D;urlencoded_id_1,urlencoded_id_2. * The maximum number of user IDs in this parameter is 250. If you exceed the maximum number, your request may receive an HTTP 414 error indicating that the request URL is longer than what Sendbird server can interpret.
1315
- * @param nickname
1316
- * @param nicknameStartswith
1317
- * @param metadatakey
1318
- * @param metadatavaluesIn Searches for blocked users with metadata containing an item with the key specified by the metadatakey parameter above, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple urlencoded metadata values separated by commas (for example, &#x60;?metadatavalues_in&#x3D;urlencoded_value_1, urlencoded_value_2&#x60;). This parameter should be specified in conjunction with the &#x60;metadatakey&#x60; above.
1319
- * @param apiToken
1320
- */
1321
- public listUsers(token?: string, limit?: number, activeMode?: 'activated' | 'deactivated' | 'all', showBot?: boolean, userIds?: string, nickname?: string, nicknameStartswith?: string, metadatakey?: string, metadatavaluesIn?: string, apiToken?: string, _options?: Configuration): Promise<ListUsersResponse> {
1322
- const result = this.api.listUsers(token, limit, activeMode, showBot, userIds, nickname, nicknameStartswith, metadatakey, metadatavaluesIn, apiToken, _options);
1323
- return result.toPromise();
1324
- }
1325
-
1326
- /**
1327
- * ## Mark all messages as read This action marks all of a user's unread messages as read in certain group channels. If channels aren't specified, the user's unread messages in all group channels are marked as read. https://sendbird.com/docs/chat/platform-api/v3/user/marking-messages-as-read/mark-all-of-a-users-messages-as-read#1-mark-all-of-a-user-s-messages-as-read
1328
- * Mark all messages as read
1329
- * @param userId (Required)
1330
- * @param apiToken
1331
- * @param markAllMessagesAsReadRequest
1332
- */
1333
- public markAllMessagesAsRead(userId: string, apiToken?: string, markAllMessagesAsReadRequest?: MarkAllMessagesAsReadRequest, _options?: Configuration): Promise<any> {
1334
- const result = this.api.markAllMessagesAsRead(userId, apiToken, markAllMessagesAsReadRequest, _options);
1335
- return result.toPromise();
1336
- }
1337
-
1338
- /**
1339
- * ## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token
1340
- * Remove a registration or device token - When unregistering a specific token
1341
- * @param userId (Required)
1342
- * @param tokenType (Required)
1343
- * @param token (Required)
1344
- * @param apiToken
1345
- */
1346
- public removeARegistrationOrDeviceToken(userId: string, tokenType: 'gcm' | 'huawei' | 'apns', token: string, apiToken?: string, _options?: Configuration): Promise<RemoveARegistrationOrDeviceTokenResponse> {
1347
- const result = this.api.removeARegistrationOrDeviceToken(userId, tokenType, token, apiToken, _options);
1348
- return result.toPromise();
1349
- }
1350
-
1351
- /**
1352
- * ## Remove a registration or device token from an owner Removes a registration or device token from a user who is the owner of the token. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token-from-an-owner#1-remove-a-registration-or-device-token-from-an-owner
1353
- * Remove a registration or device token from an owner
1354
- * @param tokenType (Required)
1355
- * @param token (Required)
1356
- * @param apiToken
1357
- */
1358
- public removeARegistrationOrDeviceTokenFromAnOwner(tokenType: string, token: string, apiToken?: string, _options?: Configuration): Promise<Array<MarkChannelMessagesAsReadRequest>> {
1359
- const result = this.api.removeARegistrationOrDeviceTokenFromAnOwner(tokenType, token, apiToken, _options);
1360
- return result.toPromise();
1361
- }
1362
-
1363
- /**
1364
- * ## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token
1365
- * Remove a registration or device token - When unregistering all device tokens
1366
- * @param userId (Required)
1367
- * @param apiToken
1368
- */
1369
- public removeAllRegistrationOrDeviceToken(userId: string, apiToken?: string, _options?: Configuration): Promise<RemoveAllRegistrationOrDeviceTokenResponse> {
1370
- const result = this.api.removeAllRegistrationOrDeviceToken(userId, apiToken, _options);
1371
- return result.toPromise();
1372
- }
1373
-
1374
- /**
1375
- * ## Reset push preferences You can reset a user's notifications preferences. The values are reset to the default as the following. - The values for the `do_not_disturb` and `snooze_enabled` properties are set to `false`. - The values of the parameters associated with the time frame are all set to `0`. - The value for the `timezone` property is set to `UTC`. - The value for the `push_sound` property is set to `default`. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences)
1376
- * Reset push preferences
1377
- * @param userId (Required)
1378
- * @param apiToken
1379
- */
1380
- public resetPushPreferences(userId: string, apiToken?: string, _options?: Configuration): Promise<any> {
1381
- const result = this.api.resetPushPreferences(userId, apiToken, _options);
1382
- return result.toPromise();
1383
- }
1384
-
1385
- /**
1386
- * ## Update a user You can update information about a user using this API. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user using this API request. If the `leave_all_when_deactivated` is set to `true`, a user leaves all joined group channels and becomes deactivated. > **Note**: Issuing session tokens through the `/users/{user_id}` endpoint is now deprecated and it&apos;s replaced with [&lt;code&gt;/users/{user_id}/token&lt;/code&gt;](https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token) endpoint for greater efficiency. For those who are currently using the old endpoint, you can start issuing tokens using the new endpoint. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user)
1387
- * Update a user
1388
- * @param userId (Required)
1389
- * @param apiToken
1390
- * @param updateAUserRequest
1391
- */
1392
- public updateAUser(userId: string, apiToken?: string, updateAUserRequest?: UpdateAUserRequest, _options?: Configuration): Promise<SendbirdUser> {
1393
- const result = this.api.updateAUser(userId, apiToken, updateAUserRequest, _options);
1394
- return result.toPromise();
1395
- }
1396
-
1397
- /**
1398
- * ## Update channel invitation preference This action updates a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Updating the [application's default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) won't override existing users' individual channel invitation preferences. The changed preference only affects the users created after the update. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference#1-update-channel-invitation-preference
1399
- * Update channel invitation preference
1400
- * @param userId (Required)
1401
- * @param apiToken
1402
- * @param updateChannelInvitationPreferenceRequest
1403
- */
1404
- public updateChannelInvitationPreference(userId: string, apiToken?: string, updateChannelInvitationPreferenceRequest?: UpdateChannelInvitationPreferenceRequest, _options?: Configuration): Promise<UpdateChannelInvitationPreferenceResponse> {
1405
- const result = this.api.updateChannelInvitationPreference(userId, apiToken, updateChannelInvitationPreferenceRequest, _options);
1406
- return result.toPromise();
1407
- }
1408
-
1409
- /**
1410
- * ## Update count preference of a channel This action updates a user's count preference of a specific group channel. The count preference allows a user to either update the number of unread messages or the number of unread mentioned messages, or both in a specific group channel. If you want to retrieve the total number count of a specific group channel, go to the [get count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel) page. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel#1-update-count-preference-of-a-channel
1411
- * Update count preference of a channel
1412
- * @param userId (Required)
1413
- * @param channelUrl (Required)
1414
- * @param apiToken
1415
- * @param updateCountPreferenceOfAChannelRequest
1416
- */
1417
- public updateCountPreferenceOfAChannel(userId: string, channelUrl: string, apiToken?: string, updateCountPreferenceOfAChannelRequest?: UpdateCountPreferenceOfAChannelRequest, _options?: Configuration): Promise<UpdateCountPreferenceOfChannelByUrlResponse> {
1418
- const result = this.api.updateCountPreferenceOfAChannel(userId, channelUrl, apiToken, updateCountPreferenceOfAChannelRequest, _options);
1419
- return result.toPromise();
1420
- }
1421
-
1422
- /**
1423
- * ## Update push preferences You can update a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences)
1424
- * Update push preferences
1425
- * @param userId (Required)
1426
- * @param apiToken
1427
- * @param updatePushPreferencesRequest
1428
- */
1429
- public updatePushPreferences(userId: string, apiToken?: string, updatePushPreferencesRequest?: UpdatePushPreferencesRequest, _options?: Configuration): Promise<UpdatePushPreferencesResponse> {
1430
- const result = this.api.updatePushPreferences(userId, apiToken, updatePushPreferencesRequest, _options);
1431
- return result.toPromise();
1432
- }
1433
-
1434
- /**
1435
- * ## Update push preferences for a channel You can update a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel)
1436
- * Update push preferences for a channel
1437
- * @param userId (Required)
1438
- * @param channelUrl (Required)
1439
- * @param apiToken
1440
- * @param updatePushPreferencesForAChannelRequest
1441
- */
1442
- public updatePushPreferencesForAChannel(userId: string, channelUrl: string, apiToken?: string, updatePushPreferencesForAChannelRequest?: UpdatePushPreferencesForAChannelRequest, _options?: Configuration): Promise<UpdatePushPreferencesForAChannelResponse> {
1443
- const result = this.api.updatePushPreferencesForAChannel(userId, channelUrl, apiToken, updatePushPreferencesForAChannelRequest, _options);
1444
- return result.toPromise();
1445
- }
1446
-
1447
- /**
1448
- * ## Update metadata https://sendbird.com/docs/chat/platform-api/v3/user/managing-metadata/user-update-metadata
1449
- * Update specific user metadata
1450
- * @param userId (Required)
1451
- * @param key
1452
- * @param apiToken
1453
- * @param updateSpecificUserMetadataRequest
1454
- */
1455
- public updateSpecificUserMetadata(userId: string, key: string, apiToken?: string, updateSpecificUserMetadataRequest?: UpdateSpecificUserMetadataRequest, _options?: Configuration): Promise<any> {
1456
- const result = this.api.updateSpecificUserMetadata(userId, key, apiToken, updateSpecificUserMetadataRequest, _options);
1457
- return result.toPromise();
1458
- }
1459
-
1460
- /**
1461
- * ## Update metadata When updating existing items of the user metadata by their keys or adding new items to the metadata https://sendbird.com/docs/chat/platform-api/v3/user/managing-metadata/user-update-metadata
1462
- * Update user metadata
1463
- * @param userId (Required)
1464
- * @param apiToken
1465
- * @param updateUserMetadataRequest
1466
- */
1467
- public updateUserMetadata(userId: string, apiToken?: string, updateUserMetadataRequest?: UpdateUserMetadataRequest, _options?: Configuration): Promise<any> {
1468
- const result = this.api.updateUserMetadata(userId, apiToken, updateUserMetadataRequest, _options);
1469
- return result.toPromise();
1470
- }
1471
-
1472
- /**
1473
- * ## View a user You can retrieve information about a user using this API. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/get-a-user#1-get-a-user `user_id` Type: string Description: Specifies the unique ID of the user to retrieve.
1474
- * View a user
1475
- * @param userId (Required)
1476
- * @param includeUnreadCount
1477
- * @param customTypes
1478
- * @param superMode Restricts the search scope to retrieve only Supergroup or non-Supergroup channels. Acceptable values are &#x60;all&#x60;, &#x60;super&#x60;, and &#x60;nonsuper&#x60;. This parameter should be specified in conjunction with &#x60;include_unread_count&#x60; above. (Default: &#x60;all&#x60;)
1479
- * @param apiToken
1480
- */
1481
- public viewAUser(userId: string, includeUnreadCount?: boolean, customTypes?: string, superMode?: 'all' | 'super' | 'nonsuper', apiToken?: string, _options?: Configuration): Promise<SendbirdUser> {
1482
- const result = this.api.viewAUser(userId, includeUnreadCount, customTypes, superMode, apiToken, _options);
1483
- return result.toPromise();
1484
- }
1485
-
1486
- /**
1487
- * ## View count preference of a channel This action retrieves a user's count preference of a specific group channel. The count preference allows a user to either retrieve the number of unread messages or unread mentioned messages, or both in a specific group channel. If you want to update the total number count of a specific group channel, visit the [update count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel). https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel#1-get-count-preference-of-a-channel
1488
- * View count preference of a channel
1489
- * @param userId (Required)
1490
- * @param channelUrl (Required)
1491
- * @param apiToken
1492
- */
1493
- public viewCountPreferenceOfAChannel(userId: string, channelUrl: string, apiToken?: string, _options?: Configuration): Promise<ViewCountPreferenceOfAChannelResponse> {
1494
- const result = this.api.viewCountPreferenceOfAChannel(userId, channelUrl, apiToken, _options);
1495
- return result.toPromise();
1496
- }
1497
-
1498
- /**
1499
- * ## View number of channels with unread messages This action retrieves the total number of group channels in which a user has unread messages. You can use various query parameters to determine the search scope of group channels. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-channels-with-unread-messages#1-get-number-of-channels-with-unread-messages
1500
- * View number of channels with unread messages
1501
- * @param userId (Required)
1502
- * @param customTypes
1503
- * @param superMode Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are all, super, and nonsuper. (Default: all)
1504
- * @param apiToken
1505
- */
1506
- public viewNumberOfChannelsWithUnreadMessages(userId: string, customTypes?: string, superMode?: 'all' | 'super' | 'nonsuper', apiToken?: string, _options?: Configuration): Promise<ViewNumberOfChannelsWithUnreadMessagesResponse> {
1507
- const result = this.api.viewNumberOfChannelsWithUnreadMessages(userId, customTypes, superMode, apiToken, _options);
1508
- return result.toPromise();
1509
- }
1510
-
1511
- /**
1512
- * ## View number of unread messages This action retrieves a user's total number of unread messages in group channels. > **Note**: The unread count feature is only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages) `user_id` Type: string Description: Specifies the unique ID of a user.
1513
- * View number of unread messages
1514
- * @param userId (Required)
1515
- * @param customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type.
1516
- * @param superMode Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are &#x60;all&#x60;, &#x60;super&#x60;, and &#x60;nonsuper&#x60;. (Default: &#x60;all&#x60;)
1517
- * @param apiToken
1518
- */
1519
- public viewNumberOfUnreadMessages(userId: string, customTypes?: string, superMode?: string, apiToken?: string, _options?: Configuration): Promise<ViewNumberOfUnreadMessagesResponse> {
1520
- const result = this.api.viewNumberOfUnreadMessages(userId, customTypes, superMode, apiToken, _options);
1521
- return result.toPromise();
1522
- }
1523
-
1524
- /**
1525
- * ## View push preferences You can retrieves a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences)
1526
- * View push preferences
1527
- * @param userId (Required)
1528
- * @param apiToken
1529
- */
1530
- public viewPushPreferences(userId: string, apiToken?: string, _options?: Configuration): Promise<ViewPushPreferencesResponse> {
1531
- const result = this.api.viewPushPreferences(userId, apiToken, _options);
1532
- return result.toPromise();
1533
- }
1534
-
1535
- /**
1536
- * ## View push preferences for a channel You can retrieve a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. These notifications preferences can be configured. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel)
1537
- * View push preferences for a channel
1538
- * @param userId (Required)
1539
- * @param channelUrl (Required)
1540
- * @param apiToken
1541
- */
1542
- public viewPushPreferencesForAChannel(userId: string, channelUrl: string, apiToken?: string, _options?: Configuration): Promise<ViewPushPreferencesForAChannelResponse> {
1543
- const result = this.api.viewPushPreferencesForAChannel(userId, channelUrl, apiToken, _options);
1544
- return result.toPromise();
1545
- }
1546
-
1547
- /**
1548
- * ## Get metadata https://sendbird.com/docs/chat/platform-api/v3/user/managing-metadata/user-get-metadata
1549
- * Get specific user metadata
1550
- * @param userId (Required)
1551
- * @param key
1552
- * @param apiToken
1553
- */
1554
- public viewSpecificUserMetadata(userId: string, key: string, apiToken?: string, _options?: Configuration): Promise<any> {
1555
- const result = this.api.viewSpecificUserMetadata(userId, key, apiToken, _options);
1556
- return result.toPromise();
1557
- }
1558
-
1559
- /**
1560
- * ## View who owns a registration or device token Retrieves a user who owns a FCM registration token, HMS device token, or APNs device token. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-who-owns-a-registration-or-device-token ----------------------------
1561
- * View who owns a registration or device token
1562
- * @param tokenType (Required)
1563
- * @param token (Required)
1564
- * @param apiToken
1565
- */
1566
- public viewWhoOwnsARegistrationOrDeviceToken(tokenType: string, token: string, apiToken?: string, _options?: Configuration): Promise<Array<MarkChannelMessagesAsReadRequest>> {
1567
- const result = this.api.viewWhoOwnsARegistrationOrDeviceToken(tokenType, token, apiToken, _options);
1568
- return result.toPromise();
1569
- }
1570
-
1571
-
1572
- }
1573
-
1574
-
1575
-