@wildix/stream-client 4.0.1 → 4.0.2

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 (79) hide show
  1. package/dist-cjs/StreamService.js +4 -0
  2. package/dist-cjs/commands/SearchChannelsCommand.js +20 -0
  3. package/dist-cjs/commands/SearchMessagesCommand.js +20 -0
  4. package/dist-cjs/commands/index.js +2 -0
  5. package/dist-cjs/models/enums.js +12 -1
  6. package/dist-cjs/schemas/schemas_0.js +78 -15
  7. package/dist-es/StreamService.js +4 -0
  8. package/dist-es/commands/SearchChannelsCommand.js +16 -0
  9. package/dist-es/commands/SearchMessagesCommand.js +16 -0
  10. package/dist-es/commands/index.js +2 -0
  11. package/dist-es/models/enums.js +11 -0
  12. package/dist-es/schemas/schemas_0.js +75 -12
  13. package/dist-types/StreamService.d.ts +16 -0
  14. package/dist-types/StreamServiceClient.d.ts +4 -2
  15. package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -3
  16. package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -3
  17. package/dist-types/commands/AssignChannelCommand.d.ts +1 -3
  18. package/dist-types/commands/CreateGroupChannelCommand.d.ts +1 -3
  19. package/dist-types/commands/CreateKiteChannelCommand.d.ts +1 -3
  20. package/dist-types/commands/CreateSectionCommand.d.ts +1 -3
  21. package/dist-types/commands/DeleteChannelCommand.d.ts +1 -3
  22. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +1 -3
  23. package/dist-types/commands/DeleteMessageCommand.d.ts +1 -3
  24. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +1 -3
  25. package/dist-types/commands/DeleteSectionCommand.d.ts +1 -3
  26. package/dist-types/commands/GetChannelCommand.d.ts +1 -3
  27. package/dist-types/commands/GetChannelMemberCommand.d.ts +1 -3
  28. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +1 -3
  29. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +1 -3
  30. package/dist-types/commands/GetInboxCommand.d.ts +1 -3
  31. package/dist-types/commands/GetMessageCommand.d.ts +1 -3
  32. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +1 -3
  33. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +1 -3
  34. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +1 -3
  35. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +1 -3
  36. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +1 -3
  37. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +1 -3
  38. package/dist-types/commands/GetTokenCommand.d.ts +1 -3
  39. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +1 -3
  40. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +1 -3
  41. package/dist-types/commands/HideChannelCommand.d.ts +1 -3
  42. package/dist-types/commands/JoinChannelCommand.d.ts +1 -3
  43. package/dist-types/commands/LeaveChannelCommand.d.ts +1 -3
  44. package/dist-types/commands/ListChannelMembersCommand.d.ts +1 -3
  45. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +1 -3
  46. package/dist-types/commands/ListChannelsCommand.d.ts +1 -3
  47. package/dist-types/commands/ListMentionsCommand.d.ts +1 -3
  48. package/dist-types/commands/ListMessagesCommand.d.ts +1 -3
  49. package/dist-types/commands/MarkReadCommand.d.ts +1 -3
  50. package/dist-types/commands/MarkUnreadCommand.d.ts +1 -3
  51. package/dist-types/commands/MoveChannelToSectionCommand.d.ts +1 -3
  52. package/dist-types/commands/MuteChannelCommand.d.ts +1 -3
  53. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +1 -3
  54. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +1 -3
  55. package/dist-types/commands/PinChannelCommand.d.ts +1 -3
  56. package/dist-types/commands/PinMessageCommand.d.ts +1 -3
  57. package/dist-types/commands/QueryChannelsCommand.d.ts +1 -3
  58. package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +1 -3
  59. package/dist-types/commands/RenameSectionCommand.d.ts +1 -3
  60. package/dist-types/commands/SearchChannelsCommand.d.ts +165 -0
  61. package/dist-types/commands/SearchMessagesCommand.d.ts +213 -0
  62. package/dist-types/commands/SendGiphyCommand.d.ts +1 -3
  63. package/dist-types/commands/SendMessageCommand.d.ts +1 -3
  64. package/dist-types/commands/SendMessageReactionCommand.d.ts +1 -3
  65. package/dist-types/commands/SendSystemMessageCommand.d.ts +1 -3
  66. package/dist-types/commands/SendTypingStartCommand.d.ts +1 -3
  67. package/dist-types/commands/SendTypingStopCommand.d.ts +1 -3
  68. package/dist-types/commands/ShowChannelCommand.d.ts +1 -3
  69. package/dist-types/commands/UnmuteChannelCommand.d.ts +1 -3
  70. package/dist-types/commands/UnpinChannelCommand.d.ts +1 -3
  71. package/dist-types/commands/UnpinMessageCommand.d.ts +1 -3
  72. package/dist-types/commands/UpdateChannelCommand.d.ts +1 -3
  73. package/dist-types/commands/UpdateMessageCommand.d.ts +1 -3
  74. package/dist-types/commands/UploadFileCommand.d.ts +1 -3
  75. package/dist-types/commands/index.d.ts +2 -0
  76. package/dist-types/models/enums.d.ts +27 -0
  77. package/dist-types/models/models_0.d.ts +163 -1
  78. package/dist-types/schemas/schemas_0.d.ts +8 -0
  79. package/package.json +2 -2
@@ -47,6 +47,8 @@ const PinMessageCommand_1 = require("./commands/PinMessageCommand");
47
47
  const QueryChannelsCommand_1 = require("./commands/QueryChannelsCommand");
48
48
  const RemoveChannelFromSectionCommand_1 = require("./commands/RemoveChannelFromSectionCommand");
49
49
  const RenameSectionCommand_1 = require("./commands/RenameSectionCommand");
50
+ const SearchChannelsCommand_1 = require("./commands/SearchChannelsCommand");
51
+ const SearchMessagesCommand_1 = require("./commands/SearchMessagesCommand");
50
52
  const SendGiphyCommand_1 = require("./commands/SendGiphyCommand");
51
53
  const SendMessageCommand_1 = require("./commands/SendMessageCommand");
52
54
  const SendMessageReactionCommand_1 = require("./commands/SendMessageReactionCommand");
@@ -107,6 +109,8 @@ const commands = {
107
109
  QueryChannelsCommand: QueryChannelsCommand_1.QueryChannelsCommand,
108
110
  RemoveChannelFromSectionCommand: RemoveChannelFromSectionCommand_1.RemoveChannelFromSectionCommand,
109
111
  RenameSectionCommand: RenameSectionCommand_1.RenameSectionCommand,
112
+ SearchChannelsCommand: SearchChannelsCommand_1.SearchChannelsCommand,
113
+ SearchMessagesCommand: SearchMessagesCommand_1.SearchMessagesCommand,
110
114
  SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
111
115
  SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
112
116
  SendMessageReactionCommand: SendMessageReactionCommand_1.SendMessageReactionCommand,
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchChannelsCommand = 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 SearchChannelsCommand 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", "SearchChannels", {})
16
+ .n("StreamServiceClient", "SearchChannelsCommand")
17
+ .sc(schemas_0_1.SearchChannels$)
18
+ .build() {
19
+ }
20
+ exports.SearchChannelsCommand = SearchChannelsCommand;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchMessagesCommand = 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 SearchMessagesCommand 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", "SearchMessages", {})
16
+ .n("StreamServiceClient", "SearchMessagesCommand")
17
+ .sc(schemas_0_1.SearchMessages$)
18
+ .build() {
19
+ }
20
+ exports.SearchMessagesCommand = SearchMessagesCommand;
@@ -46,6 +46,8 @@ tslib_1.__exportStar(require("./PinMessageCommand"), exports);
46
46
  tslib_1.__exportStar(require("./QueryChannelsCommand"), exports);
47
47
  tslib_1.__exportStar(require("./RemoveChannelFromSectionCommand"), exports);
48
48
  tslib_1.__exportStar(require("./RenameSectionCommand"), exports);
49
+ tslib_1.__exportStar(require("./SearchChannelsCommand"), exports);
50
+ tslib_1.__exportStar(require("./SearchMessagesCommand"), exports);
49
51
  tslib_1.__exportStar(require("./SendGiphyCommand"), exports);
50
52
  tslib_1.__exportStar(require("./SendMessageCommand"), exports);
51
53
  tslib_1.__exportStar(require("./SendMessageReactionCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageUnsetFields = exports.MentionsFilter = exports.GroupChannelUnsetOptions = exports.FileCategory = exports.DownloadStrategy = exports.SectionType = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.GroupChannelCreationEventType = exports.ChannelsFilter = exports.ChannelWhatsAppStatus = exports.MessageType = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.AssignChannelVariant = exports.ChannelMemberRole = exports.ButtonVariant = void 0;
3
+ exports.SearchSort = exports.MessageUnsetFields = exports.MentionsFilter = exports.GroupChannelUnsetOptions = exports.FileCategory = exports.DownloadStrategy = exports.SectionType = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.GroupChannelCreationEventType = exports.ChannelsFilter = exports.ChannelWhatsAppStatus = exports.MessageType = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.AttachmentType = exports.AssignChannelVariant = exports.ChannelMemberRole = exports.ButtonVariant = void 0;
4
4
  exports.ButtonVariant = {
5
5
  CONTAINED: "contained",
6
6
  OUTLINED: "outlined",
@@ -15,6 +15,12 @@ exports.AssignChannelVariant = {
15
15
  SELECTED: "SELECTED",
16
16
  SKIP: "SKIP",
17
17
  };
18
+ exports.AttachmentType = {
19
+ AUDIO: "audio",
20
+ FILE: "file",
21
+ IMAGE: "image",
22
+ VIDEO: "video",
23
+ };
18
24
  exports.ChannelAccess = {
19
25
  PRIVATE: "private",
20
26
  PUBLIC: "public",
@@ -112,3 +118,8 @@ exports.MessageUnsetFields = {
112
118
  WHATSAPP: "whatsapp",
113
119
  WHATSAPP_STATUS: "whatsappStatus",
114
120
  };
121
+ exports.SearchSort = {
122
+ RECENCY: "recency",
123
+ RECENCY_ASC: "recency_asc",
124
+ RELEVANCE: "relevance",
125
+ };
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
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;
5
- exports.SendTypingStartInput$ = exports.SendSystemMessageOutput$ = exports.SendSystemMessageInput$ = exports.SendMessageReactionOutput$ = exports.SendMessageReactionInput$ = exports.SendMessageOutput$ = exports.SendMessageInput$ = exports.SendGiphyOutput$ = exports.SendGiphyInput$ = exports.Section$ = 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
- exports.GetSmsChannelId$ = exports.GetOrCreateWhatsAppChannel$ = exports.GetOrCreateTelephonyChannel$ = exports.GetOrCreateSmsChannel$ = exports.GetOrCreateDirectChannel$ = exports.GetMessage$ = 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$ = 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.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$ = void 0;
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
+ 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;
8
8
  const _AC = "AssignChannel";
9
9
  const _ACAR = "AssignChannelAssigneeRequest";
10
10
  const _ACI = "AssignChannelInput";
@@ -200,20 +200,30 @@ const _RS = "RenameSection";
200
200
  const _RSI = "RenameSectionInput";
201
201
  const _RSO = "RenameSectionOutput";
202
202
  const _S = "Section";
203
- const _SC = "ShowChannel";
204
- const _SCI = "ShowChannelInput";
205
- const _SCO = "ShowChannelOutput";
203
+ const _SC = "SearchChannels";
204
+ const _SCH = "SearchChannelHit";
205
+ const _SCHL = "SearchChannelHitList";
206
+ const _SCI = "SearchChannelsInput";
207
+ const _SCIh = "ShowChannelInput";
208
+ const _SCO = "SearchChannelsOutput";
209
+ const _SCOh = "ShowChannelOutput";
210
+ const _SCh = "ShowChannel";
206
211
  const _SG = "SendGiphy";
207
212
  const _SGI = "SendGiphyInput";
208
213
  const _SGO = "SendGiphyOutput";
209
214
  const _SL = "SectionList";
210
215
  const _SM = "SystemMessage";
211
- const _SMI = "SendMessageInput";
212
- const _SMO = "SendMessageOutput";
216
+ const _SMH = "SearchMessageHit";
217
+ const _SMHL = "SearchMessageHitList";
218
+ const _SMI = "SearchMessagesInput";
219
+ const _SMIe = "SendMessageInput";
220
+ const _SMO = "SearchMessagesOutput";
221
+ const _SMOe = "SendMessageOutput";
213
222
  const _SMR = "SendMessageReaction";
214
223
  const _SMRI = "SendMessageReactionInput";
215
224
  const _SMRO = "SendMessageReactionOutput";
216
- const _SMe = "SendMessage";
225
+ const _SMe = "SearchMessages";
226
+ const _SMen = "SendMessage";
217
227
  const _SNFE = "SectionNotFoundException";
218
228
  const _SSE = "StreamServiceException";
219
229
  const _SSM = "SendSystemMessage";
@@ -262,6 +272,7 @@ const _a = "assignee";
262
272
  const _aI = "assigneeId";
263
273
  const _aM = "addedMembers";
264
274
  const _aR = "autoRecord";
275
+ const _aT = "attachmentTypes";
265
276
  const _ac = "access";
266
277
  const _act = "action";
267
278
  const _acti = "actions";
@@ -308,12 +319,14 @@ const _for = "force";
308
319
  const _fr = "from";
309
320
  const _g = "giphy";
310
321
  const _h = "handler";
322
+ const _hA = "hasAttachments";
311
323
  const _hE = "httpError";
312
324
  const _hH = "httpHeader";
313
325
  const _hHi = "hideHistory";
314
326
  const _hQ = "httpQuery";
315
327
  const _he = "height";
316
328
  const _hi = "hidden";
329
+ const _hig = "highlights";
317
330
  const _ht = "http";
318
331
  const _i = "id";
319
332
  const _iM = "initialMessage";
@@ -343,6 +356,7 @@ const _mMJ = "multipleMembersJoined";
343
356
  const _mT = "messageType";
344
357
  const _mTI = "memberToInvite";
345
358
  const _mTIe = "membersToInvite";
359
+ const _mTi = "mimeTypes";
346
360
  const _mU = "mutedUntil";
347
361
  const _mUC = "mentionUnreadCount";
348
362
  const _mUMC = "mutedUnreadMessageCount";
@@ -372,6 +386,7 @@ const _pi = "picture";
372
386
  const _pin = "pinned";
373
387
  const _pt = "ptt";
374
388
  const _q = "quote";
389
+ const _q_ = "q";
375
390
  const _qu = "query";
376
391
  const _r = "reason";
377
392
  const _rA = "retryAfter";
@@ -385,6 +400,7 @@ const _rN = "recipientNumber";
385
400
  const _re = "read";
386
401
  const _reg = "region";
387
402
  const _rep = "reply";
403
+ const _res = "results";
388
404
  const _ro = "role";
389
405
  const _s = "smithy.ts.sdk.synthetic.wildix.stream";
390
406
  const _sI = "sectionId";
@@ -402,12 +418,14 @@ const _si = "silent";
402
418
  const _siz = "size";
403
419
  const _sm = "sms";
404
420
  const _so = "source";
421
+ const _sor = "sort";
405
422
  const _st = "start";
406
423
  const _sta = "status";
407
424
  const _su = "subject";
408
425
  const _sum = "summary";
409
426
  const _sy = "system";
410
427
  const _t = "text";
428
+ const _tC = "totalCount";
411
429
  const _tI = "targetId";
412
430
  const _tL = "transcriptionLanguage";
413
431
  const _tRI = "targetRouteId";
@@ -1164,6 +1182,36 @@ exports.RenameSectionOutput$ = [3, n1, _RSO,
1164
1182
  [_sec],
1165
1183
  [() => exports.Section$], 1
1166
1184
  ];
1185
+ exports.SearchChannelHit$ = [3, n1, _SCH,
1186
+ 0,
1187
+ [_ch, _hig],
1188
+ [() => exports.Channel$, 64 | 0], 1
1189
+ ];
1190
+ exports.SearchChannelsInput$ = [3, n1, _SCI,
1191
+ 0,
1192
+ [_cIo, _uI, _q_, _mI, _cT, _siz, _cu, _sor],
1193
+ [[0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _q_ }], [0, { [_hQ]: _mI }], [0, { [_hQ]: _cT }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _sor }]]
1194
+ ];
1195
+ exports.SearchChannelsOutput$ = [3, n1, _SCO,
1196
+ 0,
1197
+ [_res, _nC],
1198
+ [() => SearchChannelHitList, 0], 1
1199
+ ];
1200
+ exports.SearchMessageHit$ = [3, n1, _SMH,
1201
+ 0,
1202
+ [_cI, _m, _hig],
1203
+ [0, () => exports.Message$, 64 | 0], 2
1204
+ ];
1205
+ exports.SearchMessagesInput$ = [3, n1, _SMI,
1206
+ 0,
1207
+ [_cIo, _uI, _q_, _cI, _hA, _aT, _mTi, _siz, _cu, _sor],
1208
+ [[0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _q_ }], [0, { [_hQ]: _cI }], [2, { [_hQ]: _hA }], [64 | 0, { [_hQ]: _aT }], [64 | 0, { [_hQ]: _mTi }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _sor }]]
1209
+ ];
1210
+ exports.SearchMessagesOutput$ = [3, n1, _SMO,
1211
+ 0,
1212
+ [_res, _tC, _nC],
1213
+ [() => SearchMessageHitList, 1, 0], 1
1214
+ ];
1167
1215
  exports.Section$ = [3, n1, _S,
1168
1216
  0,
1169
1217
  [_sI, _n, _ty, _cC, _uUCC, _uUMC, _mUMC, _uMC],
@@ -1179,12 +1227,12 @@ exports.SendGiphyOutput$ = [3, n1, _SGO,
1179
1227
  [_m],
1180
1228
  [() => exports.Message$], 1
1181
1229
  ];
1182
- exports.SendMessageInput$ = [3, n1, _SMI,
1230
+ exports.SendMessageInput$ = [3, n1, _SMIe,
1183
1231
  0,
1184
1232
  [_cI, _cIo, _uI, _t, _el, _att, _q, _fo, _ma, _si, _w, _wS, _sm, _sS, _mIe, _men, _mT],
1185
1233
  [[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], 0, () => ElementsList, () => MessageAttachmentRequestList, () => exports.MessageQuoteRef$, () => exports.MessageForwardRef$, 2, 2, 2, 0, 2, 0, 0, 64 | 0, 0], 1
1186
1234
  ];
1187
- exports.SendMessageOutput$ = [3, n1, _SMO,
1235
+ exports.SendMessageOutput$ = [3, n1, _SMOe,
1188
1236
  0,
1189
1237
  [_m],
1190
1238
  [() => exports.Message$], 1
@@ -1229,12 +1277,12 @@ exports.SendTypingStopOutput$ = [3, n1, _STSOe,
1229
1277
  [],
1230
1278
  []
1231
1279
  ];
1232
- exports.ShowChannelInput$ = [3, n1, _SCI,
1280
+ exports.ShowChannelInput$ = [3, n1, _SCIh,
1233
1281
  0,
1234
1282
  [_cI, _cIo, _uI],
1235
1283
  [[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }]], 1
1236
1284
  ];
1237
- exports.ShowChannelOutput$ = [3, n1, _SCO,
1285
+ exports.ShowChannelOutput$ = [3, n1, _SCOh,
1238
1286
  0,
1239
1287
  [],
1240
1288
  []
@@ -1327,9 +1375,11 @@ exports.WhatsAppClosedSystemMessage$ = [3, n1, _WACSM,
1327
1375
  var ListTemplateParameter = [1, n3, _LTP,
1328
1376
  0, () => exports.TemplateParameter$
1329
1377
  ];
1378
+ var StringList = 64 | 0;
1330
1379
  var ActionsElementsList = [1, n1, _AEL,
1331
1380
  0, () => exports.ActionElement$
1332
1381
  ];
1382
+ var AttachmentTypeList = 64 | 0;
1333
1383
  var ChannelContextEventAttendeeList = [1, n1, _CCEAL,
1334
1384
  0, () => exports.ChannelContextEventAttendee$
1335
1385
  ];
@@ -1363,9 +1413,16 @@ var MessageList = [1, n1, _ML,
1363
1413
  0, () => exports.Message$
1364
1414
  ];
1365
1415
  var MessageUnsetFieldsList = 64 | 0;
1416
+ var MimeTypeList = 64 | 0;
1366
1417
  var ReactionList = [1, n1, _RL,
1367
1418
  0, () => exports.Reaction$
1368
1419
  ];
1420
+ var SearchChannelHitList = [1, n1, _SCHL,
1421
+ 0, () => exports.SearchChannelHit$
1422
+ ];
1423
+ var SearchMessageHitList = [1, n1, _SMHL,
1424
+ 0, () => exports.SearchMessageHit$
1425
+ ];
1369
1426
  var SectionIdList = 64 | 0;
1370
1427
  var SectionList = [1, n1, _SL,
1371
1428
  0, () => exports.Section$
@@ -1543,10 +1600,16 @@ exports.RemoveChannelFromSection$ = [9, n1, _RCFS,
1543
1600
  exports.RenameSection$ = [9, n1, _RS,
1544
1601
  { [_ht]: ["PATCH", "/api/v1/sections/{sectionId}", 200] }, () => exports.RenameSectionInput$, () => exports.RenameSectionOutput$
1545
1602
  ];
1603
+ exports.SearchChannels$ = [9, n1, _SC,
1604
+ { [_ht]: ["GET", "/api/v1/search/channels", 200] }, () => exports.SearchChannelsInput$, () => exports.SearchChannelsOutput$
1605
+ ];
1606
+ exports.SearchMessages$ = [9, n1, _SMe,
1607
+ { [_ht]: ["GET", "/api/v1/search/messages", 200] }, () => exports.SearchMessagesInput$, () => exports.SearchMessagesOutput$
1608
+ ];
1546
1609
  exports.SendGiphy$ = [9, n1, _SG,
1547
1610
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/giphys", 200] }, () => exports.SendGiphyInput$, () => exports.SendGiphyOutput$
1548
1611
  ];
1549
- exports.SendMessage$ = [9, n1, _SMe,
1612
+ exports.SendMessage$ = [9, n1, _SMen,
1550
1613
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/messages", 200] }, () => exports.SendMessageInput$, () => exports.SendMessageOutput$
1551
1614
  ];
1552
1615
  exports.SendMessageReaction$ = [9, n1, _SMR,
@@ -1561,7 +1624,7 @@ exports.SendTypingStart$ = [9, n1, _STS,
1561
1624
  exports.SendTypingStop$ = [9, n1, _STSe,
1562
1625
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/typing/stop", 200] }, () => exports.SendTypingStopInput$, () => exports.SendTypingStopOutput$
1563
1626
  ];
1564
- exports.ShowChannel$ = [9, n1, _SC,
1627
+ exports.ShowChannel$ = [9, n1, _SCh,
1565
1628
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/show", 204] }, () => exports.ShowChannelInput$, () => exports.ShowChannelOutput$
1566
1629
  ];
1567
1630
  exports.UnmuteChannel$ = [9, n1, _UC,
@@ -44,6 +44,8 @@ import { PinMessageCommand, } from "./commands/PinMessageCommand";
44
44
  import { QueryChannelsCommand, } from "./commands/QueryChannelsCommand";
45
45
  import { RemoveChannelFromSectionCommand, } from "./commands/RemoveChannelFromSectionCommand";
46
46
  import { RenameSectionCommand, } from "./commands/RenameSectionCommand";
47
+ import { SearchChannelsCommand, } from "./commands/SearchChannelsCommand";
48
+ import { SearchMessagesCommand, } from "./commands/SearchMessagesCommand";
47
49
  import { SendGiphyCommand } from "./commands/SendGiphyCommand";
48
50
  import { SendMessageCommand, } from "./commands/SendMessageCommand";
49
51
  import { SendMessageReactionCommand, } from "./commands/SendMessageReactionCommand";
@@ -104,6 +106,8 @@ const commands = {
104
106
  QueryChannelsCommand,
105
107
  RemoveChannelFromSectionCommand,
106
108
  RenameSectionCommand,
109
+ SearchChannelsCommand,
110
+ SearchMessagesCommand,
107
111
  SendGiphyCommand,
108
112
  SendMessageCommand,
109
113
  SendMessageReactionCommand,
@@ -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 { SearchChannels$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class SearchChannelsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("StreamService", "SearchChannels", {})
13
+ .n("StreamServiceClient", "SearchChannelsCommand")
14
+ .sc(SearchChannels$)
15
+ .build() {
16
+ }
@@ -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 { SearchMessages$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class SearchMessagesCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("StreamService", "SearchMessages", {})
13
+ .n("StreamServiceClient", "SearchMessagesCommand")
14
+ .sc(SearchMessages$)
15
+ .build() {
16
+ }
@@ -43,6 +43,8 @@ export * from "./PinMessageCommand";
43
43
  export * from "./QueryChannelsCommand";
44
44
  export * from "./RemoveChannelFromSectionCommand";
45
45
  export * from "./RenameSectionCommand";
46
+ export * from "./SearchChannelsCommand";
47
+ export * from "./SearchMessagesCommand";
46
48
  export * from "./SendGiphyCommand";
47
49
  export * from "./SendMessageCommand";
48
50
  export * from "./SendMessageReactionCommand";
@@ -12,6 +12,12 @@ export const AssignChannelVariant = {
12
12
  SELECTED: "SELECTED",
13
13
  SKIP: "SKIP",
14
14
  };
15
+ export const AttachmentType = {
16
+ AUDIO: "audio",
17
+ FILE: "file",
18
+ IMAGE: "image",
19
+ VIDEO: "video",
20
+ };
15
21
  export const ChannelAccess = {
16
22
  PRIVATE: "private",
17
23
  PUBLIC: "public",
@@ -109,3 +115,8 @@ export const MessageUnsetFields = {
109
115
  WHATSAPP: "whatsapp",
110
116
  WHATSAPP_STATUS: "whatsappStatus",
111
117
  };
118
+ export const SearchSort = {
119
+ RECENCY: "recency",
120
+ RECENCY_ASC: "recency_asc",
121
+ RELEVANCE: "relevance",
122
+ };
@@ -193,20 +193,30 @@ const _RS = "RenameSection";
193
193
  const _RSI = "RenameSectionInput";
194
194
  const _RSO = "RenameSectionOutput";
195
195
  const _S = "Section";
196
- const _SC = "ShowChannel";
197
- const _SCI = "ShowChannelInput";
198
- const _SCO = "ShowChannelOutput";
196
+ const _SC = "SearchChannels";
197
+ const _SCH = "SearchChannelHit";
198
+ const _SCHL = "SearchChannelHitList";
199
+ const _SCI = "SearchChannelsInput";
200
+ const _SCIh = "ShowChannelInput";
201
+ const _SCO = "SearchChannelsOutput";
202
+ const _SCOh = "ShowChannelOutput";
203
+ const _SCh = "ShowChannel";
199
204
  const _SG = "SendGiphy";
200
205
  const _SGI = "SendGiphyInput";
201
206
  const _SGO = "SendGiphyOutput";
202
207
  const _SL = "SectionList";
203
208
  const _SM = "SystemMessage";
204
- const _SMI = "SendMessageInput";
205
- const _SMO = "SendMessageOutput";
209
+ const _SMH = "SearchMessageHit";
210
+ const _SMHL = "SearchMessageHitList";
211
+ const _SMI = "SearchMessagesInput";
212
+ const _SMIe = "SendMessageInput";
213
+ const _SMO = "SearchMessagesOutput";
214
+ const _SMOe = "SendMessageOutput";
206
215
  const _SMR = "SendMessageReaction";
207
216
  const _SMRI = "SendMessageReactionInput";
208
217
  const _SMRO = "SendMessageReactionOutput";
209
- const _SMe = "SendMessage";
218
+ const _SMe = "SearchMessages";
219
+ const _SMen = "SendMessage";
210
220
  const _SNFE = "SectionNotFoundException";
211
221
  const _SSE = "StreamServiceException";
212
222
  const _SSM = "SendSystemMessage";
@@ -255,6 +265,7 @@ const _a = "assignee";
255
265
  const _aI = "assigneeId";
256
266
  const _aM = "addedMembers";
257
267
  const _aR = "autoRecord";
268
+ const _aT = "attachmentTypes";
258
269
  const _ac = "access";
259
270
  const _act = "action";
260
271
  const _acti = "actions";
@@ -301,12 +312,14 @@ const _for = "force";
301
312
  const _fr = "from";
302
313
  const _g = "giphy";
303
314
  const _h = "handler";
315
+ const _hA = "hasAttachments";
304
316
  const _hE = "httpError";
305
317
  const _hH = "httpHeader";
306
318
  const _hHi = "hideHistory";
307
319
  const _hQ = "httpQuery";
308
320
  const _he = "height";
309
321
  const _hi = "hidden";
322
+ const _hig = "highlights";
310
323
  const _ht = "http";
311
324
  const _i = "id";
312
325
  const _iM = "initialMessage";
@@ -336,6 +349,7 @@ const _mMJ = "multipleMembersJoined";
336
349
  const _mT = "messageType";
337
350
  const _mTI = "memberToInvite";
338
351
  const _mTIe = "membersToInvite";
352
+ const _mTi = "mimeTypes";
339
353
  const _mU = "mutedUntil";
340
354
  const _mUC = "mentionUnreadCount";
341
355
  const _mUMC = "mutedUnreadMessageCount";
@@ -365,6 +379,7 @@ const _pi = "picture";
365
379
  const _pin = "pinned";
366
380
  const _pt = "ptt";
367
381
  const _q = "quote";
382
+ const _q_ = "q";
368
383
  const _qu = "query";
369
384
  const _r = "reason";
370
385
  const _rA = "retryAfter";
@@ -378,6 +393,7 @@ const _rN = "recipientNumber";
378
393
  const _re = "read";
379
394
  const _reg = "region";
380
395
  const _rep = "reply";
396
+ const _res = "results";
381
397
  const _ro = "role";
382
398
  const _s = "smithy.ts.sdk.synthetic.wildix.stream";
383
399
  const _sI = "sectionId";
@@ -395,12 +411,14 @@ const _si = "silent";
395
411
  const _siz = "size";
396
412
  const _sm = "sms";
397
413
  const _so = "source";
414
+ const _sor = "sort";
398
415
  const _st = "start";
399
416
  const _sta = "status";
400
417
  const _su = "subject";
401
418
  const _sum = "summary";
402
419
  const _sy = "system";
403
420
  const _t = "text";
421
+ const _tC = "totalCount";
404
422
  const _tI = "targetId";
405
423
  const _tL = "transcriptionLanguage";
406
424
  const _tRI = "targetRouteId";
@@ -1157,6 +1175,36 @@ export var RenameSectionOutput$ = [3, n1, _RSO,
1157
1175
  [_sec],
1158
1176
  [() => Section$], 1
1159
1177
  ];
1178
+ export var SearchChannelHit$ = [3, n1, _SCH,
1179
+ 0,
1180
+ [_ch, _hig],
1181
+ [() => Channel$, 64 | 0], 1
1182
+ ];
1183
+ export var SearchChannelsInput$ = [3, n1, _SCI,
1184
+ 0,
1185
+ [_cIo, _uI, _q_, _mI, _cT, _siz, _cu, _sor],
1186
+ [[0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _q_ }], [0, { [_hQ]: _mI }], [0, { [_hQ]: _cT }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _sor }]]
1187
+ ];
1188
+ export var SearchChannelsOutput$ = [3, n1, _SCO,
1189
+ 0,
1190
+ [_res, _nC],
1191
+ [() => SearchChannelHitList, 0], 1
1192
+ ];
1193
+ export var SearchMessageHit$ = [3, n1, _SMH,
1194
+ 0,
1195
+ [_cI, _m, _hig],
1196
+ [0, () => Message$, 64 | 0], 2
1197
+ ];
1198
+ export var SearchMessagesInput$ = [3, n1, _SMI,
1199
+ 0,
1200
+ [_cIo, _uI, _q_, _cI, _hA, _aT, _mTi, _siz, _cu, _sor],
1201
+ [[0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _q_ }], [0, { [_hQ]: _cI }], [2, { [_hQ]: _hA }], [64 | 0, { [_hQ]: _aT }], [64 | 0, { [_hQ]: _mTi }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _sor }]]
1202
+ ];
1203
+ export var SearchMessagesOutput$ = [3, n1, _SMO,
1204
+ 0,
1205
+ [_res, _tC, _nC],
1206
+ [() => SearchMessageHitList, 1, 0], 1
1207
+ ];
1160
1208
  export var Section$ = [3, n1, _S,
1161
1209
  0,
1162
1210
  [_sI, _n, _ty, _cC, _uUCC, _uUMC, _mUMC, _uMC],
@@ -1172,12 +1220,12 @@ export var SendGiphyOutput$ = [3, n1, _SGO,
1172
1220
  [_m],
1173
1221
  [() => Message$], 1
1174
1222
  ];
1175
- export var SendMessageInput$ = [3, n1, _SMI,
1223
+ export var SendMessageInput$ = [3, n1, _SMIe,
1176
1224
  0,
1177
1225
  [_cI, _cIo, _uI, _t, _el, _att, _q, _fo, _ma, _si, _w, _wS, _sm, _sS, _mIe, _men, _mT],
1178
1226
  [[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], 0, () => ElementsList, () => MessageAttachmentRequestList, () => MessageQuoteRef$, () => MessageForwardRef$, 2, 2, 2, 0, 2, 0, 0, 64 | 0, 0], 1
1179
1227
  ];
1180
- export var SendMessageOutput$ = [3, n1, _SMO,
1228
+ export var SendMessageOutput$ = [3, n1, _SMOe,
1181
1229
  0,
1182
1230
  [_m],
1183
1231
  [() => Message$], 1
@@ -1222,12 +1270,12 @@ export var SendTypingStopOutput$ = [3, n1, _STSOe,
1222
1270
  [],
1223
1271
  []
1224
1272
  ];
1225
- export var ShowChannelInput$ = [3, n1, _SCI,
1273
+ export var ShowChannelInput$ = [3, n1, _SCIh,
1226
1274
  0,
1227
1275
  [_cI, _cIo, _uI],
1228
1276
  [[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }]], 1
1229
1277
  ];
1230
- export var ShowChannelOutput$ = [3, n1, _SCO,
1278
+ export var ShowChannelOutput$ = [3, n1, _SCOh,
1231
1279
  0,
1232
1280
  [],
1233
1281
  []
@@ -1320,9 +1368,11 @@ export var WhatsAppClosedSystemMessage$ = [3, n1, _WACSM,
1320
1368
  var ListTemplateParameter = [1, n3, _LTP,
1321
1369
  0, () => TemplateParameter$
1322
1370
  ];
1371
+ var StringList = 64 | 0;
1323
1372
  var ActionsElementsList = [1, n1, _AEL,
1324
1373
  0, () => ActionElement$
1325
1374
  ];
1375
+ var AttachmentTypeList = 64 | 0;
1326
1376
  var ChannelContextEventAttendeeList = [1, n1, _CCEAL,
1327
1377
  0, () => ChannelContextEventAttendee$
1328
1378
  ];
@@ -1356,9 +1406,16 @@ var MessageList = [1, n1, _ML,
1356
1406
  0, () => Message$
1357
1407
  ];
1358
1408
  var MessageUnsetFieldsList = 64 | 0;
1409
+ var MimeTypeList = 64 | 0;
1359
1410
  var ReactionList = [1, n1, _RL,
1360
1411
  0, () => Reaction$
1361
1412
  ];
1413
+ var SearchChannelHitList = [1, n1, _SCHL,
1414
+ 0, () => SearchChannelHit$
1415
+ ];
1416
+ var SearchMessageHitList = [1, n1, _SMHL,
1417
+ 0, () => SearchMessageHit$
1418
+ ];
1362
1419
  var SectionIdList = 64 | 0;
1363
1420
  var SectionList = [1, n1, _SL,
1364
1421
  0, () => Section$
@@ -1536,10 +1593,16 @@ export var RemoveChannelFromSection$ = [9, n1, _RCFS,
1536
1593
  export var RenameSection$ = [9, n1, _RS,
1537
1594
  { [_ht]: ["PATCH", "/api/v1/sections/{sectionId}", 200] }, () => RenameSectionInput$, () => RenameSectionOutput$
1538
1595
  ];
1596
+ export var SearchChannels$ = [9, n1, _SC,
1597
+ { [_ht]: ["GET", "/api/v1/search/channels", 200] }, () => SearchChannelsInput$, () => SearchChannelsOutput$
1598
+ ];
1599
+ export var SearchMessages$ = [9, n1, _SMe,
1600
+ { [_ht]: ["GET", "/api/v1/search/messages", 200] }, () => SearchMessagesInput$, () => SearchMessagesOutput$
1601
+ ];
1539
1602
  export var SendGiphy$ = [9, n1, _SG,
1540
1603
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/giphys", 200] }, () => SendGiphyInput$, () => SendGiphyOutput$
1541
1604
  ];
1542
- export var SendMessage$ = [9, n1, _SMe,
1605
+ export var SendMessage$ = [9, n1, _SMen,
1543
1606
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/messages", 200] }, () => SendMessageInput$, () => SendMessageOutput$
1544
1607
  ];
1545
1608
  export var SendMessageReaction$ = [9, n1, _SMR,
@@ -1554,7 +1617,7 @@ export var SendTypingStart$ = [9, n1, _STS,
1554
1617
  export var SendTypingStop$ = [9, n1, _STSe,
1555
1618
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/typing/stop", 200] }, () => SendTypingStopInput$, () => SendTypingStopOutput$
1556
1619
  ];
1557
- export var ShowChannel$ = [9, n1, _SC,
1620
+ export var ShowChannel$ = [9, n1, _SCh,
1558
1621
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/show", 204] }, () => ShowChannelInput$, () => ShowChannelOutput$
1559
1622
  ];
1560
1623
  export var UnmuteChannel$ = [9, n1, _UC,