@supernova-studio/client 1.42.7 → 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.d.mts +461 -314
- package/dist/index.d.ts +461 -314
- package/dist/index.js +26 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -46
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -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
|
|
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
|
|
9109
|
-
var
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
var
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
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 =
|
|
9138
|
-
ownerType:
|
|
9135
|
+
var DTOFileUploadOwnerUser = z307.object({
|
|
9136
|
+
ownerType: z307.literal("User")
|
|
9139
9137
|
});
|
|
9140
|
-
var DTOFileUploadOwnerWorkspace =
|
|
9141
|
-
ownerType:
|
|
9142
|
-
workspaceId:
|
|
9138
|
+
var DTOFileUploadOwnerWorkspace = z307.object({
|
|
9139
|
+
ownerType: z307.literal("Workspace"),
|
|
9140
|
+
workspaceId: z307.string()
|
|
9143
9141
|
});
|
|
9144
|
-
var DTOFileUploadOwner =
|
|
9145
|
-
var DTOFileUploadInput =
|
|
9146
|
-
size:
|
|
9147
|
-
name:
|
|
9148
|
-
checksum:
|
|
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 =
|
|
9148
|
+
var DTOFileUploadBulkPayload = z307.object({
|
|
9151
9149
|
files: DTOFileUploadInput.array()
|
|
9152
9150
|
}).and(DTOFileUploadOwner);
|
|
9153
|
-
var DTOFileFinalizeBulkPayload =
|
|
9154
|
-
fileIds:
|
|
9151
|
+
var DTOFileFinalizeBulkPayload = z307.object({
|
|
9152
|
+
fileIds: z307.string().array()
|
|
9155
9153
|
}).and(DTOFileUploadOwner);
|
|
9156
|
-
var DTOFileListResponse =
|
|
9154
|
+
var DTOFileListResponse = z307.object({
|
|
9157
9155
|
files: DTOFile.array()
|
|
9158
9156
|
});
|
|
9159
|
-
var DTOFileUploadBulkResponse =
|
|
9160
|
-
files:
|
|
9161
|
-
uploadUrls:
|
|
9162
|
-
|
|
9163
|
-
fileId:
|
|
9164
|
-
uploadUrl:
|
|
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 =
|
|
9169
|
-
files:
|
|
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(
|
|
@@ -19296,6 +19312,10 @@ export {
|
|
|
19296
19312
|
DTOFigmaComponentGroup,
|
|
19297
19313
|
DTOFigmaComponentGroupListResponse,
|
|
19298
19314
|
DTOFigmaComponentListResponse,
|
|
19315
|
+
DTOFigmaExportNodeConfiguration,
|
|
19316
|
+
DTOFigmaExportNodeFormat,
|
|
19317
|
+
DTOFigmaExportNodePayload,
|
|
19318
|
+
DTOFigmaExportNodeResponse,
|
|
19299
19319
|
DTOFigmaNode,
|
|
19300
19320
|
DTOFigmaNodeData,
|
|
19301
19321
|
DTOFigmaNodeDataV2,
|
|
@@ -19309,7 +19329,6 @@ export {
|
|
|
19309
19329
|
DTOFigmaNodeRenderInput,
|
|
19310
19330
|
DTOFigmaNodeRenderUrlInput,
|
|
19311
19331
|
DTOFigmaNodeRerenderInput,
|
|
19312
|
-
DTOFigmaNodeResponse,
|
|
19313
19332
|
DTOFigmaNodeStructure,
|
|
19314
19333
|
DTOFigmaNodeStructureDetail,
|
|
19315
19334
|
DTOFigmaNodeStructureDetailResponse,
|
|
@@ -19317,6 +19336,7 @@ export {
|
|
|
19317
19336
|
DTOFigmaNodeV2,
|
|
19318
19337
|
DTOFigmaSourceUpdatePayload,
|
|
19319
19338
|
DTOFile,
|
|
19339
|
+
DTOFileFigmaRenderMode,
|
|
19320
19340
|
DTOFileFinalizeBulkPayload,
|
|
19321
19341
|
DTOFileFinalizeBulkResponse,
|
|
19322
19342
|
DTOFileListResponse,
|