cv-contracts 1.0.19 → 1.0.21

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 (26) hide show
  1. package/dist/enums/webhook/ResourceType.d.ts +5 -1
  2. package/dist/enums/webhook/ResourceType.js +4 -0
  3. package/dist/enums/webhook/ResourceType.js.map +1 -1
  4. package/dist/interfaces/webhook/WebhookAIPromptResponse.d.ts +5 -12
  5. package/dist/interfaces/webhook/{WebhookWorkspaceLevelLabelAddedToMessage.d.ts → WebhookLabelAddedToMessage.d.ts} +1 -1
  6. package/dist/interfaces/webhook/{WebhookWorkspaceLevelAIPromptResponse.js → WebhookLabelAddedToMessage.js} +1 -1
  7. package/dist/interfaces/webhook/WebhookLabelAddedToMessage.js.map +1 -0
  8. package/dist/interfaces/webhook/index.d.ts +1 -2
  9. package/dist/interfaces/webhook/index.js +1 -2
  10. package/dist/interfaces/webhook/index.js.map +1 -1
  11. package/dist/schemas/webhook/WebhookAIPromptResponseGeneratedSchema.d.ts +448 -0
  12. package/dist/schemas/webhook/WebhookAIPromptResponseGeneratedSchema.js +518 -0
  13. package/dist/schemas/webhook/WebhookAIPromptResponseGeneratedSchema.js.map +1 -0
  14. package/dist/schemas/webhook/WebhookLabelAddedToMessageSchema.d.ts +397 -0
  15. package/dist/schemas/webhook/WebhookLabelAddedToMessageSchema.js +458 -0
  16. package/dist/schemas/webhook/WebhookLabelAddedToMessageSchema.js.map +1 -0
  17. package/dist/schemas/webhook/WebhookPayloadSchema.js +4 -0
  18. package/dist/schemas/webhook/WebhookPayloadSchema.js.map +1 -1
  19. package/dist/schemas/webhook/index.d.ts +2 -3
  20. package/dist/schemas/webhook/index.js +2 -3
  21. package/dist/schemas/webhook/index.js.map +1 -1
  22. package/package.json +1 -1
  23. package/dist/interfaces/webhook/WebhookWorkspaceLevelAIPromptResponse.d.ts +0 -6
  24. package/dist/interfaces/webhook/WebhookWorkspaceLevelAIPromptResponse.js.map +0 -1
  25. package/dist/interfaces/webhook/WebhookWorkspaceLevelLabelAddedToMessage.js +0 -3
  26. package/dist/interfaces/webhook/WebhookWorkspaceLevelLabelAddedToMessage.js.map +0 -1
@@ -1,5 +1,6 @@
1
1
  export declare enum ResourceType {
2
2
  Message = "Message",
3
+ MessageLabelAdded = "MessageLabelAdded",
3
4
  Channel = "Channel",
4
5
  ChannelUsersAdded = "ChannelUsersAdded",
5
6
  ChannelUserJoined = "ChannelUserJoined",
@@ -7,7 +8,10 @@ export declare enum ResourceType {
7
8
  ChannelUserLeft = "ChannelUserLeft",
8
9
  Workspace = "Workspace",
9
10
  WorkspaceUserJoined = "WorkspaceUserJoined",
11
+ WorkspaceUserAdded = "WorkspaceUserAdded",
10
12
  WorkspaceUserRemoved = "WorkspaceUserRemoved",
11
13
  WorkspaceUserLeft = "WorkspaceUserLeft",
12
- WorkspaceFindableChannelCreated = "WorkspaceFindableChannelCreated"
14
+ WorkspaceFindableChannelCreated = "WorkspaceFindableChannelCreated",
15
+ AIPromptResponseGenerated = "AIPromptResponseGenerated",
16
+ WorkspaceLevelAIPromptResponseGenerated = "WorkspaceLevelAIPromptResponseGenerated"
13
17
  }
@@ -4,6 +4,7 @@ exports.ResourceType = void 0;
4
4
  var ResourceType;
5
5
  (function (ResourceType) {
6
6
  ResourceType["Message"] = "Message";
7
+ ResourceType["MessageLabelAdded"] = "MessageLabelAdded";
7
8
  ResourceType["Channel"] = "Channel";
8
9
  ResourceType["ChannelUsersAdded"] = "ChannelUsersAdded";
9
10
  ResourceType["ChannelUserJoined"] = "ChannelUserJoined";
@@ -11,8 +12,11 @@ var ResourceType;
11
12
  ResourceType["ChannelUserLeft"] = "ChannelUserLeft";
12
13
  ResourceType["Workspace"] = "Workspace";
13
14
  ResourceType["WorkspaceUserJoined"] = "WorkspaceUserJoined";
15
+ ResourceType["WorkspaceUserAdded"] = "WorkspaceUserAdded";
14
16
  ResourceType["WorkspaceUserRemoved"] = "WorkspaceUserRemoved";
15
17
  ResourceType["WorkspaceUserLeft"] = "WorkspaceUserLeft";
16
18
  ResourceType["WorkspaceFindableChannelCreated"] = "WorkspaceFindableChannelCreated";
19
+ ResourceType["AIPromptResponseGenerated"] = "AIPromptResponseGenerated";
20
+ ResourceType["WorkspaceLevelAIPromptResponseGenerated"] = "WorkspaceLevelAIPromptResponseGenerated";
17
21
  })(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
18
22
  //# sourceMappingURL=ResourceType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResourceType.js","sourceRoot":"","sources":["../../../src/enums/webhook/ResourceType.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAYX;AAZD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,uDAAuC,CAAA;IACvC,yDAAyC,CAAA;IACzC,mDAAmC,CAAA;IACnC,uCAAuB,CAAA;IACvB,2DAA2C,CAAA;IAC3C,6DAA6C,CAAA;IAC7C,uDAAuC,CAAA;IACvC,mFAAmE,CAAA;AACrE,CAAC,EAZW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAYvB"}
1
+ {"version":3,"file":"ResourceType.js","sourceRoot":"","sources":["../../../src/enums/webhook/ResourceType.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAgBX;AAhBD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,uDAAuC,CAAA;IACvC,yDAAyC,CAAA;IACzC,mDAAmC,CAAA;IACnC,uCAAuB,CAAA;IACvB,2DAA2C,CAAA;IAC3C,yDAAyC,CAAA;IACzC,6DAA6C,CAAA;IAC7C,uDAAuC,CAAA;IACvC,mFAAmE,CAAA;IACnE,uEAAuD,CAAA;IACvD,mGAAmF,CAAA;AACrF,CAAC,EAhBW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAgBvB"}
@@ -1,13 +1,6 @@
1
- import { AIResponseFormat } from '../../enums';
2
- export interface WebhookAIPromptResponse {
3
- id: string;
4
- creator_id: string;
5
- prompt_id: string;
6
- created_at: string;
7
- last_updated_at: string;
8
- responses: Record<string, string>;
9
- response_format: AIResponseFormat;
10
- message_ids: string[];
11
- workspace_id?: string;
12
- channel_id?: string;
1
+ import { AIPromptResponse } from '../AIPromptResponse';
2
+ import { GetMessageResponse } from '../GetMessageResponse';
3
+ export interface WebhookAIPromptResponseGenerated {
4
+ ai_response: AIPromptResponse;
5
+ messages: GetMessageResponse[];
13
6
  }
@@ -1,6 +1,6 @@
1
1
  import { GetMessageResponse } from '../GetMessageResponse';
2
2
  import { Label } from '../Label';
3
- export interface WebhookWorkspaceLevelLabelAddedToMessage {
3
+ export interface WebhookLabelAddedToMessage {
4
4
  label: Label;
5
5
  message: GetMessageResponse;
6
6
  }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=WebhookWorkspaceLevelAIPromptResponse.js.map
3
+ //# sourceMappingURL=WebhookLabelAddedToMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookLabelAddedToMessage.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/WebhookLabelAddedToMessage.ts"],"names":[],"mappings":""}
@@ -16,5 +16,4 @@ export * from './WorkspaceFindableChannelCreated';
16
16
  export * from './SubscribedUserSettings';
17
17
  export * from './SubscriptionFilter';
18
18
  export * from './WebhookAIPromptResponse';
19
- export * from './WebhookWorkspaceLevelAIPromptResponse';
20
- export * from './WebhookWorkspaceLevelLabelAddedToMessage';
19
+ export * from './WebhookLabelAddedToMessage';
@@ -32,6 +32,5 @@ __exportStar(require("./WorkspaceFindableChannelCreated"), exports);
32
32
  __exportStar(require("./SubscribedUserSettings"), exports);
33
33
  __exportStar(require("./SubscriptionFilter"), exports);
34
34
  __exportStar(require("./WebhookAIPromptResponse"), exports);
35
- __exportStar(require("./WebhookWorkspaceLevelAIPromptResponse"), exports);
36
- __exportStar(require("./WebhookWorkspaceLevelLabelAddedToMessage"), exports);
35
+ __exportStar(require("./WebhookLabelAddedToMessage"), exports);
37
36
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,qDAAmC;AACnC,mDAAiC;AACjC,6DAA2C;AAC3C,2DAAyC;AACzC,8DAA4C;AAC5C,6DAA2C;AAC3C,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,gEAA8C;AAC9C,oEAAkD;AAClD,2DAAyC;AACzC,uDAAqC;AACrC,4DAA0C;AAC1C,0EAAwD;AACxD,6EAA2D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/webhook/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,qDAAmC;AACnC,mDAAiC;AACjC,6DAA2C;AAC3C,2DAAyC;AACzC,8DAA4C;AAC5C,6DAA2C;AAC3C,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,gEAA8C;AAC9C,oEAAkD;AAClD,2DAAyC;AACzC,uDAAqC;AACrC,4DAA0C;AAC1C,+DAA6C"}
@@ -0,0 +1,448 @@
1
+ export declare const WebhookAIPromptResponseGeneratedSchema: {
2
+ type: string;
3
+ properties: {
4
+ ai_response: {
5
+ $ref: string;
6
+ };
7
+ messages: {
8
+ type: string;
9
+ items: {
10
+ $ref: string;
11
+ };
12
+ };
13
+ };
14
+ additionalProperties: boolean;
15
+ required: string[];
16
+ definitions: {
17
+ AIPromptResponse: {
18
+ type: string;
19
+ properties: {
20
+ id: {
21
+ type: string;
22
+ };
23
+ creator_id: {
24
+ type: string;
25
+ };
26
+ prompt_id: {
27
+ type: string;
28
+ };
29
+ created_at: {
30
+ type: string;
31
+ };
32
+ last_updated_at: {
33
+ type: string;
34
+ };
35
+ responses: {
36
+ $ref: string;
37
+ };
38
+ response_format: {
39
+ $ref: string;
40
+ };
41
+ message_ids: {
42
+ type: string;
43
+ items: {
44
+ type: string;
45
+ };
46
+ };
47
+ workspace_id: {
48
+ type: string;
49
+ };
50
+ channel_id: {
51
+ type: string;
52
+ };
53
+ };
54
+ additionalProperties: boolean;
55
+ required: string[];
56
+ };
57
+ 'Record<string,string>': {
58
+ type: string;
59
+ additionalProperties: boolean;
60
+ };
61
+ AIResponseFormat: {
62
+ type: string;
63
+ enum: string[];
64
+ };
65
+ GetMessageResponse: {
66
+ type: string;
67
+ properties: {
68
+ message: {
69
+ $ref: string;
70
+ };
71
+ creator: {
72
+ $ref: string;
73
+ };
74
+ conversation: {
75
+ $ref: string;
76
+ };
77
+ labels: {
78
+ type: string;
79
+ items: {
80
+ $ref: string;
81
+ };
82
+ };
83
+ };
84
+ additionalProperties: boolean;
85
+ required: string[];
86
+ };
87
+ Message: {
88
+ type: string;
89
+ properties: {
90
+ id: {
91
+ type: string;
92
+ };
93
+ name: {
94
+ type: string[];
95
+ };
96
+ link: {
97
+ type: string;
98
+ };
99
+ creator_id: {
100
+ type: string;
101
+ };
102
+ conversation_id: {
103
+ type: string[];
104
+ };
105
+ workspace_id: {
106
+ type: string[];
107
+ };
108
+ created_at: {
109
+ type: string;
110
+ };
111
+ last_updated_at: {
112
+ type: string;
113
+ };
114
+ deleted_at: {
115
+ type: string[];
116
+ };
117
+ duration_ms: {
118
+ type: string;
119
+ };
120
+ audio_url: {
121
+ type: string[];
122
+ };
123
+ audio_stream_url: {
124
+ type: string[];
125
+ };
126
+ transcript: {
127
+ type: string[];
128
+ };
129
+ ai_summary: {
130
+ type: string[];
131
+ };
132
+ has_ai_summary: {
133
+ type: string;
134
+ };
135
+ waveform_url: {
136
+ type: string[];
137
+ };
138
+ reply_count: {
139
+ type: string;
140
+ };
141
+ parent_message_id: {
142
+ type: string[];
143
+ };
144
+ language: {
145
+ type: string[];
146
+ };
147
+ status: {
148
+ $ref: string;
149
+ };
150
+ attachments: {
151
+ type: string;
152
+ items: {
153
+ $ref: string;
154
+ };
155
+ };
156
+ type: {
157
+ $ref: string;
158
+ };
159
+ share_link_id: {
160
+ type: string;
161
+ };
162
+ };
163
+ additionalProperties: boolean;
164
+ required: string[];
165
+ };
166
+ MessageStatus: {
167
+ type: string;
168
+ enum: string[];
169
+ };
170
+ Attachment: {
171
+ type: string;
172
+ properties: {
173
+ id: {
174
+ type: string;
175
+ };
176
+ creator_id: {
177
+ type: string;
178
+ };
179
+ created_at: {
180
+ type: string;
181
+ };
182
+ type: {
183
+ $ref: string;
184
+ };
185
+ link: {
186
+ type: string;
187
+ };
188
+ active_begin: {
189
+ type: string[];
190
+ };
191
+ active_end: {
192
+ type: string[];
193
+ };
194
+ filename: {
195
+ type: string[];
196
+ };
197
+ mime_type: {
198
+ type: string[];
199
+ };
200
+ length_in_bytes: {
201
+ type: string[];
202
+ };
203
+ location: {};
204
+ };
205
+ additionalProperties: boolean;
206
+ required: string[];
207
+ };
208
+ AttachmentType: {
209
+ type: string;
210
+ enum: string[];
211
+ };
212
+ MessageType: {
213
+ type: string;
214
+ enum: string[];
215
+ };
216
+ User: {
217
+ type: string;
218
+ properties: {
219
+ id: {
220
+ type: string;
221
+ };
222
+ link: {
223
+ type: string;
224
+ };
225
+ first_name: {
226
+ type: string;
227
+ };
228
+ last_name: {
229
+ type: string;
230
+ };
231
+ full_name: {
232
+ type: string;
233
+ };
234
+ image_url: {
235
+ type: string;
236
+ };
237
+ created_at: {
238
+ type: string;
239
+ };
240
+ phones: {
241
+ type: string;
242
+ items: {
243
+ type: string;
244
+ };
245
+ };
246
+ emails: {
247
+ type: string;
248
+ items: {
249
+ type: string;
250
+ };
251
+ };
252
+ languages: {
253
+ type: string;
254
+ items: {
255
+ type: string;
256
+ };
257
+ };
258
+ };
259
+ additionalProperties: boolean;
260
+ required: string[];
261
+ };
262
+ Conversation: {
263
+ type: string;
264
+ properties: {
265
+ id: {
266
+ type: string;
267
+ };
268
+ link: {
269
+ type: string;
270
+ };
271
+ name: {
272
+ type: string;
273
+ };
274
+ description: {
275
+ type: string[];
276
+ };
277
+ workspace_id: {
278
+ type: string;
279
+ };
280
+ workspace_name: {
281
+ type: string;
282
+ };
283
+ workspace_image_url: {
284
+ type: string[];
285
+ };
286
+ owner_id: {
287
+ type: string;
288
+ };
289
+ type: {
290
+ $ref: string;
291
+ };
292
+ visibility: {
293
+ $ref: string;
294
+ };
295
+ total_messages: {
296
+ type: string;
297
+ };
298
+ total_duration_ms: {
299
+ type: string;
300
+ };
301
+ image_url: {
302
+ type: string[];
303
+ };
304
+ is_private: {
305
+ type: string;
306
+ };
307
+ is_async: {
308
+ type: string;
309
+ };
310
+ async_stats: {
311
+ anyOf: ({
312
+ $ref: string;
313
+ type?: undefined;
314
+ } | {
315
+ type: string;
316
+ $ref?: undefined;
317
+ })[];
318
+ };
319
+ created_at: {
320
+ type: string;
321
+ };
322
+ last_updated_at: {
323
+ type: string;
324
+ };
325
+ deleted_at: {
326
+ type: string;
327
+ };
328
+ };
329
+ additionalProperties: boolean;
330
+ required: string[];
331
+ };
332
+ ConversationType: {
333
+ type: string;
334
+ enum: string[];
335
+ };
336
+ ConversationVisibility: {
337
+ type: string;
338
+ enum: string[];
339
+ };
340
+ AsyncMeetingStats: {
341
+ type: string;
342
+ properties: {
343
+ stats: {
344
+ type: string;
345
+ properties: {
346
+ total_duration_milliseconds: {
347
+ type: string;
348
+ };
349
+ total_heard_milliseconds: {
350
+ type: string;
351
+ };
352
+ total_engaged_percentage: {
353
+ type: string;
354
+ };
355
+ total_messages_posted: {
356
+ type: string;
357
+ };
358
+ total_users: {
359
+ type: string;
360
+ };
361
+ };
362
+ additionalProperties: boolean;
363
+ required: string[];
364
+ };
365
+ user_stats: {
366
+ type: string;
367
+ items: {
368
+ type: string;
369
+ properties: {
370
+ user_id: {
371
+ type: string;
372
+ };
373
+ total_messages_posted: {
374
+ type: string;
375
+ };
376
+ total_sent_milliseconds: {
377
+ type: string;
378
+ };
379
+ total_heard_milliseconds: {
380
+ type: string;
381
+ };
382
+ total_engaged_percentage: {
383
+ type: string;
384
+ };
385
+ total_heard_messages: {
386
+ type: string;
387
+ };
388
+ total_unheard_messages: {
389
+ type: string;
390
+ };
391
+ };
392
+ additionalProperties: boolean;
393
+ required: string[];
394
+ };
395
+ };
396
+ };
397
+ additionalProperties: boolean;
398
+ required: string[];
399
+ };
400
+ Label: {
401
+ type: string;
402
+ properties: {
403
+ id: {
404
+ type: string;
405
+ };
406
+ name: {
407
+ type: string;
408
+ };
409
+ behavior: {
410
+ $ref: string;
411
+ };
412
+ type: {
413
+ $ref: string;
414
+ };
415
+ creator_guid: {
416
+ type: string;
417
+ };
418
+ space_guid: {
419
+ type: string[];
420
+ };
421
+ image_url: {
422
+ type: string[];
423
+ };
424
+ automatic_playlist: {
425
+ type: string;
426
+ };
427
+ sort_order: {
428
+ type: string;
429
+ };
430
+ };
431
+ additionalProperties: boolean;
432
+ required: string[];
433
+ };
434
+ LabelBehavior: {
435
+ type: string;
436
+ enum: string[];
437
+ };
438
+ LabelType: {
439
+ type: string;
440
+ enum: string[];
441
+ };
442
+ };
443
+ $schema: string;
444
+ };
445
+ export declare enum WebhookAIPromptResponseGeneratedKeys {
446
+ ai_response = "ai_response",
447
+ messages = "messages"
448
+ }