@supernova-studio/supernova-sdk-beta 2.4.6 → 2.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/supernova-sdk-typescript.js +1 -1
- package/build/supernova-sdk-typescript.js.map +1 -1
- package/build/types/core/SDKSupernova.d.ts +9 -0
- package/build/types/core/areas/SDKAreaActivityEvents.d.ts +7 -0
- package/build/types/core/areas/SDKAreaAgentChats.d.ts +12 -0
- package/build/types/core/areas/SDKAreaBulkOperations.d.ts +76 -74
- package/build/types/core/areas/SDKAreaDataSources.d.ts +1 -1
- package/build/types/core/areas/SDKAreaDesignSystems.d.ts +13 -13
- package/build/types/core/areas/SDKAreaDocumentation.d.ts +304 -289
- package/build/types/core/areas/SDKAreaImport.d.ts +35 -0
- package/build/types/core/areas/SDKAreaMCP.d.ts +26 -1
- package/build/types/core/areas/SDKAreaProjects.d.ts +1084 -1100
- package/build/types/core/areas/SDKAreaRawData.d.ts +1040 -1039
- package/build/types/core/areas/SDKAreaResources.d.ts +90 -90
- package/build/types/core/areas/SDKAreaSanboxes.d.ts +9 -9
- package/build/types/core/areas/SDKAreaThreads.d.ts +67 -67
- package/build/types/core/areas/SDKAreaTokens.d.ts +17 -12
- package/build/types/core/areas/SDKAreaWorkspaces.d.ts +1 -1
- package/build/types/core/data/SDKDataCore.d.ts +1771 -1746
- package/build/types/core/data/SDKDataCoreCached.d.ts +2 -2
- package/build/types/core/data/requests/SDKDataCoreReadRequests.d.ts +647 -593
- package/build/types/core/data/requests/SDKDataCoreWriteRequests.d.ts +2515 -2489
- package/build/types/core/resolvers/SDKDocsEntityItemResolver.d.ts +121 -121
- package/build/types/core/resolvers/SDKSnapshotTokenBuilder.d.ts +28 -0
- package/build/types/core/resolvers/SDKTokenResolver.d.ts +11 -9
- package/build/types/exports.d.ts +19 -11
- package/build/types/model/activity-events/SDKActivityEvent.d.ts +49 -0
- package/build/types/model/agent-chats/SDKAgentChat.d.ts +31 -0
- package/build/types/model/base/SDKDesignSystem.d.ts +3 -1
- package/build/types/model/datasets/SDKDataset.d.ts +15 -5
- package/build/types/model/docs/blocks/definition/SDKDocsBlockBehavior.d.ts +4 -1
- package/build/types/model/docs/blocks/definition/actual/context-mcp/SDKDocsBlockActualContextMcp.d.ts +2 -0
- package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +7 -24
- package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockBooleanProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +3 -6
- package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +3 -8
- package/build/types/model/docs/blocks/properties/SDKDocsBlockColorProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +7 -10
- package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockContextProperty.d.ts +16 -0
- package/build/types/model/docs/blocks/properties/SDKDocsBlockDividerProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +3 -6
- package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty.d.ts +7 -26
- package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty.d.ts +7 -22
- package/build/types/model/docs/blocks/properties/SDKDocsBlockFileProperty.d.ts +4 -9
- package/build/types/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +3 -10
- package/build/types/model/docs/blocks/properties/SDKDocsBlockMarkdownProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiRichTextProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiSelectProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockNumberProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextEditorProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +3 -7
- package/build/types/model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +4 -22
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTableProperty.d.ts +12 -28
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +7 -31
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty.d.ts +3 -2
- package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty.d.ts +3 -3
- package/build/types/model/docs/blocks/properties/SDKDocsBlockUrlProperty.d.ts +3 -2
- package/build/types/model/docs/sections/SDKDocsSection.d.ts +0 -31
- package/build/types/model/documentation/SDKPageHistoryVersion.d.ts +20 -0
- package/build/types/model/documentation/blocks/SDKDocumentationLegacyPageBlockContextMcp.d.ts +11 -0
- package/build/types/model/elements/SDKElementPropertyOption.d.ts +1 -2
- package/build/types/model/enums/SDKCodeLanguage.d.ts +1 -1
- package/build/types/model/enums/SDKDesignSystemRole.d.ts +1 -2
- package/build/types/model/enums/SDKDocsBlockBehaviorSelectionType.d.ts +4 -2
- package/build/types/model/enums/SDKDocsBlockContainerSize.d.ts +6 -4
- package/build/types/model/enums/SDKDocsBlockItemPropertyType.d.ts +3 -1
- package/build/types/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +1 -0
- package/build/types/model/enums/SDKTokenType.d.ts +2 -0
- package/build/types/model/enums/SDKWorkspaceSeatType.d.ts +14 -3
- package/build/types/model/exporters/SDKExporter.d.ts +2 -2
- package/build/types/model/exporters/SDKPipeline.d.ts +1 -1
- package/build/types/model/membership/SDKMembership.d.ts +1 -1
- package/build/types/model/support/SDKSource.d.ts +4 -3
- package/build/types/model/themes/SDKTokenThemeOverride.d.ts +1 -0
- package/build/types/model/tokens/remote/SDKRemoteTokenModel.d.ts +34 -1
- package/build/types/model/tokens/remote/SDKRemoteTokenValue.d.ts +1 -1
- package/build/types/model/workspaces/SDKWorkspaceProductPrice.d.ts +6 -3
- package/build/types/model/workspaces/SDKWorkspaceSubscription.d.ts +2 -6
- package/build/types/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +6 -3
- package/build/types/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +29 -3
- package/build/types/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +31 -0
- package/build/types/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/index.d.ts +4 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/lenient-resolve.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/placeholder.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/preserve.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/strict.d.ts +2 -0
- package/build/types/tools/design-tokens/utilities/unresolvable-modes/types.d.ts +33 -0
- package/build/types/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +9 -0
- package/build/types/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +1 -1
- package/build/types/utils/TokenUtils.d.ts +1 -1
- package/package.json +17 -21
- package/build/types/model/enums/SDKDocsBlockTokenNameFormat.d.ts +0 -10
|
@@ -3,208 +3,208 @@ import { DocsEntityGroup } from "../../model/docs/entities/SDKDocsEntityGroup";
|
|
|
3
3
|
import { DocsEntityPage } from "../../model/docs/entities/SDKDocsEntityPage";
|
|
4
4
|
export declare class DocsEntityItemResolver {
|
|
5
5
|
hashedItems: Map<string, {
|
|
6
|
-
id
|
|
7
|
-
designSystemVersionId
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
id: string;
|
|
7
|
+
designSystemVersionId: string;
|
|
8
|
+
createdAt: Date;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
persistentId: string;
|
|
11
|
+
title: string;
|
|
12
|
+
isRoot: boolean;
|
|
13
|
+
childrenIds: string[];
|
|
14
|
+
groupBehavior: "Group" | "Tabs";
|
|
15
|
+
shortPersistentId: string;
|
|
16
|
+
configuration: {
|
|
17
|
+
showSidebar: boolean;
|
|
18
|
+
isPrivate: boolean;
|
|
19
|
+
isHidden: boolean;
|
|
20
|
+
header: {
|
|
21
|
+
description: string;
|
|
22
|
+
alignment: "Left" | "Center";
|
|
23
|
+
backgroundImageScaleType: "AspectFill" | "AspectFit";
|
|
24
|
+
showBackgroundOverlay: boolean;
|
|
25
|
+
showCoverText: boolean;
|
|
21
26
|
foregroundColor?: {
|
|
22
|
-
value
|
|
27
|
+
value: string;
|
|
23
28
|
referencedTokenId?: string;
|
|
24
29
|
};
|
|
25
30
|
backgroundColor?: {
|
|
26
|
-
value
|
|
31
|
+
value: string;
|
|
27
32
|
referencedTokenId?: string;
|
|
28
33
|
};
|
|
29
34
|
backgroundImageAsset?: {
|
|
30
|
-
type
|
|
35
|
+
type: "Resource" | "FigmaNode";
|
|
31
36
|
resource?: {
|
|
32
|
-
|
|
33
|
-
|
|
37
|
+
resourceId: string;
|
|
38
|
+
url: string;
|
|
34
39
|
};
|
|
35
40
|
figmaNode?: {
|
|
36
|
-
sourceId
|
|
37
|
-
frameReferenceId
|
|
41
|
+
sourceId: string;
|
|
42
|
+
frameReferenceId: string;
|
|
38
43
|
};
|
|
39
44
|
};
|
|
40
|
-
backgroundImageScaleType?: "AspectFill" | "AspectFit";
|
|
41
|
-
showBackgroundOverlay?: boolean;
|
|
42
|
-
showCoverText?: boolean;
|
|
43
45
|
minHeight?: number;
|
|
44
46
|
};
|
|
45
47
|
};
|
|
46
|
-
|
|
48
|
+
type: "Group";
|
|
47
49
|
slug?: string;
|
|
48
50
|
userSlug?: string;
|
|
51
|
+
publishMetadata?: {
|
|
52
|
+
lastPublishedByUserId: string;
|
|
53
|
+
lastPublishedAt: Date;
|
|
54
|
+
};
|
|
55
|
+
approvalState?: {
|
|
56
|
+
persistentId: string;
|
|
57
|
+
groupPersistentId: string;
|
|
58
|
+
designSystemVersionId: string;
|
|
59
|
+
approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
|
|
60
|
+
};
|
|
49
61
|
draftState?: {
|
|
50
|
-
changeType
|
|
62
|
+
changeType: "Created";
|
|
51
63
|
} | {
|
|
52
|
-
changeType
|
|
53
|
-
changes
|
|
64
|
+
changeType: "Updated";
|
|
65
|
+
changes: {
|
|
54
66
|
previousTitle?: string;
|
|
55
67
|
previousConfiguration?: {
|
|
56
|
-
showSidebar
|
|
57
|
-
isPrivate
|
|
58
|
-
isHidden
|
|
59
|
-
header
|
|
60
|
-
description
|
|
61
|
-
alignment
|
|
68
|
+
showSidebar: boolean;
|
|
69
|
+
isPrivate: boolean;
|
|
70
|
+
isHidden: boolean;
|
|
71
|
+
header: {
|
|
72
|
+
description: string;
|
|
73
|
+
alignment: "Left" | "Center";
|
|
74
|
+
backgroundImageScaleType: "AspectFill" | "AspectFit";
|
|
75
|
+
showBackgroundOverlay: boolean;
|
|
76
|
+
showCoverText: boolean;
|
|
62
77
|
foregroundColor?: {
|
|
63
|
-
value
|
|
78
|
+
value: string;
|
|
64
79
|
referencedTokenId?: string;
|
|
65
80
|
};
|
|
66
81
|
backgroundColor?: {
|
|
67
|
-
value
|
|
82
|
+
value: string;
|
|
68
83
|
referencedTokenId?: string;
|
|
69
84
|
};
|
|
70
85
|
backgroundImageAsset?: {
|
|
71
|
-
type
|
|
86
|
+
type: "Resource" | "FigmaNode";
|
|
72
87
|
resource?: {
|
|
73
|
-
|
|
74
|
-
|
|
88
|
+
resourceId: string;
|
|
89
|
+
url: string;
|
|
75
90
|
};
|
|
76
91
|
figmaNode?: {
|
|
77
|
-
sourceId
|
|
78
|
-
frameReferenceId
|
|
92
|
+
sourceId: string;
|
|
93
|
+
frameReferenceId: string;
|
|
79
94
|
};
|
|
80
95
|
};
|
|
81
|
-
backgroundImageScaleType?: "AspectFill" | "AspectFit";
|
|
82
|
-
showBackgroundOverlay?: boolean;
|
|
83
|
-
showCoverText?: boolean;
|
|
84
96
|
minHeight?: number;
|
|
85
97
|
};
|
|
86
98
|
};
|
|
87
99
|
previousContentHash?: string;
|
|
88
100
|
};
|
|
89
101
|
} | {
|
|
90
|
-
changeType
|
|
91
|
-
deletedAt
|
|
92
|
-
deletedByUserId
|
|
102
|
+
changeType: "Deleted";
|
|
103
|
+
deletedAt: Date;
|
|
104
|
+
deletedByUserId: string;
|
|
93
105
|
};
|
|
94
|
-
publishMetadata?: {
|
|
95
|
-
lastPublishedByUserId?: string;
|
|
96
|
-
lastPublishedAt?: Date;
|
|
97
|
-
};
|
|
98
|
-
approvalState?: {
|
|
99
|
-
designSystemVersionId?: string;
|
|
100
|
-
createdAt?: Date;
|
|
101
|
-
updatedAt?: Date;
|
|
102
|
-
approvalState?: "ReadyForReview" | "ChangesRequested" | "Approved";
|
|
103
|
-
pagePersistentId?: string;
|
|
104
|
-
updatedByUserId?: string;
|
|
105
|
-
};
|
|
106
|
-
liveblocksRoomId?: string;
|
|
107
106
|
} | {
|
|
108
|
-
id
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
107
|
+
id: string;
|
|
108
|
+
persistentId: string;
|
|
109
|
+
designSystemVersionId: string;
|
|
110
|
+
title: string;
|
|
111
|
+
configuration: {
|
|
112
|
+
showSidebar: boolean;
|
|
113
|
+
isPrivate: boolean;
|
|
114
|
+
isHidden: boolean;
|
|
115
|
+
header: {
|
|
116
|
+
description: string;
|
|
117
|
+
alignment: "Left" | "Center";
|
|
118
|
+
backgroundImageScaleType: "AspectFill" | "AspectFit";
|
|
119
|
+
showBackgroundOverlay: boolean;
|
|
120
|
+
showCoverText: boolean;
|
|
122
121
|
foregroundColor?: {
|
|
123
|
-
value
|
|
122
|
+
value: string;
|
|
124
123
|
referencedTokenId?: string;
|
|
125
124
|
};
|
|
126
125
|
backgroundColor?: {
|
|
127
|
-
value
|
|
126
|
+
value: string;
|
|
128
127
|
referencedTokenId?: string;
|
|
129
128
|
};
|
|
130
129
|
backgroundImageAsset?: {
|
|
131
|
-
type
|
|
130
|
+
type: "Resource" | "FigmaNode";
|
|
132
131
|
resource?: {
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
resourceId: string;
|
|
133
|
+
url: string;
|
|
135
134
|
};
|
|
136
135
|
figmaNode?: {
|
|
137
|
-
sourceId
|
|
138
|
-
frameReferenceId
|
|
136
|
+
sourceId: string;
|
|
137
|
+
frameReferenceId: string;
|
|
139
138
|
};
|
|
140
139
|
};
|
|
141
|
-
backgroundImageScaleType?: "AspectFill" | "AspectFit";
|
|
142
|
-
showBackgroundOverlay?: boolean;
|
|
143
|
-
showCoverText?: boolean;
|
|
144
140
|
minHeight?: number;
|
|
145
141
|
};
|
|
146
142
|
};
|
|
147
|
-
shortPersistentId
|
|
143
|
+
shortPersistentId: string;
|
|
144
|
+
createdAt: Date;
|
|
145
|
+
updatedAt: Date;
|
|
146
|
+
path: string;
|
|
147
|
+
type: "Page";
|
|
148
148
|
slug?: string;
|
|
149
149
|
userSlug?: string;
|
|
150
|
+
publishMetadata?: {
|
|
151
|
+
lastPublishedByUserId: string;
|
|
152
|
+
lastPublishedAt: Date;
|
|
153
|
+
};
|
|
154
|
+
approvalState?: {
|
|
155
|
+
approvalState: "ReadyForReview" | "ChangesRequested" | "Approved";
|
|
156
|
+
pagePersistentId: string;
|
|
157
|
+
updatedByUserId: string;
|
|
158
|
+
designSystemVersionId: string;
|
|
159
|
+
updatedAt: Date;
|
|
160
|
+
createdAt: Date;
|
|
161
|
+
};
|
|
162
|
+
liveblocksRoomId?: string;
|
|
150
163
|
draftState?: {
|
|
151
|
-
changeType
|
|
164
|
+
changeType: "Created";
|
|
152
165
|
} | {
|
|
153
|
-
changeType
|
|
154
|
-
changes
|
|
166
|
+
changeType: "Updated";
|
|
167
|
+
changes: {
|
|
155
168
|
previousTitle?: string;
|
|
156
169
|
previousConfiguration?: {
|
|
157
|
-
showSidebar
|
|
158
|
-
isPrivate
|
|
159
|
-
isHidden
|
|
160
|
-
header
|
|
161
|
-
description
|
|
162
|
-
alignment
|
|
170
|
+
showSidebar: boolean;
|
|
171
|
+
isPrivate: boolean;
|
|
172
|
+
isHidden: boolean;
|
|
173
|
+
header: {
|
|
174
|
+
description: string;
|
|
175
|
+
alignment: "Left" | "Center";
|
|
176
|
+
backgroundImageScaleType: "AspectFill" | "AspectFit";
|
|
177
|
+
showBackgroundOverlay: boolean;
|
|
178
|
+
showCoverText: boolean;
|
|
163
179
|
foregroundColor?: {
|
|
164
|
-
value
|
|
180
|
+
value: string;
|
|
165
181
|
referencedTokenId?: string;
|
|
166
182
|
};
|
|
167
183
|
backgroundColor?: {
|
|
168
|
-
value
|
|
184
|
+
value: string;
|
|
169
185
|
referencedTokenId?: string;
|
|
170
186
|
};
|
|
171
187
|
backgroundImageAsset?: {
|
|
172
|
-
type
|
|
188
|
+
type: "Resource" | "FigmaNode";
|
|
173
189
|
resource?: {
|
|
174
|
-
|
|
175
|
-
|
|
190
|
+
resourceId: string;
|
|
191
|
+
url: string;
|
|
176
192
|
};
|
|
177
193
|
figmaNode?: {
|
|
178
|
-
sourceId
|
|
179
|
-
frameReferenceId
|
|
194
|
+
sourceId: string;
|
|
195
|
+
frameReferenceId: string;
|
|
180
196
|
};
|
|
181
197
|
};
|
|
182
|
-
backgroundImageScaleType?: "AspectFill" | "AspectFit";
|
|
183
|
-
showBackgroundOverlay?: boolean;
|
|
184
|
-
showCoverText?: boolean;
|
|
185
198
|
minHeight?: number;
|
|
186
199
|
};
|
|
187
200
|
};
|
|
188
201
|
previousContentHash?: string;
|
|
189
202
|
};
|
|
190
203
|
} | {
|
|
191
|
-
changeType
|
|
192
|
-
deletedAt
|
|
193
|
-
deletedByUserId
|
|
194
|
-
};
|
|
195
|
-
publishMetadata?: {
|
|
196
|
-
lastPublishedByUserId?: string;
|
|
197
|
-
lastPublishedAt?: Date;
|
|
198
|
-
};
|
|
199
|
-
approvalState?: {
|
|
200
|
-
designSystemVersionId?: string;
|
|
201
|
-
persistentId?: string;
|
|
202
|
-
approvalState?: "ReadyForReview" | "ChangesRequested" | "Approved";
|
|
203
|
-
groupPersistentId?: string;
|
|
204
|
+
changeType: "Deleted";
|
|
205
|
+
deletedAt: Date;
|
|
206
|
+
deletedByUserId: string;
|
|
204
207
|
};
|
|
205
|
-
isRoot?: boolean;
|
|
206
|
-
childrenIds?: string[];
|
|
207
|
-
groupBehavior?: "Group" | "Tabs";
|
|
208
208
|
}>;
|
|
209
209
|
resolvedItems: Map<string, DocsEntityPage | DocsEntityGroup>;
|
|
210
210
|
resolveMultiplayerItems(pageDetails: Array<DTODocumentationHierarchyV2["pages"][number]>, groupDetails: Array<DTODocumentationHierarchyV2["groups"][number]>): Array<DocsEntityGroup | DocsEntityPage>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DesignTokenTypedData } from "@supernova-studio/model";
|
|
2
|
+
import { AnyToken } from "../../model/tokens/SDKTokenValue";
|
|
3
|
+
/** A token as it looked when an activity event was recorded */
|
|
4
|
+
export type TokenSnapshot = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
/** Group ancestry, root first */
|
|
8
|
+
path: Array<string>;
|
|
9
|
+
value: DesignTokenTypedData;
|
|
10
|
+
};
|
|
11
|
+
/** A historical value and the tokens its preview reads names from */
|
|
12
|
+
export type BuiltTokenSnapshot = {
|
|
13
|
+
token: AnyToken;
|
|
14
|
+
allTokens: Map<string, AnyToken>;
|
|
15
|
+
};
|
|
16
|
+
/** Builds SDK tokens from an activity event's snapshots, for the preview generators */
|
|
17
|
+
export declare class SnapshotTokenBuilder {
|
|
18
|
+
private versionId;
|
|
19
|
+
private snapshots;
|
|
20
|
+
constructor(versionId: string, snapshots: Array<TokenSnapshot>);
|
|
21
|
+
/** Null when a referenced snapshot is missing or the type has no SDK case */
|
|
22
|
+
build(subject: Pick<TokenSnapshot, "id" | "value">): BuiltTokenSnapshot | null;
|
|
23
|
+
/**
|
|
24
|
+
* Rebuilds a snapshot into the remote model the resolver takes as input.
|
|
25
|
+
* Null when the SDK has no case for the snapshot's type.
|
|
26
|
+
*/
|
|
27
|
+
private toRemoteModel;
|
|
28
|
+
}
|
|
@@ -16,37 +16,39 @@ import { GradientToken } from "../../model/tokens/SDKGradientToken";
|
|
|
16
16
|
import { ShadowToken } from "../../model/tokens/SDKShadowToken";
|
|
17
17
|
import { AnyStringToken } from "../../model/tokens/SDKStringToken";
|
|
18
18
|
import { Token } from "../../model/tokens/SDKToken";
|
|
19
|
-
import { AnyOptionToken, AnyOptionTokenValue, AnyStringTokenValue, BlurTokenValue, BorderTokenValue, BorderWidthTokenValue, ColorTokenValue, DimensionTokenValue, DurationTokenValue, FontSizeTokenValue, GradientStopValue, GradientTokenValue, LetterSpacingTokenValue, LineHeightTokenValue, OpacityTokenValue, ParagraphSpacingTokenValue, RadiusTokenValue, ShadowTokenValue, SizeTokenValue, SpaceTokenValue, TypographyTokenValue, ZIndexTokenValue } from "../../model/tokens/SDKTokenValue";
|
|
19
|
+
import { AnyOptionToken, AnyOptionTokenValue, AnyStringTokenValue, AnyToken, BlurTokenValue, BorderTokenValue, BorderWidthTokenValue, ColorTokenValue, DimensionTokenValue, DurationTokenValue, FontSizeTokenValue, GradientStopValue, GradientTokenValue, LetterSpacingTokenValue, LineHeightTokenValue, OpacityTokenValue, ParagraphSpacingTokenValue, RadiusTokenValue, ShadowTokenValue, SizeTokenValue, SpaceTokenValue, TypographyTokenValue, ZIndexTokenValue } from "../../model/tokens/SDKTokenValue";
|
|
20
20
|
import { TypographyToken } from "../../model/tokens/SDKTypographyToken";
|
|
21
21
|
import { AnyDimensionTokenRemoteData, AnyOptionTokenRemoteData, AnyOptionTokenRemoteValue, AnyStringTokenRemoteData, BorderWidthTokenRemoteData, ColorTokenRemoteData, GradientTokenRemoteData, ShadowTokenRemoteData } from "../../model/tokens/remote/SDKRemoteTokenData";
|
|
22
22
|
import { AnyOptionTokenRemoteModel, BlurTokenRemoteModel, BorderTokenRemoteModel, ColorTokenRemoteModel, DimensionTokenRemoteModel, GradientTokenRemoteModel, ShadowTokenRemoteModel, StringTokenRemoteModel, TokenRemoteModel, TypographyTokenRemoteModel } from "../../model/tokens/remote/SDKRemoteTokenModel";
|
|
23
23
|
import { AnyDimensionTokenRemoteValue, BlurTokenRemoteValue, BorderTokenRemoteValue, ColorTokenRemoteValue, GradientStopRemoteValue, GradientTokenRemoteValue, ShadowTokenRemoteValue, StringTokenRemoteValue, TypographyTokenRemoteValue } from "../../model/tokens/remote/SDKRemoteTokenValue";
|
|
24
24
|
export declare class TokenResolver {
|
|
25
25
|
hashedTokens: Map<string, TokenRemoteModel>;
|
|
26
|
-
resolvedTokens: Map<string,
|
|
26
|
+
resolvedTokens: Map<string, AnyToken>;
|
|
27
27
|
hashedOverrides: Map<string, TokenThemeOverrideRemoteModel>;
|
|
28
28
|
hashedReconstructedOverrides: Map<string, Token>;
|
|
29
29
|
resolvedOverrides: Map<string, Token>;
|
|
30
30
|
designSystemId: string;
|
|
31
31
|
versionId: string;
|
|
32
32
|
constructor(designSystemId: string, versionId: string);
|
|
33
|
-
resolveTokenData(data: Array<TokenRemoteModel>, tokenGroups: Array<TokenGroup>, elementProperties: Array<ElementProperty>, elementViews: Array<ElementDataView>, elementValues: Array<ElementPropertyValue>, sources: Array<Source>): Array<
|
|
33
|
+
resolveTokenData(data: Array<TokenRemoteModel>, tokenGroups: Array<TokenGroup>, elementProperties: Array<ElementProperty>, elementViews: Array<ElementDataView>, elementValues: Array<ElementPropertyValue>, sources: Array<Source>): Array<AnyToken>;
|
|
34
|
+
/** Builds tokens into resolvedTokens in alias-dependency order */
|
|
35
|
+
resolveTokensInDependencyOrder(data: Array<TokenRemoteModel>, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>): void;
|
|
34
36
|
constructStringValueForReplica(type: StringTokenType, replica: Token, override: TokenThemeOverrideRemoteModel): void;
|
|
35
37
|
constructOptionValueForReplica(type: OptionTokenType, replica: Token, override: TokenThemeOverrideRemoteModel): void;
|
|
36
38
|
constructDimensionValueForReplica(type: DimensionTokenType, replica: Token, override: TokenThemeOverrideRemoteModel): void;
|
|
37
39
|
constructPureValueForReplica(type: PureTokenType, replica: Token, override: TokenThemeOverrideRemoteModel): void;
|
|
38
|
-
resolveThemeData(data: TokenThemeRemoteModel, tokens: Array<
|
|
40
|
+
resolveThemeData(data: TokenThemeRemoteModel, tokens: Array<AnyToken>, tokenGroups: Array<TokenGroup>, sources: Array<Source>, allThemes?: Array<TokenThemeRemoteModel>, tokenCollections?: Array<DesignSystemCollection>): TokenTheme;
|
|
39
41
|
makeThemedValuelessTokenReplica(token: Token, themeId: string, origin: TokenOrigin | null): Token;
|
|
40
42
|
fixMultilayerShadowTokens(tokens: Array<ShadowToken>, groups: Array<TokenGroup>): void;
|
|
41
43
|
fixMultilayerGradientTokens(tokens: Array<GradientToken>, groups: Array<TokenGroup>): void;
|
|
42
44
|
fixMultilayerBlurTokens(tokens: Array<BlurToken>, groups: Array<TokenGroup>): void;
|
|
43
45
|
findAssociatedTokens<T extends Token>(token: T, tokens: Array<T>, groups: Array<TokenGroup>): Array<T>;
|
|
44
46
|
actualOriginTokenId(id: string | null): string;
|
|
45
|
-
constructReferencedToken(rawData: TokenRemoteModel, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>, path?: Set<unknown>):
|
|
46
|
-
constructReferencedThemedToken(rawData: TokenThemeOverrideRemoteModel, themeId: string, path?: Set<unknown>):
|
|
47
|
-
constructResolvedThemedToken(rawData: TokenThemeOverrideRemoteModel, referencedToken: Token, themeId: string):
|
|
48
|
-
constructResolvedToken(rawData: TokenRemoteModel, referencedToken: Token, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>):
|
|
49
|
-
constructValueToken(rawData: TokenRemoteModel, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>):
|
|
47
|
+
constructReferencedToken(rawData: TokenRemoteModel, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>, path?: Set<unknown>): AnyToken;
|
|
48
|
+
constructReferencedThemedToken(rawData: TokenThemeOverrideRemoteModel, themeId: string, path?: Set<unknown>): AnyToken;
|
|
49
|
+
constructResolvedThemedToken(rawData: TokenThemeOverrideRemoteModel, referencedToken: Token, themeId: string): AnyToken;
|
|
50
|
+
constructResolvedToken(rawData: TokenRemoteModel, referencedToken: Token, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>): AnyToken;
|
|
51
|
+
constructValueToken(rawData: TokenRemoteModel, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>): AnyToken;
|
|
50
52
|
constructThemedValueToken(override: TokenThemeOverrideRemoteModel, themeId: string): Token;
|
|
51
53
|
constructColorToken(rawData: ColorTokenRemoteModel, properties: Array<ElementProperty>, values: Array<ElementPropertyValue>): ColorToken;
|
|
52
54
|
constructColorValue(rawValue: ColorTokenRemoteValue): ColorTokenValue;
|
package/build/types/exports.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { DIMENSION_TOKEN_TYPES, STRING_TOKEN_TYPES, OPTION_TOKEN_TYPES, } from "
|
|
|
9
9
|
export type { DimensionTokenType, StringTokenType, OptionTokenType, } from "./model/enums/SDKTokenType";
|
|
10
10
|
export { ALL_BORDER_POSITIONS } from "./model/enums/SDKBorderPosition";
|
|
11
11
|
export { ALL_BORDER_STYLES } from "./model/enums/SDKBorderStyle";
|
|
12
|
-
export { ALL_TOKEN_TYPES } from "./model/enums/SDKTokenType";
|
|
12
|
+
export { ALL_TOKEN_TYPES, tokenTypeFromString, } from "./model/enums/SDKTokenType";
|
|
13
13
|
export { Supernova } from "./core/SDKSupernova";
|
|
14
14
|
export { Workspace } from "./model/workspaces/SDKWorkspace";
|
|
15
15
|
export { type WorkspaceLinkedIntegrations, type WorkspaceIntegrations, type WorkspaceIntegrationCredentialType, type WorkspaceIntegrationsRemoteModel, } from "./model/workspaces/SDKWorkspaceIntegration";
|
|
@@ -71,7 +71,7 @@ export { Asset } from "./model/assets/SDKAsset";
|
|
|
71
71
|
export { RenderedAsset } from "./model/assets/SDKRenderedAsset";
|
|
72
72
|
export { Component } from "./model/components/SDKComponent";
|
|
73
73
|
export { ElementProperty, ElementPropertyLinkElementType, ElementPropertyTargetElementType, ElementPropertyType, } from "./model/elements/SDKElementProperty";
|
|
74
|
-
export { ElementPropertyOption } from "./model/elements/SDKElementPropertyOption";
|
|
74
|
+
export { ElementPropertyOption, badgeColorValues, } from "./model/elements/SDKElementPropertyOption";
|
|
75
75
|
export type { ElementPropertyOptionBadgeColor } from "./model/elements/SDKElementPropertyOption";
|
|
76
76
|
export { ElementDataView } from "./model/elements/SDKElementDataView";
|
|
77
77
|
export { ElementDataViewColumn, ElementDataViewColumnBasePropertyType, ElementDataViewColumnType, } from "./model/elements/SDKElementDataViewColumn";
|
|
@@ -94,6 +94,8 @@ export { DocsAnalyticsTimeFrame } from "./model/docs_analytics/SDKDocsAnalyticsT
|
|
|
94
94
|
export { DocsAnalyticsComparisonData } from "./model/docs_analytics/SDKDocsAnalyticsComparisonData";
|
|
95
95
|
export { DocsAnalyticsPageComparisonData } from "./model/docs_analytics/SDKDocsAnalyticsPageComparisonData";
|
|
96
96
|
export { DocsAnalyticsVisitHeatMapWeek } from "./model/docs_analytics/SDKDocsAnalyticsVisitHeatMapWeek";
|
|
97
|
+
export { PageHistoryVersion, PageHistoryVersionContent, } from "./model/documentation/SDKPageHistoryVersion";
|
|
98
|
+
export type { PageHistoryVersionJSONContent } from "./model/documentation/SDKPageHistoryVersion";
|
|
97
99
|
export { DocsBlockBehavior } from "./model/docs/blocks/definition/SDKDocsBlockBehavior";
|
|
98
100
|
export { DocsBlockDefinition } from "./model/docs/blocks/definition/SDKDocsBlockDefinition";
|
|
99
101
|
export { DocsBlockItemDefinition } from "./model/docs/blocks/definition/SDKDocsBlockItemDefinition";
|
|
@@ -114,11 +116,11 @@ export { DocsEntityPage, DocsEntityMultiplayerPage, } from "./model/docs/entitie
|
|
|
114
116
|
export { DocsBlockPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockProperty";
|
|
115
117
|
export type { DocsBlockItemPropertyAnyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockProperty";
|
|
116
118
|
export { DocsBlockAssetPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockAssetProperty";
|
|
117
|
-
export type { DocsBlockAssetPropertyData, DocsBlockAssetPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockAssetProperty";
|
|
119
|
+
export type { DocsBlockAssetPropertyData, DocsBlockAssetPropertyValue, DocsBlockAssetPropertyEntity, DocsBlockAssetPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockAssetProperty";
|
|
118
120
|
export { DocsBlockAssetPropertyPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty";
|
|
119
121
|
export type { DocsBlockAssetPropertyPropertyData, DocsBlockAssetPropertyPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty";
|
|
120
122
|
export { DocsBlockFigmaNodePropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty";
|
|
121
|
-
export type { DocsBlockFigmaNodePropertyData, DocsBlockFigmaNodePropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty";
|
|
123
|
+
export type { DocsBlockFigmaNodePropertyData, DocsBlockFigmaNodePropertyValue, DocsBlockFigmaNodePropertyEntity, DocsBlockFigmaNodePropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty";
|
|
122
124
|
export { DocsBlockBooleanPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockBooleanProperty";
|
|
123
125
|
export type { DocsBlockBooleanPropertyData, DocsBlockBooleanPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockBooleanProperty";
|
|
124
126
|
export { DocsBlockCodePropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockCodeProperty";
|
|
@@ -126,9 +128,11 @@ export type { DocsBlockCodePropertyData, DocsBlockCodePropertyOptions, } from ".
|
|
|
126
128
|
export { DocsBlockCodeSandboxPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty";
|
|
127
129
|
export type { DocsBlockCodeSandboxPropertyData, DocsBlockCodeSandboxPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty";
|
|
128
130
|
export { DocsBlockComponentPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockComponentProperty";
|
|
129
|
-
export type { DocsBlockComponentPropertyData, DocsBlockComponentPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockComponentProperty";
|
|
131
|
+
export type { DocsBlockComponentPropertyData, DocsBlockComponentPropertyValue, DocsBlockComponentPropertyEntity, DocsBlockComponentPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockComponentProperty";
|
|
130
132
|
export { DocsBlockComponentPropertyPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty";
|
|
131
133
|
export type { DocsBlockComponentPropertyPropertyData, DocsBlockComponentPropertyPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty";
|
|
134
|
+
export { DocsBlockContextPropertyDefinition, DocsBlockContextPropertyConnectionValues, } from "./model/docs/blocks/properties/SDKDocsBlockContextProperty";
|
|
135
|
+
export type { DocsBlockContextPropertyConnection, ContextEntity, DocsBlockContextPropertyData, DocsBlockContextPropertyValue, DocsBlockContextPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockContextProperty";
|
|
132
136
|
export { DocsBlockEmbedUrlPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty";
|
|
133
137
|
export type { DocsBlockEmbedUrlPropertyData, DocsBlockEmbedUrlPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty";
|
|
134
138
|
export { DocsBlockImagePropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockImageProperty";
|
|
@@ -148,13 +152,13 @@ export type { DocsBlockRichTextEditorPropertyData, DocsBlockRichTextEditorProper
|
|
|
148
152
|
export { DocsBlockSingleSelectPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty";
|
|
149
153
|
export type { DocsBlockSingleSelectPropertyData, DocsBlockSingleSelectPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty";
|
|
150
154
|
export { DocsBlockTablePropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTableProperty";
|
|
151
|
-
export type { DocsBlockTablePropertyData, DocsBlockTablePropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTableProperty";
|
|
155
|
+
export type { DocsBlockTablePropertyData, DocsBlockTablePropertyValue, DocsBlockTablePropertyRow, DocsBlockTablePropertyCell, DocsBlockTablePropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTableProperty";
|
|
152
156
|
export { DocsBlockTextPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTextProperty";
|
|
153
157
|
export type { DocsBlockUrlPropertyData, DocsBlockUrlPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockUrlProperty";
|
|
154
158
|
export { DocsBlockUrlPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockUrlProperty";
|
|
155
159
|
export type { DocsBlockTextPropertyData, DocsBlockTextPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTextProperty";
|
|
156
160
|
export { DocsBlockTokenPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTokenProperty";
|
|
157
|
-
export type { DocsBlockTokenPropertyData, DocsBlockTokenPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTokenProperty";
|
|
161
|
+
export type { DocsBlockTokenPropertyData, DocsBlockTokenPropertyValue, DocsBlockTokenPropertyEntity, DocsBlockTokenPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTokenProperty";
|
|
158
162
|
export { DocsBlockTokenPropertyPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty";
|
|
159
163
|
export type { DocsBlockTokenPropertyPropertyData, DocsBlockTokenPropertyPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty";
|
|
160
164
|
export { DocsBlockTokenTypePropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty";
|
|
@@ -166,7 +170,7 @@ export type { DocsBlockDividerPropertyData, DocsBlockDividerPropertyOptions, } f
|
|
|
166
170
|
export { DocsBlockStorybookPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockStorybookProperty";
|
|
167
171
|
export type { DocsBlockStorybookPropertyData, DocsBlockStorybookPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockStorybookProperty";
|
|
168
172
|
export { DocsBlockFigmaComponentPropertyDefinition } from "./model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty";
|
|
169
|
-
export type { DocsBlockFigmaComponentPropertyData, DocsBlockFigmaComponentPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty";
|
|
173
|
+
export type { DocsBlockFigmaComponentPropertyData, DocsBlockFigmaComponentPropertyValue, DocsBlockFigmaComponentPropertyEntity, DocsBlockFigmaComponentPropertyOptions, } from "./model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty";
|
|
170
174
|
export type { DocsColorRef } from "./model/docs/blocks/support/SDKDocsColorRef";
|
|
171
175
|
export { DocsImageRefType } from "./model/docs/blocks/support/SDKDocsImageRef";
|
|
172
176
|
export type { DocsImageRef } from "./model/docs/blocks/support/SDKDocsImageRef";
|
|
@@ -189,6 +193,7 @@ export { DocumentationLegacyPageBlockEmbedStorybook } from "./model/documentatio
|
|
|
189
193
|
export { DocumentationLegacyPageBlockEmbedYoutube } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockEmbedYoutube";
|
|
190
194
|
export { DocumentationLegacyPageBlockFrame } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockFrame";
|
|
191
195
|
export { DocumentationLegacyPageBlockFrames } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockFrames";
|
|
196
|
+
export { DocumentationLegacyPageBlockContextMcp } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockContextMcp";
|
|
192
197
|
export { DocumentationLegacyPageBlockHeading } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockHeading";
|
|
193
198
|
export { DocumentationLegacyPageBlockImage } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockImage";
|
|
194
199
|
export { DocumentationLegacyPageOrderedList } from "./model/documentation/blocks/SDKDocumentationLegacyPageBlockOrderedList";
|
|
@@ -223,6 +228,7 @@ export { DocumentationLegacyRichText } from "./model/documentation/SDKDocumentat
|
|
|
223
228
|
export { RichTextSpan } from "./model/documentation/SDKDocumentationLegacyRichTextSpan";
|
|
224
229
|
export { RichTextSpanAttribute } from "./model/documentation/SDKDocumentationLegacyRichTextSpanAttribute";
|
|
225
230
|
export { AssetGroup } from "./model/groups/SDKAssetGroup";
|
|
231
|
+
export { ComponentGroup } from "./model/groups/SDKComponentGroup";
|
|
226
232
|
export { DesignComponentGroup } from "./model/groups/SDKDesignComponentGroup";
|
|
227
233
|
export { TokenGroup } from "./model/groups/SDKTokenGroup";
|
|
228
234
|
export { DesignSystemCollection } from "./model/base/SDKDesignSystemCollection";
|
|
@@ -259,7 +265,6 @@ export { DocsBlockTextPropertyColor } from "./model/enums/SDKDocsBlockTextProper
|
|
|
259
265
|
export { DocsBlockItemVariantLayoutAlign } from "./model/enums/SDKDocsBlockItemVariantLayoutAlign";
|
|
260
266
|
export { DocsBlockItemVariantLayoutColumnResizing } from "./model/enums/SDKDocsBlockItemVariantLayoutColumnResizing";
|
|
261
267
|
export { DocsBlockItemVariantLayoutGap } from "./model/enums/SDKDocsBlockItemVariantLayoutGap";
|
|
262
|
-
export { DocsBlockTokenNameFormat } from "./model/enums/SDKDocsBlockTokenNameFormat";
|
|
263
268
|
export { DocsBlockOptionColor } from "./model/enums/SDKDocsBlockOptionColor";
|
|
264
269
|
export { DocsEntityType } from "./model/enums/SDKDocsEntityType";
|
|
265
270
|
export { DocsSectionType } from "./model/enums/SDKDocsSectionType";
|
|
@@ -284,7 +289,7 @@ export { WorkspaceSubscriptionProductCode, type SubscriptionCheckoutProductCode,
|
|
|
284
289
|
export { WorkspaceSubscriptionStatus } from "./model/enums/SDKWorkspaceSubscriptionStatus";
|
|
285
290
|
export { WorkspaceNPMRegistryAuthType } from "./model/enums/SDKWorkspaceNPMRegistryAuthType";
|
|
286
291
|
export { WorkspaceNPMRegistryType } from "./model/enums/SDKWorkspaceNPMRegistryType";
|
|
287
|
-
export type { WorkspaceSeatType } from "./model/enums/SDKWorkspaceSeatType";
|
|
292
|
+
export type { WorkspaceBilledSeatType, WorkspaceSeatType, } from "./model/enums/SDKWorkspaceSeatType";
|
|
288
293
|
export { allWorkspaceSeatTypes } from "./model/enums/SDKWorkspaceSeatType";
|
|
289
294
|
export { ImportWarningType } from "./model/enums/SDKCloudWarningType";
|
|
290
295
|
export { CustomDomainErrorCode } from "./model/enums/SDKCustomDomainErrorCode";
|
|
@@ -365,6 +370,9 @@ export { ForgeProject, type ForgeProjectRemoteModel, } from "./model/projects/SD
|
|
|
365
370
|
export { ForgeOnboardingContainerUsage, type ForgeOnboardingContainerUsageRemoteModel, type ForgeOnboardingContainerUsageTransportModel, } from "./model/projects/SDKForgeOnboardingContainerUsage";
|
|
366
371
|
export { PublishedFeature, type PublishedFeatureRemoteModel, } from "./model/projects/SDKPublishedFeature";
|
|
367
372
|
export { TrailEvent, type TrailEventRemoteModel, type TrailEventType, type TrailEventCreateInput, type TrailEventListInput, type TrailEventListResponse, } from "./model/trail-events/SDKTrailEvent";
|
|
373
|
+
export { ActivityEvent, type ActivityEventChange, type ActivityEventEntitySnapshot, type ActivityEventListFilter, } from "./model/activity-events/SDKActivityEvent";
|
|
374
|
+
export { SnapshotTokenBuilder, type BuiltTokenSnapshot, type TokenSnapshot, } from "./core/resolvers/SDKSnapshotTokenBuilder";
|
|
375
|
+
export { AgentChat, type AgentChatChangedEntitiesResponse, type AgentChatChangedEntity, type AgentChatCreateInput, type AgentChatDeleteResponse, type AgentChatListFilter, type AgentChatListResponse, type AgentChatRemoteModel, type AgentChatResponse, type AgentChatUpdateInput, } from "./model/agent-chats/SDKAgentChat";
|
|
368
376
|
export { ForgeProjectMembership } from "./model/projects/memberships/SDKForgeProjectMembership";
|
|
369
377
|
export type { ForgeProjectMembershipRole } from "./model/projects/memberships/SDKForgeProjectMembership";
|
|
370
378
|
export { ForgeProjectMembersList } from "./model/projects/memberships/SDKForgeProjectMembersList";
|
|
@@ -393,4 +401,4 @@ export { ThreadMessageList } from "./model/threads/SDKThreadMessageList";
|
|
|
393
401
|
export { SandboxTemplate, type SandboxTemplateRemoteModel, type SandboxTemplateQuery, } from "./model/sandboxes/SDKSandboxTemplate";
|
|
394
402
|
export { ForgeProjectFeatureSandbox, type ForgeProjectFeatureSandboxListResponse, type ForgeProjectFeatureSandboxRemoteModel, } from "./model/projects/SDKForgeProjectSandbox";
|
|
395
403
|
export { SDKDataset, DatasetSelectionBuilder, DATASET_ENTITY_TYPES, getDatasetFilterEntityId, } from "./model/datasets/SDKDataset";
|
|
396
|
-
export type { DatasetCondition, DatasetConditionValue, DatasetConditionValueForField, DatasetDataRepository, DatasetEntity, DatasetEntityFieldMap, DatasetEntityType, DatasetExcludeIdsCondition, DatasetFilterEntity, DatasetFilterGroup, DatasetFilterItem, DatasetFilterNode, DatasetFilterProperty, DatasetFilterResult, DatasetFilterResultByEntityType, DatasetFilterResultSource, DatasetIdInScopeResult, DatasetIncludeAllCondition, DatasetIncludeIdsCondition, DatasetItemProjector, DatasetLogicalOperator, DatasetPrimitiveValue, DatasetPropertyCondition, DatasetPropertyOperator, DatasetPropertyOperatorForField, DatasetResolveResult, DatasetSelections, SDKDatasetData, } from "./model/datasets/SDKDataset";
|
|
404
|
+
export type { DatasetCondition, DatasetConditionValue, DatasetConditionValueForField, DatasetDataRepository, DatasetEntity, DatasetEntityFieldMap, DatasetEntityType, DatasetExcludeIdsCondition, DatasetFilterEntity, DatasetEvaluatedPropertyCondition, DatasetFilterEvaluationOptions, DatasetFilterGroup, DatasetFilterItem, DatasetFilterNode, DatasetFilterProperty, DatasetFilterResult, DatasetFilterResultByEntityType, DatasetFilterResultSource, DatasetIdInScopeResult, DatasetIncludeAllCondition, DatasetIncludeIdsCondition, DatasetItemProjector, DatasetLogicalOperator, DatasetPrimitiveValue, DatasetPropertyCondition, DatasetPropertyOperator, DatasetPropertyOperatorForField, DatasetResolveResult, DatasetSelections, SDKDatasetData, } from "./model/datasets/SDKDataset";
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { DTOActivityEventAction, DTOActivityEventActorSource, DTOActivityEventChange, DTOActivityEventEntitySnapshot, DTOActivityEventListInput, DTOActivityEventListResponse, DTOActivityEventTargetType, DTOActivityEventType, DTOActivityEventWithDetails } from "@supernova-studio/client";
|
|
2
|
+
export type ActivityEventRemoteModel = DTOActivityEventWithDetails;
|
|
3
|
+
export type ActivityEventListResponse = DTOActivityEventListResponse;
|
|
4
|
+
export type ActivityEventActorSource = DTOActivityEventActorSource;
|
|
5
|
+
export type ActivityEventAction = DTOActivityEventAction;
|
|
6
|
+
export type ActivityEventTargetType = DTOActivityEventTargetType;
|
|
7
|
+
export type ActivityEventType = DTOActivityEventType;
|
|
8
|
+
export type ActivityEventChange = DTOActivityEventChange;
|
|
9
|
+
export type ActivityEventEntitySnapshot = DTOActivityEventEntitySnapshot;
|
|
10
|
+
export declare class ActivityEvent {
|
|
11
|
+
id: string;
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
workspaceId: string;
|
|
14
|
+
designSystemId: string | undefined;
|
|
15
|
+
designSystemVersionId: string | undefined;
|
|
16
|
+
brandId: string | undefined;
|
|
17
|
+
actorUserId: string | undefined;
|
|
18
|
+
actorUserName: string | undefined;
|
|
19
|
+
actorSource: ActivityEventActorSource;
|
|
20
|
+
eventType: ActivityEventType;
|
|
21
|
+
action: ActivityEventAction;
|
|
22
|
+
targetType: ActivityEventTargetType;
|
|
23
|
+
targetId: string;
|
|
24
|
+
targetName: ActivityEventRemoteModel["targetName"];
|
|
25
|
+
targetSubtype: ActivityEventRemoteModel["targetSubtype"];
|
|
26
|
+
parentId: string | undefined;
|
|
27
|
+
changes: ActivityEventChange[];
|
|
28
|
+
entitySnapshots: ActivityEventEntitySnapshot[];
|
|
29
|
+
constructor(model: ActivityEventRemoteModel);
|
|
30
|
+
toRemote(): ActivityEventRemoteModel;
|
|
31
|
+
}
|
|
32
|
+
export type ActivityEventListResult = {
|
|
33
|
+
events: ActivityEvent[];
|
|
34
|
+
/** Cursor for the next page, null on the last one */
|
|
35
|
+
nextCursor: ActivityEventListResponse["nextCursor"];
|
|
36
|
+
};
|
|
37
|
+
export type ActivityEventListFilter = {
|
|
38
|
+
designSystemId: string;
|
|
39
|
+
versionId: string;
|
|
40
|
+
/** Scopes the query to one entity's history; omitted reads the whole version */
|
|
41
|
+
targetId?: string;
|
|
42
|
+
/** Brand persistent ids; the "null" sentinel adds workspace-level rows */
|
|
43
|
+
brandIds?: string[];
|
|
44
|
+
/** "null" reads root events only, an id reads that parent's children */
|
|
45
|
+
parentId?: DTOActivityEventListInput["parentId"];
|
|
46
|
+
/** Keyset cursor from the previous page; omitted reads the newest page */
|
|
47
|
+
cursor?: string;
|
|
48
|
+
limit?: number;
|
|
49
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { DTOAgentChat, DTOAgentChatChangedEntitiesResponse, DTOAgentChatChangedEntity, DTOAgentChatCreatePayload, DTOAgentChatDeleteResponse, DTOAgentChatListResponse, DTOAgentChatResponse, DTOAgentChatUpdatePayload } from "@supernova-studio/client";
|
|
2
|
+
export type AgentChatChangedEntitiesResponse = DTOAgentChatChangedEntitiesResponse;
|
|
3
|
+
export type AgentChatChangedEntity = DTOAgentChatChangedEntity;
|
|
4
|
+
export type AgentChatCreateInput = DTOAgentChatCreatePayload;
|
|
5
|
+
export type AgentChatDeleteResponse = DTOAgentChatDeleteResponse;
|
|
6
|
+
export type AgentChatListResponse = DTOAgentChatListResponse;
|
|
7
|
+
export type AgentChatRemoteModel = DTOAgentChat;
|
|
8
|
+
export type AgentChatResponse = DTOAgentChatResponse;
|
|
9
|
+
export type AgentChatUpdateInput = DTOAgentChatUpdatePayload;
|
|
10
|
+
export type AgentChatListFilter = {
|
|
11
|
+
workspaceId: string;
|
|
12
|
+
designSystemId?: string;
|
|
13
|
+
includeArchived?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare class AgentChat {
|
|
16
|
+
id: string;
|
|
17
|
+
workspaceId: string;
|
|
18
|
+
designSystemId: string | undefined;
|
|
19
|
+
userId: string;
|
|
20
|
+
threadId: string;
|
|
21
|
+
eveSessionId: string | undefined;
|
|
22
|
+
name: string;
|
|
23
|
+
isArchived: boolean;
|
|
24
|
+
isRead: boolean;
|
|
25
|
+
isInProgress: boolean;
|
|
26
|
+
lastMessageAt: Date;
|
|
27
|
+
createdAt: Date;
|
|
28
|
+
updatedAt: Date;
|
|
29
|
+
constructor(model: AgentChatRemoteModel);
|
|
30
|
+
toRemote(): AgentChatRemoteModel;
|
|
31
|
+
}
|