@wildix/stream-client 4.1.10 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/StreamService.js +4 -2
- package/dist-cjs/commands/{GetTokenCommand.js → QueryUsersCommand.js} +6 -6
- package/dist-cjs/commands/SearchUsersCommand.js +20 -0
- package/dist-cjs/commands/index.js +2 -1
- package/dist-cjs/models/enums.js +15 -1
- package/dist-cjs/schemas/schemas_0.js +84 -26
- package/dist-es/StreamService.js +4 -2
- package/dist-es/commands/{GetTokenCommand.js → QueryUsersCommand.js} +5 -5
- package/dist-es/commands/SearchUsersCommand.js +16 -0
- package/dist-es/commands/index.js +2 -1
- package/dist-es/models/enums.js +14 -0
- package/dist-es/schemas/schemas_0.js +79 -22
- package/dist-types/StreamService.d.ts +14 -8
- package/dist-types/StreamServiceClient.d.ts +4 -3
- package/dist-types/commands/QueryUsersCommand.d.ts +114 -0
- package/dist-types/commands/SearchUsersCommand.d.ts +116 -0
- package/dist-types/commands/index.d.ts +2 -1
- package/dist-types/models/enums.d.ts +30 -0
- package/dist-types/models/models_0.d.ts +233 -46
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +9 -3
- package/package.json +3 -2
- package/dist-types/commands/GetTokenCommand.d.ts +0 -89
|
@@ -25,7 +25,6 @@ const GetOrCreateTelephonyChannelCommand_1 = require("./commands/GetOrCreateTele
|
|
|
25
25
|
const GetOrCreateWhatsAppChannelCommand_1 = require("./commands/GetOrCreateWhatsAppChannelCommand");
|
|
26
26
|
const GetSmsChannelIdCommand_1 = require("./commands/GetSmsChannelIdCommand");
|
|
27
27
|
const GetTelephonyChannelIdCommand_1 = require("./commands/GetTelephonyChannelIdCommand");
|
|
28
|
-
const GetTokenCommand_1 = require("./commands/GetTokenCommand");
|
|
29
28
|
const GetUploadedFileInfoCommand_1 = require("./commands/GetUploadedFileInfoCommand");
|
|
30
29
|
const GetWhatsAppChannelIdCommand_1 = require("./commands/GetWhatsAppChannelIdCommand");
|
|
31
30
|
const HardDeleteChannelCommand_1 = require("./commands/HardDeleteChannelCommand");
|
|
@@ -46,10 +45,12 @@ const PartialUpdateMessageCommand_1 = require("./commands/PartialUpdateMessageCo
|
|
|
46
45
|
const PinChannelCommand_1 = require("./commands/PinChannelCommand");
|
|
47
46
|
const PinMessageCommand_1 = require("./commands/PinMessageCommand");
|
|
48
47
|
const QueryChannelsCommand_1 = require("./commands/QueryChannelsCommand");
|
|
48
|
+
const QueryUsersCommand_1 = require("./commands/QueryUsersCommand");
|
|
49
49
|
const RemoveChannelFromSectionCommand_1 = require("./commands/RemoveChannelFromSectionCommand");
|
|
50
50
|
const RenameSectionCommand_1 = require("./commands/RenameSectionCommand");
|
|
51
51
|
const SearchChannelsCommand_1 = require("./commands/SearchChannelsCommand");
|
|
52
52
|
const SearchMessagesCommand_1 = require("./commands/SearchMessagesCommand");
|
|
53
|
+
const SearchUsersCommand_1 = require("./commands/SearchUsersCommand");
|
|
53
54
|
const SendGiphyCommand_1 = require("./commands/SendGiphyCommand");
|
|
54
55
|
const SendMessageCommand_1 = require("./commands/SendMessageCommand");
|
|
55
56
|
const SendMessageReactionCommand_1 = require("./commands/SendMessageReactionCommand");
|
|
@@ -88,7 +89,6 @@ const commands = {
|
|
|
88
89
|
GetOrCreateWhatsAppChannelCommand: GetOrCreateWhatsAppChannelCommand_1.GetOrCreateWhatsAppChannelCommand,
|
|
89
90
|
GetSmsChannelIdCommand: GetSmsChannelIdCommand_1.GetSmsChannelIdCommand,
|
|
90
91
|
GetTelephonyChannelIdCommand: GetTelephonyChannelIdCommand_1.GetTelephonyChannelIdCommand,
|
|
91
|
-
GetTokenCommand: GetTokenCommand_1.GetTokenCommand,
|
|
92
92
|
GetUploadedFileInfoCommand: GetUploadedFileInfoCommand_1.GetUploadedFileInfoCommand,
|
|
93
93
|
GetWhatsAppChannelIdCommand: GetWhatsAppChannelIdCommand_1.GetWhatsAppChannelIdCommand,
|
|
94
94
|
HardDeleteChannelCommand: HardDeleteChannelCommand_1.HardDeleteChannelCommand,
|
|
@@ -109,10 +109,12 @@ const commands = {
|
|
|
109
109
|
PinChannelCommand: PinChannelCommand_1.PinChannelCommand,
|
|
110
110
|
PinMessageCommand: PinMessageCommand_1.PinMessageCommand,
|
|
111
111
|
QueryChannelsCommand: QueryChannelsCommand_1.QueryChannelsCommand,
|
|
112
|
+
QueryUsersCommand: QueryUsersCommand_1.QueryUsersCommand,
|
|
112
113
|
RemoveChannelFromSectionCommand: RemoveChannelFromSectionCommand_1.RemoveChannelFromSectionCommand,
|
|
113
114
|
RenameSectionCommand: RenameSectionCommand_1.RenameSectionCommand,
|
|
114
115
|
SearchChannelsCommand: SearchChannelsCommand_1.SearchChannelsCommand,
|
|
115
116
|
SearchMessagesCommand: SearchMessagesCommand_1.SearchMessagesCommand,
|
|
117
|
+
SearchUsersCommand: SearchUsersCommand_1.SearchUsersCommand,
|
|
116
118
|
SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
|
|
117
119
|
SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
|
|
118
120
|
SendMessageReactionCommand: SendMessageReactionCommand_1.SendMessageReactionCommand,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.QueryUsersCommand = exports.$Command = void 0;
|
|
4
4
|
const client_1 = require("@smithy/core/client");
|
|
5
5
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
6
|
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
7
|
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
8
|
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
-
class
|
|
9
|
+
class QueryUsersCommand extends client_1.Command
|
|
10
10
|
.classBuilder()
|
|
11
11
|
.ep(EndpointParameters_1.commonParams)
|
|
12
12
|
.m(function (Command, cs, config, o) {
|
|
13
13
|
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
14
|
})
|
|
15
|
-
.s("StreamService", "
|
|
16
|
-
.n("StreamServiceClient", "
|
|
17
|
-
.sc(schemas_0_1.
|
|
15
|
+
.s("StreamService", "QueryUsers", {})
|
|
16
|
+
.n("StreamServiceClient", "QueryUsersCommand")
|
|
17
|
+
.sc(schemas_0_1.QueryUsers$)
|
|
18
18
|
.build() {
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
20
|
+
exports.QueryUsersCommand = QueryUsersCommand;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchUsersCommand = 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 SearchUsersCommand 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", "SearchUsers", {})
|
|
16
|
+
.n("StreamServiceClient", "SearchUsersCommand")
|
|
17
|
+
.sc(schemas_0_1.SearchUsers$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.SearchUsersCommand = SearchUsersCommand;
|
|
@@ -24,7 +24,6 @@ tslib_1.__exportStar(require("./GetOrCreateTelephonyChannelCommand"), exports);
|
|
|
24
24
|
tslib_1.__exportStar(require("./GetOrCreateWhatsAppChannelCommand"), exports);
|
|
25
25
|
tslib_1.__exportStar(require("./GetSmsChannelIdCommand"), exports);
|
|
26
26
|
tslib_1.__exportStar(require("./GetTelephonyChannelIdCommand"), exports);
|
|
27
|
-
tslib_1.__exportStar(require("./GetTokenCommand"), exports);
|
|
28
27
|
tslib_1.__exportStar(require("./GetUploadedFileInfoCommand"), exports);
|
|
29
28
|
tslib_1.__exportStar(require("./GetWhatsAppChannelIdCommand"), exports);
|
|
30
29
|
tslib_1.__exportStar(require("./HardDeleteChannelCommand"), exports);
|
|
@@ -45,10 +44,12 @@ tslib_1.__exportStar(require("./PartialUpdateMessageCommand"), exports);
|
|
|
45
44
|
tslib_1.__exportStar(require("./PinChannelCommand"), exports);
|
|
46
45
|
tslib_1.__exportStar(require("./PinMessageCommand"), exports);
|
|
47
46
|
tslib_1.__exportStar(require("./QueryChannelsCommand"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./QueryUsersCommand"), exports);
|
|
48
48
|
tslib_1.__exportStar(require("./RemoveChannelFromSectionCommand"), exports);
|
|
49
49
|
tslib_1.__exportStar(require("./RenameSectionCommand"), exports);
|
|
50
50
|
tslib_1.__exportStar(require("./SearchChannelsCommand"), exports);
|
|
51
51
|
tslib_1.__exportStar(require("./SearchMessagesCommand"), exports);
|
|
52
|
+
tslib_1.__exportStar(require("./SearchUsersCommand"), exports);
|
|
52
53
|
tslib_1.__exportStar(require("./SendGiphyCommand"), exports);
|
|
53
54
|
tslib_1.__exportStar(require("./SendMessageCommand"), exports);
|
|
54
55
|
tslib_1.__exportStar(require("./SendMessageReactionCommand"), exports);
|
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchSort = exports.MessageUnsetFields = exports.MessageAnchor = exports.MentionsFilter = exports.GroupChannelUnsetOptions = exports.FileCategory = exports.DownloadStrategy = exports.SectionType = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.MessageMessagingStatus = exports.GroupChannelCreationEventType = exports.ChannelsFilter = exports.ChannelWhatsAppStatus = exports.ChannelMessagingStatus = exports.MessagingChannel = exports.MessageType = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.AttachmentType = exports.AssignChannelVariant = exports.ChannelMemberRole = exports.ButtonVariant = void 0;
|
|
3
|
+
exports.SearchUsersMode = exports.UserMatchedOn = exports.SearchSort = exports.MessageUnsetFields = exports.MessageAnchor = exports.MentionsFilter = exports.GroupChannelUnsetOptions = exports.FileCategory = exports.DownloadStrategy = exports.SectionType = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.MessageMessagingStatus = exports.GroupChannelCreationEventType = exports.ChannelsFilter = exports.ChannelWhatsAppStatus = exports.ChannelMessagingStatus = exports.MessagingChannel = 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",
|
|
@@ -141,3 +141,17 @@ exports.SearchSort = {
|
|
|
141
141
|
RECENCY_ASC: "recency_asc",
|
|
142
142
|
RELEVANCE: "relevance",
|
|
143
143
|
};
|
|
144
|
+
exports.UserMatchedOn = {
|
|
145
|
+
EMAIL: "email",
|
|
146
|
+
EXACT: "exact",
|
|
147
|
+
FUZZY: "fuzzy",
|
|
148
|
+
PHONE: "phone",
|
|
149
|
+
PHONETIC: "phonetic",
|
|
150
|
+
PREFIX: "prefix",
|
|
151
|
+
};
|
|
152
|
+
exports.SearchUsersMode = {
|
|
153
|
+
AUTO: "auto",
|
|
154
|
+
EMAIL: "email",
|
|
155
|
+
NAME: "name",
|
|
156
|
+
PHONE: "phone",
|
|
157
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
4
|
+
exports.ListMessagesInput$ = exports.ListMentionsOutput$ = 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.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
|
+
exports.Section$ = exports.SearchUsersOutput$ = exports.SearchUsersInput$ = exports.SearchUserHit$ = exports.SearchMessagesOutput$ = exports.SearchMessagesInput$ = exports.SearchMessageHit$ = exports.SearchChannelsOutput$ = exports.SearchChannelsInput$ = exports.SearchChannelHit$ = exports.RenameSectionOutput$ = exports.RenameSectionInput$ = exports.RemoveChannelFromSectionOutput$ = exports.RemoveChannelFromSectionInput$ = exports.Reaction$ = exports.QueryUsersOutput$ = exports.QueryUsersInput$ = 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$ = void 0;
|
|
6
|
+
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.UsersQuery$ = 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.StreamUser$ = exports.ShowChannelOutput$ = exports.ShowChannelInput$ = exports.SendTypingStopOutput$ = exports.SendTypingStopInput$ = exports.SendTypingStartOutput$ = exports.SendTypingStartInput$ = exports.SendSystemMessageOutput$ = exports.SendSystemMessageInput$ = exports.SendMessageReactionOutput$ = exports.SendMessageReactionInput$ = exports.SendMessageOutput$ = exports.SendMessageInput$ = exports.SendGiphyOutput$ = exports.SendGiphyInput$ = void 0;
|
|
7
|
+
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.SearchUsers$ = exports.SearchMessages$ = exports.SearchChannels$ = exports.RenameSection$ = exports.RemoveChannelFromSection$ = exports.QueryUsers$ = 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.GetTelephonyChannelId$ = exports.GetSmsChannelId$ = exports.GetOrCreateWhatsAppChannel$ = exports.GetOrCreateTelephonyChannel$ = exports.GetOrCreateSmsChannel$ = exports.GetOrCreateDirectChannel$ = exports.GetMessage$ = exports.GetInbox$ = exports.GetFilePresignedDownloadUrl$ = exports.GetDirectChannelId$ = exports.GetChannelMember$ = exports.GetChannel$ = void 0;
|
|
8
|
+
exports.UploadFile$ = void 0;
|
|
8
9
|
const _AC = "AssignChannel";
|
|
9
10
|
const _ACAR = "AssignChannelAssigneeRequest";
|
|
10
11
|
const _ACI = "AssignChannelInput";
|
|
@@ -97,12 +98,9 @@ const _GOCWACO = "GetOrCreateWhatsAppChannelOutput";
|
|
|
97
98
|
const _GSCI = "GetSmsChannelId";
|
|
98
99
|
const _GSCII = "GetSmsChannelIdInput";
|
|
99
100
|
const _GSCIO = "GetSmsChannelIdOutput";
|
|
100
|
-
const _GT = "GetToken";
|
|
101
101
|
const _GTCI = "GetTelephonyChannelId";
|
|
102
102
|
const _GTCII = "GetTelephonyChannelIdInput";
|
|
103
103
|
const _GTCIO = "GetTelephonyChannelIdOutput";
|
|
104
|
-
const _GTI = "GetTokenInput";
|
|
105
|
-
const _GTO = "GetTokenOutput";
|
|
106
104
|
const _GUFI = "GetUploadedFileInfo";
|
|
107
105
|
const _GUFII = "GetUploadedFileInfoInput";
|
|
108
106
|
const _GUFIO = "GetUploadedFileInfoOutput";
|
|
@@ -190,6 +188,9 @@ const _PUMSI = "PartialUpdateMessageSetInput";
|
|
|
190
188
|
const _QC = "QueryChannels";
|
|
191
189
|
const _QCI = "QueryChannelsInput";
|
|
192
190
|
const _QCO = "QueryChannelsOutput";
|
|
191
|
+
const _QU = "QueryUsers";
|
|
192
|
+
const _QUI = "QueryUsersInput";
|
|
193
|
+
const _QUO = "QueryUsersOutput";
|
|
193
194
|
const _R = "Reaction";
|
|
194
195
|
const _RA = "Retry-After";
|
|
195
196
|
const _RCFS = "RemoveChannelFromSection";
|
|
@@ -236,6 +237,13 @@ const _STSIe = "SendTypingStopInput";
|
|
|
236
237
|
const _STSO = "SendTypingStartOutput";
|
|
237
238
|
const _STSOe = "SendTypingStopOutput";
|
|
238
239
|
const _STSe = "SendTypingStop";
|
|
240
|
+
const _SU = "StreamUser";
|
|
241
|
+
const _SUH = "SearchUserHit";
|
|
242
|
+
const _SUHL = "SearchUserHitList";
|
|
243
|
+
const _SUI = "SearchUsersInput";
|
|
244
|
+
const _SUL = "StreamUserList";
|
|
245
|
+
const _SUO = "SearchUsersOutput";
|
|
246
|
+
const _SUe = "SearchUsers";
|
|
239
247
|
const _TNEE = "TargetNotEligibleException";
|
|
240
248
|
const _TNFE = "TargetNotFoundException";
|
|
241
249
|
const _TP = "TemplateParameter";
|
|
@@ -261,6 +269,7 @@ const _UMIp = "UpdateMessageInput";
|
|
|
261
269
|
const _UMO = "UnpinMessageOutput";
|
|
262
270
|
const _UMOp = "UpdateMessageOutput";
|
|
263
271
|
const _UMp = "UpdateMessage";
|
|
272
|
+
const _UQ = "UsersQuery";
|
|
264
273
|
const _UTI = "UserToInvite";
|
|
265
274
|
const _UTIL = "UserToInviteList";
|
|
266
275
|
const _VE = "ValidationException";
|
|
@@ -285,6 +294,7 @@ const _at = "attendees";
|
|
|
285
294
|
const _att = "attachments";
|
|
286
295
|
const _b = "broadcast";
|
|
287
296
|
const _bI = "broadcastId";
|
|
297
|
+
const _bo = "bot";
|
|
288
298
|
const _bu = "button";
|
|
289
299
|
const _c = "client";
|
|
290
300
|
const _cA = "createdAt";
|
|
@@ -292,7 +302,6 @@ const _cB = "createdBy";
|
|
|
292
302
|
const _cC = "channelCount";
|
|
293
303
|
const _cET = "creationEventType";
|
|
294
304
|
const _cI = "channelId";
|
|
295
|
-
const _cIl = "clientId";
|
|
296
305
|
const _cIo = "companyId";
|
|
297
306
|
const _cT = "channelType";
|
|
298
307
|
const _cV = "channelVersion";
|
|
@@ -302,20 +311,22 @@ const _cha = "channels";
|
|
|
302
311
|
const _co = "company";
|
|
303
312
|
const _col = "colleague";
|
|
304
313
|
const _con = "context";
|
|
314
|
+
const _conf = "confidence";
|
|
305
315
|
const _cu = "cursor";
|
|
306
316
|
const _d = "disabled";
|
|
307
317
|
const _dA = "deletedAt";
|
|
318
|
+
const _dAe = "deactivatedAt";
|
|
308
319
|
const _de = "description";
|
|
309
320
|
const _do = "download";
|
|
310
321
|
const _e = "error";
|
|
311
322
|
const _eA = "editedAt";
|
|
312
323
|
const _el = "elements";
|
|
313
324
|
const _em = "email";
|
|
325
|
+
const _ema = "emails";
|
|
314
326
|
const _en = "end";
|
|
315
327
|
const _ev = "events";
|
|
316
328
|
const _eve = "event";
|
|
317
329
|
const _ex = "external";
|
|
318
|
-
const _exp = "expires";
|
|
319
330
|
const _f = "file";
|
|
320
331
|
const _fI = "fsId";
|
|
321
332
|
const _fUVS = "firstUnreadVisibleSeq";
|
|
@@ -336,6 +347,7 @@ const _hi = "hidden";
|
|
|
336
347
|
const _hig = "highlights";
|
|
337
348
|
const _ht = "http";
|
|
338
349
|
const _i = "id";
|
|
350
|
+
const _iB = "includeBots";
|
|
339
351
|
const _iM = "initialMessage";
|
|
340
352
|
const _id = "ids";
|
|
341
353
|
const _in = "inbox";
|
|
@@ -354,14 +366,17 @@ const _lRA = "lastReadAt";
|
|
|
354
366
|
const _lRTS = "lastReadTimelineSeq";
|
|
355
367
|
const _lRVS = "lastReadVisibleSeq";
|
|
356
368
|
const _li = "link";
|
|
369
|
+
const _lo = "locale";
|
|
357
370
|
const _m = "message";
|
|
358
371
|
const _mAA = "mentionAddedAt";
|
|
359
372
|
const _mC = "membersCount";
|
|
360
373
|
const _mCe = "messagingChannel";
|
|
361
374
|
const _mCem = "memberCount";
|
|
375
|
+
const _mCi = "minConfidence";
|
|
362
376
|
const _mI = "memberId";
|
|
363
377
|
const _mIe = "messageId";
|
|
364
378
|
const _mMJ = "multipleMembersJoined";
|
|
379
|
+
const _mO = "matchedOn";
|
|
365
380
|
const _mRU = "messagingReplyUntil";
|
|
366
381
|
const _mS = "messagingStatus";
|
|
367
382
|
const _mSI = "messagingSenderId";
|
|
@@ -374,12 +389,14 @@ const _mUC = "mentionUnreadCount";
|
|
|
374
389
|
const _mUMC = "mutedUnreadMessageCount";
|
|
375
390
|
const _mV = "messageVersion";
|
|
376
391
|
const _ma = "markdown";
|
|
392
|
+
const _mar = "margin";
|
|
377
393
|
const _me = "member";
|
|
378
394
|
const _mem = "members";
|
|
379
395
|
const _men = "mentions";
|
|
380
396
|
const _mes = "messages";
|
|
381
397
|
const _mi = "mime";
|
|
382
398
|
const _mm = "mms";
|
|
399
|
+
const _mo = "mode";
|
|
383
400
|
const _mu = "muted";
|
|
384
401
|
const _n = "name";
|
|
385
402
|
const _nC = "nextCursor";
|
|
@@ -392,11 +409,13 @@ const _pA = "pinnedAt";
|
|
|
392
409
|
const _pB = "pinnedBy";
|
|
393
410
|
const _pC = "pictureColor";
|
|
394
411
|
const _pDU = "presignedDownloadUrl";
|
|
412
|
+
const _pE = "pbxExtension";
|
|
395
413
|
const _pI = "peerId";
|
|
396
414
|
const _pIo = "pollId";
|
|
397
415
|
const _pMI = "pinnedMessageIds";
|
|
398
416
|
const _pUU = "presignedUploadUrl";
|
|
399
417
|
const _ph = "phone";
|
|
418
|
+
const _pho = "phones";
|
|
400
419
|
const _pi = "picture";
|
|
401
420
|
const _pin = "pinned";
|
|
402
421
|
const _pt = "ptt";
|
|
@@ -448,12 +467,12 @@ const _tI = "targetId";
|
|
|
448
467
|
const _tL = "transcriptionLanguage";
|
|
449
468
|
const _tRI = "targetRouteId";
|
|
450
469
|
const _tS = "timelineSeq";
|
|
470
|
+
const _tZ = "timeZone";
|
|
451
471
|
const _ta = "target";
|
|
452
472
|
const _te = "telephony";
|
|
453
473
|
const _tem = "template";
|
|
454
474
|
const _th = "thumbnail";
|
|
455
|
-
const _to = "
|
|
456
|
-
const _to_ = "to";
|
|
475
|
+
const _to = "to";
|
|
457
476
|
const _ty = "type";
|
|
458
477
|
const _u = "url";
|
|
459
478
|
const _uA = "updatedAt";
|
|
@@ -466,11 +485,14 @@ const _uUCC = "unmutedUnreadChannelCount";
|
|
|
466
485
|
const _uUMC = "unmutedUnreadMessageCount";
|
|
467
486
|
const _un = "unset";
|
|
468
487
|
const _ur = "uri";
|
|
488
|
+
const _us = "users";
|
|
489
|
+
const _use = "user";
|
|
469
490
|
const _v = "value";
|
|
470
491
|
const _vS = "visibleSeq";
|
|
471
492
|
const _va = "variant";
|
|
472
493
|
const _w = "whatsapp";
|
|
473
494
|
const _wAC = "whatsAppClosed";
|
|
495
|
+
const _wEO = "withExtensionOnly";
|
|
474
496
|
const _wGVO = "wizyGuestViewOnly";
|
|
475
497
|
const _wM = "welcomeMessages";
|
|
476
498
|
const _wS = "whatsappStatus";
|
|
@@ -880,16 +902,6 @@ exports.GetTelephonyChannelIdOutput$ = [3, n1, _GTCIO,
|
|
|
880
902
|
[_cI, _rI, _rD],
|
|
881
903
|
[0, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 1
|
|
882
904
|
];
|
|
883
|
-
exports.GetTokenInput$ = [3, n1, _GTI,
|
|
884
|
-
0,
|
|
885
|
-
[_cIo, _uI, _cIl],
|
|
886
|
-
[[0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _cIl }]]
|
|
887
|
-
];
|
|
888
|
-
exports.GetTokenOutput$ = [3, n1, _GTO,
|
|
889
|
-
0,
|
|
890
|
-
[_to, _exp, _rI, _rD],
|
|
891
|
-
[0, 1, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 2
|
|
892
|
-
];
|
|
893
905
|
exports.GetUploadedFileInfoInput$ = [3, n1, _GUFII,
|
|
894
906
|
0,
|
|
895
907
|
[_cI, _fI, _cIo, _uI, _ca],
|
|
@@ -1007,8 +1019,8 @@ exports.ListMentionsOutput$ = [3, n1, _LMO,
|
|
|
1007
1019
|
];
|
|
1008
1020
|
exports.ListMessagesInput$ = [3, n1, _LMIi,
|
|
1009
1021
|
0,
|
|
1010
|
-
[_cI, _cIo, _uI, _fr,
|
|
1011
|
-
[[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [1, { [_hQ]: _fr }], [1, { [_hQ]:
|
|
1022
|
+
[_cI, _cIo, _uI, _fr, _to, _an],
|
|
1023
|
+
[[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [1, { [_hQ]: _fr }], [1, { [_hQ]: _to }], [0, { [_hQ]: _an }]], 1
|
|
1012
1024
|
];
|
|
1013
1025
|
exports.ListMessagesOutput$ = [3, n1, _LMOi,
|
|
1014
1026
|
0,
|
|
@@ -1175,6 +1187,16 @@ exports.QueryChannelsOutput$ = [3, n1, _QCO,
|
|
|
1175
1187
|
[_cha, _rI, _rD],
|
|
1176
1188
|
[() => InboxChannelList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 1
|
|
1177
1189
|
];
|
|
1190
|
+
exports.QueryUsersInput$ = [3, n1, _QUI,
|
|
1191
|
+
0,
|
|
1192
|
+
[_qu, _cIo, _uI],
|
|
1193
|
+
[() => exports.UsersQuery$, [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }]], 1
|
|
1194
|
+
];
|
|
1195
|
+
exports.QueryUsersOutput$ = [3, n1, _QUO,
|
|
1196
|
+
0,
|
|
1197
|
+
[_us, _rI, _rD],
|
|
1198
|
+
[() => StreamUserList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 1
|
|
1199
|
+
];
|
|
1178
1200
|
exports.Reaction$ = [3, n1, _R,
|
|
1179
1201
|
0,
|
|
1180
1202
|
[_ty, _uI, _mIe],
|
|
@@ -1230,6 +1252,21 @@ exports.SearchMessagesOutput$ = [3, n1, _SMO,
|
|
|
1230
1252
|
[_res, _rI, _rD, _tC, _nC],
|
|
1231
1253
|
[() => SearchMessageHitList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }], 1, 0], 1
|
|
1232
1254
|
];
|
|
1255
|
+
exports.SearchUserHit$ = [3, n1, _SUH,
|
|
1256
|
+
0,
|
|
1257
|
+
[_use, _conf, _mO],
|
|
1258
|
+
[() => exports.StreamUser$, 1, 0], 3
|
|
1259
|
+
];
|
|
1260
|
+
exports.SearchUsersInput$ = [3, n1, _SUI,
|
|
1261
|
+
0,
|
|
1262
|
+
[_q_, _cIo, _uI, _mo, _siz, _cu, _iB, _wEO, _mCi],
|
|
1263
|
+
[[0, { [_hQ]: _q_ }], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _mo }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [2, { [_hQ]: _iB }], [2, { [_hQ]: _wEO }], [1, { [_hQ]: _mCi }]], 1
|
|
1264
|
+
];
|
|
1265
|
+
exports.SearchUsersOutput$ = [3, n1, _SUO,
|
|
1266
|
+
0,
|
|
1267
|
+
[_res, _rI, _rD, _nC, _mar],
|
|
1268
|
+
[() => SearchUserHitList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }], 0, 1], 1
|
|
1269
|
+
];
|
|
1233
1270
|
exports.Section$ = [3, n1, _S,
|
|
1234
1271
|
0,
|
|
1235
1272
|
[_sI, _n, _ty, _cC, _uUCC, _uUMC, _mUMC, _uMC],
|
|
@@ -1305,6 +1342,11 @@ exports.ShowChannelOutput$ = [3, n1, _SCOh,
|
|
|
1305
1342
|
[_rI, _rD],
|
|
1306
1343
|
[[0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]]
|
|
1307
1344
|
];
|
|
1345
|
+
exports.StreamUser$ = [3, n1, _SU,
|
|
1346
|
+
0,
|
|
1347
|
+
[_i, _bo, _n, _em, _ph, _cIo, _pi, _pE, _lo, _tZ, _dAe, _cA, _uA],
|
|
1348
|
+
[0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 2
|
|
1349
|
+
];
|
|
1308
1350
|
exports.UnmuteChannelInput$ = [3, n1, _UCI,
|
|
1309
1351
|
0,
|
|
1310
1352
|
[_cI, _cIo, _uI],
|
|
@@ -1375,6 +1417,11 @@ exports.UploadFileOutput$ = [3, n1, _UFOp,
|
|
|
1375
1417
|
[_fI, _pUU, _rI, _rD],
|
|
1376
1418
|
[0, 0, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 2
|
|
1377
1419
|
];
|
|
1420
|
+
exports.UsersQuery$ = [3, n1, _UQ,
|
|
1421
|
+
0,
|
|
1422
|
+
[_id, _ema, _pho],
|
|
1423
|
+
[64 | 0, 64 | 0, 64 | 0]
|
|
1424
|
+
];
|
|
1378
1425
|
exports.UserToInvite$ = [3, n1, _UTI,
|
|
1379
1426
|
0,
|
|
1380
1427
|
[_em, _ph, _n, _col],
|
|
@@ -1442,12 +1489,20 @@ var SearchChannelHitList = [1, n1, _SCHL,
|
|
|
1442
1489
|
var SearchMessageHitList = [1, n1, _SMHL,
|
|
1443
1490
|
0, () => exports.SearchMessageHit$
|
|
1444
1491
|
];
|
|
1492
|
+
var SearchUserHitList = [1, n1, _SUHL,
|
|
1493
|
+
0, () => exports.SearchUserHit$
|
|
1494
|
+
];
|
|
1445
1495
|
var SectionIdList = 64 | 0;
|
|
1446
1496
|
var SectionList = [1, n1, _SL,
|
|
1447
1497
|
0, () => exports.Section$
|
|
1448
1498
|
];
|
|
1449
1499
|
var SenderIdList = 64 | 0;
|
|
1500
|
+
var StreamUserList = [1, n1, _SUL,
|
|
1501
|
+
0, () => exports.StreamUser$
|
|
1502
|
+
];
|
|
1503
|
+
var UserEmailList = 64 | 0;
|
|
1450
1504
|
var UserIdList = 64 | 0;
|
|
1505
|
+
var UserPhoneList = 64 | 0;
|
|
1451
1506
|
var UserToInviteList = [1, n1, _UTIL,
|
|
1452
1507
|
0, () => exports.UserToInvite$
|
|
1453
1508
|
];
|
|
@@ -1554,9 +1609,6 @@ exports.GetSmsChannelId$ = [9, n1, _GSCI,
|
|
|
1554
1609
|
exports.GetTelephonyChannelId$ = [9, n1, _GTCI,
|
|
1555
1610
|
{ [_ht]: ["POST", "/api/v1/channels/telephony/resolve-id", 200] }, () => exports.GetTelephonyChannelIdInput$, () => exports.GetTelephonyChannelIdOutput$
|
|
1556
1611
|
];
|
|
1557
|
-
exports.GetToken$ = [9, n1, _GT,
|
|
1558
|
-
{ [_ht]: ["GET", "/api/v1/token", 200] }, () => exports.GetTokenInput$, () => exports.GetTokenOutput$
|
|
1559
|
-
];
|
|
1560
1612
|
exports.GetUploadedFileInfo$ = [9, n1, _GUFI,
|
|
1561
1613
|
{ [_ht]: ["GET", "/api/v1/channels/{channelId}/files/{fsId}", 200] }, () => exports.GetUploadedFileInfoInput$, () => exports.GetUploadedFileInfoOutput$
|
|
1562
1614
|
];
|
|
@@ -1617,6 +1669,9 @@ exports.PinMessage$ = [9, n1, _PM,
|
|
|
1617
1669
|
exports.QueryChannels$ = [9, n1, _QC,
|
|
1618
1670
|
{ [_ht]: ["POST", "/api/v1/channels/query", 200] }, () => exports.QueryChannelsInput$, () => exports.QueryChannelsOutput$
|
|
1619
1671
|
];
|
|
1672
|
+
exports.QueryUsers$ = [9, n1, _QU,
|
|
1673
|
+
{ [_ht]: ["POST", "/api/v1/users/query", 200] }, () => exports.QueryUsersInput$, () => exports.QueryUsersOutput$
|
|
1674
|
+
];
|
|
1620
1675
|
exports.RemoveChannelFromSection$ = [9, n1, _RCFS,
|
|
1621
1676
|
{ [_ht]: ["DELETE", "/api/v1/channels/{channelId}/sections/{sectionId}", 200] }, () => exports.RemoveChannelFromSectionInput$, () => exports.RemoveChannelFromSectionOutput$
|
|
1622
1677
|
];
|
|
@@ -1629,6 +1684,9 @@ exports.SearchChannels$ = [9, n1, _SC,
|
|
|
1629
1684
|
exports.SearchMessages$ = [9, n1, _SMe,
|
|
1630
1685
|
{ [_ht]: ["GET", "/api/v1/search/messages", 200] }, () => exports.SearchMessagesInput$, () => exports.SearchMessagesOutput$
|
|
1631
1686
|
];
|
|
1687
|
+
exports.SearchUsers$ = [9, n1, _SUe,
|
|
1688
|
+
{ [_ht]: ["GET", "/api/v1/search/users", 200] }, () => exports.SearchUsersInput$, () => exports.SearchUsersOutput$
|
|
1689
|
+
];
|
|
1632
1690
|
exports.SendGiphy$ = [9, n1, _SG,
|
|
1633
1691
|
{ [_ht]: ["POST", "/api/v1/channels/{channelId}/giphys", 200] }, () => exports.SendGiphyInput$, () => exports.SendGiphyOutput$
|
|
1634
1692
|
];
|
package/dist-es/StreamService.js
CHANGED
|
@@ -22,7 +22,6 @@ import { GetOrCreateTelephonyChannelCommand, } from "./commands/GetOrCreateTelep
|
|
|
22
22
|
import { GetOrCreateWhatsAppChannelCommand, } from "./commands/GetOrCreateWhatsAppChannelCommand";
|
|
23
23
|
import { GetSmsChannelIdCommand, } from "./commands/GetSmsChannelIdCommand";
|
|
24
24
|
import { GetTelephonyChannelIdCommand, } from "./commands/GetTelephonyChannelIdCommand";
|
|
25
|
-
import { GetTokenCommand } from "./commands/GetTokenCommand";
|
|
26
25
|
import { GetUploadedFileInfoCommand, } from "./commands/GetUploadedFileInfoCommand";
|
|
27
26
|
import { GetWhatsAppChannelIdCommand, } from "./commands/GetWhatsAppChannelIdCommand";
|
|
28
27
|
import { HardDeleteChannelCommand, } from "./commands/HardDeleteChannelCommand";
|
|
@@ -43,10 +42,12 @@ import { PartialUpdateMessageCommand, } from "./commands/PartialUpdateMessageCom
|
|
|
43
42
|
import { PinChannelCommand, } from "./commands/PinChannelCommand";
|
|
44
43
|
import { PinMessageCommand, } from "./commands/PinMessageCommand";
|
|
45
44
|
import { QueryChannelsCommand, } from "./commands/QueryChannelsCommand";
|
|
45
|
+
import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
|
|
46
46
|
import { RemoveChannelFromSectionCommand, } from "./commands/RemoveChannelFromSectionCommand";
|
|
47
47
|
import { RenameSectionCommand, } from "./commands/RenameSectionCommand";
|
|
48
48
|
import { SearchChannelsCommand, } from "./commands/SearchChannelsCommand";
|
|
49
49
|
import { SearchMessagesCommand, } from "./commands/SearchMessagesCommand";
|
|
50
|
+
import { SearchUsersCommand, } from "./commands/SearchUsersCommand";
|
|
50
51
|
import { SendGiphyCommand } from "./commands/SendGiphyCommand";
|
|
51
52
|
import { SendMessageCommand, } from "./commands/SendMessageCommand";
|
|
52
53
|
import { SendMessageReactionCommand, } from "./commands/SendMessageReactionCommand";
|
|
@@ -85,7 +86,6 @@ const commands = {
|
|
|
85
86
|
GetOrCreateWhatsAppChannelCommand,
|
|
86
87
|
GetSmsChannelIdCommand,
|
|
87
88
|
GetTelephonyChannelIdCommand,
|
|
88
|
-
GetTokenCommand,
|
|
89
89
|
GetUploadedFileInfoCommand,
|
|
90
90
|
GetWhatsAppChannelIdCommand,
|
|
91
91
|
HardDeleteChannelCommand,
|
|
@@ -106,10 +106,12 @@ const commands = {
|
|
|
106
106
|
PinChannelCommand,
|
|
107
107
|
PinMessageCommand,
|
|
108
108
|
QueryChannelsCommand,
|
|
109
|
+
QueryUsersCommand,
|
|
109
110
|
RemoveChannelFromSectionCommand,
|
|
110
111
|
RenameSectionCommand,
|
|
111
112
|
SearchChannelsCommand,
|
|
112
113
|
SearchMessagesCommand,
|
|
114
|
+
SearchUsersCommand,
|
|
113
115
|
SendGiphyCommand,
|
|
114
116
|
SendMessageCommand,
|
|
115
117
|
SendMessageReactionCommand,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Command as $Command } from "@smithy/core/client";
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
-
import {
|
|
4
|
+
import { QueryUsers$ } from "../schemas/schemas_0";
|
|
5
5
|
export { $Command };
|
|
6
|
-
export class
|
|
6
|
+
export class QueryUsersCommand extends $Command
|
|
7
7
|
.classBuilder()
|
|
8
8
|
.ep(commonParams)
|
|
9
9
|
.m(function (Command, cs, config, o) {
|
|
10
10
|
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
11
|
})
|
|
12
|
-
.s("StreamService", "
|
|
13
|
-
.n("StreamServiceClient", "
|
|
14
|
-
.sc(
|
|
12
|
+
.s("StreamService", "QueryUsers", {})
|
|
13
|
+
.n("StreamServiceClient", "QueryUsersCommand")
|
|
14
|
+
.sc(QueryUsers$)
|
|
15
15
|
.build() {
|
|
16
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 { SearchUsers$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class SearchUsersCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("StreamService", "SearchUsers", {})
|
|
13
|
+
.n("StreamServiceClient", "SearchUsersCommand")
|
|
14
|
+
.sc(SearchUsers$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -21,7 +21,6 @@ export * from "./GetOrCreateTelephonyChannelCommand";
|
|
|
21
21
|
export * from "./GetOrCreateWhatsAppChannelCommand";
|
|
22
22
|
export * from "./GetSmsChannelIdCommand";
|
|
23
23
|
export * from "./GetTelephonyChannelIdCommand";
|
|
24
|
-
export * from "./GetTokenCommand";
|
|
25
24
|
export * from "./GetUploadedFileInfoCommand";
|
|
26
25
|
export * from "./GetWhatsAppChannelIdCommand";
|
|
27
26
|
export * from "./HardDeleteChannelCommand";
|
|
@@ -42,10 +41,12 @@ export * from "./PartialUpdateMessageCommand";
|
|
|
42
41
|
export * from "./PinChannelCommand";
|
|
43
42
|
export * from "./PinMessageCommand";
|
|
44
43
|
export * from "./QueryChannelsCommand";
|
|
44
|
+
export * from "./QueryUsersCommand";
|
|
45
45
|
export * from "./RemoveChannelFromSectionCommand";
|
|
46
46
|
export * from "./RenameSectionCommand";
|
|
47
47
|
export * from "./SearchChannelsCommand";
|
|
48
48
|
export * from "./SearchMessagesCommand";
|
|
49
|
+
export * from "./SearchUsersCommand";
|
|
49
50
|
export * from "./SendGiphyCommand";
|
|
50
51
|
export * from "./SendMessageCommand";
|
|
51
52
|
export * from "./SendMessageReactionCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -138,3 +138,17 @@ export const SearchSort = {
|
|
|
138
138
|
RECENCY_ASC: "recency_asc",
|
|
139
139
|
RELEVANCE: "relevance",
|
|
140
140
|
};
|
|
141
|
+
export const UserMatchedOn = {
|
|
142
|
+
EMAIL: "email",
|
|
143
|
+
EXACT: "exact",
|
|
144
|
+
FUZZY: "fuzzy",
|
|
145
|
+
PHONE: "phone",
|
|
146
|
+
PHONETIC: "phonetic",
|
|
147
|
+
PREFIX: "prefix",
|
|
148
|
+
};
|
|
149
|
+
export const SearchUsersMode = {
|
|
150
|
+
AUTO: "auto",
|
|
151
|
+
EMAIL: "email",
|
|
152
|
+
NAME: "name",
|
|
153
|
+
PHONE: "phone",
|
|
154
|
+
};
|