@supernova-studio/supernova-sdk-beta 2.2.7 → 2.2.50
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/README.md +8 -12
- package/build/sdk-typescript/src/core/SDKSupernova.d.ts +18 -6
- package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +12 -14
- package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +3 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaMCP.d.ts +24 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaMe.d.ts +3 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaMessaging.d.ts +60 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaProjects.d.ts +2120 -64
- package/build/sdk-typescript/src/core/areas/SDKAreaRawData.d.ts +2049 -7
- package/build/sdk-typescript/src/core/areas/SDKAreaRelay.d.ts +61 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaResources.d.ts +83 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaThreads.d.ts +81 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaTokens.d.ts +3 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +71 -16
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +9 -5
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +2350 -73
- package/build/sdk-typescript/src/core/data/SDKDataCoreCached.d.ts +50 -0
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreAIRequests.d.ts +19 -27
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +1080 -36
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +2201 -37
- package/build/sdk-typescript/src/core/resolvers/SDKDocsEntityItemResolver.d.ts +9 -9
- package/build/sdk-typescript/src/exports-pulsar.d.ts +0 -2
- package/build/sdk-typescript/src/exports.d.ts +38 -6
- package/build/sdk-typescript/src/model/base/SDKDesignSystemVersionStats.d.ts +1 -0
- package/build/sdk-typescript/src/model/components/SDKDesignComponentBase.d.ts +1 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/do-dont-guidelines/SDKDocsBlockActualDoDontGuidelines.d.ts +18 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed/SDKDocsBlockActualEmbed.d.ts +10 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-figma/SDKDocsBlockActualEmbedFigma.d.ts +10 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-youtube/SDKDocsBlockActualEmbedYoutube.d.ts +10 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/files/SDKDocsBlockActualFiles.d.ts +16 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/image/SDKDocsBlockActualImage.d.ts +10 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualDoDontGuidelines.d.ts +8 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbed.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbedFigma.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbedYoutube.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualFiles.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualImage.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualShortcutLinks.d.ts +8 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/shortcut-links/SDKDocsBlockActualShortcutLinks.d.ts +10 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +3 -1
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +2 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockFileProperty.d.ts +22 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +3 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +2 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponentPropsTable.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponents.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponentsConfig.d.ts +32 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFiles.d.ts +22 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockGuideline.d.ts +25 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockGuidelines.d.ts +6 -0
- package/build/sdk-typescript/src/model/documentation/builder/SDKDocumentationLegacyBlockBuilder.d.ts +1 -1
- package/build/sdk-typescript/src/model/enums/SDKDesignSystemRole.d.ts +2 -1
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockBehaviorDataType.d.ts +3 -1
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyType.d.ts +3 -1
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyCalloutType.d.ts +2 -1
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyHeadingType.d.ts +3 -1
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +6 -1
- package/build/sdk-typescript/src/model/enums/SDKFigmaComponentPreviewContainerSize.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +3 -3
- package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +1 -1
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSeatType.d.ts +3 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionProduct.d.ts +7 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatus.d.ts +3 -1
- package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +1 -1
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportDestinations.d.ts +5 -0
- package/build/sdk-typescript/src/model/files/SDKFileUpload.d.ts +9 -0
- package/build/sdk-typescript/src/model/groups/SDKTokenGroup.d.ts +1 -0
- package/build/sdk-typescript/src/model/mcp/SDKMCPStream.d.ts +8 -0
- package/build/sdk-typescript/src/model/membership/SDKMembership.d.ts +10 -6
- package/build/sdk-typescript/src/model/messaging/SDKChatThread.d.ts +14 -0
- package/build/sdk-typescript/src/model/messaging/SDKChatThreadMessage.d.ts +48 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeAgent.d.ts +8 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProject.d.ts +42 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectContext.d.ts +31 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectContextOverride.d.ts +20 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectDocument.d.ts +19 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectDocumentPreview.d.ts +13 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeature.d.ts +25 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureArtifact.d.ts +13 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureArtifactList.d.ts +7 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureIteration.d.ts +13 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessage.d.ts +26 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessageList.d.ts +10 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessageReaction.d.ts +9 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeaturePreview.d.ts +13 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectInvitation.d.ts +12 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectMembership.d.ts +14 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectRelation.d.ts +13 -0
- package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectDocumentSection.d.ts +6 -0
- package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectFeatureSection.d.ts +6 -0
- package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectSection.d.ts +12 -0
- package/build/sdk-typescript/src/model/storybook/SDKStorybookUpdate.d.ts +17 -0
- package/build/sdk-typescript/src/model/support/SDKSource.d.ts +8 -1
- package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +1 -1
- package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +1 -1
- package/build/sdk-typescript/src/model/threads/SDKThreadMessage.d.ts +36 -0
- package/build/sdk-typescript/src/model/threads/SDKThreadMessageList.d.ts +10 -0
- package/build/sdk-typescript/src/model/threads/SDKThreadMessageReaction.d.ts +9 -0
- package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +1 -1
- package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +1 -1
- package/build/sdk-typescript/src/model/tokens/SDKToken.d.ts +1 -0
- package/build/sdk-typescript/src/model/trail-events/SDKTrailEvent.d.ts +17 -0
- package/build/sdk-typescript/src/model/users/SDKUser.d.ts +7 -0
- package/build/sdk-typescript/src/model/users/SDKUserMembership.d.ts +13 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +22 -9
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +15 -9
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspacePortalSettings.d.ts +12 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductFeatures.d.ts +2 -2
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductPrice.d.ts +7 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProfile.d.ts +8 -26
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +72 -41
- package/build/sdk-typescript/src/tests/Areas/AreaRelay.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Areas/AreaThreads.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/helpers.d.ts +1 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +1 -1
- package/build/sdk-typescript/src/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +13 -2
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownLinkResolver.d.ts +39 -0
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +2 -2
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +33 -10
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +8 -3
- package/build/sdk-typescript/src/utils/RawUtils.d.ts +59 -3
- package/build/supernova-sdk-typescript.js +1 -2
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +19 -29
- package/build/sdk-typescript/src/core/areas/SDKAreaAI.d.ts +0 -75
- package/build/sdk-typescript/src/model/acl/SDKAcl.d.ts +0 -51
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemotePipelineModel.d.ts +0 -51
- package/build/sdk-typescript/src/model/projects/SDKProject.d.ts +0 -39
- package/build/sdk-typescript/src/model/projects/SDKProjectContext.d.ts +0 -47
- package/build/supernova-sdk-typescript.js.LICENSE.txt +0 -8
- /package/build/sdk-typescript/src/tests/Areas/{AreaAI.spec.d.ts → AreaMessaging.spec.d.ts} +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ElementDataView } from "../../model/elements/SDKElementDataView";
|
|
2
|
+
import { ElementProperty, ElementPropertyTargetElementType } from "../../model/elements/SDKElementProperty";
|
|
3
|
+
import { ElementPropertyValue } from "../../model/elements/values/SDKElementPropertyValue";
|
|
4
|
+
import { TokenType } from "../../model/enums/SDKTokenType";
|
|
5
|
+
import { TokenGroup } from "../../model/groups/SDKTokenGroup";
|
|
6
|
+
import { Component } from "../../model/components/SDKComponent";
|
|
7
|
+
import { ComponentGroup } from "../../model/groups/SDKComponentGroup";
|
|
8
|
+
import { DesignComponentGroup } from "../../model/groups/SDKDesignComponentGroup";
|
|
9
|
+
import { DesignComponent } from "../../model/components/SDKDesignComponent";
|
|
10
|
+
import { Source } from "../../model/support/SDKSource";
|
|
11
|
+
import { TokenTheme } from "../../model/themes/SDKTokenTheme";
|
|
12
|
+
import { Token } from "../../model/tokens/SDKToken";
|
|
13
|
+
import { DataCore } from "./SDKDataCore";
|
|
14
|
+
export declare class DataCoreCached extends DataCore {
|
|
15
|
+
private tokensCache;
|
|
16
|
+
private tokenGroupsCache;
|
|
17
|
+
private designSystemSourcesCache;
|
|
18
|
+
private themesCache;
|
|
19
|
+
private elementPropertyDefinitionsCache;
|
|
20
|
+
private elementPropertyValuesCache;
|
|
21
|
+
private elementViewsCache;
|
|
22
|
+
private componentsCache;
|
|
23
|
+
private componentGroupsCache;
|
|
24
|
+
private designComponentsCache;
|
|
25
|
+
private designComponentGroupsCache;
|
|
26
|
+
tokens(designSystemId: string, versionId: string, filter?: {
|
|
27
|
+
type?: TokenType;
|
|
28
|
+
brandId?: string;
|
|
29
|
+
}): Promise<Token[]>;
|
|
30
|
+
tokenGroups(designSystemId: string, versionId: string, filter?: {
|
|
31
|
+
type?: TokenType;
|
|
32
|
+
brandId?: string;
|
|
33
|
+
}): Promise<TokenGroup[]>;
|
|
34
|
+
designSystemSources(designSystemId: string): Promise<Source[]>;
|
|
35
|
+
themes(designSystemId: string, versionId: string): Promise<TokenTheme[]>;
|
|
36
|
+
elementPropertyDefinitions(designSystemId: string, versionId: string, type: ElementPropertyTargetElementType): Promise<ElementProperty[]>;
|
|
37
|
+
elementPropertyValues(designSystemId: string, versionId: string): Promise<ElementPropertyValue[]>;
|
|
38
|
+
elementViews(designSystemId: string, versionId: string, type: ElementPropertyTargetElementType): Promise<ElementDataView[]>;
|
|
39
|
+
components(designSystemId: string, versionId: string, filter?: {
|
|
40
|
+
brandId?: string;
|
|
41
|
+
}): Promise<Component[]>;
|
|
42
|
+
componentGroups(designSystemId: string, versionId: string): Promise<ComponentGroup[]>;
|
|
43
|
+
designComponents(designSystemId: string, versionId: string, filter?: {
|
|
44
|
+
brandId?: string;
|
|
45
|
+
}): Promise<DesignComponent[]>;
|
|
46
|
+
designComponentGroups(designSystemId: string, versionId: string, filter?: {
|
|
47
|
+
brandId?: string;
|
|
48
|
+
}): Promise<DesignComponentGroup[]>;
|
|
49
|
+
private cached;
|
|
50
|
+
}
|
|
@@ -1,36 +1,28 @@
|
|
|
1
|
-
import { AIGetRouteQueryTask } from "../../areas/
|
|
1
|
+
import { AIAgentPersona, AIGetRouteQueryTask, RelaySummarizeStrategy } from "../../areas/SDKAreaRelay";
|
|
2
2
|
import { DataBridge } from "../SDKDataBridge";
|
|
3
3
|
export declare class DataCoreAIRequests {
|
|
4
4
|
private bridge;
|
|
5
5
|
constructor(bridge: DataBridge);
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
invokeAmy(workspaceId: string, designSystemId: string, versionId: string, prompt: string, chatId: string, brandId?: string, promptMetadata?: {
|
|
7
|
+
forceBehavior?: {
|
|
8
|
+
llm?: {
|
|
9
|
+
model: string;
|
|
10
|
+
provider: "Anthropic" | "OpenAI" | "xAI" | "Google";
|
|
11
|
+
};
|
|
12
|
+
prompt?: string;
|
|
13
|
+
};
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}): Promise<ReadableStreamDefaultReader<Uint8Array>>;
|
|
16
|
+
/** Invokes an AI agent to answer questions or perform tasks based on the provided prompt */
|
|
17
|
+
invokeAgent(agent: AIAgentPersona, prompt: string, projectId: string, branchId?: string): Promise<ReadableStreamDefaultReader<Uint8Array>>;
|
|
18
|
+
/** Summarizes text using AI */
|
|
19
|
+
summarizeText(text: string, options?: {
|
|
20
|
+
maxWords?: number;
|
|
21
|
+
strategy?: RelaySummarizeStrategy;
|
|
16
22
|
}): Promise<{
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
enteredText: string;
|
|
24
|
+
summarizedText: string;
|
|
19
25
|
}>;
|
|
20
|
-
/** Remote: Answers question based on the data of design system in natural language. This method is non-streaming. */
|
|
21
|
-
answer(workspaceId: string, designSystemId: string, versionId: string, question: string, options: {
|
|
22
|
-
persona: "designer" | "developer";
|
|
23
|
-
scope: "all" | "tokens" | "components" | "assets" | "docs";
|
|
24
|
-
density: "compact" | "full";
|
|
25
|
-
}): Promise<string>;
|
|
26
|
-
/** Remote: Answers question based on the data of design system in natural language. This method streams answer. */
|
|
27
|
-
answerAsStream(workspaceId: string, designSystemId: string, versionId: string, question: string, options: {
|
|
28
|
-
persona: "designer" | "developer";
|
|
29
|
-
scope: "all" | "tokens" | "components" | "assets" | "docs";
|
|
30
|
-
density: "compact" | "full";
|
|
31
|
-
}): Promise<ReadableStreamDefaultReader<Uint8Array>>;
|
|
32
|
-
/** Indexes or reindexes a design system to prepare it for QA engine */
|
|
33
|
-
rebuildAnswerIndex(workspaceId: string, designSystemId: string, versionId: string): Promise<void>;
|
|
34
26
|
/** Retrieves executable url for various AI tasks */
|
|
35
27
|
executableTaskUrl(task: AIGetRouteQueryTask): Promise<string>;
|
|
36
28
|
cachedEndpoints: Map<AIGetRouteQueryTask, string>;
|