@supernova-studio/supernova-sdk-beta 2.2.7 → 2.2.12
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 +11 -5
- 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/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 +2093 -64
- package/build/sdk-typescript/src/core/areas/SDKAreaRawData.d.ts +2020 -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 +64 -44
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +1 -1
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +2302 -92
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreAIRequests.d.ts +19 -27
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +1047 -42
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +2162 -34
- 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 +37 -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/membership/SDKMembership.d.ts +8 -6
- package/build/sdk-typescript/src/model/messaging/SDKChatThread.d.ts +14 -0
- package/build/sdk-typescript/src/model/messaging/SDKChatThreadMessage.d.ts +51 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeAgent.d.ts +8 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProject.d.ts +41 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectContext.d.ts +26 -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 +13 -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 +12 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +12 -9
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +17 -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 +75 -38
- 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 +53 -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
|
@@ -27,5 +27,10 @@ export declare enum DocumentationLegacyPageBlockType {
|
|
|
27
27
|
tabItem = "TabItem",
|
|
28
28
|
table = "Table",
|
|
29
29
|
tableCell = "TableCell",
|
|
30
|
-
tableRow = "TableRow"
|
|
30
|
+
tableRow = "TableRow",
|
|
31
|
+
figmaComponentPropsTable = "FigmaComponentPropsTable",
|
|
32
|
+
figmaComponents = "FigmaComponents",
|
|
33
|
+
files = "Files",
|
|
34
|
+
guidelines = "Guidelines",
|
|
35
|
+
guideline = "Guideline"
|
|
31
36
|
}
|
|
@@ -37,13 +37,13 @@ export declare const ALL_TOKEN_TYPES: readonly [TokenType.dimension, TokenType.s
|
|
|
37
37
|
export declare const PURE_TOKEN_TYPES: readonly [TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.string, TokenType.productCopy, TokenType.fontFamily, TokenType.fontWeight, TokenType.textCase, TokenType.textDecoration, TokenType.visibility];
|
|
38
38
|
export type PureTokenType = (typeof PURE_TOKEN_TYPES)[number];
|
|
39
39
|
export type NonPureTokenType = Exclude<TokenType, PureTokenType>;
|
|
40
|
-
export declare const tokenTypeIsPure: (tokenType: TokenType) => tokenType is
|
|
40
|
+
export declare const tokenTypeIsPure: (tokenType: TokenType) => tokenType is PureTokenType;
|
|
41
41
|
export declare const tokenTypeIsNonPure: (tokenType: TokenType) => tokenType is NonPureTokenType;
|
|
42
42
|
export declare const REPLACABLE_TOKEN_TYPES: readonly [TokenType.color, TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.string, TokenType.productCopy, TokenType.fontFamily, TokenType.fontWeight, TokenType.textCase, TokenType.textDecoration, TokenType.visibility];
|
|
43
43
|
export type ReplacableTokenType = (typeof REPLACABLE_TOKEN_TYPES)[number];
|
|
44
44
|
export declare const REFERENCABLE_TOKEN_TYPES: readonly [TokenType.color, TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.fontFamily, TokenType.fontWeight, TokenType.textCase, TokenType.textDecoration];
|
|
45
45
|
export type ReferencableTokenType = (typeof REFERENCABLE_TOKEN_TYPES)[number];
|
|
46
|
-
export declare const tokenTypeIsReferencable: (tokenType: TokenType) => tokenType is
|
|
46
|
+
export declare const tokenTypeIsReferencable: (tokenType: TokenType) => tokenType is ReferencableTokenType;
|
|
47
47
|
export declare const DT_TOKEN_TYPES: readonly [TokenType.color, TokenType.shadow, TokenType.gradient, TokenType.typography, TokenType.border, TokenType.dimension, TokenType.size, TokenType.space, TokenType.opacity, TokenType.fontSize, TokenType.lineHeight, TokenType.letterSpacing, TokenType.paragraphSpacing, TokenType.borderWidth, TokenType.radius, TokenType.duration, TokenType.zIndex, TokenType.fontFamily, TokenType.fontWeight, TokenType.string, TokenType.textCase, TokenType.textDecoration, TokenType.visibility];
|
|
48
48
|
export type DTTokenType = (typeof DT_TOKEN_TYPES)[number];
|
|
49
|
-
export type DTOriginalTokenType = "color" | "borderRadius" | "boxShadow" | "gradient" | "typography" | "border" | "borderWidth" | "sizing" | "opacity" | "spacing" | "fontSizes" | "paragraphSpacing" | "letterSpacing" | "lineHeights" | "other" | "text" | "dimension" | "number" | "fontFamilies" | "fontWeights" | "textCase" | "textDecoration" | "duration";
|
|
49
|
+
export type DTOriginalTokenType = "color" | "borderRadius" | "boxShadow" | "gradient" | "typography" | "border" | "borderWidth" | "sizing" | "opacity" | "spacing" | "fontSizes" | "fontSize" | "paragraphSpacing" | "letterSpacing" | "lineHeights" | "lineHeight" | "other" | "text" | "dimension" | "number" | "fontFamilies" | "fontFamily" | "fontWeights" | "fontWeight" | "textCase" | "textDecoration" | "duration";
|
|
@@ -7,6 +7,13 @@ export declare enum WorkspaceSubscriptionProductCode {
|
|
|
7
7
|
teamTest = "team_test",
|
|
8
8
|
/** The workspace is on company tier */
|
|
9
9
|
company = "company",
|
|
10
|
+
/** The workspace is on pro tier */
|
|
11
|
+
pro = "pro",
|
|
10
12
|
/** The workspace is on enterprise tier */
|
|
11
13
|
enterprise = "enterprise"
|
|
12
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* List of all subscription product codes available for checkout.
|
|
17
|
+
*/
|
|
18
|
+
export declare const subscriptionCheckoutProductCodes: readonly [WorkspaceSubscriptionProductCode.team, WorkspaceSubscriptionProductCode.company, WorkspaceSubscriptionProductCode.pro];
|
|
19
|
+
export type SubscriptionCheckoutProductCode = (typeof subscriptionCheckoutProductCodes)[number];
|
|
@@ -6,5 +6,7 @@ export declare enum WorkspaceSubscriptionStatus {
|
|
|
6
6
|
/** The subscription is cancelled */
|
|
7
7
|
cancelled = "cancelled",
|
|
8
8
|
/** The subscription is suspended */
|
|
9
|
-
suspended = "suspended"
|
|
9
|
+
suspended = "suspended",
|
|
10
|
+
/** The subscription is downgraded to free */
|
|
11
|
+
downgradedToFree = "downgraded_to_free"
|
|
10
12
|
}
|
|
@@ -9,7 +9,7 @@ export declare class Pipeline {
|
|
|
9
9
|
name: string;
|
|
10
10
|
isEnabled: boolean;
|
|
11
11
|
exporterConfigurationProperties?: ExporterConfigurationProperties;
|
|
12
|
-
eventType: "OnVersionReleased" | "OnHeadChanged" | "OnSourceUpdated" | "None";
|
|
12
|
+
eventType: "OnVersionReleased" | "OnHeadChanged" | "OnSourceUpdated" | "OnDocumentationPublished" | "None";
|
|
13
13
|
exporterId: string;
|
|
14
14
|
destinations: {
|
|
15
15
|
webhookUrl?: string;
|
|
@@ -79,6 +79,10 @@ export declare class GitlabExportDestination {
|
|
|
79
79
|
}
|
|
80
80
|
export type DocsExportDestinationModel = {
|
|
81
81
|
environment: DocumentationEnvironment;
|
|
82
|
+
changes: DocsExportDestinationChanges | null;
|
|
83
|
+
};
|
|
84
|
+
export type DocsExportDestinationChanges = {
|
|
85
|
+
selectivePublishing: boolean | null;
|
|
82
86
|
};
|
|
83
87
|
/**
|
|
84
88
|
* Type definition for the data model of a documentation export destination.
|
|
@@ -87,6 +91,7 @@ export type DocsExportDestinationModel = {
|
|
|
87
91
|
*/
|
|
88
92
|
export declare class DocsExportDestination {
|
|
89
93
|
environment: DocumentationEnvironment;
|
|
94
|
+
changes: DocsExportDestinationChanges | null;
|
|
90
95
|
constructor(data: DocsExportDestinationModel);
|
|
91
96
|
}
|
|
92
97
|
export type ExportDestinationsModel = {
|
|
@@ -40,4 +40,5 @@ export declare class TokenGroup {
|
|
|
40
40
|
setSortOrder(order: number): void;
|
|
41
41
|
toWriteObject(): TokenGroupRemoteModel;
|
|
42
42
|
toMutatedObject(childrenIds: Array<string>): TokenGroup;
|
|
43
|
+
copyWith<K extends "parentGroupId" | "childrenIds" | "subgroupIds">(key: K, value: this[K]): this;
|
|
43
44
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
+
import { DTOUserWorkspaceMembership } from "@supernova-studio/client";
|
|
2
|
+
import { WorkspaceSeatType } from "@supernova-studio/model";
|
|
1
3
|
import { UserRole } from "../enums/SDKUserRole";
|
|
2
|
-
import { Workspace
|
|
3
|
-
export type MembershipRemoteModel =
|
|
4
|
-
workspace: WorkspaceRemoteModel;
|
|
5
|
-
role: UserRole;
|
|
6
|
-
effectiveRole: UserRole;
|
|
7
|
-
};
|
|
4
|
+
import { Workspace } from "../workspaces/SDKWorkspace";
|
|
5
|
+
export type MembershipRemoteModel = DTOUserWorkspaceMembership;
|
|
8
6
|
export declare class Membership {
|
|
9
7
|
/** Workspace of this membership. */
|
|
10
8
|
workspace: Workspace;
|
|
@@ -12,5 +10,9 @@ export declare class Membership {
|
|
|
12
10
|
role: UserRole;
|
|
13
11
|
/** Actual role of the user. */
|
|
14
12
|
effectiveRole: UserRole;
|
|
13
|
+
/** Type of the seat in the workspace. */
|
|
14
|
+
seatType: WorkspaceSeatType;
|
|
15
|
+
/** Actual type of the seat in the workspace. */
|
|
16
|
+
effectiveSeatType: WorkspaceSeatType;
|
|
15
17
|
constructor(model: MembershipRemoteModel);
|
|
16
18
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DTOForgeChatThread } from "@supernova-studio/client";
|
|
2
|
+
import { ChatThreadMessage } from "./SDKChatThreadMessage";
|
|
3
|
+
export declare class ChatThread {
|
|
4
|
+
id: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
workspaceId: string;
|
|
7
|
+
title: string;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
messages?: Array<ChatThreadMessage>;
|
|
11
|
+
constructor(model: DTOForgeChatThread, messages?: Array<ChatThreadMessage>);
|
|
12
|
+
copyWithMessages(messages: Array<ChatThreadMessage>): ChatThread;
|
|
13
|
+
toRemote(): DTOForgeChatThread;
|
|
14
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { DTOForgeChatMessage } from "@supernova-studio/client";
|
|
2
|
+
export declare enum ChatMessageUserScoreType {
|
|
3
|
+
Positive = "Positive",
|
|
4
|
+
Negative = "Negative"
|
|
5
|
+
}
|
|
6
|
+
export declare class ChatThreadMessage {
|
|
7
|
+
id: string;
|
|
8
|
+
threadId: string;
|
|
9
|
+
payload: string;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
sender: {
|
|
13
|
+
type: "User";
|
|
14
|
+
userId: string;
|
|
15
|
+
} | {
|
|
16
|
+
type: "Agent";
|
|
17
|
+
persona: "Amy";
|
|
18
|
+
} | {
|
|
19
|
+
type: "Developer";
|
|
20
|
+
} | {
|
|
21
|
+
type: "FunctionCallInput";
|
|
22
|
+
} | {
|
|
23
|
+
type: "FunctionCallOutput";
|
|
24
|
+
};
|
|
25
|
+
userScore?: {
|
|
26
|
+
type: ChatMessageUserScoreType;
|
|
27
|
+
tags: string[];
|
|
28
|
+
comment?: string;
|
|
29
|
+
};
|
|
30
|
+
constructor(model: DTOForgeChatMessage);
|
|
31
|
+
toRemote(): DTOForgeChatMessage;
|
|
32
|
+
}
|
|
33
|
+
export type ChatThreadMessageInput = {
|
|
34
|
+
payload: string;
|
|
35
|
+
senderType: "User";
|
|
36
|
+
persona?: never;
|
|
37
|
+
userId: string;
|
|
38
|
+
opikTraceId?: string;
|
|
39
|
+
} | {
|
|
40
|
+
payload: string;
|
|
41
|
+
senderType: "Agent";
|
|
42
|
+
persona?: "Amy";
|
|
43
|
+
userId?: never;
|
|
44
|
+
opikTraceId?: string;
|
|
45
|
+
} | {
|
|
46
|
+
payload: string;
|
|
47
|
+
senderType: "Developer" | "FunctionCallInput" | "FunctionCallOutput";
|
|
48
|
+
persona?: never;
|
|
49
|
+
userId?: never;
|
|
50
|
+
opikTraceId?: string;
|
|
51
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DTOForgeProject, DTOForgeProjectAccessMode, DTOForgeProjectRole, DTOForgeProjectDefaultRole, DTOForgeProjectDocumentPreview, DTOForgeProjectFeaturePreview } from "@supernova-studio/client";
|
|
2
|
+
import { ForgeProjectContext } from "./SDKForgeProjectContext";
|
|
3
|
+
import { ForgeProjectDocumentPreview } from "./SDKForgeProjectDocumentPreview";
|
|
4
|
+
import { ForgeProjectFeaturePreview } from "./SDKForgeProjectFeaturePreview";
|
|
5
|
+
export type ForgeProjectRemoteModel = DTOForgeProject & {
|
|
6
|
+
effectiveRole: DTOForgeProjectRole;
|
|
7
|
+
documents: DTOForgeProjectDocumentPreview[];
|
|
8
|
+
features: DTOForgeProjectFeaturePreview[];
|
|
9
|
+
};
|
|
10
|
+
export declare class ForgeProject {
|
|
11
|
+
id: string;
|
|
12
|
+
workspaceId: string;
|
|
13
|
+
projectContextId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
description: string | undefined;
|
|
16
|
+
instruction: string | null;
|
|
17
|
+
tags: string[];
|
|
18
|
+
accessMode: DTOForgeProjectAccessMode;
|
|
19
|
+
defaultRole: DTOForgeProjectDefaultRole;
|
|
20
|
+
effectiveRole: DTOForgeProjectRole;
|
|
21
|
+
isArchived: boolean;
|
|
22
|
+
emoji: string | undefined;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
createdByUserId: string | undefined;
|
|
25
|
+
updatedAt: Date;
|
|
26
|
+
numberOfFeatures: number;
|
|
27
|
+
numberOfDocuments: number;
|
|
28
|
+
documents: ForgeProjectDocumentPreview[];
|
|
29
|
+
features: ForgeProjectFeaturePreview[];
|
|
30
|
+
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
31
|
+
context: ForgeProjectContext | undefined;
|
|
32
|
+
/** @deprecated use `projectContextId` */
|
|
33
|
+
fpContextId: string;
|
|
34
|
+
/** @deprecated use `name` and `description` properties on project */
|
|
35
|
+
meta: {
|
|
36
|
+
name: string;
|
|
37
|
+
description?: string;
|
|
38
|
+
};
|
|
39
|
+
constructor(model: ForgeProjectRemoteModel);
|
|
40
|
+
toRemote(): ForgeProjectRemoteModel;
|
|
41
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { DTOForgeProjectContextCreateV2, DTOForgeProjectContextUpdateV2, DTOForgeProjectContextV2, DTOForgeProjectTheme } from "@supernova-studio/client";
|
|
2
|
+
export type ForgeProjectContextCreateInput = DTOForgeProjectContextCreateV2;
|
|
3
|
+
export type ForgeProjectContextUpdateInput = DTOForgeProjectContextUpdateV2;
|
|
4
|
+
export type ForgeProjectContextRemoteModel = DTOForgeProjectContextV2;
|
|
5
|
+
export type ForgeProjectTheme = DTOForgeProjectTheme;
|
|
6
|
+
export declare class ForgeProjectContext {
|
|
7
|
+
id: string;
|
|
8
|
+
workspaceId: string;
|
|
9
|
+
designSystemId: string | undefined;
|
|
10
|
+
name: string;
|
|
11
|
+
description: string | undefined;
|
|
12
|
+
productContext: string | undefined;
|
|
13
|
+
componentSet: ForgeProjectContextRemoteModel["componentSet"];
|
|
14
|
+
iconSet: ForgeProjectContextRemoteModel["iconSet"];
|
|
15
|
+
additionalContext: string | undefined;
|
|
16
|
+
theme: ForgeProjectContextRemoteModel["theme"];
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
isArchived: boolean;
|
|
20
|
+
themePreset: string | undefined;
|
|
21
|
+
defaultTokenThemeSetId: string | undefined;
|
|
22
|
+
tokenThemeSets: ForgeProjectContextRemoteModel["tokenThemeSets"];
|
|
23
|
+
brandId?: string;
|
|
24
|
+
constructor(model: ForgeProjectContextRemoteModel);
|
|
25
|
+
toRemote(): ForgeProjectContextRemoteModel;
|
|
26
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DTOForgeProjectArtifact } from "@supernova-studio/client";
|
|
2
|
+
export declare class ForgeProjectDocument {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
iterationId: string | null;
|
|
6
|
+
previewUrl: string | null;
|
|
7
|
+
projectId: string;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
createdByUserId: string;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
sectionId: string | null;
|
|
12
|
+
sortOrder: number;
|
|
13
|
+
roomId: string;
|
|
14
|
+
threadId: string | undefined;
|
|
15
|
+
thumbnailUrl: string | undefined;
|
|
16
|
+
isArchived: boolean;
|
|
17
|
+
constructor(model: DTOForgeProjectArtifact);
|
|
18
|
+
toRemote(): DTOForgeProjectArtifact;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DTOForgeProjectDocumentPreview } from "@supernova-studio/client";
|
|
2
|
+
export declare class ForgeProjectDocumentPreview {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
thumbnail: {
|
|
6
|
+
id: string;
|
|
7
|
+
url: string;
|
|
8
|
+
} | undefined;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
constructor(model: DTOForgeProjectDocumentPreview);
|
|
12
|
+
toRemote(): DTOForgeProjectDocumentPreview;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DTOForgeProjectFeature } from "@supernova-studio/client";
|
|
2
|
+
export declare enum ForgeProjectFeatureStatus {
|
|
3
|
+
DRAFT = "Draft",
|
|
4
|
+
READY_FOR_DEVELOPMENT = "ReadyForDevelopment"
|
|
5
|
+
}
|
|
6
|
+
export declare class ForgeProjectFeature {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
isArchived: boolean;
|
|
11
|
+
projectId: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
createdByUserId: string;
|
|
14
|
+
updatedAt: Date | undefined;
|
|
15
|
+
sectionId: string | null;
|
|
16
|
+
sortOrder: number;
|
|
17
|
+
status: ForgeProjectFeatureStatus;
|
|
18
|
+
numberOfIterations: number;
|
|
19
|
+
numberOfBookmarkedIterations: number;
|
|
20
|
+
lastReplyTimestamp: Date | undefined;
|
|
21
|
+
thumbnailUrl: string | undefined;
|
|
22
|
+
threadId: string | undefined;
|
|
23
|
+
constructor(model: DTOForgeProjectFeature);
|
|
24
|
+
toRemote(): DTOForgeProjectFeature;
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DTOFeatureArtifact } from "@supernova-studio/client";
|
|
2
|
+
export declare class ForgeProjectFeatureArtifact {
|
|
3
|
+
id: string;
|
|
4
|
+
key: string;
|
|
5
|
+
fileId?: string;
|
|
6
|
+
filePath?: string;
|
|
7
|
+
iterationId?: string;
|
|
8
|
+
url: string;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
constructor(model: DTOFeatureArtifact);
|
|
12
|
+
toRemote(): DTOFeatureArtifact;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DTOFeatureArtifactListResponse } from "@supernova-studio/client";
|
|
2
|
+
import { ForgeProjectFeatureArtifact } from "./SDKForgeProjectFeatureArtifact";
|
|
3
|
+
export declare class ForgeProjectFeatureArtifactList {
|
|
4
|
+
artifacts: ForgeProjectFeatureArtifact[];
|
|
5
|
+
constructor(model: DTOFeatureArtifactListResponse);
|
|
6
|
+
toRemote(): DTOFeatureArtifactListResponse;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DTOFeatureIteration } from "@supernova-studio/client";
|
|
2
|
+
export declare class ForgeProjectFeatureIteration {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
startedFromMessageId: string;
|
|
6
|
+
isInProgress: boolean;
|
|
7
|
+
baseIterationId?: string;
|
|
8
|
+
staticPreviewUrl?: string;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt?: Date;
|
|
11
|
+
constructor(model: DTOFeatureIteration);
|
|
12
|
+
toRemote(): DTOFeatureIteration;
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DTOFeatureMessage } from "@supernova-studio/client";
|
|
2
|
+
export declare class ForgeProjectFeatureMessage {
|
|
3
|
+
id: string;
|
|
4
|
+
sender: {
|
|
5
|
+
type: "User";
|
|
6
|
+
userId: string;
|
|
7
|
+
} | {
|
|
8
|
+
type: "Agent";
|
|
9
|
+
} | {
|
|
10
|
+
type: "System";
|
|
11
|
+
onBehalfOfUserId: string;
|
|
12
|
+
};
|
|
13
|
+
body: string;
|
|
14
|
+
isPrompt: boolean;
|
|
15
|
+
startsNewThread: boolean;
|
|
16
|
+
parentMessageId?: string;
|
|
17
|
+
replyToMessageId?: string;
|
|
18
|
+
attachments?: {
|
|
19
|
+
iterationId?: string;
|
|
20
|
+
};
|
|
21
|
+
createdAt: Date;
|
|
22
|
+
updatedAt: Date | undefined;
|
|
23
|
+
agentResponseTrackerId?: string | null;
|
|
24
|
+
constructor(model: DTOFeatureMessage);
|
|
25
|
+
toRemote(): DTOFeatureMessage;
|
|
26
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DTOFeatureMessageListResponse } from "@supernova-studio/client";
|
|
2
|
+
import { ForgeProjectFeatureMessage } from "./SDKForgeProjectFeatureMessage";
|
|
3
|
+
import { ForgeProjectFeatureMessageReaction } from "./SDKForgeProjectFeatureMessageReaction";
|
|
4
|
+
export declare class ForgeProjectFeatureMessageList {
|
|
5
|
+
messages: ForgeProjectFeatureMessage[];
|
|
6
|
+
reactions: ForgeProjectFeatureMessageReaction[];
|
|
7
|
+
lastSeenMessageId?: string;
|
|
8
|
+
constructor(model: DTOFeatureMessageListResponse);
|
|
9
|
+
toRemote(): DTOFeatureMessageListResponse;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DTOFeatureMessageReaction } from "@supernova-studio/client";
|
|
2
|
+
export declare class ForgeProjectFeatureMessageReaction {
|
|
3
|
+
messageId: string;
|
|
4
|
+
userId: string;
|
|
5
|
+
emoji: string;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
constructor(model: DTOFeatureMessageReaction);
|
|
8
|
+
toRemote(): DTOFeatureMessageReaction;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DTOForgeProjectFeaturePreview } from "@supernova-studio/client";
|
|
2
|
+
export declare class ForgeProjectFeaturePreview {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
thumbnail: {
|
|
6
|
+
id: string;
|
|
7
|
+
url: string;
|
|
8
|
+
} | undefined;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
constructor(model: DTOForgeProjectFeaturePreview);
|
|
12
|
+
toRemote(): DTOForgeProjectFeaturePreview;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DTOForgeProjectInvitation } from "@supernova-studio/client";
|
|
2
|
+
export declare class ForgeProjectInvitation {
|
|
3
|
+
email: string;
|
|
4
|
+
createdAt: Date;
|
|
5
|
+
updatedAt: Date;
|
|
6
|
+
role: "Admin" | "Viewer" | "Builder";
|
|
7
|
+
workspaceInvitationId: string;
|
|
8
|
+
forgeProjectId: string;
|
|
9
|
+
createdById: string;
|
|
10
|
+
constructor(model: DTOForgeProjectInvitation);
|
|
11
|
+
toRemote(): DTOForgeProjectInvitation;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DTOForgeProjectMember, DTOForgeProjectMemberRole } from "@supernova-studio/client";
|
|
2
|
+
export type ForgeProjectMembershipRole = DTOForgeProjectMemberRole;
|
|
3
|
+
export declare class ForgeProjectMembership {
|
|
4
|
+
user: DTOForgeProjectMember["user"];
|
|
5
|
+
role: ForgeProjectMembershipRole;
|
|
6
|
+
userId: string;
|
|
7
|
+
effectiveRole: ForgeProjectMembershipRole;
|
|
8
|
+
forgeProjectId: string;
|
|
9
|
+
workspaceMembershipId: string;
|
|
10
|
+
workspaceRole: DTOForgeProjectMember["workspaceRole"];
|
|
11
|
+
constructor(model: DTOForgeProjectMember);
|
|
12
|
+
toRemote(): DTOForgeProjectMember;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DTOForgeRelation, DTOForgeRelationType } from "@supernova-studio/client";
|
|
2
|
+
export type ForgeProjectRelationItemType = DTOForgeRelationType;
|
|
3
|
+
export declare class ForgeProjectRelation {
|
|
4
|
+
id: string;
|
|
5
|
+
sourceItemId: string;
|
|
6
|
+
sourceItemType: ForgeProjectRelationItemType;
|
|
7
|
+
targetItemId: string;
|
|
8
|
+
targetItemType: ForgeProjectRelationItemType;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
projectId: string;
|
|
11
|
+
constructor(model: DTOForgeRelation);
|
|
12
|
+
toRemote(): DTOForgeRelation;
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DTOForgeSection } from "@supernova-studio/client";
|
|
2
|
+
import { ForgeProjectSection } from "./SDKForgeProjectSection";
|
|
3
|
+
export declare class ForgeProjectDocumentSection extends ForgeProjectSection {
|
|
4
|
+
childType: "Artifact";
|
|
5
|
+
constructor(model: DTOForgeSection);
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DTOForgeSection } from "@supernova-studio/client";
|
|
2
|
+
import { ForgeProjectSection } from "./SDKForgeProjectSection";
|
|
3
|
+
export declare class ForgeProjectFeatureSection extends ForgeProjectSection {
|
|
4
|
+
childType: "Feature";
|
|
5
|
+
constructor(model: DTOForgeSection);
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DTOForgeSection } from "@supernova-studio/client";
|
|
2
|
+
export declare abstract class ForgeProjectSection {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
createdAt: Date;
|
|
6
|
+
updatedAt: Date;
|
|
7
|
+
abstract childType: "Artifact" | "Feature";
|
|
8
|
+
sortOrder: number;
|
|
9
|
+
projectId: string;
|
|
10
|
+
constructor(model: DTOForgeSection);
|
|
11
|
+
toRemote(): DTOForgeSection;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type RemoteStorybookUpdate = {
|
|
2
|
+
isFailed: boolean;
|
|
3
|
+
docsCount: number;
|
|
4
|
+
storiesCount: number;
|
|
5
|
+
created: string[];
|
|
6
|
+
updated: string[];
|
|
7
|
+
deleted: string[];
|
|
8
|
+
};
|
|
9
|
+
export declare class StorybookUpdate {
|
|
10
|
+
isFailed: boolean;
|
|
11
|
+
docsCount: number;
|
|
12
|
+
storiesCount: number;
|
|
13
|
+
created: string[];
|
|
14
|
+
updated: string[];
|
|
15
|
+
deleted: string[];
|
|
16
|
+
constructor(update: RemoteStorybookUpdate);
|
|
17
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DTPluginPreciseCopyStrategy, DTPluginThemeOverrideStrategy } from "../../tools/design-tokens/utilities/SDKDTMapLoader";
|
|
2
2
|
import { ImportWarningType } from "../enums/SDKCloudWarningType";
|
|
3
3
|
import { SourceType } from "../enums/SDKSourceType";
|
|
4
|
+
import { StorybookUpdate } from "../storybook/SDKStorybookUpdate";
|
|
4
5
|
declare enum SourceRemoteType {
|
|
5
6
|
figma = "Figma",
|
|
6
7
|
tokenStudio = "TokenStudio",
|
|
@@ -127,6 +128,11 @@ export type SourceRemoteModelStorybook = {
|
|
|
127
128
|
lastImportedSuccessfully?: string;
|
|
128
129
|
description?: string;
|
|
129
130
|
isUsingVpn?: boolean;
|
|
131
|
+
lastImportedResult?: {
|
|
132
|
+
created: number;
|
|
133
|
+
updated: number;
|
|
134
|
+
deleted: number;
|
|
135
|
+
};
|
|
130
136
|
};
|
|
131
137
|
export type SourceModelTokenStudio = Omit<SourceRemoteModelTokensStudio, "lastUpdatesCheckedAt" | "lastImportedAt"> & {
|
|
132
138
|
lastUpdatesCheckedAt?: Date;
|
|
@@ -142,7 +148,7 @@ export type SourceModelFigmaVariablesPlugin = Omit<SourceRemoteModelFigmaVariabl
|
|
|
142
148
|
export type SourceModelStorybook = Omit<SourceRemoteModelStorybook, "lastImportedAt" | "lastImportedSuccessfully"> & {
|
|
143
149
|
lastImportedAt?: Date;
|
|
144
150
|
lastImportedSuccessfully?: Date;
|
|
145
|
-
|
|
151
|
+
isCLI: boolean;
|
|
146
152
|
};
|
|
147
153
|
export type SourceTransportModel = Pick<Source, "type" | "id" | "fileName" | "brandId" | "themeId" | "scope"> & {
|
|
148
154
|
cloud?: SourceRemoteModelCloud | null;
|
|
@@ -164,6 +170,7 @@ export declare class Source {
|
|
|
164
170
|
get isCloudAvailable(): boolean;
|
|
165
171
|
get isTokensStudioAvailable(): boolean;
|
|
166
172
|
get tokensStudioHasError(): boolean;
|
|
173
|
+
updateStorybookImportResult(update: StorybookUpdate): void;
|
|
167
174
|
constructor(model: SourceRemoteModel);
|
|
168
175
|
/** Constructs representation that can be used to write full object to remote */
|
|
169
176
|
toRemote(): SourceRemoteModel;
|
|
@@ -47,7 +47,7 @@ export declare class TokenTheme {
|
|
|
47
47
|
value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
|
|
48
48
|
} | {
|
|
49
49
|
aliasTo: string | undefined;
|
|
50
|
-
value:
|
|
50
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").StringTokenRemoteValue;
|
|
51
51
|
} | {
|
|
52
52
|
aliasTo: string | undefined;
|
|
53
53
|
value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
|
|
@@ -38,7 +38,7 @@ export declare class TokenThemeOverride {
|
|
|
38
38
|
value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
|
|
39
39
|
} | {
|
|
40
40
|
aliasTo: string | undefined;
|
|
41
|
-
value:
|
|
41
|
+
value: import("../tokens/remote/SDKRemoteTokenValue").StringTokenRemoteValue;
|
|
42
42
|
} | {
|
|
43
43
|
aliasTo: string | undefined;
|
|
44
44
|
value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { DTOThreadMessage } from "@supernova-studio/client";
|
|
2
|
+
export declare class ThreadMessage {
|
|
3
|
+
id: string;
|
|
4
|
+
sender: {
|
|
5
|
+
type: "User";
|
|
6
|
+
userId: string;
|
|
7
|
+
} | {
|
|
8
|
+
type: "Agent";
|
|
9
|
+
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
10
|
+
} | {
|
|
11
|
+
type: "System";
|
|
12
|
+
onBehalfOfUserId: string;
|
|
13
|
+
};
|
|
14
|
+
body: string;
|
|
15
|
+
isPrompt: boolean;
|
|
16
|
+
startsNewThread: boolean;
|
|
17
|
+
parentMessageId?: string;
|
|
18
|
+
replyToMessageId?: string;
|
|
19
|
+
attachments?: DTOThreadMessage["attachments"];
|
|
20
|
+
createdAt: Date;
|
|
21
|
+
updatedAt: Date | undefined;
|
|
22
|
+
agentResponseTrackerId?: string | null;
|
|
23
|
+
threadId: string;
|
|
24
|
+
promptMetadata?: {
|
|
25
|
+
forceBehavior?: {
|
|
26
|
+
llm?: {
|
|
27
|
+
model: string;
|
|
28
|
+
provider: "Anthropic" | "OpenAI" | "xAI" | "Google";
|
|
29
|
+
};
|
|
30
|
+
prompt?: string;
|
|
31
|
+
};
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
};
|
|
34
|
+
constructor(model: DTOThreadMessage);
|
|
35
|
+
toRemote(): DTOThreadMessage;
|
|
36
|
+
}
|