@supernova-studio/model 0.5.0 → 0.7.0
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/dist/index.d.mts +353 -234
- package/dist/index.d.ts +353 -234
- package/dist/index.js +27 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/billing/subscription.ts +1 -1
- package/src/dsm/data-sources/data-source.ts +1 -0
- package/src/dsm/elements/data/documentation-block-v1.ts +2 -0
- package/src/dsm/elements/data/documentation-block-v2.ts +2 -1
- package/src/dsm/elements/data/documentation.ts +6 -1
- package/src/workspace/npm-registry-settings.ts +7 -2
- package/src/workspace/workspace-membership.ts +10 -0
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CardSchema } from "./card";
|
|
2
|
-
import {
|
|
2
|
+
import { ProductCodeSchema } from "./product";
|
|
3
3
|
import { FeaturesSummary } from "./features";
|
|
4
4
|
import { BillingIntervalSchema } from "./price";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -66,6 +66,7 @@ export const DataSourceFigmaRemote = z.object({
|
|
|
66
66
|
state: DataSourceFigmaState,
|
|
67
67
|
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
68
68
|
downloadChunkSize: z.number().optional(),
|
|
69
|
+
figmaRenderChunkSize: z.number().optional(),
|
|
69
70
|
});
|
|
70
71
|
|
|
71
72
|
export type DataSourceFigmaFileData = z.infer<typeof DataSourceFigmaFileData>;
|
|
@@ -234,6 +234,8 @@ export type PageBlockTextSpan = z.infer<typeof PageBlockTextSpan>;
|
|
|
234
234
|
export type PageBlockText = z.infer<typeof PageBlockText>;
|
|
235
235
|
export type PageBlockFrame = z.infer<typeof PageBlockFrame>;
|
|
236
236
|
export type PageBlockFrameOrigin = z.infer<typeof PageBlockFrameOrigin>;
|
|
237
|
+
export type PageBlockAsset = z.infer<typeof PageBlockAsset>;
|
|
238
|
+
export type PageBlockTableColumn = z.infer<typeof PageBlockTableColumn>;
|
|
237
239
|
|
|
238
240
|
//
|
|
239
241
|
// Block
|
|
@@ -23,7 +23,8 @@ export type PageBlockTableCellAlignment = z.infer<typeof PageBlockTableCellAlign
|
|
|
23
23
|
//
|
|
24
24
|
|
|
25
25
|
export const PageBlockAppearanceV2 = z.object({
|
|
26
|
-
itemBackgroundColor: ColorValue,
|
|
26
|
+
itemBackgroundColor: ColorValue.optional(),
|
|
27
|
+
numberOfColumns: z.number().optional(),
|
|
27
28
|
});
|
|
28
29
|
|
|
29
30
|
export const PageBlockItemUntypedValue = z
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { DocumentationItemHeader } from "./item-header";
|
|
2
|
+
import { DocumentationItemHeader, defaultDocumentationItemHeader } from "./item-header";
|
|
3
3
|
|
|
4
4
|
export const DocumentationItemConfiguration = z.object({
|
|
5
5
|
showSidebar: z.boolean(),
|
|
@@ -7,3 +7,8 @@ export const DocumentationItemConfiguration = z.object({
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
export type DocumentationItemConfiguration = z.infer<typeof DocumentationItemConfiguration>;
|
|
10
|
+
|
|
11
|
+
export const defaultDocumentationItemConfiguration: DocumentationItemConfiguration = {
|
|
12
|
+
header: defaultDocumentationItemHeader,
|
|
13
|
+
showSidebar: true,
|
|
14
|
+
};
|
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
export const NpmRegistryAuthType = z.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4
|
-
|
|
4
|
+
const registryTypesWithoutAzure = ["NPMJS", "GitHub", "Artifactory", "Custom"] as const;
|
|
5
|
+
export const NpmRegistryType = z.enum([...registryTypesWithoutAzure, "AzureDevOps"]);
|
|
6
|
+
export const NpmRegistryTypeWithoutAzure = z.enum(registryTypesWithoutAzure);
|
|
5
7
|
|
|
6
8
|
export const NpmRegistryBasicAuthConfig = z.object({
|
|
9
|
+
registryType: NpmRegistryType,
|
|
7
10
|
authType: z.literal(NpmRegistryAuthType.Enum.Basic),
|
|
8
11
|
username: z.string(),
|
|
9
12
|
password: z.string(),
|
|
10
13
|
});
|
|
11
14
|
|
|
12
15
|
export const NpmRegistryBearerAuthConfig = z.object({
|
|
16
|
+
registryType: NpmRegistryTypeWithoutAzure,
|
|
13
17
|
authType: z.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
14
18
|
accessToken: z.string(),
|
|
15
19
|
});
|
|
16
20
|
|
|
17
21
|
export const NpmRegistryNoAuthConfig = z.object({
|
|
22
|
+
registryType: NpmRegistryTypeWithoutAzure,
|
|
18
23
|
authType: z.literal(NpmRegistryAuthType.Enum.None),
|
|
19
24
|
});
|
|
20
25
|
|
|
21
26
|
export const NpmRegistrCustomAuthConfig = z.object({
|
|
27
|
+
registryType: NpmRegistryTypeWithoutAzure,
|
|
22
28
|
authType: z.literal(NpmRegistryAuthType.Enum.Custom),
|
|
23
29
|
authHeaderName: z.string(),
|
|
24
30
|
authHeaderValue: z.string(),
|
|
@@ -32,7 +38,6 @@ export const NpmRegistryAuthConfig = z.discriminatedUnion("authType", [
|
|
|
32
38
|
]);
|
|
33
39
|
|
|
34
40
|
const NpmRegistryConfigBase = z.object({
|
|
35
|
-
registryType: NpmRegistryType,
|
|
36
41
|
enabledScopes: z.array(z.string()),
|
|
37
42
|
customRegistryUrl: z.string().optional(),
|
|
38
43
|
bypassProxy: z.boolean().default(false),
|
|
@@ -9,3 +9,13 @@ export const WorkspaceMembership = z.object({
|
|
|
9
9
|
});
|
|
10
10
|
|
|
11
11
|
export type WorkspaceMembership = z.infer<typeof WorkspaceMembership>;
|
|
12
|
+
|
|
13
|
+
export const UpdateMembershipRolesInput = z.object({
|
|
14
|
+
members: z.array(
|
|
15
|
+
z.object({
|
|
16
|
+
userId: z.string(),
|
|
17
|
+
role: z.nativeEnum(WorkspaceRole),
|
|
18
|
+
})
|
|
19
|
+
),
|
|
20
|
+
});
|
|
21
|
+
export type UpdateMembershipRolesInput = z.infer<typeof UpdateMembershipRolesInput>;
|