@wildix/stream-client 4.0.6 → 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.
Files changed (31) hide show
  1. package/dist-cjs/StreamService.js +2 -0
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +7 -0
  3. package/dist-cjs/commands/HardDeleteChannelCommand.js +20 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/schemas/schemas_0.js +20 -14
  6. package/dist-es/StreamService.js +2 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +7 -0
  8. package/dist-es/commands/HardDeleteChannelCommand.js +16 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/schemas/schemas_0.js +17 -11
  11. package/dist-types/StreamService.d.ts +7 -0
  12. package/dist-types/StreamServiceClient.d.ts +3 -2
  13. package/dist-types/commands/DeleteChannelCommand.d.ts +6 -4
  14. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +1 -0
  15. package/dist-types/commands/GetMessageCommand.d.ts +1 -0
  16. package/dist-types/commands/HardDeleteChannelCommand.d.ts +86 -0
  17. package/dist-types/commands/ListMentionsCommand.d.ts +1 -0
  18. package/dist-types/commands/ListMessagesCommand.d.ts +1 -0
  19. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +1 -0
  20. package/dist-types/commands/PinMessageCommand.d.ts +1 -0
  21. package/dist-types/commands/SearchMessagesCommand.d.ts +1 -0
  22. package/dist-types/commands/SendGiphyCommand.d.ts +1 -0
  23. package/dist-types/commands/SendMessageCommand.d.ts +1 -0
  24. package/dist-types/commands/SendMessageReactionCommand.d.ts +1 -0
  25. package/dist-types/commands/SendSystemMessageCommand.d.ts +1 -0
  26. package/dist-types/commands/UnpinMessageCommand.d.ts +1 -0
  27. package/dist-types/commands/UpdateMessageCommand.d.ts +1 -0
  28. package/dist-types/commands/index.d.ts +1 -0
  29. package/dist-types/models/models_0.d.ts +22 -6
  30. package/dist-types/schemas/schemas_0.d.ts +2 -1
  31. 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.DeleteMessageReactionInput$ = exports.DeleteMessageOutput$ = exports.DeleteMessageInput$ = exports.DeleteChannelOutput$ = 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.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$ = exports.DeleteMessageReactionOutput$ = void 0;
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";
@@ -383,6 +384,7 @@ const _pA = "pinnedAt";
383
384
  const _pB = "pinnedBy";
384
385
  const _pC = "pictureColor";
385
386
  const _pDU = "presignedDownloadUrl";
387
+ const _pI = "pollId";
386
388
  const _pMI = "pinnedMessageIds";
387
389
  const _pUU = "presignedUploadUrl";
388
390
  const _ph = "phone";
@@ -571,6 +573,7 @@ exports.errorTypeRegistries = [
571
573
  n1_registry,
572
574
  n2_registry,
573
575
  ];
576
+ var __Unit = "unit";
574
577
  exports.TemplateParameter$ = [3, n3, _TP,
575
578
  0,
576
579
  [_n, _v],
@@ -716,11 +719,6 @@ exports.DeleteChannelMemberOutput$ = [3, n1, _DCMO,
716
719
  [],
717
720
  []
718
721
  ];
719
- exports.DeleteChannelOutput$ = [3, n1, _DCO,
720
- 0,
721
- [],
722
- []
723
- ];
724
722
  exports.DeleteMessageInput$ = [3, n1, _DMI,
725
723
  0,
726
724
  [_cI, _mIe, _cIo, _uI],
@@ -901,6 +899,11 @@ exports.GetWhatsAppChannelIdOutput$ = [3, n1, _GWACIO,
901
899
  [_cI],
902
900
  [0], 1
903
901
  ];
902
+ exports.HardDeleteChannelInput$ = [3, n1, _HDCI,
903
+ 0,
904
+ [_cI, _cIo, _uI],
905
+ [[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }]], 1
906
+ ];
904
907
  exports.HideChannelInput$ = [3, n1, _HCI,
905
908
  0,
906
909
  [_cI, _cIo, _uI],
@@ -1033,8 +1036,8 @@ exports.MentionEntry$ = [3, n1, _ME,
1033
1036
  ];
1034
1037
  exports.Message$ = [3, n1, _M,
1035
1038
  0,
1036
- [_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],
1037
- [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
1038
1041
  ];
1039
1042
  exports.MessageAttachment$ = [3, n1, _MA,
1040
1043
  0,
@@ -1489,7 +1492,7 @@ exports.CreateSection$ = [9, n1, _CS,
1489
1492
  { [_ht]: ["POST", "/api/v1/sections", 200] }, () => exports.CreateSectionInput$, () => exports.CreateSectionOutput$
1490
1493
  ];
1491
1494
  exports.DeleteChannel$ = [9, n1, _DC,
1492
- { [_ht]: ["DELETE", "/api/v1/channels/{channelId}", 204] }, () => exports.DeleteChannelInput$, () => exports.DeleteChannelOutput$
1495
+ { [_ht]: ["DELETE", "/api/v1/channels/{channelId}", 204] }, () => exports.DeleteChannelInput$, () => __Unit
1493
1496
  ];
1494
1497
  exports.DeleteChannelMember$ = [9, n1, _DCM,
1495
1498
  { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/members/{memberId}", 204] }, () => exports.DeleteChannelMemberInput$, () => exports.DeleteChannelMemberOutput$
@@ -1548,6 +1551,9 @@ exports.GetUploadedFileInfo$ = [9, n1, _GUFI,
1548
1551
  exports.GetWhatsAppChannelId$ = [9, n1, _GWACI,
1549
1552
  { [_ht]: ["POST", "/api/v1/channels/whatsapp/resolve-id", 200] }, () => exports.GetWhatsAppChannelIdInput$, () => exports.GetWhatsAppChannelIdOutput$
1550
1553
  ];
1554
+ exports.HardDeleteChannel$ = [9, n1, _HDC,
1555
+ { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/hard-delete", 204] }, () => exports.HardDeleteChannelInput$, () => __Unit
1556
+ ];
1551
1557
  exports.HideChannel$ = [9, n1, _HC,
1552
1558
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/hide", 204] }, () => exports.HideChannelInput$, () => exports.HideChannelOutput$
1553
1559
  ];
@@ -1600,7 +1606,7 @@ exports.QueryChannels$ = [9, n1, _QC,
1600
1606
  { [_ht]: ["POST", "/api/v1/channels/query", 200] }, () => exports.QueryChannelsInput$, () => exports.QueryChannelsOutput$
1601
1607
  ];
1602
1608
  exports.RemoveChannelFromSection$ = [9, n1, _RCFS,
1603
- { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/sections/{sectionId}", 204] }, () => exports.RemoveChannelFromSectionInput$, () => exports.RemoveChannelFromSectionOutput$
1609
+ { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/sections/{sectionId}", 200] }, () => exports.RemoveChannelFromSectionInput$, () => exports.RemoveChannelFromSectionOutput$
1604
1610
  ];
1605
1611
  exports.RenameSection$ = [9, n1, _RS,
1606
1612
  { [_ht]: ["PATCH", "/api/v1/sections/{sectionId}", 200] }, () => exports.RenameSectionInput$, () => exports.RenameSectionOutput$
@@ -1633,7 +1639,7 @@ exports.ShowChannel$ = [9, n1, _SCh,
1633
1639
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/show", 204] }, () => exports.ShowChannelInput$, () => exports.ShowChannelOutput$
1634
1640
  ];
1635
1641
  exports.UnmuteChannel$ = [9, n1, _UC,
1636
- { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/mute", 204] }, () => exports.UnmuteChannelInput$, () => exports.UnmuteChannelOutput$
1642
+ { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/mute", 200] }, () => exports.UnmuteChannelInput$, () => exports.UnmuteChannelOutput$
1637
1643
  ];
1638
1644
  exports.UnpinChannel$ = [9, n1, _UCn,
1639
1645
  { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/pin", 204] }, () => exports.UnpinChannelInput$, () => exports.UnpinChannelOutput$
@@ -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";
@@ -376,6 +377,7 @@ const _pA = "pinnedAt";
376
377
  const _pB = "pinnedBy";
377
378
  const _pC = "pictureColor";
378
379
  const _pDU = "presignedDownloadUrl";
380
+ const _pI = "pollId";
379
381
  const _pMI = "pinnedMessageIds";
380
382
  const _pUU = "presignedUploadUrl";
381
383
  const _ph = "phone";
@@ -564,6 +566,7 @@ export const errorTypeRegistries = [
564
566
  n1_registry,
565
567
  n2_registry,
566
568
  ];
569
+ var __Unit = "unit";
567
570
  export var TemplateParameter$ = [3, n3, _TP,
568
571
  0,
569
572
  [_n, _v],
@@ -709,11 +712,6 @@ export var DeleteChannelMemberOutput$ = [3, n1, _DCMO,
709
712
  [],
710
713
  []
711
714
  ];
712
- export var DeleteChannelOutput$ = [3, n1, _DCO,
713
- 0,
714
- [],
715
- []
716
- ];
717
715
  export var DeleteMessageInput$ = [3, n1, _DMI,
718
716
  0,
719
717
  [_cI, _mIe, _cIo, _uI],
@@ -894,6 +892,11 @@ export var GetWhatsAppChannelIdOutput$ = [3, n1, _GWACIO,
894
892
  [_cI],
895
893
  [0], 1
896
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
+ ];
897
900
  export var HideChannelInput$ = [3, n1, _HCI,
898
901
  0,
899
902
  [_cI, _cIo, _uI],
@@ -1026,8 +1029,8 @@ export var MentionEntry$ = [3, n1, _ME,
1026
1029
  ];
1027
1030
  export var Message$ = [3, n1, _M,
1028
1031
  0,
1029
- [_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],
1030
- [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
1031
1034
  ];
1032
1035
  export var MessageAttachment$ = [3, n1, _MA,
1033
1036
  0,
@@ -1482,7 +1485,7 @@ export var CreateSection$ = [9, n1, _CS,
1482
1485
  { [_ht]: ["POST", "/api/v1/sections", 200] }, () => CreateSectionInput$, () => CreateSectionOutput$
1483
1486
  ];
1484
1487
  export var DeleteChannel$ = [9, n1, _DC,
1485
- { [_ht]: ["DELETE", "/api/v1/channels/{channelId}", 204] }, () => DeleteChannelInput$, () => DeleteChannelOutput$
1488
+ { [_ht]: ["DELETE", "/api/v1/channels/{channelId}", 204] }, () => DeleteChannelInput$, () => __Unit
1486
1489
  ];
1487
1490
  export var DeleteChannelMember$ = [9, n1, _DCM,
1488
1491
  { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/members/{memberId}", 204] }, () => DeleteChannelMemberInput$, () => DeleteChannelMemberOutput$
@@ -1541,6 +1544,9 @@ export var GetUploadedFileInfo$ = [9, n1, _GUFI,
1541
1544
  export var GetWhatsAppChannelId$ = [9, n1, _GWACI,
1542
1545
  { [_ht]: ["POST", "/api/v1/channels/whatsapp/resolve-id", 200] }, () => GetWhatsAppChannelIdInput$, () => GetWhatsAppChannelIdOutput$
1543
1546
  ];
1547
+ export var HardDeleteChannel$ = [9, n1, _HDC,
1548
+ { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/hard-delete", 204] }, () => HardDeleteChannelInput$, () => __Unit
1549
+ ];
1544
1550
  export var HideChannel$ = [9, n1, _HC,
1545
1551
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/hide", 204] }, () => HideChannelInput$, () => HideChannelOutput$
1546
1552
  ];
@@ -1593,7 +1599,7 @@ export var QueryChannels$ = [9, n1, _QC,
1593
1599
  { [_ht]: ["POST", "/api/v1/channels/query", 200] }, () => QueryChannelsInput$, () => QueryChannelsOutput$
1594
1600
  ];
1595
1601
  export var RemoveChannelFromSection$ = [9, n1, _RCFS,
1596
- { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/sections/{sectionId}", 204] }, () => RemoveChannelFromSectionInput$, () => RemoveChannelFromSectionOutput$
1602
+ { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/sections/{sectionId}", 200] }, () => RemoveChannelFromSectionInput$, () => RemoveChannelFromSectionOutput$
1597
1603
  ];
1598
1604
  export var RenameSection$ = [9, n1, _RS,
1599
1605
  { [_ht]: ["PATCH", "/api/v1/sections/{sectionId}", 200] }, () => RenameSectionInput$, () => RenameSectionOutput$
@@ -1626,7 +1632,7 @@ export var ShowChannel$ = [9, n1, _SCh,
1626
1632
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/show", 204] }, () => ShowChannelInput$, () => ShowChannelOutput$
1627
1633
  ];
1628
1634
  export var UnmuteChannel$ = [9, n1, _UC,
1629
- { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/mute", 204] }, () => UnmuteChannelInput$, () => UnmuteChannelOutput$
1635
+ { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/mute", 200] }, () => UnmuteChannelInput$, () => UnmuteChannelOutput$
1630
1636
  ];
1631
1637
  export var UnpinChannel$ = [9, n1, _UCn,
1632
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, DeleteChannelOutput } from "../models/models_0";
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 DeleteChannelOutput, __MetadataBearer {
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)
@@ -150,6 +150,7 @@ declare const DeleteMessageReactionCommand_base: {
150
150
  * // },
151
151
  * // silent: true || false,
152
152
  * // event: "STRING_VALUE",
153
+ * // pollId: "STRING_VALUE",
153
154
  * // },
154
155
  * // };
155
156
  *
@@ -149,6 +149,7 @@ declare const GetMessageCommand_base: {
149
149
  * // },
150
150
  * // silent: true || false,
151
151
  * // event: "STRING_VALUE",
152
+ * // pollId: "STRING_VALUE",
152
153
  * // },
153
154
  * // };
154
155
  *
@@ -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
+ }
@@ -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
@@ -152,6 +152,7 @@ declare const ListMessagesCommand_base: {
152
152
  * // },
153
153
  * // silent: true || false,
154
154
  * // event: "STRING_VALUE",
155
+ * // pollId: "STRING_VALUE",
155
156
  * // },
156
157
  * // ],
157
158
  * // firstUnreadVisibleSeq: Number("long"),
@@ -218,6 +218,7 @@ declare const PartialUpdateMessageCommand_base: {
218
218
  * // },
219
219
  * // silent: true || false,
220
220
  * // event: "STRING_VALUE",
221
+ * // pollId: "STRING_VALUE",
221
222
  * // },
222
223
  * // };
223
224
  *
@@ -149,6 +149,7 @@ declare const PinMessageCommand_base: {
149
149
  * // },
150
150
  * // silent: true || false,
151
151
  * // event: "STRING_VALUE",
152
+ * // pollId: "STRING_VALUE",
152
153
  * // },
153
154
  * // };
154
155
  *
@@ -162,6 +162,7 @@ declare const SearchMessagesCommand_base: {
162
162
  * // },
163
163
  * // silent: true || false,
164
164
  * // event: "STRING_VALUE",
165
+ * // pollId: "STRING_VALUE",
165
166
  * // },
166
167
  * // highlights: [ // StringList
167
168
  * // "STRING_VALUE",
@@ -164,6 +164,7 @@ declare const SendGiphyCommand_base: {
164
164
  * // },
165
165
  * // silent: true || false,
166
166
  * // event: "STRING_VALUE",
167
+ * // pollId: "STRING_VALUE",
167
168
  * // },
168
169
  * // };
169
170
  *
@@ -214,6 +214,7 @@ declare const SendMessageCommand_base: {
214
214
  * // },
215
215
  * // silent: true || false,
216
216
  * // event: "STRING_VALUE",
217
+ * // pollId: "STRING_VALUE",
217
218
  * // },
218
219
  * // };
219
220
  *
@@ -150,6 +150,7 @@ declare const SendMessageReactionCommand_base: {
150
150
  * // },
151
151
  * // silent: true || false,
152
152
  * // event: "STRING_VALUE",
153
+ * // pollId: "STRING_VALUE",
153
154
  * // },
154
155
  * // };
155
156
  *
@@ -158,6 +158,7 @@ declare const SendSystemMessageCommand_base: {
158
158
  * // },
159
159
  * // silent: true || false,
160
160
  * // event: "STRING_VALUE",
161
+ * // pollId: "STRING_VALUE",
161
162
  * // },
162
163
  * // };
163
164
  *
@@ -149,6 +149,7 @@ declare const UnpinMessageCommand_base: {
149
149
  * // },
150
150
  * // silent: true || false,
151
151
  * // event: "STRING_VALUE",
152
+ * // pollId: "STRING_VALUE",
152
153
  * // },
153
154
  * // };
154
155
  *
@@ -213,6 +213,7 @@ declare const UpdateMessageCommand_base: {
213
213
  * // },
214
214
  * // silent: true || false,
215
215
  * // event: "STRING_VALUE",
216
+ * // pollId: "STRING_VALUE",
216
217
  * // },
217
218
  * // };
218
219
  *
@@ -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
@@ -1529,7 +1529,7 @@ export interface InboxState {
1529
1529
  */
1530
1530
  lastReadVisibleSeq?: number | undefined;
1531
1531
  /**
1532
- * Timeline anchor paired with lastReadVisibleSeq: the timelineSeq boundary of the read cursor. Every read message has timelineSeq <= this; the first unread visible message has timelineSeq > this. Absent until the cursor is next written. Use as ListMessages(from:) to jump to the first unread message.
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
1533
  * @public
1534
1534
  */
1535
1535
  lastReadTimelineSeq?: number | undefined;
@@ -2107,6 +2107,22 @@ export interface GetWhatsAppChannelIdInput {
2107
2107
  export interface GetWhatsAppChannelIdOutput {
2108
2108
  channelId: string;
2109
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
+ }
2110
2126
  /**
2111
2127
  * @public
2112
2128
  */
@@ -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.6",
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
+ }