@supernova-studio/supernova-sdk-beta 2.4.9 → 2.4.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.
Files changed (25) hide show
  1. package/build/supernova-sdk-typescript.js +1 -1
  2. package/build/supernova-sdk-typescript.js.map +1 -1
  3. package/build/types/core/areas/SDKAreaBulkOperations.d.ts +72 -72
  4. package/build/types/core/areas/SDKAreaDesignSystems.d.ts +13 -13
  5. package/build/types/core/areas/SDKAreaDocumentation.d.ts +288 -288
  6. package/build/types/core/areas/SDKAreaMCP.d.ts +8 -1
  7. package/build/types/core/areas/SDKAreaProjects.d.ts +1091 -1091
  8. package/build/types/core/areas/SDKAreaRawData.d.ts +1046 -1046
  9. package/build/types/core/areas/SDKAreaResources.d.ts +90 -90
  10. package/build/types/core/areas/SDKAreaSanboxes.d.ts +9 -9
  11. package/build/types/core/areas/SDKAreaThreads.d.ts +67 -67
  12. package/build/types/core/areas/SDKAreaWorkspaces.d.ts +1 -1
  13. package/build/types/core/data/SDKDataCore.d.ts +1735 -1732
  14. package/build/types/core/data/requests/SDKDataCoreReadRequests.d.ts +628 -601
  15. package/build/types/core/data/requests/SDKDataCoreWriteRequests.d.ts +2494 -2495
  16. package/build/types/core/resolvers/SDKDocsEntityItemResolver.d.ts +121 -121
  17. package/build/types/exports.d.ts +1 -0
  18. package/build/types/model/activity-events/SDKActivityEvent.d.ts +3 -0
  19. package/build/types/model/agent-chats/SDKAgentChat.d.ts +3 -0
  20. package/build/types/model/base/SDKDesignSystem.d.ts +3 -1
  21. package/build/types/model/docs/blocks/properties/SDKDocsBlockContextProperty.d.ts +1 -1
  22. package/build/types/model/exporters/SDKPipeline.d.ts +1 -1
  23. package/build/types/model/exporters/exporter_builds/SDKExportDestinations.d.ts +3 -0
  24. package/build/types/tools/token-preview/TokenUtilPreviewTypes.d.ts +2 -0
  25. package/package.json +1 -1
@@ -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
- type?: "Page";
7
- id?: string;
8
- designSystemVersionId?: string;
9
- path?: string;
10
- createdAt?: Date;
11
- updatedAt?: Date;
12
- persistentId?: string;
13
- title?: string;
14
- configuration?: {
15
- showSidebar?: boolean;
16
- isPrivate?: boolean;
17
- isHidden?: boolean;
18
- header?: {
19
- description?: string;
20
- alignment?: "Left" | "Center";
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?: string;
27
+ value: string;
23
28
  referencedTokenId?: string;
24
29
  };
25
30
  backgroundColor?: {
26
- value?: string;
31
+ value: string;
27
32
  referencedTokenId?: string;
28
33
  };
29
34
  backgroundImageAsset?: {
30
- type?: "Resource" | "FigmaNode";
35
+ type: "Resource" | "FigmaNode";
31
36
  resource?: {
32
- url?: string;
33
- resourceId?: string;
37
+ resourceId: string;
38
+ url: string;
34
39
  };
35
40
  figmaNode?: {
36
- sourceId?: string;
37
- frameReferenceId?: string;
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
- shortPersistentId?: string;
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?: "Created";
62
+ changeType: "Created";
51
63
  } | {
52
- changeType?: "Updated";
53
- changes?: {
64
+ changeType: "Updated";
65
+ changes: {
54
66
  previousTitle?: string;
55
67
  previousConfiguration?: {
56
- showSidebar?: boolean;
57
- isPrivate?: boolean;
58
- isHidden?: boolean;
59
- header?: {
60
- description?: string;
61
- alignment?: "Left" | "Center";
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?: string;
78
+ value: string;
64
79
  referencedTokenId?: string;
65
80
  };
66
81
  backgroundColor?: {
67
- value?: string;
82
+ value: string;
68
83
  referencedTokenId?: string;
69
84
  };
70
85
  backgroundImageAsset?: {
71
- type?: "Resource" | "FigmaNode";
86
+ type: "Resource" | "FigmaNode";
72
87
  resource?: {
73
- url?: string;
74
- resourceId?: string;
88
+ resourceId: string;
89
+ url: string;
75
90
  };
76
91
  figmaNode?: {
77
- sourceId?: string;
78
- frameReferenceId?: string;
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?: "Deleted";
91
- deletedAt?: Date;
92
- deletedByUserId?: string;
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
- type?: "Group";
109
- id?: string;
110
- designSystemVersionId?: string;
111
- createdAt?: Date;
112
- updatedAt?: Date;
113
- persistentId?: string;
114
- title?: string;
115
- configuration?: {
116
- showSidebar?: boolean;
117
- isPrivate?: boolean;
118
- isHidden?: boolean;
119
- header?: {
120
- description?: string;
121
- alignment?: "Left" | "Center";
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?: string;
122
+ value: string;
124
123
  referencedTokenId?: string;
125
124
  };
126
125
  backgroundColor?: {
127
- value?: string;
126
+ value: string;
128
127
  referencedTokenId?: string;
129
128
  };
130
129
  backgroundImageAsset?: {
131
- type?: "Resource" | "FigmaNode";
130
+ type: "Resource" | "FigmaNode";
132
131
  resource?: {
133
- url?: string;
134
- resourceId?: string;
132
+ resourceId: string;
133
+ url: string;
135
134
  };
136
135
  figmaNode?: {
137
- sourceId?: string;
138
- frameReferenceId?: string;
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?: string;
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?: "Created";
164
+ changeType: "Created";
152
165
  } | {
153
- changeType?: "Updated";
154
- changes?: {
166
+ changeType: "Updated";
167
+ changes: {
155
168
  previousTitle?: string;
156
169
  previousConfiguration?: {
157
- showSidebar?: boolean;
158
- isPrivate?: boolean;
159
- isHidden?: boolean;
160
- header?: {
161
- description?: string;
162
- alignment?: "Left" | "Center";
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?: string;
180
+ value: string;
165
181
  referencedTokenId?: string;
166
182
  };
167
183
  backgroundColor?: {
168
- value?: string;
184
+ value: string;
169
185
  referencedTokenId?: string;
170
186
  };
171
187
  backgroundImageAsset?: {
172
- type?: "Resource" | "FigmaNode";
188
+ type: "Resource" | "FigmaNode";
173
189
  resource?: {
174
- url?: string;
175
- resourceId?: string;
190
+ resourceId: string;
191
+ url: string;
176
192
  };
177
193
  figmaNode?: {
178
- sourceId?: string;
179
- frameReferenceId?: string;
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?: "Deleted";
192
- deletedAt?: Date;
193
- deletedByUserId?: string;
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>;
@@ -228,6 +228,7 @@ export { DocumentationLegacyRichText } from "./model/documentation/SDKDocumentat
228
228
  export { RichTextSpan } from "./model/documentation/SDKDocumentationLegacyRichTextSpan";
229
229
  export { RichTextSpanAttribute } from "./model/documentation/SDKDocumentationLegacyRichTextSpanAttribute";
230
230
  export { AssetGroup } from "./model/groups/SDKAssetGroup";
231
+ export { ComponentGroup } from "./model/groups/SDKComponentGroup";
231
232
  export { DesignComponentGroup } from "./model/groups/SDKDesignComponentGroup";
232
233
  export { TokenGroup } from "./model/groups/SDKTokenGroup";
233
234
  export { DesignSystemCollection } from "./model/base/SDKDesignSystemCollection";
@@ -21,6 +21,7 @@ export declare class ActivityEvent {
21
21
  action: ActivityEventAction;
22
22
  targetType: ActivityEventTargetType;
23
23
  targetId: string;
24
+ targetName: ActivityEventRemoteModel["targetName"];
24
25
  targetSubtype: ActivityEventRemoteModel["targetSubtype"];
25
26
  parentId: string | undefined;
26
27
  changes: ActivityEventChange[];
@@ -38,6 +39,8 @@ export type ActivityEventListFilter = {
38
39
  versionId: string;
39
40
  /** Scopes the query to one entity's history; omitted reads the whole version */
40
41
  targetId?: string;
42
+ /** Brand persistent ids; the "null" sentinel adds workspace-level rows */
43
+ brandIds?: string[];
41
44
  /** "null" reads root events only, an id reads that parent's children */
42
45
  parentId?: DTOActivityEventListInput["parentId"];
43
46
  /** Keyset cursor from the previous page; omitted reads the newest page */
@@ -21,6 +21,9 @@ export declare class AgentChat {
21
21
  eveSessionId: string | undefined;
22
22
  name: string;
23
23
  isArchived: boolean;
24
+ isRead: boolean;
25
+ isInProgress: boolean;
26
+ lastMessageAt: Date;
24
27
  createdAt: Date;
25
28
  updatedAt: Date;
26
29
  constructor(model: AgentChatRemoteModel);
@@ -5,7 +5,7 @@ export type DesignSystemSwitcher = {
5
5
  designSystemIds: Array<string>;
6
6
  };
7
7
  export type DesignSystemAccessMode = "Open" | "InviteOnly";
8
- export type DesignSystemTransportModel = Pick<DesignSystem, "id" | "name" | "description" | "isPublic" | "isMultiBrand" | "documentationSlug" | "documentationUserSlug" | "documentationExporterId" | "designSystemSwitcher" | "workspaceId">;
8
+ export type DesignSystemTransportModel = Pick<DesignSystem, "id" | "name" | "description" | "isPublic" | "isMultiBrand" | "documentationSlug" | "documentationUserSlug" | "documentationExporterId" | "designSystemSwitcher" | "workspaceId" | "createdAt">;
9
9
  export declare class DesignSystem {
10
10
  /** Unique identifier of design system */
11
11
  id: string;
@@ -45,6 +45,8 @@ export declare class DesignSystem {
45
45
  isAvailableToUser: boolean;
46
46
  /** Unique identifier of the shared draft version of the design system */
47
47
  sharedDraftId: string;
48
+ /** When the design system was created */
49
+ createdAt: Date;
48
50
  constructor(model: Omit<DTODesignSystem, "isPublic"> & {
49
51
  isPublic: boolean;
50
52
  });
@@ -1,7 +1,7 @@
1
1
  import { PageBlockContextConnection, type PageBlockItemContextValue } from "@supernova-studio/model";
2
2
  import { DocsBlockItemPropertyType } from "../../../enums/SDKDocsBlockItemPropertyType";
3
3
  import { DocsBlockPropertyDefinition, DocsBlockPropertyDefinitionModel } from "./SDKDocsBlockProperty";
4
- export declare const DocsBlockContextPropertyConnectionValues: ["cursor", "claudeCode", "vsCode", "codex", "codeSnippet", "url"];
4
+ export declare const DocsBlockContextPropertyConnectionValues: ("url" | "cursor" | "claudeCode" | "vsCode" | "codex" | "codeSnippet")[];
5
5
  export type DocsBlockContextPropertyConnection = PageBlockContextConnection;
6
6
  export type DocsBlockContextPropertyOptions = Record<string, never>;
7
7
  /** Context property - Data */
@@ -16,7 +16,7 @@ export declare class Pipeline {
16
16
  documentation?: {
17
17
  environment: "Live" | "Preview";
18
18
  };
19
- s3?: Record<string, unknown>;
19
+ s3?: Record<string, never>;
20
20
  github?: {
21
21
  url: string;
22
22
  branch: string;
@@ -82,6 +82,9 @@ export type DocsExportDestinationModel = {
82
82
  changes: DocsExportDestinationChanges | null;
83
83
  };
84
84
  export type DocsExportDestinationChanges = {
85
+ /** What the build publishes, absent on builds that publish everything */
86
+ pagePersistentIds?: string[];
87
+ groupPersistentIds?: string[];
85
88
  selectivePublishing: boolean | null;
86
89
  };
87
90
  /**
@@ -74,6 +74,8 @@ export type TokenUtilPreviewReferenceInfo = {
74
74
  export type TokenUtilPreviewReferenceInfoPiece = {
75
75
  key?: Array<TokenUtilPreviewTokenValueSegment>;
76
76
  value?: Array<TokenUtilPreviewTokenValueSegment>;
77
+ /** Opaque hex of a colour row, for a swatch beside it. Opacity has its own row */
78
+ swatchColor?: string;
77
79
  icon?: string;
78
80
  fullWidth?: boolean;
79
81
  wrapSegments?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/supernova-sdk-beta",
3
- "version": "2.4.9",
3
+ "version": "2.4.12",
4
4
  "description": "Supernova.io SDK",
5
5
  "main": "./build/supernova-sdk-typescript.js",
6
6
  "types": "./build/types/index.d.ts",