@wildix/stream-client 4.0.1 → 4.0.3

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 +84 -19
  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 +81 -16
  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 +4 -3
  19. package/dist-types/commands/CreateKiteChannelCommand.d.ts +4 -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 +4 -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 +4 -3
  31. package/dist-types/commands/GetMessageCommand.d.ts +1 -3
  32. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +4 -3
  33. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +4 -3
  34. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +4 -3
  35. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +4 -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 +4 -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 +4 -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 +4 -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 +4 -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 +168 -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 +4 -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 +173 -1
  78. package/dist-types/schemas/schemas_0.d.ts +8 -0
  79. package/package.json +1 -1
@@ -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";
@@ -366,12 +380,14 @@ const _pA = "pinnedAt";
366
380
  const _pB = "pinnedBy";
367
381
  const _pC = "pictureColor";
368
382
  const _pDU = "presignedDownloadUrl";
383
+ const _pMI = "pinnedMessageIds";
369
384
  const _pUU = "presignedUploadUrl";
370
385
  const _ph = "phone";
371
386
  const _pi = "picture";
372
387
  const _pin = "pinned";
373
388
  const _pt = "ptt";
374
389
  const _q = "quote";
390
+ const _q_ = "q";
375
391
  const _qu = "query";
376
392
  const _r = "reason";
377
393
  const _rA = "retryAfter";
@@ -385,6 +401,7 @@ const _rN = "recipientNumber";
385
401
  const _re = "read";
386
402
  const _reg = "region";
387
403
  const _rep = "reply";
404
+ const _res = "results";
388
405
  const _ro = "role";
389
406
  const _s = "smithy.ts.sdk.synthetic.wildix.stream";
390
407
  const _sI = "sectionId";
@@ -402,12 +419,14 @@ const _si = "silent";
402
419
  const _siz = "size";
403
420
  const _sm = "sms";
404
421
  const _so = "source";
422
+ const _sor = "sort";
405
423
  const _st = "start";
406
424
  const _sta = "status";
407
425
  const _su = "subject";
408
426
  const _sum = "summary";
409
427
  const _sy = "system";
410
428
  const _t = "text";
429
+ const _tC = "totalCount";
411
430
  const _tI = "targetId";
412
431
  const _tL = "transcriptionLanguage";
413
432
  const _tRI = "targetRouteId";
@@ -611,8 +630,8 @@ exports.ButtonReplyHandler$ = [3, n1, _BRH,
611
630
  ];
612
631
  exports.Channel$ = [3, n1, _C,
613
632
  0,
614
- [_cI, _cT, _mC, _cA, _cB, _cV, _lAA, _uA, _lM, _co, _k, _kT, _kV, _kSN, _kDS, _ser, _sR, _te, _ex, _su, _de, _pi, _pC, _ac, _b, _con, _wS, _sm, _mm, _w, _kA, _sT, _aI, _aR, _tL, _wGVO],
615
- [0, 0, 1, 0, 0, 1, 0, 0, () => exports.LastMessagePreview$, 0, 2, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, () => exports.ChannelContext$, 0, 2, 2, 2, 0, 0, 0, 2, 0, 2], 7
633
+ [_cI, _cT, _mC, _cA, _cB, _cV, _lAA, _uA, _lM, _co, _k, _kT, _kV, _kSN, _kDS, _ser, _sR, _te, _ex, _pMI, _su, _de, _pi, _pC, _ac, _b, _con, _wS, _sm, _mm, _w, _kA, _sT, _aI, _aR, _tL, _wGVO],
634
+ [0, 0, 1, 0, 0, 1, 0, 0, () => exports.LastMessagePreview$, 0, 2, 0, 0, 0, 0, 0, 0, 2, 2, 64 | 0, 0, 0, 0, 0, 0, 2, () => exports.ChannelContext$, 0, 2, 2, 2, 0, 0, 0, 2, 0, 2], 7
616
635
  ];
617
636
  exports.ChannelContext$ = [3, n1, _CC,
618
637
  0,
@@ -891,8 +910,8 @@ exports.HideChannelOutput$ = [3, n1, _HCO,
891
910
  ];
892
911
  exports.InboxChannel$ = [3, n1, _IC,
893
912
  0,
894
- [_cI, _cT, _mC, _cA, _cB, _cV, _lAA, _in, _uA, _lM, _co, _k, _kT, _kV, _kSN, _kDS, _ser, _sR, _te, _ex, _su, _de, _pi, _pC, _ac, _b, _con, _wS, _sm, _mm, _w, _kA, _sT, _aI, _aR, _tL, _wGVO],
895
- [0, 0, 1, 0, 0, 1, 0, () => exports.InboxState$, 0, () => exports.LastMessagePreview$, 0, 2, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 2, () => exports.ChannelContext$, 0, 2, 2, 2, 0, 0, 0, 2, 0, 2], 8
913
+ [_cI, _cT, _mC, _cA, _cB, _cV, _lAA, _in, _uA, _lM, _co, _k, _kT, _kV, _kSN, _kDS, _ser, _sR, _te, _ex, _pMI, _su, _de, _pi, _pC, _ac, _b, _con, _wS, _sm, _mm, _w, _kA, _sT, _aI, _aR, _tL, _wGVO],
914
+ [0, 0, 1, 0, 0, 1, 0, () => exports.InboxState$, 0, () => exports.LastMessagePreview$, 0, 2, 0, 0, 0, 0, 0, 0, 2, 2, 64 | 0, 0, 0, 0, 0, 0, 2, () => exports.ChannelContext$, 0, 2, 2, 2, 0, 0, 0, 2, 0, 2], 8
896
915
  ];
897
916
  exports.InboxState$ = [3, n1, _IS,
898
917
  0,
@@ -1164,6 +1183,36 @@ exports.RenameSectionOutput$ = [3, n1, _RSO,
1164
1183
  [_sec],
1165
1184
  [() => exports.Section$], 1
1166
1185
  ];
1186
+ exports.SearchChannelHit$ = [3, n1, _SCH,
1187
+ 0,
1188
+ [_ch, _hig],
1189
+ [() => exports.Channel$, 64 | 0], 1
1190
+ ];
1191
+ exports.SearchChannelsInput$ = [3, n1, _SCI,
1192
+ 0,
1193
+ [_cIo, _uI, _q_, _mI, _cT, _siz, _cu, _sor],
1194
+ [[0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _q_ }], [0, { [_hQ]: _mI }], [0, { [_hQ]: _cT }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _sor }]]
1195
+ ];
1196
+ exports.SearchChannelsOutput$ = [3, n1, _SCO,
1197
+ 0,
1198
+ [_res, _nC],
1199
+ [() => SearchChannelHitList, 0], 1
1200
+ ];
1201
+ exports.SearchMessageHit$ = [3, n1, _SMH,
1202
+ 0,
1203
+ [_cI, _m, _hig],
1204
+ [0, () => exports.Message$, 64 | 0], 2
1205
+ ];
1206
+ exports.SearchMessagesInput$ = [3, n1, _SMI,
1207
+ 0,
1208
+ [_cIo, _uI, _q_, _cI, _hA, _aT, _mTi, _siz, _cu, _sor],
1209
+ [[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 }]]
1210
+ ];
1211
+ exports.SearchMessagesOutput$ = [3, n1, _SMO,
1212
+ 0,
1213
+ [_res, _tC, _nC],
1214
+ [() => SearchMessageHitList, 1, 0], 1
1215
+ ];
1167
1216
  exports.Section$ = [3, n1, _S,
1168
1217
  0,
1169
1218
  [_sI, _n, _ty, _cC, _uUCC, _uUMC, _mUMC, _uMC],
@@ -1179,12 +1228,12 @@ exports.SendGiphyOutput$ = [3, n1, _SGO,
1179
1228
  [_m],
1180
1229
  [() => exports.Message$], 1
1181
1230
  ];
1182
- exports.SendMessageInput$ = [3, n1, _SMI,
1231
+ exports.SendMessageInput$ = [3, n1, _SMIe,
1183
1232
  0,
1184
1233
  [_cI, _cIo, _uI, _t, _el, _att, _q, _fo, _ma, _si, _w, _wS, _sm, _sS, _mIe, _men, _mT],
1185
1234
  [[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
1235
  ];
1187
- exports.SendMessageOutput$ = [3, n1, _SMO,
1236
+ exports.SendMessageOutput$ = [3, n1, _SMOe,
1188
1237
  0,
1189
1238
  [_m],
1190
1239
  [() => exports.Message$], 1
@@ -1229,12 +1278,12 @@ exports.SendTypingStopOutput$ = [3, n1, _STSOe,
1229
1278
  [],
1230
1279
  []
1231
1280
  ];
1232
- exports.ShowChannelInput$ = [3, n1, _SCI,
1281
+ exports.ShowChannelInput$ = [3, n1, _SCIh,
1233
1282
  0,
1234
1283
  [_cI, _cIo, _uI],
1235
1284
  [[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }]], 1
1236
1285
  ];
1237
- exports.ShowChannelOutput$ = [3, n1, _SCO,
1286
+ exports.ShowChannelOutput$ = [3, n1, _SCOh,
1238
1287
  0,
1239
1288
  [],
1240
1289
  []
@@ -1327,9 +1376,11 @@ exports.WhatsAppClosedSystemMessage$ = [3, n1, _WACSM,
1327
1376
  var ListTemplateParameter = [1, n3, _LTP,
1328
1377
  0, () => exports.TemplateParameter$
1329
1378
  ];
1379
+ var StringList = 64 | 0;
1330
1380
  var ActionsElementsList = [1, n1, _AEL,
1331
1381
  0, () => exports.ActionElement$
1332
1382
  ];
1383
+ var AttachmentTypeList = 64 | 0;
1333
1384
  var ChannelContextEventAttendeeList = [1, n1, _CCEAL,
1334
1385
  0, () => exports.ChannelContextEventAttendee$
1335
1386
  ];
@@ -1363,9 +1414,17 @@ var MessageList = [1, n1, _ML,
1363
1414
  0, () => exports.Message$
1364
1415
  ];
1365
1416
  var MessageUnsetFieldsList = 64 | 0;
1417
+ var MimeTypeList = 64 | 0;
1418
+ var PinnedMessageIdList = 64 | 0;
1366
1419
  var ReactionList = [1, n1, _RL,
1367
1420
  0, () => exports.Reaction$
1368
1421
  ];
1422
+ var SearchChannelHitList = [1, n1, _SCHL,
1423
+ 0, () => exports.SearchChannelHit$
1424
+ ];
1425
+ var SearchMessageHitList = [1, n1, _SMHL,
1426
+ 0, () => exports.SearchMessageHit$
1427
+ ];
1369
1428
  var SectionIdList = 64 | 0;
1370
1429
  var SectionList = [1, n1, _SL,
1371
1430
  0, () => exports.Section$
@@ -1543,10 +1602,16 @@ exports.RemoveChannelFromSection$ = [9, n1, _RCFS,
1543
1602
  exports.RenameSection$ = [9, n1, _RS,
1544
1603
  { [_ht]: ["PATCH", "/api/v1/sections/{sectionId}", 200] }, () => exports.RenameSectionInput$, () => exports.RenameSectionOutput$
1545
1604
  ];
1605
+ exports.SearchChannels$ = [9, n1, _SC,
1606
+ { [_ht]: ["GET", "/api/v1/search/channels", 200] }, () => exports.SearchChannelsInput$, () => exports.SearchChannelsOutput$
1607
+ ];
1608
+ exports.SearchMessages$ = [9, n1, _SMe,
1609
+ { [_ht]: ["GET", "/api/v1/search/messages", 200] }, () => exports.SearchMessagesInput$, () => exports.SearchMessagesOutput$
1610
+ ];
1546
1611
  exports.SendGiphy$ = [9, n1, _SG,
1547
1612
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/giphys", 200] }, () => exports.SendGiphyInput$, () => exports.SendGiphyOutput$
1548
1613
  ];
1549
- exports.SendMessage$ = [9, n1, _SMe,
1614
+ exports.SendMessage$ = [9, n1, _SMen,
1550
1615
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/messages", 200] }, () => exports.SendMessageInput$, () => exports.SendMessageOutput$
1551
1616
  ];
1552
1617
  exports.SendMessageReaction$ = [9, n1, _SMR,
@@ -1561,7 +1626,7 @@ exports.SendTypingStart$ = [9, n1, _STS,
1561
1626
  exports.SendTypingStop$ = [9, n1, _STSe,
1562
1627
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/typing/stop", 200] }, () => exports.SendTypingStopInput$, () => exports.SendTypingStopOutput$
1563
1628
  ];
1564
- exports.ShowChannel$ = [9, n1, _SC,
1629
+ exports.ShowChannel$ = [9, n1, _SCh,
1565
1630
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/show", 204] }, () => exports.ShowChannelInput$, () => exports.ShowChannelOutput$
1566
1631
  ];
1567
1632
  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
+ };