@supernova-studio/client 0.52.5 → 0.52.7

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