@openpresentation/opf 0.1.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.
- package/LICENSE +21 -0
- package/README.md +103 -0
- package/dist/catalogs.d.ts +33933 -0
- package/dist/catalogs.js +19113 -0
- package/dist/catalogs.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +25815 -0
- package/dist/index.js.map +1 -0
- package/dist/schemas.d.ts +12361 -0
- package/dist/schemas.js +6266 -0
- package/dist/schemas.js.map +1 -0
- package/dist/spec/catalogs/audiences/all-hands.json +23 -0
- package/dist/spec/catalogs/audiences/board.json +22 -0
- package/dist/spec/catalogs/audiences/candidates.json +23 -0
- package/dist/spec/catalogs/audiences/customers.json +23 -0
- package/dist/spec/catalogs/audiences/engineering-team.json +23 -0
- package/dist/spec/catalogs/audiences/executives.json +23 -0
- package/dist/spec/catalogs/audiences/index.json +67 -0
- package/dist/spec/catalogs/audiences/investors.json +23 -0
- package/dist/spec/catalogs/audiences/marketing-team.json +23 -0
- package/dist/spec/catalogs/audiences/regulators.json +23 -0
- package/dist/spec/catalogs/audiences/sales-team.json +23 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar-2x.json +90 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar-3x.json +102 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-bar.json +78 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-column-2x.json +90 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-column-3x.json +102 -0
- package/dist/spec/catalogs/chart-types/100pct-bullet-column.json +78 -0
- package/dist/spec/catalogs/chart-types/100pct-progress-bar.json +99 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-area-2x.json +100 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-area-3x.json +122 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-bar-2x.json +83 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-bar-3x.json +99 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-column-2x.json +89 -0
- package/dist/spec/catalogs/chart-types/100pct-stacked-column-3x.json +107 -0
- package/dist/spec/catalogs/chart-types/area.json +77 -0
- package/dist/spec/catalogs/chart-types/australia.json +70 -0
- package/dist/spec/catalogs/chart-types/bar.json +67 -0
- package/dist/spec/catalogs/chart-types/box-and-whisker-2x.json +130 -0
- package/dist/spec/catalogs/chart-types/box-and-whisker-3x.json +162 -0
- package/dist/spec/catalogs/chart-types/box-and-whisker.json +98 -0
- package/dist/spec/catalogs/chart-types/bullet-bar-2x.json +88 -0
- package/dist/spec/catalogs/chart-types/bullet-bar-3x.json +100 -0
- package/dist/spec/catalogs/chart-types/bullet-bar.json +76 -0
- package/dist/spec/catalogs/chart-types/bullet-column-2x.json +88 -0
- package/dist/spec/catalogs/chart-types/bullet-column-3x.json +100 -0
- package/dist/spec/catalogs/chart-types/bullet-column.json +76 -0
- package/dist/spec/catalogs/chart-types/canada.json +80 -0
- package/dist/spec/catalogs/chart-types/clustered-bar-2x.json +83 -0
- package/dist/spec/catalogs/chart-types/clustered-column.json +89 -0
- package/dist/spec/catalogs/chart-types/column.json +71 -0
- package/dist/spec/catalogs/chart-types/dot-plot-2x.json +98 -0
- package/dist/spec/catalogs/chart-types/dot-plot-3x.json +123 -0
- package/dist/spec/catalogs/chart-types/dot-plot-4x.json +148 -0
- package/dist/spec/catalogs/chart-types/dot-plot-5x.json +173 -0
- package/dist/spec/catalogs/chart-types/dot-plot-6x.json +198 -0
- package/dist/spec/catalogs/chart-types/dot-plot.json +73 -0
- package/dist/spec/catalogs/chart-types/doughnut.json +57 -0
- package/dist/spec/catalogs/chart-types/dumbbell.json +119 -0
- package/dist/spec/catalogs/chart-types/filled-radar.json +70 -0
- package/dist/spec/catalogs/chart-types/funnel.json +64 -0
- package/dist/spec/catalogs/chart-types/histogram.json +145 -0
- package/dist/spec/catalogs/chart-types/index.json +843 -0
- package/dist/spec/catalogs/chart-types/line-2x.json +99 -0
- package/dist/spec/catalogs/chart-types/line-3x.json +121 -0
- package/dist/spec/catalogs/chart-types/line-with-high-low-and-markers.json +143 -0
- package/dist/spec/catalogs/chart-types/line-with-high-low.json +143 -0
- package/dist/spec/catalogs/chart-types/line-with-markers-2x.json +100 -0
- package/dist/spec/catalogs/chart-types/line-with-markers-3x.json +122 -0
- package/dist/spec/catalogs/chart-types/line-with-markers.json +78 -0
- package/dist/spec/catalogs/chart-types/line.json +77 -0
- package/dist/spec/catalogs/chart-types/pareto.json +163 -0
- package/dist/spec/catalogs/chart-types/pie.json +57 -0
- package/dist/spec/catalogs/chart-types/radar-with-markers.json +70 -0
- package/dist/spec/catalogs/chart-types/radar.json +70 -0
- package/dist/spec/catalogs/chart-types/scatter.json +91 -0
- package/dist/spec/catalogs/chart-types/sparkline-2x.json +137 -0
- package/dist/spec/catalogs/chart-types/sparkline-3x.json +173 -0
- package/dist/spec/catalogs/chart-types/sparkline-4x.json +209 -0
- package/dist/spec/catalogs/chart-types/sparkline-5x.json +245 -0
- package/dist/spec/catalogs/chart-types/sparkline-6x.json +281 -0
- package/dist/spec/catalogs/chart-types/sparkline.json +101 -0
- package/dist/spec/catalogs/chart-types/stacked-area-2x.json +100 -0
- package/dist/spec/catalogs/chart-types/stacked-area-3x.json +122 -0
- package/dist/spec/catalogs/chart-types/stacked-bar-2x.json +83 -0
- package/dist/spec/catalogs/chart-types/stacked-bar-3x.json +99 -0
- package/dist/spec/catalogs/chart-types/stacked-column-2x.json +89 -0
- package/dist/spec/catalogs/chart-types/stacked-column-3x.json +107 -0
- package/dist/spec/catalogs/chart-types/stacked-line-2x.json +100 -0
- package/dist/spec/catalogs/chart-types/stacked-line-3x.json +122 -0
- package/dist/spec/catalogs/chart-types/stacked-line-with-markers-2x.json +101 -0
- package/dist/spec/catalogs/chart-types/stacked-line-with-markers-3x.json +123 -0
- package/dist/spec/catalogs/chart-types/treemap-2x.json +95 -0
- package/dist/spec/catalogs/chart-types/treemap-3x.json +116 -0
- package/dist/spec/catalogs/chart-types/treemap.json +66 -0
- package/dist/spec/catalogs/chart-types/united-kindom.json +62 -0
- package/dist/spec/catalogs/chart-types/united-states.json +76 -0
- package/dist/spec/catalogs/chart-types/waterfall.json +70 -0
- package/dist/spec/catalogs/chart-types/world.json +82 -0
- package/dist/spec/catalogs/color-schemes/black-and-white.json +17 -0
- package/dist/spec/catalogs/color-schemes/bold-red.json +17 -0
- package/dist/spec/catalogs/color-schemes/boost.json +17 -0
- package/dist/spec/catalogs/color-schemes/burnt-orange.json +17 -0
- package/dist/spec/catalogs/color-schemes/cool-horizon.json +17 -0
- package/dist/spec/catalogs/color-schemes/corporate-blue.json +17 -0
- package/dist/spec/catalogs/color-schemes/deep-purple.json +17 -0
- package/dist/spec/catalogs/color-schemes/forest-green.json +17 -0
- package/dist/spec/catalogs/color-schemes/golden-yellow.json +17 -0
- package/dist/spec/catalogs/color-schemes/index.json +77 -0
- package/dist/spec/catalogs/color-schemes/luxury.json +17 -0
- package/dist/spec/catalogs/color-schemes/pastel-red.json +17 -0
- package/dist/spec/catalogs/color-schemes/slate-gray.json +17 -0
- package/dist/spec/catalogs/color-schemes/steel-blue.json +17 -0
- package/dist/spec/catalogs/color-schemes/vibes.json +17 -0
- package/dist/spec/catalogs/font-schemes/angsana-new.json +14 -0
- package/dist/spec/catalogs/font-schemes/aparajita.json +15 -0
- package/dist/spec/catalogs/font-schemes/aptos.json +12 -0
- package/dist/spec/catalogs/font-schemes/arabic-typesetting.json +14 -0
- package/dist/spec/catalogs/font-schemes/arial.json +12 -0
- package/dist/spec/catalogs/font-schemes/batang.json +14 -0
- package/dist/spec/catalogs/font-schemes/bookman.json +12 -0
- package/dist/spec/catalogs/font-schemes/calibri.json +12 -0
- package/dist/spec/catalogs/font-schemes/century-schoolbook.json +12 -0
- package/dist/spec/catalogs/font-schemes/consolas.json +12 -0
- package/dist/spec/catalogs/font-schemes/constantia.json +12 -0
- package/dist/spec/catalogs/font-schemes/courier-new.json +12 -0
- package/dist/spec/catalogs/font-schemes/daunpenh.json +14 -0
- package/dist/spec/catalogs/font-schemes/david.json +14 -0
- package/dist/spec/catalogs/font-schemes/dilleniaupc.json +14 -0
- package/dist/spec/catalogs/font-schemes/fangsong.json +14 -0
- package/dist/spec/catalogs/font-schemes/garamond.json +12 -0
- package/dist/spec/catalogs/font-schemes/gautami.json +14 -0
- package/dist/spec/catalogs/font-schemes/georgia.json +12 -0
- package/dist/spec/catalogs/font-schemes/gisha.json +15 -0
- package/dist/spec/catalogs/font-schemes/grandview.json +12 -0
- package/dist/spec/catalogs/font-schemes/gungsuh.json +14 -0
- package/dist/spec/catalogs/font-schemes/impact.json +12 -0
- package/dist/spec/catalogs/font-schemes/index.json +452 -0
- package/dist/spec/catalogs/font-schemes/kalinga.json +14 -0
- package/dist/spec/catalogs/font-schemes/kartika.json +14 -0
- package/dist/spec/catalogs/font-schemes/khmer-ui.json +14 -0
- package/dist/spec/catalogs/font-schemes/latha.json +14 -0
- package/dist/spec/catalogs/font-schemes/lucida-sans.json +12 -0
- package/dist/spec/catalogs/font-schemes/malgun-gothic.json +14 -0
- package/dist/spec/catalogs/font-schemes/mangal.json +17 -0
- package/dist/spec/catalogs/font-schemes/meiryo.json +14 -0
- package/dist/spec/catalogs/font-schemes/microsoft-jhenghei.json +14 -0
- package/dist/spec/catalogs/font-schemes/microsoft-yahei.json +17 -0
- package/dist/spec/catalogs/font-schemes/mingliu.json +14 -0
- package/dist/spec/catalogs/font-schemes/miriam.json +14 -0
- package/dist/spec/catalogs/font-schemes/montserrat.json +12 -0
- package/dist/spec/catalogs/font-schemes/ms-mincho.json +14 -0
- package/dist/spec/catalogs/font-schemes/nirmala-ui.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-naksh-arabic.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-nastaliq-urdu.json +15 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-arabic.json +16 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-armenian.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-bengali.json +15 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-devangari.json +15 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-ethiopic.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-georgian.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-gujarati.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-gurmukhi.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-hebrew.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-jp.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-kannada.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-khmer.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-kr.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-malayalam.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-mongolian.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-oriya.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-sc.json +17 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-tamil.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-tc.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-telugu.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans-thai.json +14 -0
- package/dist/spec/catalogs/font-schemes/noto-sans.json +17 -0
- package/dist/spec/catalogs/font-schemes/nyala.json +14 -0
- package/dist/spec/catalogs/font-schemes/open-sans.json +12 -0
- package/dist/spec/catalogs/font-schemes/pmingliu.json +14 -0
- package/dist/spec/catalogs/font-schemes/poppins.json +12 -0
- package/dist/spec/catalogs/font-schemes/pt-serif.json +12 -0
- package/dist/spec/catalogs/font-schemes/raavi.json +14 -0
- package/dist/spec/catalogs/font-schemes/raleway.json +12 -0
- package/dist/spec/catalogs/font-schemes/roboto.json +12 -0
- package/dist/spec/catalogs/font-schemes/rockwell.json +12 -0
- package/dist/spec/catalogs/font-schemes/sakkal-majalla.json +16 -0
- package/dist/spec/catalogs/font-schemes/seaford.json +12 -0
- package/dist/spec/catalogs/font-schemes/segoe-ui-light.json +12 -0
- package/dist/spec/catalogs/font-schemes/segoe-ui.json +12 -0
- package/dist/spec/catalogs/font-schemes/shonar-bangla.json +15 -0
- package/dist/spec/catalogs/font-schemes/shruti.json +14 -0
- package/dist/spec/catalogs/font-schemes/simsun.json +14 -0
- package/dist/spec/catalogs/font-schemes/skeena.json +12 -0
- package/dist/spec/catalogs/font-schemes/sylfaen.json +15 -0
- package/dist/spec/catalogs/font-schemes/tahoma.json +12 -0
- package/dist/spec/catalogs/font-schemes/tenorite.json +12 -0
- package/dist/spec/catalogs/font-schemes/times-new-roman.json +12 -0
- package/dist/spec/catalogs/font-schemes/traditional-arabic.json +16 -0
- package/dist/spec/catalogs/font-schemes/trebuchet-ms.json +12 -0
- package/dist/spec/catalogs/font-schemes/tunga.json +14 -0
- package/dist/spec/catalogs/font-schemes/verdana.json +12 -0
- package/dist/spec/catalogs/font-schemes/vrinda.json +14 -0
- package/dist/spec/catalogs/font-schemes/yu-gothic.json +14 -0
- package/dist/spec/catalogs/languages/afrikaans.json +9 -0
- package/dist/spec/catalogs/languages/albanian.json +9 -0
- package/dist/spec/catalogs/languages/amharic.json +9 -0
- package/dist/spec/catalogs/languages/arabic.json +9 -0
- package/dist/spec/catalogs/languages/armenian.json +9 -0
- package/dist/spec/catalogs/languages/aymara.json +9 -0
- package/dist/spec/catalogs/languages/azerbaijani.json +9 -0
- package/dist/spec/catalogs/languages/bengali.json +9 -0
- package/dist/spec/catalogs/languages/berber-latin.json +9 -0
- package/dist/spec/catalogs/languages/bosnian-latin.json +9 -0
- package/dist/spec/catalogs/languages/bulgarian.json +9 -0
- package/dist/spec/catalogs/languages/catalan.json +9 -0
- package/dist/spec/catalogs/languages/cebuano.json +9 -0
- package/dist/spec/catalogs/languages/chinese-simplified.json +9 -0
- package/dist/spec/catalogs/languages/chinese-traditional.json +9 -0
- package/dist/spec/catalogs/languages/chittagonian.json +9 -0
- package/dist/spec/catalogs/languages/croatian.json +9 -0
- package/dist/spec/catalogs/languages/czech.json +9 -0
- package/dist/spec/catalogs/languages/danish.json +9 -0
- package/dist/spec/catalogs/languages/dutch.json +9 -0
- package/dist/spec/catalogs/languages/english-au.json +9 -0
- package/dist/spec/catalogs/languages/english-ca.json +9 -0
- package/dist/spec/catalogs/languages/english-gb.json +9 -0
- package/dist/spec/catalogs/languages/english-in.json +9 -0
- package/dist/spec/catalogs/languages/english-us.json +9 -0
- package/dist/spec/catalogs/languages/english.json +9 -0
- package/dist/spec/catalogs/languages/estonian.json +9 -0
- package/dist/spec/catalogs/languages/filipino.json +9 -0
- package/dist/spec/catalogs/languages/finnish.json +9 -0
- package/dist/spec/catalogs/languages/french.json +9 -0
- package/dist/spec/catalogs/languages/fulfulde.json +9 -0
- package/dist/spec/catalogs/languages/galician.json +9 -0
- package/dist/spec/catalogs/languages/georgian.json +9 -0
- package/dist/spec/catalogs/languages/german.json +9 -0
- package/dist/spec/catalogs/languages/greek.json +9 -0
- package/dist/spec/catalogs/languages/gujarati.json +9 -0
- package/dist/spec/catalogs/languages/hausa.json +9 -0
- package/dist/spec/catalogs/languages/hebrew.json +9 -0
- package/dist/spec/catalogs/languages/hindi.json +9 -0
- package/dist/spec/catalogs/languages/hungarian.json +9 -0
- package/dist/spec/catalogs/languages/igbo.json +9 -0
- package/dist/spec/catalogs/languages/index.json +565 -0
- package/dist/spec/catalogs/languages/indonesian.json +9 -0
- package/dist/spec/catalogs/languages/italian.json +9 -0
- package/dist/spec/catalogs/languages/japanese.json +9 -0
- package/dist/spec/catalogs/languages/kannada.json +9 -0
- package/dist/spec/catalogs/languages/kazakh.json +9 -0
- package/dist/spec/catalogs/languages/khmer.json +9 -0
- package/dist/spec/catalogs/languages/kinyarwanda.json +9 -0
- package/dist/spec/catalogs/languages/korean.json +9 -0
- package/dist/spec/catalogs/languages/kurmanji.json +9 -0
- package/dist/spec/catalogs/languages/latvian.json +9 -0
- package/dist/spec/catalogs/languages/lithuanian.json +9 -0
- package/dist/spec/catalogs/languages/macedonian.json +9 -0
- package/dist/spec/catalogs/languages/malagasy.json +9 -0
- package/dist/spec/catalogs/languages/malay.json +9 -0
- package/dist/spec/catalogs/languages/malayalam.json +9 -0
- package/dist/spec/catalogs/languages/maori.json +9 -0
- package/dist/spec/catalogs/languages/marathi.json +9 -0
- package/dist/spec/catalogs/languages/mongolian.json +9 -0
- package/dist/spec/catalogs/languages/nepali.json +9 -0
- package/dist/spec/catalogs/languages/norwegian.json +9 -0
- package/dist/spec/catalogs/languages/odia.json +9 -0
- package/dist/spec/catalogs/languages/oromo.json +9 -0
- package/dist/spec/catalogs/languages/pashto.json +9 -0
- package/dist/spec/catalogs/languages/persian.json +9 -0
- package/dist/spec/catalogs/languages/polish.json +9 -0
- package/dist/spec/catalogs/languages/portuguese.json +9 -0
- package/dist/spec/catalogs/languages/punjabi-gurmukhi.json +9 -0
- package/dist/spec/catalogs/languages/punjabi-shahmukhi.json +9 -0
- package/dist/spec/catalogs/languages/romanian.json +9 -0
- package/dist/spec/catalogs/languages/russian.json +9 -0
- package/dist/spec/catalogs/languages/serbian-cyrillic.json +9 -0
- package/dist/spec/catalogs/languages/serbian-latin.json +9 -0
- package/dist/spec/catalogs/languages/shona.json +9 -0
- package/dist/spec/catalogs/languages/slovak.json +9 -0
- package/dist/spec/catalogs/languages/slovenian.json +9 -0
- package/dist/spec/catalogs/languages/somali.json +9 -0
- package/dist/spec/catalogs/languages/spanish.json +9 -0
- package/dist/spec/catalogs/languages/swahili.json +9 -0
- package/dist/spec/catalogs/languages/swedish.json +9 -0
- package/dist/spec/catalogs/languages/tagalog.json +9 -0
- package/dist/spec/catalogs/languages/tajik.json +9 -0
- package/dist/spec/catalogs/languages/tamil.json +9 -0
- package/dist/spec/catalogs/languages/telugu.json +9 -0
- package/dist/spec/catalogs/languages/thai.json +9 -0
- package/dist/spec/catalogs/languages/turkish.json +9 -0
- package/dist/spec/catalogs/languages/ukrainian.json +9 -0
- package/dist/spec/catalogs/languages/urdu.json +9 -0
- package/dist/spec/catalogs/languages/uzbek-latin.json +9 -0
- package/dist/spec/catalogs/languages/vietnamese-quoc-ngu.json +9 -0
- package/dist/spec/catalogs/languages/xhosa.json +9 -0
- package/dist/spec/catalogs/languages/yoruba.json +9 -0
- package/dist/spec/catalogs/languages/zulu.json +9 -0
- package/dist/spec/catalogs/layouts/blank.json +6 -0
- package/dist/spec/catalogs/layouts/chart-1x.json +16 -0
- package/dist/spec/catalogs/layouts/chart-2x.json +22 -0
- package/dist/spec/catalogs/layouts/chart-3x.json +28 -0
- package/dist/spec/catalogs/layouts/code-1x.json +16 -0
- package/dist/spec/catalogs/layouts/extract/canonical.json +487 -0
- package/dist/spec/catalogs/layouts/image-1x.json +16 -0
- package/dist/spec/catalogs/layouts/image-2x.json +22 -0
- package/dist/spec/catalogs/layouts/image-3x.json +28 -0
- package/dist/spec/catalogs/layouts/image-bleed.json +10 -0
- package/dist/spec/catalogs/layouts/index.json +147 -0
- package/dist/spec/catalogs/layouts/list-1x.json +13 -0
- package/dist/spec/catalogs/layouts/list-2x.json +16 -0
- package/dist/spec/catalogs/layouts/list-3x.json +19 -0
- package/dist/spec/catalogs/layouts/list-4x.json +22 -0
- package/dist/spec/catalogs/layouts/list-5x.json +25 -0
- package/dist/spec/catalogs/layouts/list-6x.json +28 -0
- package/dist/spec/catalogs/layouts/media-1x.json +16 -0
- package/dist/spec/catalogs/layouts/number-1x.json +13 -0
- package/dist/spec/catalogs/layouts/number-2x.json +16 -0
- package/dist/spec/catalogs/layouts/number-3x.json +19 -0
- package/dist/spec/catalogs/layouts/number-4x.json +22 -0
- package/dist/spec/catalogs/layouts/number-5x.json +25 -0
- package/dist/spec/catalogs/layouts/number-6x.json +28 -0
- package/dist/spec/catalogs/layouts/table-1x.json +16 -0
- package/dist/spec/catalogs/layouts/text-1x.json +13 -0
- package/dist/spec/catalogs/layouts/text-2x.json +16 -0
- package/dist/spec/catalogs/layouts/text-3x.json +19 -0
- package/dist/spec/catalogs/layouts/title-subtitle.json +13 -0
- package/dist/spec/catalogs/layouts/title.json +10 -0
- package/dist/spec/catalogs/narratives/board-meeting.json +192 -0
- package/dist/spec/catalogs/narratives/business-narrative.json +87 -0
- package/dist/spec/catalogs/narratives/business-review.json +119 -0
- package/dist/spec/catalogs/narratives/capacity-planning.json +88 -0
- package/dist/spec/catalogs/narratives/challenge-resolution.json +80 -0
- package/dist/spec/catalogs/narratives/classic-story.json +78 -0
- package/dist/spec/catalogs/narratives/company-intro.json +96 -0
- package/dist/spec/catalogs/narratives/conference-talk.json +54 -0
- package/dist/spec/catalogs/narratives/early-startup-pitch.json +119 -0
- package/dist/spec/catalogs/narratives/educate.json +95 -0
- package/dist/spec/catalogs/narratives/employee-review.json +87 -0
- package/dist/spec/catalogs/narratives/failure-analysis.json +104 -0
- package/dist/spec/catalogs/narratives/focus.json +120 -0
- package/dist/spec/catalogs/narratives/golden-circle.json +50 -0
- package/dist/spec/catalogs/narratives/index.json +358 -0
- package/dist/spec/catalogs/narratives/innovation.json +96 -0
- package/dist/spec/catalogs/narratives/justice.json +112 -0
- package/dist/spec/catalogs/narratives/marketing-strategy.json +111 -0
- package/dist/spec/catalogs/narratives/performance-improvement-plan.json +87 -0
- package/dist/spec/catalogs/narratives/performance-review.json +111 -0
- package/dist/spec/catalogs/narratives/persuade.json +94 -0
- package/dist/spec/catalogs/narratives/persuasive-sales.json +87 -0
- package/dist/spec/catalogs/narratives/pitch-deck.json +107 -0
- package/dist/spec/catalogs/narratives/problem-solution.json +61 -0
- package/dist/spec/catalogs/narratives/product-launch.json +104 -0
- package/dist/spec/catalogs/narratives/project-proposal.json +104 -0
- package/dist/spec/catalogs/narratives/qbr.json +85 -0
- package/dist/spec/catalogs/narratives/rags-to-riches.json +80 -0
- package/dist/spec/catalogs/narratives/reveal.json +87 -0
- package/dist/spec/catalogs/narratives/scqa.json +55 -0
- package/dist/spec/catalogs/narratives/status-update.json +72 -0
- package/dist/spec/catalogs/narratives/strategic-advisory.json +85 -0
- package/dist/spec/catalogs/narratives/strategic-narrative.json +61 -0
- package/dist/spec/catalogs/narratives/survey-analysis.json +104 -0
- package/dist/spec/catalogs/narratives/survival-story.json +103 -0
- package/dist/spec/catalogs/narratives/transformation-arc.json +50 -0
- package/dist/spec/catalogs/narratives/trend-analysis.json +79 -0
- package/dist/spec/catalogs/narratives/underdog-victory.json +87 -0
- package/dist/spec/catalogs/narratives/venture-pitch.json +109 -0
- package/dist/spec/catalogs/narratives/weekly-progress.json +103 -0
- package/dist/spec/catalogs/purposes/align.json +16 -0
- package/dist/spec/catalogs/purposes/decide.json +16 -0
- package/dist/spec/catalogs/purposes/educate.json +16 -0
- package/dist/spec/catalogs/purposes/index.json +61 -0
- package/dist/spec/catalogs/purposes/inform.json +16 -0
- package/dist/spec/catalogs/purposes/persuade.json +16 -0
- package/dist/spec/catalogs/purposes/pitch.json +16 -0
- package/dist/spec/catalogs/purposes/plan.json +16 -0
- package/dist/spec/catalogs/purposes/report.json +16 -0
- package/dist/spec/catalogs/purposes/sell.json +16 -0
- package/dist/spec/catalogs/social-platforms/bluesky.json +14 -0
- package/dist/spec/catalogs/social-platforms/facebook.json +14 -0
- package/dist/spec/catalogs/social-platforms/github.json +15 -0
- package/dist/spec/catalogs/social-platforms/index.json +68 -0
- package/dist/spec/catalogs/social-platforms/instagram.json +13 -0
- package/dist/spec/catalogs/social-platforms/linkedin.json +15 -0
- package/dist/spec/catalogs/social-platforms/mastodon.json +14 -0
- package/dist/spec/catalogs/social-platforms/threads.json +13 -0
- package/dist/spec/catalogs/social-platforms/tiktok.json +14 -0
- package/dist/spec/catalogs/social-platforms/x.json +14 -0
- package/dist/spec/catalogs/social-platforms/youtube.json +14 -0
- package/dist/spec/catalogs/themes/bold.json +13 -0
- package/dist/spec/catalogs/themes/classic.json +13 -0
- package/dist/spec/catalogs/themes/dark.json +13 -0
- package/dist/spec/catalogs/themes/index.json +31 -0
- package/dist/spec/catalogs/themes/minimal.json +13 -0
- package/dist/spec/catalogs/tones/authoritative.json +31 -0
- package/dist/spec/catalogs/tones/casual.json +31 -0
- package/dist/spec/catalogs/tones/conversational.json +31 -0
- package/dist/spec/catalogs/tones/formal.json +31 -0
- package/dist/spec/catalogs/tones/index.json +49 -0
- package/dist/spec/catalogs/tones/inspirational.json +31 -0
- package/dist/spec/catalogs/tones/persuasive.json +32 -0
- package/dist/spec/catalogs/tones/technical.json +31 -0
- package/dist/spec/openapi.yaml +776 -0
- package/dist/spec/reference/engine-defaults.json +35 -0
- package/dist/spec/schemas/audience.schema.json +156 -0
- package/dist/spec/schemas/chart-type.schema.json +537 -0
- package/dist/spec/schemas/color-scheme.schema.json +200 -0
- package/dist/spec/schemas/font-scheme.schema.json +174 -0
- package/dist/spec/schemas/language.schema.json +158 -0
- package/dist/spec/schemas/layout.schema.json +280 -0
- package/dist/spec/schemas/narrative.schema.json +207 -0
- package/dist/spec/schemas/opf.schema.json +2537 -0
- package/dist/spec/schemas/purpose.schema.json +92 -0
- package/dist/spec/schemas/social-platform.schema.json +184 -0
- package/dist/spec/schemas/theme.schema.json +168 -0
- package/dist/spec/schemas/tone.schema.json +146 -0
- package/dist/types.d.ts +1102 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/validator-Be5EzqAt.d.ts +2700 -0
- package/dist/validator.d.ts +3 -0
- package/dist/validator.js +6694 -0
- package/dist/validator.js.map +1 -0
- package/package.json +80 -0
|
@@ -0,0 +1,2700 @@
|
|
|
1
|
+
import { CatalogKind } from './catalogs.js';
|
|
2
|
+
import { SchemaName } from './schemas.js';
|
|
3
|
+
|
|
4
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
5
|
+
type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
|
|
6
|
+
interface JsonObject {
|
|
7
|
+
readonly [key: string]: JsonValue;
|
|
8
|
+
}
|
|
9
|
+
type JsonSchema = JsonObject;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Inline audience metadata for the presentation. Use 'id' to reference an audiences catalog record and override selected fields, or use 'name' for a custom inline audience.
|
|
13
|
+
*
|
|
14
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
15
|
+
* via the `definition` "Audience".
|
|
16
|
+
*/
|
|
17
|
+
type Audience = (Audience1 & {
|
|
18
|
+
/**
|
|
19
|
+
* Optional audiences catalog id to resolve before applying inline overrides.
|
|
20
|
+
*/
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Human-readable audience name shown in pickers.
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
* One-sentence positioning of the audience.
|
|
28
|
+
*/
|
|
29
|
+
summary?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Longer prose describing the audience and how to address them.
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Typical seniority level of the audience.
|
|
36
|
+
*/
|
|
37
|
+
seniority?: ("ic" | "manager" | "director" | "vp" | "c-suite" | "mixed");
|
|
38
|
+
/**
|
|
39
|
+
* Typical technical fluency of the audience.
|
|
40
|
+
*/
|
|
41
|
+
technicalFluency?: ("low" | "medium" | "high" | "mixed");
|
|
42
|
+
/**
|
|
43
|
+
* Whether the audience is expected to be informed, advise, or decide.
|
|
44
|
+
*/
|
|
45
|
+
decisionPower?: ("informational" | "advisory" | "decision-maker");
|
|
46
|
+
/**
|
|
47
|
+
* Realistic upper bound on focused attention for a single presentation, in minutes.
|
|
48
|
+
*/
|
|
49
|
+
attentionBudgetMinutes?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Soft cross-link: narrative-catalog ids that work well for this audience.
|
|
52
|
+
*/
|
|
53
|
+
recommendedNarratives?: string[];
|
|
54
|
+
/**
|
|
55
|
+
* Soft cross-link: tone-catalog ids that work well for this audience.
|
|
56
|
+
*/
|
|
57
|
+
recommendedTones?: string[];
|
|
58
|
+
/**
|
|
59
|
+
* Free-form labels for filtering and search.
|
|
60
|
+
*/
|
|
61
|
+
tags?: string[];
|
|
62
|
+
[k: string]: unknown;
|
|
63
|
+
});
|
|
64
|
+
type Audience1 = {
|
|
65
|
+
[k: string]: unknown;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Inline purpose metadata for the presentation. Use 'id' to reference a purposes catalog record and override selected fields, or use 'name' for a custom inline purpose.
|
|
69
|
+
*
|
|
70
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
71
|
+
* via the `definition` "Purpose".
|
|
72
|
+
*/
|
|
73
|
+
type Purpose = (Purpose1 & {
|
|
74
|
+
/**
|
|
75
|
+
* Optional purposes catalog id to resolve before applying inline overrides.
|
|
76
|
+
*/
|
|
77
|
+
id?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Human-readable purpose name shown in pickers.
|
|
80
|
+
*/
|
|
81
|
+
name?: string;
|
|
82
|
+
/**
|
|
83
|
+
* One-sentence positioning of the purpose.
|
|
84
|
+
*/
|
|
85
|
+
summary?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Longer prose describing when to use this purpose and how it should shape a deck.
|
|
88
|
+
*/
|
|
89
|
+
description?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Desired audience outcome after the presentation.
|
|
92
|
+
*/
|
|
93
|
+
outcome?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Observable signals that the deck accomplished this purpose.
|
|
96
|
+
*/
|
|
97
|
+
successCriteria?: string[];
|
|
98
|
+
/**
|
|
99
|
+
* Soft cross-link: narrative-catalog ids that work well for this purpose.
|
|
100
|
+
*/
|
|
101
|
+
recommendedNarratives?: string[];
|
|
102
|
+
/**
|
|
103
|
+
* Soft cross-link: tone-catalog ids that work well for this purpose.
|
|
104
|
+
*/
|
|
105
|
+
recommendedTones?: string[];
|
|
106
|
+
/**
|
|
107
|
+
* Free-form labels for filtering and search.
|
|
108
|
+
*/
|
|
109
|
+
tags?: string[];
|
|
110
|
+
[k: string]: unknown;
|
|
111
|
+
});
|
|
112
|
+
type Purpose1 = {
|
|
113
|
+
[k: string]: unknown;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Inline language metadata for the presentation. Use 'id' to reference a languages catalog record and override selected fields, or use 'bcp47' for a custom language tag without a catalog record.
|
|
117
|
+
*
|
|
118
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
119
|
+
* via the `definition` "Language".
|
|
120
|
+
*/
|
|
121
|
+
type Language = (Language1 & {
|
|
122
|
+
/**
|
|
123
|
+
* Optional languages catalog id to resolve before applying inline overrides.
|
|
124
|
+
*/
|
|
125
|
+
id?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Human-readable language name.
|
|
128
|
+
*/
|
|
129
|
+
name?: string;
|
|
130
|
+
/**
|
|
131
|
+
* BCP-47 language tag used for locale-aware rendering, proofing, and accessibility metadata. Use 'en-GB' for UK English; 'en-UK' is not a valid BCP-47 region form.
|
|
132
|
+
*/
|
|
133
|
+
bcp47?: string;
|
|
134
|
+
/**
|
|
135
|
+
* ISO 639-3 or 639-2 language code carried for engines that prefer ISO codes.
|
|
136
|
+
*/
|
|
137
|
+
code?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Base text direction for the language.
|
|
140
|
+
*/
|
|
141
|
+
direction?: ("ltr" | "rtl");
|
|
142
|
+
/**
|
|
143
|
+
* ISO 15924 script code when the writing system should be explicit.
|
|
144
|
+
*/
|
|
145
|
+
script?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Default font-scheme id for this language when targeting PowerPoint output.
|
|
148
|
+
*/
|
|
149
|
+
fontScheme?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Default font-scheme id for this language when targeting Google Slides output.
|
|
152
|
+
*/
|
|
153
|
+
googleFontScheme?: string;
|
|
154
|
+
/**
|
|
155
|
+
* One-sentence note about coverage or font defaults.
|
|
156
|
+
*/
|
|
157
|
+
summary?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Longer prose describing the language record and any font-pairing rationale.
|
|
160
|
+
*/
|
|
161
|
+
description?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Free-form labels for filtering and search.
|
|
164
|
+
*/
|
|
165
|
+
tags?: string[];
|
|
166
|
+
[k: string]: unknown;
|
|
167
|
+
});
|
|
168
|
+
type Language1 = {
|
|
169
|
+
[k: string]: unknown;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Inline tone metadata for the presentation. Use 'id' to reference a tones catalog record and override selected fields, or use 'name' for a custom inline tone.
|
|
173
|
+
*
|
|
174
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
175
|
+
* via the `definition` "Tone".
|
|
176
|
+
*/
|
|
177
|
+
type Tone = (Tone1 & {
|
|
178
|
+
/**
|
|
179
|
+
* Optional tones catalog id to resolve before applying inline overrides.
|
|
180
|
+
*/
|
|
181
|
+
id?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Human-readable tone name shown in pickers.
|
|
184
|
+
*/
|
|
185
|
+
name?: string;
|
|
186
|
+
/**
|
|
187
|
+
* One-sentence positioning of the tone.
|
|
188
|
+
*/
|
|
189
|
+
summary?: string;
|
|
190
|
+
/**
|
|
191
|
+
* Longer prose describing the tone and the kinds of decks it suits.
|
|
192
|
+
*/
|
|
193
|
+
description?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Short directives that shape AI generation toward this tone.
|
|
196
|
+
*/
|
|
197
|
+
voiceCues?: string[];
|
|
198
|
+
/**
|
|
199
|
+
* Anti-patterns that AI generation should not produce when this tone is active.
|
|
200
|
+
*/
|
|
201
|
+
avoid?: string[];
|
|
202
|
+
/**
|
|
203
|
+
* Short example phrases that exemplify this tone.
|
|
204
|
+
*/
|
|
205
|
+
samplePhrases?: string[];
|
|
206
|
+
/**
|
|
207
|
+
* Soft cross-link: narrative-catalog ids this tone pairs well with.
|
|
208
|
+
*/
|
|
209
|
+
recommendedNarratives?: string[];
|
|
210
|
+
/**
|
|
211
|
+
* Free-form labels for filtering and search.
|
|
212
|
+
*/
|
|
213
|
+
tags?: string[];
|
|
214
|
+
[k: string]: unknown;
|
|
215
|
+
});
|
|
216
|
+
type Tone1 = {
|
|
217
|
+
[k: string]: unknown;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* String shorthand for a background. Theme slots ('light1', 'light2', 'dark1', 'dark2') are equivalent to { type: 'theme', slot: value }; hex colors are equivalent to { type: 'solid', color: value }.
|
|
221
|
+
*
|
|
222
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
223
|
+
* via the `definition` "BackgroundShortcut".
|
|
224
|
+
*/
|
|
225
|
+
type BackgroundShortcut = (ThemeBackgroundSlot | HexColor);
|
|
226
|
+
/**
|
|
227
|
+
* PowerPoint theme-controlled slide background slot from the active color scheme. These are slots, not assumptions about actual colors: light1 is usually white and dark1 is usually black by convention, but the color scheme controls the real values.
|
|
228
|
+
*
|
|
229
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
230
|
+
* via the `definition` "ThemeBackgroundSlot".
|
|
231
|
+
*/
|
|
232
|
+
type ThemeBackgroundSlot = ("light1" | "light2" | "dark1" | "dark2");
|
|
233
|
+
/**
|
|
234
|
+
* Hex color shorthand accepted by selected string fields.
|
|
235
|
+
*
|
|
236
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
237
|
+
* via the `definition` "HexColor".
|
|
238
|
+
*/
|
|
239
|
+
type HexColor = string;
|
|
240
|
+
/**
|
|
241
|
+
* Background fill applied to slides. Theme backgrounds preserve PowerPoint's color-scheme background choice; other variants represent fixed background fills.
|
|
242
|
+
*
|
|
243
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
244
|
+
* via the `definition` "Background".
|
|
245
|
+
*/
|
|
246
|
+
type Background = (ThemeBackground | SolidBackground | GradientBackground | ImageBackground | PatternBackground);
|
|
247
|
+
/**
|
|
248
|
+
* 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.
|
|
249
|
+
*
|
|
250
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
251
|
+
* via the `definition` "DimensionPreset".
|
|
252
|
+
*/
|
|
253
|
+
type DimensionPreset = ("16:9" | "4:3" | "16:10" | "letter" | "a4" | "widescreen" | "standard");
|
|
254
|
+
/**
|
|
255
|
+
* 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.
|
|
256
|
+
*
|
|
257
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
258
|
+
* via the `definition` "Asset".
|
|
259
|
+
*/
|
|
260
|
+
type Asset = (string | {
|
|
261
|
+
/**
|
|
262
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
263
|
+
*/
|
|
264
|
+
src: string;
|
|
265
|
+
/**
|
|
266
|
+
* Alternative text for images and other visual assets.
|
|
267
|
+
*/
|
|
268
|
+
alt?: string;
|
|
269
|
+
/**
|
|
270
|
+
* Human-readable asset title for editors and asset pickers.
|
|
271
|
+
*/
|
|
272
|
+
title?: string;
|
|
273
|
+
/**
|
|
274
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
275
|
+
*/
|
|
276
|
+
description?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
279
|
+
*/
|
|
280
|
+
mediaType?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
283
|
+
*/
|
|
284
|
+
format?: string;
|
|
285
|
+
});
|
|
286
|
+
/**
|
|
287
|
+
* A contiguous run of text. Strings cover unformatted spans; object form adds character formatting.
|
|
288
|
+
*
|
|
289
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
290
|
+
* via the `definition` "TextRun".
|
|
291
|
+
*/
|
|
292
|
+
type TextRun = (string | {
|
|
293
|
+
/**
|
|
294
|
+
* Text for this run.
|
|
295
|
+
*/
|
|
296
|
+
text: string;
|
|
297
|
+
/**
|
|
298
|
+
* Whether the run is rendered in bold.
|
|
299
|
+
*/
|
|
300
|
+
bold?: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* Whether the run is rendered in italic.
|
|
303
|
+
*/
|
|
304
|
+
italic?: boolean;
|
|
305
|
+
/**
|
|
306
|
+
* Whether the run is underlined.
|
|
307
|
+
*/
|
|
308
|
+
underline?: boolean;
|
|
309
|
+
/**
|
|
310
|
+
* Whether the run is rendered with a strikethrough line.
|
|
311
|
+
*/
|
|
312
|
+
strikethrough?: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* Run text color as a hex string.
|
|
315
|
+
*/
|
|
316
|
+
color?: string;
|
|
317
|
+
/**
|
|
318
|
+
* Run font size in points.
|
|
319
|
+
*/
|
|
320
|
+
fontSize?: number;
|
|
321
|
+
/**
|
|
322
|
+
* Run font family override.
|
|
323
|
+
*/
|
|
324
|
+
fontFamily?: string;
|
|
325
|
+
/**
|
|
326
|
+
* URL to link the run text to.
|
|
327
|
+
*/
|
|
328
|
+
link?: string;
|
|
329
|
+
/**
|
|
330
|
+
* Whether the run is rendered as superscript.
|
|
331
|
+
*/
|
|
332
|
+
superscript?: boolean;
|
|
333
|
+
/**
|
|
334
|
+
* Whether the run is rendered as subscript.
|
|
335
|
+
*/
|
|
336
|
+
subscript?: boolean;
|
|
337
|
+
[k: string]: unknown;
|
|
338
|
+
});
|
|
339
|
+
/**
|
|
340
|
+
* A flat item inside a list. Strings cover the common case, TextRun[] supports inline rich text without an object wrapper, and object form adds description and nesting depth without creating nested slide content payloads.
|
|
341
|
+
*
|
|
342
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
343
|
+
* via the `definition` "ListItem".
|
|
344
|
+
*/
|
|
345
|
+
type ListItem = (string | TextRun[] | {
|
|
346
|
+
/**
|
|
347
|
+
* Text for the list item. Use a string for plain text or TextRun[] for inline rich text. TextRun items may be plain strings or formatted run objects.
|
|
348
|
+
*/
|
|
349
|
+
text: (string | TextRun[]);
|
|
350
|
+
/**
|
|
351
|
+
* Optional supporting detail for the list item. Use a string for plain text or TextRun[] for inline rich text.
|
|
352
|
+
*/
|
|
353
|
+
description?: (string | TextRun[]);
|
|
354
|
+
/**
|
|
355
|
+
* Zero-based nesting level for the list item.
|
|
356
|
+
*/
|
|
357
|
+
level?: number;
|
|
358
|
+
});
|
|
359
|
+
/**
|
|
360
|
+
* A flat bullet item. Strings cover the common case, TextRun[] supports inline rich text without an object wrapper, and object form adds nesting depth without list-item descriptions.
|
|
361
|
+
*
|
|
362
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
363
|
+
* via the `definition` "BulletItem".
|
|
364
|
+
*/
|
|
365
|
+
type BulletItem = (string | TextRun[] | {
|
|
366
|
+
/**
|
|
367
|
+
* Text for the bullet. Use a string for plain text or TextRun[] for inline rich text. TextRun items may be plain strings or formatted run objects.
|
|
368
|
+
*/
|
|
369
|
+
text: (string | TextRun[]);
|
|
370
|
+
/**
|
|
371
|
+
* Zero-based nesting level for the bullet.
|
|
372
|
+
*/
|
|
373
|
+
level?: number;
|
|
374
|
+
});
|
|
375
|
+
/**
|
|
376
|
+
* A cell in inline chart data.
|
|
377
|
+
*
|
|
378
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
379
|
+
* via the `definition` "ChartDataCell".
|
|
380
|
+
*/
|
|
381
|
+
type ChartDataCell = (string | number | boolean | null);
|
|
382
|
+
/**
|
|
383
|
+
* A cell in table content.
|
|
384
|
+
*
|
|
385
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
386
|
+
* via the `definition` "TableCell".
|
|
387
|
+
*/
|
|
388
|
+
type TableCell = (string | number | boolean | null);
|
|
389
|
+
/**
|
|
390
|
+
* A single content payload. The optional 'type' discriminator can make intent explicit, but validators and engines infer it from fields such as text, bullets, items, image, video, chart, table, code, metric, quote, or timeline.
|
|
391
|
+
*
|
|
392
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
393
|
+
* via the `definition` "ContentPayload".
|
|
394
|
+
*/
|
|
395
|
+
type ContentPayload = ({
|
|
396
|
+
[k: string]: unknown;
|
|
397
|
+
} & {
|
|
398
|
+
/**
|
|
399
|
+
* Optional content kind. When omitted, engines infer the kind from the fields present.
|
|
400
|
+
*/
|
|
401
|
+
type?: ("text" | "list" | "image" | "chart" | "table" | "video" | "code" | "metric" | "quote" | "timeline");
|
|
402
|
+
/**
|
|
403
|
+
* Text payload. Use a string for plain text or TextRun[] for inline rich text. TextRun items may be plain strings or formatted run objects.
|
|
404
|
+
*/
|
|
405
|
+
text?: (string | TextRun[]);
|
|
406
|
+
/**
|
|
407
|
+
* Generic list payload. Each item is either a plain string, a TextRun[] rich text sequence, or a ListItem object. List nesting uses item.level rather than nested content payloads.
|
|
408
|
+
*/
|
|
409
|
+
items?: ListItem[];
|
|
410
|
+
/**
|
|
411
|
+
* Text-style bullet payload. Presence of this field infers type 'text'.
|
|
412
|
+
*/
|
|
413
|
+
bullets?: BulletItem[];
|
|
414
|
+
/**
|
|
415
|
+
* 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.
|
|
416
|
+
*/
|
|
417
|
+
image?: (string | {
|
|
418
|
+
/**
|
|
419
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
420
|
+
*/
|
|
421
|
+
src: string;
|
|
422
|
+
/**
|
|
423
|
+
* Alternative text for images and other visual assets.
|
|
424
|
+
*/
|
|
425
|
+
alt?: string;
|
|
426
|
+
/**
|
|
427
|
+
* Human-readable asset title for editors and asset pickers.
|
|
428
|
+
*/
|
|
429
|
+
title?: string;
|
|
430
|
+
/**
|
|
431
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
432
|
+
*/
|
|
433
|
+
description?: string;
|
|
434
|
+
/**
|
|
435
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
436
|
+
*/
|
|
437
|
+
mediaType?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
440
|
+
*/
|
|
441
|
+
format?: string;
|
|
442
|
+
});
|
|
443
|
+
/**
|
|
444
|
+
* 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.
|
|
445
|
+
*/
|
|
446
|
+
video?: (string | {
|
|
447
|
+
/**
|
|
448
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
449
|
+
*/
|
|
450
|
+
src: string;
|
|
451
|
+
/**
|
|
452
|
+
* Alternative text for images and other visual assets.
|
|
453
|
+
*/
|
|
454
|
+
alt?: string;
|
|
455
|
+
/**
|
|
456
|
+
* Human-readable asset title for editors and asset pickers.
|
|
457
|
+
*/
|
|
458
|
+
title?: string;
|
|
459
|
+
/**
|
|
460
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
461
|
+
*/
|
|
462
|
+
description?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
465
|
+
*/
|
|
466
|
+
mediaType?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
469
|
+
*/
|
|
470
|
+
format?: string;
|
|
471
|
+
});
|
|
472
|
+
chart?: Chart1;
|
|
473
|
+
table?: Table1;
|
|
474
|
+
/**
|
|
475
|
+
* Code payload. A string is shorthand for { "source": value }; object form carries optional syntax language and filename metadata.
|
|
476
|
+
*/
|
|
477
|
+
code?: (string | Code);
|
|
478
|
+
/**
|
|
479
|
+
* 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.
|
|
480
|
+
*/
|
|
481
|
+
metric?: (string | number | Metric);
|
|
482
|
+
/**
|
|
483
|
+
* Quote payload. A string is shorthand for { "text": value }; object form carries optional attribution and source metadata.
|
|
484
|
+
*/
|
|
485
|
+
quote?: (string | Quote);
|
|
486
|
+
/**
|
|
487
|
+
* Timeline payload ordered by narrative or chronology.
|
|
488
|
+
*/
|
|
489
|
+
timeline?: ([TimelineEvent, ...(TimelineEvent)[]] | {
|
|
490
|
+
/**
|
|
491
|
+
* Short timeline label.
|
|
492
|
+
*/
|
|
493
|
+
name?: string;
|
|
494
|
+
/**
|
|
495
|
+
* Optional timeline-level context.
|
|
496
|
+
*/
|
|
497
|
+
description?: string;
|
|
498
|
+
/**
|
|
499
|
+
* Timeline events ordered by narrative, sequence, or chronology.
|
|
500
|
+
*
|
|
501
|
+
* @minItems 1
|
|
502
|
+
*/
|
|
503
|
+
events: [TimelineEvent, ...(TimelineEvent)[]];
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
/**
|
|
507
|
+
* Catalog source location. Accepts:
|
|
508
|
+
* - A bare URL pointing at a catalog directory (e.g. 'https://acme.com/decks/narratives'); record ids resolve to '<base>/<id>.json'.
|
|
509
|
+
* - 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.
|
|
510
|
+
* - A package reference of the form 'pkg:<package>[/<subpath>]'; resolved through a locally-installed package on the engine's package path.
|
|
511
|
+
*
|
|
512
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
513
|
+
* via the `definition` "CatalogSource".
|
|
514
|
+
*/
|
|
515
|
+
type CatalogSource = string;
|
|
516
|
+
/**
|
|
517
|
+
* Open-source JSON format for describing PowerPoint presentations. Agents describe narratives, content, audience, reusable assets, and design  the engine handles OOXML complexity.
|
|
518
|
+
*
|
|
519
|
+
* Fields that reference catalog records (narrative, language, tone, audience, purpose, design.theme / design.theme.id, design.colorScheme / design.colorScheme.id, design.fontScheme / design.fontScheme.id, Slide.layout, Chart.type, Organization.socials / Speaker.socials) resolve through the catalog system: inline 'catalogs.<kind>.records[]' on the document → 'catalogs.<kind>.source' on the document → engine defaults → the default catalog at https://www.pptx.gallery/<kind>. Every reference resolves to the catalog record's 'id' field. When an OPF document omits a reference entirely, the engine falls back to engine defaults (see /spec/reference/engine-defaults.json for a reference example). The defaults file is engine configuration; it is not part of the OPF document contract and has no JSON Schema.
|
|
520
|
+
*
|
|
521
|
+
* Most catalog references accept the bare 'id' as a string for the common case (e.g. narrative = 'classic-story', design.colorScheme = 'cool-horizon'). Audience, purpose, tone, design, and language object forms use 'id' as a base catalog reference plus inline overrides. Asset references use 'asset:<id>' strings that point into the top-level assets registry.
|
|
522
|
+
*/
|
|
523
|
+
interface Presentation {
|
|
524
|
+
/**
|
|
525
|
+
* Optional OPF schema version. When omitted, validators and engines should assume the latest supported OPF schema.
|
|
526
|
+
*/
|
|
527
|
+
$schema?: "https://openpresentation.org/schema/opf/v1";
|
|
528
|
+
/**
|
|
529
|
+
* 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.
|
|
530
|
+
*/
|
|
531
|
+
name?: string;
|
|
532
|
+
/**
|
|
533
|
+
* 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 → Properties).
|
|
534
|
+
*/
|
|
535
|
+
description?: string;
|
|
536
|
+
/**
|
|
537
|
+
* 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.
|
|
538
|
+
*/
|
|
539
|
+
filename?: string;
|
|
540
|
+
/**
|
|
541
|
+
* 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.
|
|
542
|
+
*/
|
|
543
|
+
organization?: (Organization | [Organization, ...(Organization)[]]);
|
|
544
|
+
/**
|
|
545
|
+
* Person presenting the deck. Array form supports panels and multi-speaker decks. Used for cover slides, bio slides, footers, and panel attribution.
|
|
546
|
+
*/
|
|
547
|
+
speaker?: (Speaker | [Speaker, ...(Speaker)[]]);
|
|
548
|
+
/**
|
|
549
|
+
* 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.
|
|
550
|
+
*/
|
|
551
|
+
author?: (string | [string, ...(string)[]]);
|
|
552
|
+
/**
|
|
553
|
+
* Intended audiences for the presentation. Each item accepts either:
|
|
554
|
+
* - A string shorthand: free-form description ('Series B investors'), an audiences catalog id ('executives'), an HTTPS URL, or a 'pkg:' reference.
|
|
555
|
+
* - An inline Audience object for custom audience metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-audience/v1 without '$schema'.
|
|
556
|
+
*
|
|
557
|
+
* Resolution order for catalog ids and references: inline catalogs.audiences.records[] → catalogs.audiences.source → default catalog at https://www.pptx.gallery/audiences.
|
|
558
|
+
*
|
|
559
|
+
* @minItems 1
|
|
560
|
+
*/
|
|
561
|
+
audience?: [(string | Audience), ...((string | Audience))[]];
|
|
562
|
+
/**
|
|
563
|
+
* Primary goal of the presentation. Accepts either:
|
|
564
|
+
* - A string shorthand: free-form goal ('Raise a Series B round of $30M'), a purposes catalog id ('decide', 'align'), an HTTPS URL, or a 'pkg:' reference.
|
|
565
|
+
* - An inline Purpose object for custom purpose metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-purpose/v1 without '$schema'.
|
|
566
|
+
*
|
|
567
|
+
* Resolution order for catalog ids and references: inline catalogs.purposes.records[] → catalogs.purposes.source → default catalog at https://www.pptx.gallery/purposes.
|
|
568
|
+
*/
|
|
569
|
+
purpose?: (string | Purpose);
|
|
570
|
+
/**
|
|
571
|
+
* Language for the presentation content. Accepts either:
|
|
572
|
+
* - A string shorthand: a BCP-47 language tag ('en-US', 'en-GB', 'ja-JP', 'fr'), a languages catalog id ('english', 'japanese'), an HTTPS URL, or a 'pkg:' reference.
|
|
573
|
+
* - An inline Language object for custom language metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-language/v1 without '$schema'.
|
|
574
|
+
*
|
|
575
|
+
* Resolution order for catalog ids and references: inline catalogs.languages.records[] → catalogs.languages.source → default catalog at https://www.pptx.gallery/languages.
|
|
576
|
+
*/
|
|
577
|
+
language?: (string | Language);
|
|
578
|
+
/**
|
|
579
|
+
* Desired tone for the presentation. Accepts either:
|
|
580
|
+
* - A string shorthand: a tones catalog id ('formal'), an HTTPS URL, or a 'pkg:' reference.
|
|
581
|
+
* - An inline Tone object for custom tone metadata or catalog-backed overrides. Object form mirrors https://openpresentation.org/schema/opf-tone/v1 without '$schema'.
|
|
582
|
+
*
|
|
583
|
+
* Resolution order for catalog ids and references: inline catalogs.tones.records[] → catalogs.tones.source → default catalog at https://www.pptx.gallery/tones.
|
|
584
|
+
*/
|
|
585
|
+
tone?: (string | Tone);
|
|
586
|
+
/**
|
|
587
|
+
* Audience-facing takeaway the presentation should leave behind. Array form supports multiple takeaways. Deck-level intent used by AI to seed and pressure-test slide content.
|
|
588
|
+
*/
|
|
589
|
+
takeaway?: (string | [string, ...(string)[]]);
|
|
590
|
+
/**
|
|
591
|
+
* 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.
|
|
592
|
+
*/
|
|
593
|
+
duration?: number;
|
|
594
|
+
/**
|
|
595
|
+
* Free-form labels used for categorization, search, and filtering. Lowercase kebab-case is recommended for consistency across a deck library.
|
|
596
|
+
*/
|
|
597
|
+
tags?: string[];
|
|
598
|
+
design?: Design;
|
|
599
|
+
/**
|
|
600
|
+
* Structured storyline describing the deck's arc and beats. Resolves to the 'id' of a 'narratives' catalog record.
|
|
601
|
+
*
|
|
602
|
+
* Accepts two forms:
|
|
603
|
+
* - 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.
|
|
604
|
+
* - 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.
|
|
605
|
+
*
|
|
606
|
+
* Resolution order: inline catalogs.narratives.records[] → catalogs.narratives.source → default catalog at https://www.pptx.gallery/narratives. Unknown ids produce a validation warning, not an error.
|
|
607
|
+
*
|
|
608
|
+
* 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.
|
|
609
|
+
*/
|
|
610
|
+
narrative?: (string | Narrative);
|
|
611
|
+
/**
|
|
612
|
+
* Ordered array of slides that make up the presentation.
|
|
613
|
+
*
|
|
614
|
+
* @minItems 1
|
|
615
|
+
*/
|
|
616
|
+
slides: [Slide, ...(Slide)[]];
|
|
617
|
+
assets?: Assets;
|
|
618
|
+
catalogs?: Catalogs;
|
|
619
|
+
/**
|
|
620
|
+
* Custom data passthrough for agent workflows; ignored by the engine but preserved across read/write round-trips.
|
|
621
|
+
*/
|
|
622
|
+
extensions?: {
|
|
623
|
+
[k: string]: unknown;
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* An organization associated with the presentation  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.
|
|
628
|
+
*
|
|
629
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
630
|
+
* via the `definition` "Organization".
|
|
631
|
+
*/
|
|
632
|
+
interface Organization {
|
|
633
|
+
/**
|
|
634
|
+
* Stable identifier for the organization, used to reference it from Speaker.organizationId. Must be unique within the deck.
|
|
635
|
+
*/
|
|
636
|
+
id: string;
|
|
637
|
+
/**
|
|
638
|
+
* Display name shown on slides.
|
|
639
|
+
*/
|
|
640
|
+
name: string;
|
|
641
|
+
/**
|
|
642
|
+
* Optional legal entity name when it differs from the display name.
|
|
643
|
+
*/
|
|
644
|
+
legalName?: string;
|
|
645
|
+
/**
|
|
646
|
+
* 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 is used by default for cover-slide and footer branding; design.logo overrides the source.
|
|
647
|
+
*/
|
|
648
|
+
logo?: (string | {
|
|
649
|
+
/**
|
|
650
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
651
|
+
*/
|
|
652
|
+
src: string;
|
|
653
|
+
/**
|
|
654
|
+
* Alternative text for images and other visual assets.
|
|
655
|
+
*/
|
|
656
|
+
alt?: string;
|
|
657
|
+
/**
|
|
658
|
+
* Human-readable asset title for editors and asset pickers.
|
|
659
|
+
*/
|
|
660
|
+
title?: string;
|
|
661
|
+
/**
|
|
662
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
663
|
+
*/
|
|
664
|
+
description?: string;
|
|
665
|
+
/**
|
|
666
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
667
|
+
*/
|
|
668
|
+
mediaType?: string;
|
|
669
|
+
/**
|
|
670
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
671
|
+
*/
|
|
672
|
+
format?: string;
|
|
673
|
+
});
|
|
674
|
+
/**
|
|
675
|
+
* Bare internet domain for the organization. Used for footers, contact slides, and engine-driven asset lookups (e.g., favicon-based brand defaults).
|
|
676
|
+
*/
|
|
677
|
+
domain?: string;
|
|
678
|
+
/**
|
|
679
|
+
* General contact email for the organization. Used on contact slides and footer attribution.
|
|
680
|
+
*/
|
|
681
|
+
email?: string;
|
|
682
|
+
/**
|
|
683
|
+
* Main contact phone number for the organization. E.164 format is recommended.
|
|
684
|
+
*/
|
|
685
|
+
phone?: string;
|
|
686
|
+
/**
|
|
687
|
+
* Short tagline rendered alongside the organization name on cover slides.
|
|
688
|
+
*/
|
|
689
|
+
tagline?: string;
|
|
690
|
+
/**
|
|
691
|
+
* Role of the organization relative to the presentation. When omitted, the single organization or first organization in array form is treated as primary.
|
|
692
|
+
*/
|
|
693
|
+
role?: ("primary" | "partner" | "client" | "sponsor" | "host");
|
|
694
|
+
socials?: Socials;
|
|
695
|
+
[k: string]: unknown;
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* Optional social media handles or URLs for the organization.
|
|
699
|
+
*/
|
|
700
|
+
interface Socials {
|
|
701
|
+
/**
|
|
702
|
+
* Handle or URL for the platform identified by the property key.
|
|
703
|
+
*/
|
|
704
|
+
[k: string]: string;
|
|
705
|
+
}
|
|
706
|
+
/**
|
|
707
|
+
* A person presenting the deck. Used for cover slides, bio/intro slides, footer attribution, and panel formats with multiple presenters.
|
|
708
|
+
*
|
|
709
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
710
|
+
* via the `definition` "Speaker".
|
|
711
|
+
*/
|
|
712
|
+
interface Speaker {
|
|
713
|
+
/**
|
|
714
|
+
* Stable identifier for the speaker, used for cross-references within the deck. Must be unique within the deck.
|
|
715
|
+
*/
|
|
716
|
+
id: string;
|
|
717
|
+
/**
|
|
718
|
+
* Display name.
|
|
719
|
+
*/
|
|
720
|
+
name: string;
|
|
721
|
+
/**
|
|
722
|
+
* Role or title. Often paired with the speaker's organization on cover slides.
|
|
723
|
+
*/
|
|
724
|
+
title?: string;
|
|
725
|
+
/**
|
|
726
|
+
* 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. Used on cover and bio slides.
|
|
727
|
+
*/
|
|
728
|
+
photo?: (string | {
|
|
729
|
+
/**
|
|
730
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
731
|
+
*/
|
|
732
|
+
src: string;
|
|
733
|
+
/**
|
|
734
|
+
* Alternative text for images and other visual assets.
|
|
735
|
+
*/
|
|
736
|
+
alt?: string;
|
|
737
|
+
/**
|
|
738
|
+
* Human-readable asset title for editors and asset pickers.
|
|
739
|
+
*/
|
|
740
|
+
title?: string;
|
|
741
|
+
/**
|
|
742
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
743
|
+
*/
|
|
744
|
+
description?: string;
|
|
745
|
+
/**
|
|
746
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
747
|
+
*/
|
|
748
|
+
mediaType?: string;
|
|
749
|
+
/**
|
|
750
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
751
|
+
*/
|
|
752
|
+
format?: string;
|
|
753
|
+
});
|
|
754
|
+
/**
|
|
755
|
+
* Contact email, used on contact slides or footer attribution when appropriate.
|
|
756
|
+
*/
|
|
757
|
+
email?: string;
|
|
758
|
+
/**
|
|
759
|
+
* Contact phone number for the speaker. E.164 format is recommended.
|
|
760
|
+
*/
|
|
761
|
+
phone?: string;
|
|
762
|
+
/**
|
|
763
|
+
* Short biographical paragraph for bio or 'about the speaker' slides.
|
|
764
|
+
*/
|
|
765
|
+
bio?: string;
|
|
766
|
+
/**
|
|
767
|
+
* 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.
|
|
768
|
+
*/
|
|
769
|
+
organizationId?: string;
|
|
770
|
+
socials?: Socials1;
|
|
771
|
+
[k: string]: unknown;
|
|
772
|
+
}
|
|
773
|
+
/**
|
|
774
|
+
* Optional social media handles or URLs for the speaker.
|
|
775
|
+
*/
|
|
776
|
+
interface Socials1 {
|
|
777
|
+
/**
|
|
778
|
+
* Handle or URL for the platform identified by the property key.
|
|
779
|
+
*/
|
|
780
|
+
[k: string]: string;
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Optional design system covering theme, color scheme, font scheme, dimensions, background, logo, watermark, header, and footer applied to the deck. When omitted, engines use their default design configuration.
|
|
784
|
+
*/
|
|
785
|
+
interface Design {
|
|
786
|
+
/**
|
|
787
|
+
* Theme for the deck. Accepts two forms:
|
|
788
|
+
* - String shorthand: 'design.theme = "minimal"'. Bare id, HTTPS URL, or 'pkg:' reference resolved as the 'id' of a 'themes' catalog record.
|
|
789
|
+
* - Object form: a Theme with an optional 'id' base reference plus theme-level overrides.
|
|
790
|
+
*
|
|
791
|
+
* Inline overrides on design.colorScheme / design.fontScheme / design.background / design.dimensions take precedence over the resolved theme.
|
|
792
|
+
*
|
|
793
|
+
* Resolution order: inline catalogs.themes.records[] -> catalogs.themes.source -> default catalog at https://www.pptx.gallery/themes.
|
|
794
|
+
*/
|
|
795
|
+
theme?: (string | Theme);
|
|
796
|
+
/**
|
|
797
|
+
* Color scheme for the presentation. Accepts two forms:
|
|
798
|
+
* - String shorthand: 'design.colorScheme = "cool-horizon"'. Bare id, HTTPS URL, or 'pkg:' reference resolved as the 'id' of a 'colorSchemes' catalog record.
|
|
799
|
+
* - Object form: a ColorScheme with an optional 'id' base reference plus slot/role overrides.
|
|
800
|
+
*
|
|
801
|
+
* Resolution order: inline catalogs.colorSchemes.records[] -> catalogs.colorSchemes.source -> default catalog at https://www.pptx.gallery/color-schemes.
|
|
802
|
+
*/
|
|
803
|
+
colorScheme?: (string | ColorScheme);
|
|
804
|
+
/**
|
|
805
|
+
* Font scheme for heading, body, accent, and code text. Accepts two forms:
|
|
806
|
+
* - String shorthand: 'design.fontScheme = "aptos"'. Bare id, HTTPS URL, or 'pkg:' reference resolved as the 'id' of a 'fontSchemes' catalog record.
|
|
807
|
+
* - Object form: a FontScheme with an optional 'id' base reference plus pair/role overrides.
|
|
808
|
+
*
|
|
809
|
+
* Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.source -> default catalog at https://www.pptx.gallery/font-schemes.
|
|
810
|
+
*/
|
|
811
|
+
fontScheme?: (string | FontScheme);
|
|
812
|
+
/**
|
|
813
|
+
* Slide dimensions and aspect ratio. String shorthand such as 'widescreen' is equivalent to { preset: 'widescreen' }.
|
|
814
|
+
*/
|
|
815
|
+
dimensions?: (DimensionPreset | Dimensions);
|
|
816
|
+
/**
|
|
817
|
+
* Default slide background applied across the deck unless overridden on a slide. String shorthand accepts theme slots ('light1', 'light2', 'dark1', 'dark2') or hex colors; object forms support theme, solid, gradient, image, or pattern fills.
|
|
818
|
+
*/
|
|
819
|
+
background?: (BackgroundShortcut | Background);
|
|
820
|
+
/**
|
|
821
|
+
* Deck logo assets used by layouts, covers, section dividers, headers, and footers. A string is the default logo source; object form provides light/dark, stacked, icon, and wordmark variants. When omitted, the renderer falls back to the primary organization logo.
|
|
822
|
+
*/
|
|
823
|
+
logo?: (Asset | LogoSet);
|
|
824
|
+
/**
|
|
825
|
+
* Optional decorative watermark applied across slides. Use false to suppress an inherited watermark in slide-level design; a string is equivalent to { src: value }.
|
|
826
|
+
*/
|
|
827
|
+
watermark?: (false | Asset | Watermark);
|
|
828
|
+
/**
|
|
829
|
+
* Repeated header furniture rendered outside the main slide content. Use false to suppress an inherited header.
|
|
830
|
+
*/
|
|
831
|
+
header?: (false | HeaderFooter);
|
|
832
|
+
/**
|
|
833
|
+
* Repeated footer furniture rendered outside the main slide content. Use false to suppress an inherited footer.
|
|
834
|
+
*/
|
|
835
|
+
footer?: (false | HeaderFooter);
|
|
836
|
+
/**
|
|
837
|
+
* Default horizontal alignment for title placeholders in resolved layouts.
|
|
838
|
+
*/
|
|
839
|
+
titleAlignment?: ("left" | "center" | "right");
|
|
840
|
+
/**
|
|
841
|
+
* Default horizontal alignment for body/content regions in resolved layouts.
|
|
842
|
+
*/
|
|
843
|
+
contentAlignment?: ("left" | "center" | "right");
|
|
844
|
+
/**
|
|
845
|
+
* Whether body/content regions are rendered inside a visible card or surface.
|
|
846
|
+
*/
|
|
847
|
+
contentBox?: boolean;
|
|
848
|
+
/**
|
|
849
|
+
* Optional slide-level image treatment used by layouts that support a decorative or editorial image separate from content images.
|
|
850
|
+
*/
|
|
851
|
+
slideImage?: (Asset | {
|
|
852
|
+
/**
|
|
853
|
+
* Source for the slide-level image. When omitted in a design override, the object only configures how a slide-level image should be placed when one is supplied by a content payload, asset, or renderer convention.
|
|
854
|
+
*/
|
|
855
|
+
src?: string;
|
|
856
|
+
/**
|
|
857
|
+
* Where the slide-level image sits relative to the content. 'background' is a full-bleed image behind the content.
|
|
858
|
+
*/
|
|
859
|
+
position: ("background" | "top" | "bottom" | "left" | "right");
|
|
860
|
+
});
|
|
861
|
+
/**
|
|
862
|
+
* Axis along which parallel body/content regions are arranged.
|
|
863
|
+
*/
|
|
864
|
+
contentDirection?: ("horizontal" | "vertical");
|
|
865
|
+
/**
|
|
866
|
+
* For chart layouts, where the primary chart sits relative to supporting content. 'none' means chart regions have equal weight.
|
|
867
|
+
*/
|
|
868
|
+
chartPrimary?: ("none" | "top" | "bottom" | "left" | "right");
|
|
869
|
+
/**
|
|
870
|
+
* How picture placeholders fill their allocated region.
|
|
871
|
+
*/
|
|
872
|
+
imageFill?: ("crop" | "fit");
|
|
873
|
+
/**
|
|
874
|
+
* Default bullet rendering style for list layouts.
|
|
875
|
+
*/
|
|
876
|
+
listBullet?: ("character" | "image");
|
|
877
|
+
[k: string]: unknown;
|
|
878
|
+
}
|
|
879
|
+
/**
|
|
880
|
+
* Theme bundle used by the design system. In design.theme, 'id' resolves a themes catalog record as the base; any sibling fields override the resolved theme. The string shorthand on design.theme is equivalent to setting only 'id'.
|
|
881
|
+
*
|
|
882
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
883
|
+
* via the `definition` "Theme".
|
|
884
|
+
*/
|
|
885
|
+
interface Theme {
|
|
886
|
+
/**
|
|
887
|
+
* Theme reference. Resolves to the 'id' of a 'themes' catalog record. Accepts a bare id (lowercase kebab-case, e.g. 'minimal'), an HTTPS URL pointing at a record file, or a 'pkg:' reference. Field overrides on the surrounding Theme object take precedence over the resolved theme.
|
|
888
|
+
*
|
|
889
|
+
* Resolution order: inline catalogs.themes.records[] -> catalogs.themes.source -> default catalog at https://www.pptx.gallery/themes.
|
|
890
|
+
*/
|
|
891
|
+
id?: string;
|
|
892
|
+
/**
|
|
893
|
+
* Human-readable theme name shown in pickers.
|
|
894
|
+
*/
|
|
895
|
+
name?: string;
|
|
896
|
+
/**
|
|
897
|
+
* One-sentence positioning of the theme - when to reach for it.
|
|
898
|
+
*/
|
|
899
|
+
summary?: string;
|
|
900
|
+
/**
|
|
901
|
+
* Longer prose describing what the theme looks and feels like and the kinds of decks it suits.
|
|
902
|
+
*/
|
|
903
|
+
description?: string;
|
|
904
|
+
/**
|
|
905
|
+
* Default color scheme for this theme. A string resolves against catalogs.colorSchemes; an object may provide an 'id' base reference plus overrides.
|
|
906
|
+
*/
|
|
907
|
+
colorScheme?: (string | ColorScheme);
|
|
908
|
+
/**
|
|
909
|
+
* Default font scheme for this theme. A string resolves against catalogs.fontSchemes; an object may provide an 'id' base reference plus overrides.
|
|
910
|
+
*/
|
|
911
|
+
fontScheme?: (string | FontScheme);
|
|
912
|
+
/**
|
|
913
|
+
* Default background for this theme. String shorthand accepts theme slots ('light1', 'light2', 'dark1', 'dark2') or hex colors.
|
|
914
|
+
*/
|
|
915
|
+
background?: (BackgroundShortcut | Background);
|
|
916
|
+
/**
|
|
917
|
+
* Default slide size for this theme. A string preset is equivalent to { preset: value }.
|
|
918
|
+
*/
|
|
919
|
+
dimensions?: (DimensionPreset | Dimensions);
|
|
920
|
+
/**
|
|
921
|
+
* Free-form labels for filtering and search.
|
|
922
|
+
*/
|
|
923
|
+
tags?: string[];
|
|
924
|
+
[k: string]: unknown;
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* 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.
|
|
928
|
+
*
|
|
929
|
+
* Two parallel models are supported and may be mixed:
|
|
930
|
+
* - 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.
|
|
931
|
+
* - 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.
|
|
932
|
+
*
|
|
933
|
+
* In 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'.
|
|
934
|
+
*
|
|
935
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
936
|
+
* via the `definition` "ColorScheme".
|
|
937
|
+
*/
|
|
938
|
+
interface ColorScheme {
|
|
939
|
+
/**
|
|
940
|
+
* Color scheme reference. Resolves to the 'id' of a 'colorSchemes' catalog record. Accepts a bare id (lowercase kebab-case, e.g. 'cool-horizon'), an HTTPS URL pointing at a record file, or a 'pkg:' reference. Slot and role overrides on the surrounding ColorScheme object take precedence over the resolved scheme.
|
|
941
|
+
*
|
|
942
|
+
* Resolution order: inline catalogs.colorSchemes.records[] -> catalogs.colorSchemes.source -> default catalog at https://www.pptx.gallery/color-schemes.
|
|
943
|
+
*/
|
|
944
|
+
id?: string;
|
|
945
|
+
/**
|
|
946
|
+
* Accent 1 color (hex). Mirrors the OOXML accent1 slot.
|
|
947
|
+
*/
|
|
948
|
+
accent1?: string;
|
|
949
|
+
/**
|
|
950
|
+
* Accent 2 color (hex). Mirrors the OOXML accent2 slot.
|
|
951
|
+
*/
|
|
952
|
+
accent2?: string;
|
|
953
|
+
/**
|
|
954
|
+
* Accent 3 color (hex). Mirrors the OOXML accent3 slot.
|
|
955
|
+
*/
|
|
956
|
+
accent3?: string;
|
|
957
|
+
/**
|
|
958
|
+
* Accent 4 color (hex). Mirrors the OOXML accent4 slot.
|
|
959
|
+
*/
|
|
960
|
+
accent4?: string;
|
|
961
|
+
/**
|
|
962
|
+
* Accent 5 color (hex). Mirrors the OOXML accent5 slot.
|
|
963
|
+
*/
|
|
964
|
+
accent5?: string;
|
|
965
|
+
/**
|
|
966
|
+
* Accent 6 color (hex). Mirrors the OOXML accent6 slot.
|
|
967
|
+
*/
|
|
968
|
+
accent6?: string;
|
|
969
|
+
/**
|
|
970
|
+
* Dark 1 color (hex). Typically the deepest neutral; OOXML dark1.
|
|
971
|
+
*/
|
|
972
|
+
dark1?: string;
|
|
973
|
+
/**
|
|
974
|
+
* Dark 2 color (hex). Secondary dark; OOXML dark2.
|
|
975
|
+
*/
|
|
976
|
+
dark2?: string;
|
|
977
|
+
/**
|
|
978
|
+
* Light 1 color (hex). Typically the slide canvas; OOXML lt1.
|
|
979
|
+
*/
|
|
980
|
+
light1?: string;
|
|
981
|
+
/**
|
|
982
|
+
* Light 2 color (hex). Secondary light surface; OOXML lt2.
|
|
983
|
+
*/
|
|
984
|
+
light2?: string;
|
|
985
|
+
/**
|
|
986
|
+
* Hyperlink color (hex). OOXML hlink.
|
|
987
|
+
*/
|
|
988
|
+
hyperlink?: string;
|
|
989
|
+
/**
|
|
990
|
+
* Followed-hyperlink color (hex). OOXML folHlink.
|
|
991
|
+
*/
|
|
992
|
+
followedHyperlink?: string;
|
|
993
|
+
/**
|
|
994
|
+
* Abstract role: primary brand color (hex). The engine maps this onto an OOXML accent slot when serializing.
|
|
995
|
+
*/
|
|
996
|
+
primary?: string;
|
|
997
|
+
/**
|
|
998
|
+
* Abstract role: secondary brand color (hex).
|
|
999
|
+
*/
|
|
1000
|
+
secondary?: string;
|
|
1001
|
+
/**
|
|
1002
|
+
* Abstract role: accent color used for highlights and emphasis (hex).
|
|
1003
|
+
*/
|
|
1004
|
+
accent?: string;
|
|
1005
|
+
/**
|
|
1006
|
+
* Abstract role: default slide background color (hex). The engine maps this to one of light1 / light2 / dark1 / dark2 when serializing.
|
|
1007
|
+
*/
|
|
1008
|
+
background?: string;
|
|
1009
|
+
/**
|
|
1010
|
+
* Abstract role: color for elevated surfaces such as cards and panels (hex).
|
|
1011
|
+
*/
|
|
1012
|
+
surface?: string;
|
|
1013
|
+
/**
|
|
1014
|
+
* Abstract role: primary body text color (hex).
|
|
1015
|
+
*/
|
|
1016
|
+
text?: string;
|
|
1017
|
+
/**
|
|
1018
|
+
* Abstract role: secondary or muted text color used for captions and supporting copy (hex).
|
|
1019
|
+
*/
|
|
1020
|
+
textSecondary?: string;
|
|
1021
|
+
/**
|
|
1022
|
+
* Map of custom named colors for advanced or theme-specific use.
|
|
1023
|
+
*/
|
|
1024
|
+
custom?: {
|
|
1025
|
+
[k: string]: string;
|
|
1026
|
+
};
|
|
1027
|
+
[k: string]: unknown;
|
|
1028
|
+
}
|
|
1029
|
+
/**
|
|
1030
|
+
* 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.
|
|
1031
|
+
*
|
|
1032
|
+
* Two parallel models are supported and may be mixed:
|
|
1033
|
+
* - OOXML pairs (major, minor) - heading and body family names that round-trip directly to PowerPoint majorFont/minorFont entries.
|
|
1034
|
+
* - 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; not part of the catalog record schema.
|
|
1035
|
+
*
|
|
1036
|
+
* In 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'.
|
|
1037
|
+
*
|
|
1038
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1039
|
+
* via the `definition` "FontScheme".
|
|
1040
|
+
*/
|
|
1041
|
+
interface FontScheme {
|
|
1042
|
+
/**
|
|
1043
|
+
* Font scheme reference. Resolves to the 'id' of a 'fontSchemes' catalog record. Accepts a bare id (lowercase kebab-case, e.g. 'aptos'), an HTTPS URL pointing at a record file, or a 'pkg:' reference. Field overrides on the surrounding FontScheme object take precedence over the resolved scheme.
|
|
1044
|
+
*
|
|
1045
|
+
* Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.source -> default catalog at https://www.pptx.gallery/font-schemes.
|
|
1046
|
+
*/
|
|
1047
|
+
id?: string;
|
|
1048
|
+
/**
|
|
1049
|
+
* Heading (major) font family  mirrors the OOXML majorFont entry. Pairs with 'minor'.
|
|
1050
|
+
*/
|
|
1051
|
+
major?: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* Body (minor) font family  mirrors the OOXML minorFont entry. Pairs with 'major'.
|
|
1054
|
+
*/
|
|
1055
|
+
minor?: string;
|
|
1056
|
+
/**
|
|
1057
|
+
* High-level typographic class of the scheme.
|
|
1058
|
+
*/
|
|
1059
|
+
type?: ("sans-serif" | "serif" | "monospace");
|
|
1060
|
+
/**
|
|
1061
|
+
* Target application this font pairing is intended for.
|
|
1062
|
+
*/
|
|
1063
|
+
app?: ("PowerPoint" | "Google Slides");
|
|
1064
|
+
/**
|
|
1065
|
+
* OOXML font-language family this scheme is intended for: 'latin' for Latin-script content, 'ea' for East Asian scripts, 'cs' for Complex Scripts.
|
|
1066
|
+
*/
|
|
1067
|
+
languageFamily?: ("latin" | "ea" | "cs");
|
|
1068
|
+
heading?: Font;
|
|
1069
|
+
body?: Font1;
|
|
1070
|
+
accent?: Font2;
|
|
1071
|
+
code?: Font3;
|
|
1072
|
+
[k: string]: unknown;
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Abstract role: font used for slide titles and headings. Maps onto the OOXML major slot when serializing.
|
|
1076
|
+
*/
|
|
1077
|
+
interface Font {
|
|
1078
|
+
/**
|
|
1079
|
+
* Font family name.
|
|
1080
|
+
*/
|
|
1081
|
+
family: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* Numeric font weight (e.g., 400 for regular, 700 for bold).
|
|
1084
|
+
*/
|
|
1085
|
+
weight?: number;
|
|
1086
|
+
/**
|
|
1087
|
+
* Font style.
|
|
1088
|
+
*/
|
|
1089
|
+
style?: ("normal" | "italic");
|
|
1090
|
+
/**
|
|
1091
|
+
* Letter spacing (tracking) in ems.
|
|
1092
|
+
*/
|
|
1093
|
+
letterSpacing?: number;
|
|
1094
|
+
[k: string]: unknown;
|
|
1095
|
+
}
|
|
1096
|
+
/**
|
|
1097
|
+
* Abstract role: font used for body copy. Maps onto the OOXML minor slot when serializing.
|
|
1098
|
+
*/
|
|
1099
|
+
interface Font1 {
|
|
1100
|
+
/**
|
|
1101
|
+
* Font family name.
|
|
1102
|
+
*/
|
|
1103
|
+
family: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* Numeric font weight (e.g., 400 for regular, 700 for bold).
|
|
1106
|
+
*/
|
|
1107
|
+
weight?: number;
|
|
1108
|
+
/**
|
|
1109
|
+
* Font style.
|
|
1110
|
+
*/
|
|
1111
|
+
style?: ("normal" | "italic");
|
|
1112
|
+
/**
|
|
1113
|
+
* Letter spacing (tracking) in ems.
|
|
1114
|
+
*/
|
|
1115
|
+
letterSpacing?: number;
|
|
1116
|
+
[k: string]: unknown;
|
|
1117
|
+
}
|
|
1118
|
+
/**
|
|
1119
|
+
* Abstract role: font used for accent text such as quotes or callouts. No direct OOXML slot.
|
|
1120
|
+
*/
|
|
1121
|
+
interface Font2 {
|
|
1122
|
+
/**
|
|
1123
|
+
* Font family name.
|
|
1124
|
+
*/
|
|
1125
|
+
family: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* Numeric font weight (e.g., 400 for regular, 700 for bold).
|
|
1128
|
+
*/
|
|
1129
|
+
weight?: number;
|
|
1130
|
+
/**
|
|
1131
|
+
* Font style.
|
|
1132
|
+
*/
|
|
1133
|
+
style?: ("normal" | "italic");
|
|
1134
|
+
/**
|
|
1135
|
+
* Letter spacing (tracking) in ems.
|
|
1136
|
+
*/
|
|
1137
|
+
letterSpacing?: number;
|
|
1138
|
+
[k: string]: unknown;
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Abstract role: monospaced font used for code blocks. No direct OOXML slot.
|
|
1142
|
+
*/
|
|
1143
|
+
interface Font3 {
|
|
1144
|
+
/**
|
|
1145
|
+
* Font family name.
|
|
1146
|
+
*/
|
|
1147
|
+
family: string;
|
|
1148
|
+
/**
|
|
1149
|
+
* Numeric font weight (e.g., 400 for regular, 700 for bold).
|
|
1150
|
+
*/
|
|
1151
|
+
weight?: number;
|
|
1152
|
+
/**
|
|
1153
|
+
* Font style.
|
|
1154
|
+
*/
|
|
1155
|
+
style?: ("normal" | "italic");
|
|
1156
|
+
/**
|
|
1157
|
+
* Letter spacing (tracking) in ems.
|
|
1158
|
+
*/
|
|
1159
|
+
letterSpacing?: number;
|
|
1160
|
+
[k: string]: unknown;
|
|
1161
|
+
}
|
|
1162
|
+
/**
|
|
1163
|
+
* Theme-controlled PowerPoint slide background. The slot is resolved through the active color scheme and remains theme-aware.
|
|
1164
|
+
*
|
|
1165
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1166
|
+
* via the `definition` "ThemeBackground".
|
|
1167
|
+
*/
|
|
1168
|
+
interface ThemeBackground {
|
|
1169
|
+
/**
|
|
1170
|
+
* Theme-controlled background fill.
|
|
1171
|
+
*/
|
|
1172
|
+
type: "theme";
|
|
1173
|
+
slot: ThemeBackgroundSlot;
|
|
1174
|
+
[k: string]: unknown;
|
|
1175
|
+
}
|
|
1176
|
+
/**
|
|
1177
|
+
* Fixed solid slide background fill.
|
|
1178
|
+
*
|
|
1179
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1180
|
+
* via the `definition` "SolidBackground".
|
|
1181
|
+
*/
|
|
1182
|
+
interface SolidBackground {
|
|
1183
|
+
/**
|
|
1184
|
+
* Fixed solid background fill.
|
|
1185
|
+
*/
|
|
1186
|
+
type: "solid";
|
|
1187
|
+
/**
|
|
1188
|
+
* Fixed solid fill color, usually a hex string. Use { type: 'theme', slot: ... } for PowerPoint's four theme-controlled background choices.
|
|
1189
|
+
*/
|
|
1190
|
+
color: string;
|
|
1191
|
+
/**
|
|
1192
|
+
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1193
|
+
*/
|
|
1194
|
+
opacity?: number;
|
|
1195
|
+
[k: string]: unknown;
|
|
1196
|
+
}
|
|
1197
|
+
/**
|
|
1198
|
+
* Fixed gradient slide background fill.
|
|
1199
|
+
*
|
|
1200
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1201
|
+
* via the `definition` "GradientBackground".
|
|
1202
|
+
*/
|
|
1203
|
+
interface GradientBackground {
|
|
1204
|
+
/**
|
|
1205
|
+
* Fixed gradient background fill.
|
|
1206
|
+
*/
|
|
1207
|
+
type: "gradient";
|
|
1208
|
+
/**
|
|
1209
|
+
* Gradient fill definition.
|
|
1210
|
+
*/
|
|
1211
|
+
gradient: {
|
|
1212
|
+
/**
|
|
1213
|
+
* Gradient angle in degrees (0 = left-to-right, 90 = top-to-bottom).
|
|
1214
|
+
*/
|
|
1215
|
+
angle?: number;
|
|
1216
|
+
/**
|
|
1217
|
+
* Ordered list of color stops along the gradient.
|
|
1218
|
+
*/
|
|
1219
|
+
stops?: {
|
|
1220
|
+
/**
|
|
1221
|
+
* Stop color as a hex string.
|
|
1222
|
+
*/
|
|
1223
|
+
color: string;
|
|
1224
|
+
/**
|
|
1225
|
+
* Stop position along the gradient, from 0 (start) to 1 (end).
|
|
1226
|
+
*/
|
|
1227
|
+
position: number;
|
|
1228
|
+
[k: string]: unknown;
|
|
1229
|
+
}[];
|
|
1230
|
+
[k: string]: unknown;
|
|
1231
|
+
};
|
|
1232
|
+
/**
|
|
1233
|
+
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1234
|
+
*/
|
|
1235
|
+
opacity?: number;
|
|
1236
|
+
[k: string]: unknown;
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* Fixed image slide background fill.
|
|
1240
|
+
*
|
|
1241
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1242
|
+
* via the `definition` "ImageBackground".
|
|
1243
|
+
*/
|
|
1244
|
+
interface ImageBackground {
|
|
1245
|
+
/**
|
|
1246
|
+
* Fixed image background fill.
|
|
1247
|
+
*/
|
|
1248
|
+
type: "image";
|
|
1249
|
+
/**
|
|
1250
|
+
* Image fill definition.
|
|
1251
|
+
*/
|
|
1252
|
+
image: {
|
|
1253
|
+
/**
|
|
1254
|
+
* Source for the background image.
|
|
1255
|
+
*/
|
|
1256
|
+
src: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* How the image fills the slide background.
|
|
1259
|
+
*/
|
|
1260
|
+
fit?: ("cover" | "contain" | "tile");
|
|
1261
|
+
[k: string]: unknown;
|
|
1262
|
+
};
|
|
1263
|
+
/**
|
|
1264
|
+
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1265
|
+
*/
|
|
1266
|
+
opacity?: number;
|
|
1267
|
+
[k: string]: unknown;
|
|
1268
|
+
}
|
|
1269
|
+
/**
|
|
1270
|
+
* Fixed pattern slide background fill.
|
|
1271
|
+
*
|
|
1272
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1273
|
+
* via the `definition` "PatternBackground".
|
|
1274
|
+
*/
|
|
1275
|
+
interface PatternBackground {
|
|
1276
|
+
/**
|
|
1277
|
+
* Fixed pattern background fill.
|
|
1278
|
+
*/
|
|
1279
|
+
type: "pattern";
|
|
1280
|
+
/**
|
|
1281
|
+
* Pattern fill definition.
|
|
1282
|
+
*/
|
|
1283
|
+
pattern: {
|
|
1284
|
+
/**
|
|
1285
|
+
* Pattern preset or engine-defined pattern id.
|
|
1286
|
+
*/
|
|
1287
|
+
preset: string;
|
|
1288
|
+
/**
|
|
1289
|
+
* Foreground color for the pattern, usually a hex string.
|
|
1290
|
+
*/
|
|
1291
|
+
foregroundColor?: string;
|
|
1292
|
+
/**
|
|
1293
|
+
* Background color behind the pattern, usually a hex string.
|
|
1294
|
+
*/
|
|
1295
|
+
backgroundColor?: string;
|
|
1296
|
+
[k: string]: unknown;
|
|
1297
|
+
};
|
|
1298
|
+
/**
|
|
1299
|
+
* Background opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1300
|
+
*/
|
|
1301
|
+
opacity?: number;
|
|
1302
|
+
[k: string]: unknown;
|
|
1303
|
+
}
|
|
1304
|
+
/**
|
|
1305
|
+
* Slide dimensions; either pick a preset or specify custom inches.
|
|
1306
|
+
*
|
|
1307
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1308
|
+
* via the `definition` "Dimensions".
|
|
1309
|
+
*/
|
|
1310
|
+
interface Dimensions {
|
|
1311
|
+
preset?: DimensionPreset;
|
|
1312
|
+
/**
|
|
1313
|
+
* Custom slide width in inches; overrides the preset width when provided.
|
|
1314
|
+
*/
|
|
1315
|
+
widthInches?: number;
|
|
1316
|
+
/**
|
|
1317
|
+
* Custom slide height in inches; overrides the preset height when provided.
|
|
1318
|
+
*/
|
|
1319
|
+
heightInches?: number;
|
|
1320
|
+
[k: string]: unknown;
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Deck logo variants surfaced by layouts, covers, section dividers, headers, and footers. Organization identity lives in organization; this object only controls visual rendering assets. Renderer convention: on dark backgrounds prefer the 'light' variant, on light backgrounds prefer the 'dark' variant, and in square/vertical slots prefer the stacked family when present.
|
|
1324
|
+
*
|
|
1325
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1326
|
+
* via the `definition` "LogoSet".
|
|
1327
|
+
*/
|
|
1328
|
+
interface LogoSet {
|
|
1329
|
+
/**
|
|
1330
|
+
* 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.
|
|
1331
|
+
*/
|
|
1332
|
+
default?: (string | {
|
|
1333
|
+
/**
|
|
1334
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1335
|
+
*/
|
|
1336
|
+
src: string;
|
|
1337
|
+
/**
|
|
1338
|
+
* Alternative text for images and other visual assets.
|
|
1339
|
+
*/
|
|
1340
|
+
alt?: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1343
|
+
*/
|
|
1344
|
+
title?: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1347
|
+
*/
|
|
1348
|
+
description?: string;
|
|
1349
|
+
/**
|
|
1350
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1351
|
+
*/
|
|
1352
|
+
mediaType?: string;
|
|
1353
|
+
/**
|
|
1354
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1355
|
+
*/
|
|
1356
|
+
format?: string;
|
|
1357
|
+
});
|
|
1358
|
+
/**
|
|
1359
|
+
* 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.
|
|
1360
|
+
*/
|
|
1361
|
+
light?: (string | {
|
|
1362
|
+
/**
|
|
1363
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1364
|
+
*/
|
|
1365
|
+
src: string;
|
|
1366
|
+
/**
|
|
1367
|
+
* Alternative text for images and other visual assets.
|
|
1368
|
+
*/
|
|
1369
|
+
alt?: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1372
|
+
*/
|
|
1373
|
+
title?: string;
|
|
1374
|
+
/**
|
|
1375
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1376
|
+
*/
|
|
1377
|
+
description?: string;
|
|
1378
|
+
/**
|
|
1379
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1380
|
+
*/
|
|
1381
|
+
mediaType?: string;
|
|
1382
|
+
/**
|
|
1383
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1384
|
+
*/
|
|
1385
|
+
format?: string;
|
|
1386
|
+
});
|
|
1387
|
+
/**
|
|
1388
|
+
* 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.
|
|
1389
|
+
*/
|
|
1390
|
+
dark?: (string | {
|
|
1391
|
+
/**
|
|
1392
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1393
|
+
*/
|
|
1394
|
+
src: string;
|
|
1395
|
+
/**
|
|
1396
|
+
* Alternative text for images and other visual assets.
|
|
1397
|
+
*/
|
|
1398
|
+
alt?: string;
|
|
1399
|
+
/**
|
|
1400
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1401
|
+
*/
|
|
1402
|
+
title?: string;
|
|
1403
|
+
/**
|
|
1404
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1405
|
+
*/
|
|
1406
|
+
description?: string;
|
|
1407
|
+
/**
|
|
1408
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1409
|
+
*/
|
|
1410
|
+
mediaType?: string;
|
|
1411
|
+
/**
|
|
1412
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1413
|
+
*/
|
|
1414
|
+
format?: string;
|
|
1415
|
+
});
|
|
1416
|
+
/**
|
|
1417
|
+
* 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.
|
|
1418
|
+
*/
|
|
1419
|
+
stacked?: (string | {
|
|
1420
|
+
/**
|
|
1421
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1422
|
+
*/
|
|
1423
|
+
src: string;
|
|
1424
|
+
/**
|
|
1425
|
+
* Alternative text for images and other visual assets.
|
|
1426
|
+
*/
|
|
1427
|
+
alt?: string;
|
|
1428
|
+
/**
|
|
1429
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1430
|
+
*/
|
|
1431
|
+
title?: string;
|
|
1432
|
+
/**
|
|
1433
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1434
|
+
*/
|
|
1435
|
+
description?: string;
|
|
1436
|
+
/**
|
|
1437
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1438
|
+
*/
|
|
1439
|
+
mediaType?: string;
|
|
1440
|
+
/**
|
|
1441
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1442
|
+
*/
|
|
1443
|
+
format?: string;
|
|
1444
|
+
});
|
|
1445
|
+
/**
|
|
1446
|
+
* 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.
|
|
1447
|
+
*/
|
|
1448
|
+
stackedLight?: (string | {
|
|
1449
|
+
/**
|
|
1450
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1451
|
+
*/
|
|
1452
|
+
src: string;
|
|
1453
|
+
/**
|
|
1454
|
+
* Alternative text for images and other visual assets.
|
|
1455
|
+
*/
|
|
1456
|
+
alt?: string;
|
|
1457
|
+
/**
|
|
1458
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1459
|
+
*/
|
|
1460
|
+
title?: string;
|
|
1461
|
+
/**
|
|
1462
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1463
|
+
*/
|
|
1464
|
+
description?: string;
|
|
1465
|
+
/**
|
|
1466
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1467
|
+
*/
|
|
1468
|
+
mediaType?: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1471
|
+
*/
|
|
1472
|
+
format?: string;
|
|
1473
|
+
});
|
|
1474
|
+
/**
|
|
1475
|
+
* 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.
|
|
1476
|
+
*/
|
|
1477
|
+
stackedDark?: (string | {
|
|
1478
|
+
/**
|
|
1479
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1480
|
+
*/
|
|
1481
|
+
src: string;
|
|
1482
|
+
/**
|
|
1483
|
+
* Alternative text for images and other visual assets.
|
|
1484
|
+
*/
|
|
1485
|
+
alt?: string;
|
|
1486
|
+
/**
|
|
1487
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1488
|
+
*/
|
|
1489
|
+
title?: string;
|
|
1490
|
+
/**
|
|
1491
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1492
|
+
*/
|
|
1493
|
+
description?: string;
|
|
1494
|
+
/**
|
|
1495
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1496
|
+
*/
|
|
1497
|
+
mediaType?: string;
|
|
1498
|
+
/**
|
|
1499
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1500
|
+
*/
|
|
1501
|
+
format?: string;
|
|
1502
|
+
});
|
|
1503
|
+
/**
|
|
1504
|
+
* 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.
|
|
1505
|
+
*/
|
|
1506
|
+
icon?: (string | {
|
|
1507
|
+
/**
|
|
1508
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1509
|
+
*/
|
|
1510
|
+
src: string;
|
|
1511
|
+
/**
|
|
1512
|
+
* Alternative text for images and other visual assets.
|
|
1513
|
+
*/
|
|
1514
|
+
alt?: string;
|
|
1515
|
+
/**
|
|
1516
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1517
|
+
*/
|
|
1518
|
+
title?: string;
|
|
1519
|
+
/**
|
|
1520
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1521
|
+
*/
|
|
1522
|
+
description?: string;
|
|
1523
|
+
/**
|
|
1524
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1525
|
+
*/
|
|
1526
|
+
mediaType?: string;
|
|
1527
|
+
/**
|
|
1528
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1529
|
+
*/
|
|
1530
|
+
format?: string;
|
|
1531
|
+
});
|
|
1532
|
+
/**
|
|
1533
|
+
* 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.
|
|
1534
|
+
*/
|
|
1535
|
+
iconLight?: (string | {
|
|
1536
|
+
/**
|
|
1537
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1538
|
+
*/
|
|
1539
|
+
src: string;
|
|
1540
|
+
/**
|
|
1541
|
+
* Alternative text for images and other visual assets.
|
|
1542
|
+
*/
|
|
1543
|
+
alt?: string;
|
|
1544
|
+
/**
|
|
1545
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1546
|
+
*/
|
|
1547
|
+
title?: string;
|
|
1548
|
+
/**
|
|
1549
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1550
|
+
*/
|
|
1551
|
+
description?: string;
|
|
1552
|
+
/**
|
|
1553
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1554
|
+
*/
|
|
1555
|
+
mediaType?: string;
|
|
1556
|
+
/**
|
|
1557
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1558
|
+
*/
|
|
1559
|
+
format?: string;
|
|
1560
|
+
});
|
|
1561
|
+
/**
|
|
1562
|
+
* 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.
|
|
1563
|
+
*/
|
|
1564
|
+
iconDark?: (string | {
|
|
1565
|
+
/**
|
|
1566
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1567
|
+
*/
|
|
1568
|
+
src: string;
|
|
1569
|
+
/**
|
|
1570
|
+
* Alternative text for images and other visual assets.
|
|
1571
|
+
*/
|
|
1572
|
+
alt?: string;
|
|
1573
|
+
/**
|
|
1574
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1575
|
+
*/
|
|
1576
|
+
title?: string;
|
|
1577
|
+
/**
|
|
1578
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1579
|
+
*/
|
|
1580
|
+
description?: string;
|
|
1581
|
+
/**
|
|
1582
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1583
|
+
*/
|
|
1584
|
+
mediaType?: string;
|
|
1585
|
+
/**
|
|
1586
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1587
|
+
*/
|
|
1588
|
+
format?: string;
|
|
1589
|
+
});
|
|
1590
|
+
/**
|
|
1591
|
+
* 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.
|
|
1592
|
+
*/
|
|
1593
|
+
wordmark?: (string | {
|
|
1594
|
+
/**
|
|
1595
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1596
|
+
*/
|
|
1597
|
+
src: string;
|
|
1598
|
+
/**
|
|
1599
|
+
* Alternative text for images and other visual assets.
|
|
1600
|
+
*/
|
|
1601
|
+
alt?: string;
|
|
1602
|
+
/**
|
|
1603
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1604
|
+
*/
|
|
1605
|
+
title?: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1608
|
+
*/
|
|
1609
|
+
description?: string;
|
|
1610
|
+
/**
|
|
1611
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1612
|
+
*/
|
|
1613
|
+
mediaType?: string;
|
|
1614
|
+
/**
|
|
1615
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1616
|
+
*/
|
|
1617
|
+
format?: string;
|
|
1618
|
+
});
|
|
1619
|
+
/**
|
|
1620
|
+
* 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.
|
|
1621
|
+
*/
|
|
1622
|
+
wordmarkLight?: (string | {
|
|
1623
|
+
/**
|
|
1624
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1625
|
+
*/
|
|
1626
|
+
src: string;
|
|
1627
|
+
/**
|
|
1628
|
+
* Alternative text for images and other visual assets.
|
|
1629
|
+
*/
|
|
1630
|
+
alt?: string;
|
|
1631
|
+
/**
|
|
1632
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1633
|
+
*/
|
|
1634
|
+
title?: string;
|
|
1635
|
+
/**
|
|
1636
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1637
|
+
*/
|
|
1638
|
+
description?: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1641
|
+
*/
|
|
1642
|
+
mediaType?: string;
|
|
1643
|
+
/**
|
|
1644
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1645
|
+
*/
|
|
1646
|
+
format?: string;
|
|
1647
|
+
});
|
|
1648
|
+
/**
|
|
1649
|
+
* 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.
|
|
1650
|
+
*/
|
|
1651
|
+
wordmarkDark?: (string | {
|
|
1652
|
+
/**
|
|
1653
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1654
|
+
*/
|
|
1655
|
+
src: string;
|
|
1656
|
+
/**
|
|
1657
|
+
* Alternative text for images and other visual assets.
|
|
1658
|
+
*/
|
|
1659
|
+
alt?: string;
|
|
1660
|
+
/**
|
|
1661
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1662
|
+
*/
|
|
1663
|
+
title?: string;
|
|
1664
|
+
/**
|
|
1665
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1666
|
+
*/
|
|
1667
|
+
description?: string;
|
|
1668
|
+
/**
|
|
1669
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1670
|
+
*/
|
|
1671
|
+
mediaType?: string;
|
|
1672
|
+
/**
|
|
1673
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1674
|
+
*/
|
|
1675
|
+
format?: string;
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* Decorative watermark image and rendering options. Use design.watermark = false to disable an inherited watermark.
|
|
1680
|
+
*
|
|
1681
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1682
|
+
* via the `definition` "Watermark".
|
|
1683
|
+
*/
|
|
1684
|
+
interface Watermark {
|
|
1685
|
+
/**
|
|
1686
|
+
* Source for the watermark image.
|
|
1687
|
+
*/
|
|
1688
|
+
src?: string;
|
|
1689
|
+
/**
|
|
1690
|
+
* Watermark opacity from 0 (fully transparent) to 1 (fully opaque).
|
|
1691
|
+
*/
|
|
1692
|
+
opacity: number;
|
|
1693
|
+
}
|
|
1694
|
+
/**
|
|
1695
|
+
* Repeated header or footer content split into left, center, and right zones. Header/footer content is slide furniture, separate from the main slide content payloads.
|
|
1696
|
+
*
|
|
1697
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1698
|
+
* via the `definition` "HeaderFooter".
|
|
1699
|
+
*/
|
|
1700
|
+
interface HeaderFooter {
|
|
1701
|
+
left?: HeaderFooterItem;
|
|
1702
|
+
center?: HeaderFooterItem1;
|
|
1703
|
+
right?: HeaderFooterItem2;
|
|
1704
|
+
[k: string]: unknown;
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
* Left-aligned header/footer content.
|
|
1708
|
+
*/
|
|
1709
|
+
interface HeaderFooterItem {
|
|
1710
|
+
/**
|
|
1711
|
+
* Literal text rendered in this zone.
|
|
1712
|
+
*/
|
|
1713
|
+
text?: string;
|
|
1714
|
+
/**
|
|
1715
|
+
* 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.
|
|
1716
|
+
*/
|
|
1717
|
+
image?: (string | {
|
|
1718
|
+
/**
|
|
1719
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1720
|
+
*/
|
|
1721
|
+
src: string;
|
|
1722
|
+
/**
|
|
1723
|
+
* Alternative text for images and other visual assets.
|
|
1724
|
+
*/
|
|
1725
|
+
alt?: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1728
|
+
*/
|
|
1729
|
+
title?: string;
|
|
1730
|
+
/**
|
|
1731
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1732
|
+
*/
|
|
1733
|
+
description?: string;
|
|
1734
|
+
/**
|
|
1735
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1736
|
+
*/
|
|
1737
|
+
mediaType?: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1740
|
+
*/
|
|
1741
|
+
format?: string;
|
|
1742
|
+
});
|
|
1743
|
+
/**
|
|
1744
|
+
* Whether to render the current slide number in this zone.
|
|
1745
|
+
*/
|
|
1746
|
+
slideNumber?: boolean;
|
|
1747
|
+
/**
|
|
1748
|
+
* Whether to render the presentation date, or a literal date string to render.
|
|
1749
|
+
*/
|
|
1750
|
+
date?: (boolean | string);
|
|
1751
|
+
/**
|
|
1752
|
+
* Whether to render the primary organization name from organization.
|
|
1753
|
+
*/
|
|
1754
|
+
organization?: boolean;
|
|
1755
|
+
/**
|
|
1756
|
+
* Whether to render the current slide section label.
|
|
1757
|
+
*/
|
|
1758
|
+
section?: boolean;
|
|
1759
|
+
[k: string]: unknown;
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* Centered header/footer content.
|
|
1763
|
+
*/
|
|
1764
|
+
interface HeaderFooterItem1 {
|
|
1765
|
+
/**
|
|
1766
|
+
* Literal text rendered in this zone.
|
|
1767
|
+
*/
|
|
1768
|
+
text?: string;
|
|
1769
|
+
/**
|
|
1770
|
+
* 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.
|
|
1771
|
+
*/
|
|
1772
|
+
image?: (string | {
|
|
1773
|
+
/**
|
|
1774
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1775
|
+
*/
|
|
1776
|
+
src: string;
|
|
1777
|
+
/**
|
|
1778
|
+
* Alternative text for images and other visual assets.
|
|
1779
|
+
*/
|
|
1780
|
+
alt?: string;
|
|
1781
|
+
/**
|
|
1782
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1783
|
+
*/
|
|
1784
|
+
title?: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1787
|
+
*/
|
|
1788
|
+
description?: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1791
|
+
*/
|
|
1792
|
+
mediaType?: string;
|
|
1793
|
+
/**
|
|
1794
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1795
|
+
*/
|
|
1796
|
+
format?: string;
|
|
1797
|
+
});
|
|
1798
|
+
/**
|
|
1799
|
+
* Whether to render the current slide number in this zone.
|
|
1800
|
+
*/
|
|
1801
|
+
slideNumber?: boolean;
|
|
1802
|
+
/**
|
|
1803
|
+
* Whether to render the presentation date, or a literal date string to render.
|
|
1804
|
+
*/
|
|
1805
|
+
date?: (boolean | string);
|
|
1806
|
+
/**
|
|
1807
|
+
* Whether to render the primary organization name from organization.
|
|
1808
|
+
*/
|
|
1809
|
+
organization?: boolean;
|
|
1810
|
+
/**
|
|
1811
|
+
* Whether to render the current slide section label.
|
|
1812
|
+
*/
|
|
1813
|
+
section?: boolean;
|
|
1814
|
+
[k: string]: unknown;
|
|
1815
|
+
}
|
|
1816
|
+
/**
|
|
1817
|
+
* Right-aligned header/footer content.
|
|
1818
|
+
*/
|
|
1819
|
+
interface HeaderFooterItem2 {
|
|
1820
|
+
/**
|
|
1821
|
+
* Literal text rendered in this zone.
|
|
1822
|
+
*/
|
|
1823
|
+
text?: string;
|
|
1824
|
+
/**
|
|
1825
|
+
* 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.
|
|
1826
|
+
*/
|
|
1827
|
+
image?: (string | {
|
|
1828
|
+
/**
|
|
1829
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
1830
|
+
*/
|
|
1831
|
+
src: string;
|
|
1832
|
+
/**
|
|
1833
|
+
* Alternative text for images and other visual assets.
|
|
1834
|
+
*/
|
|
1835
|
+
alt?: string;
|
|
1836
|
+
/**
|
|
1837
|
+
* Human-readable asset title for editors and asset pickers.
|
|
1838
|
+
*/
|
|
1839
|
+
title?: string;
|
|
1840
|
+
/**
|
|
1841
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
1842
|
+
*/
|
|
1843
|
+
description?: string;
|
|
1844
|
+
/**
|
|
1845
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
1846
|
+
*/
|
|
1847
|
+
mediaType?: string;
|
|
1848
|
+
/**
|
|
1849
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
1850
|
+
*/
|
|
1851
|
+
format?: string;
|
|
1852
|
+
});
|
|
1853
|
+
/**
|
|
1854
|
+
* Whether to render the current slide number in this zone.
|
|
1855
|
+
*/
|
|
1856
|
+
slideNumber?: boolean;
|
|
1857
|
+
/**
|
|
1858
|
+
* Whether to render the presentation date, or a literal date string to render.
|
|
1859
|
+
*/
|
|
1860
|
+
date?: (boolean | string);
|
|
1861
|
+
/**
|
|
1862
|
+
* Whether to render the primary organization name from organization.
|
|
1863
|
+
*/
|
|
1864
|
+
organization?: boolean;
|
|
1865
|
+
/**
|
|
1866
|
+
* Whether to render the current slide section label.
|
|
1867
|
+
*/
|
|
1868
|
+
section?: boolean;
|
|
1869
|
+
[k: string]: unknown;
|
|
1870
|
+
}
|
|
1871
|
+
/**
|
|
1872
|
+
* 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.
|
|
1873
|
+
*
|
|
1874
|
+
* Narrative declares the deck's intended story arc; slides may opt into beats via Slide.beat. The narrative does not constrain slide structure  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.
|
|
1875
|
+
*
|
|
1876
|
+
* When '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.
|
|
1877
|
+
*
|
|
1878
|
+
* Deck-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.
|
|
1879
|
+
*
|
|
1880
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1881
|
+
* via the `definition` "Narrative".
|
|
1882
|
+
*/
|
|
1883
|
+
interface Narrative {
|
|
1884
|
+
/**
|
|
1885
|
+
* 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.
|
|
1886
|
+
*/
|
|
1887
|
+
id?: string;
|
|
1888
|
+
/**
|
|
1889
|
+
* Human-readable narrative name.
|
|
1890
|
+
*/
|
|
1891
|
+
name?: string;
|
|
1892
|
+
/**
|
|
1893
|
+
* One-sentence description of when and why to use this narrative.
|
|
1894
|
+
*/
|
|
1895
|
+
summary?: string;
|
|
1896
|
+
/**
|
|
1897
|
+
* Longer prose describing the narrative arc and ideal use cases. Used by AI-driven generation to seed deck-level direction.
|
|
1898
|
+
*/
|
|
1899
|
+
description?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* Audiences this narrative works well for. Free-form strings or 'audiences' catalog ids.
|
|
1902
|
+
*/
|
|
1903
|
+
audienceFit?: string[];
|
|
1904
|
+
/**
|
|
1905
|
+
* Typical talk-length window this narrative suits. Compared by validators against duration.
|
|
1906
|
+
*/
|
|
1907
|
+
durationRange?: {
|
|
1908
|
+
minMinutes?: number;
|
|
1909
|
+
maxMinutes?: number;
|
|
1910
|
+
[k: string]: unknown;
|
|
1911
|
+
};
|
|
1912
|
+
/**
|
|
1913
|
+
* Free-form labels for filtering and search.
|
|
1914
|
+
*/
|
|
1915
|
+
tags?: string[];
|
|
1916
|
+
/**
|
|
1917
|
+
* Visual previews of the narrative, used by picker UIs and inline rendering. All sub-fields are optional.
|
|
1918
|
+
*/
|
|
1919
|
+
preview?: {
|
|
1920
|
+
/**
|
|
1921
|
+
* Main preview image (PNG/JPG).
|
|
1922
|
+
*/
|
|
1923
|
+
src?: string;
|
|
1924
|
+
/**
|
|
1925
|
+
* Smaller thumbnail preview for dense grid views.
|
|
1926
|
+
*/
|
|
1927
|
+
thumbnailSrc?: string;
|
|
1928
|
+
/**
|
|
1929
|
+
* SVG / vector preview for crisp scaling at any size.
|
|
1930
|
+
*/
|
|
1931
|
+
vectorSrc?: string;
|
|
1932
|
+
[k: string]: unknown;
|
|
1933
|
+
};
|
|
1934
|
+
/**
|
|
1935
|
+
* 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.
|
|
1936
|
+
*/
|
|
1937
|
+
beats?: NarrativeBeat[];
|
|
1938
|
+
[k: string]: unknown;
|
|
1939
|
+
}
|
|
1940
|
+
/**
|
|
1941
|
+
* A single narrative beat — 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.
|
|
1942
|
+
*
|
|
1943
|
+
* Mirrors the Beat definition in narrative.schema.json (https://openpresentation.org/schema/opf-narrative/v1) so library entries and inline OPF beats are interchangeable.
|
|
1944
|
+
*
|
|
1945
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1946
|
+
* via the `definition` "NarrativeBeat".
|
|
1947
|
+
*/
|
|
1948
|
+
interface NarrativeBeat {
|
|
1949
|
+
/**
|
|
1950
|
+
* Stable slug used by Slide.beat to reference this beat. Lowercase kebab-case.
|
|
1951
|
+
*/
|
|
1952
|
+
id: string;
|
|
1953
|
+
/**
|
|
1954
|
+
* Human-readable beat name.
|
|
1955
|
+
*/
|
|
1956
|
+
name: string;
|
|
1957
|
+
/**
|
|
1958
|
+
* Curator-written prose that explains what this beat should accomplish.
|
|
1959
|
+
*/
|
|
1960
|
+
description?: string;
|
|
1961
|
+
/**
|
|
1962
|
+
* Short author-facing instruction for the beat — typically one phrase. Complements 'description' with a concise directive.
|
|
1963
|
+
*/
|
|
1964
|
+
instructions?: string;
|
|
1965
|
+
/**
|
|
1966
|
+
* 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.
|
|
1967
|
+
*/
|
|
1968
|
+
slideCount?: number;
|
|
1969
|
+
/**
|
|
1970
|
+
* Default content kind for the beat's slide. Mirrors ContentPayload.type and helps engines choose a sensible layout when only the beat is specified.
|
|
1971
|
+
*/
|
|
1972
|
+
slideType?: ("text" | "list" | "image" | "chart" | "table" | "video" | "code" | "metric" | "quote" | "timeline");
|
|
1973
|
+
/**
|
|
1974
|
+
* Suggested layout id for the beat's opening slide. Resolves the same way as Slide.layout  against catalogs.layouts and the default catalog at https://www.pptx.gallery/layouts.
|
|
1975
|
+
*/
|
|
1976
|
+
layoutHint?: string;
|
|
1977
|
+
/**
|
|
1978
|
+
* Optional speaker or thinking cues attached to the beat. Surfaced in presenter notes.
|
|
1979
|
+
*/
|
|
1980
|
+
thoughtCues?: string[];
|
|
1981
|
+
[k: string]: unknown;
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* A single slide. Content can be authored as a full-slide root payload, or inside promoted named region keys such as 'left', 'center+right', and 'top:left'.
|
|
1985
|
+
*
|
|
1986
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
1987
|
+
* via the `definition` "Slide".
|
|
1988
|
+
*/
|
|
1989
|
+
interface Slide {
|
|
1990
|
+
/**
|
|
1991
|
+
* Optional stable identifier for the slide within the document. Use when another system needs to reference a slide across edits, comments, generation state, exports, or narrative tooling. Slide order is defined by the slides array, so simple decks may omit this.
|
|
1992
|
+
*/
|
|
1993
|
+
id?: string;
|
|
1994
|
+
/**
|
|
1995
|
+
* Optional full-slide content kind. When omitted, engines infer the kind from root payload fields.
|
|
1996
|
+
*/
|
|
1997
|
+
type?: ("text" | "list" | "image" | "chart" | "table" | "video" | "code" | "metric" | "quote" | "timeline");
|
|
1998
|
+
/**
|
|
1999
|
+
* 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.
|
|
2000
|
+
*/
|
|
2001
|
+
beat?: (string | string[]);
|
|
2002
|
+
/**
|
|
2003
|
+
* 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.
|
|
2004
|
+
*
|
|
2005
|
+
* Resolution order: inline catalogs.layouts.records[] → catalogs.layouts.source → default catalog at https://www.pptx.gallery/layouts.
|
|
2006
|
+
*/
|
|
2007
|
+
layout?: string;
|
|
2008
|
+
/**
|
|
2009
|
+
* Slide-level title content. When the resolved layout exposes a 'title' placeholder, the engine renders this value there.
|
|
2010
|
+
*/
|
|
2011
|
+
title?: string;
|
|
2012
|
+
/**
|
|
2013
|
+
* Slide-level subtitle or supporting line. When the resolved layout exposes a 'subtitle' placeholder, the engine renders this value there.
|
|
2014
|
+
*/
|
|
2015
|
+
subtitle?: string;
|
|
2016
|
+
/**
|
|
2017
|
+
* Small slide-level label or badge. When the resolved layout exposes a 'tag' placeholder, the engine renders this value there.
|
|
2018
|
+
*/
|
|
2019
|
+
tag?: string;
|
|
2020
|
+
/**
|
|
2021
|
+
* Full-slide text payload. Use a string for plain text or TextRun[] for inline rich text. TextRun items may be plain strings or formatted run objects.
|
|
2022
|
+
*/
|
|
2023
|
+
text?: (string | TextRun[]);
|
|
2024
|
+
/**
|
|
2025
|
+
* Full-slide generic list payload. Presence of this field infers type 'list'.
|
|
2026
|
+
*/
|
|
2027
|
+
items?: ListItem[];
|
|
2028
|
+
/**
|
|
2029
|
+
* Full-slide text-style bullet payload. Presence of this field infers type 'text'.
|
|
2030
|
+
*/
|
|
2031
|
+
bullets?: BulletItem[];
|
|
2032
|
+
/**
|
|
2033
|
+
* 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.
|
|
2034
|
+
*/
|
|
2035
|
+
image?: (string | {
|
|
2036
|
+
/**
|
|
2037
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
2038
|
+
*/
|
|
2039
|
+
src: string;
|
|
2040
|
+
/**
|
|
2041
|
+
* Alternative text for images and other visual assets.
|
|
2042
|
+
*/
|
|
2043
|
+
alt?: string;
|
|
2044
|
+
/**
|
|
2045
|
+
* Human-readable asset title for editors and asset pickers.
|
|
2046
|
+
*/
|
|
2047
|
+
title?: string;
|
|
2048
|
+
/**
|
|
2049
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
2050
|
+
*/
|
|
2051
|
+
description?: string;
|
|
2052
|
+
/**
|
|
2053
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
2054
|
+
*/
|
|
2055
|
+
mediaType?: string;
|
|
2056
|
+
/**
|
|
2057
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
2058
|
+
*/
|
|
2059
|
+
format?: string;
|
|
2060
|
+
});
|
|
2061
|
+
/**
|
|
2062
|
+
* 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.
|
|
2063
|
+
*/
|
|
2064
|
+
video?: (string | {
|
|
2065
|
+
/**
|
|
2066
|
+
* Resource source. Accepts an 'asset:<id>' reference, HTTPS URL, data URI, relative path resolved against the OPF file location, or local filesystem path.
|
|
2067
|
+
*/
|
|
2068
|
+
src: string;
|
|
2069
|
+
/**
|
|
2070
|
+
* Alternative text for images and other visual assets.
|
|
2071
|
+
*/
|
|
2072
|
+
alt?: string;
|
|
2073
|
+
/**
|
|
2074
|
+
* Human-readable asset title for editors and asset pickers.
|
|
2075
|
+
*/
|
|
2076
|
+
title?: string;
|
|
2077
|
+
/**
|
|
2078
|
+
* Optional notes about the asset's contents, provenance, or intended use.
|
|
2079
|
+
*/
|
|
2080
|
+
description?: string;
|
|
2081
|
+
/**
|
|
2082
|
+
* Optional MIME media type when it cannot be inferred from src.
|
|
2083
|
+
*/
|
|
2084
|
+
mediaType?: string;
|
|
2085
|
+
/**
|
|
2086
|
+
* Optional authoring/parsing format hint. Useful when format is more convenient than a full MIME media type.
|
|
2087
|
+
*/
|
|
2088
|
+
format?: string;
|
|
2089
|
+
});
|
|
2090
|
+
chart?: Chart;
|
|
2091
|
+
table?: Table;
|
|
2092
|
+
/**
|
|
2093
|
+
* Full-slide code payload. A string is shorthand for { "source": value }; object form carries optional syntax language and filename metadata.
|
|
2094
|
+
*/
|
|
2095
|
+
code?: (string | Code);
|
|
2096
|
+
/**
|
|
2097
|
+
* 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'.
|
|
2098
|
+
*/
|
|
2099
|
+
metric?: (string | number | Metric);
|
|
2100
|
+
/**
|
|
2101
|
+
* Full-slide quote payload. A string is shorthand for { "text": value }; object form carries optional attribution and source metadata. Presence of this field infers type 'quote'.
|
|
2102
|
+
*/
|
|
2103
|
+
quote?: (string | Quote);
|
|
2104
|
+
/**
|
|
2105
|
+
* Full-slide timeline payload. An array is shorthand for { "events": value }; object form carries optional name and description metadata. Presence of this field infers type 'timeline'.
|
|
2106
|
+
*/
|
|
2107
|
+
timeline?: ([TimelineEvent, ...(TimelineEvent)[]] | {
|
|
2108
|
+
/**
|
|
2109
|
+
* Short timeline label.
|
|
2110
|
+
*/
|
|
2111
|
+
name?: string;
|
|
2112
|
+
/**
|
|
2113
|
+
* Optional timeline-level context.
|
|
2114
|
+
*/
|
|
2115
|
+
description?: string;
|
|
2116
|
+
/**
|
|
2117
|
+
* Timeline events ordered by narrative, sequence, or chronology.
|
|
2118
|
+
*
|
|
2119
|
+
* @minItems 1
|
|
2120
|
+
*/
|
|
2121
|
+
events: [TimelineEvent, ...(TimelineEvent)[]];
|
|
2122
|
+
});
|
|
2123
|
+
/**
|
|
2124
|
+
* Layout-agnostic content blocks rendered together as a composed payload when exact placement is unspecified.
|
|
2125
|
+
*/
|
|
2126
|
+
blocks?: ContentPayload[];
|
|
2127
|
+
design?: Design1;
|
|
2128
|
+
left?: ContentPayload;
|
|
2129
|
+
center?: ContentPayload;
|
|
2130
|
+
right?: ContentPayload;
|
|
2131
|
+
"left+center"?: ContentPayload;
|
|
2132
|
+
"center+right"?: ContentPayload;
|
|
2133
|
+
"left+center+right"?: ContentPayload;
|
|
2134
|
+
top?: ContentPayload;
|
|
2135
|
+
middle?: ContentPayload;
|
|
2136
|
+
bottom?: ContentPayload;
|
|
2137
|
+
"top+middle"?: ContentPayload;
|
|
2138
|
+
"middle+bottom"?: ContentPayload;
|
|
2139
|
+
"top+middle+bottom"?: ContentPayload;
|
|
2140
|
+
"top:left"?: ContentPayload;
|
|
2141
|
+
"top:center"?: ContentPayload;
|
|
2142
|
+
"top:right"?: ContentPayload;
|
|
2143
|
+
"top:left+center"?: ContentPayload;
|
|
2144
|
+
"top:center+right"?: ContentPayload;
|
|
2145
|
+
"top:left+center+right"?: ContentPayload;
|
|
2146
|
+
"middle:left"?: ContentPayload;
|
|
2147
|
+
"middle:center"?: ContentPayload;
|
|
2148
|
+
"middle:right"?: ContentPayload;
|
|
2149
|
+
"middle:left+center"?: ContentPayload;
|
|
2150
|
+
"middle:center+right"?: ContentPayload;
|
|
2151
|
+
"middle:left+center+right"?: ContentPayload;
|
|
2152
|
+
"bottom:left"?: ContentPayload;
|
|
2153
|
+
"bottom:center"?: ContentPayload;
|
|
2154
|
+
"bottom:right"?: ContentPayload;
|
|
2155
|
+
"bottom:left+center"?: ContentPayload;
|
|
2156
|
+
"bottom:center+right"?: ContentPayload;
|
|
2157
|
+
"bottom:left+center+right"?: ContentPayload;
|
|
2158
|
+
"top+middle:left"?: ContentPayload;
|
|
2159
|
+
"top+middle:center"?: ContentPayload;
|
|
2160
|
+
"top+middle:right"?: ContentPayload;
|
|
2161
|
+
"top+middle:left+center"?: ContentPayload;
|
|
2162
|
+
"top+middle:center+right"?: ContentPayload;
|
|
2163
|
+
"top+middle:left+center+right"?: ContentPayload;
|
|
2164
|
+
"middle+bottom:left"?: ContentPayload;
|
|
2165
|
+
"middle+bottom:center"?: ContentPayload;
|
|
2166
|
+
"middle+bottom:right"?: ContentPayload;
|
|
2167
|
+
"middle+bottom:left+center"?: ContentPayload;
|
|
2168
|
+
"middle+bottom:center+right"?: ContentPayload;
|
|
2169
|
+
"middle+bottom:left+center+right"?: ContentPayload;
|
|
2170
|
+
"top+middle+bottom:left"?: ContentPayload;
|
|
2171
|
+
"top+middle+bottom:center"?: ContentPayload;
|
|
2172
|
+
"top+middle+bottom:right"?: ContentPayload;
|
|
2173
|
+
"top+middle+bottom:left+center"?: ContentPayload;
|
|
2174
|
+
"top+middle+bottom:center+right"?: ContentPayload;
|
|
2175
|
+
"top+middle+bottom:left+center+right"?: ContentPayload;
|
|
2176
|
+
/**
|
|
2177
|
+
* Speaker notes shown in presenter view.
|
|
2178
|
+
*/
|
|
2179
|
+
notes?: string;
|
|
2180
|
+
/**
|
|
2181
|
+
* PowerPoint-style slide section label. Consecutive slides with the same value belong to the same section in presenter view, outlines, and PowerPoint section-aware exports.
|
|
2182
|
+
*/
|
|
2183
|
+
section?: string;
|
|
2184
|
+
/**
|
|
2185
|
+
* Whether the slide is hidden from the presented sequence.
|
|
2186
|
+
*/
|
|
2187
|
+
hidden?: boolean;
|
|
2188
|
+
}
|
|
2189
|
+
/**
|
|
2190
|
+
* Full-slide chart payload. Presence of this field infers type 'chart'.
|
|
2191
|
+
*/
|
|
2192
|
+
interface Chart {
|
|
2193
|
+
/**
|
|
2194
|
+
* 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.
|
|
2195
|
+
*/
|
|
2196
|
+
type: string;
|
|
2197
|
+
/**
|
|
2198
|
+
* Chart data. Inline data uses a tabular columns/rows shape; renderers convert rows to chart series internally.
|
|
2199
|
+
*/
|
|
2200
|
+
data: (ChartData | ChartDataSource);
|
|
2201
|
+
}
|
|
2202
|
+
/**
|
|
2203
|
+
* 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.
|
|
2204
|
+
*
|
|
2205
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2206
|
+
* via the `definition` "ChartData".
|
|
2207
|
+
*/
|
|
2208
|
+
interface ChartData {
|
|
2209
|
+
/**
|
|
2210
|
+
* Ordered column labels for the chart data table.
|
|
2211
|
+
*
|
|
2212
|
+
* @minItems 1
|
|
2213
|
+
*/
|
|
2214
|
+
columns: [string, ...(string)[]];
|
|
2215
|
+
/**
|
|
2216
|
+
* Tabular chart rows. Each row aligns by index with columns.
|
|
2217
|
+
*
|
|
2218
|
+
* @minItems 1
|
|
2219
|
+
*/
|
|
2220
|
+
rows: [ChartDataCell[], ...(ChartDataCell[])[]];
|
|
2221
|
+
}
|
|
2222
|
+
/**
|
|
2223
|
+
* 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.
|
|
2224
|
+
*
|
|
2225
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2226
|
+
* via the `definition` "ChartDataSource".
|
|
2227
|
+
*/
|
|
2228
|
+
interface ChartDataSource {
|
|
2229
|
+
/**
|
|
2230
|
+
* 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.
|
|
2231
|
+
*/
|
|
2232
|
+
src: string;
|
|
2233
|
+
/**
|
|
2234
|
+
* Optional sheet name or table name for spreadsheet-like assets.
|
|
2235
|
+
*/
|
|
2236
|
+
sheet?: string;
|
|
2237
|
+
/**
|
|
2238
|
+
* Optional A1-style range or engine-defined range selector for spreadsheet-like assets.
|
|
2239
|
+
*/
|
|
2240
|
+
range?: string;
|
|
2241
|
+
/**
|
|
2242
|
+
* Optional ordered columns or fields to read from the source. When omitted, renderers may use the source's own header row or schema.
|
|
2243
|
+
*/
|
|
2244
|
+
columns?: string[];
|
|
2245
|
+
}
|
|
2246
|
+
/**
|
|
2247
|
+
* Full-slide table payload. Presence of this field infers type 'table'.
|
|
2248
|
+
*/
|
|
2249
|
+
interface Table {
|
|
2250
|
+
/**
|
|
2251
|
+
* Optional column labels rendered above table rows.
|
|
2252
|
+
*/
|
|
2253
|
+
columns?: string[];
|
|
2254
|
+
/**
|
|
2255
|
+
* Two-dimensional table row data; each row aligns by index with columns when columns are supplied.
|
|
2256
|
+
*/
|
|
2257
|
+
rows: TableCell[][];
|
|
2258
|
+
}
|
|
2259
|
+
/**
|
|
2260
|
+
* 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 }.
|
|
2261
|
+
*
|
|
2262
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2263
|
+
* via the `definition` "Code".
|
|
2264
|
+
*/
|
|
2265
|
+
interface Code {
|
|
2266
|
+
/**
|
|
2267
|
+
* Source code text to display.
|
|
2268
|
+
*/
|
|
2269
|
+
source: string;
|
|
2270
|
+
/**
|
|
2271
|
+
* Language identifier used for syntax highlighting.
|
|
2272
|
+
*/
|
|
2273
|
+
language?: string;
|
|
2274
|
+
/**
|
|
2275
|
+
* Optional file label shown with the code block.
|
|
2276
|
+
*/
|
|
2277
|
+
filename?: string;
|
|
2278
|
+
}
|
|
2279
|
+
/**
|
|
2280
|
+
* 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.
|
|
2281
|
+
*
|
|
2282
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2283
|
+
* via the `definition` "Metric".
|
|
2284
|
+
*/
|
|
2285
|
+
interface Metric {
|
|
2286
|
+
/**
|
|
2287
|
+
* Primary metric value.
|
|
2288
|
+
*/
|
|
2289
|
+
value: (string | number);
|
|
2290
|
+
/**
|
|
2291
|
+
* Metric label.
|
|
2292
|
+
*/
|
|
2293
|
+
label?: string;
|
|
2294
|
+
/**
|
|
2295
|
+
* Optional supporting context for the metric.
|
|
2296
|
+
*/
|
|
2297
|
+
description?: string;
|
|
2298
|
+
/**
|
|
2299
|
+
* Metric unit, suffix, or currency marker.
|
|
2300
|
+
*/
|
|
2301
|
+
unit?: string;
|
|
2302
|
+
/**
|
|
2303
|
+
* Metric change value.
|
|
2304
|
+
*/
|
|
2305
|
+
delta?: (string | number);
|
|
2306
|
+
/**
|
|
2307
|
+
* Metric trend direction.
|
|
2308
|
+
*/
|
|
2309
|
+
trend?: ("up" | "down" | "flat");
|
|
2310
|
+
}
|
|
2311
|
+
/**
|
|
2312
|
+
* 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 }.
|
|
2313
|
+
*
|
|
2314
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2315
|
+
* via the `definition` "Quote".
|
|
2316
|
+
*/
|
|
2317
|
+
interface Quote {
|
|
2318
|
+
/**
|
|
2319
|
+
* Quoted text.
|
|
2320
|
+
*/
|
|
2321
|
+
text: string;
|
|
2322
|
+
/**
|
|
2323
|
+
* Person or organization credited for the quote.
|
|
2324
|
+
*/
|
|
2325
|
+
attribution?: string;
|
|
2326
|
+
/**
|
|
2327
|
+
* Optional quote source, citation, or URL.
|
|
2328
|
+
*/
|
|
2329
|
+
source?: string;
|
|
2330
|
+
}
|
|
2331
|
+
/**
|
|
2332
|
+
* A single event inside a timeline content payload.
|
|
2333
|
+
*
|
|
2334
|
+
* This interface was referenced by `Presentation`'s JSON-Schema
|
|
2335
|
+
* via the `definition` "TimelineEvent".
|
|
2336
|
+
*/
|
|
2337
|
+
interface TimelineEvent {
|
|
2338
|
+
/**
|
|
2339
|
+
* Event time, date, or sequence label. Use ISO-like values when possible, but human labels are allowed for quarters, eras, and relative milestones.
|
|
2340
|
+
*/
|
|
2341
|
+
when?: string;
|
|
2342
|
+
/**
|
|
2343
|
+
* Short event label.
|
|
2344
|
+
*/
|
|
2345
|
+
what: string;
|
|
2346
|
+
/**
|
|
2347
|
+
* Optional event detail.
|
|
2348
|
+
*/
|
|
2349
|
+
description?: string;
|
|
2350
|
+
}
|
|
2351
|
+
/**
|
|
2352
|
+
* Chart payload. Presence of this field infers type 'chart'.
|
|
2353
|
+
*/
|
|
2354
|
+
interface Chart1 {
|
|
2355
|
+
/**
|
|
2356
|
+
* 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.
|
|
2357
|
+
*/
|
|
2358
|
+
type: string;
|
|
2359
|
+
/**
|
|
2360
|
+
* Chart data. Inline data uses a tabular columns/rows shape; renderers convert rows to chart series internally.
|
|
2361
|
+
*/
|
|
2362
|
+
data: (ChartData | ChartDataSource);
|
|
2363
|
+
}
|
|
2364
|
+
/**
|
|
2365
|
+
* Table payload. Presence of this field infers type 'table'.
|
|
2366
|
+
*/
|
|
2367
|
+
interface Table1 {
|
|
2368
|
+
/**
|
|
2369
|
+
* Optional column labels rendered above table rows.
|
|
2370
|
+
*/
|
|
2371
|
+
columns?: string[];
|
|
2372
|
+
/**
|
|
2373
|
+
* Two-dimensional table row data; each row aligns by index with columns when columns are supplied.
|
|
2374
|
+
*/
|
|
2375
|
+
rows: TableCell[][];
|
|
2376
|
+
}
|
|
2377
|
+
/**
|
|
2378
|
+
* Slide-level design applied on top of the deck-wide design.
|
|
2379
|
+
*/
|
|
2380
|
+
interface Design1 {
|
|
2381
|
+
/**
|
|
2382
|
+
* Theme for the deck. Accepts two forms:
|
|
2383
|
+
* - String shorthand: 'design.theme = "minimal"'. Bare id, HTTPS URL, or 'pkg:' reference resolved as the 'id' of a 'themes' catalog record.
|
|
2384
|
+
* - Object form: a Theme with an optional 'id' base reference plus theme-level overrides.
|
|
2385
|
+
*
|
|
2386
|
+
* Inline overrides on design.colorScheme / design.fontScheme / design.background / design.dimensions take precedence over the resolved theme.
|
|
2387
|
+
*
|
|
2388
|
+
* Resolution order: inline catalogs.themes.records[] -> catalogs.themes.source -> default catalog at https://www.pptx.gallery/themes.
|
|
2389
|
+
*/
|
|
2390
|
+
theme?: (string | Theme);
|
|
2391
|
+
/**
|
|
2392
|
+
* Color scheme for the presentation. Accepts two forms:
|
|
2393
|
+
* - String shorthand: 'design.colorScheme = "cool-horizon"'. Bare id, HTTPS URL, or 'pkg:' reference resolved as the 'id' of a 'colorSchemes' catalog record.
|
|
2394
|
+
* - Object form: a ColorScheme with an optional 'id' base reference plus slot/role overrides.
|
|
2395
|
+
*
|
|
2396
|
+
* Resolution order: inline catalogs.colorSchemes.records[] -> catalogs.colorSchemes.source -> default catalog at https://www.pptx.gallery/color-schemes.
|
|
2397
|
+
*/
|
|
2398
|
+
colorScheme?: (string | ColorScheme);
|
|
2399
|
+
/**
|
|
2400
|
+
* Font scheme for heading, body, accent, and code text. Accepts two forms:
|
|
2401
|
+
* - String shorthand: 'design.fontScheme = "aptos"'. Bare id, HTTPS URL, or 'pkg:' reference resolved as the 'id' of a 'fontSchemes' catalog record.
|
|
2402
|
+
* - Object form: a FontScheme with an optional 'id' base reference plus pair/role overrides.
|
|
2403
|
+
*
|
|
2404
|
+
* Resolution order: inline catalogs.fontSchemes.records[] -> catalogs.fontSchemes.source -> default catalog at https://www.pptx.gallery/font-schemes.
|
|
2405
|
+
*/
|
|
2406
|
+
fontScheme?: (string | FontScheme);
|
|
2407
|
+
/**
|
|
2408
|
+
* Slide dimensions and aspect ratio. String shorthand such as 'widescreen' is equivalent to { preset: 'widescreen' }.
|
|
2409
|
+
*/
|
|
2410
|
+
dimensions?: (DimensionPreset | Dimensions);
|
|
2411
|
+
/**
|
|
2412
|
+
* Default slide background applied across the deck unless overridden on a slide. String shorthand accepts theme slots ('light1', 'light2', 'dark1', 'dark2') or hex colors; object forms support theme, solid, gradient, image, or pattern fills.
|
|
2413
|
+
*/
|
|
2414
|
+
background?: (BackgroundShortcut | Background);
|
|
2415
|
+
/**
|
|
2416
|
+
* Deck logo assets used by layouts, covers, section dividers, headers, and footers. A string is the default logo source; object form provides light/dark, stacked, icon, and wordmark variants. When omitted, the renderer falls back to the primary organization logo.
|
|
2417
|
+
*/
|
|
2418
|
+
logo?: (Asset | LogoSet);
|
|
2419
|
+
/**
|
|
2420
|
+
* Optional decorative watermark applied across slides. Use false to suppress an inherited watermark in slide-level design; a string is equivalent to { src: value }.
|
|
2421
|
+
*/
|
|
2422
|
+
watermark?: (false | Asset | Watermark);
|
|
2423
|
+
/**
|
|
2424
|
+
* Repeated header furniture rendered outside the main slide content. Use false to suppress an inherited header.
|
|
2425
|
+
*/
|
|
2426
|
+
header?: (false | HeaderFooter);
|
|
2427
|
+
/**
|
|
2428
|
+
* Repeated footer furniture rendered outside the main slide content. Use false to suppress an inherited footer.
|
|
2429
|
+
*/
|
|
2430
|
+
footer?: (false | HeaderFooter);
|
|
2431
|
+
/**
|
|
2432
|
+
* Default horizontal alignment for title placeholders in resolved layouts.
|
|
2433
|
+
*/
|
|
2434
|
+
titleAlignment?: ("left" | "center" | "right");
|
|
2435
|
+
/**
|
|
2436
|
+
* Default horizontal alignment for body/content regions in resolved layouts.
|
|
2437
|
+
*/
|
|
2438
|
+
contentAlignment?: ("left" | "center" | "right");
|
|
2439
|
+
/**
|
|
2440
|
+
* Whether body/content regions are rendered inside a visible card or surface.
|
|
2441
|
+
*/
|
|
2442
|
+
contentBox?: boolean;
|
|
2443
|
+
/**
|
|
2444
|
+
* Optional slide-level image treatment used by layouts that support a decorative or editorial image separate from content images.
|
|
2445
|
+
*/
|
|
2446
|
+
slideImage?: (Asset | {
|
|
2447
|
+
/**
|
|
2448
|
+
* Source for the slide-level image. When omitted in a design override, the object only configures how a slide-level image should be placed when one is supplied by a content payload, asset, or renderer convention.
|
|
2449
|
+
*/
|
|
2450
|
+
src?: string;
|
|
2451
|
+
/**
|
|
2452
|
+
* Where the slide-level image sits relative to the content. 'background' is a full-bleed image behind the content.
|
|
2453
|
+
*/
|
|
2454
|
+
position: ("background" | "top" | "bottom" | "left" | "right");
|
|
2455
|
+
});
|
|
2456
|
+
/**
|
|
2457
|
+
* Axis along which parallel body/content regions are arranged.
|
|
2458
|
+
*/
|
|
2459
|
+
contentDirection?: ("horizontal" | "vertical");
|
|
2460
|
+
/**
|
|
2461
|
+
* For chart layouts, where the primary chart sits relative to supporting content. 'none' means chart regions have equal weight.
|
|
2462
|
+
*/
|
|
2463
|
+
chartPrimary?: ("none" | "top" | "bottom" | "left" | "right");
|
|
2464
|
+
/**
|
|
2465
|
+
* How picture placeholders fill their allocated region.
|
|
2466
|
+
*/
|
|
2467
|
+
imageFill?: ("crop" | "fit");
|
|
2468
|
+
/**
|
|
2469
|
+
* Default bullet rendering style for list layouts.
|
|
2470
|
+
*/
|
|
2471
|
+
listBullet?: ("character" | "image");
|
|
2472
|
+
[k: string]: unknown;
|
|
2473
|
+
}
|
|
2474
|
+
/**
|
|
2475
|
+
* Optional reusable asset registry for images, data files, videos, documents, fonts, and other resources referenced elsewhere in the deck via 'asset:<id>' strings.
|
|
2476
|
+
*/
|
|
2477
|
+
interface Assets {
|
|
2478
|
+
[k: string]: Asset;
|
|
2479
|
+
}
|
|
2480
|
+
/**
|
|
2481
|
+
* Optional per-kind catalog overrides. Each kind may declare a non-default 'source' and/or inline 'records' that override or supplement the default catalog at https://www.pptx.gallery/<kind>. References elsewhere in the document (e.g. design.theme, narrative) resolve through this section before falling back to the default catalog.
|
|
2482
|
+
*/
|
|
2483
|
+
interface Catalogs {
|
|
2484
|
+
narratives?: CatalogEntry;
|
|
2485
|
+
themes?: CatalogEntry1;
|
|
2486
|
+
colorSchemes?: CatalogEntry2;
|
|
2487
|
+
fontSchemes?: CatalogEntry3;
|
|
2488
|
+
languages?: CatalogEntry4;
|
|
2489
|
+
layouts?: CatalogEntry5;
|
|
2490
|
+
chartTypes?: CatalogEntry6;
|
|
2491
|
+
tones?: CatalogEntry7;
|
|
2492
|
+
purposes?: CatalogEntry8;
|
|
2493
|
+
audiences?: CatalogEntry9;
|
|
2494
|
+
socialPlatforms?: CatalogEntry10;
|
|
2495
|
+
[k: string]: unknown;
|
|
2496
|
+
}
|
|
2497
|
+
/**
|
|
2498
|
+
* Catalog of narrative templates. Records validate against https://openpresentation.org/schema/opf-narrative/v1. Default source: https://www.pptx.gallery/narratives.
|
|
2499
|
+
*/
|
|
2500
|
+
interface CatalogEntry {
|
|
2501
|
+
/**
|
|
2502
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to https://www.pptx.gallery/<kind>.
|
|
2503
|
+
*/
|
|
2504
|
+
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
2505
|
+
/**
|
|
2506
|
+
* Inline catalog records embedded in this OPF document. Each record validates against the kind's companion schema (e.g. https://openpresentation.org/schema/opf-narrative/v1 for narratives). Inline records win over anything resolved from 'source' and over the default catalog.
|
|
2507
|
+
*/
|
|
2508
|
+
records?: {
|
|
2509
|
+
[k: string]: unknown;
|
|
2510
|
+
}[];
|
|
2511
|
+
[k: string]: unknown;
|
|
2512
|
+
}
|
|
2513
|
+
/**
|
|
2514
|
+
* Catalog of themes. Records validate against https://openpresentation.org/schema/opf-theme/v1. Default source: https://www.pptx.gallery/themes.
|
|
2515
|
+
*/
|
|
2516
|
+
interface CatalogEntry1 {
|
|
2517
|
+
/**
|
|
2518
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to https://www.pptx.gallery/<kind>.
|
|
2519
|
+
*/
|
|
2520
|
+
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
2521
|
+
/**
|
|
2522
|
+
* Inline catalog records embedded in this OPF document. Each record validates against the kind's companion schema (e.g. https://openpresentation.org/schema/opf-narrative/v1 for narratives). Inline records win over anything resolved from 'source' and over the default catalog.
|
|
2523
|
+
*/
|
|
2524
|
+
records?: {
|
|
2525
|
+
[k: string]: unknown;
|
|
2526
|
+
}[];
|
|
2527
|
+
[k: string]: unknown;
|
|
2528
|
+
}
|
|
2529
|
+
/**
|
|
2530
|
+
* Catalog of color schemes. Records validate against https://openpresentation.org/schema/opf-color-scheme/v1. Default source: https://www.pptx.gallery/color-schemes.
|
|
2531
|
+
*/
|
|
2532
|
+
interface CatalogEntry2 {
|
|
2533
|
+
/**
|
|
2534
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to https://www.pptx.gallery/<kind>.
|
|
2535
|
+
*/
|
|
2536
|
+
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
2537
|
+
/**
|
|
2538
|
+
* Inline catalog records embedded in this OPF document. Each record validates against the kind's companion schema (e.g. https://openpresentation.org/schema/opf-narrative/v1 for narratives). Inline records win over anything resolved from 'source' and over the default catalog.
|
|
2539
|
+
*/
|
|
2540
|
+
records?: {
|
|
2541
|
+
[k: string]: unknown;
|
|
2542
|
+
}[];
|
|
2543
|
+
[k: string]: unknown;
|
|
2544
|
+
}
|
|
2545
|
+
/**
|
|
2546
|
+
* Catalog of font schemes. Records validate against https://openpresentation.org/schema/opf-font-scheme/v1. Default source: https://www.pptx.gallery/font-schemes.
|
|
2547
|
+
*/
|
|
2548
|
+
interface CatalogEntry3 {
|
|
2549
|
+
/**
|
|
2550
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to https://www.pptx.gallery/<kind>.
|
|
2551
|
+
*/
|
|
2552
|
+
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
2553
|
+
/**
|
|
2554
|
+
* Inline catalog records embedded in this OPF document. Each record validates against the kind's companion schema (e.g. https://openpresentation.org/schema/opf-narrative/v1 for narratives). Inline records win over anything resolved from 'source' and over the default catalog.
|
|
2555
|
+
*/
|
|
2556
|
+
records?: {
|
|
2557
|
+
[k: string]: unknown;
|
|
2558
|
+
}[];
|
|
2559
|
+
[k: string]: unknown;
|
|
2560
|
+
}
|
|
2561
|
+
/**
|
|
2562
|
+
* Catalog of languages. Records validate against https://openpresentation.org/schema/opf-language/v1. Default source: https://www.pptx.gallery/languages.
|
|
2563
|
+
*/
|
|
2564
|
+
interface CatalogEntry4 {
|
|
2565
|
+
/**
|
|
2566
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to https://www.pptx.gallery/<kind>.
|
|
2567
|
+
*/
|
|
2568
|
+
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
2569
|
+
/**
|
|
2570
|
+
* Inline catalog records embedded in this OPF document. Each record validates against the kind's companion schema (e.g. https://openpresentation.org/schema/opf-narrative/v1 for narratives). Inline records win over anything resolved from 'source' and over the default catalog.
|
|
2571
|
+
*/
|
|
2572
|
+
records?: {
|
|
2573
|
+
[k: string]: unknown;
|
|
2574
|
+
}[];
|
|
2575
|
+
[k: string]: unknown;
|
|
2576
|
+
}
|
|
2577
|
+
/**
|
|
2578
|
+
* Catalog of slide layouts. Records validate against https://openpresentation.org/schema/opf-layout/v1. Default source: https://www.pptx.gallery/layouts.
|
|
2579
|
+
*/
|
|
2580
|
+
interface CatalogEntry5 {
|
|
2581
|
+
/**
|
|
2582
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to https://www.pptx.gallery/<kind>.
|
|
2583
|
+
*/
|
|
2584
|
+
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
2585
|
+
/**
|
|
2586
|
+
* Inline catalog records embedded in this OPF document. Each record validates against the kind's companion schema (e.g. https://openpresentation.org/schema/opf-narrative/v1 for narratives). Inline records win over anything resolved from 'source' and over the default catalog.
|
|
2587
|
+
*/
|
|
2588
|
+
records?: {
|
|
2589
|
+
[k: string]: unknown;
|
|
2590
|
+
}[];
|
|
2591
|
+
[k: string]: unknown;
|
|
2592
|
+
}
|
|
2593
|
+
/**
|
|
2594
|
+
* Catalog of chart types. Records validate against https://openpresentation.org/schema/opf-chart-type/v1. Default source: https://www.pptx.gallery/chart-types.
|
|
2595
|
+
*/
|
|
2596
|
+
interface CatalogEntry6 {
|
|
2597
|
+
/**
|
|
2598
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to https://www.pptx.gallery/<kind>.
|
|
2599
|
+
*/
|
|
2600
|
+
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
2601
|
+
/**
|
|
2602
|
+
* Inline catalog records embedded in this OPF document. Each record validates against the kind's companion schema (e.g. https://openpresentation.org/schema/opf-narrative/v1 for narratives). Inline records win over anything resolved from 'source' and over the default catalog.
|
|
2603
|
+
*/
|
|
2604
|
+
records?: {
|
|
2605
|
+
[k: string]: unknown;
|
|
2606
|
+
}[];
|
|
2607
|
+
[k: string]: unknown;
|
|
2608
|
+
}
|
|
2609
|
+
/**
|
|
2610
|
+
* Catalog of presentation tones. Records validate against https://openpresentation.org/schema/opf-tone/v1. Default source: https://www.pptx.gallery/tones. Referenced from tone.
|
|
2611
|
+
*/
|
|
2612
|
+
interface CatalogEntry7 {
|
|
2613
|
+
/**
|
|
2614
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to https://www.pptx.gallery/<kind>.
|
|
2615
|
+
*/
|
|
2616
|
+
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
2617
|
+
/**
|
|
2618
|
+
* Inline catalog records embedded in this OPF document. Each record validates against the kind's companion schema (e.g. https://openpresentation.org/schema/opf-narrative/v1 for narratives). Inline records win over anything resolved from 'source' and over the default catalog.
|
|
2619
|
+
*/
|
|
2620
|
+
records?: {
|
|
2621
|
+
[k: string]: unknown;
|
|
2622
|
+
}[];
|
|
2623
|
+
[k: string]: unknown;
|
|
2624
|
+
}
|
|
2625
|
+
/**
|
|
2626
|
+
* Catalog of presentation purposes. Records validate against https://openpresentation.org/schema/opf-purpose/v1. Default source: https://www.pptx.gallery/purposes. Referenced from purpose.
|
|
2627
|
+
*/
|
|
2628
|
+
interface CatalogEntry8 {
|
|
2629
|
+
/**
|
|
2630
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to https://www.pptx.gallery/<kind>.
|
|
2631
|
+
*/
|
|
2632
|
+
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
2633
|
+
/**
|
|
2634
|
+
* Inline catalog records embedded in this OPF document. Each record validates against the kind's companion schema (e.g. https://openpresentation.org/schema/opf-narrative/v1 for narratives). Inline records win over anything resolved from 'source' and over the default catalog.
|
|
2635
|
+
*/
|
|
2636
|
+
records?: {
|
|
2637
|
+
[k: string]: unknown;
|
|
2638
|
+
}[];
|
|
2639
|
+
[k: string]: unknown;
|
|
2640
|
+
}
|
|
2641
|
+
/**
|
|
2642
|
+
* Catalog of presentation audiences. Records validate against https://openpresentation.org/schema/opf-audience/v1. Default source: https://www.pptx.gallery/audiences. Referenced from audience.
|
|
2643
|
+
*/
|
|
2644
|
+
interface CatalogEntry9 {
|
|
2645
|
+
/**
|
|
2646
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to https://www.pptx.gallery/<kind>.
|
|
2647
|
+
*/
|
|
2648
|
+
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
2649
|
+
/**
|
|
2650
|
+
* Inline catalog records embedded in this OPF document. Each record validates against the kind's companion schema (e.g. https://openpresentation.org/schema/opf-narrative/v1 for narratives). Inline records win over anything resolved from 'source' and over the default catalog.
|
|
2651
|
+
*/
|
|
2652
|
+
records?: {
|
|
2653
|
+
[k: string]: unknown;
|
|
2654
|
+
}[];
|
|
2655
|
+
[k: string]: unknown;
|
|
2656
|
+
}
|
|
2657
|
+
/**
|
|
2658
|
+
* Catalog of social-media platforms. Records validate against https://openpresentation.org/schema/opf-social-platform/v1. Default source: https://www.pptx.gallery/social-platforms. Referenced via the property keys of any Socials object (Organization.socials, Speaker.socials).
|
|
2659
|
+
*/
|
|
2660
|
+
interface CatalogEntry10 {
|
|
2661
|
+
/**
|
|
2662
|
+
* Single source or an ordered search path of sources. When omitted, the engine falls back to https://www.pptx.gallery/<kind>.
|
|
2663
|
+
*/
|
|
2664
|
+
source?: (CatalogSource | [CatalogSource, ...(CatalogSource)[]]);
|
|
2665
|
+
/**
|
|
2666
|
+
* Inline catalog records embedded in this OPF document. Each record validates against the kind's companion schema (e.g. https://openpresentation.org/schema/opf-narrative/v1 for narratives). Inline records win over anything resolved from 'source' and over the default catalog.
|
|
2667
|
+
*/
|
|
2668
|
+
records?: {
|
|
2669
|
+
[k: string]: unknown;
|
|
2670
|
+
}[];
|
|
2671
|
+
[k: string]: unknown;
|
|
2672
|
+
}
|
|
2673
|
+
|
|
2674
|
+
interface ValidationIssue {
|
|
2675
|
+
path: string;
|
|
2676
|
+
message: string;
|
|
2677
|
+
keyword: string;
|
|
2678
|
+
schemaPath: string;
|
|
2679
|
+
params: Record<string, unknown>;
|
|
2680
|
+
}
|
|
2681
|
+
interface ValidationResult {
|
|
2682
|
+
valid: boolean;
|
|
2683
|
+
errors: ValidationIssue[];
|
|
2684
|
+
schemaName?: SchemaName;
|
|
2685
|
+
catalogKind?: CatalogKind;
|
|
2686
|
+
}
|
|
2687
|
+
type SchemaOrKind = SchemaName | CatalogKind | JsonSchema;
|
|
2688
|
+
declare class OPFValidationError extends Error {
|
|
2689
|
+
readonly issues: ValidationIssue[];
|
|
2690
|
+
readonly result: ValidationResult;
|
|
2691
|
+
constructor(result: ValidationResult);
|
|
2692
|
+
}
|
|
2693
|
+
declare function validate(value: unknown, schemaOrKind?: SchemaOrKind): ValidationResult;
|
|
2694
|
+
declare function assertValid<T = unknown>(value: T, schemaOrKind?: SchemaOrKind): T;
|
|
2695
|
+
declare function validatePresentation(value: unknown): ValidationResult;
|
|
2696
|
+
declare function assertValidPresentation(value: unknown): asserts value is Presentation;
|
|
2697
|
+
declare function validateCatalogRecord(kind: CatalogKind, value: unknown): ValidationResult;
|
|
2698
|
+
declare function assertValidCatalogRecord(kind: CatalogKind, value: unknown): void;
|
|
2699
|
+
|
|
2700
|
+
export { OPFValidationError as O, type Presentation as P, type SchemaOrKind as S, type ValidationIssue as V, type ValidationResult as a, assertValid as b, assertValidCatalogRecord as c, assertValidPresentation as d, validateCatalogRecord as e, validatePresentation as f, validate as v };
|