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
@@ -89,52 +89,37 @@ export declare const MessageShareLinkSchema: {
89
89
  id: {
90
90
  type: string;
91
91
  };
92
- type: {
93
- $ref: string;
94
- };
95
- kind: {
96
- anyOf: ({
97
- enum: string[];
98
- type: string;
99
- } | {
100
- type: string;
101
- enum?: undefined;
102
- })[];
92
+ name: {
93
+ type: string[];
103
94
  };
104
- created_at: {
95
+ link: {
105
96
  type: string;
106
97
  };
107
- updated_at: {
98
+ creator_id: {
108
99
  type: string;
109
100
  };
110
- deleted_at: {
111
- type: string[];
112
- };
113
101
  conversation_id: {
114
102
  type: string[];
115
103
  };
116
104
  workspace_id: {
117
- type: string;
105
+ type: string[];
118
106
  };
119
- creator_id: {
107
+ created_at: {
120
108
  type: string;
121
109
  };
122
- status: {
123
- $ref: string;
110
+ last_updated_at: {
111
+ type: string;
124
112
  };
125
- parent_message_id: {
113
+ deleted_at: {
126
114
  type: string[];
127
115
  };
128
- attachments: {
116
+ duration_ms: {
129
117
  type: string;
130
- items: {
131
- $ref: string;
132
- };
133
118
  };
134
- language: {
119
+ audio_url: {
135
120
  type: string[];
136
121
  };
137
- is_original_language: {
122
+ audio_stream_url: {
138
123
  type: string[];
139
124
  };
140
125
  transcript: {
@@ -143,58 +128,34 @@ export declare const MessageShareLinkSchema: {
143
128
  ai_summary: {
144
129
  type: string[];
145
130
  };
146
- ai_response_ids: {
131
+ has_ai_summary: {
147
132
  type: string;
148
- items: {
149
- $ref: string;
150
- };
151
133
  };
152
- share_link_id: {
134
+ waveform_url: {
153
135
  type: string[];
154
136
  };
155
- link: {
137
+ reply_count: {
156
138
  type: string;
157
139
  };
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: {
140
+ parent_message_id: {
171
141
  type: string[];
172
142
  };
173
- utm_data: {
174
- anyOf: ({
175
- $ref: string;
176
- type?: undefined;
177
- } | {
178
- type: string;
179
- $ref?: undefined;
180
- })[];
181
- };
182
- conversation_sequence: {
143
+ language: {
183
144
  type: string[];
184
145
  };
185
- source_message_id: {
186
- type: string[];
146
+ status: {
147
+ $ref: string;
187
148
  };
188
- audio: {
189
- anyOf: ({
149
+ attachments: {
150
+ type: string;
151
+ items: {
190
152
  $ref: string;
191
- type?: undefined;
192
- } | {
193
- type: string;
194
- $ref?: undefined;
195
- })[];
153
+ };
154
+ };
155
+ type: {
156
+ $ref: string;
196
157
  };
197
- users_caught_up: {
158
+ kind: {
198
159
  anyOf: ({
199
160
  enum: string[];
200
161
  type: string;
@@ -203,34 +164,13 @@ export declare const MessageShareLinkSchema: {
203
164
  enum?: undefined;
204
165
  })[];
205
166
  };
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
- })[];
167
+ share_link_id: {
168
+ type: string;
225
169
  };
226
170
  };
227
171
  additionalProperties: boolean;
228
172
  required: string[];
229
173
  };
230
- MessageType: {
231
- type: string;
232
- enum: string[];
233
- };
234
174
  MessageStatus: {
235
175
  type: string;
236
176
  enum: string[];
@@ -253,6 +193,12 @@ export declare const MessageShareLinkSchema: {
253
193
  link: {
254
194
  type: string;
255
195
  };
196
+ active_begin: {
197
+ type: string[];
198
+ };
199
+ active_end: {
200
+ type: string[];
201
+ };
256
202
  filename: {
257
203
  type: string[];
258
204
  };
@@ -262,6 +208,7 @@ export declare const MessageShareLinkSchema: {
262
208
  length_in_bytes: {
263
209
  type: string[];
264
210
  };
211
+ location: {};
265
212
  };
266
213
  additionalProperties: boolean;
267
214
  required: string[];
@@ -270,127 +217,9 @@ export declare const MessageShareLinkSchema: {
270
217
  type: string;
271
218
  enum: string[];
272
219
  };
273
- MessageAIResponse: {
274
- type: 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: {
220
+ MessageType: {
380
221
  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[];
222
+ enum: string[];
394
223
  };
395
224
  };
396
225
  $schema: string;
@@ -103,62 +103,38 @@ exports.MessageShareLinkSchema = {
103
103
  id: {
104
104
  type: 'string',
105
105
  },
106
- type: {
107
- $ref: '#/definitions/MessageType',
108
- },
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
- ],
106
+ name: {
107
+ type: ['null', 'string'],
126
108
  },
127
- created_at: {
109
+ link: {
128
110
  type: 'string',
129
111
  },
130
- updated_at: {
112
+ creator_id: {
131
113
  type: 'string',
132
114
  },
133
- deleted_at: {
134
- type: ['null', 'string'],
135
- },
136
115
  conversation_id: {
137
116
  type: ['null', 'string'],
138
117
  },
139
118
  workspace_id: {
140
- type: 'string',
119
+ type: ['null', 'string'],
141
120
  },
142
- creator_id: {
121
+ created_at: {
143
122
  type: 'string',
144
123
  },
145
- status: {
146
- $ref: '#/definitions/MessageStatus',
124
+ last_updated_at: {
125
+ type: 'string',
147
126
  },
148
- parent_message_id: {
127
+ deleted_at: {
149
128
  type: ['null', 'string'],
150
129
  },
151
- attachments: {
152
- type: 'array',
153
- items: {
154
- $ref: '#/definitions/Attachment',
155
- },
130
+ duration_ms: {
131
+ type: 'number',
156
132
  },
157
- language: {
133
+ audio_url: {
158
134
  type: ['null', 'string'],
159
135
  },
160
- is_original_language: {
161
- type: ['null', 'boolean'],
136
+ audio_stream_url: {
137
+ type: ['null', 'string'],
162
138
  },
163
139
  transcript: {
164
140
  type: ['null', 'string'],
@@ -166,63 +142,44 @@ exports.MessageShareLinkSchema = {
166
142
  ai_summary: {
167
143
  type: ['null', 'string'],
168
144
  },
169
- ai_response_ids: {
170
- type: 'array',
171
- items: {
172
- $ref: '#/definitions/MessageAIResponse',
173
- },
145
+ has_ai_summary: {
146
+ type: 'boolean',
174
147
  },
175
- share_link_id: {
148
+ waveform_url: {
176
149
  type: ['null', 'string'],
177
150
  },
178
- link: {
179
- type: 'string',
180
- },
181
- time_codes: {
182
- type: 'array',
183
- items: {
184
- $ref: '#/definitions/MessageTimeCode',
185
- },
186
- },
187
- waveform_percentages: {
188
- type: 'array',
189
- items: {
190
- type: 'number',
191
- },
151
+ reply_count: {
152
+ type: 'number',
192
153
  },
193
- folder_id: {
154
+ parent_message_id: {
194
155
  type: ['null', 'string'],
195
156
  },
196
- utm_data: {
197
- anyOf: [
198
- {
199
- $ref: '#/definitions/UtmData',
200
- },
201
- {
202
- type: 'null',
203
- },
204
- ],
157
+ language: {
158
+ type: ['null', 'string'],
205
159
  },
206
- conversation_sequence: {
207
- type: ['null', 'number'],
160
+ status: {
161
+ $ref: '#/definitions/MessageStatus',
208
162
  },
209
- source_message_id: {
210
- type: ['null', 'string'],
163
+ attachments: {
164
+ type: 'array',
165
+ items: {
166
+ $ref: '#/definitions/Attachment',
167
+ },
211
168
  },
212
- audio: {
213
- anyOf: [
214
- {
215
- $ref: '#/definitions/AudioInfo',
216
- },
217
- {
218
- type: 'null',
219
- },
220
- ],
169
+ type: {
170
+ $ref: '#/definitions/MessageType',
221
171
  },
222
- users_caught_up: {
172
+ kind: {
223
173
  anyOf: [
224
174
  {
225
- enum: ['all', 'none', 'some'],
175
+ enum: [
176
+ 'action-item',
177
+ 'ai-prompt',
178
+ 'ai-response',
179
+ 'attachment',
180
+ 'audio',
181
+ 'text',
182
+ ],
226
183
  type: 'string',
227
184
  },
228
185
  {
@@ -230,46 +187,23 @@ exports.MessageShareLinkSchema = {
230
187
  },
231
188
  ],
232
189
  },
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
- ],
190
+ share_link_id: {
191
+ type: 'string',
255
192
  },
256
193
  },
257
194
  additionalProperties: false,
258
195
  required: [
259
196
  'created_at',
260
197
  'creator_id',
198
+ 'duration_ms',
261
199
  'id',
200
+ 'last_updated_at',
262
201
  'link',
202
+ 'reply_count',
263
203
  'status',
264
204
  'type',
265
- 'updated_at',
266
- 'workspace_id',
267
205
  ],
268
206
  },
269
- MessageType: {
270
- type: 'string',
271
- enum: ['channel', 'prerecorded', 'voicememo', 'stored', 'welcome'],
272
- },
273
207
  MessageStatus: {
274
208
  type: 'string',
275
209
  enum: [
@@ -304,6 +238,12 @@ exports.MessageShareLinkSchema = {
304
238
  link: {
305
239
  type: 'string',
306
240
  },
241
+ active_begin: {
242
+ type: ['null', 'string'],
243
+ },
244
+ active_end: {
245
+ type: ['null', 'string'],
246
+ },
307
247
  filename: {
308
248
  type: ['null', 'string'],
309
249
  },
@@ -313,6 +253,7 @@ exports.MessageShareLinkSchema = {
313
253
  length_in_bytes: {
314
254
  type: ['null', 'number'],
315
255
  },
256
+ location: {},
316
257
  },
317
258
  additionalProperties: false,
318
259
  required: ['created_at', 'creator_id', 'id', 'link', 'type'],
@@ -328,127 +269,9 @@ exports.MessageShareLinkSchema = {
328
269
  'action-item-id',
329
270
  ],
330
271
  },
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'],
272
+ MessageType: {
273
+ type: 'string',
274
+ enum: ['channel', 'prerecorded', 'voicememo', 'stored', 'welcome'],
452
275
  },
453
276
  },
454
277
  $schema: 'http://json-schema.org/draft-07/schema#',