@supernova-studio/client 1.42.6 → 1.42.8

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
@@ -180,9 +180,9 @@ import { z as z169 } from "zod";
180
180
  import { z as z170 } from "zod";
181
181
  import { z as z172 } from "zod";
182
182
  import { z as z171 } from "zod";
183
- import { z as z174 } from "zod";
184
183
  import { z as z173 } from "zod";
185
184
  import { z as z175 } from "zod";
185
+ import { z as z174 } from "zod";
186
186
  import { z as z176 } from "zod";
187
187
  import { z as z177 } from "zod";
188
188
  import { z as z178 } from "zod";
@@ -5161,38 +5161,38 @@ var ForgeIterationMessage = z172.object({
5161
5161
  type: z172.enum(["Note", "Action", "Steps"]),
5162
5162
  text: z172.string()
5163
5163
  });
5164
- var ForgeProjectSectionChildType = z173.enum(["Artifact", "Feature"]);
5165
- var SortOrder = z173.number().int();
5166
- var ForgeSection = z173.object({
5167
- id: Id,
5164
+ var ForgeProjectArtifactContentData = DocumentationPageContentData;
5165
+ var ForgeProjectArtifactContent = z173.object({
5166
+ id: z173.string(),
5167
+ artifactId: z173.string(),
5168
5168
  projectId: z173.string(),
5169
- name: z173.string(),
5170
- sortOrder: SortOrder.default(0),
5171
5169
  createdAt: z173.coerce.date(),
5172
5170
  updatedAt: z173.coerce.date(),
5173
- childType: ForgeProjectSectionChildType
5171
+ data: ForgeProjectArtifactContentData
5174
5172
  });
5175
- var ForgeProjectArtifact = z174.object({
5173
+ var ForgeProjectSectionChildType = z174.enum(["Artifact", "Feature"]);
5174
+ var SortOrder = z174.number().int();
5175
+ var ForgeSection = z174.object({
5176
5176
  id: Id,
5177
5177
  projectId: z174.string(),
5178
- iterationId: z174.string().nullish(),
5179
- title: z174.string(),
5180
- previewUrl: z174.string().nullish(),
5178
+ name: z174.string(),
5181
5179
  sortOrder: SortOrder.default(0),
5182
5180
  createdAt: z174.coerce.date(),
5183
5181
  updatedAt: z174.coerce.date(),
5184
- createdByUserId: z174.string(),
5185
- sectionId: Id.optional(),
5186
- threadId: z174.string().optional()
5182
+ childType: ForgeProjectSectionChildType
5187
5183
  });
5188
- var ForgeProjectArtifactContentData = DocumentationPageContentData;
5189
- var ForgeProjectArtifactContent = z175.object({
5190
- id: z175.string(),
5191
- artifactId: z175.string(),
5184
+ var ForgeProjectArtifact = z175.object({
5185
+ id: Id,
5192
5186
  projectId: z175.string(),
5187
+ iterationId: z175.string().nullish(),
5188
+ title: z175.string(),
5189
+ previewUrl: z175.string().nullish(),
5190
+ sortOrder: SortOrder.default(0),
5193
5191
  createdAt: z175.coerce.date(),
5194
5192
  updatedAt: z175.coerce.date(),
5195
- data: ForgeProjectArtifactContentData
5193
+ createdByUserId: z175.string(),
5194
+ sectionId: Id.optional(),
5195
+ threadId: z175.string().optional()
5196
5196
  });
5197
5197
  var ProjectFeatureStatus = z176.enum(["Draft", "ReadyForDevelopment"]);
5198
5198
  var ProjectFeature = z176.object({
@@ -9099,30 +9099,28 @@ var DTODownloadAssetsResponse = z306.object({
9099
9099
  });
9100
9100
 
9101
9101
  // src/api/dto/figma-exporter/figma-node.ts
9102
- import { z as z307 } from "zod";
9103
- var DTOFigmaNodeResponse = z307.object({
9104
- nodes: FigmaExporterAnyDesignNodeSchema
9105
- });
9102
+ import { z as z308 } from "zod";
9106
9103
 
9107
9104
  // 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(),
9105
+ import z307 from "zod";
9106
+ var DTOFileFigmaRenderMode = z307.enum(["Image", "HTML", "JSON"]);
9107
+ var DTOFileSourceUpload = z307.object({
9108
+ type: z307.literal("UserUpload"),
9109
+ userId: z307.string()
9110
+ });
9111
+ var DTOFileSourceFigma = z307.object({
9112
+ type: z307.literal("Figma"),
9113
+ renderMode: DTOFileFigmaRenderMode
9114
+ });
9115
+ var DTOFileSource = z307.discriminatedUnion("type", [DTOFileSourceUpload, DTOFileSourceFigma]);
9116
+ var DTOFile = z307.object({
9117
+ id: z307.string(),
9118
+ name: z307.string(),
9119
+ deduplicationKey: z307.string(),
9120
+ pendingUpload: z307.boolean().optional(),
9121
+ storagePath: z307.string(),
9122
+ url: z307.string(),
9123
+ size: z307.number(),
9126
9124
  /**
9127
9125
  * Object describing where did the file come from. Undefined source indicates a file produced by the
9128
9126
  * system (e.g. thumbnails, etc)
@@ -9134,39 +9132,56 @@ var DTOFileReference = DTOFile.pick({
9134
9132
  url: true,
9135
9133
  source: true
9136
9134
  });
9137
- var DTOFileUploadOwnerUser = z308.object({
9138
- ownerType: z308.literal("User")
9135
+ var DTOFileUploadOwnerUser = z307.object({
9136
+ ownerType: z307.literal("User")
9139
9137
  });
9140
- var DTOFileUploadOwnerWorkspace = z308.object({
9141
- ownerType: z308.literal("Workspace"),
9142
- workspaceId: z308.string()
9138
+ var DTOFileUploadOwnerWorkspace = z307.object({
9139
+ ownerType: z307.literal("Workspace"),
9140
+ workspaceId: z307.string()
9143
9141
  });
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()
9142
+ var DTOFileUploadOwner = z307.discriminatedUnion("ownerType", [DTOFileUploadOwnerUser, DTOFileUploadOwnerWorkspace]);
9143
+ var DTOFileUploadInput = z307.object({
9144
+ size: z307.number(),
9145
+ name: z307.string(),
9146
+ checksum: z307.string()
9149
9147
  });
9150
- var DTOFileUploadBulkPayload = z308.object({
9148
+ var DTOFileUploadBulkPayload = z307.object({
9151
9149
  files: DTOFileUploadInput.array()
9152
9150
  }).and(DTOFileUploadOwner);
9153
- var DTOFileFinalizeBulkPayload = z308.object({
9154
- fileIds: z308.string().array()
9151
+ var DTOFileFinalizeBulkPayload = z307.object({
9152
+ fileIds: z307.string().array()
9155
9153
  }).and(DTOFileUploadOwner);
9156
- var DTOFileListResponse = z308.object({
9154
+ var DTOFileListResponse = z307.object({
9157
9155
  files: DTOFile.array()
9158
9156
  });
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()
9157
+ var DTOFileUploadBulkResponse = z307.object({
9158
+ files: z307.array(DTOFile),
9159
+ uploadUrls: z307.array(
9160
+ z307.object({
9161
+ fileId: z307.string(),
9162
+ uploadUrl: z307.string()
9165
9163
  })
9166
9164
  )
9167
9165
  });
9168
- var DTOFileFinalizeBulkResponse = z308.object({
9169
- files: z308.array(DTOFile)
9166
+ var DTOFileFinalizeBulkResponse = z307.object({
9167
+ files: z307.array(DTOFile)
9168
+ });
9169
+
9170
+ // src/api/dto/figma-exporter/figma-node.ts
9171
+ var DTOFigmaExportNodeFormat = z308.enum(["HTML", "JSON"]);
9172
+ var DTOFigmaExportNodeConfiguration = z308.object({
9173
+ format: DTOFigmaExportNodeFormat,
9174
+ minifyOutput: z308.boolean().optional(),
9175
+ customFontUrls: z308.string().array().optional()
9176
+ });
9177
+ var DTOFigmaExportNodePayload = z308.object({
9178
+ designSystemId: z308.string(),
9179
+ versionId: z308.string().optional(),
9180
+ figmaUrl: z308.string(),
9181
+ configuration: DTOFigmaExportNodeConfiguration
9182
+ });
9183
+ var DTOFigmaExportNodeResponse = z308.object({
9184
+ file: DTOFile
9170
9185
  });
9171
9186
 
9172
9187
  // src/api/dto/forge/agent.ts
@@ -10285,7 +10300,8 @@ var DTOForgeProjectCreate = DTOForgeProject.pick({
10285
10300
  initialArtifact: DTOForgeProjectArtifactCreateInput.optional()
10286
10301
  });
10287
10302
  var DTOForgeProjectUpdate = DTOForgeProjectCreate.omit({ membersToInvite: true }).partial().extend({
10288
- id: z328.string()
10303
+ id: z328.string(),
10304
+ isArchived: z328.boolean().optional()
10289
10305
  });
10290
10306
  var DTOForgeProjectListResponse = z328.object({
10291
10307
  projects: z328.array(
@@ -10295,7 +10311,9 @@ var DTOForgeProjectListResponse = z328.object({
10295
10311
  )
10296
10312
  });
10297
10313
  var DTOForgeProjectResponse = z328.object({
10298
- project: DTOForgeProject
10314
+ project: DTOForgeProject.extend({
10315
+ effectiveRole: DTOForgeProjectRole
10316
+ })
10299
10317
  });
10300
10318
 
10301
10319
  // src/api/dto/forge/threads.ts
@@ -19294,6 +19312,10 @@ export {
19294
19312
  DTOFigmaComponentGroup,
19295
19313
  DTOFigmaComponentGroupListResponse,
19296
19314
  DTOFigmaComponentListResponse,
19315
+ DTOFigmaExportNodeConfiguration,
19316
+ DTOFigmaExportNodeFormat,
19317
+ DTOFigmaExportNodePayload,
19318
+ DTOFigmaExportNodeResponse,
19297
19319
  DTOFigmaNode,
19298
19320
  DTOFigmaNodeData,
19299
19321
  DTOFigmaNodeDataV2,
@@ -19307,7 +19329,6 @@ export {
19307
19329
  DTOFigmaNodeRenderInput,
19308
19330
  DTOFigmaNodeRenderUrlInput,
19309
19331
  DTOFigmaNodeRerenderInput,
19310
- DTOFigmaNodeResponse,
19311
19332
  DTOFigmaNodeStructure,
19312
19333
  DTOFigmaNodeStructureDetail,
19313
19334
  DTOFigmaNodeStructureDetailResponse,
@@ -19315,6 +19336,7 @@ export {
19315
19336
  DTOFigmaNodeV2,
19316
19337
  DTOFigmaSourceUpdatePayload,
19317
19338
  DTOFile,
19339
+ DTOFileFigmaRenderMode,
19318
19340
  DTOFileFinalizeBulkPayload,
19319
19341
  DTOFileFinalizeBulkResponse,
19320
19342
  DTOFileListResponse,