@wildix/xbees-conversations-client 1.0.59 → 1.0.60

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 (36) hide show
  1. package/dist-cjs/Conversations.js +6 -0
  2. package/dist-cjs/commands/GetActionTriggerResultCommand.js +21 -0
  3. package/dist-cjs/commands/SendActionTriggerResultCommand.js +21 -0
  4. package/dist-cjs/commands/TriggerMessageActionCommand.js +21 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/models/models_0.js +74 -2
  7. package/dist-cjs/protocols/Aws_restJson1.js +135 -4
  8. package/dist-es/Conversations.js +6 -0
  9. package/dist-es/commands/GetActionTriggerResultCommand.js +17 -0
  10. package/dist-es/commands/SendActionTriggerResultCommand.js +17 -0
  11. package/dist-es/commands/TriggerMessageActionCommand.js +17 -0
  12. package/dist-es/commands/index.js +3 -0
  13. package/dist-es/models/models_0.js +71 -1
  14. package/dist-es/protocols/Aws_restJson1.js +128 -3
  15. package/dist-types/Conversations.d.ts +21 -0
  16. package/dist-types/ConversationsClient.d.ts +5 -2
  17. package/dist-types/commands/DescribeEventCommand.d.ts +259 -9
  18. package/dist-types/commands/GetActionTriggerResultCommand.d.ts +70 -0
  19. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +1 -2
  20. package/dist-types/commands/GetMessageCommand.d.ts +84 -19
  21. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +1 -1
  22. package/dist-types/commands/ListMessagesCommand.d.ts +84 -19
  23. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +168 -38
  24. package/dist-types/commands/SendActionTriggerResultCommand.d.ts +68 -0
  25. package/dist-types/commands/SendGiphyCommand.d.ts +84 -19
  26. package/dist-types/commands/SendMessageCommand.d.ts +168 -38
  27. package/dist-types/commands/TriggerMessageActionCommand.d.ts +227 -0
  28. package/dist-types/commands/UpdateMessageCommand.d.ts +168 -38
  29. package/dist-types/commands/UploadFileCommand.d.ts +1 -1
  30. package/dist-types/commands/index.d.ts +3 -0
  31. package/dist-types/models/models_0.d.ts +387 -6
  32. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  33. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  34. package/dist-types/runtimeConfig.d.ts +1 -0
  35. package/dist-types/runtimeConfig.native.d.ts +1 -0
  36. package/package.json +1 -1
@@ -36,6 +36,88 @@ declare const SendMessageCommand_base: {
36
36
  * const client = new ConversationsClient(config);
37
37
  * const input = { // SendMessageInput
38
38
  * text: "STRING_VALUE",
39
+ * elements: [ // ElementsList
40
+ * { // Element Union: only one key present
41
+ * text: { // TextElement
42
+ * value: "STRING_VALUE", // required
43
+ * style: { // TextStyle
44
+ * italic: true || false,
45
+ * bold: true || false,
46
+ * strike: true || false,
47
+ * code: true || false,
48
+ * },
49
+ * },
50
+ * link: { // LinkElement
51
+ * url: "STRING_VALUE", // required
52
+ * text: "STRING_VALUE",
53
+ * style: {
54
+ * italic: true || false,
55
+ * bold: true || false,
56
+ * strike: true || false,
57
+ * code: true || false,
58
+ * },
59
+ * },
60
+ * email: { // EmailElement
61
+ * value: "STRING_VALUE", // required
62
+ * style: {
63
+ * italic: true || false,
64
+ * bold: true || false,
65
+ * strike: true || false,
66
+ * code: true || false,
67
+ * },
68
+ * },
69
+ * phone: { // PhoneElement
70
+ * value: "STRING_VALUE", // required
71
+ * style: {
72
+ * italic: true || false,
73
+ * bold: true || false,
74
+ * strike: true || false,
75
+ * code: true || false,
76
+ * },
77
+ * },
78
+ * mention: { // MentionElement
79
+ * text: "STRING_VALUE", // required
80
+ * user: { // User
81
+ * id: "STRING_VALUE", // required
82
+ * name: "STRING_VALUE",
83
+ * email: "STRING_VALUE",
84
+ * phone: "STRING_VALUE",
85
+ * picture: "STRING_VALUE",
86
+ * locale: "STRING_VALUE",
87
+ * timeZone: "STRING_VALUE",
88
+ * company: "STRING_VALUE",
89
+ * bot: true || false,
90
+ * pbxDomain: "STRING_VALUE",
91
+ * pbxPort: "STRING_VALUE",
92
+ * pbxExtension: "STRING_VALUE",
93
+ * pbxSerial: "STRING_VALUE",
94
+ * pbxUserId: "STRING_VALUE",
95
+ * createdAt: "STRING_VALUE",
96
+ * updatedAt: "STRING_VALUE",
97
+ * },
98
+ * },
99
+ * actions: [ // ActionsElementsList
100
+ * { // ActionElement Union: only one key present
101
+ * button: { // ButtonElement
102
+ * text: "STRING_VALUE", // required
103
+ * variant: "contained" || "outlined",
104
+ * disabled: true || false,
105
+ * handler: { // ButtonHandler Union: only one key present
106
+ * link: { // ButtonLinkHandler
107
+ * url: "STRING_VALUE", // required
108
+ * },
109
+ * reply: { // ButtonReplyHandler
110
+ * text: "STRING_VALUE",
111
+ * },
112
+ * action: { // ButtonActionHandler
113
+ * id: "STRING_VALUE", // required
114
+ * },
115
+ * },
116
+ * },
117
+ * },
118
+ * ],
119
+ * },
120
+ * ],
39
121
  * attachments: [ // MessageAttachmentList
40
122
  * { // MessageAttachment
41
123
  * id: "STRING_VALUE", // required
@@ -51,7 +133,7 @@ declare const SendMessageCommand_base: {
51
133
  * quote: { // MessageQuote
52
134
  * messageId: "STRING_VALUE", // required
53
135
  * channelId: "STRING_VALUE", // required
54
- * user: { // User
136
+ * user: {
55
137
  * id: "STRING_VALUE", // required
56
138
  * name: "STRING_VALUE",
57
139
  * email: "STRING_VALUE",
@@ -89,24 +171,7 @@ declare const SendMessageCommand_base: {
89
171
  * forwardName: "STRING_VALUE",
90
172
  * },
91
173
  * mentions: [ // UsersList
92
- * {
93
- * id: "STRING_VALUE", // required
94
- * name: "STRING_VALUE",
95
- * email: "STRING_VALUE",
96
- * phone: "STRING_VALUE",
97
- * picture: "STRING_VALUE",
98
- * locale: "STRING_VALUE",
99
- * timeZone: "STRING_VALUE",
100
- * company: "STRING_VALUE",
101
- * bot: true || false,
102
- * pbxDomain: "STRING_VALUE",
103
- * pbxPort: "STRING_VALUE",
104
- * pbxExtension: "STRING_VALUE",
105
- * pbxSerial: "STRING_VALUE",
106
- * pbxUserId: "STRING_VALUE",
107
- * createdAt: "STRING_VALUE",
108
- * updatedAt: "STRING_VALUE",
109
- * },
174
+ * "<User>",
110
175
  * ],
111
176
  * giphy: { // MessageGiphy
112
177
  * id: "STRING_VALUE", // required
@@ -136,6 +201,88 @@ declare const SendMessageCommand_base: {
136
201
  * // { // SendMessageOutput
137
202
  * // message: { // Message
138
203
  * // text: "STRING_VALUE",
204
+ * // elements: [ // ElementsList
205
+ * // { // Element Union: only one key present
206
+ * // text: { // TextElement
207
+ * // value: "STRING_VALUE", // required
208
+ * // style: { // TextStyle
209
+ * // italic: true || false,
210
+ * // bold: true || false,
211
+ * // strike: true || false,
212
+ * // code: true || false,
213
+ * // },
214
+ * // },
215
+ * // link: { // LinkElement
216
+ * // url: "STRING_VALUE", // required
217
+ * // text: "STRING_VALUE",
218
+ * // style: {
219
+ * // italic: true || false,
220
+ * // bold: true || false,
221
+ * // strike: true || false,
222
+ * // code: true || false,
223
+ * // },
224
+ * // },
225
+ * // email: { // EmailElement
226
+ * // value: "STRING_VALUE", // required
227
+ * // style: {
228
+ * // italic: true || false,
229
+ * // bold: true || false,
230
+ * // strike: true || false,
231
+ * // code: true || false,
232
+ * // },
233
+ * // },
234
+ * // phone: { // PhoneElement
235
+ * // value: "STRING_VALUE", // required
236
+ * // style: {
237
+ * // italic: true || false,
238
+ * // bold: true || false,
239
+ * // strike: true || false,
240
+ * // code: true || false,
241
+ * // },
242
+ * // },
243
+ * // mention: { // MentionElement
244
+ * // text: "STRING_VALUE", // required
245
+ * // user: { // User
246
+ * // id: "STRING_VALUE", // required
247
+ * // name: "STRING_VALUE",
248
+ * // email: "STRING_VALUE",
249
+ * // phone: "STRING_VALUE",
250
+ * // picture: "STRING_VALUE",
251
+ * // locale: "STRING_VALUE",
252
+ * // timeZone: "STRING_VALUE",
253
+ * // company: "STRING_VALUE",
254
+ * // bot: true || false,
255
+ * // pbxDomain: "STRING_VALUE",
256
+ * // pbxPort: "STRING_VALUE",
257
+ * // pbxExtension: "STRING_VALUE",
258
+ * // pbxSerial: "STRING_VALUE",
259
+ * // pbxUserId: "STRING_VALUE",
260
+ * // createdAt: "STRING_VALUE",
261
+ * // updatedAt: "STRING_VALUE",
262
+ * // },
263
+ * // },
264
+ * // actions: [ // ActionsElementsList
265
+ * // { // ActionElement Union: only one key present
266
+ * // button: { // ButtonElement
267
+ * // text: "STRING_VALUE", // required
268
+ * // variant: "contained" || "outlined",
269
+ * // disabled: true || false,
270
+ * // handler: { // ButtonHandler Union: only one key present
271
+ * // link: { // ButtonLinkHandler
272
+ * // url: "STRING_VALUE", // required
273
+ * // },
274
+ * // reply: { // ButtonReplyHandler
275
+ * // text: "STRING_VALUE",
276
+ * // },
277
+ * // action: { // ButtonActionHandler
278
+ * // id: "STRING_VALUE", // required
279
+ * // },
280
+ * // },
281
+ * // },
282
+ * // },
283
+ * // ],
284
+ * // },
285
+ * // ],
139
286
  * // attachments: [ // MessageAttachmentList
140
287
  * // { // MessageAttachment
141
288
  * // id: "STRING_VALUE", // required
@@ -151,7 +298,7 @@ declare const SendMessageCommand_base: {
151
298
  * // quote: { // MessageQuote
152
299
  * // messageId: "STRING_VALUE", // required
153
300
  * // channelId: "STRING_VALUE", // required
154
- * // user: { // User
301
+ * // user: {
155
302
  * // id: "STRING_VALUE", // required
156
303
  * // name: "STRING_VALUE",
157
304
  * // email: "STRING_VALUE",
@@ -189,24 +336,7 @@ declare const SendMessageCommand_base: {
189
336
  * // forwardName: "STRING_VALUE",
190
337
  * // },
191
338
  * // mentions: [ // UsersList
192
- * // {
193
- * // id: "STRING_VALUE", // required
194
- * // name: "STRING_VALUE",
195
- * // email: "STRING_VALUE",
196
- * // phone: "STRING_VALUE",
197
- * // picture: "STRING_VALUE",
198
- * // locale: "STRING_VALUE",
199
- * // timeZone: "STRING_VALUE",
200
- * // company: "STRING_VALUE",
201
- * // bot: true || false,
202
- * // pbxDomain: "STRING_VALUE",
203
- * // pbxPort: "STRING_VALUE",
204
- * // pbxExtension: "STRING_VALUE",
205
- * // pbxSerial: "STRING_VALUE",
206
- * // pbxUserId: "STRING_VALUE",
207
- * // createdAt: "STRING_VALUE",
208
- * // updatedAt: "STRING_VALUE",
209
- * // },
339
+ * // "<User>",
210
340
  * // ],
211
341
  * // giphy: { // MessageGiphy
212
342
  * // id: "STRING_VALUE", // required
@@ -0,0 +1,227 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { TriggerMessageActionInput, TriggerMessageActionOutput } 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 TriggerMessageActionCommand}.
14
+ */
15
+ export interface TriggerMessageActionCommandInput extends TriggerMessageActionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link TriggerMessageActionCommand}.
21
+ */
22
+ export interface TriggerMessageActionCommandOutput extends TriggerMessageActionOutput, __MetadataBearer {
23
+ }
24
+ declare const TriggerMessageActionCommand_base: {
25
+ new (input: TriggerMessageActionCommandInput): import("@smithy/smithy-client").CommandImpl<TriggerMessageActionCommandInput, TriggerMessageActionCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: TriggerMessageActionCommandInput): import("@smithy/smithy-client").CommandImpl<TriggerMessageActionCommandInput, TriggerMessageActionCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Sends a trigger for specific action for specified message. This operation requires the message to be accessible to the user.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { ConversationsClient, TriggerMessageActionCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
35
+ * // const { ConversationsClient, TriggerMessageActionCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
+ * const client = new ConversationsClient(config);
37
+ * const input = { // TriggerMessageActionInput
38
+ * text: "STRING_VALUE",
39
+ * elements: [ // ElementsList
40
+ * { // Element Union: only one key present
41
+ * text: { // TextElement
42
+ * value: "STRING_VALUE", // required
43
+ * style: { // TextStyle
44
+ * italic: true || false,
45
+ * bold: true || false,
46
+ * strike: true || false,
47
+ * code: true || false,
48
+ * },
49
+ * },
50
+ * link: { // LinkElement
51
+ * url: "STRING_VALUE", // required
52
+ * text: "STRING_VALUE",
53
+ * style: {
54
+ * italic: true || false,
55
+ * bold: true || false,
56
+ * strike: true || false,
57
+ * code: true || false,
58
+ * },
59
+ * },
60
+ * email: { // EmailElement
61
+ * value: "STRING_VALUE", // required
62
+ * style: {
63
+ * italic: true || false,
64
+ * bold: true || false,
65
+ * strike: true || false,
66
+ * code: true || false,
67
+ * },
68
+ * },
69
+ * phone: { // PhoneElement
70
+ * value: "STRING_VALUE", // required
71
+ * style: {
72
+ * italic: true || false,
73
+ * bold: true || false,
74
+ * strike: true || false,
75
+ * code: true || false,
76
+ * },
77
+ * },
78
+ * mention: { // MentionElement
79
+ * text: "STRING_VALUE", // required
80
+ * user: { // User
81
+ * id: "STRING_VALUE", // required
82
+ * name: "STRING_VALUE",
83
+ * email: "STRING_VALUE",
84
+ * phone: "STRING_VALUE",
85
+ * picture: "STRING_VALUE",
86
+ * locale: "STRING_VALUE",
87
+ * timeZone: "STRING_VALUE",
88
+ * company: "STRING_VALUE",
89
+ * bot: true || false,
90
+ * pbxDomain: "STRING_VALUE",
91
+ * pbxPort: "STRING_VALUE",
92
+ * pbxExtension: "STRING_VALUE",
93
+ * pbxSerial: "STRING_VALUE",
94
+ * pbxUserId: "STRING_VALUE",
95
+ * createdAt: "STRING_VALUE",
96
+ * updatedAt: "STRING_VALUE",
97
+ * },
98
+ * },
99
+ * actions: [ // ActionsElementsList
100
+ * { // ActionElement Union: only one key present
101
+ * button: { // ButtonElement
102
+ * text: "STRING_VALUE", // required
103
+ * variant: "contained" || "outlined",
104
+ * disabled: true || false,
105
+ * handler: { // ButtonHandler Union: only one key present
106
+ * link: { // ButtonLinkHandler
107
+ * url: "STRING_VALUE", // required
108
+ * },
109
+ * reply: { // ButtonReplyHandler
110
+ * text: "STRING_VALUE",
111
+ * },
112
+ * action: { // ButtonActionHandler
113
+ * id: "STRING_VALUE", // required
114
+ * },
115
+ * },
116
+ * },
117
+ * },
118
+ * ],
119
+ * },
120
+ * ],
121
+ * attachments: [ // MessageAttachmentList
122
+ * { // MessageAttachment
123
+ * id: "STRING_VALUE", // required
124
+ * fsId: "STRING_VALUE", // required
125
+ * mime: "STRING_VALUE",
126
+ * name: "STRING_VALUE", // required
127
+ * size: Number("int"), // required
128
+ * width: Number("int"),
129
+ * height: Number("int"),
130
+ * thumbnail: "STRING_VALUE",
131
+ * },
132
+ * ],
133
+ * quote: { // MessageQuote
134
+ * messageId: "STRING_VALUE", // required
135
+ * channelId: "STRING_VALUE", // required
136
+ * user: {
137
+ * id: "STRING_VALUE", // required
138
+ * name: "STRING_VALUE",
139
+ * email: "STRING_VALUE",
140
+ * phone: "STRING_VALUE",
141
+ * picture: "STRING_VALUE",
142
+ * locale: "STRING_VALUE",
143
+ * timeZone: "STRING_VALUE",
144
+ * company: "STRING_VALUE",
145
+ * bot: true || false,
146
+ * pbxDomain: "STRING_VALUE",
147
+ * pbxPort: "STRING_VALUE",
148
+ * pbxExtension: "STRING_VALUE",
149
+ * pbxSerial: "STRING_VALUE",
150
+ * pbxUserId: "STRING_VALUE",
151
+ * createdAt: "STRING_VALUE",
152
+ * updatedAt: "STRING_VALUE",
153
+ * },
154
+ * text: "STRING_VALUE",
155
+ * attachments: [
156
+ * {
157
+ * id: "STRING_VALUE", // required
158
+ * fsId: "STRING_VALUE", // required
159
+ * mime: "STRING_VALUE",
160
+ * name: "STRING_VALUE", // required
161
+ * size: Number("int"), // required
162
+ * width: Number("int"),
163
+ * height: Number("int"),
164
+ * thumbnail: "STRING_VALUE",
165
+ * },
166
+ * ],
167
+ * forward: { // MessageForward
168
+ * forwardCompany: "STRING_VALUE",
169
+ * forwardDate: "STRING_VALUE", // required
170
+ * forwardEmail: "STRING_VALUE",
171
+ * forwardName: "STRING_VALUE",
172
+ * },
173
+ * mentions: [ // UsersList
174
+ * "<User>",
175
+ * ],
176
+ * giphy: { // MessageGiphy
177
+ * id: "STRING_VALUE", // required
178
+ * size: "STRING_VALUE", // required
179
+ * url: "STRING_VALUE", // required
180
+ * height: "STRING_VALUE", // required
181
+ * width: "STRING_VALUE", // required
182
+ * },
183
+ * createdAt: "STRING_VALUE", // required
184
+ * updatedAt: "STRING_VALUE",
185
+ * },
186
+ * forward: {
187
+ * forwardCompany: "STRING_VALUE",
188
+ * forwardDate: "STRING_VALUE", // required
189
+ * forwardEmail: "STRING_VALUE",
190
+ * forwardName: "STRING_VALUE",
191
+ * },
192
+ * channelId: "STRING_VALUE", // required
193
+ * messageId: "STRING_VALUE", // required
194
+ * actionId: "STRING_VALUE", // required
195
+ * userId: "STRING_VALUE",
196
+ * };
197
+ * const command = new TriggerMessageActionCommand(input);
198
+ * const response = await client.send(command);
199
+ * // {};
200
+ *
201
+ * ```
202
+ *
203
+ * @param TriggerMessageActionCommandInput - {@link TriggerMessageActionCommandInput}
204
+ * @returns {@link TriggerMessageActionCommandOutput}
205
+ * @see {@link TriggerMessageActionCommandInput} for command's `input` shape.
206
+ * @see {@link TriggerMessageActionCommandOutput} for command's `response` shape.
207
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
208
+ *
209
+ * @throws {@link ChannelNotFoundException} (client fault)
210
+ *
211
+ * @throws {@link MessageNotFoundException} (client fault)
212
+ *
213
+ * @throws {@link MessageActionNotFoundException} (client fault)
214
+ *
215
+ * @throws {@link ValidationException} (client fault)
216
+ *
217
+ * @throws {@link ForbiddenException} (client fault)
218
+ *
219
+ * @throws {@link RateLimitExceededException} (client fault)
220
+ *
221
+ * @throws {@link ConversationsServiceException}
222
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
223
+ *
224
+ * @public
225
+ */
226
+ export declare class TriggerMessageActionCommand extends TriggerMessageActionCommand_base {
227
+ }