cv-contracts 1.0.16 → 1.0.18
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.
- package/dist/interfaces/GetMessageResponse.d.ts +10 -0
- package/dist/interfaces/GetMessageResponse.js +3 -0
- package/dist/interfaces/GetMessageResponse.js.map +1 -0
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +1 -0
- package/dist/interfaces/index.js.map +1 -1
- package/dist/interfaces/webhook/WebhookWorkspaceLevelAIPromptResponse.d.ts +2 -2
- package/dist/schemas/GetMessageResponseSchema.d.ts +386 -0
- package/dist/schemas/GetMessageResponseSchema.js +447 -0
- package/dist/schemas/GetMessageResponseSchema.js.map +1 -0
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/webhook/WebhookWorkspaceLevelAIPromptResponseSchema.d.ts +264 -10
- package/dist/schemas/webhook/WebhookWorkspaceLevelAIPromptResponseSchema.js +303 -14
- package/dist/schemas/webhook/WebhookWorkspaceLevelAIPromptResponseSchema.js.map +1 -1
- package/package.json +1 -1
|
@@ -62,22 +62,47 @@ export declare const WebhookWorkspaceLevelAIPromptResponseSchema: {
|
|
|
62
62
|
type: string;
|
|
63
63
|
enum: string[];
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
GetMessageResponse: {
|
|
66
66
|
type: string;
|
|
67
67
|
properties: {
|
|
68
|
-
|
|
68
|
+
message: {
|
|
69
|
+
$ref: string;
|
|
70
|
+
};
|
|
71
|
+
creator: {
|
|
72
|
+
$ref: string;
|
|
73
|
+
};
|
|
74
|
+
conversation: {
|
|
75
|
+
$ref: string;
|
|
76
|
+
};
|
|
77
|
+
labels: {
|
|
69
78
|
type: string;
|
|
79
|
+
items: {
|
|
80
|
+
$ref: string;
|
|
81
|
+
};
|
|
70
82
|
};
|
|
71
|
-
|
|
83
|
+
};
|
|
84
|
+
additionalProperties: boolean;
|
|
85
|
+
required: string[];
|
|
86
|
+
};
|
|
87
|
+
Message: {
|
|
88
|
+
type: string;
|
|
89
|
+
properties: {
|
|
90
|
+
id: {
|
|
72
91
|
type: string;
|
|
73
92
|
};
|
|
74
|
-
|
|
93
|
+
name: {
|
|
94
|
+
type: string[];
|
|
95
|
+
};
|
|
96
|
+
link: {
|
|
75
97
|
type: string;
|
|
76
98
|
};
|
|
77
|
-
|
|
99
|
+
creator_id: {
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
conversation_id: {
|
|
78
103
|
type: string[];
|
|
79
104
|
};
|
|
80
|
-
|
|
105
|
+
workspace_id: {
|
|
81
106
|
type: string[];
|
|
82
107
|
};
|
|
83
108
|
created_at: {
|
|
@@ -92,16 +117,16 @@ export declare const WebhookWorkspaceLevelAIPromptResponseSchema: {
|
|
|
92
117
|
duration_ms: {
|
|
93
118
|
type: string;
|
|
94
119
|
};
|
|
95
|
-
|
|
120
|
+
audio_url: {
|
|
96
121
|
type: string[];
|
|
97
122
|
};
|
|
98
123
|
audio_stream_url: {
|
|
99
124
|
type: string[];
|
|
100
125
|
};
|
|
101
|
-
|
|
126
|
+
transcript: {
|
|
102
127
|
type: string[];
|
|
103
128
|
};
|
|
104
|
-
|
|
129
|
+
ai_summary: {
|
|
105
130
|
type: string[];
|
|
106
131
|
};
|
|
107
132
|
has_ai_summary: {
|
|
@@ -113,7 +138,7 @@ export declare const WebhookWorkspaceLevelAIPromptResponseSchema: {
|
|
|
113
138
|
reply_count: {
|
|
114
139
|
type: string;
|
|
115
140
|
};
|
|
116
|
-
|
|
141
|
+
parent_message_id: {
|
|
117
142
|
type: string[];
|
|
118
143
|
};
|
|
119
144
|
language: {
|
|
@@ -131,6 +156,9 @@ export declare const WebhookWorkspaceLevelAIPromptResponseSchema: {
|
|
|
131
156
|
type: {
|
|
132
157
|
$ref: string;
|
|
133
158
|
};
|
|
159
|
+
share_link_id: {
|
|
160
|
+
type: string;
|
|
161
|
+
};
|
|
134
162
|
};
|
|
135
163
|
additionalProperties: boolean;
|
|
136
164
|
required: string[];
|
|
@@ -185,6 +213,232 @@ export declare const WebhookWorkspaceLevelAIPromptResponseSchema: {
|
|
|
185
213
|
type: string;
|
|
186
214
|
enum: string[];
|
|
187
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
|
+
};
|
|
188
442
|
};
|
|
189
443
|
$schema: string;
|
|
190
444
|
};
|
|
@@ -10,7 +10,7 @@ exports.WebhookWorkspaceLevelAIPromptResponseSchema = {
|
|
|
10
10
|
messages: {
|
|
11
11
|
type: 'array',
|
|
12
12
|
items: {
|
|
13
|
-
$ref: '#/definitions/
|
|
13
|
+
$ref: '#/definitions/GetMessageResponse',
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
},
|
|
@@ -74,22 +74,47 @@ exports.WebhookWorkspaceLevelAIPromptResponseSchema = {
|
|
|
74
74
|
type: 'string',
|
|
75
75
|
enum: ['text', 'json'],
|
|
76
76
|
},
|
|
77
|
-
|
|
77
|
+
GetMessageResponse: {
|
|
78
78
|
type: 'object',
|
|
79
79
|
properties: {
|
|
80
|
-
|
|
80
|
+
message: {
|
|
81
|
+
$ref: '#/definitions/Message',
|
|
82
|
+
},
|
|
83
|
+
creator: {
|
|
84
|
+
$ref: '#/definitions/User',
|
|
85
|
+
},
|
|
86
|
+
conversation: {
|
|
87
|
+
$ref: '#/definitions/Conversation',
|
|
88
|
+
},
|
|
89
|
+
labels: {
|
|
90
|
+
type: 'array',
|
|
91
|
+
items: {
|
|
92
|
+
$ref: '#/definitions/Label',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
additionalProperties: false,
|
|
97
|
+
required: ['message'],
|
|
98
|
+
},
|
|
99
|
+
Message: {
|
|
100
|
+
type: 'object',
|
|
101
|
+
properties: {
|
|
102
|
+
id: {
|
|
81
103
|
type: 'string',
|
|
82
104
|
},
|
|
83
|
-
|
|
105
|
+
name: {
|
|
106
|
+
type: ['null', 'string'],
|
|
107
|
+
},
|
|
108
|
+
link: {
|
|
84
109
|
type: 'string',
|
|
85
110
|
},
|
|
86
|
-
|
|
111
|
+
creator_id: {
|
|
87
112
|
type: 'string',
|
|
88
113
|
},
|
|
89
|
-
|
|
114
|
+
conversation_id: {
|
|
90
115
|
type: ['null', 'string'],
|
|
91
116
|
},
|
|
92
|
-
|
|
117
|
+
workspace_id: {
|
|
93
118
|
type: ['null', 'string'],
|
|
94
119
|
},
|
|
95
120
|
created_at: {
|
|
@@ -104,16 +129,16 @@ exports.WebhookWorkspaceLevelAIPromptResponseSchema = {
|
|
|
104
129
|
duration_ms: {
|
|
105
130
|
type: 'number',
|
|
106
131
|
},
|
|
107
|
-
|
|
132
|
+
audio_url: {
|
|
108
133
|
type: ['null', 'string'],
|
|
109
134
|
},
|
|
110
135
|
audio_stream_url: {
|
|
111
136
|
type: ['null', 'string'],
|
|
112
137
|
},
|
|
113
|
-
|
|
138
|
+
transcript: {
|
|
114
139
|
type: ['null', 'string'],
|
|
115
140
|
},
|
|
116
|
-
|
|
141
|
+
ai_summary: {
|
|
117
142
|
type: ['null', 'string'],
|
|
118
143
|
},
|
|
119
144
|
has_ai_summary: {
|
|
@@ -125,7 +150,7 @@ exports.WebhookWorkspaceLevelAIPromptResponseSchema = {
|
|
|
125
150
|
reply_count: {
|
|
126
151
|
type: 'number',
|
|
127
152
|
},
|
|
128
|
-
|
|
153
|
+
parent_message_id: {
|
|
129
154
|
type: ['null', 'string'],
|
|
130
155
|
},
|
|
131
156
|
language: {
|
|
@@ -143,16 +168,19 @@ exports.WebhookWorkspaceLevelAIPromptResponseSchema = {
|
|
|
143
168
|
type: {
|
|
144
169
|
$ref: '#/definitions/MessageType',
|
|
145
170
|
},
|
|
171
|
+
share_link_id: {
|
|
172
|
+
type: 'string',
|
|
173
|
+
},
|
|
146
174
|
},
|
|
147
175
|
additionalProperties: false,
|
|
148
176
|
required: [
|
|
149
177
|
'created_at',
|
|
150
|
-
'
|
|
178
|
+
'creator_id',
|
|
151
179
|
'duration_ms',
|
|
180
|
+
'id',
|
|
152
181
|
'last_updated_at',
|
|
153
|
-
'
|
|
182
|
+
'link',
|
|
154
183
|
'reply_count',
|
|
155
|
-
'self_link',
|
|
156
184
|
'status',
|
|
157
185
|
'type',
|
|
158
186
|
],
|
|
@@ -218,6 +246,267 @@ exports.WebhookWorkspaceLevelAIPromptResponseSchema = {
|
|
|
218
246
|
type: 'string',
|
|
219
247
|
enum: ['channel', 'prerecorded', 'voicememo', 'stored', 'welcome'],
|
|
220
248
|
},
|
|
249
|
+
User: {
|
|
250
|
+
type: 'object',
|
|
251
|
+
properties: {
|
|
252
|
+
id: {
|
|
253
|
+
type: 'string',
|
|
254
|
+
},
|
|
255
|
+
link: {
|
|
256
|
+
type: 'string',
|
|
257
|
+
},
|
|
258
|
+
first_name: {
|
|
259
|
+
type: 'string',
|
|
260
|
+
},
|
|
261
|
+
last_name: {
|
|
262
|
+
type: 'string',
|
|
263
|
+
},
|
|
264
|
+
full_name: {
|
|
265
|
+
type: 'string',
|
|
266
|
+
},
|
|
267
|
+
image_url: {
|
|
268
|
+
type: 'string',
|
|
269
|
+
},
|
|
270
|
+
created_at: {
|
|
271
|
+
type: 'string',
|
|
272
|
+
},
|
|
273
|
+
phones: {
|
|
274
|
+
type: 'array',
|
|
275
|
+
items: {
|
|
276
|
+
type: 'string',
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
emails: {
|
|
280
|
+
type: 'array',
|
|
281
|
+
items: {
|
|
282
|
+
type: 'string',
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
languages: {
|
|
286
|
+
type: 'array',
|
|
287
|
+
items: {
|
|
288
|
+
type: 'string',
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
additionalProperties: false,
|
|
293
|
+
required: ['created_at', 'first_name', 'full_name', 'id', 'link'],
|
|
294
|
+
},
|
|
295
|
+
Conversation: {
|
|
296
|
+
type: 'object',
|
|
297
|
+
properties: {
|
|
298
|
+
id: {
|
|
299
|
+
type: 'string',
|
|
300
|
+
},
|
|
301
|
+
link: {
|
|
302
|
+
type: 'string',
|
|
303
|
+
},
|
|
304
|
+
name: {
|
|
305
|
+
type: 'string',
|
|
306
|
+
},
|
|
307
|
+
description: {
|
|
308
|
+
type: ['null', 'string'],
|
|
309
|
+
},
|
|
310
|
+
workspace_id: {
|
|
311
|
+
type: 'string',
|
|
312
|
+
},
|
|
313
|
+
workspace_name: {
|
|
314
|
+
type: 'string',
|
|
315
|
+
},
|
|
316
|
+
workspace_image_url: {
|
|
317
|
+
type: ['null', 'string'],
|
|
318
|
+
},
|
|
319
|
+
owner_id: {
|
|
320
|
+
type: 'string',
|
|
321
|
+
},
|
|
322
|
+
type: {
|
|
323
|
+
$ref: '#/definitions/ConversationType',
|
|
324
|
+
},
|
|
325
|
+
visibility: {
|
|
326
|
+
$ref: '#/definitions/ConversationVisibility',
|
|
327
|
+
},
|
|
328
|
+
total_messages: {
|
|
329
|
+
type: 'number',
|
|
330
|
+
},
|
|
331
|
+
total_duration_ms: {
|
|
332
|
+
type: 'number',
|
|
333
|
+
},
|
|
334
|
+
image_url: {
|
|
335
|
+
type: ['null', 'string'],
|
|
336
|
+
},
|
|
337
|
+
is_private: {
|
|
338
|
+
type: 'boolean',
|
|
339
|
+
},
|
|
340
|
+
is_async: {
|
|
341
|
+
type: 'boolean',
|
|
342
|
+
},
|
|
343
|
+
async_stats: {
|
|
344
|
+
anyOf: [
|
|
345
|
+
{
|
|
346
|
+
$ref: '#/definitions/AsyncMeetingStats',
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
type: 'null',
|
|
350
|
+
},
|
|
351
|
+
],
|
|
352
|
+
},
|
|
353
|
+
created_at: {
|
|
354
|
+
type: 'string',
|
|
355
|
+
},
|
|
356
|
+
last_updated_at: {
|
|
357
|
+
type: 'string',
|
|
358
|
+
},
|
|
359
|
+
deleted_at: {
|
|
360
|
+
type: 'string',
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
additionalProperties: false,
|
|
364
|
+
required: [
|
|
365
|
+
'created_at',
|
|
366
|
+
'id',
|
|
367
|
+
'is_async',
|
|
368
|
+
'is_private',
|
|
369
|
+
'last_updated_at',
|
|
370
|
+
'link',
|
|
371
|
+
'name',
|
|
372
|
+
'owner_id',
|
|
373
|
+
'total_duration_ms',
|
|
374
|
+
'total_messages',
|
|
375
|
+
'type',
|
|
376
|
+
'visibility',
|
|
377
|
+
'workspace_id',
|
|
378
|
+
'workspace_name',
|
|
379
|
+
],
|
|
380
|
+
},
|
|
381
|
+
ConversationType: {
|
|
382
|
+
type: 'string',
|
|
383
|
+
enum: [
|
|
384
|
+
'directMessage',
|
|
385
|
+
'customerConversation',
|
|
386
|
+
'namedConversation',
|
|
387
|
+
'asyncMeeting',
|
|
388
|
+
],
|
|
389
|
+
},
|
|
390
|
+
ConversationVisibility: {
|
|
391
|
+
type: 'string',
|
|
392
|
+
enum: ['private', 'workspace', 'public'],
|
|
393
|
+
},
|
|
394
|
+
AsyncMeetingStats: {
|
|
395
|
+
type: 'object',
|
|
396
|
+
properties: {
|
|
397
|
+
stats: {
|
|
398
|
+
type: 'object',
|
|
399
|
+
properties: {
|
|
400
|
+
total_duration_milliseconds: {
|
|
401
|
+
type: 'number',
|
|
402
|
+
},
|
|
403
|
+
total_heard_milliseconds: {
|
|
404
|
+
type: 'number',
|
|
405
|
+
},
|
|
406
|
+
total_engaged_percentage: {
|
|
407
|
+
type: 'number',
|
|
408
|
+
},
|
|
409
|
+
total_messages_posted: {
|
|
410
|
+
type: 'number',
|
|
411
|
+
},
|
|
412
|
+
total_users: {
|
|
413
|
+
type: 'number',
|
|
414
|
+
},
|
|
415
|
+
},
|
|
416
|
+
additionalProperties: false,
|
|
417
|
+
required: [
|
|
418
|
+
'total_duration_milliseconds',
|
|
419
|
+
'total_engaged_percentage',
|
|
420
|
+
'total_heard_milliseconds',
|
|
421
|
+
'total_messages_posted',
|
|
422
|
+
'total_users',
|
|
423
|
+
],
|
|
424
|
+
},
|
|
425
|
+
user_stats: {
|
|
426
|
+
type: 'array',
|
|
427
|
+
items: {
|
|
428
|
+
type: 'object',
|
|
429
|
+
properties: {
|
|
430
|
+
user_id: {
|
|
431
|
+
type: 'string',
|
|
432
|
+
},
|
|
433
|
+
total_messages_posted: {
|
|
434
|
+
type: 'number',
|
|
435
|
+
},
|
|
436
|
+
total_sent_milliseconds: {
|
|
437
|
+
type: 'number',
|
|
438
|
+
},
|
|
439
|
+
total_heard_milliseconds: {
|
|
440
|
+
type: 'number',
|
|
441
|
+
},
|
|
442
|
+
total_engaged_percentage: {
|
|
443
|
+
type: 'number',
|
|
444
|
+
},
|
|
445
|
+
total_heard_messages: {
|
|
446
|
+
type: 'number',
|
|
447
|
+
},
|
|
448
|
+
total_unheard_messages: {
|
|
449
|
+
type: 'number',
|
|
450
|
+
},
|
|
451
|
+
},
|
|
452
|
+
additionalProperties: false,
|
|
453
|
+
required: [
|
|
454
|
+
'total_engaged_percentage',
|
|
455
|
+
'total_heard_messages',
|
|
456
|
+
'total_heard_milliseconds',
|
|
457
|
+
'total_messages_posted',
|
|
458
|
+
'total_sent_milliseconds',
|
|
459
|
+
'total_unheard_messages',
|
|
460
|
+
'user_id',
|
|
461
|
+
],
|
|
462
|
+
},
|
|
463
|
+
},
|
|
464
|
+
},
|
|
465
|
+
additionalProperties: false,
|
|
466
|
+
required: ['stats', 'user_stats'],
|
|
467
|
+
},
|
|
468
|
+
Label: {
|
|
469
|
+
type: 'object',
|
|
470
|
+
properties: {
|
|
471
|
+
id: {
|
|
472
|
+
type: 'string',
|
|
473
|
+
},
|
|
474
|
+
name: {
|
|
475
|
+
type: 'string',
|
|
476
|
+
},
|
|
477
|
+
behavior: {
|
|
478
|
+
$ref: '#/definitions/LabelBehavior',
|
|
479
|
+
},
|
|
480
|
+
type: {
|
|
481
|
+
$ref: '#/definitions/LabelType',
|
|
482
|
+
},
|
|
483
|
+
creator_guid: {
|
|
484
|
+
type: 'string',
|
|
485
|
+
},
|
|
486
|
+
space_guid: {
|
|
487
|
+
type: ['null', 'string'],
|
|
488
|
+
},
|
|
489
|
+
image_url: {
|
|
490
|
+
type: ['null', 'string'],
|
|
491
|
+
},
|
|
492
|
+
automatic_playlist: {
|
|
493
|
+
type: 'boolean',
|
|
494
|
+
},
|
|
495
|
+
sort_order: {
|
|
496
|
+
type: 'number',
|
|
497
|
+
},
|
|
498
|
+
},
|
|
499
|
+
additionalProperties: false,
|
|
500
|
+
required: ['behavior', 'creator_guid', 'id', 'name', 'type'],
|
|
501
|
+
},
|
|
502
|
+
LabelBehavior: {
|
|
503
|
+
type: 'string',
|
|
504
|
+
enum: ['removeOnListenStart', 'removeWhenHeard', 'persistent'],
|
|
505
|
+
},
|
|
506
|
+
LabelType: {
|
|
507
|
+
type: 'string',
|
|
508
|
+
enum: ['personal', 'workspace', 'system', 'reaction'],
|
|
509
|
+
},
|
|
221
510
|
},
|
|
222
511
|
$schema: 'http://json-schema.org/draft-07/schema#',
|
|
223
512
|
};
|