@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/apis/GroupChannelApi.ts
DELETED
|
@@ -1,1865 +0,0 @@
|
|
|
1
|
-
// TODO: better import syntax?
|
|
2
|
-
import {BaseAPIRequestFactory, RequiredError} from './baseapi';
|
|
3
|
-
import {Configuration} from '../configuration';
|
|
4
|
-
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
|
|
5
|
-
import * as FormData from "form-data";
|
|
6
|
-
import { URLSearchParams } from 'url';
|
|
7
|
-
import {ObjectSerializer} from '../models/ObjectSerializer';
|
|
8
|
-
import {ApiException} from './exception';
|
|
9
|
-
import {canConsumeForm, isCodeInRange} from '../util';
|
|
10
|
-
import {SecurityAuthentication} from '../auth/auth';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
import { AcceptAnInvitationRequest } from '../models/AcceptAnInvitationRequest';
|
|
14
|
-
import { CheckIfMemberResponse } from '../models/CheckIfMemberResponse';
|
|
15
|
-
import { CreateAGroupChannelRequest } from '../models/CreateAGroupChannelRequest';
|
|
16
|
-
import { GetAGroupChannelResponse } from '../models/GetAGroupChannelResponse';
|
|
17
|
-
import { GroupChannelListMembersResponse } from '../models/GroupChannelListMembersResponse';
|
|
18
|
-
import { GroupChatListChannelsResponse } from '../models/GroupChatListChannelsResponse';
|
|
19
|
-
import { HideAChannelRequest } from '../models/HideAChannelRequest';
|
|
20
|
-
import { InviteAsMembersRequest } from '../models/InviteAsMembersRequest';
|
|
21
|
-
import { InviteAsMembersResponse } from '../models/InviteAsMembersResponse';
|
|
22
|
-
import { JoinAChannelRequest } from '../models/JoinAChannelRequest';
|
|
23
|
-
import { LeaveAChannelRequest } from '../models/LeaveAChannelRequest';
|
|
24
|
-
import { ListOperatorsResponse } from '../models/ListOperatorsResponse';
|
|
25
|
-
import { RegisterOperatorsToAGroupChannelRequest } from '../models/RegisterOperatorsToAGroupChannelRequest';
|
|
26
|
-
import { ResetChatHistoryRequest } from '../models/ResetChatHistoryRequest';
|
|
27
|
-
import { ResetChatHistoryResponse } from '../models/ResetChatHistoryResponse';
|
|
28
|
-
import { SendbirdGroupChannelDetail } from '../models/SendbirdGroupChannelDetail';
|
|
29
|
-
import { StartTypingIndicatorsRequest } from '../models/StartTypingIndicatorsRequest';
|
|
30
|
-
import { UpdateAGroupChannelRequest } from '../models/UpdateAGroupChannelRequest';
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* no description
|
|
34
|
-
*/
|
|
35
|
-
export class GroupChannelApiRequestFactory extends BaseAPIRequestFactory {
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* ## 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)
|
|
39
|
-
* Accept an invitation
|
|
40
|
-
* @param channelUrl (Required)
|
|
41
|
-
* @param apiToken
|
|
42
|
-
* @param acceptAnInvitationRequest
|
|
43
|
-
*/
|
|
44
|
-
public async acceptAnInvitation(channelUrl: string, apiToken?: string, acceptAnInvitationRequest?: AcceptAnInvitationRequest, _options?: Configuration): Promise<RequestContext> {
|
|
45
|
-
let _config = _options || this.configuration;
|
|
46
|
-
|
|
47
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
48
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
49
|
-
throw new RequiredError("GroupChannelApi", "acceptAnInvitation", "channelUrl");
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
// Path Params
|
|
56
|
-
const localVarPath = '/v3/group_channels/{channel_url}/accept'
|
|
57
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
58
|
-
|
|
59
|
-
// Make Request Context
|
|
60
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
|
|
61
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
62
|
-
|
|
63
|
-
// Header Params
|
|
64
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
// Body Params
|
|
68
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
69
|
-
"application/json"
|
|
70
|
-
]);
|
|
71
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
72
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
73
|
-
ObjectSerializer.serialize(acceptAnInvitationRequest, "AcceptAnInvitationRequest", ""),
|
|
74
|
-
contentType
|
|
75
|
-
);
|
|
76
|
-
requestContext.setBody(serializedBody);
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
80
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
81
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return requestContext;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* ## 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.
|
|
89
|
-
* Cancel the registration of operators
|
|
90
|
-
* @param channelUrl (Required)
|
|
91
|
-
* @param operatorIds Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2.
|
|
92
|
-
* @param deleteAll
|
|
93
|
-
* @param apiToken
|
|
94
|
-
*/
|
|
95
|
-
public async cancelTheRegistrationOfOperators(channelUrl: string, operatorIds: string, deleteAll?: boolean, apiToken?: string, _options?: Configuration): Promise<RequestContext> {
|
|
96
|
-
let _config = _options || this.configuration;
|
|
97
|
-
|
|
98
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
99
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
100
|
-
throw new RequiredError("GroupChannelApi", "cancelTheRegistrationOfOperators", "channelUrl");
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
// verify required parameter 'operatorIds' is not null or undefined
|
|
105
|
-
if (operatorIds === null || operatorIds === undefined) {
|
|
106
|
-
throw new RequiredError("GroupChannelApi", "cancelTheRegistrationOfOperators", "operatorIds");
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
// Path Params
|
|
113
|
-
const localVarPath = '/v3/group_channels/{channel_url}/operators'
|
|
114
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
115
|
-
|
|
116
|
-
// Make Request Context
|
|
117
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
|
|
118
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
119
|
-
|
|
120
|
-
// Query Params
|
|
121
|
-
if (operatorIds !== undefined) {
|
|
122
|
-
requestContext.setQueryParam("operator_ids", ObjectSerializer.serialize(operatorIds, "string", ""));
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// Query Params
|
|
126
|
-
if (deleteAll !== undefined) {
|
|
127
|
-
requestContext.setQueryParam("delete_all", ObjectSerializer.serialize(deleteAll, "boolean", ""));
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
// Header Params
|
|
131
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
136
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
137
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
return requestContext;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* ## 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)
|
|
145
|
-
* Check if member
|
|
146
|
-
* @param channelUrl (Required)
|
|
147
|
-
* @param userId (Required)
|
|
148
|
-
* @param apiToken
|
|
149
|
-
*/
|
|
150
|
-
public async checkIfMember(channelUrl: string, userId: string, apiToken?: string, _options?: Configuration): Promise<RequestContext> {
|
|
151
|
-
let _config = _options || this.configuration;
|
|
152
|
-
|
|
153
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
154
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
155
|
-
throw new RequiredError("GroupChannelApi", "checkIfMember", "channelUrl");
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
// verify required parameter 'userId' is not null or undefined
|
|
160
|
-
if (userId === null || userId === undefined) {
|
|
161
|
-
throw new RequiredError("GroupChannelApi", "checkIfMember", "userId");
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
// Path Params
|
|
167
|
-
const localVarPath = '/v3/group_channels/{channel_url}/members/{user_id}'
|
|
168
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)))
|
|
169
|
-
.replace('{' + 'user_id' + '}', encodeURIComponent(String(userId)));
|
|
170
|
-
|
|
171
|
-
// Make Request Context
|
|
172
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
173
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
174
|
-
|
|
175
|
-
// Header Params
|
|
176
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
181
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
182
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return requestContext;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* ## 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
|
|
190
|
-
* Create a group channel
|
|
191
|
-
* @param apiToken
|
|
192
|
-
* @param createAGroupChannelRequest
|
|
193
|
-
*/
|
|
194
|
-
public async createAGroupChannel(apiToken?: string, createAGroupChannelRequest?: CreateAGroupChannelRequest, _options?: Configuration): Promise<RequestContext> {
|
|
195
|
-
let _config = _options || this.configuration;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
// Path Params
|
|
200
|
-
const localVarPath = '/v3/group_channels';
|
|
201
|
-
|
|
202
|
-
// Make Request Context
|
|
203
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
|
|
204
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
205
|
-
|
|
206
|
-
// Header Params
|
|
207
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
// Body Params
|
|
211
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
212
|
-
"application/json"
|
|
213
|
-
]);
|
|
214
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
215
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
216
|
-
ObjectSerializer.serialize(createAGroupChannelRequest, "CreateAGroupChannelRequest", ""),
|
|
217
|
-
contentType
|
|
218
|
-
);
|
|
219
|
-
requestContext.setBody(serializedBody);
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
223
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
224
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
return requestContext;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* ## 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)
|
|
232
|
-
* Delete a group channel
|
|
233
|
-
* @param channelUrl
|
|
234
|
-
* @param apiToken
|
|
235
|
-
*/
|
|
236
|
-
public async deleteAGroupChannel(channelUrl: string, apiToken?: string, _options?: Configuration): Promise<RequestContext> {
|
|
237
|
-
let _config = _options || this.configuration;
|
|
238
|
-
|
|
239
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
240
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
241
|
-
throw new RequiredError("GroupChannelApi", "deleteAGroupChannel", "channelUrl");
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
// Path Params
|
|
247
|
-
const localVarPath = '/v3/group_channels/{channel_url}'
|
|
248
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
249
|
-
|
|
250
|
-
// Make Request Context
|
|
251
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
|
|
252
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
253
|
-
|
|
254
|
-
// Header Params
|
|
255
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
260
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
261
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
return requestContext;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
/**
|
|
268
|
-
* ## 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.
|
|
269
|
-
* Get a group channel
|
|
270
|
-
* @param channelUrl
|
|
271
|
-
* @param showDeliveryReceipt
|
|
272
|
-
* @param showReadReceipt
|
|
273
|
-
* @param showMember
|
|
274
|
-
* @param memberActiveMode Restricts the member list to members who are activated or deactivated in the channel. This parameter is only effective if the parameter show_member is true. Acceptable values are all, activated, and deactivated. (default: all)
|
|
275
|
-
* @param userId
|
|
276
|
-
* @param apiToken
|
|
277
|
-
*/
|
|
278
|
-
public async getAGroupChannel(channelUrl: string, showDeliveryReceipt?: boolean, showReadReceipt?: boolean, showMember?: boolean, memberActiveMode?: 'all' | 'activated' | 'deactivated', userId?: string, apiToken?: string, _options?: Configuration): Promise<RequestContext> {
|
|
279
|
-
let _config = _options || this.configuration;
|
|
280
|
-
|
|
281
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
282
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
283
|
-
throw new RequiredError("GroupChannelApi", "getAGroupChannel", "channelUrl");
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
// Path Params
|
|
294
|
-
const localVarPath = '/v3/group_channels/{channel_url}'
|
|
295
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
296
|
-
|
|
297
|
-
// Make Request Context
|
|
298
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
299
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
300
|
-
|
|
301
|
-
// Query Params
|
|
302
|
-
if (showDeliveryReceipt !== undefined) {
|
|
303
|
-
requestContext.setQueryParam("show_delivery_receipt", ObjectSerializer.serialize(showDeliveryReceipt, "boolean", ""));
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
// Query Params
|
|
307
|
-
if (showReadReceipt !== undefined) {
|
|
308
|
-
requestContext.setQueryParam("show_read_receipt", ObjectSerializer.serialize(showReadReceipt, "boolean", ""));
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
// Query Params
|
|
312
|
-
if (showMember !== undefined) {
|
|
313
|
-
requestContext.setQueryParam("show_member", ObjectSerializer.serialize(showMember, "boolean", ""));
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
// Query Params
|
|
317
|
-
if (memberActiveMode !== undefined) {
|
|
318
|
-
requestContext.setQueryParam("member_active_mode", ObjectSerializer.serialize(memberActiveMode, "'all' | 'activated' | 'deactivated'", ""));
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
// Query Params
|
|
322
|
-
if (userId !== undefined) {
|
|
323
|
-
requestContext.setQueryParam("user_id", ObjectSerializer.serialize(userId, "string", ""));
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
// Header Params
|
|
327
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
332
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
333
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
return requestContext;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* ## 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)
|
|
341
|
-
* Hide a channel
|
|
342
|
-
* @param channelUrl (Required)
|
|
343
|
-
* @param apiToken
|
|
344
|
-
* @param hideAChannelRequest
|
|
345
|
-
*/
|
|
346
|
-
public async hideAChannel(channelUrl: string, apiToken?: string, hideAChannelRequest?: HideAChannelRequest, _options?: Configuration): Promise<RequestContext> {
|
|
347
|
-
let _config = _options || this.configuration;
|
|
348
|
-
|
|
349
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
350
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
351
|
-
throw new RequiredError("GroupChannelApi", "hideAChannel", "channelUrl");
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
// Path Params
|
|
358
|
-
const localVarPath = '/v3/group_channels/{channel_url}/hide'
|
|
359
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
360
|
-
|
|
361
|
-
// Make Request Context
|
|
362
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
|
|
363
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
364
|
-
|
|
365
|
-
// Header Params
|
|
366
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
// Body Params
|
|
370
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
371
|
-
"application/json"
|
|
372
|
-
]);
|
|
373
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
374
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
375
|
-
ObjectSerializer.serialize(hideAChannelRequest, "HideAChannelRequest", ""),
|
|
376
|
-
contentType
|
|
377
|
-
);
|
|
378
|
-
requestContext.setBody(serializedBody);
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
382
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
383
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
return requestContext;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
/**
|
|
390
|
-
* ## 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)
|
|
391
|
-
* Invite as members
|
|
392
|
-
* @param channelUrl (Required)
|
|
393
|
-
* @param apiToken
|
|
394
|
-
* @param inviteAsMembersRequest
|
|
395
|
-
*/
|
|
396
|
-
public async inviteAsMembers(channelUrl: string, apiToken?: string, inviteAsMembersRequest?: InviteAsMembersRequest, _options?: Configuration): Promise<RequestContext> {
|
|
397
|
-
let _config = _options || this.configuration;
|
|
398
|
-
|
|
399
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
400
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
401
|
-
throw new RequiredError("GroupChannelApi", "inviteAsMembers", "channelUrl");
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
// Path Params
|
|
408
|
-
const localVarPath = '/v3/group_channels/{channel_url}/invite'
|
|
409
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
410
|
-
|
|
411
|
-
// Make Request Context
|
|
412
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
|
|
413
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
414
|
-
|
|
415
|
-
// Header Params
|
|
416
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
// Body Params
|
|
420
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
421
|
-
"application/json"
|
|
422
|
-
]);
|
|
423
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
424
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
425
|
-
ObjectSerializer.serialize(inviteAsMembersRequest, "InviteAsMembersRequest", ""),
|
|
426
|
-
contentType
|
|
427
|
-
);
|
|
428
|
-
requestContext.setBody(serializedBody);
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
432
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
433
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
return requestContext;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* ## 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)
|
|
441
|
-
* Join a channel
|
|
442
|
-
* @param channelUrl (Required)
|
|
443
|
-
* @param apiToken
|
|
444
|
-
* @param joinAChannelRequest
|
|
445
|
-
*/
|
|
446
|
-
public async joinAChannel(channelUrl: string, apiToken?: string, joinAChannelRequest?: JoinAChannelRequest, _options?: Configuration): Promise<RequestContext> {
|
|
447
|
-
let _config = _options || this.configuration;
|
|
448
|
-
|
|
449
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
450
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
451
|
-
throw new RequiredError("GroupChannelApi", "joinAChannel", "channelUrl");
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
// Path Params
|
|
458
|
-
const localVarPath = '/v3/group_channels/{channel_url}/join'
|
|
459
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
460
|
-
|
|
461
|
-
// Make Request Context
|
|
462
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
|
|
463
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
464
|
-
|
|
465
|
-
// Header Params
|
|
466
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
// Body Params
|
|
470
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
471
|
-
"application/json"
|
|
472
|
-
]);
|
|
473
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
474
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
475
|
-
ObjectSerializer.serialize(joinAChannelRequest, "JoinAChannelRequest", ""),
|
|
476
|
-
contentType
|
|
477
|
-
);
|
|
478
|
-
requestContext.setBody(serializedBody);
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
482
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
483
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
return requestContext;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* ## 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 ----------------------------
|
|
491
|
-
* Leave a channel
|
|
492
|
-
* @param channelUrl
|
|
493
|
-
* @param apiToken
|
|
494
|
-
* @param leaveAChannelRequest
|
|
495
|
-
*/
|
|
496
|
-
public async leaveAChannel(channelUrl: string, apiToken?: string, leaveAChannelRequest?: LeaveAChannelRequest, _options?: Configuration): Promise<RequestContext> {
|
|
497
|
-
let _config = _options || this.configuration;
|
|
498
|
-
|
|
499
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
500
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
501
|
-
throw new RequiredError("GroupChannelApi", "leaveAChannel", "channelUrl");
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
// Path Params
|
|
508
|
-
const localVarPath = '/v3/group_channels/{channel_url}/leave'
|
|
509
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
510
|
-
|
|
511
|
-
// Make Request Context
|
|
512
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
|
|
513
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
514
|
-
|
|
515
|
-
// Header Params
|
|
516
|
-
requestContext.setHeaderParam("Api-Token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
// Body Params
|
|
520
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
521
|
-
"application/json"
|
|
522
|
-
]);
|
|
523
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
524
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
525
|
-
ObjectSerializer.serialize(leaveAChannelRequest, "LeaveAChannelRequest", ""),
|
|
526
|
-
contentType
|
|
527
|
-
);
|
|
528
|
-
requestContext.setBody(serializedBody);
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
532
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
533
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
return requestContext;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* ## 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
|
|
541
|
-
* List channels
|
|
542
|
-
* @param apiToken
|
|
543
|
-
* @param token Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0.
|
|
544
|
-
* @param limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10)
|
|
545
|
-
* @param distinctMode
|
|
546
|
-
* @param publicMode
|
|
547
|
-
* @param superMode
|
|
548
|
-
* @param createdAfter Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format.
|
|
549
|
-
* @param createdBefore Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format.
|
|
550
|
-
* @param showEmpty
|
|
551
|
-
* @param showMember
|
|
552
|
-
* @param showDeliveryReceipt
|
|
553
|
-
* @param showReadReceipt
|
|
554
|
-
* @param showMetadata
|
|
555
|
-
* @param showFrozen
|
|
556
|
-
* @param order
|
|
557
|
-
* @param metadataOrderKey Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key.
|
|
558
|
-
* @param customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type.
|
|
559
|
-
* @param customTypeStartswith Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended.
|
|
560
|
-
* @param channelUrls Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended.
|
|
561
|
-
* @param name Specifies one or more group channel names.
|
|
562
|
-
* @param nameContains Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended.
|
|
563
|
-
* @param nameStartswith Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended.
|
|
564
|
-
* @param membersExactlyIn Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended.
|
|
565
|
-
* @param membersIncludeIn Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended.
|
|
566
|
-
* @param queryType Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND)
|
|
567
|
-
* @param membersNickname Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended.
|
|
568
|
-
* @param membersNicknameContains Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues.
|
|
569
|
-
* @param metadataKey Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified.
|
|
570
|
-
* @param metadataValues Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified.
|
|
571
|
-
* @param metadataValueStartswith Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified.
|
|
572
|
-
* @param metacounterKey Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified.
|
|
573
|
-
* @param metacounterValues Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified.
|
|
574
|
-
* @param metacounterValueGt Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is greater than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
|
|
575
|
-
* @param metacounterValueGte Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is greater than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
|
|
576
|
-
* @param metacounterValueLt Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
|
|
577
|
-
* @param metacounterValueLte Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified.
|
|
578
|
-
* @param includeSortedMetaarrayInLastMessage Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response.
|
|
579
|
-
*/
|
|
580
|
-
public async listChannels(apiToken: string, token?: string, limit?: number, distinctMode?: 'all' | 'distinct' | 'nondistinct', publicMode?: 'all' | 'private' | 'public', superMode?: 'all' | 'super' | 'nonsuper', createdAfter?: number, createdBefore?: number, showEmpty?: boolean, showMember?: boolean, showDeliveryReceipt?: boolean, showReadReceipt?: boolean, showMetadata?: boolean, showFrozen?: boolean, order?: 'chronological' | 'latest_last_message' | 'channel_name_alphabetical' | 'metadata_value_alphabetical', metadataOrderKey?: string, customTypes?: string, customTypeStartswith?: string, channelUrls?: string, name?: string, nameContains?: string, nameStartswith?: string, membersExactlyIn?: string, membersIncludeIn?: string, queryType?: string, membersNickname?: string, membersNicknameContains?: string, metadataKey?: string, metadataValues?: string, metadataValueStartswith?: string, metacounterKey?: string, metacounterValues?: string, metacounterValueGt?: string, metacounterValueGte?: string, metacounterValueLt?: string, metacounterValueLte?: string, includeSortedMetaarrayInLastMessage?: boolean, _options?: Configuration): Promise<RequestContext> {
|
|
581
|
-
let _config = _options || this.configuration;
|
|
582
|
-
|
|
583
|
-
// verify required parameter 'apiToken' is not null or undefined
|
|
584
|
-
if (apiToken === null || apiToken === undefined) {
|
|
585
|
-
throw new RequiredError("GroupChannelApi", "listChannels", "apiToken");
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
// Path Params
|
|
626
|
-
const localVarPath = '/v3/group_channels';
|
|
627
|
-
|
|
628
|
-
// Make Request Context
|
|
629
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
630
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
631
|
-
|
|
632
|
-
// Query Params
|
|
633
|
-
if (token !== undefined) {
|
|
634
|
-
requestContext.setQueryParam("token", ObjectSerializer.serialize(token, "string", ""));
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
// Query Params
|
|
638
|
-
if (limit !== undefined) {
|
|
639
|
-
requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", ""));
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
// Query Params
|
|
643
|
-
if (distinctMode !== undefined) {
|
|
644
|
-
requestContext.setQueryParam("distinct_mode", ObjectSerializer.serialize(distinctMode, "'all' | 'distinct' | 'nondistinct'", ""));
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
// Query Params
|
|
648
|
-
if (publicMode !== undefined) {
|
|
649
|
-
requestContext.setQueryParam("public_mode", ObjectSerializer.serialize(publicMode, "'all' | 'private' | 'public'", ""));
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
// Query Params
|
|
653
|
-
if (superMode !== undefined) {
|
|
654
|
-
requestContext.setQueryParam("super_mode", ObjectSerializer.serialize(superMode, "'all' | 'super' | 'nonsuper'", ""));
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
// Query Params
|
|
658
|
-
if (createdAfter !== undefined) {
|
|
659
|
-
requestContext.setQueryParam("created_after", ObjectSerializer.serialize(createdAfter, "number", "int64"));
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
// Query Params
|
|
663
|
-
if (createdBefore !== undefined) {
|
|
664
|
-
requestContext.setQueryParam("created_before", ObjectSerializer.serialize(createdBefore, "number", "int64"));
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
// Query Params
|
|
668
|
-
if (showEmpty !== undefined) {
|
|
669
|
-
requestContext.setQueryParam("show_empty", ObjectSerializer.serialize(showEmpty, "boolean", ""));
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
// Query Params
|
|
673
|
-
if (showMember !== undefined) {
|
|
674
|
-
requestContext.setQueryParam("show_member", ObjectSerializer.serialize(showMember, "boolean", ""));
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
// Query Params
|
|
678
|
-
if (showDeliveryReceipt !== undefined) {
|
|
679
|
-
requestContext.setQueryParam("show_delivery_receipt", ObjectSerializer.serialize(showDeliveryReceipt, "boolean", ""));
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
// Query Params
|
|
683
|
-
if (showReadReceipt !== undefined) {
|
|
684
|
-
requestContext.setQueryParam("show_read_receipt", ObjectSerializer.serialize(showReadReceipt, "boolean", ""));
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
// Query Params
|
|
688
|
-
if (showMetadata !== undefined) {
|
|
689
|
-
requestContext.setQueryParam("show_metadata", ObjectSerializer.serialize(showMetadata, "boolean", ""));
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
// Query Params
|
|
693
|
-
if (showFrozen !== undefined) {
|
|
694
|
-
requestContext.setQueryParam("show_frozen", ObjectSerializer.serialize(showFrozen, "boolean", ""));
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
// Query Params
|
|
698
|
-
if (order !== undefined) {
|
|
699
|
-
requestContext.setQueryParam("order", ObjectSerializer.serialize(order, "'chronological' | 'latest_last_message' | 'channel_name_alphabetical' | 'metadata_value_alphabetical'", ""));
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
// Query Params
|
|
703
|
-
if (metadataOrderKey !== undefined) {
|
|
704
|
-
requestContext.setQueryParam("metadata_order_key", ObjectSerializer.serialize(metadataOrderKey, "string", ""));
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
// Query Params
|
|
708
|
-
if (customTypes !== undefined) {
|
|
709
|
-
requestContext.setQueryParam("custom_types", ObjectSerializer.serialize(customTypes, "string", ""));
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
// Query Params
|
|
713
|
-
if (customTypeStartswith !== undefined) {
|
|
714
|
-
requestContext.setQueryParam("custom_type_startswith", ObjectSerializer.serialize(customTypeStartswith, "string", ""));
|
|
715
|
-
}
|
|
716
|
-
|
|
717
|
-
// Query Params
|
|
718
|
-
if (channelUrls !== undefined) {
|
|
719
|
-
requestContext.setQueryParam("channel_urls", ObjectSerializer.serialize(channelUrls, "string", ""));
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
// Query Params
|
|
723
|
-
if (name !== undefined) {
|
|
724
|
-
requestContext.setQueryParam("name", ObjectSerializer.serialize(name, "string", ""));
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
// Query Params
|
|
728
|
-
if (nameContains !== undefined) {
|
|
729
|
-
requestContext.setQueryParam("name_contains", ObjectSerializer.serialize(nameContains, "string", ""));
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
// Query Params
|
|
733
|
-
if (nameStartswith !== undefined) {
|
|
734
|
-
requestContext.setQueryParam("name_startswith", ObjectSerializer.serialize(nameStartswith, "string", ""));
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
// Query Params
|
|
738
|
-
if (membersExactlyIn !== undefined) {
|
|
739
|
-
requestContext.setQueryParam("members_exactly_in", ObjectSerializer.serialize(membersExactlyIn, "string", ""));
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
// Query Params
|
|
743
|
-
if (membersIncludeIn !== undefined) {
|
|
744
|
-
requestContext.setQueryParam("members_include_in", ObjectSerializer.serialize(membersIncludeIn, "string", ""));
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
// Query Params
|
|
748
|
-
if (queryType !== undefined) {
|
|
749
|
-
requestContext.setQueryParam("query_type", ObjectSerializer.serialize(queryType, "string", ""));
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
// Query Params
|
|
753
|
-
if (membersNickname !== undefined) {
|
|
754
|
-
requestContext.setQueryParam("members_nickname", ObjectSerializer.serialize(membersNickname, "string", ""));
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
// Query Params
|
|
758
|
-
if (membersNicknameContains !== undefined) {
|
|
759
|
-
requestContext.setQueryParam("members_nickname_contains", ObjectSerializer.serialize(membersNicknameContains, "string", ""));
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
// Query Params
|
|
763
|
-
if (metadataKey !== undefined) {
|
|
764
|
-
requestContext.setQueryParam("metadata_key", ObjectSerializer.serialize(metadataKey, "string", ""));
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
// Query Params
|
|
768
|
-
if (metadataValues !== undefined) {
|
|
769
|
-
requestContext.setQueryParam("metadata_values", ObjectSerializer.serialize(metadataValues, "string", ""));
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
// Query Params
|
|
773
|
-
if (metadataValueStartswith !== undefined) {
|
|
774
|
-
requestContext.setQueryParam("metadata_value_startswith", ObjectSerializer.serialize(metadataValueStartswith, "string", ""));
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
// Query Params
|
|
778
|
-
if (metacounterKey !== undefined) {
|
|
779
|
-
requestContext.setQueryParam("metacounter_key", ObjectSerializer.serialize(metacounterKey, "string", ""));
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
// Query Params
|
|
783
|
-
if (metacounterValues !== undefined) {
|
|
784
|
-
requestContext.setQueryParam("metacounter_values", ObjectSerializer.serialize(metacounterValues, "string", ""));
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
// Query Params
|
|
788
|
-
if (metacounterValueGt !== undefined) {
|
|
789
|
-
requestContext.setQueryParam("metacounter_value_gt", ObjectSerializer.serialize(metacounterValueGt, "string", ""));
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
// Query Params
|
|
793
|
-
if (metacounterValueGte !== undefined) {
|
|
794
|
-
requestContext.setQueryParam("metacounter_value_gte", ObjectSerializer.serialize(metacounterValueGte, "string", ""));
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
// Query Params
|
|
798
|
-
if (metacounterValueLt !== undefined) {
|
|
799
|
-
requestContext.setQueryParam("metacounter_value_lt", ObjectSerializer.serialize(metacounterValueLt, "string", ""));
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
// Query Params
|
|
803
|
-
if (metacounterValueLte !== undefined) {
|
|
804
|
-
requestContext.setQueryParam("metacounter_value_lte", ObjectSerializer.serialize(metacounterValueLte, "string", ""));
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
// Query Params
|
|
808
|
-
if (includeSortedMetaarrayInLastMessage !== undefined) {
|
|
809
|
-
requestContext.setQueryParam("include_sorted_metaarray_in_last_message", ObjectSerializer.serialize(includeSortedMetaarrayInLastMessage, "boolean", ""));
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
// Header Params
|
|
813
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
818
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
819
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
return requestContext;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
/**
|
|
826
|
-
* ## 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.
|
|
827
|
-
* List members
|
|
828
|
-
* @param channelUrl (Required)
|
|
829
|
-
* @param token
|
|
830
|
-
* @param limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10)
|
|
831
|
-
* @param userId 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.
|
|
832
|
-
* @param showDeliveryReceipt
|
|
833
|
-
* @param showReadReceipt
|
|
834
|
-
* @param showMemberIsMuted
|
|
835
|
-
* @param order 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.
|
|
836
|
-
* @param operatorFilter 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.
|
|
837
|
-
* @param memberStateFilter Restricts the search scope to retrieve members based on if they have accepted an invitation or if they were invited by a friend. Acceptable values are `invited_only`, `joined_only`, `invited_by_friend`, `invited_by_non_friend`, and `all`. (Default: `all`)
|
|
838
|
-
* @param mutedMemberFilter Restricts the search scope to retrieve members who are muted or unmuted in the channel. Acceptable values are `all`, `muted`, and `unmuted`. (Default: `all`)
|
|
839
|
-
* @param memberActiveModeFilter Restricts the search scope to retrieve members who are activated or deactivated in the channel. Acceptable values are `all`, `activated`, and `deactivated`. (default: `activated`)
|
|
840
|
-
* @param nicknameStartswith Searches for members whose nicknames start with the specified value. Urlencoding the value is recommended.
|
|
841
|
-
* @param includePushPreference 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`)
|
|
842
|
-
* @param apiToken
|
|
843
|
-
*/
|
|
844
|
-
public async listMembers(channelUrl: string, token?: string, limit?: number, userId?: string, showDeliveryReceipt?: boolean, showReadReceipt?: boolean, showMemberIsMuted?: boolean, order?: 'member_nickname_alphabetical' | 'operator_then_member_alphabetical', operatorFilter?: 'all' | 'operator' | 'nonoperator', memberStateFilter?: 'all' | 'invited_only' | 'joined_only' | 'invited_by_friend' | 'invited_by_non_friend', mutedMemberFilter?: 'all' | 'muted' | 'unmuted', memberActiveModeFilter?: 'activated' | 'deactivated', nicknameStartswith?: string, includePushPreference?: boolean, apiToken?: string, _options?: Configuration): Promise<RequestContext> {
|
|
845
|
-
let _config = _options || this.configuration;
|
|
846
|
-
|
|
847
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
848
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
849
|
-
throw new RequiredError("GroupChannelApi", "listMembers", "channelUrl");
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
// Path Params
|
|
868
|
-
const localVarPath = '/v3/group_channels/{channel_url}/members'
|
|
869
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
870
|
-
|
|
871
|
-
// Make Request Context
|
|
872
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
873
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
874
|
-
|
|
875
|
-
// Query Params
|
|
876
|
-
if (token !== undefined) {
|
|
877
|
-
requestContext.setQueryParam("token", ObjectSerializer.serialize(token, "string", ""));
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
// Query Params
|
|
881
|
-
if (limit !== undefined) {
|
|
882
|
-
requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", ""));
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
// Query Params
|
|
886
|
-
if (userId !== undefined) {
|
|
887
|
-
requestContext.setQueryParam("user_id", ObjectSerializer.serialize(userId, "string", ""));
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
// Query Params
|
|
891
|
-
if (showDeliveryReceipt !== undefined) {
|
|
892
|
-
requestContext.setQueryParam("show_delivery_receipt", ObjectSerializer.serialize(showDeliveryReceipt, "boolean", ""));
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
// Query Params
|
|
896
|
-
if (showReadReceipt !== undefined) {
|
|
897
|
-
requestContext.setQueryParam("show_read_receipt", ObjectSerializer.serialize(showReadReceipt, "boolean", ""));
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
// Query Params
|
|
901
|
-
if (showMemberIsMuted !== undefined) {
|
|
902
|
-
requestContext.setQueryParam("show_member_is_muted", ObjectSerializer.serialize(showMemberIsMuted, "boolean", ""));
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
// Query Params
|
|
906
|
-
if (order !== undefined) {
|
|
907
|
-
requestContext.setQueryParam("order", ObjectSerializer.serialize(order, "'member_nickname_alphabetical' | 'operator_then_member_alphabetical'", ""));
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
// Query Params
|
|
911
|
-
if (operatorFilter !== undefined) {
|
|
912
|
-
requestContext.setQueryParam("operator_filter", ObjectSerializer.serialize(operatorFilter, "'all' | 'operator' | 'nonoperator'", ""));
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
// Query Params
|
|
916
|
-
if (memberStateFilter !== undefined) {
|
|
917
|
-
requestContext.setQueryParam("member_state_filter", ObjectSerializer.serialize(memberStateFilter, "'all' | 'invited_only' | 'joined_only' | 'invited_by_friend' | 'invited_by_non_friend'", ""));
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
// Query Params
|
|
921
|
-
if (mutedMemberFilter !== undefined) {
|
|
922
|
-
requestContext.setQueryParam("muted_member_filter", ObjectSerializer.serialize(mutedMemberFilter, "'all' | 'muted' | 'unmuted'", ""));
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
// Query Params
|
|
926
|
-
if (memberActiveModeFilter !== undefined) {
|
|
927
|
-
requestContext.setQueryParam("member_active_mode_filter", ObjectSerializer.serialize(memberActiveModeFilter, "'activated' | 'deactivated'", ""));
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
// Query Params
|
|
931
|
-
if (nicknameStartswith !== undefined) {
|
|
932
|
-
requestContext.setQueryParam("nickname_startswith", ObjectSerializer.serialize(nicknameStartswith, "string", ""));
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
// Query Params
|
|
936
|
-
if (includePushPreference !== undefined) {
|
|
937
|
-
requestContext.setQueryParam("include_push_preference", ObjectSerializer.serialize(includePushPreference, "boolean", ""));
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
// Header Params
|
|
941
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
946
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
947
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
return requestContext;
|
|
951
|
-
}
|
|
952
|
-
|
|
953
|
-
/**
|
|
954
|
-
* ## 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.
|
|
955
|
-
* List operators
|
|
956
|
-
* @param channelUrl (Required)
|
|
957
|
-
* @param token
|
|
958
|
-
* @param limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10)
|
|
959
|
-
* @param apiToken
|
|
960
|
-
*/
|
|
961
|
-
public async listOperators(channelUrl: string, token?: string, limit?: number, apiToken?: string, _options?: Configuration): Promise<RequestContext> {
|
|
962
|
-
let _config = _options || this.configuration;
|
|
963
|
-
|
|
964
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
965
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
966
|
-
throw new RequiredError("GroupChannelApi", "listOperators", "channelUrl");
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
// Path Params
|
|
974
|
-
const localVarPath = '/v3/group_channels/{channel_url}/operators'
|
|
975
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
976
|
-
|
|
977
|
-
// Make Request Context
|
|
978
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
979
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
980
|
-
|
|
981
|
-
// Query Params
|
|
982
|
-
if (token !== undefined) {
|
|
983
|
-
requestContext.setQueryParam("token", ObjectSerializer.serialize(token, "string", ""));
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
// Query Params
|
|
987
|
-
if (limit !== undefined) {
|
|
988
|
-
requestContext.setQueryParam("limit", ObjectSerializer.serialize(limit, "number", ""));
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
// Header Params
|
|
992
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
997
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
998
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
return requestContext;
|
|
1002
|
-
}
|
|
1003
|
-
|
|
1004
|
-
/**
|
|
1005
|
-
* ## 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
|
|
1006
|
-
* Register operators to a group channel
|
|
1007
|
-
* @param channelUrl (Required)
|
|
1008
|
-
* @param apiToken
|
|
1009
|
-
* @param registerOperatorsToAGroupChannelRequest
|
|
1010
|
-
*/
|
|
1011
|
-
public async registerOperatorsToAGroupChannel(channelUrl: string, apiToken?: string, registerOperatorsToAGroupChannelRequest?: RegisterOperatorsToAGroupChannelRequest, _options?: Configuration): Promise<RequestContext> {
|
|
1012
|
-
let _config = _options || this.configuration;
|
|
1013
|
-
|
|
1014
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
1015
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
1016
|
-
throw new RequiredError("GroupChannelApi", "registerOperatorsToAGroupChannel", "channelUrl");
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
// Path Params
|
|
1023
|
-
const localVarPath = '/v3/group_channels/{channel_url}/operators'
|
|
1024
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
1025
|
-
|
|
1026
|
-
// Make Request Context
|
|
1027
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
|
|
1028
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
1029
|
-
|
|
1030
|
-
// Header Params
|
|
1031
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
// Body Params
|
|
1035
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
1036
|
-
"application/json"
|
|
1037
|
-
]);
|
|
1038
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1039
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
1040
|
-
ObjectSerializer.serialize(registerOperatorsToAGroupChannelRequest, "RegisterOperatorsToAGroupChannelRequest", ""),
|
|
1041
|
-
contentType
|
|
1042
|
-
);
|
|
1043
|
-
requestContext.setBody(serializedBody);
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
1047
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
1048
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
return requestContext;
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
/**
|
|
1055
|
-
* ## 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
|
|
1056
|
-
* Reset chat history
|
|
1057
|
-
* @param channelUrl (Required)
|
|
1058
|
-
* @param apiToken
|
|
1059
|
-
* @param resetChatHistoryRequest
|
|
1060
|
-
*/
|
|
1061
|
-
public async resetChatHistory(channelUrl: string, apiToken?: string, resetChatHistoryRequest?: ResetChatHistoryRequest, _options?: Configuration): Promise<RequestContext> {
|
|
1062
|
-
let _config = _options || this.configuration;
|
|
1063
|
-
|
|
1064
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
1065
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
1066
|
-
throw new RequiredError("GroupChannelApi", "resetChatHistory", "channelUrl");
|
|
1067
|
-
}
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
// Path Params
|
|
1073
|
-
const localVarPath = '/v3/group_channels/{channel_url}/reset_user_history'
|
|
1074
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
1075
|
-
|
|
1076
|
-
// Make Request Context
|
|
1077
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
|
|
1078
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
1079
|
-
|
|
1080
|
-
// Header Params
|
|
1081
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
// Body Params
|
|
1085
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
1086
|
-
"application/json"
|
|
1087
|
-
]);
|
|
1088
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1089
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
1090
|
-
ObjectSerializer.serialize(resetChatHistoryRequest, "ResetChatHistoryRequest", ""),
|
|
1091
|
-
contentType
|
|
1092
|
-
);
|
|
1093
|
-
requestContext.setBody(serializedBody);
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
1097
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
1098
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
return requestContext;
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
/**
|
|
1105
|
-
* ## 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.
|
|
1106
|
-
* Start typing indicators
|
|
1107
|
-
* @param channelUrl (Required)
|
|
1108
|
-
* @param apiToken
|
|
1109
|
-
* @param startTypingIndicatorsRequest
|
|
1110
|
-
*/
|
|
1111
|
-
public async startTypingIndicators(channelUrl: string, apiToken?: string, startTypingIndicatorsRequest?: StartTypingIndicatorsRequest, _options?: Configuration): Promise<RequestContext> {
|
|
1112
|
-
let _config = _options || this.configuration;
|
|
1113
|
-
|
|
1114
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
1115
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
1116
|
-
throw new RequiredError("GroupChannelApi", "startTypingIndicators", "channelUrl");
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
// Path Params
|
|
1123
|
-
const localVarPath = '/v3/group_channels/{channel_url}/typing'
|
|
1124
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
1125
|
-
|
|
1126
|
-
// Make Request Context
|
|
1127
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
|
|
1128
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
1129
|
-
|
|
1130
|
-
// Header Params
|
|
1131
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
// Body Params
|
|
1135
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
1136
|
-
"application/json"
|
|
1137
|
-
]);
|
|
1138
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1139
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
1140
|
-
ObjectSerializer.serialize(startTypingIndicatorsRequest, "StartTypingIndicatorsRequest", ""),
|
|
1141
|
-
contentType
|
|
1142
|
-
);
|
|
1143
|
-
requestContext.setBody(serializedBody);
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
1147
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
1148
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
return requestContext;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
/**
|
|
1155
|
-
* ## 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.
|
|
1156
|
-
* Stop typing indicators
|
|
1157
|
-
* @param channelUrl (Required)
|
|
1158
|
-
* @param apiToken
|
|
1159
|
-
* @param startTypingIndicatorsRequest
|
|
1160
|
-
*/
|
|
1161
|
-
public async stopTypingIndicators(channelUrl: string, apiToken?: string, startTypingIndicatorsRequest?: StartTypingIndicatorsRequest, _options?: Configuration): Promise<RequestContext> {
|
|
1162
|
-
let _config = _options || this.configuration;
|
|
1163
|
-
|
|
1164
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
1165
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
1166
|
-
throw new RequiredError("GroupChannelApi", "stopTypingIndicators", "channelUrl");
|
|
1167
|
-
}
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
// Path Params
|
|
1173
|
-
const localVarPath = '/v3/group_channels/{channel_url}/typing'
|
|
1174
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
1175
|
-
|
|
1176
|
-
// Make Request Context
|
|
1177
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
|
|
1178
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
1179
|
-
|
|
1180
|
-
// Header Params
|
|
1181
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
// Body Params
|
|
1185
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
1186
|
-
"application/json"
|
|
1187
|
-
]);
|
|
1188
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1189
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
1190
|
-
ObjectSerializer.serialize(startTypingIndicatorsRequest, "StartTypingIndicatorsRequest", ""),
|
|
1191
|
-
contentType
|
|
1192
|
-
);
|
|
1193
|
-
requestContext.setBody(serializedBody);
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
1197
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
1198
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
return requestContext;
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
/**
|
|
1205
|
-
* ## 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.
|
|
1206
|
-
* Unhide a channel
|
|
1207
|
-
* @param channelUrl (Required)
|
|
1208
|
-
* @param userId (Required)
|
|
1209
|
-
* @param shouldUnhideAll
|
|
1210
|
-
* @param apiToken
|
|
1211
|
-
*/
|
|
1212
|
-
public async unhideAChannel(channelUrl: string, userId: string, shouldUnhideAll?: boolean, apiToken?: string, _options?: Configuration): Promise<RequestContext> {
|
|
1213
|
-
let _config = _options || this.configuration;
|
|
1214
|
-
|
|
1215
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
1216
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
1217
|
-
throw new RequiredError("GroupChannelApi", "unhideAChannel", "channelUrl");
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
// verify required parameter 'userId' is not null or undefined
|
|
1222
|
-
if (userId === null || userId === undefined) {
|
|
1223
|
-
throw new RequiredError("GroupChannelApi", "unhideAChannel", "userId");
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
// Path Params
|
|
1230
|
-
const localVarPath = '/v3/group_channels/{channel_url}/hide'
|
|
1231
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
1232
|
-
|
|
1233
|
-
// Make Request Context
|
|
1234
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.DELETE);
|
|
1235
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
1236
|
-
|
|
1237
|
-
// Query Params
|
|
1238
|
-
if (userId !== undefined) {
|
|
1239
|
-
requestContext.setQueryParam("user_id", ObjectSerializer.serialize(userId, "string", ""));
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
// Query Params
|
|
1243
|
-
if (shouldUnhideAll !== undefined) {
|
|
1244
|
-
requestContext.setQueryParam("should_unhide_all", ObjectSerializer.serialize(shouldUnhideAll, "boolean", ""));
|
|
1245
|
-
}
|
|
1246
|
-
|
|
1247
|
-
// Header Params
|
|
1248
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
1253
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
1254
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
return requestContext;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
/**
|
|
1261
|
-
* ## 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
|
|
1262
|
-
* Update a group channel
|
|
1263
|
-
* @param channelUrl
|
|
1264
|
-
* @param apiToken
|
|
1265
|
-
* @param updateAGroupChannelRequest
|
|
1266
|
-
*/
|
|
1267
|
-
public async updateAGroupChannel(channelUrl: string, apiToken?: string, updateAGroupChannelRequest?: UpdateAGroupChannelRequest, _options?: Configuration): Promise<RequestContext> {
|
|
1268
|
-
let _config = _options || this.configuration;
|
|
1269
|
-
|
|
1270
|
-
// verify required parameter 'channelUrl' is not null or undefined
|
|
1271
|
-
if (channelUrl === null || channelUrl === undefined) {
|
|
1272
|
-
throw new RequiredError("GroupChannelApi", "updateAGroupChannel", "channelUrl");
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
// Path Params
|
|
1279
|
-
const localVarPath = '/v3/group_channels/{channel_url}'
|
|
1280
|
-
.replace('{' + 'channel_url' + '}', encodeURIComponent(String(channelUrl)));
|
|
1281
|
-
|
|
1282
|
-
// Make Request Context
|
|
1283
|
-
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.PUT);
|
|
1284
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
1285
|
-
|
|
1286
|
-
// Header Params
|
|
1287
|
-
requestContext.setHeaderParam("api-token", ObjectSerializer.serialize(apiToken, "string", ""));
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
// Body Params
|
|
1291
|
-
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
1292
|
-
"application/json"
|
|
1293
|
-
]);
|
|
1294
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1295
|
-
const serializedBody = ObjectSerializer.stringify(
|
|
1296
|
-
ObjectSerializer.serialize(updateAGroupChannelRequest, "UpdateAGroupChannelRequest", ""),
|
|
1297
|
-
contentType
|
|
1298
|
-
);
|
|
1299
|
-
requestContext.setBody(serializedBody);
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
1303
|
-
if (defaultAuth?.applySecurityAuthentication) {
|
|
1304
|
-
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
return requestContext;
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
}
|
|
1311
|
-
|
|
1312
|
-
export class GroupChannelApiResponseProcessor {
|
|
1313
|
-
|
|
1314
|
-
/**
|
|
1315
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1316
|
-
* to the expected objects
|
|
1317
|
-
*
|
|
1318
|
-
* @params response Response returned by the server for a request to acceptAnInvitation
|
|
1319
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1320
|
-
*/
|
|
1321
|
-
public async acceptAnInvitation(response: ResponseContext): Promise<SendbirdGroupChannelDetail > {
|
|
1322
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1323
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1324
|
-
const body: SendbirdGroupChannelDetail = ObjectSerializer.deserialize(
|
|
1325
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1326
|
-
"SendbirdGroupChannelDetail", ""
|
|
1327
|
-
) as SendbirdGroupChannelDetail;
|
|
1328
|
-
return body;
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1332
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1333
|
-
const body: SendbirdGroupChannelDetail = ObjectSerializer.deserialize(
|
|
1334
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1335
|
-
"SendbirdGroupChannelDetail", ""
|
|
1336
|
-
) as SendbirdGroupChannelDetail;
|
|
1337
|
-
return body;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
/**
|
|
1344
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1345
|
-
* to the expected objects
|
|
1346
|
-
*
|
|
1347
|
-
* @params response Response returned by the server for a request to cancelTheRegistrationOfOperators
|
|
1348
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1349
|
-
*/
|
|
1350
|
-
public async cancelTheRegistrationOfOperators(response: ResponseContext): Promise<any > {
|
|
1351
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1352
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1353
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1354
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1355
|
-
"any", ""
|
|
1356
|
-
) as any;
|
|
1357
|
-
return body;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1361
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1362
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1363
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1364
|
-
"any", ""
|
|
1365
|
-
) as any;
|
|
1366
|
-
return body;
|
|
1367
|
-
}
|
|
1368
|
-
|
|
1369
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
/**
|
|
1373
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1374
|
-
* to the expected objects
|
|
1375
|
-
*
|
|
1376
|
-
* @params response Response returned by the server for a request to checkIfMember
|
|
1377
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1378
|
-
*/
|
|
1379
|
-
public async checkIfMember(response: ResponseContext): Promise<CheckIfMemberResponse > {
|
|
1380
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1381
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1382
|
-
const body: CheckIfMemberResponse = ObjectSerializer.deserialize(
|
|
1383
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1384
|
-
"CheckIfMemberResponse", ""
|
|
1385
|
-
) as CheckIfMemberResponse;
|
|
1386
|
-
return body;
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1390
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1391
|
-
const body: CheckIfMemberResponse = ObjectSerializer.deserialize(
|
|
1392
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1393
|
-
"CheckIfMemberResponse", ""
|
|
1394
|
-
) as CheckIfMemberResponse;
|
|
1395
|
-
return body;
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
/**
|
|
1402
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1403
|
-
* to the expected objects
|
|
1404
|
-
*
|
|
1405
|
-
* @params response Response returned by the server for a request to createAGroupChannel
|
|
1406
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1407
|
-
*/
|
|
1408
|
-
public async createAGroupChannel(response: ResponseContext): Promise<SendbirdGroupChannelDetail > {
|
|
1409
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1410
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1411
|
-
const body: SendbirdGroupChannelDetail = ObjectSerializer.deserialize(
|
|
1412
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1413
|
-
"SendbirdGroupChannelDetail", ""
|
|
1414
|
-
) as SendbirdGroupChannelDetail;
|
|
1415
|
-
return body;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1419
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1420
|
-
const body: SendbirdGroupChannelDetail = ObjectSerializer.deserialize(
|
|
1421
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1422
|
-
"SendbirdGroupChannelDetail", ""
|
|
1423
|
-
) as SendbirdGroupChannelDetail;
|
|
1424
|
-
return body;
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1428
|
-
}
|
|
1429
|
-
|
|
1430
|
-
/**
|
|
1431
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1432
|
-
* to the expected objects
|
|
1433
|
-
*
|
|
1434
|
-
* @params response Response returned by the server for a request to deleteAGroupChannel
|
|
1435
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1436
|
-
*/
|
|
1437
|
-
public async deleteAGroupChannel(response: ResponseContext): Promise<any > {
|
|
1438
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1439
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1440
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1441
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1442
|
-
"any", ""
|
|
1443
|
-
) as any;
|
|
1444
|
-
return body;
|
|
1445
|
-
}
|
|
1446
|
-
|
|
1447
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1448
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1449
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1450
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1451
|
-
"any", ""
|
|
1452
|
-
) as any;
|
|
1453
|
-
return body;
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
/**
|
|
1460
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1461
|
-
* to the expected objects
|
|
1462
|
-
*
|
|
1463
|
-
* @params response Response returned by the server for a request to getAGroupChannel
|
|
1464
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1465
|
-
*/
|
|
1466
|
-
public async getAGroupChannel(response: ResponseContext): Promise<GetAGroupChannelResponse > {
|
|
1467
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1468
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1469
|
-
const body: GetAGroupChannelResponse = ObjectSerializer.deserialize(
|
|
1470
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1471
|
-
"GetAGroupChannelResponse", ""
|
|
1472
|
-
) as GetAGroupChannelResponse;
|
|
1473
|
-
return body;
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1477
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1478
|
-
const body: GetAGroupChannelResponse = ObjectSerializer.deserialize(
|
|
1479
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1480
|
-
"GetAGroupChannelResponse", ""
|
|
1481
|
-
) as GetAGroupChannelResponse;
|
|
1482
|
-
return body;
|
|
1483
|
-
}
|
|
1484
|
-
|
|
1485
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1488
|
-
/**
|
|
1489
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1490
|
-
* to the expected objects
|
|
1491
|
-
*
|
|
1492
|
-
* @params response Response returned by the server for a request to hideAChannel
|
|
1493
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1494
|
-
*/
|
|
1495
|
-
public async hideAChannel(response: ResponseContext): Promise<any > {
|
|
1496
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1497
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1498
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1499
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1500
|
-
"any", ""
|
|
1501
|
-
) as any;
|
|
1502
|
-
return body;
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1506
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1507
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1508
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1509
|
-
"any", ""
|
|
1510
|
-
) as any;
|
|
1511
|
-
return body;
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
/**
|
|
1518
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1519
|
-
* to the expected objects
|
|
1520
|
-
*
|
|
1521
|
-
* @params response Response returned by the server for a request to inviteAsMembers
|
|
1522
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1523
|
-
*/
|
|
1524
|
-
public async inviteAsMembers(response: ResponseContext): Promise<InviteAsMembersResponse > {
|
|
1525
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1526
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1527
|
-
const body: InviteAsMembersResponse = ObjectSerializer.deserialize(
|
|
1528
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1529
|
-
"InviteAsMembersResponse", ""
|
|
1530
|
-
) as InviteAsMembersResponse;
|
|
1531
|
-
return body;
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1535
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1536
|
-
const body: InviteAsMembersResponse = ObjectSerializer.deserialize(
|
|
1537
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1538
|
-
"InviteAsMembersResponse", ""
|
|
1539
|
-
) as InviteAsMembersResponse;
|
|
1540
|
-
return body;
|
|
1541
|
-
}
|
|
1542
|
-
|
|
1543
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1544
|
-
}
|
|
1545
|
-
|
|
1546
|
-
/**
|
|
1547
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1548
|
-
* to the expected objects
|
|
1549
|
-
*
|
|
1550
|
-
* @params response Response returned by the server for a request to joinAChannel
|
|
1551
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1552
|
-
*/
|
|
1553
|
-
public async joinAChannel(response: ResponseContext): Promise<SendbirdGroupChannelDetail > {
|
|
1554
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1555
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1556
|
-
const body: SendbirdGroupChannelDetail = ObjectSerializer.deserialize(
|
|
1557
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1558
|
-
"SendbirdGroupChannelDetail", ""
|
|
1559
|
-
) as SendbirdGroupChannelDetail;
|
|
1560
|
-
return body;
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1564
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1565
|
-
const body: SendbirdGroupChannelDetail = ObjectSerializer.deserialize(
|
|
1566
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1567
|
-
"SendbirdGroupChannelDetail", ""
|
|
1568
|
-
) as SendbirdGroupChannelDetail;
|
|
1569
|
-
return body;
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1573
|
-
}
|
|
1574
|
-
|
|
1575
|
-
/**
|
|
1576
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1577
|
-
* to the expected objects
|
|
1578
|
-
*
|
|
1579
|
-
* @params response Response returned by the server for a request to leaveAChannel
|
|
1580
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1581
|
-
*/
|
|
1582
|
-
public async leaveAChannel(response: ResponseContext): Promise<any > {
|
|
1583
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1584
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1585
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1586
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1587
|
-
"any", ""
|
|
1588
|
-
) as any;
|
|
1589
|
-
return body;
|
|
1590
|
-
}
|
|
1591
|
-
|
|
1592
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1593
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1594
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1595
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1596
|
-
"any", ""
|
|
1597
|
-
) as any;
|
|
1598
|
-
return body;
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1602
|
-
}
|
|
1603
|
-
|
|
1604
|
-
/**
|
|
1605
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1606
|
-
* to the expected objects
|
|
1607
|
-
*
|
|
1608
|
-
* @params response Response returned by the server for a request to listChannels
|
|
1609
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1610
|
-
*/
|
|
1611
|
-
public async listChannels(response: ResponseContext): Promise<GroupChatListChannelsResponse > {
|
|
1612
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1613
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1614
|
-
const body: GroupChatListChannelsResponse = ObjectSerializer.deserialize(
|
|
1615
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1616
|
-
"GroupChatListChannelsResponse", ""
|
|
1617
|
-
) as GroupChatListChannelsResponse;
|
|
1618
|
-
return body;
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1622
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1623
|
-
const body: GroupChatListChannelsResponse = ObjectSerializer.deserialize(
|
|
1624
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1625
|
-
"GroupChatListChannelsResponse", ""
|
|
1626
|
-
) as GroupChatListChannelsResponse;
|
|
1627
|
-
return body;
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1631
|
-
}
|
|
1632
|
-
|
|
1633
|
-
/**
|
|
1634
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1635
|
-
* to the expected objects
|
|
1636
|
-
*
|
|
1637
|
-
* @params response Response returned by the server for a request to listMembers
|
|
1638
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1639
|
-
*/
|
|
1640
|
-
public async listMembers(response: ResponseContext): Promise<GroupChannelListMembersResponse > {
|
|
1641
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1642
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1643
|
-
const body: GroupChannelListMembersResponse = ObjectSerializer.deserialize(
|
|
1644
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1645
|
-
"GroupChannelListMembersResponse", ""
|
|
1646
|
-
) as GroupChannelListMembersResponse;
|
|
1647
|
-
return body;
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1651
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1652
|
-
const body: GroupChannelListMembersResponse = ObjectSerializer.deserialize(
|
|
1653
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1654
|
-
"GroupChannelListMembersResponse", ""
|
|
1655
|
-
) as GroupChannelListMembersResponse;
|
|
1656
|
-
return body;
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
/**
|
|
1663
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1664
|
-
* to the expected objects
|
|
1665
|
-
*
|
|
1666
|
-
* @params response Response returned by the server for a request to listOperators
|
|
1667
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1668
|
-
*/
|
|
1669
|
-
public async listOperators(response: ResponseContext): Promise<ListOperatorsResponse > {
|
|
1670
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1671
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1672
|
-
const body: ListOperatorsResponse = ObjectSerializer.deserialize(
|
|
1673
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1674
|
-
"ListOperatorsResponse", ""
|
|
1675
|
-
) as ListOperatorsResponse;
|
|
1676
|
-
return body;
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1680
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1681
|
-
const body: ListOperatorsResponse = ObjectSerializer.deserialize(
|
|
1682
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1683
|
-
"ListOperatorsResponse", ""
|
|
1684
|
-
) as ListOperatorsResponse;
|
|
1685
|
-
return body;
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
/**
|
|
1692
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1693
|
-
* to the expected objects
|
|
1694
|
-
*
|
|
1695
|
-
* @params response Response returned by the server for a request to registerOperatorsToAGroupChannel
|
|
1696
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1697
|
-
*/
|
|
1698
|
-
public async registerOperatorsToAGroupChannel(response: ResponseContext): Promise<any > {
|
|
1699
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1700
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1701
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1702
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1703
|
-
"any", ""
|
|
1704
|
-
) as any;
|
|
1705
|
-
return body;
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1709
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1710
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1711
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1712
|
-
"any", ""
|
|
1713
|
-
) as any;
|
|
1714
|
-
return body;
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1718
|
-
}
|
|
1719
|
-
|
|
1720
|
-
/**
|
|
1721
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1722
|
-
* to the expected objects
|
|
1723
|
-
*
|
|
1724
|
-
* @params response Response returned by the server for a request to resetChatHistory
|
|
1725
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1726
|
-
*/
|
|
1727
|
-
public async resetChatHistory(response: ResponseContext): Promise<ResetChatHistoryResponse > {
|
|
1728
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1729
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1730
|
-
const body: ResetChatHistoryResponse = ObjectSerializer.deserialize(
|
|
1731
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1732
|
-
"ResetChatHistoryResponse", ""
|
|
1733
|
-
) as ResetChatHistoryResponse;
|
|
1734
|
-
return body;
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1738
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1739
|
-
const body: ResetChatHistoryResponse = ObjectSerializer.deserialize(
|
|
1740
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1741
|
-
"ResetChatHistoryResponse", ""
|
|
1742
|
-
) as ResetChatHistoryResponse;
|
|
1743
|
-
return body;
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1747
|
-
}
|
|
1748
|
-
|
|
1749
|
-
/**
|
|
1750
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1751
|
-
* to the expected objects
|
|
1752
|
-
*
|
|
1753
|
-
* @params response Response returned by the server for a request to startTypingIndicators
|
|
1754
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1755
|
-
*/
|
|
1756
|
-
public async startTypingIndicators(response: ResponseContext): Promise<any > {
|
|
1757
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1758
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1759
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1760
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1761
|
-
"any", ""
|
|
1762
|
-
) as any;
|
|
1763
|
-
return body;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1767
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1768
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1769
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1770
|
-
"any", ""
|
|
1771
|
-
) as any;
|
|
1772
|
-
return body;
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1776
|
-
}
|
|
1777
|
-
|
|
1778
|
-
/**
|
|
1779
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1780
|
-
* to the expected objects
|
|
1781
|
-
*
|
|
1782
|
-
* @params response Response returned by the server for a request to stopTypingIndicators
|
|
1783
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1784
|
-
*/
|
|
1785
|
-
public async stopTypingIndicators(response: ResponseContext): Promise<any > {
|
|
1786
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1787
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1788
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1789
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1790
|
-
"any", ""
|
|
1791
|
-
) as any;
|
|
1792
|
-
return body;
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1796
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1797
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1798
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1799
|
-
"any", ""
|
|
1800
|
-
) as any;
|
|
1801
|
-
return body;
|
|
1802
|
-
}
|
|
1803
|
-
|
|
1804
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1805
|
-
}
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1809
|
-
* to the expected objects
|
|
1810
|
-
*
|
|
1811
|
-
* @params response Response returned by the server for a request to unhideAChannel
|
|
1812
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1813
|
-
*/
|
|
1814
|
-
public async unhideAChannel(response: ResponseContext): Promise<any > {
|
|
1815
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1816
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1817
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1818
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1819
|
-
"any", ""
|
|
1820
|
-
) as any;
|
|
1821
|
-
return body;
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1825
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1826
|
-
const body: any = ObjectSerializer.deserialize(
|
|
1827
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1828
|
-
"any", ""
|
|
1829
|
-
) as any;
|
|
1830
|
-
return body;
|
|
1831
|
-
}
|
|
1832
|
-
|
|
1833
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
/**
|
|
1837
|
-
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1838
|
-
* to the expected objects
|
|
1839
|
-
*
|
|
1840
|
-
* @params response Response returned by the server for a request to updateAGroupChannel
|
|
1841
|
-
* @throws ApiException if the response code was not in [200, 299]
|
|
1842
|
-
*/
|
|
1843
|
-
public async updateAGroupChannel(response: ResponseContext): Promise<SendbirdGroupChannelDetail > {
|
|
1844
|
-
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1845
|
-
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
1846
|
-
const body: SendbirdGroupChannelDetail = ObjectSerializer.deserialize(
|
|
1847
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1848
|
-
"SendbirdGroupChannelDetail", ""
|
|
1849
|
-
) as SendbirdGroupChannelDetail;
|
|
1850
|
-
return body;
|
|
1851
|
-
}
|
|
1852
|
-
|
|
1853
|
-
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1854
|
-
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1855
|
-
const body: SendbirdGroupChannelDetail = ObjectSerializer.deserialize(
|
|
1856
|
-
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
1857
|
-
"SendbirdGroupChannelDetail", ""
|
|
1858
|
-
) as SendbirdGroupChannelDetail;
|
|
1859
|
-
return body;
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
1863
|
-
}
|
|
1864
|
-
|
|
1865
|
-
}
|