@wildix/xbees-conversations-client 1.0.54 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Conversations.js +0 -2
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/models/models_0.js +17 -47
- package/dist-cjs/protocols/Aws_restJson1.js +6 -76
- package/dist-es/Conversations.js +0 -2
- package/dist-es/commands/index.js +0 -1
- package/dist-es/models/models_0.js +16 -44
- package/dist-es/protocols/Aws_restJson1.js +5 -73
- package/dist-types/Conversations.d.ts +0 -7
- package/dist-types/ConversationsClient.d.ts +2 -3
- package/dist-types/commands/DescribeEventCommand.d.ts +0 -30
- package/dist-types/commands/GetMessageCommand.d.ts +0 -6
- package/dist-types/commands/ListMessagesCommand.d.ts +0 -6
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +0 -12
- package/dist-types/commands/SendGiphyCommand.d.ts +0 -6
- package/dist-types/commands/SendMessageCommand.d.ts +0 -12
- package/dist-types/commands/UpdateMessageCommand.d.ts +0 -12
- package/dist-types/commands/UploadFileCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +0 -1
- package/dist-types/models/models_0.d.ts +97 -254
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -9
- package/package.json +1 -1
- package/dist-cjs/commands/CreateKiteChannelCommand.js +0 -21
- package/dist-es/commands/CreateKiteChannelCommand.js +0 -17
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +0 -300
|
@@ -5,7 +5,6 @@ const ConversationsClient_1 = require("./ConversationsClient");
|
|
|
5
5
|
const AddChannelMemberCommand_1 = require("./commands/AddChannelMemberCommand");
|
|
6
6
|
const AddChannelMembersCommand_1 = require("./commands/AddChannelMembersCommand");
|
|
7
7
|
const CreateGroupChannelCommand_1 = require("./commands/CreateGroupChannelCommand");
|
|
8
|
-
const CreateKiteChannelCommand_1 = require("./commands/CreateKiteChannelCommand");
|
|
9
8
|
const DeleteChannelCommand_1 = require("./commands/DeleteChannelCommand");
|
|
10
9
|
const DeleteChannelMemberCommand_1 = require("./commands/DeleteChannelMemberCommand");
|
|
11
10
|
const DeleteMessageCommand_1 = require("./commands/DeleteMessageCommand");
|
|
@@ -44,7 +43,6 @@ const commands = {
|
|
|
44
43
|
AddChannelMemberCommand: AddChannelMemberCommand_1.AddChannelMemberCommand,
|
|
45
44
|
AddChannelMembersCommand: AddChannelMembersCommand_1.AddChannelMembersCommand,
|
|
46
45
|
CreateGroupChannelCommand: CreateGroupChannelCommand_1.CreateGroupChannelCommand,
|
|
47
|
-
CreateKiteChannelCommand: CreateKiteChannelCommand_1.CreateKiteChannelCommand,
|
|
48
46
|
DeleteChannelCommand: DeleteChannelCommand_1.DeleteChannelCommand,
|
|
49
47
|
DeleteChannelMemberCommand: DeleteChannelMemberCommand_1.DeleteChannelMemberCommand,
|
|
50
48
|
DeleteMessageCommand: DeleteMessageCommand_1.DeleteMessageCommand,
|
|
@@ -4,7 +4,6 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./AddChannelMemberCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./AddChannelMembersCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./CreateGroupChannelCommand"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./CreateKiteChannelCommand"), exports);
|
|
8
7
|
tslib_1.__exportStar(require("./DeleteChannelCommand"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./DeleteChannelMemberCommand"), exports);
|
|
10
9
|
tslib_1.__exportStar(require("./DeleteMessageCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.FileNotFoundException = exports.
|
|
3
|
+
exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.FileNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelType = 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
|
constructor(opts) {
|
|
@@ -112,52 +112,6 @@ exports.ConversationFileCategory = {
|
|
|
112
112
|
GENERAL: "channels",
|
|
113
113
|
RECORDING: "recordings",
|
|
114
114
|
};
|
|
115
|
-
exports.MessageSmsStatus = {
|
|
116
|
-
DELIVERED: "delivered",
|
|
117
|
-
ERROR: "error",
|
|
118
|
-
SENT: "sent",
|
|
119
|
-
TRYING: "trying",
|
|
120
|
-
};
|
|
121
|
-
exports.MessageType = {
|
|
122
|
-
REGULAR: "regular",
|
|
123
|
-
SYSTEM: "system",
|
|
124
|
-
};
|
|
125
|
-
exports.MessageWhatsAppStatus = {
|
|
126
|
-
DELIVERED: "delivered",
|
|
127
|
-
ERROR: "error",
|
|
128
|
-
SENT: "sent",
|
|
129
|
-
TRYING: "trying",
|
|
130
|
-
};
|
|
131
|
-
exports.TargetNotEligibleReason = {
|
|
132
|
-
NO_LICENSE: "no_license",
|
|
133
|
-
};
|
|
134
|
-
class TargetNotEligibleException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
135
|
-
constructor(opts) {
|
|
136
|
-
super({
|
|
137
|
-
name: "TargetNotEligibleException",
|
|
138
|
-
$fault: "client",
|
|
139
|
-
...opts
|
|
140
|
-
});
|
|
141
|
-
this.name = "TargetNotEligibleException";
|
|
142
|
-
this.$fault = "client";
|
|
143
|
-
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
144
|
-
this.reason = opts.reason;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
exports.TargetNotEligibleException = TargetNotEligibleException;
|
|
148
|
-
class TargetNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
149
|
-
constructor(opts) {
|
|
150
|
-
super({
|
|
151
|
-
name: "TargetNotFoundException",
|
|
152
|
-
$fault: "client",
|
|
153
|
-
...opts
|
|
154
|
-
});
|
|
155
|
-
this.name = "TargetNotFoundException";
|
|
156
|
-
this.$fault = "client";
|
|
157
|
-
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
exports.TargetNotFoundException = TargetNotFoundException;
|
|
161
115
|
class MemberNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
162
116
|
constructor(opts) {
|
|
163
117
|
super({
|
|
@@ -206,6 +160,22 @@ exports.WebhookEventType = {
|
|
|
206
160
|
REACTION_DELETED: "chat:reaction:deleted",
|
|
207
161
|
REACTION_NEW: "chat:reaction:new",
|
|
208
162
|
};
|
|
163
|
+
exports.MessageSmsStatus = {
|
|
164
|
+
DELIVERED: "delivered",
|
|
165
|
+
ERROR: "error",
|
|
166
|
+
SENT: "sent",
|
|
167
|
+
TRYING: "trying",
|
|
168
|
+
};
|
|
169
|
+
exports.MessageType = {
|
|
170
|
+
REGULAR: "regular",
|
|
171
|
+
SYSTEM: "system",
|
|
172
|
+
};
|
|
173
|
+
exports.MessageWhatsAppStatus = {
|
|
174
|
+
DELIVERED: "delivered",
|
|
175
|
+
ERROR: "error",
|
|
176
|
+
SENT: "sent",
|
|
177
|
+
TRYING: "trying",
|
|
178
|
+
};
|
|
209
179
|
class FileNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
|
|
210
180
|
constructor(opts) {
|
|
211
181
|
super({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.
|
|
4
|
-
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand =
|
|
3
|
+
exports.de_GetOrCreateDirectChannelCommand = exports.de_GetMessageCommand = exports.de_GetFilePresignedDownloadUrlCommand = exports.de_GetDirectChannelIdCommand = exports.de_GetChannelMemberCommand = exports.de_GetChannelCommand = exports.de_DescribeEventCommand = exports.de_DeleteMessageReactionCommand = exports.de_DeleteMessageCommand = exports.de_DeleteChannelMemberCommand = exports.de_DeleteChannelCommand = exports.de_CreateGroupChannelCommand = exports.de_AddChannelMembersCommand = exports.de_AddChannelMemberCommand = exports.se_UploadFileCommand = exports.se_UpdateMessageCommand = exports.se_UpdateChannelCommand = exports.se_ShowChannelCommand = exports.se_SendTypingStopCommand = exports.se_SendTypingStartCommand = exports.se_SendMessageReactionCommand = exports.se_SendMessageCommand = exports.se_SendGiphyCommand = exports.se_ScheduleExternalFlagAdjustmentJobCommand = exports.se_PartialUpdateMessageCommand = exports.se_PartialUpdateChannelCommand = exports.se_MarkReadCommand = exports.se_ListMessagesCommand = exports.se_ListMessageReactionsCommand = exports.se_ListChannelsCommand = exports.se_ListChannelMembersCommand = exports.se_LeaveChannelCommand = exports.se_JoinChannelCommand = exports.se_InviteCommand = exports.se_HideChannelCommand = exports.se_GetUploadedFileInfoCommand = exports.se_GetOrCreateDirectChannelCommand = exports.se_GetMessageCommand = exports.se_GetFilePresignedDownloadUrlCommand = exports.se_GetDirectChannelIdCommand = exports.se_GetChannelMemberCommand = exports.se_GetChannelCommand = exports.se_DescribeEventCommand = exports.se_DeleteMessageReactionCommand = exports.se_DeleteMessageCommand = exports.se_DeleteChannelMemberCommand = exports.se_DeleteChannelCommand = exports.se_CreateGroupChannelCommand = exports.se_AddChannelMembersCommand = exports.se_AddChannelMemberCommand = void 0;
|
|
4
|
+
exports.de_UploadFileCommand = exports.de_UpdateMessageCommand = exports.de_UpdateChannelCommand = exports.de_ShowChannelCommand = exports.de_SendTypingStopCommand = exports.de_SendTypingStartCommand = exports.de_SendMessageReactionCommand = exports.de_SendMessageCommand = exports.de_SendGiphyCommand = exports.de_ScheduleExternalFlagAdjustmentJobCommand = exports.de_PartialUpdateMessageCommand = exports.de_PartialUpdateChannelCommand = exports.de_MarkReadCommand = exports.de_ListMessagesCommand = exports.de_ListMessageReactionsCommand = exports.de_ListChannelsCommand = exports.de_ListChannelMembersCommand = exports.de_LeaveChannelCommand = exports.de_JoinChannelCommand = exports.de_InviteCommand = exports.de_HideChannelCommand = exports.de_GetUploadedFileInfoCommand = void 0;
|
|
5
5
|
const ConversationsServiceException_1 = require("../models/ConversationsServiceException");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const core_1 = require("@smithy/core");
|
|
@@ -80,30 +80,6 @@ const se_CreateGroupChannelCommand = async (input, context) => {
|
|
|
80
80
|
return b.build();
|
|
81
81
|
};
|
|
82
82
|
exports.se_CreateGroupChannelCommand = se_CreateGroupChannelCommand;
|
|
83
|
-
const se_CreateKiteChannelCommand = async (input, context) => {
|
|
84
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
85
|
-
const headers = {
|
|
86
|
-
'content-type': 'application/json',
|
|
87
|
-
};
|
|
88
|
-
b.bp("/v2/conversations/kite");
|
|
89
|
-
const query = (0, smithy_client_1.map)({
|
|
90
|
-
[_u]: [, input[_uI]],
|
|
91
|
-
});
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
94
|
-
'channelId': [],
|
|
95
|
-
'initialMessage': _ => (0, smithy_client_1._json)(_),
|
|
96
|
-
'targetId': [],
|
|
97
|
-
'targetRouteId': [],
|
|
98
|
-
'welcomeMessages': _ => (0, smithy_client_1._json)(_),
|
|
99
|
-
}));
|
|
100
|
-
b.m("POST")
|
|
101
|
-
.h(headers)
|
|
102
|
-
.q(query)
|
|
103
|
-
.b(body);
|
|
104
|
-
return b.build();
|
|
105
|
-
};
|
|
106
|
-
exports.se_CreateKiteChannelCommand = se_CreateKiteChannelCommand;
|
|
107
83
|
const se_DeleteChannelCommand = async (input, context) => {
|
|
108
84
|
const b = (0, core_1.requestBuilder)(input, context);
|
|
109
85
|
const headers = {};
|
|
@@ -557,7 +533,6 @@ const se_SendMessageCommand = async (input, context) => {
|
|
|
557
533
|
'forward': _ => (0, smithy_client_1._json)(_),
|
|
558
534
|
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
559
535
|
'messageId': [],
|
|
560
|
-
'predefinedReplies': _ => (0, smithy_client_1._json)(_),
|
|
561
536
|
'quote': _ => (0, smithy_client_1._json)(_),
|
|
562
537
|
'text': [],
|
|
563
538
|
}));
|
|
@@ -681,7 +656,6 @@ const se_UpdateMessageCommand = async (input, context) => {
|
|
|
681
656
|
'attachments': _ => (0, smithy_client_1._json)(_),
|
|
682
657
|
'forward': _ => (0, smithy_client_1._json)(_),
|
|
683
658
|
'mentions': _ => (0, smithy_client_1._json)(_),
|
|
684
|
-
'predefinedReplies': _ => (0, smithy_client_1._json)(_),
|
|
685
659
|
'quote': _ => (0, smithy_client_1._json)(_),
|
|
686
660
|
'text': [],
|
|
687
661
|
}));
|
|
@@ -699,6 +673,9 @@ const se_UploadFileCommand = async (input, context) => {
|
|
|
699
673
|
};
|
|
700
674
|
b.bp("/v2/conversations/channels/{channelId}/files");
|
|
701
675
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
676
|
+
const query = (0, smithy_client_1.map)({
|
|
677
|
+
[_u]: [, input[_uI]],
|
|
678
|
+
});
|
|
702
679
|
let body;
|
|
703
680
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
704
681
|
'name': [],
|
|
@@ -706,6 +683,7 @@ const se_UploadFileCommand = async (input, context) => {
|
|
|
706
683
|
}));
|
|
707
684
|
b.m("POST")
|
|
708
685
|
.h(headers)
|
|
686
|
+
.q(query)
|
|
709
687
|
.b(body);
|
|
710
688
|
return b.build();
|
|
711
689
|
};
|
|
@@ -757,21 +735,6 @@ const de_CreateGroupChannelCommand = async (output, context) => {
|
|
|
757
735
|
return contents;
|
|
758
736
|
};
|
|
759
737
|
exports.de_CreateGroupChannelCommand = de_CreateGroupChannelCommand;
|
|
760
|
-
const de_CreateKiteChannelCommand = async (output, context) => {
|
|
761
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
762
|
-
return de_CommandError(output, context);
|
|
763
|
-
}
|
|
764
|
-
const contents = (0, smithy_client_1.map)({
|
|
765
|
-
$metadata: deserializeMetadata(output),
|
|
766
|
-
});
|
|
767
|
-
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
768
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
769
|
-
'channel': smithy_client_1._json,
|
|
770
|
-
});
|
|
771
|
-
Object.assign(contents, doc);
|
|
772
|
-
return contents;
|
|
773
|
-
};
|
|
774
|
-
exports.de_CreateKiteChannelCommand = de_CreateKiteChannelCommand;
|
|
775
738
|
const de_DeleteChannelCommand = async (output, context) => {
|
|
776
739
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
777
740
|
return de_CommandError(output, context);
|
|
@@ -1255,12 +1218,6 @@ const de_CommandError = async (output, context) => {
|
|
|
1255
1218
|
case "ChannelAlreadyExistException":
|
|
1256
1219
|
case "wildix.xbees.conversations#ChannelAlreadyExistException":
|
|
1257
1220
|
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
1258
|
-
case "TargetNotEligibleException":
|
|
1259
|
-
case "wildix.xbees.conversations#TargetNotEligibleException":
|
|
1260
|
-
throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
|
|
1261
|
-
case "TargetNotFoundException":
|
|
1262
|
-
case "wildix.xbees.conversations#TargetNotFoundException":
|
|
1263
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
1264
1221
|
case "MemberNotFoundException":
|
|
1265
1222
|
case "wildix.xbees.conversations#MemberNotFoundException":
|
|
1266
1223
|
throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1418,33 +1375,6 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1418
1375
|
});
|
|
1419
1376
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1420
1377
|
};
|
|
1421
|
-
const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
|
|
1422
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1423
|
-
const data = parsedOutput.body;
|
|
1424
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1425
|
-
'message': smithy_client_1.expectString,
|
|
1426
|
-
'reason': smithy_client_1.expectString,
|
|
1427
|
-
});
|
|
1428
|
-
Object.assign(contents, doc);
|
|
1429
|
-
const exception = new models_0_1.TargetNotEligibleException({
|
|
1430
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1431
|
-
...contents
|
|
1432
|
-
});
|
|
1433
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1434
|
-
};
|
|
1435
|
-
const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1436
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1437
|
-
const data = parsedOutput.body;
|
|
1438
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1439
|
-
'message': smithy_client_1.expectString,
|
|
1440
|
-
});
|
|
1441
|
-
Object.assign(contents, doc);
|
|
1442
|
-
const exception = new models_0_1.TargetNotFoundException({
|
|
1443
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1444
|
-
...contents
|
|
1445
|
-
});
|
|
1446
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1447
|
-
};
|
|
1448
1378
|
const deserializeMetadata = (output) => ({
|
|
1449
1379
|
httpStatusCode: output.statusCode,
|
|
1450
1380
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/Conversations.js
CHANGED
|
@@ -2,7 +2,6 @@ import { ConversationsClient, } from "./ConversationsClient";
|
|
|
2
2
|
import { AddChannelMemberCommand, } from "./commands/AddChannelMemberCommand";
|
|
3
3
|
import { AddChannelMembersCommand, } from "./commands/AddChannelMembersCommand";
|
|
4
4
|
import { CreateGroupChannelCommand, } from "./commands/CreateGroupChannelCommand";
|
|
5
|
-
import { CreateKiteChannelCommand, } from "./commands/CreateKiteChannelCommand";
|
|
6
5
|
import { DeleteChannelCommand, } from "./commands/DeleteChannelCommand";
|
|
7
6
|
import { DeleteChannelMemberCommand, } from "./commands/DeleteChannelMemberCommand";
|
|
8
7
|
import { DeleteMessageCommand, } from "./commands/DeleteMessageCommand";
|
|
@@ -41,7 +40,6 @@ const commands = {
|
|
|
41
40
|
AddChannelMemberCommand,
|
|
42
41
|
AddChannelMembersCommand,
|
|
43
42
|
CreateGroupChannelCommand,
|
|
44
|
-
CreateKiteChannelCommand,
|
|
45
43
|
DeleteChannelCommand,
|
|
46
44
|
DeleteChannelMemberCommand,
|
|
47
45
|
DeleteMessageCommand,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from "./AddChannelMemberCommand";
|
|
2
2
|
export * from "./AddChannelMembersCommand";
|
|
3
3
|
export * from "./CreateGroupChannelCommand";
|
|
4
|
-
export * from "./CreateKiteChannelCommand";
|
|
5
4
|
export * from "./DeleteChannelCommand";
|
|
6
5
|
export * from "./DeleteChannelMemberCommand";
|
|
7
6
|
export * from "./DeleteMessageCommand";
|
|
@@ -103,50 +103,6 @@ export const ConversationFileCategory = {
|
|
|
103
103
|
GENERAL: "channels",
|
|
104
104
|
RECORDING: "recordings",
|
|
105
105
|
};
|
|
106
|
-
export const MessageSmsStatus = {
|
|
107
|
-
DELIVERED: "delivered",
|
|
108
|
-
ERROR: "error",
|
|
109
|
-
SENT: "sent",
|
|
110
|
-
TRYING: "trying",
|
|
111
|
-
};
|
|
112
|
-
export const MessageType = {
|
|
113
|
-
REGULAR: "regular",
|
|
114
|
-
SYSTEM: "system",
|
|
115
|
-
};
|
|
116
|
-
export const MessageWhatsAppStatus = {
|
|
117
|
-
DELIVERED: "delivered",
|
|
118
|
-
ERROR: "error",
|
|
119
|
-
SENT: "sent",
|
|
120
|
-
TRYING: "trying",
|
|
121
|
-
};
|
|
122
|
-
export const TargetNotEligibleReason = {
|
|
123
|
-
NO_LICENSE: "no_license",
|
|
124
|
-
};
|
|
125
|
-
export class TargetNotEligibleException extends __BaseException {
|
|
126
|
-
constructor(opts) {
|
|
127
|
-
super({
|
|
128
|
-
name: "TargetNotEligibleException",
|
|
129
|
-
$fault: "client",
|
|
130
|
-
...opts
|
|
131
|
-
});
|
|
132
|
-
this.name = "TargetNotEligibleException";
|
|
133
|
-
this.$fault = "client";
|
|
134
|
-
Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
|
|
135
|
-
this.reason = opts.reason;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
export class TargetNotFoundException extends __BaseException {
|
|
139
|
-
constructor(opts) {
|
|
140
|
-
super({
|
|
141
|
-
name: "TargetNotFoundException",
|
|
142
|
-
$fault: "client",
|
|
143
|
-
...opts
|
|
144
|
-
});
|
|
145
|
-
this.name = "TargetNotFoundException";
|
|
146
|
-
this.$fault = "client";
|
|
147
|
-
Object.setPrototypeOf(this, TargetNotFoundException.prototype);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
106
|
export class MemberNotFoundException extends __BaseException {
|
|
151
107
|
constructor(opts) {
|
|
152
108
|
super({
|
|
@@ -193,6 +149,22 @@ export const WebhookEventType = {
|
|
|
193
149
|
REACTION_DELETED: "chat:reaction:deleted",
|
|
194
150
|
REACTION_NEW: "chat:reaction:new",
|
|
195
151
|
};
|
|
152
|
+
export const MessageSmsStatus = {
|
|
153
|
+
DELIVERED: "delivered",
|
|
154
|
+
ERROR: "error",
|
|
155
|
+
SENT: "sent",
|
|
156
|
+
TRYING: "trying",
|
|
157
|
+
};
|
|
158
|
+
export const MessageType = {
|
|
159
|
+
REGULAR: "regular",
|
|
160
|
+
SYSTEM: "system",
|
|
161
|
+
};
|
|
162
|
+
export const MessageWhatsAppStatus = {
|
|
163
|
+
DELIVERED: "delivered",
|
|
164
|
+
ERROR: "error",
|
|
165
|
+
SENT: "sent",
|
|
166
|
+
TRYING: "trying",
|
|
167
|
+
};
|
|
196
168
|
export class FileNotFoundException extends __BaseException {
|
|
197
169
|
constructor(opts) {
|
|
198
170
|
super({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConversationsServiceException as __BaseException } from "../models/ConversationsServiceException";
|
|
2
|
-
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, RateLimitExceededException,
|
|
2
|
+
import { ChannelAlreadyExistException, ChannelNotFoundException, ConversationsServiceException, FileNotFoundException, ForbiddenException, MemberAlreadyExistException, MemberNotFoundException, MessageNotFoundException, RateLimitExceededException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, strictParseInt32 as __strictParseInt32, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
5
|
export const se_AddChannelMemberCommand = async (input, context) => {
|
|
@@ -73,29 +73,6 @@ export const se_CreateGroupChannelCommand = async (input, context) => {
|
|
|
73
73
|
.b(body);
|
|
74
74
|
return b.build();
|
|
75
75
|
};
|
|
76
|
-
export const se_CreateKiteChannelCommand = async (input, context) => {
|
|
77
|
-
const b = rb(input, context);
|
|
78
|
-
const headers = {
|
|
79
|
-
'content-type': 'application/json',
|
|
80
|
-
};
|
|
81
|
-
b.bp("/v2/conversations/kite");
|
|
82
|
-
const query = map({
|
|
83
|
-
[_u]: [, input[_uI]],
|
|
84
|
-
});
|
|
85
|
-
let body;
|
|
86
|
-
body = JSON.stringify(take(input, {
|
|
87
|
-
'channelId': [],
|
|
88
|
-
'initialMessage': _ => _json(_),
|
|
89
|
-
'targetId': [],
|
|
90
|
-
'targetRouteId': [],
|
|
91
|
-
'welcomeMessages': _ => _json(_),
|
|
92
|
-
}));
|
|
93
|
-
b.m("POST")
|
|
94
|
-
.h(headers)
|
|
95
|
-
.q(query)
|
|
96
|
-
.b(body);
|
|
97
|
-
return b.build();
|
|
98
|
-
};
|
|
99
76
|
export const se_DeleteChannelCommand = async (input, context) => {
|
|
100
77
|
const b = rb(input, context);
|
|
101
78
|
const headers = {};
|
|
@@ -524,7 +501,6 @@ export const se_SendMessageCommand = async (input, context) => {
|
|
|
524
501
|
'forward': _ => _json(_),
|
|
525
502
|
'mentions': _ => _json(_),
|
|
526
503
|
'messageId': [],
|
|
527
|
-
'predefinedReplies': _ => _json(_),
|
|
528
504
|
'quote': _ => _json(_),
|
|
529
505
|
'text': [],
|
|
530
506
|
}));
|
|
@@ -642,7 +618,6 @@ export const se_UpdateMessageCommand = async (input, context) => {
|
|
|
642
618
|
'attachments': _ => _json(_),
|
|
643
619
|
'forward': _ => _json(_),
|
|
644
620
|
'mentions': _ => _json(_),
|
|
645
|
-
'predefinedReplies': _ => _json(_),
|
|
646
621
|
'quote': _ => _json(_),
|
|
647
622
|
'text': [],
|
|
648
623
|
}));
|
|
@@ -659,6 +634,9 @@ export const se_UploadFileCommand = async (input, context) => {
|
|
|
659
634
|
};
|
|
660
635
|
b.bp("/v2/conversations/channels/{channelId}/files");
|
|
661
636
|
b.p('channelId', () => input.channelId, '{channelId}', false);
|
|
637
|
+
const query = map({
|
|
638
|
+
[_u]: [, input[_uI]],
|
|
639
|
+
});
|
|
662
640
|
let body;
|
|
663
641
|
body = JSON.stringify(take(input, {
|
|
664
642
|
'name': [],
|
|
@@ -666,6 +644,7 @@ export const se_UploadFileCommand = async (input, context) => {
|
|
|
666
644
|
}));
|
|
667
645
|
b.m("POST")
|
|
668
646
|
.h(headers)
|
|
647
|
+
.q(query)
|
|
669
648
|
.b(body);
|
|
670
649
|
return b.build();
|
|
671
650
|
};
|
|
@@ -713,20 +692,6 @@ export const de_CreateGroupChannelCommand = async (output, context) => {
|
|
|
713
692
|
Object.assign(contents, doc);
|
|
714
693
|
return contents;
|
|
715
694
|
};
|
|
716
|
-
export const de_CreateKiteChannelCommand = async (output, context) => {
|
|
717
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
718
|
-
return de_CommandError(output, context);
|
|
719
|
-
}
|
|
720
|
-
const contents = map({
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
});
|
|
723
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
724
|
-
const doc = take(data, {
|
|
725
|
-
'channel': _json,
|
|
726
|
-
});
|
|
727
|
-
Object.assign(contents, doc);
|
|
728
|
-
return contents;
|
|
729
|
-
};
|
|
730
695
|
export const de_DeleteChannelCommand = async (output, context) => {
|
|
731
696
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
732
697
|
return de_CommandError(output, context);
|
|
@@ -1177,12 +1142,6 @@ const de_CommandError = async (output, context) => {
|
|
|
1177
1142
|
case "ChannelAlreadyExistException":
|
|
1178
1143
|
case "wildix.xbees.conversations#ChannelAlreadyExistException":
|
|
1179
1144
|
throw await de_ChannelAlreadyExistExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "TargetNotEligibleException":
|
|
1181
|
-
case "wildix.xbees.conversations#TargetNotEligibleException":
|
|
1182
|
-
throw await de_TargetNotEligibleExceptionRes(parsedOutput, context);
|
|
1183
|
-
case "TargetNotFoundException":
|
|
1184
|
-
case "wildix.xbees.conversations#TargetNotFoundException":
|
|
1185
|
-
throw await de_TargetNotFoundExceptionRes(parsedOutput, context);
|
|
1186
1145
|
case "MemberNotFoundException":
|
|
1187
1146
|
case "wildix.xbees.conversations#MemberNotFoundException":
|
|
1188
1147
|
throw await de_MemberNotFoundExceptionRes(parsedOutput, context);
|
|
@@ -1340,33 +1299,6 @@ const de_MessageNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1340
1299
|
});
|
|
1341
1300
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1342
1301
|
};
|
|
1343
|
-
const de_TargetNotEligibleExceptionRes = async (parsedOutput, context) => {
|
|
1344
|
-
const contents = map({});
|
|
1345
|
-
const data = parsedOutput.body;
|
|
1346
|
-
const doc = take(data, {
|
|
1347
|
-
'message': __expectString,
|
|
1348
|
-
'reason': __expectString,
|
|
1349
|
-
});
|
|
1350
|
-
Object.assign(contents, doc);
|
|
1351
|
-
const exception = new TargetNotEligibleException({
|
|
1352
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1353
|
-
...contents
|
|
1354
|
-
});
|
|
1355
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1356
|
-
};
|
|
1357
|
-
const de_TargetNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1358
|
-
const contents = map({});
|
|
1359
|
-
const data = parsedOutput.body;
|
|
1360
|
-
const doc = take(data, {
|
|
1361
|
-
'message': __expectString,
|
|
1362
|
-
});
|
|
1363
|
-
Object.assign(contents, doc);
|
|
1364
|
-
const exception = new TargetNotFoundException({
|
|
1365
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1366
|
-
...contents
|
|
1367
|
-
});
|
|
1368
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1369
|
-
};
|
|
1370
1302
|
const deserializeMetadata = (output) => ({
|
|
1371
1303
|
httpStatusCode: output.statusCode,
|
|
1372
1304
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -2,7 +2,6 @@ import { ConversationsClient } from "./ConversationsClient";
|
|
|
2
2
|
import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./commands/AddChannelMemberCommand";
|
|
3
3
|
import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
|
|
4
4
|
import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
|
|
5
|
-
import { CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput } from "./commands/CreateKiteChannelCommand";
|
|
6
5
|
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
|
|
7
6
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
|
|
8
7
|
import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
|
|
@@ -57,12 +56,6 @@ export interface Conversations {
|
|
|
57
56
|
createGroupChannel(args: CreateGroupChannelCommandInput, options?: __HttpHandlerOptions): Promise<CreateGroupChannelCommandOutput>;
|
|
58
57
|
createGroupChannel(args: CreateGroupChannelCommandInput, cb: (err: any, data?: CreateGroupChannelCommandOutput) => void): void;
|
|
59
58
|
createGroupChannel(args: CreateGroupChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateGroupChannelCommandOutput) => void): void;
|
|
60
|
-
/**
|
|
61
|
-
* @see {@link CreateKiteChannelCommand}
|
|
62
|
-
*/
|
|
63
|
-
createKiteChannel(args: CreateKiteChannelCommandInput, options?: __HttpHandlerOptions): Promise<CreateKiteChannelCommandOutput>;
|
|
64
|
-
createKiteChannel(args: CreateKiteChannelCommandInput, cb: (err: any, data?: CreateKiteChannelCommandOutput) => void): void;
|
|
65
|
-
createKiteChannel(args: CreateKiteChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateKiteChannelCommandOutput) => void): void;
|
|
66
59
|
/**
|
|
67
60
|
* @see {@link DeleteChannelCommand}
|
|
68
61
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AddChannelMemberCommandInput, AddChannelMemberCommandOutput } from "./commands/AddChannelMemberCommand";
|
|
2
2
|
import { AddChannelMembersCommandInput, AddChannelMembersCommandOutput } from "./commands/AddChannelMembersCommand";
|
|
3
3
|
import { CreateGroupChannelCommandInput, CreateGroupChannelCommandOutput } from "./commands/CreateGroupChannelCommand";
|
|
4
|
-
import { CreateKiteChannelCommandInput, CreateKiteChannelCommandOutput } from "./commands/CreateKiteChannelCommand";
|
|
5
4
|
import { DeleteChannelCommandInput, DeleteChannelCommandOutput } from "./commands/DeleteChannelCommand";
|
|
6
5
|
import { DeleteChannelMemberCommandInput, DeleteChannelMemberCommandOutput } from "./commands/DeleteChannelMemberCommand";
|
|
7
6
|
import { DeleteMessageCommandInput, DeleteMessageCommandOutput } from "./commands/DeleteMessageCommand";
|
|
@@ -46,11 +45,11 @@ export { __Client };
|
|
|
46
45
|
/**
|
|
47
46
|
* @public
|
|
48
47
|
*/
|
|
49
|
-
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput |
|
|
48
|
+
export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | CreateGroupChannelCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DescribeEventCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetUploadedFileInfoCommandInput | HideChannelCommandInput | InviteCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelsCommandInput | ListMessageReactionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | ScheduleExternalFlagAdjustmentJobCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
|
|
50
49
|
/**
|
|
51
50
|
* @public
|
|
52
51
|
*/
|
|
53
|
-
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput |
|
|
52
|
+
export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | CreateGroupChannelCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DescribeEventCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetUploadedFileInfoCommandOutput | HideChannelCommandOutput | InviteCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelsCommandOutput | ListMessageReactionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | ScheduleExternalFlagAdjustmentJobCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
|
|
54
53
|
/**
|
|
55
54
|
* @public
|
|
56
55
|
*/
|
|
@@ -525,12 +525,6 @@ declare const DescribeEventCommand_base: {
|
|
|
525
525
|
* // forwardEmail: "STRING_VALUE",
|
|
526
526
|
* // forwardName: "STRING_VALUE",
|
|
527
527
|
* // },
|
|
528
|
-
* // predefinedReplies: [ // MessagePredefinedRepliesList
|
|
529
|
-
* // { // MessagePredefinedReply
|
|
530
|
-
* // text: "STRING_VALUE", // required
|
|
531
|
-
* // label: "STRING_VALUE",
|
|
532
|
-
* // },
|
|
533
|
-
* // ],
|
|
534
528
|
* // type: "regular" || "system", // required
|
|
535
529
|
* // giphy: {
|
|
536
530
|
* // id: "STRING_VALUE", // required
|
|
@@ -629,12 +623,6 @@ declare const DescribeEventCommand_base: {
|
|
|
629
623
|
* // forwardEmail: "STRING_VALUE",
|
|
630
624
|
* // forwardName: "STRING_VALUE",
|
|
631
625
|
* // },
|
|
632
|
-
* // predefinedReplies: [
|
|
633
|
-
* // {
|
|
634
|
-
* // text: "STRING_VALUE", // required
|
|
635
|
-
* // label: "STRING_VALUE",
|
|
636
|
-
* // },
|
|
637
|
-
* // ],
|
|
638
626
|
* // type: "regular" || "system", // required
|
|
639
627
|
* // giphy: {
|
|
640
628
|
* // id: "STRING_VALUE", // required
|
|
@@ -717,12 +705,6 @@ declare const DescribeEventCommand_base: {
|
|
|
717
705
|
* // updatedAt: "STRING_VALUE",
|
|
718
706
|
* // },
|
|
719
707
|
* // forward: "<MessageForward>",
|
|
720
|
-
* // predefinedReplies: [
|
|
721
|
-
* // {
|
|
722
|
-
* // text: "STRING_VALUE", // required
|
|
723
|
-
* // label: "STRING_VALUE",
|
|
724
|
-
* // },
|
|
725
|
-
* // ],
|
|
726
708
|
* // type: "regular" || "system", // required
|
|
727
709
|
* // giphy: "<MessageGiphy>",
|
|
728
710
|
* // silent: true || false,
|
|
@@ -777,12 +759,6 @@ declare const DescribeEventCommand_base: {
|
|
|
777
759
|
* // updatedAt: "STRING_VALUE",
|
|
778
760
|
* // },
|
|
779
761
|
* // forward: "<MessageForward>",
|
|
780
|
-
* // predefinedReplies: [
|
|
781
|
-
* // {
|
|
782
|
-
* // text: "STRING_VALUE", // required
|
|
783
|
-
* // label: "STRING_VALUE",
|
|
784
|
-
* // },
|
|
785
|
-
* // ],
|
|
786
762
|
* // type: "regular" || "system", // required
|
|
787
763
|
* // giphy: "<MessageGiphy>",
|
|
788
764
|
* // silent: true || false,
|
|
@@ -843,12 +819,6 @@ declare const DescribeEventCommand_base: {
|
|
|
843
819
|
* // updatedAt: "STRING_VALUE",
|
|
844
820
|
* // },
|
|
845
821
|
* // forward: "<MessageForward>",
|
|
846
|
-
* // predefinedReplies: [
|
|
847
|
-
* // {
|
|
848
|
-
* // text: "STRING_VALUE", // required
|
|
849
|
-
* // label: "STRING_VALUE",
|
|
850
|
-
* // },
|
|
851
|
-
* // ],
|
|
852
822
|
* // type: "regular" || "system", // required
|
|
853
823
|
* // giphy: "<MessageGiphy>",
|
|
854
824
|
* // silent: true || false,
|
|
@@ -131,12 +131,6 @@ declare const GetMessageCommand_base: {
|
|
|
131
131
|
* // forwardEmail: "STRING_VALUE",
|
|
132
132
|
* // forwardName: "STRING_VALUE",
|
|
133
133
|
* // },
|
|
134
|
-
* // predefinedReplies: [ // MessagePredefinedRepliesList
|
|
135
|
-
* // { // MessagePredefinedReply
|
|
136
|
-
* // text: "STRING_VALUE", // required
|
|
137
|
-
* // label: "STRING_VALUE",
|
|
138
|
-
* // },
|
|
139
|
-
* // ],
|
|
140
134
|
* // type: "regular" || "system", // required
|
|
141
135
|
* // giphy: {
|
|
142
136
|
* // id: "STRING_VALUE", // required
|
|
@@ -133,12 +133,6 @@ declare const ListMessagesCommand_base: {
|
|
|
133
133
|
* // forwardEmail: "STRING_VALUE",
|
|
134
134
|
* // forwardName: "STRING_VALUE",
|
|
135
135
|
* // },
|
|
136
|
-
* // predefinedReplies: [ // MessagePredefinedRepliesList
|
|
137
|
-
* // { // MessagePredefinedReply
|
|
138
|
-
* // text: "STRING_VALUE", // required
|
|
139
|
-
* // label: "STRING_VALUE",
|
|
140
|
-
* // },
|
|
141
|
-
* // ],
|
|
142
136
|
* // type: "regular" || "system", // required
|
|
143
137
|
* // giphy: {
|
|
144
138
|
* // id: "STRING_VALUE", // required
|