cv-contracts 2.0.1 → 2.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.
Files changed (48) hide show
  1. package/dist/interfaces/Attachment.d.ts +3 -0
  2. package/dist/interfaces/AttachmentV2.d.ts +11 -0
  3. package/dist/interfaces/AttachmentV2.js +3 -0
  4. package/dist/interfaces/AttachmentV2.js.map +1 -0
  5. package/dist/interfaces/GetMessageResponseV2.d.ts +4 -0
  6. package/dist/interfaces/GetMessageResponseV2.js +3 -0
  7. package/dist/interfaces/GetMessageResponseV2.js.map +1 -0
  8. package/dist/interfaces/Message.d.ts +20 -64
  9. package/dist/interfaces/MessageV3.d.ts +72 -0
  10. package/dist/interfaces/MessageV3.js +3 -0
  11. package/dist/interfaces/MessageV3.js.map +1 -0
  12. package/dist/interfaces/index.d.ts +3 -0
  13. package/dist/interfaces/index.js +3 -0
  14. package/dist/interfaces/index.js.map +1 -1
  15. package/dist/schemas/AttachmentSchema.d.ts +11 -1
  16. package/dist/schemas/AttachmentSchema.js +10 -0
  17. package/dist/schemas/AttachmentSchema.js.map +1 -1
  18. package/dist/schemas/AttachmentV2Schema.d.ts +48 -0
  19. package/dist/schemas/AttachmentV2Schema.js +60 -0
  20. package/dist/schemas/AttachmentV2Schema.js.map +1 -0
  21. package/dist/schemas/GetMessageResponseSchema.d.ts +38 -209
  22. package/dist/schemas/GetMessageResponseSchema.js +55 -232
  23. package/dist/schemas/GetMessageResponseSchema.js.map +1 -1
  24. package/dist/schemas/GetMessageResponseV2Schema.d.ts +325 -0
  25. package/dist/schemas/GetMessageResponseV2Schema.js +374 -0
  26. package/dist/schemas/GetMessageResponseV2Schema.js.map +1 -0
  27. package/dist/schemas/MessageSchema.d.ts +57 -233
  28. package/dist/schemas/MessageSchema.js +73 -255
  29. package/dist/schemas/MessageSchema.js.map +1 -1
  30. package/dist/schemas/MessageShareLinkSchema.d.ts +38 -209
  31. package/dist/schemas/MessageShareLinkSchema.js +55 -232
  32. package/dist/schemas/MessageShareLinkSchema.js.map +1 -1
  33. package/dist/schemas/MessageV3Schema.d.ts +343 -0
  34. package/dist/schemas/MessageV3Schema.js +392 -0
  35. package/dist/schemas/MessageV3Schema.js.map +1 -0
  36. package/dist/schemas/index.d.ts +6 -3
  37. package/dist/schemas/index.js +6 -3
  38. package/dist/schemas/index.js.map +1 -1
  39. package/dist/schemas/webhook/WebhookAIPromptResponseGeneratedSchema.d.ts +38 -209
  40. package/dist/schemas/webhook/WebhookAIPromptResponseGeneratedSchema.js +55 -232
  41. package/dist/schemas/webhook/WebhookAIPromptResponseGeneratedSchema.js.map +1 -1
  42. package/dist/schemas/webhook/WebhookLabelAddedToMessageSchema.d.ts +38 -209
  43. package/dist/schemas/webhook/WebhookLabelAddedToMessageSchema.js +55 -232
  44. package/dist/schemas/webhook/WebhookLabelAddedToMessageSchema.js.map +1 -1
  45. package/dist/schemas/webhook/WebhookMessageSchema.d.ts +7 -0
  46. package/dist/schemas/webhook/WebhookMessageSchema.js +7 -0
  47. package/dist/schemas/webhook/WebhookMessageSchema.js.map +1 -1
  48. package/package.json +1 -1
@@ -4,52 +4,37 @@ export declare const MessageSchema: {
4
4
  id: {
5
5
  type: string;
6
6
  };
7
- type: {
8
- $ref: string;
9
- };
10
- kind: {
11
- anyOf: ({
12
- enum: string[];
13
- type: string;
14
- } | {
15
- type: string;
16
- enum?: undefined;
17
- })[];
7
+ name: {
8
+ type: string[];
18
9
  };
19
- created_at: {
10
+ link: {
20
11
  type: string;
21
12
  };
22
- updated_at: {
13
+ creator_id: {
23
14
  type: string;
24
15
  };
25
- deleted_at: {
26
- type: string[];
27
- };
28
16
  conversation_id: {
29
17
  type: string[];
30
18
  };
31
19
  workspace_id: {
32
- type: string;
20
+ type: string[];
33
21
  };
34
- creator_id: {
22
+ created_at: {
35
23
  type: string;
36
24
  };
37
- status: {
38
- $ref: string;
25
+ last_updated_at: {
26
+ type: string;
39
27
  };
40
- parent_message_id: {
28
+ deleted_at: {
41
29
  type: string[];
42
30
  };
43
- attachments: {
31
+ duration_ms: {
44
32
  type: string;
45
- items: {
46
- $ref: string;
47
- };
48
33
  };
49
- language: {
34
+ audio_url: {
50
35
  type: string[];
51
36
  };
52
- is_original_language: {
37
+ audio_stream_url: {
53
38
  type: string[];
54
39
  };
55
40
  transcript: {
@@ -58,58 +43,34 @@ export declare const MessageSchema: {
58
43
  ai_summary: {
59
44
  type: string[];
60
45
  };
61
- ai_response_ids: {
46
+ has_ai_summary: {
62
47
  type: string;
63
- items: {
64
- $ref: string;
65
- };
66
48
  };
67
- share_link_id: {
49
+ waveform_url: {
68
50
  type: string[];
69
51
  };
70
- link: {
52
+ reply_count: {
71
53
  type: string;
72
54
  };
73
- time_codes: {
74
- type: string;
75
- items: {
76
- $ref: string;
77
- };
78
- };
79
- waveform_percentages: {
80
- type: string;
81
- items: {
82
- type: string;
83
- };
84
- };
85
- folder_id: {
55
+ parent_message_id: {
86
56
  type: string[];
87
57
  };
88
- utm_data: {
89
- anyOf: ({
90
- $ref: string;
91
- type?: undefined;
92
- } | {
93
- type: string;
94
- $ref?: undefined;
95
- })[];
96
- };
97
- conversation_sequence: {
58
+ language: {
98
59
  type: string[];
99
60
  };
100
- source_message_id: {
101
- type: string[];
61
+ status: {
62
+ $ref: string;
102
63
  };
103
- audio: {
104
- anyOf: ({
64
+ attachments: {
65
+ type: string;
66
+ items: {
105
67
  $ref: string;
106
- type?: undefined;
107
- } | {
108
- type: string;
109
- $ref?: undefined;
110
- })[];
68
+ };
69
+ };
70
+ type: {
71
+ $ref: string;
111
72
  };
112
- users_caught_up: {
73
+ kind: {
113
74
  anyOf: ({
114
75
  enum: string[];
115
76
  type: string;
@@ -118,34 +79,13 @@ export declare const MessageSchema: {
118
79
  enum?: undefined;
119
80
  })[];
120
81
  };
121
- reaction_summary: {
122
- anyOf: ({
123
- $ref: string;
124
- type?: undefined;
125
- } | {
126
- type: string;
127
- $ref?: undefined;
128
- })[];
129
- };
130
- users_not_allowed_to_receive_notifications: {
131
- anyOf: ({
132
- type: string;
133
- items: {
134
- $ref: string;
135
- };
136
- } | {
137
- type: string;
138
- items?: undefined;
139
- })[];
82
+ share_link_id: {
83
+ type: string;
140
84
  };
141
85
  };
142
86
  additionalProperties: boolean;
143
87
  required: string[];
144
88
  definitions: {
145
- MessageType: {
146
- type: string;
147
- enum: string[];
148
- };
149
89
  MessageStatus: {
150
90
  type: string;
151
91
  enum: string[];
@@ -168,6 +108,12 @@ export declare const MessageSchema: {
168
108
  link: {
169
109
  type: string;
170
110
  };
111
+ active_begin: {
112
+ type: string[];
113
+ };
114
+ active_end: {
115
+ type: string[];
116
+ };
171
117
  filename: {
172
118
  type: string[];
173
119
  };
@@ -177,6 +123,7 @@ export declare const MessageSchema: {
177
123
  length_in_bytes: {
178
124
  type: string[];
179
125
  };
126
+ location: {};
180
127
  };
181
128
  additionalProperties: boolean;
182
129
  required: string[];
@@ -185,159 +132,36 @@ export declare const MessageSchema: {
185
132
  type: string;
186
133
  enum: string[];
187
134
  };
188
- MessageAIResponse: {
189
- type: string;
190
- properties: {
191
- id: {
192
- type: string;
193
- };
194
- prompt_id: {
195
- type: string;
196
- };
197
- };
198
- additionalProperties: boolean;
199
- required: string[];
200
- };
201
- MessageTimeCode: {
202
- type: string;
203
- properties: {
204
- t: {
205
- type: string;
206
- };
207
- s: {
208
- type: string;
209
- };
210
- e: {
211
- type: string;
212
- };
213
- };
214
- additionalProperties: boolean;
215
- required: string[];
216
- };
217
- UtmData: {
218
- type: string;
219
- properties: {
220
- utm_source: {
221
- type: string[];
222
- };
223
- utm_medium: {
224
- type: string[];
225
- };
226
- utm_campaign: {
227
- type: string[];
228
- };
229
- utm_content: {
230
- type: string[];
231
- };
232
- utm_term: {
233
- type: string[];
234
- };
235
- };
236
- additionalProperties: boolean;
237
- };
238
- AudioInfo: {
239
- type: string;
240
- properties: {
241
- url: {
242
- type: string[];
243
- };
244
- streaming_url: {
245
- type: string[];
246
- };
247
- presigned_url: {
248
- type: string[];
249
- };
250
- presigned_url_expiration_date: {
251
- type: string[];
252
- };
253
- duration_ms: {
254
- type: string[];
255
- };
256
- };
257
- additionalProperties: boolean;
258
- };
259
- ReactionSummary: {
260
- type: string;
261
- properties: {
262
- reaction_counts: {
263
- $ref: string;
264
- };
265
- top_user_reactions: {
266
- type: string;
267
- items: {
268
- $ref: string;
269
- };
270
- };
271
- };
272
- additionalProperties: boolean;
273
- required: string[];
274
- };
275
- ReactionCounts: {
276
- type: string;
277
- additionalProperties: {
278
- type: string;
279
- };
280
- };
281
- UserReaction: {
282
- type: string;
283
- properties: {
284
- user_id: {
285
- type: string;
286
- };
287
- reaction_id: {
288
- type: string;
289
- };
290
- };
291
- additionalProperties: boolean;
292
- required: string[];
293
- };
294
- UserNotAllowedReceiveNotifications: {
135
+ MessageType: {
295
136
  type: string;
296
- properties: {
297
- user_id: {
298
- type: string;
299
- };
300
- phone: {
301
- type: string;
302
- };
303
- email: {
304
- type: string;
305
- };
306
- };
307
- additionalProperties: boolean;
308
- required: string[];
137
+ enum: string[];
309
138
  };
310
139
  };
311
140
  $schema: string;
312
141
  };
313
142
  export declare enum MessageKeys {
314
143
  id = "id",
315
- type = "type",
316
- kind = "kind",
317
- created_at = "created_at",
318
- updated_at = "updated_at",
319
- deleted_at = "deleted_at",
144
+ name = "name",
145
+ link = "link",
146
+ creator_id = "creator_id",
320
147
  conversation_id = "conversation_id",
321
148
  workspace_id = "workspace_id",
322
- creator_id = "creator_id",
323
- status = "status",
324
- parent_message_id = "parent_message_id",
325
- attachments = "attachments",
326
- language = "language",
327
- is_original_language = "is_original_language",
149
+ created_at = "created_at",
150
+ last_updated_at = "last_updated_at",
151
+ deleted_at = "deleted_at",
152
+ duration_ms = "duration_ms",
153
+ audio_url = "audio_url",
154
+ audio_stream_url = "audio_stream_url",
328
155
  transcript = "transcript",
329
156
  ai_summary = "ai_summary",
330
- ai_response_ids = "ai_response_ids",
331
- share_link_id = "share_link_id",
332
- link = "link",
333
- time_codes = "time_codes",
334
- waveform_percentages = "waveform_percentages",
335
- folder_id = "folder_id",
336
- utm_data = "utm_data",
337
- conversation_sequence = "conversation_sequence",
338
- source_message_id = "source_message_id",
339
- audio = "audio",
340
- users_caught_up = "users_caught_up",
341
- reaction_summary = "reaction_summary",
342
- users_not_allowed_to_receive_notifications = "users_not_allowed_to_receive_notifications"
157
+ has_ai_summary = "has_ai_summary",
158
+ waveform_url = "waveform_url",
159
+ reply_count = "reply_count",
160
+ parent_message_id = "parent_message_id",
161
+ language = "language",
162
+ status = "status",
163
+ attachments = "attachments",
164
+ type = "type",
165
+ kind = "kind",
166
+ share_link_id = "share_link_id"
343
167
  }