@wildix/xbees-conversations-client 1.0.28 → 1.0.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist-cjs/Conversations.js +10 -0
  2. package/dist-cjs/commands/DeleteMessageCommand.js +41 -0
  3. package/dist-cjs/commands/ListChannelsCommand.js +41 -0
  4. package/dist-cjs/commands/ListMessagesCommand.js +41 -0
  5. package/dist-cjs/commands/PartialUpdateMessageCommand.js +41 -0
  6. package/dist-cjs/commands/UpdateMessageCommand.js +41 -0
  7. package/dist-cjs/commands/index.js +5 -0
  8. package/dist-cjs/models/models_0.js +32 -11
  9. package/dist-cjs/protocols/Aws_restJson1.js +353 -3
  10. package/dist-es/Conversations.js +10 -0
  11. package/dist-es/commands/DeleteMessageCommand.js +37 -0
  12. package/dist-es/commands/ListChannelsCommand.js +37 -0
  13. package/dist-es/commands/ListMessagesCommand.js +37 -0
  14. package/dist-es/commands/PartialUpdateMessageCommand.js +37 -0
  15. package/dist-es/commands/UpdateMessageCommand.js +37 -0
  16. package/dist-es/commands/index.js +5 -0
  17. package/dist-es/models/models_0.js +28 -8
  18. package/dist-es/protocols/Aws_restJson1.js +343 -3
  19. package/dist-types/Conversations.d.ts +35 -0
  20. package/dist-types/ConversationsClient.d.ts +7 -2
  21. package/dist-types/commands/CreateChannelCommand.d.ts +1 -0
  22. package/dist-types/commands/CreateMessageCommand.d.ts +1 -1
  23. package/dist-types/commands/DeleteMessageCommand.d.ts +76 -0
  24. package/dist-types/commands/GetMessageCommand.d.ts +1 -0
  25. package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
  26. package/dist-types/commands/ListChannelsCommand.d.ts +139 -0
  27. package/dist-types/commands/ListMessagesCommand.d.ts +211 -0
  28. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +1 -0
  29. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +365 -0
  30. package/dist-types/commands/UpdateChannelCommand.d.ts +1 -0
  31. package/dist-types/commands/UpdateMessageCommand.d.ts +362 -0
  32. package/dist-types/commands/index.d.ts +5 -0
  33. package/dist-types/models/models_0.d.ts +124 -7
  34. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  35. package/package.json +2 -2
@@ -2,13 +2,18 @@ import { ConversationsClient } from "./ConversationsClient";
2
2
  import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
3
3
  import { CreateMessageCommandInput, CreateMessageCommandOutput } from "./commands/CreateMessageCommand";
4
4
  import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
5
+ import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
5
6
  import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
6
7
  import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./commands/GetChannelMemberCommand";
7
8
  import { GetMessageCommandInput, GetMessageCommandOutput } from "./commands/GetMessageCommand";
8
9
  import { JoinChannelCommandInput, JoinChannelCommandOutput } from "./commands/JoinChannelCommand";
10
+ import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
11
+ import { ListMessagesCommandInput, ListMessagesCommandOutput } from "./commands/ListMessagesCommand";
9
12
  import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } from "./commands/PartialUpdateChannelCommand";
13
+ import { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutput } from "./commands/PartialUpdateMessageCommand";
10
14
  import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdjustmentJobCommandOutput } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
11
15
  import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
16
+ import { UpdateMessageCommandInput, UpdateMessageCommandOutput } from "./commands/UpdateMessageCommand";
12
17
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
13
18
  export interface Conversations {
14
19
  /**
@@ -29,6 +34,12 @@ export interface Conversations {
29
34
  deleteChannel(args: DeleteChannelCommandInput, options?: __HttpHandlerOptions): Promise<DeleteChannelCommandOutput>;
30
35
  deleteChannel(args: DeleteChannelCommandInput, cb: (err: any, data?: DeleteChannelCommandOutput) => void): void;
31
36
  deleteChannel(args: DeleteChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteChannelCommandOutput) => void): void;
37
+ /**
38
+ * @see {@link DeleteMessageCommand}
39
+ */
40
+ deleteMessage(args: DeleteMessageCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMessageCommandOutput>;
41
+ deleteMessage(args: DeleteMessageCommandInput, cb: (err: any, data?: DeleteMessageCommandOutput) => void): void;
42
+ deleteMessage(args: DeleteMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMessageCommandOutput) => void): void;
32
43
  /**
33
44
  * @see {@link GetChannelCommand}
34
45
  */
@@ -53,12 +64,30 @@ export interface Conversations {
53
64
  joinChannel(args: JoinChannelCommandInput, options?: __HttpHandlerOptions): Promise<JoinChannelCommandOutput>;
54
65
  joinChannel(args: JoinChannelCommandInput, cb: (err: any, data?: JoinChannelCommandOutput) => void): void;
55
66
  joinChannel(args: JoinChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: JoinChannelCommandOutput) => void): void;
67
+ /**
68
+ * @see {@link ListChannelsCommand}
69
+ */
70
+ listChannels(args: ListChannelsCommandInput, options?: __HttpHandlerOptions): Promise<ListChannelsCommandOutput>;
71
+ listChannels(args: ListChannelsCommandInput, cb: (err: any, data?: ListChannelsCommandOutput) => void): void;
72
+ listChannels(args: ListChannelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListChannelsCommandOutput) => void): void;
73
+ /**
74
+ * @see {@link ListMessagesCommand}
75
+ */
76
+ listMessages(args: ListMessagesCommandInput, options?: __HttpHandlerOptions): Promise<ListMessagesCommandOutput>;
77
+ listMessages(args: ListMessagesCommandInput, cb: (err: any, data?: ListMessagesCommandOutput) => void): void;
78
+ listMessages(args: ListMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListMessagesCommandOutput) => void): void;
56
79
  /**
57
80
  * @see {@link PartialUpdateChannelCommand}
58
81
  */
59
82
  partialUpdateChannel(args: PartialUpdateChannelCommandInput, options?: __HttpHandlerOptions): Promise<PartialUpdateChannelCommandOutput>;
60
83
  partialUpdateChannel(args: PartialUpdateChannelCommandInput, cb: (err: any, data?: PartialUpdateChannelCommandOutput) => void): void;
61
84
  partialUpdateChannel(args: PartialUpdateChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PartialUpdateChannelCommandOutput) => void): void;
85
+ /**
86
+ * @see {@link PartialUpdateMessageCommand}
87
+ */
88
+ partialUpdateMessage(args: PartialUpdateMessageCommandInput, options?: __HttpHandlerOptions): Promise<PartialUpdateMessageCommandOutput>;
89
+ partialUpdateMessage(args: PartialUpdateMessageCommandInput, cb: (err: any, data?: PartialUpdateMessageCommandOutput) => void): void;
90
+ partialUpdateMessage(args: PartialUpdateMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PartialUpdateMessageCommandOutput) => void): void;
62
91
  /**
63
92
  * @see {@link ScheduleExternalFlagAdjustmentJobCommand}
64
93
  */
@@ -71,6 +100,12 @@ export interface Conversations {
71
100
  updateChannel(args: UpdateChannelCommandInput, options?: __HttpHandlerOptions): Promise<UpdateChannelCommandOutput>;
72
101
  updateChannel(args: UpdateChannelCommandInput, cb: (err: any, data?: UpdateChannelCommandOutput) => void): void;
73
102
  updateChannel(args: UpdateChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateChannelCommandOutput) => void): void;
103
+ /**
104
+ * @see {@link UpdateMessageCommand}
105
+ */
106
+ updateMessage(args: UpdateMessageCommandInput, options?: __HttpHandlerOptions): Promise<UpdateMessageCommandOutput>;
107
+ updateMessage(args: UpdateMessageCommandInput, cb: (err: any, data?: UpdateMessageCommandOutput) => void): void;
108
+ updateMessage(args: UpdateMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMessageCommandOutput) => void): void;
74
109
  }
75
110
  /**
76
111
  * @public
@@ -1,13 +1,18 @@
1
1
  import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
2
2
  import { CreateMessageCommandInput, CreateMessageCommandOutput } from "./commands/CreateMessageCommand";
3
3
  import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
4
+ import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
4
5
  import { GetChannelCommandInput, GetChannelCommandOutput } from "./commands/GetChannelCommand";
5
6
  import { GetChannelMemberCommandInput, GetChannelMemberCommandOutput } from "./commands/GetChannelMemberCommand";
6
7
  import { GetMessageCommandInput, GetMessageCommandOutput } from "./commands/GetMessageCommand";
7
8
  import { JoinChannelCommandInput, JoinChannelCommandOutput } from "./commands/JoinChannelCommand";
9
+ import { ListChannelsCommandInput, ListChannelsCommandOutput } from "./commands/ListChannelsCommand";
10
+ import { ListMessagesCommandInput, ListMessagesCommandOutput } from "./commands/ListMessagesCommand";
8
11
  import { PartialUpdateChannelCommandInput, PartialUpdateChannelCommandOutput } from "./commands/PartialUpdateChannelCommand";
12
+ import { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutput } from "./commands/PartialUpdateMessageCommand";
9
13
  import { ScheduleExternalFlagAdjustmentJobCommandInput, ScheduleExternalFlagAdjustmentJobCommandOutput } from "./commands/ScheduleExternalFlagAdjustmentJobCommand";
10
14
  import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
15
+ import { UpdateMessageCommandInput, UpdateMessageCommandOutput } from "./commands/UpdateMessageCommand";
11
16
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
12
17
  import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
13
18
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
@@ -17,11 +22,11 @@ export { __Client };
17
22
  /**
18
23
  * @public
19
24
  */
20
- export type ServiceInputTypes = CreateChannelCommandInput | CreateMessageCommandInput | DeleteChannelCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetMessageCommandInput | JoinChannelCommandInput | PartialUpdateChannelCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | UpdateChannelCommandInput;
25
+ export type ServiceInputTypes = CreateChannelCommandInput | CreateMessageCommandInput | DeleteChannelCommandInput | DeleteMessageCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetMessageCommandInput | JoinChannelCommandInput | ListChannelsCommandInput | ListMessagesCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput;
21
26
  /**
22
27
  * @public
23
28
  */
24
- export type ServiceOutputTypes = CreateChannelCommandOutput | CreateMessageCommandOutput | DeleteChannelCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetMessageCommandOutput | JoinChannelCommandOutput | PartialUpdateChannelCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | UpdateChannelCommandOutput;
29
+ export type ServiceOutputTypes = CreateChannelCommandOutput | CreateMessageCommandOutput | DeleteChannelCommandOutput | DeleteMessageCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetMessageCommandOutput | JoinChannelCommandOutput | ListChannelsCommandOutput | ListMessagesCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput;
25
30
  /**
26
31
  * @public
27
32
  */
@@ -92,6 +92,7 @@ export interface CreateChannelCommandOutput extends CreateChannelOutput, __Metad
92
92
  * "STRING_VALUE",
93
93
  * ],
94
94
  * },
95
+ * userId: "STRING_VALUE",
95
96
  * };
96
97
  * const command = new CreateChannelCommand(input);
97
98
  * const response = await client.send(command);
@@ -31,7 +31,7 @@ export interface CreateMessageCommandOutput extends CreateMessageOutput, __Metad
31
31
  * const client = new ConversationsClient(config);
32
32
  * const input = { // CreateMessageInput
33
33
  * channelId: "STRING_VALUE", // required
34
- * userId: "STRING_VALUE", // required
34
+ * userId: "STRING_VALUE",
35
35
  * message: { // MessageCreateFields
36
36
  * type: "regular", // required
37
37
  * text: "STRING_VALUE",
@@ -0,0 +1,76 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { DeleteMessageInput, DeleteMessageOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link DeleteMessageCommand}.
13
+ */
14
+ export interface DeleteMessageCommandInput extends DeleteMessageInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link DeleteMessageCommand}.
20
+ */
21
+ export interface DeleteMessageCommandOutput extends DeleteMessageOutput, __MetadataBearer {
22
+ }
23
+ /**
24
+ * @public
25
+ *
26
+ * @example
27
+ * Use a bare-bones client and the command you need to make an API call.
28
+ * ```javascript
29
+ * import { ConversationsClient, DeleteMessageCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
30
+ * // const { ConversationsClient, DeleteMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
31
+ * const client = new ConversationsClient(config);
32
+ * const input = { // DeleteMessageInput
33
+ * channelId: "STRING_VALUE", // required
34
+ * messageId: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new DeleteMessageCommand(input);
37
+ * const response = await client.send(command);
38
+ * // {};
39
+ *
40
+ * ```
41
+ *
42
+ * @param DeleteMessageCommandInput - {@link DeleteMessageCommandInput}
43
+ * @returns {@link DeleteMessageCommandOutput}
44
+ * @see {@link DeleteMessageCommandInput} for command's `input` shape.
45
+ * @see {@link DeleteMessageCommandOutput} for command's `response` shape.
46
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
47
+ *
48
+ * @throws {@link ChannelNotFoundException} (client fault)
49
+ *
50
+ * @throws {@link MessageNotFoundException} (client fault)
51
+ *
52
+ * @throws {@link ValidationException} (client fault)
53
+ *
54
+ * @throws {@link ConversationsServiceException}
55
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
56
+ *
57
+ */
58
+ export declare class DeleteMessageCommand extends $Command<DeleteMessageCommandInput, DeleteMessageCommandOutput, ConversationsClientResolvedConfig> {
59
+ readonly input: DeleteMessageCommandInput;
60
+ /**
61
+ * @public
62
+ */
63
+ constructor(input: DeleteMessageCommandInput);
64
+ /**
65
+ * @internal
66
+ */
67
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteMessageCommandInput, DeleteMessageCommandOutput>;
68
+ /**
69
+ * @internal
70
+ */
71
+ private serialize;
72
+ /**
73
+ * @internal
74
+ */
75
+ private deserialize;
76
+ }
@@ -31,6 +31,7 @@ export interface GetMessageCommandOutput extends GetMessageOutput, __MetadataBea
31
31
  * const client = new ConversationsClient(config);
32
32
  * const input = { // GetMessageInput
33
33
  * channelId: "STRING_VALUE", // required
34
+ * messageId: "STRING_VALUE", // required
34
35
  * };
35
36
  * const command = new GetMessageCommand(input);
36
37
  * const response = await client.send(command);
@@ -31,6 +31,7 @@ export interface JoinChannelCommandOutput extends JoinChannelOutput, __MetadataB
31
31
  * const client = new ConversationsClient(config);
32
32
  * const input = { // JoinChannelInput
33
33
  * channelId: "STRING_VALUE", // required
34
+ * userId: "STRING_VALUE",
34
35
  * };
35
36
  * const command = new JoinChannelCommand(input);
36
37
  * const response = await client.send(command);
@@ -0,0 +1,139 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { ListChannelsInput, ListChannelsOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link ListChannelsCommand}.
13
+ */
14
+ export interface ListChannelsCommandInput extends ListChannelsInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListChannelsCommand}.
20
+ */
21
+ export interface ListChannelsCommandOutput extends ListChannelsOutput, __MetadataBearer {
22
+ }
23
+ /**
24
+ * @public
25
+ *
26
+ * @example
27
+ * Use a bare-bones client and the command you need to make an API call.
28
+ * ```javascript
29
+ * import { ConversationsClient, ListChannelsCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
30
+ * // const { ConversationsClient, ListChannelsCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
31
+ * const client = new ConversationsClient(config);
32
+ * const input = { // ListChannelsInput
33
+ * userId: "STRING_VALUE",
34
+ * limit: Number("int"),
35
+ * offset: Number("int"),
36
+ * };
37
+ * const command = new ListChannelsCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // ListChannelsOutput
40
+ * // channels: [ // ChannelsList // required
41
+ * // { // Channel
42
+ * // subject: "STRING_VALUE",
43
+ * // description: "STRING_VALUE",
44
+ * // picture: "STRING_VALUE",
45
+ * // pictureColor: "STRING_VALUE",
46
+ * // access: "private" || "public",
47
+ * // company: "STRING_VALUE",
48
+ * // context: { // ChannelContext
49
+ * // source: "kite",
50
+ * // target: "STRING_VALUE",
51
+ * // events: [ // ChannelContextEventList
52
+ * // { // ChannelContextEvent
53
+ * // id: "STRING_VALUE",
54
+ * // owner: "STRING_VALUE",
55
+ * // start: "STRING_VALUE",
56
+ * // end: "STRING_VALUE",
57
+ * // summary: "STRING_VALUE",
58
+ * // attendees: [ // ChannelContextEventAttendeeList
59
+ * // { // ChannelContextEventAttendee
60
+ * // email: "STRING_VALUE", // required
61
+ * // name: "STRING_VALUE",
62
+ * // status: "accepted" || "tentative" || "declined" || "none", // required
63
+ * // },
64
+ * // ],
65
+ * // },
66
+ * // ],
67
+ * // },
68
+ * // kite: true || false,
69
+ * // kiteTarget: "STRING_VALUE",
70
+ * // kiteVariant: "STRING_VALUE",
71
+ * // kiteAssign: "STRING_VALUE",
72
+ * // kiteServiceName: "STRING_VALUE",
73
+ * // kiteDefaultSubject: "STRING_VALUE",
74
+ * // service: "STRING_VALUE",
75
+ * // serviceTitle: "STRING_VALUE",
76
+ * // serviceRecipient: "STRING_VALUE",
77
+ * // assignee: { // User
78
+ * // id: "STRING_VALUE", // required
79
+ * // name: "STRING_VALUE",
80
+ * // email: "STRING_VALUE",
81
+ * // phone: "STRING_VALUE",
82
+ * // picture: "STRING_VALUE",
83
+ * // company: "STRING_VALUE",
84
+ * // pbxDomain: "STRING_VALUE",
85
+ * // pbxPort: "STRING_VALUE",
86
+ * // pbxExtension: "STRING_VALUE",
87
+ * // pbxSerial: "STRING_VALUE",
88
+ * // pbxUserId: "STRING_VALUE",
89
+ * // createdAt: "STRING_VALUE",
90
+ * // updatedAt: "STRING_VALUE",
91
+ * // },
92
+ * // telephony: true || false,
93
+ * // sms: true || false,
94
+ * // mms: true || false,
95
+ * // broadcast: true || false,
96
+ * // external: true || false,
97
+ * // channelId: "STRING_VALUE", // required
98
+ * // channelType: "direct" || "group", // required
99
+ * // memberCount: Number("int"), // required
100
+ * // createdAt: "STRING_VALUE", // required
101
+ * // createdBy: "STRING_VALUE", // required
102
+ * // updatedAt: "STRING_VALUE",
103
+ * // },
104
+ * // ],
105
+ * // };
106
+ *
107
+ * ```
108
+ *
109
+ * @param ListChannelsCommandInput - {@link ListChannelsCommandInput}
110
+ * @returns {@link ListChannelsCommandOutput}
111
+ * @see {@link ListChannelsCommandInput} for command's `input` shape.
112
+ * @see {@link ListChannelsCommandOutput} for command's `response` shape.
113
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
114
+ *
115
+ * @throws {@link ValidationException} (client fault)
116
+ *
117
+ * @throws {@link ConversationsServiceException}
118
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
119
+ *
120
+ */
121
+ export declare class ListChannelsCommand extends $Command<ListChannelsCommandInput, ListChannelsCommandOutput, ConversationsClientResolvedConfig> {
122
+ readonly input: ListChannelsCommandInput;
123
+ /**
124
+ * @public
125
+ */
126
+ constructor(input: ListChannelsCommandInput);
127
+ /**
128
+ * @internal
129
+ */
130
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListChannelsCommandInput, ListChannelsCommandOutput>;
131
+ /**
132
+ * @internal
133
+ */
134
+ private serialize;
135
+ /**
136
+ * @internal
137
+ */
138
+ private deserialize;
139
+ }
@@ -0,0 +1,211 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { ListMessagesInput, ListMessagesOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link ListMessagesCommand}.
13
+ */
14
+ export interface ListMessagesCommandInput extends ListMessagesInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListMessagesCommand}.
20
+ */
21
+ export interface ListMessagesCommandOutput extends ListMessagesOutput, __MetadataBearer {
22
+ }
23
+ /**
24
+ * @public
25
+ *
26
+ * @example
27
+ * Use a bare-bones client and the command you need to make an API call.
28
+ * ```javascript
29
+ * import { ConversationsClient, ListMessagesCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
30
+ * // const { ConversationsClient, ListMessagesCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
31
+ * const client = new ConversationsClient(config);
32
+ * const input = { // ListMessagesInput
33
+ * channelId: "STRING_VALUE", // required
34
+ * };
35
+ * const command = new ListMessagesCommand(input);
36
+ * const response = await client.send(command);
37
+ * // { // ListMessagesOutput
38
+ * // messages: [ // MessagesList
39
+ * // { // Message
40
+ * // type: "regular", // required
41
+ * // text: "STRING_VALUE",
42
+ * // silent: true || false,
43
+ * // event: "STRING_VALUE",
44
+ * // attachments: [ // MessageAttachmentList
45
+ * // { // MessageAttachment
46
+ * // id: "STRING_VALUE", // required
47
+ * // fsId: "STRING_VALUE", // required
48
+ * // mime: "STRING_VALUE",
49
+ * // name: "STRING_VALUE",
50
+ * // size: Number("int"), // required
51
+ * // width: Number("int"),
52
+ * // height: Number("int"),
53
+ * // thumbnail: "STRING_VALUE",
54
+ * // },
55
+ * // ],
56
+ * // giphy: { // MessageGiphy
57
+ * // id: "STRING_VALUE",
58
+ * // size: "STRING_VALUE",
59
+ * // url: "STRING_VALUE",
60
+ * // height: "STRING_VALUE",
61
+ * // width: "STRING_VALUE",
62
+ * // },
63
+ * // quote: {
64
+ * // type: "regular", // required
65
+ * // text: "STRING_VALUE",
66
+ * // silent: true || false,
67
+ * // event: "STRING_VALUE",
68
+ * // attachments: [
69
+ * // {
70
+ * // id: "STRING_VALUE", // required
71
+ * // fsId: "STRING_VALUE", // required
72
+ * // mime: "STRING_VALUE",
73
+ * // name: "STRING_VALUE",
74
+ * // size: Number("int"), // required
75
+ * // width: Number("int"),
76
+ * // height: Number("int"),
77
+ * // thumbnail: "STRING_VALUE",
78
+ * // },
79
+ * // ],
80
+ * // giphy: {
81
+ * // id: "STRING_VALUE",
82
+ * // size: "STRING_VALUE",
83
+ * // url: "STRING_VALUE",
84
+ * // height: "STRING_VALUE",
85
+ * // width: "STRING_VALUE",
86
+ * // },
87
+ * // quote: "<Message>",
88
+ * // forward: { // MessageForward
89
+ * // forwardCompany: "STRING_VALUE",
90
+ * // forwardDate: "STRING_VALUE", // required
91
+ * // forwardEmail: "STRING_VALUE",
92
+ * // forwardName: "STRING_VALUE",
93
+ * // },
94
+ * // sms: true || false,
95
+ * // smsStatus: "sent" || "delivered" || "trying" || "error",
96
+ * // messageId: "STRING_VALUE", // required
97
+ * // channelId: "STRING_VALUE", // required
98
+ * // user: { // User
99
+ * // id: "STRING_VALUE", // required
100
+ * // name: "STRING_VALUE",
101
+ * // email: "STRING_VALUE",
102
+ * // phone: "STRING_VALUE",
103
+ * // picture: "STRING_VALUE",
104
+ * // company: "STRING_VALUE",
105
+ * // pbxDomain: "STRING_VALUE",
106
+ * // pbxPort: "STRING_VALUE",
107
+ * // pbxExtension: "STRING_VALUE",
108
+ * // pbxSerial: "STRING_VALUE",
109
+ * // pbxUserId: "STRING_VALUE",
110
+ * // createdAt: "STRING_VALUE",
111
+ * // updatedAt: "STRING_VALUE",
112
+ * // },
113
+ * // edit: true || false,
114
+ * // mentions: [ // UserList
115
+ * // {
116
+ * // id: "STRING_VALUE", // required
117
+ * // name: "STRING_VALUE",
118
+ * // email: "STRING_VALUE",
119
+ * // phone: "STRING_VALUE",
120
+ * // picture: "STRING_VALUE",
121
+ * // company: "STRING_VALUE",
122
+ * // pbxDomain: "STRING_VALUE",
123
+ * // pbxPort: "STRING_VALUE",
124
+ * // pbxExtension: "STRING_VALUE",
125
+ * // pbxSerial: "STRING_VALUE",
126
+ * // pbxUserId: "STRING_VALUE",
127
+ * // createdAt: "STRING_VALUE",
128
+ * // updatedAt: "STRING_VALUE",
129
+ * // },
130
+ * // ],
131
+ * // latestReactions: [ // ReactionList
132
+ * // { // Reaction
133
+ * // type: "STRING_VALUE",
134
+ * // userId: "STRING_VALUE",
135
+ * // messageId: "STRING_VALUE",
136
+ * // user: "<User>",
137
+ * // },
138
+ * // ],
139
+ * // reactionCounts: { // ReactionCounts
140
+ * // "<keys>": Number("int"),
141
+ * // },
142
+ * // createdAt: "STRING_VALUE", // required
143
+ * // updatedAt: "STRING_VALUE",
144
+ * // },
145
+ * // forward: {
146
+ * // forwardCompany: "STRING_VALUE",
147
+ * // forwardDate: "STRING_VALUE", // required
148
+ * // forwardEmail: "STRING_VALUE",
149
+ * // forwardName: "STRING_VALUE",
150
+ * // },
151
+ * // sms: true || false,
152
+ * // smsStatus: "sent" || "delivered" || "trying" || "error",
153
+ * // messageId: "STRING_VALUE", // required
154
+ * // channelId: "STRING_VALUE", // required
155
+ * // user: "<User>", // required
156
+ * // edit: true || false,
157
+ * // mentions: [
158
+ * // "<User>",
159
+ * // ],
160
+ * // latestReactions: [
161
+ * // {
162
+ * // type: "STRING_VALUE",
163
+ * // userId: "STRING_VALUE",
164
+ * // messageId: "STRING_VALUE",
165
+ * // user: "<User>",
166
+ * // },
167
+ * // ],
168
+ * // reactionCounts: {
169
+ * // "<keys>": Number("int"),
170
+ * // },
171
+ * // createdAt: "STRING_VALUE", // required
172
+ * // updatedAt: "STRING_VALUE",
173
+ * // },
174
+ * // ],
175
+ * // };
176
+ *
177
+ * ```
178
+ *
179
+ * @param ListMessagesCommandInput - {@link ListMessagesCommandInput}
180
+ * @returns {@link ListMessagesCommandOutput}
181
+ * @see {@link ListMessagesCommandInput} for command's `input` shape.
182
+ * @see {@link ListMessagesCommandOutput} for command's `response` shape.
183
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
184
+ *
185
+ * @throws {@link ChannelNotFoundException} (client fault)
186
+ *
187
+ * @throws {@link ValidationException} (client fault)
188
+ *
189
+ * @throws {@link ConversationsServiceException}
190
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
191
+ *
192
+ */
193
+ export declare class ListMessagesCommand extends $Command<ListMessagesCommandInput, ListMessagesCommandOutput, ConversationsClientResolvedConfig> {
194
+ readonly input: ListMessagesCommandInput;
195
+ /**
196
+ * @public
197
+ */
198
+ constructor(input: ListMessagesCommandInput);
199
+ /**
200
+ * @internal
201
+ */
202
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListMessagesCommandInput, ListMessagesCommandOutput>;
203
+ /**
204
+ * @internal
205
+ */
206
+ private serialize;
207
+ /**
208
+ * @internal
209
+ */
210
+ private deserialize;
211
+ }
@@ -31,6 +31,7 @@ export interface PartialUpdateChannelCommandOutput extends PartialUpdateChannelO
31
31
  * const client = new ConversationsClient(config);
32
32
  * const input = { // PartialUpdateChannelInput
33
33
  * channelId: "STRING_VALUE", // required
34
+ * userId: "STRING_VALUE",
34
35
  * set: { // ChannelUpdateFields
35
36
  * subject: "STRING_VALUE",
36
37
  * description: "STRING_VALUE",