@supernova-studio/model 1.87.10 → 1.88.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.js CHANGED
@@ -167,7 +167,8 @@ var FeaturesSummary = _zod.z.object({
167
167
  forgeFeatureWorkspacePublishing: featureToggleSchema,
168
168
  forgeFeatureHideSupernovaUI: featureToggleSchema,
169
169
  documentationPages: featureLimitedSchema,
170
- sandboxTemplates: featureToggleSchema
170
+ sandboxTemplates: featureToggleSchema,
171
+ forgeShellTemplates: featureLimitedSchema
171
172
  });
172
173
 
173
174
  // src/billing/invoice.ts
@@ -608,95 +609,6 @@ function isImportedAsset(asset) {
608
609
  return !!asset.originKey;
609
610
  }
610
611
 
611
- // src/dsm/brand.ts
612
-
613
- var Brand = _zod.z.object({
614
- id: _zod.z.string(),
615
- designSystemVersionId: _zod.z.string(),
616
- persistentId: _zod.z.string(),
617
- name: _zod.z.string(),
618
- description: _zod.z.string()
619
- });
620
-
621
- // src/dsm/collection.ts
622
-
623
-
624
- // src/dsm/properties/property-definition.ts
625
-
626
- var ElementPropertyTypeSchema = _zod.z.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
627
- var ElementPropertyTargetType = _zod.z.enum(["Token", "Component", "DocumentationPage"]);
628
- var ElementPropertyLinkType = _zod.z.enum(["FigmaComponent", "DocumentationPage"]);
629
- var ElementPropertyImmutableType = _zod.z.enum(["Collection"]);
630
- var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
631
- var ColorTokenInlineData = _zod.z.object({
632
- value: _zod.z.string()
633
- });
634
- var ElementPropertyDefinitionOption = _zod.z.object({
635
- id: _zod.z.string(),
636
- name: _zod.z.string(),
637
- backgroundColor: ColorTokenInlineData.optional()
638
- });
639
- var ElementPropertyDefinition = _zod.z.object({
640
- id: _zod.z.string(),
641
- designSystemVersionId: _zod.z.string(),
642
- persistentId: _zod.z.string(),
643
- name: _zod.z.string(),
644
- codeName: _zod.z.string().regex(CODE_NAME_REGEX),
645
- description: _zod.z.string(),
646
- type: ElementPropertyTypeSchema,
647
- targetElementType: ElementPropertyTargetType,
648
- options: _zod.z.array(ElementPropertyDefinitionOption).optional(),
649
- linkElementType: ElementPropertyLinkType.optional()
650
- });
651
- var ElementPropertyType = ElementPropertyTypeSchema.enum;
652
-
653
- // src/dsm/properties/property-value.ts
654
-
655
- var ElementPropertyValue = _zod.z.object({
656
- id: _zod.z.string(),
657
- designSystemVersionId: _zod.z.string(),
658
- targetElementPersistentId: _zod.z.string(),
659
- definitionPersistentId: _zod.z.string(),
660
- stringValue: _zod.z.string().nullish(),
661
- numberValue: _zod.z.number().nullish(),
662
- booleanValue: _zod.z.boolean().nullish(),
663
- referenceValue: _zod.z.string().nullish(),
664
- referenceValuePreview: _zod.z.string().optional()
665
- });
666
-
667
- // src/dsm/collection.ts
668
- var CollectionOrigin = _zod.z.object({
669
- id: _zod.z.string(),
670
- parentId: _zod.z.string().optional(),
671
- sourceIds: _zod.z.string().array(),
672
- collectionKeyMigrated: _zod.z.boolean()
673
- });
674
- var Collection = _zod.z.object({
675
- id: _zod.z.string(),
676
- persistentId: _zod.z.string(),
677
- designSystemVersionId: _zod.z.string(),
678
- name: _zod.z.string(),
679
- description: _zod.z.string(),
680
- backgroundColor: ColorTokenInlineData.optional(),
681
- parentPersistentId: _zod.z.string().optional(),
682
- /**
683
- * ID of Select element property definition's option that corresponds to this collection.
684
- *
685
- * Each collection is represented by an option in a special kind of element property that
686
- * is present in each design system where a collections are present. The property is maintained
687
- * automatically and is not available to the user (see immutable element properties).
688
- *
689
- * Collections have an immutable element property that allows bridging places where element properites
690
- * can be selected (e.g. documentation blocks) with the concept of collection without having to add
691
- * specific logic for collection selection.
692
- */
693
- elementPropertyOptionId: _zod.z.string(),
694
- createdAt: _zod.z.coerce.date(),
695
- updatedAt: _zod.z.coerce.date(),
696
- sortOrder: _zod.z.string(),
697
- origin: CollectionOrigin.optional()
698
- });
699
-
700
612
  // src/dsm/components/asset-rendering.ts
701
613
 
702
614
 
@@ -1879,6 +1791,49 @@ function isSlugReserved(slug) {
1879
1791
  // src/utils/validation.ts
1880
1792
  var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
1881
1793
 
1794
+ // src/dsm/properties/property-definition.ts
1795
+
1796
+ var ElementPropertyTypeSchema = _zod.z.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
1797
+ var ElementPropertyTargetType = _zod.z.enum(["Token", "Component", "DocumentationPage"]);
1798
+ var ElementPropertyLinkType = _zod.z.enum(["FigmaComponent", "DocumentationPage"]);
1799
+ var ElementPropertyImmutableType = _zod.z.enum(["Collection"]);
1800
+ var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
1801
+ var ColorTokenInlineData = _zod.z.object({
1802
+ value: _zod.z.string()
1803
+ });
1804
+ var ElementPropertyDefinitionOption = _zod.z.object({
1805
+ id: _zod.z.string(),
1806
+ name: _zod.z.string(),
1807
+ backgroundColor: ColorTokenInlineData.optional()
1808
+ });
1809
+ var ElementPropertyDefinition = _zod.z.object({
1810
+ id: _zod.z.string(),
1811
+ designSystemVersionId: _zod.z.string(),
1812
+ persistentId: _zod.z.string(),
1813
+ name: _zod.z.string(),
1814
+ codeName: _zod.z.string().regex(CODE_NAME_REGEX),
1815
+ description: _zod.z.string(),
1816
+ type: ElementPropertyTypeSchema,
1817
+ targetElementType: ElementPropertyTargetType,
1818
+ options: _zod.z.array(ElementPropertyDefinitionOption).optional(),
1819
+ linkElementType: ElementPropertyLinkType.optional()
1820
+ });
1821
+ var ElementPropertyType = ElementPropertyTypeSchema.enum;
1822
+
1823
+ // src/dsm/properties/property-value.ts
1824
+
1825
+ var ElementPropertyValue = _zod.z.object({
1826
+ id: _zod.z.string(),
1827
+ designSystemVersionId: _zod.z.string(),
1828
+ targetElementPersistentId: _zod.z.string(),
1829
+ definitionPersistentId: _zod.z.string(),
1830
+ stringValue: _zod.z.string().nullish(),
1831
+ numberValue: _zod.z.number().nullish(),
1832
+ booleanValue: _zod.z.boolean().nullish(),
1833
+ referenceValue: _zod.z.string().nullish(),
1834
+ referenceValuePreview: _zod.z.string().optional()
1835
+ });
1836
+
1882
1837
  // src/dsm/elements/primitives/point.ts
1883
1838
 
1884
1839
  var Point2D = _zod.z.object({
@@ -4070,6 +4025,42 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
4070
4025
 
4071
4026
  // src/dsm/import/collection.ts
4072
4027
 
4028
+
4029
+ // src/dsm/collection.ts
4030
+
4031
+ var CollectionOrigin = _zod.z.object({
4032
+ id: _zod.z.string(),
4033
+ parentId: _zod.z.string().optional(),
4034
+ sourceIds: _zod.z.string().array(),
4035
+ collectionKeyMigrated: _zod.z.boolean()
4036
+ });
4037
+ var Collection = _zod.z.object({
4038
+ id: _zod.z.string(),
4039
+ persistentId: _zod.z.string(),
4040
+ designSystemVersionId: _zod.z.string(),
4041
+ name: _zod.z.string(),
4042
+ description: _zod.z.string(),
4043
+ backgroundColor: ColorTokenInlineData.optional(),
4044
+ parentPersistentId: _zod.z.string().optional(),
4045
+ /**
4046
+ * ID of Select element property definition's option that corresponds to this collection.
4047
+ *
4048
+ * Each collection is represented by an option in a special kind of element property that
4049
+ * is present in each design system where a collections are present. The property is maintained
4050
+ * automatically and is not available to the user (see immutable element properties).
4051
+ *
4052
+ * Collections have an immutable element property that allows bridging places where element properites
4053
+ * can be selected (e.g. documentation blocks) with the concept of collection without having to add
4054
+ * specific logic for collection selection.
4055
+ */
4056
+ elementPropertyOptionId: _zod.z.string(),
4057
+ createdAt: _zod.z.coerce.date(),
4058
+ updatedAt: _zod.z.coerce.date(),
4059
+ sortOrder: _zod.z.string(),
4060
+ origin: CollectionOrigin.optional()
4061
+ });
4062
+
4063
+ // src/dsm/import/collection.ts
4073
4064
  var CollectionImportModelInput = _zod.z.object({
4074
4065
  id: _zod.z.string(),
4075
4066
  name: _zod.z.string(),
@@ -4321,35 +4312,6 @@ var RenderedAssetFile = _zod.z.object({
4321
4312
  settings: AssetRenderConfiguration
4322
4313
  });
4323
4314
 
4324
- // src/dsm/design-system.ts
4325
-
4326
- var DesignSystemAccessMode = _zod.z.enum(["Open", "InviteOnly"]);
4327
- var DesignSystemSwitcher = _zod.z.object({
4328
- isEnabled: _zod.z.boolean(),
4329
- designSystemIds: _zod.z.array(_zod.z.string())
4330
- });
4331
- var DesignSystem = _zod.z.object({
4332
- id: _zod.z.string(),
4333
- workspaceId: _zod.z.string(),
4334
- name: _zod.z.string(),
4335
- description: _zod.z.string(),
4336
- docExporterId: nullishToOptional(_zod.z.string()),
4337
- docSlug: _zod.z.string(),
4338
- docUserSlug: nullishToOptional(_zod.z.string()),
4339
- docSlugDeprecated: _zod.z.string(),
4340
- isMultibrand: _zod.z.boolean(),
4341
- docViewUrl: nullishToOptional(_zod.z.string()),
4342
- basePrefixes: _zod.z.array(_zod.z.string()),
4343
- designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
4344
- isApprovalFeatureEnabled: _zod.z.boolean(),
4345
- approvalRequiredForPublishing: _zod.z.boolean(),
4346
- accessMode: DesignSystemAccessMode,
4347
- membersGenerated: _zod.z.boolean(),
4348
- sharedDraftId: _zod.z.string().optional(),
4349
- createdAt: _zod.z.coerce.date(),
4350
- updatedAt: _zod.z.coerce.date()
4351
- });
4352
-
4353
4315
  // src/dsm/documentation/approvals/approval-state.ts
4354
4316
 
4355
4317
  var DocumentationPageApprovalState = _zod.z.enum(["ReadyForReview", "ChangesRequested", "Approved"]);
@@ -4640,31 +4602,6 @@ function pickLatestGroupSnapshots(snapshots) {
4640
4602
  return pickLatestSnapshots(snapshots, (s) => s.group.id);
4641
4603
  }
4642
4604
 
4643
- // src/dsm/exporter-property-values-collection.ts
4644
-
4645
- var ExporterPropertyImageValue = _zod.z.object({
4646
- asset: PageBlockAsset.optional(),
4647
- assetId: _zod.z.string().optional(),
4648
- assetUrl: _zod.z.string().optional()
4649
- });
4650
- var ExporterConfigurationPropertyValue = _zod.z.object({
4651
- key: _zod.z.string(),
4652
- value: _zod.z.union([
4653
- _zod.z.number(),
4654
- _zod.z.string(),
4655
- _zod.z.boolean(),
4656
- ExporterPropertyImageValue,
4657
- ColorTokenData,
4658
- TypographyTokenData
4659
- ])
4660
- });
4661
- var ExporterPropertyValuesCollection = _zod.z.object({
4662
- id: _zod.z.string(),
4663
- designSystemId: _zod.z.string(),
4664
- exporterId: _zod.z.string(),
4665
- values: _zod.z.array(ExporterConfigurationPropertyValue)
4666
- });
4667
-
4668
4605
  // src/dsm/figma-exporter/figma-exporter.ts
4669
4606
 
4670
4607
  var FigmaExporterProcessedStylesSchema = _zod.z.object({
@@ -4786,6 +4723,14 @@ var FigmaExporterProcessedStylesSchema = _zod.z.object({
4786
4723
  textShadow: _zod.z.string().optional(),
4787
4724
  filter: _zod.z.string().optional(),
4788
4725
  backdropFilter: _zod.z.string().optional(),
4726
+ maskImage: _zod.z.string().optional(),
4727
+ maskRepeat: _zod.z.string().optional(),
4728
+ maskPosition: _zod.z.string().optional(),
4729
+ maskSize: _zod.z.string().optional(),
4730
+ WebkitMaskImage: _zod.z.string().optional(),
4731
+ WebkitMaskRepeat: _zod.z.string().optional(),
4732
+ WebkitMaskPosition: _zod.z.string().optional(),
4733
+ WebkitMaskSize: _zod.z.string().optional(),
4789
4734
  mixBlendMode: _zod.z.union([
4790
4735
  _zod.z.literal("normal"),
4791
4736
  _zod.z.literal("multiply"),
@@ -4891,7 +4836,8 @@ var FigmaExporterDesignNodeTypeSchema = _zod.z.union([
4891
4836
  _zod.z.literal("TEXT"),
4892
4837
  _zod.z.literal("SVG"),
4893
4838
  _zod.z.literal("IMAGE"),
4894
- _zod.z.literal("COMPONENT_INSTANCE")
4839
+ _zod.z.literal("COMPONENT_INSTANCE"),
4840
+ _zod.z.literal("MASK_GROUP")
4895
4841
  ]);
4896
4842
  var baseDesignNodeObjectSchema = _zod.z.object({
4897
4843
  id: _zod.z.string(),
@@ -4925,6 +4871,35 @@ var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
4925
4871
  componentDescription: _zod.z.string(),
4926
4872
  props: _zod.z.record(_zod.z.string(), _zod.z.union([_zod.z.string(), _zod.z.boolean()]))
4927
4873
  });
4874
+ var svgMaskDefinitionSchema = _zod.z.object({
4875
+ type: _zod.z.literal("SVG_MASK"),
4876
+ svgString: _zod.z.string(),
4877
+ width: _zod.z.number(),
4878
+ height: _zod.z.number()
4879
+ });
4880
+ var rectClipMaskDefinitionSchema = _zod.z.object({
4881
+ type: _zod.z.literal("RECT_CLIP"),
4882
+ width: _zod.z.number(),
4883
+ height: _zod.z.number(),
4884
+ borderRadius: _zod.z.string().optional()
4885
+ });
4886
+ var ellipseClipMaskDefinitionSchema = _zod.z.object({
4887
+ type: _zod.z.literal("ELLIPSE_CLIP"),
4888
+ width: _zod.z.number(),
4889
+ height: _zod.z.number()
4890
+ });
4891
+ var FigmaExporterMaskDefinitionSchema = _zod.z.union([
4892
+ svgMaskDefinitionSchema,
4893
+ rectClipMaskDefinitionSchema,
4894
+ ellipseClipMaskDefinitionSchema
4895
+ ]);
4896
+ var maskGroupNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4897
+ type: _zod.z.literal("MASK_GROUP"),
4898
+ maskType: _zod.z.union([_zod.z.literal("ALPHA"), _zod.z.literal("VECTOR")]),
4899
+ maskSourceId: _zod.z.string(),
4900
+ maskSourceName: _zod.z.string(),
4901
+ maskDefinition: FigmaExporterMaskDefinitionSchema
4902
+ });
4928
4903
  var frameNodeSchema = _zod.z.lazy(
4929
4904
  () => frameNodeObjectSchema.extend({
4930
4905
  children: FigmaExporterAnyDesignNodeSchema.array()
@@ -4942,12 +4917,18 @@ var componentInstanceNodeSchema = _zod.z.lazy(
4942
4917
  children: FigmaExporterAnyDesignNodeSchema.array()
4943
4918
  })
4944
4919
  );
4920
+ var maskGroupNodeSchema = _zod.z.lazy(
4921
+ () => maskGroupNodeObjectSchema.extend({
4922
+ children: FigmaExporterAnyDesignNodeSchema.array()
4923
+ })
4924
+ );
4945
4925
  var FigmaExporterAnyDesignNodeSchema = _zod.z.union([
4946
4926
  frameNodeSchema,
4947
4927
  textNodeSchema,
4948
4928
  svgNodeSchema,
4949
4929
  imageNodeSchema,
4950
- componentInstanceNodeSchema
4930
+ componentInstanceNodeSchema,
4931
+ maskGroupNodeSchema
4951
4932
  ]);
4952
4933
 
4953
4934
  // src/dsm/figma-node-renderer/renderer-payload.ts
@@ -5810,29 +5791,126 @@ var PipelineExporterQuery = _zod.z.object({
5810
5791
  exporterId: _zod.z.string().optional()
5811
5792
  });
5812
5793
 
5813
- // src/dsm/published-doc.ts
5794
+ // src/dsm/views/column.ts
5814
5795
 
5815
- var publishedDocEnvironments = ["Live", "Preview"];
5816
- var PublishedDocEnvironment = _zod.z.enum(publishedDocEnvironments);
5817
- var PublishedDocsChecksums = _zod.z.record(_zod.z.string());
5818
- var PublishedDocRoutingVersion = _zod.z.enum(["1", "2"]);
5819
- var PublishedDoc = _zod.z.object({
5796
+ var ElementViewBaseColumnType = _zod.z.enum(["Name", "Description", "Value", "UpdatedAt"]);
5797
+ var ElementViewColumnType = _zod.z.union([
5798
+ _zod.z.literal("BaseProperty"),
5799
+ _zod.z.literal("PropertyDefinition"),
5800
+ _zod.z.literal("Theme")
5801
+ ]);
5802
+ var ElementViewColumnSharedAttributes = _zod.z.object({
5820
5803
  id: _zod.z.string(),
5804
+ persistentId: _zod.z.string(),
5805
+ elementDataViewId: _zod.z.string(),
5806
+ sortPosition: _zod.z.number(),
5807
+ width: _zod.z.number()
5808
+ });
5809
+ var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
5810
+ type: _zod.z.literal("BaseProperty"),
5811
+ basePropertyType: ElementViewBaseColumnType
5812
+ });
5813
+ var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
5814
+ type: _zod.z.literal("PropertyDefinition"),
5815
+ propertyDefinitionId: _zod.z.string()
5816
+ });
5817
+ var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
5818
+ type: _zod.z.literal("Theme"),
5819
+ themeId: _zod.z.string()
5820
+ });
5821
+ var ElementViewColumn = _zod.z.discriminatedUnion("type", [
5822
+ ElementViewBasePropertyColumn,
5823
+ ElementViewPropertyDefinitionColumn,
5824
+ ElementViewThemeColumn
5825
+ ]);
5826
+
5827
+ // src/dsm/views/view.ts
5828
+
5829
+ var ElementView = _zod.z.object({
5830
+ id: _zod.z.string(),
5831
+ persistentId: _zod.z.string(),
5821
5832
  designSystemVersionId: _zod.z.string(),
5833
+ name: _zod.z.string(),
5834
+ description: _zod.z.string(),
5835
+ targetElementType: ElementPropertyTargetType,
5836
+ isDefault: _zod.z.boolean()
5837
+ });
5838
+
5839
+ // src/dsm/brand.ts
5840
+
5841
+ var Brand = _zod.z.object({
5842
+ id: _zod.z.string(),
5843
+ designSystemVersionId: _zod.z.string(),
5844
+ persistentId: _zod.z.string(),
5845
+ name: _zod.z.string(),
5846
+ description: _zod.z.string()
5847
+ });
5848
+
5849
+ // src/dsm/design-system.ts
5850
+
5851
+ var DesignSystemAccessMode = _zod.z.enum(["Open", "InviteOnly"]);
5852
+ var DesignSystemSwitcher = _zod.z.object({
5853
+ isEnabled: _zod.z.boolean(),
5854
+ designSystemIds: _zod.z.array(_zod.z.string())
5855
+ });
5856
+ var DesignSystem = _zod.z.object({
5857
+ id: _zod.z.string(),
5858
+ workspaceId: _zod.z.string(),
5859
+ name: _zod.z.string(),
5860
+ description: _zod.z.string(),
5861
+ docExporterId: nullishToOptional(_zod.z.string()),
5862
+ docSlug: _zod.z.string(),
5863
+ docUserSlug: nullishToOptional(_zod.z.string()),
5864
+ docSlugDeprecated: _zod.z.string(),
5865
+ isMultibrand: _zod.z.boolean(),
5866
+ docViewUrl: nullishToOptional(_zod.z.string()),
5867
+ basePrefixes: _zod.z.array(_zod.z.string()),
5868
+ designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
5869
+ isApprovalFeatureEnabled: _zod.z.boolean(),
5870
+ approvalRequiredForPublishing: _zod.z.boolean(),
5871
+ accessMode: DesignSystemAccessMode,
5872
+ membersGenerated: _zod.z.boolean(),
5873
+ sharedDraftId: _zod.z.string().optional(),
5822
5874
  createdAt: _zod.z.coerce.date(),
5823
- updatedAt: _zod.z.coerce.date(),
5824
- lastPublishedAt: _zod.z.coerce.date(),
5825
- isDefault: _zod.z.boolean(),
5826
- isPublic: _zod.z.boolean(),
5827
- environment: PublishedDocEnvironment,
5828
- checksums: PublishedDocsChecksums,
5829
- storagePath: _zod.z.string(),
5830
- wasMigrated: _zod.z.boolean(),
5831
- routingVersion: PublishedDocRoutingVersion,
5832
- usesLocalizations: _zod.z.boolean(),
5833
- wasPublishedWithLocalizations: _zod.z.boolean(),
5834
- tokenCount: _zod.z.number(),
5835
- assetCount: _zod.z.number()
5875
+ updatedAt: _zod.z.coerce.date()
5876
+ });
5877
+
5878
+ // src/dsm/exporter-property-values-collection.ts
5879
+
5880
+ var ExporterPropertyImageValue = _zod.z.object({
5881
+ asset: PageBlockAsset.optional(),
5882
+ assetId: _zod.z.string().optional(),
5883
+ assetUrl: _zod.z.string().optional()
5884
+ });
5885
+ var ExporterConfigurationPropertyValue = _zod.z.object({
5886
+ key: _zod.z.string(),
5887
+ value: _zod.z.union([
5888
+ _zod.z.number(),
5889
+ _zod.z.string(),
5890
+ _zod.z.boolean(),
5891
+ ExporterPropertyImageValue,
5892
+ ColorTokenData,
5893
+ TypographyTokenData
5894
+ ])
5895
+ });
5896
+ var ExporterPropertyValuesCollection = _zod.z.object({
5897
+ id: _zod.z.string(),
5898
+ designSystemId: _zod.z.string(),
5899
+ exporterId: _zod.z.string(),
5900
+ values: _zod.z.array(ExporterConfigurationPropertyValue)
5901
+ });
5902
+
5903
+ // src/dsm/published-doc-page-visits.ts
5904
+
5905
+ var PublishedDocPageVisitsEntry = _zod.z.object({
5906
+ id: _zod.z.string(),
5907
+ versionId: _zod.z.string(),
5908
+ pagePersistentId: _zod.z.string(),
5909
+ locale: _zod.z.string().optional(),
5910
+ timestamp: _zod.z.coerce.date(),
5911
+ visits: _zod.z.number(),
5912
+ userId: nullishToOptional(_zod.z.string()),
5913
+ anonymousId: nullishToOptional(_zod.z.string())
5836
5914
  });
5837
5915
 
5838
5916
  // src/dsm/published-doc-page.ts
@@ -5858,17 +5936,29 @@ var PublishedDocPage = _zod.z.object({
5858
5936
  updatedAt: _zod.z.coerce.date()
5859
5937
  });
5860
5938
 
5861
- // src/dsm/published-doc-page-visits.ts
5939
+ // src/dsm/published-doc.ts
5862
5940
 
5863
- var PublishedDocPageVisitsEntry = _zod.z.object({
5941
+ var publishedDocEnvironments = ["Live", "Preview"];
5942
+ var PublishedDocEnvironment = _zod.z.enum(publishedDocEnvironments);
5943
+ var PublishedDocsChecksums = _zod.z.record(_zod.z.string());
5944
+ var PublishedDocRoutingVersion = _zod.z.enum(["1", "2"]);
5945
+ var PublishedDoc = _zod.z.object({
5864
5946
  id: _zod.z.string(),
5865
- versionId: _zod.z.string(),
5866
- pagePersistentId: _zod.z.string(),
5867
- locale: _zod.z.string().optional(),
5868
- timestamp: _zod.z.coerce.date(),
5869
- visits: _zod.z.number(),
5870
- userId: nullishToOptional(_zod.z.string()),
5871
- anonymousId: nullishToOptional(_zod.z.string())
5947
+ designSystemVersionId: _zod.z.string(),
5948
+ createdAt: _zod.z.coerce.date(),
5949
+ updatedAt: _zod.z.coerce.date(),
5950
+ lastPublishedAt: _zod.z.coerce.date(),
5951
+ isDefault: _zod.z.boolean(),
5952
+ isPublic: _zod.z.boolean(),
5953
+ environment: PublishedDocEnvironment,
5954
+ checksums: PublishedDocsChecksums,
5955
+ storagePath: _zod.z.string(),
5956
+ wasMigrated: _zod.z.boolean(),
5957
+ routingVersion: PublishedDocRoutingVersion,
5958
+ usesLocalizations: _zod.z.boolean(),
5959
+ wasPublishedWithLocalizations: _zod.z.boolean(),
5960
+ tokenCount: _zod.z.number(),
5961
+ assetCount: _zod.z.number()
5872
5962
  });
5873
5963
 
5874
5964
  // src/dsm/storybook-entry.ts
@@ -5929,51 +6019,6 @@ var VersionCreationJob = _zod.z.object({
5929
6019
  errorMessage: nullishToOptional(_zod.z.string())
5930
6020
  });
5931
6021
 
5932
- // src/dsm/views/column.ts
5933
-
5934
- var ElementViewBaseColumnType = _zod.z.enum(["Name", "Description", "Value", "UpdatedAt"]);
5935
- var ElementViewColumnType = _zod.z.union([
5936
- _zod.z.literal("BaseProperty"),
5937
- _zod.z.literal("PropertyDefinition"),
5938
- _zod.z.literal("Theme")
5939
- ]);
5940
- var ElementViewColumnSharedAttributes = _zod.z.object({
5941
- id: _zod.z.string(),
5942
- persistentId: _zod.z.string(),
5943
- elementDataViewId: _zod.z.string(),
5944
- sortPosition: _zod.z.number(),
5945
- width: _zod.z.number()
5946
- });
5947
- var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
5948
- type: _zod.z.literal("BaseProperty"),
5949
- basePropertyType: ElementViewBaseColumnType
5950
- });
5951
- var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
5952
- type: _zod.z.literal("PropertyDefinition"),
5953
- propertyDefinitionId: _zod.z.string()
5954
- });
5955
- var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
5956
- type: _zod.z.literal("Theme"),
5957
- themeId: _zod.z.string()
5958
- });
5959
- var ElementViewColumn = _zod.z.discriminatedUnion("type", [
5960
- ElementViewBasePropertyColumn,
5961
- ElementViewPropertyDefinitionColumn,
5962
- ElementViewThemeColumn
5963
- ]);
5964
-
5965
- // src/dsm/views/view.ts
5966
-
5967
- var ElementView = _zod.z.object({
5968
- id: _zod.z.string(),
5969
- persistentId: _zod.z.string(),
5970
- designSystemVersionId: _zod.z.string(),
5971
- name: _zod.z.string(),
5972
- description: _zod.z.string(),
5973
- targetElementType: ElementPropertyTargetType,
5974
- isDefault: _zod.z.boolean()
5975
- });
5976
-
5977
6022
  // src/export/export-destinations.ts
5978
6023
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
5979
6024
  var BITBUCKET_MAX_LENGTH = 64;
@@ -6673,7 +6718,8 @@ var FlaggedFeature = _zod.z.enum([
6673
6718
  "ForgeCopyTemplatePreset",
6674
6719
  "ForgeSandboxTimeout",
6675
6720
  "ForgeFileUploadBatchSize",
6676
- "DSVersionRoomYJSStorageVersion"
6721
+ "DSVersionRoomYJSStorageVersion",
6722
+ "ForgeTemplateUploadForAll"
6677
6723
  ]);
6678
6724
  var FeatureFlagDefaults = {
6679
6725
  DocumentationIgnoreSnapshotsOnPublish: "route-bff+route-p3",