@wildix/xbees-conversations-client 1.1.16 → 1.1.18
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/models/models_0.js +17 -13
- package/dist-cjs/protocols/Aws_restJson1.js +9 -8
- package/dist-es/models/models_0.js +16 -12
- package/dist-es/protocols/Aws_restJson1.js +9 -8
- package/dist-types/Conversations.d.ts +0 -6
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +8 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +20 -20
- package/dist-types/commands/GetMessageCommand.d.ts +4 -4
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +3 -3
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +3 -3
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +3 -3
- package/dist-types/commands/GetSmsChannelIdCommand.d.ts +3 -3
- package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +3 -3
- package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +3 -3
- package/dist-types/commands/ListMessagesCommand.d.ts +4 -4
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +4 -4
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +9 -5
- package/dist-types/commands/SendGiphyCommand.d.ts +4 -4
- package/dist-types/commands/SendMessageCommand.d.ts +8 -4
- package/dist-types/commands/SendTemplateMessageCommand.d.ts +13 -132
- package/dist-types/commands/UpdateMessageCommand.d.ts +8 -4
- package/dist-types/models/models_0.d.ts +69 -54
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.
|
|
3
|
+
exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.MessageType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.Element = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.AssignChannelVariant = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ActionTriggerStatus = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChannelType = exports.FileNotFoundException = exports.ConversationFileCategory = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
|
|
4
4
|
const ConversationsServiceException_1 = require("./ConversationsServiceException");
|
|
5
5
|
class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
6
6
|
name = "ValidationException";
|
|
@@ -203,6 +203,18 @@ var Element;
|
|
|
203
203
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
204
204
|
};
|
|
205
205
|
})(Element || (exports.Element = Element = {}));
|
|
206
|
+
exports.MessageSmsStatus = {
|
|
207
|
+
DELIVERED: "delivered",
|
|
208
|
+
ERROR: "error",
|
|
209
|
+
SENT: "sent",
|
|
210
|
+
TRYING: "trying",
|
|
211
|
+
};
|
|
212
|
+
exports.MessageWhatsAppStatus = {
|
|
213
|
+
DELIVERED: "delivered",
|
|
214
|
+
ERROR: "error",
|
|
215
|
+
SENT: "sent",
|
|
216
|
+
TRYING: "trying",
|
|
217
|
+
};
|
|
206
218
|
exports.TargetNotEligibleReason = {
|
|
207
219
|
NO_LICENSE: "no_license",
|
|
208
220
|
};
|
|
@@ -271,22 +283,10 @@ exports.ReactionType = {
|
|
|
271
283
|
THUMBSUP: "thumbsup",
|
|
272
284
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
273
285
|
};
|
|
274
|
-
exports.MessageSmsStatus = {
|
|
275
|
-
DELIVERED: "delivered",
|
|
276
|
-
ERROR: "error",
|
|
277
|
-
SENT: "sent",
|
|
278
|
-
TRYING: "trying",
|
|
279
|
-
};
|
|
280
286
|
exports.MessageType = {
|
|
281
287
|
REGULAR: "regular",
|
|
282
288
|
SYSTEM: "system",
|
|
283
289
|
};
|
|
284
|
-
exports.MessageWhatsAppStatus = {
|
|
285
|
-
DELIVERED: "delivered",
|
|
286
|
-
ERROR: "error",
|
|
287
|
-
SENT: "sent",
|
|
288
|
-
TRYING: "trying",
|
|
289
|
-
};
|
|
290
290
|
exports.WebhookEventType = {
|
|
291
291
|
ACTION_TRIGGERED: "chat:action:triggered",
|
|
292
292
|
CHANNEL_CREATED: "chat:channel:created",
|
|
@@ -355,7 +355,11 @@ exports.MessageUnsetFields = {
|
|
|
355
355
|
FORWARD: "forward",
|
|
356
356
|
MENTIONS: "mentions",
|
|
357
357
|
QUOTE: "quote",
|
|
358
|
+
SMS: "sms",
|
|
359
|
+
SMS_STATUS: "smsStatus",
|
|
358
360
|
TEXT: "text",
|
|
361
|
+
WHATSAPP: "whatsapp",
|
|
362
|
+
WHATSAPP_STATUS: "whatsappStatus",
|
|
359
363
|
};
|
|
360
364
|
class PinnedChannelsLimitReachedException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
361
365
|
name = "PinnedChannelsLimitReachedException";
|
|
@@ -963,7 +963,11 @@ const se_SendMessageCommand = async (input, context) => {
|
|
|
963
963
|
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
964
964
|
'messageId': [],
|
|
965
965
|
'quote': _ => (0, smithy_client_1._json)(_),
|
|
966
|
+
'sms': [],
|
|
967
|
+
'smsStatus': [],
|
|
966
968
|
'text': [],
|
|
969
|
+
'whatsapp': [],
|
|
970
|
+
'whatsappStatus': [],
|
|
967
971
|
}));
|
|
968
972
|
b.m("POST")
|
|
969
973
|
.h(headers)
|
|
@@ -1003,15 +1007,8 @@ const se_SendTemplateMessageCommand = async (input, context) => {
|
|
|
1003
1007
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
1004
1008
|
let body;
|
|
1005
1009
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1006
|
-
'attachments': _ => (0, smithy_client_1._json)(_),
|
|
1007
|
-
'elements': _ => (0, smithy_client_1._json)(_),
|
|
1008
|
-
'forward': _ => (0, smithy_client_1._json)(_),
|
|
1009
|
-
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
1010
|
-
'messageId': [],
|
|
1011
|
-
'quote': _ => (0, smithy_client_1._json)(_),
|
|
1012
|
-
'template': _ => (0, smithy_client_1._json)(_),
|
|
1013
|
-
'text': [],
|
|
1014
1010
|
'userId': [],
|
|
1011
|
+
'whatsapp': _ => (0, smithy_client_1._json)(_),
|
|
1015
1012
|
}));
|
|
1016
1013
|
b.m("POST")
|
|
1017
1014
|
.h(headers)
|
|
@@ -1226,7 +1223,11 @@ const se_UpdateMessageCommand = async (input, context) => {
|
|
|
1226
1223
|
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
1227
1224
|
'quote': _ => (0, smithy_client_1._json)(_),
|
|
1228
1225
|
'silent': [],
|
|
1226
|
+
'sms': [],
|
|
1227
|
+
'smsStatus': [],
|
|
1229
1228
|
'text': [],
|
|
1229
|
+
'whatsapp': [],
|
|
1230
|
+
'whatsappStatus': [],
|
|
1230
1231
|
}));
|
|
1231
1232
|
b.m("PUT")
|
|
1232
1233
|
.h(headers)
|
|
@@ -192,6 +192,18 @@ export var Element;
|
|
|
192
192
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
193
193
|
};
|
|
194
194
|
})(Element || (Element = {}));
|
|
195
|
+
export const MessageSmsStatus = {
|
|
196
|
+
DELIVERED: "delivered",
|
|
197
|
+
ERROR: "error",
|
|
198
|
+
SENT: "sent",
|
|
199
|
+
TRYING: "trying",
|
|
200
|
+
};
|
|
201
|
+
export const MessageWhatsAppStatus = {
|
|
202
|
+
DELIVERED: "delivered",
|
|
203
|
+
ERROR: "error",
|
|
204
|
+
SENT: "sent",
|
|
205
|
+
TRYING: "trying",
|
|
206
|
+
};
|
|
195
207
|
export const TargetNotEligibleReason = {
|
|
196
208
|
NO_LICENSE: "no_license",
|
|
197
209
|
};
|
|
@@ -256,22 +268,10 @@ export const ReactionType = {
|
|
|
256
268
|
THUMBSUP: "thumbsup",
|
|
257
269
|
WHITE_CHECK_MARK: "white_check_mark",
|
|
258
270
|
};
|
|
259
|
-
export const MessageSmsStatus = {
|
|
260
|
-
DELIVERED: "delivered",
|
|
261
|
-
ERROR: "error",
|
|
262
|
-
SENT: "sent",
|
|
263
|
-
TRYING: "trying",
|
|
264
|
-
};
|
|
265
271
|
export const MessageType = {
|
|
266
272
|
REGULAR: "regular",
|
|
267
273
|
SYSTEM: "system",
|
|
268
274
|
};
|
|
269
|
-
export const MessageWhatsAppStatus = {
|
|
270
|
-
DELIVERED: "delivered",
|
|
271
|
-
ERROR: "error",
|
|
272
|
-
SENT: "sent",
|
|
273
|
-
TRYING: "trying",
|
|
274
|
-
};
|
|
275
275
|
export const WebhookEventType = {
|
|
276
276
|
ACTION_TRIGGERED: "chat:action:triggered",
|
|
277
277
|
CHANNEL_CREATED: "chat:channel:created",
|
|
@@ -337,7 +337,11 @@ export const MessageUnsetFields = {
|
|
|
337
337
|
FORWARD: "forward",
|
|
338
338
|
MENTIONS: "mentions",
|
|
339
339
|
QUOTE: "quote",
|
|
340
|
+
SMS: "sms",
|
|
341
|
+
SMS_STATUS: "smsStatus",
|
|
340
342
|
TEXT: "text",
|
|
343
|
+
WHATSAPP: "whatsapp",
|
|
344
|
+
WHATSAPP_STATUS: "whatsappStatus",
|
|
341
345
|
};
|
|
342
346
|
export class PinnedChannelsLimitReachedException extends __BaseException {
|
|
343
347
|
name = "PinnedChannelsLimitReachedException";
|
|
@@ -908,7 +908,11 @@ export const se_SendMessageCommand = async (input, context) => {
|
|
|
908
908
|
'mentions': _ => _json(_),
|
|
909
909
|
'messageId': [],
|
|
910
910
|
'quote': _ => _json(_),
|
|
911
|
+
'sms': [],
|
|
912
|
+
'smsStatus': [],
|
|
911
913
|
'text': [],
|
|
914
|
+
'whatsapp': [],
|
|
915
|
+
'whatsappStatus': [],
|
|
912
916
|
}));
|
|
913
917
|
b.m("POST")
|
|
914
918
|
.h(headers)
|
|
@@ -946,15 +950,8 @@ export const se_SendTemplateMessageCommand = async (input, context) => {
|
|
|
946
950
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
947
951
|
let body;
|
|
948
952
|
body = JSON.stringify(take(input, {
|
|
949
|
-
'attachments': _ => _json(_),
|
|
950
|
-
'elements': _ => _json(_),
|
|
951
|
-
'forward': _ => _json(_),
|
|
952
|
-
'mentions': _ => _json(_),
|
|
953
|
-
'messageId': [],
|
|
954
|
-
'quote': _ => _json(_),
|
|
955
|
-
'template': _ => _json(_),
|
|
956
|
-
'text': [],
|
|
957
953
|
'userId': [],
|
|
954
|
+
'whatsapp': _ => _json(_),
|
|
958
955
|
}));
|
|
959
956
|
b.m("POST")
|
|
960
957
|
.h(headers)
|
|
@@ -1158,7 +1155,11 @@ export const se_UpdateMessageCommand = async (input, context) => {
|
|
|
1158
1155
|
'mentions': _ => _json(_),
|
|
1159
1156
|
'quote': _ => _json(_),
|
|
1160
1157
|
'silent': [],
|
|
1158
|
+
'sms': [],
|
|
1159
|
+
'smsStatus': [],
|
|
1161
1160
|
'text': [],
|
|
1161
|
+
'whatsapp': [],
|
|
1162
|
+
'whatsappStatus': [],
|
|
1162
1163
|
}));
|
|
1163
1164
|
b.m("PUT")
|
|
1164
1165
|
.h(headers)
|
|
@@ -194,35 +194,30 @@ export interface Conversations {
|
|
|
194
194
|
/**
|
|
195
195
|
* @see {@link GetOrCreateSmsChannelCommand}
|
|
196
196
|
*/
|
|
197
|
-
getOrCreateSmsChannel(): Promise<GetOrCreateSmsChannelCommandOutput>;
|
|
198
197
|
getOrCreateSmsChannel(args: GetOrCreateSmsChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetOrCreateSmsChannelCommandOutput>;
|
|
199
198
|
getOrCreateSmsChannel(args: GetOrCreateSmsChannelCommandInput, cb: (err: any, data?: GetOrCreateSmsChannelCommandOutput) => void): void;
|
|
200
199
|
getOrCreateSmsChannel(args: GetOrCreateSmsChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrCreateSmsChannelCommandOutput) => void): void;
|
|
201
200
|
/**
|
|
202
201
|
* @see {@link GetOrCreateTelephonyChannelCommand}
|
|
203
202
|
*/
|
|
204
|
-
getOrCreateTelephonyChannel(): Promise<GetOrCreateTelephonyChannelCommandOutput>;
|
|
205
203
|
getOrCreateTelephonyChannel(args: GetOrCreateTelephonyChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetOrCreateTelephonyChannelCommandOutput>;
|
|
206
204
|
getOrCreateTelephonyChannel(args: GetOrCreateTelephonyChannelCommandInput, cb: (err: any, data?: GetOrCreateTelephonyChannelCommandOutput) => void): void;
|
|
207
205
|
getOrCreateTelephonyChannel(args: GetOrCreateTelephonyChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrCreateTelephonyChannelCommandOutput) => void): void;
|
|
208
206
|
/**
|
|
209
207
|
* @see {@link GetOrCreateWhatsAppChannelCommand}
|
|
210
208
|
*/
|
|
211
|
-
getOrCreateWhatsAppChannel(): Promise<GetOrCreateWhatsAppChannelCommandOutput>;
|
|
212
209
|
getOrCreateWhatsAppChannel(args: GetOrCreateWhatsAppChannelCommandInput, options?: __HttpHandlerOptions): Promise<GetOrCreateWhatsAppChannelCommandOutput>;
|
|
213
210
|
getOrCreateWhatsAppChannel(args: GetOrCreateWhatsAppChannelCommandInput, cb: (err: any, data?: GetOrCreateWhatsAppChannelCommandOutput) => void): void;
|
|
214
211
|
getOrCreateWhatsAppChannel(args: GetOrCreateWhatsAppChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOrCreateWhatsAppChannelCommandOutput) => void): void;
|
|
215
212
|
/**
|
|
216
213
|
* @see {@link GetSmsChannelIdCommand}
|
|
217
214
|
*/
|
|
218
|
-
getSmsChannelId(): Promise<GetSmsChannelIdCommandOutput>;
|
|
219
215
|
getSmsChannelId(args: GetSmsChannelIdCommandInput, options?: __HttpHandlerOptions): Promise<GetSmsChannelIdCommandOutput>;
|
|
220
216
|
getSmsChannelId(args: GetSmsChannelIdCommandInput, cb: (err: any, data?: GetSmsChannelIdCommandOutput) => void): void;
|
|
221
217
|
getSmsChannelId(args: GetSmsChannelIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSmsChannelIdCommandOutput) => void): void;
|
|
222
218
|
/**
|
|
223
219
|
* @see {@link GetTelephonyChannelIdCommand}
|
|
224
220
|
*/
|
|
225
|
-
getTelephonyChannelId(): Promise<GetTelephonyChannelIdCommandOutput>;
|
|
226
221
|
getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, options?: __HttpHandlerOptions): Promise<GetTelephonyChannelIdCommandOutput>;
|
|
227
222
|
getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, cb: (err: any, data?: GetTelephonyChannelIdCommandOutput) => void): void;
|
|
228
223
|
getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTelephonyChannelIdCommandOutput) => void): void;
|
|
@@ -242,7 +237,6 @@ export interface Conversations {
|
|
|
242
237
|
/**
|
|
243
238
|
* @see {@link GetWhatsAppChannelIdCommand}
|
|
244
239
|
*/
|
|
245
|
-
getWhatsAppChannelId(): Promise<GetWhatsAppChannelIdCommandOutput>;
|
|
246
240
|
getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, options?: __HttpHandlerOptions): Promise<GetWhatsAppChannelIdCommandOutput>;
|
|
247
241
|
getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, cb: (err: any, data?: GetWhatsAppChannelIdCommandOutput) => void): void;
|
|
248
242
|
getWhatsAppChannelId(args: GetWhatsAppChannelIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWhatsAppChannelIdCommandOutput) => void): void;
|
|
@@ -158,6 +158,10 @@ declare const CreateKiteChannelCommand_base: {
|
|
|
158
158
|
* messageId: "STRING_VALUE", // required
|
|
159
159
|
* channelId: "STRING_VALUE", // required
|
|
160
160
|
* },
|
|
161
|
+
* whatsapp: true || false,
|
|
162
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
163
|
+
* sms: true || false,
|
|
164
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
161
165
|
* messageId: "STRING_VALUE", // required
|
|
162
166
|
* mentions: [ // UsersIdList
|
|
163
167
|
* "STRING_VALUE",
|
|
@@ -220,6 +224,10 @@ declare const CreateKiteChannelCommand_base: {
|
|
|
220
224
|
* updatedAt: "STRING_VALUE",
|
|
221
225
|
* },
|
|
222
226
|
* forward: "<MessageForward>",
|
|
227
|
+
* whatsapp: true || false,
|
|
228
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
229
|
+
* sms: true || false,
|
|
230
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
223
231
|
* messageId: "STRING_VALUE", // required
|
|
224
232
|
* mentions: [
|
|
225
233
|
* "STRING_VALUE",
|
|
@@ -568,6 +568,10 @@ declare const DescribeEventCommand_base: {
|
|
|
568
568
|
* // messageId: "STRING_VALUE", // required
|
|
569
569
|
* // channelId: "STRING_VALUE", // required
|
|
570
570
|
* // },
|
|
571
|
+
* // whatsapp: true || false,
|
|
572
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
573
|
+
* // sms: true || false,
|
|
574
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
571
575
|
* // type: "regular" || "system", // required
|
|
572
576
|
* // giphy: {
|
|
573
577
|
* // id: "STRING_VALUE", // required
|
|
@@ -578,10 +582,6 @@ declare const DescribeEventCommand_base: {
|
|
|
578
582
|
* // },
|
|
579
583
|
* // silent: true || false,
|
|
580
584
|
* // event: "STRING_VALUE",
|
|
581
|
-
* // sms: true || false,
|
|
582
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
583
|
-
* // whatsapp: true || false,
|
|
584
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
585
585
|
* // messageId: "STRING_VALUE", // required
|
|
586
586
|
* // channelId: "STRING_VALUE", // required
|
|
587
587
|
* // user: "<User>", // required
|
|
@@ -694,6 +694,10 @@ declare const DescribeEventCommand_base: {
|
|
|
694
694
|
* // messageId: "STRING_VALUE", // required
|
|
695
695
|
* // channelId: "STRING_VALUE", // required
|
|
696
696
|
* // },
|
|
697
|
+
* // whatsapp: true || false,
|
|
698
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
699
|
+
* // sms: true || false,
|
|
700
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
697
701
|
* // type: "regular" || "system", // required
|
|
698
702
|
* // giphy: {
|
|
699
703
|
* // id: "STRING_VALUE", // required
|
|
@@ -704,10 +708,6 @@ declare const DescribeEventCommand_base: {
|
|
|
704
708
|
* // },
|
|
705
709
|
* // silent: true || false,
|
|
706
710
|
* // event: "STRING_VALUE",
|
|
707
|
-
* // sms: true || false,
|
|
708
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
709
|
-
* // whatsapp: true || false,
|
|
710
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
711
711
|
* // messageId: "STRING_VALUE", // required
|
|
712
712
|
* // channelId: "STRING_VALUE", // required
|
|
713
713
|
* // user: "<User>", // required
|
|
@@ -802,14 +802,14 @@ declare const DescribeEventCommand_base: {
|
|
|
802
802
|
* // updatedAt: "STRING_VALUE",
|
|
803
803
|
* // },
|
|
804
804
|
* // forward: "<MessageForward>",
|
|
805
|
+
* // whatsapp: true || false,
|
|
806
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
807
|
+
* // sms: true || false,
|
|
808
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
805
809
|
* // type: "regular" || "system", // required
|
|
806
810
|
* // giphy: "<MessageGiphy>",
|
|
807
811
|
* // silent: true || false,
|
|
808
812
|
* // event: "STRING_VALUE",
|
|
809
|
-
* // sms: true || false,
|
|
810
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
811
|
-
* // whatsapp: true || false,
|
|
812
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
813
813
|
* // messageId: "STRING_VALUE", // required
|
|
814
814
|
* // channelId: "STRING_VALUE", // required
|
|
815
815
|
* // user: "<User>", // required
|
|
@@ -880,14 +880,14 @@ declare const DescribeEventCommand_base: {
|
|
|
880
880
|
* // updatedAt: "STRING_VALUE",
|
|
881
881
|
* // },
|
|
882
882
|
* // forward: "<MessageForward>",
|
|
883
|
+
* // whatsapp: true || false,
|
|
884
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
885
|
+
* // sms: true || false,
|
|
886
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
883
887
|
* // type: "regular" || "system", // required
|
|
884
888
|
* // giphy: "<MessageGiphy>",
|
|
885
889
|
* // silent: true || false,
|
|
886
890
|
* // event: "STRING_VALUE",
|
|
887
|
-
* // sms: true || false,
|
|
888
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
889
|
-
* // whatsapp: true || false,
|
|
890
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
891
891
|
* // messageId: "STRING_VALUE", // required
|
|
892
892
|
* // channelId: "STRING_VALUE", // required
|
|
893
893
|
* // user: "<User>", // required
|
|
@@ -964,14 +964,14 @@ declare const DescribeEventCommand_base: {
|
|
|
964
964
|
* // updatedAt: "STRING_VALUE",
|
|
965
965
|
* // },
|
|
966
966
|
* // forward: "<MessageForward>",
|
|
967
|
+
* // whatsapp: true || false,
|
|
968
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
969
|
+
* // sms: true || false,
|
|
970
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
967
971
|
* // type: "regular" || "system", // required
|
|
968
972
|
* // giphy: "<MessageGiphy>",
|
|
969
973
|
* // silent: true || false,
|
|
970
974
|
* // event: "STRING_VALUE",
|
|
971
|
-
* // sms: true || false,
|
|
972
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
973
|
-
* // whatsapp: true || false,
|
|
974
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
975
975
|
* // messageId: "STRING_VALUE", // required
|
|
976
976
|
* // channelId: "STRING_VALUE", // required
|
|
977
977
|
* // user: "<User>", // required
|
|
@@ -159,6 +159,10 @@ declare const GetMessageCommand_base: {
|
|
|
159
159
|
* // messageId: "STRING_VALUE", // required
|
|
160
160
|
* // channelId: "STRING_VALUE", // required
|
|
161
161
|
* // },
|
|
162
|
+
* // whatsapp: true || false,
|
|
163
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
164
|
+
* // sms: true || false,
|
|
165
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
162
166
|
* // type: "regular" || "system", // required
|
|
163
167
|
* // giphy: {
|
|
164
168
|
* // id: "STRING_VALUE", // required
|
|
@@ -169,10 +173,6 @@ declare const GetMessageCommand_base: {
|
|
|
169
173
|
* // },
|
|
170
174
|
* // silent: true || false,
|
|
171
175
|
* // event: "STRING_VALUE",
|
|
172
|
-
* // sms: true || false,
|
|
173
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
174
|
-
* // whatsapp: true || false,
|
|
175
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
176
176
|
* // messageId: "STRING_VALUE", // required
|
|
177
177
|
* // channelId: "STRING_VALUE", // required
|
|
178
178
|
* // user: "<User>", // required
|
|
@@ -23,11 +23,11 @@ export interface GetOrCreateSmsChannelCommandOutput extends GetOrCreateSmsChanne
|
|
|
23
23
|
}
|
|
24
24
|
declare const GetOrCreateSmsChannelCommand_base: {
|
|
25
25
|
new (input: GetOrCreateSmsChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateSmsChannelCommandInput, GetOrCreateSmsChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: GetOrCreateSmsChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateSmsChannelCommandInput, GetOrCreateSmsChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Gets or creates a SMS channel
|
|
30
|
+
* Gets or creates a SMS channel
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -36,7 +36,7 @@ declare const GetOrCreateSmsChannelCommand_base: {
|
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // GetOrCreateSmsChannelInput
|
|
38
38
|
* userId: "STRING_VALUE",
|
|
39
|
-
* serviceUri: "STRING_VALUE",
|
|
39
|
+
* serviceUri: "STRING_VALUE", // required
|
|
40
40
|
* recipientId: "STRING_VALUE",
|
|
41
41
|
* recipientNumber: "STRING_VALUE",
|
|
42
42
|
* };
|
|
@@ -23,11 +23,11 @@ export interface GetOrCreateTelephonyChannelCommandOutput extends GetOrCreateTel
|
|
|
23
23
|
}
|
|
24
24
|
declare const GetOrCreateTelephonyChannelCommand_base: {
|
|
25
25
|
new (input: GetOrCreateTelephonyChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateTelephonyChannelCommandInput, GetOrCreateTelephonyChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: GetOrCreateTelephonyChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateTelephonyChannelCommandInput, GetOrCreateTelephonyChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Gets or creates a telephony channel
|
|
30
|
+
* Gets or creates a telephony channel
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -36,7 +36,7 @@ declare const GetOrCreateTelephonyChannelCommand_base: {
|
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // GetOrCreateTelephonyChannelInput
|
|
38
38
|
* userId: "STRING_VALUE",
|
|
39
|
-
* serviceUri: "STRING_VALUE",
|
|
39
|
+
* serviceUri: "STRING_VALUE", // required
|
|
40
40
|
* recipientId: "STRING_VALUE",
|
|
41
41
|
* recipientNumber: "STRING_VALUE",
|
|
42
42
|
* };
|
|
@@ -23,11 +23,11 @@ export interface GetOrCreateWhatsAppChannelCommandOutput extends GetOrCreateWhat
|
|
|
23
23
|
}
|
|
24
24
|
declare const GetOrCreateWhatsAppChannelCommand_base: {
|
|
25
25
|
new (input: GetOrCreateWhatsAppChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateWhatsAppChannelCommandInput, GetOrCreateWhatsAppChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: GetOrCreateWhatsAppChannelCommandInput): import("@smithy/smithy-client").CommandImpl<GetOrCreateWhatsAppChannelCommandInput, GetOrCreateWhatsAppChannelCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Gets or creates a WhatsApp channel
|
|
30
|
+
* Gets or creates a WhatsApp channel
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -36,7 +36,7 @@ declare const GetOrCreateWhatsAppChannelCommand_base: {
|
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // GetOrCreateWhatsAppChannelInput
|
|
38
38
|
* userId: "STRING_VALUE",
|
|
39
|
-
* serviceUri: "STRING_VALUE",
|
|
39
|
+
* serviceUri: "STRING_VALUE", // required
|
|
40
40
|
* recipientId: "STRING_VALUE",
|
|
41
41
|
* recipientNumber: "STRING_VALUE",
|
|
42
42
|
* };
|
|
@@ -23,11 +23,11 @@ export interface GetSmsChannelIdCommandOutput extends GetSmsChannelIdOutput, __M
|
|
|
23
23
|
}
|
|
24
24
|
declare const GetSmsChannelIdCommand_base: {
|
|
25
25
|
new (input: GetSmsChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetSmsChannelIdCommandInput, GetSmsChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: GetSmsChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetSmsChannelIdCommandInput, GetSmsChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Gets the channel ID of an existing or non-existing SMS channel
|
|
30
|
+
* Gets the channel ID of an existing or non-existing SMS channel
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -36,7 +36,7 @@ declare const GetSmsChannelIdCommand_base: {
|
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // GetSmsChannelIdInput
|
|
38
38
|
* userId: "STRING_VALUE",
|
|
39
|
-
* serviceUri: "STRING_VALUE",
|
|
39
|
+
* serviceUri: "STRING_VALUE", // required
|
|
40
40
|
* recipientId: "STRING_VALUE",
|
|
41
41
|
* recipientNumber: "STRING_VALUE",
|
|
42
42
|
* };
|
|
@@ -23,11 +23,11 @@ export interface GetTelephonyChannelIdCommandOutput extends GetTelephonyChannelI
|
|
|
23
23
|
}
|
|
24
24
|
declare const GetTelephonyChannelIdCommand_base: {
|
|
25
25
|
new (input: GetTelephonyChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetTelephonyChannelIdCommandInput, GetTelephonyChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: GetTelephonyChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetTelephonyChannelIdCommandInput, GetTelephonyChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Gets the channel ID of an existing or non-existing telephony channel
|
|
30
|
+
* Gets the channel ID of an existing or non-existing telephony channel
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -36,7 +36,7 @@ declare const GetTelephonyChannelIdCommand_base: {
|
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // GetTelephonyChannelIdInput
|
|
38
38
|
* userId: "STRING_VALUE",
|
|
39
|
-
* serviceUri: "STRING_VALUE",
|
|
39
|
+
* serviceUri: "STRING_VALUE", // required
|
|
40
40
|
* recipientId: "STRING_VALUE",
|
|
41
41
|
* recipientNumber: "STRING_VALUE",
|
|
42
42
|
* };
|
|
@@ -23,11 +23,11 @@ export interface GetWhatsAppChannelIdCommandOutput extends GetWhatsAppChannelIdO
|
|
|
23
23
|
}
|
|
24
24
|
declare const GetWhatsAppChannelIdCommand_base: {
|
|
25
25
|
new (input: GetWhatsAppChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: GetWhatsAppChannelIdCommandInput): import("@smithy/smithy-client").CommandImpl<GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput, ConversationsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* Gets the channel ID of an existing or non-existing WhatsApp
|
|
30
|
+
* Gets the channel ID of an existing or non-existing WhatsApp
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -36,7 +36,7 @@ declare const GetWhatsAppChannelIdCommand_base: {
|
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // GetWhatsAppChannelIdInput
|
|
38
38
|
* userId: "STRING_VALUE",
|
|
39
|
-
* serviceUri: "STRING_VALUE",
|
|
39
|
+
* serviceUri: "STRING_VALUE", // required
|
|
40
40
|
* recipientId: "STRING_VALUE",
|
|
41
41
|
* recipientNumber: "STRING_VALUE",
|
|
42
42
|
* };
|
|
@@ -161,6 +161,10 @@ declare const ListMessagesCommand_base: {
|
|
|
161
161
|
* // messageId: "STRING_VALUE", // required
|
|
162
162
|
* // channelId: "STRING_VALUE", // required
|
|
163
163
|
* // },
|
|
164
|
+
* // whatsapp: true || false,
|
|
165
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
166
|
+
* // sms: true || false,
|
|
167
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
164
168
|
* // type: "regular" || "system", // required
|
|
165
169
|
* // giphy: {
|
|
166
170
|
* // id: "STRING_VALUE", // required
|
|
@@ -171,10 +175,6 @@ declare const ListMessagesCommand_base: {
|
|
|
171
175
|
* // },
|
|
172
176
|
* // silent: true || false,
|
|
173
177
|
* // event: "STRING_VALUE",
|
|
174
|
-
* // sms: true || false,
|
|
175
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
176
|
-
* // whatsapp: true || false,
|
|
177
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
178
178
|
* // messageId: "STRING_VALUE", // required
|
|
179
179
|
* // channelId: "STRING_VALUE", // required
|
|
180
180
|
* // user: "<User>", // required
|
|
@@ -161,6 +161,10 @@ declare const ListPinnedMessagesCommand_base: {
|
|
|
161
161
|
* // messageId: "STRING_VALUE", // required
|
|
162
162
|
* // channelId: "STRING_VALUE", // required
|
|
163
163
|
* // },
|
|
164
|
+
* // whatsapp: true || false,
|
|
165
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
166
|
+
* // sms: true || false,
|
|
167
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
164
168
|
* // type: "regular" || "system", // required
|
|
165
169
|
* // giphy: {
|
|
166
170
|
* // id: "STRING_VALUE", // required
|
|
@@ -171,10 +175,6 @@ declare const ListPinnedMessagesCommand_base: {
|
|
|
171
175
|
* // },
|
|
172
176
|
* // silent: true || false,
|
|
173
177
|
* // event: "STRING_VALUE",
|
|
174
|
-
* // sms: true || false,
|
|
175
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
176
|
-
* // whatsapp: true || false,
|
|
177
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
178
178
|
* // messageId: "STRING_VALUE", // required
|
|
179
179
|
* // channelId: "STRING_VALUE", // required
|
|
180
180
|
* // user: "<User>", // required
|
|
@@ -156,12 +156,16 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
156
156
|
* messageId: "STRING_VALUE", // required
|
|
157
157
|
* channelId: "STRING_VALUE", // required
|
|
158
158
|
* },
|
|
159
|
+
* whatsapp: true || false,
|
|
160
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
161
|
+
* sms: true || false,
|
|
162
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
159
163
|
* mentions: [ // UsersIdList
|
|
160
164
|
* "STRING_VALUE",
|
|
161
165
|
* ],
|
|
162
166
|
* },
|
|
163
167
|
* unset: [ // MessageUnsetFieldsList
|
|
164
|
-
* "text" || "mentions" || "elements" || "attachments" || "quote" || "forward",
|
|
168
|
+
* "text" || "mentions" || "elements" || "attachments" || "quote" || "forward" || "whatsapp" || "whatsappStatus" || "sms" || "smsStatus",
|
|
165
169
|
* ],
|
|
166
170
|
* silent: true || false,
|
|
167
171
|
* };
|
|
@@ -286,6 +290,10 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
286
290
|
* // messageId: "STRING_VALUE", // required
|
|
287
291
|
* // channelId: "STRING_VALUE", // required
|
|
288
292
|
* // },
|
|
293
|
+
* // whatsapp: true || false,
|
|
294
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
295
|
+
* // sms: true || false,
|
|
296
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
289
297
|
* // type: "regular" || "system", // required
|
|
290
298
|
* // giphy: {
|
|
291
299
|
* // id: "STRING_VALUE", // required
|
|
@@ -296,10 +304,6 @@ declare const PartialUpdateMessageCommand_base: {
|
|
|
296
304
|
* // },
|
|
297
305
|
* // silent: true || false,
|
|
298
306
|
* // event: "STRING_VALUE",
|
|
299
|
-
* // sms: true || false,
|
|
300
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
301
|
-
* // whatsapp: true || false,
|
|
302
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
303
307
|
* // messageId: "STRING_VALUE", // required
|
|
304
308
|
* // channelId: "STRING_VALUE", // required
|
|
305
309
|
* // user: "<User>", // required
|
|
@@ -167,6 +167,10 @@ declare const SendGiphyCommand_base: {
|
|
|
167
167
|
* // messageId: "STRING_VALUE", // required
|
|
168
168
|
* // channelId: "STRING_VALUE", // required
|
|
169
169
|
* // },
|
|
170
|
+
* // whatsapp: true || false,
|
|
171
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
172
|
+
* // sms: true || false,
|
|
173
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
170
174
|
* // type: "regular" || "system", // required
|
|
171
175
|
* // giphy: {
|
|
172
176
|
* // id: "STRING_VALUE", // required
|
|
@@ -177,10 +181,6 @@ declare const SendGiphyCommand_base: {
|
|
|
177
181
|
* // },
|
|
178
182
|
* // silent: true || false,
|
|
179
183
|
* // event: "STRING_VALUE",
|
|
180
|
-
* // sms: true || false,
|
|
181
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
182
|
-
* // whatsapp: true || false,
|
|
183
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
184
184
|
* // messageId: "STRING_VALUE", // required
|
|
185
185
|
* // channelId: "STRING_VALUE", // required
|
|
186
186
|
* // user: "<User>", // required
|
|
@@ -152,6 +152,10 @@ declare const SendMessageCommand_base: {
|
|
|
152
152
|
* messageId: "STRING_VALUE", // required
|
|
153
153
|
* channelId: "STRING_VALUE", // required
|
|
154
154
|
* },
|
|
155
|
+
* whatsapp: true || false,
|
|
156
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
157
|
+
* sms: true || false,
|
|
158
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
155
159
|
* messageId: "STRING_VALUE",
|
|
156
160
|
* mentions: [ // UsersIdList
|
|
157
161
|
* "STRING_VALUE",
|
|
@@ -280,6 +284,10 @@ declare const SendMessageCommand_base: {
|
|
|
280
284
|
* // messageId: "STRING_VALUE", // required
|
|
281
285
|
* // channelId: "STRING_VALUE", // required
|
|
282
286
|
* // },
|
|
287
|
+
* // whatsapp: true || false,
|
|
288
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
289
|
+
* // sms: true || false,
|
|
290
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
283
291
|
* // type: "regular" || "system", // required
|
|
284
292
|
* // giphy: {
|
|
285
293
|
* // id: "STRING_VALUE", // required
|
|
@@ -290,10 +298,6 @@ declare const SendMessageCommand_base: {
|
|
|
290
298
|
* // },
|
|
291
299
|
* // silent: true || false,
|
|
292
300
|
* // event: "STRING_VALUE",
|
|
293
|
-
* // sms: true || false,
|
|
294
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
295
|
-
* // whatsapp: true || false,
|
|
296
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
297
301
|
* // messageId: "STRING_VALUE", // required
|
|
298
302
|
* // channelId: "STRING_VALUE", // required
|
|
299
303
|
* // user: "<User>", // required
|
|
@@ -35,137 +35,18 @@ declare const SendTemplateMessageCommand_base: {
|
|
|
35
35
|
* // const { ConversationsClient, SendTemplateMessageCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
|
|
36
36
|
* const client = new ConversationsClient(config);
|
|
37
37
|
* const input = { // SendTemplateMessageInput
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
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
|
-
* },
|
|
38
|
+
* channelId: "STRING_VALUE", // required
|
|
39
|
+
* userId: "STRING_VALUE",
|
|
40
|
+
* whatsapp: { // WhatsAppTemplateConfig
|
|
41
|
+
* template: { // TemplateWithParameters
|
|
42
|
+
* name: "STRING_VALUE", // required
|
|
43
|
+
* parameters: [ // ListTemplateParameter // required
|
|
44
|
+
* { // TemplateParameter
|
|
45
|
+
* name: "STRING_VALUE", // required
|
|
46
|
+
* value: "STRING_VALUE", // required
|
|
59
47
|
* },
|
|
60
48
|
* ],
|
|
61
49
|
* },
|
|
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
50
|
* },
|
|
170
51
|
* };
|
|
171
52
|
* const command = new SendTemplateMessageCommand(input);
|
|
@@ -289,6 +170,10 @@ declare const SendTemplateMessageCommand_base: {
|
|
|
289
170
|
* // messageId: "STRING_VALUE", // required
|
|
290
171
|
* // channelId: "STRING_VALUE", // required
|
|
291
172
|
* // },
|
|
173
|
+
* // whatsapp: true || false,
|
|
174
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
175
|
+
* // sms: true || false,
|
|
176
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
292
177
|
* // type: "regular" || "system", // required
|
|
293
178
|
* // giphy: {
|
|
294
179
|
* // id: "STRING_VALUE", // required
|
|
@@ -299,10 +184,6 @@ declare const SendTemplateMessageCommand_base: {
|
|
|
299
184
|
* // },
|
|
300
185
|
* // silent: true || false,
|
|
301
186
|
* // event: "STRING_VALUE",
|
|
302
|
-
* // sms: true || false,
|
|
303
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
304
|
-
* // whatsapp: true || false,
|
|
305
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
306
187
|
* // messageId: "STRING_VALUE", // required
|
|
307
188
|
* // channelId: "STRING_VALUE", // required
|
|
308
189
|
* // user: "<User>", // required
|
|
@@ -152,6 +152,10 @@ declare const UpdateMessageCommand_base: {
|
|
|
152
152
|
* messageId: "STRING_VALUE", // required
|
|
153
153
|
* channelId: "STRING_VALUE", // required
|
|
154
154
|
* },
|
|
155
|
+
* whatsapp: true || false,
|
|
156
|
+
* whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
157
|
+
* sms: true || false,
|
|
158
|
+
* smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
155
159
|
* messageId: "STRING_VALUE", // required
|
|
156
160
|
* mentions: [ // UsersIdList
|
|
157
161
|
* "STRING_VALUE",
|
|
@@ -281,6 +285,10 @@ declare const UpdateMessageCommand_base: {
|
|
|
281
285
|
* // messageId: "STRING_VALUE", // required
|
|
282
286
|
* // channelId: "STRING_VALUE", // required
|
|
283
287
|
* // },
|
|
288
|
+
* // whatsapp: true || false,
|
|
289
|
+
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
290
|
+
* // sms: true || false,
|
|
291
|
+
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
284
292
|
* // type: "regular" || "system", // required
|
|
285
293
|
* // giphy: {
|
|
286
294
|
* // id: "STRING_VALUE", // required
|
|
@@ -291,10 +299,6 @@ declare const UpdateMessageCommand_base: {
|
|
|
291
299
|
* // },
|
|
292
300
|
* // silent: true || false,
|
|
293
301
|
* // event: "STRING_VALUE",
|
|
294
|
-
* // sms: true || false,
|
|
295
|
-
* // smsStatus: "sent" || "delivered" || "trying" || "error",
|
|
296
|
-
* // whatsapp: true || false,
|
|
297
|
-
* // whatsappStatus: "trying" || "sent" || "delivered" || "error",
|
|
298
302
|
* // messageId: "STRING_VALUE", // required
|
|
299
303
|
* // channelId: "STRING_VALUE", // required
|
|
300
304
|
* // user: "<User>", // required
|
|
@@ -913,6 +913,34 @@ export interface MessageQuote {
|
|
|
913
913
|
createdAt: string;
|
|
914
914
|
updatedAt?: string | undefined;
|
|
915
915
|
}
|
|
916
|
+
/**
|
|
917
|
+
* @public
|
|
918
|
+
* @enum
|
|
919
|
+
*/
|
|
920
|
+
export declare const MessageSmsStatus: {
|
|
921
|
+
readonly DELIVERED: "delivered";
|
|
922
|
+
readonly ERROR: "error";
|
|
923
|
+
readonly SENT: "sent";
|
|
924
|
+
readonly TRYING: "trying";
|
|
925
|
+
};
|
|
926
|
+
/**
|
|
927
|
+
* @public
|
|
928
|
+
*/
|
|
929
|
+
export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
|
|
930
|
+
/**
|
|
931
|
+
* @public
|
|
932
|
+
* @enum
|
|
933
|
+
*/
|
|
934
|
+
export declare const MessageWhatsAppStatus: {
|
|
935
|
+
readonly DELIVERED: "delivered";
|
|
936
|
+
readonly ERROR: "error";
|
|
937
|
+
readonly SENT: "sent";
|
|
938
|
+
readonly TRYING: "trying";
|
|
939
|
+
};
|
|
940
|
+
/**
|
|
941
|
+
* @public
|
|
942
|
+
*/
|
|
943
|
+
export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
|
|
916
944
|
/**
|
|
917
945
|
* @public
|
|
918
946
|
*/
|
|
@@ -922,6 +950,10 @@ export interface InitialMessage {
|
|
|
922
950
|
attachments?: (MessageAttachment)[] | undefined;
|
|
923
951
|
quote?: MessageQuote | undefined;
|
|
924
952
|
forward?: MessageForward | undefined;
|
|
953
|
+
whatsapp?: boolean | undefined;
|
|
954
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
955
|
+
sms?: boolean | undefined;
|
|
956
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
925
957
|
/**
|
|
926
958
|
* The unique identifier of the message. If not provided, an ID will be auto-generated.
|
|
927
959
|
* @public
|
|
@@ -942,6 +974,10 @@ export interface WelcomeMessage {
|
|
|
942
974
|
attachments?: (MessageAttachment)[] | undefined;
|
|
943
975
|
quote?: MessageQuote | undefined;
|
|
944
976
|
forward?: MessageForward | undefined;
|
|
977
|
+
whatsapp?: boolean | undefined;
|
|
978
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
979
|
+
sms?: boolean | undefined;
|
|
980
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
945
981
|
/**
|
|
946
982
|
* The unique identifier of the message. If not provided, an ID will be auto-generated.
|
|
947
983
|
* @public
|
|
@@ -1204,20 +1240,6 @@ export interface Reaction {
|
|
|
1204
1240
|
messageId?: string | undefined;
|
|
1205
1241
|
user?: User | undefined;
|
|
1206
1242
|
}
|
|
1207
|
-
/**
|
|
1208
|
-
* @public
|
|
1209
|
-
* @enum
|
|
1210
|
-
*/
|
|
1211
|
-
export declare const MessageSmsStatus: {
|
|
1212
|
-
readonly DELIVERED: "delivered";
|
|
1213
|
-
readonly ERROR: "error";
|
|
1214
|
-
readonly SENT: "sent";
|
|
1215
|
-
readonly TRYING: "trying";
|
|
1216
|
-
};
|
|
1217
|
-
/**
|
|
1218
|
-
* @public
|
|
1219
|
-
*/
|
|
1220
|
-
export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
|
|
1221
1243
|
/**
|
|
1222
1244
|
* @public
|
|
1223
1245
|
* @enum
|
|
@@ -1230,20 +1252,6 @@ export declare const MessageType: {
|
|
|
1230
1252
|
* @public
|
|
1231
1253
|
*/
|
|
1232
1254
|
export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
1233
|
-
/**
|
|
1234
|
-
* @public
|
|
1235
|
-
* @enum
|
|
1236
|
-
*/
|
|
1237
|
-
export declare const MessageWhatsAppStatus: {
|
|
1238
|
-
readonly DELIVERED: "delivered";
|
|
1239
|
-
readonly ERROR: "error";
|
|
1240
|
-
readonly SENT: "sent";
|
|
1241
|
-
readonly TRYING: "trying";
|
|
1242
|
-
};
|
|
1243
|
-
/**
|
|
1244
|
-
* @public
|
|
1245
|
-
*/
|
|
1246
|
-
export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
|
|
1247
1255
|
/**
|
|
1248
1256
|
* @public
|
|
1249
1257
|
*/
|
|
@@ -1253,14 +1261,14 @@ export interface Message {
|
|
|
1253
1261
|
attachments?: (MessageAttachment)[] | undefined;
|
|
1254
1262
|
quote?: MessageQuote | undefined;
|
|
1255
1263
|
forward?: MessageForward | undefined;
|
|
1264
|
+
whatsapp?: boolean | undefined;
|
|
1265
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
1266
|
+
sms?: boolean | undefined;
|
|
1267
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
1256
1268
|
type: MessageType;
|
|
1257
1269
|
giphy?: MessageGiphy | undefined;
|
|
1258
1270
|
silent?: boolean | undefined;
|
|
1259
1271
|
event?: string | undefined;
|
|
1260
|
-
sms?: boolean | undefined;
|
|
1261
|
-
smsStatus?: MessageSmsStatus | undefined;
|
|
1262
|
-
whatsapp?: boolean | undefined;
|
|
1263
|
-
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
1264
1272
|
messageId: string;
|
|
1265
1273
|
channelId: string;
|
|
1266
1274
|
user: User;
|
|
@@ -1732,7 +1740,7 @@ export interface GetOrCreateSmsChannelInput {
|
|
|
1732
1740
|
* The unique identifier of the telephony channel.
|
|
1733
1741
|
* @public
|
|
1734
1742
|
*/
|
|
1735
|
-
serviceUri
|
|
1743
|
+
serviceUri: string;
|
|
1736
1744
|
/**
|
|
1737
1745
|
* The unique identifier of the recipient. Required if recipientNumber is not provided.
|
|
1738
1746
|
* @public
|
|
@@ -1763,7 +1771,7 @@ export interface GetOrCreateTelephonyChannelInput {
|
|
|
1763
1771
|
* The unique identifier of the telephony channel.
|
|
1764
1772
|
* @public
|
|
1765
1773
|
*/
|
|
1766
|
-
serviceUri
|
|
1774
|
+
serviceUri: string;
|
|
1767
1775
|
/**
|
|
1768
1776
|
* The unique identifier of the recipient. Required if recipientNumber is not provided.
|
|
1769
1777
|
* @public
|
|
@@ -1794,7 +1802,7 @@ export interface GetOrCreateWhatsAppChannelInput {
|
|
|
1794
1802
|
* The unique identifier of the telephony channel.
|
|
1795
1803
|
* @public
|
|
1796
1804
|
*/
|
|
1797
|
-
serviceUri
|
|
1805
|
+
serviceUri: string;
|
|
1798
1806
|
/**
|
|
1799
1807
|
* The unique identifier of the recipient. Required if recipientNumber is not provided.
|
|
1800
1808
|
* @public
|
|
@@ -1825,7 +1833,7 @@ export interface GetSmsChannelIdInput {
|
|
|
1825
1833
|
* The unique identifier of the telephony channel.
|
|
1826
1834
|
* @public
|
|
1827
1835
|
*/
|
|
1828
|
-
serviceUri
|
|
1836
|
+
serviceUri: string;
|
|
1829
1837
|
/**
|
|
1830
1838
|
* The unique identifier of the recipient. Required if recipientNumber is not provided.
|
|
1831
1839
|
* @public
|
|
@@ -1856,7 +1864,7 @@ export interface GetTelephonyChannelIdInput {
|
|
|
1856
1864
|
* The unique identifier of the telephony channel.
|
|
1857
1865
|
* @public
|
|
1858
1866
|
*/
|
|
1859
|
-
serviceUri
|
|
1867
|
+
serviceUri: string;
|
|
1860
1868
|
/**
|
|
1861
1869
|
* The unique identifier of the recipient. Required if recipientNumber is not provided.
|
|
1862
1870
|
* @public
|
|
@@ -1933,7 +1941,7 @@ export interface GetWhatsAppChannelIdInput {
|
|
|
1933
1941
|
* The unique identifier of the telephony channel.
|
|
1934
1942
|
* @public
|
|
1935
1943
|
*/
|
|
1936
|
-
serviceUri
|
|
1944
|
+
serviceUri: string;
|
|
1937
1945
|
/**
|
|
1938
1946
|
* The unique identifier of the recipient. Required if recipientNumber is not provided.
|
|
1939
1947
|
* @public
|
|
@@ -2440,6 +2448,10 @@ export interface PartialUpdateMessageSetInput {
|
|
|
2440
2448
|
attachments?: (MessageAttachment)[] | undefined;
|
|
2441
2449
|
quote?: MessageQuote | undefined;
|
|
2442
2450
|
forward?: MessageForward | undefined;
|
|
2451
|
+
whatsapp?: boolean | undefined;
|
|
2452
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
2453
|
+
sms?: boolean | undefined;
|
|
2454
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
2443
2455
|
/**
|
|
2444
2456
|
* A list of user IDs mentioned in the message.
|
|
2445
2457
|
* @public
|
|
@@ -2456,7 +2468,11 @@ export declare const MessageUnsetFields: {
|
|
|
2456
2468
|
readonly FORWARD: "forward";
|
|
2457
2469
|
readonly MENTIONS: "mentions";
|
|
2458
2470
|
readonly QUOTE: "quote";
|
|
2471
|
+
readonly SMS: "sms";
|
|
2472
|
+
readonly SMS_STATUS: "smsStatus";
|
|
2459
2473
|
readonly TEXT: "text";
|
|
2474
|
+
readonly WHATSAPP: "whatsapp";
|
|
2475
|
+
readonly WHATSAPP_STATUS: "whatsappStatus";
|
|
2460
2476
|
};
|
|
2461
2477
|
/**
|
|
2462
2478
|
* @public
|
|
@@ -2694,6 +2710,10 @@ export interface SendMessageInput {
|
|
|
2694
2710
|
attachments?: (MessageAttachment)[] | undefined;
|
|
2695
2711
|
quote?: MessageQuote | undefined;
|
|
2696
2712
|
forward?: MessageForward | undefined;
|
|
2713
|
+
whatsapp?: boolean | undefined;
|
|
2714
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
2715
|
+
sms?: boolean | undefined;
|
|
2716
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
2697
2717
|
/**
|
|
2698
2718
|
* The unique identifier of the message. If not provided, an ID will be auto-generated.
|
|
2699
2719
|
* @public
|
|
@@ -2751,25 +2771,16 @@ export interface SendMessageReactionInput {
|
|
|
2751
2771
|
*/
|
|
2752
2772
|
export interface SendMessageReactionOutput {
|
|
2753
2773
|
}
|
|
2774
|
+
/**
|
|
2775
|
+
* @public
|
|
2776
|
+
*/
|
|
2777
|
+
export interface WhatsAppTemplateConfig {
|
|
2778
|
+
template: TemplateWithParameters;
|
|
2779
|
+
}
|
|
2754
2780
|
/**
|
|
2755
2781
|
* @public
|
|
2756
2782
|
*/
|
|
2757
2783
|
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
2784
|
/**
|
|
2774
2785
|
* The unique identifier of the channel to which the template message is sent.
|
|
2775
2786
|
* @public
|
|
@@ -2780,7 +2791,7 @@ export interface SendTemplateMessageInput {
|
|
|
2780
2791
|
* @public
|
|
2781
2792
|
*/
|
|
2782
2793
|
userId?: string | undefined;
|
|
2783
|
-
|
|
2794
|
+
whatsapp: WhatsAppTemplateConfig;
|
|
2784
2795
|
}
|
|
2785
2796
|
/**
|
|
2786
2797
|
* @public
|
|
@@ -3098,6 +3109,10 @@ export interface UpdateMessageInput {
|
|
|
3098
3109
|
attachments?: (MessageAttachment)[] | undefined;
|
|
3099
3110
|
quote?: MessageQuote | undefined;
|
|
3100
3111
|
forward?: MessageForward | undefined;
|
|
3112
|
+
whatsapp?: boolean | undefined;
|
|
3113
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
3114
|
+
sms?: boolean | undefined;
|
|
3115
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
3101
3116
|
/**
|
|
3102
3117
|
* The unique identifier of the message to update.
|
|
3103
3118
|
* @public
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-conversations-client",
|
|
3
3
|
"description": "@wildix/xbees-conversations-client client",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.18",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|