@supernova-studio/client 0.45.0 → 0.45.1

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.
Files changed (28) hide show
  1. package/dist/index.d.mts +319 -122
  2. package/dist/index.d.ts +319 -122
  3. package/dist/index.js +307 -284
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +559 -536
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/api/conversion/documentation/documentation-group-v1-to-dto.ts +30 -5
  9. package/src/api/conversion/documentation/documentation-group-v2-to-dto.ts +28 -8
  10. package/src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts +18 -16
  11. package/src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts +15 -13
  12. package/src/api/conversion/documentation/documentation-page-to-dto-utils.ts +62 -0
  13. package/src/api/conversion/documentation/documentation-page-v1-to-dto.ts +47 -26
  14. package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +23 -9
  15. package/src/api/conversion/index.ts +0 -2
  16. package/src/api/dto/design-systems/version.ts +17 -0
  17. package/src/api/dto/workspaces/integrations.ts +2 -2
  18. package/src/api/payloads/design-systems/version.ts +5 -2
  19. package/src/api/payloads/workspaces/workspace-integrations.ts +9 -1
  20. package/src/api/conversion/design-system/index.ts +0 -1
  21. package/src/api/conversion/design-system/version-to-dto.ts +0 -17
  22. package/src/api/conversion/design-systems/brand.ts +0 -14
  23. package/src/api/conversion/design-systems/elements/index.ts +0 -1
  24. package/src/api/conversion/design-systems/elements/properties/index.ts +0 -2
  25. package/src/api/conversion/design-systems/elements/properties/property-definition.ts +0 -21
  26. package/src/api/conversion/design-systems/elements/properties/property-value.ts +0 -28
  27. package/src/api/conversion/design-systems/index.ts +0 -3
  28. package/src/api/conversion/design-systems/view.ts +0 -18
package/dist/index.mjs CHANGED
@@ -1,92 +1,3 @@
1
- // src/api/conversion/design-system/version-to-dto.ts
2
- function designSystemVersionToDto(version) {
3
- return {
4
- id: version.id,
5
- designSystemId: version.designSystemId,
6
- createdAt: version.createdAt,
7
- meta: {
8
- name: version.name,
9
- description: version.comment
10
- },
11
- version: version.version,
12
- changeLog: version.changeLog,
13
- isReadonly: version.isReadonly
14
- };
15
- }
16
-
17
- // src/api/conversion/design-systems/elements/properties/property-definition.ts
18
- function elementPropertyDefinitionToDto(elementProperyDefinition) {
19
- return {
20
- id: elementProperyDefinition.id,
21
- designSystemVersionId: elementProperyDefinition.designSystemVersionId,
22
- meta: {
23
- name: elementProperyDefinition.name,
24
- description: elementProperyDefinition.description
25
- },
26
- persistentId: elementProperyDefinition.persistentId,
27
- type: elementProperyDefinition.type,
28
- targetElementType: elementProperyDefinition.targetElementType,
29
- codeName: elementProperyDefinition.codeName,
30
- options: elementProperyDefinition.options,
31
- linkElementType: elementProperyDefinition.linkElementType
32
- };
33
- }
34
-
35
- // src/api/conversion/design-systems/elements/properties/property-value.ts
36
- function elementPropertyValueToDto(elementPropertyValue) {
37
- let value;
38
- let valuePreview;
39
- if (elementPropertyValue.stringValue) {
40
- value = elementPropertyValue.stringValue;
41
- } else if (elementPropertyValue.numberValue) {
42
- value = elementPropertyValue.numberValue;
43
- } else if (typeof elementPropertyValue.booleanValue === "boolean") {
44
- value = elementPropertyValue.booleanValue;
45
- } else if (elementPropertyValue.referenceValue) {
46
- value = elementPropertyValue.referenceValue;
47
- valuePreview = elementPropertyValue.referenceValuePreview;
48
- } else {
49
- value = void 0;
50
- }
51
- return {
52
- id: elementPropertyValue.id,
53
- designSystemVersionId: elementPropertyValue.designSystemVersionId,
54
- definitionId: elementPropertyValue.definitionPersistentId,
55
- targetElementId: elementPropertyValue.targetElementPersistentId,
56
- value,
57
- valuePreview
58
- };
59
- }
60
-
61
- // src/api/conversion/design-systems/brand.ts
62
- function designSystemBrandToDto(brand) {
63
- return {
64
- id: brand.id,
65
- designSystemVersionId: brand.designSystemVersionId,
66
- persistentId: brand.persistentId,
67
- meta: {
68
- name: brand.name,
69
- description: brand.description
70
- }
71
- };
72
- }
73
-
74
- // src/api/conversion/design-systems/view.ts
75
- function elementViewToDto(elementView, columns) {
76
- columns.sort((lhs, rhs) => lhs.sortPosition - rhs.sortPosition);
77
- return {
78
- id: elementView.id,
79
- persistentId: elementView.persistentId,
80
- targetElementType: elementView.targetElementType,
81
- isDefault: elementView.isDefault,
82
- meta: {
83
- name: elementView.name,
84
- description: elementView.description
85
- },
86
- columns
87
- };
88
- }
89
-
90
1
  // ../model/dist/index.mjs
91
2
  import { z } from "zod";
92
3
  import { z as z2 } from "zod";
@@ -893,6 +804,7 @@ var PageBlockShortcut = z34.object({
893
804
  description: nullishToOptional(z34.string()),
894
805
  asset: nullishToOptional(PageBlockAsset),
895
806
  documentationItemId: nullishToOptional(z34.string()),
807
+ pageHeadingId: nullishToOptional(z34.string()),
896
808
  url: nullishToOptional(z34.string()),
897
809
  openInNewTab: nullishToOptional(z34.boolean()),
898
810
  urlPreview: nullishToOptional(PageBlockUrlPreview),
@@ -1287,8 +1199,8 @@ var defaultDocumentationItemHeaderV2 = {
1287
1199
  };
1288
1200
  var DocumentationItemConfigurationV2 = z41.object({
1289
1201
  showSidebar: z41.boolean(),
1290
- isPrivate: z41.boolean(),
1291
- isHidden: z41.boolean(),
1202
+ isPrivate: z41.boolean().optional(),
1203
+ isHidden: z41.boolean().optional(),
1292
1204
  header: DocumentationItemHeaderV2
1293
1205
  });
1294
1206
  var DocumentationPageDataV2 = z42.object({
@@ -2978,13 +2890,13 @@ var ExternalOAuthRequest = z137.object({
2978
2890
  state: z137.string(),
2979
2891
  createdAt: z137.coerce.date()
2980
2892
  });
2981
- var IntegrationCredentialsType = z138.enum(["OAuth2", "PAT"]);
2893
+ var IntegrationCredentialsType = z138.enum(["OAuth2", "PAT", "GithubApp"]);
2982
2894
  var IntegrationCredentialsProfile = z138.object({
2983
2895
  id: z138.string(),
2984
2896
  username: z138.string().optional(),
2985
2897
  avatarUrl: z138.string().optional()
2986
2898
  });
2987
- var IntegrationCredentialsSchema = z138.object({
2899
+ var IntegrationCredentials = z138.object({
2988
2900
  id: z138.string(),
2989
2901
  type: IntegrationCredentialsType,
2990
2902
  integrationId: z138.string(),
@@ -2992,7 +2904,8 @@ var IntegrationCredentialsSchema = z138.object({
2992
2904
  userId: z138.string(),
2993
2905
  createdAt: z138.coerce.date(),
2994
2906
  refreshToken: z138.string().optional(),
2995
- profile: IntegrationCredentialsProfile.optional()
2907
+ profile: IntegrationCredentialsProfile.optional(),
2908
+ customUrl: z138.string().optional()
2996
2909
  });
2997
2910
  var IntegrationType = z138.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
2998
2911
  var Integration = z138.object({
@@ -3000,7 +2913,29 @@ var Integration = z138.object({
3000
2913
  workspaceId: z138.string(),
3001
2914
  type: IntegrationType,
3002
2915
  createdAt: z138.coerce.date(),
3003
- integrationCredentials: z138.array(IntegrationCredentialsSchema).optional()
2916
+ integrationCredentials: z138.array(IntegrationCredentials).optional()
2917
+ });
2918
+ var forbiddenCustomUrldomainList = ["github.com", "gitlab.com", "bitbucket.org", "figma.com", "dev.azure.com"];
2919
+ var IntegrationTokenResponse = z138.object({
2920
+ access_token: z138.string(),
2921
+ refresh_token: z138.string().optional(),
2922
+ expires_in: z138.number().optional(),
2923
+ token_type: z138.string().optional(),
2924
+ custom_url: z138.string().optional().refine((value) => {
2925
+ if (!value)
2926
+ return true;
2927
+ if (forbiddenCustomUrldomainList.some((domain) => value.includes(domain)))
2928
+ return false;
2929
+ return true;
2930
+ }, "Custom URL validation failed")
2931
+ }).transform((data) => {
2932
+ return {
2933
+ accessToken: data.access_token,
2934
+ refreshToken: data.refresh_token,
2935
+ expiresIn: data.expires_in,
2936
+ tokenType: data.token_type,
2937
+ customUrl: data.custom_url
2938
+ };
3004
2939
  });
3005
2940
  var IntegrationTokenSchema = z139.object({
3006
2941
  id: z139.string(),
@@ -3788,7 +3723,7 @@ var RESERVED_SLUGS = [
3788
3723
  var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
3789
3724
 
3790
3725
  // src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
3791
- var dtoDefaultItemConfigurationV2 = {
3726
+ var getDtoDefaultItemConfigurationV2 = () => ({
3792
3727
  showSidebar: true,
3793
3728
  isHidden: false,
3794
3729
  isPrivate: false,
@@ -3799,18 +3734,97 @@ var dtoDefaultItemConfigurationV2 = {
3799
3734
  showBackgroundOverlay: false,
3800
3735
  showCoverText: true
3801
3736
  }
3802
- };
3737
+ });
3803
3738
  function documentationItemConfigurationToDTOV2(config) {
3739
+ const dtoDefaultItemConfigurationV2 = getDtoDefaultItemConfigurationV2();
3804
3740
  if (!config)
3805
3741
  return dtoDefaultItemConfigurationV2;
3806
3742
  return {
3807
3743
  header: config.header,
3808
- isHidden: config.isHidden ?? dtoDefaultItemConfigurationV2.isPrivate,
3744
+ isHidden: config.isHidden ?? dtoDefaultItemConfigurationV2.isHidden,
3809
3745
  isPrivate: config.isPrivate ?? dtoDefaultItemConfigurationV2.isPrivate,
3810
3746
  showSidebar: config.showSidebar
3811
3747
  };
3812
3748
  }
3813
3749
 
3750
+ // src/api/conversion/documentation/documentation-page-to-dto-utils.ts
3751
+ function buildDocPagePublishPaths(groups, pages, routingVersion) {
3752
+ const groupPersistentIdToGroupMap = mapByUnique(groups, (group) => group.persistentId);
3753
+ const result = /* @__PURE__ */ new Map();
3754
+ for (const page of pages) {
3755
+ const parentChain = calculateElementParentChain(page.parentPersistentId, groupPersistentIdToGroupMap);
3756
+ let pathV1 = `${page.userSlug || page.slug}.html`;
3757
+ let pathV2 = `${slugify(page.meta.name)}-${page.shortPersistentId}`;
3758
+ for (const parent of parentChain) {
3759
+ if (!parent.parentPersistentId)
3760
+ continue;
3761
+ pathV1 = `${parent.userSlug || parent.slug}/${pathV1}`;
3762
+ pathV2 = `${slugify(parent.meta.name)}/${pathV2}`;
3763
+ }
3764
+ pathV1 = `/${pathV1}`;
3765
+ pathV2 = `/${pathV2}`;
3766
+ if (routingVersion === "2") {
3767
+ result.set(page.persistentId, pathV2);
3768
+ } else {
3769
+ result.set(page.persistentId, pathV1);
3770
+ }
3771
+ }
3772
+ return result;
3773
+ }
3774
+ function calculateElementParentChain(elementParentPersistentId, groupPersistentIdToGroupMap) {
3775
+ const result = [];
3776
+ let parentId = elementParentPersistentId;
3777
+ while (parentId) {
3778
+ const parent = groupPersistentIdToGroupMap.get(parentId);
3779
+ if (parent)
3780
+ result.push(parent);
3781
+ parentId = parent?.parentPersistentId;
3782
+ }
3783
+ return result;
3784
+ }
3785
+ function applyPrivacyConfigurationToNestedItems(pages, groups, getDefaultItemConfiguration) {
3786
+ const fixedGroups = groups.map((group) => ({
3787
+ ...group,
3788
+ data: {
3789
+ ...group.data,
3790
+ configuration: group.data?.configuration ?? getDefaultItemConfiguration()
3791
+ }
3792
+ }));
3793
+ const groupPersistentIdToGroupMap = mapByUnique(fixedGroups, (group) => group.persistentId);
3794
+ for (const groupToFix of fixedGroups) {
3795
+ let isHidden = groupToFix.data.configuration.isHidden;
3796
+ let isPrivate = groupToFix.data.configuration.isPrivate;
3797
+ let nextParentId = groupToFix.parentPersistentId;
3798
+ while ((!isHidden || !isPrivate) && nextParentId) {
3799
+ const parent = groupPersistentIdToGroupMap.get(nextParentId);
3800
+ if (!parent)
3801
+ break;
3802
+ isHidden = isHidden || parent.data?.configuration?.isHidden || false;
3803
+ isPrivate = isPrivate || parent.data?.configuration?.isPrivate || false;
3804
+ nextParentId = parent.parentPersistentId;
3805
+ }
3806
+ groupToFix.data.configuration.isHidden = isHidden;
3807
+ groupToFix.data.configuration.isPrivate = isPrivate;
3808
+ }
3809
+ const fixedPages = [];
3810
+ for (const page of pages) {
3811
+ const configuration = page.data?.configuration ?? getDefaultItemConfiguration();
3812
+ const parent = groupPersistentIdToGroupMap.get(page.parentPersistentId);
3813
+ fixedPages.push({
3814
+ ...page,
3815
+ data: {
3816
+ ...page.data,
3817
+ configuration: {
3818
+ ...configuration,
3819
+ isHidden: configuration.isHidden || parent?.data?.configuration?.isHidden || false,
3820
+ isPrivate: configuration.isPrivate || parent?.data?.configuration?.isPrivate || false
3821
+ }
3822
+ }
3823
+ });
3824
+ }
3825
+ return { pages: fixedPages, groups: fixedGroups };
3826
+ }
3827
+
3814
3828
  // src/api/conversion/documentation/documentation-group-v2-to-dto.ts
3815
3829
  function elementGroupsToDocumentationGroupStructureDTOV2(groups, pages) {
3816
3830
  const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
@@ -3818,12 +3832,12 @@ function elementGroupsToDocumentationGroupStructureDTOV2(groups, pages) {
3818
3832
  }
3819
3833
  function elementGroupsToDocumentationGroupDTOV2(groups, pages) {
3820
3834
  const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
3821
- return groups.map((group) => {
3822
- return {
3823
- ...elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap),
3824
- configuration: documentationItemConfigurationToDTOV2(group.data?.configuration)
3825
- };
3826
- });
3835
+ return groups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
3836
+ }
3837
+ function elementGroupsToDocumentationGroupFixedConfigurationDTOV2(groups, pages) {
3838
+ const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
3839
+ const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
3840
+ return fixedGroups.map((group) => elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap));
3827
3841
  }
3828
3842
  function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
3829
3843
  const childrenIds = childrenIdsMap.get(group.persistentId) ?? [];
@@ -3862,42 +3876,6 @@ function calculateChildrenIdsMapV2(elements, groups) {
3862
3876
  return childrenIdsMap;
3863
3877
  }
3864
3878
 
3865
- // src/api/conversion/documentation/documentation-page-to-dto-utils.ts
3866
- function buildDocPagePublishPaths(groups, pages, routingVersion) {
3867
- const groupPersistentIdToGroupMap = mapByUnique(groups, (group) => group.persistentId);
3868
- const result = /* @__PURE__ */ new Map();
3869
- for (const page of pages) {
3870
- const parentChain = calculateElementParentChain(page.parentPersistentId, groupPersistentIdToGroupMap);
3871
- let pathV1 = `${page.userSlug || page.slug}.html`;
3872
- let pathV2 = `${slugify(page.meta.name)}-${page.shortPersistentId}`;
3873
- for (const parent of parentChain) {
3874
- if (!parent.parentPersistentId)
3875
- continue;
3876
- pathV1 = `${parent.userSlug || parent.slug}/${pathV1}`;
3877
- pathV2 = `${slugify(parent.meta.name)}/${pathV2}`;
3878
- }
3879
- pathV1 = `/${pathV1}`;
3880
- pathV2 = `/${pathV2}`;
3881
- if (routingVersion === "2") {
3882
- result.set(page.persistentId, pathV2);
3883
- } else {
3884
- result.set(page.persistentId, pathV1);
3885
- }
3886
- }
3887
- return result;
3888
- }
3889
- function calculateElementParentChain(elementParentPersistentId, groupPersistentIdToGroupMap) {
3890
- const result = [];
3891
- let parentId = elementParentPersistentId;
3892
- while (parentId) {
3893
- const parent = groupPersistentIdToGroupMap.get(parentId);
3894
- if (parent)
3895
- result.push(parent);
3896
- parentId = parent?.parentPersistentId;
3897
- }
3898
- return result;
3899
- }
3900
-
3901
3879
  // src/api/conversion/documentation/documentation-page-v2-to-dto.ts
3902
3880
  function documentationPagesToStructureDTOV2(pages, groups, routingVersion) {
3903
3881
  const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
@@ -3905,12 +3883,12 @@ function documentationPagesToStructureDTOV2(pages, groups, routingVersion) {
3905
3883
  }
3906
3884
  function documentationPagesToDTOV2(pages, groups, routingVersion) {
3907
3885
  const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
3908
- return pages.map((page) => {
3909
- return {
3910
- ...documentationPageToStructureDTOV2(page, pathsMap),
3911
- configuration: documentationItemConfigurationToDTOV2(page.data.configuration)
3912
- };
3913
- });
3886
+ return pages.map((page) => documentationPageToStructureDTOV2(page, pathsMap));
3887
+ }
3888
+ function documentationPagesFixedConfigurationToDTOV2(pages, groups, routingVersion) {
3889
+ const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
3890
+ const { pages: fixedPages } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV2);
3891
+ return fixedPages.map((page) => documentationPageToStructureDTOV2(page, pathsMap));
3914
3892
  }
3915
3893
  function documentationPageToStructureDTOV2(page, pagePathMap) {
3916
3894
  let path = pagePathMap.get(page.persistentId);
@@ -3943,7 +3921,7 @@ function documentationElementsToHierarchyDto(docPages, docGroups, routingVersion
3943
3921
  }
3944
3922
 
3945
3923
  // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
3946
- var dtoDefaultItemConfigurationV1 = {
3924
+ var getDtoDefaultItemConfigurationV1 = () => ({
3947
3925
  showSidebar: true,
3948
3926
  isHidden: false,
3949
3927
  isPrivate: false,
@@ -3954,12 +3932,14 @@ var dtoDefaultItemConfigurationV1 = {
3954
3932
  showBackgroundOverlay: false,
3955
3933
  showCoverText: true
3956
3934
  }
3957
- };
3935
+ });
3958
3936
  function documentationItemConfigurationToDTOV1(config) {
3959
- const { header, showSidebar } = config;
3960
- const { backgroundColor, foregroundColor, ...headerRest } = header;
3937
+ const dtoDefaultItemConfigurationV1 = getDtoDefaultItemConfigurationV1();
3938
+ if (!config)
3939
+ return dtoDefaultItemConfigurationV1;
3940
+ const { backgroundColor, foregroundColor, ...headerRest } = config.header;
3961
3941
  return {
3962
- showSidebar,
3942
+ showSidebar: config.showSidebar,
3963
3943
  isHidden: config.isHidden ?? dtoDefaultItemConfigurationV1.isHidden,
3964
3944
  isPrivate: config.isPrivate ?? dtoDefaultItemConfigurationV1.isPrivate,
3965
3945
  header: {
@@ -3993,7 +3973,17 @@ function elementGroupsToDocumentationGroupDTOV1(groups, pages) {
3993
3973
  return groups.map((group) => {
3994
3974
  return {
3995
3975
  ...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
3996
- configuration: group.data?.configuration ? documentationItemConfigurationToDTOV1(group.data.configuration) : dtoDefaultItemConfigurationV1
3976
+ configuration: documentationItemConfigurationToDTOV1(group.data?.configuration)
3977
+ };
3978
+ });
3979
+ }
3980
+ function elementGroupsToDocumentationGroupFixedConfigurationDTOV1(groups, pages) {
3981
+ const childrenIdsMap = calculateChildrenIdsMapV1(pages, groups);
3982
+ const { groups: fixedGroups } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
3983
+ return fixedGroups.map((group) => {
3984
+ return {
3985
+ ...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
3986
+ configuration: documentationItemConfigurationToDTOV1(group.data?.configuration)
3997
3987
  };
3998
3988
  });
3999
3989
  }
@@ -4036,27 +4026,33 @@ function calculateChildrenIdsMapV1(elements, groups) {
4036
4026
  // src/api/conversion/documentation/documentation-page-v1-to-dto.ts
4037
4027
  function documentationPagesToDTOV1(pages, groups, routingVersion) {
4038
4028
  const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
4039
- return pages.map((page) => {
4040
- let path = pathsMap.get(page.persistentId);
4041
- if (!path)
4042
- throw SupernovaException.conflict(`Path for page ${page.id} was not calculated`);
4043
- if (path.startsWith("/"))
4044
- path = path.substring(1);
4045
- return {
4046
- id: page.id,
4047
- designSystemVersionId: page.designSystemVersionId,
4048
- persistentId: page.persistentId,
4049
- shortPersistentId: page.shortPersistentId,
4050
- title: page.meta.name,
4051
- blocks: page.data.blocks,
4052
- slug: page.slug,
4053
- userSlug: page.userSlug,
4054
- configuration: page.data.configuration ? documentationItemConfigurationToDTOV1(page.data.configuration) : dtoDefaultItemConfigurationV1,
4055
- createdAt: page.createdAt,
4056
- updatedAt: page.updatedAt,
4057
- path
4058
- };
4059
- });
4029
+ return pages.map((page) => documentationPageToDTOV1(page, pathsMap));
4030
+ }
4031
+ function documentationPagesFixedConfigurationToDTOV1(pages, groups, routingVersion) {
4032
+ const pathsMap = buildDocPagePublishPaths(groups, pages, routingVersion);
4033
+ const { pages: fixedPages } = applyPrivacyConfigurationToNestedItems(pages, groups, getDtoDefaultItemConfigurationV1);
4034
+ return fixedPages.map((page) => documentationPageToDTOV1(page, pathsMap));
4035
+ }
4036
+ function documentationPageToDTOV1(page, pagePathMap) {
4037
+ let path = pagePathMap.get(page.persistentId);
4038
+ if (!path)
4039
+ throw SupernovaException.conflict(`Path for page ${page.id} was not calculated`);
4040
+ if (path.startsWith("/"))
4041
+ path = path.substring(1);
4042
+ return {
4043
+ id: page.id,
4044
+ designSystemVersionId: page.designSystemVersionId,
4045
+ persistentId: page.persistentId,
4046
+ shortPersistentId: page.shortPersistentId,
4047
+ title: page.meta.name,
4048
+ blocks: page.data.blocks,
4049
+ slug: page.slug,
4050
+ userSlug: page.userSlug,
4051
+ configuration: documentationItemConfigurationToDTOV1(page.data.configuration),
4052
+ createdAt: page.createdAt,
4053
+ updatedAt: page.updatedAt,
4054
+ path
4055
+ };
4060
4056
  }
4061
4057
 
4062
4058
  // src/api/conversion/integrations/integration.ts
@@ -4101,89 +4097,198 @@ var DTOExporterProperty = z147.any({});
4101
4097
  var DTOExporterPropertyListResponse = z147.object({ items: z147.array(DTOExporterProperty) });
4102
4098
 
4103
4099
  // src/api/dto/design-systems/version.ts
4100
+ import { z as z154 } from "zod";
4101
+
4102
+ // src/api/payloads/design-systems/brand.ts
4104
4103
  import { z as z148 } from "zod";
4105
- var DTODesignSystemVersion = z148.object({
4106
- id: z148.string(),
4107
- createdAt: z148.date(),
4104
+ var DTOCreateBrandInput = z148.object({
4105
+ persistentId: z148.string().uuid(),
4106
+ meta: z148.object({
4107
+ name: z148.string(),
4108
+ description: z148.string()
4109
+ })
4110
+ });
4111
+
4112
+ // src/api/payloads/design-systems/version.ts
4113
+ import { z as z149 } from "zod";
4114
+ var ObjectMeta2 = z149.object({
4115
+ name: z149.string().max(150).optional(),
4116
+ description: z149.string().max(2e3).optional()
4117
+ });
4118
+ function validateSemver(version) {
4119
+ const semverRegex = /^(\d+)(\.\d+)?(\.\d+)?$/;
4120
+ return semverRegex.test(version);
4121
+ }
4122
+ var DTOCreateVersionInput = z149.object({
4123
+ meta: ObjectMeta2,
4124
+ version: z149.string().refine(validateSemver, {
4125
+ message: "Invalid semantic versioning format"
4126
+ }),
4127
+ changeLog: z149.string().max(2e3).optional()
4128
+ });
4129
+
4130
+ // src/api/payloads/documentation/block-definitions.ts
4131
+ import { z as z150 } from "zod";
4132
+ var DTOGetBlockDefinitionsOutput = z150.object({
4133
+ definitions: z150.array(PageBlockDefinition)
4134
+ });
4135
+
4136
+ // src/api/payloads/liveblocks/auth.ts
4137
+ import { z as z151 } from "zod";
4138
+ var DTOLiveblocksAuthRequest = z151.object({
4139
+ room: z151.string().optional()
4140
+ });
4141
+
4142
+ // src/api/payloads/workspaces/workspace-configuration.ts
4143
+ import { z as z152 } from "zod";
4144
+ var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4145
+ function validateSsoPayload(ssoPayload) {
4146
+ const keys = [];
4147
+ let valid = true;
4148
+ if (!ssoPayload) {
4149
+ valid = true;
4150
+ return {
4151
+ valid,
4152
+ keys: []
4153
+ };
4154
+ }
4155
+ for (const key of Object.keys(ssoPayload)) {
4156
+ if (prohibitedSsoKeys.includes(key)) {
4157
+ keys.push(key);
4158
+ valid = false;
4159
+ }
4160
+ }
4161
+ return {
4162
+ valid,
4163
+ keys
4164
+ };
4165
+ }
4166
+ var NpmRegistryInput = z152.object({
4167
+ enabledScopes: z152.array(z152.string()),
4168
+ customRegistryUrl: z152.string().optional(),
4169
+ bypassProxy: z152.boolean().optional(),
4170
+ npmProxyRegistryConfigId: z152.string().optional(),
4171
+ npmProxyVersion: z152.number().optional(),
4172
+ registryType: z152.string(),
4173
+ authType: z152.string(),
4174
+ authHeaderName: z152.string(),
4175
+ authHeaderValue: z152.string(),
4176
+ accessToken: z152.string(),
4177
+ username: z152.string(),
4178
+ password: z152.string()
4179
+ });
4180
+ var WorkspaceConfigurationPayload = z152.object({
4181
+ ipWhitelist: WorkspaceIpSettings.partial().optional(),
4182
+ sso: SsoProvider.partial().optional(),
4183
+ npmRegistrySettings: NpmRegistryInput.partial().optional(),
4184
+ profile: WorkspaceProfile.partial().optional()
4185
+ });
4186
+
4187
+ // src/api/payloads/workspaces/workspace-integrations.ts
4188
+ import { z as z153 } from "zod";
4189
+ var DTOWorkspaceIntegrationOauthInput = z153.object({
4190
+ type: IntegrationType
4191
+ });
4192
+ var DTOWorkspaceIntegrationPATInput = z153.object({
4193
+ userId: z153.string(),
4194
+ type: IntegrationType,
4195
+ token: IntegrationTokenResponse
4196
+ });
4197
+
4198
+ // src/api/dto/design-systems/version.ts
4199
+ var DTODesignSystemVersion = z154.object({
4200
+ id: z154.string(),
4201
+ createdAt: z154.date(),
4108
4202
  meta: ObjectMeta,
4109
- version: z148.string(),
4110
- isReadonly: z148.boolean(),
4111
- changeLog: z148.string(),
4112
- designSystemId: z148.string()
4203
+ version: z154.string(),
4204
+ isReadonly: z154.boolean(),
4205
+ changeLog: z154.string(),
4206
+ designSystemId: z154.string()
4113
4207
  });
4114
- var DTODesignSystemVersionsListResponse = z148.object({
4115
- designSystemVersions: z148.array(DTODesignSystemVersion)
4208
+ var DTODesignSystemVersionsListResponse = z154.object({
4209
+ designSystemVersions: z154.array(DTODesignSystemVersion)
4116
4210
  });
4117
- var DTODesignSystemVersionGetResponse = z148.object({
4211
+ var DTODesignSystemVersionGetResponse = z154.object({
4118
4212
  designSystemVersion: DTODesignSystemVersion
4119
4213
  });
4214
+ var DTODesignSystemVersionCreationResponse = z154.object({
4215
+ meta: ObjectMeta,
4216
+ version: z154.string(),
4217
+ changeLog: z154.string(),
4218
+ isReadOnly: z154.boolean(),
4219
+ designSystemId: z154.string()
4220
+ });
4221
+ var VersionSQSPayload = z154.object({
4222
+ designSystemId: z154.string(),
4223
+ input: DTOCreateVersionInput
4224
+ });
4120
4225
 
4121
4226
  // src/api/dto/design-systems/view.ts
4122
- import { z as z149 } from "zod";
4123
- var DTOElementViewColumnSharedAttributes = z149.object({
4124
- id: z149.string(),
4125
- persistentId: z149.string(),
4126
- width: z149.number()
4227
+ import { z as z155 } from "zod";
4228
+ var DTOElementViewColumnSharedAttributes = z155.object({
4229
+ id: z155.string(),
4230
+ persistentId: z155.string(),
4231
+ width: z155.number()
4127
4232
  });
4128
4233
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
4129
- type: z149.literal("BaseProperty"),
4234
+ type: z155.literal("BaseProperty"),
4130
4235
  basePropertyType: ElementViewBaseColumnType
4131
4236
  });
4132
4237
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
4133
- type: z149.literal("PropertyDefinition"),
4134
- propertyDefinitionId: z149.string()
4238
+ type: z155.literal("PropertyDefinition"),
4239
+ propertyDefinitionId: z155.string()
4135
4240
  });
4136
4241
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
4137
- type: z149.literal("Theme"),
4138
- themeId: z149.string()
4242
+ type: z155.literal("Theme"),
4243
+ themeId: z155.string()
4139
4244
  });
4140
- var DTOElementViewColumn = z149.discriminatedUnion("type", [
4245
+ var DTOElementViewColumn = z155.discriminatedUnion("type", [
4141
4246
  DTOElementViewBasePropertyColumn,
4142
4247
  DTOElementViewPropertyDefinitionColumn,
4143
4248
  DTOElementViewThemeColumn
4144
4249
  ]);
4145
- var DTOElementView = z149.object({
4250
+ var DTOElementView = z155.object({
4146
4251
  meta: ObjectMeta,
4147
- persistentId: z149.string(),
4252
+ persistentId: z155.string(),
4148
4253
  targetElementType: ElementPropertyTargetType,
4149
- id: z149.string(),
4150
- isDefault: z149.boolean(),
4151
- columns: z149.array(DTOElementViewColumn)
4254
+ id: z155.string(),
4255
+ isDefault: z155.boolean(),
4256
+ columns: z155.array(DTOElementViewColumn)
4152
4257
  });
4153
- var DTOElementViewsListResponse = z149.object({
4154
- elementDataViews: z149.array(DTOElementView)
4258
+ var DTOElementViewsListResponse = z155.object({
4259
+ elementDataViews: z155.array(DTOElementView)
4155
4260
  });
4156
4261
 
4157
4262
  // src/api/dto/documentation/anchor.ts
4158
- import { z as z150 } from "zod";
4263
+ import { z as z156 } from "zod";
4159
4264
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
4160
- var DTOGetDocumentationPageAnchorsResponse = z150.object({
4161
- anchors: z150.array(DTODocumentationPageAnchor)
4265
+ var DTOGetDocumentationPageAnchorsResponse = z156.object({
4266
+ anchors: z156.array(DTODocumentationPageAnchor)
4162
4267
  });
4163
4268
 
4164
4269
  // src/api/dto/documentation/link-preview.ts
4165
- import { z as z151 } from "zod";
4166
- var DTODocumentationLinkPreviewResponse = z151.object({
4270
+ import { z as z157 } from "zod";
4271
+ var DTODocumentationLinkPreviewResponse = z157.object({
4167
4272
  linkPreview: DocumentationLinkPreview
4168
4273
  });
4169
- var DTODocumentationLinkPreviewRequest = z151.object({
4170
- url: z151.string().optional(),
4171
- documentationItemPersistentId: z151.string().optional()
4274
+ var DTODocumentationLinkPreviewRequest = z157.object({
4275
+ url: z157.string().optional(),
4276
+ documentationItemPersistentId: z157.string().optional()
4172
4277
  });
4173
4278
 
4174
4279
  // src/api/dto/elements/documentation/group-action.ts
4175
- import { z as z154 } from "zod";
4280
+ import { z as z160 } from "zod";
4176
4281
 
4177
4282
  // src/api/dto/elements/documentation/group-v2.ts
4178
- import { z as z153 } from "zod";
4283
+ import { z as z159 } from "zod";
4179
4284
 
4180
4285
  // src/api/dto/elements/documentation/item-configuration-v2.ts
4181
- import { z as z152 } from "zod";
4286
+ import { z as z158 } from "zod";
4182
4287
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
4183
- var DTODocumentationItemConfigurationV2 = z152.object({
4184
- showSidebar: z152.boolean(),
4185
- isPrivate: z152.boolean(),
4186
- isHidden: z152.boolean(),
4288
+ var DTODocumentationItemConfigurationV2 = z158.object({
4289
+ showSidebar: z158.boolean(),
4290
+ isPrivate: z158.boolean(),
4291
+ isHidden: z158.boolean(),
4187
4292
  header: DTODocumentationItemHeaderV2
4188
4293
  });
4189
4294
 
@@ -4197,136 +4302,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
4197
4302
  data: true,
4198
4303
  shortPersistentId: true
4199
4304
  }).extend({
4200
- title: z153.string(),
4201
- isRoot: z153.boolean(),
4202
- childrenIds: z153.array(z153.string()),
4305
+ title: z159.string(),
4306
+ isRoot: z159.boolean(),
4307
+ childrenIds: z159.array(z159.string()),
4203
4308
  groupBehavior: DocumentationGroupBehavior,
4204
- shortPersistentId: z153.string(),
4309
+ shortPersistentId: z159.string(),
4205
4310
  configuration: DTODocumentationItemConfigurationV2,
4206
- type: z153.literal("Group")
4311
+ type: z159.literal("Group")
4207
4312
  });
4208
4313
  var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
4209
- var DTOCreateDocumentationGroupInput = z153.object({
4314
+ var DTOCreateDocumentationGroupInput = z159.object({
4210
4315
  // Identifier
4211
- persistentId: z153.string().uuid(),
4316
+ persistentId: z159.string().uuid(),
4212
4317
  // Group properties
4213
- title: z153.string(),
4318
+ title: z159.string(),
4214
4319
  configuration: DTODocumentationItemConfigurationV2.optional(),
4215
4320
  // Group placement properties
4216
- afterPersistentId: z153.string().uuid().nullish(),
4217
- parentPersistentId: z153.string().uuid()
4321
+ afterPersistentId: z159.string().uuid().nullish(),
4322
+ parentPersistentId: z159.string().uuid()
4218
4323
  });
4219
- var DTOUpdateDocumentationGroupInput = z153.object({
4324
+ var DTOUpdateDocumentationGroupInput = z159.object({
4220
4325
  // Identifier of the group to update
4221
- id: z153.string(),
4326
+ id: z159.string(),
4222
4327
  // Group properties
4223
- title: z153.string().optional(),
4328
+ title: z159.string().optional(),
4224
4329
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4225
4330
  });
4226
- var DTOMoveDocumentationGroupInput = z153.object({
4331
+ var DTOMoveDocumentationGroupInput = z159.object({
4227
4332
  // Identifier of the group to update
4228
- id: z153.string(),
4333
+ id: z159.string(),
4229
4334
  // Group placement properties
4230
- parentPersistentId: z153.string().uuid(),
4231
- afterPersistentId: z153.string().uuid().nullish()
4335
+ parentPersistentId: z159.string().uuid(),
4336
+ afterPersistentId: z159.string().uuid().nullish()
4232
4337
  });
4233
- var DTODuplicateDocumentationGroupInput = z153.object({
4338
+ var DTODuplicateDocumentationGroupInput = z159.object({
4234
4339
  // Identifier of the group to duplicate from
4235
- id: z153.string(),
4340
+ id: z159.string(),
4236
4341
  // New group persistent id
4237
- persistentId: z153.string().uuid(),
4342
+ persistentId: z159.string().uuid(),
4238
4343
  // Group placement properties
4239
- afterPersistentId: z153.string().uuid().nullish(),
4240
- parentPersistentId: z153.string().uuid()
4344
+ afterPersistentId: z159.string().uuid().nullish(),
4345
+ parentPersistentId: z159.string().uuid()
4241
4346
  });
4242
- var DTOCreateDocumentationTabInput = z153.object({
4347
+ var DTOCreateDocumentationTabInput = z159.object({
4243
4348
  // New group persistent id
4244
- persistentId: z153.string().uuid(),
4349
+ persistentId: z159.string().uuid(),
4245
4350
  // If this is page, we will attempt to convert it to tab
4246
4351
  // If this is tab group, we will add a new tab to it
4247
- fromItemPersistentId: z153.string(),
4248
- tabName: z153.string()
4352
+ fromItemPersistentId: z159.string(),
4353
+ tabName: z159.string()
4249
4354
  });
4250
- var DTODeleteDocumentationTabGroupInput = z153.object({
4355
+ var DTODeleteDocumentationTabGroupInput = z159.object({
4251
4356
  // Deleted group id
4252
- id: z153.string()
4357
+ id: z159.string()
4253
4358
  });
4254
- var DTODeleteDocumentationGroupInput = z153.object({
4359
+ var DTODeleteDocumentationGroupInput = z159.object({
4255
4360
  // Identifier
4256
- id: z153.string(),
4361
+ id: z159.string(),
4257
4362
  // Deletion options
4258
- deleteSubtree: z153.boolean().default(false)
4363
+ deleteSubtree: z159.boolean().default(false)
4259
4364
  });
4260
4365
 
4261
4366
  // src/api/dto/elements/documentation/group-action.ts
4262
- var SuccessPayload = z154.object({
4263
- success: z154.literal(true)
4367
+ var SuccessPayload = z160.object({
4368
+ success: z160.literal(true)
4264
4369
  });
4265
- var DTODocumentationGroupCreateActionOutputV2 = z154.object({
4266
- type: z154.literal("DocumentationGroupCreate"),
4370
+ var DTODocumentationGroupCreateActionOutputV2 = z160.object({
4371
+ type: z160.literal("DocumentationGroupCreate"),
4267
4372
  output: SuccessPayload
4268
4373
  });
4269
- var DTODocumentationTabCreateActionOutputV2 = z154.object({
4270
- type: z154.literal("DocumentationTabCreate"),
4374
+ var DTODocumentationTabCreateActionOutputV2 = z160.object({
4375
+ type: z160.literal("DocumentationTabCreate"),
4271
4376
  output: SuccessPayload
4272
4377
  });
4273
- var DTODocumentationGroupUpdateActionOutputV2 = z154.object({
4274
- type: z154.literal("DocumentationGroupUpdate"),
4378
+ var DTODocumentationGroupUpdateActionOutputV2 = z160.object({
4379
+ type: z160.literal("DocumentationGroupUpdate"),
4275
4380
  output: SuccessPayload
4276
4381
  });
4277
- var DTODocumentationGroupMoveActionOutputV2 = z154.object({
4278
- type: z154.literal("DocumentationGroupMove"),
4382
+ var DTODocumentationGroupMoveActionOutputV2 = z160.object({
4383
+ type: z160.literal("DocumentationGroupMove"),
4279
4384
  output: SuccessPayload
4280
4385
  });
4281
- var DTODocumentationGroupDuplicateActionOutputV2 = z154.object({
4282
- type: z154.literal("DocumentationGroupDuplicate"),
4386
+ var DTODocumentationGroupDuplicateActionOutputV2 = z160.object({
4387
+ type: z160.literal("DocumentationGroupDuplicate"),
4283
4388
  output: SuccessPayload
4284
4389
  });
4285
- var DTODocumentationGroupDeleteActionOutputV2 = z154.object({
4286
- type: z154.literal("DocumentationGroupDelete"),
4390
+ var DTODocumentationGroupDeleteActionOutputV2 = z160.object({
4391
+ type: z160.literal("DocumentationGroupDelete"),
4287
4392
  output: SuccessPayload
4288
4393
  });
4289
- var DTODocumentationTabGroupDeleteActionOutputV2 = z154.object({
4290
- type: z154.literal("DocumentationTabGroupDelete"),
4394
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z160.object({
4395
+ type: z160.literal("DocumentationTabGroupDelete"),
4291
4396
  output: SuccessPayload
4292
4397
  });
4293
- var DTODocumentationGroupCreateActionInputV2 = z154.object({
4294
- type: z154.literal("DocumentationGroupCreate"),
4398
+ var DTODocumentationGroupCreateActionInputV2 = z160.object({
4399
+ type: z160.literal("DocumentationGroupCreate"),
4295
4400
  input: DTOCreateDocumentationGroupInput
4296
4401
  });
4297
- var DTODocumentationTabCreateActionInputV2 = z154.object({
4298
- type: z154.literal("DocumentationTabCreate"),
4402
+ var DTODocumentationTabCreateActionInputV2 = z160.object({
4403
+ type: z160.literal("DocumentationTabCreate"),
4299
4404
  input: DTOCreateDocumentationTabInput
4300
4405
  });
4301
- var DTODocumentationGroupUpdateActionInputV2 = z154.object({
4302
- type: z154.literal("DocumentationGroupUpdate"),
4406
+ var DTODocumentationGroupUpdateActionInputV2 = z160.object({
4407
+ type: z160.literal("DocumentationGroupUpdate"),
4303
4408
  input: DTOUpdateDocumentationGroupInput
4304
4409
  });
4305
- var DTODocumentationGroupMoveActionInputV2 = z154.object({
4306
- type: z154.literal("DocumentationGroupMove"),
4410
+ var DTODocumentationGroupMoveActionInputV2 = z160.object({
4411
+ type: z160.literal("DocumentationGroupMove"),
4307
4412
  input: DTOMoveDocumentationGroupInput
4308
4413
  });
4309
- var DTODocumentationGroupDuplicateActionInputV2 = z154.object({
4310
- type: z154.literal("DocumentationGroupDuplicate"),
4414
+ var DTODocumentationGroupDuplicateActionInputV2 = z160.object({
4415
+ type: z160.literal("DocumentationGroupDuplicate"),
4311
4416
  input: DTODuplicateDocumentationGroupInput
4312
4417
  });
4313
- var DTODocumentationGroupDeleteActionInputV2 = z154.object({
4314
- type: z154.literal("DocumentationGroupDelete"),
4418
+ var DTODocumentationGroupDeleteActionInputV2 = z160.object({
4419
+ type: z160.literal("DocumentationGroupDelete"),
4315
4420
  input: DTODeleteDocumentationGroupInput
4316
4421
  });
4317
- var DTODocumentationTabGroupDeleteActionInputV2 = z154.object({
4318
- type: z154.literal("DocumentationTabGroupDelete"),
4422
+ var DTODocumentationTabGroupDeleteActionInputV2 = z160.object({
4423
+ type: z160.literal("DocumentationTabGroupDelete"),
4319
4424
  input: DTODeleteDocumentationTabGroupInput
4320
4425
  });
4321
4426
 
4322
4427
  // src/api/dto/elements/documentation/group-v1.ts
4323
- import { z as z156 } from "zod";
4428
+ import { z as z162 } from "zod";
4324
4429
 
4325
4430
  // src/api/dto/elements/documentation/item-configuration-v1.ts
4326
- import { z as z155 } from "zod";
4327
- var DocumentationColorV1 = z155.object({
4328
- aliasTo: z155.string().optional(),
4329
- value: z155.string().optional()
4431
+ import { z as z161 } from "zod";
4432
+ var DocumentationColorV1 = z161.object({
4433
+ aliasTo: z161.string().optional(),
4434
+ value: z161.string().optional()
4330
4435
  });
4331
4436
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4332
4437
  foregroundColor: true,
@@ -4335,10 +4440,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4335
4440
  foregroundColor: DocumentationColorV1.optional(),
4336
4441
  backgroundColor: DocumentationColorV1.optional()
4337
4442
  });
4338
- var DTODocumentationItemConfigurationV1 = z155.object({
4339
- showSidebar: z155.boolean(),
4340
- isPrivate: z155.boolean(),
4341
- isHidden: z155.boolean(),
4443
+ var DTODocumentationItemConfigurationV1 = z161.object({
4444
+ showSidebar: z161.boolean(),
4445
+ isPrivate: z161.boolean(),
4446
+ isHidden: z161.boolean(),
4342
4447
  header: DTODocumentationItemHeaderV1
4343
4448
  });
4344
4449
 
@@ -4352,130 +4457,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
4352
4457
  data: true,
4353
4458
  shortPersistentId: true
4354
4459
  }).extend({
4355
- title: z156.string(),
4356
- isRoot: z156.boolean(),
4357
- childrenIds: z156.array(z156.string()),
4460
+ title: z162.string(),
4461
+ isRoot: z162.boolean(),
4462
+ childrenIds: z162.array(z162.string()),
4358
4463
  groupBehavior: DocumentationGroupBehavior,
4359
- shortPersistentId: z156.string(),
4360
- type: z156.literal("Group")
4464
+ shortPersistentId: z162.string(),
4465
+ type: z162.literal("Group")
4361
4466
  });
4362
4467
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
4363
4468
  configuration: DTODocumentationItemConfigurationV1
4364
4469
  });
4365
4470
 
4366
4471
  // src/api/dto/elements/documentation/page-actions-v2.ts
4367
- import { z as z158 } from "zod";
4472
+ import { z as z164 } from "zod";
4368
4473
 
4369
4474
  // src/api/dto/elements/documentation/page-v2.ts
4370
- import { z as z157 } from "zod";
4475
+ import { z as z163 } from "zod";
4371
4476
  var DTODocumentationPageV2 = DocumentationPageV2.omit({
4372
4477
  data: true,
4373
4478
  meta: true,
4374
4479
  parentPersistentId: true,
4375
4480
  sortOrder: true
4376
4481
  }).extend({
4377
- title: z157.string(),
4378
- path: z157.string(),
4379
- type: z157.literal("Page"),
4482
+ title: z163.string(),
4483
+ path: z163.string(),
4484
+ type: z163.literal("Page"),
4380
4485
  configuration: DTODocumentationItemConfigurationV2
4381
4486
  });
4382
4487
  var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
4383
- var DTODocumentationHierarchyV2 = z157.object({
4384
- pages: z157.array(DTODocumentationPageStructureV2),
4385
- groups: z157.array(DTODocumentationGroupStructureV2)
4488
+ var DTODocumentationHierarchyV2 = z163.object({
4489
+ pages: z163.array(DTODocumentationPageStructureV2),
4490
+ groups: z163.array(DTODocumentationGroupStructureV2)
4386
4491
  });
4387
- var DTOCreateDocumentationPageInputV2 = z157.object({
4492
+ var DTOCreateDocumentationPageInputV2 = z163.object({
4388
4493
  // Identifier
4389
- persistentId: z157.string().uuid(),
4494
+ persistentId: z163.string().uuid(),
4390
4495
  // Page properties
4391
- title: z157.string(),
4496
+ title: z163.string(),
4392
4497
  configuration: DTODocumentationItemConfigurationV2.optional(),
4393
4498
  // Page placement properties
4394
- parentPersistentId: z157.string().uuid(),
4395
- afterPersistentId: z157.string().uuid().nullish()
4499
+ parentPersistentId: z163.string().uuid(),
4500
+ afterPersistentId: z163.string().uuid().nullish()
4396
4501
  });
4397
- var DTOUpdateDocumentationPageInputV2 = z157.object({
4502
+ var DTOUpdateDocumentationPageInputV2 = z163.object({
4398
4503
  // Identifier of the group to update
4399
- id: z157.string(),
4504
+ id: z163.string(),
4400
4505
  // Page properties
4401
- title: z157.string().optional(),
4506
+ title: z163.string().optional(),
4402
4507
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
4403
4508
  });
4404
- var DTOMoveDocumentationPageInputV2 = z157.object({
4509
+ var DTOMoveDocumentationPageInputV2 = z163.object({
4405
4510
  // Identifier of the group to update
4406
- id: z157.string(),
4511
+ id: z163.string(),
4407
4512
  // Page placement properties
4408
- parentPersistentId: z157.string().uuid(),
4409
- afterPersistentId: z157.string().uuid().nullish()
4513
+ parentPersistentId: z163.string().uuid(),
4514
+ afterPersistentId: z163.string().uuid().nullish()
4410
4515
  });
4411
- var DTODuplicateDocumentationPageInputV2 = z157.object({
4516
+ var DTODuplicateDocumentationPageInputV2 = z163.object({
4412
4517
  // Identifier of the page to duplicate from
4413
- id: z157.string(),
4518
+ id: z163.string(),
4414
4519
  // New page persistent id
4415
- persistentId: z157.string().uuid(),
4520
+ persistentId: z163.string().uuid(),
4416
4521
  // Page placement properties
4417
- parentPersistentId: z157.string().uuid(),
4418
- afterPersistentId: z157.string().uuid().nullish()
4522
+ parentPersistentId: z163.string().uuid(),
4523
+ afterPersistentId: z163.string().uuid().nullish()
4419
4524
  });
4420
- var DTODeleteDocumentationPageInputV2 = z157.object({
4525
+ var DTODeleteDocumentationPageInputV2 = z163.object({
4421
4526
  // Identifier
4422
- id: z157.string()
4527
+ id: z163.string()
4423
4528
  });
4424
4529
 
4425
4530
  // src/api/dto/elements/documentation/page-actions-v2.ts
4426
- var SuccessPayload2 = z158.object({
4427
- success: z158.literal(true)
4531
+ var SuccessPayload2 = z164.object({
4532
+ success: z164.literal(true)
4428
4533
  });
4429
- var DTODocumentationPageCreateActionOutputV2 = z158.object({
4430
- type: z158.literal("DocumentationPageCreate"),
4534
+ var DTODocumentationPageCreateActionOutputV2 = z164.object({
4535
+ type: z164.literal("DocumentationPageCreate"),
4431
4536
  output: SuccessPayload2
4432
4537
  });
4433
- var DTODocumentationPageUpdateActionOutputV2 = z158.object({
4434
- type: z158.literal("DocumentationPageUpdate"),
4538
+ var DTODocumentationPageUpdateActionOutputV2 = z164.object({
4539
+ type: z164.literal("DocumentationPageUpdate"),
4435
4540
  output: SuccessPayload2
4436
4541
  });
4437
- var DTODocumentationPageMoveActionOutputV2 = z158.object({
4438
- type: z158.literal("DocumentationPageMove"),
4542
+ var DTODocumentationPageMoveActionOutputV2 = z164.object({
4543
+ type: z164.literal("DocumentationPageMove"),
4439
4544
  output: SuccessPayload2
4440
4545
  });
4441
- var DTODocumentationPageDuplicateActionOutputV2 = z158.object({
4442
- type: z158.literal("DocumentationPageDuplicate"),
4546
+ var DTODocumentationPageDuplicateActionOutputV2 = z164.object({
4547
+ type: z164.literal("DocumentationPageDuplicate"),
4443
4548
  output: SuccessPayload2
4444
4549
  });
4445
- var DTODocumentationPageDeleteActionOutputV2 = z158.object({
4446
- type: z158.literal("DocumentationPageDelete"),
4550
+ var DTODocumentationPageDeleteActionOutputV2 = z164.object({
4551
+ type: z164.literal("DocumentationPageDelete"),
4447
4552
  output: SuccessPayload2
4448
4553
  });
4449
- var DTODocumentationPageCreateActionInputV2 = z158.object({
4450
- type: z158.literal("DocumentationPageCreate"),
4554
+ var DTODocumentationPageCreateActionInputV2 = z164.object({
4555
+ type: z164.literal("DocumentationPageCreate"),
4451
4556
  input: DTOCreateDocumentationPageInputV2
4452
4557
  });
4453
- var DTODocumentationPageUpdateActionInputV2 = z158.object({
4454
- type: z158.literal("DocumentationPageUpdate"),
4558
+ var DTODocumentationPageUpdateActionInputV2 = z164.object({
4559
+ type: z164.literal("DocumentationPageUpdate"),
4455
4560
  input: DTOUpdateDocumentationPageInputV2
4456
4561
  });
4457
- var DTODocumentationPageMoveActionInputV2 = z158.object({
4458
- type: z158.literal("DocumentationPageMove"),
4562
+ var DTODocumentationPageMoveActionInputV2 = z164.object({
4563
+ type: z164.literal("DocumentationPageMove"),
4459
4564
  input: DTOMoveDocumentationPageInputV2
4460
4565
  });
4461
- var DTODocumentationPageDuplicateActionInputV2 = z158.object({
4462
- type: z158.literal("DocumentationPageDuplicate"),
4566
+ var DTODocumentationPageDuplicateActionInputV2 = z164.object({
4567
+ type: z164.literal("DocumentationPageDuplicate"),
4463
4568
  input: DTODuplicateDocumentationPageInputV2
4464
4569
  });
4465
- var DTODocumentationPageDeleteActionInputV2 = z158.object({
4466
- type: z158.literal("DocumentationPageDelete"),
4570
+ var DTODocumentationPageDeleteActionInputV2 = z164.object({
4571
+ type: z164.literal("DocumentationPageDelete"),
4467
4572
  input: DTODeleteDocumentationPageInputV2
4468
4573
  });
4469
4574
 
4470
4575
  // src/api/dto/elements/documentation/page-content.ts
4471
- import { z as z159 } from "zod";
4576
+ import { z as z165 } from "zod";
4472
4577
  var DTODocumentationPageContent = DocumentationPageContent;
4473
- var DTODocumentationPageContentGetResponse = z159.object({
4578
+ var DTODocumentationPageContentGetResponse = z165.object({
4474
4579
  pageContent: DTODocumentationPageContent
4475
4580
  });
4476
4581
 
4477
4582
  // src/api/dto/elements/documentation/page-v1.ts
4478
- import { z as z160 } from "zod";
4583
+ import { z as z166 } from "zod";
4479
4584
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
4480
4585
  data: true,
4481
4586
  meta: true,
@@ -4483,130 +4588,130 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
4483
4588
  sortOrder: true
4484
4589
  }).extend({
4485
4590
  configuration: DTODocumentationItemConfigurationV1,
4486
- blocks: z160.array(PageBlockV1),
4487
- title: z160.string(),
4488
- path: z160.string()
4591
+ blocks: z166.array(PageBlockV1),
4592
+ title: z166.string(),
4593
+ path: z166.string()
4489
4594
  });
4490
4595
 
4491
4596
  // src/api/dto/elements/figma-nodes/figma-node.ts
4492
- import { z as z161 } from "zod";
4493
- var DTOFigmaNodeData = z161.object({
4597
+ import { z as z167 } from "zod";
4598
+ var DTOFigmaNodeData = z167.object({
4494
4599
  // Id of the node in the Figma file
4495
- figmaNodeId: z161.string(),
4600
+ figmaNodeId: z167.string(),
4496
4601
  // Validity
4497
- isValid: z161.boolean(),
4602
+ isValid: z167.boolean(),
4498
4603
  // Asset data
4499
- assetId: z161.string(),
4500
- assetUrl: z161.string(),
4604
+ assetId: z167.string(),
4605
+ assetUrl: z167.string(),
4501
4606
  // Asset metadata
4502
- assetScale: z161.number(),
4503
- assetWidth: z161.number().optional(),
4504
- assetHeight: z161.number().optional()
4607
+ assetScale: z167.number(),
4608
+ assetWidth: z167.number().optional(),
4609
+ assetHeight: z167.number().optional()
4505
4610
  });
4506
4611
  var DTOFigmaNode = FigmaFileStructure.omit({
4507
4612
  data: true
4508
4613
  }).extend({
4509
4614
  data: DTOFigmaNodeData
4510
4615
  });
4511
- var DTOFigmaNodeRenderInput = z161.object({
4616
+ var DTOFigmaNodeRenderInput = z167.object({
4512
4617
  // Id of a design system's data source representing a linked Figma file
4513
- sourceId: z161.string(),
4618
+ sourceId: z167.string(),
4514
4619
  // Id of a node within the Figma file
4515
- figmaFileNodeId: z161.string()
4620
+ figmaFileNodeId: z167.string()
4516
4621
  });
4517
4622
 
4518
4623
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
4519
- import { z as z162 } from "zod";
4520
- var DTOFigmaNodeRenderActionOutput = z162.object({
4521
- type: z162.literal("FigmaNodeRender"),
4522
- figmaNodes: z162.array(DTOFigmaNode)
4624
+ import { z as z168 } from "zod";
4625
+ var DTOFigmaNodeRenderActionOutput = z168.object({
4626
+ type: z168.literal("FigmaNodeRender"),
4627
+ figmaNodes: z168.array(DTOFigmaNode)
4523
4628
  });
4524
- var DTOFigmaNodeRenderActionInput = z162.object({
4525
- type: z162.literal("FigmaNodeRender"),
4629
+ var DTOFigmaNodeRenderActionInput = z168.object({
4630
+ type: z168.literal("FigmaNodeRender"),
4526
4631
  input: DTOFigmaNodeRenderInput.array()
4527
4632
  });
4528
4633
 
4529
4634
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4530
- import { z as z164 } from "zod";
4635
+ import { z as z170 } from "zod";
4531
4636
 
4532
4637
  // src/api/dto/elements/properties/property-definitions.ts
4533
- import { z as z163 } from "zod";
4638
+ import { z as z169 } from "zod";
4534
4639
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
4535
- var DTOElementPropertyDefinition = z163.object({
4536
- id: z163.string(),
4537
- designSystemVersionId: z163.string(),
4640
+ var DTOElementPropertyDefinition = z169.object({
4641
+ id: z169.string(),
4642
+ designSystemVersionId: z169.string(),
4538
4643
  meta: ObjectMeta,
4539
- persistentId: z163.string(),
4644
+ persistentId: z169.string(),
4540
4645
  type: ElementPropertyTypeSchema,
4541
4646
  targetElementType: ElementPropertyTargetType,
4542
- codeName: z163.string().regex(CODE_NAME_REGEX2),
4543
- options: z163.array(ElementPropertyDefinitionOption).optional(),
4647
+ codeName: z169.string().regex(CODE_NAME_REGEX2),
4648
+ options: z169.array(ElementPropertyDefinitionOption).optional(),
4544
4649
  linkElementType: ElementPropertyLinkType.optional()
4545
4650
  });
4546
- var DTOElementPropertyDefinitionsGetResponse = z163.object({
4547
- definitions: z163.array(DTOElementPropertyDefinition)
4651
+ var DTOElementPropertyDefinitionsGetResponse = z169.object({
4652
+ definitions: z169.array(DTOElementPropertyDefinition)
4548
4653
  });
4549
4654
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
4550
4655
  id: true,
4551
4656
  designSystemVersionId: true
4552
4657
  });
4553
- var DTOUpdateElementPropertyDefinitionInputV2 = z163.object({
4554
- id: z163.string(),
4555
- name: z163.string().optional(),
4556
- description: z163.string().optional(),
4557
- codeName: z163.string().regex(CODE_NAME_REGEX2).optional(),
4558
- options: z163.array(ElementPropertyDefinitionOption).optional()
4658
+ var DTOUpdateElementPropertyDefinitionInputV2 = z169.object({
4659
+ id: z169.string(),
4660
+ name: z169.string().optional(),
4661
+ description: z169.string().optional(),
4662
+ codeName: z169.string().regex(CODE_NAME_REGEX2).optional(),
4663
+ options: z169.array(ElementPropertyDefinitionOption).optional()
4559
4664
  });
4560
- var DTODeleteElementPropertyDefinitionInputV2 = z163.object({
4561
- id: z163.string()
4665
+ var DTODeleteElementPropertyDefinitionInputV2 = z169.object({
4666
+ id: z169.string()
4562
4667
  });
4563
4668
 
4564
4669
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4565
- var SuccessPayload3 = z164.object({
4566
- success: z164.literal(true)
4670
+ var SuccessPayload3 = z170.object({
4671
+ success: z170.literal(true)
4567
4672
  });
4568
- var DTOPropertyDefinitionCreateActionOutputV2 = z164.object({
4569
- type: z164.literal("PropertyDefinitionCreate"),
4673
+ var DTOPropertyDefinitionCreateActionOutputV2 = z170.object({
4674
+ type: z170.literal("PropertyDefinitionCreate"),
4570
4675
  definition: DTOElementPropertyDefinition
4571
4676
  });
4572
- var DTOPropertyDefinitionUpdateActionOutputV2 = z164.object({
4573
- type: z164.literal("PropertyDefinitionUpdate"),
4677
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z170.object({
4678
+ type: z170.literal("PropertyDefinitionUpdate"),
4574
4679
  definition: DTOElementPropertyDefinition
4575
4680
  });
4576
- var DTOPropertyDefinitionDeleteActionOutputV2 = z164.object({
4577
- type: z164.literal("PropertyDefinitionDelete"),
4681
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z170.object({
4682
+ type: z170.literal("PropertyDefinitionDelete"),
4578
4683
  output: SuccessPayload3
4579
4684
  });
4580
- var DTOPropertyDefinitionCreateActionInputV2 = z164.object({
4581
- type: z164.literal("PropertyDefinitionCreate"),
4685
+ var DTOPropertyDefinitionCreateActionInputV2 = z170.object({
4686
+ type: z170.literal("PropertyDefinitionCreate"),
4582
4687
  input: DTOCreateElementPropertyDefinitionInputV2
4583
4688
  });
4584
- var DTOPropertyDefinitionUpdateActionInputV2 = z164.object({
4585
- type: z164.literal("PropertyDefinitionUpdate"),
4689
+ var DTOPropertyDefinitionUpdateActionInputV2 = z170.object({
4690
+ type: z170.literal("PropertyDefinitionUpdate"),
4586
4691
  input: DTOUpdateElementPropertyDefinitionInputV2
4587
4692
  });
4588
- var DTOPropertyDefinitionDeleteActionInputV2 = z164.object({
4589
- type: z164.literal("PropertyDefinitionDelete"),
4693
+ var DTOPropertyDefinitionDeleteActionInputV2 = z170.object({
4694
+ type: z170.literal("PropertyDefinitionDelete"),
4590
4695
  input: DTODeleteElementPropertyDefinitionInputV2
4591
4696
  });
4592
4697
 
4593
4698
  // src/api/dto/elements/properties/property-values.ts
4594
- import { z as z165 } from "zod";
4595
- var DTOElementPropertyValue = z165.object({
4596
- id: z165.string(),
4597
- designSystemVersionId: z165.string(),
4598
- definitionId: z165.string(),
4599
- targetElementId: z165.string(),
4600
- value: z165.union([z165.string(), z165.number(), z165.boolean()]).optional(),
4601
- valuePreview: z165.string().optional()
4699
+ import { z as z171 } from "zod";
4700
+ var DTOElementPropertyValue = z171.object({
4701
+ id: z171.string(),
4702
+ designSystemVersionId: z171.string(),
4703
+ definitionId: z171.string(),
4704
+ targetElementId: z171.string(),
4705
+ value: z171.union([z171.string(), z171.number(), z171.boolean()]).optional(),
4706
+ valuePreview: z171.string().optional()
4602
4707
  });
4603
- var DTOElementPropertyValuesGetResponse = z165.object({
4604
- values: z165.array(DTOElementPropertyValue)
4708
+ var DTOElementPropertyValuesGetResponse = z171.object({
4709
+ values: z171.array(DTOElementPropertyValue)
4605
4710
  });
4606
4711
 
4607
4712
  // src/api/dto/elements/elements-action-v2.ts
4608
- import { z as z166 } from "zod";
4609
- var DTOElementActionOutput = z166.discriminatedUnion("type", [
4713
+ import { z as z172 } from "zod";
4714
+ var DTOElementActionOutput = z172.discriminatedUnion("type", [
4610
4715
  // Documentation pages
4611
4716
  DTODocumentationPageCreateActionOutputV2,
4612
4717
  DTODocumentationPageUpdateActionOutputV2,
@@ -4628,7 +4733,7 @@ var DTOElementActionOutput = z166.discriminatedUnion("type", [
4628
4733
  DTOPropertyDefinitionUpdateActionOutputV2,
4629
4734
  DTOPropertyDefinitionDeleteActionOutputV2
4630
4735
  ]);
4631
- var DTOElementActionInput = z166.discriminatedUnion("type", [
4736
+ var DTOElementActionInput = z172.discriminatedUnion("type", [
4632
4737
  // Documentation pages
4633
4738
  DTODocumentationPageCreateActionInputV2,
4634
4739
  DTODocumentationPageUpdateActionInputV2,
@@ -4652,72 +4757,72 @@ var DTOElementActionInput = z166.discriminatedUnion("type", [
4652
4757
  ]);
4653
4758
 
4654
4759
  // src/api/dto/elements/get-elements-v2.ts
4655
- import { z as z167 } from "zod";
4656
- var DTOElementsGetTypeFilter = z167.enum(["FigmaNode"]);
4657
- var DTOElementsGetQuerySchema = z167.object({
4658
- types: z167.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
4760
+ import { z as z173 } from "zod";
4761
+ var DTOElementsGetTypeFilter = z173.enum(["FigmaNode"]);
4762
+ var DTOElementsGetQuerySchema = z173.object({
4763
+ types: z173.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
4659
4764
  });
4660
- var DTOElementsGetOutput = z167.object({
4661
- figmaNodes: z167.array(DTOFigmaNode).optional()
4765
+ var DTOElementsGetOutput = z173.object({
4766
+ figmaNodes: z173.array(DTOFigmaNode).optional()
4662
4767
  });
4663
4768
 
4664
4769
  // src/api/dto/workspaces/integrations.ts
4665
- import { z as z168 } from "zod";
4666
- var DTOIntegration = z168.object({
4667
- id: z168.string(),
4668
- workspaceId: z168.string(),
4770
+ import { z as z174 } from "zod";
4771
+ var DTOIntegration = z174.object({
4772
+ id: z174.string(),
4773
+ workspaceId: z174.string(),
4669
4774
  type: IntegrationType,
4670
- createdAt: z168.coerce.date(),
4671
- integrationCredentials: z168.array(IntegrationCredentialsSchema).optional()
4775
+ createdAt: z174.coerce.date(),
4776
+ integrationCredentials: z174.array(IntegrationCredentials).optional()
4672
4777
  });
4673
- var DTOIntegrationOAuthGetResponse = z168.object({
4674
- url: z168.string()
4778
+ var DTOIntegrationOAuthGetResponse = z174.object({
4779
+ url: z174.string()
4675
4780
  });
4676
- var DTOIntegrationPostResponse = z168.object({
4781
+ var DTOIntegrationPostResponse = z174.object({
4677
4782
  integration: DTOIntegration
4678
4783
  });
4679
- var DTOIntegrationsGetListResponse = z168.object({
4784
+ var DTOIntegrationsGetListResponse = z174.object({
4680
4785
  integrations: DTOIntegration.array()
4681
4786
  });
4682
4787
 
4683
4788
  // src/api/dto/workspaces/membership.ts
4684
- import { z as z171 } from "zod";
4789
+ import { z as z177 } from "zod";
4685
4790
 
4686
4791
  // src/api/dto/workspaces/workspace.ts
4687
- import { z as z170 } from "zod";
4792
+ import { z as z176 } from "zod";
4688
4793
 
4689
4794
  // src/api/dto/workspaces/npm-registry.ts
4690
- import { z as z169 } from "zod";
4691
- var DTONpmRegistryConfig = z169.object({
4795
+ import { z as z175 } from "zod";
4796
+ var DTONpmRegistryConfig = z175.object({
4692
4797
  // Registry basic configuration
4693
4798
  registryType: NpmRegistryType,
4694
- registryUrl: z169.string(),
4695
- customRegistryUrl: z169.string().optional(),
4799
+ registryUrl: z175.string(),
4800
+ customRegistryUrl: z175.string().optional(),
4696
4801
  // URL of Supernova NPM packages proxy
4697
- proxyUrl: z169.string(),
4802
+ proxyUrl: z175.string(),
4698
4803
  // Auth configuration
4699
4804
  authType: NpmRegistryAuthType,
4700
- accessToken: z169.literal("redacted").optional(),
4701
- username: z169.string().optional(),
4702
- password: z169.literal("redacted").optional(),
4805
+ accessToken: z175.literal("redacted").optional(),
4806
+ username: z175.string().optional(),
4807
+ password: z175.literal("redacted").optional(),
4703
4808
  // NPM package scopes for whih the proxy should be enabled
4704
- enabledScopes: z169.array(z169.string()),
4809
+ enabledScopes: z175.array(z175.string()),
4705
4810
  // True if client should bypass Supernova proxy and connect directly to the registry
4706
4811
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
4707
- bypassProxy: z169.boolean()
4812
+ bypassProxy: z175.boolean()
4708
4813
  });
4709
4814
 
4710
4815
  // src/api/dto/workspaces/workspace.ts
4711
- var DTOWorkspace = z170.object({
4712
- id: z170.string(),
4816
+ var DTOWorkspace = z176.object({
4817
+ id: z176.string(),
4713
4818
  profile: WorkspaceProfile,
4714
4819
  subscription: Subscription,
4715
4820
  npmRegistry: DTONpmRegistryConfig.optional()
4716
4821
  });
4717
4822
 
4718
4823
  // src/api/dto/workspaces/membership.ts
4719
- var DTOWorkspaceRole = z171.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
4720
- var DTOUserWorkspaceMembership = z171.object({
4824
+ var DTOWorkspaceRole = z177.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
4825
+ var DTOUserWorkspaceMembership = z177.object({
4721
4826
  // Workspace the user is a member of
4722
4827
  workspace: DTOWorkspace,
4723
4828
  // Assigned role the user has in the workspace
@@ -4727,95 +4832,8 @@ var DTOUserWorkspaceMembership = z171.object({
4727
4832
  // when a workspace's subscription is downgraded to free tier
4728
4833
  effectiveRole: DTOWorkspaceRole
4729
4834
  });
4730
- var DTOUserWorkspaceMembershipsResponse = z171.object({
4731
- membership: z171.array(DTOUserWorkspaceMembership)
4732
- });
4733
-
4734
- // src/api/payloads/design-systems/brand.ts
4735
- import { z as z172 } from "zod";
4736
- var DTOCreateBrandInput = z172.object({
4737
- persistentId: z172.string().uuid(),
4738
- meta: z172.object({
4739
- name: z172.string(),
4740
- description: z172.string()
4741
- })
4742
- });
4743
-
4744
- // src/api/payloads/design-systems/version.ts
4745
- import { z as z173 } from "zod";
4746
- function validateSemver(version) {
4747
- const semverRegex = /^(\d+)(\.\d+)?(\.\d+)?$/;
4748
- return semverRegex.test(version);
4749
- }
4750
- var DTOCreateVersionInput = z173.object({
4751
- meta: ObjectMeta,
4752
- version: z173.string().refine(validateSemver, {
4753
- message: "Invalid semantic versioning format"
4754
- }),
4755
- changeLog: z173.string()
4756
- });
4757
-
4758
- // src/api/payloads/documentation/block-definitions.ts
4759
- import { z as z174 } from "zod";
4760
- var DTOGetBlockDefinitionsOutput = z174.object({
4761
- definitions: z174.array(PageBlockDefinition)
4762
- });
4763
-
4764
- // src/api/payloads/liveblocks/auth.ts
4765
- import { z as z175 } from "zod";
4766
- var DTOLiveblocksAuthRequest = z175.object({
4767
- room: z175.string().optional()
4768
- });
4769
-
4770
- // src/api/payloads/workspaces/workspace-configuration.ts
4771
- import { z as z176 } from "zod";
4772
- var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4773
- function validateSsoPayload(ssoPayload) {
4774
- const keys = [];
4775
- let valid = true;
4776
- if (!ssoPayload) {
4777
- valid = true;
4778
- return {
4779
- valid,
4780
- keys: []
4781
- };
4782
- }
4783
- for (const key of Object.keys(ssoPayload)) {
4784
- if (prohibitedSsoKeys.includes(key)) {
4785
- keys.push(key);
4786
- valid = false;
4787
- }
4788
- }
4789
- return {
4790
- valid,
4791
- keys
4792
- };
4793
- }
4794
- var NpmRegistryInput = z176.object({
4795
- enabledScopes: z176.array(z176.string()),
4796
- customRegistryUrl: z176.string().optional(),
4797
- bypassProxy: z176.boolean().optional(),
4798
- npmProxyRegistryConfigId: z176.string().optional(),
4799
- npmProxyVersion: z176.number().optional(),
4800
- registryType: z176.string(),
4801
- authType: z176.string(),
4802
- authHeaderName: z176.string(),
4803
- authHeaderValue: z176.string(),
4804
- accessToken: z176.string(),
4805
- username: z176.string(),
4806
- password: z176.string()
4807
- });
4808
- var WorkspaceConfigurationPayload = z176.object({
4809
- ipWhitelist: WorkspaceIpSettings.partial().optional(),
4810
- sso: SsoProvider.partial().optional(),
4811
- npmRegistrySettings: NpmRegistryInput.partial().optional(),
4812
- profile: WorkspaceProfile.partial().optional()
4813
- });
4814
-
4815
- // src/api/payloads/workspaces/workspace-integrations.ts
4816
- import { z as z177 } from "zod";
4817
- var DTOWorkspaceIntegrationOauthInput = z177.object({
4818
- type: IntegrationType
4835
+ var DTOUserWorkspaceMembershipsResponse = z177.object({
4836
+ membership: z177.array(DTOUserWorkspaceMembership)
4819
4837
  });
4820
4838
 
4821
4839
  // src/yjs/design-system-content/documentation-hierarchy.ts
@@ -8556,6 +8574,7 @@ export {
8556
8574
  DTODeleteElementPropertyDefinitionInputV2,
8557
8575
  DTODesignSystem,
8558
8576
  DTODesignSystemVersion,
8577
+ DTODesignSystemVersionCreationResponse,
8559
8578
  DTODesignSystemVersionGetResponse,
8560
8579
  DTODesignSystemVersionsListResponse,
8561
8580
  DTODocumentationGroupCreateActionInputV2,
@@ -8647,35 +8666,39 @@ export {
8647
8666
  DTOUserWorkspaceMembershipsResponse,
8648
8667
  DTOWorkspace,
8649
8668
  DTOWorkspaceIntegrationOauthInput,
8669
+ DTOWorkspaceIntegrationPATInput,
8650
8670
  DTOWorkspaceRole,
8651
8671
  DocumentationHierarchySettings,
8652
8672
  DocumentationPageEditorModel,
8653
8673
  DocumentationPageV1DTO,
8654
8674
  ListTreeBuilder,
8655
8675
  NpmRegistryInput,
8676
+ ObjectMeta2 as ObjectMeta,
8656
8677
  PageBlockEditorModel,
8657
8678
  PageSectionEditorModel,
8679
+ VersionSQSPayload,
8658
8680
  WorkspaceConfigurationPayload,
8681
+ applyPrivacyConfigurationToNestedItems,
8659
8682
  blockToProsemirrorNode,
8660
8683
  buildDocPagePublishPaths,
8661
8684
  calculateElementParentChain,
8662
- designSystemBrandToDto,
8663
- designSystemVersionToDto,
8664
8685
  documentationElementsToHierarchyDto,
8665
8686
  documentationHierarchyToYjs,
8666
8687
  documentationItemConfigurationToDTOV1,
8667
8688
  documentationItemConfigurationToDTOV2,
8689
+ documentationPagesFixedConfigurationToDTOV1,
8690
+ documentationPagesFixedConfigurationToDTOV2,
8668
8691
  documentationPagesToDTOV1,
8669
8692
  documentationPagesToDTOV2,
8670
8693
  documentationPagesToStructureDTOV2,
8671
- dtoDefaultItemConfigurationV1,
8672
8694
  elementGroupsToDocumentationGroupDTOV1,
8673
8695
  elementGroupsToDocumentationGroupDTOV2,
8696
+ elementGroupsToDocumentationGroupFixedConfigurationDTOV1,
8697
+ elementGroupsToDocumentationGroupFixedConfigurationDTOV2,
8674
8698
  elementGroupsToDocumentationGroupStructureDTOV1,
8675
8699
  elementGroupsToDocumentationGroupStructureDTOV2,
8676
- elementPropertyDefinitionToDto,
8677
- elementPropertyValueToDto,
8678
- elementViewToDto,
8700
+ getDtoDefaultItemConfigurationV1,
8701
+ getDtoDefaultItemConfigurationV2,
8679
8702
  getMockPageBlockDefinitions,
8680
8703
  integrationToDto,
8681
8704
  itemConfigurationToYjs,