@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.mjs CHANGED
@@ -293,7 +293,8 @@ var DataSourceFigmaRemote = z14.object({
293
293
  scope: DataSourceFigmaScope,
294
294
  state: DataSourceFigmaState,
295
295
  lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
296
- downloadChunkSize: z14.number().optional()
296
+ downloadChunkSize: z14.number().optional(),
297
+ figmaRenderChunkSize: z14.number().optional()
297
298
  });
298
299
  var DataSourceTokenStudioRemote = z14.object({
299
300
  type: z14.literal(DataSourceRemoteType.Enum.TokenStudio)
@@ -874,7 +875,8 @@ var PageBlockImageType = z33.enum(["Upload", "Asset", "FigmaFrame"]);
874
875
  var PageBlockImageAlignment = z33.enum(["Left", "Center", "Stretch"]);
875
876
  var PageBlockTableCellAlignment = z33.enum(["Left", "Center", "Right"]);
876
877
  var PageBlockAppearanceV2 = z33.object({
877
- itemBackgroundColor: ColorValue
878
+ itemBackgroundColor: ColorValue.optional(),
879
+ numberOfColumns: z33.number().optional()
878
880
  });
879
881
  var PageBlockItemUntypedValue = z33.object({
880
882
  value: z33.any()
@@ -1117,6 +1119,10 @@ var DocumentationItemConfiguration = z37.object({
1117
1119
  showSidebar: z37.boolean(),
1118
1120
  header: DocumentationItemHeader
1119
1121
  });
1122
+ var defaultDocumentationItemConfiguration = {
1123
+ header: defaultDocumentationItemHeader,
1124
+ showSidebar: true
1125
+ };
1120
1126
 
1121
1127
  // src/dsm/elements/data/documentation-page-v1.ts
1122
1128
  var DocumentationPageDataV1 = z38.object({
@@ -2228,20 +2234,26 @@ import { z as z98 } from "zod";
2228
2234
  // src/workspace/npm-registry-settings.ts
2229
2235
  import { z as z89 } from "zod";
2230
2236
  var NpmRegistryAuthType = z89.enum(["Basic", "Bearer", "None", "Custom"]);
2231
- var NpmRegistryType = z89.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2237
+ var registryTypesWithoutAzure = ["NPMJS", "GitHub", "Artifactory", "Custom"];
2238
+ var NpmRegistryType = z89.enum([...registryTypesWithoutAzure, "AzureDevOps"]);
2239
+ var NpmRegistryTypeWithoutAzure = z89.enum(registryTypesWithoutAzure);
2232
2240
  var NpmRegistryBasicAuthConfig = z89.object({
2241
+ registryType: NpmRegistryType,
2233
2242
  authType: z89.literal(NpmRegistryAuthType.Enum.Basic),
2234
2243
  username: z89.string(),
2235
2244
  password: z89.string()
2236
2245
  });
2237
2246
  var NpmRegistryBearerAuthConfig = z89.object({
2247
+ registryType: NpmRegistryTypeWithoutAzure,
2238
2248
  authType: z89.literal(NpmRegistryAuthType.Enum.Bearer),
2239
2249
  accessToken: z89.string()
2240
2250
  });
2241
2251
  var NpmRegistryNoAuthConfig = z89.object({
2252
+ registryType: NpmRegistryTypeWithoutAzure,
2242
2253
  authType: z89.literal(NpmRegistryAuthType.Enum.None)
2243
2254
  });
2244
2255
  var NpmRegistrCustomAuthConfig = z89.object({
2256
+ registryType: NpmRegistryTypeWithoutAzure,
2245
2257
  authType: z89.literal(NpmRegistryAuthType.Enum.Custom),
2246
2258
  authHeaderName: z89.string(),
2247
2259
  authHeaderValue: z89.string()
@@ -2253,7 +2265,6 @@ var NpmRegistryAuthConfig = z89.discriminatedUnion("authType", [
2253
2265
  NpmRegistrCustomAuthConfig
2254
2266
  ]);
2255
2267
  var NpmRegistryConfigBase = z89.object({
2256
- registryType: NpmRegistryType,
2257
2268
  enabledScopes: z89.array(z89.string()),
2258
2269
  customRegistryUrl: z89.string().optional(),
2259
2270
  bypassProxy: z89.boolean().default(false),
@@ -2340,6 +2351,14 @@ var WorkspaceMembership = z96.object({
2340
2351
  workspaceId: z96.string(),
2341
2352
  workspaceRole: z96.nativeEnum(WorkspaceRole)
2342
2353
  });
2354
+ var UpdateMembershipRolesInput = z96.object({
2355
+ members: z96.array(
2356
+ z96.object({
2357
+ userId: z96.string(),
2358
+ role: z96.nativeEnum(WorkspaceRole)
2359
+ })
2360
+ )
2361
+ });
2343
2362
 
2344
2363
  // src/workspace/workspace.ts
2345
2364
  import { z as z97 } from "zod";
@@ -3072,6 +3091,7 @@ export {
3072
3091
  NpmRegistryConfig,
3073
3092
  NpmRegistryNoAuthConfig,
3074
3093
  NpmRegistryType,
3094
+ NpmRegistryTypeWithoutAzure,
3075
3095
  OAuthProvider,
3076
3096
  OAuthProviderNames,
3077
3097
  OAuthProviderSchema,
@@ -3254,6 +3274,7 @@ export {
3254
3274
  TokenDataAliasSchema,
3255
3275
  TypographyTokenData,
3256
3276
  TypographyValue,
3277
+ UpdateMembershipRolesInput,
3257
3278
  UrlImageImportModel,
3258
3279
  User,
3259
3280
  UserIdentity,
@@ -3284,6 +3305,7 @@ export {
3284
3305
  addImportModelCollections,
3285
3306
  colorValueFormatDescription,
3286
3307
  colorValueRegex,
3308
+ defaultDocumentationItemConfiguration,
3287
3309
  defaultDocumentationItemHeader,
3288
3310
  designTokenImportModelTypeFilter,
3289
3311
  designTokenTypeFilter,