@supernova-studio/client 0.46.8 → 0.46.10

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/client",
3
- "version": "0.46.8",
3
+ "version": "0.46.10",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -15,7 +15,15 @@ export const DTOCreateVersionInput = z.object({
15
15
  version: z.string().refine(validateDesignSystemVersion, {
16
16
  message: "Invalid semantic versioning format",
17
17
  }),
18
- changeLog: z.string().max(2000).optional()
18
+ changeLog: z.string().optional(),
19
19
  });
20
20
 
21
21
  export type DTOCreateVersionInput = z.infer<typeof DTOCreateVersionInput>;
22
+
23
+ export const DTOUpdateVersionInput = z.object({
24
+ meta: ObjectMeta,
25
+ version: z.string(), // required for PUT, but not editable
26
+ changeLog: z.string(),
27
+ });
28
+
29
+ export type DTOUpdateVersionInput = z.infer<typeof DTOUpdateVersionInput>;