@fifthbell/brokaw 0.1.65 → 0.1.66

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.
Files changed (44) hide show
  1. package/README.md +31 -5
  2. package/dist/cronkite-manifest.d.ts +80 -0
  3. package/dist/cronkite-manifest.js +124 -0
  4. package/dist/cronkite-manifest.json +139 -0
  5. package/dist/json-schema-formats.d.ts +2 -0
  6. package/dist/json-schema-formats.js +19 -0
  7. package/dist/layouts.d.ts +13 -0
  8. package/dist/layouts.js +12 -0
  9. package/dist/live-program-page/index.html +2 -2
  10. package/dist/live-program-page/live-program-manifest.json +4 -4
  11. package/dist/live-program-release.d.ts +3 -0
  12. package/dist/live-program-release.js +76 -0
  13. package/dist/manifest-validation.d.ts +10 -0
  14. package/dist/manifest-validation.js +27 -0
  15. package/dist/renderer.core.d.ts +2 -1
  16. package/dist/renderer.core.js +2 -1
  17. package/dist/renderer.d.ts +3 -0
  18. package/dist/renderer.js +2 -0
  19. package/dist/renderer.node.js +7 -12
  20. package/dist/schemas/canonical-document.schema.json +1071 -0
  21. package/dist/schemas/cronkite-manifest.schema.json +501 -0
  22. package/dist/schemas/feed-renderable-input.schema.json +16 -0
  23. package/dist/schemas/live-program-release-input.schema.json +34 -0
  24. package/dist/types/canonical-article.d.ts +8 -262
  25. package/dist/types/canonical-article.js +21 -245
  26. package/dist/types/canonical-document-schema.generated.d.ts +1634 -0
  27. package/dist/types/canonical-document-schema.generated.js +1730 -0
  28. package/dist/types/canonical-document.generated.d.ts +541 -0
  29. package/dist/types/canonical-document.generated.js +3 -0
  30. package/dist/types/cronkite-manifest.generated.d.ts +339 -0
  31. package/dist/types/cronkite-manifest.generated.js +3 -0
  32. package/dist/types/live-program-release-input.generated.d.ts +5 -0
  33. package/dist/types/live-program-release-input.generated.js +3 -0
  34. package/dist/video/Root.d.ts +1 -0
  35. package/dist/video/Root.js +40 -0
  36. package/dist/video/ShortVideo.d.ts +3 -0
  37. package/dist/video/ShortVideo.js +92 -0
  38. package/dist/video/index.d.ts +2 -0
  39. package/dist/video/index.js +4 -0
  40. package/dist/video/types.d.ts +37 -0
  41. package/dist/video/types.js +1 -0
  42. package/package.json +19 -4
  43. /package/dist/live-program-page/{live-program.v0.1.65.css → live-program.v0.1.66.css} +0 -0
  44. /package/dist/live-program-page/{live-program.v0.1.65.js → live-program.v0.1.66.js} +0 -0
@@ -0,0 +1,1071 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://cronkite.invalid/schemas/canonical-document-v1.schema.json",
4
+ "x-contract": "cronkite.canonical-document",
5
+ "x-contract-version": 1,
6
+ "oneOf": [
7
+ {
8
+ "type": "object",
9
+ "properties": {
10
+ "id": { "type": "string", "minLength": 1 },
11
+ "slug": { "type": "string", "minLength": 1 },
12
+ "canonicalUrl": { "type": "string", "minLength": 1 },
13
+ "contentVersion": {
14
+ "type": "string",
15
+ "format": "date-time",
16
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
17
+ },
18
+ "publishedAt": {
19
+ "type": "string",
20
+ "format": "date-time",
21
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
22
+ },
23
+ "updatedAt": {
24
+ "type": "string",
25
+ "format": "date-time",
26
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
27
+ },
28
+ "status": { "type": "string", "enum": ["draft", "published"] },
29
+ "title": { "type": "string" },
30
+ "dek": { "type": "string" },
31
+ "excerpt": { "type": "string" },
32
+ "language": {
33
+ "type": "string",
34
+ "pattern": "^(?:(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4}|[A-Za-z]{5,8})(?:-[A-Za-z]{4})?(?:-(?:[A-Za-z]{2}|[0-9]{3}))?(?:-(?:[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(?:-[0-9A-WY-Za-wy-z](?:-[A-Za-z0-9]{2,8})+)*(?:-x(?:-[A-Za-z0-9]{1,8})+)?|x(?:-[A-Za-z0-9]{1,8})+)$",
35
+ "title": "BCP 47 language tag",
36
+ "description": "An open language tag. The active renderer declares the allowed set for each request.",
37
+ "examples": ["en", "pt-BR", "zh-Hant-TW"]
38
+ },
39
+ "rumConfig": {
40
+ "type": "object",
41
+ "properties": {
42
+ "appMonitorId": { "type": "string", "minLength": 1 },
43
+ "applicationVersion": { "type": "string", "minLength": 1 },
44
+ "region": { "type": "string", "minLength": 1 },
45
+ "identityPoolId": { "type": "string", "minLength": 1 },
46
+ "guestRoleArn": { "type": "string", "minLength": 1 }
47
+ },
48
+ "required": [
49
+ "appMonitorId",
50
+ "applicationVersion",
51
+ "region",
52
+ "identityPoolId",
53
+ "guestRoleArn"
54
+ ]
55
+ },
56
+ "sofascore_id": {
57
+ "type": "integer",
58
+ "exclusiveMinimum": 0,
59
+ "maximum": 9007199254740991
60
+ },
61
+ "originalArticleId": { "type": "string" },
62
+ "updatedVersion": {
63
+ "type": "object",
64
+ "properties": {
65
+ "id": { "type": "string", "minLength": 1 },
66
+ "title": { "type": "string" },
67
+ "url": { "type": "string", "minLength": 1 }
68
+ },
69
+ "required": ["id", "title", "url"]
70
+ },
71
+ "featured": { "type": "boolean" },
72
+ "featuredImage": {
73
+ "type": "object",
74
+ "properties": {
75
+ "url": { "type": "string", "minLength": 1 },
76
+ "alt": { "type": "string" },
77
+ "caption": { "type": "string" }
78
+ },
79
+ "required": ["url", "alt"]
80
+ },
81
+ "media": {
82
+ "type": "array",
83
+ "items": {
84
+ "type": "object",
85
+ "properties": {
86
+ "url": { "type": "string", "minLength": 1 },
87
+ "alt": { "type": "string" },
88
+ "caption": { "type": "string" }
89
+ },
90
+ "required": ["url", "alt"]
91
+ }
92
+ },
93
+ "hero": {
94
+ "type": "object",
95
+ "properties": {
96
+ "url": { "type": "string", "minLength": 1 },
97
+ "alt": { "type": "string" }
98
+ },
99
+ "required": ["url", "alt"]
100
+ },
101
+ "body": {
102
+ "type": "array",
103
+ "items": {
104
+ "oneOf": [
105
+ {
106
+ "type": "object",
107
+ "properties": {
108
+ "type": { "type": "string", "const": "richText" },
109
+ "html": { "type": "string" }
110
+ },
111
+ "required": ["type", "html"]
112
+ },
113
+ {
114
+ "type": "object",
115
+ "properties": {
116
+ "type": { "type": "string", "const": "heading" },
117
+ "text": { "type": "string" },
118
+ "level": {
119
+ "anyOf": [
120
+ { "type": "number", "const": 2 },
121
+ { "type": "number", "const": 3 },
122
+ { "type": "number", "const": 4 }
123
+ ]
124
+ }
125
+ },
126
+ "required": ["type", "text"]
127
+ },
128
+ {
129
+ "type": "object",
130
+ "properties": {
131
+ "type": { "type": "string", "const": "image" },
132
+ "url": { "type": "string", "minLength": 1 },
133
+ "alt": { "type": "string" },
134
+ "caption": { "type": "string" }
135
+ },
136
+ "required": ["type", "url", "alt"]
137
+ },
138
+ {
139
+ "type": "object",
140
+ "properties": {
141
+ "type": { "type": "string", "const": "list" },
142
+ "ordered": { "type": "boolean" },
143
+ "items": {
144
+ "minItems": 1,
145
+ "type": "array",
146
+ "items": { "type": "string" }
147
+ }
148
+ },
149
+ "required": ["type", "items"]
150
+ },
151
+ {
152
+ "type": "object",
153
+ "properties": {
154
+ "type": { "type": "string", "const": "divider" }
155
+ },
156
+ "required": ["type"]
157
+ },
158
+ {
159
+ "type": "object",
160
+ "properties": {
161
+ "type": { "type": "string", "const": "infoBox" },
162
+ "title": { "type": "string" },
163
+ "tone": {
164
+ "type": "string",
165
+ "enum": ["neutral", "info", "warning", "success"]
166
+ },
167
+ "html": { "type": "string" }
168
+ },
169
+ "required": ["type", "html"]
170
+ },
171
+ {
172
+ "type": "object",
173
+ "properties": {
174
+ "type": { "type": "string", "const": "keyPoints" },
175
+ "title": { "type": "string" },
176
+ "points": {
177
+ "minItems": 1,
178
+ "type": "array",
179
+ "items": { "type": "string" }
180
+ }
181
+ },
182
+ "required": ["type", "points"]
183
+ },
184
+ {
185
+ "type": "object",
186
+ "properties": {
187
+ "type": { "type": "string", "const": "dataTable" },
188
+ "caption": { "type": "string" },
189
+ "headers": {
190
+ "minItems": 1,
191
+ "type": "array",
192
+ "items": { "type": "string" }
193
+ },
194
+ "rows": {
195
+ "minItems": 1,
196
+ "type": "array",
197
+ "items": { "type": "array", "items": { "type": "string" } }
198
+ }
199
+ },
200
+ "required": ["type", "headers", "rows"]
201
+ },
202
+ {
203
+ "type": "object",
204
+ "properties": {
205
+ "type": { "type": "string", "const": "liveUpdate" },
206
+ "timestamp": {
207
+ "type": "string",
208
+ "format": "date-time",
209
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
210
+ },
211
+ "headline": { "type": "string" },
212
+ "html": { "type": "string" },
213
+ "media": {
214
+ "type": "array",
215
+ "items": {
216
+ "type": "object",
217
+ "properties": {
218
+ "url": { "type": "string", "minLength": 1 },
219
+ "alt": { "type": "string" },
220
+ "caption": { "type": "string" }
221
+ },
222
+ "required": ["url", "alt"]
223
+ }
224
+ }
225
+ },
226
+ "required": ["type", "timestamp", "headline"]
227
+ },
228
+ {
229
+ "type": "object",
230
+ "properties": {
231
+ "type": { "type": "string", "const": "audio" },
232
+ "url": { "type": "string", "format": "uri" },
233
+ "title": { "type": "string" },
234
+ "caption": { "type": "string" }
235
+ },
236
+ "required": ["type", "url"]
237
+ },
238
+ {
239
+ "type": "object",
240
+ "properties": {
241
+ "type": { "type": "string", "const": "youtube" },
242
+ "videoId": { "type": "string", "minLength": 1 }
243
+ },
244
+ "required": ["type", "videoId"]
245
+ },
246
+ {
247
+ "type": "object",
248
+ "properties": {
249
+ "type": { "type": "string", "const": "x" },
250
+ "url": { "type": "string", "format": "uri" }
251
+ },
252
+ "required": ["type", "url"]
253
+ },
254
+ {
255
+ "type": "object",
256
+ "properties": {
257
+ "type": { "type": "string", "const": "instagram" },
258
+ "url": { "type": "string", "format": "uri" }
259
+ },
260
+ "required": ["type", "url"]
261
+ },
262
+ {
263
+ "type": "object",
264
+ "properties": {
265
+ "type": { "type": "string", "const": "tiktok" },
266
+ "url": { "type": "string", "format": "uri" }
267
+ },
268
+ "required": ["type", "url"]
269
+ },
270
+ {
271
+ "type": "object",
272
+ "properties": {
273
+ "type": { "type": "string", "const": "spotify" },
274
+ "url": { "type": "string", "format": "uri" }
275
+ },
276
+ "required": ["type", "url"]
277
+ },
278
+ {
279
+ "type": "object",
280
+ "properties": {
281
+ "type": { "type": "string", "const": "pullQuote" },
282
+ "text": { "type": "string" },
283
+ "attribution": { "type": "string" }
284
+ },
285
+ "required": ["type", "text"]
286
+ }
287
+ ]
288
+ }
289
+ },
290
+ "seo": {
291
+ "type": "object",
292
+ "properties": {
293
+ "metaTitle": { "type": "string" },
294
+ "metaDescription": { "type": "string" },
295
+ "ogImage": { "type": "string" }
296
+ }
297
+ },
298
+ "navigation": {
299
+ "type": "object",
300
+ "properties": {
301
+ "categories": {
302
+ "type": "array",
303
+ "items": {
304
+ "type": "object",
305
+ "properties": {
306
+ "name": { "type": "string", "minLength": 1 },
307
+ "slug": { "type": "string", "minLength": 1 }
308
+ },
309
+ "required": ["name", "slug"]
310
+ }
311
+ }
312
+ },
313
+ "required": ["categories"]
314
+ },
315
+ "articles": {
316
+ "type": "array",
317
+ "items": {
318
+ "type": "object",
319
+ "properties": {
320
+ "id": {
321
+ "type": "string",
322
+ "format": "uuid",
323
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
324
+ },
325
+ "url": { "type": "string", "minLength": 1 },
326
+ "title": { "type": "string" },
327
+ "excerpt": { "type": "string" },
328
+ "time": { "type": "string" },
329
+ "categories": {
330
+ "type": "array",
331
+ "items": {
332
+ "type": "object",
333
+ "properties": {
334
+ "name": { "type": "string", "minLength": 1 },
335
+ "slug": { "type": "string", "minLength": 1 }
336
+ },
337
+ "required": ["name", "slug"]
338
+ }
339
+ },
340
+ "hero": {
341
+ "type": "object",
342
+ "properties": {
343
+ "url": { "type": "string", "minLength": 1 },
344
+ "alt": { "type": "string" }
345
+ },
346
+ "required": ["url", "alt"]
347
+ },
348
+ "featuredImage": {
349
+ "type": "object",
350
+ "properties": {
351
+ "url": { "type": "string", "minLength": 1 },
352
+ "alt": { "type": "string" },
353
+ "caption": { "type": "string" }
354
+ },
355
+ "required": ["url", "alt"]
356
+ },
357
+ "updatedAt": {
358
+ "type": "string",
359
+ "format": "date-time",
360
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
361
+ },
362
+ "publishedAt": {
363
+ "type": "string",
364
+ "format": "date-time",
365
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
366
+ },
367
+ "featured": { "type": "boolean" }
368
+ },
369
+ "required": ["id", "url", "title"],
370
+ "additionalProperties": {}
371
+ }
372
+ },
373
+ "heroSlides": {
374
+ "type": "array",
375
+ "items": {
376
+ "type": "object",
377
+ "properties": {
378
+ "image": { "type": "string" },
379
+ "alt": { "type": "string" }
380
+ },
381
+ "required": ["image"]
382
+ }
383
+ },
384
+ "heroLayout": { "type": "string", "enum": ["spotlight", "editorial"] },
385
+ "heroCategories": {
386
+ "type": "array",
387
+ "items": {
388
+ "type": "object",
389
+ "properties": {
390
+ "name": { "type": "string", "minLength": 1 },
391
+ "slug": { "type": "string", "minLength": 1 }
392
+ },
393
+ "required": ["name", "slug"]
394
+ }
395
+ },
396
+ "showHero": { "type": "boolean" },
397
+ "showEditorialHero": { "type": "boolean" },
398
+ "breakingNews": {
399
+ "type": "object",
400
+ "properties": {
401
+ "displayClass": { "type": "string" },
402
+ "sidebarFeature": {
403
+ "type": "object",
404
+ "properties": {
405
+ "category": { "type": "string" },
406
+ "title": { "type": "string" },
407
+ "url": { "type": "string" },
408
+ "image": { "type": "string" },
409
+ "excerpt": { "type": "string" },
410
+ "publishedAt": {
411
+ "type": "string",
412
+ "format": "date-time",
413
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
414
+ }
415
+ },
416
+ "required": ["category", "title", "url", "image"]
417
+ },
418
+ "sidebarSub": {
419
+ "type": "object",
420
+ "properties": {
421
+ "category": { "type": "string" },
422
+ "title": { "type": "string" },
423
+ "url": { "type": "string" },
424
+ "image": { "type": "string" },
425
+ "alt": { "type": "string" },
426
+ "readTime": { "type": "string" },
427
+ "excerpt": { "type": "string" }
428
+ },
429
+ "required": ["category", "title", "url", "image"]
430
+ },
431
+ "main": {
432
+ "type": "object",
433
+ "properties": {
434
+ "category": { "type": "string" },
435
+ "title": { "type": "string" },
436
+ "url": { "type": "string" },
437
+ "liveUrl": { "type": "string" },
438
+ "sofascore_id": {
439
+ "type": "integer",
440
+ "exclusiveMinimum": 0,
441
+ "maximum": 9007199254740991
442
+ },
443
+ "image": { "type": "string" },
444
+ "alt": { "type": "string" },
445
+ "excerpt": { "type": "string" }
446
+ },
447
+ "required": ["category", "title", "url", "image"]
448
+ },
449
+ "updates": {
450
+ "type": "array",
451
+ "items": {
452
+ "type": "object",
453
+ "properties": {
454
+ "timestamp": {
455
+ "type": "string",
456
+ "format": "date-time",
457
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
458
+ },
459
+ "time": { "type": "string" },
460
+ "text": { "type": "string" },
461
+ "html": { "type": "string" }
462
+ }
463
+ }
464
+ },
465
+ "snacks": {
466
+ "type": "array",
467
+ "items": {
468
+ "type": "object",
469
+ "properties": {
470
+ "category": { "type": "string" },
471
+ "readTime": { "type": "string" },
472
+ "title": { "type": "string" },
473
+ "url": { "type": "string" },
474
+ "excerpt": { "type": "string" },
475
+ "image": { "type": "string" },
476
+ "alt": { "type": "string" }
477
+ },
478
+ "required": ["title", "url"]
479
+ }
480
+ }
481
+ }
482
+ },
483
+ "liveStory": {
484
+ "type": "object",
485
+ "properties": {
486
+ "lastUpdated": { "type": "string" },
487
+ "keyPoints": { "type": "array", "items": { "type": "string" } }
488
+ }
489
+ },
490
+ "layout": { "type": "string", "const": "article-page" },
491
+ "authors": {
492
+ "type": "array",
493
+ "items": {
494
+ "type": "object",
495
+ "properties": {
496
+ "name": { "type": "string", "minLength": 1 },
497
+ "slug": { "type": "string", "minLength": 1 }
498
+ },
499
+ "required": ["name", "slug"]
500
+ }
501
+ },
502
+ "categories": {
503
+ "type": "array",
504
+ "items": {
505
+ "type": "object",
506
+ "properties": {
507
+ "name": { "type": "string", "minLength": 1 },
508
+ "slug": { "type": "string", "minLength": 1 }
509
+ },
510
+ "required": ["name", "slug"]
511
+ }
512
+ }
513
+ },
514
+ "required": [
515
+ "id",
516
+ "slug",
517
+ "canonicalUrl",
518
+ "contentVersion",
519
+ "publishedAt",
520
+ "updatedAt",
521
+ "status",
522
+ "title",
523
+ "language",
524
+ "featured",
525
+ "body",
526
+ "layout",
527
+ "authors",
528
+ "categories"
529
+ ],
530
+ "additionalProperties": {}
531
+ },
532
+ {
533
+ "type": "object",
534
+ "properties": {
535
+ "id": { "type": "string", "minLength": 1 },
536
+ "slug": { "type": "string", "minLength": 1 },
537
+ "canonicalUrl": { "type": "string", "minLength": 1 },
538
+ "contentVersion": {
539
+ "type": "string",
540
+ "format": "date-time",
541
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
542
+ },
543
+ "publishedAt": {
544
+ "type": "string",
545
+ "format": "date-time",
546
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
547
+ },
548
+ "updatedAt": {
549
+ "type": "string",
550
+ "format": "date-time",
551
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
552
+ },
553
+ "status": { "type": "string", "enum": ["draft", "published"] },
554
+ "title": { "type": "string" },
555
+ "dek": { "type": "string" },
556
+ "excerpt": { "type": "string" },
557
+ "language": {
558
+ "type": "string",
559
+ "pattern": "^(?:(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4}|[A-Za-z]{5,8})(?:-[A-Za-z]{4})?(?:-(?:[A-Za-z]{2}|[0-9]{3}))?(?:-(?:[A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(?:-[0-9A-WY-Za-wy-z](?:-[A-Za-z0-9]{2,8})+)*(?:-x(?:-[A-Za-z0-9]{1,8})+)?|x(?:-[A-Za-z0-9]{1,8})+)$",
560
+ "title": "BCP 47 language tag",
561
+ "description": "An open language tag. The active renderer declares the allowed set for each request.",
562
+ "examples": ["en", "pt-BR", "zh-Hant-TW"]
563
+ },
564
+ "rumConfig": {
565
+ "type": "object",
566
+ "properties": {
567
+ "appMonitorId": { "type": "string", "minLength": 1 },
568
+ "applicationVersion": { "type": "string", "minLength": 1 },
569
+ "region": { "type": "string", "minLength": 1 },
570
+ "identityPoolId": { "type": "string", "minLength": 1 },
571
+ "guestRoleArn": { "type": "string", "minLength": 1 }
572
+ },
573
+ "required": [
574
+ "appMonitorId",
575
+ "applicationVersion",
576
+ "region",
577
+ "identityPoolId",
578
+ "guestRoleArn"
579
+ ]
580
+ },
581
+ "sofascore_id": {
582
+ "type": "integer",
583
+ "exclusiveMinimum": 0,
584
+ "maximum": 9007199254740991
585
+ },
586
+ "originalArticleId": { "type": "string" },
587
+ "updatedVersion": {
588
+ "type": "object",
589
+ "properties": {
590
+ "id": { "type": "string", "minLength": 1 },
591
+ "title": { "type": "string" },
592
+ "url": { "type": "string", "minLength": 1 }
593
+ },
594
+ "required": ["id", "title", "url"]
595
+ },
596
+ "featured": { "type": "boolean" },
597
+ "featuredImage": {
598
+ "type": "object",
599
+ "properties": {
600
+ "url": { "type": "string", "minLength": 1 },
601
+ "alt": { "type": "string" },
602
+ "caption": { "type": "string" }
603
+ },
604
+ "required": ["url", "alt"]
605
+ },
606
+ "media": {
607
+ "type": "array",
608
+ "items": {
609
+ "type": "object",
610
+ "properties": {
611
+ "url": { "type": "string", "minLength": 1 },
612
+ "alt": { "type": "string" },
613
+ "caption": { "type": "string" }
614
+ },
615
+ "required": ["url", "alt"]
616
+ }
617
+ },
618
+ "hero": {
619
+ "type": "object",
620
+ "properties": {
621
+ "url": { "type": "string", "minLength": 1 },
622
+ "alt": { "type": "string" }
623
+ },
624
+ "required": ["url", "alt"]
625
+ },
626
+ "body": {
627
+ "type": "array",
628
+ "items": {
629
+ "oneOf": [
630
+ {
631
+ "type": "object",
632
+ "properties": {
633
+ "type": { "type": "string", "const": "richText" },
634
+ "html": { "type": "string" }
635
+ },
636
+ "required": ["type", "html"]
637
+ },
638
+ {
639
+ "type": "object",
640
+ "properties": {
641
+ "type": { "type": "string", "const": "heading" },
642
+ "text": { "type": "string" },
643
+ "level": {
644
+ "anyOf": [
645
+ { "type": "number", "const": 2 },
646
+ { "type": "number", "const": 3 },
647
+ { "type": "number", "const": 4 }
648
+ ]
649
+ }
650
+ },
651
+ "required": ["type", "text"]
652
+ },
653
+ {
654
+ "type": "object",
655
+ "properties": {
656
+ "type": { "type": "string", "const": "image" },
657
+ "url": { "type": "string", "minLength": 1 },
658
+ "alt": { "type": "string" },
659
+ "caption": { "type": "string" }
660
+ },
661
+ "required": ["type", "url", "alt"]
662
+ },
663
+ {
664
+ "type": "object",
665
+ "properties": {
666
+ "type": { "type": "string", "const": "list" },
667
+ "ordered": { "type": "boolean" },
668
+ "items": {
669
+ "minItems": 1,
670
+ "type": "array",
671
+ "items": { "type": "string" }
672
+ }
673
+ },
674
+ "required": ["type", "items"]
675
+ },
676
+ {
677
+ "type": "object",
678
+ "properties": {
679
+ "type": { "type": "string", "const": "divider" }
680
+ },
681
+ "required": ["type"]
682
+ },
683
+ {
684
+ "type": "object",
685
+ "properties": {
686
+ "type": { "type": "string", "const": "infoBox" },
687
+ "title": { "type": "string" },
688
+ "tone": {
689
+ "type": "string",
690
+ "enum": ["neutral", "info", "warning", "success"]
691
+ },
692
+ "html": { "type": "string" }
693
+ },
694
+ "required": ["type", "html"]
695
+ },
696
+ {
697
+ "type": "object",
698
+ "properties": {
699
+ "type": { "type": "string", "const": "keyPoints" },
700
+ "title": { "type": "string" },
701
+ "points": {
702
+ "minItems": 1,
703
+ "type": "array",
704
+ "items": { "type": "string" }
705
+ }
706
+ },
707
+ "required": ["type", "points"]
708
+ },
709
+ {
710
+ "type": "object",
711
+ "properties": {
712
+ "type": { "type": "string", "const": "dataTable" },
713
+ "caption": { "type": "string" },
714
+ "headers": {
715
+ "minItems": 1,
716
+ "type": "array",
717
+ "items": { "type": "string" }
718
+ },
719
+ "rows": {
720
+ "minItems": 1,
721
+ "type": "array",
722
+ "items": { "type": "array", "items": { "type": "string" } }
723
+ }
724
+ },
725
+ "required": ["type", "headers", "rows"]
726
+ },
727
+ {
728
+ "type": "object",
729
+ "properties": {
730
+ "type": { "type": "string", "const": "liveUpdate" },
731
+ "timestamp": {
732
+ "type": "string",
733
+ "format": "date-time",
734
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
735
+ },
736
+ "headline": { "type": "string" },
737
+ "html": { "type": "string" },
738
+ "media": {
739
+ "type": "array",
740
+ "items": {
741
+ "type": "object",
742
+ "properties": {
743
+ "url": { "type": "string", "minLength": 1 },
744
+ "alt": { "type": "string" },
745
+ "caption": { "type": "string" }
746
+ },
747
+ "required": ["url", "alt"]
748
+ }
749
+ }
750
+ },
751
+ "required": ["type", "timestamp", "headline"]
752
+ },
753
+ {
754
+ "type": "object",
755
+ "properties": {
756
+ "type": { "type": "string", "const": "audio" },
757
+ "url": { "type": "string", "format": "uri" },
758
+ "title": { "type": "string" },
759
+ "caption": { "type": "string" }
760
+ },
761
+ "required": ["type", "url"]
762
+ },
763
+ {
764
+ "type": "object",
765
+ "properties": {
766
+ "type": { "type": "string", "const": "youtube" },
767
+ "videoId": { "type": "string", "minLength": 1 }
768
+ },
769
+ "required": ["type", "videoId"]
770
+ },
771
+ {
772
+ "type": "object",
773
+ "properties": {
774
+ "type": { "type": "string", "const": "x" },
775
+ "url": { "type": "string", "format": "uri" }
776
+ },
777
+ "required": ["type", "url"]
778
+ },
779
+ {
780
+ "type": "object",
781
+ "properties": {
782
+ "type": { "type": "string", "const": "instagram" },
783
+ "url": { "type": "string", "format": "uri" }
784
+ },
785
+ "required": ["type", "url"]
786
+ },
787
+ {
788
+ "type": "object",
789
+ "properties": {
790
+ "type": { "type": "string", "const": "tiktok" },
791
+ "url": { "type": "string", "format": "uri" }
792
+ },
793
+ "required": ["type", "url"]
794
+ },
795
+ {
796
+ "type": "object",
797
+ "properties": {
798
+ "type": { "type": "string", "const": "spotify" },
799
+ "url": { "type": "string", "format": "uri" }
800
+ },
801
+ "required": ["type", "url"]
802
+ },
803
+ {
804
+ "type": "object",
805
+ "properties": {
806
+ "type": { "type": "string", "const": "pullQuote" },
807
+ "text": { "type": "string" },
808
+ "attribution": { "type": "string" }
809
+ },
810
+ "required": ["type", "text"]
811
+ }
812
+ ]
813
+ }
814
+ },
815
+ "seo": {
816
+ "type": "object",
817
+ "properties": {
818
+ "metaTitle": { "type": "string" },
819
+ "metaDescription": { "type": "string" },
820
+ "ogImage": { "type": "string" }
821
+ }
822
+ },
823
+ "navigation": {
824
+ "type": "object",
825
+ "properties": {
826
+ "categories": {
827
+ "type": "array",
828
+ "items": {
829
+ "type": "object",
830
+ "properties": {
831
+ "name": { "type": "string", "minLength": 1 },
832
+ "slug": { "type": "string", "minLength": 1 }
833
+ },
834
+ "required": ["name", "slug"]
835
+ }
836
+ }
837
+ },
838
+ "required": ["categories"]
839
+ },
840
+ "articles": {
841
+ "type": "array",
842
+ "items": {
843
+ "type": "object",
844
+ "properties": {
845
+ "id": {
846
+ "type": "string",
847
+ "format": "uuid",
848
+ "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
849
+ },
850
+ "url": { "type": "string", "minLength": 1 },
851
+ "title": { "type": "string" },
852
+ "excerpt": { "type": "string" },
853
+ "time": { "type": "string" },
854
+ "categories": {
855
+ "type": "array",
856
+ "items": {
857
+ "type": "object",
858
+ "properties": {
859
+ "name": { "type": "string", "minLength": 1 },
860
+ "slug": { "type": "string", "minLength": 1 }
861
+ },
862
+ "required": ["name", "slug"]
863
+ }
864
+ },
865
+ "hero": {
866
+ "type": "object",
867
+ "properties": {
868
+ "url": { "type": "string", "minLength": 1 },
869
+ "alt": { "type": "string" }
870
+ },
871
+ "required": ["url", "alt"]
872
+ },
873
+ "featuredImage": {
874
+ "type": "object",
875
+ "properties": {
876
+ "url": { "type": "string", "minLength": 1 },
877
+ "alt": { "type": "string" },
878
+ "caption": { "type": "string" }
879
+ },
880
+ "required": ["url", "alt"]
881
+ },
882
+ "updatedAt": {
883
+ "type": "string",
884
+ "format": "date-time",
885
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
886
+ },
887
+ "publishedAt": {
888
+ "type": "string",
889
+ "format": "date-time",
890
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
891
+ },
892
+ "featured": { "type": "boolean" }
893
+ },
894
+ "required": ["id", "url", "title"],
895
+ "additionalProperties": {}
896
+ }
897
+ },
898
+ "heroSlides": {
899
+ "type": "array",
900
+ "items": {
901
+ "type": "object",
902
+ "properties": {
903
+ "image": { "type": "string" },
904
+ "alt": { "type": "string" }
905
+ },
906
+ "required": ["image"]
907
+ }
908
+ },
909
+ "heroLayout": { "type": "string", "enum": ["spotlight", "editorial"] },
910
+ "heroCategories": {
911
+ "type": "array",
912
+ "items": {
913
+ "type": "object",
914
+ "properties": {
915
+ "name": { "type": "string", "minLength": 1 },
916
+ "slug": { "type": "string", "minLength": 1 }
917
+ },
918
+ "required": ["name", "slug"]
919
+ }
920
+ },
921
+ "showHero": { "type": "boolean" },
922
+ "showEditorialHero": { "type": "boolean" },
923
+ "breakingNews": {
924
+ "type": "object",
925
+ "properties": {
926
+ "displayClass": { "type": "string" },
927
+ "sidebarFeature": {
928
+ "type": "object",
929
+ "properties": {
930
+ "category": { "type": "string" },
931
+ "title": { "type": "string" },
932
+ "url": { "type": "string" },
933
+ "image": { "type": "string" },
934
+ "excerpt": { "type": "string" },
935
+ "publishedAt": {
936
+ "type": "string",
937
+ "format": "date-time",
938
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
939
+ }
940
+ },
941
+ "required": ["category", "title", "url", "image"]
942
+ },
943
+ "sidebarSub": {
944
+ "type": "object",
945
+ "properties": {
946
+ "category": { "type": "string" },
947
+ "title": { "type": "string" },
948
+ "url": { "type": "string" },
949
+ "image": { "type": "string" },
950
+ "alt": { "type": "string" },
951
+ "readTime": { "type": "string" },
952
+ "excerpt": { "type": "string" }
953
+ },
954
+ "required": ["category", "title", "url", "image"]
955
+ },
956
+ "main": {
957
+ "type": "object",
958
+ "properties": {
959
+ "category": { "type": "string" },
960
+ "title": { "type": "string" },
961
+ "url": { "type": "string" },
962
+ "liveUrl": { "type": "string" },
963
+ "sofascore_id": {
964
+ "type": "integer",
965
+ "exclusiveMinimum": 0,
966
+ "maximum": 9007199254740991
967
+ },
968
+ "image": { "type": "string" },
969
+ "alt": { "type": "string" },
970
+ "excerpt": { "type": "string" }
971
+ },
972
+ "required": ["category", "title", "url", "image"]
973
+ },
974
+ "updates": {
975
+ "type": "array",
976
+ "items": {
977
+ "type": "object",
978
+ "properties": {
979
+ "timestamp": {
980
+ "type": "string",
981
+ "format": "date-time",
982
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
983
+ },
984
+ "time": { "type": "string" },
985
+ "text": { "type": "string" },
986
+ "html": { "type": "string" }
987
+ }
988
+ }
989
+ },
990
+ "snacks": {
991
+ "type": "array",
992
+ "items": {
993
+ "type": "object",
994
+ "properties": {
995
+ "category": { "type": "string" },
996
+ "readTime": { "type": "string" },
997
+ "title": { "type": "string" },
998
+ "url": { "type": "string" },
999
+ "excerpt": { "type": "string" },
1000
+ "image": { "type": "string" },
1001
+ "alt": { "type": "string" }
1002
+ },
1003
+ "required": ["title", "url"]
1004
+ }
1005
+ }
1006
+ }
1007
+ },
1008
+ "liveStory": {
1009
+ "type": "object",
1010
+ "properties": {
1011
+ "lastUpdated": { "type": "string" },
1012
+ "keyPoints": { "type": "array", "items": { "type": "string" } }
1013
+ }
1014
+ },
1015
+ "layout": {
1016
+ "type": "string",
1017
+ "enum": [
1018
+ "homepage",
1019
+ "category-page",
1020
+ "search-page",
1021
+ "404",
1022
+ "coming-soon",
1023
+ "live-story",
1024
+ "link-in-bio",
1025
+ "media-page",
1026
+ "standalone-page"
1027
+ ]
1028
+ },
1029
+ "authors": {
1030
+ "type": "array",
1031
+ "items": {
1032
+ "type": "object",
1033
+ "properties": {
1034
+ "name": { "type": "string", "minLength": 1 },
1035
+ "slug": { "type": "string", "minLength": 1 }
1036
+ },
1037
+ "required": ["name", "slug"]
1038
+ }
1039
+ },
1040
+ "categories": {
1041
+ "type": "array",
1042
+ "items": {
1043
+ "type": "object",
1044
+ "properties": {
1045
+ "name": { "type": "string", "minLength": 1 },
1046
+ "slug": { "type": "string", "minLength": 1 }
1047
+ },
1048
+ "required": ["name", "slug"]
1049
+ }
1050
+ }
1051
+ },
1052
+ "required": [
1053
+ "id",
1054
+ "slug",
1055
+ "canonicalUrl",
1056
+ "contentVersion",
1057
+ "publishedAt",
1058
+ "updatedAt",
1059
+ "status",
1060
+ "title",
1061
+ "language",
1062
+ "featured",
1063
+ "body",
1064
+ "layout"
1065
+ ],
1066
+ "additionalProperties": {}
1067
+ }
1068
+ ],
1069
+ "title": "Cronkite canonical document",
1070
+ "description": "Version 1 of the provider-neutral canonical document contract accepted by Cronkite."
1071
+ }