@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,5 +1,6 @@
1
+ import type { PageBlockItemEmbedValue } from "@supernova-studio/model";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
- import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel, DocsBlockPropertyData } from "./SDKDocsBlockProperty";
3
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
4
  /** EmbedUrl property - Additional non-value options */
4
5
  export type DocsBlockEmbedUrlPropertyOptions = {
5
6
  /** Defines what should be the default height of the embed */
@@ -14,11 +15,7 @@ export type DocsBlockEmbedUrlPropertyOptions = {
14
15
  isInteractive?: boolean;
15
16
  };
16
17
  /** EmbedUrl property - Data */
17
- export type DocsBlockEmbedUrlPropertyData = DocsBlockPropertyData<string | undefined> & {
18
- alt?: string;
19
- caption?: string;
20
- height?: number;
21
- };
18
+ export type DocsBlockEmbedUrlPropertyData = PageBlockItemEmbedValue;
22
19
  /** EmbedUrl property - Definition model */
23
20
  export type DocsBlockEmbedUrlPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockEmbedUrlPropertyOptions;
24
21
  /** EmbedUrl property - Definition */
@@ -1,6 +1,6 @@
1
- import { DocsBlockContainerSize } from "../../../enums/SDKDocsBlockContainerSize";
1
+ import type { PageBlockItemFigmaComponentValue } from "@supernova-studio/model";
2
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
3
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
4
4
  /** Figma Component property - Additional non-value options */
5
5
  export type DocsBlockFigmaComponentPropertyOptions = {
6
6
  /** How should the Figma component data be rendered in editor.
@@ -14,30 +14,11 @@ export type DocsBlockFigmaComponentPropertyOptions = {
14
14
  invertPropertySelection?: boolean;
15
15
  };
16
16
  /** Figma Component property - Data */
17
- export type DocsBlockFigmaComponentPropertyData = DocsBlockPropertyData<Array<{
18
- entityId: string;
19
- entityType: "FigmaComponent";
20
- entityMeta?: {
21
- selectedComponentProperties?: Array<string>;
22
- selectedComponentVariants?: Record<string, Array<string>>;
23
- };
24
- }>> & {
25
- /** Preview container size */
26
- previewContainerSize?: DocsBlockContainerSize.centered | DocsBlockContainerSize.naturalHeight;
27
- /** Preview container height */
28
- previewContainerHeight?: number;
29
- /** If enabled, the component title will be visible in the block */
30
- showComponentName?: boolean;
31
- /** If enabled, the component description list will be visible in the block */
32
- showComponentDescription?: boolean;
33
- /** If enabled, the list of properties list will be visible in the block */
34
- showPropertyList?: boolean;
35
- /**
36
- * Defines the order for preview rendering using a list of entity IDs.
37
- * If not specified, the default order is applied.
38
- */
39
- previewOrderIds?: Array<string>;
40
- };
17
+ export type DocsBlockFigmaComponentPropertyData = PageBlockItemFigmaComponentValue;
18
+ /** Figma Component property - Value */
19
+ export type DocsBlockFigmaComponentPropertyValue = DocsBlockFigmaComponentPropertyData["value"];
20
+ /** Figma Component property - Entity */
21
+ export type DocsBlockFigmaComponentPropertyEntity = DocsBlockFigmaComponentPropertyValue[number];
41
22
  /** Figma Component property - Definition model */
42
23
  export type DocsBlockFigmaComponentPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockFigmaComponentPropertyOptions;
43
24
  /** Figma Component property - Definition */
@@ -1,29 +1,14 @@
1
- import { DocsBlockContainerSize } from "../../../enums/SDKDocsBlockContainerSize";
1
+ import type { PageBlockItemFigmaNodeValue } from "@supernova-studio/model";
2
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
3
- import { DocsColorRef } from "../support/SDKDocsColorRef";
4
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
5
4
  /** FigmaNode property - Additional non-value options */
6
5
  export type DocsBlockFigmaNodePropertyOptions = Record<string, never>;
7
6
  /** FigmaNode property - Data */
8
- export type DocsBlockFigmaNodePropertyData = DocsBlockPropertyData<Array<{
9
- entityId: string;
10
- entityMeta?: {
11
- title?: string;
12
- description?: string;
13
- backgroundColor?: DocsColorRef | null;
14
- };
15
- }>> & {
16
- /** Behavior of container size */
17
- previewContainerSize?: DocsBlockContainerSize.centered | DocsBlockContainerSize.naturalHeight;
18
- /** Preview container height */
19
- previewContainerHeight?: number;
20
- /** If enabled, search is visible */
21
- showSearch?: boolean;
22
- /** Number of columns */
23
- columns?: number;
24
- /** Shows details of each frame, or hides them all */
25
- showFrameDetails?: boolean;
26
- };
7
+ export type DocsBlockFigmaNodePropertyData = PageBlockItemFigmaNodeValue;
8
+ /** FigmaNode property - Value */
9
+ export type DocsBlockFigmaNodePropertyValue = DocsBlockFigmaNodePropertyData["value"];
10
+ /** FigmaNode property - Entity */
11
+ export type DocsBlockFigmaNodePropertyEntity = DocsBlockFigmaNodePropertyValue[number];
27
12
  /** FigmaNode property - Definition model */
28
13
  export type DocsBlockFigmaNodePropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockFigmaNodePropertyOptions;
29
14
  /** FigmaNode property - Definition */
@@ -1,19 +1,14 @@
1
+ import type { PageBlockItemFileValue } from "@supernova-studio/model";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
4
  /** File property - Additional non-value options */
4
5
  export type DocsBlockFilePropertyOptions = {
5
6
  renderLayoutAs: "iconOnTop" | "iconOnLeft";
6
7
  editorInteractivity?: "edit" | "viewOnly";
7
8
  };
8
9
  /** File property - Data */
9
- export type DocsBlockFilePropertyValue = Array<{
10
- entityId: string;
11
- entityMeta?: {
12
- title?: string;
13
- description?: string;
14
- };
15
- }>;
16
- export type DocsBlockFilePropertyData = DocsBlockPropertyData<DocsBlockFilePropertyValue>;
10
+ export type DocsBlockFilePropertyValue = PageBlockItemFileValue["value"];
11
+ export type DocsBlockFilePropertyData = PageBlockItemFileValue;
17
12
  /** File property - Definition model */
18
13
  export type DocsBlockFilePropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockFilePropertyOptions;
19
14
  /** File property - Definition */
@@ -1,9 +1,8 @@
1
- import { Alignment } from "../../../enums/SDKAlignment";
1
+ import type { PageBlockItemImageValue } from "@supernova-studio/model";
2
2
  import { DocsBlockImagePropertyAspectRatio } from "../../../enums/SDKDocsBlockImagePropertyAspectRatio";
3
3
  import { DocsBlockImagePropertyWidth } from "../../../enums/SDKDocsBlockImagePropertyWidth";
4
4
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
5
- import { DocsImageRef } from "../support/SDKDocsImageRef";
6
- import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel, DocsBlockPropertyData } from "./SDKDocsBlockProperty";
5
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
7
6
  /** Image property - Additional non-value options */
8
7
  export type DocsBlockImagePropertyOptions = {
9
8
  width?: DocsBlockImagePropertyWidth;
@@ -17,13 +16,7 @@ export type DocsBlockImagePropertyOptions = {
17
16
  editorInteractivity?: "edit" | "viewOnly";
18
17
  };
19
18
  /** Image property - Data */
20
- export type DocsBlockImagePropertyData = DocsBlockPropertyData<DocsImageRef | undefined> & {
21
- alt: string;
22
- caption?: string;
23
- alignment?: Alignment;
24
- openLightbox?: boolean;
25
- isBordered?: boolean;
26
- };
19
+ export type DocsBlockImagePropertyData = PageBlockItemImageValue;
27
20
  /** Image property - Definition model */
28
21
  export type DocsBlockImagePropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockImagePropertyOptions;
29
22
  /** Image property - Definition */
@@ -1,12 +1,13 @@
1
+ import type { PageBlockItemMarkdownValue } from "@supernova-studio/model";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
4
  /** Markdown property - Additional non-value options */
4
5
  export type DocsBlockMarkdownPropertyOptions = {
5
6
  /** Defines how to validate the markdown URL */
6
7
  urlValidationRegex?: string;
7
8
  };
8
9
  /** Markdown property - Data */
9
- export type DocsBlockMarkdownPropertyData = DocsBlockPropertyData<string> & Record<string, never>;
10
+ export type DocsBlockMarkdownPropertyData = PageBlockItemMarkdownValue;
10
11
  /** Markdown property - Definition model */
11
12
  export type DocsBlockMarkdownPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockMarkdownPropertyOptions;
12
13
  /** Markdown property - Definition */
@@ -1,7 +1,7 @@
1
- import { DocumentationLegacyRichTextModel } from "../../../documentation/SDKDocumentationLegacyRichText";
1
+ import type { PageBlockItemMultiRichTextValue } from "@supernova-studio/model";
2
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
3
3
  import { DocsBlockMultiRichTextPropertyStyle } from "../../../enums/SDKDocsBlockMultiRichTextPropertyStyle";
4
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
4
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
5
5
  /** RichText property - Additional non-value options */
6
6
  export type DocsBlockMultiRichTextPropertyOptions = {
7
7
  /** Placeholder to show when rich text area is empty */
@@ -10,7 +10,7 @@ export type DocsBlockMultiRichTextPropertyOptions = {
10
10
  multiRichTextStyle?: DocsBlockMultiRichTextPropertyStyle;
11
11
  };
12
12
  /** RichText property - Data */
13
- export type DocsBlockMultiRichTextPropertyData = DocsBlockPropertyData<Array<DocumentationLegacyRichTextModel>>;
13
+ export type DocsBlockMultiRichTextPropertyData = PageBlockItemMultiRichTextValue;
14
14
  /** RichText property - Definition model */
15
15
  export type DocsBlockRichTextPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockMultiRichTextPropertyOptions;
16
16
  /** RichText property - Definition */
@@ -1,6 +1,7 @@
1
+ import type { PageBlockItemMultiSelectValue } from "@supernova-studio/model";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
3
  import { DocsBlockOptionRenderingStyle } from "../../../enums/SDKDocsBlockOptionRenderStyle";
3
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
4
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
4
5
  /** MultiSelect property - Additional non-value options */
5
6
  export type DocsBlockMultiSelectPropertyOptions = {
6
7
  defaultChoices: Array<string>;
@@ -12,7 +13,7 @@ export type DocsBlockMultiSelectPropertyOptions = {
12
13
  multiSelectStyle?: Exclude<DocsBlockOptionRenderingStyle, DocsBlockOptionRenderingStyle.toggleButton>;
13
14
  };
14
15
  /** MultiSelect property - Data */
15
- export type DocsBlockMultiSelectPropertyData = DocsBlockPropertyData<Array<string>> & Record<string, never>;
16
+ export type DocsBlockMultiSelectPropertyData = PageBlockItemMultiSelectValue;
16
17
  /** MultiSelect property - Definition model */
17
18
  export type DocsBlockMultiSelectPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockMultiSelectPropertyOptions;
18
19
  /** MultiSelect property - Definition */
@@ -1,5 +1,6 @@
1
+ import type { PageBlockItemNumberValue } from "@supernova-studio/model";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
4
  /** Number property - Additional non-value options */
4
5
  export type DocsBlockNumberPropertyOptions = {
5
6
  /** Default value to set when block is created */
@@ -14,7 +15,7 @@ export type DocsBlockNumberPropertyOptions = {
14
15
  placeholder?: string;
15
16
  };
16
17
  /** Number property - Data */
17
- export type DocsBlockNumberPropertyData = DocsBlockPropertyData<number> & Record<string, never>;
18
+ export type DocsBlockNumberPropertyData = PageBlockItemNumberValue;
18
19
  /** Number property - Definition model */
19
20
  export type DocsBlockNumberPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockNumberPropertyOptions;
20
21
  /** Number property - Definition */
@@ -1,12 +1,12 @@
1
- import { PageBlockDefinitionProperty } from "@supernova-studio/model";
1
+ import type { PageBlockDefinitionProperty } from "@supernova-studio/model";
2
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
3
3
  export type DocsBlockPropertyDefinitionModel = PageBlockDefinitionProperty;
4
4
  export type DocsBlockPropertyData<T> = {
5
5
  value: T;
6
6
  };
7
7
  /** Generic property definition for when we don't care about specific types in options, just want to use the property high-level data */
8
- export type DocsBlockItemPropertyAnyDefinition = DocsBlockPropertyDefinition<object, DocsBlockPropertyData<unknown>>;
9
- export declare class DocsBlockPropertyDefinition<T extends object, D extends DocsBlockPropertyData<unknown>> {
8
+ export type DocsBlockItemPropertyAnyDefinition = DocsBlockPropertyDefinition<object, Partial<DocsBlockPropertyData<unknown>>>;
9
+ export declare class DocsBlockPropertyDefinition<T extends object, D extends object> {
10
10
  /** Property id, validated to be unique within a block, but not necessarily unique across all blocks */
11
11
  id: string;
12
12
  /** Human readable name that will show in the editor */
@@ -1,7 +1,7 @@
1
- import { PageBlockItemRichTextEditorValue } from "@supernova-studio/model";
1
+ import type { PageBlockItemRichTextEditorValue } from "@supernova-studio/model";
2
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
3
3
  import { DocsBlockRichTextEditorPropertyStyle } from "../../../enums/SDKDocsBlockRichTextEditorPropertyStyle";
4
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
4
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
5
5
  /** RichTextEditor property - Additional non-value options */
6
6
  export type DocsBlockRichTextEditorPropertyOptions = {
7
7
  /** Placeholder to show when rich text area is empty */
@@ -10,7 +10,7 @@ export type DocsBlockRichTextEditorPropertyOptions = {
10
10
  allowedInlineStyles?: Array<DocsBlockRichTextEditorPropertyStyle>;
11
11
  };
12
12
  /** RichTextEditor property - Data */
13
- export type DocsBlockRichTextEditorPropertyData = DocsBlockPropertyData<PageBlockItemRichTextEditorValue["value"]>;
13
+ export type DocsBlockRichTextEditorPropertyData = PageBlockItemRichTextEditorValue;
14
14
  /** RichTextEditor property - Definition model */
15
15
  export type DocsBlockRichTextEditorPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockRichTextEditorPropertyOptions;
16
16
  /** RichTextEditor property - Definition */
@@ -1,8 +1,7 @@
1
- import { DocumentationLegacyRichTextModel } from "../../../documentation/SDKDocumentationLegacyRichText";
1
+ import type { PageBlockItemRichTextValue } from "@supernova-studio/model";
2
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
3
3
  import { DocsBlockRichTextPropertyStyle } from "../../../enums/SDKDocsBlockRichTextPropertyStyle";
4
- import { DocumentationLegacyCalloutType } from "../../../enums/SDKDocumentationLegacyCalloutType";
5
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
4
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
6
5
  /** RichText property - Additional non-value options */
7
6
  export type DocsBlockRichTextPropertyOptions = {
8
7
  /** Placeholder to show when rich text area is empty */
@@ -11,10 +10,7 @@ export type DocsBlockRichTextPropertyOptions = {
11
10
  richTextStyle?: DocsBlockRichTextPropertyStyle;
12
11
  };
13
12
  /** RichText property - Data */
14
- export type DocsBlockRichTextPropertyData = DocsBlockPropertyData<DocumentationLegacyRichTextModel> & {
15
- /** Selected token ids */
16
- calloutType?: DocumentationLegacyCalloutType;
17
- };
13
+ export type DocsBlockRichTextPropertyData = PageBlockItemRichTextValue;
18
14
  /** RichText property - Definition model */
19
15
  export type DocsBlockRichTextPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockRichTextPropertyOptions;
20
16
  /** RichText property - Definition */
@@ -1,8 +1,9 @@
1
+ import type { PageBlockItemSingleSelectValue } from "@supernova-studio/model";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
3
  import { DocsBlockOptionColor } from "../../../enums/SDKDocsBlockOptionColor";
3
4
  import { DocsBlockOptionRenderingStyle } from "../../../enums/SDKDocsBlockOptionRenderStyle";
4
5
  import { IconSet } from "../../../enums/SDKIconSet";
5
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
6
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
6
7
  /** SingleSelect property - Additional non-value options */
7
8
  export type DocsBlockSingleSelectPropertyOptions = {
8
9
  /** Default choices to set when block is created */
@@ -24,7 +25,7 @@ export type DocsBlockSingleSelectPropertyOptions = {
24
25
  singleSelectStyle?: DocsBlockOptionRenderingStyle;
25
26
  };
26
27
  /** SingleSelect property - Data */
27
- export type DocsBlockSingleSelectPropertyData = DocsBlockPropertyData<string> & Record<string, never>;
28
+ export type DocsBlockSingleSelectPropertyData = PageBlockItemSingleSelectValue;
28
29
  /** SingleSelect property - Definition model */
29
30
  export type DocsBlockSingleSelectPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockSingleSelectPropertyOptions;
30
31
  /** SingleSelect property - Definition */
@@ -1,4 +1,5 @@
1
- import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel, DocsBlockPropertyData } from "./SDKDocsBlockProperty";
1
+ import type { PageBlockItemStorybookValue } from "@supernova-studio/model";
2
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
2
3
  /** Storybook property - Additional non-value options */
3
4
  export type DocsBlockStorybookPropertyOptions = {
4
5
  /** Defines what should be the default height of the embed */
@@ -12,28 +13,9 @@ export type DocsBlockStorybookPropertyOptions = {
12
13
  /** Defines how the storybook should be rendered in the editor */
13
14
  renderLayoutAs?: "Playground" | "Iframe";
14
15
  };
15
- export type DocsBlockStorybookValue = Array<{
16
- entityId?: string;
17
- embed?: {
18
- inputUrl: string;
19
- embedUrl: string;
20
- };
21
- entityMeta?: {
22
- caption?: string;
23
- height?: number;
24
- hiddenProps?: Array<string>;
25
- propValues?: Record<string, unknown>;
26
- };
27
- }> | undefined;
16
+ export type DocsBlockStorybookValue = PageBlockItemStorybookValue["value"];
28
17
  /** Storybook property - Data */
29
- export type DocsBlockStorybookPropertyData = DocsBlockPropertyData<DocsBlockStorybookValue> & {
30
- showCode?: boolean;
31
- showFooter?: boolean;
32
- showThemeSwitcher?: boolean;
33
- showProperties?: boolean;
34
- showDescription?: boolean;
35
- showDefaults?: boolean;
36
- };
18
+ export type DocsBlockStorybookPropertyData = PageBlockItemStorybookValue;
37
19
  /** Storybook property - Definition model */
38
20
  export type DocsBlockStorybookPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockStorybookPropertyOptions;
39
21
  /** Storybook property - Definition */
@@ -1,35 +1,19 @@
1
- import { DocumentationLegacyRichTextModel } from "../../../documentation/SDKDocumentationLegacyRichText";
1
+ import type { PageBlockItemTableImageNode, PageBlockItemTableNode, PageBlockItemTableRichTextNode, PageBlockItemTableValue } from "@supernova-studio/model";
2
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
3
- import { DocsImageRef } from "../support/SDKDocsImageRef";
4
- import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel, DocsBlockPropertyData } from "./SDKDocsBlockProperty";
3
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
5
4
  /** Table property - Additional non-value options */
6
5
  export type DocsBlockTablePropertyOptions = Record<string, never>;
7
- export type DocsBlockTableRichTextNode = {
8
- type: "RichText";
9
- value: DocumentationLegacyRichTextModel;
10
- };
11
- export type DocsBlockTableImageNode = {
12
- type: "Image";
13
- value: DocsImageRef;
14
- };
15
- export type DocsBlockTableMultiRichTextNode = {
16
- type: "MultiRichText";
17
- value: Array<DocumentationLegacyRichTextModel>;
18
- };
19
- export type DocsBlockTableNode = DocsBlockTableRichTextNode | DocsBlockTableImageNode | DocsBlockTableMultiRichTextNode;
6
+ export type DocsBlockTableRichTextNode = PageBlockItemTableRichTextNode;
7
+ export type DocsBlockTableImageNode = PageBlockItemTableImageNode;
8
+ export type DocsBlockTableNode = PageBlockItemTableNode;
20
9
  /** Table property - Data */
21
- export type DocsBlockTablePropertyData = DocsBlockPropertyData<Array<{
22
- cells: {
23
- id: string;
24
- alignment: "Left" | "Center" | "Right";
25
- columnWidth: number;
26
- nodes: Array<DocsBlockTableNode>;
27
- }[];
28
- }>> & {
29
- highlightHeaderColumn?: boolean;
30
- highlightHeaderRow?: boolean;
31
- showBorder?: boolean;
32
- };
10
+ export type DocsBlockTablePropertyData = PageBlockItemTableValue;
11
+ /** Table property - Value */
12
+ export type DocsBlockTablePropertyValue = DocsBlockTablePropertyData["value"];
13
+ /** Table property - Row */
14
+ export type DocsBlockTablePropertyRow = DocsBlockTablePropertyValue[number];
15
+ /** Table property - Cell */
16
+ export type DocsBlockTablePropertyCell = DocsBlockTablePropertyRow["cells"][number];
33
17
  /** Table property - Definition model */
34
18
  export type DocsBlockTablePropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockTablePropertyOptions;
35
19
  /** Table property - Definition */
@@ -1,7 +1,8 @@
1
+ import type { PageBlockItemTextValue } from "@supernova-studio/model";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
3
  import { DocsBlockTextPropertyColor } from "../../../enums/SDKDocsBlockTextPropertyColor";
3
4
  import { DocsBlockTextPropertyStyle } from "../../../enums/SDKDocsBlockTextPropertyStyle";
4
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
5
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
5
6
  /** Text property - Additional non-value options */
6
7
  export type DocsBlockTextPropertyOptions = {
7
8
  /** Field placeholder */
@@ -18,7 +19,7 @@ export type DocsBlockTextPropertyOptions = {
18
19
  editorInteractivity?: "edit" | "viewOnly";
19
20
  };
20
21
  /** Text property - Data */
21
- export type DocsBlockTextPropertyData = DocsBlockPropertyData<string> & Record<string, never>;
22
+ export type DocsBlockTextPropertyData = PageBlockItemTextValue;
22
23
  /** Text property - Definition model */
23
24
  export type DocsBlockTextPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockTextPropertyOptions;
24
25
  /** Text property - Definition */
@@ -1,7 +1,7 @@
1
+ import type { PageBlockItemTokenValue } from "@supernova-studio/model";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
- import { DocsBlockTokenNameFormat } from "../../../enums/SDKDocsBlockTokenNameFormat";
3
3
  import { TokenType } from "../../../enums/SDKTokenType";
4
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
4
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
5
5
  /** Token property - Additional non-value options */
6
6
  export type DocsBlockTokenPropertyOptions = {
7
7
  /** Token types that are allowed to be selected. All types allowed if nothing is provided */
@@ -16,35 +16,11 @@ export type DocsBlockTokenPropertyOptions = {
16
16
  allowNameFormatSelection?: boolean;
17
17
  };
18
18
  /** Token property - Data */
19
- export type DocsBlockTokenPropertyData = DocsBlockPropertyData<Array<{
20
- entityId: string;
21
- entityType: "Token" | "TokenGroup";
22
- entityMeta?: {
23
- showNestedGroups?: boolean;
24
- };
25
- }>> & {
26
- /** Selected token ids */
27
- selectedPropertyIds?: Array<string>;
28
- /** Swatches with selected theme ids */
29
- swatches?: Array<{
30
- id: string;
31
- selectedThemeIds: Array<string>;
32
- }>;
33
- /** Format of the token name */
34
- tokenNameFormat?: DocsBlockTokenNameFormat;
35
- /** Custom property id for token name format, only if tokenNameFormat is "CustomProperty" */
36
- tokenNameCustomPropertyId?: string;
37
- /**
38
- * Selected theme ids
39
- * @deprecated Swatches will be used instead
40
- */
41
- selectedThemeIds?: Array<string>;
42
- /**
43
- * Display mode of themes associated with the token property
44
- * @deprecated Swatches will be used instead
45
- */
46
- themeDisplayMode?: "Split" | "Override";
47
- };
19
+ export type DocsBlockTokenPropertyData = PageBlockItemTokenValue;
20
+ /** Token property - Value */
21
+ export type DocsBlockTokenPropertyValue = DocsBlockTokenPropertyData["value"];
22
+ /** Token property - Entity */
23
+ export type DocsBlockTokenPropertyEntity = DocsBlockTokenPropertyValue[number];
48
24
  /** Token property - Definition model */
49
25
  export type DocsBlockTokenPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockTokenPropertyOptions;
50
26
  /** Token property - Definition */
@@ -1,9 +1,10 @@
1
+ import type { PageBlockItemTokenPropertyValue } from "@supernova-studio/model";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
4
  /** TokenProperty property - Additional non-value options */
4
5
  export type DocsBlockTokenPropertyPropertyOptions = Record<string, never>;
5
6
  /** TokenProperty property - Data */
6
- export type DocsBlockTokenPropertyPropertyData = DocsBlockPropertyData<Array<string>> & Record<string, never>;
7
+ export type DocsBlockTokenPropertyPropertyData = PageBlockItemTokenPropertyValue;
7
8
  /** TokenProperty property - Definition model */
8
9
  export type DocsBlockTokenPropertyPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockTokenPropertyPropertyOptions;
9
10
  /** TokenProperty property - Definition */
@@ -1,12 +1,12 @@
1
+ import type { PageBlockItemTokenTypeValue } from "@supernova-studio/model";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
- import { TokenType } from "../../../enums/SDKTokenType";
3
- import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
4
4
  /** TokenType property - Additional non-value options */
5
5
  export type DocsBlockTokenTypePropertyOptions = {
6
6
  allowMultiSelect?: boolean;
7
7
  };
8
8
  /** TokenType property - Data */
9
- export type DocsBlockTokenTypePropertyData = DocsBlockPropertyData<Array<TokenType>> & Record<string, never>;
9
+ export type DocsBlockTokenTypePropertyData = PageBlockItemTokenTypeValue;
10
10
  /** TokenType property - Definition model */
11
11
  export type DocsBlockTokenTypePropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockTokenTypePropertyOptions;
12
12
  /** TokenType property - Definition */
@@ -1,11 +1,12 @@
1
+ import type { PageBlockItemUrlValue } from "@supernova-studio/model";
1
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
2
- import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel, DocsBlockPropertyData } from "./SDKDocsBlockProperty";
3
+ import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
3
4
  /** Url property - Additional non-value options */
4
5
  export type DocsBlockUrlPropertyOptions = {
5
6
  urlValidationRegex?: string;
6
7
  };
7
8
  /** Url property - Data */
8
- export type DocsBlockUrlPropertyData = DocsBlockPropertyData<string> & Record<string, never>;
9
+ export type DocsBlockUrlPropertyData = PageBlockItemUrlValue;
9
10
  /** Url property - Definition model */
10
11
  export type DocsBlockUrlPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockUrlPropertyOptions;
11
12
  /** Url property - Definition */
@@ -1,21 +1,8 @@
1
1
  import { DocsSectionType } from "../../enums/SDKDocsSectionType";
2
- import { DocsColorRef } from "../blocks/support/SDKDocsColorRef";
3
2
  import { DocsSectionItemModel } from "./SDKDocsSectionItem";
4
3
  export type DocsSectionModel = {
5
4
  id: string;
6
5
  type: DocsSectionType;
7
- appearance?: {
8
- expandToEdges: boolean;
9
- contentExpandToEdges: boolean;
10
- backgroundColor?: DocsColorRef;
11
- foregroundColor?: DocsColorRef;
12
- padding?: {
13
- top?: number;
14
- bottom?: number;
15
- left?: number;
16
- right?: number;
17
- };
18
- };
19
6
  items: Array<DocsSectionItemModel>;
20
7
  };
21
8
  export declare class DocsSection {
@@ -23,24 +10,6 @@ export declare class DocsSection {
23
10
  id: string;
24
11
  /** Section type */
25
12
  type: DocsSectionType;
26
- /** Global appearance properties for the section like background color, expanding to edges, etc. */
27
- appearance: {
28
- /** Section background is expanded to fill available area, including side margins */
29
- expandToEdges: boolean;
30
- /** Content of the section is expanded to fill available area, including side margins */
31
- contentExpandToEdges: boolean;
32
- /** Background color of the section */
33
- backgroundColor: DocsColorRef | null;
34
- /** Foreground color of the section */
35
- foregroundColor: DocsColorRef | null;
36
- /** Content offset from the sides */
37
- padding: {
38
- top: number;
39
- bottom: number;
40
- left: number;
41
- right: number;
42
- };
43
- };
44
13
  /** Section items contained within this section. At least one is always present */
45
14
  items: Array<DocsSectionItemModel>;
46
15
  constructor(model: DocsSectionModel);
@@ -0,0 +1,20 @@
1
+ import type { DTOPageHistoryVersion, DTOPageHistoryVersionContent } from "@supernova-studio/client";
2
+ export type PageHistoryVersionJSONContent = DTOPageHistoryVersionContent["jsonContent"];
3
+ export type PageHistoryVersionReason = DTOPageHistoryVersion["reason"];
4
+ export declare class PageHistoryVersion {
5
+ id: string;
6
+ createdAt: Date;
7
+ createdByUserId: string | null;
8
+ reason: PageHistoryVersionReason | null;
9
+ name: string | null;
10
+ restoredFromVersionId: string | null;
11
+ authors: string[];
12
+ publishedAt: Date | null;
13
+ publishedByUserId: string | null;
14
+ constructor(model: DTOPageHistoryVersion);
15
+ }
16
+ export declare class PageHistoryVersionContent {
17
+ id: string;
18
+ jsonContent: PageHistoryVersionJSONContent;
19
+ constructor(model: DTOPageHistoryVersionContent);
20
+ }
@@ -0,0 +1,11 @@
1
+ import { DocsBlockContextPropertyData } from "../../docs/blocks/properties/SDKDocsBlockContextProperty";
2
+ import { DocumentationLegacyPageBlock, DocumentationLegacyPageBlockModel } from "../SDKDocumentationLegacyPageBlock";
3
+ export type DocumentationLegacyPageBlockContextMcpModel = {
4
+ contextMcpBlockConfig?: DocsBlockContextPropertyData;
5
+ } & DocumentationLegacyPageBlockModel;
6
+ export declare class DocumentationLegacyPageBlockContextMcp extends DocumentationLegacyPageBlock {
7
+ properties: {
8
+ context: DocsBlockContextPropertyData;
9
+ };
10
+ constructor(model: DocumentationLegacyPageBlockContextMcpModel, children: Array<DocumentationLegacyPageBlock>);
11
+ }
@@ -1,4 +1,4 @@
1
- declare const badgeColorValues: {
1
+ export declare const badgeColorValues: {
2
2
  readonly blue: "#EFF7FF";
3
3
  readonly cyan: "#E8FCFF";
4
4
  readonly fuchsia: "#FFECFF";
@@ -54,4 +54,3 @@ export declare class ElementPropertyOption {
54
54
  */
55
55
  setBackgroundColor(color: string): void;
56
56
  }
57
- export {};
@@ -24,7 +24,7 @@ export declare enum CodeLanguage {
24
24
  rust = "Rust",
25
25
  sass = "Sass",
26
26
  scss = "SCSS",
27
- svelte = "Svelte",
27
+ svelte = "Svetle",
28
28
  swift = "Swift",
29
29
  twig = "Twig",
30
30
  typescript = "Typescript",