crisp-api 10.0.14 → 10.0.17

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,16 +1,36 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v10.0.17
5
+
6
+ * Add `stamped` to `ConversationMessage`
7
+
8
+ ## v10.0.16
9
+
10
+ * Harden types on `ConversationVerifyIdentityRequest` and `ConversationVerifyIdentityRedeem`.
11
+
12
+ ## v10.0.15
13
+
14
+ ### Changes
15
+
16
+ * Update `WebsiteSettingsChatbox` and `WebsiteSettingsUpdateChatbox` types.
17
+
4
18
  ## v10.0.14
5
19
 
6
- * Provide exports using both cjs and esm modules.
20
+ ### Changes
21
+
22
+ * Provide exports using both CJS and ESM modules.
7
23
 
8
24
  ## v10.0.13
9
25
 
26
+ ### Changes
27
+
10
28
  * Rename `ConversationContent` to `ConversationMessageContent`.
11
29
 
12
30
  ## v10.0.12
13
31
 
32
+ ### Changes
33
+
14
34
  * Commonize `Message` types.
15
35
 
16
36
  ## v10.0.11
package/EXAMPLES.md CHANGED
@@ -1714,6 +1714,7 @@ var settings = {
1714
1714
  "status_health_dead": true,
1715
1715
  "check_domain": false,
1716
1716
  "color_theme": "blue",
1717
+ "layout_theme": "default",
1717
1718
  "text_theme": "default",
1718
1719
  "welcome_message": "default",
1719
1720
  "locale": "en",
package/README.md CHANGED
@@ -2472,6 +2472,7 @@ _👉 Notice: The `peopleID` argument can be an email or the `peopleID`._
2472
2472
  "status_health_dead": true,
2473
2473
  "check_domain": false,
2474
2474
  "color_theme": "blue",
2475
+ "layout_theme": "default",
2475
2476
  "text_theme": "default",
2476
2477
  "welcome_message": "default",
2477
2478
  "locale": "en",
package/dist/crisp.js CHANGED
@@ -45,7 +45,7 @@ const AVAILABLE_RTM_MODES = [
45
45
  "websockets",
46
46
  "webhooks"
47
47
  ];
48
- const VERSION = "10.0.14";
48
+ const VERSION = "10.0.17";
49
49
  // Base configuration
50
50
  const DEFAULT_REQUEST_TIMEOUT = 10000;
51
51
  const DEFAULT_SOCKET_TIMEOUT = 10000;
@@ -153,6 +153,7 @@ export interface ConversationMessage {
153
153
  edited?: boolean;
154
154
  translated?: boolean;
155
155
  automated?: boolean;
156
+ stamped?: boolean;
156
157
  fingerprint?: number;
157
158
  timestamp?: number;
158
159
  user?: ConversationMessageUser;
@@ -375,13 +376,15 @@ export interface ConversationVerify {
375
376
  verified?: boolean;
376
377
  verifications?: ConversationVerification[];
377
378
  }
379
+ export type ConversationVerifyIdentity = "email" | "phone" | `urn:${string}`;
380
+ export type ConversationVerifyMethod = "link";
378
381
  export interface ConversationVerifyIdentityRequest {
379
- identity?: string;
380
- method?: string;
382
+ identity?: ConversationVerifyIdentity;
383
+ method?: ConversationVerifyMethod;
381
384
  recipient?: string;
382
385
  }
383
386
  export interface ConversationVerifyIdentityRedeem {
384
- identity?: string;
387
+ identity?: ConversationVerifyIdentity;
385
388
  token?: string;
386
389
  recipient?: string;
387
390
  }
@@ -67,6 +67,7 @@ export interface WebsiteSettingsChatbox {
67
67
  status_health_dead?: boolean;
68
68
  check_domain?: boolean;
69
69
  color_theme?: string;
70
+ layout_theme?: string;
70
71
  text_theme?: string;
71
72
  welcome_message?: string;
72
73
  locale?: string;
@@ -137,6 +138,7 @@ export interface WebsiteSettingsUpdateChatbox {
137
138
  status_health_dead?: boolean;
138
139
  check_domain?: boolean;
139
140
  color_theme?: string;
141
+ layout_theme?: string;
140
142
  text_theme?: string;
141
143
  welcome_message?: string;
142
144
  locale?: string;
@@ -207,6 +207,7 @@ export interface ConversationMessage {
207
207
  edited?: boolean;
208
208
  translated?: boolean;
209
209
  automated?: boolean;
210
+ stamped?: boolean;
210
211
  fingerprint?: number;
211
212
  timestamp?: number;
212
213
  user?: ConversationMessageUser;
@@ -484,14 +485,18 @@ export interface ConversationVerify {
484
485
  verifications?: ConversationVerification[];
485
486
  }
486
487
 
488
+ export type ConversationVerifyIdentity = "email" | "phone" | `urn:${string}`;
489
+
490
+ export type ConversationVerifyMethod = "link";
491
+
487
492
  export interface ConversationVerifyIdentityRequest {
488
- identity?: string;
489
- method?: string;
493
+ identity?: ConversationVerifyIdentity;
494
+ method?: ConversationVerifyMethod;
490
495
  recipient?: string;
491
496
  }
492
497
 
493
498
  export interface ConversationVerifyIdentityRedeem {
494
- identity?: string;
499
+ identity?: ConversationVerifyIdentity;
495
500
  token?: string;
496
501
  recipient?: string;
497
502
  }
@@ -83,6 +83,7 @@ export interface WebsiteSettingsChatbox {
83
83
  status_health_dead?: boolean;
84
84
  check_domain?: boolean;
85
85
  color_theme?: string;
86
+ layout_theme?: string;
86
87
  text_theme?: string;
87
88
  welcome_message?: string;
88
89
  locale?: string;
@@ -159,6 +160,7 @@ export interface WebsiteSettingsUpdateChatbox {
159
160
  status_health_dead?: boolean;
160
161
  check_domain?: boolean;
161
162
  color_theme?: string;
163
+ layout_theme?: string;
162
164
  text_theme?: string;
163
165
  welcome_message?: string;
164
166
  locale?: string;
@@ -204,4 +206,3 @@ class WebsiteSettingsService extends BaseResource {
204
206
  ***************************************************************************/
205
207
 
206
208
  export default WebsiteSettingsService;
207
-
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": "10.0.14",
4
+ "version": "10.0.17",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {