@supernova-studio/model 0.57.8 → 0.57.10

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
@@ -288,7 +288,7 @@ var CustomDomain = z14.object({
288
288
  });
289
289
 
290
290
  // src/data-dumps/code-integration-dump.ts
291
- import { z as z144 } from "zod";
291
+ import { z as z146 } from "zod";
292
292
 
293
293
  // src/export/exporter.ts
294
294
  import { z as z17 } from "zod";
@@ -391,10 +391,10 @@ var Exporter = z17.object({
391
391
  });
392
392
 
393
393
  // src/export/pipeline.ts
394
- import { z as z143 } from "zod";
394
+ import { z as z145 } from "zod";
395
395
 
396
396
  // src/export/export-destinations.ts
397
- import { z as z142 } from "zod";
397
+ import { z as z144 } from "zod";
398
398
 
399
399
  // src/dsm/assets/asset-dynamo-record.ts
400
400
  import { z as z18 } from "zod";
@@ -460,7 +460,7 @@ function isImportedAsset(asset) {
460
460
  }
461
461
 
462
462
  // src/dsm/components/asset-rendering.ts
463
- import { z as z99 } from "zod";
463
+ import { z as z101 } from "zod";
464
464
 
465
465
  // src/dsm/import/support/figma-files.ts
466
466
  import { z as z22 } from "zod";
@@ -3604,61 +3604,105 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
3604
3604
  });
3605
3605
 
3606
3606
  // src/dsm/import/support/import-model-collections.ts
3607
- import { z as z98 } from "zod";
3607
+ import { z as z100 } from "zod";
3608
3608
 
3609
- // src/dsm/import/component.ts
3610
- import { z as z93 } from "zod";
3609
+ // src/dsm/import/collection.ts
3610
+ import { z as z92 } from "zod";
3611
3611
 
3612
- // src/dsm/import/base.ts
3612
+ // src/dsm/collection.ts
3613
3613
  import { z as z91 } from "zod";
3614
- var ImportModelBase = z91.object({
3614
+ var CollectionOrigin = z91.object({
3615
3615
  id: z91.string(),
3616
+ sourceId: z91.string()
3617
+ });
3618
+ var Collection = z91.object({
3619
+ id: z91.string(),
3620
+ persistentId: z91.string(),
3621
+ designSystemVersionId: z91.string(),
3622
+ name: z91.string(),
3623
+ description: z91.string(),
3624
+ backgroundColor: ColorTokenInlineData.optional(),
3625
+ /**
3626
+ * ID of Select element property definition's option that corresponds to this collection.
3627
+ *
3628
+ * Each collection is represented by an option in a special kind of element property that
3629
+ * is present in each design system where a collections are present. The property is maintained
3630
+ * automatically and is not available to the user (see immutable element properties).
3631
+ *
3632
+ * Collections have an immutable element property that allows bridging places where element properites
3633
+ * can be selected (e.g. documentation blocks) with the concept of collection without having to add
3634
+ * specific logic for collection selection.
3635
+ */
3636
+ elementPropertyOptionId: z91.string(),
3637
+ createdAt: z91.coerce.date(),
3638
+ updatedAt: z91.coerce.date(),
3639
+ origin: CollectionOrigin.optional()
3640
+ });
3641
+
3642
+ // src/dsm/import/collection.ts
3643
+ var CollectionImportModelInput = z92.object({
3644
+ id: z92.string(),
3645
+ name: z92.string()
3646
+ });
3647
+ var CollectionImportModel = z92.object({
3648
+ id: z92.string(),
3649
+ name: z92.string(),
3650
+ origin: CollectionOrigin
3651
+ });
3652
+
3653
+ // src/dsm/import/component.ts
3654
+ import { z as z95 } from "zod";
3655
+
3656
+ // src/dsm/import/base.ts
3657
+ import { z as z93 } from "zod";
3658
+ var ImportModelBase = z93.object({
3659
+ id: z93.string(),
3616
3660
  meta: ObjectMeta,
3617
3661
  origin: DesignElementOrigin,
3618
- brandPersistentId: z91.string(),
3619
- sortOrder: z91.number()
3662
+ brandPersistentId: z93.string(),
3663
+ sortOrder: z93.number()
3620
3664
  });
3621
3665
  var ImportModelInputBase = ImportModelBase.omit({
3622
3666
  brandPersistentId: true,
3623
3667
  origin: true,
3624
3668
  sortOrder: true
3625
3669
  }).extend({
3626
- originId: z91.string(),
3627
- originMetadata: z91.record(z91.any())
3670
+ originId: z93.string(),
3671
+ originMetadata: z93.record(z93.any())
3628
3672
  });
3629
3673
 
3630
3674
  // src/dsm/import/image.ts
3631
- import { z as z92 } from "zod";
3632
- var ImageImportModelType = z92.enum(["Url", "FigmaRender"]);
3633
- var ImageImportModelBase = z92.object({
3675
+ import { z as z94 } from "zod";
3676
+ var ImageImportModelType = z94.enum(["Url", "FigmaRender"]);
3677
+ var ImageImportModelBase = z94.object({
3634
3678
  scope: AssetScope
3635
3679
  });
3636
3680
  var UrlImageImportModel = ImageImportModelBase.extend({
3637
- type: z92.literal(ImageImportModelType.enum.Url),
3638
- url: z92.string(),
3639
- originKey: z92.string(),
3640
- extension: z92.string()
3681
+ type: z94.literal(ImageImportModelType.enum.Url),
3682
+ url: z94.string(),
3683
+ originKey: z94.string(),
3684
+ extension: z94.string()
3641
3685
  });
3642
- var FigmaRenderFormat = z92.enum(["Svg", "Png", "Pdf"]);
3686
+ var FigmaRenderFormat = z94.enum(["Svg", "Png", "Pdf"]);
3643
3687
  var FigmaRenderBase = ImageImportModelBase.extend({
3644
- type: z92.literal(ImageImportModelType.enum.FigmaRender),
3645
- fileId: z92.string(),
3646
- fileVersionId: z92.string().optional(),
3647
- nodeId: z92.string(),
3648
- originKey: z92.string()
3688
+ type: z94.literal(ImageImportModelType.enum.FigmaRender),
3689
+ fileId: z94.string(),
3690
+ fileVersionId: z94.string().optional(),
3691
+ nodeId: z94.string(),
3692
+ originKey: z94.string()
3649
3693
  });
3650
3694
  var FigmaPngRenderImportModel = FigmaRenderBase.extend({
3651
- format: z92.literal(FigmaRenderFormat.enum.Png),
3652
- scale: z92.number()
3695
+ format: z94.literal(FigmaRenderFormat.enum.Png),
3696
+ scale: z94.number()
3653
3697
  });
3654
3698
  var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
3655
- format: z92.literal(FigmaRenderFormat.enum.Svg)
3699
+ format: z94.literal(FigmaRenderFormat.enum.Svg)
3656
3700
  });
3657
- var FigmaRenderImportModel = z92.discriminatedUnion("format", [
3701
+ var FigmaRenderImportModel = z94.discriminatedUnion("format", [
3658
3702
  FigmaPngRenderImportModel,
3659
3703
  FigmaSvgRenderImportModel
3660
3704
  ]);
3661
- var ImageImportModel = z92.union([UrlImageImportModel, FigmaRenderImportModel]);
3705
+ var ImageImportModel = z94.union([UrlImageImportModel, FigmaRenderImportModel]);
3662
3706
  function getFigmaRenderFormatFileExtension(format) {
3663
3707
  switch (format) {
3664
3708
  case "Pdf":
@@ -3671,15 +3715,15 @@ function getFigmaRenderFormatFileExtension(format) {
3671
3715
  }
3672
3716
 
3673
3717
  // src/dsm/import/component.ts
3674
- var FigmaComponentImportModelPart = z93.object({
3718
+ var FigmaComponentImportModelPart = z95.object({
3675
3719
  thumbnail: ImageImportModel,
3676
- parentComponentId: z93.string().optional(),
3720
+ parentComponentId: z95.string().optional(),
3677
3721
  componentPropertyDefinitions: FigmaComponentPropertyMap.optional(),
3678
- variantPropertyValues: z93.record(z93.string()).optional(),
3679
- renderNodeId: z93.string()
3722
+ variantPropertyValues: z95.record(z95.string()).optional(),
3723
+ renderNodeId: z95.string()
3680
3724
  });
3681
3725
  var FigmaComponentImportModel = ImportModelBase.extend(FigmaComponentImportModelPart.shape).extend({
3682
- isAsset: z93.boolean(),
3726
+ isAsset: z95.boolean(),
3683
3727
  svg: FigmaSvgRenderImportModel.optional(),
3684
3728
  origin: FigmaComponentOrigin
3685
3729
  });
@@ -3692,24 +3736,24 @@ var AssetImportModelInput = ImportModelInputBase.extend(FigmaComponentImportMode
3692
3736
  });
3693
3737
 
3694
3738
  // src/dsm/import/data-source.ts
3695
- import { z as z94 } from "zod";
3696
- var DataSourceImportModel = z94.object({
3697
- id: z94.string(),
3698
- fileName: z94.string().optional(),
3699
- thumbnailUrl: z94.string().optional()
3739
+ import { z as z96 } from "zod";
3740
+ var DataSourceImportModel = z96.object({
3741
+ id: z96.string(),
3742
+ fileName: z96.string().optional(),
3743
+ thumbnailUrl: z96.string().optional()
3700
3744
  });
3701
3745
 
3702
3746
  // src/dsm/import/figma-frames.ts
3703
- import { z as z95 } from "zod";
3747
+ import { z as z97 } from "zod";
3704
3748
  var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
3705
3749
  png: FigmaPngRenderImportModel,
3706
3750
  svg: FigmaSvgRenderImportModel
3707
3751
  });
3708
3752
  var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
3709
- children: z95.lazy(() => FigmaFileStructureNodeImportModel.array())
3753
+ children: z97.lazy(() => FigmaFileStructureNodeImportModel.array())
3710
3754
  });
3711
- var FigmaFileStructureImportModelPart = z95.object({
3712
- data: z95.object({
3755
+ var FigmaFileStructureImportModelPart = z97.object({
3756
+ data: z97.object({
3713
3757
  rootNode: FigmaFileStructureNodeImportModel,
3714
3758
  assetsInFile: FigmaFileStructureStatistics
3715
3759
  })
@@ -3720,7 +3764,7 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
3720
3764
  var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
3721
3765
  FigmaFileStructureImportModelPart.shape
3722
3766
  ).extend({
3723
- fileVersionId: z95.string()
3767
+ fileVersionId: z97.string()
3724
3768
  });
3725
3769
  function figmaFileStructureImportModelToMap(root) {
3726
3770
  const map = /* @__PURE__ */ new Map();
@@ -3734,51 +3778,51 @@ function recursiveFigmaFileStructureToMap2(node, map) {
3734
3778
  }
3735
3779
 
3736
3780
  // src/dsm/import/theme.ts
3737
- import { z as z96 } from "zod";
3781
+ import { z as z98 } from "zod";
3738
3782
  var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
3739
- z96.object({
3740
- id: z96.string(),
3783
+ z98.object({
3784
+ id: z98.string(),
3741
3785
  meta: ObjectMeta
3742
3786
  })
3743
3787
  );
3744
3788
  var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
3745
- z96.object({
3789
+ z98.object({
3746
3790
  origin: ThemeOverrideOrigin
3747
3791
  })
3748
3792
  );
3749
3793
  var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
3750
- z96.object({
3751
- originId: z96.string(),
3794
+ z98.object({
3795
+ originId: z98.string(),
3752
3796
  originMetadata: ThemeOverrideOriginPart
3753
3797
  })
3754
3798
  );
3755
- var ThemeImportModel = z96.object({
3799
+ var ThemeImportModel = z98.object({
3756
3800
  meta: ObjectMeta,
3757
- brandPersistentId: z96.string(),
3801
+ brandPersistentId: z98.string(),
3758
3802
  originSource: ThemeOriginSource,
3759
- overrides: z96.array(ThemeOverrideImportModel),
3760
- sortOrder: z96.number()
3803
+ overrides: z98.array(ThemeOverrideImportModel),
3804
+ sortOrder: z98.number()
3761
3805
  });
3762
- var ThemeImportModelInput = z96.object({
3806
+ var ThemeImportModelInput = z98.object({
3763
3807
  meta: ObjectMeta,
3764
- originObjects: z96.array(ThemeOriginObject),
3765
- overrides: z96.array(ThemeOverrideImportModelInput)
3808
+ originObjects: z98.array(ThemeOriginObject),
3809
+ overrides: z98.array(ThemeOverrideImportModelInput)
3766
3810
  });
3767
- var ThemeUpdateImportModel = z96.object({
3768
- themePersistentId: z96.string(),
3769
- overrides: z96.array(ThemeOverrideImportModel)
3811
+ var ThemeUpdateImportModel = z98.object({
3812
+ themePersistentId: z98.string(),
3813
+ overrides: z98.array(ThemeOverrideImportModel)
3770
3814
  });
3771
- var ThemeUpdateImportModelInput = z96.object({
3772
- themePersistentId: z96.string(),
3773
- overrides: z96.array(ThemeOverrideImportModelInput)
3815
+ var ThemeUpdateImportModelInput = z98.object({
3816
+ themePersistentId: z98.string(),
3817
+ overrides: z98.array(ThemeOverrideImportModelInput)
3774
3818
  });
3775
3819
 
3776
3820
  // src/dsm/import/tokens.ts
3777
- import { z as z97 } from "zod";
3778
- var DesignTokenImportModelPart = z97.object({
3779
- collection: z97.string().optional(),
3780
- codeSyntax: z97.record(z97.coerce.string()).optional(),
3781
- scopes: z97.array(z97.string()).optional()
3821
+ import { z as z99 } from "zod";
3822
+ var DesignTokenImportModelPart = z99.object({
3823
+ collection: z99.string().optional(),
3824
+ codeSyntax: z99.record(z99.coerce.string()).optional(),
3825
+ scopes: z99.array(z99.string()).optional()
3782
3826
  });
3783
3827
  var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
3784
3828
  origin: DesignTokenOrigin
@@ -3796,22 +3840,24 @@ function designTokenImportModelTypeFilter(type) {
3796
3840
  }
3797
3841
 
3798
3842
  // src/dsm/import/support/import-model-collections.ts
3799
- var ImportModelInputCollection = z98.object({
3843
+ var ImportModelInputCollection = z100.object({
3800
3844
  source: DataSourceImportModel,
3801
- tokens: z98.array(DesignTokenImportModelInput).default([]),
3802
- components: z98.array(FigmaComponentImportModelInput).default([]),
3803
- assets: z98.array(AssetImportModelInput).default([]),
3804
- themeUpdates: z98.array(ThemeUpdateImportModelInput).default([]),
3805
- themes: z98.array(ThemeImportModelInput).default([]),
3806
- figmaFileStructure: FigmaFileStructureImportModelInput.optional()
3807
- });
3808
- var ImportModelCollection = z98.object({
3809
- sources: z98.array(DataSourceImportModel),
3810
- tokens: z98.array(DesignTokenImportModel).default([]),
3811
- components: z98.array(FigmaComponentImportModel).default([]),
3812
- themeUpdates: z98.array(ThemeUpdateImportModel).default([]),
3813
- themes: z98.array(ThemeImportModel).default([]),
3814
- figmaFileStructures: z98.array(FigmaFileStructureImportModel)
3845
+ tokens: z100.array(DesignTokenImportModelInput).default([]),
3846
+ components: z100.array(FigmaComponentImportModelInput).default([]),
3847
+ assets: z100.array(AssetImportModelInput).default([]),
3848
+ themeUpdates: z100.array(ThemeUpdateImportModelInput).default([]),
3849
+ themes: z100.array(ThemeImportModelInput).default([]),
3850
+ figmaFileStructure: FigmaFileStructureImportModelInput.optional(),
3851
+ collections: z100.array(CollectionImportModelInput)
3852
+ });
3853
+ var ImportModelCollection = z100.object({
3854
+ sources: z100.array(DataSourceImportModel),
3855
+ tokens: z100.array(DesignTokenImportModel).default([]),
3856
+ components: z100.array(FigmaComponentImportModel).default([]),
3857
+ themeUpdates: z100.array(ThemeUpdateImportModel).default([]),
3858
+ themes: z100.array(ThemeImportModel).default([]),
3859
+ figmaFileStructures: z100.array(FigmaFileStructureImportModel),
3860
+ collections: z100.array(CollectionImportModel)
3815
3861
  });
3816
3862
  function addImportModelCollections(lhs, rhs) {
3817
3863
  return {
@@ -3820,46 +3866,47 @@ function addImportModelCollections(lhs, rhs) {
3820
3866
  components: [...lhs.components, ...rhs.components],
3821
3867
  themeUpdates: [...lhs.themeUpdates, ...rhs.themeUpdates],
3822
3868
  themes: [...lhs.themes, ...rhs.themes],
3823
- figmaFileStructures: [...lhs.figmaFileStructures, ...rhs.figmaFileStructures]
3869
+ figmaFileStructures: [...lhs.figmaFileStructures, ...rhs.figmaFileStructures],
3870
+ collections: [...lhs.collections, ...rhs.collections]
3824
3871
  };
3825
3872
  }
3826
3873
 
3827
3874
  // src/dsm/components/asset-rendering.ts
3828
- var AssetRenderConfiguration = z99.object({
3829
- prefix: z99.string().optional(),
3830
- suffix: z99.string().optional(),
3831
- scale: z99.number(),
3875
+ var AssetRenderConfiguration = z101.object({
3876
+ prefix: z101.string().optional(),
3877
+ suffix: z101.string().optional(),
3878
+ scale: z101.number(),
3832
3879
  format: FigmaRenderFormat
3833
3880
  });
3834
- var RenderedAssetFile = z99.object({
3835
- assetPersistentId: z99.string(),
3836
- assetName: z99.string(),
3837
- renderedImageFileName: z99.string(),
3838
- renderedImageUrl: z99.string(),
3881
+ var RenderedAssetFile = z101.object({
3882
+ assetPersistentId: z101.string(),
3883
+ assetName: z101.string(),
3884
+ renderedImageFileName: z101.string(),
3885
+ renderedImageUrl: z101.string(),
3839
3886
  settings: AssetRenderConfiguration
3840
3887
  });
3841
3888
 
3842
3889
  // src/dsm/documentation/approvals/approval-state.ts
3843
- import { z as z100 } from "zod";
3844
- var DocumentationPageApprovalState = z100.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
3890
+ import { z as z102 } from "zod";
3891
+ var DocumentationPageApprovalState = z102.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
3845
3892
 
3846
3893
  // src/dsm/documentation/approvals/approval.ts
3847
- import { z as z101 } from "zod";
3848
- var DocumentationPageApproval = z101.object({
3849
- id: z101.string(),
3894
+ import { z as z103 } from "zod";
3895
+ var DocumentationPageApproval = z103.object({
3896
+ id: z103.string(),
3850
3897
  approvalState: DocumentationPageApprovalState,
3851
- persistentId: z101.string(),
3852
- pageId: z101.string(),
3853
- pagePersistentId: z101.string(),
3854
- updatedByUserId: z101.string(),
3855
- designSystemVersionId: z101.string(),
3856
- updatedAt: z101.coerce.date(),
3857
- createdAt: z101.coerce.date()
3898
+ persistentId: z103.string(),
3899
+ pageId: z103.string(),
3900
+ pagePersistentId: z103.string(),
3901
+ updatedByUserId: z103.string(),
3902
+ designSystemVersionId: z103.string(),
3903
+ updatedAt: z103.coerce.date(),
3904
+ createdAt: z103.coerce.date()
3858
3905
  });
3859
3906
 
3860
3907
  // src/dsm/documentation/block-definitions/definition.ts
3861
- import { z as z102 } from "zod";
3862
- var PageBlockCategory = z102.enum([
3908
+ import { z as z104 } from "zod";
3909
+ var PageBlockCategory = z104.enum([
3863
3910
  "Text",
3864
3911
  "Layout",
3865
3912
  "Media",
@@ -3873,174 +3920,174 @@ var PageBlockCategory = z102.enum([
3873
3920
  "Data",
3874
3921
  "Other"
3875
3922
  ]);
3876
- var PageBlockBehaviorDataType = z102.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
3877
- var PageBlockBehaviorSelectionType = z102.enum(["Entity", "Group", "EntityAndGroup"]);
3878
- var PageBlockDefinitionBehavior = z102.object({
3923
+ var PageBlockBehaviorDataType = z104.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
3924
+ var PageBlockBehaviorSelectionType = z104.enum(["Entity", "Group", "EntityAndGroup"]);
3925
+ var PageBlockDefinitionBehavior = z104.object({
3879
3926
  dataType: PageBlockBehaviorDataType,
3880
- items: z102.object({
3881
- numberOfItems: z102.number(),
3882
- allowLinks: z102.boolean(),
3883
- newItemLabel: z102.string().optional()
3927
+ items: z104.object({
3928
+ numberOfItems: z104.number(),
3929
+ allowLinks: z104.boolean(),
3930
+ newItemLabel: z104.string().optional()
3884
3931
  }).optional(),
3885
- entities: z102.object({
3932
+ entities: z104.object({
3886
3933
  selectionType: PageBlockBehaviorSelectionType,
3887
- maxSelected: z102.number()
3934
+ maxSelected: z104.number()
3888
3935
  }).optional()
3889
3936
  });
3890
- var PageBlockDefinitionOnboarding = z102.object({
3891
- helpText: z102.string(),
3892
- documentationLink: z102.string().optional()
3937
+ var PageBlockDefinitionOnboarding = z104.object({
3938
+ helpText: z104.string(),
3939
+ documentationLink: z104.string().optional()
3893
3940
  });
3894
- var PageBlockDefinition = z102.object({
3895
- id: z102.string(),
3896
- name: z102.string(),
3897
- description: z102.string(),
3941
+ var PageBlockDefinition = z104.object({
3942
+ id: z104.string(),
3943
+ name: z104.string(),
3944
+ description: z104.string(),
3898
3945
  category: PageBlockCategory,
3899
- icon: z102.string().optional(),
3900
- documentationLink: z102.string().optional(),
3901
- searchKeywords: z102.array(z102.string()).optional(),
3946
+ icon: z104.string().optional(),
3947
+ documentationLink: z104.string().optional(),
3948
+ searchKeywords: z104.array(z104.string()).optional(),
3902
3949
  item: PageBlockDefinitionItem,
3903
3950
  behavior: PageBlockDefinitionBehavior,
3904
- editorOptions: z102.object({
3951
+ editorOptions: z104.object({
3905
3952
  onboarding: PageBlockDefinitionOnboarding.optional(),
3906
- newItemLabel: z102.string().optional()
3953
+ newItemLabel: z104.string().optional()
3907
3954
  }),
3908
3955
  appearance: PageBlockDefinitionAppearance.optional()
3909
3956
  });
3910
3957
 
3911
3958
  // src/dsm/documentation/group.ts
3912
- import { z as z103 } from "zod";
3913
- var DocumentationPageGroup = z103.object({
3914
- type: z103.literal("ElementGroup"),
3915
- childType: z103.literal("DocumentationPage"),
3916
- id: z103.string(),
3917
- persistentId: z103.string(),
3918
- shortPersistentId: z103.string(),
3919
- designSystemVersionId: z103.string(),
3920
- parentPersistentId: z103.string().nullish(),
3921
- sortOrder: z103.number(),
3922
- title: z103.string(),
3923
- slug: z103.string(),
3924
- userSlug: z103.string().nullish(),
3925
- createdAt: z103.coerce.date(),
3926
- updatedAt: z103.coerce.date()
3959
+ import { z as z105 } from "zod";
3960
+ var DocumentationPageGroup = z105.object({
3961
+ type: z105.literal("ElementGroup"),
3962
+ childType: z105.literal("DocumentationPage"),
3963
+ id: z105.string(),
3964
+ persistentId: z105.string(),
3965
+ shortPersistentId: z105.string(),
3966
+ designSystemVersionId: z105.string(),
3967
+ parentPersistentId: z105.string().nullish(),
3968
+ sortOrder: z105.number(),
3969
+ title: z105.string(),
3970
+ slug: z105.string(),
3971
+ userSlug: z105.string().nullish(),
3972
+ createdAt: z105.coerce.date(),
3973
+ updatedAt: z105.coerce.date()
3927
3974
  });
3928
3975
 
3929
3976
  // src/dsm/documentation/link-preview.ts
3930
- import { z as z104 } from "zod";
3931
- var DocumentationLinkPreview = z104.object({
3932
- title: z104.string().optional(),
3933
- description: z104.string().optional(),
3977
+ import { z as z106 } from "zod";
3978
+ var DocumentationLinkPreview = z106.object({
3979
+ title: z106.string().optional(),
3980
+ description: z106.string().optional(),
3934
3981
  thumbnail: PageBlockImageReference.optional()
3935
3982
  });
3936
3983
 
3937
3984
  // src/dsm/documentation/page-anchor.ts
3938
- import { z as z105 } from "zod";
3939
- var DocumentationPageAnchor = z105.object({
3940
- blockId: z105.string(),
3941
- level: z105.number(),
3942
- text: z105.string()
3943
- });
3944
-
3945
- // src/dsm/documentation/page-content-backup.ts
3946
- import { z as z106 } from "zod";
3947
- var DocumentationPageContentBackup = z106.object({
3948
- id: z106.string(),
3949
- designSystemVersionId: z106.string(),
3950
- createdAt: z106.coerce.date(),
3951
- updatedAt: z106.coerce.date(),
3952
- documentationPageId: z106.string(),
3953
- documentationPageName: z106.string(),
3954
- storagePath: z106.string()
3955
- });
3956
-
3957
- // src/dsm/documentation/page-content.ts
3958
3985
  import { z as z107 } from "zod";
3959
- var DocumentationPageContentItem = z107.discriminatedUnion("type", [
3960
- PageBlockEditorModelV2,
3961
- PageSectionEditorModelV2
3962
- ]);
3963
- var DocumentationPageContentData = z107.object({
3964
- items: z107.array(DocumentationPageContentItem)
3965
- });
3966
- var DocumentationPageContent = z107.object({
3967
- id: z107.string(),
3968
- designSystemVersionId: z107.string(),
3969
- createdAt: z107.coerce.date(),
3970
- updatedAt: z107.coerce.date(),
3971
- documentationPageId: z107.string(),
3972
- data: DocumentationPageContentData
3986
+ var DocumentationPageAnchor = z107.object({
3987
+ blockId: z107.string(),
3988
+ level: z107.number(),
3989
+ text: z107.string()
3973
3990
  });
3974
3991
 
3975
- // src/dsm/documentation/page.ts
3992
+ // src/dsm/documentation/page-content-backup.ts
3976
3993
  import { z as z108 } from "zod";
3977
- var DocumentationPage = z108.object({
3978
- type: z108.literal("DocumentationPage"),
3994
+ var DocumentationPageContentBackup = z108.object({
3979
3995
  id: z108.string(),
3980
- persistentId: z108.string(),
3981
- shortPersistentId: z108.string(),
3982
3996
  designSystemVersionId: z108.string(),
3983
- parentPersistentId: z108.string().nullish(),
3984
- sortOrder: z108.number(),
3985
- title: z108.string(),
3986
- slug: z108.string(),
3987
- userSlug: z108.string().nullish(),
3988
3997
  createdAt: z108.coerce.date(),
3989
- updatedAt: z108.coerce.date()
3998
+ updatedAt: z108.coerce.date(),
3999
+ documentationPageId: z108.string(),
4000
+ documentationPageName: z108.string(),
4001
+ storagePath: z108.string()
3990
4002
  });
3991
4003
 
3992
- // src/dsm/documentation/settings.ts
4004
+ // src/dsm/documentation/page-content.ts
3993
4005
  import { z as z109 } from "zod";
3994
- var DocumentationSettings = z109.object({
3995
- // Basic
4006
+ var DocumentationPageContentItem = z109.discriminatedUnion("type", [
4007
+ PageBlockEditorModelV2,
4008
+ PageSectionEditorModelV2
4009
+ ]);
4010
+ var DocumentationPageContentData = z109.object({
4011
+ items: z109.array(DocumentationPageContentItem)
4012
+ });
4013
+ var DocumentationPageContent = z109.object({
4014
+ id: z109.string(),
3996
4015
  designSystemVersionId: z109.string(),
3997
4016
  createdAt: z109.coerce.date(),
3998
4017
  updatedAt: z109.coerce.date(),
3999
- // Configuration
4000
- isTabbedLayoutEnabled: z109.boolean(),
4001
- storybookEmbedErrorMessage: z109.string().optional(),
4002
- renderCodePackageJson: z109.string().optional(),
4003
- selectedBrandPersistentId: z109.string().optional(),
4004
- serveDefaultVersionOnly: z109.boolean(),
4005
- isPublic: z109.boolean()
4018
+ documentationPageId: z109.string(),
4019
+ data: DocumentationPageContentData
4006
4020
  });
4007
4021
 
4008
- // src/dsm/documentation/thread.ts
4022
+ // src/dsm/documentation/page.ts
4009
4023
  import { z as z110 } from "zod";
4010
- var DocumentationComment = z110.object({
4011
- id: z110.string(),
4012
- authorId: z110.string(),
4013
- threadId: z110.string(),
4014
- roomId: z110.string(),
4015
- createdAt: z110.coerce.date(),
4016
- editedAt: z110.coerce.date().optional(),
4017
- deletedAt: z110.coerce.date().optional(),
4018
- body: z110.string()
4019
- });
4020
- var DocumentationCommentThread = z110.object({
4024
+ var DocumentationPage = z110.object({
4025
+ type: z110.literal("DocumentationPage"),
4021
4026
  id: z110.string(),
4022
- roomId: z110.string(),
4023
- pagePersistentId: z110.string(),
4024
- brandId: z110.string(),
4027
+ persistentId: z110.string(),
4028
+ shortPersistentId: z110.string(),
4025
4029
  designSystemVersionId: z110.string(),
4026
- designSystemId: z110.string(),
4027
- blockId: z110.string().optional(),
4028
- resolved: z110.boolean(),
4030
+ parentPersistentId: z110.string().nullish(),
4031
+ sortOrder: z110.number(),
4032
+ title: z110.string(),
4033
+ slug: z110.string(),
4034
+ userSlug: z110.string().nullish(),
4029
4035
  createdAt: z110.coerce.date(),
4030
4036
  updatedAt: z110.coerce.date()
4031
4037
  });
4032
4038
 
4033
- // src/dsm/element-snapshots/base.ts
4039
+ // src/dsm/documentation/settings.ts
4034
4040
  import { z as z111 } from "zod";
4035
- var DesignElementSnapshotReason = z111.enum(["Publish", "Deletion"]);
4036
- var DesignElementSnapshotBase = z111.object({
4037
- id: z111.string(),
4038
- persistentId: z111.string(),
4041
+ var DocumentationSettings = z111.object({
4042
+ // Basic
4039
4043
  designSystemVersionId: z111.string(),
4040
4044
  createdAt: z111.coerce.date(),
4041
4045
  updatedAt: z111.coerce.date(),
4046
+ // Configuration
4047
+ isTabbedLayoutEnabled: z111.boolean(),
4048
+ storybookEmbedErrorMessage: z111.string().optional(),
4049
+ renderCodePackageJson: z111.string().optional(),
4050
+ selectedBrandPersistentId: z111.string().optional(),
4051
+ serveDefaultVersionOnly: z111.boolean(),
4052
+ isPublic: z111.boolean()
4053
+ });
4054
+
4055
+ // src/dsm/documentation/thread.ts
4056
+ import { z as z112 } from "zod";
4057
+ var DocumentationComment = z112.object({
4058
+ id: z112.string(),
4059
+ authorId: z112.string(),
4060
+ threadId: z112.string(),
4061
+ roomId: z112.string(),
4062
+ createdAt: z112.coerce.date(),
4063
+ editedAt: z112.coerce.date().optional(),
4064
+ deletedAt: z112.coerce.date().optional(),
4065
+ body: z112.string()
4066
+ });
4067
+ var DocumentationCommentThread = z112.object({
4068
+ id: z112.string(),
4069
+ roomId: z112.string(),
4070
+ pagePersistentId: z112.string(),
4071
+ brandId: z112.string(),
4072
+ designSystemVersionId: z112.string(),
4073
+ designSystemId: z112.string(),
4074
+ blockId: z112.string().optional(),
4075
+ resolved: z112.boolean(),
4076
+ createdAt: z112.coerce.date(),
4077
+ updatedAt: z112.coerce.date()
4078
+ });
4079
+
4080
+ // src/dsm/element-snapshots/base.ts
4081
+ import { z as z113 } from "zod";
4082
+ var DesignElementSnapshotReason = z113.enum(["Publish", "Deletion"]);
4083
+ var DesignElementSnapshotBase = z113.object({
4084
+ id: z113.string(),
4085
+ persistentId: z113.string(),
4086
+ designSystemVersionId: z113.string(),
4087
+ createdAt: z113.coerce.date(),
4088
+ updatedAt: z113.coerce.date(),
4042
4089
  reason: DesignElementSnapshotReason,
4043
- createdByUserId: z111.string()
4090
+ createdByUserId: z113.string()
4044
4091
  });
4045
4092
  function pickLatestSnapshots(snapshots, getSnapshotElementId) {
4046
4093
  const groupedSnapshots = groupBy(snapshots, getSnapshotElementId);
@@ -4051,11 +4098,11 @@ function pickLatestSnapshots(snapshots, getSnapshotElementId) {
4051
4098
  }
4052
4099
 
4053
4100
  // src/dsm/element-snapshots/documentation-page-snapshot.ts
4054
- import { z as z112 } from "zod";
4101
+ import { z as z114 } from "zod";
4055
4102
  var DocumentationPageSnapshot = DesignElementSnapshotBase.extend({
4056
4103
  page: DocumentationPageV2,
4057
- pageContentHash: z112.string(),
4058
- pageContentStorageKey: z112.string()
4104
+ pageContentHash: z114.string(),
4105
+ pageContentStorageKey: z114.string()
4059
4106
  });
4060
4107
  function pickLatestPageSnapshots(snapshots) {
4061
4108
  return pickLatestSnapshots(snapshots, (s) => s.page.id);
@@ -4070,121 +4117,121 @@ function pickLatestGroupSnapshots(snapshots) {
4070
4117
  }
4071
4118
 
4072
4119
  // src/dsm/membership/design-system-membership.ts
4073
- import { z as z133 } from "zod";
4120
+ import { z as z135 } from "zod";
4074
4121
 
4075
4122
  // src/workspace/npm-registry-settings.ts
4076
- import { z as z113 } from "zod";
4077
- var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
4078
- var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4079
- var NpmRegistryBasicAuthConfig = z113.object({
4080
- authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
4081
- username: z113.string(),
4082
- password: z113.string()
4083
- });
4084
- var NpmRegistryBearerAuthConfig = z113.object({
4085
- authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
4086
- accessToken: z113.string()
4087
- });
4088
- var NpmRegistryNoAuthConfig = z113.object({
4089
- authType: z113.literal(NpmRegistryAuthType.Enum.None)
4090
- });
4091
- var NpmRegistrCustomAuthConfig = z113.object({
4092
- authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
4093
- authHeaderName: z113.string(),
4094
- authHeaderValue: z113.string()
4095
- });
4096
- var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
4123
+ import { z as z115 } from "zod";
4124
+ var NpmRegistryAuthType = z115.enum(["Basic", "Bearer", "None", "Custom"]);
4125
+ var NpmRegistryType = z115.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
4126
+ var NpmRegistryBasicAuthConfig = z115.object({
4127
+ authType: z115.literal(NpmRegistryAuthType.Enum.Basic),
4128
+ username: z115.string(),
4129
+ password: z115.string()
4130
+ });
4131
+ var NpmRegistryBearerAuthConfig = z115.object({
4132
+ authType: z115.literal(NpmRegistryAuthType.Enum.Bearer),
4133
+ accessToken: z115.string()
4134
+ });
4135
+ var NpmRegistryNoAuthConfig = z115.object({
4136
+ authType: z115.literal(NpmRegistryAuthType.Enum.None)
4137
+ });
4138
+ var NpmRegistrCustomAuthConfig = z115.object({
4139
+ authType: z115.literal(NpmRegistryAuthType.Enum.Custom),
4140
+ authHeaderName: z115.string(),
4141
+ authHeaderValue: z115.string()
4142
+ });
4143
+ var NpmRegistryAuthConfig = z115.discriminatedUnion("authType", [
4097
4144
  NpmRegistryBasicAuthConfig,
4098
4145
  NpmRegistryBearerAuthConfig,
4099
4146
  NpmRegistryNoAuthConfig,
4100
4147
  NpmRegistrCustomAuthConfig
4101
4148
  ]);
4102
- var NpmRegistryConfigBase = z113.object({
4149
+ var NpmRegistryConfigBase = z115.object({
4103
4150
  registryType: NpmRegistryType,
4104
- enabledScopes: z113.array(z113.string()),
4105
- customRegistryUrl: z113.string().optional(),
4106
- bypassProxy: z113.boolean().default(false),
4107
- npmProxyRegistryConfigId: z113.string().optional(),
4108
- npmProxyVersion: z113.number().optional()
4151
+ enabledScopes: z115.array(z115.string()),
4152
+ customRegistryUrl: z115.string().optional(),
4153
+ bypassProxy: z115.boolean().default(false),
4154
+ npmProxyRegistryConfigId: z115.string().optional(),
4155
+ npmProxyVersion: z115.number().optional()
4109
4156
  });
4110
4157
  var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
4111
4158
 
4112
4159
  // src/workspace/sso-provider.ts
4113
- import { z as z114 } from "zod";
4114
- var SsoProvider = z114.object({
4115
- providerId: z114.string(),
4116
- defaultAutoInviteValue: z114.boolean(),
4117
- autoInviteDomains: z114.record(z114.string(), z114.boolean()),
4118
- skipDocsSupernovaLogin: z114.boolean(),
4119
- areInvitesDisabled: z114.boolean(),
4120
- isTestMode: z114.boolean(),
4121
- emailDomains: z114.array(z114.string()),
4122
- metadataXml: z114.string().nullish()
4160
+ import { z as z116 } from "zod";
4161
+ var SsoProvider = z116.object({
4162
+ providerId: z116.string(),
4163
+ defaultAutoInviteValue: z116.boolean(),
4164
+ autoInviteDomains: z116.record(z116.string(), z116.boolean()),
4165
+ skipDocsSupernovaLogin: z116.boolean(),
4166
+ areInvitesDisabled: z116.boolean(),
4167
+ isTestMode: z116.boolean(),
4168
+ emailDomains: z116.array(z116.string()),
4169
+ metadataXml: z116.string().nullish()
4123
4170
  });
4124
4171
 
4125
4172
  // src/workspace/user-invite.ts
4126
- import { z as z116 } from "zod";
4173
+ import { z as z118 } from "zod";
4127
4174
 
4128
4175
  // src/workspace/workspace-role.ts
4129
- import { z as z115 } from "zod";
4130
- var WorkspaceRoleSchema = z115.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4176
+ import { z as z117 } from "zod";
4177
+ var WorkspaceRoleSchema = z117.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
4131
4178
  var WorkspaceRole = WorkspaceRoleSchema.enum;
4132
4179
 
4133
4180
  // src/workspace/user-invite.ts
4134
4181
  var MAX_MEMBERS_COUNT = 100;
4135
- var UserInvite = z116.object({
4136
- email: z116.string().email().trim().transform((value) => value.toLowerCase()),
4182
+ var UserInvite = z118.object({
4183
+ email: z118.string().email().trim().transform((value) => value.toLowerCase()),
4137
4184
  role: WorkspaceRoleSchema
4138
4185
  });
4139
- var UserInvites = z116.array(UserInvite).max(MAX_MEMBERS_COUNT);
4186
+ var UserInvites = z118.array(UserInvite).max(MAX_MEMBERS_COUNT);
4140
4187
 
4141
4188
  // src/workspace/workspace-configuration.ts
4142
- import { z as z118 } from "zod";
4189
+ import { z as z120 } from "zod";
4143
4190
 
4144
4191
  // src/workspace/workspace.ts
4145
4192
  import IPCIDR from "ip-cidr";
4146
- import { z as z117 } from "zod";
4193
+ import { z as z119 } from "zod";
4147
4194
  var isValidCIDR = (value) => {
4148
4195
  return IPCIDR.isValidAddress(value);
4149
4196
  };
4150
- var WorkspaceIpWhitelistEntry = z117.object({
4151
- isEnabled: z117.boolean(),
4152
- name: z117.string(),
4153
- range: z117.string().refine(isValidCIDR, {
4197
+ var WorkspaceIpWhitelistEntry = z119.object({
4198
+ isEnabled: z119.boolean(),
4199
+ name: z119.string(),
4200
+ range: z119.string().refine(isValidCIDR, {
4154
4201
  message: "Invalid IP CIDR"
4155
4202
  })
4156
4203
  });
4157
- var WorkspaceIpSettings = z117.object({
4158
- isEnabledForCloud: z117.boolean(),
4159
- isEnabledForDocs: z117.boolean(),
4160
- entries: z117.array(WorkspaceIpWhitelistEntry)
4204
+ var WorkspaceIpSettings = z119.object({
4205
+ isEnabledForCloud: z119.boolean(),
4206
+ isEnabledForDocs: z119.boolean(),
4207
+ entries: z119.array(WorkspaceIpWhitelistEntry)
4161
4208
  });
4162
- var WorkspaceProfile = z117.object({
4163
- name: z117.string(),
4164
- handle: z117.string(),
4165
- color: z117.string(),
4166
- avatar: nullishToOptional(z117.string()),
4209
+ var WorkspaceProfile = z119.object({
4210
+ name: z119.string(),
4211
+ handle: z119.string(),
4212
+ color: z119.string(),
4213
+ avatar: nullishToOptional(z119.string()),
4167
4214
  billingDetails: nullishToOptional(BillingDetails)
4168
4215
  });
4169
4216
  var WorkspaceProfileUpdate = WorkspaceProfile.omit({
4170
4217
  avatar: true
4171
4218
  });
4172
- var Workspace = z117.object({
4173
- id: z117.string(),
4219
+ var Workspace = z119.object({
4220
+ id: z119.string(),
4174
4221
  profile: WorkspaceProfile,
4175
4222
  subscription: Subscription,
4176
4223
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4177
4224
  sso: nullishToOptional(SsoProvider),
4178
4225
  npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
4179
4226
  });
4180
- var WorkspaceWithDesignSystems = z117.object({
4227
+ var WorkspaceWithDesignSystems = z119.object({
4181
4228
  workspace: Workspace,
4182
- designSystems: z117.array(DesignSystem)
4229
+ designSystems: z119.array(DesignSystem)
4183
4230
  });
4184
4231
 
4185
4232
  // src/workspace/workspace-configuration.ts
4186
- var WorkspaceConfigurationUpdate = z118.object({
4187
- id: z118.string(),
4233
+ var WorkspaceConfigurationUpdate = z120.object({
4234
+ id: z120.string(),
4188
4235
  ipWhitelist: WorkspaceIpSettings.optional(),
4189
4236
  sso: SsoProvider.optional(),
4190
4237
  npmRegistrySettings: NpmRegistryConfig.optional(),
@@ -4192,59 +4239,59 @@ var WorkspaceConfigurationUpdate = z118.object({
4192
4239
  });
4193
4240
 
4194
4241
  // src/workspace/workspace-context.ts
4195
- import { z as z119 } from "zod";
4196
- var WorkspaceContext = z119.object({
4197
- workspaceId: z119.string(),
4242
+ import { z as z121 } from "zod";
4243
+ var WorkspaceContext = z121.object({
4244
+ workspaceId: z121.string(),
4198
4245
  product: ProductCodeSchema,
4199
4246
  ipWhitelist: nullishToOptional(WorkspaceIpSettings),
4200
- publicDesignSystem: z119.boolean().optional()
4247
+ publicDesignSystem: z121.boolean().optional()
4201
4248
  });
4202
4249
 
4203
4250
  // src/workspace/workspace-create.ts
4204
- import { z as z120 } from "zod";
4251
+ import { z as z122 } from "zod";
4205
4252
  var WORKSPACE_NAME_MIN_LENGTH = 2;
4206
4253
  var WORKSPACE_NAME_MAX_LENGTH = 64;
4207
4254
  var HANDLE_MIN_LENGTH = 2;
4208
4255
  var HANDLE_MAX_LENGTH = 64;
4209
- var CreateWorkspaceInput = z120.object({
4210
- name: z120.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4211
- handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4256
+ var CreateWorkspaceInput = z122.object({
4257
+ name: z122.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
4258
+ handle: z122.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
4212
4259
  });
4213
4260
 
4214
4261
  // src/workspace/workspace-invitations.ts
4215
- import { z as z121 } from "zod";
4216
- var WorkspaceInvitation = z121.object({
4217
- id: z121.string(),
4218
- email: z121.string().email(),
4219
- createdAt: z121.coerce.date(),
4220
- resentAt: z121.coerce.date().nullish(),
4221
- role: z121.nativeEnum(WorkspaceRole),
4222
- workspaceId: z121.string(),
4223
- invitedBy: z121.string()
4262
+ import { z as z123 } from "zod";
4263
+ var WorkspaceInvitation = z123.object({
4264
+ id: z123.string(),
4265
+ email: z123.string().email(),
4266
+ createdAt: z123.coerce.date(),
4267
+ resentAt: z123.coerce.date().nullish(),
4268
+ role: z123.nativeEnum(WorkspaceRole),
4269
+ workspaceId: z123.string(),
4270
+ invitedBy: z123.string()
4224
4271
  });
4225
4272
 
4226
4273
  // src/workspace/workspace-membership.ts
4227
- import { z as z130 } from "zod";
4274
+ import { z as z132 } from "zod";
4228
4275
 
4229
4276
  // src/users/linked-integrations.ts
4230
- import { z as z122 } from "zod";
4231
- var IntegrationAuthType = z122.union([z122.literal("OAuth2"), z122.literal("PAT")]);
4232
- var ExternalServiceType = z122.union([
4233
- z122.literal("figma"),
4234
- z122.literal("github"),
4235
- z122.literal("azure"),
4236
- z122.literal("gitlab"),
4237
- z122.literal("bitbucket")
4277
+ import { z as z124 } from "zod";
4278
+ var IntegrationAuthType = z124.union([z124.literal("OAuth2"), z124.literal("PAT")]);
4279
+ var ExternalServiceType = z124.union([
4280
+ z124.literal("figma"),
4281
+ z124.literal("github"),
4282
+ z124.literal("azure"),
4283
+ z124.literal("gitlab"),
4284
+ z124.literal("bitbucket")
4238
4285
  ]);
4239
- var IntegrationUserInfo = z122.object({
4240
- id: z122.string(),
4241
- handle: z122.string().optional(),
4242
- avatarUrl: z122.string().optional(),
4243
- email: z122.string().optional(),
4286
+ var IntegrationUserInfo = z124.object({
4287
+ id: z124.string(),
4288
+ handle: z124.string().optional(),
4289
+ avatarUrl: z124.string().optional(),
4290
+ email: z124.string().optional(),
4244
4291
  authType: IntegrationAuthType.optional(),
4245
- customUrl: z122.string().optional()
4292
+ customUrl: z124.string().optional()
4246
4293
  });
4247
- var UserLinkedIntegrations = z122.object({
4294
+ var UserLinkedIntegrations = z124.object({
4248
4295
  figma: IntegrationUserInfo.optional(),
4249
4296
  github: IntegrationUserInfo.array().optional(),
4250
4297
  azure: IntegrationUserInfo.array().optional(),
@@ -4253,38 +4300,38 @@ var UserLinkedIntegrations = z122.object({
4253
4300
  });
4254
4301
 
4255
4302
  // src/users/user-analytics-cleanup-schedule.ts
4256
- import { z as z123 } from "zod";
4257
- var UserAnalyticsCleanupSchedule = z123.object({
4258
- userId: z123.string(),
4259
- createdAt: z123.coerce.date(),
4260
- deleteAt: z123.coerce.date()
4303
+ import { z as z125 } from "zod";
4304
+ var UserAnalyticsCleanupSchedule = z125.object({
4305
+ userId: z125.string(),
4306
+ createdAt: z125.coerce.date(),
4307
+ deleteAt: z125.coerce.date()
4261
4308
  });
4262
4309
  var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
4263
4310
  createdAt: true
4264
4311
  });
4265
4312
 
4266
4313
  // src/users/user-identity.ts
4267
- import { z as z124 } from "zod";
4268
- var UserIdentity = z124.object({
4269
- id: z124.string(),
4270
- userId: z124.string()
4314
+ import { z as z126 } from "zod";
4315
+ var UserIdentity = z126.object({
4316
+ id: z126.string(),
4317
+ userId: z126.string()
4271
4318
  });
4272
4319
 
4273
4320
  // src/users/user-minified.ts
4274
- import { z as z125 } from "zod";
4275
- var UserMinified = z125.object({
4276
- id: z125.string(),
4277
- name: z125.string(),
4278
- email: z125.string(),
4279
- avatar: z125.string().optional()
4321
+ import { z as z127 } from "zod";
4322
+ var UserMinified = z127.object({
4323
+ id: z127.string(),
4324
+ name: z127.string(),
4325
+ email: z127.string(),
4326
+ avatar: z127.string().optional()
4280
4327
  });
4281
4328
 
4282
4329
  // src/users/user-notification-settings.ts
4283
- import { z as z126 } from "zod";
4284
- var LiveblocksNotificationSettings = z126.object({
4285
- sendCommentNotificationEmails: z126.boolean()
4330
+ import { z as z128 } from "zod";
4331
+ var LiveblocksNotificationSettings = z128.object({
4332
+ sendCommentNotificationEmails: z128.boolean()
4286
4333
  });
4287
- var UserNotificationSettings = z126.object({
4334
+ var UserNotificationSettings = z128.object({
4288
4335
  liveblocksNotificationSettings: LiveblocksNotificationSettings
4289
4336
  });
4290
4337
  var defaultNotificationSettings = {
@@ -4294,27 +4341,27 @@ var defaultNotificationSettings = {
4294
4341
  };
4295
4342
 
4296
4343
  // src/users/user-profile.ts
4297
- import { z as z127 } from "zod";
4298
- var UserOnboardingDepartment = z127.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4299
- var UserOnboardingJobLevel = z127.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4300
- var UserOnboarding = z127.object({
4301
- companyName: z127.string().optional(),
4302
- numberOfPeopleInOrg: z127.string().optional(),
4303
- numberOfPeopleInDesignTeam: z127.string().optional(),
4344
+ import { z as z129 } from "zod";
4345
+ var UserOnboardingDepartment = z129.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
4346
+ var UserOnboardingJobLevel = z129.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
4347
+ var UserOnboarding = z129.object({
4348
+ companyName: z129.string().optional(),
4349
+ numberOfPeopleInOrg: z129.string().optional(),
4350
+ numberOfPeopleInDesignTeam: z129.string().optional(),
4304
4351
  department: UserOnboardingDepartment.optional(),
4305
- jobTitle: z127.string().optional(),
4306
- phase: z127.string().optional(),
4352
+ jobTitle: z129.string().optional(),
4353
+ phase: z129.string().optional(),
4307
4354
  jobLevel: UserOnboardingJobLevel.optional(),
4308
- designSystemName: z127.string().optional(),
4309
- defaultDestination: z127.string().optional(),
4310
- figmaUrl: z127.string().optional(),
4311
- isPageDraftOnboardingFinished: z127.boolean().optional(),
4312
- isApprovalsOnboardingFinished: z127.boolean().optional()
4313
- });
4314
- var UserProfile = z127.object({
4315
- name: z127.string(),
4316
- avatar: z127.string().optional(),
4317
- nickname: z127.string().optional(),
4355
+ designSystemName: z129.string().optional(),
4356
+ defaultDestination: z129.string().optional(),
4357
+ figmaUrl: z129.string().optional(),
4358
+ isPageDraftOnboardingFinished: z129.boolean().optional(),
4359
+ isApprovalsOnboardingFinished: z129.boolean().optional()
4360
+ });
4361
+ var UserProfile = z129.object({
4362
+ name: z129.string(),
4363
+ avatar: z129.string().optional(),
4364
+ nickname: z129.string().optional(),
4318
4365
  onboarding: UserOnboarding.optional()
4319
4366
  });
4320
4367
  var UserProfileUpdate = UserProfile.partial().omit({
@@ -4322,48 +4369,48 @@ var UserProfileUpdate = UserProfile.partial().omit({
4322
4369
  });
4323
4370
 
4324
4371
  // src/users/user-test.ts
4325
- import { z as z128 } from "zod";
4326
- var UserTest = z128.object({
4327
- id: z128.string(),
4328
- email: z128.string()
4372
+ import { z as z130 } from "zod";
4373
+ var UserTest = z130.object({
4374
+ id: z130.string(),
4375
+ email: z130.string()
4329
4376
  });
4330
4377
 
4331
4378
  // src/users/user.ts
4332
- import { z as z129 } from "zod";
4333
- var UserSource = z129.enum(["SignUp", "Invite", "SSO"]);
4334
- var User = z129.object({
4335
- id: z129.string(),
4336
- email: z129.string(),
4337
- emailVerified: z129.boolean(),
4338
- createdAt: z129.coerce.date(),
4339
- trialExpiresAt: z129.coerce.date().optional(),
4379
+ import { z as z131 } from "zod";
4380
+ var UserSource = z131.enum(["SignUp", "Invite", "SSO"]);
4381
+ var User = z131.object({
4382
+ id: z131.string(),
4383
+ email: z131.string(),
4384
+ emailVerified: z131.boolean(),
4385
+ createdAt: z131.coerce.date(),
4386
+ trialExpiresAt: z131.coerce.date().optional(),
4340
4387
  profile: UserProfile,
4341
4388
  linkedIntegrations: UserLinkedIntegrations.optional(),
4342
- loggedOutAt: z129.coerce.date().optional(),
4343
- isProtected: z129.boolean(),
4389
+ loggedOutAt: z131.coerce.date().optional(),
4390
+ isProtected: z131.boolean(),
4344
4391
  source: UserSource.optional()
4345
4392
  });
4346
4393
 
4347
4394
  // src/workspace/workspace-membership.ts
4348
- var WorkspaceMembership = z130.object({
4349
- id: z130.string(),
4350
- userId: z130.string(),
4351
- workspaceId: z130.string(),
4352
- workspaceRole: z130.nativeEnum(WorkspaceRole),
4395
+ var WorkspaceMembership = z132.object({
4396
+ id: z132.string(),
4397
+ userId: z132.string(),
4398
+ workspaceId: z132.string(),
4399
+ workspaceRole: z132.nativeEnum(WorkspaceRole),
4353
4400
  notificationSettings: UserNotificationSettings
4354
4401
  });
4355
- var UpdateMembershipRolesInput = z130.object({
4356
- members: z130.array(
4357
- z130.object({
4358
- userId: z130.string(),
4359
- role: z130.nativeEnum(WorkspaceRole)
4402
+ var UpdateMembershipRolesInput = z132.object({
4403
+ members: z132.array(
4404
+ z132.object({
4405
+ userId: z132.string(),
4406
+ role: z132.nativeEnum(WorkspaceRole)
4360
4407
  })
4361
4408
  )
4362
4409
  });
4363
4410
 
4364
4411
  // src/dsm/membership/ds-role.ts
4365
- import { z as z131 } from "zod";
4366
- var DesignSystemRole = z131.enum([
4412
+ import { z as z133 } from "zod";
4413
+ var DesignSystemRole = z133.enum([
4367
4414
  WorkspaceRole.Admin,
4368
4415
  WorkspaceRole.Contributor,
4369
4416
  WorkspaceRole.Creator,
@@ -4387,46 +4434,46 @@ function workspaceRoleToDesignSystemRole(role) {
4387
4434
  }
4388
4435
 
4389
4436
  // src/dsm/membership/invitations.ts
4390
- import { z as z132 } from "zod";
4391
- var DesignSystemInvitation = z132.object({
4392
- id: z132.string(),
4393
- designSystemId: z132.string(),
4394
- workspaceInvitationId: z132.string(),
4437
+ import { z as z134 } from "zod";
4438
+ var DesignSystemInvitation = z134.object({
4439
+ id: z134.string(),
4440
+ designSystemId: z134.string(),
4441
+ workspaceInvitationId: z134.string(),
4395
4442
  designSystemRole: DesignSystemRole.optional(),
4396
- workspaceRole: WorkspaceRoleSchema.optional()
4443
+ workspaceRole: WorkspaceRoleSchema
4397
4444
  });
4398
4445
 
4399
4446
  // src/dsm/membership/design-system-membership.ts
4400
- var DesignSystemMembership = z133.object({
4401
- id: z133.string(),
4402
- userId: z133.string(),
4403
- designSystemId: z133.string(),
4447
+ var DesignSystemMembership = z135.object({
4448
+ id: z135.string(),
4449
+ userId: z135.string(),
4450
+ designSystemId: z135.string(),
4404
4451
  designSystemRole: DesignSystemRole.optional(),
4405
- workspaceMembershipId: z133.string(),
4406
- workspaceRole: WorkspaceRoleSchema.optional()
4452
+ workspaceMembershipId: z135.string(),
4453
+ workspaceRole: WorkspaceRoleSchema
4407
4454
  });
4408
- var DesignSystemMembers = z133.object({
4455
+ var DesignSystemMembers = z135.object({
4409
4456
  members: DesignSystemMembership.array(),
4410
4457
  invitations: DesignSystemInvitation.array()
4411
4458
  });
4412
- var DesignSystemPendingMemberInvitation = z133.object({
4413
- inviteId: z133.string(),
4459
+ var DesignSystemPendingMemberInvitation = z135.object({
4460
+ inviteId: z135.string(),
4414
4461
  /**
4415
4462
  * Role that the user will have in the design system, undefined
4416
4463
  * if it should be inherited from the workspace
4417
4464
  */
4418
4465
  designSystemRole: DesignSystemRole.optional()
4419
4466
  });
4420
- var DesignSystemUserInvitation = z133.object({
4421
- userId: z133.string(),
4467
+ var DesignSystemUserInvitation = z135.object({
4468
+ userId: z135.string(),
4422
4469
  /**
4423
4470
  * Role that the user will have in the design system, undefined
4424
4471
  * if it should be inherited from the workspace
4425
4472
  */
4426
4473
  designSystemRole: DesignSystemRole.optional()
4427
4474
  });
4428
- var DesignSystemInvite = z133.object({
4429
- email: z133.string(),
4475
+ var DesignSystemInvite = z135.object({
4476
+ email: z135.string(),
4430
4477
  workspaceRole: WorkspaceRoleSchema,
4431
4478
  /**
4432
4479
  * Role that the user will have in the design system, undefined
@@ -4434,284 +4481,284 @@ var DesignSystemInvite = z133.object({
4434
4481
  */
4435
4482
  designSystemRole: DesignSystemRole.optional()
4436
4483
  });
4437
- var DesignSystemMemberUpdate = z133.object({
4438
- userId: z133.string(),
4484
+ var DesignSystemMemberUpdate = z135.object({
4485
+ userId: z135.string(),
4439
4486
  designSystemRole: DesignSystemRole.nullable()
4440
4487
  });
4441
- var DesignSystemInviteUpdate = z133.object({
4488
+ var DesignSystemInviteUpdate = z135.object({
4442
4489
  /**
4443
4490
  * Workspace invitation id
4444
4491
  */
4445
- inviteId: z133.string(),
4492
+ inviteId: z135.string(),
4446
4493
  designSystemRole: DesignSystemRole.nullable()
4447
4494
  });
4448
- var DesignSystemMembershipUpdates = z133.object({
4495
+ var DesignSystemMembershipUpdates = z135.object({
4449
4496
  usersToInvite: DesignSystemUserInvitation.array().optional(),
4450
4497
  invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
4451
4498
  emailsToInvite: DesignSystemInvite.array().optional(),
4452
4499
  usersToUpdate: DesignSystemMemberUpdate.array().optional(),
4453
4500
  invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
4454
- removeUserIds: z133.string().array().optional(),
4455
- deleteInvitationIds: z133.string().array().optional()
4501
+ removeUserIds: z135.string().array().optional(),
4502
+ deleteInvitationIds: z135.string().array().optional()
4456
4503
  });
4457
4504
 
4458
4505
  // src/dsm/views/column.ts
4459
- import { z as z134 } from "zod";
4460
- var ElementViewBaseColumnType = z134.enum(["Name", "Description", "Value", "UpdatedAt"]);
4461
- var ElementViewColumnType = z134.union([
4462
- z134.literal("BaseProperty"),
4463
- z134.literal("PropertyDefinition"),
4464
- z134.literal("Theme")
4506
+ import { z as z136 } from "zod";
4507
+ var ElementViewBaseColumnType = z136.enum(["Name", "Description", "Value", "UpdatedAt"]);
4508
+ var ElementViewColumnType = z136.union([
4509
+ z136.literal("BaseProperty"),
4510
+ z136.literal("PropertyDefinition"),
4511
+ z136.literal("Theme")
4465
4512
  ]);
4466
- var ElementViewColumnSharedAttributes = z134.object({
4467
- id: z134.string(),
4468
- persistentId: z134.string(),
4469
- elementDataViewId: z134.string(),
4470
- sortPosition: z134.number(),
4471
- width: z134.number()
4513
+ var ElementViewColumnSharedAttributes = z136.object({
4514
+ id: z136.string(),
4515
+ persistentId: z136.string(),
4516
+ elementDataViewId: z136.string(),
4517
+ sortPosition: z136.number(),
4518
+ width: z136.number()
4472
4519
  });
4473
4520
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
4474
- type: z134.literal("BaseProperty"),
4521
+ type: z136.literal("BaseProperty"),
4475
4522
  basePropertyType: ElementViewBaseColumnType
4476
4523
  });
4477
4524
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
4478
- type: z134.literal("PropertyDefinition"),
4479
- propertyDefinitionId: z134.string()
4525
+ type: z136.literal("PropertyDefinition"),
4526
+ propertyDefinitionId: z136.string()
4480
4527
  });
4481
4528
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
4482
- type: z134.literal("Theme"),
4483
- themeId: z134.string()
4529
+ type: z136.literal("Theme"),
4530
+ themeId: z136.string()
4484
4531
  });
4485
- var ElementViewColumn = z134.discriminatedUnion("type", [
4532
+ var ElementViewColumn = z136.discriminatedUnion("type", [
4486
4533
  ElementViewBasePropertyColumn,
4487
4534
  ElementViewPropertyDefinitionColumn,
4488
4535
  ElementViewThemeColumn
4489
4536
  ]);
4490
4537
 
4491
4538
  // src/dsm/views/view.ts
4492
- import { z as z135 } from "zod";
4493
- var ElementView = z135.object({
4494
- id: z135.string(),
4495
- persistentId: z135.string(),
4496
- designSystemVersionId: z135.string(),
4497
- name: z135.string(),
4498
- description: z135.string(),
4539
+ import { z as z137 } from "zod";
4540
+ var ElementView = z137.object({
4541
+ id: z137.string(),
4542
+ persistentId: z137.string(),
4543
+ designSystemVersionId: z137.string(),
4544
+ name: z137.string(),
4545
+ description: z137.string(),
4499
4546
  targetElementType: ElementPropertyTargetType,
4500
- isDefault: z135.boolean()
4547
+ isDefault: z137.boolean()
4501
4548
  });
4502
4549
 
4503
4550
  // src/dsm/brand.ts
4504
- import { z as z136 } from "zod";
4505
- var Brand = z136.object({
4506
- id: z136.string(),
4507
- designSystemVersionId: z136.string(),
4508
- persistentId: z136.string(),
4509
- name: z136.string(),
4510
- description: z136.string()
4551
+ import { z as z138 } from "zod";
4552
+ var Brand = z138.object({
4553
+ id: z138.string(),
4554
+ designSystemVersionId: z138.string(),
4555
+ persistentId: z138.string(),
4556
+ name: z138.string(),
4557
+ description: z138.string()
4511
4558
  });
4512
4559
 
4513
4560
  // src/dsm/design-system.ts
4514
- import { z as z137 } from "zod";
4515
- var DesignSystemAccessMode = z137.enum(["Open", "InviteOnly"]);
4516
- var DesignSystemSwitcher = z137.object({
4517
- isEnabled: z137.boolean(),
4518
- designSystemIds: z137.array(z137.string())
4561
+ import { z as z139 } from "zod";
4562
+ var DesignSystemAccessMode = z139.enum(["Open", "InviteOnly"]);
4563
+ var DesignSystemSwitcher = z139.object({
4564
+ isEnabled: z139.boolean(),
4565
+ designSystemIds: z139.array(z139.string())
4519
4566
  });
4520
- var DesignSystem = z137.object({
4521
- id: z137.string(),
4522
- workspaceId: z137.string(),
4523
- name: z137.string(),
4524
- description: z137.string(),
4525
- docExporterId: nullishToOptional(z137.string()),
4526
- docSlug: z137.string(),
4527
- docUserSlug: nullishToOptional(z137.string()),
4528
- docSlugDeprecated: z137.string(),
4529
- isMultibrand: z137.boolean(),
4530
- docViewUrl: nullishToOptional(z137.string()),
4531
- basePrefixes: z137.array(z137.string()),
4567
+ var DesignSystem = z139.object({
4568
+ id: z139.string(),
4569
+ workspaceId: z139.string(),
4570
+ name: z139.string(),
4571
+ description: z139.string(),
4572
+ docExporterId: nullishToOptional(z139.string()),
4573
+ docSlug: z139.string(),
4574
+ docUserSlug: nullishToOptional(z139.string()),
4575
+ docSlugDeprecated: z139.string(),
4576
+ isMultibrand: z139.boolean(),
4577
+ docViewUrl: nullishToOptional(z139.string()),
4578
+ basePrefixes: z139.array(z139.string()),
4532
4579
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
4533
- isApprovalFeatureEnabled: z137.boolean(),
4534
- approvalRequiredForPublishing: z137.boolean(),
4580
+ isApprovalFeatureEnabled: z139.boolean(),
4581
+ approvalRequiredForPublishing: z139.boolean(),
4535
4582
  accessMode: DesignSystemAccessMode,
4536
- membersGenerated: z137.boolean(),
4537
- createdAt: z137.coerce.date(),
4538
- updatedAt: z137.coerce.date()
4583
+ membersGenerated: z139.boolean(),
4584
+ createdAt: z139.coerce.date(),
4585
+ updatedAt: z139.coerce.date()
4539
4586
  });
4540
4587
 
4541
4588
  // src/dsm/exporter-property-values-collection.ts
4542
- import { z as z138 } from "zod";
4543
- var ExporterPropertyImageValue = z138.object({
4589
+ import { z as z140 } from "zod";
4590
+ var ExporterPropertyImageValue = z140.object({
4544
4591
  asset: PageBlockAsset.optional(),
4545
- assetId: z138.string().optional(),
4546
- assetUrl: z138.string().optional()
4547
- });
4548
- var ExporterPropertyValue = z138.object({
4549
- key: z138.string(),
4550
- value: z138.union([
4551
- z138.number(),
4552
- z138.string(),
4553
- z138.boolean(),
4592
+ assetId: z140.string().optional(),
4593
+ assetUrl: z140.string().optional()
4594
+ });
4595
+ var ExporterPropertyValue = z140.object({
4596
+ key: z140.string(),
4597
+ value: z140.union([
4598
+ z140.number(),
4599
+ z140.string(),
4600
+ z140.boolean(),
4554
4601
  ExporterPropertyImageValue,
4555
4602
  ColorTokenData,
4556
4603
  TypographyTokenData
4557
4604
  ])
4558
4605
  });
4559
- var ExporterPropertyValuesCollection = z138.object({
4560
- id: z138.string(),
4561
- designSystemId: z138.string(),
4562
- exporterId: z138.string(),
4563
- values: z138.array(ExporterPropertyValue)
4606
+ var ExporterPropertyValuesCollection = z140.object({
4607
+ id: z140.string(),
4608
+ designSystemId: z140.string(),
4609
+ exporterId: z140.string(),
4610
+ values: z140.array(ExporterPropertyValue)
4564
4611
  });
4565
4612
 
4566
4613
  // src/dsm/published-doc-page.ts
4567
- import { z as z139 } from "zod";
4614
+ import { z as z141 } from "zod";
4568
4615
  var SHORT_PERSISTENT_ID_LENGTH = 8;
4569
4616
  function tryParseShortPersistentId(url = "/") {
4570
4617
  const lastUrlPart = url.split("/").pop() || "";
4571
4618
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
4572
4619
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
4573
4620
  }
4574
- var PublishedDocPage = z139.object({
4575
- id: z139.string(),
4576
- publishedDocId: z139.string(),
4577
- pageShortPersistentId: z139.string(),
4578
- pathV1: z139.string(),
4579
- pathV2: z139.string(),
4580
- storagePath: z139.string(),
4581
- locale: z139.string().optional(),
4582
- isPrivate: z139.boolean(),
4583
- isHidden: z139.boolean(),
4584
- createdAt: z139.coerce.date(),
4585
- updatedAt: z139.coerce.date()
4621
+ var PublishedDocPage = z141.object({
4622
+ id: z141.string(),
4623
+ publishedDocId: z141.string(),
4624
+ pageShortPersistentId: z141.string(),
4625
+ pathV1: z141.string(),
4626
+ pathV2: z141.string(),
4627
+ storagePath: z141.string(),
4628
+ locale: z141.string().optional(),
4629
+ isPrivate: z141.boolean(),
4630
+ isHidden: z141.boolean(),
4631
+ createdAt: z141.coerce.date(),
4632
+ updatedAt: z141.coerce.date()
4586
4633
  });
4587
4634
 
4588
4635
  // src/dsm/published-doc.ts
4589
- import { z as z140 } from "zod";
4636
+ import { z as z142 } from "zod";
4590
4637
  var publishedDocEnvironments = ["Live", "Preview"];
4591
- var PublishedDocEnvironment = z140.enum(publishedDocEnvironments);
4592
- var PublishedDocsChecksums = z140.record(z140.string());
4593
- var PublishedDocRoutingVersion = z140.enum(["1", "2"]);
4594
- var PublishedDoc = z140.object({
4595
- id: z140.string(),
4596
- designSystemVersionId: z140.string(),
4597
- createdAt: z140.coerce.date(),
4598
- updatedAt: z140.coerce.date(),
4599
- lastPublishedAt: z140.coerce.date(),
4600
- isDefault: z140.boolean(),
4601
- isPublic: z140.boolean(),
4638
+ var PublishedDocEnvironment = z142.enum(publishedDocEnvironments);
4639
+ var PublishedDocsChecksums = z142.record(z142.string());
4640
+ var PublishedDocRoutingVersion = z142.enum(["1", "2"]);
4641
+ var PublishedDoc = z142.object({
4642
+ id: z142.string(),
4643
+ designSystemVersionId: z142.string(),
4644
+ createdAt: z142.coerce.date(),
4645
+ updatedAt: z142.coerce.date(),
4646
+ lastPublishedAt: z142.coerce.date(),
4647
+ isDefault: z142.boolean(),
4648
+ isPublic: z142.boolean(),
4602
4649
  environment: PublishedDocEnvironment,
4603
4650
  checksums: PublishedDocsChecksums,
4604
- storagePath: z140.string(),
4605
- wasMigrated: z140.boolean(),
4651
+ storagePath: z142.string(),
4652
+ wasMigrated: z142.boolean(),
4606
4653
  routingVersion: PublishedDocRoutingVersion,
4607
- usesLocalizations: z140.boolean(),
4608
- wasPublishedWithLocalizations: z140.boolean(),
4609
- tokenCount: z140.number(),
4610
- assetCount: z140.number()
4654
+ usesLocalizations: z142.boolean(),
4655
+ wasPublishedWithLocalizations: z142.boolean(),
4656
+ tokenCount: z142.number(),
4657
+ assetCount: z142.number()
4611
4658
  });
4612
4659
 
4613
4660
  // src/dsm/version.ts
4614
- import { z as z141 } from "zod";
4615
- var DesignSystemVersion = z141.object({
4616
- id: z141.string(),
4617
- version: z141.string(),
4618
- createdAt: z141.coerce.date(),
4619
- designSystemId: z141.string(),
4620
- name: z141.string(),
4621
- comment: z141.string(),
4622
- isReadonly: z141.boolean(),
4623
- changeLog: z141.string(),
4624
- parentId: z141.string().optional(),
4625
- isDraftsFeatureAdopted: z141.boolean()
4626
- });
4627
- var VersionCreationJobStatus = z141.enum(["Success", "InProgress", "Error"]);
4628
- var VersionCreationJob = z141.object({
4629
- id: z141.string(),
4630
- version: z141.string(),
4631
- designSystemId: z141.string(),
4632
- designSystemVersionId: nullishToOptional(z141.string()),
4661
+ import { z as z143 } from "zod";
4662
+ var DesignSystemVersion = z143.object({
4663
+ id: z143.string(),
4664
+ version: z143.string(),
4665
+ createdAt: z143.coerce.date(),
4666
+ designSystemId: z143.string(),
4667
+ name: z143.string(),
4668
+ comment: z143.string(),
4669
+ isReadonly: z143.boolean(),
4670
+ changeLog: z143.string(),
4671
+ parentId: z143.string().optional(),
4672
+ isDraftsFeatureAdopted: z143.boolean()
4673
+ });
4674
+ var VersionCreationJobStatus = z143.enum(["Success", "InProgress", "Error"]);
4675
+ var VersionCreationJob = z143.object({
4676
+ id: z143.string(),
4677
+ version: z143.string(),
4678
+ designSystemId: z143.string(),
4679
+ designSystemVersionId: nullishToOptional(z143.string()),
4633
4680
  status: VersionCreationJobStatus,
4634
- errorMessage: nullishToOptional(z141.string())
4681
+ errorMessage: nullishToOptional(z143.string())
4635
4682
  });
4636
4683
 
4637
4684
  // src/export/export-destinations.ts
4638
4685
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
4639
4686
  var BITBUCKET_MAX_LENGTH = 64;
4640
- var ExportJobDocumentationChanges = z142.object({
4641
- pagePersistentIds: z142.string().array(),
4642
- groupPersistentIds: z142.string().array()
4687
+ var ExportJobDocumentationChanges = z144.object({
4688
+ pagePersistentIds: z144.string().array(),
4689
+ groupPersistentIds: z144.string().array()
4643
4690
  });
4644
- var ExporterDestinationDocs = z142.object({
4691
+ var ExporterDestinationDocs = z144.object({
4645
4692
  environment: PublishedDocEnvironment,
4646
4693
  changes: nullishToOptional(ExportJobDocumentationChanges)
4647
4694
  });
4648
- var ExporterDestinationS3 = z142.object({});
4649
- var ExporterDestinationGithub = z142.object({
4650
- credentialId: z142.string().optional(),
4695
+ var ExporterDestinationS3 = z144.object({});
4696
+ var ExporterDestinationGithub = z144.object({
4697
+ credentialId: z144.string().optional(),
4651
4698
  // Repository
4652
- url: z142.string(),
4699
+ url: z144.string(),
4653
4700
  // Location
4654
- branch: z142.string(),
4655
- relativePath: nullishToOptional(z142.string()),
4701
+ branch: z144.string(),
4702
+ relativePath: nullishToOptional(z144.string()),
4656
4703
  // Commit metadata
4657
- commitAuthorName: nullishToOptional(z142.string()),
4658
- commitAuthorEmail: nullishToOptional(z142.string()),
4704
+ commitAuthorName: nullishToOptional(z144.string()),
4705
+ commitAuthorEmail: nullishToOptional(z144.string()),
4659
4706
  // Legacy deprecated fields. Use `credentialId` instead
4660
- connectionId: nullishToOptional(z142.string()),
4661
- userId: nullishToOptional(z142.number())
4707
+ connectionId: nullishToOptional(z144.string()),
4708
+ userId: nullishToOptional(z144.number())
4662
4709
  });
4663
- var ExporterDestinationAzure = z142.object({
4664
- credentialId: z142.string().optional(),
4710
+ var ExporterDestinationAzure = z144.object({
4711
+ credentialId: z144.string().optional(),
4665
4712
  // Repository
4666
- organizationId: z142.string(),
4667
- projectId: z142.string(),
4668
- repositoryId: z142.string(),
4713
+ organizationId: z144.string(),
4714
+ projectId: z144.string(),
4715
+ repositoryId: z144.string(),
4669
4716
  // Commit metadata
4670
- commitAuthorName: nullishToOptional(z142.string()),
4671
- commitAuthorEmail: nullishToOptional(z142.string()),
4717
+ commitAuthorName: nullishToOptional(z144.string()),
4718
+ commitAuthorEmail: nullishToOptional(z144.string()),
4672
4719
  // Location
4673
- branch: z142.string(),
4674
- relativePath: nullishToOptional(z142.string()),
4720
+ branch: z144.string(),
4721
+ relativePath: nullishToOptional(z144.string()),
4675
4722
  // Maybe not needed
4676
- url: nullishToOptional(z142.string()),
4723
+ url: nullishToOptional(z144.string()),
4677
4724
  // Legacy deprecated fields. Use `credentialId` instead
4678
- connectionId: nullishToOptional(z142.string()),
4679
- userId: nullishToOptional(z142.number())
4725
+ connectionId: nullishToOptional(z144.string()),
4726
+ userId: nullishToOptional(z144.number())
4680
4727
  });
4681
- var ExporterDestinationGitlab = z142.object({
4682
- credentialId: z142.string().optional(),
4728
+ var ExporterDestinationGitlab = z144.object({
4729
+ credentialId: z144.string().optional(),
4683
4730
  // Repository
4684
- projectId: z142.string(),
4731
+ projectId: z144.string(),
4685
4732
  // Commit metadata
4686
- commitAuthorName: nullishToOptional(z142.string()),
4687
- commitAuthorEmail: nullishToOptional(z142.string()),
4733
+ commitAuthorName: nullishToOptional(z144.string()),
4734
+ commitAuthorEmail: nullishToOptional(z144.string()),
4688
4735
  // Location
4689
- branch: z142.string(),
4690
- relativePath: nullishToOptional(z142.string()),
4736
+ branch: z144.string(),
4737
+ relativePath: nullishToOptional(z144.string()),
4691
4738
  // Maybe not needed
4692
- url: nullishToOptional(z142.string()),
4739
+ url: nullishToOptional(z144.string()),
4693
4740
  // Legacy deprecated fields. Use `credentialId` instead
4694
- connectionId: nullishToOptional(z142.string()),
4695
- userId: nullishToOptional(z142.number())
4741
+ connectionId: nullishToOptional(z144.string()),
4742
+ userId: nullishToOptional(z144.number())
4696
4743
  });
4697
- var ExporterDestinationBitbucket = z142.object({
4698
- credentialId: z142.string().optional(),
4744
+ var ExporterDestinationBitbucket = z144.object({
4745
+ credentialId: z144.string().optional(),
4699
4746
  // Repository
4700
- workspaceSlug: z142.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4701
- projectKey: z142.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4702
- repoSlug: z142.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4747
+ workspaceSlug: z144.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4748
+ projectKey: z144.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4749
+ repoSlug: z144.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4703
4750
  // Commit metadata
4704
- commitAuthorName: nullishToOptional(z142.string()),
4705
- commitAuthorEmail: nullishToOptional(z142.string()),
4751
+ commitAuthorName: nullishToOptional(z144.string()),
4752
+ commitAuthorEmail: nullishToOptional(z144.string()),
4706
4753
  // Location
4707
- branch: z142.string(),
4708
- relativePath: nullishToOptional(z142.string()),
4754
+ branch: z144.string(),
4755
+ relativePath: nullishToOptional(z144.string()),
4709
4756
  // Legacy deprecated fields. Use `credentialId` instead
4710
- connectionId: nullishToOptional(z142.string()),
4711
- userId: nullishToOptional(z142.number())
4757
+ connectionId: nullishToOptional(z144.string()),
4758
+ userId: nullishToOptional(z144.number())
4712
4759
  });
4713
- var ExportDestinationsMap = z142.object({
4714
- webhookUrl: z142.string().optional(),
4760
+ var ExportDestinationsMap = z144.object({
4761
+ webhookUrl: z144.string().optional(),
4715
4762
  destinationSnDocs: ExporterDestinationDocs.optional(),
4716
4763
  destinationS3: ExporterDestinationS3.optional(),
4717
4764
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -4721,149 +4768,149 @@ var ExportDestinationsMap = z142.object({
4721
4768
  });
4722
4769
 
4723
4770
  // src/export/pipeline.ts
4724
- var PipelineEventType = z143.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4725
- var PipelineDestinationGitType = z143.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4726
- var PipelineDestinationExtraType = z143.enum(["WebhookUrl", "S3", "Documentation"]);
4727
- var PipelineDestinationType = z143.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4728
- var Pipeline = z143.object({
4729
- id: z143.string(),
4730
- name: z143.string(),
4771
+ var PipelineEventType = z145.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4772
+ var PipelineDestinationGitType = z145.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4773
+ var PipelineDestinationExtraType = z145.enum(["WebhookUrl", "S3", "Documentation"]);
4774
+ var PipelineDestinationType = z145.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4775
+ var Pipeline = z145.object({
4776
+ id: z145.string(),
4777
+ name: z145.string(),
4731
4778
  eventType: PipelineEventType,
4732
- isEnabled: z143.boolean(),
4733
- workspaceId: z143.string(),
4734
- designSystemId: z143.string(),
4735
- exporterId: z143.string(),
4736
- brandPersistentId: z143.string().optional(),
4737
- themePersistentId: z143.string().optional(),
4738
- themePersistentIds: z143.string().array().optional(),
4779
+ isEnabled: z145.boolean(),
4780
+ workspaceId: z145.string(),
4781
+ designSystemId: z145.string(),
4782
+ exporterId: z145.string(),
4783
+ brandPersistentId: z145.string().optional(),
4784
+ themePersistentId: z145.string().optional(),
4785
+ themePersistentIds: z145.string().array().optional(),
4739
4786
  // Destinations
4740
4787
  ...ExportDestinationsMap.shape
4741
4788
  });
4742
4789
 
4743
4790
  // src/data-dumps/code-integration-dump.ts
4744
- var ExportJobDump = z144.object({
4745
- id: z144.string(),
4746
- createdAt: z144.coerce.date(),
4747
- finishedAt: z144.coerce.date(),
4748
- exportArtefacts: z144.string()
4791
+ var ExportJobDump = z146.object({
4792
+ id: z146.string(),
4793
+ createdAt: z146.coerce.date(),
4794
+ finishedAt: z146.coerce.date(),
4795
+ exportArtefacts: z146.string()
4749
4796
  });
4750
- var CodeIntegrationDump = z144.object({
4797
+ var CodeIntegrationDump = z146.object({
4751
4798
  exporters: Exporter.array(),
4752
4799
  pipelines: Pipeline.array(),
4753
4800
  exportJobs: ExportJobDump.array()
4754
4801
  });
4755
4802
 
4756
4803
  // src/data-dumps/design-system-dump.ts
4757
- import { z as z151 } from "zod";
4804
+ import { z as z153 } from "zod";
4758
4805
 
4759
4806
  // src/data-dumps/design-system-version-dump.ts
4760
- import { z as z150 } from "zod";
4807
+ import { z as z152 } from "zod";
4761
4808
 
4762
4809
  // src/liveblocks/rooms/design-system-version-room.ts
4763
- import { z as z145 } from "zod";
4810
+ import { z as z147 } from "zod";
4764
4811
  var DesignSystemVersionRoom = Entity.extend({
4765
- designSystemVersionId: z145.string(),
4766
- liveblocksId: z145.string()
4767
- });
4768
- var DesignSystemVersionRoomInternalSettings = z145.object({
4769
- routingVersion: z145.string(),
4770
- isDraftFeatureAdopted: z145.boolean(),
4771
- isApprovalFeatureEnabled: z145.boolean(),
4772
- approvalRequiredForPublishing: z145.boolean()
4773
- });
4774
- var DesignSystemVersionRoomInitialState = z145.object({
4775
- pages: z145.array(DocumentationPageV2),
4776
- groups: z145.array(ElementGroup),
4777
- pageSnapshots: z145.array(DocumentationPageSnapshot),
4778
- groupSnapshots: z145.array(ElementGroupSnapshot),
4779
- pageApprovals: z145.array(DocumentationPageApproval),
4812
+ designSystemVersionId: z147.string(),
4813
+ liveblocksId: z147.string()
4814
+ });
4815
+ var DesignSystemVersionRoomInternalSettings = z147.object({
4816
+ routingVersion: z147.string(),
4817
+ isDraftFeatureAdopted: z147.boolean(),
4818
+ isApprovalFeatureEnabled: z147.boolean(),
4819
+ approvalRequiredForPublishing: z147.boolean()
4820
+ });
4821
+ var DesignSystemVersionRoomInitialState = z147.object({
4822
+ pages: z147.array(DocumentationPageV2),
4823
+ groups: z147.array(ElementGroup),
4824
+ pageSnapshots: z147.array(DocumentationPageSnapshot),
4825
+ groupSnapshots: z147.array(ElementGroupSnapshot),
4826
+ pageApprovals: z147.array(DocumentationPageApproval),
4780
4827
  internalSettings: DesignSystemVersionRoomInternalSettings
4781
4828
  });
4782
- var DesignSystemVersionRoomUpdate = z145.object({
4783
- pages: z145.array(DocumentationPageV2),
4784
- groups: z145.array(ElementGroup),
4785
- pageIdsToDelete: z145.array(z145.string()),
4786
- groupIdsToDelete: z145.array(z145.string()),
4787
- pageSnapshots: z145.array(DocumentationPageSnapshot),
4788
- groupSnapshots: z145.array(ElementGroupSnapshot),
4789
- pageSnapshotIdsToDelete: z145.array(z145.string()),
4790
- groupSnapshotIdsToDelete: z145.array(z145.string()),
4791
- pageHashesToUpdate: z145.record(z145.string(), z145.string()),
4792
- pageApprovals: z145.array(DocumentationPageApproval),
4793
- pageApprovalIdsToDelete: z145.array(z145.string())
4829
+ var DesignSystemVersionRoomUpdate = z147.object({
4830
+ pages: z147.array(DocumentationPageV2),
4831
+ groups: z147.array(ElementGroup),
4832
+ pageIdsToDelete: z147.array(z147.string()),
4833
+ groupIdsToDelete: z147.array(z147.string()),
4834
+ pageSnapshots: z147.array(DocumentationPageSnapshot),
4835
+ groupSnapshots: z147.array(ElementGroupSnapshot),
4836
+ pageSnapshotIdsToDelete: z147.array(z147.string()),
4837
+ groupSnapshotIdsToDelete: z147.array(z147.string()),
4838
+ pageHashesToUpdate: z147.record(z147.string(), z147.string()),
4839
+ pageApprovals: z147.array(DocumentationPageApproval),
4840
+ pageApprovalIdsToDelete: z147.array(z147.string())
4794
4841
  });
4795
4842
 
4796
4843
  // src/liveblocks/rooms/documentation-page-room.ts
4797
- import { z as z146 } from "zod";
4844
+ import { z as z148 } from "zod";
4798
4845
  var DocumentationPageRoom = Entity.extend({
4799
- designSystemVersionId: z146.string(),
4800
- documentationPageId: z146.string(),
4801
- liveblocksId: z146.string(),
4802
- isDirty: z146.boolean()
4846
+ designSystemVersionId: z148.string(),
4847
+ documentationPageId: z148.string(),
4848
+ liveblocksId: z148.string(),
4849
+ isDirty: z148.boolean()
4803
4850
  });
4804
- var DocumentationPageRoomState = z146.object({
4805
- pageItems: z146.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4851
+ var DocumentationPageRoomState = z148.object({
4852
+ pageItems: z148.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4806
4853
  itemConfiguration: DocumentationItemConfigurationV2
4807
4854
  });
4808
- var DocumentationPageRoomRoomUpdate = z146.object({
4855
+ var DocumentationPageRoomRoomUpdate = z148.object({
4809
4856
  page: DocumentationPageV2,
4810
4857
  pageParent: ElementGroup
4811
4858
  });
4812
4859
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
4813
- pageItems: z146.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4814
- blockDefinitions: z146.array(PageBlockDefinition)
4860
+ pageItems: z148.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4861
+ blockDefinitions: z148.array(PageBlockDefinition)
4815
4862
  });
4816
- var RestoredDocumentationPage = z146.object({
4863
+ var RestoredDocumentationPage = z148.object({
4817
4864
  page: DocumentationPageV2,
4818
4865
  pageParent: ElementGroup,
4819
4866
  pageContent: DocumentationPageContentData,
4820
- contentHash: z146.string(),
4821
- snapshotId: z146.string(),
4822
- roomId: z146.string().optional()
4867
+ contentHash: z148.string(),
4868
+ snapshotId: z148.string(),
4869
+ roomId: z148.string().optional()
4823
4870
  });
4824
- var RestoredDocumentationGroup = z146.object({
4871
+ var RestoredDocumentationGroup = z148.object({
4825
4872
  group: ElementGroup,
4826
4873
  parent: ElementGroup
4827
4874
  });
4828
4875
 
4829
4876
  // src/liveblocks/rooms/room-type.ts
4830
- import { z as z147 } from "zod";
4877
+ import { z as z149 } from "zod";
4831
4878
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
4832
4879
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
4833
4880
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
4834
4881
  RoomTypeEnum2["Workspace"] = "workspace";
4835
4882
  return RoomTypeEnum2;
4836
4883
  })(RoomTypeEnum || {});
4837
- var RoomTypeSchema = z147.nativeEnum(RoomTypeEnum);
4884
+ var RoomTypeSchema = z149.nativeEnum(RoomTypeEnum);
4838
4885
  var RoomType = RoomTypeSchema.enum;
4839
4886
 
4840
4887
  // src/liveblocks/rooms/workspace-room.ts
4841
- import { z as z148 } from "zod";
4888
+ import { z as z150 } from "zod";
4842
4889
  var WorkspaceRoom = Entity.extend({
4843
- workspaceId: z148.string(),
4844
- liveblocksId: z148.string()
4890
+ workspaceId: z150.string(),
4891
+ liveblocksId: z150.string()
4845
4892
  });
4846
4893
 
4847
4894
  // src/data-dumps/published-docs-dump.ts
4848
- import { z as z149 } from "zod";
4849
- var PublishedDocsDump = z149.object({
4895
+ import { z as z151 } from "zod";
4896
+ var PublishedDocsDump = z151.object({
4850
4897
  documentation: PublishedDoc,
4851
4898
  pages: PublishedDocPage.array()
4852
4899
  });
4853
4900
 
4854
4901
  // src/data-dumps/design-system-version-dump.ts
4855
- var DocumentationThreadDump = z150.object({
4902
+ var DocumentationThreadDump = z152.object({
4856
4903
  thread: DocumentationCommentThread,
4857
4904
  comments: DocumentationComment.array()
4858
4905
  });
4859
- var DocumentationPageRoomDump = z150.object({
4906
+ var DocumentationPageRoomDump = z152.object({
4860
4907
  room: DocumentationPageRoom,
4861
4908
  threads: DocumentationThreadDump.array()
4862
4909
  });
4863
- var DesignSystemVersionMultiplayerDump = z150.object({
4910
+ var DesignSystemVersionMultiplayerDump = z152.object({
4864
4911
  documentationPages: DocumentationPageRoomDump.array()
4865
4912
  });
4866
- var DesignSystemVersionDump = z150.object({
4913
+ var DesignSystemVersionDump = z152.object({
4867
4914
  version: DesignSystemVersion,
4868
4915
  brands: Brand.array(),
4869
4916
  elements: DesignElement.array(),
@@ -4878,7 +4925,7 @@ var DesignSystemVersionDump = z150.object({
4878
4925
  });
4879
4926
 
4880
4927
  // src/data-dumps/design-system-dump.ts
4881
- var DesignSystemDump = z151.object({
4928
+ var DesignSystemDump = z153.object({
4882
4929
  designSystem: DesignSystem,
4883
4930
  dataSources: DataSource.array(),
4884
4931
  versions: DesignSystemVersionDump.array(),
@@ -4887,50 +4934,50 @@ var DesignSystemDump = z151.object({
4887
4934
  });
4888
4935
 
4889
4936
  // src/data-dumps/user-data-dump.ts
4890
- import { z as z154 } from "zod";
4937
+ import { z as z156 } from "zod";
4891
4938
 
4892
4939
  // src/data-dumps/workspace-dump.ts
4893
- import { z as z153 } from "zod";
4940
+ import { z as z155 } from "zod";
4894
4941
 
4895
4942
  // src/integrations/integration.ts
4896
- import { z as z152 } from "zod";
4897
- var IntegrationDesignSystem = z152.object({
4898
- designSystemId: z152.string(),
4899
- brandId: z152.string(),
4900
- title: z152.string().optional(),
4901
- userId: z152.string().optional(),
4902
- date: z152.coerce.date().optional()
4903
- });
4904
- var IntegrationCredentialsType = z152.enum(["OAuth2", "PAT", "GithubApp"]);
4905
- var IntegrationCredentialsState = z152.enum(["Active", "Inactive"]);
4906
- var IntegrationCredentialsProfile = z152.object({
4907
- id: nullishToOptional(z152.string()),
4908
- email: nullishToOptional(z152.string()),
4909
- handle: nullishToOptional(z152.string()),
4910
- type: nullishToOptional(z152.string()),
4911
- avatarUrl: nullishToOptional(z152.string()),
4912
- organization: nullishToOptional(z152.string()),
4913
- collection: nullishToOptional(z152.string())
4914
- });
4915
- var IntegrationCredentials = z152.object({
4916
- id: z152.string(),
4943
+ import { z as z154 } from "zod";
4944
+ var IntegrationDesignSystem = z154.object({
4945
+ designSystemId: z154.string(),
4946
+ brandId: z154.string(),
4947
+ title: z154.string().optional(),
4948
+ userId: z154.string().optional(),
4949
+ date: z154.coerce.date().optional()
4950
+ });
4951
+ var IntegrationCredentialsType = z154.enum(["OAuth2", "PAT", "GithubApp"]);
4952
+ var IntegrationCredentialsState = z154.enum(["Active", "Inactive"]);
4953
+ var IntegrationCredentialsProfile = z154.object({
4954
+ id: nullishToOptional(z154.string()),
4955
+ email: nullishToOptional(z154.string()),
4956
+ handle: nullishToOptional(z154.string()),
4957
+ type: nullishToOptional(z154.string()),
4958
+ avatarUrl: nullishToOptional(z154.string()),
4959
+ organization: nullishToOptional(z154.string()),
4960
+ collection: nullishToOptional(z154.string())
4961
+ });
4962
+ var IntegrationCredentials = z154.object({
4963
+ id: z154.string(),
4917
4964
  type: IntegrationCredentialsType,
4918
- integrationId: z152.string(),
4919
- accessToken: z152.string(),
4920
- userId: z152.string(),
4921
- createdAt: z152.coerce.date(),
4922
- refreshToken: z152.string().optional(),
4923
- tokenName: z152.string().optional(),
4924
- expiresAt: z152.coerce.date().optional(),
4925
- refreshedAt: z152.coerce.date().optional(),
4926
- username: z152.string().optional(),
4927
- appInstallationId: z152.string().optional(),
4965
+ integrationId: z154.string(),
4966
+ accessToken: z154.string(),
4967
+ userId: z154.string(),
4968
+ createdAt: z154.coerce.date(),
4969
+ refreshToken: z154.string().optional(),
4970
+ tokenName: z154.string().optional(),
4971
+ expiresAt: z154.coerce.date().optional(),
4972
+ refreshedAt: z154.coerce.date().optional(),
4973
+ username: z154.string().optional(),
4974
+ appInstallationId: z154.string().optional(),
4928
4975
  profile: IntegrationCredentialsProfile.optional(),
4929
- customUrl: z152.string().optional(),
4976
+ customUrl: z154.string().optional(),
4930
4977
  state: IntegrationCredentialsState,
4931
4978
  user: UserMinified.optional()
4932
4979
  });
4933
- var ExtendedIntegrationType = z152.enum([
4980
+ var ExtendedIntegrationType = z154.enum([
4934
4981
  "Figma",
4935
4982
  "Github",
4936
4983
  "Gitlab",
@@ -4941,26 +4988,26 @@ var ExtendedIntegrationType = z152.enum([
4941
4988
  ]);
4942
4989
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
4943
4990
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
4944
- var Integration = z152.object({
4945
- id: z152.string(),
4946
- workspaceId: z152.string(),
4991
+ var Integration = z154.object({
4992
+ id: z154.string(),
4993
+ workspaceId: z154.string(),
4947
4994
  type: IntegrationType,
4948
- createdAt: z152.coerce.date(),
4949
- integrationCredentials: z152.array(IntegrationCredentials).optional()
4950
- });
4951
- var IntegrationToken = z152.object({
4952
- access_token: z152.string(),
4953
- refresh_token: z152.string().optional(),
4954
- expires_in: z152.union([z152.number().optional(), z152.string().optional()]),
4955
- token_type: z152.string().optional(),
4956
- token_name: z152.string().optional(),
4957
- token_azure_organization_name: z152.string().optional(),
4995
+ createdAt: z154.coerce.date(),
4996
+ integrationCredentials: z154.array(IntegrationCredentials).optional()
4997
+ });
4998
+ var IntegrationToken = z154.object({
4999
+ access_token: z154.string(),
5000
+ refresh_token: z154.string().optional(),
5001
+ expires_in: z154.union([z154.number().optional(), z154.string().optional()]),
5002
+ token_type: z154.string().optional(),
5003
+ token_name: z154.string().optional(),
5004
+ token_azure_organization_name: z154.string().optional(),
4958
5005
  // Azure Cloud PAT only
4959
- token_azure_collection_name: z152.string().optional(),
5006
+ token_azure_collection_name: z154.string().optional(),
4960
5007
  // Azure Server PAT only
4961
- token_bitbucket_username: z152.string().optional(),
5008
+ token_bitbucket_username: z154.string().optional(),
4962
5009
  // Bitbucket only
4963
- custom_url: z152.string().optional().transform((value) => {
5010
+ custom_url: z154.string().optional().transform((value) => {
4964
5011
  if (!value?.trim())
4965
5012
  return void 0;
4966
5013
  return formatCustomUrl(value);
@@ -4998,7 +5045,7 @@ function formatCustomUrl(url) {
4998
5045
  }
4999
5046
 
5000
5047
  // src/data-dumps/workspace-dump.ts
5001
- var WorkspaceDump = z153.object({
5048
+ var WorkspaceDump = z155.object({
5002
5049
  workspace: Workspace,
5003
5050
  designSystems: DesignSystemDump.array(),
5004
5051
  codeIntegration: CodeIntegrationDump,
@@ -5006,121 +5053,121 @@ var WorkspaceDump = z153.object({
5006
5053
  });
5007
5054
 
5008
5055
  // src/data-dumps/user-data-dump.ts
5009
- var UserDump = z154.object({
5056
+ var UserDump = z156.object({
5010
5057
  user: User,
5011
5058
  workspaces: WorkspaceDump.array()
5012
5059
  });
5013
5060
 
5014
5061
  // src/docs-server/session.ts
5015
- import { z as z155 } from "zod";
5016
- var NpmProxyToken = z155.object({
5017
- access: z155.string(),
5018
- expiresAt: z155.number()
5062
+ import { z as z157 } from "zod";
5063
+ var NpmProxyToken = z157.object({
5064
+ access: z157.string(),
5065
+ expiresAt: z157.number()
5019
5066
  });
5020
- var SessionData = z155.object({
5021
- returnToUrl: z155.string().optional(),
5067
+ var SessionData = z157.object({
5068
+ returnToUrl: z157.string().optional(),
5022
5069
  npmProxyToken: NpmProxyToken.optional()
5023
5070
  });
5024
- var Session = z155.object({
5025
- id: z155.string(),
5026
- expiresAt: z155.coerce.date(),
5027
- userId: z155.string().nullable(),
5071
+ var Session = z157.object({
5072
+ id: z157.string(),
5073
+ expiresAt: z157.coerce.date(),
5074
+ userId: z157.string().nullable(),
5028
5075
  data: SessionData
5029
5076
  });
5030
- var AuthTokens = z155.object({
5031
- access: z155.string(),
5032
- refresh: z155.string()
5077
+ var AuthTokens = z157.object({
5078
+ access: z157.string(),
5079
+ refresh: z157.string()
5033
5080
  });
5034
- var UserSession = z155.object({
5081
+ var UserSession = z157.object({
5035
5082
  session: Session,
5036
5083
  user: User.nullable()
5037
5084
  });
5038
5085
 
5039
5086
  // src/emails/design-system-invite.ts
5040
- import { z as z156 } from "zod";
5041
- var DesignSystemInviteEmailRecipient = z156.object({
5042
- email: z156.string(),
5087
+ import { z as z158 } from "zod";
5088
+ var DesignSystemInviteEmailRecipient = z158.object({
5089
+ email: z158.string(),
5043
5090
  role: WorkspaceRoleSchema
5044
5091
  });
5045
- var DesignSystemInviteEmailData = z156.object({
5092
+ var DesignSystemInviteEmailData = z158.object({
5046
5093
  workspace: Workspace,
5047
5094
  designSystem: DesignSystem,
5048
5095
  invitedBy: User,
5049
- documentationDomain: z156.string().optional()
5096
+ documentationDomain: z158.string().optional()
5050
5097
  });
5051
5098
 
5052
5099
  // src/emails/workspace-invite.ts
5053
- import { z as z157 } from "zod";
5054
- var WorkspaceInviteEmailRecipient = z157.object({
5055
- email: z157.string(),
5100
+ import { z as z159 } from "zod";
5101
+ var WorkspaceInviteEmailRecipient = z159.object({
5102
+ email: z159.string(),
5056
5103
  role: WorkspaceRoleSchema
5057
5104
  });
5058
- var WorkspaceInviteEmailData = z157.object({
5105
+ var WorkspaceInviteEmailData = z159.object({
5059
5106
  workspace: Workspace,
5060
5107
  invitedBy: User,
5061
- documentationDomain: z157.string().optional()
5108
+ documentationDomain: z159.string().optional()
5062
5109
  });
5063
5110
 
5064
5111
  // src/events/base.ts
5065
- import { z as z160 } from "zod";
5112
+ import { z as z162 } from "zod";
5066
5113
 
5067
5114
  // src/events/data-source-imported.ts
5068
- import { z as z158 } from "zod";
5069
- var EventDataSourceImported = z158.object({
5070
- type: z158.literal("DataSourceImported"),
5071
- workspaceId: z158.string(),
5072
- designSystemId: z158.string()
5115
+ import { z as z160 } from "zod";
5116
+ var EventDataSourceImported = z160.object({
5117
+ type: z160.literal("DataSourceImported"),
5118
+ workspaceId: z160.string(),
5119
+ designSystemId: z160.string()
5073
5120
  });
5074
5121
 
5075
5122
  // src/events/version-released.ts
5076
- import { z as z159 } from "zod";
5077
- var EventVersionReleased = z159.object({
5078
- type: z159.literal("DesignSystemVersionReleased"),
5079
- workspaceId: z159.string(),
5080
- designSystemId: z159.string(),
5081
- versionId: z159.string()
5123
+ import { z as z161 } from "zod";
5124
+ var EventVersionReleased = z161.object({
5125
+ type: z161.literal("DesignSystemVersionReleased"),
5126
+ workspaceId: z161.string(),
5127
+ designSystemId: z161.string(),
5128
+ versionId: z161.string()
5082
5129
  });
5083
5130
 
5084
5131
  // src/events/base.ts
5085
- var Event = z160.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5132
+ var Event = z162.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5086
5133
 
5087
5134
  // src/export/export-runner/export-context.ts
5088
- import { z as z161 } from "zod";
5089
- var ExportJobDocumentationContext = z161.object({
5090
- isSingleVersionDocs: z161.boolean(),
5091
- versionSlug: z161.string(),
5135
+ import { z as z163 } from "zod";
5136
+ var ExportJobDocumentationContext = z163.object({
5137
+ isSingleVersionDocs: z163.boolean(),
5138
+ versionSlug: z163.string(),
5092
5139
  environment: PublishedDocEnvironment
5093
5140
  });
5094
- var ExportJobContext = z161.object({
5095
- apiUrl: z161.string(),
5096
- accessToken: z161.string(),
5097
- designSystemId: z161.string(),
5098
- designSystemName: z161.string(),
5099
- exporterId: z161.string(),
5100
- versionId: z161.string(),
5101
- brandId: z161.string().optional(),
5102
- themeId: z161.string().optional(),
5103
- themePersistentIds: z161.string().array().optional(),
5104
- exporterName: z161.string(),
5141
+ var ExportJobContext = z163.object({
5142
+ apiUrl: z163.string(),
5143
+ accessToken: z163.string(),
5144
+ designSystemId: z163.string(),
5145
+ designSystemName: z163.string(),
5146
+ exporterId: z163.string(),
5147
+ versionId: z163.string(),
5148
+ brandId: z163.string().optional(),
5149
+ themeId: z163.string().optional(),
5150
+ themePersistentIds: z163.string().array().optional(),
5151
+ exporterName: z163.string(),
5105
5152
  documentation: ExportJobDocumentationContext.optional()
5106
5153
  });
5107
- var ExportJobExporterConfiguration = z161.object({
5108
- exporterPackageUrl: z161.string(),
5154
+ var ExportJobExporterConfiguration = z163.object({
5155
+ exporterPackageUrl: z163.string(),
5109
5156
  exporterPropertyValues: ExporterPropertyValue.array()
5110
5157
  });
5111
5158
 
5112
5159
  // src/export/export-runner/exporter-payload.ts
5113
- import { z as z162 } from "zod";
5114
- var ExporterFunctionPayload = z162.object({
5115
- exportJobId: z162.string(),
5116
- exportContextId: z162.string(),
5117
- designSystemId: z162.string(),
5118
- workspaceId: z162.string()
5160
+ import { z as z164 } from "zod";
5161
+ var ExporterFunctionPayload = z164.object({
5162
+ exportJobId: z164.string(),
5163
+ exportContextId: z164.string(),
5164
+ designSystemId: z164.string(),
5165
+ workspaceId: z164.string()
5119
5166
  });
5120
5167
 
5121
5168
  // src/export/export-jobs.ts
5122
- import { z as z163 } from "zod";
5123
- var ExportJobDestinationType = z163.enum([
5169
+ import { z as z165 } from "zod";
5170
+ var ExportJobDestinationType = z165.enum([
5124
5171
  "s3",
5125
5172
  "webhookUrl",
5126
5173
  "github",
@@ -5129,30 +5176,30 @@ var ExportJobDestinationType = z163.enum([
5129
5176
  "gitlab",
5130
5177
  "bitbucket"
5131
5178
  ]);
5132
- var ExportJobStatus = z163.enum(["InProgress", "Success", "Failed", "Timeout"]);
5133
- var ExportJobLogEntryType = z163.enum(["success", "info", "warning", "error", "user"]);
5134
- var ExportJobLogEntry = z163.object({
5135
- id: z163.string().optional(),
5136
- time: z163.coerce.date(),
5179
+ var ExportJobStatus = z165.enum(["InProgress", "Success", "Failed", "Timeout"]);
5180
+ var ExportJobLogEntryType = z165.enum(["success", "info", "warning", "error", "user"]);
5181
+ var ExportJobLogEntry = z165.object({
5182
+ id: z165.string().optional(),
5183
+ time: z165.coerce.date(),
5137
5184
  type: ExportJobLogEntryType,
5138
- message: z163.string()
5185
+ message: z165.string()
5139
5186
  });
5140
- var ExportJobPullRequestDestinationResult = z163.object({
5141
- pullRequestUrl: z163.string()
5187
+ var ExportJobPullRequestDestinationResult = z165.object({
5188
+ pullRequestUrl: z165.string()
5142
5189
  });
5143
- var ExportJobS3DestinationResult = z163.object({
5144
- bucket: z163.string(),
5145
- urlPrefix: z163.string().optional(),
5146
- path: z163.string(),
5147
- files: z163.array(z163.string()),
5148
- url: nullishToOptional(z163.string()),
5149
- urls: nullishToOptional(z163.string().array())
5190
+ var ExportJobS3DestinationResult = z165.object({
5191
+ bucket: z165.string(),
5192
+ urlPrefix: z165.string().optional(),
5193
+ path: z165.string(),
5194
+ files: z165.array(z165.string()),
5195
+ url: nullishToOptional(z165.string()),
5196
+ urls: nullishToOptional(z165.string().array())
5150
5197
  });
5151
- var ExportJobDocsDestinationResult = z163.object({
5152
- url: z163.string()
5198
+ var ExportJobDocsDestinationResult = z165.object({
5199
+ url: z165.string()
5153
5200
  });
5154
- var ExportJobResult = z163.object({
5155
- error: z163.string().optional(),
5201
+ var ExportJobResult = z165.object({
5202
+ error: z165.string().optional(),
5156
5203
  s3: nullishToOptional(ExportJobS3DestinationResult),
5157
5204
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
5158
5205
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -5161,22 +5208,22 @@ var ExportJobResult = z163.object({
5161
5208
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
5162
5209
  logs: nullishToOptional(ExportJobLogEntry.array())
5163
5210
  });
5164
- var ExportJob = z163.object({
5165
- id: z163.string(),
5166
- createdAt: z163.coerce.date(),
5167
- finishedAt: z163.coerce.date().optional(),
5168
- designSystemId: z163.string(),
5169
- designSystemVersionId: z163.string(),
5170
- workspaceId: z163.string(),
5171
- scheduleId: z163.string().nullish(),
5172
- exporterId: z163.string(),
5173
- brandId: z163.string().optional(),
5174
- themeId: z163.string().optional(),
5175
- themePersistentIds: z163.string().array().optional(),
5176
- estimatedExecutionTime: z163.number().optional(),
5211
+ var ExportJob = z165.object({
5212
+ id: z165.string(),
5213
+ createdAt: z165.coerce.date(),
5214
+ finishedAt: z165.coerce.date().optional(),
5215
+ designSystemId: z165.string(),
5216
+ designSystemVersionId: z165.string(),
5217
+ workspaceId: z165.string(),
5218
+ scheduleId: z165.string().nullish(),
5219
+ exporterId: z165.string(),
5220
+ brandId: z165.string().optional(),
5221
+ themeId: z165.string().optional(),
5222
+ themePersistentIds: z165.string().array().optional(),
5223
+ estimatedExecutionTime: z165.number().optional(),
5177
5224
  status: ExportJobStatus,
5178
5225
  result: ExportJobResult.optional(),
5179
- createdByUserId: z163.string().optional(),
5226
+ createdByUserId: z165.string().optional(),
5180
5227
  // Destinations
5181
5228
  ...ExportDestinationsMap.shape
5182
5229
  });
@@ -5190,46 +5237,46 @@ var ExportJobFindByFilter = ExportJob.pick({
5190
5237
  themeId: true,
5191
5238
  brandId: true
5192
5239
  }).extend({
5193
- destinations: z163.array(ExportJobDestinationType),
5240
+ destinations: z165.array(ExportJobDestinationType),
5194
5241
  docsEnvironment: PublishedDocEnvironment
5195
5242
  }).partial();
5196
5243
 
5197
5244
  // src/export/exporter-workspace-membership-role.ts
5198
- import { z as z164 } from "zod";
5199
- var ExporterWorkspaceMembershipRole = z164.enum(["Owner", "OwnerArchived", "User"]);
5245
+ import { z as z166 } from "zod";
5246
+ var ExporterWorkspaceMembershipRole = z166.enum(["Owner", "OwnerArchived", "User"]);
5200
5247
 
5201
5248
  // src/export/exporter-workspace-membership.ts
5202
- import { z as z165 } from "zod";
5203
- var ExporterWorkspaceMembership = z165.object({
5204
- id: z165.string(),
5205
- workspaceId: z165.string(),
5206
- exporterId: z165.string(),
5249
+ import { z as z167 } from "zod";
5250
+ var ExporterWorkspaceMembership = z167.object({
5251
+ id: z167.string(),
5252
+ workspaceId: z167.string(),
5253
+ exporterId: z167.string(),
5207
5254
  role: ExporterWorkspaceMembershipRole
5208
5255
  });
5209
5256
 
5210
5257
  // src/feature-flags/feature-flags.ts
5211
- import { z as z166 } from "zod";
5212
- var FlaggedFeature = z166.enum([
5258
+ import { z as z168 } from "zod";
5259
+ var FlaggedFeature = z168.enum([
5213
5260
  "FigmaImporterV2",
5214
5261
  "ShadowOpacityOptional",
5215
5262
  "DisableImporter",
5216
5263
  "VariablesOrder",
5217
5264
  "TypographyPropsKeepAliases"
5218
5265
  ]);
5219
- var FeatureFlagMap = z166.record(FlaggedFeature, z166.boolean());
5220
- var FeatureFlag = z166.object({
5221
- id: z166.string(),
5266
+ var FeatureFlagMap = z168.record(FlaggedFeature, z168.boolean());
5267
+ var FeatureFlag = z168.object({
5268
+ id: z168.string(),
5222
5269
  feature: FlaggedFeature,
5223
- createdAt: z166.coerce.date(),
5224
- enabled: z166.boolean(),
5225
- designSystemId: z166.string().optional()
5270
+ createdAt: z168.coerce.date(),
5271
+ enabled: z168.boolean(),
5272
+ designSystemId: z168.string().optional()
5226
5273
  });
5227
5274
 
5228
5275
  // src/integrations/external-oauth-request.ts
5229
- import { z as z168 } from "zod";
5276
+ import { z as z170 } from "zod";
5230
5277
 
5231
5278
  // src/integrations/oauth-providers.ts
5232
- import { z as z167 } from "zod";
5279
+ import { z as z169 } from "zod";
5233
5280
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5234
5281
  OAuthProviderNames2["Figma"] = "figma";
5235
5282
  OAuthProviderNames2["Azure"] = "azure";
@@ -5238,128 +5285,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5238
5285
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
5239
5286
  return OAuthProviderNames2;
5240
5287
  })(OAuthProviderNames || {});
5241
- var OAuthProviderSchema = z167.nativeEnum(OAuthProviderNames);
5288
+ var OAuthProviderSchema = z169.nativeEnum(OAuthProviderNames);
5242
5289
  var OAuthProvider = OAuthProviderSchema.enum;
5243
5290
 
5244
5291
  // src/integrations/external-oauth-request.ts
5245
- var ExternalOAuthRequest = z168.object({
5246
- id: z168.string(),
5292
+ var ExternalOAuthRequest = z170.object({
5293
+ id: z170.string(),
5247
5294
  provider: OAuthProviderSchema,
5248
- userId: z168.string(),
5249
- state: z168.string(),
5250
- createdAt: z168.coerce.date()
5295
+ userId: z170.string(),
5296
+ state: z170.string(),
5297
+ createdAt: z170.coerce.date()
5251
5298
  });
5252
5299
 
5253
5300
  // src/integrations/git.ts
5254
- import { z as z169 } from "zod";
5255
- var GitObjectsQuery = z169.object({
5256
- organization: z169.string().optional(),
5301
+ import { z as z171 } from "zod";
5302
+ var GitObjectsQuery = z171.object({
5303
+ organization: z171.string().optional(),
5257
5304
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
5258
- project: z169.string().optional(),
5305
+ project: z171.string().optional(),
5259
5306
  // Only for Bitbucket and Azure
5260
- repository: z169.string().optional(),
5307
+ repository: z171.string().optional(),
5261
5308
  // For all providers. For Gitlab, it's called "project".
5262
- branch: z169.string().optional(),
5309
+ branch: z171.string().optional(),
5263
5310
  // For all providers.
5264
- user: z169.string().optional()
5311
+ user: z171.string().optional()
5265
5312
  // Gitlab user
5266
5313
  });
5267
- var GitOrganization = z169.object({
5268
- id: z169.string(),
5269
- name: z169.string(),
5270
- url: z169.string(),
5271
- slug: z169.string()
5272
- });
5273
- var GitProject = z169.object({
5274
- id: z169.string(),
5275
- name: z169.string(),
5276
- url: z169.string(),
5277
- slug: z169.string()
5278
- });
5279
- var GitRepository = z169.object({
5280
- id: z169.string(),
5281
- name: z169.string(),
5282
- url: z169.string(),
5283
- slug: z169.string(),
5314
+ var GitOrganization = z171.object({
5315
+ id: z171.string(),
5316
+ name: z171.string(),
5317
+ url: z171.string(),
5318
+ slug: z171.string()
5319
+ });
5320
+ var GitProject = z171.object({
5321
+ id: z171.string(),
5322
+ name: z171.string(),
5323
+ url: z171.string(),
5324
+ slug: z171.string()
5325
+ });
5326
+ var GitRepository = z171.object({
5327
+ id: z171.string(),
5328
+ name: z171.string(),
5329
+ url: z171.string(),
5330
+ slug: z171.string(),
5284
5331
  /**
5285
5332
  * Can be undefined when:
5286
5333
  * - there are no branches in the repository yet
5287
5334
  * - Git provider doesn't expose this information on a repository via their API
5288
5335
  */
5289
- defaultBranch: z169.string().optional()
5336
+ defaultBranch: z171.string().optional()
5290
5337
  });
5291
- var GitBranch = z169.object({
5292
- name: z169.string(),
5293
- lastCommitId: z169.string()
5338
+ var GitBranch = z171.object({
5339
+ name: z171.string(),
5340
+ lastCommitId: z171.string()
5294
5341
  });
5295
5342
 
5296
5343
  // src/integrations/oauth-token.ts
5297
- import { z as z170 } from "zod";
5298
- var IntegrationTokenSchemaOld = z170.object({
5299
- id: z170.string(),
5344
+ import { z as z172 } from "zod";
5345
+ var IntegrationTokenSchemaOld = z172.object({
5346
+ id: z172.string(),
5300
5347
  provider: OAuthProviderSchema,
5301
- scope: z170.string(),
5302
- userId: z170.string(),
5303
- accessToken: z170.string(),
5304
- refreshToken: z170.string(),
5305
- expiresAt: z170.coerce.date(),
5306
- externalUserId: z170.string().nullish()
5348
+ scope: z172.string(),
5349
+ userId: z172.string(),
5350
+ accessToken: z172.string(),
5351
+ refreshToken: z172.string(),
5352
+ expiresAt: z172.coerce.date(),
5353
+ externalUserId: z172.string().nullish()
5307
5354
  });
5308
5355
 
5309
5356
  // src/integrations/workspace-oauth-requests.ts
5310
- import { z as z171 } from "zod";
5311
- var WorkspaceOAuthRequestSchema = z171.object({
5312
- id: z171.string(),
5313
- workspaceId: z171.string(),
5357
+ import { z as z173 } from "zod";
5358
+ var WorkspaceOAuthRequestSchema = z173.object({
5359
+ id: z173.string(),
5360
+ workspaceId: z173.string(),
5314
5361
  provider: OAuthProviderSchema,
5315
- userId: z171.string(),
5316
- createdAt: z171.coerce.date()
5362
+ userId: z173.string(),
5363
+ createdAt: z173.coerce.date()
5317
5364
  });
5318
5365
 
5319
5366
  // src/npm/npm-package.ts
5320
- import { z as z172 } from "zod";
5321
- var AnyRecord = z172.record(z172.any());
5367
+ import { z as z174 } from "zod";
5368
+ var AnyRecord = z174.record(z174.any());
5322
5369
  var NpmPackageVersionDist = AnyRecord.and(
5323
- z172.object({
5324
- tarball: z172.string()
5370
+ z174.object({
5371
+ tarball: z174.string()
5325
5372
  })
5326
5373
  );
5327
5374
  var NpmPackageVersion = AnyRecord.and(
5328
- z172.object({
5375
+ z174.object({
5329
5376
  dist: NpmPackageVersionDist
5330
5377
  })
5331
5378
  );
5332
5379
  var NpmPackage = AnyRecord.and(
5333
- z172.object({
5334
- _id: z172.string(),
5335
- name: z172.string(),
5380
+ z174.object({
5381
+ _id: z174.string(),
5382
+ name: z174.string(),
5336
5383
  // e.g. "latest": "1.2.3"
5337
- "dist-tags": z172.record(z172.string(), z172.string()),
5384
+ "dist-tags": z174.record(z174.string(), z174.string()),
5338
5385
  // "1.2.3": {...}
5339
- versions: z172.record(NpmPackageVersion)
5386
+ versions: z174.record(NpmPackageVersion)
5340
5387
  })
5341
5388
  );
5342
5389
 
5343
5390
  // src/npm/npm-proxy-token-payload.ts
5344
- import { z as z173 } from "zod";
5345
- var NpmProxyTokenPayload = z173.object({
5346
- npmProxyRegistryConfigId: z173.string()
5391
+ import { z as z175 } from "zod";
5392
+ var NpmProxyTokenPayload = z175.object({
5393
+ npmProxyRegistryConfigId: z175.string()
5347
5394
  });
5348
5395
 
5349
5396
  // src/tokens/personal-access-token.ts
5350
- import { z as z174 } from "zod";
5351
- var PersonalAccessToken = z174.object({
5352
- id: z174.string(),
5353
- userId: z174.string(),
5354
- workspaceId: z174.string().optional(),
5355
- designSystemId: z174.string().optional(),
5397
+ import { z as z176 } from "zod";
5398
+ var PersonalAccessToken = z176.object({
5399
+ id: z176.string(),
5400
+ userId: z176.string(),
5401
+ workspaceId: z176.string().optional(),
5402
+ designSystemId: z176.string().optional(),
5356
5403
  workspaceRole: WorkspaceRoleSchema.optional(),
5357
- name: z174.string(),
5358
- hidden: z174.boolean(),
5359
- token: z174.string(),
5360
- scope: z174.string().optional(),
5361
- createdAt: z174.coerce.date(),
5362
- expireAt: z174.coerce.date().optional()
5404
+ name: z176.string(),
5405
+ hidden: z176.boolean(),
5406
+ token: z176.string(),
5407
+ scope: z176.string().optional(),
5408
+ createdAt: z176.coerce.date(),
5409
+ expireAt: z176.coerce.date().optional()
5363
5410
  });
5364
5411
  export {
5365
5412
  Address,
@@ -5399,6 +5446,10 @@ export {
5399
5446
  CardSchema,
5400
5447
  ChangedImportedFigmaSourceData,
5401
5448
  CodeIntegrationDump,
5449
+ Collection,
5450
+ CollectionImportModel,
5451
+ CollectionImportModelInput,
5452
+ CollectionOrigin,
5402
5453
  ColorTokenData,
5403
5454
  ColorTokenInlineData,
5404
5455
  ColorValue,