@supernova-studio/client 1.40.1 → 1.40.3

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
@@ -249,8 +249,7 @@ var AuthV2Request = z3.object({
249
249
  codeChallenge: z3.string(),
250
250
  codeChallengeMethod: z3.string(),
251
251
  redirectUri: z3.string(),
252
- sessionId: z3.string(),
253
- clientApp: z3.string().optional()
252
+ sessionId: z3.string()
254
253
  });
255
254
  var AuthV2Session = z4.object({
256
255
  id: z4.string(),
@@ -5233,6 +5232,8 @@ var ProjectFeature = z178.object({
5233
5232
  name: z178.string(),
5234
5233
  projectId: z178.string(),
5235
5234
  sectionId: Id.optional(),
5235
+ e2bTemplateId: z178.string().nullish(),
5236
+ e2bIterationId: z178.string().nullish(),
5236
5237
  sortOrder: SortOrder.default(0),
5237
5238
  status: ProjectFeatureStatus.default("Draft"),
5238
5239
  updatedAt: z178.coerce.date().optional(),
@@ -5713,7 +5714,8 @@ var FlaggedFeature = z207.enum([
5713
5714
  "PulsarPreloadData",
5714
5715
  "PulsarConcurrencyMode",
5715
5716
  "PulsarConcurrency",
5716
- "PulsarProfilerMode"
5717
+ "PulsarProfilerMode",
5718
+ "ForgeE2BTemplate"
5717
5719
  ]);
5718
5720
  var FeatureFlagMap = z207.record(FlaggedFeature, z207.boolean());
5719
5721
  var FeatureFlag = z207.object({
@@ -7070,7 +7072,8 @@ var DTOStorybookEntryQuery = z238.object({
7070
7072
  /**
7071
7073
  * Unique ID across versions (non-persistent ID)
7072
7074
  */
7073
- brandId: z238.string().optional()
7075
+ brandId: z238.string().optional(),
7076
+ excludeDocs: z238.coerce.boolean().optional()
7074
7077
  });
7075
7078
  var DTOStorybookEntryListResponse = z238.object({ entries: z238.array(DTOStorybookEntry) });
7076
7079
  var DTOStorybookEntryResponse = z238.object({ entry: DTOStorybookEntry });
@@ -9657,25 +9660,114 @@ var DTOForgeProjectArtifactRoomResponse = z319.object({
9657
9660
 
9658
9661
  // src/api/dto/forge/project-context-v2.ts
9659
9662
  import { z as z320 } from "zod";
9660
- var DTOForgeComponentSetType = z320.enum(["Shadcn"]);
9663
+ var DTOForgeComponentSetTypeV2 = z320.enum(["Shadcn"]);
9661
9664
  var DTOForgeComponentSet = z320.object({
9662
- type: DTOForgeComponentSetType
9665
+ type: DTOForgeComponentSetTypeV2
9663
9666
  });
9664
- var DTOForgeIconSetType = z320.enum(["Phosphor", "Lucide", "Tabler"]);
9667
+ var DTOForgeIconSetTypeV2 = z320.enum(["Phosphor", "Lucide", "Tabler"]);
9665
9668
  var DTOForgeIconSet = z320.object({
9666
- type: DTOForgeIconSetType
9667
- // ... additional icon set props
9669
+ type: DTOForgeIconSetTypeV2,
9670
+ variant: z320.string().nullable()
9671
+ });
9672
+ var DTOForgeProjectTheme = z320.object({
9673
+ // Colors
9674
+ background: ColorTokenData,
9675
+ foreground: ColorTokenData,
9676
+ card: ColorTokenData,
9677
+ cardForeground: ColorTokenData,
9678
+ popover: ColorTokenData,
9679
+ popoverForeground: ColorTokenData,
9680
+ primary: ColorTokenData,
9681
+ primaryForeground: ColorTokenData,
9682
+ secondary: ColorTokenData,
9683
+ secondaryForeground: ColorTokenData,
9684
+ muted: ColorTokenData,
9685
+ mutedForeground: ColorTokenData,
9686
+ accent: ColorTokenData,
9687
+ accentForeground: ColorTokenData,
9688
+ destructive: ColorTokenData,
9689
+ border: ColorTokenData,
9690
+ input: ColorTokenData,
9691
+ ring: ColorTokenData,
9692
+ chart1: ColorTokenData,
9693
+ chart2: ColorTokenData,
9694
+ chart3: ColorTokenData,
9695
+ chart4: ColorTokenData,
9696
+ chart5: ColorTokenData,
9697
+ sidebar: ColorTokenData,
9698
+ sidebarForeground: ColorTokenData,
9699
+ sidebarPrimary: ColorTokenData,
9700
+ sidebarPrimaryForeground: ColorTokenData,
9701
+ sidebarAccent: ColorTokenData,
9702
+ sidebarAccentForeground: ColorTokenData,
9703
+ sidebarBorder: ColorTokenData,
9704
+ sidebarRing: ColorTokenData,
9705
+ // Font family
9706
+ fontFamily: FontFamilyTokenData,
9707
+ // Font sizes
9708
+ textXs: FontSizeTokenData,
9709
+ textSm: FontSizeTokenData,
9710
+ textBase: FontSizeTokenData,
9711
+ textLg: FontSizeTokenData,
9712
+ textXl: FontSizeTokenData,
9713
+ text2xl: FontSizeTokenData,
9714
+ text3xl: FontSizeTokenData,
9715
+ text4xl: FontSizeTokenData,
9716
+ text5xl: FontSizeTokenData,
9717
+ text6xl: FontSizeTokenData,
9718
+ text7xl: FontSizeTokenData,
9719
+ text8xl: FontSizeTokenData,
9720
+ text9xl: FontSizeTokenData,
9721
+ // Line heights
9722
+ textXsLineHeight: LineHeightTokenData,
9723
+ textSmLineHeight: LineHeightTokenData,
9724
+ textBaseLineHeight: LineHeightTokenData,
9725
+ textLgLineHeight: LineHeightTokenData,
9726
+ textXlLineHeight: LineHeightTokenData,
9727
+ text2xlLineHeight: LineHeightTokenData,
9728
+ text3xlLineHeight: LineHeightTokenData,
9729
+ text4xlLineHeight: LineHeightTokenData,
9730
+ text5xlLineHeight: LineHeightTokenData,
9731
+ text6xlLineHeight: LineHeightTokenData,
9732
+ text7xlLineHeight: LineHeightTokenData,
9733
+ text8xlLineHeight: LineHeightTokenData,
9734
+ text9xlLineHeight: LineHeightTokenData,
9735
+ // Font weights
9736
+ fontWeightThin: FontWeightTokenData,
9737
+ fontWeightExtralight: FontWeightTokenData,
9738
+ fontWeightLight: FontWeightTokenData,
9739
+ fontWeightNormal: FontWeightTokenData,
9740
+ fontWeightMedium: FontWeightTokenData,
9741
+ fontWeightSemibold: FontWeightTokenData,
9742
+ fontWeightBold: FontWeightTokenData,
9743
+ fontWeightExtrabold: FontWeightTokenData,
9744
+ fontWeightBlack: FontWeightTokenData,
9745
+ // Other dimensions
9746
+ radius: BorderRadiusTokenData,
9747
+ spacing: SpaceTokenData,
9748
+ // Shadows
9749
+ shadow2xs: ShadowTokenData,
9750
+ shadowXs: ShadowTokenData,
9751
+ shadowSm: ShadowTokenData,
9752
+ shadowMd: ShadowTokenData,
9753
+ shadowLg: ShadowTokenData,
9754
+ shadowXl: ShadowTokenData,
9755
+ shadow2xl: ShadowTokenData
9668
9756
  });
9669
9757
  var DTOForgeProjectContextV2 = z320.object({
9758
+ id: z320.string(),
9670
9759
  name: z320.string(),
9671
- description: z320.string(),
9672
- productContext: z320.string(),
9760
+ workspaceId: z320.string(),
9761
+ designSystemId: z320.string().optional(),
9762
+ description: z320.string().optional(),
9763
+ productContext: z320.string().optional(),
9764
+ additionalContext: z320.string().optional(),
9673
9765
  componentSet: DTOForgeComponentSet,
9674
9766
  iconSet: DTOForgeIconSet,
9675
- additionalContext: z320.string()
9767
+ theme: DTOForgeProjectTheme
9676
9768
  });
9677
- var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2;
9678
- var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.partial();
9769
+ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({ id: true });
9770
+ var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({ id: true }).partial();
9679
9771
  var DTOForgeProjectContextResponseV2 = z320.object({ context: DTOForgeProjectContextV2 });
9680
9772
  var DTOForgeProjectContextListQueryV2 = z320.object({ workspaceId: z320.string() });
9681
9773
  var DTOForgeProjectContextListResponseV2 = z320.object({ contexts: z320.array(DTOForgeProjectContextV2) });
@@ -10107,6 +10199,9 @@ var DTOThreadMessageCreateInput = DTOThreadMessage.pick({
10107
10199
  parentMessageId: true,
10108
10200
  attachments: true
10109
10201
  });
10202
+ var DTOThreadMessageFinalizeInput = z333.object({
10203
+ messageId: Id
10204
+ });
10110
10205
  var DTOThreadMessageUpdateInput = DTOThreadMessage.pick({
10111
10206
  id: true
10112
10207
  }).merge(
@@ -11188,9 +11283,9 @@ var StorybookEntriesEndpoint = class {
11188
11283
  constructor(requestExecutor) {
11189
11284
  this.requestExecutor = requestExecutor;
11190
11285
  }
11191
- list(dsId, brandId) {
11286
+ list(dsId, query = {}) {
11192
11287
  return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse, {
11193
- query: new URLSearchParams(pickDefined({ brandId }))
11288
+ query: new URLSearchParams(pickDefined(query))
11194
11289
  });
11195
11290
  }
11196
11291
  replace(dsId, entryId) {
@@ -17888,6 +17983,15 @@ var BackendVersionRoomYDoc = class {
17888
17983
  __publicField(this, "yDoc");
17889
17984
  this.yDoc = yDoc;
17890
17985
  }
17986
+ getDocumentationHierarchy() {
17987
+ const yDoc = new VersionRoomBaseYDoc(this.yDoc);
17988
+ return {
17989
+ pages: yDoc.getPages(),
17990
+ pageSnapshots: yDoc.getPageSnapshots(),
17991
+ groups: yDoc.getGroups(),
17992
+ groupSnapshots: yDoc.getGroupSnapshots()
17993
+ };
17994
+ }
17891
17995
  updateDocumentationHierarchy(transaction) {
17892
17996
  this.yDoc.transact((trx) => {
17893
17997
  const yDoc = new VersionRoomBaseYDoc(trx.doc);
@@ -18920,13 +19024,13 @@ export {
18920
19024
  DTOForgeChatThreadUpdateInput,
18921
19025
  DTOForgeChatThreadUpdateResponse,
18922
19026
  DTOForgeComponentSet,
18923
- DTOForgeComponentSetType,
19027
+ DTOForgeComponentSetTypeV2,
18924
19028
  DTOForgeFeatureRoom,
18925
19029
  DTOForgeFeatureRoomResponse,
18926
19030
  DTOForgeFigmaArtifact,
18927
19031
  DTOForgeFileArtifact,
18928
19032
  DTOForgeIconSet,
18929
- DTOForgeIconSetType,
19033
+ DTOForgeIconSetTypeV2,
18930
19034
  DTOForgeIterationMessage,
18931
19035
  DTOForgeIterationMessagesListResponse,
18932
19036
  DTOForgeParticipant,
@@ -19010,6 +19114,7 @@ export {
19010
19114
  DTOForgeProjectRemoveResponse,
19011
19115
  DTOForgeProjectRoom,
19012
19116
  DTOForgeProjectRoomResponse,
19117
+ DTOForgeProjectTheme,
19013
19118
  DTOForgeProjectUpdate,
19014
19119
  DTOForgeProjectUpdateResponse,
19015
19120
  DTOForgeSection,
@@ -19121,6 +19226,7 @@ export {
19121
19226
  DTOThreadMessageAgentSender,
19122
19227
  DTOThreadMessageAttachments,
19123
19228
  DTOThreadMessageCreateInput,
19229
+ DTOThreadMessageFinalizeInput,
19124
19230
  DTOThreadMessageListResponse,
19125
19231
  DTOThreadMessageResponse,
19126
19232
  DTOThreadMessageSender,