@supernova-studio/client 1.6.2 → 1.6.4

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
@@ -683,13 +683,33 @@ var CodeComponent = z23.object({
683
683
  componentPath: z23.string(),
684
684
  description: z23.string(),
685
685
  properties: z23.record(z23.string(), CodeComponentProperty),
686
- tags: z23.record(z23.string(), z23.string()).optional()
686
+ tags: z23.record(z23.string(), z23.string()).nullable()
687
687
  });
688
688
  var CodeComponentUpsertResponse = z23.object({
689
689
  created: z23.number().nonnegative(),
690
690
  updated: z23.number().nonnegative(),
691
691
  deleted: z23.number().nonnegative()
692
692
  });
693
+ var RegistryType = z23.enum(["Npm", "Github", "Artifactory", "Azure", "Custom"]);
694
+ var Registry = z23.object({
695
+ type: RegistryType,
696
+ url: z23.string().optional(),
697
+ accessToken: z23.string().optional(),
698
+ scope: z23.string(),
699
+ authConfig: z23.record(z23.string()).optional()
700
+ });
701
+ var DependencyDefinition = z23.object({
702
+ name: z23.string(),
703
+ version: z23.string().optional()
704
+ });
705
+ var AnalyzeCodeComponentsInPackage = z23.object({
706
+ designSystemId: z23.string(),
707
+ versionId: z23.string(),
708
+ mainPackage: DependencyDefinition,
709
+ dependencies: z23.array(DependencyDefinition).optional(),
710
+ registries: Registry.array(),
711
+ userAccessToken: z23.string()
712
+ });
693
713
  var FigmaFileDownloadScope = z24.object({
694
714
  styles: z24.boolean(),
695
715
  components: z24.boolean(),
@@ -3327,6 +3347,11 @@ var SourceImportComponentSummary = z90.object({
3327
3347
  componentAssetsUpdated: zeroNumberByDefault(),
3328
3348
  componentAssetsDeleted: zeroNumberByDefault()
3329
3349
  });
3350
+ var SourceImportStorybookSummary = z90.object({
3351
+ created: zeroNumberByDefault(),
3352
+ updated: zeroNumberByDefault(),
3353
+ deleted: zeroNumberByDefault()
3354
+ });
3330
3355
  var SourceImportFrameSummary = z90.object({
3331
3356
  assetsInFile: nullishToOptional(FileStructureStats.optional()),
3332
3357
  invalidReferencesCount: nullishToOptional(z90.number().optional())
@@ -3412,9 +3437,12 @@ var DataSourceStorybookRemote = z91.object({
3412
3437
  ownerId: z91.string().optional(),
3413
3438
  lastImportedAt: z91.coerce.date().optional(),
3414
3439
  lastImportedSuccessfully: z91.coerce.date().optional(),
3440
+ lastImportedResult: SourceImportStorybookSummary.optional(),
3415
3441
  isFailed: z91.boolean(),
3416
3442
  storiesCount: z91.number(),
3417
- docsCount: z91.number()
3443
+ docsCount: z91.number(),
3444
+ description: z91.string().optional(),
3445
+ isUsingVpn: z91.boolean().optional()
3418
3446
  });
3419
3447
  var DataSourceRemote = z91.discriminatedUnion("type", [
3420
3448
  DataSourceFigmaRemote,
@@ -4622,8 +4650,7 @@ var DocumentationPageRoom = Entity.extend({
4622
4650
  isDirty: z161.boolean()
4623
4651
  });
4624
4652
  var DocumentationPageRoomState = z161.object({
4625
- pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
4626
- itemConfiguration: DocumentationItemConfigurationV2
4653
+ pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
4627
4654
  });
4628
4655
  var DocumentationPageRoomRoomUpdate = z161.object({
4629
4656
  page: DocumentationPageV2,
@@ -5623,120 +5650,156 @@ function integrationCredentialToDto(credential) {
5623
5650
  };
5624
5651
  }
5625
5652
 
5626
- // src/api/dto/aux/color.ts
5653
+ // src/api/dto/access-tokens/access-token.ts
5627
5654
  import { z as z191 } from "zod";
5628
- var DTOColorTokenInlineData = z191.object({
5629
- value: z191.string().regex(/^#[a-f0-9]{6,8}$/)
5655
+ var DTOAccessToken = z191.object({
5656
+ id: z191.string(),
5657
+ createdAt: z191.coerce.date(),
5658
+ name: z191.string(),
5659
+ scope: z191.string().optional()
5660
+ });
5661
+ var DTOAccessTokenFull = DTOAccessToken.extend({
5662
+ token: z191.string()
5663
+ });
5664
+ var DTOAccessTokenListResponse = z191.object({
5665
+ tokens: DTOAccessToken.array()
5666
+ });
5667
+ var DTOAccessTokenResponse = z191.object({
5668
+ token: DTOAccessToken
5669
+ });
5670
+ var DTOAccessTokenFullResponse = z191.object({
5671
+ token: DTOAccessTokenFull
5672
+ });
5673
+ var DTOAccessTokenCreatePayload = z191.object({
5674
+ name: z191.string(),
5675
+ scope: z191.string().optional()
5630
5676
  });
5631
5677
 
5632
- // src/api/dto/aux/meta.ts
5678
+ // src/api/dto/aux/color.ts
5633
5679
  import { z as z192 } from "zod";
5634
- var DTOObjectMeta = z192.object({
5635
- name: z192.string().max(512),
5636
- description: z192.string().max(2048).optional()
5680
+ var DTOColorTokenInlineData = z192.object({
5681
+ value: z192.string().regex(/^#[a-f0-9]{6,8}$/)
5637
5682
  });
5638
5683
 
5639
- // src/api/dto/aux/pagination.ts
5684
+ // src/api/dto/aux/meta.ts
5640
5685
  import { z as z193 } from "zod";
5641
- var DTOPagination = z193.object({
5642
- limit: z193.string().optional(),
5643
- offset: z193.string().optional()
5686
+ var DTOObjectMeta = z193.object({
5687
+ name: z193.string().max(512),
5688
+ description: z193.string().max(2048).optional()
5689
+ });
5690
+
5691
+ // src/api/dto/aux/pagination.ts
5692
+ import { z as z194 } from "zod";
5693
+ var DTOPagination = z194.object({
5694
+ limit: z194.string().optional(),
5695
+ offset: z194.string().optional()
5644
5696
  });
5645
5697
 
5646
5698
  // src/api/dto/bff/app-bootstrap-data.ts
5647
- import { z as z233 } from "zod";
5699
+ import { z as z235 } from "zod";
5648
5700
 
5649
5701
  // src/api/dto/design-systems/brand.ts
5650
- import { z as z194 } from "zod";
5651
- var DTOBrand = z194.object({
5652
- id: z194.string(),
5653
- designSystemVersionId: z194.string(),
5654
- persistentId: z194.string(),
5702
+ import { z as z195 } from "zod";
5703
+ var DTOBrand = z195.object({
5704
+ id: z195.string(),
5705
+ designSystemVersionId: z195.string(),
5706
+ persistentId: z195.string(),
5655
5707
  meta: ObjectMeta
5656
5708
  });
5657
- var DTOBrandGetResponse = z194.object({ brand: DTOBrand });
5658
- var DTOBrandCreateResponse = z194.object({
5709
+ var DTOBrandGetResponse = z195.object({ brand: DTOBrand });
5710
+ var DTOBrandCreateResponse = z195.object({
5659
5711
  brand: DTOBrand
5660
5712
  });
5661
- var DTOBrandsListResponse = z194.object({ brands: z194.array(DTOBrand) });
5662
- var DTOBrandCreatePayload = z194.object({
5663
- persistentId: z194.string().uuid(),
5713
+ var DTOBrandsListResponse = z195.object({ brands: z195.array(DTOBrand) });
5714
+ var DTOBrandCreatePayload = z195.object({
5715
+ persistentId: z195.string().uuid(),
5664
5716
  meta: DTOObjectMeta
5665
5717
  });
5666
- var DTOBrandUpdatePayload = z194.object({
5718
+ var DTOBrandUpdatePayload = z195.object({
5667
5719
  meta: DTOObjectMeta.optional(),
5668
- persistentId: z194.string()
5720
+ persistentId: z195.string()
5669
5721
  });
5670
5722
 
5671
5723
  // src/api/dto/design-systems/code-component.ts
5672
- import { z as z195 } from "zod";
5724
+ import { z as z196 } from "zod";
5673
5725
  var DTOCodeComponentResolvedTypeKind = CodeComponentResolvedTypeKind;
5674
5726
  var DTOCodeComponentResolvedType = CodeComponentResolvedType;
5675
5727
  var DTOCodeComponentParentType = CodeComponentParentType;
5676
5728
  var DTOCodeComponentProperty = CodeComponentProperty;
5677
5729
  var DTOCodeComponent = CodeComponent;
5678
- var DTOCodeComponentResponse = z195.object({
5730
+ var DTOCodeComponentResponse = z196.object({
5679
5731
  codeComponent: DTOCodeComponent
5680
5732
  });
5681
- var DTOCodeComponentListResponse = z195.object({
5733
+ var DTOCodeComponentListResponse = z196.object({
5682
5734
  codeComponents: DTOCodeComponent.array()
5683
5735
  });
5684
- var DTOCodeComponentCreateInput = z195.object({
5685
- persistentId: z195.string(),
5686
- exportName: z195.string(),
5687
- componentPath: z195.string(),
5688
- description: z195.string(),
5689
- properties: z195.record(z195.string(), DTOCodeComponentProperty),
5690
- tags: z195.record(z195.string(), z195.string()).optional()
5736
+ var DTOCodeComponentCreateInput = z196.object({
5737
+ persistentId: z196.string(),
5738
+ exportName: z196.string(),
5739
+ componentPath: z196.string(),
5740
+ description: z196.string(),
5741
+ properties: z196.record(z196.string(), DTOCodeComponentProperty),
5742
+ tags: z196.record(z196.string(), z196.string()).nullable()
5691
5743
  });
5692
- var DTOCodeComponentsCreateInput = z195.object({
5744
+ var DTOCodeComponentsCreateInput = z196.object({
5693
5745
  codeComponents: DTOCodeComponentCreateInput.array()
5694
5746
  });
5695
5747
  var DTOCodeComponentUpsertResponse = CodeComponentUpsertResponse;
5748
+ var DTOAnalyzeCodeComponentsInPackage = AnalyzeCodeComponentsInPackage;
5749
+ var DTODependencyDefinition = DependencyDefinition;
5750
+ var DTORegistry = Registry;
5751
+ var DTOAnalyzeCodeComponentsInPackageResponse = z196.object({
5752
+ ok: z196.literal(true)
5753
+ });
5754
+ var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit({
5755
+ designSystemId: true,
5756
+ versionId: true,
5757
+ userAccessToken: true
5758
+ });
5696
5759
 
5697
5760
  // src/api/dto/design-systems/component.ts
5698
- import { z as z196 } from "zod";
5699
- var DTODesignSystemComponent = z196.object({
5700
- id: z196.string(),
5701
- persistentId: z196.string(),
5702
- designSystemVersionId: z196.string(),
5703
- brandId: z196.string(),
5761
+ import { z as z197 } from "zod";
5762
+ var DTODesignSystemComponent = z197.object({
5763
+ id: z197.string(),
5764
+ persistentId: z197.string(),
5765
+ designSystemVersionId: z197.string(),
5766
+ brandId: z197.string(),
5704
5767
  meta: DTOObjectMeta,
5705
- createdAt: z196.coerce.date(),
5706
- updatedAt: z196.coerce.date()
5768
+ createdAt: z197.coerce.date(),
5769
+ updatedAt: z197.coerce.date()
5707
5770
  });
5708
- var DTODesignSystemComponentResponse = z196.object({
5771
+ var DTODesignSystemComponentResponse = z197.object({
5709
5772
  designSystemComponent: DTODesignSystemComponent
5710
5773
  });
5711
- var DTODesignSystemComponentListResponse = z196.object({
5774
+ var DTODesignSystemComponentListResponse = z197.object({
5712
5775
  designSystemComponents: DTODesignSystemComponent.array()
5713
5776
  });
5714
- var DTODesignSystemComponentCreateInput = z196.object({
5715
- brandId: z196.string(),
5777
+ var DTODesignSystemComponentCreateInput = z197.object({
5778
+ brandId: z197.string(),
5716
5779
  // Persistent ID,
5717
- persistentId: z196.string(),
5780
+ persistentId: z197.string(),
5718
5781
  meta: DTOObjectMeta
5719
5782
  });
5720
5783
 
5721
5784
  // src/api/dto/design-systems/contact.ts
5722
- import { z as z200 } from "zod";
5785
+ import { z as z201 } from "zod";
5723
5786
 
5724
5787
  // src/api/dto/users/authenticated-user.ts
5725
- import { z as z198 } from "zod";
5788
+ import { z as z199 } from "zod";
5726
5789
 
5727
5790
  // src/api/dto/users/user.ts
5728
- import { z as z197 } from "zod";
5729
- var DTOUserProfile = z197.object({
5730
- name: z197.string(),
5731
- nickname: z197.string().optional(),
5732
- avatar: z197.string().optional()
5733
- });
5734
- var DTOUser = z197.object({
5735
- id: z197.string(),
5736
- email: z197.string(),
5791
+ import { z as z198 } from "zod";
5792
+ var DTOUserProfile = z198.object({
5793
+ name: z198.string(),
5794
+ nickname: z198.string().optional(),
5795
+ avatar: z198.string().optional()
5796
+ });
5797
+ var DTOUser = z198.object({
5798
+ id: z198.string(),
5799
+ email: z198.string(),
5737
5800
  profile: DTOUserProfile
5738
5801
  });
5739
- var DTOUserGetResponse = z197.object({
5802
+ var DTOUserGetResponse = z198.object({
5740
5803
  user: DTOUser
5741
5804
  });
5742
5805
  var DTOUserProfileUpdate = UserProfileUpdate;
@@ -5746,17 +5809,17 @@ var DTOUserOnboardingDepartment = UserOnboardingDepartment;
5746
5809
  var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
5747
5810
  var DTOUserSource = UserSource;
5748
5811
  var DTOUserTheme = UserTheme;
5749
- var DTOUserOnboarding = z198.object({
5750
- companyName: z198.string().optional(),
5751
- numberOfPeopleInOrg: z198.string().optional(),
5752
- numberOfPeopleInDesignTeam: z198.string().optional(),
5812
+ var DTOUserOnboarding = z199.object({
5813
+ companyName: z199.string().optional(),
5814
+ numberOfPeopleInOrg: z199.string().optional(),
5815
+ numberOfPeopleInDesignTeam: z199.string().optional(),
5753
5816
  department: DTOUserOnboardingDepartment.optional(),
5754
- jobTitle: z198.string().optional(),
5755
- phase: z198.string().optional(),
5817
+ jobTitle: z199.string().optional(),
5818
+ phase: z199.string().optional(),
5756
5819
  jobLevel: DTOUserOnboardingJobLevel.optional(),
5757
- designSystemName: z198.string().optional(),
5758
- defaultDestination: z198.string().optional(),
5759
- isPageDraftOnboardingFinished: z198.boolean().optional()
5820
+ designSystemName: z199.string().optional(),
5821
+ defaultDestination: z199.string().optional(),
5822
+ isPageDraftOnboardingFinished: z199.boolean().optional()
5760
5823
  });
5761
5824
  var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
5762
5825
  onboarding: DTOUserOnboarding.optional(),
@@ -5764,178 +5827,189 @@ var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
5764
5827
  });
5765
5828
  var DTOAuthenticatedUser = DTOUser.extend({
5766
5829
  profile: DTOAuthenticatedUserProfile,
5767
- createdAt: z198.coerce.date(),
5768
- loggedOutAt: z198.coerce.date().optional(),
5830
+ createdAt: z199.coerce.date(),
5831
+ loggedOutAt: z199.coerce.date().optional(),
5769
5832
  source: DTOUserSource.optional()
5770
5833
  });
5771
- var DTOAuthenticatedUserResponse = z198.object({
5834
+ var DTOAuthenticatedUserResponse = z199.object({
5772
5835
  user: DTOAuthenticatedUser
5773
5836
  });
5774
5837
 
5775
5838
  // src/api/dto/users/update.ts
5776
- import { z as z199 } from "zod";
5777
- var DTOUserProfileUpdateResponse = z199.object({
5839
+ import { z as z200 } from "zod";
5840
+ var DTOUserProfileUpdateResponse = z200.object({
5778
5841
  user: User
5779
5842
  });
5780
5843
 
5781
5844
  // src/api/dto/design-systems/contact.ts
5782
- var DTODesignSystemContactsResponse = z200.object({
5783
- contacts: z200.object({
5784
- workspace: z200.array(DTOUser),
5785
- designSystem: z200.array(DTOUser)
5845
+ var DTODesignSystemContactsResponse = z201.object({
5846
+ contacts: z201.object({
5847
+ workspace: z201.array(DTOUser),
5848
+ designSystem: z201.array(DTOUser)
5786
5849
  })
5787
5850
  });
5788
5851
 
5789
5852
  // src/api/dto/design-systems/data-source.ts
5790
- import { z as z201 } from "zod";
5853
+ import { z as z202 } from "zod";
5791
5854
  var DTODataSourceFigmaScope = DataSourceFigmaScope;
5792
- var DTODataSourceFigmaFileVersion = z201.object({
5793
- id: z201.string(),
5794
- created_at: z201.coerce.date(),
5795
- label: z201.string(),
5796
- description: z201.string()
5797
- });
5798
- var DTODataSourceFigmaCloud = z201.object({
5799
- fileId: z201.string(),
5855
+ var DTODataSourceFigmaFileVersion = z202.object({
5856
+ id: z202.string(),
5857
+ created_at: z202.coerce.date(),
5858
+ label: z202.string(),
5859
+ description: z202.string()
5860
+ });
5861
+ var DTODataSourceFigmaCloud = z202.object({
5862
+ fileId: z202.string(),
5800
5863
  state: DataSourceFigmaState,
5801
5864
  autoImportMode: DataSourceAutoImportMode,
5802
- fileThumbnailUrl: z201.string().optional(),
5865
+ fileThumbnailUrl: z202.string().optional(),
5803
5866
  lastImportResult: SourceImportSummary.nullish(),
5804
- lastImportedAt: z201.coerce.date().nullish(),
5867
+ lastImportedAt: z202.coerce.date().nullish(),
5805
5868
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
5806
- lastUpdatesCheckedAt: z201.date().nullish(),
5807
- ownerId: z201.string(),
5808
- ownerUserName: z201.string().optional(),
5809
- preferredCredentialId: z201.string().optional(),
5869
+ lastUpdatesCheckedAt: z202.date().nullish(),
5870
+ ownerId: z202.string(),
5871
+ ownerUserName: z202.string().optional(),
5872
+ preferredCredentialId: z202.string().optional(),
5810
5873
  stats: DataSourceStats
5811
5874
  });
5812
- var DTODataSourceFigma = z201.object({
5813
- id: z201.string(),
5814
- type: z201.literal(DataSourceRemoteType.Enum.Figma),
5815
- fileName: z201.string(),
5875
+ var DTODataSourceFigma = z202.object({
5876
+ id: z202.string(),
5877
+ type: z202.literal(DataSourceRemoteType.Enum.Figma),
5878
+ fileName: z202.string(),
5816
5879
  scope: DTODataSourceFigmaScope,
5817
- brandId: z201.string(),
5818
- themeId: z201.string().nullish(),
5880
+ brandId: z202.string(),
5881
+ themeId: z202.string().nullish(),
5819
5882
  cloud: DTODataSourceFigmaCloud.nullish(),
5820
- sortOrder: z201.number().optional()
5821
- });
5822
- var DTODataSourceTokenStudio = z201.object({
5823
- id: z201.string(),
5824
- type: z201.literal(DataSourceRemoteType.Enum.TokenStudio),
5825
- fileName: z201.string(),
5826
- brandId: z201.string(),
5827
- themeId: z201.string().nullish(),
5828
- sortOrder: z201.number().optional(),
5829
- tokenStudio: z201.object({
5830
- settings: z201.object({
5831
- dryRun: z201.boolean(),
5832
- verbose: z201.boolean(),
5833
- preciseCopy: z201.boolean()
5883
+ sortOrder: z202.number().optional()
5884
+ });
5885
+ var DTODataSourceTokenStudio = z202.object({
5886
+ id: z202.string(),
5887
+ type: z202.literal(DataSourceRemoteType.Enum.TokenStudio),
5888
+ fileName: z202.string(),
5889
+ brandId: z202.string(),
5890
+ themeId: z202.string().nullish(),
5891
+ sortOrder: z202.number().optional(),
5892
+ tokenStudio: z202.object({
5893
+ settings: z202.object({
5894
+ dryRun: z202.boolean(),
5895
+ verbose: z202.boolean(),
5896
+ preciseCopy: z202.boolean()
5834
5897
  }),
5835
- connectionName: z201.string(),
5836
- lastImportedAt: z201.coerce.date(),
5837
- lastImportedResults: z201.array(
5838
- z201.object({
5839
- mapping: z201.object({
5840
- tokenSets: z201.array(z201.string()),
5841
- supernovaBrand: z201.string(),
5842
- supernovaTheme: z201.string().optional()
5898
+ connectionName: z202.string(),
5899
+ lastImportedAt: z202.coerce.date(),
5900
+ lastImportedResults: z202.array(
5901
+ z202.object({
5902
+ mapping: z202.object({
5903
+ tokenSets: z202.array(z202.string()),
5904
+ supernovaBrand: z202.string(),
5905
+ supernovaTheme: z202.string().optional()
5843
5906
  }),
5844
- isFailed: z201.boolean(),
5845
- tokensCreated: z201.number(),
5846
- tokensDeleted: z201.number(),
5847
- tokensUpdated: z201.number()
5907
+ isFailed: z202.boolean(),
5908
+ tokensCreated: z202.number(),
5909
+ tokensDeleted: z202.number(),
5910
+ tokensUpdated: z202.number()
5848
5911
  })
5849
5912
  )
5850
5913
  })
5851
5914
  });
5852
- var DTODataSourceFigmaVariablesPlugin = z201.object({
5853
- id: z201.string(),
5854
- type: z201.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5855
- fileName: z201.string(),
5856
- brandId: z201.string(),
5857
- sortOrder: z201.number().optional(),
5858
- upload: z201.object({
5859
- remoteId: z201.string(),
5915
+ var DTODataSourceFigmaVariablesPlugin = z202.object({
5916
+ id: z202.string(),
5917
+ type: z202.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
5918
+ fileName: z202.string(),
5919
+ brandId: z202.string(),
5920
+ sortOrder: z202.number().optional(),
5921
+ upload: z202.object({
5922
+ remoteId: z202.string(),
5860
5923
  remoteSourceType: DataSourceUploadRemoteSource,
5861
- lastImportedAt: z201.coerce.date().optional(),
5924
+ lastImportedAt: z202.coerce.date().optional(),
5862
5925
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5863
- isTokenTypeSplitEnabled: z201.boolean()
5926
+ isTokenTypeSplitEnabled: z202.boolean()
5864
5927
  }),
5865
- figmaVariablesPlugin: z201.object({
5866
- fileId: z201.string(),
5867
- lastImportedAt: z201.coerce.date().optional(),
5928
+ figmaVariablesPlugin: z202.object({
5929
+ fileId: z202.string(),
5930
+ lastImportedAt: z202.coerce.date().optional(),
5868
5931
  lastImportMetadata: DataSourceUploadImportMetadata.optional(),
5869
- isTokenTypeSplitEnabled: z201.boolean(),
5870
- isCollectionsMigrationCompleted: z201.boolean().default(false)
5932
+ isTokenTypeSplitEnabled: z202.boolean(),
5933
+ isCollectionsMigrationCompleted: z202.boolean().default(false)
5871
5934
  })
5872
5935
  });
5873
- var DTODataSourceStorybook = z201.object({
5874
- id: z201.string(),
5875
- type: z201.literal(DataSourceRemoteType.Enum.Storybook),
5876
- fileName: z201.string(),
5877
- brandId: z201.string(),
5878
- sortOrder: z201.number().optional(),
5879
- storybook: z201.object({
5880
- indexUrl: z201.string(),
5881
- userUrl: z201.string(),
5882
- lastImportedAt: z201.coerce.date().optional(),
5883
- lastImportedSuccessfully: z201.coerce.date().optional(),
5884
- isFailed: z201.boolean(),
5885
- storiesCount: z201.number(),
5886
- docsCount: z201.number()
5936
+ var DTODataSourceStorybook = z202.object({
5937
+ id: z202.string(),
5938
+ type: z202.literal(DataSourceRemoteType.Enum.Storybook),
5939
+ fileName: z202.string(),
5940
+ brandId: z202.string(),
5941
+ sortOrder: z202.number().optional(),
5942
+ storybook: z202.object({
5943
+ indexUrl: z202.string(),
5944
+ userUrl: z202.string(),
5945
+ lastImportedAt: z202.coerce.date().optional(),
5946
+ lastImportedResult: SourceImportStorybookSummary.optional(),
5947
+ lastImportedSuccessfully: z202.coerce.date().optional(),
5948
+ isFailed: z202.boolean(),
5949
+ storiesCount: z202.number(),
5950
+ docsCount: z202.number(),
5951
+ description: z202.string().optional(),
5952
+ isUsingVpn: z202.boolean().optional()
5887
5953
  })
5888
5954
  });
5889
- var DTODataSourcesStorybookResponse = z201.object({
5890
- isFailed: z201.boolean(),
5891
- storiesCount: z201.number(),
5892
- docsCount: z201.number(),
5893
- created: z201.array(z201.string()).optional(),
5894
- updated: z201.array(z201.string()).optional(),
5895
- deleted: z201.array(z201.string()).optional()
5955
+ var DTODataSourcesStorybookResponse = z202.object({
5956
+ isFailed: z202.boolean(),
5957
+ storiesCount: z202.number(),
5958
+ docsCount: z202.number(),
5959
+ created: z202.array(z202.string()).optional(),
5960
+ updated: z202.array(z202.string()).optional(),
5961
+ deleted: z202.array(z202.string()).optional()
5896
5962
  });
5897
- var DTODataSource = z201.discriminatedUnion("type", [
5963
+ var DTODataSource = z202.discriminatedUnion("type", [
5898
5964
  DTODataSourceFigma,
5899
5965
  DTODataSourceFigmaVariablesPlugin,
5900
5966
  DTODataSourceTokenStudio,
5901
5967
  DTODataSourceStorybook
5902
5968
  ]);
5903
- var DTODataSourcesListResponse = z201.object({
5904
- sources: z201.array(DTODataSource)
5969
+ var DTODataSourcesListResponse = z202.object({
5970
+ sources: z202.array(DTODataSource)
5905
5971
  });
5906
- var DTODataSourceResponse = z201.object({
5972
+ var DTODataSourceResponse = z202.object({
5907
5973
  source: DTODataSource
5908
5974
  });
5909
- var DTODataSourceFigmaCreatePayload = z201.object({
5910
- brandPersistentId: z201.string(),
5911
- figmaFileUrl: z201.string(),
5975
+ var DTODataSourceFigmaCreatePayload = z202.object({
5976
+ brandPersistentId: z202.string(),
5977
+ figmaFileUrl: z202.string(),
5912
5978
  scope: DTODataSourceFigmaScope,
5913
5979
  autoImportMode: DataSourceAutoImportMode
5914
5980
  });
5915
- var DTODataSourceFigmaImportPayload = z201.object({
5916
- sourceIds: z201.array(z201.string())
5981
+ var DTODataSourceFigmaImportPayload = z202.object({
5982
+ sourceIds: z202.array(z202.string())
5983
+ });
5984
+ var DTODataSourceStorybookCreatePayload = z202.object({
5985
+ brandPersistentId: z202.string(),
5986
+ fileName: z202.string().optional(),
5987
+ userUrl: z202.string(),
5988
+ indexUrl: z202.string(),
5989
+ payload: z202.unknown(),
5990
+ type: z202.literal(DataSourceRemoteType.Enum.Storybook),
5991
+ description: z202.string().optional(),
5992
+ isUsingVpn: z202.boolean().optional()
5917
5993
  });
5918
- var DTODataSourceStorybookCreatePayload = z201.object({
5919
- brandPersistentId: z201.string(),
5920
- userUrl: z201.string(),
5921
- indexUrl: z201.string(),
5922
- payload: z201.unknown(),
5923
- type: z201.literal(DataSourceRemoteType.Enum.Storybook)
5994
+ var DTOStorybookImportPayload = z202.object({
5995
+ sourceId: z202.string(),
5996
+ payload: z202.unknown()
5924
5997
  });
5925
- var DTOStorybookImportPayload = z201.object({
5926
- sourceId: z201.string(),
5927
- payload: z201.unknown()
5998
+ var DTOStorybookSourceUpdatePayload = z202.object({
5999
+ description: z202.string().nullish().optional(),
6000
+ isUsingVpn: z202.boolean().optional(),
6001
+ fileName: z202.string().optional()
5928
6002
  });
5929
6003
 
5930
6004
  // src/api/dto/design-systems/design-system.ts
5931
- import { z as z204 } from "zod";
6005
+ import { z as z205 } from "zod";
5932
6006
 
5933
6007
  // src/api/dto/design-systems/members.ts
5934
- import { z as z203 } from "zod";
6008
+ import { z as z204 } from "zod";
5935
6009
 
5936
6010
  // src/api/dto/design-systems/role.ts
5937
- import { z as z202 } from "zod";
5938
- var DTODesignSystemRole = z202.enum([
6011
+ import { z as z203 } from "zod";
6012
+ var DTODesignSystemRole = z203.enum([
5939
6013
  WorkspaceRole.Admin,
5940
6014
  WorkspaceRole.Contributor,
5941
6015
  WorkspaceRole.Creator,
@@ -5943,29 +6017,29 @@ var DTODesignSystemRole = z202.enum([
5943
6017
  ]);
5944
6018
 
5945
6019
  // src/api/dto/design-systems/members.ts
5946
- var DTODesignSystemMember = z203.object({
5947
- userId: z203.string(),
6020
+ var DTODesignSystemMember = z204.object({
6021
+ userId: z204.string(),
5948
6022
  /**
5949
6023
  * Role that the member has in the design system,
5950
6024
  * undefined if set to inherit from workspace
5951
6025
  */
5952
6026
  designSystemRole: DTODesignSystemRole.optional()
5953
6027
  });
5954
- var DTODesignSystemInvitation = z203.object({
5955
- id: z203.string(),
5956
- workspaceInvitationId: z203.string(),
6028
+ var DTODesignSystemInvitation = z204.object({
6029
+ id: z204.string(),
6030
+ workspaceInvitationId: z204.string(),
5957
6031
  /**
5958
6032
  * Role that the invitation has in the design system,
5959
6033
  * undefined if set to inherit from workspace
5960
6034
  */
5961
6035
  designSystemRole: DTODesignSystemRole.optional()
5962
6036
  });
5963
- var DTODesignSystemMemberListResponse = z203.object({
6037
+ var DTODesignSystemMemberListResponse = z204.object({
5964
6038
  members: DTODesignSystemMember.array(),
5965
6039
  invitations: DTODesignSystemInvitation.array()
5966
6040
  });
5967
- var DTODesignSystemMembersUpdateResponse = z203.object({
5968
- ok: z203.literal(true)
6041
+ var DTODesignSystemMembersUpdateResponse = z204.object({
6042
+ ok: z204.literal(true)
5969
6043
  });
5970
6044
  var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
5971
6045
 
@@ -5976,14 +6050,14 @@ var DTODesignSystem = DesignSystem.omit({
5976
6050
  docExporterId: true
5977
6051
  }).extend({
5978
6052
  meta: ObjectMeta,
5979
- docExporterId: z204.string(),
5980
- sources: z204.array(z204.any()),
5981
- isPublic: z204.literal(true),
6053
+ docExporterId: z205.string(),
6054
+ sources: z205.array(z205.any()),
6055
+ isPublic: z205.literal(true),
5982
6056
  /**
5983
6057
  * Whether or not user who is requesting the design system
5984
6058
  * has access to the design system's contents.
5985
6059
  */
5986
- isAvailableToUser: z204.boolean(),
6060
+ isAvailableToUser: z205.boolean(),
5987
6061
  /**
5988
6062
  * @deprecated
5989
6063
  */
@@ -5994,17 +6068,17 @@ var DTODesignSystem = DesignSystem.omit({
5994
6068
  */
5995
6069
  effectiveRole: DTODesignSystemRole.optional()
5996
6070
  });
5997
- var DTODesignSystemResponse = z204.object({
6071
+ var DTODesignSystemResponse = z205.object({
5998
6072
  designSystem: DTODesignSystem
5999
6073
  });
6000
- var DTODesignSystemsListResponse = z204.object({
6074
+ var DTODesignSystemsListResponse = z205.object({
6001
6075
  designSystems: DTODesignSystem.array()
6002
6076
  });
6003
- var DTODesignSystemCreateInput = z204.object({
6004
- workspaceId: z204.string(),
6077
+ var DTODesignSystemCreateInput = z205.object({
6078
+ workspaceId: z205.string(),
6005
6079
  meta: ObjectMeta.optional(),
6006
- name: z204.string().min(2).max(64).optional(),
6007
- description: z204.string().max(1024).optional(),
6080
+ name: z205.string().min(2).max(64).optional(),
6081
+ description: z205.string().max(1024).optional(),
6008
6082
  accessMode: DesignSystemAccessMode.optional(),
6009
6083
  invites: DTODesignSystemMembersUpdatePayload.pick({
6010
6084
  usersToInvite: true,
@@ -6014,20 +6088,20 @@ var DTODesignSystemCreateInput = z204.object({
6014
6088
  });
6015
6089
 
6016
6090
  // src/api/dto/design-systems/elements-diff.ts
6017
- import { z as z205 } from "zod";
6018
- var DTODiffCountBase = z205.object({
6019
- created: z205.number(),
6020
- updated: z205.number(),
6021
- deleted: z205.number()
6091
+ import { z as z206 } from "zod";
6092
+ var DTODiffCountBase = z206.object({
6093
+ created: z206.number(),
6094
+ updated: z206.number(),
6095
+ deleted: z206.number()
6022
6096
  });
6023
- var DTODesignElementsDataDiffResponse = z205.object({
6097
+ var DTODesignElementsDataDiffResponse = z206.object({
6024
6098
  tokens: DTODiffCountBase,
6025
6099
  assets: DTODiffCountBase
6026
6100
  });
6027
6101
 
6028
6102
  // src/api/dto/design-systems/figma-variables.ts
6029
- import { z as z206 } from "zod";
6030
- var DimensionsVariableScopeSchema = z206.enum([
6103
+ import { z as z207 } from "zod";
6104
+ var DimensionsVariableScopeSchema = z207.enum([
6031
6105
  "CORNER_RADIUS",
6032
6106
  "WIDTH_HEIGHT",
6033
6107
  "GAP",
@@ -6041,181 +6115,385 @@ var DimensionsVariableScopeSchema = z206.enum([
6041
6115
  "PARAGRAPH_INDENT",
6042
6116
  "FONT_WEIGHT"
6043
6117
  ]);
6044
- var StringVariableScopeSchema = z206.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
6118
+ var StringVariableScopeSchema = z207.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
6045
6119
  var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
6046
6120
  var StringVariableScopeType = StringVariableScopeSchema.enum;
6047
- var VariableScope = z206.string();
6048
- var ReferencedVariableOrigin = z206.object({
6049
- name: z206.string(),
6050
- remote: z206.boolean()
6121
+ var VariableScope = z207.string();
6122
+ var ReferencedVariableOrigin = z207.object({
6123
+ name: z207.string(),
6124
+ remote: z207.boolean()
6051
6125
  });
6052
- var RGB = z206.object({
6053
- r: z206.number(),
6054
- g: z206.number(),
6055
- b: z206.number()
6126
+ var RGB = z207.object({
6127
+ r: z207.number(),
6128
+ g: z207.number(),
6129
+ b: z207.number()
6056
6130
  });
6057
6131
  var RGBA = RGB.extend({
6058
- a: z206.number()
6059
- });
6060
- var VariableAlias = z206.object({
6061
- type: z206.literal("VARIABLE_ALIAS"),
6062
- id: z206.string(),
6063
- resolvedValue: z206.boolean().or(z206.number()).or(z206.string()).or(RGBA).or(RGB).optional(),
6064
- referenceOrigin: ReferencedVariableOrigin.optional().or(z206.null())
6065
- });
6066
- var VariableValue = z206.boolean().or(z206.number()).or(z206.string()).or(RGBA).or(RGB).or(VariableAlias);
6067
- var ResolvedVariableType = z206.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
6068
- var Variable = z206.object({
6069
- id: z206.string(),
6070
- name: z206.string(),
6071
- key: z206.string(),
6072
- variableCollectionId: z206.string(),
6132
+ a: z207.number()
6133
+ });
6134
+ var VariableAlias = z207.object({
6135
+ type: z207.literal("VARIABLE_ALIAS"),
6136
+ id: z207.string(),
6137
+ resolvedValue: z207.boolean().or(z207.number()).or(z207.string()).or(RGBA).or(RGB).optional(),
6138
+ referenceOrigin: ReferencedVariableOrigin.optional().or(z207.null())
6139
+ });
6140
+ var VariableValue = z207.boolean().or(z207.number()).or(z207.string()).or(RGBA).or(RGB).or(VariableAlias);
6141
+ var ResolvedVariableType = z207.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
6142
+ var Variable = z207.object({
6143
+ id: z207.string(),
6144
+ name: z207.string(),
6145
+ key: z207.string(),
6146
+ variableCollectionId: z207.string(),
6073
6147
  resolvedType: ResolvedVariableType,
6074
- valuesByMode: z206.record(VariableValue),
6075
- remote: z206.boolean(),
6076
- description: z206.string(),
6077
- hiddenFromPublishing: z206.boolean(),
6078
- scopes: z206.array(VariableScope),
6079
- codeSyntax: z206.record(z206.any()).optional()
6080
- });
6081
- var VariableMode = z206.object({
6082
- modeId: z206.string(),
6083
- name: z206.string()
6084
- });
6085
- var Collection2 = z206.object({
6086
- id: z206.string(),
6087
- name: z206.string(),
6088
- modes: z206.array(VariableMode),
6089
- defaultModeId: z206.string(),
6090
- remote: z206.boolean(),
6091
- hiddenFromPublishing: z206.boolean()
6092
- });
6093
- var VariablesMapping = z206.object({
6094
- variableCollections: z206.array(z206.string()).min(1),
6095
- variableMode: z206.string().min(1),
6096
- supernovaBrand: z206.string().min(1),
6097
- supernovaTheme: z206.string().min(1).optional().or(z206.null())
6098
- });
6099
- var FormattedCollections = z206.object({
6100
- variables: z206.record(z206.string(), Variable),
6101
- variableCollections: z206.record(z206.string(), Collection2),
6102
- mappings: z206.array(VariablesMapping).optional(),
6103
- variablesOrder: z206.string().array().optional()
6148
+ valuesByMode: z207.record(VariableValue),
6149
+ remote: z207.boolean(),
6150
+ description: z207.string(),
6151
+ hiddenFromPublishing: z207.boolean(),
6152
+ scopes: z207.array(VariableScope),
6153
+ codeSyntax: z207.record(z207.any()).optional()
6154
+ });
6155
+ var VariableMode = z207.object({
6156
+ modeId: z207.string(),
6157
+ name: z207.string()
6158
+ });
6159
+ var Collection2 = z207.object({
6160
+ id: z207.string(),
6161
+ name: z207.string(),
6162
+ modes: z207.array(VariableMode),
6163
+ defaultModeId: z207.string(),
6164
+ remote: z207.boolean(),
6165
+ hiddenFromPublishing: z207.boolean()
6166
+ });
6167
+ var VariablesMapping = z207.object({
6168
+ variableCollections: z207.array(z207.string()).min(1),
6169
+ variableMode: z207.string().min(1),
6170
+ supernovaBrand: z207.string().min(1),
6171
+ supernovaTheme: z207.string().min(1).optional().or(z207.null())
6172
+ });
6173
+ var FormattedCollections = z207.object({
6174
+ variables: z207.record(z207.string(), Variable),
6175
+ variableCollections: z207.record(z207.string(), Collection2),
6176
+ mappings: z207.array(VariablesMapping).optional(),
6177
+ variablesOrder: z207.string().array().optional()
6104
6178
  });
6105
6179
 
6106
6180
  // src/api/dto/design-systems/import-job.ts
6107
- import { z as z207 } from "zod";
6108
- var DTOImportJob = z207.object({
6109
- id: z207.string(),
6110
- designSystemId: z207.string(),
6111
- designSystemVersionId: z207.string(),
6112
- operation: z207.literal("Import"),
6113
- createdAt: z207.coerce.date(),
6114
- stateChangedAt: z207.coerce.date(),
6181
+ import { z as z208 } from "zod";
6182
+ var DTOImportJob = z208.object({
6183
+ id: z208.string(),
6184
+ designSystemId: z208.string(),
6185
+ designSystemVersionId: z208.string(),
6186
+ operation: z208.literal("Import"),
6187
+ createdAt: z208.coerce.date(),
6188
+ stateChangedAt: z208.coerce.date(),
6115
6189
  state: ImportJobState,
6116
- sourceIds: z207.string().array()
6190
+ sourceIds: z208.string().array()
6117
6191
  });
6118
- var DTOImportJobResponse = z207.object({
6192
+ var DTOImportJobResponse = z208.object({
6119
6193
  job: DTOImportJob
6120
6194
  });
6121
- var DTOBffFigmaImportRequestBody = z207.object({
6122
- type: z207.literal(DataSourceRemoteType.Enum.Figma),
6123
- brandPersistentId: z207.string().optional(),
6124
- fileId: z207.string(),
6195
+ var DTOBffFigmaImportRequestBody = z208.object({
6196
+ type: z208.literal(DataSourceRemoteType.Enum.Figma),
6197
+ brandPersistentId: z208.string().optional(),
6198
+ fileId: z208.string(),
6125
6199
  scope: DataSourceFigmaScope,
6126
6200
  autoImportMode: DataSourceAutoImportMode
6127
6201
  });
6128
- var DTOBffUploadImportRequestBody = z207.object({
6129
- type: z207.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
6130
- brandPersistentId: z207.string().optional(),
6131
- sourceName: z207.string().optional(),
6132
- remoteId: z207.string(),
6133
- isTokenTypeSplitEnabled: z207.boolean().optional(),
6134
- payload: z207.any()
6202
+ var DTOBffUploadImportRequestBody = z208.object({
6203
+ type: z208.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
6204
+ brandPersistentId: z208.string().optional(),
6205
+ sourceName: z208.string().optional(),
6206
+ remoteId: z208.string(),
6207
+ isTokenTypeSplitEnabled: z208.boolean().optional(),
6208
+ payload: z208.any()
6135
6209
  });
6136
- var DTOBffImportRequestBody = z207.discriminatedUnion("type", [
6210
+ var DTOBffImportRequestBody = z208.discriminatedUnion("type", [
6137
6211
  DTOBffFigmaImportRequestBody,
6138
6212
  DTOBffUploadImportRequestBody
6139
6213
  ]);
6140
6214
 
6141
6215
  // src/api/dto/design-systems/redirects.ts
6142
- import { z as z208 } from "zod";
6143
- var DTOPageRedirectCreateBody = z208.object({
6144
- pagePersistentId: z208.string(),
6145
- path: z208.string()
6216
+ import { z as z209 } from "zod";
6217
+ var DTOPageRedirectCreateBody = z209.object({
6218
+ pagePersistentId: z209.string(),
6219
+ path: z209.string()
6146
6220
  });
6147
6221
  var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
6148
- var DTOPageRedirect = z208.object({
6149
- id: z208.string(),
6150
- pagePersistentId: z208.string(),
6151
- path: z208.string()
6222
+ var DTOPageRedirect = z209.object({
6223
+ id: z209.string(),
6224
+ pagePersistentId: z209.string(),
6225
+ path: z209.string()
6152
6226
  });
6153
- var DTOPageRedirectListResponse = z208.object({
6227
+ var DTOPageRedirectListResponse = z209.object({
6154
6228
  redirects: DTOPageRedirect.array()
6155
6229
  });
6156
- var DTOPageRedirectResponse = z208.object({
6230
+ var DTOPageRedirectResponse = z209.object({
6157
6231
  redirect: DTOPageRedirect
6158
6232
  });
6159
- var DTOPageRedirectDeleteResponse = z208.object({
6160
- success: z208.boolean()
6233
+ var DTOPageRedirectDeleteResponse = z209.object({
6234
+ success: z209.boolean()
6161
6235
  });
6162
6236
 
6163
6237
  // src/api/dto/design-systems/stats.ts
6164
- import { z as z209 } from "zod";
6165
- var DTODesignSystemVersionStats = z209.object({
6166
- tokens: z209.number(),
6167
- designSystemComponents: z209.number(),
6168
- assets: z209.number(),
6169
- documentationPages: z209.number(),
6170
- figmaComponents: z209.number()
6171
- });
6172
- var DTODesignSystemVersionStatsQuery = z209.object({
6238
+ import { z as z210 } from "zod";
6239
+ var DTODesignSystemVersionStats = z210.object({
6240
+ tokens: z210.number(),
6241
+ designSystemComponents: z210.number(),
6242
+ assets: z210.number(),
6243
+ documentationPages: z210.number(),
6244
+ figmaComponents: z210.number()
6245
+ });
6246
+ var DTODesignSystemVersionStatsQuery = z210.object({
6173
6247
  /**
6174
6248
  * Unique ID across versions (non-persistent ID)
6175
6249
  */
6176
- brandId: z209.string().optional()
6250
+ brandId: z210.string().optional()
6177
6251
  });
6178
6252
 
6179
6253
  // src/api/dto/design-systems/storybook.ts
6180
- import { z as z210 } from "zod";
6181
- var DTOStorybookEntryOrigin = z210.object({
6182
- id: z210.string(),
6183
- type: z210.enum(["story", "docs"]),
6184
- name: z210.string(),
6185
- title: z210.string()
6186
- });
6187
- var DTOStorybookEntry = z210.object({
6188
- id: z210.string(),
6189
- storyId: z210.string(),
6190
- designSystemId: z210.string(),
6191
- sourceId: z210.string(),
6192
- aliases: z210.array(z210.string()).optional(),
6193
- url: z210.string(),
6194
- isDeleted: z210.boolean().optional(),
6254
+ import { z as z211 } from "zod";
6255
+ var DTOStorybookUploadUrlRequest = z211.object({
6256
+ name: z211.string()
6257
+ });
6258
+ var DTOStorybookUploadUrlResponse = z211.object({
6259
+ signedUrl: z211.string(),
6260
+ storybookUploadId: z211.string()
6261
+ });
6262
+ var DTOStorybookAccessTokenResponse = z211.object({
6263
+ accessToken: z211.string()
6264
+ });
6265
+ var DTOStorybookAccessTokenPayload = z211.object({
6266
+ designSystemId: z211.string(),
6267
+ storybookUploadId: z211.string()
6268
+ });
6269
+ var DTOStorybookUploadStatus = z211.object({
6270
+ status: z211.enum(["Failed", "InProgress", "Completed", "Unknown"]),
6271
+ timestamp: z211.number().optional(),
6272
+ reason: z211.string().optional()
6273
+ });
6274
+ var DTOStorybookEntryOrigin = z211.object({
6275
+ id: z211.string(),
6276
+ type: z211.enum(["story", "docs"]),
6277
+ name: z211.string(),
6278
+ title: z211.string()
6279
+ });
6280
+ var DTOStorybookEntry = z211.object({
6281
+ id: z211.string(),
6282
+ storyId: z211.string(),
6283
+ designSystemId: z211.string(),
6284
+ sourceId: z211.string(),
6285
+ aliases: z211.array(z211.string()).optional(),
6286
+ url: z211.string(),
6287
+ isDeleted: z211.boolean().optional(),
6195
6288
  origin: DTOStorybookEntryOrigin,
6196
- createdAt: z210.coerce.date(),
6197
- updatedAt: z210.coerce.date()
6289
+ createdAt: z211.coerce.date(),
6290
+ updatedAt: z211.coerce.date()
6291
+ });
6292
+ var DTOStorybookEntryReplaceAction = z211.object({
6293
+ newStoryId: z211.string()
6294
+ });
6295
+ var DTOStorybookEntryListResponse = z211.object({ entries: z211.array(DTOStorybookEntry) });
6296
+ var DTOStorybookEntryResponse = z211.object({ entry: DTOStorybookEntry });
6297
+
6298
+ // src/api/dto/design-systems/user-design-systems.ts
6299
+ import { z as z219 } from "zod";
6300
+
6301
+ // src/api/dto/workspaces/git.ts
6302
+ import { z as z212 } from "zod";
6303
+ var DTOGitOrganization = z212.object({
6304
+ id: z212.string(),
6305
+ name: z212.string(),
6306
+ url: z212.string(),
6307
+ slug: z212.string()
6308
+ });
6309
+ var DTOGitProject = z212.object({
6310
+ id: z212.string(),
6311
+ name: z212.string(),
6312
+ url: z212.string(),
6313
+ slug: z212.string()
6314
+ });
6315
+ var DTOGitRepository = z212.object({
6316
+ id: z212.string(),
6317
+ name: z212.string(),
6318
+ url: z212.string(),
6319
+ slug: z212.string(),
6320
+ defaultBranch: z212.string().optional()
6321
+ });
6322
+ var DTOGitBranch = z212.object({
6323
+ name: z212.string(),
6324
+ lastCommitId: z212.string()
6325
+ });
6326
+
6327
+ // src/api/dto/workspaces/integrations.ts
6328
+ import { z as z213 } from "zod";
6329
+ var DTOIntegrationCredentials = IntegrationCredentials.omit({
6330
+ accessToken: true,
6331
+ refreshToken: true
6332
+ });
6333
+ var DTOIntegration = z213.object({
6334
+ id: z213.string(),
6335
+ workspaceId: z213.string(),
6336
+ type: ExtendedIntegrationType,
6337
+ createdAt: z213.coerce.date(),
6338
+ integrationCredentials: z213.array(DTOIntegrationCredentials).optional(),
6339
+ integrationDesignSystems: z213.array(IntegrationDesignSystem).optional()
6198
6340
  });
6199
- var DTOStorybookEntryReplaceAction = z210.object({
6200
- newStoryId: z210.string()
6341
+ var DTOIntegrationOAuthGetResponse = z213.object({
6342
+ url: z213.string()
6343
+ });
6344
+ var DTOIntegrationPostResponse = z213.object({
6345
+ integration: DTOIntegration
6346
+ });
6347
+ var DTOIntegrationsGetListResponse = z213.object({
6348
+ integrations: DTOIntegration.array()
6349
+ });
6350
+
6351
+ // src/api/dto/workspaces/invitations.ts
6352
+ import { z as z214 } from "zod";
6353
+ var DTOWorkspaceInvitationInput = z214.object({
6354
+ email: z214.string().email(),
6355
+ role: WorkspaceRoleSchema
6356
+ });
6357
+ var DTOWorkspaceInvitationsListInput = z214.object({
6358
+ invites: DTOWorkspaceInvitationInput.array().max(100),
6359
+ designSystemId: z214.string().optional()
6360
+ });
6361
+ var DTOWorkspaceInvitationsResponse = z214.object({
6362
+ invitations: WorkspaceInvitation.array()
6363
+ });
6364
+ var DTOWorkspaceInviteUpdate = z214.object({
6365
+ role: WorkspaceRoleSchema
6366
+ });
6367
+ var DTOWorkspaceInvitationUpdateResponse = z214.object({
6368
+ invitation: WorkspaceInvitation
6369
+ });
6370
+
6371
+ // src/api/dto/workspaces/membership.ts
6372
+ import { z as z217 } from "zod";
6373
+
6374
+ // src/api/dto/workspaces/workspace.ts
6375
+ import { z as z216 } from "zod";
6376
+
6377
+ // src/api/dto/workspaces/npm-registry.ts
6378
+ import { z as z215 } from "zod";
6379
+ var DTONpmRegistryConfigConstants = {
6380
+ passwordPlaceholder: "redacted"
6381
+ };
6382
+ var DTONpmRegistryConfig = z215.object({
6383
+ // Registry basic configuration
6384
+ registryType: NpmRegistryType,
6385
+ registryUrl: z215.string(),
6386
+ customRegistryUrl: z215.string().optional(),
6387
+ // URL of Supernova NPM packages proxy
6388
+ proxyUrl: z215.string(),
6389
+ // Auth configuration
6390
+ authType: NpmRegistryAuthType,
6391
+ accessToken: z215.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6392
+ username: z215.string().optional(),
6393
+ password: z215.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6394
+ // NPM package scopes for whih the proxy should be enabled
6395
+ enabledScopes: z215.array(z215.string()),
6396
+ // True if client should bypass Supernova proxy and connect directly to the registry
6397
+ // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
6398
+ bypassProxy: z215.boolean()
6399
+ });
6400
+ var DTONpmRegistryAccessTokenResponse = z215.object({
6401
+ version: z215.number(),
6402
+ accessToken: z215.string().optional(),
6403
+ registryUrl: z215.string()
6404
+ });
6405
+ var DTOUpdateRegistryInput = z215.object({
6406
+ registryType: nullishToOptional(NpmRegistryType),
6407
+ authType: nullishToOptional(NpmRegistryAuthType),
6408
+ enabledScopes: nullishToOptional(z215.array(z215.string())),
6409
+ customRegistryUrl: nullishToOptional(z215.string()),
6410
+ bypassProxy: nullishToOptional(z215.boolean()),
6411
+ npmProxyVersion: nullishToOptional(z215.number()),
6412
+ authHeaderName: nullishToOptional(z215.string()),
6413
+ authHeaderValue: nullishToOptional(z215.string()),
6414
+ accessToken: nullishToOptional(z215.string()),
6415
+ username: nullishToOptional(z215.string()),
6416
+ password: nullishToOptional(z215.string())
6417
+ });
6418
+ var DTOUpdateRegistryOutput = z215.object({
6419
+ npmRegistrySettings: DTONpmRegistryConfig
6420
+ });
6421
+
6422
+ // src/api/dto/workspaces/workspace.ts
6423
+ var DTOWorkspaceProfile = WorkspaceProfile;
6424
+ var DTOWorkspace = z216.object({
6425
+ id: z216.string(),
6426
+ profile: DTOWorkspaceProfile,
6427
+ subscription: Subscription,
6428
+ npmRegistry: DTONpmRegistryConfig.optional()
6429
+ });
6430
+ var DTOWorkspaceCreateInput = z216.object({
6431
+ name: z216.string()
6432
+ });
6433
+ var DTOWorkspaceResponse = z216.object({
6434
+ workspace: DTOWorkspace
6435
+ });
6436
+
6437
+ // src/api/dto/workspaces/membership.ts
6438
+ var DTOWorkspaceRole = z217.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6439
+ var DTOUserWorkspaceMembership = z217.object({
6440
+ // Workspace the user is a member of
6441
+ workspace: DTOWorkspace,
6442
+ // Assigned role the user has in the workspace
6443
+ role: DTOWorkspaceRole,
6444
+ // Role that determines actual permissions the user has in the workspace
6445
+ // E.g. this is different from the default role when editors are downgraded to viewers
6446
+ // when a workspace's subscription is downgraded to free tier
6447
+ effectiveRole: DTOWorkspaceRole
6448
+ });
6449
+ var DTOWorkspaceMember = z217.object({
6450
+ user: User,
6451
+ role: WorkspaceRoleSchema,
6452
+ effectiveRole: WorkspaceRoleSchema
6453
+ });
6454
+ var DTOUserWorkspaceMembershipsResponse = z217.object({
6455
+ membership: z217.array(DTOUserWorkspaceMembership)
6456
+ });
6457
+ var DTOWorkspaceMembersListResponse = z217.object({
6458
+ members: z217.array(DTOWorkspaceMember)
6459
+ });
6460
+
6461
+ // src/api/dto/workspaces/untyped-data.ts
6462
+ import { z as z218 } from "zod";
6463
+ var DTOWorkspaceUntypedData = WorkspaceUntypedData;
6464
+ var DTOWorkspaceUntypedDataListResponse = z218.object({
6465
+ data: DTOWorkspaceUntypedData.array()
6466
+ });
6467
+ var DTOWorkspaceUntypedDataResponse = z218.object({
6468
+ data: DTOWorkspaceUntypedData
6469
+ });
6470
+ var DTOWorkspaceUntypedDataCreatePayload = z218.object({
6471
+ value: z218.unknown()
6472
+ });
6473
+ var DTOWorkspaceUntypedDataUpdatePayload = z218.object({
6474
+ value: z218.unknown()
6475
+ });
6476
+
6477
+ // src/api/dto/design-systems/user-design-systems.ts
6478
+ var DTOUserDesignSystemsResponse = z219.object({
6479
+ designSystems: DTODesignSystem.array(),
6480
+ workspaces: DTOWorkspace.array()
6201
6481
  });
6202
- var DTOStorybookEntryListResponse = z210.object({ entries: z210.array(DTOStorybookEntry) });
6203
- var DTOStorybookEntryResponse = z210.object({ entry: DTOStorybookEntry });
6204
6482
 
6205
6483
  // src/api/dto/design-systems/version-room.ts
6206
- import { z as z211 } from "zod";
6207
- var DTODesignSystemVersionRoom = z211.object({
6208
- id: z211.string()
6484
+ import { z as z220 } from "zod";
6485
+ var DTODesignSystemVersionRoom = z220.object({
6486
+ id: z220.string()
6209
6487
  });
6210
- var DTODesignSystemVersionRoomResponse = z211.object({
6488
+ var DTODesignSystemVersionRoomResponse = z220.object({
6211
6489
  room: DTODesignSystemVersionRoom
6212
6490
  });
6213
6491
 
6214
6492
  // src/api/dto/design-systems/version.ts
6215
- import { z as z224 } from "zod";
6493
+ import { z as z233 } from "zod";
6216
6494
 
6217
6495
  // src/api/payloads/design-systems/update-design-system.ts
6218
- import { z as z212 } from "zod";
6496
+ import { z as z221 } from "zod";
6219
6497
  var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
6220
6498
  id: true,
6221
6499
  workspaceId: true,
@@ -6227,56 +6505,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
6227
6505
  }).extend({
6228
6506
  meta: ObjectMeta.partial().optional()
6229
6507
  });
6230
- var DTODesignSystemUpdateAccessModeInput = z212.object({
6508
+ var DTODesignSystemUpdateAccessModeInput = z221.object({
6231
6509
  accessMode: DesignSystemAccessMode,
6232
- retain: z212.object({
6233
- userIds: z212.string().array(),
6234
- inviteIds: z212.string().array()
6510
+ retain: z221.object({
6511
+ userIds: z221.string().array(),
6512
+ inviteIds: z221.string().array()
6235
6513
  }).optional()
6236
6514
  });
6237
6515
 
6238
6516
  // src/api/payloads/design-systems/version.ts
6239
- import { z as z213 } from "zod";
6240
- var ObjectMeta2 = z213.object({
6241
- name: z213.string().max(150).optional(),
6242
- description: z213.string().max(2e3).optional()
6517
+ import { z as z222 } from "zod";
6518
+ var ObjectMeta2 = z222.object({
6519
+ name: z222.string().max(150).optional(),
6520
+ description: z222.string().max(2e3).optional()
6243
6521
  });
6244
6522
  function validateDesignSystemVersion(version) {
6245
6523
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
6246
6524
  return urlCompliantRegex.test(version);
6247
6525
  }
6248
- var DTOCreateVersionInput = z213.object({
6526
+ var DTOCreateVersionInput = z222.object({
6249
6527
  meta: ObjectMeta2,
6250
- version: z213.string().refine(validateDesignSystemVersion, {
6528
+ version: z222.string().refine(validateDesignSystemVersion, {
6251
6529
  message: "Invalid semantic versioning format"
6252
6530
  }),
6253
- changeLog: z213.string().optional()
6531
+ changeLog: z222.string().optional()
6254
6532
  });
6255
- var DTOUpdateVersionInput = z213.object({
6533
+ var DTOUpdateVersionInput = z222.object({
6256
6534
  meta: ObjectMeta2,
6257
- version: z213.string(),
6535
+ version: z222.string(),
6258
6536
  // required for PUT, but not editable
6259
- changeLog: z213.string()
6537
+ changeLog: z222.string()
6260
6538
  });
6261
6539
 
6262
6540
  // src/api/payloads/documentation/analytics.ts
6263
- import { z as z214 } from "zod";
6264
- var DTODocumentationAnalyticsTimeFrameComparison = z214.object({
6265
- referencePeriod: z214.object({
6266
- start: z214.coerce.date(),
6267
- end: z214.coerce.date().optional()
6541
+ import { z as z223 } from "zod";
6542
+ var DTODocumentationAnalyticsTimeFrameComparison = z223.object({
6543
+ referencePeriod: z223.object({
6544
+ start: z223.coerce.date(),
6545
+ end: z223.coerce.date().optional()
6268
6546
  }),
6269
- baselinePeriod: z214.object({
6270
- start: z214.coerce.date(),
6271
- end: z214.coerce.date().optional()
6547
+ baselinePeriod: z223.object({
6548
+ start: z223.coerce.date(),
6549
+ end: z223.coerce.date().optional()
6272
6550
  })
6273
6551
  });
6274
- var DTODocumentationAnalyticsDiffPayload = z214.object({
6275
- timeFrames: z214.array(DTODocumentationAnalyticsTimeFrameComparison)
6552
+ var DTODocumentationAnalyticsDiffPayload = z223.object({
6553
+ timeFrames: z223.array(DTODocumentationAnalyticsTimeFrameComparison)
6276
6554
  });
6277
6555
 
6278
6556
  // src/api/payloads/documentation/block-definitions.ts
6279
- import { z as z215 } from "zod";
6557
+ import { z as z224 } from "zod";
6280
6558
 
6281
6559
  // src/api/dto/documentation/block-definition.ts
6282
6560
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -6288,76 +6566,76 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
6288
6566
  var DTOPageBlockDefinition = PageBlockDefinition;
6289
6567
 
6290
6568
  // src/api/payloads/documentation/block-definitions.ts
6291
- var DTOGetBlockDefinitionsOutput = z215.object({
6292
- definitions: z215.array(DTOPageBlockDefinition)
6569
+ var DTOGetBlockDefinitionsOutput = z224.object({
6570
+ definitions: z224.array(DTOPageBlockDefinition)
6293
6571
  });
6294
6572
 
6295
6573
  // src/api/payloads/documentation/design-data-doc-diff.ts
6296
- import { z as z216 } from "zod";
6297
- var DTODocumentationPublishTypeQueryParams = z216.object({
6298
- environment: z216.enum(["Live", "Preview"])
6574
+ import { z as z225 } from "zod";
6575
+ var DTODocumentationPublishTypeQueryParams = z225.object({
6576
+ environment: z225.enum(["Live", "Preview"])
6299
6577
  });
6300
6578
 
6301
6579
  // src/api/payloads/export/pipeline.ts
6302
- import { z as z218 } from "zod";
6580
+ import { z as z227 } from "zod";
6303
6581
 
6304
6582
  // src/api/dto/export/exporter-property.ts
6305
- import { z as z217 } from "zod";
6306
- var PrimitiveValue2 = z217.number().or(z217.boolean()).or(z217.string());
6307
- var ArrayValue2 = z217.array(z217.string());
6308
- var ObjectValue2 = z217.record(z217.string());
6583
+ import { z as z226 } from "zod";
6584
+ var PrimitiveValue2 = z226.number().or(z226.boolean()).or(z226.string());
6585
+ var ArrayValue2 = z226.array(z226.string());
6586
+ var ObjectValue2 = z226.record(z226.string());
6309
6587
  var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
6310
- var DTOExporterPropertyType = z217.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
6311
- var PropertyDefinitionBase2 = z217.object({
6312
- key: z217.string(),
6313
- title: z217.string(),
6314
- description: z217.string(),
6315
- category: z217.string().optional(),
6316
- dependsOn: z217.record(z217.boolean()).optional()
6317
- });
6318
- var DTOExporterPropertyDefinitionEnumOption = z217.object({
6319
- label: z217.string(),
6320
- description: z217.string()
6588
+ var DTOExporterPropertyType = z226.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
6589
+ var PropertyDefinitionBase2 = z226.object({
6590
+ key: z226.string(),
6591
+ title: z226.string(),
6592
+ description: z226.string(),
6593
+ category: z226.string().optional(),
6594
+ dependsOn: z226.record(z226.boolean()).optional()
6595
+ });
6596
+ var DTOExporterPropertyDefinitionEnumOption = z226.object({
6597
+ label: z226.string(),
6598
+ description: z226.string()
6321
6599
  });
6322
6600
  var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
6323
- type: z217.literal(DTOExporterPropertyType.Enum.Enum),
6324
- options: z217.record(DTOExporterPropertyDefinitionEnumOption),
6325
- default: z217.string()
6601
+ type: z226.literal(DTOExporterPropertyType.Enum.Enum),
6602
+ options: z226.record(DTOExporterPropertyDefinitionEnumOption),
6603
+ default: z226.string()
6326
6604
  });
6327
6605
  var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
6328
- type: z217.literal(DTOExporterPropertyType.Enum.Boolean),
6329
- default: z217.boolean()
6606
+ type: z226.literal(DTOExporterPropertyType.Enum.Boolean),
6607
+ default: z226.boolean()
6330
6608
  });
6331
6609
  var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
6332
- type: z217.literal(DTOExporterPropertyType.Enum.String),
6333
- default: z217.string(),
6334
- isMultiline: z217.boolean().optional()
6610
+ type: z226.literal(DTOExporterPropertyType.Enum.String),
6611
+ default: z226.string(),
6612
+ isMultiline: z226.boolean().optional()
6335
6613
  });
6336
6614
  var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
6337
- type: z217.literal(DTOExporterPropertyType.Enum.Number),
6338
- default: z217.number()
6615
+ type: z226.literal(DTOExporterPropertyType.Enum.Number),
6616
+ default: z226.number()
6339
6617
  });
6340
6618
  var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
6341
- type: z217.literal(DTOExporterPropertyType.Enum.Array),
6619
+ type: z226.literal(DTOExporterPropertyType.Enum.Array),
6342
6620
  default: ArrayValue2
6343
6621
  });
6344
6622
  var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
6345
- type: z217.literal(DTOExporterPropertyType.Enum.Object),
6623
+ type: z226.literal(DTOExporterPropertyType.Enum.Object),
6346
6624
  default: ObjectValue2,
6347
- allowedKeys: z217.object({
6348
- options: z217.string().array(),
6349
- type: z217.string()
6625
+ allowedKeys: z226.object({
6626
+ options: z226.string().array(),
6627
+ type: z226.string()
6350
6628
  }).optional(),
6351
- allowedValues: z217.object({
6352
- type: z217.string()
6629
+ allowedValues: z226.object({
6630
+ type: z226.string()
6353
6631
  }).optional()
6354
6632
  });
6355
6633
  var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
6356
- type: z217.literal(DTOExporterPropertyType.Enum.Code),
6357
- language: z217.string(),
6358
- default: z217.string()
6634
+ type: z226.literal(DTOExporterPropertyType.Enum.Code),
6635
+ language: z226.string(),
6636
+ default: z226.string()
6359
6637
  });
6360
- var DTOExporterPropertyDefinition = z217.discriminatedUnion("type", [
6638
+ var DTOExporterPropertyDefinition = z226.discriminatedUnion("type", [
6361
6639
  DTOExporterPropertyDefinitionEnum,
6362
6640
  DTOExporterPropertyDefinitionBoolean,
6363
6641
  DTOExporterPropertyDefinitionString,
@@ -6366,84 +6644,84 @@ var DTOExporterPropertyDefinition = z217.discriminatedUnion("type", [
6366
6644
  DTOExporterPropertyDefinitionObject,
6367
6645
  DTOExporterPropertyDefinitionCode
6368
6646
  ]);
6369
- var DTOExporterPropertyDefinitionsResponse = z217.object({
6647
+ var DTOExporterPropertyDefinitionsResponse = z226.object({
6370
6648
  properties: DTOExporterPropertyDefinition.array()
6371
6649
  });
6372
- var DTOExporterPropertyValueMap = z217.record(DTOExporterPropertyValue);
6650
+ var DTOExporterPropertyValueMap = z226.record(DTOExporterPropertyValue);
6373
6651
 
6374
6652
  // src/api/payloads/export/pipeline.ts
6375
- var GitDestinationOptions = z218.object({
6376
- branch: z218.string().min(1).optional(),
6377
- commitMessage: z218.string().min(1).optional(),
6378
- commitAuthorName: z218.string().min(1).optional(),
6379
- commitAuthorEmail: z218.string().email().optional(),
6380
- pullRequestTitle: z218.string().min(1).optional(),
6381
- pullRequestDescription: z218.string().min(1).optional(),
6382
- relativePath: z218.string().optional(),
6383
- purgeDirectory: z218.boolean().optional()
6384
- });
6385
- var DTOPipelineCreateBody = z218.object({
6386
- name: z218.string(),
6387
- exporterId: z218.string(),
6388
- designSystemId: z218.string(),
6389
- isEnabled: z218.boolean(),
6653
+ var GitDestinationOptions = z227.object({
6654
+ branch: z227.string().min(1).optional(),
6655
+ commitMessage: z227.string().min(1).optional(),
6656
+ commitAuthorName: z227.string().min(1).optional(),
6657
+ commitAuthorEmail: z227.string().email().optional(),
6658
+ pullRequestTitle: z227.string().min(1).optional(),
6659
+ pullRequestDescription: z227.string().min(1).optional(),
6660
+ relativePath: z227.string().optional(),
6661
+ purgeDirectory: z227.boolean().optional()
6662
+ });
6663
+ var DTOPipelineCreateBody = z227.object({
6664
+ name: z227.string(),
6665
+ exporterId: z227.string(),
6666
+ designSystemId: z227.string(),
6667
+ isEnabled: z227.boolean(),
6390
6668
  eventType: PipelineEventType,
6391
- brandPersistentId: z218.string().optional(),
6392
- themePersistentId: z218.string().optional(),
6393
- themePersistentIds: z218.string().array().optional(),
6669
+ brandPersistentId: z227.string().optional(),
6670
+ themePersistentId: z227.string().optional(),
6671
+ themePersistentIds: z227.string().array().optional(),
6394
6672
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
6395
6673
  destination: PipelineDestinationType.optional(),
6396
6674
  gitQuery: GitObjectsQuery,
6397
- destinations: z218.object({
6675
+ destinations: z227.object({
6398
6676
  s3: ExporterDestinationS3.nullish(),
6399
6677
  azure: ExporterDestinationAzure.nullish(),
6400
6678
  bitbucket: ExporterDestinationBitbucket.nullish(),
6401
6679
  github: ExporterDestinationGithub.nullish(),
6402
6680
  gitlab: ExporterDestinationGitlab.nullish(),
6403
6681
  documentation: ExporterDestinationDocs.nullish(),
6404
- webhookUrl: z218.string().nullish()
6682
+ webhookUrl: z227.string().nullish()
6405
6683
  })
6406
6684
  });
6407
- var DTOPipelineUpdateBody = z218.object({
6408
- exporterId: z218.string().optional(),
6409
- name: z218.string().optional(),
6410
- isEnabled: z218.boolean().optional(),
6685
+ var DTOPipelineUpdateBody = z227.object({
6686
+ exporterId: z227.string().optional(),
6687
+ name: z227.string().optional(),
6688
+ isEnabled: z227.boolean().optional(),
6411
6689
  eventType: PipelineEventType.optional(),
6412
- brandPersistentId: z218.string().optional(),
6413
- themePersistentId: z218.string().optional(),
6414
- themePersistentIds: z218.string().array().optional(),
6690
+ brandPersistentId: z227.string().optional(),
6691
+ themePersistentId: z227.string().optional(),
6692
+ themePersistentIds: z227.string().array().optional(),
6415
6693
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
6416
6694
  destination: PipelineDestinationType.optional(),
6417
6695
  gitQuery: GitObjectsQuery.optional(),
6418
- destinations: z218.object({
6696
+ destinations: z227.object({
6419
6697
  s3: ExporterDestinationS3.nullish(),
6420
6698
  azure: ExporterDestinationAzure.nullish(),
6421
6699
  bitbucket: ExporterDestinationBitbucket.nullish(),
6422
6700
  github: ExporterDestinationGithub.nullish(),
6423
6701
  gitlab: ExporterDestinationGitlab.nullish(),
6424
6702
  documentation: ExporterDestinationDocs.nullish(),
6425
- webhookUrl: z218.string().nullish()
6703
+ webhookUrl: z227.string().nullish()
6426
6704
  }).optional(),
6427
6705
  gitDestinationOptions: GitDestinationOptions.partial().optional()
6428
6706
  });
6429
- var DTOPipelineTriggerBody = z218.object({
6430
- designSystemVersionId: z218.string()
6707
+ var DTOPipelineTriggerBody = z227.object({
6708
+ designSystemVersionId: z227.string()
6431
6709
  });
6432
6710
 
6433
6711
  // src/api/payloads/liveblocks/auth.ts
6434
- import { z as z219 } from "zod";
6435
- var DTOLiveblocksAuthRequest = z219.object({
6436
- room: z219.string().optional()
6712
+ import { z as z228 } from "zod";
6713
+ var DTOLiveblocksAuthRequest = z228.object({
6714
+ room: z228.string().optional()
6437
6715
  });
6438
6716
 
6439
6717
  // src/api/payloads/users/notifications/notification-settings.ts
6440
- import { z as z220 } from "zod";
6441
- var DTOUpdateUserNotificationSettingsPayload = z220.object({
6718
+ import { z as z229 } from "zod";
6719
+ var DTOUpdateUserNotificationSettingsPayload = z229.object({
6442
6720
  notificationSettings: UserNotificationSettings
6443
6721
  });
6444
- var DTOUserNotificationSettingsResponse = z220.object({
6445
- userId: z220.string(),
6446
- workspaceId: z220.string(),
6722
+ var DTOUserNotificationSettingsResponse = z229.object({
6723
+ userId: z229.string(),
6724
+ workspaceId: z229.string(),
6447
6725
  notificationSettings: UserNotificationSettings
6448
6726
  });
6449
6727
 
@@ -6451,13 +6729,13 @@ var DTOUserNotificationSettingsResponse = z220.object({
6451
6729
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
6452
6730
 
6453
6731
  // src/api/payloads/workspaces/transfer-ownership.ts
6454
- import { z as z221 } from "zod";
6455
- var DTOTransferOwnershipPayload = z221.object({
6456
- newOwnerId: z221.string()
6732
+ import { z as z230 } from "zod";
6733
+ var DTOTransferOwnershipPayload = z230.object({
6734
+ newOwnerId: z230.string()
6457
6735
  });
6458
6736
 
6459
6737
  // src/api/payloads/workspaces/workspace-configuration.ts
6460
- import { z as z222 } from "zod";
6738
+ import { z as z231 } from "zod";
6461
6739
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
6462
6740
  function validateSsoPayload(ssoPayload) {
6463
6741
  const keys = [];
@@ -6480,21 +6758,21 @@ function validateSsoPayload(ssoPayload) {
6480
6758
  keys
6481
6759
  };
6482
6760
  }
6483
- var NpmRegistryInput = z222.object({
6484
- enabledScopes: z222.array(z222.string()),
6485
- customRegistryUrl: z222.string().optional(),
6486
- bypassProxy: z222.boolean().optional(),
6487
- npmProxyRegistryConfigId: z222.string().optional(),
6488
- npmProxyVersion: z222.number().optional(),
6489
- registryType: z222.string(),
6490
- authType: z222.string(),
6491
- authHeaderName: z222.string(),
6492
- authHeaderValue: z222.string(),
6493
- accessToken: z222.string(),
6494
- username: z222.string(),
6495
- password: z222.string()
6496
- });
6497
- var WorkspaceConfigurationPayload = z222.object({
6761
+ var NpmRegistryInput = z231.object({
6762
+ enabledScopes: z231.array(z231.string()),
6763
+ customRegistryUrl: z231.string().optional(),
6764
+ bypassProxy: z231.boolean().optional(),
6765
+ npmProxyRegistryConfigId: z231.string().optional(),
6766
+ npmProxyVersion: z231.number().optional(),
6767
+ registryType: z231.string(),
6768
+ authType: z231.string(),
6769
+ authHeaderName: z231.string(),
6770
+ authHeaderValue: z231.string(),
6771
+ accessToken: z231.string(),
6772
+ username: z231.string(),
6773
+ password: z231.string()
6774
+ });
6775
+ var WorkspaceConfigurationPayload = z231.object({
6498
6776
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
6499
6777
  sso: SsoProvider.partial().optional(),
6500
6778
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -6502,262 +6780,107 @@ var WorkspaceConfigurationPayload = z222.object({
6502
6780
  });
6503
6781
 
6504
6782
  // src/api/payloads/workspaces/workspace-integrations.ts
6505
- import { z as z223 } from "zod";
6506
- var DTOWorkspaceIntegrationOauthInput = z223.object({
6783
+ import { z as z232 } from "zod";
6784
+ var DTOWorkspaceIntegrationOauthInput = z232.object({
6507
6785
  type: IntegrationType
6508
6786
  });
6509
- var DTOWorkspaceIntegrationPATInput = z223.object({
6787
+ var DTOWorkspaceIntegrationPATInput = z232.object({
6510
6788
  type: IntegrationType,
6511
6789
  token: IntegrationToken
6512
6790
  });
6513
- var DTOWorkspaceIntegrationGetGitObjectsInput = z223.object({
6514
- organization: z223.string().optional(),
6791
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z232.object({
6792
+ organization: z232.string().optional(),
6515
6793
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
6516
- project: z223.string().optional(),
6794
+ project: z232.string().optional(),
6517
6795
  // Only for Bitbucket and Azure
6518
- repository: z223.string().optional(),
6796
+ repository: z232.string().optional(),
6519
6797
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
6520
- branch: z223.string().optional(),
6798
+ branch: z232.string().optional(),
6521
6799
  // For all providers, useful for PR creations.
6522
- user: z223.string().optional()
6800
+ user: z232.string().optional()
6523
6801
  // Only for Gitlab User Repositories
6524
6802
  });
6525
6803
 
6526
6804
  // src/api/dto/design-systems/version.ts
6527
- var DTODesignSystemVersion = z224.object({
6528
- id: z224.string(),
6529
- createdAt: z224.coerce.date(),
6530
- meta: ObjectMeta,
6531
- version: z224.string(),
6532
- isReadonly: z224.boolean(),
6533
- changeLog: z224.string(),
6534
- designSystemId: z224.string()
6535
- });
6536
- var DTODesignSystemVersionsListResponse = z224.object({
6537
- designSystemVersions: z224.array(DTODesignSystemVersion)
6538
- });
6539
- var DTODesignSystemVersionGetResponse = z224.object({
6540
- designSystemVersion: DTODesignSystemVersion
6541
- });
6542
- var DTODesignSystemVersionCreationResponse = z224.object({
6543
- meta: ObjectMeta,
6544
- version: z224.string(),
6545
- changeLog: z224.string(),
6546
- isReadOnly: z224.boolean(),
6547
- designSystemId: z224.string(),
6548
- jobId: z224.string()
6549
- });
6550
- var VersionSQSPayload = z224.object({
6551
- jobId: z224.string(),
6552
- designSystemId: z224.string(),
6553
- input: DTOCreateVersionInput
6554
- });
6555
- var DTODesignSystemVersionJobsResponse = z224.object({
6556
- jobs: z224.array(VersionCreationJob)
6557
- });
6558
- var DTODesignSystemVersionJobStatusResponse = z224.object({
6559
- job: VersionCreationJob
6560
- });
6561
-
6562
- // src/api/dto/design-systems/view.ts
6563
- import { z as z225 } from "zod";
6564
- var DTOElementViewColumnSharedAttributes = z225.object({
6565
- id: z225.string(),
6566
- persistentId: z225.string(),
6567
- width: z225.number()
6568
- });
6569
- var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
6570
- type: z225.literal("BaseProperty"),
6571
- basePropertyType: ElementViewBaseColumnType
6572
- });
6573
- var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
6574
- type: z225.literal("PropertyDefinition"),
6575
- propertyDefinitionId: z225.string()
6576
- });
6577
- var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
6578
- type: z225.literal("Theme"),
6579
- themeId: z225.string()
6580
- });
6581
- var DTOElementViewColumn = z225.discriminatedUnion("type", [
6582
- DTOElementViewBasePropertyColumn,
6583
- DTOElementViewPropertyDefinitionColumn,
6584
- DTOElementViewThemeColumn
6585
- ]);
6586
- var DTOElementView = z225.object({
6805
+ var DTODesignSystemVersion = z233.object({
6806
+ id: z233.string(),
6807
+ createdAt: z233.coerce.date(),
6587
6808
  meta: ObjectMeta,
6588
- persistentId: z225.string(),
6589
- targetElementType: ElementPropertyTargetType,
6590
- id: z225.string(),
6591
- isDefault: z225.boolean(),
6592
- columns: z225.array(DTOElementViewColumn)
6593
- });
6594
- var DTOElementViewsListResponse = z225.object({
6595
- elementDataViews: z225.array(DTOElementView)
6596
- });
6597
-
6598
- // src/api/dto/workspaces/git.ts
6599
- import { z as z226 } from "zod";
6600
- var DTOGitOrganization = z226.object({
6601
- id: z226.string(),
6602
- name: z226.string(),
6603
- url: z226.string(),
6604
- slug: z226.string()
6605
- });
6606
- var DTOGitProject = z226.object({
6607
- id: z226.string(),
6608
- name: z226.string(),
6609
- url: z226.string(),
6610
- slug: z226.string()
6611
- });
6612
- var DTOGitRepository = z226.object({
6613
- id: z226.string(),
6614
- name: z226.string(),
6615
- url: z226.string(),
6616
- slug: z226.string(),
6617
- defaultBranch: z226.string().optional()
6618
- });
6619
- var DTOGitBranch = z226.object({
6620
- name: z226.string(),
6621
- lastCommitId: z226.string()
6622
- });
6623
-
6624
- // src/api/dto/workspaces/integrations.ts
6625
- import { z as z227 } from "zod";
6626
- var DTOIntegrationCredentials = IntegrationCredentials.omit({
6627
- accessToken: true,
6628
- refreshToken: true
6629
- });
6630
- var DTOIntegration = z227.object({
6631
- id: z227.string(),
6632
- workspaceId: z227.string(),
6633
- type: ExtendedIntegrationType,
6634
- createdAt: z227.coerce.date(),
6635
- integrationCredentials: z227.array(DTOIntegrationCredentials).optional(),
6636
- integrationDesignSystems: z227.array(IntegrationDesignSystem).optional()
6637
- });
6638
- var DTOIntegrationOAuthGetResponse = z227.object({
6639
- url: z227.string()
6640
- });
6641
- var DTOIntegrationPostResponse = z227.object({
6642
- integration: DTOIntegration
6643
- });
6644
- var DTOIntegrationsGetListResponse = z227.object({
6645
- integrations: DTOIntegration.array()
6646
- });
6647
-
6648
- // src/api/dto/workspaces/invitations.ts
6649
- import { z as z228 } from "zod";
6650
- var DTOWorkspaceInvitationInput = z228.object({
6651
- email: z228.string().email(),
6652
- role: WorkspaceRoleSchema
6653
- });
6654
- var DTOWorkspaceInvitationsListInput = z228.object({
6655
- invites: DTOWorkspaceInvitationInput.array().max(100),
6656
- designSystemId: z228.string().optional()
6657
- });
6658
- var DTOWorkspaceInvitationsResponse = z228.object({
6659
- invitations: WorkspaceInvitation.array()
6660
- });
6661
- var DTOWorkspaceInviteUpdate = z228.object({
6662
- role: WorkspaceRoleSchema
6663
- });
6664
- var DTOWorkspaceInvitationUpdateResponse = z228.object({
6665
- invitation: WorkspaceInvitation
6666
- });
6667
-
6668
- // src/api/dto/workspaces/membership.ts
6669
- import { z as z231 } from "zod";
6670
-
6671
- // src/api/dto/workspaces/workspace.ts
6672
- import { z as z230 } from "zod";
6673
-
6674
- // src/api/dto/workspaces/npm-registry.ts
6675
- import { z as z229 } from "zod";
6676
- var DTONpmRegistryConfigConstants = {
6677
- passwordPlaceholder: "redacted"
6678
- };
6679
- var DTONpmRegistryConfig = z229.object({
6680
- // Registry basic configuration
6681
- registryType: NpmRegistryType,
6682
- registryUrl: z229.string(),
6683
- customRegistryUrl: z229.string().optional(),
6684
- // URL of Supernova NPM packages proxy
6685
- proxyUrl: z229.string(),
6686
- // Auth configuration
6687
- authType: NpmRegistryAuthType,
6688
- accessToken: z229.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6689
- username: z229.string().optional(),
6690
- password: z229.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
6691
- // NPM package scopes for whih the proxy should be enabled
6692
- enabledScopes: z229.array(z229.string()),
6693
- // True if client should bypass Supernova proxy and connect directly to the registry
6694
- // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
6695
- bypassProxy: z229.boolean()
6696
- });
6697
-
6698
- // src/api/dto/workspaces/workspace.ts
6699
- var DTOWorkspaceProfile = WorkspaceProfile;
6700
- var DTOWorkspace = z230.object({
6701
- id: z230.string(),
6702
- profile: DTOWorkspaceProfile,
6703
- subscription: Subscription,
6704
- npmRegistry: DTONpmRegistryConfig.optional()
6705
- });
6706
- var DTOWorkspaceCreateInput = z230.object({
6707
- name: z230.string()
6708
- });
6709
- var DTOWorkspaceResponse = z230.object({
6710
- workspace: DTOWorkspace
6711
- });
6712
-
6713
- // src/api/dto/workspaces/membership.ts
6714
- var DTOWorkspaceRole = z231.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
6715
- var DTOUserWorkspaceMembership = z231.object({
6716
- // Workspace the user is a member of
6717
- workspace: DTOWorkspace,
6718
- // Assigned role the user has in the workspace
6719
- role: DTOWorkspaceRole,
6720
- // Role that determines actual permissions the user has in the workspace
6721
- // E.g. this is different from the default role when editors are downgraded to viewers
6722
- // when a workspace's subscription is downgraded to free tier
6723
- effectiveRole: DTOWorkspaceRole
6809
+ version: z233.string(),
6810
+ isReadonly: z233.boolean(),
6811
+ changeLog: z233.string(),
6812
+ designSystemId: z233.string()
6724
6813
  });
6725
- var DTOWorkspaceMember = z231.object({
6726
- user: User,
6727
- role: WorkspaceRoleSchema,
6728
- effectiveRole: WorkspaceRoleSchema
6814
+ var DTODesignSystemVersionsListResponse = z233.object({
6815
+ designSystemVersions: z233.array(DTODesignSystemVersion)
6816
+ });
6817
+ var DTODesignSystemVersionGetResponse = z233.object({
6818
+ designSystemVersion: DTODesignSystemVersion
6819
+ });
6820
+ var DTODesignSystemVersionCreationResponse = z233.object({
6821
+ meta: ObjectMeta,
6822
+ version: z233.string(),
6823
+ changeLog: z233.string(),
6824
+ isReadOnly: z233.boolean(),
6825
+ designSystemId: z233.string(),
6826
+ jobId: z233.string()
6827
+ });
6828
+ var VersionSQSPayload = z233.object({
6829
+ jobId: z233.string(),
6830
+ designSystemId: z233.string(),
6831
+ input: DTOCreateVersionInput
6729
6832
  });
6730
- var DTOUserWorkspaceMembershipsResponse = z231.object({
6731
- membership: z231.array(DTOUserWorkspaceMembership)
6833
+ var DTODesignSystemVersionJobsResponse = z233.object({
6834
+ jobs: z233.array(VersionCreationJob)
6732
6835
  });
6733
- var DTOWorkspaceMembersListResponse = z231.object({
6734
- members: z231.array(DTOWorkspaceMember)
6836
+ var DTODesignSystemVersionJobStatusResponse = z233.object({
6837
+ job: VersionCreationJob
6735
6838
  });
6736
6839
 
6737
- // src/api/dto/workspaces/untyped-data.ts
6738
- import { z as z232 } from "zod";
6739
- var DTOWorkspaceUntypedData = WorkspaceUntypedData;
6740
- var DTOWorkspaceUntypedDataListResponse = z232.object({
6741
- data: DTOWorkspaceUntypedData.array()
6840
+ // src/api/dto/design-systems/view.ts
6841
+ import { z as z234 } from "zod";
6842
+ var DTOElementViewColumnSharedAttributes = z234.object({
6843
+ id: z234.string(),
6844
+ persistentId: z234.string(),
6845
+ width: z234.number()
6742
6846
  });
6743
- var DTOWorkspaceUntypedDataResponse = z232.object({
6744
- data: DTOWorkspaceUntypedData
6847
+ var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
6848
+ type: z234.literal("BaseProperty"),
6849
+ basePropertyType: ElementViewBaseColumnType
6850
+ });
6851
+ var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
6852
+ type: z234.literal("PropertyDefinition"),
6853
+ propertyDefinitionId: z234.string()
6854
+ });
6855
+ var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
6856
+ type: z234.literal("Theme"),
6857
+ themeId: z234.string()
6745
6858
  });
6746
- var DTOWorkspaceUntypedDataCreatePayload = z232.object({
6747
- value: z232.unknown()
6859
+ var DTOElementViewColumn = z234.discriminatedUnion("type", [
6860
+ DTOElementViewBasePropertyColumn,
6861
+ DTOElementViewPropertyDefinitionColumn,
6862
+ DTOElementViewThemeColumn
6863
+ ]);
6864
+ var DTOElementView = z234.object({
6865
+ meta: ObjectMeta,
6866
+ persistentId: z234.string(),
6867
+ targetElementType: ElementPropertyTargetType,
6868
+ id: z234.string(),
6869
+ isDefault: z234.boolean(),
6870
+ columns: z234.array(DTOElementViewColumn)
6748
6871
  });
6749
- var DTOWorkspaceUntypedDataUpdatePayload = z232.object({
6750
- value: z232.unknown()
6872
+ var DTOElementViewsListResponse = z234.object({
6873
+ elementDataViews: z234.array(DTOElementView)
6751
6874
  });
6752
6875
 
6753
6876
  // src/api/dto/bff/app-bootstrap-data.ts
6754
- var DTOAppBootstrapDataQuery = z233.object({
6755
- preferredWorkspaceId: z233.string().optional(),
6756
- preferredDesignSystemId: z233.string().optional(),
6757
- preferredVersionId: z233.string().optional(),
6758
- preferredBrandId: z233.string().optional()
6877
+ var DTOAppBootstrapDataQuery = z235.object({
6878
+ preferredWorkspaceId: z235.string().optional(),
6879
+ preferredDesignSystemId: z235.string().optional(),
6880
+ preferredVersionId: z235.string().optional(),
6881
+ preferredBrandId: z235.string().optional()
6759
6882
  });
6760
- var DTOAppBootstrapDataResponse = z233.object({
6883
+ var DTOAppBootstrapDataResponse = z235.object({
6761
6884
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
6762
6885
  designSystem: DTODesignSystem.optional(),
6763
6886
  version: DTODesignSystemVersion.optional(),
@@ -6765,92 +6888,92 @@ var DTOAppBootstrapDataResponse = z233.object({
6765
6888
  });
6766
6889
 
6767
6890
  // src/api/dto/collections/token-collection.ts
6768
- import { z as z234 } from "zod";
6769
- var DTOTokenCollection = z234.object({
6770
- id: z234.string(),
6771
- persistentId: z234.string(),
6772
- designSystemVersionId: z234.string(),
6891
+ import { z as z236 } from "zod";
6892
+ var DTOTokenCollection = z236.object({
6893
+ id: z236.string(),
6894
+ persistentId: z236.string(),
6895
+ designSystemVersionId: z236.string(),
6773
6896
  meta: ObjectMeta,
6774
6897
  backgroundColor: ColorTokenInlineData.optional(),
6775
- elementPropertyOptionId: z234.string(),
6776
- createdAt: z234.coerce.date(),
6777
- updatedAt: z234.coerce.date(),
6898
+ elementPropertyOptionId: z236.string(),
6899
+ createdAt: z236.coerce.date(),
6900
+ updatedAt: z236.coerce.date(),
6778
6901
  origin: CollectionOrigin.optional()
6779
6902
  });
6780
- var DTOTokenCollectionsListReponse = z234.object({
6903
+ var DTOTokenCollectionsListReponse = z236.object({
6781
6904
  collections: DTOTokenCollection.array()
6782
6905
  });
6783
6906
 
6784
6907
  // src/api/dto/design-tokens/design-token.ts
6785
- import { z as z235 } from "zod";
6908
+ import { z as z237 } from "zod";
6786
6909
  var DTODesignToken = DesignTokenTypedData.and(
6787
- z235.object({
6788
- id: z235.string(),
6789
- persistentId: z235.string(),
6790
- designSystemVersionId: z235.string(),
6910
+ z237.object({
6911
+ id: z237.string(),
6912
+ persistentId: z237.string(),
6913
+ designSystemVersionId: z237.string(),
6791
6914
  meta: ObjectMeta,
6792
6915
  originStyle: DesignTokenOrigin.optional(),
6793
- brandId: z235.string(),
6794
- collectionId: z235.string().optional(),
6795
- updatedAt: z235.coerce.date()
6916
+ brandId: z237.string(),
6917
+ collectionId: z237.string().optional(),
6918
+ updatedAt: z237.coerce.date()
6796
6919
  })
6797
6920
  );
6798
- var DTODesignTokenListResponse = z235.object({
6921
+ var DTODesignTokenListResponse = z237.object({
6799
6922
  tokens: DTODesignToken.array()
6800
6923
  });
6801
- var DTODesignTokenResponse = z235.object({
6924
+ var DTODesignTokenResponse = z237.object({
6802
6925
  token: DTODesignToken
6803
6926
  });
6804
- var DTODesignTokenGroup = z235.object({
6805
- id: z235.string(),
6927
+ var DTODesignTokenGroup = z237.object({
6928
+ id: z237.string(),
6806
6929
  tokenType: DesignTokenType,
6807
- persistentId: z235.string(),
6808
- isRoot: z235.boolean(),
6809
- brandId: z235.string(),
6930
+ persistentId: z237.string(),
6931
+ isRoot: z237.boolean(),
6932
+ brandId: z237.string(),
6810
6933
  meta: ObjectMeta,
6811
- childrenIds: z235.string().array()
6934
+ childrenIds: z237.string().array()
6812
6935
  });
6813
- var DTODesignTokenGroupListResponse = z235.object({
6936
+ var DTODesignTokenGroupListResponse = z237.object({
6814
6937
  groups: DTODesignTokenGroup.array()
6815
6938
  });
6816
- var DTODesignTokenGroupResponse = z235.object({
6939
+ var DTODesignTokenGroupResponse = z237.object({
6817
6940
  group: DTODesignTokenGroup
6818
6941
  });
6819
6942
  var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
6820
- z235.object({
6821
- persistentId: z235.string(),
6943
+ z237.object({
6944
+ persistentId: z237.string(),
6822
6945
  meta: ObjectMeta,
6823
- brandId: z235.string(),
6824
- groupPersistentId: z235.string().optional()
6946
+ brandId: z237.string(),
6947
+ groupPersistentId: z237.string().optional()
6825
6948
  })
6826
6949
  );
6827
- var DTODesignTokenGroupCreatePayload = z235.object({
6828
- persistentId: z235.string(),
6950
+ var DTODesignTokenGroupCreatePayload = z237.object({
6951
+ persistentId: z237.string(),
6829
6952
  meta: ObjectMeta,
6830
- brandId: z235.string(),
6831
- parentId: z235.string().optional(),
6953
+ brandId: z237.string(),
6954
+ parentId: z237.string().optional(),
6832
6955
  tokenType: DesignTokenType,
6833
- childrenIds: z235.string().array()
6956
+ childrenIds: z237.string().array()
6834
6957
  });
6835
6958
 
6836
6959
  // src/api/dto/documentation/analytics-v2.ts
6837
- import { z as z236 } from "zod";
6838
- var DTODocumentationAnalyticsTimeFrame = z236.object({
6839
- start: z236.coerce.date(),
6840
- end: z236.coerce.date().optional()
6960
+ import { z as z238 } from "zod";
6961
+ var DTODocumentationAnalyticsTimeFrame = z238.object({
6962
+ start: z238.coerce.date(),
6963
+ end: z238.coerce.date().optional()
6841
6964
  });
6842
- var DTOPublishedDocVisitData = z236.object({
6843
- timestamp: z236.coerce.date(),
6844
- versionId: z236.string(),
6845
- locale: z236.string().optional(),
6846
- visits: z236.number(),
6847
- sessions: z236.number()
6965
+ var DTOPublishedDocVisitData = z238.object({
6966
+ timestamp: z238.coerce.date(),
6967
+ versionId: z238.string(),
6968
+ locale: z238.string().optional(),
6969
+ visits: z238.number(),
6970
+ sessions: z238.number()
6848
6971
  });
6849
6972
  var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
6850
- pagePersistentId: z236.string()
6973
+ pagePersistentId: z238.string()
6851
6974
  });
6852
- var DTOPublishedDocVisitHeatMapDay = z236.number().array().length(12);
6853
- var DTOPublishedDocVisitHeatMapWeek = z236.object({
6975
+ var DTOPublishedDocVisitHeatMapDay = z238.number().array().length(12);
6976
+ var DTOPublishedDocVisitHeatMapWeek = z238.object({
6854
6977
  /**
6855
6978
  * For which timeframe it was calculated
6856
6979
  */
@@ -6863,75 +6986,65 @@ var DTOPublishedDocVisitHeatMapWeek = z236.object({
6863
6986
  sat: DTOPublishedDocVisitHeatMapDay,
6864
6987
  sun: DTOPublishedDocVisitHeatMapDay
6865
6988
  });
6866
- var DTOPublishedDocAnalyticsComparisonData = z236.object({
6989
+ var DTOPublishedDocAnalyticsComparisonData = z238.object({
6867
6990
  /**
6868
6991
  * For which timeframe it was calculated
6869
6992
  */
6870
6993
  timeFrame: DTODocumentationAnalyticsTimeFrame,
6871
- priorVisitCount: z236.number(),
6872
- priorSessionCount: z236.number(),
6873
- currentVisitCount: z236.number(),
6874
- currentSessionCount: z236.number()
6994
+ priorVisitCount: z238.number(),
6995
+ priorSessionCount: z238.number(),
6996
+ currentVisitCount: z238.number(),
6997
+ currentSessionCount: z238.number()
6875
6998
  });
6876
6999
  var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
6877
- pagePersistentId: z236.string()
7000
+ pagePersistentId: z238.string()
6878
7001
  });
6879
- var DTODocumentationPageAnalyticsResponse = z236.object({
6880
- // Old
6881
- /**
6882
- * @deprecated
6883
- */
6884
- analytics: z236.array(DTOPublishedDocPageVisitData),
6885
- /**
6886
- * @deprecated
6887
- */
6888
- perPageAnalytics: DTOPublishedDocPageVisitData.array(),
6889
- // New
7002
+ var DTODocumentationPageAnalyticsResponse = z238.object({
6890
7003
  globalAnalytics: DTOPublishedDocVisitData.array(),
6891
7004
  pageAnalytics: DTOPublishedDocPageVisitData.array(),
6892
7005
  heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
6893
7006
  comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
6894
7007
  pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
6895
7008
  });
6896
- var DTODocumentationAnalyticsRequest = z236.object({
6897
- timeFrames: z236.array(DTODocumentationAnalyticsTimeFrame)
7009
+ var DTODocumentationAnalyticsRequest = z238.object({
7010
+ timeFrames: z238.array(DTODocumentationAnalyticsTimeFrame)
6898
7011
  });
6899
7012
 
6900
7013
  // src/api/dto/documentation/analytics.ts
6901
- import { z as z237 } from "zod";
6902
- var DTODocumentationPageAnalyticsDifference = z237.object({
6903
- startDate: z237.coerce.date(),
6904
- endDate: z237.coerce.date().optional(),
6905
- currentVisitCount: z237.number(),
6906
- currentSessionCount: z237.number(),
6907
- priorVisitCount: z237.number(),
6908
- priorSessionCount: z237.number()
7014
+ import { z as z239 } from "zod";
7015
+ var DTODocumentationPageAnalyticsDifference = z239.object({
7016
+ startDate: z239.coerce.date(),
7017
+ endDate: z239.coerce.date().optional(),
7018
+ currentVisitCount: z239.number(),
7019
+ currentSessionCount: z239.number(),
7020
+ priorVisitCount: z239.number(),
7021
+ priorSessionCount: z239.number()
6909
7022
  });
6910
- var DTODocumentationPageIntervalDifferenceResponse = z237.object({
6911
- differences: z237.array(DTODocumentationPageAnalyticsDifference)
7023
+ var DTODocumentationPageIntervalDifferenceResponse = z239.object({
7024
+ differences: z239.array(DTODocumentationPageAnalyticsDifference)
6912
7025
  });
6913
7026
 
6914
7027
  // src/api/dto/documentation/anchor.ts
6915
- import { z as z238 } from "zod";
7028
+ import { z as z240 } from "zod";
6916
7029
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
6917
- var DTOGetDocumentationPageAnchorsResponse = z238.object({
6918
- anchors: z238.array(DTODocumentationPageAnchor)
7030
+ var DTOGetDocumentationPageAnchorsResponse = z240.object({
7031
+ anchors: z240.array(DTODocumentationPageAnchor)
6919
7032
  });
6920
7033
 
6921
7034
  // src/api/dto/documentation/approvals.ts
6922
- import { z as z239 } from "zod";
6923
- var DTODocumentationPageApprovalState = z239.object({
7035
+ import { z as z241 } from "zod";
7036
+ var DTODocumentationPageApprovalState = z241.object({
6924
7037
  approvalState: DocumentationPageApprovalState,
6925
- pagePersistentId: z239.string(),
6926
- updatedByUserId: z239.string(),
6927
- designSystemVersionId: z239.string(),
6928
- updatedAt: z239.coerce.date(),
6929
- createdAt: z239.coerce.date()
6930
- });
6931
- var DTODocumentationGroupApprovalState = z239.object({
6932
- persistentId: z239.string(),
6933
- groupPersistentId: z239.string(),
6934
- designSystemVersionId: z239.string(),
7038
+ pagePersistentId: z241.string(),
7039
+ updatedByUserId: z241.string(),
7040
+ designSystemVersionId: z241.string(),
7041
+ updatedAt: z241.coerce.date(),
7042
+ createdAt: z241.coerce.date()
7043
+ });
7044
+ var DTODocumentationGroupApprovalState = z241.object({
7045
+ persistentId: z241.string(),
7046
+ groupPersistentId: z241.string(),
7047
+ designSystemVersionId: z241.string(),
6935
7048
  approvalState: DocumentationPageApprovalState
6936
7049
  });
6937
7050
 
@@ -6939,68 +7052,68 @@ var DTODocumentationGroupApprovalState = z239.object({
6939
7052
  var DTOPageBlockItemV2 = PageBlockItemV2;
6940
7053
 
6941
7054
  // src/api/dto/documentation/documentation-page-snapshot.ts
6942
- import { z as z244 } from "zod";
7055
+ import { z as z246 } from "zod";
6943
7056
 
6944
7057
  // src/api/dto/elements/documentation/page-v2.ts
6945
- import { z as z243 } from "zod";
7058
+ import { z as z245 } from "zod";
6946
7059
 
6947
7060
  // src/api/dto/elements/documentation/draft-state.ts
6948
- import { z as z241 } from "zod";
7061
+ import { z as z243 } from "zod";
6949
7062
 
6950
7063
  // src/api/dto/elements/documentation/item-configuration-v2.ts
6951
- import { z as z240 } from "zod";
7064
+ import { z as z242 } from "zod";
6952
7065
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
6953
- var DTODocumentationItemConfigurationV2 = z240.object({
6954
- showSidebar: z240.boolean(),
6955
- isPrivate: z240.boolean(),
6956
- isHidden: z240.boolean(),
7066
+ var DTODocumentationItemConfigurationV2 = z242.object({
7067
+ showSidebar: z242.boolean(),
7068
+ isPrivate: z242.boolean(),
7069
+ isHidden: z242.boolean(),
6957
7070
  header: DTODocumentationItemHeaderV2
6958
7071
  });
6959
7072
 
6960
7073
  // src/api/dto/elements/documentation/draft-state.ts
6961
- var DTODocumentationDraftChangeType = z241.enum(["Created", "Updated", "Deleted"]);
6962
- var DTODocumentationDraftStateCreated = z241.object({
6963
- changeType: z241.literal(DTODocumentationDraftChangeType.enum.Created)
6964
- });
6965
- var DTODocumentationDraftStateUpdated = z241.object({
6966
- changeType: z241.literal(DTODocumentationDraftChangeType.enum.Updated),
6967
- changes: z241.object({
6968
- previousTitle: z241.string().optional(),
7074
+ var DTODocumentationDraftChangeType = z243.enum(["Created", "Updated", "Deleted"]);
7075
+ var DTODocumentationDraftStateCreated = z243.object({
7076
+ changeType: z243.literal(DTODocumentationDraftChangeType.enum.Created)
7077
+ });
7078
+ var DTODocumentationDraftStateUpdated = z243.object({
7079
+ changeType: z243.literal(DTODocumentationDraftChangeType.enum.Updated),
7080
+ changes: z243.object({
7081
+ previousTitle: z243.string().optional(),
6969
7082
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
6970
- previousContentHash: z241.string().optional()
7083
+ previousContentHash: z243.string().optional()
6971
7084
  })
6972
7085
  });
6973
- var DTODocumentationDraftStateDeleted = z241.object({
6974
- changeType: z241.literal(DTODocumentationDraftChangeType.enum.Deleted),
6975
- deletedAt: z241.coerce.date(),
6976
- deletedByUserId: z241.string()
7086
+ var DTODocumentationDraftStateDeleted = z243.object({
7087
+ changeType: z243.literal(DTODocumentationDraftChangeType.enum.Deleted),
7088
+ deletedAt: z243.coerce.date(),
7089
+ deletedByUserId: z243.string()
6977
7090
  });
6978
- var DTODocumentationDraftState = z241.discriminatedUnion("changeType", [
7091
+ var DTODocumentationDraftState = z243.discriminatedUnion("changeType", [
6979
7092
  DTODocumentationDraftStateCreated,
6980
7093
  DTODocumentationDraftStateUpdated,
6981
7094
  DTODocumentationDraftStateDeleted
6982
7095
  ]);
6983
7096
 
6984
7097
  // src/api/dto/elements/documentation/metadata.ts
6985
- import { z as z242 } from "zod";
6986
- var DTODocumentationPublishMetadata = z242.object({
6987
- lastPublishedByUserId: z242.string(),
6988
- lastPublishedAt: z242.coerce.date()
7098
+ import { z as z244 } from "zod";
7099
+ var DTODocumentationPublishMetadata = z244.object({
7100
+ lastPublishedByUserId: z244.string(),
7101
+ lastPublishedAt: z244.coerce.date()
6989
7102
  });
6990
7103
 
6991
7104
  // src/api/dto/elements/documentation/page-v2.ts
6992
- var DTODocumentationPageV2 = z243.object({
6993
- id: z243.string(),
6994
- persistentId: z243.string(),
6995
- designSystemVersionId: z243.string(),
6996
- title: z243.string(),
7105
+ var DTODocumentationPageV2 = z245.object({
7106
+ id: z245.string(),
7107
+ persistentId: z245.string(),
7108
+ designSystemVersionId: z245.string(),
7109
+ title: z245.string(),
6997
7110
  configuration: DTODocumentationItemConfigurationV2,
6998
- shortPersistentId: z243.string(),
6999
- slug: z243.string().optional(),
7000
- userSlug: z243.string().optional(),
7001
- createdAt: z243.coerce.date(),
7002
- updatedAt: z243.coerce.date(),
7003
- path: z243.string(),
7111
+ shortPersistentId: z245.string(),
7112
+ slug: z245.string().optional(),
7113
+ userSlug: z245.string().optional(),
7114
+ createdAt: z245.coerce.date(),
7115
+ updatedAt: z245.coerce.date(),
7116
+ path: z245.string(),
7004
7117
  /** Defined when a page has changed since last publish and can be included into a partial publish */
7005
7118
  draftState: DTODocumentationDraftState.optional(),
7006
7119
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -7008,267 +7121,267 @@ var DTODocumentationPageV2 = z243.object({
7008
7121
  /** Defines the approval state of the documentation page */
7009
7122
  approvalState: DTODocumentationPageApprovalState.optional(),
7010
7123
  /** Id of the page document room */
7011
- liveblocksRoomId: z243.string().optional(),
7124
+ liveblocksRoomId: z245.string().optional(),
7012
7125
  // Backward compatibility
7013
- type: z243.literal("Page")
7126
+ type: z245.literal("Page")
7014
7127
  });
7015
- var DTOCreateDocumentationPageInputV2 = z243.object({
7128
+ var DTOCreateDocumentationPageInputV2 = z245.object({
7016
7129
  // Identifier
7017
- persistentId: z243.string(),
7130
+ persistentId: z245.string(),
7018
7131
  // Page properties
7019
- title: z243.string(),
7132
+ title: z245.string(),
7020
7133
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
7021
7134
  // Page placement properties
7022
- parentPersistentId: z243.string(),
7023
- afterPersistentId: z243.string().nullish()
7135
+ parentPersistentId: z245.string(),
7136
+ afterPersistentId: z245.string().nullish()
7024
7137
  });
7025
- var DTOUpdateDocumentationPageInputV2 = z243.object({
7138
+ var DTOUpdateDocumentationPageInputV2 = z245.object({
7026
7139
  // Identifier of the page to update
7027
- id: z243.string(),
7140
+ id: z245.string(),
7028
7141
  // Page properties
7029
- title: z243.string().optional(),
7142
+ title: z245.string().optional(),
7030
7143
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
7031
7144
  });
7032
- var DTOUpdateDocumentationPageDocumentInputV2 = z243.object({
7145
+ var DTOUpdateDocumentationPageDocumentInputV2 = z245.object({
7033
7146
  // Identifier of the page to update
7034
- id: z243.string(),
7147
+ id: z245.string(),
7035
7148
  // Page properties
7036
- documentItems: z243.array(DocumentationPageContentItem)
7149
+ documentItems: z245.array(DocumentationPageContentItem)
7037
7150
  });
7038
- var DTOMoveDocumentationPageInputV2 = z243.object({
7151
+ var DTOMoveDocumentationPageInputV2 = z245.object({
7039
7152
  // Identifier of the group to update
7040
- id: z243.string(),
7153
+ id: z245.string(),
7041
7154
  // Page placement properties
7042
- parentPersistentId: z243.string(),
7043
- afterPersistentId: z243.string().nullish()
7155
+ parentPersistentId: z245.string(),
7156
+ afterPersistentId: z245.string().nullish()
7044
7157
  });
7045
- var DTODuplicateDocumentationPageInputV2 = z243.object({
7158
+ var DTODuplicateDocumentationPageInputV2 = z245.object({
7046
7159
  // Identifier of the page to duplicate from
7047
- id: z243.string(),
7160
+ id: z245.string(),
7048
7161
  // New page persistent id
7049
- persistentId: z243.string(),
7162
+ persistentId: z245.string(),
7050
7163
  // Page placement properties
7051
- parentPersistentId: z243.string(),
7052
- afterPersistentId: z243.string().nullish()
7164
+ parentPersistentId: z245.string(),
7165
+ afterPersistentId: z245.string().nullish()
7053
7166
  });
7054
- var DTODeleteDocumentationPageInputV2 = z243.object({
7167
+ var DTODeleteDocumentationPageInputV2 = z245.object({
7055
7168
  // Identifier
7056
- id: z243.string()
7169
+ id: z245.string()
7057
7170
  });
7058
- var DTORestoreDocumentationPageInput = z243.object({
7059
- persistentId: z243.string(),
7060
- snapshotId: z243.string().optional()
7171
+ var DTORestoreDocumentationPageInput = z245.object({
7172
+ persistentId: z245.string(),
7173
+ snapshotId: z245.string().optional()
7061
7174
  });
7062
- var DTORestoreDocumentationGroupInput = z243.object({
7063
- persistentId: z243.string(),
7064
- snapshotId: z243.string().optional()
7175
+ var DTORestoreDocumentationGroupInput = z245.object({
7176
+ persistentId: z245.string(),
7177
+ snapshotId: z245.string().optional()
7065
7178
  });
7066
- var DTODocumentationPageApprovalStateChangeInput = z243.object({
7067
- persistentId: z243.string(),
7179
+ var DTODocumentationPageApprovalStateChangeInput = z245.object({
7180
+ persistentId: z245.string(),
7068
7181
  approvalState: DocumentationPageApprovalState.optional()
7069
7182
  });
7070
7183
 
7071
7184
  // src/api/dto/documentation/documentation-page-snapshot.ts
7072
- var DTODocumentationPageSnapshot = z244.object({
7073
- id: z244.string(),
7074
- designSystemVersionId: z244.string(),
7075
- createdAt: z244.string(),
7076
- updatedAt: z244.string(),
7185
+ var DTODocumentationPageSnapshot = z246.object({
7186
+ id: z246.string(),
7187
+ designSystemVersionId: z246.string(),
7188
+ createdAt: z246.string(),
7189
+ updatedAt: z246.string(),
7077
7190
  documentationPage: DTODocumentationPageV2,
7078
- pageContentHash: z244.string(),
7191
+ pageContentHash: z246.string(),
7079
7192
  reason: DesignElementSnapshotReason
7080
7193
  });
7081
7194
 
7082
7195
  // src/api/dto/documentation/link-preview.ts
7083
- import { z as z245 } from "zod";
7084
- var DTODocumentationLinkPreviewResponse = z245.object({
7196
+ import { z as z247 } from "zod";
7197
+ var DTODocumentationLinkPreviewResponse = z247.object({
7085
7198
  linkPreview: DocumentationLinkPreview
7086
7199
  });
7087
- var DTODocumentationLinkPreviewRequest = z245.object({
7088
- url: z245.string().optional(),
7089
- documentationItemPersistentId: z245.string().optional()
7200
+ var DTODocumentationLinkPreviewRequest = z247.object({
7201
+ url: z247.string().optional(),
7202
+ documentationItemPersistentId: z247.string().optional()
7090
7203
  });
7091
7204
 
7092
7205
  // src/api/dto/documentation/publish.ts
7093
- import { z as z249 } from "zod";
7206
+ import { z as z251 } from "zod";
7094
7207
 
7095
7208
  // src/api/dto/export/exporter.ts
7096
- import { z as z246 } from "zod";
7097
- var DTOExporterType = z246.enum(["documentation", "code"]);
7098
- var DTOExporterSource = z246.enum(["git", "upload"]);
7099
- var DTOExporterMembershipRole = z246.enum(["Owner", "OwnerArchived", "User"]);
7100
- var DTOExporterListQuery = z246.object({
7101
- limit: z246.coerce.number().optional(),
7102
- offset: z246.coerce.number().optional(),
7209
+ import { z as z248 } from "zod";
7210
+ var DTOExporterType = z248.enum(["documentation", "code"]);
7211
+ var DTOExporterSource = z248.enum(["git", "upload"]);
7212
+ var DTOExporterMembershipRole = z248.enum(["Owner", "OwnerArchived", "User"]);
7213
+ var DTOExporterListQuery = z248.object({
7214
+ limit: z248.coerce.number().optional(),
7215
+ offset: z248.coerce.number().optional(),
7103
7216
  type: DTOExporterType.optional(),
7104
- search: z246.string().optional()
7217
+ search: z248.string().optional()
7105
7218
  });
7106
- var DTOExporter = z246.object({
7107
- id: z246.string(),
7108
- name: z246.string(),
7109
- isPrivate: z246.boolean(),
7219
+ var DTOExporter = z248.object({
7220
+ id: z248.string(),
7221
+ name: z248.string(),
7222
+ isPrivate: z248.boolean(),
7110
7223
  exporterType: DTOExporterType,
7111
- isDefaultDocumentationExporter: z246.boolean(),
7112
- iconURL: z246.string().optional(),
7224
+ isDefaultDocumentationExporter: z248.boolean(),
7225
+ iconURL: z248.string().optional(),
7113
7226
  configurationProperties: PulsarContributionConfigurationProperty.array(),
7114
7227
  properties: DTOExporterPropertyDefinition.array().optional(),
7115
7228
  customBlocks: PulsarCustomBlock.array(),
7116
- blockVariants: z246.record(z246.string(), PulsarContributionVariant.array()),
7117
- homepage: z246.string().optional(),
7118
- organization: z246.string().optional(),
7119
- packageId: z246.string().optional(),
7120
- tags: z246.array(z246.string()),
7121
- author: z246.string().optional(),
7122
- version: z246.string(),
7123
- description: z246.string(),
7124
- usesLocale: z246.boolean(),
7125
- usesBrands: z246.boolean(),
7126
- usesThemes: z246.boolean(),
7127
- readme: z246.string().optional(),
7128
- routingVersion: z246.string().optional(),
7229
+ blockVariants: z248.record(z248.string(), PulsarContributionVariant.array()),
7230
+ homepage: z248.string().optional(),
7231
+ organization: z248.string().optional(),
7232
+ packageId: z248.string().optional(),
7233
+ tags: z248.array(z248.string()),
7234
+ author: z248.string().optional(),
7235
+ version: z248.string(),
7236
+ description: z248.string(),
7237
+ usesLocale: z248.boolean(),
7238
+ usesBrands: z248.boolean(),
7239
+ usesThemes: z248.boolean(),
7240
+ readme: z248.string().optional(),
7241
+ routingVersion: z248.string().optional(),
7129
7242
  source: DTOExporterSource,
7130
- gitProvider: z246.string().optional(),
7131
- gitUrl: nullishToOptional(z246.string()),
7132
- gitBranch: nullishToOptional(z246.string()),
7133
- gitDirectory: nullishToOptional(z246.string()),
7134
- isDeprecated: z246.boolean(),
7135
- deprecationNote: z246.string().optional(),
7136
- replacementExporterId: z246.string().optional()
7137
- });
7138
- var DTOExporterMembership = z246.object({
7139
- workspaceId: z246.string(),
7140
- exporterId: z246.string(),
7243
+ gitProvider: z248.string().optional(),
7244
+ gitUrl: nullishToOptional(z248.string()),
7245
+ gitBranch: nullishToOptional(z248.string()),
7246
+ gitDirectory: nullishToOptional(z248.string()),
7247
+ isDeprecated: z248.boolean(),
7248
+ deprecationNote: z248.string().optional(),
7249
+ replacementExporterId: z248.string().optional()
7250
+ });
7251
+ var DTOExporterMembership = z248.object({
7252
+ workspaceId: z248.string(),
7253
+ exporterId: z248.string(),
7141
7254
  role: DTOExporterMembershipRole
7142
7255
  });
7143
- var DTOExporterResponse = z246.object({
7256
+ var DTOExporterResponse = z248.object({
7144
7257
  exporter: DTOExporter,
7145
7258
  membership: DTOExporterMembership
7146
7259
  });
7147
- var DTOExporterListResponse = z246.object({
7260
+ var DTOExporterListResponse = z248.object({
7148
7261
  exporters: DTOExporter.array(),
7149
7262
  membership: DTOExporterMembership.array(),
7150
- total: z246.number()
7263
+ total: z248.number()
7151
7264
  });
7152
- var DTOExporterGitProviderEnum = z246.enum(["github", "gitlab", "bitbucket", "azure"]);
7153
- var DTOExporterCreateInput = z246.object({
7154
- url: z246.string(),
7265
+ var DTOExporterGitProviderEnum = z248.enum(["github", "gitlab", "bitbucket", "azure"]);
7266
+ var DTOExporterCreateInput = z248.object({
7267
+ url: z248.string(),
7155
7268
  provider: DTOExporterGitProviderEnum
7156
7269
  });
7157
- var DTOExporterUpdateInput = z246.object({
7158
- url: z246.string().optional()
7270
+ var DTOExporterUpdateInput = z248.object({
7271
+ url: z248.string().optional()
7159
7272
  });
7160
- var DTOExporterDeprecationInput = z246.object({
7161
- isDeprecated: z246.boolean(),
7162
- deprecationNote: z246.string().optional(),
7163
- replacementExporterId: z246.string().optional()
7273
+ var DTOExporterDeprecationInput = z248.object({
7274
+ isDeprecated: z248.boolean(),
7275
+ deprecationNote: z248.string().optional(),
7276
+ replacementExporterId: z248.string().optional()
7164
7277
  });
7165
7278
 
7166
7279
  // src/api/dto/export/filter.ts
7167
7280
  var DTOExportJobsListFilter = ExportJobFindByFilter;
7168
7281
 
7169
7282
  // src/api/dto/export/job.ts
7170
- import { z as z247 } from "zod";
7171
- var DTOExportJobCreatedBy = z247.object({
7172
- userId: z247.string(),
7173
- userName: z247.string()
7283
+ import { z as z249 } from "zod";
7284
+ var DTOExportJobCreatedBy = z249.object({
7285
+ userId: z249.string(),
7286
+ userName: z249.string()
7174
7287
  });
7175
- var DTOExportJobDesignSystemPreview = z247.object({
7176
- id: z247.string(),
7288
+ var DTOExportJobDesignSystemPreview = z249.object({
7289
+ id: z249.string(),
7177
7290
  meta: ObjectMeta
7178
7291
  });
7179
- var DTOExportJobDesignSystemVersionPreview = z247.object({
7180
- id: z247.string(),
7292
+ var DTOExportJobDesignSystemVersionPreview = z249.object({
7293
+ id: z249.string(),
7181
7294
  meta: ObjectMeta,
7182
- version: z247.string(),
7183
- isReadonly: z247.boolean()
7295
+ version: z249.string(),
7296
+ isReadonly: z249.boolean()
7184
7297
  });
7185
- var DTOExportJobDestinations = z247.object({
7298
+ var DTOExportJobDestinations = z249.object({
7186
7299
  s3: ExporterDestinationS3.optional(),
7187
7300
  azure: ExporterDestinationAzure.optional(),
7188
7301
  bitbucket: ExporterDestinationBitbucket.optional(),
7189
7302
  github: ExporterDestinationGithub.optional(),
7190
7303
  gitlab: ExporterDestinationGitlab.optional(),
7191
7304
  documentation: ExporterDestinationDocs.optional(),
7192
- webhookUrl: z247.string().optional()
7305
+ webhookUrl: z249.string().optional()
7193
7306
  });
7194
7307
  var DTOExportJobResult = ExportJobResult.omit({
7195
7308
  sndocs: true
7196
7309
  }).extend({
7197
7310
  documentation: ExportJobDocsDestinationResult.optional()
7198
7311
  });
7199
- var DTOExportJob = z247.object({
7200
- id: z247.string(),
7201
- createdAt: z247.coerce.date(),
7202
- finishedAt: z247.coerce.date().optional(),
7203
- index: z247.number().optional(),
7312
+ var DTOExportJob = z249.object({
7313
+ id: z249.string(),
7314
+ createdAt: z249.coerce.date(),
7315
+ finishedAt: z249.coerce.date().optional(),
7316
+ index: z249.number().optional(),
7204
7317
  status: ExportJobStatus,
7205
- estimatedExecutionTime: z247.number().optional(),
7318
+ estimatedExecutionTime: z249.number().optional(),
7206
7319
  createdBy: DTOExportJobCreatedBy.optional(),
7207
7320
  designSystem: DTOExportJobDesignSystemPreview,
7208
7321
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
7209
7322
  destinations: DTOExportJobDestinations,
7210
- exporterId: z247.string(),
7211
- scheduleId: z247.string().optional(),
7323
+ exporterId: z249.string(),
7324
+ scheduleId: z249.string().optional(),
7212
7325
  result: DTOExportJobResult.optional(),
7213
- brandPersistentId: z247.string().optional(),
7214
- themePersistentId: z247.string().optional(),
7215
- themePersistentIds: z247.string().array().optional(),
7326
+ brandPersistentId: z249.string().optional(),
7327
+ themePersistentId: z249.string().optional(),
7328
+ themePersistentIds: z249.string().array().optional(),
7216
7329
  exporterPropertyValues: DTOExporterPropertyValueMap.optional()
7217
7330
  });
7218
- var DTOExportJobResponse = z247.object({
7331
+ var DTOExportJobResponse = z249.object({
7219
7332
  job: DTOExportJob
7220
7333
  });
7221
- var DTOExportJobResponseLegacy = z247.object({
7222
- job: z247.object({
7223
- id: z247.string(),
7334
+ var DTOExportJobResponseLegacy = z249.object({
7335
+ job: z249.object({
7336
+ id: z249.string(),
7224
7337
  status: ExportJobStatus
7225
7338
  })
7226
7339
  });
7227
- var DTOExportJobCreateInput = z247.object({
7228
- designSystemId: z247.string(),
7229
- designSystemVersionId: z247.string(),
7230
- exporterId: z247.string(),
7231
- brandId: z247.string().optional(),
7232
- themeId: z247.string().optional(),
7233
- themePersistentIds: z247.string().array().optional(),
7340
+ var DTOExportJobCreateInput = z249.object({
7341
+ designSystemId: z249.string(),
7342
+ designSystemVersionId: z249.string(),
7343
+ exporterId: z249.string(),
7344
+ brandId: z249.string().optional(),
7345
+ themeId: z249.string().optional(),
7346
+ themePersistentIds: z249.string().array().optional(),
7234
7347
  destinations: DTOExportJobDestinations,
7235
7348
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
7236
- previewMode: z247.boolean().optional()
7349
+ previewMode: z249.boolean().optional()
7237
7350
  });
7238
7351
 
7239
7352
  // src/api/dto/export/pipeline.ts
7240
- import { z as z248 } from "zod";
7241
- var DTOPipelineListQuery = z248.object({
7242
- designSystemId: z248.string().optional(),
7243
- exporterId: z248.string().optional(),
7244
- latestJobsLimit: z248.coerce.number().optional()
7245
- });
7246
- var DTOPipeline = z248.object({
7247
- id: z248.string(),
7248
- name: z248.string(),
7353
+ import { z as z250 } from "zod";
7354
+ var DTOPipelineListQuery = z250.object({
7355
+ designSystemId: z250.string().optional(),
7356
+ exporterId: z250.string().optional(),
7357
+ latestJobsLimit: z250.coerce.number().optional()
7358
+ });
7359
+ var DTOPipeline = z250.object({
7360
+ id: z250.string(),
7361
+ name: z250.string(),
7249
7362
  eventType: PipelineEventType,
7250
- isEnabled: z248.boolean(),
7251
- workspaceId: z248.string(),
7252
- designSystemId: z248.string(),
7253
- exporterId: z248.string(),
7254
- brandPersistentId: z248.string().optional(),
7255
- themePersistentId: z248.string().optional(),
7256
- themePersistentIds: z248.string().array().optional(),
7363
+ isEnabled: z250.boolean(),
7364
+ workspaceId: z250.string(),
7365
+ designSystemId: z250.string(),
7366
+ exporterId: z250.string(),
7367
+ brandPersistentId: z250.string().optional(),
7368
+ themePersistentId: z250.string().optional(),
7369
+ themePersistentIds: z250.string().array().optional(),
7257
7370
  exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
7258
7371
  ...ExportDestinationsMap.shape,
7259
7372
  latestJobs: DTOExportJob.array(),
7260
- isExporterDeprecated: z248.boolean()
7373
+ isExporterDeprecated: z250.boolean()
7261
7374
  });
7262
- var DTOPipelineListResponse = z248.object({
7375
+ var DTOPipelineListResponse = z250.object({
7263
7376
  pipelines: DTOPipeline.array()
7264
7377
  });
7265
- var DTOPipelineResponse = z248.object({
7378
+ var DTOPipelineResponse = z250.object({
7266
7379
  pipeline: DTOPipeline
7267
7380
  });
7268
7381
 
7269
7382
  // src/api/dto/documentation/publish.ts
7270
7383
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
7271
- var DTOPublishDocumentationRequest = z249.object({
7384
+ var DTOPublishDocumentationRequest = z251.object({
7272
7385
  environment: PublishedDocEnvironment,
7273
7386
  /**
7274
7387
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -7276,66 +7389,66 @@ var DTOPublishDocumentationRequest = z249.object({
7276
7389
  */
7277
7390
  changes: DTOPublishDocumentationChanges.optional()
7278
7391
  });
7279
- var DTOPublishDocumentationResponse = z249.object({
7392
+ var DTOPublishDocumentationResponse = z251.object({
7280
7393
  job: DTOExportJob
7281
7394
  });
7282
7395
 
7283
7396
  // src/api/dto/documentation/room.ts
7284
- import { z as z250 } from "zod";
7285
- var DTODocumentationPageRoom = z250.object({
7286
- id: z250.string()
7397
+ import { z as z252 } from "zod";
7398
+ var DTODocumentationPageRoom = z252.object({
7399
+ id: z252.string()
7287
7400
  });
7288
- var DTODocumentationPageRoomResponse = z250.object({
7401
+ var DTODocumentationPageRoomResponse = z252.object({
7289
7402
  room: DTODocumentationPageRoom
7290
7403
  });
7291
7404
 
7292
7405
  // src/api/dto/elements/components/figma-component-group.ts
7293
- import z251 from "zod";
7294
- var DTOFigmaComponentGroup = z251.object({
7295
- id: z251.string(),
7296
- designSystemVersionId: z251.string(),
7297
- persistentId: z251.string(),
7298
- isRoot: z251.boolean(),
7299
- brandId: z251.string(),
7406
+ import z253 from "zod";
7407
+ var DTOFigmaComponentGroup = z253.object({
7408
+ id: z253.string(),
7409
+ designSystemVersionId: z253.string(),
7410
+ persistentId: z253.string(),
7411
+ isRoot: z253.boolean(),
7412
+ brandId: z253.string(),
7300
7413
  meta: DTOObjectMeta,
7301
- childrenIds: z251.string().array()
7414
+ childrenIds: z253.string().array()
7302
7415
  });
7303
- var DTOFigmaComponentGroupListResponse = z251.object({
7416
+ var DTOFigmaComponentGroupListResponse = z253.object({
7304
7417
  groups: DTOFigmaComponentGroup.array()
7305
7418
  });
7306
7419
 
7307
7420
  // src/api/dto/elements/components/figma-component.ts
7308
- import { z as z252 } from "zod";
7421
+ import { z as z254 } from "zod";
7309
7422
  var DTOFigmaComponentProperty = FigmaComponentProperty;
7310
- var DTOFigmaComponentPropertyMap = z252.record(DTOFigmaComponentProperty);
7311
- var DTOFigmaComponent = z252.object({
7312
- id: z252.string(),
7313
- persistentId: z252.string(),
7314
- designSystemVersionId: z252.string(),
7315
- brandId: z252.string(),
7316
- thumbnailUrl: z252.string().optional(),
7317
- svgUrl: z252.string().optional(),
7318
- exportProperties: z252.object({
7319
- isAsset: z252.boolean()
7423
+ var DTOFigmaComponentPropertyMap = z254.record(DTOFigmaComponentProperty);
7424
+ var DTOFigmaComponent = z254.object({
7425
+ id: z254.string(),
7426
+ persistentId: z254.string(),
7427
+ designSystemVersionId: z254.string(),
7428
+ brandId: z254.string(),
7429
+ thumbnailUrl: z254.string().optional(),
7430
+ svgUrl: z254.string().optional(),
7431
+ exportProperties: z254.object({
7432
+ isAsset: z254.boolean()
7320
7433
  }),
7321
- createdAt: z252.coerce.date(),
7322
- updatedAt: z252.coerce.date(),
7434
+ createdAt: z254.coerce.date(),
7435
+ updatedAt: z254.coerce.date(),
7323
7436
  meta: ObjectMeta,
7324
7437
  originComponent: FigmaComponentOrigin.optional(),
7325
- parentComponentPersistentId: z252.string().optional(),
7326
- childrenPersistentIds: z252.string().array().optional(),
7438
+ parentComponentPersistentId: z254.string().optional(),
7439
+ childrenPersistentIds: z254.string().array().optional(),
7327
7440
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
7328
- variantPropertyValues: z252.record(z252.string()).optional()
7441
+ variantPropertyValues: z254.record(z254.string()).optional()
7329
7442
  });
7330
- var DTOFigmaComponentListResponse = z252.object({
7443
+ var DTOFigmaComponentListResponse = z254.object({
7331
7444
  components: DTOFigmaComponent.array()
7332
7445
  });
7333
7446
 
7334
7447
  // src/api/dto/elements/documentation/group-action.ts
7335
- import { z as z254 } from "zod";
7448
+ import { z as z256 } from "zod";
7336
7449
 
7337
7450
  // src/api/dto/elements/documentation/group-v2.ts
7338
- import { z as z253 } from "zod";
7451
+ import { z as z255 } from "zod";
7339
7452
  var DTODocumentationGroupV2 = ElementGroup.omit({
7340
7453
  sortOrder: true,
7341
7454
  parentPersistentId: true,
@@ -7345,13 +7458,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
7345
7458
  data: true,
7346
7459
  shortPersistentId: true
7347
7460
  }).extend({
7348
- title: z253.string(),
7349
- isRoot: z253.boolean(),
7350
- childrenIds: z253.array(z253.string()),
7461
+ title: z255.string(),
7462
+ isRoot: z255.boolean(),
7463
+ childrenIds: z255.array(z255.string()),
7351
7464
  groupBehavior: DocumentationGroupBehavior,
7352
- shortPersistentId: z253.string(),
7465
+ shortPersistentId: z255.string(),
7353
7466
  configuration: DTODocumentationItemConfigurationV2,
7354
- type: z253.literal("Group"),
7467
+ type: z255.literal("Group"),
7355
7468
  /** Defined when a group has changed since last publish and can be included into a partial publish */
7356
7469
  draftState: DTODocumentationDraftState.optional(),
7357
7470
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -7359,127 +7472,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
7359
7472
  //** An approval state for frontend to utilize. */
7360
7473
  approvalState: DTODocumentationGroupApprovalState.optional()
7361
7474
  });
7362
- var DTOCreateDocumentationGroupInput = z253.object({
7475
+ var DTOCreateDocumentationGroupInput = z255.object({
7363
7476
  // Identifier
7364
- persistentId: z253.string(),
7477
+ persistentId: z255.string(),
7365
7478
  // Group properties
7366
- title: z253.string(),
7479
+ title: z255.string(),
7367
7480
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
7368
7481
  // Group placement properties
7369
- afterPersistentId: z253.string().nullish(),
7370
- parentPersistentId: z253.string()
7482
+ afterPersistentId: z255.string().nullish(),
7483
+ parentPersistentId: z255.string()
7371
7484
  });
7372
- var DTOUpdateDocumentationGroupInput = z253.object({
7485
+ var DTOUpdateDocumentationGroupInput = z255.object({
7373
7486
  // Identifier of the group to update
7374
- id: z253.string(),
7487
+ id: z255.string(),
7375
7488
  // Group properties
7376
- title: z253.string().optional(),
7489
+ title: z255.string().optional(),
7377
7490
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
7378
7491
  });
7379
- var DTOMoveDocumentationGroupInput = z253.object({
7492
+ var DTOMoveDocumentationGroupInput = z255.object({
7380
7493
  // Identifier of the group to update
7381
- id: z253.string(),
7494
+ id: z255.string(),
7382
7495
  // Group placement properties
7383
- parentPersistentId: z253.string(),
7384
- afterPersistentId: z253.string().nullish()
7496
+ parentPersistentId: z255.string(),
7497
+ afterPersistentId: z255.string().nullish()
7385
7498
  });
7386
- var DTODuplicateDocumentationGroupInput = z253.object({
7499
+ var DTODuplicateDocumentationGroupInput = z255.object({
7387
7500
  // Identifier of the group to duplicate from
7388
- id: z253.string(),
7501
+ id: z255.string(),
7389
7502
  // New group persistent id
7390
- persistentId: z253.string(),
7503
+ persistentId: z255.string(),
7391
7504
  // Group placement properties
7392
- afterPersistentId: z253.string().nullish(),
7393
- parentPersistentId: z253.string()
7505
+ afterPersistentId: z255.string().nullish(),
7506
+ parentPersistentId: z255.string()
7394
7507
  });
7395
- var DTOCreateDocumentationTabInput = z253.object({
7508
+ var DTOCreateDocumentationTabInput = z255.object({
7396
7509
  // New group persistent id
7397
- persistentId: z253.string(),
7510
+ persistentId: z255.string(),
7398
7511
  // If this is page, we will attempt to convert it to tab
7399
7512
  // If this is tab group, we will add a new tab to it
7400
- fromItemPersistentId: z253.string(),
7401
- tabName: z253.string()
7513
+ fromItemPersistentId: z255.string(),
7514
+ tabName: z255.string()
7402
7515
  });
7403
- var DTODeleteDocumentationTabGroupInput = z253.object({
7516
+ var DTODeleteDocumentationTabGroupInput = z255.object({
7404
7517
  // Deleted group id
7405
- id: z253.string()
7518
+ id: z255.string()
7406
7519
  });
7407
- var DTODeleteDocumentationGroupInput = z253.object({
7520
+ var DTODeleteDocumentationGroupInput = z255.object({
7408
7521
  // Identifier
7409
- id: z253.string(),
7522
+ id: z255.string(),
7410
7523
  // Deletion options
7411
- deleteSubtree: z253.boolean().default(false)
7524
+ deleteSubtree: z255.boolean().default(false)
7412
7525
  });
7413
7526
 
7414
7527
  // src/api/dto/elements/documentation/group-action.ts
7415
- var SuccessPayload = z254.object({
7416
- success: z254.literal(true)
7528
+ var SuccessPayload = z256.object({
7529
+ success: z256.literal(true)
7417
7530
  });
7418
- var DTODocumentationGroupCreateActionOutputV2 = z254.object({
7419
- type: z254.literal("DocumentationGroupCreate"),
7531
+ var DTODocumentationGroupCreateActionOutputV2 = z256.object({
7532
+ type: z256.literal("DocumentationGroupCreate"),
7420
7533
  output: SuccessPayload
7421
7534
  });
7422
- var DTODocumentationTabCreateActionOutputV2 = z254.object({
7423
- type: z254.literal("DocumentationTabCreate"),
7535
+ var DTODocumentationTabCreateActionOutputV2 = z256.object({
7536
+ type: z256.literal("DocumentationTabCreate"),
7424
7537
  output: SuccessPayload
7425
7538
  });
7426
- var DTODocumentationGroupUpdateActionOutputV2 = z254.object({
7427
- type: z254.literal("DocumentationGroupUpdate"),
7539
+ var DTODocumentationGroupUpdateActionOutputV2 = z256.object({
7540
+ type: z256.literal("DocumentationGroupUpdate"),
7428
7541
  output: SuccessPayload
7429
7542
  });
7430
- var DTODocumentationGroupMoveActionOutputV2 = z254.object({
7431
- type: z254.literal("DocumentationGroupMove"),
7543
+ var DTODocumentationGroupMoveActionOutputV2 = z256.object({
7544
+ type: z256.literal("DocumentationGroupMove"),
7432
7545
  output: SuccessPayload
7433
7546
  });
7434
- var DTODocumentationGroupDuplicateActionOutputV2 = z254.object({
7435
- type: z254.literal("DocumentationGroupDuplicate"),
7547
+ var DTODocumentationGroupDuplicateActionOutputV2 = z256.object({
7548
+ type: z256.literal("DocumentationGroupDuplicate"),
7436
7549
  output: SuccessPayload
7437
7550
  });
7438
- var DTODocumentationGroupDeleteActionOutputV2 = z254.object({
7439
- type: z254.literal("DocumentationGroupDelete"),
7551
+ var DTODocumentationGroupDeleteActionOutputV2 = z256.object({
7552
+ type: z256.literal("DocumentationGroupDelete"),
7440
7553
  output: SuccessPayload
7441
7554
  });
7442
- var DTODocumentationTabGroupDeleteActionOutputV2 = z254.object({
7443
- type: z254.literal("DocumentationTabGroupDelete"),
7555
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z256.object({
7556
+ type: z256.literal("DocumentationTabGroupDelete"),
7444
7557
  output: SuccessPayload
7445
7558
  });
7446
- var DTODocumentationGroupCreateActionInputV2 = z254.object({
7447
- type: z254.literal("DocumentationGroupCreate"),
7559
+ var DTODocumentationGroupCreateActionInputV2 = z256.object({
7560
+ type: z256.literal("DocumentationGroupCreate"),
7448
7561
  input: DTOCreateDocumentationGroupInput
7449
7562
  });
7450
- var DTODocumentationTabCreateActionInputV2 = z254.object({
7451
- type: z254.literal("DocumentationTabCreate"),
7563
+ var DTODocumentationTabCreateActionInputV2 = z256.object({
7564
+ type: z256.literal("DocumentationTabCreate"),
7452
7565
  input: DTOCreateDocumentationTabInput
7453
7566
  });
7454
- var DTODocumentationGroupUpdateActionInputV2 = z254.object({
7455
- type: z254.literal("DocumentationGroupUpdate"),
7567
+ var DTODocumentationGroupUpdateActionInputV2 = z256.object({
7568
+ type: z256.literal("DocumentationGroupUpdate"),
7456
7569
  input: DTOUpdateDocumentationGroupInput
7457
7570
  });
7458
- var DTODocumentationGroupMoveActionInputV2 = z254.object({
7459
- type: z254.literal("DocumentationGroupMove"),
7571
+ var DTODocumentationGroupMoveActionInputV2 = z256.object({
7572
+ type: z256.literal("DocumentationGroupMove"),
7460
7573
  input: DTOMoveDocumentationGroupInput
7461
7574
  });
7462
- var DTODocumentationGroupDuplicateActionInputV2 = z254.object({
7463
- type: z254.literal("DocumentationGroupDuplicate"),
7575
+ var DTODocumentationGroupDuplicateActionInputV2 = z256.object({
7576
+ type: z256.literal("DocumentationGroupDuplicate"),
7464
7577
  input: DTODuplicateDocumentationGroupInput
7465
7578
  });
7466
- var DTODocumentationGroupDeleteActionInputV2 = z254.object({
7467
- type: z254.literal("DocumentationGroupDelete"),
7579
+ var DTODocumentationGroupDeleteActionInputV2 = z256.object({
7580
+ type: z256.literal("DocumentationGroupDelete"),
7468
7581
  input: DTODeleteDocumentationGroupInput
7469
7582
  });
7470
- var DTODocumentationTabGroupDeleteActionInputV2 = z254.object({
7471
- type: z254.literal("DocumentationTabGroupDelete"),
7583
+ var DTODocumentationTabGroupDeleteActionInputV2 = z256.object({
7584
+ type: z256.literal("DocumentationTabGroupDelete"),
7472
7585
  input: DTODeleteDocumentationTabGroupInput
7473
7586
  });
7474
7587
 
7475
7588
  // src/api/dto/elements/documentation/group-v1.ts
7476
- import { z as z256 } from "zod";
7589
+ import { z as z258 } from "zod";
7477
7590
 
7478
7591
  // src/api/dto/elements/documentation/item-configuration-v1.ts
7479
- import { z as z255 } from "zod";
7480
- var DocumentationColorV1 = z255.object({
7481
- aliasTo: z255.string().optional(),
7482
- value: z255.string().optional()
7592
+ import { z as z257 } from "zod";
7593
+ var DocumentationColorV1 = z257.object({
7594
+ aliasTo: z257.string().optional(),
7595
+ value: z257.string().optional()
7483
7596
  });
7484
7597
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
7485
7598
  foregroundColor: true,
@@ -7488,10 +7601,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
7488
7601
  foregroundColor: DocumentationColorV1.optional(),
7489
7602
  backgroundColor: DocumentationColorV1.optional()
7490
7603
  });
7491
- var DTODocumentationItemConfigurationV1 = z255.object({
7492
- showSidebar: z255.boolean(),
7493
- isPrivate: z255.boolean(),
7494
- isHidden: z255.boolean(),
7604
+ var DTODocumentationItemConfigurationV1 = z257.object({
7605
+ showSidebar: z257.boolean(),
7606
+ isPrivate: z257.boolean(),
7607
+ isHidden: z257.boolean(),
7495
7608
  header: DTODocumentationItemHeaderV1
7496
7609
  });
7497
7610
 
@@ -7505,145 +7618,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
7505
7618
  data: true,
7506
7619
  shortPersistentId: true
7507
7620
  }).extend({
7508
- title: z256.string(),
7509
- isRoot: z256.boolean(),
7510
- childrenIds: z256.array(z256.string()),
7621
+ title: z258.string(),
7622
+ isRoot: z258.boolean(),
7623
+ childrenIds: z258.array(z258.string()),
7511
7624
  groupBehavior: DocumentationGroupBehavior,
7512
- shortPersistentId: z256.string(),
7513
- type: z256.literal("Group")
7625
+ shortPersistentId: z258.string(),
7626
+ type: z258.literal("Group")
7514
7627
  });
7515
7628
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
7516
7629
  configuration: DTODocumentationItemConfigurationV1
7517
7630
  });
7518
7631
 
7519
7632
  // src/api/dto/elements/documentation/hierarchy.ts
7520
- import { z as z257 } from "zod";
7521
- var DTODocumentationHierarchyV2 = z257.object({
7522
- pages: z257.array(
7633
+ import { z as z259 } from "zod";
7634
+ var DTODocumentationHierarchyV2 = z259.object({
7635
+ pages: z259.array(
7523
7636
  DTODocumentationPageV2.extend({
7524
7637
  /** Defined when a page has changed since last publish and can be included into a partial publish */
7525
7638
  draftState: DTODocumentationDraftState.optional()
7526
7639
  })
7527
7640
  ),
7528
- groups: z257.array(
7641
+ groups: z259.array(
7529
7642
  DTODocumentationGroupV2.extend({
7530
7643
  /** Defined when a page has changed since last publish and can be included into a partial publish */
7531
7644
  draftState: DTODocumentationDraftState.optional()
7532
7645
  })
7533
7646
  ),
7534
7647
  /** True if the documentation was already published, false otherwise. */
7535
- hasPublishedDocumentationContent: z257.boolean()
7648
+ hasPublishedDocumentationContent: z259.boolean()
7536
7649
  });
7537
7650
 
7538
7651
  // src/api/dto/elements/documentation/page-actions-v2.ts
7539
- import { z as z258 } from "zod";
7540
- var SuccessPayload2 = z258.object({
7541
- success: z258.literal(true)
7652
+ import { z as z260 } from "zod";
7653
+ var SuccessPayload2 = z260.object({
7654
+ success: z260.literal(true)
7542
7655
  });
7543
- var DTODocumentationPageCreateActionOutputV2 = z258.object({
7544
- type: z258.literal("DocumentationPageCreate"),
7656
+ var DTODocumentationPageCreateActionOutputV2 = z260.object({
7657
+ type: z260.literal("DocumentationPageCreate"),
7545
7658
  output: SuccessPayload2
7546
7659
  });
7547
- var DTODocumentationPageUpdateActionOutputV2 = z258.object({
7548
- type: z258.literal("DocumentationPageUpdate"),
7660
+ var DTODocumentationPageUpdateActionOutputV2 = z260.object({
7661
+ type: z260.literal("DocumentationPageUpdate"),
7549
7662
  output: SuccessPayload2
7550
7663
  });
7551
- var DTODocumentationPageUpdateDocumentActionOutputV2 = z258.object({
7552
- type: z258.literal("DocumentationPageUpdateDocument"),
7664
+ var DTODocumentationPageUpdateDocumentActionOutputV2 = z260.object({
7665
+ type: z260.literal("DocumentationPageUpdateDocument"),
7553
7666
  output: SuccessPayload2
7554
7667
  });
7555
- var DTODocumentationPageMoveActionOutputV2 = z258.object({
7556
- type: z258.literal("DocumentationPageMove"),
7668
+ var DTODocumentationPageMoveActionOutputV2 = z260.object({
7669
+ type: z260.literal("DocumentationPageMove"),
7557
7670
  output: SuccessPayload2
7558
7671
  });
7559
- var DTODocumentationPageDuplicateActionOutputV2 = z258.object({
7560
- type: z258.literal("DocumentationPageDuplicate"),
7672
+ var DTODocumentationPageDuplicateActionOutputV2 = z260.object({
7673
+ type: z260.literal("DocumentationPageDuplicate"),
7561
7674
  output: SuccessPayload2
7562
7675
  });
7563
- var DTODocumentationPageDeleteActionOutputV2 = z258.object({
7564
- type: z258.literal("DocumentationPageDelete"),
7676
+ var DTODocumentationPageDeleteActionOutputV2 = z260.object({
7677
+ type: z260.literal("DocumentationPageDelete"),
7565
7678
  output: SuccessPayload2
7566
7679
  });
7567
- var DTODocumentationPageRestoreActionOutput = z258.object({
7568
- type: z258.literal("DocumentationPageRestore"),
7680
+ var DTODocumentationPageRestoreActionOutput = z260.object({
7681
+ type: z260.literal("DocumentationPageRestore"),
7569
7682
  output: SuccessPayload2
7570
7683
  });
7571
- var DTODocumentationGroupRestoreActionOutput = z258.object({
7572
- type: z258.literal("DocumentationGroupRestore"),
7684
+ var DTODocumentationGroupRestoreActionOutput = z260.object({
7685
+ type: z260.literal("DocumentationGroupRestore"),
7573
7686
  output: SuccessPayload2
7574
7687
  });
7575
- var DTODocumentationPageApprovalStateChangeActionOutput = z258.object({
7576
- type: z258.literal("DocumentationPageApprovalStateChange"),
7688
+ var DTODocumentationPageApprovalStateChangeActionOutput = z260.object({
7689
+ type: z260.literal("DocumentationPageApprovalStateChange"),
7577
7690
  output: SuccessPayload2
7578
7691
  });
7579
- var DTODocumentationPageCreateActionInputV2 = z258.object({
7580
- type: z258.literal("DocumentationPageCreate"),
7692
+ var DTODocumentationPageCreateActionInputV2 = z260.object({
7693
+ type: z260.literal("DocumentationPageCreate"),
7581
7694
  input: DTOCreateDocumentationPageInputV2
7582
7695
  });
7583
- var DTODocumentationPageUpdateActionInputV2 = z258.object({
7584
- type: z258.literal("DocumentationPageUpdate"),
7696
+ var DTODocumentationPageUpdateActionInputV2 = z260.object({
7697
+ type: z260.literal("DocumentationPageUpdate"),
7585
7698
  input: DTOUpdateDocumentationPageInputV2
7586
7699
  });
7587
- var DTODocumentationPageUpdateDocumentActionInputV2 = z258.object({
7588
- type: z258.literal("DocumentationPageUpdateDocument"),
7700
+ var DTODocumentationPageUpdateDocumentActionInputV2 = z260.object({
7701
+ type: z260.literal("DocumentationPageUpdateDocument"),
7589
7702
  input: DTOUpdateDocumentationPageDocumentInputV2
7590
7703
  });
7591
- var DTODocumentationPageMoveActionInputV2 = z258.object({
7592
- type: z258.literal("DocumentationPageMove"),
7704
+ var DTODocumentationPageMoveActionInputV2 = z260.object({
7705
+ type: z260.literal("DocumentationPageMove"),
7593
7706
  input: DTOMoveDocumentationPageInputV2
7594
7707
  });
7595
- var DTODocumentationPageDuplicateActionInputV2 = z258.object({
7596
- type: z258.literal("DocumentationPageDuplicate"),
7708
+ var DTODocumentationPageDuplicateActionInputV2 = z260.object({
7709
+ type: z260.literal("DocumentationPageDuplicate"),
7597
7710
  input: DTODuplicateDocumentationPageInputV2
7598
7711
  });
7599
- var DTODocumentationPageDeleteActionInputV2 = z258.object({
7600
- type: z258.literal("DocumentationPageDelete"),
7712
+ var DTODocumentationPageDeleteActionInputV2 = z260.object({
7713
+ type: z260.literal("DocumentationPageDelete"),
7601
7714
  input: DTODeleteDocumentationPageInputV2
7602
7715
  });
7603
- var DTODocumentationPageRestoreActionInput = z258.object({
7604
- type: z258.literal("DocumentationPageRestore"),
7716
+ var DTODocumentationPageRestoreActionInput = z260.object({
7717
+ type: z260.literal("DocumentationPageRestore"),
7605
7718
  input: DTORestoreDocumentationPageInput
7606
7719
  });
7607
- var DTODocumentationGroupRestoreActionInput = z258.object({
7608
- type: z258.literal("DocumentationGroupRestore"),
7720
+ var DTODocumentationGroupRestoreActionInput = z260.object({
7721
+ type: z260.literal("DocumentationGroupRestore"),
7609
7722
  input: DTORestoreDocumentationGroupInput
7610
7723
  });
7611
- var DTODocumentationPageApprovalStateChangeActionInput = z258.object({
7612
- type: z258.literal("DocumentationPageApprovalStateChange"),
7724
+ var DTODocumentationPageApprovalStateChangeActionInput = z260.object({
7725
+ type: z260.literal("DocumentationPageApprovalStateChange"),
7613
7726
  input: DTODocumentationPageApprovalStateChangeInput
7614
7727
  });
7615
7728
 
7616
7729
  // src/api/dto/elements/documentation/page-content.ts
7617
- import { z as z259 } from "zod";
7730
+ import { z as z261 } from "zod";
7618
7731
  var DTODocumentationPageContent = DocumentationPageContent;
7619
- var DTODocumentationPageContentGetResponse = z259.object({
7732
+ var DTODocumentationPageContentGetResponse = z261.object({
7620
7733
  pageContent: DTODocumentationPageContent
7621
7734
  });
7622
7735
 
7623
7736
  // src/api/dto/elements/documentation/page-dependencies.ts
7624
- import { z as z260 } from "zod";
7625
- var DTODocumentationPageDependencies = z260.object({
7626
- id: z260.string(),
7627
- designSystemVersionId: z260.string(),
7628
- createdAt: z260.coerce.date(),
7629
- updatedAt: z260.coerce.date(),
7630
- documentationPageId: z260.string(),
7631
- tokenPersistentIds: z260.array(z260.string()),
7632
- figmaComponentPersistentIds: z260.array(z260.string()),
7633
- componentPersistentIds: z260.array(z260.string()),
7634
- figmaNodePersistentIds: z260.array(z260.string()),
7635
- groupPersistentIds: z260.array(z260.string()),
7636
- propertyPersistentIds: z260.array(z260.string()),
7637
- themePersistentIds: z260.array(z260.string()),
7638
- documentationPagePersistentIds: z260.array(z260.string()),
7639
- storybookEntriesStoryIds: z260.array(z260.string())
7640
- });
7641
- var DTODocumentationPageDependenciesGetResponse = z260.object({
7642
- dependencies: z260.array(DTODocumentationPageDependencies)
7737
+ import { z as z262 } from "zod";
7738
+ var DTODocumentationPageDependencies = z262.object({
7739
+ id: z262.string(),
7740
+ designSystemVersionId: z262.string(),
7741
+ createdAt: z262.coerce.date(),
7742
+ updatedAt: z262.coerce.date(),
7743
+ documentationPageId: z262.string(),
7744
+ tokenPersistentIds: z262.array(z262.string()),
7745
+ figmaComponentPersistentIds: z262.array(z262.string()),
7746
+ componentPersistentIds: z262.array(z262.string()),
7747
+ figmaNodePersistentIds: z262.array(z262.string()),
7748
+ groupPersistentIds: z262.array(z262.string()),
7749
+ propertyPersistentIds: z262.array(z262.string()),
7750
+ themePersistentIds: z262.array(z262.string()),
7751
+ documentationPagePersistentIds: z262.array(z262.string()),
7752
+ storybookEntriesStoryIds: z262.array(z262.string())
7753
+ });
7754
+ var DTODocumentationPageDependenciesGetResponse = z262.object({
7755
+ dependencies: z262.array(DTODocumentationPageDependencies)
7643
7756
  });
7644
7757
 
7645
7758
  // src/api/dto/elements/documentation/page-v1.ts
7646
- import { z as z261 } from "zod";
7759
+ import { z as z263 } from "zod";
7647
7760
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
7648
7761
  data: true,
7649
7762
  meta: true,
@@ -7651,81 +7764,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
7651
7764
  sortOrder: true
7652
7765
  }).extend({
7653
7766
  configuration: DTODocumentationItemConfigurationV1,
7654
- blocks: z261.array(PageBlockV1),
7655
- title: z261.string(),
7656
- path: z261.string()
7767
+ blocks: z263.array(PageBlockV1),
7768
+ title: z263.string(),
7769
+ path: z263.string()
7657
7770
  });
7658
7771
 
7659
7772
  // src/api/dto/elements/documentation/settings.ts
7660
- import { z as z262 } from "zod";
7661
- var DTODocumentationSettings = z262.object({
7662
- isDraftFeatureAdopted: z262.boolean(),
7663
- isApprovalsFeatureEnabled: z262.boolean(),
7664
- isApprovalRequiredForPublishing: z262.boolean()
7773
+ import { z as z264 } from "zod";
7774
+ var DTODocumentationSettings = z264.object({
7775
+ isDraftFeatureAdopted: z264.boolean(),
7776
+ isApprovalsFeatureEnabled: z264.boolean(),
7777
+ isApprovalRequiredForPublishing: z264.boolean()
7665
7778
  });
7666
7779
 
7667
7780
  // src/api/dto/elements/documentation/structure.ts
7668
- import { z as z263 } from "zod";
7669
- var DTODocumentationStructureItemType = z263.enum(["Group", "Page"]);
7670
- var DTODocumentationStructureItemBase = z263.object({
7781
+ import { z as z265 } from "zod";
7782
+ var DTODocumentationStructureItemType = z265.enum(["Group", "Page"]);
7783
+ var DTODocumentationStructureItemBase = z265.object({
7671
7784
  type: DTODocumentationStructureItemType,
7672
- id: z263.string(),
7673
- designSystemVersionId: z263.string(),
7674
- shortPersistentId: z263.string(),
7675
- persistentId: z263.string(),
7676
- title: z263.string(),
7677
- createdAt: z263.coerce.date(),
7678
- updatedAt: z263.coerce.date()
7785
+ id: z265.string(),
7786
+ designSystemVersionId: z265.string(),
7787
+ shortPersistentId: z265.string(),
7788
+ persistentId: z265.string(),
7789
+ title: z265.string(),
7790
+ createdAt: z265.coerce.date(),
7791
+ updatedAt: z265.coerce.date()
7679
7792
  });
7680
7793
  var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
7681
- type: z263.literal(DTODocumentationStructureItemType.enum.Group),
7682
- groupBehavior: z263.string(),
7683
- childrenIds: z263.string().array(),
7684
- isRoot: z263.boolean()
7794
+ type: z265.literal(DTODocumentationStructureItemType.enum.Group),
7795
+ groupBehavior: z265.string(),
7796
+ childrenIds: z265.string().array(),
7797
+ isRoot: z265.boolean()
7685
7798
  });
7686
7799
  var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
7687
- type: z263.literal(DTODocumentationStructureItemType.enum.Page),
7688
- path: z263.string()
7800
+ type: z265.literal(DTODocumentationStructureItemType.enum.Page),
7801
+ path: z265.string()
7689
7802
  });
7690
- var DTODocumentationStructureItem = z263.discriminatedUnion("type", [
7803
+ var DTODocumentationStructureItem = z265.discriminatedUnion("type", [
7691
7804
  DTODocumentationStructureGroupItem,
7692
7805
  DTODocumentationStructurePageItem
7693
7806
  ]);
7694
- var DTODocumentationStructure = z263.object({
7695
- items: z263.array(DTODocumentationStructureItem)
7807
+ var DTODocumentationStructure = z265.object({
7808
+ items: z265.array(DTODocumentationStructureItem)
7696
7809
  });
7697
7810
 
7698
7811
  // src/api/dto/elements/figma-nodes/figma-node-structure.ts
7699
- import { z as z264 } from "zod";
7700
- var DTOFigmaNodeStructure = z264.object({
7701
- id: z264.string(),
7702
- sourceId: z264.string(),
7812
+ import { z as z266 } from "zod";
7813
+ var DTOFigmaNodeStructure = z266.object({
7814
+ id: z266.string(),
7815
+ sourceId: z266.string(),
7703
7816
  importState: FigmaNodeStructureStateV2,
7704
- createdAt: z264.coerce.date(),
7705
- updatedAt: z264.coerce.date()
7817
+ createdAt: z266.coerce.date(),
7818
+ updatedAt: z266.coerce.date()
7706
7819
  });
7707
7820
  var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
7708
7821
  rootNode: FigmaFileStructureNode
7709
7822
  });
7710
- var DTOFigmaNodeStructureListResponse = z264.object({
7823
+ var DTOFigmaNodeStructureListResponse = z266.object({
7711
7824
  structures: DTOFigmaNodeStructure.array()
7712
7825
  });
7713
- var DTOFigmaNodeStructureDetailResponse = z264.object({
7826
+ var DTOFigmaNodeStructureDetailResponse = z266.object({
7714
7827
  structure: DTOFigmaNodeStructureDetail
7715
7828
  });
7716
7829
 
7717
7830
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7718
- import { z as z266 } from "zod";
7831
+ import { z as z268 } from "zod";
7719
7832
 
7720
7833
  // src/api/dto/elements/figma-nodes/figma-node.ts
7721
- import { z as z265 } from "zod";
7834
+ import { z as z267 } from "zod";
7722
7835
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
7723
- var DTOFigmaNodeOrigin = z265.object({
7724
- sourceId: z265.string(),
7725
- fileId: z265.string().optional(),
7726
- parentName: z265.string().optional()
7836
+ var DTOFigmaNodeOrigin = z267.object({
7837
+ sourceId: z267.string(),
7838
+ fileId: z267.string().optional(),
7839
+ parentName: z267.string().optional()
7727
7840
  });
7728
- var DTOFigmaNodeRenderInputBase = z265.object({
7841
+ var DTOFigmaNodeRenderInputBase = z267.object({
7729
7842
  /**
7730
7843
  * Format in which the node must be rendered, png by default.
7731
7844
  */
@@ -7733,57 +7846,57 @@ var DTOFigmaNodeRenderInputBase = z265.object({
7733
7846
  /**
7734
7847
  * Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
7735
7848
  */
7736
- scale: z265.number().optional()
7849
+ scale: z267.number().optional()
7737
7850
  });
7738
7851
  var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
7739
- inputType: z265.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
7852
+ inputType: z267.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
7740
7853
  /**
7741
7854
  * Id of a design system's data source representing a linked Figma file
7742
7855
  */
7743
- sourceId: z265.string(),
7856
+ sourceId: z267.string(),
7744
7857
  /**
7745
7858
  * Id of a node within the Figma file
7746
7859
  */
7747
- figmaFileNodeId: z265.string()
7860
+ figmaFileNodeId: z267.string()
7748
7861
  });
7749
7862
  var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
7750
- inputType: z265.literal("URL"),
7863
+ inputType: z267.literal("URL"),
7751
7864
  /**
7752
7865
  * Id of a design system's data source representing a linked Figma file
7753
7866
  */
7754
- figmaNodeUrl: z265.string(),
7867
+ figmaNodeUrl: z267.string(),
7755
7868
  /**
7756
7869
  * Brand persistent id to use in case a source has to be created for this render
7757
7870
  */
7758
- brandPersistentId: z265.string()
7871
+ brandPersistentId: z267.string()
7759
7872
  });
7760
- var DTOFigmaNodeRerenderInput = z265.object({
7761
- inputType: z265.literal("Rerender"),
7873
+ var DTOFigmaNodeRerenderInput = z267.object({
7874
+ inputType: z267.literal("Rerender"),
7762
7875
  /**
7763
7876
  * Persistent ID of an existing Figma node
7764
7877
  */
7765
- figmaNodePersistentId: z265.string()
7878
+ figmaNodePersistentId: z267.string()
7766
7879
  });
7767
- var DTOFigmaNodeRenderInput = z265.discriminatedUnion("inputType", [
7880
+ var DTOFigmaNodeRenderInput = z267.discriminatedUnion("inputType", [
7768
7881
  DTOFigmaNodeRenderIdInput,
7769
7882
  DTOFigmaNodeRenderUrlInput,
7770
7883
  DTOFigmaNodeRerenderInput
7771
7884
  ]);
7772
7885
 
7773
7886
  // src/api/dto/elements/figma-nodes/figma-node-v1.ts
7774
- var DTOFigmaNodeData = z266.object({
7887
+ var DTOFigmaNodeData = z268.object({
7775
7888
  // Id of the node in the Figma file
7776
- figmaNodeId: z266.string(),
7889
+ figmaNodeId: z268.string(),
7777
7890
  // Validity
7778
- isValid: z266.boolean(),
7891
+ isValid: z268.boolean(),
7779
7892
  // Asset data
7780
- assetId: z266.string(),
7781
- assetUrl: z266.string(),
7893
+ assetId: z268.string(),
7894
+ assetUrl: z268.string(),
7782
7895
  assetFormat: DTOFigmaNodeRenderFormat,
7783
7896
  // Asset metadata
7784
- assetScale: z266.number(),
7785
- assetWidth: z266.number().optional(),
7786
- assetHeight: z266.number().optional()
7897
+ assetScale: z268.number(),
7898
+ assetWidth: z268.number().optional(),
7899
+ assetHeight: z268.number().optional()
7787
7900
  });
7788
7901
  var DTOFigmaNode = FigmaNodeReference.omit({
7789
7902
  data: true,
@@ -7794,15 +7907,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
7794
7907
  });
7795
7908
 
7796
7909
  // src/api/dto/elements/figma-nodes/figma-node-v2.ts
7797
- import { z as z267 } from "zod";
7798
- var DTOFigmaNodeDataV2 = z267.object({
7799
- sceneNodeId: z267.string(),
7910
+ import { z as z269 } from "zod";
7911
+ var DTOFigmaNodeDataV2 = z269.object({
7912
+ sceneNodeId: z269.string(),
7800
7913
  format: FigmaNodeRenderFormat,
7801
- scale: z267.number().optional(),
7914
+ scale: z269.number().optional(),
7802
7915
  renderState: FigmaNodeRenderState,
7803
7916
  renderedImage: FigmaNodeRenderedImage.optional(),
7804
7917
  renderError: FigmaNodeRenderError.optional(),
7805
- hasSource: z267.boolean()
7918
+ hasSource: z269.boolean()
7806
7919
  });
7807
7920
  var DTOFigmaNodeV2 = FigmaNodeReference.omit({
7808
7921
  data: true,
@@ -7813,113 +7926,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
7813
7926
  });
7814
7927
 
7815
7928
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
7816
- import { z as z268 } from "zod";
7817
- var DTOFigmaNodeRenderActionOutput = z268.object({
7818
- type: z268.literal("FigmaNodeRender"),
7819
- figmaNodes: z268.array(DTOFigmaNode)
7929
+ import { z as z270 } from "zod";
7930
+ var DTOFigmaNodeRenderActionOutput = z270.object({
7931
+ type: z270.literal("FigmaNodeRender"),
7932
+ figmaNodes: z270.array(DTOFigmaNode)
7820
7933
  });
7821
- var DTOFigmaNodeRenderAsyncActionOutput = z268.object({
7822
- type: z268.literal("FigmaNodeRenderAsync"),
7823
- figmaNodes: z268.array(DTOFigmaNodeV2)
7934
+ var DTOFigmaNodeRenderAsyncActionOutput = z270.object({
7935
+ type: z270.literal("FigmaNodeRenderAsync"),
7936
+ figmaNodes: z270.array(DTOFigmaNodeV2)
7824
7937
  });
7825
- var DTOFigmaNodeRenderActionInput = z268.object({
7826
- type: z268.literal("FigmaNodeRender"),
7938
+ var DTOFigmaNodeRenderActionInput = z270.object({
7939
+ type: z270.literal("FigmaNodeRender"),
7827
7940
  input: DTOFigmaNodeRenderIdInput.array()
7828
7941
  });
7829
- var DTOFigmaNodeRenderAsyncActionInput = z268.object({
7830
- type: z268.literal("FigmaNodeRenderAsync"),
7942
+ var DTOFigmaNodeRenderAsyncActionInput = z270.object({
7943
+ type: z270.literal("FigmaNodeRenderAsync"),
7831
7944
  nodes: DTOFigmaNodeRenderInput.array()
7832
7945
  });
7833
7946
 
7834
7947
  // src/api/dto/elements/frame-node-structures/frame-node-structure.ts
7835
- import { z as z269 } from "zod";
7836
- var DTOFrameNodeStructure = z269.object({
7837
- id: z269.string(),
7838
- persistentId: z269.string(),
7839
- designSystemVersionId: z269.string(),
7948
+ import { z as z271 } from "zod";
7949
+ var DTOFrameNodeStructure = z271.object({
7950
+ id: z271.string(),
7951
+ persistentId: z271.string(),
7952
+ designSystemVersionId: z271.string(),
7840
7953
  origin: FigmaFileStructureOrigin,
7841
7954
  assetsInFile: FigmaFileStructureStatistics
7842
7955
  });
7843
- var DTOFrameNodeStructureListResponse = z269.object({
7956
+ var DTOFrameNodeStructureListResponse = z271.object({
7844
7957
  structures: DTOFrameNodeStructure.array()
7845
7958
  });
7846
7959
 
7847
7960
  // src/api/dto/elements/properties/property-definitions.ts
7848
- import { z as z270 } from "zod";
7961
+ import { z as z272 } from "zod";
7849
7962
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
7850
- var DTOElementPropertyDefinitionOption = z270.object({
7851
- id: z270.string(),
7852
- name: z270.string(),
7963
+ var DTOElementPropertyDefinitionOption = z272.object({
7964
+ id: z272.string(),
7965
+ name: z272.string(),
7853
7966
  backgroundColor: DTOColorTokenInlineData.optional()
7854
7967
  });
7855
- var DTOElementPropertyDefinition = z270.object({
7856
- id: z270.string(),
7857
- designSystemVersionId: z270.string(),
7968
+ var DTOElementPropertyDefinition = z272.object({
7969
+ id: z272.string(),
7970
+ designSystemVersionId: z272.string(),
7858
7971
  meta: DTOObjectMeta,
7859
- persistentId: z270.string(),
7972
+ persistentId: z272.string(),
7860
7973
  type: ElementPropertyTypeSchema,
7861
7974
  targetElementType: ElementPropertyTargetType,
7862
- codeName: z270.string().regex(CODE_NAME_REGEX2),
7863
- options: nullishToOptional(z270.array(DTOElementPropertyDefinitionOption)),
7975
+ codeName: z272.string().regex(CODE_NAME_REGEX2),
7976
+ options: nullishToOptional(z272.array(DTOElementPropertyDefinitionOption)),
7864
7977
  linkElementType: nullishToOptional(ElementPropertyLinkType),
7865
- isImmutable: z270.boolean(),
7978
+ isImmutable: z272.boolean(),
7866
7979
  immutablePropertyType: ElementPropertyImmutableType.optional()
7867
7980
  });
7868
- var DTOElementPropertyDefinitionListResponse = z270.object({
7869
- definitions: z270.array(DTOElementPropertyDefinition)
7981
+ var DTOElementPropertyDefinitionListResponse = z272.object({
7982
+ definitions: z272.array(DTOElementPropertyDefinition)
7870
7983
  });
7871
- var DTOElementPropertyDefinitionResponse = z270.object({
7984
+ var DTOElementPropertyDefinitionResponse = z272.object({
7872
7985
  definition: DTOElementPropertyDefinition
7873
7986
  });
7874
- var DTOElementPropertyDefinitionCreatePayload = z270.object({
7987
+ var DTOElementPropertyDefinitionCreatePayload = z272.object({
7875
7988
  meta: DTOObjectMeta,
7876
- persistentId: z270.string(),
7989
+ persistentId: z272.string(),
7877
7990
  type: ElementPropertyTypeSchema,
7878
7991
  targetElementType: ElementPropertyTargetType,
7879
- codeName: z270.string().regex(CODE_NAME_REGEX2),
7880
- options: nullishToOptional(z270.array(DTOElementPropertyDefinitionOption)),
7992
+ codeName: z272.string().regex(CODE_NAME_REGEX2),
7993
+ options: nullishToOptional(z272.array(DTOElementPropertyDefinitionOption)),
7881
7994
  linkElementType: nullishToOptional(ElementPropertyLinkType),
7882
- columnWidth: z270.number().max(1024).optional()
7995
+ columnWidth: z272.number().max(1024).optional()
7883
7996
  });
7884
- var DTOElementPropertyDefinitionUpdatePayload = z270.object({
7997
+ var DTOElementPropertyDefinitionUpdatePayload = z272.object({
7885
7998
  meta: DTOObjectMeta.optional(),
7886
- codeName: z270.string().regex(CODE_NAME_REGEX2).optional(),
7887
- options: z270.array(DTOElementPropertyDefinitionOption).optional()
7999
+ codeName: z272.string().regex(CODE_NAME_REGEX2).optional(),
8000
+ options: z272.array(DTOElementPropertyDefinitionOption).optional()
7888
8001
  });
7889
8002
 
7890
8003
  // src/api/dto/elements/properties/property-values.ts
7891
- import { z as z271 } from "zod";
7892
- var DTOElementPropertyValue = z271.object({
7893
- id: z271.string(),
7894
- designSystemVersionId: z271.string(),
7895
- definitionId: z271.string(),
7896
- targetElementId: z271.string(),
7897
- value: z271.union([z271.string(), z271.number(), z271.boolean()]).optional(),
7898
- valuePreview: z271.string().optional()
7899
- });
7900
- var DTOElementPropertyValueListResponse = z271.object({
7901
- values: z271.array(DTOElementPropertyValue)
7902
- });
7903
- var DTOElementPropertyValueResponse = z271.object({
8004
+ import { z as z273 } from "zod";
8005
+ var DTOElementPropertyValue = z273.object({
8006
+ id: z273.string(),
8007
+ designSystemVersionId: z273.string(),
8008
+ definitionId: z273.string(),
8009
+ targetElementId: z273.string(),
8010
+ value: z273.union([z273.string(), z273.number(), z273.boolean()]).optional(),
8011
+ valuePreview: z273.string().optional()
8012
+ });
8013
+ var DTOElementPropertyValueListResponse = z273.object({
8014
+ values: z273.array(DTOElementPropertyValue)
8015
+ });
8016
+ var DTOElementPropertyValueResponse = z273.object({
7904
8017
  value: DTOElementPropertyValue
7905
8018
  });
7906
- var DTOElementPropertyValuesEditActionOutput = z271.object({
7907
- type: z271.literal("ElementPropertyValuesEdit"),
7908
- output: z271.object({ success: z271.literal(true) })
8019
+ var DTOElementPropertyValuesEditActionOutput = z273.object({
8020
+ type: z273.literal("ElementPropertyValuesEdit"),
8021
+ output: z273.object({ success: z273.literal(true) })
7909
8022
  });
7910
- var DTOElementPropertyValueUpsertPaylod = z271.object({
7911
- definitionId: z271.string(),
7912
- targetElementId: z271.string(),
7913
- value: z271.string().or(z271.number()).or(z271.boolean()).nullable()
8023
+ var DTOElementPropertyValueUpsertPaylod = z273.object({
8024
+ definitionId: z273.string(),
8025
+ targetElementId: z273.string(),
8026
+ value: z273.string().or(z273.number()).or(z273.boolean()).nullable()
7914
8027
  });
7915
- var DTOElementPropertyValuesEditActionInput = z271.object({
7916
- type: z271.literal("ElementPropertyValuesEdit"),
8028
+ var DTOElementPropertyValuesEditActionInput = z273.object({
8029
+ type: z273.literal("ElementPropertyValuesEdit"),
7917
8030
  values: DTOElementPropertyValueUpsertPaylod.array()
7918
8031
  });
7919
8032
 
7920
8033
  // src/api/dto/elements/elements-action-v2.ts
7921
- import { z as z272 } from "zod";
7922
- var DTOElementActionOutput = z272.discriminatedUnion("type", [
8034
+ import { z as z274 } from "zod";
8035
+ var DTOElementActionOutput = z274.discriminatedUnion("type", [
7923
8036
  // Documentation pages
7924
8037
  DTODocumentationPageCreateActionOutputV2,
7925
8038
  DTODocumentationPageUpdateActionOutputV2,
@@ -7946,7 +8059,7 @@ var DTOElementActionOutput = z272.discriminatedUnion("type", [
7946
8059
  // Element properties
7947
8060
  DTOElementPropertyValuesEditActionOutput
7948
8061
  ]);
7949
- var DTOElementActionInput = z272.discriminatedUnion("type", [
8062
+ var DTOElementActionInput = z274.discriminatedUnion("type", [
7950
8063
  // Documentation pages
7951
8064
  DTODocumentationPageCreateActionInputV2,
7952
8065
  DTODocumentationPageUpdateActionInputV2,
@@ -7973,90 +8086,90 @@ var DTOElementActionInput = z272.discriminatedUnion("type", [
7973
8086
  // Element properties
7974
8087
  DTOElementPropertyValuesEditActionInput
7975
8088
  ]).and(
7976
- z272.object({
7977
- tId: z272.string().optional()
8089
+ z274.object({
8090
+ tId: z274.string().optional()
7978
8091
  })
7979
8092
  );
7980
8093
 
7981
8094
  // src/api/dto/elements/get-elements-v2.ts
7982
- import { z as z273 } from "zod";
7983
- var DTOElementsGetTypeFilter = z273.enum(["FigmaNode"]);
7984
- var DTOElementsGetQuerySchema = z273.object({
7985
- types: z273.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
7986
- responseVersion: z273.coerce.number().default(1)
8095
+ import { z as z275 } from "zod";
8096
+ var DTOElementsGetTypeFilter = z275.enum(["FigmaNode"]);
8097
+ var DTOElementsGetQuerySchema = z275.object({
8098
+ types: z275.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
8099
+ responseVersion: z275.coerce.number().default(1)
7987
8100
  });
7988
- var DTOElementsGetOutput = z273.object({
7989
- figmaNodes: z273.array(DTOFigmaNode).optional()
8101
+ var DTOElementsGetOutput = z275.object({
8102
+ figmaNodes: z275.array(DTOFigmaNode).optional()
7990
8103
  });
7991
- var DTOElementsGetOutputV2 = z273.object({
7992
- figmaNodes: z273.array(DTOFigmaNodeV2).optional()
8104
+ var DTOElementsGetOutputV2 = z275.object({
8105
+ figmaNodes: z275.array(DTOFigmaNodeV2).optional()
7993
8106
  });
7994
8107
 
7995
8108
  // src/api/dto/figma-components/assets/download.ts
7996
- import { z as z274 } from "zod";
7997
- var DTOAssetRenderConfiguration = z274.object({
7998
- prefix: z274.string().optional(),
7999
- suffix: z274.string().optional(),
8000
- scale: z274.enum(["x1", "x2", "x3", "x4"]),
8001
- format: z274.enum(["png", "pdf", "svg"])
8002
- });
8003
- var DTORenderedAssetFile = z274.object({
8004
- assetId: z274.string(),
8005
- fileName: z274.string(),
8006
- sourceUrl: z274.string(),
8109
+ import { z as z276 } from "zod";
8110
+ var DTOAssetRenderConfiguration = z276.object({
8111
+ prefix: z276.string().optional(),
8112
+ suffix: z276.string().optional(),
8113
+ scale: z276.enum(["x1", "x2", "x3", "x4"]),
8114
+ format: z276.enum(["png", "pdf", "svg"])
8115
+ });
8116
+ var DTORenderedAssetFile = z276.object({
8117
+ assetId: z276.string(),
8118
+ fileName: z276.string(),
8119
+ sourceUrl: z276.string(),
8007
8120
  settings: DTOAssetRenderConfiguration,
8008
- originalName: z274.string()
8121
+ originalName: z276.string()
8009
8122
  });
8010
- var DTODownloadAssetsRequest = z274.object({
8011
- persistentIds: z274.array(z274.string().uuid()).optional(),
8123
+ var DTODownloadAssetsRequest = z276.object({
8124
+ persistentIds: z276.array(z276.string().uuid()).optional(),
8012
8125
  settings: DTOAssetRenderConfiguration.array()
8013
8126
  });
8014
- var DTODownloadAssetsResponse = z274.object({
8127
+ var DTODownloadAssetsResponse = z276.object({
8015
8128
  items: DTORenderedAssetFile.array()
8016
8129
  });
8017
8130
 
8018
8131
  // src/api/dto/liveblocks/auth-response.ts
8019
- import { z as z275 } from "zod";
8020
- var DTOLiveblocksAuthResponse = z275.object({
8021
- token: z275.string()
8132
+ import { z as z277 } from "zod";
8133
+ var DTOLiveblocksAuthResponse = z277.object({
8134
+ token: z277.string()
8022
8135
  });
8023
8136
 
8024
8137
  // src/api/dto/themes/override.ts
8025
- import { z as z276 } from "zod";
8138
+ import { z as z278 } from "zod";
8026
8139
  var DTOThemeOverride = DesignTokenTypedData.and(
8027
- z276.object({
8028
- tokenPersistentId: z276.string(),
8140
+ z278.object({
8141
+ tokenPersistentId: z278.string(),
8029
8142
  origin: ThemeOverrideOrigin.optional()
8030
8143
  })
8031
8144
  );
8032
8145
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
8033
- z276.object({
8034
- tokenPersistentId: z276.string()
8146
+ z278.object({
8147
+ tokenPersistentId: z278.string()
8035
8148
  })
8036
8149
  );
8037
8150
 
8038
8151
  // src/api/dto/themes/theme.ts
8039
- import { z as z277 } from "zod";
8040
- var DTOTheme = z277.object({
8041
- id: z277.string(),
8042
- persistentId: z277.string(),
8043
- designSystemVersionId: z277.string(),
8044
- brandId: z277.string(),
8152
+ import { z as z279 } from "zod";
8153
+ var DTOTheme = z279.object({
8154
+ id: z279.string(),
8155
+ persistentId: z279.string(),
8156
+ designSystemVersionId: z279.string(),
8157
+ brandId: z279.string(),
8045
8158
  meta: ObjectMeta,
8046
- codeName: z277.string(),
8159
+ codeName: z279.string(),
8047
8160
  overrides: DTOThemeOverride.array()
8048
8161
  });
8049
- var DTOThemeResponse = z277.object({
8162
+ var DTOThemeResponse = z279.object({
8050
8163
  theme: DTOTheme
8051
8164
  });
8052
- var DTOThemeListResponse = z277.object({
8165
+ var DTOThemeListResponse = z279.object({
8053
8166
  themes: DTOTheme.array()
8054
8167
  });
8055
- var DTOThemeCreatePayload = z277.object({
8168
+ var DTOThemeCreatePayload = z279.object({
8056
8169
  meta: ObjectMeta,
8057
- persistentId: z277.string(),
8058
- brandId: z277.string(),
8059
- codeName: z277.string(),
8170
+ persistentId: z279.string(),
8171
+ brandId: z279.string(),
8172
+ codeName: z279.string(),
8060
8173
  overrides: DTOThemeOverride.array()
8061
8174
  });
8062
8175
 
@@ -8292,13 +8405,13 @@ var ExportersEndpoint = class {
8292
8405
  };
8293
8406
 
8294
8407
  // src/api/endpoints/codegen/jobs.ts
8295
- import { z as z278 } from "zod";
8408
+ import { z as z280 } from "zod";
8296
8409
  var ExporterJobsEndpoint = class {
8297
8410
  constructor(requestExecutor) {
8298
8411
  this.requestExecutor = requestExecutor;
8299
8412
  }
8300
8413
  list(workspaceId) {
8301
- return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z278.any());
8414
+ return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z280.any());
8302
8415
  }
8303
8416
  get(workspaceId, jobId) {
8304
8417
  return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
@@ -8356,7 +8469,7 @@ var CodegenEndpoint = class {
8356
8469
  };
8357
8470
 
8358
8471
  // src/api/endpoints/design-system/versions/brands.ts
8359
- import { z as z279 } from "zod";
8472
+ import { z as z281 } from "zod";
8360
8473
  var BrandsEndpoint = class {
8361
8474
  constructor(requestExecutor) {
8362
8475
  this.requestExecutor = requestExecutor;
@@ -8390,7 +8503,7 @@ var BrandsEndpoint = class {
8390
8503
  });
8391
8504
  }
8392
8505
  delete(dsId, vId, brandId) {
8393
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z279.any(), {
8506
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z281.any(), {
8394
8507
  method: "DELETE"
8395
8508
  });
8396
8509
  }
@@ -8426,6 +8539,16 @@ var CodeComponentsEndpoint = class {
8426
8539
  }
8427
8540
  );
8428
8541
  }
8542
+ async analyzePackage(dsId, vId, body) {
8543
+ return this.requestExecutor.json(
8544
+ `/design-systems/${dsId}/versions/${vId}/code-components/analyze-package`,
8545
+ DTOAnalyzeCodeComponentsInPackageResponse,
8546
+ {
8547
+ body,
8548
+ method: "POST"
8549
+ }
8550
+ );
8551
+ }
8429
8552
  };
8430
8553
 
8431
8554
  // src/api/endpoints/design-system/versions/documentation.ts
@@ -8603,7 +8726,7 @@ var ImportJobsEndpoint = class {
8603
8726
  };
8604
8727
 
8605
8728
  // src/api/endpoints/design-system/versions/overrides.ts
8606
- import { z as z280 } from "zod";
8729
+ import { z as z282 } from "zod";
8607
8730
  var OverridesEndpoint = class {
8608
8731
  constructor(requestExecutor) {
8609
8732
  this.requestExecutor = requestExecutor;
@@ -8611,7 +8734,7 @@ var OverridesEndpoint = class {
8611
8734
  create(dsId, versionId, themeId, body) {
8612
8735
  return this.requestExecutor.json(
8613
8736
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
8614
- z280.any(),
8737
+ z282.any(),
8615
8738
  {
8616
8739
  method: "POST",
8617
8740
  body
@@ -8621,7 +8744,7 @@ var OverridesEndpoint = class {
8621
8744
  };
8622
8745
 
8623
8746
  // src/api/endpoints/design-system/versions/property-definitions.ts
8624
- import { z as z281 } from "zod";
8747
+ import { z as z283 } from "zod";
8625
8748
  var ElementPropertyDefinitionsEndpoint = class {
8626
8749
  constructor(requestExecutor) {
8627
8750
  this.requestExecutor = requestExecutor;
@@ -8649,7 +8772,7 @@ var ElementPropertyDefinitionsEndpoint = class {
8649
8772
  delete(designSystemId, versionId, defId) {
8650
8773
  return this.requestExecutor.json(
8651
8774
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
8652
- z281.any(),
8775
+ z283.any(),
8653
8776
  { method: "DELETE" }
8654
8777
  );
8655
8778
  }
@@ -8688,7 +8811,7 @@ var VersionStatsEndpoint = class {
8688
8811
  };
8689
8812
 
8690
8813
  // src/api/endpoints/design-system/versions/themes.ts
8691
- import { z as z282 } from "zod";
8814
+ import { z as z284 } from "zod";
8692
8815
  var ThemesEndpoint = class {
8693
8816
  constructor(requestExecutor) {
8694
8817
  this.requestExecutor = requestExecutor;
@@ -8711,7 +8834,7 @@ var ThemesEndpoint = class {
8711
8834
  });
8712
8835
  }
8713
8836
  delete(dsId, versionId, themeId) {
8714
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z282.any(), {
8837
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z284.any(), {
8715
8838
  method: "DELETE"
8716
8839
  });
8717
8840
  }
@@ -8880,7 +9003,7 @@ var DesignSystemContactsEndpoint = class {
8880
9003
  };
8881
9004
 
8882
9005
  // src/api/endpoints/design-system/design-systems.ts
8883
- import { z as z285 } from "zod";
9006
+ import { z as z288 } from "zod";
8884
9007
 
8885
9008
  // src/api/endpoints/design-system/figma-node-structures.ts
8886
9009
  var FigmaNodeStructuresEndpoint = class {
@@ -8957,7 +9080,7 @@ var DesignSystemPageRedirectsEndpoint = class {
8957
9080
  };
8958
9081
 
8959
9082
  // src/api/endpoints/design-system/sources.ts
8960
- import { z as z283 } from "zod";
9083
+ import { z as z285 } from "zod";
8961
9084
  var DesignSystemSourcesEndpoint = class {
8962
9085
  constructor(requestExecutor) {
8963
9086
  this.requestExecutor = requestExecutor;
@@ -8975,7 +9098,7 @@ var DesignSystemSourcesEndpoint = class {
8975
9098
  return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
8976
9099
  }
8977
9100
  delete(dsId, sourceId) {
8978
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z283.any(), { method: "DELETE" });
9101
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z285.any(), { method: "DELETE" });
8979
9102
  }
8980
9103
  figmaImport(dsId, payload) {
8981
9104
  return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
@@ -8984,15 +9107,29 @@ var DesignSystemSourcesEndpoint = class {
8984
9107
  });
8985
9108
  }
8986
9109
  storybookImport(dsId, payload) {
8987
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook-import`, DTODataSourcesStorybookResponse, {
8988
- method: "POST",
8989
- body: payload
8990
- });
9110
+ return this.requestExecutor.json(
9111
+ `/design-systems/${dsId}/versions/head/storybook-import`,
9112
+ DTODataSourcesStorybookResponse,
9113
+ {
9114
+ method: "POST",
9115
+ body: payload
9116
+ }
9117
+ );
9118
+ }
9119
+ updateStorybookImport(dsId, versionId, payload) {
9120
+ return this.requestExecutor.json(
9121
+ `/design-systems/${dsId}/versions/${versionId}/storybook-import`,
9122
+ DTODataSourcesStorybookResponse,
9123
+ {
9124
+ method: "POST",
9125
+ body: payload
9126
+ }
9127
+ );
8991
9128
  }
8992
9129
  };
8993
9130
 
8994
9131
  // src/api/endpoints/design-system/storybook.ts
8995
- import { z as z284 } from "zod";
9132
+ import { z as z286 } from "zod";
8996
9133
  var StorybookEntriesEndpoint = class {
8997
9134
  constructor(requestExecutor) {
8998
9135
  this.requestExecutor = requestExecutor;
@@ -9001,10 +9138,51 @@ var StorybookEntriesEndpoint = class {
9001
9138
  return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse);
9002
9139
  }
9003
9140
  replace(dsId, entryId) {
9004
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, DTOStorybookEntryReplaceAction, { method: "PUT" });
9141
+ return this.requestExecutor.json(
9142
+ `/design-systems/${dsId}/versions/head/storybook/${entryId}`,
9143
+ DTOStorybookEntryReplaceAction,
9144
+ { method: "PUT" }
9145
+ );
9005
9146
  }
9006
9147
  delete(dsId, entryId) {
9007
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z284.any(), { method: "DELETE" });
9148
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z286.any(), {
9149
+ method: "DELETE"
9150
+ });
9151
+ }
9152
+ };
9153
+
9154
+ // src/api/endpoints/design-system/storybook-hosting.ts
9155
+ import { z as z287 } from "zod";
9156
+ var StorybookHostingEndpoint = class {
9157
+ constructor(requestExecutor) {
9158
+ this.requestExecutor = requestExecutor;
9159
+ }
9160
+ getSignedUploadUrl(dsId, body) {
9161
+ return this.requestExecutor.json(`/design-systems/${dsId}/storybook/upload`, DTOStorybookUploadUrlResponse, {
9162
+ body,
9163
+ method: "POST"
9164
+ });
9165
+ }
9166
+ delete(dsId, storybookUploadId) {
9167
+ return this.requestExecutor.json(
9168
+ `/design-systems/${dsId}/storybook/${storybookUploadId}`,
9169
+ z287.object({ ok: z287.boolean() }),
9170
+ {
9171
+ method: "DELETE"
9172
+ }
9173
+ );
9174
+ }
9175
+ getUploadStatus(dsId, storybookUploadId) {
9176
+ return this.requestExecutor.json(
9177
+ `/design-systems/${dsId}/storybook/${storybookUploadId}/status`,
9178
+ DTOStorybookUploadStatus
9179
+ );
9180
+ }
9181
+ getAccessToken(dsId, name) {
9182
+ return this.requestExecutor.json(
9183
+ `/design-systems/${dsId}/storybook/alias/${name}/access-token`,
9184
+ DTOStorybookAccessTokenResponse
9185
+ );
9008
9186
  }
9009
9187
  };
9010
9188
 
@@ -9017,6 +9195,7 @@ var DesignSystemsEndpoint = class {
9017
9195
  __publicField(this, "bff");
9018
9196
  __publicField(this, "sources");
9019
9197
  __publicField(this, "storybook");
9198
+ __publicField(this, "storybookHosting");
9020
9199
  __publicField(this, "contacts");
9021
9200
  __publicField(this, "redirects");
9022
9201
  __publicField(this, "figmaNodeStructures");
@@ -9026,6 +9205,7 @@ var DesignSystemsEndpoint = class {
9026
9205
  this.bff = new DesignSystemBffEndpoint(requestExecutor);
9027
9206
  this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
9028
9207
  this.storybook = new StorybookEntriesEndpoint(requestExecutor);
9208
+ this.storybookHosting = new StorybookHostingEndpoint(requestExecutor);
9029
9209
  this.contacts = new DesignSystemContactsEndpoint(requestExecutor);
9030
9210
  this.redirects = new DesignSystemPageRedirectsEndpoint(requestExecutor);
9031
9211
  this.figmaNodeStructures = new FigmaNodeStructuresEndpoint(requestExecutor);
@@ -9037,11 +9217,14 @@ var DesignSystemsEndpoint = class {
9037
9217
  list(wsId) {
9038
9218
  return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
9039
9219
  }
9220
+ listUserDesignSystems() {
9221
+ return this.requestExecutor.json("/design-systems", DTOUserDesignSystemsResponse);
9222
+ }
9040
9223
  get(dsId) {
9041
9224
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
9042
9225
  }
9043
9226
  delete(dsId) {
9044
- return this.requestExecutor.json(`/design-systems/${dsId}`, z285.any(), { method: "DELETE" });
9227
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z288.any(), { method: "DELETE" });
9045
9228
  }
9046
9229
  update(dsId, body) {
9047
9230
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -9058,7 +9241,7 @@ var DesignSystemsEndpoint = class {
9058
9241
  };
9059
9242
 
9060
9243
  // src/api/endpoints/workspaces/integrations.ts
9061
- import { z as z286 } from "zod";
9244
+ import { z as z289 } from "zod";
9062
9245
  var WorkspaceIntegrationsEndpoint = class {
9063
9246
  constructor(requestExecutor) {
9064
9247
  this.requestExecutor = requestExecutor;
@@ -9067,7 +9250,7 @@ var WorkspaceIntegrationsEndpoint = class {
9067
9250
  return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
9068
9251
  }
9069
9252
  delete(wsId, iId) {
9070
- return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z286.unknown(), { method: "DELETE" });
9253
+ return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z289.unknown(), { method: "DELETE" });
9071
9254
  }
9072
9255
  };
9073
9256
 
@@ -9099,7 +9282,7 @@ var WorkspaceInvitationsEndpoint = class {
9099
9282
  };
9100
9283
 
9101
9284
  // src/api/endpoints/workspaces/members.ts
9102
- import { z as z287 } from "zod";
9285
+ import { z as z290 } from "zod";
9103
9286
  var WorkspaceMembersEndpoint = class {
9104
9287
  constructor(requestExecutor) {
9105
9288
  this.requestExecutor = requestExecutor;
@@ -9116,7 +9299,7 @@ var WorkspaceMembersEndpoint = class {
9116
9299
  });
9117
9300
  }
9118
9301
  invite(workspaceId, body) {
9119
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z287.any(), { method: "POST", body });
9302
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z290.any(), { method: "POST", body });
9120
9303
  }
9121
9304
  delete(workspaceId, userId) {
9122
9305
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -9125,17 +9308,38 @@ var WorkspaceMembersEndpoint = class {
9125
9308
  }
9126
9309
  };
9127
9310
 
9311
+ // src/api/endpoints/workspaces/npm-register.ts
9312
+ var WorkspaceNpmRegistryEndpoint = class {
9313
+ constructor(requestExecutor) {
9314
+ this.requestExecutor = requestExecutor;
9315
+ }
9316
+ getAccessToken(wsId) {
9317
+ return this.requestExecutor.json(
9318
+ `/workspaces/${wsId}/npm-registry/access-token`,
9319
+ DTONpmRegistryAccessTokenResponse
9320
+ );
9321
+ }
9322
+ update(wsId, body) {
9323
+ return this.requestExecutor.json(`/workspaces/${wsId}/npm-registry`, DTOUpdateRegistryOutput, {
9324
+ method: "PUT",
9325
+ body
9326
+ });
9327
+ }
9328
+ };
9329
+
9128
9330
  // src/api/endpoints/workspaces/workspaces.ts
9129
- import { z as z288 } from "zod";
9331
+ import { z as z291 } from "zod";
9130
9332
  var WorkspacesEndpoint = class {
9131
9333
  constructor(requestExecutor) {
9132
9334
  this.requestExecutor = requestExecutor;
9133
9335
  __publicField(this, "members");
9134
9336
  __publicField(this, "invitations");
9337
+ __publicField(this, "npmRegistry");
9135
9338
  __publicField(this, "integrations");
9136
9339
  this.members = new WorkspaceMembersEndpoint(requestExecutor);
9137
9340
  this.invitations = new WorkspaceInvitationsEndpoint(requestExecutor);
9138
9341
  this.integrations = new WorkspaceIntegrationsEndpoint(requestExecutor);
9342
+ this.npmRegistry = new WorkspaceNpmRegistryEndpoint(requestExecutor);
9139
9343
  }
9140
9344
  create(body) {
9141
9345
  return this.requestExecutor.json("/workspaces", DTOWorkspaceResponse, {
@@ -9147,14 +9351,17 @@ var WorkspacesEndpoint = class {
9147
9351
  }
9148
9352
  });
9149
9353
  }
9354
+ list() {
9355
+ return this.requestExecutor.json(`/workspaces`, DTOUserWorkspaceMembershipsResponse, { method: "GET" });
9356
+ }
9150
9357
  get(workspaceId) {
9151
9358
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
9152
9359
  }
9153
9360
  delete(workspaceId) {
9154
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z288.any(), { method: "DELETE" });
9361
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z291.any(), { method: "DELETE" });
9155
9362
  }
9156
9363
  subscription(workspaceId) {
9157
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z288.any(), { method: "GET" });
9364
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z291.any(), { method: "GET" });
9158
9365
  }
9159
9366
  transferOwnership(workspaceId, body) {
9160
9367
  return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
@@ -9254,9 +9461,9 @@ ${bodyText}`,
9254
9461
 
9255
9462
  // src/api/transport/request-executor.ts
9256
9463
  import fetch from "node-fetch";
9257
- import { z as z289 } from "zod";
9258
- var ResponseWrapper = z289.object({
9259
- result: z289.record(z289.any())
9464
+ import { z as z292 } from "zod";
9465
+ var ResponseWrapper = z292.object({
9466
+ result: z292.record(z292.any())
9260
9467
  });
9261
9468
  var RequestExecutor = class {
9262
9469
  constructor(testServerConfig) {
@@ -9330,31 +9537,31 @@ var SupernovaApiClient = class {
9330
9537
  };
9331
9538
 
9332
9539
  // src/events/design-system.ts
9333
- import { z as z290 } from "zod";
9334
- var DTOEventFigmaNodesRendered = z290.object({
9335
- type: z290.literal("DesignSystem.FigmaNodesRendered"),
9336
- designSystemId: z290.string(),
9337
- versionId: z290.string(),
9338
- figmaNodePersistentIds: z290.string().array()
9339
- });
9340
- var DTOEventDataSourcesImported = z290.object({
9341
- type: z290.literal("DesignSystem.ImportJobFinished"),
9342
- designSystemId: z290.string(),
9343
- versionId: z290.string(),
9344
- importJobId: z290.string(),
9540
+ import { z as z293 } from "zod";
9541
+ var DTOEventFigmaNodesRendered = z293.object({
9542
+ type: z293.literal("DesignSystem.FigmaNodesRendered"),
9543
+ designSystemId: z293.string(),
9544
+ versionId: z293.string(),
9545
+ figmaNodePersistentIds: z293.string().array()
9546
+ });
9547
+ var DTOEventDataSourcesImported = z293.object({
9548
+ type: z293.literal("DesignSystem.ImportJobFinished"),
9549
+ designSystemId: z293.string(),
9550
+ versionId: z293.string(),
9551
+ importJobId: z293.string(),
9345
9552
  dataSourceType: DataSourceRemoteType,
9346
- dataSourceIds: z290.string().array()
9553
+ dataSourceIds: z293.string().array()
9347
9554
  });
9348
9555
 
9349
9556
  // src/events/event.ts
9350
- import { z as z291 } from "zod";
9351
- var DTOEvent = z291.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
9557
+ import { z as z294 } from "zod";
9558
+ var DTOEvent = z294.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
9352
9559
 
9353
9560
  // src/sync/docs-structure-repo.ts
9354
9561
  import PQueue from "p-queue";
9355
9562
 
9356
9563
  // src/yjs/design-system-content/documentation-hierarchy.ts
9357
- import { z as z292 } from "zod";
9564
+ import { z as z295 } from "zod";
9358
9565
 
9359
9566
  // src/yjs/version-room/base.ts
9360
9567
  var VersionRoomBaseYDoc = class {
@@ -9904,24 +10111,24 @@ var FrontendVersionRoomYDoc = class {
9904
10111
  };
9905
10112
 
9906
10113
  // src/yjs/design-system-content/documentation-hierarchy.ts
9907
- var DocumentationHierarchySettings = z292.object({
9908
- routingVersion: z292.string(),
9909
- isDraftFeatureAdopted: z292.boolean(),
9910
- isApprovalFeatureEnabled: z292.boolean(),
9911
- approvalRequiredForPublishing: z292.boolean()
10114
+ var DocumentationHierarchySettings = z295.object({
10115
+ routingVersion: z295.string(),
10116
+ isDraftFeatureAdopted: z295.boolean(),
10117
+ isApprovalFeatureEnabled: z295.boolean(),
10118
+ approvalRequiredForPublishing: z295.boolean()
9912
10119
  });
9913
10120
  function yjsToDocumentationHierarchy(doc) {
9914
10121
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
9915
10122
  }
9916
10123
 
9917
10124
  // src/yjs/design-system-content/item-configuration.ts
9918
- import { z as z293 } from "zod";
9919
- var DTODocumentationPageRoomHeaderData = z293.object({
9920
- title: z293.string(),
10125
+ import { z as z296 } from "zod";
10126
+ var DTODocumentationPageRoomHeaderData = z296.object({
10127
+ title: z296.string(),
9921
10128
  configuration: DTODocumentationItemConfigurationV2
9922
10129
  });
9923
- var DTODocumentationPageRoomHeaderDataUpdate = z293.object({
9924
- title: z293.string().optional(),
10130
+ var DTODocumentationPageRoomHeaderDataUpdate = z296.object({
10131
+ title: z296.string().optional(),
9925
10132
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
9926
10133
  });
9927
10134
  function itemConfigurationToYjs(yDoc, item) {
@@ -9950,41 +10157,15 @@ function itemConfigurationToYjs(yDoc, item) {
9950
10157
  configuration?.isPrivate !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
9951
10158
  });
9952
10159
  }
9953
- function yjsToItemConfiguration(yDoc) {
9954
- const title = yDoc.getMap("itemTitle").get("title");
9955
- const headerYMap = yDoc.getMap("itemHeader");
9956
- const rawHeader = {
9957
- description: headerYMap.get("description"),
9958
- alignment: headerYMap.get("alignment"),
9959
- foregroundColor: headerYMap.get("foregroundColor"),
9960
- backgroundColor: headerYMap.get("backgroundColor"),
9961
- backgroundImageAsset: headerYMap.get("backgroundImageAsset"),
9962
- backgroundImageScaleType: headerYMap.get("backgroundImageScaleType"),
9963
- showBackgroundOverlay: headerYMap.get("showBackgroundOverlay"),
9964
- showCoverText: headerYMap.get("showCoverText"),
9965
- minHeight: headerYMap.get("minHeight")
9966
- };
9967
- const configYMap = yDoc.getMap("itemConfiguration");
9968
- const rawConfig = {
9969
- showSidebar: configYMap.get("showSidebar"),
9970
- isHidden: configYMap.get("isHidden") ?? false,
9971
- isPrivate: configYMap.get("isPrivate") ?? false,
9972
- header: rawHeader
9973
- };
9974
- return {
9975
- title: z293.string().parse(title),
9976
- configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
9977
- };
9978
- }
9979
10160
 
9980
10161
  // src/yjs/docs-editor/model/block.ts
9981
10162
  var PageBlockEditorModel = PageBlockEditorModelV2;
9982
10163
  var PageSectionEditorModel = PageSectionEditorModelV2;
9983
10164
 
9984
10165
  // src/yjs/docs-editor/model/page.ts
9985
- import { z as z294 } from "zod";
9986
- var DocumentationPageEditorModel = z294.object({
9987
- blocks: z294.array(DocumentationPageContentItem)
10166
+ import { z as z297 } from "zod";
10167
+ var DocumentationPageEditorModel = z297.object({
10168
+ blocks: z297.array(DocumentationPageContentItem)
9988
10169
  });
9989
10170
 
9990
10171
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -13577,7 +13758,7 @@ var blocks = [
13577
13758
 
13578
13759
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
13579
13760
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
13580
- import { z as z295 } from "zod";
13761
+ import { z as z298 } from "zod";
13581
13762
  function yDocToPage(yDoc, definitions) {
13582
13763
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
13583
13764
  }
@@ -13653,7 +13834,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
13653
13834
  if (!id) return null;
13654
13835
  return {
13655
13836
  id,
13656
- title: getProsemirrorAttribute(prosemirrorNode, "title", z295.string()) ?? "",
13837
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z298.string()) ?? "",
13657
13838
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
13658
13839
  };
13659
13840
  }
@@ -13687,7 +13868,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
13687
13868
  });
13688
13869
  }
13689
13870
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
13690
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z295.string());
13871
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z298.string());
13691
13872
  if (!definitionId) {
13692
13873
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
13693
13874
  return [];
@@ -13728,7 +13909,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
13728
13909
  const id = getProsemirrorBlockId(prosemirrorNode);
13729
13910
  if (!id) return null;
13730
13911
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
13731
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z295.string().optional()));
13912
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z298.string().optional()));
13732
13913
  return {
13733
13914
  id,
13734
13915
  type: "Block",
@@ -13851,9 +14032,9 @@ function parseRichTextAttribute(mark) {
13851
14032
  return null;
13852
14033
  }
13853
14034
  function parseProsemirrorLink(mark) {
13854
- const href = getProsemirrorAttribute(mark, "href", z295.string().optional());
14035
+ const href = getProsemirrorAttribute(mark, "href", z298.string().optional());
13855
14036
  if (!href) return null;
13856
- const target = getProsemirrorAttribute(mark, "target", z295.string().optional());
14037
+ const target = getProsemirrorAttribute(mark, "target", z298.string().optional());
13857
14038
  const openInNewTab = target === "_blank";
13858
14039
  if (href.startsWith("@")) {
13859
14040
  return {
@@ -13872,9 +14053,9 @@ function parseProsemirrorLink(mark) {
13872
14053
  }
13873
14054
  }
13874
14055
  function parseProsemirrorCommentHighlight(mark) {
13875
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z295.string().optional());
14056
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z298.string().optional());
13876
14057
  if (!highlightId) return null;
13877
- const isResolved = getProsemirrorAttribute(mark, "resolved", z295.boolean().optional()) ?? false;
14058
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z298.boolean().optional()) ?? false;
13878
14059
  return {
13879
14060
  type: "Comment",
13880
14061
  commentHighlightId: highlightId,
@@ -13885,7 +14066,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
13885
14066
  const id = getProsemirrorBlockId(prosemirrorNode);
13886
14067
  if (!id) return null;
13887
14068
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
13888
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z295.boolean().optional()) !== false;
14069
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z298.boolean().optional()) !== false;
13889
14070
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
13890
14071
  if (!tableChild) {
13891
14072
  return emptyTable(id, variantId, 0);
@@ -13931,9 +14112,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
13931
14112
  function parseAsTableCell(prosemirrorNode) {
13932
14113
  const id = getProsemirrorBlockId(prosemirrorNode);
13933
14114
  if (!id) return null;
13934
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z295.string().optional());
14115
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z298.string().optional());
13935
14116
  let columnWidth;
13936
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z295.array(z295.number()).nullish());
14117
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z298.array(z298.number()).nullish());
13937
14118
  if (columnWidthArray) {
13938
14119
  columnWidth = roundDimension(columnWidthArray[0]);
13939
14120
  }
@@ -13969,7 +14150,7 @@ function parseAsTableNode(prosemirrorNode) {
13969
14150
  value: parseRichText(prosemirrorNode.content ?? [])
13970
14151
  };
13971
14152
  case "image":
13972
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z295.string());
14153
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z298.string());
13973
14154
  if (!items) return null;
13974
14155
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
13975
14156
  if (!parsedItems.success) return null;
@@ -14083,7 +14264,7 @@ function definitionExpectsPlaceholderItem(definition) {
14083
14264
  );
14084
14265
  }
14085
14266
  function parseBlockItems(prosemirrorNode, definition) {
14086
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z295.string());
14267
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z298.string());
14087
14268
  if (!itemsString) return null;
14088
14269
  const itemsJson = JSON.parse(itemsString);
14089
14270
  if (!Array.isArray(itemsJson)) {
@@ -14094,18 +14275,18 @@ function parseBlockItems(prosemirrorNode, definition) {
14094
14275
  }
14095
14276
  function parseAppearance(prosemirrorNode) {
14096
14277
  let appearance = {};
14097
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z295.string().optional());
14278
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z298.string().optional());
14098
14279
  if (rawAppearanceString) {
14099
14280
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
14100
14281
  if (parsedAppearance.success) {
14101
14282
  appearance = parsedAppearance.data;
14102
14283
  }
14103
14284
  }
14104
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z295.number().optional());
14285
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z298.number().optional());
14105
14286
  if (columns) {
14106
14287
  appearance.numberOfColumns = columns;
14107
14288
  }
14108
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z295.string().optional());
14289
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z298.string().optional());
14109
14290
  if (backgroundColor) {
14110
14291
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
14111
14292
  if (parsedColor.success) {
@@ -14204,12 +14385,12 @@ function valueSchemaForPropertyType(type) {
14204
14385
  }
14205
14386
  }
14206
14387
  function getProsemirrorBlockId(prosemirrorNode) {
14207
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z295.string());
14388
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z298.string());
14208
14389
  if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
14209
14390
  return id;
14210
14391
  }
14211
14392
  function getProsemirrorBlockVariantId(prosemirrorNode) {
14212
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z295.string()));
14393
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z298.string()));
14213
14394
  }
14214
14395
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
14215
14396
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -14750,6 +14931,15 @@ export {
14750
14931
  CodeComponentsEndpoint,
14751
14932
  CodegenEndpoint,
14752
14933
  Collection2 as Collection,
14934
+ DTOAccessToken,
14935
+ DTOAccessTokenCreatePayload,
14936
+ DTOAccessTokenFull,
14937
+ DTOAccessTokenFullResponse,
14938
+ DTOAccessTokenListResponse,
14939
+ DTOAccessTokenResponse,
14940
+ DTOAnalyzeCodeComponentsInPackage,
14941
+ DTOAnalyzeCodeComponentsInPackageInput,
14942
+ DTOAnalyzeCodeComponentsInPackageResponse,
14753
14943
  DTOAppBootstrapDataQuery,
14754
14944
  DTOAppBootstrapDataResponse,
14755
14945
  DTOAssetRenderConfiguration,
@@ -14796,6 +14986,7 @@ export {
14796
14986
  DTODeleteDocumentationGroupInput,
14797
14987
  DTODeleteDocumentationPageInputV2,
14798
14988
  DTODeleteDocumentationTabGroupInput,
14989
+ DTODependencyDefinition,
14799
14990
  DTODesignElementsDataDiffResponse,
14800
14991
  DTODesignSystem,
14801
14992
  DTODesignSystemComponent,
@@ -15015,6 +15206,7 @@ export {
15015
15206
  DTOLiveblocksAuthResponse,
15016
15207
  DTOMoveDocumentationGroupInput,
15017
15208
  DTOMoveDocumentationPageInputV2,
15209
+ DTONpmRegistryAccessTokenResponse,
15018
15210
  DTONpmRegistryConfig,
15019
15211
  DTONpmRegistryConfigConstants,
15020
15212
  DTOObjectMeta,
@@ -15048,15 +15240,22 @@ export {
15048
15240
  DTOPublishedDocPageVisitData,
15049
15241
  DTOPublishedDocVisitData,
15050
15242
  DTOPublishedDocVisitHeatMapWeek,
15243
+ DTORegistry,
15051
15244
  DTORenderedAssetFile,
15052
15245
  DTORestoreDocumentationGroupInput,
15053
15246
  DTORestoreDocumentationPageInput,
15247
+ DTOStorybookAccessTokenPayload,
15248
+ DTOStorybookAccessTokenResponse,
15054
15249
  DTOStorybookEntry,
15055
15250
  DTOStorybookEntryListResponse,
15056
15251
  DTOStorybookEntryOrigin,
15057
15252
  DTOStorybookEntryReplaceAction,
15058
15253
  DTOStorybookEntryResponse,
15059
15254
  DTOStorybookImportPayload,
15255
+ DTOStorybookSourceUpdatePayload,
15256
+ DTOStorybookUploadStatus,
15257
+ DTOStorybookUploadUrlRequest,
15258
+ DTOStorybookUploadUrlResponse,
15060
15259
  DTOTheme,
15061
15260
  DTOThemeCreatePayload,
15062
15261
  DTOThemeListResponse,
@@ -15069,9 +15268,12 @@ export {
15069
15268
  DTOUpdateDocumentationGroupInput,
15070
15269
  DTOUpdateDocumentationPageDocumentInputV2,
15071
15270
  DTOUpdateDocumentationPageInputV2,
15271
+ DTOUpdateRegistryInput,
15272
+ DTOUpdateRegistryOutput,
15072
15273
  DTOUpdateUserNotificationSettingsPayload,
15073
15274
  DTOUpdateVersionInput,
15074
15275
  DTOUser,
15276
+ DTOUserDesignSystemsResponse,
15075
15277
  DTOUserGetResponse,
15076
15278
  DTOUserNotificationSettingsResponse,
15077
15279
  DTOUserOnboarding,
@@ -15151,6 +15353,7 @@ export {
15151
15353
  RequestExecutorError,
15152
15354
  ResolvedVariableType,
15153
15355
  StorybookEntriesEndpoint,
15356
+ StorybookHostingEndpoint,
15154
15357
  StringVariableScopeType,
15155
15358
  SupernovaApiClient,
15156
15359
  ThemesEndpoint,
@@ -15170,6 +15373,7 @@ export {
15170
15373
  WorkspaceIntegrationsEndpoint,
15171
15374
  WorkspaceInvitationsEndpoint,
15172
15375
  WorkspaceMembersEndpoint,
15376
+ WorkspaceNpmRegistryEndpoint,
15173
15377
  WorkspacesEndpoint,
15174
15378
  applyActionsLocally,
15175
15379
  applyPrivacyConfigurationToNestedItems,
@@ -15226,7 +15430,6 @@ export {
15226
15430
  validateSsoPayload,
15227
15431
  yDocToPage,
15228
15432
  yXmlFragmentToPage,
15229
- yjsToDocumentationHierarchy,
15230
- yjsToItemConfiguration
15433
+ yjsToDocumentationHierarchy
15231
15434
  };
15232
15435
  //# sourceMappingURL=index.mjs.map