@supernova-studio/model 0.8.0 → 0.9.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
@@ -883,6 +883,7 @@ var PageBlockImageType = z33.enum(["Upload", "Asset", "FigmaFrame"]);
883
883
  var PageBlockImageAlignment = z33.enum(["Left", "Center", "Stretch"]);
884
884
  var PageBlockTableCellAlignment = z33.enum(["Left", "Center", "Right"]);
885
885
  var PageBlockPreviewContainerSize = z33.enum(["Centered", "NaturalHeight"]);
886
+ var PageBlockThemeDisplayMode = z33.enum(["Split", "Override"]);
886
887
  var PageBlockAppearanceV2 = z33.object({
887
888
  itemBackgroundColor: ColorValue.optional(),
888
889
  numberOfColumns: z33.number().optional()
@@ -955,6 +956,7 @@ var PageBlockItemSandboxValue = z33.object({
955
956
  showCode: z33.boolean().optional(),
956
957
  backgroundColor: z33.string().optional(),
957
958
  alignPreview: z33.enum(["Left", "Center"]).optional(),
959
+ previewHeight: z33.number().optional(),
958
960
  value: z33.string()
959
961
  });
960
962
  var PageBlockItemColorValue = z33.record(z33.any());
@@ -1013,11 +1015,14 @@ var PageBlockItemTextValue = z33.object({
1013
1015
  var PageBlockItemTokenValue = z33.object({
1014
1016
  selectedPropertyIds: z33.array(z33.string()).optional(),
1015
1017
  selectedThemeIds: z33.array(z33.string()).optional(),
1016
- themeDisplayMode: z33.enum(["Split", "Override"]).optional(),
1018
+ themeDisplayMode: PageBlockThemeDisplayMode.optional(),
1017
1019
  value: z33.array(
1018
1020
  z33.object({
1019
1021
  entityId: z33.string(),
1020
- entityType: z33.enum(["Token", "TokenGroup"])
1022
+ entityType: z33.enum(["Token", "TokenGroup"]),
1023
+ entityMeta: z33.object({
1024
+ showNestedGroups: z33.boolean().optional()
1025
+ }).optional()
1021
1026
  })
1022
1027
  )
1023
1028
  });
@@ -2322,15 +2327,51 @@ var UserInvite = z92.object({
2322
2327
  var UserInvites = z92.array(UserInvite).max(MAX_MEMBERS_COUNT);
2323
2328
 
2324
2329
  // src/workspace/workspace-context.ts
2330
+ import { z as z94 } from "zod";
2331
+
2332
+ // src/workspace/workspace.ts
2325
2333
  import { z as z93 } from "zod";
2326
- var WorkspaceContext = z93.object({
2327
- workspaceId: z93.string(),
2334
+ var WorkspaceIpWhitelistEntry = z93.object({
2335
+ isEnabled: z93.boolean(),
2336
+ name: z93.string(),
2337
+ range: z93.string()
2338
+ });
2339
+ var WorkspaceIpSettings = z93.object({
2340
+ isEnabledForCloud: z93.boolean(),
2341
+ isEnabledForDocs: z93.boolean(),
2342
+ entries: z93.array(WorkspaceIpWhitelistEntry)
2343
+ }).nullish();
2344
+ var WorkspaceProfile = z93.object({
2345
+ name: z93.string(),
2346
+ handle: z93.string(),
2347
+ color: z93.string(),
2348
+ avatar: z93.string().optional(),
2349
+ billingDetails: BillingDetails.optional()
2350
+ });
2351
+ var Workspace = z93.object({
2352
+ id: z93.string(),
2353
+ profile: WorkspaceProfile,
2354
+ subscription: Subscription,
2355
+ ipWhitelist: WorkspaceIpSettings,
2356
+ sso: SsoProvider.nullish(),
2357
+ npmRegistrySettings: z93.unknown().optional(),
2358
+ designSystems: z93.array(DesignSystem).nullish()
2359
+ });
2360
+ var WorkspaceWithDesignSystems = z93.object({
2361
+ workspace: Workspace,
2362
+ designSystems: z93.array(DesignSystem)
2363
+ });
2364
+
2365
+ // src/workspace/workspace-context.ts
2366
+ var WorkspaceContext = z94.object({
2367
+ workspaceId: z94.string(),
2328
2368
  product: ProductCodeSchema,
2329
- publicDesignSystem: z93.boolean().optional()
2369
+ ipWhitelist: WorkspaceIpSettings,
2370
+ publicDesignSystem: z94.boolean().optional()
2330
2371
  });
2331
2372
 
2332
2373
  // src/workspace/workspace-create.ts
2333
- import { z as z94 } from "zod";
2374
+ import { z as z95 } from "zod";
2334
2375
 
2335
2376
  // src/utils/validation.ts
2336
2377
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
@@ -2340,76 +2381,43 @@ var WORKSPACE_NAME_MIN_LENGTH = 2;
2340
2381
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2341
2382
  var HANDLE_MIN_LENGTH = 2;
2342
2383
  var HANDLE_MAX_LENGTH = 64;
2343
- var CreateWorkspaceInput = z94.object({
2344
- name: z94.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2384
+ var CreateWorkspaceInput = z95.object({
2385
+ name: z95.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2345
2386
  product: ProductCodeSchema,
2346
- priceId: z94.string(),
2347
- billingEmail: z94.string().email().optional(),
2348
- handle: z94.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2387
+ priceId: z95.string(),
2388
+ billingEmail: z95.string().email().optional(),
2389
+ handle: z95.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2349
2390
  invites: UserInvites.optional(),
2350
- promoCode: z94.string().optional()
2391
+ promoCode: z95.string().optional()
2351
2392
  });
2352
2393
 
2353
2394
  // src/workspace/workspace-invitations.ts
2354
- import { z as z95 } from "zod";
2355
- var WorkspaceInvitation = z95.object({
2356
- id: z95.string(),
2357
- email: z95.string().email(),
2358
- createdAt: z95.date(),
2359
- resentAt: z95.date().nullish(),
2360
- role: z95.nativeEnum(WorkspaceRole),
2361
- workspaceId: z95.string(),
2362
- invitedBy: z95.string()
2363
- });
2364
-
2365
- // src/workspace/workspace-membership.ts
2366
2395
  import { z as z96 } from "zod";
2367
- var WorkspaceMembership = z96.object({
2396
+ var WorkspaceInvitation = z96.object({
2368
2397
  id: z96.string(),
2369
- userId: z96.string(),
2398
+ email: z96.string().email(),
2399
+ createdAt: z96.date(),
2400
+ resentAt: z96.date().nullish(),
2401
+ role: z96.nativeEnum(WorkspaceRole),
2370
2402
  workspaceId: z96.string(),
2371
- workspaceRole: z96.nativeEnum(WorkspaceRole)
2372
- });
2373
- var UpdateMembershipRolesInput = z96.object({
2374
- members: z96.array(
2375
- z96.object({
2376
- userId: z96.string(),
2377
- role: z96.nativeEnum(WorkspaceRole)
2378
- })
2379
- )
2403
+ invitedBy: z96.string()
2380
2404
  });
2381
2405
 
2382
- // src/workspace/workspace.ts
2406
+ // src/workspace/workspace-membership.ts
2383
2407
  import { z as z97 } from "zod";
2384
- var WorkspaceIpWhitelistEntry = z97.object({
2385
- isEnabled: z97.boolean(),
2386
- name: z97.string(),
2387
- range: z97.string()
2388
- });
2389
- var WorkspaceIpSettings = z97.object({
2390
- isEnabledForCloud: z97.boolean(),
2391
- isEnabledForDocs: z97.boolean(),
2392
- entries: z97.array(WorkspaceIpWhitelistEntry)
2393
- }).nullish();
2394
- var WorkspaceProfile = z97.object({
2395
- name: z97.string(),
2396
- handle: z97.string(),
2397
- color: z97.string(),
2398
- avatar: z97.string().optional(),
2399
- billingDetails: BillingDetails.optional()
2400
- });
2401
- var Workspace = z97.object({
2408
+ var WorkspaceMembership = z97.object({
2402
2409
  id: z97.string(),
2403
- profile: WorkspaceProfile,
2404
- subscription: Subscription,
2405
- ipWhitelist: WorkspaceIpSettings,
2406
- sso: SsoProvider.nullish(),
2407
- npmRegistrySettings: z97.unknown().optional(),
2408
- designSystems: z97.array(DesignSystem).nullish()
2409
- });
2410
- var WorkspaceWithDesignSystems = z97.object({
2411
- workspace: Workspace,
2412
- designSystems: z97.array(DesignSystem)
2410
+ userId: z97.string(),
2411
+ workspaceId: z97.string(),
2412
+ workspaceRole: z97.nativeEnum(WorkspaceRole)
2413
+ });
2414
+ var UpdateMembershipRolesInput = z97.object({
2415
+ members: z97.array(
2416
+ z97.object({
2417
+ userId: z97.string(),
2418
+ role: z97.nativeEnum(WorkspaceRole)
2419
+ })
2420
+ )
2413
2421
  });
2414
2422
 
2415
2423
  // src/dsm/design-system.ts
@@ -3205,6 +3213,7 @@ export {
3205
3213
  PageBlockTextSpanAttribute,
3206
3214
  PageBlockTextSpanAttributeType,
3207
3215
  PageBlockTheme,
3216
+ PageBlockThemeDisplayMode,
3208
3217
  PageBlockThemeType,
3209
3218
  PageBlockTilesAlignment,
3210
3219
  PageBlockTilesLayout,