@supernova-studio/client 0.52.12 → 0.52.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -8967,7 +8967,6 @@ declare const DTOFigmaComponent: z.ZodObject<{
8967
8967
  persistentId: z.ZodString;
8968
8968
  designSystemVersionId: z.ZodString;
8969
8969
  brandId: z.ZodString;
8970
- parentComponentId: z.ZodOptional<z.ZodString>;
8971
8970
  thumbnailUrl: z.ZodOptional<z.ZodString>;
8972
8971
  svgUrl: z.ZodOptional<z.ZodString>;
8973
8972
  exportProperties: z.ZodObject<{
@@ -9012,6 +9011,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9012
9011
  height?: number | undefined;
9013
9012
  nodeId?: string | undefined;
9014
9013
  }>>;
9014
+ parentComponentPersistentId: z.ZodOptional<z.ZodString>;
9015
9015
  componentPropertyDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9016
9016
  type: z.ZodLiteral<"Boolean">;
9017
9017
  defaultValue: z.ZodBoolean;
@@ -9072,7 +9072,6 @@ declare const DTOFigmaComponent: z.ZodObject<{
9072
9072
  exportProperties: {
9073
9073
  isAsset: boolean;
9074
9074
  };
9075
- parentComponentId?: string | undefined;
9076
9075
  thumbnailUrl?: string | undefined;
9077
9076
  svgUrl?: string | undefined;
9078
9077
  originComponent?: {
@@ -9083,6 +9082,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9083
9082
  height?: number | undefined;
9084
9083
  nodeId?: string | undefined;
9085
9084
  } | undefined;
9085
+ parentComponentPersistentId?: string | undefined;
9086
9086
  componentPropertyDefinitions?: Record<string, {
9087
9087
  type: "Boolean";
9088
9088
  defaultValue: boolean;
@@ -9111,7 +9111,6 @@ declare const DTOFigmaComponent: z.ZodObject<{
9111
9111
  exportProperties: {
9112
9112
  isAsset: boolean;
9113
9113
  };
9114
- parentComponentId?: string | undefined;
9115
9114
  thumbnailUrl?: string | undefined;
9116
9115
  svgUrl?: string | undefined;
9117
9116
  originComponent?: {
@@ -9122,6 +9121,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9122
9121
  height?: number | undefined;
9123
9122
  nodeId?: string | undefined;
9124
9123
  } | undefined;
9124
+ parentComponentPersistentId?: string | undefined;
9125
9125
  componentPropertyDefinitions?: Record<string, {
9126
9126
  type: "Boolean";
9127
9127
  defaultValue: boolean;
@@ -23584,9 +23584,9 @@ declare const DTOFigmaNode: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUt
23584
23584
  assetOriginKey: z.ZodOptional<z.ZodString>;
23585
23585
  }, "strip", z.ZodTypeAny, {
23586
23586
  valid: boolean;
23587
- nodeId: string;
23588
23587
  format: "Png" | "Svg";
23589
23588
  structureElementId: string;
23589
+ nodeId: string;
23590
23590
  assetId?: string | undefined;
23591
23591
  assetScale?: number | undefined;
23592
23592
  assetUrl?: string | undefined;
@@ -23596,8 +23596,8 @@ declare const DTOFigmaNode: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUt
23596
23596
  assetOriginKey?: string | undefined;
23597
23597
  }, {
23598
23598
  valid: boolean;
23599
- nodeId: string;
23600
23599
  structureElementId: string;
23600
+ nodeId: string;
23601
23601
  assetId?: string | undefined;
23602
23602
  assetScale?: number | undefined;
23603
23603
  assetUrl?: string | undefined;
@@ -23768,9 +23768,9 @@ declare const DTOFigmaNodeRenderActionOutput: z.ZodObject<{
23768
23768
  assetOriginKey: z.ZodOptional<z.ZodString>;
23769
23769
  }, "strip", z.ZodTypeAny, {
23770
23770
  valid: boolean;
23771
- nodeId: string;
23772
23771
  format: "Png" | "Svg";
23773
23772
  structureElementId: string;
23773
+ nodeId: string;
23774
23774
  assetId?: string | undefined;
23775
23775
  assetScale?: number | undefined;
23776
23776
  assetUrl?: string | undefined;
@@ -23780,8 +23780,8 @@ declare const DTOFigmaNodeRenderActionOutput: z.ZodObject<{
23780
23780
  assetOriginKey?: string | undefined;
23781
23781
  }, {
23782
23782
  valid: boolean;
23783
- nodeId: string;
23784
23783
  structureElementId: string;
23784
+ nodeId: string;
23785
23785
  assetId?: string | undefined;
23786
23786
  assetScale?: number | undefined;
23787
23787
  assetUrl?: string | undefined;
@@ -25164,9 +25164,9 @@ declare const DTOElementActionOutput: z.ZodDiscriminatedUnion<"type", [z.ZodObje
25164
25164
  assetOriginKey: z.ZodOptional<z.ZodString>;
25165
25165
  }, "strip", z.ZodTypeAny, {
25166
25166
  valid: boolean;
25167
- nodeId: string;
25168
25167
  format: "Png" | "Svg";
25169
25168
  structureElementId: string;
25169
+ nodeId: string;
25170
25170
  assetId?: string | undefined;
25171
25171
  assetScale?: number | undefined;
25172
25172
  assetUrl?: string | undefined;
@@ -25176,8 +25176,8 @@ declare const DTOElementActionOutput: z.ZodDiscriminatedUnion<"type", [z.ZodObje
25176
25176
  assetOriginKey?: string | undefined;
25177
25177
  }, {
25178
25178
  valid: boolean;
25179
- nodeId: string;
25180
25179
  structureElementId: string;
25180
+ nodeId: string;
25181
25181
  assetId?: string | undefined;
25182
25182
  assetScale?: number | undefined;
25183
25183
  assetUrl?: string | undefined;
@@ -27646,9 +27646,9 @@ declare const DTOElementsGetOutput: z.ZodObject<{
27646
27646
  assetOriginKey: z.ZodOptional<z.ZodString>;
27647
27647
  }, "strip", z.ZodTypeAny, {
27648
27648
  valid: boolean;
27649
- nodeId: string;
27650
27649
  format: "Png" | "Svg";
27651
27650
  structureElementId: string;
27651
+ nodeId: string;
27652
27652
  assetId?: string | undefined;
27653
27653
  assetScale?: number | undefined;
27654
27654
  assetUrl?: string | undefined;
@@ -27658,8 +27658,8 @@ declare const DTOElementsGetOutput: z.ZodObject<{
27658
27658
  assetOriginKey?: string | undefined;
27659
27659
  }, {
27660
27660
  valid: boolean;
27661
- nodeId: string;
27662
27661
  structureElementId: string;
27662
+ nodeId: string;
27663
27663
  assetId?: string | undefined;
27664
27664
  assetScale?: number | undefined;
27665
27665
  assetUrl?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -8967,7 +8967,6 @@ declare const DTOFigmaComponent: z.ZodObject<{
8967
8967
  persistentId: z.ZodString;
8968
8968
  designSystemVersionId: z.ZodString;
8969
8969
  brandId: z.ZodString;
8970
- parentComponentId: z.ZodOptional<z.ZodString>;
8971
8970
  thumbnailUrl: z.ZodOptional<z.ZodString>;
8972
8971
  svgUrl: z.ZodOptional<z.ZodString>;
8973
8972
  exportProperties: z.ZodObject<{
@@ -9012,6 +9011,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9012
9011
  height?: number | undefined;
9013
9012
  nodeId?: string | undefined;
9014
9013
  }>>;
9014
+ parentComponentPersistentId: z.ZodOptional<z.ZodString>;
9015
9015
  componentPropertyDefinitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
9016
9016
  type: z.ZodLiteral<"Boolean">;
9017
9017
  defaultValue: z.ZodBoolean;
@@ -9072,7 +9072,6 @@ declare const DTOFigmaComponent: z.ZodObject<{
9072
9072
  exportProperties: {
9073
9073
  isAsset: boolean;
9074
9074
  };
9075
- parentComponentId?: string | undefined;
9076
9075
  thumbnailUrl?: string | undefined;
9077
9076
  svgUrl?: string | undefined;
9078
9077
  originComponent?: {
@@ -9083,6 +9082,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9083
9082
  height?: number | undefined;
9084
9083
  nodeId?: string | undefined;
9085
9084
  } | undefined;
9085
+ parentComponentPersistentId?: string | undefined;
9086
9086
  componentPropertyDefinitions?: Record<string, {
9087
9087
  type: "Boolean";
9088
9088
  defaultValue: boolean;
@@ -9111,7 +9111,6 @@ declare const DTOFigmaComponent: z.ZodObject<{
9111
9111
  exportProperties: {
9112
9112
  isAsset: boolean;
9113
9113
  };
9114
- parentComponentId?: string | undefined;
9115
9114
  thumbnailUrl?: string | undefined;
9116
9115
  svgUrl?: string | undefined;
9117
9116
  originComponent?: {
@@ -9122,6 +9121,7 @@ declare const DTOFigmaComponent: z.ZodObject<{
9122
9121
  height?: number | undefined;
9123
9122
  nodeId?: string | undefined;
9124
9123
  } | undefined;
9124
+ parentComponentPersistentId?: string | undefined;
9125
9125
  componentPropertyDefinitions?: Record<string, {
9126
9126
  type: "Boolean";
9127
9127
  defaultValue: boolean;
@@ -23584,9 +23584,9 @@ declare const DTOFigmaNode: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUt
23584
23584
  assetOriginKey: z.ZodOptional<z.ZodString>;
23585
23585
  }, "strip", z.ZodTypeAny, {
23586
23586
  valid: boolean;
23587
- nodeId: string;
23588
23587
  format: "Png" | "Svg";
23589
23588
  structureElementId: string;
23589
+ nodeId: string;
23590
23590
  assetId?: string | undefined;
23591
23591
  assetScale?: number | undefined;
23592
23592
  assetUrl?: string | undefined;
@@ -23596,8 +23596,8 @@ declare const DTOFigmaNode: z.ZodObject<z.objectUtil.extendShape<Omit<z.objectUt
23596
23596
  assetOriginKey?: string | undefined;
23597
23597
  }, {
23598
23598
  valid: boolean;
23599
- nodeId: string;
23600
23599
  structureElementId: string;
23600
+ nodeId: string;
23601
23601
  assetId?: string | undefined;
23602
23602
  assetScale?: number | undefined;
23603
23603
  assetUrl?: string | undefined;
@@ -23768,9 +23768,9 @@ declare const DTOFigmaNodeRenderActionOutput: z.ZodObject<{
23768
23768
  assetOriginKey: z.ZodOptional<z.ZodString>;
23769
23769
  }, "strip", z.ZodTypeAny, {
23770
23770
  valid: boolean;
23771
- nodeId: string;
23772
23771
  format: "Png" | "Svg";
23773
23772
  structureElementId: string;
23773
+ nodeId: string;
23774
23774
  assetId?: string | undefined;
23775
23775
  assetScale?: number | undefined;
23776
23776
  assetUrl?: string | undefined;
@@ -23780,8 +23780,8 @@ declare const DTOFigmaNodeRenderActionOutput: z.ZodObject<{
23780
23780
  assetOriginKey?: string | undefined;
23781
23781
  }, {
23782
23782
  valid: boolean;
23783
- nodeId: string;
23784
23783
  structureElementId: string;
23784
+ nodeId: string;
23785
23785
  assetId?: string | undefined;
23786
23786
  assetScale?: number | undefined;
23787
23787
  assetUrl?: string | undefined;
@@ -25164,9 +25164,9 @@ declare const DTOElementActionOutput: z.ZodDiscriminatedUnion<"type", [z.ZodObje
25164
25164
  assetOriginKey: z.ZodOptional<z.ZodString>;
25165
25165
  }, "strip", z.ZodTypeAny, {
25166
25166
  valid: boolean;
25167
- nodeId: string;
25168
25167
  format: "Png" | "Svg";
25169
25168
  structureElementId: string;
25169
+ nodeId: string;
25170
25170
  assetId?: string | undefined;
25171
25171
  assetScale?: number | undefined;
25172
25172
  assetUrl?: string | undefined;
@@ -25176,8 +25176,8 @@ declare const DTOElementActionOutput: z.ZodDiscriminatedUnion<"type", [z.ZodObje
25176
25176
  assetOriginKey?: string | undefined;
25177
25177
  }, {
25178
25178
  valid: boolean;
25179
- nodeId: string;
25180
25179
  structureElementId: string;
25180
+ nodeId: string;
25181
25181
  assetId?: string | undefined;
25182
25182
  assetScale?: number | undefined;
25183
25183
  assetUrl?: string | undefined;
@@ -27646,9 +27646,9 @@ declare const DTOElementsGetOutput: z.ZodObject<{
27646
27646
  assetOriginKey: z.ZodOptional<z.ZodString>;
27647
27647
  }, "strip", z.ZodTypeAny, {
27648
27648
  valid: boolean;
27649
- nodeId: string;
27650
27649
  format: "Png" | "Svg";
27651
27650
  structureElementId: string;
27651
+ nodeId: string;
27652
27652
  assetId?: string | undefined;
27653
27653
  assetScale?: number | undefined;
27654
27654
  assetUrl?: string | undefined;
@@ -27658,8 +27658,8 @@ declare const DTOElementsGetOutput: z.ZodObject<{
27658
27658
  assetOriginKey?: string | undefined;
27659
27659
  }, {
27660
27660
  valid: boolean;
27661
- nodeId: string;
27662
27661
  structureElementId: string;
27662
+ nodeId: string;
27663
27663
  assetId?: string | undefined;
27664
27664
  assetScale?: number | undefined;
27665
27665
  assetUrl?: string | undefined;
package/dist/index.js CHANGED
@@ -43,8 +43,6 @@ var _zod = require('zod');
43
43
 
44
44
 
45
45
 
46
-
47
-
48
46
 
49
47
 
50
48
 
@@ -124,6 +122,8 @@ var _slugify = require('@sindresorhus/slugify'); var _slugify2 = _interopRequire
124
122
 
125
123
 
126
124
 
125
+
126
+
127
127
 
128
128
 
129
129
 
@@ -591,92 +591,6 @@ var ImportWarning = _zod.z.object({
591
591
  unsupportedStyleValueType: _zod.z.string().optional(),
592
592
  referenceId: _zod.z.string().optional()
593
593
  });
594
- var DesignElementOrigin = _zod.z.object({
595
- id: _zod.z.string(),
596
- sourceId: _zod.z.string(),
597
- name: _zod.z.string()
598
- });
599
- var DesignElementBase = _zod.z.object({
600
- id: _zod.z.string(),
601
- persistentId: _zod.z.string(),
602
- meta: ObjectMeta,
603
- designSystemVersionId: _zod.z.string(),
604
- createdAt: _zod.z.coerce.date(),
605
- updatedAt: _zod.z.coerce.date()
606
- });
607
- var DesignElementImportedBase = DesignElementBase.extend({
608
- origin: DesignElementOrigin
609
- });
610
- var DesignElementGroupablePart = _zod.z.object({
611
- parentPersistentId: _zod.z.string().optional(),
612
- sortOrder: _zod.z.number()
613
- });
614
- var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
615
- var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
616
- parentPersistentId: _zod.z.string()
617
- });
618
- var DesignElementBrandedPart = _zod.z.object({
619
- brandPersistentId: _zod.z.string()
620
- });
621
- var DesignElementSlugPart = _zod.z.object({
622
- slug: _zod.z.string().optional(),
623
- userSlug: _zod.z.string().optional()
624
- });
625
- var FigmaComponentPropertyType = _zod.z.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
626
- var FigmaComponentBooleanProperty = _zod.z.object({
627
- type: _zod.z.literal(FigmaComponentPropertyType.enum.Boolean),
628
- defaultValue: _zod.z.boolean()
629
- });
630
- var FigmaComponentInstanceSwapProperty = _zod.z.object({
631
- type: _zod.z.literal(FigmaComponentPropertyType.enum.InstanceSwap),
632
- defaultValue: _zod.z.string(),
633
- preferredValues: _zod.z.object({
634
- type: _zod.z.enum(["Component", "ComponentSet"]),
635
- key: _zod.z.string()
636
- }).array()
637
- });
638
- var FigmaComponentVariantProperty = _zod.z.object({
639
- type: _zod.z.literal(FigmaComponentPropertyType.enum.Variant),
640
- defaultValue: _zod.z.string(),
641
- options: _zod.z.array(_zod.z.string())
642
- });
643
- var FigmaComponentTextProperty = _zod.z.object({
644
- type: _zod.z.literal(FigmaComponentPropertyType.enum.Text),
645
- defaultValue: _zod.z.string()
646
- });
647
- var FigmaComponentProperty = _zod.z.discriminatedUnion("type", [
648
- FigmaComponentBooleanProperty,
649
- FigmaComponentInstanceSwapProperty,
650
- FigmaComponentTextProperty
651
- ]);
652
- var FigmaComponentPropertyMap = _zod.z.record(_zod.z.string(), FigmaComponentProperty);
653
- var FigmaComponentSetProperties = _zod.z.record(
654
- _zod.z.string(),
655
- _zod.z.discriminatedUnion("type", [
656
- FigmaComponentBooleanProperty,
657
- FigmaComponentInstanceSwapProperty,
658
- FigmaComponentTextProperty,
659
- FigmaComponentVariantProperty
660
- ])
661
- );
662
- var FigmaComponentOriginPart = _zod.z.object({
663
- nodeId: _zod.z.string().optional(),
664
- width: _zod.z.number().optional(),
665
- height: _zod.z.number().optional()
666
- });
667
- var FigmaComponentAsset = _zod.z.object({
668
- assetId: _zod.z.string(),
669
- assetPath: _zod.z.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: _zod.z.boolean(),
678
- parentComponentPersistentId: nullishToOptional(_zod.z.string())
679
- });
680
594
  var TokenDataAliasSchema = _zod.z.object({
681
595
  aliasTo: _zod.z.string().optional().nullable().transform((v) => _nullishCoalesce(v, () => ( void 0)))
682
596
  });
@@ -728,6 +642,43 @@ var BorderValue = _zod.z.object({
728
642
  style: BorderStyle.optional()
729
643
  });
730
644
  var BorderTokenData = tokenAliasOrValue(BorderValue);
645
+ var FigmaComponentPropertyType = _zod.z.enum(["Boolean", "InstanceSwap", "Variant", "Text"]);
646
+ var FigmaComponentBooleanProperty = _zod.z.object({
647
+ type: _zod.z.literal(FigmaComponentPropertyType.enum.Boolean),
648
+ defaultValue: _zod.z.boolean()
649
+ });
650
+ var FigmaComponentInstanceSwapProperty = _zod.z.object({
651
+ type: _zod.z.literal(FigmaComponentPropertyType.enum.InstanceSwap),
652
+ defaultValue: _zod.z.string(),
653
+ preferredValues: _zod.z.object({
654
+ type: _zod.z.enum(["Component", "ComponentSet"]),
655
+ key: _zod.z.string()
656
+ }).array()
657
+ });
658
+ var FigmaComponentVariantProperty = _zod.z.object({
659
+ type: _zod.z.literal(FigmaComponentPropertyType.enum.Variant),
660
+ defaultValue: _zod.z.string(),
661
+ options: _zod.z.array(_zod.z.string())
662
+ });
663
+ var FigmaComponentTextProperty = _zod.z.object({
664
+ type: _zod.z.literal(FigmaComponentPropertyType.enum.Text),
665
+ defaultValue: _zod.z.string()
666
+ });
667
+ var FigmaComponentProperty = _zod.z.discriminatedUnion("type", [
668
+ FigmaComponentBooleanProperty,
669
+ FigmaComponentInstanceSwapProperty,
670
+ FigmaComponentTextProperty
671
+ ]);
672
+ var FigmaComponentPropertyMap = _zod.z.record(_zod.z.string(), FigmaComponentProperty);
673
+ var FigmaComponentSetProperties = _zod.z.record(
674
+ _zod.z.string(),
675
+ _zod.z.discriminatedUnion("type", [
676
+ FigmaComponentBooleanProperty,
677
+ FigmaComponentInstanceSwapProperty,
678
+ FigmaComponentTextProperty,
679
+ FigmaComponentVariantProperty
680
+ ])
681
+ );
731
682
  var ComponentElementData = _zod.z.object({
732
683
  value: _zod.z.object({
733
684
  thumbnailImage: _zod.z.object({
@@ -2288,6 +2239,37 @@ var defaultDocumentationItemConfigurationV2 = {
2288
2239
  var DocumentationPageDataV2 = _zod.z.object({
2289
2240
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
2290
2241
  });
2242
+ var DesignElementOrigin = _zod.z.object({
2243
+ id: _zod.z.string(),
2244
+ sourceId: _zod.z.string(),
2245
+ name: _zod.z.string()
2246
+ });
2247
+ var DesignElementBase = _zod.z.object({
2248
+ id: _zod.z.string(),
2249
+ persistentId: _zod.z.string(),
2250
+ meta: ObjectMeta,
2251
+ designSystemVersionId: _zod.z.string(),
2252
+ createdAt: _zod.z.coerce.date(),
2253
+ updatedAt: _zod.z.coerce.date()
2254
+ });
2255
+ var DesignElementImportedBase = DesignElementBase.extend({
2256
+ origin: DesignElementOrigin
2257
+ });
2258
+ var DesignElementGroupablePart = _zod.z.object({
2259
+ parentPersistentId: _zod.z.string().optional(),
2260
+ sortOrder: _zod.z.number()
2261
+ });
2262
+ var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
2263
+ var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
2264
+ parentPersistentId: _zod.z.string()
2265
+ });
2266
+ var DesignElementBrandedPart = _zod.z.object({
2267
+ brandPersistentId: _zod.z.string()
2268
+ });
2269
+ var DesignElementSlugPart = _zod.z.object({
2270
+ slug: _zod.z.string().optional(),
2271
+ userSlug: _zod.z.string().optional()
2272
+ });
2291
2273
  var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
2292
2274
  data: PageBlockDataV2
2293
2275
  });
@@ -2517,6 +2499,24 @@ var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequire
2517
2499
  oldBlocks: _zod.z.array(PageBlockV1).optional()
2518
2500
  })
2519
2501
  });
2502
+ var FigmaComponentOriginPart = _zod.z.object({
2503
+ nodeId: _zod.z.string().optional(),
2504
+ width: _zod.z.number().optional(),
2505
+ height: _zod.z.number().optional()
2506
+ });
2507
+ var FigmaComponentAsset = _zod.z.object({
2508
+ assetId: _zod.z.string(),
2509
+ assetPath: _zod.z.string()
2510
+ });
2511
+ var FigmaComponentOrigin = DesignElementOrigin.extend(FigmaComponentOriginPart.shape);
2512
+ var FigmaComponent = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
2513
+ origin: FigmaComponentOrigin.optional(),
2514
+ thumbnail: FigmaComponentAsset,
2515
+ componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
2516
+ svg: FigmaComponentAsset.optional(),
2517
+ isAsset: _zod.z.boolean(),
2518
+ parentComponentPersistentId: nullishToOptional(_zod.z.string())
2519
+ });
2520
2520
  var FigmaFileStructureOrigin = _zod.z.object({
2521
2521
  sourceId: _zod.z.string(),
2522
2522
  fileId: _zod.z.string().optional()
@@ -3219,7 +3219,15 @@ var PageBlockDefinitionRichTextPropertyStyle = _zod.z.enum([
3219
3219
  "Default"
3220
3220
  ]);
3221
3221
  var PageBlockDefinitionMultiRichTextPropertyStyle = _zod.z.enum(["OL", "UL", "Default"]);
3222
- var PageBlockDefinitionRichTextEditorPropertyStyle = _zod.z.enum(["OL", "UL", "Bold", "Italic", "Link", "Strikethrough", "InlineCode"]);
3222
+ var PageBlockDefinitionRichTextEditorPropertyStyle = _zod.z.enum([
3223
+ "OL",
3224
+ "UL",
3225
+ "Bold",
3226
+ "Italic",
3227
+ "Link",
3228
+ "Strikethrough",
3229
+ "InlineCode"
3230
+ ]);
3223
3231
  var PageBlockDefinitionTextPropertyStyle = _zod.z.enum([
3224
3232
  "Title1",
3225
3233
  "Title2",
@@ -3257,11 +3265,7 @@ var PageBlockDefinitionSingleSelectPropertyColor = _zod.z.enum([
3257
3265
  "Cyan",
3258
3266
  "Fuchsia"
3259
3267
  ]);
3260
- var IconSet = _zod.z.enum([
3261
- "CheckCircle",
3262
- "CrossCircle",
3263
- "Alert"
3264
- ]);
3268
+ var IconSet = _zod.z.enum(["CheckCircle", "CrossCircle", "Alert"]);
3265
3269
  var PageBlockDefinitionMultiSelectPropertyStyle = _zod.z.enum(["SegmentedControl", "Select", "Checkbox"]);
3266
3270
  var PageBlockDefinitionImageAspectRatio = _zod.z.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
3267
3271
  var PageBlockDefinitionImageWidth = _zod.z.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
@@ -3753,7 +3757,7 @@ var PublishedDoc = _zod.z.object({
3753
3757
  var DesignSystemVersion = _zod.z.object({
3754
3758
  id: _zod.z.string(),
3755
3759
  version: _zod.z.string(),
3756
- createdAt: _zod.z.date(),
3760
+ createdAt: _zod.z.coerce.date(),
3757
3761
  designSystemId: _zod.z.string(),
3758
3762
  name: _zod.z.string(),
3759
3763
  comment: _zod.z.string(),
@@ -5628,7 +5632,6 @@ var DTOFigmaComponent = _zod.z.object({
5628
5632
  persistentId: _zod.z.string(),
5629
5633
  designSystemVersionId: _zod.z.string(),
5630
5634
  brandId: _zod.z.string(),
5631
- parentComponentId: _zod.z.string().optional(),
5632
5635
  thumbnailUrl: _zod.z.string().optional(),
5633
5636
  svgUrl: _zod.z.string().optional(),
5634
5637
  exportProperties: _zod.z.object({
@@ -5638,6 +5641,7 @@ var DTOFigmaComponent = _zod.z.object({
5638
5641
  updatedAt: _zod.z.coerce.date(),
5639
5642
  meta: ObjectMeta,
5640
5643
  originComponent: FigmaComponentOrigin.optional(),
5644
+ parentComponentPersistentId: _zod.z.string().optional(),
5641
5645
  componentPropertyDefinitions: FigmaComponentPropertyMap.optional()
5642
5646
  });
5643
5647