document-content-model 1.2.1 → 1.4.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/dist/index.d.cts CHANGED
@@ -1354,6 +1354,79 @@ declare const LayoutEllipseSchema: z.ZodObject<{
1354
1354
  sourcePath: z.ZodOptional<z.ZodString>;
1355
1355
  }, z.core.$strip>;
1356
1356
  type LayoutEllipse = z.infer<typeof LayoutEllipseSchema>;
1357
+ declare const LayoutPathSegmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1358
+ kind: z.ZodLiteral<"line">;
1359
+ xPt: z.ZodNumber;
1360
+ yPt: z.ZodNumber;
1361
+ }, z.core.$strip>, z.ZodObject<{
1362
+ kind: z.ZodLiteral<"cubic">;
1363
+ c1xPt: z.ZodNumber;
1364
+ c1yPt: z.ZodNumber;
1365
+ c2xPt: z.ZodNumber;
1366
+ c2yPt: z.ZodNumber;
1367
+ xPt: z.ZodNumber;
1368
+ yPt: z.ZodNumber;
1369
+ }, z.core.$strip>], "kind">;
1370
+ type LayoutPathSegment = z.infer<typeof LayoutPathSegmentSchema>;
1371
+ declare const LayoutSubpathSchema: z.ZodObject<{
1372
+ startXPt: z.ZodNumber;
1373
+ startYPt: z.ZodNumber;
1374
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1375
+ kind: z.ZodLiteral<"line">;
1376
+ xPt: z.ZodNumber;
1377
+ yPt: z.ZodNumber;
1378
+ }, z.core.$strip>, z.ZodObject<{
1379
+ kind: z.ZodLiteral<"cubic">;
1380
+ c1xPt: z.ZodNumber;
1381
+ c1yPt: z.ZodNumber;
1382
+ c2xPt: z.ZodNumber;
1383
+ c2yPt: z.ZodNumber;
1384
+ xPt: z.ZodNumber;
1385
+ yPt: z.ZodNumber;
1386
+ }, z.core.$strip>], "kind">>;
1387
+ closed: z.ZodBoolean;
1388
+ }, z.core.$strip>;
1389
+ type LayoutSubpath = z.infer<typeof LayoutSubpathSchema>;
1390
+ declare const LayoutPathSchema: z.ZodObject<{
1391
+ kind: z.ZodLiteral<"path">;
1392
+ subpaths: z.ZodArray<z.ZodObject<{
1393
+ startXPt: z.ZodNumber;
1394
+ startYPt: z.ZodNumber;
1395
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1396
+ kind: z.ZodLiteral<"line">;
1397
+ xPt: z.ZodNumber;
1398
+ yPt: z.ZodNumber;
1399
+ }, z.core.$strip>, z.ZodObject<{
1400
+ kind: z.ZodLiteral<"cubic">;
1401
+ c1xPt: z.ZodNumber;
1402
+ c1yPt: z.ZodNumber;
1403
+ c2xPt: z.ZodNumber;
1404
+ c2yPt: z.ZodNumber;
1405
+ xPt: z.ZodNumber;
1406
+ yPt: z.ZodNumber;
1407
+ }, z.core.$strip>], "kind">>;
1408
+ closed: z.ZodBoolean;
1409
+ }, z.core.$strip>>;
1410
+ fill: z.ZodOptional<z.ZodObject<{
1411
+ r: z.ZodNumber;
1412
+ g: z.ZodNumber;
1413
+ b: z.ZodNumber;
1414
+ }, z.core.$strip>>;
1415
+ fillRule: z.ZodOptional<z.ZodEnum<{
1416
+ nonzero: "nonzero";
1417
+ evenodd: "evenodd";
1418
+ }>>;
1419
+ stroke: z.ZodOptional<z.ZodObject<{
1420
+ color: z.ZodObject<{
1421
+ r: z.ZodNumber;
1422
+ g: z.ZodNumber;
1423
+ b: z.ZodNumber;
1424
+ }, z.core.$strip>;
1425
+ widthPt: z.ZodNumber;
1426
+ }, z.core.$strip>>;
1427
+ sourcePath: z.ZodOptional<z.ZodString>;
1428
+ }, z.core.$strip>;
1429
+ type LayoutPath = z.infer<typeof LayoutPathSchema>;
1357
1430
  declare const LayoutLinkSchema: z.ZodObject<{
1358
1431
  kind: z.ZodLiteral<"link">;
1359
1432
  uri: z.ZodString;
@@ -1452,6 +1525,44 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1452
1525
  widthPt: z.ZodNumber;
1453
1526
  }, z.core.$strip>>;
1454
1527
  sourcePath: z.ZodOptional<z.ZodString>;
1528
+ }, z.core.$strip>, z.ZodObject<{
1529
+ kind: z.ZodLiteral<"path">;
1530
+ subpaths: z.ZodArray<z.ZodObject<{
1531
+ startXPt: z.ZodNumber;
1532
+ startYPt: z.ZodNumber;
1533
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1534
+ kind: z.ZodLiteral<"line">;
1535
+ xPt: z.ZodNumber;
1536
+ yPt: z.ZodNumber;
1537
+ }, z.core.$strip>, z.ZodObject<{
1538
+ kind: z.ZodLiteral<"cubic">;
1539
+ c1xPt: z.ZodNumber;
1540
+ c1yPt: z.ZodNumber;
1541
+ c2xPt: z.ZodNumber;
1542
+ c2yPt: z.ZodNumber;
1543
+ xPt: z.ZodNumber;
1544
+ yPt: z.ZodNumber;
1545
+ }, z.core.$strip>], "kind">>;
1546
+ closed: z.ZodBoolean;
1547
+ }, z.core.$strip>>;
1548
+ fill: z.ZodOptional<z.ZodObject<{
1549
+ r: z.ZodNumber;
1550
+ g: z.ZodNumber;
1551
+ b: z.ZodNumber;
1552
+ }, z.core.$strip>>;
1553
+ fillRule: z.ZodOptional<z.ZodEnum<{
1554
+ nonzero: "nonzero";
1555
+ evenodd: "evenodd";
1556
+ }>>;
1557
+ stroke: z.ZodOptional<z.ZodObject<{
1558
+ color: z.ZodObject<{
1559
+ r: z.ZodNumber;
1560
+ g: z.ZodNumber;
1561
+ b: z.ZodNumber;
1562
+ }, z.core.$strip>;
1563
+ widthPt: z.ZodNumber;
1564
+ }, z.core.$strip>>;
1565
+ sourcePath: z.ZodOptional<z.ZodString>;
1455
1566
  }, z.core.$strip>, z.ZodObject<{
1456
1567
  kind: z.ZodLiteral<"link">;
1457
1568
  uri: z.ZodString;
@@ -1553,6 +1664,44 @@ declare const LayoutPageSchema: z.ZodObject<{
1553
1664
  widthPt: z.ZodNumber;
1554
1665
  }, z.core.$strip>>;
1555
1666
  sourcePath: z.ZodOptional<z.ZodString>;
1667
+ }, z.core.$strip>, z.ZodObject<{
1668
+ kind: z.ZodLiteral<"path">;
1669
+ subpaths: z.ZodArray<z.ZodObject<{
1670
+ startXPt: z.ZodNumber;
1671
+ startYPt: z.ZodNumber;
1672
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1673
+ kind: z.ZodLiteral<"line">;
1674
+ xPt: z.ZodNumber;
1675
+ yPt: z.ZodNumber;
1676
+ }, z.core.$strip>, z.ZodObject<{
1677
+ kind: z.ZodLiteral<"cubic">;
1678
+ c1xPt: z.ZodNumber;
1679
+ c1yPt: z.ZodNumber;
1680
+ c2xPt: z.ZodNumber;
1681
+ c2yPt: z.ZodNumber;
1682
+ xPt: z.ZodNumber;
1683
+ yPt: z.ZodNumber;
1684
+ }, z.core.$strip>], "kind">>;
1685
+ closed: z.ZodBoolean;
1686
+ }, z.core.$strip>>;
1687
+ fill: z.ZodOptional<z.ZodObject<{
1688
+ r: z.ZodNumber;
1689
+ g: z.ZodNumber;
1690
+ b: z.ZodNumber;
1691
+ }, z.core.$strip>>;
1692
+ fillRule: z.ZodOptional<z.ZodEnum<{
1693
+ nonzero: "nonzero";
1694
+ evenodd: "evenodd";
1695
+ }>>;
1696
+ stroke: z.ZodOptional<z.ZodObject<{
1697
+ color: z.ZodObject<{
1698
+ r: z.ZodNumber;
1699
+ g: z.ZodNumber;
1700
+ b: z.ZodNumber;
1701
+ }, z.core.$strip>;
1702
+ widthPt: z.ZodNumber;
1703
+ }, z.core.$strip>>;
1704
+ sourcePath: z.ZodOptional<z.ZodString>;
1556
1705
  }, z.core.$strip>, z.ZodObject<{
1557
1706
  kind: z.ZodLiteral<"link">;
1558
1707
  uri: z.ZodString;
@@ -1678,6 +1827,44 @@ declare const LayoutDocumentSchema: z.ZodObject<{
1678
1827
  widthPt: z.ZodNumber;
1679
1828
  }, z.core.$strip>>;
1680
1829
  sourcePath: z.ZodOptional<z.ZodString>;
1830
+ }, z.core.$strip>, z.ZodObject<{
1831
+ kind: z.ZodLiteral<"path">;
1832
+ subpaths: z.ZodArray<z.ZodObject<{
1833
+ startXPt: z.ZodNumber;
1834
+ startYPt: z.ZodNumber;
1835
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1836
+ kind: z.ZodLiteral<"line">;
1837
+ xPt: z.ZodNumber;
1838
+ yPt: z.ZodNumber;
1839
+ }, z.core.$strip>, z.ZodObject<{
1840
+ kind: z.ZodLiteral<"cubic">;
1841
+ c1xPt: z.ZodNumber;
1842
+ c1yPt: z.ZodNumber;
1843
+ c2xPt: z.ZodNumber;
1844
+ c2yPt: z.ZodNumber;
1845
+ xPt: z.ZodNumber;
1846
+ yPt: z.ZodNumber;
1847
+ }, z.core.$strip>], "kind">>;
1848
+ closed: z.ZodBoolean;
1849
+ }, z.core.$strip>>;
1850
+ fill: z.ZodOptional<z.ZodObject<{
1851
+ r: z.ZodNumber;
1852
+ g: z.ZodNumber;
1853
+ b: z.ZodNumber;
1854
+ }, z.core.$strip>>;
1855
+ fillRule: z.ZodOptional<z.ZodEnum<{
1856
+ nonzero: "nonzero";
1857
+ evenodd: "evenodd";
1858
+ }>>;
1859
+ stroke: z.ZodOptional<z.ZodObject<{
1860
+ color: z.ZodObject<{
1861
+ r: z.ZodNumber;
1862
+ g: z.ZodNumber;
1863
+ b: z.ZodNumber;
1864
+ }, z.core.$strip>;
1865
+ widthPt: z.ZodNumber;
1866
+ }, z.core.$strip>>;
1867
+ sourcePath: z.ZodOptional<z.ZodString>;
1681
1868
  }, z.core.$strip>, z.ZodObject<{
1682
1869
  kind: z.ZodLiteral<"link">;
1683
1870
  uri: z.ZodString;
@@ -1701,4 +1888,529 @@ declare const LayoutDocumentSchema: z.ZodObject<{
1701
1888
  }, z.core.$strip>;
1702
1889
  type LayoutDocument = z.infer<typeof LayoutDocumentSchema>;
1703
1890
  //#endregion
1704
- export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFont, LayoutFontSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutMetadata, LayoutMetadataSchema, LayoutPage, LayoutPageSchema, LayoutRect, LayoutRectSchema, LayoutText, LayoutTextSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };
1891
+ //#region src/package.d.ts
1892
+ declare const DOCUMENT_PACKAGE_FORMAT_VERSION = 1;
1893
+ declare const DocumentPackageSchema: z.ZodObject<{
1894
+ formatVersion: z.ZodLiteral<1>;
1895
+ content: z.ZodDiscriminatedUnion<[z.ZodObject<{
1896
+ kind: z.ZodLiteral<"wordprocessing">;
1897
+ formatVersion: z.ZodLiteral<1>;
1898
+ metadata: z.ZodObject<{
1899
+ title: z.ZodOptional<z.ZodString>;
1900
+ author: z.ZodOptional<z.ZodString>;
1901
+ subject: z.ZodOptional<z.ZodString>;
1902
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
1903
+ creator: z.ZodOptional<z.ZodString>;
1904
+ producer: z.ZodOptional<z.ZodString>;
1905
+ createdIso: z.ZodOptional<z.ZodString>;
1906
+ modifiedIso: z.ZodOptional<z.ZodString>;
1907
+ }, z.core.$strip>;
1908
+ sections: z.ZodArray<z.ZodObject<{
1909
+ pageSize: z.ZodObject<{
1910
+ widthPt: z.ZodNumber;
1911
+ heightPt: z.ZodNumber;
1912
+ }, z.core.$strip>;
1913
+ margins: z.ZodObject<{
1914
+ topPt: z.ZodNumber;
1915
+ rightPt: z.ZodNumber;
1916
+ bottomPt: z.ZodNumber;
1917
+ leftPt: z.ZodNumber;
1918
+ }, z.core.$strip>;
1919
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
1920
+ }, z.core.$strip>>;
1921
+ }, z.core.$strip>, z.ZodObject<{
1922
+ kind: z.ZodLiteral<"presentation">;
1923
+ formatVersion: z.ZodLiteral<1>;
1924
+ metadata: z.ZodObject<{
1925
+ title: z.ZodOptional<z.ZodString>;
1926
+ author: z.ZodOptional<z.ZodString>;
1927
+ subject: z.ZodOptional<z.ZodString>;
1928
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
1929
+ creator: z.ZodOptional<z.ZodString>;
1930
+ producer: z.ZodOptional<z.ZodString>;
1931
+ createdIso: z.ZodOptional<z.ZodString>;
1932
+ modifiedIso: z.ZodOptional<z.ZodString>;
1933
+ }, z.core.$strip>;
1934
+ slides: z.ZodArray<z.ZodObject<{
1935
+ size: z.ZodObject<{
1936
+ widthPt: z.ZodNumber;
1937
+ heightPt: z.ZodNumber;
1938
+ }, z.core.$strip>;
1939
+ shapes: z.ZodArray<z.ZodObject<{
1940
+ name: z.ZodOptional<z.ZodString>;
1941
+ frame: z.ZodObject<{
1942
+ xPt: z.ZodNumber;
1943
+ yPt: z.ZodNumber;
1944
+ widthPt: z.ZodNumber;
1945
+ heightPt: z.ZodNumber;
1946
+ }, z.core.$strip>;
1947
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
1948
+ insetLeftPt: z.ZodNumber;
1949
+ insetTopPt: z.ZodNumber;
1950
+ insetRightPt: z.ZodNumber;
1951
+ insetBottomPt: z.ZodNumber;
1952
+ fontScale: z.ZodOptional<z.ZodNumber>;
1953
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1954
+ sourcePath: z.ZodOptional<z.ZodString>;
1955
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
1956
+ }, z.core.$strip>>;
1957
+ notes: z.ZodString;
1958
+ }, z.core.$strip>>;
1959
+ }, z.core.$strip>, z.ZodObject<{
1960
+ kind: z.ZodLiteral<"spreadsheet">;
1961
+ formatVersion: z.ZodLiteral<1>;
1962
+ metadata: z.ZodObject<{
1963
+ title: z.ZodOptional<z.ZodString>;
1964
+ author: z.ZodOptional<z.ZodString>;
1965
+ subject: z.ZodOptional<z.ZodString>;
1966
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
1967
+ creator: z.ZodOptional<z.ZodString>;
1968
+ producer: z.ZodOptional<z.ZodString>;
1969
+ createdIso: z.ZodOptional<z.ZodString>;
1970
+ modifiedIso: z.ZodOptional<z.ZodString>;
1971
+ }, z.core.$strip>;
1972
+ sheets: z.ZodArray<z.ZodObject<{
1973
+ name: z.ZodString;
1974
+ cells: z.ZodArray<z.ZodObject<{
1975
+ row: z.ZodNumber;
1976
+ column: z.ZodNumber;
1977
+ value: z.ZodDiscriminatedUnion<[z.ZodObject<{
1978
+ kind: z.ZodLiteral<"number">;
1979
+ value: z.ZodNumber;
1980
+ }, z.core.$strip>, z.ZodObject<{
1981
+ kind: z.ZodLiteral<"percentage">;
1982
+ value: z.ZodNumber;
1983
+ }, z.core.$strip>, z.ZodObject<{
1984
+ kind: z.ZodLiteral<"currency">;
1985
+ value: z.ZodNumber;
1986
+ currency: z.ZodOptional<z.ZodString>;
1987
+ }, z.core.$strip>, z.ZodObject<{
1988
+ kind: z.ZodLiteral<"boolean">;
1989
+ value: z.ZodBoolean;
1990
+ }, z.core.$strip>, z.ZodObject<{
1991
+ kind: z.ZodLiteral<"date">;
1992
+ value: z.ZodString;
1993
+ }, z.core.$strip>, z.ZodObject<{
1994
+ kind: z.ZodLiteral<"time">;
1995
+ value: z.ZodString;
1996
+ }, z.core.$strip>, z.ZodObject<{
1997
+ kind: z.ZodLiteral<"string">;
1998
+ value: z.ZodString;
1999
+ }, z.core.$strip>, z.ZodObject<{
2000
+ kind: z.ZodLiteral<"error">;
2001
+ value: z.ZodString;
2002
+ }, z.core.$strip>, z.ZodObject<{
2003
+ kind: z.ZodLiteral<"empty">;
2004
+ }, z.core.$strip>], "kind">;
2005
+ formula: z.ZodOptional<z.ZodString>;
2006
+ displayText: z.ZodString;
2007
+ runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2008
+ text: z.ZodString;
2009
+ bold: z.ZodOptional<z.ZodBoolean>;
2010
+ italic: z.ZodOptional<z.ZodBoolean>;
2011
+ underline: z.ZodOptional<z.ZodBoolean>;
2012
+ strike: z.ZodOptional<z.ZodBoolean>;
2013
+ fontFamily: z.ZodOptional<z.ZodString>;
2014
+ sizePt: z.ZodOptional<z.ZodNumber>;
2015
+ color: z.ZodOptional<z.ZodObject<{
2016
+ r: z.ZodNumber;
2017
+ g: z.ZodNumber;
2018
+ b: z.ZodNumber;
2019
+ }, z.core.$strip>>;
2020
+ hyperlink: z.ZodOptional<z.ZodString>;
2021
+ sourcePath: z.ZodOptional<z.ZodString>;
2022
+ }, z.core.$strip>>>;
2023
+ colSpan: z.ZodOptional<z.ZodNumber>;
2024
+ rowSpan: z.ZodOptional<z.ZodNumber>;
2025
+ }, z.core.$strip>>;
2026
+ columns: z.ZodArray<z.ZodObject<{
2027
+ index: z.ZodNumber;
2028
+ widthPt: z.ZodNumber;
2029
+ hidden: z.ZodOptional<z.ZodBoolean>;
2030
+ }, z.core.$strip>>;
2031
+ rows: z.ZodArray<z.ZodObject<{
2032
+ index: z.ZodNumber;
2033
+ heightPt: z.ZodNumber;
2034
+ hidden: z.ZodOptional<z.ZodBoolean>;
2035
+ }, z.core.$strip>>;
2036
+ images: z.ZodArray<z.ZodObject<{
2037
+ kind: z.ZodLiteral<"image">;
2038
+ format: z.ZodEnum<{
2039
+ png: "png";
2040
+ jpeg: "jpeg";
2041
+ }>;
2042
+ base64: z.ZodString;
2043
+ widthPt: z.ZodNumber;
2044
+ heightPt: z.ZodNumber;
2045
+ altText: z.ZodOptional<z.ZodString>;
2046
+ sourcePath: z.ZodOptional<z.ZodString>;
2047
+ anchorRow: z.ZodNumber;
2048
+ anchorColumn: z.ZodNumber;
2049
+ offsetXPt: z.ZodNumber;
2050
+ offsetYPt: z.ZodNumber;
2051
+ }, z.core.$strip>>;
2052
+ printSettings: z.ZodObject<{
2053
+ pageSize: z.ZodObject<{
2054
+ widthPt: z.ZodNumber;
2055
+ heightPt: z.ZodNumber;
2056
+ }, z.core.$strip>;
2057
+ margins: z.ZodObject<{
2058
+ topPt: z.ZodNumber;
2059
+ rightPt: z.ZodNumber;
2060
+ bottomPt: z.ZodNumber;
2061
+ leftPt: z.ZodNumber;
2062
+ }, z.core.$strip>;
2063
+ printRange: z.ZodOptional<z.ZodObject<{
2064
+ startRow: z.ZodNumber;
2065
+ startColumn: z.ZodNumber;
2066
+ endRow: z.ZodNumber;
2067
+ endColumn: z.ZodNumber;
2068
+ }, z.core.$strip>>;
2069
+ scale: z.ZodOptional<z.ZodNumber>;
2070
+ fitToPages: z.ZodOptional<z.ZodObject<{
2071
+ width: z.ZodNumber;
2072
+ height: z.ZodNumber;
2073
+ }, z.core.$strip>>;
2074
+ repeatRows: z.ZodOptional<z.ZodObject<{
2075
+ start: z.ZodNumber;
2076
+ end: z.ZodNumber;
2077
+ }, z.core.$strip>>;
2078
+ repeatColumns: z.ZodOptional<z.ZodObject<{
2079
+ start: z.ZodNumber;
2080
+ end: z.ZodNumber;
2081
+ }, z.core.$strip>>;
2082
+ gridlines: z.ZodBoolean;
2083
+ headers: z.ZodBoolean;
2084
+ pageOrder: z.ZodEnum<{
2085
+ downThenOver: "downThenOver";
2086
+ overThenDown: "overThenDown";
2087
+ }>;
2088
+ manualBreaks: z.ZodOptional<z.ZodObject<{
2089
+ rows: z.ZodArray<z.ZodNumber>;
2090
+ columns: z.ZodArray<z.ZodNumber>;
2091
+ }, z.core.$strip>>;
2092
+ }, z.core.$strip>;
2093
+ embeddedObjects: z.ZodOptional<z.ZodArray<z.ZodCustom<ContentEmbeddedObject, ContentEmbeddedObject>>>;
2094
+ }, z.core.$strip>>;
2095
+ }, z.core.$strip>, z.ZodObject<{
2096
+ kind: z.ZodLiteral<"drawing">;
2097
+ formatVersion: z.ZodLiteral<1>;
2098
+ metadata: z.ZodObject<{
2099
+ title: z.ZodOptional<z.ZodString>;
2100
+ author: z.ZodOptional<z.ZodString>;
2101
+ subject: z.ZodOptional<z.ZodString>;
2102
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
2103
+ creator: z.ZodOptional<z.ZodString>;
2104
+ producer: z.ZodOptional<z.ZodString>;
2105
+ createdIso: z.ZodOptional<z.ZodString>;
2106
+ modifiedIso: z.ZodOptional<z.ZodString>;
2107
+ }, z.core.$strip>;
2108
+ pages: z.ZodArray<z.ZodObject<{
2109
+ size: z.ZodObject<{
2110
+ widthPt: z.ZodNumber;
2111
+ heightPt: z.ZodNumber;
2112
+ }, z.core.$strip>;
2113
+ shapes: z.ZodArray<z.ZodObject<{
2114
+ name: z.ZodOptional<z.ZodString>;
2115
+ frame: z.ZodObject<{
2116
+ xPt: z.ZodNumber;
2117
+ yPt: z.ZodNumber;
2118
+ widthPt: z.ZodNumber;
2119
+ heightPt: z.ZodNumber;
2120
+ }, z.core.$strip>;
2121
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
2122
+ insetLeftPt: z.ZodNumber;
2123
+ insetTopPt: z.ZodNumber;
2124
+ insetRightPt: z.ZodNumber;
2125
+ insetBottomPt: z.ZodNumber;
2126
+ fontScale: z.ZodOptional<z.ZodNumber>;
2127
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
2128
+ sourcePath: z.ZodOptional<z.ZodString>;
2129
+ blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
2130
+ }, z.core.$strip>>;
2131
+ vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2132
+ kind: z.ZodLiteral<"rect">;
2133
+ frame: z.ZodObject<{
2134
+ xPt: z.ZodNumber;
2135
+ yPt: z.ZodNumber;
2136
+ widthPt: z.ZodNumber;
2137
+ heightPt: z.ZodNumber;
2138
+ }, z.core.$strip>;
2139
+ fill: z.ZodOptional<z.ZodObject<{
2140
+ r: z.ZodNumber;
2141
+ g: z.ZodNumber;
2142
+ b: z.ZodNumber;
2143
+ }, z.core.$strip>>;
2144
+ stroke: z.ZodOptional<z.ZodObject<{
2145
+ color: z.ZodObject<{
2146
+ r: z.ZodNumber;
2147
+ g: z.ZodNumber;
2148
+ b: z.ZodNumber;
2149
+ }, z.core.$strip>;
2150
+ widthPt: z.ZodNumber;
2151
+ }, z.core.$strip>>;
2152
+ sourcePath: z.ZodOptional<z.ZodString>;
2153
+ }, z.core.$strip>, z.ZodObject<{
2154
+ kind: z.ZodLiteral<"ellipse">;
2155
+ frame: z.ZodObject<{
2156
+ xPt: z.ZodNumber;
2157
+ yPt: z.ZodNumber;
2158
+ widthPt: z.ZodNumber;
2159
+ heightPt: z.ZodNumber;
2160
+ }, z.core.$strip>;
2161
+ fill: z.ZodOptional<z.ZodObject<{
2162
+ r: z.ZodNumber;
2163
+ g: z.ZodNumber;
2164
+ b: z.ZodNumber;
2165
+ }, z.core.$strip>>;
2166
+ stroke: z.ZodOptional<z.ZodObject<{
2167
+ color: z.ZodObject<{
2168
+ r: z.ZodNumber;
2169
+ g: z.ZodNumber;
2170
+ b: z.ZodNumber;
2171
+ }, z.core.$strip>;
2172
+ widthPt: z.ZodNumber;
2173
+ }, z.core.$strip>>;
2174
+ sourcePath: z.ZodOptional<z.ZodString>;
2175
+ }, z.core.$strip>, z.ZodObject<{
2176
+ kind: z.ZodLiteral<"line">;
2177
+ from: z.ZodObject<{
2178
+ xPt: z.ZodNumber;
2179
+ yPt: z.ZodNumber;
2180
+ }, z.core.$strip>;
2181
+ to: z.ZodObject<{
2182
+ xPt: z.ZodNumber;
2183
+ yPt: z.ZodNumber;
2184
+ }, z.core.$strip>;
2185
+ stroke: z.ZodObject<{
2186
+ color: z.ZodObject<{
2187
+ r: z.ZodNumber;
2188
+ g: z.ZodNumber;
2189
+ b: z.ZodNumber;
2190
+ }, z.core.$strip>;
2191
+ widthPt: z.ZodNumber;
2192
+ }, z.core.$strip>;
2193
+ sourcePath: z.ZodOptional<z.ZodString>;
2194
+ }, z.core.$strip>, z.ZodObject<{
2195
+ kind: z.ZodLiteral<"path">;
2196
+ frame: z.ZodObject<{
2197
+ xPt: z.ZodNumber;
2198
+ yPt: z.ZodNumber;
2199
+ widthPt: z.ZodNumber;
2200
+ heightPt: z.ZodNumber;
2201
+ }, z.core.$strip>;
2202
+ subpaths: z.ZodArray<z.ZodObject<{
2203
+ start: z.ZodObject<{
2204
+ xPt: z.ZodNumber;
2205
+ yPt: z.ZodNumber;
2206
+ }, z.core.$strip>;
2207
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2208
+ kind: z.ZodLiteral<"line">;
2209
+ to: z.ZodObject<{
2210
+ xPt: z.ZodNumber;
2211
+ yPt: z.ZodNumber;
2212
+ }, z.core.$strip>;
2213
+ }, z.core.$strip>, z.ZodObject<{
2214
+ kind: z.ZodLiteral<"cubic">;
2215
+ control1: z.ZodObject<{
2216
+ xPt: z.ZodNumber;
2217
+ yPt: z.ZodNumber;
2218
+ }, z.core.$strip>;
2219
+ control2: z.ZodObject<{
2220
+ xPt: z.ZodNumber;
2221
+ yPt: z.ZodNumber;
2222
+ }, z.core.$strip>;
2223
+ to: z.ZodObject<{
2224
+ xPt: z.ZodNumber;
2225
+ yPt: z.ZodNumber;
2226
+ }, z.core.$strip>;
2227
+ }, z.core.$strip>], "kind">>;
2228
+ closed: z.ZodBoolean;
2229
+ }, z.core.$strip>>;
2230
+ fill: z.ZodOptional<z.ZodObject<{
2231
+ r: z.ZodNumber;
2232
+ g: z.ZodNumber;
2233
+ b: z.ZodNumber;
2234
+ }, z.core.$strip>>;
2235
+ fillRule: z.ZodOptional<z.ZodEnum<{
2236
+ nonzero: "nonzero";
2237
+ evenodd: "evenodd";
2238
+ }>>;
2239
+ stroke: z.ZodOptional<z.ZodObject<{
2240
+ color: z.ZodObject<{
2241
+ r: z.ZodNumber;
2242
+ g: z.ZodNumber;
2243
+ b: z.ZodNumber;
2244
+ }, z.core.$strip>;
2245
+ widthPt: z.ZodNumber;
2246
+ }, z.core.$strip>>;
2247
+ sourcePath: z.ZodOptional<z.ZodString>;
2248
+ }, z.core.$strip>], "kind">>;
2249
+ }, z.core.$strip>>;
2250
+ }, z.core.$strip>], "kind">;
2251
+ layout: z.ZodOptional<z.ZodObject<{
2252
+ formatVersion: z.ZodLiteral<1>;
2253
+ metadata: z.ZodObject<{
2254
+ title: z.ZodOptional<z.ZodString>;
2255
+ author: z.ZodOptional<z.ZodString>;
2256
+ subject: z.ZodOptional<z.ZodString>;
2257
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
2258
+ creator: z.ZodOptional<z.ZodString>;
2259
+ producer: z.ZodOptional<z.ZodString>;
2260
+ createdIso: z.ZodOptional<z.ZodString>;
2261
+ modifiedIso: z.ZodOptional<z.ZodString>;
2262
+ }, z.core.$strip>;
2263
+ pages: z.ZodArray<z.ZodObject<{
2264
+ widthPt: z.ZodNumber;
2265
+ heightPt: z.ZodNumber;
2266
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2267
+ kind: z.ZodLiteral<"text">;
2268
+ text: z.ZodString;
2269
+ xPt: z.ZodNumber;
2270
+ yPt: z.ZodNumber;
2271
+ font: z.ZodObject<{
2272
+ family: z.ZodString;
2273
+ weight: z.ZodEnum<{
2274
+ normal: "normal";
2275
+ bold: "bold";
2276
+ }>;
2277
+ style: z.ZodEnum<{
2278
+ normal: "normal";
2279
+ italic: "italic";
2280
+ }>;
2281
+ }, z.core.$strip>;
2282
+ sizePt: z.ZodNumber;
2283
+ color: z.ZodObject<{
2284
+ r: z.ZodNumber;
2285
+ g: z.ZodNumber;
2286
+ b: z.ZodNumber;
2287
+ }, z.core.$strip>;
2288
+ widthPt: z.ZodOptional<z.ZodNumber>;
2289
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
2290
+ underline: z.ZodOptional<z.ZodBoolean>;
2291
+ sourcePath: z.ZodOptional<z.ZodString>;
2292
+ }, z.core.$strip>, z.ZodObject<{
2293
+ kind: z.ZodLiteral<"image">;
2294
+ imageId: z.ZodString;
2295
+ xPt: z.ZodNumber;
2296
+ yPt: z.ZodNumber;
2297
+ widthPt: z.ZodNumber;
2298
+ heightPt: z.ZodNumber;
2299
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
2300
+ sourcePath: z.ZodOptional<z.ZodString>;
2301
+ }, z.core.$strip>, z.ZodObject<{
2302
+ kind: z.ZodLiteral<"rect">;
2303
+ xPt: z.ZodNumber;
2304
+ yPt: z.ZodNumber;
2305
+ widthPt: z.ZodNumber;
2306
+ heightPt: z.ZodNumber;
2307
+ fill: z.ZodOptional<z.ZodObject<{
2308
+ r: z.ZodNumber;
2309
+ g: z.ZodNumber;
2310
+ b: z.ZodNumber;
2311
+ }, z.core.$strip>>;
2312
+ stroke: z.ZodOptional<z.ZodObject<{
2313
+ color: z.ZodObject<{
2314
+ r: z.ZodNumber;
2315
+ g: z.ZodNumber;
2316
+ b: z.ZodNumber;
2317
+ }, z.core.$strip>;
2318
+ widthPt: z.ZodNumber;
2319
+ }, z.core.$strip>>;
2320
+ sourcePath: z.ZodOptional<z.ZodString>;
2321
+ }, z.core.$strip>, z.ZodObject<{
2322
+ kind: z.ZodLiteral<"line">;
2323
+ x1Pt: z.ZodNumber;
2324
+ y1Pt: z.ZodNumber;
2325
+ x2Pt: z.ZodNumber;
2326
+ y2Pt: z.ZodNumber;
2327
+ color: z.ZodObject<{
2328
+ r: z.ZodNumber;
2329
+ g: z.ZodNumber;
2330
+ b: z.ZodNumber;
2331
+ }, z.core.$strip>;
2332
+ widthPt: z.ZodNumber;
2333
+ sourcePath: z.ZodOptional<z.ZodString>;
2334
+ }, z.core.$strip>, z.ZodObject<{
2335
+ kind: z.ZodLiteral<"ellipse">;
2336
+ xPt: z.ZodNumber;
2337
+ yPt: z.ZodNumber;
2338
+ widthPt: z.ZodNumber;
2339
+ heightPt: z.ZodNumber;
2340
+ fill: z.ZodOptional<z.ZodObject<{
2341
+ r: z.ZodNumber;
2342
+ g: z.ZodNumber;
2343
+ b: z.ZodNumber;
2344
+ }, z.core.$strip>>;
2345
+ stroke: z.ZodOptional<z.ZodObject<{
2346
+ color: z.ZodObject<{
2347
+ r: z.ZodNumber;
2348
+ g: z.ZodNumber;
2349
+ b: z.ZodNumber;
2350
+ }, z.core.$strip>;
2351
+ widthPt: z.ZodNumber;
2352
+ }, z.core.$strip>>;
2353
+ sourcePath: z.ZodOptional<z.ZodString>;
2354
+ }, z.core.$strip>, z.ZodObject<{
2355
+ kind: z.ZodLiteral<"path">;
2356
+ subpaths: z.ZodArray<z.ZodObject<{
2357
+ startXPt: z.ZodNumber;
2358
+ startYPt: z.ZodNumber;
2359
+ segments: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2360
+ kind: z.ZodLiteral<"line">;
2361
+ xPt: z.ZodNumber;
2362
+ yPt: z.ZodNumber;
2363
+ }, z.core.$strip>, z.ZodObject<{
2364
+ kind: z.ZodLiteral<"cubic">;
2365
+ c1xPt: z.ZodNumber;
2366
+ c1yPt: z.ZodNumber;
2367
+ c2xPt: z.ZodNumber;
2368
+ c2yPt: z.ZodNumber;
2369
+ xPt: z.ZodNumber;
2370
+ yPt: z.ZodNumber;
2371
+ }, z.core.$strip>], "kind">>;
2372
+ closed: z.ZodBoolean;
2373
+ }, z.core.$strip>>;
2374
+ fill: z.ZodOptional<z.ZodObject<{
2375
+ r: z.ZodNumber;
2376
+ g: z.ZodNumber;
2377
+ b: z.ZodNumber;
2378
+ }, z.core.$strip>>;
2379
+ fillRule: z.ZodOptional<z.ZodEnum<{
2380
+ nonzero: "nonzero";
2381
+ evenodd: "evenodd";
2382
+ }>>;
2383
+ stroke: z.ZodOptional<z.ZodObject<{
2384
+ color: z.ZodObject<{
2385
+ r: z.ZodNumber;
2386
+ g: z.ZodNumber;
2387
+ b: z.ZodNumber;
2388
+ }, z.core.$strip>;
2389
+ widthPt: z.ZodNumber;
2390
+ }, z.core.$strip>>;
2391
+ sourcePath: z.ZodOptional<z.ZodString>;
2392
+ }, z.core.$strip>, z.ZodObject<{
2393
+ kind: z.ZodLiteral<"link">;
2394
+ uri: z.ZodString;
2395
+ xPt: z.ZodNumber;
2396
+ yPt: z.ZodNumber;
2397
+ widthPt: z.ZodNumber;
2398
+ heightPt: z.ZodNumber;
2399
+ sourcePath: z.ZodOptional<z.ZodString>;
2400
+ }, z.core.$strip>], "kind">>;
2401
+ notes: z.ZodOptional<z.ZodString>;
2402
+ }, z.core.$strip>>;
2403
+ images: z.ZodRecord<z.ZodString, z.ZodObject<{
2404
+ format: z.ZodEnum<{
2405
+ png: "png";
2406
+ jpeg: "jpeg";
2407
+ }>;
2408
+ base64: z.ZodString;
2409
+ widthPx: z.ZodNumber;
2410
+ heightPx: z.ZodNumber;
2411
+ }, z.core.$strip>>;
2412
+ }, z.core.$strip>>;
2413
+ }, z.core.$strip>;
2414
+ type DocumentPackage = z.infer<typeof DocumentPackageSchema>;
2415
+ //#endregion
2416
+ export { Alignment, AlignmentSchema, Box, BoxSchema, COLOR_BLACK, CONTENT_FORMAT_VERSION, Color, ColorSchema, ContentBlock, ContentBlockSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DEFAULT_LAYOUT_FONT, DOCUMENT_PACKAGE_FORMAT_VERSION, DocumentPackage, DocumentPackageSchema, LAYOUT_FORMAT_VERSION, LayoutDocument, LayoutDocumentSchema, LayoutEllipse, LayoutEllipseSchema, LayoutFont, LayoutFontSchema, LayoutImage, LayoutImageAsset, LayoutImageAssetSchema, LayoutImageSchema, LayoutItem, LayoutItemSchema, LayoutLine, LayoutLineSchema, LayoutLink, LayoutLinkSchema, LayoutMetadata, LayoutMetadataSchema, LayoutPage, LayoutPageSchema, LayoutPath, LayoutPathSchema, LayoutPathSegment, LayoutPathSegmentSchema, LayoutRect, LayoutRectSchema, LayoutSubpath, LayoutSubpathSchema, LayoutText, LayoutTextSchema, Margins, MarginsSchema, PAGE_SIZE_A4, PAGE_SIZE_LETTER, PageSize, PageSizeSchema, SLIDE_SIZE_STANDARD, SLIDE_SIZE_WIDESCREEN, colorToRgbHex, isContentBlock, rgbHexToColor };