@wildix/xbees-conversations-client 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist-cjs/Conversations.js +14 -0
  2. package/dist-cjs/commands/CreateKiteChannelCommand.js +21 -0
  3. package/dist-cjs/commands/GetActionTriggerResultCommand.js +21 -0
  4. package/dist-cjs/commands/ListPinnedMessagesCommand.js +21 -0
  5. package/dist-cjs/commands/PinMessageCommand.js +21 -0
  6. package/dist-cjs/commands/SendActionTriggerResultCommand.js +21 -0
  7. package/dist-cjs/commands/TriggerMessageActionCommand.js +21 -0
  8. package/dist-cjs/commands/UnpinMessageCommand.js +21 -0
  9. package/dist-cjs/commands/index.js +7 -0
  10. package/dist-cjs/models/models_0.js +107 -12
  11. package/dist-cjs/protocols/Aws_restJson1.js +302 -2
  12. package/dist-es/Conversations.js +14 -0
  13. package/dist-es/commands/CreateKiteChannelCommand.js +17 -0
  14. package/dist-es/commands/GetActionTriggerResultCommand.js +17 -0
  15. package/dist-es/commands/ListPinnedMessagesCommand.js +17 -0
  16. package/dist-es/commands/PinMessageCommand.js +17 -0
  17. package/dist-es/commands/SendActionTriggerResultCommand.js +17 -0
  18. package/dist-es/commands/TriggerMessageActionCommand.js +17 -0
  19. package/dist-es/commands/UnpinMessageCommand.js +17 -0
  20. package/dist-es/commands/index.js +7 -0
  21. package/dist-es/models/models_0.js +102 -11
  22. package/dist-es/protocols/Aws_restJson1.js +286 -1
  23. package/dist-types/Conversations.d.ts +49 -0
  24. package/dist-types/ConversationsClient.d.ts +9 -2
  25. package/dist-types/commands/CreateKiteChannelCommand.d.ts +240 -0
  26. package/dist-types/commands/DescribeEventCommand.d.ts +144 -9
  27. package/dist-types/commands/GetActionTriggerResultCommand.d.ts +70 -0
  28. package/dist-types/commands/GetMessageCommand.d.ts +24 -0
  29. package/dist-types/commands/ListMessagesCommand.d.ts +24 -0
  30. package/dist-types/commands/ListPinnedMessagesCommand.d.ts +224 -0
  31. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +53 -1
  32. package/dist-types/commands/PinMessageCommand.d.ts +73 -0
  33. package/dist-types/commands/SendActionTriggerResultCommand.d.ts +68 -0
  34. package/dist-types/commands/SendGiphyCommand.d.ts +24 -0
  35. package/dist-types/commands/SendMessageCommand.d.ts +48 -0
  36. package/dist-types/commands/TriggerMessageActionCommand.d.ts +75 -0
  37. package/dist-types/commands/UnpinMessageCommand.d.ts +71 -0
  38. package/dist-types/commands/UpdateMessageCommand.d.ts +49 -0
  39. package/dist-types/commands/index.d.ts +7 -0
  40. package/dist-types/models/models_0.d.ts +578 -102
  41. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  43. package/dist-types/runtimeConfig.d.ts +1 -0
  44. package/dist-types/runtimeConfig.native.d.ts +1 -0
  45. package/package.json +1 -1
@@ -6,12 +6,14 @@ const AddChannelMemberCommand_1 = require("./commands/AddChannelMemberCommand");
6
6
  const AddChannelMembersCommand_1 = require("./commands/AddChannelMembersCommand");
7
7
  const CreateGroupChannelCommand_1 = require("./commands/CreateGroupChannelCommand");
8
8
  const CreateInboxTagCommand_1 = require("./commands/CreateInboxTagCommand");
9
+ const CreateKiteChannelCommand_1 = require("./commands/CreateKiteChannelCommand");
9
10
  const DeleteChannelCommand_1 = require("./commands/DeleteChannelCommand");
10
11
  const DeleteChannelMemberCommand_1 = require("./commands/DeleteChannelMemberCommand");
11
12
  const DeleteInboxTagCommand_1 = require("./commands/DeleteInboxTagCommand");
12
13
  const DeleteMessageCommand_1 = require("./commands/DeleteMessageCommand");
13
14
  const DeleteMessageReactionCommand_1 = require("./commands/DeleteMessageReactionCommand");
14
15
  const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
16
+ const GetActionTriggerResultCommand_1 = require("./commands/GetActionTriggerResultCommand");
15
17
  const GetChannelCommand_1 = require("./commands/GetChannelCommand");
16
18
  const GetChannelMemberCommand_1 = require("./commands/GetChannelMemberCommand");
17
19
  const GetDirectChannelIdCommand_1 = require("./commands/GetDirectChannelIdCommand");
@@ -30,12 +32,15 @@ const ListInboxTaggedChannelsCommand_1 = require("./commands/ListInboxTaggedChan
30
32
  const ListInboxTagsCommand_1 = require("./commands/ListInboxTagsCommand");
31
33
  const ListMessageReactionsCommand_1 = require("./commands/ListMessageReactionsCommand");
32
34
  const ListMessagesCommand_1 = require("./commands/ListMessagesCommand");
35
+ const ListPinnedMessagesCommand_1 = require("./commands/ListPinnedMessagesCommand");
33
36
  const MarkReadCommand_1 = require("./commands/MarkReadCommand");
34
37
  const MarkUnreadCommand_1 = require("./commands/MarkUnreadCommand");
35
38
  const PartialUpdateChannelCommand_1 = require("./commands/PartialUpdateChannelCommand");
36
39
  const PartialUpdateMessageCommand_1 = require("./commands/PartialUpdateMessageCommand");
37
40
  const PinChannelCommand_1 = require("./commands/PinChannelCommand");
41
+ const PinMessageCommand_1 = require("./commands/PinMessageCommand");
38
42
  const ScheduleExternalFlagAdjustmentJobCommand_1 = require("./commands/ScheduleExternalFlagAdjustmentJobCommand");
43
+ const SendActionTriggerResultCommand_1 = require("./commands/SendActionTriggerResultCommand");
39
44
  const SendGiphyCommand_1 = require("./commands/SendGiphyCommand");
40
45
  const SendMessageCommand_1 = require("./commands/SendMessageCommand");
41
46
  const SendMessageReactionCommand_1 = require("./commands/SendMessageReactionCommand");
@@ -43,7 +48,9 @@ const SendTypingStartCommand_1 = require("./commands/SendTypingStartCommand");
43
48
  const SendTypingStopCommand_1 = require("./commands/SendTypingStopCommand");
44
49
  const ShowChannelCommand_1 = require("./commands/ShowChannelCommand");
45
50
  const TagChannelCommand_1 = require("./commands/TagChannelCommand");
51
+ const TriggerMessageActionCommand_1 = require("./commands/TriggerMessageActionCommand");
46
52
  const UnpinChannelCommand_1 = require("./commands/UnpinChannelCommand");
53
+ const UnpinMessageCommand_1 = require("./commands/UnpinMessageCommand");
47
54
  const UntagChannelCommand_1 = require("./commands/UntagChannelCommand");
48
55
  const UpdateChannelCommand_1 = require("./commands/UpdateChannelCommand");
49
56
  const UpdateInboxTagCommand_1 = require("./commands/UpdateInboxTagCommand");
@@ -55,12 +62,14 @@ const commands = {
55
62
  AddChannelMembersCommand: AddChannelMembersCommand_1.AddChannelMembersCommand,
56
63
  CreateGroupChannelCommand: CreateGroupChannelCommand_1.CreateGroupChannelCommand,
57
64
  CreateInboxTagCommand: CreateInboxTagCommand_1.CreateInboxTagCommand,
65
+ CreateKiteChannelCommand: CreateKiteChannelCommand_1.CreateKiteChannelCommand,
58
66
  DeleteChannelCommand: DeleteChannelCommand_1.DeleteChannelCommand,
59
67
  DeleteChannelMemberCommand: DeleteChannelMemberCommand_1.DeleteChannelMemberCommand,
60
68
  DeleteInboxTagCommand: DeleteInboxTagCommand_1.DeleteInboxTagCommand,
61
69
  DeleteMessageCommand: DeleteMessageCommand_1.DeleteMessageCommand,
62
70
  DeleteMessageReactionCommand: DeleteMessageReactionCommand_1.DeleteMessageReactionCommand,
63
71
  DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
72
+ GetActionTriggerResultCommand: GetActionTriggerResultCommand_1.GetActionTriggerResultCommand,
64
73
  GetChannelCommand: GetChannelCommand_1.GetChannelCommand,
65
74
  GetChannelMemberCommand: GetChannelMemberCommand_1.GetChannelMemberCommand,
66
75
  GetDirectChannelIdCommand: GetDirectChannelIdCommand_1.GetDirectChannelIdCommand,
@@ -79,12 +88,15 @@ const commands = {
79
88
  ListInboxTagsCommand: ListInboxTagsCommand_1.ListInboxTagsCommand,
80
89
  ListMessageReactionsCommand: ListMessageReactionsCommand_1.ListMessageReactionsCommand,
81
90
  ListMessagesCommand: ListMessagesCommand_1.ListMessagesCommand,
91
+ ListPinnedMessagesCommand: ListPinnedMessagesCommand_1.ListPinnedMessagesCommand,
82
92
  MarkReadCommand: MarkReadCommand_1.MarkReadCommand,
83
93
  MarkUnreadCommand: MarkUnreadCommand_1.MarkUnreadCommand,
84
94
  PartialUpdateChannelCommand: PartialUpdateChannelCommand_1.PartialUpdateChannelCommand,
85
95
  PartialUpdateMessageCommand: PartialUpdateMessageCommand_1.PartialUpdateMessageCommand,
86
96
  PinChannelCommand: PinChannelCommand_1.PinChannelCommand,
97
+ PinMessageCommand: PinMessageCommand_1.PinMessageCommand,
87
98
  ScheduleExternalFlagAdjustmentJobCommand: ScheduleExternalFlagAdjustmentJobCommand_1.ScheduleExternalFlagAdjustmentJobCommand,
99
+ SendActionTriggerResultCommand: SendActionTriggerResultCommand_1.SendActionTriggerResultCommand,
88
100
  SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
89
101
  SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
90
102
  SendMessageReactionCommand: SendMessageReactionCommand_1.SendMessageReactionCommand,
@@ -92,7 +104,9 @@ const commands = {
92
104
  SendTypingStopCommand: SendTypingStopCommand_1.SendTypingStopCommand,
93
105
  ShowChannelCommand: ShowChannelCommand_1.ShowChannelCommand,
94
106
  TagChannelCommand: TagChannelCommand_1.TagChannelCommand,
107
+ TriggerMessageActionCommand: TriggerMessageActionCommand_1.TriggerMessageActionCommand,
95
108
  UnpinChannelCommand: UnpinChannelCommand_1.UnpinChannelCommand,
109
+ UnpinMessageCommand: UnpinMessageCommand_1.UnpinMessageCommand,
96
110
  UntagChannelCommand: UntagChannelCommand_1.UntagChannelCommand,
97
111
  UpdateChannelCommand: UpdateChannelCommand_1.UpdateChannelCommand,
98
112
  UpdateInboxTagCommand: UpdateInboxTagCommand_1.UpdateInboxTagCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateKiteChannelCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class CreateKiteChannelCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "CreateKiteChannel", {})
15
+ .n("ConversationsClient", "CreateKiteChannelCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreateKiteChannelCommand)
18
+ .de(Aws_restJson1_1.de_CreateKiteChannelCommand)
19
+ .build() {
20
+ }
21
+ exports.CreateKiteChannelCommand = CreateKiteChannelCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetActionTriggerResultCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetActionTriggerResultCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "GetActionTriggerResult", {})
15
+ .n("ConversationsClient", "GetActionTriggerResultCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetActionTriggerResultCommand)
18
+ .de(Aws_restJson1_1.de_GetActionTriggerResultCommand)
19
+ .build() {
20
+ }
21
+ exports.GetActionTriggerResultCommand = GetActionTriggerResultCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListPinnedMessagesCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class ListPinnedMessagesCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "ListPinnedMessages", {})
15
+ .n("ConversationsClient", "ListPinnedMessagesCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_ListPinnedMessagesCommand)
18
+ .de(Aws_restJson1_1.de_ListPinnedMessagesCommand)
19
+ .build() {
20
+ }
21
+ exports.ListPinnedMessagesCommand = ListPinnedMessagesCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PinMessageCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class PinMessageCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "PinMessage", {})
15
+ .n("ConversationsClient", "PinMessageCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_PinMessageCommand)
18
+ .de(Aws_restJson1_1.de_PinMessageCommand)
19
+ .build() {
20
+ }
21
+ exports.PinMessageCommand = PinMessageCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SendActionTriggerResultCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class SendActionTriggerResultCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "SendActionTriggerResult", {})
15
+ .n("ConversationsClient", "SendActionTriggerResultCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_SendActionTriggerResultCommand)
18
+ .de(Aws_restJson1_1.de_SendActionTriggerResultCommand)
19
+ .build() {
20
+ }
21
+ exports.SendActionTriggerResultCommand = SendActionTriggerResultCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TriggerMessageActionCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class TriggerMessageActionCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "TriggerMessageAction", {})
15
+ .n("ConversationsClient", "TriggerMessageActionCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_TriggerMessageActionCommand)
18
+ .de(Aws_restJson1_1.de_TriggerMessageActionCommand)
19
+ .build() {
20
+ }
21
+ exports.TriggerMessageActionCommand = TriggerMessageActionCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UnpinMessageCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class UnpinMessageCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Conversations", "UnpinMessage", {})
15
+ .n("ConversationsClient", "UnpinMessageCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_UnpinMessageCommand)
18
+ .de(Aws_restJson1_1.de_UnpinMessageCommand)
19
+ .build() {
20
+ }
21
+ exports.UnpinMessageCommand = UnpinMessageCommand;
@@ -5,12 +5,14 @@ tslib_1.__exportStar(require("./AddChannelMemberCommand"), exports);
5
5
  tslib_1.__exportStar(require("./AddChannelMembersCommand"), exports);
6
6
  tslib_1.__exportStar(require("./CreateGroupChannelCommand"), exports);
7
7
  tslib_1.__exportStar(require("./CreateInboxTagCommand"), exports);
8
+ tslib_1.__exportStar(require("./CreateKiteChannelCommand"), exports);
8
9
  tslib_1.__exportStar(require("./DeleteChannelCommand"), exports);
9
10
  tslib_1.__exportStar(require("./DeleteChannelMemberCommand"), exports);
10
11
  tslib_1.__exportStar(require("./DeleteInboxTagCommand"), exports);
11
12
  tslib_1.__exportStar(require("./DeleteMessageCommand"), exports);
12
13
  tslib_1.__exportStar(require("./DeleteMessageReactionCommand"), exports);
13
14
  tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
15
+ tslib_1.__exportStar(require("./GetActionTriggerResultCommand"), exports);
14
16
  tslib_1.__exportStar(require("./GetChannelCommand"), exports);
15
17
  tslib_1.__exportStar(require("./GetChannelMemberCommand"), exports);
16
18
  tslib_1.__exportStar(require("./GetDirectChannelIdCommand"), exports);
@@ -29,12 +31,15 @@ tslib_1.__exportStar(require("./ListInboxTaggedChannelsCommand"), exports);
29
31
  tslib_1.__exportStar(require("./ListInboxTagsCommand"), exports);
30
32
  tslib_1.__exportStar(require("./ListMessageReactionsCommand"), exports);
31
33
  tslib_1.__exportStar(require("./ListMessagesCommand"), exports);
34
+ tslib_1.__exportStar(require("./ListPinnedMessagesCommand"), exports);
32
35
  tslib_1.__exportStar(require("./MarkReadCommand"), exports);
33
36
  tslib_1.__exportStar(require("./MarkUnreadCommand"), exports);
34
37
  tslib_1.__exportStar(require("./PartialUpdateChannelCommand"), exports);
35
38
  tslib_1.__exportStar(require("./PartialUpdateMessageCommand"), exports);
36
39
  tslib_1.__exportStar(require("./PinChannelCommand"), exports);
40
+ tslib_1.__exportStar(require("./PinMessageCommand"), exports);
37
41
  tslib_1.__exportStar(require("./ScheduleExternalFlagAdjustmentJobCommand"), exports);
42
+ tslib_1.__exportStar(require("./SendActionTriggerResultCommand"), exports);
38
43
  tslib_1.__exportStar(require("./SendGiphyCommand"), exports);
39
44
  tslib_1.__exportStar(require("./SendMessageCommand"), exports);
40
45
  tslib_1.__exportStar(require("./SendMessageReactionCommand"), exports);
@@ -42,7 +47,9 @@ tslib_1.__exportStar(require("./SendTypingStartCommand"), exports);
42
47
  tslib_1.__exportStar(require("./SendTypingStopCommand"), exports);
43
48
  tslib_1.__exportStar(require("./ShowChannelCommand"), exports);
44
49
  tslib_1.__exportStar(require("./TagChannelCommand"), exports);
50
+ tslib_1.__exportStar(require("./TriggerMessageActionCommand"), exports);
45
51
  tslib_1.__exportStar(require("./UnpinChannelCommand"), exports);
52
+ tslib_1.__exportStar(require("./UnpinMessageCommand"), exports);
46
53
  tslib_1.__exportStar(require("./UntagChannelCommand"), exports);
47
54
  tslib_1.__exportStar(require("./UpdateChannelCommand"), exports);
48
55
  tslib_1.__exportStar(require("./UpdateInboxTagCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelType = exports.FileNotFoundException = exports.ConversationFileCategory = exports.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.MessageActionNotFoundException = exports.TaggedChannelsLimitReachedException = exports.ConversationsServiceException = exports.PinnedChannelsLimitReachedException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MarkUnreadChannelsLimitReachedException = exports.TagNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TargetNotFoundException = exports.TargetNotEligibleException = exports.TargetNotEligibleReason = exports.Element = exports.TagsLimitReachedException = exports.ChannelAlreadyExistException = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = 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
  constructor(opts) {
@@ -67,6 +67,34 @@ exports.ChannelType = {
67
67
  DIRECT: "direct",
68
68
  GROUP: "group",
69
69
  };
70
+ var ButtonHandler;
71
+ (function (ButtonHandler) {
72
+ ButtonHandler.visit = (value, visitor) => {
73
+ if (value.link !== undefined)
74
+ return visitor.link(value.link);
75
+ if (value.reply !== undefined)
76
+ return visitor.reply(value.reply);
77
+ if (value.action !== undefined)
78
+ return visitor.action(value.action);
79
+ return visitor._(value.$unknown[0], value.$unknown[1]);
80
+ };
81
+ })(ButtonHandler = exports.ButtonHandler || (exports.ButtonHandler = {}));
82
+ exports.ButtonVariant = {
83
+ CONTAINED: "contained",
84
+ OUTLINED: "outlined",
85
+ };
86
+ var ActionElement;
87
+ (function (ActionElement) {
88
+ ActionElement.visit = (value, visitor) => {
89
+ if (value.button !== undefined)
90
+ return visitor.button(value.button);
91
+ return visitor._(value.$unknown[0], value.$unknown[1]);
92
+ };
93
+ })(ActionElement = exports.ActionElement || (exports.ActionElement = {}));
94
+ exports.ActionTriggerStatus = {
95
+ COMPLETED: "completed",
96
+ PENDING: "pending",
97
+ };
70
98
  exports.ChannelMemberRole = {
71
99
  MEMBER: "member",
72
100
  SUPERVISOR: "supervisor",
@@ -139,6 +167,44 @@ class TagsLimitReachedException extends ConversationsServiceException_1.Conversa
139
167
  }
140
168
  }
141
169
  exports.TagsLimitReachedException = TagsLimitReachedException;
170
+ var Element;
171
+ (function (Element) {
172
+ Element.visit = (value, visitor) => {
173
+ if (value.actions !== undefined)
174
+ return visitor.actions(value.actions);
175
+ return visitor._(value.$unknown[0], value.$unknown[1]);
176
+ };
177
+ })(Element = exports.Element || (exports.Element = {}));
178
+ exports.TargetNotEligibleReason = {
179
+ NO_LICENSE: "no_license",
180
+ };
181
+ class TargetNotEligibleException extends ConversationsServiceException_1.ConversationsServiceException {
182
+ constructor(opts) {
183
+ super({
184
+ name: "TargetNotEligibleException",
185
+ $fault: "client",
186
+ ...opts
187
+ });
188
+ this.name = "TargetNotEligibleException";
189
+ this.$fault = "client";
190
+ Object.setPrototypeOf(this, TargetNotEligibleException.prototype);
191
+ this.reason = opts.reason;
192
+ }
193
+ }
194
+ exports.TargetNotEligibleException = TargetNotEligibleException;
195
+ class TargetNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
196
+ constructor(opts) {
197
+ super({
198
+ name: "TargetNotFoundException",
199
+ $fault: "client",
200
+ ...opts
201
+ });
202
+ this.name = "TargetNotFoundException";
203
+ this.$fault = "client";
204
+ Object.setPrototypeOf(this, TargetNotFoundException.prototype);
205
+ }
206
+ }
207
+ exports.TargetNotFoundException = TargetNotFoundException;
142
208
  class MemberNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
143
209
  constructor(opts) {
144
210
  super({
@@ -176,17 +242,6 @@ exports.ReactionType = {
176
242
  THUMBSUP: "thumbsup",
177
243
  WHITE_CHECK_MARK: "white_check_mark",
178
244
  };
179
- exports.WebhookEventType = {
180
- CHANNEL_CREATED: "chat:channel:created",
181
- CHANNEL_UPDATED: "chat:channel:updated",
182
- MEMBER_ADDED: "chat:member:added",
183
- MEMBER_REMOVED: "chat:member:removed",
184
- MESSAGE_DELETED: "chat:message:deleted",
185
- MESSAGE_NEW: "chat:message:new",
186
- MESSAGE_UPDATED: "chat:message:updated",
187
- REACTION_DELETED: "chat:reaction:deleted",
188
- REACTION_NEW: "chat:reaction:new",
189
- };
190
245
  exports.MessageSmsStatus = {
191
246
  DELIVERED: "delivered",
192
247
  ERROR: "error",
@@ -203,6 +258,31 @@ exports.MessageWhatsAppStatus = {
203
258
  SENT: "sent",
204
259
  TRYING: "trying",
205
260
  };
261
+ exports.WebhookEventType = {
262
+ ACTION_TRIGGERED: "chat:action:triggered",
263
+ CHANNEL_CREATED: "chat:channel:created",
264
+ CHANNEL_UPDATED: "chat:channel:updated",
265
+ MEMBER_ADDED: "chat:member:added",
266
+ MEMBER_REMOVED: "chat:member:removed",
267
+ MESSAGE_DELETED: "chat:message:deleted",
268
+ MESSAGE_NEW: "chat:message:new",
269
+ MESSAGE_UPDATED: "chat:message:updated",
270
+ REACTION_DELETED: "chat:reaction:deleted",
271
+ REACTION_NEW: "chat:reaction:new",
272
+ };
273
+ class TriggerNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
274
+ constructor(opts) {
275
+ super({
276
+ name: "TriggerNotFoundException",
277
+ $fault: "client",
278
+ ...opts
279
+ });
280
+ this.name = "TriggerNotFoundException";
281
+ this.$fault = "client";
282
+ Object.setPrototypeOf(this, TriggerNotFoundException.prototype);
283
+ }
284
+ }
285
+ exports.TriggerNotFoundException = TriggerNotFoundException;
206
286
  class TagNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
207
287
  constructor(opts) {
208
288
  super({
@@ -239,7 +319,9 @@ exports.GroupChannelUnsetOptions = {
239
319
  };
240
320
  exports.MessageUnsetFields = {
241
321
  ATTACHMENTS: "attachments",
322
+ ELEMENTS: "elements",
242
323
  FORWARD: "forward",
324
+ MENTIONS: "mentions",
243
325
  QUOTE: "quote",
244
326
  TEXT: "text",
245
327
  };
@@ -282,3 +364,16 @@ class TaggedChannelsLimitReachedException extends ConversationsServiceException_
282
364
  }
283
365
  }
284
366
  exports.TaggedChannelsLimitReachedException = TaggedChannelsLimitReachedException;
367
+ class MessageActionNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
368
+ constructor(opts) {
369
+ super({
370
+ name: "MessageActionNotFoundException",
371
+ $fault: "client",
372
+ ...opts
373
+ });
374
+ this.name = "MessageActionNotFoundException";
375
+ this.$fault = "client";
376
+ Object.setPrototypeOf(this, MessageActionNotFoundException.prototype);
377
+ }
378
+ }
379
+ exports.MessageActionNotFoundException = MessageActionNotFoundException;