@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,3 +1,5 @@
1
+ import { AreaActivityEvents } from "./areas/SDKAreaActivityEvents";
2
+ import { AreaAgentChats } from "./areas/SDKAreaAgentChats";
1
3
  import { AreaAssets } from "./areas/SDKAreaAssets";
2
4
  import { AreaAutomation } from "./areas/SDKAreaAutomation";
3
5
  import { AreaBrands } from "./areas/SDKAreaBrands";
@@ -9,6 +11,7 @@ import { AreaDataSources } from "./areas/SDKAreaDataSources";
9
11
  import { AreaDesignSystems } from "./areas/SDKAreaDesignSystems";
10
12
  import { AreaDocsAnalytics } from "./areas/SDKAreaDocsAnalytics";
11
13
  import { AreaDocumentation } from "./areas/SDKAreaDocumentation";
14
+ import { SDKAreaImport } from "./areas/SDKAreaImport";
12
15
  import { AreaIntegrations } from "./areas/SDKAreaIntegrations";
13
16
  import { AreaMCP } from "./areas/SDKAreaMCP";
14
17
  import { AreaMe } from "./areas/SDKAreaMe";
@@ -62,6 +65,8 @@ export declare class Supernova {
62
65
  resources: AreaResources;
63
66
  /** Get, create, update, manipulate or delete documentation items */
64
67
  documentation: AreaDocumentation;
68
+ /** Validate and import markdown into documentation pages */
69
+ import: SDKAreaImport;
65
70
  /** Get published documentation items */
66
71
  docsAnalytics: AreaDocsAnalytics;
67
72
  /** Get, create, update, manipulate or delete pipelines and automation jobs */
@@ -92,6 +97,10 @@ export declare class Supernova {
92
97
  messaging: AreaMessaging;
93
98
  /** Get, create, update, manipulate or delete sandboxes */
94
99
  sandboxes: AreaSandboxes;
100
+ /** Get activity events */
101
+ activityEvents: AreaActivityEvents;
102
+ /** Get, create, update, archive or delete agent chats */
103
+ agentChats: AreaAgentChats;
95
104
  /** Get access to raw data for local-only restoration of data */
96
105
  raw: AreaRawData;
97
106
  /**
@@ -0,0 +1,7 @@
1
+ import { ActivityEventListFilter, ActivityEventListResult } from "../../model/activity-events/SDKActivityEvent";
2
+ import { DataCore } from "../data/SDKDataCore";
3
+ export declare class AreaActivityEvents {
4
+ private dataCore;
5
+ constructor(dataCore: DataCore);
6
+ list(filter: ActivityEventListFilter): Promise<ActivityEventListResult>;
7
+ }
@@ -0,0 +1,12 @@
1
+ import type { AgentChat, AgentChatChangedEntity, AgentChatCreateInput, AgentChatDeleteResponse, AgentChatListFilter, AgentChatUpdateInput } from "../../model/agent-chats/SDKAgentChat";
2
+ import { DataCore } from "../data/SDKDataCore";
3
+ export declare class AreaAgentChats {
4
+ private dataCore;
5
+ constructor(dataCore: DataCore);
6
+ list(filter: AgentChatListFilter): Promise<AgentChat[]>;
7
+ getByEveSession(eveSessionId: string): Promise<AgentChat>;
8
+ listChangedEntities(chatId: string): Promise<AgentChatChangedEntity[]>;
9
+ create(input: AgentChatCreateInput): Promise<AgentChat>;
10
+ update(chatId: string, input: AgentChatUpdateInput): Promise<AgentChat>;
11
+ delete(chatId: string): Promise<AgentChatDeleteResponse>;
12
+ }
@@ -53,9 +53,11 @@ export declare class AreaBulkOperations {
53
53
  * @returns Nothing
54
54
  */
55
55
  importTokens(designSystemId: string, brandId: string, sourceId: string, sourceName: string, sourceType: "FigmaVariablesPlugin", payload: unknown, isTokenTypeSplitEnabled?: boolean, version?: "1" | "2"): Promise<ImportJob>;
56
- /** Batch updates, creates or deletes token data from Supernova at once. Use this method to perform multiple operations at once instead of chaining single update operations. Batch routine runs everything in a single transaction, so either all operations succeed or all fail.
56
+ /** Updates or creates token data in Supernova using the aggregated token endpoint. Token fields, its group, theme overrides and property values all travel in one request, which also records a single activity event for the change.
57
57
  *
58
- * WARNING: This method is not yet complete and only supports limited set of operations. Also, doesn't work as transation just yet.
58
+ * WARNING: Not atomic. The server applies the parts of the payload in sequence, so a failure can leave earlier parts already written.
59
+ *
60
+ * In `create` mode, `data.token` has its `id` and `idInVersion` written back from the server response.
59
61
  * @param to - Remote version to write to
60
62
  * @param data - Update information. All keys except token and its parent are optional and any combination of optional properties is allowed.
61
63
  * @returns Nothing
@@ -146,13 +148,13 @@ export declare class AreaBulkOperations {
146
148
  };
147
149
  persistentId?: string;
148
150
  data?: {
149
- sceneNodeId?: string;
150
151
  format?: "Png" | "Svg";
151
152
  scale?: number;
153
+ sceneNodeId?: string;
152
154
  renderState?: "Success" | "InProgress" | "Failed";
153
155
  renderedImage?: {
154
- url?: string;
155
156
  width?: number;
157
+ url?: string;
156
158
  height?: number;
157
159
  resourceId?: string;
158
160
  format?: "Png" | "Svg";
@@ -160,7 +162,7 @@ export declare class AreaBulkOperations {
160
162
  originKey?: string;
161
163
  };
162
164
  renderError?: {
163
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
165
+ type?: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
164
166
  };
165
167
  hasSource?: boolean;
166
168
  };
@@ -47,7 +47,7 @@ export declare class AreaDataSources {
47
47
  isUnpublishedContentFallbackEnabled: boolean;
48
48
  };
49
49
  autoImport: SourceRemoteModelCloud["autoImportMode"];
50
- themeId: string | null;
50
+ themeId?: string | null;
51
51
  }): Promise<Source>;
52
52
  updateFigmaSource(from: RemoteVersionIdentifier, sourceId: string, options: {
53
53
  scopes?: {
@@ -1,4 +1,4 @@
1
- import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTODeleteDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOMoveDocumentationGroupInput, DTOCreateDocumentationTabInput, DTODocumentationPageAnchor, DTODesignElementsDataDiffResponse, DTOPublishDocumentationRequest, DTOElementActionInput, DTOElementActionOutput, DTODocumentationPageDependenciesGetResponse, type DTODocumentationPageContent } from "@supernova-studio/client";
1
+ import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTODeleteDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOMoveDocumentationGroupInput, DTOCreateDocumentationTabInput, DTODocumentationPageAnchor, DTODesignElementsDataDiffResponse, DTOPublishDocumentationRequest, DTOPageHistoryVersionCreatePayload, DTOElementActionInput, DTOElementActionOutput, DTODocumentationPageDependenciesGetResponse, type DTODocumentationPageContent, type DTODocumentationMarkdownFetchErrorCode, type DTODocumentationMarkdownFromUrlMode } from "@supernova-studio/client";
2
2
  import { DocumentationLegacy, DocumentationLegacyModel } from "../../model/base/SDKDocumentationLegacy";
3
3
  import { DocsBlockDefinition } from "../../model/docs/blocks/definition/SDKDocsBlockDefinition";
4
4
  import { DocsBlock } from "../../model/docs/blocks/usage/SDKDocsBlock";
@@ -8,6 +8,7 @@ import { DocsEntityPageModel } from "../../model/docs/entities/SDKDocsEntityPage
8
8
  import { DocsSection } from "../../model/docs/sections/SDKDocsSection";
9
9
  import { DocumentationLegacyGroup } from "../../model/documentation/SDKDocumentationLegacyGroup";
10
10
  import { DocumentationLegacyPage } from "../../model/documentation/SDKDocumentationLegacyPage";
11
+ import { PageHistoryVersion, PageHistoryVersionContent } from "../../model/documentation/SDKPageHistoryVersion";
11
12
  import { DocsPublishStatus } from "../../model/enums/SDKDocsPublishStatus";
12
13
  import { DocumentationEnvironment } from "../../model/enums/SDKDocumentationEnvironment";
13
14
  import { ExportBuild, ExportBuildStatus } from "../../model/exporters/exporter_builds/SDKExportBuild";
@@ -29,6 +30,16 @@ export declare class AreaDocumentation {
29
30
  * @returns Raw page content DTO, including the page block/section item tree
30
31
  */
31
32
  getDocumentationContentRaw(from: RemoteVersionIdentifier, pageId: string): Promise<DTODocumentationPageContent>;
33
+ /** Fetches markdown content from a remote URL through the workspace git integration, storing it for the version.
34
+ * @param from - Remote version to fetch from
35
+ * @param url - URL of the markdown file
36
+ * @param mode - Cached returns stored content, Refresh re-downloads and stores, Preview fetches without storing
37
+ * @returns Markdown content, with `lastError` set when stored content is served and its last refresh failed
38
+ */
39
+ getMarkdownFromUrl(from: RemoteVersionIdentifier, url: string, mode?: DTODocumentationMarkdownFromUrlMode): Promise<{
40
+ content: string;
41
+ lastError: DTODocumentationMarkdownFetchErrorCode | null;
42
+ }>;
32
43
  /**
33
44
  * Fetches the differences in elements, such as design tokens and assets, that have occurred since the documentation was published.
34
45
  * @param from Remote version to fetch from
@@ -173,13 +184,13 @@ export declare class AreaDocumentation {
173
184
  };
174
185
  persistentId?: string;
175
186
  data?: {
176
- sceneNodeId?: string;
177
187
  format?: "Png" | "Svg";
178
188
  scale?: number;
189
+ sceneNodeId?: string;
179
190
  renderState?: "Success" | "InProgress" | "Failed";
180
191
  renderedImage?: {
181
- url?: string;
182
192
  width?: number;
193
+ url?: string;
183
194
  height?: number;
184
195
  resourceId?: string;
185
196
  format?: "Png" | "Svg";
@@ -187,7 +198,7 @@ export declare class AreaDocumentation {
187
198
  originKey?: string;
188
199
  };
189
200
  renderError?: {
190
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
201
+ type?: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
191
202
  };
192
203
  hasSource?: boolean;
193
204
  };
@@ -301,13 +312,13 @@ export declare class AreaDocumentation {
301
312
  };
302
313
  persistentId?: string;
303
314
  data?: {
304
- sceneNodeId?: string;
305
315
  format?: "Png" | "Svg";
306
316
  scale?: number;
317
+ sceneNodeId?: string;
307
318
  renderState?: "Success" | "InProgress" | "Failed";
308
319
  renderedImage?: {
309
- url?: string;
310
320
  width?: number;
321
+ url?: string;
311
322
  height?: number;
312
323
  resourceId?: string;
313
324
  format?: "Png" | "Svg";
@@ -315,7 +326,7 @@ export declare class AreaDocumentation {
315
326
  originKey?: string;
316
327
  };
317
328
  renderError?: {
318
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
329
+ type?: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
319
330
  };
320
331
  hasSource?: boolean;
321
332
  };
@@ -429,13 +440,13 @@ export declare class AreaDocumentation {
429
440
  };
430
441
  persistentId?: string;
431
442
  data?: {
432
- sceneNodeId?: string;
433
443
  format?: "Png" | "Svg";
434
444
  scale?: number;
445
+ sceneNodeId?: string;
435
446
  renderState?: "Success" | "InProgress" | "Failed";
436
447
  renderedImage?: {
437
- url?: string;
438
448
  width?: number;
449
+ url?: string;
439
450
  height?: number;
440
451
  resourceId?: string;
441
452
  format?: "Png" | "Svg";
@@ -443,7 +454,7 @@ export declare class AreaDocumentation {
443
454
  originKey?: string;
444
455
  };
445
456
  renderError?: {
446
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
457
+ type?: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
447
458
  };
448
459
  hasSource?: boolean;
449
460
  };
@@ -596,13 +607,13 @@ export declare class AreaDocumentation {
596
607
  };
597
608
  persistentId?: string;
598
609
  data?: {
599
- sceneNodeId?: string;
600
610
  format?: "Png" | "Svg";
601
611
  scale?: number;
612
+ sceneNodeId?: string;
602
613
  renderState?: "Success" | "InProgress" | "Failed";
603
614
  renderedImage?: {
604
- url?: string;
605
615
  width?: number;
616
+ url?: string;
606
617
  height?: number;
607
618
  resourceId?: string;
608
619
  format?: "Png" | "Svg";
@@ -610,7 +621,7 @@ export declare class AreaDocumentation {
610
621
  originKey?: string;
611
622
  };
612
623
  renderError?: {
613
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
624
+ type?: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
614
625
  };
615
626
  hasSource?: boolean;
616
627
  };
@@ -676,6 +687,10 @@ export declare class AreaDocumentation {
676
687
  * @returns Room ID that can be immediately used to join the multiplayer room
677
688
  */
678
689
  getDocumentationPageRoomId(from: RemoteWorkspaceVersionIdentifier, pageId: string): Promise<string>;
690
+ listPageHistoryVersions(from: RemoteWorkspaceVersionIdentifier, pageId: string): Promise<PageHistoryVersion[]>;
691
+ getPageHistoryVersion(from: RemoteWorkspaceVersionIdentifier, pageId: string, pageHistoryVersionId: string): Promise<PageHistoryVersionContent>;
692
+ createPageHistoryVersion(from: RemoteWorkspaceVersionIdentifier, pageId: string, payload: DTOPageHistoryVersionCreatePayload): Promise<PageHistoryVersion>;
693
+ restorePageHistoryVersion(from: RemoteWorkspaceVersionIdentifier, pageId: string, pageHistoryVersionId: string): Promise<PageHistoryVersion>;
679
694
  /** Get id of the room for a specific design system and version. This room contains doc structure
680
695
  * @param from - Remote version to fetch from
681
696
  * @returns Room ID that can be immediately used to join the multiplayer room
@@ -0,0 +1,35 @@
1
+ import type { DTODocumentationMarkdownValidateResponse, DTODocumentationMarkdownWriteResponse } from "@supernova-studio/client";
2
+ import { DataCore } from "../data/SDKDataCore";
3
+ import { RemoteVersionIdentifier } from "./SDKRemoteIdentifiers";
4
+ /** Result of validating markdown before writing it into a documentation page. */
5
+ export type MarkdownValidationResult = DTODocumentationMarkdownValidateResponse;
6
+ /** Result of writing markdown into a documentation page. */
7
+ export type MarkdownWriteResult = DTODocumentationMarkdownWriteResponse;
8
+ export declare class SDKAreaImport {
9
+ /** Internal: Engine */
10
+ private dataCore;
11
+ constructor(dataCore: DataCore);
12
+ /**
13
+ * Validate documentation MDX-lite without writing.
14
+ *
15
+ * This is an optional preflight for inspecting unsupported content.
16
+ * `writeMarkdownToPage` runs the same validation before updating the page.
17
+ * See `docs/markdown-import.md` for the supported syntax.
18
+ *
19
+ * @param from - Remote version to validate against
20
+ * @param markdown - Markdown / MDX-lite source
21
+ */
22
+ validateMarkdown(from: RemoteVersionIdentifier, markdown: string): Promise<MarkdownValidationResult>;
23
+ /**
24
+ * Validate documentation MDX-lite and replace the target page's content.
25
+ *
26
+ * Invalid input rejects without changing the page. Use `validateMarkdown` when
27
+ * validation needs to run separately from the write.
28
+ * See `docs/markdown-import.md` for the supported syntax.
29
+ *
30
+ * @param from - Remote version to write into
31
+ * @param pageId - Target documentation page id
32
+ * @param markdown - Markdown / MDX-lite source
33
+ */
34
+ writeMarkdownToPage(from: RemoteVersionIdentifier, pageId: string, markdown: string): Promise<MarkdownWriteResult>;
35
+ }
@@ -1,4 +1,4 @@
1
- import { DTOMCPStreamUpdateInput } from "@supernova-studio/client";
1
+ import { DTOMCPConsumer, DTOMCPStreamUpdateInput } from "@supernova-studio/client";
2
2
  import { MCPStream } from "../../model/mcp/SDKMCPStream";
3
3
  import { DataCore } from "../data/SDKDataCore";
4
4
  export declare class AreaMCP {
@@ -15,6 +15,24 @@ export declare class AreaMCP {
15
15
  * @returns The user's MCPStream object.
16
16
  */
17
17
  getUserMCPStream(): Promise<MCPStream>;
18
+ /**
19
+ * Lists the MCP consumers (users who have used MCP) of a workspace.
20
+ * Optionally narrows the results to a specific context or design system.
21
+ * @param workspaceId - The ID of the workspace.
22
+ * @param contextId - Optional context to filter by.
23
+ * @param designSystemId - Optional design system to filter by.
24
+ * @returns The list of MCP consumers.
25
+ */
26
+ listConsumers(workspaceId: string, contextId?: string, designSystemId?: string): Promise<DTOMCPConsumer[]>;
27
+ /**
28
+ * Returns the effective MCP consumer count for a workspace.
29
+ * Counts only billable viewers, unlike `listConsumers`, whose length includes paid seats.
30
+ * @param workspaceId - The ID of the workspace.
31
+ * @param contextId - Optional context to filter by.
32
+ * @param designSystemId - Optional design system to filter by.
33
+ * @returns The effective MCP consumer count.
34
+ */
35
+ getConsumerCount(workspaceId: string, contextId?: string, designSystemId?: string): Promise<number>;
18
36
  /**
19
37
  * Updates the user's MCP stream with the provided data.
20
38
  * @param data - The update input containing optional projectFeatureId and projectDocumentId.