@supernova-studio/model 0.58.12 → 0.58.14

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 z146 } from "zod";
291
+ import { z as z147 } from "zod";
292
292
 
293
293
  // src/export/exporter.ts
294
294
  import { z as z17 } from "zod";
@@ -391,10 +391,10 @@ var Exporter = z17.object({
391
391
  });
392
392
 
393
393
  // src/export/pipeline.ts
394
- import { z as z145 } from "zod";
394
+ import { z as z146 } from "zod";
395
395
 
396
396
  // src/export/export-destinations.ts
397
- import { z as z144 } from "zod";
397
+ import { z as z145 } from "zod";
398
398
 
399
399
  // src/dsm/assets/asset-dynamo-record.ts
400
400
  import { z as z18 } from "zod";
@@ -4630,159 +4630,170 @@ var ExporterPropertyValuesCollection = z140.object({
4630
4630
  values: z140.array(ExporterPropertyValue)
4631
4631
  });
4632
4632
 
4633
- // src/dsm/published-doc-page.ts
4633
+ // src/dsm/published-doc-page-visits.ts
4634
4634
  import { z as z141 } from "zod";
4635
+ var PublishedDocPageVisitsEntry = z141.object({
4636
+ id: z141.string(),
4637
+ versionId: z141.string(),
4638
+ pageShortPersistentId: z141.string(),
4639
+ locale: z141.string().optional(),
4640
+ timestamp: z141.coerce.date(),
4641
+ visits: z141.number()
4642
+ });
4643
+
4644
+ // src/dsm/published-doc-page.ts
4645
+ import { z as z142 } from "zod";
4635
4646
  var SHORT_PERSISTENT_ID_LENGTH = 8;
4636
4647
  function tryParseShortPersistentId(url = "/") {
4637
4648
  const lastUrlPart = url.split("/").pop() || "";
4638
4649
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
4639
4650
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
4640
4651
  }
4641
- var PublishedDocPage = z141.object({
4642
- id: z141.string(),
4643
- publishedDocId: z141.string(),
4644
- pageShortPersistentId: z141.string(),
4645
- pathV1: z141.string(),
4646
- pathV2: z141.string(),
4647
- storagePath: z141.string(),
4648
- locale: z141.string().optional(),
4649
- isPrivate: z141.boolean(),
4650
- isHidden: z141.boolean(),
4651
- createdAt: z141.coerce.date(),
4652
- updatedAt: z141.coerce.date()
4652
+ var PublishedDocPage = z142.object({
4653
+ id: z142.string(),
4654
+ publishedDocId: z142.string(),
4655
+ pageShortPersistentId: z142.string(),
4656
+ pathV1: z142.string(),
4657
+ pathV2: z142.string(),
4658
+ storagePath: z142.string(),
4659
+ locale: z142.string().optional(),
4660
+ isPrivate: z142.boolean(),
4661
+ isHidden: z142.boolean(),
4662
+ createdAt: z142.coerce.date(),
4663
+ updatedAt: z142.coerce.date()
4653
4664
  });
4654
4665
 
4655
4666
  // src/dsm/published-doc.ts
4656
- import { z as z142 } from "zod";
4667
+ import { z as z143 } from "zod";
4657
4668
  var publishedDocEnvironments = ["Live", "Preview"];
4658
- var PublishedDocEnvironment = z142.enum(publishedDocEnvironments);
4659
- var PublishedDocsChecksums = z142.record(z142.string());
4660
- var PublishedDocRoutingVersion = z142.enum(["1", "2"]);
4661
- var PublishedDoc = z142.object({
4662
- id: z142.string(),
4663
- designSystemVersionId: z142.string(),
4664
- createdAt: z142.coerce.date(),
4665
- updatedAt: z142.coerce.date(),
4666
- lastPublishedAt: z142.coerce.date(),
4667
- isDefault: z142.boolean(),
4668
- isPublic: z142.boolean(),
4669
+ var PublishedDocEnvironment = z143.enum(publishedDocEnvironments);
4670
+ var PublishedDocsChecksums = z143.record(z143.string());
4671
+ var PublishedDocRoutingVersion = z143.enum(["1", "2"]);
4672
+ var PublishedDoc = z143.object({
4673
+ id: z143.string(),
4674
+ designSystemVersionId: z143.string(),
4675
+ createdAt: z143.coerce.date(),
4676
+ updatedAt: z143.coerce.date(),
4677
+ lastPublishedAt: z143.coerce.date(),
4678
+ isDefault: z143.boolean(),
4679
+ isPublic: z143.boolean(),
4669
4680
  environment: PublishedDocEnvironment,
4670
4681
  checksums: PublishedDocsChecksums,
4671
- storagePath: z142.string(),
4672
- wasMigrated: z142.boolean(),
4682
+ storagePath: z143.string(),
4683
+ wasMigrated: z143.boolean(),
4673
4684
  routingVersion: PublishedDocRoutingVersion,
4674
- usesLocalizations: z142.boolean(),
4675
- wasPublishedWithLocalizations: z142.boolean(),
4676
- tokenCount: z142.number(),
4677
- assetCount: z142.number()
4685
+ usesLocalizations: z143.boolean(),
4686
+ wasPublishedWithLocalizations: z143.boolean(),
4687
+ tokenCount: z143.number(),
4688
+ assetCount: z143.number()
4678
4689
  });
4679
4690
 
4680
4691
  // src/dsm/version.ts
4681
- import { z as z143 } from "zod";
4682
- var DesignSystemVersion = z143.object({
4683
- id: z143.string(),
4684
- version: z143.string(),
4685
- createdAt: z143.coerce.date(),
4686
- designSystemId: z143.string(),
4687
- name: z143.string(),
4688
- comment: z143.string(),
4689
- isReadonly: z143.boolean(),
4690
- changeLog: z143.string(),
4691
- parentId: z143.string().optional(),
4692
- isDraftsFeatureAdopted: z143.boolean()
4693
- });
4694
- var VersionCreationJobStatus = z143.enum(["Success", "InProgress", "Error"]);
4695
- var VersionCreationJob = z143.object({
4696
- id: z143.string(),
4697
- version: z143.string(),
4698
- designSystemId: z143.string(),
4699
- designSystemVersionId: nullishToOptional(z143.string()),
4692
+ import { z as z144 } from "zod";
4693
+ var DesignSystemVersion = z144.object({
4694
+ id: z144.string(),
4695
+ version: z144.string(),
4696
+ createdAt: z144.coerce.date(),
4697
+ designSystemId: z144.string(),
4698
+ name: z144.string(),
4699
+ comment: z144.string(),
4700
+ isReadonly: z144.boolean(),
4701
+ changeLog: z144.string(),
4702
+ parentId: z144.string().optional(),
4703
+ isDraftsFeatureAdopted: z144.boolean()
4704
+ });
4705
+ var VersionCreationJobStatus = z144.enum(["Success", "InProgress", "Error"]);
4706
+ var VersionCreationJob = z144.object({
4707
+ id: z144.string(),
4708
+ version: z144.string(),
4709
+ designSystemId: z144.string(),
4710
+ designSystemVersionId: nullishToOptional(z144.string()),
4700
4711
  status: VersionCreationJobStatus,
4701
- errorMessage: nullishToOptional(z143.string())
4712
+ errorMessage: nullishToOptional(z144.string())
4702
4713
  });
4703
4714
 
4704
4715
  // src/export/export-destinations.ts
4705
4716
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
4706
4717
  var BITBUCKET_MAX_LENGTH = 64;
4707
- var ExportJobDocumentationChanges = z144.object({
4708
- pagePersistentIds: z144.string().array(),
4709
- groupPersistentIds: z144.string().array()
4718
+ var ExportJobDocumentationChanges = z145.object({
4719
+ pagePersistentIds: z145.string().array(),
4720
+ groupPersistentIds: z145.string().array()
4710
4721
  });
4711
- var ExporterDestinationDocs = z144.object({
4722
+ var ExporterDestinationDocs = z145.object({
4712
4723
  environment: PublishedDocEnvironment,
4713
4724
  changes: nullishToOptional(ExportJobDocumentationChanges)
4714
4725
  });
4715
- var ExporterDestinationS3 = z144.object({});
4716
- var ExporterDestinationGithub = z144.object({
4717
- credentialId: z144.string().optional(),
4726
+ var ExporterDestinationS3 = z145.object({});
4727
+ var ExporterDestinationGithub = z145.object({
4728
+ credentialId: z145.string().optional(),
4718
4729
  // Repository
4719
- url: z144.string(),
4730
+ url: z145.string(),
4720
4731
  // Location
4721
- branch: z144.string(),
4722
- relativePath: nullishToOptional(z144.string()),
4723
- purgeDirectory: nullishToOptional(z144.boolean()),
4732
+ branch: z145.string(),
4733
+ relativePath: nullishToOptional(z145.string()),
4734
+ purgeDirectory: nullishToOptional(z145.boolean()),
4724
4735
  // Commit metadata
4725
- commitAuthorName: nullishToOptional(z144.string()),
4726
- commitAuthorEmail: nullishToOptional(z144.string()),
4736
+ commitAuthorName: nullishToOptional(z145.string()),
4737
+ commitAuthorEmail: nullishToOptional(z145.string()),
4727
4738
  // Legacy deprecated fields. Use `credentialId` instead
4728
- connectionId: nullishToOptional(z144.string()),
4729
- userId: nullishToOptional(z144.number())
4739
+ connectionId: nullishToOptional(z145.string()),
4740
+ userId: nullishToOptional(z145.number())
4730
4741
  });
4731
- var ExporterDestinationAzure = z144.object({
4732
- credentialId: z144.string().optional(),
4742
+ var ExporterDestinationAzure = z145.object({
4743
+ credentialId: z145.string().optional(),
4733
4744
  // Repository
4734
- organizationId: z144.string(),
4735
- projectId: z144.string(),
4736
- repositoryId: z144.string(),
4745
+ organizationId: z145.string(),
4746
+ projectId: z145.string(),
4747
+ repositoryId: z145.string(),
4737
4748
  // Commit metadata
4738
- commitAuthorName: nullishToOptional(z144.string()),
4739
- commitAuthorEmail: nullishToOptional(z144.string()),
4749
+ commitAuthorName: nullishToOptional(z145.string()),
4750
+ commitAuthorEmail: nullishToOptional(z145.string()),
4740
4751
  // Location
4741
- branch: z144.string(),
4742
- relativePath: nullishToOptional(z144.string()),
4743
- purgeDirectory: nullishToOptional(z144.boolean()),
4752
+ branch: z145.string(),
4753
+ relativePath: nullishToOptional(z145.string()),
4754
+ purgeDirectory: nullishToOptional(z145.boolean()),
4744
4755
  // Maybe not needed
4745
- url: nullishToOptional(z144.string()),
4756
+ url: nullishToOptional(z145.string()),
4746
4757
  // Legacy deprecated fields. Use `credentialId` instead
4747
- connectionId: nullishToOptional(z144.string()),
4748
- userId: nullishToOptional(z144.number())
4758
+ connectionId: nullishToOptional(z145.string()),
4759
+ userId: nullishToOptional(z145.number())
4749
4760
  });
4750
- var ExporterDestinationGitlab = z144.object({
4751
- credentialId: z144.string().optional(),
4761
+ var ExporterDestinationGitlab = z145.object({
4762
+ credentialId: z145.string().optional(),
4752
4763
  // Repository
4753
- projectId: z144.string(),
4764
+ projectId: z145.string(),
4754
4765
  // Commit metadata
4755
- commitAuthorName: nullishToOptional(z144.string()),
4756
- commitAuthorEmail: nullishToOptional(z144.string()),
4766
+ commitAuthorName: nullishToOptional(z145.string()),
4767
+ commitAuthorEmail: nullishToOptional(z145.string()),
4757
4768
  // Location
4758
- branch: z144.string(),
4759
- relativePath: nullishToOptional(z144.string()),
4760
- purgeDirectory: nullishToOptional(z144.boolean()),
4769
+ branch: z145.string(),
4770
+ relativePath: nullishToOptional(z145.string()),
4771
+ purgeDirectory: nullishToOptional(z145.boolean()),
4761
4772
  // Maybe not needed
4762
- url: nullishToOptional(z144.string()),
4773
+ url: nullishToOptional(z145.string()),
4763
4774
  // Legacy deprecated fields. Use `credentialId` instead
4764
- connectionId: nullishToOptional(z144.string()),
4765
- userId: nullishToOptional(z144.number())
4775
+ connectionId: nullishToOptional(z145.string()),
4776
+ userId: nullishToOptional(z145.number())
4766
4777
  });
4767
- var ExporterDestinationBitbucket = z144.object({
4768
- credentialId: z144.string().optional(),
4778
+ var ExporterDestinationBitbucket = z145.object({
4779
+ credentialId: z145.string().optional(),
4769
4780
  // Repository
4770
- workspaceSlug: z144.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4771
- projectKey: z144.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4772
- repoSlug: z144.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4781
+ workspaceSlug: z145.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4782
+ projectKey: z145.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4783
+ repoSlug: z145.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
4773
4784
  // Commit metadata
4774
- commitAuthorName: nullishToOptional(z144.string()),
4775
- commitAuthorEmail: nullishToOptional(z144.string()),
4785
+ commitAuthorName: nullishToOptional(z145.string()),
4786
+ commitAuthorEmail: nullishToOptional(z145.string()),
4776
4787
  // Location
4777
- branch: z144.string(),
4778
- relativePath: nullishToOptional(z144.string()),
4779
- purgeDirectory: nullishToOptional(z144.boolean()),
4788
+ branch: z145.string(),
4789
+ relativePath: nullishToOptional(z145.string()),
4790
+ purgeDirectory: nullishToOptional(z145.boolean()),
4780
4791
  // Legacy deprecated fields. Use `credentialId` instead
4781
- connectionId: nullishToOptional(z144.string()),
4782
- userId: nullishToOptional(z144.number())
4792
+ connectionId: nullishToOptional(z145.string()),
4793
+ userId: nullishToOptional(z145.number())
4783
4794
  });
4784
- var ExportDestinationsMap = z144.object({
4785
- webhookUrl: z144.string().optional(),
4795
+ var ExportDestinationsMap = z145.object({
4796
+ webhookUrl: z145.string().optional(),
4786
4797
  destinationSnDocs: ExporterDestinationDocs.optional(),
4787
4798
  destinationS3: ExporterDestinationS3.optional(),
4788
4799
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -4792,149 +4803,149 @@ var ExportDestinationsMap = z144.object({
4792
4803
  });
4793
4804
 
4794
4805
  // src/export/pipeline.ts
4795
- var PipelineEventType = z145.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4796
- var PipelineDestinationGitType = z145.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4797
- var PipelineDestinationExtraType = z145.enum(["WebhookUrl", "S3", "Documentation"]);
4798
- var PipelineDestinationType = z145.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4799
- var Pipeline = z145.object({
4800
- id: z145.string(),
4801
- name: z145.string(),
4806
+ var PipelineEventType = z146.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
4807
+ var PipelineDestinationGitType = z146.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
4808
+ var PipelineDestinationExtraType = z146.enum(["WebhookUrl", "S3", "Documentation"]);
4809
+ var PipelineDestinationType = z146.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
4810
+ var Pipeline = z146.object({
4811
+ id: z146.string(),
4812
+ name: z146.string(),
4802
4813
  eventType: PipelineEventType,
4803
- isEnabled: z145.boolean(),
4804
- workspaceId: z145.string(),
4805
- designSystemId: z145.string(),
4806
- exporterId: z145.string(),
4807
- brandPersistentId: z145.string().optional(),
4808
- themePersistentId: z145.string().optional(),
4809
- themePersistentIds: z145.string().array().optional(),
4814
+ isEnabled: z146.boolean(),
4815
+ workspaceId: z146.string(),
4816
+ designSystemId: z146.string(),
4817
+ exporterId: z146.string(),
4818
+ brandPersistentId: z146.string().optional(),
4819
+ themePersistentId: z146.string().optional(),
4820
+ themePersistentIds: z146.string().array().optional(),
4810
4821
  // Destinations
4811
4822
  ...ExportDestinationsMap.shape
4812
4823
  });
4813
4824
 
4814
4825
  // src/data-dumps/code-integration-dump.ts
4815
- var ExportJobDump = z146.object({
4816
- id: z146.string(),
4817
- createdAt: z146.coerce.date(),
4818
- finishedAt: z146.coerce.date(),
4819
- exportArtefacts: z146.string()
4826
+ var ExportJobDump = z147.object({
4827
+ id: z147.string(),
4828
+ createdAt: z147.coerce.date(),
4829
+ finishedAt: z147.coerce.date(),
4830
+ exportArtefacts: z147.string()
4820
4831
  });
4821
- var CodeIntegrationDump = z146.object({
4832
+ var CodeIntegrationDump = z147.object({
4822
4833
  exporters: Exporter.array(),
4823
4834
  pipelines: Pipeline.array(),
4824
4835
  exportJobs: ExportJobDump.array()
4825
4836
  });
4826
4837
 
4827
4838
  // src/data-dumps/design-system-dump.ts
4828
- import { z as z153 } from "zod";
4839
+ import { z as z154 } from "zod";
4829
4840
 
4830
4841
  // src/data-dumps/design-system-version-dump.ts
4831
- import { z as z152 } from "zod";
4842
+ import { z as z153 } from "zod";
4832
4843
 
4833
4844
  // src/liveblocks/rooms/design-system-version-room.ts
4834
- import { z as z147 } from "zod";
4845
+ import { z as z148 } from "zod";
4835
4846
  var DesignSystemVersionRoom = Entity.extend({
4836
- designSystemVersionId: z147.string(),
4837
- liveblocksId: z147.string()
4838
- });
4839
- var DesignSystemVersionRoomInternalSettings = z147.object({
4840
- routingVersion: z147.string(),
4841
- isDraftFeatureAdopted: z147.boolean(),
4842
- isApprovalFeatureEnabled: z147.boolean(),
4843
- approvalRequiredForPublishing: z147.boolean()
4844
- });
4845
- var DesignSystemVersionRoomInitialState = z147.object({
4846
- pages: z147.array(DocumentationPageV2),
4847
- groups: z147.array(ElementGroup),
4848
- pageSnapshots: z147.array(DocumentationPageSnapshot),
4849
- groupSnapshots: z147.array(ElementGroupSnapshot),
4850
- pageApprovals: z147.array(DocumentationPageApproval),
4847
+ designSystemVersionId: z148.string(),
4848
+ liveblocksId: z148.string()
4849
+ });
4850
+ var DesignSystemVersionRoomInternalSettings = z148.object({
4851
+ routingVersion: z148.string(),
4852
+ isDraftFeatureAdopted: z148.boolean(),
4853
+ isApprovalFeatureEnabled: z148.boolean(),
4854
+ approvalRequiredForPublishing: z148.boolean()
4855
+ });
4856
+ var DesignSystemVersionRoomInitialState = z148.object({
4857
+ pages: z148.array(DocumentationPageV2),
4858
+ groups: z148.array(ElementGroup),
4859
+ pageSnapshots: z148.array(DocumentationPageSnapshot),
4860
+ groupSnapshots: z148.array(ElementGroupSnapshot),
4861
+ pageApprovals: z148.array(DocumentationPageApproval),
4851
4862
  internalSettings: DesignSystemVersionRoomInternalSettings
4852
4863
  });
4853
- var DesignSystemVersionRoomUpdate = z147.object({
4854
- pages: z147.array(DocumentationPageV2),
4855
- groups: z147.array(ElementGroup),
4856
- pageIdsToDelete: z147.array(z147.string()),
4857
- groupIdsToDelete: z147.array(z147.string()),
4858
- pageSnapshots: z147.array(DocumentationPageSnapshot),
4859
- groupSnapshots: z147.array(ElementGroupSnapshot),
4860
- pageSnapshotIdsToDelete: z147.array(z147.string()),
4861
- groupSnapshotIdsToDelete: z147.array(z147.string()),
4862
- pageHashesToUpdate: z147.record(z147.string(), z147.string()),
4863
- pageApprovals: z147.array(DocumentationPageApproval),
4864
- pageApprovalIdsToDelete: z147.array(z147.string())
4864
+ var DesignSystemVersionRoomUpdate = z148.object({
4865
+ pages: z148.array(DocumentationPageV2),
4866
+ groups: z148.array(ElementGroup),
4867
+ pageIdsToDelete: z148.array(z148.string()),
4868
+ groupIdsToDelete: z148.array(z148.string()),
4869
+ pageSnapshots: z148.array(DocumentationPageSnapshot),
4870
+ groupSnapshots: z148.array(ElementGroupSnapshot),
4871
+ pageSnapshotIdsToDelete: z148.array(z148.string()),
4872
+ groupSnapshotIdsToDelete: z148.array(z148.string()),
4873
+ pageHashesToUpdate: z148.record(z148.string(), z148.string()),
4874
+ pageApprovals: z148.array(DocumentationPageApproval),
4875
+ pageApprovalIdsToDelete: z148.array(z148.string())
4865
4876
  });
4866
4877
 
4867
4878
  // src/liveblocks/rooms/documentation-page-room.ts
4868
- import { z as z148 } from "zod";
4879
+ import { z as z149 } from "zod";
4869
4880
  var DocumentationPageRoom = Entity.extend({
4870
- designSystemVersionId: z148.string(),
4871
- documentationPageId: z148.string(),
4872
- liveblocksId: z148.string(),
4873
- isDirty: z148.boolean()
4881
+ designSystemVersionId: z149.string(),
4882
+ documentationPageId: z149.string(),
4883
+ liveblocksId: z149.string(),
4884
+ isDirty: z149.boolean()
4874
4885
  });
4875
- var DocumentationPageRoomState = z148.object({
4876
- pageItems: z148.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4886
+ var DocumentationPageRoomState = z149.object({
4887
+ pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4877
4888
  itemConfiguration: DocumentationItemConfigurationV2
4878
4889
  });
4879
- var DocumentationPageRoomRoomUpdate = z148.object({
4890
+ var DocumentationPageRoomRoomUpdate = z149.object({
4880
4891
  page: DocumentationPageV2,
4881
4892
  pageParent: ElementGroup
4882
4893
  });
4883
4894
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
4884
- pageItems: z148.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4885
- blockDefinitions: z148.array(PageBlockDefinition)
4895
+ pageItems: z149.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4896
+ blockDefinitions: z149.array(PageBlockDefinition)
4886
4897
  });
4887
- var RestoredDocumentationPage = z148.object({
4898
+ var RestoredDocumentationPage = z149.object({
4888
4899
  page: DocumentationPageV2,
4889
4900
  pageParent: ElementGroup,
4890
4901
  pageContent: DocumentationPageContentData,
4891
- contentHash: z148.string(),
4892
- snapshotId: z148.string(),
4893
- roomId: z148.string().optional()
4902
+ contentHash: z149.string(),
4903
+ snapshotId: z149.string(),
4904
+ roomId: z149.string().optional()
4894
4905
  });
4895
- var RestoredDocumentationGroup = z148.object({
4906
+ var RestoredDocumentationGroup = z149.object({
4896
4907
  group: ElementGroup,
4897
4908
  parent: ElementGroup
4898
4909
  });
4899
4910
 
4900
4911
  // src/liveblocks/rooms/room-type.ts
4901
- import { z as z149 } from "zod";
4912
+ import { z as z150 } from "zod";
4902
4913
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
4903
4914
  RoomTypeEnum2["DocumentationPage"] = "documentation-page";
4904
4915
  RoomTypeEnum2["DesignSystemVersion"] = "design-system-version";
4905
4916
  RoomTypeEnum2["Workspace"] = "workspace";
4906
4917
  return RoomTypeEnum2;
4907
4918
  })(RoomTypeEnum || {});
4908
- var RoomTypeSchema = z149.nativeEnum(RoomTypeEnum);
4919
+ var RoomTypeSchema = z150.nativeEnum(RoomTypeEnum);
4909
4920
  var RoomType = RoomTypeSchema.enum;
4910
4921
 
4911
4922
  // src/liveblocks/rooms/workspace-room.ts
4912
- import { z as z150 } from "zod";
4923
+ import { z as z151 } from "zod";
4913
4924
  var WorkspaceRoom = Entity.extend({
4914
- workspaceId: z150.string(),
4915
- liveblocksId: z150.string()
4925
+ workspaceId: z151.string(),
4926
+ liveblocksId: z151.string()
4916
4927
  });
4917
4928
 
4918
4929
  // src/data-dumps/published-docs-dump.ts
4919
- import { z as z151 } from "zod";
4920
- var PublishedDocsDump = z151.object({
4930
+ import { z as z152 } from "zod";
4931
+ var PublishedDocsDump = z152.object({
4921
4932
  documentation: PublishedDoc,
4922
4933
  pages: PublishedDocPage.array()
4923
4934
  });
4924
4935
 
4925
4936
  // src/data-dumps/design-system-version-dump.ts
4926
- var DocumentationThreadDump = z152.object({
4937
+ var DocumentationThreadDump = z153.object({
4927
4938
  thread: DocumentationCommentThread,
4928
4939
  comments: DocumentationComment.array()
4929
4940
  });
4930
- var DocumentationPageRoomDump = z152.object({
4941
+ var DocumentationPageRoomDump = z153.object({
4931
4942
  room: DocumentationPageRoom,
4932
4943
  threads: DocumentationThreadDump.array()
4933
4944
  });
4934
- var DesignSystemVersionMultiplayerDump = z152.object({
4945
+ var DesignSystemVersionMultiplayerDump = z153.object({
4935
4946
  documentationPages: DocumentationPageRoomDump.array()
4936
4947
  });
4937
- var DesignSystemVersionDump = z152.object({
4948
+ var DesignSystemVersionDump = z153.object({
4938
4949
  version: DesignSystemVersion,
4939
4950
  brands: Brand.array(),
4940
4951
  elements: DesignElement.array(),
@@ -4949,7 +4960,7 @@ var DesignSystemVersionDump = z152.object({
4949
4960
  });
4950
4961
 
4951
4962
  // src/data-dumps/design-system-dump.ts
4952
- var DesignSystemDump = z153.object({
4963
+ var DesignSystemDump = z154.object({
4953
4964
  designSystem: DesignSystem,
4954
4965
  dataSources: DataSource.array(),
4955
4966
  versions: DesignSystemVersionDump.array(),
@@ -4958,50 +4969,50 @@ var DesignSystemDump = z153.object({
4958
4969
  });
4959
4970
 
4960
4971
  // src/data-dumps/user-data-dump.ts
4961
- import { z as z156 } from "zod";
4972
+ import { z as z157 } from "zod";
4962
4973
 
4963
4974
  // src/data-dumps/workspace-dump.ts
4964
- import { z as z155 } from "zod";
4975
+ import { z as z156 } from "zod";
4965
4976
 
4966
4977
  // src/integrations/integration.ts
4967
- import { z as z154 } from "zod";
4968
- var IntegrationDesignSystem = z154.object({
4969
- designSystemId: z154.string(),
4970
- brandId: z154.string(),
4971
- title: z154.string().optional(),
4972
- userId: z154.string().optional(),
4973
- date: z154.coerce.date().optional()
4974
- });
4975
- var IntegrationCredentialsType = z154.enum(["OAuth2", "PAT"]);
4976
- var IntegrationCredentialsState = z154.enum(["Active", "Inactive"]);
4977
- var IntegrationCredentialsProfile = z154.object({
4978
- id: nullishToOptional(z154.string()),
4979
- email: nullishToOptional(z154.string()),
4980
- handle: nullishToOptional(z154.string()),
4981
- type: nullishToOptional(z154.string()),
4982
- avatarUrl: nullishToOptional(z154.string()),
4983
- organization: nullishToOptional(z154.string()),
4984
- collection: nullishToOptional(z154.string())
4985
- });
4986
- var IntegrationCredentials = z154.object({
4987
- id: z154.string(),
4978
+ import { z as z155 } from "zod";
4979
+ var IntegrationDesignSystem = z155.object({
4980
+ designSystemId: z155.string(),
4981
+ brandId: z155.string(),
4982
+ title: z155.string().optional(),
4983
+ userId: z155.string().optional(),
4984
+ date: z155.coerce.date().optional()
4985
+ });
4986
+ var IntegrationCredentialsType = z155.enum(["OAuth2", "PAT"]);
4987
+ var IntegrationCredentialsState = z155.enum(["Active", "Inactive"]);
4988
+ var IntegrationCredentialsProfile = z155.object({
4989
+ id: nullishToOptional(z155.string()),
4990
+ email: nullishToOptional(z155.string()),
4991
+ handle: nullishToOptional(z155.string()),
4992
+ type: nullishToOptional(z155.string()),
4993
+ avatarUrl: nullishToOptional(z155.string()),
4994
+ organization: nullishToOptional(z155.string()),
4995
+ collection: nullishToOptional(z155.string())
4996
+ });
4997
+ var IntegrationCredentials = z155.object({
4998
+ id: z155.string(),
4988
4999
  type: IntegrationCredentialsType,
4989
- integrationId: z154.string(),
4990
- accessToken: z154.string(),
4991
- userId: z154.string(),
4992
- createdAt: z154.coerce.date(),
4993
- refreshToken: z154.string().optional(),
4994
- tokenName: z154.string().optional(),
4995
- expiresAt: z154.coerce.date().optional(),
4996
- refreshedAt: z154.coerce.date().optional(),
4997
- username: z154.string().optional(),
4998
- appInstallationId: z154.string().optional(),
5000
+ integrationId: z155.string(),
5001
+ accessToken: z155.string(),
5002
+ userId: z155.string(),
5003
+ createdAt: z155.coerce.date(),
5004
+ refreshToken: z155.string().optional(),
5005
+ tokenName: z155.string().optional(),
5006
+ expiresAt: z155.coerce.date().optional(),
5007
+ refreshedAt: z155.coerce.date().optional(),
5008
+ username: z155.string().optional(),
5009
+ appInstallationId: z155.string().optional(),
4999
5010
  profile: IntegrationCredentialsProfile.optional(),
5000
- customUrl: z154.string().optional(),
5011
+ customUrl: z155.string().optional(),
5001
5012
  state: IntegrationCredentialsState,
5002
5013
  user: UserMinified.optional()
5003
5014
  });
5004
- var ExtendedIntegrationType = z154.enum([
5015
+ var ExtendedIntegrationType = z155.enum([
5005
5016
  "Figma",
5006
5017
  "Github",
5007
5018
  "Gitlab",
@@ -5012,26 +5023,26 @@ var ExtendedIntegrationType = z154.enum([
5012
5023
  ]);
5013
5024
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
5014
5025
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
5015
- var Integration = z154.object({
5016
- id: z154.string(),
5017
- workspaceId: z154.string(),
5026
+ var Integration = z155.object({
5027
+ id: z155.string(),
5028
+ workspaceId: z155.string(),
5018
5029
  type: IntegrationType,
5019
- createdAt: z154.coerce.date(),
5020
- integrationCredentials: z154.array(IntegrationCredentials).optional()
5021
- });
5022
- var IntegrationToken = z154.object({
5023
- access_token: z154.string(),
5024
- refresh_token: z154.string().optional(),
5025
- expires_in: z154.union([z154.number().optional(), z154.string().optional()]),
5026
- token_type: z154.string().optional(),
5027
- token_name: z154.string().optional(),
5028
- token_azure_organization_name: z154.string().optional(),
5030
+ createdAt: z155.coerce.date(),
5031
+ integrationCredentials: z155.array(IntegrationCredentials).optional()
5032
+ });
5033
+ var IntegrationToken = z155.object({
5034
+ access_token: z155.string(),
5035
+ refresh_token: z155.string().optional(),
5036
+ expires_in: z155.union([z155.number().optional(), z155.string().optional()]),
5037
+ token_type: z155.string().optional(),
5038
+ token_name: z155.string().optional(),
5039
+ token_azure_organization_name: z155.string().optional(),
5029
5040
  // Azure Cloud PAT only
5030
- token_azure_collection_name: z154.string().optional(),
5041
+ token_azure_collection_name: z155.string().optional(),
5031
5042
  // Azure Server PAT only
5032
- token_bitbucket_username: z154.string().optional(),
5043
+ token_bitbucket_username: z155.string().optional(),
5033
5044
  // Bitbucket only
5034
- custom_url: z154.string().optional().transform((value) => {
5045
+ custom_url: z155.string().optional().transform((value) => {
5035
5046
  if (!value?.trim())
5036
5047
  return void 0;
5037
5048
  return formatCustomUrl(value);
@@ -5069,7 +5080,7 @@ function formatCustomUrl(url) {
5069
5080
  }
5070
5081
 
5071
5082
  // src/data-dumps/workspace-dump.ts
5072
- var WorkspaceDump = z155.object({
5083
+ var WorkspaceDump = z156.object({
5073
5084
  workspace: Workspace,
5074
5085
  designSystems: DesignSystemDump.array(),
5075
5086
  codeIntegration: CodeIntegrationDump,
@@ -5077,121 +5088,121 @@ var WorkspaceDump = z155.object({
5077
5088
  });
5078
5089
 
5079
5090
  // src/data-dumps/user-data-dump.ts
5080
- var UserDump = z156.object({
5091
+ var UserDump = z157.object({
5081
5092
  user: User,
5082
5093
  workspaces: WorkspaceDump.array()
5083
5094
  });
5084
5095
 
5085
5096
  // src/docs-server/session.ts
5086
- import { z as z157 } from "zod";
5087
- var NpmProxyToken = z157.object({
5088
- access: z157.string(),
5089
- expiresAt: z157.number()
5097
+ import { z as z158 } from "zod";
5098
+ var NpmProxyToken = z158.object({
5099
+ access: z158.string(),
5100
+ expiresAt: z158.number()
5090
5101
  });
5091
- var SessionData = z157.object({
5092
- returnToUrl: z157.string().optional(),
5102
+ var SessionData = z158.object({
5103
+ returnToUrl: z158.string().optional(),
5093
5104
  npmProxyToken: NpmProxyToken.optional()
5094
5105
  });
5095
- var Session = z157.object({
5096
- id: z157.string(),
5097
- expiresAt: z157.coerce.date(),
5098
- userId: z157.string().nullable(),
5106
+ var Session = z158.object({
5107
+ id: z158.string(),
5108
+ expiresAt: z158.coerce.date(),
5109
+ userId: z158.string().nullable(),
5099
5110
  data: SessionData
5100
5111
  });
5101
- var AuthTokens = z157.object({
5102
- access: z157.string(),
5103
- refresh: z157.string()
5112
+ var AuthTokens = z158.object({
5113
+ access: z158.string(),
5114
+ refresh: z158.string()
5104
5115
  });
5105
- var UserSession = z157.object({
5116
+ var UserSession = z158.object({
5106
5117
  session: Session,
5107
5118
  user: User.nullable()
5108
5119
  });
5109
5120
 
5110
5121
  // src/emails/design-system-invite.ts
5111
- import { z as z158 } from "zod";
5112
- var DesignSystemInviteEmailRecipient = z158.object({
5113
- email: z158.string(),
5122
+ import { z as z159 } from "zod";
5123
+ var DesignSystemInviteEmailRecipient = z159.object({
5124
+ email: z159.string(),
5114
5125
  role: WorkspaceRoleSchema
5115
5126
  });
5116
- var DesignSystemInviteEmailData = z158.object({
5127
+ var DesignSystemInviteEmailData = z159.object({
5117
5128
  workspace: Workspace,
5118
5129
  designSystem: DesignSystem,
5119
5130
  invitedBy: User,
5120
- documentationDomain: z158.string().optional()
5131
+ documentationDomain: z159.string().optional()
5121
5132
  });
5122
5133
 
5123
5134
  // src/emails/workspace-invite.ts
5124
- import { z as z159 } from "zod";
5125
- var WorkspaceInviteEmailRecipient = z159.object({
5126
- email: z159.string(),
5135
+ import { z as z160 } from "zod";
5136
+ var WorkspaceInviteEmailRecipient = z160.object({
5137
+ email: z160.string(),
5127
5138
  role: WorkspaceRoleSchema
5128
5139
  });
5129
- var WorkspaceInviteEmailData = z159.object({
5140
+ var WorkspaceInviteEmailData = z160.object({
5130
5141
  workspace: Workspace,
5131
5142
  invitedBy: User,
5132
- documentationDomain: z159.string().optional()
5143
+ documentationDomain: z160.string().optional()
5133
5144
  });
5134
5145
 
5135
5146
  // src/events/base.ts
5136
- import { z as z162 } from "zod";
5147
+ import { z as z163 } from "zod";
5137
5148
 
5138
5149
  // src/events/data-source-imported.ts
5139
- import { z as z160 } from "zod";
5140
- var EventDataSourceImported = z160.object({
5141
- type: z160.literal("DataSourceImported"),
5142
- workspaceId: z160.string(),
5143
- designSystemId: z160.string()
5150
+ import { z as z161 } from "zod";
5151
+ var EventDataSourceImported = z161.object({
5152
+ type: z161.literal("DataSourceImported"),
5153
+ workspaceId: z161.string(),
5154
+ designSystemId: z161.string()
5144
5155
  });
5145
5156
 
5146
5157
  // src/events/version-released.ts
5147
- import { z as z161 } from "zod";
5148
- var EventVersionReleased = z161.object({
5149
- type: z161.literal("DesignSystemVersionReleased"),
5150
- workspaceId: z161.string(),
5151
- designSystemId: z161.string(),
5152
- versionId: z161.string()
5158
+ import { z as z162 } from "zod";
5159
+ var EventVersionReleased = z162.object({
5160
+ type: z162.literal("DesignSystemVersionReleased"),
5161
+ workspaceId: z162.string(),
5162
+ designSystemId: z162.string(),
5163
+ versionId: z162.string()
5153
5164
  });
5154
5165
 
5155
5166
  // src/events/base.ts
5156
- var Event = z162.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5167
+ var Event = z163.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
5157
5168
 
5158
5169
  // src/export/export-runner/export-context.ts
5159
- import { z as z163 } from "zod";
5160
- var ExportJobDocumentationContext = z163.object({
5161
- isSingleVersionDocs: z163.boolean(),
5162
- versionSlug: z163.string(),
5170
+ import { z as z164 } from "zod";
5171
+ var ExportJobDocumentationContext = z164.object({
5172
+ isSingleVersionDocs: z164.boolean(),
5173
+ versionSlug: z164.string(),
5163
5174
  environment: PublishedDocEnvironment
5164
5175
  });
5165
- var ExportJobContext = z163.object({
5166
- apiUrl: z163.string(),
5167
- accessToken: z163.string(),
5168
- designSystemId: z163.string(),
5169
- designSystemName: z163.string(),
5170
- exporterId: z163.string(),
5171
- versionId: z163.string(),
5172
- brandId: z163.string().optional(),
5173
- themeId: z163.string().optional(),
5174
- themePersistentIds: z163.string().array().optional(),
5175
- exporterName: z163.string(),
5176
+ var ExportJobContext = z164.object({
5177
+ apiUrl: z164.string(),
5178
+ accessToken: z164.string(),
5179
+ designSystemId: z164.string(),
5180
+ designSystemName: z164.string(),
5181
+ exporterId: z164.string(),
5182
+ versionId: z164.string(),
5183
+ brandId: z164.string().optional(),
5184
+ themeId: z164.string().optional(),
5185
+ themePersistentIds: z164.string().array().optional(),
5186
+ exporterName: z164.string(),
5176
5187
  documentation: ExportJobDocumentationContext.optional()
5177
5188
  });
5178
- var ExportJobExporterConfiguration = z163.object({
5179
- exporterPackageUrl: z163.string(),
5189
+ var ExportJobExporterConfiguration = z164.object({
5190
+ exporterPackageUrl: z164.string(),
5180
5191
  exporterPropertyValues: ExporterPropertyValue.array()
5181
5192
  });
5182
5193
 
5183
5194
  // src/export/export-runner/exporter-payload.ts
5184
- import { z as z164 } from "zod";
5185
- var ExporterFunctionPayload = z164.object({
5186
- exportJobId: z164.string(),
5187
- exportContextId: z164.string(),
5188
- designSystemId: z164.string(),
5189
- workspaceId: z164.string()
5195
+ import { z as z165 } from "zod";
5196
+ var ExporterFunctionPayload = z165.object({
5197
+ exportJobId: z165.string(),
5198
+ exportContextId: z165.string(),
5199
+ designSystemId: z165.string(),
5200
+ workspaceId: z165.string()
5190
5201
  });
5191
5202
 
5192
5203
  // src/export/export-jobs.ts
5193
- import { z as z165 } from "zod";
5194
- var ExportJobDestinationType = z165.enum([
5204
+ import { z as z166 } from "zod";
5205
+ var ExportJobDestinationType = z166.enum([
5195
5206
  "s3",
5196
5207
  "webhookUrl",
5197
5208
  "github",
@@ -5200,30 +5211,30 @@ var ExportJobDestinationType = z165.enum([
5200
5211
  "gitlab",
5201
5212
  "bitbucket"
5202
5213
  ]);
5203
- var ExportJobStatus = z165.enum(["InProgress", "Success", "Failed", "Timeout"]);
5204
- var ExportJobLogEntryType = z165.enum(["success", "info", "warning", "error", "user"]);
5205
- var ExportJobLogEntry = z165.object({
5206
- id: z165.string().optional(),
5207
- time: z165.coerce.date(),
5214
+ var ExportJobStatus = z166.enum(["InProgress", "Success", "Failed", "Timeout"]);
5215
+ var ExportJobLogEntryType = z166.enum(["success", "info", "warning", "error", "user"]);
5216
+ var ExportJobLogEntry = z166.object({
5217
+ id: z166.string().optional(),
5218
+ time: z166.coerce.date(),
5208
5219
  type: ExportJobLogEntryType,
5209
- message: z165.string()
5220
+ message: z166.string()
5210
5221
  });
5211
- var ExportJobPullRequestDestinationResult = z165.object({
5212
- pullRequestUrl: z165.string()
5222
+ var ExportJobPullRequestDestinationResult = z166.object({
5223
+ pullRequestUrl: z166.string()
5213
5224
  });
5214
- var ExportJobS3DestinationResult = z165.object({
5215
- bucket: z165.string(),
5216
- urlPrefix: z165.string().optional(),
5217
- path: z165.string(),
5218
- files: z165.array(z165.string()),
5219
- url: nullishToOptional(z165.string()),
5220
- urls: nullishToOptional(z165.string().array())
5225
+ var ExportJobS3DestinationResult = z166.object({
5226
+ bucket: z166.string(),
5227
+ urlPrefix: z166.string().optional(),
5228
+ path: z166.string(),
5229
+ files: z166.array(z166.string()),
5230
+ url: nullishToOptional(z166.string()),
5231
+ urls: nullishToOptional(z166.string().array())
5221
5232
  });
5222
- var ExportJobDocsDestinationResult = z165.object({
5223
- url: z165.string()
5233
+ var ExportJobDocsDestinationResult = z166.object({
5234
+ url: z166.string()
5224
5235
  });
5225
- var ExportJobResult = z165.object({
5226
- error: z165.string().optional(),
5236
+ var ExportJobResult = z166.object({
5237
+ error: z166.string().optional(),
5227
5238
  s3: nullishToOptional(ExportJobS3DestinationResult),
5228
5239
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
5229
5240
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -5232,22 +5243,22 @@ var ExportJobResult = z165.object({
5232
5243
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
5233
5244
  logs: nullishToOptional(ExportJobLogEntry.array())
5234
5245
  });
5235
- var ExportJob = z165.object({
5236
- id: z165.string(),
5237
- createdAt: z165.coerce.date(),
5238
- finishedAt: z165.coerce.date().optional(),
5239
- designSystemId: z165.string(),
5240
- designSystemVersionId: z165.string(),
5241
- workspaceId: z165.string(),
5242
- scheduleId: z165.string().nullish(),
5243
- exporterId: z165.string(),
5244
- brandId: z165.string().optional(),
5245
- themeId: z165.string().optional(),
5246
- themePersistentIds: z165.string().array().optional(),
5247
- estimatedExecutionTime: z165.number().optional(),
5246
+ var ExportJob = z166.object({
5247
+ id: z166.string(),
5248
+ createdAt: z166.coerce.date(),
5249
+ finishedAt: z166.coerce.date().optional(),
5250
+ designSystemId: z166.string(),
5251
+ designSystemVersionId: z166.string(),
5252
+ workspaceId: z166.string(),
5253
+ scheduleId: z166.string().nullish(),
5254
+ exporterId: z166.string(),
5255
+ brandId: z166.string().optional(),
5256
+ themeId: z166.string().optional(),
5257
+ themePersistentIds: z166.string().array().optional(),
5258
+ estimatedExecutionTime: z166.number().optional(),
5248
5259
  status: ExportJobStatus,
5249
5260
  result: ExportJobResult.optional(),
5250
- createdByUserId: z165.string().optional(),
5261
+ createdByUserId: z166.string().optional(),
5251
5262
  // Destinations
5252
5263
  ...ExportDestinationsMap.shape
5253
5264
  });
@@ -5261,46 +5272,46 @@ var ExportJobFindByFilter = ExportJob.pick({
5261
5272
  themeId: true,
5262
5273
  brandId: true
5263
5274
  }).extend({
5264
- destinations: z165.array(ExportJobDestinationType),
5275
+ destinations: z166.array(ExportJobDestinationType),
5265
5276
  docsEnvironment: PublishedDocEnvironment
5266
5277
  }).partial();
5267
5278
 
5268
5279
  // src/export/exporter-workspace-membership-role.ts
5269
- import { z as z166 } from "zod";
5270
- var ExporterWorkspaceMembershipRole = z166.enum(["Owner", "OwnerArchived", "User"]);
5280
+ import { z as z167 } from "zod";
5281
+ var ExporterWorkspaceMembershipRole = z167.enum(["Owner", "OwnerArchived", "User"]);
5271
5282
 
5272
5283
  // src/export/exporter-workspace-membership.ts
5273
- import { z as z167 } from "zod";
5274
- var ExporterWorkspaceMembership = z167.object({
5275
- id: z167.string(),
5276
- workspaceId: z167.string(),
5277
- exporterId: z167.string(),
5284
+ import { z as z168 } from "zod";
5285
+ var ExporterWorkspaceMembership = z168.object({
5286
+ id: z168.string(),
5287
+ workspaceId: z168.string(),
5288
+ exporterId: z168.string(),
5278
5289
  role: ExporterWorkspaceMembershipRole
5279
5290
  });
5280
5291
 
5281
5292
  // src/feature-flags/feature-flags.ts
5282
- import { z as z168 } from "zod";
5283
- var FlaggedFeature = z168.enum([
5293
+ import { z as z169 } from "zod";
5294
+ var FlaggedFeature = z169.enum([
5284
5295
  "FigmaImporterV2",
5285
5296
  "ShadowOpacityOptional",
5286
5297
  "DisableImporter",
5287
5298
  "VariablesOrder",
5288
5299
  "TypographyPropsKeepAliases"
5289
5300
  ]);
5290
- var FeatureFlagMap = z168.record(FlaggedFeature, z168.boolean());
5291
- var FeatureFlag = z168.object({
5292
- id: z168.string(),
5301
+ var FeatureFlagMap = z169.record(FlaggedFeature, z169.boolean());
5302
+ var FeatureFlag = z169.object({
5303
+ id: z169.string(),
5293
5304
  feature: FlaggedFeature,
5294
- createdAt: z168.coerce.date(),
5295
- enabled: z168.boolean(),
5296
- designSystemId: z168.string().optional()
5305
+ createdAt: z169.coerce.date(),
5306
+ enabled: z169.boolean(),
5307
+ designSystemId: z169.string().optional()
5297
5308
  });
5298
5309
 
5299
5310
  // src/integrations/external-oauth-request.ts
5300
- import { z as z170 } from "zod";
5311
+ import { z as z171 } from "zod";
5301
5312
 
5302
5313
  // src/integrations/oauth-providers.ts
5303
- import { z as z169 } from "zod";
5314
+ import { z as z170 } from "zod";
5304
5315
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5305
5316
  OAuthProviderNames2["Figma"] = "figma";
5306
5317
  OAuthProviderNames2["Azure"] = "azure";
@@ -5309,128 +5320,128 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
5309
5320
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
5310
5321
  return OAuthProviderNames2;
5311
5322
  })(OAuthProviderNames || {});
5312
- var OAuthProviderSchema = z169.nativeEnum(OAuthProviderNames);
5323
+ var OAuthProviderSchema = z170.nativeEnum(OAuthProviderNames);
5313
5324
  var OAuthProvider = OAuthProviderSchema.enum;
5314
5325
 
5315
5326
  // src/integrations/external-oauth-request.ts
5316
- var ExternalOAuthRequest = z170.object({
5317
- id: z170.string(),
5327
+ var ExternalOAuthRequest = z171.object({
5328
+ id: z171.string(),
5318
5329
  provider: OAuthProviderSchema,
5319
- userId: z170.string(),
5320
- state: z170.string(),
5321
- createdAt: z170.coerce.date()
5330
+ userId: z171.string(),
5331
+ state: z171.string(),
5332
+ createdAt: z171.coerce.date()
5322
5333
  });
5323
5334
 
5324
5335
  // src/integrations/git.ts
5325
- import { z as z171 } from "zod";
5326
- var GitObjectsQuery = z171.object({
5327
- organization: z171.string().optional(),
5336
+ import { z as z172 } from "zod";
5337
+ var GitObjectsQuery = z172.object({
5338
+ organization: z172.string().optional(),
5328
5339
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
5329
- project: z171.string().optional(),
5340
+ project: z172.string().optional(),
5330
5341
  // Only for Bitbucket and Azure
5331
- repository: z171.string().optional(),
5342
+ repository: z172.string().optional(),
5332
5343
  // For all providers. For Gitlab, it's called "project".
5333
- branch: z171.string().optional(),
5344
+ branch: z172.string().optional(),
5334
5345
  // For all providers.
5335
- user: z171.string().optional()
5346
+ user: z172.string().optional()
5336
5347
  // Gitlab user
5337
5348
  });
5338
- var GitOrganization = z171.object({
5339
- id: z171.string(),
5340
- name: z171.string(),
5341
- url: z171.string(),
5342
- slug: z171.string()
5349
+ var GitOrganization = z172.object({
5350
+ id: z172.string(),
5351
+ name: z172.string(),
5352
+ url: z172.string(),
5353
+ slug: z172.string()
5343
5354
  });
5344
- var GitProject = z171.object({
5345
- id: z171.string(),
5346
- name: z171.string(),
5347
- url: z171.string(),
5348
- slug: z171.string()
5355
+ var GitProject = z172.object({
5356
+ id: z172.string(),
5357
+ name: z172.string(),
5358
+ url: z172.string(),
5359
+ slug: z172.string()
5349
5360
  });
5350
- var GitRepository = z171.object({
5351
- id: z171.string(),
5352
- name: z171.string(),
5353
- url: z171.string(),
5354
- slug: z171.string(),
5361
+ var GitRepository = z172.object({
5362
+ id: z172.string(),
5363
+ name: z172.string(),
5364
+ url: z172.string(),
5365
+ slug: z172.string(),
5355
5366
  /**
5356
5367
  * Can be undefined when:
5357
5368
  * - there are no branches in the repository yet
5358
5369
  * - Git provider doesn't expose this information on a repository via their API
5359
5370
  */
5360
- defaultBranch: z171.string().optional()
5371
+ defaultBranch: z172.string().optional()
5361
5372
  });
5362
- var GitBranch = z171.object({
5363
- name: z171.string(),
5364
- lastCommitId: z171.string()
5373
+ var GitBranch = z172.object({
5374
+ name: z172.string(),
5375
+ lastCommitId: z172.string()
5365
5376
  });
5366
5377
 
5367
5378
  // src/integrations/oauth-token.ts
5368
- import { z as z172 } from "zod";
5369
- var IntegrationTokenSchemaOld = z172.object({
5370
- id: z172.string(),
5379
+ import { z as z173 } from "zod";
5380
+ var IntegrationTokenSchemaOld = z173.object({
5381
+ id: z173.string(),
5371
5382
  provider: OAuthProviderSchema,
5372
- scope: z172.string(),
5373
- userId: z172.string(),
5374
- accessToken: z172.string(),
5375
- refreshToken: z172.string(),
5376
- expiresAt: z172.coerce.date(),
5377
- externalUserId: z172.string().nullish()
5383
+ scope: z173.string(),
5384
+ userId: z173.string(),
5385
+ accessToken: z173.string(),
5386
+ refreshToken: z173.string(),
5387
+ expiresAt: z173.coerce.date(),
5388
+ externalUserId: z173.string().nullish()
5378
5389
  });
5379
5390
 
5380
5391
  // src/integrations/workspace-oauth-requests.ts
5381
- import { z as z173 } from "zod";
5382
- var WorkspaceOAuthRequestSchema = z173.object({
5383
- id: z173.string(),
5384
- workspaceId: z173.string(),
5392
+ import { z as z174 } from "zod";
5393
+ var WorkspaceOAuthRequestSchema = z174.object({
5394
+ id: z174.string(),
5395
+ workspaceId: z174.string(),
5385
5396
  provider: OAuthProviderSchema,
5386
- userId: z173.string(),
5387
- createdAt: z173.coerce.date()
5397
+ userId: z174.string(),
5398
+ createdAt: z174.coerce.date()
5388
5399
  });
5389
5400
 
5390
5401
  // src/npm/npm-package.ts
5391
- import { z as z174 } from "zod";
5392
- var AnyRecord = z174.record(z174.any());
5402
+ import { z as z175 } from "zod";
5403
+ var AnyRecord = z175.record(z175.any());
5393
5404
  var NpmPackageVersionDist = AnyRecord.and(
5394
- z174.object({
5395
- tarball: z174.string()
5405
+ z175.object({
5406
+ tarball: z175.string()
5396
5407
  })
5397
5408
  );
5398
5409
  var NpmPackageVersion = AnyRecord.and(
5399
- z174.object({
5410
+ z175.object({
5400
5411
  dist: NpmPackageVersionDist
5401
5412
  })
5402
5413
  );
5403
5414
  var NpmPackage = AnyRecord.and(
5404
- z174.object({
5405
- _id: z174.string(),
5406
- name: z174.string(),
5415
+ z175.object({
5416
+ _id: z175.string(),
5417
+ name: z175.string(),
5407
5418
  // e.g. "latest": "1.2.3"
5408
- "dist-tags": z174.record(z174.string(), z174.string()),
5419
+ "dist-tags": z175.record(z175.string(), z175.string()),
5409
5420
  // "1.2.3": {...}
5410
- versions: z174.record(NpmPackageVersion)
5421
+ versions: z175.record(NpmPackageVersion)
5411
5422
  })
5412
5423
  );
5413
5424
 
5414
5425
  // src/npm/npm-proxy-token-payload.ts
5415
- import { z as z175 } from "zod";
5416
- var NpmProxyTokenPayload = z175.object({
5417
- npmProxyRegistryConfigId: z175.string()
5426
+ import { z as z176 } from "zod";
5427
+ var NpmProxyTokenPayload = z176.object({
5428
+ npmProxyRegistryConfigId: z176.string()
5418
5429
  });
5419
5430
 
5420
5431
  // src/tokens/personal-access-token.ts
5421
- import { z as z176 } from "zod";
5422
- var PersonalAccessToken = z176.object({
5423
- id: z176.string(),
5424
- userId: z176.string(),
5425
- workspaceId: z176.string().optional(),
5426
- designSystemId: z176.string().optional(),
5432
+ import { z as z177 } from "zod";
5433
+ var PersonalAccessToken = z177.object({
5434
+ id: z177.string(),
5435
+ userId: z177.string(),
5436
+ workspaceId: z177.string().optional(),
5437
+ designSystemId: z177.string().optional(),
5427
5438
  workspaceRole: WorkspaceRoleSchema.optional(),
5428
- name: z176.string(),
5429
- hidden: z176.boolean(),
5430
- token: z176.string(),
5431
- scope: z176.string().optional(),
5432
- createdAt: z176.coerce.date(),
5433
- expireAt: z176.coerce.date().optional()
5439
+ name: z177.string(),
5440
+ hidden: z177.boolean(),
5441
+ token: z177.string(),
5442
+ scope: z177.string().optional(),
5443
+ createdAt: z177.coerce.date(),
5444
+ expireAt: z177.coerce.date().optional()
5434
5445
  });
5435
5446
  export {
5436
5447
  Address,
@@ -5938,6 +5949,7 @@ export {
5938
5949
  PublishedDoc,
5939
5950
  PublishedDocEnvironment,
5940
5951
  PublishedDocPage,
5952
+ PublishedDocPageVisitsEntry,
5941
5953
  PublishedDocRoutingVersion,
5942
5954
  PublishedDocsChecksums,
5943
5955
  PublishedDocsDump,