@wildix/xbees-conversations-client 1.0.32 → 1.0.34
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 +6 -4
- package/dist-cjs/commands/{SendSystemMessageCommand.js → HideChannelCommand.js} +7 -7
- package/dist-cjs/commands/ListMessageReactionsCommand.js +41 -0
- package/dist-cjs/commands/{GetMessageReactionsCommand.js → ShowChannelCommand.js} +7 -7
- package/dist-cjs/commands/index.js +3 -2
- package/dist-cjs/protocols/Aws_restJson1.js +138 -135
- package/dist-es/Conversations.js +6 -4
- package/dist-es/commands/{SendSystemMessageCommand.js → HideChannelCommand.js} +6 -6
- package/dist-es/commands/ListMessageReactionsCommand.js +37 -0
- package/dist-es/commands/{GetMessageReactionsCommand.js → ShowChannelCommand.js} +6 -6
- package/dist-es/commands/index.js +3 -2
- package/dist-es/protocols/Aws_restJson1.js +125 -124
- package/dist-types/Conversations.d.ts +21 -14
- package/dist-types/ConversationsClient.d.ts +5 -4
- package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -0
- package/dist-types/commands/GetMessageCommand.d.ts +29 -47
- package/dist-types/commands/HideChannelCommand.d.ts +140 -0
- package/dist-types/commands/{GetMessageReactionsCommand.d.ts → ListMessageReactionsCommand.d.ts} +18 -18
- package/dist-types/commands/ListMessagesCommand.d.ts +31 -47
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +65 -138
- package/dist-types/commands/SendGiphyCommand.d.ts +29 -47
- package/dist-types/commands/SendMessageCommand.d.ts +65 -138
- package/dist-types/commands/ShowChannelCommand.d.ts +140 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +65 -138
- package/dist-types/commands/index.d.ts +3 -2
- package/dist-types/models/models_0.d.ts +150 -119
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -18
- package/package.json +1 -1
- package/dist-types/commands/SendSystemMessageCommand.d.ts +0 -213
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
|
|
2
|
-
import { SendSystemMessageInput, SendSystemMessageOutput } 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 SendSystemMessageCommand}.
|
|
13
|
-
*/
|
|
14
|
-
export interface SendSystemMessageCommandInput extends SendSystemMessageInput {
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* @public
|
|
18
|
-
*
|
|
19
|
-
* The output of {@link SendSystemMessageCommand}.
|
|
20
|
-
*/
|
|
21
|
-
export interface SendSystemMessageCommandOutput extends SendSystemMessageOutput, __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, SendSystemMessageCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
|
|
30
|
-
* // const { ConversationsClient, SendSystemMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
31
|
-
* const client = new ConversationsClient(config);
|
|
32
|
-
* const input = { // SendSystemMessageInput
|
|
33
|
-
* channelId: "STRING_VALUE", // required
|
|
34
|
-
* userId: "STRING_VALUE",
|
|
35
|
-
* messageId: "STRING_VALUE",
|
|
36
|
-
* };
|
|
37
|
-
* const command = new SendSystemMessageCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* // { // SendSystemMessageOutput
|
|
40
|
-
* // message: { // Message
|
|
41
|
-
* // text: "STRING_VALUE",
|
|
42
|
-
* // attachments: [ // MessageAttachmentList
|
|
43
|
-
* // { // MessageAttachment
|
|
44
|
-
* // id: "STRING_VALUE", // required
|
|
45
|
-
* // fsId: "STRING_VALUE", // required
|
|
46
|
-
* // mime: "STRING_VALUE",
|
|
47
|
-
* // name: "STRING_VALUE",
|
|
48
|
-
* // size: Number("int"), // required
|
|
49
|
-
* // width: Number("int"),
|
|
50
|
-
* // height: Number("int"),
|
|
51
|
-
* // thumbnail: "STRING_VALUE",
|
|
52
|
-
* // },
|
|
53
|
-
* // ],
|
|
54
|
-
* // quote: {
|
|
55
|
-
* // text: "STRING_VALUE",
|
|
56
|
-
* // attachments: [
|
|
57
|
-
* // {
|
|
58
|
-
* // id: "STRING_VALUE", // required
|
|
59
|
-
* // fsId: "STRING_VALUE", // required
|
|
60
|
-
* // mime: "STRING_VALUE",
|
|
61
|
-
* // name: "STRING_VALUE",
|
|
62
|
-
* // size: Number("int"), // required
|
|
63
|
-
* // width: Number("int"),
|
|
64
|
-
* // height: Number("int"),
|
|
65
|
-
* // thumbnail: "STRING_VALUE",
|
|
66
|
-
* // },
|
|
67
|
-
* // ],
|
|
68
|
-
* // quote: "<Message>",
|
|
69
|
-
* // forward: { // MessageForward
|
|
70
|
-
* // forwardCompany: "STRING_VALUE",
|
|
71
|
-
* // forwardDate: "STRING_VALUE", // required
|
|
72
|
-
* // forwardEmail: "STRING_VALUE",
|
|
73
|
-
* // forwardName: "STRING_VALUE",
|
|
74
|
-
* // },
|
|
75
|
-
* // type: "regular", // required
|
|
76
|
-
* // giphy: { // MessageGiphy
|
|
77
|
-
* // id: "STRING_VALUE",
|
|
78
|
-
* // size: "STRING_VALUE",
|
|
79
|
-
* // url: "STRING_VALUE",
|
|
80
|
-
* // height: "STRING_VALUE",
|
|
81
|
-
* // width: "STRING_VALUE",
|
|
82
|
-
* // },
|
|
83
|
-
* // silent: true || false,
|
|
84
|
-
* // event: "STRING_VALUE",
|
|
85
|
-
* // sms: true || false,
|
|
86
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
87
|
-
* // messageId: "STRING_VALUE", // required
|
|
88
|
-
* // channelId: "STRING_VALUE", // required
|
|
89
|
-
* // user: { // User
|
|
90
|
-
* // id: "STRING_VALUE", // required
|
|
91
|
-
* // name: "STRING_VALUE",
|
|
92
|
-
* // email: "STRING_VALUE",
|
|
93
|
-
* // phone: "STRING_VALUE",
|
|
94
|
-
* // picture: "STRING_VALUE",
|
|
95
|
-
* // company: "STRING_VALUE",
|
|
96
|
-
* // pbxDomain: "STRING_VALUE",
|
|
97
|
-
* // pbxPort: "STRING_VALUE",
|
|
98
|
-
* // pbxExtension: "STRING_VALUE",
|
|
99
|
-
* // pbxSerial: "STRING_VALUE",
|
|
100
|
-
* // pbxUserId: "STRING_VALUE",
|
|
101
|
-
* // createdAt: "STRING_VALUE",
|
|
102
|
-
* // updatedAt: "STRING_VALUE",
|
|
103
|
-
* // },
|
|
104
|
-
* // edit: true || false,
|
|
105
|
-
* // mentions: [ // UsersList
|
|
106
|
-
* // {
|
|
107
|
-
* // id: "STRING_VALUE", // required
|
|
108
|
-
* // name: "STRING_VALUE",
|
|
109
|
-
* // email: "STRING_VALUE",
|
|
110
|
-
* // phone: "STRING_VALUE",
|
|
111
|
-
* // picture: "STRING_VALUE",
|
|
112
|
-
* // company: "STRING_VALUE",
|
|
113
|
-
* // pbxDomain: "STRING_VALUE",
|
|
114
|
-
* // pbxPort: "STRING_VALUE",
|
|
115
|
-
* // pbxExtension: "STRING_VALUE",
|
|
116
|
-
* // pbxSerial: "STRING_VALUE",
|
|
117
|
-
* // pbxUserId: "STRING_VALUE",
|
|
118
|
-
* // createdAt: "STRING_VALUE",
|
|
119
|
-
* // updatedAt: "STRING_VALUE",
|
|
120
|
-
* // },
|
|
121
|
-
* // ],
|
|
122
|
-
* // latestReactions: [ // ReactionList
|
|
123
|
-
* // { // Reaction
|
|
124
|
-
* // type: "STRING_VALUE",
|
|
125
|
-
* // userId: "STRING_VALUE",
|
|
126
|
-
* // messageId: "STRING_VALUE",
|
|
127
|
-
* // user: "<User>",
|
|
128
|
-
* // },
|
|
129
|
-
* // ],
|
|
130
|
-
* // reactionCounts: { // ReactionCounts
|
|
131
|
-
* // "<keys>": Number("int"),
|
|
132
|
-
* // },
|
|
133
|
-
* // createdAt: "STRING_VALUE", // required
|
|
134
|
-
* // updatedAt: "STRING_VALUE",
|
|
135
|
-
* // },
|
|
136
|
-
* // forward: {
|
|
137
|
-
* // forwardCompany: "STRING_VALUE",
|
|
138
|
-
* // forwardDate: "STRING_VALUE", // required
|
|
139
|
-
* // forwardEmail: "STRING_VALUE",
|
|
140
|
-
* // forwardName: "STRING_VALUE",
|
|
141
|
-
* // },
|
|
142
|
-
* // type: "regular", // required
|
|
143
|
-
* // giphy: {
|
|
144
|
-
* // id: "STRING_VALUE",
|
|
145
|
-
* // size: "STRING_VALUE",
|
|
146
|
-
* // url: "STRING_VALUE",
|
|
147
|
-
* // height: "STRING_VALUE",
|
|
148
|
-
* // width: "STRING_VALUE",
|
|
149
|
-
* // },
|
|
150
|
-
* // silent: true || false,
|
|
151
|
-
* // event: "STRING_VALUE",
|
|
152
|
-
* // sms: true || false,
|
|
153
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
154
|
-
* // messageId: "STRING_VALUE", // required
|
|
155
|
-
* // channelId: "STRING_VALUE", // required
|
|
156
|
-
* // user: "<User>", // required
|
|
157
|
-
* // edit: true || false,
|
|
158
|
-
* // mentions: [
|
|
159
|
-
* // "<User>",
|
|
160
|
-
* // ],
|
|
161
|
-
* // latestReactions: [
|
|
162
|
-
* // {
|
|
163
|
-
* // type: "STRING_VALUE",
|
|
164
|
-
* // userId: "STRING_VALUE",
|
|
165
|
-
* // messageId: "STRING_VALUE",
|
|
166
|
-
* // user: "<User>",
|
|
167
|
-
* // },
|
|
168
|
-
* // ],
|
|
169
|
-
* // reactionCounts: {
|
|
170
|
-
* // "<keys>": Number("int"),
|
|
171
|
-
* // },
|
|
172
|
-
* // createdAt: "STRING_VALUE", // required
|
|
173
|
-
* // updatedAt: "STRING_VALUE",
|
|
174
|
-
* // },
|
|
175
|
-
* // };
|
|
176
|
-
*
|
|
177
|
-
* ```
|
|
178
|
-
*
|
|
179
|
-
* @param SendSystemMessageCommandInput - {@link SendSystemMessageCommandInput}
|
|
180
|
-
* @returns {@link SendSystemMessageCommandOutput}
|
|
181
|
-
* @see {@link SendSystemMessageCommandInput} for command's `input` shape.
|
|
182
|
-
* @see {@link SendSystemMessageCommandOutput} 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 ForbiddenException} (client fault)
|
|
190
|
-
*
|
|
191
|
-
* @throws {@link ConversationsServiceException}
|
|
192
|
-
* <p>Base exception class for all service exceptions from Conversations service.</p>
|
|
193
|
-
*
|
|
194
|
-
*/
|
|
195
|
-
export declare class SendSystemMessageCommand extends $Command<SendSystemMessageCommandInput, SendSystemMessageCommandOutput, ConversationsClientResolvedConfig> {
|
|
196
|
-
readonly input: SendSystemMessageCommandInput;
|
|
197
|
-
/**
|
|
198
|
-
* @public
|
|
199
|
-
*/
|
|
200
|
-
constructor(input: SendSystemMessageCommandInput);
|
|
201
|
-
/**
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
204
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConversationsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<SendSystemMessageCommandInput, SendSystemMessageCommandOutput>;
|
|
205
|
-
/**
|
|
206
|
-
* @internal
|
|
207
|
-
*/
|
|
208
|
-
private serialize;
|
|
209
|
-
/**
|
|
210
|
-
* @internal
|
|
211
|
-
*/
|
|
212
|
-
private deserialize;
|
|
213
|
-
}
|