@supernova-studio/client 1.14.0 → 1.14.1

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
@@ -197,14 +197,14 @@ import { z as z189 } from "zod";
197
197
  import { z as z190 } from "zod";
198
198
  import { z as z191 } from "zod";
199
199
  import { z as z192 } from "zod";
200
- import { z as z194 } from "zod";
201
200
  import { z as z193 } from "zod";
202
201
  import { z as z195 } from "zod";
202
+ import { z as z194 } from "zod";
203
203
  import { z as z196 } from "zod";
204
204
  import { z as z197 } from "zod";
205
205
  import { z as z198 } from "zod";
206
- import { z as z200 } from "zod";
207
206
  import { z as z199 } from "zod";
207
+ import { z as z200 } from "zod";
208
208
  import { z as z202 } from "zod";
209
209
  import { z as z201 } from "zod";
210
210
  import { z as z203 } from "zod";
@@ -5498,81 +5498,81 @@ var ForgeBuildArtifact = Artifact.extend({
5498
5498
  environment: ForgeBuildArtifactEnvironment
5499
5499
  });
5500
5500
  var ForgeArtifact = z192.union([ForgeBuildArtifact, ForgeSpecArtifact, ForgeFigmaArtifact, ForgeFileArtifact]);
5501
- var ForgeParticipant = z193.object({
5502
- id: z193.string(),
5503
- agentId: z193.string().optional(),
5501
+ var Id = z193.string().uuid();
5502
+ var ForgeParticipant = z194.object({
5503
+ id: z194.string(),
5504
+ agentId: z194.string().optional(),
5504
5505
  agent: ForgeAgent.optional(),
5505
- projectIterationId: z193.string(),
5506
- role: z193.enum(["Editor", "Viewer"]),
5507
- type: z193.enum(["Agent", "User"]),
5508
- userId: z193.string().optional(),
5506
+ projectIterationId: z194.string(),
5507
+ role: z194.enum(["Editor", "Viewer"]),
5508
+ type: z194.enum(["Agent", "User"]),
5509
+ userId: z194.string().optional(),
5509
5510
  user: User.optional()
5510
5511
  });
5511
- var ForgeIterationMessageStep = z194.object({
5512
- name: z194.string(),
5513
- text: z194.string(),
5514
- status: z194.enum(["pending", "started", "completed", "error"])
5512
+ var ForgeIterationMessageStep = z195.object({
5513
+ name: z195.string(),
5514
+ text: z195.string(),
5515
+ status: z195.enum(["pending", "started", "completed", "error"])
5515
5516
  });
5516
- var ForgeIterationMessage = z194.object({
5517
- id: z194.string(),
5518
- createdAt: z194.coerce.date(),
5519
- participantId: z194.string(),
5517
+ var ForgeIterationMessage = z195.object({
5518
+ id: z195.string(),
5519
+ createdAt: z195.coerce.date(),
5520
+ participantId: z195.string(),
5520
5521
  participant: ForgeParticipant,
5521
- projectIterationId: z194.string(),
5522
- steps: z194.array(ForgeIterationMessageStep).optional(),
5523
- type: z194.enum(["Note", "Action", "Steps"]),
5524
- text: z194.string()
5522
+ projectIterationId: z195.string(),
5523
+ steps: z195.array(ForgeIterationMessageStep).optional(),
5524
+ type: z195.enum(["Note", "Action", "Steps"]),
5525
+ text: z195.string()
5525
5526
  });
5526
- var ForgeMeta = z195.object({
5527
- name: z195.string(),
5528
- description: z195.string().optional()
5527
+ var ForgeMeta = z196.object({
5528
+ name: z196.string(),
5529
+ description: z196.string().optional()
5529
5530
  });
5530
5531
  var ForgeProjectArtifactContentData = DocumentationPageContentData;
5531
- var ForgeProjectArtifactContent = z196.object({
5532
- id: z196.string(),
5533
- artifactId: z196.string(),
5534
- projectId: z196.string(),
5535
- createdAt: z196.coerce.date(),
5536
- updatedAt: z196.coerce.date(),
5537
- data: ForgeProjectArtifactContentData
5538
- });
5539
- var ForgeProjectArtifact = z197.object({
5532
+ var ForgeProjectArtifactContent = z197.object({
5540
5533
  id: z197.string(),
5534
+ artifactId: z197.string(),
5541
5535
  projectId: z197.string(),
5542
- iterationId: z197.string().nullish(),
5543
- title: z197.string(),
5544
- previewUrl: z197.string().nullish(),
5545
- path: z197.string(),
5546
- sortOrder: z197.number().default(0),
5547
5536
  createdAt: z197.coerce.date(),
5548
5537
  updatedAt: z197.coerce.date(),
5549
- createdByUserId: z197.string()
5550
- });
5551
- var ForgeProjectContextDependency = z198.object({
5552
- packageName: z198.string(),
5553
- type: z198.literal("npm"),
5554
- version: z198.string().default("latest")
5555
- });
5556
- var ForgeProjectContextTailwindConfig = z198.object({
5557
- content: z198.string(),
5558
- version: z198.string()
5538
+ data: ForgeProjectArtifactContentData
5559
5539
  });
5560
- var ForgeProjectContext = z198.object({
5561
- createdAt: z198.coerce.date(),
5562
- definition: z198.string(),
5563
- dependencies: z198.array(ForgeProjectContextDependency),
5564
- designSystemId: z198.string(),
5540
+ var ForgeProjectArtifact = z198.object({
5565
5541
  id: z198.string(),
5542
+ projectId: z198.string(),
5543
+ iterationId: z198.string().nullish(),
5544
+ title: z198.string(),
5545
+ previewUrl: z198.string().nullish(),
5546
+ path: z198.string(),
5547
+ sortOrder: z198.number().default(0),
5548
+ createdAt: z198.coerce.date(),
5549
+ updatedAt: z198.coerce.date(),
5550
+ createdByUserId: z198.string()
5551
+ });
5552
+ var ForgeProjectContextDependency = z199.object({
5553
+ packageName: z199.string(),
5554
+ type: z199.literal("npm"),
5555
+ version: z199.string().default("latest")
5556
+ });
5557
+ var ForgeProjectContextTailwindConfig = z199.object({
5558
+ content: z199.string(),
5559
+ version: z199.string()
5560
+ });
5561
+ var ForgeProjectContext = z199.object({
5562
+ createdAt: z199.coerce.date(),
5563
+ definition: z199.string(),
5564
+ dependencies: z199.array(ForgeProjectContextDependency),
5565
+ designSystemId: z199.string(),
5566
+ id: z199.string(),
5566
5567
  meta: ForgeMeta,
5567
- name: z198.string(),
5568
+ name: z199.string(),
5568
5569
  npmProxySettings: NpmRegistryConfig,
5569
- platform: z198.enum(["React", "Vue", "Angular"]),
5570
- styling: z198.enum(["CSS", "Tailwind"]),
5570
+ platform: z199.enum(["React", "Vue", "Angular"]),
5571
+ styling: z199.enum(["CSS", "Tailwind"]),
5571
5572
  tailwindConfig: ForgeProjectContextTailwindConfig.optional(),
5572
- updatedAt: z198.coerce.date(),
5573
- workspaceId: z198.string()
5573
+ updatedAt: z199.coerce.date(),
5574
+ workspaceId: z199.string()
5574
5575
  });
5575
- var Id = z199.string().uuid();
5576
5576
  var ProjectFeature = z200.object({
5577
5577
  createdAt: z200.coerce.date(),
5578
5578
  createdByUserId: z200.string(),
@@ -10660,8 +10660,8 @@ var ForgeArtifactsEndpoint = class {
10660
10660
  }
10661
10661
  };
10662
10662
 
10663
- // src/api/endpoints/forge/project-features.ts
10664
- var ForgeProjectFeaturesEndpoint = class {
10663
+ // src/api/endpoints/forge/features.ts
10664
+ var ForgeFeaturesEndpoint = class {
10665
10665
  constructor(requestExecutor) {
10666
10666
  this.requestExecutor = requestExecutor;
10667
10667
  }
@@ -10995,6 +10995,29 @@ var ForgeProjectInvitationsEndpoint = class {
10995
10995
  }
10996
10996
  };
10997
10997
 
10998
+ // src/api/endpoints/forge/project-features.ts
10999
+ var ForgeProjectFeaturesEndpoint = class {
11000
+ constructor(requestExecutor) {
11001
+ this.requestExecutor = requestExecutor;
11002
+ }
11003
+ list(workspaceId, projectId) {
11004
+ return this.requestExecutor.json(
11005
+ `/workspaces/${workspaceId}/forge/projects/${projectId}/features`,
11006
+ DTOForgeProjectFeatureListResponse,
11007
+ {
11008
+ method: "GET"
11009
+ }
11010
+ );
11011
+ }
11012
+ get(workspaceId, projectId, featureId) {
11013
+ return this.requestExecutor.json(
11014
+ `/workspaces/${workspaceId}/forge/projects/${projectId}/features/${featureId}`,
11015
+ DTOForgeProjectFeatureGetResponse,
11016
+ {}
11017
+ );
11018
+ }
11019
+ };
11020
+
10998
11021
  // src/api/endpoints/forge/forges.ts
10999
11022
  var ForgesEndpoint = class {
11000
11023
  constructor(requestExecutor) {
@@ -17455,6 +17478,7 @@ export {
17455
17478
  FilesEndpoint,
17456
17479
  ForgeAgentsEndpoint,
17457
17480
  ForgeArtifactsEndpoint,
17481
+ ForgeFeaturesEndpoint,
17458
17482
  ForgeIterationMessagesEndpoint,
17459
17483
  ForgeParticipantsEndpoint,
17460
17484
  ForgeProjectContextsEndpoint,