am.noz.atgallery.alpha.publishedMedia
Schema Diff
+32 -7
Compatibility Analysis
Breaking Changes Detected
2 breaking changes, 1 non-breaking change.
Breaking Changes (2)
- ConstraintTightened ConstraintTightened { vertex_id: "am.noz.atgallery.alpha.publishedMedia:body.mime", sort: "knownValues", old_value: "[\"image/jpeg\",\"image/png\",\"image/webp\",\"image/gif\",\"image/avif\",\"video/mp4\"]", new_value: "[\"image/avif\",\"image/gif\",\"image/jpeg\",\"image/png\",\"image/webp\",\"video/mp4\",\"audio/flac\",\"audio/mp4\",\"audio/mpeg\",\"audio/ogg\",\"audio/wav\",\"audio/webm\",\"application/pdf\",\"text/plain\",\"application/vnd.oasis.opendocument.text\",\"application/vnd.oasis.opendocument.spreadsheet\",\"application/vnd.oasis.opendocument.presentation\",\"application/vnd.oasis.opendocument.graphics\"]" }
- ConstraintTightened ConstraintTightened { vertex_id: "am.noz.atgallery.alpha.publishedMedia:body.mediaKind", sort: "knownValues", old_value: "[\"image\",\"video\"]", new_value: "[\"audio\",\"document\",\"image\",\"video\"]" }
Non-Breaking Changes (1)
- ConstraintRemoved ConstraintRemoved { vertex_id: "am.noz.atgallery.alpha.publishedMedia:body.durationMilliseconds", sort: "maximum" }
Migration Guidance
Constraint Changes
- ConstraintTightened ConstraintTightened { vertex_id: "am.noz.atgallery.alpha.publishedMedia:body.mediaKind", sort: "knownValues", old_value: "[\"image\",\"video\"]", new_value: "[\"audio\",\"document\",\"image\",\"video\"]" }
- ConstraintTightened ConstraintTightened { vertex_id: "am.noz.atgallery.alpha.publishedMedia:body.mime", sort: "knownValues", old_value: "[\"image/jpeg\",\"image/png\",\"image/webp\",\"image/gif\",\"image/avif\",\"video/mp4\"]", new_value: "[\"image/avif\",\"image/gif\",\"image/jpeg\",\"image/png\",\"image/webp\",\"video/mp4\",\"audio/flac\",\"audio/mp4\",\"audio/mpeg\",\"audio/ogg\",\"audio/wav\",\"audio/webm\",\"application/pdf\",\"text/plain\",\"application/vnd.oasis.opendocument.text\",\"application/vnd.oasis.opendocument.spreadsheet\",\"application/vnd.oasis.opendocument.presentation\",\"application/vnd.oasis.opendocument.graphics\"]" }
- ConstraintRemoved ConstraintRemoved { vertex_id: "am.noz.atgallery.alpha.publishedMedia:body.durationMilliseconds", sort: "maximum" }
1
1
{
2
2
"id": "am.noz.atgallery.alpha.publishedMedia",
3
3
"defs": {
4
4
"main": {
5
5
"key": "tid",
6
6
"type": "record",
7
7
"record": {
8
8
"type": "object",
9
9
"required": [
10
10
"formatVersion",
11
11
"mediaKind",
12
12
"rendition",
13
13
"mime",
14
14
"size",
15
15
"createdAt"
16
16
],
17
17
"properties": {
18
18
"mime": {
19
19
"type": "string",
20
20
"maxLength": 100,
21
21
"knownValues": [
22
+
"image/avif",
23
+
"image/gif",
22
24
"image/jpeg",
23
25
"image/png",
24
26
"image/webp",
25
-
"image/gif",
26
-
"image/avif",
27
-
"video/mp4"
27
+
"video/mp4",
28
+
"audio/flac",
29
+
"audio/mp4",
30
+
"audio/mpeg",
31
+
"audio/ogg",
32
+
"audio/wav",
33
+
"audio/webm",
34
+
"application/pdf",
35
+
"text/plain",
36
+
"application/vnd.oasis.opendocument.text",
37
+
"application/vnd.oasis.opendocument.spreadsheet",
38
+
"application/vnd.oasis.opendocument.presentation",
39
+
"application/vnd.oasis.opendocument.graphics"
28
40
]
29
41
},
30
42
"size": {
31
43
"type": "integer",
32
44
"maximum": 52428800,
33
45
"minimum": 1
34
46
},
35
47
"width": {
36
48
"type": "integer",
37
49
"minimum": 1
38
50
},
39
51
"height": {
40
52
"type": "integer",
41
53
"minimum": 1
42
54
},
43
55
"preview": {
44
56
"type": "blob",
45
57
"accept": [
46
58
"image/webp"
47
59
],
48
60
"maxSize": 1048576
49
61
},
50
62
"createdAt": {
51
63
"type": "string",
52
64
"format": "datetime"
53
65
},
54
66
"mediaKind": {
55
67
"type": "string",
56
68
"maxLength": 16,
57
69
"knownValues": [
70
+
"audio",
71
+
"document",
58
72
"image",
59
73
"video"
60
74
]
61
75
},
62
76
"rendition": {
63
77
"type": "blob",
64
78
"accept": [
79
+
"image/avif",
80
+
"image/gif",
65
81
"image/jpeg",
66
82
"image/png",
67
83
"image/webp",
68
-
"image/gif",
69
-
"image/avif",
70
-
"video/mp4"
84
+
"video/mp4",
85
+
"audio/flac",
86
+
"audio/mp4",
87
+
"audio/mpeg",
88
+
"audio/ogg",
89
+
"audio/wav",
90
+
"audio/webm",
91
+
"application/pdf",
92
+
"text/plain",
93
+
"application/vnd.oasis.opendocument.text",
94
+
"application/vnd.oasis.opendocument.spreadsheet",
95
+
"application/vnd.oasis.opendocument.presentation",
96
+
"application/vnd.oasis.opendocument.graphics"
71
97
],
72
98
"maxSize": 52428800
73
99
},
74
100
"decorative": {
75
101
"type": "boolean"
76
102
},
77
103
"formatVersion": {
78
104
"type": "integer",
79
105
"const": 1
80
106
},
81
107
"defaultAltText": {
82
108
"type": "string",
83
109
"maxGraphemes": 2000
84
110
},
85
111
"defaultCaption": {
86
112
"type": "string",
87
113
"maxGraphemes": 5000
88
114
},
89
115
"contentWarnings": {
90
116
"type": "array",
91
117
"items": {
92
118
"type": "string",
93
119
"maxLength": 200
94
120
},
95
121
"maxLength": 20
96
122
},
97
123
"durationMilliseconds": {
98
124
"type": "integer",
99
-
"maximum": 60000,
100
125
"minimum": 1
101
126
}
102
127
}
103
128
},
104
129
"description": "An immutable, public, metadata-allowlisted media rendition."
105
130
}
106
131
},
107
132
"$type": "com.atproto.lexicon.schema",
108
133
"lexicon": 1
109
134
}