@supernova-studio/supernova-sdk-beta 2.4.12 → 2.5.1
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/areas/SDKAreaAgentChats.d.ts +4 -1
- package/build/types/core/areas/SDKAreaBulkOperations.d.ts +3 -3
- package/build/types/core/areas/SDKAreaComponents.d.ts +7 -31
- package/build/types/core/areas/SDKAreaDataSources.d.ts +5 -0
- package/build/types/core/areas/SDKAreaDocumentation.d.ts +18 -20
- package/build/types/core/areas/SDKAreaMCP.d.ts +4 -3
- package/build/types/core/areas/SDKAreaMe.d.ts +0 -2
- package/build/types/core/areas/SDKAreaProjects.d.ts +77 -922
- package/build/types/core/areas/SDKAreaRawData.d.ts +78 -917
- package/build/types/core/areas/SDKAreaResources.d.ts +4 -2
- package/build/types/core/areas/SDKAreaThreads.d.ts +1 -115
- package/build/types/core/areas/SDKAreaTokenValues.d.ts +15 -2
- package/build/types/core/areas/SDKAreaTokens.d.ts +3 -4
- package/build/types/core/areas/SDKAreaVersions.d.ts +3 -3
- package/build/types/core/areas/SDKAreaWorkspaces.d.ts +3 -4
- package/build/types/core/data/SDKDataBridge.d.ts +0 -1
- package/build/types/core/data/SDKDataCore.d.ts +139 -1091
- package/build/types/core/data/SDKDataCoreCached.d.ts +0 -3
- package/build/types/core/data/requests/SDKDataCoreReadRequests.d.ts +55 -470
- package/build/types/core/data/requests/SDKDataCoreWriteRequests.d.ts +158 -1006
- package/build/types/core/resolvers/SDKDocsEntityItemResolver.d.ts +6 -6
- package/build/types/exports.d.ts +2 -1
- package/build/types/model/activity-events/SDKActivityEvent.d.ts +6710 -3
- package/build/types/model/agent-chats/SDKAgentChat.d.ts +12 -1
- package/build/types/model/base/SDKDesignSystemVersionStats.d.ts +6 -1
- package/build/types/model/docs/blocks/support/SDKDocsImageRef.d.ts +1 -1
- package/build/types/model/documentation/SDKPublishedDocsSite.d.ts +20 -0
- package/build/types/model/enums/SDKUnit.d.ts +2 -0
- package/build/types/model/support/SDKSource.d.ts +1 -1
- package/build/types/model/tokens/SDKColorToken.d.ts +4 -0
- package/build/types/model/tokens/SDKDimensionToken.d.ts +6 -1
- package/build/types/model/users/SDKUserWorkspaceNotificationSettings.d.ts +4 -0
- package/build/types/model/workspaces/SDKWorkspaceProduct.d.ts +0 -4
- package/build/types/model/workspaces/SDKWorkspaceProductPrice.d.ts +18 -9
- package/build/types/model/workspaces/SDKWorkspaceSubscription.d.ts +18 -19
- package/build/types/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +3 -6
- package/build/types/utils/TokenUtils.d.ts +12 -4
- package/package.json +5 -23
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DTOFigmaNode, DTOFigmaNodeV2, DTOFileFinalizeBulkPayload, DTOFileUploadBulkPayload, DTOFileUploadPayload, DTOForgeFigmaNodeCreateRequest, DTOForgeProjectFileUploadPayload } from "@supernova-studio/client";
|
|
2
|
-
import { DocsImageRef
|
|
2
|
+
import { DocsImageRef } from "../../model/docs/blocks/support/SDKDocsImageRef";
|
|
3
|
+
import { ResourceAsset } from "../../model/resources/SDKResourceAsset";
|
|
4
|
+
import { ResourceFont } from "../../model/resources/SDKResourceFont";
|
|
3
5
|
import { DataCore } from "../data/SDKDataCore";
|
|
4
6
|
import { RemoteVersionIdentifier } from "./SDKRemoteIdentifiers";
|
|
5
7
|
export declare class AreaResources {
|
|
@@ -53,7 +55,7 @@ export declare class AreaResources {
|
|
|
53
55
|
pendingUpload: boolean;
|
|
54
56
|
referencePersistentId?: string;
|
|
55
57
|
}[]>;
|
|
56
|
-
getProjectFiles(workspaceId: string, projectId: string): Promise<import("
|
|
58
|
+
getProjectFiles(workspaceId: string, projectId: string): Promise<import("../..").RemoteFile[]>;
|
|
57
59
|
/** Uploads new asset resource */
|
|
58
60
|
uploadAssetResource(from: RemoteVersionIdentifier, asset: File): Promise<ResourceAsset>;
|
|
59
61
|
/** Uploads new font resource */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DTOThreadMessageCreateInput,
|
|
1
|
+
import { DTOThreadMessageCreateInput, DTOThreadMessageRetryInput, DTOThreadReactionCreateInput, DTOThreadReactionDeleteInput } from "@supernova-studio/client";
|
|
2
2
|
import { DataCore } from "../data/SDKDataCore";
|
|
3
3
|
export declare class AreaThreads {
|
|
4
4
|
/** Internal: Engine */
|
|
@@ -38,118 +38,4 @@ export declare class AreaThreads {
|
|
|
38
38
|
* @returns A new ThreadMessageReaction object.
|
|
39
39
|
*/
|
|
40
40
|
removeMessageReaction(threadId: string, input: DTOThreadReactionDeleteInput): Promise<void>;
|
|
41
|
-
/**
|
|
42
|
-
* Finalizes a message in a specific thread.
|
|
43
|
-
* @param threadId - The ID of the thread.
|
|
44
|
-
* @param input - The input for the thread.
|
|
45
|
-
* @returns Finalize input
|
|
46
|
-
*/
|
|
47
|
-
finalizeMessage(threadId: string, input: DTOThreadMessageFinalizeInput): Promise<{
|
|
48
|
-
message: {
|
|
49
|
-
id: string;
|
|
50
|
-
threadId: string;
|
|
51
|
-
body: string;
|
|
52
|
-
createdAt: string;
|
|
53
|
-
sender?: {
|
|
54
|
-
type: "User";
|
|
55
|
-
userId: string;
|
|
56
|
-
} | {
|
|
57
|
-
type: "Agent";
|
|
58
|
-
agentType: "Ask" | "Document" | "Prototype" | "ReleaseNotes";
|
|
59
|
-
} | {
|
|
60
|
-
type: "System";
|
|
61
|
-
onBehalfOfUserId: string;
|
|
62
|
-
};
|
|
63
|
-
isPrompt?: boolean;
|
|
64
|
-
isRetry?: boolean;
|
|
65
|
-
startsNewThread?: boolean;
|
|
66
|
-
parentMessageId?: string;
|
|
67
|
-
agentResponseTrackerId?: string;
|
|
68
|
-
attachments?: {
|
|
69
|
-
iterationId?: string;
|
|
70
|
-
files?: {
|
|
71
|
-
id: string;
|
|
72
|
-
url: string;
|
|
73
|
-
source?: {
|
|
74
|
-
type: "UserUpload";
|
|
75
|
-
userId: string;
|
|
76
|
-
} | {
|
|
77
|
-
type: "Figma";
|
|
78
|
-
renderMode: "Image" | "HTML" | "JSON";
|
|
79
|
-
};
|
|
80
|
-
name?: string;
|
|
81
|
-
}[];
|
|
82
|
-
templateId?: string;
|
|
83
|
-
figmaNodes?: {
|
|
84
|
-
id: string;
|
|
85
|
-
state: "Success" | "Failed" | "Optimizing";
|
|
86
|
-
origin: {
|
|
87
|
-
fileId: string;
|
|
88
|
-
fileName: string;
|
|
89
|
-
fileLastEditedAt: string;
|
|
90
|
-
nodeId: string;
|
|
91
|
-
nodeName: string;
|
|
92
|
-
};
|
|
93
|
-
thumbnail: {
|
|
94
|
-
id: string;
|
|
95
|
-
url: string;
|
|
96
|
-
source?: {
|
|
97
|
-
type: "UserUpload";
|
|
98
|
-
userId: string;
|
|
99
|
-
} | {
|
|
100
|
-
type: "Figma";
|
|
101
|
-
renderMode: "Image" | "HTML" | "JSON";
|
|
102
|
-
};
|
|
103
|
-
name?: string;
|
|
104
|
-
};
|
|
105
|
-
json: {
|
|
106
|
-
id: string;
|
|
107
|
-
url: string;
|
|
108
|
-
source?: {
|
|
109
|
-
type: "UserUpload";
|
|
110
|
-
userId: string;
|
|
111
|
-
} | {
|
|
112
|
-
type: "Figma";
|
|
113
|
-
renderMode: "Image" | "HTML" | "JSON";
|
|
114
|
-
};
|
|
115
|
-
name?: string;
|
|
116
|
-
};
|
|
117
|
-
html: {
|
|
118
|
-
id: string;
|
|
119
|
-
url: string;
|
|
120
|
-
source?: {
|
|
121
|
-
type: "UserUpload";
|
|
122
|
-
userId: string;
|
|
123
|
-
} | {
|
|
124
|
-
type: "Figma";
|
|
125
|
-
renderMode: "Image" | "HTML" | "JSON";
|
|
126
|
-
};
|
|
127
|
-
name?: string;
|
|
128
|
-
};
|
|
129
|
-
code?: {
|
|
130
|
-
id: string;
|
|
131
|
-
url: string;
|
|
132
|
-
source?: {
|
|
133
|
-
type: "UserUpload";
|
|
134
|
-
userId: string;
|
|
135
|
-
} | {
|
|
136
|
-
type: "Figma";
|
|
137
|
-
renderMode: "Image" | "HTML" | "JSON";
|
|
138
|
-
};
|
|
139
|
-
name?: string;
|
|
140
|
-
};
|
|
141
|
-
}[];
|
|
142
|
-
};
|
|
143
|
-
annotations?: {
|
|
144
|
-
prompt: string;
|
|
145
|
-
elements: {
|
|
146
|
-
xpath: string;
|
|
147
|
-
line: string;
|
|
148
|
-
}[];
|
|
149
|
-
}[];
|
|
150
|
-
replyToMessageId?: string;
|
|
151
|
-
promptMetadata?: Record<string, any>;
|
|
152
|
-
updatedAt?: string;
|
|
153
|
-
};
|
|
154
|
-
}>;
|
|
155
41
|
}
|
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BlurType } from "../../model/enums/SDKBlurType";
|
|
2
|
+
import { BorderPosition } from "../../model/enums/SDKBorderPosition";
|
|
3
|
+
import { BorderStyle } from "../../model/enums/SDKBorderStyle";
|
|
4
|
+
import { GradientType } from "../../model/enums/SDKGradientType";
|
|
5
|
+
import { ShadowType } from "../../model/enums/SDKShadowType";
|
|
6
|
+
import { TokenTheme } from "../../model/themes/SDKTokenTheme";
|
|
7
|
+
import { BlurToken } from "../../model/tokens/SDKBlurToken";
|
|
8
|
+
import { BorderToken } from "../../model/tokens/SDKBorderToken";
|
|
2
9
|
import { ColorToken } from "../../model/tokens/SDKColorToken";
|
|
3
|
-
import { BorderWidthToken, DimensionToken, DurationToken, FontSizeToken, LetterSpacingToken, LineHeightToken, ParagraphSpacingToken, SizeToken, SpaceToken, ZIndexToken } from "../../model/tokens/SDKDimensionToken";
|
|
10
|
+
import { OpacityToken, RadiusToken, BorderWidthToken, DimensionToken, DurationToken, FontSizeToken, LetterSpacingToken, LineHeightToken, ParagraphSpacingToken, SizeToken, SpaceToken, ZIndexToken } from "../../model/tokens/SDKDimensionToken";
|
|
11
|
+
import { GradientToken } from "../../model/tokens/SDKGradientToken";
|
|
12
|
+
import { ShadowToken } from "../../model/tokens/SDKShadowToken";
|
|
4
13
|
import { FontFamilyToken, FontWeightToken, ProductCopyToken, StringToken } from "../../model/tokens/SDKStringToken";
|
|
14
|
+
import { TextCaseToken } from "../../model/tokens/SDKTextCaseToken";
|
|
15
|
+
import { TextDecorationToken } from "../../model/tokens/SDKTextDecorationToken";
|
|
5
16
|
import { AnyMultiLayerToken, AnySingleLayerToken, AnyToken, BorderWidthTokenValue, ColorTokenValue, ColorValue, DimensionTokenValue, DurationTokenValue, FontFamilyTokenValue, FontSizeTokenValue, FontWeightTokenValue, LetterSpacingTokenValue, LineHeightTokenValue, OpacityTokenValue, ParagraphSpacingTokenValue, ProductCopyTokenValue, RadiusTokenValue, RawValue, SizeTokenValue, SpaceTokenValue, StringTokenValue, TextCaseTokenValue, TextDecorationTokenValue, VisibilityTokenValue, ZIndexTokenValue } from "../../model/tokens/SDKTokenValue";
|
|
17
|
+
import { TypographyToken } from "../../model/tokens/SDKTypographyToken";
|
|
18
|
+
import { VisibilityToken } from "../../model/tokens/SDKVisibilityToken";
|
|
6
19
|
export declare class AreaTokenValues {
|
|
7
20
|
/** Creates a new theme with updated overrides */
|
|
8
21
|
tokenThemeByUpdatingOverride(theme: TokenTheme, override: AnyToken): TokenTheme;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { AnyToken } from "../../exports";
|
|
2
1
|
import { DesignSystemCollection } from "../../model/base/SDKDesignSystemCollection";
|
|
3
2
|
import { ElementDataView } from "../../model/elements/SDKElementDataView";
|
|
4
3
|
import { ElementDataViewColumn } from "../../model/elements/SDKElementDataViewColumn";
|
|
5
4
|
import { ElementProperty, ElementPropertyCreationModel, ElementPropertyUpdateModel } from "../../model/elements/SDKElementProperty";
|
|
6
5
|
import { ElementPropertyValue } from "../../model/elements/values/SDKElementPropertyValue";
|
|
7
|
-
import { ActivityEventOptions } from "../data/requests/SDKDataCoreWriteRequests";
|
|
8
6
|
import { TokenType } from "../../model/enums/SDKTokenType";
|
|
9
7
|
import { TokenGroup } from "../../model/groups/SDKTokenGroup";
|
|
10
8
|
import { TokenTheme } from "../../model/themes/SDKTokenTheme";
|
|
11
9
|
import { Token } from "../../model/tokens/SDKToken";
|
|
10
|
+
import { AnyToken } from "../../model/tokens/SDKTokenValue";
|
|
12
11
|
import { TokenTypeMapToken } from "../../utils/TokenUtils";
|
|
13
12
|
import { DataCore } from "../data/SDKDataCore";
|
|
14
13
|
import { AreaTokenValues } from "./SDKAreaTokenValues";
|
|
@@ -222,9 +221,9 @@ export declare class AreaTokens {
|
|
|
222
221
|
*/
|
|
223
222
|
deleteTokenTheme(to: RemoteVersionIdentifier, idInVersion: string): Promise<void>;
|
|
224
223
|
/** Warning: INTERNAL, DO NOT USE YET, NOT STABLE INTERFACE. Write tokens in bulk */
|
|
225
|
-
writeTokens(to: RemoteVersionIdentifier, tokens: Array<Token>, groups: Array<TokenGroup>, deleteTokens: Array<Token>, deleteTokenGroups: Array<TokenGroup
|
|
224
|
+
writeTokens(to: RemoteVersionIdentifier, tokens: Array<Token>, groups: Array<TokenGroup>, deleteTokens: Array<Token>, deleteTokenGroups: Array<TokenGroup>): Promise<void>;
|
|
226
225
|
/** Warning: INTERNAL, DO NOT USE YET, NOT STABLE INTERFACE. Write theme in bulk */
|
|
227
|
-
writeTheme(to: RemoteVersionIdentifier, theme: TokenTheme
|
|
226
|
+
writeTheme(to: RemoteVersionIdentifier, theme: TokenTheme): Promise<void>;
|
|
228
227
|
/** Resolves tokens by applying themes to them and retrieves new token set where values correctly correspond to that theme */
|
|
229
228
|
computeTokensByApplyingThemes(allTokens: Array<Token>, tokens: Array<Token>, themes: Array<TokenTheme>): Array<AnyToken>;
|
|
230
229
|
computeInnerReferencesByApplyingThemesEfficient(tokensIndex: Map<string, Token>, themeOverridesIndex: Record<string, Map<string, Token>>, tokens: Array<Token>, themes: Array<TokenTheme>): Array<AnyToken>;
|
|
@@ -30,10 +30,10 @@ export declare class AreaVersions {
|
|
|
30
30
|
getVersions(designSystemId: string): Promise<Array<DesignSystemVersion>>;
|
|
31
31
|
/** Fetches design system version by id */
|
|
32
32
|
getVersion(from: RemoteVersionIdentifier): Promise<DesignSystemVersion>;
|
|
33
|
-
/** Fetches version creation
|
|
33
|
+
/** Fetches version creation jobs submitted within the last 24 hours, optionally filtered by status. */
|
|
34
|
+
getVersionCreationJobs(designSystemId: string, status?: "InProgress" | "Success" | "Error"): Promise<DesignSystemVersionCreationJob[]>;
|
|
35
|
+
/** Fetches one version creation job submitted within the last 24 hours. */
|
|
34
36
|
getVersionCreationJob(designSystemId: string, jobId: string): Promise<DesignSystemVersionCreationJob>;
|
|
35
|
-
/** Fetches all version creation jobs */
|
|
36
|
-
getVersionCreationJobs(designSystemId: string): Promise<DesignSystemVersionCreationJob[]>;
|
|
37
37
|
getTokenStudioData(from: RemoteVersionIdentifier): Promise<object>;
|
|
38
38
|
writeTokenStudioData(from: RemoteVersionIdentifier, data: object): Promise<object>;
|
|
39
39
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DTOLoginScreenSettingsUpdate, DTOPortalSettingsUpdatePayload, DTOWorkspaceUntypedDataListResponse, DTOWorkspaceUntypedDataResponse } from "@supernova-studio/client";
|
|
2
2
|
import { WorkspaceSeatType } from "@supernova-studio/model";
|
|
3
|
-
import { JSONObject } from "../../utils/SDKJSONValue";
|
|
4
3
|
import { UserRole } from "../../model/enums/SDKUserRole";
|
|
5
4
|
import { WorkspaceSubscriptionPlanInterval } from "../../model/enums/SDKWorkspaceSubscriptionPlanInterval";
|
|
6
5
|
import { SubscriptionCheckoutProductCode } from "../../model/enums/SDKWorkspaceSubscriptionProduct";
|
|
@@ -20,6 +19,7 @@ import { WorkspaceProfileUpdateModel } from "../../model/workspaces/SDKWorkspace
|
|
|
20
19
|
import { WorkspaceSSOSettings, WorkspaceSSOSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceSSOSettings";
|
|
21
20
|
import { WorkspaceScimToken, WorkspaceScimTokenCreateResult } from "../../model/workspaces/SDKWorkspaceScimToken";
|
|
22
21
|
import { WorkspaceSubscription, WorkspaceSubscriptionUpdateModel, WorkspaceSubscriptionUpdatePreviewModel } from "../../model/workspaces/SDKWorkspaceSubscription";
|
|
22
|
+
import { JSONObject } from "../../utils/SDKJSONValue";
|
|
23
23
|
import { DataCore } from "../data/SDKDataCore";
|
|
24
24
|
export declare class AreaWorkspaces {
|
|
25
25
|
/** Internal: Engine */
|
|
@@ -237,12 +237,11 @@ export declare class AreaWorkspaces {
|
|
|
237
237
|
* @param cancelUrl - URL to redirect to after failed payment
|
|
238
238
|
* @param plan - Plan to be selected in the checkout
|
|
239
239
|
* @param interval - Interval (monthly / yearly) of the plan
|
|
240
|
-
* @param fullSeats -
|
|
241
|
-
* @param builderSeats - Number of builder seats the subscription will have
|
|
240
|
+
* @param fullSeats - Positive integer for per-seat prices; undefined or 1 for fixed prices
|
|
242
241
|
* @param additionalCredits - Additional credits per month
|
|
243
242
|
* @returns string - URL to the Stripe checkout
|
|
244
243
|
*/
|
|
245
|
-
createCheckoutSessionForSubscriptionChange(workspaceId: string, successUrl: string, cancelUrl: string, plan: SubscriptionCheckoutProductCode, interval: WorkspaceSubscriptionPlanInterval, fullSeats: number
|
|
244
|
+
createCheckoutSessionForSubscriptionChange(workspaceId: string, successUrl: string, cancelUrl: string, plan: SubscriptionCheckoutProductCode, interval: WorkspaceSubscriptionPlanInterval, fullSeats: number | undefined, additionalCredits: number): Promise<string>;
|
|
246
245
|
/** Creates a new Stripe checkout session.
|
|
247
246
|
* @param workspaceId - ID of the workspace
|
|
248
247
|
* @param successUrl - URL to redirect to after successful payment
|
|
@@ -90,7 +90,6 @@ export declare class DataBridge {
|
|
|
90
90
|
getWorkspaceIntegrationGitProvidersEndpoint(wsId: string, integrationId: string, operation: GitProviderValues): string;
|
|
91
91
|
getDesignSystemEndpoint(dsId: string, fragment: string | null): string;
|
|
92
92
|
getVersionEndpoint(dsId: string, dsVersionId: string, fragment: string | null): string;
|
|
93
|
-
getVersionCreationJobEndpoint(dsId: string, jobId: string): string;
|
|
94
93
|
getVersionCreationJobsEndpoint(dsId: string): string;
|
|
95
94
|
}
|
|
96
95
|
export {};
|