Repository navigation
Expand file tree
/
Copy pathproject.schema.json
More file actions
253 lines (253 loc) · 9.95 KB
/
Copy pathproject.schema.json
File metadata and controls
253 lines (253 loc) · 9.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://local.paper-collage.dev/project.schema.json",
"title": "Paper Collage Project v4",
"type": "object",
"required": ["schemaVersion", "slug", "title", "plan", "quality", "video", "theme", "voice", "audio", "scenes"],
"properties": {
"$schema": {"type": "string"},
"schemaVersion": {"const": 4},
"slug": {"type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"},
"title": {"type": "string", "minLength": 1},
"plan": {"$ref": "#/$defs/plan"},
"quality": {
"type": "object",
"required": ["minimumAssetScale"],
"properties": {"minimumAssetScale": {"type": "number", "exclusiveMinimum": 0}},
"additionalProperties": false
},
"video": {
"type": "object",
"required": ["width", "height", "fps"],
"properties": {
"width": {"type": "integer", "minimum": 1},
"height": {"type": "integer", "minimum": 1},
"fps": {"type": "number", "exclusiveMinimum": 0}
},
"additionalProperties": false
},
"theme": {"$ref": "#/$defs/theme"},
"voice": {"$ref": "#/$defs/voice"},
"audio": {"$ref": "#/$defs/audio"},
"scenes": {"type": "array", "items": {"$ref": "#/$defs/scene"}}
},
"$defs": {
"plan": {
"type": "object",
"required": ["schemaVersion", "slug", "status", "inputMode", "requested", "resolved", "updatedAt"],
"properties": {
"schemaVersion": {"const": 1},
"slug": {"type": "string"},
"status": {"enum": ["pending", "resolved"]},
"inputMode": {"enum": ["none", "duration-only", "scenes-only", "both"]},
"productionProfile": {"enum": ["draft", "balanced", "full-depth"]},
"assetBudget": {
"oneOf": [
{"type": "null"},
{
"type": "object",
"required": ["backgrounds", "environmentLayers", "characterSheets", "styleSamples", "maxGeneratedImages"],
"properties": {
"backgrounds": {"type": "integer", "minimum": 0},
"environmentLayers": {"type": "integer", "minimum": 0},
"characterSheets": {"type": "integer", "minimum": 0},
"styleSamples": {"type": "integer", "minimum": 0},
"maxGeneratedImages": {"type": "integer", "minimum": 0}
},
"additionalProperties": false
}
]
},
"requested": {
"type": "object",
"required": ["durationSeconds", "sceneCount"],
"properties": {
"durationSeconds": {"oneOf": [{"type": "null"}, {"type": "number", "exclusiveMinimum": 0}]},
"sceneCount": {"oneOf": [{"type": "null"}, {"type": "integer", "minimum": 1}]}
},
"additionalProperties": false
},
"resolved": {
"oneOf": [
{"type": "null"},
{
"type": "object",
"required": ["durationSeconds", "sceneCount", "estimatedNarrationSeconds", "rationale", "resolvedAt"],
"properties": {
"durationSeconds": {"type": "number", "exclusiveMinimum": 0},
"sceneCount": {"type": "integer", "minimum": 1},
"estimatedNarrationSeconds": {"oneOf": [{"type": "null"}, {"type": "number", "minimum": 0}]},
"rationale": {"type": "string", "minLength": 1},
"resolvedAt": {"type": "string", "format": "date-time"}
},
"additionalProperties": false
}
]
},
"updatedAt": {"type": "string", "format": "date-time"}
},
"additionalProperties": false
},
"theme": {
"type": "object",
"required": ["canvas", "sceneBackground", "accent", "ink", "subtitle", "subtitleBackground", "paperEdge", "foreground", "texture"],
"properties": {
"canvas": {"type": "string"},
"sceneBackground": {"type": "string"},
"accent": {"type": "string"},
"ink": {"type": "string"},
"subtitle": {"type": "string"},
"subtitleBackground": {"type": "string"},
"paperEdge": {"type": "string"},
"foreground": {"type": "string"},
"texture": {"type": "string"},
"fontFamily": {"type": "string"},
"fontFile": {"type": "string"}
},
"additionalProperties": false
},
"voice": {
"type": "object",
"required": ["mode"],
"properties": {
"mode": {"enum": ["fictional", "clone"]},
"provider": {"type": "string"},
"voiceId": {"type": "string"},
"profile": {"type": "string"},
"displayName": {"type": "string"},
"settings": {"type": "object", "additionalProperties": {"type": ["string", "number", "boolean"]}}
},
"additionalProperties": false
},
"sound": {
"type": "object",
"required": ["src", "volume"],
"properties": {
"src": {"type": "string", "minLength": 1},
"volume": {"type": "number", "minimum": 0, "maximum": 4}
},
"additionalProperties": false
},
"audio": {
"type": "object",
"required": ["narration", "music", "mastering"],
"properties": {
"narration": {
"type": "object",
"required": ["volume"],
"properties": {"volume": {"type": "number", "exclusiveMinimum": 0, "maximum": 4}},
"additionalProperties": false
},
"music": {"oneOf": [{"type": "null"}, {"$ref": "#/$defs/sound"}]},
"mastering": {
"type": "object",
"required": ["targetLufs", "toleranceLufs", "truePeakDbtp"],
"properties": {
"targetLufs": {"type": "number"},
"toleranceLufs": {"type": "number", "exclusiveMinimum": 0},
"truePeakDbtp": {"type": "number"}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"proofTime": {
"type": "object",
"required": ["id", "at", "label", "kind", "assertions"],
"properties": {
"id": {"type": "string", "minLength": 1},
"at": {"type": "number", "minimum": 0, "maximum": 1},
"label": {"type": "string", "minLength": 1},
"kind": {"enum": ["establish", "action", "peak", "final"]},
"assertions": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 1}}
},
"additionalProperties": false
},
"cue": {
"type": "object",
"required": ["id", "beatId", "at", "durationSeconds", "targetId", "action", "intensity"],
"properties": {
"id": {"type": "string", "minLength": 1},
"beatId": {"type": "string", "minLength": 1},
"at": {"type": "number", "minimum": 0, "maximum": 1},
"durationSeconds": {"type": "number", "exclusiveMinimum": 0},
"targetId": {"type": "string", "minLength": 1},
"action": {"$ref": "composition.schema.json#/$defs/cueAction"},
"intensity": {"type": "number", "minimum": 0, "maximum": 3},
"proofTimeId": {"type": "string", "minLength": 1},
"sound": {"$ref": "#/$defs/sound"}
},
"additionalProperties": false
},
"scene": {
"type": "object",
"required": ["id", "label", "eyebrow", "tailSeconds", "motion", "composition", "camera", "transition", "narration", "subtitles", "cues"],
"properties": {
"id": {"type": "string", "minLength": 1},
"label": {"type": "string"},
"eyebrow": {"type": "string"},
"tailSeconds": {"type": "number", "minimum": 0},
"motion": {
"type": "object",
"required": ["blueprint", "intensity", "seed", "proofTimes"],
"properties": {
"blueprint": {"enum": ["layered-reveal", "map-journey", "archive-stack", "character-procession", "discovery-wipe", "transformation-tableau", "chapter-tableau", "quiet-lockup"]},
"intensity": {"type": "number", "minimum": 0, "maximum": 3},
"seed": {"type": "integer"},
"proofTimes": {"type": "array", "minItems": 3, "items": {"$ref": "#/$defs/proofTime"}}
},
"additionalProperties": false
},
"composition": {"$ref": "composition.schema.json#/$defs/composition"},
"camera": {
"type": "object",
"required": ["preset", "intensity"],
"properties": {
"preset": {"enum": ["push", "pull", "pan-left", "pan-right", "static"]},
"intensity": {"type": "number", "minimum": 0, "maximum": 3},
"keyframes": {"type": "array", "minItems": 2, "items": {"type": "object"}}
},
"additionalProperties": false
},
"transition": {
"type": "object",
"required": ["type", "durationSeconds"],
"properties": {
"type": {"enum": ["fade", "none"]},
"durationSeconds": {"type": "number", "minimum": 0}
},
"additionalProperties": false
},
"narration": {
"type": "object",
"required": ["src", "startSeconds", "durationSeconds", "text"],
"properties": {
"src": {"type": "string", "minLength": 1},
"timingSrc": {"type": "string", "minLength": 1},
"startSeconds": {"type": "number", "minimum": 0},
"durationSeconds": {"type": "number", "exclusiveMinimum": 0},
"text": {"type": "string"}
},
"additionalProperties": false
},
"subtitles": {
"type": "array",
"items": {
"type": "object",
"required": ["fromSeconds", "toSeconds", "text"],
"properties": {
"fromSeconds": {"type": "number", "minimum": 0},
"toSeconds": {"type": "number", "exclusiveMinimum": 0},
"text": {"type": "string"}
},
"additionalProperties": false
}
},
"cues": {"type": "array", "minItems": 1, "items": {"$ref": "#/$defs/cue"}}
},
"additionalProperties": false
}
},
"additionalProperties": false
}