@supernova-studio/client 0.52.5 → 0.52.6

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
@@ -2292,11 +2292,13 @@ var FigmaFileStructureElementData = z52.object({
2292
2292
  assetsInFile: FigmaFileStructureStatistics
2293
2293
  })
2294
2294
  });
2295
+ var FigmaNodeRenderFormat = z53.enum(["Png", "Svg"]);
2295
2296
  var FigmaNodeReferenceData = z53.object({
2296
2297
  structureElementId: z53.string(),
2297
2298
  nodeId: z53.string(),
2298
2299
  fileId: z53.string().optional(),
2299
2300
  valid: z53.boolean(),
2301
+ format: FigmaNodeRenderFormat.default("Png"),
2300
2302
  // Asset data
2301
2303
  assetId: z53.string().optional(),
2302
2304
  assetScale: z53.number().optional(),
@@ -3075,7 +3077,8 @@ var DesignTokenImportModelInputBase = ImportModelInputBase.extend(DesignTokenImp
3075
3077
  var DesignTokenImportModel = DesignTokenTypedData.and(DesignTokenImportModelBase);
3076
3078
  var DesignTokenImportModelInput = DesignTokenTypedData.and(DesignTokenImportModelInputBase);
3077
3079
  var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
3078
- image: FigmaPngRenderImportModel
3080
+ png: FigmaPngRenderImportModel,
3081
+ svg: FigmaSvgRenderImportModel
3079
3082
  });
3080
3083
  var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
3081
3084
  children: z92.lazy(() => FigmaFileStructureNodeImportModel.array())
@@ -5902,6 +5905,7 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
5902
5905
 
5903
5906
  // src/api/dto/elements/figma-nodes/figma-node.ts
5904
5907
  import { z as z209 } from "zod";
5908
+ var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
5905
5909
  var DTOFigmaNodeOrigin = z209.object({
5906
5910
  sourceId: z209.string(),
5907
5911
  fileId: z209.string().optional(),
@@ -5915,12 +5919,13 @@ var DTOFigmaNodeData = z209.object({
5915
5919
  // Asset data
5916
5920
  assetId: z209.string(),
5917
5921
  assetUrl: z209.string(),
5922
+ assetFormat: DTOFigmaNodeRenderFormat,
5918
5923
  // Asset metadata
5919
5924
  assetScale: z209.number(),
5920
5925
  assetWidth: z209.number().optional(),
5921
5926
  assetHeight: z209.number().optional()
5922
5927
  });
5923
- var DTOFigmaNode = FigmaFileStructure.omit({
5928
+ var DTOFigmaNode = FigmaNodeReference.omit({
5924
5929
  data: true,
5925
5930
  origin: true
5926
5931
  }).extend({
@@ -5928,10 +5933,18 @@ var DTOFigmaNode = FigmaFileStructure.omit({
5928
5933
  origin: DTOFigmaNodeOrigin
5929
5934
  });
5930
5935
  var DTOFigmaNodeRenderInput = z209.object({
5931
- // Id of a design system's data source representing a linked Figma file
5936
+ /**
5937
+ * Id of a design system's data source representing a linked Figma file
5938
+ */
5932
5939
  sourceId: z209.string(),
5933
- // Id of a node within the Figma file
5934
- figmaFileNodeId: z209.string()
5940
+ /**
5941
+ * Id of a node within the Figma file
5942
+ */
5943
+ figmaFileNodeId: z209.string(),
5944
+ /**
5945
+ * Format in which the node must be rendered, png by default.
5946
+ */
5947
+ format: FigmaNodeRenderFormat.default("Png")
5935
5948
  });
5936
5949
 
5937
5950
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
@@ -11372,6 +11385,7 @@ export {
11372
11385
  DTOFigmaNodeOrigin,
11373
11386
  DTOFigmaNodeRenderActionInput,
11374
11387
  DTOFigmaNodeRenderActionOutput,
11388
+ DTOFigmaNodeRenderFormat,
11375
11389
  DTOFigmaNodeRenderInput,
11376
11390
  DTOGetBlockDefinitionsOutput,
11377
11391
  DTOGetDocumentationPageAnchorsResponse,