@supernova-studio/client 1.48.14 → 1.48.16
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 +21797 -763
- package/dist/index.d.ts +21797 -763
- package/dist/index.js +53 -50
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +92 -89
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1012,6 +1012,9 @@ var SupernovaException = class _SupernovaException extends Error {
|
|
|
1012
1012
|
static thirdPartyError(message) {
|
|
1013
1013
|
return new _SupernovaException("ThirdPartyError", message);
|
|
1014
1014
|
}
|
|
1015
|
+
static userDeactivated(message) {
|
|
1016
|
+
return new _SupernovaException("UserDeactivated", message);
|
|
1017
|
+
}
|
|
1015
1018
|
//
|
|
1016
1019
|
// To refactor
|
|
1017
1020
|
//
|
|
@@ -3436,7 +3439,6 @@ var FileStructureStats = z93.object({
|
|
|
3436
3439
|
componentSets: zeroNumberByDefault()
|
|
3437
3440
|
});
|
|
3438
3441
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
3439
|
-
// Backward compatibility
|
|
3440
3442
|
z93.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
3441
3443
|
);
|
|
3442
3444
|
var SourceImportSummaryByTokenType = z93.record(SourceImportSummaryByTokenTypeKey, z93.number());
|
|
@@ -10236,74 +10238,26 @@ var DTOForgeProjectArtifactRoomResponse = z325.object({
|
|
|
10236
10238
|
});
|
|
10237
10239
|
|
|
10238
10240
|
// src/api/dto/forge/project-context-override.ts
|
|
10239
|
-
import
|
|
10240
|
-
|
|
10241
|
-
// src/api/dto/forge/project-context.ts
|
|
10242
|
-
import { z as z326 } from "zod";
|
|
10243
|
-
var DTOForgeProjectContext = z326.object({
|
|
10244
|
-
definition: z326.string(),
|
|
10245
|
-
dependencies: z326.array(
|
|
10246
|
-
z326.object({
|
|
10247
|
-
packageName: z326.string(),
|
|
10248
|
-
type: z326.literal("npm"),
|
|
10249
|
-
version: z326.string().default("latest")
|
|
10250
|
-
})
|
|
10251
|
-
),
|
|
10252
|
-
designSystemId: z326.string(),
|
|
10253
|
-
id: z326.string(),
|
|
10254
|
-
meta: z326.object({
|
|
10255
|
-
name: z326.string(),
|
|
10256
|
-
description: z326.string().optional()
|
|
10257
|
-
}),
|
|
10258
|
-
name: z326.string(),
|
|
10259
|
-
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10260
|
-
platform: z326.enum(["React", "Vue", "Angular"]),
|
|
10261
|
-
styling: z326.enum(["CSS", "Tailwind"]),
|
|
10262
|
-
tailwindConfig: z326.object({
|
|
10263
|
-
content: z326.string(),
|
|
10264
|
-
version: z326.string()
|
|
10265
|
-
}).optional(),
|
|
10266
|
-
createdAt: z326.coerce.date(),
|
|
10267
|
-
updatedAt: z326.coerce.date(),
|
|
10268
|
-
workspaceId: z326.string()
|
|
10269
|
-
});
|
|
10270
|
-
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
10271
|
-
definition: true,
|
|
10272
|
-
name: true,
|
|
10273
|
-
meta: true,
|
|
10274
|
-
designSystemId: true,
|
|
10275
|
-
platform: true,
|
|
10276
|
-
dependencies: true,
|
|
10277
|
-
tailwindConfig: true,
|
|
10278
|
-
styling: true
|
|
10279
|
-
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
10280
|
-
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z326.string() });
|
|
10281
|
-
var DTOForgeProjectContextGetResponse = z326.object({ context: DTOForgeProjectContext });
|
|
10282
|
-
var DTOForgeProjectContextListResponse = z326.object({ contexts: z326.array(DTOForgeProjectContext) });
|
|
10283
|
-
var DTOForgeProjectContextCreateResponse = z326.object({ context: DTOForgeProjectContext });
|
|
10284
|
-
var DTOForgeProjectContextUpdateResponse = z326.object({ context: DTOForgeProjectContext });
|
|
10285
|
-
var DTOForgeProjectContextRemoveResponse = z326.object({
|
|
10286
|
-
ok: z326.literal(true)
|
|
10287
|
-
});
|
|
10241
|
+
import z327 from "zod";
|
|
10288
10242
|
|
|
10289
10243
|
// src/api/dto/forge/project-context-v2.ts
|
|
10290
|
-
import { z as
|
|
10291
|
-
var DTOForgeComponentSetTypeV2 =
|
|
10292
|
-
var DTOForgeComponentSet =
|
|
10244
|
+
import { z as z326 } from "zod";
|
|
10245
|
+
var DTOForgeComponentSetTypeV2 = z326.enum(["Shadcn"]);
|
|
10246
|
+
var DTOForgeComponentSet = z326.object({
|
|
10293
10247
|
type: DTOForgeComponentSetTypeV2
|
|
10294
10248
|
});
|
|
10295
|
-
var DTOForgeIconSetTypeV2 =
|
|
10296
|
-
var DTOForgeThemeKnownPreset =
|
|
10297
|
-
var DTOForgeIconSet =
|
|
10249
|
+
var DTOForgeIconSetTypeV2 = z326.enum(["Phosphor", "Lucide", "Tabler"]);
|
|
10250
|
+
var DTOForgeThemeKnownPreset = z326.enum(["Default", "Airbnb", "Spotify", "Windows98"]);
|
|
10251
|
+
var DTOForgeIconSet = z326.object({
|
|
10298
10252
|
type: DTOForgeIconSetTypeV2,
|
|
10299
|
-
variant:
|
|
10253
|
+
variant: z326.string().optional()
|
|
10300
10254
|
});
|
|
10301
|
-
var DTOForgeTokenThemeSet =
|
|
10302
|
-
id:
|
|
10303
|
-
name:
|
|
10304
|
-
tokenThemeIds:
|
|
10255
|
+
var DTOForgeTokenThemeSet = z326.object({
|
|
10256
|
+
id: z326.string(),
|
|
10257
|
+
name: z326.string(),
|
|
10258
|
+
tokenThemeIds: z326.array(z326.string())
|
|
10305
10259
|
});
|
|
10306
|
-
var DTOForgeProjectTheme =
|
|
10260
|
+
var DTOForgeProjectTheme = z326.object({
|
|
10307
10261
|
// Colors
|
|
10308
10262
|
background: ColorTokenData,
|
|
10309
10263
|
foreground: ColorTokenData,
|
|
@@ -10388,24 +10342,24 @@ var DTOForgeProjectTheme = z327.object({
|
|
|
10388
10342
|
shadowXl: ShadowTokenData,
|
|
10389
10343
|
shadow2xl: ShadowTokenData
|
|
10390
10344
|
});
|
|
10391
|
-
var DTOForgeProjectContextV2 =
|
|
10392
|
-
id:
|
|
10393
|
-
name:
|
|
10394
|
-
workspaceId:
|
|
10395
|
-
designSystemId:
|
|
10396
|
-
brandId:
|
|
10397
|
-
defaultTokenThemeSetId:
|
|
10398
|
-
description:
|
|
10399
|
-
productContext:
|
|
10400
|
-
additionalContext:
|
|
10401
|
-
isArchived:
|
|
10402
|
-
themePreset:
|
|
10403
|
-
tokenThemeSets:
|
|
10345
|
+
var DTOForgeProjectContextV2 = z326.object({
|
|
10346
|
+
id: z326.string(),
|
|
10347
|
+
name: z326.string(),
|
|
10348
|
+
workspaceId: z326.string(),
|
|
10349
|
+
designSystemId: z326.string().optional(),
|
|
10350
|
+
brandId: z326.string().optional(),
|
|
10351
|
+
defaultTokenThemeSetId: z326.string().optional(),
|
|
10352
|
+
description: z326.string().optional(),
|
|
10353
|
+
productContext: z326.string().optional(),
|
|
10354
|
+
additionalContext: z326.string().optional(),
|
|
10355
|
+
isArchived: z326.boolean(),
|
|
10356
|
+
themePreset: z326.string().optional(),
|
|
10357
|
+
tokenThemeSets: z326.array(DTOForgeTokenThemeSet).optional(),
|
|
10404
10358
|
componentSet: DTOForgeComponentSet,
|
|
10405
10359
|
iconSet: DTOForgeIconSet,
|
|
10406
10360
|
theme: DTOForgeProjectTheme,
|
|
10407
|
-
createdAt:
|
|
10408
|
-
updatedAt:
|
|
10361
|
+
createdAt: z326.coerce.date(),
|
|
10362
|
+
updatedAt: z326.coerce.date(),
|
|
10409
10363
|
thumbnail: DTOFileReference.optional()
|
|
10410
10364
|
});
|
|
10411
10365
|
var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
@@ -10415,7 +10369,7 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10415
10369
|
isArchived: true,
|
|
10416
10370
|
thumbnail: true
|
|
10417
10371
|
}).extend({
|
|
10418
|
-
thumbnailFileId:
|
|
10372
|
+
thumbnailFileId: z326.string().optional()
|
|
10419
10373
|
});
|
|
10420
10374
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
10421
10375
|
id: true,
|
|
@@ -10424,27 +10378,76 @@ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
|
10424
10378
|
updatedAt: true,
|
|
10425
10379
|
thumbnail: true
|
|
10426
10380
|
}).partial().extend({
|
|
10427
|
-
thumbnailFileId:
|
|
10381
|
+
thumbnailFileId: z326.string().optional()
|
|
10428
10382
|
});
|
|
10429
|
-
var DTOForgeProjectContextResponseV2 =
|
|
10430
|
-
var DTOForgeProjectContextListQueryV2 =
|
|
10431
|
-
workspaceId:
|
|
10383
|
+
var DTOForgeProjectContextResponseV2 = z326.object({ context: DTOForgeProjectContextV2 });
|
|
10384
|
+
var DTOForgeProjectContextListQueryV2 = z326.object({
|
|
10385
|
+
workspaceId: z326.string(),
|
|
10432
10386
|
isArchived: zodQueryBoolean()
|
|
10433
10387
|
});
|
|
10434
|
-
var DTOForgeProjectContextListResponseV2 =
|
|
10388
|
+
var DTOForgeProjectContextListResponseV2 = z326.object({ contexts: z326.array(DTOForgeProjectContextV2) });
|
|
10435
10389
|
|
|
10436
10390
|
// src/api/dto/forge/project-context-override.ts
|
|
10437
|
-
var DTOProjectContextOverride =
|
|
10438
|
-
projectId:
|
|
10391
|
+
var DTOProjectContextOverride = z327.object({
|
|
10392
|
+
projectId: z327.string(),
|
|
10439
10393
|
theme: DTOForgeProjectTheme.partial()
|
|
10440
10394
|
});
|
|
10441
|
-
var DTOProjectContextOverrideInput =
|
|
10442
|
-
updateSharedContext:
|
|
10395
|
+
var DTOProjectContextOverrideInput = z327.object({
|
|
10396
|
+
updateSharedContext: z327.boolean().optional(),
|
|
10443
10397
|
theme: DTOForgeProjectTheme.partial()
|
|
10444
10398
|
});
|
|
10445
|
-
var DTOProjectContextOverrideResponse =
|
|
10399
|
+
var DTOProjectContextOverrideResponse = z327.object({
|
|
10446
10400
|
override: DTOProjectContextOverride,
|
|
10447
|
-
|
|
10401
|
+
originalContext: DTOForgeProjectContextV2,
|
|
10402
|
+
resolvedContext: DTOForgeProjectContextV2
|
|
10403
|
+
});
|
|
10404
|
+
|
|
10405
|
+
// src/api/dto/forge/project-context.ts
|
|
10406
|
+
import { z as z328 } from "zod";
|
|
10407
|
+
var DTOForgeProjectContext = z328.object({
|
|
10408
|
+
definition: z328.string(),
|
|
10409
|
+
dependencies: z328.array(
|
|
10410
|
+
z328.object({
|
|
10411
|
+
packageName: z328.string(),
|
|
10412
|
+
type: z328.literal("npm"),
|
|
10413
|
+
version: z328.string().default("latest")
|
|
10414
|
+
})
|
|
10415
|
+
),
|
|
10416
|
+
designSystemId: z328.string(),
|
|
10417
|
+
id: z328.string(),
|
|
10418
|
+
meta: z328.object({
|
|
10419
|
+
name: z328.string(),
|
|
10420
|
+
description: z328.string().optional()
|
|
10421
|
+
}),
|
|
10422
|
+
name: z328.string(),
|
|
10423
|
+
npmProxySettings: DTONpmRegistryConfig.optional(),
|
|
10424
|
+
platform: z328.enum(["React", "Vue", "Angular"]),
|
|
10425
|
+
styling: z328.enum(["CSS", "Tailwind"]),
|
|
10426
|
+
tailwindConfig: z328.object({
|
|
10427
|
+
content: z328.string(),
|
|
10428
|
+
version: z328.string()
|
|
10429
|
+
}).optional(),
|
|
10430
|
+
createdAt: z328.coerce.date(),
|
|
10431
|
+
updatedAt: z328.coerce.date(),
|
|
10432
|
+
workspaceId: z328.string()
|
|
10433
|
+
});
|
|
10434
|
+
var DTOCreateForgeProjectContext = DTOForgeProjectContext.pick({
|
|
10435
|
+
definition: true,
|
|
10436
|
+
name: true,
|
|
10437
|
+
meta: true,
|
|
10438
|
+
designSystemId: true,
|
|
10439
|
+
platform: true,
|
|
10440
|
+
dependencies: true,
|
|
10441
|
+
tailwindConfig: true,
|
|
10442
|
+
styling: true
|
|
10443
|
+
}).extend({ npmProxySettings: DTONpmRegistryConfig });
|
|
10444
|
+
var DTOUpdateForgeProjectContext = DTOCreateForgeProjectContext.partial().extend({ id: z328.string() });
|
|
10445
|
+
var DTOForgeProjectContextGetResponse = z328.object({ context: DTOForgeProjectContext });
|
|
10446
|
+
var DTOForgeProjectContextListResponse = z328.object({ contexts: z328.array(DTOForgeProjectContext) });
|
|
10447
|
+
var DTOForgeProjectContextCreateResponse = z328.object({ context: DTOForgeProjectContext });
|
|
10448
|
+
var DTOForgeProjectContextUpdateResponse = z328.object({ context: DTOForgeProjectContext });
|
|
10449
|
+
var DTOForgeProjectContextRemoveResponse = z328.object({
|
|
10450
|
+
ok: z328.literal(true)
|
|
10448
10451
|
});
|
|
10449
10452
|
|
|
10450
10453
|
// src/api/dto/forge/project-figma-node.ts
|