cv-contracts 1.0.43 → 2.0.1

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