@sendbird/sendbird-platform-sdk-typescript 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG +18 -0
- package/README.md +12 -12
- package/apis/AnnouncementApi.d.ts +11 -0
- package/apis/AnnouncementApi.js +59 -0
- package/apis/AnnouncementApi.js.map +1 -0
- package/apis/BotApi.d.ts +36 -0
- package/apis/BotApi.js +434 -0
- package/apis/BotApi.js.map +1 -0
- package/apis/GroupChannelApi.d.ts +63 -0
- package/apis/GroupChannelApi.js +902 -0
- package/apis/GroupChannelApi.js.map +1 -0
- package/apis/MessageApi.d.ts +40 -0
- package/apis/MessageApi.js +567 -0
- package/apis/MessageApi.js.map +1 -0
- package/apis/MetadataApi.d.ts +18 -0
- package/apis/MetadataApi.js +191 -0
- package/apis/MetadataApi.js.map +1 -0
- package/apis/ModerationApi.d.ts +24 -0
- package/apis/ModerationApi.js +229 -0
- package/apis/ModerationApi.js.map +1 -0
- package/apis/OpenChannelApi.d.ts +29 -0
- package/apis/OpenChannelApi.js +340 -0
- package/apis/OpenChannelApi.js.map +1 -0
- package/apis/StatisticsApi.d.ts +13 -0
- package/apis/StatisticsApi.js +88 -0
- package/apis/StatisticsApi.js.map +1 -0
- package/apis/UserApi.d.ts +107 -0
- package/apis/UserApi.js +1418 -0
- package/apis/UserApi.js.map +1 -0
- package/apis/baseapi.d.ts +18 -0
- package/apis/baseapi.js +27 -0
- package/apis/baseapi.js.map +1 -0
- package/apis/exception.d.ts +10 -0
- package/apis/exception.js +14 -0
- package/apis/exception.js.map +1 -0
- package/auth/auth.d.ts +26 -0
- package/auth/auth.js +13 -0
- package/auth/auth.js.map +1 -0
- package/configuration.d.ts +18 -0
- package/configuration.js +21 -0
- package/configuration.js.map +1 -0
- package/http/http.d.ts +83 -0
- package/http/http.js +170 -0
- package/http/http.js.map +1 -0
- package/http/isomorphic-fetch.d.ts +5 -0
- package/http/isomorphic-fetch.js +34 -0
- package/http/isomorphic-fetch.js.map +1 -0
- package/index.d.ts +10 -0
- package/index.js +37 -0
- package/index.js.map +1 -0
- package/middleware.d.ts +16 -0
- package/middleware.js +17 -0
- package/middleware.js.map +1 -0
- package/models/AcceptAnInvitationRequest.d.ts +18 -0
- package/models/AcceptAnInvitationRequest.js +27 -0
- package/models/AcceptAnInvitationRequest.js.map +1 -0
- package/models/AddARegistrationOrDeviceTokenRequest.d.ts +19 -0
- package/models/AddARegistrationOrDeviceTokenRequest.js +33 -0
- package/models/AddARegistrationOrDeviceTokenRequest.js.map +1 -0
- package/models/AddARegistrationOrDeviceTokenResponse.d.ts +20 -0
- package/models/AddARegistrationOrDeviceTokenResponse.js +33 -0
- package/models/AddARegistrationOrDeviceTokenResponse.js.map +1 -0
- package/models/AddExtraDataToAMessageRequest.d.ts +18 -0
- package/models/AddExtraDataToAMessageRequest.js +21 -0
- package/models/AddExtraDataToAMessageRequest.js.map +1 -0
- package/models/AddExtraDataToAMessageResponse.d.ts +18 -0
- package/models/AddExtraDataToAMessageResponse.js +21 -0
- package/models/AddExtraDataToAMessageResponse.js.map +1 -0
- package/models/BlockAUserRequest.d.ts +18 -0
- package/models/BlockAUserRequest.js +27 -0
- package/models/BlockAUserRequest.js.map +1 -0
- package/models/BlockAUserResponse.d.ts +19 -0
- package/models/BlockAUserResponse.js +27 -0
- package/models/BlockAUserResponse.js.map +1 -0
- package/models/CheckIfMemberResponse.d.ts +19 -0
- package/models/CheckIfMemberResponse.js +27 -0
- package/models/CheckIfMemberResponse.js.map +1 -0
- package/models/ChooseAPushNotificationContentTemplateRequest.d.ts +18 -0
- package/models/ChooseAPushNotificationContentTemplateRequest.js +21 -0
- package/models/ChooseAPushNotificationContentTemplateRequest.js.map +1 -0
- package/models/ChooseAPushNotificationContentTemplateResponse.d.ts +17 -0
- package/models/ChooseAPushNotificationContentTemplateResponse.js +21 -0
- package/models/ChooseAPushNotificationContentTemplateResponse.js.map +1 -0
- package/models/CreateABotRequest.d.ts +25 -0
- package/models/CreateABotRequest.js +69 -0
- package/models/CreateABotRequest.js.map +1 -0
- package/models/CreateABotResponse.d.ts +26 -0
- package/models/CreateABotResponse.js +63 -0
- package/models/CreateABotResponse.js.map +1 -0
- package/models/CreateABotResponseBot.d.ts +25 -0
- package/models/CreateABotResponseBot.js +69 -0
- package/models/CreateABotResponseBot.js.map +1 -0
- package/models/CreateABotResponseBotStyle.d.ts +21 -0
- package/models/CreateABotResponseBotStyle.js +39 -0
- package/models/CreateABotResponseBotStyle.js.map +1 -0
- package/models/CreateAChannelMetadataRequest.d.ts +18 -0
- package/models/CreateAChannelMetadataRequest.js +27 -0
- package/models/CreateAChannelMetadataRequest.js.map +1 -0
- package/models/CreateAChannelMetadataResponse.d.ts +18 -0
- package/models/CreateAChannelMetadataResponse.js +27 -0
- package/models/CreateAChannelMetadataResponse.js.map +1 -0
- package/models/CreateAGroupChannelRequest.d.ts +37 -0
- package/models/CreateAGroupChannelRequest.js +129 -0
- package/models/CreateAGroupChannelRequest.js.map +1 -0
- package/models/CreateAUserRequest.d.ts +24 -0
- package/models/CreateAUserRequest.js +57 -0
- package/models/CreateAUserRequest.js.map +1 -0
- package/models/CreateAnOpenChannelRequest.d.ts +26 -0
- package/models/CreateAnOpenChannelRequest.js +69 -0
- package/models/CreateAnOpenChannelRequest.js.map +1 -0
- package/models/CreateUserMetadataRequest.d.ts +17 -0
- package/models/CreateUserMetadataRequest.js +21 -0
- package/models/CreateUserMetadataRequest.js.map +1 -0
- package/models/CreateUserTokenRequest.d.ts +17 -0
- package/models/CreateUserTokenRequest.js +21 -0
- package/models/CreateUserTokenRequest.js.map +1 -0
- package/models/CreateUserTokenResponse.d.ts +18 -0
- package/models/CreateUserTokenResponse.js +27 -0
- package/models/CreateUserTokenResponse.js.map +1 -0
- package/models/FreezeAGroupChannelRequest.d.ts +17 -0
- package/models/FreezeAGroupChannelRequest.js +21 -0
- package/models/FreezeAGroupChannelRequest.js.map +1 -0
- package/models/FreezeAnOpenChannelRequest.d.ts +17 -0
- package/models/FreezeAnOpenChannelRequest.js +21 -0
- package/models/FreezeAnOpenChannelRequest.js.map +1 -0
- package/models/GetAGroupChannelResponse.d.ts +75 -0
- package/models/GetAGroupChannelResponse.js +291 -0
- package/models/GetAGroupChannelResponse.js.map +1 -0
- package/models/GetAGroupChannelResponseAllOf.d.ts +18 -0
- package/models/GetAGroupChannelResponseAllOf.js +21 -0
- package/models/GetAGroupChannelResponseAllOf.js.map +1 -0
- package/models/GetAGroupChannelResponseAllOfChannel.d.ts +24 -0
- package/models/GetAGroupChannelResponseAllOfChannel.js +63 -0
- package/models/GetAGroupChannelResponseAllOfChannel.js.map +1 -0
- package/models/GetChannelInvitationPreferenceResponse.d.ts +17 -0
- package/models/GetChannelInvitationPreferenceResponse.js +21 -0
- package/models/GetChannelInvitationPreferenceResponse.js.map +1 -0
- package/models/GetTotalNumberOfMessagesInAChannelResponse.d.ts +17 -0
- package/models/GetTotalNumberOfMessagesInAChannelResponse.js +21 -0
- package/models/GetTotalNumberOfMessagesInAChannelResponse.js.map +1 -0
- package/models/GroupChannelListMembersResponse.d.ts +19 -0
- package/models/GroupChannelListMembersResponse.js +27 -0
- package/models/GroupChannelListMembersResponse.js.map +1 -0
- package/models/GroupChatListChannelsResponse.d.ts +20 -0
- package/models/GroupChatListChannelsResponse.js +33 -0
- package/models/GroupChatListChannelsResponse.js.map +1 -0
- package/models/HideAChannelRequest.d.ts +20 -0
- package/models/HideAChannelRequest.js +39 -0
- package/models/HideAChannelRequest.js.map +1 -0
- package/models/InviteAsMembersRequest.d.ts +20 -0
- package/models/InviteAsMembersRequest.js +39 -0
- package/models/InviteAsMembersRequest.js.map +1 -0
- package/models/InviteAsMembersResponse.d.ts +75 -0
- package/models/InviteAsMembersResponse.js +291 -0
- package/models/InviteAsMembersResponse.js.map +1 -0
- package/models/InviteAsMembersResponseAllOf.d.ts +18 -0
- package/models/InviteAsMembersResponseAllOf.js +21 -0
- package/models/InviteAsMembersResponseAllOf.js.map +1 -0
- package/models/JoinAChannelRequest.d.ts +18 -0
- package/models/JoinAChannelRequest.js +27 -0
- package/models/JoinAChannelRequest.js.map +1 -0
- package/models/JoinChannelsRequest.d.ts +17 -0
- package/models/JoinChannelsRequest.js +21 -0
- package/models/JoinChannelsRequest.js.map +1 -0
- package/models/LeaveAChannelRequest.d.ts +21 -0
- package/models/LeaveAChannelRequest.js +39 -0
- package/models/LeaveAChannelRequest.js.map +1 -0
- package/models/LeaveMyGroupChannelsRequest.d.ts +17 -0
- package/models/LeaveMyGroupChannelsRequest.js +21 -0
- package/models/LeaveMyGroupChannelsRequest.js.map +1 -0
- package/models/ListBlockedUsersResponse.d.ts +19 -0
- package/models/ListBlockedUsersResponse.js +27 -0
- package/models/ListBlockedUsersResponse.js.map +1 -0
- package/models/ListBotsResponse.d.ts +19 -0
- package/models/ListBotsResponse.js +27 -0
- package/models/ListBotsResponse.js.map +1 -0
- package/models/ListBotsResponseBotsInner.d.ts +30 -0
- package/models/ListBotsResponseBotsInner.js +75 -0
- package/models/ListBotsResponseBotsInner.js.map +1 -0
- package/models/ListBotsResponseBotsInnerAi.d.ts +28 -0
- package/models/ListBotsResponseBotsInnerAi.js +87 -0
- package/models/ListBotsResponseBotsInnerAi.js.map +1 -0
- package/models/ListBotsResponseBotsInnerBot.d.ts +24 -0
- package/models/ListBotsResponseBotsInnerBot.js +63 -0
- package/models/ListBotsResponseBotsInnerBot.js.map +1 -0
- package/models/ListBotsResponseBotsInnerBotStyle.d.ts +21 -0
- package/models/ListBotsResponseBotsInnerBotStyle.js +39 -0
- package/models/ListBotsResponseBotsInnerBotStyle.js.map +1 -0
- package/models/ListBotsResponseBotsInnerBotStyleColor.d.ts +19 -0
- package/models/ListBotsResponseBotsInnerBotStyleColor.js +33 -0
- package/models/ListBotsResponseBotsInnerBotStyleColor.js.map +1 -0
- package/models/ListBotsResponseBotsInnerFirstMessagesInner.d.ts +19 -0
- package/models/ListBotsResponseBotsInnerFirstMessagesInner.js +27 -0
- package/models/ListBotsResponseBotsInnerFirstMessagesInner.js.map +1 -0
- package/models/ListBotsResponseBotsInnerFirstMessagesInnerData.d.ts +17 -0
- package/models/ListBotsResponseBotsInnerFirstMessagesInnerData.js +21 -0
- package/models/ListBotsResponseBotsInnerFirstMessagesInnerData.js.map +1 -0
- package/models/ListBotsResponseBotsInnerSafeguard.d.ts +20 -0
- package/models/ListBotsResponseBotsInnerSafeguard.js +39 -0
- package/models/ListBotsResponseBotsInnerSafeguard.js.map +1 -0
- package/models/ListMessagesResponse.d.ts +18 -0
- package/models/ListMessagesResponse.js +21 -0
- package/models/ListMessagesResponse.js.map +1 -0
- package/models/ListMyGroupChannelsResponse.d.ts +20 -0
- package/models/ListMyGroupChannelsResponse.js +33 -0
- package/models/ListMyGroupChannelsResponse.js.map +1 -0
- package/models/ListOpenChannelsResponse.d.ts +20 -0
- package/models/ListOpenChannelsResponse.js +33 -0
- package/models/ListOpenChannelsResponse.js.map +1 -0
- package/models/ListOperatorsResponse.d.ts +19 -0
- package/models/ListOperatorsResponse.js +27 -0
- package/models/ListOperatorsResponse.js.map +1 -0
- package/models/ListRegistrationOrDeviceTokensResponse.d.ts +21 -0
- package/models/ListRegistrationOrDeviceTokensResponse.js +39 -0
- package/models/ListRegistrationOrDeviceTokensResponse.js.map +1 -0
- package/models/ListUsersResponse.d.ts +19 -0
- package/models/ListUsersResponse.js +27 -0
- package/models/ListUsersResponse.js.map +1 -0
- package/models/MarkAllMessagesAsReadRequest.d.ts +17 -0
- package/models/MarkAllMessagesAsReadRequest.js +21 -0
- package/models/MarkAllMessagesAsReadRequest.js.map +1 -0
- package/models/MarkChannelMessagesAsReadRequest.d.ts +17 -0
- package/models/MarkChannelMessagesAsReadRequest.js +21 -0
- package/models/MarkChannelMessagesAsReadRequest.js.map +1 -0
- package/models/MigrateMessagesAdminMessageRequest.d.ts +26 -0
- package/models/MigrateMessagesAdminMessageRequest.js +69 -0
- package/models/MigrateMessagesAdminMessageRequest.js.map +1 -0
- package/models/MigrateMessagesFileMessageRequest.d.ts +32 -0
- package/models/MigrateMessagesFileMessageRequest.js +99 -0
- package/models/MigrateMessagesFileMessageRequest.js.map +1 -0
- package/models/MigrateMessagesFileMessageRequestThumbnailsInner.d.ts +16 -0
- package/models/MigrateMessagesFileMessageRequestThumbnailsInner.js +14 -0
- package/models/MigrateMessagesFileMessageRequestThumbnailsInner.js.map +1 -0
- package/models/MigrateMessagesRequest.d.ts +20 -0
- package/models/MigrateMessagesRequest.js +33 -0
- package/models/MigrateMessagesRequest.js.map +1 -0
- package/models/MigrateMessagesRequestMessagesInner.d.ts +35 -0
- package/models/MigrateMessagesRequestMessagesInner.js +117 -0
- package/models/MigrateMessagesRequestMessagesInner.js.map +1 -0
- package/models/MigrateMessagesTextMessageRequest.d.ts +26 -0
- package/models/MigrateMessagesTextMessageRequest.js +69 -0
- package/models/MigrateMessagesTextMessageRequest.js.map +1 -0
- package/models/ObjectSerializer.d.ts +139 -0
- package/models/ObjectSerializer.js +630 -0
- package/models/ObjectSerializer.js.map +1 -0
- package/models/RegisterOperatorsToAGroupChannelRequest.d.ts +17 -0
- package/models/RegisterOperatorsToAGroupChannelRequest.js +21 -0
- package/models/RegisterOperatorsToAGroupChannelRequest.js.map +1 -0
- package/models/RemoveARegistrationOrDeviceTokenResponse.d.ts +19 -0
- package/models/RemoveARegistrationOrDeviceTokenResponse.js +27 -0
- package/models/RemoveARegistrationOrDeviceTokenResponse.js.map +1 -0
- package/models/RemoveAllRegistrationOrDeviceTokenResponse.d.ts +19 -0
- package/models/RemoveAllRegistrationOrDeviceTokenResponse.js +27 -0
- package/models/RemoveAllRegistrationOrDeviceTokenResponse.js.map +1 -0
- package/models/ResetChatHistoryRequest.d.ts +18 -0
- package/models/ResetChatHistoryRequest.js +27 -0
- package/models/ResetChatHistoryRequest.js.map +1 -0
- package/models/ResetChatHistoryResponse.d.ts +17 -0
- package/models/ResetChatHistoryResponse.js +21 -0
- package/models/ResetChatHistoryResponse.js.map +1 -0
- package/models/ScheduleAnAnnouncementRequest.d.ts +36 -0
- package/models/ScheduleAnAnnouncementRequest.js +123 -0
- package/models/ScheduleAnAnnouncementRequest.js.map +1 -0
- package/models/ScheduleAnAnnouncementRequestCreateChannelOptions.d.ts +21 -0
- package/models/ScheduleAnAnnouncementRequestCreateChannelOptions.js +45 -0
- package/models/ScheduleAnAnnouncementRequestCreateChannelOptions.js.map +1 -0
- package/models/ScheduleAnAnnouncementRequestMessage.d.ts +21 -0
- package/models/ScheduleAnAnnouncementRequestMessage.js +45 -0
- package/models/ScheduleAnAnnouncementRequestMessage.js.map +1 -0
- package/models/ScheduleAnAnnouncementResponse.d.ts +42 -0
- package/models/ScheduleAnAnnouncementResponse.js +159 -0
- package/models/ScheduleAnAnnouncementResponse.js.map +1 -0
- package/models/ScheduleAnAnnouncementResponseMessage.d.ts +22 -0
- package/models/ScheduleAnAnnouncementResponseMessage.js +51 -0
- package/models/ScheduleAnAnnouncementResponseMessage.js.map +1 -0
- package/models/SendABotMessageRequest.d.ts +42 -0
- package/models/SendABotMessageRequest.js +141 -0
- package/models/SendABotMessageRequest.js.map +1 -0
- package/models/SendABotMessageResponse.d.ts +18 -0
- package/models/SendABotMessageResponse.js +21 -0
- package/models/SendABotMessageResponse.js.map +1 -0
- package/models/SendAMessageRequest.d.ts +47 -0
- package/models/SendAMessageRequest.js +171 -0
- package/models/SendAMessageRequest.js.map +1 -0
- package/models/SendAMessageRequestPushMessageTemplate.d.ts +18 -0
- package/models/SendAMessageRequestPushMessageTemplate.js +27 -0
- package/models/SendAMessageRequestPushMessageTemplate.js.map +1 -0
- package/models/SendAMessageRequestPushMessageTemplateOneOf.d.ts +18 -0
- package/models/SendAMessageRequestPushMessageTemplateOneOf.js +27 -0
- package/models/SendAMessageRequestPushMessageTemplateOneOf.js.map +1 -0
- package/models/SendAdminMessageRequestBody.d.ts +32 -0
- package/models/SendAdminMessageRequestBody.js +87 -0
- package/models/SendAdminMessageRequestBody.js.map +1 -0
- package/models/SendFileMessageRequestBody.d.ts +41 -0
- package/models/SendFileMessageRequestBody.js +141 -0
- package/models/SendFileMessageRequestBody.js.map +1 -0
- package/models/SendTextMessageRequestBody.d.ts +39 -0
- package/models/SendTextMessageRequestBody.js +129 -0
- package/models/SendTextMessageRequestBody.js.map +1 -0
- package/models/SendTextMessageRequestBodyPushMessageTemplate.d.ts +18 -0
- package/models/SendTextMessageRequestBodyPushMessageTemplate.js +27 -0
- package/models/SendTextMessageRequestBodyPushMessageTemplate.js.map +1 -0
- package/models/SendbirdBasicUserInfo.d.ts +25 -0
- package/models/SendbirdBasicUserInfo.js +63 -0
- package/models/SendbirdBasicUserInfo.js.map +1 -0
- package/models/SendbirdDisappearingMessage.d.ts +18 -0
- package/models/SendbirdDisappearingMessage.js +27 -0
- package/models/SendbirdDisappearingMessage.js.map +1 -0
- package/models/SendbirdExtendedMessagePayload.d.ts +18 -0
- package/models/SendbirdExtendedMessagePayload.js +27 -0
- package/models/SendbirdExtendedMessagePayload.js.map +1 -0
- package/models/SendbirdFile.d.ts +23 -0
- package/models/SendbirdFile.js +51 -0
- package/models/SendbirdFile.js.map +1 -0
- package/models/SendbirdGroupChannel.d.ts +73 -0
- package/models/SendbirdGroupChannel.js +285 -0
- package/models/SendbirdGroupChannel.js.map +1 -0
- package/models/SendbirdGroupChannelDetail.d.ts +60 -0
- package/models/SendbirdGroupChannelDetail.js +213 -0
- package/models/SendbirdGroupChannelDetail.js.map +1 -0
- package/models/SendbirdGroupChannelDetailChannel.d.ts +24 -0
- package/models/SendbirdGroupChannelDetailChannel.js +63 -0
- package/models/SendbirdGroupChannelDetailChannel.js.map +1 -0
- package/models/SendbirdGroupChannelLastMessage.d.ts +53 -0
- package/models/SendbirdGroupChannelLastMessage.js +195 -0
- package/models/SendbirdGroupChannelLastMessage.js.map +1 -0
- package/models/SendbirdMember.d.ts +41 -0
- package/models/SendbirdMember.js +147 -0
- package/models/SendbirdMember.js.map +1 -0
- package/models/SendbirdMessageResponse.d.ts +53 -0
- package/models/SendbirdMessageResponse.js +195 -0
- package/models/SendbirdMessageResponse.js.map +1 -0
- package/models/SendbirdMessageResponseExtendedMessagePayload.d.ts +18 -0
- package/models/SendbirdMessageResponseExtendedMessagePayload.js +27 -0
- package/models/SendbirdMessageResponseExtendedMessagePayload.js.map +1 -0
- package/models/SendbirdMessageResponseMessageEvents.d.ts +20 -0
- package/models/SendbirdMessageResponseMessageEvents.js +39 -0
- package/models/SendbirdMessageResponseMessageEvents.js.map +1 -0
- package/models/SendbirdOpenChannel.d.ts +30 -0
- package/models/SendbirdOpenChannel.js +93 -0
- package/models/SendbirdOpenChannel.js.map +1 -0
- package/models/SendbirdParentMessageInfo.d.ts +25 -0
- package/models/SendbirdParentMessageInfo.js +57 -0
- package/models/SendbirdParentMessageInfo.js.map +1 -0
- package/models/SendbirdPushTriggerOption.d.ts +1 -0
- package/models/SendbirdPushTriggerOption.js +3 -0
- package/models/SendbirdPushTriggerOption.js.map +1 -0
- package/models/SendbirdReaction.d.ts +19 -0
- package/models/SendbirdReaction.js +33 -0
- package/models/SendbirdReaction.js.map +1 -0
- package/models/SendbirdSmsFallback.d.ts +18 -0
- package/models/SendbirdSmsFallback.js +27 -0
- package/models/SendbirdSmsFallback.js.map +1 -0
- package/models/SendbirdSortedMetaarrayInner.d.ts +18 -0
- package/models/SendbirdSortedMetaarrayInner.js +27 -0
- package/models/SendbirdSortedMetaarrayInner.js.map +1 -0
- package/models/SendbirdThumbnail.d.ts +22 -0
- package/models/SendbirdThumbnail.js +51 -0
- package/models/SendbirdThumbnail.js.map +1 -0
- package/models/SendbirdUser.d.ts +38 -0
- package/models/SendbirdUser.js +141 -0
- package/models/SendbirdUser.js.map +1 -0
- package/models/StartTypingIndicatorsRequest.d.ts +17 -0
- package/models/StartTypingIndicatorsRequest.js +21 -0
- package/models/StartTypingIndicatorsRequest.js.map +1 -0
- package/models/UpdateAChannelMetadataRequest.d.ts +18 -0
- package/models/UpdateAChannelMetadataRequest.js +27 -0
- package/models/UpdateAChannelMetadataRequest.js.map +1 -0
- package/models/UpdateAGroupChannelRequest.d.ts +27 -0
- package/models/UpdateAGroupChannelRequest.js +75 -0
- package/models/UpdateAGroupChannelRequest.js.map +1 -0
- package/models/UpdateAMessageRequest.d.ts +24 -0
- package/models/UpdateAMessageRequest.js +57 -0
- package/models/UpdateAMessageRequest.js.map +1 -0
- package/models/UpdateAUserRequest.d.ts +26 -0
- package/models/UpdateAUserRequest.js +69 -0
- package/models/UpdateAUserRequest.js.map +1 -0
- package/models/UpdateAnOpenChannelRequest.d.ts +23 -0
- package/models/UpdateAnOpenChannelRequest.js +51 -0
- package/models/UpdateAnOpenChannelRequest.js.map +1 -0
- package/models/UpdateBotByIdData.d.ts +24 -0
- package/models/UpdateBotByIdData.js +63 -0
- package/models/UpdateBotByIdData.js.map +1 -0
- package/models/UpdateBotByIdResponse.d.ts +23 -0
- package/models/UpdateBotByIdResponse.js +51 -0
- package/models/UpdateBotByIdResponse.js.map +1 -0
- package/models/UpdateChannelInvitationPreferenceRequest.d.ts +17 -0
- package/models/UpdateChannelInvitationPreferenceRequest.js +21 -0
- package/models/UpdateChannelInvitationPreferenceRequest.js.map +1 -0
- package/models/UpdateChannelInvitationPreferenceResponse.d.ts +17 -0
- package/models/UpdateChannelInvitationPreferenceResponse.js +21 -0
- package/models/UpdateChannelInvitationPreferenceResponse.js.map +1 -0
- package/models/UpdateCountPreferenceOfAChannelRequest.d.ts +18 -0
- package/models/UpdateCountPreferenceOfAChannelRequest.js +21 -0
- package/models/UpdateCountPreferenceOfAChannelRequest.js.map +1 -0
- package/models/UpdateCountPreferenceOfChannelByUrlResponse.d.ts +18 -0
- package/models/UpdateCountPreferenceOfChannelByUrlResponse.js +21 -0
- package/models/UpdateCountPreferenceOfChannelByUrlResponse.js.map +1 -0
- package/models/UpdateExtraDataInAMessageRequest.d.ts +20 -0
- package/models/UpdateExtraDataInAMessageRequest.js +33 -0
- package/models/UpdateExtraDataInAMessageRequest.js.map +1 -0
- package/models/UpdateExtraDataInAMessageResponse.d.ts +18 -0
- package/models/UpdateExtraDataInAMessageResponse.js +21 -0
- package/models/UpdateExtraDataInAMessageResponse.js.map +1 -0
- package/models/UpdatePushPreferencesForAChannelRequest.d.ts +19 -0
- package/models/UpdatePushPreferencesForAChannelRequest.js +27 -0
- package/models/UpdatePushPreferencesForAChannelRequest.js.map +1 -0
- package/models/UpdatePushPreferencesForAChannelResponse.d.ts +20 -0
- package/models/UpdatePushPreferencesForAChannelResponse.js +33 -0
- package/models/UpdatePushPreferencesForAChannelResponse.js.map +1 -0
- package/models/UpdatePushPreferencesRequest.d.ts +33 -0
- package/models/UpdatePushPreferencesRequest.js +105 -0
- package/models/UpdatePushPreferencesRequest.js.map +1 -0
- package/models/UpdatePushPreferencesRequestDndSchedulesInner.d.ts +20 -0
- package/models/UpdatePushPreferencesRequestDndSchedulesInner.js +27 -0
- package/models/UpdatePushPreferencesRequestDndSchedulesInner.js.map +1 -0
- package/models/UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner.d.ts +20 -0
- package/models/UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner.js +39 -0
- package/models/UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner.js.map +1 -0
- package/models/UpdatePushPreferencesResponse.d.ts +33 -0
- package/models/UpdatePushPreferencesResponse.js +105 -0
- package/models/UpdatePushPreferencesResponse.js.map +1 -0
- package/models/UpdateSpecificUserMetadataRequest.d.ts +17 -0
- package/models/UpdateSpecificUserMetadataRequest.js +21 -0
- package/models/UpdateSpecificUserMetadataRequest.js.map +1 -0
- package/models/UpdateUserMetadataRequest.d.ts +18 -0
- package/models/UpdateUserMetadataRequest.js +27 -0
- package/models/UpdateUserMetadataRequest.js.map +1 -0
- package/models/ViewBotByIdResponse.d.ts +23 -0
- package/models/ViewBotByIdResponse.js +51 -0
- package/models/ViewBotByIdResponse.js.map +1 -0
- package/models/ViewBotByIdResponseBot.d.ts +22 -0
- package/models/ViewBotByIdResponseBot.js +51 -0
- package/models/ViewBotByIdResponseBot.js.map +1 -0
- package/models/ViewCountPreferenceOfAChannelResponse.d.ts +18 -0
- package/models/ViewCountPreferenceOfAChannelResponse.js +21 -0
- package/models/ViewCountPreferenceOfAChannelResponse.js.map +1 -0
- package/models/ViewNumberOfChannelsWithUnreadMessagesResponse.d.ts +17 -0
- package/models/ViewNumberOfChannelsWithUnreadMessagesResponse.js +21 -0
- package/models/ViewNumberOfChannelsWithUnreadMessagesResponse.js.map +1 -0
- package/models/ViewNumberOfDailyActiveUsersResponse.d.ts +17 -0
- package/models/ViewNumberOfDailyActiveUsersResponse.js +21 -0
- package/models/ViewNumberOfDailyActiveUsersResponse.js.map +1 -0
- package/models/ViewNumberOfMonthlyActiveUsersResponse.d.ts +17 -0
- package/models/ViewNumberOfMonthlyActiveUsersResponse.js +21 -0
- package/models/ViewNumberOfMonthlyActiveUsersResponse.js.map +1 -0
- package/models/ViewNumberOfUnreadMessagesResponse.d.ts +17 -0
- package/models/ViewNumberOfUnreadMessagesResponse.js +21 -0
- package/models/ViewNumberOfUnreadMessagesResponse.js.map +1 -0
- package/models/ViewPushPreferencesForAChannelResponse.d.ts +20 -0
- package/models/ViewPushPreferencesForAChannelResponse.js +33 -0
- package/models/ViewPushPreferencesForAChannelResponse.js.map +1 -0
- package/models/ViewPushPreferencesResponse.d.ts +33 -0
- package/models/ViewPushPreferencesResponse.js +105 -0
- package/models/ViewPushPreferencesResponse.js.map +1 -0
- package/models/all.d.ts +130 -0
- package/models/all.js +147 -0
- package/models/all.js.map +1 -0
- package/package.json +28 -32
- package/rxjsStub.d.ts +10 -0
- package/rxjsStub.js +32 -0
- package/rxjsStub.js.map +1 -0
- package/servers.d.ts +21 -0
- package/servers.js +31 -0
- package/servers.js.map +1 -0
- package/types/ObjectParamAPI.d.ts +853 -0
- package/types/ObjectParamAPI.js +343 -0
- package/types/ObjectParamAPI.js.map +1 -0
- package/types/ObservableAPI.d.ts +246 -0
- package/types/ObservableAPI.js +1467 -0
- package/types/ObservableAPI.js.map +1 -0
- package/types/PromiseAPI.d.ts +227 -0
- package/types/PromiseAPI.js +435 -0
- package/types/PromiseAPI.js.map +1 -0
- package/util.d.ts +2 -0
- package/util.js +29 -0
- package/util.js.map +1 -0
- package/.gitattributes +0 -8
- package/.openapi-generator/FILES +0 -156
- package/.openapi-generator/VERSION +0 -1
- package/AnnouncementApi.md +0 -100
- package/BotApi.md +0 -459
- package/GroupChannelApi.md +0 -1429
- package/MessageApi.md +0 -880
- package/MetadataApi.md +0 -274
- package/ModerationApi.md +0 -338
- package/OpenChannelApi.md +0 -540
- package/StatisticsApi.md +0 -125
- package/UserApi.md +0 -1868
- package/apis/AnnouncementApi.ts +0 -96
- package/apis/BotApi.ts +0 -832
- package/apis/GroupChannelApi.ts +0 -1865
- package/apis/MessageApi.ts +0 -1150
- package/apis/MetadataApi.ts +0 -365
- package/apis/ModerationApi.ts +0 -449
- package/apis/OpenChannelApi.ts +0 -676
- package/apis/StatisticsApi.ts +0 -155
- package/apis/UserApi.ts +0 -2916
- package/apis/baseapi.ts +0 -37
- package/apis/exception.ts +0 -15
- package/auth/auth.ts +0 -54
- package/catalog-info.yaml +0 -12
- package/configuration.ts +0 -66
- package/git_push.sh +0 -51
- package/http/http.ts +0 -231
- package/http/isomorphic-fetch.ts +0 -32
- package/index.ts +0 -12
- package/jest.config.ts +0 -11
- package/jest.setup.ts +0 -5
- package/middleware.ts +0 -66
- package/models/AcceptAnInvitationRequest.ts +0 -42
- package/models/AddARegistrationOrDeviceTokenRequest.ts +0 -49
- package/models/AddARegistrationOrDeviceTokenResponse.ts +0 -50
- package/models/AddExtraDataToAMessageRequest.ts +0 -36
- package/models/AddExtraDataToAMessageResponse.ts +0 -36
- package/models/BlockAUserRequest.ts +0 -45
- package/models/BlockAUserResponse.ts +0 -43
- package/models/CheckIfMemberResponse.ts +0 -45
- package/models/ChooseAPushNotificationContentTemplateRequest.ts +0 -41
- package/models/ChooseAPushNotificationContentTemplateResponse.ts +0 -35
- package/models/CreateABotRequest.ts +0 -100
- package/models/CreateABotResponse.ts +0 -86
- package/models/CreateABotResponseBot.ts +0 -91
- package/models/CreateABotResponseBotStyle.ts +0 -57
- package/models/CreateAChannelMetadataRequest.ts +0 -42
- package/models/CreateAChannelMetadataResponse.ts +0 -42
- package/models/CreateAGroupChannelRequest.ts +0 -171
- package/models/CreateAUserRequest.ts +0 -80
- package/models/CreateAnOpenChannelRequest.ts +0 -91
- package/models/CreateUserMetadataRequest.ts +0 -35
- package/models/CreateUserTokenRequest.ts +0 -35
- package/models/CreateUserTokenResponse.ts +0 -42
- package/models/FreezeAGroupChannelRequest.ts +0 -35
- package/models/FreezeAnOpenChannelRequest.ts +0 -38
- package/models/GetAGroupChannelResponse.ts +0 -365
- package/models/GetAGroupChannelResponseAllOf.ts +0 -36
- package/models/GetAGroupChannelResponseAllOfChannel.ts +0 -84
- package/models/GetChannelInvitationPreferenceResponse.ts +0 -35
- package/models/GetTotalNumberOfMessagesInAChannelResponse.ts +0 -35
- package/models/GroupChannelListMembersResponse.ts +0 -43
- package/models/GroupChatListChannelsResponse.ts +0 -50
- package/models/HideAChannelRequest.ts +0 -68
- package/models/InviteAsMembersRequest.ts +0 -62
- package/models/InviteAsMembersResponse.ts +0 -365
- package/models/InviteAsMembersResponseAllOf.ts +0 -36
- package/models/JoinAChannelRequest.ts +0 -48
- package/models/JoinChannelsRequest.ts +0 -35
- package/models/LeaveAChannelRequest.ts +0 -71
- package/models/LeaveMyGroupChannelsRequest.ts +0 -35
- package/models/ListBlockedUsersResponse.ts +0 -43
- package/models/ListBotsResponse.ts +0 -43
- package/models/ListBotsResponseBotsInner.ts +0 -102
- package/models/ListBotsResponseBotsInnerAi.ts +0 -112
- package/models/ListBotsResponseBotsInnerBot.ts +0 -84
- package/models/ListBotsResponseBotsInnerBotStyle.ts +0 -57
- package/models/ListBotsResponseBotsInnerBotStyleColor.ts +0 -49
- package/models/ListBotsResponseBotsInnerFirstMessagesInner.ts +0 -43
- package/models/ListBotsResponseBotsInnerFirstMessagesInnerData.ts +0 -35
- package/models/ListBotsResponseBotsInnerSafeguard.ts +0 -56
- package/models/ListMessagesResponse.ts +0 -36
- package/models/ListMyGroupChannelsResponse.ts +0 -50
- package/models/ListOpenChannelsResponse.ts +0 -50
- package/models/ListOperatorsResponse.ts +0 -43
- package/models/ListRegistrationOrDeviceTokensResponse.ts +0 -57
- package/models/ListUsersResponse.ts +0 -43
- package/models/MarkAllMessagesAsReadRequest.ts +0 -38
- package/models/MarkChannelMessagesAsReadRequest.ts +0 -35
- package/models/MigrateMessagesAdminMessageRequest.ts +0 -94
- package/models/MigrateMessagesFileMessageRequest.ts +0 -130
- package/models/MigrateMessagesFileMessageRequestThumbnailsInner.ts +0 -29
- package/models/MigrateMessagesRequest.ts +0 -50
- package/models/MigrateMessagesRequestMessagesInner.ts +0 -154
- package/models/MigrateMessagesTextMessageRequest.ts +0 -94
- package/models/ObjectSerializer.ts +0 -647
- package/models/RegisterOperatorsToAGroupChannelRequest.ts +0 -35
- package/models/RemoveARegistrationOrDeviceTokenResponse.ts +0 -43
- package/models/RemoveAllRegistrationOrDeviceTokenResponse.ts +0 -43
- package/models/ResetChatHistoryRequest.ts +0 -42
- package/models/ResetChatHistoryResponse.ts +0 -38
- package/models/ScheduleAnAnnouncementRequest.ts +0 -156
- package/models/ScheduleAnAnnouncementRequestCreateChannelOptions.ts +0 -63
- package/models/ScheduleAnAnnouncementRequestMessage.ts +0 -63
- package/models/ScheduleAnAnnouncementResponse.ts +0 -198
- package/models/ScheduleAnAnnouncementResponseMessage.ts +0 -70
- package/models/SendABotMessageRequest.ts +0 -220
- package/models/SendABotMessageResponse.ts +0 -36
- package/models/SendAMessageRequest.ts +0 -238
- package/models/SendAMessageRequestPushMessageTemplate.ts +0 -52
- package/models/SendAMessageRequestPushMessageTemplateOneOf.ts +0 -48
- package/models/SendAdminMessageRequestBody.ts +0 -121
- package/models/SendBirdFile.ts +0 -71
- package/models/SendBirdGroupChannel.ts +0 -355
- package/models/SendBirdMember.ts +0 -187
- package/models/SendBirdMessageResponse.ts +0 -245
- package/models/SendBirdParentMessageInfo.ts +0 -79
- package/models/SendBirdUser.ts +0 -181
- package/models/SendFileMessageRequestBody.ts +0 -187
- package/models/SendTextMessageRequestBody.ts +0 -170
- package/models/SendTextMessageRequestBodyPushMessageTemplate.ts +0 -52
- package/models/SendbirdBasicUserInfo.ts +0 -87
- package/models/SendbirdDisappearingMessage.ts +0 -42
- package/models/SendbirdExtendedMessagePayload.ts +0 -51
- package/models/SendbirdGroupChannelDetail.ts +0 -266
- package/models/SendbirdGroupChannelDetailChannel.ts +0 -84
- package/models/SendbirdGroupChannelLastMessage.ts +0 -246
- package/models/SendbirdMessageResponseExtendedMessagePayload.ts +0 -49
- package/models/SendbirdMessageResponseMessageEvents.ts +0 -56
- package/models/SendbirdOpenChannel.ts +0 -120
- package/models/SendbirdPushTriggerOption.ts +0 -15
- package/models/SendbirdReaction.ts +0 -49
- package/models/SendbirdSmsFallback.ts +0 -42
- package/models/SendbirdSortedMetaarrayInner.ts +0 -42
- package/models/SendbirdThumbnail.ts +0 -70
- package/models/StartTypingIndicatorsRequest.ts +0 -35
- package/models/UpdateAChannelMetadataRequest.ts +0 -42
- package/models/UpdateAGroupChannelRequest.ts +0 -98
- package/models/UpdateAMessageRequest.ts +0 -80
- package/models/UpdateAUserRequest.ts +0 -91
- package/models/UpdateAnOpenChannelRequest.ts +0 -70
- package/models/UpdateBotByIdData.ts +0 -108
- package/models/UpdateBotByIdResponse.ts +0 -71
- package/models/UpdateChannelInvitationPreferenceRequest.ts +0 -35
- package/models/UpdateChannelInvitationPreferenceResponse.ts +0 -35
- package/models/UpdateCountPreferenceOfAChannelRequest.ts +0 -38
- package/models/UpdateCountPreferenceOfChannelByUrlResponse.ts +0 -38
- package/models/UpdateExtraDataInAMessageRequest.ts +0 -50
- package/models/UpdateExtraDataInAMessageResponse.ts +0 -36
- package/models/UpdatePushPreferencesForAChannelRequest.ts +0 -48
- package/models/UpdatePushPreferencesForAChannelResponse.ts +0 -50
- package/models/UpdatePushPreferencesRequest.ts +0 -135
- package/models/UpdatePushPreferencesRequestDndSchedulesInner.ts +0 -46
- package/models/UpdatePushPreferencesRequestDndSchedulesInnerTimeWindowsInner.ts +0 -56
- package/models/UpdatePushPreferencesResponse.ts +0 -135
- package/models/UpdateSpecificUserMetadataRequest.ts +0 -35
- package/models/UpdateUserMetadataRequest.ts +0 -42
- package/models/ViewBotByIdResponse.ts +0 -71
- package/models/ViewBotByIdResponseBot.ts +0 -70
- package/models/ViewCountPreferenceOfAChannelResponse.ts +0 -38
- package/models/ViewNumberOfChannelsWithUnreadMessagesResponse.ts +0 -35
- package/models/ViewNumberOfDailyActiveUsersResponse.ts +0 -35
- package/models/ViewNumberOfMonthlyActiveUsersResponse.ts +0 -35
- package/models/ViewNumberOfUnreadMessagesResponse.ts +0 -35
- package/models/ViewPushPreferencesForAChannelResponse.ts +0 -50
- package/models/ViewPushPreferencesResponse.ts +0 -135
- package/models/all.ts +0 -130
- package/package.json-e +0 -40
- package/rxjsStub.ts +0 -27
- package/servers.ts +0 -53
- package/src/api/generated/.openapi-generator/FILES +0 -151
- package/src/api/generated/.openapi-generator/VERSION +0 -1
- package/src/api/generated/README.md +0 -30
- package/src/api/generated/apis/AnnouncementApi.ts +0 -96
- package/src/api/generated/apis/BotApi.ts +0 -471
- package/src/api/generated/apis/GroupChannelApi.ts +0 -1865
- package/src/api/generated/apis/MessageApi.ts +0 -1150
- package/src/api/generated/apis/MetadataApi.ts +0 -365
- package/src/api/generated/apis/ModerationApi.ts +0 -449
- package/src/api/generated/apis/OpenChannelApi.ts +0 -676
- package/src/api/generated/apis/StatisticsApi.ts +0 -155
- package/src/api/generated/apis/UserApi.ts +0 -2454
- package/src/api/generated/apis/baseapi.ts +0 -37
- package/src/api/generated/apis/exception.ts +0 -15
- package/src/api/generated/auth/auth.ts +0 -54
- package/src/api/generated/configuration.ts +0 -66
- package/src/api/generated/git_push.sh +0 -51
- package/src/api/generated/http/http.ts +0 -231
- package/src/api/generated/http/isomorphic-fetch.ts +0 -32
- package/src/api/generated/index.ts +0 -12
- package/src/api/generated/middleware.ts +0 -66
- package/src/api/generated/models/AcceptAnInvitationRequest.ts +0 -42
- package/src/api/generated/models/AddARegistrationOrDeviceTokenRequest.ts +0 -49
- package/src/api/generated/models/AddARegistrationOrDeviceTokenResponse.ts +0 -50
- package/src/api/generated/models/AddExtraDataToAMessageRequest.ts +0 -36
- package/src/api/generated/models/AddExtraDataToAMessageResponse.ts +0 -36
- package/src/api/generated/models/BlockAUserRequest.ts +0 -45
- package/src/api/generated/models/BlockAUserResponse.ts +0 -43
- package/src/api/generated/models/CheckIfMemberResponse.ts +0 -45
- package/src/api/generated/models/ChooseAPushNotificationContentTemplateRequest.ts +0 -41
- package/src/api/generated/models/ChooseAPushNotificationContentTemplateResponse.ts +0 -35
- package/src/api/generated/models/CreateABotRequest.ts +0 -100
- package/src/api/generated/models/CreateABotResponse.ts +0 -86
- package/src/api/generated/models/CreateABotResponseBot.ts +0 -91
- package/src/api/generated/models/CreateABotResponseBotStyle.ts +0 -57
- package/src/api/generated/models/CreateAChannelMetadataRequest.ts +0 -42
- package/src/api/generated/models/CreateAChannelMetadataResponse.ts +0 -42
- package/src/api/generated/models/CreateAGroupChannelRequest.ts +0 -171
- package/src/api/generated/models/CreateAUserRequest.ts +0 -80
- package/src/api/generated/models/CreateAnOpenChannelRequest.ts +0 -91
- package/src/api/generated/models/CreateUserTokenRequest.ts +0 -35
- package/src/api/generated/models/CreateUserTokenResponse.ts +0 -42
- package/src/api/generated/models/FreezeAGroupChannelRequest.ts +0 -35
- package/src/api/generated/models/FreezeAnOpenChannelRequest.ts +0 -38
- package/src/api/generated/models/GetAGroupChannelResponse.ts +0 -365
- package/src/api/generated/models/GetAGroupChannelResponseAllOf.ts +0 -36
- package/src/api/generated/models/GetAGroupChannelResponseAllOfChannel.ts +0 -84
- package/src/api/generated/models/GetChannelInvitationPreferenceResponse.ts +0 -35
- package/src/api/generated/models/GetTotalNumberOfMessagesInAChannelResponse.ts +0 -35
- package/src/api/generated/models/GroupChannelListMembersResponse.ts +0 -43
- package/src/api/generated/models/GroupChatListChannelsResponse.ts +0 -50
- package/src/api/generated/models/HideAChannelRequest.ts +0 -68
- package/src/api/generated/models/InviteAsMembersRequest.ts +0 -62
- package/src/api/generated/models/InviteAsMembersResponse.ts +0 -365
- package/src/api/generated/models/InviteAsMembersResponseAllOf.ts +0 -36
- package/src/api/generated/models/JoinAChannelRequest.ts +0 -48
- package/src/api/generated/models/JoinChannelsRequest.ts +0 -35
- package/src/api/generated/models/LeaveAChannelRequest.ts +0 -71
- package/src/api/generated/models/LeaveMyGroupChannelsRequest.ts +0 -35
- package/src/api/generated/models/ListBlockedUsersResponse.ts +0 -43
- package/src/api/generated/models/ListBotsResponse.ts +0 -43
- package/src/api/generated/models/ListBotsResponseBotsInner.ts +0 -110
- package/src/api/generated/models/ListBotsResponseBotsInnerAi.ts +0 -112
- package/src/api/generated/models/ListBotsResponseBotsInnerBot.ts +0 -84
- package/src/api/generated/models/ListBotsResponseBotsInnerBotStyle.ts +0 -57
- package/src/api/generated/models/ListBotsResponseBotsInnerBotStyleColor.ts +0 -49
- package/src/api/generated/models/ListBotsResponseBotsInnerFirstMessagesInner.ts +0 -43
- package/src/api/generated/models/ListBotsResponseBotsInnerFirstMessagesInnerData.ts +0 -35
- package/src/api/generated/models/ListBotsResponseBotsInnerSafeguard.ts +0 -56
- package/src/api/generated/models/ListMessagesResponse.ts +0 -36
- package/src/api/generated/models/ListMyGroupChannelsResponse.ts +0 -50
- package/src/api/generated/models/ListOpenChannelsResponse.ts +0 -50
- package/src/api/generated/models/ListOperatorsResponse.ts +0 -43
- package/src/api/generated/models/ListRegistrationOrDeviceTokensResponse.ts +0 -57
- package/src/api/generated/models/ListUsersResponse.ts +0 -43
- package/src/api/generated/models/MarkAllMessagesAsReadRequest.ts +0 -38
- package/src/api/generated/models/MarkChannelMessagesAsReadRequest.ts +0 -35
- package/src/api/generated/models/MigrateMessagesAdminMessageRequest.ts +0 -94
- package/src/api/generated/models/MigrateMessagesFileMessageRequest.ts +0 -130
- package/src/api/generated/models/MigrateMessagesFileMessageRequestThumbnailsInner.ts +0 -29
- package/src/api/generated/models/MigrateMessagesRequest.ts +0 -50
- package/src/api/generated/models/MigrateMessagesRequestMessagesInner.ts +0 -154
- package/src/api/generated/models/MigrateMessagesTextMessageRequest.ts +0 -94
- package/src/api/generated/models/ObjectSerializer.ts +0 -619
- package/src/api/generated/models/RegisterOperatorsToAGroupChannelRequest.ts +0 -35
- package/src/api/generated/models/RemoveARegistrationOrDeviceTokenResponse.ts +0 -43
- package/src/api/generated/models/RemoveAllRegistrationOrDeviceTokenResponse.ts +0 -43
- package/src/api/generated/models/ResetChatHistoryRequest.ts +0 -42
- package/src/api/generated/models/ResetChatHistoryResponse.ts +0 -38
- package/src/api/generated/models/ScheduleAnAnnouncementRequest.ts +0 -156
- package/src/api/generated/models/ScheduleAnAnnouncementRequestCreateChannelOptions.ts +0 -63
- package/src/api/generated/models/ScheduleAnAnnouncementRequestMessage.ts +0 -63
- package/src/api/generated/models/ScheduleAnAnnouncementResponse.ts +0 -198
- package/src/api/generated/models/ScheduleAnAnnouncementResponseMessage.ts +0 -70
- package/src/api/generated/models/SendABotMessageRequest.ts +0 -214
- package/src/api/generated/models/SendABotMessageResponse.ts +0 -36
- package/src/api/generated/models/SendAMessageRequest.ts +0 -238
- package/src/api/generated/models/SendAMessageRequestPushMessageTemplate.ts +0 -52
- package/src/api/generated/models/SendAMessageRequestPushMessageTemplateOneOf.ts +0 -48
- package/src/api/generated/models/SendAdminMessageRequestBody.ts +0 -121
- package/src/api/generated/models/SendFileMessageRequestBody.ts +0 -187
- package/src/api/generated/models/SendTextMessageRequestBody.ts +0 -170
- package/src/api/generated/models/SendTextMessageRequestBodyPushMessageTemplate.ts +0 -52
- package/src/api/generated/models/SendbirdBasicUserInfo.ts +0 -87
- package/src/api/generated/models/SendbirdDisappearingMessage.ts +0 -42
- package/src/api/generated/models/SendbirdExtendedMessagePayload.ts +0 -51
- package/src/api/generated/models/SendbirdFile.ts +0 -71
- package/src/api/generated/models/SendbirdGroupChannel.ts +0 -355
- package/src/api/generated/models/SendbirdGroupChannelDetail.ts +0 -266
- package/src/api/generated/models/SendbirdGroupChannelDetailChannel.ts +0 -84
- package/src/api/generated/models/SendbirdMember.ts +0 -187
- package/src/api/generated/models/SendbirdMessageResponse.ts +0 -245
- package/src/api/generated/models/SendbirdMessageResponseMessageEvents.ts +0 -56
- package/src/api/generated/models/SendbirdOpenChannel.ts +0 -120
- package/src/api/generated/models/SendbirdParentMessageInfo.ts +0 -79
- package/src/api/generated/models/SendbirdPushTriggerOption.ts +0 -15
- package/src/api/generated/models/SendbirdReaction.ts +0 -49
- package/src/api/generated/models/SendbirdSmsFallback.ts +0 -42
- package/src/api/generated/models/SendbirdSortedMetaarrayInner.ts +0 -42
- package/src/api/generated/models/SendbirdThumbnail.ts +0 -70
- package/src/api/generated/models/SendbirdUser.ts +0 -188
- package/src/api/generated/models/StartTypingIndicatorsRequest.ts +0 -35
- package/src/api/generated/models/UpdateAChannelMetadataRequest.ts +0 -42
- package/src/api/generated/models/UpdateAGroupChannelRequest.ts +0 -98
- package/src/api/generated/models/UpdateAMessageRequest.ts +0 -80
- package/src/api/generated/models/UpdateAUserRequest.ts +0 -91
- package/src/api/generated/models/UpdateAnOpenChannelRequest.ts +0 -70
- package/src/api/generated/models/UpdateChannelInvitationPreferenceRequest.ts +0 -35
- package/src/api/generated/models/UpdateChannelInvitationPreferenceResponse.ts +0 -35
- package/src/api/generated/models/UpdateCountPreferenceOfAChannelRequest.ts +0 -38
- package/src/api/generated/models/UpdateCountPreferenceOfChannelByUrlResponse.ts +0 -38
- package/src/api/generated/models/UpdateExtraDataInAMessageRequest.ts +0 -50
- package/src/api/generated/models/UpdateExtraDataInAMessageResponse.ts +0 -36
- package/src/api/generated/models/UpdatePushPreferencesForAChannelRequest.ts +0 -48
- package/src/api/generated/models/UpdatePushPreferencesForAChannelResponse.ts +0 -50
- package/src/api/generated/models/UpdatePushPreferencesRequest.ts +0 -127
- package/src/api/generated/models/UpdatePushPreferencesResponse.ts +0 -127
- package/src/api/generated/models/ViewCountPreferenceOfAChannelResponse.ts +0 -38
- package/src/api/generated/models/ViewNumberOfChannelsWithUnreadMessagesResponse.ts +0 -35
- package/src/api/generated/models/ViewNumberOfDailyActiveUsersResponse.ts +0 -35
- package/src/api/generated/models/ViewNumberOfMonthlyActiveUsersResponse.ts +0 -35
- package/src/api/generated/models/ViewNumberOfUnreadMessagesResponse.ts +0 -35
- package/src/api/generated/models/ViewPushPreferencesForAChannelResponse.ts +0 -50
- package/src/api/generated/models/ViewPushPreferencesResponse.ts +0 -127
- package/src/api/generated/models/all.ts +0 -121
- package/src/api/generated/package.json +0 -40
- package/src/api/generated/rxjsStub.ts +0 -27
- package/src/api/generated/servers.ts +0 -53
- package/src/api/generated/tsconfig.json +0 -28
- package/src/api/generated/types/ObjectParamAPI.ts +0 -3611
- package/src/api/generated/types/ObservableAPI.ts +0 -2594
- package/src/api/generated/types/PromiseAPI.ts +0 -1440
- package/src/api/generated/util.ts +0 -37
- package/src/types/FileCompat.ts +0 -7
- package/tests/asset/image/test_20kb.jpg +0 -0
- package/tests/asset/image/test_25mb.bmp +0 -0
- package/tests/asset/image/test_5mb.jpg +0 -0
- package/tests/asset/image/test_75kb.jpg +0 -0
- package/tests/integration/bot.test.ts +0 -548
- package/tests/integration/constants.ts +0 -10
- package/tests/integration/groupChannel.test.ts +0 -1624
- package/tests/integration/helper.ts +0 -8
- package/tests/integration/metadata.test.ts +0 -22
- package/tests/integration/moderation.test.ts +0 -172
- package/tests/integration/openChannel.test.ts +0 -239
- package/tests/integration/statistics.test.ts +0 -44
- package/tests/integration/user.test.ts +0 -957
- package/tests/utils/fileLoader.ts +0 -46
- package/tsconfig.json +0 -29
- package/types/ObjectParamAPI.ts +0 -3998
- package/types/ObservableAPI.ts +0 -2855
- package/types/PromiseAPI.ts +0 -1575
- package/util.ts +0 -37
package/GroupChannelApi.md
DELETED
|
@@ -1,1429 +0,0 @@
|
|
|
1
|
-
# Sendbird.GroupChannelApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api-APP_ID.sendbird.com*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**acceptAnInvitation**](GroupChannelApi.md#acceptAnInvitation) | **PUT** /v3/group_channels/{channel_url}/accept | Accept an invitation
|
|
8
|
-
[**cancelTheRegistrationOfOperators**](GroupChannelApi.md#cancelTheRegistrationOfOperators) | **DELETE** /v3/group_channels/{channel_url}/operators | Cancel the registration of operators
|
|
9
|
-
[**checkIfMember**](GroupChannelApi.md#checkIfMember) | **GET** /v3/group_channels/{channel_url}/members/{user_id} | Check if member
|
|
10
|
-
[**createAGroupChannel**](GroupChannelApi.md#createAGroupChannel) | **POST** /v3/group_channels | Create a group channel
|
|
11
|
-
[**deleteAGroupChannel**](GroupChannelApi.md#deleteAGroupChannel) | **DELETE** /v3/group_channels/{channel_url} | Delete a group channel
|
|
12
|
-
[**getAGroupChannel**](GroupChannelApi.md#getAGroupChannel) | **GET** /v3/group_channels/{channel_url} | Get a group channel
|
|
13
|
-
[**hideAChannel**](GroupChannelApi.md#hideAChannel) | **PUT** /v3/group_channels/{channel_url}/hide | Hide a channel
|
|
14
|
-
[**inviteAsMembers**](GroupChannelApi.md#inviteAsMembers) | **POST** /v3/group_channels/{channel_url}/invite | Invite as members
|
|
15
|
-
[**joinAChannel**](GroupChannelApi.md#joinAChannel) | **PUT** /v3/group_channels/{channel_url}/join | Join a channel
|
|
16
|
-
[**leaveAChannel**](GroupChannelApi.md#leaveAChannel) | **PUT** /v3/group_channels/{channel_url}/leave | Leave a channel
|
|
17
|
-
[**listChannels**](GroupChannelApi.md#listChannels) | **GET** /v3/group_channels | List channels
|
|
18
|
-
[**listMembers**](GroupChannelApi.md#listMembers) | **GET** /v3/group_channels/{channel_url}/members | List members
|
|
19
|
-
[**listOperators**](GroupChannelApi.md#listOperators) | **GET** /v3/group_channels/{channel_url}/operators | List operators
|
|
20
|
-
[**registerOperatorsToAGroupChannel**](GroupChannelApi.md#registerOperatorsToAGroupChannel) | **POST** /v3/group_channels/{channel_url}/operators | Register operators to a group channel
|
|
21
|
-
[**resetChatHistory**](GroupChannelApi.md#resetChatHistory) | **PUT** /v3/group_channels/{channel_url}/reset_user_history | Reset chat history
|
|
22
|
-
[**startTypingIndicators**](GroupChannelApi.md#startTypingIndicators) | **POST** /v3/group_channels/{channel_url}/typing | Start typing indicators
|
|
23
|
-
[**stopTypingIndicators**](GroupChannelApi.md#stopTypingIndicators) | **DELETE** /v3/group_channels/{channel_url}/typing | Stop typing indicators
|
|
24
|
-
[**unhideAChannel**](GroupChannelApi.md#unhideAChannel) | **DELETE** /v3/group_channels/{channel_url}/hide | Unhide a channel
|
|
25
|
-
[**updateAGroupChannel**](GroupChannelApi.md#updateAGroupChannel) | **PUT** /v3/group_channels/{channel_url} | Update a group channel
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
# **acceptAnInvitation**
|
|
29
|
-
> SendbirdGroupChannelDetail acceptAnInvitation()
|
|
30
|
-
|
|
31
|
-
## 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)
|
|
32
|
-
|
|
33
|
-
### Example
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
```typescript
|
|
37
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
38
|
-
import * as fs from 'fs';
|
|
39
|
-
|
|
40
|
-
const configuration = Sendbird.createConfiguration();
|
|
41
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
42
|
-
|
|
43
|
-
let body:Sendbird.GroupChannelApiAcceptAnInvitationRequest = {
|
|
44
|
-
// string | (Required)
|
|
45
|
-
channelUrl: "channel_url_example",
|
|
46
|
-
// string (optional)
|
|
47
|
-
apiToken: "{{API_TOKEN}}",
|
|
48
|
-
// AcceptAnInvitationRequest (optional)
|
|
49
|
-
acceptAnInvitationRequest: {
|
|
50
|
-
accessCode: "accessCode_example",
|
|
51
|
-
userId: "userId_example",
|
|
52
|
-
},
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
apiInstance.acceptAnInvitation(body).then((data:any) => {
|
|
56
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
57
|
-
}).catch((error:any) => console.error(error));
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
### Parameters
|
|
62
|
-
|
|
63
|
-
Name | Type | Description | Notes
|
|
64
|
-
------------- | ------------- | ------------- | -------------
|
|
65
|
-
**acceptAnInvitationRequest** | **AcceptAnInvitationRequest**| |
|
|
66
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
67
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### Return type
|
|
71
|
-
|
|
72
|
-
**SendbirdGroupChannelDetail**
|
|
73
|
-
|
|
74
|
-
### Authorization
|
|
75
|
-
|
|
76
|
-
No authorization required
|
|
77
|
-
|
|
78
|
-
### HTTP request headers
|
|
79
|
-
|
|
80
|
-
- **Content-Type**: application/json
|
|
81
|
-
- **Accept**: application/json
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
### HTTP response details
|
|
85
|
-
| Status code | Description | Response headers |
|
|
86
|
-
|-------------|-------------|------------------|
|
|
87
|
-
**200** | Successful response | - |
|
|
88
|
-
|
|
89
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
90
|
-
|
|
91
|
-
# **cancelTheRegistrationOfOperators**
|
|
92
|
-
> any cancelTheRegistrationOfOperators()
|
|
93
|
-
|
|
94
|
-
## 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.
|
|
95
|
-
|
|
96
|
-
### Example
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
```typescript
|
|
100
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
101
|
-
import * as fs from 'fs';
|
|
102
|
-
|
|
103
|
-
const configuration = Sendbird.createConfiguration();
|
|
104
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
105
|
-
|
|
106
|
-
let body:Sendbird.GroupChannelApiCancelTheRegistrationOfOperatorsRequest = {
|
|
107
|
-
// string | (Required)
|
|
108
|
-
channelUrl: "channel_url_example",
|
|
109
|
-
// string | 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=urlencoded_id_1,urlencoded_id_2.
|
|
110
|
-
operatorIds: "operator_ids_example",
|
|
111
|
-
// boolean (optional)
|
|
112
|
-
deleteAll: true,
|
|
113
|
-
// string (optional)
|
|
114
|
-
apiToken: "{{API_TOKEN}}",
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
apiInstance.cancelTheRegistrationOfOperators(body).then((data:any) => {
|
|
118
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
119
|
-
}).catch((error:any) => console.error(error));
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
### Parameters
|
|
124
|
-
|
|
125
|
-
Name | Type | Description | Notes
|
|
126
|
-
------------- | ------------- | ------------- | -------------
|
|
127
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
128
|
-
**operatorIds** | [**string**] | 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=urlencoded_id_1,urlencoded_id_2. | defaults to undefined
|
|
129
|
-
**deleteAll** | [**boolean**] | | (optional) defaults to undefined
|
|
130
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
### Return type
|
|
134
|
-
|
|
135
|
-
**any**
|
|
136
|
-
|
|
137
|
-
### Authorization
|
|
138
|
-
|
|
139
|
-
No authorization required
|
|
140
|
-
|
|
141
|
-
### HTTP request headers
|
|
142
|
-
|
|
143
|
-
- **Content-Type**: Not defined
|
|
144
|
-
- **Accept**: application/json
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
### HTTP response details
|
|
148
|
-
| Status code | Description | Response headers |
|
|
149
|
-
|-------------|-------------|------------------|
|
|
150
|
-
**200** | Successful response | - |
|
|
151
|
-
|
|
152
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
153
|
-
|
|
154
|
-
# **checkIfMember**
|
|
155
|
-
> CheckIfMemberResponse checkIfMember()
|
|
156
|
-
|
|
157
|
-
## 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)
|
|
158
|
-
|
|
159
|
-
### Example
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
```typescript
|
|
163
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
164
|
-
import * as fs from 'fs';
|
|
165
|
-
|
|
166
|
-
const configuration = Sendbird.createConfiguration();
|
|
167
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
168
|
-
|
|
169
|
-
let body:Sendbird.GroupChannelApiCheckIfMemberRequest = {
|
|
170
|
-
// string | (Required)
|
|
171
|
-
channelUrl: "channel_url_example",
|
|
172
|
-
// string | (Required)
|
|
173
|
-
userId: "user_id_example",
|
|
174
|
-
// string (optional)
|
|
175
|
-
apiToken: "{{API_TOKEN}}",
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
apiInstance.checkIfMember(body).then((data:any) => {
|
|
179
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
180
|
-
}).catch((error:any) => console.error(error));
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
### Parameters
|
|
185
|
-
|
|
186
|
-
Name | Type | Description | Notes
|
|
187
|
-
------------- | ------------- | ------------- | -------------
|
|
188
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
189
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
190
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
### Return type
|
|
194
|
-
|
|
195
|
-
**CheckIfMemberResponse**
|
|
196
|
-
|
|
197
|
-
### Authorization
|
|
198
|
-
|
|
199
|
-
No authorization required
|
|
200
|
-
|
|
201
|
-
### HTTP request headers
|
|
202
|
-
|
|
203
|
-
- **Content-Type**: Not defined
|
|
204
|
-
- **Accept**: application/json
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
### HTTP response details
|
|
208
|
-
| Status code | Description | Response headers |
|
|
209
|
-
|-------------|-------------|------------------|
|
|
210
|
-
**200** | Successful response | - |
|
|
211
|
-
|
|
212
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
213
|
-
|
|
214
|
-
# **createAGroupChannel**
|
|
215
|
-
> SendbirdGroupChannelDetail createAGroupChannel()
|
|
216
|
-
|
|
217
|
-
## 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
|
|
218
|
-
|
|
219
|
-
### Example
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
```typescript
|
|
223
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
224
|
-
import * as fs from 'fs';
|
|
225
|
-
|
|
226
|
-
const configuration = Sendbird.createConfiguration();
|
|
227
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
228
|
-
|
|
229
|
-
let body:Sendbird.GroupChannelApiCreateAGroupChannelRequest = {
|
|
230
|
-
// string (optional)
|
|
231
|
-
apiToken: "{{API_TOKEN}}",
|
|
232
|
-
// CreateAGroupChannelRequest (optional)
|
|
233
|
-
createAGroupChannelRequest: {
|
|
234
|
-
accessCode: "accessCode_example",
|
|
235
|
-
blockSdkUserChannelJoin: true,
|
|
236
|
-
channelUrl: "channelUrl_example",
|
|
237
|
-
coverFile: { data: Buffer.from(fs.readFileSync('/path/to/file', 'utf-8')), name: '/path/to/file' },
|
|
238
|
-
coverUrl: "coverUrl_example",
|
|
239
|
-
customType: "customType_example",
|
|
240
|
-
data: "data_example",
|
|
241
|
-
hiddenStatus: {},
|
|
242
|
-
invitationStatus: {},
|
|
243
|
-
inviterId: "inviterId_example",
|
|
244
|
-
isDistinct: true,
|
|
245
|
-
isEphemeral: true,
|
|
246
|
-
isPublic: true,
|
|
247
|
-
isSuper: true,
|
|
248
|
-
name: "name_example",
|
|
249
|
-
operatorIds: [
|
|
250
|
-
"operatorIds_example",
|
|
251
|
-
],
|
|
252
|
-
strict: true,
|
|
253
|
-
userIds: [
|
|
254
|
-
"userIds_example",
|
|
255
|
-
],
|
|
256
|
-
users: [
|
|
257
|
-
{
|
|
258
|
-
accessToken: "accessToken_example",
|
|
259
|
-
createdAt: 1,
|
|
260
|
-
discoveryKeys: [
|
|
261
|
-
"discoveryKeys_example",
|
|
262
|
-
],
|
|
263
|
-
hasEverLoggedIn: true,
|
|
264
|
-
isActive: true,
|
|
265
|
-
isHideMeFromFriends: true,
|
|
266
|
-
isOnline: true,
|
|
267
|
-
isShadowBlocked: true,
|
|
268
|
-
lastSeenAt: 1,
|
|
269
|
-
locale: "locale_example",
|
|
270
|
-
metadata: {},
|
|
271
|
-
nickname: "nickname_example",
|
|
272
|
-
preferredLanguages: [
|
|
273
|
-
"preferredLanguages_example",
|
|
274
|
-
],
|
|
275
|
-
profileUrl: "profileUrl_example",
|
|
276
|
-
requireAuthForProfileImage: true,
|
|
277
|
-
userId: "userId_example",
|
|
278
|
-
state: "",
|
|
279
|
-
unreadChannelCount: 1,
|
|
280
|
-
unreadMessageCount: 1,
|
|
281
|
-
phoneNumber: "phoneNumber_example",
|
|
282
|
-
isCreated: true,
|
|
283
|
-
sessionTokens: [
|
|
284
|
-
"sessionTokens_example",
|
|
285
|
-
],
|
|
286
|
-
},
|
|
287
|
-
],
|
|
288
|
-
},
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
apiInstance.createAGroupChannel(body).then((data:any) => {
|
|
292
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
293
|
-
}).catch((error:any) => console.error(error));
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
### Parameters
|
|
298
|
-
|
|
299
|
-
Name | Type | Description | Notes
|
|
300
|
-
------------- | ------------- | ------------- | -------------
|
|
301
|
-
**createAGroupChannelRequest** | **CreateAGroupChannelRequest**| |
|
|
302
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
### Return type
|
|
306
|
-
|
|
307
|
-
**SendbirdGroupChannelDetail**
|
|
308
|
-
|
|
309
|
-
### Authorization
|
|
310
|
-
|
|
311
|
-
No authorization required
|
|
312
|
-
|
|
313
|
-
### HTTP request headers
|
|
314
|
-
|
|
315
|
-
- **Content-Type**: application/json
|
|
316
|
-
- **Accept**: application/json
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
### HTTP response details
|
|
320
|
-
| Status code | Description | Response headers |
|
|
321
|
-
|-------------|-------------|------------------|
|
|
322
|
-
**200** | Successful response | - |
|
|
323
|
-
|
|
324
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
325
|
-
|
|
326
|
-
# **deleteAGroupChannel**
|
|
327
|
-
> any deleteAGroupChannel()
|
|
328
|
-
|
|
329
|
-
## 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)
|
|
330
|
-
|
|
331
|
-
### Example
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
```typescript
|
|
335
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
336
|
-
import * as fs from 'fs';
|
|
337
|
-
|
|
338
|
-
const configuration = Sendbird.createConfiguration();
|
|
339
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
340
|
-
|
|
341
|
-
let body:Sendbird.GroupChannelApiDeleteAGroupChannelRequest = {
|
|
342
|
-
// string
|
|
343
|
-
channelUrl: "channel_url_example",
|
|
344
|
-
// string (optional)
|
|
345
|
-
apiToken: "{{API_TOKEN}}",
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
apiInstance.deleteAGroupChannel(body).then((data:any) => {
|
|
349
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
350
|
-
}).catch((error:any) => console.error(error));
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
### Parameters
|
|
355
|
-
|
|
356
|
-
Name | Type | Description | Notes
|
|
357
|
-
------------- | ------------- | ------------- | -------------
|
|
358
|
-
**channelUrl** | [**string**] | | defaults to undefined
|
|
359
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
### Return type
|
|
363
|
-
|
|
364
|
-
**any**
|
|
365
|
-
|
|
366
|
-
### Authorization
|
|
367
|
-
|
|
368
|
-
No authorization required
|
|
369
|
-
|
|
370
|
-
### HTTP request headers
|
|
371
|
-
|
|
372
|
-
- **Content-Type**: Not defined
|
|
373
|
-
- **Accept**: application/json
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
### HTTP response details
|
|
377
|
-
| Status code | Description | Response headers |
|
|
378
|
-
|-------------|-------------|------------------|
|
|
379
|
-
**200** | Successful response | - |
|
|
380
|
-
|
|
381
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
382
|
-
|
|
383
|
-
# **getAGroupChannel**
|
|
384
|
-
> GetAGroupChannelResponse getAGroupChannel()
|
|
385
|
-
|
|
386
|
-
## 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.
|
|
387
|
-
|
|
388
|
-
### Example
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
```typescript
|
|
392
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
393
|
-
import * as fs from 'fs';
|
|
394
|
-
|
|
395
|
-
const configuration = Sendbird.createConfiguration();
|
|
396
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
397
|
-
|
|
398
|
-
let body:Sendbird.GroupChannelApiGetAGroupChannelRequest = {
|
|
399
|
-
// string
|
|
400
|
-
channelUrl: "channel_url_example",
|
|
401
|
-
// boolean (optional)
|
|
402
|
-
showDeliveryReceipt: true,
|
|
403
|
-
// boolean (optional)
|
|
404
|
-
showReadReceipt: true,
|
|
405
|
-
// boolean (optional)
|
|
406
|
-
showMember: true,
|
|
407
|
-
// 'all' | 'activated' | 'deactivated' | 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) (optional)
|
|
408
|
-
memberActiveMode: "all",
|
|
409
|
-
// string (optional)
|
|
410
|
-
userId: "user_id_example",
|
|
411
|
-
// string (optional)
|
|
412
|
-
apiToken: "{{API_TOKEN}}",
|
|
413
|
-
};
|
|
414
|
-
|
|
415
|
-
apiInstance.getAGroupChannel(body).then((data:any) => {
|
|
416
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
417
|
-
}).catch((error:any) => console.error(error));
|
|
418
|
-
```
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
### Parameters
|
|
422
|
-
|
|
423
|
-
Name | Type | Description | Notes
|
|
424
|
-
------------- | ------------- | ------------- | -------------
|
|
425
|
-
**channelUrl** | [**string**] | | defaults to undefined
|
|
426
|
-
**showDeliveryReceipt** | [**boolean**] | | (optional) defaults to undefined
|
|
427
|
-
**showReadReceipt** | [**boolean**] | | (optional) defaults to undefined
|
|
428
|
-
**showMember** | [**boolean**] | | (optional) defaults to undefined
|
|
429
|
-
**memberActiveMode** | [**'all' | 'activated' | 'deactivated'**]**Array<'all' | 'activated' | 'deactivated'>** | 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) | (optional) defaults to undefined
|
|
430
|
-
**userId** | [**string**] | | (optional) defaults to undefined
|
|
431
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
### Return type
|
|
435
|
-
|
|
436
|
-
**GetAGroupChannelResponse**
|
|
437
|
-
|
|
438
|
-
### Authorization
|
|
439
|
-
|
|
440
|
-
No authorization required
|
|
441
|
-
|
|
442
|
-
### HTTP request headers
|
|
443
|
-
|
|
444
|
-
- **Content-Type**: Not defined
|
|
445
|
-
- **Accept**: application/json
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
### HTTP response details
|
|
449
|
-
| Status code | Description | Response headers |
|
|
450
|
-
|-------------|-------------|------------------|
|
|
451
|
-
**200** | Successful response | - |
|
|
452
|
-
|
|
453
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
454
|
-
|
|
455
|
-
# **hideAChannel**
|
|
456
|
-
> any hideAChannel()
|
|
457
|
-
|
|
458
|
-
## 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)
|
|
459
|
-
|
|
460
|
-
### Example
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
```typescript
|
|
464
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
465
|
-
import * as fs from 'fs';
|
|
466
|
-
|
|
467
|
-
const configuration = Sendbird.createConfiguration();
|
|
468
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
469
|
-
|
|
470
|
-
let body:Sendbird.GroupChannelApiHideAChannelRequest = {
|
|
471
|
-
// string | (Required)
|
|
472
|
-
channelUrl: "channel_url_example",
|
|
473
|
-
// string (optional)
|
|
474
|
-
apiToken: "{{API_TOKEN}}",
|
|
475
|
-
// HideAChannelRequest (optional)
|
|
476
|
-
hideAChannelRequest: {
|
|
477
|
-
allowAutoUnhide: true,
|
|
478
|
-
hidePreviousMessages: true,
|
|
479
|
-
shouldHideAll: true,
|
|
480
|
-
userId: "userId_example",
|
|
481
|
-
},
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
apiInstance.hideAChannel(body).then((data:any) => {
|
|
485
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
486
|
-
}).catch((error:any) => console.error(error));
|
|
487
|
-
```
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
### Parameters
|
|
491
|
-
|
|
492
|
-
Name | Type | Description | Notes
|
|
493
|
-
------------- | ------------- | ------------- | -------------
|
|
494
|
-
**hideAChannelRequest** | **HideAChannelRequest**| |
|
|
495
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
496
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
### Return type
|
|
500
|
-
|
|
501
|
-
**any**
|
|
502
|
-
|
|
503
|
-
### Authorization
|
|
504
|
-
|
|
505
|
-
No authorization required
|
|
506
|
-
|
|
507
|
-
### HTTP request headers
|
|
508
|
-
|
|
509
|
-
- **Content-Type**: application/json
|
|
510
|
-
- **Accept**: application/json
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
### HTTP response details
|
|
514
|
-
| Status code | Description | Response headers |
|
|
515
|
-
|-------------|-------------|------------------|
|
|
516
|
-
**200** | Successful response | - |
|
|
517
|
-
|
|
518
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
519
|
-
|
|
520
|
-
# **inviteAsMembers**
|
|
521
|
-
> InviteAsMembersResponse inviteAsMembers()
|
|
522
|
-
|
|
523
|
-
## 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)
|
|
524
|
-
|
|
525
|
-
### Example
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
```typescript
|
|
529
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
530
|
-
import * as fs from 'fs';
|
|
531
|
-
|
|
532
|
-
const configuration = Sendbird.createConfiguration();
|
|
533
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
534
|
-
|
|
535
|
-
let body:Sendbird.GroupChannelApiInviteAsMembersRequest = {
|
|
536
|
-
// string | (Required)
|
|
537
|
-
channelUrl: "channel_url_example",
|
|
538
|
-
// string (optional)
|
|
539
|
-
apiToken: "{{API_TOKEN}}",
|
|
540
|
-
// InviteAsMembersRequest (optional)
|
|
541
|
-
inviteAsMembersRequest: {
|
|
542
|
-
hiddenStatus: {},
|
|
543
|
-
invitationStatus: {},
|
|
544
|
-
inviterId: "inviterId_example",
|
|
545
|
-
userIds: [
|
|
546
|
-
"userIds_example",
|
|
547
|
-
],
|
|
548
|
-
},
|
|
549
|
-
};
|
|
550
|
-
|
|
551
|
-
apiInstance.inviteAsMembers(body).then((data:any) => {
|
|
552
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
553
|
-
}).catch((error:any) => console.error(error));
|
|
554
|
-
```
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
### Parameters
|
|
558
|
-
|
|
559
|
-
Name | Type | Description | Notes
|
|
560
|
-
------------- | ------------- | ------------- | -------------
|
|
561
|
-
**inviteAsMembersRequest** | **InviteAsMembersRequest**| |
|
|
562
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
563
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
### Return type
|
|
567
|
-
|
|
568
|
-
**InviteAsMembersResponse**
|
|
569
|
-
|
|
570
|
-
### Authorization
|
|
571
|
-
|
|
572
|
-
No authorization required
|
|
573
|
-
|
|
574
|
-
### HTTP request headers
|
|
575
|
-
|
|
576
|
-
- **Content-Type**: application/json
|
|
577
|
-
- **Accept**: application/json
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
### HTTP response details
|
|
581
|
-
| Status code | Description | Response headers |
|
|
582
|
-
|-------------|-------------|------------------|
|
|
583
|
-
**200** | Successful response | - |
|
|
584
|
-
|
|
585
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
586
|
-
|
|
587
|
-
# **joinAChannel**
|
|
588
|
-
> SendbirdGroupChannelDetail joinAChannel()
|
|
589
|
-
|
|
590
|
-
## 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)
|
|
591
|
-
|
|
592
|
-
### Example
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
```typescript
|
|
596
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
597
|
-
import * as fs from 'fs';
|
|
598
|
-
|
|
599
|
-
const configuration = Sendbird.createConfiguration();
|
|
600
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
601
|
-
|
|
602
|
-
let body:Sendbird.GroupChannelApiJoinAChannelRequest = {
|
|
603
|
-
// string | (Required)
|
|
604
|
-
channelUrl: "channel_url_example",
|
|
605
|
-
// string (optional)
|
|
606
|
-
apiToken: "{{API_TOKEN}}",
|
|
607
|
-
// JoinAChannelRequest (optional)
|
|
608
|
-
joinAChannelRequest: {
|
|
609
|
-
userId: "userId_example",
|
|
610
|
-
accessCode: "accessCode_example",
|
|
611
|
-
},
|
|
612
|
-
};
|
|
613
|
-
|
|
614
|
-
apiInstance.joinAChannel(body).then((data:any) => {
|
|
615
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
616
|
-
}).catch((error:any) => console.error(error));
|
|
617
|
-
```
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
### Parameters
|
|
621
|
-
|
|
622
|
-
Name | Type | Description | Notes
|
|
623
|
-
------------- | ------------- | ------------- | -------------
|
|
624
|
-
**joinAChannelRequest** | **JoinAChannelRequest**| |
|
|
625
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
626
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
### Return type
|
|
630
|
-
|
|
631
|
-
**SendbirdGroupChannelDetail**
|
|
632
|
-
|
|
633
|
-
### Authorization
|
|
634
|
-
|
|
635
|
-
No authorization required
|
|
636
|
-
|
|
637
|
-
### HTTP request headers
|
|
638
|
-
|
|
639
|
-
- **Content-Type**: application/json
|
|
640
|
-
- **Accept**: application/json
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
### HTTP response details
|
|
644
|
-
| Status code | Description | Response headers |
|
|
645
|
-
|-------------|-------------|------------------|
|
|
646
|
-
**200** | Join a channel | - |
|
|
647
|
-
|
|
648
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
649
|
-
|
|
650
|
-
# **leaveAChannel**
|
|
651
|
-
> any leaveAChannel()
|
|
652
|
-
|
|
653
|
-
## 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 ----------------------------
|
|
654
|
-
|
|
655
|
-
### Example
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
```typescript
|
|
659
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
660
|
-
import * as fs from 'fs';
|
|
661
|
-
|
|
662
|
-
const configuration = Sendbird.createConfiguration();
|
|
663
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
664
|
-
|
|
665
|
-
let body:Sendbird.GroupChannelApiLeaveAChannelRequest = {
|
|
666
|
-
// string
|
|
667
|
-
channelUrl: "channel_url_example",
|
|
668
|
-
// string (optional)
|
|
669
|
-
apiToken: "{{API_TOKEN}}",
|
|
670
|
-
// LeaveAChannelRequest (optional)
|
|
671
|
-
leaveAChannelRequest: {
|
|
672
|
-
userIds: [
|
|
673
|
-
"userIds_example",
|
|
674
|
-
],
|
|
675
|
-
shouldLeaveAll: true,
|
|
676
|
-
shouldRemoveOperatorStatus: true,
|
|
677
|
-
reason: "LEFT_BY_OWN_CHOICE",
|
|
678
|
-
},
|
|
679
|
-
};
|
|
680
|
-
|
|
681
|
-
apiInstance.leaveAChannel(body).then((data:any) => {
|
|
682
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
683
|
-
}).catch((error:any) => console.error(error));
|
|
684
|
-
```
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
### Parameters
|
|
688
|
-
|
|
689
|
-
Name | Type | Description | Notes
|
|
690
|
-
------------- | ------------- | ------------- | -------------
|
|
691
|
-
**leaveAChannelRequest** | **LeaveAChannelRequest**| |
|
|
692
|
-
**channelUrl** | [**string**] | | defaults to undefined
|
|
693
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
### Return type
|
|
697
|
-
|
|
698
|
-
**any**
|
|
699
|
-
|
|
700
|
-
### Authorization
|
|
701
|
-
|
|
702
|
-
No authorization required
|
|
703
|
-
|
|
704
|
-
### HTTP request headers
|
|
705
|
-
|
|
706
|
-
- **Content-Type**: application/json
|
|
707
|
-
- **Accept**: application/json
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
### HTTP response details
|
|
711
|
-
| Status code | Description | Response headers |
|
|
712
|
-
|-------------|-------------|------------------|
|
|
713
|
-
**200** | Successful response | - |
|
|
714
|
-
|
|
715
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
716
|
-
|
|
717
|
-
# **listChannels**
|
|
718
|
-
> GroupChatListChannelsResponse listChannels()
|
|
719
|
-
|
|
720
|
-
## 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
|
|
721
|
-
|
|
722
|
-
### Example
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
```typescript
|
|
726
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
727
|
-
import * as fs from 'fs';
|
|
728
|
-
|
|
729
|
-
const configuration = Sendbird.createConfiguration();
|
|
730
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
731
|
-
|
|
732
|
-
let body:Sendbird.GroupChannelApiListChannelsRequest = {
|
|
733
|
-
// string
|
|
734
|
-
apiToken: "{{API_TOKEN}}",
|
|
735
|
-
// string | Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. (optional)
|
|
736
|
-
token: "token_example",
|
|
737
|
-
// number | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) (optional)
|
|
738
|
-
limit: 10,
|
|
739
|
-
// 'all' | 'distinct' | 'nondistinct' (optional)
|
|
740
|
-
distinctMode: "all",
|
|
741
|
-
// 'all' | 'private' | 'public' (optional)
|
|
742
|
-
publicMode: "all",
|
|
743
|
-
// 'all' | 'super' | 'nonsuper' (optional)
|
|
744
|
-
superMode: "all",
|
|
745
|
-
// number | Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. (optional)
|
|
746
|
-
createdAfter: 1234567890123,
|
|
747
|
-
// number | Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. (optional)
|
|
748
|
-
createdBefore: 1234567890123,
|
|
749
|
-
// boolean (optional)
|
|
750
|
-
showEmpty: false,
|
|
751
|
-
// boolean (optional)
|
|
752
|
-
showMember: false,
|
|
753
|
-
// boolean (optional)
|
|
754
|
-
showDeliveryReceipt: false,
|
|
755
|
-
// boolean (optional)
|
|
756
|
-
showReadReceipt: false,
|
|
757
|
-
// boolean (optional)
|
|
758
|
-
showMetadata: false,
|
|
759
|
-
// boolean (optional)
|
|
760
|
-
showFrozen: false,
|
|
761
|
-
// 'chronological' | 'latest_last_message' | 'channel_name_alphabetical' | 'metadata_value_alphabetical' (optional)
|
|
762
|
-
order: "chronological",
|
|
763
|
-
// string | 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. (optional)
|
|
764
|
-
metadataOrderKey: "metadata_order_key_example",
|
|
765
|
-
// string | 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. (optional)
|
|
766
|
-
customTypes: "custom_types_example",
|
|
767
|
-
// string | Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. (optional)
|
|
768
|
-
customTypeStartswith: "custom_type_startswith_example",
|
|
769
|
-
// string | Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. (optional)
|
|
770
|
-
channelUrls: "channel_urls_example",
|
|
771
|
-
// string | Specifies one or more group channel names. (optional)
|
|
772
|
-
name: "name_example",
|
|
773
|
-
// string | Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. (optional)
|
|
774
|
-
nameContains: "name_contains_example",
|
|
775
|
-
// string | Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. (optional)
|
|
776
|
-
nameStartswith: "name_startswith_example",
|
|
777
|
-
// string | 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. (optional)
|
|
778
|
-
membersExactlyIn: "members_exactly_in_example",
|
|
779
|
-
// string | 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. (optional)
|
|
780
|
-
membersIncludeIn: "members_include_in_example",
|
|
781
|
-
// string | 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) (optional)
|
|
782
|
-
queryType: "query_type_example",
|
|
783
|
-
// string | Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. (optional)
|
|
784
|
-
membersNickname: "members_nickname_example",
|
|
785
|
-
// string | 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. (optional)
|
|
786
|
-
membersNicknameContains: "members_nickname_contains_example",
|
|
787
|
-
// string | 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. (optional)
|
|
788
|
-
metadataKey: "metadata_key_example",
|
|
789
|
-
// string | 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. (optional)
|
|
790
|
-
metadataValues: "metadata_values_example",
|
|
791
|
-
// string | 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. (optional)
|
|
792
|
-
metadataValueStartswith: "metadata_value_startswith_example",
|
|
793
|
-
// string | 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. (optional)
|
|
794
|
-
metacounterKey: "metacounter_key_example",
|
|
795
|
-
// string | 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. (optional)
|
|
796
|
-
metacounterValues: "metacounter_values_example",
|
|
797
|
-
// string | 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. (optional)
|
|
798
|
-
metacounterValueGt: "metacounter_value_gt_example",
|
|
799
|
-
// string | 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. (optional)
|
|
800
|
-
metacounterValueGte: "metacounter_value_gte_example",
|
|
801
|
-
// string | 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. (optional)
|
|
802
|
-
metacounterValueLt: "metacounter_value_lt_example",
|
|
803
|
-
// string | 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. (optional)
|
|
804
|
-
metacounterValueLte: "metacounter_value_lte_example",
|
|
805
|
-
// boolean | Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. (optional)
|
|
806
|
-
includeSortedMetaarrayInLastMessage: false,
|
|
807
|
-
};
|
|
808
|
-
|
|
809
|
-
apiInstance.listChannels(body).then((data:any) => {
|
|
810
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
811
|
-
}).catch((error:any) => console.error(error));
|
|
812
|
-
```
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
### Parameters
|
|
816
|
-
|
|
817
|
-
Name | Type | Description | Notes
|
|
818
|
-
------------- | ------------- | ------------- | -------------
|
|
819
|
-
**apiToken** | [**string**] | | defaults to undefined
|
|
820
|
-
**token** | [**string**] | Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. | (optional) defaults to undefined
|
|
821
|
-
**limit** | [**number**] | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) | (optional) defaults to undefined
|
|
822
|
-
**distinctMode** | [**'all' | 'distinct' | 'nondistinct'**]**Array<'all' | 'distinct' | 'nondistinct'>** | | (optional) defaults to undefined
|
|
823
|
-
**publicMode** | [**'all' | 'private' | 'public'**]**Array<'all' | 'private' | 'public'>** | | (optional) defaults to undefined
|
|
824
|
-
**superMode** | [**'all' | 'super' | 'nonsuper'**]**Array<'all' | 'super' | 'nonsuper'>** | | (optional) defaults to undefined
|
|
825
|
-
**createdAfter** | [**number**] | Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. | (optional) defaults to undefined
|
|
826
|
-
**createdBefore** | [**number**] | Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. | (optional) defaults to undefined
|
|
827
|
-
**showEmpty** | [**boolean**] | | (optional) defaults to undefined
|
|
828
|
-
**showMember** | [**boolean**] | | (optional) defaults to undefined
|
|
829
|
-
**showDeliveryReceipt** | [**boolean**] | | (optional) defaults to undefined
|
|
830
|
-
**showReadReceipt** | [**boolean**] | | (optional) defaults to undefined
|
|
831
|
-
**showMetadata** | [**boolean**] | | (optional) defaults to undefined
|
|
832
|
-
**showFrozen** | [**boolean**] | | (optional) defaults to undefined
|
|
833
|
-
**order** | [**'chronological' | 'latest_last_message' | 'channel_name_alphabetical' | 'metadata_value_alphabetical'**]**Array<'chronological' | 'latest_last_message' | 'channel_name_alphabetical' | 'metadata_value_alphabetical'>** | | (optional) defaults to undefined
|
|
834
|
-
**metadataOrderKey** | [**string**] | 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. | (optional) defaults to undefined
|
|
835
|
-
**customTypes** | [**string**] | 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. | (optional) defaults to undefined
|
|
836
|
-
**customTypeStartswith** | [**string**] | Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. | (optional) defaults to undefined
|
|
837
|
-
**channelUrls** | [**string**] | Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. | (optional) defaults to undefined
|
|
838
|
-
**name** | [**string**] | Specifies one or more group channel names. | (optional) defaults to undefined
|
|
839
|
-
**nameContains** | [**string**] | Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. | (optional) defaults to undefined
|
|
840
|
-
**nameStartswith** | [**string**] | Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. | (optional) defaults to undefined
|
|
841
|
-
**membersExactlyIn** | [**string**] | 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. | (optional) defaults to undefined
|
|
842
|
-
**membersIncludeIn** | [**string**] | 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. | (optional) defaults to undefined
|
|
843
|
-
**queryType** | [**string**] | 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) | (optional) defaults to undefined
|
|
844
|
-
**membersNickname** | [**string**] | Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. | (optional) defaults to undefined
|
|
845
|
-
**membersNicknameContains** | [**string**] | 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. | (optional) defaults to undefined
|
|
846
|
-
**metadataKey** | [**string**] | 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. | (optional) defaults to undefined
|
|
847
|
-
**metadataValues** | [**string**] | 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. | (optional) defaults to undefined
|
|
848
|
-
**metadataValueStartswith** | [**string**] | 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. | (optional) defaults to undefined
|
|
849
|
-
**metacounterKey** | [**string**] | 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. | (optional) defaults to undefined
|
|
850
|
-
**metacounterValues** | [**string**] | 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. | (optional) defaults to undefined
|
|
851
|
-
**metacounterValueGt** | [**string**] | 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. | (optional) defaults to undefined
|
|
852
|
-
**metacounterValueGte** | [**string**] | 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. | (optional) defaults to undefined
|
|
853
|
-
**metacounterValueLt** | [**string**] | 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. | (optional) defaults to undefined
|
|
854
|
-
**metacounterValueLte** | [**string**] | 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. | (optional) defaults to undefined
|
|
855
|
-
**includeSortedMetaarrayInLastMessage** | [**boolean**] | Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. | (optional) defaults to undefined
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
### Return type
|
|
859
|
-
|
|
860
|
-
**GroupChatListChannelsResponse**
|
|
861
|
-
|
|
862
|
-
### Authorization
|
|
863
|
-
|
|
864
|
-
No authorization required
|
|
865
|
-
|
|
866
|
-
### HTTP request headers
|
|
867
|
-
|
|
868
|
-
- **Content-Type**: Not defined
|
|
869
|
-
- **Accept**: application/json
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
### HTTP response details
|
|
873
|
-
| Status code | Description | Response headers |
|
|
874
|
-
|-------------|-------------|------------------|
|
|
875
|
-
**200** | Successful response | - |
|
|
876
|
-
|
|
877
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
878
|
-
|
|
879
|
-
# **listMembers**
|
|
880
|
-
> GroupChannelListMembersResponse listMembers()
|
|
881
|
-
|
|
882
|
-
## 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.
|
|
883
|
-
|
|
884
|
-
### Example
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
```typescript
|
|
888
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
889
|
-
import * as fs from 'fs';
|
|
890
|
-
|
|
891
|
-
const configuration = Sendbird.createConfiguration();
|
|
892
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
893
|
-
|
|
894
|
-
let body:Sendbird.GroupChannelApiListMembersRequest = {
|
|
895
|
-
// string | (Required)
|
|
896
|
-
channelUrl: "channel_url_example",
|
|
897
|
-
// string (optional)
|
|
898
|
-
token: "token_example",
|
|
899
|
-
// number | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) (optional)
|
|
900
|
-
limit: 1,
|
|
901
|
-
// string | Specifies the unique ID of a user. If `user_id` is provided, the response will include two additional boolean properties about each user in the members list. - `is_blocking_me`: Indicates whether the listed user is blocking the user specified in the user_id parameter. - `is_blocked_by_me`: Indicates whether the listed user is blocked by the user specified in the user_id parameter. (optional)
|
|
902
|
-
userId: "user_id_example",
|
|
903
|
-
// boolean (optional)
|
|
904
|
-
showDeliveryReceipt: true,
|
|
905
|
-
// boolean (optional)
|
|
906
|
-
showReadReceipt: true,
|
|
907
|
-
// boolean (optional)
|
|
908
|
-
showMemberIsMuted: true,
|
|
909
|
-
// 'member_nickname_alphabetical' | 'operator_then_member_alphabetical' | Specifies the method to sort a list of results. Acceptable values are the following: - `member_nickname_alphabetical` (default): sorts by the member nicknames in alphabetical order. - `operator_then_member_alphabetical`: sorts by the operational role and member nickname in alphabetical order where channel operators are listed before channel members. (optional)
|
|
910
|
-
order: "member_nickname_alphabetical",
|
|
911
|
-
// 'all' | 'operator' | 'nonoperator' | Restricts the search scope to only retrieve operators or non-operator members of the channel. Acceptable values are the following: - `all` (default): no filter is applied to the list. - `operator`: only channel operators are retrieved. - `nonoperator`: all channel members, except channel operators, are retrieved. (optional)
|
|
912
|
-
operatorFilter: "all",
|
|
913
|
-
// 'all' | 'invited_only' | 'joined_only' | 'invited_by_friend' | 'invited_by_non_friend' | 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 `invited_only`, `joined_only`, `invited_by_friend`, `invited_by_non_friend`, and `all`. (Default: `all`) (optional)
|
|
914
|
-
memberStateFilter: "all",
|
|
915
|
-
// 'all' | 'muted' | 'unmuted' | Restricts the search scope to retrieve members who are muted or unmuted in the channel. Acceptable values are `all`, `muted`, and `unmuted`. (Default: `all`) (optional)
|
|
916
|
-
mutedMemberFilter: "all",
|
|
917
|
-
// 'activated' | 'deactivated' | Restricts the search scope to retrieve members who are activated or deactivated in the channel. Acceptable values are `all`, `activated`, and `deactivated`. (default: `activated`) (optional)
|
|
918
|
-
memberActiveModeFilter: "activated",
|
|
919
|
-
// string | Searches for members whose nicknames start with the specified value. Urlencoding the value is recommended. (optional)
|
|
920
|
-
nicknameStartswith: "nickname_startswith_example",
|
|
921
|
-
// boolean | Determines whether to include information about the push preference of each member, such as `push_enabled`, `push_trigger_option`, and `do_not_disturb`. (Default: `false`) (optional)
|
|
922
|
-
includePushPreference: true,
|
|
923
|
-
// string (optional)
|
|
924
|
-
apiToken: "{{API_TOKEN}}",
|
|
925
|
-
};
|
|
926
|
-
|
|
927
|
-
apiInstance.listMembers(body).then((data:any) => {
|
|
928
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
929
|
-
}).catch((error:any) => console.error(error));
|
|
930
|
-
```
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
### Parameters
|
|
934
|
-
|
|
935
|
-
Name | Type | Description | Notes
|
|
936
|
-
------------- | ------------- | ------------- | -------------
|
|
937
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
938
|
-
**token** | [**string**] | | (optional) defaults to undefined
|
|
939
|
-
**limit** | [**number**] | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) | (optional) defaults to undefined
|
|
940
|
-
**userId** | [**string**] | Specifies the unique ID of a user. If `user_id` is provided, the response will include two additional boolean properties about each user in the members list. - `is_blocking_me`: Indicates whether the listed user is blocking the user specified in the user_id parameter. - `is_blocked_by_me`: Indicates whether the listed user is blocked by the user specified in the user_id parameter. | (optional) defaults to undefined
|
|
941
|
-
**showDeliveryReceipt** | [**boolean**] | | (optional) defaults to undefined
|
|
942
|
-
**showReadReceipt** | [**boolean**] | | (optional) defaults to undefined
|
|
943
|
-
**showMemberIsMuted** | [**boolean**] | | (optional) defaults to undefined
|
|
944
|
-
**order** | [**'member_nickname_alphabetical' | 'operator_then_member_alphabetical'**]**Array<'member_nickname_alphabetical' | 'operator_then_member_alphabetical'>** | Specifies the method to sort a list of results. Acceptable values are the following: - `member_nickname_alphabetical` (default): sorts by the member nicknames in alphabetical order. - `operator_then_member_alphabetical`: sorts by the operational role and member nickname in alphabetical order where channel operators are listed before channel members. | (optional) defaults to undefined
|
|
945
|
-
**operatorFilter** | [**'all' | 'operator' | 'nonoperator'**]**Array<'all' | 'operator' | 'nonoperator'>** | Restricts the search scope to only retrieve operators or non-operator members of the channel. Acceptable values are the following: - `all` (default): no filter is applied to the list. - `operator`: only channel operators are retrieved. - `nonoperator`: all channel members, except channel operators, are retrieved. | (optional) defaults to undefined
|
|
946
|
-
**memberStateFilter** | [**'all' | 'invited_only' | 'joined_only' | 'invited_by_friend' | 'invited_by_non_friend'**]**Array<'all' | 'invited_only' | 'joined_only' | 'invited_by_friend' | 'invited_by_non_friend'>** | 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 `invited_only`, `joined_only`, `invited_by_friend`, `invited_by_non_friend`, and `all`. (Default: `all`) | (optional) defaults to undefined
|
|
947
|
-
**mutedMemberFilter** | [**'all' | 'muted' | 'unmuted'**]**Array<'all' | 'muted' | 'unmuted'>** | Restricts the search scope to retrieve members who are muted or unmuted in the channel. Acceptable values are `all`, `muted`, and `unmuted`. (Default: `all`) | (optional) defaults to undefined
|
|
948
|
-
**memberActiveModeFilter** | [**'activated' | 'deactivated'**]**Array<'activated' | 'deactivated'>** | Restricts the search scope to retrieve members who are activated or deactivated in the channel. Acceptable values are `all`, `activated`, and `deactivated`. (default: `activated`) | (optional) defaults to undefined
|
|
949
|
-
**nicknameStartswith** | [**string**] | Searches for members whose nicknames start with the specified value. Urlencoding the value is recommended. | (optional) defaults to undefined
|
|
950
|
-
**includePushPreference** | [**boolean**] | Determines whether to include information about the push preference of each member, such as `push_enabled`, `push_trigger_option`, and `do_not_disturb`. (Default: `false`) | (optional) defaults to undefined
|
|
951
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
### Return type
|
|
955
|
-
|
|
956
|
-
**GroupChannelListMembersResponse**
|
|
957
|
-
|
|
958
|
-
### Authorization
|
|
959
|
-
|
|
960
|
-
No authorization required
|
|
961
|
-
|
|
962
|
-
### HTTP request headers
|
|
963
|
-
|
|
964
|
-
- **Content-Type**: Not defined
|
|
965
|
-
- **Accept**: application/json
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
### HTTP response details
|
|
969
|
-
| Status code | Description | Response headers |
|
|
970
|
-
|-------------|-------------|------------------|
|
|
971
|
-
**200** | Successful response | - |
|
|
972
|
-
|
|
973
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
974
|
-
|
|
975
|
-
# **listOperators**
|
|
976
|
-
> ListOperatorsResponse listOperators()
|
|
977
|
-
|
|
978
|
-
## 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.
|
|
979
|
-
|
|
980
|
-
### Example
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
```typescript
|
|
984
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
985
|
-
import * as fs from 'fs';
|
|
986
|
-
|
|
987
|
-
const configuration = Sendbird.createConfiguration();
|
|
988
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
989
|
-
|
|
990
|
-
let body:Sendbird.GroupChannelApiListOperatorsRequest = {
|
|
991
|
-
// string | (Required)
|
|
992
|
-
channelUrl: "channel_url_example",
|
|
993
|
-
// string (optional)
|
|
994
|
-
token: "token_example",
|
|
995
|
-
// number | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) (optional)
|
|
996
|
-
limit: 1,
|
|
997
|
-
// string (optional)
|
|
998
|
-
apiToken: "{{API_TOKEN}}",
|
|
999
|
-
};
|
|
1000
|
-
|
|
1001
|
-
apiInstance.listOperators(body).then((data:any) => {
|
|
1002
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1003
|
-
}).catch((error:any) => console.error(error));
|
|
1004
|
-
```
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
### Parameters
|
|
1008
|
-
|
|
1009
|
-
Name | Type | Description | Notes
|
|
1010
|
-
------------- | ------------- | ------------- | -------------
|
|
1011
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
1012
|
-
**token** | [**string**] | | (optional) defaults to undefined
|
|
1013
|
-
**limit** | [**number**] | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) | (optional) defaults to undefined
|
|
1014
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
### Return type
|
|
1018
|
-
|
|
1019
|
-
**ListOperatorsResponse**
|
|
1020
|
-
|
|
1021
|
-
### Authorization
|
|
1022
|
-
|
|
1023
|
-
No authorization required
|
|
1024
|
-
|
|
1025
|
-
### HTTP request headers
|
|
1026
|
-
|
|
1027
|
-
- **Content-Type**: Not defined
|
|
1028
|
-
- **Accept**: application/json
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
### HTTP response details
|
|
1032
|
-
| Status code | Description | Response headers |
|
|
1033
|
-
|-------------|-------------|------------------|
|
|
1034
|
-
**200** | Successful response | - |
|
|
1035
|
-
|
|
1036
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1037
|
-
|
|
1038
|
-
# **registerOperatorsToAGroupChannel**
|
|
1039
|
-
> any registerOperatorsToAGroupChannel()
|
|
1040
|
-
|
|
1041
|
-
## 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
|
|
1042
|
-
|
|
1043
|
-
### Example
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
```typescript
|
|
1047
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1048
|
-
import * as fs from 'fs';
|
|
1049
|
-
|
|
1050
|
-
const configuration = Sendbird.createConfiguration();
|
|
1051
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
1052
|
-
|
|
1053
|
-
let body:Sendbird.GroupChannelApiRegisterOperatorsToAGroupChannelRequest = {
|
|
1054
|
-
// string | (Required)
|
|
1055
|
-
channelUrl: "channel_url_example",
|
|
1056
|
-
// string (optional)
|
|
1057
|
-
apiToken: "{{API_TOKEN}}",
|
|
1058
|
-
// RegisterOperatorsToAGroupChannelRequest (optional)
|
|
1059
|
-
registerOperatorsToAGroupChannelRequest: {
|
|
1060
|
-
operatorIds: [
|
|
1061
|
-
"operatorIds_example",
|
|
1062
|
-
],
|
|
1063
|
-
},
|
|
1064
|
-
};
|
|
1065
|
-
|
|
1066
|
-
apiInstance.registerOperatorsToAGroupChannel(body).then((data:any) => {
|
|
1067
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1068
|
-
}).catch((error:any) => console.error(error));
|
|
1069
|
-
```
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
### Parameters
|
|
1073
|
-
|
|
1074
|
-
Name | Type | Description | Notes
|
|
1075
|
-
------------- | ------------- | ------------- | -------------
|
|
1076
|
-
**registerOperatorsToAGroupChannelRequest** | **RegisterOperatorsToAGroupChannelRequest**| |
|
|
1077
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
1078
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
### Return type
|
|
1082
|
-
|
|
1083
|
-
**any**
|
|
1084
|
-
|
|
1085
|
-
### Authorization
|
|
1086
|
-
|
|
1087
|
-
No authorization required
|
|
1088
|
-
|
|
1089
|
-
### HTTP request headers
|
|
1090
|
-
|
|
1091
|
-
- **Content-Type**: application/json
|
|
1092
|
-
- **Accept**: application/json
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
### HTTP response details
|
|
1096
|
-
| Status code | Description | Response headers |
|
|
1097
|
-
|-------------|-------------|------------------|
|
|
1098
|
-
**200** | Successful response | - |
|
|
1099
|
-
|
|
1100
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1101
|
-
|
|
1102
|
-
# **resetChatHistory**
|
|
1103
|
-
> ResetChatHistoryResponse resetChatHistory()
|
|
1104
|
-
|
|
1105
|
-
## 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
|
|
1106
|
-
|
|
1107
|
-
### Example
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
```typescript
|
|
1111
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1112
|
-
import * as fs from 'fs';
|
|
1113
|
-
|
|
1114
|
-
const configuration = Sendbird.createConfiguration();
|
|
1115
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
1116
|
-
|
|
1117
|
-
let body:Sendbird.GroupChannelApiResetChatHistoryRequest = {
|
|
1118
|
-
// string | (Required)
|
|
1119
|
-
channelUrl: "channel_url_example",
|
|
1120
|
-
// string (optional)
|
|
1121
|
-
apiToken: "{{API_TOKEN}}",
|
|
1122
|
-
// ResetChatHistoryRequest (optional)
|
|
1123
|
-
resetChatHistoryRequest: {
|
|
1124
|
-
resetAll: true,
|
|
1125
|
-
userId: "userId_example",
|
|
1126
|
-
},
|
|
1127
|
-
};
|
|
1128
|
-
|
|
1129
|
-
apiInstance.resetChatHistory(body).then((data:any) => {
|
|
1130
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1131
|
-
}).catch((error:any) => console.error(error));
|
|
1132
|
-
```
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
### Parameters
|
|
1136
|
-
|
|
1137
|
-
Name | Type | Description | Notes
|
|
1138
|
-
------------- | ------------- | ------------- | -------------
|
|
1139
|
-
**resetChatHistoryRequest** | **ResetChatHistoryRequest**| |
|
|
1140
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
1141
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
### Return type
|
|
1145
|
-
|
|
1146
|
-
**ResetChatHistoryResponse**
|
|
1147
|
-
|
|
1148
|
-
### Authorization
|
|
1149
|
-
|
|
1150
|
-
No authorization required
|
|
1151
|
-
|
|
1152
|
-
### HTTP request headers
|
|
1153
|
-
|
|
1154
|
-
- **Content-Type**: application/json
|
|
1155
|
-
- **Accept**: application/json
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
### HTTP response details
|
|
1159
|
-
| Status code | Description | Response headers |
|
|
1160
|
-
|-------------|-------------|------------------|
|
|
1161
|
-
**200** | Successful response | - |
|
|
1162
|
-
|
|
1163
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1164
|
-
|
|
1165
|
-
# **startTypingIndicators**
|
|
1166
|
-
> any startTypingIndicators()
|
|
1167
|
-
|
|
1168
|
-
## 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.
|
|
1169
|
-
|
|
1170
|
-
### Example
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
```typescript
|
|
1174
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1175
|
-
import * as fs from 'fs';
|
|
1176
|
-
|
|
1177
|
-
const configuration = Sendbird.createConfiguration();
|
|
1178
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
1179
|
-
|
|
1180
|
-
let body:Sendbird.GroupChannelApiStartTypingIndicatorsRequest = {
|
|
1181
|
-
// string | (Required)
|
|
1182
|
-
channelUrl: "channel_url_example",
|
|
1183
|
-
// string (optional)
|
|
1184
|
-
apiToken: "{{API_TOKEN}}",
|
|
1185
|
-
// StartTypingIndicatorsRequest (optional)
|
|
1186
|
-
startTypingIndicatorsRequest: {
|
|
1187
|
-
userIds: [
|
|
1188
|
-
"userIds_example",
|
|
1189
|
-
],
|
|
1190
|
-
},
|
|
1191
|
-
};
|
|
1192
|
-
|
|
1193
|
-
apiInstance.startTypingIndicators(body).then((data:any) => {
|
|
1194
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1195
|
-
}).catch((error:any) => console.error(error));
|
|
1196
|
-
```
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
### Parameters
|
|
1200
|
-
|
|
1201
|
-
Name | Type | Description | Notes
|
|
1202
|
-
------------- | ------------- | ------------- | -------------
|
|
1203
|
-
**startTypingIndicatorsRequest** | **StartTypingIndicatorsRequest**| |
|
|
1204
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
1205
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
### Return type
|
|
1209
|
-
|
|
1210
|
-
**any**
|
|
1211
|
-
|
|
1212
|
-
### Authorization
|
|
1213
|
-
|
|
1214
|
-
No authorization required
|
|
1215
|
-
|
|
1216
|
-
### HTTP request headers
|
|
1217
|
-
|
|
1218
|
-
- **Content-Type**: application/json
|
|
1219
|
-
- **Accept**: application/json
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
### HTTP response details
|
|
1223
|
-
| Status code | Description | Response headers |
|
|
1224
|
-
|-------------|-------------|------------------|
|
|
1225
|
-
**200** | Successful response | - |
|
|
1226
|
-
|
|
1227
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1228
|
-
|
|
1229
|
-
# **stopTypingIndicators**
|
|
1230
|
-
> any stopTypingIndicators()
|
|
1231
|
-
|
|
1232
|
-
## 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.
|
|
1233
|
-
|
|
1234
|
-
### Example
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
```typescript
|
|
1238
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1239
|
-
import * as fs from 'fs';
|
|
1240
|
-
|
|
1241
|
-
const configuration = Sendbird.createConfiguration();
|
|
1242
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
1243
|
-
|
|
1244
|
-
let body:Sendbird.GroupChannelApiStopTypingIndicatorsRequest = {
|
|
1245
|
-
// string | (Required)
|
|
1246
|
-
channelUrl: "channel_url_example",
|
|
1247
|
-
// string (optional)
|
|
1248
|
-
apiToken: "{{API_TOKEN}}",
|
|
1249
|
-
// StartTypingIndicatorsRequest (optional)
|
|
1250
|
-
startTypingIndicatorsRequest: {
|
|
1251
|
-
userIds: [
|
|
1252
|
-
"userIds_example",
|
|
1253
|
-
],
|
|
1254
|
-
},
|
|
1255
|
-
};
|
|
1256
|
-
|
|
1257
|
-
apiInstance.stopTypingIndicators(body).then((data:any) => {
|
|
1258
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1259
|
-
}).catch((error:any) => console.error(error));
|
|
1260
|
-
```
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
### Parameters
|
|
1264
|
-
|
|
1265
|
-
Name | Type | Description | Notes
|
|
1266
|
-
------------- | ------------- | ------------- | -------------
|
|
1267
|
-
**startTypingIndicatorsRequest** | **StartTypingIndicatorsRequest**| |
|
|
1268
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
1269
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
### Return type
|
|
1273
|
-
|
|
1274
|
-
**any**
|
|
1275
|
-
|
|
1276
|
-
### Authorization
|
|
1277
|
-
|
|
1278
|
-
No authorization required
|
|
1279
|
-
|
|
1280
|
-
### HTTP request headers
|
|
1281
|
-
|
|
1282
|
-
- **Content-Type**: application/json
|
|
1283
|
-
- **Accept**: application/json
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
### HTTP response details
|
|
1287
|
-
| Status code | Description | Response headers |
|
|
1288
|
-
|-------------|-------------|------------------|
|
|
1289
|
-
**200** | Successful response | - |
|
|
1290
|
-
|
|
1291
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1292
|
-
|
|
1293
|
-
# **unhideAChannel**
|
|
1294
|
-
> any unhideAChannel()
|
|
1295
|
-
|
|
1296
|
-
## 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.
|
|
1297
|
-
|
|
1298
|
-
### Example
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
```typescript
|
|
1302
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1303
|
-
import * as fs from 'fs';
|
|
1304
|
-
|
|
1305
|
-
const configuration = Sendbird.createConfiguration();
|
|
1306
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
1307
|
-
|
|
1308
|
-
let body:Sendbird.GroupChannelApiUnhideAChannelRequest = {
|
|
1309
|
-
// string | (Required)
|
|
1310
|
-
channelUrl: "channel_url_example",
|
|
1311
|
-
// string | (Required)
|
|
1312
|
-
userId: "user_id_example",
|
|
1313
|
-
// boolean (optional)
|
|
1314
|
-
shouldUnhideAll: true,
|
|
1315
|
-
// string (optional)
|
|
1316
|
-
apiToken: "{{API_TOKEN}}",
|
|
1317
|
-
};
|
|
1318
|
-
|
|
1319
|
-
apiInstance.unhideAChannel(body).then((data:any) => {
|
|
1320
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1321
|
-
}).catch((error:any) => console.error(error));
|
|
1322
|
-
```
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
### Parameters
|
|
1326
|
-
|
|
1327
|
-
Name | Type | Description | Notes
|
|
1328
|
-
------------- | ------------- | ------------- | -------------
|
|
1329
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
1330
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1331
|
-
**shouldUnhideAll** | [**boolean**] | | (optional) defaults to undefined
|
|
1332
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
### Return type
|
|
1336
|
-
|
|
1337
|
-
**any**
|
|
1338
|
-
|
|
1339
|
-
### Authorization
|
|
1340
|
-
|
|
1341
|
-
No authorization required
|
|
1342
|
-
|
|
1343
|
-
### HTTP request headers
|
|
1344
|
-
|
|
1345
|
-
- **Content-Type**: Not defined
|
|
1346
|
-
- **Accept**: application/json
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
### HTTP response details
|
|
1350
|
-
| Status code | Description | Response headers |
|
|
1351
|
-
|-------------|-------------|------------------|
|
|
1352
|
-
**200** | Successful response | - |
|
|
1353
|
-
|
|
1354
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1355
|
-
|
|
1356
|
-
# **updateAGroupChannel**
|
|
1357
|
-
> SendbirdGroupChannelDetail updateAGroupChannel()
|
|
1358
|
-
|
|
1359
|
-
## 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
|
|
1360
|
-
|
|
1361
|
-
### Example
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
```typescript
|
|
1365
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1366
|
-
import * as fs from 'fs';
|
|
1367
|
-
|
|
1368
|
-
const configuration = Sendbird.createConfiguration();
|
|
1369
|
-
const apiInstance = new Sendbird.GroupChannelApi(configuration);
|
|
1370
|
-
|
|
1371
|
-
let body:Sendbird.GroupChannelApiUpdateAGroupChannelRequest = {
|
|
1372
|
-
// string
|
|
1373
|
-
channelUrl: "channel_url_example",
|
|
1374
|
-
// string (optional)
|
|
1375
|
-
apiToken: "{{API_TOKEN}}",
|
|
1376
|
-
// UpdateAGroupChannelRequest (optional)
|
|
1377
|
-
updateAGroupChannelRequest: {
|
|
1378
|
-
accessCode: "accessCode_example",
|
|
1379
|
-
coverFile: { data: Buffer.from(fs.readFileSync('/path/to/file', 'utf-8')), name: '/path/to/file' },
|
|
1380
|
-
coverUrl: "coverUrl_example",
|
|
1381
|
-
customType: "customType_example",
|
|
1382
|
-
data: "data_example",
|
|
1383
|
-
isDistinct: true,
|
|
1384
|
-
isPublic: true,
|
|
1385
|
-
isSuper: true,
|
|
1386
|
-
name: "name_example",
|
|
1387
|
-
operatorIds: [
|
|
1388
|
-
"operatorIds_example",
|
|
1389
|
-
],
|
|
1390
|
-
},
|
|
1391
|
-
};
|
|
1392
|
-
|
|
1393
|
-
apiInstance.updateAGroupChannel(body).then((data:any) => {
|
|
1394
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1395
|
-
}).catch((error:any) => console.error(error));
|
|
1396
|
-
```
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
### Parameters
|
|
1400
|
-
|
|
1401
|
-
Name | Type | Description | Notes
|
|
1402
|
-
------------- | ------------- | ------------- | -------------
|
|
1403
|
-
**updateAGroupChannelRequest** | **UpdateAGroupChannelRequest**| |
|
|
1404
|
-
**channelUrl** | [**string**] | | defaults to undefined
|
|
1405
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
### Return type
|
|
1409
|
-
|
|
1410
|
-
**SendbirdGroupChannelDetail**
|
|
1411
|
-
|
|
1412
|
-
### Authorization
|
|
1413
|
-
|
|
1414
|
-
No authorization required
|
|
1415
|
-
|
|
1416
|
-
### HTTP request headers
|
|
1417
|
-
|
|
1418
|
-
- **Content-Type**: application/json
|
|
1419
|
-
- **Accept**: application/json
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
### HTTP response details
|
|
1423
|
-
| Status code | Description | Response headers |
|
|
1424
|
-
|-------------|-------------|------------------|
|
|
1425
|
-
**200** | Successful response | - |
|
|
1426
|
-
|
|
1427
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1428
|
-
|
|
1429
|
-
|