@supernova-studio/supernova-sdk-beta 2.2.7 → 2.2.50

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.
Files changed (131) hide show
  1. package/README.md +8 -12
  2. package/build/sdk-typescript/src/core/SDKSupernova.d.ts +18 -6
  3. package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +12 -14
  4. package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +3 -1
  5. package/build/sdk-typescript/src/core/areas/SDKAreaMCP.d.ts +24 -0
  6. package/build/sdk-typescript/src/core/areas/SDKAreaMe.d.ts +3 -1
  7. package/build/sdk-typescript/src/core/areas/SDKAreaMessaging.d.ts +60 -0
  8. package/build/sdk-typescript/src/core/areas/SDKAreaProjects.d.ts +2120 -64
  9. package/build/sdk-typescript/src/core/areas/SDKAreaRawData.d.ts +2049 -7
  10. package/build/sdk-typescript/src/core/areas/SDKAreaRelay.d.ts +61 -0
  11. package/build/sdk-typescript/src/core/areas/SDKAreaResources.d.ts +83 -1
  12. package/build/sdk-typescript/src/core/areas/SDKAreaThreads.d.ts +81 -0
  13. package/build/sdk-typescript/src/core/areas/SDKAreaTokens.d.ts +3 -1
  14. package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +71 -16
  15. package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +9 -5
  16. package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +2350 -73
  17. package/build/sdk-typescript/src/core/data/SDKDataCoreCached.d.ts +50 -0
  18. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreAIRequests.d.ts +19 -27
  19. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +1080 -36
  20. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +2201 -37
  21. package/build/sdk-typescript/src/core/resolvers/SDKDocsEntityItemResolver.d.ts +9 -9
  22. package/build/sdk-typescript/src/exports-pulsar.d.ts +0 -2
  23. package/build/sdk-typescript/src/exports.d.ts +38 -6
  24. package/build/sdk-typescript/src/model/base/SDKDesignSystemVersionStats.d.ts +1 -0
  25. package/build/sdk-typescript/src/model/components/SDKDesignComponentBase.d.ts +1 -0
  26. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/do-dont-guidelines/SDKDocsBlockActualDoDontGuidelines.d.ts +18 -0
  27. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed/SDKDocsBlockActualEmbed.d.ts +10 -0
  28. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-figma/SDKDocsBlockActualEmbedFigma.d.ts +10 -0
  29. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-youtube/SDKDocsBlockActualEmbedYoutube.d.ts +10 -0
  30. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/files/SDKDocsBlockActualFiles.d.ts +16 -0
  31. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/image/SDKDocsBlockActualImage.d.ts +10 -0
  32. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualDoDontGuidelines.d.ts +8 -0
  33. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbed.d.ts +6 -0
  34. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbedFigma.d.ts +6 -0
  35. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbedYoutube.d.ts +6 -0
  36. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualFiles.d.ts +6 -0
  37. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualImage.d.ts +6 -0
  38. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualShortcutLinks.d.ts +8 -0
  39. package/build/sdk-typescript/src/model/docs/blocks/definition/actual/shortcut-links/SDKDocsBlockActualShortcutLinks.d.ts +10 -0
  40. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +3 -1
  41. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +2 -0
  42. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockFileProperty.d.ts +22 -0
  43. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +3 -0
  44. package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +2 -0
  45. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponentPropsTable.d.ts +11 -0
  46. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponents.d.ts +11 -0
  47. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponentsConfig.d.ts +32 -0
  48. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFiles.d.ts +22 -0
  49. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockGuideline.d.ts +25 -0
  50. package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockGuidelines.d.ts +6 -0
  51. package/build/sdk-typescript/src/model/documentation/builder/SDKDocumentationLegacyBlockBuilder.d.ts +1 -1
  52. package/build/sdk-typescript/src/model/enums/SDKDesignSystemRole.d.ts +2 -1
  53. package/build/sdk-typescript/src/model/enums/SDKDocsBlockBehaviorDataType.d.ts +3 -1
  54. package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyType.d.ts +3 -1
  55. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyCalloutType.d.ts +2 -1
  56. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyHeadingType.d.ts +3 -1
  57. package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +6 -1
  58. package/build/sdk-typescript/src/model/enums/SDKFigmaComponentPreviewContainerSize.d.ts +4 -0
  59. package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +3 -3
  60. package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +1 -1
  61. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSeatType.d.ts +3 -0
  62. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionProduct.d.ts +7 -0
  63. package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatus.d.ts +3 -1
  64. package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +1 -1
  65. package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportDestinations.d.ts +5 -0
  66. package/build/sdk-typescript/src/model/files/SDKFileUpload.d.ts +9 -0
  67. package/build/sdk-typescript/src/model/groups/SDKTokenGroup.d.ts +1 -0
  68. package/build/sdk-typescript/src/model/mcp/SDKMCPStream.d.ts +8 -0
  69. package/build/sdk-typescript/src/model/membership/SDKMembership.d.ts +10 -6
  70. package/build/sdk-typescript/src/model/messaging/SDKChatThread.d.ts +14 -0
  71. package/build/sdk-typescript/src/model/messaging/SDKChatThreadMessage.d.ts +48 -0
  72. package/build/sdk-typescript/src/model/projects/SDKForgeAgent.d.ts +8 -0
  73. package/build/sdk-typescript/src/model/projects/SDKForgeProject.d.ts +42 -0
  74. package/build/sdk-typescript/src/model/projects/SDKForgeProjectContext.d.ts +31 -0
  75. package/build/sdk-typescript/src/model/projects/SDKForgeProjectContextOverride.d.ts +20 -0
  76. package/build/sdk-typescript/src/model/projects/SDKForgeProjectDocument.d.ts +19 -0
  77. package/build/sdk-typescript/src/model/projects/SDKForgeProjectDocumentPreview.d.ts +13 -0
  78. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeature.d.ts +25 -0
  79. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureArtifact.d.ts +13 -0
  80. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureArtifactList.d.ts +7 -0
  81. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureIteration.d.ts +13 -0
  82. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessage.d.ts +26 -0
  83. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessageList.d.ts +10 -0
  84. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessageReaction.d.ts +9 -0
  85. package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeaturePreview.d.ts +13 -0
  86. package/build/sdk-typescript/src/model/projects/SDKForgeProjectInvitation.d.ts +12 -0
  87. package/build/sdk-typescript/src/model/projects/SDKForgeProjectMembership.d.ts +14 -0
  88. package/build/sdk-typescript/src/model/projects/SDKForgeProjectRelation.d.ts +13 -0
  89. package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectDocumentSection.d.ts +6 -0
  90. package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectFeatureSection.d.ts +6 -0
  91. package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectSection.d.ts +12 -0
  92. package/build/sdk-typescript/src/model/storybook/SDKStorybookUpdate.d.ts +17 -0
  93. package/build/sdk-typescript/src/model/support/SDKSource.d.ts +8 -1
  94. package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +1 -1
  95. package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +1 -1
  96. package/build/sdk-typescript/src/model/threads/SDKThreadMessage.d.ts +36 -0
  97. package/build/sdk-typescript/src/model/threads/SDKThreadMessageList.d.ts +10 -0
  98. package/build/sdk-typescript/src/model/threads/SDKThreadMessageReaction.d.ts +9 -0
  99. package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +1 -1
  100. package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +1 -1
  101. package/build/sdk-typescript/src/model/tokens/SDKToken.d.ts +1 -0
  102. package/build/sdk-typescript/src/model/trail-events/SDKTrailEvent.d.ts +17 -0
  103. package/build/sdk-typescript/src/model/users/SDKUser.d.ts +7 -0
  104. package/build/sdk-typescript/src/model/users/SDKUserMembership.d.ts +13 -0
  105. package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +22 -9
  106. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +15 -9
  107. package/build/sdk-typescript/src/model/workspaces/SDKWorkspacePortalSettings.d.ts +12 -0
  108. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductFeatures.d.ts +2 -2
  109. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductPrice.d.ts +7 -0
  110. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProfile.d.ts +8 -26
  111. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +72 -41
  112. package/build/sdk-typescript/src/tests/Areas/AreaRelay.spec.d.ts +1 -0
  113. package/build/sdk-typescript/src/tests/Areas/AreaThreads.spec.d.ts +1 -0
  114. package/build/sdk-typescript/src/tests/helpers.d.ts +1 -0
  115. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +1 -1
  116. package/build/sdk-typescript/src/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +13 -2
  117. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownLinkResolver.d.ts +39 -0
  118. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +2 -2
  119. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +33 -10
  120. package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +8 -3
  121. package/build/sdk-typescript/src/utils/RawUtils.d.ts +59 -3
  122. package/build/supernova-sdk-typescript.js +1 -2
  123. package/build/supernova-sdk-typescript.js.map +1 -1
  124. package/package.json +19 -29
  125. package/build/sdk-typescript/src/core/areas/SDKAreaAI.d.ts +0 -75
  126. package/build/sdk-typescript/src/model/acl/SDKAcl.d.ts +0 -51
  127. package/build/sdk-typescript/src/model/exporters/remote/SDKRemotePipelineModel.d.ts +0 -51
  128. package/build/sdk-typescript/src/model/projects/SDKProject.d.ts +0 -39
  129. package/build/sdk-typescript/src/model/projects/SDKProjectContext.d.ts +0 -47
  130. package/build/supernova-sdk-typescript.js.LICENSE.txt +0 -8
  131. /package/build/sdk-typescript/src/tests/Areas/{AreaAI.spec.d.ts → AreaMessaging.spec.d.ts} +0 -0
@@ -27,5 +27,10 @@ export declare enum DocumentationLegacyPageBlockType {
27
27
  tabItem = "TabItem",
28
28
  table = "Table",
29
29
  tableCell = "TableCell",
30
- tableRow = "TableRow"
30
+ tableRow = "TableRow",
31
+ figmaComponentPropsTable = "FigmaComponentPropsTable",
32
+ figmaComponents = "FigmaComponents",
33
+ files = "Files",
34
+ guidelines = "Guidelines",
35
+ guideline = "Guideline"
31
36
  }
@@ -0,0 +1,4 @@
1
+ export declare enum FigmaComponentPreviewContainerSize {
2
+ centered = "Centered",
3
+ naturalHeight = "NaturalHeight"
4
+ }
@@ -37,13 +37,13 @@ export declare const ALL_TOKEN_TYPES: readonly [TokenType.dimension, TokenType.s
37
37
  export declare const PURE_TOKEN_TYPES: readonly [TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.string, TokenType.productCopy, TokenType.fontFamily, TokenType.fontWeight, TokenType.textCase, TokenType.textDecoration, TokenType.visibility];
38
38
  export type PureTokenType = (typeof PURE_TOKEN_TYPES)[number];
39
39
  export type NonPureTokenType = Exclude<TokenType, PureTokenType>;
40
- export declare const tokenTypeIsPure: (tokenType: TokenType) => tokenType is TokenType.radius | TokenType.borderWidth | TokenType.duration | TokenType.fontSize | TokenType.dimension | TokenType.letterSpacing | TokenType.lineHeight | TokenType.opacity | TokenType.paragraphSpacing | TokenType.size | TokenType.space | TokenType.zIndex | TokenType.textDecoration | TokenType.textCase | TokenType.visibility | TokenType.fontFamily | TokenType.fontWeight | TokenType.string | TokenType.productCopy;
40
+ export declare const tokenTypeIsPure: (tokenType: TokenType) => tokenType is PureTokenType;
41
41
  export declare const tokenTypeIsNonPure: (tokenType: TokenType) => tokenType is NonPureTokenType;
42
42
  export declare const REPLACABLE_TOKEN_TYPES: readonly [TokenType.color, TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.string, TokenType.productCopy, TokenType.fontFamily, TokenType.fontWeight, TokenType.textCase, TokenType.textDecoration, TokenType.visibility];
43
43
  export type ReplacableTokenType = (typeof REPLACABLE_TOKEN_TYPES)[number];
44
44
  export declare const REFERENCABLE_TOKEN_TYPES: readonly [TokenType.color, TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.fontFamily, TokenType.fontWeight, TokenType.textCase, TokenType.textDecoration];
45
45
  export type ReferencableTokenType = (typeof REFERENCABLE_TOKEN_TYPES)[number];
46
- export declare const tokenTypeIsReferencable: (tokenType: TokenType) => tokenType is TokenType.color | TokenType.radius | TokenType.borderWidth | TokenType.duration | TokenType.fontSize | TokenType.dimension | TokenType.letterSpacing | TokenType.lineHeight | TokenType.opacity | TokenType.paragraphSpacing | TokenType.size | TokenType.space | TokenType.zIndex | TokenType.textDecoration | TokenType.textCase | TokenType.fontFamily | TokenType.fontWeight;
46
+ export declare const tokenTypeIsReferencable: (tokenType: TokenType) => tokenType is ReferencableTokenType;
47
47
  export declare const DT_TOKEN_TYPES: readonly [TokenType.color, TokenType.shadow, TokenType.gradient, TokenType.typography, TokenType.border, TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.fontFamily, TokenType.fontWeight, TokenType.string, TokenType.textCase, TokenType.textDecoration, TokenType.visibility];
48
48
  export type DTTokenType = (typeof DT_TOKEN_TYPES)[number];
49
- export type DTOriginalTokenType = "color" | "borderRadius" | "boxShadow" | "gradient" | "typography" | "border" | "borderWidth" | "sizing" | "opacity" | "spacing" | "fontSizes" | "paragraphSpacing" | "letterSpacing" | "lineHeights" | "other" | "text" | "dimension" | "number" | "fontFamilies" | "fontWeights" | "textCase" | "textDecoration" | "duration";
49
+ export type DTOriginalTokenType = "color" | "borderRadius" | "boxShadow" | "gradient" | "typography" | "border" | "borderWidth" | "sizing" | "opacity" | "spacing" | "fontSizes" | "fontSize" | "paragraphSpacing" | "letterSpacing" | "lineHeights" | "lineHeight" | "other" | "text" | "dimension" | "number" | "fontFamilies" | "fontFamily" | "fontWeights" | "fontWeight" | "textCase" | "textDecoration" | "duration";
@@ -10,4 +10,4 @@ export declare enum UserRole {
10
10
  billing = "Billing",
11
11
  viewer = "Viewer"
12
12
  }
13
- export declare const convertRemoteToUserRole: (remoteRole: DTOWorkspaceRole) => UserRole;
13
+ export declare const remoteRoleToUserRole: Record<DTOWorkspaceRole, UserRole>;
@@ -0,0 +1,3 @@
1
+ import { DTOWorkspaceSeatType } from "@supernova-studio/client";
2
+ export type WorkspaceSeatType = DTOWorkspaceSeatType;
3
+ export declare const allWorkspaceSeatTypes: ["Full", "Builder", "None"];
@@ -7,6 +7,13 @@ export declare enum WorkspaceSubscriptionProductCode {
7
7
  teamTest = "team_test",
8
8
  /** The workspace is on company tier */
9
9
  company = "company",
10
+ /** The workspace is on pro tier */
11
+ pro = "pro",
10
12
  /** The workspace is on enterprise tier */
11
13
  enterprise = "enterprise"
12
14
  }
15
+ /**
16
+ * List of all subscription product codes available for checkout.
17
+ */
18
+ export declare const subscriptionCheckoutProductCodes: readonly [WorkspaceSubscriptionProductCode.team, WorkspaceSubscriptionProductCode.company, WorkspaceSubscriptionProductCode.pro];
19
+ export type SubscriptionCheckoutProductCode = (typeof subscriptionCheckoutProductCodes)[number];
@@ -6,5 +6,7 @@ export declare enum WorkspaceSubscriptionStatus {
6
6
  /** The subscription is cancelled */
7
7
  cancelled = "cancelled",
8
8
  /** The subscription is suspended */
9
- suspended = "suspended"
9
+ suspended = "suspended",
10
+ /** The subscription is downgraded to free */
11
+ downgradedToFree = "downgraded_to_free"
10
12
  }
@@ -9,7 +9,7 @@ export declare class Pipeline {
9
9
  name: string;
10
10
  isEnabled: boolean;
11
11
  exporterConfigurationProperties?: ExporterConfigurationProperties;
12
- eventType: "OnVersionReleased" | "OnHeadChanged" | "OnSourceUpdated" | "None";
12
+ eventType: "OnVersionReleased" | "OnHeadChanged" | "OnSourceUpdated" | "OnDocumentationPublished" | "None";
13
13
  exporterId: string;
14
14
  destinations: {
15
15
  webhookUrl?: string;
@@ -79,6 +79,10 @@ export declare class GitlabExportDestination {
79
79
  }
80
80
  export type DocsExportDestinationModel = {
81
81
  environment: DocumentationEnvironment;
82
+ changes: DocsExportDestinationChanges | null;
83
+ };
84
+ export type DocsExportDestinationChanges = {
85
+ selectivePublishing: boolean | null;
82
86
  };
83
87
  /**
84
88
  * Type definition for the data model of a documentation export destination.
@@ -87,6 +91,7 @@ export type DocsExportDestinationModel = {
87
91
  */
88
92
  export declare class DocsExportDestination {
89
93
  environment: DocumentationEnvironment;
94
+ changes: DocsExportDestinationChanges | null;
90
95
  constructor(data: DocsExportDestinationModel);
91
96
  }
92
97
  export type ExportDestinationsModel = {
@@ -0,0 +1,9 @@
1
+ export type RemoteFile = {
2
+ fileId?: string;
3
+ id: string;
4
+ name: string;
5
+ checksum: string;
6
+ url: string;
7
+ size: number;
8
+ pendingUpload: boolean;
9
+ };
@@ -40,4 +40,5 @@ export declare class TokenGroup {
40
40
  setSortOrder(order: number): void;
41
41
  toWriteObject(): TokenGroupRemoteModel;
42
42
  toMutatedObject(childrenIds: Array<string>): TokenGroup;
43
+ copyWith<K extends "parentGroupId" | "childrenIds" | "subgroupIds">(key: K, value: this[K]): this;
43
44
  }
@@ -0,0 +1,8 @@
1
+ import { DTOMCPStream } from "@supernova-studio/client";
2
+ export declare class MCPStream {
3
+ id: string;
4
+ projectFeatureId?: string;
5
+ projectDocumentId?: string;
6
+ constructor(data: DTOMCPStream);
7
+ toRemote(): DTOMCPStream;
8
+ }
@@ -1,10 +1,8 @@
1
+ import { DTOUserWorkspaceMembership } from "@supernova-studio/client";
2
+ import { WorkspaceSeatType } from "@supernova-studio/model";
1
3
  import { UserRole } from "../enums/SDKUserRole";
2
- import { Workspace, WorkspaceRemoteModel } from "../workspaces/SDKWorkspace";
3
- export type MembershipRemoteModel = {
4
- workspace: WorkspaceRemoteModel;
5
- role: UserRole;
6
- effectiveRole: UserRole;
7
- };
4
+ import { Workspace } from "../workspaces/SDKWorkspace";
5
+ export type MembershipRemoteModel = DTOUserWorkspaceMembership;
8
6
  export declare class Membership {
9
7
  /** Workspace of this membership. */
10
8
  workspace: Workspace;
@@ -12,5 +10,11 @@ export declare class Membership {
12
10
  role: UserRole;
13
11
  /** Actual role of the user. */
14
12
  effectiveRole: UserRole;
13
+ /** Type of the seat in the workspace. */
14
+ seatType: WorkspaceSeatType;
15
+ /** Actual type of the seat in the workspace. */
16
+ effectiveSeatType: WorkspaceSeatType;
17
+ /** Whether the user is deactivated and can no longer access the workspace. */
18
+ isDeactivated: boolean;
15
19
  constructor(model: MembershipRemoteModel);
16
20
  }
@@ -0,0 +1,14 @@
1
+ import { DTOForgeChatThread } from "@supernova-studio/client";
2
+ import { ChatThreadMessage } from "./SDKChatThreadMessage";
3
+ export declare class ChatThread {
4
+ id: string;
5
+ userId: string;
6
+ workspaceId: string;
7
+ title: string;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ messages?: Array<ChatThreadMessage>;
11
+ constructor(model: DTOForgeChatThread, messages?: Array<ChatThreadMessage>);
12
+ copyWithMessages(messages: Array<ChatThreadMessage>): ChatThread;
13
+ toRemote(): DTOForgeChatThread;
14
+ }
@@ -0,0 +1,48 @@
1
+ import { DTOForgeChatMessage } from "@supernova-studio/client";
2
+ export declare enum ChatMessageUserScoreType {
3
+ Positive = "Positive",
4
+ Negative = "Negative"
5
+ }
6
+ export declare class ChatThreadMessage {
7
+ id: string;
8
+ threadId: string;
9
+ payload: string;
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ sender: {
13
+ type: "User";
14
+ userId: string;
15
+ } | {
16
+ type: "Agent";
17
+ persona: "Amy";
18
+ } | {
19
+ type: "Developer";
20
+ } | {
21
+ type: "FunctionCallInput";
22
+ } | {
23
+ type: "FunctionCallOutput";
24
+ };
25
+ userScore?: {
26
+ type: ChatMessageUserScoreType;
27
+ tags: string[];
28
+ comment?: string;
29
+ };
30
+ constructor(model: DTOForgeChatMessage);
31
+ toRemote(): DTOForgeChatMessage;
32
+ }
33
+ export type ChatThreadMessageInput = {
34
+ payload: string;
35
+ senderType: "User";
36
+ persona?: never;
37
+ userId: string;
38
+ } | {
39
+ payload: string;
40
+ senderType: "Agent";
41
+ persona?: "Amy";
42
+ userId?: never;
43
+ } | {
44
+ payload: string;
45
+ senderType: "Developer" | "FunctionCallInput" | "FunctionCallOutput";
46
+ persona?: never;
47
+ userId?: never;
48
+ };
@@ -0,0 +1,8 @@
1
+ import { DTOForgeAgent } from "@supernova-studio/client";
2
+ export type AgentBehavior = DTOForgeAgent["behavior"];
3
+ export declare class ForgeAgent {
4
+ id: string;
5
+ name: string;
6
+ behavior: AgentBehavior;
7
+ constructor(model: DTOForgeAgent);
8
+ }
@@ -0,0 +1,42 @@
1
+ import { DTOForgeProject, DTOForgeProjectAccessMode, DTOForgeProjectRole, DTOForgeProjectDefaultRole } from "@supernova-studio/client";
2
+ import { ForgeProjectContext } from "./SDKForgeProjectContext";
3
+ import { ForgeProjectDocumentPreview } from "./SDKForgeProjectDocumentPreview";
4
+ import { ForgeProjectFeaturePreview } from "./SDKForgeProjectFeaturePreview";
5
+ export type ForgeProjectRemoteModel = DTOForgeProject & {
6
+ effectiveRole: DTOForgeProjectRole;
7
+ };
8
+ export declare class ForgeProject {
9
+ id: string;
10
+ workspaceId: string;
11
+ projectContextId: string;
12
+ projectContextOverrideId?: string;
13
+ name: string;
14
+ description: string | undefined;
15
+ instruction: string | null;
16
+ tags: string[];
17
+ accessMode: DTOForgeProjectAccessMode;
18
+ defaultRole: DTOForgeProjectDefaultRole;
19
+ effectiveRole: DTOForgeProjectRole;
20
+ isArchived: boolean;
21
+ emoji: string | undefined;
22
+ createdAt: Date;
23
+ createdByUserId: string | undefined;
24
+ updatedAt: Date;
25
+ numberOfFeatures: number;
26
+ numberOfDocuments: number;
27
+ documents: ForgeProjectDocumentPreview[];
28
+ features: ForgeProjectFeaturePreview[];
29
+ liveblocksRoomId: string | undefined;
30
+ /** @deprecated prefer fetching from project contexts endpoint separately */
31
+ context: ForgeProjectContext | undefined;
32
+ /** @deprecated use `projectContextId` */
33
+ fpContextId: string;
34
+ /** @deprecated use `name` and `description` properties on project */
35
+ meta: {
36
+ name: string;
37
+ description?: string;
38
+ };
39
+ tokenThemeSetId?: string;
40
+ constructor(model: ForgeProjectRemoteModel);
41
+ toRemote(): ForgeProjectRemoteModel;
42
+ }
@@ -0,0 +1,31 @@
1
+ import type { DTOForgeProjectContextCreateV2, DTOForgeProjectContextUpdateV2, DTOForgeProjectContextV2, DTOForgeProjectTheme } from "@supernova-studio/client";
2
+ export type ForgeProjectContextCreateInput = DTOForgeProjectContextCreateV2;
3
+ export type ForgeProjectContextUpdateInput = DTOForgeProjectContextUpdateV2;
4
+ export type ForgeProjectContextRemoteModel = DTOForgeProjectContextV2;
5
+ export type ForgeProjectTheme = DTOForgeProjectTheme;
6
+ export type TokenThemeSet = {
7
+ id: string;
8
+ name: string;
9
+ tokenThemeIds: string[];
10
+ };
11
+ export declare class ForgeProjectContext {
12
+ id: string;
13
+ workspaceId: string;
14
+ designSystemId: string | undefined;
15
+ name: string;
16
+ description: string | undefined;
17
+ productContext: string | undefined;
18
+ componentSet: ForgeProjectContextRemoteModel["componentSet"];
19
+ iconSet: ForgeProjectContextRemoteModel["iconSet"];
20
+ additionalContext: string | undefined;
21
+ theme: ForgeProjectContextRemoteModel["theme"];
22
+ createdAt: Date;
23
+ updatedAt: Date;
24
+ isArchived: boolean;
25
+ themePreset: string | undefined;
26
+ defaultTokenThemeSetId: string | undefined;
27
+ tokenThemeSets: TokenThemeSet[];
28
+ brandId?: string;
29
+ constructor(model: ForgeProjectContextRemoteModel);
30
+ toRemote(): ForgeProjectContextRemoteModel;
31
+ }
@@ -0,0 +1,20 @@
1
+ import type { ForgeProjectTheme } from "./SDKForgeProjectContext";
2
+ export type ForgeProjectContextOverrideRemoteModel = {
3
+ projectContextId: string;
4
+ theme: Partial<ForgeProjectTheme>;
5
+ };
6
+ export type ForgeProjectContextOverrideUpdateInput = {
7
+ theme: Partial<ForgeProjectTheme>;
8
+ };
9
+ export declare class ForgeProjectContextOverride {
10
+ projectContextId: string;
11
+ theme: Partial<ForgeProjectTheme>;
12
+ constructor(data: {
13
+ projectContextId: string;
14
+ theme: Partial<ForgeProjectTheme>;
15
+ });
16
+ toRemote(): {
17
+ projectContextId: string;
18
+ theme: Partial<ForgeProjectTheme>;
19
+ };
20
+ }
@@ -0,0 +1,19 @@
1
+ import { DTOForgeProjectArtifact } from "@supernova-studio/client";
2
+ export declare class ForgeProjectDocument {
3
+ id: string;
4
+ title: string;
5
+ iterationId: string | null;
6
+ previewUrl: string | null;
7
+ projectId: string;
8
+ createdAt: Date;
9
+ createdByUserId: string;
10
+ updatedAt: Date;
11
+ sectionId: string | null;
12
+ sortOrder: number;
13
+ roomId: string;
14
+ threadId: string | undefined;
15
+ thumbnailUrl: string | undefined;
16
+ isArchived: boolean;
17
+ constructor(model: DTOForgeProjectArtifact);
18
+ toRemote(): DTOForgeProjectArtifact;
19
+ }
@@ -0,0 +1,13 @@
1
+ import { DTOForgeProjectDocumentPreview } from "@supernova-studio/client";
2
+ export declare class ForgeProjectDocumentPreview {
3
+ id: string;
4
+ title: string;
5
+ thumbnail: {
6
+ id: string;
7
+ url: string;
8
+ } | undefined;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ constructor(model: DTOForgeProjectDocumentPreview);
12
+ toRemote(): DTOForgeProjectDocumentPreview;
13
+ }
@@ -0,0 +1,25 @@
1
+ import { DTOForgeProjectFeature } from "@supernova-studio/client";
2
+ export declare enum ForgeProjectFeatureStatus {
3
+ DRAFT = "Draft",
4
+ READY_FOR_DEVELOPMENT = "ReadyForDevelopment"
5
+ }
6
+ export declare class ForgeProjectFeature {
7
+ id: string;
8
+ name: string;
9
+ description: string;
10
+ isArchived: boolean;
11
+ projectId: string;
12
+ createdAt: Date;
13
+ createdByUserId: string;
14
+ updatedAt: Date | undefined;
15
+ sectionId: string | null;
16
+ sortOrder: number;
17
+ status: ForgeProjectFeatureStatus;
18
+ numberOfIterations: number;
19
+ numberOfBookmarkedIterations: number;
20
+ lastReplyTimestamp: Date | undefined;
21
+ thumbnailUrl: string | undefined;
22
+ threadId: string | undefined;
23
+ constructor(model: DTOForgeProjectFeature);
24
+ toRemote(): DTOForgeProjectFeature;
25
+ }
@@ -0,0 +1,13 @@
1
+ import { DTOFeatureArtifact } from "@supernova-studio/client";
2
+ export declare class ForgeProjectFeatureArtifact {
3
+ id: string;
4
+ key: string;
5
+ fileId?: string;
6
+ filePath?: string;
7
+ iterationId?: string;
8
+ url: string;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ constructor(model: DTOFeatureArtifact);
12
+ toRemote(): DTOFeatureArtifact;
13
+ }
@@ -0,0 +1,7 @@
1
+ import { DTOFeatureArtifactListResponse } from "@supernova-studio/client";
2
+ import { ForgeProjectFeatureArtifact } from "./SDKForgeProjectFeatureArtifact";
3
+ export declare class ForgeProjectFeatureArtifactList {
4
+ artifacts: ForgeProjectFeatureArtifact[];
5
+ constructor(model: DTOFeatureArtifactListResponse);
6
+ toRemote(): DTOFeatureArtifactListResponse;
7
+ }
@@ -0,0 +1,13 @@
1
+ import { DTOFeatureIteration } from "@supernova-studio/client";
2
+ export declare class ForgeProjectFeatureIteration {
3
+ id: string;
4
+ name: string;
5
+ startedFromMessageId: string;
6
+ isInProgress: boolean;
7
+ baseIterationId?: string;
8
+ staticPreviewUrl?: string;
9
+ createdAt: Date;
10
+ updatedAt?: Date;
11
+ constructor(model: DTOFeatureIteration);
12
+ toRemote(): DTOFeatureIteration;
13
+ }
@@ -0,0 +1,26 @@
1
+ import { DTOFeatureMessage } from "@supernova-studio/client";
2
+ export declare class ForgeProjectFeatureMessage {
3
+ id: string;
4
+ sender: {
5
+ type: "User";
6
+ userId: string;
7
+ } | {
8
+ type: "Agent";
9
+ } | {
10
+ type: "System";
11
+ onBehalfOfUserId: string;
12
+ };
13
+ body: string;
14
+ isPrompt: boolean;
15
+ startsNewThread: boolean;
16
+ parentMessageId?: string;
17
+ replyToMessageId?: string;
18
+ attachments?: {
19
+ iterationId?: string;
20
+ };
21
+ createdAt: Date;
22
+ updatedAt: Date | undefined;
23
+ agentResponseTrackerId?: string | null;
24
+ constructor(model: DTOFeatureMessage);
25
+ toRemote(): DTOFeatureMessage;
26
+ }
@@ -0,0 +1,10 @@
1
+ import { DTOFeatureMessageListResponse } from "@supernova-studio/client";
2
+ import { ForgeProjectFeatureMessage } from "./SDKForgeProjectFeatureMessage";
3
+ import { ForgeProjectFeatureMessageReaction } from "./SDKForgeProjectFeatureMessageReaction";
4
+ export declare class ForgeProjectFeatureMessageList {
5
+ messages: ForgeProjectFeatureMessage[];
6
+ reactions: ForgeProjectFeatureMessageReaction[];
7
+ lastSeenMessageId?: string;
8
+ constructor(model: DTOFeatureMessageListResponse);
9
+ toRemote(): DTOFeatureMessageListResponse;
10
+ }
@@ -0,0 +1,9 @@
1
+ import { DTOFeatureMessageReaction } from "@supernova-studio/client";
2
+ export declare class ForgeProjectFeatureMessageReaction {
3
+ messageId: string;
4
+ userId: string;
5
+ emoji: string;
6
+ createdAt: Date;
7
+ constructor(model: DTOFeatureMessageReaction);
8
+ toRemote(): DTOFeatureMessageReaction;
9
+ }
@@ -0,0 +1,13 @@
1
+ import { DTOForgeProjectFeaturePreview } from "@supernova-studio/client";
2
+ export declare class ForgeProjectFeaturePreview {
3
+ id: string;
4
+ name: string;
5
+ thumbnail: {
6
+ id: string;
7
+ url: string;
8
+ } | undefined;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ constructor(model: DTOForgeProjectFeaturePreview);
12
+ toRemote(): DTOForgeProjectFeaturePreview;
13
+ }
@@ -0,0 +1,12 @@
1
+ import { DTOForgeProjectInvitation } from "@supernova-studio/client";
2
+ export declare class ForgeProjectInvitation {
3
+ email: string;
4
+ createdAt: Date;
5
+ updatedAt: Date;
6
+ role: "Admin" | "Viewer" | "Builder";
7
+ workspaceInvitationId: string;
8
+ forgeProjectId: string;
9
+ createdById: string;
10
+ constructor(model: DTOForgeProjectInvitation);
11
+ toRemote(): DTOForgeProjectInvitation;
12
+ }
@@ -0,0 +1,14 @@
1
+ import { DTOForgeProjectMember, DTOForgeProjectMemberRole } from "@supernova-studio/client";
2
+ export type ForgeProjectMembershipRole = DTOForgeProjectMemberRole;
3
+ export declare class ForgeProjectMembership {
4
+ user: DTOForgeProjectMember["user"];
5
+ role: ForgeProjectMembershipRole;
6
+ userId: string;
7
+ effectiveRole: ForgeProjectMembershipRole;
8
+ forgeProjectId: string;
9
+ workspaceMembershipId: string;
10
+ workspaceRole: DTOForgeProjectMember["workspaceRole"];
11
+ isDeactivated: boolean;
12
+ constructor(model: DTOForgeProjectMember);
13
+ toRemote(): DTOForgeProjectMember;
14
+ }
@@ -0,0 +1,13 @@
1
+ import { DTOForgeRelation, DTOForgeRelationType } from "@supernova-studio/client";
2
+ export type ForgeProjectRelationItemType = DTOForgeRelationType;
3
+ export declare class ForgeProjectRelation {
4
+ id: string;
5
+ sourceItemId: string;
6
+ sourceItemType: ForgeProjectRelationItemType;
7
+ targetItemId: string;
8
+ targetItemType: ForgeProjectRelationItemType;
9
+ createdAt: Date;
10
+ projectId: string;
11
+ constructor(model: DTOForgeRelation);
12
+ toRemote(): DTOForgeRelation;
13
+ }
@@ -0,0 +1,6 @@
1
+ import { DTOForgeSection } from "@supernova-studio/client";
2
+ import { ForgeProjectSection } from "./SDKForgeProjectSection";
3
+ export declare class ForgeProjectDocumentSection extends ForgeProjectSection {
4
+ childType: "Artifact";
5
+ constructor(model: DTOForgeSection);
6
+ }
@@ -0,0 +1,6 @@
1
+ import { DTOForgeSection } from "@supernova-studio/client";
2
+ import { ForgeProjectSection } from "./SDKForgeProjectSection";
3
+ export declare class ForgeProjectFeatureSection extends ForgeProjectSection {
4
+ childType: "Feature";
5
+ constructor(model: DTOForgeSection);
6
+ }
@@ -0,0 +1,12 @@
1
+ import { DTOForgeSection } from "@supernova-studio/client";
2
+ export declare abstract class ForgeProjectSection {
3
+ id: string;
4
+ name: string;
5
+ createdAt: Date;
6
+ updatedAt: Date;
7
+ abstract childType: "Artifact" | "Feature";
8
+ sortOrder: number;
9
+ projectId: string;
10
+ constructor(model: DTOForgeSection);
11
+ toRemote(): DTOForgeSection;
12
+ }
@@ -0,0 +1,17 @@
1
+ export type RemoteStorybookUpdate = {
2
+ isFailed: boolean;
3
+ docsCount: number;
4
+ storiesCount: number;
5
+ created: string[];
6
+ updated: string[];
7
+ deleted: string[];
8
+ };
9
+ export declare class StorybookUpdate {
10
+ isFailed: boolean;
11
+ docsCount: number;
12
+ storiesCount: number;
13
+ created: string[];
14
+ updated: string[];
15
+ deleted: string[];
16
+ constructor(update: RemoteStorybookUpdate);
17
+ }
@@ -1,6 +1,7 @@
1
1
  import { DTPluginPreciseCopyStrategy, DTPluginThemeOverrideStrategy } from "../../tools/design-tokens/utilities/SDKDTMapLoader";
2
2
  import { ImportWarningType } from "../enums/SDKCloudWarningType";
3
3
  import { SourceType } from "../enums/SDKSourceType";
4
+ import { StorybookUpdate } from "../storybook/SDKStorybookUpdate";
4
5
  declare enum SourceRemoteType {
5
6
  figma = "Figma",
6
7
  tokenStudio = "TokenStudio",
@@ -127,6 +128,11 @@ export type SourceRemoteModelStorybook = {
127
128
  lastImportedSuccessfully?: string;
128
129
  description?: string;
129
130
  isUsingVpn?: boolean;
131
+ lastImportedResult?: {
132
+ created: number;
133
+ updated: number;
134
+ deleted: number;
135
+ };
130
136
  };
131
137
  export type SourceModelTokenStudio = Omit<SourceRemoteModelTokensStudio, "lastUpdatesCheckedAt" | "lastImportedAt"> & {
132
138
  lastUpdatesCheckedAt?: Date;
@@ -142,7 +148,7 @@ export type SourceModelFigmaVariablesPlugin = Omit<SourceRemoteModelFigmaVariabl
142
148
  export type SourceModelStorybook = Omit<SourceRemoteModelStorybook, "lastImportedAt" | "lastImportedSuccessfully"> & {
143
149
  lastImportedAt?: Date;
144
150
  lastImportedSuccessfully?: Date;
145
- displayName?: string;
151
+ isCLI: boolean;
146
152
  };
147
153
  export type SourceTransportModel = Pick<Source, "type" | "id" | "fileName" | "brandId" | "themeId" | "scope"> & {
148
154
  cloud?: SourceRemoteModelCloud | null;
@@ -164,6 +170,7 @@ export declare class Source {
164
170
  get isCloudAvailable(): boolean;
165
171
  get isTokensStudioAvailable(): boolean;
166
172
  get tokensStudioHasError(): boolean;
173
+ updateStorybookImportResult(update: StorybookUpdate): void;
167
174
  constructor(model: SourceRemoteModel);
168
175
  /** Constructs representation that can be used to write full object to remote */
169
176
  toRemote(): SourceRemoteModel;
@@ -47,7 +47,7 @@ export declare class TokenTheme {
47
47
  value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
48
48
  } | {
49
49
  aliasTo: string | undefined;
50
- value: string;
50
+ value: import("../tokens/remote/SDKRemoteTokenValue").StringTokenRemoteValue;
51
51
  } | {
52
52
  aliasTo: string | undefined;
53
53
  value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;