@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.
Files changed (99) 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/SDKSupernova.d.ts +9 -0
  4. package/build/types/core/areas/SDKAreaActivityEvents.d.ts +7 -0
  5. package/build/types/core/areas/SDKAreaAgentChats.d.ts +12 -0
  6. package/build/types/core/areas/SDKAreaBulkOperations.d.ts +76 -74
  7. package/build/types/core/areas/SDKAreaDataSources.d.ts +1 -1
  8. package/build/types/core/areas/SDKAreaDesignSystems.d.ts +13 -13
  9. package/build/types/core/areas/SDKAreaDocumentation.d.ts +304 -289
  10. package/build/types/core/areas/SDKAreaImport.d.ts +35 -0
  11. package/build/types/core/areas/SDKAreaMCP.d.ts +26 -1
  12. package/build/types/core/areas/SDKAreaProjects.d.ts +1084 -1100
  13. package/build/types/core/areas/SDKAreaRawData.d.ts +1040 -1039
  14. package/build/types/core/areas/SDKAreaResources.d.ts +90 -90
  15. package/build/types/core/areas/SDKAreaSanboxes.d.ts +9 -9
  16. package/build/types/core/areas/SDKAreaThreads.d.ts +67 -67
  17. package/build/types/core/areas/SDKAreaTokens.d.ts +17 -12
  18. package/build/types/core/areas/SDKAreaWorkspaces.d.ts +1 -1
  19. package/build/types/core/data/SDKDataCore.d.ts +1771 -1746
  20. package/build/types/core/data/SDKDataCoreCached.d.ts +2 -2
  21. package/build/types/core/data/requests/SDKDataCoreReadRequests.d.ts +647 -593
  22. package/build/types/core/data/requests/SDKDataCoreWriteRequests.d.ts +2515 -2489
  23. package/build/types/core/resolvers/SDKDocsEntityItemResolver.d.ts +121 -121
  24. package/build/types/core/resolvers/SDKSnapshotTokenBuilder.d.ts +28 -0
  25. package/build/types/core/resolvers/SDKTokenResolver.d.ts +11 -9
  26. package/build/types/exports.d.ts +19 -11
  27. package/build/types/model/activity-events/SDKActivityEvent.d.ts +49 -0
  28. package/build/types/model/agent-chats/SDKAgentChat.d.ts +31 -0
  29. package/build/types/model/base/SDKDesignSystem.d.ts +3 -1
  30. package/build/types/model/datasets/SDKDataset.d.ts +15 -5
  31. package/build/types/model/docs/blocks/definition/SDKDocsBlockBehavior.d.ts +4 -1
  32. package/build/types/model/docs/blocks/definition/actual/context-mcp/SDKDocsBlockActualContextMcp.d.ts +2 -0
  33. package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetProperty.d.ts +7 -24
  34. package/build/types/model/docs/blocks/properties/SDKDocsBlockAssetPropertyProperty.d.ts +3 -2
  35. package/build/types/model/docs/blocks/properties/SDKDocsBlockBooleanProperty.d.ts +3 -2
  36. package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeProperty.d.ts +3 -6
  37. package/build/types/model/docs/blocks/properties/SDKDocsBlockCodeSandboxProperty.d.ts +3 -8
  38. package/build/types/model/docs/blocks/properties/SDKDocsBlockColorProperty.d.ts +3 -3
  39. package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentProperty.d.ts +7 -10
  40. package/build/types/model/docs/blocks/properties/SDKDocsBlockComponentPropertyProperty.d.ts +3 -2
  41. package/build/types/model/docs/blocks/properties/SDKDocsBlockContextProperty.d.ts +16 -0
  42. package/build/types/model/docs/blocks/properties/SDKDocsBlockDividerProperty.d.ts +3 -2
  43. package/build/types/model/docs/blocks/properties/SDKDocsBlockEmbedUrlProperty.d.ts +3 -6
  44. package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaComponentProperty.d.ts +7 -26
  45. package/build/types/model/docs/blocks/properties/SDKDocsBlockFigmaNodeProperty.d.ts +7 -22
  46. package/build/types/model/docs/blocks/properties/SDKDocsBlockFileProperty.d.ts +4 -9
  47. package/build/types/model/docs/blocks/properties/SDKDocsBlockImageProperty.d.ts +3 -10
  48. package/build/types/model/docs/blocks/properties/SDKDocsBlockMarkdownProperty.d.ts +3 -2
  49. package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiRichTextProperty.d.ts +3 -3
  50. package/build/types/model/docs/blocks/properties/SDKDocsBlockMultiSelectProperty.d.ts +3 -2
  51. package/build/types/model/docs/blocks/properties/SDKDocsBlockNumberProperty.d.ts +3 -2
  52. package/build/types/model/docs/blocks/properties/SDKDocsBlockProperty.d.ts +3 -3
  53. package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextEditorProperty.d.ts +3 -3
  54. package/build/types/model/docs/blocks/properties/SDKDocsBlockRichTextProperty.d.ts +3 -7
  55. package/build/types/model/docs/blocks/properties/SDKDocsBlockSingleSelectProperty.d.ts +3 -2
  56. package/build/types/model/docs/blocks/properties/SDKDocsBlockStorybookProperty.d.ts +4 -22
  57. package/build/types/model/docs/blocks/properties/SDKDocsBlockTableProperty.d.ts +12 -28
  58. package/build/types/model/docs/blocks/properties/SDKDocsBlockTextProperty.d.ts +3 -2
  59. package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenProperty.d.ts +7 -31
  60. package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenPropertyProperty.d.ts +3 -2
  61. package/build/types/model/docs/blocks/properties/SDKDocsBlockTokenTypeProperty.d.ts +3 -3
  62. package/build/types/model/docs/blocks/properties/SDKDocsBlockUrlProperty.d.ts +3 -2
  63. package/build/types/model/docs/sections/SDKDocsSection.d.ts +0 -31
  64. package/build/types/model/documentation/SDKPageHistoryVersion.d.ts +20 -0
  65. package/build/types/model/documentation/blocks/SDKDocumentationLegacyPageBlockContextMcp.d.ts +11 -0
  66. package/build/types/model/elements/SDKElementPropertyOption.d.ts +1 -2
  67. package/build/types/model/enums/SDKCodeLanguage.d.ts +1 -1
  68. package/build/types/model/enums/SDKDesignSystemRole.d.ts +1 -2
  69. package/build/types/model/enums/SDKDocsBlockBehaviorSelectionType.d.ts +4 -2
  70. package/build/types/model/enums/SDKDocsBlockContainerSize.d.ts +6 -4
  71. package/build/types/model/enums/SDKDocsBlockItemPropertyType.d.ts +3 -1
  72. package/build/types/model/enums/SDKDocumentationLegacyPageBlockType.d.ts +1 -0
  73. package/build/types/model/enums/SDKTokenType.d.ts +2 -0
  74. package/build/types/model/enums/SDKWorkspaceSeatType.d.ts +14 -3
  75. package/build/types/model/exporters/SDKExporter.d.ts +2 -2
  76. package/build/types/model/exporters/SDKPipeline.d.ts +1 -1
  77. package/build/types/model/membership/SDKMembership.d.ts +1 -1
  78. package/build/types/model/support/SDKSource.d.ts +4 -3
  79. package/build/types/model/themes/SDKTokenThemeOverride.d.ts +1 -0
  80. package/build/types/model/tokens/remote/SDKRemoteTokenModel.d.ts +34 -1
  81. package/build/types/model/tokens/remote/SDKRemoteTokenValue.d.ts +1 -1
  82. package/build/types/model/workspaces/SDKWorkspaceProductPrice.d.ts +6 -3
  83. package/build/types/model/workspaces/SDKWorkspaceSubscription.d.ts +2 -6
  84. package/build/types/tools/design-tokens/SDKToolsDesignTokensPlugin.d.ts +6 -3
  85. package/build/types/tools/design-tokens/utilities/SDKDTJSONConverter.d.ts +29 -3
  86. package/build/types/tools/design-tokens/utilities/SDKDTJSONLoader.d.ts +2 -0
  87. package/build/types/tools/design-tokens/utilities/SDKDTMapLoader.d.ts +31 -0
  88. package/build/types/tools/design-tokens/utilities/SDKDTTokenReferenceResolver.d.ts +2 -0
  89. package/build/types/tools/design-tokens/utilities/unresolvable-modes/index.d.ts +4 -0
  90. package/build/types/tools/design-tokens/utilities/unresolvable-modes/lenient-resolve.d.ts +2 -0
  91. package/build/types/tools/design-tokens/utilities/unresolvable-modes/placeholder.d.ts +2 -0
  92. package/build/types/tools/design-tokens/utilities/unresolvable-modes/preserve.d.ts +2 -0
  93. package/build/types/tools/design-tokens/utilities/unresolvable-modes/strict.d.ts +2 -0
  94. package/build/types/tools/design-tokens/utilities/unresolvable-modes/types.d.ts +33 -0
  95. package/build/types/tools/docs-block-builder/SDKDocsBlockBuilder.d.ts +9 -0
  96. package/build/types/tools/json-builder/elements-transformers/SDKToolsJSONElementTransformer.d.ts +1 -1
  97. package/build/types/utils/TokenUtils.d.ts +1 -1
  98. package/package.json +17 -21
  99. package/build/types/model/enums/SDKDocsBlockTokenNameFormat.d.ts +0 -10
@@ -1,4 +1,4 @@
1
- import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTODeleteDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOMoveDocumentationGroupInput, DTOCreateDocumentationTabInput, DTODocumentationPageAnchor, DTODesignElementsDataDiffResponse, DTOPublishDocumentationRequest, DTOElementActionInput, DTOElementActionOutput, DTODocumentationPageDependenciesGetResponse, type DTODocumentationPageContent } from "@supernova-studio/client";
1
+ import { DTOCreateDocumentationGroupInput, DTOCreateDocumentationPageInputV2, DTOUpdateDocumentationGroupInput, DTOUpdateDocumentationPageInputV2, DTODuplicateDocumentationGroupInput, DTODuplicateDocumentationPageInputV2, DTODeleteDocumentationGroupInput, DTOMoveDocumentationPageInputV2, DTOMoveDocumentationGroupInput, DTOCreateDocumentationTabInput, DTODocumentationPageAnchor, DTODesignElementsDataDiffResponse, DTOPublishDocumentationRequest, DTOPageHistoryVersionCreatePayload, DTOElementActionInput, DTOElementActionOutput, DTODocumentationPageDependenciesGetResponse, type DTODocumentationPageContent, type DTODocumentationMarkdownFetchErrorCode, type DTODocumentationMarkdownFromUrlMode } from "@supernova-studio/client";
2
2
  import { DocumentationLegacy, DocumentationLegacyModel } from "../../model/base/SDKDocumentationLegacy";
3
3
  import { DocsBlockDefinition } from "../../model/docs/blocks/definition/SDKDocsBlockDefinition";
4
4
  import { DocsBlock } from "../../model/docs/blocks/usage/SDKDocsBlock";
@@ -8,6 +8,7 @@ import { DocsEntityPageModel } from "../../model/docs/entities/SDKDocsEntityPage
8
8
  import { DocsSection } from "../../model/docs/sections/SDKDocsSection";
9
9
  import { DocumentationLegacyGroup } from "../../model/documentation/SDKDocumentationLegacyGroup";
10
10
  import { DocumentationLegacyPage } from "../../model/documentation/SDKDocumentationLegacyPage";
11
+ import { PageHistoryVersion, PageHistoryVersionContent } from "../../model/documentation/SDKPageHistoryVersion";
11
12
  import { DocsPublishStatus } from "../../model/enums/SDKDocsPublishStatus";
12
13
  import { DocumentationEnvironment } from "../../model/enums/SDKDocumentationEnvironment";
13
14
  import { ExportBuild, ExportBuildStatus } from "../../model/exporters/exporter_builds/SDKExportBuild";
@@ -29,6 +30,16 @@ export declare class AreaDocumentation {
29
30
  * @returns Raw page content DTO, including the page block/section item tree
30
31
  */
31
32
  getDocumentationContentRaw(from: RemoteVersionIdentifier, pageId: string): Promise<DTODocumentationPageContent>;
33
+ /** Fetches markdown content from a remote URL through the workspace git integration, storing it for the version.
34
+ * @param from - Remote version to fetch from
35
+ * @param url - URL of the markdown file
36
+ * @param mode - Cached returns stored content, Refresh re-downloads and stores, Preview fetches without storing
37
+ * @returns Markdown content, with `lastError` set when stored content is served and its last refresh failed
38
+ */
39
+ getMarkdownFromUrl(from: RemoteVersionIdentifier, url: string, mode?: DTODocumentationMarkdownFromUrlMode): Promise<{
40
+ content: string;
41
+ lastError: DTODocumentationMarkdownFetchErrorCode | null;
42
+ }>;
32
43
  /**
33
44
  * Fetches the differences in elements, such as design tokens and assets, that have occurred since the documentation was published.
34
45
  * @param from Remote version to fetch from
@@ -96,126 +107,126 @@ export declare class AreaDocumentation {
96
107
  * @returns Newly created documentation group
97
108
  */
98
109
  updateDocumentationGroup(from: RemoteWorkspaceVersionIdentifier, payload: DTOUpdateDocumentationGroupInput): Promise<{
99
- type?: "DocumentationPageCreate";
100
- output?: {
101
- success?: true;
110
+ type: "DocumentationPageCreate";
111
+ output: {
112
+ success: true;
102
113
  };
103
114
  } | {
104
- type?: "DocumentationPageUpdate";
105
- output?: {
106
- success?: true;
115
+ type: "DocumentationPageUpdate";
116
+ output: {
117
+ success: true;
107
118
  };
108
119
  } | {
109
- type?: "DocumentationPageUpdateDocument";
110
- output?: {
111
- success?: true;
120
+ type: "DocumentationPageUpdateDocument";
121
+ output: {
122
+ success: true;
112
123
  };
113
124
  } | {
114
- type?: "DocumentationPageMove";
115
- output?: {
116
- success?: true;
125
+ type: "DocumentationPageMove";
126
+ output: {
127
+ success: true;
117
128
  };
118
129
  } | {
119
- type?: "DocumentationPageDuplicate";
120
- output?: {
121
- success?: true;
130
+ type: "DocumentationPageDuplicate";
131
+ output: {
132
+ success: true;
122
133
  };
123
134
  } | {
124
- type?: "DocumentationPageDelete";
125
- output?: {
126
- success?: true;
135
+ type: "DocumentationPageDelete";
136
+ output: {
137
+ success: true;
127
138
  };
128
139
  } | {
129
- type?: "DocumentationGroupCreate";
130
- output?: {
131
- success?: true;
140
+ type: "DocumentationGroupCreate";
141
+ output: {
142
+ success: true;
132
143
  };
133
144
  } | {
134
- type?: "DocumentationTabCreate";
135
- output?: {
136
- success?: true;
145
+ type: "DocumentationTabCreate";
146
+ output: {
147
+ success: true;
137
148
  };
138
149
  } | {
139
- type?: "DocumentationGroupUpdate";
140
- output?: {
141
- success?: true;
150
+ type: "DocumentationGroupUpdate";
151
+ output: {
152
+ success: true;
142
153
  };
143
154
  } | {
144
- type?: "DocumentationGroupMove";
145
- output?: {
146
- success?: true;
155
+ type: "DocumentationGroupMove";
156
+ output: {
157
+ success: true;
147
158
  };
148
159
  } | {
149
- type?: "DocumentationGroupDuplicate";
150
- output?: {
151
- success?: true;
160
+ type: "DocumentationGroupDuplicate";
161
+ output: {
162
+ success: true;
152
163
  };
153
164
  } | {
154
- type?: "DocumentationGroupDelete";
155
- output?: {
156
- success?: true;
165
+ type: "DocumentationGroupDelete";
166
+ output: {
167
+ success: true;
157
168
  };
158
169
  } | {
159
- type?: "DocumentationTabGroupDelete";
160
- output?: {
161
- success?: true;
170
+ type: "DocumentationTabGroupDelete";
171
+ output: {
172
+ success: true;
162
173
  };
163
174
  } | {
164
- type?: "FigmaNodeRenderAsync";
165
- figmaNodes?: {
166
- id?: string;
167
- designSystemVersionId?: string;
168
- createdAt?: Date;
169
- updatedAt?: Date;
170
- meta?: {
171
- name?: string;
175
+ type: "FigmaNodeRenderAsync";
176
+ figmaNodes: {
177
+ id: string;
178
+ designSystemVersionId: string;
179
+ createdAt: Date;
180
+ updatedAt: Date;
181
+ meta: {
182
+ name: string;
172
183
  description?: string;
173
184
  };
174
- persistentId?: string;
175
- data?: {
176
- sceneNodeId?: string;
177
- format?: "Png" | "Svg";
185
+ persistentId: string;
186
+ data: {
187
+ sceneNodeId: string;
188
+ format: "Png" | "Svg";
189
+ renderState: "Success" | "InProgress" | "Failed";
190
+ hasSource: boolean;
178
191
  scale?: number;
179
- renderState?: "Success" | "InProgress" | "Failed";
180
192
  renderedImage?: {
181
- url?: string;
193
+ resourceId: string;
194
+ format: "Png" | "Svg";
195
+ scale?: number;
182
196
  width?: number;
183
197
  height?: number;
184
- resourceId?: string;
185
- format?: "Png" | "Svg";
186
- scale?: number;
198
+ url?: string;
187
199
  originKey?: string;
188
200
  };
189
201
  renderError?: {
190
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
202
+ type: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
191
203
  };
192
- hasSource?: boolean;
193
204
  };
194
- origin?: {
195
- sourceId?: string;
205
+ origin: {
206
+ sourceId: string;
196
207
  fileId?: string;
197
208
  parentName?: string;
198
209
  };
199
210
  }[];
200
211
  } | {
201
- type?: "DocumentationPageRestore";
202
- output?: {
203
- success?: true;
212
+ type: "DocumentationPageRestore";
213
+ output: {
214
+ success: true;
204
215
  };
205
216
  } | {
206
- type?: "DocumentationGroupRestore";
207
- output?: {
208
- success?: true;
217
+ type: "DocumentationGroupRestore";
218
+ output: {
219
+ success: true;
209
220
  };
210
221
  } | {
211
- type?: "DocumentationPageApprovalStateChange";
212
- output?: {
213
- success?: true;
222
+ type: "DocumentationPageApprovalStateChange";
223
+ output: {
224
+ success: true;
214
225
  };
215
226
  } | {
216
- type?: "ElementPropertyValuesEdit";
217
- output?: {
218
- success?: true;
227
+ type: "ElementPropertyValuesEdit";
228
+ output: {
229
+ success: true;
219
230
  };
220
231
  }>;
221
232
  /** Moves a documentation page
@@ -224,126 +235,126 @@ export declare class AreaDocumentation {
224
235
  * @returns nothing
225
236
  */
226
237
  moveDocumentationPage(from: RemoteWorkspaceVersionIdentifier, payload: DTOMoveDocumentationPageInputV2): Promise<{
227
- type?: "DocumentationPageCreate";
228
- output?: {
229
- success?: true;
238
+ type: "DocumentationPageCreate";
239
+ output: {
240
+ success: true;
230
241
  };
231
242
  } | {
232
- type?: "DocumentationPageUpdate";
233
- output?: {
234
- success?: true;
243
+ type: "DocumentationPageUpdate";
244
+ output: {
245
+ success: true;
235
246
  };
236
247
  } | {
237
- type?: "DocumentationPageUpdateDocument";
238
- output?: {
239
- success?: true;
248
+ type: "DocumentationPageUpdateDocument";
249
+ output: {
250
+ success: true;
240
251
  };
241
252
  } | {
242
- type?: "DocumentationPageMove";
243
- output?: {
244
- success?: true;
253
+ type: "DocumentationPageMove";
254
+ output: {
255
+ success: true;
245
256
  };
246
257
  } | {
247
- type?: "DocumentationPageDuplicate";
248
- output?: {
249
- success?: true;
258
+ type: "DocumentationPageDuplicate";
259
+ output: {
260
+ success: true;
250
261
  };
251
262
  } | {
252
- type?: "DocumentationPageDelete";
253
- output?: {
254
- success?: true;
263
+ type: "DocumentationPageDelete";
264
+ output: {
265
+ success: true;
255
266
  };
256
267
  } | {
257
- type?: "DocumentationGroupCreate";
258
- output?: {
259
- success?: true;
268
+ type: "DocumentationGroupCreate";
269
+ output: {
270
+ success: true;
260
271
  };
261
272
  } | {
262
- type?: "DocumentationTabCreate";
263
- output?: {
264
- success?: true;
273
+ type: "DocumentationTabCreate";
274
+ output: {
275
+ success: true;
265
276
  };
266
277
  } | {
267
- type?: "DocumentationGroupUpdate";
268
- output?: {
269
- success?: true;
278
+ type: "DocumentationGroupUpdate";
279
+ output: {
280
+ success: true;
270
281
  };
271
282
  } | {
272
- type?: "DocumentationGroupMove";
273
- output?: {
274
- success?: true;
283
+ type: "DocumentationGroupMove";
284
+ output: {
285
+ success: true;
275
286
  };
276
287
  } | {
277
- type?: "DocumentationGroupDuplicate";
278
- output?: {
279
- success?: true;
288
+ type: "DocumentationGroupDuplicate";
289
+ output: {
290
+ success: true;
280
291
  };
281
292
  } | {
282
- type?: "DocumentationGroupDelete";
283
- output?: {
284
- success?: true;
293
+ type: "DocumentationGroupDelete";
294
+ output: {
295
+ success: true;
285
296
  };
286
297
  } | {
287
- type?: "DocumentationTabGroupDelete";
288
- output?: {
289
- success?: true;
298
+ type: "DocumentationTabGroupDelete";
299
+ output: {
300
+ success: true;
290
301
  };
291
302
  } | {
292
- type?: "FigmaNodeRenderAsync";
293
- figmaNodes?: {
294
- id?: string;
295
- designSystemVersionId?: string;
296
- createdAt?: Date;
297
- updatedAt?: Date;
298
- meta?: {
299
- name?: string;
303
+ type: "FigmaNodeRenderAsync";
304
+ figmaNodes: {
305
+ id: string;
306
+ designSystemVersionId: string;
307
+ createdAt: Date;
308
+ updatedAt: Date;
309
+ meta: {
310
+ name: string;
300
311
  description?: string;
301
312
  };
302
- persistentId?: string;
303
- data?: {
304
- sceneNodeId?: string;
305
- format?: "Png" | "Svg";
313
+ persistentId: string;
314
+ data: {
315
+ sceneNodeId: string;
316
+ format: "Png" | "Svg";
317
+ renderState: "Success" | "InProgress" | "Failed";
318
+ hasSource: boolean;
306
319
  scale?: number;
307
- renderState?: "Success" | "InProgress" | "Failed";
308
320
  renderedImage?: {
309
- url?: string;
321
+ resourceId: string;
322
+ format: "Png" | "Svg";
323
+ scale?: number;
310
324
  width?: number;
311
325
  height?: number;
312
- resourceId?: string;
313
- format?: "Png" | "Svg";
314
- scale?: number;
326
+ url?: string;
315
327
  originKey?: string;
316
328
  };
317
329
  renderError?: {
318
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
330
+ type: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
319
331
  };
320
- hasSource?: boolean;
321
332
  };
322
- origin?: {
323
- sourceId?: string;
333
+ origin: {
334
+ sourceId: string;
324
335
  fileId?: string;
325
336
  parentName?: string;
326
337
  };
327
338
  }[];
328
339
  } | {
329
- type?: "DocumentationPageRestore";
330
- output?: {
331
- success?: true;
340
+ type: "DocumentationPageRestore";
341
+ output: {
342
+ success: true;
332
343
  };
333
344
  } | {
334
- type?: "DocumentationGroupRestore";
335
- output?: {
336
- success?: true;
345
+ type: "DocumentationGroupRestore";
346
+ output: {
347
+ success: true;
337
348
  };
338
349
  } | {
339
- type?: "DocumentationPageApprovalStateChange";
340
- output?: {
341
- success?: true;
350
+ type: "DocumentationPageApprovalStateChange";
351
+ output: {
352
+ success: true;
342
353
  };
343
354
  } | {
344
- type?: "ElementPropertyValuesEdit";
345
- output?: {
346
- success?: true;
355
+ type: "ElementPropertyValuesEdit";
356
+ output: {
357
+ success: true;
347
358
  };
348
359
  }>;
349
360
  /** Moves a documentation group
@@ -352,126 +363,126 @@ export declare class AreaDocumentation {
352
363
  * @returns nothing
353
364
  */
354
365
  moveDocumentationGroup(from: RemoteWorkspaceVersionIdentifier, payload: DTOMoveDocumentationGroupInput): Promise<{
355
- type?: "DocumentationPageCreate";
356
- output?: {
357
- success?: true;
366
+ type: "DocumentationPageCreate";
367
+ output: {
368
+ success: true;
358
369
  };
359
370
  } | {
360
- type?: "DocumentationPageUpdate";
361
- output?: {
362
- success?: true;
371
+ type: "DocumentationPageUpdate";
372
+ output: {
373
+ success: true;
363
374
  };
364
375
  } | {
365
- type?: "DocumentationPageUpdateDocument";
366
- output?: {
367
- success?: true;
376
+ type: "DocumentationPageUpdateDocument";
377
+ output: {
378
+ success: true;
368
379
  };
369
380
  } | {
370
- type?: "DocumentationPageMove";
371
- output?: {
372
- success?: true;
381
+ type: "DocumentationPageMove";
382
+ output: {
383
+ success: true;
373
384
  };
374
385
  } | {
375
- type?: "DocumentationPageDuplicate";
376
- output?: {
377
- success?: true;
386
+ type: "DocumentationPageDuplicate";
387
+ output: {
388
+ success: true;
378
389
  };
379
390
  } | {
380
- type?: "DocumentationPageDelete";
381
- output?: {
382
- success?: true;
391
+ type: "DocumentationPageDelete";
392
+ output: {
393
+ success: true;
383
394
  };
384
395
  } | {
385
- type?: "DocumentationGroupCreate";
386
- output?: {
387
- success?: true;
396
+ type: "DocumentationGroupCreate";
397
+ output: {
398
+ success: true;
388
399
  };
389
400
  } | {
390
- type?: "DocumentationTabCreate";
391
- output?: {
392
- success?: true;
401
+ type: "DocumentationTabCreate";
402
+ output: {
403
+ success: true;
393
404
  };
394
405
  } | {
395
- type?: "DocumentationGroupUpdate";
396
- output?: {
397
- success?: true;
406
+ type: "DocumentationGroupUpdate";
407
+ output: {
408
+ success: true;
398
409
  };
399
410
  } | {
400
- type?: "DocumentationGroupMove";
401
- output?: {
402
- success?: true;
411
+ type: "DocumentationGroupMove";
412
+ output: {
413
+ success: true;
403
414
  };
404
415
  } | {
405
- type?: "DocumentationGroupDuplicate";
406
- output?: {
407
- success?: true;
416
+ type: "DocumentationGroupDuplicate";
417
+ output: {
418
+ success: true;
408
419
  };
409
420
  } | {
410
- type?: "DocumentationGroupDelete";
411
- output?: {
412
- success?: true;
421
+ type: "DocumentationGroupDelete";
422
+ output: {
423
+ success: true;
413
424
  };
414
425
  } | {
415
- type?: "DocumentationTabGroupDelete";
416
- output?: {
417
- success?: true;
426
+ type: "DocumentationTabGroupDelete";
427
+ output: {
428
+ success: true;
418
429
  };
419
430
  } | {
420
- type?: "FigmaNodeRenderAsync";
421
- figmaNodes?: {
422
- id?: string;
423
- designSystemVersionId?: string;
424
- createdAt?: Date;
425
- updatedAt?: Date;
426
- meta?: {
427
- name?: string;
431
+ type: "FigmaNodeRenderAsync";
432
+ figmaNodes: {
433
+ id: string;
434
+ designSystemVersionId: string;
435
+ createdAt: Date;
436
+ updatedAt: Date;
437
+ meta: {
438
+ name: string;
428
439
  description?: string;
429
440
  };
430
- persistentId?: string;
431
- data?: {
432
- sceneNodeId?: string;
433
- format?: "Png" | "Svg";
441
+ persistentId: string;
442
+ data: {
443
+ sceneNodeId: string;
444
+ format: "Png" | "Svg";
445
+ renderState: "Success" | "InProgress" | "Failed";
446
+ hasSource: boolean;
434
447
  scale?: number;
435
- renderState?: "Success" | "InProgress" | "Failed";
436
448
  renderedImage?: {
437
- url?: string;
449
+ resourceId: string;
450
+ format: "Png" | "Svg";
451
+ scale?: number;
438
452
  width?: number;
439
453
  height?: number;
440
- resourceId?: string;
441
- format?: "Png" | "Svg";
442
- scale?: number;
454
+ url?: string;
443
455
  originKey?: string;
444
456
  };
445
457
  renderError?: {
446
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
458
+ type: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
447
459
  };
448
- hasSource?: boolean;
449
460
  };
450
- origin?: {
451
- sourceId?: string;
461
+ origin: {
462
+ sourceId: string;
452
463
  fileId?: string;
453
464
  parentName?: string;
454
465
  };
455
466
  }[];
456
467
  } | {
457
- type?: "DocumentationPageRestore";
458
- output?: {
459
- success?: true;
468
+ type: "DocumentationPageRestore";
469
+ output: {
470
+ success: true;
460
471
  };
461
472
  } | {
462
- type?: "DocumentationGroupRestore";
463
- output?: {
464
- success?: true;
473
+ type: "DocumentationGroupRestore";
474
+ output: {
475
+ success: true;
465
476
  };
466
477
  } | {
467
- type?: "DocumentationPageApprovalStateChange";
468
- output?: {
469
- success?: true;
478
+ type: "DocumentationPageApprovalStateChange";
479
+ output: {
480
+ success: true;
470
481
  };
471
482
  } | {
472
- type?: "ElementPropertyValuesEdit";
473
- output?: {
474
- success?: true;
483
+ type: "ElementPropertyValuesEdit";
484
+ output: {
485
+ success: true;
475
486
  };
476
487
  }>;
477
488
  /** Deletes a documentation group
@@ -519,126 +530,126 @@ export declare class AreaDocumentation {
519
530
  * @returns page
520
531
  */
521
532
  updateDocumentationPageOrTab(from: RemoteWorkspaceVersionIdentifier, payload: DTOUpdateDocumentationPageInputV2): Promise<{
522
- type?: "DocumentationPageCreate";
523
- output?: {
524
- success?: true;
533
+ type: "DocumentationPageCreate";
534
+ output: {
535
+ success: true;
525
536
  };
526
537
  } | {
527
- type?: "DocumentationPageUpdate";
528
- output?: {
529
- success?: true;
538
+ type: "DocumentationPageUpdate";
539
+ output: {
540
+ success: true;
530
541
  };
531
542
  } | {
532
- type?: "DocumentationPageUpdateDocument";
533
- output?: {
534
- success?: true;
543
+ type: "DocumentationPageUpdateDocument";
544
+ output: {
545
+ success: true;
535
546
  };
536
547
  } | {
537
- type?: "DocumentationPageMove";
538
- output?: {
539
- success?: true;
548
+ type: "DocumentationPageMove";
549
+ output: {
550
+ success: true;
540
551
  };
541
552
  } | {
542
- type?: "DocumentationPageDuplicate";
543
- output?: {
544
- success?: true;
553
+ type: "DocumentationPageDuplicate";
554
+ output: {
555
+ success: true;
545
556
  };
546
557
  } | {
547
- type?: "DocumentationPageDelete";
548
- output?: {
549
- success?: true;
558
+ type: "DocumentationPageDelete";
559
+ output: {
560
+ success: true;
550
561
  };
551
562
  } | {
552
- type?: "DocumentationGroupCreate";
553
- output?: {
554
- success?: true;
563
+ type: "DocumentationGroupCreate";
564
+ output: {
565
+ success: true;
555
566
  };
556
567
  } | {
557
- type?: "DocumentationTabCreate";
558
- output?: {
559
- success?: true;
568
+ type: "DocumentationTabCreate";
569
+ output: {
570
+ success: true;
560
571
  };
561
572
  } | {
562
- type?: "DocumentationGroupUpdate";
563
- output?: {
564
- success?: true;
573
+ type: "DocumentationGroupUpdate";
574
+ output: {
575
+ success: true;
565
576
  };
566
577
  } | {
567
- type?: "DocumentationGroupMove";
568
- output?: {
569
- success?: true;
578
+ type: "DocumentationGroupMove";
579
+ output: {
580
+ success: true;
570
581
  };
571
582
  } | {
572
- type?: "DocumentationGroupDuplicate";
573
- output?: {
574
- success?: true;
583
+ type: "DocumentationGroupDuplicate";
584
+ output: {
585
+ success: true;
575
586
  };
576
587
  } | {
577
- type?: "DocumentationGroupDelete";
578
- output?: {
579
- success?: true;
588
+ type: "DocumentationGroupDelete";
589
+ output: {
590
+ success: true;
580
591
  };
581
592
  } | {
582
- type?: "DocumentationTabGroupDelete";
583
- output?: {
584
- success?: true;
593
+ type: "DocumentationTabGroupDelete";
594
+ output: {
595
+ success: true;
585
596
  };
586
597
  } | {
587
- type?: "FigmaNodeRenderAsync";
588
- figmaNodes?: {
589
- id?: string;
590
- designSystemVersionId?: string;
591
- createdAt?: Date;
592
- updatedAt?: Date;
593
- meta?: {
594
- name?: string;
598
+ type: "FigmaNodeRenderAsync";
599
+ figmaNodes: {
600
+ id: string;
601
+ designSystemVersionId: string;
602
+ createdAt: Date;
603
+ updatedAt: Date;
604
+ meta: {
605
+ name: string;
595
606
  description?: string;
596
607
  };
597
- persistentId?: string;
598
- data?: {
599
- sceneNodeId?: string;
600
- format?: "Png" | "Svg";
608
+ persistentId: string;
609
+ data: {
610
+ sceneNodeId: string;
611
+ format: "Png" | "Svg";
612
+ renderState: "Success" | "InProgress" | "Failed";
613
+ hasSource: boolean;
601
614
  scale?: number;
602
- renderState?: "Success" | "InProgress" | "Failed";
603
615
  renderedImage?: {
604
- url?: string;
616
+ resourceId: string;
617
+ format: "Png" | "Svg";
618
+ scale?: number;
605
619
  width?: number;
606
620
  height?: number;
607
- resourceId?: string;
608
- format?: "Png" | "Svg";
609
- scale?: number;
621
+ url?: string;
610
622
  originKey?: string;
611
623
  };
612
624
  renderError?: {
613
- type?: "MissingIntegration" | "NodeNotFound" | "RenderError";
625
+ type: "MissingIntegration" | "NodeNotFound" | "RateLimitExceeded" | "RenderError";
614
626
  };
615
- hasSource?: boolean;
616
627
  };
617
- origin?: {
618
- sourceId?: string;
628
+ origin: {
629
+ sourceId: string;
619
630
  fileId?: string;
620
631
  parentName?: string;
621
632
  };
622
633
  }[];
623
634
  } | {
624
- type?: "DocumentationPageRestore";
625
- output?: {
626
- success?: true;
635
+ type: "DocumentationPageRestore";
636
+ output: {
637
+ success: true;
627
638
  };
628
639
  } | {
629
- type?: "DocumentationGroupRestore";
630
- output?: {
631
- success?: true;
640
+ type: "DocumentationGroupRestore";
641
+ output: {
642
+ success: true;
632
643
  };
633
644
  } | {
634
- type?: "DocumentationPageApprovalStateChange";
635
- output?: {
636
- success?: true;
645
+ type: "DocumentationPageApprovalStateChange";
646
+ output: {
647
+ success: true;
637
648
  };
638
649
  } | {
639
- type?: "ElementPropertyValuesEdit";
640
- output?: {
641
- success?: true;
650
+ type: "ElementPropertyValuesEdit";
651
+ output: {
652
+ success: true;
642
653
  };
643
654
  }>;
644
655
  /** Duplicates a documentation tab or page
@@ -676,6 +687,10 @@ export declare class AreaDocumentation {
676
687
  * @returns Room ID that can be immediately used to join the multiplayer room
677
688
  */
678
689
  getDocumentationPageRoomId(from: RemoteWorkspaceVersionIdentifier, pageId: string): Promise<string>;
690
+ listPageHistoryVersions(from: RemoteWorkspaceVersionIdentifier, pageId: string): Promise<PageHistoryVersion[]>;
691
+ getPageHistoryVersion(from: RemoteWorkspaceVersionIdentifier, pageId: string, pageHistoryVersionId: string): Promise<PageHistoryVersionContent>;
692
+ createPageHistoryVersion(from: RemoteWorkspaceVersionIdentifier, pageId: string, payload: DTOPageHistoryVersionCreatePayload): Promise<PageHistoryVersion>;
693
+ restorePageHistoryVersion(from: RemoteWorkspaceVersionIdentifier, pageId: string, pageHistoryVersionId: string): Promise<PageHistoryVersion>;
679
694
  /** Get id of the room for a specific design system and version. This room contains doc structure
680
695
  * @param from - Remote version to fetch from
681
696
  * @returns Room ID that can be immediately used to join the multiplayer room