cv-contracts 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -14,29 +14,50 @@ npm i cv-contracts
14
14
 
15
15
  ## Import respective contract
16
16
  ```ts
17
- import { Message } from 'cv-contracts';
17
+ import { Message, Conversation } from 'cv-contracts';
18
18
 
19
19
  const msg: Message = {
20
- message_guid: string;
21
- creator_guid: string;
22
- channel_guid?: string | null;
23
- workspace_guid?: string | null;
24
- creator_first_name: string;
25
- creator_last_name: string;
26
- created_at: number;
27
- last_updated_at: number;
28
- deleted_at?: number | null;
20
+ id: string;
21
+ link: string;
22
+ creator_id: string;
23
+ conversation_id?: string | null;
24
+ workspace_id?: string | null;
25
+ created_at: string;
26
+ last_updated_at: string;
27
+ deleted_at?: string | null;
29
28
  duration_ms: number;
30
- message_url?: string | null;
29
+ audio_url?: string | null;
31
30
  audio_stream_url?: string | null;
32
- transcript_txt?: string | null;
33
- ai_summary_txt?: string | null;
31
+ transcript?: string | null;
32
+ ai_summary?: string | null;
34
33
  has_ai_summary?: boolean;
35
34
  waveform_url?: string | null;
36
35
  reply_count: number;
37
- parent_message_guid?: string | null;
36
+ parent_message_id?: string | null;
38
37
  language?: string | null;
39
38
  status: MessageStatus;
39
+ attachments?: Attachment[];
40
40
  type: MessageType;
41
41
  }
42
+ const conversation: Conversation = {
43
+ id: string;
44
+ link: string;
45
+ name: string;
46
+ description?: string | null;
47
+ workspace_id: string;
48
+ workspace_name: string;
49
+ workspace_image_url?: string | null;
50
+ owner_id: string;
51
+ type: ChannelType;
52
+ visibility: ChannelVisibility;
53
+ total_messages: number;
54
+ total_duration_ms: number;
55
+ image_url?: string | null;
56
+ is_private: boolean;
57
+ is_async: boolean;
58
+ async_stats?: AsyncMeetingStats | null;
59
+ created_at: string;
60
+ last_updated_at: string;
61
+ deleted_at?: string;
62
+ }
42
63
  ```
@@ -6,3 +6,4 @@ export * from './LabelBehavior';
6
6
  export * from './LabelType';
7
7
  export * from './AttachmentType';
8
8
  export * from './ElevenLabsSupportedLanguages';
9
+ export * from './webhook';
@@ -22,4 +22,5 @@ __exportStar(require("./LabelBehavior"), exports);
22
22
  __exportStar(require("./LabelType"), exports);
23
23
  __exportStar(require("./AttachmentType"), exports);
24
24
  __exportStar(require("./ElevenLabsSupportedLanguages"), exports);
25
+ __exportStar(require("./webhook"), exports);
25
26
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,2DAAyC;AACzC,kDAAgC;AAChC,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAC5B,mDAAiC;AACjC,iEAA+C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,2DAAyC;AACzC,kDAAgC;AAChC,gDAA8B;AAC9B,kDAAgC;AAChC,8CAA4B;AAC5B,mDAAiC;AACjC,iEAA+C;AAC/C,4CAA0B"}
@@ -7,3 +7,4 @@ export * from './webhook/SubscriptionFilter';
7
7
  export * from './Label';
8
8
  export * from './Attachment';
9
9
  export * from './User';
10
+ export * from './webhook';
@@ -23,4 +23,5 @@ __exportStar(require("./webhook/SubscriptionFilter"), exports);
23
23
  __exportStar(require("./Label"), exports);
24
24
  __exportStar(require("./Attachment"), exports);
25
25
  __exportStar(require("./User"), exports);
26
+ __exportStar(require("./webhook"), exports);
26
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B;AAC/B,4CAA0B;AAC1B,mEAAiD;AACjD,8CAA4B;AAC5B,+DAA6C;AAC7C,0CAAwB;AACxB,+CAA6B;AAC7B,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,iDAA+B;AAC/B,4CAA0B;AAC1B,mEAAiD;AACjD,8CAA4B;AAC5B,+DAA6C;AAC7C,0CAAwB;AACxB,+CAA6B;AAC7B,yCAAuB;AACvB,4CAA0B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cv-contracts",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Carbon Voice Contracts",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",