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