@supernova-studio/client 0.47.49 → 0.47.50

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/client",
3
- "version": "0.47.49",
3
+ "version": "0.47.50",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+
3
+ export const DTOAssetRenderConfiguration = z.object({
4
+ prefix: z.string().optional(),
5
+ suffix: z.string().optional(),
6
+ scale: z.enum(["x1", "x2", "x3", "x4"]),
7
+ format: z.enum(["png", "pdf", "svg"]),
8
+ });
9
+
10
+ export const DTORenderedAssetFile = z.object({
11
+ assetId: z.string(),
12
+ fileName: z.string(),
13
+ sourceUrl: z.string(),
14
+ settings: DTOAssetRenderConfiguration,
15
+ originalName: z.string(),
16
+ });
17
+
18
+ export const DTODownloadAssetsRequest = z.object({
19
+ persistentIds: z.array(z.string().uuid()).optional(),
20
+ settings: DTOAssetRenderConfiguration.array(),
21
+ });
22
+
23
+ export const DTODownloadAssetsResponse = z.object({
24
+ items: DTORenderedAssetFile.array(),
25
+ });
26
+
27
+ export type DTOAssetRenderConfiguration = z.infer<typeof DTOAssetRenderConfiguration>;
28
+ export type DTORenderedAssetFile = z.infer<typeof DTORenderedAssetFile>;
29
+ export type DTODownloadAssetsRequest = z.infer<typeof DTODownloadAssetsRequest>;
30
+ export type DTODownloadAssetsResponse = z.infer<typeof DTODownloadAssetsResponse>;
@@ -0,0 +1 @@
1
+ export * from "./download";
@@ -0,0 +1 @@
1
+ export * from "./assets";
@@ -2,6 +2,7 @@ export * from "./design-systems";
2
2
  export * from "./documentation";
3
3
  export * from "./elements";
4
4
  export * from "./export";
5
+ export * from "./figma-components";
5
6
  export * from "./liveblocks";
6
7
  export * from "./users";
7
8
  export * from "./workspaces";