@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.
- 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 +7 -5
- package/build/types/core/areas/SDKAreaDataSources.d.ts +1 -1
- package/build/types/core/areas/SDKAreaDocumentation.d.ts +28 -13
- package/build/types/core/areas/SDKAreaImport.d.ts +35 -0
- package/build/types/core/areas/SDKAreaMCP.d.ts +19 -1
- package/build/types/core/areas/SDKAreaProjects.d.ts +137 -153
- package/build/types/core/areas/SDKAreaRawData.d.ts +132 -131
- package/build/types/core/areas/SDKAreaTokens.d.ts +17 -12
- package/build/types/core/data/SDKDataCore.d.ts +208 -186
- package/build/types/core/data/SDKDataCoreCached.d.ts +2 -2
- package/build/types/core/data/requests/SDKDataCoreReadRequests.d.ts +94 -67
- package/build/types/core/data/requests/SDKDataCoreWriteRequests.d.ts +217 -190
- package/build/types/core/resolvers/SDKDocsEntityItemResolver.d.ts +2 -2
- 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 +18 -11
- package/build/types/model/activity-events/SDKActivityEvent.d.ts +46 -0
- package/build/types/model/agent-chats/SDKAgentChat.d.ts +28 -0
- 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/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/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
|
@@ -3,10 +3,10 @@ import { DocsEntityGroup } from "../../model/docs/entities/SDKDocsEntityGroup";
|
|
|
3
3
|
import { DocsEntityPage } from "../../model/docs/entities/SDKDocsEntityPage";
|
|
4
4
|
export declare class DocsEntityItemResolver {
|
|
5
5
|
hashedItems: Map<string, {
|
|
6
|
+
type?: "Page";
|
|
6
7
|
id?: string;
|
|
7
8
|
designSystemVersionId?: string;
|
|
8
9
|
path?: string;
|
|
9
|
-
type?: "Page";
|
|
10
10
|
createdAt?: Date;
|
|
11
11
|
updatedAt?: Date;
|
|
12
12
|
persistentId?: string;
|
|
@@ -105,9 +105,9 @@ export declare class DocsEntityItemResolver {
|
|
|
105
105
|
};
|
|
106
106
|
liveblocksRoomId?: string;
|
|
107
107
|
} | {
|
|
108
|
+
type?: "Group";
|
|
108
109
|
id?: string;
|
|
109
110
|
designSystemVersionId?: string;
|
|
110
|
-
type?: "Group";
|
|
111
111
|
createdAt?: Date;
|
|
112
112
|
updatedAt?: Date;
|
|
113
113
|
persistentId?: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DesignTokenTypedData } from "@supernova-studio/model";
|
|
2
|
+
import { AnyToken } from "../../model/tokens/SDKTokenValue";
|
|
3
|
+
/** A token as it looked when an activity event was recorded */
|
|
4
|
+
export type TokenSnapshot = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
/** Group ancestry, root first */
|
|
8
|
+
path: Array<string>;
|
|
9
|
+
value: DesignTokenTypedData;
|
|
10
|
+
};
|
|
11
|
+
/** A historical value and the tokens its preview reads names from */
|
|
12
|
+
export type BuiltTokenSnapshot = {
|
|
13
|
+
token: AnyToken;
|
|
14
|
+
allTokens: Map<string, AnyToken>;
|
|
15
|
+
};
|
|
16
|
+
/** Builds SDK tokens from an activity event's snapshots, for the preview generators */
|
|
17
|
+
export declare class SnapshotTokenBuilder {
|
|
18
|
+
private versionId;
|
|
19
|
+
private snapshots;
|
|
20
|
+
constructor(versionId: string, snapshots: Array<TokenSnapshot>);
|
|
21
|
+
/** Null when a referenced snapshot is missing or the type has no SDK case */
|
|
22
|
+
build(subject: Pick<TokenSnapshot, "id" | "value">): BuiltTokenSnapshot | null;
|
|
23
|
+
/**
|
|
24
|
+
* Rebuilds a snapshot into the remote model the resolver takes as input.
|
|
25
|
+
* Null when the SDK has no case for the snapshot's type.
|
|
26
|
+
*/
|
|
27
|
+
private toRemoteModel;
|
|
28
|
+
}
|
|
@@ -16,37 +16,39 @@ import { GradientToken } from "../../model/tokens/SDKGradientToken";
|
|
|
16
16
|
import { ShadowToken } from "../../model/tokens/SDKShadowToken";
|
|
17
17
|
import { AnyStringToken } from "../../model/tokens/SDKStringToken";
|
|
18
18
|
import { Token } from "../../model/tokens/SDKToken";
|
|
19
|
-
import { AnyOptionToken, AnyOptionTokenValue, AnyStringTokenValue, BlurTokenValue, BorderTokenValue, BorderWidthTokenValue, ColorTokenValue, DimensionTokenValue, DurationTokenValue, FontSizeTokenValue, GradientStopValue, GradientTokenValue, LetterSpacingTokenValue, LineHeightTokenValue, OpacityTokenValue, ParagraphSpacingTokenValue, RadiusTokenValue, ShadowTokenValue, SizeTokenValue, SpaceTokenValue, TypographyTokenValue, ZIndexTokenValue } from "../../model/tokens/SDKTokenValue";
|
|
19
|
+
import { AnyOptionToken, AnyOptionTokenValue, AnyStringTokenValue, AnyToken, BlurTokenValue, BorderTokenValue, BorderWidthTokenValue, ColorTokenValue, DimensionTokenValue, DurationTokenValue, FontSizeTokenValue, GradientStopValue, GradientTokenValue, LetterSpacingTokenValue, LineHeightTokenValue, OpacityTokenValue, ParagraphSpacingTokenValue, RadiusTokenValue, ShadowTokenValue, SizeTokenValue, SpaceTokenValue, TypographyTokenValue, ZIndexTokenValue } from "../../model/tokens/SDKTokenValue";
|
|
20
20
|
import { TypographyToken } from "../../model/tokens/SDKTypographyToken";
|
|
21
21
|
import { AnyDimensionTokenRemoteData, AnyOptionTokenRemoteData, AnyOptionTokenRemoteValue, AnyStringTokenRemoteData, BorderWidthTokenRemoteData, ColorTokenRemoteData, GradientTokenRemoteData, ShadowTokenRemoteData } from "../../model/tokens/remote/SDKRemoteTokenData";
|
|
22
22
|
import { AnyOptionTokenRemoteModel, BlurTokenRemoteModel, BorderTokenRemoteModel, ColorTokenRemoteModel, DimensionTokenRemoteModel, GradientTokenRemoteModel, ShadowTokenRemoteModel, StringTokenRemoteModel, TokenRemoteModel, TypographyTokenRemoteModel } from "../../model/tokens/remote/SDKRemoteTokenModel";
|
|
23
23
|
import { AnyDimensionTokenRemoteValue, BlurTokenRemoteValue, BorderTokenRemoteValue, ColorTokenRemoteValue, GradientStopRemoteValue, GradientTokenRemoteValue, ShadowTokenRemoteValue, StringTokenRemoteValue, TypographyTokenRemoteValue } from "../../model/tokens/remote/SDKRemoteTokenValue";
|
|
24
24
|
export declare class TokenResolver {
|
|
25
25
|
hashedTokens: Map<string, TokenRemoteModel>;
|
|
26
|
-
resolvedTokens: Map<string,
|
|
26
|
+
resolvedTokens: Map<string, AnyToken>;
|
|
27
27
|
hashedOverrides: Map<string, TokenThemeOverrideRemoteModel>;
|
|
28
28
|
hashedReconstructedOverrides: Map<string, Token>;
|
|
29
29
|
resolvedOverrides: Map<string, Token>;
|
|
30
30
|
designSystemId: string;
|
|
31
31
|
versionId: string;
|
|
32
32
|
constructor(designSystemId: string, versionId: string);
|
|
33
|
-
resolveTokenData(data: Array<TokenRemoteModel>, tokenGroups: Array<TokenGroup>, elementProperties: Array<ElementProperty>, elementViews: Array<ElementDataView>, elementValues: Array<ElementPropertyValue>, sources: Array<Source>): Array<
|
|
33
|
+
resolveTokenData(data: Array<TokenRemoteModel>, tokenGroups: Array<TokenGroup>, elementProperties: Array<ElementProperty>, elementViews: Array<ElementDataView>, elementValues: Array<ElementPropertyValue>, sources: Array<Source>): Array<AnyToken>;
|
|
34
|
+
/** Builds tokens into resolvedTokens in alias-dependency order */
|
|
35
|
+
resolveTokensInDependencyOrder(data: Array<TokenRemoteModel>, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>): void;
|
|
34
36
|
constructStringValueForReplica(type: StringTokenType, replica: Token, override: TokenThemeOverrideRemoteModel): void;
|
|
35
37
|
constructOptionValueForReplica(type: OptionTokenType, replica: Token, override: TokenThemeOverrideRemoteModel): void;
|
|
36
38
|
constructDimensionValueForReplica(type: DimensionTokenType, replica: Token, override: TokenThemeOverrideRemoteModel): void;
|
|
37
39
|
constructPureValueForReplica(type: PureTokenType, replica: Token, override: TokenThemeOverrideRemoteModel): void;
|
|
38
|
-
resolveThemeData(data: TokenThemeRemoteModel, tokens: Array<
|
|
40
|
+
resolveThemeData(data: TokenThemeRemoteModel, tokens: Array<AnyToken>, tokenGroups: Array<TokenGroup>, sources: Array<Source>, allThemes?: Array<TokenThemeRemoteModel>, tokenCollections?: Array<DesignSystemCollection>): TokenTheme;
|
|
39
41
|
makeThemedValuelessTokenReplica(token: Token, themeId: string, origin: TokenOrigin | null): Token;
|
|
40
42
|
fixMultilayerShadowTokens(tokens: Array<ShadowToken>, groups: Array<TokenGroup>): void;
|
|
41
43
|
fixMultilayerGradientTokens(tokens: Array<GradientToken>, groups: Array<TokenGroup>): void;
|
|
42
44
|
fixMultilayerBlurTokens(tokens: Array<BlurToken>, groups: Array<TokenGroup>): void;
|
|
43
45
|
findAssociatedTokens<T extends Token>(token: T, tokens: Array<T>, groups: Array<TokenGroup>): Array<T>;
|
|
44
46
|
actualOriginTokenId(id: string | null): string;
|
|
45
|
-
constructReferencedToken(rawData: TokenRemoteModel, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>, path?: Set<unknown>):
|
|
46
|
-
constructReferencedThemedToken(rawData: TokenThemeOverrideRemoteModel, themeId: string, path?: Set<unknown>):
|
|
47
|
-
constructResolvedThemedToken(rawData: TokenThemeOverrideRemoteModel, referencedToken: Token, themeId: string):
|
|
48
|
-
constructResolvedToken(rawData: TokenRemoteModel, referencedToken: Token, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>):
|
|
49
|
-
constructValueToken(rawData: TokenRemoteModel, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>):
|
|
47
|
+
constructReferencedToken(rawData: TokenRemoteModel, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>, path?: Set<unknown>): AnyToken;
|
|
48
|
+
constructReferencedThemedToken(rawData: TokenThemeOverrideRemoteModel, themeId: string, path?: Set<unknown>): AnyToken;
|
|
49
|
+
constructResolvedThemedToken(rawData: TokenThemeOverrideRemoteModel, referencedToken: Token, themeId: string): AnyToken;
|
|
50
|
+
constructResolvedToken(rawData: TokenRemoteModel, referencedToken: Token, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>): AnyToken;
|
|
51
|
+
constructValueToken(rawData: TokenRemoteModel, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>): AnyToken;
|
|
50
52
|
constructThemedValueToken(override: TokenThemeOverrideRemoteModel, themeId: string): Token;
|
|
51
53
|
constructColorToken(rawData: ColorTokenRemoteModel, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>): ColorToken;
|
|
52
54
|
constructColorValue(rawValue: ColorTokenRemoteValue): ColorTokenValue;
|
package/build/types/exports.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { DIMENSION_TOKEN_TYPES, STRING_TOKEN_TYPES, OPTION_TOKEN_TYPES, } from "
|
|
|
9
9
|
export type { DimensionTokenType, StringTokenType, OptionTokenType, } from "./model/enums/SDKTokenType";
|
|
10
10
|
export { ALL_BORDER_POSITIONS } from "./model/enums/SDKBorderPosition";
|
|
11
11
|
export { ALL_BORDER_STYLES } from "./model/enums/SDKBorderStyle";
|
|
12
|
-
export { ALL_TOKEN_TYPES } from "./model/enums/SDKTokenType";
|
|
12
|
+
export { ALL_TOKEN_TYPES, tokenTypeFromString, } from "./model/enums/SDKTokenType";
|
|
13
13
|
export { Supernova } from "./core/SDKSupernova";
|
|
14
14
|
export { Workspace } from "./model/workspaces/SDKWorkspace";
|
|
15
15
|
export { type WorkspaceLinkedIntegrations, type WorkspaceIntegrations, type WorkspaceIntegrationCredentialType, type WorkspaceIntegrationsRemoteModel, } from "./model/workspaces/SDKWorkspaceIntegration";
|
|
@@ -71,7 +71,7 @@ export { Asset } from "./model/assets/SDKAsset";
|
|
|
71
71
|
export { RenderedAsset } from "./model/assets/SDKRenderedAsset";
|
|
72
72
|
export { Component } from "./model/components/SDKComponent";
|
|
73
73
|
export { ElementProperty, ElementPropertyLinkElementType, ElementPropertyTargetElementType, ElementPropertyType, } from "./model/elements/SDKElementProperty";
|
|
74
|
-
export { ElementPropertyOption } from "./model/elements/SDKElementPropertyOption";
|
|
74
|
+
export { ElementPropertyOption, badgeColorValues, } from "./model/elements/SDKElementPropertyOption";
|
|
75
75
|
export type { ElementPropertyOptionBadgeColor } from "./model/elements/SDKElementPropertyOption";
|
|
76
76
|
export { ElementDataView } from "./model/elements/SDKElementDataView";
|
|
77
77
|
export { ElementDataViewColumn, ElementDataViewColumnBasePropertyType, ElementDataViewColumnType, } from "./model/elements/SDKElementDataViewColumn";
|
|
@@ -94,6 +94,8 @@ export { DocsAnalyticsTimeFrame } from "./model/docs_analytics/SDKDocsAnalyticsT
|
|
|
94
94
|
export { DocsAnalyticsComparisonData } from "./model/docs_analytics/SDKDocsAnalyticsComparisonData";
|
|
95
95
|
export { DocsAnalyticsPageComparisonData } from "./model/docs_analytics/SDKDocsAnalyticsPageComparisonData";
|
|
96
96
|
export { DocsAnalyticsVisitHeatMapWeek } from "./model/docs_analytics/SDKDocsAnalyticsVisitHeatMapWeek";
|
|
97
|
+
export { PageHistoryVersion, PageHistoryVersionContent, } from "./model/documentation/SDKPageHistoryVersion";
|
|
98
|
+
export type { PageHistoryVersionJSONContent } from "./model/documentation/SDKPageHistoryVersion";
|
|
97
99
|
export { DocsBlockBehavior } from "./model/docs/blocks/definition/SDKDocsBlockBehavior";
|
|
98
100
|
export { DocsBlockDefinition } from "./model/docs/blocks/definition/SDKDocsBlockDefinition";
|
|
99
101
|
export { DocsBlockItemDefinition } from "./model/docs/blocks/definition/SDKDocsBlockItemDefinition";
|
|
@@ -114,11 +116,11 @@ export { DocsEntityPage, DocsEntityMultiplayerPage, } from "./model/docs/entitie
|
|
|
114
116
|
export { DocsBlockPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockProperty";
|
|
115
117
|
export type { DocsBlockItemPropertyAnyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockProperty";
|
|
116
118
|
export { DocsBlockAssetPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockAssetProperty";
|
|
117
|
-
export type { DocsBlockAssetPropertyData, DocsBlockAssetPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockAssetProperty";
|
|
119
|
+
export type { DocsBlockAssetPropertyData, DocsBlockAssetPropertyValue, DocsBlockAssetPropertyEntity, DocsBlockAssetPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockAssetProperty";
|
|
118
120
|
export { DocsBlockAssetPropertyPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty";
|
|
119
121
|
export type { DocsBlockAssetPropertyPropertyData, DocsBlockAssetPropertyPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty";
|
|
120
122
|
export { DocsBlockFigmaNodePropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty";
|
|
121
|
-
export type { DocsBlockFigmaNodePropertyData, DocsBlockFigmaNodePropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty";
|
|
123
|
+
export type { DocsBlockFigmaNodePropertyData, DocsBlockFigmaNodePropertyValue, DocsBlockFigmaNodePropertyEntity, DocsBlockFigmaNodePropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty";
|
|
122
124
|
export { DocsBlockBooleanPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockBooleanProperty";
|
|
123
125
|
export type { DocsBlockBooleanPropertyData, DocsBlockBooleanPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockBooleanProperty";
|
|
124
126
|
export { DocsBlockCodePropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockCodeProperty";
|
|
@@ -126,9 +128,11 @@ export type { DocsBlockCodePropertyData, DocsBlockCodePropertyOptions, } from ".
|
|
|
126
128
|
export { DocsBlockCodeSandboxPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty";
|
|
127
129
|
export type { DocsBlockCodeSandboxPropertyData, DocsBlockCodeSandboxPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty";
|
|
128
130
|
export { DocsBlockComponentPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockComponentProperty";
|
|
129
|
-
export type { DocsBlockComponentPropertyData, DocsBlockComponentPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockComponentProperty";
|
|
131
|
+
export type { DocsBlockComponentPropertyData, DocsBlockComponentPropertyValue, DocsBlockComponentPropertyEntity, DocsBlockComponentPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockComponentProperty";
|
|
130
132
|
export { DocsBlockComponentPropertyPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty";
|
|
131
133
|
export type { DocsBlockComponentPropertyPropertyData, DocsBlockComponentPropertyPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty";
|
|
134
|
+
export { DocsBlockContextPropertyDefinition, DocsBlockContextPropertyConnectionValues, } from "./model/docs/blocks/properties/SDKDocsBlockContextProperty";
|
|
135
|
+
export type { DocsBlockContextPropertyConnection, ContextEntity, DocsBlockContextPropertyData, DocsBlockContextPropertyValue, DocsBlockContextPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockContextProperty";
|
|
132
136
|
export { DocsBlockEmbedUrlPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty";
|
|
133
137
|
export type { DocsBlockEmbedUrlPropertyData, DocsBlockEmbedUrlPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty";
|
|
134
138
|
export { DocsBlockImagePropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockImageProperty";
|
|
@@ -148,13 +152,13 @@ export type { DocsBlockRichTextEditorPropertyData, DocsBlockRichTextEditorProper
|
|
|
148
152
|
export { DocsBlockSingleSelectPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty";
|
|
149
153
|
export type { DocsBlockSingleSelectPropertyData, DocsBlockSingleSelectPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty";
|
|
150
154
|
export { DocsBlockTablePropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTableProperty";
|
|
151
|
-
export type { DocsBlockTablePropertyData, DocsBlockTablePropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTableProperty";
|
|
155
|
+
export type { DocsBlockTablePropertyData, DocsBlockTablePropertyValue, DocsBlockTablePropertyRow, DocsBlockTablePropertyCell, DocsBlockTablePropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTableProperty";
|
|
152
156
|
export { DocsBlockTextPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTextProperty";
|
|
153
157
|
export type { DocsBlockUrlPropertyData, DocsBlockUrlPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockUrlProperty";
|
|
154
158
|
export { DocsBlockUrlPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockUrlProperty";
|
|
155
159
|
export type { DocsBlockTextPropertyData, DocsBlockTextPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTextProperty";
|
|
156
160
|
export { DocsBlockTokenPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTokenProperty";
|
|
157
|
-
export type { DocsBlockTokenPropertyData, DocsBlockTokenPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTokenProperty";
|
|
161
|
+
export type { DocsBlockTokenPropertyData, DocsBlockTokenPropertyValue, DocsBlockTokenPropertyEntity, DocsBlockTokenPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTokenProperty";
|
|
158
162
|
export { DocsBlockTokenPropertyPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty";
|
|
159
163
|
export type { DocsBlockTokenPropertyPropertyData, DocsBlockTokenPropertyPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty";
|
|
160
164
|
export { DocsBlockTokenTypePropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty";
|
|
@@ -166,7 +170,7 @@ export type { DocsBlockDividerPropertyData, DocsBlockDividerPropertyOptions, } f
|
|
|
166
170
|
export { DocsBlockStorybookPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockStorybookProperty";
|
|
167
171
|
export type { DocsBlockStorybookPropertyData, DocsBlockStorybookPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockStorybookProperty";
|
|
168
172
|
export { DocsBlockFigmaComponentPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty";
|
|
169
|
-
export type { DocsBlockFigmaComponentPropertyData, DocsBlockFigmaComponentPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty";
|
|
173
|
+
export type { DocsBlockFigmaComponentPropertyData, DocsBlockFigmaComponentPropertyValue, DocsBlockFigmaComponentPropertyEntity, DocsBlockFigmaComponentPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty";
|
|
170
174
|
export type { DocsColorRef } from "./model/docs/blocks/support/SDKDocsColorRef";
|
|
171
175
|
export { DocsImageRefType } from "./model/docs/blocks/support/SDKDocsImageRef";
|
|
172
176
|
export type { DocsImageRef } from "./model/docs/blocks/support/SDKDocsImageRef";
|
|
@@ -189,6 +193,7 @@ export { DocumentationLegacyPageBlockEmbedStorybook } from "./model/documentatio
|
|
|
189
193
|
export { DocumentationLegacyPageBlockEmbedYoutube } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedYoutube";
|
|
190
194
|
export { DocumentationLegacyPageBlockFrame } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockFrame";
|
|
191
195
|
export { DocumentationLegacyPageBlockFrames } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockFrames";
|
|
196
|
+
export { DocumentationLegacyPageBlockContextMcp } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockContextMcp";
|
|
192
197
|
export { DocumentationLegacyPageBlockHeading } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockHeading";
|
|
193
198
|
export { DocumentationLegacyPageBlockImage } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockImage";
|
|
194
199
|
export { DocumentationLegacyPageOrderedList } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockOrderedList";
|
|
@@ -259,7 +264,6 @@ export { DocsBlockTextPropertyColor } from "./model/enums/SDKDocsBlockTextProper
|
|
|
259
264
|
export { DocsBlockItemVariantLayoutAlign } from "./model/enums/SDKDocsBlockItemVariantLayoutAlign";
|
|
260
265
|
export { DocsBlockItemVariantLayoutColumnResizing } from "./model/enums/SDKDocsBlockItemVariantLayoutColumnResizing";
|
|
261
266
|
export { DocsBlockItemVariantLayoutGap } from "./model/enums/SDKDocsBlockItemVariantLayoutGap";
|
|
262
|
-
export { DocsBlockTokenNameFormat } from "./model/enums/SDKDocsBlockTokenNameFormat";
|
|
263
267
|
export { DocsBlockOptionColor } from "./model/enums/SDKDocsBlockOptionColor";
|
|
264
268
|
export { DocsEntityType } from "./model/enums/SDKDocsEntityType";
|
|
265
269
|
export { DocsSectionType } from "./model/enums/SDKDocsSectionType";
|
|
@@ -284,7 +288,7 @@ export { WorkspaceSubscriptionProductCode, type SubscriptionCheckoutProductCode,
|
|
|
284
288
|
export { WorkspaceSubscriptionStatus } from "./model/enums/SDKWorkspaceSubscriptionStatus";
|
|
285
289
|
export { WorkspaceNPMRegistryAuthType } from "./model/enums/SDKWorkspaceNPMRegistryAuthType";
|
|
286
290
|
export { WorkspaceNPMRegistryType } from "./model/enums/SDKWorkspaceNPMRegistryType";
|
|
287
|
-
export type { WorkspaceSeatType } from "./model/enums/SDKWorkspaceSeatType";
|
|
291
|
+
export type { WorkspaceBilledSeatType, WorkspaceSeatType, } from "./model/enums/SDKWorkspaceSeatType";
|
|
288
292
|
export { allWorkspaceSeatTypes } from "./model/enums/SDKWorkspaceSeatType";
|
|
289
293
|
export { ImportWarningType } from "./model/enums/SDKCloudWarningType";
|
|
290
294
|
export { CustomDomainErrorCode } from "./model/enums/SDKCustomDomainErrorCode";
|
|
@@ -365,6 +369,9 @@ export { ForgeProject, type ForgeProjectRemoteModel, } from "./model/projects/SD
|
|
|
365
369
|
export { ForgeOnboardingContainerUsage, type ForgeOnboardingContainerUsageRemoteModel, type ForgeOnboardingContainerUsageTransportModel, } from "./model/projects/SDKForgeOnboardingContainerUsage";
|
|
366
370
|
export { PublishedFeature, type PublishedFeatureRemoteModel, } from "./model/projects/SDKPublishedFeature";
|
|
367
371
|
export { TrailEvent, type TrailEventRemoteModel, type TrailEventType, type TrailEventCreateInput, type TrailEventListInput, type TrailEventListResponse, } from "./model/trail-events/SDKTrailEvent";
|
|
372
|
+
export { ActivityEvent, type ActivityEventChange, type ActivityEventEntitySnapshot, type ActivityEventListFilter, } from "./model/activity-events/SDKActivityEvent";
|
|
373
|
+
export { SnapshotTokenBuilder, type BuiltTokenSnapshot, type TokenSnapshot, } from "./core/resolvers/SDKSnapshotTokenBuilder";
|
|
374
|
+
export { AgentChat, type AgentChatChangedEntitiesResponse, type AgentChatChangedEntity, type AgentChatCreateInput, type AgentChatDeleteResponse, type AgentChatListFilter, type AgentChatListResponse, type AgentChatRemoteModel, type AgentChatResponse, type AgentChatUpdateInput, } from "./model/agent-chats/SDKAgentChat";
|
|
368
375
|
export { ForgeProjectMembership } from "./model/projects/memberships/SDKForgeProjectMembership";
|
|
369
376
|
export type { ForgeProjectMembershipRole } from "./model/projects/memberships/SDKForgeProjectMembership";
|
|
370
377
|
export { ForgeProjectMembersList } from "./model/projects/memberships/SDKForgeProjectMembersList";
|
|
@@ -393,4 +400,4 @@ export { ThreadMessageList } from "./model/threads/SDKThreadMessageList";
|
|
|
393
400
|
export { SandboxTemplate, type SandboxTemplateRemoteModel, type SandboxTemplateQuery, } from "./model/sandboxes/SDKSandboxTemplate";
|
|
394
401
|
export { ForgeProjectFeatureSandbox, type ForgeProjectFeatureSandboxListResponse, type ForgeProjectFeatureSandboxRemoteModel, } from "./model/projects/SDKForgeProjectSandbox";
|
|
395
402
|
export { SDKDataset, DatasetSelectionBuilder, DATASET_ENTITY_TYPES, getDatasetFilterEntityId, } from "./model/datasets/SDKDataset";
|
|
396
|
-
export type { DatasetCondition, DatasetConditionValue, DatasetConditionValueForField, DatasetDataRepository, DatasetEntity, DatasetEntityFieldMap, DatasetEntityType, DatasetExcludeIdsCondition, DatasetFilterEntity, DatasetFilterGroup, DatasetFilterItem, DatasetFilterNode, DatasetFilterProperty, DatasetFilterResult, DatasetFilterResultByEntityType, DatasetFilterResultSource, DatasetIdInScopeResult, DatasetIncludeAllCondition, DatasetIncludeIdsCondition, DatasetItemProjector, DatasetLogicalOperator, DatasetPrimitiveValue, DatasetPropertyCondition, DatasetPropertyOperator, DatasetPropertyOperatorForField, DatasetResolveResult, DatasetSelections, SDKDatasetData, } from "./model/datasets/SDKDataset";
|
|
403
|
+
export type { DatasetCondition, DatasetConditionValue, DatasetConditionValueForField, DatasetDataRepository, DatasetEntity, DatasetEntityFieldMap, DatasetEntityType, DatasetExcludeIdsCondition, DatasetFilterEntity, DatasetEvaluatedPropertyCondition, DatasetFilterEvaluationOptions, DatasetFilterGroup, DatasetFilterItem, DatasetFilterNode, DatasetFilterProperty, DatasetFilterResult, DatasetFilterResultByEntityType, DatasetFilterResultSource, DatasetIdInScopeResult, DatasetIncludeAllCondition, DatasetIncludeIdsCondition, DatasetItemProjector, DatasetLogicalOperator, DatasetPrimitiveValue, DatasetPropertyCondition, DatasetPropertyOperator, DatasetPropertyOperatorForField, DatasetResolveResult, DatasetSelections, SDKDatasetData, } from "./model/datasets/SDKDataset";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { DTOActivityEventAction, DTOActivityEventActorSource, DTOActivityEventChange, DTOActivityEventEntitySnapshot, DTOActivityEventListInput, DTOActivityEventListResponse, DTOActivityEventTargetType, DTOActivityEventType, DTOActivityEventWithDetails } from "@supernova-studio/client";
|
|
2
|
+
export type ActivityEventRemoteModel = DTOActivityEventWithDetails;
|
|
3
|
+
export type ActivityEventListResponse = DTOActivityEventListResponse;
|
|
4
|
+
export type ActivityEventActorSource = DTOActivityEventActorSource;
|
|
5
|
+
export type ActivityEventAction = DTOActivityEventAction;
|
|
6
|
+
export type ActivityEventTargetType = DTOActivityEventTargetType;
|
|
7
|
+
export type ActivityEventType = DTOActivityEventType;
|
|
8
|
+
export type ActivityEventChange = DTOActivityEventChange;
|
|
9
|
+
export type ActivityEventEntitySnapshot = DTOActivityEventEntitySnapshot;
|
|
10
|
+
export declare class ActivityEvent {
|
|
11
|
+
id: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
workspaceId: string;
|
|
14
|
+
designSystemId: string | undefined;
|
|
15
|
+
designSystemVersionId: string | undefined;
|
|
16
|
+
brandId: string | undefined;
|
|
17
|
+
actorUserId: string | undefined;
|
|
18
|
+
actorUserName: string | undefined;
|
|
19
|
+
actorSource: ActivityEventActorSource;
|
|
20
|
+
eventType: ActivityEventType;
|
|
21
|
+
action: ActivityEventAction;
|
|
22
|
+
targetType: ActivityEventTargetType;
|
|
23
|
+
targetId: string;
|
|
24
|
+
targetSubtype: ActivityEventRemoteModel["targetSubtype"];
|
|
25
|
+
parentId: string | undefined;
|
|
26
|
+
changes: ActivityEventChange[];
|
|
27
|
+
entitySnapshots: ActivityEventEntitySnapshot[];
|
|
28
|
+
constructor(model: ActivityEventRemoteModel);
|
|
29
|
+
toRemote(): ActivityEventRemoteModel;
|
|
30
|
+
}
|
|
31
|
+
export type ActivityEventListResult = {
|
|
32
|
+
events: ActivityEvent[];
|
|
33
|
+
/** Cursor for the next page, null on the last one */
|
|
34
|
+
nextCursor: ActivityEventListResponse["nextCursor"];
|
|
35
|
+
};
|
|
36
|
+
export type ActivityEventListFilter = {
|
|
37
|
+
designSystemId: string;
|
|
38
|
+
versionId: string;
|
|
39
|
+
/** Scopes the query to one entity's history; omitted reads the whole version */
|
|
40
|
+
targetId?: string;
|
|
41
|
+
/** "null" reads root events only, an id reads that parent's children */
|
|
42
|
+
parentId?: DTOActivityEventListInput["parentId"];
|
|
43
|
+
/** Keyset cursor from the previous page; omitted reads the newest page */
|
|
44
|
+
cursor?: string;
|
|
45
|
+
limit?: number;
|
|
46
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { DTOAgentChat, DTOAgentChatChangedEntitiesResponse, DTOAgentChatChangedEntity, DTOAgentChatCreatePayload, DTOAgentChatDeleteResponse, DTOAgentChatListResponse, DTOAgentChatResponse, DTOAgentChatUpdatePayload } from "@supernova-studio/client";
|
|
2
|
+
export type AgentChatChangedEntitiesResponse = DTOAgentChatChangedEntitiesResponse;
|
|
3
|
+
export type AgentChatChangedEntity = DTOAgentChatChangedEntity;
|
|
4
|
+
export type AgentChatCreateInput = DTOAgentChatCreatePayload;
|
|
5
|
+
export type AgentChatDeleteResponse = DTOAgentChatDeleteResponse;
|
|
6
|
+
export type AgentChatListResponse = DTOAgentChatListResponse;
|
|
7
|
+
export type AgentChatRemoteModel = DTOAgentChat;
|
|
8
|
+
export type AgentChatResponse = DTOAgentChatResponse;
|
|
9
|
+
export type AgentChatUpdateInput = DTOAgentChatUpdatePayload;
|
|
10
|
+
export type AgentChatListFilter = {
|
|
11
|
+
workspaceId: string;
|
|
12
|
+
designSystemId?: string;
|
|
13
|
+
includeArchived?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare class AgentChat {
|
|
16
|
+
id: string;
|
|
17
|
+
workspaceId: string;
|
|
18
|
+
designSystemId: string | undefined;
|
|
19
|
+
userId: string;
|
|
20
|
+
threadId: string;
|
|
21
|
+
eveSessionId: string | undefined;
|
|
22
|
+
name: string;
|
|
23
|
+
isArchived: boolean;
|
|
24
|
+
createdAt: Date;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
constructor(model: AgentChatRemoteModel);
|
|
27
|
+
toRemote(): AgentChatRemoteModel;
|
|
28
|
+
}
|
|
@@ -34,6 +34,7 @@ export type DatasetEntityFieldMap = {
|
|
|
34
34
|
id: string;
|
|
35
35
|
name: string;
|
|
36
36
|
description: string;
|
|
37
|
+
[property: `customProperties.${string}`]: string | number | boolean | null;
|
|
37
38
|
};
|
|
38
39
|
assets: {
|
|
39
40
|
id: string;
|
|
@@ -152,6 +153,15 @@ type DatasetPropertyGetter<TEntity extends DatasetEntity> = (item: TEntity, prop
|
|
|
152
153
|
* which the SDK already normalizes to the persistent form on construction.
|
|
153
154
|
*/
|
|
154
155
|
export declare const getDatasetFilterEntityId: <TItem extends DatasetFilterItem>(item: TItem, entityType: DatasetEntityType) => string;
|
|
156
|
+
export type DatasetEvaluatedPropertyCondition = {
|
|
157
|
+
type: "property";
|
|
158
|
+
property: string;
|
|
159
|
+
operator: DatasetPropertyOperator;
|
|
160
|
+
value?: DatasetConditionValue;
|
|
161
|
+
};
|
|
162
|
+
export type DatasetFilterEvaluationOptions = {
|
|
163
|
+
isPropertyConditionValid?: (condition: DatasetEvaluatedPropertyCondition) => boolean;
|
|
164
|
+
};
|
|
155
165
|
export declare class DatasetSelectionBuilder<TEntity extends DatasetEntityType> {
|
|
156
166
|
and(children: readonly DatasetFilterNode<TEntity>[]): DatasetFilterGroup<TEntity>;
|
|
157
167
|
or(children: readonly DatasetFilterNode<TEntity>[]): DatasetFilterGroup<TEntity>;
|
|
@@ -177,8 +187,8 @@ export declare class SDKDataset {
|
|
|
177
187
|
private readonly refinedBaseDataset?;
|
|
178
188
|
constructor(data?: SDKDatasetData, refinedSourceDataset?: SDKDataset, refinedBaseDataset?: SDKDataset);
|
|
179
189
|
static create(designSystemId?: string | null): SDKDataset;
|
|
180
|
-
static and(children: readonly DatasetFilterNode[]): DatasetFilterGroup
|
|
181
|
-
static or(children: readonly DatasetFilterNode[]): DatasetFilterGroup
|
|
190
|
+
static and<TEntity extends DatasetEntityType = DatasetEntityType>(children: readonly DatasetFilterNode<TEntity>[]): DatasetFilterGroup<TEntity>;
|
|
191
|
+
static or<TEntity extends DatasetEntityType = DatasetEntityType>(children: readonly DatasetFilterNode<TEntity>[]): DatasetFilterGroup<TEntity>;
|
|
182
192
|
static includeAll(): DatasetIncludeAllCondition;
|
|
183
193
|
static includeIds(ids: readonly string[]): DatasetIncludeIdsCondition;
|
|
184
194
|
static excludeIds(ids: readonly string[]): DatasetExcludeIdsCondition;
|
|
@@ -198,15 +208,15 @@ export declare class SDKDataset {
|
|
|
198
208
|
filteredSkills<TSkill extends DatasetFilterItem>(allSkills: readonly TSkill[], inheritedDataset?: SDKDataset): DatasetFilterResult<TSkill>[];
|
|
199
209
|
filteredFiles<TFile extends DatasetFilterItem>(allFiles: readonly TFile[], inheritedDataset?: SDKDataset): DatasetFilterResult<TFile>[];
|
|
200
210
|
filteredCodeComponents<TCodeComponent extends DatasetFilterItem>(allCodeComponents: readonly TCodeComponent[], inheritedDataset?: SDKDataset): DatasetFilterResult<TCodeComponent>[];
|
|
201
|
-
filteredItems<TItem extends DatasetFilterItem>(entityType: DatasetEntityType, allItems: readonly TItem[], inheritedDataset?: SDKDataset, projectItem?: DatasetItemProjector<TItem
|
|
211
|
+
filteredItems<TItem extends DatasetFilterItem>(entityType: DatasetEntityType, allItems: readonly TItem[], inheritedDataset?: SDKDataset, projectItem?: DatasetItemProjector<TItem>, evaluationOptions?: DatasetFilterEvaluationOptions): Array<DatasetFilterResult<TItem>>;
|
|
202
212
|
/**
|
|
203
213
|
* Id-only membership check against the dataset's scope for one entity type.
|
|
204
214
|
* Walks the filter tree for `includeAll`, `includeIds`, `excludeIds` and
|
|
205
215
|
* returns a structured reason. Does not evaluate property predicates — for
|
|
206
216
|
* those use `filteredItems`.
|
|
207
217
|
*
|
|
208
|
-
* Default for a missing filter group:
|
|
209
|
-
*
|
|
218
|
+
* Default for a missing filter group: strict-default entities drop, every
|
|
219
|
+
* other entity passes.
|
|
210
220
|
*/
|
|
211
221
|
isIdInScope(entityType: DatasetEntityType, id: string): DatasetIdInScopeResult;
|
|
212
222
|
isEmpty(): boolean;
|
|
@@ -24,7 +24,10 @@ export declare class DocsBlockBehavior {
|
|
|
24
24
|
/**
|
|
25
25
|
* If selectionType === "Entity", then only an entity of specific "dataType" can be selected (and no groups of that type)
|
|
26
26
|
* If selectionType === "Group", then only a group of specific "dataType" can be selected (and no entity of that type)
|
|
27
|
-
* If selectionType === "EntityAndGroup", then
|
|
27
|
+
* If selectionType === "EntityAndGroup", then either can be selected, but never both at once
|
|
28
|
+
* If selectionType === "None", then nothing can be selected: the block derives its own content
|
|
29
|
+
*
|
|
30
|
+
* At most one group can be selected, whichever type allows groups
|
|
28
31
|
*/
|
|
29
32
|
selectionType: DocsBlockBehaviorSelectionType;
|
|
30
33
|
/**
|
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PageBlockItemAssetValue } from "@supernova-studio/model";
|
|
2
2
|
import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
|
|
3
|
-
import {
|
|
4
|
-
import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
3
|
+
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
5
4
|
/** Asset property - Additional non-value options */
|
|
6
5
|
export type DocsBlockAssetPropertyOptions = Record<string, never>;
|
|
7
6
|
/** Asset property - Data */
|
|
8
|
-
export type DocsBlockAssetPropertyData =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
description?: string;
|
|
14
|
-
backgroundColor?: DocsColorRef | null;
|
|
15
|
-
showNestedGroups?: boolean;
|
|
16
|
-
};
|
|
17
|
-
}>> & {
|
|
18
|
-
/** Selected asset ids */
|
|
19
|
-
selectedPropertyIds?: Array<string>;
|
|
20
|
-
/** If enabled, search is visible */
|
|
21
|
-
showSearch?: boolean;
|
|
22
|
-
/** If enabled, description is visible */
|
|
23
|
-
showAssetDescription?: boolean;
|
|
24
|
-
/** Preview container size */
|
|
25
|
-
previewContainerSize?: DocsBlockContainerSize.centered | DocsBlockContainerSize.naturalHeight;
|
|
26
|
-
/** Preview container height */
|
|
27
|
-
previewContainerHeight?: number;
|
|
28
|
-
};
|
|
7
|
+
export type DocsBlockAssetPropertyData = PageBlockItemAssetValue;
|
|
8
|
+
/** Asset property - Value */
|
|
9
|
+
export type DocsBlockAssetPropertyValue = DocsBlockAssetPropertyData["value"];
|
|
10
|
+
/** Asset property - Entity */
|
|
11
|
+
export type DocsBlockAssetPropertyEntity = DocsBlockAssetPropertyValue[number];
|
|
29
12
|
/** Asset property - Definition model */
|
|
30
13
|
export type DocsBlockAssetPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockAssetPropertyOptions;
|
|
31
14
|
/** Asset property - Definition */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { PageBlockItemAssetPropertyValue } from "@supernova-studio/model";
|
|
1
2
|
import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
|
|
2
|
-
import {
|
|
3
|
+
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
3
4
|
/** Asset property property - Additional non-value options */
|
|
4
5
|
export type DocsBlockAssetPropertyPropertyOptions = Record<string, never>;
|
|
5
6
|
/** Asset property property - Data */
|
|
6
|
-
export type DocsBlockAssetPropertyPropertyData =
|
|
7
|
+
export type DocsBlockAssetPropertyPropertyData = PageBlockItemAssetPropertyValue;
|
|
7
8
|
/** Asset property property - Definition model */
|
|
8
9
|
export type DocsBlockAssetPropertyPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockAssetPropertyPropertyOptions;
|
|
9
10
|
/** Asset property property - Definition */
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { PageBlockItemBooleanValue } from "@supernova-studio/model";
|
|
1
2
|
import { DocsBlockItemPropertyOptionRenderingStyle } from "../../../enums/SDKDocsBlockItemPropertyOptionRenderingStyle";
|
|
2
3
|
import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
|
|
3
|
-
import {
|
|
4
|
+
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
4
5
|
/** Boolean property - Additional non-value options */
|
|
5
6
|
export type DocsBlockBooleanPropertyOptions = {
|
|
6
7
|
/** Default value to set when block is created */
|
|
@@ -9,7 +10,7 @@ export type DocsBlockBooleanPropertyOptions = {
|
|
|
9
10
|
booleanStyle?: Exclude<DocsBlockItemPropertyOptionRenderingStyle, DocsBlockItemPropertyOptionRenderingStyle.select>;
|
|
10
11
|
};
|
|
11
12
|
/** Boolean property - Data */
|
|
12
|
-
export type DocsBlockBooleanPropertyData =
|
|
13
|
+
export type DocsBlockBooleanPropertyData = PageBlockItemBooleanValue;
|
|
13
14
|
/** Boolean property - Definition model */
|
|
14
15
|
export type DocsBlockBooleanPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockBooleanPropertyOptions;
|
|
15
16
|
/** Boolean property - Definition */
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PageBlockItemCodeValue } from "@supernova-studio/model";
|
|
2
2
|
import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
|
|
3
|
-
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel
|
|
3
|
+
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
4
4
|
/** Code property - Additional non-value options */
|
|
5
5
|
export type DocsBlockCodePropertyOptions = {
|
|
6
6
|
shouldHideCodeSyntax?: boolean;
|
|
7
7
|
};
|
|
8
8
|
/** Code property - Data */
|
|
9
|
-
export type DocsBlockCodePropertyData =
|
|
10
|
-
format?: CodeLanguage;
|
|
11
|
-
caption?: string;
|
|
12
|
-
};
|
|
9
|
+
export type DocsBlockCodePropertyData = PageBlockItemCodeValue;
|
|
13
10
|
/** Code property - Definition model */
|
|
14
11
|
export type DocsBlockCodePropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockCodePropertyOptions;
|
|
15
12
|
/** Code property - Definition */
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
+
import type { PageBlockItemSandboxValue } from "@supernova-studio/model";
|
|
1
2
|
import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
|
|
2
|
-
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel
|
|
3
|
+
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
3
4
|
/** Code Sandbox property - Additional non-value options */
|
|
4
5
|
export type DocsBlockCodeSandboxPropertyOptions = {
|
|
5
6
|
/** How should we render the code example in editor */
|
|
6
7
|
renderLayoutAs?: "PreviewOnTop" | "PreviewOnBottom" | "PreviewOnLeft" | "PreviewOnRight";
|
|
7
8
|
};
|
|
8
9
|
/** Code Sandbox property - Data */
|
|
9
|
-
export type DocsBlockCodeSandboxPropertyData =
|
|
10
|
-
showCode?: boolean;
|
|
11
|
-
showControls?: boolean;
|
|
12
|
-
backgroundColor?: string;
|
|
13
|
-
alignPreview?: "Left" | "Center";
|
|
14
|
-
previewHeight?: number;
|
|
15
|
-
};
|
|
10
|
+
export type DocsBlockCodeSandboxPropertyData = PageBlockItemSandboxValue;
|
|
16
11
|
/** Code Sandbox property - Definition model */
|
|
17
12
|
export type DocsBlockCodeSandboxPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockCodeSandboxPropertyOptions;
|
|
18
13
|
/** Code Sandbox property - Definition */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { PageBlockItemColorValue } from "@supernova-studio/model";
|
|
1
2
|
import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
|
|
2
|
-
import {
|
|
3
|
-
import { DocsBlockPropertyData, DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
3
|
+
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
4
4
|
/** Color property - Additional non-value options */
|
|
5
5
|
export type DocsBlockColorPropertyOptions = Record<string, never>;
|
|
6
6
|
/** Color property - Data */
|
|
7
|
-
export type DocsBlockColorPropertyData =
|
|
7
|
+
export type DocsBlockColorPropertyData = PageBlockItemColorValue;
|
|
8
8
|
/** Color property - Definition model */
|
|
9
9
|
export type DocsBlockColorPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockColorPropertyOptions;
|
|
10
10
|
/** Color property - Definition */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { PageBlockItemComponentValue } from "@supernova-studio/model";
|
|
1
2
|
import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
|
|
2
|
-
import {
|
|
3
|
+
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
3
4
|
/** Component property - Additional non-value options */
|
|
4
5
|
export type DocsBlockComponentPropertyOptions = {
|
|
5
6
|
/** How should the tokens be rendered in editor */
|
|
@@ -8,15 +9,11 @@ export type DocsBlockComponentPropertyOptions = {
|
|
|
8
9
|
allowPropertySelection?: boolean;
|
|
9
10
|
};
|
|
10
11
|
/** Component property - Data */
|
|
11
|
-
export type DocsBlockComponentPropertyData =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
selectedPropertyIds?: Array<string>;
|
|
17
|
-
/** Brand id */
|
|
18
|
-
selectedBrandId?: string;
|
|
19
|
-
};
|
|
12
|
+
export type DocsBlockComponentPropertyData = PageBlockItemComponentValue;
|
|
13
|
+
/** Component property - Value */
|
|
14
|
+
export type DocsBlockComponentPropertyValue = DocsBlockComponentPropertyData["value"];
|
|
15
|
+
/** Component property - Entity */
|
|
16
|
+
export type DocsBlockComponentPropertyEntity = DocsBlockComponentPropertyValue[number];
|
|
20
17
|
/** Component property - Definition model */
|
|
21
18
|
export type DocsBlockComponentPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockComponentPropertyOptions;
|
|
22
19
|
/** Component property - Definition */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { PageBlockItemComponentPropertyValue } from "@supernova-studio/model";
|
|
1
2
|
import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
|
|
2
|
-
import {
|
|
3
|
+
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
3
4
|
/** ComponentProperty property - Additional non-value options */
|
|
4
5
|
export type DocsBlockComponentPropertyPropertyOptions = Record<string, never>;
|
|
5
6
|
/** ComponentProperty property - Data */
|
|
6
|
-
export type DocsBlockComponentPropertyPropertyData =
|
|
7
|
+
export type DocsBlockComponentPropertyPropertyData = PageBlockItemComponentPropertyValue;
|
|
7
8
|
/** ComponentProperty property - Definition model */
|
|
8
9
|
export type DocsBlockComponentPropertyPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockComponentPropertyPropertyOptions;
|
|
9
10
|
/** ComponentProperty property - Definition */
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PageBlockContextConnection, type PageBlockItemContextValue } from "@supernova-studio/model";
|
|
2
|
+
import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
|
|
3
|
+
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
4
|
+
export declare const DocsBlockContextPropertyConnectionValues: ["cursor", "claudeCode", "vsCode", "codex", "codeSnippet", "url"];
|
|
5
|
+
export type DocsBlockContextPropertyConnection = PageBlockContextConnection;
|
|
6
|
+
export type DocsBlockContextPropertyOptions = Record<string, never>;
|
|
7
|
+
/** Context property - Data */
|
|
8
|
+
export type DocsBlockContextPropertyData = PageBlockItemContextValue;
|
|
9
|
+
/** Context property - Value */
|
|
10
|
+
export type DocsBlockContextPropertyValue = DocsBlockContextPropertyData["value"];
|
|
11
|
+
/** Context property - Entity */
|
|
12
|
+
export type ContextEntity = DocsBlockContextPropertyValue[number];
|
|
13
|
+
export type DocsBlockContextPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockContextPropertyOptions;
|
|
14
|
+
export declare class DocsBlockContextPropertyDefinition extends DocsBlockPropertyDefinition<DocsBlockContextPropertyOptions, DocsBlockContextPropertyData> {
|
|
15
|
+
type: DocsBlockItemPropertyType.context;
|
|
16
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { PageBlockItemDividerValue } from "@supernova-studio/model";
|
|
1
2
|
import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
|
|
2
|
-
import {
|
|
3
|
+
import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
|
|
3
4
|
/** Divider property - Additional non-value options */
|
|
4
5
|
export type DocsBlockDividerPropertyOptions = Record<string, never>;
|
|
5
6
|
/** Divider property - Data */
|
|
6
|
-
export type DocsBlockDividerPropertyData =
|
|
7
|
+
export type DocsBlockDividerPropertyData = PageBlockItemDividerValue;
|
|
7
8
|
/** Divider property - Definition model */
|
|
8
9
|
export type DocsBlockDividerPropertyDefinitionModel = DocsBlockPropertyDefinitionModel & DocsBlockDividerPropertyOptions;
|
|
9
10
|
/** Divider property - Definition */
|