@team-plain/webhooks 0.2.0 → 1.0.1

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,3498 @@
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
+ "workflowButtonWorkflowIdentifier": {
1193
+ "type": "object",
1194
+ "properties": {
1195
+ "workflowId": {
1196
+ "type": "string"
1197
+ },
1198
+ "workflowKey": {
1199
+ "type": "string"
1200
+ }
1201
+ },
1202
+ "additionalProperties": true
1203
+ },
1204
+ "workflowButtonLabel": {
1205
+ "type": "string",
1206
+ "maxLength": 500
1207
+ },
1208
+ "type": {
1209
+ "type": "string",
1210
+ "const": "workflowButton"
1211
+ }
1212
+ },
1213
+ "required": ["workflowButtonWorkflowIdentifier", "workflowButtonLabel", "type"],
1214
+ "additionalProperties": true
1215
+ },
1216
+ "componentBadge": {
1217
+ "type": "object",
1218
+ "properties": {
1219
+ "badgeLabel": {
1220
+ "type": "string",
1221
+ "maxLength": 500
1222
+ },
1223
+ "badgeColor": {
1224
+ "anyOf": [
1225
+ {
1226
+ "$ref": "#/definitions/componentBadgeColor"
1227
+ },
1228
+ {
1229
+ "type": "null"
1230
+ }
1231
+ ]
1232
+ },
1233
+ "type": {
1234
+ "type": "string",
1235
+ "const": "badge"
1236
+ }
1237
+ },
1238
+ "required": ["badgeLabel", "badgeColor", "type"],
1239
+ "additionalProperties": true
1240
+ },
1241
+ "componentCopyButton": {
1242
+ "type": "object",
1243
+ "properties": {
1244
+ "copyButtonValue": {
1245
+ "type": "string",
1246
+ "maxLength": 1000
1247
+ },
1248
+ "copyButtonTooltipLabel": {
1249
+ "anyOf": [
1250
+ {
1251
+ "type": "string",
1252
+ "maxLength": 500
1253
+ },
1254
+ {
1255
+ "type": "null"
1256
+ }
1257
+ ]
1258
+ },
1259
+ "type": {
1260
+ "type": "string",
1261
+ "const": "copyButton"
1262
+ }
1263
+ },
1264
+ "required": ["copyButtonValue", "copyButtonTooltipLabel", "type"],
1265
+ "additionalProperties": true
1266
+ },
1267
+ "componentRowContent": {
1268
+ "anyOf": [
1269
+ {
1270
+ "type": "object",
1271
+ "properties": {
1272
+ "type": {
1273
+ "type": "string",
1274
+ "const": "UNKNOWN"
1275
+ }
1276
+ },
1277
+ "required": ["type"],
1278
+ "additionalProperties": true
1279
+ },
1280
+ {
1281
+ "$ref": "#/definitions/componentText"
1282
+ },
1283
+ {
1284
+ "$ref": "#/definitions/componentPlainText"
1285
+ },
1286
+ {
1287
+ "$ref": "#/definitions/componentSpacer"
1288
+ },
1289
+ {
1290
+ "$ref": "#/definitions/componentDivider"
1291
+ },
1292
+ {
1293
+ "$ref": "#/definitions/componentLinkButton"
1294
+ },
1295
+ {
1296
+ "$ref": "#/definitions/componentWorkflowButton"
1297
+ },
1298
+ {
1299
+ "$ref": "#/definitions/componentBadge"
1300
+ },
1301
+ {
1302
+ "$ref": "#/definitions/componentCopyButton"
1303
+ }
1304
+ ]
1305
+ },
1306
+ "componentRow": {
1307
+ "type": "object",
1308
+ "properties": {
1309
+ "type": {
1310
+ "type": "string",
1311
+ "const": "row"
1312
+ },
1313
+ "rowMainContent": {
1314
+ "type": "array",
1315
+ "items": {
1316
+ "$ref": "#/definitions/componentRowContent"
1317
+ }
1318
+ },
1319
+ "rowAsideContent": {
1320
+ "type": "array",
1321
+ "items": {
1322
+ "$ref": "#/definitions/componentRowContent"
1323
+ }
1324
+ }
1325
+ },
1326
+ "required": ["type", "rowMainContent", "rowAsideContent"],
1327
+ "additionalProperties": true
1328
+ },
1329
+ "componentContainerContent": {
1330
+ "anyOf": [
1331
+ {
1332
+ "$ref": "#/definitions/componentRowContent/anyOf/0"
1333
+ },
1334
+ {
1335
+ "$ref": "#/definitions/componentText"
1336
+ },
1337
+ {
1338
+ "$ref": "#/definitions/componentPlainText"
1339
+ },
1340
+ {
1341
+ "$ref": "#/definitions/componentSpacer"
1342
+ },
1343
+ {
1344
+ "$ref": "#/definitions/componentDivider"
1345
+ },
1346
+ {
1347
+ "$ref": "#/definitions/componentLinkButton"
1348
+ },
1349
+ {
1350
+ "$ref": "#/definitions/componentWorkflowButton"
1351
+ },
1352
+ {
1353
+ "$ref": "#/definitions/componentBadge"
1354
+ },
1355
+ {
1356
+ "$ref": "#/definitions/componentCopyButton"
1357
+ },
1358
+ {
1359
+ "$ref": "#/definitions/componentRow"
1360
+ }
1361
+ ]
1362
+ },
1363
+ "componentContainer": {
1364
+ "type": "object",
1365
+ "properties": {
1366
+ "type": {
1367
+ "type": "string",
1368
+ "const": "container"
1369
+ },
1370
+ "containerContent": {
1371
+ "type": "array",
1372
+ "items": {
1373
+ "$ref": "#/definitions/componentContainerContent"
1374
+ }
1375
+ }
1376
+ },
1377
+ "required": ["type", "containerContent"],
1378
+ "additionalProperties": true
1379
+ },
1380
+ "component": {
1381
+ "anyOf": [
1382
+ {
1383
+ "$ref": "#/definitions/componentRowContent/anyOf/0"
1384
+ },
1385
+ {
1386
+ "$ref": "#/definitions/componentText"
1387
+ },
1388
+ {
1389
+ "$ref": "#/definitions/componentPlainText"
1390
+ },
1391
+ {
1392
+ "$ref": "#/definitions/componentSpacer"
1393
+ },
1394
+ {
1395
+ "$ref": "#/definitions/componentDivider"
1396
+ },
1397
+ {
1398
+ "$ref": "#/definitions/componentLinkButton"
1399
+ },
1400
+ {
1401
+ "$ref": "#/definitions/componentWorkflowButton"
1402
+ },
1403
+ {
1404
+ "$ref": "#/definitions/componentBadge"
1405
+ },
1406
+ {
1407
+ "$ref": "#/definitions/componentCopyButton"
1408
+ },
1409
+ {
1410
+ "$ref": "#/definitions/componentRow"
1411
+ },
1412
+ {
1413
+ "$ref": "#/definitions/componentContainer"
1414
+ }
1415
+ ]
1416
+ },
1417
+ "labelType": {
1418
+ "type": "object",
1419
+ "properties": {
1420
+ "id": {
1421
+ "$ref": "#/definitions/id"
1422
+ },
1423
+ "name": {
1424
+ "type": "string",
1425
+ "minLength": 1,
1426
+ "maxLength": 500
1427
+ },
1428
+ "icon": {
1429
+ "type": ["string", "null"],
1430
+ "default": null
1431
+ },
1432
+ "isArchived": {
1433
+ "type": "boolean",
1434
+ "default": false
1435
+ },
1436
+ "archivedAt": {
1437
+ "anyOf": [
1438
+ {
1439
+ "$ref": "#/definitions/datetime"
1440
+ },
1441
+ {
1442
+ "type": "null"
1443
+ }
1444
+ ]
1445
+ },
1446
+ "archivedBy": {
1447
+ "anyOf": [
1448
+ {
1449
+ "$ref": "#/definitions/internalActor"
1450
+ },
1451
+ {
1452
+ "type": "null"
1453
+ }
1454
+ ]
1455
+ },
1456
+ "externalId": {
1457
+ "anyOf": [
1458
+ {
1459
+ "type": "string",
1460
+ "maxLength": 500
1461
+ },
1462
+ {
1463
+ "type": "null"
1464
+ }
1465
+ ],
1466
+ "default": null
1467
+ },
1468
+ "isExcludedFromAi": {
1469
+ "type": "boolean",
1470
+ "default": false
1471
+ },
1472
+ "createdAt": {
1473
+ "$ref": "#/definitions/datetime"
1474
+ },
1475
+ "createdBy": {
1476
+ "$ref": "#/definitions/internalActor"
1477
+ },
1478
+ "updatedAt": {
1479
+ "$ref": "#/definitions/datetime"
1480
+ },
1481
+ "updatedBy": {
1482
+ "$ref": "#/definitions/internalActor"
1483
+ }
1484
+ },
1485
+ "required": [
1486
+ "id",
1487
+ "name",
1488
+ "archivedAt",
1489
+ "archivedBy",
1490
+ "createdAt",
1491
+ "createdBy",
1492
+ "updatedAt",
1493
+ "updatedBy"
1494
+ ],
1495
+ "additionalProperties": true
1496
+ },
1497
+ "label": {
1498
+ "type": "object",
1499
+ "properties": {
1500
+ "id": {
1501
+ "$ref": "#/definitions/id"
1502
+ },
1503
+ "labelType": {
1504
+ "$ref": "#/definitions/labelType"
1505
+ },
1506
+ "createdAt": {
1507
+ "$ref": "#/definitions/datetime"
1508
+ },
1509
+ "createdBy": {
1510
+ "$ref": "#/definitions/actor"
1511
+ },
1512
+ "updatedAt": {
1513
+ "$ref": "#/definitions/datetime"
1514
+ },
1515
+ "updatedBy": {
1516
+ "$ref": "#/definitions/actor"
1517
+ }
1518
+ },
1519
+ "required": ["id", "labelType", "createdAt", "createdBy", "updatedAt", "updatedBy"],
1520
+ "additionalProperties": true
1521
+ },
1522
+ "tier": {
1523
+ "type": "object",
1524
+ "properties": {
1525
+ "id": {
1526
+ "$ref": "#/definitions/id"
1527
+ },
1528
+ "name": {
1529
+ "type": "string",
1530
+ "minLength": 1,
1531
+ "maxLength": 500
1532
+ },
1533
+ "externalId": {
1534
+ "anyOf": [
1535
+ {
1536
+ "type": "string",
1537
+ "minLength": 1,
1538
+ "maxLength": 500
1539
+ },
1540
+ {
1541
+ "type": "null"
1542
+ }
1543
+ ]
1544
+ },
1545
+ "color": {
1546
+ "type": "string",
1547
+ "minLength": 1,
1548
+ "maxLength": 500
1549
+ },
1550
+ "defaultThreadPriority": {
1551
+ "$ref": "#/definitions/threadPriority",
1552
+ "default": 2
1553
+ },
1554
+ "isDefault": {
1555
+ "type": "boolean"
1556
+ },
1557
+ "createdAt": {
1558
+ "$ref": "#/definitions/datetime"
1559
+ },
1560
+ "createdBy": {
1561
+ "$ref": "#/definitions/internalActor"
1562
+ },
1563
+ "updatedAt": {
1564
+ "$ref": "#/definitions/datetime"
1565
+ },
1566
+ "updatedBy": {
1567
+ "$ref": "#/definitions/internalActor"
1568
+ }
1569
+ },
1570
+ "required": [
1571
+ "id",
1572
+ "name",
1573
+ "externalId",
1574
+ "color",
1575
+ "isDefault",
1576
+ "createdAt",
1577
+ "createdBy",
1578
+ "updatedAt",
1579
+ "updatedBy"
1580
+ ],
1581
+ "additionalProperties": true
1582
+ },
1583
+ "threadPriority": {
1584
+ "type": "number"
1585
+ },
1586
+ "threadPriorityFilter": {
1587
+ "type": "array",
1588
+ "items": {
1589
+ "$ref": "#/definitions/threadPriority"
1590
+ },
1591
+ "minItems": 1
1592
+ },
1593
+ "threadAssignee": {
1594
+ "anyOf": [
1595
+ {
1596
+ "type": "object",
1597
+ "properties": {
1598
+ "type": {
1599
+ "type": "string",
1600
+ "const": "UNKNOWN"
1601
+ }
1602
+ },
1603
+ "required": ["type"],
1604
+ "additionalProperties": true
1605
+ },
1606
+ {
1607
+ "$ref": "#/definitions/user"
1608
+ },
1609
+ {
1610
+ "$ref": "#/definitions/machineUser"
1611
+ },
1612
+ {
1613
+ "type": "object",
1614
+ "properties": {
1615
+ "id": {
1616
+ "type": "string"
1617
+ }
1618
+ },
1619
+ "required": ["id"],
1620
+ "additionalProperties": true
1621
+ }
1622
+ ]
1623
+ },
1624
+ "threadStatus": {
1625
+ "type": "string",
1626
+ "enum": ["TODO", "DONE", "SNOOZED", "UNKNOWN_THREAD_STATUS"]
1627
+ },
1628
+ "threadMessageInfo": {
1629
+ "type": "object",
1630
+ "properties": {
1631
+ "timestamp": {
1632
+ "$ref": "#/definitions/datetime"
1633
+ },
1634
+ "messageSource": {
1635
+ "type": "string",
1636
+ "enum": [
1637
+ "CHAT",
1638
+ "EMAIL",
1639
+ "API",
1640
+ "SLACK",
1641
+ "MS_TEAMS",
1642
+ "UNKNOWN_THREAD_MESSAGE_INFO_MESSAGE_SOURCE"
1643
+ ]
1644
+ },
1645
+ "actorId": {
1646
+ "type": ["string", "null"],
1647
+ "default": null
1648
+ },
1649
+ "actorType": {
1650
+ "anyOf": [
1651
+ {
1652
+ "type": "string",
1653
+ "enum": ["user", "machineUser", "customer", "system"]
1654
+ },
1655
+ {
1656
+ "type": "null"
1657
+ }
1658
+ ],
1659
+ "default": null
1660
+ }
1661
+ },
1662
+ "required": ["timestamp", "messageSource"],
1663
+ "additionalProperties": true
1664
+ },
1665
+ "threadStatusDetail": {
1666
+ "anyOf": [
1667
+ {
1668
+ "type": "object",
1669
+ "properties": {
1670
+ "type": {
1671
+ "type": "string",
1672
+ "const": "UNKNOWN"
1673
+ }
1674
+ },
1675
+ "required": ["type"],
1676
+ "additionalProperties": true
1677
+ },
1678
+ {
1679
+ "type": "object",
1680
+ "properties": {
1681
+ "type": {
1682
+ "type": "string",
1683
+ "const": "CREATED"
1684
+ },
1685
+ "createdAt": {
1686
+ "$ref": "#/definitions/datetime"
1687
+ }
1688
+ },
1689
+ "required": ["type", "createdAt"],
1690
+ "additionalProperties": true
1691
+ },
1692
+ {
1693
+ "type": "object",
1694
+ "properties": {
1695
+ "type": {
1696
+ "type": "string",
1697
+ "const": "NEW_REPLY"
1698
+ }
1699
+ },
1700
+ "required": ["type"],
1701
+ "additionalProperties": true
1702
+ },
1703
+ {
1704
+ "type": "object",
1705
+ "properties": {
1706
+ "type": {
1707
+ "type": "string",
1708
+ "const": "IN_PROGRESS"
1709
+ }
1710
+ },
1711
+ "required": ["type"],
1712
+ "additionalProperties": true
1713
+ },
1714
+ {
1715
+ "type": "object",
1716
+ "properties": {
1717
+ "type": {
1718
+ "type": "string",
1719
+ "const": "WAITING_FOR_CUSTOMER"
1720
+ }
1721
+ },
1722
+ "required": ["type"],
1723
+ "additionalProperties": true
1724
+ },
1725
+ {
1726
+ "type": "object",
1727
+ "properties": {
1728
+ "type": {
1729
+ "type": "string",
1730
+ "const": "WAITING_FOR_DURATION"
1731
+ },
1732
+ "waitingUntil": {
1733
+ "$ref": "#/definitions/datetime"
1734
+ },
1735
+ "durationSeconds": {
1736
+ "type": "number"
1737
+ }
1738
+ },
1739
+ "required": ["type", "waitingUntil", "durationSeconds"],
1740
+ "additionalProperties": true
1741
+ },
1742
+ {
1743
+ "type": "object",
1744
+ "properties": {
1745
+ "type": {
1746
+ "type": "string",
1747
+ "const": "THREAD_LINK_UPDATED"
1748
+ },
1749
+ "linear": {
1750
+ "type": "object",
1751
+ "properties": {
1752
+ "issueId": {
1753
+ "type": "string",
1754
+ "format": "uuid"
1755
+ }
1756
+ },
1757
+ "required": ["issueId"],
1758
+ "additionalProperties": true
1759
+ }
1760
+ },
1761
+ "required": ["type"],
1762
+ "additionalProperties": true
1763
+ },
1764
+ {
1765
+ "type": "object",
1766
+ "properties": {
1767
+ "type": {
1768
+ "type": "string",
1769
+ "const": "DONE_MANUALLY_SET"
1770
+ }
1771
+ },
1772
+ "required": ["type"],
1773
+ "additionalProperties": true
1774
+ },
1775
+ {
1776
+ "type": "object",
1777
+ "properties": {
1778
+ "type": {
1779
+ "type": "string",
1780
+ "const": "IGNORED"
1781
+ }
1782
+ },
1783
+ "required": ["type"],
1784
+ "additionalProperties": true
1785
+ },
1786
+ {
1787
+ "type": "object",
1788
+ "properties": {
1789
+ "type": {
1790
+ "type": "string",
1791
+ "const": "DONE_AUTOMATICALLY_SET"
1792
+ },
1793
+ "afterSeconds": {
1794
+ "type": "number"
1795
+ }
1796
+ },
1797
+ "required": ["type"],
1798
+ "additionalProperties": true
1799
+ },
1800
+ {
1801
+ "type": "object",
1802
+ "properties": {
1803
+ "type": {
1804
+ "type": "string",
1805
+ "const": "THREAD_DISCUSSION_RESOLVED"
1806
+ },
1807
+ "threadDiscussionId": {
1808
+ "$ref": "#/definitions/id"
1809
+ }
1810
+ },
1811
+ "required": ["type"],
1812
+ "additionalProperties": true
1813
+ }
1814
+ ]
1815
+ },
1816
+ "threadField": {
1817
+ "type": "object",
1818
+ "properties": {
1819
+ "id": {
1820
+ "$ref": "#/definitions/id"
1821
+ },
1822
+ "threadId": {
1823
+ "$ref": "#/definitions/id"
1824
+ },
1825
+ "key": {
1826
+ "type": "string"
1827
+ },
1828
+ "type": {
1829
+ "type": "string",
1830
+ "enum": [
1831
+ "STRING",
1832
+ "BOOL",
1833
+ "ENUM",
1834
+ "NUMBER",
1835
+ "CURRENCY",
1836
+ "DATE",
1837
+ "UNKNOWN_THREAD_FIELD_SCHEMA_TYPE"
1838
+ ]
1839
+ },
1840
+ "stringValue": {
1841
+ "type": ["string", "null"]
1842
+ },
1843
+ "booleanValue": {
1844
+ "type": ["boolean", "null"]
1845
+ },
1846
+ "numberValue": {
1847
+ "type": ["number", "null"],
1848
+ "default": null
1849
+ },
1850
+ "dateValue": {
1851
+ "type": ["string", "null"],
1852
+ "default": null
1853
+ },
1854
+ "createdAt": {
1855
+ "$ref": "#/definitions/datetime"
1856
+ },
1857
+ "createdBy": {
1858
+ "$ref": "#/definitions/actor"
1859
+ },
1860
+ "updatedAt": {
1861
+ "$ref": "#/definitions/datetime"
1862
+ },
1863
+ "updatedBy": {
1864
+ "$ref": "#/definitions/actor"
1865
+ }
1866
+ },
1867
+ "required": [
1868
+ "id",
1869
+ "threadId",
1870
+ "key",
1871
+ "type",
1872
+ "stringValue",
1873
+ "booleanValue",
1874
+ "createdAt",
1875
+ "createdBy",
1876
+ "updatedAt",
1877
+ "updatedBy"
1878
+ ],
1879
+ "additionalProperties": true
1880
+ },
1881
+ "thread": {
1882
+ "type": "object",
1883
+ "properties": {
1884
+ "id": {
1885
+ "$ref": "#/definitions/id"
1886
+ },
1887
+ "customer": {
1888
+ "$ref": "#/definitions/customer"
1889
+ },
1890
+ "title": {
1891
+ "type": "string",
1892
+ "minLength": 1,
1893
+ "maxLength": 500
1894
+ },
1895
+ "previewText": {
1896
+ "anyOf": [
1897
+ {
1898
+ "type": "string",
1899
+ "maxLength": 500
1900
+ },
1901
+ {
1902
+ "type": "null"
1903
+ }
1904
+ ],
1905
+ "default": null
1906
+ },
1907
+ "priority": {
1908
+ "$ref": "#/definitions/threadPriority"
1909
+ },
1910
+ "externalId": {
1911
+ "anyOf": [
1912
+ {
1913
+ "type": "string",
1914
+ "minLength": 1,
1915
+ "maxLength": 500
1916
+ },
1917
+ {
1918
+ "type": "null"
1919
+ }
1920
+ ]
1921
+ },
1922
+ "status": {
1923
+ "$ref": "#/definitions/threadStatus"
1924
+ },
1925
+ "statusChangedAt": {
1926
+ "$ref": "#/definitions/datetime"
1927
+ },
1928
+ "statusChangedBy": {
1929
+ "anyOf": [
1930
+ {
1931
+ "$ref": "#/definitions/actor"
1932
+ },
1933
+ {
1934
+ "type": "null"
1935
+ }
1936
+ ],
1937
+ "default": null
1938
+ },
1939
+ "statusDetail": {
1940
+ "anyOf": [
1941
+ {
1942
+ "$ref": "#/definitions/threadStatusDetail"
1943
+ },
1944
+ {
1945
+ "type": "null"
1946
+ }
1947
+ ]
1948
+ },
1949
+ "assignee": {
1950
+ "anyOf": [
1951
+ {
1952
+ "$ref": "#/definitions/threadAssignee"
1953
+ },
1954
+ {
1955
+ "type": "null"
1956
+ }
1957
+ ]
1958
+ },
1959
+ "assignedAt": {
1960
+ "anyOf": [
1961
+ {
1962
+ "$ref": "#/definitions/datetime"
1963
+ },
1964
+ {
1965
+ "type": "null"
1966
+ }
1967
+ ]
1968
+ },
1969
+ "additionalAssignees": {
1970
+ "type": "array",
1971
+ "items": {
1972
+ "$ref": "#/definitions/threadAssignee"
1973
+ },
1974
+ "default": []
1975
+ },
1976
+ "labels": {
1977
+ "type": "array",
1978
+ "items": {
1979
+ "$ref": "#/definitions/label"
1980
+ }
1981
+ },
1982
+ "firstInboundMessageInfo": {
1983
+ "anyOf": [
1984
+ {
1985
+ "$ref": "#/definitions/threadMessageInfo"
1986
+ },
1987
+ {
1988
+ "type": "null"
1989
+ }
1990
+ ]
1991
+ },
1992
+ "firstOutboundMessageInfo": {
1993
+ "anyOf": [
1994
+ {
1995
+ "$ref": "#/definitions/threadMessageInfo"
1996
+ },
1997
+ {
1998
+ "type": "null"
1999
+ }
2000
+ ]
2001
+ },
2002
+ "lastInboundMessageInfo": {
2003
+ "anyOf": [
2004
+ {
2005
+ "$ref": "#/definitions/threadMessageInfo"
2006
+ },
2007
+ {
2008
+ "type": "null"
2009
+ }
2010
+ ]
2011
+ },
2012
+ "lastOutboundMessageInfo": {
2013
+ "anyOf": [
2014
+ {
2015
+ "$ref": "#/definitions/threadMessageInfo"
2016
+ },
2017
+ {
2018
+ "type": "null"
2019
+ }
2020
+ ]
2021
+ },
2022
+ "supportEmailAddresses": {
2023
+ "type": "array",
2024
+ "items": {
2025
+ "type": "string"
2026
+ }
2027
+ },
2028
+ "createdAt": {
2029
+ "$ref": "#/definitions/datetime"
2030
+ },
2031
+ "createdBy": {
2032
+ "$ref": "#/definitions/actor"
2033
+ },
2034
+ "updatedAt": {
2035
+ "$ref": "#/definitions/datetime"
2036
+ },
2037
+ "updatedBy": {
2038
+ "$ref": "#/definitions/actor"
2039
+ }
2040
+ },
2041
+ "required": [
2042
+ "id",
2043
+ "customer",
2044
+ "title",
2045
+ "priority",
2046
+ "externalId",
2047
+ "status",
2048
+ "statusChangedAt",
2049
+ "statusDetail",
2050
+ "assignee",
2051
+ "assignedAt",
2052
+ "labels",
2053
+ "firstInboundMessageInfo",
2054
+ "firstOutboundMessageInfo",
2055
+ "lastInboundMessageInfo",
2056
+ "lastOutboundMessageInfo",
2057
+ "supportEmailAddresses",
2058
+ "createdAt",
2059
+ "createdBy",
2060
+ "updatedAt",
2061
+ "updatedBy"
2062
+ ],
2063
+ "additionalProperties": true
2064
+ },
2065
+ "noteEntry": {
2066
+ "type": "object",
2067
+ "properties": {
2068
+ "entryType": {
2069
+ "type": "string",
2070
+ "const": "note"
2071
+ },
2072
+ "noteId": {
2073
+ "$ref": "#/definitions/id"
2074
+ },
2075
+ "text": {
2076
+ "type": "string",
2077
+ "minLength": 1,
2078
+ "maxLength": 10000
2079
+ },
2080
+ "markdown": {
2081
+ "anyOf": [
2082
+ {
2083
+ "type": "string",
2084
+ "minLength": 1,
2085
+ "maxLength": 10000
2086
+ },
2087
+ {
2088
+ "type": "null"
2089
+ }
2090
+ ]
2091
+ }
2092
+ },
2093
+ "required": ["entryType", "noteId", "text", "markdown"],
2094
+ "additionalProperties": true
2095
+ },
2096
+ "chatEntry": {
2097
+ "type": "object",
2098
+ "properties": {
2099
+ "entryType": {
2100
+ "type": "string",
2101
+ "const": "chat"
2102
+ },
2103
+ "chatId": {
2104
+ "$ref": "#/definitions/id"
2105
+ },
2106
+ "text": {
2107
+ "type": ["string", "null"]
2108
+ },
2109
+ "attachments": {
2110
+ "type": "array",
2111
+ "items": {
2112
+ "$ref": "#/definitions/chatEntryAttachment"
2113
+ }
2114
+ },
2115
+ "customerReadAt": {
2116
+ "anyOf": [
2117
+ {
2118
+ "$ref": "#/definitions/datetime"
2119
+ },
2120
+ {
2121
+ "type": "null"
2122
+ }
2123
+ ]
2124
+ }
2125
+ },
2126
+ "required": ["entryType", "chatId", "text", "attachments", "customerReadAt"],
2127
+ "additionalProperties": true
2128
+ },
2129
+ "emailEntry": {
2130
+ "type": "object",
2131
+ "properties": {
2132
+ "entryType": {
2133
+ "type": "string",
2134
+ "const": "email"
2135
+ },
2136
+ "emailId": {
2137
+ "$ref": "#/definitions/id"
2138
+ },
2139
+ "to": {
2140
+ "$ref": "#/definitions/emailParticipant"
2141
+ },
2142
+ "from": {
2143
+ "$ref": "#/definitions/emailParticipant"
2144
+ },
2145
+ "additionalRecipients": {
2146
+ "type": "array",
2147
+ "items": {
2148
+ "$ref": "#/definitions/emailParticipant"
2149
+ }
2150
+ },
2151
+ "hiddenRecipients": {
2152
+ "type": "array",
2153
+ "items": {
2154
+ "$ref": "#/definitions/emailParticipant"
2155
+ }
2156
+ },
2157
+ "subject": {
2158
+ "type": ["string", "null"]
2159
+ },
2160
+ "textContent": {
2161
+ "type": ["string", "null"]
2162
+ },
2163
+ "hasMoreTextContent": {
2164
+ "type": "boolean"
2165
+ },
2166
+ "markdownContent": {
2167
+ "type": ["string", "null"]
2168
+ },
2169
+ "hasMoreMarkdownContent": {
2170
+ "type": "boolean"
2171
+ },
2172
+ "authenticity": {
2173
+ "$ref": "#/definitions/emailAuthenticity"
2174
+ },
2175
+ "sentAt": {
2176
+ "anyOf": [
2177
+ {
2178
+ "$ref": "#/definitions/datetime"
2179
+ },
2180
+ {
2181
+ "type": "null"
2182
+ }
2183
+ ]
2184
+ },
2185
+ "receivedAt": {
2186
+ "anyOf": [
2187
+ {
2188
+ "$ref": "#/definitions/datetime"
2189
+ },
2190
+ {
2191
+ "type": "null"
2192
+ }
2193
+ ]
2194
+ },
2195
+ "attachments": {
2196
+ "type": "array",
2197
+ "items": {
2198
+ "$ref": "#/definitions/emailEntryAttachment"
2199
+ }
2200
+ },
2201
+ "inReplyToEmailId": {
2202
+ "type": ["string", "null"]
2203
+ },
2204
+ "isStartOfThread": {
2205
+ "type": "boolean"
2206
+ }
2207
+ },
2208
+ "required": [
2209
+ "entryType",
2210
+ "emailId",
2211
+ "to",
2212
+ "from",
2213
+ "additionalRecipients",
2214
+ "hiddenRecipients",
2215
+ "subject",
2216
+ "textContent",
2217
+ "hasMoreTextContent",
2218
+ "markdownContent",
2219
+ "hasMoreMarkdownContent",
2220
+ "authenticity",
2221
+ "sentAt",
2222
+ "receivedAt",
2223
+ "attachments",
2224
+ "inReplyToEmailId",
2225
+ "isStartOfThread"
2226
+ ],
2227
+ "additionalProperties": true
2228
+ },
2229
+ "customEntry": {
2230
+ "type": "object",
2231
+ "properties": {
2232
+ "entryType": {
2233
+ "type": "string",
2234
+ "const": "custom"
2235
+ },
2236
+ "externalId": {
2237
+ "anyOf": [
2238
+ {
2239
+ "type": "string",
2240
+ "minLength": 1,
2241
+ "maxLength": 500
2242
+ },
2243
+ {
2244
+ "type": "null"
2245
+ }
2246
+ ]
2247
+ },
2248
+ "title": {
2249
+ "type": "string",
2250
+ "maxLength": 500
2251
+ },
2252
+ "type": {
2253
+ "type": ["string", "null"]
2254
+ },
2255
+ "components": {
2256
+ "type": "array",
2257
+ "items": {
2258
+ "$ref": "#/definitions/component"
2259
+ }
2260
+ },
2261
+ "attachments": {
2262
+ "type": "array",
2263
+ "items": {
2264
+ "$ref": "#/definitions/customEntryAttachment"
2265
+ }
2266
+ }
2267
+ },
2268
+ "required": ["entryType", "externalId", "title", "type", "components", "attachments"],
2269
+ "additionalProperties": true
2270
+ },
2271
+ "timelineEntry": {
2272
+ "type": "object",
2273
+ "properties": {
2274
+ "id": {
2275
+ "$ref": "#/definitions/id"
2276
+ },
2277
+ "customerId": {
2278
+ "$ref": "#/definitions/id"
2279
+ },
2280
+ "threadId": {
2281
+ "anyOf": [
2282
+ {
2283
+ "$ref": "#/definitions/id"
2284
+ },
2285
+ {
2286
+ "type": "null"
2287
+ }
2288
+ ],
2289
+ "default": null
2290
+ },
2291
+ "timestamp": {
2292
+ "$ref": "#/definitions/datetime"
2293
+ },
2294
+ "actor": {
2295
+ "$ref": "#/definitions/actor"
2296
+ },
2297
+ "entry": {
2298
+ "anyOf": [
2299
+ {
2300
+ "type": "object",
2301
+ "properties": {
2302
+ "entryType": {
2303
+ "type": "string",
2304
+ "const": "UNKNOWN"
2305
+ }
2306
+ },
2307
+ "required": ["entryType"],
2308
+ "additionalProperties": true
2309
+ },
2310
+ {
2311
+ "$ref": "#/definitions/noteEntry"
2312
+ },
2313
+ {
2314
+ "$ref": "#/definitions/chatEntry"
2315
+ },
2316
+ {
2317
+ "$ref": "#/definitions/emailEntry"
2318
+ },
2319
+ {
2320
+ "$ref": "#/definitions/customEntry"
2321
+ }
2322
+ ]
2323
+ }
2324
+ },
2325
+ "required": ["id", "customerId", "timestamp", "actor", "entry"],
2326
+ "additionalProperties": true
2327
+ },
2328
+ "serviceLevelAgreementStatusDetail": {
2329
+ "anyOf": [
2330
+ {
2331
+ "type": "object",
2332
+ "properties": {
2333
+ "status": {
2334
+ "type": "string",
2335
+ "const": "UNKNOWN"
2336
+ }
2337
+ },
2338
+ "required": ["status"],
2339
+ "additionalProperties": true
2340
+ },
2341
+ {
2342
+ "type": "object",
2343
+ "properties": {
2344
+ "breachTime": {
2345
+ "$ref": "#/definitions/datetime"
2346
+ },
2347
+ "status": {
2348
+ "type": "string",
2349
+ "const": "PENDING"
2350
+ }
2351
+ },
2352
+ "required": ["breachTime", "status"],
2353
+ "additionalProperties": true
2354
+ },
2355
+ {
2356
+ "type": "object",
2357
+ "properties": {
2358
+ "achievedAt": {
2359
+ "$ref": "#/definitions/datetime"
2360
+ },
2361
+ "status": {
2362
+ "type": "string",
2363
+ "const": "ACHIEVED"
2364
+ }
2365
+ },
2366
+ "required": ["achievedAt", "status"],
2367
+ "additionalProperties": true
2368
+ },
2369
+ {
2370
+ "type": "object",
2371
+ "properties": {
2372
+ "breachTime": {
2373
+ "$ref": "#/definitions/datetime"
2374
+ },
2375
+ "status": {
2376
+ "type": "string",
2377
+ "const": "IMMINENT_BREACH"
2378
+ }
2379
+ },
2380
+ "required": ["breachTime", "status"],
2381
+ "additionalProperties": true
2382
+ },
2383
+ {
2384
+ "type": "object",
2385
+ "properties": {
2386
+ "breachedAt": {
2387
+ "$ref": "#/definitions/datetime"
2388
+ },
2389
+ "status": {
2390
+ "type": "string",
2391
+ "const": "BREACHING"
2392
+ }
2393
+ },
2394
+ "required": ["breachedAt", "status"],
2395
+ "additionalProperties": true
2396
+ },
2397
+ {
2398
+ "type": "object",
2399
+ "properties": {
2400
+ "breachedAt": {
2401
+ "$ref": "#/definitions/datetime"
2402
+ },
2403
+ "completedAt": {
2404
+ "$ref": "#/definitions/datetime"
2405
+ },
2406
+ "status": {
2407
+ "type": "string",
2408
+ "const": "BREACHED"
2409
+ }
2410
+ },
2411
+ "required": ["breachedAt", "completedAt", "status"],
2412
+ "additionalProperties": true
2413
+ },
2414
+ {
2415
+ "type": "object",
2416
+ "properties": {
2417
+ "cancelledAt": {
2418
+ "$ref": "#/definitions/datetime"
2419
+ },
2420
+ "status": {
2421
+ "type": "string",
2422
+ "const": "CANCELLED"
2423
+ }
2424
+ },
2425
+ "required": ["cancelledAt", "status"],
2426
+ "additionalProperties": true
2427
+ }
2428
+ ]
2429
+ },
2430
+ "serviceLevelAgreement": {
2431
+ "anyOf": [
2432
+ {
2433
+ "type": "object",
2434
+ "properties": {
2435
+ "type": {
2436
+ "type": "string",
2437
+ "const": "UNKNOWN"
2438
+ }
2439
+ },
2440
+ "required": ["type"],
2441
+ "additionalProperties": true
2442
+ },
2443
+ {
2444
+ "type": "object",
2445
+ "properties": {
2446
+ "id": {
2447
+ "$ref": "#/definitions/id"
2448
+ },
2449
+ "tier": {
2450
+ "$ref": "#/definitions/tier"
2451
+ },
2452
+ "useBusinessHoursOnly": {
2453
+ "type": "boolean"
2454
+ },
2455
+ "threadPriorityFilter": {
2456
+ "$ref": "#/definitions/threadPriorityFilter"
2457
+ },
2458
+ "createdAt": {
2459
+ "$ref": "#/definitions/datetime"
2460
+ },
2461
+ "createdBy": {
2462
+ "$ref": "#/definitions/internalActor"
2463
+ },
2464
+ "updatedAt": {
2465
+ "$ref": "#/definitions/datetime"
2466
+ },
2467
+ "updatedBy": {
2468
+ "$ref": "#/definitions/internalActor"
2469
+ },
2470
+ "type": {
2471
+ "type": "string",
2472
+ "const": "FIRST_RESPONSE_TIME"
2473
+ },
2474
+ "firstResponseTimeMinutes": {
2475
+ "type": "number"
2476
+ }
2477
+ },
2478
+ "required": [
2479
+ "id",
2480
+ "tier",
2481
+ "useBusinessHoursOnly",
2482
+ "threadPriorityFilter",
2483
+ "createdAt",
2484
+ "createdBy",
2485
+ "updatedAt",
2486
+ "updatedBy",
2487
+ "type",
2488
+ "firstResponseTimeMinutes"
2489
+ ],
2490
+ "additionalProperties": true
2491
+ },
2492
+ {
2493
+ "type": "object",
2494
+ "properties": {
2495
+ "id": {
2496
+ "$ref": "#/definitions/id"
2497
+ },
2498
+ "tier": {
2499
+ "$ref": "#/definitions/tier"
2500
+ },
2501
+ "useBusinessHoursOnly": {
2502
+ "$ref": "#/definitions/serviceLevelAgreement/anyOf/1/properties/useBusinessHoursOnly"
2503
+ },
2504
+ "threadPriorityFilter": {
2505
+ "$ref": "#/definitions/threadPriorityFilter"
2506
+ },
2507
+ "createdAt": {
2508
+ "$ref": "#/definitions/datetime"
2509
+ },
2510
+ "createdBy": {
2511
+ "$ref": "#/definitions/internalActor"
2512
+ },
2513
+ "updatedAt": {
2514
+ "$ref": "#/definitions/datetime"
2515
+ },
2516
+ "updatedBy": {
2517
+ "$ref": "#/definitions/internalActor"
2518
+ },
2519
+ "type": {
2520
+ "type": "string",
2521
+ "const": "NEXT_RESPONSE_TIME"
2522
+ },
2523
+ "nextResponseTimeMinutes": {
2524
+ "type": "number"
2525
+ }
2526
+ },
2527
+ "required": [
2528
+ "id",
2529
+ "tier",
2530
+ "useBusinessHoursOnly",
2531
+ "threadPriorityFilter",
2532
+ "createdAt",
2533
+ "createdBy",
2534
+ "updatedAt",
2535
+ "updatedBy",
2536
+ "type",
2537
+ "nextResponseTimeMinutes"
2538
+ ],
2539
+ "additionalProperties": true
2540
+ }
2541
+ ]
2542
+ },
2543
+ "slackMessage": {
2544
+ "type": "object",
2545
+ "properties": {
2546
+ "timelineEntryId": {
2547
+ "$ref": "#/definitions/id"
2548
+ },
2549
+ "id": {
2550
+ "$ref": "#/definitions/id"
2551
+ },
2552
+ "text": {
2553
+ "type": "string"
2554
+ },
2555
+ "resolvedText": {
2556
+ "type": "string",
2557
+ "default": ""
2558
+ },
2559
+ "attachments": {
2560
+ "type": "array",
2561
+ "items": {
2562
+ "$ref": "#/definitions/attachment"
2563
+ }
2564
+ },
2565
+ "slackChannelId": {
2566
+ "type": "string"
2567
+ },
2568
+ "slackChannelName": {
2569
+ "type": "string"
2570
+ },
2571
+ "slackMessageLink": {
2572
+ "type": "string"
2573
+ },
2574
+ "slackReactions": {
2575
+ "type": "array",
2576
+ "items": {
2577
+ "type": "object",
2578
+ "properties": {
2579
+ "name": {
2580
+ "type": "string"
2581
+ },
2582
+ "actors": {
2583
+ "type": "array",
2584
+ "items": {
2585
+ "type": "object",
2586
+ "properties": {
2587
+ "actorId": {
2588
+ "$ref": "#/definitions/id"
2589
+ },
2590
+ "actorType": {
2591
+ "$ref": "#/definitions/threadMessageInfo/properties/actorType/anyOf/0"
2592
+ },
2593
+ "slackUserId": {
2594
+ "type": "string"
2595
+ }
2596
+ },
2597
+ "required": ["actorId", "actorType", "slackUserId"],
2598
+ "additionalProperties": true
2599
+ }
2600
+ },
2601
+ "imageUrl": {
2602
+ "anyOf": [
2603
+ {
2604
+ "type": "string",
2605
+ "format": "uri"
2606
+ },
2607
+ {
2608
+ "type": "null"
2609
+ }
2610
+ ],
2611
+ "default": null
2612
+ }
2613
+ },
2614
+ "required": ["name", "actors"],
2615
+ "additionalProperties": true
2616
+ },
2617
+ "default": []
2618
+ },
2619
+ "createdAt": {
2620
+ "$ref": "#/definitions/datetime"
2621
+ },
2622
+ "createdBy": {
2623
+ "$ref": "#/definitions/actor"
2624
+ },
2625
+ "updatedAt": {
2626
+ "$ref": "#/definitions/datetime"
2627
+ },
2628
+ "updatedBy": {
2629
+ "$ref": "#/definitions/actor"
2630
+ }
2631
+ },
2632
+ "required": [
2633
+ "timelineEntryId",
2634
+ "id",
2635
+ "text",
2636
+ "attachments",
2637
+ "slackChannelId",
2638
+ "slackChannelName",
2639
+ "slackMessageLink",
2640
+ "createdAt",
2641
+ "createdBy",
2642
+ "updatedAt",
2643
+ "updatedBy"
2644
+ ],
2645
+ "additionalProperties": true
2646
+ },
2647
+ "discordMessage": {
2648
+ "type": "object",
2649
+ "properties": {
2650
+ "timelineEntryId": {
2651
+ "$ref": "#/definitions/id"
2652
+ },
2653
+ "id": {
2654
+ "$ref": "#/definitions/id"
2655
+ },
2656
+ "discordGuildId": {
2657
+ "type": "string"
2658
+ },
2659
+ "discordChannelId": {
2660
+ "type": "string"
2661
+ },
2662
+ "discordThreadId": {
2663
+ "type": "string"
2664
+ },
2665
+ "discordId": {
2666
+ "type": "string"
2667
+ },
2668
+ "discordTimestamp": {
2669
+ "$ref": "#/definitions/datetime"
2670
+ },
2671
+ "textContent": {
2672
+ "type": "string"
2673
+ },
2674
+ "attachments": {
2675
+ "type": "array",
2676
+ "items": {
2677
+ "$ref": "#/definitions/attachment"
2678
+ },
2679
+ "default": []
2680
+ },
2681
+ "lastEditedOnDiscordAt": {
2682
+ "anyOf": [
2683
+ {
2684
+ "$ref": "#/definitions/datetime"
2685
+ },
2686
+ {
2687
+ "type": "null"
2688
+ }
2689
+ ],
2690
+ "default": null
2691
+ },
2692
+ "deletedOnDiscordAt": {
2693
+ "anyOf": [
2694
+ {
2695
+ "$ref": "#/definitions/datetime"
2696
+ },
2697
+ {
2698
+ "type": "null"
2699
+ }
2700
+ ],
2701
+ "default": null
2702
+ },
2703
+ "createdAt": {
2704
+ "$ref": "#/definitions/datetime"
2705
+ },
2706
+ "createdBy": {
2707
+ "$ref": "#/definitions/actor"
2708
+ },
2709
+ "updatedAt": {
2710
+ "$ref": "#/definitions/datetime"
2711
+ },
2712
+ "updatedBy": {
2713
+ "$ref": "#/definitions/actor"
2714
+ }
2715
+ },
2716
+ "required": [
2717
+ "timelineEntryId",
2718
+ "id",
2719
+ "discordGuildId",
2720
+ "discordChannelId",
2721
+ "discordThreadId",
2722
+ "discordId",
2723
+ "discordTimestamp",
2724
+ "textContent",
2725
+ "createdAt",
2726
+ "createdBy",
2727
+ "updatedAt",
2728
+ "updatedBy"
2729
+ ],
2730
+ "additionalProperties": true
2731
+ },
2732
+ "msTeamsMessage": {
2733
+ "type": "object",
2734
+ "properties": {
2735
+ "timelineEntryId": {
2736
+ "$ref": "#/definitions/id"
2737
+ },
2738
+ "threadId": {
2739
+ "$ref": "#/definitions/id"
2740
+ },
2741
+ "msTeamsMessageId": {
2742
+ "type": "string"
2743
+ },
2744
+ "type": {
2745
+ "anyOf": [
2746
+ {
2747
+ "type": "string",
2748
+ "enum": ["INBOUND", "OUTBOUND", "UNKNOWN_MS_TEAMS_MESSAGE_TYPE"]
2749
+ },
2750
+ {
2751
+ "type": "null"
2752
+ }
2753
+ ]
2754
+ },
2755
+ "text": {
2756
+ "type": "string"
2757
+ },
2758
+ "attachments": {
2759
+ "type": "array",
2760
+ "items": {
2761
+ "$ref": "#/definitions/attachment"
2762
+ }
2763
+ },
2764
+ "lastEditedOnMsTeamsAt": {
2765
+ "anyOf": [
2766
+ {
2767
+ "$ref": "#/definitions/datetime"
2768
+ },
2769
+ {
2770
+ "type": "null"
2771
+ }
2772
+ ]
2773
+ },
2774
+ "deletedOnMsTeamsAt": {
2775
+ "anyOf": [
2776
+ {
2777
+ "$ref": "#/definitions/datetime"
2778
+ },
2779
+ {
2780
+ "type": "null"
2781
+ }
2782
+ ]
2783
+ },
2784
+ "createdAt": {
2785
+ "$ref": "#/definitions/datetime"
2786
+ },
2787
+ "createdBy": {
2788
+ "$ref": "#/definitions/actor"
2789
+ },
2790
+ "updatedAt": {
2791
+ "$ref": "#/definitions/datetime"
2792
+ },
2793
+ "updatedBy": {
2794
+ "$ref": "#/definitions/actor"
2795
+ }
2796
+ },
2797
+ "required": [
2798
+ "timelineEntryId",
2799
+ "threadId",
2800
+ "msTeamsMessageId",
2801
+ "type",
2802
+ "text",
2803
+ "attachments",
2804
+ "lastEditedOnMsTeamsAt",
2805
+ "deletedOnMsTeamsAt",
2806
+ "createdAt",
2807
+ "createdBy",
2808
+ "updatedAt",
2809
+ "updatedBy"
2810
+ ],
2811
+ "additionalProperties": true
2812
+ },
2813
+ "customerChangedPayload": {
2814
+ "type": "object",
2815
+ "properties": {
2816
+ "changeType": {
2817
+ "type": "string",
2818
+ "enum": ["ADDED", "UPDATED"]
2819
+ },
2820
+ "eventType": {
2821
+ "type": "string",
2822
+ "const": "customer.customer_changed"
2823
+ },
2824
+ "customer": {
2825
+ "$ref": "#/definitions/customer"
2826
+ },
2827
+ "previousCustomer": {
2828
+ "anyOf": [
2829
+ {
2830
+ "$ref": "#/definitions/customer"
2831
+ },
2832
+ {
2833
+ "type": "null"
2834
+ }
2835
+ ]
2836
+ }
2837
+ },
2838
+ "required": ["changeType", "eventType", "customer", "previousCustomer"],
2839
+ "additionalProperties": true,
2840
+ "description": "A customer has been created or updated"
2841
+ },
2842
+ "timelineEntryChangedPayload": {
2843
+ "type": "object",
2844
+ "properties": {
2845
+ "eventType": {
2846
+ "type": "string",
2847
+ "const": "timeline.timeline_entry_changed"
2848
+ },
2849
+ "previousTimelineEntry": {
2850
+ "anyOf": [
2851
+ {
2852
+ "$ref": "#/definitions/timelineEntry"
2853
+ },
2854
+ {
2855
+ "type": "null"
2856
+ }
2857
+ ],
2858
+ "description": "null if changeType=ADDED"
2859
+ },
2860
+ "timelineEntry": {
2861
+ "anyOf": [
2862
+ {
2863
+ "$ref": "#/definitions/timelineEntry"
2864
+ },
2865
+ {
2866
+ "type": "null"
2867
+ }
2868
+ ],
2869
+ "description": "null if changeType=REMOVED"
2870
+ },
2871
+ "changeType": {
2872
+ "type": "string",
2873
+ "enum": ["ADDED", "UPDATED", "REMOVED"]
2874
+ }
2875
+ },
2876
+ "required": ["eventType", "previousTimelineEntry", "timelineEntry", "changeType"],
2877
+ "additionalProperties": true,
2878
+ "description": "A timeline entry has been added, updated or removed"
2879
+ },
2880
+ "webhookMetadata": {
2881
+ "type": "object",
2882
+ "properties": {
2883
+ "webhookTargetId": {
2884
+ "$ref": "#/definitions/id"
2885
+ },
2886
+ "webhookTargetVersion": {
2887
+ "type": "string",
2888
+ "const": "2026-03-13"
2889
+ },
2890
+ "webhookDeliveryAttemptId": {
2891
+ "$ref": "#/definitions/id"
2892
+ },
2893
+ "webhookDeliveryAttemptNumber": {
2894
+ "type": "integer",
2895
+ "exclusiveMinimum": 0
2896
+ },
2897
+ "webhookDeliveryAttemptTimestamp": {
2898
+ "$ref": "#/definitions/datetime"
2899
+ }
2900
+ },
2901
+ "required": [
2902
+ "webhookTargetId",
2903
+ "webhookTargetVersion",
2904
+ "webhookDeliveryAttemptId",
2905
+ "webhookDeliveryAttemptNumber",
2906
+ "webhookDeliveryAttemptTimestamp"
2907
+ ],
2908
+ "additionalProperties": true
2909
+ },
2910
+ "customerGroupMembershipsChangedPayload": {
2911
+ "type": "object",
2912
+ "properties": {
2913
+ "eventType": {
2914
+ "type": "string",
2915
+ "const": "customer.customer_group_memberships_changed"
2916
+ },
2917
+ "changeType": {
2918
+ "type": "string",
2919
+ "enum": ["ADDED", "REMOVED"]
2920
+ },
2921
+ "customer": {
2922
+ "$ref": "#/definitions/customer"
2923
+ },
2924
+ "previousCustomer": {
2925
+ "$ref": "#/definitions/customer"
2926
+ }
2927
+ },
2928
+ "required": ["eventType", "changeType", "customer", "previousCustomer"],
2929
+ "additionalProperties": true
2930
+ },
2931
+ "customerGroupChangedPayload": {
2932
+ "anyOf": [
2933
+ {
2934
+ "type": "object",
2935
+ "properties": {
2936
+ "changeType": {
2937
+ "type": "string",
2938
+ "const": "ADDED"
2939
+ },
2940
+ "eventType": {
2941
+ "type": "string",
2942
+ "const": "customer.customer_group_changed"
2943
+ },
2944
+ "customerGroup": {
2945
+ "$ref": "#/definitions/customerGroup"
2946
+ }
2947
+ },
2948
+ "required": ["changeType", "eventType", "customerGroup"],
2949
+ "additionalProperties": true
2950
+ },
2951
+ {
2952
+ "type": "object",
2953
+ "properties": {
2954
+ "changeType": {
2955
+ "type": "string",
2956
+ "const": "UPDATED"
2957
+ },
2958
+ "eventType": {
2959
+ "type": "string",
2960
+ "const": "customer.customer_group_changed"
2961
+ },
2962
+ "customerGroup": {
2963
+ "$ref": "#/definitions/customerGroup"
2964
+ },
2965
+ "previousCustomerGroup": {
2966
+ "$ref": "#/definitions/customerGroup"
2967
+ }
2968
+ },
2969
+ "required": ["changeType", "eventType", "customerGroup", "previousCustomerGroup"],
2970
+ "additionalProperties": true
2971
+ },
2972
+ {
2973
+ "type": "object",
2974
+ "properties": {
2975
+ "changeType": {
2976
+ "type": "string",
2977
+ "const": "REMOVED"
2978
+ },
2979
+ "eventType": {
2980
+ "type": "string",
2981
+ "const": "customer.customer_group_changed"
2982
+ },
2983
+ "previousCustomerGroup": {
2984
+ "$ref": "#/definitions/customerGroup"
2985
+ }
2986
+ },
2987
+ "required": ["changeType", "eventType", "previousCustomerGroup"],
2988
+ "additionalProperties": true
2989
+ }
2990
+ ]
2991
+ },
2992
+ "threadCreatedPublicEventPayload": {
2993
+ "type": "object",
2994
+ "properties": {
2995
+ "eventType": {
2996
+ "type": "string",
2997
+ "const": "thread.thread_created"
2998
+ },
2999
+ "thread": {
3000
+ "$ref": "#/definitions/thread"
3001
+ }
3002
+ },
3003
+ "required": ["eventType", "thread"],
3004
+ "additionalProperties": true
3005
+ },
3006
+ "threadStatusTransitionedPublicEventPayload": {
3007
+ "type": "object",
3008
+ "properties": {
3009
+ "eventType": {
3010
+ "type": "string",
3011
+ "const": "thread.thread_status_transitioned"
3012
+ },
3013
+ "previousThread": {
3014
+ "$ref": "#/definitions/thread"
3015
+ },
3016
+ "thread": {
3017
+ "$ref": "#/definitions/thread"
3018
+ }
3019
+ },
3020
+ "required": ["eventType", "previousThread", "thread"],
3021
+ "additionalProperties": true
3022
+ },
3023
+ "threadAssignmentTransitionedPublicEventPayload": {
3024
+ "type": "object",
3025
+ "properties": {
3026
+ "eventType": {
3027
+ "type": "string",
3028
+ "const": "thread.thread_assignment_transitioned"
3029
+ },
3030
+ "previousThread": {
3031
+ "$ref": "#/definitions/thread"
3032
+ },
3033
+ "thread": {
3034
+ "$ref": "#/definitions/thread"
3035
+ }
3036
+ },
3037
+ "required": ["eventType", "previousThread", "thread"],
3038
+ "additionalProperties": true
3039
+ },
3040
+ "threadEmailReceivedPublicEventPayload": {
3041
+ "type": "object",
3042
+ "properties": {
3043
+ "eventType": {
3044
+ "type": "string",
3045
+ "const": "thread.email_received"
3046
+ },
3047
+ "thread": {
3048
+ "$ref": "#/definitions/thread"
3049
+ },
3050
+ "email": {
3051
+ "$ref": "#/definitions/email"
3052
+ }
3053
+ },
3054
+ "required": ["eventType", "thread", "email"],
3055
+ "additionalProperties": true
3056
+ },
3057
+ "threadEmailSentPublicEventPayload": {
3058
+ "type": "object",
3059
+ "properties": {
3060
+ "eventType": {
3061
+ "type": "string",
3062
+ "const": "thread.email_sent"
3063
+ },
3064
+ "thread": {
3065
+ "$ref": "#/definitions/thread"
3066
+ },
3067
+ "email": {
3068
+ "$ref": "#/definitions/email"
3069
+ }
3070
+ },
3071
+ "required": ["eventType", "thread", "email"],
3072
+ "additionalProperties": true
3073
+ },
3074
+ "threadLabelsChangedPublicEventPayload": {
3075
+ "type": "object",
3076
+ "properties": {
3077
+ "eventType": {
3078
+ "type": "string",
3079
+ "const": "thread.thread_labels_changed"
3080
+ },
3081
+ "changeType": {
3082
+ "type": "string",
3083
+ "enum": ["ADDED", "REMOVED"]
3084
+ },
3085
+ "thread": {
3086
+ "$ref": "#/definitions/thread"
3087
+ },
3088
+ "previousThread": {
3089
+ "$ref": "#/definitions/thread"
3090
+ }
3091
+ },
3092
+ "required": ["eventType", "changeType", "thread", "previousThread"],
3093
+ "additionalProperties": true
3094
+ },
3095
+ "threadPriorityChangedPublicEventPayload": {
3096
+ "type": "object",
3097
+ "properties": {
3098
+ "eventType": {
3099
+ "type": "string",
3100
+ "const": "thread.thread_priority_changed"
3101
+ },
3102
+ "previousThread": {
3103
+ "$ref": "#/definitions/thread"
3104
+ },
3105
+ "thread": {
3106
+ "$ref": "#/definitions/thread"
3107
+ }
3108
+ },
3109
+ "required": ["eventType", "previousThread", "thread"],
3110
+ "additionalProperties": true
3111
+ },
3112
+ "threadFieldCreatedPublicEventPayload": {
3113
+ "type": "object",
3114
+ "properties": {
3115
+ "eventType": {
3116
+ "type": "string",
3117
+ "const": "thread.thread_field_created"
3118
+ },
3119
+ "thread": {
3120
+ "$ref": "#/definitions/thread"
3121
+ },
3122
+ "threadField": {
3123
+ "$ref": "#/definitions/threadField"
3124
+ }
3125
+ },
3126
+ "required": ["eventType", "thread", "threadField"],
3127
+ "additionalProperties": true
3128
+ },
3129
+ "threadFieldUpdatedPublicEventPayload": {
3130
+ "type": "object",
3131
+ "properties": {
3132
+ "eventType": {
3133
+ "type": "string",
3134
+ "const": "thread.thread_field_updated"
3135
+ },
3136
+ "thread": {
3137
+ "$ref": "#/definitions/thread"
3138
+ },
3139
+ "previousThreadField": {
3140
+ "$ref": "#/definitions/threadField"
3141
+ },
3142
+ "threadField": {
3143
+ "$ref": "#/definitions/threadField"
3144
+ }
3145
+ },
3146
+ "required": ["eventType", "thread", "previousThreadField", "threadField"],
3147
+ "additionalProperties": true
3148
+ },
3149
+ "threadFieldDeletedPublicEventPayload": {
3150
+ "type": "object",
3151
+ "properties": {
3152
+ "eventType": {
3153
+ "type": "string",
3154
+ "const": "thread.thread_field_deleted"
3155
+ },
3156
+ "thread": {
3157
+ "$ref": "#/definitions/thread"
3158
+ },
3159
+ "previousThreadField": {
3160
+ "$ref": "#/definitions/threadField"
3161
+ }
3162
+ },
3163
+ "required": ["eventType", "thread", "previousThreadField"],
3164
+ "additionalProperties": true
3165
+ },
3166
+ "threadChatSentPublicEventPayload": {
3167
+ "type": "object",
3168
+ "properties": {
3169
+ "eventType": {
3170
+ "type": "string",
3171
+ "const": "thread.chat_sent"
3172
+ },
3173
+ "chat": {
3174
+ "$ref": "#/definitions/chat"
3175
+ },
3176
+ "thread": {
3177
+ "$ref": "#/definitions/thread"
3178
+ }
3179
+ },
3180
+ "required": ["eventType", "chat", "thread"],
3181
+ "additionalProperties": true
3182
+ },
3183
+ "threadChatReceivedPublicEventPayload": {
3184
+ "type": "object",
3185
+ "properties": {
3186
+ "eventType": {
3187
+ "type": "string",
3188
+ "const": "thread.chat_received"
3189
+ },
3190
+ "chat": {
3191
+ "$ref": "#/definitions/chat"
3192
+ },
3193
+ "thread": {
3194
+ "$ref": "#/definitions/thread"
3195
+ }
3196
+ },
3197
+ "required": ["eventType", "chat", "thread"],
3198
+ "additionalProperties": true
3199
+ },
3200
+ "threadNoteCreatedEventPayload": {
3201
+ "type": "object",
3202
+ "properties": {
3203
+ "eventType": {
3204
+ "type": "string",
3205
+ "const": "thread.note_created"
3206
+ },
3207
+ "thread": {
3208
+ "$ref": "#/definitions/thread"
3209
+ },
3210
+ "note": {
3211
+ "type": "object",
3212
+ "properties": {
3213
+ "timelineEntryId": {
3214
+ "$ref": "#/definitions/id"
3215
+ },
3216
+ "id": {
3217
+ "$ref": "#/definitions/id"
3218
+ },
3219
+ "text": {
3220
+ "type": "string",
3221
+ "minLength": 1,
3222
+ "maxLength": 10000
3223
+ },
3224
+ "markdown": {
3225
+ "anyOf": [
3226
+ {
3227
+ "type": "string",
3228
+ "minLength": 1,
3229
+ "maxLength": 10000
3230
+ },
3231
+ {
3232
+ "type": "null"
3233
+ }
3234
+ ]
3235
+ },
3236
+ "createdAt": {
3237
+ "$ref": "#/definitions/datetime"
3238
+ },
3239
+ "createdBy": {
3240
+ "$ref": "#/definitions/internalActor"
3241
+ },
3242
+ "updatedAt": {
3243
+ "$ref": "#/definitions/datetime"
3244
+ },
3245
+ "updatedBy": {
3246
+ "$ref": "#/definitions/internalActor"
3247
+ },
3248
+ "deletedAt": {
3249
+ "$ref": "#/definitions/nullableDatetime"
3250
+ },
3251
+ "deletedBy": {
3252
+ "$ref": "#/definitions/nullableInternalActor"
3253
+ }
3254
+ },
3255
+ "required": [
3256
+ "timelineEntryId",
3257
+ "id",
3258
+ "text",
3259
+ "markdown",
3260
+ "createdAt",
3261
+ "createdBy",
3262
+ "updatedAt",
3263
+ "updatedBy",
3264
+ "deletedAt",
3265
+ "deletedBy"
3266
+ ],
3267
+ "additionalProperties": true
3268
+ }
3269
+ },
3270
+ "required": ["eventType", "thread", "note"],
3271
+ "additionalProperties": true
3272
+ },
3273
+ "threadServiceLevelAgreementStatusTransitionedPayload": {
3274
+ "type": "object",
3275
+ "properties": {
3276
+ "eventType": {
3277
+ "type": "string",
3278
+ "const": "thread.service_level_agreement_status_transitioned"
3279
+ },
3280
+ "thread": {
3281
+ "$ref": "#/definitions/thread"
3282
+ },
3283
+ "serviceLevelAgreement": {
3284
+ "$ref": "#/definitions/serviceLevelAgreement"
3285
+ },
3286
+ "previousServiceLevelAgreementStatusDetail": {
3287
+ "$ref": "#/definitions/serviceLevelAgreementStatusDetail"
3288
+ },
3289
+ "serviceLevelAgreementStatusDetail": {
3290
+ "$ref": "#/definitions/serviceLevelAgreementStatusDetail"
3291
+ }
3292
+ },
3293
+ "required": [
3294
+ "eventType",
3295
+ "thread",
3296
+ "serviceLevelAgreement",
3297
+ "previousServiceLevelAgreementStatusDetail",
3298
+ "serviceLevelAgreementStatusDetail"
3299
+ ],
3300
+ "additionalProperties": true
3301
+ },
3302
+ "threadSlackMessageReceivedEventPayload": {
3303
+ "type": "object",
3304
+ "properties": {
3305
+ "eventType": {
3306
+ "type": "string",
3307
+ "const": "thread.slack_message_received"
3308
+ },
3309
+ "thread": {
3310
+ "$ref": "#/definitions/thread"
3311
+ },
3312
+ "slackMessage": {
3313
+ "$ref": "#/definitions/slackMessage"
3314
+ }
3315
+ },
3316
+ "required": ["eventType", "thread", "slackMessage"],
3317
+ "additionalProperties": true
3318
+ },
3319
+ "threadSlackMessageSentEventPayload": {
3320
+ "type": "object",
3321
+ "properties": {
3322
+ "eventType": {
3323
+ "type": "string",
3324
+ "const": "thread.slack_message_sent"
3325
+ },
3326
+ "thread": {
3327
+ "$ref": "#/definitions/thread"
3328
+ },
3329
+ "slackMessage": {
3330
+ "$ref": "#/definitions/slackMessage"
3331
+ }
3332
+ },
3333
+ "required": ["eventType", "thread", "slackMessage"],
3334
+ "additionalProperties": true
3335
+ },
3336
+ "threadSlackMessageUpdatedEventPayload": {
3337
+ "type": "object",
3338
+ "properties": {
3339
+ "eventType": {
3340
+ "type": "string",
3341
+ "const": "thread.slack_message_updated"
3342
+ },
3343
+ "changeType": {
3344
+ "type": "string",
3345
+ "enum": [
3346
+ "MESSAGE_EDITED",
3347
+ "MESSAGE_DELETED",
3348
+ "REACTIONS_CHANGED",
3349
+ "UNKNOWN_SLACK_MESSAGE_CHANGE_TYPE"
3350
+ ],
3351
+ "default": "UNKNOWN_SLACK_MESSAGE_CHANGE_TYPE"
3352
+ },
3353
+ "thread": {
3354
+ "$ref": "#/definitions/thread"
3355
+ },
3356
+ "slackMessage": {
3357
+ "$ref": "#/definitions/slackMessage"
3358
+ }
3359
+ },
3360
+ "required": ["eventType", "thread", "slackMessage"],
3361
+ "additionalProperties": true
3362
+ },
3363
+ "threadDiscordMessageReceivedEventPayload": {
3364
+ "type": "object",
3365
+ "properties": {
3366
+ "eventType": {
3367
+ "type": "string",
3368
+ "const": "thread.discord_message_received"
3369
+ },
3370
+ "thread": {
3371
+ "$ref": "#/definitions/thread"
3372
+ },
3373
+ "discordMessage": {
3374
+ "$ref": "#/definitions/discordMessage"
3375
+ }
3376
+ },
3377
+ "required": ["eventType", "thread", "discordMessage"],
3378
+ "additionalProperties": true
3379
+ },
3380
+ "threadDiscordMessageSentEventPayload": {
3381
+ "type": "object",
3382
+ "properties": {
3383
+ "eventType": {
3384
+ "type": "string",
3385
+ "const": "thread.discord_message_sent"
3386
+ },
3387
+ "thread": {
3388
+ "$ref": "#/definitions/thread"
3389
+ },
3390
+ "discordMessage": {
3391
+ "$ref": "#/definitions/discordMessage"
3392
+ }
3393
+ },
3394
+ "required": ["eventType", "thread", "discordMessage"],
3395
+ "additionalProperties": true
3396
+ },
3397
+ "threadDiscordMessageUpdatedEventPayload": {
3398
+ "type": "object",
3399
+ "properties": {
3400
+ "eventType": {
3401
+ "type": "string",
3402
+ "const": "thread.discord_message_updated"
3403
+ },
3404
+ "thread": {
3405
+ "$ref": "#/definitions/thread"
3406
+ },
3407
+ "discordMessage": {
3408
+ "$ref": "#/definitions/discordMessage"
3409
+ }
3410
+ },
3411
+ "required": ["eventType", "thread", "discordMessage"],
3412
+ "additionalProperties": true
3413
+ },
3414
+ "threadMSTeamsMessageReceivedEventPayload": {
3415
+ "type": "object",
3416
+ "properties": {
3417
+ "eventType": {
3418
+ "type": "string",
3419
+ "const": "thread.ms_teams_message_received"
3420
+ },
3421
+ "thread": {
3422
+ "$ref": "#/definitions/thread"
3423
+ },
3424
+ "msTeamsMessage": {
3425
+ "$ref": "#/definitions/msTeamsMessage"
3426
+ }
3427
+ },
3428
+ "required": ["eventType", "thread", "msTeamsMessage"],
3429
+ "additionalProperties": true
3430
+ },
3431
+ "threadMSTeamsMessageSentEventPayload": {
3432
+ "type": "object",
3433
+ "properties": {
3434
+ "eventType": {
3435
+ "type": "string",
3436
+ "const": "thread.ms_teams_message_sent"
3437
+ },
3438
+ "thread": {
3439
+ "$ref": "#/definitions/thread"
3440
+ },
3441
+ "msTeamsMessage": {
3442
+ "$ref": "#/definitions/msTeamsMessage"
3443
+ }
3444
+ },
3445
+ "required": ["eventType", "thread", "msTeamsMessage"],
3446
+ "additionalProperties": true
3447
+ },
3448
+ "customerCreatedPublicEventPayload": {
3449
+ "type": "object",
3450
+ "properties": {
3451
+ "eventType": {
3452
+ "type": "string",
3453
+ "const": "customer.customer_created"
3454
+ },
3455
+ "customer": {
3456
+ "$ref": "#/definitions/customer"
3457
+ }
3458
+ },
3459
+ "required": ["eventType", "customer"],
3460
+ "additionalProperties": true,
3461
+ "description": "A customer has been created"
3462
+ },
3463
+ "customerUpdatedPublicEventPayload": {
3464
+ "type": "object",
3465
+ "properties": {
3466
+ "eventType": {
3467
+ "type": "string",
3468
+ "const": "customer.customer_updated"
3469
+ },
3470
+ "customer": {
3471
+ "$ref": "#/definitions/customer"
3472
+ },
3473
+ "previousCustomer": {
3474
+ "$ref": "#/definitions/customer"
3475
+ }
3476
+ },
3477
+ "required": ["eventType", "customer", "previousCustomer"],
3478
+ "additionalProperties": true,
3479
+ "description": "A customer has been updated"
3480
+ },
3481
+ "customerDeletedPublicEventPayload": {
3482
+ "type": "object",
3483
+ "properties": {
3484
+ "eventType": {
3485
+ "type": "string",
3486
+ "const": "customer.customer_deleted"
3487
+ },
3488
+ "previousCustomer": {
3489
+ "$ref": "#/definitions/customer"
3490
+ }
3491
+ },
3492
+ "required": ["eventType", "previousCustomer"],
3493
+ "additionalProperties": true,
3494
+ "description": "A customer has been deleted"
3495
+ }
3496
+ },
3497
+ "$schema": "http://json-schema.org/draft-07/schema#"
3498
+ }