@supernova-studio/supernova-sdk-beta 2.2.12 → 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/build/sdk-typescript/src/core/SDKSupernova.d.ts +7 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaMCP.d.ts +24 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaProjects.d.ts +28 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaRawData.d.ts +30 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +40 -5
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +8 -4
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +72 -5
- package/build/sdk-typescript/src/core/data/SDKDataCoreCached.d.ts +50 -0
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +40 -1
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +49 -13
- package/build/sdk-typescript/src/exports.d.ts +3 -2
- package/build/sdk-typescript/src/model/mcp/SDKMCPStream.d.ts +8 -0
- package/build/sdk-typescript/src/model/membership/SDKMembership.d.ts +2 -0
- package/build/sdk-typescript/src/model/messaging/SDKChatThreadMessage.d.ts +0 -3
- package/build/sdk-typescript/src/model/projects/SDKForgeProject.d.ts +4 -3
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectContext.d.ts +6 -1
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectContextOverride.d.ts +20 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectMembership.d.ts +1 -0
- package/build/sdk-typescript/src/model/users/SDKUserMembership.d.ts +1 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +11 -1
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +0 -2
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +2 -8
- package/build/sdk-typescript/src/utils/RawUtils.d.ts +7 -1
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +3 -3
|
@@ -9,6 +9,7 @@ import { AreaDesignSystems } from "./areas/SDKAreaDesignSystems";
|
|
|
9
9
|
import { AreaDocsAnalytics } from "./areas/SDKAreaDocsAnalytics";
|
|
10
10
|
import { AreaDocumentation } from "./areas/SDKAreaDocumentation";
|
|
11
11
|
import { AreaIntegrations } from "./areas/SDKAreaIntegrations";
|
|
12
|
+
import { AreaMCP } from "./areas/SDKAreaMCP";
|
|
12
13
|
import { AreaMe } from "./areas/SDKAreaMe";
|
|
13
14
|
import { AreaMessaging } from "./areas/SDKAreaMessaging";
|
|
14
15
|
import { AreaMultiplayer } from "./areas/SDKAreaMultiplayer";
|
|
@@ -24,7 +25,7 @@ import { AreaUsers } from "./areas/SDKAreaUsers";
|
|
|
24
25
|
import { AreaVersions } from "./areas/SDKAreaVersions";
|
|
25
26
|
import { AreaWorkspaceIntegrations } from "./areas/SDKAreaWorkspaceIntegrations";
|
|
26
27
|
import { AreaWorkspaces } from "./areas/SDKAreaWorkspaces";
|
|
27
|
-
import { DataBridgeRequestHook } from "./data/SDKDataBridge";
|
|
28
|
+
import { DataBridgeRequestHook, DebugRequestObserver, DebugResponseObserver } from "./data/SDKDataBridge";
|
|
28
29
|
/** Main Supernova.io SDK object. Use this to connect to your data instance and retrieve workspace / design system / version from which you can access all neccessary data. */
|
|
29
30
|
export declare class Supernova {
|
|
30
31
|
private apiKey;
|
|
@@ -67,6 +68,8 @@ export declare class Supernova {
|
|
|
67
68
|
me: AreaMe;
|
|
68
69
|
/** Get, create, update, manipulate or delete integrations */
|
|
69
70
|
integrations: AreaIntegrations;
|
|
71
|
+
/** Get access to Supernova MCP stream capabilities */
|
|
72
|
+
mcp: AreaMCP;
|
|
70
73
|
/** Get, create, update, manipulate or delete workspace integrations */
|
|
71
74
|
workspaceIntegrations: AreaWorkspaceIntegrations;
|
|
72
75
|
/** Get, create, update, manipulate or delete data sources */
|
|
@@ -98,10 +101,13 @@ export declare class Supernova {
|
|
|
98
101
|
apiUrl?: string;
|
|
99
102
|
aiApiUrl?: string;
|
|
100
103
|
requestHook?: DataBridgeRequestHook;
|
|
104
|
+
debugRequestObserver?: DebugRequestObserver | null;
|
|
105
|
+
debugResponseObserver?: DebugResponseObserver | null;
|
|
101
106
|
customFetchLib?: any;
|
|
102
107
|
customProxyLib?: any;
|
|
103
108
|
isPreview?: boolean;
|
|
104
109
|
jobId?: string;
|
|
110
|
+
useDataCoreCached?: boolean;
|
|
105
111
|
});
|
|
106
112
|
get apiKeySet(): boolean;
|
|
107
113
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DTOMCPStreamUpdateInput } from "@supernova-studio/client";
|
|
2
|
+
import { MCPStream } from "../../model/mcp/SDKMCPStream";
|
|
3
|
+
import { DataCore } from "../data/SDKDataCore";
|
|
4
|
+
export declare class AreaMCP {
|
|
5
|
+
private dataCore;
|
|
6
|
+
constructor(dataCore: DataCore);
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves an MCP stream by ID. Users can only access MCP streams associated with themselves.
|
|
9
|
+
* @param streamId - The ID of the MCP stream to retrieve.
|
|
10
|
+
* @returns The MCPStream object.
|
|
11
|
+
*/
|
|
12
|
+
getMCPStream(streamId: string): Promise<MCPStream>;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves the user's MCP stream. If no MCP stream exists for the user, an empty MCP stream is created automatically.
|
|
15
|
+
* @returns The user's MCPStream object.
|
|
16
|
+
*/
|
|
17
|
+
getUserMCPStream(): Promise<MCPStream>;
|
|
18
|
+
/**
|
|
19
|
+
* Updates the user's MCP stream with the provided data.
|
|
20
|
+
* @param data - The update input containing optional projectFeatureId and projectDocumentId.
|
|
21
|
+
* @returns The updated MCPStream object.
|
|
22
|
+
*/
|
|
23
|
+
updateUserMCPStream(data: DTOMCPStreamUpdateInput): Promise<MCPStream>;
|
|
24
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DTOForgeProjectCreate, DTOForgeProjectUpdate, DTOUpdateForgeProjectMember, DTORemoveForgeProjectMember, DTOForgeProjectFeatureCreateInput, DTOForgeProjectFeatureUpdateInput, DTOForgeProjectFeatureDeleteInput, DTOForgeProjectFeatureMoveInput, DTOForgeProjectArtifactCreateInput, DTOForgeProjectArtifactUpdateInput, DTOForgeProjectArtifactDeleteInput, DTOForgeProjectArtifactMoveInput, DTOForgeSectionCreateInput, DTOForgeSectionUpdateInput, DTOForgeSectionDeleteInput, DTOForgeSectionMoveInput, DTOForgeProjectAction, DTOFeatureMessageCreateInput, DTOFeatureMessageReactionCreateInput, DTOFeatureMessageReactionDeleteInput, DTOFeatureArtifactCreateInput, DTOFeatureArtifactDeleteInput, DTOAddMembersToForgeProject, DTOFeatureIterationCreateInput, DTOFeatureIterationUpdateArtifactsInput, DTOFeatureAgentWorkFinalizeInput, DTOFeatureIterationUpdateInput, DTOFeatureIterationPromoteInput, DTOFeatureIterationSetLatestInput, DTOFeatureIterationUpdateArtifactsByMessageInput, DTOFeatureUpdateThemeInput } from "@supernova-studio/client";
|
|
2
2
|
import { ForgeProject } from "../../model/projects/SDKForgeProject";
|
|
3
|
-
import { ForgeProjectContextCreateInput, ForgeProjectContextUpdateInput, ForgeProjectContext } from "../../model/projects/SDKForgeProjectContext";
|
|
3
|
+
import { ForgeProjectContextCreateInput, ForgeProjectContextUpdateInput, ForgeProjectContext, type ForgeProjectTheme } from "../../model/projects/SDKForgeProjectContext";
|
|
4
4
|
import { ForgeProjectDocument } from "../../model/projects/SDKForgeProjectDocument";
|
|
5
5
|
import { ForgeProjectFeature } from "../../model/projects/SDKForgeProjectFeature";
|
|
6
6
|
import { ForgeProjectMembership } from "../../model/projects/SDKForgeProjectMembership";
|
|
@@ -1106,6 +1106,18 @@ export declare class AreaProjects {
|
|
|
1106
1106
|
description?: string | undefined;
|
|
1107
1107
|
designSystemId?: string | undefined;
|
|
1108
1108
|
brandId?: string | undefined;
|
|
1109
|
+
thumbnail?: {
|
|
1110
|
+
id: string;
|
|
1111
|
+
url: string;
|
|
1112
|
+
name?: string | undefined;
|
|
1113
|
+
source?: {
|
|
1114
|
+
type: "UserUpload";
|
|
1115
|
+
userId: string;
|
|
1116
|
+
} | {
|
|
1117
|
+
type: "Figma";
|
|
1118
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
1119
|
+
} | undefined;
|
|
1120
|
+
} | undefined;
|
|
1109
1121
|
defaultTokenThemeSetId?: string | undefined;
|
|
1110
1122
|
productContext?: string | undefined;
|
|
1111
1123
|
additionalContext?: string | undefined;
|
|
@@ -2082,6 +2094,18 @@ export declare class AreaProjects {
|
|
|
2082
2094
|
description?: string | undefined;
|
|
2083
2095
|
designSystemId?: string | undefined;
|
|
2084
2096
|
brandId?: string | undefined;
|
|
2097
|
+
thumbnail?: {
|
|
2098
|
+
id: string;
|
|
2099
|
+
url: string;
|
|
2100
|
+
name?: string | undefined;
|
|
2101
|
+
source?: {
|
|
2102
|
+
type: "UserUpload";
|
|
2103
|
+
userId: string;
|
|
2104
|
+
} | {
|
|
2105
|
+
type: "Figma";
|
|
2106
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
2107
|
+
} | undefined;
|
|
2108
|
+
} | undefined;
|
|
2085
2109
|
defaultTokenThemeSetId?: string | undefined;
|
|
2086
2110
|
productContext?: string | undefined;
|
|
2087
2111
|
additionalContext?: string | undefined;
|
|
@@ -2093,6 +2117,9 @@ export declare class AreaProjects {
|
|
|
2093
2117
|
}[] | undefined;
|
|
2094
2118
|
}>;
|
|
2095
2119
|
deleteProjectContext(id: string): Promise<void>;
|
|
2120
|
+
updateProjectContextOverride(projectId: string, data: {
|
|
2121
|
+
theme: Partial<ForgeProjectTheme> | null;
|
|
2122
|
+
}): Promise<void>;
|
|
2096
2123
|
getProjectTrailEvents(projectId: string): Promise<import("../..").TrailEvent[]>;
|
|
2097
2124
|
constructor(dataCore: DataCore);
|
|
2098
2125
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DTODesignSystemContactsResponse, DTOFeatureArtifactListResponse, DTOFeatureIteration, DTOForgeAgent, DTOForgeChatExportResponse, DTOForgeProjectFeature, DTOForgeProjectMember, DTOThreadMessageListResponse, DTOTrailEventListResponse } from "@supernova-studio/client";
|
|
1
|
+
import type { DTODesignSystemContactsResponse, DTOFeatureArtifactListResponse, DTOFeatureIteration, DTOForgeAgent, DTOForgeChatExportResponse, DTOForgeProjectFeature, DTOForgeProjectMember, DTOThreadMessageListResponse, DTOTrailEventListResponse, DTOMCPStreamResponse } from "@supernova-studio/client";
|
|
2
2
|
import { DTODesignSystem, DTOForgeChatMessageListResponse, DTOForgeChatThreadListResponse, DTOPortalSettings } from "@supernova-studio/client";
|
|
3
3
|
import { ForgeProjectRemoteModel } from "../../exports";
|
|
4
4
|
import { BrandRemoteModel } from "../../model/base/SDKBrand";
|
|
@@ -22,6 +22,7 @@ import { SourceRemoteModel } from "../../model/support/SDKSource";
|
|
|
22
22
|
import { TokenRemoteModel } from "../../model/tokens/remote/SDKRemoteTokenModel";
|
|
23
23
|
import { UserRemoteModel } from "../../model/users/SDKUser";
|
|
24
24
|
import { UserMembershipRemoteModel } from "../../model/users/SDKUserMembership";
|
|
25
|
+
import { WorkspaceRemoteModel } from "../../model/workspaces/SDKWorkspace";
|
|
25
26
|
import { WorkspaceIntegrationsRemoteModel } from "../../model/workspaces/SDKWorkspaceIntegration";
|
|
26
27
|
import { SubscriptionProductFeaturesRemoteModel } from "../../model/workspaces/SDKWorkspaceProductFeatures";
|
|
27
28
|
import { WorkspaceSubscriptionRemoteModel } from "../../model/workspaces/SDKWorkspaceSubscription";
|
|
@@ -1060,6 +1061,18 @@ export declare class AreaRawData {
|
|
|
1060
1061
|
description?: string | undefined;
|
|
1061
1062
|
designSystemId?: string | undefined;
|
|
1062
1063
|
brandId?: string | undefined;
|
|
1064
|
+
thumbnail?: {
|
|
1065
|
+
id: string;
|
|
1066
|
+
url: string;
|
|
1067
|
+
name?: string | undefined;
|
|
1068
|
+
source?: {
|
|
1069
|
+
type: "UserUpload";
|
|
1070
|
+
userId: string;
|
|
1071
|
+
} | {
|
|
1072
|
+
type: "Figma";
|
|
1073
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
1074
|
+
} | undefined;
|
|
1075
|
+
} | undefined;
|
|
1063
1076
|
defaultTokenThemeSetId?: string | undefined;
|
|
1064
1077
|
productContext?: string | undefined;
|
|
1065
1078
|
additionalContext?: string | undefined;
|
|
@@ -2040,6 +2053,18 @@ export declare class AreaRawData {
|
|
|
2040
2053
|
description?: string | undefined;
|
|
2041
2054
|
designSystemId?: string | undefined;
|
|
2042
2055
|
brandId?: string | undefined;
|
|
2056
|
+
thumbnail?: {
|
|
2057
|
+
id: string;
|
|
2058
|
+
url: string;
|
|
2059
|
+
name?: string | undefined;
|
|
2060
|
+
source?: {
|
|
2061
|
+
type: "UserUpload";
|
|
2062
|
+
userId: string;
|
|
2063
|
+
} | {
|
|
2064
|
+
type: "Figma";
|
|
2065
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
2066
|
+
} | undefined;
|
|
2067
|
+
} | undefined;
|
|
2043
2068
|
defaultTokenThemeSetId?: string | undefined;
|
|
2044
2069
|
productContext?: string | undefined;
|
|
2045
2070
|
additionalContext?: string | undefined;
|
|
@@ -2050,6 +2075,7 @@ export declare class AreaRawData {
|
|
|
2050
2075
|
tokenThemeIds: string[];
|
|
2051
2076
|
}[] | undefined;
|
|
2052
2077
|
}[]>;
|
|
2078
|
+
getRawForgeProjectContextOverride(projectId: string): Promise<import("../../model/projects/SDKForgeProjectContextOverride").ForgeProjectContextOverrideRemoteModel>;
|
|
2053
2079
|
getRawForgeAgents(workspaceId: string, projectId: string): Promise<Array<DTOForgeAgent>>;
|
|
2054
2080
|
getRawChatThreads(workspaceId: string, limit?: number, offset?: number): Promise<DTOForgeChatThreadListResponse>;
|
|
2055
2081
|
getRawChatThreadMessages(workspaceId: string, threadId: string): Promise<DTOForgeChatMessageListResponse>;
|
|
@@ -2064,4 +2090,7 @@ export declare class AreaRawData {
|
|
|
2064
2090
|
getRawForgeProjectFeatureIterations(workspaceId: string, projectId: string, featureId: string): Promise<Array<DTOFeatureIteration>>;
|
|
2065
2091
|
getRawForgeProjectFeatureArtifacts(workspaceId: string, projectId: string, featureId: string): Promise<DTOFeatureArtifactListResponse>;
|
|
2066
2092
|
getRawForgeProjectTrailEvents(projectId: string): Promise<DTOTrailEventListResponse>;
|
|
2093
|
+
getRawWorkspaceDetail(workspaceId: string): Promise<WorkspaceRemoteModel>;
|
|
2094
|
+
getRawMCPStream(streamId: string): Promise<DTOMCPStreamResponse>;
|
|
2095
|
+
getRawUserMCPStream(): Promise<DTOMCPStreamResponse>;
|
|
2067
2096
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DTOPortalSettingsUpdatePayload } from "@supernova-studio/client";
|
|
1
|
+
import { DTOPortalSettingsUpdatePayload, DTOWorkspaceUntypedDataListResponse, DTOWorkspaceUntypedDataResponse } from "@supernova-studio/client";
|
|
2
2
|
import { WorkspaceSeatType } from "@supernova-studio/model";
|
|
3
3
|
import { UserRole } from "../../model/enums/SDKUserRole";
|
|
4
4
|
import { WorkspaceSubscriptionPlanInterval } from "../../model/enums/SDKWorkspaceSubscriptionPlanInterval";
|
|
@@ -6,7 +6,7 @@ import { SubscriptionCheckoutProductCode } from "../../model/enums/SDKWorkspaceS
|
|
|
6
6
|
import { Membership } from "../../model/membership/SDKMembership";
|
|
7
7
|
import { UserMembership } from "../../model/users/SDKUserMembership";
|
|
8
8
|
import { UserWorkspaceNotificationSettings, UserWorkspaceNotificationSettingsUpdateModel } from "../../model/users/SDKUserWorkspaceNotificationSettings";
|
|
9
|
-
import { Workspace } from "../../model/workspaces/SDKWorkspace";
|
|
9
|
+
import { DefaultProjectAccessMode, DefaultProjectRole, Workspace } from "../../model/workspaces/SDKWorkspace";
|
|
10
10
|
import { WorkspaceIPWhitelistSettings, WorkspaceIPWhitelistSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceIPWhitelistSettings";
|
|
11
11
|
import { WorkspaceInvitation, WorkspaceInvitationUpdateModel } from "../../model/workspaces/SDKWorkspaceInvitation";
|
|
12
12
|
import { WorkspaceInvoice } from "../../model/workspaces/SDKWorkspaceInvoice";
|
|
@@ -17,7 +17,7 @@ import { WorkspaceProduct } from "../../model/workspaces/SDKWorkspaceProduct";
|
|
|
17
17
|
import { SubscriptionProductFeatures } from "../../model/workspaces/SDKWorkspaceProductFeatures";
|
|
18
18
|
import { WorkspaceProfileUpdateModel } from "../../model/workspaces/SDKWorkspaceProfile";
|
|
19
19
|
import { WorkspaceSSOSettings, WorkspaceSSOSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceSSOSettings";
|
|
20
|
-
import { WorkspaceSubscription, WorkspaceSubscriptionUpdateModel,
|
|
20
|
+
import { WorkspaceSubscription, WorkspaceSubscriptionUpdateModel, WorkspaceSubscriptionUpdatePreviewModel } from "../../model/workspaces/SDKWorkspaceSubscription";
|
|
21
21
|
import { DataCore } from "../data/SDKDataCore";
|
|
22
22
|
export declare class AreaWorkspaces {
|
|
23
23
|
/** Internal: Engine */
|
|
@@ -133,6 +133,8 @@ export declare class AreaWorkspaces {
|
|
|
133
133
|
projectsEnabled?: boolean;
|
|
134
134
|
aiAskFeaturesEnabled?: boolean;
|
|
135
135
|
aiCustomInstruction?: string;
|
|
136
|
+
defaultProjectRole?: DefaultProjectRole;
|
|
137
|
+
defaultProjectAccessMode?: DefaultProjectAccessMode;
|
|
136
138
|
}): Promise<void>;
|
|
137
139
|
/** tests accessibility of IP allowlist settings
|
|
138
140
|
* @param workspaceId - ID of the workspace
|
|
@@ -230,11 +232,10 @@ export declare class AreaWorkspaces {
|
|
|
230
232
|
/** Creates a new Stripe customer portal session.
|
|
231
233
|
* @param workspaceId - ID of the workspace
|
|
232
234
|
* @param returnUrl - URL to redirect to from the portal
|
|
233
|
-
* @param update - describes the subscription updates to be applied
|
|
234
235
|
* @param cancel - describes if the subscription must be cancelled
|
|
235
236
|
* @returns string - URL to the Stripe customer portal
|
|
236
237
|
*/
|
|
237
|
-
createPortalSession(workspaceId: string, returnUrl: string,
|
|
238
|
+
createPortalSession(workspaceId: string, returnUrl: string, cancel?: boolean | null): Promise<string>;
|
|
238
239
|
/** Update an existing subscription.
|
|
239
240
|
* @param workspaceId - ID of the workspace
|
|
240
241
|
* @param update - describes the subscription updates to be applied
|
|
@@ -289,4 +290,38 @@ export declare class AreaWorkspaces {
|
|
|
289
290
|
* @returns Nothing
|
|
290
291
|
*/
|
|
291
292
|
deleteWorkspaceInvitation(workspaceId: string, invitationId: string): Promise<void>;
|
|
293
|
+
/**
|
|
294
|
+
* Lists all untyped data for a given workspace.
|
|
295
|
+
* @param workspaceId - The ID of the workspace.
|
|
296
|
+
* @returns A promise that resolves to the list of untyped data.
|
|
297
|
+
*/
|
|
298
|
+
listUntypedData(workspaceId: string): Promise<DTOWorkspaceUntypedDataListResponse>;
|
|
299
|
+
/**
|
|
300
|
+
* Creates new untyped data in the specified workspace.
|
|
301
|
+
* @param workspaceId - The ID of the workspace.
|
|
302
|
+
* @param data - The data to create. Must be a valid JSON object.
|
|
303
|
+
* @returns A promise that resolves to the created untyped data.
|
|
304
|
+
*/
|
|
305
|
+
createUntypedData(workspaceId: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
306
|
+
/**
|
|
307
|
+
* Deletes all untyped data in the specified workspace.
|
|
308
|
+
* @param workspaceId - The ID of the workspace.
|
|
309
|
+
* @returns A promise that resolves when the operation is complete.
|
|
310
|
+
*/
|
|
311
|
+
deleteAllUntypedData(workspaceId: string): Promise<void>;
|
|
312
|
+
/**
|
|
313
|
+
* Updates specific untyped data in the specified workspace.
|
|
314
|
+
* @param workspaceId - The ID of the workspace.
|
|
315
|
+
* @param id - The ID of the untyped data to update.
|
|
316
|
+
* @param data - The updated data. Must be a valid JSON object.
|
|
317
|
+
* @returns A promise that resolves to the updated untyped data.
|
|
318
|
+
*/
|
|
319
|
+
updateUntypedData(workspaceId: string, id: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
320
|
+
/**
|
|
321
|
+
* Deletes specific untyped data in the specified workspace.
|
|
322
|
+
* @param workspaceId - The ID of the workspace.
|
|
323
|
+
* @param id - The ID of the untyped data to delete.
|
|
324
|
+
* @returns A promise that resolves when the operation is complete.
|
|
325
|
+
*/
|
|
326
|
+
deleteUntypedData(workspaceId: string, id: string): Promise<void>;
|
|
292
327
|
}
|
|
@@ -2,16 +2,19 @@ import { GitProviderValues } from "../../model/workspaces/SDKWorkspaceIntegratio
|
|
|
2
2
|
type DataBridgeRequestHookResult = {
|
|
3
3
|
skipDefaultAuth?: boolean;
|
|
4
4
|
};
|
|
5
|
+
export type FetchFunction = typeof fetch;
|
|
5
6
|
export type DataBridgeRequestHook = (request: any) => void | DataBridgeRequestHookResult | Promise<void | DataBridgeRequestHookResult>;
|
|
6
7
|
export type DebugResponseObserver = (info: {
|
|
7
8
|
requestUrl: string;
|
|
8
|
-
response
|
|
9
|
+
response?: any;
|
|
9
10
|
executionTime: number;
|
|
10
|
-
error?:
|
|
11
|
+
error?: any;
|
|
11
12
|
}) => void;
|
|
12
13
|
export type DebugRequestObserver = (info: {
|
|
13
14
|
requestUrl: string;
|
|
14
15
|
requestMethod: string;
|
|
16
|
+
asData?: boolean;
|
|
17
|
+
isStreamed?: boolean;
|
|
15
18
|
}) => void;
|
|
16
19
|
export type DataBridgeConfiguration = {
|
|
17
20
|
apiUrl: string;
|
|
@@ -42,10 +45,10 @@ export declare class DataBridge {
|
|
|
42
45
|
debugResponseObserver: DebugResponseObserver | null;
|
|
43
46
|
constructor(conf: DataBridgeConfiguration);
|
|
44
47
|
delete(endpoint: string, payload?: any | null): Promise<any>;
|
|
45
|
-
get(endpoint: string): Promise<
|
|
48
|
+
get<T = any>(endpoint: string): Promise<T>;
|
|
46
49
|
getStreamed(endpoint: string): Promise<ReadableStreamDefaultReader<Uint8Array>>;
|
|
47
50
|
getAsData(endpoint: string): Promise<any>;
|
|
48
|
-
put(endpoint: string, payload: any | null): Promise<
|
|
51
|
+
put<T = any>(endpoint: string, payload: any | null): Promise<T>;
|
|
49
52
|
post(endpoint: string, payload: any | null): Promise<any>;
|
|
50
53
|
postStreamed(endpoint: string, payload: any | null): Promise<ReadableStreamDefaultReader<Uint8Array>>;
|
|
51
54
|
upload(endpoint: string, formData: FormData, method?: "PUT" | "POST"): Promise<any>;
|
|
@@ -61,6 +64,7 @@ export declare class DataBridge {
|
|
|
61
64
|
getBaseEndpoint(fragment: string | null): string;
|
|
62
65
|
getPublicEndpoint(fragment: string): string;
|
|
63
66
|
getAclEndpoint(resource?: string): string;
|
|
67
|
+
getMCPStreamEndpoint(fragment?: string): string;
|
|
64
68
|
getUserEndpoint(userId: string, fragment: string | null): string;
|
|
65
69
|
getUserWorkspaceEndpoint(userId: string, wsId: string, fragment: string | null): string;
|
|
66
70
|
getWorkspaceEndpoint(wsId: string, fragment: string | null): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODataSourceStorybookCreatePayload, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTODocumentationPageAnchor, DTODocumentationPageApprovalStateChangeInput, DTODocumentationPageDependenciesGetResponse, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap,
|
|
1
|
+
import { DTOAddMembersToForgeProject, DTOBillingCheckoutInput, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODataSourceStorybookCreatePayload, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTODocumentationPageAnchor, DTODocumentationPageApprovalStateChangeInput, DTODocumentationPageDependenciesGetResponse, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFeatureAgentWorkFinalizeInput, DTOFeatureArtifactCreateInput, DTOFeatureArtifactDeleteInput, DTOFeatureIterationCreateInput, DTOFeatureIterationPromoteInput, DTOFeatureIterationSetLatestInput, DTOFeatureIterationUpdateArtifactsByMessageInput, DTOFeatureIterationUpdateArtifactsInput, DTOFeatureIterationUpdateInput, DTOFeatureMessageCreateInput, DTOFeatureMessageReactionCreateInput, DTOFeatureMessageReactionDeleteInput, DTOFeatureUpdateThemeInput, DTOFigmaNode, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOFileFinalizeBulkPayload, DTOFileUploadBulkPayload, DTOFileUploadPayload, DTOForgeChatMessageScoreInput, DTOForgeChatMessageTagInput, DTOForgeProjectAction, DTOForgeProjectArtifactCreateInput, DTOForgeProjectArtifactDeleteInput, DTOForgeProjectArtifactMoveInput, DTOForgeProjectArtifactUpdateInput, DTOForgeProjectCreate, DTOForgeProjectFeatureCreateInput, DTOForgeProjectFeatureDeleteInput, DTOForgeProjectFeatureMoveInput, DTOForgeProjectFeatureUpdateInput, DTOForgeProjectFileUploadPayload, DTOForgeProjectUpdate, DTOForgeSectionCreateInput, DTOForgeSectionDeleteInput, DTOForgeSectionMoveInput, DTOForgeSectionUpdateInput, DTOMCPStreamUpdateInput, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOPortalSettingsUpdatePayload, DTOPublishDocumentationRequest, DTORemoveForgeProjectMember, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOStorybookEntryReplaceAction, DTOStorybookImportPayload, DTOThreadMessageCreateInput, DTOThreadMessageFinalizeInput, DTOThreadReactionCreateInput, DTOThreadReactionDeleteInput, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUpdateForgeProjectMember, DTOUserUpdatePayload, DTOWorkspaceUntypedDataListResponse, DTOWorkspaceUntypedDataResponse } from "@supernova-studio/client";
|
|
2
2
|
import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation, WorkspaceSeatType } from "@supernova-studio/model";
|
|
3
3
|
import { DesignSystemAccessMode, DocsBlockDefinition, DocumentationLegacyGroup, DocumentationLegacyPage, ExportBuildStatus, ExporterJobDestination, ForgeProjectFeatureIteration, ResourceFont, TokenThemeOverrideTranserObject, UserRole, WorkspaceSubscriptionUpdatePreviewModel } from "../../exports";
|
|
4
4
|
import { Asset } from "../../model/assets/SDKAsset";
|
|
@@ -39,12 +39,13 @@ import { ComponentGroup } from "../../model/groups/SDKComponentGroup";
|
|
|
39
39
|
import { DesignComponentGroup } from "../../model/groups/SDKDesignComponentGroup";
|
|
40
40
|
import { TokenGroup } from "../../model/groups/SDKTokenGroup";
|
|
41
41
|
import { ImportJob } from "../../model/jobs/SDKImportJob";
|
|
42
|
+
import { MCPStream } from "../../model/mcp/SDKMCPStream";
|
|
42
43
|
import { Membership } from "../../model/membership/SDKMembership";
|
|
43
44
|
import { ChatThread } from "../../model/messaging/SDKChatThread";
|
|
44
45
|
import { ChatThreadMessage, ChatThreadMessageInput } from "../../model/messaging/SDKChatThreadMessage";
|
|
45
46
|
import { ForgeAgent } from "../../model/projects/SDKForgeAgent";
|
|
46
47
|
import { ForgeProject } from "../../model/projects/SDKForgeProject";
|
|
47
|
-
import { ForgeProjectContext, ForgeProjectContextCreateInput, ForgeProjectContextUpdateInput } from "../../model/projects/SDKForgeProjectContext";
|
|
48
|
+
import { ForgeProjectContext, ForgeProjectContextCreateInput, ForgeProjectContextUpdateInput, type ForgeProjectTheme } from "../../model/projects/SDKForgeProjectContext";
|
|
48
49
|
import { ForgeProjectDocument } from "../../model/projects/SDKForgeProjectDocument";
|
|
49
50
|
import { ForgeProjectFeature } from "../../model/projects/SDKForgeProjectFeature";
|
|
50
51
|
import { ForgeProjectFeatureArtifact } from "../../model/projects/SDKForgeProjectFeatureArtifact";
|
|
@@ -69,7 +70,7 @@ import { User } from "../../model/users/SDKUser";
|
|
|
69
70
|
import { UserMembership } from "../../model/users/SDKUserMembership";
|
|
70
71
|
import { UserProfileUpdateModel } from "../../model/users/SDKUserProfile";
|
|
71
72
|
import { UserWorkspaceNotificationSettings, UserWorkspaceNotificationSettingsUpdateModel } from "../../model/users/SDKUserWorkspaceNotificationSettings";
|
|
72
|
-
import { Workspace } from "../../model/workspaces/SDKWorkspace";
|
|
73
|
+
import { DefaultProjectAccessMode, DefaultProjectRole, Workspace } from "../../model/workspaces/SDKWorkspace";
|
|
73
74
|
import { WorkspaceIPWhitelistSettings, WorkspaceIPWhitelistSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceIPWhitelistSettings";
|
|
74
75
|
import { WorkspaceIntegrations, WorkspaceIntegrationsRemoteModel, WorkspaceIntegrationType } from "../../model/workspaces/SDKWorkspaceIntegration";
|
|
75
76
|
import { WorkspaceIntegrationAccessTokenPayload } from "../../model/workspaces/SDKWorkspaceIntegrationAccessToken";
|
|
@@ -85,7 +86,7 @@ import { WorkspaceProduct } from "../../model/workspaces/SDKWorkspaceProduct";
|
|
|
85
86
|
import { SubscriptionProductFeatures } from "../../model/workspaces/SDKWorkspaceProductFeatures";
|
|
86
87
|
import { WorkspaceProfileUpdateModel } from "../../model/workspaces/SDKWorkspaceProfile";
|
|
87
88
|
import { WorkspaceSSOSettings, WorkspaceSSOSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceSSOSettings";
|
|
88
|
-
import { WorkspaceSubscription, WorkspaceSubscriptionUpdateModel
|
|
89
|
+
import { WorkspaceSubscription, WorkspaceSubscriptionUpdateModel } from "../../model/workspaces/SDKWorkspaceSubscription";
|
|
89
90
|
import { GitProvidersBranches } from "../../model/workspaces/integrations/GitProvidersBranches";
|
|
90
91
|
import { GitProvidersOrganizations } from "../../model/workspaces/integrations/GitProvidersOrganizations";
|
|
91
92
|
import { GitProvidersProjects } from "../../model/workspaces/integrations/GitProvidersProjects";
|
|
@@ -1650,6 +1651,18 @@ export declare class DataCore {
|
|
|
1650
1651
|
description?: string | undefined;
|
|
1651
1652
|
designSystemId?: string | undefined;
|
|
1652
1653
|
brandId?: string | undefined;
|
|
1654
|
+
thumbnail?: {
|
|
1655
|
+
id: string;
|
|
1656
|
+
url: string;
|
|
1657
|
+
name?: string | undefined;
|
|
1658
|
+
source?: {
|
|
1659
|
+
type: "UserUpload";
|
|
1660
|
+
userId: string;
|
|
1661
|
+
} | {
|
|
1662
|
+
type: "Figma";
|
|
1663
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
1664
|
+
} | undefined;
|
|
1665
|
+
} | undefined;
|
|
1653
1666
|
defaultTokenThemeSetId?: string | undefined;
|
|
1654
1667
|
productContext?: string | undefined;
|
|
1655
1668
|
additionalContext?: string | undefined;
|
|
@@ -2625,6 +2638,18 @@ export declare class DataCore {
|
|
|
2625
2638
|
description?: string | undefined;
|
|
2626
2639
|
designSystemId?: string | undefined;
|
|
2627
2640
|
brandId?: string | undefined;
|
|
2641
|
+
thumbnail?: {
|
|
2642
|
+
id: string;
|
|
2643
|
+
url: string;
|
|
2644
|
+
name?: string | undefined;
|
|
2645
|
+
source?: {
|
|
2646
|
+
type: "UserUpload";
|
|
2647
|
+
userId: string;
|
|
2648
|
+
} | {
|
|
2649
|
+
type: "Figma";
|
|
2650
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
2651
|
+
} | undefined;
|
|
2652
|
+
} | undefined;
|
|
2628
2653
|
defaultTokenThemeSetId?: string | undefined;
|
|
2629
2654
|
productContext?: string | undefined;
|
|
2630
2655
|
additionalContext?: string | undefined;
|
|
@@ -2640,6 +2665,9 @@ export declare class DataCore {
|
|
|
2640
2665
|
workspaceId: string;
|
|
2641
2666
|
}): Promise<ForgeProjectContext[]>;
|
|
2642
2667
|
getForgeProjectContext(contextId: string): Promise<ForgeProjectContext>;
|
|
2668
|
+
updateForgeProjectContextOverride(projectId: string, data: {
|
|
2669
|
+
theme: Partial<ForgeProjectTheme> | null;
|
|
2670
|
+
}): Promise<void>;
|
|
2643
2671
|
createForgeProjectSection(workspaceId: string, projectId: string, input: DTOForgeSectionCreateInput, tId?: string): Promise<void>;
|
|
2644
2672
|
updateForgeProjectSection(workspaceId: string, projectId: string, input: DTOForgeSectionUpdateInput, tId?: string): Promise<void>;
|
|
2645
2673
|
deleteForgeProjectSection(workspaceId: string, projectId: string, input: DTOForgeSectionDeleteInput, tId?: string): Promise<void>;
|
|
@@ -2730,6 +2758,8 @@ export declare class DataCore {
|
|
|
2730
2758
|
projectsEnabled?: boolean;
|
|
2731
2759
|
aiAskFeaturesEnabled?: boolean;
|
|
2732
2760
|
aiCustomInstruction?: string;
|
|
2761
|
+
defaultProjectRole?: DefaultProjectRole;
|
|
2762
|
+
defaultProjectAccessMode?: DefaultProjectAccessMode;
|
|
2733
2763
|
}): Promise<void>;
|
|
2734
2764
|
testIpWhitelistSettings(workspaceId: string, ipWhitelistSettings: WorkspaceIPWhitelistSettingsUpdateModel): Promise<{
|
|
2735
2765
|
accessible: boolean;
|
|
@@ -2750,7 +2780,7 @@ export declare class DataCore {
|
|
|
2750
2780
|
deleteWorkspaceMember(workspaceId: string, userId: string): Promise<void>;
|
|
2751
2781
|
deleteWorkspaceInvitation(workspaceId: string, invitationId: string): Promise<void>;
|
|
2752
2782
|
createCheckoutSession(workspaceId: string, data: DTOBillingCheckoutInput): Promise<string>;
|
|
2753
|
-
createPortalSession(workspaceId: string, returnUrl: string,
|
|
2783
|
+
createPortalSession(workspaceId: string, returnUrl: string, cancel?: boolean | null): Promise<string>;
|
|
2754
2784
|
updateSubscription(workspaceId: string, update: WorkspaceSubscriptionUpdateModel): Promise<void>;
|
|
2755
2785
|
previewSubscriptionUpdate(workspaceId: string, update: WorkspaceSubscriptionUpdateModel): Promise<WorkspaceSubscriptionUpdatePreviewModel>;
|
|
2756
2786
|
resendWorkspaceInvitation(workspaceId: string, invitationId: string, designSystemId: string | undefined): Promise<void>;
|
|
@@ -2885,4 +2915,41 @@ export declare class DataCore {
|
|
|
2885
2915
|
getWorkspaceCreditsAvailability(workspaceId: string): Promise<{
|
|
2886
2916
|
canSpendCredits: boolean;
|
|
2887
2917
|
}>;
|
|
2918
|
+
getMCPStream(streamId: string): Promise<MCPStream>;
|
|
2919
|
+
getUserMCPStream(): Promise<MCPStream>;
|
|
2920
|
+
updateUserMCPStream(input: DTOMCPStreamUpdateInput): Promise<MCPStream>;
|
|
2921
|
+
/**
|
|
2922
|
+
* Lists all untyped data for a given workspace.
|
|
2923
|
+
* @param workspaceId - The ID of the workspace.
|
|
2924
|
+
* @returns A promise that resolves to the list of untyped data.
|
|
2925
|
+
*/
|
|
2926
|
+
listUntypedData(workspaceId: string): Promise<DTOWorkspaceUntypedDataListResponse>;
|
|
2927
|
+
/**
|
|
2928
|
+
* Creates new untyped data in the specified workspace.
|
|
2929
|
+
* @param workspaceId - The ID of the workspace.
|
|
2930
|
+
* @param data - The data to create.
|
|
2931
|
+
* @returns A promise that resolves to the created untyped data.
|
|
2932
|
+
*/
|
|
2933
|
+
createUntypedData(workspaceId: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
2934
|
+
/**
|
|
2935
|
+
* Deletes all untyped data in the specified workspace.
|
|
2936
|
+
* @param workspaceId - The ID of the workspace.
|
|
2937
|
+
* @returns A promise that resolves when the operation is complete.
|
|
2938
|
+
*/
|
|
2939
|
+
deleteAllUntypedData(workspaceId: string): Promise<void>;
|
|
2940
|
+
/**
|
|
2941
|
+
* Updates specific untyped data in the specified workspace.
|
|
2942
|
+
* @param workspaceId - The ID of the workspace.
|
|
2943
|
+
* @param id - The ID of the untyped data to update.
|
|
2944
|
+
* @param data - The updated data.
|
|
2945
|
+
* @returns A promise that resolves to the updated untyped data.
|
|
2946
|
+
*/
|
|
2947
|
+
updateUntypedData(workspaceId: string, id: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
2948
|
+
/**
|
|
2949
|
+
* Deletes specific untyped data in the specified workspace.
|
|
2950
|
+
* @param workspaceId - The ID of the workspace.
|
|
2951
|
+
* @param id - The ID of the untyped data to delete.
|
|
2952
|
+
* @returns A promise that resolves when the operation is complete.
|
|
2953
|
+
*/
|
|
2954
|
+
deleteUntypedData(workspaceId: string, id: string): Promise<void>;
|
|
2888
2955
|
}
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { DTODesignSystem, DTOPipeline, DTOTokenCollection, DTODesignElementsDataDiffResponse, DTODesignSystemContactsResponse, DTODesignSystemMemberListResponse, DTODesignSystemVersionStats, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTODocumentationPageDependenciesGetResponse, DTOFigmaNode, DTOFigmaNodeV2, DTOForgeChatMessageListResponse, DTOForgeChatThreadListResponse, DTOGetDocumentationPageAnchorsResponse, DTOForgeProjectMember, DTOForgeAgent, DTOPortalSettings, DTOForgeProjectFeature, DTOForgeProjectArtifact, DTOForgeProjectRoomResponse, DTOForgeProjectArtifactRoomResponse, DTOSubscriptionResponse, DTOFeatureMessageListResponse, DTOForgeFeatureRoomResponse, DTOFeatureArtifactListResponse, DTOFeatureIteration, DTOThreadMessageListResponse, DTOTrailEventListResponse, DTOForgeProjectArtifactContentResponse } from "@supernova-studio/client";
|
|
1
|
+
import { DTODesignSystem, DTOPipeline, DTOTokenCollection, DTODesignElementsDataDiffResponse, DTODesignSystemContactsResponse, DTODesignSystemMemberListResponse, DTODesignSystemVersionStats, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTODocumentationPageDependenciesGetResponse, DTOFigmaNode, DTOFigmaNodeV2, DTOForgeChatMessageListResponse, DTOForgeChatThreadListResponse, DTOGetDocumentationPageAnchorsResponse, DTOForgeProjectMember, DTOForgeAgent, DTOPortalSettings, DTOForgeProjectFeature, DTOForgeProjectArtifact, DTOForgeProjectRoomResponse, DTOForgeProjectArtifactRoomResponse, DTOSubscriptionResponse, DTOFeatureMessageListResponse, DTOForgeFeatureRoomResponse, DTOFeatureArtifactListResponse, DTOFeatureIteration, DTOThreadMessageListResponse, DTOTrailEventListResponse, DTOForgeProjectArtifactContentResponse, DTOWorkspaceUntypedDataListResponse } from "@supernova-studio/client";
|
|
2
2
|
import { DocumentationLegacyGroupModel } from "../../../exports";
|
|
3
3
|
import { BootstrapDataRemoteModel } from "../../../model/base/SDKBootstrapData";
|
|
4
4
|
import { BrandRemoteModel } from "../../../model/base/SDKBrand";
|
|
@@ -29,6 +29,7 @@ import { ImportJobRemoteModel } from "../../../model/jobs/SDKImportJob";
|
|
|
29
29
|
import { MembershipRemoteModel } from "../../../model/membership/SDKMembership";
|
|
30
30
|
import { ForgeProjectRemoteModel } from "../../../model/projects/SDKForgeProject";
|
|
31
31
|
import { ForgeProjectContextRemoteModel } from "../../../model/projects/SDKForgeProjectContext";
|
|
32
|
+
import type { ForgeProjectContextOverrideRemoteModel } from "../../../model/projects/SDKForgeProjectContextOverride";
|
|
32
33
|
import { ResourceAssetModel } from "../../../model/resources/SDKResourceAsset";
|
|
33
34
|
import { ResourceFontModel } from "../../../model/resources/SDKResourceFont";
|
|
34
35
|
import { RemoteStorybookEntry } from "../../../model/storybook/SDKStorybookEntry";
|
|
@@ -1291,6 +1292,18 @@ export declare class DataCoreReadRequests {
|
|
|
1291
1292
|
description?: string | undefined;
|
|
1292
1293
|
designSystemId?: string | undefined;
|
|
1293
1294
|
brandId?: string | undefined;
|
|
1295
|
+
thumbnail?: {
|
|
1296
|
+
id: string;
|
|
1297
|
+
url: string;
|
|
1298
|
+
name?: string | undefined;
|
|
1299
|
+
source?: {
|
|
1300
|
+
type: "UserUpload";
|
|
1301
|
+
userId: string;
|
|
1302
|
+
} | {
|
|
1303
|
+
type: "Figma";
|
|
1304
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
1305
|
+
} | undefined;
|
|
1306
|
+
} | undefined;
|
|
1294
1307
|
defaultTokenThemeSetId?: string | undefined;
|
|
1295
1308
|
productContext?: string | undefined;
|
|
1296
1309
|
additionalContext?: string | undefined;
|
|
@@ -1301,6 +1314,10 @@ export declare class DataCoreReadRequests {
|
|
|
1301
1314
|
tokenThemeIds: string[];
|
|
1302
1315
|
}[] | undefined;
|
|
1303
1316
|
}>;
|
|
1317
|
+
/**
|
|
1318
|
+
* Remote: Get Forge Project Context Override
|
|
1319
|
+
*/
|
|
1320
|
+
getRemoteForgeProjectContextOverride(projectId: string): Promise<ForgeProjectContextOverrideRemoteModel>;
|
|
1304
1321
|
getRemoteForgeAgents(workspaceId: string, projectId: string): Promise<Array<DTOForgeAgent>>;
|
|
1305
1322
|
getRemoteForgeProjectFeature(workspaceId: string, projectId: string, featureId: string): Promise<DTOForgeProjectFeature>;
|
|
1306
1323
|
getRemoteForgeProjectFeatures(workspaceId: string, projectId: string): Promise<Array<DTOForgeProjectFeature>>;
|
|
@@ -1350,4 +1367,26 @@ export declare class DataCoreReadRequests {
|
|
|
1350
1367
|
getWorkspaceCreditsAvailability(workspaceId: string): Promise<{
|
|
1351
1368
|
canSpendCredits: boolean;
|
|
1352
1369
|
}>;
|
|
1370
|
+
/** Remote: Get MCP stream by ID */
|
|
1371
|
+
getRemoteMCPStream(streamId: string): Promise<{
|
|
1372
|
+
stream: {
|
|
1373
|
+
id: string;
|
|
1374
|
+
projectFeatureId?: string | undefined;
|
|
1375
|
+
projectDocumentId?: string | undefined;
|
|
1376
|
+
};
|
|
1377
|
+
}>;
|
|
1378
|
+
/** Remote: Get user's MCP stream */
|
|
1379
|
+
getRemoteUserMCPStream(): Promise<{
|
|
1380
|
+
stream: {
|
|
1381
|
+
id: string;
|
|
1382
|
+
projectFeatureId?: string | undefined;
|
|
1383
|
+
projectDocumentId?: string | undefined;
|
|
1384
|
+
};
|
|
1385
|
+
}>;
|
|
1386
|
+
/**
|
|
1387
|
+
* Fetches all untyped data for a given workspace.
|
|
1388
|
+
* @param workspaceId - The ID of the workspace.
|
|
1389
|
+
* @returns A promise that resolves to the list of untyped data.
|
|
1390
|
+
*/
|
|
1391
|
+
getRemoteUntypedDataList(workspaceId: string): Promise<DTOWorkspaceUntypedDataListResponse>;
|
|
1353
1392
|
}
|