crisp-api 9.9.0 → 9.11.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 +12 -0
- package/EXAMPLES.md +14 -0
- package/README.md +20 -0
- package/lib/crisp.js +1 -0
- package/lib/resources/WebsiteConversation.js +22 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
## v9.11.0
|
|
5
|
+
|
|
6
|
+
### New Features
|
|
7
|
+
|
|
8
|
+
* Added the new `CrispClient.website.requestIdentityVerificationForConversation` method.
|
|
9
|
+
|
|
10
|
+
## v9.10.0
|
|
11
|
+
|
|
12
|
+
### New Features
|
|
13
|
+
|
|
14
|
+
* Added support for the `bucket:url:crawler:generated` RTM API event.
|
|
15
|
+
|
|
4
16
|
## v9.9.0
|
|
5
17
|
|
|
6
18
|
### New Features
|
package/EXAMPLES.md
CHANGED
|
@@ -441,6 +441,19 @@ CrispClient.website.updateVerifyStatusForConversation(websiteID, sessionID, veri
|
|
|
441
441
|
|
|
442
442
|
=========================
|
|
443
443
|
|
|
444
|
+
https://docs.crisp.chat/references/rest-api/v1/#request-identity-verification-for-conversation
|
|
445
|
+
|
|
446
|
+
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
|
|
447
|
+
var sessionID = "session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881";
|
|
448
|
+
|
|
449
|
+
var verification = {
|
|
450
|
+
"identity": "email"
|
|
451
|
+
};
|
|
452
|
+
|
|
453
|
+
CrispClient.website.requestIdentityVerificationForConversation(websiteID, sessionID, verification);
|
|
454
|
+
|
|
455
|
+
=========================
|
|
456
|
+
|
|
444
457
|
https://docs.crisp.chat/references/rest-api/v1/#request-email-transcript-for-conversation
|
|
445
458
|
|
|
446
459
|
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
|
|
@@ -1679,6 +1692,7 @@ var settings = {
|
|
|
1679
1692
|
"ignore_privacy": false,
|
|
1680
1693
|
"visitor_compose": false,
|
|
1681
1694
|
"file_transfer": true,
|
|
1695
|
+
"audio_record": true,
|
|
1682
1696
|
"overlay_search": true,
|
|
1683
1697
|
"overlay_mode": false,
|
|
1684
1698
|
"helpdesk_link": true,
|
package/README.md
CHANGED
|
@@ -772,6 +772,23 @@ All methods that you will most likely need when building a Crisp integration are
|
|
|
772
772
|
```
|
|
773
773
|
</details>
|
|
774
774
|
|
|
775
|
+
* **Request Identity Verification For Conversation** [`user`, `plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#request-identity-verification-for-conversation)
|
|
776
|
+
* `CrispClient.website.requestIdentityVerificationForConversation(websiteID, sessionID, verification)`
|
|
777
|
+
* <details>
|
|
778
|
+
<summary>See Example</summary>
|
|
779
|
+
|
|
780
|
+
```javascript
|
|
781
|
+
var websiteID = "8c842203-7ed8-4e29-a608-7cf78a7d2fcc";
|
|
782
|
+
var sessionID = "session_700c65e1-85e2-465a-b9ac-ecb5ec2c9881";
|
|
783
|
+
|
|
784
|
+
var verification = {
|
|
785
|
+
"identity": "email"
|
|
786
|
+
};
|
|
787
|
+
|
|
788
|
+
CrispClient.website.requestIdentityVerificationForConversation(websiteID, sessionID, verification);
|
|
789
|
+
```
|
|
790
|
+
</details>
|
|
791
|
+
|
|
775
792
|
* **Request Email Transcript For Conversation** [`user`, `plugin`]: [Reference](https://docs.crisp.chat/references/rest-api/v1/#request-email-transcript-for-conversation)
|
|
776
793
|
* `CrispClient.website.requestEmailTranscriptForConversation(websiteID, sessionID, to, email)`
|
|
777
794
|
* <details>
|
|
@@ -2429,6 +2446,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
|
|
|
2429
2446
|
"ignore_privacy": false,
|
|
2430
2447
|
"visitor_compose": false,
|
|
2431
2448
|
"file_transfer": true,
|
|
2449
|
+
"audio_record": true,
|
|
2432
2450
|
"overlay_search": true,
|
|
2433
2451
|
"overlay_mode": false,
|
|
2434
2452
|
"helpdesk_link": true,
|
|
@@ -3646,6 +3664,8 @@ Available events are listed below:
|
|
|
3646
3664
|
* `bucket:url:status:generated`
|
|
3647
3665
|
* **Bucket URL Processing Generated** [`user`, `plugin`]:
|
|
3648
3666
|
* `bucket:url:processing:generated`
|
|
3667
|
+
* **Bucket URL Crawler Generated** [`user`, `plugin`]:
|
|
3668
|
+
* `bucket:url:crawler:generated`
|
|
3649
3669
|
|
|
3650
3670
|
* #### **Media Events**: [Reference](https://docs.crisp.chat/references/rtm-api/v1/#media-events)
|
|
3651
3671
|
* **Media Animation Listed** [`user`]:
|
package/lib/crisp.js
CHANGED
|
@@ -810,6 +810,28 @@ function WebsiteConversation(service, crisp) {
|
|
|
810
810
|
);
|
|
811
811
|
};
|
|
812
812
|
|
|
813
|
+
/**
|
|
814
|
+
* Request Identity Verification For Conversation
|
|
815
|
+
* @memberof WebsiteConversation
|
|
816
|
+
* @public
|
|
817
|
+
* @method requestIdentityVerificationForConversation
|
|
818
|
+
* @param {string} websiteID
|
|
819
|
+
* @param {string} sessionID
|
|
820
|
+
* @param {object} verification
|
|
821
|
+
* @return {Promise}
|
|
822
|
+
*/
|
|
823
|
+
service.requestIdentityVerificationForConversation = function(
|
|
824
|
+
websiteID, sessionID, verification
|
|
825
|
+
) {
|
|
826
|
+
return crisp.patch(
|
|
827
|
+
crisp._prepareRestUrl([
|
|
828
|
+
"website", websiteID, "conversation", sessionID, "verify", "identity"
|
|
829
|
+
]),
|
|
830
|
+
|
|
831
|
+
null, verification
|
|
832
|
+
);
|
|
833
|
+
};
|
|
834
|
+
|
|
813
835
|
/**
|
|
814
836
|
* Request Email Transcript For Conversation
|
|
815
837
|
* @memberof WebsiteConversation
|
package/package.json
CHANGED