@supernova-studio/model 0.47.13 → 0.47.15

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
@@ -284,7 +284,7 @@ var CustomDomain = z14.object({
284
284
  });
285
285
 
286
286
  // src/docs-server/session.ts
287
- import { z as z23 } from "zod";
287
+ import { z as z24 } from "zod";
288
288
 
289
289
  // src/users/linked-integrations.ts
290
290
  import { z as z15 } from "zod";
@@ -312,36 +312,47 @@ var UserLinkedIntegrations = z15.object({
312
312
  bitbucket: IntegrationUserInfo.array().optional()
313
313
  });
314
314
 
315
- // src/users/user-create.ts
315
+ // src/users/user-analytics-cleanup-schedule.ts
316
316
  import { z as z16 } from "zod";
317
- var CreateUserInput = z16.object({
318
- email: z16.string(),
319
- name: z16.string(),
320
- username: z16.string()
317
+ var UserAnalyticsCleanupSchedule = z16.object({
318
+ userId: z16.string(),
319
+ createdAt: z16.coerce.date(),
320
+ deleteAt: z16.coerce.date()
321
+ });
322
+ var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
323
+ createdAt: true
321
324
  });
322
325
 
323
- // src/users/user-identity.ts
326
+ // src/users/user-create.ts
324
327
  import { z as z17 } from "zod";
325
- var UserIdentity = z17.object({
326
- id: z17.string(),
327
- userId: z17.string()
328
+ var CreateUserInput = z17.object({
329
+ email: z17.string(),
330
+ name: z17.string(),
331
+ username: z17.string()
328
332
  });
329
333
 
330
- // src/users/user-minified.ts
334
+ // src/users/user-identity.ts
331
335
  import { z as z18 } from "zod";
332
- var UserMinified = z18.object({
336
+ var UserIdentity = z18.object({
333
337
  id: z18.string(),
334
- name: z18.string(),
335
- email: z18.string(),
336
- avatar: z18.string().optional()
338
+ userId: z18.string()
337
339
  });
338
340
 
339
- // src/users/user-notification-settings.ts
341
+ // src/users/user-minified.ts
340
342
  import { z as z19 } from "zod";
341
- var LiveblocksNotificationSettings = z19.object({
342
- sendCommentNotificationEmails: z19.boolean()
343
+ var UserMinified = z19.object({
344
+ id: z19.string(),
345
+ name: z19.string(),
346
+ email: z19.string(),
347
+ avatar: z19.string().optional()
343
348
  });
344
- var UserNotificationSettings = z19.object({
349
+
350
+ // src/users/user-notification-settings.ts
351
+ import { z as z20 } from "zod";
352
+ var LiveblocksNotificationSettings = z20.object({
353
+ sendCommentNotificationEmails: z20.boolean()
354
+ });
355
+ var UserNotificationSettings = z20.object({
345
356
  liveblocksNotificationSettings: LiveblocksNotificationSettings
346
357
  });
347
358
  var defaultNotificationSettings = {
@@ -351,25 +362,25 @@ var defaultNotificationSettings = {
351
362
  };
352
363
 
353
364
  // src/users/user-profile.ts
354
- import { z as z20 } from "zod";
355
- var UserOnboardingDepartment = z20.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
356
- var UserOnboardingJobLevel = z20.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
357
- var UserOnboarding = z20.object({
358
- companyName: z20.string().optional(),
359
- numberOfPeopleInOrg: z20.string().optional(),
360
- numberOfPeopleInDesignTeam: z20.string().optional(),
365
+ import { z as z21 } from "zod";
366
+ var UserOnboardingDepartment = z21.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
367
+ var UserOnboardingJobLevel = z21.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
368
+ var UserOnboarding = z21.object({
369
+ companyName: z21.string().optional(),
370
+ numberOfPeopleInOrg: z21.string().optional(),
371
+ numberOfPeopleInDesignTeam: z21.string().optional(),
361
372
  department: UserOnboardingDepartment.optional(),
362
- jobTitle: z20.string().optional(),
363
- phase: z20.string().optional(),
373
+ jobTitle: z21.string().optional(),
374
+ phase: z21.string().optional(),
364
375
  jobLevel: UserOnboardingJobLevel.optional(),
365
- designSystemName: z20.string().optional(),
366
- defaultDestination: z20.string().optional(),
367
- figmaUrl: z20.string().optional()
368
- });
369
- var UserProfile = z20.object({
370
- name: z20.string(),
371
- avatar: z20.string().optional(),
372
- nickname: z20.string().optional(),
376
+ designSystemName: z21.string().optional(),
377
+ defaultDestination: z21.string().optional(),
378
+ figmaUrl: z21.string().optional()
379
+ });
380
+ var UserProfile = z21.object({
381
+ name: z21.string(),
382
+ avatar: z21.string().optional(),
383
+ nickname: z21.string().optional(),
373
384
  onboarding: UserOnboarding.optional()
374
385
  });
375
386
  var UserProfileUpdate = UserProfile.partial().omit({
@@ -377,206 +388,206 @@ var UserProfileUpdate = UserProfile.partial().omit({
377
388
  });
378
389
 
379
390
  // src/users/user-test.ts
380
- import { z as z21 } from "zod";
381
- var UserTest = z21.object({
382
- id: z21.string(),
383
- email: z21.string()
391
+ import { z as z22 } from "zod";
392
+ var UserTest = z22.object({
393
+ id: z22.string(),
394
+ email: z22.string()
384
395
  });
385
396
 
386
397
  // src/users/user.ts
387
- import { z as z22 } from "zod";
388
- var User = z22.object({
389
- id: z22.string(),
390
- email: z22.string(),
391
- emailVerified: z22.boolean(),
392
- createdAt: z22.coerce.date(),
393
- trialExpiresAt: z22.coerce.date().optional(),
398
+ import { z as z23 } from "zod";
399
+ var User = z23.object({
400
+ id: z23.string(),
401
+ email: z23.string(),
402
+ emailVerified: z23.boolean(),
403
+ createdAt: z23.coerce.date(),
404
+ trialExpiresAt: z23.coerce.date().optional(),
394
405
  profile: UserProfile,
395
406
  linkedIntegrations: UserLinkedIntegrations.optional(),
396
- loggedOutAt: z22.coerce.date().optional(),
397
- isProtected: z22.boolean()
407
+ loggedOutAt: z23.coerce.date().optional(),
408
+ isProtected: z23.boolean()
398
409
  });
399
410
 
400
411
  // src/docs-server/session.ts
401
- var NpmProxyToken = z23.object({
402
- access: z23.string(),
403
- expiresAt: z23.number()
412
+ var NpmProxyToken = z24.object({
413
+ access: z24.string(),
414
+ expiresAt: z24.number()
404
415
  });
405
- var SessionData = z23.object({
406
- returnToUrl: z23.string().optional(),
416
+ var SessionData = z24.object({
417
+ returnToUrl: z24.string().optional(),
407
418
  npmProxyToken: NpmProxyToken.optional()
408
419
  });
409
- var Session = z23.object({
410
- id: z23.string(),
411
- expiresAt: z23.coerce.date(),
412
- userId: z23.string().nullable(),
420
+ var Session = z24.object({
421
+ id: z24.string(),
422
+ expiresAt: z24.coerce.date(),
423
+ userId: z24.string().nullable(),
413
424
  data: SessionData
414
425
  });
415
- var AuthTokens = z23.object({
416
- access: z23.string(),
417
- refresh: z23.string()
426
+ var AuthTokens = z24.object({
427
+ access: z24.string(),
428
+ refresh: z24.string()
418
429
  });
419
- var UserSession = z23.object({
430
+ var UserSession = z24.object({
420
431
  session: Session,
421
432
  user: User.nullable()
422
433
  });
423
434
 
424
435
  // src/dsm/assets/asset-dynamo-record.ts
425
- import { z as z24 } from "zod";
426
- var AssetDynamoRecord = z24.object({
427
- path: z24.string(),
428
- id: z24.string(),
429
- designSystemId: z24.string(),
430
- expiresAt: z24.number()
436
+ import { z as z25 } from "zod";
437
+ var AssetDynamoRecord = z25.object({
438
+ path: z25.string(),
439
+ id: z25.string(),
440
+ designSystemId: z25.string(),
441
+ expiresAt: z25.number()
431
442
  });
432
443
 
433
444
  // src/dsm/assets/asset-reference.ts
434
- import { z as z25 } from "zod";
435
- var AssetReference = z25.object({
436
- id: z25.string(),
437
- designSystemVersionId: z25.string(),
438
- assetId: z25.string(),
439
- persistentId: z25.string()
445
+ import { z as z26 } from "zod";
446
+ var AssetReference = z26.object({
447
+ id: z26.string(),
448
+ designSystemVersionId: z26.string(),
449
+ assetId: z26.string(),
450
+ persistentId: z26.string()
440
451
  });
441
452
 
442
453
  // src/dsm/assets/asset-value.ts
443
- import { z as z26 } from "zod";
444
- var AssetValue = z26.object({});
454
+ import { z as z27 } from "zod";
455
+ var AssetValue = z27.object({});
445
456
 
446
457
  // src/dsm/assets/asset.ts
447
- import { z as z27 } from "zod";
448
- var AssetType = z27.enum(["Image", "Font"]);
449
- var AssetScope = z27.enum(["DocumentationFrame", "ComponentThumbnail", "DesignSystem", "Documentation"]);
450
- var AssetFontProperties = z27.object({
451
- family: z27.string(),
452
- subfamily: z27.string()
453
- });
454
- var AssetProperties = z27.union([
455
- z27.object({
456
- fontProperties: z27.array(AssetFontProperties)
458
+ import { z as z28 } from "zod";
459
+ var AssetType = z28.enum(["Image", "Font"]);
460
+ var AssetScope = z28.enum(["DocumentationFrame", "ComponentThumbnail", "DesignSystem", "Documentation"]);
461
+ var AssetFontProperties = z28.object({
462
+ family: z28.string(),
463
+ subfamily: z28.string()
464
+ });
465
+ var AssetProperties = z28.union([
466
+ z28.object({
467
+ fontProperties: z28.array(AssetFontProperties)
457
468
  }),
458
- z27.object({
459
- width: z27.number(),
460
- height: z27.number()
469
+ z28.object({
470
+ width: z28.number(),
471
+ height: z28.number()
461
472
  })
462
473
  ]);
463
- var AssetOrigin = z27.object({
464
- originKey: z27.string()
474
+ var AssetOrigin = z28.object({
475
+ originKey: z28.string()
465
476
  });
466
- var AssetProcessStatus = z27.enum(["Pending", "Uploaded", "Processed"]);
467
- var Asset = z27.object({
468
- id: z27.string(),
469
- designSystemId: z27.string().nullish(),
477
+ var AssetProcessStatus = z28.enum(["Pending", "Uploaded", "Processed"]);
478
+ var Asset = z28.object({
479
+ id: z28.string(),
480
+ designSystemId: z28.string().nullish(),
470
481
  type: AssetType,
471
- originalFileName: z27.string().nullish(),
472
- filePath: z27.string(),
482
+ originalFileName: z28.string().nullish(),
483
+ filePath: z28.string(),
473
484
  scope: AssetScope,
474
485
  properties: AssetProperties.nullish(),
475
486
  state: AssetProcessStatus.optional(),
476
487
  origin: AssetOrigin.optional(),
477
- originKey: z27.string().optional()
488
+ originKey: z28.string().optional()
478
489
  });
479
490
  function isImportedAsset(asset) {
480
491
  return !!asset.originKey;
481
492
  }
482
493
 
483
494
  // src/dsm/data-sources/data-source.ts
484
- import { z as z28 } from "zod";
485
- var DataSourceRemoteType = z28.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
486
- var DataSourceUploadRemoteSource = z28.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
487
- var DataSourceFigmaState = z28.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
488
- var DataSourceAutoImportMode = z28.enum(["Never", "Hourly"]);
489
- var DataSourceStats = z28.object({
495
+ import { z as z29 } from "zod";
496
+ var DataSourceRemoteType = z29.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
497
+ var DataSourceUploadRemoteSource = z29.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
498
+ var DataSourceFigmaState = z29.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
499
+ var DataSourceAutoImportMode = z29.enum(["Never", "Hourly"]);
500
+ var DataSourceStats = z29.object({
490
501
  tokens: zeroNumberByDefault(),
491
502
  components: zeroNumberByDefault(),
492
503
  assets: zeroNumberByDefault(),
493
504
  frames: zeroNumberByDefault()
494
505
  });
495
- var DataSourceFigmaFileData = z28.object({
496
- lastUpdatedAt: z28.coerce.date()
506
+ var DataSourceFigmaFileData = z29.object({
507
+ lastUpdatedAt: z29.coerce.date()
497
508
  });
498
- var DataSourceFigmaFileVersionData = z28.object({
499
- id: z28.string(),
500
- label: z28.string().optional(),
501
- description: z28.string().optional(),
502
- createdAt: z28.coerce.date()
503
- });
504
- var DataSourceFigmaScope = z28.object({
505
- assets: z28.boolean(),
506
- components: z28.boolean(),
507
- documentationFrames: z28.boolean(),
508
- tokens: z28.boolean(),
509
- themePersistentId: z28.string().optional(),
510
- isUnpublishedContentFallbackEnabled: z28.boolean()
511
- });
512
- var DataSourceFigmaImportMetadata = z28.object({
509
+ var DataSourceFigmaFileVersionData = z29.object({
510
+ id: z29.string(),
511
+ label: z29.string().optional(),
512
+ description: z29.string().optional(),
513
+ createdAt: z29.coerce.date()
514
+ });
515
+ var DataSourceFigmaScope = z29.object({
516
+ assets: z29.boolean(),
517
+ components: z29.boolean(),
518
+ documentationFrames: z29.boolean(),
519
+ tokens: z29.boolean(),
520
+ themePersistentId: z29.string().optional(),
521
+ isUnpublishedContentFallbackEnabled: z29.boolean()
522
+ });
523
+ var DataSourceFigmaImportMetadata = z29.object({
513
524
  fileData: DataSourceFigmaFileData.optional(),
514
525
  importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
515
526
  });
516
- var DataSourceFigmaRemote = z28.object({
517
- type: z28.literal(DataSourceRemoteType.Enum.Figma),
518
- fileId: z28.string(),
519
- preferredCredentialId: z28.string().optional(),
520
- ownerId: z28.string(),
527
+ var DataSourceFigmaRemote = z29.object({
528
+ type: z29.literal(DataSourceRemoteType.Enum.Figma),
529
+ fileId: z29.string(),
530
+ preferredCredentialId: z29.string().optional(),
531
+ ownerId: z29.string(),
521
532
  // todo remove or keep to reference who created data source
522
- ownerName: z28.string(),
533
+ ownerName: z29.string(),
523
534
  // todo probably remove
524
535
  scope: DataSourceFigmaScope,
525
536
  state: DataSourceFigmaState,
526
- requiresSync: z28.boolean().optional().transform((v) => v ?? false),
537
+ requiresSync: z29.boolean().optional().transform((v) => v ?? false),
527
538
  lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
528
- downloadChunkSize: z28.number().optional(),
529
- figmaRenderChunkSize: z28.number().optional(),
530
- maxFileDepth: z28.number().optional()
539
+ downloadChunkSize: z29.number().optional(),
540
+ figmaRenderChunkSize: z29.number().optional(),
541
+ maxFileDepth: z29.number().optional()
531
542
  });
532
- var DataSourceTokenStudioRemote = z28.object({
533
- type: z28.literal(DataSourceRemoteType.Enum.TokenStudio)
543
+ var DataSourceTokenStudioRemote = z29.object({
544
+ type: z29.literal(DataSourceRemoteType.Enum.TokenStudio)
534
545
  });
535
- var DataSourceUploadImportMetadata = z28.record(z28.any());
536
- var DataSourceUploadRemote = z28.object({
537
- type: z28.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
538
- remoteId: z28.string(),
546
+ var DataSourceUploadImportMetadata = z29.record(z29.any());
547
+ var DataSourceUploadRemote = z29.object({
548
+ type: z29.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
549
+ remoteId: z29.string(),
539
550
  remoteSourceType: DataSourceUploadRemoteSource,
540
551
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
541
552
  });
542
- var DataSourceRemote = z28.discriminatedUnion("type", [
553
+ var DataSourceRemote = z29.discriminatedUnion("type", [
543
554
  DataSourceFigmaRemote,
544
555
  DataSourceUploadRemote,
545
556
  DataSourceTokenStudioRemote
546
557
  ]);
547
- var DataSourceVersion = z28.object({
548
- id: z28.string(),
549
- createdAt: z28.coerce.date(),
550
- label: z28.string().nullish(),
551
- description: z28.string().nullish()
558
+ var DataSourceVersion = z29.object({
559
+ id: z29.string(),
560
+ createdAt: z29.coerce.date(),
561
+ label: z29.string().nullish(),
562
+ description: z29.string().nullish()
552
563
  });
553
564
  function zeroNumberByDefault() {
554
- return z28.number().nullish().transform((v) => v ?? 0);
565
+ return z29.number().nullish().transform((v) => v ?? 0);
555
566
  }
556
567
 
557
568
  // src/dsm/data-sources/import-job.ts
558
- import { z as z29 } from "zod";
559
- var ImportJobState = z29.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
560
- var ImportJobOperation = z29.enum(["Check", "Import"]);
569
+ import { z as z30 } from "zod";
570
+ var ImportJobState = z30.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
571
+ var ImportJobOperation = z30.enum(["Check", "Import"]);
561
572
  var ImportJob = Entity.extend({
562
- designSystemId: z29.string(),
563
- designSystemVersionId: z29.string(),
564
- sourceIds: z29.array(z29.string()),
573
+ designSystemId: z30.string(),
574
+ designSystemVersionId: z30.string(),
575
+ sourceIds: z30.array(z30.string()),
565
576
  state: ImportJobState,
566
- createdByUserId: z29.string().optional(),
567
- importContextId: z29.string(),
568
- error: z29.string().optional(),
577
+ createdByUserId: z30.string().optional(),
578
+ importContextId: z30.string(),
579
+ error: z30.string().optional(),
569
580
  sourceType: DataSourceRemoteType,
570
- importContextCleanedUp: z29.boolean()
581
+ importContextCleanedUp: z30.boolean()
571
582
  });
572
583
 
573
584
  // src/dsm/data-sources/import-summary.ts
574
- import { z as z98 } from "zod";
585
+ import { z as z99 } from "zod";
575
586
 
576
587
  // src/dsm/elements/data/base.ts
577
- import { z as z30 } from "zod";
578
- var TokenDataAliasSchema = z30.object({
579
- aliasTo: z30.string().optional().nullable().transform((v) => v ?? void 0)
588
+ import { z as z31 } from "zod";
589
+ var TokenDataAliasSchema = z31.object({
590
+ aliasTo: z31.string().optional().nullable().transform((v) => v ?? void 0)
580
591
  });
581
592
  function tokenAliasOrValue(value) {
582
593
  return TokenDataAliasSchema.extend({
@@ -585,68 +596,68 @@ function tokenAliasOrValue(value) {
585
596
  }
586
597
 
587
598
  // src/dsm/elements/data/blur.ts
588
- import { z as z32 } from "zod";
599
+ import { z as z33 } from "zod";
589
600
 
590
601
  // src/dsm/elements/data/dimension.ts
591
- import { z as z31 } from "zod";
592
- var DimensionUnit = z31.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
593
- var DimensionValue = z31.object({
602
+ import { z as z32 } from "zod";
603
+ var DimensionUnit = z32.enum(["Pixels", "Percent", "Rem", "Ms", "Raw", "Points"]);
604
+ var DimensionValue = z32.object({
594
605
  unit: DimensionUnit,
595
- measure: z31.number()
606
+ measure: z32.number()
596
607
  });
597
608
  var DimensionTokenData = tokenAliasOrValue(DimensionValue);
598
609
 
599
610
  // src/dsm/elements/data/blur.ts
600
- var BlurType = z32.enum(["Layer", "Background"]);
601
- var BlurValue = z32.object({
611
+ var BlurType = z33.enum(["Layer", "Background"]);
612
+ var BlurValue = z33.object({
602
613
  type: BlurType,
603
614
  radius: DimensionTokenData
604
615
  });
605
616
  var BlurTokenData = tokenAliasOrValue(BlurValue);
606
617
 
607
618
  // src/dsm/elements/data/border-radius.ts
608
- import { z as z33 } from "zod";
609
- var BorderRadiusUnit = z33.enum(["Pixels", "Rem", "Percent"]);
610
- var BorderRadiusValue = z33.object({
619
+ import { z as z34 } from "zod";
620
+ var BorderRadiusUnit = z34.enum(["Pixels", "Rem", "Percent"]);
621
+ var BorderRadiusValue = z34.object({
611
622
  unit: BorderRadiusUnit,
612
- measure: z33.number()
623
+ measure: z34.number()
613
624
  });
614
625
  var BorderRadiusTokenData = tokenAliasOrValue(BorderRadiusValue);
615
626
 
616
627
  // src/dsm/elements/data/border-width.ts
617
- import { z as z34 } from "zod";
618
- var BorderWidthUnit = z34.enum(["Pixels"]);
619
- var BorderWidthValue = z34.object({
628
+ import { z as z35 } from "zod";
629
+ var BorderWidthUnit = z35.enum(["Pixels"]);
630
+ var BorderWidthValue = z35.object({
620
631
  unit: BorderWidthUnit,
621
- measure: z34.number()
632
+ measure: z35.number()
622
633
  });
623
634
  var BorderWidthTokenData = tokenAliasOrValue(BorderWidthValue);
624
635
 
625
636
  // src/dsm/elements/data/border.ts
626
- import { z as z37 } from "zod";
637
+ import { z as z38 } from "zod";
627
638
 
628
639
  // src/dsm/elements/data/color.ts
629
- import { z as z36 } from "zod";
640
+ import { z as z37 } from "zod";
630
641
 
631
642
  // src/dsm/elements/data/opacity.ts
632
- import { z as z35 } from "zod";
633
- var OpacityValue = z35.object({
634
- unit: z35.enum(["Raw", "Pixels"]),
635
- measure: z35.number()
643
+ import { z as z36 } from "zod";
644
+ var OpacityValue = z36.object({
645
+ unit: z36.enum(["Raw", "Pixels"]),
646
+ measure: z36.number()
636
647
  });
637
648
  var OpacityTokenData = tokenAliasOrValue(OpacityValue);
638
649
 
639
650
  // src/dsm/elements/data/color.ts
640
- var ColorValue = z36.object({
651
+ var ColorValue = z37.object({
641
652
  opacity: OpacityTokenData,
642
- color: z36.string().or(TokenDataAliasSchema)
653
+ color: z37.string().or(TokenDataAliasSchema)
643
654
  });
644
655
  var ColorTokenData = tokenAliasOrValue(ColorValue);
645
656
 
646
657
  // src/dsm/elements/data/border.ts
647
- var BorderPosition = z37.enum(["Inside", "Center", "Outside"]);
648
- var BorderStyle = z37.enum(["Dashed", "Dotted", "Solid", "Groove"]);
649
- var BorderValue = z37.object({
658
+ var BorderPosition = z38.enum(["Inside", "Center", "Outside"]);
659
+ var BorderStyle = z38.enum(["Dashed", "Dotted", "Solid", "Groove"]);
660
+ var BorderValue = z38.object({
650
661
  color: ColorTokenData,
651
662
  width: BorderWidthTokenData,
652
663
  position: BorderPosition,
@@ -655,30 +666,30 @@ var BorderValue = z37.object({
655
666
  var BorderTokenData = tokenAliasOrValue(BorderValue);
656
667
 
657
668
  // src/dsm/elements/data/component.ts
658
- import { z as z38 } from "zod";
659
- var ComponentElementData = z38.object({
660
- value: z38.object({
661
- thumbnailImage: z38.object({
662
- value: z38.object({
663
- url: z38.string(),
664
- assetId: z38.string()
669
+ import { z as z39 } from "zod";
670
+ var ComponentElementData = z39.object({
671
+ value: z39.object({
672
+ thumbnailImage: z39.object({
673
+ value: z39.object({
674
+ url: z39.string(),
675
+ assetId: z39.string()
665
676
  })
666
677
  }),
667
- svg: z38.object({
668
- value: z38.object({
669
- url: z38.string(),
670
- assetId: z38.string()
678
+ svg: z39.object({
679
+ value: z39.object({
680
+ url: z39.string(),
681
+ assetId: z39.string()
671
682
  })
672
683
  }).optional()
673
684
  })
674
685
  });
675
686
 
676
687
  // src/dsm/elements/data/documentation-block-v1.ts
677
- import { z as z44 } from "zod";
688
+ import { z as z45 } from "zod";
678
689
 
679
690
  // src/dsm/elements/raw-element.ts
680
- import { z as z39 } from "zod";
681
- var DesignTokenType = z39.enum([
691
+ import { z as z40 } from "zod";
692
+ var DesignTokenType = z40.enum([
682
693
  "Color",
683
694
  "Border",
684
695
  "Gradient",
@@ -710,7 +721,7 @@ var DesignTokenType = z39.enum([
710
721
  ]);
711
722
  var tokenElementTypes = [...DesignTokenType.options.filter((v) => v !== "Font")];
712
723
  var DesignElementType = DesignTokenType.or(
713
- z39.enum([
724
+ z40.enum([
714
725
  "Component",
715
726
  "Theme",
716
727
  "Documentation",
@@ -725,7 +736,7 @@ var DesignElementType = DesignTokenType.or(
725
736
  function isTokenType(type) {
726
737
  return DesignTokenType.safeParse(type).success;
727
738
  }
728
- var DesignElementCategory = z39.enum([
739
+ var DesignElementCategory = z40.enum([
729
740
  "Token",
730
741
  "Component",
731
742
  "DesignSystemComponent",
@@ -733,94 +744,94 @@ var DesignElementCategory = z39.enum([
733
744
  "Theme",
734
745
  "PageBlock"
735
746
  ]);
736
- var DesignSystemElementExportProps = z39.object({
737
- isAsset: z39.boolean().nullish().transform((v) => v ?? false),
738
- codeName: z39.string().nullish()
739
- });
740
- var ShallowDesignElement = z39.object({
741
- id: z39.string(),
742
- persistentId: z39.string(),
743
- designSystemVersionId: z39.string(),
747
+ var DesignSystemElementExportProps = z40.object({
748
+ isAsset: z40.boolean().nullish().transform((v) => v ?? false),
749
+ codeName: z40.string().nullish()
750
+ });
751
+ var ShallowDesignElement = z40.object({
752
+ id: z40.string(),
753
+ persistentId: z40.string(),
754
+ designSystemVersionId: z40.string(),
744
755
  type: DesignElementType,
745
- brandPersistentId: z39.string().optional(),
746
- parentPersistentId: z39.string().optional(),
747
- shortPersistentId: z39.string().optional(),
756
+ brandPersistentId: z40.string().optional(),
757
+ parentPersistentId: z40.string().optional(),
758
+ shortPersistentId: z40.string().optional(),
748
759
  childType: DesignElementType.optional(),
749
- sortOrder: z39.number(),
750
- origin: z39.record(z39.any()).optional()
760
+ sortOrder: z40.number(),
761
+ origin: z40.record(z40.any()).optional()
751
762
  });
752
763
  var DesignElement = ShallowDesignElement.extend({
753
764
  meta: ObjectMeta,
754
- slug: z39.string().optional(),
755
- userSlug: z39.string().optional(),
756
- createdAt: z39.coerce.date(),
757
- updatedAt: z39.coerce.date(),
765
+ slug: z40.string().optional(),
766
+ userSlug: z40.string().optional(),
767
+ createdAt: z40.coerce.date(),
768
+ updatedAt: z40.coerce.date(),
758
769
  exportProperties: DesignSystemElementExportProps.optional(),
759
- data: z39.record(z39.any()),
760
- origin: z39.record(z39.any()).optional()
770
+ data: z40.record(z40.any()),
771
+ origin: z40.record(z40.any()).optional()
761
772
  });
762
773
  var HierarchicalElements = DesignTokenType.or(
763
- z39.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
774
+ z40.enum(["Component", "DesignSystemComponent", "DocumentationPage"])
764
775
  );
765
776
 
766
777
  // src/dsm/properties/property-definition.ts
767
- import { z as z40 } from "zod";
768
- var ElementPropertyTypeSchema = z40.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
769
- var ElementPropertyTargetType = z40.enum(["Token", "Component", "DocumentationPage"]);
770
- var ElementPropertyLinkType = z40.enum(["FigmaComponent", "DocumentationPage"]);
778
+ import { z as z41 } from "zod";
779
+ var ElementPropertyTypeSchema = z41.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
780
+ var ElementPropertyTargetType = z41.enum(["Token", "Component", "DocumentationPage"]);
781
+ var ElementPropertyLinkType = z41.enum(["FigmaComponent", "DocumentationPage"]);
771
782
  var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
772
- var ColorTokenInlineData = z40.object({
773
- value: z40.string()
783
+ var ColorTokenInlineData = z41.object({
784
+ value: z41.string()
774
785
  });
775
- var ElementPropertyDefinitionOption = z40.object({
776
- id: z40.string(),
777
- name: z40.string(),
786
+ var ElementPropertyDefinitionOption = z41.object({
787
+ id: z41.string(),
788
+ name: z41.string(),
778
789
  backgroundColor: ColorTokenInlineData.optional()
779
790
  });
780
- var ElementPropertyDefinition = z40.object({
781
- id: z40.string(),
782
- designSystemVersionId: z40.string(),
783
- persistentId: z40.string(),
784
- name: z40.string(),
785
- codeName: z40.string().regex(CODE_NAME_REGEX),
786
- description: z40.string(),
791
+ var ElementPropertyDefinition = z41.object({
792
+ id: z41.string(),
793
+ designSystemVersionId: z41.string(),
794
+ persistentId: z41.string(),
795
+ name: z41.string(),
796
+ codeName: z41.string().regex(CODE_NAME_REGEX),
797
+ description: z41.string(),
787
798
  type: ElementPropertyTypeSchema,
788
799
  targetElementType: ElementPropertyTargetType,
789
- options: z40.array(ElementPropertyDefinitionOption).optional(),
800
+ options: z41.array(ElementPropertyDefinitionOption).optional(),
790
801
  linkElementType: ElementPropertyLinkType.optional()
791
802
  });
792
803
  var ElementPropertyType = ElementPropertyTypeSchema.enum;
793
804
 
794
805
  // src/dsm/properties/property-value.ts
795
- import { z as z41 } from "zod";
796
- var ElementPropertyValue = z41.object({
797
- id: z41.string(),
798
- designSystemVersionId: z41.string(),
799
- targetElementPersistentId: z41.string(),
800
- definitionPersistentId: z41.string(),
801
- stringValue: z41.string().nullish(),
802
- numberValue: z41.number().nullish(),
803
- booleanValue: z41.boolean().nullish(),
804
- referenceValue: z41.string().nullish(),
805
- referenceValuePreview: z41.string().optional()
806
+ import { z as z42 } from "zod";
807
+ var ElementPropertyValue = z42.object({
808
+ id: z42.string(),
809
+ designSystemVersionId: z42.string(),
810
+ targetElementPersistentId: z42.string(),
811
+ definitionPersistentId: z42.string(),
812
+ stringValue: z42.string().nullish(),
813
+ numberValue: z42.number().nullish(),
814
+ booleanValue: z42.boolean().nullish(),
815
+ referenceValue: z42.string().nullish(),
816
+ referenceValuePreview: z42.string().optional()
806
817
  });
807
818
 
808
819
  // src/dsm/elements/primitives/point.ts
809
- import { z as z42 } from "zod";
810
- var Point2D = z42.object({
811
- x: z42.number(),
812
- y: z42.number()
820
+ import { z as z43 } from "zod";
821
+ var Point2D = z43.object({
822
+ x: z43.number(),
823
+ y: z43.number()
813
824
  });
814
825
 
815
826
  // src/dsm/elements/primitives/size.ts
816
- import { z as z43 } from "zod";
827
+ import { z as z44 } from "zod";
817
828
  var nullSize = { height: -1, width: -1 };
818
829
  function isNullSize(size) {
819
830
  return size.height === nullSize.height && size.width === nullSize.width;
820
831
  }
821
- var Size = z43.object({
822
- width: z43.number().nullish().transform((v) => v ?? nullSize.width),
823
- height: z43.number().nullish().transform((v) => v ?? nullSize.height)
832
+ var Size = z44.object({
833
+ width: z44.number().nullish().transform((v) => v ?? nullSize.width),
834
+ height: z44.number().nullish().transform((v) => v ?? nullSize.height)
824
835
  });
825
836
  var SizeOrUndefined = Size.optional().transform((v) => {
826
837
  if (!v)
@@ -831,8 +842,8 @@ var SizeOrUndefined = Size.optional().transform((v) => {
831
842
  });
832
843
 
833
844
  // src/dsm/elements/data/documentation-block-v1.ts
834
- var PageBlockCalloutType = z44.enum(["Info", "Primary", "Success", "Warning", "Error"]);
835
- var PageBlockTypeV1 = z44.enum([
845
+ var PageBlockCalloutType = z45.enum(["Info", "Primary", "Success", "Warning", "Error"]);
846
+ var PageBlockTypeV1 = z45.enum([
836
847
  "Text",
837
848
  "Heading",
838
849
  "Code",
@@ -865,7 +876,7 @@ var PageBlockTypeV1 = z44.enum([
865
876
  "TableRow",
866
877
  "TableCell"
867
878
  ]);
868
- var PageBlockCodeLanguage = z44.enum([
879
+ var PageBlockCodeLanguage = z45.enum([
869
880
  "Angular",
870
881
  "Bash",
871
882
  "C",
@@ -899,70 +910,70 @@ var PageBlockCodeLanguage = z44.enum([
899
910
  "XML",
900
911
  "YAML"
901
912
  ]);
902
- var PageBlockAlignment = z44.enum(["Left", "Center", "Stretch", "Right"]);
903
- var PageBlockThemeType = z44.enum(["Override", "Comparison"]);
904
- var PageBlockAssetType = z44.enum(["image", "figmaFrame"]);
905
- var PageBlockTilesAlignment = z44.enum(["Center", "FrameHeight"]);
906
- var PageBlockTilesLayout = z44.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
907
- var PageBlockTheme = z44.object({
908
- themeIds: z44.array(z44.string()),
913
+ var PageBlockAlignment = z45.enum(["Left", "Center", "Stretch", "Right"]);
914
+ var PageBlockThemeType = z45.enum(["Override", "Comparison"]);
915
+ var PageBlockAssetType = z45.enum(["image", "figmaFrame"]);
916
+ var PageBlockTilesAlignment = z45.enum(["Center", "FrameHeight"]);
917
+ var PageBlockTilesLayout = z45.enum(["C8", "C7", "C6", "C5", "C4", "C3", "C2", "C1", "C1_75"]);
918
+ var PageBlockTheme = z45.object({
919
+ themeIds: z45.array(z45.string()),
909
920
  type: PageBlockThemeType
910
921
  });
911
- var PageBlockUrlPreview = z44.object({
912
- title: nullishToOptional(z44.string()),
913
- description: nullishToOptional(z44.string()),
914
- thumbnailUrl: nullishToOptional(z44.string())
915
- });
916
- var PageBlockFrameOrigin = z44.object({
917
- sourceFileName: nullishToOptional(z44.string()),
918
- title: nullishToOptional(z44.string()),
919
- previewUrl: nullishToOptional(z44.string()),
920
- valid: nullishToOptional(z44.boolean()),
921
- referenceId: nullishToOptional(z44.string()),
922
- assetId: nullishToOptional(z44.string()),
923
- assetScale: nullishToOptional(z44.number()),
924
- width: nullishToOptional(z44.number()),
925
- height: nullishToOptional(z44.number())
926
- });
927
- var PageBlockFrame = z44.object({
928
- persistentId: z44.string(),
929
- sourceId: z44.string(),
930
- sourceFrameId: z44.string(),
931
- title: nullishToOptional(z44.string()),
932
- description: nullishToOptional(z44.string()),
922
+ var PageBlockUrlPreview = z45.object({
923
+ title: nullishToOptional(z45.string()),
924
+ description: nullishToOptional(z45.string()),
925
+ thumbnailUrl: nullishToOptional(z45.string())
926
+ });
927
+ var PageBlockFrameOrigin = z45.object({
928
+ sourceFileName: nullishToOptional(z45.string()),
929
+ title: nullishToOptional(z45.string()),
930
+ previewUrl: nullishToOptional(z45.string()),
931
+ valid: nullishToOptional(z45.boolean()),
932
+ referenceId: nullishToOptional(z45.string()),
933
+ assetId: nullishToOptional(z45.string()),
934
+ assetScale: nullishToOptional(z45.number()),
935
+ width: nullishToOptional(z45.number()),
936
+ height: nullishToOptional(z45.number())
937
+ });
938
+ var PageBlockFrame = z45.object({
939
+ persistentId: z45.string(),
940
+ sourceId: z45.string(),
941
+ sourceFrameId: z45.string(),
942
+ title: nullishToOptional(z45.string()),
943
+ description: nullishToOptional(z45.string()),
933
944
  backgroundColor: nullishToOptional(ColorTokenInlineData),
934
945
  origin: nullishToOptional(PageBlockFrameOrigin)
935
946
  });
936
- var PageBlockAsset = z44.object({
947
+ var PageBlockAsset = z45.object({
937
948
  type: PageBlockAssetType,
938
- id: nullishToOptional(z44.string()),
939
- url: nullishToOptional(z44.string()),
949
+ id: nullishToOptional(z45.string()),
950
+ url: nullishToOptional(z45.string()),
940
951
  figmaFrame: nullishToOptional(PageBlockFrame)
941
952
  });
942
- var PageBlockLinkPreview = z44.object({
943
- title: nullishToOptional(z44.string()),
944
- valid: nullishToOptional(z44.boolean())
953
+ var PageBlockLinkPreview = z45.object({
954
+ title: nullishToOptional(z45.string()),
955
+ valid: nullishToOptional(z45.boolean())
945
956
  });
946
- var PageBlockShortcut = z44.object({
947
- persistentId: z44.string(),
948
- title: nullishToOptional(z44.string()),
949
- description: nullishToOptional(z44.string()),
957
+ var PageBlockShortcut = z45.object({
958
+ persistentId: z45.string(),
959
+ title: nullishToOptional(z45.string()),
960
+ description: nullishToOptional(z45.string()),
950
961
  asset: nullishToOptional(PageBlockAsset),
951
- documentationItemId: nullishToOptional(z44.string()),
952
- pageHeadingId: nullishToOptional(z44.string()),
953
- url: nullishToOptional(z44.string()),
954
- openInNewTab: nullishToOptional(z44.boolean()),
962
+ documentationItemId: nullishToOptional(z45.string()),
963
+ pageHeadingId: nullishToOptional(z45.string()),
964
+ url: nullishToOptional(z45.string()),
965
+ openInNewTab: nullishToOptional(z45.boolean()),
955
966
  urlPreview: nullishToOptional(PageBlockUrlPreview),
956
967
  documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
957
968
  });
958
- var PageBlockCustomBlockPropertyImageValue = z44.object({
969
+ var PageBlockCustomBlockPropertyImageValue = z45.object({
959
970
  asset: nullishToOptional(PageBlockAsset),
960
- assetId: nullishToOptional(z44.string()),
961
- assetUrl: nullishToOptional(z44.string())
971
+ assetId: nullishToOptional(z45.string()),
972
+ assetUrl: nullishToOptional(z45.string())
962
973
  });
963
- var PageBlockCustomBlockPropertyValue = z44.object({
964
- key: z44.string(),
965
- value: z44.any()
974
+ var PageBlockCustomBlockPropertyValue = z45.object({
975
+ key: z45.string(),
976
+ value: z45.any()
966
977
  // TODO Artem: for some reason there are cases when there's an array here in the DB
967
978
  // e.g. element id 67451 in the dev db
968
979
  // value: z
@@ -973,102 +984,102 @@ var PageBlockCustomBlockPropertyValue = z44.object({
973
984
  // .or(TypographyTokenData)
974
985
  // .or(PageBlockCustomBlockPropertyImageValue),
975
986
  });
976
- var PageBlockFigmaFrameProperties = z44.object({
987
+ var PageBlockFigmaFrameProperties = z45.object({
977
988
  color: nullishToOptional(
978
- z44.object({
979
- value: z44.string()
989
+ z45.object({
990
+ value: z45.string()
980
991
  })
981
992
  ),
982
993
  alignment: PageBlockTilesAlignment,
983
994
  layout: PageBlockTilesLayout,
984
995
  backgroundColor: nullishToOptional(ColorTokenInlineData),
985
- showTitles: z44.boolean()
996
+ showTitles: z45.boolean()
986
997
  });
987
- var PageBlockRenderCodeProperties = z44.object({
988
- showCode: z44.boolean(),
989
- showControls: z44.boolean().optional()
998
+ var PageBlockRenderCodeProperties = z45.object({
999
+ showCode: z45.boolean(),
1000
+ showControls: z45.boolean().optional()
990
1001
  });
991
- var PageBlockAssetComponent = z44.object({
992
- persistentId: z44.string(),
993
- componentAssetId: z44.string(),
994
- title: nullishToOptional(z44.string()),
995
- description: nullishToOptional(z44.string()),
1002
+ var PageBlockAssetComponent = z45.object({
1003
+ persistentId: z45.string(),
1004
+ componentAssetId: z45.string(),
1005
+ title: nullishToOptional(z45.string()),
1006
+ description: nullishToOptional(z45.string()),
996
1007
  backgroundColor: nullishToOptional(ColorTokenInlineData)
997
1008
  });
998
- var PageBlockTableColumn = z44.object({
999
- id: z44.string(),
1009
+ var PageBlockTableColumn = z45.object({
1010
+ id: z45.string(),
1000
1011
  width: DimensionTokenData
1001
1012
  });
1002
- var PageBlockTableProperties = z44.object({
1003
- showBorders: z44.boolean(),
1004
- showHeaderRow: z44.boolean(),
1005
- showHeaderColumn: z44.boolean(),
1006
- columns: z44.array(PageBlockTableColumn)
1013
+ var PageBlockTableProperties = z45.object({
1014
+ showBorders: z45.boolean(),
1015
+ showHeaderRow: z45.boolean(),
1016
+ showHeaderColumn: z45.boolean(),
1017
+ columns: z45.array(PageBlockTableColumn)
1007
1018
  });
1008
- var PageBlockTextSpanAttributeType = z44.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
1009
- var PageBlockTextSpanAttribute = z44.object({
1019
+ var PageBlockTextSpanAttributeType = z45.enum(["Bold", "Italic", "Link", "Strikethrough", "Code"]);
1020
+ var PageBlockTextSpanAttribute = z45.object({
1010
1021
  type: PageBlockTextSpanAttributeType,
1011
- link: nullishToOptional(z44.string()),
1012
- documentationItemId: nullishToOptional(z44.string()),
1013
- openInNewWindow: nullishToOptional(z44.boolean()),
1022
+ link: nullishToOptional(z45.string()),
1023
+ documentationItemId: nullishToOptional(z45.string()),
1024
+ openInNewWindow: nullishToOptional(z45.boolean()),
1014
1025
  // deprecated. use openInNewTab
1015
- openInNewTab: nullishToOptional(z44.boolean())
1026
+ openInNewTab: nullishToOptional(z45.boolean())
1016
1027
  });
1017
- var PageBlockTextSpan = z44.object({
1018
- text: z44.string(),
1019
- attributes: z44.array(PageBlockTextSpanAttribute)
1028
+ var PageBlockTextSpan = z45.object({
1029
+ text: z45.string(),
1030
+ attributes: z45.array(PageBlockTextSpanAttribute)
1020
1031
  });
1021
- var PageBlockText = z44.object({
1022
- spans: z44.array(PageBlockTextSpan)
1032
+ var PageBlockText = z45.object({
1033
+ spans: z45.array(PageBlockTextSpan)
1023
1034
  });
1024
- var PageBlockBaseV1 = z44.object({
1025
- persistentId: z44.string(),
1035
+ var PageBlockBaseV1 = z45.object({
1036
+ persistentId: z45.string(),
1026
1037
  type: PageBlockTypeV1,
1027
1038
  // Element linking
1028
- designObjectId: nullishToOptional(z44.string()),
1029
- designObjectIds: nullishToOptional(z44.array(z44.string())),
1030
- tokenType: nullishToOptional(DesignTokenType.or(z44.literal("Font"))),
1031
- showNestedGroups: nullishToOptional(z44.boolean()),
1032
- brandId: nullishToOptional(z44.string()),
1039
+ designObjectId: nullishToOptional(z45.string()),
1040
+ designObjectIds: nullishToOptional(z45.array(z45.string())),
1041
+ tokenType: nullishToOptional(DesignTokenType.or(z45.literal("Font"))),
1042
+ showNestedGroups: nullishToOptional(z45.boolean()),
1043
+ brandId: nullishToOptional(z45.string()),
1033
1044
  // Rich text
1034
1045
  text: nullishToOptional(PageBlockText),
1035
- caption: nullishToOptional(z44.string()),
1036
- headingType: nullishToOptional(z44.number().min(1).max(3)),
1046
+ caption: nullishToOptional(z45.string()),
1047
+ headingType: nullishToOptional(z45.number().min(1).max(3)),
1037
1048
  codeLanguage: nullishToOptional(PageBlockCodeLanguage),
1038
1049
  calloutType: nullishToOptional(PageBlockCalloutType),
1039
- urlInput: nullishToOptional(z44.string()),
1040
- url: nullishToOptional(z44.string()),
1050
+ urlInput: nullishToOptional(z45.string()),
1051
+ url: nullishToOptional(z45.string()),
1041
1052
  urlPreview: nullishToOptional(PageBlockUrlPreview),
1042
1053
  // Image
1043
1054
  asset: nullishToOptional(PageBlockAsset),
1044
1055
  alignment: nullishToOptional(PageBlockAlignment),
1045
1056
  // Shortcuts block
1046
- shortcuts: nullishToOptional(z44.array(PageBlockShortcut)),
1057
+ shortcuts: nullishToOptional(z45.array(PageBlockShortcut)),
1047
1058
  // Custom blocks
1048
- customBlockKey: nullishToOptional(z44.string()),
1049
- customBlockProperties: nullishToOptional(z44.array(PageBlockCustomBlockPropertyValue)),
1050
- variantKey: nullishToOptional(z44.string()),
1059
+ customBlockKey: nullishToOptional(z45.string()),
1060
+ customBlockProperties: nullishToOptional(z45.array(PageBlockCustomBlockPropertyValue)),
1061
+ variantKey: nullishToOptional(z45.string()),
1051
1062
  // Figma frames
1052
1063
  figmaFrameProperties: nullishToOptional(PageBlockFigmaFrameProperties),
1053
- figmaFrames: nullishToOptional(z44.array(PageBlockFrame)),
1064
+ figmaFrames: nullishToOptional(z45.array(PageBlockFrame)),
1054
1065
  // Generic
1055
1066
  size: nullishToOptional(Size),
1056
1067
  backgroundColor: nullishToOptional(ColorTokenInlineData),
1057
1068
  // Render code
1058
1069
  renderCodeProperties: nullishToOptional(PageBlockRenderCodeProperties),
1059
1070
  // Component assets
1060
- componentAssets: nullishToOptional(z44.array(PageBlockAssetComponent)),
1071
+ componentAssets: nullishToOptional(z45.array(PageBlockAssetComponent)),
1061
1072
  // Tables
1062
1073
  tableProperties: nullishToOptional(PageBlockTableProperties),
1063
- columnId: nullishToOptional(z44.string()),
1074
+ columnId: nullishToOptional(z45.string()),
1064
1075
  // Token spreadsheet
1065
1076
  theme: nullishToOptional(PageBlockTheme),
1066
- blacklistedElementProperties: nullishToOptional(z44.array(z44.string())),
1077
+ blacklistedElementProperties: nullishToOptional(z45.array(z45.string())),
1067
1078
  // Arbitrary
1068
- userMetadata: nullishToOptional(z44.string())
1079
+ userMetadata: nullishToOptional(z45.string())
1069
1080
  });
1070
1081
  var PageBlockV1 = PageBlockBaseV1.extend({
1071
- children: z44.lazy(
1082
+ children: z45.lazy(
1072
1083
  () => PageBlockV1.array().nullish().transform((t) => t ?? [])
1073
1084
  )
1074
1085
  });
@@ -1080,256 +1091,256 @@ function traversePageBlocksV1(blocks, action) {
1080
1091
  }
1081
1092
 
1082
1093
  // src/dsm/elements/data/documentation-block-v2.ts
1083
- import { z as z45 } from "zod";
1084
- var PageBlockLinkType = z45.enum(["DocumentationItem", "PageHeading", "Url"]);
1085
- var PageBlockImageType = z45.enum(["Resource", "FigmaNode"]);
1086
- var PageBlockImageAlignment = z45.enum(["Left", "Center", "Stretch"]);
1087
- var PageBlockTableCellAlignment = z45.enum(["Left", "Center", "Right"]);
1088
- var PageBlockPreviewContainerSize = z45.enum(["Centered", "NaturalHeight"]);
1089
- var PageBlockThemeDisplayMode = z45.enum(["Split", "Override"]);
1090
- var PageBlockImageResourceReference = z45.object({
1091
- resourceId: z45.string(),
1092
- url: z45.string()
1093
- });
1094
- var PageBlockResourceFrameNodeReference = z45.object({
1095
- sourceId: z45.string(),
1096
- frameReferenceId: z45.string()
1097
- });
1098
- var PageBlockImageReference = z45.object({
1094
+ import { z as z46 } from "zod";
1095
+ var PageBlockLinkType = z46.enum(["DocumentationItem", "PageHeading", "Url"]);
1096
+ var PageBlockImageType = z46.enum(["Resource", "FigmaNode"]);
1097
+ var PageBlockImageAlignment = z46.enum(["Left", "Center", "Stretch"]);
1098
+ var PageBlockTableCellAlignment = z46.enum(["Left", "Center", "Right"]);
1099
+ var PageBlockPreviewContainerSize = z46.enum(["Centered", "NaturalHeight"]);
1100
+ var PageBlockThemeDisplayMode = z46.enum(["Split", "Override"]);
1101
+ var PageBlockImageResourceReference = z46.object({
1102
+ resourceId: z46.string(),
1103
+ url: z46.string()
1104
+ });
1105
+ var PageBlockResourceFrameNodeReference = z46.object({
1106
+ sourceId: z46.string(),
1107
+ frameReferenceId: z46.string()
1108
+ });
1109
+ var PageBlockImageReference = z46.object({
1099
1110
  type: PageBlockImageType,
1100
1111
  resource: PageBlockImageResourceReference.optional(),
1101
1112
  figmaNode: PageBlockResourceFrameNodeReference.optional()
1102
1113
  });
1103
- var PageBlockColorV2 = z45.object({
1104
- value: z45.string(),
1105
- referencedTokenId: z45.string().optional()
1114
+ var PageBlockColorV2 = z46.object({
1115
+ value: z46.string(),
1116
+ referencedTokenId: z46.string().optional()
1106
1117
  });
1107
- var PageBlockAssetEntityMeta = z45.object({
1108
- title: z45.string().optional(),
1109
- description: z45.string().optional(),
1118
+ var PageBlockAssetEntityMeta = z46.object({
1119
+ title: z46.string().optional(),
1120
+ description: z46.string().optional(),
1110
1121
  backgroundColor: PageBlockColorV2.optional()
1111
1122
  });
1112
- var PageBlockFigmaNodeEntityMeta = z45.object({
1113
- title: z45.string().optional(),
1114
- description: z45.string().optional(),
1123
+ var PageBlockFigmaNodeEntityMeta = z46.object({
1124
+ title: z46.string().optional(),
1125
+ description: z46.string().optional(),
1115
1126
  backgroundColor: PageBlockColorV2.optional()
1116
1127
  });
1117
- var PageBlockAppearanceV2 = z45.object({
1128
+ var PageBlockAppearanceV2 = z46.object({
1118
1129
  itemBackgroundColor: PageBlockColorV2.optional(),
1119
- numberOfColumns: z45.number().optional()
1130
+ numberOfColumns: z46.number().optional()
1120
1131
  });
1121
- var PageBlockItemUntypedValue = z45.object({
1122
- value: z45.any()
1123
- }).and(z45.record(z45.any()));
1124
- var PageBlockLinkV2 = z45.object({
1132
+ var PageBlockItemUntypedValue = z46.object({
1133
+ value: z46.any()
1134
+ }).and(z46.record(z46.any()));
1135
+ var PageBlockLinkV2 = z46.object({
1125
1136
  type: PageBlockLinkType,
1126
- documentationItemId: z45.string().optional(),
1127
- pageHeadingId: z45.string().optional(),
1128
- url: z45.string().optional(),
1129
- openInNewTab: z45.boolean().optional()
1137
+ documentationItemId: z46.string().optional(),
1138
+ pageHeadingId: z46.string().optional(),
1139
+ url: z46.string().optional(),
1140
+ openInNewTab: z46.boolean().optional()
1130
1141
  });
1131
- var PageBlockItemV2 = z45.object({
1132
- id: z45.string(),
1142
+ var PageBlockItemV2 = z46.object({
1143
+ id: z46.string(),
1133
1144
  linksTo: PageBlockLinkV2.optional(),
1134
- props: z45.record(PageBlockItemUntypedValue)
1145
+ props: z46.record(PageBlockItemUntypedValue)
1135
1146
  });
1136
- var PageBlockDataV2 = z45.object({
1137
- packageId: z45.string(),
1138
- variantId: z45.string().optional(),
1139
- indentLevel: z45.number(),
1147
+ var PageBlockDataV2 = z46.object({
1148
+ packageId: z46.string(),
1149
+ variantId: z46.string().optional(),
1150
+ indentLevel: z46.number(),
1140
1151
  appearance: PageBlockAppearanceV2.optional(),
1141
- items: z45.array(PageBlockItemV2)
1152
+ items: z46.array(PageBlockItemV2)
1142
1153
  });
1143
- var PageBlockItemAssetValue = z45.object({
1144
- selectedPropertyIds: z45.array(z45.string()).optional(),
1145
- showSearch: z45.boolean().optional(),
1154
+ var PageBlockItemAssetValue = z46.object({
1155
+ selectedPropertyIds: z46.array(z46.string()).optional(),
1156
+ showSearch: z46.boolean().optional(),
1146
1157
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
1147
1158
  backgroundColor: PageBlockColorV2.optional(),
1148
- value: z45.array(
1149
- z45.object({
1150
- entityId: z45.string(),
1151
- entityType: z45.enum(["Asset", "AssetGroup"]),
1159
+ value: z46.array(
1160
+ z46.object({
1161
+ entityId: z46.string(),
1162
+ entityType: z46.enum(["Asset", "AssetGroup"]),
1152
1163
  entityMeta: PageBlockAssetEntityMeta.optional()
1153
1164
  })
1154
1165
  ).default([])
1155
1166
  });
1156
- var PageBlockItemAssetPropertyValue = z45.object({
1157
- value: z45.array(z45.string()).default([])
1167
+ var PageBlockItemAssetPropertyValue = z46.object({
1168
+ value: z46.array(z46.string()).default([])
1158
1169
  });
1159
- var PageBlockItemBooleanValue = z45.object({
1160
- value: z45.boolean()
1170
+ var PageBlockItemBooleanValue = z46.object({
1171
+ value: z46.boolean()
1161
1172
  });
1162
- var PageBlockItemCodeValue = z45.object({
1173
+ var PageBlockItemCodeValue = z46.object({
1163
1174
  format: PageBlockCodeLanguage.optional(),
1164
- caption: z45.string().optional(),
1165
- value: z45.string()
1166
- });
1167
- var PageBlockItemSandboxValue = z45.object({
1168
- showCode: z45.boolean().optional(),
1169
- showControls: z45.boolean().optional(),
1170
- backgroundColor: z45.string().optional(),
1171
- alignPreview: z45.enum(["Left", "Center"]).optional(),
1172
- previewHeight: z45.number().optional(),
1173
- value: z45.string()
1174
- });
1175
- var PageBlockItemColorValue = z45.record(z45.any());
1176
- var PageBlockItemComponentValue = z45.object({
1177
- selectedPropertyIds: z45.array(z45.string()).optional(),
1178
- value: z45.array(
1179
- z45.object({
1180
- entityId: z45.string(),
1181
- entityType: z45.enum(["Component", "ComponentGroup"])
1175
+ caption: z46.string().optional(),
1176
+ value: z46.string()
1177
+ });
1178
+ var PageBlockItemSandboxValue = z46.object({
1179
+ showCode: z46.boolean().optional(),
1180
+ showControls: z46.boolean().optional(),
1181
+ backgroundColor: z46.string().optional(),
1182
+ alignPreview: z46.enum(["Left", "Center"]).optional(),
1183
+ previewHeight: z46.number().optional(),
1184
+ value: z46.string()
1185
+ });
1186
+ var PageBlockItemColorValue = z46.record(z46.any());
1187
+ var PageBlockItemComponentValue = z46.object({
1188
+ selectedPropertyIds: z46.array(z46.string()).optional(),
1189
+ value: z46.array(
1190
+ z46.object({
1191
+ entityId: z46.string(),
1192
+ entityType: z46.enum(["Component", "ComponentGroup"])
1182
1193
  })
1183
1194
  ).default([])
1184
1195
  });
1185
- var PageBlockItemComponentPropertyValue = z45.object({
1186
- value: z45.string()
1187
- });
1188
- var PageBlockItemDividerValue = z45.object({});
1189
- var PageBlockItemEmbedValue = z45.object({
1190
- value: z45.string().optional(),
1191
- caption: z45.string().optional(),
1192
- height: z45.number().optional(),
1193
- openGraph: z45.object({
1194
- title: z45.string().optional(),
1195
- description: z45.string().optional(),
1196
- imageUrl: z45.string().optional()
1196
+ var PageBlockItemComponentPropertyValue = z46.object({
1197
+ value: z46.string()
1198
+ });
1199
+ var PageBlockItemDividerValue = z46.object({});
1200
+ var PageBlockItemEmbedValue = z46.object({
1201
+ value: z46.string().optional(),
1202
+ caption: z46.string().optional(),
1203
+ height: z46.number().optional(),
1204
+ openGraph: z46.object({
1205
+ title: z46.string().optional(),
1206
+ description: z46.string().optional(),
1207
+ imageUrl: z46.string().optional()
1197
1208
  }).optional()
1198
1209
  });
1199
- var PageBlockItemFigmaNodeValue = z45.object({
1200
- showSearch: z45.boolean().optional(),
1210
+ var PageBlockItemFigmaNodeValue = z46.object({
1211
+ showSearch: z46.boolean().optional(),
1201
1212
  previewContainerSize: PageBlockPreviewContainerSize.optional(),
1202
1213
  backgroundColor: PageBlockColorV2.optional(),
1203
- showFrameDetails: z45.boolean().optional(),
1204
- value: z45.array(
1205
- z45.object({
1206
- entityId: z45.string(),
1214
+ showFrameDetails: z46.boolean().optional(),
1215
+ value: z46.array(
1216
+ z46.object({
1217
+ entityId: z46.string(),
1207
1218
  entityMeta: PageBlockFigmaNodeEntityMeta.optional()
1208
1219
  })
1209
1220
  ).default([])
1210
1221
  });
1211
- var PageBlockItemImageValue = z45.object({
1212
- alt: z45.string().optional(),
1213
- caption: z45.string().optional(),
1222
+ var PageBlockItemImageValue = z46.object({
1223
+ alt: z46.string().optional(),
1224
+ caption: z46.string().optional(),
1214
1225
  alignment: PageBlockImageAlignment.optional(),
1215
1226
  value: PageBlockImageReference.optional()
1216
1227
  });
1217
- var PageBlockItemMarkdownValue = z45.object({
1218
- value: z45.string()
1228
+ var PageBlockItemMarkdownValue = z46.object({
1229
+ value: z46.string()
1219
1230
  });
1220
- var PageBlockItemMultiRichTextValue = z45.object({
1231
+ var PageBlockItemMultiRichTextValue = z46.object({
1221
1232
  value: PageBlockText.array()
1222
1233
  });
1223
- var PageBlockItemMultiSelectValue = z45.object({
1224
- value: z45.array(z45.string()).default([])
1234
+ var PageBlockItemMultiSelectValue = z46.object({
1235
+ value: z46.array(z46.string()).default([])
1225
1236
  });
1226
- var PageBlockItemNumberValue = z45.object({
1227
- value: z45.number()
1237
+ var PageBlockItemNumberValue = z46.object({
1238
+ value: z46.number()
1228
1239
  });
1229
- var PageBlockItemRichTextValue = z45.object({
1240
+ var PageBlockItemRichTextValue = z46.object({
1230
1241
  value: PageBlockText,
1231
1242
  calloutType: PageBlockCalloutType.optional()
1232
1243
  });
1233
- var PageBlockItemSingleSelectValue = z45.object({
1234
- value: z45.string()
1244
+ var PageBlockItemSingleSelectValue = z46.object({
1245
+ value: z46.string()
1235
1246
  });
1236
- var PageBlockItemStorybookValue = z45.object({
1237
- caption: z45.string().optional(),
1238
- height: z45.number().optional(),
1239
- embedUrl: z45.string().optional(),
1240
- value: z45.string().optional()
1247
+ var PageBlockItemStorybookValue = z46.object({
1248
+ caption: z46.string().optional(),
1249
+ height: z46.number().optional(),
1250
+ embedUrl: z46.string().optional(),
1251
+ value: z46.string().optional()
1241
1252
  });
1242
- var PageBlockItemTextValue = z45.object({
1243
- value: z45.string()
1253
+ var PageBlockItemTextValue = z46.object({
1254
+ value: z46.string()
1244
1255
  });
1245
- var PageBlockItemTokenValue = z45.object({
1246
- selectedPropertyIds: z45.array(z45.string()).optional(),
1247
- selectedThemeIds: z45.array(z45.string()).optional(),
1256
+ var PageBlockItemTokenValue = z46.object({
1257
+ selectedPropertyIds: z46.array(z46.string()).optional(),
1258
+ selectedThemeIds: z46.array(z46.string()).optional(),
1248
1259
  themeDisplayMode: PageBlockThemeDisplayMode.optional(),
1249
- value: z45.array(
1250
- z45.object({
1251
- entityId: z45.string(),
1252
- entityType: z45.enum(["Token", "TokenGroup"]),
1253
- entityMeta: z45.object({
1254
- showNestedGroups: z45.boolean().optional()
1260
+ value: z46.array(
1261
+ z46.object({
1262
+ entityId: z46.string(),
1263
+ entityType: z46.enum(["Token", "TokenGroup"]),
1264
+ entityMeta: z46.object({
1265
+ showNestedGroups: z46.boolean().optional()
1255
1266
  }).optional()
1256
1267
  })
1257
1268
  ).default([])
1258
1269
  });
1259
- var PageBlockItemTokenPropertyValue = z45.object({
1260
- selectedPropertyIds: z45.array(z45.string()).optional(),
1261
- selectedThemeIds: z45.array(z45.string()).optional(),
1262
- value: z45.array(z45.string()).default([])
1270
+ var PageBlockItemTokenPropertyValue = z46.object({
1271
+ selectedPropertyIds: z46.array(z46.string()).optional(),
1272
+ selectedThemeIds: z46.array(z46.string()).optional(),
1273
+ value: z46.array(z46.string()).default([])
1263
1274
  });
1264
- var PageBlockItemTokenTypeValue = z45.object({
1265
- value: z45.array(DesignTokenType).default([])
1275
+ var PageBlockItemTokenTypeValue = z46.object({
1276
+ value: z46.array(DesignTokenType).default([])
1266
1277
  });
1267
- var PageBlockItemUrlValue = z45.object({
1268
- value: z45.string()
1278
+ var PageBlockItemUrlValue = z46.object({
1279
+ value: z46.string()
1269
1280
  });
1270
- var PageBlockItemTableRichTextNode = z45.object({
1271
- type: z45.literal("RichText"),
1272
- id: z45.string(),
1281
+ var PageBlockItemTableRichTextNode = z46.object({
1282
+ type: z46.literal("RichText"),
1283
+ id: z46.string(),
1273
1284
  value: PageBlockItemRichTextValue.shape.value
1274
1285
  });
1275
- var PageBlockItemTableMultiRichTextNode = z45.object({
1276
- type: z45.literal("MultiRichText"),
1286
+ var PageBlockItemTableMultiRichTextNode = z46.object({
1287
+ type: z46.literal("MultiRichText"),
1277
1288
  value: PageBlockItemMultiRichTextValue.shape.value
1278
1289
  });
1279
- var PageBlockItemTableImageNode = z45.object({
1280
- type: z45.literal("Image"),
1281
- id: z45.string(),
1290
+ var PageBlockItemTableImageNode = z46.object({
1291
+ type: z46.literal("Image"),
1292
+ id: z46.string(),
1282
1293
  caption: PageBlockItemImageValue.shape.caption,
1283
1294
  value: PageBlockItemImageValue.shape.value
1284
1295
  });
1285
- var PageBlockItemTableNode = z45.discriminatedUnion("type", [
1296
+ var PageBlockItemTableNode = z46.discriminatedUnion("type", [
1286
1297
  PageBlockItemTableRichTextNode,
1287
1298
  // PageBlockItemTableMultiRichTextNode,
1288
1299
  PageBlockItemTableImageNode
1289
1300
  ]);
1290
- var PageBlockItemTableCell = z45.object({
1291
- id: z45.string(),
1292
- nodes: z45.array(PageBlockItemTableNode),
1293
- columnWidth: z45.number().optional(),
1301
+ var PageBlockItemTableCell = z46.object({
1302
+ id: z46.string(),
1303
+ nodes: z46.array(PageBlockItemTableNode),
1304
+ columnWidth: z46.number().optional(),
1294
1305
  alignment: PageBlockTableCellAlignment
1295
1306
  });
1296
- var PageBlockItemTableRow = z45.object({
1297
- cells: z45.array(PageBlockItemTableCell)
1307
+ var PageBlockItemTableRow = z46.object({
1308
+ cells: z46.array(PageBlockItemTableCell)
1298
1309
  });
1299
- var PageBlockItemTableValue = z45.object({
1300
- highlightHeaderColumn: z45.boolean().optional(),
1301
- highlightHeaderRow: z45.boolean().optional(),
1302
- showBorder: z45.boolean().optional(),
1303
- value: z45.array(PageBlockItemTableRow).default([])
1310
+ var PageBlockItemTableValue = z46.object({
1311
+ highlightHeaderColumn: z46.boolean().optional(),
1312
+ highlightHeaderRow: z46.boolean().optional(),
1313
+ showBorder: z46.boolean().optional(),
1314
+ value: z46.array(PageBlockItemTableRow).default([])
1304
1315
  });
1305
1316
 
1306
1317
  // src/dsm/elements/data/documentation-page-v1.ts
1307
- import { z as z49 } from "zod";
1318
+ import { z as z50 } from "zod";
1308
1319
 
1309
1320
  // src/dsm/elements/data/documentation-v1.ts
1310
- import { z as z48 } from "zod";
1321
+ import { z as z49 } from "zod";
1311
1322
 
1312
1323
  // src/dsm/elements/data/item-header-v1.ts
1313
- import { z as z47 } from "zod";
1324
+ import { z as z48 } from "zod";
1314
1325
 
1315
1326
  // src/dsm/elements/data/item-header.ts
1316
- import { z as z46 } from "zod";
1317
- var DocumentationItemHeaderAlignmentSchema = z46.enum(["Left", "Center"]);
1318
- var DocumentationItemHeaderImageScaleTypeSchema = z46.enum(["AspectFill", "AspectFit"]);
1327
+ import { z as z47 } from "zod";
1328
+ var DocumentationItemHeaderAlignmentSchema = z47.enum(["Left", "Center"]);
1329
+ var DocumentationItemHeaderImageScaleTypeSchema = z47.enum(["AspectFill", "AspectFit"]);
1319
1330
  var DocumentationItemHeaderAlignment = DocumentationItemHeaderAlignmentSchema.enum;
1320
1331
  var DocumentationItemHeaderImageScaleType = DocumentationItemHeaderImageScaleTypeSchema.enum;
1321
1332
 
1322
1333
  // src/dsm/elements/data/item-header-v1.ts
1323
- var DocumentationItemHeaderV1 = z47.object({
1324
- description: z47.string(),
1334
+ var DocumentationItemHeaderV1 = z48.object({
1335
+ description: z48.string(),
1325
1336
  alignment: DocumentationItemHeaderAlignmentSchema,
1326
1337
  foregroundColor: ColorTokenData.nullish(),
1327
1338
  backgroundColor: ColorTokenData.nullish(),
1328
1339
  backgroundImageAsset: PageBlockAsset.nullish(),
1329
1340
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1330
- showBackgroundOverlay: z47.boolean(),
1331
- showCoverText: z47.boolean(),
1332
- minHeight: z47.number().nullish()
1341
+ showBackgroundOverlay: z48.boolean(),
1342
+ showCoverText: z48.boolean(),
1343
+ minHeight: z48.number().nullish()
1333
1344
  });
1334
1345
  var defaultDocumentationItemHeaderV1 = {
1335
1346
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -1340,10 +1351,10 @@ var defaultDocumentationItemHeaderV1 = {
1340
1351
  };
1341
1352
 
1342
1353
  // src/dsm/elements/data/documentation-v1.ts
1343
- var DocumentationItemConfigurationV1 = z48.object({
1344
- showSidebar: z48.boolean(),
1345
- isPrivate: z48.boolean().optional(),
1346
- isHidden: z48.boolean().optional(),
1354
+ var DocumentationItemConfigurationV1 = z49.object({
1355
+ showSidebar: z49.boolean(),
1356
+ isPrivate: z49.boolean().optional(),
1357
+ isHidden: z49.boolean().optional(),
1347
1358
  header: DocumentationItemHeaderV1
1348
1359
  });
1349
1360
  var defaultDocumentationItemConfigurationV1 = {
@@ -1352,29 +1363,29 @@ var defaultDocumentationItemConfigurationV1 = {
1352
1363
  };
1353
1364
 
1354
1365
  // src/dsm/elements/data/documentation-page-v1.ts
1355
- var DocumentationPageDataV1 = z49.object({
1356
- blocks: z49.array(PageBlockV1),
1366
+ var DocumentationPageDataV1 = z50.object({
1367
+ blocks: z50.array(PageBlockV1),
1357
1368
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
1358
1369
  });
1359
1370
 
1360
1371
  // src/dsm/elements/data/documentation-page-v2.ts
1361
- import { z as z52 } from "zod";
1372
+ import { z as z53 } from "zod";
1362
1373
 
1363
1374
  // src/dsm/elements/data/documentation-v2.ts
1364
- import { z as z51 } from "zod";
1375
+ import { z as z52 } from "zod";
1365
1376
 
1366
1377
  // src/dsm/elements/data/item-header-v2.ts
1367
- import { z as z50 } from "zod";
1368
- var DocumentationItemHeaderV2 = z50.object({
1369
- description: z50.string(),
1378
+ import { z as z51 } from "zod";
1379
+ var DocumentationItemHeaderV2 = z51.object({
1380
+ description: z51.string(),
1370
1381
  alignment: DocumentationItemHeaderAlignmentSchema,
1371
1382
  foregroundColor: PageBlockColorV2.nullish(),
1372
1383
  backgroundColor: PageBlockColorV2.nullish(),
1373
1384
  backgroundImageAsset: PageBlockImageReference.nullish(),
1374
1385
  backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
1375
- showBackgroundOverlay: z50.boolean(),
1376
- showCoverText: z50.boolean(),
1377
- minHeight: z50.number().nullish()
1386
+ showBackgroundOverlay: z51.boolean(),
1387
+ showCoverText: z51.boolean(),
1388
+ minHeight: z51.number().nullish()
1378
1389
  });
1379
1390
  var defaultDocumentationItemHeaderV2 = {
1380
1391
  alignment: DocumentationItemHeaderAlignment.Left,
@@ -1385,10 +1396,10 @@ var defaultDocumentationItemHeaderV2 = {
1385
1396
  };
1386
1397
 
1387
1398
  // src/dsm/elements/data/documentation-v2.ts
1388
- var DocumentationItemConfigurationV2 = z51.object({
1389
- showSidebar: z51.boolean(),
1390
- isPrivate: z51.boolean().optional(),
1391
- isHidden: z51.boolean().optional(),
1399
+ var DocumentationItemConfigurationV2 = z52.object({
1400
+ showSidebar: z52.boolean(),
1401
+ isPrivate: z52.boolean().optional(),
1402
+ isHidden: z52.boolean().optional(),
1392
1403
  header: DocumentationItemHeaderV2
1393
1404
  });
1394
1405
  var defaultDocumentationItemConfigurationV2 = {
@@ -1399,122 +1410,122 @@ var defaultDocumentationItemConfigurationV2 = {
1399
1410
  };
1400
1411
 
1401
1412
  // src/dsm/elements/data/documentation-page-v2.ts
1402
- var DocumentationPageDataV2 = z52.object({
1413
+ var DocumentationPageDataV2 = z53.object({
1403
1414
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
1404
1415
  });
1405
1416
 
1406
1417
  // src/dsm/elements/data/documentation-section-v2.ts
1407
- import { z as z55 } from "zod";
1418
+ import { z as z56 } from "zod";
1408
1419
 
1409
1420
  // src/dsm/elements/page-block-v2.ts
1410
- import { z as z54 } from "zod";
1421
+ import { z as z55 } from "zod";
1411
1422
 
1412
1423
  // src/dsm/elements/base.ts
1413
- import { z as z53 } from "zod";
1414
- var DesignElementOrigin = z53.object({
1415
- id: z53.string(),
1416
- sourceId: z53.string(),
1417
- name: z53.string()
1418
- });
1419
- var DesignElementBase = z53.object({
1420
- id: z53.string(),
1421
- persistentId: z53.string(),
1424
+ import { z as z54 } from "zod";
1425
+ var DesignElementOrigin = z54.object({
1426
+ id: z54.string(),
1427
+ sourceId: z54.string(),
1428
+ name: z54.string()
1429
+ });
1430
+ var DesignElementBase = z54.object({
1431
+ id: z54.string(),
1432
+ persistentId: z54.string(),
1422
1433
  meta: ObjectMeta,
1423
- designSystemVersionId: z53.string(),
1424
- createdAt: z53.coerce.date(),
1425
- updatedAt: z53.coerce.date()
1434
+ designSystemVersionId: z54.string(),
1435
+ createdAt: z54.coerce.date(),
1436
+ updatedAt: z54.coerce.date()
1426
1437
  });
1427
1438
  var DesignElementImportedBase = DesignElementBase.extend({
1428
1439
  origin: DesignElementOrigin
1429
1440
  });
1430
- var DesignElementGroupablePart = z53.object({
1431
- parentPersistentId: z53.string().optional(),
1432
- sortOrder: z53.number()
1441
+ var DesignElementGroupablePart = z54.object({
1442
+ parentPersistentId: z54.string().optional(),
1443
+ sortOrder: z54.number()
1433
1444
  });
1434
1445
  var DesignElementGroupableBase = DesignElementBase.extend(DesignElementGroupablePart.shape);
1435
1446
  var DesignElementGroupableRequiredPart = DesignElementGroupablePart.extend({
1436
- parentPersistentId: z53.string()
1447
+ parentPersistentId: z54.string()
1437
1448
  });
1438
- var DesignElementBrandedPart = z53.object({
1439
- brandPersistentId: z53.string()
1449
+ var DesignElementBrandedPart = z54.object({
1450
+ brandPersistentId: z54.string()
1440
1451
  });
1441
- var DesignElementSlugPart = z53.object({
1442
- slug: z53.string().optional(),
1443
- userSlug: z53.string().optional()
1452
+ var DesignElementSlugPart = z54.object({
1453
+ slug: z54.string().optional(),
1454
+ userSlug: z54.string().optional()
1444
1455
  });
1445
1456
 
1446
1457
  // src/dsm/elements/page-block-v2.ts
1447
1458
  var PageBlockV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend({
1448
1459
  data: PageBlockDataV2
1449
1460
  });
1450
- var PageBlockEditorModelV2 = z54.object({
1451
- id: z54.string(),
1452
- type: z54.literal("Block"),
1461
+ var PageBlockEditorModelV2 = z55.object({
1462
+ id: z55.string(),
1463
+ type: z55.literal("Block"),
1453
1464
  data: PageBlockDataV2
1454
1465
  });
1455
1466
 
1456
1467
  // src/dsm/elements/data/documentation-section-v2.ts
1457
- var PageSectionTypeV2 = z55.enum(["Tabs"]);
1458
- var PageSectionColumnV2 = z55.object({
1459
- id: z55.string(),
1460
- blocks: z55.array(PageBlockEditorModelV2)
1461
- });
1462
- var PageSectionItemV2 = z55.object({
1463
- id: z55.string(),
1464
- title: z55.string(),
1465
- columns: z55.array(PageSectionColumnV2)
1466
- });
1467
- var PageSectionPaddingV2 = z55.object({
1468
- top: z55.number().optional(),
1469
- bottom: z55.number().optional(),
1470
- left: z55.number().optional(),
1471
- right: z55.number().optional()
1472
- });
1473
- var PageSectionAppearanceV2 = z55.object({
1474
- expandToEdges: z55.boolean(),
1475
- contentExpandToEdges: z55.boolean(),
1468
+ var PageSectionTypeV2 = z56.enum(["Tabs"]);
1469
+ var PageSectionColumnV2 = z56.object({
1470
+ id: z56.string(),
1471
+ blocks: z56.array(PageBlockEditorModelV2)
1472
+ });
1473
+ var PageSectionItemV2 = z56.object({
1474
+ id: z56.string(),
1475
+ title: z56.string(),
1476
+ columns: z56.array(PageSectionColumnV2)
1477
+ });
1478
+ var PageSectionPaddingV2 = z56.object({
1479
+ top: z56.number().optional(),
1480
+ bottom: z56.number().optional(),
1481
+ left: z56.number().optional(),
1482
+ right: z56.number().optional()
1483
+ });
1484
+ var PageSectionAppearanceV2 = z56.object({
1485
+ expandToEdges: z56.boolean(),
1486
+ contentExpandToEdges: z56.boolean(),
1476
1487
  backgroundColor: PageBlockColorV2.optional(),
1477
1488
  foregroundColor: PageBlockColorV2.optional(),
1478
1489
  padding: PageSectionPaddingV2.optional()
1479
1490
  });
1480
- var PageSectionEditorModelV2 = z55.object({
1481
- id: z55.string(),
1482
- type: z55.literal("Section"),
1483
- variantId: z55.string().optional(),
1491
+ var PageSectionEditorModelV2 = z56.object({
1492
+ id: z56.string(),
1493
+ type: z56.literal("Section"),
1494
+ variantId: z56.string().optional(),
1484
1495
  sectionType: PageSectionTypeV2,
1485
1496
  appearance: PageSectionAppearanceV2,
1486
- items: z55.array(PageSectionItemV2)
1497
+ items: z56.array(PageSectionItemV2)
1487
1498
  });
1488
1499
 
1489
1500
  // src/dsm/elements/data/duration.ts
1490
- import { z as z56 } from "zod";
1491
- var DurationUnit = z56.enum(["Ms"]);
1492
- var DurationValue = z56.object({
1501
+ import { z as z57 } from "zod";
1502
+ var DurationUnit = z57.enum(["Ms"]);
1503
+ var DurationValue = z57.object({
1493
1504
  unit: DurationUnit,
1494
- measure: z56.number()
1505
+ measure: z57.number()
1495
1506
  });
1496
1507
  var DurationTokenData = tokenAliasOrValue(DurationValue);
1497
1508
 
1498
1509
  // src/dsm/elements/data/figma-file-structure.ts
1499
- import { z as z57 } from "zod";
1500
- var FigmaFileStructureNodeType = z57.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
1501
- var FigmaFileStructureNodeBase = z57.object({
1502
- id: z57.string(),
1503
- name: z57.string(),
1510
+ import { z as z58 } from "zod";
1511
+ var FigmaFileStructureNodeType = z58.enum(["DOCUMENT", "CANVAS", "FRAME", "COMPONENT", "COMPONENT_SET"]);
1512
+ var FigmaFileStructureNodeBase = z58.object({
1513
+ id: z58.string(),
1514
+ name: z58.string(),
1504
1515
  type: FigmaFileStructureNodeType,
1505
1516
  size: SizeOrUndefined,
1506
- parentComponentSetId: z57.string().optional()
1517
+ parentComponentSetId: z58.string().optional()
1507
1518
  });
1508
1519
  var FigmaFileStructureNode = FigmaFileStructureNodeBase.extend({
1509
- children: z57.lazy(() => FigmaFileStructureNode.array())
1520
+ children: z58.lazy(() => FigmaFileStructureNode.array())
1510
1521
  });
1511
- var FigmaFileStructureStatistics = z57.object({
1512
- frames: z57.number().nullable().optional().transform((v) => v ?? 0),
1513
- components: z57.number().nullable().optional().transform((v) => v ?? 0),
1514
- componentSets: z57.number().nullable().optional().transform((v) => v ?? 0)
1522
+ var FigmaFileStructureStatistics = z58.object({
1523
+ frames: z58.number().nullable().optional().transform((v) => v ?? 0),
1524
+ components: z58.number().nullable().optional().transform((v) => v ?? 0),
1525
+ componentSets: z58.number().nullable().optional().transform((v) => v ?? 0)
1515
1526
  });
1516
- var FigmaFileStructureElementData = z57.object({
1517
- value: z57.object({
1527
+ var FigmaFileStructureElementData = z58.object({
1528
+ value: z58.object({
1518
1529
  structure: FigmaFileStructureNode,
1519
1530
  assetsInFile: FigmaFileStructureStatistics
1520
1531
  })
@@ -1531,119 +1542,119 @@ function recursiveFigmaFileStructureToMap(node, map) {
1531
1542
  }
1532
1543
 
1533
1544
  // src/dsm/elements/data/figma-node-reference.ts
1534
- import { z as z58 } from "zod";
1535
- var FigmaNodeReferenceData = z58.object({
1536
- structureElementId: z58.string(),
1537
- nodeId: z58.string(),
1538
- fileId: z58.string().optional(),
1539
- valid: z58.boolean(),
1545
+ import { z as z59 } from "zod";
1546
+ var FigmaNodeReferenceData = z59.object({
1547
+ structureElementId: z59.string(),
1548
+ nodeId: z59.string(),
1549
+ fileId: z59.string().optional(),
1550
+ valid: z59.boolean(),
1540
1551
  // Asset data
1541
- assetId: z58.string().optional(),
1542
- assetScale: z58.number().optional(),
1543
- assetWidth: z58.number().optional(),
1544
- assetHeight: z58.number().optional(),
1545
- assetUrl: z58.string().optional(),
1546
- assetOriginKey: z58.string().optional()
1547
- });
1548
- var FigmaNodeReferenceElementData = z58.object({
1552
+ assetId: z59.string().optional(),
1553
+ assetScale: z59.number().optional(),
1554
+ assetWidth: z59.number().optional(),
1555
+ assetHeight: z59.number().optional(),
1556
+ assetUrl: z59.string().optional(),
1557
+ assetOriginKey: z59.string().optional()
1558
+ });
1559
+ var FigmaNodeReferenceElementData = z59.object({
1549
1560
  value: FigmaNodeReferenceData
1550
1561
  });
1551
1562
 
1552
1563
  // src/dsm/elements/data/font-family.ts
1553
- import { z as z59 } from "zod";
1554
- var FontFamilyValue = z59.string();
1564
+ import { z as z60 } from "zod";
1565
+ var FontFamilyValue = z60.string();
1555
1566
  var FontFamilyTokenData = tokenAliasOrValue(FontFamilyValue);
1556
1567
 
1557
1568
  // src/dsm/elements/data/font-size.ts
1558
- import { z as z60 } from "zod";
1559
- var FontSizeUnit = z60.enum(["Pixels", "Rem", "Percent"]);
1560
- var FontSizeValue = z60.object({
1569
+ import { z as z61 } from "zod";
1570
+ var FontSizeUnit = z61.enum(["Pixels", "Rem", "Percent"]);
1571
+ var FontSizeValue = z61.object({
1561
1572
  unit: FontSizeUnit,
1562
- measure: z60.number()
1573
+ measure: z61.number()
1563
1574
  });
1564
1575
  var FontSizeTokenData = tokenAliasOrValue(FontSizeValue);
1565
1576
 
1566
1577
  // src/dsm/elements/data/font-weight.ts
1567
- import { z as z61 } from "zod";
1568
- var FontWeightValue = z61.string();
1578
+ import { z as z62 } from "zod";
1579
+ var FontWeightValue = z62.string();
1569
1580
  var FontWeightTokenData = tokenAliasOrValue(FontWeightValue);
1570
1581
 
1571
1582
  // src/dsm/elements/data/gradient.ts
1572
- import { z as z62 } from "zod";
1573
- var GradientType = z62.enum(["Linear", "Radial", "Angular"]);
1574
- var GradientStop = z62.object({
1575
- position: z62.number(),
1583
+ import { z as z63 } from "zod";
1584
+ var GradientType = z63.enum(["Linear", "Radial", "Angular"]);
1585
+ var GradientStop = z63.object({
1586
+ position: z63.number(),
1576
1587
  color: ColorTokenData
1577
1588
  });
1578
- var GradientLayerValue = z62.object({
1589
+ var GradientLayerValue = z63.object({
1579
1590
  from: Point2D,
1580
1591
  to: Point2D,
1581
1592
  type: GradientType,
1582
- aspectRatio: nullishToOptional(z62.number()),
1593
+ aspectRatio: nullishToOptional(z63.number()),
1583
1594
  // z.number(),
1584
- stops: z62.array(GradientStop).min(2)
1595
+ stops: z63.array(GradientStop).min(2)
1585
1596
  });
1586
1597
  var GradientLayerData = tokenAliasOrValue(GradientLayerValue);
1587
- var GradientTokenValue = z62.array(GradientLayerData);
1598
+ var GradientTokenValue = z63.array(GradientLayerData);
1588
1599
  var GradientTokenData = tokenAliasOrValue(GradientTokenValue);
1589
1600
 
1590
1601
  // src/dsm/elements/data/group.ts
1591
- import { z as z63 } from "zod";
1592
- var DocumentationGroupBehavior = z63.enum(["Group", "Tabs"]);
1593
- var ElementGroupDataV1 = z63.object({
1602
+ import { z as z64 } from "zod";
1603
+ var DocumentationGroupBehavior = z64.enum(["Group", "Tabs"]);
1604
+ var ElementGroupDataV1 = z64.object({
1594
1605
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1595
1606
  configuration: nullishToOptional(DocumentationItemConfigurationV1)
1596
1607
  });
1597
- var ElementGroupDataV2 = z63.object({
1608
+ var ElementGroupDataV2 = z64.object({
1598
1609
  behavior: nullishToOptional(DocumentationGroupBehavior.optional()),
1599
1610
  configuration: nullishToOptional(DocumentationItemConfigurationV2)
1600
1611
  });
1601
1612
 
1602
1613
  // src/dsm/elements/data/letter-spacing.ts
1603
- import { z as z64 } from "zod";
1604
- var LetterSpacingUnit = z64.enum(["Pixels", "Rem", "Percent"]);
1605
- var LetterSpacingValue = z64.object({
1614
+ import { z as z65 } from "zod";
1615
+ var LetterSpacingUnit = z65.enum(["Pixels", "Rem", "Percent"]);
1616
+ var LetterSpacingValue = z65.object({
1606
1617
  unit: LetterSpacingUnit,
1607
- measure: z64.number()
1618
+ measure: z65.number()
1608
1619
  });
1609
1620
  var LetterSpacingTokenData = tokenAliasOrValue(LetterSpacingValue);
1610
1621
 
1611
1622
  // src/dsm/elements/data/line-height.ts
1612
- import { z as z65 } from "zod";
1613
- var LineHeightUnit = z65.enum(["Pixels", "Rem", "Percent", "Raw"]);
1614
- var LineHeightValue = z65.object({
1623
+ import { z as z66 } from "zod";
1624
+ var LineHeightUnit = z66.enum(["Pixels", "Rem", "Percent", "Raw"]);
1625
+ var LineHeightValue = z66.object({
1615
1626
  unit: LineHeightUnit,
1616
- measure: z65.number()
1627
+ measure: z66.number()
1617
1628
  });
1618
1629
  var LineHeightTokenData = tokenAliasOrValue(LineHeightValue);
1619
1630
 
1620
1631
  // src/dsm/elements/data/paragraph-indent.ts
1621
- import { z as z66 } from "zod";
1622
- var ParagraphIndentUnit = z66.enum(["Pixels", "Rem", "Percent"]);
1623
- var ParagraphIndentValue = z66.object({
1632
+ import { z as z67 } from "zod";
1633
+ var ParagraphIndentUnit = z67.enum(["Pixels", "Rem", "Percent"]);
1634
+ var ParagraphIndentValue = z67.object({
1624
1635
  unit: ParagraphIndentUnit,
1625
- measure: z66.number()
1636
+ measure: z67.number()
1626
1637
  });
1627
1638
  var ParagraphIndentTokenData = tokenAliasOrValue(ParagraphIndentValue);
1628
1639
 
1629
1640
  // src/dsm/elements/data/paragraph-spacing.ts
1630
- import { z as z67 } from "zod";
1631
- var ParagraphSpacingUnit = z67.enum(["Pixels", "Rem", "Percent"]);
1632
- var ParagraphSpacingValue = z67.object({
1641
+ import { z as z68 } from "zod";
1642
+ var ParagraphSpacingUnit = z68.enum(["Pixels", "Rem", "Percent"]);
1643
+ var ParagraphSpacingValue = z68.object({
1633
1644
  unit: ParagraphSpacingUnit,
1634
- measure: z67.number()
1645
+ measure: z68.number()
1635
1646
  });
1636
1647
  var ParagraphSpacingTokenData = tokenAliasOrValue(ParagraphSpacingValue);
1637
1648
 
1638
1649
  // src/dsm/elements/data/product-copy.ts
1639
- import { z as z68 } from "zod";
1640
- var ProductCopyValue = z68.string();
1650
+ import { z as z69 } from "zod";
1651
+ var ProductCopyValue = z69.string();
1641
1652
  var ProductCopyTokenData = tokenAliasOrValue(ProductCopyValue);
1642
1653
 
1643
1654
  // src/dsm/elements/data/safe-id.ts
1644
- import { z as z69 } from "zod";
1655
+ import { z as z70 } from "zod";
1645
1656
  var RESERVED_OBJECT_ID_PREFIX = "x-sn-reserved-";
1646
- var SafeIdSchema = z69.string().refine(
1657
+ var SafeIdSchema = z70.string().refine(
1647
1658
  (value) => {
1648
1659
  return !value.startsWith(RESERVED_OBJECT_ID_PREFIX);
1649
1660
  },
@@ -1653,58 +1664,58 @@ var SafeIdSchema = z69.string().refine(
1653
1664
  );
1654
1665
 
1655
1666
  // src/dsm/elements/data/shadow.ts
1656
- import { z as z70 } from "zod";
1657
- var ShadowType = z70.enum(["Drop", "Inner"]);
1658
- var ShadowLayerValue = z70.object({
1667
+ import { z as z71 } from "zod";
1668
+ var ShadowType = z71.enum(["Drop", "Inner"]);
1669
+ var ShadowLayerValue = z71.object({
1659
1670
  color: ColorTokenData,
1660
- x: z70.number(),
1661
- y: z70.number(),
1662
- radius: z70.number(),
1663
- spread: z70.number(),
1671
+ x: z71.number(),
1672
+ y: z71.number(),
1673
+ radius: z71.number(),
1674
+ spread: z71.number(),
1664
1675
  opacity: OpacityTokenData.optional(),
1665
1676
  type: ShadowType
1666
1677
  });
1667
1678
  var ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
1668
- var ShadowTokenData = tokenAliasOrValue(z70.array(ShadowTokenDataBase));
1679
+ var ShadowTokenData = tokenAliasOrValue(z71.array(ShadowTokenDataBase));
1669
1680
 
1670
1681
  // src/dsm/elements/data/size.ts
1671
- import { z as z71 } from "zod";
1672
- var SizeUnit = z71.enum(["Pixels", "Rem", "Percent"]);
1673
- var SizeValue = z71.object({
1682
+ import { z as z72 } from "zod";
1683
+ var SizeUnit = z72.enum(["Pixels", "Rem", "Percent"]);
1684
+ var SizeValue = z72.object({
1674
1685
  unit: SizeUnit,
1675
- measure: z71.number()
1686
+ measure: z72.number()
1676
1687
  });
1677
1688
  var SizeTokenData = tokenAliasOrValue(SizeValue);
1678
1689
 
1679
1690
  // src/dsm/elements/data/space.ts
1680
- import { z as z72 } from "zod";
1681
- var SpaceUnit = z72.enum(["Pixels", "Rem", "Percent"]);
1682
- var SpaceValue = z72.object({
1691
+ import { z as z73 } from "zod";
1692
+ var SpaceUnit = z73.enum(["Pixels", "Rem", "Percent"]);
1693
+ var SpaceValue = z73.object({
1683
1694
  unit: SpaceUnit,
1684
- measure: z72.number()
1695
+ measure: z73.number()
1685
1696
  });
1686
1697
  var SpaceTokenData = tokenAliasOrValue(SpaceValue);
1687
1698
 
1688
1699
  // src/dsm/elements/data/string.ts
1689
- import { z as z73 } from "zod";
1690
- var StringValue = z73.string();
1700
+ import { z as z74 } from "zod";
1701
+ var StringValue = z74.string();
1691
1702
  var StringTokenData = tokenAliasOrValue(StringValue);
1692
1703
 
1693
1704
  // src/dsm/elements/data/text-case.ts
1694
- import { z as z74 } from "zod";
1695
- var TextCase = z74.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
1705
+ import { z as z75 } from "zod";
1706
+ var TextCase = z75.enum(["Original", "Upper", "Lower", "Camel", "SmallCaps"]);
1696
1707
  var TextCaseValue = TextCase;
1697
1708
  var TextCaseTokenData = tokenAliasOrValue(TextCaseValue);
1698
1709
 
1699
1710
  // src/dsm/elements/data/text-decoration.ts
1700
- import { z as z75 } from "zod";
1701
- var TextDecoration = z75.enum(["None", "Underline", "Strikethrough"]);
1711
+ import { z as z76 } from "zod";
1712
+ var TextDecoration = z76.enum(["None", "Underline", "Strikethrough"]);
1702
1713
  var TextDecorationValue = TextDecoration;
1703
1714
  var TextDecorationTokenData = tokenAliasOrValue(TextDecorationValue);
1704
1715
 
1705
1716
  // src/dsm/elements/data/typography.ts
1706
- import { z as z76 } from "zod";
1707
- var TypographyValue = z76.object({
1717
+ import { z as z77 } from "zod";
1718
+ var TypographyValue = z77.object({
1708
1719
  fontSize: FontSizeTokenData,
1709
1720
  fontFamily: FontFamilyTokenData,
1710
1721
  fontWeight: FontWeightTokenData,
@@ -1718,49 +1729,49 @@ var TypographyValue = z76.object({
1718
1729
  var TypographyTokenData = tokenAliasOrValue(TypographyValue);
1719
1730
 
1720
1731
  // src/dsm/elements/data/visibility.ts
1721
- import { z as z77 } from "zod";
1722
- var Visibility = z77.enum(["Hidden", "Visible"]);
1732
+ import { z as z78 } from "zod";
1733
+ var Visibility = z78.enum(["Hidden", "Visible"]);
1723
1734
  var VisibilityValue = Visibility;
1724
1735
  var VisibilityTokenData = tokenAliasOrValue(VisibilityValue);
1725
1736
 
1726
1737
  // src/dsm/elements/data/z-index.ts
1727
- import { z as z78 } from "zod";
1728
- var ZIndexUnit = z78.enum(["Raw"]);
1729
- var ZIndexValue = z78.object({
1738
+ import { z as z79 } from "zod";
1739
+ var ZIndexUnit = z79.enum(["Raw"]);
1740
+ var ZIndexValue = z79.object({
1730
1741
  unit: ZIndexUnit,
1731
- measure: z78.number()
1742
+ measure: z79.number()
1732
1743
  });
1733
1744
  var ZIndexTokenData = tokenAliasOrValue(ZIndexValue);
1734
1745
 
1735
1746
  // src/dsm/elements/component.ts
1736
- import { z as z79 } from "zod";
1737
- var ComponentOriginPart = z79.object({
1738
- nodeId: z79.string().optional(),
1739
- width: z79.number().optional(),
1740
- height: z79.number().optional()
1747
+ import { z as z80 } from "zod";
1748
+ var ComponentOriginPart = z80.object({
1749
+ nodeId: z80.string().optional(),
1750
+ width: z80.number().optional(),
1751
+ height: z80.number().optional()
1741
1752
  });
1742
- var ComponentAsset = z79.object({
1743
- assetId: z79.string(),
1744
- assetPath: z79.string()
1753
+ var ComponentAsset = z80.object({
1754
+ assetId: z80.string(),
1755
+ assetPath: z80.string()
1745
1756
  });
1746
1757
  var ComponentOrigin = DesignElementOrigin.extend(ComponentOriginPart.shape);
1747
1758
  var Component = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
1748
1759
  origin: ComponentOrigin.optional(),
1749
1760
  thumbnail: ComponentAsset,
1750
1761
  svg: ComponentAsset.optional(),
1751
- isAsset: z79.boolean()
1762
+ isAsset: z80.boolean()
1752
1763
  });
1753
1764
  function isImportedComponent(component) {
1754
1765
  return !!component.origin;
1755
1766
  }
1756
1767
 
1757
1768
  // src/dsm/elements/documentation-page-v1.ts
1758
- import { z as z81 } from "zod";
1769
+ import { z as z82 } from "zod";
1759
1770
 
1760
1771
  // src/dsm/elements/group.ts
1761
- import { z as z80 } from "zod";
1772
+ import { z as z81 } from "zod";
1762
1773
  var ElementGroup = DesignElementBase.extend(DesignElementGroupablePart.shape).extend(DesignElementSlugPart.shape).extend(DesignElementBrandedPart.partial().shape).extend({
1763
- shortPersistentId: z80.string().optional(),
1774
+ shortPersistentId: z81.string().optional(),
1764
1775
  childType: DesignElementType,
1765
1776
  data: ElementGroupDataV2.optional()
1766
1777
  });
@@ -1768,7 +1779,7 @@ var BrandedElementGroup = ElementGroup.extend(DesignElementBrandedPart.shape);
1768
1779
 
1769
1780
  // src/dsm/elements/documentation-page-v1.ts
1770
1781
  var DocumentationPageV1 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1771
- shortPersistentId: z81.string(),
1782
+ shortPersistentId: z82.string(),
1772
1783
  data: DocumentationPageDataV1
1773
1784
  });
1774
1785
  var DocumentationGroupV1 = ElementGroup.omit({
@@ -1778,21 +1789,21 @@ var DocumentationGroupV1 = ElementGroup.omit({
1778
1789
  });
1779
1790
 
1780
1791
  // src/dsm/elements/documentation-page-v2.ts
1781
- import { z as z82 } from "zod";
1792
+ import { z as z83 } from "zod";
1782
1793
  var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementSlugPart.shape).extend({
1783
- shortPersistentId: z82.string(),
1794
+ shortPersistentId: z83.string(),
1784
1795
  data: DocumentationPageDataV2.extend({
1785
- oldBlocks: z82.array(PageBlockV1).optional()
1796
+ oldBlocks: z83.array(PageBlockV1).optional()
1786
1797
  })
1787
1798
  });
1788
1799
 
1789
1800
  // src/dsm/elements/figma-file-structures.ts
1790
- import { z as z83 } from "zod";
1791
- var FigmaFileStructureOrigin = z83.object({
1792
- sourceId: z83.string(),
1793
- fileId: z83.string().optional()
1801
+ import { z as z84 } from "zod";
1802
+ var FigmaFileStructureOrigin = z84.object({
1803
+ sourceId: z84.string(),
1804
+ fileId: z84.string().optional()
1794
1805
  });
1795
- var FigmaFileStructureData = z83.object({
1806
+ var FigmaFileStructureData = z84.object({
1796
1807
  rootNode: FigmaFileStructureNode,
1797
1808
  assetsInFile: FigmaFileStructureStatistics
1798
1809
  });
@@ -1808,10 +1819,10 @@ function traverseStructure(node, action) {
1808
1819
  }
1809
1820
 
1810
1821
  // src/dsm/elements/figma-node-reference.ts
1811
- import { z as z84 } from "zod";
1812
- var FigmaNodeReferenceOrigin = z84.object({
1813
- sourceId: z84.string(),
1814
- parentName: z84.string().optional()
1822
+ import { z as z85 } from "zod";
1823
+ var FigmaNodeReferenceOrigin = z85.object({
1824
+ sourceId: z85.string(),
1825
+ parentName: z85.string().optional()
1815
1826
  });
1816
1827
  var FigmaNodeReference = DesignElementBase.extend({
1817
1828
  data: FigmaNodeReferenceData,
@@ -1819,13 +1830,13 @@ var FigmaNodeReference = DesignElementBase.extend({
1819
1830
  });
1820
1831
 
1821
1832
  // src/dsm/elements/theme.ts
1822
- import { z as z86 } from "zod";
1833
+ import { z as z87 } from "zod";
1823
1834
 
1824
1835
  // src/dsm/elements/tokens.ts
1825
- import { z as z85 } from "zod";
1826
- var DesignTokenOriginPart = z85.object({
1827
- referenceOriginId: z85.string().optional(),
1828
- referencePersistentId: z85.string().optional()
1836
+ import { z as z86 } from "zod";
1837
+ var DesignTokenOriginPart = z86.object({
1838
+ referenceOriginId: z86.string().optional(),
1839
+ referencePersistentId: z86.string().optional()
1829
1840
  });
1830
1841
  var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
1831
1842
  var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
@@ -1837,111 +1848,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
1837
1848
  brandPersistentId: true,
1838
1849
  designSystemVersionId: true
1839
1850
  });
1840
- var BlurTokenTypedData = z85.object({
1841
- type: z85.literal("Blur"),
1851
+ var BlurTokenTypedData = z86.object({
1852
+ type: z86.literal("Blur"),
1842
1853
  data: BlurTokenData
1843
1854
  });
1844
- var ColorTokenTypedData = z85.object({
1845
- type: z85.literal("Color"),
1855
+ var ColorTokenTypedData = z86.object({
1856
+ type: z86.literal("Color"),
1846
1857
  data: ColorTokenData
1847
1858
  });
1848
- var GradientTokenTypedData = z85.object({
1849
- type: z85.literal("Gradient"),
1859
+ var GradientTokenTypedData = z86.object({
1860
+ type: z86.literal("Gradient"),
1850
1861
  data: GradientTokenData
1851
1862
  });
1852
- var OpacityTokenTypedData = z85.object({
1853
- type: z85.literal("Opacity"),
1863
+ var OpacityTokenTypedData = z86.object({
1864
+ type: z86.literal("Opacity"),
1854
1865
  data: OpacityTokenData
1855
1866
  });
1856
- var ShadowTokenTypedData = z85.object({
1857
- type: z85.literal("Shadow"),
1867
+ var ShadowTokenTypedData = z86.object({
1868
+ type: z86.literal("Shadow"),
1858
1869
  data: ShadowTokenData
1859
1870
  });
1860
- var TypographyTokenTypedData = z85.object({
1861
- type: z85.literal("Typography"),
1871
+ var TypographyTokenTypedData = z86.object({
1872
+ type: z86.literal("Typography"),
1862
1873
  data: TypographyTokenData
1863
1874
  });
1864
- var StringTokenTypedData = z85.object({
1865
- type: z85.literal("String"),
1875
+ var StringTokenTypedData = z86.object({
1876
+ type: z86.literal("String"),
1866
1877
  data: StringTokenData
1867
1878
  });
1868
- var DimensionTokenTypedData = z85.object({
1869
- type: z85.literal("Dimension"),
1879
+ var DimensionTokenTypedData = z86.object({
1880
+ type: z86.literal("Dimension"),
1870
1881
  data: DimensionTokenData
1871
1882
  });
1872
- var FontSizeTokenTypedData = z85.object({
1873
- type: z85.literal("FontSize"),
1883
+ var FontSizeTokenTypedData = z86.object({
1884
+ type: z86.literal("FontSize"),
1874
1885
  data: FontSizeTokenData
1875
1886
  });
1876
- var FontFamilyTokenTypedData = z85.object({
1877
- type: z85.literal("FontFamily"),
1887
+ var FontFamilyTokenTypedData = z86.object({
1888
+ type: z86.literal("FontFamily"),
1878
1889
  data: FontFamilyTokenData
1879
1890
  });
1880
- var FontWeightTokenTypedData = z85.object({
1881
- type: z85.literal("FontWeight"),
1891
+ var FontWeightTokenTypedData = z86.object({
1892
+ type: z86.literal("FontWeight"),
1882
1893
  data: FontWeightTokenData
1883
1894
  });
1884
- var LetterSpacingTokenTypedData = z85.object({
1885
- type: z85.literal("LetterSpacing"),
1895
+ var LetterSpacingTokenTypedData = z86.object({
1896
+ type: z86.literal("LetterSpacing"),
1886
1897
  data: LetterSpacingTokenData
1887
1898
  });
1888
- var LineHeightTokenTypedData = z85.object({
1889
- type: z85.literal("LineHeight"),
1899
+ var LineHeightTokenTypedData = z86.object({
1900
+ type: z86.literal("LineHeight"),
1890
1901
  data: LineHeightTokenData
1891
1902
  });
1892
- var ParagraphSpacingTokenTypedData = z85.object({
1893
- type: z85.literal("ParagraphSpacing"),
1903
+ var ParagraphSpacingTokenTypedData = z86.object({
1904
+ type: z86.literal("ParagraphSpacing"),
1894
1905
  data: ParagraphSpacingTokenData
1895
1906
  });
1896
- var TextCaseTokenTypedData = z85.object({
1897
- type: z85.literal("TextCase"),
1907
+ var TextCaseTokenTypedData = z86.object({
1908
+ type: z86.literal("TextCase"),
1898
1909
  data: TextCaseTokenData
1899
1910
  });
1900
- var TextDecorationTokenTypedData = z85.object({
1901
- type: z85.literal("TextDecoration"),
1911
+ var TextDecorationTokenTypedData = z86.object({
1912
+ type: z86.literal("TextDecoration"),
1902
1913
  data: TextDecorationTokenData
1903
1914
  });
1904
- var BorderRadiusTokenTypedData = z85.object({
1905
- type: z85.literal("BorderRadius"),
1915
+ var BorderRadiusTokenTypedData = z86.object({
1916
+ type: z86.literal("BorderRadius"),
1906
1917
  data: BorderRadiusTokenData
1907
1918
  });
1908
- var BorderWidthTokenTypedData = z85.object({
1909
- type: z85.literal("BorderWidth"),
1919
+ var BorderWidthTokenTypedData = z86.object({
1920
+ type: z86.literal("BorderWidth"),
1910
1921
  data: BorderWidthTokenData
1911
1922
  });
1912
- var BorderTypedData = z85.object({
1913
- type: z85.literal("Border"),
1923
+ var BorderTypedData = z86.object({
1924
+ type: z86.literal("Border"),
1914
1925
  data: BorderTokenData
1915
1926
  });
1916
- var ProductCopyTypedData = z85.object({
1917
- type: z85.literal("ProductCopy"),
1927
+ var ProductCopyTypedData = z86.object({
1928
+ type: z86.literal("ProductCopy"),
1918
1929
  data: ProductCopyTokenData
1919
1930
  });
1920
- var SizeTypedData = z85.object({
1921
- type: z85.literal("Size"),
1931
+ var SizeTypedData = z86.object({
1932
+ type: z86.literal("Size"),
1922
1933
  data: SizeTokenData
1923
1934
  });
1924
- var SpaceTypedData = z85.object({
1925
- type: z85.literal("Space"),
1935
+ var SpaceTypedData = z86.object({
1936
+ type: z86.literal("Space"),
1926
1937
  data: SpaceTokenData
1927
1938
  });
1928
- var VisibilityTypedData = z85.object({
1929
- type: z85.literal("Visibility"),
1939
+ var VisibilityTypedData = z86.object({
1940
+ type: z86.literal("Visibility"),
1930
1941
  data: VisibilityTokenData
1931
1942
  });
1932
- var ZIndexTypedData = z85.object({
1933
- type: z85.literal("ZIndex"),
1943
+ var ZIndexTypedData = z86.object({
1944
+ type: z86.literal("ZIndex"),
1934
1945
  data: ZIndexTokenData
1935
1946
  });
1936
- var DurationTypedData = z85.object({
1937
- type: z85.literal("Duration"),
1947
+ var DurationTypedData = z86.object({
1948
+ type: z86.literal("Duration"),
1938
1949
  data: DurationTokenData
1939
1950
  });
1940
- var FontTypedData = z85.object({
1941
- type: z85.literal("Font"),
1942
- data: z85.record(z85.any())
1951
+ var FontTypedData = z86.object({
1952
+ type: z86.literal("Font"),
1953
+ data: z86.record(z86.any())
1943
1954
  });
1944
- var DesignTokenTypedData = z85.discriminatedUnion("type", [
1955
+ var DesignTokenTypedData = z86.discriminatedUnion("type", [
1945
1956
  BlurTokenTypedData,
1946
1957
  BorderRadiusTokenTypedData,
1947
1958
  BorderWidthTokenTypedData,
@@ -1991,32 +2002,32 @@ function designTokenTypeFilter(type) {
1991
2002
  var ThemeOverrideOriginPart = DesignTokenOriginPart;
1992
2003
  var ThemeOverrideOrigin = DesignTokenOrigin;
1993
2004
  var ThemeOverride = DesignTokenTypedData.and(
1994
- z86.object({
1995
- tokenPersistentId: z86.string(),
2005
+ z87.object({
2006
+ tokenPersistentId: z87.string(),
1996
2007
  origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
1997
2008
  })
1998
2009
  );
1999
- var ThemeElementData = z86.object({
2000
- value: z86.object({
2001
- overrides: z86.array(ThemeOverride)
2010
+ var ThemeElementData = z87.object({
2011
+ value: z87.object({
2012
+ overrides: z87.array(ThemeOverride)
2002
2013
  })
2003
2014
  });
2004
- var ThemeOriginPart = z86.object({});
2005
- var ThemeOriginObject = z86.object({
2006
- id: z86.string(),
2007
- name: z86.string()
2015
+ var ThemeOriginPart = z87.object({});
2016
+ var ThemeOriginObject = z87.object({
2017
+ id: z87.string(),
2018
+ name: z87.string()
2008
2019
  });
2009
- var ThemeOriginSource = z86.object({
2010
- sourceId: z86.string(),
2011
- sourceObjects: z86.array(ThemeOriginObject)
2020
+ var ThemeOriginSource = z87.object({
2021
+ sourceId: z87.string(),
2022
+ sourceObjects: z87.array(ThemeOriginObject)
2012
2023
  });
2013
- var ThemeOrigin = z86.object({
2014
- sources: z86.array(ThemeOriginSource)
2024
+ var ThemeOrigin = z87.object({
2025
+ sources: z87.array(ThemeOriginSource)
2015
2026
  });
2016
2027
  var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
2017
2028
  origin: ThemeOrigin.optional(),
2018
- overrides: z86.array(ThemeOverride),
2019
- codeName: z86.string()
2029
+ overrides: z87.array(ThemeOverride),
2030
+ codeName: z87.string()
2020
2031
  });
2021
2032
 
2022
2033
  // src/dsm/elements/utils.ts
@@ -2086,25 +2097,25 @@ var PageBlockDefinitionsMap = class {
2086
2097
  };
2087
2098
 
2088
2099
  // src/dsm/import/support/figma-files.ts
2089
- import { z as z87 } from "zod";
2090
- var FigmaFileDownloadScope = z87.object({
2091
- styles: z87.boolean(),
2092
- components: z87.boolean(),
2093
- currentVersion: z87.literal("__latest__").nullable(),
2094
- publishedVersion: z87.string().nullable(),
2095
- downloadChunkSize: z87.number().optional(),
2096
- maxFileDepth: z87.number().optional()
2100
+ import { z as z88 } from "zod";
2101
+ var FigmaFileDownloadScope = z88.object({
2102
+ styles: z88.boolean(),
2103
+ components: z88.boolean(),
2104
+ currentVersion: z88.literal("__latest__").nullable(),
2105
+ publishedVersion: z88.string().nullable(),
2106
+ downloadChunkSize: z88.number().optional(),
2107
+ maxFileDepth: z88.number().optional()
2097
2108
  });
2098
- var FigmaFileAccessData = z87.object({
2099
- accessToken: z87.string()
2109
+ var FigmaFileAccessData = z88.object({
2110
+ accessToken: z88.string()
2100
2111
  });
2101
2112
 
2102
2113
  // src/dsm/import/support/import-context.ts
2103
- import { z as z89 } from "zod";
2114
+ import { z as z90 } from "zod";
2104
2115
 
2105
2116
  // src/dsm/import/warning.ts
2106
- import { z as z88 } from "zod";
2107
- var ImportWarningType = z88.enum([
2117
+ import { z as z89 } from "zod";
2118
+ var ImportWarningType = z89.enum([
2108
2119
  "NoVersionFound",
2109
2120
  "UnsupportedFill",
2110
2121
  "UnsupportedStroke",
@@ -2119,49 +2130,49 @@ var ImportWarningType = z88.enum([
2119
2130
  "DuplicateImportedStylePath",
2120
2131
  "NoUnpublishedStyles"
2121
2132
  ]);
2122
- var ImportWarning = z88.object({
2133
+ var ImportWarning = z89.object({
2123
2134
  warningType: ImportWarningType,
2124
- componentId: z88.string().optional(),
2125
- componentName: z88.string().optional(),
2126
- styleId: z88.string().optional(),
2127
- styleName: z88.string().optional(),
2128
- unsupportedStyleValueType: z88.string().optional()
2135
+ componentId: z89.string().optional(),
2136
+ componentName: z89.string().optional(),
2137
+ styleId: z89.string().optional(),
2138
+ styleName: z89.string().optional(),
2139
+ unsupportedStyleValueType: z89.string().optional()
2129
2140
  });
2130
2141
 
2131
2142
  // src/dsm/import/support/import-context.ts
2132
- var ImportFunctionInput = z89.object({
2133
- importJobId: z89.string(),
2134
- importContextId: z89.string(),
2135
- designSystemId: z89.string().optional()
2143
+ var ImportFunctionInput = z90.object({
2144
+ importJobId: z90.string(),
2145
+ importContextId: z90.string(),
2146
+ designSystemId: z90.string().optional()
2136
2147
  });
2137
- var ImportedFigmaSourceData = z89.object({
2138
- sourceId: z89.string(),
2148
+ var ImportedFigmaSourceData = z90.object({
2149
+ sourceId: z90.string(),
2139
2150
  figmaRemote: DataSourceFigmaRemote
2140
2151
  });
2141
- var FigmaImportBaseContext = z89.object({
2142
- designSystemId: z89.string(),
2152
+ var FigmaImportBaseContext = z90.object({
2153
+ designSystemId: z90.string(),
2143
2154
  /**
2144
2155
  * Data required for accessing Figma files. This should contain access data for all file ids
2145
2156
  * mentioned in the `importedSourceDataBySourceId`
2146
2157
  *
2147
2158
  * fileId: file data
2148
2159
  */
2149
- fileAccessByFileId: z89.record(FigmaFileAccessData),
2160
+ fileAccessByFileId: z90.record(FigmaFileAccessData),
2150
2161
  /**
2151
2162
  * Figma source data for which import was requested
2152
2163
  *
2153
2164
  * sourceId: source data
2154
2165
  */
2155
- importedSourceDataBySourceId: z89.record(ImportedFigmaSourceData),
2166
+ importedSourceDataBySourceId: z90.record(ImportedFigmaSourceData),
2156
2167
  /**
2157
2168
  * Array of warnings that will be written into the import result summary at the end
2158
2169
  * of import job execution and displayed by the client.
2159
2170
  */
2160
- importWarnings: z89.record(ImportWarning.array()).default({})
2171
+ importWarnings: z90.record(ImportWarning.array()).default({})
2161
2172
  });
2162
2173
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
2163
- sourcesWithMissingAccess: z89.array(z89.string()).default([]),
2164
- shadowOpacityOptional: z89.boolean().default(false)
2174
+ sourcesWithMissingAccess: z90.array(z90.string()).default([]),
2175
+ shadowOpacityOptional: z90.boolean().default(false)
2165
2176
  });
2166
2177
  var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
2167
2178
  importMetadata: DataSourceFigmaImportMetadata
@@ -2173,79 +2184,79 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
2173
2184
  *
2174
2185
  * File id -> file download scope
2175
2186
  */
2176
- fileDownloadScopesByFileId: z89.record(FigmaFileDownloadScope),
2187
+ fileDownloadScopesByFileId: z90.record(FigmaFileDownloadScope),
2177
2188
  /**
2178
2189
  * Sources filtered down to the ones that have changed since last import and therefore need to be
2179
2190
  * imported again.
2180
2191
  *
2181
2192
  * Source id -> import metadata
2182
2193
  */
2183
- changedImportedSourceDataBySourceId: z89.record(ChangedImportedFigmaSourceData)
2194
+ changedImportedSourceDataBySourceId: z90.record(ChangedImportedFigmaSourceData)
2184
2195
  });
2185
2196
 
2186
2197
  // src/dsm/import/support/import-model-collections.ts
2187
- import { z as z97 } from "zod";
2198
+ import { z as z98 } from "zod";
2188
2199
 
2189
2200
  // src/dsm/import/image.ts
2190
- import { z as z90 } from "zod";
2191
- var ImageImportModelType = z90.enum(["Url", "FigmaRender"]);
2192
- var ImageImportModelBase = z90.object({
2201
+ import { z as z91 } from "zod";
2202
+ var ImageImportModelType = z91.enum(["Url", "FigmaRender"]);
2203
+ var ImageImportModelBase = z91.object({
2193
2204
  scope: AssetScope
2194
2205
  });
2195
2206
  var UrlImageImportModel = ImageImportModelBase.extend({
2196
- type: z90.literal(ImageImportModelType.enum.Url),
2197
- url: z90.string(),
2198
- originKey: z90.string(),
2199
- extension: z90.string()
2207
+ type: z91.literal(ImageImportModelType.enum.Url),
2208
+ url: z91.string(),
2209
+ originKey: z91.string(),
2210
+ extension: z91.string()
2200
2211
  });
2201
- var FigmaRenderFormat = z90.enum(["Svg", "Png"]);
2212
+ var FigmaRenderFormat = z91.enum(["Svg", "Png"]);
2202
2213
  var FigmaRenderBase = ImageImportModelBase.extend({
2203
- type: z90.literal(ImageImportModelType.enum.FigmaRender),
2204
- fileId: z90.string(),
2205
- fileVersionId: z90.string().optional(),
2206
- nodeId: z90.string(),
2207
- originKey: z90.string()
2214
+ type: z91.literal(ImageImportModelType.enum.FigmaRender),
2215
+ fileId: z91.string(),
2216
+ fileVersionId: z91.string().optional(),
2217
+ nodeId: z91.string(),
2218
+ originKey: z91.string()
2208
2219
  });
2209
2220
  var FigmaPngRenderImportModel = FigmaRenderBase.extend({
2210
- format: z90.literal(FigmaRenderFormat.enum.Png),
2211
- scale: z90.number()
2221
+ format: z91.literal(FigmaRenderFormat.enum.Png),
2222
+ scale: z91.number()
2212
2223
  });
2213
2224
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
2214
- format: z90.literal(FigmaRenderFormat.enum.Svg)
2225
+ format: z91.literal(FigmaRenderFormat.enum.Svg)
2215
2226
  });
2216
- var FigmaRenderImportModel = z90.discriminatedUnion("format", [
2227
+ var FigmaRenderImportModel = z91.discriminatedUnion("format", [
2217
2228
  FigmaPngRenderImportModel,
2218
2229
  FigmaSvgRenderImportModel
2219
2230
  ]);
2220
- var ImageImportModel = z90.union([UrlImageImportModel, FigmaRenderImportModel]);
2231
+ var ImageImportModel = z91.union([UrlImageImportModel, FigmaRenderImportModel]);
2221
2232
 
2222
2233
  // src/dsm/import/component.ts
2223
- import { z as z92 } from "zod";
2234
+ import { z as z93 } from "zod";
2224
2235
 
2225
2236
  // src/dsm/import/base.ts
2226
- import { z as z91 } from "zod";
2227
- var ImportModelBase = z91.object({
2228
- id: z91.string(),
2237
+ import { z as z92 } from "zod";
2238
+ var ImportModelBase = z92.object({
2239
+ id: z92.string(),
2229
2240
  meta: ObjectMeta,
2230
2241
  origin: DesignElementOrigin,
2231
- brandPersistentId: z91.string(),
2232
- sortOrder: z91.number()
2242
+ brandPersistentId: z92.string(),
2243
+ sortOrder: z92.number()
2233
2244
  });
2234
2245
  var ImportModelInputBase = ImportModelBase.omit({
2235
2246
  brandPersistentId: true,
2236
2247
  origin: true,
2237
2248
  sortOrder: true
2238
2249
  }).extend({
2239
- originId: z91.string(),
2240
- originMetadata: z91.record(z91.any())
2250
+ originId: z92.string(),
2251
+ originMetadata: z92.record(z92.any())
2241
2252
  });
2242
2253
 
2243
2254
  // src/dsm/import/component.ts
2244
- var ComponentImportModelPart = z92.object({
2255
+ var ComponentImportModelPart = z93.object({
2245
2256
  thumbnail: ImageImportModel
2246
2257
  });
2247
2258
  var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
2248
- isAsset: z92.boolean(),
2259
+ isAsset: z93.boolean(),
2249
2260
  svg: FigmaSvgRenderImportModel.optional(),
2250
2261
  origin: ComponentOrigin
2251
2262
  });
@@ -2258,49 +2269,49 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
2258
2269
  });
2259
2270
 
2260
2271
  // src/dsm/import/theme.ts
2261
- import { z as z93 } from "zod";
2272
+ import { z as z94 } from "zod";
2262
2273
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
2263
- z93.object({
2264
- id: z93.string(),
2274
+ z94.object({
2275
+ id: z94.string(),
2265
2276
  meta: ObjectMeta
2266
2277
  })
2267
2278
  );
2268
2279
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
2269
- z93.object({
2280
+ z94.object({
2270
2281
  origin: ThemeOverrideOrigin
2271
2282
  })
2272
2283
  );
2273
2284
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
2274
- z93.object({
2275
- originId: z93.string(),
2285
+ z94.object({
2286
+ originId: z94.string(),
2276
2287
  originMetadata: ThemeOverrideOriginPart
2277
2288
  })
2278
2289
  );
2279
- var ThemeImportModel = z93.object({
2290
+ var ThemeImportModel = z94.object({
2280
2291
  meta: ObjectMeta,
2281
- brandPersistentId: z93.string(),
2292
+ brandPersistentId: z94.string(),
2282
2293
  originSource: ThemeOriginSource,
2283
- overrides: z93.array(ThemeOverrideImportModel),
2284
- sortOrder: z93.number()
2294
+ overrides: z94.array(ThemeOverrideImportModel),
2295
+ sortOrder: z94.number()
2285
2296
  });
2286
- var ThemeImportModelInput = z93.object({
2297
+ var ThemeImportModelInput = z94.object({
2287
2298
  meta: ObjectMeta,
2288
- originObjects: z93.array(ThemeOriginObject),
2289
- overrides: z93.array(ThemeOverrideImportModelInput)
2299
+ originObjects: z94.array(ThemeOriginObject),
2300
+ overrides: z94.array(ThemeOverrideImportModelInput)
2290
2301
  });
2291
- var ThemeUpdateImportModel = z93.object({
2292
- themePersistentId: z93.string(),
2293
- overrides: z93.array(ThemeOverrideImportModel)
2302
+ var ThemeUpdateImportModel = z94.object({
2303
+ themePersistentId: z94.string(),
2304
+ overrides: z94.array(ThemeOverrideImportModel)
2294
2305
  });
2295
- var ThemeUpdateImportModelInput = z93.object({
2296
- themePersistentId: z93.string(),
2297
- overrides: z93.array(ThemeOverrideImportModelInput)
2306
+ var ThemeUpdateImportModelInput = z94.object({
2307
+ themePersistentId: z94.string(),
2308
+ overrides: z94.array(ThemeOverrideImportModelInput)
2298
2309
  });
2299
2310
 
2300
2311
  // src/dsm/import/tokens.ts
2301
- import { z as z94 } from "zod";
2302
- var DesignTokenImportModelPart = z94.object({
2303
- collection: z94.string().optional()
2312
+ import { z as z95 } from "zod";
2313
+ var DesignTokenImportModelPart = z95.object({
2314
+ collection: z95.string().optional()
2304
2315
  });
2305
2316
  var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
2306
2317
  origin: DesignTokenOrigin
@@ -2318,15 +2329,15 @@ function designTokenImportModelTypeFilter(type) {
2318
2329
  }
2319
2330
 
2320
2331
  // src/dsm/import/figma-frames.ts
2321
- import { z as z95 } from "zod";
2332
+ import { z as z96 } from "zod";
2322
2333
  var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
2323
2334
  image: FigmaPngRenderImportModel
2324
2335
  });
2325
2336
  var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
2326
- children: z95.lazy(() => FigmaFileStructureNodeImportModel.array())
2337
+ children: z96.lazy(() => FigmaFileStructureNodeImportModel.array())
2327
2338
  });
2328
- var FigmaFileStructureImportModelPart = z95.object({
2329
- data: z95.object({
2339
+ var FigmaFileStructureImportModelPart = z96.object({
2340
+ data: z96.object({
2330
2341
  rootNode: FigmaFileStructureNodeImportModel,
2331
2342
  assetsInFile: FigmaFileStructureStatistics
2332
2343
  })
@@ -2337,7 +2348,7 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
2337
2348
  var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
2338
2349
  FigmaFileStructureImportModelPart.shape
2339
2350
  ).extend({
2340
- fileVersionId: z95.string()
2351
+ fileVersionId: z96.string()
2341
2352
  });
2342
2353
  function figmaFileStructureImportModelToMap(root) {
2343
2354
  const map = /* @__PURE__ */ new Map();
@@ -2351,30 +2362,30 @@ function recursiveFigmaFileStructureToMap2(node, map) {
2351
2362
  }
2352
2363
 
2353
2364
  // src/dsm/import/data-source.ts
2354
- import { z as z96 } from "zod";
2355
- var DataSourceImportModel = z96.object({
2356
- id: z96.string(),
2357
- fileName: z96.string().optional(),
2358
- thumbnailUrl: z96.string().optional()
2365
+ import { z as z97 } from "zod";
2366
+ var DataSourceImportModel = z97.object({
2367
+ id: z97.string(),
2368
+ fileName: z97.string().optional(),
2369
+ thumbnailUrl: z97.string().optional()
2359
2370
  });
2360
2371
 
2361
2372
  // src/dsm/import/support/import-model-collections.ts
2362
- var ImportModelInputCollection = z97.object({
2373
+ var ImportModelInputCollection = z98.object({
2363
2374
  source: DataSourceImportModel,
2364
- tokens: z97.array(DesignTokenImportModelInput).default([]),
2365
- components: z97.array(ComponentImportModelInput).default([]),
2366
- assets: z97.array(AssetImportModelInput).default([]),
2367
- themeUpdates: z97.array(ThemeUpdateImportModelInput).default([]),
2368
- themes: z97.array(ThemeImportModelInput).default([]),
2375
+ tokens: z98.array(DesignTokenImportModelInput).default([]),
2376
+ components: z98.array(ComponentImportModelInput).default([]),
2377
+ assets: z98.array(AssetImportModelInput).default([]),
2378
+ themeUpdates: z98.array(ThemeUpdateImportModelInput).default([]),
2379
+ themes: z98.array(ThemeImportModelInput).default([]),
2369
2380
  figmaFileStructure: FigmaFileStructureImportModelInput.optional()
2370
2381
  });
2371
- var ImportModelCollection = z97.object({
2372
- sources: z97.array(DataSourceImportModel),
2373
- tokens: z97.array(DesignTokenImportModel).default([]),
2374
- components: z97.array(ComponentImportModel).default([]),
2375
- themeUpdates: z97.array(ThemeUpdateImportModel).default([]),
2376
- themes: z97.array(ThemeImportModel).default([]),
2377
- figmaFileStructures: z97.array(FigmaFileStructureImportModel)
2382
+ var ImportModelCollection = z98.object({
2383
+ sources: z98.array(DataSourceImportModel),
2384
+ tokens: z98.array(DesignTokenImportModel).default([]),
2385
+ components: z98.array(ComponentImportModel).default([]),
2386
+ themeUpdates: z98.array(ThemeUpdateImportModel).default([]),
2387
+ themes: z98.array(ThemeImportModel).default([]),
2388
+ figmaFileStructures: z98.array(FigmaFileStructureImportModel)
2378
2389
  });
2379
2390
  function addImportModelCollections(lhs, rhs) {
2380
2391
  return {
@@ -2388,17 +2399,17 @@ function addImportModelCollections(lhs, rhs) {
2388
2399
  }
2389
2400
 
2390
2401
  // src/dsm/data-sources/import-summary.ts
2391
- var FileStructureStats = z98.object({
2402
+ var FileStructureStats = z99.object({
2392
2403
  frames: zeroNumberByDefault2(),
2393
2404
  components: zeroNumberByDefault2(),
2394
2405
  componentSets: zeroNumberByDefault2()
2395
2406
  });
2396
2407
  var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
2397
2408
  // Backward compatibility
2398
- z98.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2409
+ z99.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
2399
2410
  );
2400
- var SourceImportSummaryByTokenType = z98.record(SourceImportSummaryByTokenTypeKey, z98.number());
2401
- var SourceImportTokenSummary = z98.object({
2411
+ var SourceImportSummaryByTokenType = z99.record(SourceImportSummaryByTokenTypeKey, z99.number());
2412
+ var SourceImportTokenSummary = z99.object({
2402
2413
  tokensCreated: zeroNumberByDefault2(),
2403
2414
  tokensUpdated: zeroNumberByDefault2(),
2404
2415
  tokensDeleted: zeroNumberByDefault2(),
@@ -2406,7 +2417,7 @@ var SourceImportTokenSummary = z98.object({
2406
2417
  tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
2407
2418
  tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
2408
2419
  });
2409
- var SourceImportComponentSummary = z98.object({
2420
+ var SourceImportComponentSummary = z99.object({
2410
2421
  componentsCreated: zeroNumberByDefault2(),
2411
2422
  componentsUpdated: zeroNumberByDefault2(),
2412
2423
  componentsDeleted: zeroNumberByDefault2(),
@@ -2414,69 +2425,69 @@ var SourceImportComponentSummary = z98.object({
2414
2425
  componentAssetsUpdated: zeroNumberByDefault2(),
2415
2426
  componentAssetsDeleted: zeroNumberByDefault2()
2416
2427
  });
2417
- var SourceImportFrameSummary = z98.object({
2428
+ var SourceImportFrameSummary = z99.object({
2418
2429
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
2419
- invalidReferencesCount: nullishToOptional(z98.number().optional())
2420
- });
2421
- var SourceImportSummary = z98.object({
2422
- sourceId: nullishToOptional(z98.string()),
2423
- brandId: nullishToOptional(z98.string()),
2424
- versionId: nullishToOptional(z98.string()),
2425
- error: nullishToOptional(z98.any()),
2426
- isFailed: z98.boolean(),
2427
- warnings: z98.array(ImportWarning).nullish().transform((v) => v ?? []),
2430
+ invalidReferencesCount: nullishToOptional(z99.number().optional())
2431
+ });
2432
+ var SourceImportSummary = z99.object({
2433
+ sourceId: nullishToOptional(z99.string()),
2434
+ brandId: nullishToOptional(z99.string()),
2435
+ versionId: nullishToOptional(z99.string()),
2436
+ error: nullishToOptional(z99.any()),
2437
+ isFailed: z99.boolean(),
2438
+ warnings: z99.array(ImportWarning).nullish().transform((v) => v ?? []),
2428
2439
  ...SourceImportTokenSummary.shape,
2429
2440
  ...SourceImportComponentSummary.shape,
2430
2441
  ...FileStructureStats.shape
2431
2442
  });
2432
2443
  function zeroNumberByDefault2() {
2433
- return z98.number().nullish().transform((v) => v ?? 0);
2444
+ return z99.number().nullish().transform((v) => v ?? 0);
2434
2445
  }
2435
2446
 
2436
2447
  // src/dsm/documentation/block-definitions/aux.ts
2437
- import { z as z99 } from "zod";
2438
- var PageBlockDefinitionAppearance = z99.object({
2439
- isBordered: z99.boolean().optional(),
2440
- hasBackground: z99.boolean().optional(),
2441
- isEditorPresentationDifferent: z99.boolean().optional(),
2442
- showBlockHeaderInEditor: z99.boolean().optional()
2448
+ import { z as z100 } from "zod";
2449
+ var PageBlockDefinitionAppearance = z100.object({
2450
+ isBordered: z100.boolean().optional(),
2451
+ hasBackground: z100.boolean().optional(),
2452
+ isEditorPresentationDifferent: z100.boolean().optional(),
2453
+ showBlockHeaderInEditor: z100.boolean().optional()
2443
2454
  });
2444
2455
 
2445
2456
  // src/dsm/documentation/block-definitions/definition.ts
2446
- import { z as z102 } from "zod";
2457
+ import { z as z103 } from "zod";
2447
2458
 
2448
2459
  // src/dsm/documentation/block-definitions/item.ts
2449
- import { z as z101 } from "zod";
2460
+ import { z as z102 } from "zod";
2450
2461
 
2451
2462
  // src/dsm/documentation/block-definitions/variant.ts
2452
- import { z as z100 } from "zod";
2453
- var PageBlockDefinitionLayoutType = z100.enum(["Column", "Row"]);
2454
- var PageBlockDefinitionLayoutGap = z100.enum(["Small", "Medium", "Large", "None"]);
2455
- var PageBlockDefinitionLayoutAlign = z100.enum(["Start", "Center", "End"]);
2456
- var PageBlockDefinitionLayoutResizing = z100.enum(["Fill", "Hug"]);
2457
- var PageBlockDefinitionLayoutBase = z100.object({
2463
+ import { z as z101 } from "zod";
2464
+ var PageBlockDefinitionLayoutType = z101.enum(["Column", "Row"]);
2465
+ var PageBlockDefinitionLayoutGap = z101.enum(["Small", "Medium", "Large", "None"]);
2466
+ var PageBlockDefinitionLayoutAlign = z101.enum(["Start", "Center", "End"]);
2467
+ var PageBlockDefinitionLayoutResizing = z101.enum(["Fill", "Hug"]);
2468
+ var PageBlockDefinitionLayoutBase = z101.object({
2458
2469
  type: PageBlockDefinitionLayoutType,
2459
2470
  gap: PageBlockDefinitionLayoutGap.optional(),
2460
2471
  columnAlign: PageBlockDefinitionLayoutAlign.optional(),
2461
2472
  columnResizing: PageBlockDefinitionLayoutResizing.optional()
2462
2473
  });
2463
2474
  var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
2464
- children: z100.lazy(() => z100.array(PageBlockDefinitionLayout.or(z100.string())))
2465
- });
2466
- var PageBlockDefinitionVariant = z100.object({
2467
- id: z100.string(),
2468
- name: z100.string(),
2469
- image: z100.string().optional(),
2470
- description: z100.string().optional(),
2471
- documentationLink: z100.string().optional(),
2475
+ children: z101.lazy(() => z101.array(PageBlockDefinitionLayout.or(z101.string())))
2476
+ });
2477
+ var PageBlockDefinitionVariant = z101.object({
2478
+ id: z101.string(),
2479
+ name: z101.string(),
2480
+ image: z101.string().optional(),
2481
+ description: z101.string().optional(),
2482
+ documentationLink: z101.string().optional(),
2472
2483
  layout: PageBlockDefinitionLayout,
2473
- maxColumns: z100.number().optional(),
2474
- defaultColumns: z100.number().optional(),
2484
+ maxColumns: z101.number().optional(),
2485
+ defaultColumns: z101.number().optional(),
2475
2486
  appearance: PageBlockDefinitionAppearance.optional()
2476
2487
  });
2477
2488
 
2478
2489
  // src/dsm/documentation/block-definitions/item.ts
2479
- var PageBlockDefinitionPropertyType = z101.enum([
2490
+ var PageBlockDefinitionPropertyType = z102.enum([
2480
2491
  "RichText",
2481
2492
  "MultiRichText",
2482
2493
  "Text",
@@ -2503,7 +2514,7 @@ var PageBlockDefinitionPropertyType = z101.enum([
2503
2514
  "Storybook",
2504
2515
  "Color"
2505
2516
  ]);
2506
- var PageBlockDefinitionRichTextPropertyStyle = z101.enum([
2517
+ var PageBlockDefinitionRichTextPropertyStyle = z102.enum([
2507
2518
  "Title1",
2508
2519
  "Title2",
2509
2520
  "Title3",
@@ -2513,8 +2524,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z101.enum([
2513
2524
  "Callout",
2514
2525
  "Default"
2515
2526
  ]);
2516
- var PageBlockDefinitionMultiRichTextPropertyStyle = z101.enum(["OL", "UL", "Default"]);
2517
- var PageBlockDefinitionTextPropertyStyle = z101.enum([
2527
+ var PageBlockDefinitionMultiRichTextPropertyStyle = z102.enum(["OL", "UL", "Default"]);
2528
+ var PageBlockDefinitionTextPropertyStyle = z102.enum([
2518
2529
  "Title1",
2519
2530
  "Title2",
2520
2531
  "Title3",
@@ -2528,15 +2539,15 @@ var PageBlockDefinitionTextPropertyStyle = z101.enum([
2528
2539
  "SmallSemibold",
2529
2540
  "Custom"
2530
2541
  ]);
2531
- var PageBlockDefinitionTextPropertyColor = z101.enum(["Neutral", "NeutralFaded"]);
2532
- var PageBlockDefinitionBooleanPropertyStyle = z101.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2533
- var PageBlockDefinitionSingleSelectPropertyStyle = z101.enum([
2542
+ var PageBlockDefinitionTextPropertyColor = z102.enum(["Neutral", "NeutralFaded"]);
2543
+ var PageBlockDefinitionBooleanPropertyStyle = z102.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
2544
+ var PageBlockDefinitionSingleSelectPropertyStyle = z102.enum([
2534
2545
  "SegmentedControl",
2535
2546
  "ToggleButton",
2536
2547
  "Select",
2537
2548
  "Checkbox"
2538
2549
  ]);
2539
- var PageBlockDefinitionSingleSelectPropertyColor = z101.enum([
2550
+ var PageBlockDefinitionSingleSelectPropertyColor = z102.enum([
2540
2551
  "Green",
2541
2552
  "Red",
2542
2553
  "Yellow",
@@ -2551,71 +2562,71 @@ var PageBlockDefinitionSingleSelectPropertyColor = z101.enum([
2551
2562
  "Cyan",
2552
2563
  "Fuchsia"
2553
2564
  ]);
2554
- var PageBlockDefinitionMultiSelectPropertyStyle = z101.enum(["SegmentedControl", "Select", "Checkbox"]);
2555
- var PageBlockDefinitionImageAspectRatio = z101.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2556
- var PageBlockDefinitionImageWidth = z101.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2557
- var PageBlockDefinitionSelectChoice = z101.object({
2558
- value: z101.string(),
2559
- name: z101.string(),
2560
- icon: z101.string().optional(),
2565
+ var PageBlockDefinitionMultiSelectPropertyStyle = z102.enum(["SegmentedControl", "Select", "Checkbox"]);
2566
+ var PageBlockDefinitionImageAspectRatio = z102.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
2567
+ var PageBlockDefinitionImageWidth = z102.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
2568
+ var PageBlockDefinitionSelectChoice = z102.object({
2569
+ value: z102.string(),
2570
+ name: z102.string(),
2571
+ icon: z102.string().optional(),
2561
2572
  color: PageBlockDefinitionSingleSelectPropertyColor.optional()
2562
2573
  });
2563
- var PageBlockDefinitionUntypedPropertyOptions = z101.record(z101.any());
2564
- var PageBlockDefinitionRichTextOptions = z101.object({
2574
+ var PageBlockDefinitionUntypedPropertyOptions = z102.record(z102.any());
2575
+ var PageBlockDefinitionRichTextOptions = z102.object({
2565
2576
  richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
2566
2577
  });
2567
- var PageBlockDefinitionMutiRichTextOptions = z101.object({
2578
+ var PageBlockDefinitionMutiRichTextOptions = z102.object({
2568
2579
  multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
2569
2580
  });
2570
- var PageBlockDefinitionTextOptions = z101.object({
2571
- placeholder: z101.string().optional(),
2572
- defaultValue: z101.string().optional(),
2581
+ var PageBlockDefinitionTextOptions = z102.object({
2582
+ placeholder: z102.string().optional(),
2583
+ defaultValue: z102.string().optional(),
2573
2584
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
2574
2585
  color: PageBlockDefinitionTextPropertyColor.optional()
2575
2586
  });
2576
- var PageBlockDefinitionSelectOptions = z101.object({
2587
+ var PageBlockDefinitionSelectOptions = z102.object({
2577
2588
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
2578
- defaultChoice: z101.string(),
2579
- choices: z101.array(PageBlockDefinitionSelectChoice)
2589
+ defaultChoice: z102.string(),
2590
+ choices: z102.array(PageBlockDefinitionSelectChoice)
2580
2591
  });
2581
- var PageBlockDefinitionImageOptions = z101.object({
2592
+ var PageBlockDefinitionImageOptions = z102.object({
2582
2593
  width: PageBlockDefinitionImageWidth.optional(),
2583
2594
  aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
2584
- allowCaption: z101.boolean().optional(),
2585
- recommendation: z101.string().optional()
2595
+ allowCaption: z102.boolean().optional(),
2596
+ recommendation: z102.string().optional()
2586
2597
  });
2587
- var PageBlockDefinitionBooleanOptions = z101.object({
2588
- defaultvalue: z101.boolean().optional(),
2598
+ var PageBlockDefinitionBooleanOptions = z102.object({
2599
+ defaultvalue: z102.boolean().optional(),
2589
2600
  booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
2590
2601
  });
2591
- var PageBlockDefinitionNumberOptions = z101.object({
2592
- defaultValue: z101.number(),
2593
- min: z101.number().optional(),
2594
- max: z101.number().optional(),
2595
- step: z101.number().optional(),
2596
- placeholder: z101.string().optional()
2602
+ var PageBlockDefinitionNumberOptions = z102.object({
2603
+ defaultValue: z102.number(),
2604
+ min: z102.number().optional(),
2605
+ max: z102.number().optional(),
2606
+ step: z102.number().optional(),
2607
+ placeholder: z102.string().optional()
2597
2608
  });
2598
- var PageBlockDefinitionComponentOptions = z101.object({
2599
- renderLayoutAs: z101.enum(["List", "Table"]).optional(),
2600
- allowPropertySelection: z101.boolean().optional()
2609
+ var PageBlockDefinitionComponentOptions = z102.object({
2610
+ renderLayoutAs: z102.enum(["List", "Table"]).optional(),
2611
+ allowPropertySelection: z102.boolean().optional()
2601
2612
  });
2602
- var PageBlockDefinitionProperty = z101.object({
2603
- id: z101.string(),
2604
- name: z101.string(),
2613
+ var PageBlockDefinitionProperty = z102.object({
2614
+ id: z102.string(),
2615
+ name: z102.string(),
2605
2616
  type: PageBlockDefinitionPropertyType,
2606
- description: z101.string().optional(),
2617
+ description: z102.string().optional(),
2607
2618
  options: PageBlockDefinitionUntypedPropertyOptions.optional(),
2608
- variantOptions: z101.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2619
+ variantOptions: z102.record(PageBlockDefinitionUntypedPropertyOptions).optional()
2609
2620
  });
2610
- var PageBlockDefinitionItem = z101.object({
2611
- properties: z101.array(PageBlockDefinitionProperty),
2621
+ var PageBlockDefinitionItem = z102.object({
2622
+ properties: z102.array(PageBlockDefinitionProperty),
2612
2623
  appearance: PageBlockDefinitionAppearance.optional(),
2613
- variants: z101.array(PageBlockDefinitionVariant),
2614
- defaultVariantKey: z101.string()
2624
+ variants: z102.array(PageBlockDefinitionVariant),
2625
+ defaultVariantKey: z102.string()
2615
2626
  });
2616
2627
 
2617
2628
  // src/dsm/documentation/block-definitions/definition.ts
2618
- var PageBlockCategory = z102.enum([
2629
+ var PageBlockCategory = z103.enum([
2619
2630
  "Text",
2620
2631
  "Layout",
2621
2632
  "Media",
@@ -2629,318 +2640,318 @@ var PageBlockCategory = z102.enum([
2629
2640
  "Data",
2630
2641
  "Other"
2631
2642
  ]);
2632
- var PageBlockBehaviorDataType = z102.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2633
- var PageBlockBehaviorSelectionType = z102.enum(["Entity", "Group", "EntityAndGroup"]);
2634
- var PageBlockDefinitionBehavior = z102.object({
2643
+ var PageBlockBehaviorDataType = z103.enum(["Item", "Token", "Asset", "Component", "FigmaNode"]);
2644
+ var PageBlockBehaviorSelectionType = z103.enum(["Entity", "Group", "EntityAndGroup"]);
2645
+ var PageBlockDefinitionBehavior = z103.object({
2635
2646
  dataType: PageBlockBehaviorDataType,
2636
- items: z102.object({
2637
- numberOfItems: z102.number(),
2638
- allowLinks: z102.boolean(),
2639
- newItemLabel: z102.string().optional()
2647
+ items: z103.object({
2648
+ numberOfItems: z103.number(),
2649
+ allowLinks: z103.boolean(),
2650
+ newItemLabel: z103.string().optional()
2640
2651
  }).optional(),
2641
- entities: z102.object({
2652
+ entities: z103.object({
2642
2653
  selectionType: PageBlockBehaviorSelectionType,
2643
- maxSelected: z102.number()
2654
+ maxSelected: z103.number()
2644
2655
  }).optional()
2645
2656
  });
2646
- var PageBlockDefinitionOnboarding = z102.object({
2647
- helpText: z102.string(),
2648
- documentationLink: z102.string().optional()
2657
+ var PageBlockDefinitionOnboarding = z103.object({
2658
+ helpText: z103.string(),
2659
+ documentationLink: z103.string().optional()
2649
2660
  });
2650
- var PageBlockDefinition = z102.object({
2651
- id: z102.string(),
2652
- name: z102.string(),
2653
- description: z102.string(),
2661
+ var PageBlockDefinition = z103.object({
2662
+ id: z103.string(),
2663
+ name: z103.string(),
2664
+ description: z103.string(),
2654
2665
  category: PageBlockCategory,
2655
- icon: z102.string().optional(),
2656
- documentationLink: z102.string().optional(),
2657
- searchKeywords: z102.array(z102.string()).optional(),
2666
+ icon: z103.string().optional(),
2667
+ documentationLink: z103.string().optional(),
2668
+ searchKeywords: z103.array(z103.string()).optional(),
2658
2669
  item: PageBlockDefinitionItem,
2659
2670
  behavior: PageBlockDefinitionBehavior,
2660
- editorOptions: z102.object({
2671
+ editorOptions: z103.object({
2661
2672
  onboarding: PageBlockDefinitionOnboarding.optional()
2662
2673
  }),
2663
2674
  appearance: PageBlockDefinitionAppearance.optional()
2664
2675
  });
2665
2676
 
2666
2677
  // src/dsm/documentation/group.ts
2667
- import { z as z103 } from "zod";
2668
- var DocumentationPageGroup = z103.object({
2669
- type: z103.literal("ElementGroup"),
2670
- childType: z103.literal("DocumentationPage"),
2671
- id: z103.string(),
2672
- persistentId: z103.string(),
2673
- shortPersistentId: z103.string(),
2674
- designSystemVersionId: z103.string(),
2675
- parentPersistentId: z103.string().nullish(),
2676
- sortOrder: z103.number(),
2677
- title: z103.string(),
2678
- slug: z103.string(),
2679
- userSlug: z103.string().nullish(),
2680
- createdAt: z103.coerce.date(),
2681
- updatedAt: z103.coerce.date()
2678
+ import { z as z104 } from "zod";
2679
+ var DocumentationPageGroup = z104.object({
2680
+ type: z104.literal("ElementGroup"),
2681
+ childType: z104.literal("DocumentationPage"),
2682
+ id: z104.string(),
2683
+ persistentId: z104.string(),
2684
+ shortPersistentId: z104.string(),
2685
+ designSystemVersionId: z104.string(),
2686
+ parentPersistentId: z104.string().nullish(),
2687
+ sortOrder: z104.number(),
2688
+ title: z104.string(),
2689
+ slug: z104.string(),
2690
+ userSlug: z104.string().nullish(),
2691
+ createdAt: z104.coerce.date(),
2692
+ updatedAt: z104.coerce.date()
2682
2693
  });
2683
2694
 
2684
2695
  // src/dsm/documentation/link-preview.ts
2685
- import { z as z104 } from "zod";
2686
- var DocumentationLinkPreview = z104.object({
2687
- title: z104.string().optional(),
2688
- description: z104.string().optional(),
2696
+ import { z as z105 } from "zod";
2697
+ var DocumentationLinkPreview = z105.object({
2698
+ title: z105.string().optional(),
2699
+ description: z105.string().optional(),
2689
2700
  thumbnail: PageBlockImageReference.optional()
2690
2701
  });
2691
2702
 
2692
2703
  // src/dsm/documentation/page-anchor.ts
2693
- import { z as z105 } from "zod";
2694
- var DocumentationPageAnchor = z105.object({
2695
- blockId: z105.string(),
2696
- level: z105.number(),
2697
- text: z105.string()
2698
- });
2699
-
2700
- // src/dsm/documentation/page-content-backup.ts
2701
2704
  import { z as z106 } from "zod";
2702
- var DocumentationPageContentBackup = z106.object({
2703
- id: z106.string(),
2704
- designSystemVersionId: z106.string(),
2705
- createdAt: z106.coerce.date(),
2706
- updatedAt: z106.coerce.date(),
2707
- documentationPageId: z106.string(),
2708
- documentationPageName: z106.string(),
2709
- storagePath: z106.string()
2705
+ var DocumentationPageAnchor = z106.object({
2706
+ blockId: z106.string(),
2707
+ level: z106.number(),
2708
+ text: z106.string()
2710
2709
  });
2711
2710
 
2712
- // src/dsm/documentation/page-content.ts
2711
+ // src/dsm/documentation/page-content-backup.ts
2713
2712
  import { z as z107 } from "zod";
2714
- var DocumentationPageContentItem = z107.discriminatedUnion("type", [
2715
- PageBlockEditorModelV2,
2716
- PageSectionEditorModelV2
2717
- ]);
2718
- var DocumentationPageContentData = z107.object({
2719
- items: z107.array(DocumentationPageContentItem)
2720
- });
2721
- var DocumentationPageContent = z107.object({
2713
+ var DocumentationPageContentBackup = z107.object({
2722
2714
  id: z107.string(),
2723
2715
  designSystemVersionId: z107.string(),
2724
2716
  createdAt: z107.coerce.date(),
2725
2717
  updatedAt: z107.coerce.date(),
2726
2718
  documentationPageId: z107.string(),
2727
- data: DocumentationPageContentData
2719
+ documentationPageName: z107.string(),
2720
+ storagePath: z107.string()
2728
2721
  });
2729
2722
 
2730
- // src/dsm/documentation/page.ts
2723
+ // src/dsm/documentation/page-content.ts
2731
2724
  import { z as z108 } from "zod";
2732
- var DocumentationPage = z108.object({
2733
- type: z108.literal("DocumentationPage"),
2725
+ var DocumentationPageContentItem = z108.discriminatedUnion("type", [
2726
+ PageBlockEditorModelV2,
2727
+ PageSectionEditorModelV2
2728
+ ]);
2729
+ var DocumentationPageContentData = z108.object({
2730
+ items: z108.array(DocumentationPageContentItem)
2731
+ });
2732
+ var DocumentationPageContent = z108.object({
2734
2733
  id: z108.string(),
2735
- persistentId: z108.string(),
2736
- shortPersistentId: z108.string(),
2737
2734
  designSystemVersionId: z108.string(),
2738
- parentPersistentId: z108.string().nullish(),
2739
- sortOrder: z108.number(),
2740
- title: z108.string(),
2741
- slug: z108.string(),
2742
- userSlug: z108.string().nullish(),
2743
2735
  createdAt: z108.coerce.date(),
2744
- updatedAt: z108.coerce.date()
2736
+ updatedAt: z108.coerce.date(),
2737
+ documentationPageId: z108.string(),
2738
+ data: DocumentationPageContentData
2745
2739
  });
2746
2740
 
2747
- // src/dsm/documentation/thread.ts
2741
+ // src/dsm/documentation/page.ts
2748
2742
  import { z as z109 } from "zod";
2749
- var DocumentationComment = z109.object({
2750
- id: z109.string(),
2751
- authorId: z109.string(),
2752
- threadId: z109.string(),
2753
- roomId: z109.string(),
2754
- createdAt: z109.coerce.date(),
2755
- editedAt: z109.coerce.date().optional(),
2756
- deletedAt: z109.coerce.date().optional(),
2757
- body: z109.string()
2758
- });
2759
- var DocumentationCommentThread = z109.object({
2743
+ var DocumentationPage = z109.object({
2744
+ type: z109.literal("DocumentationPage"),
2760
2745
  id: z109.string(),
2761
- roomId: z109.string(),
2762
- pagePersistentId: z109.string(),
2763
- brandId: z109.string(),
2746
+ persistentId: z109.string(),
2747
+ shortPersistentId: z109.string(),
2764
2748
  designSystemVersionId: z109.string(),
2765
- designSystemId: z109.string(),
2766
- blockId: z109.string().optional(),
2767
- resolved: z109.boolean(),
2749
+ parentPersistentId: z109.string().nullish(),
2750
+ sortOrder: z109.number(),
2751
+ title: z109.string(),
2752
+ slug: z109.string(),
2753
+ userSlug: z109.string().nullish(),
2768
2754
  createdAt: z109.coerce.date(),
2769
2755
  updatedAt: z109.coerce.date()
2770
2756
  });
2771
2757
 
2772
- // src/dsm/views/column.ts
2758
+ // src/dsm/documentation/thread.ts
2773
2759
  import { z as z110 } from "zod";
2774
- var ElementViewBaseColumnType = z110.enum(["Name", "Description", "Value", "UpdatedAt"]);
2775
- var ElementViewColumnType = z110.union([
2776
- z110.literal("BaseProperty"),
2777
- z110.literal("PropertyDefinition"),
2778
- z110.literal("Theme")
2779
- ]);
2780
- var ElementViewColumnSharedAttributes = z110.object({
2760
+ var DocumentationComment = z110.object({
2761
+ id: z110.string(),
2762
+ authorId: z110.string(),
2763
+ threadId: z110.string(),
2764
+ roomId: z110.string(),
2765
+ createdAt: z110.coerce.date(),
2766
+ editedAt: z110.coerce.date().optional(),
2767
+ deletedAt: z110.coerce.date().optional(),
2768
+ body: z110.string()
2769
+ });
2770
+ var DocumentationCommentThread = z110.object({
2781
2771
  id: z110.string(),
2782
- persistentId: z110.string(),
2783
- elementDataViewId: z110.string(),
2784
- sortPosition: z110.number(),
2785
- width: z110.number()
2772
+ roomId: z110.string(),
2773
+ pagePersistentId: z110.string(),
2774
+ brandId: z110.string(),
2775
+ designSystemVersionId: z110.string(),
2776
+ designSystemId: z110.string(),
2777
+ blockId: z110.string().optional(),
2778
+ resolved: z110.boolean(),
2779
+ createdAt: z110.coerce.date(),
2780
+ updatedAt: z110.coerce.date()
2781
+ });
2782
+
2783
+ // src/dsm/views/column.ts
2784
+ import { z as z111 } from "zod";
2785
+ var ElementViewBaseColumnType = z111.enum(["Name", "Description", "Value", "UpdatedAt"]);
2786
+ var ElementViewColumnType = z111.union([
2787
+ z111.literal("BaseProperty"),
2788
+ z111.literal("PropertyDefinition"),
2789
+ z111.literal("Theme")
2790
+ ]);
2791
+ var ElementViewColumnSharedAttributes = z111.object({
2792
+ id: z111.string(),
2793
+ persistentId: z111.string(),
2794
+ elementDataViewId: z111.string(),
2795
+ sortPosition: z111.number(),
2796
+ width: z111.number()
2786
2797
  });
2787
2798
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
2788
- type: z110.literal("BaseProperty"),
2799
+ type: z111.literal("BaseProperty"),
2789
2800
  basePropertyType: ElementViewBaseColumnType
2790
2801
  });
2791
2802
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
2792
- type: z110.literal("PropertyDefinition"),
2793
- propertyDefinitionId: z110.string()
2803
+ type: z111.literal("PropertyDefinition"),
2804
+ propertyDefinitionId: z111.string()
2794
2805
  });
2795
2806
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
2796
- type: z110.literal("Theme"),
2797
- themeId: z110.string()
2807
+ type: z111.literal("Theme"),
2808
+ themeId: z111.string()
2798
2809
  });
2799
- var ElementViewColumn = z110.discriminatedUnion("type", [
2810
+ var ElementViewColumn = z111.discriminatedUnion("type", [
2800
2811
  ElementViewBasePropertyColumn,
2801
2812
  ElementViewPropertyDefinitionColumn,
2802
2813
  ElementViewThemeColumn
2803
2814
  ]);
2804
2815
 
2805
2816
  // src/dsm/views/view.ts
2806
- import { z as z111 } from "zod";
2807
- var ElementView = z111.object({
2808
- id: z111.string(),
2809
- persistentId: z111.string(),
2810
- designSystemVersionId: z111.string(),
2811
- name: z111.string(),
2812
- description: z111.string(),
2813
- targetElementType: ElementPropertyTargetType,
2814
- isDefault: z111.boolean()
2815
- });
2816
-
2817
- // src/dsm/brand.ts
2818
2817
  import { z as z112 } from "zod";
2819
- var Brand = z112.object({
2818
+ var ElementView = z112.object({
2820
2819
  id: z112.string(),
2821
- designSystemVersionId: z112.string(),
2822
2820
  persistentId: z112.string(),
2821
+ designSystemVersionId: z112.string(),
2823
2822
  name: z112.string(),
2824
- description: z112.string()
2823
+ description: z112.string(),
2824
+ targetElementType: ElementPropertyTargetType,
2825
+ isDefault: z112.boolean()
2826
+ });
2827
+
2828
+ // src/dsm/brand.ts
2829
+ import { z as z113 } from "zod";
2830
+ var Brand = z113.object({
2831
+ id: z113.string(),
2832
+ designSystemVersionId: z113.string(),
2833
+ persistentId: z113.string(),
2834
+ name: z113.string(),
2835
+ description: z113.string()
2825
2836
  });
2826
2837
 
2827
2838
  // src/dsm/design-system.ts
2828
- import { z as z123 } from "zod";
2839
+ import { z as z124 } from "zod";
2829
2840
 
2830
2841
  // src/workspace/npm-registry-settings.ts
2831
- import { z as z113 } from "zod";
2832
- var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
2833
- var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2834
- var NpmRegistryBasicAuthConfig = z113.object({
2835
- authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
2836
- username: z113.string(),
2837
- password: z113.string()
2838
- });
2839
- var NpmRegistryBearerAuthConfig = z113.object({
2840
- authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
2841
- accessToken: z113.string()
2842
- });
2843
- var NpmRegistryNoAuthConfig = z113.object({
2844
- authType: z113.literal(NpmRegistryAuthType.Enum.None)
2845
- });
2846
- var NpmRegistrCustomAuthConfig = z113.object({
2847
- authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
2848
- authHeaderName: z113.string(),
2849
- authHeaderValue: z113.string()
2850
- });
2851
- var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
2842
+ import { z as z114 } from "zod";
2843
+ var NpmRegistryAuthType = z114.enum(["Basic", "Bearer", "None", "Custom"]);
2844
+ var NpmRegistryType = z114.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
2845
+ var NpmRegistryBasicAuthConfig = z114.object({
2846
+ authType: z114.literal(NpmRegistryAuthType.Enum.Basic),
2847
+ username: z114.string(),
2848
+ password: z114.string()
2849
+ });
2850
+ var NpmRegistryBearerAuthConfig = z114.object({
2851
+ authType: z114.literal(NpmRegistryAuthType.Enum.Bearer),
2852
+ accessToken: z114.string()
2853
+ });
2854
+ var NpmRegistryNoAuthConfig = z114.object({
2855
+ authType: z114.literal(NpmRegistryAuthType.Enum.None)
2856
+ });
2857
+ var NpmRegistrCustomAuthConfig = z114.object({
2858
+ authType: z114.literal(NpmRegistryAuthType.Enum.Custom),
2859
+ authHeaderName: z114.string(),
2860
+ authHeaderValue: z114.string()
2861
+ });
2862
+ var NpmRegistryAuthConfig = z114.discriminatedUnion("authType", [
2852
2863
  NpmRegistryBasicAuthConfig,
2853
2864
  NpmRegistryBearerAuthConfig,
2854
2865
  NpmRegistryNoAuthConfig,
2855
2866
  NpmRegistrCustomAuthConfig
2856
2867
  ]);
2857
- var NpmRegistryConfigBase = z113.object({
2868
+ var NpmRegistryConfigBase = z114.object({
2858
2869
  registryType: NpmRegistryType,
2859
- enabledScopes: z113.array(z113.string()),
2860
- customRegistryUrl: z113.string().optional(),
2861
- bypassProxy: z113.boolean().default(false),
2862
- npmProxyRegistryConfigId: z113.string().optional(),
2863
- npmProxyVersion: z113.number().optional()
2870
+ enabledScopes: z114.array(z114.string()),
2871
+ customRegistryUrl: z114.string().optional(),
2872
+ bypassProxy: z114.boolean().default(false),
2873
+ npmProxyRegistryConfigId: z114.string().optional(),
2874
+ npmProxyVersion: z114.number().optional()
2864
2875
  });
2865
2876
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
2866
2877
 
2867
2878
  // src/workspace/sso-provider.ts
2868
- import { z as z114 } from "zod";
2869
- var SsoProvider = z114.object({
2870
- providerId: z114.string(),
2871
- defaultAutoInviteValue: z114.boolean(),
2872
- autoInviteDomains: z114.record(z114.string(), z114.boolean()),
2873
- skipDocsSupernovaLogin: z114.boolean(),
2874
- areInvitesDisabled: z114.boolean(),
2875
- isTestMode: z114.boolean(),
2876
- emailDomains: z114.array(z114.string()),
2877
- metadataXml: z114.string().nullish()
2879
+ import { z as z115 } from "zod";
2880
+ var SsoProvider = z115.object({
2881
+ providerId: z115.string(),
2882
+ defaultAutoInviteValue: z115.boolean(),
2883
+ autoInviteDomains: z115.record(z115.string(), z115.boolean()),
2884
+ skipDocsSupernovaLogin: z115.boolean(),
2885
+ areInvitesDisabled: z115.boolean(),
2886
+ isTestMode: z115.boolean(),
2887
+ emailDomains: z115.array(z115.string()),
2888
+ metadataXml: z115.string().nullish()
2878
2889
  });
2879
2890
 
2880
2891
  // src/workspace/user-invite.ts
2881
- import { z as z116 } from "zod";
2892
+ import { z as z117 } from "zod";
2882
2893
 
2883
2894
  // src/workspace/workspace-role.ts
2884
- import { z as z115 } from "zod";
2885
- var WorkspaceRoleSchema = z115.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2895
+ import { z as z116 } from "zod";
2896
+ var WorkspaceRoleSchema = z116.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
2886
2897
  var WorkspaceRole = WorkspaceRoleSchema.enum;
2887
2898
 
2888
2899
  // src/workspace/user-invite.ts
2889
2900
  var MAX_MEMBERS_COUNT = 100;
2890
- var UserInvite = z116.object({
2891
- email: z116.string().email().trim().transform((value) => value.toLowerCase()),
2901
+ var UserInvite = z117.object({
2902
+ email: z117.string().email().trim().transform((value) => value.toLowerCase()),
2892
2903
  role: WorkspaceRoleSchema
2893
2904
  });
2894
- var UserInvites = z116.array(UserInvite).max(MAX_MEMBERS_COUNT);
2905
+ var UserInvites = z117.array(UserInvite).max(MAX_MEMBERS_COUNT);
2895
2906
 
2896
2907
  // src/workspace/workspace-configuration.ts
2897
- import { z as z118 } from "zod";
2908
+ import { z as z119 } from "zod";
2898
2909
 
2899
2910
  // src/workspace/workspace.ts
2900
- import { z as z117 } from "zod";
2911
+ import { z as z118 } from "zod";
2901
2912
  import IPCIDR from "ip-cidr";
2902
2913
  var isValidCIDR = (value) => {
2903
2914
  return IPCIDR.isValidAddress(value);
2904
2915
  };
2905
- var WorkspaceIpWhitelistEntry = z117.object({
2906
- isEnabled: z117.boolean(),
2907
- name: z117.string(),
2908
- range: z117.string().refine(isValidCIDR, {
2916
+ var WorkspaceIpWhitelistEntry = z118.object({
2917
+ isEnabled: z118.boolean(),
2918
+ name: z118.string(),
2919
+ range: z118.string().refine(isValidCIDR, {
2909
2920
  message: "Invalid IP CIDR"
2910
2921
  })
2911
2922
  });
2912
- var WorkspaceIpSettings = z117.object({
2913
- isEnabledForCloud: z117.boolean(),
2914
- isEnabledForDocs: z117.boolean(),
2915
- entries: z117.array(WorkspaceIpWhitelistEntry)
2923
+ var WorkspaceIpSettings = z118.object({
2924
+ isEnabledForCloud: z118.boolean(),
2925
+ isEnabledForDocs: z118.boolean(),
2926
+ entries: z118.array(WorkspaceIpWhitelistEntry)
2916
2927
  });
2917
- var WorkspaceProfile = z117.object({
2918
- name: z117.string(),
2919
- handle: z117.string(),
2920
- color: z117.string(),
2921
- avatar: nullishToOptional(z117.string()),
2928
+ var WorkspaceProfile = z118.object({
2929
+ name: z118.string(),
2930
+ handle: z118.string(),
2931
+ color: z118.string(),
2932
+ avatar: nullishToOptional(z118.string()),
2922
2933
  billingDetails: nullishToOptional(BillingDetails)
2923
2934
  });
2924
2935
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
2925
2936
  avatar: true
2926
2937
  });
2927
- var Workspace = z117.object({
2928
- id: z117.string(),
2938
+ var Workspace = z118.object({
2939
+ id: z118.string(),
2929
2940
  profile: WorkspaceProfile,
2930
2941
  subscription: Subscription,
2931
2942
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2932
2943
  sso: nullishToOptional(SsoProvider),
2933
2944
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig),
2934
- designSystems: z117.array(DesignSystem).nullish()
2945
+ designSystems: z118.array(DesignSystem).nullish()
2935
2946
  });
2936
- var WorkspaceWithDesignSystems = z117.object({
2947
+ var WorkspaceWithDesignSystems = z118.object({
2937
2948
  workspace: Workspace,
2938
- designSystems: z117.array(DesignSystem)
2949
+ designSystems: z118.array(DesignSystem)
2939
2950
  });
2940
2951
 
2941
2952
  // src/workspace/workspace-configuration.ts
2942
- var WorkspaceConfigurationUpdate = z118.object({
2943
- id: z118.string(),
2953
+ var WorkspaceConfigurationUpdate = z119.object({
2954
+ id: z119.string(),
2944
2955
  ipWhitelist: WorkspaceIpSettings.optional(),
2945
2956
  sso: SsoProvider.optional(),
2946
2957
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -2948,16 +2959,16 @@ var WorkspaceConfigurationUpdate = z118.object({
2948
2959
  });
2949
2960
 
2950
2961
  // src/workspace/workspace-context.ts
2951
- import { z as z119 } from "zod";
2952
- var WorkspaceContext = z119.object({
2953
- workspaceId: z119.string(),
2962
+ import { z as z120 } from "zod";
2963
+ var WorkspaceContext = z120.object({
2964
+ workspaceId: z120.string(),
2954
2965
  product: ProductCodeSchema,
2955
2966
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
2956
- publicDesignSystem: z119.boolean().optional()
2967
+ publicDesignSystem: z120.boolean().optional()
2957
2968
  });
2958
2969
 
2959
2970
  // src/workspace/workspace-create.ts
2960
- import { z as z120 } from "zod";
2971
+ import { z as z121 } from "zod";
2961
2972
 
2962
2973
  // src/utils/validation.ts
2963
2974
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
@@ -2967,18 +2978,18 @@ var WORKSPACE_NAME_MIN_LENGTH = 2;
2967
2978
  var WORKSPACE_NAME_MAX_LENGTH = 64;
2968
2979
  var HANDLE_MIN_LENGTH = 2;
2969
2980
  var HANDLE_MAX_LENGTH = 64;
2970
- var CreateWorkspaceInput = z120.object({
2971
- name: z120.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2981
+ var CreateWorkspaceInput = z121.object({
2982
+ name: z121.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
2972
2983
  product: ProductCodeSchema,
2973
- priceId: z120.string(),
2974
- billingEmail: z120.string().email().optional(),
2975
- handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2984
+ priceId: z121.string(),
2985
+ billingEmail: z121.string().email().optional(),
2986
+ handle: z121.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
2976
2987
  invites: UserInvites.optional(),
2977
- promoCode: z120.string().optional(),
2988
+ promoCode: z121.string().optional(),
2978
2989
  status: InternalStatusSchema.optional(),
2979
2990
  planInterval: BillingIntervalSchema.optional(),
2980
- seats: z120.number().optional(),
2981
- seatLimit: z120.number().optional(),
2991
+ seats: z121.number().optional(),
2992
+ seatLimit: z121.number().optional(),
2982
2993
  card: CardSchema.optional(),
2983
2994
  sso: SsoProvider.optional(),
2984
2995
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -2986,269 +2997,270 @@ var CreateWorkspaceInput = z120.object({
2986
2997
  });
2987
2998
 
2988
2999
  // src/workspace/workspace-invitations.ts
2989
- import { z as z121 } from "zod";
2990
- var WorkspaceInvitation = z121.object({
2991
- id: z121.string(),
2992
- email: z121.string().email(),
2993
- createdAt: z121.coerce.date(),
2994
- resentAt: z121.coerce.date().nullish(),
2995
- role: z121.nativeEnum(WorkspaceRole),
2996
- workspaceId: z121.string(),
2997
- invitedBy: z121.string()
2998
- });
2999
-
3000
- // src/workspace/workspace-membership.ts
3001
3000
  import { z as z122 } from "zod";
3002
- var WorkspaceMembership = z122.object({
3001
+ var WorkspaceInvitation = z122.object({
3003
3002
  id: z122.string(),
3004
- userId: z122.string(),
3003
+ email: z122.string().email(),
3004
+ createdAt: z122.coerce.date(),
3005
+ resentAt: z122.coerce.date().nullish(),
3006
+ role: z122.nativeEnum(WorkspaceRole),
3005
3007
  workspaceId: z122.string(),
3006
- workspaceRole: z122.nativeEnum(WorkspaceRole),
3008
+ invitedBy: z122.string()
3009
+ });
3010
+
3011
+ // src/workspace/workspace-membership.ts
3012
+ import { z as z123 } from "zod";
3013
+ var WorkspaceMembership = z123.object({
3014
+ id: z123.string(),
3015
+ userId: z123.string(),
3016
+ workspaceId: z123.string(),
3017
+ workspaceRole: z123.nativeEnum(WorkspaceRole),
3007
3018
  notificationSettings: UserNotificationSettings
3008
3019
  });
3009
- var UpdateMembershipRolesInput = z122.object({
3010
- members: z122.array(
3011
- z122.object({
3012
- userId: z122.string(),
3013
- role: z122.nativeEnum(WorkspaceRole)
3020
+ var UpdateMembershipRolesInput = z123.object({
3021
+ members: z123.array(
3022
+ z123.object({
3023
+ userId: z123.string(),
3024
+ role: z123.nativeEnum(WorkspaceRole)
3014
3025
  })
3015
3026
  )
3016
3027
  });
3017
3028
 
3018
3029
  // src/dsm/design-system.ts
3019
- var DesignSystemSwitcher = z123.object({
3020
- isEnabled: z123.boolean(),
3021
- designSystemIds: z123.array(z123.string())
3030
+ var DesignSystemSwitcher = z124.object({
3031
+ isEnabled: z124.boolean(),
3032
+ designSystemIds: z124.array(z124.string())
3022
3033
  });
3023
- var DesignSystem = z123.object({
3024
- id: z123.string(),
3025
- workspaceId: z123.string(),
3026
- name: z123.string(),
3027
- description: z123.string(),
3028
- docExporterId: nullishToOptional(z123.string()),
3029
- docSlug: z123.string(),
3030
- docUserSlug: nullishToOptional(z123.string()),
3031
- docSlugDeprecated: z123.string(),
3032
- isPublic: z123.boolean(),
3033
- isMultibrand: z123.boolean(),
3034
- docViewUrl: nullishToOptional(z123.string()),
3035
- basePrefixes: z123.array(z123.string()),
3034
+ var DesignSystem = z124.object({
3035
+ id: z124.string(),
3036
+ workspaceId: z124.string(),
3037
+ name: z124.string(),
3038
+ description: z124.string(),
3039
+ docExporterId: nullishToOptional(z124.string()),
3040
+ docSlug: z124.string(),
3041
+ docUserSlug: nullishToOptional(z124.string()),
3042
+ docSlugDeprecated: z124.string(),
3043
+ isPublic: z124.boolean(),
3044
+ isMultibrand: z124.boolean(),
3045
+ docViewUrl: nullishToOptional(z124.string()),
3046
+ basePrefixes: z124.array(z124.string()),
3036
3047
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
3037
- createdAt: z123.coerce.date(),
3038
- updatedAt: z123.coerce.date()
3048
+ createdAt: z124.coerce.date(),
3049
+ updatedAt: z124.coerce.date()
3039
3050
  });
3040
- var DesignSystemWithWorkspace = z123.object({
3051
+ var DesignSystemWithWorkspace = z124.object({
3041
3052
  designSystem: DesignSystem,
3042
3053
  workspace: Workspace
3043
3054
  });
3044
3055
 
3045
3056
  // src/dsm/desing-system-create.ts
3046
- import { z as z124 } from "zod";
3057
+ import { z as z125 } from "zod";
3047
3058
  var DS_NAME_MIN_LENGTH = 2;
3048
3059
  var DS_NAME_MAX_LENGTH = 64;
3049
3060
  var DS_DESC_MAX_LENGTH = 64;
3050
- var DesignSystemCreateInputMetadata = z124.object({
3051
- name: z124.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
3052
- description: z124.string().max(DS_DESC_MAX_LENGTH).trim()
3061
+ var DesignSystemCreateInputMetadata = z125.object({
3062
+ name: z125.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
3063
+ description: z125.string().max(DS_DESC_MAX_LENGTH).trim()
3053
3064
  });
3054
- var DesignSystemCreateInput = z124.object({
3065
+ var DesignSystemCreateInput = z125.object({
3055
3066
  meta: DesignSystemCreateInputMetadata,
3056
- workspaceId: z124.string(),
3057
- isPublic: z124.boolean().optional(),
3058
- basePrefixes: z124.array(z124.string()).optional(),
3059
- docUserSlug: z124.string().nullish().optional(),
3060
- source: z124.array(z124.string()).optional()
3067
+ workspaceId: z125.string(),
3068
+ isPublic: z125.boolean().optional(),
3069
+ basePrefixes: z125.array(z125.string()).optional(),
3070
+ docUserSlug: z125.string().nullish().optional(),
3071
+ source: z125.array(z125.string()).optional()
3061
3072
  });
3062
3073
 
3063
3074
  // src/dsm/desing-system-update.ts
3064
- import { z as z125 } from "zod";
3075
+ import { z as z126 } from "zod";
3065
3076
  var DS_NAME_MIN_LENGTH2 = 2;
3066
3077
  var DS_NAME_MAX_LENGTH2 = 64;
3067
3078
  var DS_DESC_MAX_LENGTH2 = 64;
3068
- var DesignSystemUpdateInputMetadata = z125.object({
3069
- name: z125.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
3070
- description: z125.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
3079
+ var DesignSystemUpdateInputMetadata = z126.object({
3080
+ name: z126.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
3081
+ description: z126.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
3071
3082
  });
3072
- var DesignSystemUpdateInput = z125.object({
3083
+ var DesignSystemUpdateInput = z126.object({
3073
3084
  meta: DesignSystemUpdateInputMetadata.optional(),
3074
- workspaceId: z125.string().optional(),
3075
- isPublic: z125.boolean().optional(),
3076
- basePrefixes: z125.array(z125.string()).optional(),
3077
- docUserSlug: z125.string().nullish().optional(),
3078
- source: z125.array(z125.string()).optional(),
3079
- name: z125.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
3080
- description: z125.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
3081
- docExporterId: z125.string().optional()
3085
+ workspaceId: z126.string().optional(),
3086
+ isPublic: z126.boolean().optional(),
3087
+ basePrefixes: z126.array(z126.string()).optional(),
3088
+ docUserSlug: z126.string().nullish().optional(),
3089
+ source: z126.array(z126.string()).optional(),
3090
+ name: z126.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
3091
+ description: z126.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
3092
+ docExporterId: z126.string().optional()
3082
3093
  });
3083
3094
 
3084
3095
  // src/dsm/exporter-property-values-collection.ts
3085
- import { z as z126 } from "zod";
3086
- var ExporterPropertyImageValue = z126.object({
3096
+ import { z as z127 } from "zod";
3097
+ var ExporterPropertyImageValue = z127.object({
3087
3098
  asset: PageBlockAsset.optional(),
3088
- assetId: z126.string().optional(),
3089
- assetUrl: z126.string().optional()
3090
- });
3091
- var ExporterPropertyValue = z126.object({
3092
- key: z126.string(),
3093
- value: z126.union([
3094
- z126.number(),
3095
- z126.string(),
3096
- z126.boolean(),
3099
+ assetId: z127.string().optional(),
3100
+ assetUrl: z127.string().optional()
3101
+ });
3102
+ var ExporterPropertyValue = z127.object({
3103
+ key: z127.string(),
3104
+ value: z127.union([
3105
+ z127.number(),
3106
+ z127.string(),
3107
+ z127.boolean(),
3097
3108
  ExporterPropertyImageValue,
3098
3109
  ColorTokenData,
3099
3110
  TypographyTokenData
3100
3111
  ])
3101
3112
  });
3102
- var ExporterPropertyValuesCollection = z126.object({
3103
- id: z126.string(),
3104
- designSystemId: z126.string(),
3105
- exporterId: z126.string(),
3106
- values: z126.array(ExporterPropertyValue)
3113
+ var ExporterPropertyValuesCollection = z127.object({
3114
+ id: z127.string(),
3115
+ designSystemId: z127.string(),
3116
+ exporterId: z127.string(),
3117
+ values: z127.array(ExporterPropertyValue)
3107
3118
  });
3108
3119
 
3109
3120
  // src/dsm/published-doc-page.ts
3110
- import { z as z127 } from "zod";
3121
+ import { z as z128 } from "zod";
3111
3122
  var SHORT_PERSISTENT_ID_LENGTH = 8;
3112
3123
  function tryParseShortPersistentId(url = "/") {
3113
3124
  const lastUrlPart = url.split("/").pop() || "";
3114
3125
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
3115
3126
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
3116
3127
  }
3117
- var PublishedDocPage = z127.object({
3118
- id: z127.string(),
3119
- publishedDocId: z127.string(),
3120
- pageShortPersistentId: z127.string(),
3121
- pathV1: z127.string(),
3122
- pathV2: z127.string(),
3123
- storagePath: z127.string(),
3124
- locale: z127.string().optional(),
3125
- isPrivate: z127.boolean(),
3126
- isHidden: z127.boolean(),
3127
- createdAt: z127.coerce.date(),
3128
- updatedAt: z127.coerce.date()
3128
+ var PublishedDocPage = z128.object({
3129
+ id: z128.string(),
3130
+ publishedDocId: z128.string(),
3131
+ pageShortPersistentId: z128.string(),
3132
+ pathV1: z128.string(),
3133
+ pathV2: z128.string(),
3134
+ storagePath: z128.string(),
3135
+ locale: z128.string().optional(),
3136
+ isPrivate: z128.boolean(),
3137
+ isHidden: z128.boolean(),
3138
+ createdAt: z128.coerce.date(),
3139
+ updatedAt: z128.coerce.date()
3129
3140
  });
3130
3141
 
3131
3142
  // src/dsm/published-doc.ts
3132
- import { z as z128 } from "zod";
3143
+ import { z as z129 } from "zod";
3133
3144
  var publishedDocEnvironments = ["Live", "Preview"];
3134
- var PublishedDocEnvironment = z128.enum(publishedDocEnvironments);
3135
- var PublishedDocsChecksums = z128.record(z128.string());
3136
- var PublishedDocRoutingVersion = z128.enum(["1", "2"]);
3137
- var PublishedDoc = z128.object({
3138
- id: z128.string(),
3139
- designSystemVersionId: z128.string(),
3140
- createdAt: z128.coerce.date(),
3141
- updatedAt: z128.coerce.date(),
3142
- lastPublishedAt: z128.coerce.date(),
3143
- isDefault: z128.boolean(),
3144
- isPublic: z128.boolean(),
3145
+ var PublishedDocEnvironment = z129.enum(publishedDocEnvironments);
3146
+ var PublishedDocsChecksums = z129.record(z129.string());
3147
+ var PublishedDocRoutingVersion = z129.enum(["1", "2"]);
3148
+ var PublishedDoc = z129.object({
3149
+ id: z129.string(),
3150
+ designSystemVersionId: z129.string(),
3151
+ createdAt: z129.coerce.date(),
3152
+ updatedAt: z129.coerce.date(),
3153
+ lastPublishedAt: z129.coerce.date(),
3154
+ isDefault: z129.boolean(),
3155
+ isPublic: z129.boolean(),
3145
3156
  environment: PublishedDocEnvironment,
3146
3157
  checksums: PublishedDocsChecksums,
3147
- storagePath: z128.string(),
3148
- wasMigrated: z128.boolean(),
3158
+ storagePath: z129.string(),
3159
+ wasMigrated: z129.boolean(),
3149
3160
  routingVersion: PublishedDocRoutingVersion,
3150
- usesLocalizations: z128.boolean(),
3151
- wasPublishedWithLocalizations: z128.boolean()
3161
+ usesLocalizations: z129.boolean(),
3162
+ wasPublishedWithLocalizations: z129.boolean()
3152
3163
  });
3153
3164
 
3154
3165
  // src/dsm/version.ts
3155
- import { z as z129 } from "zod";
3156
- var DesignSystemVersion = z129.object({
3157
- id: z129.string(),
3158
- version: z129.string(),
3159
- createdAt: z129.date(),
3160
- designSystemId: z129.string(),
3161
- name: z129.string(),
3162
- comment: z129.string(),
3163
- isReadonly: z129.boolean(),
3164
- changeLog: z129.string(),
3165
- parentId: z129.string().optional()
3166
- });
3167
- var VersionCreationJobStatus = z129.enum(["Success", "InProgress", "Error"]);
3168
- var VersionCreationJob = z129.object({
3169
- id: z129.string(),
3170
- version: z129.string(),
3171
- designSystemId: z129.string(),
3172
- designSystemVersionId: nullishToOptional(z129.string()),
3166
+ import { z as z130 } from "zod";
3167
+ var DesignSystemVersion = z130.object({
3168
+ id: z130.string(),
3169
+ version: z130.string(),
3170
+ createdAt: z130.date(),
3171
+ designSystemId: z130.string(),
3172
+ name: z130.string(),
3173
+ comment: z130.string(),
3174
+ isReadonly: z130.boolean(),
3175
+ changeLog: z130.string(),
3176
+ parentId: z130.string().optional()
3177
+ });
3178
+ var VersionCreationJobStatus = z130.enum(["Success", "InProgress", "Error"]);
3179
+ var VersionCreationJob = z130.object({
3180
+ id: z130.string(),
3181
+ version: z130.string(),
3182
+ designSystemId: z130.string(),
3183
+ designSystemVersionId: nullishToOptional(z130.string()),
3173
3184
  status: VersionCreationJobStatus,
3174
- errorMessage: nullishToOptional(z129.string())
3185
+ errorMessage: nullishToOptional(z130.string())
3175
3186
  });
3176
3187
 
3177
3188
  // src/export/export-runner/export-context.ts
3178
- import { z as z130 } from "zod";
3179
- var ExportJobDocumentationContext = z130.object({
3180
- isSingleVersionDocs: z130.boolean(),
3181
- versionSlug: z130.string(),
3189
+ import { z as z131 } from "zod";
3190
+ var ExportJobDocumentationContext = z131.object({
3191
+ isSingleVersionDocs: z131.boolean(),
3192
+ versionSlug: z131.string(),
3182
3193
  environment: PublishedDocEnvironment
3183
3194
  });
3184
- var ExportJobContext = z130.object({
3185
- apiUrl: z130.string(),
3186
- accessToken: z130.string(),
3187
- designSystemId: z130.string(),
3188
- designSystemVersionId: z130.string(),
3189
- brandId: z130.string().optional(),
3190
- exporterPackageUrl: z130.string(),
3195
+ var ExportJobContext = z131.object({
3196
+ apiUrl: z131.string(),
3197
+ accessToken: z131.string(),
3198
+ designSystemId: z131.string(),
3199
+ versionId: z131.string(),
3200
+ brandId: z131.string().optional(),
3201
+ themeId: z131.string().optional(),
3202
+ exporterPackageUrl: z131.string(),
3191
3203
  exporterPropertyValues: ExporterPropertyValue.array(),
3192
3204
  documentation: ExportJobDocumentationContext.optional()
3193
3205
  });
3194
3206
 
3195
3207
  // src/export/export-runner/exporter-payload.ts
3196
- import { z as z131 } from "zod";
3197
- var ExporterFunctionPayload = z131.object({
3198
- exportJobId: z131.string(),
3199
- exportContextId: z131.string(),
3200
- designSystemId: z131.string(),
3201
- workspaceId: z131.string()
3208
+ import { z as z132 } from "zod";
3209
+ var ExporterFunctionPayload = z132.object({
3210
+ exportJobId: z132.string(),
3211
+ exportContextId: z132.string(),
3212
+ designSystemId: z132.string(),
3213
+ workspaceId: z132.string()
3202
3214
  });
3203
3215
 
3204
3216
  // src/export/export-destinations.ts
3205
- import { z as z132 } from "zod";
3217
+ import { z as z133 } from "zod";
3206
3218
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
3207
3219
  var BITBUCKET_MAX_LENGTH = 64;
3208
- var ExporterDestinationDocs = z132.object({
3220
+ var ExporterDestinationDocs = z133.object({
3209
3221
  environment: PublishedDocEnvironment
3210
3222
  });
3211
- var ExporterDestinationS3 = z132.object({});
3212
- var ExporterDestinationGithub = z132.object({
3213
- url: z132.string(),
3214
- branch: z132.string(),
3215
- userId: z132.string(),
3216
- connectionId: z132.string(),
3217
- relativePath: z132.string()
3218
- });
3219
- var ExporterDestinationAzure = z132.object({
3220
- connectionId: z132.string(),
3221
- organizationId: z132.string(),
3222
- projectId: z132.string(),
3223
- repositoryId: z132.string(),
3224
- branch: z132.string(),
3225
- relativePath: z132.string()
3223
+ var ExporterDestinationS3 = z133.object({});
3224
+ var ExporterDestinationGithub = z133.object({
3225
+ url: z133.string(),
3226
+ branch: z133.string(),
3227
+ userId: z133.string(),
3228
+ connectionId: z133.string(),
3229
+ relativePath: z133.string()
3230
+ });
3231
+ var ExporterDestinationAzure = z133.object({
3232
+ connectionId: z133.string(),
3233
+ organizationId: z133.string(),
3234
+ projectId: z133.string(),
3235
+ repositoryId: z133.string(),
3236
+ branch: z133.string(),
3237
+ relativePath: z133.string()
3226
3238
  // // +
3227
3239
  // userId: z.coerce.string(),
3228
3240
  // url: z.string(),
3229
3241
  });
3230
- var ExporterDestinationGitlab = z132.object({
3231
- connectionId: z132.string(),
3232
- projectId: z132.string(),
3233
- branch: z132.string(),
3234
- relativePath: z132.string()
3242
+ var ExporterDestinationGitlab = z133.object({
3243
+ connectionId: z133.string(),
3244
+ projectId: z133.string(),
3245
+ branch: z133.string(),
3246
+ relativePath: z133.string()
3235
3247
  // // +
3236
3248
  // userId: z.coerce.string(),
3237
3249
  // url: z.string(),
3238
3250
  });
3239
- var ExporterDestinationBitbucket = z132.object({
3240
- connectionId: z132.string(),
3241
- workspaceSlug: z132.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3242
- projectKey: z132.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3243
- repoSlug: z132.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3244
- branch: z132.string(),
3245
- relativePath: z132.string()
3251
+ var ExporterDestinationBitbucket = z133.object({
3252
+ connectionId: z133.string(),
3253
+ workspaceSlug: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3254
+ projectKey: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3255
+ repoSlug: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
3256
+ branch: z133.string(),
3257
+ relativePath: z133.string()
3246
3258
  // // +
3247
3259
  // userId: z.string(),
3248
3260
  // url: z.string(),
3249
3261
  });
3250
- var ExportDestinationsMap = z132.object({
3251
- webhookUrl: z132.string().optional(),
3262
+ var ExportDestinationsMap = z133.object({
3263
+ webhookUrl: z133.string().optional(),
3252
3264
  destinationSnDocs: ExporterDestinationDocs.optional(),
3253
3265
  destinationS3: ExporterDestinationS3.optional(),
3254
3266
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -3258,30 +3270,30 @@ var ExportDestinationsMap = z132.object({
3258
3270
  });
3259
3271
 
3260
3272
  // src/export/export-jobs.ts
3261
- import { z as z133 } from "zod";
3262
- var ExportJobDestinationType = z133.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
3263
- var ExportJobStatus = z133.enum(["InProgress", "Success", "Failed", "Timeout"]);
3264
- var ExportJobLogEntryType = z133.enum(["success", "info", "warning", "error", "user"]);
3265
- var ExportJobLogEntry = z133.object({
3266
- id: z133.string().optional(),
3267
- time: z133.coerce.date(),
3273
+ import { z as z134 } from "zod";
3274
+ var ExportJobDestinationType = z134.enum(["s3", "webhookUrl", "github", "documentation", "azure", "gitlab"]);
3275
+ var ExportJobStatus = z134.enum(["InProgress", "Success", "Failed", "Timeout"]);
3276
+ var ExportJobLogEntryType = z134.enum(["success", "info", "warning", "error", "user"]);
3277
+ var ExportJobLogEntry = z134.object({
3278
+ id: z134.string().optional(),
3279
+ time: z134.coerce.date(),
3268
3280
  type: ExportJobLogEntryType,
3269
- message: z133.string()
3281
+ message: z134.string()
3270
3282
  });
3271
- var ExportJobPullRequestDestinationResult = z133.object({
3272
- pullRequestUrl: z133.string()
3283
+ var ExportJobPullRequestDestinationResult = z134.object({
3284
+ pullRequestUrl: z134.string()
3273
3285
  });
3274
- var ExportJobS3DestinationResult = z133.object({
3275
- bucket: z133.string(),
3276
- urlPrefix: z133.string().optional(),
3277
- path: z133.string(),
3278
- files: z133.array(z133.string())
3286
+ var ExportJobS3DestinationResult = z134.object({
3287
+ bucket: z134.string(),
3288
+ urlPrefix: z134.string().optional(),
3289
+ path: z134.string(),
3290
+ files: z134.array(z134.string())
3279
3291
  });
3280
- var ExportJobDocsDestinationResult = z133.object({
3281
- url: z133.string()
3292
+ var ExportJobDocsDestinationResult = z134.object({
3293
+ url: z134.string()
3282
3294
  });
3283
- var ExportJobResult = z133.object({
3284
- error: z133.string().optional(),
3295
+ var ExportJobResult = z134.object({
3296
+ error: z134.string().optional(),
3285
3297
  s3: ExportJobS3DestinationResult.optional(),
3286
3298
  github: ExportJobPullRequestDestinationResult.optional(),
3287
3299
  azure: ExportJobPullRequestDestinationResult.optional(),
@@ -3289,21 +3301,21 @@ var ExportJobResult = z133.object({
3289
3301
  bitbucket: ExportJobPullRequestDestinationResult.optional(),
3290
3302
  sndocs: ExportJobDocsDestinationResult.optional()
3291
3303
  });
3292
- var ExportJob = z133.object({
3293
- id: z133.string(),
3294
- createdAt: z133.date(),
3295
- finishedAt: z133.date().optional(),
3296
- designSystemId: z133.string(),
3297
- designSystemVersionId: z133.string(),
3298
- workspaceId: z133.string(),
3299
- scheduleId: z133.string().nullish(),
3300
- exporterId: z133.string(),
3301
- brandId: z133.string().optional(),
3302
- themeId: z133.string().optional(),
3303
- estimatedExecutionTime: z133.number().optional(),
3304
+ var ExportJob = z134.object({
3305
+ id: z134.string(),
3306
+ createdAt: z134.date(),
3307
+ finishedAt: z134.date().optional(),
3308
+ designSystemId: z134.string(),
3309
+ designSystemVersionId: z134.string(),
3310
+ workspaceId: z134.string(),
3311
+ scheduleId: z134.string().nullish(),
3312
+ exporterId: z134.string(),
3313
+ brandId: z134.string().optional(),
3314
+ themeId: z134.string().optional(),
3315
+ estimatedExecutionTime: z134.number().optional(),
3304
3316
  status: ExportJobStatus,
3305
3317
  result: ExportJobResult.optional(),
3306
- createdByUserId: z133.string().optional(),
3318
+ createdByUserId: z134.string().optional(),
3307
3319
  // Destinations
3308
3320
  ...ExportDestinationsMap.shape
3309
3321
  });
@@ -3317,45 +3329,45 @@ var ExportJobFindByFilter = ExportJob.pick({
3317
3329
  themeId: true,
3318
3330
  brandId: true
3319
3331
  }).extend({
3320
- destinations: z133.array(ExportJobDestinationType),
3332
+ destinations: z134.array(ExportJobDestinationType),
3321
3333
  docsEnvironment: PublishedDocEnvironment
3322
3334
  }).partial();
3323
3335
 
3324
3336
  // src/export/export-schedule.ts
3325
- import { z as z134 } from "zod";
3326
- var ExporterScheduleEventType = z134.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3327
- var ExporterSchedule = z134.object({
3328
- id: z134.string(),
3329
- name: z134.string(),
3337
+ import { z as z135 } from "zod";
3338
+ var ExporterScheduleEventType = z135.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
3339
+ var ExporterSchedule = z135.object({
3340
+ id: z135.string(),
3341
+ name: z135.string(),
3330
3342
  eventType: ExporterScheduleEventType,
3331
- isEnabled: z134.boolean(),
3332
- workspaceId: z134.string(),
3333
- designSystemId: z134.string(),
3334
- exporterId: z134.string(),
3335
- brandId: z134.string().optional(),
3336
- themeId: z134.string().optional(),
3343
+ isEnabled: z135.boolean(),
3344
+ workspaceId: z135.string(),
3345
+ designSystemId: z135.string(),
3346
+ exporterId: z135.string(),
3347
+ brandId: z135.string().optional(),
3348
+ themeId: z135.string().optional(),
3337
3349
  // Destinations
3338
3350
  ...ExportDestinationsMap.shape
3339
3351
  });
3340
3352
 
3341
3353
  // src/export/exporter-workspace-membership-role.ts
3342
- import { z as z135 } from "zod";
3343
- var ExporterWorkspaceMembershipRole = z135.enum(["Owner", "OwnerArchived", "User"]);
3354
+ import { z as z136 } from "zod";
3355
+ var ExporterWorkspaceMembershipRole = z136.enum(["Owner", "OwnerArchived", "User"]);
3344
3356
 
3345
3357
  // src/export/exporter-workspace-membership.ts
3346
- import { z as z136 } from "zod";
3347
- var ExporterWorkspaceMembership = z136.object({
3348
- id: z136.string(),
3349
- workspaceId: z136.string(),
3350
- exporterId: z136.string(),
3358
+ import { z as z137 } from "zod";
3359
+ var ExporterWorkspaceMembership = z137.object({
3360
+ id: z137.string(),
3361
+ workspaceId: z137.string(),
3362
+ exporterId: z137.string(),
3351
3363
  role: ExporterWorkspaceMembershipRole
3352
3364
  });
3353
3365
 
3354
3366
  // src/export/exporter.ts
3355
- import { z as z139 } from "zod";
3367
+ import { z as z140 } from "zod";
3356
3368
 
3357
3369
  // src/export/git-providers.ts
3358
- import { z as z137 } from "zod";
3370
+ import { z as z138 } from "zod";
3359
3371
  var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3360
3372
  GitProviderNames2["Azure"] = "azure";
3361
3373
  GitProviderNames2["Github"] = "github";
@@ -3363,11 +3375,11 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
3363
3375
  GitProviderNames2["Bitbucket"] = "bitbucket";
3364
3376
  return GitProviderNames2;
3365
3377
  })(GitProviderNames || {});
3366
- var GitProvider = z137.nativeEnum(GitProviderNames);
3378
+ var GitProvider = z138.nativeEnum(GitProviderNames);
3367
3379
 
3368
3380
  // src/export/pulsar.ts
3369
- import { z as z138 } from "zod";
3370
- var PulsarPropertyType = z138.enum([
3381
+ import { z as z139 } from "zod";
3382
+ var PulsarPropertyType = z139.enum([
3371
3383
  "string",
3372
3384
  "number",
3373
3385
  "boolean",
@@ -3380,91 +3392,91 @@ var PulsarPropertyType = z138.enum([
3380
3392
  "tokenProperties",
3381
3393
  "tokenType"
3382
3394
  ]);
3383
- var PulsarBaseProperty = z138.object({
3384
- label: z138.string(),
3385
- key: z138.string(),
3386
- description: z138.string().nullish(),
3395
+ var PulsarBaseProperty = z139.object({
3396
+ label: z139.string(),
3397
+ key: z139.string(),
3398
+ description: z139.string().nullish(),
3387
3399
  type: PulsarPropertyType,
3388
- values: z138.array(z138.string()).nullish(),
3389
- default: z138.union([z138.string(), z138.boolean(), z138.number()]).nullish(),
3400
+ values: z139.array(z139.string()).nullish(),
3401
+ default: z139.union([z139.string(), z139.boolean(), z139.number()]).nullish(),
3390
3402
  // PulsarPropertyValueType //is optional?
3391
- inputType: z138.enum(["code", "plain"]).optional(),
3403
+ inputType: z139.enum(["code", "plain"]).optional(),
3392
3404
  //is optional?
3393
- isMultiline: z138.boolean().nullish()
3405
+ isMultiline: z139.boolean().nullish()
3394
3406
  });
3395
3407
  var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
3396
- category: z138.string()
3408
+ category: z139.string()
3397
3409
  });
3398
- var PulsarContributionVariant = z138.object({
3399
- key: z138.string(),
3400
- name: z138.string(),
3401
- isDefault: nullishToOptional(z138.boolean()),
3402
- description: nullishToOptional(z138.string()),
3403
- thumbnailURL: nullishToOptional(z138.string())
3404
- });
3405
- var PulsarCustomBlock = z138.object({
3406
- title: nullishToOptional(z138.string()),
3407
- key: z138.string(),
3408
- category: nullishToOptional(z138.string()),
3409
- description: nullishToOptional(z138.string()),
3410
- iconURL: nullishToOptional(z138.string()),
3411
- mode: nullishToOptional(z138.enum(["array", "block"])),
3412
- properties: nullishToOptional(z138.array(PulsarBaseProperty)).transform((v) => v ?? [])
3410
+ var PulsarContributionVariant = z139.object({
3411
+ key: z139.string(),
3412
+ name: z139.string(),
3413
+ isDefault: nullishToOptional(z139.boolean()),
3414
+ description: nullishToOptional(z139.string()),
3415
+ thumbnailURL: nullishToOptional(z139.string())
3416
+ });
3417
+ var PulsarCustomBlock = z139.object({
3418
+ title: nullishToOptional(z139.string()),
3419
+ key: z139.string(),
3420
+ category: nullishToOptional(z139.string()),
3421
+ description: nullishToOptional(z139.string()),
3422
+ iconURL: nullishToOptional(z139.string()),
3423
+ mode: nullishToOptional(z139.enum(["array", "block"])),
3424
+ properties: nullishToOptional(z139.array(PulsarBaseProperty)).transform((v) => v ?? [])
3413
3425
  });
3414
3426
 
3415
3427
  // src/export/exporter.ts
3416
- var ExporterType = z139.enum(["code", "documentation"]);
3417
- var ExporterSource = z139.enum(["git", "upload"]);
3418
- var ExporterTag = z139.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3419
- var ExporterDetails = z139.object({
3420
- description: z139.string(),
3421
- version: z139.string(),
3422
- routingVersion: nullishToOptional(z139.string()),
3423
- author: nullishToOptional(z139.string()),
3424
- organization: nullishToOptional(z139.string()),
3425
- homepage: nullishToOptional(z139.string()),
3426
- readme: nullishToOptional(z139.string()),
3427
- tags: nullishToOptional(z139.array(ExporterTag)).default([]),
3428
- packageId: nullishToOptional(z139.string().max(255)),
3429
- iconURL: nullishToOptional(z139.string()),
3430
- configurationProperties: nullishToOptional(z139.array(PulsarContributionConfigurationProperty)).default([]),
3431
- customBlocks: nullishToOptional(z139.array(PulsarCustomBlock)).default([]),
3432
- blockVariants: nullishToOptional(z139.record(z139.string(), z139.array(PulsarContributionVariant))).default({}),
3433
- usesBrands: nullishToOptional(z139.boolean()).default(false),
3434
- usesThemes: nullishToOptional(z139.boolean()).default(false),
3428
+ var ExporterType = z140.enum(["code", "documentation"]);
3429
+ var ExporterSource = z140.enum(["git", "upload"]);
3430
+ var ExporterTag = z140.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
3431
+ var ExporterDetails = z140.object({
3432
+ description: z140.string(),
3433
+ version: z140.string(),
3434
+ routingVersion: nullishToOptional(z140.string()),
3435
+ author: nullishToOptional(z140.string()),
3436
+ organization: nullishToOptional(z140.string()),
3437
+ homepage: nullishToOptional(z140.string()),
3438
+ readme: nullishToOptional(z140.string()),
3439
+ tags: nullishToOptional(z140.array(ExporterTag)).default([]),
3440
+ packageId: nullishToOptional(z140.string().max(255)),
3441
+ iconURL: nullishToOptional(z140.string()),
3442
+ configurationProperties: nullishToOptional(z140.array(PulsarContributionConfigurationProperty)).default([]),
3443
+ customBlocks: nullishToOptional(z140.array(PulsarCustomBlock)).default([]),
3444
+ blockVariants: nullishToOptional(z140.record(z140.string(), z140.array(PulsarContributionVariant))).default({}),
3445
+ usesBrands: nullishToOptional(z140.boolean()).default(false),
3446
+ usesThemes: nullishToOptional(z140.boolean()).default(false),
3435
3447
  source: ExporterSource,
3436
3448
  gitProvider: nullishToOptional(GitProvider),
3437
- gitUrl: nullishToOptional(z139.string()),
3438
- gitBranch: nullishToOptional(z139.string()),
3439
- gitDirectory: nullishToOptional(z139.string())
3449
+ gitUrl: nullishToOptional(z140.string()),
3450
+ gitBranch: nullishToOptional(z140.string()),
3451
+ gitDirectory: nullishToOptional(z140.string())
3440
3452
  });
3441
- var Exporter = z139.object({
3442
- id: z139.string(),
3443
- createdAt: z139.coerce.date(),
3444
- name: z139.string(),
3445
- isPrivate: z139.boolean(),
3453
+ var Exporter = z140.object({
3454
+ id: z140.string(),
3455
+ createdAt: z140.coerce.date(),
3456
+ name: z140.string(),
3457
+ isPrivate: z140.boolean(),
3446
3458
  details: ExporterDetails,
3447
3459
  exporterType: nullishToOptional(ExporterType).default("code"),
3448
- storagePath: nullishToOptional(z139.string()).default("")
3460
+ storagePath: nullishToOptional(z140.string()).default("")
3449
3461
  });
3450
3462
 
3451
3463
  // src/feature-flags/feature-flags.ts
3452
- import { z as z140 } from "zod";
3453
- var FlaggedFeature = z140.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3454
- var FeatureFlagMap = z140.record(FlaggedFeature, z140.boolean());
3455
- var FeatureFlag = z140.object({
3456
- id: z140.string(),
3464
+ import { z as z141 } from "zod";
3465
+ var FlaggedFeature = z141.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
3466
+ var FeatureFlagMap = z141.record(FlaggedFeature, z141.boolean());
3467
+ var FeatureFlag = z141.object({
3468
+ id: z141.string(),
3457
3469
  feature: FlaggedFeature,
3458
- createdAt: z140.coerce.date(),
3459
- enabled: z140.boolean(),
3460
- designSystemId: z140.string().optional()
3470
+ createdAt: z141.coerce.date(),
3471
+ enabled: z141.boolean(),
3472
+ designSystemId: z141.string().optional()
3461
3473
  });
3462
3474
 
3463
3475
  // src/integrations/external-oauth-request.ts
3464
- import { z as z142 } from "zod";
3476
+ import { z as z143 } from "zod";
3465
3477
 
3466
3478
  // src/integrations/oauth-providers.ts
3467
- import { z as z141 } from "zod";
3479
+ import { z as z142 } from "zod";
3468
3480
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3469
3481
  OAuthProviderNames2["Figma"] = "figma";
3470
3482
  OAuthProviderNames2["Azure"] = "azure";
@@ -3473,76 +3485,76 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
3473
3485
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
3474
3486
  return OAuthProviderNames2;
3475
3487
  })(OAuthProviderNames || {});
3476
- var OAuthProviderSchema = z141.nativeEnum(OAuthProviderNames);
3488
+ var OAuthProviderSchema = z142.nativeEnum(OAuthProviderNames);
3477
3489
  var OAuthProvider = OAuthProviderSchema.enum;
3478
3490
 
3479
3491
  // src/integrations/external-oauth-request.ts
3480
- var ExternalOAuthRequest = z142.object({
3481
- id: z142.string(),
3492
+ var ExternalOAuthRequest = z143.object({
3493
+ id: z143.string(),
3482
3494
  provider: OAuthProviderSchema,
3483
- userId: z142.string(),
3484
- state: z142.string(),
3485
- createdAt: z142.coerce.date()
3495
+ userId: z143.string(),
3496
+ state: z143.string(),
3497
+ createdAt: z143.coerce.date()
3486
3498
  });
3487
3499
 
3488
3500
  // src/integrations/git.ts
3489
- import { z as z143 } from "zod";
3490
- var GitOrganization = z143.object({
3491
- id: z143.string(),
3492
- name: z143.string(),
3493
- url: z143.string()
3501
+ import { z as z144 } from "zod";
3502
+ var GitOrganization = z144.object({
3503
+ id: z144.string(),
3504
+ name: z144.string(),
3505
+ url: z144.string()
3494
3506
  });
3495
- var GitProject = z143.object({
3496
- id: z143.string(),
3497
- name: z143.string(),
3498
- url: z143.string()
3507
+ var GitProject = z144.object({
3508
+ id: z144.string(),
3509
+ name: z144.string(),
3510
+ url: z144.string()
3499
3511
  });
3500
- var GitRepository = z143.object({
3501
- id: z143.string(),
3502
- name: z143.string(),
3503
- url: z143.string(),
3504
- defaultBranch: z143.string()
3512
+ var GitRepository = z144.object({
3513
+ id: z144.string(),
3514
+ name: z144.string(),
3515
+ url: z144.string(),
3516
+ defaultBranch: z144.string()
3505
3517
  });
3506
- var GitBranch = z143.object({
3507
- name: z143.string(),
3508
- lastCommitId: z143.string()
3518
+ var GitBranch = z144.object({
3519
+ name: z144.string(),
3520
+ lastCommitId: z144.string()
3509
3521
  });
3510
3522
 
3511
3523
  // src/integrations/integration.ts
3512
- import { z as z144 } from "zod";
3513
- var IntegrationDesignSystem = z144.object({
3514
- designSystemId: z144.string(),
3515
- brandId: z144.string(),
3516
- title: z144.string().optional(),
3517
- userId: z144.string().optional(),
3518
- date: z144.coerce.date().optional()
3519
- });
3520
- var IntegrationCredentialsType = z144.enum(["OAuth2", "PAT", "GithubApp"]);
3521
- var IntegrationCredentialsProfile = z144.object({
3522
- id: z144.string(),
3523
- email: z144.string().optional(),
3524
- handle: z144.string().optional(),
3525
- type: z144.string().optional(),
3526
- avatarUrl: z144.string().optional(),
3527
- organization: z144.string().optional()
3524
+ import { z as z145 } from "zod";
3525
+ var IntegrationDesignSystem = z145.object({
3526
+ designSystemId: z145.string(),
3527
+ brandId: z145.string(),
3528
+ title: z145.string().optional(),
3529
+ userId: z145.string().optional(),
3530
+ date: z145.coerce.date().optional()
3531
+ });
3532
+ var IntegrationCredentialsType = z145.enum(["OAuth2", "PAT", "GithubApp"]);
3533
+ var IntegrationCredentialsProfile = z145.object({
3534
+ id: z145.string(),
3535
+ email: z145.string().optional(),
3536
+ handle: z145.string().optional(),
3537
+ type: z145.string().optional(),
3538
+ avatarUrl: z145.string().optional(),
3539
+ organization: z145.string().optional()
3528
3540
  });
3529
- var IntegrationCredentials = z144.object({
3530
- id: z144.string(),
3541
+ var IntegrationCredentials = z145.object({
3542
+ id: z145.string(),
3531
3543
  type: IntegrationCredentialsType,
3532
- integrationId: z144.string(),
3533
- accessToken: z144.string(),
3534
- userId: z144.string(),
3535
- createdAt: z144.coerce.date(),
3536
- refreshToken: z144.string().optional(),
3537
- tokenName: z144.string().optional(),
3538
- expiresAt: z144.coerce.date().optional(),
3539
- refreshedAt: z144.coerce.date().optional(),
3540
- username: z144.string().optional(),
3544
+ integrationId: z145.string(),
3545
+ accessToken: z145.string(),
3546
+ userId: z145.string(),
3547
+ createdAt: z145.coerce.date(),
3548
+ refreshToken: z145.string().optional(),
3549
+ tokenName: z145.string().optional(),
3550
+ expiresAt: z145.coerce.date().optional(),
3551
+ refreshedAt: z145.coerce.date().optional(),
3552
+ username: z145.string().optional(),
3541
3553
  profile: IntegrationCredentialsProfile.optional(),
3542
- customUrl: z144.string().optional(),
3554
+ customUrl: z145.string().optional(),
3543
3555
  user: UserMinified.optional()
3544
3556
  });
3545
- var ExtendedIntegrationType = z144.enum([
3557
+ var ExtendedIntegrationType = z145.enum([
3546
3558
  "Figma",
3547
3559
  "Github",
3548
3560
  "Gitlab",
@@ -3552,25 +3564,25 @@ var ExtendedIntegrationType = z144.enum([
3552
3564
  "FigmaVariablesPlugin"
3553
3565
  ]);
3554
3566
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
3555
- var Integration = z144.object({
3556
- id: z144.string(),
3557
- workspaceId: z144.string(),
3567
+ var Integration = z145.object({
3568
+ id: z145.string(),
3569
+ workspaceId: z145.string(),
3558
3570
  type: IntegrationType,
3559
- createdAt: z144.coerce.date(),
3560
- integrationCredentials: z144.array(IntegrationCredentials).optional()
3571
+ createdAt: z145.coerce.date(),
3572
+ integrationCredentials: z145.array(IntegrationCredentials).optional()
3561
3573
  });
3562
3574
  var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
3563
- var IntegrationToken = z144.object({
3564
- access_token: z144.string(),
3565
- refresh_token: z144.string().optional(),
3566
- expires_in: z144.union([z144.number().optional(), z144.string().optional()]),
3567
- token_type: z144.string().optional(),
3568
- token_name: z144.string().optional(),
3569
- token_azure_organization_name: z144.string().optional(),
3575
+ var IntegrationToken = z145.object({
3576
+ access_token: z145.string(),
3577
+ refresh_token: z145.string().optional(),
3578
+ expires_in: z145.union([z145.number().optional(), z145.string().optional()]),
3579
+ token_type: z145.string().optional(),
3580
+ token_name: z145.string().optional(),
3581
+ token_azure_organization_name: z145.string().optional(),
3570
3582
  // Azure only
3571
- token_bitbucket_username: z144.string().optional(),
3583
+ token_bitbucket_username: z145.string().optional(),
3572
3584
  // Bitbucket only
3573
- custom_url: z144.string().optional().refine((value) => {
3585
+ custom_url: z145.string().optional().refine((value) => {
3574
3586
  if (!value)
3575
3587
  return true;
3576
3588
  if (forbiddenCustomUrldomainList.some((domain) => value.includes(domain)))
@@ -3596,131 +3608,131 @@ var IntegrationToken = z144.object({
3596
3608
  });
3597
3609
 
3598
3610
  // src/integrations/oauth-token.ts
3599
- import { z as z145 } from "zod";
3600
- var IntegrationTokenSchemaOld = z145.object({
3601
- id: z145.string(),
3611
+ import { z as z146 } from "zod";
3612
+ var IntegrationTokenSchemaOld = z146.object({
3613
+ id: z146.string(),
3602
3614
  provider: OAuthProviderSchema,
3603
- scope: z145.string(),
3604
- userId: z145.string(),
3605
- accessToken: z145.string(),
3606
- refreshToken: z145.string(),
3607
- expiresAt: z145.coerce.date(),
3608
- externalUserId: z145.string().nullish()
3615
+ scope: z146.string(),
3616
+ userId: z146.string(),
3617
+ accessToken: z146.string(),
3618
+ refreshToken: z146.string(),
3619
+ expiresAt: z146.coerce.date(),
3620
+ externalUserId: z146.string().nullish()
3609
3621
  });
3610
3622
 
3611
3623
  // src/integrations/workspace-oauth-requests.ts
3612
- import { z as z146 } from "zod";
3613
- var WorkspaceOAuthRequestSchema = z146.object({
3614
- id: z146.string(),
3615
- workspaceId: z146.string(),
3624
+ import { z as z147 } from "zod";
3625
+ var WorkspaceOAuthRequestSchema = z147.object({
3626
+ id: z147.string(),
3627
+ workspaceId: z147.string(),
3616
3628
  provider: OAuthProviderSchema,
3617
- userId: z146.string(),
3618
- createdAt: z146.coerce.date()
3629
+ userId: z147.string(),
3630
+ createdAt: z147.coerce.date()
3619
3631
  });
3620
3632
 
3621
3633
  // src/liveblocks/rooms/design-system-version-room.ts
3622
- import { z as z147 } from "zod";
3634
+ import { z as z148 } from "zod";
3623
3635
  var DesignSystemVersionRoom = Entity.extend({
3624
- designSystemVersionId: z147.string(),
3625
- liveblocksId: z147.string()
3636
+ designSystemVersionId: z148.string(),
3637
+ liveblocksId: z148.string()
3626
3638
  });
3627
- var DesignSystemVersionRoomInternalSettings = z147.object({
3628
- routingVersion: z147.string()
3639
+ var DesignSystemVersionRoomInternalSettings = z148.object({
3640
+ routingVersion: z148.string()
3629
3641
  });
3630
- var DesignSystemVersionRoomInitialState = z147.object({
3631
- pages: z147.array(DocumentationPageV2),
3632
- groups: z147.array(ElementGroup),
3642
+ var DesignSystemVersionRoomInitialState = z148.object({
3643
+ pages: z148.array(DocumentationPageV2),
3644
+ groups: z148.array(ElementGroup),
3633
3645
  internalSettings: DesignSystemVersionRoomInternalSettings
3634
3646
  });
3635
- var DesignSystemVersionRoomUpdate = z147.object({
3636
- pages: z147.array(DocumentationPageV2),
3637
- groups: z147.array(ElementGroup),
3638
- deletedPageIds: z147.array(z147.string()),
3639
- deletedGroupIds: z147.array(z147.string())
3647
+ var DesignSystemVersionRoomUpdate = z148.object({
3648
+ pages: z148.array(DocumentationPageV2),
3649
+ groups: z148.array(ElementGroup),
3650
+ deletedPageIds: z148.array(z148.string()),
3651
+ deletedGroupIds: z148.array(z148.string())
3640
3652
  });
3641
3653
 
3642
3654
  // src/liveblocks/rooms/documentation-page-room.ts
3643
- import { z as z148 } from "zod";
3655
+ import { z as z149 } from "zod";
3644
3656
  var DocumentationPageRoom = Entity.extend({
3645
- designSystemVersionId: z148.string(),
3646
- documentationPageId: z148.string(),
3647
- liveblocksId: z148.string(),
3648
- isDirty: z148.boolean()
3657
+ designSystemVersionId: z149.string(),
3658
+ documentationPageId: z149.string(),
3659
+ liveblocksId: z149.string(),
3660
+ isDirty: z149.boolean()
3649
3661
  });
3650
- var DocumentationPageRoomState = z148.object({
3651
- pageItems: z148.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3662
+ var DocumentationPageRoomState = z149.object({
3663
+ pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3652
3664
  itemConfiguration: DocumentationItemConfigurationV2
3653
3665
  });
3654
- var DocumentationPageRoomRoomUpdate = z148.object({
3666
+ var DocumentationPageRoomRoomUpdate = z149.object({
3655
3667
  page: DocumentationPageV2,
3656
3668
  pageParent: ElementGroup
3657
3669
  });
3658
3670
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
3659
- pageItems: z148.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3660
- blockDefinitions: z148.array(PageBlockDefinition)
3671
+ pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
3672
+ blockDefinitions: z149.array(PageBlockDefinition)
3661
3673
  });
3662
3674
 
3663
3675
  // src/liveblocks/rooms/room-type.ts
3664
- import { z as z149 } from "zod";
3676
+ import { z as z150 } from "zod";
3665
3677
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
3666
3678
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
3667
3679
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
3668
3680
  RoomTypeEnum2["Workspace"] = "workspace";
3669
3681
  return RoomTypeEnum2;
3670
3682
  })(RoomTypeEnum || {});
3671
- var RoomTypeSchema = z149.nativeEnum(RoomTypeEnum);
3683
+ var RoomTypeSchema = z150.nativeEnum(RoomTypeEnum);
3672
3684
  var RoomType = RoomTypeSchema.enum;
3673
3685
 
3674
3686
  // src/liveblocks/rooms/workspace-room.ts
3675
- import { z as z150 } from "zod";
3687
+ import { z as z151 } from "zod";
3676
3688
  var WorkspaceRoom = Entity.extend({
3677
- workspaceId: z150.string(),
3678
- liveblocksId: z150.string()
3689
+ workspaceId: z151.string(),
3690
+ liveblocksId: z151.string()
3679
3691
  });
3680
3692
 
3681
3693
  // src/npm/npm-package.ts
3682
- import { z as z151 } from "zod";
3683
- var AnyRecord = z151.record(z151.any());
3694
+ import { z as z152 } from "zod";
3695
+ var AnyRecord = z152.record(z152.any());
3684
3696
  var NpmPackageVersionDist = AnyRecord.and(
3685
- z151.object({
3686
- tarball: z151.string()
3697
+ z152.object({
3698
+ tarball: z152.string()
3687
3699
  })
3688
3700
  );
3689
3701
  var NpmPackageVersion = AnyRecord.and(
3690
- z151.object({
3702
+ z152.object({
3691
3703
  dist: NpmPackageVersionDist
3692
3704
  })
3693
3705
  );
3694
3706
  var NpmPackage = AnyRecord.and(
3695
- z151.object({
3696
- _id: z151.string(),
3697
- name: z151.string(),
3707
+ z152.object({
3708
+ _id: z152.string(),
3709
+ name: z152.string(),
3698
3710
  // e.g. "latest": "1.2.3"
3699
- "dist-tags": z151.record(z151.string(), z151.string()),
3711
+ "dist-tags": z152.record(z152.string(), z152.string()),
3700
3712
  // "1.2.3": {...}
3701
- versions: z151.record(NpmPackageVersion)
3713
+ versions: z152.record(NpmPackageVersion)
3702
3714
  })
3703
3715
  );
3704
3716
 
3705
3717
  // src/npm/npm-proxy-token-payload.ts
3706
- import { z as z152 } from "zod";
3707
- var NpmProxyTokenPayload = z152.object({
3708
- npmProxyRegistryConfigId: z152.string()
3718
+ import { z as z153 } from "zod";
3719
+ var NpmProxyTokenPayload = z153.object({
3720
+ npmProxyRegistryConfigId: z153.string()
3709
3721
  });
3710
3722
 
3711
3723
  // src/tokens/personal-access-token.ts
3712
- import { z as z153 } from "zod";
3713
- var PersonalAccessToken = z153.object({
3714
- id: z153.string(),
3715
- userId: z153.string(),
3716
- workspaceId: z153.string().optional(),
3724
+ import { z as z154 } from "zod";
3725
+ var PersonalAccessToken = z154.object({
3726
+ id: z154.string(),
3727
+ userId: z154.string(),
3728
+ workspaceId: z154.string().optional(),
3717
3729
  workspaceRole: WorkspaceRoleSchema.optional(),
3718
- name: z153.string(),
3719
- hidden: z153.boolean(),
3720
- token: z153.string(),
3721
- scope: z153.string().optional(),
3722
- createdAt: z153.coerce.date(),
3723
- expireAt: z153.coerce.date().optional()
3730
+ name: z154.string(),
3731
+ hidden: z154.boolean(),
3732
+ token: z154.string(),
3733
+ scope: z154.string().optional(),
3734
+ createdAt: z154.coerce.date(),
3735
+ expireAt: z154.coerce.date().optional()
3724
3736
  });
3725
3737
 
3726
3738
  // src/utils/errors.ts
@@ -3858,26 +3870,26 @@ async function sleep(ms) {
3858
3870
  }
3859
3871
 
3860
3872
  // src/utils/content-loader-instruction.ts
3861
- import { z as z154 } from "zod";
3862
- var ContentLoadInstruction = z154.object({
3863
- from: z154.string(),
3864
- to: z154.string(),
3865
- authorizationHeaderKvsId: z154.string().optional(),
3866
- timeout: z154.number().optional()
3867
- });
3868
- var ContentLoaderPayload = z154.object({
3869
- type: z154.literal("Single"),
3873
+ import { z as z155 } from "zod";
3874
+ var ContentLoadInstruction = z155.object({
3875
+ from: z155.string(),
3876
+ to: z155.string(),
3877
+ authorizationHeaderKvsId: z155.string().optional(),
3878
+ timeout: z155.number().optional()
3879
+ });
3880
+ var ContentLoaderPayload = z155.object({
3881
+ type: z155.literal("Single"),
3870
3882
  instruction: ContentLoadInstruction
3871
3883
  }).or(
3872
- z154.object({
3873
- type: z154.literal("Multiple"),
3874
- loadingChunkSize: z154.number().optional(),
3875
- instructions: z154.array(ContentLoadInstruction)
3884
+ z155.object({
3885
+ type: z155.literal("Multiple"),
3886
+ loadingChunkSize: z155.number().optional(),
3887
+ instructions: z155.array(ContentLoadInstruction)
3876
3888
  })
3877
3889
  ).or(
3878
- z154.object({
3879
- type: z154.literal("S3"),
3880
- location: z154.string()
3890
+ z155.object({
3891
+ type: z155.literal("S3"),
3892
+ location: z155.string()
3881
3893
  })
3882
3894
  );
3883
3895
 
@@ -5076,6 +5088,8 @@ export {
5076
5088
  UpdateMembershipRolesInput,
5077
5089
  UrlImageImportModel,
5078
5090
  User,
5091
+ UserAnalyticsCleanupSchedule,
5092
+ UserAnalyticsCleanupScheduleDbInput,
5079
5093
  UserIdentity,
5080
5094
  UserInvite,
5081
5095
  UserInvites,