@wildix/stream-client 0.0.12 → 0.0.14
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 -0
- package/dist-cjs/commands/SearchChannelsCommand.js +21 -0
- package/dist-cjs/commands/SearchMessagesCommand.js +21 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +6 -1
- package/dist-cjs/protocols/Aws_restJson1.js +80 -3
- package/dist-es/StreamService.js +4 -0
- package/dist-es/commands/SearchChannelsCommand.js +17 -0
- package/dist-es/commands/SearchMessagesCommand.js +17 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/protocols/Aws_restJson1.js +74 -1
- package/dist-types/StreamService.d.ts +14 -0
- package/dist-types/StreamServiceClient.d.ts +4 -2
- package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -3
- package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -3
- package/dist-types/commands/AssignChannelCommand.d.ts +1 -3
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +1 -3
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +1 -3
- package/dist-types/commands/CreateSectionCommand.d.ts +1 -3
- package/dist-types/commands/DeleteChannelCommand.d.ts +1 -3
- package/dist-types/commands/DeleteChannelMemberCommand.d.ts +1 -3
- package/dist-types/commands/DeleteMessageCommand.d.ts +1 -3
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +1 -3
- package/dist-types/commands/DeleteSectionCommand.d.ts +1 -3
- package/dist-types/commands/GetChannelCommand.d.ts +1 -3
- package/dist-types/commands/GetChannelMemberCommand.d.ts +1 -3
- package/dist-types/commands/GetDirectChannelIdCommand.d.ts +1 -3
- package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +1 -3
- package/dist-types/commands/GetInboxCommand.d.ts +1 -3
- package/dist-types/commands/GetMessageCommand.d.ts +1 -3
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +1 -3
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +1 -3
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +1 -3
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +1 -3
- package/dist-types/commands/GetSmsChannelIdCommand.d.ts +1 -3
- package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +1 -3
- package/dist-types/commands/GetTokenCommand.d.ts +1 -3
- package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +1 -3
- package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +1 -3
- package/dist-types/commands/HideChannelCommand.d.ts +1 -3
- package/dist-types/commands/JoinChannelCommand.d.ts +1 -3
- package/dist-types/commands/LeaveChannelCommand.d.ts +1 -3
- package/dist-types/commands/ListChannelMembersCommand.d.ts +1 -3
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +1 -3
- package/dist-types/commands/ListChannelsCommand.d.ts +1 -3
- package/dist-types/commands/ListMentionsCommand.d.ts +1 -3
- package/dist-types/commands/ListMessagesCommand.d.ts +1 -3
- package/dist-types/commands/MarkReadCommand.d.ts +1 -3
- package/dist-types/commands/MarkUnreadCommand.d.ts +1 -3
- package/dist-types/commands/MoveChannelToSectionCommand.d.ts +1 -3
- package/dist-types/commands/MuteChannelCommand.d.ts +1 -3
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +1 -3
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +1 -3
- package/dist-types/commands/PinChannelCommand.d.ts +1 -3
- package/dist-types/commands/PinMessageCommand.d.ts +1 -3
- package/dist-types/commands/QueryChannelsCommand.d.ts +1 -3
- package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +1 -3
- package/dist-types/commands/RenameSectionCommand.d.ts +1 -3
- package/dist-types/commands/SearchChannelsCommand.d.ts +160 -0
- package/dist-types/commands/SearchMessagesCommand.d.ts +204 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +1 -3
- package/dist-types/commands/SendMessageCommand.d.ts +1 -3
- package/dist-types/commands/SendMessageReactionCommand.d.ts +1 -3
- package/dist-types/commands/SendSystemMessageCommand.d.ts +1 -3
- package/dist-types/commands/SendTypingStartCommand.d.ts +1 -3
- package/dist-types/commands/SendTypingStopCommand.d.ts +1 -3
- package/dist-types/commands/ShowChannelCommand.d.ts +1 -3
- package/dist-types/commands/UnmuteChannelCommand.d.ts +1 -3
- package/dist-types/commands/UnpinChannelCommand.d.ts +1 -3
- package/dist-types/commands/UnpinMessageCommand.d.ts +1 -3
- package/dist-types/commands/UpdateChannelCommand.d.ts +1 -3
- package/dist-types/commands/UpdateMessageCommand.d.ts +1 -3
- package/dist-types/commands/UploadFileCommand.d.ts +1 -3
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +145 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/runtimeConfig.d.ts +1 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -3
- 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,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchChannelsCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class SearchChannelsCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("StreamService", "SearchChannels", {})
|
|
15
|
+
.n("StreamServiceClient", "SearchChannelsCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_SearchChannelsCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_SearchChannelsCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.SearchChannelsCommand = SearchChannelsCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchMessagesCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class SearchMessagesCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("StreamService", "SearchMessages", {})
|
|
15
|
+
.n("StreamServiceClient", "SearchMessagesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_SearchMessagesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_SearchMessagesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
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.SystemMessage = exports.MessageUnsetFields = exports.MarkUnreadChannelsLimitReachedException = exports.MentionsFilter = exports.GroupChannelUnsetOptions = exports.FileNotFoundException = exports.FileCategory = exports.DownloadStrategy = exports.SectionNotFoundException = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.SectionType = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.Element = exports.GroupChannelCreationEventType = exports.ChannelsFilter = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.MessageType = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.StreamServiceException = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ValidationException = exports.UnauthorizedException = exports.RateLimitExceededException = exports.ForbiddenException = void 0;
|
|
3
|
+
exports.SystemMessage = exports.SearchSort = exports.MessageUnsetFields = exports.MarkUnreadChannelsLimitReachedException = exports.MentionsFilter = exports.GroupChannelUnsetOptions = exports.FileNotFoundException = exports.FileCategory = exports.DownloadStrategy = exports.SectionNotFoundException = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.SectionType = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.Element = exports.GroupChannelCreationEventType = exports.ChannelsFilter = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.MessageType = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.StreamServiceException = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ValidationException = exports.UnauthorizedException = exports.RateLimitExceededException = exports.ForbiddenException = void 0;
|
|
4
4
|
const StreamServiceServiceException_1 = require("./StreamServiceServiceException");
|
|
5
5
|
class ForbiddenException extends StreamServiceServiceException_1.StreamServiceServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -366,6 +366,11 @@ exports.MessageUnsetFields = {
|
|
|
366
366
|
WHATSAPP: "whatsapp",
|
|
367
367
|
WHATSAPP_STATUS: "whatsappStatus",
|
|
368
368
|
};
|
|
369
|
+
exports.SearchSort = {
|
|
370
|
+
RECENCY: "recency",
|
|
371
|
+
RECENCY_ASC: "recency_asc",
|
|
372
|
+
RELEVANCE: "relevance",
|
|
373
|
+
};
|
|
369
374
|
var SystemMessage;
|
|
370
375
|
(function (SystemMessage) {
|
|
371
376
|
SystemMessage.visit = (value, visitor) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_UnpinMessageCommand = exports.de_UnpinChannelCommand = exports.de_UnmuteChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendSystemMessageCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_RenameSectionCommand = exports.de_RemoveChannelFromSectionCommand = exports.de_QueryChannelsCommand = void 0;
|
|
3
|
+
exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_SearchMessagesCommand = exports.se_SearchChannelsCommand = exports.se_RenameSectionCommand = exports.se_RemoveChannelFromSectionCommand = exports.se_QueryChannelsCommand = exports.se_PinMessageCommand = exports.se_PinChannelCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MuteChannelCommand = exports.se_MoveChannelToSectionCommand = exports.se_MarkUnreadCommand = exports.se_MarkReadCommand = exports.se_ListMessagesCommand = exports.se_ListMentionsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersReadStatusCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_HideChannelCommand = exports.se_GetWhatsAppChannelIdCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetTokenCommand = exports.se_GetTelephonyChannelIdCommand = exports.se_GetSmsChannelIdCommand = exports.se_GetOrCreateWhatsAppChannelCommand = exports.se_GetOrCreateTelephonyChannelCommand = exports.se_GetOrCreateSmsChannelCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetInboxCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_DeleteSectionCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateSectionCommand = exports.se_CreateKiteChannelCommand = exports.se_CreateGroupChannelCommand = exports.se_AssignChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
|
|
4
|
+
exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MuteChannelCommand = exports.de_MoveChannelToSectionCommand = exports.de_MarkUnreadCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMentionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersReadStatusCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_HideChannelCommand = exports.de_GetWhatsAppChannelIdCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetTokenCommand = exports.de_GetTelephonyChannelIdCommand = exports.de_GetSmsChannelIdCommand = exports.de_GetOrCreateWhatsAppChannelCommand = exports.de_GetOrCreateTelephonyChannelCommand = exports.de_GetOrCreateSmsChannelCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetInboxCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DeleteSectionCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateSectionCommand = exports.de_CreateKiteChannelCommand = exports.de_CreateGroupChannelCommand = exports.de_AssignChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateChannelCommand = exports.se_UnpinMessageCommand = exports.se_UnpinChannelCommand = exports.se_UnmuteChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendSystemMessageCommand = void 0;
|
|
5
|
+
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_UnpinMessageCommand = exports.de_UnpinChannelCommand = exports.de_UnmuteChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendSystemMessageCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_SearchMessagesCommand = exports.de_SearchChannelsCommand = exports.de_RenameSectionCommand = exports.de_RemoveChannelFromSectionCommand = exports.de_QueryChannelsCommand = exports.de_PinMessageCommand = exports.de_PinChannelCommand = void 0;
|
|
6
6
|
const StreamServiceServiceException_1 = require("../models/StreamServiceServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -956,6 +956,46 @@ const se_RenameSectionCommand = async (input, context) => {
|
|
|
956
956
|
return b.build();
|
|
957
957
|
};
|
|
958
958
|
exports.se_RenameSectionCommand = se_RenameSectionCommand;
|
|
959
|
+
const se_SearchChannelsCommand = async (input, context) => {
|
|
960
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
961
|
+
const headers = {};
|
|
962
|
+
b.bp("/api/v1/search/channels");
|
|
963
|
+
const query = (0, smithy_client_1.map)({
|
|
964
|
+
[_c]: [, input[_cI]],
|
|
965
|
+
[_uI]: [, input[_uI]],
|
|
966
|
+
[_q]: [, (0, smithy_client_1.expectNonNull)(input[_q], `q`)],
|
|
967
|
+
[_si]: [() => input.size !== void 0, () => (input[_si].toString())],
|
|
968
|
+
[_cu]: [, input[_cu]],
|
|
969
|
+
});
|
|
970
|
+
let body;
|
|
971
|
+
b.m("GET")
|
|
972
|
+
.h(headers)
|
|
973
|
+
.q(query)
|
|
974
|
+
.b(body);
|
|
975
|
+
return b.build();
|
|
976
|
+
};
|
|
977
|
+
exports.se_SearchChannelsCommand = se_SearchChannelsCommand;
|
|
978
|
+
const se_SearchMessagesCommand = async (input, context) => {
|
|
979
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
980
|
+
const headers = {};
|
|
981
|
+
b.bp("/api/v1/search/messages");
|
|
982
|
+
const query = (0, smithy_client_1.map)({
|
|
983
|
+
[_c]: [, input[_cI]],
|
|
984
|
+
[_uI]: [, input[_uI]],
|
|
985
|
+
[_q]: [, (0, smithy_client_1.expectNonNull)(input[_q], `q`)],
|
|
986
|
+
[_cIh]: [, input[_cIh]],
|
|
987
|
+
[_si]: [() => input.size !== void 0, () => (input[_si].toString())],
|
|
988
|
+
[_cu]: [, input[_cu]],
|
|
989
|
+
[_so]: [, input[_so]],
|
|
990
|
+
});
|
|
991
|
+
let body;
|
|
992
|
+
b.m("GET")
|
|
993
|
+
.h(headers)
|
|
994
|
+
.q(query)
|
|
995
|
+
.b(body);
|
|
996
|
+
return b.build();
|
|
997
|
+
};
|
|
998
|
+
exports.se_SearchMessagesCommand = se_SearchMessagesCommand;
|
|
959
999
|
const se_SendGiphyCommand = async (input, context) => {
|
|
960
1000
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
961
1001
|
const headers = {
|
|
@@ -1911,6 +1951,39 @@ const de_RenameSectionCommand = async (output, context) => {
|
|
|
1911
1951
|
return contents;
|
|
1912
1952
|
};
|
|
1913
1953
|
exports.de_RenameSectionCommand = de_RenameSectionCommand;
|
|
1954
|
+
const de_SearchChannelsCommand = async (output, context) => {
|
|
1955
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1956
|
+
return de_CommandError(output, context);
|
|
1957
|
+
}
|
|
1958
|
+
const contents = (0, smithy_client_1.map)({
|
|
1959
|
+
$metadata: deserializeMetadata(output),
|
|
1960
|
+
});
|
|
1961
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1962
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1963
|
+
'nextCursor': smithy_client_1.expectString,
|
|
1964
|
+
'results': smithy_client_1._json,
|
|
1965
|
+
});
|
|
1966
|
+
Object.assign(contents, doc);
|
|
1967
|
+
return contents;
|
|
1968
|
+
};
|
|
1969
|
+
exports.de_SearchChannelsCommand = de_SearchChannelsCommand;
|
|
1970
|
+
const de_SearchMessagesCommand = async (output, context) => {
|
|
1971
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1972
|
+
return de_CommandError(output, context);
|
|
1973
|
+
}
|
|
1974
|
+
const contents = (0, smithy_client_1.map)({
|
|
1975
|
+
$metadata: deserializeMetadata(output),
|
|
1976
|
+
});
|
|
1977
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1978
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1979
|
+
'nextCursor': smithy_client_1.expectString,
|
|
1980
|
+
'results': smithy_client_1._json,
|
|
1981
|
+
'totalCount': smithy_client_1.expectInt32,
|
|
1982
|
+
});
|
|
1983
|
+
Object.assign(contents, doc);
|
|
1984
|
+
return contents;
|
|
1985
|
+
};
|
|
1986
|
+
exports.de_SearchMessagesCommand = de_SearchMessagesCommand;
|
|
1914
1987
|
const de_SendGiphyCommand = async (output, context) => {
|
|
1915
1988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1916
1989
|
return de_CommandError(output, context);
|
|
@@ -2363,6 +2436,7 @@ const deserializeMetadata = (output) => ({
|
|
|
2363
2436
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
|
|
2364
2437
|
const _c = "company";
|
|
2365
2438
|
const _cI = "companyId";
|
|
2439
|
+
const _cIh = "channelId";
|
|
2366
2440
|
const _cIl = "clientId";
|
|
2367
2441
|
const _ca = "category";
|
|
2368
2442
|
const _cu = "cursor";
|
|
@@ -2372,6 +2446,7 @@ const _fo = "force";
|
|
|
2372
2446
|
const _fr = "from";
|
|
2373
2447
|
const _l = "limit";
|
|
2374
2448
|
const _o = "offset";
|
|
2449
|
+
const _q = "q";
|
|
2375
2450
|
const _rA = "retryAfter";
|
|
2376
2451
|
const _rL = "rateLimit";
|
|
2377
2452
|
const _rLR = "rateLimitRemaining";
|
|
@@ -2379,6 +2454,8 @@ const _rLRa = "rateLimitReset";
|
|
|
2379
2454
|
const _ra = "retry-after";
|
|
2380
2455
|
const _s = "silent";
|
|
2381
2456
|
const _se = "section";
|
|
2457
|
+
const _si = "size";
|
|
2458
|
+
const _so = "sort";
|
|
2382
2459
|
const _t = "to";
|
|
2383
2460
|
const _uI = "userId";
|
|
2384
2461
|
const _xrl = "x-ratelimit-limit";
|
package/dist-es/StreamService.js
CHANGED
|
@@ -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,17 @@
|
|
|
1
|
+
import { de_SearchChannelsCommand, se_SearchChannelsCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class SearchChannelsCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "SearchChannels", {})
|
|
12
|
+
.n("StreamServiceClient", "SearchChannelsCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SearchChannelsCommand)
|
|
15
|
+
.de(de_SearchChannelsCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_SearchMessagesCommand, se_SearchMessagesCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class SearchMessagesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("StreamService", "SearchMessages", {})
|
|
12
|
+
.n("StreamServiceClient", "SearchMessagesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SearchMessagesCommand)
|
|
15
|
+
.de(de_SearchMessagesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -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";
|
|
@@ -348,6 +348,11 @@ export const MessageUnsetFields = {
|
|
|
348
348
|
WHATSAPP: "whatsapp",
|
|
349
349
|
WHATSAPP_STATUS: "whatsappStatus",
|
|
350
350
|
};
|
|
351
|
+
export const SearchSort = {
|
|
352
|
+
RECENCY: "recency",
|
|
353
|
+
RECENCY_ASC: "recency_asc",
|
|
354
|
+
RELEVANCE: "relevance",
|
|
355
|
+
};
|
|
351
356
|
export var SystemMessage;
|
|
352
357
|
(function (SystemMessage) {
|
|
353
358
|
SystemMessage.visit = (value, visitor) => {
|
|
@@ -2,7 +2,7 @@ import { StreamServiceServiceException as __BaseException } from "../models/Stre
|
|
|
2
2
|
import { ChannelAlreadyExistException, ChannelNotFoundException, FileNotFoundException, ForbiddenException, MarkUnreadChannelsLimitReachedException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, RateLimitExceededException, SectionNotFoundException, StreamServiceException, TargetNotEligibleException, TargetNotFoundException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
|
-
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
6
|
export const se_AddChannelMemberCommand = async (input, context) => {
|
|
7
7
|
const b = rb(input, context);
|
|
8
8
|
const headers = {
|
|
@@ -906,6 +906,44 @@ export const se_RenameSectionCommand = async (input, context) => {
|
|
|
906
906
|
.b(body);
|
|
907
907
|
return b.build();
|
|
908
908
|
};
|
|
909
|
+
export const se_SearchChannelsCommand = async (input, context) => {
|
|
910
|
+
const b = rb(input, context);
|
|
911
|
+
const headers = {};
|
|
912
|
+
b.bp("/api/v1/search/channels");
|
|
913
|
+
const query = map({
|
|
914
|
+
[_c]: [, input[_cI]],
|
|
915
|
+
[_uI]: [, input[_uI]],
|
|
916
|
+
[_q]: [, __expectNonNull(input[_q], `q`)],
|
|
917
|
+
[_si]: [() => input.size !== void 0, () => (input[_si].toString())],
|
|
918
|
+
[_cu]: [, input[_cu]],
|
|
919
|
+
});
|
|
920
|
+
let body;
|
|
921
|
+
b.m("GET")
|
|
922
|
+
.h(headers)
|
|
923
|
+
.q(query)
|
|
924
|
+
.b(body);
|
|
925
|
+
return b.build();
|
|
926
|
+
};
|
|
927
|
+
export const se_SearchMessagesCommand = async (input, context) => {
|
|
928
|
+
const b = rb(input, context);
|
|
929
|
+
const headers = {};
|
|
930
|
+
b.bp("/api/v1/search/messages");
|
|
931
|
+
const query = map({
|
|
932
|
+
[_c]: [, input[_cI]],
|
|
933
|
+
[_uI]: [, input[_uI]],
|
|
934
|
+
[_q]: [, __expectNonNull(input[_q], `q`)],
|
|
935
|
+
[_cIh]: [, input[_cIh]],
|
|
936
|
+
[_si]: [() => input.size !== void 0, () => (input[_si].toString())],
|
|
937
|
+
[_cu]: [, input[_cu]],
|
|
938
|
+
[_so]: [, input[_so]],
|
|
939
|
+
});
|
|
940
|
+
let body;
|
|
941
|
+
b.m("GET")
|
|
942
|
+
.h(headers)
|
|
943
|
+
.q(query)
|
|
944
|
+
.b(body);
|
|
945
|
+
return b.build();
|
|
946
|
+
};
|
|
909
947
|
export const se_SendGiphyCommand = async (input, context) => {
|
|
910
948
|
const b = rb(input, context);
|
|
911
949
|
const headers = {
|
|
@@ -1803,6 +1841,37 @@ export const de_RenameSectionCommand = async (output, context) => {
|
|
|
1803
1841
|
Object.assign(contents, doc);
|
|
1804
1842
|
return contents;
|
|
1805
1843
|
};
|
|
1844
|
+
export const de_SearchChannelsCommand = async (output, context) => {
|
|
1845
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1846
|
+
return de_CommandError(output, context);
|
|
1847
|
+
}
|
|
1848
|
+
const contents = map({
|
|
1849
|
+
$metadata: deserializeMetadata(output),
|
|
1850
|
+
});
|
|
1851
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1852
|
+
const doc = take(data, {
|
|
1853
|
+
'nextCursor': __expectString,
|
|
1854
|
+
'results': _json,
|
|
1855
|
+
});
|
|
1856
|
+
Object.assign(contents, doc);
|
|
1857
|
+
return contents;
|
|
1858
|
+
};
|
|
1859
|
+
export const de_SearchMessagesCommand = async (output, context) => {
|
|
1860
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1861
|
+
return de_CommandError(output, context);
|
|
1862
|
+
}
|
|
1863
|
+
const contents = map({
|
|
1864
|
+
$metadata: deserializeMetadata(output),
|
|
1865
|
+
});
|
|
1866
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1867
|
+
const doc = take(data, {
|
|
1868
|
+
'nextCursor': __expectString,
|
|
1869
|
+
'results': _json,
|
|
1870
|
+
'totalCount': __expectInt32,
|
|
1871
|
+
});
|
|
1872
|
+
Object.assign(contents, doc);
|
|
1873
|
+
return contents;
|
|
1874
|
+
};
|
|
1806
1875
|
export const de_SendGiphyCommand = async (output, context) => {
|
|
1807
1876
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1808
1877
|
return de_CommandError(output, context);
|
|
@@ -2242,6 +2311,7 @@ const deserializeMetadata = (output) => ({
|
|
|
2242
2311
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
2243
2312
|
const _c = "company";
|
|
2244
2313
|
const _cI = "companyId";
|
|
2314
|
+
const _cIh = "channelId";
|
|
2245
2315
|
const _cIl = "clientId";
|
|
2246
2316
|
const _ca = "category";
|
|
2247
2317
|
const _cu = "cursor";
|
|
@@ -2251,6 +2321,7 @@ const _fo = "force";
|
|
|
2251
2321
|
const _fr = "from";
|
|
2252
2322
|
const _l = "limit";
|
|
2253
2323
|
const _o = "offset";
|
|
2324
|
+
const _q = "q";
|
|
2254
2325
|
const _rA = "retryAfter";
|
|
2255
2326
|
const _rL = "rateLimit";
|
|
2256
2327
|
const _rLR = "rateLimitRemaining";
|
|
@@ -2258,6 +2329,8 @@ const _rLRa = "rateLimitReset";
|
|
|
2258
2329
|
const _ra = "retry-after";
|
|
2259
2330
|
const _s = "silent";
|
|
2260
2331
|
const _se = "section";
|
|
2332
|
+
const _si = "size";
|
|
2333
|
+
const _so = "sort";
|
|
2261
2334
|
const _t = "to";
|
|
2262
2335
|
const _uI = "userId";
|
|
2263
2336
|
const _xrl = "x-ratelimit-limit";
|
|
@@ -44,6 +44,8 @@ import { PinMessageCommandInput, PinMessageCommandOutput } from "./commands/PinM
|
|
|
44
44
|
import { QueryChannelsCommandInput, QueryChannelsCommandOutput } from "./commands/QueryChannelsCommand";
|
|
45
45
|
import { RemoveChannelFromSectionCommandInput, RemoveChannelFromSectionCommandOutput } from "./commands/RemoveChannelFromSectionCommand";
|
|
46
46
|
import { RenameSectionCommandInput, RenameSectionCommandOutput } from "./commands/RenameSectionCommand";
|
|
47
|
+
import { SearchChannelsCommandInput, SearchChannelsCommandOutput } from "./commands/SearchChannelsCommand";
|
|
48
|
+
import { SearchMessagesCommandInput, SearchMessagesCommandOutput } from "./commands/SearchMessagesCommand";
|
|
47
49
|
import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
|
|
48
50
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
|
|
49
51
|
import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
|
|
@@ -336,6 +338,18 @@ export interface StreamService {
|
|
|
336
338
|
renameSection(args: RenameSectionCommandInput, options?: __HttpHandlerOptions): Promise<RenameSectionCommandOutput>;
|
|
337
339
|
renameSection(args: RenameSectionCommandInput, cb: (err: any, data?: RenameSectionCommandOutput) => void): void;
|
|
338
340
|
renameSection(args: RenameSectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RenameSectionCommandOutput) => void): void;
|
|
341
|
+
/**
|
|
342
|
+
* @see {@link SearchChannelsCommand}
|
|
343
|
+
*/
|
|
344
|
+
searchChannels(args: SearchChannelsCommandInput, options?: __HttpHandlerOptions): Promise<SearchChannelsCommandOutput>;
|
|
345
|
+
searchChannels(args: SearchChannelsCommandInput, cb: (err: any, data?: SearchChannelsCommandOutput) => void): void;
|
|
346
|
+
searchChannels(args: SearchChannelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchChannelsCommandOutput) => void): void;
|
|
347
|
+
/**
|
|
348
|
+
* @see {@link SearchMessagesCommand}
|
|
349
|
+
*/
|
|
350
|
+
searchMessages(args: SearchMessagesCommandInput, options?: __HttpHandlerOptions): Promise<SearchMessagesCommandOutput>;
|
|
351
|
+
searchMessages(args: SearchMessagesCommandInput, cb: (err: any, data?: SearchMessagesCommandOutput) => void): void;
|
|
352
|
+
searchMessages(args: SearchMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchMessagesCommandOutput) => void): void;
|
|
339
353
|
/**
|
|
340
354
|
* @see {@link SendGiphyCommand}
|
|
341
355
|
*/
|
|
@@ -43,6 +43,8 @@ import { PinMessageCommandInput, PinMessageCommandOutput } from "./commands/PinM
|
|
|
43
43
|
import { QueryChannelsCommandInput, QueryChannelsCommandOutput } from "./commands/QueryChannelsCommand";
|
|
44
44
|
import { RemoveChannelFromSectionCommandInput, RemoveChannelFromSectionCommandOutput } from "./commands/RemoveChannelFromSectionCommand";
|
|
45
45
|
import { RenameSectionCommandInput, RenameSectionCommandOutput } from "./commands/RenameSectionCommand";
|
|
46
|
+
import { SearchChannelsCommandInput, SearchChannelsCommandOutput } from "./commands/SearchChannelsCommand";
|
|
47
|
+
import { SearchMessagesCommandInput, SearchMessagesCommandOutput } from "./commands/SearchMessagesCommand";
|
|
46
48
|
import { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
|
|
47
49
|
import { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
|
|
48
50
|
import { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
|
|
@@ -67,11 +69,11 @@ export { __Client };
|
|
|
67
69
|
/**
|
|
68
70
|
* @public
|
|
69
71
|
*/
|
|
70
|
-
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateKiteChannelCommandInput | CreateSectionCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DeleteSectionCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetOrCreateSmsChannelCommandInput | GetOrCreateTelephonyChannelCommandInput | GetOrCreateWhatsAppChannelCommandInput | GetSmsChannelIdCommandInput | GetTelephonyChannelIdCommandInput | GetTokenCommandInput | GetUploadedFileInfoCommandInput | GetWhatsAppChannelIdCommandInput | HideChannelCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelMembersReadStatusCommandInput | ListChannelsCommandInput | ListMentionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | MoveChannelToSectionCommandInput | MuteChannelCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | RemoveChannelFromSectionCommandInput | RenameSectionCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendSystemMessageCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UnmuteChannelCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
72
|
+
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateKiteChannelCommandInput | CreateSectionCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DeleteSectionCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetOrCreateSmsChannelCommandInput | GetOrCreateTelephonyChannelCommandInput | GetOrCreateWhatsAppChannelCommandInput | GetSmsChannelIdCommandInput | GetTelephonyChannelIdCommandInput | GetTokenCommandInput | GetUploadedFileInfoCommandInput | GetWhatsAppChannelIdCommandInput | HideChannelCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelMembersReadStatusCommandInput | ListChannelsCommandInput | ListMentionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | MoveChannelToSectionCommandInput | MuteChannelCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | RemoveChannelFromSectionCommandInput | RenameSectionCommandInput | SearchChannelsCommandInput | SearchMessagesCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendSystemMessageCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UnmuteChannelCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
71
73
|
/**
|
|
72
74
|
* @public
|
|
73
75
|
*/
|
|
74
|
-
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateKiteChannelCommandOutput | CreateSectionCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DeleteSectionCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetOrCreateSmsChannelCommandOutput | GetOrCreateTelephonyChannelCommandOutput | GetOrCreateWhatsAppChannelCommandOutput | GetSmsChannelIdCommandOutput | GetTelephonyChannelIdCommandOutput | GetTokenCommandOutput | GetUploadedFileInfoCommandOutput | GetWhatsAppChannelIdCommandOutput | HideChannelCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelMembersReadStatusCommandOutput | ListChannelsCommandOutput | ListMentionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | MoveChannelToSectionCommandOutput | MuteChannelCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | RemoveChannelFromSectionCommandOutput | RenameSectionCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendSystemMessageCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UnmuteChannelCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
76
|
+
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateKiteChannelCommandOutput | CreateSectionCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DeleteSectionCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetOrCreateSmsChannelCommandOutput | GetOrCreateTelephonyChannelCommandOutput | GetOrCreateWhatsAppChannelCommandOutput | GetSmsChannelIdCommandOutput | GetTelephonyChannelIdCommandOutput | GetTokenCommandOutput | GetUploadedFileInfoCommandOutput | GetWhatsAppChannelIdCommandOutput | HideChannelCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelMembersReadStatusCommandOutput | ListChannelsCommandOutput | ListMentionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | MoveChannelToSectionCommandOutput | MuteChannelCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | RemoveChannelFromSectionCommandOutput | RenameSectionCommandOutput | SearchChannelsCommandOutput | SearchMessagesCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendSystemMessageCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UnmuteChannelCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
75
77
|
/**
|
|
76
78
|
* @public
|
|
77
79
|
*/
|
|
@@ -24,9 +24,7 @@ export interface AddChannelMemberCommandOutput extends AddChannelMemberOutput, _
|
|
|
24
24
|
declare const AddChannelMemberCommand_base: {
|
|
25
25
|
new (input: AddChannelMemberCommandInput): import("@smithy/smithy-client").CommandImpl<AddChannelMemberCommandInput, AddChannelMemberCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (__0_0: AddChannelMemberCommandInput): import("@smithy/smithy-client").CommandImpl<AddChannelMemberCommandInput, AddChannelMemberCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Adds one member to a channel.
|
|
@@ -24,9 +24,7 @@ export interface AddChannelMembersCommandOutput extends AddChannelMembersOutput,
|
|
|
24
24
|
declare const AddChannelMembersCommand_base: {
|
|
25
25
|
new (input: AddChannelMembersCommandInput): import("@smithy/smithy-client").CommandImpl<AddChannelMembersCommandInput, AddChannelMembersCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (__0_0: AddChannelMembersCommandInput): import("@smithy/smithy-client").CommandImpl<AddChannelMembersCommandInput, AddChannelMembersCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Adds members to a channel.
|
|
@@ -24,9 +24,7 @@ export interface AssignChannelCommandOutput extends AssignChannelOutput, __Metad
|
|
|
24
24
|
declare const AssignChannelCommand_base: {
|
|
25
25
|
new (input: AssignChannelCommandInput): import("@smithy/smithy-client").CommandImpl<AssignChannelCommandInput, AssignChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (__0_0: AssignChannelCommandInput): import("@smithy/smithy-client").CommandImpl<AssignChannelCommandInput, AssignChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Assigns a channel to a service and/or assignee.
|
|
@@ -24,9 +24,7 @@ export interface CreateGroupChannelCommandOutput extends CreateGroupChannelOutpu
|
|
|
24
24
|
declare const CreateGroupChannelCommand_base: {
|
|
25
25
|
new (input: CreateGroupChannelCommandInput): import("@smithy/smithy-client").CommandImpl<CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (...[input]: [] | [CreateGroupChannelCommandInput]): import("@smithy/smithy-client").CommandImpl<CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Creates a new group channel with specified members and members to invite.
|
|
@@ -24,9 +24,7 @@ export interface CreateKiteChannelCommandOutput extends CreateKiteChannelOutput,
|
|
|
24
24
|
declare const CreateKiteChannelCommand_base: {
|
|
25
25
|
new (input: CreateKiteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (__0_0: CreateKiteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Creates a new Kite channel for a widget target or agent email.
|
|
@@ -24,9 +24,7 @@ export interface CreateSectionCommandOutput extends CreateSectionOutput, __Metad
|
|
|
24
24
|
declare const CreateSectionCommand_base: {
|
|
25
25
|
new (input: CreateSectionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSectionCommandInput, CreateSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (__0_0: CreateSectionCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSectionCommandInput, CreateSectionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Creates a custom inbox section.
|
|
@@ -24,9 +24,7 @@ export interface DeleteChannelCommandOutput extends DeleteChannelOutput, __Metad
|
|
|
24
24
|
declare const DeleteChannelCommand_base: {
|
|
25
25
|
new (input: DeleteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteChannelCommandInput, DeleteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (__0_0: DeleteChannelCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteChannelCommandInput, DeleteChannelCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Deletes a channel. Idempotent when the channel is already gone.
|
|
@@ -24,9 +24,7 @@ export interface DeleteChannelMemberCommandOutput extends DeleteChannelMemberOut
|
|
|
24
24
|
declare const DeleteChannelMemberCommand_base: {
|
|
25
25
|
new (input: DeleteChannelMemberCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (__0_0: DeleteChannelMemberCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Removes one member from a channel.
|
|
@@ -24,9 +24,7 @@ export interface DeleteMessageCommandOutput extends DeleteMessageOutput, __Metad
|
|
|
24
24
|
declare const DeleteMessageCommand_base: {
|
|
25
25
|
new (input: DeleteMessageCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteMessageCommandInput, DeleteMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (__0_0: DeleteMessageCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteMessageCommandInput, DeleteMessageCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Tombstones one message. The row stays in place so timeline ordering is stable; clients render the gap as a deleted-message placeholder. Hard purge is owned by retention, not by this endpoint. Only the sender or an admin may delete.
|
|
@@ -24,9 +24,7 @@ export interface DeleteMessageReactionCommandOutput extends DeleteMessageReactio
|
|
|
24
24
|
declare const DeleteMessageReactionCommand_base: {
|
|
25
25
|
new (input: DeleteMessageReactionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
26
|
new (__0_0: DeleteMessageReactionCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteMessageReactionCommandInput, DeleteMessageReactionCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions():
|
|
28
|
-
[x: string]: unknown;
|
|
29
|
-
};
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
30
28
|
};
|
|
31
29
|
/**
|
|
32
30
|
* Removes the current user's reaction of `<type>` on one message. Duplicate removes are absorbed and only the first apply advances `messageVersion`.
|