@supernova-studio/supernova-sdk-beta 2.2.5 → 2.2.7

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.
@@ -13,6 +13,7 @@ import { AreaIntegrations } from "./areas/SDKAreaIntegrations";
13
13
  import { AreaMe } from "./areas/SDKAreaMe";
14
14
  import { AreaMultiplayer } from "./areas/SDKAreaMultiplayer";
15
15
  import { AreaNetwork } from "./areas/SDKAreaNetwork";
16
+ import { AreaProjects } from "./areas/SDKAreaProjects";
16
17
  import { AreaRawData } from "./areas/SDKAreaRawData";
17
18
  import { AreaResources } from "./areas/SDKAreaResources";
18
19
  import { AreaStorage } from "./areas/SDKAreaStorage";
@@ -74,6 +75,8 @@ export declare class Supernova {
74
75
  multiplayer: AreaMultiplayer;
75
76
  /** Get access to AI capabilities */
76
77
  ai: AreaAI;
78
+ /** Get access to projects */
79
+ projects: AreaProjects;
77
80
  /** Get access to raw data for local-only restoration of data */
78
81
  raw: AreaRawData;
79
82
  /**
@@ -1,4 +1,5 @@
1
- import { DTODataSourceStorybookCreatePayload, DTOStorybookEntry, DTOStorybookImportPayload } from "@supernova-studio/client";
1
+ import { DTODataSourceStorybookCreatePayload, DTOStorybookImportPayload } from "@supernova-studio/client";
2
+ import { StorybookEntry } from "../../model/storybook/SDKStorybookEntry";
2
3
  import { FigmaStructure } from "../../model/support/SDKFigmaStructure";
3
4
  import { FigmaStructureDetail } from "../../model/support/SDKFigmaStructureDetail";
4
5
  import { Source, SourceRemoteModelCloud } from "../../model/support/SDKSource";
@@ -30,7 +31,7 @@ export declare class AreaDataSources {
30
31
  getFigmaNodeStructureDetail(from: RemoteVersionIdentifier & {
31
32
  figmaStructureId: string;
32
33
  }): Promise<FigmaStructureDetail>;
33
- getStorybookEntries(from: RemoteVersionIdentifier): Promise<DTOStorybookEntry[]>;
34
+ getStorybookEntries(from: RemoteVersionIdentifier): Promise<StorybookEntry[]>;
34
35
  linkFigmaSource(from: RemoteBrandIdentifier, url: string, options: {
35
36
  scopes: {
36
37
  tokens: boolean;
@@ -7,6 +7,7 @@ import { DocsEntityGroupModel } from "../../model/docs/entities/SDKDocsEntityGro
7
7
  import { DocsEntityPageModel } from "../../model/docs/entities/SDKDocsEntityPage";
8
8
  import { DocsSection } from "../../model/docs/sections/SDKDocsSection";
9
9
  import { DocumentationLegacyGroup } from "../../model/documentation/SDKDocumentationLegacyGroup";
10
+ import { DocumentationLegacyPage } from "../../model/documentation/SDKDocumentationLegacyPage";
10
11
  import { DocsPublishStatus } from "../../model/enums/SDKDocsPublishStatus";
11
12
  import { DocumentationEnvironment } from "../../model/enums/SDKDocumentationEnvironment";
12
13
  import { ExportBuild, ExportBuildStatus } from "../../model/exporters/exporter_builds/SDKExportBuild";
@@ -166,17 +167,15 @@ export declare class AreaDocumentation {
166
167
  * @returns nothing
167
168
  */
168
169
  ungroupDocumentationGroup(from: RemoteWorkspaceVersionIdentifier, payload: DTODeleteDocumentationGroupInput): Promise<void>;
169
- /** Fetches object containing the structure of the docs - documentation pages and groups with metadata but without the page payloads
170
- * Not implemented for now
171
- * @param from - Remote version to fetch from
172
- * @returnsDocumentationLegacy object
173
- */
174
- getDocumentationStructureFromRoot(from: RemoteWorkspaceVersionIdentifier): Promise<DocumentationLegacyGroup>;
175
- /** Fetches entire documentation documentation structure, including all pages and groups and their payloads
170
+ /** Fetches entire documentation including content in the legacy format
176
171
  * @param from - Remote version to fetch from
177
172
  * @returns All documentation items
178
173
  */
179
- getDocumentationFromRoot(from: RemoteWorkspaceVersionIdentifier): Promise<DocumentationLegacyGroup>;
174
+ getFullDocumentationLegacyRepresentation(from: RemoteWorkspaceVersionIdentifier): Promise<{
175
+ rootGroup: DocumentationLegacyGroup;
176
+ allPages: Array<DocumentationLegacyPage>;
177
+ allGroups: Array<DocumentationLegacyGroup>;
178
+ }>;
180
179
  /** Get ID of the multiplayer room for a given documentation page
181
180
  * @param from - Remote version to fetch from
182
181
  * @param pageId - ID of the documentation page
@@ -0,0 +1,69 @@
1
+ import { SDKProject } from "../../model/projects/SDKProject";
2
+ import { SDKProjectContext, SDKProjectContextCreationModel } from "../../model/projects/SDKProjectContext";
3
+ import { DataCore } from "../data/SDKDataCore";
4
+ /**
5
+ * Manages project-related operations within a workspace using untyped data storage.
6
+ */
7
+ export declare class AreaProjects {
8
+ /** Internal reference to DataCore for data operations */
9
+ private dataCore;
10
+ /** Key under which all projects are stored */
11
+ private readonly PROJECTS_KEY;
12
+ /** Key under which all project contexts are stored */
13
+ private readonly PROJECT_CONTEXTS_KEY;
14
+ constructor(dataCore: DataCore);
15
+ /**
16
+ * Fetches all projects for a given workspace.
17
+ * @param workspaceId - The ID of the workspace.
18
+ * @returns A promise resolving to an array of SDKProject instances.
19
+ */
20
+ getAllProjects(workspaceId: string): Promise<SDKProject[]>;
21
+ /**
22
+ * Creates a new project in the specified workspace.
23
+ * @param workspaceId - The ID of the workspace.
24
+ * @param name - The name of the new project.
25
+ * @returns A promise resolving to the created SDKProject instance.
26
+ */
27
+ createProject(workspaceId: string, name: string, contextId: string): Promise<SDKProject>;
28
+ /**
29
+ * Updates an existing project in the specified workspace.
30
+ * @param workspaceId - The ID of the workspace.
31
+ * @param updatedProject - The updated SDKProject instance.
32
+ * @returns A promise that resolves when the update is complete.
33
+ * @throws Error if the project is not found.
34
+ */
35
+ updateProject(workspaceId: string, updatedProject: SDKProject): Promise<void>;
36
+ /**
37
+ * Deletes a project from the specified workspace.
38
+ * @param workspaceId - The ID of the workspace.
39
+ * @param projectId - The ID of the project to delete.
40
+ * @returns A promise that resolves when the deletion is complete.
41
+ */
42
+ deleteProject(workspaceId: string, projectId: string): Promise<void>;
43
+ /**
44
+ * Retrieves all project contexts in a workspace.
45
+ * @param workspaceId - The ID of the workspace.
46
+ * @returns An array of SDKProjectContext instances.
47
+ */
48
+ getAllProjectContexts(workspaceId: string): Promise<SDKProjectContext[]>;
49
+ /**
50
+ * Creates a new project context.
51
+ * @param workspaceId - The ID of the workspace.
52
+ * @param creationModel - The properties for the new context.
53
+ * @returns The created SDKProjectContext instance.
54
+ */
55
+ createProjectContext(workspaceId: string, creationModel: SDKProjectContextCreationModel): Promise<SDKProjectContext>;
56
+ /**
57
+ * Updates an existing project context.
58
+ * @param workspaceId - The ID of the workspace.
59
+ * @param updatedContext - The updated context instance.
60
+ * @throws Error if the context is not found.
61
+ */
62
+ updateProjectContext(workspaceId: string, updatedContext: SDKProjectContext): Promise<void>;
63
+ /**
64
+ * Deletes a project context.
65
+ * @param workspaceId - The ID of the workspace.
66
+ * @param contextId - The ID of the context to delete.
67
+ */
68
+ deleteProjectContext(workspaceId: string, contextId: string): Promise<void>;
69
+ }
@@ -1,3 +1,4 @@
1
+ import { DTOWorkspaceUntypedDataListResponse, DTOWorkspaceUntypedDataResponse } from "@supernova-studio/client";
1
2
  import { Acl } from "../../model/acl/SDKAcl";
2
3
  import { UserRole } from "../../model/enums/SDKUserRole";
3
4
  import { Membership } from "../../model/membership/SDKMembership";
@@ -234,4 +235,38 @@ export declare class AreaWorkspaces {
234
235
  * @returns Nothing
235
236
  */
236
237
  deleteWorkspaceInvitation(workspaceId: string, invitationId: string): Promise<void>;
238
+ /**
239
+ * Lists all untyped data for a given workspace.
240
+ * @param workspaceId - The ID of the workspace.
241
+ * @returns A promise that resolves to the list of untyped data.
242
+ */
243
+ listUntypedData(workspaceId: string): Promise<DTOWorkspaceUntypedDataListResponse>;
244
+ /**
245
+ * Creates new untyped data in the specified workspace.
246
+ * @param workspaceId - The ID of the workspace.
247
+ * @param data - The data to create. Must be a valid JSON object.
248
+ * @returns A promise that resolves to the created untyped data.
249
+ */
250
+ createUntypedData(workspaceId: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
251
+ /**
252
+ * Deletes all untyped data in the specified workspace.
253
+ * @param workspaceId - The ID of the workspace.
254
+ * @returns A promise that resolves when the operation is complete.
255
+ */
256
+ deleteAllUntypedData(workspaceId: string): Promise<void>;
257
+ /**
258
+ * Updates specific untyped data in the specified workspace.
259
+ * @param workspaceId - The ID of the workspace.
260
+ * @param id - The ID of the untyped data to update.
261
+ * @param data - The updated data. Must be a valid JSON object.
262
+ * @returns A promise that resolves to the updated untyped data.
263
+ */
264
+ updateUntypedData(workspaceId: string, id: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
265
+ /**
266
+ * Deletes specific untyped data in the specified workspace.
267
+ * @param workspaceId - The ID of the workspace.
268
+ * @param id - The ID of the untyped data to delete.
269
+ * @returns A promise that resolves when the operation is complete.
270
+ */
271
+ deleteUntypedData(workspaceId: string, id: string): Promise<void>;
237
272
  }
@@ -1,6 +1,6 @@
1
- import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODataSourceStorybookCreatePayload, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTODocumentationPageAnchor, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFigmaNode, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOPublishDocumentationRequest, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOStorybookEntry, DTOStorybookImportPayload, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2 } from "@supernova-studio/client";
1
+ import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODataSourceStorybookCreatePayload, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignElementsDataDiffResponse, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTODocumentationPageAnchor, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFigmaNode, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOPublishDocumentationRequest, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOStorybookImportPayload, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOWorkspaceUntypedDataListResponse, DTOWorkspaceUntypedDataResponse } from "@supernova-studio/client";
2
2
  import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation } from "@supernova-studio/model";
3
- import { DesignSystemAccessMode, DocsBlockDefinition, ExportBuildStatus, ExporterJobDestination, ResourceFont, TokenThemeOverrideTranserObject, UserRole } from "../../exports";
3
+ import { DesignSystemAccessMode, DocsBlockDefinition, DocumentationLegacyGroup, DocumentationLegacyPage, ExportBuildStatus, ExporterJobDestination, ResourceFont, TokenThemeOverrideTranserObject, UserRole } from "../../exports";
4
4
  import { Acl } from "../../model/acl/SDKAcl";
5
5
  import { Asset } from "../../model/assets/SDKAsset";
6
6
  import { RenderedAsset } from "../../model/assets/SDKRenderedAsset";
@@ -42,6 +42,7 @@ import { TokenGroup } from "../../model/groups/SDKTokenGroup";
42
42
  import { ImportJob } from "../../model/jobs/SDKImportJob";
43
43
  import { Membership } from "../../model/membership/SDKMembership";
44
44
  import { ResourceAsset } from "../../model/resources/SDKResourceAsset";
45
+ import { StorybookEntry } from "../../model/storybook/SDKStorybookEntry";
45
46
  import { CustomDomain } from "../../model/support/SDKCustomDomain";
46
47
  import { FigmaStructure } from "../../model/support/SDKFigmaStructure";
47
48
  import { FigmaStructureDetail } from "../../model/support/SDKFigmaStructureDetail";
@@ -263,6 +264,12 @@ export declare class DataCore {
263
264
  restoreDocumentationGroup(designSystemId: string, versionId: string, payload: DTORestoreDocumentationGroupInput): Promise<void>;
264
265
  /** Restore a documentation page */
265
266
  restoreDocumentationPage(designSystemId: string, versionId: string, payload: DTORestoreDocumentationPageInput): Promise<void>;
267
+ /** Fetches entire documentation including content in the legacy format */
268
+ getFullDocumentationLegacyRepresentation(designSystemId: string, versionId: string, workspaceId: string): Promise<{
269
+ rootGroup: DocumentationLegacyGroup;
270
+ allPages: Array<DocumentationLegacyPage>;
271
+ allGroups: Array<DocumentationLegacyGroup>;
272
+ }>;
266
273
  /** Create a custom property in remote */
267
274
  updateTokenProperty(designSystemId: string, versionId: string, propertyIdInVersion: string, model: ElementPropertyUpdateModel): Promise<void>;
268
275
  /** Delete a custom property in remote */
@@ -566,7 +573,7 @@ export declare class DataCore {
566
573
  designSystemContacts(designSystemId: string): Promise<DesignSystemContactList>;
567
574
  getFigmaNodeStructures(designSystemId: string): Promise<Array<FigmaStructure>>;
568
575
  getFigmaNodeStructureDetail(designSystemId: string, figmaStructureId: string): Promise<FigmaStructureDetail>;
569
- getStorybookEntries(designSystemId: string, versionId: string): Promise<DTOStorybookEntry[]>;
576
+ getStorybookEntries(designSystemId: string, versionId: string): Promise<StorybookEntry[]>;
570
577
  deleteFigmaSource(designSystemId: string, sourceId: string): Promise<void>;
571
578
  linkFigmaSource(designSystemId: string, brandId: string, url: string, options: {
572
579
  scopes: {
@@ -623,6 +630,40 @@ export declare class DataCore {
623
630
  readKeyValueStorageData(designSystemId: string, key: string): Promise<string | object | undefined>;
624
631
  setKeyValueStorageData(designSystemId: string, key: string, value: string | object): Promise<void>;
625
632
  unsetKeyValueStorageData(designSystemId: string, key: string): Promise<void>;
633
+ /**
634
+ * Lists all untyped data for a given workspace.
635
+ * @param workspaceId - The ID of the workspace.
636
+ * @returns A promise that resolves to the list of untyped data.
637
+ */
638
+ listUntypedData(workspaceId: string): Promise<DTOWorkspaceUntypedDataListResponse>;
639
+ /**
640
+ * Creates new untyped data in the specified workspace.
641
+ * @param workspaceId - The ID of the workspace.
642
+ * @param data - The data to create.
643
+ * @returns A promise that resolves to the created untyped data.
644
+ */
645
+ createUntypedData(workspaceId: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
646
+ /**
647
+ * Deletes all untyped data in the specified workspace.
648
+ * @param workspaceId - The ID of the workspace.
649
+ * @returns A promise that resolves when the operation is complete.
650
+ */
651
+ deleteAllUntypedData(workspaceId: string): Promise<void>;
652
+ /**
653
+ * Updates specific untyped data in the specified workspace.
654
+ * @param workspaceId - The ID of the workspace.
655
+ * @param id - The ID of the untyped data to update.
656
+ * @param data - The updated data.
657
+ * @returns A promise that resolves to the updated untyped data.
658
+ */
659
+ updateUntypedData(workspaceId: string, id: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
660
+ /**
661
+ * Deletes specific untyped data in the specified workspace.
662
+ * @param workspaceId - The ID of the workspace.
663
+ * @param id - The ID of the untyped data to delete.
664
+ * @returns A promise that resolves when the operation is complete.
665
+ */
666
+ deleteUntypedData(workspaceId: string, id: string): Promise<void>;
626
667
  getPageRedirects(designSystemId: string): Promise<{
627
668
  path: string;
628
669
  id: string;
@@ -1,4 +1,5 @@
1
- import { DTODesignElementsDataDiffResponse, DTODesignSystem, DTODesignSystemContactsResponse, DTODesignSystemMemberListResponse, DTODesignSystemVersionStats, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTOFigmaNode, DTOFigmaNodeV2, DTOGetDocumentationPageAnchorsResponse, DTOPipeline, DTOTokenCollection } from "@supernova-studio/client";
1
+ import { DTODesignElementsDataDiffResponse, DTODesignSystem, DTODesignSystemContactsResponse, DTODesignSystemMemberListResponse, DTODesignSystemVersionStats, DTODocumentationAnalyticsTimeFrame, DTODocumentationLinkPreviewRequest, DTOFigmaNode, DTOFigmaNodeV2, DTOGetDocumentationPageAnchorsResponse, DTOPipeline, DTOTokenCollection, DTOWorkspaceUntypedDataListResponse } from "@supernova-studio/client";
2
+ import { DocumentationLegacyGroupModel } from "../../../exports";
2
3
  import { AclRemoteModel } from "../../../model/acl/SDKAcl";
3
4
  import { BootstrapDataRemoteModel } from "../../../model/base/SDKBootstrapData";
4
5
  import { BrandRemoteModel } from "../../../model/base/SDKBrand";
@@ -143,27 +144,16 @@ export declare class DataCoreReadRequests {
143
144
  /** Remote: Get information about design system's members */
144
145
  getRemoteDesignSystemMemberList(designSystemId: string): Promise<DTODesignSystemMemberListResponse>;
145
146
  getRemoteContacts(designSystemId: string): Promise<DTODesignSystemContactsResponse>;
146
- getStorybookEntries(designSystemId: string, versionId: string): Promise<{
147
- id: string;
148
- url: string;
149
- createdAt: Date;
150
- updatedAt: Date;
151
- sourceId: string;
152
- designSystemId: string;
153
- storyId: string;
154
- origin: {
155
- type: "docs" | "story";
156
- name: string;
157
- id: string;
158
- title: string;
159
- };
160
- aliases?: string[] | undefined;
161
- isDeleted?: boolean | undefined;
162
- }[]>;
147
+ getStorybookEntries(designSystemId: string, versionId: string): Promise<any>;
163
148
  /** Remote: Get design system documentation url */
164
149
  getRemoteDocumentationUrl(designSystemId: string, versionId: string): Promise<string | null>;
165
150
  /** Remote: Get documentation metadata */
166
151
  getRemoteDocumentationStructure(designSystemId: string, versionId: string): Promise<DocumentationLegacyModel>;
152
+ /** Remote: Get documentation metadata */
153
+ getRemoteDocumentationFullLegacyModel(designSystemId: string, versionId: string): Promise<{
154
+ pages: Array<DocumentationLegacyPageModel>;
155
+ groups: Array<DocumentationLegacyGroupModel>;
156
+ }>;
167
157
  /** Remote: Get documentation elements diff */
168
158
  getRemoteDocumentationElementsDiff(designSystemId: string, versionId: string, environment: DocumentationEnvironment): Promise<DTODesignElementsDataDiffResponse>;
169
159
  /** Remote: Get documentation metadata */
@@ -349,4 +339,10 @@ export declare class DataCoreReadRequests {
349
339
  designSystemId: string;
350
340
  pagePersistentId: string;
351
341
  }[]>;
342
+ /**
343
+ * Fetches all untyped data for a given workspace.
344
+ * @param workspaceId - The ID of the workspace.
345
+ * @returns A promise that resolves to the list of untyped data.
346
+ */
347
+ getRemoteUntypedDataList(workspaceId: string): Promise<DTOWorkspaceUntypedDataListResponse>;
352
348
  }
@@ -1,4 +1,4 @@
1
- import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFigmaNode, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOPublishDocumentationRequest, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2 } from "@supernova-studio/client";
1
+ import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODesignSystem, DTODocumentationPageApprovalStateChangeInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOElementActionInput, DTOElementPropertyValuesEditActionInput, DTOExporterPropertyValueMap, DTOFigmaNode, DTOFigmaNodeRenderIdInput, DTOFigmaNodeRenderInput, DTOFigmaNodeV2, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOPageRedirectCreateBody, DTOPageRedirectUpdateBody, DTOPipelineCreateBody, DTOPipelineUpdateBody, DTOPublishDocumentationRequest, DTORestoreDocumentationGroupInput, DTORestoreDocumentationPageInput, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTOWorkspaceUntypedDataResponse } from "@supernova-studio/client";
2
2
  import { DesignSystemInvite, DesignSystemInviteUpdate, DesignSystemMemberUpdate, DesignSystemPendingMemberInvite, DesignSystemUserInvitation } from "@supernova-studio/model";
3
3
  import { DesignSystemAccessMode, ExporterJobDestination, TokenThemeOverrideTranserObject, UserRole } from "../../../exports";
4
4
  import { Brand, BrandRemoteModel, BrandUpdateModel } from "../../../model/base/SDKBrand";
@@ -722,4 +722,8 @@ export declare class DataCoreWriteRequests {
722
722
  createPageRedirect(designSystemId: string, body: DTOPageRedirectCreateBody): Promise<void>;
723
723
  updatePageRedirect(designSystemId: string, redirectId: string, body: DTOPageRedirectUpdateBody): Promise<void>;
724
724
  deletePageRedirect(designSystemId: string, redirectId: string): Promise<void>;
725
+ createRemoteUntypedData(workspaceId: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
726
+ deleteRemoteAllUntypedData(workspaceId: string): Promise<void>;
727
+ updateRemoteUntypedData(workspaceId: string, id: string, data: any): Promise<DTOWorkspaceUntypedDataResponse>;
728
+ deleteRemoteUntypedData(workspaceId: string, id: string): Promise<void>;
725
729
  }
@@ -332,3 +332,4 @@ export type { ElementPropertyRemoteModel } from "./model/elements/SDKElementProp
332
332
  export type { ElementPropertyValueRemoteModel } from "./model/elements/values/SDKElementPropertyValue";
333
333
  export type { ElementDataViewRemoteModel } from "./model/elements/SDKElementDataView";
334
334
  export { RawUtils } from "./utils/RawUtils";
335
+ export { StorybookEntry } from "./model/storybook/SDKStorybookEntry";
@@ -0,0 +1,39 @@
1
+ export type SDKProjectRemoteModel = {
2
+ id: string;
3
+ name: string;
4
+ createdAt: string;
5
+ contextId: string;
6
+ };
7
+ export type SDKProjectTransportModel = {
8
+ id: string;
9
+ name: string;
10
+ createdAt: string;
11
+ contextId: string;
12
+ };
13
+ export declare class SDKProject {
14
+ /** Unique identifier of the project */
15
+ id: string;
16
+ /** Name of the project */
17
+ name: string;
18
+ /** Date and time when the project was created */
19
+ createdAt: Date;
20
+ /** Unique identifier of the project context */
21
+ contextId: string;
22
+ constructor(model: SDKProjectRemoteModel);
23
+ /**
24
+ * Constructs a representation suitable for remote storage.
25
+ * @returns The remote model of the project.
26
+ */
27
+ toRemote(): SDKProjectRemoteModel;
28
+ /**
29
+ * Constructs a representation that can be serialized to JSON for transport.
30
+ * @returns The transport model of the project.
31
+ */
32
+ toTransport(): SDKProjectTransportModel;
33
+ /**
34
+ * Reconstructs an SDKProject instance from a transport model.
35
+ * @param model - The transport model to deserialize.
36
+ * @returns A new SDKProject instance.
37
+ */
38
+ static fromTransport(model: SDKProjectTransportModel): SDKProject;
39
+ }
@@ -0,0 +1,47 @@
1
+ export type SDKProjectContextRemoteModel = {
2
+ id: string;
3
+ name: string;
4
+ description?: string;
5
+ designSystemId: string;
6
+ dependencies: Array<string>;
7
+ npmProxyRegistry?: object;
8
+ };
9
+ export type SDKProjectContextTransportModel = {
10
+ id: string;
11
+ name: string;
12
+ description?: string;
13
+ designSystemId: string;
14
+ dependencies: Array<string>;
15
+ npmProxyRegistry?: object;
16
+ };
17
+ export interface SDKProjectContextCreationModel {
18
+ name: string;
19
+ description?: string;
20
+ designSystemId: string;
21
+ dependencies: Array<string>;
22
+ npmProxyRegistry?: object;
23
+ }
24
+ /**
25
+ * Represents a project context containing repository and technology information.
26
+ */
27
+ export declare class SDKProjectContext {
28
+ id: string;
29
+ name: string;
30
+ description: string | undefined;
31
+ designSystemId: string;
32
+ dependencies: Array<string>;
33
+ npmProxyRegistry: object | undefined;
34
+ constructor(model: SDKProjectContextRemoteModel);
35
+ /**
36
+ * Converts the context to a remote model for storage.
37
+ */
38
+ toRemote(): SDKProjectContextRemoteModel;
39
+ /**
40
+ * Converts the context to a transport model for serialization.
41
+ */
42
+ toTransport(): SDKProjectContextTransportModel;
43
+ /**
44
+ * Creates an instance from a transport model.
45
+ */
46
+ static fromTransport(model: SDKProjectContextTransportModel): SDKProjectContext;
47
+ }
@@ -0,0 +1,23 @@
1
+ import { DTOStorybookEntry } from "@supernova-studio/client";
2
+ export type RemoteStorybookEntry = Omit<DTOStorybookEntry, "createdAt" | "updatedAt"> & {
3
+ createdAt: string;
4
+ updatedAt: string;
5
+ };
6
+ export declare class StorybookEntry {
7
+ id: string;
8
+ url: string;
9
+ createdAt: Date;
10
+ updatedAt: Date;
11
+ sourceId: string;
12
+ designSystemId: string;
13
+ storyId: string;
14
+ origin: {
15
+ type: "story" | "docs";
16
+ name: string;
17
+ id: string;
18
+ title: string;
19
+ };
20
+ aliases: string[] | null;
21
+ isDeleted: boolean | null;
22
+ constructor(entry: RemoteStorybookEntry);
23
+ }