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
@@ -108,52 +108,37 @@ export declare const WebhookAIPromptResponseGeneratedSchema: {
108
108
  id: {
109
109
  type: string;
110
110
  };
111
- type: {
112
- $ref: string;
113
- };
114
- kind: {
115
- anyOf: ({
116
- enum: string[];
117
- type: string;
118
- } | {
119
- type: string;
120
- enum?: undefined;
121
- })[];
111
+ name: {
112
+ type: string[];
122
113
  };
123
- created_at: {
114
+ link: {
124
115
  type: string;
125
116
  };
126
- updated_at: {
117
+ creator_id: {
127
118
  type: string;
128
119
  };
129
- deleted_at: {
130
- type: string[];
131
- };
132
120
  conversation_id: {
133
121
  type: string[];
134
122
  };
135
123
  workspace_id: {
136
- type: string;
124
+ type: string[];
137
125
  };
138
- creator_id: {
126
+ created_at: {
139
127
  type: string;
140
128
  };
141
- status: {
142
- $ref: string;
129
+ last_updated_at: {
130
+ type: string;
143
131
  };
144
- parent_message_id: {
132
+ deleted_at: {
145
133
  type: string[];
146
134
  };
147
- attachments: {
135
+ duration_ms: {
148
136
  type: string;
149
- items: {
150
- $ref: string;
151
- };
152
137
  };
153
- language: {
138
+ audio_url: {
154
139
  type: string[];
155
140
  };
156
- is_original_language: {
141
+ audio_stream_url: {
157
142
  type: string[];
158
143
  };
159
144
  transcript: {
@@ -162,58 +147,34 @@ export declare const WebhookAIPromptResponseGeneratedSchema: {
162
147
  ai_summary: {
163
148
  type: string[];
164
149
  };
165
- ai_response_ids: {
150
+ has_ai_summary: {
166
151
  type: string;
167
- items: {
168
- $ref: string;
169
- };
170
152
  };
171
- share_link_id: {
153
+ waveform_url: {
172
154
  type: string[];
173
155
  };
174
- link: {
175
- type: string;
176
- };
177
- time_codes: {
156
+ reply_count: {
178
157
  type: string;
179
- items: {
180
- $ref: string;
181
- };
182
158
  };
183
- waveform_percentages: {
184
- type: string;
185
- items: {
186
- type: string;
187
- };
188
- };
189
- folder_id: {
159
+ parent_message_id: {
190
160
  type: string[];
191
161
  };
192
- utm_data: {
193
- anyOf: ({
194
- $ref: string;
195
- type?: undefined;
196
- } | {
197
- type: string;
198
- $ref?: undefined;
199
- })[];
200
- };
201
- conversation_sequence: {
162
+ language: {
202
163
  type: string[];
203
164
  };
204
- source_message_id: {
205
- type: string[];
165
+ status: {
166
+ $ref: string;
206
167
  };
207
- audio: {
208
- anyOf: ({
168
+ attachments: {
169
+ type: string;
170
+ items: {
209
171
  $ref: string;
210
- type?: undefined;
211
- } | {
212
- type: string;
213
- $ref?: undefined;
214
- })[];
172
+ };
215
173
  };
216
- users_caught_up: {
174
+ type: {
175
+ $ref: string;
176
+ };
177
+ kind: {
217
178
  anyOf: ({
218
179
  enum: string[];
219
180
  type: string;
@@ -222,34 +183,13 @@ export declare const WebhookAIPromptResponseGeneratedSchema: {
222
183
  enum?: undefined;
223
184
  })[];
224
185
  };
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
- })[];
186
+ share_link_id: {
187
+ type: string;
244
188
  };
245
189
  };
246
190
  additionalProperties: boolean;
247
191
  required: string[];
248
192
  };
249
- MessageType: {
250
- type: string;
251
- enum: string[];
252
- };
253
193
  MessageStatus: {
254
194
  type: string;
255
195
  enum: string[];
@@ -272,6 +212,12 @@ export declare const WebhookAIPromptResponseGeneratedSchema: {
272
212
  link: {
273
213
  type: string;
274
214
  };
215
+ active_begin: {
216
+ type: string[];
217
+ };
218
+ active_end: {
219
+ type: string[];
220
+ };
275
221
  filename: {
276
222
  type: string[];
277
223
  };
@@ -281,6 +227,7 @@ export declare const WebhookAIPromptResponseGeneratedSchema: {
281
227
  length_in_bytes: {
282
228
  type: string[];
283
229
  };
230
+ location: {};
284
231
  };
285
232
  additionalProperties: boolean;
286
233
  required: string[];
@@ -289,127 +236,9 @@ export declare const WebhookAIPromptResponseGeneratedSchema: {
289
236
  type: string;
290
237
  enum: string[];
291
238
  };
292
- MessageAIResponse: {
293
- type: 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: {
239
+ MessageType: {
399
240
  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[];
241
+ enum: string[];
413
242
  };
414
243
  User: {
415
244
  type: string;
@@ -119,62 +119,38 @@ exports.WebhookAIPromptResponseGeneratedSchema = {
119
119
  id: {
120
120
  type: 'string',
121
121
  },
122
- type: {
123
- $ref: '#/definitions/MessageType',
124
- },
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
- ],
122
+ name: {
123
+ type: ['null', 'string'],
142
124
  },
143
- created_at: {
125
+ link: {
144
126
  type: 'string',
145
127
  },
146
- updated_at: {
128
+ creator_id: {
147
129
  type: 'string',
148
130
  },
149
- deleted_at: {
150
- type: ['null', 'string'],
151
- },
152
131
  conversation_id: {
153
132
  type: ['null', 'string'],
154
133
  },
155
134
  workspace_id: {
156
- type: 'string',
135
+ type: ['null', 'string'],
157
136
  },
158
- creator_id: {
137
+ created_at: {
159
138
  type: 'string',
160
139
  },
161
- status: {
162
- $ref: '#/definitions/MessageStatus',
140
+ last_updated_at: {
141
+ type: 'string',
163
142
  },
164
- parent_message_id: {
143
+ deleted_at: {
165
144
  type: ['null', 'string'],
166
145
  },
167
- attachments: {
168
- type: 'array',
169
- items: {
170
- $ref: '#/definitions/Attachment',
171
- },
146
+ duration_ms: {
147
+ type: 'number',
172
148
  },
173
- language: {
149
+ audio_url: {
174
150
  type: ['null', 'string'],
175
151
  },
176
- is_original_language: {
177
- type: ['null', 'boolean'],
152
+ audio_stream_url: {
153
+ type: ['null', 'string'],
178
154
  },
179
155
  transcript: {
180
156
  type: ['null', 'string'],
@@ -182,63 +158,44 @@ exports.WebhookAIPromptResponseGeneratedSchema = {
182
158
  ai_summary: {
183
159
  type: ['null', 'string'],
184
160
  },
185
- ai_response_ids: {
186
- type: 'array',
187
- items: {
188
- $ref: '#/definitions/MessageAIResponse',
189
- },
161
+ has_ai_summary: {
162
+ type: 'boolean',
190
163
  },
191
- share_link_id: {
164
+ waveform_url: {
192
165
  type: ['null', 'string'],
193
166
  },
194
- link: {
195
- type: 'string',
196
- },
197
- time_codes: {
198
- type: 'array',
199
- items: {
200
- $ref: '#/definitions/MessageTimeCode',
201
- },
202
- },
203
- waveform_percentages: {
204
- type: 'array',
205
- items: {
206
- type: 'number',
207
- },
167
+ reply_count: {
168
+ type: 'number',
208
169
  },
209
- folder_id: {
170
+ parent_message_id: {
210
171
  type: ['null', 'string'],
211
172
  },
212
- utm_data: {
213
- anyOf: [
214
- {
215
- $ref: '#/definitions/UtmData',
216
- },
217
- {
218
- type: 'null',
219
- },
220
- ],
173
+ language: {
174
+ type: ['null', 'string'],
221
175
  },
222
- conversation_sequence: {
223
- type: ['null', 'number'],
176
+ status: {
177
+ $ref: '#/definitions/MessageStatus',
224
178
  },
225
- source_message_id: {
226
- type: ['null', 'string'],
179
+ attachments: {
180
+ type: 'array',
181
+ items: {
182
+ $ref: '#/definitions/Attachment',
183
+ },
227
184
  },
228
- audio: {
229
- anyOf: [
230
- {
231
- $ref: '#/definitions/AudioInfo',
232
- },
233
- {
234
- type: 'null',
235
- },
236
- ],
185
+ type: {
186
+ $ref: '#/definitions/MessageType',
237
187
  },
238
- users_caught_up: {
188
+ kind: {
239
189
  anyOf: [
240
190
  {
241
- enum: ['all', 'none', 'some'],
191
+ enum: [
192
+ 'action-item',
193
+ 'ai-prompt',
194
+ 'ai-response',
195
+ 'attachment',
196
+ 'audio',
197
+ 'text',
198
+ ],
242
199
  type: 'string',
243
200
  },
244
201
  {
@@ -246,46 +203,23 @@ exports.WebhookAIPromptResponseGeneratedSchema = {
246
203
  },
247
204
  ],
248
205
  },
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
- ],
206
+ share_link_id: {
207
+ type: 'string',
271
208
  },
272
209
  },
273
210
  additionalProperties: false,
274
211
  required: [
275
212
  'created_at',
276
213
  'creator_id',
214
+ 'duration_ms',
277
215
  'id',
216
+ 'last_updated_at',
278
217
  'link',
218
+ 'reply_count',
279
219
  'status',
280
220
  'type',
281
- 'updated_at',
282
- 'workspace_id',
283
221
  ],
284
222
  },
285
- MessageType: {
286
- type: 'string',
287
- enum: ['channel', 'prerecorded', 'voicememo', 'stored', 'welcome'],
288
- },
289
223
  MessageStatus: {
290
224
  type: 'string',
291
225
  enum: [
@@ -320,6 +254,12 @@ exports.WebhookAIPromptResponseGeneratedSchema = {
320
254
  link: {
321
255
  type: 'string',
322
256
  },
257
+ active_begin: {
258
+ type: ['null', 'string'],
259
+ },
260
+ active_end: {
261
+ type: ['null', 'string'],
262
+ },
323
263
  filename: {
324
264
  type: ['null', 'string'],
325
265
  },
@@ -329,6 +269,7 @@ exports.WebhookAIPromptResponseGeneratedSchema = {
329
269
  length_in_bytes: {
330
270
  type: ['null', 'number'],
331
271
  },
272
+ location: {},
332
273
  },
333
274
  additionalProperties: false,
334
275
  required: ['created_at', 'creator_id', 'id', 'link', 'type'],
@@ -344,127 +285,9 @@ exports.WebhookAIPromptResponseGeneratedSchema = {
344
285
  'action-item-id',
345
286
  ],
346
287
  },
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'],
288
+ MessageType: {
289
+ type: 'string',
290
+ enum: ['channel', 'prerecorded', 'voicememo', 'stored', 'welcome'],
468
291
  },
469
292
  User: {
470
293
  type: 'object',