@supernova-studio/model 0.48.37 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -284,7 +284,7 @@ var CustomDomain = z14.object({
284
284
  });
285
285
 
286
286
  // src/data-dumps/code-integration-dump.ts
287
- import { z as z125 } from "zod";
287
+ import { z as z127 } from "zod";
288
288
 
289
289
  // src/export/exporter.ts
290
290
  import { z as z17 } from "zod";
@@ -387,10 +387,10 @@ var Exporter = z17.object({
387
387
  });
388
388
 
389
389
  // src/export/pipeline.ts
390
- import { z as z124 } from "zod";
390
+ import { z as z126 } from "zod";
391
391
 
392
392
  // src/export/export-destinations.ts
393
- import { z as z123 } from "zod";
393
+ import { z as z125 } from "zod";
394
394
 
395
395
  // src/dsm/assets/asset-dynamo-record.ts
396
396
  import { z as z18 } from "zod";
@@ -3502,50 +3502,68 @@ var RenderedAssetFile = z95.object({
3502
3502
  settings: AssetRenderConfiguration
3503
3503
  });
3504
3504
 
3505
- // src/dsm/documentation/block-definitions/aux.ts
3505
+ // src/dsm/documentation/approvals/approval-state.ts
3506
3506
  import { z as z96 } from "zod";
3507
- var PageBlockDefinitionAppearance = z96.object({
3508
- isBordered: z96.boolean().optional(),
3509
- hasBackground: z96.boolean().optional(),
3510
- isEditorPresentationDifferent: z96.boolean().optional(),
3511
- showBlockHeaderInEditor: z96.boolean().optional()
3507
+ var DocumentationPageApprovalState = z96.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
3508
+
3509
+ // src/dsm/documentation/approvals/approval.ts
3510
+ import { z as z97 } from "zod";
3511
+ var DocumentationPageApproval = z97.object({
3512
+ id: z97.string(),
3513
+ approvalState: DocumentationPageApprovalState,
3514
+ persistentId: z97.string(),
3515
+ pageId: z97.string(),
3516
+ pagePersistentId: z97.string(),
3517
+ updatedByUserId: z97.string(),
3518
+ designSystemVersionId: z97.string(),
3519
+ updatedAt: z97.coerce.date(),
3520
+ createdAt: z97.coerce.date()
3521
+ });
3522
+
3523
+ // src/dsm/documentation/block-definitions/aux.ts
3524
+ import { z as z98 } from "zod";
3525
+ var PageBlockDefinitionAppearance = z98.object({
3526
+ isBordered: z98.boolean().optional(),
3527
+ hasBackground: z98.boolean().optional(),
3528
+ isEditorPresentationDifferent: z98.boolean().optional(),
3529
+ showBlockHeaderInEditor: z98.boolean().optional()
3512
3530
  });
3513
3531
 
3514
3532
  // src/dsm/documentation/block-definitions/definition.ts
3515
- import { z as z99 } from "zod";
3533
+ import { z as z101 } from "zod";
3516
3534
 
3517
3535
  // src/dsm/documentation/block-definitions/item.ts
3518
- import { z as z98 } from "zod";
3536
+ import { z as z100 } from "zod";
3519
3537
 
3520
3538
  // src/dsm/documentation/block-definitions/variant.ts
3521
- import { z as z97 } from "zod";
3522
- var PageBlockDefinitionLayoutType = z97.enum(["Column", "Row"]);
3523
- var PageBlockDefinitionLayoutGap = z97.enum(["Small", "Medium", "Large", "None"]);
3524
- var PageBlockDefinitionLayoutAlign = z97.enum(["Start", "Center", "End"]);
3525
- var PageBlockDefinitionLayoutResizing = z97.enum(["Fill", "Hug"]);
3526
- var PageBlockDefinitionLayoutBase = z97.object({
3539
+ import { z as z99 } from "zod";
3540
+ var PageBlockDefinitionLayoutType = z99.enum(["Column", "Row"]);
3541
+ var PageBlockDefinitionLayoutGap = z99.enum(["Small", "Medium", "Large", "None"]);
3542
+ var PageBlockDefinitionLayoutAlign = z99.enum(["Start", "Center", "End"]);
3543
+ var PageBlockDefinitionLayoutResizing = z99.enum(["Fill", "Hug"]);
3544
+ var PageBlockDefinitionLayoutBase = z99.object({
3527
3545
  type: PageBlockDefinitionLayoutType,
3528
3546
  gap: PageBlockDefinitionLayoutGap.optional(),
3529
3547
  columnAlign: PageBlockDefinitionLayoutAlign.optional(),
3530
3548
  columnResizing: PageBlockDefinitionLayoutResizing.optional()
3531
3549
  });
3532
3550
  var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
3533
- children: z97.lazy(() => z97.array(PageBlockDefinitionLayout.or(z97.string())))
3551
+ children: z99.lazy(() => z99.array(PageBlockDefinitionLayout.or(z99.string())))
3534
3552
  });
3535
- var PageBlockDefinitionVariant = z97.object({
3536
- id: z97.string(),
3537
- name: z97.string(),
3538
- image: z97.string().optional(),
3539
- description: z97.string().optional(),
3540
- documentationLink: z97.string().optional(),
3553
+ var PageBlockDefinitionVariant = z99.object({
3554
+ id: z99.string(),
3555
+ name: z99.string(),
3556
+ image: z99.string().optional(),
3557
+ description: z99.string().optional(),
3558
+ documentationLink: z99.string().optional(),
3541
3559
  layout: PageBlockDefinitionLayout,
3542
- maxColumns: z97.number().optional(),
3543
- defaultColumns: z97.number().optional(),
3560
+ maxColumns: z99.number().optional(),
3561
+ defaultColumns: z99.number().optional(),
3544
3562
  appearance: PageBlockDefinitionAppearance.optional()
3545
3563
  });
3546
3564
 
3547
3565
  // src/dsm/documentation/block-definitions/item.ts
3548
- var PageBlockDefinitionPropertyType = z98.enum([
3566
+ var PageBlockDefinitionPropertyType = z100.enum([
3549
3567
  "RichText",
3550
3568
  "MultiRichText",
3551
3569
  "Text",
@@ -3573,7 +3591,7 @@ var PageBlockDefinitionPropertyType = z98.enum([
3573
3591
  "Color",
3574
3592
  "FigmaComponent"
3575
3593
  ]);
3576
- var PageBlockDefinitionRichTextPropertyStyle = z98.enum([
3594
+ var PageBlockDefinitionRichTextPropertyStyle = z100.enum([
3577
3595
  "Title1",
3578
3596
  "Title2",
3579
3597
  "Title3",
@@ -3583,8 +3601,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z98.enum([
3583
3601
  "Callout",
3584
3602
  "Default"
3585
3603
  ]);
3586
- var PageBlockDefinitionMultiRichTextPropertyStyle = z98.enum(["OL", "UL", "Default"]);
3587
- var PageBlockDefinitionTextPropertyStyle = z98.enum([
3604
+ var PageBlockDefinitionMultiRichTextPropertyStyle = z100.enum(["OL", "UL", "Default"]);
3605
+ var PageBlockDefinitionTextPropertyStyle = z100.enum([
3588
3606
  "Title1",
3589
3607
  "Title2",
3590
3608
  "Title3",
@@ -3598,15 +3616,15 @@ var PageBlockDefinitionTextPropertyStyle = z98.enum([
3598
3616
  "SmallSemibold",
3599
3617
  "Custom"
3600
3618
  ]);
3601
- var PageBlockDefinitionTextPropertyColor = z98.enum(["Neutral", "NeutralFaded"]);
3602
- var PageBlockDefinitionBooleanPropertyStyle = z98.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
3603
- var PageBlockDefinitionSingleSelectPropertyStyle = z98.enum([
3619
+ var PageBlockDefinitionTextPropertyColor = z100.enum(["Neutral", "NeutralFaded"]);
3620
+ var PageBlockDefinitionBooleanPropertyStyle = z100.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
3621
+ var PageBlockDefinitionSingleSelectPropertyStyle = z100.enum([
3604
3622
  "SegmentedControl",
3605
3623
  "ToggleButton",
3606
3624
  "Select",
3607
3625
  "Checkbox"
3608
3626
  ]);
3609
- var PageBlockDefinitionSingleSelectPropertyColor = z98.enum([
3627
+ var PageBlockDefinitionSingleSelectPropertyColor = z100.enum([
3610
3628
  "Green",
3611
3629
  "Red",
3612
3630
  "Yellow",
@@ -3621,78 +3639,78 @@ var PageBlockDefinitionSingleSelectPropertyColor = z98.enum([
3621
3639
  "Cyan",
3622
3640
  "Fuchsia"
3623
3641
  ]);
3624
- var IconSet = z98.enum([
3642
+ var IconSet = z100.enum([
3625
3643
  "CheckCircle",
3626
3644
  "CrossCircle",
3627
3645
  "Alert"
3628
3646
  ]);
3629
- var PageBlockDefinitionMultiSelectPropertyStyle = z98.enum(["SegmentedControl", "Select", "Checkbox"]);
3630
- var PageBlockDefinitionImageAspectRatio = z98.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
3631
- var PageBlockDefinitionImageWidth = z98.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
3632
- var PageBlockDefinitionSelectChoice = z98.object({
3633
- value: z98.string(),
3634
- name: z98.string(),
3647
+ var PageBlockDefinitionMultiSelectPropertyStyle = z100.enum(["SegmentedControl", "Select", "Checkbox"]);
3648
+ var PageBlockDefinitionImageAspectRatio = z100.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
3649
+ var PageBlockDefinitionImageWidth = z100.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
3650
+ var PageBlockDefinitionSelectChoice = z100.object({
3651
+ value: z100.string(),
3652
+ name: z100.string(),
3635
3653
  icon: IconSet.optional(),
3636
- customIconUrl: z98.string().optional(),
3654
+ customIconUrl: z100.string().optional(),
3637
3655
  color: PageBlockDefinitionSingleSelectPropertyColor.optional()
3638
3656
  });
3639
- var PageBlockDefinitionUntypedPropertyOptions = z98.record(z98.any());
3640
- var PageBlockDefinitionRichTextOptions = z98.object({
3657
+ var PageBlockDefinitionUntypedPropertyOptions = z100.record(z100.any());
3658
+ var PageBlockDefinitionRichTextOptions = z100.object({
3641
3659
  richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
3642
3660
  });
3643
- var PageBlockDefinitionMutiRichTextOptions = z98.object({
3661
+ var PageBlockDefinitionMutiRichTextOptions = z100.object({
3644
3662
  multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
3645
3663
  });
3646
- var PageBlockDefinitionTextOptions = z98.object({
3647
- placeholder: z98.string().optional(),
3648
- defaultValue: z98.string().optional(),
3664
+ var PageBlockDefinitionTextOptions = z100.object({
3665
+ placeholder: z100.string().optional(),
3666
+ defaultValue: z100.string().optional(),
3649
3667
  textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
3650
3668
  color: PageBlockDefinitionTextPropertyColor.optional(),
3651
- allowLineBreaks: z98.boolean().optional()
3669
+ allowLineBreaks: z100.boolean().optional()
3652
3670
  });
3653
- var PageBlockDefinitionSelectOptions = z98.object({
3671
+ var PageBlockDefinitionSelectOptions = z100.object({
3654
3672
  singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
3655
- defaultChoice: z98.string(),
3656
- choices: z98.array(PageBlockDefinitionSelectChoice)
3673
+ defaultChoice: z100.string(),
3674
+ choices: z100.array(PageBlockDefinitionSelectChoice)
3657
3675
  });
3658
- var PageBlockDefinitionImageOptions = z98.object({
3676
+ var PageBlockDefinitionImageOptions = z100.object({
3659
3677
  width: PageBlockDefinitionImageWidth.optional(),
3660
3678
  aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
3661
- allowCaption: z98.boolean().optional(),
3662
- recommendation: z98.string().optional()
3679
+ allowCaption: z100.boolean().optional(),
3680
+ recommendation: z100.string().optional()
3663
3681
  });
3664
- var PageBlockDefinitionBooleanOptions = z98.object({
3665
- defaultvalue: z98.boolean().optional(),
3682
+ var PageBlockDefinitionBooleanOptions = z100.object({
3683
+ defaultvalue: z100.boolean().optional(),
3666
3684
  booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
3667
3685
  });
3668
- var PageBlockDefinitionNumberOptions = z98.object({
3669
- defaultValue: z98.number(),
3670
- min: z98.number().optional(),
3671
- max: z98.number().optional(),
3672
- step: z98.number().optional(),
3673
- placeholder: z98.string().optional()
3686
+ var PageBlockDefinitionNumberOptions = z100.object({
3687
+ defaultValue: z100.number(),
3688
+ min: z100.number().optional(),
3689
+ max: z100.number().optional(),
3690
+ step: z100.number().optional(),
3691
+ placeholder: z100.string().optional()
3674
3692
  });
3675
- var PageBlockDefinitionComponentOptions = z98.object({
3676
- renderLayoutAs: z98.enum(["List", "Table"]).optional(),
3677
- allowPropertySelection: z98.boolean().optional()
3693
+ var PageBlockDefinitionComponentOptions = z100.object({
3694
+ renderLayoutAs: z100.enum(["List", "Table"]).optional(),
3695
+ allowPropertySelection: z100.boolean().optional()
3678
3696
  });
3679
- var PageBlockDefinitionProperty = z98.object({
3680
- id: z98.string(),
3681
- name: z98.string(),
3697
+ var PageBlockDefinitionProperty = z100.object({
3698
+ id: z100.string(),
3699
+ name: z100.string(),
3682
3700
  type: PageBlockDefinitionPropertyType,
3683
- description: z98.string().optional(),
3701
+ description: z100.string().optional(),
3684
3702
  options: PageBlockDefinitionUntypedPropertyOptions.optional(),
3685
- variantOptions: z98.record(PageBlockDefinitionUntypedPropertyOptions).optional()
3703
+ variantOptions: z100.record(PageBlockDefinitionUntypedPropertyOptions).optional()
3686
3704
  });
3687
- var PageBlockDefinitionItem = z98.object({
3688
- properties: z98.array(PageBlockDefinitionProperty),
3705
+ var PageBlockDefinitionItem = z100.object({
3706
+ properties: z100.array(PageBlockDefinitionProperty),
3689
3707
  appearance: PageBlockDefinitionAppearance.optional(),
3690
- variants: z98.array(PageBlockDefinitionVariant),
3691
- defaultVariantKey: z98.string()
3708
+ variants: z100.array(PageBlockDefinitionVariant),
3709
+ defaultVariantKey: z100.string()
3692
3710
  });
3693
3711
 
3694
3712
  // src/dsm/documentation/block-definitions/definition.ts
3695
- var PageBlockCategory = z99.enum([
3713
+ var PageBlockCategory = z101.enum([
3696
3714
  "Text",
3697
3715
  "Layout",
3698
3716
  "Media",
@@ -3706,174 +3724,174 @@ var PageBlockCategory = z99.enum([
3706
3724
  "Data",
3707
3725
  "Other"
3708
3726
  ]);
3709
- var PageBlockBehaviorDataType = z99.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
3710
- var PageBlockBehaviorSelectionType = z99.enum(["Entity", "Group", "EntityAndGroup"]);
3711
- var PageBlockDefinitionBehavior = z99.object({
3727
+ var PageBlockBehaviorDataType = z101.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
3728
+ var PageBlockBehaviorSelectionType = z101.enum(["Entity", "Group", "EntityAndGroup"]);
3729
+ var PageBlockDefinitionBehavior = z101.object({
3712
3730
  dataType: PageBlockBehaviorDataType,
3713
- items: z99.object({
3714
- numberOfItems: z99.number(),
3715
- allowLinks: z99.boolean(),
3716
- newItemLabel: z99.string().optional()
3731
+ items: z101.object({
3732
+ numberOfItems: z101.number(),
3733
+ allowLinks: z101.boolean(),
3734
+ newItemLabel: z101.string().optional()
3717
3735
  }).optional(),
3718
- entities: z99.object({
3736
+ entities: z101.object({
3719
3737
  selectionType: PageBlockBehaviorSelectionType,
3720
- maxSelected: z99.number()
3738
+ maxSelected: z101.number()
3721
3739
  }).optional()
3722
3740
  });
3723
- var PageBlockDefinitionOnboarding = z99.object({
3724
- helpText: z99.string(),
3725
- documentationLink: z99.string().optional()
3741
+ var PageBlockDefinitionOnboarding = z101.object({
3742
+ helpText: z101.string(),
3743
+ documentationLink: z101.string().optional()
3726
3744
  });
3727
- var PageBlockDefinition = z99.object({
3728
- id: z99.string(),
3729
- name: z99.string(),
3730
- description: z99.string(),
3745
+ var PageBlockDefinition = z101.object({
3746
+ id: z101.string(),
3747
+ name: z101.string(),
3748
+ description: z101.string(),
3731
3749
  category: PageBlockCategory,
3732
- icon: z99.string().optional(),
3733
- documentationLink: z99.string().optional(),
3734
- searchKeywords: z99.array(z99.string()).optional(),
3750
+ icon: z101.string().optional(),
3751
+ documentationLink: z101.string().optional(),
3752
+ searchKeywords: z101.array(z101.string()).optional(),
3735
3753
  item: PageBlockDefinitionItem,
3736
3754
  behavior: PageBlockDefinitionBehavior,
3737
- editorOptions: z99.object({
3755
+ editorOptions: z101.object({
3738
3756
  onboarding: PageBlockDefinitionOnboarding.optional(),
3739
- newItemLabel: z99.string().optional()
3757
+ newItemLabel: z101.string().optional()
3740
3758
  }),
3741
3759
  appearance: PageBlockDefinitionAppearance.optional()
3742
3760
  });
3743
3761
 
3744
3762
  // src/dsm/documentation/group.ts
3745
- import { z as z100 } from "zod";
3746
- var DocumentationPageGroup = z100.object({
3747
- type: z100.literal("ElementGroup"),
3748
- childType: z100.literal("DocumentationPage"),
3749
- id: z100.string(),
3750
- persistentId: z100.string(),
3751
- shortPersistentId: z100.string(),
3752
- designSystemVersionId: z100.string(),
3753
- parentPersistentId: z100.string().nullish(),
3754
- sortOrder: z100.number(),
3755
- title: z100.string(),
3756
- slug: z100.string(),
3757
- userSlug: z100.string().nullish(),
3758
- createdAt: z100.coerce.date(),
3759
- updatedAt: z100.coerce.date()
3763
+ import { z as z102 } from "zod";
3764
+ var DocumentationPageGroup = z102.object({
3765
+ type: z102.literal("ElementGroup"),
3766
+ childType: z102.literal("DocumentationPage"),
3767
+ id: z102.string(),
3768
+ persistentId: z102.string(),
3769
+ shortPersistentId: z102.string(),
3770
+ designSystemVersionId: z102.string(),
3771
+ parentPersistentId: z102.string().nullish(),
3772
+ sortOrder: z102.number(),
3773
+ title: z102.string(),
3774
+ slug: z102.string(),
3775
+ userSlug: z102.string().nullish(),
3776
+ createdAt: z102.coerce.date(),
3777
+ updatedAt: z102.coerce.date()
3760
3778
  });
3761
3779
 
3762
3780
  // src/dsm/documentation/link-preview.ts
3763
- import { z as z101 } from "zod";
3764
- var DocumentationLinkPreview = z101.object({
3765
- title: z101.string().optional(),
3766
- description: z101.string().optional(),
3781
+ import { z as z103 } from "zod";
3782
+ var DocumentationLinkPreview = z103.object({
3783
+ title: z103.string().optional(),
3784
+ description: z103.string().optional(),
3767
3785
  thumbnail: PageBlockImageReference.optional()
3768
3786
  });
3769
3787
 
3770
3788
  // src/dsm/documentation/page-anchor.ts
3771
- import { z as z102 } from "zod";
3772
- var DocumentationPageAnchor = z102.object({
3773
- blockId: z102.string(),
3774
- level: z102.number(),
3775
- text: z102.string()
3776
- });
3777
-
3778
- // src/dsm/documentation/page-content-backup.ts
3779
- import { z as z103 } from "zod";
3780
- var DocumentationPageContentBackup = z103.object({
3781
- id: z103.string(),
3782
- designSystemVersionId: z103.string(),
3783
- createdAt: z103.coerce.date(),
3784
- updatedAt: z103.coerce.date(),
3785
- documentationPageId: z103.string(),
3786
- documentationPageName: z103.string(),
3787
- storagePath: z103.string()
3788
- });
3789
-
3790
- // src/dsm/documentation/page-content.ts
3791
3789
  import { z as z104 } from "zod";
3792
- var DocumentationPageContentItem = z104.discriminatedUnion("type", [
3793
- PageBlockEditorModelV2,
3794
- PageSectionEditorModelV2
3795
- ]);
3796
- var DocumentationPageContentData = z104.object({
3797
- items: z104.array(DocumentationPageContentItem)
3798
- });
3799
- var DocumentationPageContent = z104.object({
3800
- id: z104.string(),
3801
- designSystemVersionId: z104.string(),
3802
- createdAt: z104.coerce.date(),
3803
- updatedAt: z104.coerce.date(),
3804
- documentationPageId: z104.string(),
3805
- data: DocumentationPageContentData
3790
+ var DocumentationPageAnchor = z104.object({
3791
+ blockId: z104.string(),
3792
+ level: z104.number(),
3793
+ text: z104.string()
3806
3794
  });
3807
3795
 
3808
- // src/dsm/documentation/page.ts
3796
+ // src/dsm/documentation/page-content-backup.ts
3809
3797
  import { z as z105 } from "zod";
3810
- var DocumentationPage = z105.object({
3811
- type: z105.literal("DocumentationPage"),
3798
+ var DocumentationPageContentBackup = z105.object({
3812
3799
  id: z105.string(),
3813
- persistentId: z105.string(),
3814
- shortPersistentId: z105.string(),
3815
3800
  designSystemVersionId: z105.string(),
3816
- parentPersistentId: z105.string().nullish(),
3817
- sortOrder: z105.number(),
3818
- title: z105.string(),
3819
- slug: z105.string(),
3820
- userSlug: z105.string().nullish(),
3821
3801
  createdAt: z105.coerce.date(),
3822
- updatedAt: z105.coerce.date()
3802
+ updatedAt: z105.coerce.date(),
3803
+ documentationPageId: z105.string(),
3804
+ documentationPageName: z105.string(),
3805
+ storagePath: z105.string()
3823
3806
  });
3824
3807
 
3825
- // src/dsm/documentation/settings.ts
3808
+ // src/dsm/documentation/page-content.ts
3826
3809
  import { z as z106 } from "zod";
3827
- var DocumentationSettings = z106.object({
3828
- // Basic
3810
+ var DocumentationPageContentItem = z106.discriminatedUnion("type", [
3811
+ PageBlockEditorModelV2,
3812
+ PageSectionEditorModelV2
3813
+ ]);
3814
+ var DocumentationPageContentData = z106.object({
3815
+ items: z106.array(DocumentationPageContentItem)
3816
+ });
3817
+ var DocumentationPageContent = z106.object({
3818
+ id: z106.string(),
3829
3819
  designSystemVersionId: z106.string(),
3830
3820
  createdAt: z106.coerce.date(),
3831
3821
  updatedAt: z106.coerce.date(),
3832
- // Configuration
3833
- isTabbedLayoutEnabled: z106.boolean(),
3834
- storybookEmbedErrorMessage: z106.string().optional(),
3835
- renderCodePackageJson: z106.string().optional(),
3836
- selectedBrandPersistentId: z106.string().optional(),
3837
- serveDefaultVersionOnly: z106.boolean(),
3838
- isPublic: z106.boolean()
3822
+ documentationPageId: z106.string(),
3823
+ data: DocumentationPageContentData
3839
3824
  });
3840
3825
 
3841
- // src/dsm/documentation/thread.ts
3826
+ // src/dsm/documentation/page.ts
3842
3827
  import { z as z107 } from "zod";
3843
- var DocumentationComment = z107.object({
3844
- id: z107.string(),
3845
- authorId: z107.string(),
3846
- threadId: z107.string(),
3847
- roomId: z107.string(),
3848
- createdAt: z107.coerce.date(),
3849
- editedAt: z107.coerce.date().optional(),
3850
- deletedAt: z107.coerce.date().optional(),
3851
- body: z107.string()
3852
- });
3853
- var DocumentationCommentThread = z107.object({
3828
+ var DocumentationPage = z107.object({
3829
+ type: z107.literal("DocumentationPage"),
3854
3830
  id: z107.string(),
3855
- roomId: z107.string(),
3856
- pagePersistentId: z107.string(),
3857
- brandId: z107.string(),
3831
+ persistentId: z107.string(),
3832
+ shortPersistentId: z107.string(),
3858
3833
  designSystemVersionId: z107.string(),
3859
- designSystemId: z107.string(),
3860
- blockId: z107.string().optional(),
3861
- resolved: z107.boolean(),
3834
+ parentPersistentId: z107.string().nullish(),
3835
+ sortOrder: z107.number(),
3836
+ title: z107.string(),
3837
+ slug: z107.string(),
3838
+ userSlug: z107.string().nullish(),
3862
3839
  createdAt: z107.coerce.date(),
3863
3840
  updatedAt: z107.coerce.date()
3864
3841
  });
3865
3842
 
3866
- // src/dsm/element-snapshots/base.ts
3843
+ // src/dsm/documentation/settings.ts
3867
3844
  import { z as z108 } from "zod";
3868
- var DesignElementSnapshotReason = z108.enum(["Publish", "Deletion"]);
3869
- var DesignElementSnapshotBase = z108.object({
3870
- id: z108.string(),
3871
- persistentId: z108.string(),
3845
+ var DocumentationSettings = z108.object({
3846
+ // Basic
3872
3847
  designSystemVersionId: z108.string(),
3873
3848
  createdAt: z108.coerce.date(),
3874
3849
  updatedAt: z108.coerce.date(),
3850
+ // Configuration
3851
+ isTabbedLayoutEnabled: z108.boolean(),
3852
+ storybookEmbedErrorMessage: z108.string().optional(),
3853
+ renderCodePackageJson: z108.string().optional(),
3854
+ selectedBrandPersistentId: z108.string().optional(),
3855
+ serveDefaultVersionOnly: z108.boolean(),
3856
+ isPublic: z108.boolean()
3857
+ });
3858
+
3859
+ // src/dsm/documentation/thread.ts
3860
+ import { z as z109 } from "zod";
3861
+ var DocumentationComment = z109.object({
3862
+ id: z109.string(),
3863
+ authorId: z109.string(),
3864
+ threadId: z109.string(),
3865
+ roomId: z109.string(),
3866
+ createdAt: z109.coerce.date(),
3867
+ editedAt: z109.coerce.date().optional(),
3868
+ deletedAt: z109.coerce.date().optional(),
3869
+ body: z109.string()
3870
+ });
3871
+ var DocumentationCommentThread = z109.object({
3872
+ id: z109.string(),
3873
+ roomId: z109.string(),
3874
+ pagePersistentId: z109.string(),
3875
+ brandId: z109.string(),
3876
+ designSystemVersionId: z109.string(),
3877
+ designSystemId: z109.string(),
3878
+ blockId: z109.string().optional(),
3879
+ resolved: z109.boolean(),
3880
+ createdAt: z109.coerce.date(),
3881
+ updatedAt: z109.coerce.date()
3882
+ });
3883
+
3884
+ // src/dsm/element-snapshots/base.ts
3885
+ import { z as z110 } from "zod";
3886
+ var DesignElementSnapshotReason = z110.enum(["Publish", "Deletion"]);
3887
+ var DesignElementSnapshotBase = z110.object({
3888
+ id: z110.string(),
3889
+ persistentId: z110.string(),
3890
+ designSystemVersionId: z110.string(),
3891
+ createdAt: z110.coerce.date(),
3892
+ updatedAt: z110.coerce.date(),
3875
3893
  reason: DesignElementSnapshotReason,
3876
- createdByUserId: z108.string()
3894
+ createdByUserId: z110.string()
3877
3895
  });
3878
3896
  function pickLatestSnapshots(snapshots, getSnapshotElementId) {
3879
3897
  const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
@@ -3884,11 +3902,11 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
3884
3902
  }
3885
3903
 
3886
3904
  // src/dsm/element-snapshots/documentation-page-snapshot.ts
3887
- import { z as z109 } from "zod";
3905
+ import { z as z111 } from "zod";
3888
3906
  var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
3889
3907
  page: DocumentationPageV2,
3890
- pageContentHash: z109.string(),
3891
- pageContentStorageKey: z109.string()
3908
+ pageContentHash: z111.string(),
3909
+ pageContentStorageKey: z111.string()
3892
3910
  });
3893
3911
  function pickLatestPageSnapshots(snapshots) {
3894
3912
  return pickLatestSnapshots(snapshots, (s) => s.page.id);
@@ -3903,182 +3921,183 @@ function pickLatestGroupSnapshots(snapshots) {
3903
3921
  }
3904
3922
 
3905
3923
  // src/dsm/views/column.ts
3906
- import { z as z110 } from "zod";
3907
- var ElementViewBaseColumnType = z110.enum(["Name", "Description", "Value", "UpdatedAt"]);
3908
- var ElementViewColumnType = z110.union([
3909
- z110.literal("BaseProperty"),
3910
- z110.literal("PropertyDefinition"),
3911
- z110.literal("Theme")
3924
+ import { z as z112 } from "zod";
3925
+ var ElementViewBaseColumnType = z112.enum(["Name", "Description", "Value", "UpdatedAt"]);
3926
+ var ElementViewColumnType = z112.union([
3927
+ z112.literal("BaseProperty"),
3928
+ z112.literal("PropertyDefinition"),
3929
+ z112.literal("Theme")
3912
3930
  ]);
3913
- var ElementViewColumnSharedAttributes = z110.object({
3914
- id: z110.string(),
3915
- persistentId: z110.string(),
3916
- elementDataViewId: z110.string(),
3917
- sortPosition: z110.number(),
3918
- width: z110.number()
3931
+ var ElementViewColumnSharedAttributes = z112.object({
3932
+ id: z112.string(),
3933
+ persistentId: z112.string(),
3934
+ elementDataViewId: z112.string(),
3935
+ sortPosition: z112.number(),
3936
+ width: z112.number()
3919
3937
  });
3920
3938
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
3921
- type: z110.literal("BaseProperty"),
3939
+ type: z112.literal("BaseProperty"),
3922
3940
  basePropertyType: ElementViewBaseColumnType
3923
3941
  });
3924
3942
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
3925
- type: z110.literal("PropertyDefinition"),
3926
- propertyDefinitionId: z110.string()
3943
+ type: z112.literal("PropertyDefinition"),
3944
+ propertyDefinitionId: z112.string()
3927
3945
  });
3928
3946
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
3929
- type: z110.literal("Theme"),
3930
- themeId: z110.string()
3947
+ type: z112.literal("Theme"),
3948
+ themeId: z112.string()
3931
3949
  });
3932
- var ElementViewColumn = z110.discriminatedUnion("type", [
3950
+ var ElementViewColumn = z112.discriminatedUnion("type", [
3933
3951
  ElementViewBasePropertyColumn,
3934
3952
  ElementViewPropertyDefinitionColumn,
3935
3953
  ElementViewThemeColumn
3936
3954
  ]);
3937
3955
 
3938
3956
  // src/dsm/views/view.ts
3939
- import { z as z111 } from "zod";
3940
- var ElementView = z111.object({
3941
- id: z111.string(),
3942
- persistentId: z111.string(),
3943
- designSystemVersionId: z111.string(),
3944
- name: z111.string(),
3945
- description: z111.string(),
3957
+ import { z as z113 } from "zod";
3958
+ var ElementView = z113.object({
3959
+ id: z113.string(),
3960
+ persistentId: z113.string(),
3961
+ designSystemVersionId: z113.string(),
3962
+ name: z113.string(),
3963
+ description: z113.string(),
3946
3964
  targetElementType: ElementPropertyTargetType,
3947
- isDefault: z111.boolean()
3965
+ isDefault: z113.boolean()
3948
3966
  });
3949
3967
 
3950
3968
  // src/dsm/brand.ts
3951
- import { z as z112 } from "zod";
3952
- var Brand = z112.object({
3953
- id: z112.string(),
3954
- designSystemVersionId: z112.string(),
3955
- persistentId: z112.string(),
3956
- name: z112.string(),
3957
- description: z112.string()
3969
+ import { z as z114 } from "zod";
3970
+ var Brand = z114.object({
3971
+ id: z114.string(),
3972
+ designSystemVersionId: z114.string(),
3973
+ persistentId: z114.string(),
3974
+ name: z114.string(),
3975
+ description: z114.string()
3958
3976
  });
3959
3977
 
3960
3978
  // src/dsm/design-system-update.ts
3961
- import { z as z117 } from "zod";
3979
+ import { z as z119 } from "zod";
3962
3980
 
3963
3981
  // src/dsm/design-system.ts
3964
- import { z as z116 } from "zod";
3982
+ import { z as z118 } from "zod";
3965
3983
 
3966
3984
  // src/workspace/workspace.ts
3967
3985
  import IPCIDR from "ip-cidr";
3968
- import { z as z115 } from "zod";
3986
+ import { z as z117 } from "zod";
3969
3987
 
3970
3988
  // src/workspace/npm-registry-settings.ts
3971
- import { z as z113 } from "zod";
3972
- var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
3973
- var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
3974
- var NpmRegistryBasicAuthConfig = z113.object({
3975
- authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
3976
- username: z113.string(),
3977
- password: z113.string()
3978
- });
3979
- var NpmRegistryBearerAuthConfig = z113.object({
3980
- authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
3981
- accessToken: z113.string()
3982
- });
3983
- var NpmRegistryNoAuthConfig = z113.object({
3984
- authType: z113.literal(NpmRegistryAuthType.Enum.None)
3985
- });
3986
- var NpmRegistrCustomAuthConfig = z113.object({
3987
- authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
3988
- authHeaderName: z113.string(),
3989
- authHeaderValue: z113.string()
3990
- });
3991
- var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
3989
+ import { z as z115 } from "zod";
3990
+ var NpmRegistryAuthType = z115.enum(["Basic", "Bearer", "None", "Custom"]);
3991
+ var NpmRegistryType = z115.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
3992
+ var NpmRegistryBasicAuthConfig = z115.object({
3993
+ authType: z115.literal(NpmRegistryAuthType.Enum.Basic),
3994
+ username: z115.string(),
3995
+ password: z115.string()
3996
+ });
3997
+ var NpmRegistryBearerAuthConfig = z115.object({
3998
+ authType: z115.literal(NpmRegistryAuthType.Enum.Bearer),
3999
+ accessToken: z115.string()
4000
+ });
4001
+ var NpmRegistryNoAuthConfig = z115.object({
4002
+ authType: z115.literal(NpmRegistryAuthType.Enum.None)
4003
+ });
4004
+ var NpmRegistrCustomAuthConfig = z115.object({
4005
+ authType: z115.literal(NpmRegistryAuthType.Enum.Custom),
4006
+ authHeaderName: z115.string(),
4007
+ authHeaderValue: z115.string()
4008
+ });
4009
+ var NpmRegistryAuthConfig = z115.discriminatedUnion("authType", [
3992
4010
  NpmRegistryBasicAuthConfig,
3993
4011
  NpmRegistryBearerAuthConfig,
3994
4012
  NpmRegistryNoAuthConfig,
3995
4013
  NpmRegistrCustomAuthConfig
3996
4014
  ]);
3997
- var NpmRegistryConfigBase = z113.object({
4015
+ var NpmRegistryConfigBase = z115.object({
3998
4016
  registryType: NpmRegistryType,
3999
- enabledScopes: z113.array(z113.string()),
4000
- customRegistryUrl: z113.string().optional(),
4001
- bypassProxy: z113.boolean().default(false),
4002
- npmProxyRegistryConfigId: z113.string().optional(),
4003
- npmProxyVersion: z113.number().optional()
4017
+ enabledScopes: z115.array(z115.string()),
4018
+ customRegistryUrl: z115.string().optional(),
4019
+ bypassProxy: z115.boolean().default(false),
4020
+ npmProxyRegistryConfigId: z115.string().optional(),
4021
+ npmProxyVersion: z115.number().optional()
4004
4022
  });
4005
4023
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4006
4024
 
4007
4025
  // src/workspace/sso-provider.ts
4008
- import { z as z114 } from "zod";
4009
- var SsoProvider = z114.object({
4010
- providerId: z114.string(),
4011
- defaultAutoInviteValue: z114.boolean(),
4012
- autoInviteDomains: z114.record(z114.string(), z114.boolean()),
4013
- skipDocsSupernovaLogin: z114.boolean(),
4014
- areInvitesDisabled: z114.boolean(),
4015
- isTestMode: z114.boolean(),
4016
- emailDomains: z114.array(z114.string()),
4017
- metadataXml: z114.string().nullish()
4026
+ import { z as z116 } from "zod";
4027
+ var SsoProvider = z116.object({
4028
+ providerId: z116.string(),
4029
+ defaultAutoInviteValue: z116.boolean(),
4030
+ autoInviteDomains: z116.record(z116.string(), z116.boolean()),
4031
+ skipDocsSupernovaLogin: z116.boolean(),
4032
+ areInvitesDisabled: z116.boolean(),
4033
+ isTestMode: z116.boolean(),
4034
+ emailDomains: z116.array(z116.string()),
4035
+ metadataXml: z116.string().nullish()
4018
4036
  });
4019
4037
 
4020
4038
  // src/workspace/workspace.ts
4021
4039
  var isValidCIDR = (value) => {
4022
4040
  return IPCIDR.isValidAddress(value);
4023
4041
  };
4024
- var WorkspaceIpWhitelistEntry = z115.object({
4025
- isEnabled: z115.boolean(),
4026
- name: z115.string(),
4027
- range: z115.string().refine(isValidCIDR, {
4042
+ var WorkspaceIpWhitelistEntry = z117.object({
4043
+ isEnabled: z117.boolean(),
4044
+ name: z117.string(),
4045
+ range: z117.string().refine(isValidCIDR, {
4028
4046
  message: "Invalid IP CIDR"
4029
4047
  })
4030
4048
  });
4031
- var WorkspaceIpSettings = z115.object({
4032
- isEnabledForCloud: z115.boolean(),
4033
- isEnabledForDocs: z115.boolean(),
4034
- entries: z115.array(WorkspaceIpWhitelistEntry)
4049
+ var WorkspaceIpSettings = z117.object({
4050
+ isEnabledForCloud: z117.boolean(),
4051
+ isEnabledForDocs: z117.boolean(),
4052
+ entries: z117.array(WorkspaceIpWhitelistEntry)
4035
4053
  });
4036
- var WorkspaceProfile = z115.object({
4037
- name: z115.string(),
4038
- handle: z115.string(),
4039
- color: z115.string(),
4040
- avatar: nullishToOptional(z115.string()),
4054
+ var WorkspaceProfile = z117.object({
4055
+ name: z117.string(),
4056
+ handle: z117.string(),
4057
+ color: z117.string(),
4058
+ avatar: nullishToOptional(z117.string()),
4041
4059
  billingDetails: nullishToOptional(BillingDetails)
4042
4060
  });
4043
4061
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4044
4062
  avatar: true
4045
4063
  });
4046
- var Workspace = z115.object({
4047
- id: z115.string(),
4064
+ var Workspace = z117.object({
4065
+ id: z117.string(),
4048
4066
  profile: WorkspaceProfile,
4049
4067
  subscription: Subscription,
4050
4068
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4051
4069
  sso: nullishToOptional(SsoProvider),
4052
4070
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4053
4071
  });
4054
- var WorkspaceWithDesignSystems = z115.object({
4072
+ var WorkspaceWithDesignSystems = z117.object({
4055
4073
  workspace: Workspace,
4056
- designSystems: z115.array(DesignSystem)
4074
+ designSystems: z117.array(DesignSystem)
4057
4075
  });
4058
4076
 
4059
4077
  // src/dsm/design-system.ts
4060
- var DesignSystemSwitcher = z116.object({
4061
- isEnabled: z116.boolean(),
4062
- designSystemIds: z116.array(z116.string())
4063
- });
4064
- var DesignSystem = z116.object({
4065
- id: z116.string(),
4066
- workspaceId: z116.string(),
4067
- name: z116.string(),
4068
- description: z116.string(),
4069
- docExporterId: nullishToOptional(z116.string()),
4070
- docSlug: z116.string(),
4071
- docUserSlug: nullishToOptional(z116.string()),
4072
- docSlugDeprecated: z116.string(),
4073
- isPublic: z116.boolean(),
4074
- isMultibrand: z116.boolean(),
4075
- docViewUrl: nullishToOptional(z116.string()),
4076
- basePrefixes: z116.array(z116.string()),
4078
+ var DesignSystemSwitcher = z118.object({
4079
+ isEnabled: z118.boolean(),
4080
+ designSystemIds: z118.array(z118.string())
4081
+ });
4082
+ var DesignSystem = z118.object({
4083
+ id: z118.string(),
4084
+ workspaceId: z118.string(),
4085
+ name: z118.string(),
4086
+ description: z118.string(),
4087
+ docExporterId: nullishToOptional(z118.string()),
4088
+ docSlug: z118.string(),
4089
+ docUserSlug: nullishToOptional(z118.string()),
4090
+ docSlugDeprecated: z118.string(),
4091
+ isPublic: z118.boolean(),
4092
+ isMultibrand: z118.boolean(),
4093
+ docViewUrl: nullishToOptional(z118.string()),
4094
+ basePrefixes: z118.array(z118.string()),
4077
4095
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
4078
- createdAt: z116.coerce.date(),
4079
- updatedAt: z116.coerce.date()
4096
+ isApprovalFeatureEnabled: z118.boolean(),
4097
+ createdAt: z118.coerce.date(),
4098
+ updatedAt: z118.coerce.date()
4080
4099
  });
4081
- var DesignSystemWithWorkspace = z116.object({
4100
+ var DesignSystemWithWorkspace = z118.object({
4082
4101
  designSystem: DesignSystem,
4083
4102
  workspace: Workspace
4084
4103
  });
@@ -4087,9 +4106,9 @@ var DesignSystemWithWorkspace = z116.object({
4087
4106
  var DS_NAME_MIN_LENGTH = 2;
4088
4107
  var DS_NAME_MAX_LENGTH = 64;
4089
4108
  var DS_DESC_MAX_LENGTH = 2048;
4090
- var DesignSystemUpdateInputMetadata = z117.object({
4091
- name: z117.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
4092
- description: z117.string().max(DS_DESC_MAX_LENGTH).trim().optional()
4109
+ var DesignSystemUpdateInputMetadata = z119.object({
4110
+ name: z119.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
4111
+ description: z119.string().max(DS_DESC_MAX_LENGTH).trim().optional()
4093
4112
  });
4094
4113
  var DesignSystemUpdateInput = DesignSystem.partial().omit({
4095
4114
  id: true,
@@ -4103,185 +4122,185 @@ var DesignSystemUpdateInput = DesignSystem.partial().omit({
4103
4122
  });
4104
4123
 
4105
4124
  // src/dsm/desing-system-create.ts
4106
- import { z as z118 } from "zod";
4125
+ import { z as z120 } from "zod";
4107
4126
  var DS_NAME_MIN_LENGTH2 = 2;
4108
4127
  var DS_NAME_MAX_LENGTH2 = 64;
4109
4128
  var DS_DESC_MAX_LENGTH2 = 64;
4110
- var DesignSystemCreateInputMetadata = z118.object({
4111
- name: z118.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
4112
- description: z118.string().max(DS_DESC_MAX_LENGTH2).trim()
4129
+ var DesignSystemCreateInputMetadata = z120.object({
4130
+ name: z120.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
4131
+ description: z120.string().max(DS_DESC_MAX_LENGTH2).trim()
4113
4132
  });
4114
- var DesignSystemCreateInput = z118.object({
4133
+ var DesignSystemCreateInput = z120.object({
4115
4134
  meta: DesignSystemCreateInputMetadata,
4116
- workspaceId: z118.string(),
4117
- isPublic: z118.boolean().optional(),
4118
- basePrefixes: z118.array(z118.string()).optional(),
4119
- docUserSlug: z118.string().nullish().optional(),
4120
- source: z118.array(z118.string()).optional()
4135
+ workspaceId: z120.string(),
4136
+ isPublic: z120.boolean().optional(),
4137
+ basePrefixes: z120.array(z120.string()).optional(),
4138
+ docUserSlug: z120.string().nullish().optional(),
4139
+ source: z120.array(z120.string()).optional()
4121
4140
  });
4122
4141
 
4123
4142
  // src/dsm/exporter-property-values-collection.ts
4124
- import { z as z119 } from "zod";
4125
- var ExporterPropertyImageValue = z119.object({
4143
+ import { z as z121 } from "zod";
4144
+ var ExporterPropertyImageValue = z121.object({
4126
4145
  asset: PageBlockAsset.optional(),
4127
- assetId: z119.string().optional(),
4128
- assetUrl: z119.string().optional()
4129
- });
4130
- var ExporterPropertyValue = z119.object({
4131
- key: z119.string(),
4132
- value: z119.union([
4133
- z119.number(),
4134
- z119.string(),
4135
- z119.boolean(),
4146
+ assetId: z121.string().optional(),
4147
+ assetUrl: z121.string().optional()
4148
+ });
4149
+ var ExporterPropertyValue = z121.object({
4150
+ key: z121.string(),
4151
+ value: z121.union([
4152
+ z121.number(),
4153
+ z121.string(),
4154
+ z121.boolean(),
4136
4155
  ExporterPropertyImageValue,
4137
4156
  ColorTokenData,
4138
4157
  TypographyTokenData
4139
4158
  ])
4140
4159
  });
4141
- var ExporterPropertyValuesCollection = z119.object({
4142
- id: z119.string(),
4143
- designSystemId: z119.string(),
4144
- exporterId: z119.string(),
4145
- values: z119.array(ExporterPropertyValue)
4160
+ var ExporterPropertyValuesCollection = z121.object({
4161
+ id: z121.string(),
4162
+ designSystemId: z121.string(),
4163
+ exporterId: z121.string(),
4164
+ values: z121.array(ExporterPropertyValue)
4146
4165
  });
4147
4166
 
4148
4167
  // src/dsm/published-doc-page.ts
4149
- import { z as z120 } from "zod";
4168
+ import { z as z122 } from "zod";
4150
4169
  var SHORT_PERSISTENT_ID_LENGTH = 8;
4151
4170
  function tryParseShortPersistentId(url = "/") {
4152
4171
  const lastUrlPart = url.split("/").pop() || "";
4153
4172
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
4154
4173
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
4155
4174
  }
4156
- var PublishedDocPage = z120.object({
4157
- id: z120.string(),
4158
- publishedDocId: z120.string(),
4159
- pageShortPersistentId: z120.string(),
4160
- pathV1: z120.string(),
4161
- pathV2: z120.string(),
4162
- storagePath: z120.string(),
4163
- locale: z120.string().optional(),
4164
- isPrivate: z120.boolean(),
4165
- isHidden: z120.boolean(),
4166
- createdAt: z120.coerce.date(),
4167
- updatedAt: z120.coerce.date()
4175
+ var PublishedDocPage = z122.object({
4176
+ id: z122.string(),
4177
+ publishedDocId: z122.string(),
4178
+ pageShortPersistentId: z122.string(),
4179
+ pathV1: z122.string(),
4180
+ pathV2: z122.string(),
4181
+ storagePath: z122.string(),
4182
+ locale: z122.string().optional(),
4183
+ isPrivate: z122.boolean(),
4184
+ isHidden: z122.boolean(),
4185
+ createdAt: z122.coerce.date(),
4186
+ updatedAt: z122.coerce.date()
4168
4187
  });
4169
4188
 
4170
4189
  // src/dsm/published-doc.ts
4171
- import { z as z121 } from "zod";
4190
+ import { z as z123 } from "zod";
4172
4191
  var publishedDocEnvironments = ["Live", "Preview"];
4173
- var PublishedDocEnvironment = z121.enum(publishedDocEnvironments);
4174
- var PublishedDocsChecksums = z121.record(z121.string());
4175
- var PublishedDocRoutingVersion = z121.enum(["1", "2"]);
4176
- var PublishedDoc = z121.object({
4177
- id: z121.string(),
4178
- designSystemVersionId: z121.string(),
4179
- createdAt: z121.coerce.date(),
4180
- updatedAt: z121.coerce.date(),
4181
- lastPublishedAt: z121.coerce.date(),
4182
- isDefault: z121.boolean(),
4183
- isPublic: z121.boolean(),
4192
+ var PublishedDocEnvironment = z123.enum(publishedDocEnvironments);
4193
+ var PublishedDocsChecksums = z123.record(z123.string());
4194
+ var PublishedDocRoutingVersion = z123.enum(["1", "2"]);
4195
+ var PublishedDoc = z123.object({
4196
+ id: z123.string(),
4197
+ designSystemVersionId: z123.string(),
4198
+ createdAt: z123.coerce.date(),
4199
+ updatedAt: z123.coerce.date(),
4200
+ lastPublishedAt: z123.coerce.date(),
4201
+ isDefault: z123.boolean(),
4202
+ isPublic: z123.boolean(),
4184
4203
  environment: PublishedDocEnvironment,
4185
4204
  checksums: PublishedDocsChecksums,
4186
- storagePath: z121.string(),
4187
- wasMigrated: z121.boolean(),
4205
+ storagePath: z123.string(),
4206
+ wasMigrated: z123.boolean(),
4188
4207
  routingVersion: PublishedDocRoutingVersion,
4189
- usesLocalizations: z121.boolean(),
4190
- wasPublishedWithLocalizations: z121.boolean(),
4191
- tokenCount: z121.number(),
4192
- assetCount: z121.number()
4208
+ usesLocalizations: z123.boolean(),
4209
+ wasPublishedWithLocalizations: z123.boolean(),
4210
+ tokenCount: z123.number(),
4211
+ assetCount: z123.number()
4193
4212
  });
4194
4213
 
4195
4214
  // src/dsm/version.ts
4196
- import { z as z122 } from "zod";
4197
- var DesignSystemVersion = z122.object({
4198
- id: z122.string(),
4199
- version: z122.string(),
4200
- createdAt: z122.date(),
4201
- designSystemId: z122.string(),
4202
- name: z122.string(),
4203
- comment: z122.string(),
4204
- isReadonly: z122.boolean(),
4205
- changeLog: z122.string(),
4206
- parentId: z122.string().optional(),
4207
- isDraftsFeatureAdopted: z122.boolean()
4208
- });
4209
- var VersionCreationJobStatus = z122.enum(["Success", "InProgress", "Error"]);
4210
- var VersionCreationJob = z122.object({
4211
- id: z122.string(),
4212
- version: z122.string(),
4213
- designSystemId: z122.string(),
4214
- designSystemVersionId: nullishToOptional(z122.string()),
4215
+ import { z as z124 } from "zod";
4216
+ var DesignSystemVersion = z124.object({
4217
+ id: z124.string(),
4218
+ version: z124.string(),
4219
+ createdAt: z124.date(),
4220
+ designSystemId: z124.string(),
4221
+ name: z124.string(),
4222
+ comment: z124.string(),
4223
+ isReadonly: z124.boolean(),
4224
+ changeLog: z124.string(),
4225
+ parentId: z124.string().optional(),
4226
+ isDraftsFeatureAdopted: z124.boolean()
4227
+ });
4228
+ var VersionCreationJobStatus = z124.enum(["Success", "InProgress", "Error"]);
4229
+ var VersionCreationJob = z124.object({
4230
+ id: z124.string(),
4231
+ version: z124.string(),
4232
+ designSystemId: z124.string(),
4233
+ designSystemVersionId: nullishToOptional(z124.string()),
4215
4234
  status: VersionCreationJobStatus,
4216
- errorMessage: nullishToOptional(z122.string())
4235
+ errorMessage: nullishToOptional(z124.string())
4217
4236
  });
4218
4237
 
4219
4238
  // src/export/export-destinations.ts
4220
4239
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
4221
4240
  var BITBUCKET_MAX_LENGTH = 64;
4222
- var ExportJobDocumentationChanges = z123.object({
4223
- pagePersistentIds: z123.string().array(),
4224
- groupPersistentIds: z123.string().array()
4241
+ var ExportJobDocumentationChanges = z125.object({
4242
+ pagePersistentIds: z125.string().array(),
4243
+ groupPersistentIds: z125.string().array()
4225
4244
  });
4226
- var ExporterDestinationDocs = z123.object({
4245
+ var ExporterDestinationDocs = z125.object({
4227
4246
  environment: PublishedDocEnvironment,
4228
4247
  changes: nullishToOptional(ExportJobDocumentationChanges)
4229
4248
  });
4230
- var ExporterDestinationS3 = z123.object({});
4231
- var ExporterDestinationGithub = z123.object({
4232
- credentialId: z123.string().optional(),
4249
+ var ExporterDestinationS3 = z125.object({});
4250
+ var ExporterDestinationGithub = z125.object({
4251
+ credentialId: z125.string().optional(),
4233
4252
  // Repository
4234
- url: z123.string(),
4253
+ url: z125.string(),
4235
4254
  // Location
4236
- branch: z123.string(),
4237
- relativePath: nullishToOptional(z123.string()),
4255
+ branch: z125.string(),
4256
+ relativePath: nullishToOptional(z125.string()),
4238
4257
  // Legacy deprecated fields. Use `credentialId` instead
4239
- connectionId: nullishToOptional(z123.string()),
4240
- userId: nullishToOptional(z123.number())
4258
+ connectionId: nullishToOptional(z125.string()),
4259
+ userId: nullishToOptional(z125.number())
4241
4260
  });
4242
- var ExporterDestinationAzure = z123.object({
4243
- credentialId: z123.string().optional(),
4261
+ var ExporterDestinationAzure = z125.object({
4262
+ credentialId: z125.string().optional(),
4244
4263
  // Repository
4245
- organizationId: z123.string(),
4246
- projectId: z123.string(),
4247
- repositoryId: z123.string(),
4264
+ organizationId: z125.string(),
4265
+ projectId: z125.string(),
4266
+ repositoryId: z125.string(),
4248
4267
  // Location
4249
- branch: z123.string(),
4250
- relativePath: nullishToOptional(z123.string()),
4268
+ branch: z125.string(),
4269
+ relativePath: nullishToOptional(z125.string()),
4251
4270
  // Maybe not needed
4252
- url: nullishToOptional(z123.string()),
4271
+ url: nullishToOptional(z125.string()),
4253
4272
  // Legacy deprecated fields. Use `credentialId` instead
4254
- connectionId: nullishToOptional(z123.string()),
4255
- userId: nullishToOptional(z123.number())
4273
+ connectionId: nullishToOptional(z125.string()),
4274
+ userId: nullishToOptional(z125.number())
4256
4275
  });
4257
- var ExporterDestinationGitlab = z123.object({
4258
- credentialId: z123.string().optional(),
4276
+ var ExporterDestinationGitlab = z125.object({
4277
+ credentialId: z125.string().optional(),
4259
4278
  // Repository
4260
- projectId: z123.string(),
4279
+ projectId: z125.string(),
4261
4280
  // Location
4262
- branch: z123.string(),
4263
- relativePath: nullishToOptional(z123.string()),
4281
+ branch: z125.string(),
4282
+ relativePath: nullishToOptional(z125.string()),
4264
4283
  // Maybe not needed
4265
- url: nullishToOptional(z123.string()),
4284
+ url: nullishToOptional(z125.string()),
4266
4285
  // Legacy deprecated fields. Use `credentialId` instead
4267
- connectionId: nullishToOptional(z123.string()),
4268
- userId: nullishToOptional(z123.number())
4286
+ connectionId: nullishToOptional(z125.string()),
4287
+ userId: nullishToOptional(z125.number())
4269
4288
  });
4270
- var ExporterDestinationBitbucket = z123.object({
4271
- credentialId: z123.string().optional(),
4289
+ var ExporterDestinationBitbucket = z125.object({
4290
+ credentialId: z125.string().optional(),
4272
4291
  // Repository
4273
- workspaceSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4274
- projectKey: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4275
- repoSlug: z123.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4292
+ workspaceSlug: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4293
+ projectKey: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4294
+ repoSlug: z125.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4276
4295
  // Location
4277
- branch: z123.string(),
4278
- relativePath: nullishToOptional(z123.string()),
4296
+ branch: z125.string(),
4297
+ relativePath: nullishToOptional(z125.string()),
4279
4298
  // Legacy deprecated fields. Use `credentialId` instead
4280
- connectionId: nullishToOptional(z123.string()),
4281
- userId: nullishToOptional(z123.number())
4299
+ connectionId: nullishToOptional(z125.string()),
4300
+ userId: nullishToOptional(z125.number())
4282
4301
  });
4283
- var ExportDestinationsMap = z123.object({
4284
- webhookUrl: z123.string().optional(),
4302
+ var ExportDestinationsMap = z125.object({
4303
+ webhookUrl: z125.string().optional(),
4285
4304
  destinationSnDocs: ExporterDestinationDocs.optional(),
4286
4305
  destinationS3: ExporterDestinationS3.optional(),
4287
4306
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -4291,143 +4310,147 @@ var ExportDestinationsMap = z123.object({
4291
4310
  });
4292
4311
 
4293
4312
  // src/export/pipeline.ts
4294
- var PipelineEventType = z124.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4295
- var PipelineDestinationGitType = z124.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4296
- var PipelineDestinationExtraType = z124.enum(["WebhookUrl", "S3", "Documentation"]);
4297
- var PipelineDestinationType = z124.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4298
- var Pipeline = z124.object({
4299
- id: z124.string(),
4300
- name: z124.string(),
4313
+ var PipelineEventType = z126.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4314
+ var PipelineDestinationGitType = z126.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4315
+ var PipelineDestinationExtraType = z126.enum(["WebhookUrl", "S3", "Documentation"]);
4316
+ var PipelineDestinationType = z126.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4317
+ var Pipeline = z126.object({
4318
+ id: z126.string(),
4319
+ name: z126.string(),
4301
4320
  eventType: PipelineEventType,
4302
- isEnabled: z124.boolean(),
4303
- workspaceId: z124.string(),
4304
- designSystemId: z124.string(),
4305
- exporterId: z124.string(),
4306
- brandPersistentId: z124.string().optional(),
4307
- themePersistentId: z124.string().optional(),
4321
+ isEnabled: z126.boolean(),
4322
+ workspaceId: z126.string(),
4323
+ designSystemId: z126.string(),
4324
+ exporterId: z126.string(),
4325
+ brandPersistentId: z126.string().optional(),
4326
+ themePersistentId: z126.string().optional(),
4308
4327
  // Destinations
4309
4328
  ...ExportDestinationsMap.shape
4310
4329
  });
4311
4330
 
4312
4331
  // src/data-dumps/code-integration-dump.ts
4313
- var ExportJobDump = z125.object({
4314
- id: z125.string(),
4315
- createdAt: z125.coerce.date(),
4316
- finishedAt: z125.coerce.date(),
4317
- exportArtefacts: z125.string()
4332
+ var ExportJobDump = z127.object({
4333
+ id: z127.string(),
4334
+ createdAt: z127.coerce.date(),
4335
+ finishedAt: z127.coerce.date(),
4336
+ exportArtefacts: z127.string()
4318
4337
  });
4319
- var CodeIntegrationDump = z125.object({
4338
+ var CodeIntegrationDump = z127.object({
4320
4339
  exporters: Exporter.array(),
4321
4340
  pipelines: Pipeline.array(),
4322
4341
  exportJobs: ExportJobDump.array()
4323
4342
  });
4324
4343
 
4325
4344
  // src/data-dumps/design-system-dump.ts
4326
- import { z as z132 } from "zod";
4345
+ import { z as z134 } from "zod";
4327
4346
 
4328
4347
  // src/data-dumps/design-system-version-dump.ts
4329
- import { z as z131 } from "zod";
4348
+ import { z as z133 } from "zod";
4330
4349
 
4331
4350
  // src/liveblocks/rooms/design-system-version-room.ts
4332
- import { z as z126 } from "zod";
4351
+ import { z as z128 } from "zod";
4333
4352
  var DesignSystemVersionRoom = Entity.extend({
4334
- designSystemVersionId: z126.string(),
4335
- liveblocksId: z126.string()
4336
- });
4337
- var DesignSystemVersionRoomInternalSettings = z126.object({
4338
- routingVersion: z126.string(),
4339
- isDraftFeatureAdopted: z126.boolean()
4340
- });
4341
- var DesignSystemVersionRoomInitialState = z126.object({
4342
- pages: z126.array(DocumentationPageV2),
4343
- groups: z126.array(ElementGroup),
4344
- pageSnapshots: z126.array(DocumentationPageSnapshot),
4345
- groupSnapshots: z126.array(ElementGroupSnapshot),
4353
+ designSystemVersionId: z128.string(),
4354
+ liveblocksId: z128.string()
4355
+ });
4356
+ var DesignSystemVersionRoomInternalSettings = z128.object({
4357
+ routingVersion: z128.string(),
4358
+ isDraftFeatureAdopted: z128.boolean(),
4359
+ isApprovalFeatureEnabled: z128.boolean()
4360
+ });
4361
+ var DesignSystemVersionRoomInitialState = z128.object({
4362
+ pages: z128.array(DocumentationPageV2),
4363
+ groups: z128.array(ElementGroup),
4364
+ pageSnapshots: z128.array(DocumentationPageSnapshot),
4365
+ groupSnapshots: z128.array(ElementGroupSnapshot),
4366
+ pageApprovals: z128.array(DocumentationPageApproval),
4346
4367
  internalSettings: DesignSystemVersionRoomInternalSettings
4347
4368
  });
4348
- var DesignSystemVersionRoomUpdate = z126.object({
4349
- pages: z126.array(DocumentationPageV2),
4350
- groups: z126.array(ElementGroup),
4351
- pageIdsToDelete: z126.array(z126.string()),
4352
- groupIdsToDelete: z126.array(z126.string()),
4353
- pageSnapshots: z126.array(DocumentationPageSnapshot),
4354
- groupSnapshots: z126.array(ElementGroupSnapshot),
4355
- pageSnapshotIdsToDelete: z126.array(z126.string()),
4356
- groupSnapshotIdsToDelete: z126.array(z126.string()),
4357
- pageHashesToUpdate: z126.record(z126.string(), z126.string())
4369
+ var DesignSystemVersionRoomUpdate = z128.object({
4370
+ pages: z128.array(DocumentationPageV2),
4371
+ groups: z128.array(ElementGroup),
4372
+ pageIdsToDelete: z128.array(z128.string()),
4373
+ groupIdsToDelete: z128.array(z128.string()),
4374
+ pageSnapshots: z128.array(DocumentationPageSnapshot),
4375
+ groupSnapshots: z128.array(ElementGroupSnapshot),
4376
+ pageSnapshotIdsToDelete: z128.array(z128.string()),
4377
+ groupSnapshotIdsToDelete: z128.array(z128.string()),
4378
+ pageHashesToUpdate: z128.record(z128.string(), z128.string()),
4379
+ pageApprovals: z128.array(DocumentationPageApproval),
4380
+ pageApprovalIdsToDelete: z128.array(z128.string())
4358
4381
  });
4359
4382
 
4360
4383
  // src/liveblocks/rooms/documentation-page-room.ts
4361
- import { z as z127 } from "zod";
4384
+ import { z as z129 } from "zod";
4362
4385
  var DocumentationPageRoom = Entity.extend({
4363
- designSystemVersionId: z127.string(),
4364
- documentationPageId: z127.string(),
4365
- liveblocksId: z127.string(),
4366
- isDirty: z127.boolean()
4386
+ designSystemVersionId: z129.string(),
4387
+ documentationPageId: z129.string(),
4388
+ liveblocksId: z129.string(),
4389
+ isDirty: z129.boolean()
4367
4390
  });
4368
- var DocumentationPageRoomState = z127.object({
4369
- pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4391
+ var DocumentationPageRoomState = z129.object({
4392
+ pageItems: z129.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4370
4393
  itemConfiguration: DocumentationItemConfigurationV2
4371
4394
  });
4372
- var DocumentationPageRoomRoomUpdate = z127.object({
4395
+ var DocumentationPageRoomRoomUpdate = z129.object({
4373
4396
  page: DocumentationPageV2,
4374
4397
  pageParent: ElementGroup
4375
4398
  });
4376
4399
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
4377
- pageItems: z127.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4378
- blockDefinitions: z127.array(PageBlockDefinition)
4400
+ pageItems: z129.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4401
+ blockDefinitions: z129.array(PageBlockDefinition)
4379
4402
  });
4380
- var RestoredDocumentationPage = z127.object({
4403
+ var RestoredDocumentationPage = z129.object({
4381
4404
  page: DocumentationPageV2,
4382
4405
  pageParent: ElementGroup,
4383
4406
  pageContent: DocumentationPageContentData,
4384
- contentHash: z127.string(),
4385
- snapshotId: z127.string(),
4386
- roomId: z127.string().optional()
4407
+ contentHash: z129.string(),
4408
+ snapshotId: z129.string(),
4409
+ roomId: z129.string().optional()
4387
4410
  });
4388
- var RestoredDocumentationGroup = z127.object({
4411
+ var RestoredDocumentationGroup = z129.object({
4389
4412
  group: ElementGroup,
4390
4413
  parent: ElementGroup
4391
4414
  });
4392
4415
 
4393
4416
  // src/liveblocks/rooms/room-type.ts
4394
- import { z as z128 } from "zod";
4417
+ import { z as z130 } from "zod";
4395
4418
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
4396
4419
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
4397
4420
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
4398
4421
  RoomTypeEnum2["Workspace"] = "workspace";
4399
4422
  return RoomTypeEnum2;
4400
4423
  })(RoomTypeEnum || {});
4401
- var RoomTypeSchema = z128.nativeEnum(RoomTypeEnum);
4424
+ var RoomTypeSchema = z130.nativeEnum(RoomTypeEnum);
4402
4425
  var RoomType = RoomTypeSchema.enum;
4403
4426
 
4404
4427
  // src/liveblocks/rooms/workspace-room.ts
4405
- import { z as z129 } from "zod";
4428
+ import { z as z131 } from "zod";
4406
4429
  var WorkspaceRoom = Entity.extend({
4407
- workspaceId: z129.string(),
4408
- liveblocksId: z129.string()
4430
+ workspaceId: z131.string(),
4431
+ liveblocksId: z131.string()
4409
4432
  });
4410
4433
 
4411
4434
  // src/data-dumps/published-docs-dump.ts
4412
- import { z as z130 } from "zod";
4413
- var PublishedDocsDump = z130.object({
4435
+ import { z as z132 } from "zod";
4436
+ var PublishedDocsDump = z132.object({
4414
4437
  documentation: PublishedDoc,
4415
4438
  pages: PublishedDocPage.array()
4416
4439
  });
4417
4440
 
4418
4441
  // src/data-dumps/design-system-version-dump.ts
4419
- var DocumentationThreadDump = z131.object({
4442
+ var DocumentationThreadDump = z133.object({
4420
4443
  thread: DocumentationCommentThread,
4421
4444
  comments: DocumentationComment.array()
4422
4445
  });
4423
- var DocumentationPageRoomDump = z131.object({
4446
+ var DocumentationPageRoomDump = z133.object({
4424
4447
  room: DocumentationPageRoom,
4425
4448
  threads: DocumentationThreadDump.array()
4426
4449
  });
4427
- var DesignSystemVersionMultiplayerDump = z131.object({
4450
+ var DesignSystemVersionMultiplayerDump = z133.object({
4428
4451
  documentationPages: DocumentationPageRoomDump.array()
4429
4452
  });
4430
- var DesignSystemVersionDump = z131.object({
4453
+ var DesignSystemVersionDump = z133.object({
4431
4454
  version: DesignSystemVersion,
4432
4455
  brands: Brand.array(),
4433
4456
  elements: DesignElement.array(),
@@ -4442,7 +4465,7 @@ var DesignSystemVersionDump = z131.object({
4442
4465
  });
4443
4466
 
4444
4467
  // src/data-dumps/design-system-dump.ts
4445
- var DesignSystemDump = z132.object({
4468
+ var DesignSystemDump = z134.object({
4446
4469
  designSystem: DesignSystem,
4447
4470
  dataSources: DataSource.array(),
4448
4471
  versions: DesignSystemVersionDump.array(),
@@ -4451,27 +4474,27 @@ var DesignSystemDump = z132.object({
4451
4474
  });
4452
4475
 
4453
4476
  // src/data-dumps/user-data-dump.ts
4454
- import { z as z144 } from "zod";
4477
+ import { z as z146 } from "zod";
4455
4478
 
4456
4479
  // src/users/linked-integrations.ts
4457
- import { z as z133 } from "zod";
4458
- var IntegrationAuthType = z133.union([z133.literal("OAuth2"), z133.literal("PAT")]);
4459
- var ExternalServiceType = z133.union([
4460
- z133.literal("figma"),
4461
- z133.literal("github"),
4462
- z133.literal("azure"),
4463
- z133.literal("gitlab"),
4464
- z133.literal("bitbucket")
4480
+ import { z as z135 } from "zod";
4481
+ var IntegrationAuthType = z135.union([z135.literal("OAuth2"), z135.literal("PAT")]);
4482
+ var ExternalServiceType = z135.union([
4483
+ z135.literal("figma"),
4484
+ z135.literal("github"),
4485
+ z135.literal("azure"),
4486
+ z135.literal("gitlab"),
4487
+ z135.literal("bitbucket")
4465
4488
  ]);
4466
- var IntegrationUserInfo = z133.object({
4467
- id: z133.string(),
4468
- handle: z133.string().optional(),
4469
- avatarUrl: z133.string().optional(),
4470
- email: z133.string().optional(),
4489
+ var IntegrationUserInfo = z135.object({
4490
+ id: z135.string(),
4491
+ handle: z135.string().optional(),
4492
+ avatarUrl: z135.string().optional(),
4493
+ email: z135.string().optional(),
4471
4494
  authType: IntegrationAuthType.optional(),
4472
- customUrl: z133.string().optional()
4495
+ customUrl: z135.string().optional()
4473
4496
  });
4474
- var UserLinkedIntegrations = z133.object({
4497
+ var UserLinkedIntegrations = z135.object({
4475
4498
  figma: IntegrationUserInfo.optional(),
4476
4499
  github: IntegrationUserInfo.array().optional(),
4477
4500
  azure: IntegrationUserInfo.array().optional(),
@@ -4480,46 +4503,46 @@ var UserLinkedIntegrations = z133.object({
4480
4503
  });
4481
4504
 
4482
4505
  // src/users/user-analytics-cleanup-schedule.ts
4483
- import { z as z134 } from "zod";
4484
- var UserAnalyticsCleanupSchedule = z134.object({
4485
- userId: z134.string(),
4486
- createdAt: z134.coerce.date(),
4487
- deleteAt: z134.coerce.date()
4506
+ import { z as z136 } from "zod";
4507
+ var UserAnalyticsCleanupSchedule = z136.object({
4508
+ userId: z136.string(),
4509
+ createdAt: z136.coerce.date(),
4510
+ deleteAt: z136.coerce.date()
4488
4511
  });
4489
4512
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4490
4513
  createdAt: true
4491
4514
  });
4492
4515
 
4493
4516
  // src/users/user-create.ts
4494
- import { z as z135 } from "zod";
4495
- var CreateUserInput = z135.object({
4496
- email: z135.string(),
4497
- name: z135.string(),
4498
- username: z135.string()
4517
+ import { z as z137 } from "zod";
4518
+ var CreateUserInput = z137.object({
4519
+ email: z137.string(),
4520
+ name: z137.string(),
4521
+ username: z137.string()
4499
4522
  });
4500
4523
 
4501
4524
  // src/users/user-identity.ts
4502
- import { z as z136 } from "zod";
4503
- var UserIdentity = z136.object({
4504
- id: z136.string(),
4505
- userId: z136.string()
4525
+ import { z as z138 } from "zod";
4526
+ var UserIdentity = z138.object({
4527
+ id: z138.string(),
4528
+ userId: z138.string()
4506
4529
  });
4507
4530
 
4508
4531
  // src/users/user-minified.ts
4509
- import { z as z137 } from "zod";
4510
- var UserMinified = z137.object({
4511
- id: z137.string(),
4512
- name: z137.string(),
4513
- email: z137.string(),
4514
- avatar: z137.string().optional()
4532
+ import { z as z139 } from "zod";
4533
+ var UserMinified = z139.object({
4534
+ id: z139.string(),
4535
+ name: z139.string(),
4536
+ email: z139.string(),
4537
+ avatar: z139.string().optional()
4515
4538
  });
4516
4539
 
4517
4540
  // src/users/user-notification-settings.ts
4518
- import { z as z138 } from "zod";
4519
- var LiveblocksNotificationSettings = z138.object({
4520
- sendCommentNotificationEmails: z138.boolean()
4541
+ import { z as z140 } from "zod";
4542
+ var LiveblocksNotificationSettings = z140.object({
4543
+ sendCommentNotificationEmails: z140.boolean()
4521
4544
  });
4522
- var UserNotificationSettings = z138.object({
4545
+ var UserNotificationSettings = z140.object({
4523
4546
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4524
4547
  });
4525
4548
  var defaultNotificationSettings = {
@@ -4529,26 +4552,26 @@ var defaultNotificationSettings = {
4529
4552
  };
4530
4553
 
4531
4554
  // src/users/user-profile.ts
4532
- import { z as z139 } from "zod";
4533
- var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4534
- var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4535
- var UserOnboarding = z139.object({
4536
- companyName: z139.string().optional(),
4537
- numberOfPeopleInOrg: z139.string().optional(),
4538
- numberOfPeopleInDesignTeam: z139.string().optional(),
4555
+ import { z as z141 } from "zod";
4556
+ var UserOnboardingDepartment = z141.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4557
+ var UserOnboardingJobLevel = z141.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4558
+ var UserOnboarding = z141.object({
4559
+ companyName: z141.string().optional(),
4560
+ numberOfPeopleInOrg: z141.string().optional(),
4561
+ numberOfPeopleInDesignTeam: z141.string().optional(),
4539
4562
  department: UserOnboardingDepartment.optional(),
4540
- jobTitle: z139.string().optional(),
4541
- phase: z139.string().optional(),
4563
+ jobTitle: z141.string().optional(),
4564
+ phase: z141.string().optional(),
4542
4565
  jobLevel: UserOnboardingJobLevel.optional(),
4543
- designSystemName: z139.string().optional(),
4544
- defaultDestination: z139.string().optional(),
4545
- figmaUrl: z139.string().optional(),
4546
- isPageDraftOnboardingFinished: z139.boolean().optional()
4547
- });
4548
- var UserProfile = z139.object({
4549
- name: z139.string(),
4550
- avatar: z139.string().optional(),
4551
- nickname: z139.string().optional(),
4566
+ designSystemName: z141.string().optional(),
4567
+ defaultDestination: z141.string().optional(),
4568
+ figmaUrl: z141.string().optional(),
4569
+ isPageDraftOnboardingFinished: z141.boolean().optional()
4570
+ });
4571
+ var UserProfile = z141.object({
4572
+ name: z141.string(),
4573
+ avatar: z141.string().optional(),
4574
+ nickname: z141.string().optional(),
4552
4575
  onboarding: UserOnboarding.optional()
4553
4576
  });
4554
4577
  var UserProfileUpdate = UserProfile.partial().omit({
@@ -4556,68 +4579,68 @@ var UserProfileUpdate = UserProfile.partial().omit({
4556
4579
  });
4557
4580
 
4558
4581
  // src/users/user-test.ts
4559
- import { z as z140 } from "zod";
4560
- var UserTest = z140.object({
4561
- id: z140.string(),
4562
- email: z140.string()
4582
+ import { z as z142 } from "zod";
4583
+ var UserTest = z142.object({
4584
+ id: z142.string(),
4585
+ email: z142.string()
4563
4586
  });
4564
4587
 
4565
4588
  // src/users/user.ts
4566
- import { z as z141 } from "zod";
4567
- var User = z141.object({
4568
- id: z141.string(),
4569
- email: z141.string(),
4570
- emailVerified: z141.boolean(),
4571
- createdAt: z141.coerce.date(),
4572
- trialExpiresAt: z141.coerce.date().optional(),
4589
+ import { z as z143 } from "zod";
4590
+ var User = z143.object({
4591
+ id: z143.string(),
4592
+ email: z143.string(),
4593
+ emailVerified: z143.boolean(),
4594
+ createdAt: z143.coerce.date(),
4595
+ trialExpiresAt: z143.coerce.date().optional(),
4573
4596
  profile: UserProfile,
4574
4597
  linkedIntegrations: UserLinkedIntegrations.optional(),
4575
- loggedOutAt: z141.coerce.date().optional(),
4576
- isProtected: z141.boolean()
4598
+ loggedOutAt: z143.coerce.date().optional(),
4599
+ isProtected: z143.boolean()
4577
4600
  });
4578
4601
 
4579
4602
  // src/data-dumps/workspace-dump.ts
4580
- import { z as z143 } from "zod";
4603
+ import { z as z145 } from "zod";
4581
4604
 
4582
4605
  // src/integrations/integration.ts
4583
- import { z as z142 } from "zod";
4584
- var IntegrationDesignSystem = z142.object({
4585
- designSystemId: z142.string(),
4586
- brandId: z142.string(),
4587
- title: z142.string().optional(),
4588
- userId: z142.string().optional(),
4589
- date: z142.coerce.date().optional()
4590
- });
4591
- var IntegrationCredentialsType = z142.enum(["OAuth2", "PAT", "GithubApp"]);
4592
- var IntegrationCredentialsState = z142.enum(["Active", "Inactive"]);
4593
- var IntegrationCredentialsProfile = z142.object({
4594
- id: nullishToOptional(z142.string()),
4595
- email: nullishToOptional(z142.string()),
4596
- handle: nullishToOptional(z142.string()),
4597
- type: nullishToOptional(z142.string()),
4598
- avatarUrl: nullishToOptional(z142.string()),
4599
- organization: nullishToOptional(z142.string()),
4600
- collection: nullishToOptional(z142.string())
4601
- });
4602
- var IntegrationCredentials = z142.object({
4603
- id: z142.string(),
4606
+ import { z as z144 } from "zod";
4607
+ var IntegrationDesignSystem = z144.object({
4608
+ designSystemId: z144.string(),
4609
+ brandId: z144.string(),
4610
+ title: z144.string().optional(),
4611
+ userId: z144.string().optional(),
4612
+ date: z144.coerce.date().optional()
4613
+ });
4614
+ var IntegrationCredentialsType = z144.enum(["OAuth2", "PAT", "GithubApp"]);
4615
+ var IntegrationCredentialsState = z144.enum(["Active", "Inactive"]);
4616
+ var IntegrationCredentialsProfile = z144.object({
4617
+ id: nullishToOptional(z144.string()),
4618
+ email: nullishToOptional(z144.string()),
4619
+ handle: nullishToOptional(z144.string()),
4620
+ type: nullishToOptional(z144.string()),
4621
+ avatarUrl: nullishToOptional(z144.string()),
4622
+ organization: nullishToOptional(z144.string()),
4623
+ collection: nullishToOptional(z144.string())
4624
+ });
4625
+ var IntegrationCredentials = z144.object({
4626
+ id: z144.string(),
4604
4627
  type: IntegrationCredentialsType,
4605
- integrationId: z142.string(),
4606
- accessToken: z142.string(),
4607
- userId: z142.string(),
4608
- createdAt: z142.coerce.date(),
4609
- refreshToken: z142.string().optional(),
4610
- tokenName: z142.string().optional(),
4611
- expiresAt: z142.coerce.date().optional(),
4612
- refreshedAt: z142.coerce.date().optional(),
4613
- username: z142.string().optional(),
4614
- appInstallationId: z142.string().optional(),
4628
+ integrationId: z144.string(),
4629
+ accessToken: z144.string(),
4630
+ userId: z144.string(),
4631
+ createdAt: z144.coerce.date(),
4632
+ refreshToken: z144.string().optional(),
4633
+ tokenName: z144.string().optional(),
4634
+ expiresAt: z144.coerce.date().optional(),
4635
+ refreshedAt: z144.coerce.date().optional(),
4636
+ username: z144.string().optional(),
4637
+ appInstallationId: z144.string().optional(),
4615
4638
  profile: IntegrationCredentialsProfile.optional(),
4616
- customUrl: z142.string().optional(),
4639
+ customUrl: z144.string().optional(),
4617
4640
  state: IntegrationCredentialsState,
4618
4641
  user: UserMinified.optional()
4619
4642
  });
4620
- var ExtendedIntegrationType = z142.enum([
4643
+ var ExtendedIntegrationType = z144.enum([
4621
4644
  "Figma",
4622
4645
  "Github",
4623
4646
  "Gitlab",
@@ -4628,26 +4651,26 @@ var ExtendedIntegrationType = z142.enum([
4628
4651
  ]);
4629
4652
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4630
4653
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4631
- var Integration = z142.object({
4632
- id: z142.string(),
4633
- workspaceId: z142.string(),
4654
+ var Integration = z144.object({
4655
+ id: z144.string(),
4656
+ workspaceId: z144.string(),
4634
4657
  type: IntegrationType,
4635
- createdAt: z142.coerce.date(),
4636
- integrationCredentials: z142.array(IntegrationCredentials).optional()
4637
- });
4638
- var IntegrationToken = z142.object({
4639
- access_token: z142.string(),
4640
- refresh_token: z142.string().optional(),
4641
- expires_in: z142.union([z142.number().optional(), z142.string().optional()]),
4642
- token_type: z142.string().optional(),
4643
- token_name: z142.string().optional(),
4644
- token_azure_organization_name: z142.string().optional(),
4658
+ createdAt: z144.coerce.date(),
4659
+ integrationCredentials: z144.array(IntegrationCredentials).optional()
4660
+ });
4661
+ var IntegrationToken = z144.object({
4662
+ access_token: z144.string(),
4663
+ refresh_token: z144.string().optional(),
4664
+ expires_in: z144.union([z144.number().optional(), z144.string().optional()]),
4665
+ token_type: z144.string().optional(),
4666
+ token_name: z144.string().optional(),
4667
+ token_azure_organization_name: z144.string().optional(),
4645
4668
  // Azure Cloud PAT only
4646
- token_azure_collection_name: z142.string().optional(),
4669
+ token_azure_collection_name: z144.string().optional(),
4647
4670
  // Azure Server PAT only
4648
- token_bitbucket_username: z142.string().optional(),
4671
+ token_bitbucket_username: z144.string().optional(),
4649
4672
  // Bitbucket only
4650
- custom_url: z142.string().optional().transform((value) => {
4673
+ custom_url: z144.string().optional().transform((value) => {
4651
4674
  if (!value?.trim())
4652
4675
  return void 0;
4653
4676
  return formatCustomUrl(value);
@@ -4685,7 +4708,7 @@ function formatCustomUrl(url) {
4685
4708
  }
4686
4709
 
4687
4710
  // src/data-dumps/workspace-dump.ts
4688
- var WorkspaceDump = z143.object({
4711
+ var WorkspaceDump = z145.object({
4689
4712
  workspace: Workspace,
4690
4713
  designSystems: DesignSystemDump.array(),
4691
4714
  codeIntegration: CodeIntegrationDump,
@@ -4693,93 +4716,93 @@ var WorkspaceDump = z143.object({
4693
4716
  });
4694
4717
 
4695
4718
  // src/data-dumps/user-data-dump.ts
4696
- var UserDump = z144.object({
4719
+ var UserDump = z146.object({
4697
4720
  user: User,
4698
4721
  workspaces: WorkspaceDump.array()
4699
4722
  });
4700
4723
 
4701
4724
  // src/docs-server/session.ts
4702
- import { z as z145 } from "zod";
4703
- var NpmProxyToken = z145.object({
4704
- access: z145.string(),
4705
- expiresAt: z145.number()
4725
+ import { z as z147 } from "zod";
4726
+ var NpmProxyToken = z147.object({
4727
+ access: z147.string(),
4728
+ expiresAt: z147.number()
4706
4729
  });
4707
- var SessionData = z145.object({
4708
- returnToUrl: z145.string().optional(),
4730
+ var SessionData = z147.object({
4731
+ returnToUrl: z147.string().optional(),
4709
4732
  npmProxyToken: NpmProxyToken.optional()
4710
4733
  });
4711
- var Session = z145.object({
4712
- id: z145.string(),
4713
- expiresAt: z145.coerce.date(),
4714
- userId: z145.string().nullable(),
4734
+ var Session = z147.object({
4735
+ id: z147.string(),
4736
+ expiresAt: z147.coerce.date(),
4737
+ userId: z147.string().nullable(),
4715
4738
  data: SessionData
4716
4739
  });
4717
- var AuthTokens = z145.object({
4718
- access: z145.string(),
4719
- refresh: z145.string()
4740
+ var AuthTokens = z147.object({
4741
+ access: z147.string(),
4742
+ refresh: z147.string()
4720
4743
  });
4721
- var UserSession = z145.object({
4744
+ var UserSession = z147.object({
4722
4745
  session: Session,
4723
4746
  user: User.nullable()
4724
4747
  });
4725
4748
 
4726
4749
  // src/events/base.ts
4727
- import { z as z148 } from "zod";
4750
+ import { z as z150 } from "zod";
4728
4751
 
4729
4752
  // src/events/data-source-imported.ts
4730
- import { z as z146 } from "zod";
4731
- var EventDataSourceImported = z146.object({
4732
- type: z146.literal("DataSourceImported"),
4733
- workspaceId: z146.string(),
4734
- designSystemId: z146.string()
4753
+ import { z as z148 } from "zod";
4754
+ var EventDataSourceImported = z148.object({
4755
+ type: z148.literal("DataSourceImported"),
4756
+ workspaceId: z148.string(),
4757
+ designSystemId: z148.string()
4735
4758
  });
4736
4759
 
4737
4760
  // src/events/version-released.ts
4738
- import { z as z147 } from "zod";
4739
- var EventVersionReleased = z147.object({
4740
- type: z147.literal("DesignSystemVersionReleased"),
4741
- workspaceId: z147.string(),
4742
- designSystemId: z147.string(),
4743
- versionId: z147.string()
4761
+ import { z as z149 } from "zod";
4762
+ var EventVersionReleased = z149.object({
4763
+ type: z149.literal("DesignSystemVersionReleased"),
4764
+ workspaceId: z149.string(),
4765
+ designSystemId: z149.string(),
4766
+ versionId: z149.string()
4744
4767
  });
4745
4768
 
4746
4769
  // src/events/base.ts
4747
- var Event = z148.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4770
+ var Event = z150.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
4748
4771
 
4749
4772
  // src/export/export-runner/export-context.ts
4750
- import { z as z149 } from "zod";
4751
- var ExportJobDocumentationContext = z149.object({
4752
- isSingleVersionDocs: z149.boolean(),
4753
- versionSlug: z149.string(),
4773
+ import { z as z151 } from "zod";
4774
+ var ExportJobDocumentationContext = z151.object({
4775
+ isSingleVersionDocs: z151.boolean(),
4776
+ versionSlug: z151.string(),
4754
4777
  environment: PublishedDocEnvironment
4755
4778
  });
4756
- var ExportJobContext = z149.object({
4757
- apiUrl: z149.string(),
4758
- accessToken: z149.string(),
4759
- designSystemId: z149.string(),
4760
- designSystemName: z149.string(),
4761
- exporterId: z149.string(),
4762
- versionId: z149.string(),
4763
- brandId: z149.string().optional(),
4764
- themeId: z149.string().optional(),
4765
- exporterName: z149.string(),
4766
- exporterPackageUrl: z149.string(),
4779
+ var ExportJobContext = z151.object({
4780
+ apiUrl: z151.string(),
4781
+ accessToken: z151.string(),
4782
+ designSystemId: z151.string(),
4783
+ designSystemName: z151.string(),
4784
+ exporterId: z151.string(),
4785
+ versionId: z151.string(),
4786
+ brandId: z151.string().optional(),
4787
+ themeId: z151.string().optional(),
4788
+ exporterName: z151.string(),
4789
+ exporterPackageUrl: z151.string(),
4767
4790
  exporterPropertyValues: ExporterPropertyValue.array(),
4768
4791
  documentation: ExportJobDocumentationContext.optional()
4769
4792
  });
4770
4793
 
4771
4794
  // src/export/export-runner/exporter-payload.ts
4772
- import { z as z150 } from "zod";
4773
- var ExporterFunctionPayload = z150.object({
4774
- exportJobId: z150.string(),
4775
- exportContextId: z150.string(),
4776
- designSystemId: z150.string(),
4777
- workspaceId: z150.string()
4795
+ import { z as z152 } from "zod";
4796
+ var ExporterFunctionPayload = z152.object({
4797
+ exportJobId: z152.string(),
4798
+ exportContextId: z152.string(),
4799
+ designSystemId: z152.string(),
4800
+ workspaceId: z152.string()
4778
4801
  });
4779
4802
 
4780
4803
  // src/export/export-jobs.ts
4781
- import { z as z151 } from "zod";
4782
- var ExportJobDestinationType = z151.enum([
4804
+ import { z as z153 } from "zod";
4805
+ var ExportJobDestinationType = z153.enum([
4783
4806
  "s3",
4784
4807
  "webhookUrl",
4785
4808
  "github",
@@ -4788,30 +4811,30 @@ var ExportJobDestinationType = z151.enum([
4788
4811
  "gitlab",
4789
4812
  "bitbucket"
4790
4813
  ]);
4791
- var ExportJobStatus = z151.enum(["InProgress", "Success", "Failed", "Timeout"]);
4792
- var ExportJobLogEntryType = z151.enum(["success", "info", "warning", "error", "user"]);
4793
- var ExportJobLogEntry = z151.object({
4794
- id: z151.string().optional(),
4795
- time: z151.coerce.date(),
4814
+ var ExportJobStatus = z153.enum(["InProgress", "Success", "Failed", "Timeout"]);
4815
+ var ExportJobLogEntryType = z153.enum(["success", "info", "warning", "error", "user"]);
4816
+ var ExportJobLogEntry = z153.object({
4817
+ id: z153.string().optional(),
4818
+ time: z153.coerce.date(),
4796
4819
  type: ExportJobLogEntryType,
4797
- message: z151.string()
4820
+ message: z153.string()
4798
4821
  });
4799
- var ExportJobPullRequestDestinationResult = z151.object({
4800
- pullRequestUrl: z151.string()
4822
+ var ExportJobPullRequestDestinationResult = z153.object({
4823
+ pullRequestUrl: z153.string()
4801
4824
  });
4802
- var ExportJobS3DestinationResult = z151.object({
4803
- bucket: z151.string(),
4804
- urlPrefix: z151.string().optional(),
4805
- path: z151.string(),
4806
- files: z151.array(z151.string()),
4807
- url: nullishToOptional(z151.string()),
4808
- urls: nullishToOptional(z151.string().array())
4825
+ var ExportJobS3DestinationResult = z153.object({
4826
+ bucket: z153.string(),
4827
+ urlPrefix: z153.string().optional(),
4828
+ path: z153.string(),
4829
+ files: z153.array(z153.string()),
4830
+ url: nullishToOptional(z153.string()),
4831
+ urls: nullishToOptional(z153.string().array())
4809
4832
  });
4810
- var ExportJobDocsDestinationResult = z151.object({
4811
- url: z151.string()
4833
+ var ExportJobDocsDestinationResult = z153.object({
4834
+ url: z153.string()
4812
4835
  });
4813
- var ExportJobResult = z151.object({
4814
- error: z151.string().optional(),
4836
+ var ExportJobResult = z153.object({
4837
+ error: z153.string().optional(),
4815
4838
  s3: nullishToOptional(ExportJobS3DestinationResult),
4816
4839
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
4817
4840
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -4820,21 +4843,21 @@ var ExportJobResult = z151.object({
4820
4843
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
4821
4844
  logs: nullishToOptional(ExportJobLogEntry.array())
4822
4845
  });
4823
- var ExportJob = z151.object({
4824
- id: z151.string(),
4825
- createdAt: z151.coerce.date(),
4826
- finishedAt: z151.coerce.date().optional(),
4827
- designSystemId: z151.string(),
4828
- designSystemVersionId: z151.string(),
4829
- workspaceId: z151.string(),
4830
- scheduleId: z151.string().nullish(),
4831
- exporterId: z151.string(),
4832
- brandId: z151.string().optional(),
4833
- themeId: z151.string().optional(),
4834
- estimatedExecutionTime: z151.number().optional(),
4846
+ var ExportJob = z153.object({
4847
+ id: z153.string(),
4848
+ createdAt: z153.coerce.date(),
4849
+ finishedAt: z153.coerce.date().optional(),
4850
+ designSystemId: z153.string(),
4851
+ designSystemVersionId: z153.string(),
4852
+ workspaceId: z153.string(),
4853
+ scheduleId: z153.string().nullish(),
4854
+ exporterId: z153.string(),
4855
+ brandId: z153.string().optional(),
4856
+ themeId: z153.string().optional(),
4857
+ estimatedExecutionTime: z153.number().optional(),
4835
4858
  status: ExportJobStatus,
4836
4859
  result: ExportJobResult.optional(),
4837
- createdByUserId: z151.string().optional(),
4860
+ createdByUserId: z153.string().optional(),
4838
4861
  // Destinations
4839
4862
  ...ExportDestinationsMap.shape
4840
4863
  });
@@ -4848,40 +4871,40 @@ var ExportJobFindByFilter = ExportJob.pick({
4848
4871
  themeId: true,
4849
4872
  brandId: true
4850
4873
  }).extend({
4851
- destinations: z151.array(ExportJobDestinationType),
4874
+ destinations: z153.array(ExportJobDestinationType),
4852
4875
  docsEnvironment: PublishedDocEnvironment
4853
4876
  }).partial();
4854
4877
 
4855
4878
  // src/export/exporter-workspace-membership-role.ts
4856
- import { z as z152 } from "zod";
4857
- var ExporterWorkspaceMembershipRole = z152.enum(["Owner", "OwnerArchived", "User"]);
4879
+ import { z as z154 } from "zod";
4880
+ var ExporterWorkspaceMembershipRole = z154.enum(["Owner", "OwnerArchived", "User"]);
4858
4881
 
4859
4882
  // src/export/exporter-workspace-membership.ts
4860
- import { z as z153 } from "zod";
4861
- var ExporterWorkspaceMembership = z153.object({
4862
- id: z153.string(),
4863
- workspaceId: z153.string(),
4864
- exporterId: z153.string(),
4883
+ import { z as z155 } from "zod";
4884
+ var ExporterWorkspaceMembership = z155.object({
4885
+ id: z155.string(),
4886
+ workspaceId: z155.string(),
4887
+ exporterId: z155.string(),
4865
4888
  role: ExporterWorkspaceMembershipRole
4866
4889
  });
4867
4890
 
4868
4891
  // src/feature-flags/feature-flags.ts
4869
- import { z as z154 } from "zod";
4870
- var FlaggedFeature = z154.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
4871
- var FeatureFlagMap = z154.record(FlaggedFeature, z154.boolean());
4872
- var FeatureFlag = z154.object({
4873
- id: z154.string(),
4892
+ import { z as z156 } from "zod";
4893
+ var FlaggedFeature = z156.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
4894
+ var FeatureFlagMap = z156.record(FlaggedFeature, z156.boolean());
4895
+ var FeatureFlag = z156.object({
4896
+ id: z156.string(),
4874
4897
  feature: FlaggedFeature,
4875
- createdAt: z154.coerce.date(),
4876
- enabled: z154.boolean(),
4877
- designSystemId: z154.string().optional()
4898
+ createdAt: z156.coerce.date(),
4899
+ enabled: z156.boolean(),
4900
+ designSystemId: z156.string().optional()
4878
4901
  });
4879
4902
 
4880
4903
  // src/integrations/external-oauth-request.ts
4881
- import { z as z156 } from "zod";
4904
+ import { z as z158 } from "zod";
4882
4905
 
4883
4906
  // src/integrations/oauth-providers.ts
4884
- import { z as z155 } from "zod";
4907
+ import { z as z157 } from "zod";
4885
4908
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4886
4909
  OAuthProviderNames2["Figma"] = "figma";
4887
4910
  OAuthProviderNames2["Azure"] = "azure";
@@ -4890,137 +4913,137 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
4890
4913
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
4891
4914
  return OAuthProviderNames2;
4892
4915
  })(OAuthProviderNames || {});
4893
- var OAuthProviderSchema = z155.nativeEnum(OAuthProviderNames);
4916
+ var OAuthProviderSchema = z157.nativeEnum(OAuthProviderNames);
4894
4917
  var OAuthProvider = OAuthProviderSchema.enum;
4895
4918
 
4896
4919
  // src/integrations/external-oauth-request.ts
4897
- var ExternalOAuthRequest = z156.object({
4898
- id: z156.string(),
4920
+ var ExternalOAuthRequest = z158.object({
4921
+ id: z158.string(),
4899
4922
  provider: OAuthProviderSchema,
4900
- userId: z156.string(),
4901
- state: z156.string(),
4902
- createdAt: z156.coerce.date()
4923
+ userId: z158.string(),
4924
+ state: z158.string(),
4925
+ createdAt: z158.coerce.date()
4903
4926
  });
4904
4927
 
4905
4928
  // src/integrations/git.ts
4906
- import { z as z157 } from "zod";
4907
- var GitObjectsQuery = z157.object({
4908
- organization: z157.string().optional(),
4929
+ import { z as z159 } from "zod";
4930
+ var GitObjectsQuery = z159.object({
4931
+ organization: z159.string().optional(),
4909
4932
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
4910
- project: z157.string().optional(),
4933
+ project: z159.string().optional(),
4911
4934
  // Only for Bitbucket and Azure
4912
- repository: z157.string().optional(),
4935
+ repository: z159.string().optional(),
4913
4936
  // For all providers. For Gitlab, it's called "project".
4914
- branch: z157.string().optional(),
4937
+ branch: z159.string().optional(),
4915
4938
  // For all providers.
4916
- user: z157.string().optional()
4939
+ user: z159.string().optional()
4917
4940
  // Gitlab user
4918
4941
  });
4919
- var GitOrganization = z157.object({
4920
- id: z157.string(),
4921
- name: z157.string(),
4922
- url: z157.string(),
4923
- slug: z157.string()
4924
- });
4925
- var GitProject = z157.object({
4926
- id: z157.string(),
4927
- name: z157.string(),
4928
- url: z157.string(),
4929
- slug: z157.string()
4930
- });
4931
- var GitRepository = z157.object({
4932
- id: z157.string(),
4933
- name: z157.string(),
4934
- url: z157.string(),
4935
- slug: z157.string(),
4942
+ var GitOrganization = z159.object({
4943
+ id: z159.string(),
4944
+ name: z159.string(),
4945
+ url: z159.string(),
4946
+ slug: z159.string()
4947
+ });
4948
+ var GitProject = z159.object({
4949
+ id: z159.string(),
4950
+ name: z159.string(),
4951
+ url: z159.string(),
4952
+ slug: z159.string()
4953
+ });
4954
+ var GitRepository = z159.object({
4955
+ id: z159.string(),
4956
+ name: z159.string(),
4957
+ url: z159.string(),
4958
+ slug: z159.string(),
4936
4959
  /**
4937
4960
  * Can be undefined when:
4938
4961
  * - there are no branches in the repository yet
4939
4962
  * - Git provider doesn't expose this information on a repository via their API
4940
4963
  */
4941
- defaultBranch: z157.string().optional()
4964
+ defaultBranch: z159.string().optional()
4942
4965
  });
4943
- var GitBranch = z157.object({
4944
- name: z157.string(),
4945
- lastCommitId: z157.string()
4966
+ var GitBranch = z159.object({
4967
+ name: z159.string(),
4968
+ lastCommitId: z159.string()
4946
4969
  });
4947
4970
 
4948
4971
  // src/integrations/oauth-token.ts
4949
- import { z as z158 } from "zod";
4950
- var IntegrationTokenSchemaOld = z158.object({
4951
- id: z158.string(),
4972
+ import { z as z160 } from "zod";
4973
+ var IntegrationTokenSchemaOld = z160.object({
4974
+ id: z160.string(),
4952
4975
  provider: OAuthProviderSchema,
4953
- scope: z158.string(),
4954
- userId: z158.string(),
4955
- accessToken: z158.string(),
4956
- refreshToken: z158.string(),
4957
- expiresAt: z158.coerce.date(),
4958
- externalUserId: z158.string().nullish()
4976
+ scope: z160.string(),
4977
+ userId: z160.string(),
4978
+ accessToken: z160.string(),
4979
+ refreshToken: z160.string(),
4980
+ expiresAt: z160.coerce.date(),
4981
+ externalUserId: z160.string().nullish()
4959
4982
  });
4960
4983
 
4961
4984
  // src/integrations/workspace-oauth-requests.ts
4962
- import { z as z159 } from "zod";
4963
- var WorkspaceOAuthRequestSchema = z159.object({
4964
- id: z159.string(),
4965
- workspaceId: z159.string(),
4985
+ import { z as z161 } from "zod";
4986
+ var WorkspaceOAuthRequestSchema = z161.object({
4987
+ id: z161.string(),
4988
+ workspaceId: z161.string(),
4966
4989
  provider: OAuthProviderSchema,
4967
- userId: z159.string(),
4968
- createdAt: z159.coerce.date()
4990
+ userId: z161.string(),
4991
+ createdAt: z161.coerce.date()
4969
4992
  });
4970
4993
 
4971
4994
  // src/npm/npm-package.ts
4972
- import { z as z160 } from "zod";
4973
- var AnyRecord = z160.record(z160.any());
4995
+ import { z as z162 } from "zod";
4996
+ var AnyRecord = z162.record(z162.any());
4974
4997
  var NpmPackageVersionDist = AnyRecord.and(
4975
- z160.object({
4976
- tarball: z160.string()
4998
+ z162.object({
4999
+ tarball: z162.string()
4977
5000
  })
4978
5001
  );
4979
5002
  var NpmPackageVersion = AnyRecord.and(
4980
- z160.object({
5003
+ z162.object({
4981
5004
  dist: NpmPackageVersionDist
4982
5005
  })
4983
5006
  );
4984
5007
  var NpmPackage = AnyRecord.and(
4985
- z160.object({
4986
- _id: z160.string(),
4987
- name: z160.string(),
5008
+ z162.object({
5009
+ _id: z162.string(),
5010
+ name: z162.string(),
4988
5011
  // e.g. "latest": "1.2.3"
4989
- "dist-tags": z160.record(z160.string(), z160.string()),
5012
+ "dist-tags": z162.record(z162.string(), z162.string()),
4990
5013
  // "1.2.3": {...}
4991
- versions: z160.record(NpmPackageVersion)
5014
+ versions: z162.record(NpmPackageVersion)
4992
5015
  })
4993
5016
  );
4994
5017
 
4995
5018
  // src/npm/npm-proxy-token-payload.ts
4996
- import { z as z161 } from "zod";
4997
- var NpmProxyTokenPayload = z161.object({
4998
- npmProxyRegistryConfigId: z161.string()
5019
+ import { z as z163 } from "zod";
5020
+ var NpmProxyTokenPayload = z163.object({
5021
+ npmProxyRegistryConfigId: z163.string()
4999
5022
  });
5000
5023
 
5001
5024
  // src/tokens/personal-access-token.ts
5002
- import { z as z169 } from "zod";
5025
+ import { z as z171 } from "zod";
5003
5026
 
5004
5027
  // src/workspace/user-invite.ts
5005
- import { z as z163 } from "zod";
5028
+ import { z as z165 } from "zod";
5006
5029
 
5007
5030
  // src/workspace/workspace-role.ts
5008
- import { z as z162 } from "zod";
5009
- var WorkspaceRoleSchema = z162.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
5031
+ import { z as z164 } from "zod";
5032
+ var WorkspaceRoleSchema = z164.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
5010
5033
  var WorkspaceRole = WorkspaceRoleSchema.enum;
5011
5034
 
5012
5035
  // src/workspace/user-invite.ts
5013
5036
  var MAX_MEMBERS_COUNT = 100;
5014
- var UserInvite = z163.object({
5015
- email: z163.string().email().trim().transform((value) => value.toLowerCase()),
5037
+ var UserInvite = z165.object({
5038
+ email: z165.string().email().trim().transform((value) => value.toLowerCase()),
5016
5039
  role: WorkspaceRoleSchema
5017
5040
  });
5018
- var UserInvites = z163.array(UserInvite).max(MAX_MEMBERS_COUNT);
5041
+ var UserInvites = z165.array(UserInvite).max(MAX_MEMBERS_COUNT);
5019
5042
 
5020
5043
  // src/workspace/workspace-configuration.ts
5021
- import { z as z164 } from "zod";
5022
- var WorkspaceConfigurationUpdate = z164.object({
5023
- id: z164.string(),
5044
+ import { z as z166 } from "zod";
5045
+ var WorkspaceConfigurationUpdate = z166.object({
5046
+ id: z166.string(),
5024
5047
  ipWhitelist: WorkspaceIpSettings.optional(),
5025
5048
  sso: SsoProvider.optional(),
5026
5049
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -5028,32 +5051,32 @@ var WorkspaceConfigurationUpdate = z164.object({
5028
5051
  });
5029
5052
 
5030
5053
  // src/workspace/workspace-context.ts
5031
- import { z as z165 } from "zod";
5032
- var WorkspaceContext = z165.object({
5033
- workspaceId: z165.string(),
5054
+ import { z as z167 } from "zod";
5055
+ var WorkspaceContext = z167.object({
5056
+ workspaceId: z167.string(),
5034
5057
  product: ProductCodeSchema,
5035
5058
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
5036
- publicDesignSystem: z165.boolean().optional()
5059
+ publicDesignSystem: z167.boolean().optional()
5037
5060
  });
5038
5061
 
5039
5062
  // src/workspace/workspace-create.ts
5040
- import { z as z166 } from "zod";
5063
+ import { z as z168 } from "zod";
5041
5064
  var WORKSPACE_NAME_MIN_LENGTH = 2;
5042
5065
  var WORKSPACE_NAME_MAX_LENGTH = 64;
5043
5066
  var HANDLE_MIN_LENGTH = 2;
5044
5067
  var HANDLE_MAX_LENGTH = 64;
5045
- var CreateWorkspaceInput = z166.object({
5046
- name: z166.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5068
+ var CreateWorkspaceInput = z168.object({
5069
+ name: z168.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
5047
5070
  product: ProductCodeSchema,
5048
- priceId: z166.string(),
5049
- billingEmail: z166.string().email().optional(),
5050
- handle: z166.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
5071
+ priceId: z168.string(),
5072
+ billingEmail: z168.string().email().optional(),
5073
+ handle: z168.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
5051
5074
  invites: UserInvites.optional(),
5052
- promoCode: z166.string().optional(),
5075
+ promoCode: z168.string().optional(),
5053
5076
  status: InternalStatusSchema.optional(),
5054
5077
  planInterval: BillingIntervalSchema.optional(),
5055
- seats: z166.number().optional(),
5056
- seatLimit: z166.number().optional(),
5078
+ seats: z168.number().optional(),
5079
+ seatLimit: z168.number().optional(),
5057
5080
  card: CardSchema.optional(),
5058
5081
  sso: SsoProvider.optional(),
5059
5082
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -5061,47 +5084,47 @@ var CreateWorkspaceInput = z166.object({
5061
5084
  });
5062
5085
 
5063
5086
  // src/workspace/workspace-invitations.ts
5064
- import { z as z167 } from "zod";
5065
- var WorkspaceInvitation = z167.object({
5066
- id: z167.string(),
5067
- email: z167.string().email(),
5068
- createdAt: z167.coerce.date(),
5069
- resentAt: z167.coerce.date().nullish(),
5070
- role: z167.nativeEnum(WorkspaceRole),
5071
- workspaceId: z167.string(),
5072
- invitedBy: z167.string()
5087
+ import { z as z169 } from "zod";
5088
+ var WorkspaceInvitation = z169.object({
5089
+ id: z169.string(),
5090
+ email: z169.string().email(),
5091
+ createdAt: z169.coerce.date(),
5092
+ resentAt: z169.coerce.date().nullish(),
5093
+ role: z169.nativeEnum(WorkspaceRole),
5094
+ workspaceId: z169.string(),
5095
+ invitedBy: z169.string()
5073
5096
  });
5074
5097
 
5075
5098
  // src/workspace/workspace-membership.ts
5076
- import { z as z168 } from "zod";
5077
- var WorkspaceMembership = z168.object({
5078
- id: z168.string(),
5079
- userId: z168.string(),
5080
- workspaceId: z168.string(),
5081
- workspaceRole: z168.nativeEnum(WorkspaceRole),
5099
+ import { z as z170 } from "zod";
5100
+ var WorkspaceMembership = z170.object({
5101
+ id: z170.string(),
5102
+ userId: z170.string(),
5103
+ workspaceId: z170.string(),
5104
+ workspaceRole: z170.nativeEnum(WorkspaceRole),
5082
5105
  notificationSettings: UserNotificationSettings
5083
5106
  });
5084
- var UpdateMembershipRolesInput = z168.object({
5085
- members: z168.array(
5086
- z168.object({
5087
- userId: z168.string(),
5088
- role: z168.nativeEnum(WorkspaceRole)
5107
+ var UpdateMembershipRolesInput = z170.object({
5108
+ members: z170.array(
5109
+ z170.object({
5110
+ userId: z170.string(),
5111
+ role: z170.nativeEnum(WorkspaceRole)
5089
5112
  })
5090
5113
  )
5091
5114
  });
5092
5115
 
5093
5116
  // src/tokens/personal-access-token.ts
5094
- var PersonalAccessToken = z169.object({
5095
- id: z169.string(),
5096
- userId: z169.string(),
5097
- workspaceId: z169.string().optional(),
5117
+ var PersonalAccessToken = z171.object({
5118
+ id: z171.string(),
5119
+ userId: z171.string(),
5120
+ workspaceId: z171.string().optional(),
5098
5121
  workspaceRole: WorkspaceRoleSchema.optional(),
5099
- name: z169.string(),
5100
- hidden: z169.boolean(),
5101
- token: z169.string(),
5102
- scope: z169.string().optional(),
5103
- createdAt: z169.coerce.date(),
5104
- expireAt: z169.coerce.date().optional()
5122
+ name: z171.string(),
5123
+ hidden: z171.boolean(),
5124
+ token: z171.string(),
5125
+ scope: z171.string().optional(),
5126
+ createdAt: z171.coerce.date(),
5127
+ expireAt: z171.coerce.date().optional()
5105
5128
  });
5106
5129
  export {
5107
5130
  Address,
@@ -5230,6 +5253,8 @@ export {
5230
5253
  DocumentationLinkPreview,
5231
5254
  DocumentationPage,
5232
5255
  DocumentationPageAnchor,
5256
+ DocumentationPageApproval,
5257
+ DocumentationPageApprovalState,
5233
5258
  DocumentationPageContent,
5234
5259
  DocumentationPageContentBackup,
5235
5260
  DocumentationPageContentData,