@supernova-studio/model 0.48.22 → 0.48.24

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.22",
3
+ "version": "0.48.24",
4
4
  "description": "Supernova Data Models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -3,7 +3,7 @@ import { DesignSystem } from "./design-system";
3
3
 
4
4
  const DS_NAME_MIN_LENGTH: number = 2;
5
5
  const DS_NAME_MAX_LENGTH: number = 64;
6
- const DS_DESC_MAX_LENGTH: number = 64;
6
+ const DS_DESC_MAX_LENGTH: number = 2048;
7
7
 
8
8
  const DesignSystemUpdateInputMetadata = z.object({
9
9
  name: z.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
@@ -13,11 +13,11 @@ const DesignSystemUpdateInputMetadata = z.object({
13
13
  export const DesignSystemUpdateInput = DesignSystem.partial()
14
14
  .omit({
15
15
  id: true,
16
+ workspaceId: true,
16
17
  createdAt: true,
17
18
  updatedAt: true,
18
19
  docSlug: true,
19
20
  docViewUrl: true,
20
- designSystemSwitcher: true,
21
21
  })
22
22
  .extend({
23
23
  meta: DesignSystemUpdateInputMetadata.optional(),
@@ -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({