@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DTOAddMembersToForgeProject, DTOBillingCheckoutInput, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFeatureAgentWorkFinalizeInput, DTOFeatureArtifact, DTOFeatureArtifactCreateInput, DTOFeatureArtifactDeleteInput, DTOFeatureIteration, DTOFeatureIterationCreateInput, DTOFeatureIterationPromoteInput, DTOFeatureIterationSetLatestInput, DTOFeatureIterationUpdateArtifactsByMessageInput, DTOFeatureIterationUpdateArtifactsInput, DTOFeatureIterationUpdateInput, DTOFeatureMessage, DTOFeatureMessageCreateInput, DTOFeatureMessageReaction, DTOFeatureMessageReactionCreateInput, DTOFeatureMessageReactionDeleteInput, DTOFeatureUpdateThemeInput, DTOFigmaNode, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOFileFinalizeBulkPayload, DTOFileUploadBulkPayload, DTOFileUploadPayload, DTOForgeChatMessageCreateResponse, DTOForgeChatMessageScoreInput, DTOForgeChatMessageTagInput, DTOForgeChatThreadCreateResponse, DTOForgeChatThreadUpdateResponse, DTOForgeProjectAction, DTOForgeProjectCreate, DTOForgeProjectFileUploadPayload, DTOForgeProjectMember, DTOForgeProjectMembersListResponse, DTOForgeProjectUpdate, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOPortalSettingsUpdatePayload, DTOPublishDocumentationRequest, DTORemoveForgeProjectMember, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOSubscriptionUpdatePreview, DTOThreadMessageCreateInput, DTOThreadMessageFinalizeInput, DTOThreadMessageResponse, DTOThreadReactionCreateInput, DTOThreadReactionDeleteInput, DTOThreadReactionResponse, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUpdateForgeProjectMember, DTOUserUpdatePayload } from "@supernova-studio/client";
|
|
2
|
-
import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation, WorkspaceSeatType } from "@supernova-studio/model";
|
|
3
|
-
import { DesignSystemAccessMode, ExporterJobDestination, ForgeProjectContextCreateInput, ForgeProjectContextUpdateInput, TokenThemeOverrideTranserObject, UserRole } from "../../../exports";
|
|
1
|
+
import { DTOAddMembersToForgeProject, DTOBillingCheckoutInput, DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFeatureAgentWorkFinalizeInput, DTOFeatureArtifact, DTOFeatureArtifactCreateInput, DTOFeatureArtifactDeleteInput, DTOFeatureIteration, DTOFeatureIterationCreateInput, DTOFeatureIterationPromoteInput, DTOFeatureIterationSetLatestInput, DTOFeatureIterationUpdateArtifactsByMessageInput, DTOFeatureIterationUpdateArtifactsInput, DTOFeatureIterationUpdateInput, DTOFeatureMessage, DTOFeatureMessageCreateInput, DTOFeatureMessageReaction, DTOFeatureMessageReactionCreateInput, DTOFeatureMessageReactionDeleteInput, DTOFeatureUpdateThemeInput, DTOFigmaNode, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOFileFinalizeBulkPayload, DTOFileUploadBulkPayload, DTOFileUploadPayload, DTOForgeChatMessageCreateResponse, DTOForgeChatMessageScoreInput, DTOForgeChatMessageTagInput, DTOForgeChatThreadCreateResponse, DTOForgeChatThreadUpdateResponse, DTOForgeProjectAction, DTOForgeProjectCreate, DTOForgeProjectFileUploadPayload, DTOForgeProjectMember, DTOForgeProjectMembersListResponse, DTOForgeProjectUpdate, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOPortalSettingsUpdatePayload, DTOPublishDocumentationRequest, DTORemoveForgeProjectMember, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOSubscriptionUpdatePreview, DTOThreadMessageCreateInput, DTOThreadMessageFinalizeInput, DTOThreadMessageResponse, DTOThreadReactionCreateInput, DTOThreadReactionDeleteInput, DTOThreadReactionResponse, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOUpdateForgeProjectMember, DTOUserUpdatePayload, DTOMCPStreamUpdateInput, DTOMCPStreamResponse, DTOWorkspaceUntypedDataResponse } from "@supernova-studio/client";
|
|
2
|
+
import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation, WorkspaceDefaultProjectAccessMode, WorkspaceDefaultProjectRole, WorkspaceSeatType } from "@supernova-studio/model";
|
|
3
|
+
import { DesignSystemAccessMode, ExporterJobDestination, ForgeProjectContextCreateInput, ForgeProjectContextUpdateInput, TokenThemeOverrideTranserObject, UserRole, type ForgeProjectTheme } from "../../../exports";
|
|
4
4
|
import { Brand, BrandRemoteModel, BrandUpdateModel } from "../../../model/base/SDKBrand";
|
|
5
5
|
import { DesignSystem, DesignSystemSwitcher } from "../../../model/base/SDKDesignSystem";
|
|
6
6
|
import { DesignSystemVersionCreateRemoteModel, DesignSystemVersionUpdateModel } from "../../../model/base/SDKDesignSystemVersion";
|
|
@@ -38,7 +38,7 @@ import { WorkspaceNPMRegistrySettingsUpdateModel } from "../../../model/workspac
|
|
|
38
38
|
import { WorkspaceOnboardingUpdateModel } from "../../../model/workspaces/SDKWorkspaceOnboarding";
|
|
39
39
|
import { WorkspaceProfileUpdateModel } from "../../../model/workspaces/SDKWorkspaceProfile";
|
|
40
40
|
import { WorkspaceSSOSettingsUpdateModel } from "../../../model/workspaces/SDKWorkspaceSSOSettings";
|
|
41
|
-
import { WorkspaceSubscriptionUpdateModel
|
|
41
|
+
import { WorkspaceSubscriptionUpdateModel } from "../../../model/workspaces/SDKWorkspaceSubscription";
|
|
42
42
|
import { DataBridge } from "../SDKDataBridge";
|
|
43
43
|
export declare class DataCoreWriteRequests {
|
|
44
44
|
private bridge;
|
|
@@ -84,6 +84,8 @@ export declare class DataCoreWriteRequests {
|
|
|
84
84
|
projectsEnabled?: boolean;
|
|
85
85
|
aiAskFeaturesEnabled?: boolean;
|
|
86
86
|
aiCustomInstruction?: string;
|
|
87
|
+
defaultProjectRole?: WorkspaceDefaultProjectRole;
|
|
88
|
+
defaultProjectAccessMode?: WorkspaceDefaultProjectAccessMode;
|
|
87
89
|
}): Promise<void>;
|
|
88
90
|
testIpWhitelistSettings(workspaceId: string, ipWhitelistSettings: WorkspaceIPWhitelistSettingsUpdateModel): Promise<{
|
|
89
91
|
accessible: boolean;
|
|
@@ -121,7 +123,7 @@ export declare class DataCoreWriteRequests {
|
|
|
121
123
|
/** Remote: create Checkout session */
|
|
122
124
|
createRemoteCheckoutSession(workspaceId: string, data: DTOBillingCheckoutInput): Promise<string>;
|
|
123
125
|
/** Remote: create Customer portal session */
|
|
124
|
-
createRemotePortalSession(workspaceId: string, returnUrl: string,
|
|
126
|
+
createRemotePortalSession(workspaceId: string, returnUrl: string, cancel?: boolean | null): Promise<string>;
|
|
125
127
|
/** Remote: update workspace subscription */
|
|
126
128
|
updateRemoteSubscription(workspaceId: string, update: WorkspaceSubscriptionUpdateModel): Promise<void>;
|
|
127
129
|
/** Remote: preview workspace subscription update */
|
|
@@ -348,9 +350,9 @@ export declare class DataCoreWriteRequests {
|
|
|
348
350
|
destinations: {
|
|
349
351
|
s3?: {} | undefined;
|
|
350
352
|
azure?: {
|
|
353
|
+
projectId: string;
|
|
351
354
|
branch: string;
|
|
352
355
|
organizationId: string;
|
|
353
|
-
projectId: string;
|
|
354
356
|
repositoryId: string;
|
|
355
357
|
url?: string | undefined;
|
|
356
358
|
userId?: number | undefined;
|
|
@@ -405,8 +407,8 @@ export declare class DataCoreWriteRequests {
|
|
|
405
407
|
connectionId?: string | undefined;
|
|
406
408
|
} | undefined;
|
|
407
409
|
gitlab?: {
|
|
408
|
-
branch: string;
|
|
409
410
|
projectId: string;
|
|
411
|
+
branch: string;
|
|
410
412
|
url?: string | undefined;
|
|
411
413
|
userId?: number | undefined;
|
|
412
414
|
relativePath?: string | undefined;
|
|
@@ -523,9 +525,9 @@ export declare class DataCoreWriteRequests {
|
|
|
523
525
|
connectionId?: string | undefined;
|
|
524
526
|
} | undefined;
|
|
525
527
|
destinationAzure?: {
|
|
528
|
+
projectId: string;
|
|
526
529
|
branch: string;
|
|
527
530
|
organizationId: string;
|
|
528
|
-
projectId: string;
|
|
529
531
|
repositoryId: string;
|
|
530
532
|
url?: string | undefined;
|
|
531
533
|
userId?: number | undefined;
|
|
@@ -543,8 +545,8 @@ export declare class DataCoreWriteRequests {
|
|
|
543
545
|
connectionId?: string | undefined;
|
|
544
546
|
} | undefined;
|
|
545
547
|
destinationGitlab?: {
|
|
546
|
-
branch: string;
|
|
547
548
|
projectId: string;
|
|
549
|
+
branch: string;
|
|
548
550
|
url?: string | undefined;
|
|
549
551
|
userId?: number | undefined;
|
|
550
552
|
relativePath?: string | undefined;
|
|
@@ -605,9 +607,9 @@ export declare class DataCoreWriteRequests {
|
|
|
605
607
|
destinations: {
|
|
606
608
|
s3?: {} | undefined;
|
|
607
609
|
azure?: {
|
|
610
|
+
projectId: string;
|
|
608
611
|
branch: string;
|
|
609
612
|
organizationId: string;
|
|
610
|
-
projectId: string;
|
|
611
613
|
repositoryId: string;
|
|
612
614
|
url?: string | undefined;
|
|
613
615
|
userId?: number | undefined;
|
|
@@ -662,8 +664,8 @@ export declare class DataCoreWriteRequests {
|
|
|
662
664
|
connectionId?: string | undefined;
|
|
663
665
|
} | undefined;
|
|
664
666
|
gitlab?: {
|
|
665
|
-
branch: string;
|
|
666
667
|
projectId: string;
|
|
668
|
+
branch: string;
|
|
667
669
|
url?: string | undefined;
|
|
668
670
|
userId?: number | undefined;
|
|
669
671
|
relativePath?: string | undefined;
|
|
@@ -780,9 +782,9 @@ export declare class DataCoreWriteRequests {
|
|
|
780
782
|
connectionId?: string | undefined;
|
|
781
783
|
} | undefined;
|
|
782
784
|
destinationAzure?: {
|
|
785
|
+
projectId: string;
|
|
783
786
|
branch: string;
|
|
784
787
|
organizationId: string;
|
|
785
|
-
projectId: string;
|
|
786
788
|
repositoryId: string;
|
|
787
789
|
url?: string | undefined;
|
|
788
790
|
userId?: number | undefined;
|
|
@@ -800,8 +802,8 @@ export declare class DataCoreWriteRequests {
|
|
|
800
802
|
connectionId?: string | undefined;
|
|
801
803
|
} | undefined;
|
|
802
804
|
destinationGitlab?: {
|
|
803
|
-
branch: string;
|
|
804
805
|
projectId: string;
|
|
806
|
+
branch: string;
|
|
805
807
|
url?: string | undefined;
|
|
806
808
|
userId?: number | undefined;
|
|
807
809
|
relativePath?: string | undefined;
|
|
@@ -1838,6 +1840,18 @@ export declare class DataCoreWriteRequests {
|
|
|
1838
1840
|
description?: string | undefined;
|
|
1839
1841
|
designSystemId?: string | undefined;
|
|
1840
1842
|
brandId?: string | undefined;
|
|
1843
|
+
thumbnail?: {
|
|
1844
|
+
id: string;
|
|
1845
|
+
url: string;
|
|
1846
|
+
name?: string | undefined;
|
|
1847
|
+
source?: {
|
|
1848
|
+
type: "UserUpload";
|
|
1849
|
+
userId: string;
|
|
1850
|
+
} | {
|
|
1851
|
+
type: "Figma";
|
|
1852
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
1853
|
+
} | undefined;
|
|
1854
|
+
} | undefined;
|
|
1841
1855
|
defaultTokenThemeSetId?: string | undefined;
|
|
1842
1856
|
productContext?: string | undefined;
|
|
1843
1857
|
additionalContext?: string | undefined;
|
|
@@ -2813,6 +2827,18 @@ export declare class DataCoreWriteRequests {
|
|
|
2813
2827
|
description?: string | undefined;
|
|
2814
2828
|
designSystemId?: string | undefined;
|
|
2815
2829
|
brandId?: string | undefined;
|
|
2830
|
+
thumbnail?: {
|
|
2831
|
+
id: string;
|
|
2832
|
+
url: string;
|
|
2833
|
+
name?: string | undefined;
|
|
2834
|
+
source?: {
|
|
2835
|
+
type: "UserUpload";
|
|
2836
|
+
userId: string;
|
|
2837
|
+
} | {
|
|
2838
|
+
type: "Figma";
|
|
2839
|
+
renderMode: "Image" | "HTML" | "JSON";
|
|
2840
|
+
} | undefined;
|
|
2841
|
+
} | undefined;
|
|
2816
2842
|
defaultTokenThemeSetId?: string | undefined;
|
|
2817
2843
|
productContext?: string | undefined;
|
|
2818
2844
|
additionalContext?: string | undefined;
|
|
@@ -2824,6 +2850,10 @@ export declare class DataCoreWriteRequests {
|
|
|
2824
2850
|
}[] | undefined;
|
|
2825
2851
|
}>;
|
|
2826
2852
|
deleteForgeProjectContext(contextId: string): Promise<void>;
|
|
2853
|
+
/** Remote: Updates a Forge Project Context Override */
|
|
2854
|
+
updateForgeProjectContextOverride(projectId: string, data: {
|
|
2855
|
+
theme: Partial<ForgeProjectTheme> | null;
|
|
2856
|
+
}): Promise<void>;
|
|
2827
2857
|
/** Remote: Create a new exporter build */
|
|
2828
2858
|
createExporterBuild(workspaceId: string, designSystemId: string, versionId: string, exporterId: string, destinations: ExporterJobDestination, brandId: string | undefined, themePersistentIds: Array<string> | undefined, exporterConfigurationProperties: DTOExporterPropertyValueMap | undefined, previewMode: boolean | undefined): Promise<ExportBuildModel>;
|
|
2829
2859
|
createRemoteThreadMessage(threadId: string, input: DTOThreadMessageCreateInput): Promise<DTOThreadMessageResponse>;
|
|
@@ -2854,4 +2884,10 @@ export declare class DataCoreWriteRequests {
|
|
|
2854
2884
|
deleteRemoteChatThread(workspaceId: string, threadId: string): Promise<void>;
|
|
2855
2885
|
/** Remote: Scores a chat thread message */
|
|
2856
2886
|
scoreChatThreadMessage(workspaceId: string, threadId: string, scores: Array<DTOForgeChatMessageScoreInput>, tags?: Array<DTOForgeChatMessageTagInput>): Promise<void>;
|
|
2887
|
+
/** Remote: Update user's MCP stream */
|
|
2888
|
+
updateRemoteUserMCPStream(input: DTOMCPStreamUpdateInput): Promise<DTOMCPStreamResponse>;
|
|
2889
|
+
createRemoteUntypedData(workspaceId: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
2890
|
+
deleteRemoteAllUntypedData(workspaceId: string): Promise<void>;
|
|
2891
|
+
updateRemoteUntypedData(workspaceId: string, id: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
|
|
2892
|
+
deleteRemoteUntypedData(workspaceId: string, id: string): Promise<void>;
|
|
2857
2893
|
}
|
|
@@ -17,7 +17,7 @@ export { WorkspaceOnboarding } from "./model/workspaces/SDKWorkspaceOnboarding";
|
|
|
17
17
|
export type { WorkspaceIntegrationsRemoteModel } from "./model/workspaces/SDKWorkspaceIntegration";
|
|
18
18
|
export type { SubscriptionProductFeaturesRemoteModel } from "./model/workspaces/SDKWorkspaceProductFeatures";
|
|
19
19
|
export { type WorkspaceSubscriptionRemoteModel, WorkspaceSubscription, } from "./model/workspaces/SDKWorkspaceSubscription";
|
|
20
|
-
export type {
|
|
20
|
+
export type { WorkspaceSubscriptionUpdateModel, WorkspaceSubscriptionUpdatePreviewModel, } from "./model/workspaces/SDKWorkspaceSubscription";
|
|
21
21
|
export { WorkspaceIPWhitelistSettings } from "./model/workspaces/SDKWorkspaceIPWhitelistSettings";
|
|
22
22
|
export { WorkspaceSSOSettings } from "./model/workspaces/SDKWorkspaceSSOSettings";
|
|
23
23
|
export { WorkspaceNPMRegistrySettings } from "./model/workspaces/SDKWorkspaceNPMRegistrySettings";
|
|
@@ -308,6 +308,7 @@ export { TokenThemeOverride } from "./model/themes/SDKTokenThemeOverride";
|
|
|
308
308
|
export type { TokenThemeOverrideTranserObject } from "./model/themes/SDKTokenThemeOverride";
|
|
309
309
|
export { ChatThread } from "./model/messaging/SDKChatThread";
|
|
310
310
|
export { ChatThreadMessage, ChatMessageUserScoreType, } from "./model/messaging/SDKChatThreadMessage";
|
|
311
|
+
export { MCPStream } from "./model/mcp/SDKMCPStream";
|
|
311
312
|
export { TokenUtilPreviewGenerator } from "./tools/token-preview/TokenUtilPreviewGenerator";
|
|
312
313
|
export { TokenJSONBuilder, JSONBuilderNamingOption, } from "./tools/json-builder/SDKToolsJSONBuilder";
|
|
313
314
|
export type { DTProcessedTokenNode } from "./tools/design-tokens/utilities/SDKDTJSONConverter";
|
|
@@ -346,7 +347,7 @@ export { ForgeProject, type ForgeProjectRemoteModel, } from "./model/projects/SD
|
|
|
346
347
|
export { TrailEvent, type TrailEventRemoteModel, type TrailEventType, type TrailEventCreateInput, type TrailEventListInput, type TrailEventListResponse, } from "./model/trail-events/SDKTrailEvent";
|
|
347
348
|
export { ForgeProjectMembership } from "./model/projects/SDKForgeProjectMembership";
|
|
348
349
|
export type { ForgeProjectMembershipRole } from "./model/projects/SDKForgeProjectMembership";
|
|
349
|
-
export { ForgeProjectContext, type ForgeProjectContextRemoteModel, type ForgeProjectContextCreateInput, type ForgeProjectContextUpdateInput, type ForgeProjectTheme, } from "./model/projects/SDKForgeProjectContext";
|
|
350
|
+
export { ForgeProjectContext, type ForgeProjectContextRemoteModel, type ForgeProjectContextCreateInput, type ForgeProjectContextUpdateInput, type ForgeProjectTheme, type TokenThemeSet, } from "./model/projects/SDKForgeProjectContext";
|
|
350
351
|
export { ForgeAgent } from "./model/projects/SDKForgeAgent";
|
|
351
352
|
export { ForgeProjectDocument } from "./model/projects/SDKForgeProjectDocument";
|
|
352
353
|
export { ForgeProjectFeature } from "./model/projects/SDKForgeProjectFeature";
|
|
@@ -14,5 +14,7 @@ export declare class Membership {
|
|
|
14
14
|
seatType: WorkspaceSeatType;
|
|
15
15
|
/** Actual type of the seat in the workspace. */
|
|
16
16
|
effectiveSeatType: WorkspaceSeatType;
|
|
17
|
+
/** Whether the user is deactivated and can no longer access the workspace. */
|
|
18
|
+
isDeactivated: boolean;
|
|
17
19
|
constructor(model: MembershipRemoteModel);
|
|
18
20
|
}
|
|
@@ -35,17 +35,14 @@ export type ChatThreadMessageInput = {
|
|
|
35
35
|
senderType: "User";
|
|
36
36
|
persona?: never;
|
|
37
37
|
userId: string;
|
|
38
|
-
opikTraceId?: string;
|
|
39
38
|
} | {
|
|
40
39
|
payload: string;
|
|
41
40
|
senderType: "Agent";
|
|
42
41
|
persona?: "Amy";
|
|
43
42
|
userId?: never;
|
|
44
|
-
opikTraceId?: string;
|
|
45
43
|
} | {
|
|
46
44
|
payload: string;
|
|
47
45
|
senderType: "Developer" | "FunctionCallInput" | "FunctionCallOutput";
|
|
48
46
|
persona?: never;
|
|
49
47
|
userId?: never;
|
|
50
|
-
opikTraceId?: string;
|
|
51
48
|
};
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { DTOForgeProject, DTOForgeProjectAccessMode, DTOForgeProjectRole, DTOForgeProjectDefaultRole
|
|
1
|
+
import { DTOForgeProject, DTOForgeProjectAccessMode, DTOForgeProjectRole, DTOForgeProjectDefaultRole } from "@supernova-studio/client";
|
|
2
2
|
import { ForgeProjectContext } from "./SDKForgeProjectContext";
|
|
3
3
|
import { ForgeProjectDocumentPreview } from "./SDKForgeProjectDocumentPreview";
|
|
4
4
|
import { ForgeProjectFeaturePreview } from "./SDKForgeProjectFeaturePreview";
|
|
5
5
|
export type ForgeProjectRemoteModel = DTOForgeProject & {
|
|
6
6
|
effectiveRole: DTOForgeProjectRole;
|
|
7
|
-
documents: DTOForgeProjectDocumentPreview[];
|
|
8
|
-
features: DTOForgeProjectFeaturePreview[];
|
|
9
7
|
};
|
|
10
8
|
export declare class ForgeProject {
|
|
11
9
|
id: string;
|
|
12
10
|
workspaceId: string;
|
|
13
11
|
projectContextId: string;
|
|
12
|
+
projectContextOverrideId?: string;
|
|
14
13
|
name: string;
|
|
15
14
|
description: string | undefined;
|
|
16
15
|
instruction: string | null;
|
|
@@ -27,6 +26,7 @@ export declare class ForgeProject {
|
|
|
27
26
|
numberOfDocuments: number;
|
|
28
27
|
documents: ForgeProjectDocumentPreview[];
|
|
29
28
|
features: ForgeProjectFeaturePreview[];
|
|
29
|
+
liveblocksRoomId: string | undefined;
|
|
30
30
|
/** @deprecated prefer fetching from project contexts endpoint separately */
|
|
31
31
|
context: ForgeProjectContext | undefined;
|
|
32
32
|
/** @deprecated use `projectContextId` */
|
|
@@ -36,6 +36,7 @@ export declare class ForgeProject {
|
|
|
36
36
|
name: string;
|
|
37
37
|
description?: string;
|
|
38
38
|
};
|
|
39
|
+
tokenThemeSetId?: string;
|
|
39
40
|
constructor(model: ForgeProjectRemoteModel);
|
|
40
41
|
toRemote(): ForgeProjectRemoteModel;
|
|
41
42
|
}
|
|
@@ -3,6 +3,11 @@ export type ForgeProjectContextCreateInput = DTOForgeProjectContextCreateV2;
|
|
|
3
3
|
export type ForgeProjectContextUpdateInput = DTOForgeProjectContextUpdateV2;
|
|
4
4
|
export type ForgeProjectContextRemoteModel = DTOForgeProjectContextV2;
|
|
5
5
|
export type ForgeProjectTheme = DTOForgeProjectTheme;
|
|
6
|
+
export type TokenThemeSet = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
tokenThemeIds: string[];
|
|
10
|
+
};
|
|
6
11
|
export declare class ForgeProjectContext {
|
|
7
12
|
id: string;
|
|
8
13
|
workspaceId: string;
|
|
@@ -19,7 +24,7 @@ export declare class ForgeProjectContext {
|
|
|
19
24
|
isArchived: boolean;
|
|
20
25
|
themePreset: string | undefined;
|
|
21
26
|
defaultTokenThemeSetId: string | undefined;
|
|
22
|
-
tokenThemeSets:
|
|
27
|
+
tokenThemeSets: TokenThemeSet[];
|
|
23
28
|
brandId?: string;
|
|
24
29
|
constructor(model: ForgeProjectContextRemoteModel);
|
|
25
30
|
toRemote(): ForgeProjectContextRemoteModel;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ForgeProjectTheme } from "./SDKForgeProjectContext";
|
|
2
|
+
export type ForgeProjectContextOverrideRemoteModel = {
|
|
3
|
+
projectContextId: string;
|
|
4
|
+
theme: Partial<ForgeProjectTheme>;
|
|
5
|
+
};
|
|
6
|
+
export type ForgeProjectContextOverrideUpdateInput = {
|
|
7
|
+
theme: Partial<ForgeProjectTheme>;
|
|
8
|
+
};
|
|
9
|
+
export declare class ForgeProjectContextOverride {
|
|
10
|
+
projectContextId: string;
|
|
11
|
+
theme: Partial<ForgeProjectTheme>;
|
|
12
|
+
constructor(data: {
|
|
13
|
+
projectContextId: string;
|
|
14
|
+
theme: Partial<ForgeProjectTheme>;
|
|
15
|
+
});
|
|
16
|
+
toRemote(): {
|
|
17
|
+
projectContextId: string;
|
|
18
|
+
theme: Partial<ForgeProjectTheme>;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
@@ -8,6 +8,7 @@ export declare class ForgeProjectMembership {
|
|
|
8
8
|
forgeProjectId: string;
|
|
9
9
|
workspaceMembershipId: string;
|
|
10
10
|
workspaceRole: DTOForgeProjectMember["workspaceRole"];
|
|
11
|
+
isDeactivated: boolean;
|
|
11
12
|
constructor(model: DTOForgeProjectMember);
|
|
12
13
|
toRemote(): DTOForgeProjectMember;
|
|
13
14
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { DTOWorkspace } from "@supernova-studio/client";
|
|
2
2
|
import { WorkspaceProfile } from "./SDKWorkspaceProfile";
|
|
3
|
-
export type WorkspaceRemoteModel = Pick<DTOWorkspace, "id" | "profile" | "aiFeaturesEnabled" | "aiAskFeaturesEnabled" | "aiCustomInstruction" | "projectsEnabled">;
|
|
3
|
+
export type WorkspaceRemoteModel = Pick<DTOWorkspace, "id" | "profile" | "aiFeaturesEnabled" | "aiAskFeaturesEnabled" | "aiCustomInstruction" | "projectsEnabled" | "defaultProjectRole" | "defaultProjectAccessMode">;
|
|
4
4
|
export type WorkspaceTransportModel = WorkspaceRemoteModel;
|
|
5
|
+
export type DefaultProjectRole = "Viewer" | "Builder";
|
|
6
|
+
export type DefaultProjectAccessMode = "Open" | "InviteOnly" | "Unlisted";
|
|
5
7
|
export declare class Workspace {
|
|
6
8
|
/** Unique identifier of the workspace */
|
|
7
9
|
id: string;
|
|
@@ -15,6 +17,14 @@ export declare class Workspace {
|
|
|
15
17
|
projectsEnabled: boolean;
|
|
16
18
|
/** Custom instructions for AI */
|
|
17
19
|
aiCustomInstruction: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Default role for new projects in the workspace.
|
|
22
|
+
*/
|
|
23
|
+
defaultProjectRole: DefaultProjectRole;
|
|
24
|
+
/**
|
|
25
|
+
* Default access mode for new projects in the workspace.
|
|
26
|
+
*/
|
|
27
|
+
defaultProjectAccessMode: DefaultProjectAccessMode;
|
|
18
28
|
constructor(model: WorkspaceRemoteModel);
|
|
19
29
|
/** Constructs representation that can be used to write full object to remote */
|
|
20
30
|
toRemote(): WorkspaceRemoteModel;
|
|
@@ -30,8 +30,6 @@ export declare class WorkspaceInvitation {
|
|
|
30
30
|
* e.g., when the workspace is suspended.
|
|
31
31
|
*/
|
|
32
32
|
effectiveSeatType: WorkspaceSeatType;
|
|
33
|
-
/** Whether the invitation is deactivated and can no longer access the workspace. */
|
|
34
|
-
isDeactivated: boolean;
|
|
35
33
|
/** ID of the workspace associated with the invitation */
|
|
36
34
|
workspaceId: string;
|
|
37
35
|
/** User who sent the invitation */
|
|
@@ -5,14 +5,6 @@ import { WorkspaceSubscriptionStatus } from "../enums/SDKWorkspaceSubscriptionSt
|
|
|
5
5
|
import { ProductFeature } from "./SDKWorkspaceProductFeatures";
|
|
6
6
|
export type WorkspaceSubscriptionRemoteModel = DTOSubscriptionResponse;
|
|
7
7
|
export type WorkspaceSubscriptionTransportModel = WorkspaceSubscriptionRemoteModel;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated use `WorkspaceSubscriptionUpdateModel`
|
|
10
|
-
* TODO (Seva): remove
|
|
11
|
-
*/
|
|
12
|
-
export type WorkspaceSubscriptionUpdateModelLegacy = {
|
|
13
|
-
priceId: string;
|
|
14
|
-
numberOfSeats: number;
|
|
15
|
-
};
|
|
16
8
|
export type WorkspaceSubscriptionUpdateModel = DTOSubscriptionUpdateInput;
|
|
17
9
|
export type WorkspaceSubscriptionUpdatePreviewModel = DTOSubscriptionUpdatePreview;
|
|
18
10
|
export declare class WorkspaceSubscription {
|
|
@@ -30,6 +22,8 @@ export declare class WorkspaceSubscription {
|
|
|
30
22
|
product: WorkspaceSubscriptionProductCode;
|
|
31
23
|
/** Subscription cycle interval */
|
|
32
24
|
planInterval: WorkspaceSubscriptionPlanInterval;
|
|
25
|
+
/** Trial, mostly used for Enterprise plans */
|
|
26
|
+
isTrial: boolean;
|
|
33
27
|
/**
|
|
34
28
|
* Stripe price id for a Full seat.
|
|
35
29
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DTODesignSystem,
|
|
1
|
+
import { DTODesignSystem, DTODesignSystemContactsResponse, DTOFeatureArtifactListResponse, DTOFeatureIteration, DTOForgeAgent, DTOForgeChatMessageListResponse, DTOForgeChatThreadListResponse, DTOForgeProjectFeature, DTOForgeProjectMember, DTOMCPStreamResponse, DTOPortalSettings, DTOThreadMessageListResponse } from "@supernova-studio/client";
|
|
2
2
|
import { Asset } from "../model/assets/SDKAsset";
|
|
3
3
|
import { Brand, BrandRemoteModel } from "../model/base/SDKBrand";
|
|
4
4
|
import { DesignSystem } from "../model/base/SDKDesignSystem";
|
|
@@ -14,12 +14,14 @@ import { AssetGroup } from "../model/groups/SDKAssetGroup";
|
|
|
14
14
|
import { ComponentGroup, ComponentGroupRemoteModel } from "../model/groups/SDKComponentGroup";
|
|
15
15
|
import { DesignComponentGroup, DesignComponentGroupRemoteModel } from "../model/groups/SDKDesignComponentGroup";
|
|
16
16
|
import { TokenGroup, TokenGroupRemoteModel } from "../model/groups/SDKTokenGroup";
|
|
17
|
+
import { MCPStream } from "../model/mcp/SDKMCPStream";
|
|
17
18
|
import { Membership, MembershipRemoteModel } from "../model/membership/SDKMembership";
|
|
18
19
|
import { ChatThread } from "../model/messaging/SDKChatThread";
|
|
19
20
|
import { ChatThreadMessage } from "../model/messaging/SDKChatThreadMessage";
|
|
20
21
|
import { ForgeAgent } from "../model/projects/SDKForgeAgent";
|
|
21
22
|
import { ForgeProject, ForgeProjectRemoteModel } from "../model/projects/SDKForgeProject";
|
|
22
23
|
import { ForgeProjectContext, ForgeProjectContextRemoteModel } from "../model/projects/SDKForgeProjectContext";
|
|
24
|
+
import { ForgeProjectContextOverride, type ForgeProjectContextOverrideRemoteModel } from "../model/projects/SDKForgeProjectContextOverride";
|
|
23
25
|
import { ForgeProjectFeature } from "../model/projects/SDKForgeProjectFeature";
|
|
24
26
|
import { ForgeProjectFeatureArtifactList } from "../model/projects/SDKForgeProjectFeatureArtifactList";
|
|
25
27
|
import { ForgeProjectFeatureIteration } from "../model/projects/SDKForgeProjectFeatureIteration";
|
|
@@ -33,6 +35,7 @@ import { TokenRemoteModel } from "../model/tokens/remote/SDKRemoteTokenModel";
|
|
|
33
35
|
import { TrailEvent, TrailEventListResponse } from "../model/trail-events/SDKTrailEvent";
|
|
34
36
|
import { User, UserRemoteModel } from "../model/users/SDKUser";
|
|
35
37
|
import { UserMembership, UserMembershipRemoteModel } from "../model/users/SDKUserMembership";
|
|
38
|
+
import { Workspace, WorkspaceRemoteModel } from "../model/workspaces/SDKWorkspace";
|
|
36
39
|
import { WorkspaceIntegrations, WorkspaceIntegrationsRemoteModel } from "../model/workspaces/SDKWorkspaceIntegration";
|
|
37
40
|
import { PortalSettings } from "../model/workspaces/SDKWorkspacePortalSettings";
|
|
38
41
|
import { SubscriptionProductFeatures, SubscriptionProductFeaturesRemoteModel } from "../model/workspaces/SDKWorkspaceProductFeatures";
|
|
@@ -103,6 +106,9 @@ export declare class RawUtils {
|
|
|
103
106
|
static buildForgeProjectFeatureArtifactsFromRaw(rawData: DTOFeatureArtifactListResponse): ForgeProjectFeatureArtifactList;
|
|
104
107
|
static buildForgeProjectFeaturesFromRaw(rawData: DTOForgeProjectFeature[]): ForgeProjectFeature[];
|
|
105
108
|
static buildForgeProjectContextsFromRaw(rawData: Array<ForgeProjectContextRemoteModel>): Array<ForgeProjectContext>;
|
|
109
|
+
static buildForgeProjectContextOverrideFromRaw(rawData: ForgeProjectContextOverrideRemoteModel): ForgeProjectContextOverride;
|
|
106
110
|
static buildForgeProjectTrailEventsFromRaw(rawData: TrailEventListResponse): Array<TrailEvent>;
|
|
107
111
|
static buildForgeProjectFromRaw(rawData: ForgeProjectRemoteModel): ForgeProject;
|
|
112
|
+
static buildWorkspaceFromRaw(rawData: WorkspaceRemoteModel): Workspace;
|
|
113
|
+
static buildMCPStreamFromRaw(rawData: DTOMCPStreamResponse): MCPStream;
|
|
108
114
|
}
|