@rathnasgala2/schemas 2.16.0 → 2.18.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.
@@ -808,6 +808,71 @@
808
808
  "dependentRequired": { "seriesOrder": ["series"] },
809
809
  "$comment": "Timestamp ordering, canonical set ordering, route derivation, and route/redirect collision rules are enforced semantically."
810
810
  },
811
+ "contentBuildMediaFile": {
812
+ "type": "object",
813
+ "required": ["path", "sourceDigest", "mediaType", "byteLength"],
814
+ "properties": {
815
+ "path": { "$ref": "#/$defs/repoRelativePath" },
816
+ "sourceDigest": { "$ref": "#/$defs/digest" },
817
+ "mediaType": {
818
+ "enum": [
819
+ "image/png",
820
+ "image/jpeg",
821
+ "image/webp",
822
+ "image/avif",
823
+ "image/gif",
824
+ "audio/mpeg",
825
+ "audio/mp4",
826
+ "audio/ogg",
827
+ "audio/wav",
828
+ "video/mp4",
829
+ "video/webm"
830
+ ]
831
+ },
832
+ "byteLength": { "type": "integer", "minimum": 1 }
833
+ },
834
+ "additionalProperties": false,
835
+ "allOf": [
836
+ {
837
+ "if": {
838
+ "properties": {
839
+ "mediaType": {
840
+ "enum": [
841
+ "image/png",
842
+ "image/jpeg",
843
+ "image/webp",
844
+ "image/avif",
845
+ "image/gif"
846
+ ]
847
+ }
848
+ },
849
+ "required": ["mediaType"]
850
+ },
851
+ "then": { "properties": { "byteLength": { "maximum": 5242880 } } }
852
+ },
853
+ {
854
+ "if": {
855
+ "properties": {
856
+ "mediaType": {
857
+ "enum": ["audio/mpeg", "audio/mp4", "audio/ogg", "audio/wav"]
858
+ }
859
+ },
860
+ "required": ["mediaType"]
861
+ },
862
+ "then": { "properties": { "byteLength": { "maximum": 20971520 } } }
863
+ },
864
+ {
865
+ "if": {
866
+ "properties": {
867
+ "mediaType": { "enum": ["video/mp4", "video/webm"] }
868
+ },
869
+ "required": ["mediaType"]
870
+ },
871
+ "then": { "properties": { "byteLength": { "maximum": 52428800 } } }
872
+ }
873
+ ],
874
+ "$comment": "Per-mediaType byteLength bound: image 5 MiB, audio 20 MiB, video 50 MiB, matching the OpenAPI contract’s declared per-file media limits."
875
+ },
811
876
  "contentBuildRecord": {
812
877
  "type": "object",
813
878
  "required": [
@@ -835,6 +900,12 @@
835
900
  "items": { "$ref": "#/$defs/stableId" },
836
901
  "minItems": 1,
837
902
  "maxItems": 32
903
+ },
904
+ "media": {
905
+ "type": "array",
906
+ "items": { "$ref": "#/$defs/contentBuildMediaFile" },
907
+ "minItems": 0,
908
+ "maxItems": 200
838
909
  }
839
910
  },
840
911
  "additionalProperties": false
@@ -610,9 +610,16 @@
610
610
  "image/jpeg",
611
611
  "image/webp",
612
612
  "image/avif",
613
+ "image/gif",
613
614
  "image/svg+xml",
614
615
  "font/woff2",
615
- "application/octet-stream"
616
+ "application/octet-stream",
617
+ "audio/mpeg",
618
+ "audio/mp4",
619
+ "audio/ogg",
620
+ "audio/wav",
621
+ "video/mp4",
622
+ "video/webm"
616
623
  ]
617
624
  },
618
625
  "byteLength": { "$ref": "#/$defs/nonNegativeInt64" },
@@ -644,9 +651,16 @@
644
651
  "image/jpeg",
645
652
  "image/webp",
646
653
  "image/avif",
654
+ "image/gif",
647
655
  "image/svg+xml",
648
656
  "font/woff2",
649
- "application/octet-stream"
657
+ "application/octet-stream",
658
+ "audio/mpeg",
659
+ "audio/mp4",
660
+ "audio/ogg",
661
+ "audio/wav",
662
+ "video/mp4",
663
+ "video/webm"
650
664
  ]
651
665
  },
652
666
  "byteLength": { "$ref": "#/$defs/nonNegativeInt64" },