@supernova-studio/client 1.9.9 → 1.9.10

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
@@ -623,8 +623,14 @@ var AssetReference = z22.object({
623
623
  persistentId: z22.string()
624
624
  });
625
625
  var AssetValue = z23.object({});
626
- var AssetType = z24.enum(["Image", "Font"]);
627
- var AssetScope = z24.enum(["DocumentationFrame", "ComponentThumbnail", "DesignSystem", "Documentation"]);
626
+ var AssetType = z24.enum(["Image", "Font", "Generic"]);
627
+ var AssetScope = z24.enum([
628
+ "DocumentationFrame",
629
+ "ComponentThumbnail",
630
+ "DesignSystem",
631
+ "Documentation",
632
+ "DocumentationEmbed"
633
+ ]);
628
634
  var AssetFontProperties = z24.object({
629
635
  family: z24.string(),
630
636
  subfamily: z24.string()
@@ -6510,7 +6516,8 @@ import { z as z212 } from "zod";
6510
6516
  var DTOFileUploadItem = z212.object({
6511
6517
  size: z212.number(),
6512
6518
  name: z212.string(),
6513
- checksum: z212.string()
6519
+ checksum: z212.string(),
6520
+ scope: AssetScope.exclude(["ComponentThumbnail", "DocumentationFrame"]).optional()
6514
6521
  });
6515
6522
  var DTOFileUploadPayload = z212.object({
6516
6523
  files: z212.array(DTOFileUploadItem)
@@ -6536,6 +6543,9 @@ var DTOFileUploadResponse = z212.object({
6536
6543
  var DTOFilesGetPayload = z212.object({
6537
6544
  persistentIds: z212.string().array().optional()
6538
6545
  });
6546
+ var DTOFilesGetQuery = z212.object({
6547
+ includeScope: AssetScope.optional()
6548
+ });
6539
6549
  var DTOFilesResponse = z212.object({
6540
6550
  files: z212.array(DTOFileResponseItem)
6541
6551
  });
@@ -9123,14 +9133,11 @@ var FilesEndpoint = class {
9123
9133
  }
9124
9134
  );
9125
9135
  }
9126
- get(designSystemId, versionId, body) {
9136
+ get(designSystemId, versionId, query) {
9127
9137
  return this.requestExecutor.json(
9128
9138
  `/design-systems/${designSystemId}/versions/${versionId}/files`,
9129
9139
  DTOFilesResponse,
9130
- {
9131
- method: "POST",
9132
- body
9133
- }
9140
+ { query: query ? new URLSearchParams(query) : void 0 }
9134
9141
  );
9135
9142
  }
9136
9143
  };
@@ -15720,6 +15727,7 @@ export {
15720
15727
  DTOFileUploadResponse,
15721
15728
  DTOFileUploadResponseItem,
15722
15729
  DTOFilesGetPayload,
15730
+ DTOFilesGetQuery,
15723
15731
  DTOFilesResponse,
15724
15732
  DTOFrameNodeStructure,
15725
15733
  DTOFrameNodeStructureListResponse,