@supernova-studio/model 0.48.21 → 0.48.23

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/model",
3
- "version": "0.48.21",
3
+ "version": "0.48.23",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -44,12 +44,17 @@ export const DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoom
44
44
  blockDefinitions: z.array(PageBlockDefinition),
45
45
  });
46
46
 
47
+ export const DocumentationPageRestorationType = z.enum(["Restore", "Revert"]);
48
+ export type DocumentationPageRestorationType = z.infer<typeof DocumentationPageRestorationType>;
49
+
47
50
  export const RestoredDocumentationPage = z.object({
48
51
  page: DocumentationPageV2,
49
52
  pageParent: ElementGroup,
50
53
  pageContent: DocumentationPageContentData,
51
54
  contentHash: z.string(),
55
+ snapshotId: z.string(),
52
56
  roomId: z.string().optional(),
57
+ type: DocumentationPageRestorationType,
53
58
  });
54
59
 
55
60
  export const RestoredDocumentationGroup = z.object({
@@ -15,6 +15,7 @@ export const UserOnboarding = z.object({
15
15
  designSystemName: z.string().optional(),
16
16
  defaultDestination: z.string().optional(),
17
17
  figmaUrl: z.string().optional(),
18
+ isPageDraftOnboardingFinished: z.boolean().optional(),
18
19
  });
19
20
 
20
21
  export type UserOnboarding = z.infer<typeof UserOnboarding>;