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