crisp-api 9.5.0 → 9.6.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,12 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v9.6.0
5
+
6
+ ### New Features
7
+
8
+ * Added support for the `session:error` RTM API event.
9
+
4
10
  ## v9.5.0
5
11
 
6
12
  ### New Features
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Crisp API Wrapper
2
2
 
3
- [![Test and Build](https://github.com/crisp-im/node-crisp-api/workflows/Test%20and%20Build/badge.svg?branch=master)](https://github.com/crisp-im/node-crisp-api/actions?query=workflow%3A%22Test+and+Build%22) [![Build and Release](https://github.com/crisp-im/node-crisp-api/workflows/Build%20and%20Release/badge.svg)](https://github.com/crisp-im/node-crisp-api/actions?query=workflow%3A%22Build+and+Release%22) [![Version](https://img.shields.io/npm/v/crisp-api.svg)](https://www.npmjs.com/package/crisp-api) [![Downloads](https://img.shields.io/npm/dt/crisp-api.svg)](https://www.npmjs.com/package/crisp-api)
3
+ [![Test and Build](https://github.com/crisp-im/node-crisp-api/actions/workflows/test.yml/badge.svg)](https://github.com/crisp-im/node-crisp-api/actions/workflows/test.yml) [![Build and Release](https://github.com/crisp-im/node-crisp-api/actions/workflows/build.yml/badge.svg)](https://github.com/crisp-im/node-crisp-api/actions/workflows/build.yml) [![Version](https://img.shields.io/npm/v/crisp-api.svg)](https://www.npmjs.com/package/crisp-api) [![Downloads](https://img.shields.io/npm/dt/crisp-api.svg)](https://www.npmjs.com/package/crisp-api)
4
4
 
5
5
  The Crisp API Node wrapper. Authenticate, send messages, fetch conversations, access your agent accounts from your JavaScript code.
6
6
 
7
7
  Copyright 2024 Crisp IM SAS. See LICENSE for copying information.
8
8
 
9
- * **📝 Implements**: [REST API Reference (V1)](https://docs.crisp.chat/references/rest-api/v1/) at revision: 17/10/2024
9
+ * **📝 Implements**: [REST API Reference (V1)](https://docs.crisp.chat/references/rest-api/v1/) at revision: 27/01/2025
10
10
  * **😘 Maintainers**: [@baptistejamin](https://github.com/baptistejamin), [@eliottvincent](https://github.com/eliottvincent), [@valeriansaliou](https://github.com/valeriansaliou)
11
11
 
12
12
  ## Installation
@@ -3506,6 +3506,8 @@ Available events are listed below:
3506
3506
  * `session:set_inbox`
3507
3507
  * **Session Removed** [`user`, `plugin`]:
3508
3508
  * `session:removed`
3509
+ * **Session Error** [`user`, `plugin`]:
3510
+ * `session:error`
3509
3511
 
3510
3512
  * #### **Message Events**: [Reference](https://docs.crisp.chat/references/rtm-api/v1/#message-events)
3511
3513
  * **Message Updated** [`user`, `plugin`]:
package/lib/crisp.js CHANGED
@@ -81,6 +81,7 @@ Crisp.DEFAULT_RTM_EVENTS = [
81
81
  "session:set_routing",
82
82
  "session:set_inbox",
83
83
  "session:removed",
84
+ "session:error",
84
85
 
85
86
  // Message Events
86
87
  "message: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.5.0",
4
+ "version": "9.6.0",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {