@supernova-studio/supernova-sdk-beta 2.4.6 → 2.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/build/types/core/SDKSupernova.d.ts +9 -0
- package/build/types/core/areas/SDKAreaActivityEvents.d.ts +7 -0
- package/build/types/core/areas/SDKAreaAgentChats.d.ts +12 -0
- package/build/types/core/areas/SDKAreaBulkOperations.d.ts +76 -74
- package/build/types/core/areas/SDKAreaDataSources.d.ts +1 -1
- package/build/types/core/areas/SDKAreaDesignSystems.d.ts +13 -13
- package/build/types/core/areas/SDKAreaDocumentation.d.ts +304 -289
- package/build/types/core/areas/SDKAreaImport.d.ts +35 -0
- package/build/types/core/areas/SDKAreaMCP.d.ts +26 -1
- package/build/types/core/areas/SDKAreaProjects.d.ts +1084 -1100
- package/build/types/core/areas/SDKAreaRawData.d.ts +1040 -1039
- package/build/types/core/areas/SDKAreaResources.d.ts +90 -90
- package/build/types/core/areas/SDKAreaSanboxes.d.ts +9 -9
- package/build/types/core/areas/SDKAreaThreads.d.ts +67 -67
- package/build/types/core/areas/SDKAreaTokens.d.ts +17 -12
- package/build/types/core/areas/SDKAreaWorkspaces.d.ts +1 -1
- package/build/types/core/data/SDKDataCore.d.ts +1771 -1746
- package/build/types/core/data/SDKDataCoreCached.d.ts +2 -2
- package/build/types/core/data/requests/SDKDataCoreReadRequests.d.ts +647 -593
- package/build/types/core/data/requests/SDKDataCoreWriteRequests.d.ts +2515 -2489
- package/build/types/core/resolvers/SDKDocsEntityItemResolver.d.ts +121 -121
- package/build/types/core/resolvers/SDKSnapshotTokenBuilder.d.ts +28 -0
- package/build/types/core/resolvers/SDKTokenResolver.d.ts +11 -9
- package/build/types/exports.d.ts +19 -11
- package/build/types/model/activity-events/SDKActivityEvent.d.ts +49 -0
- package/build/types/model/agent-chats/SDKAgentChat.d.ts +31 -0
- package/build/types/model/base/SDKDesignSystem.d.ts +3 -1
- package/build/types/model/datasets/SDKDataset.d.ts +15 -5
- package/build/types/model/docs/blocks/definition/SDKDocsBlockBehavior.d.ts +4 -1
- package/build/types/model/docs/blocks/definition/actual/context-mcp/SDKDocsBlockActualContextMcp.d.ts +2 -0
- package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +7 -24
- package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockBooleanProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +3 -6
- package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +3 -8
- package/build/types/model/docs/blocks/properties/SDKDocsBlockColorProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +7 -10
- package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockContextProperty.d.ts +16 -0
- package/build/types/model/docs/blocks/properties/SDKDocsBlockDividerProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +3 -6
- package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty.d.ts +7 -26
- package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty.d.ts +7 -22
- package/build/types/model/docs/blocks/properties/SDKDocsBlockFileProperty.d.ts +4 -9
- package/build/types/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +3 -10
- package/build/types/model/docs/blocks/properties/SDKDocsBlockMarkdownProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiRichTextProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiSelectProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockNumberProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextEditorProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +3 -7
- package/build/types/model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +4 -22
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTableProperty.d.ts +12 -28
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +7 -31
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockUrlProperty.d.ts +3 -2
- package/build/types/model/docs/sections/SDKDocsSection.d.ts +0 -31
- package/build/types/model/documentation/SDKPageHistoryVersion.d.ts +20 -0
- package/build/types/model/documentation/blocks/SDKDocumentationLegacyPageBlockContextMcp.d.ts +11 -0
- package/build/types/model/elements/SDKElementPropertyOption.d.ts +1 -2
- package/build/types/model/enums/SDKCodeLanguage.d.ts +1 -1
- package/build/types/model/enums/SDKDesignSystemRole.d.ts +1 -2
- package/build/types/model/enums/SDKDocsBlockBehaviorSelectionType.d.ts +4 -2
- package/build/types/model/enums/SDKDocsBlockContainerSize.d.ts +6 -4
- package/build/types/model/enums/SDKDocsBlockItemPropertyType.d.ts +3 -1
- package/build/types/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +1 -0
- package/build/types/model/enums/SDKTokenType.d.ts +2 -0
- package/build/types/model/enums/SDKWorkspaceSeatType.d.ts +14 -3
- package/build/types/model/exporters/SDKExporter.d.ts +2 -2
- package/build/types/model/exporters/SDKPipeline.d.ts +1 -1
- package/build/types/model/membership/SDKMembership.d.ts +1 -1
- package/build/types/model/support/SDKSource.d.ts +4 -3
- package/build/types/model/themes/SDKTokenThemeOverride.d.ts +1 -0
- package/build/types/model/tokens/remote/SDKRemoteTokenModel.d.ts +34 -1
- package/build/types/model/tokens/remote/SDKRemoteTokenValue.d.ts +1 -1
- package/build/types/model/workspaces/SDKWorkspaceProductPrice.d.ts +6 -3
- package/build/types/model/workspaces/SDKWorkspaceSubscription.d.ts +2 -6
- package/build/types/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +6 -3
- package/build/types/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +29 -3
- package/build/types/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +31 -0
- package/build/types/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/index.d.ts +4 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/lenient-resolve.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/placeholder.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/preserve.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/strict.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/types.d.ts +33 -0
- package/build/types/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +9 -0
- package/build/types/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +1 -1
- package/build/types/utils/TokenUtils.d.ts +1 -1
- package/package.json +17 -21
- package/build/types/model/enums/SDKDocsBlockTokenNameFormat.d.ts +0 -10
|
@@ -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, DTOMCPAnalyticsFiltersQuery, DTOMCPAnalyticsResponse, 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,31 @@ 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>;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves MCP analytics for a design system and date range.
|
|
38
|
+
* @param designSystemId - The ID of the design system.
|
|
39
|
+
* @param filters - The connection and date filters.
|
|
40
|
+
* @returns The MCP analytics data.
|
|
41
|
+
*/
|
|
42
|
+
getAnalytics(designSystemId: string, filters: Pick<DTOMCPAnalyticsFiltersQuery, "connectionType" | "contextIds" | "start" | "end">): Promise<DTOMCPAnalyticsResponse>;
|
|
18
43
|
/**
|
|
19
44
|
* Updates the user's MCP stream with the provided data.
|
|
20
45
|
* @param data - The update input containing optional projectFeatureId and projectDocumentId.
|