@typecaast/schema 0.2.1 → 0.4.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.
@@ -260,166 +260,11 @@
260
260
  }
261
261
  },
262
262
  "content": {
263
- "type": "array",
264
- "items": {
265
- "anyOf": [
266
- {
267
- "type": "object",
268
- "properties": {
269
- "type": {
270
- "type": "string",
271
- "const": "text"
272
- },
273
- "spans": {
274
- "type": "array",
275
- "items": {
276
- "oneOf": [
277
- {
278
- "type": "object",
279
- "properties": {
280
- "type": {
281
- "type": "string",
282
- "const": "text"
283
- },
284
- "value": {
285
- "type": "string"
286
- }
287
- },
288
- "required": [
289
- "type",
290
- "value"
291
- ],
292
- "additionalProperties": false
293
- },
294
- {
295
- "type": "object",
296
- "properties": {
297
- "type": {
298
- "type": "string",
299
- "const": "code"
300
- },
301
- "value": {
302
- "type": "string"
303
- }
304
- },
305
- "required": [
306
- "type",
307
- "value"
308
- ],
309
- "additionalProperties": false
310
- },
311
- {
312
- "type": "object",
313
- "properties": {
314
- "type": {
315
- "type": "string",
316
- "const": "link"
317
- },
318
- "href": {
319
- "type": "string"
320
- },
321
- "label": {
322
- "type": "string"
323
- }
324
- },
325
- "required": [
326
- "type",
327
- "href"
328
- ],
329
- "additionalProperties": false
330
- },
331
- {
332
- "type": "object",
333
- "properties": {
334
- "type": {
335
- "type": "string",
336
- "const": "mention"
337
- },
338
- "label": {
339
- "type": "string"
340
- },
341
- "id": {
342
- "type": "string"
343
- }
344
- },
345
- "required": [
346
- "type",
347
- "label"
348
- ],
349
- "additionalProperties": false
350
- },
351
- {
352
- "type": "object",
353
- "properties": {
354
- "type": {
355
- "type": "string",
356
- "const": "emoji"
357
- },
358
- "value": {
359
- "type": "string"
360
- },
361
- "shortcode": {
362
- "type": "string"
363
- }
364
- },
365
- "required": [
366
- "type",
367
- "value"
368
- ],
369
- "additionalProperties": false
370
- }
371
- ]
372
- }
373
- }
374
- },
375
- "required": [
376
- "type",
377
- "spans"
378
- ],
379
- "additionalProperties": false
380
- },
381
- {
382
- "type": "object",
383
- "properties": {
384
- "type": {
385
- "type": "string",
386
- "const": "image"
387
- },
388
- "src": {
389
- "type": "string"
390
- },
391
- "alt": {
392
- "type": "string"
393
- },
394
- "width": {
395
- "type": "number",
396
- "exclusiveMinimum": 0
397
- },
398
- "height": {
399
- "type": "number",
400
- "exclusiveMinimum": 0
401
- }
402
- },
403
- "required": [
404
- "type",
405
- "src"
406
- ],
407
- "additionalProperties": false
408
- },
409
- {
410
- "type": "object",
411
- "properties": {
412
- "type": {
413
- "type": "string"
414
- }
415
- },
416
- "required": [
417
- "type"
418
- ],
419
- "additionalProperties": {}
420
- }
421
- ]
422
- }
263
+ "allOf": [
264
+ {
265
+ "$ref": "#/definitions/__schema0"
266
+ }
267
+ ]
423
268
  },
424
269
  "id": {
425
270
  "type": "string"
@@ -590,121 +435,195 @@
590
435
  }
591
436
  },
592
437
  "content": {
438
+ "allOf": [
439
+ {
440
+ "$ref": "#/definitions/__schema0"
441
+ }
442
+ ]
443
+ },
444
+ "id": {
445
+ "type": "string"
446
+ },
447
+ "instant": {
448
+ "type": "boolean"
449
+ }
450
+ },
451
+ "required": [
452
+ "type"
453
+ ],
454
+ "additionalProperties": false
455
+ },
456
+ {
457
+ "type": "object",
458
+ "properties": {
459
+ "type": {
460
+ "type": "string",
461
+ "const": "delete"
462
+ },
463
+ "target": {
464
+ "type": "string"
465
+ },
466
+ "id": {
467
+ "type": "string"
468
+ },
469
+ "instant": {
470
+ "type": "boolean"
471
+ }
472
+ },
473
+ "required": [
474
+ "type"
475
+ ],
476
+ "additionalProperties": false
477
+ },
478
+ {
479
+ "type": "object",
480
+ "properties": {
481
+ "type": {
482
+ "type": "string",
483
+ "const": "readReceipt"
484
+ },
485
+ "by": {
486
+ "type": "string"
487
+ },
488
+ "target": {
489
+ "type": "string"
490
+ },
491
+ "id": {
492
+ "type": "string"
493
+ },
494
+ "instant": {
495
+ "type": "boolean"
496
+ }
497
+ },
498
+ "required": [
499
+ "type"
500
+ ],
501
+ "additionalProperties": false
502
+ },
503
+ {
504
+ "type": "object",
505
+ "properties": {
506
+ "type": {
507
+ "type": "string",
508
+ "const": "system"
509
+ },
510
+ "from": {
511
+ "type": "string"
512
+ },
513
+ "text": {
514
+ "type": "string"
515
+ },
516
+ "images": {
593
517
  "type": "array",
594
518
  "items": {
595
- "anyOf": [
596
- {
597
- "type": "object",
598
- "properties": {
599
- "type": {
600
- "type": "string",
601
- "const": "text"
602
- },
603
- "spans": {
604
- "type": "array",
605
- "items": {
606
- "oneOf": [
607
- {
608
- "type": "object",
609
- "properties": {
610
- "type": {
611
- "type": "string",
612
- "const": "text"
613
- },
614
- "value": {
615
- "type": "string"
616
- }
617
- },
618
- "required": [
619
- "type",
620
- "value"
621
- ],
622
- "additionalProperties": false
623
- },
624
- {
625
- "type": "object",
626
- "properties": {
627
- "type": {
628
- "type": "string",
629
- "const": "code"
630
- },
631
- "value": {
632
- "type": "string"
633
- }
634
- },
635
- "required": [
636
- "type",
637
- "value"
638
- ],
639
- "additionalProperties": false
640
- },
641
- {
642
- "type": "object",
643
- "properties": {
644
- "type": {
645
- "type": "string",
646
- "const": "link"
647
- },
648
- "href": {
649
- "type": "string"
650
- },
651
- "label": {
652
- "type": "string"
653
- }
654
- },
655
- "required": [
656
- "type",
657
- "href"
658
- ],
659
- "additionalProperties": false
660
- },
661
- {
662
- "type": "object",
663
- "properties": {
664
- "type": {
665
- "type": "string",
666
- "const": "mention"
667
- },
668
- "label": {
669
- "type": "string"
670
- },
671
- "id": {
672
- "type": "string"
673
- }
674
- },
675
- "required": [
676
- "type",
677
- "label"
678
- ],
679
- "additionalProperties": false
680
- },
681
- {
682
- "type": "object",
683
- "properties": {
684
- "type": {
685
- "type": "string",
686
- "const": "emoji"
687
- },
688
- "value": {
689
- "type": "string"
690
- },
691
- "shortcode": {
692
- "type": "string"
693
- }
694
- },
695
- "required": [
696
- "type",
697
- "value"
698
- ],
699
- "additionalProperties": false
700
- }
701
- ]
702
- }
519
+ "type": "object",
520
+ "properties": {
521
+ "src": {
522
+ "type": "string"
523
+ },
524
+ "alt": {
525
+ "type": "string"
526
+ },
527
+ "width": {
528
+ "type": "number",
529
+ "exclusiveMinimum": 0
530
+ },
531
+ "height": {
532
+ "type": "number",
533
+ "exclusiveMinimum": 0
534
+ }
535
+ },
536
+ "required": [
537
+ "src"
538
+ ],
539
+ "additionalProperties": false
540
+ }
541
+ },
542
+ "content": {
543
+ "allOf": [
544
+ {
545
+ "$ref": "#/definitions/__schema0"
546
+ }
547
+ ]
548
+ },
549
+ "id": {
550
+ "type": "string"
551
+ },
552
+ "instant": {
553
+ "type": "boolean"
554
+ }
555
+ },
556
+ "required": [
557
+ "type"
558
+ ],
559
+ "additionalProperties": false
560
+ },
561
+ {
562
+ "type": "object",
563
+ "properties": {
564
+ "type": {
565
+ "type": "string",
566
+ "const": "delay"
567
+ },
568
+ "duration": {
569
+ "type": "number",
570
+ "minimum": 0
571
+ },
572
+ "id": {
573
+ "type": "string"
574
+ },
575
+ "instant": {
576
+ "type": "boolean"
577
+ }
578
+ },
579
+ "required": [
580
+ "type",
581
+ "duration"
582
+ ],
583
+ "additionalProperties": false
584
+ }
585
+ ]
586
+ }
587
+ }
588
+ },
589
+ "required": [
590
+ "version",
591
+ "meta",
592
+ "participants",
593
+ "pacing",
594
+ "timeline"
595
+ ],
596
+ "additionalProperties": false,
597
+ "definitions": {
598
+ "__schema0": {
599
+ "type": "array",
600
+ "items": {
601
+ "anyOf": [
602
+ {
603
+ "type": "object",
604
+ "properties": {
605
+ "type": {
606
+ "type": "string",
607
+ "const": "text"
608
+ },
609
+ "spans": {
610
+ "type": "array",
611
+ "items": {
612
+ "oneOf": [
613
+ {
614
+ "type": "object",
615
+ "properties": {
616
+ "type": {
617
+ "type": "string",
618
+ "const": "text"
619
+ },
620
+ "value": {
621
+ "type": "string"
703
622
  }
704
623
  },
705
624
  "required": [
706
625
  "type",
707
- "spans"
626
+ "value"
708
627
  ],
709
628
  "additionalProperties": false
710
629
  },
@@ -713,26 +632,66 @@
713
632
  "properties": {
714
633
  "type": {
715
634
  "type": "string",
716
- "const": "image"
635
+ "const": "code"
717
636
  },
718
- "src": {
637
+ "value": {
719
638
  "type": "string"
639
+ }
640
+ },
641
+ "required": [
642
+ "type",
643
+ "value"
644
+ ],
645
+ "additionalProperties": false
646
+ },
647
+ {
648
+ "type": "object",
649
+ "properties": {
650
+ "type": {
651
+ "type": "string",
652
+ "const": "bold"
720
653
  },
721
- "alt": {
654
+ "value": {
722
655
  "type": "string"
656
+ }
657
+ },
658
+ "required": [
659
+ "type",
660
+ "value"
661
+ ],
662
+ "additionalProperties": false
663
+ },
664
+ {
665
+ "type": "object",
666
+ "properties": {
667
+ "type": {
668
+ "type": "string",
669
+ "const": "italic"
723
670
  },
724
- "width": {
725
- "type": "number",
726
- "exclusiveMinimum": 0
671
+ "value": {
672
+ "type": "string"
673
+ }
674
+ },
675
+ "required": [
676
+ "type",
677
+ "value"
678
+ ],
679
+ "additionalProperties": false
680
+ },
681
+ {
682
+ "type": "object",
683
+ "properties": {
684
+ "type": {
685
+ "type": "string",
686
+ "const": "strike"
727
687
  },
728
- "height": {
729
- "type": "number",
730
- "exclusiveMinimum": 0
688
+ "value": {
689
+ "type": "string"
731
690
  }
732
691
  },
733
692
  "required": [
734
693
  "type",
735
- "src"
694
+ "value"
736
695
  ],
737
696
  "additionalProperties": false
738
697
  },
@@ -740,26 +699,69 @@
740
699
  "type": "object",
741
700
  "properties": {
742
701
  "type": {
702
+ "type": "string",
703
+ "const": "link"
704
+ },
705
+ "href": {
706
+ "type": "string"
707
+ },
708
+ "label": {
743
709
  "type": "string"
744
710
  }
745
711
  },
746
712
  "required": [
747
- "type"
713
+ "type",
714
+ "href"
748
715
  ],
749
- "additionalProperties": {}
716
+ "additionalProperties": false
717
+ },
718
+ {
719
+ "type": "object",
720
+ "properties": {
721
+ "type": {
722
+ "type": "string",
723
+ "const": "mention"
724
+ },
725
+ "label": {
726
+ "type": "string"
727
+ },
728
+ "id": {
729
+ "type": "string"
730
+ }
731
+ },
732
+ "required": [
733
+ "type",
734
+ "label"
735
+ ],
736
+ "additionalProperties": false
737
+ },
738
+ {
739
+ "type": "object",
740
+ "properties": {
741
+ "type": {
742
+ "type": "string",
743
+ "const": "emoji"
744
+ },
745
+ "value": {
746
+ "type": "string"
747
+ },
748
+ "shortcode": {
749
+ "type": "string"
750
+ }
751
+ },
752
+ "required": [
753
+ "type",
754
+ "value"
755
+ ],
756
+ "additionalProperties": false
750
757
  }
751
758
  ]
752
759
  }
753
- },
754
- "id": {
755
- "type": "string"
756
- },
757
- "instant": {
758
- "type": "boolean"
759
760
  }
760
761
  },
761
762
  "required": [
762
- "type"
763
+ "type",
764
+ "spans"
763
765
  ],
764
766
  "additionalProperties": false
765
767
  },
@@ -768,20 +770,26 @@
768
770
  "properties": {
769
771
  "type": {
770
772
  "type": "string",
771
- "const": "delete"
773
+ "const": "image"
772
774
  },
773
- "target": {
775
+ "src": {
774
776
  "type": "string"
775
777
  },
776
- "id": {
778
+ "alt": {
777
779
  "type": "string"
778
780
  },
779
- "instant": {
780
- "type": "boolean"
781
+ "width": {
782
+ "type": "number",
783
+ "exclusiveMinimum": 0
784
+ },
785
+ "height": {
786
+ "type": "number",
787
+ "exclusiveMinimum": 0
781
788
  }
782
789
  },
783
790
  "required": [
784
- "type"
791
+ "type",
792
+ "src"
785
793
  ],
786
794
  "additionalProperties": false
787
795
  },
@@ -790,23 +798,15 @@
790
798
  "properties": {
791
799
  "type": {
792
800
  "type": "string",
793
- "const": "readReceipt"
794
- },
795
- "by": {
796
- "type": "string"
801
+ "const": "header"
797
802
  },
798
- "target": {
799
- "type": "string"
800
- },
801
- "id": {
803
+ "text": {
802
804
  "type": "string"
803
- },
804
- "instant": {
805
- "type": "boolean"
806
805
  }
807
806
  },
808
807
  "required": [
809
- "type"
808
+ "type",
809
+ "text"
810
810
  ],
811
811
  "additionalProperties": false
812
812
  },
@@ -815,72 +815,395 @@
815
815
  "properties": {
816
816
  "type": {
817
817
  "type": "string",
818
- "const": "system"
818
+ "const": "section"
819
819
  },
820
- "from": {
821
- "type": "string"
822
- },
823
- "card": {
824
- "type": "string"
825
- },
826
- "actions": {
820
+ "spans": {
827
821
  "type": "array",
828
822
  "items": {
829
- "type": "object",
830
- "properties": {
831
- "label": {
832
- "type": "string"
823
+ "oneOf": [
824
+ {
825
+ "type": "object",
826
+ "properties": {
827
+ "type": {
828
+ "type": "string",
829
+ "const": "text"
830
+ },
831
+ "value": {
832
+ "type": "string"
833
+ }
834
+ },
835
+ "required": [
836
+ "type",
837
+ "value"
838
+ ],
839
+ "additionalProperties": false
833
840
  },
834
- "href": {
835
- "type": "string"
841
+ {
842
+ "type": "object",
843
+ "properties": {
844
+ "type": {
845
+ "type": "string",
846
+ "const": "code"
847
+ },
848
+ "value": {
849
+ "type": "string"
850
+ }
851
+ },
852
+ "required": [
853
+ "type",
854
+ "value"
855
+ ],
856
+ "additionalProperties": false
836
857
  },
837
- "variant": {
838
- "type": "string",
839
- "enum": [
840
- "primary",
841
- "secondary"
842
- ]
858
+ {
859
+ "type": "object",
860
+ "properties": {
861
+ "type": {
862
+ "type": "string",
863
+ "const": "bold"
864
+ },
865
+ "value": {
866
+ "type": "string"
867
+ }
868
+ },
869
+ "required": [
870
+ "type",
871
+ "value"
872
+ ],
873
+ "additionalProperties": false
874
+ },
875
+ {
876
+ "type": "object",
877
+ "properties": {
878
+ "type": {
879
+ "type": "string",
880
+ "const": "italic"
881
+ },
882
+ "value": {
883
+ "type": "string"
884
+ }
885
+ },
886
+ "required": [
887
+ "type",
888
+ "value"
889
+ ],
890
+ "additionalProperties": false
891
+ },
892
+ {
893
+ "type": "object",
894
+ "properties": {
895
+ "type": {
896
+ "type": "string",
897
+ "const": "strike"
898
+ },
899
+ "value": {
900
+ "type": "string"
901
+ }
902
+ },
903
+ "required": [
904
+ "type",
905
+ "value"
906
+ ],
907
+ "additionalProperties": false
908
+ },
909
+ {
910
+ "type": "object",
911
+ "properties": {
912
+ "type": {
913
+ "type": "string",
914
+ "const": "link"
915
+ },
916
+ "href": {
917
+ "type": "string"
918
+ },
919
+ "label": {
920
+ "type": "string"
921
+ }
922
+ },
923
+ "required": [
924
+ "type",
925
+ "href"
926
+ ],
927
+ "additionalProperties": false
928
+ },
929
+ {
930
+ "type": "object",
931
+ "properties": {
932
+ "type": {
933
+ "type": "string",
934
+ "const": "mention"
935
+ },
936
+ "label": {
937
+ "type": "string"
938
+ },
939
+ "id": {
940
+ "type": "string"
941
+ }
942
+ },
943
+ "required": [
944
+ "type",
945
+ "label"
946
+ ],
947
+ "additionalProperties": false
948
+ },
949
+ {
950
+ "type": "object",
951
+ "properties": {
952
+ "type": {
953
+ "type": "string",
954
+ "const": "emoji"
955
+ },
956
+ "value": {
957
+ "type": "string"
958
+ },
959
+ "shortcode": {
960
+ "type": "string"
961
+ }
962
+ },
963
+ "required": [
964
+ "type",
965
+ "value"
966
+ ],
967
+ "additionalProperties": false
843
968
  }
844
- },
845
- "required": [
846
- "label"
847
- ],
848
- "additionalProperties": false
969
+ ]
849
970
  }
850
971
  },
851
972
  "text": {
852
973
  "type": "string"
853
974
  },
854
- "images": {
975
+ "accessory": {
976
+ "oneOf": [
977
+ {
978
+ "type": "object",
979
+ "properties": {
980
+ "type": {
981
+ "type": "string",
982
+ "const": "button"
983
+ },
984
+ "label": {
985
+ "type": "string"
986
+ },
987
+ "href": {
988
+ "type": "string"
989
+ },
990
+ "style": {
991
+ "type": "string",
992
+ "enum": [
993
+ "primary",
994
+ "danger"
995
+ ]
996
+ }
997
+ },
998
+ "required": [
999
+ "type",
1000
+ "label"
1001
+ ],
1002
+ "additionalProperties": false
1003
+ },
1004
+ {
1005
+ "type": "object",
1006
+ "properties": {
1007
+ "type": {
1008
+ "type": "string",
1009
+ "const": "image"
1010
+ },
1011
+ "src": {
1012
+ "type": "string"
1013
+ },
1014
+ "alt": {
1015
+ "type": "string"
1016
+ }
1017
+ },
1018
+ "required": [
1019
+ "type",
1020
+ "src"
1021
+ ],
1022
+ "additionalProperties": false
1023
+ }
1024
+ ]
1025
+ },
1026
+ "fields": {
855
1027
  "type": "array",
856
1028
  "items": {
857
1029
  "type": "object",
858
1030
  "properties": {
859
- "src": {
860
- "type": "string"
1031
+ "spans": {
1032
+ "type": "array",
1033
+ "items": {
1034
+ "oneOf": [
1035
+ {
1036
+ "type": "object",
1037
+ "properties": {
1038
+ "type": {
1039
+ "type": "string",
1040
+ "const": "text"
1041
+ },
1042
+ "value": {
1043
+ "type": "string"
1044
+ }
1045
+ },
1046
+ "required": [
1047
+ "type",
1048
+ "value"
1049
+ ],
1050
+ "additionalProperties": false
1051
+ },
1052
+ {
1053
+ "type": "object",
1054
+ "properties": {
1055
+ "type": {
1056
+ "type": "string",
1057
+ "const": "code"
1058
+ },
1059
+ "value": {
1060
+ "type": "string"
1061
+ }
1062
+ },
1063
+ "required": [
1064
+ "type",
1065
+ "value"
1066
+ ],
1067
+ "additionalProperties": false
1068
+ },
1069
+ {
1070
+ "type": "object",
1071
+ "properties": {
1072
+ "type": {
1073
+ "type": "string",
1074
+ "const": "bold"
1075
+ },
1076
+ "value": {
1077
+ "type": "string"
1078
+ }
1079
+ },
1080
+ "required": [
1081
+ "type",
1082
+ "value"
1083
+ ],
1084
+ "additionalProperties": false
1085
+ },
1086
+ {
1087
+ "type": "object",
1088
+ "properties": {
1089
+ "type": {
1090
+ "type": "string",
1091
+ "const": "italic"
1092
+ },
1093
+ "value": {
1094
+ "type": "string"
1095
+ }
1096
+ },
1097
+ "required": [
1098
+ "type",
1099
+ "value"
1100
+ ],
1101
+ "additionalProperties": false
1102
+ },
1103
+ {
1104
+ "type": "object",
1105
+ "properties": {
1106
+ "type": {
1107
+ "type": "string",
1108
+ "const": "strike"
1109
+ },
1110
+ "value": {
1111
+ "type": "string"
1112
+ }
1113
+ },
1114
+ "required": [
1115
+ "type",
1116
+ "value"
1117
+ ],
1118
+ "additionalProperties": false
1119
+ },
1120
+ {
1121
+ "type": "object",
1122
+ "properties": {
1123
+ "type": {
1124
+ "type": "string",
1125
+ "const": "link"
1126
+ },
1127
+ "href": {
1128
+ "type": "string"
1129
+ },
1130
+ "label": {
1131
+ "type": "string"
1132
+ }
1133
+ },
1134
+ "required": [
1135
+ "type",
1136
+ "href"
1137
+ ],
1138
+ "additionalProperties": false
1139
+ },
1140
+ {
1141
+ "type": "object",
1142
+ "properties": {
1143
+ "type": {
1144
+ "type": "string",
1145
+ "const": "mention"
1146
+ },
1147
+ "label": {
1148
+ "type": "string"
1149
+ },
1150
+ "id": {
1151
+ "type": "string"
1152
+ }
1153
+ },
1154
+ "required": [
1155
+ "type",
1156
+ "label"
1157
+ ],
1158
+ "additionalProperties": false
1159
+ },
1160
+ {
1161
+ "type": "object",
1162
+ "properties": {
1163
+ "type": {
1164
+ "type": "string",
1165
+ "const": "emoji"
1166
+ },
1167
+ "value": {
1168
+ "type": "string"
1169
+ },
1170
+ "shortcode": {
1171
+ "type": "string"
1172
+ }
1173
+ },
1174
+ "required": [
1175
+ "type",
1176
+ "value"
1177
+ ],
1178
+ "additionalProperties": false
1179
+ }
1180
+ ]
1181
+ }
861
1182
  },
862
- "alt": {
1183
+ "text": {
863
1184
  "type": "string"
864
- },
865
- "width": {
866
- "type": "number",
867
- "exclusiveMinimum": 0
868
- },
869
- "height": {
870
- "type": "number",
871
- "exclusiveMinimum": 0
872
1185
  }
873
1186
  },
874
- "required": [
875
- "src"
876
- ],
877
1187
  "additionalProperties": false
878
1188
  }
1189
+ }
1190
+ },
1191
+ "required": [
1192
+ "type"
1193
+ ],
1194
+ "additionalProperties": false
1195
+ },
1196
+ {
1197
+ "type": "object",
1198
+ "properties": {
1199
+ "type": {
1200
+ "type": "string",
1201
+ "const": "context"
879
1202
  },
880
- "content": {
1203
+ "elements": {
881
1204
  "type": "array",
882
1205
  "items": {
883
- "anyOf": [
1206
+ "oneOf": [
884
1207
  {
885
1208
  "type": "object",
886
1209
  "properties": {
@@ -926,6 +1249,57 @@
926
1249
  ],
927
1250
  "additionalProperties": false
928
1251
  },
1252
+ {
1253
+ "type": "object",
1254
+ "properties": {
1255
+ "type": {
1256
+ "type": "string",
1257
+ "const": "bold"
1258
+ },
1259
+ "value": {
1260
+ "type": "string"
1261
+ }
1262
+ },
1263
+ "required": [
1264
+ "type",
1265
+ "value"
1266
+ ],
1267
+ "additionalProperties": false
1268
+ },
1269
+ {
1270
+ "type": "object",
1271
+ "properties": {
1272
+ "type": {
1273
+ "type": "string",
1274
+ "const": "italic"
1275
+ },
1276
+ "value": {
1277
+ "type": "string"
1278
+ }
1279
+ },
1280
+ "required": [
1281
+ "type",
1282
+ "value"
1283
+ ],
1284
+ "additionalProperties": false
1285
+ },
1286
+ {
1287
+ "type": "object",
1288
+ "properties": {
1289
+ "type": {
1290
+ "type": "string",
1291
+ "const": "strike"
1292
+ },
1293
+ "value": {
1294
+ "type": "string"
1295
+ }
1296
+ },
1297
+ "required": [
1298
+ "type",
1299
+ "value"
1300
+ ],
1301
+ "additionalProperties": false
1302
+ },
929
1303
  {
930
1304
  "type": "object",
931
1305
  "properties": {
@@ -988,11 +1362,13 @@
988
1362
  }
989
1363
  ]
990
1364
  }
1365
+ },
1366
+ "text": {
1367
+ "type": "string"
991
1368
  }
992
1369
  },
993
1370
  "required": [
994
- "type",
995
- "spans"
1371
+ "type"
996
1372
  ],
997
1373
  "additionalProperties": false
998
1374
  },
@@ -1008,14 +1384,6 @@
1008
1384
  },
1009
1385
  "alt": {
1010
1386
  "type": "string"
1011
- },
1012
- "width": {
1013
- "type": "number",
1014
- "exclusiveMinimum": 0
1015
- },
1016
- "height": {
1017
- "type": "number",
1018
- "exclusiveMinimum": 0
1019
1387
  }
1020
1388
  },
1021
1389
  "required": [
@@ -1023,31 +1391,91 @@
1023
1391
  "src"
1024
1392
  ],
1025
1393
  "additionalProperties": false
1026
- },
1027
- {
1028
- "type": "object",
1029
- "properties": {
1030
- "type": {
1031
- "type": "string"
1032
- }
1033
- },
1034
- "required": [
1035
- "type"
1036
- ],
1037
- "additionalProperties": {}
1038
1394
  }
1039
1395
  ]
1040
1396
  }
1397
+ }
1398
+ },
1399
+ "required": [
1400
+ "type",
1401
+ "elements"
1402
+ ],
1403
+ "additionalProperties": false
1404
+ },
1405
+ {
1406
+ "type": "object",
1407
+ "properties": {
1408
+ "type": {
1409
+ "type": "string",
1410
+ "const": "divider"
1411
+ }
1412
+ },
1413
+ "required": [
1414
+ "type"
1415
+ ],
1416
+ "additionalProperties": false
1417
+ },
1418
+ {
1419
+ "type": "object",
1420
+ "properties": {
1421
+ "type": {
1422
+ "type": "string",
1423
+ "const": "actions"
1041
1424
  },
1042
- "id": {
1425
+ "elements": {
1426
+ "type": "array",
1427
+ "items": {
1428
+ "type": "object",
1429
+ "properties": {
1430
+ "type": {
1431
+ "type": "string",
1432
+ "const": "button"
1433
+ },
1434
+ "label": {
1435
+ "type": "string"
1436
+ },
1437
+ "href": {
1438
+ "type": "string"
1439
+ },
1440
+ "style": {
1441
+ "type": "string",
1442
+ "enum": [
1443
+ "primary",
1444
+ "danger"
1445
+ ]
1446
+ }
1447
+ },
1448
+ "required": [
1449
+ "type",
1450
+ "label"
1451
+ ],
1452
+ "additionalProperties": false
1453
+ }
1454
+ }
1455
+ },
1456
+ "required": [
1457
+ "type",
1458
+ "elements"
1459
+ ],
1460
+ "additionalProperties": false
1461
+ },
1462
+ {
1463
+ "type": "object",
1464
+ "properties": {
1465
+ "type": {
1466
+ "type": "string",
1467
+ "const": "codeblock"
1468
+ },
1469
+ "text": {
1043
1470
  "type": "string"
1044
1471
  },
1045
- "instant": {
1046
- "type": "boolean"
1472
+ "lang": {
1473
+ "type": "string"
1047
1474
  }
1048
1475
  },
1049
1476
  "required": [
1050
- "type"
1477
+ "type",
1478
+ "text"
1051
1479
  ],
1052
1480
  "additionalProperties": false
1053
1481
  },
@@ -1056,35 +1484,35 @@
1056
1484
  "properties": {
1057
1485
  "type": {
1058
1486
  "type": "string",
1059
- "const": "delay"
1060
- },
1061
- "duration": {
1062
- "type": "number",
1063
- "minimum": 0
1487
+ "const": "attachment"
1064
1488
  },
1065
- "id": {
1489
+ "color": {
1066
1490
  "type": "string"
1067
1491
  },
1068
- "instant": {
1069
- "type": "boolean"
1492
+ "content": {
1493
+ "$ref": "#/definitions/__schema0"
1070
1494
  }
1071
1495
  },
1072
1496
  "required": [
1073
1497
  "type",
1074
- "duration"
1498
+ "content"
1075
1499
  ],
1076
1500
  "additionalProperties": false
1501
+ },
1502
+ {
1503
+ "type": "object",
1504
+ "properties": {
1505
+ "type": {
1506
+ "type": "string"
1507
+ }
1508
+ },
1509
+ "required": [
1510
+ "type"
1511
+ ],
1512
+ "additionalProperties": {}
1077
1513
  }
1078
1514
  ]
1079
1515
  }
1080
1516
  }
1081
- },
1082
- "required": [
1083
- "version",
1084
- "meta",
1085
- "participants",
1086
- "pacing",
1087
- "timeline"
1088
- ],
1089
- "additionalProperties": false
1517
+ }
1090
1518
  }