@supernova-studio/supernova-sdk-beta 1.6.43 → 1.6.46

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.
Files changed (29) hide show
  1. package/build/sdk-typescript/.eslintrc.d.cts +6 -6
  2. package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +1 -0
  3. package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +5 -0
  4. package/build/sdk-typescript/src/core/areas/SDKAreaMultiplayer.d.ts +1 -1
  5. package/build/sdk-typescript/src/core/areas/SDKAreaVersions.d.ts +5 -1
  6. package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +30 -1
  7. package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +4 -0
  8. package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +30 -8
  9. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +6 -2
  10. package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +9 -1
  11. package/build/sdk-typescript/src/exports.d.ts +2 -2
  12. package/build/sdk-typescript/src/model/base/SDKDesignSystemVersion.d.ts +45 -3
  13. package/build/sdk-typescript/src/model/support/SDKSource.d.ts +4 -1
  14. package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +2 -2
  15. package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +2 -2
  16. package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +1 -27
  17. package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +1 -27
  18. package/build/sdk-typescript/src/model/users/SDKUserProfile.d.ts +4 -2
  19. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceIntegration.d.ts +50 -15
  20. package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceIntegrationAccessToken.d.ts +12 -0
  21. package/build/sdk-typescript/src/tests/helpers.d.ts +2 -2
  22. package/build/sdk-typescript/src/tests/validators.d.ts +3 -3
  23. package/build/sdk-typescript/src/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +3 -3
  24. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +14 -2
  25. package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTThemeMerger.d.ts +6 -1
  26. package/build/sdk-typescript/src/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +1 -1
  27. package/build/supernova-sdk-typescript.js +1 -1
  28. package/build/supernova-sdk-typescript.js.map +1 -1
  29. package/package.json +112 -125
@@ -1,7 +1,7 @@
1
- declare const _extends: string[];
1
+ declare let _extends: string[];
2
2
  export { _extends as extends };
3
- export declare const root: boolean;
4
- export declare const overrides: {
3
+ export declare let root: boolean;
4
+ export declare let overrides: {
5
5
  files: string[];
6
6
  plugins: string[];
7
7
  rules: {
@@ -10,10 +10,10 @@ export declare const overrides: {
10
10
  };
11
11
  }[];
12
12
  export declare namespace parserOptions {
13
- const tsconfigRootDir: string;
14
- const project: string[];
13
+ let tsconfigRootDir: string;
14
+ let project: string[];
15
15
  }
16
- export declare const rules: {
16
+ export declare let rules: {
17
17
  "@typescript-eslint/no-unsafe-assignment": string;
18
18
  "@typescript-eslint/no-unsafe-member-access": string;
19
19
  "@typescript-eslint/unbound-method": string;
@@ -35,6 +35,7 @@ export declare class AreaDataSources {
35
35
  components: boolean;
36
36
  assets: boolean;
37
37
  documentationFrames: boolean;
38
+ isUnpublishedContentFallbackEnabled: boolean;
38
39
  };
39
40
  autoImport: SourceRemoteModelCloud["autoImportMode"];
40
41
  themeId: string | null;
@@ -166,6 +166,11 @@ export declare class AreaDocumentation {
166
166
  * @returns Room ID that can be immediately used to join the multiplayer room
167
167
  */
168
168
  getDocumentationVersionRoomId(from: RemoteWorkspaceVersionIdentifier): Promise<string>;
169
+ /** Get id of the room for a specific workspace. This rooms contains comments.
170
+ * @param from - Remote version to fetch from
171
+ * @returns Room ID that can be immediately used to join the multiplayer room
172
+ */
173
+ getDocumentationWorkspaceRoomId(from: Pick<RemoteWorkspaceVersionIdentifier, "workspaceId">): Promise<string>;
169
174
  /** Publish documentation. This queues a build on Supernova's server that will be processed by the asynchronous CI/CD pipeline.
170
175
  * You can request status of the build with associated `isPublishing` method.
171
176
  * @param to - Remote version where the build should be created
@@ -4,7 +4,7 @@ export declare class AreaMultiplayer {
4
4
  private dataCore;
5
5
  constructor(dataCore: DataCore);
6
6
  /** Return multiplayer access token for specific room. */
7
- getMultiplayerToken(room: string): Promise<{
7
+ getMultiplayerToken(room: string | undefined): Promise<{
8
8
  token: string;
9
9
  }>;
10
10
  }
@@ -1,4 +1,4 @@
1
- import { DesignSystemVersion, DesignSystemVersionCreate, DesignSystemVersionUpdateModel } from "../../model/base/SDKDesignSystemVersion";
1
+ import { DesignSystemVersion, DesignSystemVersionCreate, DesignSystemVersionCreationJob, DesignSystemVersionUpdateModel } from "../../model/base/SDKDesignSystemVersion";
2
2
  import { DataCore } from "../data/SDKDataCore";
3
3
  import { RemoteVersionIdentifier } from "./SDKRemoteIdentifiers";
4
4
  export declare class AreaVersions {
@@ -30,6 +30,10 @@ export declare class AreaVersions {
30
30
  getVersions(designSystemId: string): Promise<Array<DesignSystemVersion>>;
31
31
  /** Fetches design system version by id */
32
32
  getVersion(from: RemoteVersionIdentifier): Promise<DesignSystemVersion>;
33
+ /** Fetches version creation job */
34
+ getVersionCreationJob(designSystemId: string, jobId: string): Promise<DesignSystemVersionCreationJob>;
35
+ /** Fetches all version creation jobs */
36
+ getVersionCreationJobs(designSystemId: string): Promise<DesignSystemVersionCreationJob[]>;
33
37
  getTokenStudioData(from: RemoteVersionIdentifier): Promise<object>;
34
38
  writeTokenStudioData(from: RemoteVersionIdentifier, data: object): Promise<object>;
35
39
  }
@@ -4,7 +4,8 @@ import { Membership } from "../../model/membership/SDKMembership";
4
4
  import { UserMembership } from "../../model/users/SDKUserMembership";
5
5
  import { Workspace } from "../../model/workspaces/SDKWorkspace";
6
6
  import { WorkspaceIPWhitelistSettings, WorkspaceIPWhitelistSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceIPWhitelistSettings";
7
- import { WorkspaceIntegrations } from "../../model/workspaces/SDKWorkspaceIntegration";
7
+ import { WorkspaceIntegrationType, WorkspaceIntegrations } from "../../model/workspaces/SDKWorkspaceIntegration";
8
+ import { WorkspaceIntegrationAccessTokenPayload } from "../../model/workspaces/SDKWorkspaceIntegrationAccessToken";
8
9
  import { OAuth2IntegrationTypes, WorkspaceIntegrationOauthRequest } from "../../model/workspaces/SDKWorkspaceIntegrationOauthRequest";
9
10
  import { WorkspaceInvitation, WorkspaceInvitationUpdateModel } from "../../model/workspaces/SDKWorkspaceInvitation";
10
11
  import { WorkspaceInvoice } from "../../model/workspaces/SDKWorkspaceInvoice";
@@ -39,6 +40,34 @@ export declare class AreaWorkspaces {
39
40
  workspaceId: string;
40
41
  type: OAuth2IntegrationTypes;
41
42
  }): Promise<WorkspaceIntegrationOauthRequest>;
43
+ /** Creates a new workspace integration via PAT by workspace id and PAT input
44
+ * @param workspaceId - ID of the workspace
45
+ * @returns Workspace integrations with updated integration
46
+ */
47
+ createWorkspaceIntegrationAccessToken({ workspaceId, payload, }: {
48
+ workspaceId: string;
49
+ payload: WorkspaceIntegrationAccessTokenPayload;
50
+ }): Promise<WorkspaceIntegrations>;
51
+ /** Delete workspace integration's connection
52
+ * @param workspaceId - ID of the workspace
53
+ * @param integrationId - ID of the integration
54
+ * @param credentialId - ID of the credential
55
+ * @returns Workspace integrations with updated integration
56
+ */
57
+ deleteWorkspaceIntegrationCredential(data: {
58
+ workspaceId: string;
59
+ integrationId: string;
60
+ credentialId: string;
61
+ }): Promise<WorkspaceIntegrationType>;
62
+ /** Delete workspace integration
63
+ * @param workspaceId - ID of the workspace
64
+ * @param integrationId - ID of the integration
65
+ * @returns Workspace integrations with updated integration
66
+ */
67
+ deleteWorkspaceIntegration(data: {
68
+ workspaceId: string;
69
+ integrationId: string;
70
+ }): Promise<WorkspaceIntegrationType>;
42
71
  /** Fetches all workspaces user has access to. Use `memberships` instead if you want to also know which role the current user has in which workspace
43
72
  * @param userId - ID of the user
44
73
  * @returns All workspaces user is part of
@@ -49,7 +49,11 @@ export declare class DataBridge {
49
49
  getAclEndpoint(resource?: string): string;
50
50
  getUserEndpoint(userId: string, fragment: string | null): string;
51
51
  getWorkspaceEndpoint(wsId: string, fragment: string | null): string;
52
+ getWorkspaceIntegrationCredentialEndpoint(wsId: string, integrationId: string, credentialId: string): string;
53
+ getWorkspaceIntegrationEndpoint(wsId: string, integrationId: string): string;
52
54
  getDesignSystemEndpoint(dsId: string, fragment: string | null): string;
53
55
  getVersionEndpoint(dsId: string, dsVersionId: string, fragment: string | null): string;
56
+ getVersionCreationJobEndpoint(dsId: string, jobId: string): string;
57
+ getVersionCreationJobsEndpoint(dsId: string): string;
54
58
  }
55
59
  export {};
@@ -1,12 +1,12 @@
1
- import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTOMoveDocumentationPageInputV2, DTOMoveDocumentationGroupInput, DTOCreateDocumentationTabInput, // TODO? DTODeleteDocumentationTabGroupInput,
2
- DTOFigmaNodeRenderInput, DTOFigmaNode, DTODocumentationLinkPreviewRequest, DTODeleteDocumentationTabGroupInput, DTODocumentationPageAnchor } from "@supernova-studio/client";
3
- import { ExportBuildStatus, ResourceFont, TokenThemeOverrideTranserObject, DocsBlockDefinition } from "../../exports";
1
+ import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODocumentationLinkPreviewRequest, DTODocumentationPageAnchor, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOFigmaNode, // TODO? DTODeleteDocumentationTabGroupInput,
2
+ DTOFigmaNodeRenderInput, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2 } from "@supernova-studio/client";
3
+ import { DocsBlockDefinition, ExportBuildStatus, ResourceFont, TokenThemeOverrideTranserObject } 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";
7
7
  import { Brand, BrandUpdateModel } from "../../model/base/SDKBrand";
8
8
  import { DesignSystem, DesignSystemSwitcher } from "../../model/base/SDKDesignSystem";
9
- import { DesignSystemVersion, DesignSystemVersionCreate, DesignSystemVersionUpdateModel } from "../../model/base/SDKDesignSystemVersion";
9
+ import { DesignSystemVersion, DesignSystemVersionCreate, DesignSystemVersionCreationJob, DesignSystemVersionUpdateModel } from "../../model/base/SDKDesignSystemVersion";
10
10
  import { DocumentationLegacy, DocumentationLegacyModel } from "../../model/base/SDKDocumentationLegacy";
11
11
  import { Component } from "../../model/components/SDKComponent";
12
12
  import { DesignComponent } from "../../model/components/SDKDesignComponent";
@@ -62,8 +62,9 @@ import { UserMembership } from "../../model/users/SDKUserMembership";
62
62
  import { UserProfileUpdateModel } from "../../model/users/SDKUserProfile";
63
63
  import { Workspace } from "../../model/workspaces/SDKWorkspace";
64
64
  import { WorkspaceIPWhitelistSettings, WorkspaceIPWhitelistSettingsUpdateModel } from "../../model/workspaces/SDKWorkspaceIPWhitelistSettings";
65
- import { WorkspaceIntegrations } from "../../model/workspaces/SDKWorkspaceIntegration";
66
- import { OAuth2IntegrationTypes } from "../../model/workspaces/SDKWorkspaceIntegrationOauthRequest";
65
+ import { WorkspaceIntegrationType, WorkspaceIntegrations, WorkspaceIntegrationsRemoteModel } from "../../model/workspaces/SDKWorkspaceIntegration";
66
+ import { WorkspaceIntegrationAccessTokenPayload } from "../../model/workspaces/SDKWorkspaceIntegrationAccessToken";
67
+ import { OAuth2IntegrationTypes, WorkspaceIntegrationOauthRequestRemoteModel } from "../../model/workspaces/SDKWorkspaceIntegrationOauthRequest";
67
68
  import { WorkspaceInvitation, WorkspaceInvitationUpdateModel } from "../../model/workspaces/SDKWorkspaceInvitation";
68
69
  import { WorkspaceInvoice } from "../../model/workspaces/SDKWorkspaceInvoice";
69
70
  import { WorkspaceNPMRegistryAccessTokenRemoteModel } from "../../model/workspaces/SDKWorkspaceNPMRegistryAccessToken";
@@ -93,7 +94,7 @@ export declare class DataCore {
93
94
  fetch(url: RequestInfo, init?: RequestInit): Promise<Response>;
94
95
  dataThroughCorsProxy(urlToRalay: string): Promise<ArrayBuffer | undefined>;
95
96
  /** Remote: Get single-use multiplayer token */
96
- multiplayerToken(room: string): Promise<{
97
+ multiplayerToken(room: string | undefined): Promise<{
97
98
  token: string;
98
99
  }>;
99
100
  /** Remote: Get information about currently logged in user */
@@ -297,6 +298,8 @@ export declare class DataCore {
297
298
  getDocumentationPageRoomId(designSystemId: string, versionId: string, pageId: string): Promise<string>;
298
299
  /** Remote: Get id of the room for a specific design system and version. This room contains doc structure */
299
300
  getDocumentationVersionRoomId(designSystemId: string, versionId: string): Promise<string>;
301
+ /** Remote: Get id of the room for a specific Workspace. This room contains comments */
302
+ getDocumentationWorkspaceRoomId(workspaceId: string): Promise<string>;
300
303
  /** Retrieve currently deployed documentation url */
301
304
  documentationDomain(designSystemId: string, versionId: string): Promise<string | null>;
302
305
  /** Publish the documentation */
@@ -382,7 +385,23 @@ export declare class DataCore {
382
385
  workspaceIntegrationRedirectUrl({ workspaceId, type, }: {
383
386
  workspaceId: string;
384
387
  type: OAuth2IntegrationTypes;
385
- }): Promise<any>;
388
+ }): Promise<WorkspaceIntegrationOauthRequestRemoteModel>;
389
+ /** Creates a new credential for a workspace integration via PAT */
390
+ createWorkspaceIntegrationAccessToken({ workspaceId, payload, }: {
391
+ workspaceId: string;
392
+ payload: WorkspaceIntegrationAccessTokenPayload;
393
+ }): Promise<WorkspaceIntegrationsRemoteModel>;
394
+ /** Delete workspace credential's integration connection */
395
+ deleteWorkspaceIntegrationCredential({ workspaceId, integrationId, credentialId, }: {
396
+ workspaceId: string;
397
+ integrationId: string;
398
+ credentialId: string;
399
+ }): Promise<WorkspaceIntegrationType>;
400
+ /** Delete workspace integration */
401
+ deleteWorkspaceIntegration({ workspaceId, integrationId, }: {
402
+ workspaceId: string;
403
+ integrationId: string;
404
+ }): Promise<WorkspaceIntegrationType>;
386
405
  createWorkspace(name: string, handle?: string): Promise<Workspace>;
387
406
  createVersion(designSystemId: string, model: DesignSystemVersionUpdateModel): Promise<DesignSystemVersionCreate>;
388
407
  editVersion(designSystemId: string, versionId: string, model: DesignSystemVersionUpdateModel): Promise<void>;
@@ -477,6 +496,7 @@ export declare class DataCore {
477
496
  components: boolean;
478
497
  assets: boolean;
479
498
  documentationFrames: boolean;
499
+ isUnpublishedContentFallbackEnabled: boolean;
480
500
  };
481
501
  autoImport: SourceRemoteModelCloud["autoImportMode"];
482
502
  themeId: string | null;
@@ -494,6 +514,8 @@ export declare class DataCore {
494
514
  updateFigmaSourceClaimOwnership(designSystemId: string, sourceId: string): Promise<Source>;
495
515
  versions(designSystemId: string): Promise<Array<DesignSystemVersion>>;
496
516
  version(designSystemId: string, versionId: string): Promise<DesignSystemVersion>;
517
+ versionCreationJob(designSystemId: string, jobId: string): Promise<DesignSystemVersionCreationJob>;
518
+ versionCreationJobs(designSystemId: string): Promise<DesignSystemVersionCreationJob[]>;
497
519
  getBrands(designSystemId: string, versionId: string): Promise<Array<Brand>>;
498
520
  getBrand(designSystemId: string, versionId: string, brandId: string): Promise<Brand>;
499
521
  getAuthenticationTokens(): Promise<import("../../model/exporters/SDKConnections").AuthenticationTokens>;
@@ -2,7 +2,7 @@ import { DTODocumentationLinkPreviewRequest, DTOFigmaNode, DTOGetDocumentationPa
2
2
  import { AclRemoteModel } from "../../../model/acl/SDKAcl";
3
3
  import { BrandRemoteModel } from "../../../model/base/SDKBrand";
4
4
  import { DesignSystemRemoteModel } from "../../../model/base/SDKDesignSystem";
5
- import { DesignSystemVersionRemoteModel } from "../../../model/base/SDKDesignSystemVersion";
5
+ import { DesignSystemVersionCreationJobRemoteModel, DesignSystemVersionRemoteModel } from "../../../model/base/SDKDesignSystemVersion";
6
6
  import { DocumentationLegacyModel } from "../../../model/base/SDKDocumentationLegacy";
7
7
  import { ComponentRemoteModel } from "../../../model/components/SDKComponent";
8
8
  import { DesignComponentRemoteModel } from "../../../model/components/SDKDesignComponent";
@@ -70,7 +70,7 @@ export declare class DataCoreReadRequests {
70
70
  constructor(bridge: DataBridge);
71
71
  getDataThroughCorsProxy(url: string): Promise<ArrayBuffer | undefined>;
72
72
  /** Remote: Get information about currently logged in user */
73
- getRemoteMultiplayerToken(room: string): Promise<{
73
+ getRemoteMultiplayerToken(room: string | undefined): Promise<{
74
74
  token: string;
75
75
  }>;
76
76
  /** Remote: Get information about currently logged in user */
@@ -129,6 +129,8 @@ export declare class DataCoreReadRequests {
129
129
  getRemoteDocumentationPageRoomId(designSystemId: string, versionId: string, pageId: string): Promise<string>;
130
130
  /** Remote: Get id of the room for a specific design system and version. This room contains doc structure */
131
131
  getRemoteDocumentationVersionRoomId(designSystemId: string, versionId: string): Promise<string>;
132
+ /** Remote: Get id of the room for a specific workspace. */
133
+ getRemoteDocumentationWorkspaceRoomId(workspaceId: string): Promise<string>;
132
134
  getRemoteDocumentationPageAnchors(designSystemId: string, versionId: string, pageId: string): Promise<DTOGetDocumentationPageAnchorsResponse>;
133
135
  /** Remote: Get custom blocks for currently installed documentation exporter under specific ds */
134
136
  getRemoteExporterCustomBlocks(designSystemId: string, versionId: string): Promise<Array<ExporterCustomBlockModel>>;
@@ -234,6 +236,8 @@ export declare class DataCoreReadRequests {
234
236
  getOAuthURL(service: "figma" | ExporterProvider): Promise<string>;
235
237
  getVersion(designSystemId: string, versionId: string): Promise<DesignSystemVersionRemoteModel>;
236
238
  getVersions(designSystemId: string): Promise<Array<DesignSystemVersionRemoteModel>>;
239
+ getVersionCreationJob(designSystemId: string, jobId: string): Promise<DesignSystemVersionCreationJobRemoteModel>;
240
+ getVersionCreationJobs(designSystemId: string): Promise<DesignSystemVersionCreationJobRemoteModel[]>;
237
241
  getImportJobs(designSystemId: string, versionId: string): Promise<Array<ImportJobRemoteModel>>;
238
242
  getImportJob(designSystemId: string, versionId: string, jobId: string): Promise<ImportJobRemoteModel>;
239
243
  getKeyValueStorageData(designSystemId: string, keys: Array<string>): Promise<Record<string, string>>;
@@ -1,4 +1,4 @@
1
- import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOUpdateDocumentationGroupInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTOUpdateDocumentationPageInputV2, DTOMoveDocumentationPageInputV2, DTOMoveDocumentationGroupInput, DTOCreateDocumentationTabInput, DTOFigmaNodeRenderInput, DTOFigmaNode } from "@supernova-studio/client";
1
+ import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOCreateDocumentationTabInput, DTODeleteDocumentationGroupInput, DTODeleteDocumentationPageInputV2, DTODeleteDocumentationTabGroupInput, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTOFigmaNode, DTOFigmaNodeRenderInput, DTOMoveDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2 } from "@supernova-studio/client";
2
2
  import { TokenThemeOverrideTranserObject } from "../../../exports";
3
3
  import { Brand, BrandRemoteModel, BrandUpdateModel } from "../../../model/base/SDKBrand";
4
4
  import { DesignSystem, DesignSystemRemoteModel, DesignSystemSwitcher } from "../../../model/base/SDKDesignSystem";
@@ -28,6 +28,8 @@ import { TokenRemoteModel } from "../../../model/tokens/remote/SDKRemoteTokenMod
28
28
  import { UserProfileUpdateModel } from "../../../model/users/SDKUserProfile";
29
29
  import { WorkspaceRemoteModel } from "../../../model/workspaces/SDKWorkspace";
30
30
  import { WorkspaceIPWhitelistSettingsUpdateModel } from "../../../model/workspaces/SDKWorkspaceIPWhitelistSettings";
31
+ import { WorkspaceIntegrationType, WorkspaceIntegrationsRemoteModel } from "../../../model/workspaces/SDKWorkspaceIntegration";
32
+ import { WorkspaceIntegrationAccessTokenPayload } from "../../../model/workspaces/SDKWorkspaceIntegrationAccessToken";
31
33
  import { WorkspaceInvitationUpdateModel } from "../../../model/workspaces/SDKWorkspaceInvitation";
32
34
  import { WorkspaceNPMRegistrySettingsUpdateModel } from "../../../model/workspaces/SDKWorkspaceNPMRegistrySettings";
33
35
  import { WorkspaceOnboardingUpdateModel } from "../../../model/workspaces/SDKWorkspaceOnboarding";
@@ -206,6 +208,12 @@ export declare class DataCoreWriteRequests {
206
208
  deleteAuthenticationToken(id: string): Promise<AuthenticationTokenPayload>;
207
209
  /** Remote: Create Personal Access token connection */
208
210
  createPersonalAccessTokenConnection(service: ConnectionProviders, connection: PersonalAccessTokenConnectionPayload | AzurePersonalAccessTokenConnectionPayload): Promise<ConnectionRemoteModel>;
211
+ /** Remote: Create Personal Access token credential for a workspace integration */
212
+ createRemoteWorkspaceIntegrationAccessToken(workspaceId: string, data: WorkspaceIntegrationAccessTokenPayload): Promise<WorkspaceIntegrationsRemoteModel>;
213
+ /** Remote: Delete credential integration connection from workspace */
214
+ deleteRemoteWorkspaceIntegrationCredential(workspaceId: string, integrationId: string, credentialId: string): Promise<WorkspaceIntegrationType>;
215
+ /** Remote: Delete a workspace integration */
216
+ deleteRemoteWorkspaceIntegration(workspaceId: string, integrationId: string): Promise<WorkspaceIntegrationType>;
209
217
  /** Remote: Create pipeline */
210
218
  createRemotePipeline(workspaceId: string, pipeline: NewPipelinePayload): Promise<any>;
211
219
  /** Remote: Create pipeline */
@@ -35,7 +35,7 @@ export { Brand } from "./model/base/SDKBrand";
35
35
  export type { BrandUpdateModel } from "./model/base/SDKBrand";
36
36
  export { DesignSystem } from "./model/base/SDKDesignSystem";
37
37
  export { DesignSystemVersion } from "./model/base/SDKDesignSystemVersion";
38
- export type { DesignSystemVersionUpdateModel } from "./model/base/SDKDesignSystemVersion";
38
+ export type { DesignSystemVersionCreate, DesignSystemVersionUpdateModel, DesignSystemVersionCreationJob, } from "./model/base/SDKDesignSystemVersion";
39
39
  export { Membership } from "./model/membership/SDKMembership";
40
40
  export { Exporter, type NewExporterPayload, type ExporterProvider, } from "./model/exporters/SDKExporter";
41
41
  export { Pipeline } from "./model/exporters/SDKPipeline";
@@ -274,7 +274,7 @@ export { TokenJSONBuilder, JSONBuilderNamingOption, } from "./tools/json-builder
274
274
  export type { DTProcessedTokenNode } from "./tools/design-tokens/utilities/SDKDTJSONConverter";
275
275
  export type { DTTokenMergeDiff } from "./tools/design-tokens/utilities/SDKDTTokenMerger";
276
276
  export { DTPluginToSupernovaMapType } from "./tools/design-tokens/utilities/SDKDTMapLoader";
277
- export type { DTPluginToSupernovaMap, DTPluginToSupernovaMappingFile, DTPluginToSupernovaMapPack, DTPluginToSupernovaSettings, } from "./tools/design-tokens/utilities/SDKDTMapLoader";
277
+ export type { DTPluginToSupernovaMap, DTPluginToSupernovaMappingFile, DTPluginToSupernovaMapPack, DTPluginToSupernovaSettings, DTPluginThemeOverrideStrategy, DTPluginPreciseCopyStrategy } from "./tools/design-tokens/utilities/SDKDTMapLoader";
278
278
  export { SupernovaToolsDesignTokensPlugin } from "./tools/design-tokens/SDKToolsDesignTokensPlugin";
279
279
  export type { SupernovaToolsDesignTokensResult } from "./tools/design-tokens/SDKToolsDesignTokensPlugin";
280
280
  export { DocSearch, DocSearchResultDataType, } from "./tools/search-index/SDKToolsDocSearch";
@@ -10,7 +10,18 @@ export type DesignSystemVersionRemoteModel = {
10
10
  createdAt: string;
11
11
  changeLog: string;
12
12
  };
13
- export type DesignSystemVersionCreateRemoteModel = Omit<DesignSystemVersionRemoteModel, "id" | "createdAt">;
13
+ export type DesignSystemVersionCreateRemoteModel = Omit<DesignSystemVersionRemoteModel, "id" | "createdAt"> & {
14
+ jobId: string;
15
+ };
16
+ type DesignSystemVersionCreationJobStatus = "Success" | "Error" | "InProgress";
17
+ export type DesignSystemVersionCreationJobRemoteModel = {
18
+ id: string;
19
+ version: string;
20
+ designSystemId: string;
21
+ designSystemVersionId?: string;
22
+ status: DesignSystemVersionCreationJobStatus;
23
+ message?: string;
24
+ };
14
25
  export type DesignSystemVersionUpdateModel = {
15
26
  version: string;
16
27
  name?: string;
@@ -20,7 +31,9 @@ export type DesignSystemVersionUpdateModel = {
20
31
  export type DesignSystemVersionTransportModel = Pick<DesignSystemVersion, "id" | "designSystemId" | "isReadonly" | "name" | "description" | "version" | "changeLog"> & {
21
32
  createdAt: string;
22
33
  };
23
- export type DesignSystemVersionCreateTransportModel = Pick<DesignSystemVersion, "designSystemId" | "isReadonly" | "name" | "description" | "version" | "changeLog">;
34
+ export type DesignSystemVersionCreateTransportModel = Pick<DesignSystemVersion, "designSystemId" | "isReadonly" | "name" | "description" | "version" | "changeLog"> & {
35
+ jobId: string;
36
+ };
24
37
  export declare class DesignSystemVersionCreate {
25
38
  /** Identifier of design system this version is created in */
26
39
  designSystemId: string;
@@ -34,6 +47,8 @@ export declare class DesignSystemVersionCreate {
34
47
  version: string | null;
35
48
  /** Change log for the version. Will be null if the version is in draft mode */
36
49
  changeLog: string | null;
50
+ /** ID of job creation. */
51
+ jobId: string;
37
52
  constructor(model: DesignSystemVersionCreateRemoteModel);
38
53
  /** Constructs representation that can be used to write full object to remote */
39
54
  toRemote(): DesignSystemVersionCreateRemoteModel;
@@ -42,9 +57,21 @@ export declare class DesignSystemVersionCreate {
42
57
  /** Reconstructs class from the transport model */
43
58
  static fromTransport(model: DesignSystemVersionCreateTransportModel): DesignSystemVersionCreate;
44
59
  }
45
- export declare class DesignSystemVersion extends DesignSystemVersionCreate {
60
+ export declare class DesignSystemVersion {
46
61
  /** Unique identifier of design system version */
47
62
  id: string;
63
+ /** Identifier of design system this version is created in */
64
+ designSystemId: string;
65
+ /** Design system version name */
66
+ name: string;
67
+ /** Design system version description */
68
+ description: string;
69
+ /** If version is in read-only mode, it can't be modified - only documentation that can be improved */
70
+ isReadonly: boolean;
71
+ /** Semantic name of version. Will be null if the version is in draft mode */
72
+ version: string | null;
73
+ /** Change log for the version. Will be null if the version is in draft mode */
74
+ changeLog: string | null;
48
75
  /** The initial date of the creation of this version */
49
76
  createdAt: Date;
50
77
  constructor(model: DesignSystemVersionRemoteModel);
@@ -55,3 +82,18 @@ export declare class DesignSystemVersion extends DesignSystemVersionCreate {
55
82
  /** Reconstructs class from the transport model */
56
83
  static fromTransport(model: DesignSystemVersionTransportModel): DesignSystemVersion;
57
84
  }
85
+ export declare class DesignSystemVersionCreationJob {
86
+ id: string;
87
+ /** Semantic name of version. */
88
+ version: string;
89
+ /** Identifier of design system this version is created in */
90
+ designSystemId: string;
91
+ /** Identifier of version in design system. Filled only when status is equal to Success */
92
+ designSystemVersionId: string | null;
93
+ /** Status of current job */
94
+ status: DesignSystemVersionCreationJobStatus;
95
+ /** Mesage if job failed. Otherwise null */
96
+ message: string | null;
97
+ constructor(model: DesignSystemVersionCreationJobRemoteModel);
98
+ }
99
+ export {};
@@ -1,3 +1,4 @@
1
+ import { DTPluginPreciseCopyStrategy, DTPluginThemeOverrideStrategy } from "../../tools/design-tokens/utilities/SDKDTMapLoader";
1
2
  import { ImportWarningType } from "../enums/SDKCloudWarningType";
2
3
  import { SourceType } from "../enums/SDKSourceType";
3
4
  declare enum SourceRemoteType {
@@ -25,6 +26,7 @@ export type SourceScope = {
25
26
  components: boolean;
26
27
  assets: boolean;
27
28
  documentationFrames: boolean;
29
+ isUnpublishedContentFallbackEnabled: boolean;
28
30
  };
29
31
  export type SourceRemoteModelCloud = {
30
32
  fileId?: string;
@@ -88,7 +90,8 @@ export type SourceRemoteModelTokensStudio = {
88
90
  settings?: {
89
91
  dryRun?: boolean;
90
92
  verbose?: boolean;
91
- preciseCopy?: boolean;
93
+ preciseCopy?: boolean | DTPluginPreciseCopyStrategy;
94
+ themeOverridesStrategy?: DTPluginThemeOverrideStrategy;
92
95
  };
93
96
  lastImportedResults?: Array<{
94
97
  mapping: {
@@ -47,9 +47,9 @@ export declare class TokenTheme {
47
47
  value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
48
48
  } | {
49
49
  aliasTo: string | undefined;
50
- value: string;
50
+ value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
51
51
  } | {
52
52
  aliasTo: string | undefined;
53
- value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
53
+ value: string;
54
54
  };
55
55
  }
@@ -38,9 +38,9 @@ export declare class TokenThemeOverride {
38
38
  value: import("../tokens/remote/SDKRemoteTokenValue").AnyDimensionTokenRemoteValue;
39
39
  } | {
40
40
  aliasTo: string | undefined;
41
- value: string;
41
+ value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
42
42
  } | {
43
43
  aliasTo: string | undefined;
44
- value: import("../tokens/remote/SDKRemoteTokenValue").TypographyTokenRemoteValue;
44
+ value: string;
45
45
  };
46
46
  }
@@ -75,30 +75,4 @@ export declare class ZIndexToken extends DimensionCategoryToken<ZIndexTokenValue
75
75
  tokenType: TokenType.zIndex;
76
76
  }
77
77
  export type AnyDimensionToken = DimensionToken | SizeToken | SpaceToken | OpacityToken | FontSizeToken | LineHeightToken | LetterSpacingToken | ParagraphSpacingToken | BorderWidthToken | RadiusToken | DurationToken | ZIndexToken;
78
- export declare const resolveDimension: <TK extends TokenType.radius | TokenType.borderWidth | TokenType.duration | TokenType.fontSize | TokenType.dimension | TokenType.letterSpacing | TokenType.lineHeight | TokenType.opacity | TokenType.paragraphSpacing | TokenType.size | TokenType.space | TokenType.zIndex>(type: TK) => {
79
- Color: typeof import("./SDKColorToken").ColorToken;
80
- Typography: typeof import("./SDKTypographyToken").TypographyToken;
81
- Blur: typeof import("./SDKBlurToken").BlurToken;
82
- Border: typeof import("./SDKBorderToken").BorderToken;
83
- Shadow: typeof import("./SDKShadowToken").ShadowToken;
84
- Gradient: typeof import("./SDKGradientToken").GradientToken;
85
- String: typeof import("./SDKStringToken").StringToken;
86
- ProductCopy: typeof import("./SDKStringToken").ProductCopyToken;
87
- FontFamily: typeof import("./SDKStringToken").FontFamilyToken;
88
- FontWeight: typeof import("./SDKStringToken").FontWeightToken;
89
- TextCase: typeof import("./SDKTextCaseToken").TextCaseToken;
90
- TextDecoration: typeof import("./SDKTextDecorationToken").TextDecorationToken;
91
- Visibility: typeof import("./SDKVisibilityToken").VisibilityToken;
92
- BorderWidth: typeof BorderWidthToken;
93
- Dimension: typeof DimensionToken;
94
- Size: typeof SizeToken;
95
- Space: typeof SpaceToken;
96
- Opacity: typeof OpacityToken;
97
- FontSize: typeof FontSizeToken;
98
- LineHeight: typeof LineHeightToken;
99
- LetterSpacing: typeof LetterSpacingToken;
100
- ParagraphSpacing: typeof ParagraphSpacingToken;
101
- BorderRadius: typeof RadiusToken;
102
- Duration: typeof DurationToken;
103
- ZIndex: typeof ZIndexToken;
104
- }[TK];
78
+ export declare const resolveDimension: <TK extends TokenType.radius | TokenType.borderWidth | TokenType.duration | TokenType.fontSize | TokenType.dimension | TokenType.letterSpacing | TokenType.lineHeight | TokenType.opacity | TokenType.paragraphSpacing | TokenType.size | TokenType.space | TokenType.zIndex>(type: TK) => TokenClassTypeMapToken[TK];
@@ -32,30 +32,4 @@ export declare class FontWeightToken extends StringCategoryToken<FontWeightToken
32
32
  tokenType: TokenType.fontWeight;
33
33
  }
34
34
  export type AnyStringToken = StringToken | ProductCopyToken | FontFamilyToken | FontWeightToken;
35
- export declare const resolveString: <TK extends TokenType.fontFamily | TokenType.fontWeight | TokenType.string | TokenType.productCopy>(type: TK) => {
36
- Color: typeof import("./SDKColorToken").ColorToken;
37
- Typography: typeof import("./SDKTypographyToken").TypographyToken;
38
- Blur: typeof import("./SDKBlurToken").BlurToken;
39
- Border: typeof import("./SDKBorderToken").BorderToken;
40
- Shadow: typeof import("./SDKShadowToken").ShadowToken;
41
- Gradient: typeof import("./SDKGradientToken").GradientToken;
42
- String: typeof StringToken;
43
- ProductCopy: typeof ProductCopyToken;
44
- FontFamily: typeof FontFamilyToken;
45
- FontWeight: typeof FontWeightToken;
46
- TextCase: typeof import("./SDKTextCaseToken").TextCaseToken;
47
- TextDecoration: typeof import("./SDKTextDecorationToken").TextDecorationToken;
48
- Visibility: typeof import("./SDKVisibilityToken").VisibilityToken;
49
- BorderWidth: typeof import("./SDKDimensionToken").BorderWidthToken;
50
- Dimension: typeof import("./SDKDimensionToken").DimensionToken;
51
- Size: typeof import("./SDKDimensionToken").SizeToken;
52
- Space: typeof import("./SDKDimensionToken").SpaceToken;
53
- Opacity: typeof import("./SDKDimensionToken").OpacityToken;
54
- FontSize: typeof import("./SDKDimensionToken").FontSizeToken;
55
- LineHeight: typeof import("./SDKDimensionToken").LineHeightToken;
56
- LetterSpacing: typeof import("./SDKDimensionToken").LetterSpacingToken;
57
- ParagraphSpacing: typeof import("./SDKDimensionToken").ParagraphSpacingToken;
58
- BorderRadius: typeof import("./SDKDimensionToken").RadiusToken;
59
- Duration: typeof import("./SDKDimensionToken").DurationToken;
60
- ZIndex: typeof import("./SDKDimensionToken").ZIndexToken;
61
- }[TK];
35
+ export declare const resolveString: <TK extends TokenType.fontFamily | TokenType.fontWeight | TokenType.string | TokenType.productCopy>(type: TK) => TokenClassTypeMapToken[TK];
@@ -1,5 +1,7 @@
1
- export type UserOnboardingDepartmentType = "Design" | "Engineering" | "Brand" | "Other";
2
- export type UserOnboardingJobLevelType = "Executive" | "Manager" | "IndividualContributor" | "Other";
1
+ export type UserOnboardingDepartmentType = (typeof UserOnboardingDepartmentTypes)[number];
2
+ export declare const UserOnboardingDepartmentTypes: readonly ["Design", "Product", "Engineering", "Brand", "Other"];
3
+ export type UserOnboardingJobLevelType = (typeof UserOnboardingJobLevelTypes)[number];
4
+ export declare const UserOnboardingJobLevelTypes: readonly ["Executive", "Manager", "IndividualContributor", "Other"];
3
5
  export type UserProfileRemoteModel = {
4
6
  name?: string;
5
7
  nickname?: string;
@@ -1,40 +1,75 @@
1
+ import { OAuth2IntegrationTypes } from "./SDKWorkspaceIntegrationOauthRequest";
1
2
  export type WorkspaceIntegrationsRemoteModel = {
2
- integrations: Array<WorkspaceIntegration>;
3
+ integrations: Array<WorkspaceIntegrationType>;
3
4
  };
4
5
  export type WorkspaceLinkedIntegrations = {
5
- Figma?: WorkspaceIntegration[];
6
- FigmaVariables?: WorkspaceIntegration[];
7
- Github?: WorkspaceIntegration[];
8
- TokensStudio?: WorkspaceIntegration[];
9
- Gitlab?: WorkspaceIntegration[];
10
- Azure?: WorkspaceIntegration[];
11
- Bitbucket?: WorkspaceIntegration[];
6
+ Figma?: WorkspaceIntegrationType[];
7
+ FigmaVariablesPlugin?: WorkspaceIntegrationType[];
8
+ Github?: WorkspaceIntegrationType[];
9
+ TokenStudio?: WorkspaceIntegrationType[];
10
+ Gitlab?: WorkspaceIntegrationType[];
11
+ Azure?: WorkspaceIntegrationType[];
12
+ Bitbucket?: WorkspaceIntegrationType[];
12
13
  };
13
14
  type WorkspaceIntegrationCredentialProfile = {
14
15
  avatarUrl: string;
15
16
  id: string;
16
- username: string;
17
+ handle: string;
18
+ email: string;
19
+ };
20
+ type WorkspaceIntegrationUser = {
21
+ id: string;
22
+ email: string;
23
+ name: string;
24
+ avatar?: string;
17
25
  };
18
26
  type WorkspaceIntegrationCredential = {
19
- id: number;
27
+ id: string;
20
28
  integrationId: number;
21
- userId: number;
29
+ userId: string;
22
30
  createdAt: string;
23
31
  accessToken: string;
24
32
  refreshToken: string;
25
- type: "Oauth2" | "PAT" | "GithubApp";
33
+ type: "OAuth2" | "PAT" | "GithubApp";
34
+ tokenName?: string;
26
35
  profile: WorkspaceIntegrationCredentialProfile;
36
+ user: WorkspaceIntegrationUser;
27
37
  };
28
- export type WorkspaceIntegration = {
38
+ type WorkspaceIntegrationDesignSystem = {
39
+ brandId: string;
40
+ designSystemId: string;
41
+ date: string;
42
+ title?: string;
43
+ user: WorkspaceIntegrationUser;
44
+ };
45
+ export type WorkspaceIntegrationType = {
29
46
  id: string;
30
47
  createdAt: string;
31
48
  type: keyof WorkspaceLinkedIntegrations;
32
49
  workspaceId: string;
33
- integrationCredentials: Array<WorkspaceIntegrationCredential>;
50
+ integrationCredentials?: Array<WorkspaceIntegrationCredential>;
51
+ integrationDesignSystems?: Array<WorkspaceIntegrationDesignSystem>;
52
+ };
53
+ export type WorkspaceIntegrationTypeOnlyCredentials = Omit<WorkspaceIntegrationType, "integrationDesignSystems"> & {
54
+ type: OAuth2IntegrationTypes;
55
+ };
56
+ export type WorkspaceIntegrationTypeOnlyDesignSystems = Omit<WorkspaceIntegrationType, "integrationCredentials"> & {
57
+ type: keyof Pick<WorkspaceLinkedIntegrations, "FigmaVariablesPlugin" | "TokenStudio">;
34
58
  };
59
+ export type WorkspaceIntegrationCredentialType = NonNullable<WorkspaceIntegrationType["integrationCredentials"]>[0];
60
+ export type WorkspaceIntegrationDesignType = NonNullable<WorkspaceIntegrationType["integrationDesignSystems"]>[0];
61
+ export declare class WorkspaceIntegration implements WorkspaceIntegrationType {
62
+ id: string;
63
+ createdAt: string;
64
+ type: keyof WorkspaceLinkedIntegrations;
65
+ workspaceId: string;
66
+ integrationCredentials?: Array<WorkspaceIntegrationCredential>;
67
+ integrationDesignSystems?: Array<WorkspaceIntegrationDesignSystem>;
68
+ constructor(model: WorkspaceIntegrationType);
69
+ }
35
70
  export declare class WorkspaceIntegrations {
36
71
  /** List of integrations of the workspace */
37
- integrations: Array<WorkspaceIntegration>;
72
+ integrations: Array<WorkspaceIntegrationType>;
38
73
  constructor(model: WorkspaceIntegrationsRemoteModel);
39
74
  }
40
75
  export {};
@@ -0,0 +1,12 @@
1
+ export type AccessTokenIntegrationTypes = "Github" | "Gitlab" | "Bitbucket" | "Azure";
2
+ export type WorkspaceIntegrationAccessTokenPayload = {
3
+ userId: string;
4
+ type: AccessTokenIntegrationTypes;
5
+ token: {
6
+ token_name: string;
7
+ access_token: string;
8
+ custom_url?: string;
9
+ token_bitbucket_username?: string;
10
+ token_azure_organization_name?: string;
11
+ };
12
+ };