@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/UserApi.md
DELETED
|
@@ -1,1868 +0,0 @@
|
|
|
1
|
-
# Sendbird.UserApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *https://api-APP_ID.sendbird.com*
|
|
4
|
-
|
|
5
|
-
Method | HTTP request | Description
|
|
6
|
-
------------- | ------------- | -------------
|
|
7
|
-
[**addARegistrationOrDeviceToken**](UserApi.md#addARegistrationOrDeviceToken) | **POST** /v3/users/{user_id}/push/{token_type} | Add a registration or device token
|
|
8
|
-
[**chooseAPushNotificationContentTemplate**](UserApi.md#chooseAPushNotificationContentTemplate) | **PUT** /v3/users/{user_id}/push/template | Choose a push notification content template
|
|
9
|
-
[**createAUser**](UserApi.md#createAUser) | **POST** /v3/users | Create a user
|
|
10
|
-
[**createUserToken**](UserApi.md#createUserToken) | **POST** /v3/users/{user_id}/token | Create user token
|
|
11
|
-
[**deleteAUser**](UserApi.md#deleteAUser) | **DELETE** /v3/users/{user_id} | Delete a user
|
|
12
|
-
[**getChannelInvitationPreference**](UserApi.md#getChannelInvitationPreference) | **GET** /v3/users/{user_id}/channel_invitation_preference | Get channel invitation preference
|
|
13
|
-
[**leaveMyGroupChannels**](UserApi.md#leaveMyGroupChannels) | **PUT** /v3/users/{user_id}/my_group_channels/leave | Leave my group channels
|
|
14
|
-
[**listMyGroupChannels**](UserApi.md#listMyGroupChannels) | **GET** /v3/users/{user_id}/my_group_channels | List my group channels
|
|
15
|
-
[**listRegistrationOrDeviceTokens**](UserApi.md#listRegistrationOrDeviceTokens) | **GET** /v3/users/{user_id}/push/{token_type} | List registration or device tokens
|
|
16
|
-
[**listUsers**](UserApi.md#listUsers) | **GET** /v3/users | List users
|
|
17
|
-
[**markAllMessagesAsRead**](UserApi.md#markAllMessagesAsRead) | **PUT** /v3/users/{user_id}/mark_as_read_all | Mark all messages as read
|
|
18
|
-
[**removeARegistrationOrDeviceToken**](UserApi.md#removeARegistrationOrDeviceToken) | **DELETE** /v3/users/{user_id}/push/{token_type}/{token} | Remove a registration or device token - When unregistering a specific token
|
|
19
|
-
[**removeARegistrationOrDeviceTokenFromAnOwner**](UserApi.md#removeARegistrationOrDeviceTokenFromAnOwner) | **DELETE** /v3/push/device_tokens/{token_type}/{token} | Remove a registration or device token from an owner
|
|
20
|
-
[**removeAllRegistrationOrDeviceToken**](UserApi.md#removeAllRegistrationOrDeviceToken) | **DELETE** /v3/users/{user_id}/push | Remove a registration or device token - When unregistering all device tokens
|
|
21
|
-
[**resetPushPreferences**](UserApi.md#resetPushPreferences) | **DELETE** /v3/users/{user_id}/push_preference | Reset push preferences
|
|
22
|
-
[**updateAUser**](UserApi.md#updateAUser) | **PUT** /v3/users/{user_id} | Update a user
|
|
23
|
-
[**updateChannelInvitationPreference**](UserApi.md#updateChannelInvitationPreference) | **PUT** /v3/users/{user_id}/channel_invitation_preference | Update channel invitation preference
|
|
24
|
-
[**updateCountPreferenceOfAChannel**](UserApi.md#updateCountPreferenceOfAChannel) | **PUT** /v3/users/{user_id}/count_preference/{channel_url} | Update count preference of a channel
|
|
25
|
-
[**updatePushPreferences**](UserApi.md#updatePushPreferences) | **PUT** /v3/users/{user_id}/push_preference | Update push preferences
|
|
26
|
-
[**updatePushPreferencesForAChannel**](UserApi.md#updatePushPreferencesForAChannel) | **PUT** /v3/users/{user_id}/push_preference/{channel_url} | Update push preferences for a channel
|
|
27
|
-
[**viewAUser**](UserApi.md#viewAUser) | **GET** /v3/users/{user_id} | View a user
|
|
28
|
-
[**viewCountPreferenceOfAChannel**](UserApi.md#viewCountPreferenceOfAChannel) | **GET** /v3/users/{user_id}/count_preference/{channel_url} | View count preference of a channel
|
|
29
|
-
[**viewNumberOfChannelsWithUnreadMessages**](UserApi.md#viewNumberOfChannelsWithUnreadMessages) | **GET** /v3/users/{user_id}/unread_channel_count | View number of channels with unread messages
|
|
30
|
-
[**viewNumberOfUnreadMessages**](UserApi.md#viewNumberOfUnreadMessages) | **GET** /v3/users/{user_id}/unread_message_count | View number of unread messages
|
|
31
|
-
[**viewPushPreferences**](UserApi.md#viewPushPreferences) | **GET** /v3/users/{user_id}/push_preference | View push preferences
|
|
32
|
-
[**viewPushPreferencesForAChannel**](UserApi.md#viewPushPreferencesForAChannel) | **GET** /v3/users/{user_id}/push_preference/{channel_url} | View push preferences for a channel
|
|
33
|
-
[**viewWhoOwnsARegistrationOrDeviceToken**](UserApi.md#viewWhoOwnsARegistrationOrDeviceToken) | **GET** /v3/push/device_tokens/{token_type}/{token} | View who owns a registration or device token
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
# **addARegistrationOrDeviceToken**
|
|
37
|
-
> AddARegistrationOrDeviceTokenResponse addARegistrationOrDeviceToken()
|
|
38
|
-
|
|
39
|
-
## Add a registration or device token > __Note__: A user can have up to 20 FCM registration tokens, 20 HMS device tokens, and 20 APNs device tokens each. The oldest token will be deleted before a new token is added for a user who already has 20 registration or device tokens. Only the 20 newest tokens will be maintained for users who already have more than 20 of each token type. To send notification requests to push notification services on behalf of your server, adds a specific user's FCM registration token, HMS device token, or APNs device token to Sendbird server. Depending on which push service you are using, you can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`. A FCM registration token and an APNs device token allow identification of each client app instance on each device, and are generated and registered by Android and iOS apps through the corresponding SDKs. Use this method if you need to register a token via your own server. > __Note__: For more information on the registration token and device token, visit the Google's [FCM](https://firebase.google.com/docs/auth/admin/verify-id-tokens) page, Huawei's [Push kit](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/service-introduction-0000001050040060) and Apple's [APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html) page. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-add-a-registration-or-device-token ----------------------------
|
|
40
|
-
|
|
41
|
-
### Example
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
```typescript
|
|
45
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
46
|
-
import * as fs from 'fs';
|
|
47
|
-
|
|
48
|
-
const configuration = Sendbird.createConfiguration();
|
|
49
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
50
|
-
|
|
51
|
-
let body:Sendbird.UserApiAddARegistrationOrDeviceTokenRequest = {
|
|
52
|
-
// string | (Required)
|
|
53
|
-
userId: "user_id_example",
|
|
54
|
-
// 'gcm' | 'huawei' | 'apns' | (Required)
|
|
55
|
-
tokenType: "gcm",
|
|
56
|
-
// string (optional)
|
|
57
|
-
apiToken: "{{API_TOKEN}}",
|
|
58
|
-
// AddARegistrationOrDeviceTokenRequest (optional)
|
|
59
|
-
addARegistrationOrDeviceTokenRequest: {
|
|
60
|
-
apnsDeviceToken: "apnsDeviceToken_example",
|
|
61
|
-
gcmRegToken: "gcmRegToken_example",
|
|
62
|
-
huaweiDeviceToken: "huaweiDeviceToken_example",
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
apiInstance.addARegistrationOrDeviceToken(body).then((data:any) => {
|
|
67
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
68
|
-
}).catch((error:any) => console.error(error));
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
### Parameters
|
|
73
|
-
|
|
74
|
-
Name | Type | Description | Notes
|
|
75
|
-
------------- | ------------- | ------------- | -------------
|
|
76
|
-
**addARegistrationOrDeviceTokenRequest** | **AddARegistrationOrDeviceTokenRequest**| |
|
|
77
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
78
|
-
**tokenType** | [**'gcm' | 'huawei' | 'apns'**]**Array<'gcm' | 'huawei' | 'apns'>** | (Required) | defaults to undefined
|
|
79
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### Return type
|
|
83
|
-
|
|
84
|
-
**AddARegistrationOrDeviceTokenResponse**
|
|
85
|
-
|
|
86
|
-
### Authorization
|
|
87
|
-
|
|
88
|
-
No authorization required
|
|
89
|
-
|
|
90
|
-
### HTTP request headers
|
|
91
|
-
|
|
92
|
-
- **Content-Type**: application/json
|
|
93
|
-
- **Accept**: application/json
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### HTTP response details
|
|
97
|
-
| Status code | Description | Response headers |
|
|
98
|
-
|-------------|-------------|------------------|
|
|
99
|
-
**200** | Successful response | - |
|
|
100
|
-
|
|
101
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
102
|
-
|
|
103
|
-
# **chooseAPushNotificationContentTemplate**
|
|
104
|
-
> ChooseAPushNotificationContentTemplateResponse chooseAPushNotificationContentTemplate()
|
|
105
|
-
|
|
106
|
-
## Choose a push notification content template Users can choose a template to determine how push notifications appear to them. Push notification content templates are pre-formatted forms that can be customized to display your own push notification messages on a user's device. Sendbird provides two types: `default` and `alternative`. Go to **Settings** > **Chat** > **Push notifications** > **Push notification content templates** on [Sendbird Dashboard](https://dashboard.sendbird.com/auth/signin) to customize the templates. If the `push_message_template` property is specified when [sending a message](https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message), the content template customized for the message takes precedence over the user's choice. > **Note**: Push notifications are only available for group channels. https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/choose-a-push-notification-content-template#1-choose-a-push-notification-content-template
|
|
107
|
-
|
|
108
|
-
### Example
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
```typescript
|
|
112
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
113
|
-
import * as fs from 'fs';
|
|
114
|
-
|
|
115
|
-
const configuration = Sendbird.createConfiguration();
|
|
116
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
117
|
-
|
|
118
|
-
let body:Sendbird.UserApiChooseAPushNotificationContentTemplateRequest = {
|
|
119
|
-
// string | (Required)
|
|
120
|
-
userId: "user_id_example",
|
|
121
|
-
// string (optional)
|
|
122
|
-
apiToken: "{{API_TOKEN}}",
|
|
123
|
-
// ChooseAPushNotificationContentTemplateRequest (optional)
|
|
124
|
-
chooseAPushNotificationContentTemplateRequest: {
|
|
125
|
-
name: "default",
|
|
126
|
-
},
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
apiInstance.chooseAPushNotificationContentTemplate(body).then((data:any) => {
|
|
130
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
131
|
-
}).catch((error:any) => console.error(error));
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
### Parameters
|
|
136
|
-
|
|
137
|
-
Name | Type | Description | Notes
|
|
138
|
-
------------- | ------------- | ------------- | -------------
|
|
139
|
-
**chooseAPushNotificationContentTemplateRequest** | **ChooseAPushNotificationContentTemplateRequest**| |
|
|
140
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
141
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
### Return type
|
|
145
|
-
|
|
146
|
-
**ChooseAPushNotificationContentTemplateResponse**
|
|
147
|
-
|
|
148
|
-
### Authorization
|
|
149
|
-
|
|
150
|
-
No authorization required
|
|
151
|
-
|
|
152
|
-
### HTTP request headers
|
|
153
|
-
|
|
154
|
-
- **Content-Type**: application/json
|
|
155
|
-
- **Accept**: application/json
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
### HTTP response details
|
|
159
|
-
| Status code | Description | Response headers |
|
|
160
|
-
|-------------|-------------|------------------|
|
|
161
|
-
**200** | Successful response | - |
|
|
162
|
-
|
|
163
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
164
|
-
|
|
165
|
-
# **createAUser**
|
|
166
|
-
> SendbirdUser createAUser()
|
|
167
|
-
|
|
168
|
-
## Create a user You should create a user in your Sendbird application to initiate conversations in channels. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. Users are at the core of all conversations. Sendbird applications are made up of users who chat in either Open Channels or Group Channels. Using this API, it is possible to have fine grained control over your users and what those users can do. To learn more about users, see [User overview](https://sendbird.com/docs/chat/platform-api/v3/user/user-overview#2-resource-representation). https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#1-create-a-user
|
|
169
|
-
|
|
170
|
-
### Example
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
```typescript
|
|
174
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
175
|
-
import * as fs from 'fs';
|
|
176
|
-
|
|
177
|
-
const configuration = Sendbird.createConfiguration();
|
|
178
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
179
|
-
|
|
180
|
-
let body:Sendbird.UserApiCreateAUserRequest = {
|
|
181
|
-
// string (optional)
|
|
182
|
-
apiToken: "{{API_TOKEN}}",
|
|
183
|
-
// CreateAUserRequest (optional)
|
|
184
|
-
createAUserRequest: {
|
|
185
|
-
discoveryKeys: [
|
|
186
|
-
"discoveryKeys_example",
|
|
187
|
-
],
|
|
188
|
-
issueAccessToken: true,
|
|
189
|
-
metadata: {},
|
|
190
|
-
nickname: "nickname_example",
|
|
191
|
-
profileFile: { data: Buffer.from(fs.readFileSync('/path/to/file', 'utf-8')), name: '/path/to/file' },
|
|
192
|
-
profileUrl: "profileUrl_example",
|
|
193
|
-
userId: "userId_example",
|
|
194
|
-
},
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
apiInstance.createAUser(body).then((data:any) => {
|
|
198
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
199
|
-
}).catch((error:any) => console.error(error));
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
### Parameters
|
|
204
|
-
|
|
205
|
-
Name | Type | Description | Notes
|
|
206
|
-
------------- | ------------- | ------------- | -------------
|
|
207
|
-
**createAUserRequest** | **CreateAUserRequest**| |
|
|
208
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
### Return type
|
|
212
|
-
|
|
213
|
-
**SendbirdUser**
|
|
214
|
-
|
|
215
|
-
### Authorization
|
|
216
|
-
|
|
217
|
-
No authorization required
|
|
218
|
-
|
|
219
|
-
### HTTP request headers
|
|
220
|
-
|
|
221
|
-
- **Content-Type**: application/json
|
|
222
|
-
- **Accept**: application/json
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
### HTTP response details
|
|
226
|
-
| Status code | Description | Response headers |
|
|
227
|
-
|-------------|-------------|------------------|
|
|
228
|
-
**200** | Successful response | - |
|
|
229
|
-
|
|
230
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
231
|
-
|
|
232
|
-
# **createUserToken**
|
|
233
|
-
> CreateUserTokenResponse createUserToken()
|
|
234
|
-
|
|
235
|
-
## Create user token This action issues a session token for user authentication. Session tokens provide an efficient stateless authentication method by not storing the tokens in the Sendbird database, and thus improving the server's performance. See [access token vs. session token](https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#2-access-token-vs-session-token) to learn more about authenticating users. > **Note**: The endpoint `/users/{user_id}` is deprecated. Use `/users/{user_id}/token` for greater efficiency. https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token#1-issue-a-session-token
|
|
236
|
-
|
|
237
|
-
### Example
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
```typescript
|
|
241
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
242
|
-
import * as fs from 'fs';
|
|
243
|
-
|
|
244
|
-
const configuration = Sendbird.createConfiguration();
|
|
245
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
246
|
-
|
|
247
|
-
let body:Sendbird.UserApiCreateUserTokenRequest = {
|
|
248
|
-
// string | (Required)
|
|
249
|
-
userId: "user_id_example",
|
|
250
|
-
// string (optional)
|
|
251
|
-
apiToken: "{{API_TOKEN}}",
|
|
252
|
-
// CreateUserTokenRequest (optional)
|
|
253
|
-
createUserTokenRequest: {
|
|
254
|
-
expiresAt: 1,
|
|
255
|
-
},
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
apiInstance.createUserToken(body).then((data:any) => {
|
|
259
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
260
|
-
}).catch((error:any) => console.error(error));
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
### Parameters
|
|
265
|
-
|
|
266
|
-
Name | Type | Description | Notes
|
|
267
|
-
------------- | ------------- | ------------- | -------------
|
|
268
|
-
**createUserTokenRequest** | **CreateUserTokenRequest**| |
|
|
269
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
270
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
### Return type
|
|
274
|
-
|
|
275
|
-
**CreateUserTokenResponse**
|
|
276
|
-
|
|
277
|
-
### Authorization
|
|
278
|
-
|
|
279
|
-
No authorization required
|
|
280
|
-
|
|
281
|
-
### HTTP request headers
|
|
282
|
-
|
|
283
|
-
- **Content-Type**: application/json
|
|
284
|
-
- **Accept**: application/json
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### HTTP response details
|
|
288
|
-
| Status code | Description | Response headers |
|
|
289
|
-
|-------------|-------------|------------------|
|
|
290
|
-
**200** | Successful response | - |
|
|
291
|
-
|
|
292
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
293
|
-
|
|
294
|
-
# **deleteAUser**
|
|
295
|
-
> any deleteAUser()
|
|
296
|
-
|
|
297
|
-
## Delete a user You can delete a user from your Sendbird application using this API. > **Note**: This API deletes user data and metadata, except for their messages. If you wish to delete user data including their messages, use the [GDPR request](https://sendbird.com/docs/chat/platform-api/v3/privacy/privacy-overview). [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user)
|
|
298
|
-
|
|
299
|
-
### Example
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
```typescript
|
|
303
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
304
|
-
import * as fs from 'fs';
|
|
305
|
-
|
|
306
|
-
const configuration = Sendbird.createConfiguration();
|
|
307
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
308
|
-
|
|
309
|
-
let body:Sendbird.UserApiDeleteAUserRequest = {
|
|
310
|
-
// string | (Required)
|
|
311
|
-
userId: "user_id_example",
|
|
312
|
-
// string (optional)
|
|
313
|
-
apiToken: "{{API_TOKEN}}",
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
apiInstance.deleteAUser(body).then((data:any) => {
|
|
317
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
318
|
-
}).catch((error:any) => console.error(error));
|
|
319
|
-
```
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
### Parameters
|
|
323
|
-
|
|
324
|
-
Name | Type | Description | Notes
|
|
325
|
-
------------- | ------------- | ------------- | -------------
|
|
326
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
327
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
### Return type
|
|
331
|
-
|
|
332
|
-
**any**
|
|
333
|
-
|
|
334
|
-
### Authorization
|
|
335
|
-
|
|
336
|
-
No authorization required
|
|
337
|
-
|
|
338
|
-
### HTTP request headers
|
|
339
|
-
|
|
340
|
-
- **Content-Type**: Not defined
|
|
341
|
-
- **Accept**: application/json
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
### HTTP response details
|
|
345
|
-
| Status code | Description | Response headers |
|
|
346
|
-
|-------------|-------------|------------------|
|
|
347
|
-
**200** | Successful response | - |
|
|
348
|
-
|
|
349
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
350
|
-
|
|
351
|
-
# **getChannelInvitationPreference**
|
|
352
|
-
> GetChannelInvitationPreferenceResponse getChannelInvitationPreference()
|
|
353
|
-
|
|
354
|
-
## Get channel invitation preference This action retrieves a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Users are subject to both user-specific and application-wide invitation preferences. Of the two, the invitation preference set for a specific user takes precedence over [the default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/get-default-invitation-preference). [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference)
|
|
355
|
-
|
|
356
|
-
### Example
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
```typescript
|
|
360
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
361
|
-
import * as fs from 'fs';
|
|
362
|
-
|
|
363
|
-
const configuration = Sendbird.createConfiguration();
|
|
364
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
365
|
-
|
|
366
|
-
let body:Sendbird.UserApiGetChannelInvitationPreferenceRequest = {
|
|
367
|
-
// string | (Required)
|
|
368
|
-
userId: "user_id_example",
|
|
369
|
-
// string (optional)
|
|
370
|
-
apiToken: "{{API_TOKEN}}",
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
apiInstance.getChannelInvitationPreference(body).then((data:any) => {
|
|
374
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
375
|
-
}).catch((error:any) => console.error(error));
|
|
376
|
-
```
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
### Parameters
|
|
380
|
-
|
|
381
|
-
Name | Type | Description | Notes
|
|
382
|
-
------------- | ------------- | ------------- | -------------
|
|
383
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
384
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
### Return type
|
|
388
|
-
|
|
389
|
-
**GetChannelInvitationPreferenceResponse**
|
|
390
|
-
|
|
391
|
-
### Authorization
|
|
392
|
-
|
|
393
|
-
No authorization required
|
|
394
|
-
|
|
395
|
-
### HTTP request headers
|
|
396
|
-
|
|
397
|
-
- **Content-Type**: Not defined
|
|
398
|
-
- **Accept**: application/json
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
### HTTP response details
|
|
402
|
-
| Status code | Description | Response headers |
|
|
403
|
-
|-------------|-------------|------------------|
|
|
404
|
-
**200** | Successful response | - |
|
|
405
|
-
|
|
406
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
407
|
-
|
|
408
|
-
# **leaveMyGroupChannels**
|
|
409
|
-
> any leaveMyGroupChannels()
|
|
410
|
-
|
|
411
|
-
## Leave my group channels This action allows a user to leave all group channels or channels with a specific custom type. This API is useful if you want to let a user leave a set of channels at once. To let a user leave only one of their group channels, use the [leave a channel API](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/leave-a-channel) instead. Since this API can't be called for a deactivated user, ensure that the [<code>leave_all_when_deactivated</code>](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#2-request-body) property of the user is set to its default value of `true` to let the user leave all joined group channels upon deactivation. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/leave-group-channels#1-leave-group-channels `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels.
|
|
412
|
-
|
|
413
|
-
### Example
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
```typescript
|
|
417
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
418
|
-
import * as fs from 'fs';
|
|
419
|
-
|
|
420
|
-
const configuration = Sendbird.createConfiguration();
|
|
421
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
422
|
-
|
|
423
|
-
let body:Sendbird.UserApiLeaveMyGroupChannelsRequest = {
|
|
424
|
-
// string | (Required)
|
|
425
|
-
userId: "user_id_example",
|
|
426
|
-
// string (optional)
|
|
427
|
-
apiToken: "{{API_TOKEN}}",
|
|
428
|
-
// LeaveMyGroupChannelsRequest (optional)
|
|
429
|
-
leaveMyGroupChannelsRequest: {
|
|
430
|
-
customType: "customType_example",
|
|
431
|
-
},
|
|
432
|
-
};
|
|
433
|
-
|
|
434
|
-
apiInstance.leaveMyGroupChannels(body).then((data:any) => {
|
|
435
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
436
|
-
}).catch((error:any) => console.error(error));
|
|
437
|
-
```
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
### Parameters
|
|
441
|
-
|
|
442
|
-
Name | Type | Description | Notes
|
|
443
|
-
------------- | ------------- | ------------- | -------------
|
|
444
|
-
**leaveMyGroupChannelsRequest** | **LeaveMyGroupChannelsRequest**| |
|
|
445
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
446
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
### Return type
|
|
450
|
-
|
|
451
|
-
**any**
|
|
452
|
-
|
|
453
|
-
### Authorization
|
|
454
|
-
|
|
455
|
-
No authorization required
|
|
456
|
-
|
|
457
|
-
### HTTP request headers
|
|
458
|
-
|
|
459
|
-
- **Content-Type**: application/json
|
|
460
|
-
- **Accept**: application/json
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
### HTTP response details
|
|
464
|
-
| Status code | Description | Response headers |
|
|
465
|
-
|-------------|-------------|------------------|
|
|
466
|
-
**200** | Successful response | - |
|
|
467
|
-
|
|
468
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
469
|
-
|
|
470
|
-
# **listMyGroupChannels**
|
|
471
|
-
> ListMyGroupChannelsResponse listMyGroupChannels()
|
|
472
|
-
|
|
473
|
-
## List my group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) that a specific user has joined. You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you're looking to retrieve a list of group channels in a specific application, visit the [list group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels) page under the Channel section. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user#1-list-group-channels-by-user `user_id` Type: string Description: Specifies the unique ID of the target user.
|
|
474
|
-
|
|
475
|
-
### Example
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
```typescript
|
|
479
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
480
|
-
import * as fs from 'fs';
|
|
481
|
-
|
|
482
|
-
const configuration = Sendbird.createConfiguration();
|
|
483
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
484
|
-
|
|
485
|
-
let body:Sendbird.UserApiListMyGroupChannelsRequest = {
|
|
486
|
-
// string | (Required)
|
|
487
|
-
userId: "user_id_example",
|
|
488
|
-
// string
|
|
489
|
-
apiToken: "{{API_TOKEN}}",
|
|
490
|
-
// string | Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. (optional)
|
|
491
|
-
token: "token_example",
|
|
492
|
-
// number | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) (optional)
|
|
493
|
-
limit: 10,
|
|
494
|
-
// 'all' | 'distinct' | 'nondistinct' (optional)
|
|
495
|
-
distinctMode: "all",
|
|
496
|
-
// 'all' | 'private' | 'public' (optional)
|
|
497
|
-
publicMode: "all",
|
|
498
|
-
// 'all' | 'super' | 'nonsuper' (optional)
|
|
499
|
-
superMode: "all",
|
|
500
|
-
// number | Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. (optional)
|
|
501
|
-
createdAfter: 1234567890123,
|
|
502
|
-
// number | Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. (optional)
|
|
503
|
-
createdBefore: 1234567890123,
|
|
504
|
-
// boolean (optional)
|
|
505
|
-
showEmpty: false,
|
|
506
|
-
// boolean (optional)
|
|
507
|
-
showMember: false,
|
|
508
|
-
// boolean (optional)
|
|
509
|
-
showDeliveryReceipt: false,
|
|
510
|
-
// boolean (optional)
|
|
511
|
-
showReadReceipt: false,
|
|
512
|
-
// boolean (optional)
|
|
513
|
-
showMetadata: false,
|
|
514
|
-
// boolean (optional)
|
|
515
|
-
showFrozen: false,
|
|
516
|
-
// 'chronological' | 'latest_last_message' | 'channel_name_alphabetical' | 'metadata_value_alphabetical' (optional)
|
|
517
|
-
order: "chronological",
|
|
518
|
-
// string | Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. (optional)
|
|
519
|
-
metadataOrderKey: "metadata_order_key_example",
|
|
520
|
-
// string | Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. (optional)
|
|
521
|
-
customTypes: "custom_types_example",
|
|
522
|
-
// string | Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. (optional)
|
|
523
|
-
customTypeStartswith: "custom_type_startswith_example",
|
|
524
|
-
// string | Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. (optional)
|
|
525
|
-
channelUrls: "channel_urls_example",
|
|
526
|
-
// string | Specifies one or more group channel names. (optional)
|
|
527
|
-
name: "name_example",
|
|
528
|
-
// string | Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. (optional)
|
|
529
|
-
nameContains: "name_contains_example",
|
|
530
|
-
// string | Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. (optional)
|
|
531
|
-
nameStartswith: "name_startswith_example",
|
|
532
|
-
// string | Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. (optional)
|
|
533
|
-
membersExactlyIn: "members_exactly_in_example",
|
|
534
|
-
// string | Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. (optional)
|
|
535
|
-
membersIncludeIn: "members_include_in_example",
|
|
536
|
-
// string | Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) (optional)
|
|
537
|
-
queryType: "query_type_example",
|
|
538
|
-
// string | Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. (optional)
|
|
539
|
-
membersNickname: "members_nickname_example",
|
|
540
|
-
// string | Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. (optional)
|
|
541
|
-
membersNicknameContains: "members_nickname_contains_example",
|
|
542
|
-
// string | Searches for group channels with members whose nicknames begin with the specified value. This parameter isn't case-sensitive. URL encoding the value is recommended. (optional)
|
|
543
|
-
membersNicknameStartswith: "members_nickname_startswith_example",
|
|
544
|
-
// string | Searches for group channels where the specified query string matches the channel name or the nickname of the member. This parameter isn't case-sensitive and should be specified in conjunction with the search_fields parameter below. URL encoding the value is recommended. (optional)
|
|
545
|
-
searchQuery: "search_query_example",
|
|
546
|
-
// string | Specifies a comma-separated string of one or more search fields to apply to the query, which restricts the results within the specified fields (OR search condition). Acceptable values are channel_name and member_nickname. This is effective only when the search_query parameter above is specified. (Default: channel_name, member_nickname together) (optional)
|
|
547
|
-
searchFields: "search_fields_example",
|
|
548
|
-
// string | Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. (optional)
|
|
549
|
-
metadataKey: "metadata_key_example",
|
|
550
|
-
// string | Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. (optional)
|
|
551
|
-
metadataValues: "metadata_values_example",
|
|
552
|
-
// string | Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. (optional)
|
|
553
|
-
metadataValueStartswith: "metadata_value_startswith_example",
|
|
554
|
-
// string | Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. (optional)
|
|
555
|
-
metacounterKey: "metacounter_key_example",
|
|
556
|
-
// string | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. (optional)
|
|
557
|
-
metacounterValues: "metacounter_values_example",
|
|
558
|
-
// string | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is greater than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. (optional)
|
|
559
|
-
metacounterValueGt: "metacounter_value_gt_example",
|
|
560
|
-
// string | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is greater than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. (optional)
|
|
561
|
-
metacounterValueGte: "metacounter_value_gte_example",
|
|
562
|
-
// string | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. (optional)
|
|
563
|
-
metacounterValueLt: "metacounter_value_lt_example",
|
|
564
|
-
// string | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. (optional)
|
|
565
|
-
metacounterValueLte: "metacounter_value_lte_example",
|
|
566
|
-
// boolean | Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. (optional)
|
|
567
|
-
includeSortedMetaarrayInLastMessage: false,
|
|
568
|
-
// 'unhidden_only' | 'hidden_only' | 'hidden_allow_auto_unhide' | 'hidden_prevent_auto_unhide' | 'all' | Restricts the search scope to group channels that match a specific hidden_status and operating behavior (optional)
|
|
569
|
-
hiddenMode: "unhidden_only",
|
|
570
|
-
// 'all' | 'unread_message' | Restricts the search scope to only retrieve group channels with one or more unread messages. This filter doesn't support Supergroup channels. Acceptable values are all and unread_message. (Default: all) (optional)
|
|
571
|
-
unreadFilter: "all",
|
|
572
|
-
// 'all' | 'invited_only' | 'joined_only' | 'invited_by_friend' | 'invited_by_non_friend' (optional)
|
|
573
|
-
memberStateFilter: "all",
|
|
574
|
-
};
|
|
575
|
-
|
|
576
|
-
apiInstance.listMyGroupChannels(body).then((data:any) => {
|
|
577
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
578
|
-
}).catch((error:any) => console.error(error));
|
|
579
|
-
```
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
### Parameters
|
|
583
|
-
|
|
584
|
-
Name | Type | Description | Notes
|
|
585
|
-
------------- | ------------- | ------------- | -------------
|
|
586
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
587
|
-
**apiToken** | [**string**] | | defaults to undefined
|
|
588
|
-
**token** | [**string**] | Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. | (optional) defaults to undefined
|
|
589
|
-
**limit** | [**number**] | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) | (optional) defaults to undefined
|
|
590
|
-
**distinctMode** | [**'all' | 'distinct' | 'nondistinct'**]**Array<'all' | 'distinct' | 'nondistinct'>** | | (optional) defaults to undefined
|
|
591
|
-
**publicMode** | [**'all' | 'private' | 'public'**]**Array<'all' | 'private' | 'public'>** | | (optional) defaults to undefined
|
|
592
|
-
**superMode** | [**'all' | 'super' | 'nonsuper'**]**Array<'all' | 'super' | 'nonsuper'>** | | (optional) defaults to undefined
|
|
593
|
-
**createdAfter** | [**number**] | Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. | (optional) defaults to undefined
|
|
594
|
-
**createdBefore** | [**number**] | Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. | (optional) defaults to undefined
|
|
595
|
-
**showEmpty** | [**boolean**] | | (optional) defaults to undefined
|
|
596
|
-
**showMember** | [**boolean**] | | (optional) defaults to undefined
|
|
597
|
-
**showDeliveryReceipt** | [**boolean**] | | (optional) defaults to undefined
|
|
598
|
-
**showReadReceipt** | [**boolean**] | | (optional) defaults to undefined
|
|
599
|
-
**showMetadata** | [**boolean**] | | (optional) defaults to undefined
|
|
600
|
-
**showFrozen** | [**boolean**] | | (optional) defaults to undefined
|
|
601
|
-
**order** | [**'chronological' | 'latest_last_message' | 'channel_name_alphabetical' | 'metadata_value_alphabetical'**]**Array<'chronological' | 'latest_last_message' | 'channel_name_alphabetical' | 'metadata_value_alphabetical'>** | | (optional) defaults to undefined
|
|
602
|
-
**metadataOrderKey** | [**string**] | Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. | (optional) defaults to undefined
|
|
603
|
-
**customTypes** | [**string**] | Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. | (optional) defaults to undefined
|
|
604
|
-
**customTypeStartswith** | [**string**] | Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. | (optional) defaults to undefined
|
|
605
|
-
**channelUrls** | [**string**] | Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. | (optional) defaults to undefined
|
|
606
|
-
**name** | [**string**] | Specifies one or more group channel names. | (optional) defaults to undefined
|
|
607
|
-
**nameContains** | [**string**] | Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. | (optional) defaults to undefined
|
|
608
|
-
**nameStartswith** | [**string**] | Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. | (optional) defaults to undefined
|
|
609
|
-
**membersExactlyIn** | [**string**] | Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. | (optional) defaults to undefined
|
|
610
|
-
**membersIncludeIn** | [**string**] | Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. | (optional) defaults to undefined
|
|
611
|
-
**queryType** | [**string**] | Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) | (optional) defaults to undefined
|
|
612
|
-
**membersNickname** | [**string**] | Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. | (optional) defaults to undefined
|
|
613
|
-
**membersNicknameContains** | [**string**] | Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. | (optional) defaults to undefined
|
|
614
|
-
**membersNicknameStartswith** | [**string**] | Searches for group channels with members whose nicknames begin with the specified value. This parameter isn't case-sensitive. URL encoding the value is recommended. | (optional) defaults to undefined
|
|
615
|
-
**searchQuery** | [**string**] | Searches for group channels where the specified query string matches the channel name or the nickname of the member. This parameter isn't case-sensitive and should be specified in conjunction with the search_fields parameter below. URL encoding the value is recommended. | (optional) defaults to undefined
|
|
616
|
-
**searchFields** | [**string**] | Specifies a comma-separated string of one or more search fields to apply to the query, which restricts the results within the specified fields (OR search condition). Acceptable values are channel_name and member_nickname. This is effective only when the search_query parameter above is specified. (Default: channel_name, member_nickname together) | (optional) defaults to undefined
|
|
617
|
-
**metadataKey** | [**string**] | Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. | (optional) defaults to undefined
|
|
618
|
-
**metadataValues** | [**string**] | Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. | (optional) defaults to undefined
|
|
619
|
-
**metadataValueStartswith** | [**string**] | Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. | (optional) defaults to undefined
|
|
620
|
-
**metacounterKey** | [**string**] | Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. | (optional) defaults to undefined
|
|
621
|
-
**metacounterValues** | [**string**] | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. | (optional) defaults to undefined
|
|
622
|
-
**metacounterValueGt** | [**string**] | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is greater than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. | (optional) defaults to undefined
|
|
623
|
-
**metacounterValueGte** | [**string**] | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is greater than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. | (optional) defaults to undefined
|
|
624
|
-
**metacounterValueLt** | [**string**] | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. | (optional) defaults to undefined
|
|
625
|
-
**metacounterValueLte** | [**string**] | Searches for group channels with metacounter containing an item with the key specified by the metadata_key parameter, where the value of that item is lower than or equal to the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. | (optional) defaults to undefined
|
|
626
|
-
**includeSortedMetaarrayInLastMessage** | [**boolean**] | Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. | (optional) defaults to undefined
|
|
627
|
-
**hiddenMode** | [**'unhidden_only' | 'hidden_only' | 'hidden_allow_auto_unhide' | 'hidden_prevent_auto_unhide' | 'all'**]**Array<'unhidden_only' | 'hidden_only' | 'hidden_allow_auto_unhide' | 'hidden_prevent_auto_unhide' | 'all'>** | Restricts the search scope to group channels that match a specific hidden_status and operating behavior | (optional) defaults to undefined
|
|
628
|
-
**unreadFilter** | [**'all' | 'unread_message'**]**Array<'all' | 'unread_message'>** | Restricts the search scope to only retrieve group channels with one or more unread messages. This filter doesn't support Supergroup channels. Acceptable values are all and unread_message. (Default: all) | (optional) defaults to undefined
|
|
629
|
-
**memberStateFilter** | [**'all' | 'invited_only' | 'joined_only' | 'invited_by_friend' | 'invited_by_non_friend'**]**Array<'all' | 'invited_only' | 'joined_only' | 'invited_by_friend' | 'invited_by_non_friend'>** | | (optional) defaults to undefined
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
### Return type
|
|
633
|
-
|
|
634
|
-
**ListMyGroupChannelsResponse**
|
|
635
|
-
|
|
636
|
-
### Authorization
|
|
637
|
-
|
|
638
|
-
No authorization required
|
|
639
|
-
|
|
640
|
-
### HTTP request headers
|
|
641
|
-
|
|
642
|
-
- **Content-Type**: Not defined
|
|
643
|
-
- **Accept**: application/json
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
### HTTP response details
|
|
647
|
-
| Status code | Description | Response headers |
|
|
648
|
-
|-------------|-------------|------------------|
|
|
649
|
-
**200** | Successful response | - |
|
|
650
|
-
|
|
651
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
652
|
-
|
|
653
|
-
# **listRegistrationOrDeviceTokens**
|
|
654
|
-
> ListRegistrationOrDeviceTokensResponse listRegistrationOrDeviceTokens()
|
|
655
|
-
|
|
656
|
-
## List registration or device tokens Retrieves a list of a user's registration or device tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/list-registration-or-device-tokens#1-list-registration-or-device-tokens
|
|
657
|
-
|
|
658
|
-
### Example
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
```typescript
|
|
662
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
663
|
-
import * as fs from 'fs';
|
|
664
|
-
|
|
665
|
-
const configuration = Sendbird.createConfiguration();
|
|
666
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
667
|
-
|
|
668
|
-
let body:Sendbird.UserApiListRegistrationOrDeviceTokensRequest = {
|
|
669
|
-
// string | (Required)
|
|
670
|
-
userId: "user_id_example",
|
|
671
|
-
// 'gcm' | 'huawei' | 'apns' | (Required)
|
|
672
|
-
tokenType: "gcm",
|
|
673
|
-
// string (optional)
|
|
674
|
-
apiToken: "{{API_TOKEN}}",
|
|
675
|
-
};
|
|
676
|
-
|
|
677
|
-
apiInstance.listRegistrationOrDeviceTokens(body).then((data:any) => {
|
|
678
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
679
|
-
}).catch((error:any) => console.error(error));
|
|
680
|
-
```
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
### Parameters
|
|
684
|
-
|
|
685
|
-
Name | Type | Description | Notes
|
|
686
|
-
------------- | ------------- | ------------- | -------------
|
|
687
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
688
|
-
**tokenType** | [**'gcm' | 'huawei' | 'apns'**]**Array<'gcm' | 'huawei' | 'apns'>** | (Required) | defaults to undefined
|
|
689
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
### Return type
|
|
693
|
-
|
|
694
|
-
**ListRegistrationOrDeviceTokensResponse**
|
|
695
|
-
|
|
696
|
-
### Authorization
|
|
697
|
-
|
|
698
|
-
No authorization required
|
|
699
|
-
|
|
700
|
-
### HTTP request headers
|
|
701
|
-
|
|
702
|
-
- **Content-Type**: Not defined
|
|
703
|
-
- **Accept**: application/json
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
### HTTP response details
|
|
707
|
-
| Status code | Description | Response headers |
|
|
708
|
-
|-------------|-------------|------------------|
|
|
709
|
-
**200** | Successful response | - |
|
|
710
|
-
|
|
711
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
712
|
-
|
|
713
|
-
# **listUsers**
|
|
714
|
-
> ListUsersResponse listUsers()
|
|
715
|
-
|
|
716
|
-
## List users You can retrieve a list of users in your Sendbird application using this API. You can generate a customized list using various parameter combinations. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/list-users#1-list-users
|
|
717
|
-
|
|
718
|
-
### Example
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
```typescript
|
|
722
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
723
|
-
import * as fs from 'fs';
|
|
724
|
-
|
|
725
|
-
const configuration = Sendbird.createConfiguration();
|
|
726
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
727
|
-
|
|
728
|
-
let body:Sendbird.UserApiListUsersRequest = {
|
|
729
|
-
// string (optional)
|
|
730
|
-
token: "token_example",
|
|
731
|
-
// number (optional)
|
|
732
|
-
limit: 1,
|
|
733
|
-
// 'activated' | 'deactivated' | 'all' | Specifies the activation status of the users in the list. Acceptable values are `activated`, `deactivated`, and `all`. (Default: `activated`) (optional)
|
|
734
|
-
activeMode: "activated",
|
|
735
|
-
// boolean | Determines whether to include bots in the list. (Default: true) (optional)
|
|
736
|
-
showBot: true,
|
|
737
|
-
// string | Specifies the user IDs. The value should be a comma-separated string that consists of multiple urlencoded user IDs. An example of a urlencoded string is ?user_ids=urlencoded_id_1,urlencoded_id_2. * The maximum number of user IDs in this parameter is 250. If you exceed the maximum number, your request may receive an HTTP 414 error indicating that the request URL is longer than what Sendbird server can interpret. (optional)
|
|
738
|
-
userIds: "user_ids_example",
|
|
739
|
-
// string (optional)
|
|
740
|
-
nickname: "nickname_example",
|
|
741
|
-
// string (optional)
|
|
742
|
-
nicknameStartswith: "nickname_startswith_example",
|
|
743
|
-
// string (optional)
|
|
744
|
-
metadatakey: "metadatakey_example",
|
|
745
|
-
// string | Searches for blocked users with metadata containing an item with the key specified by the metadatakey parameter above, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple urlencoded metadata values separated by commas (for example, `?metadatavalues_in=urlencoded_value_1, urlencoded_value_2`). This parameter should be specified in conjunction with the `metadatakey` above. (optional)
|
|
746
|
-
metadatavaluesIn: "metadatavalues_in_example",
|
|
747
|
-
// string (optional)
|
|
748
|
-
apiToken: "{{API_TOKEN}}",
|
|
749
|
-
};
|
|
750
|
-
|
|
751
|
-
apiInstance.listUsers(body).then((data:any) => {
|
|
752
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
753
|
-
}).catch((error:any) => console.error(error));
|
|
754
|
-
```
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
### Parameters
|
|
758
|
-
|
|
759
|
-
Name | Type | Description | Notes
|
|
760
|
-
------------- | ------------- | ------------- | -------------
|
|
761
|
-
**token** | [**string**] | | (optional) defaults to undefined
|
|
762
|
-
**limit** | [**number**] | | (optional) defaults to undefined
|
|
763
|
-
**activeMode** | [**'activated' | 'deactivated' | 'all'**]**Array<'activated' | 'deactivated' | 'all'>** | Specifies the activation status of the users in the list. Acceptable values are `activated`, `deactivated`, and `all`. (Default: `activated`) | (optional) defaults to undefined
|
|
764
|
-
**showBot** | [**boolean**] | Determines whether to include bots in the list. (Default: true) | (optional) defaults to undefined
|
|
765
|
-
**userIds** | [**string**] | Specifies the user IDs. The value should be a comma-separated string that consists of multiple urlencoded user IDs. An example of a urlencoded string is ?user_ids=urlencoded_id_1,urlencoded_id_2. * The maximum number of user IDs in this parameter is 250. If you exceed the maximum number, your request may receive an HTTP 414 error indicating that the request URL is longer than what Sendbird server can interpret. | (optional) defaults to undefined
|
|
766
|
-
**nickname** | [**string**] | | (optional) defaults to undefined
|
|
767
|
-
**nicknameStartswith** | [**string**] | | (optional) defaults to undefined
|
|
768
|
-
**metadatakey** | [**string**] | | (optional) defaults to undefined
|
|
769
|
-
**metadatavaluesIn** | [**string**] | Searches for blocked users with metadata containing an item with the key specified by the metadatakey parameter above, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple urlencoded metadata values separated by commas (for example, `?metadatavalues_in=urlencoded_value_1, urlencoded_value_2`). This parameter should be specified in conjunction with the `metadatakey` above. | (optional) defaults to undefined
|
|
770
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
### Return type
|
|
774
|
-
|
|
775
|
-
**ListUsersResponse**
|
|
776
|
-
|
|
777
|
-
### Authorization
|
|
778
|
-
|
|
779
|
-
No authorization required
|
|
780
|
-
|
|
781
|
-
### HTTP request headers
|
|
782
|
-
|
|
783
|
-
- **Content-Type**: Not defined
|
|
784
|
-
- **Accept**: application/json
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
### HTTP response details
|
|
788
|
-
| Status code | Description | Response headers |
|
|
789
|
-
|-------------|-------------|------------------|
|
|
790
|
-
**200** | Successful response | - |
|
|
791
|
-
|
|
792
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
793
|
-
|
|
794
|
-
# **markAllMessagesAsRead**
|
|
795
|
-
> any markAllMessagesAsRead()
|
|
796
|
-
|
|
797
|
-
## Mark all messages as read This action marks all of a user's unread messages as read in certain group channels. If channels aren't specified, the user's unread messages in all group channels are marked as read. https://sendbird.com/docs/chat/platform-api/v3/user/marking-messages-as-read/mark-all-of-a-users-messages-as-read#1-mark-all-of-a-user-s-messages-as-read
|
|
798
|
-
|
|
799
|
-
### Example
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
```typescript
|
|
803
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
804
|
-
import * as fs from 'fs';
|
|
805
|
-
|
|
806
|
-
const configuration = Sendbird.createConfiguration();
|
|
807
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
808
|
-
|
|
809
|
-
let body:Sendbird.UserApiMarkAllMessagesAsReadRequest = {
|
|
810
|
-
// string | (Required)
|
|
811
|
-
userId: "user_id_example",
|
|
812
|
-
// string (optional)
|
|
813
|
-
apiToken: "{{API_TOKEN}}",
|
|
814
|
-
// MarkAllMessagesAsReadRequest (optional)
|
|
815
|
-
markAllMessagesAsReadRequest: {
|
|
816
|
-
channelUrls: [
|
|
817
|
-
"channelUrls_example",
|
|
818
|
-
],
|
|
819
|
-
},
|
|
820
|
-
};
|
|
821
|
-
|
|
822
|
-
apiInstance.markAllMessagesAsRead(body).then((data:any) => {
|
|
823
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
824
|
-
}).catch((error:any) => console.error(error));
|
|
825
|
-
```
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
### Parameters
|
|
829
|
-
|
|
830
|
-
Name | Type | Description | Notes
|
|
831
|
-
------------- | ------------- | ------------- | -------------
|
|
832
|
-
**markAllMessagesAsReadRequest** | **MarkAllMessagesAsReadRequest**| |
|
|
833
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
834
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
### Return type
|
|
838
|
-
|
|
839
|
-
**any**
|
|
840
|
-
|
|
841
|
-
### Authorization
|
|
842
|
-
|
|
843
|
-
No authorization required
|
|
844
|
-
|
|
845
|
-
### HTTP request headers
|
|
846
|
-
|
|
847
|
-
- **Content-Type**: application/json
|
|
848
|
-
- **Accept**: application/json
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
### HTTP response details
|
|
852
|
-
| Status code | Description | Response headers |
|
|
853
|
-
|-------------|-------------|------------------|
|
|
854
|
-
**200** | Successful response | - |
|
|
855
|
-
|
|
856
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
857
|
-
|
|
858
|
-
# **removeARegistrationOrDeviceToken**
|
|
859
|
-
> RemoveARegistrationOrDeviceTokenResponse removeARegistrationOrDeviceToken()
|
|
860
|
-
|
|
861
|
-
## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token
|
|
862
|
-
|
|
863
|
-
### Example
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
```typescript
|
|
867
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
868
|
-
import * as fs from 'fs';
|
|
869
|
-
|
|
870
|
-
const configuration = Sendbird.createConfiguration();
|
|
871
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
872
|
-
|
|
873
|
-
let body:Sendbird.UserApiRemoveARegistrationOrDeviceTokenRequest = {
|
|
874
|
-
// string | (Required)
|
|
875
|
-
userId: "user_id_example",
|
|
876
|
-
// 'gcm' | 'huawei' | 'apns' | (Required)
|
|
877
|
-
tokenType: "gcm",
|
|
878
|
-
// string | (Required)
|
|
879
|
-
token: "token_example",
|
|
880
|
-
// string (optional)
|
|
881
|
-
apiToken: "{{API_TOKEN}}",
|
|
882
|
-
};
|
|
883
|
-
|
|
884
|
-
apiInstance.removeARegistrationOrDeviceToken(body).then((data:any) => {
|
|
885
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
886
|
-
}).catch((error:any) => console.error(error));
|
|
887
|
-
```
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
### Parameters
|
|
891
|
-
|
|
892
|
-
Name | Type | Description | Notes
|
|
893
|
-
------------- | ------------- | ------------- | -------------
|
|
894
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
895
|
-
**tokenType** | [**'gcm' | 'huawei' | 'apns'**]**Array<'gcm' | 'huawei' | 'apns'>** | (Required) | defaults to undefined
|
|
896
|
-
**token** | [**string**] | (Required) | defaults to undefined
|
|
897
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
### Return type
|
|
901
|
-
|
|
902
|
-
**RemoveARegistrationOrDeviceTokenResponse**
|
|
903
|
-
|
|
904
|
-
### Authorization
|
|
905
|
-
|
|
906
|
-
No authorization required
|
|
907
|
-
|
|
908
|
-
### HTTP request headers
|
|
909
|
-
|
|
910
|
-
- **Content-Type**: Not defined
|
|
911
|
-
- **Accept**: application/json
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
### HTTP response details
|
|
915
|
-
| Status code | Description | Response headers |
|
|
916
|
-
|-------------|-------------|------------------|
|
|
917
|
-
**200** | Successful response | - |
|
|
918
|
-
|
|
919
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
920
|
-
|
|
921
|
-
# **removeARegistrationOrDeviceTokenFromAnOwner**
|
|
922
|
-
> Array<MarkChannelMessagesAsReadRequest> removeARegistrationOrDeviceTokenFromAnOwner()
|
|
923
|
-
|
|
924
|
-
## Remove a registration or device token from an owner Removes a registration or device token from a user who is the owner of the token. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token-from-an-owner#1-remove-a-registration-or-device-token-from-an-owner
|
|
925
|
-
|
|
926
|
-
### Example
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
```typescript
|
|
930
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
931
|
-
import * as fs from 'fs';
|
|
932
|
-
|
|
933
|
-
const configuration = Sendbird.createConfiguration();
|
|
934
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
935
|
-
|
|
936
|
-
let body:Sendbird.UserApiRemoveARegistrationOrDeviceTokenFromAnOwnerRequest = {
|
|
937
|
-
// string | (Required)
|
|
938
|
-
tokenType: "token_type_example",
|
|
939
|
-
// string | (Required)
|
|
940
|
-
token: "token_example",
|
|
941
|
-
// string (optional)
|
|
942
|
-
apiToken: "{{API_TOKEN}}",
|
|
943
|
-
};
|
|
944
|
-
|
|
945
|
-
apiInstance.removeARegistrationOrDeviceTokenFromAnOwner(body).then((data:any) => {
|
|
946
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
947
|
-
}).catch((error:any) => console.error(error));
|
|
948
|
-
```
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
### Parameters
|
|
952
|
-
|
|
953
|
-
Name | Type | Description | Notes
|
|
954
|
-
------------- | ------------- | ------------- | -------------
|
|
955
|
-
**tokenType** | [**string**] | (Required) | defaults to undefined
|
|
956
|
-
**token** | [**string**] | (Required) | defaults to undefined
|
|
957
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
### Return type
|
|
961
|
-
|
|
962
|
-
**Array<MarkChannelMessagesAsReadRequest>**
|
|
963
|
-
|
|
964
|
-
### Authorization
|
|
965
|
-
|
|
966
|
-
No authorization required
|
|
967
|
-
|
|
968
|
-
### HTTP request headers
|
|
969
|
-
|
|
970
|
-
- **Content-Type**: Not defined
|
|
971
|
-
- **Accept**: application/json
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
### HTTP response details
|
|
975
|
-
| Status code | Description | Response headers |
|
|
976
|
-
|-------------|-------------|------------------|
|
|
977
|
-
**200** | Successful response | - |
|
|
978
|
-
|
|
979
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
980
|
-
|
|
981
|
-
# **removeAllRegistrationOrDeviceToken**
|
|
982
|
-
> RemoveAllRegistrationOrDeviceTokenResponse removeAllRegistrationOrDeviceToken()
|
|
983
|
-
|
|
984
|
-
## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token
|
|
985
|
-
|
|
986
|
-
### Example
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
```typescript
|
|
990
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
991
|
-
import * as fs from 'fs';
|
|
992
|
-
|
|
993
|
-
const configuration = Sendbird.createConfiguration();
|
|
994
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
995
|
-
|
|
996
|
-
let body:Sendbird.UserApiRemoveAllRegistrationOrDeviceTokenRequest = {
|
|
997
|
-
// string | (Required)
|
|
998
|
-
userId: "user_id_example",
|
|
999
|
-
// string (optional)
|
|
1000
|
-
apiToken: "{{API_TOKEN}}",
|
|
1001
|
-
};
|
|
1002
|
-
|
|
1003
|
-
apiInstance.removeAllRegistrationOrDeviceToken(body).then((data:any) => {
|
|
1004
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1005
|
-
}).catch((error:any) => console.error(error));
|
|
1006
|
-
```
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
### Parameters
|
|
1010
|
-
|
|
1011
|
-
Name | Type | Description | Notes
|
|
1012
|
-
------------- | ------------- | ------------- | -------------
|
|
1013
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1014
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
### Return type
|
|
1018
|
-
|
|
1019
|
-
**RemoveAllRegistrationOrDeviceTokenResponse**
|
|
1020
|
-
|
|
1021
|
-
### Authorization
|
|
1022
|
-
|
|
1023
|
-
No authorization required
|
|
1024
|
-
|
|
1025
|
-
### HTTP request headers
|
|
1026
|
-
|
|
1027
|
-
- **Content-Type**: Not defined
|
|
1028
|
-
- **Accept**: application/json
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
### HTTP response details
|
|
1032
|
-
| Status code | Description | Response headers |
|
|
1033
|
-
|-------------|-------------|------------------|
|
|
1034
|
-
**200** | Successful response | - |
|
|
1035
|
-
|
|
1036
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1037
|
-
|
|
1038
|
-
# **resetPushPreferences**
|
|
1039
|
-
> any resetPushPreferences()
|
|
1040
|
-
|
|
1041
|
-
## Reset push preferences You can reset a user's notifications preferences. The values are reset to the default as the following. - The values for the `do_not_disturb` and `snooze_enabled` properties are set to `false`. - The values of the parameters associated with the time frame are all set to `0`. - The value for the `timezone` property is set to `UTC`. - The value for the `push_sound` property is set to `default`. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences)
|
|
1042
|
-
|
|
1043
|
-
### Example
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
```typescript
|
|
1047
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1048
|
-
import * as fs from 'fs';
|
|
1049
|
-
|
|
1050
|
-
const configuration = Sendbird.createConfiguration();
|
|
1051
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1052
|
-
|
|
1053
|
-
let body:Sendbird.UserApiResetPushPreferencesRequest = {
|
|
1054
|
-
// string | (Required)
|
|
1055
|
-
userId: "user_id_example",
|
|
1056
|
-
// string (optional)
|
|
1057
|
-
apiToken: "{{API_TOKEN}}",
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
apiInstance.resetPushPreferences(body).then((data:any) => {
|
|
1061
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1062
|
-
}).catch((error:any) => console.error(error));
|
|
1063
|
-
```
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
### Parameters
|
|
1067
|
-
|
|
1068
|
-
Name | Type | Description | Notes
|
|
1069
|
-
------------- | ------------- | ------------- | -------------
|
|
1070
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1071
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
### Return type
|
|
1075
|
-
|
|
1076
|
-
**any**
|
|
1077
|
-
|
|
1078
|
-
### Authorization
|
|
1079
|
-
|
|
1080
|
-
No authorization required
|
|
1081
|
-
|
|
1082
|
-
### HTTP request headers
|
|
1083
|
-
|
|
1084
|
-
- **Content-Type**: Not defined
|
|
1085
|
-
- **Accept**: application/json
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
### HTTP response details
|
|
1089
|
-
| Status code | Description | Response headers |
|
|
1090
|
-
|-------------|-------------|------------------|
|
|
1091
|
-
**200** | Successful response | - |
|
|
1092
|
-
|
|
1093
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1094
|
-
|
|
1095
|
-
# **updateAUser**
|
|
1096
|
-
> SendbirdUser updateAUser()
|
|
1097
|
-
|
|
1098
|
-
## Update a user You can update information about a user using this API. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user using this API request. If the `leave_all_when_deactivated` is set to `true`, a user leaves all joined group channels and becomes deactivated. > **Note**: Issuing session tokens through the `/users/{user_id}` endpoint is now deprecated and it's replaced with [<code>/users/{user_id}/token</code>](https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token) endpoint for greater efficiency. For those who are currently using the old endpoint, you can start issuing tokens using the new endpoint. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user)
|
|
1099
|
-
|
|
1100
|
-
### Example
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
```typescript
|
|
1104
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1105
|
-
import * as fs from 'fs';
|
|
1106
|
-
|
|
1107
|
-
const configuration = Sendbird.createConfiguration();
|
|
1108
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1109
|
-
|
|
1110
|
-
let body:Sendbird.UserApiUpdateAUserRequest = {
|
|
1111
|
-
// string | (Required)
|
|
1112
|
-
userId: "user_id_example",
|
|
1113
|
-
// string (optional)
|
|
1114
|
-
apiToken: "{{API_TOKEN}}",
|
|
1115
|
-
// UpdateAUserRequest (optional)
|
|
1116
|
-
updateAUserRequest: {
|
|
1117
|
-
discoveryKeys: [
|
|
1118
|
-
"discoveryKeys_example",
|
|
1119
|
-
],
|
|
1120
|
-
isActive: true,
|
|
1121
|
-
issueAccessToken: true,
|
|
1122
|
-
lastSeenAt: 1,
|
|
1123
|
-
leaveAllWhenDeactivated: true,
|
|
1124
|
-
nickname: "nickname_example",
|
|
1125
|
-
preferredLanguages: [
|
|
1126
|
-
"preferredLanguages_example",
|
|
1127
|
-
],
|
|
1128
|
-
profileFile: { data: Buffer.from(fs.readFileSync('/path/to/file', 'utf-8')), name: '/path/to/file' },
|
|
1129
|
-
profileUrl: "profileUrl_example",
|
|
1130
|
-
},
|
|
1131
|
-
};
|
|
1132
|
-
|
|
1133
|
-
apiInstance.updateAUser(body).then((data:any) => {
|
|
1134
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1135
|
-
}).catch((error:any) => console.error(error));
|
|
1136
|
-
```
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
### Parameters
|
|
1140
|
-
|
|
1141
|
-
Name | Type | Description | Notes
|
|
1142
|
-
------------- | ------------- | ------------- | -------------
|
|
1143
|
-
**updateAUserRequest** | **UpdateAUserRequest**| |
|
|
1144
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1145
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
### Return type
|
|
1149
|
-
|
|
1150
|
-
**SendbirdUser**
|
|
1151
|
-
|
|
1152
|
-
### Authorization
|
|
1153
|
-
|
|
1154
|
-
No authorization required
|
|
1155
|
-
|
|
1156
|
-
### HTTP request headers
|
|
1157
|
-
|
|
1158
|
-
- **Content-Type**: application/json
|
|
1159
|
-
- **Accept**: application/json
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
### HTTP response details
|
|
1163
|
-
| Status code | Description | Response headers |
|
|
1164
|
-
|-------------|-------------|------------------|
|
|
1165
|
-
**200** | Successful response | - |
|
|
1166
|
-
|
|
1167
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1168
|
-
|
|
1169
|
-
# **updateChannelInvitationPreference**
|
|
1170
|
-
> UpdateChannelInvitationPreferenceResponse updateChannelInvitationPreference()
|
|
1171
|
-
|
|
1172
|
-
## Update channel invitation preference This action updates a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Updating the [application's default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) won't override existing users' individual channel invitation preferences. The changed preference only affects the users created after the update. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference#1-update-channel-invitation-preference
|
|
1173
|
-
|
|
1174
|
-
### Example
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
```typescript
|
|
1178
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1179
|
-
import * as fs from 'fs';
|
|
1180
|
-
|
|
1181
|
-
const configuration = Sendbird.createConfiguration();
|
|
1182
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1183
|
-
|
|
1184
|
-
let body:Sendbird.UserApiUpdateChannelInvitationPreferenceRequest = {
|
|
1185
|
-
// string | (Required)
|
|
1186
|
-
userId: "user_id_example",
|
|
1187
|
-
// string (optional)
|
|
1188
|
-
apiToken: "{{API_TOKEN}}",
|
|
1189
|
-
// UpdateChannelInvitationPreferenceRequest (optional)
|
|
1190
|
-
updateChannelInvitationPreferenceRequest: {
|
|
1191
|
-
autoAccept: true,
|
|
1192
|
-
},
|
|
1193
|
-
};
|
|
1194
|
-
|
|
1195
|
-
apiInstance.updateChannelInvitationPreference(body).then((data:any) => {
|
|
1196
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1197
|
-
}).catch((error:any) => console.error(error));
|
|
1198
|
-
```
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
### Parameters
|
|
1202
|
-
|
|
1203
|
-
Name | Type | Description | Notes
|
|
1204
|
-
------------- | ------------- | ------------- | -------------
|
|
1205
|
-
**updateChannelInvitationPreferenceRequest** | **UpdateChannelInvitationPreferenceRequest**| |
|
|
1206
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1207
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
### Return type
|
|
1211
|
-
|
|
1212
|
-
**UpdateChannelInvitationPreferenceResponse**
|
|
1213
|
-
|
|
1214
|
-
### Authorization
|
|
1215
|
-
|
|
1216
|
-
No authorization required
|
|
1217
|
-
|
|
1218
|
-
### HTTP request headers
|
|
1219
|
-
|
|
1220
|
-
- **Content-Type**: application/json
|
|
1221
|
-
- **Accept**: application/json
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
### HTTP response details
|
|
1225
|
-
| Status code | Description | Response headers |
|
|
1226
|
-
|-------------|-------------|------------------|
|
|
1227
|
-
**200** | Successful response | - |
|
|
1228
|
-
|
|
1229
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1230
|
-
|
|
1231
|
-
# **updateCountPreferenceOfAChannel**
|
|
1232
|
-
> UpdateCountPreferenceOfChannelByUrlResponse updateCountPreferenceOfAChannel()
|
|
1233
|
-
|
|
1234
|
-
## Update count preference of a channel This action updates a user's count preference of a specific group channel. The count preference allows a user to either update the number of unread messages or the number of unread mentioned messages, or both in a specific group channel. If you want to retrieve the total number count of a specific group channel, go to the [get count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel) page. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel#1-update-count-preference-of-a-channel
|
|
1235
|
-
|
|
1236
|
-
### Example
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
```typescript
|
|
1240
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1241
|
-
import * as fs from 'fs';
|
|
1242
|
-
|
|
1243
|
-
const configuration = Sendbird.createConfiguration();
|
|
1244
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1245
|
-
|
|
1246
|
-
let body:Sendbird.UserApiUpdateCountPreferenceOfAChannelRequest = {
|
|
1247
|
-
// string | (Required)
|
|
1248
|
-
userId: "user_id_example",
|
|
1249
|
-
// string | (Required)
|
|
1250
|
-
channelUrl: "channel_url_example",
|
|
1251
|
-
// string (optional)
|
|
1252
|
-
apiToken: "{{API_TOKEN}}",
|
|
1253
|
-
// UpdateCountPreferenceOfAChannelRequest (optional)
|
|
1254
|
-
updateCountPreferenceOfAChannelRequest: {
|
|
1255
|
-
countPreference: "false",
|
|
1256
|
-
},
|
|
1257
|
-
};
|
|
1258
|
-
|
|
1259
|
-
apiInstance.updateCountPreferenceOfAChannel(body).then((data:any) => {
|
|
1260
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1261
|
-
}).catch((error:any) => console.error(error));
|
|
1262
|
-
```
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
### Parameters
|
|
1266
|
-
|
|
1267
|
-
Name | Type | Description | Notes
|
|
1268
|
-
------------- | ------------- | ------------- | -------------
|
|
1269
|
-
**updateCountPreferenceOfAChannelRequest** | **UpdateCountPreferenceOfAChannelRequest**| |
|
|
1270
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1271
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
1272
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
### Return type
|
|
1276
|
-
|
|
1277
|
-
**UpdateCountPreferenceOfChannelByUrlResponse**
|
|
1278
|
-
|
|
1279
|
-
### Authorization
|
|
1280
|
-
|
|
1281
|
-
No authorization required
|
|
1282
|
-
|
|
1283
|
-
### HTTP request headers
|
|
1284
|
-
|
|
1285
|
-
- **Content-Type**: application/json
|
|
1286
|
-
- **Accept**: application/json
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
### HTTP response details
|
|
1290
|
-
| Status code | Description | Response headers |
|
|
1291
|
-
|-------------|-------------|------------------|
|
|
1292
|
-
**200** | Successful response | - |
|
|
1293
|
-
|
|
1294
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1295
|
-
|
|
1296
|
-
# **updatePushPreferences**
|
|
1297
|
-
> UpdatePushPreferencesResponse updatePushPreferences()
|
|
1298
|
-
|
|
1299
|
-
## Update push preferences You can update a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences)
|
|
1300
|
-
|
|
1301
|
-
### Example
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
```typescript
|
|
1305
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1306
|
-
import * as fs from 'fs';
|
|
1307
|
-
|
|
1308
|
-
const configuration = Sendbird.createConfiguration();
|
|
1309
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1310
|
-
|
|
1311
|
-
let body:Sendbird.UserApiUpdatePushPreferencesRequest = {
|
|
1312
|
-
// string | (Required)
|
|
1313
|
-
userId: "user_id_example",
|
|
1314
|
-
// string (optional)
|
|
1315
|
-
apiToken: "{{API_TOKEN}}",
|
|
1316
|
-
// UpdatePushPreferencesRequest (optional)
|
|
1317
|
-
updatePushPreferencesRequest: {
|
|
1318
|
-
blockPushFromBots: true,
|
|
1319
|
-
doNotDisturb: true,
|
|
1320
|
-
enablePushForReplies: true,
|
|
1321
|
-
endHour: 1,
|
|
1322
|
-
endMin: 1,
|
|
1323
|
-
pushBlockedBotIds: [
|
|
1324
|
-
"pushBlockedBotIds_example",
|
|
1325
|
-
],
|
|
1326
|
-
pushSound: "pushSound_example",
|
|
1327
|
-
pushTriggerOption: "all",
|
|
1328
|
-
snoozeEnabled: true,
|
|
1329
|
-
snoozeEndTs: 1,
|
|
1330
|
-
snoozeStartTs: 1,
|
|
1331
|
-
startHour: 1,
|
|
1332
|
-
startMin: 1,
|
|
1333
|
-
timezone: "timezone_example",
|
|
1334
|
-
},
|
|
1335
|
-
};
|
|
1336
|
-
|
|
1337
|
-
apiInstance.updatePushPreferences(body).then((data:any) => {
|
|
1338
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1339
|
-
}).catch((error:any) => console.error(error));
|
|
1340
|
-
```
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
### Parameters
|
|
1344
|
-
|
|
1345
|
-
Name | Type | Description | Notes
|
|
1346
|
-
------------- | ------------- | ------------- | -------------
|
|
1347
|
-
**updatePushPreferencesRequest** | **UpdatePushPreferencesRequest**| |
|
|
1348
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1349
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
### Return type
|
|
1353
|
-
|
|
1354
|
-
**UpdatePushPreferencesResponse**
|
|
1355
|
-
|
|
1356
|
-
### Authorization
|
|
1357
|
-
|
|
1358
|
-
No authorization required
|
|
1359
|
-
|
|
1360
|
-
### HTTP request headers
|
|
1361
|
-
|
|
1362
|
-
- **Content-Type**: application/json
|
|
1363
|
-
- **Accept**: application/json
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
### HTTP response details
|
|
1367
|
-
| Status code | Description | Response headers |
|
|
1368
|
-
|-------------|-------------|------------------|
|
|
1369
|
-
**200** | Successful response | - |
|
|
1370
|
-
|
|
1371
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1372
|
-
|
|
1373
|
-
# **updatePushPreferencesForAChannel**
|
|
1374
|
-
> UpdatePushPreferencesForAChannelResponse updatePushPreferencesForAChannel()
|
|
1375
|
-
|
|
1376
|
-
## Update push preferences for a channel You can update a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel)
|
|
1377
|
-
|
|
1378
|
-
### Example
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
```typescript
|
|
1382
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1383
|
-
import * as fs from 'fs';
|
|
1384
|
-
|
|
1385
|
-
const configuration = Sendbird.createConfiguration();
|
|
1386
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1387
|
-
|
|
1388
|
-
let body:Sendbird.UserApiUpdatePushPreferencesForAChannelRequest = {
|
|
1389
|
-
// string | (Required)
|
|
1390
|
-
userId: "user_id_example",
|
|
1391
|
-
// string | (Required)
|
|
1392
|
-
channelUrl: "channel_url_example",
|
|
1393
|
-
// string (optional)
|
|
1394
|
-
apiToken: "{{API_TOKEN}}",
|
|
1395
|
-
// UpdatePushPreferencesForAChannelRequest (optional)
|
|
1396
|
-
updatePushPreferencesForAChannelRequest: {
|
|
1397
|
-
pushTriggerOption: "default",
|
|
1398
|
-
pushSound: "pushSound_example",
|
|
1399
|
-
},
|
|
1400
|
-
};
|
|
1401
|
-
|
|
1402
|
-
apiInstance.updatePushPreferencesForAChannel(body).then((data:any) => {
|
|
1403
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1404
|
-
}).catch((error:any) => console.error(error));
|
|
1405
|
-
```
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
### Parameters
|
|
1409
|
-
|
|
1410
|
-
Name | Type | Description | Notes
|
|
1411
|
-
------------- | ------------- | ------------- | -------------
|
|
1412
|
-
**updatePushPreferencesForAChannelRequest** | **UpdatePushPreferencesForAChannelRequest**| |
|
|
1413
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1414
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
1415
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
### Return type
|
|
1419
|
-
|
|
1420
|
-
**UpdatePushPreferencesForAChannelResponse**
|
|
1421
|
-
|
|
1422
|
-
### Authorization
|
|
1423
|
-
|
|
1424
|
-
No authorization required
|
|
1425
|
-
|
|
1426
|
-
### HTTP request headers
|
|
1427
|
-
|
|
1428
|
-
- **Content-Type**: application/json
|
|
1429
|
-
- **Accept**: application/json
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
### HTTP response details
|
|
1433
|
-
| Status code | Description | Response headers |
|
|
1434
|
-
|-------------|-------------|------------------|
|
|
1435
|
-
**200** | Successful response | - |
|
|
1436
|
-
|
|
1437
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1438
|
-
|
|
1439
|
-
# **viewAUser**
|
|
1440
|
-
> SendbirdUser viewAUser()
|
|
1441
|
-
|
|
1442
|
-
## View a user You can retrieve information about a user using this API. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/get-a-user#1-get-a-user `user_id` Type: string Description: Specifies the unique ID of the user to retrieve.
|
|
1443
|
-
|
|
1444
|
-
### Example
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
```typescript
|
|
1448
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1449
|
-
import * as fs from 'fs';
|
|
1450
|
-
|
|
1451
|
-
const configuration = Sendbird.createConfiguration();
|
|
1452
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1453
|
-
|
|
1454
|
-
let body:Sendbird.UserApiViewAUserRequest = {
|
|
1455
|
-
// string | (Required)
|
|
1456
|
-
userId: "user_id_example",
|
|
1457
|
-
// boolean (optional)
|
|
1458
|
-
includeUnreadCount: true,
|
|
1459
|
-
// string (optional)
|
|
1460
|
-
customTypes: "custom_types_example",
|
|
1461
|
-
// 'all' | 'super' | 'nonsuper' | Restricts the search scope to retrieve only Supergroup or non-Supergroup channels. Acceptable values are `all`, `super`, and `nonsuper`. This parameter should be specified in conjunction with `include_unread_count` above. (Default: `all`) (optional)
|
|
1462
|
-
superMode: "all",
|
|
1463
|
-
// string (optional)
|
|
1464
|
-
apiToken: "{{API_TOKEN}}",
|
|
1465
|
-
};
|
|
1466
|
-
|
|
1467
|
-
apiInstance.viewAUser(body).then((data:any) => {
|
|
1468
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1469
|
-
}).catch((error:any) => console.error(error));
|
|
1470
|
-
```
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
### Parameters
|
|
1474
|
-
|
|
1475
|
-
Name | Type | Description | Notes
|
|
1476
|
-
------------- | ------------- | ------------- | -------------
|
|
1477
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1478
|
-
**includeUnreadCount** | [**boolean**] | | (optional) defaults to undefined
|
|
1479
|
-
**customTypes** | [**string**] | | (optional) defaults to undefined
|
|
1480
|
-
**superMode** | [**'all' | 'super' | 'nonsuper'**]**Array<'all' | 'super' | 'nonsuper'>** | Restricts the search scope to retrieve only Supergroup or non-Supergroup channels. Acceptable values are `all`, `super`, and `nonsuper`. This parameter should be specified in conjunction with `include_unread_count` above. (Default: `all`) | (optional) defaults to undefined
|
|
1481
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
### Return type
|
|
1485
|
-
|
|
1486
|
-
**SendbirdUser**
|
|
1487
|
-
|
|
1488
|
-
### Authorization
|
|
1489
|
-
|
|
1490
|
-
No authorization required
|
|
1491
|
-
|
|
1492
|
-
### HTTP request headers
|
|
1493
|
-
|
|
1494
|
-
- **Content-Type**: Not defined
|
|
1495
|
-
- **Accept**: application/json
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
### HTTP response details
|
|
1499
|
-
| Status code | Description | Response headers |
|
|
1500
|
-
|-------------|-------------|------------------|
|
|
1501
|
-
**200** | Successful response | - |
|
|
1502
|
-
|
|
1503
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1504
|
-
|
|
1505
|
-
# **viewCountPreferenceOfAChannel**
|
|
1506
|
-
> ViewCountPreferenceOfAChannelResponse viewCountPreferenceOfAChannel()
|
|
1507
|
-
|
|
1508
|
-
## View count preference of a channel This action retrieves a user's count preference of a specific group channel. The count preference allows a user to either retrieve the number of unread messages or unread mentioned messages, or both in a specific group channel. If you want to update the total number count of a specific group channel, visit the [update count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel). https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel#1-get-count-preference-of-a-channel
|
|
1509
|
-
|
|
1510
|
-
### Example
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
```typescript
|
|
1514
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1515
|
-
import * as fs from 'fs';
|
|
1516
|
-
|
|
1517
|
-
const configuration = Sendbird.createConfiguration();
|
|
1518
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1519
|
-
|
|
1520
|
-
let body:Sendbird.UserApiViewCountPreferenceOfAChannelRequest = {
|
|
1521
|
-
// string | (Required)
|
|
1522
|
-
userId: "user_id_example",
|
|
1523
|
-
// string | (Required)
|
|
1524
|
-
channelUrl: "channel_url_example",
|
|
1525
|
-
// string (optional)
|
|
1526
|
-
apiToken: "{{API_TOKEN}}",
|
|
1527
|
-
};
|
|
1528
|
-
|
|
1529
|
-
apiInstance.viewCountPreferenceOfAChannel(body).then((data:any) => {
|
|
1530
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1531
|
-
}).catch((error:any) => console.error(error));
|
|
1532
|
-
```
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
### Parameters
|
|
1536
|
-
|
|
1537
|
-
Name | Type | Description | Notes
|
|
1538
|
-
------------- | ------------- | ------------- | -------------
|
|
1539
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1540
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
1541
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
### Return type
|
|
1545
|
-
|
|
1546
|
-
**ViewCountPreferenceOfAChannelResponse**
|
|
1547
|
-
|
|
1548
|
-
### Authorization
|
|
1549
|
-
|
|
1550
|
-
No authorization required
|
|
1551
|
-
|
|
1552
|
-
### HTTP request headers
|
|
1553
|
-
|
|
1554
|
-
- **Content-Type**: Not defined
|
|
1555
|
-
- **Accept**: application/json
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
### HTTP response details
|
|
1559
|
-
| Status code | Description | Response headers |
|
|
1560
|
-
|-------------|-------------|------------------|
|
|
1561
|
-
**200** | Successful response | - |
|
|
1562
|
-
|
|
1563
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1564
|
-
|
|
1565
|
-
# **viewNumberOfChannelsWithUnreadMessages**
|
|
1566
|
-
> ViewNumberOfChannelsWithUnreadMessagesResponse viewNumberOfChannelsWithUnreadMessages()
|
|
1567
|
-
|
|
1568
|
-
## View number of channels with unread messages This action retrieves the total number of group channels in which a user has unread messages. You can use various query parameters to determine the search scope of group channels. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-channels-with-unread-messages#1-get-number-of-channels-with-unread-messages
|
|
1569
|
-
|
|
1570
|
-
### Example
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
```typescript
|
|
1574
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1575
|
-
import * as fs from 'fs';
|
|
1576
|
-
|
|
1577
|
-
const configuration = Sendbird.createConfiguration();
|
|
1578
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1579
|
-
|
|
1580
|
-
let body:Sendbird.UserApiViewNumberOfChannelsWithUnreadMessagesRequest = {
|
|
1581
|
-
// string | (Required)
|
|
1582
|
-
userId: "user_id_example",
|
|
1583
|
-
// string (optional)
|
|
1584
|
-
customTypes: "custom_types_example",
|
|
1585
|
-
// 'all' | 'super' | 'nonsuper' | Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are all, super, and nonsuper. (Default: all) (optional)
|
|
1586
|
-
superMode: "all",
|
|
1587
|
-
// string (optional)
|
|
1588
|
-
apiToken: "{{API_TOKEN}}",
|
|
1589
|
-
};
|
|
1590
|
-
|
|
1591
|
-
apiInstance.viewNumberOfChannelsWithUnreadMessages(body).then((data:any) => {
|
|
1592
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1593
|
-
}).catch((error:any) => console.error(error));
|
|
1594
|
-
```
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
### Parameters
|
|
1598
|
-
|
|
1599
|
-
Name | Type | Description | Notes
|
|
1600
|
-
------------- | ------------- | ------------- | -------------
|
|
1601
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1602
|
-
**customTypes** | [**string**] | | (optional) defaults to undefined
|
|
1603
|
-
**superMode** | [**'all' | 'super' | 'nonsuper'**]**Array<'all' | 'super' | 'nonsuper'>** | Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are all, super, and nonsuper. (Default: all) | (optional) defaults to undefined
|
|
1604
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
### Return type
|
|
1608
|
-
|
|
1609
|
-
**ViewNumberOfChannelsWithUnreadMessagesResponse**
|
|
1610
|
-
|
|
1611
|
-
### Authorization
|
|
1612
|
-
|
|
1613
|
-
No authorization required
|
|
1614
|
-
|
|
1615
|
-
### HTTP request headers
|
|
1616
|
-
|
|
1617
|
-
- **Content-Type**: Not defined
|
|
1618
|
-
- **Accept**: application/json
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
### HTTP response details
|
|
1622
|
-
| Status code | Description | Response headers |
|
|
1623
|
-
|-------------|-------------|------------------|
|
|
1624
|
-
**200** | Successful response | - |
|
|
1625
|
-
|
|
1626
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1627
|
-
|
|
1628
|
-
# **viewNumberOfUnreadMessages**
|
|
1629
|
-
> ViewNumberOfUnreadMessagesResponse viewNumberOfUnreadMessages()
|
|
1630
|
-
|
|
1631
|
-
## View number of unread messages This action retrieves a user's total number of unread messages in group channels. > **Note**: The unread count feature is only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages) `user_id` Type: string Description: Specifies the unique ID of a user.
|
|
1632
|
-
|
|
1633
|
-
### Example
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
```typescript
|
|
1637
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1638
|
-
import * as fs from 'fs';
|
|
1639
|
-
|
|
1640
|
-
const configuration = Sendbird.createConfiguration();
|
|
1641
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1642
|
-
|
|
1643
|
-
let body:Sendbird.UserApiViewNumberOfUnreadMessagesRequest = {
|
|
1644
|
-
// string | (Required)
|
|
1645
|
-
userId: "user_id_example",
|
|
1646
|
-
// string | Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. (optional)
|
|
1647
|
-
customTypes: "custom_types_example",
|
|
1648
|
-
// string | Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are `all`, `super`, and `nonsuper`. (Default: `all`) (optional)
|
|
1649
|
-
superMode: "super_mode_example",
|
|
1650
|
-
// string (optional)
|
|
1651
|
-
apiToken: "{{API_TOKEN}}",
|
|
1652
|
-
};
|
|
1653
|
-
|
|
1654
|
-
apiInstance.viewNumberOfUnreadMessages(body).then((data:any) => {
|
|
1655
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1656
|
-
}).catch((error:any) => console.error(error));
|
|
1657
|
-
```
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
### Parameters
|
|
1661
|
-
|
|
1662
|
-
Name | Type | Description | Notes
|
|
1663
|
-
------------- | ------------- | ------------- | -------------
|
|
1664
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1665
|
-
**customTypes** | [**string**] | Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. | (optional) defaults to undefined
|
|
1666
|
-
**superMode** | [**string**] | Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are `all`, `super`, and `nonsuper`. (Default: `all`) | (optional) defaults to undefined
|
|
1667
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
### Return type
|
|
1671
|
-
|
|
1672
|
-
**ViewNumberOfUnreadMessagesResponse**
|
|
1673
|
-
|
|
1674
|
-
### Authorization
|
|
1675
|
-
|
|
1676
|
-
No authorization required
|
|
1677
|
-
|
|
1678
|
-
### HTTP request headers
|
|
1679
|
-
|
|
1680
|
-
- **Content-Type**: Not defined
|
|
1681
|
-
- **Accept**: application/json
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
### HTTP response details
|
|
1685
|
-
| Status code | Description | Response headers |
|
|
1686
|
-
|-------------|-------------|------------------|
|
|
1687
|
-
**200** | Successful response | - |
|
|
1688
|
-
|
|
1689
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1690
|
-
|
|
1691
|
-
# **viewPushPreferences**
|
|
1692
|
-
> ViewPushPreferencesResponse viewPushPreferences()
|
|
1693
|
-
|
|
1694
|
-
## View push preferences You can retrieves a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences)
|
|
1695
|
-
|
|
1696
|
-
### Example
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
```typescript
|
|
1700
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1701
|
-
import * as fs from 'fs';
|
|
1702
|
-
|
|
1703
|
-
const configuration = Sendbird.createConfiguration();
|
|
1704
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1705
|
-
|
|
1706
|
-
let body:Sendbird.UserApiViewPushPreferencesRequest = {
|
|
1707
|
-
// string | (Required)
|
|
1708
|
-
userId: "user_id_example",
|
|
1709
|
-
// string (optional)
|
|
1710
|
-
apiToken: "{{API_TOKEN}}",
|
|
1711
|
-
};
|
|
1712
|
-
|
|
1713
|
-
apiInstance.viewPushPreferences(body).then((data:any) => {
|
|
1714
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1715
|
-
}).catch((error:any) => console.error(error));
|
|
1716
|
-
```
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
### Parameters
|
|
1720
|
-
|
|
1721
|
-
Name | Type | Description | Notes
|
|
1722
|
-
------------- | ------------- | ------------- | -------------
|
|
1723
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1724
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
### Return type
|
|
1728
|
-
|
|
1729
|
-
**ViewPushPreferencesResponse**
|
|
1730
|
-
|
|
1731
|
-
### Authorization
|
|
1732
|
-
|
|
1733
|
-
No authorization required
|
|
1734
|
-
|
|
1735
|
-
### HTTP request headers
|
|
1736
|
-
|
|
1737
|
-
- **Content-Type**: Not defined
|
|
1738
|
-
- **Accept**: application/json
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
### HTTP response details
|
|
1742
|
-
| Status code | Description | Response headers |
|
|
1743
|
-
|-------------|-------------|------------------|
|
|
1744
|
-
**200** | Successful response | - |
|
|
1745
|
-
|
|
1746
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1747
|
-
|
|
1748
|
-
# **viewPushPreferencesForAChannel**
|
|
1749
|
-
> ViewPushPreferencesForAChannelResponse viewPushPreferencesForAChannel()
|
|
1750
|
-
|
|
1751
|
-
## View push preferences for a channel You can retrieve a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. These notifications preferences can be configured. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel)
|
|
1752
|
-
|
|
1753
|
-
### Example
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
```typescript
|
|
1757
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1758
|
-
import * as fs from 'fs';
|
|
1759
|
-
|
|
1760
|
-
const configuration = Sendbird.createConfiguration();
|
|
1761
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1762
|
-
|
|
1763
|
-
let body:Sendbird.UserApiViewPushPreferencesForAChannelRequest = {
|
|
1764
|
-
// string | (Required)
|
|
1765
|
-
userId: "user_id_example",
|
|
1766
|
-
// string | (Required)
|
|
1767
|
-
channelUrl: "channel_url_example",
|
|
1768
|
-
// string (optional)
|
|
1769
|
-
apiToken: "{{API_TOKEN}}",
|
|
1770
|
-
};
|
|
1771
|
-
|
|
1772
|
-
apiInstance.viewPushPreferencesForAChannel(body).then((data:any) => {
|
|
1773
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1774
|
-
}).catch((error:any) => console.error(error));
|
|
1775
|
-
```
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
### Parameters
|
|
1779
|
-
|
|
1780
|
-
Name | Type | Description | Notes
|
|
1781
|
-
------------- | ------------- | ------------- | -------------
|
|
1782
|
-
**userId** | [**string**] | (Required) | defaults to undefined
|
|
1783
|
-
**channelUrl** | [**string**] | (Required) | defaults to undefined
|
|
1784
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
### Return type
|
|
1788
|
-
|
|
1789
|
-
**ViewPushPreferencesForAChannelResponse**
|
|
1790
|
-
|
|
1791
|
-
### Authorization
|
|
1792
|
-
|
|
1793
|
-
No authorization required
|
|
1794
|
-
|
|
1795
|
-
### HTTP request headers
|
|
1796
|
-
|
|
1797
|
-
- **Content-Type**: Not defined
|
|
1798
|
-
- **Accept**: application/json
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
### HTTP response details
|
|
1802
|
-
| Status code | Description | Response headers |
|
|
1803
|
-
|-------------|-------------|------------------|
|
|
1804
|
-
**200** | Successful response | - |
|
|
1805
|
-
|
|
1806
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1807
|
-
|
|
1808
|
-
# **viewWhoOwnsARegistrationOrDeviceToken**
|
|
1809
|
-
> Array<MarkChannelMessagesAsReadRequest> viewWhoOwnsARegistrationOrDeviceToken()
|
|
1810
|
-
|
|
1811
|
-
## View who owns a registration or device token Retrieves a user who owns a FCM registration token, HMS device token, or APNs device token. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-who-owns-a-registration-or-device-token ----------------------------
|
|
1812
|
-
|
|
1813
|
-
### Example
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
```typescript
|
|
1817
|
-
import { Sendbird } from 'sendbird-platform-sdk';
|
|
1818
|
-
import * as fs from 'fs';
|
|
1819
|
-
|
|
1820
|
-
const configuration = Sendbird.createConfiguration();
|
|
1821
|
-
const apiInstance = new Sendbird.UserApi(configuration);
|
|
1822
|
-
|
|
1823
|
-
let body:Sendbird.UserApiViewWhoOwnsARegistrationOrDeviceTokenRequest = {
|
|
1824
|
-
// string | (Required)
|
|
1825
|
-
tokenType: "token_type_example",
|
|
1826
|
-
// string | (Required)
|
|
1827
|
-
token: "token_example",
|
|
1828
|
-
// string (optional)
|
|
1829
|
-
apiToken: "{{API_TOKEN}}",
|
|
1830
|
-
};
|
|
1831
|
-
|
|
1832
|
-
apiInstance.viewWhoOwnsARegistrationOrDeviceToken(body).then((data:any) => {
|
|
1833
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
1834
|
-
}).catch((error:any) => console.error(error));
|
|
1835
|
-
```
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
### Parameters
|
|
1839
|
-
|
|
1840
|
-
Name | Type | Description | Notes
|
|
1841
|
-
------------- | ------------- | ------------- | -------------
|
|
1842
|
-
**tokenType** | [**string**] | (Required) | defaults to undefined
|
|
1843
|
-
**token** | [**string**] | (Required) | defaults to undefined
|
|
1844
|
-
**apiToken** | [**string**] | | (optional) defaults to undefined
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
### Return type
|
|
1848
|
-
|
|
1849
|
-
**Array<MarkChannelMessagesAsReadRequest>**
|
|
1850
|
-
|
|
1851
|
-
### Authorization
|
|
1852
|
-
|
|
1853
|
-
No authorization required
|
|
1854
|
-
|
|
1855
|
-
### HTTP request headers
|
|
1856
|
-
|
|
1857
|
-
- **Content-Type**: Not defined
|
|
1858
|
-
- **Accept**: application/json
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
### HTTP response details
|
|
1862
|
-
| Status code | Description | Response headers |
|
|
1863
|
-
|-------------|-------------|------------------|
|
|
1864
|
-
**200** | Successful response | - |
|
|
1865
|
-
|
|
1866
|
-
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
|
|
1867
|
-
|
|
1868
|
-
|