@team-plain/webhooks 0.1.0

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.
@@ -0,0 +1,3495 @@
1
+ {
2
+ "title": "Webhooks schema definition",
3
+ "type": "object",
4
+ "properties": {
5
+ "timestamp": {
6
+ "$ref": "#/definitions/datetime"
7
+ },
8
+ "workspaceId": {
9
+ "$ref": "#/definitions/id"
10
+ },
11
+ "payload": {
12
+ "anyOf": [
13
+ {
14
+ "$ref": "#/definitions/customerChangedPayload"
15
+ },
16
+ {
17
+ "$ref": "#/definitions/customerGroupMembershipsChangedPayload"
18
+ },
19
+ {
20
+ "$ref": "#/definitions/timelineEntryChangedPayload"
21
+ },
22
+ {
23
+ "$ref": "#/definitions/customerGroupChangedPayload"
24
+ },
25
+ {
26
+ "$ref": "#/definitions/threadCreatedPublicEventPayload"
27
+ },
28
+ {
29
+ "$ref": "#/definitions/threadStatusTransitionedPublicEventPayload"
30
+ },
31
+ {
32
+ "$ref": "#/definitions/threadAssignmentTransitionedPublicEventPayload"
33
+ },
34
+ {
35
+ "$ref": "#/definitions/threadEmailReceivedPublicEventPayload"
36
+ },
37
+ {
38
+ "$ref": "#/definitions/threadEmailSentPublicEventPayload"
39
+ },
40
+ {
41
+ "$ref": "#/definitions/threadSlackMessageReceivedEventPayload"
42
+ },
43
+ {
44
+ "$ref": "#/definitions/threadSlackMessageSentEventPayload"
45
+ },
46
+ {
47
+ "$ref": "#/definitions/threadMSTeamsMessageReceivedEventPayload"
48
+ },
49
+ {
50
+ "$ref": "#/definitions/threadMSTeamsMessageSentEventPayload"
51
+ },
52
+ {
53
+ "$ref": "#/definitions/threadLabelsChangedPublicEventPayload"
54
+ },
55
+ {
56
+ "$ref": "#/definitions/threadPriorityChangedPublicEventPayload"
57
+ },
58
+ {
59
+ "$ref": "#/definitions/threadFieldCreatedPublicEventPayload"
60
+ },
61
+ {
62
+ "$ref": "#/definitions/threadFieldUpdatedPublicEventPayload"
63
+ },
64
+ {
65
+ "$ref": "#/definitions/threadFieldDeletedPublicEventPayload"
66
+ },
67
+ {
68
+ "$ref": "#/definitions/threadChatSentPublicEventPayload"
69
+ },
70
+ {
71
+ "$ref": "#/definitions/threadServiceLevelAgreementStatusTransitionedPayload"
72
+ },
73
+ {
74
+ "$ref": "#/definitions/customerCreatedPublicEventPayload"
75
+ },
76
+ {
77
+ "$ref": "#/definitions/customerUpdatedPublicEventPayload"
78
+ },
79
+ {
80
+ "$ref": "#/definitions/customerDeletedPublicEventPayload"
81
+ },
82
+ {
83
+ "$ref": "#/definitions/threadNoteCreatedEventPayload"
84
+ },
85
+ {
86
+ "$ref": "#/definitions/threadChatReceivedPublicEventPayload"
87
+ },
88
+ {
89
+ "$ref": "#/definitions/threadSlackMessageUpdatedEventPayload"
90
+ },
91
+ {
92
+ "$ref": "#/definitions/threadDiscordMessageReceivedEventPayload"
93
+ },
94
+ {
95
+ "$ref": "#/definitions/threadDiscordMessageSentEventPayload"
96
+ },
97
+ {
98
+ "$ref": "#/definitions/threadDiscordMessageUpdatedEventPayload"
99
+ }
100
+ ]
101
+ },
102
+ "id": {
103
+ "$ref": "#/definitions/id"
104
+ },
105
+ "type": {
106
+ "type": "string",
107
+ "enum": [
108
+ "thread.thread_created",
109
+ "thread.thread_status_transitioned",
110
+ "thread.thread_assignment_transitioned",
111
+ "thread.email_received",
112
+ "thread.email_sent",
113
+ "thread.slack_message_received",
114
+ "thread.slack_message_sent",
115
+ "thread.slack_message_updated",
116
+ "thread.discord_message_received",
117
+ "thread.discord_message_sent",
118
+ "thread.discord_message_updated",
119
+ "thread.ms_teams_message_sent",
120
+ "thread.ms_teams_message_received",
121
+ "thread.chat_sent",
122
+ "thread.chat_received",
123
+ "thread.note_created",
124
+ "thread.thread_labels_changed",
125
+ "thread.thread_priority_changed",
126
+ "thread.thread_field_created",
127
+ "thread.thread_field_updated",
128
+ "thread.thread_field_deleted",
129
+ "thread.service_level_agreement_status_transitioned",
130
+ "thread.thread_tenant_updated",
131
+ "customer.customer_created",
132
+ "customer.customer_updated",
133
+ "customer.customer_deleted",
134
+ "customer.customer_changed",
135
+ "customer.customer_group_changed",
136
+ "customer.customer_group_memberships_changed",
137
+ "timeline.timeline_entry_changed"
138
+ ]
139
+ },
140
+ "webhookMetadata": {
141
+ "$ref": "#/definitions/webhookMetadata"
142
+ }
143
+ },
144
+ "required": ["timestamp", "workspaceId", "payload", "id", "type", "webhookMetadata"],
145
+ "additionalProperties": true,
146
+ "description": "Webhook request",
147
+ "definitions": {
148
+ "id": {
149
+ "type": "string",
150
+ "minLength": 1,
151
+ "pattern": "^[a-zA-Z]+_[0123456789ABCDEFGHJKMNPQRSTVWXYZ]{26}$",
152
+ "maxLength": 50
153
+ },
154
+ "emailAddress": {
155
+ "allOf": [
156
+ {
157
+ "type": "string"
158
+ },
159
+ {
160
+ "type": "string",
161
+ "pattern": "^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|([^-]([a-zA-Z0-9-]*\\.)+[a-zA-Z]{2,}))$"
162
+ }
163
+ ]
164
+ },
165
+ "datetime": {
166
+ "type": "string",
167
+ "format": "date-time"
168
+ },
169
+ "nullableString": {
170
+ "type": ["string", "null"]
171
+ },
172
+ "nullableDatetime": {
173
+ "anyOf": [
174
+ {
175
+ "$ref": "#/definitions/datetime"
176
+ },
177
+ {
178
+ "type": "null"
179
+ }
180
+ ]
181
+ },
182
+ "nullableActor": {
183
+ "anyOf": [
184
+ {
185
+ "$ref": "#/definitions/actor"
186
+ },
187
+ {
188
+ "type": "null"
189
+ }
190
+ ]
191
+ },
192
+ "nullableInternalActor": {
193
+ "anyOf": [
194
+ {
195
+ "$ref": "#/definitions/internalActor"
196
+ },
197
+ {
198
+ "type": "null"
199
+ }
200
+ ]
201
+ },
202
+ "userActor": {
203
+ "type": "object",
204
+ "properties": {
205
+ "actorType": {
206
+ "type": "string",
207
+ "const": "user"
208
+ },
209
+ "userId": {
210
+ "$ref": "#/definitions/id"
211
+ }
212
+ },
213
+ "required": ["actorType", "userId"],
214
+ "additionalProperties": true
215
+ },
216
+ "customerActor": {
217
+ "type": "object",
218
+ "properties": {
219
+ "actorType": {
220
+ "type": "string",
221
+ "const": "customer"
222
+ },
223
+ "customerId": {
224
+ "$ref": "#/definitions/id"
225
+ }
226
+ },
227
+ "required": ["actorType", "customerId"],
228
+ "additionalProperties": true
229
+ },
230
+ "systemActor": {
231
+ "type": "object",
232
+ "properties": {
233
+ "actorType": {
234
+ "type": "string",
235
+ "const": "system"
236
+ },
237
+ "system": {
238
+ "type": "string"
239
+ }
240
+ },
241
+ "required": ["actorType", "system"],
242
+ "additionalProperties": true
243
+ },
244
+ "machineUserActor": {
245
+ "type": "object",
246
+ "properties": {
247
+ "actorType": {
248
+ "type": "string",
249
+ "const": "machineUser"
250
+ },
251
+ "machineUserId": {
252
+ "$ref": "#/definitions/id"
253
+ }
254
+ },
255
+ "required": ["actorType", "machineUserId"],
256
+ "additionalProperties": true
257
+ },
258
+ "internalActor": {
259
+ "anyOf": [
260
+ {
261
+ "type": "object",
262
+ "properties": {
263
+ "actorType": {
264
+ "type": "string",
265
+ "const": "UNKNOWN"
266
+ }
267
+ },
268
+ "required": ["actorType"],
269
+ "additionalProperties": true
270
+ },
271
+ {
272
+ "$ref": "#/definitions/userActor"
273
+ },
274
+ {
275
+ "$ref": "#/definitions/machineUserActor"
276
+ },
277
+ {
278
+ "$ref": "#/definitions/systemActor"
279
+ }
280
+ ]
281
+ },
282
+ "actor": {
283
+ "anyOf": [
284
+ {
285
+ "$ref": "#/definitions/internalActor/anyOf/0"
286
+ },
287
+ {
288
+ "$ref": "#/definitions/userActor"
289
+ },
290
+ {
291
+ "$ref": "#/definitions/machineUserActor"
292
+ },
293
+ {
294
+ "$ref": "#/definitions/systemActor"
295
+ },
296
+ {
297
+ "$ref": "#/definitions/customerActor"
298
+ }
299
+ ]
300
+ },
301
+ "user": {
302
+ "type": "object",
303
+ "properties": {
304
+ "id": {
305
+ "$ref": "#/definitions/id"
306
+ },
307
+ "email": {
308
+ "$ref": "#/definitions/emailAddress"
309
+ },
310
+ "fullName": {
311
+ "type": "string"
312
+ },
313
+ "publicName": {
314
+ "type": "string"
315
+ },
316
+ "status": {
317
+ "type": "string",
318
+ "enum": ["ONLINE", "OFFLINE", "BREAK", "AWAY", "UNKNOWN_USER_STATUS"]
319
+ },
320
+ "statusChangedAt": {
321
+ "$ref": "#/definitions/datetime"
322
+ },
323
+ "createdAt": {
324
+ "$ref": "#/definitions/datetime"
325
+ },
326
+ "createdBy": {
327
+ "$ref": "#/definitions/internalActor"
328
+ },
329
+ "updatedAt": {
330
+ "$ref": "#/definitions/datetime"
331
+ },
332
+ "updatedBy": {
333
+ "$ref": "#/definitions/internalActor"
334
+ },
335
+ "deletedAt": {
336
+ "$ref": "#/definitions/nullableDatetime"
337
+ },
338
+ "deletedBy": {
339
+ "$ref": "#/definitions/nullableInternalActor"
340
+ }
341
+ },
342
+ "required": [
343
+ "id",
344
+ "email",
345
+ "fullName",
346
+ "publicName",
347
+ "status",
348
+ "statusChangedAt",
349
+ "createdAt",
350
+ "createdBy",
351
+ "updatedAt",
352
+ "updatedBy",
353
+ "deletedAt",
354
+ "deletedBy"
355
+ ],
356
+ "additionalProperties": true
357
+ },
358
+ "machineUser": {
359
+ "type": "object",
360
+ "properties": {
361
+ "id": {
362
+ "$ref": "#/definitions/id"
363
+ },
364
+ "fullName": {
365
+ "type": "string"
366
+ },
367
+ "publicName": {
368
+ "type": "string"
369
+ },
370
+ "description": {
371
+ "type": ["string", "null"]
372
+ },
373
+ "createdAt": {
374
+ "$ref": "#/definitions/datetime"
375
+ },
376
+ "createdBy": {
377
+ "$ref": "#/definitions/internalActor"
378
+ },
379
+ "updatedAt": {
380
+ "$ref": "#/definitions/datetime"
381
+ },
382
+ "updatedBy": {
383
+ "$ref": "#/definitions/internalActor"
384
+ },
385
+ "deletedAt": {
386
+ "$ref": "#/definitions/nullableDatetime"
387
+ },
388
+ "deletedBy": {
389
+ "$ref": "#/definitions/nullableInternalActor"
390
+ }
391
+ },
392
+ "required": [
393
+ "id",
394
+ "fullName",
395
+ "publicName",
396
+ "description",
397
+ "createdAt",
398
+ "createdBy",
399
+ "updatedAt",
400
+ "updatedBy",
401
+ "deletedAt",
402
+ "deletedBy"
403
+ ],
404
+ "additionalProperties": true
405
+ },
406
+ "customerGroup": {
407
+ "type": "object",
408
+ "properties": {
409
+ "id": {
410
+ "$ref": "#/definitions/id"
411
+ },
412
+ "workspaceId": {
413
+ "$ref": "#/definitions/id"
414
+ },
415
+ "name": {
416
+ "type": "string",
417
+ "minLength": 1,
418
+ "maxLength": 500
419
+ },
420
+ "key": {
421
+ "type": "string",
422
+ "minLength": 1,
423
+ "maxLength": 50
424
+ },
425
+ "color": {
426
+ "type": "string",
427
+ "pattern": "^#([a-fA-F0-9]{3,4}|[a-fA-F0-9]{4}(?:[a-fA-F0-9]{2}){1,2})$"
428
+ },
429
+ "createdAt": {
430
+ "$ref": "#/definitions/datetime"
431
+ },
432
+ "createdBy": {
433
+ "$ref": "#/definitions/internalActor"
434
+ },
435
+ "updatedAt": {
436
+ "$ref": "#/definitions/datetime"
437
+ },
438
+ "updatedBy": {
439
+ "$ref": "#/definitions/internalActor"
440
+ }
441
+ },
442
+ "required": [
443
+ "id",
444
+ "workspaceId",
445
+ "name",
446
+ "key",
447
+ "color",
448
+ "createdAt",
449
+ "createdBy",
450
+ "updatedAt",
451
+ "updatedBy"
452
+ ],
453
+ "additionalProperties": true
454
+ },
455
+ "customerGroupMembership": {
456
+ "type": "object",
457
+ "properties": {
458
+ "customerId": {
459
+ "$ref": "#/definitions/id"
460
+ },
461
+ "customerGroupId": {
462
+ "$ref": "#/definitions/id"
463
+ },
464
+ "workspaceId": {
465
+ "$ref": "#/definitions/id"
466
+ },
467
+ "createdAt": {
468
+ "$ref": "#/definitions/datetime"
469
+ },
470
+ "createdBy": {
471
+ "$ref": "#/definitions/internalActor"
472
+ },
473
+ "updatedAt": {
474
+ "$ref": "#/definitions/datetime"
475
+ },
476
+ "updatedBy": {
477
+ "$ref": "#/definitions/internalActor"
478
+ },
479
+ "customerGroup": {
480
+ "$ref": "#/definitions/customerGroup"
481
+ }
482
+ },
483
+ "required": [
484
+ "customerId",
485
+ "customerGroupId",
486
+ "workspaceId",
487
+ "createdAt",
488
+ "createdBy",
489
+ "updatedAt",
490
+ "updatedBy",
491
+ "customerGroup"
492
+ ],
493
+ "additionalProperties": true
494
+ },
495
+ "customer": {
496
+ "type": "object",
497
+ "properties": {
498
+ "id": {
499
+ "$ref": "#/definitions/id"
500
+ },
501
+ "email": {
502
+ "type": "object",
503
+ "properties": {
504
+ "email": {
505
+ "$ref": "#/definitions/emailAddress"
506
+ },
507
+ "isVerified": {
508
+ "type": "boolean"
509
+ },
510
+ "verifiedAt": {
511
+ "anyOf": [
512
+ {
513
+ "$ref": "#/definitions/datetime"
514
+ },
515
+ {
516
+ "type": "null"
517
+ }
518
+ ]
519
+ }
520
+ },
521
+ "required": ["email", "isVerified", "verifiedAt"],
522
+ "additionalProperties": true
523
+ },
524
+ "externalId": {
525
+ "type": ["string", "null"]
526
+ },
527
+ "fullName": {
528
+ "type": "string"
529
+ },
530
+ "shortName": {
531
+ "type": ["string", "null"]
532
+ },
533
+ "markedAsSpamAt": {
534
+ "anyOf": [
535
+ {
536
+ "$ref": "#/definitions/datetime"
537
+ },
538
+ {
539
+ "type": "null"
540
+ }
541
+ ],
542
+ "default": null
543
+ },
544
+ "markedAsSpamBy": {
545
+ "anyOf": [
546
+ {
547
+ "$ref": "#/definitions/internalActor"
548
+ },
549
+ {
550
+ "type": "null"
551
+ }
552
+ ],
553
+ "default": null
554
+ },
555
+ "customerGroupMemberships": {
556
+ "type": "array",
557
+ "items": {
558
+ "$ref": "#/definitions/customerGroupMembership"
559
+ }
560
+ },
561
+ "createdAt": {
562
+ "$ref": "#/definitions/datetime"
563
+ },
564
+ "createdBy": {
565
+ "$ref": "#/definitions/actor"
566
+ },
567
+ "updatedAt": {
568
+ "$ref": "#/definitions/datetime"
569
+ },
570
+ "updatedBy": {
571
+ "$ref": "#/definitions/actor"
572
+ }
573
+ },
574
+ "required": [
575
+ "id",
576
+ "email",
577
+ "externalId",
578
+ "fullName",
579
+ "shortName",
580
+ "customerGroupMemberships",
581
+ "createdAt",
582
+ "createdBy",
583
+ "updatedAt",
584
+ "updatedBy"
585
+ ],
586
+ "additionalProperties": true
587
+ },
588
+ "attachment": {
589
+ "type": "object",
590
+ "properties": {
591
+ "id": {
592
+ "$ref": "#/definitions/id"
593
+ },
594
+ "fileName": {
595
+ "type": "string",
596
+ "minLength": 1
597
+ },
598
+ "fileSizeBytes": {
599
+ "type": "integer",
600
+ "minimum": 0
601
+ },
602
+ "fileMimeType": {
603
+ "type": "string",
604
+ "minLength": 1
605
+ },
606
+ "fileExtension": {
607
+ "$ref": "#/definitions/nullableString"
608
+ },
609
+ "createdAt": {
610
+ "$ref": "#/definitions/datetime"
611
+ },
612
+ "createdBy": {
613
+ "$ref": "#/definitions/actor"
614
+ },
615
+ "updatedAt": {
616
+ "$ref": "#/definitions/datetime"
617
+ },
618
+ "updatedBy": {
619
+ "$ref": "#/definitions/actor"
620
+ }
621
+ },
622
+ "required": [
623
+ "id",
624
+ "fileName",
625
+ "fileSizeBytes",
626
+ "fileMimeType",
627
+ "fileExtension",
628
+ "createdAt",
629
+ "createdBy",
630
+ "updatedAt",
631
+ "updatedBy"
632
+ ],
633
+ "additionalProperties": true
634
+ },
635
+ "emailAuthenticity": {
636
+ "type": "string",
637
+ "enum": ["PASS", "FAIL", "UNKNOWN", "UNKNOWN_EMAIL_AUTHENTICITY"]
638
+ },
639
+ "emailActor": {
640
+ "anyOf": [
641
+ {
642
+ "$ref": "#/definitions/internalActor/anyOf/0"
643
+ },
644
+ {
645
+ "$ref": "#/definitions/userActor"
646
+ },
647
+ {
648
+ "$ref": "#/definitions/customerActor"
649
+ },
650
+ {
651
+ "type": "object",
652
+ "properties": {
653
+ "actorType": {
654
+ "type": "string",
655
+ "const": "supportEmailAddress"
656
+ },
657
+ "supportEmailAddress": {
658
+ "type": "string"
659
+ }
660
+ },
661
+ "required": ["actorType", "supportEmailAddress"],
662
+ "additionalProperties": true
663
+ },
664
+ {
665
+ "type": "object",
666
+ "properties": {
667
+ "actorType": {
668
+ "type": "string",
669
+ "const": "deletedCustomer"
670
+ },
671
+ "customerId": {
672
+ "$ref": "#/definitions/id"
673
+ }
674
+ },
675
+ "required": ["actorType", "customerId"],
676
+ "additionalProperties": true
677
+ }
678
+ ]
679
+ },
680
+ "emailParticipant": {
681
+ "type": "object",
682
+ "properties": {
683
+ "email": {
684
+ "type": "string"
685
+ },
686
+ "name": {
687
+ "type": ["string", "null"]
688
+ },
689
+ "emailActor": {
690
+ "anyOf": [
691
+ {
692
+ "$ref": "#/definitions/emailActor"
693
+ },
694
+ {
695
+ "type": "null"
696
+ }
697
+ ]
698
+ }
699
+ },
700
+ "required": ["email", "name", "emailActor"],
701
+ "additionalProperties": true
702
+ },
703
+ "email": {
704
+ "type": "object",
705
+ "properties": {
706
+ "timelineEntryId": {
707
+ "$ref": "#/definitions/id"
708
+ },
709
+ "id": {
710
+ "$ref": "#/definitions/id"
711
+ },
712
+ "to": {
713
+ "$ref": "#/definitions/emailParticipant"
714
+ },
715
+ "from": {
716
+ "$ref": "#/definitions/emailParticipant"
717
+ },
718
+ "replyTo": {
719
+ "type": ["string", "null"]
720
+ },
721
+ "additionalRecipients": {
722
+ "type": "array",
723
+ "items": {
724
+ "$ref": "#/definitions/emailParticipant"
725
+ }
726
+ },
727
+ "hiddenRecipients": {
728
+ "type": "array",
729
+ "items": {
730
+ "$ref": "#/definitions/emailParticipant"
731
+ }
732
+ },
733
+ "subject": {
734
+ "type": ["string", "null"]
735
+ },
736
+ "textContent": {
737
+ "type": ["string", "null"]
738
+ },
739
+ "markdownContent": {
740
+ "type": ["string", "null"]
741
+ },
742
+ "authenticity": {
743
+ "$ref": "#/definitions/emailAuthenticity"
744
+ },
745
+ "sentAt": {
746
+ "anyOf": [
747
+ {
748
+ "$ref": "#/definitions/datetime"
749
+ },
750
+ {
751
+ "type": "null"
752
+ }
753
+ ]
754
+ },
755
+ "receivedAt": {
756
+ "anyOf": [
757
+ {
758
+ "$ref": "#/definitions/datetime"
759
+ },
760
+ {
761
+ "type": "null"
762
+ }
763
+ ]
764
+ },
765
+ "attachments": {
766
+ "type": "array",
767
+ "items": {
768
+ "$ref": "#/definitions/attachment"
769
+ }
770
+ },
771
+ "inReplyToEmailId": {
772
+ "type": ["string", "null"]
773
+ },
774
+ "isStartOfThread": {
775
+ "type": "boolean"
776
+ },
777
+ "createdAt": {
778
+ "$ref": "#/definitions/datetime"
779
+ },
780
+ "createdBy": {
781
+ "$ref": "#/definitions/actor"
782
+ },
783
+ "updatedAt": {
784
+ "$ref": "#/definitions/datetime"
785
+ },
786
+ "updatedBy": {
787
+ "$ref": "#/definitions/actor"
788
+ }
789
+ },
790
+ "required": [
791
+ "timelineEntryId",
792
+ "id",
793
+ "to",
794
+ "from",
795
+ "replyTo",
796
+ "additionalRecipients",
797
+ "hiddenRecipients",
798
+ "subject",
799
+ "textContent",
800
+ "markdownContent",
801
+ "authenticity",
802
+ "sentAt",
803
+ "receivedAt",
804
+ "attachments",
805
+ "inReplyToEmailId",
806
+ "isStartOfThread",
807
+ "createdAt",
808
+ "createdBy",
809
+ "updatedAt",
810
+ "updatedBy"
811
+ ],
812
+ "additionalProperties": true
813
+ },
814
+ "chat": {
815
+ "type": "object",
816
+ "properties": {
817
+ "timelineEntryId": {
818
+ "$ref": "#/definitions/id"
819
+ },
820
+ "id": {
821
+ "$ref": "#/definitions/id"
822
+ },
823
+ "customerReadAt": {
824
+ "anyOf": [
825
+ {
826
+ "$ref": "#/definitions/datetime"
827
+ },
828
+ {
829
+ "type": "null"
830
+ }
831
+ ]
832
+ },
833
+ "text": {
834
+ "anyOf": [
835
+ {
836
+ "type": "string",
837
+ "minLength": 1,
838
+ "maxLength": 5000
839
+ },
840
+ {
841
+ "type": "null"
842
+ }
843
+ ],
844
+ "default": null
845
+ },
846
+ "attachments": {
847
+ "type": "array",
848
+ "items": {
849
+ "$ref": "#/definitions/attachment"
850
+ }
851
+ },
852
+ "createdAt": {
853
+ "$ref": "#/definitions/datetime"
854
+ },
855
+ "createdBy": {
856
+ "$ref": "#/definitions/actor"
857
+ },
858
+ "updatedAt": {
859
+ "$ref": "#/definitions/datetime"
860
+ },
861
+ "updatedBy": {
862
+ "$ref": "#/definitions/actor"
863
+ }
864
+ },
865
+ "required": [
866
+ "timelineEntryId",
867
+ "id",
868
+ "customerReadAt",
869
+ "attachments",
870
+ "createdAt",
871
+ "createdBy",
872
+ "updatedAt",
873
+ "updatedBy"
874
+ ],
875
+ "additionalProperties": true
876
+ },
877
+ "customEntryAttachment": {
878
+ "type": "object",
879
+ "properties": {
880
+ "id": {
881
+ "$ref": "#/definitions/id"
882
+ },
883
+ "fileName": {
884
+ "$ref": "#/definitions/attachment/properties/fileName"
885
+ },
886
+ "fileSizeBytes": {
887
+ "$ref": "#/definitions/attachment/properties/fileSizeBytes"
888
+ },
889
+ "fileMimeType": {
890
+ "$ref": "#/definitions/attachment/properties/fileMimeType"
891
+ },
892
+ "fileExtension": {
893
+ "$ref": "#/definitions/nullableString"
894
+ },
895
+ "createdAt": {
896
+ "$ref": "#/definitions/datetime"
897
+ },
898
+ "createdBy": {
899
+ "$ref": "#/definitions/actor"
900
+ },
901
+ "updatedAt": {
902
+ "$ref": "#/definitions/datetime"
903
+ },
904
+ "updatedBy": {
905
+ "$ref": "#/definitions/actor"
906
+ },
907
+ "type": {
908
+ "type": "string",
909
+ "const": "CUSTOM_TIMELINE_ENTRY"
910
+ }
911
+ },
912
+ "required": [
913
+ "id",
914
+ "fileName",
915
+ "fileSizeBytes",
916
+ "fileMimeType",
917
+ "fileExtension",
918
+ "createdAt",
919
+ "createdBy",
920
+ "updatedAt",
921
+ "updatedBy",
922
+ "type"
923
+ ],
924
+ "additionalProperties": true
925
+ },
926
+ "chatEntryAttachment": {
927
+ "type": "object",
928
+ "properties": {
929
+ "id": {
930
+ "$ref": "#/definitions/id"
931
+ },
932
+ "fileName": {
933
+ "$ref": "#/definitions/attachment/properties/fileName"
934
+ },
935
+ "fileSizeBytes": {
936
+ "$ref": "#/definitions/attachment/properties/fileSizeBytes"
937
+ },
938
+ "fileMimeType": {
939
+ "$ref": "#/definitions/attachment/properties/fileMimeType"
940
+ },
941
+ "fileExtension": {
942
+ "$ref": "#/definitions/nullableString"
943
+ },
944
+ "createdAt": {
945
+ "$ref": "#/definitions/datetime"
946
+ },
947
+ "createdBy": {
948
+ "$ref": "#/definitions/actor"
949
+ },
950
+ "updatedAt": {
951
+ "$ref": "#/definitions/datetime"
952
+ },
953
+ "updatedBy": {
954
+ "$ref": "#/definitions/actor"
955
+ },
956
+ "type": {
957
+ "type": "string",
958
+ "const": "CHAT"
959
+ }
960
+ },
961
+ "required": [
962
+ "id",
963
+ "fileName",
964
+ "fileSizeBytes",
965
+ "fileMimeType",
966
+ "fileExtension",
967
+ "createdAt",
968
+ "createdBy",
969
+ "updatedAt",
970
+ "updatedBy",
971
+ "type"
972
+ ],
973
+ "additionalProperties": true
974
+ },
975
+ "emailEntryAttachment": {
976
+ "type": "object",
977
+ "properties": {
978
+ "id": {
979
+ "$ref": "#/definitions/id"
980
+ },
981
+ "fileName": {
982
+ "$ref": "#/definitions/attachment/properties/fileName"
983
+ },
984
+ "fileSizeBytes": {
985
+ "$ref": "#/definitions/attachment/properties/fileSizeBytes"
986
+ },
987
+ "fileMimeType": {
988
+ "$ref": "#/definitions/attachment/properties/fileMimeType"
989
+ },
990
+ "fileExtension": {
991
+ "$ref": "#/definitions/nullableString"
992
+ },
993
+ "createdAt": {
994
+ "$ref": "#/definitions/datetime"
995
+ },
996
+ "createdBy": {
997
+ "$ref": "#/definitions/actor"
998
+ },
999
+ "updatedAt": {
1000
+ "$ref": "#/definitions/datetime"
1001
+ },
1002
+ "updatedBy": {
1003
+ "$ref": "#/definitions/actor"
1004
+ },
1005
+ "type": {
1006
+ "type": "string",
1007
+ "const": "EMAIL"
1008
+ },
1009
+ "emailContentId": {
1010
+ "type": "string"
1011
+ }
1012
+ },
1013
+ "required": [
1014
+ "id",
1015
+ "fileName",
1016
+ "fileSizeBytes",
1017
+ "fileMimeType",
1018
+ "fileExtension",
1019
+ "createdAt",
1020
+ "createdBy",
1021
+ "updatedAt",
1022
+ "updatedBy",
1023
+ "type",
1024
+ "emailContentId"
1025
+ ],
1026
+ "additionalProperties": true
1027
+ },
1028
+ "componentTextSize": {
1029
+ "type": "string",
1030
+ "enum": ["S", "M", "L", "UNKNOWN_COMPONENT_TEXT_SIZE"]
1031
+ },
1032
+ "componentTextColor": {
1033
+ "type": "string",
1034
+ "enum": ["NORMAL", "MUTED", "SUCCESS", "WARNING", "ERROR", "UNKNOWN_COMPONENT_TEXT_COLOR"]
1035
+ },
1036
+ "componentPlainTextSize": {
1037
+ "type": "string",
1038
+ "enum": ["S", "M", "L", "UNKNOWN_COMPONENT_PLAIN_TEXT_SIZE"]
1039
+ },
1040
+ "componentPlainTextColor": {
1041
+ "type": "string",
1042
+ "enum": [
1043
+ "NORMAL",
1044
+ "MUTED",
1045
+ "SUCCESS",
1046
+ "WARNING",
1047
+ "ERROR",
1048
+ "UNKNOWN_COMPONENT_PLAIN_TEXT_COLOR"
1049
+ ]
1050
+ },
1051
+ "componentSpacerSize": {
1052
+ "type": "string",
1053
+ "enum": ["XS", "S", "M", "L", "XL", "UNKNOWN_COMPONENT_SPACER_SIZE"]
1054
+ },
1055
+ "componentDividerSpacingSize": {
1056
+ "type": "string",
1057
+ "enum": ["XS", "S", "M", "L", "XL", "UNKNOWN_COMPONENT_DIVIDER_SPACING_SIZE"]
1058
+ },
1059
+ "componentBadgeColor": {
1060
+ "type": "string",
1061
+ "enum": ["GREY", "GREEN", "YELLOW", "RED", "BLUE", "UNKNOWN_COMPONENT_BADGE_COLOR"]
1062
+ },
1063
+ "componentText": {
1064
+ "type": "object",
1065
+ "properties": {
1066
+ "type": {
1067
+ "type": "string",
1068
+ "const": "text"
1069
+ },
1070
+ "textSize": {
1071
+ "anyOf": [
1072
+ {
1073
+ "$ref": "#/definitions/componentTextSize"
1074
+ },
1075
+ {
1076
+ "type": "null"
1077
+ }
1078
+ ]
1079
+ },
1080
+ "textColor": {
1081
+ "anyOf": [
1082
+ {
1083
+ "$ref": "#/definitions/componentTextColor"
1084
+ },
1085
+ {
1086
+ "type": "null"
1087
+ }
1088
+ ]
1089
+ },
1090
+ "text": {
1091
+ "type": "string",
1092
+ "minLength": 1,
1093
+ "maxLength": 5000
1094
+ }
1095
+ },
1096
+ "required": ["type", "textSize", "textColor", "text"],
1097
+ "additionalProperties": true
1098
+ },
1099
+ "componentPlainText": {
1100
+ "type": "object",
1101
+ "properties": {
1102
+ "plainTextSize": {
1103
+ "anyOf": [
1104
+ {
1105
+ "$ref": "#/definitions/componentPlainTextSize"
1106
+ },
1107
+ {
1108
+ "type": "null"
1109
+ }
1110
+ ]
1111
+ },
1112
+ "plainTextColor": {
1113
+ "anyOf": [
1114
+ {
1115
+ "$ref": "#/definitions/componentPlainTextColor"
1116
+ },
1117
+ {
1118
+ "type": "null"
1119
+ }
1120
+ ]
1121
+ },
1122
+ "plainText": {
1123
+ "type": "string",
1124
+ "minLength": 1,
1125
+ "maxLength": 5000
1126
+ },
1127
+ "type": {
1128
+ "type": "string",
1129
+ "const": "plainText"
1130
+ }
1131
+ },
1132
+ "required": ["plainTextSize", "plainTextColor", "plainText", "type"],
1133
+ "additionalProperties": true
1134
+ },
1135
+ "componentSpacer": {
1136
+ "type": "object",
1137
+ "properties": {
1138
+ "spacerSize": {
1139
+ "$ref": "#/definitions/componentSpacerSize"
1140
+ },
1141
+ "type": {
1142
+ "type": "string",
1143
+ "const": "spacer"
1144
+ }
1145
+ },
1146
+ "required": ["spacerSize", "type"],
1147
+ "additionalProperties": true
1148
+ },
1149
+ "componentDivider": {
1150
+ "type": "object",
1151
+ "properties": {
1152
+ "dividerSpacingSize": {
1153
+ "anyOf": [
1154
+ {
1155
+ "$ref": "#/definitions/componentDividerSpacingSize"
1156
+ },
1157
+ {
1158
+ "type": "null"
1159
+ }
1160
+ ]
1161
+ },
1162
+ "type": {
1163
+ "type": "string",
1164
+ "const": "divider"
1165
+ }
1166
+ },
1167
+ "required": ["dividerSpacingSize", "type"],
1168
+ "additionalProperties": true
1169
+ },
1170
+ "componentLinkButton": {
1171
+ "type": "object",
1172
+ "properties": {
1173
+ "linkButtonUrl": {
1174
+ "type": "string",
1175
+ "format": "uri"
1176
+ },
1177
+ "linkButtonLabel": {
1178
+ "type": "string",
1179
+ "maxLength": 500
1180
+ },
1181
+ "type": {
1182
+ "type": "string",
1183
+ "const": "linkButton"
1184
+ }
1185
+ },
1186
+ "required": ["linkButtonUrl", "linkButtonLabel", "type"],
1187
+ "additionalProperties": true
1188
+ },
1189
+ "componentWorkflowButton": {
1190
+ "type": "object",
1191
+ "properties": {
1192
+ "workflowButtonLabel": {
1193
+ "type": "string",
1194
+ "maxLength": 500
1195
+ },
1196
+ "workflowButtonWorkflowIdentifier": {
1197
+ "type": "object",
1198
+ "properties": {
1199
+ "workflowId": {
1200
+ "type": "string"
1201
+ }
1202
+ },
1203
+ "required": ["workflowId"],
1204
+ "additionalProperties": true
1205
+ },
1206
+ "type": {
1207
+ "type": "string",
1208
+ "const": "workflowButton"
1209
+ }
1210
+ },
1211
+ "required": ["workflowButtonLabel", "workflowButtonWorkflowIdentifier", "type"],
1212
+ "additionalProperties": true
1213
+ },
1214
+ "componentBadge": {
1215
+ "type": "object",
1216
+ "properties": {
1217
+ "badgeLabel": {
1218
+ "type": "string",
1219
+ "maxLength": 500
1220
+ },
1221
+ "badgeColor": {
1222
+ "anyOf": [
1223
+ {
1224
+ "$ref": "#/definitions/componentBadgeColor"
1225
+ },
1226
+ {
1227
+ "type": "null"
1228
+ }
1229
+ ]
1230
+ },
1231
+ "type": {
1232
+ "type": "string",
1233
+ "const": "badge"
1234
+ }
1235
+ },
1236
+ "required": ["badgeLabel", "badgeColor", "type"],
1237
+ "additionalProperties": true
1238
+ },
1239
+ "componentCopyButton": {
1240
+ "type": "object",
1241
+ "properties": {
1242
+ "copyButtonValue": {
1243
+ "type": "string",
1244
+ "maxLength": 1000
1245
+ },
1246
+ "copyButtonTooltipLabel": {
1247
+ "anyOf": [
1248
+ {
1249
+ "type": "string",
1250
+ "maxLength": 500
1251
+ },
1252
+ {
1253
+ "type": "null"
1254
+ }
1255
+ ]
1256
+ },
1257
+ "type": {
1258
+ "type": "string",
1259
+ "const": "copyButton"
1260
+ }
1261
+ },
1262
+ "required": ["copyButtonValue", "copyButtonTooltipLabel", "type"],
1263
+ "additionalProperties": true
1264
+ },
1265
+ "componentRowContent": {
1266
+ "anyOf": [
1267
+ {
1268
+ "type": "object",
1269
+ "properties": {
1270
+ "type": {
1271
+ "type": "string",
1272
+ "const": "UNKNOWN"
1273
+ }
1274
+ },
1275
+ "required": ["type"],
1276
+ "additionalProperties": true
1277
+ },
1278
+ {
1279
+ "$ref": "#/definitions/componentText"
1280
+ },
1281
+ {
1282
+ "$ref": "#/definitions/componentPlainText"
1283
+ },
1284
+ {
1285
+ "$ref": "#/definitions/componentSpacer"
1286
+ },
1287
+ {
1288
+ "$ref": "#/definitions/componentDivider"
1289
+ },
1290
+ {
1291
+ "$ref": "#/definitions/componentLinkButton"
1292
+ },
1293
+ {
1294
+ "$ref": "#/definitions/componentBadge"
1295
+ },
1296
+ {
1297
+ "$ref": "#/definitions/componentCopyButton"
1298
+ },
1299
+ {
1300
+ "$ref": "#/definitions/componentWorkflowButton"
1301
+ }
1302
+ ]
1303
+ },
1304
+ "componentRow": {
1305
+ "type": "object",
1306
+ "properties": {
1307
+ "type": {
1308
+ "type": "string",
1309
+ "const": "row"
1310
+ },
1311
+ "rowMainContent": {
1312
+ "type": "array",
1313
+ "items": {
1314
+ "$ref": "#/definitions/componentRowContent"
1315
+ }
1316
+ },
1317
+ "rowAsideContent": {
1318
+ "type": "array",
1319
+ "items": {
1320
+ "$ref": "#/definitions/componentRowContent"
1321
+ }
1322
+ }
1323
+ },
1324
+ "required": ["type", "rowMainContent", "rowAsideContent"],
1325
+ "additionalProperties": true
1326
+ },
1327
+ "componentContainerContent": {
1328
+ "anyOf": [
1329
+ {
1330
+ "$ref": "#/definitions/componentRowContent/anyOf/0"
1331
+ },
1332
+ {
1333
+ "$ref": "#/definitions/componentText"
1334
+ },
1335
+ {
1336
+ "$ref": "#/definitions/componentPlainText"
1337
+ },
1338
+ {
1339
+ "$ref": "#/definitions/componentSpacer"
1340
+ },
1341
+ {
1342
+ "$ref": "#/definitions/componentDivider"
1343
+ },
1344
+ {
1345
+ "$ref": "#/definitions/componentLinkButton"
1346
+ },
1347
+ {
1348
+ "$ref": "#/definitions/componentBadge"
1349
+ },
1350
+ {
1351
+ "$ref": "#/definitions/componentCopyButton"
1352
+ },
1353
+ {
1354
+ "$ref": "#/definitions/componentRow"
1355
+ },
1356
+ {
1357
+ "$ref": "#/definitions/componentWorkflowButton"
1358
+ }
1359
+ ]
1360
+ },
1361
+ "componentContainer": {
1362
+ "type": "object",
1363
+ "properties": {
1364
+ "type": {
1365
+ "type": "string",
1366
+ "const": "container"
1367
+ },
1368
+ "containerContent": {
1369
+ "type": "array",
1370
+ "items": {
1371
+ "$ref": "#/definitions/componentContainerContent"
1372
+ }
1373
+ }
1374
+ },
1375
+ "required": ["type", "containerContent"],
1376
+ "additionalProperties": true
1377
+ },
1378
+ "component": {
1379
+ "anyOf": [
1380
+ {
1381
+ "$ref": "#/definitions/componentRowContent/anyOf/0"
1382
+ },
1383
+ {
1384
+ "$ref": "#/definitions/componentText"
1385
+ },
1386
+ {
1387
+ "$ref": "#/definitions/componentPlainText"
1388
+ },
1389
+ {
1390
+ "$ref": "#/definitions/componentSpacer"
1391
+ },
1392
+ {
1393
+ "$ref": "#/definitions/componentDivider"
1394
+ },
1395
+ {
1396
+ "$ref": "#/definitions/componentLinkButton"
1397
+ },
1398
+ {
1399
+ "$ref": "#/definitions/componentBadge"
1400
+ },
1401
+ {
1402
+ "$ref": "#/definitions/componentCopyButton"
1403
+ },
1404
+ {
1405
+ "$ref": "#/definitions/componentRow"
1406
+ },
1407
+ {
1408
+ "$ref": "#/definitions/componentContainer"
1409
+ },
1410
+ {
1411
+ "$ref": "#/definitions/componentWorkflowButton"
1412
+ }
1413
+ ]
1414
+ },
1415
+ "labelType": {
1416
+ "type": "object",
1417
+ "properties": {
1418
+ "id": {
1419
+ "$ref": "#/definitions/id"
1420
+ },
1421
+ "name": {
1422
+ "type": "string",
1423
+ "minLength": 1,
1424
+ "maxLength": 500
1425
+ },
1426
+ "icon": {
1427
+ "type": ["string", "null"],
1428
+ "default": null
1429
+ },
1430
+ "isArchived": {
1431
+ "type": "boolean",
1432
+ "default": false
1433
+ },
1434
+ "archivedAt": {
1435
+ "anyOf": [
1436
+ {
1437
+ "$ref": "#/definitions/datetime"
1438
+ },
1439
+ {
1440
+ "type": "null"
1441
+ }
1442
+ ]
1443
+ },
1444
+ "archivedBy": {
1445
+ "anyOf": [
1446
+ {
1447
+ "$ref": "#/definitions/internalActor"
1448
+ },
1449
+ {
1450
+ "type": "null"
1451
+ }
1452
+ ]
1453
+ },
1454
+ "externalId": {
1455
+ "anyOf": [
1456
+ {
1457
+ "type": "string",
1458
+ "maxLength": 500
1459
+ },
1460
+ {
1461
+ "type": "null"
1462
+ }
1463
+ ],
1464
+ "default": null
1465
+ },
1466
+ "isExcludedFromAi": {
1467
+ "type": "boolean",
1468
+ "default": false
1469
+ },
1470
+ "createdAt": {
1471
+ "$ref": "#/definitions/datetime"
1472
+ },
1473
+ "createdBy": {
1474
+ "$ref": "#/definitions/internalActor"
1475
+ },
1476
+ "updatedAt": {
1477
+ "$ref": "#/definitions/datetime"
1478
+ },
1479
+ "updatedBy": {
1480
+ "$ref": "#/definitions/internalActor"
1481
+ }
1482
+ },
1483
+ "required": [
1484
+ "id",
1485
+ "name",
1486
+ "archivedAt",
1487
+ "archivedBy",
1488
+ "createdAt",
1489
+ "createdBy",
1490
+ "updatedAt",
1491
+ "updatedBy"
1492
+ ],
1493
+ "additionalProperties": true
1494
+ },
1495
+ "label": {
1496
+ "type": "object",
1497
+ "properties": {
1498
+ "id": {
1499
+ "$ref": "#/definitions/id"
1500
+ },
1501
+ "labelType": {
1502
+ "$ref": "#/definitions/labelType"
1503
+ },
1504
+ "createdAt": {
1505
+ "$ref": "#/definitions/datetime"
1506
+ },
1507
+ "createdBy": {
1508
+ "$ref": "#/definitions/actor"
1509
+ },
1510
+ "updatedAt": {
1511
+ "$ref": "#/definitions/datetime"
1512
+ },
1513
+ "updatedBy": {
1514
+ "$ref": "#/definitions/actor"
1515
+ }
1516
+ },
1517
+ "required": ["id", "labelType", "createdAt", "createdBy", "updatedAt", "updatedBy"],
1518
+ "additionalProperties": true
1519
+ },
1520
+ "tier": {
1521
+ "type": "object",
1522
+ "properties": {
1523
+ "id": {
1524
+ "$ref": "#/definitions/id"
1525
+ },
1526
+ "name": {
1527
+ "type": "string",
1528
+ "minLength": 1,
1529
+ "maxLength": 500
1530
+ },
1531
+ "externalId": {
1532
+ "anyOf": [
1533
+ {
1534
+ "type": "string",
1535
+ "minLength": 1,
1536
+ "maxLength": 500
1537
+ },
1538
+ {
1539
+ "type": "null"
1540
+ }
1541
+ ]
1542
+ },
1543
+ "color": {
1544
+ "type": "string",
1545
+ "minLength": 1,
1546
+ "maxLength": 500
1547
+ },
1548
+ "defaultThreadPriority": {
1549
+ "$ref": "#/definitions/threadPriority",
1550
+ "default": 2
1551
+ },
1552
+ "isDefault": {
1553
+ "type": "boolean"
1554
+ },
1555
+ "createdAt": {
1556
+ "$ref": "#/definitions/datetime"
1557
+ },
1558
+ "createdBy": {
1559
+ "$ref": "#/definitions/internalActor"
1560
+ },
1561
+ "updatedAt": {
1562
+ "$ref": "#/definitions/datetime"
1563
+ },
1564
+ "updatedBy": {
1565
+ "$ref": "#/definitions/internalActor"
1566
+ }
1567
+ },
1568
+ "required": [
1569
+ "id",
1570
+ "name",
1571
+ "externalId",
1572
+ "color",
1573
+ "isDefault",
1574
+ "createdAt",
1575
+ "createdBy",
1576
+ "updatedAt",
1577
+ "updatedBy"
1578
+ ],
1579
+ "additionalProperties": true
1580
+ },
1581
+ "threadPriority": {
1582
+ "type": "number"
1583
+ },
1584
+ "threadPriorityFilter": {
1585
+ "type": "array",
1586
+ "items": {
1587
+ "$ref": "#/definitions/threadPriority"
1588
+ },
1589
+ "minItems": 1
1590
+ },
1591
+ "threadAssignee": {
1592
+ "anyOf": [
1593
+ {
1594
+ "type": "object",
1595
+ "properties": {
1596
+ "type": {
1597
+ "type": "string",
1598
+ "const": "UNKNOWN"
1599
+ }
1600
+ },
1601
+ "required": ["type"],
1602
+ "additionalProperties": true
1603
+ },
1604
+ {
1605
+ "$ref": "#/definitions/user"
1606
+ },
1607
+ {
1608
+ "$ref": "#/definitions/machineUser"
1609
+ },
1610
+ {
1611
+ "type": "object",
1612
+ "properties": {
1613
+ "id": {
1614
+ "type": "string"
1615
+ }
1616
+ },
1617
+ "required": ["id"],
1618
+ "additionalProperties": true
1619
+ }
1620
+ ]
1621
+ },
1622
+ "threadStatus": {
1623
+ "type": "string",
1624
+ "enum": ["TODO", "DONE", "SNOOZED", "UNKNOWN_THREAD_STATUS"]
1625
+ },
1626
+ "threadMessageInfo": {
1627
+ "type": "object",
1628
+ "properties": {
1629
+ "timestamp": {
1630
+ "$ref": "#/definitions/datetime"
1631
+ },
1632
+ "messageSource": {
1633
+ "type": "string",
1634
+ "enum": [
1635
+ "CHAT",
1636
+ "EMAIL",
1637
+ "API",
1638
+ "SLACK",
1639
+ "MS_TEAMS",
1640
+ "UNKNOWN_THREAD_MESSAGE_INFO_MESSAGE_SOURCE"
1641
+ ]
1642
+ },
1643
+ "actorId": {
1644
+ "type": ["string", "null"],
1645
+ "default": null
1646
+ },
1647
+ "actorType": {
1648
+ "anyOf": [
1649
+ {
1650
+ "type": "string",
1651
+ "enum": ["user", "machineUser", "customer", "system"]
1652
+ },
1653
+ {
1654
+ "type": "null"
1655
+ }
1656
+ ],
1657
+ "default": null
1658
+ }
1659
+ },
1660
+ "required": ["timestamp", "messageSource"],
1661
+ "additionalProperties": true
1662
+ },
1663
+ "threadStatusDetail": {
1664
+ "anyOf": [
1665
+ {
1666
+ "type": "object",
1667
+ "properties": {
1668
+ "type": {
1669
+ "type": "string",
1670
+ "const": "UNKNOWN"
1671
+ }
1672
+ },
1673
+ "required": ["type"],
1674
+ "additionalProperties": true
1675
+ },
1676
+ {
1677
+ "type": "object",
1678
+ "properties": {
1679
+ "type": {
1680
+ "type": "string",
1681
+ "const": "CREATED"
1682
+ },
1683
+ "createdAt": {
1684
+ "$ref": "#/definitions/datetime"
1685
+ }
1686
+ },
1687
+ "required": ["type", "createdAt"],
1688
+ "additionalProperties": true
1689
+ },
1690
+ {
1691
+ "type": "object",
1692
+ "properties": {
1693
+ "type": {
1694
+ "type": "string",
1695
+ "const": "NEW_REPLY"
1696
+ }
1697
+ },
1698
+ "required": ["type"],
1699
+ "additionalProperties": true
1700
+ },
1701
+ {
1702
+ "type": "object",
1703
+ "properties": {
1704
+ "type": {
1705
+ "type": "string",
1706
+ "const": "IN_PROGRESS"
1707
+ }
1708
+ },
1709
+ "required": ["type"],
1710
+ "additionalProperties": true
1711
+ },
1712
+ {
1713
+ "type": "object",
1714
+ "properties": {
1715
+ "type": {
1716
+ "type": "string",
1717
+ "const": "WAITING_FOR_CUSTOMER"
1718
+ }
1719
+ },
1720
+ "required": ["type"],
1721
+ "additionalProperties": true
1722
+ },
1723
+ {
1724
+ "type": "object",
1725
+ "properties": {
1726
+ "type": {
1727
+ "type": "string",
1728
+ "const": "WAITING_FOR_DURATION"
1729
+ },
1730
+ "waitingUntil": {
1731
+ "$ref": "#/definitions/datetime"
1732
+ },
1733
+ "durationSeconds": {
1734
+ "type": "number"
1735
+ }
1736
+ },
1737
+ "required": ["type", "waitingUntil", "durationSeconds"],
1738
+ "additionalProperties": true
1739
+ },
1740
+ {
1741
+ "type": "object",
1742
+ "properties": {
1743
+ "type": {
1744
+ "type": "string",
1745
+ "const": "THREAD_LINK_UPDATED"
1746
+ },
1747
+ "linear": {
1748
+ "type": "object",
1749
+ "properties": {
1750
+ "issueId": {
1751
+ "type": "string",
1752
+ "format": "uuid"
1753
+ }
1754
+ },
1755
+ "required": ["issueId"],
1756
+ "additionalProperties": true
1757
+ }
1758
+ },
1759
+ "required": ["type"],
1760
+ "additionalProperties": true
1761
+ },
1762
+ {
1763
+ "type": "object",
1764
+ "properties": {
1765
+ "type": {
1766
+ "type": "string",
1767
+ "const": "DONE_MANUALLY_SET"
1768
+ }
1769
+ },
1770
+ "required": ["type"],
1771
+ "additionalProperties": true
1772
+ },
1773
+ {
1774
+ "type": "object",
1775
+ "properties": {
1776
+ "type": {
1777
+ "type": "string",
1778
+ "const": "IGNORED"
1779
+ }
1780
+ },
1781
+ "required": ["type"],
1782
+ "additionalProperties": true
1783
+ },
1784
+ {
1785
+ "type": "object",
1786
+ "properties": {
1787
+ "type": {
1788
+ "type": "string",
1789
+ "const": "DONE_AUTOMATICALLY_SET"
1790
+ },
1791
+ "afterSeconds": {
1792
+ "type": "number"
1793
+ }
1794
+ },
1795
+ "required": ["type"],
1796
+ "additionalProperties": true
1797
+ },
1798
+ {
1799
+ "type": "object",
1800
+ "properties": {
1801
+ "type": {
1802
+ "type": "string",
1803
+ "const": "THREAD_DISCUSSION_RESOLVED"
1804
+ },
1805
+ "threadDiscussionId": {
1806
+ "$ref": "#/definitions/id"
1807
+ }
1808
+ },
1809
+ "required": ["type"],
1810
+ "additionalProperties": true
1811
+ }
1812
+ ]
1813
+ },
1814
+ "threadField": {
1815
+ "type": "object",
1816
+ "properties": {
1817
+ "id": {
1818
+ "$ref": "#/definitions/id"
1819
+ },
1820
+ "threadId": {
1821
+ "$ref": "#/definitions/id"
1822
+ },
1823
+ "key": {
1824
+ "type": "string"
1825
+ },
1826
+ "type": {
1827
+ "type": "string",
1828
+ "enum": [
1829
+ "STRING",
1830
+ "BOOL",
1831
+ "ENUM",
1832
+ "NUMBER",
1833
+ "CURRENCY",
1834
+ "DATE",
1835
+ "UNKNOWN_THREAD_FIELD_SCHEMA_TYPE"
1836
+ ]
1837
+ },
1838
+ "stringValue": {
1839
+ "type": ["string", "null"]
1840
+ },
1841
+ "booleanValue": {
1842
+ "type": ["boolean", "null"]
1843
+ },
1844
+ "numberValue": {
1845
+ "type": ["number", "null"],
1846
+ "default": null
1847
+ },
1848
+ "dateValue": {
1849
+ "type": ["string", "null"],
1850
+ "default": null
1851
+ },
1852
+ "createdAt": {
1853
+ "$ref": "#/definitions/datetime"
1854
+ },
1855
+ "createdBy": {
1856
+ "$ref": "#/definitions/actor"
1857
+ },
1858
+ "updatedAt": {
1859
+ "$ref": "#/definitions/datetime"
1860
+ },
1861
+ "updatedBy": {
1862
+ "$ref": "#/definitions/actor"
1863
+ }
1864
+ },
1865
+ "required": [
1866
+ "id",
1867
+ "threadId",
1868
+ "key",
1869
+ "type",
1870
+ "stringValue",
1871
+ "booleanValue",
1872
+ "createdAt",
1873
+ "createdBy",
1874
+ "updatedAt",
1875
+ "updatedBy"
1876
+ ],
1877
+ "additionalProperties": true
1878
+ },
1879
+ "thread": {
1880
+ "type": "object",
1881
+ "properties": {
1882
+ "id": {
1883
+ "$ref": "#/definitions/id"
1884
+ },
1885
+ "customer": {
1886
+ "$ref": "#/definitions/customer"
1887
+ },
1888
+ "title": {
1889
+ "type": "string",
1890
+ "minLength": 1,
1891
+ "maxLength": 500
1892
+ },
1893
+ "previewText": {
1894
+ "anyOf": [
1895
+ {
1896
+ "type": "string",
1897
+ "maxLength": 500
1898
+ },
1899
+ {
1900
+ "type": "null"
1901
+ }
1902
+ ],
1903
+ "default": null
1904
+ },
1905
+ "priority": {
1906
+ "$ref": "#/definitions/threadPriority"
1907
+ },
1908
+ "externalId": {
1909
+ "anyOf": [
1910
+ {
1911
+ "type": "string",
1912
+ "minLength": 1,
1913
+ "maxLength": 500
1914
+ },
1915
+ {
1916
+ "type": "null"
1917
+ }
1918
+ ]
1919
+ },
1920
+ "status": {
1921
+ "$ref": "#/definitions/threadStatus"
1922
+ },
1923
+ "statusChangedAt": {
1924
+ "$ref": "#/definitions/datetime"
1925
+ },
1926
+ "statusChangedBy": {
1927
+ "anyOf": [
1928
+ {
1929
+ "$ref": "#/definitions/actor"
1930
+ },
1931
+ {
1932
+ "type": "null"
1933
+ }
1934
+ ],
1935
+ "default": null
1936
+ },
1937
+ "statusDetail": {
1938
+ "anyOf": [
1939
+ {
1940
+ "$ref": "#/definitions/threadStatusDetail"
1941
+ },
1942
+ {
1943
+ "type": "null"
1944
+ }
1945
+ ]
1946
+ },
1947
+ "assignee": {
1948
+ "anyOf": [
1949
+ {
1950
+ "$ref": "#/definitions/threadAssignee"
1951
+ },
1952
+ {
1953
+ "type": "null"
1954
+ }
1955
+ ]
1956
+ },
1957
+ "assignedAt": {
1958
+ "anyOf": [
1959
+ {
1960
+ "$ref": "#/definitions/datetime"
1961
+ },
1962
+ {
1963
+ "type": "null"
1964
+ }
1965
+ ]
1966
+ },
1967
+ "additionalAssignees": {
1968
+ "type": "array",
1969
+ "items": {
1970
+ "$ref": "#/definitions/threadAssignee"
1971
+ },
1972
+ "default": []
1973
+ },
1974
+ "labels": {
1975
+ "type": "array",
1976
+ "items": {
1977
+ "$ref": "#/definitions/label"
1978
+ }
1979
+ },
1980
+ "firstInboundMessageInfo": {
1981
+ "anyOf": [
1982
+ {
1983
+ "$ref": "#/definitions/threadMessageInfo"
1984
+ },
1985
+ {
1986
+ "type": "null"
1987
+ }
1988
+ ]
1989
+ },
1990
+ "firstOutboundMessageInfo": {
1991
+ "anyOf": [
1992
+ {
1993
+ "$ref": "#/definitions/threadMessageInfo"
1994
+ },
1995
+ {
1996
+ "type": "null"
1997
+ }
1998
+ ]
1999
+ },
2000
+ "lastInboundMessageInfo": {
2001
+ "anyOf": [
2002
+ {
2003
+ "$ref": "#/definitions/threadMessageInfo"
2004
+ },
2005
+ {
2006
+ "type": "null"
2007
+ }
2008
+ ]
2009
+ },
2010
+ "lastOutboundMessageInfo": {
2011
+ "anyOf": [
2012
+ {
2013
+ "$ref": "#/definitions/threadMessageInfo"
2014
+ },
2015
+ {
2016
+ "type": "null"
2017
+ }
2018
+ ]
2019
+ },
2020
+ "supportEmailAddresses": {
2021
+ "type": "array",
2022
+ "items": {
2023
+ "type": "string"
2024
+ }
2025
+ },
2026
+ "createdAt": {
2027
+ "$ref": "#/definitions/datetime"
2028
+ },
2029
+ "createdBy": {
2030
+ "$ref": "#/definitions/actor"
2031
+ },
2032
+ "updatedAt": {
2033
+ "$ref": "#/definitions/datetime"
2034
+ },
2035
+ "updatedBy": {
2036
+ "$ref": "#/definitions/actor"
2037
+ }
2038
+ },
2039
+ "required": [
2040
+ "id",
2041
+ "customer",
2042
+ "title",
2043
+ "priority",
2044
+ "externalId",
2045
+ "status",
2046
+ "statusChangedAt",
2047
+ "statusDetail",
2048
+ "assignee",
2049
+ "assignedAt",
2050
+ "labels",
2051
+ "firstInboundMessageInfo",
2052
+ "firstOutboundMessageInfo",
2053
+ "lastInboundMessageInfo",
2054
+ "lastOutboundMessageInfo",
2055
+ "supportEmailAddresses",
2056
+ "createdAt",
2057
+ "createdBy",
2058
+ "updatedAt",
2059
+ "updatedBy"
2060
+ ],
2061
+ "additionalProperties": true
2062
+ },
2063
+ "noteEntry": {
2064
+ "type": "object",
2065
+ "properties": {
2066
+ "entryType": {
2067
+ "type": "string",
2068
+ "const": "note"
2069
+ },
2070
+ "noteId": {
2071
+ "$ref": "#/definitions/id"
2072
+ },
2073
+ "text": {
2074
+ "type": "string",
2075
+ "minLength": 1,
2076
+ "maxLength": 10000
2077
+ },
2078
+ "markdown": {
2079
+ "anyOf": [
2080
+ {
2081
+ "type": "string",
2082
+ "minLength": 1,
2083
+ "maxLength": 10000
2084
+ },
2085
+ {
2086
+ "type": "null"
2087
+ }
2088
+ ]
2089
+ }
2090
+ },
2091
+ "required": ["entryType", "noteId", "text", "markdown"],
2092
+ "additionalProperties": true
2093
+ },
2094
+ "chatEntry": {
2095
+ "type": "object",
2096
+ "properties": {
2097
+ "entryType": {
2098
+ "type": "string",
2099
+ "const": "chat"
2100
+ },
2101
+ "chatId": {
2102
+ "$ref": "#/definitions/id"
2103
+ },
2104
+ "text": {
2105
+ "type": ["string", "null"]
2106
+ },
2107
+ "attachments": {
2108
+ "type": "array",
2109
+ "items": {
2110
+ "$ref": "#/definitions/chatEntryAttachment"
2111
+ }
2112
+ },
2113
+ "customerReadAt": {
2114
+ "anyOf": [
2115
+ {
2116
+ "$ref": "#/definitions/datetime"
2117
+ },
2118
+ {
2119
+ "type": "null"
2120
+ }
2121
+ ]
2122
+ }
2123
+ },
2124
+ "required": ["entryType", "chatId", "text", "attachments", "customerReadAt"],
2125
+ "additionalProperties": true
2126
+ },
2127
+ "emailEntry": {
2128
+ "type": "object",
2129
+ "properties": {
2130
+ "entryType": {
2131
+ "type": "string",
2132
+ "const": "email"
2133
+ },
2134
+ "emailId": {
2135
+ "$ref": "#/definitions/id"
2136
+ },
2137
+ "to": {
2138
+ "$ref": "#/definitions/emailParticipant"
2139
+ },
2140
+ "from": {
2141
+ "$ref": "#/definitions/emailParticipant"
2142
+ },
2143
+ "additionalRecipients": {
2144
+ "type": "array",
2145
+ "items": {
2146
+ "$ref": "#/definitions/emailParticipant"
2147
+ }
2148
+ },
2149
+ "hiddenRecipients": {
2150
+ "type": "array",
2151
+ "items": {
2152
+ "$ref": "#/definitions/emailParticipant"
2153
+ }
2154
+ },
2155
+ "subject": {
2156
+ "type": ["string", "null"]
2157
+ },
2158
+ "textContent": {
2159
+ "type": ["string", "null"]
2160
+ },
2161
+ "hasMoreTextContent": {
2162
+ "type": "boolean"
2163
+ },
2164
+ "markdownContent": {
2165
+ "type": ["string", "null"]
2166
+ },
2167
+ "hasMoreMarkdownContent": {
2168
+ "type": "boolean"
2169
+ },
2170
+ "authenticity": {
2171
+ "$ref": "#/definitions/emailAuthenticity"
2172
+ },
2173
+ "sentAt": {
2174
+ "anyOf": [
2175
+ {
2176
+ "$ref": "#/definitions/datetime"
2177
+ },
2178
+ {
2179
+ "type": "null"
2180
+ }
2181
+ ]
2182
+ },
2183
+ "receivedAt": {
2184
+ "anyOf": [
2185
+ {
2186
+ "$ref": "#/definitions/datetime"
2187
+ },
2188
+ {
2189
+ "type": "null"
2190
+ }
2191
+ ]
2192
+ },
2193
+ "attachments": {
2194
+ "type": "array",
2195
+ "items": {
2196
+ "$ref": "#/definitions/emailEntryAttachment"
2197
+ }
2198
+ },
2199
+ "inReplyToEmailId": {
2200
+ "type": ["string", "null"]
2201
+ },
2202
+ "isStartOfThread": {
2203
+ "type": "boolean"
2204
+ }
2205
+ },
2206
+ "required": [
2207
+ "entryType",
2208
+ "emailId",
2209
+ "to",
2210
+ "from",
2211
+ "additionalRecipients",
2212
+ "hiddenRecipients",
2213
+ "subject",
2214
+ "textContent",
2215
+ "hasMoreTextContent",
2216
+ "markdownContent",
2217
+ "hasMoreMarkdownContent",
2218
+ "authenticity",
2219
+ "sentAt",
2220
+ "receivedAt",
2221
+ "attachments",
2222
+ "inReplyToEmailId",
2223
+ "isStartOfThread"
2224
+ ],
2225
+ "additionalProperties": true
2226
+ },
2227
+ "customEntry": {
2228
+ "type": "object",
2229
+ "properties": {
2230
+ "entryType": {
2231
+ "type": "string",
2232
+ "const": "custom"
2233
+ },
2234
+ "externalId": {
2235
+ "anyOf": [
2236
+ {
2237
+ "type": "string",
2238
+ "minLength": 1,
2239
+ "maxLength": 500
2240
+ },
2241
+ {
2242
+ "type": "null"
2243
+ }
2244
+ ]
2245
+ },
2246
+ "title": {
2247
+ "type": "string",
2248
+ "maxLength": 500
2249
+ },
2250
+ "type": {
2251
+ "type": ["string", "null"]
2252
+ },
2253
+ "components": {
2254
+ "type": "array",
2255
+ "items": {
2256
+ "$ref": "#/definitions/component"
2257
+ }
2258
+ },
2259
+ "attachments": {
2260
+ "type": "array",
2261
+ "items": {
2262
+ "$ref": "#/definitions/customEntryAttachment"
2263
+ }
2264
+ }
2265
+ },
2266
+ "required": ["entryType", "externalId", "title", "type", "components", "attachments"],
2267
+ "additionalProperties": true
2268
+ },
2269
+ "timelineEntry": {
2270
+ "type": "object",
2271
+ "properties": {
2272
+ "id": {
2273
+ "$ref": "#/definitions/id"
2274
+ },
2275
+ "customerId": {
2276
+ "$ref": "#/definitions/id"
2277
+ },
2278
+ "threadId": {
2279
+ "anyOf": [
2280
+ {
2281
+ "$ref": "#/definitions/id"
2282
+ },
2283
+ {
2284
+ "type": "null"
2285
+ }
2286
+ ],
2287
+ "default": null
2288
+ },
2289
+ "timestamp": {
2290
+ "$ref": "#/definitions/datetime"
2291
+ },
2292
+ "actor": {
2293
+ "$ref": "#/definitions/actor"
2294
+ },
2295
+ "entry": {
2296
+ "anyOf": [
2297
+ {
2298
+ "type": "object",
2299
+ "properties": {
2300
+ "entryType": {
2301
+ "type": "string",
2302
+ "const": "UNKNOWN"
2303
+ }
2304
+ },
2305
+ "required": ["entryType"],
2306
+ "additionalProperties": true
2307
+ },
2308
+ {
2309
+ "$ref": "#/definitions/noteEntry"
2310
+ },
2311
+ {
2312
+ "$ref": "#/definitions/chatEntry"
2313
+ },
2314
+ {
2315
+ "$ref": "#/definitions/emailEntry"
2316
+ },
2317
+ {
2318
+ "$ref": "#/definitions/customEntry"
2319
+ }
2320
+ ]
2321
+ }
2322
+ },
2323
+ "required": ["id", "customerId", "timestamp", "actor", "entry"],
2324
+ "additionalProperties": true
2325
+ },
2326
+ "serviceLevelAgreementStatusDetail": {
2327
+ "anyOf": [
2328
+ {
2329
+ "type": "object",
2330
+ "properties": {
2331
+ "status": {
2332
+ "type": "string",
2333
+ "const": "UNKNOWN"
2334
+ }
2335
+ },
2336
+ "required": ["status"],
2337
+ "additionalProperties": true
2338
+ },
2339
+ {
2340
+ "type": "object",
2341
+ "properties": {
2342
+ "breachTime": {
2343
+ "$ref": "#/definitions/datetime"
2344
+ },
2345
+ "status": {
2346
+ "type": "string",
2347
+ "const": "PENDING"
2348
+ }
2349
+ },
2350
+ "required": ["breachTime", "status"],
2351
+ "additionalProperties": true
2352
+ },
2353
+ {
2354
+ "type": "object",
2355
+ "properties": {
2356
+ "achievedAt": {
2357
+ "$ref": "#/definitions/datetime"
2358
+ },
2359
+ "status": {
2360
+ "type": "string",
2361
+ "const": "ACHIEVED"
2362
+ }
2363
+ },
2364
+ "required": ["achievedAt", "status"],
2365
+ "additionalProperties": true
2366
+ },
2367
+ {
2368
+ "type": "object",
2369
+ "properties": {
2370
+ "breachTime": {
2371
+ "$ref": "#/definitions/datetime"
2372
+ },
2373
+ "status": {
2374
+ "type": "string",
2375
+ "const": "IMMINENT_BREACH"
2376
+ }
2377
+ },
2378
+ "required": ["breachTime", "status"],
2379
+ "additionalProperties": true
2380
+ },
2381
+ {
2382
+ "type": "object",
2383
+ "properties": {
2384
+ "breachedAt": {
2385
+ "$ref": "#/definitions/datetime"
2386
+ },
2387
+ "status": {
2388
+ "type": "string",
2389
+ "const": "BREACHING"
2390
+ }
2391
+ },
2392
+ "required": ["breachedAt", "status"],
2393
+ "additionalProperties": true
2394
+ },
2395
+ {
2396
+ "type": "object",
2397
+ "properties": {
2398
+ "breachedAt": {
2399
+ "$ref": "#/definitions/datetime"
2400
+ },
2401
+ "completedAt": {
2402
+ "$ref": "#/definitions/datetime"
2403
+ },
2404
+ "status": {
2405
+ "type": "string",
2406
+ "const": "BREACHED"
2407
+ }
2408
+ },
2409
+ "required": ["breachedAt", "completedAt", "status"],
2410
+ "additionalProperties": true
2411
+ },
2412
+ {
2413
+ "type": "object",
2414
+ "properties": {
2415
+ "cancelledAt": {
2416
+ "$ref": "#/definitions/datetime"
2417
+ },
2418
+ "status": {
2419
+ "type": "string",
2420
+ "const": "CANCELLED"
2421
+ }
2422
+ },
2423
+ "required": ["cancelledAt", "status"],
2424
+ "additionalProperties": true
2425
+ }
2426
+ ]
2427
+ },
2428
+ "serviceLevelAgreement": {
2429
+ "anyOf": [
2430
+ {
2431
+ "type": "object",
2432
+ "properties": {
2433
+ "type": {
2434
+ "type": "string",
2435
+ "const": "UNKNOWN"
2436
+ }
2437
+ },
2438
+ "required": ["type"],
2439
+ "additionalProperties": true
2440
+ },
2441
+ {
2442
+ "type": "object",
2443
+ "properties": {
2444
+ "id": {
2445
+ "$ref": "#/definitions/id"
2446
+ },
2447
+ "tier": {
2448
+ "$ref": "#/definitions/tier"
2449
+ },
2450
+ "useBusinessHoursOnly": {
2451
+ "type": "boolean"
2452
+ },
2453
+ "threadPriorityFilter": {
2454
+ "$ref": "#/definitions/threadPriorityFilter"
2455
+ },
2456
+ "createdAt": {
2457
+ "$ref": "#/definitions/datetime"
2458
+ },
2459
+ "createdBy": {
2460
+ "$ref": "#/definitions/internalActor"
2461
+ },
2462
+ "updatedAt": {
2463
+ "$ref": "#/definitions/datetime"
2464
+ },
2465
+ "updatedBy": {
2466
+ "$ref": "#/definitions/internalActor"
2467
+ },
2468
+ "type": {
2469
+ "type": "string",
2470
+ "const": "FIRST_RESPONSE_TIME"
2471
+ },
2472
+ "firstResponseTimeMinutes": {
2473
+ "type": "number"
2474
+ }
2475
+ },
2476
+ "required": [
2477
+ "id",
2478
+ "tier",
2479
+ "useBusinessHoursOnly",
2480
+ "threadPriorityFilter",
2481
+ "createdAt",
2482
+ "createdBy",
2483
+ "updatedAt",
2484
+ "updatedBy",
2485
+ "type",
2486
+ "firstResponseTimeMinutes"
2487
+ ],
2488
+ "additionalProperties": true
2489
+ },
2490
+ {
2491
+ "type": "object",
2492
+ "properties": {
2493
+ "id": {
2494
+ "$ref": "#/definitions/id"
2495
+ },
2496
+ "tier": {
2497
+ "$ref": "#/definitions/tier"
2498
+ },
2499
+ "useBusinessHoursOnly": {
2500
+ "$ref": "#/definitions/serviceLevelAgreement/anyOf/1/properties/useBusinessHoursOnly"
2501
+ },
2502
+ "threadPriorityFilter": {
2503
+ "$ref": "#/definitions/threadPriorityFilter"
2504
+ },
2505
+ "createdAt": {
2506
+ "$ref": "#/definitions/datetime"
2507
+ },
2508
+ "createdBy": {
2509
+ "$ref": "#/definitions/internalActor"
2510
+ },
2511
+ "updatedAt": {
2512
+ "$ref": "#/definitions/datetime"
2513
+ },
2514
+ "updatedBy": {
2515
+ "$ref": "#/definitions/internalActor"
2516
+ },
2517
+ "type": {
2518
+ "type": "string",
2519
+ "const": "NEXT_RESPONSE_TIME"
2520
+ },
2521
+ "nextResponseTimeMinutes": {
2522
+ "type": "number"
2523
+ }
2524
+ },
2525
+ "required": [
2526
+ "id",
2527
+ "tier",
2528
+ "useBusinessHoursOnly",
2529
+ "threadPriorityFilter",
2530
+ "createdAt",
2531
+ "createdBy",
2532
+ "updatedAt",
2533
+ "updatedBy",
2534
+ "type",
2535
+ "nextResponseTimeMinutes"
2536
+ ],
2537
+ "additionalProperties": true
2538
+ }
2539
+ ]
2540
+ },
2541
+ "slackMessage": {
2542
+ "type": "object",
2543
+ "properties": {
2544
+ "timelineEntryId": {
2545
+ "$ref": "#/definitions/id"
2546
+ },
2547
+ "id": {
2548
+ "$ref": "#/definitions/id"
2549
+ },
2550
+ "text": {
2551
+ "type": "string"
2552
+ },
2553
+ "resolvedText": {
2554
+ "type": "string",
2555
+ "default": ""
2556
+ },
2557
+ "attachments": {
2558
+ "type": "array",
2559
+ "items": {
2560
+ "$ref": "#/definitions/attachment"
2561
+ }
2562
+ },
2563
+ "slackChannelId": {
2564
+ "type": "string"
2565
+ },
2566
+ "slackChannelName": {
2567
+ "type": "string"
2568
+ },
2569
+ "slackMessageLink": {
2570
+ "type": "string"
2571
+ },
2572
+ "slackReactions": {
2573
+ "type": "array",
2574
+ "items": {
2575
+ "type": "object",
2576
+ "properties": {
2577
+ "name": {
2578
+ "type": "string"
2579
+ },
2580
+ "actors": {
2581
+ "type": "array",
2582
+ "items": {
2583
+ "type": "object",
2584
+ "properties": {
2585
+ "actorId": {
2586
+ "$ref": "#/definitions/id"
2587
+ },
2588
+ "actorType": {
2589
+ "$ref": "#/definitions/threadMessageInfo/properties/actorType/anyOf/0"
2590
+ },
2591
+ "slackUserId": {
2592
+ "type": "string"
2593
+ }
2594
+ },
2595
+ "required": ["actorId", "actorType", "slackUserId"],
2596
+ "additionalProperties": true
2597
+ }
2598
+ },
2599
+ "imageUrl": {
2600
+ "anyOf": [
2601
+ {
2602
+ "type": "string",
2603
+ "format": "uri"
2604
+ },
2605
+ {
2606
+ "type": "null"
2607
+ }
2608
+ ],
2609
+ "default": null
2610
+ }
2611
+ },
2612
+ "required": ["name", "actors"],
2613
+ "additionalProperties": true
2614
+ },
2615
+ "default": []
2616
+ },
2617
+ "createdAt": {
2618
+ "$ref": "#/definitions/datetime"
2619
+ },
2620
+ "createdBy": {
2621
+ "$ref": "#/definitions/actor"
2622
+ },
2623
+ "updatedAt": {
2624
+ "$ref": "#/definitions/datetime"
2625
+ },
2626
+ "updatedBy": {
2627
+ "$ref": "#/definitions/actor"
2628
+ }
2629
+ },
2630
+ "required": [
2631
+ "timelineEntryId",
2632
+ "id",
2633
+ "text",
2634
+ "attachments",
2635
+ "slackChannelId",
2636
+ "slackChannelName",
2637
+ "slackMessageLink",
2638
+ "createdAt",
2639
+ "createdBy",
2640
+ "updatedAt",
2641
+ "updatedBy"
2642
+ ],
2643
+ "additionalProperties": true
2644
+ },
2645
+ "discordMessage": {
2646
+ "type": "object",
2647
+ "properties": {
2648
+ "timelineEntryId": {
2649
+ "$ref": "#/definitions/id"
2650
+ },
2651
+ "id": {
2652
+ "$ref": "#/definitions/id"
2653
+ },
2654
+ "discordGuildId": {
2655
+ "type": "string"
2656
+ },
2657
+ "discordChannelId": {
2658
+ "type": "string"
2659
+ },
2660
+ "discordThreadId": {
2661
+ "type": "string"
2662
+ },
2663
+ "discordId": {
2664
+ "type": "string"
2665
+ },
2666
+ "discordTimestamp": {
2667
+ "$ref": "#/definitions/datetime"
2668
+ },
2669
+ "textContent": {
2670
+ "type": "string"
2671
+ },
2672
+ "attachments": {
2673
+ "type": "array",
2674
+ "items": {
2675
+ "$ref": "#/definitions/attachment"
2676
+ },
2677
+ "default": []
2678
+ },
2679
+ "lastEditedOnDiscordAt": {
2680
+ "anyOf": [
2681
+ {
2682
+ "$ref": "#/definitions/datetime"
2683
+ },
2684
+ {
2685
+ "type": "null"
2686
+ }
2687
+ ],
2688
+ "default": null
2689
+ },
2690
+ "deletedOnDiscordAt": {
2691
+ "anyOf": [
2692
+ {
2693
+ "$ref": "#/definitions/datetime"
2694
+ },
2695
+ {
2696
+ "type": "null"
2697
+ }
2698
+ ],
2699
+ "default": null
2700
+ },
2701
+ "createdAt": {
2702
+ "$ref": "#/definitions/datetime"
2703
+ },
2704
+ "createdBy": {
2705
+ "$ref": "#/definitions/actor"
2706
+ },
2707
+ "updatedAt": {
2708
+ "$ref": "#/definitions/datetime"
2709
+ },
2710
+ "updatedBy": {
2711
+ "$ref": "#/definitions/actor"
2712
+ }
2713
+ },
2714
+ "required": [
2715
+ "timelineEntryId",
2716
+ "id",
2717
+ "discordGuildId",
2718
+ "discordChannelId",
2719
+ "discordThreadId",
2720
+ "discordId",
2721
+ "discordTimestamp",
2722
+ "textContent",
2723
+ "createdAt",
2724
+ "createdBy",
2725
+ "updatedAt",
2726
+ "updatedBy"
2727
+ ],
2728
+ "additionalProperties": true
2729
+ },
2730
+ "msTeamsMessage": {
2731
+ "type": "object",
2732
+ "properties": {
2733
+ "timelineEntryId": {
2734
+ "$ref": "#/definitions/id"
2735
+ },
2736
+ "threadId": {
2737
+ "$ref": "#/definitions/id"
2738
+ },
2739
+ "msTeamsMessageId": {
2740
+ "type": "string"
2741
+ },
2742
+ "type": {
2743
+ "anyOf": [
2744
+ {
2745
+ "type": "string",
2746
+ "enum": ["INBOUND", "OUTBOUND", "UNKNOWN_MS_TEAMS_MESSAGE_TYPE"]
2747
+ },
2748
+ {
2749
+ "type": "null"
2750
+ }
2751
+ ]
2752
+ },
2753
+ "text": {
2754
+ "type": "string"
2755
+ },
2756
+ "attachments": {
2757
+ "type": "array",
2758
+ "items": {
2759
+ "$ref": "#/definitions/attachment"
2760
+ }
2761
+ },
2762
+ "lastEditedOnMsTeamsAt": {
2763
+ "anyOf": [
2764
+ {
2765
+ "$ref": "#/definitions/datetime"
2766
+ },
2767
+ {
2768
+ "type": "null"
2769
+ }
2770
+ ]
2771
+ },
2772
+ "deletedOnMsTeamsAt": {
2773
+ "anyOf": [
2774
+ {
2775
+ "$ref": "#/definitions/datetime"
2776
+ },
2777
+ {
2778
+ "type": "null"
2779
+ }
2780
+ ]
2781
+ },
2782
+ "createdAt": {
2783
+ "$ref": "#/definitions/datetime"
2784
+ },
2785
+ "createdBy": {
2786
+ "$ref": "#/definitions/actor"
2787
+ },
2788
+ "updatedAt": {
2789
+ "$ref": "#/definitions/datetime"
2790
+ },
2791
+ "updatedBy": {
2792
+ "$ref": "#/definitions/actor"
2793
+ }
2794
+ },
2795
+ "required": [
2796
+ "timelineEntryId",
2797
+ "threadId",
2798
+ "msTeamsMessageId",
2799
+ "type",
2800
+ "text",
2801
+ "attachments",
2802
+ "lastEditedOnMsTeamsAt",
2803
+ "deletedOnMsTeamsAt",
2804
+ "createdAt",
2805
+ "createdBy",
2806
+ "updatedAt",
2807
+ "updatedBy"
2808
+ ],
2809
+ "additionalProperties": true
2810
+ },
2811
+ "customerChangedPayload": {
2812
+ "type": "object",
2813
+ "properties": {
2814
+ "changeType": {
2815
+ "type": "string",
2816
+ "enum": ["ADDED", "UPDATED"]
2817
+ },
2818
+ "eventType": {
2819
+ "type": "string",
2820
+ "const": "customer.customer_changed"
2821
+ },
2822
+ "customer": {
2823
+ "$ref": "#/definitions/customer"
2824
+ },
2825
+ "previousCustomer": {
2826
+ "anyOf": [
2827
+ {
2828
+ "$ref": "#/definitions/customer"
2829
+ },
2830
+ {
2831
+ "type": "null"
2832
+ }
2833
+ ]
2834
+ }
2835
+ },
2836
+ "required": ["changeType", "eventType", "customer", "previousCustomer"],
2837
+ "additionalProperties": true,
2838
+ "description": "A customer has been created or updated"
2839
+ },
2840
+ "timelineEntryChangedPayload": {
2841
+ "type": "object",
2842
+ "properties": {
2843
+ "eventType": {
2844
+ "type": "string",
2845
+ "const": "timeline.timeline_entry_changed"
2846
+ },
2847
+ "previousTimelineEntry": {
2848
+ "anyOf": [
2849
+ {
2850
+ "$ref": "#/definitions/timelineEntry"
2851
+ },
2852
+ {
2853
+ "type": "null"
2854
+ }
2855
+ ],
2856
+ "description": "null if changeType=ADDED"
2857
+ },
2858
+ "timelineEntry": {
2859
+ "anyOf": [
2860
+ {
2861
+ "$ref": "#/definitions/timelineEntry"
2862
+ },
2863
+ {
2864
+ "type": "null"
2865
+ }
2866
+ ],
2867
+ "description": "null if changeType=REMOVED"
2868
+ },
2869
+ "changeType": {
2870
+ "type": "string",
2871
+ "enum": ["ADDED", "UPDATED", "REMOVED"]
2872
+ }
2873
+ },
2874
+ "required": ["eventType", "previousTimelineEntry", "timelineEntry", "changeType"],
2875
+ "additionalProperties": true,
2876
+ "description": "A timeline entry has been added, updated or removed"
2877
+ },
2878
+ "webhookMetadata": {
2879
+ "type": "object",
2880
+ "properties": {
2881
+ "webhookTargetId": {
2882
+ "$ref": "#/definitions/id"
2883
+ },
2884
+ "webhookTargetVersion": {
2885
+ "type": "string",
2886
+ "const": "2026-02-27"
2887
+ },
2888
+ "webhookDeliveryAttemptId": {
2889
+ "$ref": "#/definitions/id"
2890
+ },
2891
+ "webhookDeliveryAttemptNumber": {
2892
+ "type": "integer",
2893
+ "exclusiveMinimum": 0
2894
+ },
2895
+ "webhookDeliveryAttemptTimestamp": {
2896
+ "$ref": "#/definitions/datetime"
2897
+ }
2898
+ },
2899
+ "required": [
2900
+ "webhookTargetId",
2901
+ "webhookTargetVersion",
2902
+ "webhookDeliveryAttemptId",
2903
+ "webhookDeliveryAttemptNumber",
2904
+ "webhookDeliveryAttemptTimestamp"
2905
+ ],
2906
+ "additionalProperties": true
2907
+ },
2908
+ "customerGroupMembershipsChangedPayload": {
2909
+ "type": "object",
2910
+ "properties": {
2911
+ "eventType": {
2912
+ "type": "string",
2913
+ "const": "customer.customer_group_memberships_changed"
2914
+ },
2915
+ "changeType": {
2916
+ "type": "string",
2917
+ "enum": ["ADDED", "REMOVED"]
2918
+ },
2919
+ "customer": {
2920
+ "$ref": "#/definitions/customer"
2921
+ },
2922
+ "previousCustomer": {
2923
+ "$ref": "#/definitions/customer"
2924
+ }
2925
+ },
2926
+ "required": ["eventType", "changeType", "customer", "previousCustomer"],
2927
+ "additionalProperties": true
2928
+ },
2929
+ "customerGroupChangedPayload": {
2930
+ "anyOf": [
2931
+ {
2932
+ "type": "object",
2933
+ "properties": {
2934
+ "changeType": {
2935
+ "type": "string",
2936
+ "const": "ADDED"
2937
+ },
2938
+ "eventType": {
2939
+ "type": "string",
2940
+ "const": "customer.customer_group_changed"
2941
+ },
2942
+ "customerGroup": {
2943
+ "$ref": "#/definitions/customerGroup"
2944
+ }
2945
+ },
2946
+ "required": ["changeType", "eventType", "customerGroup"],
2947
+ "additionalProperties": true
2948
+ },
2949
+ {
2950
+ "type": "object",
2951
+ "properties": {
2952
+ "changeType": {
2953
+ "type": "string",
2954
+ "const": "UPDATED"
2955
+ },
2956
+ "eventType": {
2957
+ "type": "string",
2958
+ "const": "customer.customer_group_changed"
2959
+ },
2960
+ "customerGroup": {
2961
+ "$ref": "#/definitions/customerGroup"
2962
+ },
2963
+ "previousCustomerGroup": {
2964
+ "$ref": "#/definitions/customerGroup"
2965
+ }
2966
+ },
2967
+ "required": ["changeType", "eventType", "customerGroup", "previousCustomerGroup"],
2968
+ "additionalProperties": true
2969
+ },
2970
+ {
2971
+ "type": "object",
2972
+ "properties": {
2973
+ "changeType": {
2974
+ "type": "string",
2975
+ "const": "REMOVED"
2976
+ },
2977
+ "eventType": {
2978
+ "type": "string",
2979
+ "const": "customer.customer_group_changed"
2980
+ },
2981
+ "previousCustomerGroup": {
2982
+ "$ref": "#/definitions/customerGroup"
2983
+ }
2984
+ },
2985
+ "required": ["changeType", "eventType", "previousCustomerGroup"],
2986
+ "additionalProperties": true
2987
+ }
2988
+ ]
2989
+ },
2990
+ "threadCreatedPublicEventPayload": {
2991
+ "type": "object",
2992
+ "properties": {
2993
+ "eventType": {
2994
+ "type": "string",
2995
+ "const": "thread.thread_created"
2996
+ },
2997
+ "thread": {
2998
+ "$ref": "#/definitions/thread"
2999
+ }
3000
+ },
3001
+ "required": ["eventType", "thread"],
3002
+ "additionalProperties": true
3003
+ },
3004
+ "threadStatusTransitionedPublicEventPayload": {
3005
+ "type": "object",
3006
+ "properties": {
3007
+ "eventType": {
3008
+ "type": "string",
3009
+ "const": "thread.thread_status_transitioned"
3010
+ },
3011
+ "previousThread": {
3012
+ "$ref": "#/definitions/thread"
3013
+ },
3014
+ "thread": {
3015
+ "$ref": "#/definitions/thread"
3016
+ }
3017
+ },
3018
+ "required": ["eventType", "previousThread", "thread"],
3019
+ "additionalProperties": true
3020
+ },
3021
+ "threadAssignmentTransitionedPublicEventPayload": {
3022
+ "type": "object",
3023
+ "properties": {
3024
+ "eventType": {
3025
+ "type": "string",
3026
+ "const": "thread.thread_assignment_transitioned"
3027
+ },
3028
+ "previousThread": {
3029
+ "$ref": "#/definitions/thread"
3030
+ },
3031
+ "thread": {
3032
+ "$ref": "#/definitions/thread"
3033
+ }
3034
+ },
3035
+ "required": ["eventType", "previousThread", "thread"],
3036
+ "additionalProperties": true
3037
+ },
3038
+ "threadEmailReceivedPublicEventPayload": {
3039
+ "type": "object",
3040
+ "properties": {
3041
+ "eventType": {
3042
+ "type": "string",
3043
+ "const": "thread.email_received"
3044
+ },
3045
+ "thread": {
3046
+ "$ref": "#/definitions/thread"
3047
+ },
3048
+ "email": {
3049
+ "$ref": "#/definitions/email"
3050
+ }
3051
+ },
3052
+ "required": ["eventType", "thread", "email"],
3053
+ "additionalProperties": true
3054
+ },
3055
+ "threadEmailSentPublicEventPayload": {
3056
+ "type": "object",
3057
+ "properties": {
3058
+ "eventType": {
3059
+ "type": "string",
3060
+ "const": "thread.email_sent"
3061
+ },
3062
+ "thread": {
3063
+ "$ref": "#/definitions/thread"
3064
+ },
3065
+ "email": {
3066
+ "$ref": "#/definitions/email"
3067
+ }
3068
+ },
3069
+ "required": ["eventType", "thread", "email"],
3070
+ "additionalProperties": true
3071
+ },
3072
+ "threadLabelsChangedPublicEventPayload": {
3073
+ "type": "object",
3074
+ "properties": {
3075
+ "eventType": {
3076
+ "type": "string",
3077
+ "const": "thread.thread_labels_changed"
3078
+ },
3079
+ "changeType": {
3080
+ "type": "string",
3081
+ "enum": ["ADDED", "REMOVED"]
3082
+ },
3083
+ "thread": {
3084
+ "$ref": "#/definitions/thread"
3085
+ },
3086
+ "previousThread": {
3087
+ "$ref": "#/definitions/thread"
3088
+ }
3089
+ },
3090
+ "required": ["eventType", "changeType", "thread", "previousThread"],
3091
+ "additionalProperties": true
3092
+ },
3093
+ "threadPriorityChangedPublicEventPayload": {
3094
+ "type": "object",
3095
+ "properties": {
3096
+ "eventType": {
3097
+ "type": "string",
3098
+ "const": "thread.thread_priority_changed"
3099
+ },
3100
+ "previousThread": {
3101
+ "$ref": "#/definitions/thread"
3102
+ },
3103
+ "thread": {
3104
+ "$ref": "#/definitions/thread"
3105
+ }
3106
+ },
3107
+ "required": ["eventType", "previousThread", "thread"],
3108
+ "additionalProperties": true
3109
+ },
3110
+ "threadFieldCreatedPublicEventPayload": {
3111
+ "type": "object",
3112
+ "properties": {
3113
+ "eventType": {
3114
+ "type": "string",
3115
+ "const": "thread.thread_field_created"
3116
+ },
3117
+ "thread": {
3118
+ "$ref": "#/definitions/thread"
3119
+ },
3120
+ "threadField": {
3121
+ "$ref": "#/definitions/threadField"
3122
+ }
3123
+ },
3124
+ "required": ["eventType", "thread", "threadField"],
3125
+ "additionalProperties": true
3126
+ },
3127
+ "threadFieldUpdatedPublicEventPayload": {
3128
+ "type": "object",
3129
+ "properties": {
3130
+ "eventType": {
3131
+ "type": "string",
3132
+ "const": "thread.thread_field_updated"
3133
+ },
3134
+ "thread": {
3135
+ "$ref": "#/definitions/thread"
3136
+ },
3137
+ "previousThreadField": {
3138
+ "$ref": "#/definitions/threadField"
3139
+ },
3140
+ "threadField": {
3141
+ "$ref": "#/definitions/threadField"
3142
+ }
3143
+ },
3144
+ "required": ["eventType", "thread", "previousThreadField", "threadField"],
3145
+ "additionalProperties": true
3146
+ },
3147
+ "threadFieldDeletedPublicEventPayload": {
3148
+ "type": "object",
3149
+ "properties": {
3150
+ "eventType": {
3151
+ "type": "string",
3152
+ "const": "thread.thread_field_deleted"
3153
+ },
3154
+ "thread": {
3155
+ "$ref": "#/definitions/thread"
3156
+ },
3157
+ "previousThreadField": {
3158
+ "$ref": "#/definitions/threadField"
3159
+ }
3160
+ },
3161
+ "required": ["eventType", "thread", "previousThreadField"],
3162
+ "additionalProperties": true
3163
+ },
3164
+ "threadChatSentPublicEventPayload": {
3165
+ "type": "object",
3166
+ "properties": {
3167
+ "eventType": {
3168
+ "type": "string",
3169
+ "const": "thread.chat_sent"
3170
+ },
3171
+ "chat": {
3172
+ "$ref": "#/definitions/chat"
3173
+ },
3174
+ "thread": {
3175
+ "$ref": "#/definitions/thread"
3176
+ }
3177
+ },
3178
+ "required": ["eventType", "chat", "thread"],
3179
+ "additionalProperties": true
3180
+ },
3181
+ "threadChatReceivedPublicEventPayload": {
3182
+ "type": "object",
3183
+ "properties": {
3184
+ "eventType": {
3185
+ "type": "string",
3186
+ "const": "thread.chat_received"
3187
+ },
3188
+ "chat": {
3189
+ "$ref": "#/definitions/chat"
3190
+ },
3191
+ "thread": {
3192
+ "$ref": "#/definitions/thread"
3193
+ }
3194
+ },
3195
+ "required": ["eventType", "chat", "thread"],
3196
+ "additionalProperties": true
3197
+ },
3198
+ "threadNoteCreatedEventPayload": {
3199
+ "type": "object",
3200
+ "properties": {
3201
+ "eventType": {
3202
+ "type": "string",
3203
+ "const": "thread.note_created"
3204
+ },
3205
+ "thread": {
3206
+ "$ref": "#/definitions/thread"
3207
+ },
3208
+ "note": {
3209
+ "type": "object",
3210
+ "properties": {
3211
+ "timelineEntryId": {
3212
+ "$ref": "#/definitions/id"
3213
+ },
3214
+ "id": {
3215
+ "$ref": "#/definitions/id"
3216
+ },
3217
+ "text": {
3218
+ "type": "string",
3219
+ "minLength": 1,
3220
+ "maxLength": 10000
3221
+ },
3222
+ "markdown": {
3223
+ "anyOf": [
3224
+ {
3225
+ "type": "string",
3226
+ "minLength": 1,
3227
+ "maxLength": 10000
3228
+ },
3229
+ {
3230
+ "type": "null"
3231
+ }
3232
+ ]
3233
+ },
3234
+ "createdAt": {
3235
+ "$ref": "#/definitions/datetime"
3236
+ },
3237
+ "createdBy": {
3238
+ "$ref": "#/definitions/internalActor"
3239
+ },
3240
+ "updatedAt": {
3241
+ "$ref": "#/definitions/datetime"
3242
+ },
3243
+ "updatedBy": {
3244
+ "$ref": "#/definitions/internalActor"
3245
+ },
3246
+ "deletedAt": {
3247
+ "$ref": "#/definitions/nullableDatetime"
3248
+ },
3249
+ "deletedBy": {
3250
+ "$ref": "#/definitions/nullableInternalActor"
3251
+ }
3252
+ },
3253
+ "required": [
3254
+ "timelineEntryId",
3255
+ "id",
3256
+ "text",
3257
+ "markdown",
3258
+ "createdAt",
3259
+ "createdBy",
3260
+ "updatedAt",
3261
+ "updatedBy",
3262
+ "deletedAt",
3263
+ "deletedBy"
3264
+ ],
3265
+ "additionalProperties": true
3266
+ }
3267
+ },
3268
+ "required": ["eventType", "thread", "note"],
3269
+ "additionalProperties": true
3270
+ },
3271
+ "threadServiceLevelAgreementStatusTransitionedPayload": {
3272
+ "type": "object",
3273
+ "properties": {
3274
+ "eventType": {
3275
+ "type": "string",
3276
+ "const": "thread.service_level_agreement_status_transitioned"
3277
+ },
3278
+ "thread": {
3279
+ "$ref": "#/definitions/thread"
3280
+ },
3281
+ "serviceLevelAgreement": {
3282
+ "$ref": "#/definitions/serviceLevelAgreement"
3283
+ },
3284
+ "previousServiceLevelAgreementStatusDetail": {
3285
+ "$ref": "#/definitions/serviceLevelAgreementStatusDetail"
3286
+ },
3287
+ "serviceLevelAgreementStatusDetail": {
3288
+ "$ref": "#/definitions/serviceLevelAgreementStatusDetail"
3289
+ }
3290
+ },
3291
+ "required": [
3292
+ "eventType",
3293
+ "thread",
3294
+ "serviceLevelAgreement",
3295
+ "previousServiceLevelAgreementStatusDetail",
3296
+ "serviceLevelAgreementStatusDetail"
3297
+ ],
3298
+ "additionalProperties": true
3299
+ },
3300
+ "threadSlackMessageReceivedEventPayload": {
3301
+ "type": "object",
3302
+ "properties": {
3303
+ "eventType": {
3304
+ "type": "string",
3305
+ "const": "thread.slack_message_received"
3306
+ },
3307
+ "thread": {
3308
+ "$ref": "#/definitions/thread"
3309
+ },
3310
+ "slackMessage": {
3311
+ "$ref": "#/definitions/slackMessage"
3312
+ }
3313
+ },
3314
+ "required": ["eventType", "thread", "slackMessage"],
3315
+ "additionalProperties": true
3316
+ },
3317
+ "threadSlackMessageSentEventPayload": {
3318
+ "type": "object",
3319
+ "properties": {
3320
+ "eventType": {
3321
+ "type": "string",
3322
+ "const": "thread.slack_message_sent"
3323
+ },
3324
+ "thread": {
3325
+ "$ref": "#/definitions/thread"
3326
+ },
3327
+ "slackMessage": {
3328
+ "$ref": "#/definitions/slackMessage"
3329
+ }
3330
+ },
3331
+ "required": ["eventType", "thread", "slackMessage"],
3332
+ "additionalProperties": true
3333
+ },
3334
+ "threadSlackMessageUpdatedEventPayload": {
3335
+ "type": "object",
3336
+ "properties": {
3337
+ "eventType": {
3338
+ "type": "string",
3339
+ "const": "thread.slack_message_updated"
3340
+ },
3341
+ "changeType": {
3342
+ "type": "string",
3343
+ "enum": [
3344
+ "MESSAGE_EDITED",
3345
+ "MESSAGE_DELETED",
3346
+ "REACTIONS_CHANGED",
3347
+ "UNKNOWN_SLACK_MESSAGE_CHANGE_TYPE"
3348
+ ]
3349
+ },
3350
+ "thread": {
3351
+ "$ref": "#/definitions/thread"
3352
+ },
3353
+ "slackMessage": {
3354
+ "$ref": "#/definitions/slackMessage"
3355
+ }
3356
+ },
3357
+ "required": ["eventType", "changeType", "thread", "slackMessage"],
3358
+ "additionalProperties": true
3359
+ },
3360
+ "threadDiscordMessageReceivedEventPayload": {
3361
+ "type": "object",
3362
+ "properties": {
3363
+ "eventType": {
3364
+ "type": "string",
3365
+ "const": "thread.discord_message_received"
3366
+ },
3367
+ "thread": {
3368
+ "$ref": "#/definitions/thread"
3369
+ },
3370
+ "discordMessage": {
3371
+ "$ref": "#/definitions/discordMessage"
3372
+ }
3373
+ },
3374
+ "required": ["eventType", "thread", "discordMessage"],
3375
+ "additionalProperties": true
3376
+ },
3377
+ "threadDiscordMessageSentEventPayload": {
3378
+ "type": "object",
3379
+ "properties": {
3380
+ "eventType": {
3381
+ "type": "string",
3382
+ "const": "thread.discord_message_sent"
3383
+ },
3384
+ "thread": {
3385
+ "$ref": "#/definitions/thread"
3386
+ },
3387
+ "discordMessage": {
3388
+ "$ref": "#/definitions/discordMessage"
3389
+ }
3390
+ },
3391
+ "required": ["eventType", "thread", "discordMessage"],
3392
+ "additionalProperties": true
3393
+ },
3394
+ "threadDiscordMessageUpdatedEventPayload": {
3395
+ "type": "object",
3396
+ "properties": {
3397
+ "eventType": {
3398
+ "type": "string",
3399
+ "const": "thread.discord_message_updated"
3400
+ },
3401
+ "thread": {
3402
+ "$ref": "#/definitions/thread"
3403
+ },
3404
+ "discordMessage": {
3405
+ "$ref": "#/definitions/discordMessage"
3406
+ }
3407
+ },
3408
+ "required": ["eventType", "thread", "discordMessage"],
3409
+ "additionalProperties": true
3410
+ },
3411
+ "threadMSTeamsMessageReceivedEventPayload": {
3412
+ "type": "object",
3413
+ "properties": {
3414
+ "eventType": {
3415
+ "type": "string",
3416
+ "const": "thread.ms_teams_message_received"
3417
+ },
3418
+ "thread": {
3419
+ "$ref": "#/definitions/thread"
3420
+ },
3421
+ "msTeamsMessage": {
3422
+ "$ref": "#/definitions/msTeamsMessage"
3423
+ }
3424
+ },
3425
+ "required": ["eventType", "thread", "msTeamsMessage"],
3426
+ "additionalProperties": true
3427
+ },
3428
+ "threadMSTeamsMessageSentEventPayload": {
3429
+ "type": "object",
3430
+ "properties": {
3431
+ "eventType": {
3432
+ "type": "string",
3433
+ "const": "thread.ms_teams_message_sent"
3434
+ },
3435
+ "thread": {
3436
+ "$ref": "#/definitions/thread"
3437
+ },
3438
+ "msTeamsMessage": {
3439
+ "$ref": "#/definitions/msTeamsMessage"
3440
+ }
3441
+ },
3442
+ "required": ["eventType", "thread", "msTeamsMessage"],
3443
+ "additionalProperties": true
3444
+ },
3445
+ "customerCreatedPublicEventPayload": {
3446
+ "type": "object",
3447
+ "properties": {
3448
+ "eventType": {
3449
+ "type": "string",
3450
+ "const": "customer.customer_created"
3451
+ },
3452
+ "customer": {
3453
+ "$ref": "#/definitions/customer"
3454
+ }
3455
+ },
3456
+ "required": ["eventType", "customer"],
3457
+ "additionalProperties": true,
3458
+ "description": "A customer has been created"
3459
+ },
3460
+ "customerUpdatedPublicEventPayload": {
3461
+ "type": "object",
3462
+ "properties": {
3463
+ "eventType": {
3464
+ "type": "string",
3465
+ "const": "customer.customer_updated"
3466
+ },
3467
+ "customer": {
3468
+ "$ref": "#/definitions/customer"
3469
+ },
3470
+ "previousCustomer": {
3471
+ "$ref": "#/definitions/customer"
3472
+ }
3473
+ },
3474
+ "required": ["eventType", "customer", "previousCustomer"],
3475
+ "additionalProperties": true,
3476
+ "description": "A customer has been updated"
3477
+ },
3478
+ "customerDeletedPublicEventPayload": {
3479
+ "type": "object",
3480
+ "properties": {
3481
+ "eventType": {
3482
+ "type": "string",
3483
+ "const": "customer.customer_deleted"
3484
+ },
3485
+ "previousCustomer": {
3486
+ "$ref": "#/definitions/customer"
3487
+ }
3488
+ },
3489
+ "required": ["eventType", "previousCustomer"],
3490
+ "additionalProperties": true,
3491
+ "description": "A customer has been deleted"
3492
+ }
3493
+ },
3494
+ "$schema": "http://json-schema.org/draft-07/schema#"
3495
+ }