@supernova-studio/supernova-sdk-beta 2.4.6 → 2.4.9

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 (82) hide show
  1. package/build/supernova-sdk-typescript.js +1 -1
  2. package/build/supernova-sdk-typescript.js.map +1 -1
  3. package/build/types/core/SDKSupernova.d.ts +9 -0
  4. package/build/types/core/areas/SDKAreaActivityEvents.d.ts +7 -0
  5. package/build/types/core/areas/SDKAreaAgentChats.d.ts +12 -0
  6. package/build/types/core/areas/SDKAreaBulkOperations.d.ts +7 -5
  7. package/build/types/core/areas/SDKAreaDataSources.d.ts +1 -1
  8. package/build/types/core/areas/SDKAreaDocumentation.d.ts +28 -13
  9. package/build/types/core/areas/SDKAreaImport.d.ts +35 -0
  10. package/build/types/core/areas/SDKAreaMCP.d.ts +19 -1
  11. package/build/types/core/areas/SDKAreaProjects.d.ts +137 -153
  12. package/build/types/core/areas/SDKAreaRawData.d.ts +132 -131
  13. package/build/types/core/areas/SDKAreaTokens.d.ts +17 -12
  14. package/build/types/core/data/SDKDataCore.d.ts +208 -186
  15. package/build/types/core/data/SDKDataCoreCached.d.ts +2 -2
  16. package/build/types/core/data/requests/SDKDataCoreReadRequests.d.ts +94 -67
  17. package/build/types/core/data/requests/SDKDataCoreWriteRequests.d.ts +217 -190
  18. package/build/types/core/resolvers/SDKDocsEntityItemResolver.d.ts +2 -2
  19. package/build/types/core/resolvers/SDKSnapshotTokenBuilder.d.ts +28 -0
  20. package/build/types/core/resolvers/SDKTokenResolver.d.ts +11 -9
  21. package/build/types/exports.d.ts +18 -11
  22. package/build/types/model/activity-events/SDKActivityEvent.d.ts +46 -0
  23. package/build/types/model/agent-chats/SDKAgentChat.d.ts +28 -0
  24. package/build/types/model/datasets/SDKDataset.d.ts +15 -5
  25. package/build/types/model/docs/blocks/definition/SDKDocsBlockBehavior.d.ts +4 -1
  26. package/build/types/model/docs/blocks/definition/actual/context-mcp/SDKDocsBlockActualContextMcp.d.ts +2 -0
  27. package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +7 -24
  28. package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty.d.ts +3 -2
  29. package/build/types/model/docs/blocks/properties/SDKDocsBlockBooleanProperty.d.ts +3 -2
  30. package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +3 -6
  31. package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +3 -8
  32. package/build/types/model/docs/blocks/properties/SDKDocsBlockColorProperty.d.ts +3 -3
  33. package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +7 -10
  34. package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty.d.ts +3 -2
  35. package/build/types/model/docs/blocks/properties/SDKDocsBlockContextProperty.d.ts +16 -0
  36. package/build/types/model/docs/blocks/properties/SDKDocsBlockDividerProperty.d.ts +3 -2
  37. package/build/types/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +3 -6
  38. package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty.d.ts +7 -26
  39. package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty.d.ts +7 -22
  40. package/build/types/model/docs/blocks/properties/SDKDocsBlockFileProperty.d.ts +4 -9
  41. package/build/types/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +3 -10
  42. package/build/types/model/docs/blocks/properties/SDKDocsBlockMarkdownProperty.d.ts +3 -2
  43. package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiRichTextProperty.d.ts +3 -3
  44. package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiSelectProperty.d.ts +3 -2
  45. package/build/types/model/docs/blocks/properties/SDKDocsBlockNumberProperty.d.ts +3 -2
  46. package/build/types/model/docs/blocks/properties/SDKDocsBlockProperty.d.ts +3 -3
  47. package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextEditorProperty.d.ts +3 -3
  48. package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +3 -7
  49. package/build/types/model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty.d.ts +3 -2
  50. package/build/types/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +4 -22
  51. package/build/types/model/docs/blocks/properties/SDKDocsBlockTableProperty.d.ts +12 -28
  52. package/build/types/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +3 -2
  53. package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +7 -31
  54. package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty.d.ts +3 -2
  55. package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty.d.ts +3 -3
  56. package/build/types/model/docs/blocks/properties/SDKDocsBlockUrlProperty.d.ts +3 -2
  57. package/build/types/model/docs/sections/SDKDocsSection.d.ts +0 -31
  58. package/build/types/model/documentation/SDKPageHistoryVersion.d.ts +20 -0
  59. package/build/types/model/documentation/blocks/SDKDocumentationLegacyPageBlockContextMcp.d.ts +11 -0
  60. package/build/types/model/elements/SDKElementPropertyOption.d.ts +1 -2
  61. package/build/types/model/enums/SDKCodeLanguage.d.ts +1 -1
  62. package/build/types/model/enums/SDKDesignSystemRole.d.ts +1 -2
  63. package/build/types/model/enums/SDKDocsBlockBehaviorSelectionType.d.ts +4 -2
  64. package/build/types/model/enums/SDKDocsBlockContainerSize.d.ts +6 -4
  65. package/build/types/model/enums/SDKDocsBlockItemPropertyType.d.ts +3 -1
  66. package/build/types/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +1 -0
  67. package/build/types/model/enums/SDKTokenType.d.ts +2 -0
  68. package/build/types/model/enums/SDKWorkspaceSeatType.d.ts +14 -3
  69. package/build/types/model/exporters/SDKExporter.d.ts +2 -2
  70. package/build/types/model/membership/SDKMembership.d.ts +1 -1
  71. package/build/types/model/support/SDKSource.d.ts +4 -3
  72. package/build/types/model/themes/SDKTokenThemeOverride.d.ts +1 -0
  73. package/build/types/model/tokens/remote/SDKRemoteTokenModel.d.ts +34 -1
  74. package/build/types/model/tokens/remote/SDKRemoteTokenValue.d.ts +1 -1
  75. package/build/types/model/workspaces/SDKWorkspaceProductPrice.d.ts +6 -3
  76. package/build/types/model/workspaces/SDKWorkspaceSubscription.d.ts +2 -6
  77. package/build/types/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +6 -3
  78. package/build/types/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +9 -0
  79. package/build/types/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +1 -1
  80. package/build/types/utils/TokenUtils.d.ts +1 -1
  81. package/package.json +17 -21
  82. package/build/types/model/enums/SDKDocsBlockTokenNameFormat.d.ts +0 -10
@@ -1,6 +1,8 @@
1
- import { DTOAddMembersToForgeProject, DTOBillingCheckoutInput, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODataSourceStorybookCreatePayload, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTODocumentationPageAnchor, type DTODocumentationPageContent, DTODocumentationPageApprovalStateChangeInput, DTODocumentationPageDependenciesGetResponse, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFeatureAgentWorkFinalizeInput, DTOFeatureArtifactCreateInput, DTOFeatureArtifactDeleteInput, DTOFeatureIterationCreateInput, DTOFeatureIterationPromoteInput, DTOFeatureIterationSetLatestInput, DTOFeatureIterationUpdateArtifactsByMessageInput, DTOFeatureIterationUpdateArtifactsInput, DTOFeatureIterationUpdateInput, DTOFeatureMessageCreateInput, DTOFeatureMessageReactionCreateInput, DTOFeatureMessageReactionDeleteInput, DTOFeatureUpdateThemeInput, DTOFigmaNode, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOFileFinalizeBulkPayload, DTOFileUploadBulkPayload, DTOFileUploadPayload, DTOForgeChatMessageScoreInput, DTOForgeChatMessageTagInput, DTOForgeFigmaNodeCreateRequest, DTOForgeProjectAction, DTOForgeProjectArtifactCreateInput, DTOForgeProjectArtifactDeleteInput, DTOForgeProjectArtifactMoveInput, DTOForgeProjectArtifactUpdateInput, DTOForgeProjectCreate, DTOForgeProjectFeatureCreateInput, DTOForgeProjectFeatureDeleteInput, DTOForgeProjectFeatureMoveInput, DTOForgeProjectFeatureUpdateInput, DTOForgeProjectFileUploadPayload, DTOForgeProjectContextFeedbackDeletePayload, DTOForgeProjectContextFeedbackUpdatePayload, DTOForgeProjectUpdate, DTOForgeSectionCreateInput, DTOForgeSectionDeleteInput, DTOForgeSectionMoveInput, DTOForgeSectionUpdateInput, DTOMCPStreamUpdateInput, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOLoginScreenSettingsUpdate, DTOPortalSettingsUpdatePayload, DTOPublishDocumentationRequest, DTORemoveForgeProjectInvitation, DTORemoveForgeProjectMember, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOStorybookEntryReplaceAction, DTOStorybookImportPayload, DTOThreadMessageCreateInput, DTOThreadMessageFinalizeInput, DTOThreadMessageRetryInput, DTOThreadReactionCreateInput, DTOThreadReactionDeleteInput, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUpdateForgeProjectInvitation, DTOUpdateForgeProjectMember, DTOCodeHistoryQuery, DTOUserUpdatePayload, DTOWorkspaceUntypedDataListResponse, DTOWorkspaceUntypedDataResponse, type DTOSandboxTemplateListResponse, DTOProjectContextOverrideInput } from "@supernova-studio/client";
1
+ import { DTOAddMembersToForgeProject, DTOBillingCheckoutInput, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODataSourceStorybookCreatePayload, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTODocumentationMarkdownValidateResponse, DTODocumentationMarkdownWriteResponse, DTODocumentationPageAnchor, type DTODocumentationPageContent, DTODocumentationPageApprovalStateChangeInput, DTODocumentationPageDependenciesGetResponse, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFeatureAgentWorkFinalizeInput, DTOFeatureArtifactCreateInput, DTOFeatureArtifactDeleteInput, DTOFeatureIterationCreateInput, DTOFeatureIterationPromoteInput, DTOFeatureIterationSetLatestInput, DTOFeatureIterationUpdateArtifactsByMessageInput, DTOFeatureIterationUpdateArtifactsInput, DTOFeatureIterationUpdateInput, DTOFeatureMessageCreateInput, DTOFeatureMessageReactionCreateInput, DTOFeatureMessageReactionDeleteInput, DTOFeatureUpdateThemeInput, DTOFigmaNode, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOFileFinalizeBulkPayload, DTOFileUploadBulkPayload, DTOFileUploadPayload, DTOForgeChatMessageScoreInput, DTOForgeChatMessageTagInput, DTOForgeFigmaNodeCreateRequest, DTOForgeProjectAction, DTOForgeProjectArtifactCreateInput, DTOForgeProjectArtifactDeleteInput, DTOForgeProjectArtifactMoveInput, DTOForgeProjectArtifactUpdateInput, DTOForgeProjectCreate, DTOForgeProjectFeatureCreateInput, DTOForgeProjectFeatureDeleteInput, DTOForgeProjectFeatureMoveInput, DTOForgeProjectFeatureUpdateInput, DTOForgeProjectFileUploadPayload, DTOForgeProjectContextFeedbackDeletePayload, DTOForgeProjectContextFeedbackUpdatePayload, DTOForgeProjectUpdate, DTOForgeSectionCreateInput, DTOForgeSectionDeleteInput, DTOForgeSectionMoveInput, DTOForgeSectionUpdateInput, DTOMCPConsumer, DTOMCPStreamUpdateInput, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageHistoryVersionCreatePayload, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOLoginScreenSettingsUpdate, DTOPortalSettingsUpdatePayload, DTOPublishDocumentationRequest, DTORemoveForgeProjectInvitation, DTORemoveForgeProjectMember, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOStorybookEntryReplaceAction, DTOStorybookImportPayload, DTOThreadMessageCreateInput, DTOThreadMessageFinalizeInput, DTOThreadMessageRetryInput, DTOThreadReactionCreateInput, DTOThreadReactionDeleteInput, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUpdateForgeProjectInvitation, DTOUpdateForgeProjectMember, DTOCodeHistoryQuery, DTOUserUpdatePayload, DTOWorkspaceUntypedDataListResponse, DTOWorkspaceUntypedDataResponse, type DTOSandboxTemplateListResponse, DTOProjectContextOverrideInput, type DTODocumentationMarkdownFetchErrorCode, type DTODocumentationMarkdownFromUrlMode } from "@supernova-studio/client";
2
2
  import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation, WorkspaceSeatType } from "@supernova-studio/model";
3
- import { DesignSystemAccessMode, DocsBlockDefinition, DocumentationLegacyGroup, DocumentationLegacyPage, ExportBuildStatus, ExporterJobDestination, ForgeProjectFeatureIteration, ForgeProjectInvitation, ForgeProjectIterationTag, PublishedFeature, ResourceFont, TokenThemeOverrideTranserObject, UserRole, WorkspaceSubscriptionUpdatePreviewModel } from "../../exports";
3
+ import { DesignSystemAccessMode, DocsBlockDefinition, DocumentationLegacyGroup, DocumentationLegacyPage, PageHistoryVersion, PageHistoryVersionContent, ExportBuildStatus, ExporterJobDestination, ForgeProjectFeatureIteration, ForgeProjectInvitation, ForgeProjectIterationTag, PublishedFeature, ResourceFont, UserRole, WorkspaceSubscriptionUpdatePreviewModel } from "../../exports";
4
+ import { ActivityEventListFilter, ActivityEventListResult } from "../../model/activity-events/SDKActivityEvent";
5
+ import { AgentChat, type AgentChatCreateInput, type AgentChatListFilter, type AgentChatUpdateInput } from "../../model/agent-chats/SDKAgentChat";
4
6
  import { Asset } from "../../model/assets/SDKAsset";
5
7
  import { RenderedAsset } from "../../model/assets/SDKRenderedAsset";
6
8
  import { BootstrapData } from "../../model/base/SDKBootstrapData";
@@ -74,6 +76,8 @@ import { ThreadMessage } from "../../model/threads/SDKThreadMessage";
74
76
  import { ThreadMessageList } from "../../model/threads/SDKThreadMessageList";
75
77
  import { ThreadMessageReaction } from "../../model/threads/SDKThreadMessageReaction";
76
78
  import { Token } from "../../model/tokens/SDKToken";
79
+ import { AnyToken } from "../../model/tokens/SDKTokenValue";
80
+ import { TokenBatchCreatePayload } from "../../model/tokens/remote/SDKRemoteTokenModel";
77
81
  import { TrailEvent } from "../../model/trail-events/SDKTrailEvent";
78
82
  import { User } from "../../model/users/SDKUser";
79
83
  import { UserMembership } from "../../model/users/SDKUserMembership";
@@ -107,6 +111,7 @@ import { ComponentUpdateTransactionData, TokenUpdateTransactionData } from "../a
107
111
  import { AIAgentPersona, AIGetRouteQueryTask, RelaySummarizeStrategy } from "../areas/SDKAreaRelay";
108
112
  import { DataCoreReadRequests } from "./requests/SDKDataCoreReadRequests";
109
113
  import { RenderedAssetRequestSettings } from "./requests/SDKDataCoreRenderRequests";
114
+ import { ActivityEventOptions } from "./requests/SDKDataCoreWriteRequests";
110
115
  import { DataBridge } from "./SDKDataBridge";
111
116
  export declare class DataCore {
112
117
  /** Read part of the network calls */
@@ -184,15 +189,16 @@ export declare class DataCore {
184
189
  tokens(designSystemId: string, versionId: string, filter?: {
185
190
  type?: TokenType;
186
191
  brandId?: string;
187
- }): Promise<Array<Token>>;
192
+ }): Promise<Array<AnyToken>>;
188
193
  /** Download all necesssary data for token usage and retrieve them resolved */
189
194
  getTokenUsage(designSystemId: string, versionId: string, idInVersion: string): Promise<{
190
195
  tokens: Array<string>;
191
196
  components: Array<string>;
192
197
  documentationPages: Array<string>;
193
198
  }>;
194
- /** Write new token to remote */
195
- createToken(designSystemId: string, versionId: string, token: Token, parentId: string): Promise<{
199
+ /** Write new token to remote, together with any theme overrides and property values it carries.
200
+ * Both server ids are read back onto the passed token. */
201
+ createToken(designSystemId: string, versionId: string, token: Token, parentId: string, relations?: Pick<TokenBatchCreatePayload, "themeOverridesToUpsert" | "propertyValuesToUpsert">): Promise<{
196
202
  id: string;
197
203
  idInVersion: string;
198
204
  }>;
@@ -221,14 +227,9 @@ export declare class DataCore {
221
227
  }): Promise<Array<TokenTheme>>;
222
228
  /** Update existing token theme in remote */
223
229
  updateTokenTheme(designSystemId: string, versionId: string, theme: TokenTheme): Promise<void>;
224
- createThemeOverrideForToken(designSystemId: string, versionId: string, themeId: string, override: TokenThemeOverrideTranserObject): Promise<void>;
225
- /** Update theme override for token */
226
- updateThemeOverrideForToken(designSystemId: string, versionId: string, tokenPersistentId: string, themeId: string, override: TokenThemeOverrideTranserObject): Promise<void>;
227
- /** Delete theme override for token */
228
- deleteThemeOverrideForToken(designSystemId: string, versionId: string, tokenId: string, themeId: string): Promise<void>;
229
230
  /** Write the tokens to remote */
230
- writeTokenData(designSystemId: string, versionId: string, tokens: Array<Token>, groups: Array<TokenGroup>, deleteTokens: Array<Token>, deleteGroups: Array<TokenGroup>): Promise<void>;
231
- writeTokenThemeData(designSystemId: string, versionId: string, theme: TokenTheme): Promise<void>;
231
+ writeTokenData(designSystemId: string, versionId: string, tokens: Array<Token>, groups: Array<TokenGroup>, deleteTokens: Array<Token>, deleteGroups: Array<TokenGroup>, activityEventOptions?: ActivityEventOptions): Promise<void>;
232
+ writeTokenThemeData(designSystemId: string, versionId: string, theme: TokenTheme, activityEventOptions?: ActivityEventOptions): Promise<void>;
232
233
  /** Delete token from remote */
233
234
  deleteToken(designSystemId: string, versionId: string, tokenId: string): Promise<void>;
234
235
  /** Delete group from remote */
@@ -327,13 +328,13 @@ export declare class DataCore {
327
328
  };
328
329
  persistentId?: string;
329
330
  data?: {
330
- sceneNodeId?: string;
331
331
  format?: "Png" | "Svg";
332
332
  scale?: number;
333
+ sceneNodeId?: string;
333
334
  renderState?: "Success" | "InProgress" | "Failed";
334
335
  renderedImage?: {
335
- url?: string;
336
336
  width?: number;
337
+ url?: string;
337
338
  height?: number;
338
339
  resourceId?: string;
339
340
  format?: "Png" | "Svg";
@@ -341,7 +342,7 @@ export declare class DataCore {
341
342
  originKey?: string;
342
343
  };
343
344
  renderError?: {
344
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
345
+ type?: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
345
346
  };
346
347
  hasSource?: boolean;
347
348
  };
@@ -372,6 +373,10 @@ export declare class DataCore {
372
373
  success?: true;
373
374
  };
374
375
  }>;
376
+ /** Validate markdown for documentation import (no write) */
377
+ validateDocumentationMarkdown(designSystemId: string, versionId: string, markdown: string): Promise<DTODocumentationMarkdownValidateResponse>;
378
+ /** Convert markdown and replace a documentation page's document content */
379
+ writeDocumentationMarkdownToPage(designSystemId: string, versionId: string, pageId: string, markdown: string): Promise<DTODocumentationMarkdownWriteResponse>;
375
380
  /** Bulk update properties */
376
381
  updateElementProperties(designSystemId: string, versionId: string, data: DTOElementPropertyValuesEditActionInput): Promise<{
377
382
  type?: "DocumentationPageCreate";
@@ -451,13 +456,13 @@ export declare class DataCore {
451
456
  };
452
457
  persistentId?: string;
453
458
  data?: {
454
- sceneNodeId?: string;
455
459
  format?: "Png" | "Svg";
456
460
  scale?: number;
461
+ sceneNodeId?: string;
457
462
  renderState?: "Success" | "InProgress" | "Failed";
458
463
  renderedImage?: {
459
- url?: string;
460
464
  width?: number;
465
+ url?: string;
461
466
  height?: number;
462
467
  resourceId?: string;
463
468
  format?: "Png" | "Svg";
@@ -465,7 +470,7 @@ export declare class DataCore {
465
470
  originKey?: string;
466
471
  };
467
472
  renderError?: {
468
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
473
+ type?: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
469
474
  };
470
475
  hasSource?: boolean;
471
476
  };
@@ -593,13 +598,13 @@ export declare class DataCore {
593
598
  };
594
599
  persistentId?: string;
595
600
  data?: {
596
- sceneNodeId?: string;
597
601
  format?: "Png" | "Svg";
598
602
  scale?: number;
603
+ sceneNodeId?: string;
599
604
  renderState?: "Success" | "InProgress" | "Failed";
600
605
  renderedImage?: {
601
- url?: string;
602
606
  width?: number;
607
+ url?: string;
603
608
  height?: number;
604
609
  resourceId?: string;
605
610
  format?: "Png" | "Svg";
@@ -607,7 +612,7 @@ export declare class DataCore {
607
612
  originKey?: string;
608
613
  };
609
614
  renderError?: {
610
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
615
+ type?: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
611
616
  };
612
617
  hasSource?: boolean;
613
618
  };
@@ -717,13 +722,13 @@ export declare class DataCore {
717
722
  };
718
723
  persistentId?: string;
719
724
  data?: {
720
- sceneNodeId?: string;
721
725
  format?: "Png" | "Svg";
722
726
  scale?: number;
727
+ sceneNodeId?: string;
723
728
  renderState?: "Success" | "InProgress" | "Failed";
724
729
  renderedImage?: {
725
- url?: string;
726
730
  width?: number;
731
+ url?: string;
727
732
  height?: number;
728
733
  resourceId?: string;
729
734
  format?: "Png" | "Svg";
@@ -731,7 +736,7 @@ export declare class DataCore {
731
736
  originKey?: string;
732
737
  };
733
738
  renderError?: {
734
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
739
+ type?: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
735
740
  };
736
741
  hasSource?: boolean;
737
742
  };
@@ -841,13 +846,13 @@ export declare class DataCore {
841
846
  };
842
847
  persistentId?: string;
843
848
  data?: {
844
- sceneNodeId?: string;
845
849
  format?: "Png" | "Svg";
846
850
  scale?: number;
851
+ sceneNodeId?: string;
847
852
  renderState?: "Success" | "InProgress" | "Failed";
848
853
  renderedImage?: {
849
- url?: string;
850
854
  width?: number;
855
+ url?: string;
851
856
  height?: number;
852
857
  resourceId?: string;
853
858
  format?: "Png" | "Svg";
@@ -855,7 +860,7 @@ export declare class DataCore {
855
860
  originKey?: string;
856
861
  };
857
862
  renderError?: {
858
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
863
+ type?: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
859
864
  };
860
865
  hasSource?: boolean;
861
866
  };
@@ -965,13 +970,13 @@ export declare class DataCore {
965
970
  };
966
971
  persistentId?: string;
967
972
  data?: {
968
- sceneNodeId?: string;
969
973
  format?: "Png" | "Svg";
970
974
  scale?: number;
975
+ sceneNodeId?: string;
971
976
  renderState?: "Success" | "InProgress" | "Failed";
972
977
  renderedImage?: {
973
- url?: string;
974
978
  width?: number;
979
+ url?: string;
975
980
  height?: number;
976
981
  resourceId?: string;
977
982
  format?: "Png" | "Svg";
@@ -979,7 +984,7 @@ export declare class DataCore {
979
984
  originKey?: string;
980
985
  };
981
986
  renderError?: {
982
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
987
+ type?: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
983
988
  };
984
989
  hasSource?: boolean;
985
990
  };
@@ -1026,6 +1031,10 @@ export declare class DataCore {
1026
1031
  restoreDocumentationGroup(designSystemId: string, versionId: string, payload: DTORestoreDocumentationGroupInput): Promise<void>;
1027
1032
  /** Restore a documentation page */
1028
1033
  restoreDocumentationPage(designSystemId: string, versionId: string, payload: DTORestoreDocumentationPageInput): Promise<void>;
1034
+ listPageHistoryVersions(designSystemId: string, versionId: string, pageId: string): Promise<PageHistoryVersion[]>;
1035
+ getPageHistoryVersion(designSystemId: string, versionId: string, pageId: string, pageHistoryVersionId: string): Promise<PageHistoryVersionContent>;
1036
+ createPageHistoryVersion(designSystemId: string, versionId: string, pageId: string, payload: DTOPageHistoryVersionCreatePayload): Promise<PageHistoryVersion>;
1037
+ restorePageHistoryVersion(designSystemId: string, versionId: string, pageId: string, pageHistoryVersionId: string): Promise<PageHistoryVersion>;
1029
1038
  /** Create a custom property in remote */
1030
1039
  updateTokenProperty(designSystemId: string, versionId: string, propertyIdInVersion: string, model: ElementPropertyUpdateModel): Promise<void>;
1031
1040
  /** Delete a custom property in remote */
@@ -1121,6 +1130,10 @@ export declare class DataCore {
1121
1130
  documentation(workspaceId: string, designSystemId: string, versionId: string): Promise<DocumentationLegacy>;
1122
1131
  getDocumentationStructure(designSystemId: string, versionId: string): Promise<(DocsEntityPageModel | DocsEntityGroupModel)[]>;
1123
1132
  getDocumentationContentRaw(designSystemId: string, versionId: string, pageId: string): Promise<DTODocumentationPageContent>;
1133
+ getMarkdownFromUrl(designSystemId: string, versionId: string, url: string, mode: DTODocumentationMarkdownFromUrlMode): Promise<{
1134
+ content: string;
1135
+ lastError: DTODocumentationMarkdownFetchErrorCode | null;
1136
+ }>;
1124
1137
  getDocumentationElementsDiff(designSystemId: string, versionId: string, environment: DocumentationEnvironment): Promise<DTODesignElementsDataDiffResponse>;
1125
1138
  updateDocumentationStructure(designSystemId: string, versionId: string, model: DocumentationLegacyModel): Promise<void>;
1126
1139
  /** Get ID of the multiplayer room for a given documentation page */
@@ -1346,6 +1359,7 @@ export declare class DataCore {
1346
1359
  /** Generic project action */
1347
1360
  projectAction<T = void>(workspaceId: string, projectId: string, data: DTOForgeProjectAction): Promise<T>;
1348
1361
  getProjectTrailEvents(projectId: string): Promise<TrailEvent[]>;
1362
+ getActivityEvents(filter: ActivityEventListFilter): Promise<ActivityEventListResult>;
1349
1363
  getPublishedFeature(featureId: string): Promise<PublishedFeature>;
1350
1364
  getForgeProjectFeature(workspaceId: string, projectId: string, featureId: string): Promise<ForgeProjectFeature>;
1351
1365
  getForgeProjectFeatures(workspaceId: string, projectId: string): Promise<ForgeProjectFeature[]>;
@@ -1487,11 +1501,27 @@ export declare class DataCore {
1487
1501
  promptMetadata?: Record<string, any>;
1488
1502
  };
1489
1503
  }>;
1504
+ getAgentChats(filter: AgentChatListFilter): Promise<AgentChat[]>;
1505
+ getAgentChatByEveSession(eveSessionId: string): Promise<AgentChat>;
1506
+ getAgentChatChangedEntities(chatId: string): Promise<{
1507
+ createdAt?: string;
1508
+ designSystemId?: string;
1509
+ entityId?: string;
1510
+ entityType?: "token" | "tokenGroup" | "tokenTheme" | "tokenProperty" | "documentationPage" | "documentationGroup" | "documentationTab" | "component" | "componentProperty" | "figmaSource" | "knowledgeFile" | "skill" | "context" | "pipeline";
1511
+ entityName?: string;
1512
+ changeKind?: "created" | "updated" | "deleted";
1513
+ toolAction?: string;
1514
+ }[]>;
1515
+ createAgentChat(input: AgentChatCreateInput): Promise<AgentChat>;
1516
+ updateAgentChat(chatId: string, input: AgentChatUpdateInput): Promise<AgentChat>;
1517
+ deleteAgentChat(chatId: string): Promise<{
1518
+ deletedId?: string;
1519
+ }>;
1490
1520
  getForgeProjectDocument(workspaceId: string, projectId: string, artifactId: string): Promise<ForgeProjectDocument>;
1491
1521
  getForgeProjectDocumentContent(workspaceId: string, projectId: string, artifactId: string): Promise<{
1492
1522
  items?: ({
1493
- id?: string;
1494
1523
  type?: "Block";
1524
+ id?: string;
1495
1525
  data?: {
1496
1526
  packageId?: string;
1497
1527
  variantId?: string;
@@ -1518,35 +1548,17 @@ export declare class DataCore {
1518
1548
  }[];
1519
1549
  };
1520
1550
  } | {
1521
- id?: string;
1522
1551
  type?: "Section";
1523
- variantId?: string;
1524
- appearance?: {
1525
- foregroundColor?: {
1526
- value?: string;
1527
- referencedTokenId?: string;
1528
- };
1529
- backgroundColor?: {
1530
- value?: string;
1531
- referencedTokenId?: string;
1532
- };
1533
- expandToEdges?: boolean;
1534
- contentExpandToEdges?: boolean;
1535
- padding?: {
1536
- top?: number;
1537
- bottom?: number;
1538
- left?: number;
1539
- right?: number;
1540
- };
1541
- };
1552
+ id?: string;
1553
+ variantId?: "Tabs" | "Pills" | "Columns" | "Accordion";
1542
1554
  items?: {
1543
1555
  id?: string;
1544
1556
  title?: string;
1545
1557
  columns?: {
1546
1558
  id?: string;
1547
1559
  blocks?: {
1548
- id?: string;
1549
1560
  type?: "Block";
1561
+ id?: string;
1550
1562
  data?: {
1551
1563
  packageId?: string;
1552
1564
  variantId?: string;
@@ -1593,6 +1605,24 @@ export declare class DataCore {
1593
1605
  designSystemId?: string;
1594
1606
  brandId?: string;
1595
1607
  theme?: {
1608
+ spacing?: {
1609
+ value?: {
1610
+ unit?: "Pixels" | "Percent" | "Rem" | "Ms" | "Raw" | "Points";
1611
+ measure?: number;
1612
+ };
1613
+ aliasTo?: string;
1614
+ };
1615
+ radius?: {
1616
+ value?: {
1617
+ unit?: "Pixels" | "Percent" | "Rem" | "Ms" | "Raw" | "Points";
1618
+ measure?: number;
1619
+ };
1620
+ aliasTo?: string;
1621
+ };
1622
+ fontFamily?: {
1623
+ value?: string;
1624
+ aliasTo?: string;
1625
+ };
1596
1626
  card?: {
1597
1627
  value?: {
1598
1628
  color?: string | {
@@ -1608,17 +1638,6 @@ export declare class DataCore {
1608
1638
  };
1609
1639
  aliasTo?: string;
1610
1640
  };
1611
- fontFamily?: {
1612
- value?: string;
1613
- aliasTo?: string;
1614
- };
1615
- radius?: {
1616
- value?: {
1617
- unit?: "Pixels" | "Percent" | "Rem" | "Ms" | "Raw" | "Points";
1618
- measure?: number;
1619
- };
1620
- aliasTo?: string;
1621
- };
1622
1641
  border?: {
1623
1642
  value?: {
1624
1643
  color?: string | {
@@ -1634,14 +1653,7 @@ export declare class DataCore {
1634
1653
  };
1635
1654
  aliasTo?: string;
1636
1655
  };
1637
- spacing?: {
1638
- value?: {
1639
- unit?: "Pixels" | "Percent" | "Rem" | "Ms" | "Raw" | "Points";
1640
- measure?: number;
1641
- };
1642
- aliasTo?: string;
1643
- };
1644
- sidebar?: {
1656
+ input?: {
1645
1657
  value?: {
1646
1658
  color?: string | {
1647
1659
  aliasTo?: string;
@@ -1866,7 +1878,7 @@ export declare class DataCore {
1866
1878
  };
1867
1879
  aliasTo?: string;
1868
1880
  };
1869
- input?: {
1881
+ ring?: {
1870
1882
  value?: {
1871
1883
  color?: string | {
1872
1884
  aliasTo?: string;
@@ -1881,7 +1893,7 @@ export declare class DataCore {
1881
1893
  };
1882
1894
  aliasTo?: string;
1883
1895
  };
1884
- ring?: {
1896
+ chart1?: {
1885
1897
  value?: {
1886
1898
  color?: string | {
1887
1899
  aliasTo?: string;
@@ -1896,7 +1908,7 @@ export declare class DataCore {
1896
1908
  };
1897
1909
  aliasTo?: string;
1898
1910
  };
1899
- chart1?: {
1911
+ chart2?: {
1900
1912
  value?: {
1901
1913
  color?: string | {
1902
1914
  aliasTo?: string;
@@ -1911,7 +1923,7 @@ export declare class DataCore {
1911
1923
  };
1912
1924
  aliasTo?: string;
1913
1925
  };
1914
- chart2?: {
1926
+ chart3?: {
1915
1927
  value?: {
1916
1928
  color?: string | {
1917
1929
  aliasTo?: string;
@@ -1926,7 +1938,7 @@ export declare class DataCore {
1926
1938
  };
1927
1939
  aliasTo?: string;
1928
1940
  };
1929
- chart3?: {
1941
+ chart4?: {
1930
1942
  value?: {
1931
1943
  color?: string | {
1932
1944
  aliasTo?: string;
@@ -1941,7 +1953,7 @@ export declare class DataCore {
1941
1953
  };
1942
1954
  aliasTo?: string;
1943
1955
  };
1944
- chart4?: {
1956
+ chart5?: {
1945
1957
  value?: {
1946
1958
  color?: string | {
1947
1959
  aliasTo?: string;
@@ -1956,7 +1968,7 @@ export declare class DataCore {
1956
1968
  };
1957
1969
  aliasTo?: string;
1958
1970
  };
1959
- chart5?: {
1971
+ sidebar?: {
1960
1972
  value?: {
1961
1973
  color?: string | {
1962
1974
  aliasTo?: string;
@@ -2297,6 +2309,7 @@ export declare class DataCore {
2297
2309
  shadow2xs?: {
2298
2310
  value?: {
2299
2311
  value?: {
2312
+ radius?: number;
2300
2313
  color?: {
2301
2314
  value?: {
2302
2315
  color?: string | {
@@ -2312,10 +2325,8 @@ export declare class DataCore {
2312
2325
  };
2313
2326
  aliasTo?: string;
2314
2327
  };
2315
- type?: "Drop" | "Inner";
2316
2328
  x?: number;
2317
2329
  y?: number;
2318
- radius?: number;
2319
2330
  spread?: number;
2320
2331
  opacity?: {
2321
2332
  value?: {
@@ -2324,6 +2335,7 @@ export declare class DataCore {
2324
2335
  };
2325
2336
  aliasTo?: string;
2326
2337
  };
2338
+ type?: "Drop" | "Inner";
2327
2339
  };
2328
2340
  aliasTo?: string;
2329
2341
  }[];
@@ -2332,6 +2344,7 @@ export declare class DataCore {
2332
2344
  shadowXs?: {
2333
2345
  value?: {
2334
2346
  value?: {
2347
+ radius?: number;
2335
2348
  color?: {
2336
2349
  value?: {
2337
2350
  color?: string | {
@@ -2347,10 +2360,8 @@ export declare class DataCore {
2347
2360
  };
2348
2361
  aliasTo?: string;
2349
2362
  };
2350
- type?: "Drop" | "Inner";
2351
2363
  x?: number;
2352
2364
  y?: number;
2353
- radius?: number;
2354
2365
  spread?: number;
2355
2366
  opacity?: {
2356
2367
  value?: {
@@ -2359,6 +2370,7 @@ export declare class DataCore {
2359
2370
  };
2360
2371
  aliasTo?: string;
2361
2372
  };
2373
+ type?: "Drop" | "Inner";
2362
2374
  };
2363
2375
  aliasTo?: string;
2364
2376
  }[];
@@ -2367,6 +2379,7 @@ export declare class DataCore {
2367
2379
  shadowSm?: {
2368
2380
  value?: {
2369
2381
  value?: {
2382
+ radius?: number;
2370
2383
  color?: {
2371
2384
  value?: {
2372
2385
  color?: string | {
@@ -2382,10 +2395,8 @@ export declare class DataCore {
2382
2395
  };
2383
2396
  aliasTo?: string;
2384
2397
  };
2385
- type?: "Drop" | "Inner";
2386
2398
  x?: number;
2387
2399
  y?: number;
2388
- radius?: number;
2389
2400
  spread?: number;
2390
2401
  opacity?: {
2391
2402
  value?: {
@@ -2394,6 +2405,7 @@ export declare class DataCore {
2394
2405
  };
2395
2406
  aliasTo?: string;
2396
2407
  };
2408
+ type?: "Drop" | "Inner";
2397
2409
  };
2398
2410
  aliasTo?: string;
2399
2411
  }[];
@@ -2402,6 +2414,7 @@ export declare class DataCore {
2402
2414
  shadowMd?: {
2403
2415
  value?: {
2404
2416
  value?: {
2417
+ radius?: number;
2405
2418
  color?: {
2406
2419
  value?: {
2407
2420
  color?: string | {
@@ -2417,10 +2430,8 @@ export declare class DataCore {
2417
2430
  };
2418
2431
  aliasTo?: string;
2419
2432
  };
2420
- type?: "Drop" | "Inner";
2421
2433
  x?: number;
2422
2434
  y?: number;
2423
- radius?: number;
2424
2435
  spread?: number;
2425
2436
  opacity?: {
2426
2437
  value?: {
@@ -2429,6 +2440,7 @@ export declare class DataCore {
2429
2440
  };
2430
2441
  aliasTo?: string;
2431
2442
  };
2443
+ type?: "Drop" | "Inner";
2432
2444
  };
2433
2445
  aliasTo?: string;
2434
2446
  }[];
@@ -2437,6 +2449,7 @@ export declare class DataCore {
2437
2449
  shadowLg?: {
2438
2450
  value?: {
2439
2451
  value?: {
2452
+ radius?: number;
2440
2453
  color?: {
2441
2454
  value?: {
2442
2455
  color?: string | {
@@ -2452,10 +2465,8 @@ export declare class DataCore {
2452
2465
  };
2453
2466
  aliasTo?: string;
2454
2467
  };
2455
- type?: "Drop" | "Inner";
2456
2468
  x?: number;
2457
2469
  y?: number;
2458
- radius?: number;
2459
2470
  spread?: number;
2460
2471
  opacity?: {
2461
2472
  value?: {
@@ -2464,6 +2475,7 @@ export declare class DataCore {
2464
2475
  };
2465
2476
  aliasTo?: string;
2466
2477
  };
2478
+ type?: "Drop" | "Inner";
2467
2479
  };
2468
2480
  aliasTo?: string;
2469
2481
  }[];
@@ -2472,6 +2484,7 @@ export declare class DataCore {
2472
2484
  shadowXl?: {
2473
2485
  value?: {
2474
2486
  value?: {
2487
+ radius?: number;
2475
2488
  color?: {
2476
2489
  value?: {
2477
2490
  color?: string | {
@@ -2487,10 +2500,8 @@ export declare class DataCore {
2487
2500
  };
2488
2501
  aliasTo?: string;
2489
2502
  };
2490
- type?: "Drop" | "Inner";
2491
2503
  x?: number;
2492
2504
  y?: number;
2493
- radius?: number;
2494
2505
  spread?: number;
2495
2506
  opacity?: {
2496
2507
  value?: {
@@ -2499,6 +2510,7 @@ export declare class DataCore {
2499
2510
  };
2500
2511
  aliasTo?: string;
2501
2512
  };
2513
+ type?: "Drop" | "Inner";
2502
2514
  };
2503
2515
  aliasTo?: string;
2504
2516
  }[];
@@ -2507,6 +2519,7 @@ export declare class DataCore {
2507
2519
  shadow2xl?: {
2508
2520
  value?: {
2509
2521
  value?: {
2522
+ radius?: number;
2510
2523
  color?: {
2511
2524
  value?: {
2512
2525
  color?: string | {
@@ -2522,10 +2535,8 @@ export declare class DataCore {
2522
2535
  };
2523
2536
  aliasTo?: string;
2524
2537
  };
2525
- type?: "Drop" | "Inner";
2526
2538
  x?: number;
2527
2539
  y?: number;
2528
- radius?: number;
2529
2540
  spread?: number;
2530
2541
  opacity?: {
2531
2542
  value?: {
@@ -2534,23 +2545,27 @@ export declare class DataCore {
2534
2545
  };
2535
2546
  aliasTo?: string;
2536
2547
  };
2548
+ type?: "Drop" | "Inner";
2537
2549
  };
2538
2550
  aliasTo?: string;
2539
2551
  }[];
2540
2552
  aliasTo?: string;
2541
2553
  };
2542
2554
  };
2543
- thumbnail?: {
2544
- id?: string;
2545
- name?: string;
2546
- source?: {
2547
- type?: "UserUpload";
2548
- userId?: string;
2549
- } | {
2550
- type?: "Figma";
2551
- renderMode?: "Image" | "HTML" | "JSON";
2555
+ scope?: {
2556
+ designSystemId?: string;
2557
+ selections?: {
2558
+ tokens?: import("@supernova-studio/model").DatasetFilterGroup;
2559
+ tokenThemes?: import("@supernova-studio/model").DatasetFilterGroup;
2560
+ figmaComponents?: import("@supernova-studio/model").DatasetFilterGroup;
2561
+ designComponents?: import("@supernova-studio/model").DatasetFilterGroup;
2562
+ assets?: import("@supernova-studio/model").DatasetFilterGroup;
2563
+ documentation?: import("@supernova-studio/model").DatasetFilterGroup;
2564
+ contexts?: import("@supernova-studio/model").DatasetFilterGroup;
2565
+ skills?: import("@supernova-studio/model").DatasetFilterGroup;
2566
+ files?: import("@supernova-studio/model").DatasetFilterGroup;
2567
+ codeComponents?: import("@supernova-studio/model").DatasetFilterGroup;
2552
2568
  };
2553
- url?: string;
2554
2569
  };
2555
2570
  defaultTokenThemeSetId?: string;
2556
2571
  productContext?: string;
@@ -2568,21 +2583,6 @@ export declare class DataCore {
2568
2583
  }[];
2569
2584
  includedContextIds?: string[];
2570
2585
  includedByContextIds?: string[];
2571
- scope?: {
2572
- designSystemId?: string;
2573
- selections?: {
2574
- tokens?: import("@supernova-studio/model").DatasetFilterGroup;
2575
- tokenThemes?: import("@supernova-studio/model").DatasetFilterGroup;
2576
- figmaComponents?: import("@supernova-studio/model").DatasetFilterGroup;
2577
- designComponents?: import("@supernova-studio/model").DatasetFilterGroup;
2578
- assets?: import("@supernova-studio/model").DatasetFilterGroup;
2579
- documentation?: import("@supernova-studio/model").DatasetFilterGroup;
2580
- contexts?: import("@supernova-studio/model").DatasetFilterGroup;
2581
- skills?: import("@supernova-studio/model").DatasetFilterGroup;
2582
- files?: import("@supernova-studio/model").DatasetFilterGroup;
2583
- codeComponents?: import("@supernova-studio/model").DatasetFilterGroup;
2584
- };
2585
- };
2586
2586
  mcpUrlSlug?: string;
2587
2587
  metadata?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
2588
2588
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any;
@@ -2616,6 +2616,18 @@ export declare class DataCore {
2616
2616
  type?: "Phosphor" | "Lucide" | "Tabler";
2617
2617
  variant?: string;
2618
2618
  };
2619
+ thumbnail?: {
2620
+ id?: string;
2621
+ name?: string;
2622
+ source?: {
2623
+ type?: "UserUpload";
2624
+ userId?: string;
2625
+ } | {
2626
+ type?: "Figma";
2627
+ renderMode?: "Image" | "HTML" | "JSON";
2628
+ };
2629
+ url?: string;
2630
+ };
2619
2631
  sandboxTemplate?: {
2620
2632
  id?: string;
2621
2633
  version?: string;
@@ -2631,6 +2643,24 @@ export declare class DataCore {
2631
2643
  designSystemId?: string;
2632
2644
  brandId?: string;
2633
2645
  theme?: {
2646
+ spacing?: {
2647
+ value?: {
2648
+ unit?: "Pixels" | "Percent" | "Rem" | "Ms" | "Raw" | "Points";
2649
+ measure?: number;
2650
+ };
2651
+ aliasTo?: string;
2652
+ };
2653
+ radius?: {
2654
+ value?: {
2655
+ unit?: "Pixels" | "Percent" | "Rem" | "Ms" | "Raw" | "Points";
2656
+ measure?: number;
2657
+ };
2658
+ aliasTo?: string;
2659
+ };
2660
+ fontFamily?: {
2661
+ value?: string;
2662
+ aliasTo?: string;
2663
+ };
2634
2664
  card?: {
2635
2665
  value?: {
2636
2666
  color?: string | {
@@ -2646,17 +2676,6 @@ export declare class DataCore {
2646
2676
  };
2647
2677
  aliasTo?: string;
2648
2678
  };
2649
- fontFamily?: {
2650
- value?: string;
2651
- aliasTo?: string;
2652
- };
2653
- radius?: {
2654
- value?: {
2655
- unit?: "Pixels" | "Percent" | "Rem" | "Ms" | "Raw" | "Points";
2656
- measure?: number;
2657
- };
2658
- aliasTo?: string;
2659
- };
2660
2679
  border?: {
2661
2680
  value?: {
2662
2681
  color?: string | {
@@ -2672,14 +2691,7 @@ export declare class DataCore {
2672
2691
  };
2673
2692
  aliasTo?: string;
2674
2693
  };
2675
- spacing?: {
2676
- value?: {
2677
- unit?: "Pixels" | "Percent" | "Rem" | "Ms" | "Raw" | "Points";
2678
- measure?: number;
2679
- };
2680
- aliasTo?: string;
2681
- };
2682
- sidebar?: {
2694
+ input?: {
2683
2695
  value?: {
2684
2696
  color?: string | {
2685
2697
  aliasTo?: string;
@@ -2904,7 +2916,7 @@ export declare class DataCore {
2904
2916
  };
2905
2917
  aliasTo?: string;
2906
2918
  };
2907
- input?: {
2919
+ ring?: {
2908
2920
  value?: {
2909
2921
  color?: string | {
2910
2922
  aliasTo?: string;
@@ -2919,7 +2931,7 @@ export declare class DataCore {
2919
2931
  };
2920
2932
  aliasTo?: string;
2921
2933
  };
2922
- ring?: {
2934
+ chart1?: {
2923
2935
  value?: {
2924
2936
  color?: string | {
2925
2937
  aliasTo?: string;
@@ -2934,7 +2946,7 @@ export declare class DataCore {
2934
2946
  };
2935
2947
  aliasTo?: string;
2936
2948
  };
2937
- chart1?: {
2949
+ chart2?: {
2938
2950
  value?: {
2939
2951
  color?: string | {
2940
2952
  aliasTo?: string;
@@ -2949,7 +2961,7 @@ export declare class DataCore {
2949
2961
  };
2950
2962
  aliasTo?: string;
2951
2963
  };
2952
- chart2?: {
2964
+ chart3?: {
2953
2965
  value?: {
2954
2966
  color?: string | {
2955
2967
  aliasTo?: string;
@@ -2964,7 +2976,7 @@ export declare class DataCore {
2964
2976
  };
2965
2977
  aliasTo?: string;
2966
2978
  };
2967
- chart3?: {
2979
+ chart4?: {
2968
2980
  value?: {
2969
2981
  color?: string | {
2970
2982
  aliasTo?: string;
@@ -2979,7 +2991,7 @@ export declare class DataCore {
2979
2991
  };
2980
2992
  aliasTo?: string;
2981
2993
  };
2982
- chart4?: {
2994
+ chart5?: {
2983
2995
  value?: {
2984
2996
  color?: string | {
2985
2997
  aliasTo?: string;
@@ -2994,7 +3006,7 @@ export declare class DataCore {
2994
3006
  };
2995
3007
  aliasTo?: string;
2996
3008
  };
2997
- chart5?: {
3009
+ sidebar?: {
2998
3010
  value?: {
2999
3011
  color?: string | {
3000
3012
  aliasTo?: string;
@@ -3335,6 +3347,7 @@ export declare class DataCore {
3335
3347
  shadow2xs?: {
3336
3348
  value?: {
3337
3349
  value?: {
3350
+ radius?: number;
3338
3351
  color?: {
3339
3352
  value?: {
3340
3353
  color?: string | {
@@ -3350,10 +3363,8 @@ export declare class DataCore {
3350
3363
  };
3351
3364
  aliasTo?: string;
3352
3365
  };
3353
- type?: "Drop" | "Inner";
3354
3366
  x?: number;
3355
3367
  y?: number;
3356
- radius?: number;
3357
3368
  spread?: number;
3358
3369
  opacity?: {
3359
3370
  value?: {
@@ -3362,6 +3373,7 @@ export declare class DataCore {
3362
3373
  };
3363
3374
  aliasTo?: string;
3364
3375
  };
3376
+ type?: "Drop" | "Inner";
3365
3377
  };
3366
3378
  aliasTo?: string;
3367
3379
  }[];
@@ -3370,6 +3382,7 @@ export declare class DataCore {
3370
3382
  shadowXs?: {
3371
3383
  value?: {
3372
3384
  value?: {
3385
+ radius?: number;
3373
3386
  color?: {
3374
3387
  value?: {
3375
3388
  color?: string | {
@@ -3385,10 +3398,8 @@ export declare class DataCore {
3385
3398
  };
3386
3399
  aliasTo?: string;
3387
3400
  };
3388
- type?: "Drop" | "Inner";
3389
3401
  x?: number;
3390
3402
  y?: number;
3391
- radius?: number;
3392
3403
  spread?: number;
3393
3404
  opacity?: {
3394
3405
  value?: {
@@ -3397,6 +3408,7 @@ export declare class DataCore {
3397
3408
  };
3398
3409
  aliasTo?: string;
3399
3410
  };
3411
+ type?: "Drop" | "Inner";
3400
3412
  };
3401
3413
  aliasTo?: string;
3402
3414
  }[];
@@ -3405,6 +3417,7 @@ export declare class DataCore {
3405
3417
  shadowSm?: {
3406
3418
  value?: {
3407
3419
  value?: {
3420
+ radius?: number;
3408
3421
  color?: {
3409
3422
  value?: {
3410
3423
  color?: string | {
@@ -3420,10 +3433,8 @@ export declare class DataCore {
3420
3433
  };
3421
3434
  aliasTo?: string;
3422
3435
  };
3423
- type?: "Drop" | "Inner";
3424
3436
  x?: number;
3425
3437
  y?: number;
3426
- radius?: number;
3427
3438
  spread?: number;
3428
3439
  opacity?: {
3429
3440
  value?: {
@@ -3432,6 +3443,7 @@ export declare class DataCore {
3432
3443
  };
3433
3444
  aliasTo?: string;
3434
3445
  };
3446
+ type?: "Drop" | "Inner";
3435
3447
  };
3436
3448
  aliasTo?: string;
3437
3449
  }[];
@@ -3440,6 +3452,7 @@ export declare class DataCore {
3440
3452
  shadowMd?: {
3441
3453
  value?: {
3442
3454
  value?: {
3455
+ radius?: number;
3443
3456
  color?: {
3444
3457
  value?: {
3445
3458
  color?: string | {
@@ -3455,10 +3468,8 @@ export declare class DataCore {
3455
3468
  };
3456
3469
  aliasTo?: string;
3457
3470
  };
3458
- type?: "Drop" | "Inner";
3459
3471
  x?: number;
3460
3472
  y?: number;
3461
- radius?: number;
3462
3473
  spread?: number;
3463
3474
  opacity?: {
3464
3475
  value?: {
@@ -3467,6 +3478,7 @@ export declare class DataCore {
3467
3478
  };
3468
3479
  aliasTo?: string;
3469
3480
  };
3481
+ type?: "Drop" | "Inner";
3470
3482
  };
3471
3483
  aliasTo?: string;
3472
3484
  }[];
@@ -3475,6 +3487,7 @@ export declare class DataCore {
3475
3487
  shadowLg?: {
3476
3488
  value?: {
3477
3489
  value?: {
3490
+ radius?: number;
3478
3491
  color?: {
3479
3492
  value?: {
3480
3493
  color?: string | {
@@ -3490,10 +3503,8 @@ export declare class DataCore {
3490
3503
  };
3491
3504
  aliasTo?: string;
3492
3505
  };
3493
- type?: "Drop" | "Inner";
3494
3506
  x?: number;
3495
3507
  y?: number;
3496
- radius?: number;
3497
3508
  spread?: number;
3498
3509
  opacity?: {
3499
3510
  value?: {
@@ -3502,6 +3513,7 @@ export declare class DataCore {
3502
3513
  };
3503
3514
  aliasTo?: string;
3504
3515
  };
3516
+ type?: "Drop" | "Inner";
3505
3517
  };
3506
3518
  aliasTo?: string;
3507
3519
  }[];
@@ -3510,6 +3522,7 @@ export declare class DataCore {
3510
3522
  shadowXl?: {
3511
3523
  value?: {
3512
3524
  value?: {
3525
+ radius?: number;
3513
3526
  color?: {
3514
3527
  value?: {
3515
3528
  color?: string | {
@@ -3525,10 +3538,8 @@ export declare class DataCore {
3525
3538
  };
3526
3539
  aliasTo?: string;
3527
3540
  };
3528
- type?: "Drop" | "Inner";
3529
3541
  x?: number;
3530
3542
  y?: number;
3531
- radius?: number;
3532
3543
  spread?: number;
3533
3544
  opacity?: {
3534
3545
  value?: {
@@ -3537,6 +3548,7 @@ export declare class DataCore {
3537
3548
  };
3538
3549
  aliasTo?: string;
3539
3550
  };
3551
+ type?: "Drop" | "Inner";
3540
3552
  };
3541
3553
  aliasTo?: string;
3542
3554
  }[];
@@ -3545,6 +3557,7 @@ export declare class DataCore {
3545
3557
  shadow2xl?: {
3546
3558
  value?: {
3547
3559
  value?: {
3560
+ radius?: number;
3548
3561
  color?: {
3549
3562
  value?: {
3550
3563
  color?: string | {
@@ -3560,10 +3573,8 @@ export declare class DataCore {
3560
3573
  };
3561
3574
  aliasTo?: string;
3562
3575
  };
3563
- type?: "Drop" | "Inner";
3564
3576
  x?: number;
3565
3577
  y?: number;
3566
- radius?: number;
3567
3578
  spread?: number;
3568
3579
  opacity?: {
3569
3580
  value?: {
@@ -3572,23 +3583,27 @@ export declare class DataCore {
3572
3583
  };
3573
3584
  aliasTo?: string;
3574
3585
  };
3586
+ type?: "Drop" | "Inner";
3575
3587
  };
3576
3588
  aliasTo?: string;
3577
3589
  }[];
3578
3590
  aliasTo?: string;
3579
3591
  };
3580
3592
  };
3581
- thumbnail?: {
3582
- id?: string;
3583
- name?: string;
3584
- source?: {
3585
- type?: "UserUpload";
3586
- userId?: string;
3587
- } | {
3588
- type?: "Figma";
3589
- renderMode?: "Image" | "HTML" | "JSON";
3593
+ scope?: {
3594
+ designSystemId?: string;
3595
+ selections?: {
3596
+ tokens?: import("@supernova-studio/model").DatasetFilterGroup;
3597
+ tokenThemes?: import("@supernova-studio/model").DatasetFilterGroup;
3598
+ figmaComponents?: import("@supernova-studio/model").DatasetFilterGroup;
3599
+ designComponents?: import("@supernova-studio/model").DatasetFilterGroup;
3600
+ assets?: import("@supernova-studio/model").DatasetFilterGroup;
3601
+ documentation?: import("@supernova-studio/model").DatasetFilterGroup;
3602
+ contexts?: import("@supernova-studio/model").DatasetFilterGroup;
3603
+ skills?: import("@supernova-studio/model").DatasetFilterGroup;
3604
+ files?: import("@supernova-studio/model").DatasetFilterGroup;
3605
+ codeComponents?: import("@supernova-studio/model").DatasetFilterGroup;
3590
3606
  };
3591
- url?: string;
3592
3607
  };
3593
3608
  defaultTokenThemeSetId?: string;
3594
3609
  productContext?: string;
@@ -3606,21 +3621,6 @@ export declare class DataCore {
3606
3621
  }[];
3607
3622
  includedContextIds?: string[];
3608
3623
  includedByContextIds?: string[];
3609
- scope?: {
3610
- designSystemId?: string;
3611
- selections?: {
3612
- tokens?: import("@supernova-studio/model").DatasetFilterGroup;
3613
- tokenThemes?: import("@supernova-studio/model").DatasetFilterGroup;
3614
- figmaComponents?: import("@supernova-studio/model").DatasetFilterGroup;
3615
- designComponents?: import("@supernova-studio/model").DatasetFilterGroup;
3616
- assets?: import("@supernova-studio/model").DatasetFilterGroup;
3617
- documentation?: import("@supernova-studio/model").DatasetFilterGroup;
3618
- contexts?: import("@supernova-studio/model").DatasetFilterGroup;
3619
- skills?: import("@supernova-studio/model").DatasetFilterGroup;
3620
- files?: import("@supernova-studio/model").DatasetFilterGroup;
3621
- codeComponents?: import("@supernova-studio/model").DatasetFilterGroup;
3622
- };
3623
- };
3624
3624
  mcpUrlSlug?: string;
3625
3625
  metadata?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
3626
3626
  [key: string]: string | number | boolean | /*elided*/ any | /*elided*/ any;
@@ -3654,6 +3654,18 @@ export declare class DataCore {
3654
3654
  type?: "Phosphor" | "Lucide" | "Tabler";
3655
3655
  variant?: string;
3656
3656
  };
3657
+ thumbnail?: {
3658
+ id?: string;
3659
+ name?: string;
3660
+ source?: {
3661
+ type?: "UserUpload";
3662
+ userId?: string;
3663
+ } | {
3664
+ type?: "Figma";
3665
+ renderMode?: "Image" | "HTML" | "JSON";
3666
+ };
3667
+ url?: string;
3668
+ };
3657
3669
  sandboxTemplate?: {
3658
3670
  id?: string;
3659
3671
  version?: string;
@@ -3663,8 +3675,11 @@ export declare class DataCore {
3663
3675
  createForgeProjectContextFeedback(contextId: string, input: ForgeProjectContextFeedbackCreateInput): Promise<ForgeProjectContextFeedback>;
3664
3676
  deleteForgeProjectContextFeedback(input: DTOForgeProjectContextFeedbackDeletePayload): Promise<void>;
3665
3677
  updateForgeProjectContextFeedback(input: DTOForgeProjectContextFeedbackUpdatePayload): Promise<ForgeProjectContextFeedback>;
3666
- getForgeProjectContexts({ workspaceId }: {
3678
+ getForgeProjectContexts({ workspaceId, filter, }: {
3667
3679
  workspaceId: string;
3680
+ filter?: {
3681
+ isArchived?: boolean;
3682
+ };
3668
3683
  }): Promise<ForgeProjectContext[]>;
3669
3684
  getForgeProjectContext(contextId: string): Promise<ForgeProjectContext>;
3670
3685
  getForgeProjectContextFeedback(contextId: string): Promise<ForgeProjectContextFeedback[]>;
@@ -3776,8 +3791,6 @@ export declare class DataCore {
3776
3791
  createdAt?: Date;
3777
3792
  workspaceId?: string;
3778
3793
  updatedAt?: Date;
3779
- enabledDesignSystemIds?: string[];
3780
- enabledBrandPersistentIds?: string[];
3781
3794
  theme?: {
3782
3795
  backgroundColor?: string;
3783
3796
  accentColor?: string;
@@ -3796,6 +3809,8 @@ export declare class DataCore {
3796
3809
  emoji?: string;
3797
3810
  }[];
3798
3811
  }[];
3812
+ enabledDesignSystemIds?: string[];
3813
+ enabledBrandPersistentIds?: string[];
3799
3814
  };
3800
3815
  }>;
3801
3816
  workspaceLoginScreenSettings(workspaceId: string): Promise<LoginScreenSettings>;
@@ -3923,7 +3938,7 @@ export declare class DataCore {
3923
3938
  isUnpublishedContentFallbackEnabled: boolean;
3924
3939
  };
3925
3940
  autoImport: SourceRemoteModelCloud["autoImportMode"];
3926
- themeId: string | null;
3941
+ themeId?: string | null;
3927
3942
  }): Promise<Source>;
3928
3943
  updateFigmaSource(designSystemId: string, sourceId: string, options: {
3929
3944
  scopes?: {
@@ -3951,6 +3966,11 @@ export declare class DataCore {
3951
3966
  deleteOAuthIntegration(userId: string, service: "figma" | ExporterProvider): Promise<void>;
3952
3967
  createPersonalAccessTokenConnection(service: ConnectionProviders, connection: PersonalAccessTokenConnectionPayload | AzurePersonalAccessTokenConnectionPayload): Promise<ConnectionRemoteModel>;
3953
3968
  bulkUpdateTokenData(designSystemId: string, versionId: string, data: TokenUpdateTransactionData): Promise<void>;
3969
+ /** Builds a lookup that turns a theme id into its persistent id.
3970
+ * The aggregated endpoint addresses themes by persistent id, while callers may pass either id.
3971
+ * Translating here rather than widening the payload was agreed with the backend:
3972
+ * https://supernova-studio.slack.com/archives/C0BJTMG456F/p1787236364298659 */
3973
+ private createThemePersistentIdResolver;
3954
3974
  bulkUpdateComponentData(designSystemId: string, versionId: string, data: ComponentUpdateTransactionData): Promise<void>;
3955
3975
  importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", payload: unknown, isTokenTypeSplitEnabled?: boolean, version?: "1" | "2"): Promise<ImportJob>;
3956
3976
  getImportJob(designSystemId: string, versionId: string, jobId: string): Promise<ImportJob>;
@@ -3987,6 +4007,8 @@ export declare class DataCore {
3987
4007
  }>;
3988
4008
  getMCPStream(streamId: string): Promise<MCPStream>;
3989
4009
  getUserMCPStream(): Promise<MCPStream>;
4010
+ listMCPConsumers(workspaceId: string, contextId?: string, designSystemId?: string): Promise<DTOMCPConsumer[]>;
4011
+ getMCPUsageStats(workspaceId: string, contextId?: string, designSystemId?: string): Promise<number>;
3990
4012
  updateUserMCPStream(input: DTOMCPStreamUpdateInput): Promise<MCPStream>;
3991
4013
  /**
3992
4014
  * Lists all untyped data for a given workspace.