crisp-api 10.0.15 → 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,6 +1,14 @@
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
+
4
12
  ## v10.0.15
5
13
 
6
14
  ### Changes
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.15";
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
  }
@@ -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
  }
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.15",
4
+ "version": "10.0.17",
5
5
  "homepage": "https://github.com/crisp-im/node-crisp-api",
6
6
  "license": "MIT",
7
7
  "author": {