@wildix/xbees-conversations-client 1.0.62 → 1.0.63

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.
@@ -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.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.WebhookEventType = 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.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;
4
4
  const ConversationsServiceException_1 = require("./ConversationsServiceException");
5
5
  class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
6
6
  constructor(opts) {
@@ -191,18 +191,6 @@ exports.ReactionType = {
191
191
  THUMBSUP: "thumbsup",
192
192
  WHITE_CHECK_MARK: "white_check_mark",
193
193
  };
194
- exports.WebhookEventType = {
195
- ACTION_TRIGGERED: "chat:action:triggered",
196
- CHANNEL_CREATED: "chat:channel:created",
197
- CHANNEL_UPDATED: "chat:channel:updated",
198
- MEMBER_ADDED: "chat:member:added",
199
- MEMBER_REMOVED: "chat:member:removed",
200
- MESSAGE_DELETED: "chat:message:deleted",
201
- MESSAGE_NEW: "chat:message:new",
202
- MESSAGE_UPDATED: "chat:message:updated",
203
- REACTION_DELETED: "chat:reaction:deleted",
204
- REACTION_NEW: "chat:reaction:new",
205
- };
206
194
  var Element;
207
195
  (function (Element) {
208
196
  Element.visit = (value, visitor) => {
@@ -237,6 +225,18 @@ exports.MessageWhatsAppStatus = {
237
225
  SENT: "sent",
238
226
  TRYING: "trying",
239
227
  };
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
240
  class TriggerNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
241
241
  constructor(opts) {
242
242
  super({
@@ -1067,6 +1067,7 @@ const de_DescribeEventCommand = async (output, context) => {
1067
1067
  });
1068
1068
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
1069
1069
  const doc = (0, smithy_client_1.take)(data, {
1070
+ 'WebhookChatActionTriggeredEvent': smithy_client_1._json,
1070
1071
  'WebhookChatChannelCreatedEvent': smithy_client_1._json,
1071
1072
  'WebhookChatChannelUpdatedEvent': smithy_client_1._json,
1072
1073
  'WebhookChatMemberAddedEvent': smithy_client_1._json,
@@ -179,18 +179,6 @@ export const ReactionType = {
179
179
  THUMBSUP: "thumbsup",
180
180
  WHITE_CHECK_MARK: "white_check_mark",
181
181
  };
182
- export const WebhookEventType = {
183
- ACTION_TRIGGERED: "chat:action:triggered",
184
- CHANNEL_CREATED: "chat:channel:created",
185
- CHANNEL_UPDATED: "chat:channel:updated",
186
- MEMBER_ADDED: "chat:member:added",
187
- MEMBER_REMOVED: "chat:member:removed",
188
- MESSAGE_DELETED: "chat:message:deleted",
189
- MESSAGE_NEW: "chat:message:new",
190
- MESSAGE_UPDATED: "chat:message:updated",
191
- REACTION_DELETED: "chat:reaction:deleted",
192
- REACTION_NEW: "chat:reaction:new",
193
- };
194
182
  export var Element;
195
183
  (function (Element) {
196
184
  Element.visit = (value, visitor) => {
@@ -225,6 +213,18 @@ export const MessageWhatsAppStatus = {
225
213
  SENT: "sent",
226
214
  TRYING: "trying",
227
215
  };
216
+ export const WebhookEventType = {
217
+ ACTION_TRIGGERED: "chat:action:triggered",
218
+ CHANNEL_CREATED: "chat:channel:created",
219
+ CHANNEL_UPDATED: "chat:channel:updated",
220
+ MEMBER_ADDED: "chat:member:added",
221
+ MEMBER_REMOVED: "chat:member:removed",
222
+ MESSAGE_DELETED: "chat:message:deleted",
223
+ MESSAGE_NEW: "chat:message:new",
224
+ MESSAGE_UPDATED: "chat:message:updated",
225
+ REACTION_DELETED: "chat:reaction:deleted",
226
+ REACTION_NEW: "chat:reaction:new",
227
+ };
228
228
  export class TriggerNotFoundException extends __BaseException {
229
229
  constructor(opts) {
230
230
  super({
@@ -1004,6 +1004,7 @@ export const de_DescribeEventCommand = async (output, context) => {
1004
1004
  });
1005
1005
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1006
1006
  const doc = take(data, {
1007
+ 'WebhookChatActionTriggeredEvent': _json,
1007
1008
  'WebhookChatChannelCreatedEvent': _json,
1008
1009
  'WebhookChatChannelUpdatedEvent': _json,
1009
1010
  'WebhookChatMemberAddedEvent': _json,
@@ -1094,6 +1094,21 @@ declare const DescribeEventCommand_base: {
1094
1094
  * // reaction: "<Reaction>", // required
1095
1095
  * // },
1096
1096
  * // },
1097
+ * // WebhookChatActionTriggeredEvent: { // WebhookChatActionTriggeredEvent
1098
+ * // id: "STRING_VALUE", // required
1099
+ * // company: "STRING_VALUE", // required
1100
+ * // type: "chat:channel:created" || "chat:channel:updated" || "chat:member:added" || "chat:member:removed" || "chat:message:new" || "chat:message:updated" || "chat:message:deleted" || "chat:reaction:new" || "chat:reaction:deleted" || "chat:action:triggered", // required
1101
+ * // time: Number("long"), // required
1102
+ * // integrationId: "STRING_VALUE",
1103
+ * // botId: "STRING_VALUE",
1104
+ * // data: { // WebhookChatActionTriggeredEventData
1105
+ * // channel: "<Channel>", // required
1106
+ * // message: "<Message>", // required
1107
+ * // user: "<User>", // required
1108
+ * // actionId: "STRING_VALUE", // required
1109
+ * // triggerId: "STRING_VALUE", // required
1110
+ * // },
1111
+ * // },
1097
1112
  * // };
1098
1113
  *
1099
1114
  * ```
@@ -768,90 +768,6 @@ export interface DeleteMessageReactionOutput {
768
768
  */
769
769
  export interface DescribeEventInput {
770
770
  }
771
- /**
772
- * @public
773
- */
774
- export interface WebhookChatChannelCreatedOrUpdatedEventData {
775
- channel: Channel;
776
- members: (ChannelMember)[];
777
- users: (User)[];
778
- }
779
- /**
780
- * @public
781
- * @enum
782
- */
783
- export declare const WebhookEventType: {
784
- readonly ACTION_TRIGGERED: "chat:action:triggered";
785
- readonly CHANNEL_CREATED: "chat:channel:created";
786
- readonly CHANNEL_UPDATED: "chat:channel:updated";
787
- readonly MEMBER_ADDED: "chat:member:added";
788
- readonly MEMBER_REMOVED: "chat:member:removed";
789
- readonly MESSAGE_DELETED: "chat:message:deleted";
790
- readonly MESSAGE_NEW: "chat:message:new";
791
- readonly MESSAGE_UPDATED: "chat:message:updated";
792
- readonly REACTION_DELETED: "chat:reaction:deleted";
793
- readonly REACTION_NEW: "chat:reaction:new";
794
- };
795
- /**
796
- * @public
797
- */
798
- export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType];
799
- /**
800
- * @public
801
- */
802
- export interface WebhookChatChannelCreatedEvent {
803
- id: string;
804
- company: string;
805
- type: WebhookEventType;
806
- time: number;
807
- integrationId?: string;
808
- botId?: string;
809
- data: WebhookChatChannelCreatedOrUpdatedEventData;
810
- }
811
- /**
812
- * @public
813
- */
814
- export interface WebhookChatChannelUpdatedEvent {
815
- id: string;
816
- company: string;
817
- type: WebhookEventType;
818
- time: number;
819
- integrationId?: string;
820
- botId?: string;
821
- data: WebhookChatChannelCreatedOrUpdatedEventData;
822
- }
823
- /**
824
- * @public
825
- */
826
- export interface WebhookChatMemberAddedOrRemovedEventData {
827
- channel: Channel;
828
- member: ChannelMember;
829
- user: User;
830
- }
831
- /**
832
- * @public
833
- */
834
- export interface WebhookChatMemberAddedEvent {
835
- id: string;
836
- company: string;
837
- type: WebhookEventType;
838
- time: number;
839
- integrationId?: string;
840
- botId?: string;
841
- data: WebhookChatMemberAddedOrRemovedEventData;
842
- }
843
- /**
844
- * @public
845
- */
846
- export interface WebhookChatMemberRemovedEvent {
847
- id: string;
848
- company: string;
849
- type: WebhookEventType;
850
- time: number;
851
- integrationId?: string;
852
- botId?: string;
853
- data: WebhookChatMemberAddedOrRemovedEventData;
854
- }
855
771
  /**
856
772
  * @public
857
773
  */
@@ -1137,6 +1053,112 @@ export interface Message {
1137
1053
  createdAt: string;
1138
1054
  updatedAt?: string;
1139
1055
  }
1056
+ /**
1057
+ * @public
1058
+ */
1059
+ export interface WebhookChatActionTriggeredEventData {
1060
+ channel: Channel;
1061
+ message: Message;
1062
+ user: User;
1063
+ actionId: string;
1064
+ triggerId: string;
1065
+ }
1066
+ /**
1067
+ * @public
1068
+ * @enum
1069
+ */
1070
+ export declare const WebhookEventType: {
1071
+ readonly ACTION_TRIGGERED: "chat:action:triggered";
1072
+ readonly CHANNEL_CREATED: "chat:channel:created";
1073
+ readonly CHANNEL_UPDATED: "chat:channel:updated";
1074
+ readonly MEMBER_ADDED: "chat:member:added";
1075
+ readonly MEMBER_REMOVED: "chat:member:removed";
1076
+ readonly MESSAGE_DELETED: "chat:message:deleted";
1077
+ readonly MESSAGE_NEW: "chat:message:new";
1078
+ readonly MESSAGE_UPDATED: "chat:message:updated";
1079
+ readonly REACTION_DELETED: "chat:reaction:deleted";
1080
+ readonly REACTION_NEW: "chat:reaction:new";
1081
+ };
1082
+ /**
1083
+ * @public
1084
+ */
1085
+ export type WebhookEventType = typeof WebhookEventType[keyof typeof WebhookEventType];
1086
+ /**
1087
+ * @public
1088
+ */
1089
+ export interface WebhookChatActionTriggeredEvent {
1090
+ id: string;
1091
+ company: string;
1092
+ type: WebhookEventType;
1093
+ time: number;
1094
+ integrationId?: string;
1095
+ botId?: string;
1096
+ data: WebhookChatActionTriggeredEventData;
1097
+ }
1098
+ /**
1099
+ * @public
1100
+ */
1101
+ export interface WebhookChatChannelCreatedOrUpdatedEventData {
1102
+ channel: Channel;
1103
+ members: (ChannelMember)[];
1104
+ users: (User)[];
1105
+ }
1106
+ /**
1107
+ * @public
1108
+ */
1109
+ export interface WebhookChatChannelCreatedEvent {
1110
+ id: string;
1111
+ company: string;
1112
+ type: WebhookEventType;
1113
+ time: number;
1114
+ integrationId?: string;
1115
+ botId?: string;
1116
+ data: WebhookChatChannelCreatedOrUpdatedEventData;
1117
+ }
1118
+ /**
1119
+ * @public
1120
+ */
1121
+ export interface WebhookChatChannelUpdatedEvent {
1122
+ id: string;
1123
+ company: string;
1124
+ type: WebhookEventType;
1125
+ time: number;
1126
+ integrationId?: string;
1127
+ botId?: string;
1128
+ data: WebhookChatChannelCreatedOrUpdatedEventData;
1129
+ }
1130
+ /**
1131
+ * @public
1132
+ */
1133
+ export interface WebhookChatMemberAddedOrRemovedEventData {
1134
+ channel: Channel;
1135
+ member: ChannelMember;
1136
+ user: User;
1137
+ }
1138
+ /**
1139
+ * @public
1140
+ */
1141
+ export interface WebhookChatMemberAddedEvent {
1142
+ id: string;
1143
+ company: string;
1144
+ type: WebhookEventType;
1145
+ time: number;
1146
+ integrationId?: string;
1147
+ botId?: string;
1148
+ data: WebhookChatMemberAddedOrRemovedEventData;
1149
+ }
1150
+ /**
1151
+ * @public
1152
+ */
1153
+ export interface WebhookChatMemberRemovedEvent {
1154
+ id: string;
1155
+ company: string;
1156
+ type: WebhookEventType;
1157
+ time: number;
1158
+ integrationId?: string;
1159
+ botId?: string;
1160
+ data: WebhookChatMemberAddedOrRemovedEventData;
1161
+ }
1140
1162
  /**
1141
1163
  * @public
1142
1164
  */
@@ -1234,6 +1256,7 @@ export interface DescribeEventOutput {
1234
1256
  WebhookChatMessageDeletedEvent?: WebhookChatMessageDeletedEvent;
1235
1257
  WebhookChatReactionNewEvent?: WebhookChatReactionNewEvent;
1236
1258
  WebhookChatReactionDeletedEvent?: WebhookChatReactionDeletedEvent;
1259
+ WebhookChatActionTriggeredEvent?: WebhookChatActionTriggeredEvent;
1237
1260
  }
1238
1261
  /**
1239
1262
  * @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.0.62",
4
+ "version": "1.0.63",
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",