@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.js 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 = _zod.z.object({
3436
3439
  componentSets: zeroNumberByDefault()
3437
3440
  });
3438
3441
  var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
3439
- // Backward compatibility
3440
3442
  _zod.z.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
3441
3443
  );
3442
3444
  var SourceImportSummaryByTokenType = _zod.z.record(SourceImportSummaryByTokenTypeKey, _zod.z.number());
@@ -10238,54 +10240,6 @@ var DTOForgeProjectArtifactRoomResponse = _zod.z.object({
10238
10240
  // src/api/dto/forge/project-context-override.ts
10239
10241
 
10240
10242
 
10241
- // src/api/dto/forge/project-context.ts
10242
-
10243
- var DTOForgeProjectContext = _zod.z.object({
10244
- definition: _zod.z.string(),
10245
- dependencies: _zod.z.array(
10246
- _zod.z.object({
10247
- packageName: _zod.z.string(),
10248
- type: _zod.z.literal("npm"),
10249
- version: _zod.z.string().default("latest")
10250
- })
10251
- ),
10252
- designSystemId: _zod.z.string(),
10253
- id: _zod.z.string(),
10254
- meta: _zod.z.object({
10255
- name: _zod.z.string(),
10256
- description: _zod.z.string().optional()
10257
- }),
10258
- name: _zod.z.string(),
10259
- npmProxySettings: DTONpmRegistryConfig.optional(),
10260
- platform: _zod.z.enum(["React", "Vue", "Angular"]),
10261
- styling: _zod.z.enum(["CSS", "Tailwind"]),
10262
- tailwindConfig: _zod.z.object({
10263
- content: _zod.z.string(),
10264
- version: _zod.z.string()
10265
- }).optional(),
10266
- createdAt: _zod.z.coerce.date(),
10267
- updatedAt: _zod.z.coerce.date(),
10268
- workspaceId: _zod.z.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: _zod.z.string() });
10281
- var DTOForgeProjectContextGetResponse = _zod.z.object({ context: DTOForgeProjectContext });
10282
- var DTOForgeProjectContextListResponse = _zod.z.object({ contexts: _zod.z.array(DTOForgeProjectContext) });
10283
- var DTOForgeProjectContextCreateResponse = _zod.z.object({ context: DTOForgeProjectContext });
10284
- var DTOForgeProjectContextUpdateResponse = _zod.z.object({ context: DTOForgeProjectContext });
10285
- var DTOForgeProjectContextRemoveResponse = _zod.z.object({
10286
- ok: _zod.z.literal(true)
10287
- });
10288
-
10289
10243
  // src/api/dto/forge/project-context-v2.ts
10290
10244
 
10291
10245
  var DTOForgeComponentSetTypeV2 = _zod.z.enum(["Shadcn"]);
@@ -10444,7 +10398,56 @@ var DTOProjectContextOverrideInput = _zod2.default.object({
10444
10398
  });
10445
10399
  var DTOProjectContextOverrideResponse = _zod2.default.object({
10446
10400
  override: DTOProjectContextOverride,
10447
- resolvedContext: DTOForgeProjectContext
10401
+ originalContext: DTOForgeProjectContextV2,
10402
+ resolvedContext: DTOForgeProjectContextV2
10403
+ });
10404
+
10405
+ // src/api/dto/forge/project-context.ts
10406
+
10407
+ var DTOForgeProjectContext = _zod.z.object({
10408
+ definition: _zod.z.string(),
10409
+ dependencies: _zod.z.array(
10410
+ _zod.z.object({
10411
+ packageName: _zod.z.string(),
10412
+ type: _zod.z.literal("npm"),
10413
+ version: _zod.z.string().default("latest")
10414
+ })
10415
+ ),
10416
+ designSystemId: _zod.z.string(),
10417
+ id: _zod.z.string(),
10418
+ meta: _zod.z.object({
10419
+ name: _zod.z.string(),
10420
+ description: _zod.z.string().optional()
10421
+ }),
10422
+ name: _zod.z.string(),
10423
+ npmProxySettings: DTONpmRegistryConfig.optional(),
10424
+ platform: _zod.z.enum(["React", "Vue", "Angular"]),
10425
+ styling: _zod.z.enum(["CSS", "Tailwind"]),
10426
+ tailwindConfig: _zod.z.object({
10427
+ content: _zod.z.string(),
10428
+ version: _zod.z.string()
10429
+ }).optional(),
10430
+ createdAt: _zod.z.coerce.date(),
10431
+ updatedAt: _zod.z.coerce.date(),
10432
+ workspaceId: _zod.z.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: _zod.z.string() });
10445
+ var DTOForgeProjectContextGetResponse = _zod.z.object({ context: DTOForgeProjectContext });
10446
+ var DTOForgeProjectContextListResponse = _zod.z.object({ contexts: _zod.z.array(DTOForgeProjectContext) });
10447
+ var DTOForgeProjectContextCreateResponse = _zod.z.object({ context: DTOForgeProjectContext });
10448
+ var DTOForgeProjectContextUpdateResponse = _zod.z.object({ context: DTOForgeProjectContext });
10449
+ var DTOForgeProjectContextRemoveResponse = _zod.z.object({
10450
+ ok: _zod.z.literal(true)
10448
10451
  });
10449
10452
 
10450
10453
  // src/api/dto/forge/project-figma-node.ts