cv-contracts 2.0.1 → 2.0.2

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