@wildix/xbees-conversations-client 1.1.14 → 1.1.16

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 (37) hide show
  1. package/dist-cjs/Conversations.js +16 -0
  2. package/dist-cjs/commands/GetOrCreateSmsChannelCommand.js +21 -0
  3. package/dist-cjs/commands/GetOrCreateTelephonyChannelCommand.js +21 -0
  4. package/dist-cjs/commands/GetOrCreateWhatsAppChannelCommand.js +21 -0
  5. package/dist-cjs/commands/GetSmsChannelIdCommand.js +21 -0
  6. package/dist-cjs/commands/GetTelephonyChannelIdCommand.js +21 -0
  7. package/dist-cjs/commands/GetWhatsAppChannelIdCommand.js +21 -0
  8. package/dist-cjs/commands/ListChannelMembersReadStatusCommand.js +21 -0
  9. package/dist-cjs/commands/SendTemplateMessageCommand.js +21 -0
  10. package/dist-cjs/commands/index.js +8 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +292 -3
  12. package/dist-es/Conversations.js +16 -0
  13. package/dist-es/commands/GetOrCreateSmsChannelCommand.js +17 -0
  14. package/dist-es/commands/GetOrCreateTelephonyChannelCommand.js +17 -0
  15. package/dist-es/commands/GetOrCreateWhatsAppChannelCommand.js +17 -0
  16. package/dist-es/commands/GetSmsChannelIdCommand.js +17 -0
  17. package/dist-es/commands/GetTelephonyChannelIdCommand.js +17 -0
  18. package/dist-es/commands/GetWhatsAppChannelIdCommand.js +17 -0
  19. package/dist-es/commands/ListChannelMembersReadStatusCommand.js +17 -0
  20. package/dist-es/commands/SendTemplateMessageCommand.js +17 -0
  21. package/dist-es/commands/index.js +8 -0
  22. package/dist-es/protocols/Aws_restJson1.js +273 -0
  23. package/dist-types/Conversations.d.ts +62 -0
  24. package/dist-types/ConversationsClient.d.ts +10 -2
  25. package/dist-types/commands/AssignChannelCommand.d.ts +4 -1
  26. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +151 -0
  27. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +151 -0
  28. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +151 -0
  29. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +81 -0
  30. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +81 -0
  31. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +81 -0
  32. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +103 -0
  33. package/dist-types/commands/SendTemplateMessageCommand.d.ts +363 -0
  34. package/dist-types/commands/index.d.ts +8 -0
  35. package/dist-types/models/models_0.d.ts +267 -0
  36. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  37. package/package.json +5 -5
@@ -0,0 +1,363 @@
1
+ import { ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConversationsClient";
2
+ import { SendTemplateMessageInput, SendTemplateMessageOutput } 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 SendTemplateMessageCommand}.
14
+ */
15
+ export interface SendTemplateMessageCommandInput extends SendTemplateMessageInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SendTemplateMessageCommand}.
21
+ */
22
+ export interface SendTemplateMessageCommandOutput extends SendTemplateMessageOutput, __MetadataBearer {
23
+ }
24
+ declare const SendTemplateMessageCommand_base: {
25
+ new (input: SendTemplateMessageCommandInput): import("@smithy/smithy-client").CommandImpl<SendTemplateMessageCommandInput, SendTemplateMessageCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: SendTemplateMessageCommandInput): import("@smithy/smithy-client").CommandImpl<SendTemplateMessageCommandInput, SendTemplateMessageCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Sends a template message to a specified channel. This operation requires the channel 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, SendTemplateMessageCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
35
+ * // const { ConversationsClient, SendTemplateMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
36
+ * const client = new ConversationsClient(config);
37
+ * const input = { // SendTemplateMessageInput
38
+ * text: "STRING_VALUE",
39
+ * elements: [ // ElementsList
40
+ * { // Element Union: only one key present
41
+ * actions: [ // ActionsElementsList
42
+ * { // ActionElement Union: only one key present
43
+ * button: { // ButtonElement
44
+ * text: "STRING_VALUE", // required
45
+ * handler: { // ButtonHandler Union: only one key present
46
+ * link: { // ButtonLinkHandler
47
+ * url: "STRING_VALUE", // required
48
+ * },
49
+ * reply: { // ButtonReplyHandler
50
+ * text: "STRING_VALUE",
51
+ * },
52
+ * action: { // ButtonActionHandler
53
+ * id: "STRING_VALUE", // required
54
+ * },
55
+ * },
56
+ * variant: "contained" || "outlined",
57
+ * disabled: true || false,
58
+ * },
59
+ * },
60
+ * ],
61
+ * },
62
+ * ],
63
+ * attachments: [ // MessageAttachmentList
64
+ * { // MessageAttachment
65
+ * id: "STRING_VALUE", // required
66
+ * fsId: "STRING_VALUE", // required
67
+ * mime: "STRING_VALUE",
68
+ * name: "STRING_VALUE", // required
69
+ * size: Number("int"), // required
70
+ * width: Number("int"),
71
+ * height: Number("int"),
72
+ * thumbnail: "STRING_VALUE",
73
+ * },
74
+ * ],
75
+ * quote: { // MessageQuote
76
+ * messageId: "STRING_VALUE", // required
77
+ * channelId: "STRING_VALUE", // required
78
+ * user: { // User
79
+ * id: "STRING_VALUE", // required
80
+ * name: "STRING_VALUE",
81
+ * email: "STRING_VALUE",
82
+ * phone: "STRING_VALUE",
83
+ * picture: "STRING_VALUE",
84
+ * locale: "STRING_VALUE",
85
+ * timeZone: "STRING_VALUE",
86
+ * company: "STRING_VALUE",
87
+ * bot: true || false,
88
+ * pbxDomain: "STRING_VALUE",
89
+ * pbxPort: "STRING_VALUE",
90
+ * pbxExtension: "STRING_VALUE",
91
+ * pbxSerial: "STRING_VALUE",
92
+ * pbxUserId: "STRING_VALUE",
93
+ * createdAt: "STRING_VALUE",
94
+ * updatedAt: "STRING_VALUE",
95
+ * },
96
+ * text: "STRING_VALUE",
97
+ * attachments: [
98
+ * {
99
+ * id: "STRING_VALUE", // required
100
+ * fsId: "STRING_VALUE", // required
101
+ * mime: "STRING_VALUE",
102
+ * name: "STRING_VALUE", // required
103
+ * size: Number("int"), // required
104
+ * width: Number("int"),
105
+ * height: Number("int"),
106
+ * thumbnail: "STRING_VALUE",
107
+ * },
108
+ * ],
109
+ * forward: { // MessageForward
110
+ * forwardCompany: "STRING_VALUE",
111
+ * forwardDate: "STRING_VALUE", // required
112
+ * forwardEmail: "STRING_VALUE",
113
+ * forwardName: "STRING_VALUE",
114
+ * messageId: "STRING_VALUE", // required
115
+ * channelId: "STRING_VALUE", // required
116
+ * },
117
+ * mentions: [ // UsersList
118
+ * {
119
+ * id: "STRING_VALUE", // required
120
+ * name: "STRING_VALUE",
121
+ * email: "STRING_VALUE",
122
+ * phone: "STRING_VALUE",
123
+ * picture: "STRING_VALUE",
124
+ * locale: "STRING_VALUE",
125
+ * timeZone: "STRING_VALUE",
126
+ * company: "STRING_VALUE",
127
+ * bot: true || false,
128
+ * pbxDomain: "STRING_VALUE",
129
+ * pbxPort: "STRING_VALUE",
130
+ * pbxExtension: "STRING_VALUE",
131
+ * pbxSerial: "STRING_VALUE",
132
+ * pbxUserId: "STRING_VALUE",
133
+ * createdAt: "STRING_VALUE",
134
+ * updatedAt: "STRING_VALUE",
135
+ * },
136
+ * ],
137
+ * giphy: { // MessageGiphy
138
+ * id: "STRING_VALUE", // required
139
+ * size: "STRING_VALUE", // required
140
+ * url: "STRING_VALUE", // required
141
+ * height: "STRING_VALUE", // required
142
+ * width: "STRING_VALUE", // required
143
+ * },
144
+ * createdAt: "STRING_VALUE", // required
145
+ * updatedAt: "STRING_VALUE",
146
+ * },
147
+ * forward: {
148
+ * forwardCompany: "STRING_VALUE",
149
+ * forwardDate: "STRING_VALUE", // required
150
+ * forwardEmail: "STRING_VALUE",
151
+ * forwardName: "STRING_VALUE",
152
+ * messageId: "STRING_VALUE", // required
153
+ * channelId: "STRING_VALUE", // required
154
+ * },
155
+ * messageId: "STRING_VALUE",
156
+ * mentions: [ // UsersIdList
157
+ * "STRING_VALUE",
158
+ * ],
159
+ * channelId: "STRING_VALUE", // required
160
+ * userId: "STRING_VALUE",
161
+ * template: { // TemplateWithParameters
162
+ * name: "STRING_VALUE", // required
163
+ * parameters: [ // ListTemplateParameter // required
164
+ * { // TemplateParameter
165
+ * name: "STRING_VALUE", // required
166
+ * value: "STRING_VALUE", // required
167
+ * },
168
+ * ],
169
+ * },
170
+ * };
171
+ * const command = new SendTemplateMessageCommand(input);
172
+ * const response = await client.send(command);
173
+ * // { // SendTemplateMessageOutput
174
+ * // message: { // Message
175
+ * // text: "STRING_VALUE",
176
+ * // elements: [ // ElementsList
177
+ * // { // Element Union: only one key present
178
+ * // actions: [ // ActionsElementsList
179
+ * // { // ActionElement Union: only one key present
180
+ * // button: { // ButtonElement
181
+ * // text: "STRING_VALUE", // required
182
+ * // handler: { // ButtonHandler Union: only one key present
183
+ * // link: { // ButtonLinkHandler
184
+ * // url: "STRING_VALUE", // required
185
+ * // },
186
+ * // reply: { // ButtonReplyHandler
187
+ * // text: "STRING_VALUE",
188
+ * // },
189
+ * // action: { // ButtonActionHandler
190
+ * // id: "STRING_VALUE", // required
191
+ * // },
192
+ * // },
193
+ * // variant: "contained" || "outlined",
194
+ * // disabled: true || false,
195
+ * // },
196
+ * // },
197
+ * // ],
198
+ * // },
199
+ * // ],
200
+ * // attachments: [ // MessageAttachmentList
201
+ * // { // MessageAttachment
202
+ * // id: "STRING_VALUE", // required
203
+ * // fsId: "STRING_VALUE", // required
204
+ * // mime: "STRING_VALUE",
205
+ * // name: "STRING_VALUE", // required
206
+ * // size: Number("int"), // required
207
+ * // width: Number("int"),
208
+ * // height: Number("int"),
209
+ * // thumbnail: "STRING_VALUE",
210
+ * // },
211
+ * // ],
212
+ * // quote: { // MessageQuote
213
+ * // messageId: "STRING_VALUE", // required
214
+ * // channelId: "STRING_VALUE", // required
215
+ * // user: { // User
216
+ * // id: "STRING_VALUE", // required
217
+ * // name: "STRING_VALUE",
218
+ * // email: "STRING_VALUE",
219
+ * // phone: "STRING_VALUE",
220
+ * // picture: "STRING_VALUE",
221
+ * // locale: "STRING_VALUE",
222
+ * // timeZone: "STRING_VALUE",
223
+ * // company: "STRING_VALUE",
224
+ * // bot: true || false,
225
+ * // pbxDomain: "STRING_VALUE",
226
+ * // pbxPort: "STRING_VALUE",
227
+ * // pbxExtension: "STRING_VALUE",
228
+ * // pbxSerial: "STRING_VALUE",
229
+ * // pbxUserId: "STRING_VALUE",
230
+ * // createdAt: "STRING_VALUE",
231
+ * // updatedAt: "STRING_VALUE",
232
+ * // },
233
+ * // text: "STRING_VALUE",
234
+ * // attachments: [
235
+ * // {
236
+ * // id: "STRING_VALUE", // required
237
+ * // fsId: "STRING_VALUE", // required
238
+ * // mime: "STRING_VALUE",
239
+ * // name: "STRING_VALUE", // required
240
+ * // size: Number("int"), // required
241
+ * // width: Number("int"),
242
+ * // height: Number("int"),
243
+ * // thumbnail: "STRING_VALUE",
244
+ * // },
245
+ * // ],
246
+ * // forward: { // MessageForward
247
+ * // forwardCompany: "STRING_VALUE",
248
+ * // forwardDate: "STRING_VALUE", // required
249
+ * // forwardEmail: "STRING_VALUE",
250
+ * // forwardName: "STRING_VALUE",
251
+ * // messageId: "STRING_VALUE", // required
252
+ * // channelId: "STRING_VALUE", // required
253
+ * // },
254
+ * // mentions: [ // UsersList
255
+ * // {
256
+ * // id: "STRING_VALUE", // required
257
+ * // name: "STRING_VALUE",
258
+ * // email: "STRING_VALUE",
259
+ * // phone: "STRING_VALUE",
260
+ * // picture: "STRING_VALUE",
261
+ * // locale: "STRING_VALUE",
262
+ * // timeZone: "STRING_VALUE",
263
+ * // company: "STRING_VALUE",
264
+ * // bot: true || false,
265
+ * // pbxDomain: "STRING_VALUE",
266
+ * // pbxPort: "STRING_VALUE",
267
+ * // pbxExtension: "STRING_VALUE",
268
+ * // pbxSerial: "STRING_VALUE",
269
+ * // pbxUserId: "STRING_VALUE",
270
+ * // createdAt: "STRING_VALUE",
271
+ * // updatedAt: "STRING_VALUE",
272
+ * // },
273
+ * // ],
274
+ * // giphy: { // MessageGiphy
275
+ * // id: "STRING_VALUE", // required
276
+ * // size: "STRING_VALUE", // required
277
+ * // url: "STRING_VALUE", // required
278
+ * // height: "STRING_VALUE", // required
279
+ * // width: "STRING_VALUE", // required
280
+ * // },
281
+ * // createdAt: "STRING_VALUE", // required
282
+ * // updatedAt: "STRING_VALUE",
283
+ * // },
284
+ * // forward: {
285
+ * // forwardCompany: "STRING_VALUE",
286
+ * // forwardDate: "STRING_VALUE", // required
287
+ * // forwardEmail: "STRING_VALUE",
288
+ * // forwardName: "STRING_VALUE",
289
+ * // messageId: "STRING_VALUE", // required
290
+ * // channelId: "STRING_VALUE", // required
291
+ * // },
292
+ * // type: "regular" || "system", // required
293
+ * // giphy: {
294
+ * // id: "STRING_VALUE", // required
295
+ * // size: "STRING_VALUE", // required
296
+ * // url: "STRING_VALUE", // required
297
+ * // height: "STRING_VALUE", // required
298
+ * // width: "STRING_VALUE", // required
299
+ * // },
300
+ * // silent: true || false,
301
+ * // event: "STRING_VALUE",
302
+ * // sms: true || false,
303
+ * // smsStatus: "sent" || "delivered" || "trying" || "error",
304
+ * // whatsapp: true || false,
305
+ * // whatsappStatus: "trying" || "sent" || "delivered" || "error",
306
+ * // messageId: "STRING_VALUE", // required
307
+ * // channelId: "STRING_VALUE", // required
308
+ * // user: "<User>", // required
309
+ * // edit: true || false,
310
+ * // mentions: [
311
+ * // "<User>",
312
+ * // ],
313
+ * // latestReactions: [ // ReactionList
314
+ * // { // Reaction
315
+ * // type: "STRING_VALUE",
316
+ * // userId: "STRING_VALUE",
317
+ * // messageId: "STRING_VALUE",
318
+ * // user: "<User>",
319
+ * // },
320
+ * // ],
321
+ * // reactionCounts: { // ReactionCounts
322
+ * // "<keys>": Number("int"),
323
+ * // },
324
+ * // createdAt: "STRING_VALUE", // required
325
+ * // updatedAt: "STRING_VALUE",
326
+ * // },
327
+ * // };
328
+ *
329
+ * ```
330
+ *
331
+ * @param SendTemplateMessageCommandInput - {@link SendTemplateMessageCommandInput}
332
+ * @returns {@link SendTemplateMessageCommandOutput}
333
+ * @see {@link SendTemplateMessageCommandInput} for command's `input` shape.
334
+ * @see {@link SendTemplateMessageCommandOutput} for command's `response` shape.
335
+ * @see {@link ConversationsClientResolvedConfig | config} for ConversationsClient's `config` shape.
336
+ *
337
+ * @throws {@link ChannelNotFoundException} (client fault)
338
+ *
339
+ * @throws {@link ValidationException} (client fault)
340
+ *
341
+ * @throws {@link ForbiddenException} (client fault)
342
+ *
343
+ * @throws {@link RateLimitExceededException} (client fault)
344
+ *
345
+ * @throws {@link ConversationsServiceException}
346
+ * <p>Base exception class for all service exceptions from Conversations service.</p>
347
+ *
348
+ *
349
+ * @public
350
+ */
351
+ export declare class SendTemplateMessageCommand extends SendTemplateMessageCommand_base {
352
+ /** @internal type navigation helper, not in runtime. */
353
+ protected static __types: {
354
+ api: {
355
+ input: SendTemplateMessageInput;
356
+ output: SendTemplateMessageOutput;
357
+ };
358
+ sdk: {
359
+ input: SendTemplateMessageCommandInput;
360
+ output: SendTemplateMessageCommandOutput;
361
+ };
362
+ };
363
+ }
@@ -18,13 +18,20 @@ export * from "./GetFilePresignedDownloadUrlCommand";
18
18
  export * from "./GetInboxStateCommand";
19
19
  export * from "./GetMessageCommand";
20
20
  export * from "./GetOrCreateDirectChannelCommand";
21
+ export * from "./GetOrCreateSmsChannelCommand";
22
+ export * from "./GetOrCreateTelephonyChannelCommand";
23
+ export * from "./GetOrCreateWhatsAppChannelCommand";
24
+ export * from "./GetSmsChannelIdCommand";
25
+ export * from "./GetTelephonyChannelIdCommand";
21
26
  export * from "./GetTokenCommand";
22
27
  export * from "./GetUploadedFileInfoCommand";
28
+ export * from "./GetWhatsAppChannelIdCommand";
23
29
  export * from "./HideChannelCommand";
24
30
  export * from "./InviteCommand";
25
31
  export * from "./JoinChannelCommand";
26
32
  export * from "./LeaveChannelCommand";
27
33
  export * from "./ListChannelMembersCommand";
34
+ export * from "./ListChannelMembersReadStatusCommand";
28
35
  export * from "./ListChannelsCommand";
29
36
  export * from "./ListInboxTaggedChannelsCommand";
30
37
  export * from "./ListInboxTagsCommand";
@@ -43,6 +50,7 @@ export * from "./SendActionTriggerResultCommand";
43
50
  export * from "./SendGiphyCommand";
44
51
  export * from "./SendMessageCommand";
45
52
  export * from "./SendMessageReactionCommand";
53
+ export * from "./SendTemplateMessageCommand";
46
54
  export * from "./SendTypingStartCommand";
47
55
  export * from "./SendTypingStopCommand";
48
56
  export * from "./ShowChannelCommand";
@@ -53,6 +53,20 @@ export declare class RateLimitExceededException extends __BaseException {
53
53
  */
54
54
  constructor(opts: __ExceptionOptionType<RateLimitExceededException, __BaseException>);
55
55
  }
56
+ /**
57
+ * @public
58
+ */
59
+ export interface TemplateParameter {
60
+ name: string;
61
+ value: string;
62
+ }
63
+ /**
64
+ * @public
65
+ */
66
+ export interface TemplateWithParameters {
67
+ name: string;
68
+ parameters: (TemplateParameter)[];
69
+ }
56
70
  /**
57
71
  * @public
58
72
  * @enum
@@ -528,6 +542,8 @@ export interface ServicePbx {
528
542
  * @public
529
543
  */
530
544
  export interface ServiceSettings {
545
+ phoneNumber?: string | undefined;
546
+ messagingNumber?: string | undefined;
531
547
  }
532
548
  /**
533
549
  * @public
@@ -695,6 +711,14 @@ export declare class ChannelAlreadyExistException extends __BaseException {
695
711
  */
696
712
  constructor(opts: __ExceptionOptionType<ChannelAlreadyExistException, __BaseException>);
697
713
  }
714
+ /**
715
+ * @public
716
+ */
717
+ export interface ChannelMemberReadStatus {
718
+ user?: User | undefined;
719
+ lastRead?: string | undefined;
720
+ lastReadMessageId?: string | undefined;
721
+ }
698
722
  /**
699
723
  * @public
700
724
  */
@@ -1695,6 +1719,161 @@ export interface GetOrCreateDirectChannelInput {
1695
1719
  export interface GetOrCreateDirectChannelOutput {
1696
1720
  channel: Channel;
1697
1721
  }
1722
+ /**
1723
+ * @public
1724
+ */
1725
+ export interface GetOrCreateSmsChannelInput {
1726
+ /**
1727
+ * The unique identifier of the user when a service token is used. Required if used PBX or S2S token.
1728
+ * @public
1729
+ */
1730
+ userId?: string | undefined;
1731
+ /**
1732
+ * The unique identifier of the telephony channel.
1733
+ * @public
1734
+ */
1735
+ serviceUri?: string | undefined;
1736
+ /**
1737
+ * The unique identifier of the recipient. Required if recipientNumber is not provided.
1738
+ * @public
1739
+ */
1740
+ recipientId?: string | undefined;
1741
+ /**
1742
+ * The unique identifier of the recipient. Required if recipientId is not provided.
1743
+ * @public
1744
+ */
1745
+ recipientNumber?: string | undefined;
1746
+ }
1747
+ /**
1748
+ * @public
1749
+ */
1750
+ export interface GetOrCreateSmsChannelOutput {
1751
+ channel: Channel;
1752
+ }
1753
+ /**
1754
+ * @public
1755
+ */
1756
+ export interface GetOrCreateTelephonyChannelInput {
1757
+ /**
1758
+ * The unique identifier of the user when a service token is used. Required if used PBX or S2S token.
1759
+ * @public
1760
+ */
1761
+ userId?: string | undefined;
1762
+ /**
1763
+ * The unique identifier of the telephony channel.
1764
+ * @public
1765
+ */
1766
+ serviceUri?: string | undefined;
1767
+ /**
1768
+ * The unique identifier of the recipient. Required if recipientNumber is not provided.
1769
+ * @public
1770
+ */
1771
+ recipientId?: string | undefined;
1772
+ /**
1773
+ * The unique identifier of the recipient. Required if recipientId is not provided.
1774
+ * @public
1775
+ */
1776
+ recipientNumber?: string | undefined;
1777
+ }
1778
+ /**
1779
+ * @public
1780
+ */
1781
+ export interface GetOrCreateTelephonyChannelOutput {
1782
+ channel: Channel;
1783
+ }
1784
+ /**
1785
+ * @public
1786
+ */
1787
+ export interface GetOrCreateWhatsAppChannelInput {
1788
+ /**
1789
+ * The unique identifier of the user when a service token is used. Required if used PBX or S2S token.
1790
+ * @public
1791
+ */
1792
+ userId?: string | undefined;
1793
+ /**
1794
+ * The unique identifier of the telephony channel.
1795
+ * @public
1796
+ */
1797
+ serviceUri?: string | undefined;
1798
+ /**
1799
+ * The unique identifier of the recipient. Required if recipientNumber is not provided.
1800
+ * @public
1801
+ */
1802
+ recipientId?: string | undefined;
1803
+ /**
1804
+ * The unique identifier of the recipient. Required if recipientId is not provided.
1805
+ * @public
1806
+ */
1807
+ recipientNumber?: string | undefined;
1808
+ }
1809
+ /**
1810
+ * @public
1811
+ */
1812
+ export interface GetOrCreateWhatsAppChannelOutput {
1813
+ channel: Channel;
1814
+ }
1815
+ /**
1816
+ * @public
1817
+ */
1818
+ export interface GetSmsChannelIdInput {
1819
+ /**
1820
+ * The unique identifier of the user when a service token is used. Required if used PBX or S2S token.
1821
+ * @public
1822
+ */
1823
+ userId?: string | undefined;
1824
+ /**
1825
+ * The unique identifier of the telephony channel.
1826
+ * @public
1827
+ */
1828
+ serviceUri?: string | undefined;
1829
+ /**
1830
+ * The unique identifier of the recipient. Required if recipientNumber is not provided.
1831
+ * @public
1832
+ */
1833
+ recipientId?: string | undefined;
1834
+ /**
1835
+ * The unique identifier of the recipient. Required if recipientId is not provided.
1836
+ * @public
1837
+ */
1838
+ recipientNumber?: string | undefined;
1839
+ }
1840
+ /**
1841
+ * @public
1842
+ */
1843
+ export interface GetSmsChannelIdOutput {
1844
+ channelId: string;
1845
+ }
1846
+ /**
1847
+ * @public
1848
+ */
1849
+ export interface GetTelephonyChannelIdInput {
1850
+ /**
1851
+ * The unique identifier of the user when a service token is used. Required if used PBX or S2S token.
1852
+ * @public
1853
+ */
1854
+ userId?: string | undefined;
1855
+ /**
1856
+ * The unique identifier of the telephony channel.
1857
+ * @public
1858
+ */
1859
+ serviceUri?: string | undefined;
1860
+ /**
1861
+ * The unique identifier of the recipient. Required if recipientNumber is not provided.
1862
+ * @public
1863
+ */
1864
+ recipientId?: string | undefined;
1865
+ /**
1866
+ * The unique identifier of the recipient. Required if recipientId is not provided.
1867
+ * @public
1868
+ */
1869
+ recipientNumber?: string | undefined;
1870
+ }
1871
+ /**
1872
+ * @public
1873
+ */
1874
+ export interface GetTelephonyChannelIdOutput {
1875
+ channelId: string;
1876
+ }
1698
1877
  /**
1699
1878
  * @public
1700
1879
  */
@@ -1741,6 +1920,37 @@ export interface GetUploadedFileInfoInput {
1741
1920
  export interface GetUploadedFileInfoOutput {
1742
1921
  file: MessageAttachment;
1743
1922
  }
1923
+ /**
1924
+ * @public
1925
+ */
1926
+ export interface GetWhatsAppChannelIdInput {
1927
+ /**
1928
+ * The unique identifier of the user when a service token is used. Required if used PBX or S2S token.
1929
+ * @public
1930
+ */
1931
+ userId?: string | undefined;
1932
+ /**
1933
+ * The unique identifier of the telephony channel.
1934
+ * @public
1935
+ */
1936
+ serviceUri?: string | undefined;
1937
+ /**
1938
+ * The unique identifier of the recipient. Required if recipientNumber is not provided.
1939
+ * @public
1940
+ */
1941
+ recipientId?: string | undefined;
1942
+ /**
1943
+ * The unique identifier of the recipient. Required if recipientId is not provided.
1944
+ * @public
1945
+ */
1946
+ recipientNumber?: string | undefined;
1947
+ }
1948
+ /**
1949
+ * @public
1950
+ */
1951
+ export interface GetWhatsAppChannelIdOutput {
1952
+ channelId: string;
1953
+ }
1744
1954
  /**
1745
1955
  * @public
1746
1956
  */
@@ -1867,6 +2077,26 @@ export interface ListChannelMembersOutput {
1867
2077
  */
1868
2078
  users: (User)[];
1869
2079
  }
2080
+ /**
2081
+ * @public
2082
+ */
2083
+ export interface ListChannelMembersReadStatusInput {
2084
+ /**
2085
+ * The unique identifier of the channel whose members are to be listed.
2086
+ * @public
2087
+ */
2088
+ channelId: string;
2089
+ }
2090
+ /**
2091
+ * @public
2092
+ */
2093
+ export interface ListChannelMembersReadStatusOutput {
2094
+ /**
2095
+ * Read status of members.
2096
+ * @public
2097
+ */
2098
+ members: (ChannelMemberReadStatus)[];
2099
+ }
1870
2100
  /**
1871
2101
  * @public
1872
2102
  */
@@ -2521,6 +2751,43 @@ export interface SendMessageReactionInput {
2521
2751
  */
2522
2752
  export interface SendMessageReactionOutput {
2523
2753
  }
2754
+ /**
2755
+ * @public
2756
+ */
2757
+ export interface SendTemplateMessageInput {
2758
+ text?: string | undefined;
2759
+ elements?: (Element)[] | undefined;
2760
+ attachments?: (MessageAttachment)[] | undefined;
2761
+ quote?: MessageQuote | undefined;
2762
+ forward?: MessageForward | undefined;
2763
+ /**
2764
+ * The unique identifier of the message. If not provided, an ID will be auto-generated.
2765
+ * @public
2766
+ */
2767
+ messageId?: string | undefined;
2768
+ /**
2769
+ * A list of user IDs mentioned in the message.
2770
+ * @public
2771
+ */
2772
+ mentions?: (string)[] | undefined;
2773
+ /**
2774
+ * The unique identifier of the channel to which the template message is sent.
2775
+ * @public
2776
+ */
2777
+ channelId: string;
2778
+ /**
2779
+ * The unique identifier of the user when a service token is used.
2780
+ * @public
2781
+ */
2782
+ userId?: string | undefined;
2783
+ template: TemplateWithParameters;
2784
+ }
2785
+ /**
2786
+ * @public
2787
+ */
2788
+ export interface SendTemplateMessageOutput {
2789
+ message: Message;
2790
+ }
2524
2791
  /**
2525
2792
  * @public
2526
2793
  */