@supernova-studio/model 1.2.3 → 1.3.0

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