@supernova-studio/supernova-sdk-beta 2.2.7 → 2.2.12
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/README.md +8 -12
- package/build/sdk-typescript/src/core/SDKSupernova.d.ts +11 -5
- package/build/sdk-typescript/src/core/areas/SDKAreaDataSources.d.ts +12 -14
- package/build/sdk-typescript/src/core/areas/SDKAreaDocumentation.d.ts +3 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaMe.d.ts +3 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaMessaging.d.ts +60 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaProjects.d.ts +2093 -64
- package/build/sdk-typescript/src/core/areas/SDKAreaRawData.d.ts +2020 -7
- package/build/sdk-typescript/src/core/areas/SDKAreaRelay.d.ts +61 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaResources.d.ts +83 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaThreads.d.ts +81 -0
- package/build/sdk-typescript/src/core/areas/SDKAreaTokens.d.ts +3 -1
- package/build/sdk-typescript/src/core/areas/SDKAreaWorkspaces.d.ts +64 -44
- package/build/sdk-typescript/src/core/data/SDKDataBridge.d.ts +1 -1
- package/build/sdk-typescript/src/core/data/SDKDataCore.d.ts +2302 -92
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreAIRequests.d.ts +19 -27
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreReadRequests.d.ts +1047 -42
- package/build/sdk-typescript/src/core/data/requests/SDKDataCoreWriteRequests.d.ts +2162 -34
- package/build/sdk-typescript/src/core/resolvers/SDKDocsEntityItemResolver.d.ts +9 -9
- package/build/sdk-typescript/src/exports-pulsar.d.ts +0 -2
- package/build/sdk-typescript/src/exports.d.ts +37 -6
- package/build/sdk-typescript/src/model/base/SDKDesignSystemVersionStats.d.ts +1 -0
- package/build/sdk-typescript/src/model/components/SDKDesignComponentBase.d.ts +1 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/do-dont-guidelines/SDKDocsBlockActualDoDontGuidelines.d.ts +18 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed/SDKDocsBlockActualEmbed.d.ts +10 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-figma/SDKDocsBlockActualEmbedFigma.d.ts +10 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/embed-youtube/SDKDocsBlockActualEmbedYoutube.d.ts +10 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/files/SDKDocsBlockActualFiles.d.ts +16 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/image/SDKDocsBlockActualImage.d.ts +10 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualDoDontGuidelines.d.ts +8 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbed.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbedFigma.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualEmbedYoutube.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualFiles.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualImage.d.ts +6 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/portal/SDKDocsBlockActualShortcutLinks.d.ts +8 -0
- package/build/sdk-typescript/src/model/docs/blocks/definition/actual/shortcut-links/SDKDocsBlockActualShortcutLinks.d.ts +10 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +3 -1
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +2 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockFileProperty.d.ts +22 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +3 -0
- package/build/sdk-typescript/src/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +2 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponentPropsTable.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponents.d.ts +11 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFigmaComponentsConfig.d.ts +32 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockFiles.d.ts +22 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockGuideline.d.ts +25 -0
- package/build/sdk-typescript/src/model/documentation/blocks/SDKDocumentationLegacyPageBlockGuidelines.d.ts +6 -0
- package/build/sdk-typescript/src/model/documentation/builder/SDKDocumentationLegacyBlockBuilder.d.ts +1 -1
- package/build/sdk-typescript/src/model/enums/SDKDesignSystemRole.d.ts +2 -1
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockBehaviorDataType.d.ts +3 -1
- package/build/sdk-typescript/src/model/enums/SDKDocsBlockItemPropertyType.d.ts +3 -1
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyCalloutType.d.ts +2 -1
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyHeadingType.d.ts +3 -1
- package/build/sdk-typescript/src/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +6 -1
- package/build/sdk-typescript/src/model/enums/SDKFigmaComponentPreviewContainerSize.d.ts +4 -0
- package/build/sdk-typescript/src/model/enums/SDKTokenType.d.ts +3 -3
- package/build/sdk-typescript/src/model/enums/SDKUserRole.d.ts +1 -1
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSeatType.d.ts +3 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionProduct.d.ts +7 -0
- package/build/sdk-typescript/src/model/enums/SDKWorkspaceSubscriptionStatus.d.ts +3 -1
- package/build/sdk-typescript/src/model/exporters/SDKPipeline.d.ts +1 -1
- package/build/sdk-typescript/src/model/exporters/exporter_builds/SDKExportDestinations.d.ts +5 -0
- package/build/sdk-typescript/src/model/files/SDKFileUpload.d.ts +9 -0
- package/build/sdk-typescript/src/model/groups/SDKTokenGroup.d.ts +1 -0
- package/build/sdk-typescript/src/model/membership/SDKMembership.d.ts +8 -6
- package/build/sdk-typescript/src/model/messaging/SDKChatThread.d.ts +14 -0
- package/build/sdk-typescript/src/model/messaging/SDKChatThreadMessage.d.ts +51 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeAgent.d.ts +8 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProject.d.ts +41 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectContext.d.ts +26 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectDocument.d.ts +19 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectDocumentPreview.d.ts +13 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeature.d.ts +25 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureArtifact.d.ts +13 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureArtifactList.d.ts +7 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureIteration.d.ts +13 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessage.d.ts +26 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessageList.d.ts +10 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeatureMessageReaction.d.ts +9 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectFeaturePreview.d.ts +13 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectInvitation.d.ts +12 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectMembership.d.ts +13 -0
- package/build/sdk-typescript/src/model/projects/SDKForgeProjectRelation.d.ts +13 -0
- package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectDocumentSection.d.ts +6 -0
- package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectFeatureSection.d.ts +6 -0
- package/build/sdk-typescript/src/model/projects/sections/SDKForgeProjectSection.d.ts +12 -0
- package/build/sdk-typescript/src/model/storybook/SDKStorybookUpdate.d.ts +17 -0
- package/build/sdk-typescript/src/model/support/SDKSource.d.ts +8 -1
- package/build/sdk-typescript/src/model/themes/SDKTokenTheme.d.ts +1 -1
- package/build/sdk-typescript/src/model/themes/SDKTokenThemeOverride.d.ts +1 -1
- package/build/sdk-typescript/src/model/threads/SDKThreadMessage.d.ts +36 -0
- package/build/sdk-typescript/src/model/threads/SDKThreadMessageList.d.ts +10 -0
- package/build/sdk-typescript/src/model/threads/SDKThreadMessageReaction.d.ts +9 -0
- package/build/sdk-typescript/src/model/tokens/SDKDimensionToken.d.ts +1 -1
- package/build/sdk-typescript/src/model/tokens/SDKStringToken.d.ts +1 -1
- package/build/sdk-typescript/src/model/tokens/SDKToken.d.ts +1 -0
- package/build/sdk-typescript/src/model/trail-events/SDKTrailEvent.d.ts +17 -0
- package/build/sdk-typescript/src/model/users/SDKUser.d.ts +7 -0
- package/build/sdk-typescript/src/model/users/SDKUserMembership.d.ts +12 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspace.d.ts +12 -9
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceInvitation.d.ts +17 -9
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspacePortalSettings.d.ts +12 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductFeatures.d.ts +2 -2
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProductPrice.d.ts +7 -0
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceProfile.d.ts +8 -26
- package/build/sdk-typescript/src/model/workspaces/SDKWorkspaceSubscription.d.ts +75 -38
- package/build/sdk-typescript/src/tests/Areas/AreaRelay.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/Areas/AreaThreads.spec.d.ts +1 -0
- package/build/sdk-typescript/src/tests/helpers.d.ts +1 -0
- package/build/sdk-typescript/src/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +1 -1
- package/build/sdk-typescript/src/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +13 -2
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownLinkResolver.d.ts +39 -0
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransform.d.ts +2 -2
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformBlock.d.ts +33 -10
- package/build/sdk-typescript/src/tools/markdown-transform/SDKToolsMarkdownTransformUtil.d.ts +8 -3
- package/build/sdk-typescript/src/utils/RawUtils.d.ts +53 -3
- package/build/supernova-sdk-typescript.js +1 -2
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/package.json +19 -29
- package/build/sdk-typescript/src/core/areas/SDKAreaAI.d.ts +0 -75
- package/build/sdk-typescript/src/model/acl/SDKAcl.d.ts +0 -51
- package/build/sdk-typescript/src/model/exporters/remote/SDKRemotePipelineModel.d.ts +0 -51
- package/build/sdk-typescript/src/model/projects/SDKProject.d.ts +0 -39
- package/build/sdk-typescript/src/model/projects/SDKProjectContext.d.ts +0 -47
- package/build/supernova-sdk-typescript.js.LICENSE.txt +0 -8
- /package/build/sdk-typescript/src/tests/Areas/{AreaAI.spec.d.ts → AreaMessaging.spec.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supernova-studio/supernova-sdk-beta",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.12",
|
|
4
4
|
"description": "Supernova.io SDK",
|
|
5
5
|
"main": "./build/supernova-sdk-typescript.js",
|
|
6
6
|
"types": "./build/sdk-typescript/src/index.d.ts",
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
"Markdown",
|
|
19
19
|
"CMS"
|
|
20
20
|
],
|
|
21
|
-
"files": [
|
|
22
|
-
"build"
|
|
23
|
-
],
|
|
21
|
+
"files": ["build"],
|
|
24
22
|
"scripts": {
|
|
25
23
|
"build:production": "npm run clean && webpack --mode production --config ./webpack.config.sdk.js",
|
|
26
24
|
"build-sdk": "npm run build:production",
|
|
@@ -37,7 +35,6 @@
|
|
|
37
35
|
"typecheck": "tsc --noEmit -p ./tsconfig.json",
|
|
38
36
|
"publish-package-sdk": "npm run clean && sh ./scripts/publish-sdk.sh",
|
|
39
37
|
"publish-package-sdk-exporters": "npm run clean && sh ./scripts/publish-sdk-exporters.sh",
|
|
40
|
-
"publish-package-sdk-beta": "npm run clean && sh ./scripts/publish-sdk-beta.sh",
|
|
41
38
|
"publish-packages": "sh ./scripts/publish-packages.sh"
|
|
42
39
|
},
|
|
43
40
|
"scripts-info": {
|
|
@@ -52,32 +49,28 @@
|
|
|
52
49
|
"version": "Bump package.json version, update CHANGELOG.md, tag release",
|
|
53
50
|
"reset": "Delete all untracked files and reset the repo to the last commit",
|
|
54
51
|
"publish-package-sdk": "Publish SDK package to NPM",
|
|
55
|
-
"publish-package-pulsar": "Publish Pulsar type package to NPM",
|
|
56
52
|
"publish-packages": "Publish both SDK and Pulsar package to NPM"
|
|
57
53
|
},
|
|
58
54
|
"engines": {
|
|
59
55
|
"node": ">=8.9"
|
|
60
56
|
},
|
|
61
57
|
"dependencies": {
|
|
62
|
-
"@supernova-studio/client": "1.
|
|
63
|
-
"@supernova-studio/model": "1.
|
|
64
|
-
"abab": "
|
|
65
|
-
"async-mutex": "
|
|
66
|
-
"color-string": "
|
|
67
|
-
"color2k": "
|
|
68
|
-
"expr-eval": "
|
|
69
|
-
"fuse.js": "
|
|
70
|
-
"lodash": "
|
|
71
|
-
"parse-color": "
|
|
72
|
-
"postcss-calc-ast-parser": "
|
|
73
|
-
"string.prototype.matchall": "
|
|
74
|
-
"tinycolor2": "
|
|
75
|
-
"uuid": "
|
|
58
|
+
"@supernova-studio/client": "1.48.0",
|
|
59
|
+
"@supernova-studio/model": "1.48.0",
|
|
60
|
+
"abab": "2.0.6",
|
|
61
|
+
"async-mutex": "0.3.2",
|
|
62
|
+
"color-string": "1.9.1",
|
|
63
|
+
"color2k": "2.0.2",
|
|
64
|
+
"expr-eval": "2.0.2",
|
|
65
|
+
"fuse.js": "6.6.2",
|
|
66
|
+
"lodash": "4.17.21",
|
|
67
|
+
"parse-color": "1.0.0",
|
|
68
|
+
"postcss-calc-ast-parser": "0.1.4",
|
|
69
|
+
"string.prototype.matchall": "4.0.8",
|
|
70
|
+
"tinycolor2": "1.6.0",
|
|
71
|
+
"uuid": "8.3.2"
|
|
76
72
|
},
|
|
77
|
-
"bundleDependencies": [
|
|
78
|
-
"@supernova-studio/client",
|
|
79
|
-
"@supernova-studio/model"
|
|
80
|
-
],
|
|
73
|
+
"bundleDependencies": ["@supernova-studio/client", "@supernova-studio/model"],
|
|
81
74
|
"devDependencies": {
|
|
82
75
|
"@istanbuljs/nyc-config-typescript": "0.1.3",
|
|
83
76
|
"@types/lodash": "4.14.191",
|
|
@@ -93,18 +86,15 @@
|
|
|
93
86
|
"tsx": "4.7.0",
|
|
94
87
|
"typescript-with-config": "*",
|
|
95
88
|
"vitest": "^3.0.5",
|
|
96
|
-
"webpack": "^5.66.0",
|
|
97
89
|
"webpack-cli": "^6.0.1",
|
|
98
90
|
"webpack-node-externals": "3.0.0"
|
|
99
91
|
},
|
|
100
92
|
"config": {},
|
|
101
93
|
"nyc": {
|
|
102
94
|
"extends": "@istanbuljs/nyc-config-typescript",
|
|
103
|
-
"exclude": [
|
|
104
|
-
"**/*.spec.js"
|
|
105
|
-
]
|
|
95
|
+
"exclude": ["**/*.spec.js"]
|
|
106
96
|
},
|
|
107
97
|
"optionalDependencies": {
|
|
108
98
|
"@rollup/rollup-darwin-x64": "^4.34.6"
|
|
109
99
|
}
|
|
110
|
-
}
|
|
100
|
+
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { DataCore } from "../data/SDKDataCore";
|
|
2
|
-
import { RemoteWorkspaceVersionIdentifier } from "./SDKRemoteIdentifiers";
|
|
3
|
-
export declare enum AIGetRouteQueryTask {
|
|
4
|
-
answer = "answer",
|
|
5
|
-
answerWithStream = "answerWithStream",
|
|
6
|
-
autocomplete = "autocomplete",
|
|
7
|
-
reindex = "reindex",
|
|
8
|
-
summarize = "summarize"
|
|
9
|
-
}
|
|
10
|
-
export declare class AreaAI {
|
|
11
|
-
/** Internal: Engine */
|
|
12
|
-
private dataCore;
|
|
13
|
-
constructor(dataCore: DataCore);
|
|
14
|
-
/** Summarizes a prompt into a title. Response is not streamed.
|
|
15
|
-
* @param from - Version identifier
|
|
16
|
-
* @param text - Text to summarize
|
|
17
|
-
* @param options - Summarization options
|
|
18
|
-
* @returns Summarized title
|
|
19
|
-
* @disclaimer This method will throw if the user is not authorized to use AI features (if you are reading this, you are not authorized).
|
|
20
|
-
*/
|
|
21
|
-
summarizeIntoTitle(from: RemoteWorkspaceVersionIdentifier, text: string, options?: {
|
|
22
|
-
maxWordCount: number;
|
|
23
|
-
strategy: "noun" | "verb";
|
|
24
|
-
}): Promise<string>;
|
|
25
|
-
/** Autocompletes a prompt into a full text. Response is not streamed.
|
|
26
|
-
* @param from - Version identifier
|
|
27
|
-
* @param textToComplete - Text to autocomplete
|
|
28
|
-
* @param options - Autocomplete options
|
|
29
|
-
* @returns Autocompleted text
|
|
30
|
-
* @disclaimer This method will throw if the user is not authorized to use AI features (if you are reading this, you are not authorized).
|
|
31
|
-
*/
|
|
32
|
-
autocompleteText(from: RemoteWorkspaceVersionIdentifier, textToComplete: string, options?: {
|
|
33
|
-
maximumLength: number;
|
|
34
|
-
previousText?: string;
|
|
35
|
-
afterText?: string;
|
|
36
|
-
}): Promise<{
|
|
37
|
-
completion: string;
|
|
38
|
-
fullText: string;
|
|
39
|
-
}>;
|
|
40
|
-
/** Answers question based on the data of design system in natural language. This method is non-streaming.
|
|
41
|
-
* @param from - Version identifier
|
|
42
|
-
* @param prompt - Question to answer
|
|
43
|
-
* @param options - Answering options
|
|
44
|
-
* @returns Answer to the question
|
|
45
|
-
* @disclaimer This method will throw if the user is not authorized to use AI features (if you are reading this, you are not authorized).
|
|
46
|
-
*/
|
|
47
|
-
answer(from: RemoteWorkspaceVersionIdentifier, prompt: string, options?: {
|
|
48
|
-
persona: "designer" | "developer";
|
|
49
|
-
scope: "all" | "tokens" | "components" | "assets" | "docs";
|
|
50
|
-
density: "compact" | "full";
|
|
51
|
-
}): Promise<string>;
|
|
52
|
-
/** Answers question based on the data of design system in natural language. This method streams answer.
|
|
53
|
-
* @param from - Version identifier
|
|
54
|
-
* @param prompt - Question to answer
|
|
55
|
-
* @param options - Answering options
|
|
56
|
-
* @returns Answer to the question
|
|
57
|
-
* @disclaimer This method will throw if the user is not authorized to use AI features (if you are reading this, you are not authorized).
|
|
58
|
-
*/
|
|
59
|
-
answerAsStream(from: RemoteWorkspaceVersionIdentifier, prompt: string, options?: {
|
|
60
|
-
persona: "designer" | "developer";
|
|
61
|
-
scope: "all" | "tokens" | "components" | "assets" | "docs";
|
|
62
|
-
density: "compact" | "full";
|
|
63
|
-
}): Promise<ReadableStreamDefaultReader<Uint8Array>>;
|
|
64
|
-
/** Indexes or reindexes a design system to prepare it for QA engine
|
|
65
|
-
* @param from - Version identifier
|
|
66
|
-
* @returns Indexing status
|
|
67
|
-
* @disclaimer This method will throw if the user is not authorized to use AI features (if you are reading this, you are not authorized).
|
|
68
|
-
*/
|
|
69
|
-
rebuildAnswerIndex(from: RemoteWorkspaceVersionIdentifier): Promise<void>;
|
|
70
|
-
/** Temp: Retrieves dynamic URL for all AI tasks
|
|
71
|
-
* @param task - Which task to retrieve URL for
|
|
72
|
-
* @returns Url for the task
|
|
73
|
-
*/
|
|
74
|
-
executableTaskUrl(task: AIGetRouteQueryTask): Promise<string>;
|
|
75
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { UserRole } from "../enums/SDKUserRole";
|
|
2
|
-
export type SingleResourceRemoteAcl = {
|
|
3
|
-
role: UserRole;
|
|
4
|
-
extends: UserRole[];
|
|
5
|
-
grants: string[];
|
|
6
|
-
};
|
|
7
|
-
export type AclRemoteModel = {
|
|
8
|
-
workspaces: {
|
|
9
|
-
roles: SingleResourceRemoteAcl[];
|
|
10
|
-
};
|
|
11
|
-
dsm: {
|
|
12
|
-
designSystems: {
|
|
13
|
-
roles: SingleResourceRemoteAcl[];
|
|
14
|
-
};
|
|
15
|
-
designSystemVersions: {
|
|
16
|
-
roles: SingleResourceRemoteAcl[];
|
|
17
|
-
};
|
|
18
|
-
designSystemSources: {
|
|
19
|
-
roles: SingleResourceRemoteAcl[];
|
|
20
|
-
};
|
|
21
|
-
tokens: {
|
|
22
|
-
roles: SingleResourceRemoteAcl[];
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
type SingleResourceAcl = {
|
|
27
|
-
role: UserRole;
|
|
28
|
-
extends: UserRole[];
|
|
29
|
-
grants: string[];
|
|
30
|
-
};
|
|
31
|
-
export type AclPermissionResolution = {
|
|
32
|
-
hasPermission: true;
|
|
33
|
-
reason?: never;
|
|
34
|
-
closestRoleWithPermission?: never;
|
|
35
|
-
} | {
|
|
36
|
-
hasPermission: false;
|
|
37
|
-
reason: string;
|
|
38
|
-
closestRoleWithPermission?: UserRole;
|
|
39
|
-
};
|
|
40
|
-
export declare class Acl {
|
|
41
|
-
workspaces: SingleResourceAcl[];
|
|
42
|
-
designSystems: SingleResourceAcl[];
|
|
43
|
-
designSystemVersions: SingleResourceAcl[];
|
|
44
|
-
designSystemSources: SingleResourceAcl[];
|
|
45
|
-
tokens: SingleResourceAcl[];
|
|
46
|
-
constructor(model: AclRemoteModel);
|
|
47
|
-
getExtendedGrants(acls: SingleResourceRemoteAcl[], acl: SingleResourceRemoteAcl): string[];
|
|
48
|
-
findClosestRoleWithGrant(acls: SingleResourceRemoteAcl[], acl: SingleResourceRemoteAcl, permission: string): UserRole | null;
|
|
49
|
-
hasPermission(resource: string, permission: string, role: UserRole): AclPermissionResolution;
|
|
50
|
-
}
|
|
51
|
-
export {};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ExportBuildModel } from "../exporter_builds/SDKExportBuild";
|
|
2
|
-
export type PipelineRemoteModel = {
|
|
3
|
-
id: string;
|
|
4
|
-
workspaceId: string;
|
|
5
|
-
designSystemId: string;
|
|
6
|
-
name: string;
|
|
7
|
-
isEnabled: boolean;
|
|
8
|
-
eventType: "OnVersionReleased" | "OnHeadChanged" | "OnSourceUpdated";
|
|
9
|
-
exporterId: string;
|
|
10
|
-
destinations: {
|
|
11
|
-
webhookUrl: string | null;
|
|
12
|
-
destinationSnDocs: {
|
|
13
|
-
environment: "Live" | "Preview";
|
|
14
|
-
} | null;
|
|
15
|
-
destinationS3: Record<any, any> | null;
|
|
16
|
-
destinationGithub: {
|
|
17
|
-
connectionId: string;
|
|
18
|
-
url: string;
|
|
19
|
-
branch: string;
|
|
20
|
-
relativePath: string;
|
|
21
|
-
} | null;
|
|
22
|
-
destinationAzure: {
|
|
23
|
-
connectionId: string;
|
|
24
|
-
organizationId: string;
|
|
25
|
-
projectId: string;
|
|
26
|
-
repositoryId: string;
|
|
27
|
-
branch: string;
|
|
28
|
-
relativePath: string;
|
|
29
|
-
url: string;
|
|
30
|
-
} | null;
|
|
31
|
-
destinationGitlab: {
|
|
32
|
-
connectionId: string;
|
|
33
|
-
projectId: string;
|
|
34
|
-
branch: string;
|
|
35
|
-
relativePath: string;
|
|
36
|
-
url: string;
|
|
37
|
-
} | null;
|
|
38
|
-
destinationBitbucket: {
|
|
39
|
-
connectionId: string;
|
|
40
|
-
workspaceSlug: string;
|
|
41
|
-
projectKey: string;
|
|
42
|
-
repoSlug: string;
|
|
43
|
-
branch: string;
|
|
44
|
-
relativePath: string;
|
|
45
|
-
url: string;
|
|
46
|
-
} | null;
|
|
47
|
-
};
|
|
48
|
-
brandPersistentId: string | null;
|
|
49
|
-
themePersistentId: string | null;
|
|
50
|
-
latestJobs: Array<ExportBuildModel> | null;
|
|
51
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Lodash <https://lodash.com/>
|
|
4
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
5
|
-
* Released under MIT license <https://lodash.com/license>
|
|
6
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/
|
|
File without changes
|