@supernova-studio/model 1.87.3 → 1.87.5

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
@@ -359,7 +359,7 @@ var CustomDomain = z17.object({
359
359
  });
360
360
 
361
361
  // src/data-dumps/code-integration-dump.ts
362
- import { z as z181 } from "zod";
362
+ import { z as z182 } from "zod";
363
363
 
364
364
  // src/export/exporter.ts
365
365
  import { z as z21 } from "zod";
@@ -534,10 +534,10 @@ var Exporter = z21.object({
534
534
  });
535
535
 
536
536
  // src/export/pipeline.ts
537
- import { z as z180 } from "zod";
537
+ import { z as z181 } from "zod";
538
538
 
539
539
  // src/export/export-destinations.ts
540
- import { z as z179 } from "zod";
540
+ import { z as z180 } from "zod";
541
541
 
542
542
  // src/dsm/assets/asset-dynamo-record.ts
543
543
  import { z as z22 } from "zod";
@@ -4464,153 +4464,153 @@ var PageBlockDefinition = z112.object({
4464
4464
  appearance: PageBlockDefinitionAppearance.optional()
4465
4465
  });
4466
4466
 
4467
- // src/dsm/documentation/group.ts
4467
+ // src/dsm/documentation/configuration.ts
4468
4468
  import { z as z113 } from "zod";
4469
- var DocumentationPageGroup = z113.object({
4470
- type: z113.literal("ElementGroup"),
4471
- childType: z113.literal("DocumentationPage"),
4472
- id: z113.string(),
4473
- persistentId: z113.string(),
4474
- shortPersistentId: z113.string(),
4469
+ var defaultDocsRenderCodePackageJson = `{
4470
+ "name": "supernova-live-react",
4471
+ "version": "1.0.0",
4472
+ "description": "Live React Code Packager",
4473
+ "keywords": ["react", "supernova"],
4474
+ "main": "src/index.js",
4475
+ "dependencies": {
4476
+ "react-dom": "latest",
4477
+ "react": "latest"
4478
+ },
4479
+ "devDependencies": {
4480
+ "@babel/runtime": "7.13.8",
4481
+ "typescript": "4.1.3"
4482
+ },
4483
+ "scripts": {
4484
+ "start": "react-scripts start",
4485
+ "build": "react-scripts build",
4486
+ "test": "react-scripts test --env=jsdom",
4487
+ "eject": "react-scripts eject"
4488
+ },
4489
+ "browserslist": [">0.2%", "not dead", "not ie <= 11", "not op_mini all"]
4490
+ }`;
4491
+ var DocumentationConfiguration = z113.object({
4492
+ // Basic
4475
4493
  designSystemVersionId: z113.string(),
4476
- parentPersistentId: z113.string().nullish(),
4477
- sortOrder: z113.number(),
4478
- title: z113.string(),
4479
- slug: z113.string(),
4480
- userSlug: z113.string().nullish(),
4481
4494
  createdAt: z113.coerce.date(),
4482
- updatedAt: z113.coerce.date()
4495
+ updatedAt: z113.coerce.date(),
4496
+ // Configuration
4497
+ isTabbedLayoutEnabled: z113.boolean(),
4498
+ storybookEmbedErrorMessage: z113.string().optional(),
4499
+ renderCodePackageJson: z113.string().optional(),
4500
+ selectedBrandPersistentId: z113.string().optional(),
4501
+ serveDefaultVersionOnly: z113.boolean(),
4502
+ isPublic: z113.boolean()
4483
4503
  });
4484
4504
 
4485
- // src/dsm/documentation/link-preview.ts
4505
+ // src/dsm/documentation/group.ts
4486
4506
  import { z as z114 } from "zod";
4487
- var DocumentationLinkPreview = z114.object({
4488
- title: z114.string().optional(),
4489
- description: z114.string().optional(),
4490
- thumbnail: PageBlockImageReference.optional()
4507
+ var DocumentationPageGroup = z114.object({
4508
+ type: z114.literal("ElementGroup"),
4509
+ childType: z114.literal("DocumentationPage"),
4510
+ id: z114.string(),
4511
+ persistentId: z114.string(),
4512
+ shortPersistentId: z114.string(),
4513
+ designSystemVersionId: z114.string(),
4514
+ parentPersistentId: z114.string().nullish(),
4515
+ sortOrder: z114.number(),
4516
+ title: z114.string(),
4517
+ slug: z114.string(),
4518
+ userSlug: z114.string().nullish(),
4519
+ createdAt: z114.coerce.date(),
4520
+ updatedAt: z114.coerce.date()
4491
4521
  });
4492
4522
 
4493
- // src/dsm/documentation/page-anchor.ts
4523
+ // src/dsm/documentation/link-preview.ts
4494
4524
  import { z as z115 } from "zod";
4495
- var DocumentationPageAnchor = z115.object({
4496
- blockId: z115.string(),
4497
- level: z115.number(),
4498
- text: z115.string()
4525
+ var DocumentationLinkPreview = z115.object({
4526
+ title: z115.string().optional(),
4527
+ description: z115.string().optional(),
4528
+ thumbnail: PageBlockImageReference.optional()
4499
4529
  });
4500
4530
 
4501
- // src/dsm/documentation/page-content-backup.ts
4531
+ // src/dsm/documentation/page-anchor.ts
4502
4532
  import { z as z116 } from "zod";
4503
- var DocumentationPageContentBackup = z116.object({
4504
- id: z116.string(),
4505
- designSystemVersionId: z116.string(),
4506
- createdAt: z116.coerce.date(),
4507
- updatedAt: z116.coerce.date(),
4508
- documentationPageId: z116.string(),
4509
- documentationPageName: z116.string(),
4510
- storagePath: z116.string()
4533
+ var DocumentationPageAnchor = z116.object({
4534
+ blockId: z116.string(),
4535
+ level: z116.number(),
4536
+ text: z116.string()
4511
4537
  });
4512
4538
 
4513
- // src/dsm/documentation/page-content.ts
4539
+ // src/dsm/documentation/page-content-backup.ts
4514
4540
  import { z as z117 } from "zod";
4515
- var DocumentationPageContentItem = z117.discriminatedUnion("type", [
4516
- PageBlockEditorModelV2,
4517
- PageSectionEditorModelV2
4518
- ]);
4519
- var DocumentationPageContentData = z117.object({
4520
- items: z117.array(DocumentationPageContentItem)
4521
- });
4522
- var DocumentationPageContent = z117.object({
4541
+ var DocumentationPageContentBackup = z117.object({
4523
4542
  id: z117.string(),
4524
4543
  designSystemVersionId: z117.string(),
4525
4544
  createdAt: z117.coerce.date(),
4526
4545
  updatedAt: z117.coerce.date(),
4527
4546
  documentationPageId: z117.string(),
4528
- data: DocumentationPageContentData
4547
+ documentationPageName: z117.string(),
4548
+ storagePath: z117.string()
4529
4549
  });
4530
4550
 
4531
- // src/dsm/documentation/page-dependencies.ts
4551
+ // src/dsm/documentation/page-content.ts
4532
4552
  import { z as z118 } from "zod";
4533
- var DocumentationPageDependencies = z118.object({
4553
+ var DocumentationPageContentItem = z118.discriminatedUnion("type", [
4554
+ PageBlockEditorModelV2,
4555
+ PageSectionEditorModelV2
4556
+ ]);
4557
+ var DocumentationPageContentData = z118.object({
4558
+ items: z118.array(DocumentationPageContentItem)
4559
+ });
4560
+ var DocumentationPageContent = z118.object({
4534
4561
  id: z118.string(),
4535
4562
  designSystemVersionId: z118.string(),
4536
4563
  createdAt: z118.coerce.date(),
4537
4564
  updatedAt: z118.coerce.date(),
4538
4565
  documentationPageId: z118.string(),
4539
- tokenPersistentIds: z118.set(z118.string()),
4540
- figmaComponentPersistentIds: z118.set(z118.string()),
4541
- componentPersistentIds: z118.set(z118.string()),
4542
- figmaNodePersistentIds: z118.set(z118.string()),
4543
- groupPersistentIds: z118.set(z118.string()),
4544
- propertyPersistentIds: z118.set(z118.string()),
4545
- themePersistentIds: z118.set(z118.string()),
4546
- documentationPagePersistentIds: z118.set(z118.string()),
4547
- storybookEntriesStoryIds: z118.array(z118.string())
4566
+ data: DocumentationPageContentData
4548
4567
  });
4549
4568
 
4550
- // src/dsm/documentation/page.ts
4569
+ // src/dsm/documentation/page-dependencies.ts
4551
4570
  import { z as z119 } from "zod";
4552
- var DocumentationPage = z119.object({
4553
- type: z119.literal("DocumentationPage"),
4571
+ var DocumentationPageDependencies = z119.object({
4554
4572
  id: z119.string(),
4555
- persistentId: z119.string(),
4556
- shortPersistentId: z119.string(),
4557
4573
  designSystemVersionId: z119.string(),
4558
- parentPersistentId: z119.string().nullish(),
4559
- sortOrder: z119.number(),
4560
- title: z119.string(),
4561
- slug: z119.string(),
4562
- userSlug: z119.string().nullish(),
4563
4574
  createdAt: z119.coerce.date(),
4564
- updatedAt: z119.coerce.date()
4575
+ updatedAt: z119.coerce.date(),
4576
+ documentationPageId: z119.string(),
4577
+ tokenPersistentIds: z119.set(z119.string()),
4578
+ figmaComponentPersistentIds: z119.set(z119.string()),
4579
+ componentPersistentIds: z119.set(z119.string()),
4580
+ figmaNodePersistentIds: z119.set(z119.string()),
4581
+ groupPersistentIds: z119.set(z119.string()),
4582
+ propertyPersistentIds: z119.set(z119.string()),
4583
+ themePersistentIds: z119.set(z119.string()),
4584
+ documentationPagePersistentIds: z119.set(z119.string()),
4585
+ storybookEntriesStoryIds: z119.array(z119.string())
4565
4586
  });
4566
4587
 
4567
- // src/dsm/documentation/redirects.ts
4588
+ // src/dsm/documentation/page.ts
4568
4589
  import { z as z120 } from "zod";
4569
- var PageRedirect = z120.object({
4590
+ var DocumentationPage = z120.object({
4591
+ type: z120.literal("DocumentationPage"),
4570
4592
  id: z120.string(),
4571
- pagePersistentId: z120.string(),
4572
- path: z120.string(),
4593
+ persistentId: z120.string(),
4594
+ shortPersistentId: z120.string(),
4595
+ designSystemVersionId: z120.string(),
4596
+ parentPersistentId: z120.string().nullish(),
4597
+ sortOrder: z120.number(),
4598
+ title: z120.string(),
4599
+ slug: z120.string(),
4600
+ userSlug: z120.string().nullish(),
4573
4601
  createdAt: z120.coerce.date(),
4574
- updatedAt: z120.coerce.date(),
4575
- designSystemId: z120.string()
4602
+ updatedAt: z120.coerce.date()
4576
4603
  });
4577
4604
 
4578
- // src/dsm/documentation/configuration.ts
4605
+ // src/dsm/documentation/redirects.ts
4579
4606
  import { z as z121 } from "zod";
4580
- var defaultDocsRenderCodePackageJson = `{
4581
- "name": "supernova-live-react",
4582
- "version": "1.0.0",
4583
- "description": "Live React Code Packager",
4584
- "keywords": ["react", "supernova"],
4585
- "main": "src/index.js",
4586
- "dependencies": {
4587
- "react-dom": "latest",
4588
- "react": "latest"
4589
- },
4590
- "devDependencies": {
4591
- "@babel/runtime": "7.13.8",
4592
- "typescript": "4.1.3"
4593
- },
4594
- "scripts": {
4595
- "start": "react-scripts start",
4596
- "build": "react-scripts build",
4597
- "test": "react-scripts test --env=jsdom",
4598
- "eject": "react-scripts eject"
4599
- },
4600
- "browserslist": [">0.2%", "not dead", "not ie <= 11", "not op_mini all"]
4601
- }`;
4602
- var DocumentationConfiguration = z121.object({
4603
- // Basic
4604
- designSystemVersionId: z121.string(),
4607
+ var PageRedirect = z121.object({
4608
+ id: z121.string(),
4609
+ pagePersistentId: z121.string(),
4610
+ path: z121.string(),
4605
4611
  createdAt: z121.coerce.date(),
4606
4612
  updatedAt: z121.coerce.date(),
4607
- // Configuration
4608
- isTabbedLayoutEnabled: z121.boolean(),
4609
- storybookEmbedErrorMessage: z121.string().optional(),
4610
- renderCodePackageJson: z121.string().optional(),
4611
- selectedBrandPersistentId: z121.string().optional(),
4612
- serveDefaultVersionOnly: z121.boolean(),
4613
- isPublic: z121.boolean()
4613
+ designSystemId: z121.string()
4614
4614
  });
4615
4615
 
4616
4616
  // src/dsm/documentation/thread.ts
@@ -4902,6 +4902,7 @@ var FigmaExporterDesignNodeTypeSchema = z125.union([
4902
4902
  z125.literal("FRAME"),
4903
4903
  z125.literal("TEXT"),
4904
4904
  z125.literal("SVG"),
4905
+ z125.literal("IMAGE"),
4905
4906
  z125.literal("COMPONENT_INSTANCE")
4906
4907
  ]);
4907
4908
  var baseDesignNodeObjectSchema = z125.object({
@@ -4924,6 +4925,10 @@ var svgNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4924
4925
  type: z125.literal("SVG"),
4925
4926
  svgString: z125.string()
4926
4927
  });
4928
+ var imageNodeObjectSchema = baseDesignNodeObjectSchema.extend({
4929
+ type: z125.literal("IMAGE"),
4930
+ src: z125.string()
4931
+ });
4927
4932
  var componentInstanceObjectSchema = baseDesignNodeObjectSchema.extend({
4928
4933
  type: z125.literal("COMPONENT_INSTANCE"),
4929
4934
  componentSetName: z125.string(),
@@ -4943,6 +4948,7 @@ var svgNodeSchema = z125.lazy(
4943
4948
  children: FigmaExporterAnyDesignNodeSchema.array()
4944
4949
  })
4945
4950
  );
4951
+ var imageNodeSchema = imageNodeObjectSchema;
4946
4952
  var componentInstanceNodeSchema = z125.lazy(
4947
4953
  () => componentInstanceObjectSchema.extend({
4948
4954
  children: FigmaExporterAnyDesignNodeSchema.array()
@@ -4952,6 +4958,7 @@ var FigmaExporterAnyDesignNodeSchema = z125.union([
4952
4958
  frameNodeSchema,
4953
4959
  textNodeSchema,
4954
4960
  svgNodeSchema,
4961
+ imageNodeSchema,
4955
4962
  componentInstanceNodeSchema
4956
4963
  ]);
4957
4964
 
@@ -5809,303 +5816,309 @@ var DesignSystemMembershipUpdates = z167.object({
5809
5816
  deleteInvitationIds: z167.string().array().optional()
5810
5817
  });
5811
5818
 
5812
- // src/dsm/views/column.ts
5819
+ // src/dsm/pipelines/query.ts
5813
5820
  import { z as z168 } from "zod";
5814
- var ElementViewBaseColumnType = z168.enum(["Name", "Description", "Value", "UpdatedAt"]);
5815
- var ElementViewColumnType = z168.union([
5816
- z168.literal("BaseProperty"),
5817
- z168.literal("PropertyDefinition"),
5818
- z168.literal("Theme")
5821
+ var PipelineExporterQuery = z168.object({
5822
+ exporterId: z168.string().optional()
5823
+ });
5824
+
5825
+ // src/dsm/views/column.ts
5826
+ import { z as z169 } from "zod";
5827
+ var ElementViewBaseColumnType = z169.enum(["Name", "Description", "Value", "UpdatedAt"]);
5828
+ var ElementViewColumnType = z169.union([
5829
+ z169.literal("BaseProperty"),
5830
+ z169.literal("PropertyDefinition"),
5831
+ z169.literal("Theme")
5819
5832
  ]);
5820
- var ElementViewColumnSharedAttributes = z168.object({
5821
- id: z168.string(),
5822
- persistentId: z168.string(),
5823
- elementDataViewId: z168.string(),
5824
- sortPosition: z168.number(),
5825
- width: z168.number()
5833
+ var ElementViewColumnSharedAttributes = z169.object({
5834
+ id: z169.string(),
5835
+ persistentId: z169.string(),
5836
+ elementDataViewId: z169.string(),
5837
+ sortPosition: z169.number(),
5838
+ width: z169.number()
5826
5839
  });
5827
5840
  var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
5828
- type: z168.literal("BaseProperty"),
5841
+ type: z169.literal("BaseProperty"),
5829
5842
  basePropertyType: ElementViewBaseColumnType
5830
5843
  });
5831
5844
  var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
5832
- type: z168.literal("PropertyDefinition"),
5833
- propertyDefinitionId: z168.string()
5845
+ type: z169.literal("PropertyDefinition"),
5846
+ propertyDefinitionId: z169.string()
5834
5847
  });
5835
5848
  var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
5836
- type: z168.literal("Theme"),
5837
- themeId: z168.string()
5849
+ type: z169.literal("Theme"),
5850
+ themeId: z169.string()
5838
5851
  });
5839
- var ElementViewColumn = z168.discriminatedUnion("type", [
5852
+ var ElementViewColumn = z169.discriminatedUnion("type", [
5840
5853
  ElementViewBasePropertyColumn,
5841
5854
  ElementViewPropertyDefinitionColumn,
5842
5855
  ElementViewThemeColumn
5843
5856
  ]);
5844
5857
 
5845
5858
  // src/dsm/views/view.ts
5846
- import { z as z169 } from "zod";
5847
- var ElementView = z169.object({
5848
- id: z169.string(),
5849
- persistentId: z169.string(),
5850
- designSystemVersionId: z169.string(),
5851
- name: z169.string(),
5852
- description: z169.string(),
5853
- targetElementType: ElementPropertyTargetType,
5854
- isDefault: z169.boolean()
5855
- });
5856
-
5857
- // src/dsm/brand.ts
5858
5859
  import { z as z170 } from "zod";
5859
- var Brand = z170.object({
5860
+ var ElementView = z170.object({
5860
5861
  id: z170.string(),
5861
- designSystemVersionId: z170.string(),
5862
5862
  persistentId: z170.string(),
5863
+ designSystemVersionId: z170.string(),
5863
5864
  name: z170.string(),
5864
- description: z170.string()
5865
+ description: z170.string(),
5866
+ targetElementType: ElementPropertyTargetType,
5867
+ isDefault: z170.boolean()
5865
5868
  });
5866
5869
 
5867
- // src/dsm/design-system.ts
5870
+ // src/dsm/brand.ts
5868
5871
  import { z as z171 } from "zod";
5869
- var DesignSystemAccessMode = z171.enum(["Open", "InviteOnly"]);
5870
- var DesignSystemSwitcher = z171.object({
5871
- isEnabled: z171.boolean(),
5872
- designSystemIds: z171.array(z171.string())
5873
- });
5874
- var DesignSystem = z171.object({
5872
+ var Brand = z171.object({
5875
5873
  id: z171.string(),
5876
- workspaceId: z171.string(),
5874
+ designSystemVersionId: z171.string(),
5875
+ persistentId: z171.string(),
5877
5876
  name: z171.string(),
5878
- description: z171.string(),
5879
- docExporterId: nullishToOptional(z171.string()),
5880
- docSlug: z171.string(),
5881
- docUserSlug: nullishToOptional(z171.string()),
5882
- docSlugDeprecated: z171.string(),
5883
- isMultibrand: z171.boolean(),
5884
- docViewUrl: nullishToOptional(z171.string()),
5885
- basePrefixes: z171.array(z171.string()),
5877
+ description: z171.string()
5878
+ });
5879
+
5880
+ // src/dsm/design-system.ts
5881
+ import { z as z172 } from "zod";
5882
+ var DesignSystemAccessMode = z172.enum(["Open", "InviteOnly"]);
5883
+ var DesignSystemSwitcher = z172.object({
5884
+ isEnabled: z172.boolean(),
5885
+ designSystemIds: z172.array(z172.string())
5886
+ });
5887
+ var DesignSystem = z172.object({
5888
+ id: z172.string(),
5889
+ workspaceId: z172.string(),
5890
+ name: z172.string(),
5891
+ description: z172.string(),
5892
+ docExporterId: nullishToOptional(z172.string()),
5893
+ docSlug: z172.string(),
5894
+ docUserSlug: nullishToOptional(z172.string()),
5895
+ docSlugDeprecated: z172.string(),
5896
+ isMultibrand: z172.boolean(),
5897
+ docViewUrl: nullishToOptional(z172.string()),
5898
+ basePrefixes: z172.array(z172.string()),
5886
5899
  designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
5887
- isApprovalFeatureEnabled: z171.boolean(),
5888
- approvalRequiredForPublishing: z171.boolean(),
5900
+ isApprovalFeatureEnabled: z172.boolean(),
5901
+ approvalRequiredForPublishing: z172.boolean(),
5889
5902
  accessMode: DesignSystemAccessMode,
5890
- membersGenerated: z171.boolean(),
5891
- sharedDraftId: z171.string().optional(),
5892
- createdAt: z171.coerce.date(),
5893
- updatedAt: z171.coerce.date()
5903
+ membersGenerated: z172.boolean(),
5904
+ sharedDraftId: z172.string().optional(),
5905
+ createdAt: z172.coerce.date(),
5906
+ updatedAt: z172.coerce.date()
5894
5907
  });
5895
5908
 
5896
5909
  // src/dsm/exporter-property-values-collection.ts
5897
- import { z as z172 } from "zod";
5898
- var ExporterPropertyImageValue = z172.object({
5910
+ import { z as z173 } from "zod";
5911
+ var ExporterPropertyImageValue = z173.object({
5899
5912
  asset: PageBlockAsset.optional(),
5900
- assetId: z172.string().optional(),
5901
- assetUrl: z172.string().optional()
5902
- });
5903
- var ExporterConfigurationPropertyValue = z172.object({
5904
- key: z172.string(),
5905
- value: z172.union([
5906
- z172.number(),
5907
- z172.string(),
5908
- z172.boolean(),
5913
+ assetId: z173.string().optional(),
5914
+ assetUrl: z173.string().optional()
5915
+ });
5916
+ var ExporterConfigurationPropertyValue = z173.object({
5917
+ key: z173.string(),
5918
+ value: z173.union([
5919
+ z173.number(),
5920
+ z173.string(),
5921
+ z173.boolean(),
5909
5922
  ExporterPropertyImageValue,
5910
5923
  ColorTokenData,
5911
5924
  TypographyTokenData
5912
5925
  ])
5913
5926
  });
5914
- var ExporterPropertyValuesCollection = z172.object({
5915
- id: z172.string(),
5916
- designSystemId: z172.string(),
5917
- exporterId: z172.string(),
5918
- values: z172.array(ExporterConfigurationPropertyValue)
5927
+ var ExporterPropertyValuesCollection = z173.object({
5928
+ id: z173.string(),
5929
+ designSystemId: z173.string(),
5930
+ exporterId: z173.string(),
5931
+ values: z173.array(ExporterConfigurationPropertyValue)
5919
5932
  });
5920
5933
 
5921
5934
  // src/dsm/published-doc-page-visits.ts
5922
- import { z as z173 } from "zod";
5923
- var PublishedDocPageVisitsEntry = z173.object({
5924
- id: z173.string(),
5925
- versionId: z173.string(),
5926
- pagePersistentId: z173.string(),
5927
- locale: z173.string().optional(),
5928
- timestamp: z173.coerce.date(),
5929
- visits: z173.number(),
5930
- userId: nullishToOptional(z173.string()),
5931
- anonymousId: nullishToOptional(z173.string())
5935
+ import { z as z174 } from "zod";
5936
+ var PublishedDocPageVisitsEntry = z174.object({
5937
+ id: z174.string(),
5938
+ versionId: z174.string(),
5939
+ pagePersistentId: z174.string(),
5940
+ locale: z174.string().optional(),
5941
+ timestamp: z174.coerce.date(),
5942
+ visits: z174.number(),
5943
+ userId: nullishToOptional(z174.string()),
5944
+ anonymousId: nullishToOptional(z174.string())
5932
5945
  });
5933
5946
 
5934
5947
  // src/dsm/published-doc-page.ts
5935
- import { z as z174 } from "zod";
5948
+ import { z as z175 } from "zod";
5936
5949
  var SHORT_PERSISTENT_ID_LENGTH = 8;
5937
5950
  function tryParseShortPersistentId(url = "/") {
5938
5951
  const lastUrlPart = url.split("/").pop() || "";
5939
5952
  const shortPersistentId = lastUrlPart.split("-").pop()?.replaceAll(".html", "") || null;
5940
5953
  return shortPersistentId?.length === SHORT_PERSISTENT_ID_LENGTH ? shortPersistentId : null;
5941
5954
  }
5942
- var PublishedDocPage = z174.object({
5943
- id: z174.string(),
5944
- publishedDocId: z174.string(),
5945
- pageShortPersistentId: z174.string(),
5946
- pagePersistentId: z174.string().optional(),
5947
- pathV1: z174.string(),
5948
- pathV2: z174.string(),
5949
- storagePath: z174.string(),
5950
- locale: z174.string().optional(),
5951
- isPrivate: z174.boolean(),
5952
- isHidden: z174.boolean(),
5953
- createdAt: z174.coerce.date(),
5954
- updatedAt: z174.coerce.date()
5955
+ var PublishedDocPage = z175.object({
5956
+ id: z175.string(),
5957
+ publishedDocId: z175.string(),
5958
+ pageShortPersistentId: z175.string(),
5959
+ pagePersistentId: z175.string().optional(),
5960
+ pathV1: z175.string(),
5961
+ pathV2: z175.string(),
5962
+ storagePath: z175.string(),
5963
+ locale: z175.string().optional(),
5964
+ isPrivate: z175.boolean(),
5965
+ isHidden: z175.boolean(),
5966
+ createdAt: z175.coerce.date(),
5967
+ updatedAt: z175.coerce.date()
5955
5968
  });
5956
5969
 
5957
5970
  // src/dsm/published-doc.ts
5958
- import { z as z175 } from "zod";
5971
+ import { z as z176 } from "zod";
5959
5972
  var publishedDocEnvironments = ["Live", "Preview"];
5960
- var PublishedDocEnvironment = z175.enum(publishedDocEnvironments);
5961
- var PublishedDocsChecksums = z175.record(z175.string());
5962
- var PublishedDocRoutingVersion = z175.enum(["1", "2"]);
5963
- var PublishedDoc = z175.object({
5964
- id: z175.string(),
5965
- designSystemVersionId: z175.string(),
5966
- createdAt: z175.coerce.date(),
5967
- updatedAt: z175.coerce.date(),
5968
- lastPublishedAt: z175.coerce.date(),
5969
- isDefault: z175.boolean(),
5970
- isPublic: z175.boolean(),
5973
+ var PublishedDocEnvironment = z176.enum(publishedDocEnvironments);
5974
+ var PublishedDocsChecksums = z176.record(z176.string());
5975
+ var PublishedDocRoutingVersion = z176.enum(["1", "2"]);
5976
+ var PublishedDoc = z176.object({
5977
+ id: z176.string(),
5978
+ designSystemVersionId: z176.string(),
5979
+ createdAt: z176.coerce.date(),
5980
+ updatedAt: z176.coerce.date(),
5981
+ lastPublishedAt: z176.coerce.date(),
5982
+ isDefault: z176.boolean(),
5983
+ isPublic: z176.boolean(),
5971
5984
  environment: PublishedDocEnvironment,
5972
5985
  checksums: PublishedDocsChecksums,
5973
- storagePath: z175.string(),
5974
- wasMigrated: z175.boolean(),
5986
+ storagePath: z176.string(),
5987
+ wasMigrated: z176.boolean(),
5975
5988
  routingVersion: PublishedDocRoutingVersion,
5976
- usesLocalizations: z175.boolean(),
5977
- wasPublishedWithLocalizations: z175.boolean(),
5978
- tokenCount: z175.number(),
5979
- assetCount: z175.number()
5989
+ usesLocalizations: z176.boolean(),
5990
+ wasPublishedWithLocalizations: z176.boolean(),
5991
+ tokenCount: z176.number(),
5992
+ assetCount: z176.number()
5980
5993
  });
5981
5994
 
5982
5995
  // src/dsm/storybook-entry.ts
5983
- import { z as z176 } from "zod";
5984
- var StorybookEntryOrigin = z176.object({
5985
- id: z176.string(),
5986
- type: z176.enum(["story", "docs"]),
5987
- name: z176.string(),
5988
- title: z176.string(),
5996
+ import { z as z177 } from "zod";
5997
+ var StorybookEntryOrigin = z177.object({
5998
+ id: z177.string(),
5999
+ type: z177.enum(["story", "docs"]),
6000
+ name: z177.string(),
6001
+ title: z177.string(),
5989
6002
  // Same as 'kind' for v3
5990
- index: z176.number().optional()
6003
+ index: z177.number().optional()
5991
6004
  });
5992
- var StorybookEntry = z176.object({
5993
- id: z176.string(),
5994
- storyId: z176.string(),
5995
- designSystemId: z176.string(),
5996
- sourceId: z176.string(),
5997
- aliases: z176.array(z176.string()).optional(),
5998
- url: z176.string(),
5999
- isDeleted: z176.boolean().optional(),
6000
- origin: StorybookEntryOrigin,
6001
- createdAt: z176.coerce.date(),
6002
- updatedAt: z176.coerce.date()
6003
- });
6004
-
6005
- // src/dsm/storybook-payload.ts
6006
- import { z as z177 } from "zod";
6007
- var StorybookPayload = z177.object({
6005
+ var StorybookEntry = z177.object({
6008
6006
  id: z177.string(),
6007
+ storyId: z177.string(),
6009
6008
  designSystemId: z177.string(),
6010
6009
  sourceId: z177.string(),
6011
- payload: z177.any(),
6010
+ aliases: z177.array(z177.string()).optional(),
6011
+ url: z177.string(),
6012
+ isDeleted: z177.boolean().optional(),
6013
+ origin: StorybookEntryOrigin,
6012
6014
  createdAt: z177.coerce.date(),
6013
6015
  updatedAt: z177.coerce.date()
6014
6016
  });
6015
6017
 
6016
- // src/dsm/version.ts
6018
+ // src/dsm/storybook-payload.ts
6017
6019
  import { z as z178 } from "zod";
6018
- var DesignSystemVersion = z178.object({
6019
- id: z178.string(),
6020
- version: z178.string(),
6021
- createdAt: z178.coerce.date(),
6022
- designSystemId: z178.string(),
6023
- name: z178.string(),
6024
- comment: z178.string(),
6025
- isReadonly: z178.boolean(),
6026
- changeLog: z178.string(),
6027
- parentId: z178.string().optional(),
6028
- isDraftsFeatureAdopted: z178.boolean()
6029
- });
6030
- var VersionCreationJobStatus = z178.enum(["Success", "InProgress", "Error"]);
6031
- var VersionCreationJob = z178.object({
6020
+ var StorybookPayload = z178.object({
6032
6021
  id: z178.string(),
6033
- version: z178.string(),
6034
6022
  designSystemId: z178.string(),
6035
- designSystemVersionId: nullishToOptional(z178.string()),
6023
+ sourceId: z178.string(),
6024
+ payload: z178.any(),
6025
+ createdAt: z178.coerce.date(),
6026
+ updatedAt: z178.coerce.date()
6027
+ });
6028
+
6029
+ // src/dsm/version.ts
6030
+ import { z as z179 } from "zod";
6031
+ var DesignSystemVersion = z179.object({
6032
+ id: z179.string(),
6033
+ version: z179.string(),
6034
+ createdAt: z179.coerce.date(),
6035
+ designSystemId: z179.string(),
6036
+ name: z179.string(),
6037
+ comment: z179.string(),
6038
+ isReadonly: z179.boolean(),
6039
+ changeLog: z179.string(),
6040
+ parentId: z179.string().optional(),
6041
+ isDraftsFeatureAdopted: z179.boolean()
6042
+ });
6043
+ var VersionCreationJobStatus = z179.enum(["Success", "InProgress", "Error"]);
6044
+ var VersionCreationJob = z179.object({
6045
+ id: z179.string(),
6046
+ version: z179.string(),
6047
+ designSystemId: z179.string(),
6048
+ designSystemVersionId: nullishToOptional(z179.string()),
6036
6049
  status: VersionCreationJobStatus,
6037
- errorMessage: nullishToOptional(z178.string())
6050
+ errorMessage: nullishToOptional(z179.string())
6038
6051
  });
6039
6052
 
6040
6053
  // src/export/export-destinations.ts
6041
6054
  var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
6042
6055
  var BITBUCKET_MAX_LENGTH = 64;
6043
- var ExportJobDocumentationChanges = z179.object({
6044
- pagePersistentIds: z179.string().array(),
6045
- groupPersistentIds: z179.string().array(),
6046
- selectivePublishing: z179.boolean().optional()
6056
+ var ExportJobDocumentationChanges = z180.object({
6057
+ pagePersistentIds: z180.string().array(),
6058
+ groupPersistentIds: z180.string().array(),
6059
+ selectivePublishing: z180.boolean().optional()
6047
6060
  });
6048
- var ExporterDestinationDocs = z179.object({
6061
+ var ExporterDestinationDocs = z180.object({
6049
6062
  environment: PublishedDocEnvironment,
6050
6063
  changes: nullishToOptional(ExportJobDocumentationChanges)
6051
6064
  });
6052
- var GitCommonDestinationOptions = z179.object({
6053
- branch: z179.string(),
6054
- relativePath: nullishToOptional(z179.string()),
6055
- purgeDirectory: nullishToOptional(z179.boolean()),
6056
- commitAuthorName: nullishToOptional(z179.string()),
6057
- commitAuthorEmail: nullishToOptional(z179.string()),
6058
- commitMessage: nullishToOptional(z179.string()),
6059
- pullRequestTitle: nullishToOptional(z179.string()),
6060
- pullRequestDescription: nullishToOptional(z179.string()),
6061
- checkoutNoTags: nullishToOptional(z179.boolean()),
6062
- checkoutNoBlobs: nullishToOptional(z179.boolean()),
6063
- checkoutSparse: nullishToOptional(z179.boolean())
6064
- });
6065
- var ExporterDestinationS3 = z179.object({});
6066
- var ExporterDestinationGithub = z179.object({
6067
- credentialId: z179.string().optional(),
6065
+ var GitCommonDestinationOptions = z180.object({
6066
+ branch: z180.string(),
6067
+ relativePath: nullishToOptional(z180.string()),
6068
+ purgeDirectory: nullishToOptional(z180.boolean()),
6069
+ commitAuthorName: nullishToOptional(z180.string()),
6070
+ commitAuthorEmail: nullishToOptional(z180.string()),
6071
+ commitMessage: nullishToOptional(z180.string()),
6072
+ pullRequestTitle: nullishToOptional(z180.string()),
6073
+ pullRequestDescription: nullishToOptional(z180.string()),
6074
+ checkoutNoTags: nullishToOptional(z180.boolean()),
6075
+ checkoutNoBlobs: nullishToOptional(z180.boolean()),
6076
+ checkoutSparse: nullishToOptional(z180.boolean())
6077
+ });
6078
+ var ExporterDestinationS3 = z180.object({});
6079
+ var ExporterDestinationGithub = z180.object({
6080
+ credentialId: z180.string().optional(),
6068
6081
  // Repository
6069
- url: z179.string(),
6082
+ url: z180.string(),
6070
6083
  // Legacy deprecated fields. Use `credentialId` instead
6071
- connectionId: nullishToOptional(z179.string()),
6072
- userId: nullishToOptional(z179.number())
6084
+ connectionId: nullishToOptional(z180.string()),
6085
+ userId: nullishToOptional(z180.number())
6073
6086
  }).extend(GitCommonDestinationOptions.shape);
6074
- var ExporterDestinationAzure = z179.object({
6075
- credentialId: z179.string().optional(),
6087
+ var ExporterDestinationAzure = z180.object({
6088
+ credentialId: z180.string().optional(),
6076
6089
  // Repository
6077
- organizationId: z179.string(),
6078
- projectId: z179.string(),
6079
- repositoryId: z179.string(),
6090
+ organizationId: z180.string(),
6091
+ projectId: z180.string(),
6092
+ repositoryId: z180.string(),
6080
6093
  // Maybe not needed
6081
- url: nullishToOptional(z179.string()),
6094
+ url: nullishToOptional(z180.string()),
6082
6095
  // Legacy deprecated fields. Use `credentialId` instead
6083
- connectionId: nullishToOptional(z179.string()),
6084
- userId: nullishToOptional(z179.number())
6096
+ connectionId: nullishToOptional(z180.string()),
6097
+ userId: nullishToOptional(z180.number())
6085
6098
  }).extend(GitCommonDestinationOptions.shape);
6086
- var ExporterDestinationGitlab = z179.object({
6087
- credentialId: z179.string().optional(),
6099
+ var ExporterDestinationGitlab = z180.object({
6100
+ credentialId: z180.string().optional(),
6088
6101
  // Repository
6089
- projectId: z179.string(),
6102
+ projectId: z180.string(),
6090
6103
  // Maybe not needed
6091
- url: nullishToOptional(z179.string()),
6104
+ url: nullishToOptional(z180.string()),
6092
6105
  // Legacy deprecated fields. Use `credentialId` instead
6093
- connectionId: nullishToOptional(z179.string()),
6094
- userId: nullishToOptional(z179.number())
6106
+ connectionId: nullishToOptional(z180.string()),
6107
+ userId: nullishToOptional(z180.number())
6095
6108
  }).extend(GitCommonDestinationOptions.shape);
6096
- var ExporterDestinationBitbucket = z179.object({
6097
- credentialId: z179.string().optional(),
6109
+ var ExporterDestinationBitbucket = z180.object({
6110
+ credentialId: z180.string().optional(),
6098
6111
  // Repository
6099
- workspaceSlug: z179.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6100
- projectKey: z179.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6101
- repoSlug: z179.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6102
- url: nullishToOptional(z179.string()),
6112
+ workspaceSlug: z180.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6113
+ projectKey: z180.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6114
+ repoSlug: z180.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
6115
+ url: nullishToOptional(z180.string()),
6103
6116
  // Legacy deprecated fields. Use `credentialId` instead
6104
- connectionId: nullishToOptional(z179.string()),
6105
- userId: nullishToOptional(z179.number())
6117
+ connectionId: nullishToOptional(z180.string()),
6118
+ userId: nullishToOptional(z180.number())
6106
6119
  }).extend(GitCommonDestinationOptions.shape);
6107
- var ExportDestinationsMap = z179.object({
6108
- webhookUrl: z179.string().optional(),
6120
+ var ExportDestinationsMap = z180.object({
6121
+ webhookUrl: z180.string().optional(),
6109
6122
  destinationSnDocs: ExporterDestinationDocs.optional(),
6110
6123
  destinationS3: ExporterDestinationS3.optional(),
6111
6124
  destinationGithub: ExporterDestinationGithub.optional(),
@@ -6113,8 +6126,8 @@ var ExportDestinationsMap = z179.object({
6113
6126
  destinationGitlab: ExporterDestinationGitlab.optional(),
6114
6127
  destinationBitbucket: ExporterDestinationBitbucket.optional()
6115
6128
  });
6116
- var ExportDestinationsMapUpdate = z179.object({
6117
- webhookUrl: z179.string().nullish(),
6129
+ var ExportDestinationsMapUpdate = z180.object({
6130
+ webhookUrl: z180.string().nullish(),
6118
6131
  destinationSnDocs: ExporterDestinationDocs.nullish(),
6119
6132
  destinationS3: ExporterDestinationS3.nullish(),
6120
6133
  destinationGithub: ExporterDestinationGithub.nullish(),
@@ -6124,164 +6137,164 @@ var ExportDestinationsMapUpdate = z179.object({
6124
6137
  });
6125
6138
 
6126
6139
  // src/export/pipeline.ts
6127
- var PipelineEventType = z180.enum([
6140
+ var PipelineEventType = z181.enum([
6128
6141
  "OnVersionReleased",
6129
6142
  "OnHeadChanged",
6130
6143
  "OnSourceUpdated",
6131
6144
  "OnDocumentationPublished",
6132
6145
  "None"
6133
6146
  ]);
6134
- var PipelineDestinationGitType = z180.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
6135
- var PipelineDestinationExtraType = z180.enum(["WebhookUrl", "S3", "Documentation"]);
6136
- var PipelineDestinationType = z180.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
6137
- var Pipeline = z180.object({
6138
- id: z180.string(),
6139
- name: z180.string(),
6147
+ var PipelineDestinationGitType = z181.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
6148
+ var PipelineDestinationExtraType = z181.enum(["WebhookUrl", "S3", "Documentation"]);
6149
+ var PipelineDestinationType = z181.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
6150
+ var Pipeline = z181.object({
6151
+ id: z181.string(),
6152
+ name: z181.string(),
6140
6153
  eventType: PipelineEventType,
6141
- isEnabled: z180.boolean(),
6142
- workspaceId: z180.string(),
6143
- designSystemId: z180.string(),
6144
- exporterId: z180.string(),
6145
- brandPersistentId: z180.string().optional(),
6146
- themePersistentId: z180.string().optional(),
6147
- themePersistentIds: z180.string().array().optional(),
6154
+ isEnabled: z181.boolean(),
6155
+ workspaceId: z181.string(),
6156
+ designSystemId: z181.string(),
6157
+ exporterId: z181.string(),
6158
+ brandPersistentId: z181.string().optional(),
6159
+ themePersistentId: z181.string().optional(),
6160
+ themePersistentIds: z181.string().array().optional(),
6148
6161
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
6149
- isExporterDeprecated: z180.boolean(),
6162
+ isExporterDeprecated: z181.boolean(),
6150
6163
  // Destinations
6151
6164
  ...ExportDestinationsMap.shape
6152
6165
  });
6153
6166
 
6154
6167
  // src/data-dumps/code-integration-dump.ts
6155
- var ExportJobDump = z181.object({
6156
- id: z181.string(),
6157
- createdAt: z181.coerce.date(),
6158
- finishedAt: z181.coerce.date(),
6159
- exportArtefacts: z181.string()
6168
+ var ExportJobDump = z182.object({
6169
+ id: z182.string(),
6170
+ createdAt: z182.coerce.date(),
6171
+ finishedAt: z182.coerce.date(),
6172
+ exportArtefacts: z182.string()
6160
6173
  });
6161
- var CodeIntegrationDump = z181.object({
6174
+ var CodeIntegrationDump = z182.object({
6162
6175
  exporters: Exporter.array(),
6163
6176
  pipelines: Pipeline.array(),
6164
6177
  exportJobs: ExportJobDump.array()
6165
6178
  });
6166
6179
 
6167
6180
  // src/data-dumps/design-system-dump.ts
6168
- import { z as z191 } from "zod";
6181
+ import { z as z192 } from "zod";
6169
6182
 
6170
6183
  // src/data-dumps/design-system-version-dump.ts
6171
- import { z as z190 } from "zod";
6184
+ import { z as z191 } from "zod";
6172
6185
 
6173
6186
  // src/liveblocks/rooms/design-system-version-room.ts
6174
- import { z as z182 } from "zod";
6187
+ import { z as z183 } from "zod";
6175
6188
  var DesignSystemVersionRoom = Entity.extend({
6176
- designSystemVersionId: z182.string(),
6177
- liveblocksId: z182.string()
6178
- });
6179
- var DesignSystemVersionRoomInternalSettings = z182.object({
6180
- routingVersion: z182.string(),
6181
- isDraftFeatureAdopted: z182.boolean(),
6182
- isApprovalFeatureEnabled: z182.boolean(),
6183
- approvalRequiredForPublishing: z182.boolean()
6184
- });
6185
- var DesignSystemVersionRoomInitialState = z182.object({
6186
- pages: z182.array(DocumentationPageV2),
6187
- groups: z182.array(ElementGroup),
6188
- pageSnapshots: z182.array(DocumentationPageSnapshot),
6189
- groupSnapshots: z182.array(ElementGroupSnapshot),
6190
- pageApprovals: z182.array(DocumentationPageApproval),
6189
+ designSystemVersionId: z183.string(),
6190
+ liveblocksId: z183.string()
6191
+ });
6192
+ var DesignSystemVersionRoomInternalSettings = z183.object({
6193
+ routingVersion: z183.string(),
6194
+ isDraftFeatureAdopted: z183.boolean(),
6195
+ isApprovalFeatureEnabled: z183.boolean(),
6196
+ approvalRequiredForPublishing: z183.boolean()
6197
+ });
6198
+ var DesignSystemVersionRoomInitialState = z183.object({
6199
+ pages: z183.array(DocumentationPageV2),
6200
+ groups: z183.array(ElementGroup),
6201
+ pageSnapshots: z183.array(DocumentationPageSnapshot),
6202
+ groupSnapshots: z183.array(ElementGroupSnapshot),
6203
+ pageApprovals: z183.array(DocumentationPageApproval),
6191
6204
  internalSettings: DesignSystemVersionRoomInternalSettings,
6192
- pageHashes: z182.record(z182.string()).optional(),
6193
- storageVersion: z182.literal(1).or(z182.literal(2))
6194
- });
6195
- var DesignSystemVersionRoomUpdate = z182.object({
6196
- pages: z182.array(DocumentationPageV2),
6197
- groups: z182.array(ElementGroup),
6198
- pageIdsToDelete: z182.array(z182.string()),
6199
- groupIdsToDelete: z182.array(z182.string()),
6200
- pageSnapshots: z182.array(DocumentationPageSnapshot),
6201
- groupSnapshots: z182.array(ElementGroupSnapshot),
6202
- pageSnapshotIdsToDelete: z182.array(z182.string()),
6203
- groupSnapshotIdsToDelete: z182.array(z182.string()),
6204
- pageHashesToUpdate: z182.record(z182.string(), z182.string()),
6205
- pageApprovals: z182.array(DocumentationPageApproval),
6206
- pageApprovalIdsToDelete: z182.array(z182.string()),
6207
- executedTransactionIds: z182.array(z182.string())
6205
+ pageHashes: z183.record(z183.string()).optional(),
6206
+ storageVersion: z183.literal(1).or(z183.literal(2))
6207
+ });
6208
+ var DesignSystemVersionRoomUpdate = z183.object({
6209
+ pages: z183.array(DocumentationPageV2),
6210
+ groups: z183.array(ElementGroup),
6211
+ pageIdsToDelete: z183.array(z183.string()),
6212
+ groupIdsToDelete: z183.array(z183.string()),
6213
+ pageSnapshots: z183.array(DocumentationPageSnapshot),
6214
+ groupSnapshots: z183.array(ElementGroupSnapshot),
6215
+ pageSnapshotIdsToDelete: z183.array(z183.string()),
6216
+ groupSnapshotIdsToDelete: z183.array(z183.string()),
6217
+ pageHashesToUpdate: z183.record(z183.string(), z183.string()),
6218
+ pageApprovals: z183.array(DocumentationPageApproval),
6219
+ pageApprovalIdsToDelete: z183.array(z183.string()),
6220
+ executedTransactionIds: z183.array(z183.string())
6208
6221
  });
6209
6222
 
6210
6223
  // src/liveblocks/rooms/documentation-page-room.ts
6211
- import { z as z183 } from "zod";
6224
+ import { z as z184 } from "zod";
6212
6225
  var DocumentationPageRoom = Entity.extend({
6213
- designSystemVersionId: z183.string(),
6214
- documentationPageId: z183.string(),
6215
- liveblocksId: z183.string(),
6216
- isDirty: z183.boolean()
6226
+ designSystemVersionId: z184.string(),
6227
+ documentationPageId: z184.string(),
6228
+ liveblocksId: z184.string(),
6229
+ isDirty: z184.boolean()
6217
6230
  });
6218
- var DocumentationPageRoomState = z183.object({
6219
- pageItems: z183.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
6231
+ var DocumentationPageRoomState = z184.object({
6232
+ pageItems: z184.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
6220
6233
  });
6221
- var DocumentationPageRoomRoomUpdate = z183.object({
6234
+ var DocumentationPageRoomRoomUpdate = z184.object({
6222
6235
  page: DocumentationPageV2,
6223
6236
  pageParent: ElementGroup
6224
6237
  });
6225
6238
  var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
6226
- pageItems: z183.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
6227
- blockDefinitions: z183.array(PageBlockDefinition)
6239
+ pageItems: z184.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
6240
+ blockDefinitions: z184.array(PageBlockDefinition)
6228
6241
  });
6229
- var RestoredDocumentationPage = z183.object({
6242
+ var RestoredDocumentationPage = z184.object({
6230
6243
  page: DocumentationPageV2,
6231
6244
  pageParent: ElementGroup,
6232
6245
  pageContent: DocumentationPageContentData,
6233
- contentHash: z183.string()
6246
+ contentHash: z184.string()
6234
6247
  });
6235
- var RestoredDocumentationGroup = z183.object({
6248
+ var RestoredDocumentationGroup = z184.object({
6236
6249
  group: ElementGroup,
6237
6250
  parent: ElementGroup
6238
6251
  });
6239
6252
 
6240
6253
  // src/liveblocks/rooms/forge-feature-room.ts
6241
- import { z as z184 } from "zod";
6254
+ import { z as z185 } from "zod";
6242
6255
  var ForgeFeatureRoom = Entity.extend({
6243
- featureId: z184.string(),
6244
- projectId: z184.string(),
6245
- liveblocksId: z184.string()
6256
+ featureId: z185.string(),
6257
+ projectId: z185.string(),
6258
+ liveblocksId: z185.string()
6246
6259
  });
6247
6260
 
6248
6261
  // src/liveblocks/rooms/forge-project-artifact-room.ts
6249
- import { z as z185 } from "zod";
6262
+ import { z as z186 } from "zod";
6250
6263
  var ForgeProjectArtifactRoom = Entity.extend({
6251
- artifactId: z185.string(),
6252
- projectId: z185.string(),
6253
- liveblocksId: z185.string(),
6254
- isDirty: z185.boolean()
6264
+ artifactId: z186.string(),
6265
+ projectId: z186.string(),
6266
+ liveblocksId: z186.string(),
6267
+ isDirty: z186.boolean()
6255
6268
  });
6256
6269
 
6257
6270
  // src/liveblocks/rooms/forge-project-room.ts
6258
- import { z as z186 } from "zod";
6271
+ import { z as z187 } from "zod";
6259
6272
  var ForgeProjectRoom = Entity.extend({
6260
- projectId: z186.string(),
6261
- liveblocksId: z186.string()
6262
- });
6263
- var ForgeProjectRoomInitialState = z186.object({
6264
- artifacts: z186.array(ForgeProjectArtifact),
6265
- features: z186.array(ProjectFeature),
6266
- artifactSections: z186.array(ForgeSection),
6267
- featureSections: z186.array(ForgeSection),
6268
- relations: z186.array(ForgeRelation)
6269
- });
6270
- var ForgeProjectRoomUpdate = z186.object({
6271
- artifacts: z186.array(ForgeProjectArtifact).optional(),
6272
- artifactIdsToDelete: z186.array(z186.string()).optional(),
6273
- features: z186.array(ProjectFeature).optional(),
6274
- featureIdsToDelete: z186.array(z186.string()).optional(),
6275
- artifactSections: z186.array(ForgeSection).optional(),
6276
- artifactSectionIdsToDelete: z186.array(z186.string()).optional(),
6277
- featureSections: z186.array(ForgeSection).optional(),
6278
- featureSectionIdsToDelete: z186.array(z186.string()).optional(),
6279
- relations: z186.array(ForgeRelation).optional(),
6280
- executedTransactionIds: z186.string().array().optional()
6273
+ projectId: z187.string(),
6274
+ liveblocksId: z187.string()
6275
+ });
6276
+ var ForgeProjectRoomInitialState = z187.object({
6277
+ artifacts: z187.array(ForgeProjectArtifact),
6278
+ features: z187.array(ProjectFeature),
6279
+ artifactSections: z187.array(ForgeSection),
6280
+ featureSections: z187.array(ForgeSection),
6281
+ relations: z187.array(ForgeRelation)
6282
+ });
6283
+ var ForgeProjectRoomUpdate = z187.object({
6284
+ artifacts: z187.array(ForgeProjectArtifact).optional(),
6285
+ artifactIdsToDelete: z187.array(z187.string()).optional(),
6286
+ features: z187.array(ProjectFeature).optional(),
6287
+ featureIdsToDelete: z187.array(z187.string()).optional(),
6288
+ artifactSections: z187.array(ForgeSection).optional(),
6289
+ artifactSectionIdsToDelete: z187.array(z187.string()).optional(),
6290
+ featureSections: z187.array(ForgeSection).optional(),
6291
+ featureSectionIdsToDelete: z187.array(z187.string()).optional(),
6292
+ relations: z187.array(ForgeRelation).optional(),
6293
+ executedTransactionIds: z187.string().array().optional()
6281
6294
  });
6282
6295
 
6283
6296
  // src/liveblocks/rooms/room-type.ts
6284
- import { z as z187 } from "zod";
6297
+ import { z as z188 } from "zod";
6285
6298
  var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
6286
6299
  RoomTypeEnum2["DocumentationPageOld"] = "documentation-page";
6287
6300
  RoomTypeEnum2["DocumentationPage"] = "doc-page";
@@ -6292,36 +6305,36 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
6292
6305
  RoomTypeEnum2["ForgeProjectFeature"] = "forge-project-feature";
6293
6306
  return RoomTypeEnum2;
6294
6307
  })(RoomTypeEnum || {});
6295
- var RoomTypeSchema = z187.nativeEnum(RoomTypeEnum);
6308
+ var RoomTypeSchema = z188.nativeEnum(RoomTypeEnum);
6296
6309
  var RoomType = RoomTypeSchema.enum;
6297
6310
 
6298
6311
  // src/liveblocks/rooms/workspace-room.ts
6299
- import { z as z188 } from "zod";
6312
+ import { z as z189 } from "zod";
6300
6313
  var WorkspaceRoom = Entity.extend({
6301
- workspaceId: z188.string(),
6302
- liveblocksId: z188.string()
6314
+ workspaceId: z189.string(),
6315
+ liveblocksId: z189.string()
6303
6316
  });
6304
6317
 
6305
6318
  // src/data-dumps/published-docs-dump.ts
6306
- import { z as z189 } from "zod";
6307
- var PublishedDocsDump = z189.object({
6319
+ import { z as z190 } from "zod";
6320
+ var PublishedDocsDump = z190.object({
6308
6321
  documentation: PublishedDoc,
6309
6322
  pages: PublishedDocPage.array()
6310
6323
  });
6311
6324
 
6312
6325
  // src/data-dumps/design-system-version-dump.ts
6313
- var DocumentationThreadDump = z190.object({
6326
+ var DocumentationThreadDump = z191.object({
6314
6327
  thread: DocumentationCommentThread,
6315
6328
  comments: DocumentationComment.array()
6316
6329
  });
6317
- var DocumentationPageRoomDump = z190.object({
6330
+ var DocumentationPageRoomDump = z191.object({
6318
6331
  room: DocumentationPageRoom,
6319
6332
  threads: DocumentationThreadDump.array()
6320
6333
  });
6321
- var DesignSystemVersionMultiplayerDump = z190.object({
6334
+ var DesignSystemVersionMultiplayerDump = z191.object({
6322
6335
  documentationPages: DocumentationPageRoomDump.array()
6323
6336
  });
6324
- var DesignSystemVersionDump = z190.object({
6337
+ var DesignSystemVersionDump = z191.object({
6325
6338
  version: DesignSystemVersion,
6326
6339
  brands: Brand.array(),
6327
6340
  elements: DesignElement.array(),
@@ -6336,7 +6349,7 @@ var DesignSystemVersionDump = z190.object({
6336
6349
  });
6337
6350
 
6338
6351
  // src/data-dumps/design-system-dump.ts
6339
- var DesignSystemDump = z191.object({
6352
+ var DesignSystemDump = z192.object({
6340
6353
  designSystem: DesignSystem,
6341
6354
  dataSources: DataSource.array(),
6342
6355
  versions: DesignSystemVersionDump.array(),
@@ -6345,50 +6358,50 @@ var DesignSystemDump = z191.object({
6345
6358
  });
6346
6359
 
6347
6360
  // src/data-dumps/user-data-dump.ts
6348
- import { z as z194 } from "zod";
6361
+ import { z as z195 } from "zod";
6349
6362
 
6350
6363
  // src/data-dumps/workspace-dump.ts
6351
- import { z as z193 } from "zod";
6364
+ import { z as z194 } from "zod";
6352
6365
 
6353
6366
  // src/integrations/integration.ts
6354
- import { z as z192 } from "zod";
6355
- var IntegrationDesignSystem = z192.object({
6356
- designSystemId: z192.string(),
6357
- brandId: z192.string(),
6358
- title: z192.string().optional(),
6359
- userId: z192.string().optional(),
6360
- date: z192.coerce.date().optional()
6361
- });
6362
- var IntegrationCredentialsType = z192.enum(["OAuth2", "PAT"]);
6363
- var IntegrationCredentialsState = z192.enum(["Active", "Inactive"]);
6364
- var IntegrationCredentialsProfile = z192.object({
6365
- id: nullishToOptional(z192.string()),
6366
- email: nullishToOptional(z192.string()),
6367
- handle: nullishToOptional(z192.string()),
6368
- type: nullishToOptional(z192.string()),
6369
- avatarUrl: nullishToOptional(z192.string()),
6370
- organization: nullishToOptional(z192.string()),
6371
- collection: nullishToOptional(z192.string())
6372
- });
6373
- var IntegrationCredentials = z192.object({
6374
- id: z192.string(),
6367
+ import { z as z193 } from "zod";
6368
+ var IntegrationDesignSystem = z193.object({
6369
+ designSystemId: z193.string(),
6370
+ brandId: z193.string(),
6371
+ title: z193.string().optional(),
6372
+ userId: z193.string().optional(),
6373
+ date: z193.coerce.date().optional()
6374
+ });
6375
+ var IntegrationCredentialsType = z193.enum(["OAuth2", "PAT"]);
6376
+ var IntegrationCredentialsState = z193.enum(["Active", "Inactive"]);
6377
+ var IntegrationCredentialsProfile = z193.object({
6378
+ id: nullishToOptional(z193.string()),
6379
+ email: nullishToOptional(z193.string()),
6380
+ handle: nullishToOptional(z193.string()),
6381
+ type: nullishToOptional(z193.string()),
6382
+ avatarUrl: nullishToOptional(z193.string()),
6383
+ organization: nullishToOptional(z193.string()),
6384
+ collection: nullishToOptional(z193.string())
6385
+ });
6386
+ var IntegrationCredentials = z193.object({
6387
+ id: z193.string(),
6375
6388
  type: IntegrationCredentialsType,
6376
- integrationId: z192.string(),
6377
- accessToken: z192.string(),
6378
- userId: z192.string(),
6379
- createdAt: z192.coerce.date(),
6380
- refreshToken: z192.string().optional(),
6381
- tokenName: z192.string().optional(),
6382
- expiresAt: z192.coerce.date().optional(),
6383
- refreshedAt: z192.coerce.date().optional(),
6384
- username: z192.string().optional(),
6385
- appInstallationId: z192.string().optional(),
6389
+ integrationId: z193.string(),
6390
+ accessToken: z193.string(),
6391
+ userId: z193.string(),
6392
+ createdAt: z193.coerce.date(),
6393
+ refreshToken: z193.string().optional(),
6394
+ tokenName: z193.string().optional(),
6395
+ expiresAt: z193.coerce.date().optional(),
6396
+ refreshedAt: z193.coerce.date().optional(),
6397
+ username: z193.string().optional(),
6398
+ appInstallationId: z193.string().optional(),
6386
6399
  profile: IntegrationCredentialsProfile.optional(),
6387
- customUrl: z192.string().optional(),
6400
+ customUrl: z193.string().optional(),
6388
6401
  state: IntegrationCredentialsState,
6389
6402
  user: UserMinified.optional()
6390
6403
  });
6391
- var ExtendedIntegrationType = z192.enum([
6404
+ var ExtendedIntegrationType = z193.enum([
6392
6405
  "Figma",
6393
6406
  "Github",
6394
6407
  "Gitlab",
@@ -6399,26 +6412,26 @@ var ExtendedIntegrationType = z192.enum([
6399
6412
  ]);
6400
6413
  var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
6401
6414
  var GitIntegrationType = IntegrationType.exclude(["Figma"]);
6402
- var Integration = z192.object({
6403
- id: z192.string(),
6404
- workspaceId: z192.string(),
6415
+ var Integration = z193.object({
6416
+ id: z193.string(),
6417
+ workspaceId: z193.string(),
6405
6418
  type: IntegrationType,
6406
- createdAt: z192.coerce.date(),
6407
- integrationCredentials: z192.array(IntegrationCredentials).optional()
6408
- });
6409
- var IntegrationToken = z192.object({
6410
- access_token: z192.string(),
6411
- refresh_token: z192.string().optional(),
6412
- expires_in: z192.union([z192.number().optional(), z192.string().optional()]),
6413
- token_type: z192.string().optional(),
6414
- token_name: z192.string().optional(),
6415
- token_azure_organization_name: z192.string().optional(),
6419
+ createdAt: z193.coerce.date(),
6420
+ integrationCredentials: z193.array(IntegrationCredentials).optional()
6421
+ });
6422
+ var IntegrationToken = z193.object({
6423
+ access_token: z193.string(),
6424
+ refresh_token: z193.string().optional(),
6425
+ expires_in: z193.union([z193.number().optional(), z193.string().optional()]),
6426
+ token_type: z193.string().optional(),
6427
+ token_name: z193.string().optional(),
6428
+ token_azure_organization_name: z193.string().optional(),
6416
6429
  // Azure Cloud PAT only
6417
- token_azure_collection_name: z192.string().optional(),
6430
+ token_azure_collection_name: z193.string().optional(),
6418
6431
  // Azure Server PAT only
6419
- token_bitbucket_username: z192.string().optional(),
6432
+ token_bitbucket_username: z193.string().optional(),
6420
6433
  // Bitbucket only
6421
- custom_url: z192.string().optional().transform((value) => {
6434
+ custom_url: z193.string().optional().transform((value) => {
6422
6435
  if (!value?.trim()) return void 0;
6423
6436
  return formatCustomUrl(value);
6424
6437
  })
@@ -6455,7 +6468,7 @@ function formatCustomUrl(url) {
6455
6468
  }
6456
6469
 
6457
6470
  // src/data-dumps/workspace-dump.ts
6458
- var WorkspaceDump = z193.object({
6471
+ var WorkspaceDump = z194.object({
6459
6472
  workspace: Workspace,
6460
6473
  designSystems: DesignSystemDump.array(),
6461
6474
  codeIntegration: CodeIntegrationDump,
@@ -6463,149 +6476,150 @@ var WorkspaceDump = z193.object({
6463
6476
  });
6464
6477
 
6465
6478
  // src/data-dumps/user-data-dump.ts
6466
- var UserDump = z194.object({
6479
+ var UserDump = z195.object({
6467
6480
  user: User,
6468
6481
  workspaces: WorkspaceDump.array()
6469
6482
  });
6470
6483
 
6471
6484
  // src/docs-server/session.ts
6472
- import { z as z195 } from "zod";
6473
- var NpmProxyToken = z195.object({
6474
- access: z195.string(),
6475
- expiresAt: z195.number()
6485
+ import { z as z196 } from "zod";
6486
+ var NpmProxyToken = z196.object({
6487
+ access: z196.string(),
6488
+ expiresAt: z196.number()
6476
6489
  });
6477
- var SessionData = z195.object({
6478
- returnToUrl: z195.string().optional(),
6490
+ var SessionData = z196.object({
6491
+ returnToUrl: z196.string().optional(),
6479
6492
  npmProxyToken: NpmProxyToken.optional()
6480
6493
  });
6481
- var Session = z195.object({
6482
- id: z195.string(),
6483
- expiresAt: z195.coerce.date(),
6484
- userId: z195.string().nullable(),
6485
- anonymousId: z195.string().nullable(),
6494
+ var Session = z196.object({
6495
+ id: z196.string(),
6496
+ expiresAt: z196.coerce.date(),
6497
+ userId: z196.string().nullable(),
6498
+ anonymousId: z196.string().nullable(),
6486
6499
  data: SessionData
6487
6500
  });
6488
- var AuthTokens = z195.object({
6489
- access: z195.string(),
6490
- refresh: z195.string()
6501
+ var AuthTokens = z196.object({
6502
+ access: z196.string(),
6503
+ refresh: z196.string()
6491
6504
  });
6492
- var UserSession = z195.object({
6505
+ var UserSession = z196.object({
6493
6506
  session: Session,
6494
6507
  user: User.nullable()
6495
6508
  });
6496
6509
 
6497
6510
  // src/emails/design-system-invite.ts
6498
- import { z as z196 } from "zod";
6499
- var DesignSystemInviteEmailRecipient = z196.object({
6500
- email: z196.string(),
6511
+ import { z as z197 } from "zod";
6512
+ var DesignSystemInviteEmailRecipient = z197.object({
6513
+ email: z197.string(),
6501
6514
  role: WorkspaceRoleSchema
6502
6515
  });
6503
- var DesignSystemInviteEmailData = z196.object({
6516
+ var DesignSystemInviteEmailData = z197.object({
6504
6517
  workspace: Workspace,
6505
6518
  designSystem: DesignSystem,
6506
6519
  invitedBy: User,
6507
- documentationDomain: z196.string().optional()
6520
+ documentationDomain: z197.string().optional()
6508
6521
  });
6509
6522
 
6510
6523
  // src/emails/workspace-invite.ts
6511
- import { z as z197 } from "zod";
6512
- var WorkspaceInviteEmailRecipient = z197.object({
6513
- email: z197.string(),
6514
- role: WorkspaceRoleSchema
6524
+ import { z as z198 } from "zod";
6525
+ var WorkspaceInviteEmailRecipient = z198.object({
6526
+ email: z198.string(),
6527
+ role: WorkspaceRoleSchema,
6528
+ seatType: WorkspaceSeatType
6515
6529
  });
6516
- var WorkspaceInviteEmailData = z197.object({
6530
+ var WorkspaceInviteEmailData = z198.object({
6517
6531
  workspace: Workspace,
6518
6532
  invitedBy: User,
6519
- documentationDomain: z197.string().optional()
6533
+ documentationDomain: z198.string().optional()
6520
6534
  });
6521
6535
 
6522
6536
  // src/events/base.ts
6523
- import { z as z201 } from "zod";
6537
+ import { z as z202 } from "zod";
6524
6538
 
6525
6539
  // src/events/data-source-imported.ts
6526
- import { z as z198 } from "zod";
6527
- var EventDataSourceImported = z198.object({
6528
- type: z198.literal("DataSourceImported"),
6529
- workspaceId: z198.string(),
6530
- designSystemId: z198.string()
6531
- });
6532
-
6533
- // src/events/version-released.ts
6534
6540
  import { z as z199 } from "zod";
6535
- var EventVersionReleased = z199.object({
6536
- type: z199.literal("DesignSystemVersionReleased"),
6541
+ var EventDataSourceImported = z199.object({
6542
+ type: z199.literal("DataSourceImported"),
6537
6543
  workspaceId: z199.string(),
6538
- designSystemId: z199.string(),
6539
- versionId: z199.string()
6544
+ designSystemId: z199.string()
6540
6545
  });
6541
6546
 
6542
- // src/events/documentation-published.ts
6547
+ // src/events/version-released.ts
6543
6548
  import { z as z200 } from "zod";
6544
- var EventDocumentationPublished = z200.object({
6545
- type: z200.literal("DocumentationPublished"),
6549
+ var EventVersionReleased = z200.object({
6550
+ type: z200.literal("DesignSystemVersionReleased"),
6546
6551
  workspaceId: z200.string(),
6547
6552
  designSystemId: z200.string(),
6548
6553
  versionId: z200.string()
6549
6554
  });
6550
6555
 
6556
+ // src/events/documentation-published.ts
6557
+ import { z as z201 } from "zod";
6558
+ var EventDocumentationPublished = z201.object({
6559
+ type: z201.literal("DocumentationPublished"),
6560
+ workspaceId: z201.string(),
6561
+ designSystemId: z201.string(),
6562
+ versionId: z201.string()
6563
+ });
6564
+
6551
6565
  // src/events/base.ts
6552
- var Event = z201.discriminatedUnion("type", [
6566
+ var Event = z202.discriminatedUnion("type", [
6553
6567
  EventVersionReleased,
6554
6568
  EventDataSourceImported,
6555
6569
  EventDocumentationPublished
6556
6570
  ]);
6557
6571
 
6558
6572
  // src/export/export-runner/export-context.ts
6559
- import { z as z202 } from "zod";
6560
- var ExportJobDocumentationContext = z202.object({
6561
- isSingleVersionDocs: z202.boolean(),
6562
- versionSlug: z202.string(),
6573
+ import { z as z203 } from "zod";
6574
+ var ExportJobDocumentationContext = z203.object({
6575
+ isSingleVersionDocs: z203.boolean(),
6576
+ versionSlug: z203.string(),
6563
6577
  environment: PublishedDocEnvironment
6564
6578
  });
6565
- var ExportJobDebugContext = z202.object({
6566
- debugMode: z202.boolean().optional(),
6567
- concurrency: z202.number().optional(),
6568
- preloadData: z202.string().optional(),
6569
- concurrencyMode: z202.string().optional(),
6570
- cacheSdk: z202.string().optional(),
6571
- logSdkNetwork: z202.boolean().optional(),
6572
- profilerMode: z202.string().optional()
6573
- });
6574
- var ExportJobContext = z202.object({
6575
- apiUrl: z202.string(),
6576
- accessToken: z202.string(),
6577
- designSystemId: z202.string(),
6578
- designSystemName: z202.string(),
6579
- exporterId: z202.string(),
6580
- versionId: z202.string(),
6581
- brandId: z202.string().optional(),
6582
- themeId: z202.string().optional(),
6583
- themePersistentIds: z202.string().array().optional(),
6584
- previewMode: z202.boolean().optional(),
6585
- exporterName: z202.string(),
6579
+ var ExportJobDebugContext = z203.object({
6580
+ debugMode: z203.boolean().optional(),
6581
+ concurrency: z203.number().optional(),
6582
+ preloadData: z203.string().optional(),
6583
+ concurrencyMode: z203.string().optional(),
6584
+ cacheSdk: z203.string().optional(),
6585
+ logSdkNetwork: z203.boolean().optional(),
6586
+ profilerMode: z203.string().optional()
6587
+ });
6588
+ var ExportJobContext = z203.object({
6589
+ apiUrl: z203.string(),
6590
+ accessToken: z203.string(),
6591
+ designSystemId: z203.string(),
6592
+ designSystemName: z203.string(),
6593
+ exporterId: z203.string(),
6594
+ versionId: z203.string(),
6595
+ brandId: z203.string().optional(),
6596
+ themeId: z203.string().optional(),
6597
+ themePersistentIds: z203.string().array().optional(),
6598
+ previewMode: z203.boolean().optional(),
6599
+ exporterName: z203.string(),
6586
6600
  documentation: ExportJobDocumentationContext.optional(),
6587
6601
  debug: ExportJobDebugContext.optional()
6588
6602
  });
6589
- var ExportJobExporterConfiguration = z202.object({
6590
- exporterPackageUrl: z202.string(),
6603
+ var ExportJobExporterConfiguration = z203.object({
6604
+ exporterPackageUrl: z203.string(),
6591
6605
  exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
6592
6606
  exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
6593
6607
  });
6594
6608
 
6595
6609
  // src/export/export-runner/exporter-payload.ts
6596
- import { z as z203 } from "zod";
6597
- var ExporterFunctionPayload = z203.object({
6598
- exportJobId: z203.string(),
6599
- exportContextId: z203.string(),
6600
- designSystemId: z203.string(),
6601
- workspaceId: z203.string(),
6602
- exporterId: z203.string(),
6603
- runnerType: z203.enum(["High", "Low"])
6610
+ import { z as z204 } from "zod";
6611
+ var ExporterFunctionPayload = z204.object({
6612
+ exportJobId: z204.string(),
6613
+ exportContextId: z204.string(),
6614
+ designSystemId: z204.string(),
6615
+ workspaceId: z204.string(),
6616
+ exporterId: z204.string(),
6617
+ runnerType: z204.enum(["High", "Low"])
6604
6618
  });
6605
6619
 
6606
6620
  // src/export/export-jobs.ts
6607
- import { z as z204 } from "zod";
6608
- var ExportJobDestinationType = z204.enum([
6621
+ import { z as z205 } from "zod";
6622
+ var ExportJobDestinationType = z205.enum([
6609
6623
  "s3",
6610
6624
  "webhookUrl",
6611
6625
  "github",
@@ -6614,31 +6628,31 @@ var ExportJobDestinationType = z204.enum([
6614
6628
  "gitlab",
6615
6629
  "bitbucket"
6616
6630
  ]);
6617
- var ExportJobStatus = z204.enum(["InProgress", "Success", "Failed", "Timeout"]);
6618
- var ExportJobLogEntryType = z204.enum(["success", "info", "warning", "error", "user"]);
6619
- var ExportJobLogEntry = z204.object({
6620
- id: z204.string().optional(),
6621
- time: z204.coerce.date(),
6631
+ var ExportJobStatus = z205.enum(["InProgress", "Success", "Failed", "Timeout"]);
6632
+ var ExportJobLogEntryType = z205.enum(["success", "info", "warning", "error", "user"]);
6633
+ var ExportJobLogEntry = z205.object({
6634
+ id: z205.string().optional(),
6635
+ time: z205.coerce.date(),
6622
6636
  type: ExportJobLogEntryType,
6623
- message: z204.string()
6637
+ message: z205.string()
6624
6638
  });
6625
- var ExportJobPullRequestDestinationResult = z204.object({
6626
- pullRequestUrl: z204.string(),
6627
- sparseCheckoutUsed: nullishToOptional(z204.boolean())
6639
+ var ExportJobPullRequestDestinationResult = z205.object({
6640
+ pullRequestUrl: z205.string(),
6641
+ sparseCheckoutUsed: nullishToOptional(z205.boolean())
6628
6642
  });
6629
- var ExportJobS3DestinationResult = z204.object({
6630
- bucket: z204.string(),
6631
- urlPrefix: z204.string().optional(),
6632
- path: z204.string(),
6633
- files: z204.array(z204.string()),
6634
- url: nullishToOptional(z204.string()),
6635
- urls: nullishToOptional(z204.string().array())
6643
+ var ExportJobS3DestinationResult = z205.object({
6644
+ bucket: z205.string(),
6645
+ urlPrefix: z205.string().optional(),
6646
+ path: z205.string(),
6647
+ files: z205.array(z205.string()),
6648
+ url: nullishToOptional(z205.string()),
6649
+ urls: nullishToOptional(z205.string().array())
6636
6650
  });
6637
- var ExportJobDocsDestinationResult = z204.object({
6638
- url: z204.string()
6651
+ var ExportJobDocsDestinationResult = z205.object({
6652
+ url: z205.string()
6639
6653
  });
6640
- var ExportJobResult = z204.object({
6641
- error: z204.string().optional(),
6654
+ var ExportJobResult = z205.object({
6655
+ error: z205.string().optional(),
6642
6656
  s3: nullishToOptional(ExportJobS3DestinationResult),
6643
6657
  github: nullishToOptional(ExportJobPullRequestDestinationResult),
6644
6658
  azure: nullishToOptional(ExportJobPullRequestDestinationResult),
@@ -6647,25 +6661,25 @@ var ExportJobResult = z204.object({
6647
6661
  sndocs: nullishToOptional(ExportJobDocsDestinationResult),
6648
6662
  logs: nullishToOptional(ExportJobLogEntry.array())
6649
6663
  });
6650
- var ExportJob = z204.object({
6651
- id: z204.string(),
6652
- createdAt: z204.coerce.date(),
6653
- finishedAt: z204.coerce.date().optional(),
6654
- designSystemId: z204.string(),
6655
- designSystemVersionId: z204.string(),
6656
- workspaceId: z204.string(),
6657
- scheduleId: z204.string().nullish(),
6658
- exporterId: z204.string(),
6659
- brandId: z204.string().optional(),
6660
- themeId: z204.string().optional(),
6661
- themePersistentIds: z204.string().array().optional(),
6662
- estimatedExecutionTime: z204.number().optional(),
6664
+ var ExportJob = z205.object({
6665
+ id: z205.string(),
6666
+ createdAt: z205.coerce.date(),
6667
+ finishedAt: z205.coerce.date().optional(),
6668
+ designSystemId: z205.string(),
6669
+ designSystemVersionId: z205.string(),
6670
+ workspaceId: z205.string(),
6671
+ scheduleId: z205.string().nullish(),
6672
+ exporterId: z205.string(),
6673
+ brandId: z205.string().optional(),
6674
+ themeId: z205.string().optional(),
6675
+ themePersistentIds: z205.string().array().optional(),
6676
+ estimatedExecutionTime: z205.number().optional(),
6663
6677
  status: ExportJobStatus,
6664
6678
  result: ExportJobResult.optional(),
6665
- createdByUserId: z204.string().optional(),
6679
+ createdByUserId: z205.string().optional(),
6666
6680
  exporterPropertyValues: ExporterPropertyValueMap.optional(),
6667
- previewMode: z204.boolean().optional(),
6668
- exportContextId: z204.string().optional().nullable(),
6681
+ previewMode: z205.boolean().optional(),
6682
+ exportContextId: z205.string().optional().nullable(),
6669
6683
  // Destinations
6670
6684
  ...ExportDestinationsMap.shape
6671
6685
  });
@@ -6679,37 +6693,37 @@ var ExportJobFindByFilter = ExportJob.pick({
6679
6693
  themeId: true,
6680
6694
  brandId: true
6681
6695
  }).extend({
6682
- destinations: z204.array(ExportJobDestinationType),
6696
+ destinations: z205.array(ExportJobDestinationType),
6683
6697
  docsEnvironment: PublishedDocEnvironment,
6684
- selectivePublishing: z204.boolean().optional()
6698
+ selectivePublishing: z205.boolean().optional()
6685
6699
  }).partial();
6686
6700
 
6687
6701
  // src/export/exporter-list-query.ts
6688
- import { z as z205 } from "zod";
6689
- var ExporterType2 = z205.enum(["documentation", "code"]);
6690
- var ListExporterQuery = z205.object({
6691
- limit: z205.number().optional(),
6692
- offset: z205.number().optional(),
6702
+ import { z as z206 } from "zod";
6703
+ var ExporterType2 = z206.enum(["documentation", "code"]);
6704
+ var ListExporterQuery = z206.object({
6705
+ limit: z206.number().optional(),
6706
+ offset: z206.number().optional(),
6693
6707
  type: ExporterType2.optional(),
6694
- search: z205.string().optional()
6708
+ search: z206.string().optional()
6695
6709
  });
6696
6710
 
6697
6711
  // src/export/exporter-workspace-membership-role.ts
6698
- import { z as z206 } from "zod";
6699
- var ExporterWorkspaceMembershipRole = z206.enum(["Owner", "OwnerArchived", "User"]);
6712
+ import { z as z207 } from "zod";
6713
+ var ExporterWorkspaceMembershipRole = z207.enum(["Owner", "OwnerArchived", "User"]);
6700
6714
 
6701
6715
  // src/export/exporter-workspace-membership.ts
6702
- import { z as z207 } from "zod";
6703
- var ExporterWorkspaceMembership = z207.object({
6704
- id: z207.string(),
6705
- workspaceId: z207.string(),
6706
- exporterId: z207.string(),
6716
+ import { z as z208 } from "zod";
6717
+ var ExporterWorkspaceMembership = z208.object({
6718
+ id: z208.string(),
6719
+ workspaceId: z208.string(),
6720
+ exporterId: z208.string(),
6707
6721
  role: ExporterWorkspaceMembershipRole
6708
6722
  });
6709
6723
 
6710
6724
  // src/feature-flags/feature-flags.ts
6711
- import { z as z208 } from "zod";
6712
- var FlaggedFeature = z208.enum([
6725
+ import { z as z209 } from "zod";
6726
+ var FlaggedFeature = z209.enum([
6713
6727
  "FigmaImporterV2",
6714
6728
  "DisableImporter",
6715
6729
  "VariablesOrder",
@@ -6741,21 +6755,21 @@ var FeatureFlagDefaults = {
6741
6755
  DocumentationIgnoreSnapshotsOnPublish: "route-bff+route-p3",
6742
6756
  DSVersionRoomYJSStorageVersion: 1
6743
6757
  };
6744
- var FeatureFlagMap = z208.record(FlaggedFeature, z208.boolean());
6745
- var FeatureFlag = z208.object({
6746
- id: z208.string(),
6758
+ var FeatureFlagMap = z209.record(FlaggedFeature, z209.boolean());
6759
+ var FeatureFlag = z209.object({
6760
+ id: z209.string(),
6747
6761
  feature: FlaggedFeature,
6748
- createdAt: z208.coerce.date(),
6749
- enabled: z208.boolean(),
6750
- designSystemId: z208.string().optional(),
6751
- data: z208.record(z208.any()).nullable().optional()
6762
+ createdAt: z209.coerce.date(),
6763
+ enabled: z209.boolean(),
6764
+ designSystemId: z209.string().optional(),
6765
+ data: z209.record(z209.any()).nullable().optional()
6752
6766
  });
6753
6767
 
6754
6768
  // src/integrations/external-oauth-request.ts
6755
- import { z as z210 } from "zod";
6769
+ import { z as z211 } from "zod";
6756
6770
 
6757
6771
  // src/integrations/oauth-providers.ts
6758
- import { z as z209 } from "zod";
6772
+ import { z as z210 } from "zod";
6759
6773
  var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6760
6774
  OAuthProviderNames2["Figma"] = "figma";
6761
6775
  OAuthProviderNames2["Azure"] = "azure";
@@ -6764,192 +6778,192 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
6764
6778
  OAuthProviderNames2["Bitbucket"] = "bitbucket";
6765
6779
  return OAuthProviderNames2;
6766
6780
  })(OAuthProviderNames || {});
6767
- var OAuthProviderSchema = z209.nativeEnum(OAuthProviderNames);
6781
+ var OAuthProviderSchema = z210.nativeEnum(OAuthProviderNames);
6768
6782
  var OAuthProvider = OAuthProviderSchema.enum;
6769
6783
 
6770
6784
  // src/integrations/external-oauth-request.ts
6771
- var ExternalOAuthRequest = z210.object({
6772
- id: z210.string(),
6785
+ var ExternalOAuthRequest = z211.object({
6786
+ id: z211.string(),
6773
6787
  provider: OAuthProviderSchema,
6774
- userId: z210.string(),
6775
- state: z210.string(),
6776
- createdAt: z210.coerce.date()
6788
+ userId: z211.string(),
6789
+ state: z211.string(),
6790
+ createdAt: z211.coerce.date()
6777
6791
  });
6778
6792
 
6779
6793
  // src/integrations/git.ts
6780
- import { z as z211 } from "zod";
6781
- var GitObjectsQuery = z211.object({
6782
- organization: z211.string().optional(),
6794
+ import { z as z212 } from "zod";
6795
+ var GitObjectsQuery = z212.object({
6796
+ organization: z212.string().optional(),
6783
6797
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
6784
- project: z211.string().optional(),
6798
+ project: z212.string().optional(),
6785
6799
  // Only for Bitbucket and Azure
6786
- repository: z211.string().optional(),
6800
+ repository: z212.string().optional(),
6787
6801
  // For all providers. For Gitlab, it's called "project".
6788
- branch: z211.string().optional(),
6802
+ branch: z212.string().optional(),
6789
6803
  // For all providers.
6790
- user: z211.string().optional()
6804
+ user: z212.string().optional()
6791
6805
  // Gitlab user
6792
6806
  });
6793
- var GitOrganization = z211.object({
6794
- id: z211.string(),
6795
- name: z211.string(),
6796
- url: z211.string(),
6797
- slug: z211.string()
6807
+ var GitOrganization = z212.object({
6808
+ id: z212.string(),
6809
+ name: z212.string(),
6810
+ url: z212.string(),
6811
+ slug: z212.string()
6798
6812
  });
6799
- var GitProject = z211.object({
6800
- id: z211.string(),
6801
- name: z211.string(),
6802
- url: z211.string(),
6803
- slug: z211.string()
6813
+ var GitProject = z212.object({
6814
+ id: z212.string(),
6815
+ name: z212.string(),
6816
+ url: z212.string(),
6817
+ slug: z212.string()
6804
6818
  });
6805
- var GitRepository = z211.object({
6806
- id: z211.string(),
6807
- name: z211.string(),
6808
- url: z211.string(),
6809
- slug: z211.string(),
6819
+ var GitRepository = z212.object({
6820
+ id: z212.string(),
6821
+ name: z212.string(),
6822
+ url: z212.string(),
6823
+ slug: z212.string(),
6810
6824
  /**
6811
6825
  * Can be undefined when:
6812
6826
  * - there are no branches in the repository yet
6813
6827
  * - Git provider doesn't expose this information on a repository via their API
6814
6828
  */
6815
- defaultBranch: z211.string().optional()
6829
+ defaultBranch: z212.string().optional()
6816
6830
  });
6817
- var GitBranch = z211.object({
6818
- name: z211.string(),
6819
- lastCommitId: z211.string()
6831
+ var GitBranch = z212.object({
6832
+ name: z212.string(),
6833
+ lastCommitId: z212.string()
6820
6834
  });
6821
6835
 
6822
6836
  // src/integrations/oauth-token.ts
6823
- import { z as z212 } from "zod";
6824
- var IntegrationTokenSchemaOld = z212.object({
6825
- id: z212.string(),
6837
+ import { z as z213 } from "zod";
6838
+ var IntegrationTokenSchemaOld = z213.object({
6839
+ id: z213.string(),
6826
6840
  provider: OAuthProviderSchema,
6827
- scope: z212.string(),
6828
- userId: z212.string(),
6829
- accessToken: z212.string(),
6830
- refreshToken: z212.string(),
6831
- expiresAt: z212.coerce.date(),
6832
- externalUserId: z212.string().nullish()
6841
+ scope: z213.string(),
6842
+ userId: z213.string(),
6843
+ accessToken: z213.string(),
6844
+ refreshToken: z213.string(),
6845
+ expiresAt: z213.coerce.date(),
6846
+ externalUserId: z213.string().nullish()
6833
6847
  });
6834
6848
 
6835
6849
  // src/integrations/workspace-oauth-requests.ts
6836
- import { z as z213 } from "zod";
6837
- var WorkspaceOAuthRequestSchema = z213.object({
6838
- id: z213.string(),
6839
- workspaceId: z213.string(),
6850
+ import { z as z214 } from "zod";
6851
+ var WorkspaceOAuthRequestSchema = z214.object({
6852
+ id: z214.string(),
6853
+ workspaceId: z214.string(),
6840
6854
  provider: OAuthProviderSchema,
6841
- userId: z213.string(),
6842
- createdAt: z213.coerce.date()
6855
+ userId: z214.string(),
6856
+ createdAt: z214.coerce.date()
6843
6857
  });
6844
6858
 
6845
6859
  // src/npm/npm-package.ts
6846
- import { z as z214 } from "zod";
6847
- var AnyRecord = z214.record(z214.any());
6860
+ import { z as z215 } from "zod";
6861
+ var AnyRecord = z215.record(z215.any());
6848
6862
  var NpmPackageVersionDist = AnyRecord.and(
6849
- z214.object({
6850
- tarball: z214.string()
6863
+ z215.object({
6864
+ tarball: z215.string()
6851
6865
  })
6852
6866
  );
6853
6867
  var NpmPackageVersion = AnyRecord.and(
6854
- z214.object({
6868
+ z215.object({
6855
6869
  dist: NpmPackageVersionDist
6856
6870
  })
6857
6871
  );
6858
6872
  var NpmPackage = AnyRecord.and(
6859
- z214.object({
6860
- _id: z214.string(),
6861
- name: z214.string(),
6873
+ z215.object({
6874
+ _id: z215.string(),
6875
+ name: z215.string(),
6862
6876
  // e.g. "latest": "1.2.3"
6863
- "dist-tags": z214.record(z214.string(), z214.string()),
6877
+ "dist-tags": z215.record(z215.string(), z215.string()),
6864
6878
  // "1.2.3": {...}
6865
- versions: z214.record(NpmPackageVersion)
6879
+ versions: z215.record(NpmPackageVersion)
6866
6880
  })
6867
6881
  );
6868
6882
 
6869
6883
  // src/npm/npm-proxy-token-payload.ts
6870
- import { z as z215 } from "zod";
6871
- var NpmProxyTokenPayload = z215.object({
6872
- npmProxyRegistryConfigId: z215.string()
6884
+ import { z as z216 } from "zod";
6885
+ var NpmProxyTokenPayload = z216.object({
6886
+ npmProxyRegistryConfigId: z216.string()
6873
6887
  });
6874
6888
 
6875
6889
  // src/page-screenshot/page-screenshot.ts
6876
- import { z as z216 } from "zod";
6877
- var PageScreenshotInput = z216.object({
6878
- url: z216.string().url(),
6879
- elementSelector: z216.string(),
6880
- uploadUrl: z216.string().url(),
6881
- viewportSize: z216.object({
6882
- width: z216.number().positive(),
6883
- height: z216.number().positive()
6890
+ import { z as z217 } from "zod";
6891
+ var PageScreenshotInput = z217.object({
6892
+ url: z217.string().url(),
6893
+ elementSelector: z217.string(),
6894
+ uploadUrl: z217.string().url(),
6895
+ viewportSize: z217.object({
6896
+ width: z217.number().positive(),
6897
+ height: z217.number().positive()
6884
6898
  }).optional(),
6885
- imageSize: z216.object({
6886
- width: z216.number().positive(),
6887
- height: z216.number().positive()
6899
+ imageSize: z217.object({
6900
+ width: z217.number().positive(),
6901
+ height: z217.number().positive()
6888
6902
  }).optional(),
6889
- supernovaAuth: z216.object({
6890
- accessToken: z216.string()
6903
+ supernovaAuth: z217.object({
6904
+ accessToken: z217.string()
6891
6905
  }).optional(),
6892
- trace: z216.object({
6893
- sentryTrace: z216.string().optional(),
6894
- baggage: z216.string().optional()
6906
+ trace: z217.object({
6907
+ sentryTrace: z217.string().optional(),
6908
+ baggage: z217.string().optional()
6895
6909
  }).optional()
6896
6910
  });
6897
- var PageScreenshotOutput = z216.discriminatedUnion("success", [
6898
- z216.object({
6899
- success: z216.literal(true),
6900
- fileSize: z216.number()
6911
+ var PageScreenshotOutput = z217.discriminatedUnion("success", [
6912
+ z217.object({
6913
+ success: z217.literal(true),
6914
+ fileSize: z217.number()
6901
6915
  }),
6902
- z216.object({
6903
- success: z216.literal(false),
6904
- error: z216.string()
6916
+ z217.object({
6917
+ success: z217.literal(false),
6918
+ error: z217.string()
6905
6919
  })
6906
6920
  ]);
6907
6921
 
6908
6922
  // src/portal/portal-settings.ts
6909
- import { z as z217 } from "zod";
6923
+ import { z as z218 } from "zod";
6910
6924
  var PortalSettingsTheme = UserTheme;
6911
- var PortalSettingsSidebarLink = z217.object({
6912
- name: z217.string(),
6913
- url: z217.string(),
6914
- emoji: z217.string()
6915
- });
6916
- var PortalSettingsSidebarSection = z217.object({
6917
- sectionName: z217.string(),
6918
- links: z217.array(PortalSettingsSidebarLink)
6919
- });
6920
- var PortalSettingsSidebar = z217.array(PortalSettingsSidebarSection);
6921
- var PortalSettings = z217.object({
6922
- id: z217.string(),
6923
- workspaceId: z217.string(),
6924
- enabledDesignSystemIds: z217.array(z217.string()),
6925
- enabledBrandPersistentIds: z217.array(z217.string()),
6925
+ var PortalSettingsSidebarLink = z218.object({
6926
+ name: z218.string(),
6927
+ url: z218.string(),
6928
+ emoji: z218.string()
6929
+ });
6930
+ var PortalSettingsSidebarSection = z218.object({
6931
+ sectionName: z218.string(),
6932
+ links: z218.array(PortalSettingsSidebarLink)
6933
+ });
6934
+ var PortalSettingsSidebar = z218.array(PortalSettingsSidebarSection);
6935
+ var PortalSettings = z218.object({
6936
+ id: z218.string(),
6937
+ workspaceId: z218.string(),
6938
+ enabledDesignSystemIds: z218.array(z218.string()),
6939
+ enabledBrandPersistentIds: z218.array(z218.string()),
6926
6940
  theme: PortalSettingsTheme.nullish(),
6927
6941
  sidebar: PortalSettingsSidebar.nullish(),
6928
- createdAt: z217.coerce.date(),
6929
- updatedAt: z217.coerce.date()
6942
+ createdAt: z218.coerce.date(),
6943
+ updatedAt: z218.coerce.date()
6930
6944
  });
6931
6945
 
6932
6946
  // src/sentry/headers.ts
6933
- import z218 from "zod";
6934
- var SentryTraceHeaders = z218.object({
6935
- sentryTrace: z218.string(),
6936
- baggage: z218.string()
6947
+ import z219 from "zod";
6948
+ var SentryTraceHeaders = z219.object({
6949
+ sentryTrace: z219.string(),
6950
+ baggage: z219.string()
6937
6951
  });
6938
6952
 
6939
6953
  // src/tokens/personal-access-token.ts
6940
- import { z as z219 } from "zod";
6941
- var PersonalAccessToken = z219.object({
6942
- id: z219.string(),
6943
- userId: z219.string(),
6944
- workspaceId: z219.string().optional(),
6945
- designSystemId: z219.string().optional(),
6954
+ import { z as z220 } from "zod";
6955
+ var PersonalAccessToken = z220.object({
6956
+ id: z220.string(),
6957
+ userId: z220.string(),
6958
+ workspaceId: z220.string().optional(),
6959
+ designSystemId: z220.string().optional(),
6946
6960
  workspaceRole: WorkspaceRoleSchema.optional(),
6947
- name: z219.string(),
6948
- hidden: z219.boolean(),
6949
- token: z219.string(),
6950
- scope: z219.string().optional(),
6951
- createdAt: z219.coerce.date(),
6952
- expireAt: z219.coerce.date().optional()
6961
+ name: z220.string(),
6962
+ hidden: z220.boolean(),
6963
+ token: z220.string(),
6964
+ scope: z220.string().optional(),
6965
+ createdAt: z220.coerce.date(),
6966
+ expireAt: z220.coerce.date().optional()
6953
6967
  });
6954
6968
  export {
6955
6969
  Address,
@@ -7548,6 +7562,7 @@ export {
7548
7562
  PipelineDestinationGitType,
7549
7563
  PipelineDestinationType,
7550
7564
  PipelineEventType,
7565
+ PipelineExporterQuery,
7551
7566
  PluginOAuthRequestSchema,
7552
7567
  Point2D,
7553
7568
  PortalSettings,