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