crisp-api 9.1.0 → 9.2.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v9.2.0
5
+
6
+ ### New Features
7
+
8
+ * Added support for the `spam:message` RTM API event.
9
+ * Added support for the `spam:decision` RTM API event.
10
+
4
11
  ## v9.1.0
5
12
 
6
13
  ### New Features
package/README.md CHANGED
@@ -3523,6 +3523,12 @@ Available events are listed below:
3523
3523
  * **Message Notify Unread Received** [`user`, `plugin`]:
3524
3524
  * `message:notify:unread:received`
3525
3525
 
3526
+ * #### **Spam Events**: [Reference](https://docs.crisp.chat/references/rtm-api/v1/#spam-events)
3527
+ * **Spam Message** [`user`]:
3528
+ * `spam:message`
3529
+ * **Spam Decision** [`user`]:
3530
+ * `spam:decision`
3531
+
3526
3532
  * #### **People Events**: [Reference](https://docs.crisp.chat/references/rtm-api/v1/#people-events)
3527
3533
  * **People Profile Created** [`user`, `plugin`]:
3528
3534
  * `people:profile:created`
package/lib/crisp.js CHANGED
@@ -95,6 +95,10 @@ Crisp.DEFAULT_RTM_EVENTS = [
95
95
  "message:notify:unread:send",
96
96
  "message:notify:unread:received",
97
97
 
98
+ // Spam Events
99
+ "spam:message",
100
+ "spam:decision",
101
+
98
102
  // People Events
99
103
  "people:profile:created",
100
104
  "people:profile:updated",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "crisp-api",
3
3
  "description": "Crisp API wrapper for Node - official, maintained by Crisp",
4
- "version": "9.1.0",
4
+ "version": "9.2.0",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {