@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.
Files changed (99) 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 +76 -74
  7. package/build/types/core/areas/SDKAreaDataSources.d.ts +1 -1
  8. package/build/types/core/areas/SDKAreaDesignSystems.d.ts +13 -13
  9. package/build/types/core/areas/SDKAreaDocumentation.d.ts +304 -289
  10. package/build/types/core/areas/SDKAreaImport.d.ts +35 -0
  11. package/build/types/core/areas/SDKAreaMCP.d.ts +26 -1
  12. package/build/types/core/areas/SDKAreaProjects.d.ts +1084 -1100
  13. package/build/types/core/areas/SDKAreaRawData.d.ts +1040 -1039
  14. package/build/types/core/areas/SDKAreaResources.d.ts +90 -90
  15. package/build/types/core/areas/SDKAreaSanboxes.d.ts +9 -9
  16. package/build/types/core/areas/SDKAreaThreads.d.ts +67 -67
  17. package/build/types/core/areas/SDKAreaTokens.d.ts +17 -12
  18. package/build/types/core/areas/SDKAreaWorkspaces.d.ts +1 -1
  19. package/build/types/core/data/SDKDataCore.d.ts +1771 -1746
  20. package/build/types/core/data/SDKDataCoreCached.d.ts +2 -2
  21. package/build/types/core/data/requests/SDKDataCoreReadRequests.d.ts +647 -593
  22. package/build/types/core/data/requests/SDKDataCoreWriteRequests.d.ts +2515 -2489
  23. package/build/types/core/resolvers/SDKDocsEntityItemResolver.d.ts +121 -121
  24. package/build/types/core/resolvers/SDKSnapshotTokenBuilder.d.ts +28 -0
  25. package/build/types/core/resolvers/SDKTokenResolver.d.ts +11 -9
  26. package/build/types/exports.d.ts +19 -11
  27. package/build/types/model/activity-events/SDKActivityEvent.d.ts +49 -0
  28. package/build/types/model/agent-chats/SDKAgentChat.d.ts +31 -0
  29. package/build/types/model/base/SDKDesignSystem.d.ts +3 -1
  30. package/build/types/model/datasets/SDKDataset.d.ts +15 -5
  31. package/build/types/model/docs/blocks/definition/SDKDocsBlockBehavior.d.ts +4 -1
  32. package/build/types/model/docs/blocks/definition/actual/context-mcp/SDKDocsBlockActualContextMcp.d.ts +2 -0
  33. package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +7 -24
  34. package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty.d.ts +3 -2
  35. package/build/types/model/docs/blocks/properties/SDKDocsBlockBooleanProperty.d.ts +3 -2
  36. package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +3 -6
  37. package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +3 -8
  38. package/build/types/model/docs/blocks/properties/SDKDocsBlockColorProperty.d.ts +3 -3
  39. package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +7 -10
  40. package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty.d.ts +3 -2
  41. package/build/types/model/docs/blocks/properties/SDKDocsBlockContextProperty.d.ts +16 -0
  42. package/build/types/model/docs/blocks/properties/SDKDocsBlockDividerProperty.d.ts +3 -2
  43. package/build/types/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +3 -6
  44. package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty.d.ts +7 -26
  45. package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty.d.ts +7 -22
  46. package/build/types/model/docs/blocks/properties/SDKDocsBlockFileProperty.d.ts +4 -9
  47. package/build/types/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +3 -10
  48. package/build/types/model/docs/blocks/properties/SDKDocsBlockMarkdownProperty.d.ts +3 -2
  49. package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiRichTextProperty.d.ts +3 -3
  50. package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiSelectProperty.d.ts +3 -2
  51. package/build/types/model/docs/blocks/properties/SDKDocsBlockNumberProperty.d.ts +3 -2
  52. package/build/types/model/docs/blocks/properties/SDKDocsBlockProperty.d.ts +3 -3
  53. package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextEditorProperty.d.ts +3 -3
  54. package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +3 -7
  55. package/build/types/model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty.d.ts +3 -2
  56. package/build/types/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +4 -22
  57. package/build/types/model/docs/blocks/properties/SDKDocsBlockTableProperty.d.ts +12 -28
  58. package/build/types/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +3 -2
  59. package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +7 -31
  60. package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty.d.ts +3 -2
  61. package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty.d.ts +3 -3
  62. package/build/types/model/docs/blocks/properties/SDKDocsBlockUrlProperty.d.ts +3 -2
  63. package/build/types/model/docs/sections/SDKDocsSection.d.ts +0 -31
  64. package/build/types/model/documentation/SDKPageHistoryVersion.d.ts +20 -0
  65. package/build/types/model/documentation/blocks/SDKDocumentationLegacyPageBlockContextMcp.d.ts +11 -0
  66. package/build/types/model/elements/SDKElementPropertyOption.d.ts +1 -2
  67. package/build/types/model/enums/SDKCodeLanguage.d.ts +1 -1
  68. package/build/types/model/enums/SDKDesignSystemRole.d.ts +1 -2
  69. package/build/types/model/enums/SDKDocsBlockBehaviorSelectionType.d.ts +4 -2
  70. package/build/types/model/enums/SDKDocsBlockContainerSize.d.ts +6 -4
  71. package/build/types/model/enums/SDKDocsBlockItemPropertyType.d.ts +3 -1
  72. package/build/types/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +1 -0
  73. package/build/types/model/enums/SDKTokenType.d.ts +2 -0
  74. package/build/types/model/enums/SDKWorkspaceSeatType.d.ts +14 -3
  75. package/build/types/model/exporters/SDKExporter.d.ts +2 -2
  76. package/build/types/model/exporters/SDKPipeline.d.ts +1 -1
  77. package/build/types/model/membership/SDKMembership.d.ts +1 -1
  78. package/build/types/model/support/SDKSource.d.ts +4 -3
  79. package/build/types/model/themes/SDKTokenThemeOverride.d.ts +1 -0
  80. package/build/types/model/tokens/remote/SDKRemoteTokenModel.d.ts +34 -1
  81. package/build/types/model/tokens/remote/SDKRemoteTokenValue.d.ts +1 -1
  82. package/build/types/model/workspaces/SDKWorkspaceProductPrice.d.ts +6 -3
  83. package/build/types/model/workspaces/SDKWorkspaceSubscription.d.ts +2 -6
  84. package/build/types/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +6 -3
  85. package/build/types/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +29 -3
  86. package/build/types/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +2 -0
  87. package/build/types/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +31 -0
  88. package/build/types/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +2 -0
  89. package/build/types/tools/design-tokens/utilities/unresolvable-modes/index.d.ts +4 -0
  90. package/build/types/tools/design-tokens/utilities/unresolvable-modes/lenient-resolve.d.ts +2 -0
  91. package/build/types/tools/design-tokens/utilities/unresolvable-modes/placeholder.d.ts +2 -0
  92. package/build/types/tools/design-tokens/utilities/unresolvable-modes/preserve.d.ts +2 -0
  93. package/build/types/tools/design-tokens/utilities/unresolvable-modes/strict.d.ts +2 -0
  94. package/build/types/tools/design-tokens/utilities/unresolvable-modes/types.d.ts +33 -0
  95. package/build/types/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +9 -0
  96. package/build/types/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +1 -1
  97. package/build/types/utils/TokenUtils.d.ts +1 -1
  98. package/package.json +17 -21
  99. 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.