@wildix/stream-client 4.0.5 → 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/StreamService.js +2 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +7 -0
- package/dist-cjs/commands/HardDeleteChannelCommand.js +20 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/schemas/schemas_0.js +25 -18
- package/dist-es/StreamService.js +2 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +7 -0
- package/dist-es/commands/HardDeleteChannelCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +22 -15
- package/dist-types/StreamService.d.ts +7 -0
- package/dist-types/StreamServiceClient.d.ts +3 -2
- package/dist-types/commands/DeleteChannelCommand.d.ts +6 -4
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +1 -0
- package/dist-types/commands/GetInboxCommand.d.ts +1 -0
- package/dist-types/commands/GetMessageCommand.d.ts +1 -0
- package/dist-types/commands/HardDeleteChannelCommand.d.ts +86 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +1 -0
- package/dist-types/commands/ListMentionsCommand.d.ts +1 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +1 -0
- package/dist-types/commands/MarkReadCommand.d.ts +2 -0
- package/dist-types/commands/MarkUnreadCommand.d.ts +1 -0
- package/dist-types/commands/MoveChannelToSectionCommand.d.ts +1 -0
- package/dist-types/commands/MuteChannelCommand.d.ts +1 -0
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +1 -0
- package/dist-types/commands/PinMessageCommand.d.ts +1 -0
- package/dist-types/commands/QueryChannelsCommand.d.ts +1 -0
- package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +1 -0
- package/dist-types/commands/SearchMessagesCommand.d.ts +1 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +1 -0
- package/dist-types/commands/SendMessageCommand.d.ts +1 -0
- package/dist-types/commands/SendMessageReactionCommand.d.ts +1 -0
- package/dist-types/commands/SendSystemMessageCommand.d.ts +1 -0
- package/dist-types/commands/UnmuteChannelCommand.d.ts +1 -0
- package/dist-types/commands/UnpinMessageCommand.d.ts +1 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +31 -5
- package/dist-types/schemas/schemas_0.d.ts +2 -1
- package/package.json +2 -2
|
@@ -28,6 +28,7 @@ const GetTelephonyChannelIdCommand_1 = require("./commands/GetTelephonyChannelId
|
|
|
28
28
|
const GetTokenCommand_1 = require("./commands/GetTokenCommand");
|
|
29
29
|
const GetUploadedFileInfoCommand_1 = require("./commands/GetUploadedFileInfoCommand");
|
|
30
30
|
const GetWhatsAppChannelIdCommand_1 = require("./commands/GetWhatsAppChannelIdCommand");
|
|
31
|
+
const HardDeleteChannelCommand_1 = require("./commands/HardDeleteChannelCommand");
|
|
31
32
|
const HideChannelCommand_1 = require("./commands/HideChannelCommand");
|
|
32
33
|
const JoinChannelCommand_1 = require("./commands/JoinChannelCommand");
|
|
33
34
|
const LeaveChannelCommand_1 = require("./commands/LeaveChannelCommand");
|
|
@@ -90,6 +91,7 @@ const commands = {
|
|
|
90
91
|
GetTokenCommand: GetTokenCommand_1.GetTokenCommand,
|
|
91
92
|
GetUploadedFileInfoCommand: GetUploadedFileInfoCommand_1.GetUploadedFileInfoCommand,
|
|
92
93
|
GetWhatsAppChannelIdCommand: GetWhatsAppChannelIdCommand_1.GetWhatsAppChannelIdCommand,
|
|
94
|
+
HardDeleteChannelCommand: HardDeleteChannelCommand_1.HardDeleteChannelCommand,
|
|
93
95
|
HideChannelCommand: HideChannelCommand_1.HideChannelCommand,
|
|
94
96
|
JoinChannelCommand: JoinChannelCommand_1.JoinChannelCommand,
|
|
95
97
|
LeaveChannelCommand: LeaveChannelCommand_1.LeaveChannelCommand,
|
|
@@ -37,6 +37,13 @@ function createWildixAuthXbsHttpAuthOption(authParameters) {
|
|
|
37
37
|
const defaultStreamServiceHttpAuthSchemeProvider = (authParameters) => {
|
|
38
38
|
const options = [];
|
|
39
39
|
switch (authParameters.operation) {
|
|
40
|
+
case "HardDeleteChannel":
|
|
41
|
+
{
|
|
42
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
43
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
;
|
|
40
47
|
default: {
|
|
41
48
|
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
42
49
|
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HardDeleteChannelCommand = exports.$Command = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class HardDeleteChannelCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
+
})
|
|
15
|
+
.s("StreamService", "HardDeleteChannel", {})
|
|
16
|
+
.n("StreamServiceClient", "HardDeleteChannelCommand")
|
|
17
|
+
.sc(schemas_0_1.HardDeleteChannel$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.HardDeleteChannelCommand = HardDeleteChannelCommand;
|
|
@@ -27,6 +27,7 @@ tslib_1.__exportStar(require("./GetTelephonyChannelIdCommand"), exports);
|
|
|
27
27
|
tslib_1.__exportStar(require("./GetTokenCommand"), exports);
|
|
28
28
|
tslib_1.__exportStar(require("./GetUploadedFileInfoCommand"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./GetWhatsAppChannelIdCommand"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./HardDeleteChannelCommand"), exports);
|
|
30
31
|
tslib_1.__exportStar(require("./HideChannelCommand"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./JoinChannelCommand"), exports);
|
|
32
33
|
tslib_1.__exportStar(require("./LeaveChannelCommand"), exports);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ListMentionsInput$ = exports.ListChannelsOutput$ = exports.ListChannelsInput$ = exports.ListChannelMembersReadStatusOutput$ = exports.ListChannelMembersReadStatusInput$ = exports.ListChannelMembersOutput$ = exports.ListChannelMembersInput$ = exports.LeaveChannelOutput$ = exports.LeaveChannelInput$ = exports.LastMessagePreview$ = exports.JoinChannelOutput$ = exports.JoinChannelInput$ = exports.InitialMessage$ = exports.InboxState$ = exports.InboxChannel$ = exports.HideChannelOutput$ = exports.HideChannelInput$ = exports.GetWhatsAppChannelIdOutput$ = exports.GetWhatsAppChannelIdInput$ = exports.GetUploadedFileInfoOutput$ = exports.GetUploadedFileInfoInput$ = exports.GetTokenOutput$ = exports.GetTokenInput$ = exports.GetTelephonyChannelIdOutput$ = exports.GetTelephonyChannelIdInput$ = exports.GetSmsChannelIdOutput$ = exports.GetSmsChannelIdInput$ = exports.GetOrCreateWhatsAppChannelOutput$ = exports.GetOrCreateWhatsAppChannelInput$ = exports.GetOrCreateTelephonyChannelOutput$ = exports.GetOrCreateTelephonyChannelInput$ = exports.GetOrCreateSmsChannelOutput$ = exports.GetOrCreateSmsChannelInput$ = exports.GetOrCreateDirectChannelOutput$ = exports.GetOrCreateDirectChannelInput$ = exports.GetMessageOutput$ = exports.GetMessageInput$ = exports.GetInboxOutput$ = exports.GetInboxInput$ = exports.GetFilePresignedDownloadUrlOutput$ = exports.GetFilePresignedDownloadUrlInput$ = exports.GetDirectChannelIdOutput$ = exports.GetDirectChannelIdInput$ = exports.GetChannelOutput$ = exports.GetChannelMemberOutput$ = exports.GetChannelMemberInput$ = exports.GetChannelInput$ = exports.DeleteSectionOutput$ = exports.DeleteSectionInput$ =
|
|
3
|
+
exports.DeleteMessageReactionOutput$ = exports.DeleteMessageReactionInput$ = exports.DeleteMessageOutput$ = exports.DeleteMessageInput$ = exports.DeleteChannelMemberOutput$ = exports.DeleteChannelMemberInput$ = exports.DeleteChannelInput$ = exports.CreateSectionOutput$ = exports.CreateSectionInput$ = exports.CreateKiteChannelOutput$ = exports.CreateKiteChannelInput$ = exports.CreateGroupChannelOutput$ = exports.CreateGroupChannelInput$ = exports.ChannelsQuery$ = exports.ChannelMemberReadStatus$ = exports.ChannelMember$ = exports.ChannelContextPushToTalk$ = exports.ChannelContextEventAttendee$ = exports.ChannelContextEvent$ = exports.ChannelContext$ = exports.Channel$ = exports.ButtonReplyHandler$ = exports.ButtonLinkHandler$ = exports.ButtonElement$ = exports.ButtonActionHandler$ = exports.AssignChannelOutput$ = exports.AssignChannelInput$ = exports.AddChannelMembersOutput$ = exports.AddChannelMembersInput$ = exports.AddChannelMemberOutput$ = exports.AddChannelMemberInput$ = exports.TemplateWithParameters$ = exports.TemplateParameter$ = exports.errorTypeRegistries = exports.TargetNotFoundException$ = exports.TargetNotEligibleException$ = exports.StreamServiceException$ = exports.SectionNotFoundException$ = exports.MessageNotFoundException$ = exports.MemberNotFoundException$ = exports.MemberAlreadyExistException$ = exports.MarkUnreadChannelsLimitReachedException$ = exports.FileNotFoundException$ = exports.ChannelNotFoundException$ = exports.ChannelAlreadyExistException$ = exports.ValidationException$ = exports.UnauthorizedException$ = exports.RateLimitExceededException$ = exports.ForbiddenException$ = exports.StreamServiceServiceException$ = void 0;
|
|
4
|
+
exports.ListMentionsInput$ = exports.ListChannelsOutput$ = exports.ListChannelsInput$ = exports.ListChannelMembersReadStatusOutput$ = exports.ListChannelMembersReadStatusInput$ = exports.ListChannelMembersOutput$ = exports.ListChannelMembersInput$ = exports.LeaveChannelOutput$ = exports.LeaveChannelInput$ = exports.LastMessagePreview$ = exports.JoinChannelOutput$ = exports.JoinChannelInput$ = exports.InitialMessage$ = exports.InboxState$ = exports.InboxChannel$ = exports.HideChannelOutput$ = exports.HideChannelInput$ = exports.HardDeleteChannelInput$ = exports.GetWhatsAppChannelIdOutput$ = exports.GetWhatsAppChannelIdInput$ = exports.GetUploadedFileInfoOutput$ = exports.GetUploadedFileInfoInput$ = exports.GetTokenOutput$ = exports.GetTokenInput$ = exports.GetTelephonyChannelIdOutput$ = exports.GetTelephonyChannelIdInput$ = exports.GetSmsChannelIdOutput$ = exports.GetSmsChannelIdInput$ = exports.GetOrCreateWhatsAppChannelOutput$ = exports.GetOrCreateWhatsAppChannelInput$ = exports.GetOrCreateTelephonyChannelOutput$ = exports.GetOrCreateTelephonyChannelInput$ = exports.GetOrCreateSmsChannelOutput$ = exports.GetOrCreateSmsChannelInput$ = exports.GetOrCreateDirectChannelOutput$ = exports.GetOrCreateDirectChannelInput$ = exports.GetMessageOutput$ = exports.GetMessageInput$ = exports.GetInboxOutput$ = exports.GetInboxInput$ = exports.GetFilePresignedDownloadUrlOutput$ = exports.GetFilePresignedDownloadUrlInput$ = exports.GetDirectChannelIdOutput$ = exports.GetDirectChannelIdInput$ = exports.GetChannelOutput$ = exports.GetChannelMemberOutput$ = exports.GetChannelMemberInput$ = exports.GetChannelInput$ = exports.DeleteSectionOutput$ = exports.DeleteSectionInput$ = void 0;
|
|
5
5
|
exports.SendMessageInput$ = exports.SendGiphyOutput$ = exports.SendGiphyInput$ = exports.Section$ = exports.SearchMessagesOutput$ = exports.SearchMessagesInput$ = exports.SearchMessageHit$ = exports.SearchChannelsOutput$ = exports.SearchChannelsInput$ = exports.SearchChannelHit$ = exports.RenameSectionOutput$ = exports.RenameSectionInput$ = exports.RemoveChannelFromSectionOutput$ = exports.RemoveChannelFromSectionInput$ = exports.Reaction$ = exports.QueryChannelsOutput$ = exports.QueryChannelsInput$ = exports.PinMessageOutput$ = exports.PinMessageInput$ = exports.PinChannelOutput$ = exports.PinChannelInput$ = exports.PartialUpdateMessageSetInput$ = exports.PartialUpdateMessageOutput$ = exports.PartialUpdateMessageInput$ = exports.PartialUpdateChannelSetOptions$ = exports.PartialUpdateChannelOutput$ = exports.PartialUpdateChannelInput$ = exports.MuteChannelOutput$ = exports.MuteChannelInput$ = exports.MultipleMembersJoinedSystemMessage$ = exports.MoveChannelToSectionOutput$ = exports.MoveChannelToSectionInput$ = exports.MessageTemplateConfig$ = exports.MessageQuoteRef$ = exports.MessageQuote$ = exports.MessageGiphy$ = exports.MessageForwardRef$ = exports.MessageForward$ = exports.MessageAttachmentRequest$ = exports.MessageAttachment$ = exports.Message$ = exports.MentionEntry$ = exports.MentionChannelPreview$ = exports.MarkUnreadOutput$ = exports.MarkUnreadInput$ = exports.MarkReadOutput$ = exports.MarkReadInput$ = exports.ListMessagesOutput$ = exports.ListMessagesInput$ = exports.ListMentionsOutput$ = void 0;
|
|
6
6
|
exports.GetInbox$ = exports.GetFilePresignedDownloadUrl$ = exports.GetDirectChannelId$ = exports.GetChannelMember$ = exports.GetChannel$ = exports.DeleteSection$ = exports.DeleteMessageReaction$ = exports.DeleteMessage$ = exports.DeleteChannelMember$ = exports.DeleteChannel$ = exports.CreateSection$ = exports.CreateKiteChannel$ = exports.CreateGroupChannel$ = exports.AssignChannel$ = exports.AddChannelMembers$ = exports.AddChannelMember$ = exports.SystemMessage$ = exports.Element$ = exports.ButtonHandler$ = exports.AssignChannelServiceRequest$ = exports.AssignChannelAssigneeRequest$ = exports.ActionElement$ = exports.WhatsAppClosedSystemMessage$ = exports.WelcomeMessage$ = exports.UserToInvite$ = exports.UploadFileOutput$ = exports.UploadFileOptions$ = exports.UploadFileInput$ = exports.UploadedFileInfo$ = exports.UpdateMessageOutput$ = exports.UpdateMessageInput$ = exports.UpdateChannelOutput$ = exports.UpdateChannelInput$ = exports.UnpinMessageOutput$ = exports.UnpinMessageInput$ = exports.UnpinChannelOutput$ = exports.UnpinChannelInput$ = exports.UnmuteChannelOutput$ = exports.UnmuteChannelInput$ = exports.ShowChannelOutput$ = exports.ShowChannelInput$ = exports.SendTypingStopOutput$ = exports.SendTypingStopInput$ = exports.SendTypingStartOutput$ = exports.SendTypingStartInput$ = exports.SendSystemMessageOutput$ = exports.SendSystemMessageInput$ = exports.SendMessageReactionOutput$ = exports.SendMessageReactionInput$ = exports.SendMessageOutput$ = void 0;
|
|
7
|
-
exports.UploadFile$ = exports.UpdateMessage$ = exports.UpdateChannel$ = exports.UnpinMessage$ = exports.UnpinChannel$ = exports.UnmuteChannel$ = exports.ShowChannel$ = exports.SendTypingStop$ = exports.SendTypingStart$ = exports.SendSystemMessage$ = exports.SendMessageReaction$ = exports.SendMessage$ = exports.SendGiphy$ = exports.SearchMessages$ = exports.SearchChannels$ = exports.RenameSection$ = exports.RemoveChannelFromSection$ = exports.QueryChannels$ = exports.PinMessage$ = exports.PinChannel$ = exports.PartialUpdateMessage$ = exports.PartialUpdateChannel$ = exports.MuteChannel$ = exports.MoveChannelToSection$ = exports.MarkUnread$ = exports.MarkRead$ = exports.ListMessages$ = exports.ListMentions$ = exports.ListChannels$ = exports.ListChannelMembersReadStatus$ = exports.ListChannelMembers$ = exports.LeaveChannel$ = exports.JoinChannel$ = exports.HideChannel$ = exports.GetWhatsAppChannelId$ = exports.GetUploadedFileInfo$ = exports.GetToken$ = exports.GetTelephonyChannelId$ = exports.GetSmsChannelId$ = exports.GetOrCreateWhatsAppChannel$ = exports.GetOrCreateTelephonyChannel$ = exports.GetOrCreateSmsChannel$ = exports.GetOrCreateDirectChannel$ = exports.GetMessage$ = void 0;
|
|
7
|
+
exports.UploadFile$ = exports.UpdateMessage$ = exports.UpdateChannel$ = exports.UnpinMessage$ = exports.UnpinChannel$ = exports.UnmuteChannel$ = exports.ShowChannel$ = exports.SendTypingStop$ = exports.SendTypingStart$ = exports.SendSystemMessage$ = exports.SendMessageReaction$ = exports.SendMessage$ = exports.SendGiphy$ = exports.SearchMessages$ = exports.SearchChannels$ = exports.RenameSection$ = exports.RemoveChannelFromSection$ = exports.QueryChannels$ = exports.PinMessage$ = exports.PinChannel$ = exports.PartialUpdateMessage$ = exports.PartialUpdateChannel$ = exports.MuteChannel$ = exports.MoveChannelToSection$ = exports.MarkUnread$ = exports.MarkRead$ = exports.ListMessages$ = exports.ListMentions$ = exports.ListChannels$ = exports.ListChannelMembersReadStatus$ = exports.ListChannelMembers$ = exports.LeaveChannel$ = exports.JoinChannel$ = exports.HideChannel$ = exports.HardDeleteChannel$ = exports.GetWhatsAppChannelId$ = exports.GetUploadedFileInfo$ = exports.GetToken$ = exports.GetTelephonyChannelId$ = exports.GetSmsChannelId$ = exports.GetOrCreateWhatsAppChannel$ = exports.GetOrCreateTelephonyChannel$ = exports.GetOrCreateSmsChannel$ = exports.GetOrCreateDirectChannel$ = exports.GetMessage$ = void 0;
|
|
8
8
|
const _AC = "AssignChannel";
|
|
9
9
|
const _ACAR = "AssignChannelAssigneeRequest";
|
|
10
10
|
const _ACI = "AssignChannelInput";
|
|
@@ -51,7 +51,6 @@ const _DCI = "DeleteChannelInput";
|
|
|
51
51
|
const _DCM = "DeleteChannelMember";
|
|
52
52
|
const _DCMI = "DeleteChannelMemberInput";
|
|
53
53
|
const _DCMO = "DeleteChannelMemberOutput";
|
|
54
|
-
const _DCO = "DeleteChannelOutput";
|
|
55
54
|
const _DM = "DeleteMessage";
|
|
56
55
|
const _DMI = "DeleteMessageInput";
|
|
57
56
|
const _DMO = "DeleteMessageOutput";
|
|
@@ -113,6 +112,8 @@ const _GWACIO = "GetWhatsAppChannelIdOutput";
|
|
|
113
112
|
const _HC = "HideChannel";
|
|
114
113
|
const _HCI = "HideChannelInput";
|
|
115
114
|
const _HCO = "HideChannelOutput";
|
|
115
|
+
const _HDC = "HardDeleteChannel";
|
|
116
|
+
const _HDCI = "HardDeleteChannelInput";
|
|
116
117
|
const _IC = "InboxChannel";
|
|
117
118
|
const _ICL = "InboxChannelList";
|
|
118
119
|
const _IM = "InitialMessage";
|
|
@@ -346,6 +347,7 @@ const _lAA = "lastActivityAt";
|
|
|
346
347
|
const _lM = "lastMessage";
|
|
347
348
|
const _lR = "latestReactions";
|
|
348
349
|
const _lRA = "lastReadAt";
|
|
350
|
+
const _lRTS = "lastReadTimelineSeq";
|
|
349
351
|
const _lRVS = "lastReadVisibleSeq";
|
|
350
352
|
const _li = "link";
|
|
351
353
|
const _m = "message";
|
|
@@ -382,6 +384,7 @@ const _pA = "pinnedAt";
|
|
|
382
384
|
const _pB = "pinnedBy";
|
|
383
385
|
const _pC = "pictureColor";
|
|
384
386
|
const _pDU = "presignedDownloadUrl";
|
|
387
|
+
const _pI = "pollId";
|
|
385
388
|
const _pMI = "pinnedMessageIds";
|
|
386
389
|
const _pUU = "presignedUploadUrl";
|
|
387
390
|
const _ph = "phone";
|
|
@@ -570,6 +573,7 @@ exports.errorTypeRegistries = [
|
|
|
570
573
|
n1_registry,
|
|
571
574
|
n2_registry,
|
|
572
575
|
];
|
|
576
|
+
var __Unit = "unit";
|
|
573
577
|
exports.TemplateParameter$ = [3, n3, _TP,
|
|
574
578
|
0,
|
|
575
579
|
[_n, _v],
|
|
@@ -715,11 +719,6 @@ exports.DeleteChannelMemberOutput$ = [3, n1, _DCMO,
|
|
|
715
719
|
[],
|
|
716
720
|
[]
|
|
717
721
|
];
|
|
718
|
-
exports.DeleteChannelOutput$ = [3, n1, _DCO,
|
|
719
|
-
0,
|
|
720
|
-
[],
|
|
721
|
-
[]
|
|
722
|
-
];
|
|
723
722
|
exports.DeleteMessageInput$ = [3, n1, _DMI,
|
|
724
723
|
0,
|
|
725
724
|
[_cI, _mIe, _cIo, _uI],
|
|
@@ -900,6 +899,11 @@ exports.GetWhatsAppChannelIdOutput$ = [3, n1, _GWACIO,
|
|
|
900
899
|
[_cI],
|
|
901
900
|
[0], 1
|
|
902
901
|
];
|
|
902
|
+
exports.HardDeleteChannelInput$ = [3, n1, _HDCI,
|
|
903
|
+
0,
|
|
904
|
+
[_cI, _cIo, _uI],
|
|
905
|
+
[[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }]], 1
|
|
906
|
+
];
|
|
903
907
|
exports.HideChannelInput$ = [3, n1, _HCI,
|
|
904
908
|
0,
|
|
905
909
|
[_cI, _cIo, _uI],
|
|
@@ -917,8 +921,8 @@ exports.InboxChannel$ = [3, n1, _IC,
|
|
|
917
921
|
];
|
|
918
922
|
exports.InboxState$ = [3, n1, _IS,
|
|
919
923
|
0,
|
|
920
|
-
[_sIe, _uC, _mUC, _hi, _mu, _pin, _lRVS, _lRA, _mU, _uMA],
|
|
921
|
-
[64 | 0, 1, 1, 2, 2, 2, 1, 0, 0, 1], 6
|
|
924
|
+
[_sIe, _uC, _mUC, _hi, _mu, _pin, _lRVS, _lRTS, _lRA, _mU, _uMA],
|
|
925
|
+
[64 | 0, 1, 1, 2, 2, 2, 1, 1, 0, 0, 1], 6
|
|
922
926
|
];
|
|
923
927
|
exports.InitialMessage$ = [3, n1, _IM,
|
|
924
928
|
0,
|
|
@@ -1002,8 +1006,8 @@ exports.ListMessagesOutput$ = [3, n1, _LMOi,
|
|
|
1002
1006
|
];
|
|
1003
1007
|
exports.MarkReadInput$ = [3, n1, _MRI,
|
|
1004
1008
|
0,
|
|
1005
|
-
[_cI, _cIo, _uI, _lRVS],
|
|
1006
|
-
[[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], 1], 1
|
|
1009
|
+
[_cI, _cIo, _uI, _lRVS, _mIe],
|
|
1010
|
+
[[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], 1, 0], 1
|
|
1007
1011
|
];
|
|
1008
1012
|
exports.MarkReadOutput$ = [3, n1, _MRO,
|
|
1009
1013
|
0,
|
|
@@ -1032,8 +1036,8 @@ exports.MentionEntry$ = [3, n1, _ME,
|
|
|
1032
1036
|
];
|
|
1033
1037
|
exports.Message$ = [3, n1, _M,
|
|
1034
1038
|
0,
|
|
1035
|
-
[_mIe, _uI, _mT, _att, _men, _rC, _pin, _sy, _tS, _vS, _cV, _mV, _cA, _t, _q, _fo, _lR, _pA, _pB, _eA, _dA, _el, _w, _wS, _sm, _sS, _ma, _g, _si, _eve],
|
|
1036
|
-
[0, 0, 0, () => MessageAttachmentList, 64 | 0, 128 | 1, 2, 2, 1, 1, 1, 1, 0, 0, () => exports.MessageQuote$, () => exports.MessageForward$, () => ReactionList, 0, 0, 0, 0, () => ElementsList, 2, 0, 2, 0, 2, () => exports.MessageGiphy$, 2, 0], 13
|
|
1039
|
+
[_mIe, _uI, _mT, _att, _men, _rC, _pin, _sy, _tS, _vS, _cV, _mV, _cA, _t, _q, _fo, _lR, _pA, _pB, _eA, _dA, _el, _w, _wS, _sm, _sS, _ma, _g, _si, _eve, _pI],
|
|
1040
|
+
[0, 0, 0, () => MessageAttachmentList, 64 | 0, 128 | 1, 2, 2, 1, 1, 1, 1, 0, 0, () => exports.MessageQuote$, () => exports.MessageForward$, () => ReactionList, 0, 0, 0, 0, () => ElementsList, 2, 0, 2, 0, 2, () => exports.MessageGiphy$, 2, 0, 0], 13
|
|
1037
1041
|
];
|
|
1038
1042
|
exports.MessageAttachment$ = [3, n1, _MA,
|
|
1039
1043
|
0,
|
|
@@ -1488,7 +1492,7 @@ exports.CreateSection$ = [9, n1, _CS,
|
|
|
1488
1492
|
{ [_ht]: ["POST", "/api/v1/sections", 200] }, () => exports.CreateSectionInput$, () => exports.CreateSectionOutput$
|
|
1489
1493
|
];
|
|
1490
1494
|
exports.DeleteChannel$ = [9, n1, _DC,
|
|
1491
|
-
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}", 204] }, () => exports.DeleteChannelInput$, () =>
|
|
1495
|
+
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}", 204] }, () => exports.DeleteChannelInput$, () => __Unit
|
|
1492
1496
|
];
|
|
1493
1497
|
exports.DeleteChannelMember$ = [9, n1, _DCM,
|
|
1494
1498
|
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/members/{memberId}", 204] }, () => exports.DeleteChannelMemberInput$, () => exports.DeleteChannelMemberOutput$
|
|
@@ -1547,6 +1551,9 @@ exports.GetUploadedFileInfo$ = [9, n1, _GUFI,
|
|
|
1547
1551
|
exports.GetWhatsAppChannelId$ = [9, n1, _GWACI,
|
|
1548
1552
|
{ [_ht]: ["POST", "/api/v1/channels/whatsapp/resolve-id", 200] }, () => exports.GetWhatsAppChannelIdInput$, () => exports.GetWhatsAppChannelIdOutput$
|
|
1549
1553
|
];
|
|
1554
|
+
exports.HardDeleteChannel$ = [9, n1, _HDC,
|
|
1555
|
+
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/hard-delete", 204] }, () => exports.HardDeleteChannelInput$, () => __Unit
|
|
1556
|
+
];
|
|
1550
1557
|
exports.HideChannel$ = [9, n1, _HC,
|
|
1551
1558
|
{ [_ht]: ["POST", "/api/v1/channels/{channelId}/hide", 204] }, () => exports.HideChannelInput$, () => exports.HideChannelOutput$
|
|
1552
1559
|
];
|
|
@@ -1599,7 +1606,7 @@ exports.QueryChannels$ = [9, n1, _QC,
|
|
|
1599
1606
|
{ [_ht]: ["POST", "/api/v1/channels/query", 200] }, () => exports.QueryChannelsInput$, () => exports.QueryChannelsOutput$
|
|
1600
1607
|
];
|
|
1601
1608
|
exports.RemoveChannelFromSection$ = [9, n1, _RCFS,
|
|
1602
|
-
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/sections/{sectionId}",
|
|
1609
|
+
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/sections/{sectionId}", 200] }, () => exports.RemoveChannelFromSectionInput$, () => exports.RemoveChannelFromSectionOutput$
|
|
1603
1610
|
];
|
|
1604
1611
|
exports.RenameSection$ = [9, n1, _RS,
|
|
1605
1612
|
{ [_ht]: ["PATCH", "/api/v1/sections/{sectionId}", 200] }, () => exports.RenameSectionInput$, () => exports.RenameSectionOutput$
|
|
@@ -1632,7 +1639,7 @@ exports.ShowChannel$ = [9, n1, _SCh,
|
|
|
1632
1639
|
{ [_ht]: ["POST", "/api/v1/channels/{channelId}/show", 204] }, () => exports.ShowChannelInput$, () => exports.ShowChannelOutput$
|
|
1633
1640
|
];
|
|
1634
1641
|
exports.UnmuteChannel$ = [9, n1, _UC,
|
|
1635
|
-
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/mute",
|
|
1642
|
+
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/mute", 200] }, () => exports.UnmuteChannelInput$, () => exports.UnmuteChannelOutput$
|
|
1636
1643
|
];
|
|
1637
1644
|
exports.UnpinChannel$ = [9, n1, _UCn,
|
|
1638
1645
|
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/pin", 204] }, () => exports.UnpinChannelInput$, () => exports.UnpinChannelOutput$
|
package/dist-es/StreamService.js
CHANGED
|
@@ -25,6 +25,7 @@ import { GetTelephonyChannelIdCommand, } from "./commands/GetTelephonyChannelIdC
|
|
|
25
25
|
import { GetTokenCommand } from "./commands/GetTokenCommand";
|
|
26
26
|
import { GetUploadedFileInfoCommand, } from "./commands/GetUploadedFileInfoCommand";
|
|
27
27
|
import { GetWhatsAppChannelIdCommand, } from "./commands/GetWhatsAppChannelIdCommand";
|
|
28
|
+
import { HardDeleteChannelCommand, } from "./commands/HardDeleteChannelCommand";
|
|
28
29
|
import { HideChannelCommand, } from "./commands/HideChannelCommand";
|
|
29
30
|
import { JoinChannelCommand, } from "./commands/JoinChannelCommand";
|
|
30
31
|
import { LeaveChannelCommand, } from "./commands/LeaveChannelCommand";
|
|
@@ -87,6 +88,7 @@ const commands = {
|
|
|
87
88
|
GetTokenCommand,
|
|
88
89
|
GetUploadedFileInfoCommand,
|
|
89
90
|
GetWhatsAppChannelIdCommand,
|
|
91
|
+
HardDeleteChannelCommand,
|
|
90
92
|
HideChannelCommand,
|
|
91
93
|
JoinChannelCommand,
|
|
92
94
|
LeaveChannelCommand,
|
|
@@ -33,6 +33,13 @@ function createWildixAuthXbsHttpAuthOption(authParameters) {
|
|
|
33
33
|
export const defaultStreamServiceHttpAuthSchemeProvider = (authParameters) => {
|
|
34
34
|
const options = [];
|
|
35
35
|
switch (authParameters.operation) {
|
|
36
|
+
case "HardDeleteChannel":
|
|
37
|
+
{
|
|
38
|
+
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
39
|
+
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
;
|
|
36
43
|
default: {
|
|
37
44
|
options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
|
|
38
45
|
options.push(createWildixAuthS2sHttpAuthOption(authParameters));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { HardDeleteChannel$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class HardDeleteChannelCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("StreamService", "HardDeleteChannel", {})
|
|
13
|
+
.n("StreamServiceClient", "HardDeleteChannelCommand")
|
|
14
|
+
.sc(HardDeleteChannel$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -24,6 +24,7 @@ export * from "./GetTelephonyChannelIdCommand";
|
|
|
24
24
|
export * from "./GetTokenCommand";
|
|
25
25
|
export * from "./GetUploadedFileInfoCommand";
|
|
26
26
|
export * from "./GetWhatsAppChannelIdCommand";
|
|
27
|
+
export * from "./HardDeleteChannelCommand";
|
|
27
28
|
export * from "./HideChannelCommand";
|
|
28
29
|
export * from "./JoinChannelCommand";
|
|
29
30
|
export * from "./LeaveChannelCommand";
|
|
@@ -44,7 +44,6 @@ const _DCI = "DeleteChannelInput";
|
|
|
44
44
|
const _DCM = "DeleteChannelMember";
|
|
45
45
|
const _DCMI = "DeleteChannelMemberInput";
|
|
46
46
|
const _DCMO = "DeleteChannelMemberOutput";
|
|
47
|
-
const _DCO = "DeleteChannelOutput";
|
|
48
47
|
const _DM = "DeleteMessage";
|
|
49
48
|
const _DMI = "DeleteMessageInput";
|
|
50
49
|
const _DMO = "DeleteMessageOutput";
|
|
@@ -106,6 +105,8 @@ const _GWACIO = "GetWhatsAppChannelIdOutput";
|
|
|
106
105
|
const _HC = "HideChannel";
|
|
107
106
|
const _HCI = "HideChannelInput";
|
|
108
107
|
const _HCO = "HideChannelOutput";
|
|
108
|
+
const _HDC = "HardDeleteChannel";
|
|
109
|
+
const _HDCI = "HardDeleteChannelInput";
|
|
109
110
|
const _IC = "InboxChannel";
|
|
110
111
|
const _ICL = "InboxChannelList";
|
|
111
112
|
const _IM = "InitialMessage";
|
|
@@ -339,6 +340,7 @@ const _lAA = "lastActivityAt";
|
|
|
339
340
|
const _lM = "lastMessage";
|
|
340
341
|
const _lR = "latestReactions";
|
|
341
342
|
const _lRA = "lastReadAt";
|
|
343
|
+
const _lRTS = "lastReadTimelineSeq";
|
|
342
344
|
const _lRVS = "lastReadVisibleSeq";
|
|
343
345
|
const _li = "link";
|
|
344
346
|
const _m = "message";
|
|
@@ -375,6 +377,7 @@ const _pA = "pinnedAt";
|
|
|
375
377
|
const _pB = "pinnedBy";
|
|
376
378
|
const _pC = "pictureColor";
|
|
377
379
|
const _pDU = "presignedDownloadUrl";
|
|
380
|
+
const _pI = "pollId";
|
|
378
381
|
const _pMI = "pinnedMessageIds";
|
|
379
382
|
const _pUU = "presignedUploadUrl";
|
|
380
383
|
const _ph = "phone";
|
|
@@ -563,6 +566,7 @@ export const errorTypeRegistries = [
|
|
|
563
566
|
n1_registry,
|
|
564
567
|
n2_registry,
|
|
565
568
|
];
|
|
569
|
+
var __Unit = "unit";
|
|
566
570
|
export var TemplateParameter$ = [3, n3, _TP,
|
|
567
571
|
0,
|
|
568
572
|
[_n, _v],
|
|
@@ -708,11 +712,6 @@ export var DeleteChannelMemberOutput$ = [3, n1, _DCMO,
|
|
|
708
712
|
[],
|
|
709
713
|
[]
|
|
710
714
|
];
|
|
711
|
-
export var DeleteChannelOutput$ = [3, n1, _DCO,
|
|
712
|
-
0,
|
|
713
|
-
[],
|
|
714
|
-
[]
|
|
715
|
-
];
|
|
716
715
|
export var DeleteMessageInput$ = [3, n1, _DMI,
|
|
717
716
|
0,
|
|
718
717
|
[_cI, _mIe, _cIo, _uI],
|
|
@@ -893,6 +892,11 @@ export var GetWhatsAppChannelIdOutput$ = [3, n1, _GWACIO,
|
|
|
893
892
|
[_cI],
|
|
894
893
|
[0], 1
|
|
895
894
|
];
|
|
895
|
+
export var HardDeleteChannelInput$ = [3, n1, _HDCI,
|
|
896
|
+
0,
|
|
897
|
+
[_cI, _cIo, _uI],
|
|
898
|
+
[[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }]], 1
|
|
899
|
+
];
|
|
896
900
|
export var HideChannelInput$ = [3, n1, _HCI,
|
|
897
901
|
0,
|
|
898
902
|
[_cI, _cIo, _uI],
|
|
@@ -910,8 +914,8 @@ export var InboxChannel$ = [3, n1, _IC,
|
|
|
910
914
|
];
|
|
911
915
|
export var InboxState$ = [3, n1, _IS,
|
|
912
916
|
0,
|
|
913
|
-
[_sIe, _uC, _mUC, _hi, _mu, _pin, _lRVS, _lRA, _mU, _uMA],
|
|
914
|
-
[64 | 0, 1, 1, 2, 2, 2, 1, 0, 0, 1], 6
|
|
917
|
+
[_sIe, _uC, _mUC, _hi, _mu, _pin, _lRVS, _lRTS, _lRA, _mU, _uMA],
|
|
918
|
+
[64 | 0, 1, 1, 2, 2, 2, 1, 1, 0, 0, 1], 6
|
|
915
919
|
];
|
|
916
920
|
export var InitialMessage$ = [3, n1, _IM,
|
|
917
921
|
0,
|
|
@@ -995,8 +999,8 @@ export var ListMessagesOutput$ = [3, n1, _LMOi,
|
|
|
995
999
|
];
|
|
996
1000
|
export var MarkReadInput$ = [3, n1, _MRI,
|
|
997
1001
|
0,
|
|
998
|
-
[_cI, _cIo, _uI, _lRVS],
|
|
999
|
-
[[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], 1], 1
|
|
1002
|
+
[_cI, _cIo, _uI, _lRVS, _mIe],
|
|
1003
|
+
[[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], 1, 0], 1
|
|
1000
1004
|
];
|
|
1001
1005
|
export var MarkReadOutput$ = [3, n1, _MRO,
|
|
1002
1006
|
0,
|
|
@@ -1025,8 +1029,8 @@ export var MentionEntry$ = [3, n1, _ME,
|
|
|
1025
1029
|
];
|
|
1026
1030
|
export var Message$ = [3, n1, _M,
|
|
1027
1031
|
0,
|
|
1028
|
-
[_mIe, _uI, _mT, _att, _men, _rC, _pin, _sy, _tS, _vS, _cV, _mV, _cA, _t, _q, _fo, _lR, _pA, _pB, _eA, _dA, _el, _w, _wS, _sm, _sS, _ma, _g, _si, _eve],
|
|
1029
|
-
[0, 0, 0, () => MessageAttachmentList, 64 | 0, 128 | 1, 2, 2, 1, 1, 1, 1, 0, 0, () => MessageQuote$, () => MessageForward$, () => ReactionList, 0, 0, 0, 0, () => ElementsList, 2, 0, 2, 0, 2, () => MessageGiphy$, 2, 0], 13
|
|
1032
|
+
[_mIe, _uI, _mT, _att, _men, _rC, _pin, _sy, _tS, _vS, _cV, _mV, _cA, _t, _q, _fo, _lR, _pA, _pB, _eA, _dA, _el, _w, _wS, _sm, _sS, _ma, _g, _si, _eve, _pI],
|
|
1033
|
+
[0, 0, 0, () => MessageAttachmentList, 64 | 0, 128 | 1, 2, 2, 1, 1, 1, 1, 0, 0, () => MessageQuote$, () => MessageForward$, () => ReactionList, 0, 0, 0, 0, () => ElementsList, 2, 0, 2, 0, 2, () => MessageGiphy$, 2, 0, 0], 13
|
|
1030
1034
|
];
|
|
1031
1035
|
export var MessageAttachment$ = [3, n1, _MA,
|
|
1032
1036
|
0,
|
|
@@ -1481,7 +1485,7 @@ export var CreateSection$ = [9, n1, _CS,
|
|
|
1481
1485
|
{ [_ht]: ["POST", "/api/v1/sections", 200] }, () => CreateSectionInput$, () => CreateSectionOutput$
|
|
1482
1486
|
];
|
|
1483
1487
|
export var DeleteChannel$ = [9, n1, _DC,
|
|
1484
|
-
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}", 204] }, () => DeleteChannelInput$, () =>
|
|
1488
|
+
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}", 204] }, () => DeleteChannelInput$, () => __Unit
|
|
1485
1489
|
];
|
|
1486
1490
|
export var DeleteChannelMember$ = [9, n1, _DCM,
|
|
1487
1491
|
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/members/{memberId}", 204] }, () => DeleteChannelMemberInput$, () => DeleteChannelMemberOutput$
|
|
@@ -1540,6 +1544,9 @@ export var GetUploadedFileInfo$ = [9, n1, _GUFI,
|
|
|
1540
1544
|
export var GetWhatsAppChannelId$ = [9, n1, _GWACI,
|
|
1541
1545
|
{ [_ht]: ["POST", "/api/v1/channels/whatsapp/resolve-id", 200] }, () => GetWhatsAppChannelIdInput$, () => GetWhatsAppChannelIdOutput$
|
|
1542
1546
|
];
|
|
1547
|
+
export var HardDeleteChannel$ = [9, n1, _HDC,
|
|
1548
|
+
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/hard-delete", 204] }, () => HardDeleteChannelInput$, () => __Unit
|
|
1549
|
+
];
|
|
1543
1550
|
export var HideChannel$ = [9, n1, _HC,
|
|
1544
1551
|
{ [_ht]: ["POST", "/api/v1/channels/{channelId}/hide", 204] }, () => HideChannelInput$, () => HideChannelOutput$
|
|
1545
1552
|
];
|
|
@@ -1592,7 +1599,7 @@ export var QueryChannels$ = [9, n1, _QC,
|
|
|
1592
1599
|
{ [_ht]: ["POST", "/api/v1/channels/query", 200] }, () => QueryChannelsInput$, () => QueryChannelsOutput$
|
|
1593
1600
|
];
|
|
1594
1601
|
export var RemoveChannelFromSection$ = [9, n1, _RCFS,
|
|
1595
|
-
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/sections/{sectionId}",
|
|
1602
|
+
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/sections/{sectionId}", 200] }, () => RemoveChannelFromSectionInput$, () => RemoveChannelFromSectionOutput$
|
|
1596
1603
|
];
|
|
1597
1604
|
export var RenameSection$ = [9, n1, _RS,
|
|
1598
1605
|
{ [_ht]: ["PATCH", "/api/v1/sections/{sectionId}", 200] }, () => RenameSectionInput$, () => RenameSectionOutput$
|
|
@@ -1625,7 +1632,7 @@ export var ShowChannel$ = [9, n1, _SCh,
|
|
|
1625
1632
|
{ [_ht]: ["POST", "/api/v1/channels/{channelId}/show", 204] }, () => ShowChannelInput$, () => ShowChannelOutput$
|
|
1626
1633
|
];
|
|
1627
1634
|
export var UnmuteChannel$ = [9, n1, _UC,
|
|
1628
|
-
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/mute",
|
|
1635
|
+
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/mute", 200] }, () => UnmuteChannelInput$, () => UnmuteChannelOutput$
|
|
1629
1636
|
];
|
|
1630
1637
|
export var UnpinChannel$ = [9, n1, _UCn,
|
|
1631
1638
|
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/pin", 204] }, () => UnpinChannelInput$, () => UnpinChannelOutput$
|
|
@@ -25,6 +25,7 @@ import { type GetTelephonyChannelIdCommandInput, type GetTelephonyChannelIdComma
|
|
|
25
25
|
import { type GetTokenCommandInput, type GetTokenCommandOutput } from "./commands/GetTokenCommand";
|
|
26
26
|
import { type GetUploadedFileInfoCommandInput, type GetUploadedFileInfoCommandOutput } from "./commands/GetUploadedFileInfoCommand";
|
|
27
27
|
import { type GetWhatsAppChannelIdCommandInput, type GetWhatsAppChannelIdCommandOutput } from "./commands/GetWhatsAppChannelIdCommand";
|
|
28
|
+
import { type HardDeleteChannelCommandInput, type HardDeleteChannelCommandOutput } from "./commands/HardDeleteChannelCommand";
|
|
28
29
|
import { type HideChannelCommandInput, type HideChannelCommandOutput } from "./commands/HideChannelCommand";
|
|
29
30
|
import { type JoinChannelCommandInput, type JoinChannelCommandOutput } from "./commands/JoinChannelCommand";
|
|
30
31
|
import { type LeaveChannelCommandInput, type LeaveChannelCommandOutput } from "./commands/LeaveChannelCommand";
|
|
@@ -222,6 +223,12 @@ export interface StreamService {
|
|
|
222
223
|
getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, options?: __HttpHandlerOptions): Promise<GetWhatsAppChannelIdCommandOutput>;
|
|
223
224
|
getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, cb: (err: any, data?: GetWhatsAppChannelIdCommandOutput) => void): void;
|
|
224
225
|
getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWhatsAppChannelIdCommandOutput) => void): void;
|
|
226
|
+
/**
|
|
227
|
+
* @see {@link HardDeleteChannelCommand}
|
|
228
|
+
*/
|
|
229
|
+
hardDeleteChannel(args: HardDeleteChannelCommandInput, options?: __HttpHandlerOptions): Promise<HardDeleteChannelCommandOutput>;
|
|
230
|
+
hardDeleteChannel(args: HardDeleteChannelCommandInput, cb: (err: any, data?: HardDeleteChannelCommandOutput) => void): void;
|
|
231
|
+
hardDeleteChannel(args: HardDeleteChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: HardDeleteChannelCommandOutput) => void): void;
|
|
225
232
|
/**
|
|
226
233
|
* @see {@link HideChannelCommand}
|
|
227
234
|
*/
|
|
@@ -31,6 +31,7 @@ import type { GetTelephonyChannelIdCommandInput, GetTelephonyChannelIdCommandOut
|
|
|
31
31
|
import type { GetTokenCommandInput, GetTokenCommandOutput } from "./commands/GetTokenCommand";
|
|
32
32
|
import type { GetUploadedFileInfoCommandInput, GetUploadedFileInfoCommandOutput } from "./commands/GetUploadedFileInfoCommand";
|
|
33
33
|
import type { GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput } from "./commands/GetWhatsAppChannelIdCommand";
|
|
34
|
+
import type { HardDeleteChannelCommandInput, HardDeleteChannelCommandOutput } from "./commands/HardDeleteChannelCommand";
|
|
34
35
|
import type { HideChannelCommandInput, HideChannelCommandOutput } from "./commands/HideChannelCommand";
|
|
35
36
|
import type { JoinChannelCommandInput, JoinChannelCommandOutput } from "./commands/JoinChannelCommand";
|
|
36
37
|
import type { LeaveChannelCommandInput, LeaveChannelCommandOutput } from "./commands/LeaveChannelCommand";
|
|
@@ -71,11 +72,11 @@ export { __Client };
|
|
|
71
72
|
/**
|
|
72
73
|
* @public
|
|
73
74
|
*/
|
|
74
|
-
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateKiteChannelCommandInput | CreateSectionCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DeleteSectionCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetOrCreateSmsChannelCommandInput | GetOrCreateTelephonyChannelCommandInput | GetOrCreateWhatsAppChannelCommandInput | GetSmsChannelIdCommandInput | GetTelephonyChannelIdCommandInput | GetTokenCommandInput | GetUploadedFileInfoCommandInput | GetWhatsAppChannelIdCommandInput | HideChannelCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelMembersReadStatusCommandInput | ListChannelsCommandInput | ListMentionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | MoveChannelToSectionCommandInput | MuteChannelCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | RemoveChannelFromSectionCommandInput | RenameSectionCommandInput | SearchChannelsCommandInput | SearchMessagesCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendSystemMessageCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UnmuteChannelCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
75
|
+
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateKiteChannelCommandInput | CreateSectionCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DeleteSectionCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetOrCreateSmsChannelCommandInput | GetOrCreateTelephonyChannelCommandInput | GetOrCreateWhatsAppChannelCommandInput | GetSmsChannelIdCommandInput | GetTelephonyChannelIdCommandInput | GetTokenCommandInput | GetUploadedFileInfoCommandInput | GetWhatsAppChannelIdCommandInput | HardDeleteChannelCommandInput | HideChannelCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelMembersReadStatusCommandInput | ListChannelsCommandInput | ListMentionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | MoveChannelToSectionCommandInput | MuteChannelCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | RemoveChannelFromSectionCommandInput | RenameSectionCommandInput | SearchChannelsCommandInput | SearchMessagesCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendSystemMessageCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UnmuteChannelCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
75
76
|
/**
|
|
76
77
|
* @public
|
|
77
78
|
*/
|
|
78
|
-
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateKiteChannelCommandOutput | CreateSectionCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DeleteSectionCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetOrCreateSmsChannelCommandOutput | GetOrCreateTelephonyChannelCommandOutput | GetOrCreateWhatsAppChannelCommandOutput | GetSmsChannelIdCommandOutput | GetTelephonyChannelIdCommandOutput | GetTokenCommandOutput | GetUploadedFileInfoCommandOutput | GetWhatsAppChannelIdCommandOutput | HideChannelCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelMembersReadStatusCommandOutput | ListChannelsCommandOutput | ListMentionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | MoveChannelToSectionCommandOutput | MuteChannelCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | RemoveChannelFromSectionCommandOutput | RenameSectionCommandOutput | SearchChannelsCommandOutput | SearchMessagesCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendSystemMessageCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UnmuteChannelCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
79
|
+
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateKiteChannelCommandOutput | CreateSectionCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DeleteSectionCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetOrCreateSmsChannelCommandOutput | GetOrCreateTelephonyChannelCommandOutput | GetOrCreateWhatsAppChannelCommandOutput | GetSmsChannelIdCommandOutput | GetTelephonyChannelIdCommandOutput | GetTokenCommandOutput | GetUploadedFileInfoCommandOutput | GetWhatsAppChannelIdCommandOutput | HardDeleteChannelCommandOutput | HideChannelCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelMembersReadStatusCommandOutput | ListChannelsCommandOutput | ListMentionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | MoveChannelToSectionCommandOutput | MuteChannelCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | RemoveChannelFromSectionCommandOutput | RenameSectionCommandOutput | SearchChannelsCommandOutput | SearchMessagesCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendSystemMessageCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UnmuteChannelCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
79
80
|
/**
|
|
80
81
|
* @public
|
|
81
82
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { DeleteChannelInput
|
|
3
|
+
import type { DeleteChannelInput } from "../models/models_0";
|
|
4
4
|
import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
5
5
|
/**
|
|
6
6
|
* @public
|
|
@@ -19,7 +19,7 @@ export interface DeleteChannelCommandInput extends DeleteChannelInput {
|
|
|
19
19
|
*
|
|
20
20
|
* The output of {@link DeleteChannelCommand}.
|
|
21
21
|
*/
|
|
22
|
-
export interface DeleteChannelCommandOutput extends
|
|
22
|
+
export interface DeleteChannelCommandOutput extends __MetadataBearer {
|
|
23
23
|
}
|
|
24
24
|
declare const DeleteChannelCommand_base: {
|
|
25
25
|
new (input: DeleteChannelCommandInput): import("@smithy/core/client").CommandImpl<DeleteChannelCommandInput, DeleteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
@@ -53,12 +53,14 @@ declare const DeleteChannelCommand_base: {
|
|
|
53
53
|
* @see {@link DeleteChannelCommandOutput} for command's `response` shape.
|
|
54
54
|
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
55
55
|
*
|
|
56
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
59
|
+
*
|
|
56
60
|
* @throws {@link StreamServiceException} (server fault)
|
|
57
61
|
*
|
|
58
62
|
* @throws {@link UnauthorizedException} (client fault)
|
|
59
63
|
*
|
|
60
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
61
|
-
*
|
|
62
64
|
* @throws {@link ValidationException} (client fault)
|
|
63
65
|
*
|
|
64
66
|
* @throws {@link RateLimitExceededException} (client fault)
|
|
@@ -120,6 +120,7 @@ declare const GetInboxCommand_base: {
|
|
|
120
120
|
* // unreadCount: Number("int"), // required
|
|
121
121
|
* // mentionUnreadCount: Number("int"), // required
|
|
122
122
|
* // lastReadVisibleSeq: Number("long"),
|
|
123
|
+
* // lastReadTimelineSeq: Number("long"),
|
|
123
124
|
* // lastReadAt: "STRING_VALUE",
|
|
124
125
|
* // hidden: true || false, // required
|
|
125
126
|
* // muted: true || false, // required
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { HardDeleteChannelInput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link HardDeleteChannelCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface HardDeleteChannelCommandInput extends HardDeleteChannelInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link HardDeleteChannelCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface HardDeleteChannelCommandOutput extends __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const HardDeleteChannelCommand_base: {
|
|
25
|
+
new (input: HardDeleteChannelCommandInput): import("@smithy/core/client").CommandImpl<HardDeleteChannelCommandInput, HardDeleteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: HardDeleteChannelCommandInput): import("@smithy/core/client").CommandImpl<HardDeleteChannelCommandInput, HardDeleteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Permanently deletes a channel. Idempotent when the channel is already gone. Allows only for S2S requests.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { StreamServiceClient, HardDeleteChannelCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
+
* // const { StreamServiceClient, HardDeleteChannelCommand } = require("@wildix/stream-client"); // CommonJS import
|
|
36
|
+
* // import type { StreamServiceClientConfig } from "@wildix/stream-client";
|
|
37
|
+
* const config = {}; // type is StreamServiceClientConfig
|
|
38
|
+
* const client = new StreamServiceClient(config);
|
|
39
|
+
* const input = { // HardDeleteChannelInput
|
|
40
|
+
* companyId: "STRING_VALUE",
|
|
41
|
+
* userId: "STRING_VALUE",
|
|
42
|
+
* channelId: "STRING_VALUE", // required
|
|
43
|
+
* };
|
|
44
|
+
* const command = new HardDeleteChannelCommand(input);
|
|
45
|
+
* const response = await client.send(command);
|
|
46
|
+
* // {};
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param HardDeleteChannelCommandInput - {@link HardDeleteChannelCommandInput}
|
|
51
|
+
* @returns {@link HardDeleteChannelCommandOutput}
|
|
52
|
+
* @see {@link HardDeleteChannelCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link HardDeleteChannelCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link StreamServiceException} (server fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ValidationException} (client fault)
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link StreamServiceServiceException}
|
|
69
|
+
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
70
|
+
*
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export declare class HardDeleteChannelCommand extends HardDeleteChannelCommand_base {
|
|
75
|
+
/** @internal type navigation helper, not in runtime. */
|
|
76
|
+
protected static __types: {
|
|
77
|
+
api: {
|
|
78
|
+
input: HardDeleteChannelInput;
|
|
79
|
+
output: {};
|
|
80
|
+
};
|
|
81
|
+
sdk: {
|
|
82
|
+
input: HardDeleteChannelCommandInput;
|
|
83
|
+
output: HardDeleteChannelCommandOutput;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -123,6 +123,7 @@ declare const ListChannelsCommand_base: {
|
|
|
123
123
|
* // unreadCount: Number("int"), // required
|
|
124
124
|
* // mentionUnreadCount: Number("int"), // required
|
|
125
125
|
* // lastReadVisibleSeq: Number("long"),
|
|
126
|
+
* // lastReadTimelineSeq: Number("long"),
|
|
126
127
|
* // lastReadAt: "STRING_VALUE",
|
|
127
128
|
* // hidden: true || false, // required
|
|
128
129
|
* // muted: true || false, // required
|
|
@@ -158,6 +158,7 @@ declare const ListMentionsCommand_base: {
|
|
|
158
158
|
* // },
|
|
159
159
|
* // silent: true || false,
|
|
160
160
|
* // event: "STRING_VALUE",
|
|
161
|
+
* // pollId: "STRING_VALUE",
|
|
161
162
|
* // },
|
|
162
163
|
* // channel: { // MentionChannelPreview
|
|
163
164
|
* // channelId: "STRING_VALUE", // required
|
|
@@ -41,6 +41,7 @@ declare const MarkReadCommand_base: {
|
|
|
41
41
|
* userId: "STRING_VALUE",
|
|
42
42
|
* channelId: "STRING_VALUE", // required
|
|
43
43
|
* lastReadVisibleSeq: Number("long"),
|
|
44
|
+
* messageId: "STRING_VALUE",
|
|
44
45
|
* };
|
|
45
46
|
* const command = new MarkReadCommand(input);
|
|
46
47
|
* const response = await client.send(command);
|
|
@@ -52,6 +53,7 @@ declare const MarkReadCommand_base: {
|
|
|
52
53
|
* // unreadCount: Number("int"), // required
|
|
53
54
|
* // mentionUnreadCount: Number("int"), // required
|
|
54
55
|
* // lastReadVisibleSeq: Number("long"),
|
|
56
|
+
* // lastReadTimelineSeq: Number("long"),
|
|
55
57
|
* // lastReadAt: "STRING_VALUE",
|
|
56
58
|
* // hidden: true || false, // required
|
|
57
59
|
* // muted: true || false, // required
|
|
@@ -54,6 +54,7 @@ declare const MarkUnreadCommand_base: {
|
|
|
54
54
|
* // unreadCount: Number("int"), // required
|
|
55
55
|
* // mentionUnreadCount: Number("int"), // required
|
|
56
56
|
* // lastReadVisibleSeq: Number("long"),
|
|
57
|
+
* // lastReadTimelineSeq: Number("long"),
|
|
57
58
|
* // lastReadAt: "STRING_VALUE",
|
|
58
59
|
* // hidden: true || false, // required
|
|
59
60
|
* // muted: true || false, // required
|
|
@@ -52,6 +52,7 @@ declare const MoveChannelToSectionCommand_base: {
|
|
|
52
52
|
* // unreadCount: Number("int"), // required
|
|
53
53
|
* // mentionUnreadCount: Number("int"), // required
|
|
54
54
|
* // lastReadVisibleSeq: Number("long"),
|
|
55
|
+
* // lastReadTimelineSeq: Number("long"),
|
|
55
56
|
* // lastReadAt: "STRING_VALUE",
|
|
56
57
|
* // hidden: true || false, // required
|
|
57
58
|
* // muted: true || false, // required
|
|
@@ -52,6 +52,7 @@ declare const MuteChannelCommand_base: {
|
|
|
52
52
|
* // unreadCount: Number("int"), // required
|
|
53
53
|
* // mentionUnreadCount: Number("int"), // required
|
|
54
54
|
* // lastReadVisibleSeq: Number("long"),
|
|
55
|
+
* // lastReadTimelineSeq: Number("long"),
|
|
55
56
|
* // lastReadAt: "STRING_VALUE",
|
|
56
57
|
* // hidden: true || false, // required
|
|
57
58
|
* // muted: true || false, // required
|
|
@@ -125,6 +125,7 @@ declare const QueryChannelsCommand_base: {
|
|
|
125
125
|
* // unreadCount: Number("int"), // required
|
|
126
126
|
* // mentionUnreadCount: Number("int"), // required
|
|
127
127
|
* // lastReadVisibleSeq: Number("long"),
|
|
128
|
+
* // lastReadTimelineSeq: Number("long"),
|
|
128
129
|
* // lastReadAt: "STRING_VALUE",
|
|
129
130
|
* // hidden: true || false, // required
|
|
130
131
|
* // muted: true || false, // required
|
|
@@ -52,6 +52,7 @@ declare const RemoveChannelFromSectionCommand_base: {
|
|
|
52
52
|
* // unreadCount: Number("int"), // required
|
|
53
53
|
* // mentionUnreadCount: Number("int"), // required
|
|
54
54
|
* // lastReadVisibleSeq: Number("long"),
|
|
55
|
+
* // lastReadTimelineSeq: Number("long"),
|
|
55
56
|
* // lastReadAt: "STRING_VALUE",
|
|
56
57
|
* // hidden: true || false, // required
|
|
57
58
|
* // muted: true || false, // required
|
|
@@ -51,6 +51,7 @@ declare const UnmuteChannelCommand_base: {
|
|
|
51
51
|
* // unreadCount: Number("int"), // required
|
|
52
52
|
* // mentionUnreadCount: Number("int"), // required
|
|
53
53
|
* // lastReadVisibleSeq: Number("long"),
|
|
54
|
+
* // lastReadTimelineSeq: Number("long"),
|
|
54
55
|
* // lastReadAt: "STRING_VALUE",
|
|
55
56
|
* // hidden: true || false, // required
|
|
56
57
|
* // muted: true || false, // required
|
|
@@ -24,6 +24,7 @@ export * from "./GetTelephonyChannelIdCommand";
|
|
|
24
24
|
export * from "./GetTokenCommand";
|
|
25
25
|
export * from "./GetUploadedFileInfoCommand";
|
|
26
26
|
export * from "./GetWhatsAppChannelIdCommand";
|
|
27
|
+
export * from "./HardDeleteChannelCommand";
|
|
27
28
|
export * from "./HideChannelCommand";
|
|
28
29
|
export * from "./JoinChannelCommand";
|
|
29
30
|
export * from "./LeaveChannelCommand";
|
|
@@ -1020,11 +1020,6 @@ export interface DeleteChannelInput {
|
|
|
1020
1020
|
userId?: string | undefined;
|
|
1021
1021
|
channelId: string;
|
|
1022
1022
|
}
|
|
1023
|
-
/**
|
|
1024
|
-
* @public
|
|
1025
|
-
*/
|
|
1026
|
-
export interface DeleteChannelOutput {
|
|
1027
|
-
}
|
|
1028
1023
|
/**
|
|
1029
1024
|
* @public
|
|
1030
1025
|
*/
|
|
@@ -1334,6 +1329,11 @@ export interface Message {
|
|
|
1334
1329
|
* @public
|
|
1335
1330
|
*/
|
|
1336
1331
|
event?: string | undefined;
|
|
1332
|
+
/**
|
|
1333
|
+
* Poll identifier for client rendering.
|
|
1334
|
+
* @public
|
|
1335
|
+
*/
|
|
1336
|
+
pollId?: string | undefined;
|
|
1337
1337
|
}
|
|
1338
1338
|
/**
|
|
1339
1339
|
* @public
|
|
@@ -1528,6 +1528,11 @@ export interface InboxState {
|
|
|
1528
1528
|
* @public
|
|
1529
1529
|
*/
|
|
1530
1530
|
lastReadVisibleSeq?: number | undefined;
|
|
1531
|
+
/**
|
|
1532
|
+
* Timeline anchor paired with lastReadVisibleSeq: a timelineSeq near the read boundary, so a client can load a bounded message window and jump to the first unread. Exact when the cursor was set from a resolved message (MarkRead with messageId, message.new, member add, repair, or a tail read); best-effort on the legacy visibleSeq-only MarkRead and unreadMarkAt MarkUnread paths, where the prior value is retained and may lag or lead lastReadVisibleSeq. Absent until the cursor is first written. Treat as a positioning hint, not an exact bound.
|
|
1533
|
+
* @public
|
|
1534
|
+
*/
|
|
1535
|
+
lastReadTimelineSeq?: number | undefined;
|
|
1531
1536
|
/**
|
|
1532
1537
|
* Timestamp of the most recent read event.
|
|
1533
1538
|
* @public
|
|
@@ -2102,6 +2107,22 @@ export interface GetWhatsAppChannelIdInput {
|
|
|
2102
2107
|
export interface GetWhatsAppChannelIdOutput {
|
|
2103
2108
|
channelId: string;
|
|
2104
2109
|
}
|
|
2110
|
+
/**
|
|
2111
|
+
* @public
|
|
2112
|
+
*/
|
|
2113
|
+
export interface HardDeleteChannelInput {
|
|
2114
|
+
/**
|
|
2115
|
+
* The unique identifier of the tenant when a service token is used.
|
|
2116
|
+
* @public
|
|
2117
|
+
*/
|
|
2118
|
+
companyId?: string | undefined;
|
|
2119
|
+
/**
|
|
2120
|
+
* The unique identifier of the user when a service or PBX token is used.
|
|
2121
|
+
* @public
|
|
2122
|
+
*/
|
|
2123
|
+
userId?: string | undefined;
|
|
2124
|
+
channelId: string;
|
|
2125
|
+
}
|
|
2105
2126
|
/**
|
|
2106
2127
|
* @public
|
|
2107
2128
|
*/
|
|
@@ -2445,6 +2466,11 @@ export interface MarkReadInput {
|
|
|
2445
2466
|
* @public
|
|
2446
2467
|
*/
|
|
2447
2468
|
lastReadVisibleSeq?: number | undefined;
|
|
2469
|
+
/**
|
|
2470
|
+
* Message the user read up to. Authoritative when present: resolves both the read pointer (its visibleSeq) and the timeline anchor (its timelineSeq).
|
|
2471
|
+
* @public
|
|
2472
|
+
*/
|
|
2473
|
+
messageId?: string | undefined;
|
|
2448
2474
|
}
|
|
2449
2475
|
/**
|
|
2450
2476
|
* @public
|
|
@@ -51,7 +51,6 @@ export declare var CreateSectionOutput$: StaticStructureSchema;
|
|
|
51
51
|
export declare var DeleteChannelInput$: StaticStructureSchema;
|
|
52
52
|
export declare var DeleteChannelMemberInput$: StaticStructureSchema;
|
|
53
53
|
export declare var DeleteChannelMemberOutput$: StaticStructureSchema;
|
|
54
|
-
export declare var DeleteChannelOutput$: StaticStructureSchema;
|
|
55
54
|
export declare var DeleteMessageInput$: StaticStructureSchema;
|
|
56
55
|
export declare var DeleteMessageOutput$: StaticStructureSchema;
|
|
57
56
|
export declare var DeleteMessageReactionInput$: StaticStructureSchema;
|
|
@@ -88,6 +87,7 @@ export declare var GetUploadedFileInfoInput$: StaticStructureSchema;
|
|
|
88
87
|
export declare var GetUploadedFileInfoOutput$: StaticStructureSchema;
|
|
89
88
|
export declare var GetWhatsAppChannelIdInput$: StaticStructureSchema;
|
|
90
89
|
export declare var GetWhatsAppChannelIdOutput$: StaticStructureSchema;
|
|
90
|
+
export declare var HardDeleteChannelInput$: StaticStructureSchema;
|
|
91
91
|
export declare var HideChannelInput$: StaticStructureSchema;
|
|
92
92
|
export declare var HideChannelOutput$: StaticStructureSchema;
|
|
93
93
|
export declare var InboxChannel$: StaticStructureSchema;
|
|
@@ -215,6 +215,7 @@ export declare var GetTelephonyChannelId$: StaticOperationSchema;
|
|
|
215
215
|
export declare var GetToken$: StaticOperationSchema;
|
|
216
216
|
export declare var GetUploadedFileInfo$: StaticOperationSchema;
|
|
217
217
|
export declare var GetWhatsAppChannelId$: StaticOperationSchema;
|
|
218
|
+
export declare var HardDeleteChannel$: StaticOperationSchema;
|
|
218
219
|
export declare var HideChannel$: StaticOperationSchema;
|
|
219
220
|
export declare var JoinChannel$: StaticOperationSchema;
|
|
220
221
|
export declare var LeaveChannel$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/stream-client",
|
|
3
3
|
"description": "@wildix/stream-client client",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.7",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -54,4 +54,4 @@
|
|
|
54
54
|
"react-native": {
|
|
55
55
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|