@supernova-studio/client 0.40.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist/index.d.mts +8731 -2798
  2. package/dist/index.d.ts +8731 -2798
  3. package/dist/index.js +398 -85
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1135 -822
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/api/conversion/design-systems/elements/properties/property-definition.ts +1 -1
  9. package/src/api/conversion/design-systems/elements/properties/property-value.ts +1 -1
  10. package/src/api/conversion/documentation/documentation-group-v2-to-dto.ts +4 -11
  11. package/src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts +4 -0
  12. package/src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts +32 -0
  13. package/src/api/conversion/documentation/documentation-page-v2-to-dto.ts +4 -5
  14. package/src/api/conversion/documentation/index.ts +1 -0
  15. package/src/api/conversion/index.ts +1 -0
  16. package/src/api/conversion/integrations/index.ts +1 -0
  17. package/src/api/conversion/integrations/integration.ts +12 -0
  18. package/src/api/dto/design-systems/brand.ts +5 -0
  19. package/src/api/dto/design-systems/design-system.ts +2 -0
  20. package/src/api/dto/design-systems/exporter-property.ts +8 -0
  21. package/src/api/dto/design-systems/index.ts +1 -0
  22. package/src/api/dto/documentation/anchor.ts +15 -0
  23. package/src/api/dto/documentation/index.ts +1 -0
  24. package/src/api/dto/elements/documentation/group-v2.ts +11 -12
  25. package/src/api/dto/elements/documentation/index.ts +2 -0
  26. package/src/api/dto/elements/documentation/item-configuration-v1.ts +2 -0
  27. package/src/api/dto/elements/documentation/item-configuration-v2.ts +14 -0
  28. package/src/api/dto/elements/documentation/page-content.ts +15 -0
  29. package/src/api/dto/elements/documentation/page-v2.ts +13 -13
  30. package/src/api/dto/elements/elements-action-v2.ts +30 -12
  31. package/src/api/dto/elements/properties/index.ts +1 -0
  32. package/src/api/dto/elements/properties/property-definitions-actions-v2.ts +53 -0
  33. package/src/api/dto/elements/properties/property-definitions.ts +38 -3
  34. package/src/api/dto/workspaces/index.ts +1 -0
  35. package/src/api/dto/workspaces/integrations.ts +27 -0
  36. package/src/api/payloads/design-systems/brand.ts +11 -0
  37. package/src/api/payloads/design-systems/index.ts +2 -0
  38. package/src/api/payloads/design-systems/version.ts +18 -0
  39. package/src/api/payloads/index.ts +1 -0
  40. package/src/api/payloads/liveblocks/auth.ts +1 -1
  41. package/src/api/payloads/workspaces/index.ts +1 -0
  42. package/src/api/payloads/workspaces/workspace-integrations.ts +8 -0
  43. package/src/yjs/design-system-content/item-configuration.ts +14 -9
  44. package/src/yjs/docs-editor/blocks-to-prosemirror.ts +11 -5
  45. package/src/yjs/docs-editor/prosemirror-to-blocks.ts +9 -3
package/dist/index.js CHANGED
@@ -198,6 +198,7 @@ var _zod = require('zod');
198
198
 
199
199
 
200
200
 
201
+
201
202
 
202
203
 
203
204
  var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr);
@@ -221,6 +222,12 @@ var _ipcidr = require('ip-cidr'); var _ipcidr2 = _interopRequireDefault(_ipcidr)
221
222
 
222
223
 
223
224
 
225
+
226
+
227
+
228
+
229
+
230
+
224
231
 
225
232
 
226
233
 
@@ -326,7 +333,8 @@ var FeaturesSummary = _zod.z.object({
326
333
  sso: featureToggleSchema,
327
334
  workspacePaidSeats: featureLimitedSchema,
328
335
  workspaceViewers: featureLimitedSchema,
329
- customDocumentationExporter: featureToggleSchema
336
+ customDocumentationExporter: featureToggleSchema,
337
+ protectedPages: featureToggleSchema
330
338
  });
331
339
  var InvoiceSchema = _zod.z.object({
332
340
  id: _zod.z.string(),
@@ -715,6 +723,7 @@ var HierarchicalElements = DesignTokenType.or(
715
723
  var ElementPropertyTypeSchema = _zod.z.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
716
724
  var ElementPropertyTargetType = _zod.z.enum(["Token", "Component", "DocumentationPage"]);
717
725
  var ElementPropertyLinkType = _zod.z.enum(["FigmaComponent", "DocumentationPage"]);
726
+ var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
718
727
  var ColorTokenInlineData = _zod.z.object({
719
728
  value: _zod.z.string()
720
729
  });
@@ -728,7 +737,7 @@ var ElementPropertyDefinition = _zod.z.object({
728
737
  designSystemVersionId: _zod.z.string(),
729
738
  persistentId: _zod.z.string(),
730
739
  name: _zod.z.string(),
731
- codeName: _zod.z.string(),
740
+ codeName: _zod.z.string().regex(CODE_NAME_REGEX),
732
741
  description: _zod.z.string(),
733
742
  type: ElementPropertyTypeSchema,
734
743
  targetElementType: ElementPropertyTargetType,
@@ -885,6 +894,7 @@ var PageBlockShortcut = _zod.z.object({
885
894
  asset: nullishToOptional(PageBlockAsset),
886
895
  documentationItemId: nullishToOptional(_zod.z.string()),
887
896
  url: nullishToOptional(_zod.z.string()),
897
+ openInNewTab: nullishToOptional(_zod.z.boolean()),
888
898
  urlPreview: nullishToOptional(PageBlockUrlPreview),
889
899
  documentationItemPreview: nullishToOptional(PageBlockLinkPreview)
890
900
  });
@@ -942,7 +952,9 @@ var PageBlockTextSpanAttribute = _zod.z.object({
942
952
  type: PageBlockTextSpanAttributeType,
943
953
  link: nullishToOptional(_zod.z.string()),
944
954
  documentationItemId: nullishToOptional(_zod.z.string()),
945
- openInNewWindow: nullishToOptional(_zod.z.boolean())
955
+ openInNewWindow: nullishToOptional(_zod.z.boolean()),
956
+ // deprecated. use openInNewTab
957
+ openInNewTab: nullishToOptional(_zod.z.boolean())
946
958
  });
947
959
  var PageBlockTextSpan = _zod.z.object({
948
960
  text: _zod.z.string(),
@@ -1247,6 +1259,8 @@ var defaultDocumentationItemHeaderV1 = {
1247
1259
  };
1248
1260
  var DocumentationItemConfigurationV1 = _zod.z.object({
1249
1261
  showSidebar: _zod.z.boolean(),
1262
+ isPrivate: _zod.z.boolean().optional(),
1263
+ isHidden: _zod.z.boolean().optional(),
1250
1264
  header: DocumentationItemHeaderV1
1251
1265
  });
1252
1266
  var DocumentationPageDataV1 = _zod.z.object({
@@ -1273,6 +1287,8 @@ var defaultDocumentationItemHeaderV2 = {
1273
1287
  };
1274
1288
  var DocumentationItemConfigurationV2 = _zod.z.object({
1275
1289
  showSidebar: _zod.z.boolean(),
1290
+ isPrivate: _zod.z.boolean(),
1291
+ isHidden: _zod.z.boolean(),
1276
1292
  header: DocumentationItemHeaderV2
1277
1293
  });
1278
1294
  var DocumentationPageDataV2 = _zod.z.object({
@@ -2240,6 +2256,11 @@ var DocumentationLinkPreview = _zod.z.object({
2240
2256
  description: _zod.z.string().optional(),
2241
2257
  thumbnail: PageBlockImageReference.optional()
2242
2258
  });
2259
+ var DocumentationPageAnchor = _zod.z.object({
2260
+ blockId: _zod.z.string(),
2261
+ level: _zod.z.number(),
2262
+ text: _zod.z.string()
2263
+ });
2243
2264
  var DocumentationPageContentBackup = _zod.z.object({
2244
2265
  id: _zod.z.string(),
2245
2266
  designSystemVersionId: _zod.z.string(),
@@ -2262,8 +2283,7 @@ var DocumentationPageContent = _zod.z.object({
2262
2283
  createdAt: _zod.z.coerce.date(),
2263
2284
  updatedAt: _zod.z.coerce.date(),
2264
2285
  documentationPageId: _zod.z.string(),
2265
- data: DocumentationPageContentData,
2266
- isDirty: _zod.z.boolean()
2286
+ data: DocumentationPageContentData
2267
2287
  });
2268
2288
  var DocumentationPage = _zod.z.object({
2269
2289
  type: _zod.z.literal("DocumentationPage"),
@@ -2533,11 +2553,10 @@ var DesignSystemWithWorkspace = _zod.z.object({
2533
2553
  });
2534
2554
  var DS_NAME_MIN_LENGTH = 2;
2535
2555
  var DS_NAME_MAX_LENGTH = 64;
2536
- var DS_DESC_MIN_LENGTH = 2;
2537
2556
  var DS_DESC_MAX_LENGTH = 64;
2538
2557
  var DesignSystemCreateInputMetadata = _zod.z.object({
2539
2558
  name: _zod.z.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
2540
- description: _zod.z.string().min(DS_DESC_MIN_LENGTH).max(DS_DESC_MAX_LENGTH).trim()
2559
+ description: _zod.z.string().max(DS_DESC_MAX_LENGTH).trim()
2541
2560
  });
2542
2561
  var DesignSystemCreateInput = _zod.z.object({
2543
2562
  meta: DesignSystemCreateInputMetadata,
@@ -2549,11 +2568,10 @@ var DesignSystemCreateInput = _zod.z.object({
2549
2568
  });
2550
2569
  var DS_NAME_MIN_LENGTH2 = 2;
2551
2570
  var DS_NAME_MAX_LENGTH2 = 64;
2552
- var DS_DESC_MIN_LENGTH2 = 2;
2553
2571
  var DS_DESC_MAX_LENGTH2 = 64;
2554
2572
  var DesignSystemUpdateInputMetadata = _zod.z.object({
2555
2573
  name: _zod.z.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2556
- description: _zod.z.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional()
2574
+ description: _zod.z.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
2557
2575
  });
2558
2576
  var DesignSystemUpdateInput = _zod.z.object({
2559
2577
  meta: DesignSystemUpdateInputMetadata.optional(),
@@ -2563,9 +2581,44 @@ var DesignSystemUpdateInput = _zod.z.object({
2563
2581
  docUserSlug: _zod.z.string().nullish().optional(),
2564
2582
  source: _zod.z.array(_zod.z.string()).optional(),
2565
2583
  name: _zod.z.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
2566
- description: _zod.z.string().min(DS_DESC_MIN_LENGTH2).max(DS_DESC_MAX_LENGTH2).trim().optional(),
2584
+ description: _zod.z.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
2567
2585
  docExporterId: _zod.z.string().optional()
2568
2586
  });
2587
+ var ExporterPropertyImageValue = _zod.z.object({
2588
+ asset: PageBlockAsset.optional(),
2589
+ assetId: _zod.z.string().optional(),
2590
+ assetUrl: _zod.z.string().optional()
2591
+ });
2592
+ var ExporterPropertyValue = _zod.z.object({
2593
+ key: _zod.z.string(),
2594
+ value: _zod.z.union([
2595
+ _zod.z.number(),
2596
+ _zod.z.string(),
2597
+ _zod.z.boolean(),
2598
+ ExporterPropertyImageValue,
2599
+ ColorTokenData,
2600
+ TypographyTokenData
2601
+ ])
2602
+ });
2603
+ var ExporterPropertyValuesCollection = _zod.z.object({
2604
+ id: _zod.z.string(),
2605
+ designSystemId: _zod.z.string(),
2606
+ exporterId: _zod.z.string(),
2607
+ values: _zod.z.array(ExporterPropertyValue)
2608
+ });
2609
+ var PublishedDocPage = _zod.z.object({
2610
+ id: _zod.z.string(),
2611
+ publishedDocId: _zod.z.string(),
2612
+ pageShortPersistentId: _zod.z.string(),
2613
+ pathV1: _zod.z.string(),
2614
+ pathV2: _zod.z.string(),
2615
+ storagePath: _zod.z.string(),
2616
+ locale: _zod.z.string().optional(),
2617
+ isPrivate: _zod.z.boolean(),
2618
+ isHidden: _zod.z.boolean(),
2619
+ createdAt: _zod.z.coerce.date(),
2620
+ updatedAt: _zod.z.coerce.date()
2621
+ });
2569
2622
  var publishedDocEnvironments = ["Live", "Preview"];
2570
2623
  var PublishedDocEnvironment = _zod.z.enum(publishedDocEnvironments);
2571
2624
  var PublishedDocsChecksums = _zod.z.record(_zod.z.string());
@@ -2836,6 +2889,11 @@ var UserLinkedIntegrations = _zod.z.object({
2836
2889
  gitlab: IntegrationUserInfo.array().optional(),
2837
2890
  bitbucket: IntegrationUserInfo.array().optional()
2838
2891
  });
2892
+ var CreateUserInput = _zod.z.object({
2893
+ email: _zod.z.string(),
2894
+ name: _zod.z.string(),
2895
+ username: _zod.z.string()
2896
+ });
2839
2897
  var UserIdentity = _zod.z.object({
2840
2898
  id: _zod.z.string(),
2841
2899
  userId: _zod.z.string()
@@ -2857,6 +2915,10 @@ var UserProfile = _zod.z.object({
2857
2915
  nickname: _zod.z.string().optional(),
2858
2916
  onboarding: UserOnboarding.optional()
2859
2917
  });
2918
+ var UserTest = _zod.z.object({
2919
+ id: _zod.z.string(),
2920
+ email: _zod.z.string()
2921
+ });
2860
2922
  var User = _zod.z.object({
2861
2923
  id: _zod.z.string(),
2862
2924
  email: _zod.z.string(),
@@ -2890,7 +2952,7 @@ var UserSession = _zod.z.object({
2890
2952
  session: Session,
2891
2953
  user: User.nullable()
2892
2954
  });
2893
- var FlaggedFeature = _zod.z.enum(["FigmaImporterV2", "ShadowOpacityOptional"]);
2955
+ var FlaggedFeature = _zod.z.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
2894
2956
  var FeatureFlagMap = _zod.z.record(FlaggedFeature, _zod.z.boolean());
2895
2957
  var FeatureFlag = _zod.z.object({
2896
2958
  id: _zod.z.string(),
@@ -2916,6 +2978,30 @@ var ExternalOAuthRequest = _zod.z.object({
2916
2978
  state: _zod.z.string(),
2917
2979
  createdAt: _zod.z.coerce.date()
2918
2980
  });
2981
+ var IntegrationCredentialsType = _zod.z.enum(["OAuth2", "PAT"]);
2982
+ var IntegrationCredentialsProfile = _zod.z.object({
2983
+ id: _zod.z.string(),
2984
+ username: _zod.z.string().optional(),
2985
+ avatarUrl: _zod.z.string().optional()
2986
+ });
2987
+ var IntegrationCredentialsSchema = _zod.z.object({
2988
+ id: _zod.z.string(),
2989
+ type: IntegrationCredentialsType,
2990
+ integrationId: _zod.z.string(),
2991
+ accessToken: _zod.z.string(),
2992
+ userId: _zod.z.string(),
2993
+ createdAt: _zod.z.coerce.date(),
2994
+ refreshToken: _zod.z.string().optional(),
2995
+ profile: IntegrationCredentialsProfile.optional()
2996
+ });
2997
+ var IntegrationType = _zod.z.enum(["Figma", "Github", "Gitlab", "Bitbucket", "Azure"]);
2998
+ var Integration = _zod.z.object({
2999
+ id: _zod.z.string(),
3000
+ workspaceId: _zod.z.string(),
3001
+ type: IntegrationType,
3002
+ createdAt: _zod.z.coerce.date(),
3003
+ integrationCredentials: _zod.z.array(IntegrationCredentialsSchema).optional()
3004
+ });
2919
3005
  var IntegrationTokenSchema = _zod.z.object({
2920
3006
  id: _zod.z.string(),
2921
3007
  provider: OAuthProviderSchema,
@@ -2926,6 +3012,13 @@ var IntegrationTokenSchema = _zod.z.object({
2926
3012
  expiresAt: _zod.z.coerce.date(),
2927
3013
  externalUserId: _zod.z.string().nullish()
2928
3014
  });
3015
+ var WorkspaceOAuthRequestSchema = _zod.z.object({
3016
+ id: _zod.z.string(),
3017
+ workspaceId: _zod.z.string(),
3018
+ provider: OAuthProviderSchema,
3019
+ userId: _zod.z.string(),
3020
+ createdAt: _zod.z.coerce.date()
3021
+ });
2929
3022
  var AnyRecord = _zod.z.record(_zod.z.any());
2930
3023
  var NpmPackageVersionDist = AnyRecord.and(
2931
3024
  _zod.z.object({
@@ -2953,14 +3046,14 @@ var NpmProxyTokenPayload = _zod.z.object({
2953
3046
  var PersonalAccessToken = _zod.z.object({
2954
3047
  id: _zod.z.string(),
2955
3048
  userId: _zod.z.string(),
3049
+ workspaceId: _zod.z.string().optional(),
3050
+ workspaceRole: WorkspaceRoleSchema.optional(),
2956
3051
  name: _zod.z.string(),
3052
+ hidden: _zod.z.boolean(),
2957
3053
  token: _zod.z.string(),
3054
+ scope: _zod.z.string().optional(),
2958
3055
  createdAt: _zod.z.coerce.date(),
2959
- hidden: _zod.z.boolean(),
2960
- workspaceId: _zod.z.string().optional(),
2961
- workspaceRole: WorkspaceRoleSchema.optional(),
2962
- expireAt: _zod.z.coerce.date().optional(),
2963
- scope: _zod.z.string().optional()
3056
+ expireAt: _zod.z.coerce.date().optional()
2964
3057
  });
2965
3058
  var SupernovaException = class _SupernovaException extends Error {
2966
3059
  //
@@ -3018,6 +3111,9 @@ var SupernovaException = class _SupernovaException extends Error {
3018
3111
  static noAccess(message) {
3019
3112
  return new _SupernovaException("NoAccess", message);
3020
3113
  }
3114
+ static missingCredentials(message) {
3115
+ return new _SupernovaException("MissingCredentials", message);
3116
+ }
3021
3117
  //
3022
3118
  // To refactor
3023
3119
  //
@@ -3691,6 +3787,30 @@ var RESERVED_SLUGS = [
3691
3787
  ];
3692
3788
  var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
3693
3789
 
3790
+ // src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
3791
+ var dtoDefaultItemConfigurationV2 = {
3792
+ showSidebar: true,
3793
+ isHidden: false,
3794
+ isPrivate: false,
3795
+ header: {
3796
+ alignment: DocumentationItemHeaderAlignment.Left,
3797
+ backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
3798
+ description: "",
3799
+ showBackgroundOverlay: false,
3800
+ showCoverText: true
3801
+ }
3802
+ };
3803
+ function documentationItemConfigurationToDTOV2(config) {
3804
+ if (!config)
3805
+ return dtoDefaultItemConfigurationV2;
3806
+ return {
3807
+ header: config.header,
3808
+ isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV2.isPrivate)),
3809
+ isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV2.isPrivate)),
3810
+ showSidebar: config.showSidebar
3811
+ };
3812
+ }
3813
+
3694
3814
  // src/api/conversion/documentation/documentation-group-v2-to-dto.ts
3695
3815
  function elementGroupsToDocumentationGroupStructureDTOV2(groups, pages) {
3696
3816
  const childrenIdsMap = calculateChildrenIdsMapV2(pages, groups);
@@ -3701,10 +3821,7 @@ function elementGroupsToDocumentationGroupDTOV2(groups, pages) {
3701
3821
  return groups.map((group) => {
3702
3822
  return {
3703
3823
  ...elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap),
3704
- configuration: _nullishCoalesce(_optionalChain([group, 'access', _3 => _3.data, 'optionalAccess', _4 => _4.configuration]), () => ( {
3705
- showSidebar: true,
3706
- header: defaultDocumentationItemHeaderV2
3707
- }))
3824
+ configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'access', _3 => _3.data, 'optionalAccess', _4 => _4.configuration]))
3708
3825
  };
3709
3826
  });
3710
3827
  }
@@ -3722,9 +3839,10 @@ function elementGroupToDocumentationGroupStructureDTOV2(group, childrenIdsMap) {
3722
3839
  createdAt: group.createdAt,
3723
3840
  updatedAt: group.updatedAt,
3724
3841
  title: group.meta.name,
3842
+ configuration: documentationItemConfigurationToDTOV2(_optionalChain([group, 'optionalAccess', _5 => _5.data, 'optionalAccess', _6 => _6.configuration])),
3725
3843
  childrenIds,
3726
3844
  isRoot: !group.parentPersistentId,
3727
- groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _5 => _5.data, 'optionalAccess', _6 => _6.behavior]), () => ( "Group")),
3845
+ groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _7 => _7.data, 'optionalAccess', _8 => _8.behavior]), () => ( "Group")),
3728
3846
  shortPersistentId: group.shortPersistentId,
3729
3847
  type: "Group"
3730
3848
  };
@@ -3775,7 +3893,7 @@ function calculateElementParentChain(elementParentPersistentId, groupPersistentI
3775
3893
  const parent = groupPersistentIdToGroupMap.get(parentId);
3776
3894
  if (parent)
3777
3895
  result.push(parent);
3778
- parentId = _optionalChain([parent, 'optionalAccess', _7 => _7.parentPersistentId]);
3896
+ parentId = _optionalChain([parent, 'optionalAccess', _9 => _9.parentPersistentId]);
3779
3897
  }
3780
3898
  return result;
3781
3899
  }
@@ -3790,10 +3908,7 @@ function documentationPagesToDTOV2(pages, groups, routingVersion) {
3790
3908
  return pages.map((page) => {
3791
3909
  return {
3792
3910
  ...documentationPageToStructureDTOV2(page, pathsMap),
3793
- configuration: _nullishCoalesce(page.data.configuration, () => ( {
3794
- showSidebar: true,
3795
- header: defaultDocumentationItemHeaderV2
3796
- }))
3911
+ configuration: documentationItemConfigurationToDTOV2(page.data.configuration)
3797
3912
  };
3798
3913
  });
3799
3914
  }
@@ -3811,6 +3926,7 @@ function documentationPageToStructureDTOV2(page, pagePathMap) {
3811
3926
  title: page.meta.name,
3812
3927
  slug: page.slug,
3813
3928
  userSlug: page.userSlug,
3929
+ configuration: documentationItemConfigurationToDTOV2(page.data.configuration),
3814
3930
  createdAt: page.createdAt,
3815
3931
  updatedAt: page.updatedAt,
3816
3932
  path,
@@ -3829,6 +3945,8 @@ function documentationElementsToHierarchyDto(docPages, docGroups, routingVersion
3829
3945
  // src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
3830
3946
  var dtoDefaultItemConfigurationV1 = {
3831
3947
  showSidebar: true,
3948
+ isHidden: false,
3949
+ isPrivate: false,
3832
3950
  header: {
3833
3951
  alignment: DocumentationItemHeaderAlignment.Left,
3834
3952
  backgroundImageScaleType: DocumentationItemHeaderImageScaleType.AspectFill,
@@ -3842,6 +3960,8 @@ function documentationItemConfigurationToDTOV1(config) {
3842
3960
  const { backgroundColor, foregroundColor, ...headerRest } = header;
3843
3961
  return {
3844
3962
  showSidebar,
3963
+ isHidden: _nullishCoalesce(config.isHidden, () => ( dtoDefaultItemConfigurationV1.isHidden)),
3964
+ isPrivate: _nullishCoalesce(config.isPrivate, () => ( dtoDefaultItemConfigurationV1.isPrivate)),
3845
3965
  header: {
3846
3966
  ...headerRest,
3847
3967
  backgroundColor: colorToDTOV1(_nullishCoalesce(backgroundColor, () => ( void 0))),
@@ -3873,7 +3993,7 @@ function elementGroupsToDocumentationGroupDTOV1(groups, pages) {
3873
3993
  return groups.map((group) => {
3874
3994
  return {
3875
3995
  ...elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap),
3876
- configuration: _optionalChain([group, 'access', _8 => _8.data, 'optionalAccess', _9 => _9.configuration]) ? documentationItemConfigurationToDTOV1(group.data.configuration) : dtoDefaultItemConfigurationV1
3996
+ configuration: _optionalChain([group, 'access', _10 => _10.data, 'optionalAccess', _11 => _11.configuration]) ? documentationItemConfigurationToDTOV1(group.data.configuration) : dtoDefaultItemConfigurationV1
3877
3997
  };
3878
3998
  });
3879
3999
  }
@@ -3893,7 +4013,7 @@ function elementGroupToDocumentationGroupStructureDTOV1(group, childrenIdsMap) {
3893
4013
  title: group.meta.name,
3894
4014
  childrenIds,
3895
4015
  isRoot: !group.parentPersistentId,
3896
- groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _10 => _10.data, 'optionalAccess', _11 => _11.behavior]), () => ( "Group")),
4016
+ groupBehavior: _nullishCoalesce(_optionalChain([group, 'access', _12 => _12.data, 'optionalAccess', _13 => _13.behavior]), () => ( "Group")),
3897
4017
  shortPersistentId: group.shortPersistentId,
3898
4018
  type: "Group"
3899
4019
  };
@@ -3939,6 +4059,17 @@ function documentationPagesToDTOV1(pages, groups, routingVersion) {
3939
4059
  });
3940
4060
  }
3941
4061
 
4062
+ // src/api/conversion/integrations/integration.ts
4063
+ function integrationToDto(integration) {
4064
+ return {
4065
+ id: integration.id,
4066
+ workspaceId: integration.workspaceId,
4067
+ type: integration.type,
4068
+ createdAt: integration.createdAt,
4069
+ integrationCredentials: _nullishCoalesce(integration.integrationCredentials, () => ( void 0))
4070
+ };
4071
+ }
4072
+
3942
4073
  // src/api/dto/design-systems/brand.ts
3943
4074
 
3944
4075
  var DTOBrand = _zod.z.object({
@@ -3948,16 +4079,27 @@ var DTOBrand = _zod.z.object({
3948
4079
  meta: ObjectMeta
3949
4080
  });
3950
4081
  var DTOBrandGetResponse = _zod.z.object({ brand: DTOBrand });
4082
+ var DTOBrandCreateResponse = _zod.z.object({
4083
+ brand: DTOBrand
4084
+ });
3951
4085
  var DTOBrandsListResponse = _zod.z.object({ brands: _zod.z.array(DTOBrand) });
3952
4086
 
3953
4087
  // src/api/dto/design-systems/design-system.ts
4088
+
3954
4089
  var DTODesignSystem = DesignSystem.omit({
3955
4090
  name: true,
3956
- description: true
4091
+ description: true,
4092
+ docExporterId: true
3957
4093
  }).extend({
3958
- meta: ObjectMeta
4094
+ meta: ObjectMeta,
4095
+ docExporterId: _zod.z.string()
3959
4096
  });
3960
4097
 
4098
+ // src/api/dto/design-systems/exporter-property.ts
4099
+
4100
+ var DTOExporterProperty = _zod.z.any({});
4101
+ var DTOExporterPropertyListResponse = _zod.z.object({ items: _zod.z.array(DTOExporterProperty) });
4102
+
3961
4103
  // src/api/dto/design-systems/version.ts
3962
4104
 
3963
4105
  var DTODesignSystemVersion = _zod.z.object({
@@ -4012,6 +4154,13 @@ var DTOElementViewsListResponse = _zod.z.object({
4012
4154
  elementDataViews: _zod.z.array(DTOElementView)
4013
4155
  });
4014
4156
 
4157
+ // src/api/dto/documentation/anchor.ts
4158
+
4159
+ var DTODocumentationPageAnchor = DocumentationPageAnchor;
4160
+ var DTOGetDocumentationPageAnchorsResponse = _zod.z.object({
4161
+ anchors: _zod.z.array(DTODocumentationPageAnchor)
4162
+ });
4163
+
4015
4164
  // src/api/dto/documentation/link-preview.ts
4016
4165
 
4017
4166
  var DTODocumentationLinkPreviewResponse = _zod.z.object({
@@ -4027,7 +4176,19 @@ var DTODocumentationLinkPreviewRequest = _zod.z.object({
4027
4176
 
4028
4177
  // src/api/dto/elements/documentation/group-v2.ts
4029
4178
 
4030
- var DTODocumentationGroupStructureV2 = ElementGroup.omit({
4179
+
4180
+ // src/api/dto/elements/documentation/item-configuration-v2.ts
4181
+
4182
+ var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
4183
+ var DTODocumentationItemConfigurationV2 = _zod.z.object({
4184
+ showSidebar: _zod.z.boolean(),
4185
+ isPrivate: _zod.z.boolean(),
4186
+ isHidden: _zod.z.boolean(),
4187
+ header: DTODocumentationItemHeaderV2
4188
+ });
4189
+
4190
+ // src/api/dto/elements/documentation/group-v2.ts
4191
+ var DTODocumentationGroupV2 = ElementGroup.omit({
4031
4192
  sortOrder: true,
4032
4193
  parentPersistentId: true,
4033
4194
  brandPersistentId: true,
@@ -4041,19 +4202,18 @@ var DTODocumentationGroupStructureV2 = ElementGroup.omit({
4041
4202
  childrenIds: _zod.z.array(_zod.z.string()),
4042
4203
  groupBehavior: DocumentationGroupBehavior,
4043
4204
  shortPersistentId: _zod.z.string(),
4205
+ configuration: DTODocumentationItemConfigurationV2,
4044
4206
  type: _zod.z.literal("Group")
4045
4207
  });
4046
- var DTODocumentationGroupV2 = DTODocumentationGroupStructureV2.extend({
4047
- configuration: DocumentationItemConfigurationV2
4048
- });
4208
+ var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
4049
4209
  var DTOCreateDocumentationGroupInput = _zod.z.object({
4050
4210
  // Identifier
4051
4211
  persistentId: _zod.z.string().uuid(),
4052
4212
  // Group properties
4053
4213
  title: _zod.z.string(),
4054
- configuration: DocumentationItemConfigurationV2.optional(),
4214
+ configuration: DTODocumentationItemConfigurationV2.optional(),
4055
4215
  // Group placement properties
4056
- afterPersistentId: _zod.z.string().uuid().optional(),
4216
+ afterPersistentId: _zod.z.string().uuid().nullish(),
4057
4217
  parentPersistentId: _zod.z.string().uuid()
4058
4218
  });
4059
4219
  var DTOUpdateDocumentationGroupInput = _zod.z.object({
@@ -4061,14 +4221,14 @@ var DTOUpdateDocumentationGroupInput = _zod.z.object({
4061
4221
  id: _zod.z.string(),
4062
4222
  // Group properties
4063
4223
  title: _zod.z.string().optional(),
4064
- configuration: DocumentationItemConfigurationV2.optional()
4224
+ configuration: DTODocumentationItemConfigurationV2.partial().optional()
4065
4225
  });
4066
4226
  var DTOMoveDocumentationGroupInput = _zod.z.object({
4067
4227
  // Identifier of the group to update
4068
4228
  id: _zod.z.string(),
4069
4229
  // Group placement properties
4070
4230
  parentPersistentId: _zod.z.string().uuid(),
4071
- afterPersistentId: _zod.z.string().uuid().optional()
4231
+ afterPersistentId: _zod.z.string().uuid().nullish()
4072
4232
  });
4073
4233
  var DTODuplicateDocumentationGroupInput = _zod.z.object({
4074
4234
  // Identifier of the group to duplicate from
@@ -4076,7 +4236,7 @@ var DTODuplicateDocumentationGroupInput = _zod.z.object({
4076
4236
  // New group persistent id
4077
4237
  persistentId: _zod.z.string().uuid(),
4078
4238
  // Group placement properties
4079
- afterPersistentId: _zod.z.string().uuid().optional(),
4239
+ afterPersistentId: _zod.z.string().uuid().nullish(),
4080
4240
  parentPersistentId: _zod.z.string().uuid()
4081
4241
  });
4082
4242
  var DTOCreateDocumentationTabInput = _zod.z.object({
@@ -4177,6 +4337,8 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
4177
4337
  });
4178
4338
  var DTODocumentationItemConfigurationV1 = _zod.z.object({
4179
4339
  showSidebar: _zod.z.boolean(),
4340
+ isPrivate: _zod.z.boolean(),
4341
+ isHidden: _zod.z.boolean(),
4180
4342
  header: DTODocumentationItemHeaderV1
4181
4343
  });
4182
4344
 
@@ -4206,7 +4368,7 @@ var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
4206
4368
 
4207
4369
  // src/api/dto/elements/documentation/page-v2.ts
4208
4370
 
4209
- var DTODocumentationPageStructureV2 = DocumentationPageV2.omit({
4371
+ var DTODocumentationPageV2 = DocumentationPageV2.omit({
4210
4372
  data: true,
4211
4373
  meta: true,
4212
4374
  parentPersistentId: true,
@@ -4214,11 +4376,10 @@ var DTODocumentationPageStructureV2 = DocumentationPageV2.omit({
4214
4376
  }).extend({
4215
4377
  title: _zod.z.string(),
4216
4378
  path: _zod.z.string(),
4217
- type: _zod.z.literal("Page")
4218
- });
4219
- var DTODocumentationPageV2 = DTODocumentationPageStructureV2.extend({
4220
- configuration: DocumentationItemConfigurationV2
4379
+ type: _zod.z.literal("Page"),
4380
+ configuration: DTODocumentationItemConfigurationV2
4221
4381
  });
4382
+ var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
4222
4383
  var DTODocumentationHierarchyV2 = _zod.z.object({
4223
4384
  pages: _zod.z.array(DTODocumentationPageStructureV2),
4224
4385
  groups: _zod.z.array(DTODocumentationGroupStructureV2)
@@ -4228,24 +4389,24 @@ var DTOCreateDocumentationPageInputV2 = _zod.z.object({
4228
4389
  persistentId: _zod.z.string().uuid(),
4229
4390
  // Page properties
4230
4391
  title: _zod.z.string(),
4231
- configuration: DocumentationItemConfigurationV2.optional(),
4392
+ configuration: DTODocumentationItemConfigurationV2.optional(),
4232
4393
  // Page placement properties
4233
4394
  parentPersistentId: _zod.z.string().uuid(),
4234
- afterPersistentId: _zod.z.string().uuid().optional()
4395
+ afterPersistentId: _zod.z.string().uuid().nullish()
4235
4396
  });
4236
4397
  var DTOUpdateDocumentationPageInputV2 = _zod.z.object({
4237
4398
  // Identifier of the group to update
4238
4399
  id: _zod.z.string(),
4239
4400
  // Page properties
4240
4401
  title: _zod.z.string().optional(),
4241
- configuration: DocumentationItemConfigurationV2.optional()
4402
+ configuration: DTODocumentationItemConfigurationV2.partial().optional()
4242
4403
  });
4243
4404
  var DTOMoveDocumentationPageInputV2 = _zod.z.object({
4244
4405
  // Identifier of the group to update
4245
4406
  id: _zod.z.string(),
4246
4407
  // Page placement properties
4247
4408
  parentPersistentId: _zod.z.string().uuid(),
4248
- afterPersistentId: _zod.z.string().uuid().optional()
4409
+ afterPersistentId: _zod.z.string().uuid().nullish()
4249
4410
  });
4250
4411
  var DTODuplicateDocumentationPageInputV2 = _zod.z.object({
4251
4412
  // Identifier of the page to duplicate from
@@ -4254,7 +4415,7 @@ var DTODuplicateDocumentationPageInputV2 = _zod.z.object({
4254
4415
  persistentId: _zod.z.string().uuid(),
4255
4416
  // Page placement properties
4256
4417
  parentPersistentId: _zod.z.string().uuid(),
4257
- afterPersistentId: _zod.z.string().uuid().optional()
4418
+ afterPersistentId: _zod.z.string().uuid().nullish()
4258
4419
  });
4259
4420
  var DTODeleteDocumentationPageInputV2 = _zod.z.object({
4260
4421
  // Identifier
@@ -4306,6 +4467,13 @@ var DTODocumentationPageDeleteActionInputV2 = _zod.z.object({
4306
4467
  input: DTODeleteDocumentationPageInputV2
4307
4468
  });
4308
4469
 
4470
+ // src/api/dto/elements/documentation/page-content.ts
4471
+
4472
+ var DTODocumentationPageContent = DocumentationPageContent;
4473
+ var DTODocumentationPageContentGetResponse = _zod.z.object({
4474
+ pageContent: DTODocumentationPageContent
4475
+ });
4476
+
4309
4477
  // src/api/dto/elements/documentation/page-v1.ts
4310
4478
 
4311
4479
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
@@ -4358,8 +4526,12 @@ var DTOFigmaNodeRenderActionInput = _zod.z.object({
4358
4526
  input: DTOFigmaNodeRenderInput.array()
4359
4527
  });
4360
4528
 
4529
+ // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4530
+
4531
+
4361
4532
  // src/api/dto/elements/properties/property-definitions.ts
4362
4533
 
4534
+ var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
4363
4535
  var DTOElementPropertyDefinition = _zod.z.object({
4364
4536
  id: _zod.z.string(),
4365
4537
  designSystemVersionId: _zod.z.string(),
@@ -4367,13 +4539,56 @@ var DTOElementPropertyDefinition = _zod.z.object({
4367
4539
  persistentId: _zod.z.string(),
4368
4540
  type: ElementPropertyTypeSchema,
4369
4541
  targetElementType: ElementPropertyTargetType,
4370
- codeName: _zod.z.string(),
4542
+ codeName: _zod.z.string().regex(CODE_NAME_REGEX2),
4371
4543
  options: _zod.z.array(ElementPropertyDefinitionOption).optional(),
4372
4544
  linkElementType: ElementPropertyLinkType.optional()
4373
4545
  });
4374
4546
  var DTOElementPropertyDefinitionsGetResponse = _zod.z.object({
4375
4547
  definitions: _zod.z.array(DTOElementPropertyDefinition)
4376
4548
  });
4549
+ var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
4550
+ id: true,
4551
+ designSystemVersionId: true
4552
+ });
4553
+ var DTOUpdateElementPropertyDefinitionInputV2 = _zod.z.object({
4554
+ id: _zod.z.string(),
4555
+ name: _zod.z.string().optional(),
4556
+ description: _zod.z.string().optional(),
4557
+ codeName: _zod.z.string().regex(CODE_NAME_REGEX2).optional(),
4558
+ options: _zod.z.array(ElementPropertyDefinitionOption).optional()
4559
+ });
4560
+ var DTODeleteElementPropertyDefinitionInputV2 = _zod.z.object({
4561
+ id: _zod.z.string()
4562
+ });
4563
+
4564
+ // src/api/dto/elements/properties/property-definitions-actions-v2.ts
4565
+ var SuccessPayload3 = _zod.z.object({
4566
+ success: _zod.z.literal(true)
4567
+ });
4568
+ var DTOPropertyDefinitionCreateActionOutputV2 = _zod.z.object({
4569
+ type: _zod.z.literal("PropertyDefinitionCreate"),
4570
+ definition: DTOElementPropertyDefinition
4571
+ });
4572
+ var DTOPropertyDefinitionUpdateActionOutputV2 = _zod.z.object({
4573
+ type: _zod.z.literal("PropertyDefinitionUpdate"),
4574
+ definition: DTOElementPropertyDefinition
4575
+ });
4576
+ var DTOPropertyDefinitionDeleteActionOutputV2 = _zod.z.object({
4577
+ type: _zod.z.literal("PropertyDefinitionDelete"),
4578
+ output: SuccessPayload3
4579
+ });
4580
+ var DTOPropertyDefinitionCreateActionInputV2 = _zod.z.object({
4581
+ type: _zod.z.literal("PropertyDefinitionCreate"),
4582
+ input: DTOCreateElementPropertyDefinitionInputV2
4583
+ });
4584
+ var DTOPropertyDefinitionUpdateActionInputV2 = _zod.z.object({
4585
+ type: _zod.z.literal("PropertyDefinitionUpdate"),
4586
+ input: DTOUpdateElementPropertyDefinitionInputV2
4587
+ });
4588
+ var DTOPropertyDefinitionDeleteActionInputV2 = _zod.z.object({
4589
+ type: _zod.z.literal("PropertyDefinitionDelete"),
4590
+ input: DTODeleteElementPropertyDefinitionInputV2
4591
+ });
4377
4592
 
4378
4593
  // src/api/dto/elements/properties/property-values.ts
4379
4594
 
@@ -4407,7 +4622,11 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
4407
4622
  DTODocumentationGroupDeleteActionOutputV2,
4408
4623
  DTODocumentationTabGroupDeleteActionOutputV2,
4409
4624
  // Figma frames
4410
- DTOFigmaNodeRenderActionOutput
4625
+ DTOFigmaNodeRenderActionOutput,
4626
+ // Properties Definitions
4627
+ DTOPropertyDefinitionCreateActionOutputV2,
4628
+ DTOPropertyDefinitionUpdateActionOutputV2,
4629
+ DTOPropertyDefinitionDeleteActionOutputV2
4411
4630
  ]);
4412
4631
  var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
4413
4632
  // Documentation pages
@@ -4425,7 +4644,11 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
4425
4644
  DTODocumentationGroupDeleteActionInputV2,
4426
4645
  DTODocumentationTabGroupDeleteActionInputV2,
4427
4646
  // Figma frames
4428
- DTOFigmaNodeRenderActionInput
4647
+ DTOFigmaNodeRenderActionInput,
4648
+ // Properties Definitions
4649
+ DTOPropertyDefinitionCreateActionInputV2,
4650
+ DTOPropertyDefinitionUpdateActionInputV2,
4651
+ DTOPropertyDefinitionDeleteActionInputV2
4429
4652
  ]);
4430
4653
 
4431
4654
  // src/api/dto/elements/get-elements-v2.ts
@@ -4438,6 +4661,25 @@ var DTOElementsGetOutput = _zod.z.object({
4438
4661
  figmaNodes: _zod.z.array(DTOFigmaNode).optional()
4439
4662
  });
4440
4663
 
4664
+ // src/api/dto/workspaces/integrations.ts
4665
+
4666
+ var DTOIntegration = _zod.z.object({
4667
+ id: _zod.z.string(),
4668
+ workspaceId: _zod.z.string(),
4669
+ type: IntegrationType,
4670
+ createdAt: _zod.z.coerce.date(),
4671
+ integrationCredentials: _zod.z.array(IntegrationCredentialsSchema).optional()
4672
+ });
4673
+ var DTOIntegrationOAuthGetResponse = _zod.z.object({
4674
+ url: _zod.z.string()
4675
+ });
4676
+ var DTOIntegrationPostResponse = _zod.z.object({
4677
+ integration: DTOIntegration
4678
+ });
4679
+ var DTOIntegrationsGetListResponse = _zod.z.object({
4680
+ integrations: DTOIntegration.array()
4681
+ });
4682
+
4441
4683
  // src/api/dto/workspaces/membership.ts
4442
4684
 
4443
4685
 
@@ -4489,6 +4731,30 @@ var DTOUserWorkspaceMembershipsResponse = _zod.z.object({
4489
4731
  membership: _zod.z.array(DTOUserWorkspaceMembership)
4490
4732
  });
4491
4733
 
4734
+ // src/api/payloads/design-systems/brand.ts
4735
+
4736
+ var DTOCreateBrandInput = _zod.z.object({
4737
+ persistentId: _zod.z.string().uuid(),
4738
+ meta: _zod.z.object({
4739
+ name: _zod.z.string(),
4740
+ description: _zod.z.string()
4741
+ })
4742
+ });
4743
+
4744
+ // src/api/payloads/design-systems/version.ts
4745
+
4746
+ function validateSemver(version) {
4747
+ const semverRegex = /^(\d+)(\.\d+)?(\.\d+)?$/;
4748
+ return semverRegex.test(version);
4749
+ }
4750
+ var DTOCreateVersionInput = _zod.z.object({
4751
+ meta: ObjectMeta,
4752
+ version: _zod.z.string().refine(validateSemver, {
4753
+ message: "Invalid semantic versioning format"
4754
+ }),
4755
+ changeLog: _zod.z.string()
4756
+ });
4757
+
4492
4758
  // src/api/payloads/documentation/block-definitions.ts
4493
4759
 
4494
4760
  var DTOGetBlockDefinitionsOutput = _zod.z.object({
@@ -4498,7 +4764,7 @@ var DTOGetBlockDefinitionsOutput = _zod.z.object({
4498
4764
  // src/api/payloads/liveblocks/auth.ts
4499
4765
 
4500
4766
  var DTOLiveblocksAuthRequest = _zod.z.object({
4501
- room: _zod.z.string()
4767
+ room: _zod.z.string().optional()
4502
4768
  });
4503
4769
 
4504
4770
  // src/api/payloads/workspaces/workspace-configuration.ts
@@ -4546,6 +4812,12 @@ var WorkspaceConfigurationPayload = _zod.z.object({
4546
4812
  profile: WorkspaceProfile.partial().optional()
4547
4813
  });
4548
4814
 
4815
+ // src/api/payloads/workspaces/workspace-integrations.ts
4816
+
4817
+ var DTOWorkspaceIntegrationOauthInput = _zod.z.object({
4818
+ type: IntegrationType
4819
+ });
4820
+
4549
4821
  // src/yjs/design-system-content/documentation-hierarchy.ts
4550
4822
 
4551
4823
  var DocumentationHierarchySettings = _zod.z.object({
@@ -4572,7 +4844,7 @@ function documentationHierarchyToYjs(doc, transaction) {
4572
4844
  const sanitizedGroup = {
4573
4845
  ...group,
4574
4846
  data: {
4575
- behavior: _optionalChain([group, 'access', _12 => _12.data, 'optionalAccess', _13 => _13.behavior])
4847
+ behavior: _optionalChain([group, 'access', _14 => _14.data, 'optionalAccess', _15 => _15.behavior])
4576
4848
  }
4577
4849
  };
4578
4850
  groupsMap.set(group.id, JSON.parse(JSON.stringify(sanitizedGroup)));
@@ -4627,16 +4899,16 @@ function getInternalSettingsYMap(doc) {
4627
4899
 
4628
4900
  var DTODocumentationPageRoomHeaderData = _zod.z.object({
4629
4901
  title: _zod.z.string(),
4630
- configuration: DocumentationItemConfigurationV2
4902
+ configuration: DTODocumentationItemConfigurationV2
4631
4903
  });
4632
4904
  var DTODocumentationPageRoomHeaderDataUpdate = _zod.z.object({
4633
4905
  title: _zod.z.string().optional(),
4634
- configuration: DocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
4906
+ configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
4635
4907
  });
4636
4908
  function itemConfigurationToYjs(yDoc, item) {
4637
4909
  yDoc.transact((trx) => {
4638
4910
  const { title, configuration } = item;
4639
- const header = _optionalChain([configuration, 'optionalAccess', _14 => _14.header]);
4911
+ const header = _optionalChain([configuration, 'optionalAccess', _16 => _16.header]);
4640
4912
  if (title !== void 0) {
4641
4913
  const headerYMap = trx.doc.getMap("itemTitle");
4642
4914
  headerYMap.set("title", title);
@@ -4653,10 +4925,10 @@ function itemConfigurationToYjs(yDoc, item) {
4653
4925
  header.showCoverText !== void 0 && headerYMap.set("showCoverText", header.showCoverText);
4654
4926
  header.minHeight !== void 0 && headerYMap.set("minHeight", header.minHeight);
4655
4927
  }
4656
- if (_optionalChain([configuration, 'optionalAccess', _15 => _15.showSidebar]) !== void 0) {
4657
- const configYMap = trx.doc.getMap("itemConfiguration");
4658
- configYMap.set("showSidebar", configuration.showSidebar);
4659
- }
4928
+ const configYMap = trx.doc.getMap("itemConfiguration");
4929
+ _optionalChain([configuration, 'optionalAccess', _17 => _17.showSidebar]) !== void 0 && configYMap.set("showSidebar", configuration.showSidebar);
4930
+ _optionalChain([configuration, 'optionalAccess', _18 => _18.isHidden]) !== void 0 && configYMap.set("isHidden", configuration.isHidden);
4931
+ _optionalChain([configuration, 'optionalAccess', _19 => _19.isPrivate]) !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
4660
4932
  });
4661
4933
  }
4662
4934
  function yjsToItemConfiguration(yDoc) {
@@ -4676,11 +4948,13 @@ function yjsToItemConfiguration(yDoc) {
4676
4948
  const configYMap = yDoc.getMap("itemConfiguration");
4677
4949
  const rawConfig = {
4678
4950
  showSidebar: configYMap.get("showSidebar"),
4951
+ isHidden: _nullishCoalesce(configYMap.get("isHidden"), () => ( false)),
4952
+ isPrivate: _nullishCoalesce(configYMap.get("isPrivate"), () => ( false)),
4679
4953
  header: rawHeader
4680
4954
  };
4681
4955
  return {
4682
4956
  title: _zod.z.string().parse(title),
4683
- configuration: DocumentationItemConfigurationV2.parse(rawConfig)
4957
+ configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
4684
4958
  };
4685
4959
  }
4686
4960
 
@@ -5443,7 +5717,7 @@ var BlockDefinitionUtils = {
5443
5717
  var ListTreeBuilder = class {
5444
5718
  addWithProperty(block, multiRichTextProperty) {
5445
5719
  const parsedOptions = PageBlockDefinitionMutiRichTextOptions.optional().parse(multiRichTextProperty.options);
5446
- return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _16 => _16.multiRichTextStyle]) || "OL");
5720
+ return this.add(block, multiRichTextProperty.id, _optionalChain([parsedOptions, 'optionalAccess', _20 => _20.multiRichTextStyle]) || "OL");
5447
5721
  }
5448
5722
  add(block, multiRichTextPropertyId, multiRichTextPropertyStyle) {
5449
5723
  const list = this.createList(block, multiRichTextPropertyId, multiRichTextPropertyStyle);
@@ -5463,7 +5737,7 @@ var ListTreeBuilder = class {
5463
5737
  }
5464
5738
  const listParent = this.getParentOfDepth(block.data.indentLevel);
5465
5739
  const lastChild = listParent.children[listParent.children.length - 1];
5466
- if (_optionalChain([lastChild, 'optionalAccess', _17 => _17.type]) === "List") {
5740
+ if (_optionalChain([lastChild, 'optionalAccess', _21 => _21.type]) === "List") {
5467
5741
  lastChild.children.push(...list.leadingChildren);
5468
5742
  return;
5469
5743
  } else {
@@ -5647,7 +5921,7 @@ function serializeAsRichTextBlock(input) {
5647
5921
  const textPropertyValue = BlockParsingUtils.richTextPropertyValue(blockItem, richTextProperty.id);
5648
5922
  const enrichedInput = { ...input, richTextPropertyValue: textPropertyValue };
5649
5923
  const parsedOptions = PageBlockDefinitionRichTextOptions.optional().parse(richTextProperty.options);
5650
- const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _18 => _18.richTextStyle]), () => ( "Default"));
5924
+ const style = _nullishCoalesce(_optionalChain([parsedOptions, 'optionalAccess', _22 => _22.richTextStyle]), () => ( "Default"));
5651
5925
  switch (style) {
5652
5926
  case "Callout":
5653
5927
  return serializeAsCallout(enrichedInput);
@@ -5868,7 +6142,7 @@ function serializeBlockNodeAttributes(block) {
5868
6142
  };
5869
6143
  }
5870
6144
  function richTextHeadingLevel(property) {
5871
- const style = _optionalChain([property, 'access', _19 => _19.options, 'optionalAccess', _20 => _20.richTextStyle]);
6145
+ const style = _optionalChain([property, 'access', _23 => _23.options, 'optionalAccess', _24 => _24.richTextStyle]);
5872
6146
  if (!style)
5873
6147
  return void 0;
5874
6148
  switch (style) {
@@ -5948,20 +6222,26 @@ function serializeTextSpanAttribute(spanAttribute) {
5948
6222
  return { type: "code", attrs: {} };
5949
6223
  case "Link":
5950
6224
  if (spanAttribute.link) {
5951
- return serializeLinkMark(spanAttribute.link, _nullishCoalesce(spanAttribute.openInNewWindow, () => ( false)));
6225
+ return serializeLinkMark(
6226
+ spanAttribute.link,
6227
+ _nullishCoalesce(_nullishCoalesce(spanAttribute.openInNewTab, () => ( spanAttribute.openInNewWindow)), () => ( false))
6228
+ );
5952
6229
  } else if (spanAttribute.documentationItemId) {
5953
- return serializeLinkMark(`@page:${spanAttribute.documentationItemId}`, _nullishCoalesce(spanAttribute.openInNewWindow, () => ( false)));
6230
+ return serializeLinkMark(
6231
+ `@page:${spanAttribute.documentationItemId}`,
6232
+ _nullishCoalesce(_nullishCoalesce(spanAttribute.openInNewTab, () => ( spanAttribute.openInNewWindow)), () => ( false))
6233
+ );
5954
6234
  } else {
5955
- return serializeLinkMark("about:blank", _nullishCoalesce(spanAttribute.openInNewWindow, () => ( false)));
6235
+ return serializeLinkMark("about:blank", _nullishCoalesce(_nullishCoalesce(spanAttribute.openInNewTab, () => ( spanAttribute.openInNewWindow)), () => ( false)));
5956
6236
  }
5957
6237
  }
5958
6238
  }
5959
- function serializeLinkMark(href, openInNewWindow) {
6239
+ function serializeLinkMark(href, openInNewTab) {
5960
6240
  return {
5961
6241
  type: "link",
5962
6242
  attrs: {
5963
6243
  href,
5964
- target: openInNewWindow ? "_blank" : "_self",
6244
+ target: openInNewTab ? "_blank" : "_self",
5965
6245
  rel: "noopener noreferrer nofollow",
5966
6246
  class: "tiptap-link"
5967
6247
  }
@@ -5975,7 +6255,7 @@ function serializeAsCustomBlock(block, definition) {
5975
6255
  linksTo: i.linksTo
5976
6256
  };
5977
6257
  });
5978
- const columns = _optionalChain([block, 'access', _21 => _21.data, 'access', _22 => _22.appearance, 'optionalAccess', _23 => _23.numberOfColumns]);
6258
+ const columns = _optionalChain([block, 'access', _25 => _25.data, 'access', _26 => _26.appearance, 'optionalAccess', _27 => _27.numberOfColumns]);
5979
6259
  return {
5980
6260
  type: serializeCustomBlockNodeType(block, definition),
5981
6261
  attrs: {
@@ -7822,10 +8102,10 @@ function parseAsMultiRichText(prosemirrorNode, definition, property, definitions
7822
8102
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
7823
8103
  const result = [];
7824
8104
  const listItems = [];
7825
- _optionalChain([prosemirrorNode, 'access', _24 => _24.content, 'optionalAccess', _25 => _25.forEach, 'call', _26 => _26((c) => {
8105
+ _optionalChain([prosemirrorNode, 'access', _28 => _28.content, 'optionalAccess', _29 => _29.forEach, 'call', _30 => _30((c) => {
7826
8106
  if (c.type !== "listItem")
7827
8107
  return;
7828
- _optionalChain([c, 'access', _27 => _27.content, 'optionalAccess', _28 => _28.forEach, 'call', _29 => _29((cc) => {
8108
+ _optionalChain([c, 'access', _31 => _31.content, 'optionalAccess', _32 => _32.forEach, 'call', _33 => _33((cc) => {
7829
8109
  listItems.push(cc);
7830
8110
  })]);
7831
8111
  })]);
@@ -7874,6 +8154,9 @@ function parseRichText(spans) {
7874
8154
  };
7875
8155
  }
7876
8156
  function parseRichTextSpan(span) {
8157
+ if (span.type === "hardBreak") {
8158
+ return { text: "\n", attributes: [] };
8159
+ }
7877
8160
  if (span.type !== "text" || !span.text)
7878
8161
  return null;
7879
8162
  const marks = _nullishCoalesce(span.marks, () => ( []));
@@ -7902,17 +8185,19 @@ function parseProsemirrorLink(mark) {
7902
8185
  if (!href)
7903
8186
  return null;
7904
8187
  const target = getProsemirrorAttribute(mark, "target", _zod.z.string().optional());
7905
- const openInNewWindow = target === "_blank";
8188
+ const openInNewTab = target === "_blank";
7906
8189
  if (href.startsWith("@")) {
7907
8190
  return {
7908
8191
  type: "Link",
7909
- openInNewWindow,
8192
+ openInNewWindow: openInNewTab,
8193
+ openInNewTab,
7910
8194
  documentationItemId: href.split(":")[1]
7911
8195
  };
7912
8196
  } else {
7913
8197
  return {
7914
8198
  type: "Link",
7915
- openInNewWindow,
8199
+ openInNewWindow: openInNewTab,
8200
+ openInNewTab,
7916
8201
  link: href
7917
8202
  };
7918
8203
  }
@@ -7923,17 +8208,17 @@ function parseAsTable(prosemirrorNode, definition, property) {
7923
8208
  return null;
7924
8209
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
7925
8210
  const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", _zod.z.boolean().optional()) !== false;
7926
- const tableChild = _optionalChain([prosemirrorNode, 'access', _30 => _30.content, 'optionalAccess', _31 => _31.find, 'call', _32 => _32((c) => c.type === "table")]);
8211
+ const tableChild = _optionalChain([prosemirrorNode, 'access', _34 => _34.content, 'optionalAccess', _35 => _35.find, 'call', _36 => _36((c) => c.type === "table")]);
7927
8212
  if (!tableChild) {
7928
8213
  return emptyTable(id, variantId, 0);
7929
8214
  }
7930
- const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _33 => _33.content, 'optionalAccess', _34 => _34.filter, 'call', _35 => _35((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _36 => _36.content, 'optionalAccess', _37 => _37.length]))]), () => ( []));
8215
+ const rows = _nullishCoalesce(_optionalChain([tableChild, 'access', _37 => _37.content, 'optionalAccess', _38 => _38.filter, 'call', _39 => _39((c) => c.type === "tableRow" && !!_optionalChain([c, 'access', _40 => _40.content, 'optionalAccess', _41 => _41.length]))]), () => ( []));
7931
8216
  if (!rows.length) {
7932
8217
  return emptyTable(id, variantId, 0);
7933
8218
  }
7934
- const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _38 => _38[0], 'access', _39 => _39.content, 'optionalAccess', _40 => _40.filter, 'call', _41 => _41((c) => c.type === "tableHeader"), 'access', _42 => _42.length]), () => ( 0));
7935
- const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _43 => _43.content, 'optionalAccess', _44 => _44[0], 'optionalAccess', _45 => _45.type]) === "tableHeader").length;
7936
- const hasHeaderRow = _optionalChain([rows, 'access', _46 => _46[0], 'access', _47 => _47.content, 'optionalAccess', _48 => _48.length]) === rowHeaderCells;
8219
+ const rowHeaderCells = _nullishCoalesce(_optionalChain([rows, 'access', _42 => _42[0], 'access', _43 => _43.content, 'optionalAccess', _44 => _44.filter, 'call', _45 => _45((c) => c.type === "tableHeader"), 'access', _46 => _46.length]), () => ( 0));
8220
+ const columnHeaderCells = rows.filter((r) => _optionalChain([r, 'access', _47 => _47.content, 'optionalAccess', _48 => _48[0], 'optionalAccess', _49 => _49.type]) === "tableHeader").length;
8221
+ const hasHeaderRow = _optionalChain([rows, 'access', _50 => _50[0], 'access', _51 => _51.content, 'optionalAccess', _52 => _52.length]) === rowHeaderCells;
7937
8222
  const hasHeaderColumn = rows.length === columnHeaderCells;
7938
8223
  const tableValue = {
7939
8224
  showBorder: hasBorder,
@@ -8015,7 +8300,7 @@ function parseAsTableNode(prosemirrorNode) {
8015
8300
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
8016
8301
  if (!parsedItems.success)
8017
8302
  return null;
8018
- const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _49 => _49.data, 'access', _50 => _50[0], 'optionalAccess', _51 => _51.props, 'access', _52 => _52.image]);
8303
+ const rawImagePropertyValue = _optionalChain([parsedItems, 'access', _53 => _53.data, 'access', _54 => _54[0], 'optionalAccess', _55 => _55.props, 'access', _56 => _56.image]);
8019
8304
  if (!rawImagePropertyValue)
8020
8305
  return null;
8021
8306
  const imagePropertyValueParseResult = PageBlockItemImageValue.safeParse(rawImagePropertyValue);
@@ -8237,7 +8522,7 @@ function getProsemirrorBlockVariantId(prosemirrorNode) {
8237
8522
  return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(_zod.z.string()));
8238
8523
  }
8239
8524
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
8240
- const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _53 => _53.attrs, 'optionalAccess', _54 => _54[attributeName]]));
8525
+ const parsedAttr = validationSchema.safeParse(_optionalChain([prosemirrorNode, 'access', _57 => _57.attrs, 'optionalAccess', _58 => _58[attributeName]]));
8241
8526
  if (parsedAttr.success) {
8242
8527
  return parsedAttr.data;
8243
8528
  } else {
@@ -8384,5 +8669,33 @@ function mapByUnique2(items, keyFn) {
8384
8669
 
8385
8670
 
8386
8671
 
8387
- exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOBrand = DTOBrand; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupStructureV2 = DTODocumentationGroupStructureV2; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageStructureV2 = DTODocumentationPageStructureV2; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionsGetResponse = DTOElementPropertyDefinitionsGetResponse; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValuesGetResponse = DTOElementPropertyValuesGetResponse; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.designSystemBrandToDto = designSystemBrandToDto; exports.designSystemVersionToDto = designSystemVersionToDto; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.dtoDefaultItemConfigurationV1 = dtoDefaultItemConfigurationV1; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.elementGroupsToDocumentationGroupStructureDTOV2 = elementGroupsToDocumentationGroupStructureDTOV2; exports.elementPropertyDefinitionToDto = elementPropertyDefinitionToDto; exports.elementPropertyValueToDto = elementPropertyValueToDto; exports.elementViewToDto = elementViewToDto; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
8672
+
8673
+
8674
+
8675
+
8676
+
8677
+
8678
+
8679
+
8680
+
8681
+
8682
+
8683
+
8684
+
8685
+
8686
+
8687
+
8688
+
8689
+
8690
+
8691
+
8692
+
8693
+
8694
+
8695
+
8696
+
8697
+
8698
+
8699
+
8700
+ exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOBrand = DTOBrand; exports.DTOBrandCreateResponse = DTOBrandCreateResponse; exports.DTOBrandGetResponse = DTOBrandGetResponse; exports.DTOBrandsListResponse = DTOBrandsListResponse; exports.DTOCreateBrandInput = DTOCreateBrandInput; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabInput = DTOCreateDocumentationTabInput; exports.DTOCreateElementPropertyDefinitionInputV2 = DTOCreateElementPropertyDefinitionInputV2; exports.DTOCreateVersionInput = DTOCreateVersionInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODeleteElementPropertyDefinitionInputV2 = DTODeleteElementPropertyDefinitionInputV2; exports.DTODesignSystem = DTODesignSystem; exports.DTODesignSystemVersion = DTODesignSystemVersion; exports.DTODesignSystemVersionGetResponse = DTODesignSystemVersionGetResponse; exports.DTODesignSystemVersionsListResponse = DTODesignSystemVersionsListResponse; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupStructureV1 = DTODocumentationGroupStructureV1; exports.DTODocumentationGroupStructureV2 = DTODocumentationGroupStructureV2; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV1 = DTODocumentationGroupV1; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationItemConfigurationV1 = DTODocumentationItemConfigurationV1; exports.DTODocumentationItemConfigurationV2 = DTODocumentationItemConfigurationV2; exports.DTODocumentationItemHeaderV2 = DTODocumentationItemHeaderV2; exports.DTODocumentationLinkPreviewRequest = DTODocumentationLinkPreviewRequest; exports.DTODocumentationLinkPreviewResponse = DTODocumentationLinkPreviewResponse; exports.DTODocumentationPageAnchor = DTODocumentationPageAnchor; exports.DTODocumentationPageContent = DTODocumentationPageContent; exports.DTODocumentationPageContentGetResponse = DTODocumentationPageContentGetResponse; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageStructureV2 = DTODocumentationPageStructureV2; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationTabCreateActionInputV2 = DTODocumentationTabCreateActionInputV2; exports.DTODocumentationTabCreateActionOutputV2 = DTODocumentationTabCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementPropertyDefinition = DTOElementPropertyDefinition; exports.DTOElementPropertyDefinitionsGetResponse = DTOElementPropertyDefinitionsGetResponse; exports.DTOElementPropertyValue = DTOElementPropertyValue; exports.DTOElementPropertyValuesGetResponse = DTOElementPropertyValuesGetResponse; exports.DTOElementView = DTOElementView; exports.DTOElementViewBasePropertyColumn = DTOElementViewBasePropertyColumn; exports.DTOElementViewColumn = DTOElementViewColumn; exports.DTOElementViewColumnSharedAttributes = DTOElementViewColumnSharedAttributes; exports.DTOElementViewPropertyDefinitionColumn = DTOElementViewPropertyDefinitionColumn; exports.DTOElementViewThemeColumn = DTOElementViewThemeColumn; exports.DTOElementViewsListResponse = DTOElementViewsListResponse; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOExporterProperty = DTOExporterProperty; exports.DTOExporterPropertyListResponse = DTOExporterPropertyListResponse; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOGetDocumentationPageAnchorsResponse = DTOGetDocumentationPageAnchorsResponse; exports.DTOIntegration = DTOIntegration; exports.DTOIntegrationOAuthGetResponse = DTOIntegrationOAuthGetResponse; exports.DTOIntegrationPostResponse = DTOIntegrationPostResponse; exports.DTOIntegrationsGetListResponse = DTOIntegrationsGetListResponse; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTONpmRegistryConfig = DTONpmRegistryConfig; exports.DTOPropertyDefinitionCreateActionInputV2 = DTOPropertyDefinitionCreateActionInputV2; exports.DTOPropertyDefinitionCreateActionOutputV2 = DTOPropertyDefinitionCreateActionOutputV2; exports.DTOPropertyDefinitionDeleteActionInputV2 = DTOPropertyDefinitionDeleteActionInputV2; exports.DTOPropertyDefinitionDeleteActionOutputV2 = DTOPropertyDefinitionDeleteActionOutputV2; exports.DTOPropertyDefinitionUpdateActionInputV2 = DTOPropertyDefinitionUpdateActionInputV2; exports.DTOPropertyDefinitionUpdateActionOutputV2 = DTOPropertyDefinitionUpdateActionOutputV2; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DTOUpdateElementPropertyDefinitionInputV2 = DTOUpdateElementPropertyDefinitionInputV2; exports.DTOUserWorkspaceMembership = DTOUserWorkspaceMembership; exports.DTOUserWorkspaceMembershipsResponse = DTOUserWorkspaceMembershipsResponse; exports.DTOWorkspace = DTOWorkspace; exports.DTOWorkspaceIntegrationOauthInput = DTOWorkspaceIntegrationOauthInput; exports.DTOWorkspaceRole = DTOWorkspaceRole; exports.DocumentationHierarchySettings = DocumentationHierarchySettings; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.ListTreeBuilder = ListTreeBuilder; exports.NpmRegistryInput = NpmRegistryInput; exports.PageBlockEditorModel = PageBlockEditorModel; exports.PageSectionEditorModel = PageSectionEditorModel; exports.WorkspaceConfigurationPayload = WorkspaceConfigurationPayload; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.designSystemBrandToDto = designSystemBrandToDto; exports.designSystemVersionToDto = designSystemVersionToDto; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.documentationItemConfigurationToDTOV1 = documentationItemConfigurationToDTOV1; exports.documentationItemConfigurationToDTOV2 = documentationItemConfigurationToDTOV2; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.dtoDefaultItemConfigurationV1 = dtoDefaultItemConfigurationV1; exports.elementGroupsToDocumentationGroupDTOV1 = elementGroupsToDocumentationGroupDTOV1; exports.elementGroupsToDocumentationGroupDTOV2 = elementGroupsToDocumentationGroupDTOV2; exports.elementGroupsToDocumentationGroupStructureDTOV1 = elementGroupsToDocumentationGroupStructureDTOV1; exports.elementGroupsToDocumentationGroupStructureDTOV2 = elementGroupsToDocumentationGroupStructureDTOV2; exports.elementPropertyDefinitionToDto = elementPropertyDefinitionToDto; exports.elementPropertyValueToDto = elementPropertyValueToDto; exports.elementViewToDto = elementViewToDto; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.integrationToDto = integrationToDto; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToSection = prosemirrorNodeToSection; exports.prosemirrorNodesToBlocks = prosemirrorNodesToBlocks; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.shallowProsemirrorNodeToBlock = shallowProsemirrorNodeToBlock; exports.validateSemver = validateSemver; exports.validateSsoPayload = validateSsoPayload; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
8388
8701
  //# sourceMappingURL=index.js.map