@wildix/xbees-conversations-client 1.0.30 → 1.0.31

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 (80) hide show
  1. package/dist-cjs/Conversations.js +36 -4
  2. package/dist-cjs/commands/AddChannelMemberCommand.js +41 -0
  3. package/dist-cjs/commands/AddChannelMembersCommand.js +41 -0
  4. package/dist-cjs/commands/CreateGroupChannelCommand.js +41 -0
  5. package/dist-cjs/commands/DeleteChannelMemberCommand.js +41 -0
  6. package/dist-cjs/commands/DeleteMessageReactionCommand.js +41 -0
  7. package/dist-cjs/commands/GetDirectChannelIdCommand.js +41 -0
  8. package/dist-cjs/commands/GetMessageReactionsCommand.js +41 -0
  9. package/dist-cjs/commands/GetOrCreateDirectChannelCommand.js +41 -0
  10. package/dist-cjs/commands/InviteCommand.js +41 -0
  11. package/dist-cjs/commands/{CreateChannelCommand.js → LeaveChannelCommand.js} +7 -7
  12. package/dist-cjs/commands/ListChannelMembersCommand.js +41 -0
  13. package/dist-cjs/commands/MarkReadCommand.js +41 -0
  14. package/dist-cjs/commands/SendGiphyCommand.js +41 -0
  15. package/dist-cjs/commands/SendMessageCommand.js +41 -0
  16. package/dist-cjs/commands/SendMessageReactionCommand.js +41 -0
  17. package/dist-cjs/commands/SendSystemMessageCommand.js +41 -0
  18. package/dist-cjs/commands/SendTypingStartCommand.js +41 -0
  19. package/dist-cjs/commands/{CreateMessageCommand.js → SendTypingStopCommand.js} +7 -7
  20. package/dist-cjs/commands/index.js +18 -2
  21. package/dist-cjs/models/models_0.js +71 -52
  22. package/dist-cjs/protocols/Aws_restJson1.js +1204 -145
  23. package/dist-es/Conversations.js +36 -4
  24. package/dist-es/commands/AddChannelMemberCommand.js +37 -0
  25. package/dist-es/commands/AddChannelMembersCommand.js +37 -0
  26. package/dist-es/commands/CreateGroupChannelCommand.js +37 -0
  27. package/dist-es/commands/DeleteChannelMemberCommand.js +37 -0
  28. package/dist-es/commands/DeleteMessageReactionCommand.js +37 -0
  29. package/dist-es/commands/GetDirectChannelIdCommand.js +37 -0
  30. package/dist-es/commands/GetMessageReactionsCommand.js +37 -0
  31. package/dist-es/commands/GetOrCreateDirectChannelCommand.js +37 -0
  32. package/dist-es/commands/{CreateChannelCommand.js → InviteCommand.js} +6 -6
  33. package/dist-es/commands/{CreateMessageCommand.js → LeaveChannelCommand.js} +6 -6
  34. package/dist-es/commands/ListChannelMembersCommand.js +37 -0
  35. package/dist-es/commands/MarkReadCommand.js +37 -0
  36. package/dist-es/commands/SendGiphyCommand.js +37 -0
  37. package/dist-es/commands/SendMessageCommand.js +37 -0
  38. package/dist-es/commands/SendMessageReactionCommand.js +37 -0
  39. package/dist-es/commands/SendSystemMessageCommand.js +37 -0
  40. package/dist-es/commands/SendTypingStartCommand.js +37 -0
  41. package/dist-es/commands/SendTypingStopCommand.js +37 -0
  42. package/dist-es/commands/index.js +18 -2
  43. package/dist-es/models/models_0.js +67 -50
  44. package/dist-es/protocols/Aws_restJson1.js +1174 -148
  45. package/dist-types/Conversations.d.ts +122 -10
  46. package/dist-types/ConversationsClient.d.ts +20 -4
  47. package/dist-types/commands/AddChannelMemberCommand.d.ts +105 -0
  48. package/dist-types/commands/AddChannelMembersCommand.d.ts +113 -0
  49. package/dist-types/commands/{CreateChannelCommand.d.ts → CreateGroupChannelCommand.d.ts} +37 -79
  50. package/dist-types/commands/DeleteChannelCommand.d.ts +2 -0
  51. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +79 -0
  52. package/dist-types/commands/DeleteMessageCommand.d.ts +2 -0
  53. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +80 -0
  54. package/dist-types/commands/GetChannelCommand.d.ts +2 -0
  55. package/dist-types/commands/GetChannelMemberCommand.d.ts +17 -0
  56. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +82 -0
  57. package/dist-types/commands/GetMessageCommand.d.ts +23 -21
  58. package/dist-types/commands/GetMessageReactionsCommand.d.ts +101 -0
  59. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +144 -0
  60. package/dist-types/commands/InviteCommand.d.ts +98 -0
  61. package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
  62. package/dist-types/commands/LeaveChannelCommand.d.ts +77 -0
  63. package/dist-types/commands/ListChannelMembersCommand.d.ts +102 -0
  64. package/dist-types/commands/ListChannelsCommand.d.ts +2 -0
  65. package/dist-types/commands/ListMessagesCommand.d.ts +23 -21
  66. package/dist-types/commands/MarkReadCommand.d.ts +76 -0
  67. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +5 -52
  68. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +46 -54
  69. package/dist-types/commands/SendGiphyCommand.d.ts +220 -0
  70. package/dist-types/commands/{CreateMessageCommand.d.ts → SendMessageCommand.d.ts} +137 -143
  71. package/dist-types/commands/SendMessageReactionCommand.d.ts +78 -0
  72. package/dist-types/commands/SendSystemMessageCommand.d.ts +213 -0
  73. package/dist-types/commands/SendTypingStartCommand.d.ts +76 -0
  74. package/dist-types/commands/SendTypingStopCommand.d.ts +76 -0
  75. package/dist-types/commands/UpdateChannelCommand.d.ts +8 -57
  76. package/dist-types/commands/UpdateMessageCommand.d.ts +118 -125
  77. package/dist-types/commands/index.d.ts +18 -2
  78. package/dist-types/models/models_0.d.ts +450 -172
  79. package/dist-types/protocols/Aws_restJson1.d.ts +154 -10
  80. package/package.json +1 -1
@@ -0,0 +1,98 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { InviteInput, InviteOutput } 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 InviteCommand}.
13
+ */
14
+ export interface InviteCommandInput extends InviteInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link InviteCommand}.
20
+ */
21
+ export interface InviteCommandOutput extends InviteOutput, __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, InviteCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
30
+ * // const { ConversationsClient, InviteCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
31
+ * const client = new ConversationsClient(config);
32
+ * const input = { // InviteInput
33
+ * invitees: [ // UsersToInviteList // required
34
+ * { // UserToInvite
35
+ * email: "STRING_VALUE",
36
+ * phone: "STRING_VALUE",
37
+ * name: "STRING_VALUE",
38
+ * colleague: true || false,
39
+ * },
40
+ * ],
41
+ * };
42
+ * const command = new InviteCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // InviteOutput
45
+ * // users: [ // UsersList // required
46
+ * // { // User
47
+ * // id: "STRING_VALUE", // required
48
+ * // name: "STRING_VALUE",
49
+ * // email: "STRING_VALUE",
50
+ * // phone: "STRING_VALUE",
51
+ * // picture: "STRING_VALUE",
52
+ * // company: "STRING_VALUE",
53
+ * // pbxDomain: "STRING_VALUE",
54
+ * // pbxPort: "STRING_VALUE",
55
+ * // pbxExtension: "STRING_VALUE",
56
+ * // pbxSerial: "STRING_VALUE",
57
+ * // pbxUserId: "STRING_VALUE",
58
+ * // createdAt: "STRING_VALUE",
59
+ * // updatedAt: "STRING_VALUE",
60
+ * // },
61
+ * // ],
62
+ * // };
63
+ *
64
+ * ```
65
+ *
66
+ * @param InviteCommandInput - {@link InviteCommandInput}
67
+ * @returns {@link InviteCommandOutput}
68
+ * @see {@link InviteCommandInput} for command's `input` shape.
69
+ * @see {@link InviteCommandOutput} for command's `response` shape.
70
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ *
74
+ * @throws {@link ForbiddenException} (client fault)
75
+ *
76
+ * @throws {@link ConversationsServiceException}
77
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
78
+ *
79
+ */
80
+ export declare class InviteCommand extends $Command<InviteCommandInput, InviteCommandOutput, ConversationsClientResolvedConfig> {
81
+ readonly input: InviteCommandInput;
82
+ /**
83
+ * @public
84
+ */
85
+ constructor(input: InviteCommandInput);
86
+ /**
87
+ * @internal
88
+ */
89
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<InviteCommandInput, InviteCommandOutput>;
90
+ /**
91
+ * @internal
92
+ */
93
+ private serialize;
94
+ /**
95
+ * @internal
96
+ */
97
+ private deserialize;
98
+ }
@@ -32,6 +32,7 @@ export interface JoinChannelCommandOutput extends JoinChannelOutput, __MetadataB
32
32
  * const input = { // JoinChannelInput
33
33
  * channelId: "STRING_VALUE", // required
34
34
  * userId: "STRING_VALUE",
35
+ * silent: true || false,
35
36
  * };
36
37
  * const command = new JoinChannelCommand(input);
37
38
  * const response = await client.send(command);
@@ -0,0 +1,77 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { LeaveChannelInput, LeaveChannelOutput } 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 LeaveChannelCommand}.
13
+ */
14
+ export interface LeaveChannelCommandInput extends LeaveChannelInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link LeaveChannelCommand}.
20
+ */
21
+ export interface LeaveChannelCommandOutput extends LeaveChannelOutput, __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, LeaveChannelCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
30
+ * // const { ConversationsClient, LeaveChannelCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
31
+ * const client = new ConversationsClient(config);
32
+ * const input = { // LeaveChannelInput
33
+ * channelId: "STRING_VALUE", // required
34
+ * userId: "STRING_VALUE",
35
+ * silent: true || false,
36
+ * };
37
+ * const command = new LeaveChannelCommand(input);
38
+ * const response = await client.send(command);
39
+ * // {};
40
+ *
41
+ * ```
42
+ *
43
+ * @param LeaveChannelCommandInput - {@link LeaveChannelCommandInput}
44
+ * @returns {@link LeaveChannelCommandOutput}
45
+ * @see {@link LeaveChannelCommandInput} for command's `input` shape.
46
+ * @see {@link LeaveChannelCommandOutput} for command's `response` shape.
47
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
48
+ *
49
+ * @throws {@link ChannelNotFoundException} (client fault)
50
+ *
51
+ * @throws {@link ForbiddenException} (client fault)
52
+ *
53
+ * @throws {@link ValidationException} (client fault)
54
+ *
55
+ * @throws {@link ConversationsServiceException}
56
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
57
+ *
58
+ */
59
+ export declare class LeaveChannelCommand extends $Command<LeaveChannelCommandInput, LeaveChannelCommandOutput, ConversationsClientResolvedConfig> {
60
+ readonly input: LeaveChannelCommandInput;
61
+ /**
62
+ * @public
63
+ */
64
+ constructor(input: LeaveChannelCommandInput);
65
+ /**
66
+ * @internal
67
+ */
68
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<LeaveChannelCommandInput, LeaveChannelCommandOutput>;
69
+ /**
70
+ * @internal
71
+ */
72
+ private serialize;
73
+ /**
74
+ * @internal
75
+ */
76
+ private deserialize;
77
+ }
@@ -0,0 +1,102 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { ListChannelMembersInput, ListChannelMembersOutput } 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 ListChannelMembersCommand}.
13
+ */
14
+ export interface ListChannelMembersCommandInput extends ListChannelMembersInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListChannelMembersCommand}.
20
+ */
21
+ export interface ListChannelMembersCommandOutput extends ListChannelMembersOutput, __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, ListChannelMembersCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
30
+ * // const { ConversationsClient, ListChannelMembersCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
31
+ * const client = new ConversationsClient(config);
32
+ * const input = { // ListChannelMembersInput
33
+ * channelId: "STRING_VALUE", // required
34
+ * limit: Number("int"),
35
+ * offset: Number("int"),
36
+ * };
37
+ * const command = new ListChannelMembersCommand(input);
38
+ * const response = await client.send(command);
39
+ * // { // ListChannelMembersOutput
40
+ * // members: [ // ChannelMembersList // required
41
+ * // { // ChannelMember
42
+ * // id: "STRING_VALUE", // required
43
+ * // createdAt: "STRING_VALUE", // required
44
+ * // role: "member" || "supervisor", // required
45
+ * // },
46
+ * // ],
47
+ * // users: [ // UsersList // required
48
+ * // { // User
49
+ * // id: "STRING_VALUE", // required
50
+ * // name: "STRING_VALUE",
51
+ * // email: "STRING_VALUE",
52
+ * // phone: "STRING_VALUE",
53
+ * // picture: "STRING_VALUE",
54
+ * // company: "STRING_VALUE",
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
+ * // ],
64
+ * // };
65
+ *
66
+ * ```
67
+ *
68
+ * @param ListChannelMembersCommandInput - {@link ListChannelMembersCommandInput}
69
+ * @returns {@link ListChannelMembersCommandOutput}
70
+ * @see {@link ListChannelMembersCommandInput} for command's `input` shape.
71
+ * @see {@link ListChannelMembersCommandOutput} for command's `response` shape.
72
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
73
+ *
74
+ * @throws {@link ChannelNotFoundException} (client fault)
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ *
78
+ * @throws {@link ForbiddenException} (client fault)
79
+ *
80
+ * @throws {@link ConversationsServiceException}
81
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
82
+ *
83
+ */
84
+ export declare class ListChannelMembersCommand extends $Command<ListChannelMembersCommandInput, ListChannelMembersCommandOutput, ConversationsClientResolvedConfig> {
85
+ readonly input: ListChannelMembersCommandInput;
86
+ /**
87
+ * @public
88
+ */
89
+ constructor(input: ListChannelMembersCommandInput);
90
+ /**
91
+ * @internal
92
+ */
93
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListChannelMembersCommandInput, ListChannelMembersCommandOutput>;
94
+ /**
95
+ * @internal
96
+ */
97
+ private serialize;
98
+ /**
99
+ * @internal
100
+ */
101
+ private deserialize;
102
+ }
@@ -114,6 +114,8 @@ export interface ListChannelsCommandOutput extends ListChannelsOutput, __Metadat
114
114
  *
115
115
  * @throws {@link ValidationException} (client fault)
116
116
  *
117
+ * @throws {@link ForbiddenException} (client fault)
118
+ *
117
119
  * @throws {@link ConversationsServiceException}
118
120
  * <p>Base exception class for all service exceptions from Conversations service.</p>
119
121
  *
@@ -37,10 +37,7 @@ export interface ListMessagesCommandOutput extends ListMessagesOutput, __Metadat
37
37
  * // { // ListMessagesOutput
38
38
  * // messages: [ // MessagesList
39
39
  * // { // Message
40
- * // type: "regular", // required
41
40
  * // text: "STRING_VALUE",
42
- * // silent: true || false,
43
- * // event: "STRING_VALUE",
44
41
  * // attachments: [ // MessageAttachmentList
45
42
  * // { // MessageAttachment
46
43
  * // id: "STRING_VALUE", // required
@@ -53,18 +50,8 @@ export interface ListMessagesCommandOutput extends ListMessagesOutput, __Metadat
53
50
  * // thumbnail: "STRING_VALUE",
54
51
  * // },
55
52
  * // ],
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
53
  * // quote: {
64
- * // type: "regular", // required
65
54
  * // text: "STRING_VALUE",
66
- * // silent: true || false,
67
- * // event: "STRING_VALUE",
68
55
  * // attachments: [
69
56
  * // {
70
57
  * // id: "STRING_VALUE", // required
@@ -77,13 +64,6 @@ export interface ListMessagesCommandOutput extends ListMessagesOutput, __Metadat
77
64
  * // thumbnail: "STRING_VALUE",
78
65
  * // },
79
66
  * // ],
80
- * // giphy: {
81
- * // id: "STRING_VALUE",
82
- * // size: "STRING_VALUE",
83
- * // url: "STRING_VALUE",
84
- * // height: "STRING_VALUE",
85
- * // width: "STRING_VALUE",
86
- * // },
87
67
  * // quote: "<Message>",
88
68
  * // forward: { // MessageForward
89
69
  * // forwardCompany: "STRING_VALUE",
@@ -91,6 +71,16 @@ export interface ListMessagesCommandOutput extends ListMessagesOutput, __Metadat
91
71
  * // forwardEmail: "STRING_VALUE",
92
72
  * // forwardName: "STRING_VALUE",
93
73
  * // },
74
+ * // type: "regular", // required
75
+ * // giphy: { // MessageGiphy
76
+ * // id: "STRING_VALUE",
77
+ * // size: "STRING_VALUE",
78
+ * // url: "STRING_VALUE",
79
+ * // height: "STRING_VALUE",
80
+ * // width: "STRING_VALUE",
81
+ * // },
82
+ * // silent: true || false,
83
+ * // event: "STRING_VALUE",
94
84
  * // sms: true || false,
95
85
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
96
86
  * // messageId: "STRING_VALUE", // required
@@ -111,7 +101,7 @@ export interface ListMessagesCommandOutput extends ListMessagesOutput, __Metadat
111
101
  * // updatedAt: "STRING_VALUE",
112
102
  * // },
113
103
  * // edit: true || false,
114
- * // mentions: [ // UserList
104
+ * // mentions: [ // UsersList
115
105
  * // {
116
106
  * // id: "STRING_VALUE", // required
117
107
  * // name: "STRING_VALUE",
@@ -148,6 +138,16 @@ export interface ListMessagesCommandOutput extends ListMessagesOutput, __Metadat
148
138
  * // forwardEmail: "STRING_VALUE",
149
139
  * // forwardName: "STRING_VALUE",
150
140
  * // },
141
+ * // type: "regular", // required
142
+ * // giphy: {
143
+ * // id: "STRING_VALUE",
144
+ * // size: "STRING_VALUE",
145
+ * // url: "STRING_VALUE",
146
+ * // height: "STRING_VALUE",
147
+ * // width: "STRING_VALUE",
148
+ * // },
149
+ * // silent: true || false,
150
+ * // event: "STRING_VALUE",
151
151
  * // sms: true || false,
152
152
  * // smsStatus: "sent" || "delivered" || "trying" || "error",
153
153
  * // messageId: "STRING_VALUE", // required
@@ -186,6 +186,8 @@ export interface ListMessagesCommandOutput extends ListMessagesOutput, __Metadat
186
186
  *
187
187
  * @throws {@link ValidationException} (client fault)
188
188
  *
189
+ * @throws {@link ForbiddenException} (client fault)
190
+ *
189
191
  * @throws {@link ConversationsServiceException}
190
192
  * <p>Base exception class for all service exceptions from Conversations service.</p>
191
193
  *
@@ -0,0 +1,76 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { MarkReadInput, MarkReadOutput } 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 MarkReadCommand}.
13
+ */
14
+ export interface MarkReadCommandInput extends MarkReadInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link MarkReadCommand}.
20
+ */
21
+ export interface MarkReadCommandOutput extends MarkReadOutput, __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, MarkReadCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
30
+ * // const { ConversationsClient, MarkReadCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
31
+ * const client = new ConversationsClient(config);
32
+ * const input = { // MarkReadInput
33
+ * channelId: "STRING_VALUE", // required
34
+ * userId: "STRING_VALUE",
35
+ * };
36
+ * const command = new MarkReadCommand(input);
37
+ * const response = await client.send(command);
38
+ * // {};
39
+ *
40
+ * ```
41
+ *
42
+ * @param MarkReadCommandInput - {@link MarkReadCommandInput}
43
+ * @returns {@link MarkReadCommandOutput}
44
+ * @see {@link MarkReadCommandInput} for command's `input` shape.
45
+ * @see {@link MarkReadCommandOutput} 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 ValidationException} (client fault)
51
+ *
52
+ * @throws {@link ForbiddenException} (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 MarkReadCommand extends $Command<MarkReadCommandInput, MarkReadCommandOutput, ConversationsClientResolvedConfig> {
59
+ readonly input: MarkReadCommandInput;
60
+ /**
61
+ * @public
62
+ */
63
+ constructor(input: MarkReadCommandInput);
64
+ /**
65
+ * @internal
66
+ */
67
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<MarkReadCommandInput, MarkReadCommandOutput>;
68
+ /**
69
+ * @internal
70
+ */
71
+ private serialize;
72
+ /**
73
+ * @internal
74
+ */
75
+ private deserialize;
76
+ }
@@ -32,65 +32,16 @@ export interface PartialUpdateChannelCommandOutput extends PartialUpdateChannelO
32
32
  * const input = { // PartialUpdateChannelInput
33
33
  * channelId: "STRING_VALUE", // required
34
34
  * userId: "STRING_VALUE",
35
- * set: { // ChannelUpdateFields
35
+ * set: { // PartialUpdateChannelSetOptions
36
36
  * subject: "STRING_VALUE",
37
37
  * description: "STRING_VALUE",
38
38
  * picture: "STRING_VALUE",
39
39
  * pictureColor: "STRING_VALUE",
40
40
  * access: "private" || "public",
41
- * company: "STRING_VALUE",
42
- * context: { // ChannelContext
43
- * source: "kite",
44
- * target: "STRING_VALUE",
45
- * events: [ // ChannelContextEventList
46
- * { // ChannelContextEvent
47
- * id: "STRING_VALUE",
48
- * owner: "STRING_VALUE",
49
- * start: "STRING_VALUE",
50
- * end: "STRING_VALUE",
51
- * summary: "STRING_VALUE",
52
- * attendees: [ // ChannelContextEventAttendeeList
53
- * { // ChannelContextEventAttendee
54
- * email: "STRING_VALUE", // required
55
- * name: "STRING_VALUE",
56
- * status: "accepted" || "tentative" || "declined" || "none", // required
57
- * },
58
- * ],
59
- * },
60
- * ],
61
- * },
62
- * kite: true || false,
63
- * kiteTarget: "STRING_VALUE",
64
- * kiteVariant: "STRING_VALUE",
65
- * kiteAssign: "STRING_VALUE",
66
- * kiteServiceName: "STRING_VALUE",
67
- * kiteDefaultSubject: "STRING_VALUE",
68
- * service: "STRING_VALUE",
69
- * serviceTitle: "STRING_VALUE",
70
- * serviceRecipient: "STRING_VALUE",
71
- * assignee: { // User
72
- * id: "STRING_VALUE", // required
73
- * name: "STRING_VALUE",
74
- * email: "STRING_VALUE",
75
- * phone: "STRING_VALUE",
76
- * picture: "STRING_VALUE",
77
- * company: "STRING_VALUE",
78
- * pbxDomain: "STRING_VALUE",
79
- * pbxPort: "STRING_VALUE",
80
- * pbxExtension: "STRING_VALUE",
81
- * pbxSerial: "STRING_VALUE",
82
- * pbxUserId: "STRING_VALUE",
83
- * createdAt: "STRING_VALUE",
84
- * updatedAt: "STRING_VALUE",
85
- * },
86
- * telephony: true || false,
87
- * sms: true || false,
88
- * mms: true || false,
89
41
  * broadcast: true || false,
90
- * external: true || false,
91
42
  * },
92
- * unset: [ // ChannelUnsetFieldsList
93
- * "subject" || "description" || "picture" || "pictureColor" || "access" || "company" || "context" || "kite" || "kiteTarget" || "kiteVariant" || "kiteAssign" || "kiteServiceName" || "kiteDefaultSubject" || "service" || "serviceTitle" || "serviceRecipient" || "assignee" || "telephony" || "sms" || "mms" || "broadcast" || "external",
43
+ * unset: [ // PartialUpdateChannelUnsetOptions
44
+ * "subject" || "description" || "picture" || "pictureColor" || "access" || "broadcast",
94
45
  * ],
95
46
  * };
96
47
  * const command = new PartialUpdateChannelCommand(input);
@@ -173,6 +124,8 @@ export interface PartialUpdateChannelCommandOutput extends PartialUpdateChannelO
173
124
  *
174
125
  * @throws {@link ValidationException} (client fault)
175
126
  *
127
+ * @throws {@link ForbiddenException} (client fault)
128
+ *
176
129
  * @throws {@link ConversationsServiceException}
177
130
  * <p>Base exception class for all service exceptions from Conversations service.</p>
178
131
  *