@wildix/xbees-conversations-client 1.0.65 → 1.1.0

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 (42) hide show
  1. package/dist-cjs/Conversations.js +0 -12
  2. package/dist-cjs/commands/index.js +0 -6
  3. package/dist-cjs/models/models_0.js +30 -105
  4. package/dist-cjs/protocols/Aws_restJson1.js +2 -230
  5. package/dist-es/Conversations.js +0 -12
  6. package/dist-es/commands/index.js +0 -6
  7. package/dist-es/models/models_0.js +28 -101
  8. package/dist-es/protocols/Aws_restJson1.js +1 -216
  9. package/dist-types/Conversations.d.ts +0 -42
  10. package/dist-types/ConversationsClient.d.ts +2 -8
  11. package/dist-types/commands/DescribeEventCommand.d.ts +19 -274
  12. package/dist-types/commands/GetMessageCommand.d.ts +23 -84
  13. package/dist-types/commands/ListMessagesCommand.d.ts +23 -84
  14. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +47 -173
  15. package/dist-types/commands/SendGiphyCommand.d.ts +23 -84
  16. package/dist-types/commands/SendMessageCommand.d.ts +46 -168
  17. package/dist-types/commands/UpdateMessageCommand.d.ts +46 -169
  18. package/dist-types/commands/index.d.ts +0 -6
  19. package/dist-types/models/models_0.d.ts +91 -604
  20. package/dist-types/protocols/Aws_restJson1.d.ts +0 -54
  21. package/dist-types/runtimeConfig.browser.d.ts +0 -1
  22. package/dist-types/runtimeConfig.d.ts +0 -1
  23. package/dist-types/runtimeConfig.native.d.ts +0 -1
  24. package/package.json +1 -1
  25. package/dist-cjs/commands/GetActionTriggerResultCommand.js +0 -21
  26. package/dist-cjs/commands/ListPinnedMessagesCommand.js +0 -21
  27. package/dist-cjs/commands/PinMessageCommand.js +0 -21
  28. package/dist-cjs/commands/SendActionTriggerResultCommand.js +0 -21
  29. package/dist-cjs/commands/TriggerMessageActionCommand.js +0 -21
  30. package/dist-cjs/commands/UnpinMessageCommand.js +0 -21
  31. package/dist-es/commands/GetActionTriggerResultCommand.js +0 -17
  32. package/dist-es/commands/ListPinnedMessagesCommand.js +0 -17
  33. package/dist-es/commands/PinMessageCommand.js +0 -17
  34. package/dist-es/commands/SendActionTriggerResultCommand.js +0 -17
  35. package/dist-es/commands/TriggerMessageActionCommand.js +0 -17
  36. package/dist-es/commands/UnpinMessageCommand.js +0 -17
  37. package/dist-types/commands/GetActionTriggerResultCommand.d.ts +0 -70
  38. package/dist-types/commands/ListPinnedMessagesCommand.d.ts +0 -261
  39. package/dist-types/commands/PinMessageCommand.d.ts +0 -73
  40. package/dist-types/commands/SendActionTriggerResultCommand.d.ts +0 -68
  41. package/dist-types/commands/TriggerMessageActionCommand.d.ts +0 -75
  42. package/dist-types/commands/UnpinMessageCommand.d.ts +0 -71
@@ -12,7 +12,6 @@ const DeleteInboxTagCommand_1 = require("./commands/DeleteInboxTagCommand");
12
12
  const DeleteMessageCommand_1 = require("./commands/DeleteMessageCommand");
13
13
  const DeleteMessageReactionCommand_1 = require("./commands/DeleteMessageReactionCommand");
14
14
  const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
15
- const GetActionTriggerResultCommand_1 = require("./commands/GetActionTriggerResultCommand");
16
15
  const GetChannelCommand_1 = require("./commands/GetChannelCommand");
17
16
  const GetChannelMemberCommand_1 = require("./commands/GetChannelMemberCommand");
18
17
  const GetDirectChannelIdCommand_1 = require("./commands/GetDirectChannelIdCommand");
@@ -31,15 +30,12 @@ const ListInboxTaggedChannelsCommand_1 = require("./commands/ListInboxTaggedChan
31
30
  const ListInboxTagsCommand_1 = require("./commands/ListInboxTagsCommand");
32
31
  const ListMessageReactionsCommand_1 = require("./commands/ListMessageReactionsCommand");
33
32
  const ListMessagesCommand_1 = require("./commands/ListMessagesCommand");
34
- const ListPinnedMessagesCommand_1 = require("./commands/ListPinnedMessagesCommand");
35
33
  const MarkReadCommand_1 = require("./commands/MarkReadCommand");
36
34
  const MarkUnreadCommand_1 = require("./commands/MarkUnreadCommand");
37
35
  const PartialUpdateChannelCommand_1 = require("./commands/PartialUpdateChannelCommand");
38
36
  const PartialUpdateMessageCommand_1 = require("./commands/PartialUpdateMessageCommand");
39
37
  const PinChannelCommand_1 = require("./commands/PinChannelCommand");
40
- const PinMessageCommand_1 = require("./commands/PinMessageCommand");
41
38
  const ScheduleExternalFlagAdjustmentJobCommand_1 = require("./commands/ScheduleExternalFlagAdjustmentJobCommand");
42
- const SendActionTriggerResultCommand_1 = require("./commands/SendActionTriggerResultCommand");
43
39
  const SendGiphyCommand_1 = require("./commands/SendGiphyCommand");
44
40
  const SendMessageCommand_1 = require("./commands/SendMessageCommand");
45
41
  const SendMessageReactionCommand_1 = require("./commands/SendMessageReactionCommand");
@@ -47,9 +43,7 @@ const SendTypingStartCommand_1 = require("./commands/SendTypingStartCommand");
47
43
  const SendTypingStopCommand_1 = require("./commands/SendTypingStopCommand");
48
44
  const ShowChannelCommand_1 = require("./commands/ShowChannelCommand");
49
45
  const TagChannelCommand_1 = require("./commands/TagChannelCommand");
50
- const TriggerMessageActionCommand_1 = require("./commands/TriggerMessageActionCommand");
51
46
  const UnpinChannelCommand_1 = require("./commands/UnpinChannelCommand");
52
- const UnpinMessageCommand_1 = require("./commands/UnpinMessageCommand");
53
47
  const UntagChannelCommand_1 = require("./commands/UntagChannelCommand");
54
48
  const UpdateChannelCommand_1 = require("./commands/UpdateChannelCommand");
55
49
  const UpdateInboxTagCommand_1 = require("./commands/UpdateInboxTagCommand");
@@ -67,7 +61,6 @@ const commands = {
67
61
  DeleteMessageCommand: DeleteMessageCommand_1.DeleteMessageCommand,
68
62
  DeleteMessageReactionCommand: DeleteMessageReactionCommand_1.DeleteMessageReactionCommand,
69
63
  DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
70
- GetActionTriggerResultCommand: GetActionTriggerResultCommand_1.GetActionTriggerResultCommand,
71
64
  GetChannelCommand: GetChannelCommand_1.GetChannelCommand,
72
65
  GetChannelMemberCommand: GetChannelMemberCommand_1.GetChannelMemberCommand,
73
66
  GetDirectChannelIdCommand: GetDirectChannelIdCommand_1.GetDirectChannelIdCommand,
@@ -86,15 +79,12 @@ const commands = {
86
79
  ListInboxTagsCommand: ListInboxTagsCommand_1.ListInboxTagsCommand,
87
80
  ListMessageReactionsCommand: ListMessageReactionsCommand_1.ListMessageReactionsCommand,
88
81
  ListMessagesCommand: ListMessagesCommand_1.ListMessagesCommand,
89
- ListPinnedMessagesCommand: ListPinnedMessagesCommand_1.ListPinnedMessagesCommand,
90
82
  MarkReadCommand: MarkReadCommand_1.MarkReadCommand,
91
83
  MarkUnreadCommand: MarkUnreadCommand_1.MarkUnreadCommand,
92
84
  PartialUpdateChannelCommand: PartialUpdateChannelCommand_1.PartialUpdateChannelCommand,
93
85
  PartialUpdateMessageCommand: PartialUpdateMessageCommand_1.PartialUpdateMessageCommand,
94
86
  PinChannelCommand: PinChannelCommand_1.PinChannelCommand,
95
- PinMessageCommand: PinMessageCommand_1.PinMessageCommand,
96
87
  ScheduleExternalFlagAdjustmentJobCommand: ScheduleExternalFlagAdjustmentJobCommand_1.ScheduleExternalFlagAdjustmentJobCommand,
97
- SendActionTriggerResultCommand: SendActionTriggerResultCommand_1.SendActionTriggerResultCommand,
98
88
  SendGiphyCommand: SendGiphyCommand_1.SendGiphyCommand,
99
89
  SendMessageCommand: SendMessageCommand_1.SendMessageCommand,
100
90
  SendMessageReactionCommand: SendMessageReactionCommand_1.SendMessageReactionCommand,
@@ -102,9 +92,7 @@ const commands = {
102
92
  SendTypingStopCommand: SendTypingStopCommand_1.SendTypingStopCommand,
103
93
  ShowChannelCommand: ShowChannelCommand_1.ShowChannelCommand,
104
94
  TagChannelCommand: TagChannelCommand_1.TagChannelCommand,
105
- TriggerMessageActionCommand: TriggerMessageActionCommand_1.TriggerMessageActionCommand,
106
95
  UnpinChannelCommand: UnpinChannelCommand_1.UnpinChannelCommand,
107
- UnpinMessageCommand: UnpinMessageCommand_1.UnpinMessageCommand,
108
96
  UntagChannelCommand: UntagChannelCommand_1.UntagChannelCommand,
109
97
  UpdateChannelCommand: UpdateChannelCommand_1.UpdateChannelCommand,
110
98
  UpdateInboxTagCommand: UpdateInboxTagCommand_1.UpdateInboxTagCommand,
@@ -11,7 +11,6 @@ tslib_1.__exportStar(require("./DeleteInboxTagCommand"), exports);
11
11
  tslib_1.__exportStar(require("./DeleteMessageCommand"), exports);
12
12
  tslib_1.__exportStar(require("./DeleteMessageReactionCommand"), exports);
13
13
  tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
14
- tslib_1.__exportStar(require("./GetActionTriggerResultCommand"), exports);
15
14
  tslib_1.__exportStar(require("./GetChannelCommand"), exports);
16
15
  tslib_1.__exportStar(require("./GetChannelMemberCommand"), exports);
17
16
  tslib_1.__exportStar(require("./GetDirectChannelIdCommand"), exports);
@@ -30,15 +29,12 @@ tslib_1.__exportStar(require("./ListInboxTaggedChannelsCommand"), exports);
30
29
  tslib_1.__exportStar(require("./ListInboxTagsCommand"), exports);
31
30
  tslib_1.__exportStar(require("./ListMessageReactionsCommand"), exports);
32
31
  tslib_1.__exportStar(require("./ListMessagesCommand"), exports);
33
- tslib_1.__exportStar(require("./ListPinnedMessagesCommand"), exports);
34
32
  tslib_1.__exportStar(require("./MarkReadCommand"), exports);
35
33
  tslib_1.__exportStar(require("./MarkUnreadCommand"), exports);
36
34
  tslib_1.__exportStar(require("./PartialUpdateChannelCommand"), exports);
37
35
  tslib_1.__exportStar(require("./PartialUpdateMessageCommand"), exports);
38
36
  tslib_1.__exportStar(require("./PinChannelCommand"), exports);
39
- tslib_1.__exportStar(require("./PinMessageCommand"), exports);
40
37
  tslib_1.__exportStar(require("./ScheduleExternalFlagAdjustmentJobCommand"), exports);
41
- tslib_1.__exportStar(require("./SendActionTriggerResultCommand"), exports);
42
38
  tslib_1.__exportStar(require("./SendGiphyCommand"), exports);
43
39
  tslib_1.__exportStar(require("./SendMessageCommand"), exports);
44
40
  tslib_1.__exportStar(require("./SendMessageReactionCommand"), exports);
@@ -46,9 +42,7 @@ tslib_1.__exportStar(require("./SendTypingStartCommand"), exports);
46
42
  tslib_1.__exportStar(require("./SendTypingStopCommand"), exports);
47
43
  tslib_1.__exportStar(require("./ShowChannelCommand"), exports);
48
44
  tslib_1.__exportStar(require("./TagChannelCommand"), exports);
49
- tslib_1.__exportStar(require("./TriggerMessageActionCommand"), exports);
50
45
  tslib_1.__exportStar(require("./UnpinChannelCommand"), exports);
51
- tslib_1.__exportStar(require("./UnpinMessageCommand"), exports);
52
46
  tslib_1.__exportStar(require("./UntagChannelCommand"), exports);
53
47
  tslib_1.__exportStar(require("./UpdateChannelCommand"), exports);
54
48
  tslib_1.__exportStar(require("./UpdateInboxTagCommand"), exports);
@@ -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.FileNotFoundException = exports.TriggerNotFoundException = exports.WebhookEventType = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.TagsLimitReachedException = exports.ConversationFileCategory = 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.RateLimitExceededException = exports.ForbiddenException = exports.ValidationException = void 0;
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;
4
4
  const ConversationsServiceException_1 = require("./ConversationsServiceException");
5
5
  class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
6
6
  constructor(opts) {
@@ -45,38 +45,28 @@ class RateLimitExceededException extends ConversationsServiceException_1.Convers
45
45
  }
46
46
  }
47
47
  exports.RateLimitExceededException = RateLimitExceededException;
48
+ exports.ConversationFileCategory = {
49
+ GENERAL: "channels",
50
+ RECORDING: "recordings",
51
+ WIZY_RECORDING: "wizyconfRecordings",
52
+ };
53
+ class FileNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
54
+ constructor(opts) {
55
+ super({
56
+ name: "FileNotFoundException",
57
+ $fault: "client",
58
+ ...opts
59
+ });
60
+ this.name = "FileNotFoundException";
61
+ this.$fault = "client";
62
+ Object.setPrototypeOf(this, FileNotFoundException.prototype);
63
+ }
64
+ }
65
+ exports.FileNotFoundException = FileNotFoundException;
48
66
  exports.ChannelType = {
49
67
  DIRECT: "direct",
50
68
  GROUP: "group",
51
69
  };
52
- var ButtonHandler;
53
- (function (ButtonHandler) {
54
- ButtonHandler.visit = (value, visitor) => {
55
- if (value.link !== undefined)
56
- return visitor.link(value.link);
57
- if (value.reply !== undefined)
58
- return visitor.reply(value.reply);
59
- if (value.action !== undefined)
60
- return visitor.action(value.action);
61
- return visitor._(value.$unknown[0], value.$unknown[1]);
62
- };
63
- })(ButtonHandler = exports.ButtonHandler || (exports.ButtonHandler = {}));
64
- exports.ButtonVariant = {
65
- CONTAINED: "contained",
66
- OUTLINED: "outlined",
67
- };
68
- var ActionElement;
69
- (function (ActionElement) {
70
- ActionElement.visit = (value, visitor) => {
71
- if (value.button !== undefined)
72
- return visitor.button(value.button);
73
- return visitor._(value.$unknown[0], value.$unknown[1]);
74
- };
75
- })(ActionElement = exports.ActionElement || (exports.ActionElement = {}));
76
- exports.ActionTriggerStatus = {
77
- COMPLETED: "completed",
78
- PENDING: "pending",
79
- };
80
70
  exports.ChannelMemberRole = {
81
71
  MEMBER: "member",
82
72
  SUPERVISOR: "supervisor",
@@ -136,11 +126,6 @@ class ChannelAlreadyExistException extends ConversationsServiceException_1.Conve
136
126
  }
137
127
  }
138
128
  exports.ChannelAlreadyExistException = ChannelAlreadyExistException;
139
- exports.ConversationFileCategory = {
140
- GENERAL: "channels",
141
- RECORDING: "recordings",
142
- WIZY_RECORDING: "wizyconfRecordings",
143
- };
144
129
  class TagsLimitReachedException extends ConversationsServiceException_1.ConversationsServiceException {
145
130
  constructor(opts) {
146
131
  super({
@@ -191,24 +176,17 @@ exports.ReactionType = {
191
176
  THUMBSUP: "thumbsup",
192
177
  WHITE_CHECK_MARK: "white_check_mark",
193
178
  };
194
- var Element;
195
- (function (Element) {
196
- Element.visit = (value, visitor) => {
197
- if (value.text !== undefined)
198
- return visitor.text(value.text);
199
- if (value.link !== undefined)
200
- return visitor.link(value.link);
201
- if (value.email !== undefined)
202
- return visitor.email(value.email);
203
- if (value.phone !== undefined)
204
- return visitor.phone(value.phone);
205
- if (value.mention !== undefined)
206
- return visitor.mention(value.mention);
207
- if (value.actions !== undefined)
208
- return visitor.actions(value.actions);
209
- return visitor._(value.$unknown[0], value.$unknown[1]);
210
- };
211
- })(Element = exports.Element || (exports.Element = {}));
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
+ };
212
190
  exports.MessageSmsStatus = {
213
191
  DELIVERED: "delivered",
214
192
  ERROR: "error",
@@ -225,44 +203,6 @@ exports.MessageWhatsAppStatus = {
225
203
  SENT: "sent",
226
204
  TRYING: "trying",
227
205
  };
228
- exports.WebhookEventType = {
229
- ACTION_TRIGGERED: "chat:action:triggered",
230
- CHANNEL_CREATED: "chat:channel:created",
231
- CHANNEL_UPDATED: "chat:channel:updated",
232
- MEMBER_ADDED: "chat:member:added",
233
- MEMBER_REMOVED: "chat:member:removed",
234
- MESSAGE_DELETED: "chat:message:deleted",
235
- MESSAGE_NEW: "chat:message:new",
236
- MESSAGE_UPDATED: "chat:message:updated",
237
- REACTION_DELETED: "chat:reaction:deleted",
238
- REACTION_NEW: "chat:reaction:new",
239
- };
240
- class TriggerNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
241
- constructor(opts) {
242
- super({
243
- name: "TriggerNotFoundException",
244
- $fault: "client",
245
- ...opts
246
- });
247
- this.name = "TriggerNotFoundException";
248
- this.$fault = "client";
249
- Object.setPrototypeOf(this, TriggerNotFoundException.prototype);
250
- }
251
- }
252
- exports.TriggerNotFoundException = TriggerNotFoundException;
253
- class FileNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
254
- constructor(opts) {
255
- super({
256
- name: "FileNotFoundException",
257
- $fault: "client",
258
- ...opts
259
- });
260
- this.name = "FileNotFoundException";
261
- this.$fault = "client";
262
- Object.setPrototypeOf(this, FileNotFoundException.prototype);
263
- }
264
- }
265
- exports.FileNotFoundException = FileNotFoundException;
266
206
  class TagNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
267
207
  constructor(opts) {
268
208
  super({
@@ -299,9 +239,7 @@ exports.GroupChannelUnsetOptions = {
299
239
  };
300
240
  exports.MessageUnsetFields = {
301
241
  ATTACHMENTS: "attachments",
302
- ELEMENTS: "elements",
303
242
  FORWARD: "forward",
304
- MENTIONS: "mentions",
305
243
  QUOTE: "quote",
306
244
  TEXT: "text",
307
245
  };
@@ -344,16 +282,3 @@ class TaggedChannelsLimitReachedException extends ConversationsServiceException_
344
282
  }
345
283
  }
346
284
  exports.TaggedChannelsLimitReachedException = TaggedChannelsLimitReachedException;
347
- class MessageActionNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
348
- constructor(opts) {
349
- super({
350
- name: "MessageActionNotFoundException",
351
- $fault: "client",
352
- ...opts
353
- });
354
- this.name = "MessageActionNotFoundException";
355
- this.$fault = "client";
356
- Object.setPrototypeOf(this, MessageActionNotFoundException.prototype);
357
- }
358
- }
359
- exports.MessageActionNotFoundException = MessageActionNotFoundException;