@supernova-studio/client 1.42.7 → 1.42.9

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
@@ -5785,8 +5785,9 @@ var PageScreenshotInput = z212.object({
5785
5785
  width: z212.number().positive(),
5786
5786
  height: z212.number().positive()
5787
5787
  }).optional(),
5788
- authorization: z212.object({
5789
- supernovaToken: z212.string().optional()
5788
+ supernovaAuth: z212.object({
5789
+ accessToken: z212.string(),
5790
+ authPageUrl: z212.string()
5790
5791
  }).optional()
5791
5792
  });
5792
5793
  var PageScreenshotOutput = z212.discriminatedUnion("success", [
@@ -9099,30 +9100,28 @@ var DTODownloadAssetsResponse = z306.object({
9099
9100
  });
9100
9101
 
9101
9102
  // src/api/dto/figma-exporter/figma-node.ts
9102
- import { z as z307 } from "zod";
9103
- var DTOFigmaNodeResponse = z307.object({
9104
- nodes: FigmaExporterAnyDesignNodeSchema
9105
- });
9103
+ import { z as z308 } from "zod";
9106
9104
 
9107
9105
  // src/api/dto/files/files.ts
9108
- import z308 from "zod";
9109
- var DTOFileSourceUpload = z308.object({
9110
- type: z308.literal("UserUpload"),
9111
- userId: z308.string()
9112
- });
9113
- var DTOFileSourceFigma = z308.object({
9114
- type: z308.literal("Figma"),
9115
- renderMode: z308.enum(["Image", "HTML"])
9116
- });
9117
- var DTOFileSource = z308.discriminatedUnion("type", [DTOFileSourceUpload, DTOFileSourceFigma]);
9118
- var DTOFile = z308.object({
9119
- id: z308.string(),
9120
- name: z308.string(),
9121
- deduplicationKey: z308.string(),
9122
- pendingUpload: z308.boolean().optional(),
9123
- storagePath: z308.string(),
9124
- url: z308.string(),
9125
- size: z308.number(),
9106
+ import z307 from "zod";
9107
+ var DTOFileFigmaRenderMode = z307.enum(["Image", "HTML", "JSON"]);
9108
+ var DTOFileSourceUpload = z307.object({
9109
+ type: z307.literal("UserUpload"),
9110
+ userId: z307.string()
9111
+ });
9112
+ var DTOFileSourceFigma = z307.object({
9113
+ type: z307.literal("Figma"),
9114
+ renderMode: DTOFileFigmaRenderMode
9115
+ });
9116
+ var DTOFileSource = z307.discriminatedUnion("type", [DTOFileSourceUpload, DTOFileSourceFigma]);
9117
+ var DTOFile = z307.object({
9118
+ id: z307.string(),
9119
+ name: z307.string(),
9120
+ deduplicationKey: z307.string(),
9121
+ pendingUpload: z307.boolean().optional(),
9122
+ storagePath: z307.string(),
9123
+ url: z307.string(),
9124
+ size: z307.number(),
9126
9125
  /**
9127
9126
  * Object describing where did the file come from. Undefined source indicates a file produced by the
9128
9127
  * system (e.g. thumbnails, etc)
@@ -9134,39 +9133,56 @@ var DTOFileReference = DTOFile.pick({
9134
9133
  url: true,
9135
9134
  source: true
9136
9135
  });
9137
- var DTOFileUploadOwnerUser = z308.object({
9138
- ownerType: z308.literal("User")
9136
+ var DTOFileUploadOwnerUser = z307.object({
9137
+ ownerType: z307.literal("User")
9139
9138
  });
9140
- var DTOFileUploadOwnerWorkspace = z308.object({
9141
- ownerType: z308.literal("Workspace"),
9142
- workspaceId: z308.string()
9139
+ var DTOFileUploadOwnerWorkspace = z307.object({
9140
+ ownerType: z307.literal("Workspace"),
9141
+ workspaceId: z307.string()
9143
9142
  });
9144
- var DTOFileUploadOwner = z308.discriminatedUnion("ownerType", [DTOFileUploadOwnerUser, DTOFileUploadOwnerWorkspace]);
9145
- var DTOFileUploadInput = z308.object({
9146
- size: z308.number(),
9147
- name: z308.string(),
9148
- checksum: z308.string()
9143
+ var DTOFileUploadOwner = z307.discriminatedUnion("ownerType", [DTOFileUploadOwnerUser, DTOFileUploadOwnerWorkspace]);
9144
+ var DTOFileUploadInput = z307.object({
9145
+ size: z307.number(),
9146
+ name: z307.string(),
9147
+ checksum: z307.string()
9149
9148
  });
9150
- var DTOFileUploadBulkPayload = z308.object({
9149
+ var DTOFileUploadBulkPayload = z307.object({
9151
9150
  files: DTOFileUploadInput.array()
9152
9151
  }).and(DTOFileUploadOwner);
9153
- var DTOFileFinalizeBulkPayload = z308.object({
9154
- fileIds: z308.string().array()
9152
+ var DTOFileFinalizeBulkPayload = z307.object({
9153
+ fileIds: z307.string().array()
9155
9154
  }).and(DTOFileUploadOwner);
9156
- var DTOFileListResponse = z308.object({
9155
+ var DTOFileListResponse = z307.object({
9157
9156
  files: DTOFile.array()
9158
9157
  });
9159
- var DTOFileUploadBulkResponse = z308.object({
9160
- files: z308.array(DTOFile),
9161
- uploadUrls: z308.array(
9162
- z308.object({
9163
- fileId: z308.string(),
9164
- uploadUrl: z308.string()
9158
+ var DTOFileUploadBulkResponse = z307.object({
9159
+ files: z307.array(DTOFile),
9160
+ uploadUrls: z307.array(
9161
+ z307.object({
9162
+ fileId: z307.string(),
9163
+ uploadUrl: z307.string()
9165
9164
  })
9166
9165
  )
9167
9166
  });
9168
- var DTOFileFinalizeBulkResponse = z308.object({
9169
- files: z308.array(DTOFile)
9167
+ var DTOFileFinalizeBulkResponse = z307.object({
9168
+ files: z307.array(DTOFile)
9169
+ });
9170
+
9171
+ // src/api/dto/figma-exporter/figma-node.ts
9172
+ var DTOFigmaExportNodeFormat = z308.enum(["HTML", "JSON"]);
9173
+ var DTOFigmaExportNodeConfiguration = z308.object({
9174
+ format: DTOFigmaExportNodeFormat,
9175
+ minifyOutput: z308.boolean().optional(),
9176
+ customFontUrls: z308.string().array().optional()
9177
+ });
9178
+ var DTOFigmaExportNodePayload = z308.object({
9179
+ designSystemId: z308.string(),
9180
+ versionId: z308.string().optional(),
9181
+ figmaUrl: z308.string(),
9182
+ configuration: DTOFigmaExportNodeConfiguration
9183
+ });
9184
+ var DTOFigmaExportNodeResponse = z308.object({
9185
+ file: DTOFile
9170
9186
  });
9171
9187
 
9172
9188
  // src/api/dto/forge/agent.ts
@@ -10285,7 +10301,8 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
10285
10301
  initialArtifact: DTOForgeProjectArtifactCreateInput.optional()
10286
10302
  });
10287
10303
  var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
10288
- id: z328.string()
10304
+ id: z328.string(),
10305
+ isArchived: z328.boolean().optional()
10289
10306
  });
10290
10307
  var DTOForgeProjectListResponse = z328.object({
10291
10308
  projects: z328.array(
@@ -19296,6 +19313,10 @@ export {
19296
19313
  DTOFigmaComponentGroup,
19297
19314
  DTOFigmaComponentGroupListResponse,
19298
19315
  DTOFigmaComponentListResponse,
19316
+ DTOFigmaExportNodeConfiguration,
19317
+ DTOFigmaExportNodeFormat,
19318
+ DTOFigmaExportNodePayload,
19319
+ DTOFigmaExportNodeResponse,
19299
19320
  DTOFigmaNode,
19300
19321
  DTOFigmaNodeData,
19301
19322
  DTOFigmaNodeDataV2,
@@ -19309,7 +19330,6 @@ export {
19309
19330
  DTOFigmaNodeRenderInput,
19310
19331
  DTOFigmaNodeRenderUrlInput,
19311
19332
  DTOFigmaNodeRerenderInput,
19312
- DTOFigmaNodeResponse,
19313
19333
  DTOFigmaNodeStructure,
19314
19334
  DTOFigmaNodeStructureDetail,
19315
19335
  DTOFigmaNodeStructureDetailResponse,
@@ -19317,6 +19337,7 @@ export {
19317
19337
  DTOFigmaNodeV2,
19318
19338
  DTOFigmaSourceUpdatePayload,
19319
19339
  DTOFile,
19340
+ DTOFileFigmaRenderMode,
19320
19341
  DTOFileFinalizeBulkPayload,
19321
19342
  DTOFileFinalizeBulkResponse,
19322
19343
  DTOFileListResponse,