@wildix/xbees-conversations-client 1.1.14 → 1.1.15
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/Conversations.js +2 -0
- package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +30 -3
- package/dist-es/Conversations.js +2 -0
- package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +25 -0
- package/dist-types/Conversations.d.ts +7 -0
- package/dist-types/ConversationsClient.d.ts +3 -2
- package/dist-types/commands/AssignChannelCommand.d.ts +4 -1
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +103 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +30 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +5 -5
|
@@ -29,6 +29,7 @@ const InviteCommand_1 = require("./commands/InviteCommand");
|
|
|
29
29
|
const JoinChannelCommand_1 = require("./commands/JoinChannelCommand");
|
|
30
30
|
const LeaveChannelCommand_1 = require("./commands/LeaveChannelCommand");
|
|
31
31
|
const ListChannelMembersCommand_1 = require("./commands/ListChannelMembersCommand");
|
|
32
|
+
const ListChannelMembersReadStatusCommand_1 = require("./commands/ListChannelMembersReadStatusCommand");
|
|
32
33
|
const ListChannelsCommand_1 = require("./commands/ListChannelsCommand");
|
|
33
34
|
const ListInboxTaggedChannelsCommand_1 = require("./commands/ListInboxTaggedChannelsCommand");
|
|
34
35
|
const ListInboxTagsCommand_1 = require("./commands/ListInboxTagsCommand");
|
|
@@ -88,6 +89,7 @@ const commands = {
|
|
|
88
89
|
JoinChannelCommand: JoinChannelCommand_1.JoinChannelCommand,
|
|
89
90
|
LeaveChannelCommand: LeaveChannelCommand_1.LeaveChannelCommand,
|
|
90
91
|
ListChannelMembersCommand: ListChannelMembersCommand_1.ListChannelMembersCommand,
|
|
92
|
+
ListChannelMembersReadStatusCommand: ListChannelMembersReadStatusCommand_1.ListChannelMembersReadStatusCommand,
|
|
91
93
|
ListChannelsCommand: ListChannelsCommand_1.ListChannelsCommand,
|
|
92
94
|
ListInboxTaggedChannelsCommand: ListInboxTaggedChannelsCommand_1.ListInboxTaggedChannelsCommand,
|
|
93
95
|
ListInboxTagsCommand: ListInboxTagsCommand_1.ListInboxTagsCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListChannelMembersReadStatusCommand = 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 ListChannelMembersReadStatusCommand 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("Conversations", "ListChannelMembersReadStatus", {})
|
|
15
|
+
.n("ConversationsClient", "ListChannelMembersReadStatusCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_ListChannelMembersReadStatusCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_ListChannelMembersReadStatusCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.ListChannelMembersReadStatusCommand = ListChannelMembersReadStatusCommand;
|
|
@@ -28,6 +28,7 @@ tslib_1.__exportStar(require("./InviteCommand"), exports);
|
|
|
28
28
|
tslib_1.__exportStar(require("./JoinChannelCommand"), exports);
|
|
29
29
|
tslib_1.__exportStar(require("./LeaveChannelCommand"), exports);
|
|
30
30
|
tslib_1.__exportStar(require("./ListChannelMembersCommand"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./ListChannelMembersReadStatusCommand"), exports);
|
|
31
32
|
tslib_1.__exportStar(require("./ListChannelsCommand"), exports);
|
|
32
33
|
tslib_1.__exportStar(require("./ListInboxTaggedChannelsCommand"), exports);
|
|
33
34
|
tslib_1.__exportStar(require("./ListInboxTagsCommand"), exports);
|
|
@@ -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_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinMessageCommand = exports.de_UnpinChannelCommand = exports.de_TriggerMessageActionCommand = exports.de_TagChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = void 0;
|
|
3
|
+
exports.se_TagChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_SendActionTriggerResultCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_QueryChannelsCommand = exports.se_PinMessageCommand = exports.se_PinChannelCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkUnreadCommand = exports.se_MarkReadCommand = exports.se_ListPinnedMessagesCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListInboxTagsCommand = exports.se_ListInboxTaggedChannelsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersReadStatusCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetTokenCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetInboxStateCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_GetActionTriggerResultCommand = exports.se_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteInboxTagCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateKiteChannelCommand = exports.se_CreateInboxTagCommand = exports.se_CreateGroupChannelCommand = exports.se_AssignChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
|
|
4
|
+
exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_QueryChannelsCommand = exports.de_PinMessageCommand = exports.de_PinChannelCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkUnreadCommand = exports.de_MarkReadCommand = exports.de_ListPinnedMessagesCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListInboxTagsCommand = exports.de_ListInboxTaggedChannelsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersReadStatusCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = exports.de_GetTokenCommand = exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetInboxStateCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_GetActionTriggerResultCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteInboxTagCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateKiteChannelCommand = exports.de_CreateInboxTagCommand = exports.de_CreateGroupChannelCommand = exports.de_AssignChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateInboxTagCommand = exports.se_UpdateChannelCommand = exports.se_UntagChannelCommand = exports.se_UnpinMessageCommand = exports.se_UnpinChannelCommand = exports.se_TriggerMessageActionCommand = void 0;
|
|
5
|
+
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateInboxTagCommand = exports.de_UpdateChannelCommand = exports.de_UntagChannelCommand = exports.de_UnpinMessageCommand = exports.de_UnpinChannelCommand = exports.de_TriggerMessageActionCommand = exports.de_TagChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_SendActionTriggerResultCommand = void 0;
|
|
6
6
|
const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const core_1 = require("@aws-sdk/core");
|
|
@@ -495,6 +495,18 @@ const se_ListChannelMembersCommand = async (input, context) => {
|
|
|
495
495
|
return b.build();
|
|
496
496
|
};
|
|
497
497
|
exports.se_ListChannelMembersCommand = se_ListChannelMembersCommand;
|
|
498
|
+
const se_ListChannelMembersReadStatusCommand = async (input, context) => {
|
|
499
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
500
|
+
const headers = {};
|
|
501
|
+
b.bp("/v2/conversations/channels/{channelId}/read");
|
|
502
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
503
|
+
let body;
|
|
504
|
+
b.m("GET")
|
|
505
|
+
.h(headers)
|
|
506
|
+
.b(body);
|
|
507
|
+
return b.build();
|
|
508
|
+
};
|
|
509
|
+
exports.se_ListChannelMembersReadStatusCommand = se_ListChannelMembersReadStatusCommand;
|
|
498
510
|
const se_ListChannelsCommand = async (input, context) => {
|
|
499
511
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
500
512
|
const headers = {};
|
|
@@ -1482,6 +1494,21 @@ const de_ListChannelMembersCommand = async (output, context) => {
|
|
|
1482
1494
|
return contents;
|
|
1483
1495
|
};
|
|
1484
1496
|
exports.de_ListChannelMembersCommand = de_ListChannelMembersCommand;
|
|
1497
|
+
const de_ListChannelMembersReadStatusCommand = async (output, context) => {
|
|
1498
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1499
|
+
return de_CommandError(output, context);
|
|
1500
|
+
}
|
|
1501
|
+
const contents = (0, smithy_client_1.map)({
|
|
1502
|
+
$metadata: deserializeMetadata(output),
|
|
1503
|
+
});
|
|
1504
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
1505
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1506
|
+
'members': smithy_client_1._json,
|
|
1507
|
+
});
|
|
1508
|
+
Object.assign(contents, doc);
|
|
1509
|
+
return contents;
|
|
1510
|
+
};
|
|
1511
|
+
exports.de_ListChannelMembersReadStatusCommand = de_ListChannelMembersReadStatusCommand;
|
|
1485
1512
|
const de_ListChannelsCommand = async (output, context) => {
|
|
1486
1513
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1487
1514
|
return de_CommandError(output, context);
|
package/dist-es/Conversations.js
CHANGED
|
@@ -26,6 +26,7 @@ import { InviteCommand, } from "./commands/InviteCommand";
|
|
|
26
26
|
import { JoinChannelCommand, } from "./commands/JoinChannelCommand";
|
|
27
27
|
import { LeaveChannelCommand, } from "./commands/LeaveChannelCommand";
|
|
28
28
|
import { ListChannelMembersCommand, } from "./commands/ListChannelMembersCommand";
|
|
29
|
+
import { ListChannelMembersReadStatusCommand, } from "./commands/ListChannelMembersReadStatusCommand";
|
|
29
30
|
import { ListChannelsCommand, } from "./commands/ListChannelsCommand";
|
|
30
31
|
import { ListInboxTaggedChannelsCommand, } from "./commands/ListInboxTaggedChannelsCommand";
|
|
31
32
|
import { ListInboxTagsCommand, } from "./commands/ListInboxTagsCommand";
|
|
@@ -85,6 +86,7 @@ const commands = {
|
|
|
85
86
|
JoinChannelCommand,
|
|
86
87
|
LeaveChannelCommand,
|
|
87
88
|
ListChannelMembersCommand,
|
|
89
|
+
ListChannelMembersReadStatusCommand,
|
|
88
90
|
ListChannelsCommand,
|
|
89
91
|
ListInboxTaggedChannelsCommand,
|
|
90
92
|
ListInboxTagsCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_ListChannelMembersReadStatusCommand, se_ListChannelMembersReadStatusCommand, } 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 ListChannelMembersReadStatusCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("Conversations", "ListChannelMembersReadStatus", {})
|
|
12
|
+
.n("ConversationsClient", "ListChannelMembersReadStatusCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_ListChannelMembersReadStatusCommand)
|
|
15
|
+
.de(de_ListChannelMembersReadStatusCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -25,6 +25,7 @@ export * from "./InviteCommand";
|
|
|
25
25
|
export * from "./JoinChannelCommand";
|
|
26
26
|
export * from "./LeaveChannelCommand";
|
|
27
27
|
export * from "./ListChannelMembersCommand";
|
|
28
|
+
export * from "./ListChannelMembersReadStatusCommand";
|
|
28
29
|
export * from "./ListChannelsCommand";
|
|
29
30
|
export * from "./ListInboxTaggedChannelsCommand";
|
|
30
31
|
export * from "./ListInboxTagsCommand";
|
|
@@ -463,6 +463,17 @@ export const se_ListChannelMembersCommand = async (input, context) => {
|
|
|
463
463
|
.b(body);
|
|
464
464
|
return b.build();
|
|
465
465
|
};
|
|
466
|
+
export const se_ListChannelMembersReadStatusCommand = async (input, context) => {
|
|
467
|
+
const b = rb(input, context);
|
|
468
|
+
const headers = {};
|
|
469
|
+
b.bp("/v2/conversations/channels/{channelId}/read");
|
|
470
|
+
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
471
|
+
let body;
|
|
472
|
+
b.m("GET")
|
|
473
|
+
.h(headers)
|
|
474
|
+
.b(body);
|
|
475
|
+
return b.build();
|
|
476
|
+
};
|
|
466
477
|
export const se_ListChannelsCommand = async (input, context) => {
|
|
467
478
|
const b = rb(input, context);
|
|
468
479
|
const headers = {};
|
|
@@ -1393,6 +1404,20 @@ export const de_ListChannelMembersCommand = async (output, context) => {
|
|
|
1393
1404
|
Object.assign(contents, doc);
|
|
1394
1405
|
return contents;
|
|
1395
1406
|
};
|
|
1407
|
+
export const de_ListChannelMembersReadStatusCommand = async (output, context) => {
|
|
1408
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1409
|
+
return de_CommandError(output, context);
|
|
1410
|
+
}
|
|
1411
|
+
const contents = map({
|
|
1412
|
+
$metadata: deserializeMetadata(output),
|
|
1413
|
+
});
|
|
1414
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1415
|
+
const doc = take(data, {
|
|
1416
|
+
'members': _json,
|
|
1417
|
+
});
|
|
1418
|
+
Object.assign(contents, doc);
|
|
1419
|
+
return contents;
|
|
1420
|
+
};
|
|
1396
1421
|
export const de_ListChannelsCommand = async (output, context) => {
|
|
1397
1422
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1398
1423
|
return de_CommandError(output, context);
|
|
@@ -26,6 +26,7 @@ import { InviteCommandInput, InviteCommandOutput } from "./commands/InviteComman
|
|
|
26
26
|
import { JoinChannelCommandInput, JoinChannelCommandOutput } from "./commands/JoinChannelCommand";
|
|
27
27
|
import { LeaveChannelCommandInput, LeaveChannelCommandOutput } from "./commands/LeaveChannelCommand";
|
|
28
28
|
import { ListChannelMembersCommandInput, ListChannelMembersCommandOutput } from "./commands/ListChannelMembersCommand";
|
|
29
|
+
import { ListChannelMembersReadStatusCommandInput, ListChannelMembersReadStatusCommandOutput } from "./commands/ListChannelMembersReadStatusCommand";
|
|
29
30
|
import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
|
|
30
31
|
import { ListInboxTaggedChannelsCommandInput, ListInboxTaggedChannelsCommandOutput } from "./commands/ListInboxTaggedChannelsCommand";
|
|
31
32
|
import { ListInboxTagsCommandInput, ListInboxTagsCommandOutput } from "./commands/ListInboxTagsCommand";
|
|
@@ -226,6 +227,12 @@ export interface Conversations {
|
|
|
226
227
|
listChannelMembers(args: ListChannelMembersCommandInput, options?: __HttpHandlerOptions): Promise<ListChannelMembersCommandOutput>;
|
|
227
228
|
listChannelMembers(args: ListChannelMembersCommandInput, cb: (err: any, data?: ListChannelMembersCommandOutput) => void): void;
|
|
228
229
|
listChannelMembers(args: ListChannelMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListChannelMembersCommandOutput) => void): void;
|
|
230
|
+
/**
|
|
231
|
+
* @see {@link ListChannelMembersReadStatusCommand}
|
|
232
|
+
*/
|
|
233
|
+
listChannelMembersReadStatus(args: ListChannelMembersReadStatusCommandInput, options?: __HttpHandlerOptions): Promise<ListChannelMembersReadStatusCommandOutput>;
|
|
234
|
+
listChannelMembersReadStatus(args: ListChannelMembersReadStatusCommandInput, cb: (err: any, data?: ListChannelMembersReadStatusCommandOutput) => void): void;
|
|
235
|
+
listChannelMembersReadStatus(args: ListChannelMembersReadStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListChannelMembersReadStatusCommandOutput) => void): void;
|
|
229
236
|
/**
|
|
230
237
|
* @see {@link ListChannelsCommand}
|
|
231
238
|
*/
|
|
@@ -25,6 +25,7 @@ import { InviteCommandInput, InviteCommandOutput } from "./commands/InviteComman
|
|
|
25
25
|
import { JoinChannelCommandInput, JoinChannelCommandOutput } from "./commands/JoinChannelCommand";
|
|
26
26
|
import { LeaveChannelCommandInput, LeaveChannelCommandOutput } from "./commands/LeaveChannelCommand";
|
|
27
27
|
import { ListChannelMembersCommandInput, ListChannelMembersCommandOutput } from "./commands/ListChannelMembersCommand";
|
|
28
|
+
import { ListChannelMembersReadStatusCommandInput, ListChannelMembersReadStatusCommandOutput } from "./commands/ListChannelMembersReadStatusCommand";
|
|
28
29
|
import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
|
|
29
30
|
import { ListInboxTaggedChannelsCommandInput, ListInboxTaggedChannelsCommandOutput } from "./commands/ListInboxTaggedChannelsCommand";
|
|
30
31
|
import { ListInboxTagsCommandInput, ListInboxTagsCommandOutput } from "./commands/ListInboxTagsCommand";
|
|
@@ -66,11 +67,11 @@ export { __Client };
|
|
|
66
67
|
/**
|
|
67
68
|
* @public
|
|
68
69
|
*/
|
|
69
|
-
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | CreateKiteChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetTokenCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | ListPinnedMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
70
|
+
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateInboxTagCommandInput | CreateKiteChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteInboxTagCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetActionTriggerResultCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxStateCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetTokenCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelMembersReadStatusCommandInput | ListChannelsCommandInput | ListInboxTaggedChannelsCommandInput | ListInboxTagsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | ListPinnedMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendActionTriggerResultCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | TagChannelCommandInput | TriggerMessageActionCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UntagChannelCommandInput | UpdateChannelCommandInput | UpdateInboxTagCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
70
71
|
/**
|
|
71
72
|
* @public
|
|
72
73
|
*/
|
|
73
|
-
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | CreateKiteChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetTokenCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | ListPinnedMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
74
|
+
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateInboxTagCommandOutput | CreateKiteChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteInboxTagCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetActionTriggerResultCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxStateCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetTokenCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelMembersReadStatusCommandOutput | ListChannelsCommandOutput | ListInboxTaggedChannelsCommandOutput | ListInboxTagsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | ListPinnedMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendActionTriggerResultCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | TagChannelCommandOutput | TriggerMessageActionCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UntagChannelCommandOutput | UpdateChannelCommandOutput | UpdateInboxTagCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
74
75
|
/**
|
|
75
76
|
* @public
|
|
76
77
|
*/
|
|
@@ -72,7 +72,10 @@ declare const AssignChannelCommand_base: {
|
|
|
72
72
|
* // id: Number("int"), // required
|
|
73
73
|
* // uri: "STRING_VALUE", // required
|
|
74
74
|
* // title: "STRING_VALUE", // required
|
|
75
|
-
* // settings: {
|
|
75
|
+
* // settings: { // ServiceSettings
|
|
76
|
+
* // phoneNumber: "STRING_VALUE",
|
|
77
|
+
* // messagingNumber: "STRING_VALUE",
|
|
78
|
+
* // },
|
|
76
79
|
* // extensions: [ // ExtensionsList // required
|
|
77
80
|
* // "STRING_VALUE",
|
|
78
81
|
* // ],
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
+
import { ListChannelMembersReadStatusInput, ListChannelMembersReadStatusOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListChannelMembersReadStatusCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListChannelMembersReadStatusCommandInput extends ListChannelMembersReadStatusInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListChannelMembersReadStatusCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListChannelMembersReadStatusCommandOutput extends ListChannelMembersReadStatusOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListChannelMembersReadStatusCommand_base: {
|
|
25
|
+
new (input: ListChannelMembersReadStatusCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelMembersReadStatusCommandInput, ListChannelMembersReadStatusCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListChannelMembersReadStatusCommandInput): import("@smithy/smithy-client").CommandImpl<ListChannelMembersReadStatusCommandInput, ListChannelMembersReadStatusCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Retrieves a list of members read status for a specific channel. Read status does not work for conversations with more than 100 members.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { ConversationsClient, ListChannelMembersReadStatusCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
35
|
+
* // const { ConversationsClient, ListChannelMembersReadStatusCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
36
|
+
* const client = new ConversationsClient(config);
|
|
37
|
+
* const input = { // ListChannelMembersReadStatusInput
|
|
38
|
+
* channelId: "STRING_VALUE", // required
|
|
39
|
+
* };
|
|
40
|
+
* const command = new ListChannelMembersReadStatusCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // ListChannelMembersReadStatusOutput
|
|
43
|
+
* // members: [ // ChannelMembersReadStatusList // required
|
|
44
|
+
* // { // ChannelMemberReadStatus
|
|
45
|
+
* // user: { // User
|
|
46
|
+
* // id: "STRING_VALUE", // required
|
|
47
|
+
* // name: "STRING_VALUE",
|
|
48
|
+
* // email: "STRING_VALUE",
|
|
49
|
+
* // phone: "STRING_VALUE",
|
|
50
|
+
* // picture: "STRING_VALUE",
|
|
51
|
+
* // locale: "STRING_VALUE",
|
|
52
|
+
* // timeZone: "STRING_VALUE",
|
|
53
|
+
* // company: "STRING_VALUE",
|
|
54
|
+
* // bot: true || false,
|
|
55
|
+
* // pbxDomain: "STRING_VALUE",
|
|
56
|
+
* // pbxPort: "STRING_VALUE",
|
|
57
|
+
* // pbxExtension: "STRING_VALUE",
|
|
58
|
+
* // pbxSerial: "STRING_VALUE",
|
|
59
|
+
* // pbxUserId: "STRING_VALUE",
|
|
60
|
+
* // createdAt: "STRING_VALUE",
|
|
61
|
+
* // updatedAt: "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // lastRead: "STRING_VALUE",
|
|
64
|
+
* // lastReadMessageId: "STRING_VALUE",
|
|
65
|
+
* // },
|
|
66
|
+
* // ],
|
|
67
|
+
* // };
|
|
68
|
+
*
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @param ListChannelMembersReadStatusCommandInput - {@link ListChannelMembersReadStatusCommandInput}
|
|
72
|
+
* @returns {@link ListChannelMembersReadStatusCommandOutput}
|
|
73
|
+
* @see {@link ListChannelMembersReadStatusCommandInput} for command's `input` shape.
|
|
74
|
+
* @see {@link ListChannelMembersReadStatusCommandOutput} for command's `response` shape.
|
|
75
|
+
* @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ChannelNotFoundException} (client fault)
|
|
78
|
+
*
|
|
79
|
+
* @throws {@link ValidationException} (client fault)
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link RateLimitExceededException} (client fault)
|
|
84
|
+
*
|
|
85
|
+
* @throws {@link ConversationsServiceException}
|
|
86
|
+
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
87
|
+
*
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
export declare class ListChannelMembersReadStatusCommand extends ListChannelMembersReadStatusCommand_base {
|
|
92
|
+
/** @internal type navigation helper, not in runtime. */
|
|
93
|
+
protected static __types: {
|
|
94
|
+
api: {
|
|
95
|
+
input: ListChannelMembersReadStatusInput;
|
|
96
|
+
output: ListChannelMembersReadStatusOutput;
|
|
97
|
+
};
|
|
98
|
+
sdk: {
|
|
99
|
+
input: ListChannelMembersReadStatusCommandInput;
|
|
100
|
+
output: ListChannelMembersReadStatusCommandOutput;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
}
|
|
@@ -25,6 +25,7 @@ export * from "./InviteCommand";
|
|
|
25
25
|
export * from "./JoinChannelCommand";
|
|
26
26
|
export * from "./LeaveChannelCommand";
|
|
27
27
|
export * from "./ListChannelMembersCommand";
|
|
28
|
+
export * from "./ListChannelMembersReadStatusCommand";
|
|
28
29
|
export * from "./ListChannelsCommand";
|
|
29
30
|
export * from "./ListInboxTaggedChannelsCommand";
|
|
30
31
|
export * from "./ListInboxTagsCommand";
|
|
@@ -528,6 +528,8 @@ export interface ServicePbx {
|
|
|
528
528
|
* @public
|
|
529
529
|
*/
|
|
530
530
|
export interface ServiceSettings {
|
|
531
|
+
phoneNumber?: string | undefined;
|
|
532
|
+
messagingNumber?: string | undefined;
|
|
531
533
|
}
|
|
532
534
|
/**
|
|
533
535
|
* @public
|
|
@@ -695,6 +697,14 @@ export declare class ChannelAlreadyExistException extends __BaseException {
|
|
|
695
697
|
*/
|
|
696
698
|
constructor(opts: __ExceptionOptionType<ChannelAlreadyExistException, __BaseException>);
|
|
697
699
|
}
|
|
700
|
+
/**
|
|
701
|
+
* @public
|
|
702
|
+
*/
|
|
703
|
+
export interface ChannelMemberReadStatus {
|
|
704
|
+
user?: User | undefined;
|
|
705
|
+
lastRead?: string | undefined;
|
|
706
|
+
lastReadMessageId?: string | undefined;
|
|
707
|
+
}
|
|
698
708
|
/**
|
|
699
709
|
* @public
|
|
700
710
|
*/
|
|
@@ -1867,6 +1877,26 @@ export interface ListChannelMembersOutput {
|
|
|
1867
1877
|
*/
|
|
1868
1878
|
users: (User)[];
|
|
1869
1879
|
}
|
|
1880
|
+
/**
|
|
1881
|
+
* @public
|
|
1882
|
+
*/
|
|
1883
|
+
export interface ListChannelMembersReadStatusInput {
|
|
1884
|
+
/**
|
|
1885
|
+
* The unique identifier of the channel whose members are to be listed.
|
|
1886
|
+
* @public
|
|
1887
|
+
*/
|
|
1888
|
+
channelId: string;
|
|
1889
|
+
}
|
|
1890
|
+
/**
|
|
1891
|
+
* @public
|
|
1892
|
+
*/
|
|
1893
|
+
export interface ListChannelMembersReadStatusOutput {
|
|
1894
|
+
/**
|
|
1895
|
+
* Read status of members.
|
|
1896
|
+
* @public
|
|
1897
|
+
*/
|
|
1898
|
+
members: (ChannelMemberReadStatus)[];
|
|
1899
|
+
}
|
|
1870
1900
|
/**
|
|
1871
1901
|
* @public
|
|
1872
1902
|
*/
|
|
@@ -25,6 +25,7 @@ import { InviteCommandInput, InviteCommandOutput } from "../commands/InviteComma
|
|
|
25
25
|
import { JoinChannelCommandInput, JoinChannelCommandOutput } from "../commands/JoinChannelCommand";
|
|
26
26
|
import { LeaveChannelCommandInput, LeaveChannelCommandOutput } from "../commands/LeaveChannelCommand";
|
|
27
27
|
import { ListChannelMembersCommandInput, ListChannelMembersCommandOutput } from "../commands/ListChannelMembersCommand";
|
|
28
|
+
import { ListChannelMembersReadStatusCommandInput, ListChannelMembersReadStatusCommandOutput } from "../commands/ListChannelMembersReadStatusCommand";
|
|
28
29
|
import { ListChannelsCommandInput, ListChannelsCommandOutput } from "../commands/ListChannelsCommand";
|
|
29
30
|
import { ListInboxTaggedChannelsCommandInput, ListInboxTaggedChannelsCommandOutput } from "../commands/ListInboxTaggedChannelsCommand";
|
|
30
31
|
import { ListInboxTagsCommandInput, ListInboxTagsCommandOutput } from "../commands/ListInboxTagsCommand";
|
|
@@ -165,6 +166,10 @@ export declare const se_LeaveChannelCommand: (input: LeaveChannelCommandInput, c
|
|
|
165
166
|
* serializeAws_restJson1ListChannelMembersCommand
|
|
166
167
|
*/
|
|
167
168
|
export declare const se_ListChannelMembersCommand: (input: ListChannelMembersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
169
|
+
/**
|
|
170
|
+
* serializeAws_restJson1ListChannelMembersReadStatusCommand
|
|
171
|
+
*/
|
|
172
|
+
export declare const se_ListChannelMembersReadStatusCommand: (input: ListChannelMembersReadStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
168
173
|
/**
|
|
169
174
|
* serializeAws_restJson1ListChannelsCommand
|
|
170
175
|
*/
|
|
@@ -393,6 +398,10 @@ export declare const de_LeaveChannelCommand: (output: __HttpResponse, context: _
|
|
|
393
398
|
* deserializeAws_restJson1ListChannelMembersCommand
|
|
394
399
|
*/
|
|
395
400
|
export declare const de_ListChannelMembersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListChannelMembersCommandOutput>;
|
|
401
|
+
/**
|
|
402
|
+
* deserializeAws_restJson1ListChannelMembersReadStatusCommand
|
|
403
|
+
*/
|
|
404
|
+
export declare const de_ListChannelMembersReadStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListChannelMembersReadStatusCommandOutput>;
|
|
396
405
|
/**
|
|
397
406
|
* deserializeAws_restJson1ListChannelsCommand
|
|
398
407
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-conversations-client",
|
|
3
3
|
"description": "@wildix/xbees-conversations-client client",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.15",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"module": "./dist-es/index.js",
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"dependencies": {
|
|
20
|
+
"tslib": "^2.6.2",
|
|
20
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
21
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
22
23
|
"@aws-sdk/core": "3.775.0",
|
|
@@ -49,16 +50,15 @@
|
|
|
49
50
|
"@smithy/util-defaults-mode-node": "^4.0.8",
|
|
50
51
|
"@smithy/util-retry": "^4.0.2",
|
|
51
52
|
"@smithy/util-utf8": "^4.0.0",
|
|
52
|
-
"@wildix/smithy-utils": "^1.0.3"
|
|
53
|
-
"tslib": "^2.6.2"
|
|
53
|
+
"@wildix/smithy-utils": "^1.0.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@tsconfig/node18": "18.2.4",
|
|
57
|
-
"@types/node": "^18.19.69",
|
|
58
57
|
"concurrently": "7.0.0",
|
|
59
58
|
"downlevel-dts": "0.10.1",
|
|
60
59
|
"rimraf": "^3.0.0",
|
|
61
|
-
"typescript": "~5.2.2"
|
|
60
|
+
"typescript": "~5.2.2",
|
|
61
|
+
"@types/node": "^18.19.69"
|
|
62
62
|
},
|
|
63
63
|
"engines": {
|
|
64
64
|
"node": ">=18.0.0"
|