@openpresentation/opf 0.12.2 → 0.14.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.
Files changed (416) hide show
  1. package/README.md +28 -23
  2. package/dist/{catalogs-BnI7JKcn.d.ts → catalogs-D-yyQWCQ.d.ts} +86 -208
  3. package/dist/catalogs.d.ts +2 -2
  4. package/dist/catalogs.js +1 -1
  5. package/dist/chart-data-B_3z9VTb.d.ts +188 -0
  6. package/dist/chunk-4LDGKLUC.js +192 -0
  7. package/dist/{chunk-V2537ENL.js → chunk-4VJDTF55.js} +2 -90
  8. package/dist/chunk-5ZU6JAPP.js +83 -0
  9. package/dist/{chunk-HOBSL7AJ.js → chunk-6OXY2CP3.js} +3604 -1644
  10. package/dist/{chunk-RUC7L5DJ.js → chunk-BFLVSVA7.js} +26 -26
  11. package/dist/chunk-CSQHPVGL.js +94 -0
  12. package/dist/{chunk-GJKJL4YY.js → chunk-D3TY4TT6.js} +34 -412
  13. package/dist/chunk-JDJBDYSR.js +4167 -0
  14. package/dist/{chunk-4LAM3N6S.js → chunk-LS2FMPI5.js} +1497 -1097
  15. package/dist/{chunk-SOSOBKQ2.js → chunk-Q2TCMN56.js} +6 -7
  16. package/dist/chunk-UPQQD7MA.js +1840 -0
  17. package/dist/{chunk-AUM5MXBR.js → chunk-XIZUK2XM.js} +36 -32
  18. package/dist/{chunk-E34DJ5LL.js → chunk-XOZ4KMSR.js} +2427 -10820
  19. package/dist/chunk-Z65B2B77.js +601 -0
  20. package/dist/{composition-DWbCiMwF.d.ts → composition-_WEwBe2a.d.ts} +744 -26
  21. package/dist/composition.d.ts +2 -1
  22. package/dist/composition.js +2 -2
  23. package/dist/convert.d.ts +9 -4
  24. package/dist/convert.js +57 -26
  25. package/dist/data.d.ts +5 -4
  26. package/dist/data.js +3 -1
  27. package/dist/diff.d.ts +5 -5
  28. package/dist/diff.js +6 -603
  29. package/dist/docs.js +70 -52
  30. package/dist/examples.d.ts +1 -1
  31. package/dist/examples.js +1466 -2963
  32. package/dist/finding-C_por275.d.ts +212 -0
  33. package/dist/format.d.ts +4 -4
  34. package/dist/format.js +2 -83
  35. package/dist/index.d.ts +318 -281
  36. package/dist/index.js +530 -943
  37. package/dist/markdown.d.ts +28 -25
  38. package/dist/markdown.js +8 -1940
  39. package/dist/pagination-BZpXLvFL.d.ts +119 -0
  40. package/dist/pagination.d.ts +5 -60
  41. package/dist/pagination.js +5 -5
  42. package/dist/patch.d.ts +12 -23
  43. package/dist/patch.js +5 -5
  44. package/dist/{presentation-DcF-MZcz.d.ts → presentation-C5eHkevA.d.ts} +516 -499
  45. package/dist/repo-readme.js +1 -1
  46. package/dist/{schemas-BSjlG8-R.d.ts → schemas-DDpqAgyS.d.ts} +49 -17
  47. package/dist/schemas.d.ts +1 -1
  48. package/dist/schemas.js +1 -1
  49. package/dist/spec/README.md +10 -5
  50. package/dist/spec/catalogs/audiences/index.json +2 -50
  51. package/dist/spec/catalogs/chart-types/100pct-stacked-area.json +21 -0
  52. package/dist/spec/catalogs/chart-types/100pct-stacked-bar.json +22 -0
  53. package/dist/spec/catalogs/chart-types/100pct-stacked-column.json +22 -0
  54. package/dist/spec/catalogs/chart-types/area.json +2 -60
  55. package/dist/spec/catalogs/chart-types/bar.json +2 -48
  56. package/dist/spec/catalogs/chart-types/box-and-whisker.json +2 -132
  57. package/dist/spec/catalogs/chart-types/column.json +2 -52
  58. package/dist/spec/catalogs/chart-types/combo.json +37 -0
  59. package/dist/spec/catalogs/chart-types/doughnut.json +2 -40
  60. package/dist/spec/catalogs/chart-types/filled-radar.json +2 -52
  61. package/dist/spec/catalogs/chart-types/funnel.json +2 -46
  62. package/dist/spec/catalogs/chart-types/histogram.json +2 -149
  63. package/dist/spec/catalogs/chart-types/index.json +50 -520
  64. package/dist/spec/catalogs/chart-types/line-with-markers.json +2 -60
  65. package/dist/spec/catalogs/chart-types/line.json +2 -60
  66. package/dist/spec/catalogs/chart-types/pareto.json +2 -50
  67. package/dist/spec/catalogs/chart-types/pie.json +2 -40
  68. package/dist/spec/catalogs/chart-types/radar-with-markers.json +2 -52
  69. package/dist/spec/catalogs/chart-types/radar.json +2 -52
  70. package/dist/spec/catalogs/chart-types/scatter.json +2 -73
  71. package/dist/spec/catalogs/chart-types/stacked-area.json +21 -0
  72. package/dist/spec/catalogs/chart-types/stacked-bar.json +22 -0
  73. package/dist/spec/catalogs/chart-types/stacked-column.json +22 -0
  74. package/dist/spec/catalogs/chart-types/stacked-line-with-markers.json +22 -0
  75. package/dist/spec/catalogs/chart-types/stacked-line.json +21 -0
  76. package/dist/spec/catalogs/chart-types/treemap.json +2 -48
  77. package/dist/spec/catalogs/chart-types/waterfall.json +2 -52
  78. package/dist/spec/catalogs/chart-types/world.json +2 -64
  79. package/dist/spec/catalogs/font-schemes/angsana-new.json +2 -2
  80. package/dist/spec/catalogs/font-schemes/aparajita.json +3 -3
  81. package/dist/spec/catalogs/font-schemes/aptos.json +1 -1
  82. package/dist/spec/catalogs/font-schemes/arabic-typesetting.json +2 -2
  83. package/dist/spec/catalogs/font-schemes/arial.json +1 -1
  84. package/dist/spec/catalogs/font-schemes/batang.json +2 -2
  85. package/dist/spec/catalogs/font-schemes/bookman.json +1 -1
  86. package/dist/spec/catalogs/font-schemes/calibri.json +1 -1
  87. package/dist/spec/catalogs/font-schemes/century-schoolbook.json +1 -1
  88. package/dist/spec/catalogs/font-schemes/consolas.json +2 -4
  89. package/dist/spec/catalogs/font-schemes/constantia.json +1 -1
  90. package/dist/spec/catalogs/font-schemes/courier-new.json +2 -4
  91. package/dist/spec/catalogs/font-schemes/daunpenh.json +2 -2
  92. package/dist/spec/catalogs/font-schemes/david.json +2 -2
  93. package/dist/spec/catalogs/font-schemes/dilleniaupc.json +2 -2
  94. package/dist/spec/catalogs/font-schemes/fangsong.json +2 -2
  95. package/dist/spec/catalogs/font-schemes/garamond.json +1 -1
  96. package/dist/spec/catalogs/font-schemes/gautami.json +2 -2
  97. package/dist/spec/catalogs/font-schemes/georgia.json +1 -1
  98. package/dist/spec/catalogs/font-schemes/gisha.json +3 -3
  99. package/dist/spec/catalogs/font-schemes/grandview.json +1 -1
  100. package/dist/spec/catalogs/font-schemes/gungsuh.json +2 -2
  101. package/dist/spec/catalogs/font-schemes/impact.json +1 -1
  102. package/dist/spec/catalogs/font-schemes/index.json +1 -1
  103. package/dist/spec/catalogs/font-schemes/kalinga.json +2 -2
  104. package/dist/spec/catalogs/font-schemes/kartika.json +2 -2
  105. package/dist/spec/catalogs/font-schemes/khmer-ui.json +2 -2
  106. package/dist/spec/catalogs/font-schemes/latha.json +2 -2
  107. package/dist/spec/catalogs/font-schemes/lucida-sans.json +1 -1
  108. package/dist/spec/catalogs/font-schemes/malgun-gothic.json +2 -2
  109. package/dist/spec/catalogs/font-schemes/mangal.json +4 -5
  110. package/dist/spec/catalogs/font-schemes/meiryo.json +2 -2
  111. package/dist/spec/catalogs/font-schemes/microsoft-jhenghei.json +2 -2
  112. package/dist/spec/catalogs/font-schemes/microsoft-yahei.json +5 -5
  113. package/dist/spec/catalogs/font-schemes/mingliu.json +2 -2
  114. package/dist/spec/catalogs/font-schemes/miriam.json +2 -2
  115. package/dist/spec/catalogs/font-schemes/montserrat.json +1 -1
  116. package/dist/spec/catalogs/font-schemes/ms-mincho.json +2 -2
  117. package/dist/spec/catalogs/font-schemes/nirmala-ui.json +2 -2
  118. package/dist/spec/catalogs/font-schemes/noto-naksh-arabic.json +2 -2
  119. package/dist/spec/catalogs/font-schemes/noto-nastaliq-urdu.json +3 -3
  120. package/dist/spec/catalogs/font-schemes/noto-sans-arabic.json +4 -4
  121. package/dist/spec/catalogs/font-schemes/noto-sans-armenian.json +2 -2
  122. package/dist/spec/catalogs/font-schemes/noto-sans-bengali.json +3 -3
  123. package/dist/spec/catalogs/font-schemes/noto-sans-devangari.json +3 -3
  124. package/dist/spec/catalogs/font-schemes/noto-sans-ethiopic.json +2 -2
  125. package/dist/spec/catalogs/font-schemes/noto-sans-georgian.json +2 -2
  126. package/dist/spec/catalogs/font-schemes/noto-sans-gujarati.json +2 -2
  127. package/dist/spec/catalogs/font-schemes/noto-sans-gurmukhi.json +2 -2
  128. package/dist/spec/catalogs/font-schemes/noto-sans-hebrew.json +2 -2
  129. package/dist/spec/catalogs/font-schemes/noto-sans-jp.json +2 -2
  130. package/dist/spec/catalogs/font-schemes/noto-sans-kannada.json +2 -2
  131. package/dist/spec/catalogs/font-schemes/noto-sans-khmer.json +2 -2
  132. package/dist/spec/catalogs/font-schemes/noto-sans-kr.json +2 -2
  133. package/dist/spec/catalogs/font-schemes/noto-sans-malayalam.json +2 -2
  134. package/dist/spec/catalogs/font-schemes/noto-sans-mongolian.json +2 -2
  135. package/dist/spec/catalogs/font-schemes/noto-sans-oriya.json +2 -2
  136. package/dist/spec/catalogs/font-schemes/noto-sans-sc.json +5 -5
  137. package/dist/spec/catalogs/font-schemes/noto-sans-tamil.json +2 -2
  138. package/dist/spec/catalogs/font-schemes/noto-sans-tc.json +2 -2
  139. package/dist/spec/catalogs/font-schemes/noto-sans-telugu.json +2 -2
  140. package/dist/spec/catalogs/font-schemes/noto-sans-thai.json +2 -2
  141. package/dist/spec/catalogs/font-schemes/noto-sans.json +5 -5
  142. package/dist/spec/catalogs/font-schemes/nyala.json +2 -2
  143. package/dist/spec/catalogs/font-schemes/open-sans.json +1 -1
  144. package/dist/spec/catalogs/font-schemes/pmingliu.json +2 -2
  145. package/dist/spec/catalogs/font-schemes/poppins.json +1 -1
  146. package/dist/spec/catalogs/font-schemes/pt-serif.json +1 -1
  147. package/dist/spec/catalogs/font-schemes/raavi.json +2 -2
  148. package/dist/spec/catalogs/font-schemes/raleway.json +1 -1
  149. package/dist/spec/catalogs/font-schemes/roboto.json +1 -1
  150. package/dist/spec/catalogs/font-schemes/rockwell.json +1 -1
  151. package/dist/spec/catalogs/font-schemes/sakkal-majalla.json +4 -4
  152. package/dist/spec/catalogs/font-schemes/seaford.json +1 -1
  153. package/dist/spec/catalogs/font-schemes/segoe-ui-light.json +1 -1
  154. package/dist/spec/catalogs/font-schemes/segoe-ui.json +1 -1
  155. package/dist/spec/catalogs/font-schemes/shonar-bangla.json +3 -3
  156. package/dist/spec/catalogs/font-schemes/shruti.json +2 -2
  157. package/dist/spec/catalogs/font-schemes/simsun.json +2 -2
  158. package/dist/spec/catalogs/font-schemes/skeena.json +1 -1
  159. package/dist/spec/catalogs/font-schemes/sylfaen.json +3 -3
  160. package/dist/spec/catalogs/font-schemes/tahoma.json +1 -1
  161. package/dist/spec/catalogs/font-schemes/tenorite.json +1 -1
  162. package/dist/spec/catalogs/font-schemes/times-new-roman.json +1 -1
  163. package/dist/spec/catalogs/font-schemes/traditional-arabic.json +4 -4
  164. package/dist/spec/catalogs/font-schemes/trebuchet-ms.json +1 -1
  165. package/dist/spec/catalogs/font-schemes/tunga.json +2 -2
  166. package/dist/spec/catalogs/font-schemes/verdana.json +1 -1
  167. package/dist/spec/catalogs/font-schemes/vrinda.json +2 -2
  168. package/dist/spec/catalogs/font-schemes/yu-gothic.json +2 -2
  169. package/dist/spec/catalogs/layouts/action-plan.json +9 -15
  170. package/dist/spec/catalogs/layouts/agenda.json +8 -15
  171. package/dist/spec/catalogs/layouts/appendix-index.json +7 -15
  172. package/dist/spec/catalogs/layouts/architecture-stack.json +9 -15
  173. package/dist/spec/catalogs/layouts/assumptions-dependencies.json +9 -15
  174. package/dist/spec/catalogs/layouts/before-after.json +9 -15
  175. package/dist/spec/catalogs/layouts/benchmark-target-table.json +9 -15
  176. package/dist/spec/catalogs/layouts/blank.json +11 -1
  177. package/dist/spec/catalogs/layouts/bullet-list.json +9 -15
  178. package/dist/spec/catalogs/layouts/business-model-canvas.json +9 -15
  179. package/dist/spec/catalogs/layouts/capability-map.json +14 -16
  180. package/dist/spec/catalogs/layouts/case-study.json +9 -15
  181. package/dist/spec/catalogs/layouts/chapter-recap.json +8 -15
  182. package/dist/spec/catalogs/layouts/chart-1x.json +15 -0
  183. package/dist/spec/catalogs/layouts/chart-2x.json +15 -0
  184. package/dist/spec/catalogs/layouts/chart-3x.json +15 -0
  185. package/dist/spec/catalogs/layouts/circular-lifecycle.json +9 -15
  186. package/dist/spec/catalogs/layouts/code-1x.json +10 -0
  187. package/dist/spec/catalogs/layouts/comparison.json +9 -15
  188. package/dist/spec/catalogs/layouts/competitive-landscape.json +14 -16
  189. package/dist/spec/catalogs/layouts/customer-journey.json +14 -16
  190. package/dist/spec/catalogs/layouts/customer-logos.json +9 -15
  191. package/dist/spec/catalogs/layouts/dashboard.json +9 -15
  192. package/dist/spec/catalogs/layouts/data-visualization.json +9 -15
  193. package/dist/spec/catalogs/layouts/decision-tree.json +14 -16
  194. package/dist/spec/catalogs/layouts/detailed-data-table.json +9 -15
  195. package/dist/spec/catalogs/layouts/ecosystem-map.json +14 -16
  196. package/dist/spec/catalogs/layouts/executive-decision.json +9 -15
  197. package/dist/spec/catalogs/layouts/executive-summary.json +9 -15
  198. package/dist/spec/catalogs/layouts/extract/canonical.json +8 -8
  199. package/dist/spec/catalogs/layouts/faq.json +9 -15
  200. package/dist/spec/catalogs/layouts/feature-comparison-matrix.json +9 -15
  201. package/dist/spec/catalogs/layouts/forecast-scenario.json +9 -15
  202. package/dist/spec/catalogs/layouts/funnel-pyramid.json +9 -15
  203. package/dist/spec/catalogs/layouts/gantt-project-plan.json +9 -15
  204. package/dist/spec/catalogs/layouts/geographic-map.json +13 -15
  205. package/dist/spec/catalogs/layouts/heatmap-cohort.json +9 -15
  206. package/dist/spec/catalogs/layouts/hub-and-spoke.json +9 -15
  207. package/dist/spec/catalogs/layouts/icon-grid.json +14 -16
  208. package/dist/spec/catalogs/layouts/image-1x.json +11 -1
  209. package/dist/spec/catalogs/layouts/image-2x.json +12 -2
  210. package/dist/spec/catalogs/layouts/image-3x.json +13 -3
  211. package/dist/spec/catalogs/layouts/image-bleed.json +12 -2
  212. package/dist/spec/catalogs/layouts/image-focus.json +14 -16
  213. package/dist/spec/catalogs/layouts/index.json +1 -1
  214. package/dist/spec/catalogs/layouts/key-takeaway.json +8 -15
  215. package/dist/spec/catalogs/layouts/kpi-scorecard.json +9 -15
  216. package/dist/spec/catalogs/layouts/list-1x.json +17 -1
  217. package/dist/spec/catalogs/layouts/list-2x.json +16 -0
  218. package/dist/spec/catalogs/layouts/list-3x.json +16 -0
  219. package/dist/spec/catalogs/layouts/list-4x.json +16 -0
  220. package/dist/spec/catalogs/layouts/list-5x.json +16 -0
  221. package/dist/spec/catalogs/layouts/list-6x.json +16 -0
  222. package/dist/spec/catalogs/layouts/logic-tree.json +9 -15
  223. package/dist/spec/catalogs/layouts/market-size.json +9 -15
  224. package/dist/spec/catalogs/layouts/matrix-quadrant.json +9 -15
  225. package/dist/spec/catalogs/layouts/media-1x.json +11 -1
  226. package/dist/spec/catalogs/layouts/network-dependency-map.json +13 -15
  227. package/dist/spec/catalogs/layouts/number-1x.json +16 -1
  228. package/dist/spec/catalogs/layouts/number-2x.json +15 -0
  229. package/dist/spec/catalogs/layouts/number-3x.json +15 -0
  230. package/dist/spec/catalogs/layouts/number-4x.json +15 -0
  231. package/dist/spec/catalogs/layouts/number-5x.json +15 -0
  232. package/dist/spec/catalogs/layouts/number-6x.json +15 -0
  233. package/dist/spec/catalogs/layouts/one-column-explainer.json +9 -15
  234. package/dist/spec/catalogs/layouts/org-chart.json +9 -15
  235. package/dist/spec/catalogs/layouts/persona-grid.json +14 -16
  236. package/dist/spec/catalogs/layouts/photo-grid.json +17 -19
  237. package/dist/spec/catalogs/layouts/pricing-table.json +9 -15
  238. package/dist/spec/catalogs/layouts/process-flow.json +9 -15
  239. package/dist/spec/catalogs/layouts/product-feature.json +14 -16
  240. package/dist/spec/catalogs/layouts/pros-cons.json +9 -15
  241. package/dist/spec/catalogs/layouts/qa-discussion.json +7 -15
  242. package/dist/spec/catalogs/layouts/quote-1x.json +11 -1
  243. package/dist/spec/catalogs/layouts/quote-highlight.json +9 -15
  244. package/dist/spec/catalogs/layouts/raci-matrix.json +9 -15
  245. package/dist/spec/catalogs/layouts/risk-heatmap.json +9 -15
  246. package/dist/spec/catalogs/layouts/roadmap.json +9 -15
  247. package/dist/spec/catalogs/layouts/screenshot-walkthrough.json +14 -16
  248. package/dist/spec/catalogs/layouts/section-divider.json +8 -15
  249. package/dist/spec/catalogs/layouts/single-message-statement.json +8 -15
  250. package/dist/spec/catalogs/layouts/stats-metrics.json +9 -15
  251. package/dist/spec/catalogs/layouts/status-rag.json +9 -15
  252. package/dist/spec/catalogs/layouts/swimlane-process.json +14 -16
  253. package/dist/spec/catalogs/layouts/swot-analysis.json +9 -15
  254. package/dist/spec/catalogs/layouts/table-1x.json +10 -0
  255. package/dist/spec/catalogs/layouts/team-bio.json +14 -16
  256. package/dist/spec/catalogs/layouts/testimonial-grid.json +9 -15
  257. package/dist/spec/catalogs/layouts/text-1x.json +11 -1
  258. package/dist/spec/catalogs/layouts/text-2x.json +10 -0
  259. package/dist/spec/catalogs/layouts/text-3x.json +10 -0
  260. package/dist/spec/catalogs/layouts/thank-you-cta.json +8 -15
  261. package/dist/spec/catalogs/layouts/three-column.json +9 -15
  262. package/dist/spec/catalogs/layouts/timeline-1x.json +11 -1
  263. package/dist/spec/catalogs/layouts/timeline.json +9 -15
  264. package/dist/spec/catalogs/layouts/title-slide.json +8 -15
  265. package/dist/spec/catalogs/layouts/title-subtitle.json +11 -1
  266. package/dist/spec/catalogs/layouts/title.json +11 -1
  267. package/dist/spec/catalogs/layouts/two-column.json +9 -15
  268. package/dist/spec/catalogs/layouts/venn-overlap.json +9 -15
  269. package/dist/spec/catalogs/layouts/waterfall-bridge.json +9 -15
  270. package/dist/spec/catalogs/layouts/wheel-radial.json +9 -15
  271. package/dist/spec/catalogs/manifest.json +11 -11
  272. package/dist/spec/catalogs/narratives/board-meeting.json +45 -45
  273. package/dist/spec/catalogs/narratives/business-narrative.json +19 -19
  274. package/dist/spec/catalogs/narratives/business-review.json +27 -27
  275. package/dist/spec/catalogs/narratives/capacity-planning.json +19 -19
  276. package/dist/spec/catalogs/narratives/challenge-resolution.json +17 -17
  277. package/dist/spec/catalogs/narratives/change-story.json +13 -13
  278. package/dist/spec/catalogs/narratives/classic-story.json +17 -17
  279. package/dist/spec/catalogs/narratives/company-intro.json +21 -21
  280. package/dist/spec/catalogs/narratives/conference-talk.json +4 -4
  281. package/dist/spec/catalogs/narratives/data-story.json +13 -14
  282. package/dist/spec/catalogs/narratives/early-startup-pitch.json +27 -27
  283. package/dist/spec/catalogs/narratives/educate.json +21 -21
  284. package/dist/spec/catalogs/narratives/employee-review.json +19 -19
  285. package/dist/spec/catalogs/narratives/failure-analysis.json +23 -23
  286. package/dist/spec/catalogs/narratives/focus.json +27 -27
  287. package/dist/spec/catalogs/narratives/golden-circle.json +4 -4
  288. package/dist/spec/catalogs/narratives/heros-journey.json +13 -13
  289. package/dist/spec/catalogs/narratives/index.json +145 -145
  290. package/dist/spec/catalogs/narratives/innovation.json +21 -21
  291. package/dist/spec/catalogs/narratives/justice.json +25 -25
  292. package/dist/spec/catalogs/narratives/marketing-strategy.json +25 -25
  293. package/dist/spec/catalogs/narratives/performance-improvement-plan.json +19 -19
  294. package/dist/spec/catalogs/narratives/performance-review.json +25 -25
  295. package/dist/spec/catalogs/narratives/persuade.json +17 -17
  296. package/dist/spec/catalogs/narratives/persuasive-sales.json +19 -19
  297. package/dist/spec/catalogs/narratives/pitch-deck.json +6 -6
  298. package/dist/spec/catalogs/narratives/problem-solution.json +5 -5
  299. package/dist/spec/catalogs/narratives/product-launch.json +23 -23
  300. package/dist/spec/catalogs/narratives/project-proposal.json +23 -23
  301. package/dist/spec/catalogs/narratives/pyramid-principle.json +9 -9
  302. package/dist/spec/catalogs/narratives/qbr.json +8 -8
  303. package/dist/spec/catalogs/narratives/rags-to-riches.json +17 -17
  304. package/dist/spec/catalogs/narratives/reveal.json +19 -19
  305. package/dist/spec/catalogs/narratives/scqa.json +4 -4
  306. package/dist/spec/catalogs/narratives/situation-complication-resolution.json +11 -11
  307. package/dist/spec/catalogs/narratives/sparkline.json +11 -11
  308. package/dist/spec/catalogs/narratives/star-method.json +11 -11
  309. package/dist/spec/catalogs/narratives/status-update.json +15 -15
  310. package/dist/spec/catalogs/narratives/strategic-advisory.json +17 -17
  311. package/dist/spec/catalogs/narratives/strategic-narrative.json +4 -4
  312. package/dist/spec/catalogs/narratives/survey-analysis.json +23 -23
  313. package/dist/spec/catalogs/narratives/survival-story.json +23 -23
  314. package/dist/spec/catalogs/narratives/transformation-arc.json +4 -4
  315. package/dist/spec/catalogs/narratives/trend-analysis.json +17 -17
  316. package/dist/spec/catalogs/narratives/underdog-victory.json +19 -19
  317. package/dist/spec/catalogs/narratives/venture-pitch.json +27 -27
  318. package/dist/spec/catalogs/narratives/vision-roadmap.json +13 -13
  319. package/dist/spec/catalogs/narratives/weekly-progress.json +23 -23
  320. package/dist/spec/catalogs/narratives/what-so-what-now-what.json +9 -9
  321. package/dist/spec/openapi.yaml +2 -5
  322. package/dist/spec/reference/engine-defaults.json +2 -2
  323. package/dist/spec/schemas/audience.schema.json +1 -1
  324. package/dist/spec/schemas/catalog-index.schema.json +2 -2
  325. package/dist/spec/schemas/chart-type.schema.json +19 -290
  326. package/dist/spec/schemas/color-scheme.schema.json +20 -12
  327. package/dist/spec/schemas/finding.schema.json +191 -0
  328. package/dist/spec/schemas/font-scheme.schema.json +19 -46
  329. package/dist/spec/schemas/layout.schema.json +100 -159
  330. package/dist/spec/schemas/narrative.schema.json +17 -25
  331. package/dist/spec/schemas/opf.schema.json +503 -339
  332. package/dist/spec/schemas/social-platform.schema.json +1 -26
  333. package/dist/spec/schemas/theme.schema.json +4 -1
  334. package/dist/spec-files.d.ts +1 -1
  335. package/dist/spec-files.js +1 -1
  336. package/dist/symbol-font-encodings.js +18448 -1
  337. package/dist/types.d.ts +4 -4
  338. package/dist/validation-types-zh03LeZy.d.ts +276 -0
  339. package/dist/validator.d.ts +60 -4
  340. package/dist/validator.js +4 -4
  341. package/dist/yaml.d.ts +87 -0
  342. package/dist/yaml.js +321 -0
  343. package/package.json +6 -10
  344. package/dist/audit.d.ts +0 -156
  345. package/dist/audit.js +0 -7
  346. package/dist/chunk-6LZK2IZB.js +0 -1690
  347. package/dist/chunk-FYLJVF7X.js +0 -18448
  348. package/dist/chunk-JKVKYVWL.js +0 -1332
  349. package/dist/chunk-MWPMJE6P.js +0 -622
  350. package/dist/lint.d.ts +0 -70
  351. package/dist/lint.js +0 -6
  352. package/dist/spec/catalogs/audiences/customers.json +0 -27
  353. package/dist/spec/catalogs/audiences/executives.json +0 -27
  354. package/dist/spec/catalogs/audiences/investors.json +0 -27
  355. package/dist/spec/catalogs/audiences/marketing-team.json +0 -27
  356. package/dist/spec/catalogs/audiences/regulators.json +0 -27
  357. package/dist/spec/catalogs/audiences/sales-team.json +0 -27
  358. package/dist/spec/catalogs/chart-types/100pct-bullet-bar-2x.json +0 -91
  359. package/dist/spec/catalogs/chart-types/100pct-bullet-bar-3x.json +0 -103
  360. package/dist/spec/catalogs/chart-types/100pct-bullet-bar.json +0 -79
  361. package/dist/spec/catalogs/chart-types/100pct-bullet-column-2x.json +0 -91
  362. package/dist/spec/catalogs/chart-types/100pct-bullet-column-3x.json +0 -103
  363. package/dist/spec/catalogs/chart-types/100pct-bullet-column.json +0 -79
  364. package/dist/spec/catalogs/chart-types/100pct-progress-bar.json +0 -105
  365. package/dist/spec/catalogs/chart-types/100pct-stacked-area-2x.json +0 -106
  366. package/dist/spec/catalogs/chart-types/100pct-stacked-area-3x.json +0 -123
  367. package/dist/spec/catalogs/chart-types/100pct-stacked-bar-2x.json +0 -89
  368. package/dist/spec/catalogs/chart-types/100pct-stacked-bar-3x.json +0 -100
  369. package/dist/spec/catalogs/chart-types/100pct-stacked-column-2x.json +0 -95
  370. package/dist/spec/catalogs/chart-types/100pct-stacked-column-3x.json +0 -108
  371. package/dist/spec/catalogs/chart-types/australia.json +0 -76
  372. package/dist/spec/catalogs/chart-types/box-and-whisker-2x.json +0 -136
  373. package/dist/spec/catalogs/chart-types/box-and-whisker-3x.json +0 -168
  374. package/dist/spec/catalogs/chart-types/bullet-bar-2x.json +0 -89
  375. package/dist/spec/catalogs/chart-types/bullet-bar-3x.json +0 -101
  376. package/dist/spec/catalogs/chart-types/bullet-bar.json +0 -77
  377. package/dist/spec/catalogs/chart-types/bullet-column-2x.json +0 -89
  378. package/dist/spec/catalogs/chart-types/bullet-column-3x.json +0 -101
  379. package/dist/spec/catalogs/chart-types/bullet-column.json +0 -77
  380. package/dist/spec/catalogs/chart-types/canada.json +0 -86
  381. package/dist/spec/catalogs/chart-types/clustered-bar-2x.json +0 -89
  382. package/dist/spec/catalogs/chart-types/clustered-column.json +0 -95
  383. package/dist/spec/catalogs/chart-types/dot-plot-2x.json +0 -99
  384. package/dist/spec/catalogs/chart-types/dot-plot-3x.json +0 -124
  385. package/dist/spec/catalogs/chart-types/dot-plot-4x.json +0 -149
  386. package/dist/spec/catalogs/chart-types/dot-plot-5x.json +0 -174
  387. package/dist/spec/catalogs/chart-types/dot-plot-6x.json +0 -199
  388. package/dist/spec/catalogs/chart-types/dot-plot.json +0 -74
  389. package/dist/spec/catalogs/chart-types/dumbbell.json +0 -120
  390. package/dist/spec/catalogs/chart-types/line-2x.json +0 -105
  391. package/dist/spec/catalogs/chart-types/line-3x.json +0 -127
  392. package/dist/spec/catalogs/chart-types/line-with-high-low-and-markers.json +0 -144
  393. package/dist/spec/catalogs/chart-types/line-with-high-low.json +0 -144
  394. package/dist/spec/catalogs/chart-types/line-with-markers-2x.json +0 -106
  395. package/dist/spec/catalogs/chart-types/line-with-markers-3x.json +0 -128
  396. package/dist/spec/catalogs/chart-types/sparkline-2x.json +0 -138
  397. package/dist/spec/catalogs/chart-types/sparkline-3x.json +0 -174
  398. package/dist/spec/catalogs/chart-types/sparkline-4x.json +0 -210
  399. package/dist/spec/catalogs/chart-types/sparkline-5x.json +0 -246
  400. package/dist/spec/catalogs/chart-types/sparkline-6x.json +0 -282
  401. package/dist/spec/catalogs/chart-types/sparkline.json +0 -102
  402. package/dist/spec/catalogs/chart-types/stacked-area-2x.json +0 -106
  403. package/dist/spec/catalogs/chart-types/stacked-area-3x.json +0 -123
  404. package/dist/spec/catalogs/chart-types/stacked-bar-2x.json +0 -89
  405. package/dist/spec/catalogs/chart-types/stacked-bar-3x.json +0 -100
  406. package/dist/spec/catalogs/chart-types/stacked-column-2x.json +0 -95
  407. package/dist/spec/catalogs/chart-types/stacked-column-3x.json +0 -108
  408. package/dist/spec/catalogs/chart-types/stacked-line-2x.json +0 -106
  409. package/dist/spec/catalogs/chart-types/stacked-line-3x.json +0 -123
  410. package/dist/spec/catalogs/chart-types/stacked-line-with-markers-2x.json +0 -107
  411. package/dist/spec/catalogs/chart-types/stacked-line-with-markers-3x.json +0 -124
  412. package/dist/spec/catalogs/chart-types/treemap-2x.json +0 -101
  413. package/dist/spec/catalogs/chart-types/treemap-3x.json +0 -122
  414. package/dist/spec/catalogs/chart-types/united-kingdom.json +0 -68
  415. package/dist/spec/catalogs/chart-types/united-states.json +0 -82
  416. package/dist/validator-DfG9yxba.d.ts +0 -172
@@ -17,7 +17,7 @@ var presentation = {
17
17
  },
18
18
  "name": {
19
19
  "type": "string",
20
- "description": "Display name of the presentation for GUI/TUI lists, library/search indexing, OS-level metadata, and default export filenames. This is deck identity, not slide content. Use slides[].title and slides[].subtitle for text that should appear on presented slides.",
20
+ "description": "Display name of the presentation for GUI/TUI lists, library/search indexing, OS-level metadata, and default export filenames. This is deck identity, not slide content. Use slides[].title and slides[].subtitle for text that should appear on presented slides. Also the built-in variable 'deck.name'.",
21
21
  "examples": [
22
22
  "Q4 2026 Business Review",
23
23
  "Series B Pitch \u2014 Acme",
@@ -26,14 +26,14 @@ var presentation = {
26
26
  },
27
27
  "description": {
28
28
  "type": "string",
29
- "description": "Free-form prose describing what this presentation is about. Used by agents and humans as a deck-level summary; complements purpose (the goal) and narrative (the structured storyline). Round-trips to OOXML 'docProps/core.xml' as '<dc:description>' (PowerPoint surfaces this as the 'Comments' field in File \u2192 Properties).",
29
+ "description": "Free-form prose describing what this presentation is about. Used by agents and humans as a deck-level summary; complements purpose (the goal) and narrative (the structured storyline). Round-trips to OOXML 'docProps/core.xml' as '<dc:description>' (PowerPoint surfaces this as the 'Comments' field in File \u2192 Properties). Also the built-in variable 'deck.description'.",
30
30
  "examples": [
31
31
  "Quarterly business review covering revenue, product, and hiring milestones for the executive team."
32
32
  ]
33
33
  },
34
34
  "filename": {
35
35
  "type": "string",
36
- "description": "Optional base filename for exports (without extension). Engine strips a trailing .pptx, .pdf, .png, or .svg (case-insensitive) and appends the target format's extension. When omitted, the engine slugifies name when present. See /docs/opf for full validation rules.",
36
+ "description": "Optional base filename for exports (without extension). The opf CLI (render, export) and the editor strip a trailing .pptx, .pdf, .png, or .svg (case-insensitive) and append the target format's extension. When omitted, they slugify name; with no usable name the CLI uses the input file name and the editor uses 'presentation'. See /docs/opf for full validation rules.",
37
37
  "examples": [
38
38
  "q4-2026-business-review",
39
39
  "acme-series-b-pitch"
@@ -52,7 +52,7 @@ var presentation = {
52
52
  "minItems": 1
53
53
  }
54
54
  ],
55
- "description": "Organization associated with the presentation, usually the presenting company. Array form supports hosts, partners, clients, and sponsors. The primary organization (declared via Organization.role or, if no role is set, the first item) drives default branding such as cover-slide logo."
55
+ "description": "Organization associated with the presentation, usually the presenting company. Array form supports hosts, partners, clients, and sponsors. The primary organization (Organization.role 'primary', else the first item) supplies the default deck logo, the 'organization' and 'socials' header/footer fields and the 'organization.<field>' built-in variables; the others are available by id as 'organization.<id>.<field>' and are not drawn automatically."
56
56
  },
57
57
  "speaker": {
58
58
  "oneOf": [
@@ -67,7 +67,7 @@ var presentation = {
67
67
  "minItems": 1
68
68
  }
69
69
  ],
70
- "description": "Person presenting the deck. Array form supports panels and multi-speaker decks. Used for cover slides, bio slides, footers, and panel attribution."
70
+ "description": "Person presenting the deck. Array form supports panels and multi-speaker decks. The first speaker is the primary speaker: the built-in variables 'speaker.<field>' and the 'speaker' header/footer field read it, 'speakers' lists every name, and 'speaker.<id>.<field>' addresses one by id. A speaker is drawn nowhere else."
71
71
  },
72
72
  "author": {
73
73
  "oneOf": [
@@ -82,7 +82,7 @@ var presentation = {
82
82
  "minItems": 1
83
83
  }
84
84
  ],
85
- "description": "Optional credit for the person who authored or contributed to the deck, distinct from speaker. Array form supports multiple contributors. Round-trips to OOXML 'docProps/core.xml' as '<dc:creator>' (semicolon-joined when multiple) and seeds '<cp:lastModifiedBy>' on first write; subsequent edits in PowerPoint overwrite '<cp:lastModifiedBy>' with the editing user.",
85
+ "description": "Optional credit for the person who authored or contributed to the deck, distinct from speaker. Array form supports multiple contributors. Round-trips to OOXML 'docProps/core.xml' as '<dc:creator>' (semicolon-joined when multiple) and seeds '<cp:lastModifiedBy>' on first write; subsequent edits in PowerPoint overwrite '<cp:lastModifiedBy>' with the editing user. Also the built-in variable 'deck.author' (an array joined with ', ').",
86
86
  "examples": [
87
87
  "Bob Lee",
88
88
  [
@@ -96,6 +96,9 @@ var presentation = {
96
96
  {
97
97
  "type": "string"
98
98
  },
99
+ {
100
+ "$ref": "#/$defs/Audience"
101
+ },
99
102
  {
100
103
  "type": "array",
101
104
  "items": {
@@ -111,7 +114,7 @@ var presentation = {
111
114
  "minItems": 1
112
115
  }
113
116
  ],
114
- "description": "Intended audiences for the presentation. Accepts either:\n- A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executive'), an HTTPS URL, or a 'pkg:' reference.\n- An array of string shorthands and/or inline Audience objects for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] \u2192 catalogs.audiences.source \u2192 default catalog at https://www.pptx.gallery/audiences.",
117
+ "description": "Intended audiences for the presentation. Accepts any of:\n- A single string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executive'), an HTTPS URL, or a 'pkg:' reference.\n- A single inline Audience object, like purpose and tone, for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.\n- An array of string shorthands and/or inline Audience objects, for more than one audience.\n\nResolution order for catalog ids and references: inline catalogs.audiences.records[] \u2192 catalogs.audiences.source \u2192 default catalog at https://www.pptx.gallery/audiences.",
115
118
  "examples": [
116
119
  "executive",
117
120
  "Biology Students and Wildlife Enthusiasts",
@@ -122,6 +125,10 @@ var presentation = {
122
125
  "board",
123
126
  "c-suite"
124
127
  ],
128
+ {
129
+ "id": "executive",
130
+ "attentionBudgetMinutes": 20
131
+ },
125
132
  [
126
133
  "Series B investors",
127
134
  "https://acme.com/decks/audiences/acme-board.json"
@@ -259,7 +266,7 @@ var presentation = {
259
266
  "duration": {
260
267
  "type": "integer",
261
268
  "minimum": 1,
262
- "description": "Target presentation duration, as an integer number of minutes. Used by AI to set pace and depth, and to compare against the resolved narrative's durationRange."
269
+ "description": "Target presentation duration, as an integer number of minutes. The opf-render presenter view counts the elapsed time against it, and core validate warns when it lies outside the resolved narrative's 'duration' range. Agents can also use it to set pace and depth. Nothing else reads it: the preview and the PPTX export draw no duration."
263
270
  },
264
271
  "tags": {
265
272
  "type": "array",
@@ -286,7 +293,7 @@ var presentation = {
286
293
  },
287
294
  "variables": {
288
295
  "$ref": "#/$defs/Variables",
289
- "description": "Optional named variables: deck colors referenced as 'var:<id>' (the original use), and typed content variables (text, number, date, image, url, list) referenced inline as '{{<id>}}' or whole as 'var:<id>'. Variables are what makes a deck a fillable template when combined with 'template': true. Color variables complement the color scheme: scheme slots and roles stay the primary vocabulary; variables cover deck-specific named colors that have no scheme slot."
296
+ "description": "Optional named variables: deck colors referenced as 'var:<id>' (the original use), and typed content variables (text, number, date, image, url, list) referenced inline as '{{<id>}}' or whole as 'var:<id>'. Variables are what makes a deck a fillable template when combined with 'template': true. Color variables complement the color scheme: scheme slots and roles stay the primary vocabulary; variables cover deck-specific named colors that have no scheme slot. Built-in variables ('{{speaker.name}}', 'var:organization.logo', 'deck.name', ...) need no declaration; see Variables."
290
297
  },
291
298
  "template": {
292
299
  "type": "boolean",
@@ -294,42 +301,13 @@ var presentation = {
294
301
  "default": false
295
302
  },
296
303
  "narrative": {
297
- "oneOf": [
298
- {
299
- "type": "string"
300
- },
301
- {
302
- "$ref": "#/$defs/Narrative"
303
- }
304
- ],
305
- "description": `Structured storyline describing the deck's arc and beats. Resolves to the 'id' of a 'narratives' catalog record.
306
-
307
- Accepts two forms:
308
- - String shorthand for the common case: 'narrative = "classic-story"'. Accepts a bare id (lowercase kebab-case), an HTTPS URL pointing at a record file, or a 'pkg:' reference to a locally-installed package.
309
- - Object form for inline overrides or fully custom narratives: 'narrative = { id: "classic-story", beats: [...] }'. The object shape mirrors https://openpresentation.org/schema/opf-narrative/v1 (sans '$schema'), so a library record and an inline narrative are interchangeable.
310
-
311
- Resolution order: inline catalogs.narratives.records[] \u2192 catalogs.narratives.source \u2192 default catalog at https://www.pptx.gallery/narratives. Unknown ids produce a validation warning, not an error.
312
-
313
- Deck-level concerns that aren't part of the storyline (audience, tone, takeaway, duration) live as siblings on the presentation root rather than inside the narrative object.`,
304
+ "type": "string",
305
+ "description": "The deck's narrative plan, by reference: the 'id' of a 'narratives' catalog record, an HTTPS URL pointing at a record file, or a 'pkg:' reference to a locally-installed package. The deck holds only this pointer; the plan (the arc, its beats and what each beat must do) lives in the catalog record, which validates against https://openpresentation.org/schema/opf-narrative/v1. A custom narrative is a record in catalogs.narratives.records, referenced here by its id.\n\nSlides link themselves to beats with slides[].beat. Core validate warns about a slides[].beat id the resolved narrative does not define and about a root 'duration' outside its 'duration' range, and reports a beat that no slide references. The preview and the PPTX export draw nothing from the narrative; opf-pptx stores the reference for round-trip.\n\nResolution order: inline catalogs.narratives.records[] \u2192 catalogs.narratives.source \u2192 default catalog at https://www.pptx.gallery/narratives. Unknown ids produce a validation warning, not an error.\n\nDeck-level concerns that are not part of the storyline (audience, tone, takeaway, duration) live as siblings on the presentation root.",
314
306
  "examples": [
315
307
  "classic-story",
316
308
  "problem-solution",
317
309
  "scqa",
318
310
  "pitch-deck",
319
- {
320
- "id": "custom-pitch",
321
- "name": "Custom Pitch",
322
- "beats": [
323
- {
324
- "id": "hook",
325
- "name": "Hook"
326
- },
327
- {
328
- "id": "ask",
329
- "name": "Ask"
330
- }
331
- ]
332
- },
333
311
  "https://acme.com/decks/narratives/founder-pitch.json",
334
312
  "pkg:@acme/decks/narratives/founder-pitch"
335
313
  ]
@@ -347,7 +325,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
347
325
  "items": {
348
326
  "$ref": "#/$defs/Reference"
349
327
  },
350
- "description": "Sources that text runs cite with 'cite'. Ids are unique. A cited reference is listed in the footnote area of every slide that cites it, with a marker number assigned per deck in order of first use; a reference no run cites is a lint warning (opf/unused-reference). referencesSlide() turns the cited references into an ordinary list slide.",
328
+ "description": "Sources that text runs cite with 'cite'. Ids are unique. A cited reference is listed in the footnote area of every slide that cites it, with a marker number assigned per deck in order of first use; a reference no run cites is the warning opf/unused-reference. referencesSlide() turns the cited references into an ordinary list slide.",
351
329
  "examples": [
352
330
  [
353
331
  {
@@ -358,6 +336,10 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
358
336
  ]
359
337
  ]
360
338
  },
339
+ "datasets": {
340
+ "$ref": "#/$defs/Datasets",
341
+ "description": `Optional shared data tables, keyed by id. A chart ('chart.data': { "dataset": "<id>" }) or a table ('table': { "dataset": "<id>" }) references one instead of holding its own copy; engines inline the reference before composing, rendering or exporting. A dataset nothing references is the warning opf/unused-dataset. See docs/chart-table-data.md.`
342
+ },
361
343
  "assets": {
362
344
  "$ref": "#/$defs/Assets",
363
345
  "description": "Optional reusable asset registry for images, data files, videos, documents, fonts, and other resources referenced elsewhere in the deck via 'asset:<id>' strings."
@@ -390,13 +372,13 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
390
372
  },
391
373
  "revenue": {
392
374
  "src": "./data/revenue.csv",
393
- "format": "csv"
375
+ "mediaType": "text/csv"
394
376
  }
395
377
  }
396
378
  ]
397
379
  },
398
380
  "Asset": {
399
- "description": `Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title, mediaType, or format matters.`,
381
+ "description": `Reusable or inline resource. A string is shorthand for { "src": value }. Source strings accept 'asset:<id>' references, HTTPS URLs, data URIs, relative paths resolved against the OPF file location, or local filesystem paths. Use object form when metadata such as alt text, title or mediaType matters.`,
400
382
  "oneOf": [
401
383
  {
402
384
  "type": "string",
@@ -446,20 +428,6 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
446
428
  "text/csv",
447
429
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
448
430
  ]
449
- },
450
- "format": {
451
- "type": "string",
452
- "description": "Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.",
453
- "examples": [
454
- "csv",
455
- "tsv",
456
- "json",
457
- "xlsx",
458
- "svg",
459
- "png",
460
- "jpg",
461
- "webp"
462
- ]
463
431
  }
464
432
  }
465
433
  }
@@ -833,7 +801,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
833
801
  },
834
802
  "Organization": {
835
803
  "type": "object",
836
- "description": "An organization associated with the presentation \u2014 typically the presenting company, but also hosts, partners, clients, or sponsors. Surfaced on cover slides, footers, and brand bars; the primary organization's logo is the default deck logo unless overridden by design.logo.",
804
+ "description": "An organization associated with the presentation, typically the presenting company, but also hosts, partners, clients, or sponsors. The primary organization (role 'primary', else the first one) supplies the default deck logo (unless design.logo overrides it), the 'organization' header/footer field (its name) and the 'socials' field (its socials). Every field is also a built-in variable ('{{organization.name}}', 'var:organization.logo', 'organization.<id>.<field>'). Nothing else about an organization is drawn automatically. See docs/templates-and-variables.md.",
837
805
  "required": [
838
806
  "id",
839
807
  "name"
@@ -842,7 +810,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
842
810
  "id": {
843
811
  "type": "string",
844
812
  "pattern": "^[a-zA-Z0-9_-]+$",
845
- "description": "Stable identifier for the organization, used to reference it from Speaker.organizationId. Must be unique within the deck.",
813
+ "description": "Stable identifier for the organization, used to reference it from Speaker.organizationId and to address it in built-in variables as 'organization.<id>.<field>'. Must be unique among organizations (a duplicate is a validation error).",
846
814
  "examples": [
847
815
  "acme",
848
816
  "acme-corp",
@@ -851,7 +819,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
851
819
  },
852
820
  "name": {
853
821
  "type": "string",
854
- "description": "Display name shown on slides.",
822
+ "description": "Display name. Drawn by the 'organization' header/footer field for the primary organization; the built-in variable 'organization.name' (or 'organization.<id>.name') carries it into any string.",
855
823
  "examples": [
856
824
  "Acme Corp",
857
825
  "DevConf 2026",
@@ -860,7 +828,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
860
828
  },
861
829
  "legalName": {
862
830
  "type": "string",
863
- "description": "Optional legal entity name when it differs from the display name.",
831
+ "description": "Optional legal entity name when it differs from the display name. Never drawn automatically; available as the built-in variable 'organization.legalName'.",
864
832
  "examples": [
865
833
  "Acme Corporation, Inc.",
866
834
  "Beta Industries, LLC"
@@ -868,7 +836,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
868
836
  },
869
837
  "logo": {
870
838
  "$ref": "#/$defs/Asset",
871
- "description": "Source for the organization's logo image. Accepts an HTTPS URL, data URI, relative path (resolved against the OPF file location), local path, or 'asset:<id>' reference. Common formats are SVG (preferred for vector logos), PNG (with transparency), or JPG. The primary organization's logo (role 'primary', else the first organization) is the fallback source wherever the deck logo is drawn: a slide's design.logo, then design.logo, then this value. It is therefore drawn on cover and section slides and by header/footer zones with logo: true, exactly as design.logo would be (see design.logo and docs/design-resolution.md).",
839
+ "description": "Source for the organization's logo image. Accepts an HTTPS URL, data URI, relative path (resolved against the OPF file location), local path, or 'asset:<id>' reference. Common formats are SVG (preferred for vector logos), PNG (with transparency), or JPG. The primary organization's logo (role 'primary', else the first organization) is the fallback source wherever the deck logo is drawn: a slide's design.logo, then design.logo, then this value. It is therefore drawn on cover and section slides and by header/footer zones with logo: true, exactly as design.logo would be (see design.logo and docs/design-resolution.md). It is also the built-in image variable 'organization.logo' (or 'organization.<id>.logo'), placed with 'var:organization.logo' in an image field.",
872
840
  "examples": [
873
841
  "https://cdn.acme.com/logo.svg",
874
842
  "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAusB9V3iWggAAAAASUVORK5CYII=",
@@ -878,7 +846,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
878
846
  },
879
847
  "domain": {
880
848
  "type": "string",
881
- "description": "Bare internet domain for the organization. Used for footers, contact slides, and engine-driven asset lookups (e.g., favicon-based brand defaults).",
849
+ "description": "Bare internet domain for the organization. Never drawn automatically and not used to look up assets; available as the built-in variable 'organization.domain'.",
882
850
  "examples": [
883
851
  "acme.com",
884
852
  "beta-industries.io",
@@ -888,7 +856,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
888
856
  "email": {
889
857
  "type": "string",
890
858
  "format": "email",
891
- "description": "General contact email for the organization. Used on contact slides and footer attribution.",
859
+ "description": "General contact email for the organization. Never drawn automatically; available as the built-in variable 'organization.email'.",
892
860
  "examples": [
893
861
  "hello@acme.com",
894
862
  "sales@acme.com",
@@ -897,7 +865,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
897
865
  },
898
866
  "phone": {
899
867
  "type": "string",
900
- "description": "Main contact phone number for the organization. E.164 format is recommended.",
868
+ "description": "Main contact phone number for the organization. E.164 format is recommended. Never drawn automatically; available as the built-in variable 'organization.phone'.",
901
869
  "examples": [
902
870
  "+14155551234",
903
871
  "+442071838750"
@@ -905,7 +873,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
905
873
  },
906
874
  "tagline": {
907
875
  "type": "string",
908
- "description": "Short tagline rendered alongside the organization name on cover slides.",
876
+ "description": "Short tagline. Never drawn automatically (cover slides do not show it); available as the built-in variable 'organization.tagline', for example in a footer 'text' of '{{organization.tagline}}'.",
909
877
  "examples": [
910
878
  "Build the future of work",
911
879
  "Infrastructure for AI agents",
@@ -921,7 +889,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
921
889
  "sponsor",
922
890
  "host"
923
891
  ],
924
- "description": "Role of the organization relative to the presentation. When omitted, the single organization or first organization in array form is treated as primary."
892
+ "description": "Role of the organization relative to the presentation. Only 'primary' has behavior: it selects the primary organization (deck logo, 'organization' and 'socials' header/footer fields, and the 'organization.<field>' built-ins). When no organization has role 'primary', the first one is primary. 'partner', 'client', 'sponsor' and 'host' are descriptive labels that change nothing."
925
893
  },
926
894
  "socials": {
927
895
  "$ref": "#/$defs/Socials",
@@ -931,7 +899,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
931
899
  },
932
900
  "Speaker": {
933
901
  "type": "object",
934
- "description": "A person presenting the deck. Used for cover slides, bio/intro slides, footer attribution, and panel formats with multiple presenters.",
902
+ "description": "A person presenting the deck. A speaker is drawn only through built-in variables ('{{speaker.name}}' inside any string, 'var:speaker.photo' as a whole image field) and the 'speaker' header/footer field (the first speaker's name and title). No layout, cover or bio slide places a speaker on its own. See docs/templates-and-variables.md.",
935
903
  "required": [
936
904
  "id",
937
905
  "name"
@@ -940,7 +908,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
940
908
  "id": {
941
909
  "type": "string",
942
910
  "pattern": "^[a-zA-Z0-9_-]+$",
943
- "description": "Stable identifier for the speaker, used for cross-references within the deck. Must be unique within the deck.",
911
+ "description": "Stable identifier for the speaker. Must be unique among speakers (a duplicate is a validation error). Addresses this speaker in built-in variables as 'speaker.<id>.<field>', such as '{{speaker.alice.title}}'.",
944
912
  "examples": [
945
913
  "alice",
946
914
  "alice-chen",
@@ -949,7 +917,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
949
917
  },
950
918
  "name": {
951
919
  "type": "string",
952
- "description": "Display name.",
920
+ "description": "Display name. Built-in variable 'speaker.name' (first speaker) or 'speaker.<id>.name'; the first speaker's name is also drawn by the 'speaker' header/footer field and every name is listed by 'speakers'.",
953
921
  "examples": [
954
922
  "Alice Chen",
955
923
  "Bob Lee",
@@ -958,7 +926,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
958
926
  },
959
927
  "title": {
960
928
  "type": "string",
961
- "description": "Role or title. Often paired with the speaker's organization on cover slides.",
929
+ "description": "Role or title. Built-in variable 'speaker.title'; the 'speaker' header/footer field draws it after the name ('Alice Chen, VP of Engineering').",
962
930
  "examples": [
963
931
  "VP of Engineering",
964
932
  "Founder & CEO",
@@ -968,7 +936,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
968
936
  },
969
937
  "photo": {
970
938
  "$ref": "#/$defs/Asset",
971
- "description": "Source for the speaker's headshot image. Accepts an HTTPS URL, data URI, relative path (resolved against the OPF file location), local path, or 'asset:<id>' reference. Common formats are JPG or PNG; SVG is not appropriate for photographic content. Authoring metadata for hosts and layouts (cover and bio slides built by a host): the reference renderer and exporter do not draw it, because no slide field or layout slot places a speaker; it round-trips through PPTX provenance.",
939
+ "description": "Source for the speaker's headshot image. Accepts an HTTPS URL, data URI, relative path (resolved against the OPF file location), local path, or 'asset:<id>' reference. Common formats are JPG or PNG; SVG is not appropriate for photographic content. Never drawn automatically: it is the built-in image variable 'speaker.photo' (or 'speaker.<id>.photo'), placed with 'var:speaker.photo' in a slide's image field. It also round-trips through PPTX provenance.",
972
940
  "examples": [
973
941
  "https://cdn.acme.com/headshots/alice.jpg",
974
942
  "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAABAAEDASIAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAr/xAAUEAEAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAMAwEAAhEDEQA/AJ//2Q==",
@@ -979,7 +947,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
979
947
  "email": {
980
948
  "type": "string",
981
949
  "format": "email",
982
- "description": "Contact email, used on contact slides or footer attribution when appropriate.",
950
+ "description": "Contact email. Never drawn automatically; available as the built-in variable 'speaker.email'.",
983
951
  "examples": [
984
952
  "alice@acme.com",
985
953
  "alice.chen@acme.com"
@@ -987,7 +955,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
987
955
  },
988
956
  "phone": {
989
957
  "type": "string",
990
- "description": "Contact phone number for the speaker. E.164 format is recommended.",
958
+ "description": "Contact phone number for the speaker. E.164 format is recommended. Never drawn automatically; available as the built-in variable 'speaker.phone'.",
991
959
  "examples": [
992
960
  "+14155551234",
993
961
  "+442071838750"
@@ -995,14 +963,14 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
995
963
  },
996
964
  "bio": {
997
965
  "type": "string",
998
- "description": "Short biographical paragraph for bio or 'about the speaker' slides.",
966
+ "description": "Short biographical paragraph. Never drawn automatically; available as the built-in variable 'speaker.bio', for a bio or 'about the speaker' slide you write.",
999
967
  "examples": [
1000
968
  "Alice leads engineering at Acme, where she's spent the last six years scaling distributed systems from prototype to billions of requests per day. Previously, she was a staff engineer at Google."
1001
969
  ]
1002
970
  },
1003
971
  "organizationId": {
1004
972
  "type": "string",
1005
- "description": "Reference to an Organization.id in organization. Lets a speaker be attributed to their org in panel or multi-org decks without repeating organization details.",
973
+ "description": "Reference to an Organization.id in organization; it must name an existing organization (a validation error otherwise). Attribution metadata for hosts: no engine draws it or changes which organization is primary because of it.",
1006
974
  "examples": [
1007
975
  "acme",
1008
976
  "beta",
@@ -1011,7 +979,7 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
1011
979
  },
1012
980
  "socials": {
1013
981
  "$ref": "#/$defs/Socials",
1014
- "description": "Optional social media handles or URLs for the speaker. Authoring metadata: no header/footer field renders speaker socials yet."
982
+ "description": "Optional social media handles or URLs for the speaker. Authoring metadata only: nothing draws speaker socials and there is no built-in variable for them (the 'socials' header/footer field draws the primary organization's socials)."
1015
983
  }
1016
984
  }
1017
985
  },
@@ -1039,211 +1007,6 @@ Deck-level concerns that aren't part of the storyline (audience, tone, takeaway,
1039
1007
  "description": "Platform id (lowercase kebab-case). Common ids include 'linkedin', 'x', 'github', 'youtube', 'instagram', 'facebook', 'tiktok', 'threads', 'mastodon', 'bluesky'."
1040
1008
  }
1041
1009
  },
1042
- "Narrative": {
1043
- "type": "object",
1044
- "description": "Structured storyline used by AI to shape generated content. Mirrors the OPF Narrative Template record at https://openpresentation.org/schema/opf-narrative/v1 (sans '$schema'), so a library record and an inline narrative are interchangeable.\n\nNarrative declares the deck's intended story arc; slides may opt into beats via Slide.beat. The narrative does not constrain slide structure \u2014 validators warn on drift (orphan slides, unused beats) but never error. Slides are the source of truth; narrative is intent that travels with the deck.\n\nWhen 'id' matches a record in the resolved 'narratives' catalog, the inline fields override matching fields on the catalog record (beats merge by beat 'id'). When 'id' doesn't match, this object defines a fully custom inline narrative.\n\nDeck-level concerns that aren't part of the storyline (audience, tone, takeaway, duration) live as siblings on the presentation root rather than inside this object.",
1045
- "properties": {
1046
- "id": {
1047
- "type": "string",
1048
- "pattern": "^[a-z][a-z0-9-]*$",
1049
- "description": "Stable slug identifying this narrative. When it matches a record in the resolved 'narratives' catalog, the catalog record's beats and metadata seed this narrative; inline fields override per-key. When it doesn't match, this is a fully custom inline narrative. Lowercase kebab-case.",
1050
- "examples": [
1051
- "classic-story",
1052
- "problem-solution",
1053
- "scqa",
1054
- "pitch-deck",
1055
- "qbr",
1056
- "weekly-progress",
1057
- "custom-pitch"
1058
- ]
1059
- },
1060
- "name": {
1061
- "type": "string",
1062
- "description": "Human-readable narrative name.",
1063
- "examples": [
1064
- "Classic Story",
1065
- "Problem \u2192 Solution",
1066
- "SCQA",
1067
- "Founder Pitch"
1068
- ]
1069
- },
1070
- "summary": {
1071
- "type": "string",
1072
- "description": "One-sentence description of when and why to use this narrative."
1073
- },
1074
- "description": {
1075
- "type": "string",
1076
- "description": "Longer prose describing the narrative arc and ideal use cases. Used by AI-driven generation to seed deck-level direction.",
1077
- "examples": [
1078
- "Open with the cost of slow agentic workflows, contrast with what becomes possible at sub-second latency, then walk through our architecture and benchmark results, ending with a concrete adoption ask."
1079
- ]
1080
- },
1081
- "audienceFit": {
1082
- "type": "array",
1083
- "items": {
1084
- "type": "string"
1085
- },
1086
- "description": "Audiences this narrative works well for. Free-form strings or 'audiences' catalog ids.",
1087
- "examples": [
1088
- [
1089
- "executive",
1090
- "investor",
1091
- "customer"
1092
- ]
1093
- ]
1094
- },
1095
- "durationRange": {
1096
- "type": "object",
1097
- "description": "Typical talk-length window this narrative suits. Compared by validators against duration.",
1098
- "properties": {
1099
- "minMinutes": {
1100
- "type": "number",
1101
- "exclusiveMinimum": 0
1102
- },
1103
- "maxMinutes": {
1104
- "type": "number",
1105
- "exclusiveMinimum": 0
1106
- }
1107
- }
1108
- },
1109
- "tags": {
1110
- "type": "array",
1111
- "items": {
1112
- "type": "string"
1113
- },
1114
- "description": "Free-form labels for filtering and search.",
1115
- "examples": [
1116
- [
1117
- "business",
1118
- "pitch",
1119
- "internal"
1120
- ]
1121
- ]
1122
- },
1123
- "preview": {
1124
- "type": "object",
1125
- "description": "Visual previews of the narrative, used by picker UIs and inline rendering. All sub-fields are optional.",
1126
- "properties": {
1127
- "src": {
1128
- "type": "string",
1129
- "format": "uri",
1130
- "description": "Main preview image (PNG/JPG)."
1131
- },
1132
- "thumbnailSrc": {
1133
- "type": "string",
1134
- "format": "uri",
1135
- "description": "Smaller thumbnail preview for dense grid views."
1136
- },
1137
- "vectorSrc": {
1138
- "type": "string",
1139
- "format": "uri",
1140
- "description": "SVG / vector preview for crisp scaling at any size."
1141
- }
1142
- }
1143
- },
1144
- "beats": {
1145
- "type": "array",
1146
- "items": {
1147
- "$ref": "#/$defs/NarrativeBeat"
1148
- },
1149
- "description": "Ordered list of beats that make up the narrative arc. When 'id' matches a catalog record, beats here override or extend matching catalog beats by their own 'id'. Beat IDs must be unique within the narrative."
1150
- }
1151
- }
1152
- },
1153
- "NarrativeBeat": {
1154
- "type": "object",
1155
- "description": "A single narrative beat \u2014 a labeled segment of the story arc with a specific dramatic purpose (e.g. 'hook', 'problem', 'evidence', 'ask'). Slides reference beats via Slide.beat. Beats may also carry slide-blueprint hints (slideType, layoutHint, thoughtCues, instructions) that guide the assigned slide.\n\nMirrors the Beat definition in narrative.schema.json (https://openpresentation.org/schema/opf-narrative/v1) so library entries and inline OPF beats are interchangeable.",
1156
- "required": [
1157
- "id",
1158
- "name"
1159
- ],
1160
- "properties": {
1161
- "id": {
1162
- "type": "string",
1163
- "pattern": "^[a-z][a-z0-9-]*$",
1164
- "description": "Stable slug used by Slide.beat to reference this beat. Lowercase kebab-case.",
1165
- "examples": [
1166
- "hook",
1167
- "problem",
1168
- "evidence",
1169
- "ask",
1170
- "next-steps"
1171
- ]
1172
- },
1173
- "name": {
1174
- "type": "string",
1175
- "description": "Human-readable beat name.",
1176
- "examples": [
1177
- "The Hook",
1178
- "The Problem",
1179
- "Why Now",
1180
- "The Ask"
1181
- ]
1182
- },
1183
- "description": {
1184
- "type": "string",
1185
- "description": "Curator-written prose that explains what this beat should accomplish.",
1186
- "examples": [
1187
- "Quantify the pain customers feel today, with one striking stat the audience can repeat afterward."
1188
- ]
1189
- },
1190
- "instructions": {
1191
- "type": "string",
1192
- "description": "Short author-facing instruction for the beat \u2014 typically one phrase. Complements 'description' with a concise directive.",
1193
- "examples": [
1194
- "Capture audience attention",
1195
- "Introduce problem",
1196
- "Detail implementation",
1197
- "Inspire & conclude"
1198
- ]
1199
- },
1200
- "slideCount": {
1201
- "type": "integer",
1202
- "minimum": 1,
1203
- "description": "Optional explicit slide count for this beat. Defaults to 1 when omitted; values >1 are reserved for beats that intentionally span multiple slides. Prefer decomposing a heavy beat into multiple beats over setting a high slideCount. The validator emits a warning if the deck's actual count differs significantly."
1204
- },
1205
- "slideType": {
1206
- "type": "string",
1207
- "enum": [
1208
- "text",
1209
- "list",
1210
- "image",
1211
- "chart",
1212
- "table",
1213
- "video",
1214
- "code",
1215
- "metric",
1216
- "quote",
1217
- "timeline"
1218
- ],
1219
- "description": "Default content kind for the beat's slide. Mirrors ContentPayload.type and helps engines choose a sensible layout when only the beat is specified."
1220
- },
1221
- "layoutHint": {
1222
- "type": "string",
1223
- "description": "Suggested layout id for the beat's opening slide. Resolves the same way as Slide.layout \u2014 against catalogs.layouts and the default catalog at https://www.pptx.gallery/layouts.",
1224
- "examples": [
1225
- "section-divider",
1226
- "title-slide",
1227
- "title-left",
1228
- "two-column",
1229
- "text-left"
1230
- ]
1231
- },
1232
- "thoughtCues": {
1233
- "type": "array",
1234
- "items": {
1235
- "type": "string"
1236
- },
1237
- "description": "Optional speaker or thinking cues attached to the beat. Surfaced in presenter notes.",
1238
- "examples": [
1239
- [
1240
- "What pain is the audience feeling right now?",
1241
- "Why hasn't anyone solved this yet?"
1242
- ]
1243
- ]
1244
- }
1245
- }
1246
- },
1247
1010
  "Design": {
1248
1011
  "type": "object",
1249
1012
  "description": "Visual design system applied to the presentation; individual slides may override fields via Slide.design.",
@@ -1323,10 +1086,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1323
1086
  "tenorite",
1324
1087
  {
1325
1088
  "id": "aptos",
1326
- "heading": {
1327
- "family": "Inter",
1328
- "weight": 700
1329
- }
1089
+ "heading": "Inter"
1330
1090
  }
1331
1091
  ]
1332
1092
  },
@@ -1399,13 +1159,17 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1399
1159
  "$ref": "#/$defs/Watermark"
1400
1160
  }
1401
1161
  ],
1402
- "description": "Optional decorative watermark applied across slides. Use false to suppress an inherited watermark in slide-level design; a string is equivalent to { src: value }.",
1162
+ "description": "Optional decorative watermark applied across slides: an image or a text stamp, in the fixed frame and at the opacity described on Watermark. Use false to suppress an inherited watermark in slide-level design; a string or Asset is the image at opacity 0.08.",
1403
1163
  "examples": [
1404
1164
  false,
1405
1165
  "asset:watermark",
1406
1166
  {
1407
1167
  "src": "asset:watermark",
1408
1168
  "opacity": 0.08
1169
+ },
1170
+ {
1171
+ "text": "DRAFT",
1172
+ "opacity": 0.1
1409
1173
  }
1410
1174
  ]
1411
1175
  },
@@ -1465,7 +1229,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1465
1229
  "center",
1466
1230
  "right"
1467
1231
  ],
1468
- "description": "Default horizontal alignment for title placeholders in resolved layouts."
1232
+ "description": "Default horizontal alignment for title placeholders in resolved layouts. Effective value: the slide's design, then the deck's design, then the layout record's design.titleAlignment, then the engine default."
1469
1233
  },
1470
1234
  "contentAlignment": {
1471
1235
  "type": "string",
@@ -1474,11 +1238,11 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1474
1238
  "center",
1475
1239
  "right"
1476
1240
  ],
1477
- "description": "Default horizontal alignment for body/content regions in resolved layouts."
1241
+ "description": "Default horizontal alignment for body/content regions in resolved layouts. Effective value: the slide's design, then the deck's design, then the layout record's design.contentAlignment, then the engine default. A cover's tag and subtitle follow titleAlignment unless the slide's own design sets contentAlignment."
1478
1242
  },
1479
1243
  "contentBox": {
1480
1244
  "type": "boolean",
1481
- "description": "Whether body/content regions are rendered inside a visible card or surface."
1245
+ "description": "Whether body/content regions are rendered inside a visible card or surface. Effective value: the slide's design, then the deck's design, then the layout record's design.contentBox, then the engine default."
1482
1246
  },
1483
1247
  "slideImage": {
1484
1248
  "oneOf": [
@@ -1647,7 +1411,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1647
1411
  }
1648
1412
  }
1649
1413
  ],
1650
- "description": "Optional slide-level image, separate from content images. It applies to a slide that sets its own design.slideImage, and to slides whose layout declares slideImage: true or whose root image is the same source as a deck-level value. A root image with the same source becomes the slide image instead of a content item. Blur, shadows, soft edges, background removal and device artwork are not part of the treatment vocabulary; see docs/image-treatments.md."
1414
+ "description": "Optional slide-level image, separate from content images. It applies to a slide that sets its own design.slideImage, and to slides whose layout record sets design.slideImage or whose root image is the same source as a deck-level value. A root image with the same source becomes the slide image instead of a content item. Blur, shadows, soft edges, background removal and device artwork are not part of the treatment vocabulary; see docs/image-treatments.md."
1651
1415
  },
1652
1416
  "contentDirection": {
1653
1417
  "type": "string",
@@ -1655,7 +1419,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1655
1419
  "horizontal",
1656
1420
  "vertical"
1657
1421
  ],
1658
- "description": "Axis along which parallel body content is arranged. Sets the root arrangement mode of blocks and root payloads when no composition.mode is set on the slide or on its layout record: 'vertical' is column, 'horizontal' is row. Precedence: composition.mode (the slide's own, else the layout record's geometry contract), then this value (slide design, then deck design), then the layout record's slideLayoutDirection, then automatic selection. A layout that carries a composition.mode keeps its grid or direction whatever this value says. Promoted regions (left, top:left, ...) keep their explicit geometry and nested groups keep their own composition."
1422
+ "description": "Axis along which parallel body content is arranged. Sets the root arrangement mode of blocks and root payloads when no composition.mode is set on the slide or on its layout record: 'vertical' is column, 'horizontal' is row. Precedence: composition.mode (the slide's own, else the layout record's geometry contract), then the effective value (slide design, then deck design, then the layout record's design.contentDirection), then automatic selection. A layout that carries a composition.mode keeps its grid or direction whatever this value says. Promoted regions (left, top:left, ...) keep their explicit geometry and nested groups keep their own composition."
1659
1423
  },
1660
1424
  "chartPrimary": {
1661
1425
  "type": "string",
@@ -1666,7 +1430,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1666
1430
  "left",
1667
1431
  "right"
1668
1432
  ],
1669
- "description": "Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's contentTypeChartPrimary. When the slide has no promoted regions and no composition.mode of its own, and its root nodes mix at least one chart with other content, the first chart becomes a primary track and the other nodes form one synthetic sub-grid: 'left'/'right' is a two-track row and 'top'/'bottom' a two-track column, weighted 3:2 in favor of the chart; explicit root columns and weights are ignored while it applies. 'none' (the default) keeps the ordinary automatic grid with equal weight."
1433
+ "description": "Where the primary chart sits relative to supporting content. Effective value: slide design, then deck design, then the layout record's design.chartPrimary. When the slide has no promoted regions and no composition.mode of its own, and its root nodes mix at least one chart with other content, the first chart becomes a primary track and the other nodes form one synthetic sub-grid: 'left'/'right' is a two-track row and 'top'/'bottom' a two-track column, weighted 3:2 in favor of the chart; explicit root columns and weights are ignored while it applies. 'none' (the default) keeps the ordinary automatic grid with equal weight."
1670
1434
  },
1671
1435
  "imageFill": {
1672
1436
  "type": "string",
@@ -1674,7 +1438,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1674
1438
  "crop",
1675
1439
  "fit"
1676
1440
  ],
1677
- "description": "How picture placeholders fill their allocated region."
1441
+ "description": "How images fill their allocated region: crop covers the region, fit shows the whole image. Effective value: the slide's design, then the deck's design, then the layout record's design.imageFill, then the engine default."
1678
1442
  },
1679
1443
  "listBullet": {
1680
1444
  "type": "string",
@@ -1682,7 +1446,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1682
1446
  "character",
1683
1447
  "image"
1684
1448
  ],
1685
- "description": "Marker style for items and bullets lists. 'character' (the default) draws the glyph marker. 'image' draws the deck's icon logo (a slide's design.logo, then design.logo, then the primary organization's logo; light variants on dark backgrounds) as a picture bullet: a square of the marker's font size whose bottom sits on the marker baseline, so list geometry does not change. Without a logo the glyph is drawn and the engine reports unresolved-content at this field."
1449
+ "description": "Marker style for items and bullets lists. Effective value: the slide's design, then the deck's design, then the layout record's design.listBullet, then 'character'. 'character' (the default) draws the glyph marker. 'image' draws the deck's icon logo (a slide's design.logo, then design.logo, then the primary organization's logo; light variants on dark backgrounds) as a picture bullet: a square of the marker's font size whose bottom sits on the marker baseline, so list geometry does not change. Without a logo the glyph is drawn and the engine reports unresolved-content at this field."
1686
1450
  }
1687
1451
  }
1688
1452
  },
@@ -1752,10 +1516,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1752
1516
  "aptos",
1753
1517
  {
1754
1518
  "id": "aptos",
1755
- "heading": {
1756
- "family": "Inter",
1757
- "weight": 700
1758
- }
1519
+ "heading": "Inter"
1759
1520
  }
1760
1521
  ]
1761
1522
  },
@@ -1806,7 +1567,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1806
1567
  },
1807
1568
  "ColorScheme": {
1808
1569
  "type": "object",
1809
- "description": "Color palette used by the design system. The slot fields (accent1-accent6, dark1, dark2, light1, light2, hyperlink, followedHyperlink) mirror color-scheme.schema.json (https://openpresentation.org/schema/opf-color-scheme/v1) so library records and inline OPF overrides are interchangeable on those fields.\n\nTwo parallel models are supported and may be mixed:\n- OOXML slots - the 12-slot PowerPoint theme model that round-trips directly to OOXML. Use these for full control over the palette as PowerPoint sees it.\n- Abstract roles (primary, secondary, accent, background, surface, text, textSecondary, custom) - OPF-specific semantic aliases the engine maps onto the OOXML slots. Convenient for inline overrides without thinking in slot numbers; not part of the catalog record schema.\n\nIn design.colorScheme, 'id' resolves a colorSchemes catalog record as the base; slot and role overrides on the same object take precedence over the resolved scheme. The string shorthand on design.colorScheme is equivalent to setting only 'id'.",
1570
+ "description": "Color palette used by the design system. Every slot and role is a hex color ('#RGB', '#RRGGBB' or '#RRGGBBAA'); a color-scheme name or a 'var:<id>' reference is not valid here, because those resolve through the scheme. The slot fields (accent1-accent6, dark1, dark2, light1, light2, hyperlink, followedHyperlink) mirror color-scheme.schema.json (https://openpresentation.org/schema/opf-color-scheme/v1) so library records and inline OPF overrides are interchangeable on those fields.\n\nTwo parallel models are supported and may be mixed:\n- OOXML slots - the 12-slot PowerPoint theme model that round-trips directly to OOXML. Use these for full control over the palette as PowerPoint sees it.\n- Abstract roles (primary, secondary, accent, background, surface, text, textSecondary) - OPF-specific semantic aliases the engine maps onto the OOXML slots. Convenient for inline overrides without thinking in slot numbers; not part of the catalog record schema.\n\nIn design.colorScheme, 'id' resolves a colorSchemes catalog record as the base; slot and role overrides on the same object take precedence over the resolved scheme. The string shorthand on design.colorScheme is equivalent to setting only 'id'.",
1810
1571
  "properties": {
1811
1572
  "id": {
1812
1573
  "type": "string",
@@ -1822,7 +1583,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1822
1583
  ]
1823
1584
  },
1824
1585
  "accent1": {
1825
- "type": "string",
1586
+ "$ref": "#/$defs/HexColor",
1826
1587
  "description": "Accent 1 color (hex). Mirrors the OOXML accent1 slot.",
1827
1588
  "examples": [
1828
1589
  "#2874A6",
@@ -1831,7 +1592,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1831
1592
  ]
1832
1593
  },
1833
1594
  "accent2": {
1834
- "type": "string",
1595
+ "$ref": "#/$defs/HexColor",
1835
1596
  "description": "Accent 2 color (hex). Mirrors the OOXML accent2 slot.",
1836
1597
  "examples": [
1837
1598
  "#1B4F72",
@@ -1840,7 +1601,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1840
1601
  ]
1841
1602
  },
1842
1603
  "accent3": {
1843
- "type": "string",
1604
+ "$ref": "#/$defs/HexColor",
1844
1605
  "description": "Accent 3 color (hex). Mirrors the OOXML accent3 slot.",
1845
1606
  "examples": [
1846
1607
  "#5499C7",
@@ -1849,7 +1610,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1849
1610
  ]
1850
1611
  },
1851
1612
  "accent4": {
1852
- "type": "string",
1613
+ "$ref": "#/$defs/HexColor",
1853
1614
  "description": "Accent 4 color (hex). Mirrors the OOXML accent4 slot.",
1854
1615
  "examples": [
1855
1616
  "#7BDBB2",
@@ -1858,7 +1619,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1858
1619
  ]
1859
1620
  },
1860
1621
  "accent5": {
1861
- "type": "string",
1622
+ "$ref": "#/$defs/HexColor",
1862
1623
  "description": "Accent 5 color (hex). Mirrors the OOXML accent5 slot.",
1863
1624
  "examples": [
1864
1625
  "#3AC67A",
@@ -1867,7 +1628,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1867
1628
  ]
1868
1629
  },
1869
1630
  "accent6": {
1870
- "type": "string",
1631
+ "$ref": "#/$defs/HexColor",
1871
1632
  "description": "Accent 6 color (hex). Mirrors the OOXML accent6 slot.",
1872
1633
  "examples": [
1873
1634
  "#24A89E",
@@ -1876,14 +1637,14 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1876
1637
  ]
1877
1638
  },
1878
1639
  "dark1": {
1879
- "type": "string",
1640
+ "$ref": "#/$defs/HexColor",
1880
1641
  "description": "Dark 1 color (hex). Typically the deepest neutral; OOXML dark1.",
1881
1642
  "examples": [
1882
1643
  "#000000"
1883
1644
  ]
1884
1645
  },
1885
1646
  "dark2": {
1886
- "type": "string",
1647
+ "$ref": "#/$defs/HexColor",
1887
1648
  "description": "Dark 2 color (hex). Secondary dark; OOXML dark2.",
1888
1649
  "examples": [
1889
1650
  "#011842",
@@ -1891,14 +1652,14 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1891
1652
  ]
1892
1653
  },
1893
1654
  "light1": {
1894
- "type": "string",
1655
+ "$ref": "#/$defs/HexColor",
1895
1656
  "description": "Light 1 color (hex). Typically the slide canvas; OOXML lt1.",
1896
1657
  "examples": [
1897
1658
  "#FFFFFF"
1898
1659
  ]
1899
1660
  },
1900
1661
  "light2": {
1901
- "type": "string",
1662
+ "$ref": "#/$defs/HexColor",
1902
1663
  "description": "Light 2 color (hex). Secondary light surface; OOXML lt2.",
1903
1664
  "examples": [
1904
1665
  "#F0F0F0",
@@ -1906,15 +1667,15 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1906
1667
  ]
1907
1668
  },
1908
1669
  "hyperlink": {
1909
- "type": "string",
1910
- "description": "Hyperlink color (hex). OOXML hlink.",
1670
+ "$ref": "#/$defs/HexColor",
1671
+ "description": "Hyperlink color (hex). OOXML hlink. Link runs with no color of their own are drawn underlined in it, in the preview and in PowerPoint, unless it has under 4.5:1 contrast against the slide background, then in the slide text color.",
1911
1672
  "examples": [
1912
1673
  "#0563C1",
1913
1674
  "#0066CC"
1914
1675
  ]
1915
1676
  },
1916
1677
  "followedHyperlink": {
1917
- "type": "string",
1678
+ "$ref": "#/$defs/HexColor",
1918
1679
  "description": "Followed-hyperlink color (hex). OOXML folHlink.",
1919
1680
  "examples": [
1920
1681
  "#954F72",
@@ -1922,7 +1683,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1922
1683
  ]
1923
1684
  },
1924
1685
  "primary": {
1925
- "type": "string",
1686
+ "$ref": "#/$defs/HexColor",
1926
1687
  "description": "Abstract role: primary brand color (hex). The engine maps this onto an OOXML accent slot when serializing.",
1927
1688
  "examples": [
1928
1689
  "#1E40AF",
@@ -1930,7 +1691,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1930
1691
  ]
1931
1692
  },
1932
1693
  "secondary": {
1933
- "type": "string",
1694
+ "$ref": "#/$defs/HexColor",
1934
1695
  "description": "Abstract role: secondary brand color (hex).",
1935
1696
  "examples": [
1936
1697
  "#3B82F6",
@@ -1938,7 +1699,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1938
1699
  ]
1939
1700
  },
1940
1701
  "accent": {
1941
- "type": "string",
1702
+ "$ref": "#/$defs/HexColor",
1942
1703
  "description": "Abstract role: accent color used for highlights and emphasis (hex).",
1943
1704
  "examples": [
1944
1705
  "#F59E0B",
@@ -1946,56 +1707,42 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
1946
1707
  ]
1947
1708
  },
1948
1709
  "background": {
1949
- "type": "string",
1950
- "description": "Abstract role: default slide background color (hex). The engine maps this to one of light1 / light2 / dark1 / dark2 when serializing.",
1710
+ "$ref": "#/$defs/HexColor",
1711
+ "description": "Abstract role: default slide background color (hex), used when the design names no single-color background (and for gradient and picture backgrounds). Overrides light1 as that default.",
1951
1712
  "examples": [
1952
1713
  "#FFFFFF",
1953
1714
  "#0B1220"
1954
1715
  ]
1955
1716
  },
1956
1717
  "surface": {
1957
- "type": "string",
1958
- "description": "Abstract role: color for elevated surfaces such as cards and panels (hex).",
1718
+ "$ref": "#/$defs/HexColor",
1719
+ "description": "Abstract role: color for elevated surfaces such as cards and panels (hex). Overrides the default of light2 (dark2 on a dark slide).",
1959
1720
  "examples": [
1960
1721
  "#F8FAFC",
1961
1722
  "#1E293B"
1962
1723
  ]
1963
1724
  },
1964
1725
  "text": {
1965
- "type": "string",
1966
- "description": "Abstract role: primary body text color (hex).",
1726
+ "$ref": "#/$defs/HexColor",
1727
+ "description": "Abstract role: primary body text color (hex). Overrides dark1 on a light slide only; a dark slide always uses light1.",
1967
1728
  "examples": [
1968
1729
  "#0F172A",
1969
1730
  "#F8FAFC"
1970
1731
  ]
1971
1732
  },
1972
1733
  "textSecondary": {
1973
- "type": "string",
1974
- "description": "Abstract role: secondary or muted text color used for captions and supporting copy (hex).",
1734
+ "$ref": "#/$defs/HexColor",
1735
+ "description": "Abstract role: secondary or muted text color used for captions and supporting copy (hex). Overrides the default of dark2 (light2 on a dark slide).",
1975
1736
  "examples": [
1976
1737
  "#475569",
1977
1738
  "#94A3B8"
1978
1739
  ]
1979
- },
1980
- "custom": {
1981
- "type": "object",
1982
- "additionalProperties": {
1983
- "type": "string"
1984
- },
1985
- "description": "Map of custom named colors for advanced or theme-specific use.",
1986
- "examples": [
1987
- {
1988
- "success": "#10B981",
1989
- "warning": "#F59E0B",
1990
- "danger": "#EF4444"
1991
- }
1992
- ]
1993
1740
  }
1994
1741
  }
1995
1742
  },
1996
1743
  "FontScheme": {
1997
1744
  "type": "object",
1998
- "description": "Typography selections used by the design system. The pair fields (major, minor) and refinement fields (type, app, languageFamily) mirror font-scheme.schema.json (https://openpresentation.org/schema/opf-font-scheme/v1) so library records and inline OPF overrides are interchangeable on those fields.\n\nTwo parallel models are supported and may be mixed:\n- OOXML pairs (major, minor) - heading and body family names that round-trip directly to PowerPoint majorFont/minorFont entries.\n- Abstract roles (heading, body, accent, code) - OPF-specific Font objects the engine maps onto the OOXML pair when serializing. Convenient for inline overrides and for adding accent/code roles that don't have a direct OOXML slot. Catalog records may also carry 'code' (for example the consolas and courier-new records); heading, body and accent are not part of the catalog record schema.\n\nIn design.fontScheme, 'id' resolves a fontSchemes catalog record as the base; pair and role overrides on the same object take precedence over the resolved scheme. The string shorthand on design.fontScheme is equivalent to setting only 'id'.",
1745
+ "description": "Typography selections used by the design system. The pair fields (major, minor) and refinement fields (type, app, languageFamily) mirror font-scheme.schema.json (https://openpresentation.org/schema/opf-font-scheme/v1) so library records and inline OPF overrides are interchangeable on those fields.\n\nTwo parallel models are supported and may be mixed:\n- OOXML pairs (major, minor) - heading and body family names that round-trip directly to PowerPoint majorFont/minorFont entries.\n- Abstract roles (heading, body, accent, code) - OPF-specific font family names the engine maps onto the OOXML pair when serializing. Convenient for inline overrides and for adding accent/code roles that don't have a direct OOXML slot. Catalog records may also carry 'code' (for example the consolas and courier-new records); heading, body and accent are not part of the catalog record schema. A role is a family name only: weight, style and tracking come from the text styles, and PowerPoint has no numeric weight.\n\nIn design.fontScheme, 'id' resolves a fontSchemes catalog record as the base; pair and role overrides on the same object take precedence over the resolved scheme. The string shorthand on design.fontScheme is equivalent to setting only 'id'.",
1999
1746
  "properties": {
2000
1747
  "id": {
2001
1748
  "type": "string",
@@ -2095,72 +1842,54 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2095
1842
  "app": {
2096
1843
  "type": "string",
2097
1844
  "enum": [
2098
- "PowerPoint",
2099
- "Google Slides"
1845
+ "powerpoint",
1846
+ "google-slides"
2100
1847
  ],
2101
- "description": "Target application this font pairing is intended for."
1848
+ "description": "Target application this font pairing is intended for. Metadata for pickers and catalog filters: no engine changes its output by it."
2102
1849
  },
2103
1850
  "languageFamily": {
2104
1851
  "type": "string",
2105
1852
  "enum": [
2106
1853
  "latin",
2107
1854
  "ea",
2108
- "cs"
1855
+ "cs",
1856
+ "eastAsian",
1857
+ "complexScript"
2109
1858
  ],
2110
- "description": "OOXML font-language family this scheme is intended for: 'latin' for Latin-script content, 'ea' for East Asian scripts, 'cs' for Complex Scripts. As the design font scheme, an 'ea' or 'cs' scheme also fills that script slot with its own major/minor families when its languages list is empty or names the presentation language."
1859
+ "description": "Font-language family this scheme is intended for: 'latin' for Latin-script content, 'ea' (or 'eastAsian', the same value) for East Asian scripts, 'cs' (or 'complexScript', the same value) for Complex Scripts. The long names match the 'eastAsian' and 'complexScript' slot keys; the short names match the OOXML a:ea and a:cs elements; core reads both spellings as one value. As the design font scheme, an 'ea'/'eastAsian' or 'cs'/'complexScript' scheme also fills that script slot with its own major/minor families when its languages list is empty or names the presentation language."
2111
1860
  },
2112
1861
  "heading": {
2113
- "$ref": "#/$defs/Font",
2114
- "description": "Abstract role: font used for slide titles and headings. Maps onto the OOXML major slot when serializing."
1862
+ "type": "string",
1863
+ "description": "Abstract role: font family name used for slide titles and headings. Maps onto the OOXML major slot when serializing."
2115
1864
  },
2116
1865
  "body": {
2117
- "$ref": "#/$defs/Font",
2118
- "description": "Abstract role: font used for body copy. Maps onto the OOXML minor slot when serializing."
1866
+ "type": "string",
1867
+ "description": "Abstract role: font family name used for body copy. Maps onto the OOXML minor slot when serializing."
2119
1868
  },
2120
1869
  "accent": {
2121
- "$ref": "#/$defs/Font",
2122
- "description": "Abstract role: font used for accent text. When set, the slide tag (eyebrow) and the quote body use this family instead of the body and heading families; nothing else changes. resolveFontFamilies() returns it as accent only when the scheme defines it. No direct OOXML slot: PPTX export writes it on those runs, and the theme fonts stay major/minor."
1870
+ "type": "string",
1871
+ "description": "Abstract role: font family name used for accent text. When set, the slide tag (eyebrow) and the quote body use this family instead of the body and heading families; nothing else changes. resolveFontFamilies() returns it as accent only when the scheme defines it. No direct OOXML slot: PPTX export writes it on those runs, and the theme fonts stay major/minor."
2123
1872
  },
2124
1873
  "code": {
2125
- "$ref": "#/$defs/Font",
2126
- "description": "Abstract role: monospaced font used for code blocks and inline code. No direct OOXML slot. Resolution: this override, then the resolved catalog record's 'code' (for example Consolas for the consolas scheme), then the engine fallback Roboto Mono. Heading and body families are never used as the code fallback."
1874
+ "type": "string",
1875
+ "description": "Abstract role: monospaced font family name used for code blocks and for inline code runs (TextRun.code). No direct OOXML slot. Resolution: this override, then the resolved catalog record's 'code' (for example Consolas for the consolas scheme), then the engine fallback Roboto Mono. Heading and body families are never used as the code fallback."
2127
1876
  }
2128
1877
  }
2129
1878
  },
2130
- "Font": {
2131
- "type": "object",
2132
- "description": "Specification for a single font role.",
2133
- "required": [
2134
- "family"
2135
- ],
2136
- "properties": {
2137
- "family": {
2138
- "type": "string",
2139
- "description": "Font family name.",
2140
- "examples": [
2141
- "Inter",
2142
- "Roboto",
2143
- "Source Serif Pro",
2144
- "JetBrains Mono"
2145
- ]
2146
- },
2147
- "weight": {
2148
- "type": "number",
2149
- "description": "Numeric font weight (e.g., 400 for regular, 700 for bold)."
2150
- },
2151
- "style": {
2152
- "type": "string",
2153
- "enum": [
2154
- "normal",
2155
- "italic"
2156
- ],
2157
- "description": "Font style."
1879
+ "SlideDesign": {
1880
+ "description": "A slide's design: every Design field except dimensions. A PPTX has one slide size, so the size is set once, on the deck's design.dimensions (or its theme), and a slide's design cannot set it. A slide-level theme whose resolved dimensions differ from the deck's is a validate warning (opf/slide-theme-dimensions); exporting such a deck to PPTX fails with mixed-slide-dimensions.",
1881
+ "allOf": [
1882
+ {
1883
+ "$ref": "#/$defs/Design"
2158
1884
  },
2159
- "letterSpacing": {
2160
- "type": "number",
2161
- "description": "Letter spacing (tracking) in ems."
1885
+ {
1886
+ "not": {
1887
+ "required": [
1888
+ "dimensions"
1889
+ ]
1890
+ }
2162
1891
  }
2163
- }
1892
+ ]
2164
1893
  },
2165
1894
  "DimensionPreset": {
2166
1895
  "type": "string",
@@ -2168,12 +1897,15 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2168
1897
  "16:9",
2169
1898
  "4:3",
2170
1899
  "16:10",
1900
+ "1:1",
1901
+ "4:5",
1902
+ "9:16",
2171
1903
  "letter",
2172
1904
  "a4",
2173
1905
  "widescreen",
2174
1906
  "standard"
2175
1907
  ],
2176
- "description": "Named dimension preset; chooses both aspect ratio and physical size. 'widescreen' is an alias for 16:9 in PowerPoint widescreen size; 'standard' is an alias for 4:3 in PowerPoint standard size."
1908
+ "description": "Named dimension preset; chooses both aspect ratio and physical size. 'widescreen' is an alias for 16:9 in PowerPoint widescreen size; 'standard' is an alias for 4:3 in PowerPoint standard size. The social-feed ratios keep the widescreen short edge of 7.5 in: 1:1 is 7.5 x 7.5 in, 4:5 is 7.5 x 9.375 in and 9:16 is 7.5 x 13.333 in (portrait)."
2177
1909
  },
2178
1910
  "Dimensions": {
2179
1911
  "type": "object",
@@ -2239,6 +1971,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2239
1971
  "accent",
2240
1972
  "background",
2241
1973
  "surface",
1974
+ "surfaceAlt",
2242
1975
  "text",
2243
1976
  "textSecondary"
2244
1977
  ]
@@ -2248,7 +1981,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2248
1981
  "pattern": "^var:[a-z][a-z0-9-]*$"
2249
1982
  }
2250
1983
  ],
2251
- "description": "A color value or reference, enforced on styled table cell fill and text colors and on cell border colors. Three forms:\n- Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.\n- Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes.\n- Variable reference: 'var:<id>' into the top-level variables map.\n\nNames keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.",
1984
+ "description": "A color value or reference, enforced on styled table cell fill and text colors, cell border colors, solid background colors, gradient stop colors and pattern foreground and background colors. Three forms:\n- Literal hex: '#RGB', '#RRGGBB', or '#RRGGBBAA'.\n- Color-scheme name, resolved through the effective color scheme after design resolution: an OOXML slot ('accent1'-'accent6', 'dark1', 'dark2', 'light1', 'light2', 'hyperlink', 'followedHyperlink') or an abstract role ('primary', 'secondary', 'accent', 'background', 'surface', 'surfaceAlt', 'text', 'textSecondary'). Roles resolve through the same role-to-slot mapping engines already apply to color schemes. 'surfaceAlt' has no slot: it is the alternate surface of banded table rows, derived from 'surface' and 'text' (the surface mixed a tenth of the way towards the text color, further when needed, so it always differs visibly from 'surface' and keeps 4.5:1 text contrast; core surfaceAltColor).\n- Variable reference: 'var:<id>' into the top-level variables map.\n\nNames keep content theme-portable: re-theming the deck updates every named reference, where a literal hex stays frozen. Unknown 'var:' ids produce a validation warning, never an error, and engines fall back to their default text color. TextRun.color documents the same three forms but remains an open string so imported decks with unrecognized run colors stay valid; validators warn there instead of erroring.",
2252
1985
  "examples": [
2253
1986
  "#0F4C81",
2254
1987
  "accent2",
@@ -2264,7 +1997,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2264
1997
  "additionalProperties": {
2265
1998
  "$ref": "#/$defs/Variable"
2266
1999
  },
2267
- "description": "Named variables, keyed by stable kebab-case id. A variable is a typed, named value the deck declares once and uses in many places: a color ('var:<id>' in color fields, the original use), or content that fills a template (text, number, date, image, url, list). Content is referenced inline as '{{<id>}}' inside any string, or whole as 'var:<id>' in a field of the matching type; '\\{{' writes a literal '{{'. A hex string is shorthand for a color variable. A variable with no 'value' is unfilled: expected in a template (root 'template': true), an error in a normal deck. Engines resolve variables with resolveVariables() before composing, rendering or exporting, so a template plus its values previews and exports exactly like the equivalent hand-written deck. See docs/templates-and-variables.md.",
2000
+ "description": "Named variables, keyed by stable kebab-case id. A variable is a typed, named value the deck declares once and uses in many places: a color ('var:<id>' in color fields, the original use), or content that fills a template (text, number, date, image, url, list). Content is referenced inline as '{{<id>}}' inside any string, or whole as 'var:<id>' in a field of the matching type; '\\{{' writes a literal '{{'. A hex string is shorthand for a color variable. A variable with no 'value' is unfilled: expected in a template (root 'template': true), an error in a normal deck. Engines resolve variables with resolveVariables() before composing, rendering or exporting, so a template plus its values previews and exports exactly like the equivalent hand-written deck. Read-only built-in variables come from the deck's own metadata and use dotted names that a user id can never take: 'deck.name', 'deck.description', 'deck.author', 'speaker.name|title|email|phone|bio|photo' (first speaker), 'speakers' (every speaker's name, a list), 'organization.name|legalName|tagline|domain|email|phone|logo' (primary organization), and 'speaker.<id>.<field>' / 'organization.<id>.<field>' by id. They are written the same two ways ('{{speaker.name}}', 'var:speaker.photo'), are never declared, and an unknown built-in path is a validation error; a known one with no source value resolves to nothing with a warning. The id 'speakers' is reserved. See docs/templates-and-variables.md.",
2268
2001
  "examples": [
2269
2002
  {
2270
2003
  "risk": "#B42318",
@@ -2466,20 +2199,26 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2466
2199
  "description": "Illustrative number shown in fill forms and used when a template is previewed with examples. Never written to output."
2467
2200
  },
2468
2201
  "format": {
2469
- "type": "string",
2470
- "description": "Display pattern used by '{{<id>}}'. A literal prefix, a numeric part of '#', '0', ',' and '.', and a literal suffix. '0' pads digits, '#' is optional, ',' groups thousands, digits after '.' fix the decimals ('0' required, '#' optional), and a '%' in the suffix scales by 100. English separators only. Absent: the shortest decimal form.",
2471
- "examples": [
2472
- "#,##0",
2473
- "0.0",
2474
- "$#,##0.00",
2475
- "0.#%",
2476
- "#,##0.0M"
2477
- ]
2202
+ "$ref": "#/$defs/NumberFormat",
2203
+ "description": "Display pattern used by '{{<id>}}' (the shared NumberFormat syntax). A literal prefix, a numeric part of '#', '0', ',' and '.', and a literal suffix. '0' pads digits, '#' is optional, ',' groups thousands, digits after '.' fix the decimals ('0' required, '#' optional), and a '%' in the suffix scales by 100. English separators only. Absent: the shortest decimal form."
2478
2204
  }
2479
2205
  },
2480
2206
  "description": "A number. '{{<id>}}' inserts it as text using 'format'; 'var:<id>' as a whole field supplies the number itself (chart values, font sizes)."
2481
2207
  },
2482
- "DateVariable": {
2208
+ "NumberFormat": {
2209
+ "type": "string",
2210
+ "description": "Number display pattern, shared by NumberVariable.format, data column formats (DataColumn.format) and table cell formats (StyledTableCell.format). An optional literal prefix, a numeric part of '#', '0', ',' and '.', and an optional literal suffix. '0' pads digits, '#' is optional, ',' groups thousands, digits after '.' fix the decimals ('0' required, '#' optional), and a '%' in the prefix or suffix multiplies the value by 100. English separators only. A format applies only to number values; strings, booleans, null and rich runs display unchanged. A column or cell format that is not a valid pattern is a 'number-format-invalid' error. The PPTX export writes it as the equivalent Excel number format code.",
2211
+ "examples": [
2212
+ "#,##0",
2213
+ "0.0",
2214
+ "$#,##0.00",
2215
+ "0.#%",
2216
+ "0%",
2217
+ "#,##0.0M",
2218
+ "#,##0 units"
2219
+ ]
2220
+ },
2221
+ "DateVariable": {
2483
2222
  "type": "object",
2484
2223
  "required": [
2485
2224
  "type"
@@ -2711,7 +2450,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2711
2450
  "description": "Fixed solid background fill."
2712
2451
  },
2713
2452
  "color": {
2714
- "type": "string",
2453
+ "$ref": "#/$defs/ColorRef",
2715
2454
  "description": "Fixed solid fill color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef, resolved against the effective color scheme and the deck variables). Use { type: 'theme', slot: ... } for PowerPoint's four theme-controlled background choices.",
2716
2455
  "examples": [
2717
2456
  "#FFFFFF",
@@ -2750,7 +2489,8 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2750
2489
  },
2751
2490
  "stops": {
2752
2491
  "type": "array",
2753
- "description": "Ordered list of color stops along the gradient.",
2492
+ "minItems": 2,
2493
+ "description": "Ordered list of color stops along the gradient. A gradient needs at least two stops.",
2754
2494
  "items": {
2755
2495
  "type": "object",
2756
2496
  "description": "Color stop along the gradient.",
@@ -2760,7 +2500,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2760
2500
  ],
2761
2501
  "properties": {
2762
2502
  "color": {
2763
- "type": "string",
2503
+ "$ref": "#/$defs/ColorRef",
2764
2504
  "description": "Stop color: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).",
2765
2505
  "examples": [
2766
2506
  "#1E40AF",
@@ -2865,14 +2605,14 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2865
2605
  ]
2866
2606
  },
2867
2607
  "foregroundColor": {
2868
- "type": "string",
2608
+ "$ref": "#/$defs/ColorRef",
2869
2609
  "description": "Foreground color for the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).",
2870
2610
  "examples": [
2871
2611
  "#0F172A"
2872
2612
  ]
2873
2613
  },
2874
2614
  "backgroundColor": {
2875
- "type": "string",
2615
+ "$ref": "#/$defs/ColorRef",
2876
2616
  "description": "Background color behind the pattern: a hex string, a color-scheme slot or role name, or a var:<id> variable reference (a ColorRef).",
2877
2617
  "examples": [
2878
2618
  "#FFFFFF"
@@ -2945,15 +2685,36 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2945
2685
  },
2946
2686
  "Watermark": {
2947
2687
  "type": "object",
2948
- "description": "Decorative watermark image and rendering options. Use design.watermark = false to disable an inherited watermark.",
2688
+ "description": "Decorative watermark: an image ('src') or a text stamp ('text'), exactly one of the two, with its opacity. An image is drawn once per slide, contained and centered in a fixed frame (the middle 40% of the slide width and height, from 30% to 70% on each axis). A text watermark is one line of text in the heading font and the theme text color at the given opacity, centered on the slide and rotated 30 degrees counterclockwise (rising to the right), sized to span at most 70% of the slide width and at most 30% of the shorter slide edge in height; it is drawn behind the slide content and above the background and slide image. There is no option to move, scale, rotate or tile either form. PPTX export writes one native picture (image) or one native text box (text) per slide with the opacity as alpha, and import restores the watermark. A string or Asset (no opacity) is the image watermark at opacity 0.08. A watermark object needs opacity and exactly one of src and text; use a plain string or Asset for an image at the default opacity. Use design.watermark = false to disable an inherited watermark.",
2949
2689
  "additionalProperties": false,
2950
2690
  "required": [
2951
2691
  "opacity"
2952
2692
  ],
2693
+ "oneOf": [
2694
+ {
2695
+ "required": [
2696
+ "src"
2697
+ ]
2698
+ },
2699
+ {
2700
+ "required": [
2701
+ "text"
2702
+ ]
2703
+ }
2704
+ ],
2953
2705
  "properties": {
2954
2706
  "src": {
2955
2707
  "type": "string",
2956
- "description": "Source for the watermark image."
2708
+ "description": "Source for the watermark image: an 'asset:<id>' reference, HTTPS URL, data URI, relative path or local path, as for Asset.src. Exactly one of src and text is set."
2709
+ },
2710
+ "text": {
2711
+ "type": "string",
2712
+ "minLength": 1,
2713
+ "description": "Text for a text watermark, such as DRAFT or CONFIDENTIAL; line breaks are drawn as spaces. Exactly one of src and text is set.",
2714
+ "examples": [
2715
+ "DRAFT",
2716
+ "CONFIDENTIAL"
2717
+ ]
2957
2718
  },
2958
2719
  "opacity": {
2959
2720
  "type": "number",
@@ -2983,7 +2744,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
2983
2744
  },
2984
2745
  "HeaderFooterItem": {
2985
2746
  "type": "object",
2986
- "description": "One header/footer zone. Every configured field renders; fields in one zone stack top to bottom in the order logo, image, text, organization, socials, section, slide number, date. Put a date and a slide number in different zones to keep each on the zone's single line.",
2747
+ "description": "One header/footer zone. Every configured field renders; fields in one zone stack top to bottom in the order logo, image, text, organization, speaker, socials, section, slide number, date. Put a date and a slide number in different zones to keep each on the zone's single line.",
2987
2748
  "properties": {
2988
2749
  "logo": {
2989
2750
  "type": "boolean",
@@ -3049,7 +2810,11 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3049
2810
  },
3050
2811
  "organization": {
3051
2812
  "type": "boolean",
3052
- "description": "Whether to render the primary organization name from organization."
2813
+ "description": "Whether to render the primary organization's name from organization (role 'primary', else the first organization)."
2814
+ },
2815
+ "speaker": {
2816
+ "type": "boolean",
2817
+ "description": "Whether to render the primary (first) speaker's name and title from speaker, joined as 'Ada Lovelace, CTO' (just the name when the speaker has no title). It is generated text: without a named speaker the engine reports unresolved-content at this field. PPTX export writes it as static text and import restores the flag from the file's furniture provenance."
3053
2818
  },
3054
2819
  "section": {
3055
2820
  "type": "boolean",
@@ -3104,11 +2869,11 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3104
2869
  }
3105
2870
  }
3106
2871
  ],
3107
- "description": "Optional reference to one or more narrative beats (each value matches an id from narrative.beats or the resolved template). A single string declares the slide's primary beat; an array declares that one slide covers multiple beats. Declares the slide's role in the story arc; does not constrain ordering or structure. Slides without a beat are valid; multiple slides may share a beat."
2872
+ "description": "Optional reference to one or more beats of the deck's narrative (each value is the id of a beat in the narrative record that the root 'narrative' resolves to). A single string declares the slide's primary beat; an array declares that one slide covers multiple beats. Declares the slide's role in the story arc; does not constrain ordering or structure. Core validate warns about a beat id the resolved narrative does not define, and reports a beat that no slide references. Slides without a beat are valid; multiple slides may share a beat."
3108
2873
  },
3109
2874
  "layout": {
3110
2875
  "type": "string",
3111
- "description": "Optional slide layout reference. Resolves to the 'id' of a 'layouts' catalog record. When omitted, engines infer a layout from the slide's root payload or promoted region keys. Accepts a bare id (lowercase kebab-case, e.g. 'title-subtitle'), an HTTPS URL pointing at a record file, or a 'pkg:' reference. Free-form custom layout names that don't resolve through any catalog fall through to engine-defined layouts.\n\nResolution order: inline catalogs.layouts.records[] \u2192 catalogs.layouts.source \u2192 default catalog at https://www.pptx.gallery/layouts.",
2876
+ "description": "Optional. Resolves to the 'id' of a 'layouts' catalog record. When omitted, or when it names an id that no inline record, host catalog or default catalog defines, the slide is composed with no layout record: engines arrange title, subtitle, tag and content automatically, a slide with no body payload is a cover (vertically centered), and design hints apply. A layout never changes what a slide contains. An unresolved id is an `unresolved-layout` diagnostic and a `catalog-reference` warning, never an error. Engines must not substitute a different layout for an omitted one. Accepts a bare id (lowercase kebab-case, e.g. 'title-subtitle'), an HTTPS URL pointing at a record file, or a 'pkg:' reference.\n\nResolution order: inline catalogs.layouts.records[] \u2192 catalogs.layouts.source \u2192 default catalog at https://www.pptx.gallery/layouts.",
3112
2877
  "examples": [
3113
2878
  "title",
3114
2879
  "title-subtitle",
@@ -3121,25 +2886,62 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3121
2886
  ]
3122
2887
  },
3123
2888
  "title": {
3124
- "type": "string",
3125
- "description": "Slide-level title content. When the resolved layout exposes a 'title' placeholder, the engine renders this value there.",
2889
+ "oneOf": [
2890
+ {
2891
+ "type": "string"
2892
+ },
2893
+ {
2894
+ "type": "array",
2895
+ "items": {
2896
+ "$ref": "#/$defs/TextRun"
2897
+ }
2898
+ }
2899
+ ],
2900
+ "description": "Slide-level title content. When the resolved layout exposes a 'title' placeholder, the engine renders this value there. Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.",
3126
2901
  "examples": [
3127
2902
  "Quarterly Review",
3128
2903
  "Why Now",
3129
- "Next Steps"
2904
+ "Next Steps",
2905
+ [
2906
+ "Revenue grew ",
2907
+ {
2908
+ "text": "28%",
2909
+ "color": "accent1"
2910
+ }
2911
+ ]
3130
2912
  ]
3131
2913
  },
3132
2914
  "subtitle": {
3133
- "type": "string",
3134
- "description": "Slide-level subtitle or supporting line. When the resolved layout exposes a 'subtitle' placeholder, the engine renders this value there.",
2915
+ "oneOf": [
2916
+ {
2917
+ "type": "string"
2918
+ },
2919
+ {
2920
+ "type": "array",
2921
+ "items": {
2922
+ "$ref": "#/$defs/TextRun"
2923
+ }
2924
+ }
2925
+ ],
2926
+ "description": "Slide-level subtitle or supporting line. When the resolved layout exposes a 'subtitle' placeholder, the engine renders this value there. Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.",
3135
2927
  "examples": [
3136
2928
  "Prepared for the board",
3137
2929
  "Three signals changed this quarter"
3138
2930
  ]
3139
2931
  },
3140
2932
  "tag": {
3141
- "type": "string",
3142
- "description": "Small slide-level label or badge. When the resolved layout exposes a 'tag' placeholder, the engine renders this value there.",
2933
+ "oneOf": [
2934
+ {
2935
+ "type": "string"
2936
+ },
2937
+ {
2938
+ "type": "array",
2939
+ "items": {
2940
+ "$ref": "#/$defs/TextRun"
2941
+ }
2942
+ }
2943
+ ],
2944
+ "description": "Small slide-level label or badge. When the resolved layout exposes a 'tag' placeholder, the engine renders this value there. Use a string for plain text or TextRun[] for inline rich text (a colored word, bold, a link, a citation or footnote marker); the heading keeps its size and fitting rules either way, and run colors resolve like body text.",
3143
2945
  "examples": [
3144
2946
  "Intro",
3145
2947
  "Confidential",
@@ -3201,7 +3003,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3201
3003
  },
3202
3004
  "video": {
3203
3005
  "$ref": "#/$defs/Asset",
3204
- "description": "Full-slide video source. Presence of this field infers type 'video'."
3006
+ "description": "Full-slide video source. Presence of this field infers type 'video'. Engines do not play video: the preview draws a placeholder (a play badge with the asset's title or source as its caption), and PPTX export draws the same placeholder as native shapes linked to an http(s) source, with no embedded media. Native playback is out of scope (docs/programs/release-readiness)."
3205
3007
  },
3206
3008
  "chart": {
3207
3009
  "$ref": "#/$defs/Chart",
@@ -3234,7 +3036,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3234
3036
  "$ref": "#/$defs/Metric"
3235
3037
  }
3236
3038
  ],
3237
- "description": `Full-slide metric payload. A string or number is shorthand for { "value": value }; object form carries optional label, description, unit, delta, and trend metadata. Numeric values remain numbers; renderers format them for display. Presence of this field infers type 'metric'.`
3039
+ "description": `Full-slide metric payload. A string or number is shorthand for { "value": value }; object form carries optional label, description, unit, delta, trend, and sentiment metadata. Numeric values remain numbers; renderers format them for display. Presence of this field infers type 'metric'.`
3238
3040
  },
3239
3041
  "quote": {
3240
3042
  "oneOf": [
@@ -3263,7 +3065,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3263
3065
  "description": "Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified. At slide root, multiple content payload kinds with no explicit type, blocks, or regions are accepted as shorthand for equivalent blocks."
3264
3066
  },
3265
3067
  "design": {
3266
- "$ref": "#/$defs/Design",
3068
+ "$ref": "#/$defs/SlideDesign",
3267
3069
  "description": "Slide-level design applied on top of the deck-wide design."
3268
3070
  },
3269
3071
  "left": {
@@ -3430,7 +3232,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3430
3232
  },
3431
3233
  "hidden": {
3432
3234
  "type": "boolean",
3433
- "description": "Whether the slide is hidden from the presented sequence."
3235
+ "description": "Whether the slide is hidden from the presented sequence. The player skips it, the PPTX export writes it as a hidden slide, and per-slide image and PDF output skips it unless the caller asks to include hidden slides (opf CLI: --include-hidden; the deck-level renderSvg: the opt-in skipHidden). A slide named explicitly (opf render --slides, renderSvg slideIndex) is still rendered."
3434
3236
  },
3435
3237
  "composition": {
3436
3238
  "$ref": "#/$defs/Composition"
@@ -3571,7 +3373,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3571
3373
  },
3572
3374
  "video": {
3573
3375
  "$ref": "#/$defs/Asset",
3574
- "description": "Source for a video item.",
3376
+ "description": "Source for a video item. Engines do not play video: the preview draws a placeholder (a play badge with the asset's title or source as its caption), and PPTX export draws the same placeholder as native shapes linked to an http(s) source, with no embedded media. Native playback is out of scope (docs/programs/release-readiness).",
3575
3377
  "examples": [
3576
3378
  "asset:demo-video",
3577
3379
  "./media/demo.mp4"
@@ -3616,7 +3418,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3616
3418
  "$ref": "#/$defs/Metric"
3617
3419
  }
3618
3420
  ],
3619
- "description": 'Metric payload. A string or number is shorthand for { "value": value }; object form carries optional label, description, unit, delta, and trend metadata. Numeric values remain numbers; renderers format them for display.',
3421
+ "description": 'Metric payload. A string or number is shorthand for { "value": value }; object form carries optional label, description, unit, delta, trend, and sentiment metadata. Numeric values remain numbers; renderers format them for display.',
3620
3422
  "examples": [
3621
3423
  "98%",
3622
3424
  42,
@@ -3638,7 +3440,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3638
3440
  "$ref": "#/$defs/Quote"
3639
3441
  }
3640
3442
  ],
3641
- "description": 'Quote payload. A string is shorthand for { "text": value }; object form carries optional attribution and source metadata.',
3443
+ "description": 'Quote payload. A string is shorthand for { "text": value }; object form carries optional attribution, role, photo and source metadata.',
3642
3444
  "examples": [
3643
3445
  "This changed how our team handles reviews.",
3644
3446
  {
@@ -3957,29 +3759,70 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3957
3759
  },
3958
3760
  "Quote": {
3959
3761
  "type": "object",
3960
- "description": `Quote content with optional attribution metadata. Use 'text' for the quoted text, 'attribution' for the credited person or organization, and 'source' for a citation or URL. A string value in a quote field is shorthand for { "text": value }.`,
3762
+ "description": `Quote content with optional attribution metadata. Use 'text' for the quoted text, 'attribution' for the credited person or organization, 'role' for that person's title and organization, 'photo' for their headshot and 'source' for a citation or URL. A string value in a quote field is shorthand for { "text": value }.`,
3961
3763
  "additionalProperties": false,
3962
3764
  "required": [
3963
3765
  "text"
3964
3766
  ],
3965
3767
  "properties": {
3966
3768
  "text": {
3967
- "type": "string",
3968
- "description": "Quoted text.",
3769
+ "oneOf": [
3770
+ {
3771
+ "type": "string"
3772
+ },
3773
+ {
3774
+ "type": "array",
3775
+ "items": {
3776
+ "$ref": "#/$defs/TextRun"
3777
+ }
3778
+ }
3779
+ ],
3780
+ "description": "Quoted text: a string, or TextRun[] for inline rich text (a colored phrase, bold, a link, or a citation or footnote marker). The engine draws the surrounding quotation marks.",
3969
3781
  "examples": [
3970
- "This changed how our team handles reviews."
3782
+ "This changed how our team handles reviews.",
3783
+ [
3784
+ "Cut review time by ",
3785
+ {
3786
+ "text": "40%",
3787
+ "bold": true
3788
+ },
3789
+ {
3790
+ "text": " in a quarter",
3791
+ "cite": "acme-case-study"
3792
+ }
3793
+ ]
3971
3794
  ]
3972
3795
  },
3973
3796
  "attribution": {
3974
3797
  "type": "string",
3975
- "description": "Person or organization credited for the quote.",
3798
+ "description": "Person or organization credited for the quote. Drawn after the quote text, in the muted text color.",
3799
+ "examples": [
3800
+ "Priya Raman",
3801
+ "Acme Corp"
3802
+ ]
3803
+ },
3804
+ "role": {
3805
+ "type": "string",
3806
+ "description": "Title and organization of the attributed person. Drawn on its own line under the attribution; without an attribution it stands alone. It does not replace the attribution, so the person's name belongs in 'attribution'.",
3807
+ "examples": [
3808
+ "VP Operations, Acme",
3809
+ "Head of Platform"
3810
+ ]
3811
+ },
3812
+ "photo": {
3813
+ "$ref": "#/$defs/Asset",
3814
+ "description": "Headshot of the attributed person, drawn as a circle beside the attribution and role lines (on the end side in a right-to-left deck). Give it alt text (validate's opf/missing-alt-text rule checks it). A raster photograph works best; an SVG exports as its PNG raster because the circular mask is not confirmed on SVG pictures in PowerPoint. An unresolved source draws the ordinary image placeholder.",
3976
3815
  "examples": [
3977
- "VP Operations, Acme Corp"
3816
+ "./assets/priya-raman.jpg",
3817
+ {
3818
+ "src": "asset:priya-raman",
3819
+ "alt": "Priya Raman"
3820
+ }
3978
3821
  ]
3979
3822
  },
3980
3823
  "source": {
3981
3824
  "type": "string",
3982
- "description": "Optional quote source, citation, or URL.",
3825
+ "description": "Optional quote source, citation, or URL. Follows the attribution and role after ' - '.",
3983
3826
  "examples": [
3984
3827
  "Customer interview, March 2026",
3985
3828
  "https://acme.com/case-study"
@@ -3989,7 +3832,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
3989
3832
  },
3990
3833
  "Code": {
3991
3834
  "type": "object",
3992
- "description": `Code content with optional rendering metadata. Use 'source' for the code text, 'language' for syntax highlighting, and 'filename' when the rendered block should show a file label. A string value in a code field is shorthand for { "source": value }.`,
3835
+ "description": `Code content with optional rendering metadata. Use 'source' for the code text, 'language' for syntax highlighting, 'filename' when the rendered block should show a file label, and 'highlight' to emphasize lines. A string value in a code field is shorthand for { "source": value }.`,
3993
3836
  "additionalProperties": false,
3994
3837
  "required": [
3995
3838
  "source"
@@ -4024,12 +3867,52 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4024
3867
  "components/Button.tsx",
4025
3868
  "terraform/main.tf"
4026
3869
  ]
3870
+ },
3871
+ "highlight": {
3872
+ "type": "array",
3873
+ "minItems": 1,
3874
+ "items": {
3875
+ "oneOf": [
3876
+ {
3877
+ "type": "integer",
3878
+ "minimum": 1
3879
+ },
3880
+ {
3881
+ "type": "array",
3882
+ "minItems": 2,
3883
+ "maxItems": 2,
3884
+ "items": {
3885
+ "type": "integer",
3886
+ "minimum": 1
3887
+ }
3888
+ }
3889
+ ]
3890
+ },
3891
+ "description": "Source lines to emphasize, 1-based: each entry is a line number or an inclusive [start, end] range, so [3, [5, 7]] marks lines 3 and 5 to 7. Lines are counted by line break in 'source', so a line that wraps stays one line. Engines draw a theme-derived band behind the marked lines and dim the other lines slightly, keeping every line at least 4.5:1 against its background; PPTX export draws one native rectangle behind the line text boxes and import restores the list. A line number past the last line, or a range written end before start, gets a validation warning (code-highlight-out-of-range, code-highlight-range-reversed) and is ignored. When a code block is paginated across slides each page keeps the lines that fall on it, renumbered from 1.",
3892
+ "examples": [
3893
+ [
3894
+ 3
3895
+ ],
3896
+ [
3897
+ 3,
3898
+ [
3899
+ 5,
3900
+ 7
3901
+ ]
3902
+ ],
3903
+ [
3904
+ [
3905
+ 2,
3906
+ 4
3907
+ ]
3908
+ ]
3909
+ ]
4027
3910
  }
4028
3911
  }
4029
3912
  },
4030
3913
  "Metric": {
4031
3914
  "type": "object",
4032
- "description": `Metric content with optional display metadata. Use 'value' for the primary value, 'label' for the metric name, 'description' for supporting context, 'unit' for a suffix/currency marker, 'delta' for change, and 'trend' for direction. A string or number value in a metric field is shorthand for { "value": value }; numeric values remain numbers and are formatted by renderers.`,
3915
+ "description": `Metric content with optional display metadata. Use 'value' for the primary value, 'label' for the metric name, 'description' for supporting context, 'unit' for a suffix/currency marker, 'delta' for change, 'trend' for direction, and 'sentiment' for whether the change is good news. A string or number value in a metric field is shorthand for { "value": value }; numeric values remain numbers and are formatted by renderers.`,
4033
3916
  "additionalProperties": false,
4034
3917
  "required": [
4035
3918
  "value"
@@ -4099,7 +3982,16 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4099
3982
  "down",
4100
3983
  "flat"
4101
3984
  ],
4102
- "description": "Metric trend direction."
3985
+ "description": "Metric trend direction. The preview and the PowerPoint export draw an arrow beside the trend word that always points the way the trend does (up, down or flat) and colour the arrow, the trend word and the delta text by `sentiment`."
3986
+ },
3987
+ "sentiment": {
3988
+ "type": "string",
3989
+ "enum": [
3990
+ "positive",
3991
+ "negative",
3992
+ "neutral"
3993
+ ],
3994
+ "description": "Whether the change is good news. Positive draws the trend arrow and the trend and delta text in green, negative in red and neutral in the neutral text colour, each kept at 4.5:1 contrast or more against the slide background. When absent the colour follows the trend: up is positive, down is negative and flat is neutral. Set it when the direction is not the verdict, for example positive on a falling churn, cost or latency trend. The arrow always keeps the direction of `trend`. Only the trend arrow and the trend and delta text take the colour, so sentiment has no visible effect on a metric without a trend."
4103
3995
  }
4104
3996
  }
4105
3997
  },
@@ -4179,6 +4071,20 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4179
4071
  "examples": [
4180
4072
  "Launch with the first operations team."
4181
4073
  ]
4074
+ },
4075
+ "status": {
4076
+ "type": "string",
4077
+ "enum": [
4078
+ "done",
4079
+ "current",
4080
+ "planned"
4081
+ ],
4082
+ "description": "Progress of the event, drawn from the deck's own colors by both the SVG renderer and the PPTX exporter. Absent means no status and the event is drawn as a plain filled marker with normal text, which is also how 'done' looks. 'done' is a filled marker in the primary color with normal text. 'current' marks 'we are here': the filled marker is surrounded by a ring and the event label (`what`) is bold. 'planned' is an outlined, hollow marker (primary-color outline over the slide background) with muted secondary text. Text colors keep a 4.5:1 contrast against the slide background. In PPTX the markers are native ellipses (the ring is a second ellipse), and PPTX import restores the status the export recorded. Status describes progress only; schedule health such as at risk or blocked belongs in the event text.",
4083
+ "examples": [
4084
+ "done",
4085
+ "current",
4086
+ "planned"
4087
+ ]
4182
4088
  }
4183
4089
  }
4184
4090
  },
@@ -4438,19 +4344,36 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4438
4344
  },
4439
4345
  "fontFamily": {
4440
4346
  "type": "string",
4441
- "description": "Run font family override.",
4347
+ "description": "Run font family override. It wins over the code font a run with 'code' takes.",
4442
4348
  "examples": [
4443
4349
  "Inter",
4444
4350
  "Source Serif Pro",
4445
4351
  "JetBrains Mono"
4446
4352
  ]
4447
4353
  },
4354
+ "code": {
4355
+ "type": "boolean",
4356
+ "description": "Whether the run is an inline code span: it is drawn in the design's code font (design.fontScheme.code, else the resolved font scheme's code family, else Roboto Mono), unless the run names its own fontFamily. Only the font changes; there is no background, because a PPTX run cannot have one. Markdown backticks read and write code runs."
4357
+ },
4358
+ "lang": {
4359
+ "type": "string",
4360
+ "pattern": "^[A-Za-z]{2,8}(-[A-Za-z0-9]{1,8})*$",
4361
+ "description": "BCP-47 language tag of the run, such as 'fr-FR' or 'ja-JP', when it differs from the deck language. It sets the proofing language (PPTX a:rPr lang) and the language the run's script fonts and glyph variants follow (for example the Japanese or the Simplified Chinese face for Han characters); without it the run follows the deck language.",
4362
+ "examples": [
4363
+ "fr-FR",
4364
+ "ja-JP",
4365
+ "de"
4366
+ ]
4367
+ },
4448
4368
  "link": {
4449
4369
  "type": "string",
4450
- "description": "URL to link the run text to.",
4370
+ "pattern": "^(https?://|mailto:|tel:)\\S+$",
4371
+ "description": "URL to link the run text to: an http(s) URL, a 'mailto:' address or a 'tel:' number, without whitespace. The preview draws it as a link and PPTX export writes a native hyperlink for all three; any other scheme is not valid.",
4451
4372
  "examples": [
4452
4373
  "https://acme.com",
4453
- "https://acme.com/case-studies/beta"
4374
+ "https://acme.com/case-studies/beta",
4375
+ "mailto:hello@acme.com",
4376
+ "tel:+15551234567"
4454
4377
  ]
4455
4378
  },
4456
4379
  "superscript": {
@@ -4476,7 +4399,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4476
4399
  }
4477
4400
  }
4478
4401
  ],
4479
- "description": "One or more ids from the top-level references list that this run cites. Engines draw a superscript marker ('1', or '1,2' for several ids) directly after the run and list '<n> <reference text>' in the slide's footnote area; markers are numbered per deck in order of first use, and the same id keeps its number. An id missing from references is a validation error (cite-unknown-reference). Supported in text, bullets and list item runs.",
4402
+ "description": "One or more ids from the top-level references list that this run cites. Engines draw a superscript marker ('1', or '1,2' for several ids) directly after the run and list '<n> <reference text>' in the slide's footnote area; markers are numbered per deck in order of first use, and the same id keeps its number. An id missing from references is a validation error (cite-unknown-reference). Supported in text, bullets and list item runs, in the slide title, subtitle and tag, and in the quote text.",
4480
4403
  "examples": [
4481
4404
  "gartner-2026",
4482
4405
  [
@@ -4499,7 +4422,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4499
4422
  }
4500
4423
  }
4501
4424
  ],
4502
- "description": "An inline note for this run, without a references entry. Engines draw a superscript marker after the run and list the note in the slide's footnote area; every footnote takes a new number in the deck's marker sequence. Supported in text, bullets and list item runs.",
4425
+ "description": "An inline note for this run, without a references entry. Engines draw a superscript marker after the run and list the note in the slide's footnote area; every footnote takes a new number in the deck's marker sequence. Supported in text, bullets and list item runs, in the slide title, subtitle and tag, and in the quote text.",
4503
4426
  "examples": [
4504
4427
  "Excludes the discontinued hardware line."
4505
4428
  ]
@@ -4622,7 +4545,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4622
4545
  "properties": {
4623
4546
  "type": {
4624
4547
  "type": "string",
4625
- "description": "Chart type id. Resolves to the id of a chartTypes catalog record; renderers map that record through mappings.openxml and any renderer-specific mapping they understand. The bundled catalog covers the chart types Aspose.Slides officially supports; deprecated ids still resolve but validate with a warning naming their replacement.",
4548
+ "description": "Chart type id. Resolves to the id of a chartTypes catalog record; renderers map that record through mappings.openxml and any renderer-specific mapping they understand. The bundled catalog covers the chart types Aspose.Slides officially supports, plus 'combo' (clustered columns with line series, see 'line' and 'secondaryAxis').",
4626
4549
  "examples": [
4627
4550
  "column",
4628
4551
  "bar",
@@ -4635,7 +4558,8 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4635
4558
  "waterfall",
4636
4559
  "funnel",
4637
4560
  "treemap",
4638
- "stacked-column-3x"
4561
+ "stacked-column",
4562
+ "combo"
4639
4563
  ]
4640
4564
  },
4641
4565
  "data": {
@@ -4644,14 +4568,46 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4644
4568
  "$ref": "#/$defs/ChartData"
4645
4569
  },
4646
4570
  {
4647
- "$ref": "#/$defs/ChartDataSource"
4571
+ "$ref": "#/$defs/DatasetRef"
4648
4572
  }
4649
4573
  ],
4650
- "description": "Chart data. Inline data uses a tabular columns/rows shape; renderers convert rows to chart series internally."
4574
+ "description": 'Chart data. Inline data uses a tabular columns/rows shape; renderers convert rows to chart series internally. A DatasetRef ({ "dataset": "<id>" }) plots a top-level dataset instead. Data from a spreadsheet or file is imported into inline columns and rows, and its origin is recorded in data.source.'
4575
+ },
4576
+ "mapping": {
4577
+ "$ref": "#/$defs/ChartMapping",
4578
+ "description": "Optional series mapping by column name: which column is the category, which is the X column of a scatter chart, and which columns are plotted, in order. Absent keeps the positional rule (first column the category, then the X column for scatter, every other column a series)."
4579
+ },
4580
+ "line": {
4581
+ "type": "array",
4582
+ "items": {
4583
+ "type": "string"
4584
+ },
4585
+ "minItems": 1,
4586
+ "uniqueItems": true,
4587
+ "description": "Combo charts only (type 'combo'): the plotted series, by column name, that are drawn as lines with markers; every other plotted series is drawn as clustered columns. Absent: the last plotted series is the line. A combo chart keeps at least one column series, so a list that names every series draws the first one as columns. Column series are drawn, exported and listed in the legend first, then the line series on the primary axis, then those on the secondary axis, each in plotted order. A name that is not a column is a 'chart-mapping-unknown-column' error; a column that is not plotted is a 'chart-mapping-adapted' warning. On any other chart type it is ignored with a 'chart-option-adapted' warning.",
4588
+ "examples": [
4589
+ [
4590
+ "Margin"
4591
+ ]
4592
+ ]
4593
+ },
4594
+ "secondaryAxis": {
4595
+ "type": "array",
4596
+ "items": {
4597
+ "type": "string"
4598
+ },
4599
+ "minItems": 1,
4600
+ "uniqueItems": true,
4601
+ "description": "Combo charts only: line series, by column name, plotted against a secondary value axis at the right of the plot. That axis has its own scale, and its tick labels use the number format of the first secondary series' column (DataColumn.format), for example '0%' for a margin. Absent: every series shares the primary value axis at the left. A name that is not a line series (see 'line') stays on the primary axis with a 'chart-mapping-adapted' warning; an unknown column is a 'chart-mapping-unknown-column' error. On any other chart type it is ignored with a 'chart-option-adapted' warning.",
4602
+ "examples": [
4603
+ [
4604
+ "Margin"
4605
+ ]
4606
+ ]
4651
4607
  },
4652
4608
  "axisTitles": {
4653
4609
  "$ref": "#/$defs/ChartAxisTitles",
4654
- "description": "Optional axis titles. Absent keeps today's untitled axes. Supported on the chart types that have a category/value (or X/Y) axis pair (column, bar, line, area, scatter, and the histogram, pareto, waterfall and box-and-whisker constructs; the funnel construct takes a category title only); a title on a type without that axis (pie, doughnut, radar, treemap, map) is dropped with a 'chart-option-adapted' diagnostic by renderers and exporters."
4610
+ "description": "Optional axis titles. Absent keeps today's untitled axes. Supported on the chart types that have a category/value (or X/Y) axis pair (column, bar, line, area, scatter, and the histogram, pareto, waterfall and box-and-whisker constructs; the funnel construct takes a category title only; a combo chart also takes 'secondary' when it plots a series on the secondary axis); a title on a type without that axis (pie, doughnut, radar, treemap, map) is dropped with a 'chart-option-adapted' diagnostic by renderers and exporters."
4655
4611
  },
4656
4612
  "legend": {
4657
4613
  "type": "string",
@@ -4674,13 +4630,24 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4674
4630
  }
4675
4631
  ],
4676
4632
  "description": "Optional data labels. true shows value labels at each type's default position, false (or absent) shows none, which is today's behaviour. Use the object form for the label content, position and separator."
4633
+ },
4634
+ "alt": {
4635
+ "type": "string",
4636
+ "description": "Text alternative for the chart: what the data shows (the point and the key numbers), not 'a chart' or 'bar chart'. The preview exposes it as the chart's accessible name (role img with aria-label) and the PowerPoint export writes it as the chart frame's alternative text (descr); import reads it back. An empty string marks the chart decorative, with the same meaning as an empty Asset alt, but it is a reviewed choice that opf/chart-text-alternative still reports as info (a chart almost always carries a message). When absent, validate accepts text beside the chart instead.",
4637
+ "examples": [
4638
+ "Revenue grew from $12M in Q1 to $18M in Q2, with the steepest rise in the West region."
4639
+ ]
4640
+ },
4641
+ "highlight": {
4642
+ "$ref": "#/$defs/ChartHighlight",
4643
+ "description": "Optional emphasis: the series and/or categories that carry the message. The engines draw the highlighted marks in the deck's primary (accent) color and every other mark in a muted neutral derived from the theme (a light grey on a light chart panel, a dim grey on a dark one); there is no color field. A mark is highlighted when its series OR its category is named. Absent keeps today's colors exactly. Supported on column, bar and line charts (series and categories; on a line a category highlight marks that category's points), pie and doughnut charts (categories, one per slice), and area, scatter and radar charts (series); the histogram, pareto, waterfall, funnel, treemap, box-and-whisker, map and combo constructs drop the option with a 'chart-option-adapted' diagnostic, as does a part the type cannot highlight. A name that matches no column or row label is a 'chart-highlight-unknown-name' error."
4677
4644
  }
4678
4645
  }
4679
4646
  },
4680
4647
  "ChartAxisTitles": {
4681
4648
  "type": "object",
4682
4649
  "additionalProperties": false,
4683
- "description": "Titles for the two axes of a chart. 'category' is the axis that carries the row labels (the horizontal axis of a column or line chart, the vertical axis of a bar chart, the X axis of a scatter chart); 'value' is the other axis.",
4650
+ "description": "Titles for the axes of a chart. 'category' is the axis that carries the row labels (the horizontal axis of a column or line chart, the vertical axis of a bar chart, the X axis of a scatter chart); 'value' is the other axis; 'secondary' is the secondary value axis of a combo chart.",
4684
4651
  "properties": {
4685
4652
  "category": {
4686
4653
  "type": "string",
@@ -4692,14 +4659,69 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4692
4659
  },
4693
4660
  "value": {
4694
4661
  "type": "string",
4695
- "description": "Title of the value (Y) axis.",
4662
+ "description": "Title of the value (Y) axis. On a combo chart, the primary (left) value axis.",
4696
4663
  "examples": [
4697
4664
  "Revenue ($M)",
4698
4665
  "Customers"
4699
4666
  ]
4667
+ },
4668
+ "secondary": {
4669
+ "type": "string",
4670
+ "description": "Combo charts only: title of the secondary value axis at the right of the plot, drawn rotated like the primary value axis title. Dropped with a 'chart-option-adapted' diagnostic on any other chart type and on a combo chart without 'secondaryAxis'.",
4671
+ "examples": [
4672
+ "Margin (%)"
4673
+ ]
4700
4674
  }
4701
4675
  }
4702
4676
  },
4677
+ "ChartHighlight": {
4678
+ "type": "object",
4679
+ "additionalProperties": false,
4680
+ "minProperties": 1,
4681
+ "description": "Which series and categories a chart emphasizes. Names are matched exactly: series by data column name (after any 'fields' selection; a series is a plotted value column), categories by row label (the first column, or mapping.category), as text. A category label shared by several rows highlights each of them.",
4682
+ "properties": {
4683
+ "series": {
4684
+ "type": "array",
4685
+ "items": {
4686
+ "type": "string"
4687
+ },
4688
+ "minItems": 1,
4689
+ "uniqueItems": true,
4690
+ "description": "Series (value columns) to highlight: all marks of each named series. A name that is not a column is a 'chart-highlight-unknown-name' error; a column that is not plotted as a series (the category or X column, or one mapping.series leaves out) highlights nothing and is a 'chart-highlight-adapted' warning.",
4691
+ "examples": [
4692
+ [
4693
+ "Revenue"
4694
+ ]
4695
+ ]
4696
+ },
4697
+ "categories": {
4698
+ "type": "array",
4699
+ "items": {
4700
+ "type": "string"
4701
+ },
4702
+ "minItems": 1,
4703
+ "uniqueItems": true,
4704
+ "description": "Categories (row labels) to highlight: the marks of each named category (a column or bar of every series, a line's points, a pie or doughnut slice). A label no row has is a 'chart-highlight-unknown-name' error.",
4705
+ "examples": [
4706
+ [
4707
+ "Q3"
4708
+ ]
4709
+ ]
4710
+ }
4711
+ },
4712
+ "examples": [
4713
+ {
4714
+ "series": [
4715
+ "Revenue"
4716
+ ]
4717
+ },
4718
+ {
4719
+ "categories": [
4720
+ "Q3"
4721
+ ]
4722
+ }
4723
+ ]
4724
+ },
4703
4725
  "ChartDataLabels": {
4704
4726
  "type": "object",
4705
4727
  "additionalProperties": false,
@@ -4732,7 +4754,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4732
4754
  "left",
4733
4755
  "right"
4734
4756
  ],
4735
- "description": "Where a label sits relative to its mark. 'auto' (the default) is the type's default: outside-end for clustered columns and bars, pie slices and the histogram, pareto and waterfall constructs; center for stacked columns and bars; above for line and scatter points. Clustered columns and bars and the histogram, pareto and waterfall constructs take center, inside-end, inside-base and outside-end; stacked columns and bars take center, inside-end and inside-base; pie takes center, inside-end and outside-end; line and scatter points take above, below, left, right and center. Area, doughnut and radar charts and the funnel and treemap constructs take only 'auto' (the box-and-whisker and map constructs have no data labels). An unsupported position falls back to 'auto' with a 'chart-option-adapted' diagnostic."
4757
+ "description": "Where a label sits relative to its mark. 'auto' (the default) is the type's default: outside-end for clustered columns and bars, pie slices and the histogram, pareto and waterfall constructs; center for stacked columns and bars; above for line and scatter points. Clustered columns and bars and the histogram, pareto and waterfall constructs take center, inside-end, inside-base and outside-end; stacked columns and bars take center, inside-end and inside-base; pie takes center, inside-end and outside-end; line and scatter points take above, below, left, right and center. Area, doughnut and radar charts and the funnel and treemap constructs take only 'auto' (the box-and-whisker and map constructs have no data labels). A combo chart places the labels of its column series like clustered columns and those of its line series like line points; a position only one part takes applies to that part, and the other part keeps its default (outside-end, above). An unsupported position falls back to 'auto' with a 'chart-option-adapted' diagnostic."
4736
4758
  },
4737
4759
  "separator": {
4738
4760
  "type": "string",
@@ -4746,11 +4768,27 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4746
4768
  },
4747
4769
  "Table": {
4748
4770
  "type": "object",
4749
- "description": "Table content. Columns are optional; rows are the only required field.",
4771
+ "description": "Table content, inline or dataset-backed. An inline table has 'rows' (required) and optional 'columns'. A dataset-backed table has 'dataset' (required) and optional 'fields', and no 'rows' or 'columns': it takes its headers, rows and column formats from the dataset (per-cell styles need an inline table).",
4750
4772
  "additionalProperties": false,
4751
- "required": [
4752
- "rows"
4753
- ],
4773
+ "if": {
4774
+ "required": [
4775
+ "dataset"
4776
+ ]
4777
+ },
4778
+ "then": {
4779
+ "properties": {
4780
+ "rows": false,
4781
+ "columns": false
4782
+ }
4783
+ },
4784
+ "else": {
4785
+ "required": [
4786
+ "rows"
4787
+ ],
4788
+ "properties": {
4789
+ "fields": false
4790
+ }
4791
+ },
4754
4792
  "properties": {
4755
4793
  "columns": {
4756
4794
  "type": "array",
@@ -4768,12 +4806,15 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4768
4806
  {
4769
4807
  "$ref": "#/$defs/StyledTableCell"
4770
4808
  },
4809
+ {
4810
+ "$ref": "#/$defs/DataColumn"
4811
+ },
4771
4812
  {
4772
4813
  "type": "null"
4773
4814
  }
4774
4815
  ]
4775
4816
  },
4776
- "description": "Optional column labels. Labels may be strings, rich runs or styled cell objects. Null is an empty label or a placeholder covered by a preceding column span.",
4817
+ "description": `Optional column labels. Labels may be strings, rich runs, styled cell objects or DataColumn objects ({ "name", "format" }). A header's 'format' (DataColumn or StyledTableCell) is the column's number format; a body cell's own format wins. Null is an empty label or a placeholder covered by a preceding column span.`,
4777
4818
  "examples": [
4778
4819
  [
4779
4820
  "Region",
@@ -4808,12 +4849,20 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4808
4849
  ]
4809
4850
  ]
4810
4851
  ]
4852
+ },
4853
+ "dataset": {
4854
+ "$ref": "#/$defs/DatasetId",
4855
+ "description": "Id of a top-level dataset that supplies this table's headers, rows and column formats. Excludes 'rows' and 'columns'. An unknown id is a 'dataset-unknown' error."
4856
+ },
4857
+ "fields": {
4858
+ "$ref": "#/$defs/DatasetFields",
4859
+ "description": "Dataset tables only: the dataset columns to show, by name and in order. Absent shows every column. An unknown name is a 'dataset-field-unknown' error."
4811
4860
  }
4812
4861
  }
4813
4862
  },
4814
4863
  "ChartData": {
4815
4864
  "type": "object",
4816
- "description": "Inline tabular data driving a chart. The first column usually supplies category/x-axis labels; subsequent columns are plotted measures unless a chart type or renderer maps them differently.",
4865
+ "description": "Inline tabular data driving a chart. The first column usually supplies category/x-axis labels; subsequent columns are plotted measures unless 'chart.mapping' or a chart type maps them differently. Value cells are numbers; a string is read only in strict decimal syntax ('12', '-3.5', '1e6'), and anything else ('12%', '$5', '(5)', '1,234') is a gap and a 'chart-value-not-numeric' warning.",
4817
4866
  "additionalProperties": false,
4818
4867
  "required": [
4819
4868
  "columns",
@@ -4823,10 +4872,17 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4823
4872
  "columns": {
4824
4873
  "type": "array",
4825
4874
  "items": {
4826
- "type": "string"
4875
+ "oneOf": [
4876
+ {
4877
+ "type": "string"
4878
+ },
4879
+ {
4880
+ "$ref": "#/$defs/DataColumn"
4881
+ }
4882
+ ]
4827
4883
  },
4828
4884
  "minItems": 1,
4829
- "description": "Ordered column labels for the chart data table.",
4885
+ "description": 'Ordered column labels for the chart data table. A label is a string or a DataColumn ({ "name", "format" }) whose number format the data labels, value axis and exported workbook use.',
4830
4886
  "examples": [
4831
4887
  [
4832
4888
  "Quarter",
@@ -4836,6 +4892,17 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4836
4892
  "Quarter",
4837
4893
  "Revenue",
4838
4894
  "Costs"
4895
+ ],
4896
+ [
4897
+ "Quarter",
4898
+ {
4899
+ "name": "Revenue",
4900
+ "format": "$#,##0.0"
4901
+ },
4902
+ {
4903
+ "name": "Margin",
4904
+ "format": "0%"
4905
+ }
4839
4906
  ]
4840
4907
  ]
4841
4908
  },
@@ -4869,63 +4936,349 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
4869
4936
  ]
4870
4937
  ]
4871
4938
  ]
4939
+ },
4940
+ "source": {
4941
+ "$ref": "#/$defs/DataSourceRef",
4942
+ "description": "Optional provenance: where this inline data came from. Engines never read, fetch or refresh it; they keep it through editing, export and re-import."
4872
4943
  }
4873
4944
  }
4874
4945
  },
4875
- "ChartDataSource": {
4946
+ "DataColumn": {
4876
4947
  "type": "object",
4877
- "description": "Chart data sourced from an asset reference, URL, data URI, relative path, or local path such as CSV, TSV, JSON, or XLSX. The source is interpreted as a table; optional columns select or order fields from that table.",
4878
4948
  "additionalProperties": false,
4879
4949
  "required": [
4880
- "src"
4950
+ "name"
4881
4951
  ],
4952
+ "description": 'A named data column with an optional number format. Anywhere a chart or dataset column is a string it may be a DataColumn; the string form is { "name": value } with no format. A table column header may also be a DataColumn.',
4882
4953
  "properties": {
4883
- "src": {
4954
+ "name": {
4884
4955
  "type": "string",
4885
- "description": "Data source. Use 'asset:<id>' to reference the top-level assets registry, or provide an HTTPS URL, data URI, relative path, or local filesystem path.",
4956
+ "description": "Column label, used as the series name, the table header and the name 'fields' and 'chart.mapping' address.",
4886
4957
  "examples": [
4887
- "asset:revenue",
4888
- "asset:pipeline-csv",
4889
- "./data/revenue.csv",
4890
- "https://cdn.acme.com/data/revenue.csv"
4958
+ "Revenue",
4959
+ "Margin"
4891
4960
  ]
4892
4961
  },
4893
- "sheet": {
4962
+ "format": {
4963
+ "$ref": "#/$defs/NumberFormat",
4964
+ "description": "Number format of the column's number values (data labels, value axis, table cells, exported workbook). Absent: the General form."
4965
+ }
4966
+ },
4967
+ "examples": [
4968
+ {
4969
+ "name": "Revenue",
4970
+ "format": "$#,##0.0"
4971
+ },
4972
+ {
4973
+ "name": "Margin",
4974
+ "format": "0%"
4975
+ }
4976
+ ]
4977
+ },
4978
+ "DataSourceRef": {
4979
+ "type": "object",
4980
+ "additionalProperties": false,
4981
+ "required": [
4982
+ "src"
4983
+ ],
4984
+ "description": "Provenance of inline data or a dataset: the file, sheet and range it came from and when. Engines never read, fetch or refresh it; they keep it through editing, export and re-import. Re-import the data to update it.",
4985
+ "properties": {
4986
+ "src": {
4894
4987
  "type": "string",
4895
- "description": "Optional sheet name or table name for spreadsheet-like assets.",
4988
+ "description": "Where the data came from: an 'asset:<id>' reference, a URL, or a relative or local path.",
4896
4989
  "examples": [
4897
- "Sheet1",
4898
- "Revenue"
4990
+ "./data/revenue.csv",
4991
+ "asset:revenue",
4992
+ "https://cdn.acme.com/data/revenue.csv"
4993
+ ]
4994
+ },
4995
+ "sheet": {
4996
+ "type": "string",
4997
+ "description": "Sheet or table name inside a spreadsheet source.",
4998
+ "examples": [
4999
+ "Sheet1"
4899
5000
  ]
4900
5001
  },
4901
5002
  "range": {
4902
5003
  "type": "string",
4903
- "description": "Optional A1-style range or engine-defined range selector for spreadsheet-like assets.",
5004
+ "description": "A1-style range inside a spreadsheet source.",
4904
5005
  "examples": [
4905
- "A1:D8",
4906
- "Revenue!A1:D8"
5006
+ "A1:D8"
4907
5007
  ]
4908
5008
  },
4909
- "columns": {
5009
+ "fields": {
4910
5010
  "type": "array",
4911
5011
  "items": {
4912
5012
  "type": "string"
4913
5013
  },
4914
- "description": "Optional ordered columns or fields to read from the source. When omitted, renderers may use the source's own header row or schema.",
5014
+ "description": "The source fields the data was taken from, in order.",
4915
5015
  "examples": [
4916
5016
  [
4917
5017
  "Quarter",
4918
5018
  "Revenue"
5019
+ ]
5020
+ ]
5021
+ },
5022
+ "retrieved": {
5023
+ "type": "string",
5024
+ "anyOf": [
5025
+ {
5026
+ "format": "date"
5027
+ },
5028
+ {
5029
+ "format": "date-time"
5030
+ }
5031
+ ],
5032
+ "description": "When the data was taken from the source: an ISO 8601 date or date-time.",
5033
+ "examples": [
5034
+ "2026-10-05",
5035
+ "2026-10-05T09:30:00Z"
5036
+ ]
5037
+ },
5038
+ "description": {
5039
+ "type": "string",
5040
+ "description": "Free-form note about the source.",
5041
+ "examples": [
5042
+ "Finance export, unaudited"
5043
+ ]
5044
+ }
5045
+ },
5046
+ "examples": [
5047
+ {
5048
+ "src": "./data/revenue.csv",
5049
+ "retrieved": "2026-10-05"
5050
+ }
5051
+ ]
5052
+ },
5053
+ "DatasetId": {
5054
+ "type": "string",
5055
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$",
5056
+ "description": "Id of an entry in the top-level datasets map (the assets id pattern).",
5057
+ "examples": [
5058
+ "revenue",
5059
+ "pipeline-2026"
5060
+ ]
5061
+ },
5062
+ "DatasetFields": {
5063
+ "type": "array",
5064
+ "items": {
5065
+ "type": "string"
5066
+ },
5067
+ "minItems": 1,
5068
+ "uniqueItems": true,
5069
+ "description": "Dataset column names to use, in order, each at most once. Selects and orders the dataset's columns; an unknown name is a 'dataset-field-unknown' error.",
5070
+ "examples": [
5071
+ [
5072
+ "Quarter",
5073
+ "Revenue"
5074
+ ]
5075
+ ]
5076
+ },
5077
+ "Datasets": {
5078
+ "type": "object",
5079
+ "description": `Shared data tables keyed by id (the assets id pattern). Charts reference one with 'chart.data': { "dataset": "<id>" } and tables with 'table': { "dataset": "<id>" }.`,
5080
+ "propertyNames": {
5081
+ "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._-]*$"
5082
+ },
5083
+ "additionalProperties": {
5084
+ "$ref": "#/$defs/Dataset"
5085
+ },
5086
+ "examples": [
5087
+ {
5088
+ "revenue": {
5089
+ "title": "Revenue by quarter",
5090
+ "columns": [
5091
+ "Quarter",
5092
+ {
5093
+ "name": "Revenue",
5094
+ "format": "$#,##0.0"
5095
+ },
5096
+ "Costs"
5097
+ ],
5098
+ "rows": [
5099
+ [
5100
+ "Q1",
5101
+ 12,
5102
+ 8
5103
+ ],
5104
+ [
5105
+ "Q2",
5106
+ 18,
5107
+ 11
5108
+ ],
5109
+ [
5110
+ "Q3",
5111
+ 24,
5112
+ 15
5113
+ ]
4919
5114
  ],
5115
+ "source": {
5116
+ "src": "./data/revenue.csv",
5117
+ "retrieved": "2026-10-05"
5118
+ }
5119
+ }
5120
+ }
5121
+ ]
5122
+ },
5123
+ "Dataset": {
5124
+ "type": "object",
5125
+ "additionalProperties": false,
5126
+ "required": [
5127
+ "columns",
5128
+ "rows"
5129
+ ],
5130
+ "description": "One shared data table: named columns (strings or DataColumn objects with a number format) and rows of scalar cells. Column names are unique ('data-column-duplicate' error). Rich text and styling belong in an inline table.",
5131
+ "properties": {
5132
+ "title": {
5133
+ "type": "string",
5134
+ "description": "Human name of the dataset, shown by editors.",
5135
+ "examples": [
5136
+ "Revenue by quarter"
5137
+ ]
5138
+ },
5139
+ "description": {
5140
+ "type": "string",
5141
+ "description": "What the dataset holds.",
5142
+ "examples": [
5143
+ "Quarterly revenue and costs, in $M."
5144
+ ]
5145
+ },
5146
+ "columns": {
5147
+ "type": "array",
5148
+ "items": {
5149
+ "oneOf": [
5150
+ {
5151
+ "type": "string"
5152
+ },
5153
+ {
5154
+ "$ref": "#/$defs/DataColumn"
5155
+ }
5156
+ ]
5157
+ },
5158
+ "minItems": 1,
5159
+ "description": "Ordered, uniquely named columns.",
5160
+ "examples": [
4920
5161
  [
4921
- "Month",
4922
- "Revenue",
5162
+ "Quarter",
5163
+ {
5164
+ "name": "Revenue",
5165
+ "format": "$#,##0.0"
5166
+ },
4923
5167
  "Costs"
4924
5168
  ]
4925
5169
  ]
5170
+ },
5171
+ "rows": {
5172
+ "type": "array",
5173
+ "items": {
5174
+ "type": "array",
5175
+ "items": {
5176
+ "$ref": "#/$defs/ChartDataCell"
5177
+ }
5178
+ },
5179
+ "description": "Rows of scalar cells (string, number, boolean, null); each row aligns by index with columns.",
5180
+ "examples": [
5181
+ [
5182
+ [
5183
+ "Q1",
5184
+ 12,
5185
+ 8
5186
+ ],
5187
+ [
5188
+ "Q2",
5189
+ 18,
5190
+ 11
5191
+ ]
5192
+ ]
5193
+ ]
5194
+ },
5195
+ "source": {
5196
+ "$ref": "#/$defs/DataSourceRef",
5197
+ "description": "Optional provenance. Engines never read, fetch or refresh it."
4926
5198
  }
4927
5199
  }
4928
5200
  },
5201
+ "DatasetRef": {
5202
+ "type": "object",
5203
+ "additionalProperties": false,
5204
+ "required": [
5205
+ "dataset"
5206
+ ],
5207
+ "description": "Chart data taken from a top-level dataset. Engines inline it before plotting; 'chart.mapping' names columns after the 'fields' selection.",
5208
+ "properties": {
5209
+ "dataset": {
5210
+ "$ref": "#/$defs/DatasetId",
5211
+ "description": "Id of the dataset. An unknown id is a 'dataset-unknown' error."
5212
+ },
5213
+ "fields": {
5214
+ "$ref": "#/$defs/DatasetFields",
5215
+ "description": "The dataset columns to use, by name and in order. Absent uses every column."
5216
+ }
5217
+ },
5218
+ "examples": [
5219
+ {
5220
+ "dataset": "revenue"
5221
+ },
5222
+ {
5223
+ "dataset": "revenue",
5224
+ "fields": [
5225
+ "Quarter",
5226
+ "Revenue"
5227
+ ]
5228
+ }
5229
+ ]
5230
+ },
5231
+ "ChartMapping": {
5232
+ "type": "object",
5233
+ "additionalProperties": false,
5234
+ "description": "Series mapping by column name (after any 'fields' selection). Mapping only selects and orders columns; pie, doughnut and other single-series constructs still plot one series. An unknown name is a 'chart-mapping-unknown-column' error; a series that repeats the category or X column, and an X column on a chart type without an X axis, are dropped with a 'chart-mapping-adapted' warning.",
5235
+ "properties": {
5236
+ "category": {
5237
+ "type": "string",
5238
+ "description": "The label (category) column. Default: the first column.",
5239
+ "examples": [
5240
+ "Quarter"
5241
+ ]
5242
+ },
5243
+ "x": {
5244
+ "type": "string",
5245
+ "description": "The X column of an XY (scatter) chart. Default: the second column (the first, when the category is the second column), and only when there are three or more columns: with two, the second column is the one series, plotted against row numbers. An X that leaves no series is plotted as the series with a 'chart-mapping-adapted' warning.",
5246
+ "examples": [
5247
+ "Spend"
5248
+ ]
5249
+ },
5250
+ "series": {
5251
+ "type": "array",
5252
+ "items": {
5253
+ "type": "string"
5254
+ },
5255
+ "minItems": 1,
5256
+ "description": "The plotted columns, in order. Default: every column that is not the category or the X column.",
5257
+ "examples": [
5258
+ [
5259
+ "Revenue",
5260
+ "Costs"
5261
+ ]
5262
+ ]
5263
+ }
5264
+ },
5265
+ "examples": [
5266
+ {
5267
+ "category": "Quarter",
5268
+ "series": [
5269
+ "Costs",
5270
+ "Revenue"
5271
+ ]
5272
+ },
5273
+ {
5274
+ "category": "Region",
5275
+ "x": "Spend",
5276
+ "series": [
5277
+ "Revenue"
5278
+ ]
5279
+ }
5280
+ ]
5281
+ },
4929
5282
  "ChartDataCell": {
4930
5283
  "oneOf": [
4931
5284
  {
@@ -5000,6 +5353,10 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
5000
5353
  "type": "integer",
5001
5354
  "minimum": 1,
5002
5355
  "description": "Number of grid rows covered, starting at this cell. Covered positions must contain null. Header cells cannot span into body rows. Default 1."
5356
+ },
5357
+ "format": {
5358
+ "$ref": "#/$defs/NumberFormat",
5359
+ "description": "Number format. On a body cell it formats that cell's number value (and wins over the column's format); on a header cell (in 'columns') it is the column's format, the same as a DataColumn header. Strings, booleans, null and rich runs display unchanged."
5003
5360
  }
5004
5361
  },
5005
5362
  "description": "A cell with explicit visual style or merged geometry. Its position remains its array column index; use null placeholders for every covered grid position."
@@ -5122,7 +5479,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
5122
5479
  "properties": {
5123
5480
  "narratives": {
5124
5481
  "$ref": "#/$defs/CatalogEntry",
5125
- "description": "Catalog of narrative templates. Records validate against https://openpresentation.org/schema/opf-narrative/v1. Default source: https://www.pptx.gallery/narratives."
5482
+ "description": "Catalog of narrative templates. Records validate against https://openpresentation.org/schema/opf-narrative/v1. A custom narrative goes in 'catalogs.narratives.records' and is referenced by its id from the root 'narrative'. Default source: https://www.pptx.gallery/narratives."
5126
5483
  },
5127
5484
  "themes": {
5128
5485
  "$ref": "#/$defs/CatalogEntry",
@@ -5184,7 +5541,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
5184
5541
  "description": "Ordered search path of sources. The engine tries each in order; first match wins. The default catalog for the kind is appended implicitly at the end."
5185
5542
  }
5186
5543
  ],
5187
- "description": "Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Fetching a declared source is an explicit opt-in: the engine or its caller performs that fetch."
5544
+ "description": "Single source or an ordered search path of sources. When omitted, the engine falls back to the default catalog at https://www.pptx.gallery/<kind>, resolved from its bundled snapshot. Engines never fetch a source. The host loads the records itself and passes them to the renderer and exporter as a 'catalogSources' map from the source string to its records; a source with no entry in that map contributes no records, except the default catalog's own URL and the '@openpresentation/opf' package, which resolve from the bundled snapshot."
5188
5545
  },
5189
5546
  "records": {
5190
5547
  "type": "array",
@@ -5197,7 +5554,7 @@ Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.
5197
5554
  },
5198
5555
  "CatalogSource": {
5199
5556
  "type": "string",
5200
- "description": "Catalog source location. Accepts:\n- A bare URL pointing at a catalog directory (e.g. 'https://acme.com/decks/narratives'); record ids resolve to '<base>/<id>.json'.\n- A URL pointing at an index file (e.g. 'https://acme.com/decks/narratives/index.json'); records are resolved relative to the index file's directory and the index entries describe what's available. Index files follow https://openpresentation.org/schema/opf-catalog-index/v1; the default catalog's index is https://www.pptx.gallery/<kind>/index.json.\n- A package reference of the form 'pkg:<package>[/<subpath>]'; resolved through a locally-installed package on the engine's package path.",
5557
+ "description": "Catalog source location. Accepts:\n- A bare URL pointing at a catalog directory (e.g. 'https://acme.com/decks/narratives'); record ids resolve to '<base>/<id>.json'.\n- A URL pointing at an index file (e.g. 'https://acme.com/decks/narratives/index.json'); records are resolved relative to the index file's directory and the index entries describe what's available. Index files follow https://openpresentation.org/schema/opf-catalog-index/v1; the default catalog's index is https://www.pptx.gallery/<kind>/index.json.\n- A package reference of the form 'pkg:<package>[/<subpath>]'. 'pkg:@openpresentation/opf/...' resolves from the bundled snapshot; any other package reference needs the host to supply its records in 'catalogSources'.\n\nEngines never fetch or install anything for a source: the host supplies the records of every source other than the bundled default, as a 'catalogSources' map from the source string to its records.",
5201
5558
  "examples": [
5202
5559
  "https://www.pptx.gallery/narratives",
5203
5560
  "https://acme.com/decks/narratives/index.json",
@@ -5389,7 +5746,7 @@ var audience = {
5389
5746
  "attentionBudgetMinutes": {
5390
5747
  "type": "number",
5391
5748
  "exclusiveMinimum": 0,
5392
- "description": "Realistic upper bound on this audience's focused attention for a single presentation, in minutes. Used as a hint when comparing against duration and the resolved narrative's durationRange."
5749
+ "description": "Realistic upper bound on this audience's focused attention for a single presentation, in minutes. Used as a hint when comparing against duration and the resolved narrative's duration range."
5393
5750
  },
5394
5751
  "recommendedNarratives": {
5395
5752
  "type": "array",
@@ -5882,6 +6239,9 @@ var theme = {
5882
6239
  "16:9",
5883
6240
  "4:3",
5884
6241
  "16:10",
6242
+ "1:1",
6243
+ "4:5",
6244
+ "9:16",
5885
6245
  "letter",
5886
6246
  "a4",
5887
6247
  "widescreen",
@@ -5892,6 +6252,9 @@ var theme = {
5892
6252
  "16:9",
5893
6253
  "4:3",
5894
6254
  "16:10",
6255
+ "1:1",
6256
+ "4:5",
6257
+ "9:16",
5895
6258
  "letter",
5896
6259
  "a4",
5897
6260
  "widescreen",
@@ -6053,179 +6416,36 @@ var layout = {
6053
6416
  "Two equal-width columns under a left-aligned slide title. Use when comparing two ideas, before/after pairs, or paired text + image content."
6054
6417
  ]
6055
6418
  },
6056
- "contentType": {
6057
- "type": "string",
6058
- "enum": [
6059
- "Title",
6060
- "Text",
6061
- "List",
6062
- "Image",
6063
- "Number",
6064
- "Metric",
6065
- "Chart",
6066
- "Table",
6067
- "Code",
6068
- "Video",
6069
- "Quote",
6070
- "Timeline"
6071
- ],
6072
- "description": "Primary kind of content the layout holds. Drives pickers and AI placement decisions. Metric is the canonical numeric/KPI category; Number remains an accepted legacy label."
6073
- },
6074
- "contentMultiple": {
6075
- "type": "string",
6076
- "enum": [
6077
- "None",
6078
- "1x",
6079
- "2x",
6080
- "3x",
6081
- "4x",
6082
- "5x",
6083
- "6x"
6084
- ],
6085
- "description": "How many parallel content blocks the layout exposes ('2x' = two-column, '3x' = three-up, etc.)."
6086
- },
6087
- "contentAlignment": {
6088
- "type": "string",
6089
- "enum": [
6090
- "None",
6091
- "Left",
6092
- "Center"
6093
- ],
6094
- "description": "Default horizontal alignment of the content area."
6095
- },
6096
- "contentBox": {
6097
- "type": "boolean",
6098
- "description": "Whether the content area is rendered inside a visible box / card.",
6099
- "examples": [
6100
- false,
6101
- true
6102
- ]
6103
- },
6104
- "contentTypeChartPrimary": {
6105
- "type": "string",
6106
- "enum": [
6107
- "None",
6108
- "Top",
6109
- "Bottom",
6110
- "Left",
6111
- "Right"
6112
- ],
6113
- "description": "For chart layouts, where the primary chart sits relative to the rest of the content."
6114
- },
6115
- "contentTypeImageFill": {
6116
- "type": "string",
6117
- "enum": [
6118
- "None",
6119
- "Crop",
6120
- "Fit"
6121
- ],
6122
- "description": "For image layouts, how the image fills its slot."
6419
+ "design": {
6420
+ "$ref": "#/$defs/DesignHints",
6421
+ "description": "The layout's design hints, with the same keys and values as the deck's design and a slide's design (a slide overrides exactly what its layout sets, by the same name). An absent key means the layout has no opinion. Every key is applied from the record as the lowest-precedence default, per key: the slide's design, then the deck's design, then this record's design, then the engine default, so a layout value nobody overrides is honored without copying it anywhere (a layout's composition.mode still ranks above contentDirection; slideImage.position is the fallback position of a slide image the layout reserves). Composition, the renderer and the PPTX exporter all read the one result."
6123
6422
  },
6124
- "contentTypeListBullet": {
6125
- "type": "string",
6126
- "enum": [
6127
- "None",
6128
- "Character",
6129
- "Image"
6130
- ],
6131
- "description": "For list layouts, how bullets are rendered."
6423
+ "placeholders": {
6424
+ "type": "array",
6425
+ "items": {
6426
+ "$ref": "#/$defs/Placeholder"
6427
+ },
6428
+ "description": "Ordered regions the layout exposes. This is the single source of truth for what the layout holds: the content kind, the number of body regions and whether it has a title, subtitle or tag are derived from it (layoutContent in @openpresentation/opf), never stored separately. The engine fills 'title', 'subtitle' and 'tag' placeholders from Slide.title, Slide.subtitle and Slide.tag. The other placeholders are content-kind regions that composition uses to size the body and that pickers use to match layouts. Slide content itself lives either in root payload fields or promoted region keys on Slide. Chrome (slide number, footer, date) is not included here; it is owned by Design.header / Design.footer."
6132
6429
  },
6133
- "contentTypeListHeading": {
6134
- "type": "boolean",
6135
- "description": "For list layouts, whether each list item carries a heading.",
6430
+ "tags": {
6431
+ "type": "array",
6432
+ "items": {
6433
+ "type": "string"
6434
+ },
6435
+ "description": "Free-form labels for filtering and search.",
6136
6436
  "examples": [
6137
- false,
6138
- true
6139
- ]
6140
- },
6141
- "slideTag": {
6142
- "type": "boolean",
6143
- "description": "Whether the layout includes a small slide-level tag / label region above or near the title.",
6144
- "examples": [
6145
- false,
6146
- true
6147
- ]
6148
- },
6149
- "slideTitle": {
6150
- "type": "boolean",
6151
- "description": "Whether the layout includes a slide title region.",
6152
- "examples": [
6153
- true,
6154
- false
6155
- ]
6156
- },
6157
- "slideSubtitle": {
6158
- "type": "boolean",
6159
- "description": "Whether the layout includes a slide-level subtitle or supporting-description region. When placeholders is present, this is true exactly when the layout exposes a placeholder with type 'subtitle'.",
6160
- "examples": [
6161
- false,
6162
- true
6163
- ]
6164
- },
6165
- "slideTitleAlignment": {
6166
- "type": "string",
6167
- "enum": [
6168
- "None",
6169
- "Left",
6170
- "Center"
6171
- ],
6172
- "description": "Horizontal alignment of the slide title region."
6173
- },
6174
- "slideImage": {
6175
- "type": "boolean",
6176
- "description": "Whether the layout includes a dedicated slide-level image region (separate from any content image).",
6177
- "examples": [
6178
- false,
6179
- true
6180
- ]
6181
- },
6182
- "slideImageAlignment": {
6183
- "type": "string",
6184
- "enum": [
6185
- "None",
6186
- "Top",
6187
- "Bottom",
6188
- "Left",
6189
- "Right",
6190
- "Background"
6191
- ],
6192
- "description": "Where the slide-level image sits relative to the content."
6193
- },
6194
- "slideLayoutDirection": {
6195
- "type": "string",
6196
- "enum": [
6197
- "None",
6198
- "Horizontal",
6199
- "Vertical"
6200
- ],
6201
- "description": "Axis along which the layout's primary regions are arranged."
6202
- },
6203
- "placeholders": {
6204
- "type": "array",
6205
- "items": {
6206
- "$ref": "#/$defs/Placeholder"
6207
- },
6208
- "description": "Ordered regions the layout exposes. The engine fills 'title', 'subtitle', and 'tag' placeholders from Slide.title, Slide.subtitle, and Slide.tag. Other placeholders are content-kind hints for renderers and pickers. Slide content itself lives either in root payload fields or promoted region keys on Slide. Chrome \u2014 slide number, footer, date \u2014 is not included here; it is owned by Design.header / Design.footer."
6209
- },
6210
- "tags": {
6211
- "type": "array",
6212
- "items": {
6213
- "type": "string"
6214
- },
6215
- "description": "Free-form labels for filtering and search.",
6216
- "examples": [
6217
- [
6218
- "title",
6219
- "minimal"
6220
- ],
6221
- [
6222
- "chart",
6223
- "kpi"
6224
- ],
6225
- [
6226
- "two-column",
6227
- "comparison"
6228
- ]
6437
+ [
6438
+ "title",
6439
+ "minimal"
6440
+ ],
6441
+ [
6442
+ "chart",
6443
+ "kpi"
6444
+ ],
6445
+ [
6446
+ "two-column",
6447
+ "comparison"
6448
+ ]
6229
6449
  ]
6230
6450
  },
6231
6451
  "preview": {
@@ -6237,7 +6457,7 @@ var layout = {
6237
6457
  "format": "uri",
6238
6458
  "description": "Main preview image (PNG/JPG). Used as the primary visual in picker UIs and previews of the record.",
6239
6459
  "examples": [
6240
- "https://www.pptx.gallery/layouts/title-left.png"
6460
+ "https://example.com/layouts/title-subtitle.png"
6241
6461
  ]
6242
6462
  },
6243
6463
  "thumbnailSrc": {
@@ -6245,7 +6465,7 @@ var layout = {
6245
6465
  "format": "uri",
6246
6466
  "description": "Smaller thumbnail preview suited to dense grid views.",
6247
6467
  "examples": [
6248
- "https://www.pptx.gallery/layouts/title-left.thumbnail.png"
6468
+ "https://example.com/layouts/title-subtitle.thumbnail.png"
6249
6469
  ]
6250
6470
  },
6251
6471
  "vectorSrc": {
@@ -6253,7 +6473,7 @@ var layout = {
6253
6473
  "format": "uri",
6254
6474
  "description": "SVG / vector preview for crisp scaling at any size.",
6255
6475
  "examples": [
6256
- "https://www.pptx.gallery/layouts/title-left.svg"
6476
+ "https://www.pptx.gallery/layout-previews/title-subtitle.svg"
6257
6477
  ]
6258
6478
  }
6259
6479
  }
@@ -6268,7 +6488,7 @@ var layout = {
6268
6488
  "required": [
6269
6489
  "type"
6270
6490
  ],
6271
- "description": "A single region inside a slide layout. Title, subtitle, and tag placeholders bind to the corresponding Slide fields; other placeholders describe the intended content kind for that region. The array order in the surrounding 'placeholders' field preserves layout region order.",
6491
+ "description": "A single region inside a slide layout. Title, subtitle, and tag placeholders bind to the corresponding Slide fields; every other placeholder describes the content kind that region holds. The array order in the surrounding 'placeholders' field preserves layout region order.",
6272
6492
  "properties": {
6273
6493
  "type": {
6274
6494
  "type": "string",
@@ -6277,18 +6497,102 @@ var layout = {
6277
6497
  "subtitle",
6278
6498
  "tag",
6279
6499
  "text",
6280
- "metric",
6281
- "quote",
6282
- "timeline",
6283
6500
  "list",
6501
+ "image",
6502
+ "video",
6284
6503
  "chart",
6285
- "picture",
6286
6504
  "table",
6287
- "media",
6288
- "diagram",
6289
- "code"
6505
+ "code",
6506
+ "metric",
6507
+ "quote",
6508
+ "timeline"
6290
6509
  ],
6291
- "description": "OPF placeholder kind. 'text' and 'list' are flexible textual content regions. 'metric' is a numeric/KPI content region filled by a metric payload, including its optional label, description, unit, delta, and trend. The named kinds describe a specific content role used by pickers, AI generation, and engine defaulting. 'picture' and legacy 'diagram' use image payloads; 'media' uses video. Quote and timeline use their corresponding payload fields."
6510
+ "description": "The content kind of the region. This is the one OPF content-kind vocabulary: the same words name a slide's payload fields (text, items, image, video, chart, table, code, metric, quote, timeline). 'title', 'subtitle' and 'tag' are the heading kinds and bind to Slide.title, Slide.subtitle and Slide.tag. 'text' holds text and bullets; 'list' holds items. 'image' is filled by an image payload and 'video' by a video payload. 'metric', 'quote', 'timeline', 'chart', 'table' and 'code' are filled by the payload of the same name; a metric region shows the metric payload with its optional label, description, unit, delta, trend and sentiment."
6511
+ }
6512
+ }
6513
+ },
6514
+ "DesignHints": {
6515
+ "type": "object",
6516
+ "additionalProperties": false,
6517
+ "description": "Design hints a layout carries. The keys and lowercase values are those of the deck's design and a slide's design in opf.schema.json (Design), so a slide overrides a layout by the same name and layout.design can be copied into slide.design unchanged. An absent key means the layout has no opinion. Only the keys the layout sets are stored. scripts/check-spec-integrity.mjs verifies that every key here has the same type and values as its Design counterpart.",
6518
+ "properties": {
6519
+ "titleAlignment": {
6520
+ "type": "string",
6521
+ "enum": [
6522
+ "left",
6523
+ "center",
6524
+ "right"
6525
+ ],
6526
+ "description": "Horizontal alignment of the title placeholder."
6527
+ },
6528
+ "contentAlignment": {
6529
+ "type": "string",
6530
+ "enum": [
6531
+ "left",
6532
+ "center",
6533
+ "right"
6534
+ ],
6535
+ "description": "Horizontal alignment of the body regions."
6536
+ },
6537
+ "contentBox": {
6538
+ "type": "boolean",
6539
+ "description": "Whether the body regions are drawn inside a visible card or surface."
6540
+ },
6541
+ "contentDirection": {
6542
+ "type": "string",
6543
+ "enum": [
6544
+ "horizontal",
6545
+ "vertical"
6546
+ ],
6547
+ "description": "Axis along which parallel body content is arranged: 'vertical' is a column, 'horizontal' a row. Composition applies it when neither the slide nor this layout's composition sets a mode, below the slide's and the deck's design.contentDirection and above automatic selection."
6548
+ },
6549
+ "chartPrimary": {
6550
+ "type": "string",
6551
+ "enum": [
6552
+ "none",
6553
+ "top",
6554
+ "bottom",
6555
+ "left",
6556
+ "right"
6557
+ ],
6558
+ "description": "Where the primary chart sits relative to the other body content. Composition applies it below the slide's and the deck's design.chartPrimary, with the semantics described there."
6559
+ },
6560
+ "imageFill": {
6561
+ "type": "string",
6562
+ "enum": [
6563
+ "crop",
6564
+ "fit"
6565
+ ],
6566
+ "description": "How images fill their region: 'crop' covers the region, 'fit' shows the whole image."
6567
+ },
6568
+ "listBullet": {
6569
+ "type": "string",
6570
+ "enum": [
6571
+ "character",
6572
+ "image"
6573
+ ],
6574
+ "description": "Marker style of lists: 'character' draws the glyph, 'image' draws the deck's icon logo as a picture bullet."
6575
+ },
6576
+ "slideImage": {
6577
+ "type": "object",
6578
+ "additionalProperties": false,
6579
+ "required": [
6580
+ "position"
6581
+ ],
6582
+ "description": "A slide-level image region the layout reserves, separate from any content image. Its presence is what lets a deck-wide design.slideImage apply to slides on this layout. The image itself comes from the slide or the deck design.",
6583
+ "properties": {
6584
+ "position": {
6585
+ "type": "string",
6586
+ "enum": [
6587
+ "background",
6588
+ "top",
6589
+ "bottom",
6590
+ "left",
6591
+ "right"
6592
+ ],
6593
+ "description": "Where the slide-level image sits relative to the content. 'background' is a full-bleed image behind the content; the other positions give the image a band along that edge. Used when the slide's or deck's design.slideImage gives no position."
6594
+ }
6595
+ }
6292
6596
  }
6293
6597
  }
6294
6598
  },
@@ -6358,7 +6662,7 @@ var chartType = {
6358
6662
  "$schema": "https://json-schema.org/draft/2020-12/schema",
6359
6663
  "$id": "https://openpresentation.org/schema/opf-chart-type/v1",
6360
6664
  "title": "Chart Type",
6361
- "description": 'Schema for chart-type records in the pptx.gallery catalog. The bundled catalog holds one record per chart type that Aspose.Slides officially supports (see mappings.renderers["aspose-slides"].chartType). Each record describes a named chart variant, its Open XML mapping, its series/category cardinality, the column structure of the underlying workbook, and a small sample dataset suitable for previews. Chart types are referenced from OPF chart content payloads; the engine resolves the reference against catalogs.chartTypes (inline) -> catalogs.chartTypes.source -> the default catalog at https://www.pptx.gallery/chart-types.',
6665
+ "description": `Schema for chart-type records in the pptx.gallery catalog. The bundled catalog holds one record per chart type that Aspose.Slides officially supports (see mappings.renderers["aspose-slides"].chartType), plus the column-and-line combination 'combo' (mappings.openxml.composition "mixed"). Each record names a chart variant, its Open XML mapping, how many data series it expects and how pickers group it. Chart types are referenced from OPF chart content payloads; the engine resolves the reference against catalogs.chartTypes (inline) -> catalogs.chartTypes.source -> the default catalog at https://www.pptx.gallery/chart-types.`,
6362
6666
  "type": "object",
6363
6667
  "additionalProperties": false,
6364
6668
  "patternProperties": {
@@ -6381,29 +6685,19 @@ var chartType = {
6381
6685
  "id": {
6382
6686
  "type": "string",
6383
6687
  "pattern": "^[a-z0-9][a-z0-9-]*$",
6384
- "description": "Stable slug used by OPF documents to reference this chart type. Lowercase kebab-case. Chart type ids may start with a digit (e.g., '100pct-stacked-column', '3d-column') to mirror conventional chart naming.",
6688
+ "description": "Stable slug used by OPF documents to reference this chart type (`chart.type`). Lowercase kebab-case. Chart type ids may start with a digit (e.g., '100pct-stacked-column', '3d-column') to mirror conventional chart naming.",
6385
6689
  "examples": [
6386
6690
  "column",
6387
6691
  "bar",
6388
- "stacked-column-3x",
6692
+ "stacked-column",
6389
6693
  "doughnut",
6390
6694
  "treemap",
6391
- "100pct-stacked-column-3x"
6695
+ "100pct-stacked-column"
6392
6696
  ]
6393
6697
  },
6394
6698
  "name": {
6395
6699
  "type": "string",
6396
- "description": "Stable display/programmatic name for this chart type.",
6397
- "examples": [
6398
- "COLUMN",
6399
- "STACKED_COLUMN_3X",
6400
- "DOUGHNUT",
6401
- "TREEMAP"
6402
- ]
6403
- },
6404
- "label": {
6405
- "type": "string",
6406
- "description": "Human-readable label shown in chart pickers.",
6700
+ "description": "Human-readable name of the chart type, as a chart picker shows it.",
6407
6701
  "examples": [
6408
6702
  "Column",
6409
6703
  "Stacked Column",
@@ -6416,14 +6710,14 @@ var chartType = {
6416
6710
  "description": "One-sentence positioning: when to reach for this chart variant.",
6417
6711
  "examples": [
6418
6712
  "Single-series vertical column chart for comparing values across categories.",
6419
- "Bullet chart that benchmarks one value against ranked threshold bands."
6713
+ "Stacked column chart that shows how the parts of each category add up to its total."
6420
6714
  ]
6421
6715
  },
6422
6716
  "description": {
6423
6717
  "type": "string",
6424
6718
  "description": "Longer prose describing the chart and ideal use cases.",
6425
6719
  "examples": [
6426
- "Use a clustered column when you want to compare a small number of series across the same categories \u2014 e.g., revenue by quarter for two product lines. Best with 2\u20134 series and \u226412 categories."
6720
+ "Use a stacked column when you want to compare totals across categories and also show how each series contributes \u2014 e.g., revenue by quarter split by product line. Best with 2\u20134 series and \u226412 categories."
6427
6721
  ]
6428
6722
  },
6429
6723
  "mappings": {
@@ -6432,11 +6726,11 @@ var chartType = {
6432
6726
  },
6433
6727
  "deprecation": {
6434
6728
  "$ref": "#/$defs/ChartTypeDeprecation",
6435
- "description": "Present when this chart type is deprecated. Deprecated records stay resolvable so existing documents keep validating, but pickers and default listings exclude them, validators warn when a document references them, and they are removed in the release named by `removal`."
6729
+ "description": "Present when this chart type is deprecated. A deprecated record stays resolvable so existing documents keep validating, validators warn when a document references it, and pickers and generators should not offer it. The bundled default catalog holds no deprecated records; a publisher or an inline `catalogs.chartTypes.records` entry can still use the field."
6436
6730
  },
6437
6731
  "group": {
6438
6732
  "type": "string",
6439
- "description": "Top-level grouping in the chart picker (column, bar, line, area, pie, radar, etc.).",
6733
+ "description": "Top-level grouping in the chart picker.",
6440
6734
  "examples": [
6441
6735
  "Column",
6442
6736
  "Bar",
@@ -6447,9 +6741,8 @@ var chartType = {
6447
6741
  "Histogram",
6448
6742
  "XY (Scatter)",
6449
6743
  "Treemap",
6450
- "Bullet",
6451
- "Sparkline",
6452
6744
  "Map",
6745
+ "Combo",
6453
6746
  "Other"
6454
6747
  ]
6455
6748
  },
@@ -6471,155 +6764,18 @@ var chartType = {
6471
6764
  "hierarchical",
6472
6765
  "normalized"
6473
6766
  ],
6474
- "description": "Shape of the underlying data: a flat series ('simple'), one with engine-side calculation ('calculated'), parent-child rows ('hierarchical'), or pre-normalized rows ('normalized')."
6767
+ "description": "Shape of the underlying data: a flat series ('simple'), one with engine-side calculation ('calculated'), parent-child rows ('hierarchical'), or pre-normalized rows ('normalized'). The editor offers only 'simple' types as switch targets for a chart's existing data."
6475
6768
  },
6476
6769
  "series": {
6477
6770
  "type": "integer",
6478
6771
  "minimum": 0,
6479
- "description": "Number of data series this chart type expects.",
6480
- "examples": [
6481
- 1,
6482
- 2,
6483
- 3,
6484
- 4
6485
- ]
6486
- },
6487
- "categories": {
6488
- "type": "integer",
6489
- "minimum": 0,
6490
- "description": "Number of category labels this chart type expects on the primary axis.",
6491
- "examples": [
6492
- 4,
6493
- 6,
6494
- 8,
6495
- 12
6496
- ]
6497
- },
6498
- "seriesGroups": {
6499
- "type": "integer",
6500
- "minimum": 1,
6501
- "description": "Number of series groups (axis bands) this chart type uses; >1 for combo or banded charts.",
6772
+ "description": "Number of data series this chart type expects: exactly that many, except that a stacked or percent-stacked type and a combination (composition 'mixed', such as combo) expect at least that many. The editor offers a type that expects more than one series only for data with a fitting number of value columns; a one-series type fits one value column, and column, bar, line, area and radar types fit any number.",
6502
6773
  "examples": [
6503
6774
  1,
6504
6775
  2,
6505
6776
  3
6506
6777
  ]
6507
6778
  },
6508
- "useSecondaryCategories": {
6509
- "type": "boolean",
6510
- "description": "Whether the chart type uses a secondary category axis.",
6511
- "examples": [
6512
- false,
6513
- true
6514
- ]
6515
- },
6516
- "workbookRange": {
6517
- "type": "string",
6518
- "description": "A1 reference to the source range in the embedded workbook.",
6519
- "examples": [
6520
- "Sheet1!$A$1:$I$2",
6521
- "Sheet1!$A$1:$G$3"
6522
- ]
6523
- },
6524
- "columns": {
6525
- "type": "array",
6526
- "items": {
6527
- "type": "string"
6528
- },
6529
- "description": "Column header names of the embedded workbook, in left-to-right order.",
6530
- "examples": [
6531
- [
6532
- "Series 1",
6533
- "Value"
6534
- ],
6535
- [
6536
- "Series 1",
6537
- "Value 1",
6538
- "Value 2"
6539
- ]
6540
- ]
6541
- },
6542
- "dataColumns": {
6543
- "type": "array",
6544
- "items": {
6545
- "$ref": "#/$defs/ChartDataColumn"
6546
- },
6547
- "description": "Per-column metadata describing the role and position of each column in the workbook source.",
6548
- "examples": [
6549
- [
6550
- {
6551
- "name": "Series 1",
6552
- "role": "categoryLabel",
6553
- "type": "string",
6554
- "position": "row0_col0"
6555
- },
6556
- {
6557
- "name": "Value 1",
6558
- "role": "series",
6559
- "type": "number",
6560
- "position": "row1_col0"
6561
- },
6562
- {
6563
- "name": "Value 2",
6564
- "role": "series",
6565
- "type": "number",
6566
- "position": "row2_col0"
6567
- }
6568
- ]
6569
- ]
6570
- },
6571
- "helperColumns": {
6572
- "type": "array",
6573
- "items": {
6574
- "type": "string"
6575
- },
6576
- "description": "Optional auxiliary column names used by calculated or banded charts (e.g., 'Excellent', 'Good', 'Fair', 'Poor' for a bullet chart).",
6577
- "examples": [
6578
- [
6579
- "Excellent",
6580
- "Good",
6581
- "Fair",
6582
- "Poor"
6583
- ],
6584
- [
6585
- "Band"
6586
- ]
6587
- ]
6588
- },
6589
- "sampleData": {
6590
- "$ref": "#/$defs/ChartSampleData",
6591
- "description": "Inline sample dataset for previews and pickers.",
6592
- "examples": [
6593
- {
6594
- "headers": [
6595
- "Series 1",
6596
- "Q1 2024",
6597
- "Q2 2024",
6598
- "Q3 2024",
6599
- "Q4 2024"
6600
- ],
6601
- "rows": [
6602
- [
6603
- "Value",
6604
- 93810,
6605
- 24592,
6606
- 13278,
6607
- 46048
6608
- ]
6609
- ]
6610
- }
6611
- ]
6612
- },
6613
- "slideNumber": {
6614
- "type": "integer",
6615
- "minimum": 1,
6616
- "description": "Source slide number in the original chart-gallery deck. Carried for traceability.",
6617
- "examples": [
6618
- 1,
6619
- 2,
6620
- 48
6621
- ]
6622
- },
6623
6779
  "tags": {
6624
6780
  "type": "array",
6625
6781
  "items": {
@@ -6632,9 +6788,8 @@ var chartType = {
6632
6788
  "comparison"
6633
6789
  ],
6634
6790
  [
6635
- "bullet",
6636
- "kpi",
6637
- "benchmark"
6791
+ "stacked",
6792
+ "composition"
6638
6793
  ]
6639
6794
  ]
6640
6795
  },
@@ -6647,7 +6802,7 @@ var chartType = {
6647
6802
  "format": "uri",
6648
6803
  "description": "Main preview image (PNG/JPG). Used as the primary visual in picker UIs and previews of the record.",
6649
6804
  "examples": [
6650
- "https://www.pptx.gallery/chart-types/clustered-column.png"
6805
+ "https://www.pptx.gallery/chart-types/column.png"
6651
6806
  ]
6652
6807
  },
6653
6808
  "thumbnailSrc": {
@@ -6655,7 +6810,7 @@ var chartType = {
6655
6810
  "format": "uri",
6656
6811
  "description": "Smaller thumbnail preview suited to dense grid views.",
6657
6812
  "examples": [
6658
- "https://www.pptx.gallery/chart-types/clustered-column.thumbnail.png"
6813
+ "https://www.pptx.gallery/chart-types/column.thumbnail.png"
6659
6814
  ]
6660
6815
  },
6661
6816
  "vectorSrc": {
@@ -6663,7 +6818,7 @@ var chartType = {
6663
6818
  "format": "uri",
6664
6819
  "description": "SVG / vector preview for crisp scaling at any size.",
6665
6820
  "examples": [
6666
- "https://www.pptx.gallery/chart-types/clustered-column.svg"
6821
+ "https://www.pptx.gallery/chart-types/column.svg"
6667
6822
  ]
6668
6823
  }
6669
6824
  }
@@ -6683,7 +6838,7 @@ var chartType = {
6683
6838
  "description": "Id of the non-deprecated chart type that documents should reference instead.",
6684
6839
  "examples": [
6685
6840
  "column",
6686
- "stacked-column-3x"
6841
+ "stacked-column"
6687
6842
  ]
6688
6843
  },
6689
6844
  "reason": {
@@ -6712,7 +6867,7 @@ var chartType = {
6712
6867
  },
6713
6868
  "renderers": {
6714
6869
  "type": "object",
6715
- "description": 'Optional renderer-specific mappings. Keys are renderer ids; values are intentionally opaque to OPF. The bundled catalog records the matching Aspose.Slides ChartType enumeration member under the "aspose-slides" key, e.g. {"aspose-slides": {"chartType": "StackedColumn"}}.',
6870
+ "description": 'Optional renderer-specific mappings. Keys are renderer ids; values are intentionally opaque to OPF. The bundled catalog records the matching Aspose.Slides ChartType enumeration member under the "aspose-slides" key, e.g. {"aspose-slides": {"chartType": "StackedColumn"}}; a mixed composition names the ChartType it starts from and the series type it switches series to, e.g. {"chartType": "ClusteredColumn", "lineSeriesType": "LineWithMarkers"}.',
6716
6871
  "additionalProperties": {
6717
6872
  "type": "object",
6718
6873
  "additionalProperties": true
@@ -6811,173 +6966,51 @@ var chartType = {
6811
6966
  "description": "Short implementation note for mappings that need renderer interpretation."
6812
6967
  }
6813
6968
  }
6969
+ }
6970
+ }
6971
+ };
6972
+ var narrative = {
6973
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
6974
+ "$id": "https://openpresentation.org/schema/opf-narrative/v1",
6975
+ "title": "Narrative Template",
6976
+ "description": "Schema for narrative template files in the openpresentation.org catalog. A narrative is a plan: a named story arc (e.g. 'problem-solution', 'scqa') as an ordered list of beats, each saying what its slide must do. A document points at one with the string 'narrative' (a catalog id, an HTTPS URL or a 'pkg:' reference) and links its slides to beats with 'slides[].beat'. A custom narrative is a record in 'catalogs.narratives.records'. Core validate warns about a 'slides[].beat' id the resolved narrative does not define (opf/unknown-beat) and about a root 'duration' outside this record's 'duration' range (opf/duration-outside-narrative), and reports a beat no slide references (opf/unused-beat).",
6977
+ "type": "object",
6978
+ "required": [
6979
+ "$schema",
6980
+ "id",
6981
+ "name",
6982
+ "beats"
6983
+ ],
6984
+ "properties": {
6985
+ "$schema": {
6986
+ "type": "string",
6987
+ "const": "https://openpresentation.org/schema/opf-narrative/v1"
6988
+ },
6989
+ "id": {
6990
+ "type": "string",
6991
+ "pattern": "^[a-z][a-z0-9-]*$",
6992
+ "description": "Stable slug used by OPF documents to reference this template, e.g. 'problem-solution'. Lowercase kebab-case."
6993
+ },
6994
+ "name": {
6995
+ "type": "string",
6996
+ "description": "Human-readable template name, e.g. 'Problem \u2192 Solution'."
6814
6997
  },
6815
- "ChartDataColumn": {
6998
+ "deprecation": {
6816
6999
  "type": "object",
6817
- "description": "One column of the embedded chart workbook, annotated with its role and grid position.",
7000
+ "additionalProperties": false,
6818
7001
  "required": [
6819
- "name",
6820
- "role",
6821
- "type"
7002
+ "replacedBy"
6822
7003
  ],
7004
+ "description": "Present when this narrative is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.",
6823
7005
  "properties": {
6824
- "name": {
7006
+ "replacedBy": {
6825
7007
  "type": "string",
6826
- "description": "Column header name (e.g. 'Series 1', 'Value', 'Level1', 'Level2').",
6827
- "examples": [
6828
- "Series 1",
6829
- "Value",
6830
- "Level1",
6831
- "Level2"
6832
- ]
7008
+ "pattern": "^[a-z][a-z0-9-]*$",
7009
+ "description": "Id of the non-deprecated narrative record that documents should reference instead."
6833
7010
  },
6834
- "role": {
7011
+ "reason": {
6835
7012
  "type": "string",
6836
- "enum": [
6837
- "categoryLabel",
6838
- "series",
6839
- "helper"
6840
- ],
6841
- "description": "Role this column plays: a category label (axis tick), a series (plotted values), or a helper (calculated/auxiliary)."
6842
- },
6843
- "type": {
6844
- "type": "string",
6845
- "enum": [
6846
- "string",
6847
- "number"
6848
- ],
6849
- "description": "Cell value type for the column."
6850
- },
6851
- "position": {
6852
- "type": "string",
6853
- "pattern": "^row[0-9]+_col[0-9]+$",
6854
- "description": "Grid position of the column header in the source workbook, as 'row<N>_col<M>' (zero-indexed).",
6855
- "examples": [
6856
- "row0_col0",
6857
- "row1_col0",
6858
- "row2_col0"
6859
- ]
6860
- }
6861
- }
6862
- },
6863
- "ChartSampleData": {
6864
- "type": "object",
6865
- "description": "Inline sample dataset for previews. Mirrors a small workbook with header row plus data rows.",
6866
- "required": [
6867
- "headers",
6868
- "rows"
6869
- ],
6870
- "properties": {
6871
- "headers": {
6872
- "type": "array",
6873
- "items": {
6874
- "type": "string"
6875
- },
6876
- "description": "Header row labels. The first cell typically labels the series column; the rest are category labels.",
6877
- "examples": [
6878
- [
6879
- "Series 1",
6880
- "Q1 2024",
6881
- "Q2 2024",
6882
- "Q3 2024",
6883
- "Q4 2024",
6884
- "Q1 2025",
6885
- "Q2 2025",
6886
- "Q3 2025",
6887
- "Q4 2025"
6888
- ]
6889
- ]
6890
- },
6891
- "rows": {
6892
- "type": "array",
6893
- "items": {
6894
- "type": "array",
6895
- "items": {
6896
- "type": [
6897
- "string",
6898
- "number"
6899
- ]
6900
- }
6901
- },
6902
- "description": "Two-dimensional sample data. Each row aligns by index with the headers \u2014 first cell is the row label, remaining cells are values.",
6903
- "examples": [
6904
- [
6905
- [
6906
- "Value",
6907
- 93810,
6908
- 24592,
6909
- 13278,
6910
- 46048,
6911
- 42098,
6912
- 39256,
6913
- 28289,
6914
- 23434
6915
- ]
6916
- ],
6917
- [
6918
- [
6919
- "Value 1",
6920
- 98696,
6921
- 81482,
6922
- 21395,
6923
- 87397
6924
- ],
6925
- [
6926
- "Value 2",
6927
- 38657,
6928
- 40495,
6929
- 76237,
6930
- 88907
6931
- ]
6932
- ]
6933
- ]
6934
- }
6935
- }
6936
- }
6937
- }
6938
- };
6939
- var narrative = {
6940
- "$schema": "https://json-schema.org/draft/2020-12/schema",
6941
- "$id": "https://openpresentation.org/schema/opf-narrative/v1",
6942
- "title": "Narrative Template",
6943
- "description": "Schema for narrative template files in the openpresentation.org catalog. Each template describes a named story arc (e.g. 'problem-solution', 'scqa') as an ordered list of beats. Templates are referenced from OPF documents via narrative \u2014 either as a bare id string (e.g. 'classic-story') or as an inline object whose shape matches this schema (sans '$schema').",
6944
- "type": "object",
6945
- "required": [
6946
- "$schema",
6947
- "id",
6948
- "name",
6949
- "beats"
6950
- ],
6951
- "properties": {
6952
- "$schema": {
6953
- "type": "string",
6954
- "const": "https://openpresentation.org/schema/opf-narrative/v1"
6955
- },
6956
- "id": {
6957
- "type": "string",
6958
- "pattern": "^[a-z][a-z0-9-]*$",
6959
- "description": "Stable slug used by OPF documents to reference this template, e.g. 'problem-solution'. Lowercase kebab-case."
6960
- },
6961
- "name": {
6962
- "type": "string",
6963
- "description": "Human-readable template name, e.g. 'Problem \u2192 Solution'."
6964
- },
6965
- "deprecation": {
6966
- "type": "object",
6967
- "additionalProperties": false,
6968
- "required": [
6969
- "replacedBy"
6970
- ],
6971
- "description": "Present when this narrative is deprecated, for example an alias kept for backward compatibility. Deprecated records stay resolvable so existing documents keep validating and rendering unchanged, but pickers and default listings exclude them and validators warn when a document references them. Same shape as the chart-type deprecation.",
6972
- "properties": {
6973
- "replacedBy": {
6974
- "type": "string",
6975
- "pattern": "^[a-z][a-z0-9-]*$",
6976
- "description": "Id of the non-deprecated narrative record that documents should reference instead."
6977
- },
6978
- "reason": {
6979
- "type": "string",
6980
- "description": "Why the record is deprecated."
7013
+ "description": "Why the record is deprecated."
6981
7014
  },
6982
7015
  "removal": {
6983
7016
  "type": "string",
@@ -7003,17 +7036,20 @@ var narrative = {
7003
7036
  },
7004
7037
  "description": "Audiences this narrative works well for, e.g. ['executive', 'investor', 'customer']."
7005
7038
  },
7006
- "durationRange": {
7039
+ "duration": {
7007
7040
  "type": "object",
7008
- "description": "Typical talk-length window this narrative suits.",
7041
+ "additionalProperties": false,
7042
+ "description": "Typical talk length this narrative suits, as a range in minutes. A deck's own target is the root 'duration' (one number); core validate warns when that target lies outside this range, and when 'min' is greater than 'max'.",
7009
7043
  "properties": {
7010
- "minMinutes": {
7044
+ "min": {
7011
7045
  "type": "number",
7012
- "exclusiveMinimum": 0
7046
+ "exclusiveMinimum": 0,
7047
+ "description": "Shortest talk length, in minutes, this narrative suits."
7013
7048
  },
7014
- "maxMinutes": {
7049
+ "max": {
7015
7050
  "type": "number",
7016
- "exclusiveMinimum": 0
7051
+ "exclusiveMinimum": 0,
7052
+ "description": "Longest talk length, in minutes, this narrative suits."
7017
7053
  }
7018
7054
  }
7019
7055
  },
@@ -7066,7 +7102,7 @@ var narrative = {
7066
7102
  "$defs": {
7067
7103
  "Beat": {
7068
7104
  "type": "object",
7069
- "description": "A single narrative beat \u2014 a labeled segment of the story arc with a specific dramatic purpose. Mirrors the NarrativeBeat definition in opf.schema.json so library entries and inline OPF beats are interchangeable.",
7105
+ "description": "A single narrative beat \u2014 a labeled segment of the story arc with a specific dramatic purpose. One beat is one slide: 'type' is that slide's Slide.type and 'layout' is its Slide.layout, so a planner copies them straight into a skeleton deck. Split a heavy beat into several beats rather than giving it several slides.",
7070
7106
  "required": [
7071
7107
  "id",
7072
7108
  "name"
@@ -7111,36 +7147,25 @@ var narrative = {
7111
7147
  "Inspire & conclude"
7112
7148
  ]
7113
7149
  },
7114
- "slideCount": {
7115
- "type": "integer",
7116
- "minimum": 1,
7117
- "description": "Optional explicit slide count for this beat. Defaults to 1 when omitted; values >1 are reserved for beats that intentionally span multiple slides. Prefer decomposing a heavy beat into multiple beats over setting a high slideCount. The validator emits a warning if the deck's actual count differs significantly.",
7118
- "examples": [
7119
- 1,
7120
- 2,
7121
- 3
7122
- ]
7123
- },
7124
- "slideType": {
7150
+ "type": {
7125
7151
  "type": "string",
7126
7152
  "enum": [
7127
7153
  "text",
7128
7154
  "list",
7129
7155
  "image",
7130
- "shape",
7156
+ "video",
7131
7157
  "chart",
7132
7158
  "table",
7133
- "video",
7134
7159
  "code",
7135
7160
  "metric",
7136
7161
  "quote",
7137
7162
  "timeline"
7138
7163
  ],
7139
- "description": "Default content kind for the beat's slide. Uses ContentPayload.type names to help engines choose a layout. The legacy shape value is retained for compatibility and requests an image representation; it is not a native ContentPayload type."
7164
+ "description": "Default content kind for the beat's slide: the same values as Slide.type. Helps engines and planners choose a layout when only the beat is known."
7140
7165
  },
7141
- "layoutHint": {
7166
+ "layout": {
7142
7167
  "type": "string",
7143
- "description": "Suggested layout id for the beat's opening slide, e.g. 'section-divider', 'title-slide', 'text-left'. Resolves the same way as Slide.layout \u2014 against catalogs.layouts and the default catalog at https://www.pptx.gallery/layouts.",
7168
+ "description": "Suggested layout id for the beat's slide, e.g. 'section-divider', 'title-slide', 'text-left'. Resolves the same way as Slide.layout \u2014 against catalogs.layouts and the default catalog at https://www.pptx.gallery/layouts.",
7144
7169
  "examples": [
7145
7170
  "section-divider",
7146
7171
  "title-slide",
@@ -7154,7 +7179,7 @@ var narrative = {
7154
7179
  "items": {
7155
7180
  "type": "string"
7156
7181
  },
7157
- "description": "Optional speaker or thinking cues attached to the beat. Surfaced in presenter notes.",
7182
+ "description": "Optional speaker or thinking cues for the beat: questions the slide should answer. A planner or author turns them into the slide's notes; no engine copies them there on its own.",
7158
7183
  "examples": [
7159
7184
  [
7160
7185
  "What pain is the audience feeling right now?",
@@ -7170,7 +7195,7 @@ var socialPlatform = {
7170
7195
  "$schema": "https://json-schema.org/draft/2020-12/schema",
7171
7196
  "$id": "https://openpresentation.org/schema/opf-social-platform/v1",
7172
7197
  "title": "Social Platform",
7173
- "description": "Schema for social-platform records in the pptx.gallery library. Each record describes a single social-media platform \u2014 its base URL, profile-URL pattern, handle prefix, brand color, and themed icons. Records are referenced from OPF documents indirectly: the property keys of any Socials object (Organization.socials, Speaker.socials) match record ids, and engines use the catalog record's URL patterns and handle prefix to format and link the profile URL. The brand color and the themed icons are catalog metadata for authoring UIs: engines (opf-render, opf-pptx) render the profile URL, not icons or brand colors. The engine resolves references against catalogs.socialPlatforms (inline) \u2192 catalogs.socialPlatforms.source \u2192 the default catalog at https://www.pptx.gallery/social-platforms.",
7198
+ "description": "Schema for social-platform records in the pptx.gallery library. Each record describes a single social-media platform \u2014 its base URL, profile-URL pattern, handle prefix, and brand color. Records are referenced from OPF documents indirectly: the property keys of any Socials object (Organization.socials, Speaker.socials) match record ids, and engines use the catalog record's URL patterns and handle prefix to format and link the profile URL. The brand color is catalog metadata for authoring UIs: engines (opf-render, opf-pptx) render the profile URL, not brand colors. The engine resolves references against catalogs.socialPlatforms (inline) \u2192 catalogs.socialPlatforms.source \u2192 the default catalog at https://www.pptx.gallery/social-platforms.",
7174
7199
  "type": "object",
7175
7200
  "required": [
7176
7201
  "$schema",
@@ -7313,31 +7338,6 @@ var socialPlatform = {
7313
7338
  "#FF0000"
7314
7339
  ]
7315
7340
  },
7316
- "icon": {
7317
- "type": "string",
7318
- "description": "Default icon source. Accepts an HTTPS URL, data URI, relative path, or asset reference. Used as the fallback when a themed (Light/Dark) variant isn't set. Catalog metadata for authoring UIs: engines do not draw icons.",
7319
- "examples": [
7320
- "https://www.pptx.gallery/social-platforms/linkedin.svg",
7321
- "./assets/social-platforms/linkedin.svg",
7322
- "asset:social-linkedin"
7323
- ]
7324
- },
7325
- "iconLight": {
7326
- "type": "string",
7327
- "description": "Light-colored icon variant intended for authoring UIs that draw the icon on dark backgrounds (engines do not draw icons).",
7328
- "examples": [
7329
- "https://www.pptx.gallery/social-platforms/linkedin-light.svg",
7330
- "./assets/social-platforms/linkedin-light.svg"
7331
- ]
7332
- },
7333
- "iconDark": {
7334
- "type": "string",
7335
- "description": "Dark-colored icon variant intended for authoring UIs that draw the icon on light backgrounds (engines do not draw icons).",
7336
- "examples": [
7337
- "https://www.pptx.gallery/social-platforms/linkedin-dark.svg",
7338
- "./assets/social-platforms/linkedin-dark.svg"
7339
- ]
7340
- },
7341
7341
  "tags": {
7342
7342
  "type": "array",
7343
7343
  "items": {
@@ -7610,6 +7610,18 @@ var colorScheme = {
7610
7610
  "id",
7611
7611
  "name"
7612
7612
  ],
7613
+ "$defs": {
7614
+ "HexColor": {
7615
+ "type": "string",
7616
+ "pattern": "^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$",
7617
+ "description": "Hex color: '#RGB', '#RRGGBB' or '#RRGGBBAA'. The same definition as HexColor in opf.schema.json.",
7618
+ "examples": [
7619
+ "#fff",
7620
+ "#2874A6",
7621
+ "#0F172AFF"
7622
+ ]
7623
+ }
7624
+ },
7613
7625
  "properties": {
7614
7626
  "$schema": {
7615
7627
  "type": "string",
@@ -7676,7 +7688,7 @@ var colorScheme = {
7676
7688
  ]
7677
7689
  },
7678
7690
  "accent1": {
7679
- "type": "string",
7691
+ "$ref": "#/$defs/HexColor",
7680
7692
  "description": "Accent 1 color (hex). Mirrors the OOXML accent1 slot.",
7681
7693
  "examples": [
7682
7694
  "#2874A6",
@@ -7685,7 +7697,7 @@ var colorScheme = {
7685
7697
  ]
7686
7698
  },
7687
7699
  "accent2": {
7688
- "type": "string",
7700
+ "$ref": "#/$defs/HexColor",
7689
7701
  "description": "Accent 2 color (hex). Mirrors the OOXML accent2 slot.",
7690
7702
  "examples": [
7691
7703
  "#1B4F72",
@@ -7694,7 +7706,7 @@ var colorScheme = {
7694
7706
  ]
7695
7707
  },
7696
7708
  "accent3": {
7697
- "type": "string",
7709
+ "$ref": "#/$defs/HexColor",
7698
7710
  "description": "Accent 3 color (hex). Mirrors the OOXML accent3 slot.",
7699
7711
  "examples": [
7700
7712
  "#5499C7",
@@ -7703,7 +7715,7 @@ var colorScheme = {
7703
7715
  ]
7704
7716
  },
7705
7717
  "accent4": {
7706
- "type": "string",
7718
+ "$ref": "#/$defs/HexColor",
7707
7719
  "description": "Accent 4 color (hex). Mirrors the OOXML accent4 slot.",
7708
7720
  "examples": [
7709
7721
  "#7BDBB2",
@@ -7712,7 +7724,7 @@ var colorScheme = {
7712
7724
  ]
7713
7725
  },
7714
7726
  "accent5": {
7715
- "type": "string",
7727
+ "$ref": "#/$defs/HexColor",
7716
7728
  "description": "Accent 5 color (hex). Mirrors the OOXML accent5 slot.",
7717
7729
  "examples": [
7718
7730
  "#3AC67A",
@@ -7721,7 +7733,7 @@ var colorScheme = {
7721
7733
  ]
7722
7734
  },
7723
7735
  "accent6": {
7724
- "type": "string",
7736
+ "$ref": "#/$defs/HexColor",
7725
7737
  "description": "Accent 6 color (hex). Mirrors the OOXML accent6 slot.",
7726
7738
  "examples": [
7727
7739
  "#24A89E",
@@ -7730,42 +7742,42 @@ var colorScheme = {
7730
7742
  ]
7731
7743
  },
7732
7744
  "dark1": {
7733
- "type": "string",
7745
+ "$ref": "#/$defs/HexColor",
7734
7746
  "description": "Dark 1 color (hex). Typically the deepest neutral; OOXML dark1.",
7735
7747
  "examples": [
7736
7748
  "#000000"
7737
7749
  ]
7738
7750
  },
7739
7751
  "dark2": {
7740
- "type": "string",
7752
+ "$ref": "#/$defs/HexColor",
7741
7753
  "description": "Dark 2 color (hex). Secondary dark; OOXML dark2.",
7742
7754
  "examples": [
7743
7755
  "#011842"
7744
7756
  ]
7745
7757
  },
7746
7758
  "light1": {
7747
- "type": "string",
7759
+ "$ref": "#/$defs/HexColor",
7748
7760
  "description": "Light 1 color (hex). Typically the slide canvas; OOXML lt1.",
7749
7761
  "examples": [
7750
7762
  "#FFFFFF"
7751
7763
  ]
7752
7764
  },
7753
7765
  "light2": {
7754
- "type": "string",
7766
+ "$ref": "#/$defs/HexColor",
7755
7767
  "description": "Light 2 color (hex). Secondary light surface; OOXML lt2.",
7756
7768
  "examples": [
7757
7769
  "#F0F0F0"
7758
7770
  ]
7759
7771
  },
7760
7772
  "hyperlink": {
7761
- "type": "string",
7773
+ "$ref": "#/$defs/HexColor",
7762
7774
  "description": "Hyperlink color (hex). OOXML hlink.",
7763
7775
  "examples": [
7764
7776
  "#0563C1"
7765
7777
  ]
7766
7778
  },
7767
7779
  "followedHyperlink": {
7768
- "type": "string",
7780
+ "$ref": "#/$defs/HexColor",
7769
7781
  "description": "Followed-hyperlink color (hex). OOXML folHlink.",
7770
7782
  "examples": [
7771
7783
  "#954F72"
@@ -7826,7 +7838,7 @@ var fontScheme = {
7826
7838
  "$schema": "https://json-schema.org/draft/2020-12/schema",
7827
7839
  "$id": "https://openpresentation.org/schema/opf-font-scheme/v1",
7828
7840
  "title": "Font Scheme",
7829
- "description": "Schema for font-scheme records in the pptx.gallery library. Each scheme pairs a major (heading) and minor (body) font family in the OOXML majorFont/minorFont sense, scoped to a target app (PowerPoint or Google Slides) and a language family (Latin, East Asian, or Complex Script). Font schemes are referenced from OPF documents via design.fontScheme or design.fontScheme.id; the engine resolves the reference against catalogs.fontSchemes (inline) \u2192 catalogs.fontSchemes.source \u2192 the default catalog at https://www.pptx.gallery/font-schemes. Role overrides on design.fontScheme (heading, body, accent, code) take precedence over the resolved scheme.",
7841
+ "description": "Schema for font-scheme records in the pptx.gallery library. Each scheme pairs a major (heading) and minor (body) font family in the OOXML majorFont/minorFont sense, scoped to a target app (powerpoint or google-slides) and a language family (Latin, East Asian, or Complex Script). Font schemes are referenced from OPF documents via design.fontScheme or design.fontScheme.id; the engine resolves the reference against catalogs.fontSchemes (inline) \u2192 catalogs.fontSchemes.source \u2192 the default catalog at https://www.pptx.gallery/font-schemes. Role overrides on design.fontScheme (heading, body, accent, code), each a font family name, take precedence over the resolved scheme.",
7830
7842
  "type": "object",
7831
7843
  "required": [
7832
7844
  "$schema",
@@ -7906,41 +7918,11 @@ var fontScheme = {
7906
7918
  ]
7907
7919
  },
7908
7920
  "code": {
7909
- "type": "object",
7910
- "description": "Optional monospaced font for code blocks and inline code. It has the same shape as the OPF FontScheme 'code' role, so a record and an inline design.fontScheme override are interchangeable. OOXML has no code slot, so exporters write this family on code runs. When neither design.fontScheme nor the resolved record defines 'code', engines fall back to Roboto Mono.",
7911
- "required": [
7912
- "family"
7913
- ],
7914
- "properties": {
7915
- "family": {
7916
- "type": "string",
7917
- "description": "Monospaced font family name.",
7918
- "examples": [
7919
- "Consolas",
7920
- "Courier New"
7921
- ]
7922
- },
7923
- "weight": {
7924
- "type": "number",
7925
- "description": "Numeric font weight (e.g., 400 for regular, 700 for bold)."
7926
- },
7927
- "style": {
7928
- "type": "string",
7929
- "enum": [
7930
- "normal",
7931
- "italic"
7932
- ],
7933
- "description": "Font style."
7934
- },
7935
- "letterSpacing": {
7936
- "type": "number",
7937
- "description": "Letter spacing (tracking) in ems."
7938
- }
7939
- },
7921
+ "type": "string",
7922
+ "description": "Optional monospaced font family name for code blocks and for inline code runs (TextRun.code). It has the same shape as the OPF FontScheme 'code' role, so a record and an inline design.fontScheme override are interchangeable. OOXML has no code slot, so exporters write this family on code runs. When neither design.fontScheme nor the resolved record defines 'code', engines fall back to Roboto Mono.",
7940
7923
  "examples": [
7941
- {
7942
- "family": "Consolas"
7943
- }
7924
+ "Consolas",
7925
+ "Courier New"
7944
7926
  ]
7945
7927
  },
7946
7928
  "eastAsian": {
@@ -8007,32 +7989,35 @@ var fontScheme = {
8007
7989
  "app": {
8008
7990
  "type": "string",
8009
7991
  "enum": [
8010
- "PowerPoint",
8011
- "Google Slides"
7992
+ "powerpoint",
7993
+ "google-slides"
8012
7994
  ],
8013
- "description": "Target application this font pairing is intended for."
7995
+ "description": "Target application this font pairing is intended for. Metadata for pickers and catalog filters: no engine changes its output by it."
8014
7996
  },
8015
7997
  "languageFamily": {
8016
7998
  "type": "string",
8017
7999
  "enum": [
8018
8000
  "latin",
8019
8001
  "ea",
8020
- "cs"
8002
+ "cs",
8003
+ "eastAsian",
8004
+ "complexScript"
8021
8005
  ],
8022
- "description": "OOXML font-language family this scheme is intended for: 'latin' for Latin-script content, 'ea' for East Asian scripts, 'cs' for Complex Scripts. As the design font scheme, an 'ea' or 'cs' scheme also fills that script slot with its own major/minor families when its languages list is empty or names the presentation language."
8006
+ "description": "Font-language family this scheme is intended for: 'latin' for Latin-script content, 'ea' (or 'eastAsian', the same value) for East Asian scripts, 'cs' (or 'complexScript', the same value) for Complex Scripts. The long names match the 'eastAsian' and 'complexScript' slot keys; the short names match the OOXML a:ea and a:cs elements; core reads both spellings as one value. As the design font scheme, an 'ea'/'eastAsian' or 'cs'/'complexScript' scheme also fills that script slot with its own major/minor families when its languages list is empty or names the presentation language."
8023
8007
  },
8024
8008
  "languages": {
8025
8009
  "type": "array",
8026
8010
  "items": {
8027
- "type": "string"
8011
+ "type": "string",
8012
+ "pattern": "^[a-z][a-z0-9-]*$"
8028
8013
  },
8029
- "description": "Optional list of human-readable language names this scheme is curated for. Useful for picker UIs that group fonts by language coverage.",
8014
+ "description": "Optional list of languages catalog ids (see the languages catalog, https://www.pptx.gallery/languages) this scheme is curated for. Useful for picker UIs that group fonts by language coverage. As the design font scheme, an 'ea' or 'cs' scheme fills its script slot only when this list is empty or names the presentation language by id.",
8030
8015
  "examples": [
8031
8016
  [
8032
- "Chinese (simplified)",
8033
- "Chinese (traditional)",
8034
- "Japanese",
8035
- "Korean"
8017
+ "chinese-simplified",
8018
+ "chinese-traditional",
8019
+ "japanese",
8020
+ "korean"
8036
8021
  ]
8037
8022
  ]
8038
8023
  },
@@ -8109,6 +8094,418 @@ var fontScheme = {
8109
8094
  }
8110
8095
  }
8111
8096
  };
8097
+ var finding = {
8098
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8099
+ "$id": "https://openpresentation.org/schema/opf-finding/v1",
8100
+ "title": "Finding Report",
8101
+ "description": "The report format every OPF tool shares. A finding is one thing a checker found at one place in a presentation: a stable rule id, a severity, a category, a JSON Pointer path, a message, and optionally source positions, the measured numbers behind it and suggested fixes as JSON Patch. `validate` in `@openpresentation/opf`, the Markdown and YAML converters, the editor's Review panel and hosted reviewers such as pptx.dev's AI review all produce this shape, so a host shows and applies findings from any of them the same way. A report lists findings, tells whether any has severity `error` (`valid`) and counts them by severity; `validate` adds `schemaValid`, `checks` and variable fields on top of it. Core's checks are deterministic and run locally; findings from other producers use their own rule-id prefix and say so in `source`.",
8102
+ "type": "object",
8103
+ "required": [
8104
+ "valid",
8105
+ "findings",
8106
+ "counts"
8107
+ ],
8108
+ "properties": {
8109
+ "valid": {
8110
+ "type": "boolean",
8111
+ "description": "True when no finding has severity `error`."
8112
+ },
8113
+ "findings": {
8114
+ "type": "array",
8115
+ "description": "Every finding, in report order.",
8116
+ "items": {
8117
+ "$ref": "#/$defs/Finding"
8118
+ }
8119
+ },
8120
+ "counts": {
8121
+ "type": "object",
8122
+ "description": "How many findings each severity has.",
8123
+ "required": [
8124
+ "error",
8125
+ "warning",
8126
+ "info"
8127
+ ],
8128
+ "additionalProperties": false,
8129
+ "properties": {
8130
+ "error": {
8131
+ "type": "integer",
8132
+ "minimum": 0
8133
+ },
8134
+ "warning": {
8135
+ "type": "integer",
8136
+ "minimum": 0
8137
+ },
8138
+ "info": {
8139
+ "type": "integer",
8140
+ "minimum": 0
8141
+ }
8142
+ }
8143
+ }
8144
+ },
8145
+ "$defs": {
8146
+ "FindingSeverity": {
8147
+ "type": "string",
8148
+ "enum": [
8149
+ "error",
8150
+ "warning",
8151
+ "info"
8152
+ ],
8153
+ "description": "`error` makes a report invalid. `warning` is a problem the author should fix. `info` is advisory."
8154
+ },
8155
+ "FindingCategory": {
8156
+ "description": "What kind of question the finding answers. Core uses `format` (is it well-formed OPF), `references` (does everything it points at resolve), `policy` (host house rules), `accessibility`, `layout` (will it present as authored) and `content` (is anything left unfinished). Other producers may use their own category names, such as `narrative` or `audience-fit`.",
8157
+ "anyOf": [
8158
+ {
8159
+ "type": "string",
8160
+ "enum": [
8161
+ "format",
8162
+ "references",
8163
+ "policy",
8164
+ "accessibility",
8165
+ "layout",
8166
+ "content"
8167
+ ]
8168
+ },
8169
+ {
8170
+ "type": "string",
8171
+ "minLength": 1
8172
+ }
8173
+ ]
8174
+ },
8175
+ "FindingLocation": {
8176
+ "type": "object",
8177
+ "description": "A range in the checked text: UTF-16 offset and length from the start, and the one-based line and column of the start. Present when the finding was produced from text (JSON, Markdown or YAML).",
8178
+ "required": [
8179
+ "offset",
8180
+ "length",
8181
+ "line",
8182
+ "column"
8183
+ ],
8184
+ "additionalProperties": false,
8185
+ "properties": {
8186
+ "offset": {
8187
+ "type": "integer",
8188
+ "minimum": 0
8189
+ },
8190
+ "length": {
8191
+ "type": "integer",
8192
+ "minimum": 0
8193
+ },
8194
+ "line": {
8195
+ "type": "integer",
8196
+ "minimum": 1
8197
+ },
8198
+ "column": {
8199
+ "type": "integer",
8200
+ "minimum": 1
8201
+ }
8202
+ }
8203
+ },
8204
+ "JsonPatchOperation": {
8205
+ "description": "One RFC 6902 JSON Patch operation. Paths are JSON Pointers into the checked presentation.",
8206
+ "oneOf": [
8207
+ {
8208
+ "type": "object",
8209
+ "required": [
8210
+ "op",
8211
+ "path",
8212
+ "value"
8213
+ ],
8214
+ "additionalProperties": false,
8215
+ "properties": {
8216
+ "op": {
8217
+ "type": "string",
8218
+ "enum": [
8219
+ "add",
8220
+ "replace",
8221
+ "test"
8222
+ ]
8223
+ },
8224
+ "path": {
8225
+ "type": "string"
8226
+ },
8227
+ "value": {}
8228
+ }
8229
+ },
8230
+ {
8231
+ "type": "object",
8232
+ "required": [
8233
+ "op",
8234
+ "path"
8235
+ ],
8236
+ "additionalProperties": false,
8237
+ "properties": {
8238
+ "op": {
8239
+ "type": "string",
8240
+ "const": "remove"
8241
+ },
8242
+ "path": {
8243
+ "type": "string"
8244
+ }
8245
+ }
8246
+ },
8247
+ {
8248
+ "type": "object",
8249
+ "required": [
8250
+ "op",
8251
+ "from",
8252
+ "path"
8253
+ ],
8254
+ "additionalProperties": false,
8255
+ "properties": {
8256
+ "op": {
8257
+ "type": "string",
8258
+ "enum": [
8259
+ "move",
8260
+ "copy"
8261
+ ]
8262
+ },
8263
+ "from": {
8264
+ "type": "string"
8265
+ },
8266
+ "path": {
8267
+ "type": "string"
8268
+ }
8269
+ }
8270
+ }
8271
+ ]
8272
+ },
8273
+ "FindingFocus": {
8274
+ "type": "object",
8275
+ "description": "The field an author has to fill in, for a fix that cannot be written as a patch.",
8276
+ "required": [
8277
+ "path",
8278
+ "field"
8279
+ ],
8280
+ "additionalProperties": false,
8281
+ "properties": {
8282
+ "path": {
8283
+ "type": "string",
8284
+ "description": "JSON Pointer of the field to edit."
8285
+ },
8286
+ "field": {
8287
+ "type": "string",
8288
+ "description": "What the field is, such as `alt`, `title`, `text`, `link`, `language` or `fontSize`."
8289
+ },
8290
+ "value": {
8291
+ "type": [
8292
+ "string",
8293
+ "number",
8294
+ "boolean",
8295
+ "null",
8296
+ "array",
8297
+ "object"
8298
+ ],
8299
+ "description": "The field's current value, when it has one."
8300
+ }
8301
+ }
8302
+ },
8303
+ "FindingFix": {
8304
+ "type": "object",
8305
+ "description": "A suggested repair. Core never applies it: the host shows it and applies it through its own undoable edit path. A `patch` fix carries JSON Patch operations; a `focus` fix only names the field the author has to fill in.",
8306
+ "required": [
8307
+ "title"
8308
+ ],
8309
+ "additionalProperties": false,
8310
+ "properties": {
8311
+ "title": {
8312
+ "type": "string",
8313
+ "minLength": 1,
8314
+ "description": "What applying the fix does, in a few words."
8315
+ },
8316
+ "id": {
8317
+ "type": "string",
8318
+ "description": "Stable id within one finding, such as `focus-alt` or `use-readable-color`."
8319
+ },
8320
+ "kind": {
8321
+ "type": "string",
8322
+ "enum": [
8323
+ "patch",
8324
+ "focus"
8325
+ ],
8326
+ "default": "patch",
8327
+ "description": "`patch` fixes carry `patch`; `focus` fixes carry `focus`."
8328
+ },
8329
+ "safe": {
8330
+ "type": "boolean",
8331
+ "description": "True when applying the fix cannot change what the content says or how it looks beyond the repair, such as switching a failing colour to the one the theme chose. False fixes need a deliberate choice."
8332
+ },
8333
+ "patch": {
8334
+ "type": "array",
8335
+ "description": "RFC 6902 JSON Patch operations that apply the fix to the checked presentation.",
8336
+ "items": {
8337
+ "$ref": "#/$defs/JsonPatchOperation"
8338
+ }
8339
+ },
8340
+ "focus": {
8341
+ "$ref": "#/$defs/FindingFocus"
8342
+ }
8343
+ }
8344
+ },
8345
+ "FindingSuggestion": {
8346
+ "type": "object",
8347
+ "description": "A value the author could use instead, such as a catalog record that exists. Suggestions name records actually present in the checked context and never replace authored values silently.",
8348
+ "required": [
8349
+ "value",
8350
+ "label",
8351
+ "origin"
8352
+ ],
8353
+ "additionalProperties": false,
8354
+ "properties": {
8355
+ "value": {
8356
+ "type": [
8357
+ "string",
8358
+ "number",
8359
+ "boolean",
8360
+ "null"
8361
+ ]
8362
+ },
8363
+ "label": {
8364
+ "type": "string"
8365
+ },
8366
+ "origin": {
8367
+ "type": "string",
8368
+ "description": "Where the suggestion comes from: `schema`, `built-in`, `loaded`, `document` or `contract`."
8369
+ },
8370
+ "definition": {
8371
+ "type": "string",
8372
+ "description": "Where the suggested record or constraint is defined."
8373
+ }
8374
+ }
8375
+ },
8376
+ "ValidationIssue": {
8377
+ "type": "object",
8378
+ "description": "The raw schema or semantic issue behind a finding, kept with every union alternative so a host can inspect the exact constraint.",
8379
+ "required": [
8380
+ "path",
8381
+ "message",
8382
+ "keyword",
8383
+ "schemaPath",
8384
+ "params"
8385
+ ],
8386
+ "additionalProperties": false,
8387
+ "properties": {
8388
+ "path": {
8389
+ "type": "string"
8390
+ },
8391
+ "message": {
8392
+ "type": "string"
8393
+ },
8394
+ "keyword": {
8395
+ "type": "string",
8396
+ "description": "The JSON Schema keyword that failed, or `opf` for a rule the schema cannot express."
8397
+ },
8398
+ "schemaPath": {
8399
+ "type": "string"
8400
+ },
8401
+ "params": {
8402
+ "type": "object",
8403
+ "additionalProperties": true
8404
+ }
8405
+ }
8406
+ },
8407
+ "Finding": {
8408
+ "type": "object",
8409
+ "description": "One thing a checker found at one place in a presentation.",
8410
+ "required": [
8411
+ "ruleId",
8412
+ "severity",
8413
+ "category",
8414
+ "path",
8415
+ "message"
8416
+ ],
8417
+ "additionalProperties": false,
8418
+ "properties": {
8419
+ "ruleId": {
8420
+ "type": "string",
8421
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$",
8422
+ "description": "Stable `<producer>/<rule>` id, such as `opf/text-contrast` for core or `pptx.dev/narrative-gap` for a hosted reviewer. Ids do not change between releases."
8423
+ },
8424
+ "source": {
8425
+ "type": "string",
8426
+ "description": "The producer: `opf` (the default) for core, or the name of another tool such as `pptx.dev/review`."
8427
+ },
8428
+ "severity": {
8429
+ "$ref": "#/$defs/FindingSeverity"
8430
+ },
8431
+ "category": {
8432
+ "$ref": "#/$defs/FindingCategory"
8433
+ },
8434
+ "path": {
8435
+ "type": "string",
8436
+ "description": "JSON Pointer to the value the finding is about, such as `/slides/4/title`. Empty for the whole document, or for a value in a supplied context such as a loaded catalog."
8437
+ },
8438
+ "scope": {
8439
+ "type": "string",
8440
+ "enum": [
8441
+ "document",
8442
+ "context"
8443
+ ],
8444
+ "description": "`document` (the default) when `path` points into the checked presentation, `context` when it points into host-supplied context such as loaded catalog records."
8445
+ },
8446
+ "message": {
8447
+ "type": "string",
8448
+ "minLength": 1,
8449
+ "description": "What is wrong, in a sentence."
8450
+ },
8451
+ "help": {
8452
+ "type": "string",
8453
+ "description": "What to do about it."
8454
+ },
8455
+ "slide": {
8456
+ "type": "integer",
8457
+ "minimum": 0,
8458
+ "description": "Zero-based index of the slide the finding belongs to."
8459
+ },
8460
+ "slideId": {
8461
+ "type": "string",
8462
+ "description": "The id of that slide, when it has one."
8463
+ },
8464
+ "location": {
8465
+ "$ref": "#/$defs/FindingLocation"
8466
+ },
8467
+ "definition": {
8468
+ "type": "string",
8469
+ "description": "A link to the rule's documentation or to the schema constraint or catalog record the finding is about."
8470
+ },
8471
+ "lookup": {
8472
+ "type": "array",
8473
+ "items": {
8474
+ "type": "string"
8475
+ },
8476
+ "description": "Arguments for the `opf schema` or `opf catalog` command that shows the definition, as an argument list rather than a shell string."
8477
+ },
8478
+ "suggestions": {
8479
+ "type": "array",
8480
+ "items": {
8481
+ "$ref": "#/$defs/FindingSuggestion"
8482
+ }
8483
+ },
8484
+ "measured": {
8485
+ "type": "object",
8486
+ "description": 'The numbers behind the finding, such as `{ "ratio": 2.1, "needed": 4.5 }`.',
8487
+ "additionalProperties": {
8488
+ "type": [
8489
+ "number",
8490
+ "string",
8491
+ "boolean",
8492
+ "null"
8493
+ ]
8494
+ }
8495
+ },
8496
+ "fixes": {
8497
+ "type": "array",
8498
+ "items": {
8499
+ "$ref": "#/$defs/FindingFix"
8500
+ }
8501
+ },
8502
+ "validation": {
8503
+ "$ref": "#/$defs/ValidationIssue"
8504
+ }
8505
+ }
8506
+ }
8507
+ }
8508
+ };
8112
8509
  var schemas = {
8113
8510
  presentation,
8114
8511
  audience,
@@ -8121,7 +8518,8 @@ var schemas = {
8121
8518
  socialPlatform,
8122
8519
  language,
8123
8520
  colorScheme,
8124
- fontScheme
8521
+ fontScheme,
8522
+ finding
8125
8523
  };
8126
8524
  var schemaNames = [
8127
8525
  "presentation",
@@ -8135,7 +8533,8 @@ var schemaNames = [
8135
8533
  "socialPlatform",
8136
8534
  "language",
8137
8535
  "colorScheme",
8138
- "fontScheme"
8536
+ "fontScheme",
8537
+ "finding"
8139
8538
  ];
8140
8539
  var schemaEntries = [
8141
8540
  { name: "presentation", file: "schemas/opf.schema.json", schema: presentation },
@@ -8149,7 +8548,8 @@ var schemaEntries = [
8149
8548
  { name: "socialPlatform", file: "schemas/social-platform.schema.json", schema: socialPlatform },
8150
8549
  { name: "language", file: "schemas/language.schema.json", schema: language },
8151
8550
  { name: "colorScheme", file: "schemas/color-scheme.schema.json", schema: colorScheme },
8152
- { name: "fontScheme", file: "schemas/font-scheme.schema.json", schema: fontScheme }
8551
+ { name: "fontScheme", file: "schemas/font-scheme.schema.json", schema: fontScheme },
8552
+ { name: "finding", file: "schemas/finding.schema.json", schema: finding }
8153
8553
  ];
8154
8554
 
8155
8555
  export { audience, chartType, colorScheme, fontScheme, language, layout, narrative, presentation, purpose, schemaEntries, schemaNames, schemas, socialPlatform, theme, tone };