@supernova-studio/client 0.46.9 → 0.46.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supernova-studio/client",
3
- "version": "0.46.9",
3
+ "version": "0.46.11",
4
4
  "description": "Supernova Data Models",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -5,6 +5,10 @@ import { z } from "zod";
5
5
  // Read
6
6
  //
7
7
 
8
+ export const DTONpmRegistryConfigConstants = {
9
+ passwordPlaceholder: "redacted",
10
+ };
11
+
8
12
  export const DTONpmRegistryConfig = z.object({
9
13
  // Registry basic configuration
10
14
  registryType: NpmRegistryType,
@@ -16,9 +20,9 @@ export const DTONpmRegistryConfig = z.object({
16
20
 
17
21
  // Auth configuration
18
22
  authType: NpmRegistryAuthType,
19
- accessToken: z.literal("redacted").optional(),
23
+ accessToken: z.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
20
24
  username: z.string().optional(),
21
- password: z.literal("redacted").optional(),
25
+ password: z.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
22
26
 
23
27
  // NPM package scopes for whih the proxy should be enabled
24
28
  enabledScopes: z.array(z.string()),
@@ -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>;