@supernova-studio/client 0.52.11 → 0.52.12

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.mjs CHANGED
@@ -40,33 +40,33 @@ import { z as z24 } from "zod";
40
40
  import { z as z26 } from "zod";
41
41
  import { z as z25 } from "zod";
42
42
  import { z as z27 } from "zod";
43
+ import { z as z29 } from "zod";
43
44
  import { z as z28 } from "zod";
44
- import { z as z31 } from "zod";
45
45
  import { z as z30 } from "zod";
46
- import { z as z29 } from "zod";
47
- import { z as z32 } from "zod";
48
- import deepEqual from "deep-equal";
49
- import { z as z39 } from "zod";
50
- import { z as z33 } from "zod";
51
- import slugifyImplementation from "@sindresorhus/slugify";
46
+ import { z as z31 } from "zod";
52
47
  import { z as z34 } from "zod";
48
+ import { z as z33 } from "zod";
49
+ import { z as z32 } from "zod";
53
50
  import { z as z35 } from "zod";
51
+ import deepEqual from "deep-equal";
52
+ import { z as z42 } from "zod";
54
53
  import { z as z36 } from "zod";
54
+ import slugifyImplementation from "@sindresorhus/slugify";
55
55
  import { z as z37 } from "zod";
56
56
  import { z as z38 } from "zod";
57
+ import { z as z39 } from "zod";
57
58
  import { z as z40 } from "zod";
58
- import { z as z44 } from "zod";
59
- import { z as z43 } from "zod";
60
- import { z as z42 } from "zod";
61
59
  import { z as z41 } from "zod";
60
+ import { z as z43 } from "zod";
62
61
  import { z as z47 } from "zod";
63
62
  import { z as z46 } from "zod";
64
63
  import { z as z45 } from "zod";
64
+ import { z as z44 } from "zod";
65
65
  import { z as z50 } from "zod";
66
66
  import { z as z49 } from "zod";
67
67
  import { z as z48 } from "zod";
68
- import { z as z51 } from "zod";
69
68
  import { z as z52 } from "zod";
69
+ import { z as z51 } from "zod";
70
70
  import { z as z53 } from "zod";
71
71
  import { z as z54 } from "zod";
72
72
  import { z as z55 } from "zod";
@@ -99,8 +99,8 @@ import { z as z82 } from "zod";
99
99
  import { z as z81 } from "zod";
100
100
  import { z as z85 } from "zod";
101
101
  import { z as z94 } from "zod";
102
- import { z as z87 } from "zod";
103
102
  import { z as z89 } from "zod";
103
+ import { z as z87 } from "zod";
104
104
  import { z as z88 } from "zod";
105
105
  import { z as z90 } from "zod";
106
106
  import { z as z91 } from "zod";
@@ -557,6 +557,7 @@ var ResolvedAsset = Asset.extend({
557
557
  var FigmaFileDownloadScope = z22.object({
558
558
  styles: z22.boolean(),
559
559
  components: z22.boolean(),
560
+ componentSets: z22.boolean(),
560
561
  currentVersion: z22.literal("__latest__").nullable(),
561
562
  publishedVersion: z22.string().nullable(),
562
563
  downloadChunkSize: z22.number().optional(),
@@ -590,71 +591,159 @@ var ImportWarning = z23.object({
590
591
  unsupportedStyleValueType: z23.string().optional(),
591
592
  referenceId: z23.string().optional()
592
593
  });
593
- var TokenDataAliasSchema = z24.object({
594
- aliasTo: z24.string().optional().nullable().transform((v) => v ?? void 0)
594
+ var DesignElementOrigin = z24.object({
595
+ id: z24.string(),
596
+ sourceId: z24.string(),
597
+ name: z24.string()
598
+ });
599
+ var DesignElementBase = z24.object({
600
+ id: z24.string(),
601
+ persistentId: z24.string(),
602
+ meta: ObjectMeta,
603
+ designSystemVersionId: z24.string(),
604
+ createdAt: z24.coerce.date(),
605
+ updatedAt: z24.coerce.date()
606
+ });
607
+ var DesignElementImportedBase = DesignElementBase.extend({
608
+ origin: DesignElementOrigin
609
+ });
610
+ var DesignElementGroupablePart = z24.object({
611
+ parentPersistentId: z24.string().optional(),
612
+ sortOrder: z24.number()
613
+ });
614
+ var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
615
+ var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
616
+ parentPersistentId: z24.string()
617
+ });
618
+ var DesignElementBrandedPart = z24.object({
619
+ brandPersistentId: z24.string()
620
+ });
621
+ var DesignElementSlugPart = z24.object({
622
+ slug: z24.string().optional(),
623
+ userSlug: z24.string().optional()
624
+ });
625
+ var FigmaComponentPropertyType = z25.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
626
+ var FigmaComponentBooleanProperty = z25.object({
627
+ type: z25.literal(FigmaComponentPropertyType.enum.Boolean),
628
+ defaultValue: z25.boolean()
629
+ });
630
+ var FigmaComponentInstanceSwapProperty = z25.object({
631
+ type: z25.literal(FigmaComponentPropertyType.enum.InstanceSwap),
632
+ defaultValue: z25.string(),
633
+ preferredValues: z25.object({
634
+ type: z25.enum(["Component", "ComponentSet"]),
635
+ key: z25.string()
636
+ }).array()
637
+ });
638
+ var FigmaComponentVariantProperty = z25.object({
639
+ type: z25.literal(FigmaComponentPropertyType.enum.Variant),
640
+ defaultValue: z25.string(),
641
+ options: z25.array(z25.string())
642
+ });
643
+ var FigmaComponentTextProperty = z25.object({
644
+ type: z25.literal(FigmaComponentPropertyType.enum.Text),
645
+ defaultValue: z25.string()
646
+ });
647
+ var FigmaComponentProperty = z25.discriminatedUnion("type", [
648
+ FigmaComponentBooleanProperty,
649
+ FigmaComponentInstanceSwapProperty,
650
+ FigmaComponentTextProperty
651
+ ]);
652
+ var FigmaComponentPropertyMap = z25.record(z25.string(), FigmaComponentProperty);
653
+ var FigmaComponentSetProperties = z25.record(
654
+ z25.string(),
655
+ z25.discriminatedUnion("type", [
656
+ FigmaComponentBooleanProperty,
657
+ FigmaComponentInstanceSwapProperty,
658
+ FigmaComponentTextProperty,
659
+ FigmaComponentVariantProperty
660
+ ])
661
+ );
662
+ var FigmaComponentOriginPart = z26.object({
663
+ nodeId: z26.string().optional(),
664
+ width: z26.number().optional(),
665
+ height: z26.number().optional()
666
+ });
667
+ var FigmaComponentAsset = z26.object({
668
+ assetId: z26.string(),
669
+ assetPath: z26.string()
670
+ });
671
+ var FigmaComponentOrigin = DesignElementOrigin.extend(FigmaComponentOriginPart.shape);
672
+ var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
673
+ origin: FigmaComponentOrigin.optional(),
674
+ thumbnail: FigmaComponentAsset,
675
+ componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
676
+ svg: FigmaComponentAsset.optional(),
677
+ isAsset: z26.boolean(),
678
+ parentComponentPersistentId: nullishToOptional(z26.string())
679
+ });
680
+ var TokenDataAliasSchema = z27.object({
681
+ aliasTo: z27.string().optional().nullable().transform((v) => v ?? void 0)
595
682
  });
596
683
  function tokenAliasOrValue(value) {
597
684
  return TokenDataAliasSchema.extend({
598
685
  value: value.optional().nullable().transform((v) => v ?? void 0)
599
686
  });
600
687
  }
601
- var DimensionUnit = z25.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
602
- var DimensionValue = z25.object({
688
+ var DimensionUnit = z28.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
689
+ var DimensionValue = z28.object({
603
690
  unit: DimensionUnit,
604
- measure: z25.number()
691
+ measure: z28.number()
605
692
  });
606
693
  var DimensionTokenData = tokenAliasOrValue(DimensionValue);
607
- var BlurType = z26.enum(["Layer", "Background"]);
608
- var BlurValue = z26.object({
694
+ var BlurType = z29.enum(["Layer", "Background"]);
695
+ var BlurValue = z29.object({
609
696
  type: BlurType,
610
697
  radius: DimensionTokenData
611
698
  });
612
699
  var BlurTokenData = tokenAliasOrValue(BlurValue);
613
- var BorderRadiusUnit = z27.enum(["Pixels", "Rem", "Percent"]);
614
- var BorderRadiusValue = z27.object({
700
+ var BorderRadiusUnit = z30.enum(["Pixels", "Rem", "Percent"]);
701
+ var BorderRadiusValue = z30.object({
615
702
  unit: BorderRadiusUnit,
616
- measure: z27.number()
703
+ measure: z30.number()
617
704
  });
618
705
  var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
619
- var BorderWidthUnit = z28.enum(["Pixels"]);
620
- var BorderWidthValue = z28.object({
706
+ var BorderWidthUnit = z31.enum(["Pixels"]);
707
+ var BorderWidthValue = z31.object({
621
708
  unit: BorderWidthUnit,
622
- measure: z28.number()
709
+ measure: z31.number()
623
710
  });
624
711
  var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
625
- var OpacityValue = z29.object({
626
- unit: z29.enum(["Raw", "Pixels"]),
627
- measure: z29.number()
712
+ var OpacityValue = z32.object({
713
+ unit: z32.enum(["Raw", "Pixels"]),
714
+ measure: z32.number()
628
715
  });
629
716
  var OpacityTokenData = tokenAliasOrValue(OpacityValue);
630
- var ColorValue = z30.object({
717
+ var ColorValue = z33.object({
631
718
  opacity: OpacityTokenData,
632
- color: z30.string().or(TokenDataAliasSchema)
719
+ color: z33.string().or(TokenDataAliasSchema)
633
720
  });
634
721
  var ColorTokenData = tokenAliasOrValue(ColorValue);
635
- var BorderPosition = z31.enum(["Inside", "Center", "Outside"]);
636
- var BorderStyle = z31.enum(["Dashed", "Dotted", "Solid", "Groove"]);
637
- var BorderValue = z31.object({
722
+ var BorderPosition = z34.enum(["Inside", "Center", "Outside"]);
723
+ var BorderStyle = z34.enum(["Dashed", "Dotted", "Solid", "Groove"]);
724
+ var BorderValue = z34.object({
638
725
  color: ColorTokenData,
639
726
  width: BorderWidthTokenData,
640
727
  position: BorderPosition,
641
728
  style: BorderStyle.optional()
642
729
  });
643
730
  var BorderTokenData = tokenAliasOrValue(BorderValue);
644
- var ComponentElementData = z32.object({
645
- value: z32.object({
646
- thumbnailImage: z32.object({
647
- value: z32.object({
648
- url: z32.string(),
649
- assetId: z32.string()
731
+ var ComponentElementData = z35.object({
732
+ value: z35.object({
733
+ thumbnailImage: z35.object({
734
+ value: z35.object({
735
+ url: z35.string(),
736
+ assetId: z35.string()
650
737
  })
651
738
  }),
652
- svg: z32.object({
653
- value: z32.object({
654
- url: z32.string(),
655
- assetId: z32.string()
739
+ svg: z35.object({
740
+ value: z35.object({
741
+ url: z35.string(),
742
+ assetId: z35.string()
656
743
  })
657
- }).optional()
744
+ }).optional(),
745
+ parentComponentPersistentId: nullishToOptional(z35.string()),
746
+ componentPropertyDefinitions: nullishToOptional(FigmaComponentPropertyMap)
658
747
  })
659
748
  });
660
749
  var SupernovaException = class _SupernovaException extends Error {
@@ -764,25 +853,25 @@ function groupBy(items, keyFn) {
764
853
  }
765
854
  return result;
766
855
  }
767
- var ContentLoadInstruction = z33.object({
768
- from: z33.string(),
769
- to: z33.string(),
770
- authorizationHeaderKvsId: z33.string().optional(),
771
- timeout: z33.number().optional()
856
+ var ContentLoadInstruction = z36.object({
857
+ from: z36.string(),
858
+ to: z36.string(),
859
+ authorizationHeaderKvsId: z36.string().optional(),
860
+ timeout: z36.number().optional()
772
861
  });
773
- var ContentLoaderPayload = z33.object({
774
- type: z33.literal("Single"),
862
+ var ContentLoaderPayload = z36.object({
863
+ type: z36.literal("Single"),
775
864
  instruction: ContentLoadInstruction
776
865
  }).or(
777
- z33.object({
778
- type: z33.literal("Multiple"),
779
- loadingChunkSize: z33.number().optional(),
780
- instructions: z33.array(ContentLoadInstruction)
866
+ z36.object({
867
+ type: z36.literal("Multiple"),
868
+ loadingChunkSize: z36.number().optional(),
869
+ instructions: z36.array(ContentLoadInstruction)
781
870
  })
782
871
  ).or(
783
- z33.object({
784
- type: z33.literal("S3"),
785
- location: z33.string()
872
+ z36.object({
873
+ type: z36.literal("S3"),
874
+ location: z36.string()
786
875
  })
787
876
  );
788
877
  var RESERVED_SLUGS = [
@@ -1406,53 +1495,53 @@ var RESERVED_SLUGS = [
1406
1495
  ];
1407
1496
  var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
1408
1497
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
1409
- var ElementPropertyTypeSchema = z34.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
1410
- var ElementPropertyTargetType = z34.enum(["Token", "Component", "DocumentationPage"]);
1411
- var ElementPropertyLinkType = z34.enum(["FigmaComponent", "DocumentationPage"]);
1498
+ var ElementPropertyTypeSchema = z37.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
1499
+ var ElementPropertyTargetType = z37.enum(["Token", "Component", "DocumentationPage"]);
1500
+ var ElementPropertyLinkType = z37.enum(["FigmaComponent", "DocumentationPage"]);
1412
1501
  var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
1413
- var ColorTokenInlineData = z34.object({
1414
- value: z34.string()
1502
+ var ColorTokenInlineData = z37.object({
1503
+ value: z37.string()
1415
1504
  });
1416
- var ElementPropertyDefinitionOption = z34.object({
1417
- id: z34.string(),
1418
- name: z34.string(),
1505
+ var ElementPropertyDefinitionOption = z37.object({
1506
+ id: z37.string(),
1507
+ name: z37.string(),
1419
1508
  backgroundColor: ColorTokenInlineData.optional()
1420
1509
  });
1421
- var ElementPropertyDefinition = z34.object({
1422
- id: z34.string(),
1423
- designSystemVersionId: z34.string(),
1424
- persistentId: z34.string(),
1425
- name: z34.string(),
1426
- codeName: z34.string().regex(CODE_NAME_REGEX),
1427
- description: z34.string(),
1510
+ var ElementPropertyDefinition = z37.object({
1511
+ id: z37.string(),
1512
+ designSystemVersionId: z37.string(),
1513
+ persistentId: z37.string(),
1514
+ name: z37.string(),
1515
+ codeName: z37.string().regex(CODE_NAME_REGEX),
1516
+ description: z37.string(),
1428
1517
  type: ElementPropertyTypeSchema,
1429
1518
  targetElementType: ElementPropertyTargetType,
1430
- options: z34.array(ElementPropertyDefinitionOption).optional(),
1519
+ options: z37.array(ElementPropertyDefinitionOption).optional(),
1431
1520
  linkElementType: ElementPropertyLinkType.optional()
1432
1521
  });
1433
1522
  var ElementPropertyType = ElementPropertyTypeSchema.enum;
1434
- var ElementPropertyValue = z35.object({
1435
- id: z35.string(),
1436
- designSystemVersionId: z35.string(),
1437
- targetElementPersistentId: z35.string(),
1438
- definitionPersistentId: z35.string(),
1439
- stringValue: z35.string().nullish(),
1440
- numberValue: z35.number().nullish(),
1441
- booleanValue: z35.boolean().nullish(),
1442
- referenceValue: z35.string().nullish(),
1443
- referenceValuePreview: z35.string().optional()
1444
- });
1445
- var Point2D = z36.object({
1446
- x: z36.number(),
1447
- y: z36.number()
1523
+ var ElementPropertyValue = z38.object({
1524
+ id: z38.string(),
1525
+ designSystemVersionId: z38.string(),
1526
+ targetElementPersistentId: z38.string(),
1527
+ definitionPersistentId: z38.string(),
1528
+ stringValue: z38.string().nullish(),
1529
+ numberValue: z38.number().nullish(),
1530
+ booleanValue: z38.boolean().nullish(),
1531
+ referenceValue: z38.string().nullish(),
1532
+ referenceValuePreview: z38.string().optional()
1533
+ });
1534
+ var Point2D = z39.object({
1535
+ x: z39.number(),
1536
+ y: z39.number()
1448
1537
  });
1449
1538
  var nullSize = { height: -1, width: -1 };
1450
1539
  function isNullSize(size) {
1451
1540
  return size.height === nullSize.height && size.width === nullSize.width;
1452
1541
  }
1453
- var Size = z37.object({
1454
- width: z37.number().nullish().transform((v) => v ?? nullSize.width),
1455
- height: z37.number().nullish().transform((v) => v ?? nullSize.height)
1542
+ var Size = z40.object({
1543
+ width: z40.number().nullish().transform((v) => v ?? nullSize.width),
1544
+ height: z40.number().nullish().transform((v) => v ?? nullSize.height)
1456
1545
  });
1457
1546
  var SizeOrUndefined = Size.optional().transform((v) => {
1458
1547
  if (!v)
@@ -1461,7 +1550,7 @@ var SizeOrUndefined = Size.optional().transform((v) => {
1461
1550
  return void 0;
1462
1551
  return v;
1463
1552
  });
1464
- var DesignTokenType = z38.enum([
1553
+ var DesignTokenType = z41.enum([
1465
1554
  "Color",
1466
1555
  "Border",
1467
1556
  "Gradient",
@@ -1493,7 +1582,7 @@ var DesignTokenType = z38.enum([
1493
1582
  ]);
1494
1583
  var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
1495
1584
  var DesignElementType = DesignTokenType.or(
1496
- z38.enum([
1585
+ z41.enum([
1497
1586
  "Component",
1498
1587
  "Theme",
1499
1588
  "Documentation",
@@ -1505,7 +1594,7 @@ var DesignElementType = DesignTokenType.or(
1505
1594
  "PageBlock"
1506
1595
  ])
1507
1596
  );
1508
- var DesignElementCategory = z38.enum([
1597
+ var DesignElementCategory = z41.enum([
1509
1598
  "Token",
1510
1599
  "Component",
1511
1600
  "DesignSystemComponent",
@@ -1513,37 +1602,37 @@ var DesignElementCategory = z38.enum([
1513
1602
  "Theme",
1514
1603
  "PageBlock"
1515
1604
  ]);
1516
- var DesignSystemElementExportProps = z38.object({
1517
- isAsset: z38.boolean().nullish().transform((v) => v ?? false),
1518
- codeName: z38.string().nullish()
1519
- });
1520
- var ShallowDesignElement = z38.object({
1521
- id: z38.string(),
1522
- persistentId: z38.string(),
1523
- designSystemVersionId: z38.string(),
1605
+ var DesignSystemElementExportProps = z41.object({
1606
+ isAsset: z41.boolean().nullish().transform((v) => v ?? false),
1607
+ codeName: z41.string().nullish()
1608
+ });
1609
+ var ShallowDesignElement = z41.object({
1610
+ id: z41.string(),
1611
+ persistentId: z41.string(),
1612
+ designSystemVersionId: z41.string(),
1524
1613
  type: DesignElementType,
1525
- brandPersistentId: z38.string().optional(),
1526
- parentPersistentId: z38.string().optional(),
1527
- shortPersistentId: z38.string().optional(),
1614
+ brandPersistentId: z41.string().optional(),
1615
+ parentPersistentId: z41.string().optional(),
1616
+ shortPersistentId: z41.string().optional(),
1528
1617
  childType: DesignElementType.optional(),
1529
- sortOrder: z38.number(),
1530
- origin: z38.record(z38.any()).optional(),
1531
- createdAt: z38.coerce.date(),
1532
- updatedAt: z38.coerce.date()
1618
+ sortOrder: z41.number(),
1619
+ origin: z41.record(z41.any()).optional(),
1620
+ createdAt: z41.coerce.date(),
1621
+ updatedAt: z41.coerce.date()
1533
1622
  });
1534
1623
  var DesignElement = ShallowDesignElement.extend({
1535
1624
  meta: ObjectMeta,
1536
- slug: z38.string().optional(),
1537
- userSlug: z38.string().optional(),
1625
+ slug: z41.string().optional(),
1626
+ userSlug: z41.string().optional(),
1538
1627
  exportProperties: DesignSystemElementExportProps.optional(),
1539
- data: z38.record(z38.any()),
1540
- origin: z38.record(z38.any()).optional()
1628
+ data: z41.record(z41.any()),
1629
+ origin: z41.record(z41.any()).optional()
1541
1630
  });
1542
1631
  var HierarchicalElements = DesignTokenType.or(
1543
- z38.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
1632
+ z41.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
1544
1633
  );
1545
- var PageBlockCalloutType = z39.enum(["Info", "Primary", "Success", "Warning", "Error"]);
1546
- var PageBlockTypeV1 = z39.enum([
1634
+ var PageBlockCalloutType = z42.enum(["Info", "Primary", "Success", "Warning", "Error"]);
1635
+ var PageBlockTypeV1 = z42.enum([
1547
1636
  "Text",
1548
1637
  "Heading",
1549
1638
  "Code",
@@ -1577,7 +1666,7 @@ var PageBlockTypeV1 = z39.enum([
1577
1666
  "TableCell",
1578
1667
  "Guidelines"
1579
1668
  ]);
1580
- var PageBlockCodeLanguage = z39.enum([
1669
+ var PageBlockCodeLanguage = z42.enum([
1581
1670
  "Angular",
1582
1671
  "Bash",
1583
1672
  "C",
@@ -1611,70 +1700,70 @@ var PageBlockCodeLanguage = z39.enum([
1611
1700
  "XML",
1612
1701
  "YAML"
1613
1702
  ]);
1614
- var PageBlockAlignment = z39.enum(["Left", "Center", "Stretch", "Right"]);
1615
- var PageBlockThemeType = z39.enum(["Override", "Comparison"]);
1616
- var PageBlockAssetType = z39.enum(["image", "figmaFrame"]);
1617
- var PageBlockTilesAlignment = z39.enum(["Center", "FrameHeight"]);
1618
- var PageBlockTilesLayout = z39.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
1619
- var PageBlockTheme = z39.object({
1620
- themeIds: z39.array(z39.string()),
1703
+ var PageBlockAlignment = z42.enum(["Left", "Center", "Stretch", "Right"]);
1704
+ var PageBlockThemeType = z42.enum(["Override", "Comparison"]);
1705
+ var PageBlockAssetType = z42.enum(["image", "figmaFrame"]);
1706
+ var PageBlockTilesAlignment = z42.enum(["Center", "FrameHeight"]);
1707
+ var PageBlockTilesLayout = z42.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
1708
+ var PageBlockTheme = z42.object({
1709
+ themeIds: z42.array(z42.string()),
1621
1710
  type: PageBlockThemeType
1622
1711
  });
1623
- var PageBlockUrlPreview = z39.object({
1624
- title: nullishToOptional(z39.string()),
1625
- description: nullishToOptional(z39.string()),
1626
- thumbnailUrl: nullishToOptional(z39.string())
1627
- });
1628
- var PageBlockFrameOrigin = z39.object({
1629
- sourceFileName: nullishToOptional(z39.string()),
1630
- title: nullishToOptional(z39.string()),
1631
- previewUrl: nullishToOptional(z39.string()),
1632
- valid: nullishToOptional(z39.boolean()),
1633
- referenceId: nullishToOptional(z39.string()),
1634
- assetId: nullishToOptional(z39.string()),
1635
- assetScale: nullishToOptional(z39.number()),
1636
- width: nullishToOptional(z39.number()),
1637
- height: nullishToOptional(z39.number())
1638
- });
1639
- var PageBlockFrame = z39.object({
1640
- persistentId: z39.string(),
1641
- sourceId: z39.string(),
1642
- sourceFrameId: z39.string(),
1643
- title: nullishToOptional(z39.string()),
1644
- description: nullishToOptional(z39.string()),
1712
+ var PageBlockUrlPreview = z42.object({
1713
+ title: nullishToOptional(z42.string()),
1714
+ description: nullishToOptional(z42.string()),
1715
+ thumbnailUrl: nullishToOptional(z42.string())
1716
+ });
1717
+ var PageBlockFrameOrigin = z42.object({
1718
+ sourceFileName: nullishToOptional(z42.string()),
1719
+ title: nullishToOptional(z42.string()),
1720
+ previewUrl: nullishToOptional(z42.string()),
1721
+ valid: nullishToOptional(z42.boolean()),
1722
+ referenceId: nullishToOptional(z42.string()),
1723
+ assetId: nullishToOptional(z42.string()),
1724
+ assetScale: nullishToOptional(z42.number()),
1725
+ width: nullishToOptional(z42.number()),
1726
+ height: nullishToOptional(z42.number())
1727
+ });
1728
+ var PageBlockFrame = z42.object({
1729
+ persistentId: z42.string(),
1730
+ sourceId: z42.string(),
1731
+ sourceFrameId: z42.string(),
1732
+ title: nullishToOptional(z42.string()),
1733
+ description: nullishToOptional(z42.string()),
1645
1734
  backgroundColor: nullishToOptional(ColorTokenInlineData),
1646
1735
  origin: nullishToOptional(PageBlockFrameOrigin)
1647
1736
  });
1648
- var PageBlockAsset = z39.object({
1737
+ var PageBlockAsset = z42.object({
1649
1738
  type: PageBlockAssetType,
1650
- id: nullishToOptional(z39.string()),
1651
- url: nullishToOptional(z39.string()),
1739
+ id: nullishToOptional(z42.string()),
1740
+ url: nullishToOptional(z42.string()),
1652
1741
  figmaFrame: nullishToOptional(PageBlockFrame)
1653
1742
  });
1654
- var PageBlockLinkPreview = z39.object({
1655
- title: nullishToOptional(z39.string()),
1656
- valid: nullishToOptional(z39.boolean())
1743
+ var PageBlockLinkPreview = z42.object({
1744
+ title: nullishToOptional(z42.string()),
1745
+ valid: nullishToOptional(z42.boolean())
1657
1746
  });
1658
- var PageBlockShortcut = z39.object({
1659
- persistentId: z39.string(),
1660
- title: nullishToOptional(z39.string()),
1661
- description: nullishToOptional(z39.string()),
1747
+ var PageBlockShortcut = z42.object({
1748
+ persistentId: z42.string(),
1749
+ title: nullishToOptional(z42.string()),
1750
+ description: nullishToOptional(z42.string()),
1662
1751
  asset: nullishToOptional(PageBlockAsset),
1663
- documentationItemId: nullishToOptional(z39.string()),
1664
- pageHeadingId: nullishToOptional(z39.string()),
1665
- url: nullishToOptional(z39.string()),
1666
- openInNewTab: nullishToOptional(z39.boolean()),
1752
+ documentationItemId: nullishToOptional(z42.string()),
1753
+ pageHeadingId: nullishToOptional(z42.string()),
1754
+ url: nullishToOptional(z42.string()),
1755
+ openInNewTab: nullishToOptional(z42.boolean()),
1667
1756
  urlPreview: nullishToOptional(PageBlockUrlPreview),
1668
1757
  documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
1669
1758
  });
1670
- var PageBlockCustomBlockPropertyImageValue = z39.object({
1759
+ var PageBlockCustomBlockPropertyImageValue = z42.object({
1671
1760
  asset: nullishToOptional(PageBlockAsset),
1672
- assetId: nullishToOptional(z39.string()),
1673
- assetUrl: nullishToOptional(z39.string())
1761
+ assetId: nullishToOptional(z42.string()),
1762
+ assetUrl: nullishToOptional(z42.string())
1674
1763
  });
1675
- var PageBlockCustomBlockPropertyValue = z39.object({
1676
- key: z39.string(),
1677
- value: z39.any()
1764
+ var PageBlockCustomBlockPropertyValue = z42.object({
1765
+ key: z42.string(),
1766
+ value: z42.any()
1678
1767
  // TODO Artem: for some reason there are cases when there's an array here in the DB
1679
1768
  // e.g. element id 67451 in the dev db
1680
1769
  // value: z
@@ -1685,117 +1774,117 @@ var PageBlockCustomBlockPropertyValue = z39.object({
1685
1774
  // .or(TypographyTokenData)
1686
1775
  // .or(PageBlockCustomBlockPropertyImageValue),
1687
1776
  });
1688
- var PageBlockFigmaFrameProperties = z39.object({
1777
+ var PageBlockFigmaFrameProperties = z42.object({
1689
1778
  color: nullishToOptional(
1690
- z39.object({
1691
- value: z39.string()
1779
+ z42.object({
1780
+ value: z42.string()
1692
1781
  })
1693
1782
  ),
1694
1783
  alignment: PageBlockTilesAlignment,
1695
1784
  layout: PageBlockTilesLayout,
1696
1785
  backgroundColor: nullishToOptional(ColorTokenInlineData),
1697
- showTitles: z39.boolean()
1786
+ showTitles: z42.boolean()
1698
1787
  });
1699
- var PageBlockRenderCodeProperties = z39.object({
1700
- showCode: z39.boolean(),
1701
- showControls: z39.boolean().optional()
1788
+ var PageBlockRenderCodeProperties = z42.object({
1789
+ showCode: z42.boolean(),
1790
+ showControls: z42.boolean().optional()
1702
1791
  });
1703
- var PageBlockAssetComponent = z39.object({
1704
- persistentId: z39.string(),
1705
- componentAssetId: z39.string(),
1706
- title: nullishToOptional(z39.string()),
1707
- description: nullishToOptional(z39.string()),
1792
+ var PageBlockAssetComponent = z42.object({
1793
+ persistentId: z42.string(),
1794
+ componentAssetId: z42.string(),
1795
+ title: nullishToOptional(z42.string()),
1796
+ description: nullishToOptional(z42.string()),
1708
1797
  backgroundColor: nullishToOptional(ColorTokenInlineData)
1709
1798
  });
1710
- var PageBlockTableColumn = z39.object({
1711
- id: z39.string(),
1799
+ var PageBlockTableColumn = z42.object({
1800
+ id: z42.string(),
1712
1801
  width: DimensionTokenData
1713
1802
  });
1714
- var PageBlockTableProperties = z39.object({
1715
- showBorders: z39.boolean(),
1716
- showHeaderRow: z39.boolean(),
1717
- showHeaderColumn: z39.boolean(),
1718
- columns: z39.array(PageBlockTableColumn)
1803
+ var PageBlockTableProperties = z42.object({
1804
+ showBorders: z42.boolean(),
1805
+ showHeaderRow: z42.boolean(),
1806
+ showHeaderColumn: z42.boolean(),
1807
+ columns: z42.array(PageBlockTableColumn)
1719
1808
  });
1720
- var PageBlockTextSpanAttributeType = z39.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
1721
- var PageBlockTextSpanAttribute = z39.object({
1809
+ var PageBlockTextSpanAttributeType = z42.enum(["Bold", "Italic", "Link", "Strikethrough", "Code", "Comment"]);
1810
+ var PageBlockTextSpanAttribute = z42.object({
1722
1811
  type: PageBlockTextSpanAttributeType,
1723
1812
  // Link attributes
1724
- link: nullishToOptional(z39.string()),
1725
- documentationItemId: nullishToOptional(z39.string()),
1726
- openInNewWindow: nullishToOptional(z39.boolean()),
1813
+ link: nullishToOptional(z42.string()),
1814
+ documentationItemId: nullishToOptional(z42.string()),
1815
+ openInNewWindow: nullishToOptional(z42.boolean()),
1727
1816
  // deprecated. use openInNewTab
1728
- openInNewTab: nullishToOptional(z39.boolean()),
1817
+ openInNewTab: nullishToOptional(z42.boolean()),
1729
1818
  // Comment attributes
1730
- commentHighlightId: nullishToOptional(z39.string()),
1731
- commentIsResolved: nullishToOptional(z39.boolean())
1819
+ commentHighlightId: nullishToOptional(z42.string()),
1820
+ commentIsResolved: nullishToOptional(z42.boolean())
1732
1821
  });
1733
- var PageBlockTextSpan = z39.object({
1734
- text: z39.string(),
1735
- attributes: z39.array(PageBlockTextSpanAttribute)
1822
+ var PageBlockTextSpan = z42.object({
1823
+ text: z42.string(),
1824
+ attributes: z42.array(PageBlockTextSpanAttribute)
1736
1825
  });
1737
- var PageBlockText = z39.object({
1738
- spans: z39.array(PageBlockTextSpan)
1826
+ var PageBlockText = z42.object({
1827
+ spans: z42.array(PageBlockTextSpan)
1739
1828
  });
1740
- var PageBlockGuideline = z39.object({
1741
- description: nullishToOptional(z39.string()),
1829
+ var PageBlockGuideline = z42.object({
1830
+ description: nullishToOptional(z42.string()),
1742
1831
  asset: nullishToOptional(PageBlockAsset),
1743
- type: z39.string(),
1744
- imageAlt: nullishToOptional(z39.string()),
1745
- imageCaption: nullishToOptional(z39.string()),
1832
+ type: z42.string(),
1833
+ imageAlt: nullishToOptional(z42.string()),
1834
+ imageCaption: nullishToOptional(z42.string()),
1746
1835
  imageAlignment: nullishToOptional(PageBlockAlignment)
1747
1836
  });
1748
- var PageBlockBaseV1 = z39.object({
1749
- persistentId: z39.string(),
1837
+ var PageBlockBaseV1 = z42.object({
1838
+ persistentId: z42.string(),
1750
1839
  type: PageBlockTypeV1,
1751
- numberOfColumns: nullishToOptional(z39.number()),
1840
+ numberOfColumns: nullishToOptional(z42.number()),
1752
1841
  // Element linking
1753
- designObjectId: nullishToOptional(z39.string()),
1754
- designObjectIds: nullishToOptional(z39.array(z39.string())),
1755
- tokenType: nullishToOptional(DesignTokenType.or(z39.literal("Font"))),
1756
- showNestedGroups: nullishToOptional(z39.boolean()),
1757
- brandId: nullishToOptional(z39.string()),
1842
+ designObjectId: nullishToOptional(z42.string()),
1843
+ designObjectIds: nullishToOptional(z42.array(z42.string())),
1844
+ tokenType: nullishToOptional(DesignTokenType.or(z42.literal("Font"))),
1845
+ showNestedGroups: nullishToOptional(z42.boolean()),
1846
+ brandId: nullishToOptional(z42.string()),
1758
1847
  // Rich text
1759
1848
  text: nullishToOptional(PageBlockText),
1760
- caption: nullishToOptional(z39.string()),
1761
- headingType: nullishToOptional(z39.number().min(1).max(3)),
1849
+ caption: nullishToOptional(z42.string()),
1850
+ headingType: nullishToOptional(z42.number().min(1).max(3)),
1762
1851
  codeLanguage: nullishToOptional(PageBlockCodeLanguage),
1763
1852
  calloutType: nullishToOptional(PageBlockCalloutType),
1764
- urlInput: nullishToOptional(z39.string()),
1765
- url: nullishToOptional(z39.string()),
1853
+ urlInput: nullishToOptional(z42.string()),
1854
+ url: nullishToOptional(z42.string()),
1766
1855
  urlPreview: nullishToOptional(PageBlockUrlPreview),
1767
1856
  // Image
1768
1857
  asset: nullishToOptional(PageBlockAsset),
1769
1858
  alignment: nullishToOptional(PageBlockAlignment),
1770
1859
  // Shortcuts block
1771
- shortcuts: nullishToOptional(z39.array(PageBlockShortcut)),
1860
+ shortcuts: nullishToOptional(z42.array(PageBlockShortcut)),
1772
1861
  // Guidelines
1773
1862
  guidelines: nullishToOptional(PageBlockGuideline.array()),
1774
1863
  // Custom blocks
1775
- customBlockKey: nullishToOptional(z39.string()),
1776
- customBlockProperties: nullishToOptional(z39.array(PageBlockCustomBlockPropertyValue)),
1777
- variantKey: nullishToOptional(z39.string()),
1864
+ customBlockKey: nullishToOptional(z42.string()),
1865
+ customBlockProperties: nullishToOptional(z42.array(PageBlockCustomBlockPropertyValue)),
1866
+ variantKey: nullishToOptional(z42.string()),
1778
1867
  // Figma frames
1779
1868
  figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
1780
- figmaFrames: nullishToOptional(z39.array(PageBlockFrame)),
1869
+ figmaFrames: nullishToOptional(z42.array(PageBlockFrame)),
1781
1870
  // Generic
1782
1871
  size: nullishToOptional(Size),
1783
1872
  backgroundColor: nullishToOptional(ColorTokenInlineData),
1784
1873
  // Render code
1785
1874
  renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
1786
1875
  // Component assets
1787
- componentAssets: nullishToOptional(z39.array(PageBlockAssetComponent)),
1876
+ componentAssets: nullishToOptional(z42.array(PageBlockAssetComponent)),
1788
1877
  // Tables
1789
1878
  tableProperties: nullishToOptional(PageBlockTableProperties),
1790
- columnId: nullishToOptional(z39.string()),
1879
+ columnId: nullishToOptional(z42.string()),
1791
1880
  // Token spreadsheet
1792
1881
  theme: nullishToOptional(PageBlockTheme),
1793
- blacklistedElementProperties: nullishToOptional(z39.array(z39.string())),
1882
+ blacklistedElementProperties: nullishToOptional(z42.array(z42.string())),
1794
1883
  // Arbitrary
1795
- userMetadata: nullishToOptional(z39.string())
1884
+ userMetadata: nullishToOptional(z42.string())
1796
1885
  });
1797
1886
  var PageBlockV1 = PageBlockBaseV1.extend({
1798
- children: z39.lazy(
1887
+ children: z42.lazy(
1799
1888
  () => PageBlockV1.array().nullish().transform((t) => t ?? [])
1800
1889
  )
1801
1890
  });
@@ -1889,265 +1978,265 @@ function sanitizeSpanAttribute(attribute) {
1889
1978
  };
1890
1979
  }
1891
1980
  }
1892
- var PageBlockLinkType = z40.enum(["DocumentationItem", "PageHeading", "Url"]);
1893
- var PageBlockImageType = z40.enum(["Resource", "FigmaNode"]);
1894
- var PageBlockImageAlignment = z40.enum(["Left", "Center", "Stretch"]);
1895
- var PageBlockTableCellAlignment = z40.enum(["Left", "Center", "Right"]);
1896
- var PageBlockPreviewContainerSize = z40.enum(["Centered", "NaturalHeight"]);
1897
- var PageBlockThemeDisplayMode = z40.enum(["Split", "Override"]);
1898
- var PageBlockImageResourceReference = z40.object({
1899
- resourceId: z40.string(),
1900
- url: z40.string()
1981
+ var PageBlockLinkType = z43.enum(["DocumentationItem", "PageHeading", "Url"]);
1982
+ var PageBlockImageType = z43.enum(["Resource", "FigmaNode"]);
1983
+ var PageBlockImageAlignment = z43.enum(["Left", "Center", "Stretch"]);
1984
+ var PageBlockTableCellAlignment = z43.enum(["Left", "Center", "Right"]);
1985
+ var PageBlockPreviewContainerSize = z43.enum(["Centered", "NaturalHeight"]);
1986
+ var PageBlockThemeDisplayMode = z43.enum(["Split", "Override"]);
1987
+ var PageBlockImageResourceReference = z43.object({
1988
+ resourceId: z43.string(),
1989
+ url: z43.string()
1901
1990
  });
1902
- var PageBlockResourceFrameNodeReference = z40.object({
1903
- sourceId: z40.string(),
1904
- frameReferenceId: z40.string()
1991
+ var PageBlockResourceFrameNodeReference = z43.object({
1992
+ sourceId: z43.string(),
1993
+ frameReferenceId: z43.string()
1905
1994
  });
1906
- var PageBlockImageReference = z40.object({
1995
+ var PageBlockImageReference = z43.object({
1907
1996
  type: PageBlockImageType,
1908
1997
  resource: PageBlockImageResourceReference.optional(),
1909
1998
  figmaNode: PageBlockResourceFrameNodeReference.optional()
1910
1999
  });
1911
- var PageBlockColorV2 = z40.object({
1912
- value: z40.string(),
1913
- referencedTokenId: z40.string().optional()
2000
+ var PageBlockColorV2 = z43.object({
2001
+ value: z43.string(),
2002
+ referencedTokenId: z43.string().optional()
1914
2003
  });
1915
- var PageBlockAssetEntityMeta = z40.object({
1916
- title: z40.string().optional(),
1917
- description: z40.string().optional(),
2004
+ var PageBlockAssetEntityMeta = z43.object({
2005
+ title: z43.string().optional(),
2006
+ description: z43.string().optional(),
1918
2007
  backgroundColor: PageBlockColorV2.optional()
1919
2008
  });
1920
- var PageBlockFigmaComponentEntityMeta = z40.object({
1921
- title: z40.string().optional(),
1922
- description: z40.string().optional(),
2009
+ var PageBlockFigmaComponentEntityMeta = z43.object({
2010
+ title: z43.string().optional(),
2011
+ description: z43.string().optional(),
1923
2012
  backgroundColor: PageBlockColorV2.optional(),
1924
- selectedComponentProperties: z40.array(z40.string()).optional()
2013
+ selectedComponentProperties: z43.array(z43.string()).optional()
1925
2014
  });
1926
- var PageBlockFigmaNodeEntityMeta = z40.object({
1927
- title: z40.string().optional(),
1928
- description: z40.string().optional(),
2015
+ var PageBlockFigmaNodeEntityMeta = z43.object({
2016
+ title: z43.string().optional(),
2017
+ description: z43.string().optional(),
1929
2018
  backgroundColor: PageBlockColorV2.optional()
1930
2019
  });
1931
- var PageBlockAppearanceV2 = z40.object({
2020
+ var PageBlockAppearanceV2 = z43.object({
1932
2021
  itemBackgroundColor: PageBlockColorV2.optional(),
1933
- numberOfColumns: z40.number().optional()
2022
+ numberOfColumns: z43.number().optional()
1934
2023
  });
1935
- var PageBlockItemUntypedValue = z40.object({
1936
- value: z40.any()
1937
- }).and(z40.record(z40.any()));
1938
- var PageBlockLinkV2 = z40.object({
2024
+ var PageBlockItemUntypedValue = z43.object({
2025
+ value: z43.any()
2026
+ }).and(z43.record(z43.any()));
2027
+ var PageBlockLinkV2 = z43.object({
1939
2028
  type: PageBlockLinkType,
1940
- documentationItemId: z40.string().optional(),
1941
- pageHeadingId: z40.string().optional(),
1942
- url: z40.string().optional(),
1943
- openInNewTab: z40.boolean().optional()
2029
+ documentationItemId: z43.string().optional(),
2030
+ pageHeadingId: z43.string().optional(),
2031
+ url: z43.string().optional(),
2032
+ openInNewTab: z43.boolean().optional()
1944
2033
  });
1945
- var PageBlockItemV2 = z40.object({
1946
- id: z40.string(),
2034
+ var PageBlockItemV2 = z43.object({
2035
+ id: z43.string(),
1947
2036
  linksTo: PageBlockLinkV2.optional(),
1948
- props: z40.record(PageBlockItemUntypedValue)
2037
+ props: z43.record(PageBlockItemUntypedValue)
1949
2038
  });
1950
- var PageBlockDataV2 = z40.object({
1951
- packageId: z40.string(),
1952
- variantId: z40.string().optional(),
1953
- indentLevel: z40.number(),
2039
+ var PageBlockDataV2 = z43.object({
2040
+ packageId: z43.string(),
2041
+ variantId: z43.string().optional(),
2042
+ indentLevel: z43.number(),
1954
2043
  appearance: PageBlockAppearanceV2.optional(),
1955
- items: z40.array(PageBlockItemV2)
2044
+ items: z43.array(PageBlockItemV2)
1956
2045
  });
1957
- var PageBlockItemAssetValue = z40.object({
1958
- selectedPropertyIds: z40.array(z40.string()).optional(),
1959
- showSearch: z40.boolean().optional(),
2046
+ var PageBlockItemAssetValue = z43.object({
2047
+ selectedPropertyIds: z43.array(z43.string()).optional(),
2048
+ showSearch: z43.boolean().optional(),
1960
2049
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
1961
2050
  backgroundColor: PageBlockColorV2.optional(),
1962
- value: z40.array(
1963
- z40.object({
1964
- entityId: z40.string(),
1965
- entityType: z40.enum(["Asset", "AssetGroup"]),
2051
+ value: z43.array(
2052
+ z43.object({
2053
+ entityId: z43.string(),
2054
+ entityType: z43.enum(["Asset", "AssetGroup"]),
1966
2055
  entityMeta: PageBlockAssetEntityMeta.optional()
1967
2056
  })
1968
2057
  ).default([])
1969
2058
  });
1970
- var PageBlockItemAssetPropertyValue = z40.object({
1971
- value: z40.array(z40.string()).default([])
2059
+ var PageBlockItemAssetPropertyValue = z43.object({
2060
+ value: z43.array(z43.string()).default([])
1972
2061
  });
1973
- var PageBlockItemFigmaComponentValue = z40.object({
1974
- showComponentName: z40.boolean().optional(),
1975
- showComponentDescription: z40.boolean().optional(),
1976
- showPropertyList: z40.boolean().optional(),
2062
+ var PageBlockItemFigmaComponentValue = z43.object({
2063
+ showComponentName: z43.boolean().optional(),
2064
+ showComponentDescription: z43.boolean().optional(),
2065
+ showPropertyList: z43.boolean().optional(),
1977
2066
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
1978
2067
  backgroundColor: PageBlockColorV2.optional(),
1979
- value: z40.array(
1980
- z40.object({
1981
- entityId: z40.string(),
1982
- entityType: z40.enum(["FigmaComponent"]),
2068
+ value: z43.array(
2069
+ z43.object({
2070
+ entityId: z43.string(),
2071
+ entityType: z43.enum(["FigmaComponent"]),
1983
2072
  entityMeta: PageBlockFigmaComponentEntityMeta.optional()
1984
2073
  })
1985
2074
  ).default([])
1986
2075
  });
1987
- var PageBlockItemBooleanValue = z40.object({
1988
- value: z40.boolean()
2076
+ var PageBlockItemBooleanValue = z43.object({
2077
+ value: z43.boolean()
1989
2078
  });
1990
- var PageBlockItemCodeValue = z40.object({
2079
+ var PageBlockItemCodeValue = z43.object({
1991
2080
  format: PageBlockCodeLanguage.optional(),
1992
- caption: z40.string().optional(),
1993
- value: z40.string()
1994
- });
1995
- var PageBlockItemSandboxValue = z40.object({
1996
- showCode: z40.boolean().optional(),
1997
- showControls: z40.boolean().optional(),
1998
- backgroundColor: z40.string().optional(),
1999
- alignPreview: z40.enum(["Left", "Center"]).optional(),
2000
- previewHeight: z40.number().optional(),
2001
- value: z40.string()
2002
- });
2003
- var PageBlockItemColorValue = z40.record(z40.any());
2004
- var PageBlockItemComponentValue = z40.object({
2005
- selectedPropertyIds: z40.array(z40.string()).optional(),
2006
- selectedBrandId: z40.string().optional(),
2007
- value: z40.array(
2008
- z40.object({
2009
- entityId: z40.string(),
2010
- entityType: z40.enum(["Component", "ComponentGroup"])
2081
+ caption: z43.string().optional(),
2082
+ value: z43.string()
2083
+ });
2084
+ var PageBlockItemSandboxValue = z43.object({
2085
+ showCode: z43.boolean().optional(),
2086
+ showControls: z43.boolean().optional(),
2087
+ backgroundColor: z43.string().optional(),
2088
+ alignPreview: z43.enum(["Left", "Center"]).optional(),
2089
+ previewHeight: z43.number().optional(),
2090
+ value: z43.string()
2091
+ });
2092
+ var PageBlockItemColorValue = z43.record(z43.any());
2093
+ var PageBlockItemComponentValue = z43.object({
2094
+ selectedPropertyIds: z43.array(z43.string()).optional(),
2095
+ selectedBrandId: z43.string().optional(),
2096
+ value: z43.array(
2097
+ z43.object({
2098
+ entityId: z43.string(),
2099
+ entityType: z43.enum(["Component", "ComponentGroup"])
2011
2100
  })
2012
2101
  ).default([])
2013
2102
  });
2014
- var PageBlockItemComponentPropertyValue = z40.object({
2015
- value: z40.string()
2016
- });
2017
- var PageBlockItemDividerValue = z40.object({});
2018
- var PageBlockItemEmbedValue = z40.object({
2019
- value: z40.string().optional(),
2020
- caption: z40.string().optional(),
2021
- height: z40.number().optional(),
2022
- openGraph: z40.object({
2023
- title: z40.string().optional(),
2024
- description: z40.string().optional(),
2025
- imageUrl: z40.string().optional()
2103
+ var PageBlockItemComponentPropertyValue = z43.object({
2104
+ value: z43.string()
2105
+ });
2106
+ var PageBlockItemDividerValue = z43.object({});
2107
+ var PageBlockItemEmbedValue = z43.object({
2108
+ value: z43.string().optional(),
2109
+ caption: z43.string().optional(),
2110
+ height: z43.number().optional(),
2111
+ openGraph: z43.object({
2112
+ title: z43.string().optional(),
2113
+ description: z43.string().optional(),
2114
+ imageUrl: z43.string().optional()
2026
2115
  }).optional()
2027
2116
  });
2028
- var PageBlockItemFigmaNodeValue = z40.object({
2029
- showSearch: z40.boolean().optional(),
2117
+ var PageBlockItemFigmaNodeValue = z43.object({
2118
+ showSearch: z43.boolean().optional(),
2030
2119
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
2031
2120
  backgroundColor: PageBlockColorV2.optional(),
2032
- showFrameDetails: z40.boolean().optional(),
2033
- value: z40.array(
2034
- z40.object({
2035
- entityId: z40.string(),
2121
+ showFrameDetails: z43.boolean().optional(),
2122
+ value: z43.array(
2123
+ z43.object({
2124
+ entityId: z43.string(),
2036
2125
  entityMeta: PageBlockFigmaNodeEntityMeta.optional()
2037
2126
  })
2038
2127
  ).default([])
2039
2128
  });
2040
- var PageBlockItemImageValue = z40.object({
2041
- alt: z40.string().optional(),
2042
- caption: z40.string().optional(),
2129
+ var PageBlockItemImageValue = z43.object({
2130
+ alt: z43.string().optional(),
2131
+ caption: z43.string().optional(),
2043
2132
  alignment: PageBlockImageAlignment.optional(),
2044
2133
  value: PageBlockImageReference.optional()
2045
2134
  });
2046
- var PageBlockItemMarkdownValue = z40.object({
2047
- value: z40.string()
2135
+ var PageBlockItemMarkdownValue = z43.object({
2136
+ value: z43.string()
2048
2137
  });
2049
- var PageBlockItemMultiRichTextValue = z40.object({
2138
+ var PageBlockItemMultiRichTextValue = z43.object({
2050
2139
  value: PageBlockText.array()
2051
2140
  });
2052
- var PageBlockItemMultiSelectValue = z40.object({
2053
- value: z40.array(z40.string()).default([])
2141
+ var PageBlockItemMultiSelectValue = z43.object({
2142
+ value: z43.array(z43.string()).default([])
2054
2143
  });
2055
- var PageBlockItemNumberValue = z40.object({
2056
- value: z40.number()
2144
+ var PageBlockItemNumberValue = z43.object({
2145
+ value: z43.number()
2057
2146
  });
2058
- var PageBlockItemRichTextValue = z40.object({
2147
+ var PageBlockItemRichTextValue = z43.object({
2059
2148
  value: PageBlockText,
2060
2149
  calloutType: PageBlockCalloutType.optional()
2061
2150
  });
2062
- var PageBlockItemRichTextEditorValue = z40.object({
2063
- value: z40.any()
2151
+ var PageBlockItemRichTextEditorValue = z43.object({
2152
+ value: z43.any()
2064
2153
  });
2065
- var PageBlockItemSingleSelectValue = z40.object({
2066
- value: z40.string()
2154
+ var PageBlockItemSingleSelectValue = z43.object({
2155
+ value: z43.string()
2067
2156
  });
2068
- var PageBlockItemStorybookValue = z40.object({
2069
- caption: z40.string().optional(),
2070
- height: z40.number().optional(),
2071
- embedUrl: z40.string().optional(),
2072
- value: z40.string().optional()
2157
+ var PageBlockItemStorybookValue = z43.object({
2158
+ caption: z43.string().optional(),
2159
+ height: z43.number().optional(),
2160
+ embedUrl: z43.string().optional(),
2161
+ value: z43.string().optional()
2073
2162
  });
2074
- var PageBlockItemTextValue = z40.object({
2075
- value: z40.string()
2163
+ var PageBlockItemTextValue = z43.object({
2164
+ value: z43.string()
2076
2165
  });
2077
- var PageBlockItemTokenValue = z40.object({
2078
- selectedPropertyIds: z40.array(z40.string()).optional(),
2079
- selectedThemeIds: z40.array(z40.string()).optional(),
2166
+ var PageBlockItemTokenValue = z43.object({
2167
+ selectedPropertyIds: z43.array(z43.string()).optional(),
2168
+ selectedThemeIds: z43.array(z43.string()).optional(),
2080
2169
  themeDisplayMode: PageBlockThemeDisplayMode.optional(),
2081
- value: z40.array(
2082
- z40.object({
2083
- entityId: z40.string(),
2084
- entityType: z40.enum(["Token", "TokenGroup"]),
2085
- entityMeta: z40.object({
2086
- showNestedGroups: z40.boolean().optional()
2170
+ value: z43.array(
2171
+ z43.object({
2172
+ entityId: z43.string(),
2173
+ entityType: z43.enum(["Token", "TokenGroup"]),
2174
+ entityMeta: z43.object({
2175
+ showNestedGroups: z43.boolean().optional()
2087
2176
  }).optional()
2088
2177
  })
2089
2178
  ).default([])
2090
2179
  });
2091
- var PageBlockItemTokenPropertyValue = z40.object({
2092
- selectedPropertyIds: z40.array(z40.string()).optional(),
2093
- selectedThemeIds: z40.array(z40.string()).optional(),
2094
- value: z40.array(z40.string()).default([])
2180
+ var PageBlockItemTokenPropertyValue = z43.object({
2181
+ selectedPropertyIds: z43.array(z43.string()).optional(),
2182
+ selectedThemeIds: z43.array(z43.string()).optional(),
2183
+ value: z43.array(z43.string()).default([])
2095
2184
  });
2096
- var PageBlockItemTokenTypeValue = z40.object({
2097
- value: z40.array(DesignTokenType).default([])
2185
+ var PageBlockItemTokenTypeValue = z43.object({
2186
+ value: z43.array(DesignTokenType).default([])
2098
2187
  });
2099
- var PageBlockItemUrlValue = z40.object({
2100
- value: z40.string()
2188
+ var PageBlockItemUrlValue = z43.object({
2189
+ value: z43.string()
2101
2190
  });
2102
- var PageBlockItemTableRichTextNode = z40.object({
2103
- type: z40.literal("RichText"),
2104
- id: z40.string(),
2191
+ var PageBlockItemTableRichTextNode = z43.object({
2192
+ type: z43.literal("RichText"),
2193
+ id: z43.string(),
2105
2194
  value: PageBlockItemRichTextValue.shape.value
2106
2195
  });
2107
- var PageBlockItemTableMultiRichTextNode = z40.object({
2108
- type: z40.literal("MultiRichText"),
2196
+ var PageBlockItemTableMultiRichTextNode = z43.object({
2197
+ type: z43.literal("MultiRichText"),
2109
2198
  value: PageBlockItemMultiRichTextValue.shape.value
2110
2199
  });
2111
- var PageBlockItemTableImageNode = z40.object({
2112
- type: z40.literal("Image"),
2113
- id: z40.string(),
2200
+ var PageBlockItemTableImageNode = z43.object({
2201
+ type: z43.literal("Image"),
2202
+ id: z43.string(),
2114
2203
  caption: PageBlockItemImageValue.shape.caption,
2115
2204
  value: PageBlockItemImageValue.shape.value
2116
2205
  });
2117
- var PageBlockItemTableNode = z40.discriminatedUnion("type", [
2206
+ var PageBlockItemTableNode = z43.discriminatedUnion("type", [
2118
2207
  PageBlockItemTableRichTextNode,
2119
2208
  // PageBlockItemTableMultiRichTextNode,
2120
2209
  PageBlockItemTableImageNode
2121
2210
  ]);
2122
- var PageBlockItemTableCell = z40.object({
2123
- id: z40.string(),
2124
- nodes: z40.array(PageBlockItemTableNode),
2125
- columnWidth: z40.number().optional(),
2211
+ var PageBlockItemTableCell = z43.object({
2212
+ id: z43.string(),
2213
+ nodes: z43.array(PageBlockItemTableNode),
2214
+ columnWidth: z43.number().optional(),
2126
2215
  alignment: PageBlockTableCellAlignment
2127
2216
  });
2128
- var PageBlockItemTableRow = z40.object({
2129
- cells: z40.array(PageBlockItemTableCell)
2217
+ var PageBlockItemTableRow = z43.object({
2218
+ cells: z43.array(PageBlockItemTableCell)
2130
2219
  });
2131
- var PageBlockItemTableValue = z40.object({
2132
- highlightHeaderColumn: z40.boolean().optional(),
2133
- highlightHeaderRow: z40.boolean().optional(),
2134
- showBorder: z40.boolean().optional(),
2135
- value: z40.array(PageBlockItemTableRow).default([])
2220
+ var PageBlockItemTableValue = z43.object({
2221
+ highlightHeaderColumn: z43.boolean().optional(),
2222
+ highlightHeaderRow: z43.boolean().optional(),
2223
+ showBorder: z43.boolean().optional(),
2224
+ value: z43.array(PageBlockItemTableRow).default([])
2136
2225
  });
2137
- var DocumentationItemHeaderAlignmentSchema = z41.enum(["Left", "Center"]);
2138
- var DocumentationItemHeaderImageScaleTypeSchema = z41.enum(["AspectFill", "AspectFit"]);
2226
+ var DocumentationItemHeaderAlignmentSchema = z44.enum(["Left", "Center"]);
2227
+ var DocumentationItemHeaderImageScaleTypeSchema = z44.enum(["AspectFill", "AspectFit"]);
2139
2228
  var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
2140
2229
  var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
2141
- var DocumentationItemHeaderV1 = z42.object({
2142
- description: z42.string(),
2230
+ var DocumentationItemHeaderV1 = z45.object({
2231
+ description: z45.string(),
2143
2232
  alignment: DocumentationItemHeaderAlignmentSchema,
2144
2233
  foregroundColor: ColorTokenData.nullish(),
2145
2234
  backgroundColor: ColorTokenData.nullish(),
2146
2235
  backgroundImageAsset: PageBlockAsset.nullish(),
2147
2236
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
2148
- showBackgroundOverlay: z42.boolean(),
2149
- showCoverText: z42.boolean(),
2150
- minHeight: z42.number().nullish()
2237
+ showBackgroundOverlay: z45.boolean(),
2238
+ showCoverText: z45.boolean(),
2239
+ minHeight: z45.number().nullish()
2151
2240
  });
2152
2241
  var defaultDocumentationItemHeaderV1 = {
2153
2242
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -2156,26 +2245,26 @@ var defaultDocumentationItemHeaderV1 = {
2156
2245
  showBackgroundOverlay: false,
2157
2246
  showCoverText: true
2158
2247
  };
2159
- var DocumentationItemConfigurationV1 = z43.object({
2160
- showSidebar: z43.boolean(),
2161
- isPrivate: z43.boolean().optional(),
2162
- isHidden: z43.boolean().optional(),
2248
+ var DocumentationItemConfigurationV1 = z46.object({
2249
+ showSidebar: z46.boolean(),
2250
+ isPrivate: z46.boolean().optional(),
2251
+ isHidden: z46.boolean().optional(),
2163
2252
  header: DocumentationItemHeaderV1
2164
2253
  });
2165
- var DocumentationPageDataV1 = z44.object({
2166
- blocks: z44.array(PageBlockV1),
2254
+ var DocumentationPageDataV1 = z47.object({
2255
+ blocks: z47.array(PageBlockV1),
2167
2256
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
2168
2257
  });
2169
- var DocumentationItemHeaderV2 = z45.object({
2170
- description: z45.string(),
2258
+ var DocumentationItemHeaderV2 = z48.object({
2259
+ description: z48.string(),
2171
2260
  alignment: DocumentationItemHeaderAlignmentSchema,
2172
2261
  foregroundColor: PageBlockColorV2.nullish(),
2173
2262
  backgroundColor: PageBlockColorV2.nullish(),
2174
2263
  backgroundImageAsset: PageBlockImageReference.nullish(),
2175
2264
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
2176
- showBackgroundOverlay: z45.boolean(),
2177
- showCoverText: z45.boolean(),
2178
- minHeight: z45.number().nullish()
2265
+ showBackgroundOverlay: z48.boolean(),
2266
+ showCoverText: z48.boolean(),
2267
+ minHeight: z48.number().nullish()
2179
2268
  });
2180
2269
  var defaultDocumentationItemHeaderV2 = {
2181
2270
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -2184,10 +2273,10 @@ var defaultDocumentationItemHeaderV2 = {
2184
2273
  showBackgroundOverlay: false,
2185
2274
  showCoverText: true
2186
2275
  };
2187
- var DocumentationItemConfigurationV2 = z46.object({
2188
- showSidebar: z46.boolean(),
2189
- isPrivate: z46.boolean().optional(),
2190
- isHidden: z46.boolean().optional(),
2276
+ var DocumentationItemConfigurationV2 = z49.object({
2277
+ showSidebar: z49.boolean(),
2278
+ isPrivate: z49.boolean().optional(),
2279
+ isHidden: z49.boolean().optional(),
2191
2280
  header: DocumentationItemHeaderV2
2192
2281
  });
2193
2282
  var defaultDocumentationItemConfigurationV2 = {
@@ -2196,188 +2285,157 @@ var defaultDocumentationItemConfigurationV2 = {
2196
2285
  isPrivate: false,
2197
2286
  showSidebar: true
2198
2287
  };
2199
- var DocumentationPageDataV2 = z47.object({
2288
+ var DocumentationPageDataV2 = z50.object({
2200
2289
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
2201
2290
  });
2202
- var DesignElementOrigin = z48.object({
2203
- id: z48.string(),
2204
- sourceId: z48.string(),
2205
- name: z48.string()
2206
- });
2207
- var DesignElementBase = z48.object({
2208
- id: z48.string(),
2209
- persistentId: z48.string(),
2210
- meta: ObjectMeta,
2211
- designSystemVersionId: z48.string(),
2212
- createdAt: z48.coerce.date(),
2213
- updatedAt: z48.coerce.date()
2214
- });
2215
- var DesignElementImportedBase = DesignElementBase.extend({
2216
- origin: DesignElementOrigin
2217
- });
2218
- var DesignElementGroupablePart = z48.object({
2219
- parentPersistentId: z48.string().optional(),
2220
- sortOrder: z48.number()
2221
- });
2222
- var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
2223
- var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
2224
- parentPersistentId: z48.string()
2225
- });
2226
- var DesignElementBrandedPart = z48.object({
2227
- brandPersistentId: z48.string()
2228
- });
2229
- var DesignElementSlugPart = z48.object({
2230
- slug: z48.string().optional(),
2231
- userSlug: z48.string().optional()
2232
- });
2233
2291
  var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
2234
2292
  data: PageBlockDataV2
2235
2293
  });
2236
- var PageBlockEditorModelV2 = z49.object({
2237
- id: z49.string(),
2238
- type: z49.literal("Block"),
2294
+ var PageBlockEditorModelV2 = z51.object({
2295
+ id: z51.string(),
2296
+ type: z51.literal("Block"),
2239
2297
  data: PageBlockDataV2
2240
2298
  });
2241
- var PageSectionTypeV2 = z50.enum(["Tabs"]);
2242
- var PageSectionColumnV2 = z50.object({
2243
- id: z50.string(),
2244
- blocks: z50.array(PageBlockEditorModelV2)
2245
- });
2246
- var PageSectionItemV2 = z50.object({
2247
- id: z50.string(),
2248
- title: z50.string(),
2249
- columns: z50.array(PageSectionColumnV2)
2250
- });
2251
- var PageSectionPaddingV2 = z50.object({
2252
- top: z50.number().optional(),
2253
- bottom: z50.number().optional(),
2254
- left: z50.number().optional(),
2255
- right: z50.number().optional()
2256
- });
2257
- var PageSectionAppearanceV2 = z50.object({
2258
- expandToEdges: z50.boolean(),
2259
- contentExpandToEdges: z50.boolean(),
2299
+ var PageSectionTypeV2 = z52.enum(["Tabs"]);
2300
+ var PageSectionColumnV2 = z52.object({
2301
+ id: z52.string(),
2302
+ blocks: z52.array(PageBlockEditorModelV2)
2303
+ });
2304
+ var PageSectionItemV2 = z52.object({
2305
+ id: z52.string(),
2306
+ title: z52.string(),
2307
+ columns: z52.array(PageSectionColumnV2)
2308
+ });
2309
+ var PageSectionPaddingV2 = z52.object({
2310
+ top: z52.number().optional(),
2311
+ bottom: z52.number().optional(),
2312
+ left: z52.number().optional(),
2313
+ right: z52.number().optional()
2314
+ });
2315
+ var PageSectionAppearanceV2 = z52.object({
2316
+ expandToEdges: z52.boolean(),
2317
+ contentExpandToEdges: z52.boolean(),
2260
2318
  backgroundColor: PageBlockColorV2.optional(),
2261
2319
  foregroundColor: PageBlockColorV2.optional(),
2262
2320
  padding: PageSectionPaddingV2.optional()
2263
2321
  });
2264
- var PageSectionEditorModelV2 = z50.object({
2265
- id: z50.string(),
2266
- type: z50.literal("Section"),
2267
- variantId: z50.string().optional(),
2322
+ var PageSectionEditorModelV2 = z52.object({
2323
+ id: z52.string(),
2324
+ type: z52.literal("Section"),
2325
+ variantId: z52.string().optional(),
2268
2326
  sectionType: PageSectionTypeV2,
2269
2327
  appearance: PageSectionAppearanceV2,
2270
- items: z50.array(PageSectionItemV2)
2328
+ items: z52.array(PageSectionItemV2)
2271
2329
  });
2272
- var DurationUnit = z51.enum(["Ms"]);
2273
- var DurationValue = z51.object({
2330
+ var DurationUnit = z53.enum(["Ms"]);
2331
+ var DurationValue = z53.object({
2274
2332
  unit: DurationUnit,
2275
- measure: z51.number()
2333
+ measure: z53.number()
2276
2334
  });
2277
2335
  var DurationTokenData = tokenAliasOrValue(DurationValue);
2278
- var FigmaFileStructureNodeType = z52.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
2279
- var FigmaFileStructureNodeBase = z52.object({
2280
- id: z52.string(),
2281
- name: z52.string(),
2336
+ var FigmaFileStructureNodeType = z54.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
2337
+ var FigmaFileStructureNodeBase = z54.object({
2338
+ id: z54.string(),
2339
+ name: z54.string(),
2282
2340
  type: FigmaFileStructureNodeType,
2283
2341
  size: SizeOrUndefined,
2284
- parentComponentSetId: z52.string().optional()
2342
+ parentComponentSetId: z54.string().optional()
2285
2343
  });
2286
2344
  var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
2287
- children: z52.lazy(() => FigmaFileStructureNode.array())
2345
+ children: z54.lazy(() => FigmaFileStructureNode.array())
2288
2346
  });
2289
- var FigmaFileStructureStatistics = z52.object({
2290
- frames: z52.number().nullable().optional().transform((v) => v ?? 0),
2291
- components: z52.number().nullable().optional().transform((v) => v ?? 0),
2292
- componentSets: z52.number().nullable().optional().transform((v) => v ?? 0)
2347
+ var FigmaFileStructureStatistics = z54.object({
2348
+ frames: z54.number().nullable().optional().transform((v) => v ?? 0),
2349
+ components: z54.number().nullable().optional().transform((v) => v ?? 0),
2350
+ componentSets: z54.number().nullable().optional().transform((v) => v ?? 0)
2293
2351
  });
2294
- var FigmaFileStructureElementData = z52.object({
2295
- value: z52.object({
2352
+ var FigmaFileStructureElementData = z54.object({
2353
+ value: z54.object({
2296
2354
  structure: FigmaFileStructureNode,
2297
2355
  assetsInFile: FigmaFileStructureStatistics
2298
2356
  })
2299
2357
  });
2300
- var FigmaNodeRenderFormat = z53.enum(["Png", "Svg"]);
2301
- var FigmaNodeReferenceData = z53.object({
2302
- structureElementId: z53.string(),
2303
- nodeId: z53.string(),
2304
- fileId: z53.string().optional(),
2305
- valid: z53.boolean(),
2358
+ var FigmaNodeRenderFormat = z55.enum(["Png", "Svg"]);
2359
+ var FigmaNodeReferenceData = z55.object({
2360
+ structureElementId: z55.string(),
2361
+ nodeId: z55.string(),
2362
+ fileId: z55.string().optional(),
2363
+ valid: z55.boolean(),
2306
2364
  format: FigmaNodeRenderFormat.default("Png"),
2307
2365
  // Asset data
2308
- assetId: z53.string().optional(),
2309
- assetScale: z53.number().optional(),
2310
- assetWidth: z53.number().optional(),
2311
- assetHeight: z53.number().optional(),
2312
- assetUrl: z53.string().optional(),
2313
- assetOriginKey: z53.string().optional()
2314
- });
2315
- var FigmaNodeReferenceElementData = z53.object({
2366
+ assetId: z55.string().optional(),
2367
+ assetScale: z55.number().optional(),
2368
+ assetWidth: z55.number().optional(),
2369
+ assetHeight: z55.number().optional(),
2370
+ assetUrl: z55.string().optional(),
2371
+ assetOriginKey: z55.string().optional()
2372
+ });
2373
+ var FigmaNodeReferenceElementData = z55.object({
2316
2374
  value: FigmaNodeReferenceData
2317
2375
  });
2318
- var FontFamilyValue = z54.string();
2376
+ var FontFamilyValue = z56.string();
2319
2377
  var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
2320
- var FontSizeUnit = z55.enum(["Pixels", "Rem", "Percent"]);
2321
- var FontSizeValue = z55.object({
2378
+ var FontSizeUnit = z57.enum(["Pixels", "Rem", "Percent"]);
2379
+ var FontSizeValue = z57.object({
2322
2380
  unit: FontSizeUnit,
2323
- measure: z55.number()
2381
+ measure: z57.number()
2324
2382
  });
2325
2383
  var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
2326
- var FontWeightValue = z56.string();
2384
+ var FontWeightValue = z58.string();
2327
2385
  var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
2328
- var GradientType = z57.enum(["Linear", "Radial", "Angular"]);
2329
- var GradientStop = z57.object({
2330
- position: z57.number(),
2386
+ var GradientType = z59.enum(["Linear", "Radial", "Angular"]);
2387
+ var GradientStop = z59.object({
2388
+ position: z59.number(),
2331
2389
  color: ColorTokenData
2332
2390
  });
2333
- var GradientLayerValue = z57.object({
2391
+ var GradientLayerValue = z59.object({
2334
2392
  from: Point2D,
2335
2393
  to: Point2D,
2336
2394
  type: GradientType,
2337
- aspectRatio: nullishToOptional(z57.number()),
2395
+ aspectRatio: nullishToOptional(z59.number()),
2338
2396
  // z.number(),
2339
- stops: z57.array(GradientStop).min(2)
2397
+ stops: z59.array(GradientStop).min(2)
2340
2398
  });
2341
2399
  var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
2342
- var GradientTokenValue = z57.array(GradientLayerData);
2400
+ var GradientTokenValue = z59.array(GradientLayerData);
2343
2401
  var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
2344
- var DocumentationGroupBehavior = z58.enum(["Group", "Tabs"]);
2345
- var ElementGroupDataV1 = z58.object({
2402
+ var DocumentationGroupBehavior = z60.enum(["Group", "Tabs"]);
2403
+ var ElementGroupDataV1 = z60.object({
2346
2404
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
2347
2405
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
2348
2406
  });
2349
- var ElementGroupDataV2 = z58.object({
2407
+ var ElementGroupDataV2 = z60.object({
2350
2408
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
2351
2409
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
2352
2410
  });
2353
- var LetterSpacingUnit = z59.enum(["Pixels", "Rem", "Percent"]);
2354
- var LetterSpacingValue = z59.object({
2411
+ var LetterSpacingUnit = z61.enum(["Pixels", "Rem", "Percent"]);
2412
+ var LetterSpacingValue = z61.object({
2355
2413
  unit: LetterSpacingUnit,
2356
- measure: z59.number()
2414
+ measure: z61.number()
2357
2415
  });
2358
2416
  var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
2359
- var LineHeightUnit = z60.enum(["Pixels", "Rem", "Percent", "Raw"]);
2360
- var LineHeightValue = z60.object({
2417
+ var LineHeightUnit = z62.enum(["Pixels", "Rem", "Percent", "Raw"]);
2418
+ var LineHeightValue = z62.object({
2361
2419
  unit: LineHeightUnit,
2362
- measure: z60.number()
2420
+ measure: z62.number()
2363
2421
  });
2364
2422
  var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
2365
- var ParagraphIndentUnit = z61.enum(["Pixels", "Rem", "Percent"]);
2366
- var ParagraphIndentValue = z61.object({
2423
+ var ParagraphIndentUnit = z63.enum(["Pixels", "Rem", "Percent"]);
2424
+ var ParagraphIndentValue = z63.object({
2367
2425
  unit: ParagraphIndentUnit,
2368
- measure: z61.number()
2426
+ measure: z63.number()
2369
2427
  });
2370
2428
  var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
2371
- var ParagraphSpacingUnit = z62.enum(["Pixels", "Rem", "Percent"]);
2372
- var ParagraphSpacingValue = z62.object({
2429
+ var ParagraphSpacingUnit = z64.enum(["Pixels", "Rem", "Percent"]);
2430
+ var ParagraphSpacingValue = z64.object({
2373
2431
  unit: ParagraphSpacingUnit,
2374
- measure: z62.number()
2432
+ measure: z64.number()
2375
2433
  });
2376
2434
  var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
2377
- var ProductCopyValue = z63.string();
2435
+ var ProductCopyValue = z65.string();
2378
2436
  var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
2379
2437
  var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
2380
- var SafeIdSchema = z64.string().refine(
2438
+ var SafeIdSchema = z66.string().refine(
2381
2439
  (value) => {
2382
2440
  return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
2383
2441
  },
@@ -2385,39 +2443,39 @@ var SafeIdSchema = z64.string().refine(
2385
2443
  message: `ID value can't start with ${RESERVED_OBJECT_ID_PREFIX}`
2386
2444
  }
2387
2445
  );
2388
- var ShadowType = z65.enum(["Drop", "Inner"]);
2389
- var ShadowLayerValue = z65.object({
2446
+ var ShadowType = z67.enum(["Drop", "Inner"]);
2447
+ var ShadowLayerValue = z67.object({
2390
2448
  color: ColorTokenData,
2391
- x: z65.number(),
2392
- y: z65.number(),
2393
- radius: z65.number(),
2394
- spread: z65.number(),
2449
+ x: z67.number(),
2450
+ y: z67.number(),
2451
+ radius: z67.number(),
2452
+ spread: z67.number(),
2395
2453
  opacity: OpacityTokenData.optional(),
2396
2454
  type: ShadowType
2397
2455
  });
2398
2456
  var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
2399
- var ShadowTokenData = tokenAliasOrValue(z65.array(ShadowTokenDataBase));
2400
- var SizeUnit = z66.enum(["Pixels", "Rem", "Percent"]);
2401
- var SizeValue = z66.object({
2457
+ var ShadowTokenData = tokenAliasOrValue(z67.array(ShadowTokenDataBase));
2458
+ var SizeUnit = z68.enum(["Pixels", "Rem", "Percent"]);
2459
+ var SizeValue = z68.object({
2402
2460
  unit: SizeUnit,
2403
- measure: z66.number()
2461
+ measure: z68.number()
2404
2462
  });
2405
2463
  var SizeTokenData = tokenAliasOrValue(SizeValue);
2406
- var SpaceUnit = z67.enum(["Pixels", "Rem", "Percent"]);
2407
- var SpaceValue = z67.object({
2464
+ var SpaceUnit = z69.enum(["Pixels", "Rem", "Percent"]);
2465
+ var SpaceValue = z69.object({
2408
2466
  unit: SpaceUnit,
2409
- measure: z67.number()
2467
+ measure: z69.number()
2410
2468
  });
2411
2469
  var SpaceTokenData = tokenAliasOrValue(SpaceValue);
2412
- var StringValue = z68.string();
2470
+ var StringValue = z70.string();
2413
2471
  var StringTokenData = tokenAliasOrValue(StringValue);
2414
- var TextCase = z69.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
2472
+ var TextCase = z71.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
2415
2473
  var TextCaseValue = TextCase;
2416
2474
  var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
2417
- var TextDecoration = z70.enum(["None", "Underline", "Strikethrough"]);
2475
+ var TextDecoration = z72.enum(["None", "Underline", "Strikethrough"]);
2418
2476
  var TextDecorationValue = TextDecoration;
2419
2477
  var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
2420
- var TypographyValue = z71.object({
2478
+ var TypographyValue = z73.object({
2421
2479
  fontSize: FontSizeTokenData,
2422
2480
  fontFamily: FontFamilyTokenData,
2423
2481
  fontWeight: FontWeightTokenData,
@@ -2429,75 +2487,15 @@ var TypographyValue = z71.object({
2429
2487
  paragraphSpacing: ParagraphSpacingTokenData.optional()
2430
2488
  });
2431
2489
  var TypographyTokenData = tokenAliasOrValue(TypographyValue);
2432
- var Visibility = z72.enum(["Hidden", "Visible"]);
2490
+ var Visibility = z74.enum(["Hidden", "Visible"]);
2433
2491
  var VisibilityValue = Visibility;
2434
2492
  var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
2435
- var ZIndexUnit = z73.enum(["Raw"]);
2436
- var ZIndexValue = z73.object({
2493
+ var ZIndexUnit = z75.enum(["Raw"]);
2494
+ var ZIndexValue = z75.object({
2437
2495
  unit: ZIndexUnit,
2438
- measure: z73.number()
2496
+ measure: z75.number()
2439
2497
  });
2440
2498
  var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
2441
- var FigmaComponentPropertyType = z74.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
2442
- var FigmaComponentBooleanProperty = z74.object({
2443
- type: z74.literal(FigmaComponentPropertyType.enum.Boolean),
2444
- value: z74.boolean(),
2445
- defaultValue: z74.boolean()
2446
- });
2447
- var FigmaComponentInstanceSwapProperty = z74.object({
2448
- type: z74.literal(FigmaComponentPropertyType.enum.InstanceSwap),
2449
- value: z74.string()
2450
- // Persistent ID of a Component to swap??
2451
- });
2452
- var FigmaComponentVariantProperty = z74.object({
2453
- type: z74.literal(FigmaComponentPropertyType.enum.Variant),
2454
- value: z74.string(),
2455
- options: z74.array(z74.string())
2456
- });
2457
- var FigmaComponentTextProperty = z74.object({
2458
- type: z74.literal(FigmaComponentPropertyType.enum.Text),
2459
- value: z74.string()
2460
- });
2461
- var FigmaComponentProperties = z74.record(
2462
- z74.string(),
2463
- z74.discriminatedUnion("type", [
2464
- FigmaComponentBooleanProperty,
2465
- FigmaComponentInstanceSwapProperty,
2466
- FigmaComponentTextProperty
2467
- ])
2468
- );
2469
- var FigmaComponentSetProperties = z74.record(
2470
- z74.string(),
2471
- z74.discriminatedUnion("type", [
2472
- FigmaComponentBooleanProperty,
2473
- FigmaComponentInstanceSwapProperty,
2474
- FigmaComponentTextProperty,
2475
- FigmaComponentVariantProperty
2476
- ])
2477
- );
2478
- var ComponentOriginPart = z75.object({
2479
- nodeId: z75.string().optional(),
2480
- width: z75.number().optional(),
2481
- height: z75.number().optional()
2482
- });
2483
- var ComponentAsset = z75.object({
2484
- assetId: z75.string(),
2485
- assetPath: z75.string()
2486
- });
2487
- var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
2488
- var BaseComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
2489
- origin: ComponentOrigin.optional(),
2490
- thumbnail: ComponentAsset
2491
- });
2492
- var Component = BaseComponent.extend({
2493
- svg: ComponentAsset.optional(),
2494
- isAsset: z75.boolean(),
2495
- componentSetId: z75.string().optional(),
2496
- properties: FigmaComponentProperties.optional()
2497
- });
2498
- var ComponentSet = BaseComponent.extend({
2499
- properties: FigmaComponentSetProperties
2500
- });
2501
2499
  var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
2502
2500
  shortPersistentId: z76.string().optional(),
2503
2501
  childType: DesignElementType,
@@ -2972,106 +2970,134 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
2972
2970
  */
2973
2971
  changedImportedSourceDataBySourceId: z86.record(ChangedImportedFigmaSourceData)
2974
2972
  });
2975
- var ImageImportModelType = z87.enum(["Url", "FigmaRender"]);
2976
- var ImageImportModelBase = z87.object({
2973
+ var ImportModelBase = z87.object({
2974
+ id: z87.string(),
2975
+ meta: ObjectMeta,
2976
+ origin: DesignElementOrigin,
2977
+ brandPersistentId: z87.string(),
2978
+ sortOrder: z87.number()
2979
+ });
2980
+ var ImportModelInputBase = ImportModelBase.omit({
2981
+ brandPersistentId: true,
2982
+ origin: true,
2983
+ sortOrder: true
2984
+ }).extend({
2985
+ originId: z87.string(),
2986
+ originMetadata: z87.record(z87.any())
2987
+ });
2988
+ var ImageImportModelType = z88.enum(["Url", "FigmaRender"]);
2989
+ var ImageImportModelBase = z88.object({
2977
2990
  scope: AssetScope
2978
2991
  });
2979
2992
  var UrlImageImportModel = ImageImportModelBase.extend({
2980
- type: z87.literal(ImageImportModelType.enum.Url),
2981
- url: z87.string(),
2982
- originKey: z87.string(),
2983
- extension: z87.string()
2993
+ type: z88.literal(ImageImportModelType.enum.Url),
2994
+ url: z88.string(),
2995
+ originKey: z88.string(),
2996
+ extension: z88.string()
2984
2997
  });
2985
- var FigmaRenderFormat = z87.enum(["Svg", "Png", "Pdf"]);
2998
+ var FigmaRenderFormat = z88.enum(["Svg", "Png", "Pdf"]);
2986
2999
  var FigmaRenderBase = ImageImportModelBase.extend({
2987
- type: z87.literal(ImageImportModelType.enum.FigmaRender),
2988
- fileId: z87.string(),
2989
- fileVersionId: z87.string().optional(),
2990
- nodeId: z87.string(),
2991
- originKey: z87.string()
3000
+ type: z88.literal(ImageImportModelType.enum.FigmaRender),
3001
+ fileId: z88.string(),
3002
+ fileVersionId: z88.string().optional(),
3003
+ nodeId: z88.string(),
3004
+ originKey: z88.string()
2992
3005
  });
2993
3006
  var FigmaPngRenderImportModel = FigmaRenderBase.extend({
2994
- format: z87.literal(FigmaRenderFormat.enum.Png),
2995
- scale: z87.number()
3007
+ format: z88.literal(FigmaRenderFormat.enum.Png),
3008
+ scale: z88.number()
2996
3009
  });
2997
3010
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
2998
- format: z87.literal(FigmaRenderFormat.enum.Svg)
3011
+ format: z88.literal(FigmaRenderFormat.enum.Svg)
2999
3012
  });
3000
- var FigmaRenderImportModel = z87.discriminatedUnion("format", [
3013
+ var FigmaRenderImportModel = z88.discriminatedUnion("format", [
3001
3014
  FigmaPngRenderImportModel,
3002
3015
  FigmaSvgRenderImportModel
3003
3016
  ]);
3004
- var ImageImportModel = z87.union([UrlImageImportModel, FigmaRenderImportModel]);
3005
- var ImportModelBase = z88.object({
3006
- id: z88.string(),
3007
- meta: ObjectMeta,
3008
- origin: DesignElementOrigin,
3009
- brandPersistentId: z88.string(),
3010
- sortOrder: z88.number()
3017
+ var ImageImportModel = z88.union([UrlImageImportModel, FigmaRenderImportModel]);
3018
+ var FigmaComponentImportModelPart = z89.object({
3019
+ thumbnail: ImageImportModel,
3020
+ parentComponentId: z89.string().optional(),
3021
+ componentPropertyDefinitions: FigmaComponentPropertyMap.optional()
3011
3022
  });
3012
- var ImportModelInputBase = ImportModelBase.omit({
3013
- brandPersistentId: true,
3014
- origin: true,
3015
- sortOrder: true
3016
- }).extend({
3017
- originId: z88.string(),
3018
- originMetadata: z88.record(z88.any())
3019
- });
3020
- var ComponentImportModelPart = z89.object({
3021
- thumbnail: ImageImportModel
3022
- });
3023
- var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
3023
+ var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
3024
3024
  isAsset: z89.boolean(),
3025
3025
  svg: FigmaSvgRenderImportModel.optional(),
3026
- origin: ComponentOrigin
3026
+ origin: FigmaComponentOrigin
3027
3027
  });
3028
- var ComponentImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
3029
- originMetadata: ComponentOriginPart
3028
+ var FigmaComponentImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
3029
+ originMetadata: FigmaComponentOriginPart
3030
3030
  });
3031
- var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart.shape).extend({
3031
+ var AssetImportModelInput = ImportModelInputBase.extend(FigmaComponentImportModelPart.shape).extend({
3032
3032
  svg: FigmaSvgRenderImportModel,
3033
- originMetadata: ComponentOriginPart
3033
+ originMetadata: FigmaComponentOriginPart
3034
+ });
3035
+ var DataSourceImportModel = z90.object({
3036
+ id: z90.string(),
3037
+ fileName: z90.string().optional(),
3038
+ thumbnailUrl: z90.string().optional()
3039
+ });
3040
+ var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
3041
+ png: FigmaPngRenderImportModel,
3042
+ svg: FigmaSvgRenderImportModel
3043
+ });
3044
+ var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
3045
+ children: z91.lazy(() => FigmaFileStructureNodeImportModel.array())
3046
+ });
3047
+ var FigmaFileStructureImportModelPart = z91.object({
3048
+ data: z91.object({
3049
+ rootNode: FigmaFileStructureNodeImportModel,
3050
+ assetsInFile: FigmaFileStructureStatistics
3051
+ })
3052
+ });
3053
+ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImportModelPart.shape).extend({
3054
+ origin: FigmaFileStructureOrigin
3055
+ });
3056
+ var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
3057
+ FigmaFileStructureImportModelPart.shape
3058
+ ).extend({
3059
+ fileVersionId: z91.string()
3034
3060
  });
3035
3061
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
3036
- z90.object({
3037
- id: z90.string(),
3062
+ z92.object({
3063
+ id: z92.string(),
3038
3064
  meta: ObjectMeta
3039
3065
  })
3040
3066
  );
3041
3067
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
3042
- z90.object({
3068
+ z92.object({
3043
3069
  origin: ThemeOverrideOrigin
3044
3070
  })
3045
3071
  );
3046
3072
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
3047
- z90.object({
3048
- originId: z90.string(),
3073
+ z92.object({
3074
+ originId: z92.string(),
3049
3075
  originMetadata: ThemeOverrideOriginPart
3050
3076
  })
3051
3077
  );
3052
- var ThemeImportModel = z90.object({
3078
+ var ThemeImportModel = z92.object({
3053
3079
  meta: ObjectMeta,
3054
- brandPersistentId: z90.string(),
3080
+ brandPersistentId: z92.string(),
3055
3081
  originSource: ThemeOriginSource,
3056
- overrides: z90.array(ThemeOverrideImportModel),
3057
- sortOrder: z90.number()
3082
+ overrides: z92.array(ThemeOverrideImportModel),
3083
+ sortOrder: z92.number()
3058
3084
  });
3059
- var ThemeImportModelInput = z90.object({
3085
+ var ThemeImportModelInput = z92.object({
3060
3086
  meta: ObjectMeta,
3061
- originObjects: z90.array(ThemeOriginObject),
3062
- overrides: z90.array(ThemeOverrideImportModelInput)
3087
+ originObjects: z92.array(ThemeOriginObject),
3088
+ overrides: z92.array(ThemeOverrideImportModelInput)
3063
3089
  });
3064
- var ThemeUpdateImportModel = z90.object({
3065
- themePersistentId: z90.string(),
3066
- overrides: z90.array(ThemeOverrideImportModel)
3090
+ var ThemeUpdateImportModel = z92.object({
3091
+ themePersistentId: z92.string(),
3092
+ overrides: z92.array(ThemeOverrideImportModel)
3067
3093
  });
3068
- var ThemeUpdateImportModelInput = z90.object({
3069
- themePersistentId: z90.string(),
3070
- overrides: z90.array(ThemeOverrideImportModelInput)
3094
+ var ThemeUpdateImportModelInput = z92.object({
3095
+ themePersistentId: z92.string(),
3096
+ overrides: z92.array(ThemeOverrideImportModelInput)
3071
3097
  });
3072
- var DesignTokenImportModelPart = z91.object({
3073
- collection: z91.string().optional(),
3074
- codeSyntax: z91.record(z91.coerce.string()).optional()
3098
+ var DesignTokenImportModelPart = z93.object({
3099
+ collection: z93.string().optional(),
3100
+ codeSyntax: z93.record(z93.coerce.string()).optional()
3075
3101
  });
3076
3102
  var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
3077
3103
  origin: DesignTokenOrigin
@@ -3081,36 +3107,10 @@ var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImp
3081
3107
  });
3082
3108
  var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
3083
3109
  var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
3084
- var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
3085
- png: FigmaPngRenderImportModel,
3086
- svg: FigmaSvgRenderImportModel
3087
- });
3088
- var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
3089
- children: z92.lazy(() => FigmaFileStructureNodeImportModel.array())
3090
- });
3091
- var FigmaFileStructureImportModelPart = z92.object({
3092
- data: z92.object({
3093
- rootNode: FigmaFileStructureNodeImportModel,
3094
- assetsInFile: FigmaFileStructureStatistics
3095
- })
3096
- });
3097
- var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImportModelPart.shape).extend({
3098
- origin: FigmaFileStructureOrigin
3099
- });
3100
- var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
3101
- FigmaFileStructureImportModelPart.shape
3102
- ).extend({
3103
- fileVersionId: z92.string()
3104
- });
3105
- var DataSourceImportModel = z93.object({
3106
- id: z93.string(),
3107
- fileName: z93.string().optional(),
3108
- thumbnailUrl: z93.string().optional()
3109
- });
3110
3110
  var ImportModelInputCollection = z94.object({
3111
3111
  source: DataSourceImportModel,
3112
3112
  tokens: z94.array(DesignTokenImportModelInput).default([]),
3113
- components: z94.array(ComponentImportModelInput).default([]),
3113
+ components: z94.array(FigmaComponentImportModelInput).default([]),
3114
3114
  assets: z94.array(AssetImportModelInput).default([]),
3115
3115
  themeUpdates: z94.array(ThemeUpdateImportModelInput).default([]),
3116
3116
  themes: z94.array(ThemeImportModelInput).default([]),
@@ -3119,7 +3119,7 @@ var ImportModelInputCollection = z94.object({
3119
3119
  var ImportModelCollection = z94.object({
3120
3120
  sources: z94.array(DataSourceImportModel),
3121
3121
  tokens: z94.array(DesignTokenImportModel).default([]),
3122
- components: z94.array(ComponentImportModel).default([]),
3122
+ components: z94.array(FigmaComponentImportModel).default([]),
3123
3123
  themeUpdates: z94.array(ThemeUpdateImportModel).default([]),
3124
3124
  themes: z94.array(ThemeImportModel).default([]),
3125
3125
  figmaFileStructures: z94.array(FigmaFileStructureImportModel)
@@ -5621,11 +5621,31 @@ var DTOPublishDocumentationResponse = z200.object({
5621
5621
  job: DTOExportJob
5622
5622
  });
5623
5623
 
5624
+ // src/api/dto/elements/components/figma-component.ts
5625
+ import { z as z201 } from "zod";
5626
+ var DTOFigmaComponent = z201.object({
5627
+ id: z201.string(),
5628
+ persistentId: z201.string(),
5629
+ designSystemVersionId: z201.string(),
5630
+ brandId: z201.string(),
5631
+ parentComponentId: z201.string().optional(),
5632
+ thumbnailUrl: z201.string().optional(),
5633
+ svgUrl: z201.string().optional(),
5634
+ exportProperties: z201.object({
5635
+ isAsset: z201.boolean()
5636
+ }),
5637
+ createdAt: z201.coerce.date(),
5638
+ updatedAt: z201.coerce.date(),
5639
+ meta: ObjectMeta,
5640
+ originComponent: FigmaComponentOrigin.optional(),
5641
+ componentPropertyDefinitions: FigmaComponentPropertyMap.optional()
5642
+ });
5643
+
5624
5644
  // src/api/dto/elements/documentation/group-action.ts
5625
- import { z as z202 } from "zod";
5645
+ import { z as z203 } from "zod";
5626
5646
 
5627
5647
  // src/api/dto/elements/documentation/group-v2.ts
5628
- import { z as z201 } from "zod";
5648
+ import { z as z202 } from "zod";
5629
5649
  var DTODocumentationGroupV2 = ElementGroup.omit({
5630
5650
  sortOrder: true,
5631
5651
  parentPersistentId: true,
@@ -5635,13 +5655,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5635
5655
  data: true,
5636
5656
  shortPersistentId: true
5637
5657
  }).extend({
5638
- title: z201.string(),
5639
- isRoot: z201.boolean(),
5640
- childrenIds: z201.array(z201.string()),
5658
+ title: z202.string(),
5659
+ isRoot: z202.boolean(),
5660
+ childrenIds: z202.array(z202.string()),
5641
5661
  groupBehavior: DocumentationGroupBehavior,
5642
- shortPersistentId: z201.string(),
5662
+ shortPersistentId: z202.string(),
5643
5663
  configuration: DTODocumentationItemConfigurationV2,
5644
- type: z201.literal("Group"),
5664
+ type: z202.literal("Group"),
5645
5665
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5646
5666
  draftState: DTODocumentationDraftState.optional(),
5647
5667
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -5649,127 +5669,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5649
5669
  //** An approval state for frontend to utilize. */
5650
5670
  approvalState: DTODocumentationGroupApprovalState.optional()
5651
5671
  });
5652
- var DTOCreateDocumentationGroupInput = z201.object({
5672
+ var DTOCreateDocumentationGroupInput = z202.object({
5653
5673
  // Identifier
5654
- persistentId: z201.string().uuid(),
5674
+ persistentId: z202.string().uuid(),
5655
5675
  // Group properties
5656
- title: z201.string(),
5676
+ title: z202.string(),
5657
5677
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5658
5678
  // Group placement properties
5659
- afterPersistentId: z201.string().uuid().nullish(),
5660
- parentPersistentId: z201.string().uuid()
5679
+ afterPersistentId: z202.string().uuid().nullish(),
5680
+ parentPersistentId: z202.string().uuid()
5661
5681
  });
5662
- var DTOUpdateDocumentationGroupInput = z201.object({
5682
+ var DTOUpdateDocumentationGroupInput = z202.object({
5663
5683
  // Identifier of the group to update
5664
- id: z201.string(),
5684
+ id: z202.string(),
5665
5685
  // Group properties
5666
- title: z201.string().optional(),
5686
+ title: z202.string().optional(),
5667
5687
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5668
5688
  });
5669
- var DTOMoveDocumentationGroupInput = z201.object({
5689
+ var DTOMoveDocumentationGroupInput = z202.object({
5670
5690
  // Identifier of the group to update
5671
- id: z201.string(),
5691
+ id: z202.string(),
5672
5692
  // Group placement properties
5673
- parentPersistentId: z201.string().uuid(),
5674
- afterPersistentId: z201.string().uuid().nullish()
5693
+ parentPersistentId: z202.string().uuid(),
5694
+ afterPersistentId: z202.string().uuid().nullish()
5675
5695
  });
5676
- var DTODuplicateDocumentationGroupInput = z201.object({
5696
+ var DTODuplicateDocumentationGroupInput = z202.object({
5677
5697
  // Identifier of the group to duplicate from
5678
- id: z201.string(),
5698
+ id: z202.string(),
5679
5699
  // New group persistent id
5680
- persistentId: z201.string().uuid(),
5700
+ persistentId: z202.string().uuid(),
5681
5701
  // Group placement properties
5682
- afterPersistentId: z201.string().uuid().nullish(),
5683
- parentPersistentId: z201.string().uuid()
5702
+ afterPersistentId: z202.string().uuid().nullish(),
5703
+ parentPersistentId: z202.string().uuid()
5684
5704
  });
5685
- var DTOCreateDocumentationTabInput = z201.object({
5705
+ var DTOCreateDocumentationTabInput = z202.object({
5686
5706
  // New group persistent id
5687
- persistentId: z201.string().uuid(),
5707
+ persistentId: z202.string().uuid(),
5688
5708
  // If this is page, we will attempt to convert it to tab
5689
5709
  // If this is tab group, we will add a new tab to it
5690
- fromItemPersistentId: z201.string(),
5691
- tabName: z201.string()
5710
+ fromItemPersistentId: z202.string(),
5711
+ tabName: z202.string()
5692
5712
  });
5693
- var DTODeleteDocumentationTabGroupInput = z201.object({
5713
+ var DTODeleteDocumentationTabGroupInput = z202.object({
5694
5714
  // Deleted group id
5695
- id: z201.string()
5715
+ id: z202.string()
5696
5716
  });
5697
- var DTODeleteDocumentationGroupInput = z201.object({
5717
+ var DTODeleteDocumentationGroupInput = z202.object({
5698
5718
  // Identifier
5699
- id: z201.string(),
5719
+ id: z202.string(),
5700
5720
  // Deletion options
5701
- deleteSubtree: z201.boolean().default(false)
5721
+ deleteSubtree: z202.boolean().default(false)
5702
5722
  });
5703
5723
 
5704
5724
  // src/api/dto/elements/documentation/group-action.ts
5705
- var SuccessPayload = z202.object({
5706
- success: z202.literal(true)
5725
+ var SuccessPayload = z203.object({
5726
+ success: z203.literal(true)
5707
5727
  });
5708
- var DTODocumentationGroupCreateActionOutputV2 = z202.object({
5709
- type: z202.literal("DocumentationGroupCreate"),
5728
+ var DTODocumentationGroupCreateActionOutputV2 = z203.object({
5729
+ type: z203.literal("DocumentationGroupCreate"),
5710
5730
  output: SuccessPayload
5711
5731
  });
5712
- var DTODocumentationTabCreateActionOutputV2 = z202.object({
5713
- type: z202.literal("DocumentationTabCreate"),
5732
+ var DTODocumentationTabCreateActionOutputV2 = z203.object({
5733
+ type: z203.literal("DocumentationTabCreate"),
5714
5734
  output: SuccessPayload
5715
5735
  });
5716
- var DTODocumentationGroupUpdateActionOutputV2 = z202.object({
5717
- type: z202.literal("DocumentationGroupUpdate"),
5736
+ var DTODocumentationGroupUpdateActionOutputV2 = z203.object({
5737
+ type: z203.literal("DocumentationGroupUpdate"),
5718
5738
  output: SuccessPayload
5719
5739
  });
5720
- var DTODocumentationGroupMoveActionOutputV2 = z202.object({
5721
- type: z202.literal("DocumentationGroupMove"),
5740
+ var DTODocumentationGroupMoveActionOutputV2 = z203.object({
5741
+ type: z203.literal("DocumentationGroupMove"),
5722
5742
  output: SuccessPayload
5723
5743
  });
5724
- var DTODocumentationGroupDuplicateActionOutputV2 = z202.object({
5725
- type: z202.literal("DocumentationGroupDuplicate"),
5744
+ var DTODocumentationGroupDuplicateActionOutputV2 = z203.object({
5745
+ type: z203.literal("DocumentationGroupDuplicate"),
5726
5746
  output: SuccessPayload
5727
5747
  });
5728
- var DTODocumentationGroupDeleteActionOutputV2 = z202.object({
5729
- type: z202.literal("DocumentationGroupDelete"),
5748
+ var DTODocumentationGroupDeleteActionOutputV2 = z203.object({
5749
+ type: z203.literal("DocumentationGroupDelete"),
5730
5750
  output: SuccessPayload
5731
5751
  });
5732
- var DTODocumentationTabGroupDeleteActionOutputV2 = z202.object({
5733
- type: z202.literal("DocumentationTabGroupDelete"),
5752
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z203.object({
5753
+ type: z203.literal("DocumentationTabGroupDelete"),
5734
5754
  output: SuccessPayload
5735
5755
  });
5736
- var DTODocumentationGroupCreateActionInputV2 = z202.object({
5737
- type: z202.literal("DocumentationGroupCreate"),
5756
+ var DTODocumentationGroupCreateActionInputV2 = z203.object({
5757
+ type: z203.literal("DocumentationGroupCreate"),
5738
5758
  input: DTOCreateDocumentationGroupInput
5739
5759
  });
5740
- var DTODocumentationTabCreateActionInputV2 = z202.object({
5741
- type: z202.literal("DocumentationTabCreate"),
5760
+ var DTODocumentationTabCreateActionInputV2 = z203.object({
5761
+ type: z203.literal("DocumentationTabCreate"),
5742
5762
  input: DTOCreateDocumentationTabInput
5743
5763
  });
5744
- var DTODocumentationGroupUpdateActionInputV2 = z202.object({
5745
- type: z202.literal("DocumentationGroupUpdate"),
5764
+ var DTODocumentationGroupUpdateActionInputV2 = z203.object({
5765
+ type: z203.literal("DocumentationGroupUpdate"),
5746
5766
  input: DTOUpdateDocumentationGroupInput
5747
5767
  });
5748
- var DTODocumentationGroupMoveActionInputV2 = z202.object({
5749
- type: z202.literal("DocumentationGroupMove"),
5768
+ var DTODocumentationGroupMoveActionInputV2 = z203.object({
5769
+ type: z203.literal("DocumentationGroupMove"),
5750
5770
  input: DTOMoveDocumentationGroupInput
5751
5771
  });
5752
- var DTODocumentationGroupDuplicateActionInputV2 = z202.object({
5753
- type: z202.literal("DocumentationGroupDuplicate"),
5772
+ var DTODocumentationGroupDuplicateActionInputV2 = z203.object({
5773
+ type: z203.literal("DocumentationGroupDuplicate"),
5754
5774
  input: DTODuplicateDocumentationGroupInput
5755
5775
  });
5756
- var DTODocumentationGroupDeleteActionInputV2 = z202.object({
5757
- type: z202.literal("DocumentationGroupDelete"),
5776
+ var DTODocumentationGroupDeleteActionInputV2 = z203.object({
5777
+ type: z203.literal("DocumentationGroupDelete"),
5758
5778
  input: DTODeleteDocumentationGroupInput
5759
5779
  });
5760
- var DTODocumentationTabGroupDeleteActionInputV2 = z202.object({
5761
- type: z202.literal("DocumentationTabGroupDelete"),
5780
+ var DTODocumentationTabGroupDeleteActionInputV2 = z203.object({
5781
+ type: z203.literal("DocumentationTabGroupDelete"),
5762
5782
  input: DTODeleteDocumentationTabGroupInput
5763
5783
  });
5764
5784
 
5765
5785
  // src/api/dto/elements/documentation/group-v1.ts
5766
- import { z as z204 } from "zod";
5786
+ import { z as z205 } from "zod";
5767
5787
 
5768
5788
  // src/api/dto/elements/documentation/item-configuration-v1.ts
5769
- import { z as z203 } from "zod";
5770
- var DocumentationColorV1 = z203.object({
5771
- aliasTo: z203.string().optional(),
5772
- value: z203.string().optional()
5789
+ import { z as z204 } from "zod";
5790
+ var DocumentationColorV1 = z204.object({
5791
+ aliasTo: z204.string().optional(),
5792
+ value: z204.string().optional()
5773
5793
  });
5774
5794
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5775
5795
  foregroundColor: true,
@@ -5778,10 +5798,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5778
5798
  foregroundColor: DocumentationColorV1.optional(),
5779
5799
  backgroundColor: DocumentationColorV1.optional()
5780
5800
  });
5781
- var DTODocumentationItemConfigurationV1 = z203.object({
5782
- showSidebar: z203.boolean(),
5783
- isPrivate: z203.boolean(),
5784
- isHidden: z203.boolean(),
5801
+ var DTODocumentationItemConfigurationV1 = z204.object({
5802
+ showSidebar: z204.boolean(),
5803
+ isPrivate: z204.boolean(),
5804
+ isHidden: z204.boolean(),
5785
5805
  header: DTODocumentationItemHeaderV1
5786
5806
  });
5787
5807
 
@@ -5795,27 +5815,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
5795
5815
  data: true,
5796
5816
  shortPersistentId: true
5797
5817
  }).extend({
5798
- title: z204.string(),
5799
- isRoot: z204.boolean(),
5800
- childrenIds: z204.array(z204.string()),
5818
+ title: z205.string(),
5819
+ isRoot: z205.boolean(),
5820
+ childrenIds: z205.array(z205.string()),
5801
5821
  groupBehavior: DocumentationGroupBehavior,
5802
- shortPersistentId: z204.string(),
5803
- type: z204.literal("Group")
5822
+ shortPersistentId: z205.string(),
5823
+ type: z205.literal("Group")
5804
5824
  });
5805
5825
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
5806
5826
  configuration: DTODocumentationItemConfigurationV1
5807
5827
  });
5808
5828
 
5809
5829
  // src/api/dto/elements/documentation/hierarchy.ts
5810
- import { z as z205 } from "zod";
5811
- var DTODocumentationHierarchyV2 = z205.object({
5812
- pages: z205.array(
5830
+ import { z as z206 } from "zod";
5831
+ var DTODocumentationHierarchyV2 = z206.object({
5832
+ pages: z206.array(
5813
5833
  DTODocumentationPageV2.extend({
5814
5834
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5815
5835
  draftState: DTODocumentationDraftState.optional()
5816
5836
  })
5817
5837
  ),
5818
- groups: z205.array(
5838
+ groups: z206.array(
5819
5839
  DTODocumentationGroupV2.extend({
5820
5840
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5821
5841
  draftState: DTODocumentationDraftState.optional()
@@ -5824,84 +5844,84 @@ var DTODocumentationHierarchyV2 = z205.object({
5824
5844
  });
5825
5845
 
5826
5846
  // src/api/dto/elements/documentation/page-actions-v2.ts
5827
- import { z as z206 } from "zod";
5828
- var SuccessPayload2 = z206.object({
5829
- success: z206.literal(true)
5847
+ import { z as z207 } from "zod";
5848
+ var SuccessPayload2 = z207.object({
5849
+ success: z207.literal(true)
5830
5850
  });
5831
- var DTODocumentationPageCreateActionOutputV2 = z206.object({
5832
- type: z206.literal("DocumentationPageCreate"),
5851
+ var DTODocumentationPageCreateActionOutputV2 = z207.object({
5852
+ type: z207.literal("DocumentationPageCreate"),
5833
5853
  output: SuccessPayload2
5834
5854
  });
5835
- var DTODocumentationPageUpdateActionOutputV2 = z206.object({
5836
- type: z206.literal("DocumentationPageUpdate"),
5855
+ var DTODocumentationPageUpdateActionOutputV2 = z207.object({
5856
+ type: z207.literal("DocumentationPageUpdate"),
5837
5857
  output: SuccessPayload2
5838
5858
  });
5839
- var DTODocumentationPageMoveActionOutputV2 = z206.object({
5840
- type: z206.literal("DocumentationPageMove"),
5859
+ var DTODocumentationPageMoveActionOutputV2 = z207.object({
5860
+ type: z207.literal("DocumentationPageMove"),
5841
5861
  output: SuccessPayload2
5842
5862
  });
5843
- var DTODocumentationPageDuplicateActionOutputV2 = z206.object({
5844
- type: z206.literal("DocumentationPageDuplicate"),
5863
+ var DTODocumentationPageDuplicateActionOutputV2 = z207.object({
5864
+ type: z207.literal("DocumentationPageDuplicate"),
5845
5865
  output: SuccessPayload2
5846
5866
  });
5847
- var DTODocumentationPageDeleteActionOutputV2 = z206.object({
5848
- type: z206.literal("DocumentationPageDelete"),
5867
+ var DTODocumentationPageDeleteActionOutputV2 = z207.object({
5868
+ type: z207.literal("DocumentationPageDelete"),
5849
5869
  output: SuccessPayload2
5850
5870
  });
5851
- var DTODocumentationPageRestoreActionOutput = z206.object({
5852
- type: z206.literal("DocumentationPageRestore"),
5871
+ var DTODocumentationPageRestoreActionOutput = z207.object({
5872
+ type: z207.literal("DocumentationPageRestore"),
5853
5873
  output: SuccessPayload2
5854
5874
  });
5855
- var DTODocumentationGroupRestoreActionOutput = z206.object({
5856
- type: z206.literal("DocumentationGroupRestore"),
5875
+ var DTODocumentationGroupRestoreActionOutput = z207.object({
5876
+ type: z207.literal("DocumentationGroupRestore"),
5857
5877
  output: SuccessPayload2
5858
5878
  });
5859
- var DTODocumentationPageApprovalStateChangeActionOutput = z206.object({
5860
- type: z206.literal("DocumentationPageApprovalStateChange"),
5879
+ var DTODocumentationPageApprovalStateChangeActionOutput = z207.object({
5880
+ type: z207.literal("DocumentationPageApprovalStateChange"),
5861
5881
  output: SuccessPayload2
5862
5882
  });
5863
- var DTODocumentationPageCreateActionInputV2 = z206.object({
5864
- type: z206.literal("DocumentationPageCreate"),
5883
+ var DTODocumentationPageCreateActionInputV2 = z207.object({
5884
+ type: z207.literal("DocumentationPageCreate"),
5865
5885
  input: DTOCreateDocumentationPageInputV2
5866
5886
  });
5867
- var DTODocumentationPageUpdateActionInputV2 = z206.object({
5868
- type: z206.literal("DocumentationPageUpdate"),
5887
+ var DTODocumentationPageUpdateActionInputV2 = z207.object({
5888
+ type: z207.literal("DocumentationPageUpdate"),
5869
5889
  input: DTOUpdateDocumentationPageInputV2
5870
5890
  });
5871
- var DTODocumentationPageMoveActionInputV2 = z206.object({
5872
- type: z206.literal("DocumentationPageMove"),
5891
+ var DTODocumentationPageMoveActionInputV2 = z207.object({
5892
+ type: z207.literal("DocumentationPageMove"),
5873
5893
  input: DTOMoveDocumentationPageInputV2
5874
5894
  });
5875
- var DTODocumentationPageDuplicateActionInputV2 = z206.object({
5876
- type: z206.literal("DocumentationPageDuplicate"),
5895
+ var DTODocumentationPageDuplicateActionInputV2 = z207.object({
5896
+ type: z207.literal("DocumentationPageDuplicate"),
5877
5897
  input: DTODuplicateDocumentationPageInputV2
5878
5898
  });
5879
- var DTODocumentationPageDeleteActionInputV2 = z206.object({
5880
- type: z206.literal("DocumentationPageDelete"),
5899
+ var DTODocumentationPageDeleteActionInputV2 = z207.object({
5900
+ type: z207.literal("DocumentationPageDelete"),
5881
5901
  input: DTODeleteDocumentationPageInputV2
5882
5902
  });
5883
- var DTODocumentationPageRestoreActionInput = z206.object({
5884
- type: z206.literal("DocumentationPageRestore"),
5903
+ var DTODocumentationPageRestoreActionInput = z207.object({
5904
+ type: z207.literal("DocumentationPageRestore"),
5885
5905
  input: DTORestoreDocumentationPageInput
5886
5906
  });
5887
- var DTODocumentationGroupRestoreActionInput = z206.object({
5888
- type: z206.literal("DocumentationGroupRestore"),
5907
+ var DTODocumentationGroupRestoreActionInput = z207.object({
5908
+ type: z207.literal("DocumentationGroupRestore"),
5889
5909
  input: DTORestoreDocumentationGroupInput
5890
5910
  });
5891
- var DTODocumentationPageApprovalStateChangeActionInput = z206.object({
5892
- type: z206.literal("DocumentationPageApprovalStateChange"),
5911
+ var DTODocumentationPageApprovalStateChangeActionInput = z207.object({
5912
+ type: z207.literal("DocumentationPageApprovalStateChange"),
5893
5913
  input: DTODocumentationPageApprovalStateChangeInput
5894
5914
  });
5895
5915
 
5896
5916
  // src/api/dto/elements/documentation/page-content.ts
5897
- import { z as z207 } from "zod";
5917
+ import { z as z208 } from "zod";
5898
5918
  var DTODocumentationPageContent = DocumentationPageContent;
5899
- var DTODocumentationPageContentGetResponse = z207.object({
5919
+ var DTODocumentationPageContentGetResponse = z208.object({
5900
5920
  pageContent: DTODocumentationPageContent
5901
5921
  });
5902
5922
 
5903
5923
  // src/api/dto/elements/documentation/page-v1.ts
5904
- import { z as z208 } from "zod";
5924
+ import { z as z209 } from "zod";
5905
5925
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
5906
5926
  data: true,
5907
5927
  meta: true,
@@ -5909,32 +5929,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
5909
5929
  sortOrder: true
5910
5930
  }).extend({
5911
5931
  configuration: DTODocumentationItemConfigurationV1,
5912
- blocks: z208.array(PageBlockV1),
5913
- title: z208.string(),
5914
- path: z208.string()
5932
+ blocks: z209.array(PageBlockV1),
5933
+ title: z209.string(),
5934
+ path: z209.string()
5915
5935
  });
5916
5936
 
5917
5937
  // src/api/dto/elements/figma-nodes/figma-node.ts
5918
- import { z as z209 } from "zod";
5938
+ import { z as z210 } from "zod";
5919
5939
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
5920
- var DTOFigmaNodeOrigin = z209.object({
5921
- sourceId: z209.string(),
5922
- fileId: z209.string().optional(),
5923
- parentName: z209.string().optional()
5940
+ var DTOFigmaNodeOrigin = z210.object({
5941
+ sourceId: z210.string(),
5942
+ fileId: z210.string().optional(),
5943
+ parentName: z210.string().optional()
5924
5944
  });
5925
- var DTOFigmaNodeData = z209.object({
5945
+ var DTOFigmaNodeData = z210.object({
5926
5946
  // Id of the node in the Figma file
5927
- figmaNodeId: z209.string(),
5947
+ figmaNodeId: z210.string(),
5928
5948
  // Validity
5929
- isValid: z209.boolean(),
5949
+ isValid: z210.boolean(),
5930
5950
  // Asset data
5931
- assetId: z209.string(),
5932
- assetUrl: z209.string(),
5951
+ assetId: z210.string(),
5952
+ assetUrl: z210.string(),
5933
5953
  assetFormat: DTOFigmaNodeRenderFormat,
5934
5954
  // Asset metadata
5935
- assetScale: z209.number(),
5936
- assetWidth: z209.number().optional(),
5937
- assetHeight: z209.number().optional()
5955
+ assetScale: z210.number(),
5956
+ assetWidth: z210.number().optional(),
5957
+ assetHeight: z210.number().optional()
5938
5958
  });
5939
5959
  var DTOFigmaNode = FigmaNodeReference.omit({
5940
5960
  data: true,
@@ -5943,15 +5963,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
5943
5963
  data: DTOFigmaNodeData,
5944
5964
  origin: DTOFigmaNodeOrigin
5945
5965
  });
5946
- var DTOFigmaNodeRenderInput = z209.object({
5966
+ var DTOFigmaNodeRenderInput = z210.object({
5947
5967
  /**
5948
5968
  * Id of a design system's data source representing a linked Figma file
5949
5969
  */
5950
- sourceId: z209.string(),
5970
+ sourceId: z210.string(),
5951
5971
  /**
5952
5972
  * Id of a node within the Figma file
5953
5973
  */
5954
- figmaFileNodeId: z209.string(),
5974
+ figmaFileNodeId: z210.string(),
5955
5975
  /**
5956
5976
  * Format in which the node must be rendered, png by default.
5957
5977
  */
@@ -5959,97 +5979,97 @@ var DTOFigmaNodeRenderInput = z209.object({
5959
5979
  });
5960
5980
 
5961
5981
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
5962
- import { z as z210 } from "zod";
5963
- var DTOFigmaNodeRenderActionOutput = z210.object({
5964
- type: z210.literal("FigmaNodeRender"),
5965
- figmaNodes: z210.array(DTOFigmaNode)
5982
+ import { z as z211 } from "zod";
5983
+ var DTOFigmaNodeRenderActionOutput = z211.object({
5984
+ type: z211.literal("FigmaNodeRender"),
5985
+ figmaNodes: z211.array(DTOFigmaNode)
5966
5986
  });
5967
- var DTOFigmaNodeRenderActionInput = z210.object({
5968
- type: z210.literal("FigmaNodeRender"),
5987
+ var DTOFigmaNodeRenderActionInput = z211.object({
5988
+ type: z211.literal("FigmaNodeRender"),
5969
5989
  input: DTOFigmaNodeRenderInput.array()
5970
5990
  });
5971
5991
 
5972
5992
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5973
- import { z as z212 } from "zod";
5993
+ import { z as z213 } from "zod";
5974
5994
 
5975
5995
  // src/api/dto/elements/properties/property-definitions.ts
5976
- import { z as z211 } from "zod";
5996
+ import { z as z212 } from "zod";
5977
5997
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
5978
- var DTOElementPropertyDefinition = z211.object({
5979
- id: z211.string(),
5980
- designSystemVersionId: z211.string(),
5998
+ var DTOElementPropertyDefinition = z212.object({
5999
+ id: z212.string(),
6000
+ designSystemVersionId: z212.string(),
5981
6001
  meta: ObjectMeta,
5982
- persistentId: z211.string(),
6002
+ persistentId: z212.string(),
5983
6003
  type: ElementPropertyTypeSchema,
5984
6004
  targetElementType: ElementPropertyTargetType,
5985
- codeName: z211.string().regex(CODE_NAME_REGEX2),
5986
- options: z211.array(ElementPropertyDefinitionOption).optional(),
6005
+ codeName: z212.string().regex(CODE_NAME_REGEX2),
6006
+ options: z212.array(ElementPropertyDefinitionOption).optional(),
5987
6007
  linkElementType: ElementPropertyLinkType.optional()
5988
6008
  });
5989
- var DTOElementPropertyDefinitionsGetResponse = z211.object({
5990
- definitions: z211.array(DTOElementPropertyDefinition)
6009
+ var DTOElementPropertyDefinitionsGetResponse = z212.object({
6010
+ definitions: z212.array(DTOElementPropertyDefinition)
5991
6011
  });
5992
6012
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
5993
6013
  id: true,
5994
6014
  designSystemVersionId: true
5995
6015
  });
5996
- var DTOUpdateElementPropertyDefinitionInputV2 = z211.object({
5997
- id: z211.string(),
5998
- name: z211.string().optional(),
5999
- description: z211.string().optional(),
6000
- codeName: z211.string().regex(CODE_NAME_REGEX2).optional(),
6001
- options: z211.array(ElementPropertyDefinitionOption).optional()
6016
+ var DTOUpdateElementPropertyDefinitionInputV2 = z212.object({
6017
+ id: z212.string(),
6018
+ name: z212.string().optional(),
6019
+ description: z212.string().optional(),
6020
+ codeName: z212.string().regex(CODE_NAME_REGEX2).optional(),
6021
+ options: z212.array(ElementPropertyDefinitionOption).optional()
6002
6022
  });
6003
- var DTODeleteElementPropertyDefinitionInputV2 = z211.object({
6004
- id: z211.string()
6023
+ var DTODeleteElementPropertyDefinitionInputV2 = z212.object({
6024
+ id: z212.string()
6005
6025
  });
6006
6026
 
6007
6027
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
6008
- var SuccessPayload3 = z212.object({
6009
- success: z212.literal(true)
6028
+ var SuccessPayload3 = z213.object({
6029
+ success: z213.literal(true)
6010
6030
  });
6011
- var DTOPropertyDefinitionCreateActionOutputV2 = z212.object({
6012
- type: z212.literal("PropertyDefinitionCreate"),
6031
+ var DTOPropertyDefinitionCreateActionOutputV2 = z213.object({
6032
+ type: z213.literal("PropertyDefinitionCreate"),
6013
6033
  definition: DTOElementPropertyDefinition
6014
6034
  });
6015
- var DTOPropertyDefinitionUpdateActionOutputV2 = z212.object({
6016
- type: z212.literal("PropertyDefinitionUpdate"),
6035
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z213.object({
6036
+ type: z213.literal("PropertyDefinitionUpdate"),
6017
6037
  definition: DTOElementPropertyDefinition
6018
6038
  });
6019
- var DTOPropertyDefinitionDeleteActionOutputV2 = z212.object({
6020
- type: z212.literal("PropertyDefinitionDelete"),
6039
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z213.object({
6040
+ type: z213.literal("PropertyDefinitionDelete"),
6021
6041
  output: SuccessPayload3
6022
6042
  });
6023
- var DTOPropertyDefinitionCreateActionInputV2 = z212.object({
6024
- type: z212.literal("PropertyDefinitionCreate"),
6043
+ var DTOPropertyDefinitionCreateActionInputV2 = z213.object({
6044
+ type: z213.literal("PropertyDefinitionCreate"),
6025
6045
  input: DTOCreateElementPropertyDefinitionInputV2
6026
6046
  });
6027
- var DTOPropertyDefinitionUpdateActionInputV2 = z212.object({
6028
- type: z212.literal("PropertyDefinitionUpdate"),
6047
+ var DTOPropertyDefinitionUpdateActionInputV2 = z213.object({
6048
+ type: z213.literal("PropertyDefinitionUpdate"),
6029
6049
  input: DTOUpdateElementPropertyDefinitionInputV2
6030
6050
  });
6031
- var DTOPropertyDefinitionDeleteActionInputV2 = z212.object({
6032
- type: z212.literal("PropertyDefinitionDelete"),
6051
+ var DTOPropertyDefinitionDeleteActionInputV2 = z213.object({
6052
+ type: z213.literal("PropertyDefinitionDelete"),
6033
6053
  input: DTODeleteElementPropertyDefinitionInputV2
6034
6054
  });
6035
6055
 
6036
6056
  // src/api/dto/elements/properties/property-values.ts
6037
- import { z as z213 } from "zod";
6038
- var DTOElementPropertyValue = z213.object({
6039
- id: z213.string(),
6040
- designSystemVersionId: z213.string(),
6041
- definitionId: z213.string(),
6042
- targetElementId: z213.string(),
6043
- value: z213.union([z213.string(), z213.number(), z213.boolean()]).optional(),
6044
- valuePreview: z213.string().optional()
6057
+ import { z as z214 } from "zod";
6058
+ var DTOElementPropertyValue = z214.object({
6059
+ id: z214.string(),
6060
+ designSystemVersionId: z214.string(),
6061
+ definitionId: z214.string(),
6062
+ targetElementId: z214.string(),
6063
+ value: z214.union([z214.string(), z214.number(), z214.boolean()]).optional(),
6064
+ valuePreview: z214.string().optional()
6045
6065
  });
6046
- var DTOElementPropertyValuesGetResponse = z213.object({
6047
- values: z213.array(DTOElementPropertyValue)
6066
+ var DTOElementPropertyValuesGetResponse = z214.object({
6067
+ values: z214.array(DTOElementPropertyValue)
6048
6068
  });
6049
6069
 
6050
6070
  // src/api/dto/elements/elements-action-v2.ts
6051
- import { z as z214 } from "zod";
6052
- var DTOElementActionOutput = z214.discriminatedUnion("type", [
6071
+ import { z as z215 } from "zod";
6072
+ var DTOElementActionOutput = z215.discriminatedUnion("type", [
6053
6073
  // Documentation pages
6054
6074
  DTODocumentationPageCreateActionOutputV2,
6055
6075
  DTODocumentationPageUpdateActionOutputV2,
@@ -6076,7 +6096,7 @@ var DTOElementActionOutput = z214.discriminatedUnion("type", [
6076
6096
  // Approvals
6077
6097
  DTODocumentationPageApprovalStateChangeActionOutput
6078
6098
  ]);
6079
- var DTOElementActionInput = z214.discriminatedUnion("type", [
6099
+ var DTOElementActionInput = z215.discriminatedUnion("type", [
6080
6100
  // Documentation pages
6081
6101
  DTODocumentationPageCreateActionInputV2,
6082
6102
  DTODocumentationPageUpdateActionInputV2,
@@ -6105,141 +6125,141 @@ var DTOElementActionInput = z214.discriminatedUnion("type", [
6105
6125
  ]);
6106
6126
 
6107
6127
  // src/api/dto/elements/get-elements-v2.ts
6108
- import { z as z215 } from "zod";
6109
- var DTOElementsGetTypeFilter = z215.enum(["FigmaNode"]);
6110
- var DTOElementsGetQuerySchema = z215.object({
6111
- types: z215.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6128
+ import { z as z216 } from "zod";
6129
+ var DTOElementsGetTypeFilter = z216.enum(["FigmaNode"]);
6130
+ var DTOElementsGetQuerySchema = z216.object({
6131
+ types: z216.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6112
6132
  });
6113
- var DTOElementsGetOutput = z215.object({
6114
- figmaNodes: z215.array(DTOFigmaNode).optional()
6133
+ var DTOElementsGetOutput = z216.object({
6134
+ figmaNodes: z216.array(DTOFigmaNode).optional()
6115
6135
  });
6116
6136
 
6117
6137
  // src/api/dto/figma-components/assets/download.ts
6118
- import { z as z216 } from "zod";
6119
- var DTOAssetRenderConfiguration = z216.object({
6120
- prefix: z216.string().optional(),
6121
- suffix: z216.string().optional(),
6122
- scale: z216.enum(["x1", "x2", "x3", "x4"]),
6123
- format: z216.enum(["png", "pdf", "svg"])
6124
- });
6125
- var DTORenderedAssetFile = z216.object({
6126
- assetId: z216.string(),
6127
- fileName: z216.string(),
6128
- sourceUrl: z216.string(),
6138
+ import { z as z217 } from "zod";
6139
+ var DTOAssetRenderConfiguration = z217.object({
6140
+ prefix: z217.string().optional(),
6141
+ suffix: z217.string().optional(),
6142
+ scale: z217.enum(["x1", "x2", "x3", "x4"]),
6143
+ format: z217.enum(["png", "pdf", "svg"])
6144
+ });
6145
+ var DTORenderedAssetFile = z217.object({
6146
+ assetId: z217.string(),
6147
+ fileName: z217.string(),
6148
+ sourceUrl: z217.string(),
6129
6149
  settings: DTOAssetRenderConfiguration,
6130
- originalName: z216.string()
6150
+ originalName: z217.string()
6131
6151
  });
6132
- var DTODownloadAssetsRequest = z216.object({
6133
- persistentIds: z216.array(z216.string().uuid()).optional(),
6152
+ var DTODownloadAssetsRequest = z217.object({
6153
+ persistentIds: z217.array(z217.string().uuid()).optional(),
6134
6154
  settings: DTOAssetRenderConfiguration.array()
6135
6155
  });
6136
- var DTODownloadAssetsResponse = z216.object({
6156
+ var DTODownloadAssetsResponse = z217.object({
6137
6157
  items: DTORenderedAssetFile.array()
6138
6158
  });
6139
6159
 
6140
6160
  // src/api/dto/liveblocks/auth-response.ts
6141
- import { z as z217 } from "zod";
6142
- var DTOLiveblocksAuthResponse = z217.object({
6143
- token: z217.string()
6161
+ import { z as z218 } from "zod";
6162
+ var DTOLiveblocksAuthResponse = z218.object({
6163
+ token: z218.string()
6144
6164
  });
6145
6165
 
6146
6166
  // src/api/dto/users/profile/update.ts
6147
- import { z as z218 } from "zod";
6148
- var DTOUserProfileUpdateResponse = z218.object({
6167
+ import { z as z219 } from "zod";
6168
+ var DTOUserProfileUpdateResponse = z219.object({
6149
6169
  user: User
6150
6170
  });
6151
6171
 
6152
6172
  // src/api/dto/workspaces/git.ts
6153
- import { z as z219 } from "zod";
6154
- var DTOGitOrganization = z219.object({
6155
- id: z219.string(),
6156
- name: z219.string(),
6157
- url: z219.string(),
6158
- slug: z219.string()
6159
- });
6160
- var DTOGitProject = z219.object({
6161
- id: z219.string(),
6162
- name: z219.string(),
6163
- url: z219.string(),
6164
- slug: z219.string()
6165
- });
6166
- var DTOGitRepository = z219.object({
6167
- id: z219.string(),
6168
- name: z219.string(),
6169
- url: z219.string(),
6170
- slug: z219.string(),
6171
- defaultBranch: z219.string().optional()
6172
- });
6173
- var DTOGitBranch = z219.object({
6174
- name: z219.string(),
6175
- lastCommitId: z219.string()
6173
+ import { z as z220 } from "zod";
6174
+ var DTOGitOrganization = z220.object({
6175
+ id: z220.string(),
6176
+ name: z220.string(),
6177
+ url: z220.string(),
6178
+ slug: z220.string()
6179
+ });
6180
+ var DTOGitProject = z220.object({
6181
+ id: z220.string(),
6182
+ name: z220.string(),
6183
+ url: z220.string(),
6184
+ slug: z220.string()
6185
+ });
6186
+ var DTOGitRepository = z220.object({
6187
+ id: z220.string(),
6188
+ name: z220.string(),
6189
+ url: z220.string(),
6190
+ slug: z220.string(),
6191
+ defaultBranch: z220.string().optional()
6192
+ });
6193
+ var DTOGitBranch = z220.object({
6194
+ name: z220.string(),
6195
+ lastCommitId: z220.string()
6176
6196
  });
6177
6197
 
6178
6198
  // src/api/dto/workspaces/integrations.ts
6179
- import { z as z220 } from "zod";
6199
+ import { z as z221 } from "zod";
6180
6200
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
6181
6201
  accessToken: true,
6182
6202
  refreshToken: true
6183
6203
  });
6184
- var DTOIntegration = z220.object({
6185
- id: z220.string(),
6186
- workspaceId: z220.string(),
6204
+ var DTOIntegration = z221.object({
6205
+ id: z221.string(),
6206
+ workspaceId: z221.string(),
6187
6207
  type: ExtendedIntegrationType,
6188
- createdAt: z220.coerce.date(),
6189
- integrationCredentials: z220.array(DTOIntegrationCredentials).optional(),
6190
- integrationDesignSystems: z220.array(IntegrationDesignSystem).optional()
6208
+ createdAt: z221.coerce.date(),
6209
+ integrationCredentials: z221.array(DTOIntegrationCredentials).optional(),
6210
+ integrationDesignSystems: z221.array(IntegrationDesignSystem).optional()
6191
6211
  });
6192
- var DTOIntegrationOAuthGetResponse = z220.object({
6193
- url: z220.string()
6212
+ var DTOIntegrationOAuthGetResponse = z221.object({
6213
+ url: z221.string()
6194
6214
  });
6195
- var DTOIntegrationPostResponse = z220.object({
6215
+ var DTOIntegrationPostResponse = z221.object({
6196
6216
  integration: DTOIntegration
6197
6217
  });
6198
- var DTOIntegrationsGetListResponse = z220.object({
6218
+ var DTOIntegrationsGetListResponse = z221.object({
6199
6219
  integrations: DTOIntegration.array()
6200
6220
  });
6201
6221
 
6202
6222
  // src/api/dto/workspaces/membership.ts
6203
- import { z as z223 } from "zod";
6223
+ import { z as z224 } from "zod";
6204
6224
 
6205
6225
  // src/api/dto/workspaces/workspace.ts
6206
- import { z as z222 } from "zod";
6226
+ import { z as z223 } from "zod";
6207
6227
 
6208
6228
  // src/api/dto/workspaces/npm-registry.ts
6209
- import { z as z221 } from "zod";
6229
+ import { z as z222 } from "zod";
6210
6230
  var DTONpmRegistryConfigConstants = {
6211
6231
  passwordPlaceholder: "redacted"
6212
6232
  };
6213
- var DTONpmRegistryConfig = z221.object({
6233
+ var DTONpmRegistryConfig = z222.object({
6214
6234
  // Registry basic configuration
6215
6235
  registryType: NpmRegistryType,
6216
- registryUrl: z221.string(),
6217
- customRegistryUrl: z221.string().optional(),
6236
+ registryUrl: z222.string(),
6237
+ customRegistryUrl: z222.string().optional(),
6218
6238
  // URL of Supernova NPM packages proxy
6219
- proxyUrl: z221.string(),
6239
+ proxyUrl: z222.string(),
6220
6240
  // Auth configuration
6221
6241
  authType: NpmRegistryAuthType,
6222
- accessToken: z221.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6223
- username: z221.string().optional(),
6224
- password: z221.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6242
+ accessToken: z222.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6243
+ username: z222.string().optional(),
6244
+ password: z222.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6225
6245
  // NPM package scopes for whih the proxy should be enabled
6226
- enabledScopes: z221.array(z221.string()),
6246
+ enabledScopes: z222.array(z222.string()),
6227
6247
  // True if client should bypass Supernova proxy and connect directly to the registry
6228
6248
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
6229
- bypassProxy: z221.boolean()
6249
+ bypassProxy: z222.boolean()
6230
6250
  });
6231
6251
 
6232
6252
  // src/api/dto/workspaces/workspace.ts
6233
- var DTOWorkspace = z222.object({
6234
- id: z222.string(),
6253
+ var DTOWorkspace = z223.object({
6254
+ id: z223.string(),
6235
6255
  profile: WorkspaceProfile,
6236
6256
  subscription: Subscription,
6237
6257
  npmRegistry: DTONpmRegistryConfig.optional()
6238
6258
  });
6239
6259
 
6240
6260
  // src/api/dto/workspaces/membership.ts
6241
- var DTOWorkspaceRole = z223.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
6242
- var DTOUserWorkspaceMembership = z223.object({
6261
+ var DTOWorkspaceRole = z224.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
6262
+ var DTOUserWorkspaceMembership = z224.object({
6243
6263
  // Workspace the user is a member of
6244
6264
  workspace: DTOWorkspace,
6245
6265
  // Assigned role the user has in the workspace
@@ -6249,8 +6269,8 @@ var DTOUserWorkspaceMembership = z223.object({
6249
6269
  // when a workspace's subscription is downgraded to free tier
6250
6270
  effectiveRole: DTOWorkspaceRole
6251
6271
  });
6252
- var DTOUserWorkspaceMembershipsResponse = z223.object({
6253
- membership: z223.array(DTOUserWorkspaceMembership)
6272
+ var DTOUserWorkspaceMembershipsResponse = z224.object({
6273
+ membership: z224.array(DTOUserWorkspaceMembership)
6254
6274
  });
6255
6275
 
6256
6276
  // src/utils/hash.ts
@@ -6312,7 +6332,7 @@ function generateHash(input, debug = false) {
6312
6332
  }
6313
6333
 
6314
6334
  // src/yjs/design-system-content/documentation-hierarchy.ts
6315
- import { z as z224 } from "zod";
6335
+ import { z as z225 } from "zod";
6316
6336
 
6317
6337
  // src/yjs/version-room/base.ts
6318
6338
  var VersionRoomBaseYDoc = class {
@@ -6841,24 +6861,24 @@ var FrontendVersionRoomYDoc = class {
6841
6861
  };
6842
6862
 
6843
6863
  // src/yjs/design-system-content/documentation-hierarchy.ts
6844
- var DocumentationHierarchySettings = z224.object({
6845
- routingVersion: z224.string(),
6846
- isDraftFeatureAdopted: z224.boolean(),
6847
- isApprovalFeatureEnabled: z224.boolean(),
6848
- approvalRequiredForPublishing: z224.boolean()
6864
+ var DocumentationHierarchySettings = z225.object({
6865
+ routingVersion: z225.string(),
6866
+ isDraftFeatureAdopted: z225.boolean(),
6867
+ isApprovalFeatureEnabled: z225.boolean(),
6868
+ approvalRequiredForPublishing: z225.boolean()
6849
6869
  });
6850
6870
  function yjsToDocumentationHierarchy(doc) {
6851
6871
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
6852
6872
  }
6853
6873
 
6854
6874
  // src/yjs/design-system-content/item-configuration.ts
6855
- import { z as z225 } from "zod";
6856
- var DTODocumentationPageRoomHeaderData = z225.object({
6857
- title: z225.string(),
6875
+ import { z as z226 } from "zod";
6876
+ var DTODocumentationPageRoomHeaderData = z226.object({
6877
+ title: z226.string(),
6858
6878
  configuration: DTODocumentationItemConfigurationV2
6859
6879
  });
6860
- var DTODocumentationPageRoomHeaderDataUpdate = z225.object({
6861
- title: z225.string().optional(),
6880
+ var DTODocumentationPageRoomHeaderDataUpdate = z226.object({
6881
+ title: z226.string().optional(),
6862
6882
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
6863
6883
  });
6864
6884
  function itemConfigurationToYjs(yDoc, item) {
@@ -6909,7 +6929,7 @@ function yjsToItemConfiguration(yDoc) {
6909
6929
  header: rawHeader
6910
6930
  };
6911
6931
  return {
6912
- title: z225.string().parse(title),
6932
+ title: z226.string().parse(title),
6913
6933
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
6914
6934
  };
6915
6935
  }
@@ -6919,9 +6939,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
6919
6939
  var PageSectionEditorModel = PageSectionEditorModelV2;
6920
6940
 
6921
6941
  // src/yjs/docs-editor/model/page.ts
6922
- import { z as z226 } from "zod";
6923
- var DocumentationPageEditorModel = z226.object({
6924
- blocks: z226.array(DocumentationPageContentItem)
6942
+ import { z as z227 } from "zod";
6943
+ var DocumentationPageEditorModel = z227.object({
6944
+ blocks: z227.array(DocumentationPageContentItem)
6925
6945
  });
6926
6946
 
6927
6947
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -10594,7 +10614,7 @@ var blocks = [
10594
10614
 
10595
10615
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
10596
10616
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
10597
- import { z as z227 } from "zod";
10617
+ import { z as z228 } from "zod";
10598
10618
  function yDocToPage(yDoc, definitions) {
10599
10619
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
10600
10620
  }
@@ -10637,7 +10657,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
10637
10657
  return null;
10638
10658
  return {
10639
10659
  id,
10640
- title: getProsemirrorAttribute(prosemirrorNode, "title", z227.string()) ?? "",
10660
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z228.string()) ?? "",
10641
10661
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
10642
10662
  };
10643
10663
  }
@@ -10672,7 +10692,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
10672
10692
  });
10673
10693
  }
10674
10694
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
10675
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z227.string());
10695
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z228.string());
10676
10696
  if (!definitionId) {
10677
10697
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
10678
10698
  return [];
@@ -10714,7 +10734,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
10714
10734
  if (!id)
10715
10735
  return null;
10716
10736
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
10717
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z227.string().optional()));
10737
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z228.string().optional()));
10718
10738
  return {
10719
10739
  id,
10720
10740
  type: "Block",
@@ -10842,10 +10862,10 @@ function parseRichTextAttribute(mark) {
10842
10862
  return null;
10843
10863
  }
10844
10864
  function parseProsemirrorLink(mark) {
10845
- const href = getProsemirrorAttribute(mark, "href", z227.string().optional());
10865
+ const href = getProsemirrorAttribute(mark, "href", z228.string().optional());
10846
10866
  if (!href)
10847
10867
  return null;
10848
- const target = getProsemirrorAttribute(mark, "target", z227.string().optional());
10868
+ const target = getProsemirrorAttribute(mark, "target", z228.string().optional());
10849
10869
  const openInNewTab = target === "_blank";
10850
10870
  if (href.startsWith("@")) {
10851
10871
  return {
@@ -10864,10 +10884,10 @@ function parseProsemirrorLink(mark) {
10864
10884
  }
10865
10885
  }
10866
10886
  function parseProsemirrorCommentHighlight(mark) {
10867
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z227.string().optional());
10887
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z228.string().optional());
10868
10888
  if (!highlightId)
10869
10889
  return null;
10870
- const isResolved = getProsemirrorAttribute(mark, "resolved", z227.boolean().optional()) ?? false;
10890
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z228.boolean().optional()) ?? false;
10871
10891
  return {
10872
10892
  type: "Comment",
10873
10893
  commentHighlightId: highlightId,
@@ -10879,7 +10899,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
10879
10899
  if (!id)
10880
10900
  return null;
10881
10901
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
10882
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z227.boolean().optional()) !== false;
10902
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z228.boolean().optional()) !== false;
10883
10903
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
10884
10904
  if (!tableChild) {
10885
10905
  return emptyTable(id, variantId, 0);
@@ -10926,9 +10946,9 @@ function parseAsTableCell(prosemirrorNode) {
10926
10946
  const id = getProsemirrorBlockId(prosemirrorNode);
10927
10947
  if (!id)
10928
10948
  return null;
10929
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z227.string().optional());
10949
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z228.string().optional());
10930
10950
  let columnWidth;
10931
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z227.array(z227.number()).optional());
10951
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z228.array(z228.number()).optional());
10932
10952
  if (columnWidthArray) {
10933
10953
  columnWidth = roundDimension(columnWidthArray[0]);
10934
10954
  }
@@ -10966,7 +10986,7 @@ function parseAsTableNode(prosemirrorNode) {
10966
10986
  value: parseRichText(prosemirrorNode.content ?? [])
10967
10987
  };
10968
10988
  case "image":
10969
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z227.string());
10989
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z228.string());
10970
10990
  if (!items)
10971
10991
  return null;
10972
10992
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -11083,7 +11103,7 @@ function definitionExpectsPlaceholderItem(definition) {
11083
11103
  );
11084
11104
  }
11085
11105
  function parseBlockItems(prosemirrorNode, definition) {
11086
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z227.string());
11106
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z228.string());
11087
11107
  if (!itemsString)
11088
11108
  return null;
11089
11109
  const itemsJson = JSON.parse(itemsString);
@@ -11095,18 +11115,18 @@ function parseBlockItems(prosemirrorNode, definition) {
11095
11115
  }
11096
11116
  function parseAppearance(prosemirrorNode) {
11097
11117
  let appearance = {};
11098
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z227.string().optional());
11118
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z228.string().optional());
11099
11119
  if (rawAppearanceString) {
11100
11120
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
11101
11121
  if (parsedAppearance.success) {
11102
11122
  appearance = parsedAppearance.data;
11103
11123
  }
11104
11124
  }
11105
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z227.number().optional());
11125
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z228.number().optional());
11106
11126
  if (columns) {
11107
11127
  appearance.numberOfColumns = columns;
11108
11128
  }
11109
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z227.string().optional());
11129
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z228.string().optional());
11110
11130
  if (backgroundColor) {
11111
11131
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
11112
11132
  if (parsedColor.success) {
@@ -11201,13 +11221,13 @@ function valueSchemaForPropertyType(type) {
11201
11221
  }
11202
11222
  }
11203
11223
  function getProsemirrorBlockId(prosemirrorNode) {
11204
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z227.string());
11224
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z228.string());
11205
11225
  if (!id)
11206
11226
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
11207
11227
  return id;
11208
11228
  }
11209
11229
  function getProsemirrorBlockVariantId(prosemirrorNode) {
11210
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z227.string()));
11230
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z228.string()));
11211
11231
  }
11212
11232
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
11213
11233
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -11388,6 +11408,7 @@ export {
11388
11408
  DTOExporterSource,
11389
11409
  DTOExporterType,
11390
11410
  DTOExporterUpdateInput,
11411
+ DTOFigmaComponent,
11391
11412
  DTOFigmaNode,
11392
11413
  DTOFigmaNodeData,
11393
11414
  DTOFigmaNodeOrigin,