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