@supernova-studio/client 0.58.7 → 0.58.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -5152,7 +5152,7 @@ var DTOPagination = z179.object({
5152
5152
  });
5153
5153
 
5154
5154
  // src/api/dto/bff/app-bootstrap-data.ts
5155
- import { z as z213 } from "zod";
5155
+ import { z as z214 } from "zod";
5156
5156
 
5157
5157
  // src/api/dto/design-systems/brand.ts
5158
5158
  import { z as z180 } from "zod";
@@ -5564,7 +5564,7 @@ var DTODesignSystemVersionStatsQuery = z194.object({
5564
5564
  });
5565
5565
 
5566
5566
  // src/api/dto/design-systems/version.ts
5567
- import { z as z205 } from "zod";
5567
+ import { z as z206 } from "zod";
5568
5568
 
5569
5569
  // src/api/payloads/design-systems/brand.ts
5570
5570
  import { z as z195 } from "zod";
@@ -5694,8 +5694,14 @@ var DTOUserNotificationSettingsResponse = z202.object({
5694
5694
  // src/api/payloads/users/profile/update.ts
5695
5695
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
5696
5696
 
5697
- // src/api/payloads/workspaces/workspace-configuration.ts
5697
+ // src/api/payloads/workspaces/transfer-ownership.ts
5698
5698
  import { z as z203 } from "zod";
5699
+ var DTOTransferOwnershipPayload = z203.object({
5700
+ newOwnerId: z203.string()
5701
+ });
5702
+
5703
+ // src/api/payloads/workspaces/workspace-configuration.ts
5704
+ import { z as z204 } from "zod";
5699
5705
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
5700
5706
  function validateSsoPayload(ssoPayload) {
5701
5707
  const keys = [];
@@ -5718,21 +5724,21 @@ function validateSsoPayload(ssoPayload) {
5718
5724
  keys
5719
5725
  };
5720
5726
  }
5721
- var NpmRegistryInput = z203.object({
5722
- enabledScopes: z203.array(z203.string()),
5723
- customRegistryUrl: z203.string().optional(),
5724
- bypassProxy: z203.boolean().optional(),
5725
- npmProxyRegistryConfigId: z203.string().optional(),
5726
- npmProxyVersion: z203.number().optional(),
5727
- registryType: z203.string(),
5728
- authType: z203.string(),
5729
- authHeaderName: z203.string(),
5730
- authHeaderValue: z203.string(),
5731
- accessToken: z203.string(),
5732
- username: z203.string(),
5733
- password: z203.string()
5734
- });
5735
- var WorkspaceConfigurationPayload = z203.object({
5727
+ var NpmRegistryInput = z204.object({
5728
+ enabledScopes: z204.array(z204.string()),
5729
+ customRegistryUrl: z204.string().optional(),
5730
+ bypassProxy: z204.boolean().optional(),
5731
+ npmProxyRegistryConfigId: z204.string().optional(),
5732
+ npmProxyVersion: z204.number().optional(),
5733
+ registryType: z204.string(),
5734
+ authType: z204.string(),
5735
+ authHeaderName: z204.string(),
5736
+ authHeaderValue: z204.string(),
5737
+ accessToken: z204.string(),
5738
+ username: z204.string(),
5739
+ password: z204.string()
5740
+ });
5741
+ var WorkspaceConfigurationPayload = z204.object({
5736
5742
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5737
5743
  sso: SsoProvider.partial().optional(),
5738
5744
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5740,218 +5746,218 @@ var WorkspaceConfigurationPayload = z203.object({
5740
5746
  });
5741
5747
 
5742
5748
  // src/api/payloads/workspaces/workspace-integrations.ts
5743
- import { z as z204 } from "zod";
5744
- var DTOWorkspaceIntegrationOauthInput = z204.object({
5749
+ import { z as z205 } from "zod";
5750
+ var DTOWorkspaceIntegrationOauthInput = z205.object({
5745
5751
  type: IntegrationType
5746
5752
  });
5747
- var DTOWorkspaceIntegrationPATInput = z204.object({
5748
- userId: z204.string(),
5753
+ var DTOWorkspaceIntegrationPATInput = z205.object({
5754
+ userId: z205.string(),
5749
5755
  type: IntegrationType,
5750
5756
  token: IntegrationToken
5751
5757
  });
5752
- var DTOWorkspaceIntegrationGetGitObjectsInput = z204.object({
5753
- organization: z204.string().optional(),
5758
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z205.object({
5759
+ organization: z205.string().optional(),
5754
5760
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5755
- project: z204.string().optional(),
5761
+ project: z205.string().optional(),
5756
5762
  // Only for Bitbucket and Azure
5757
- repository: z204.string().optional(),
5763
+ repository: z205.string().optional(),
5758
5764
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5759
- branch: z204.string().optional(),
5765
+ branch: z205.string().optional(),
5760
5766
  // For all providers, useful for PR creations.
5761
- user: z204.string().optional()
5767
+ user: z205.string().optional()
5762
5768
  // Only for Gitlab User Repositories
5763
5769
  });
5764
5770
 
5765
5771
  // src/api/dto/design-systems/version.ts
5766
- var DTODesignSystemVersion = z205.object({
5767
- id: z205.string(),
5768
- createdAt: z205.coerce.date(),
5772
+ var DTODesignSystemVersion = z206.object({
5773
+ id: z206.string(),
5774
+ createdAt: z206.coerce.date(),
5769
5775
  meta: ObjectMeta,
5770
- version: z205.string(),
5771
- isReadonly: z205.boolean(),
5772
- changeLog: z205.string(),
5773
- designSystemId: z205.string()
5776
+ version: z206.string(),
5777
+ isReadonly: z206.boolean(),
5778
+ changeLog: z206.string(),
5779
+ designSystemId: z206.string()
5774
5780
  });
5775
- var DTODesignSystemVersionsListResponse = z205.object({
5776
- designSystemVersions: z205.array(DTODesignSystemVersion)
5781
+ var DTODesignSystemVersionsListResponse = z206.object({
5782
+ designSystemVersions: z206.array(DTODesignSystemVersion)
5777
5783
  });
5778
- var DTODesignSystemVersionGetResponse = z205.object({
5784
+ var DTODesignSystemVersionGetResponse = z206.object({
5779
5785
  designSystemVersion: DTODesignSystemVersion
5780
5786
  });
5781
- var DTODesignSystemVersionCreationResponse = z205.object({
5787
+ var DTODesignSystemVersionCreationResponse = z206.object({
5782
5788
  meta: ObjectMeta,
5783
- version: z205.string(),
5784
- changeLog: z205.string(),
5785
- isReadOnly: z205.boolean(),
5786
- designSystemId: z205.string(),
5787
- jobId: z205.string()
5788
- });
5789
- var VersionSQSPayload = z205.object({
5790
- jobId: z205.string(),
5791
- designSystemId: z205.string(),
5789
+ version: z206.string(),
5790
+ changeLog: z206.string(),
5791
+ isReadOnly: z206.boolean(),
5792
+ designSystemId: z206.string(),
5793
+ jobId: z206.string()
5794
+ });
5795
+ var VersionSQSPayload = z206.object({
5796
+ jobId: z206.string(),
5797
+ designSystemId: z206.string(),
5792
5798
  input: DTOCreateVersionInput
5793
5799
  });
5794
- var DTODesignSystemVersionJobsResponse = z205.object({
5795
- jobs: z205.array(VersionCreationJob)
5800
+ var DTODesignSystemVersionJobsResponse = z206.object({
5801
+ jobs: z206.array(VersionCreationJob)
5796
5802
  });
5797
- var DTODesignSystemVersionJobStatusResponse = z205.object({
5803
+ var DTODesignSystemVersionJobStatusResponse = z206.object({
5798
5804
  job: VersionCreationJob
5799
5805
  });
5800
5806
 
5801
5807
  // src/api/dto/design-systems/view.ts
5802
- import { z as z206 } from "zod";
5803
- var DTOElementViewColumnSharedAttributes = z206.object({
5804
- id: z206.string(),
5805
- persistentId: z206.string(),
5806
- width: z206.number()
5808
+ import { z as z207 } from "zod";
5809
+ var DTOElementViewColumnSharedAttributes = z207.object({
5810
+ id: z207.string(),
5811
+ persistentId: z207.string(),
5812
+ width: z207.number()
5807
5813
  });
5808
5814
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5809
- type: z206.literal("BaseProperty"),
5815
+ type: z207.literal("BaseProperty"),
5810
5816
  basePropertyType: ElementViewBaseColumnType
5811
5817
  });
5812
5818
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5813
- type: z206.literal("PropertyDefinition"),
5814
- propertyDefinitionId: z206.string()
5819
+ type: z207.literal("PropertyDefinition"),
5820
+ propertyDefinitionId: z207.string()
5815
5821
  });
5816
5822
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5817
- type: z206.literal("Theme"),
5818
- themeId: z206.string()
5823
+ type: z207.literal("Theme"),
5824
+ themeId: z207.string()
5819
5825
  });
5820
- var DTOElementViewColumn = z206.discriminatedUnion("type", [
5826
+ var DTOElementViewColumn = z207.discriminatedUnion("type", [
5821
5827
  DTOElementViewBasePropertyColumn,
5822
5828
  DTOElementViewPropertyDefinitionColumn,
5823
5829
  DTOElementViewThemeColumn
5824
5830
  ]);
5825
- var DTOElementView = z206.object({
5831
+ var DTOElementView = z207.object({
5826
5832
  meta: ObjectMeta,
5827
- persistentId: z206.string(),
5833
+ persistentId: z207.string(),
5828
5834
  targetElementType: ElementPropertyTargetType,
5829
- id: z206.string(),
5830
- isDefault: z206.boolean(),
5831
- columns: z206.array(DTOElementViewColumn)
5835
+ id: z207.string(),
5836
+ isDefault: z207.boolean(),
5837
+ columns: z207.array(DTOElementViewColumn)
5832
5838
  });
5833
- var DTOElementViewsListResponse = z206.object({
5834
- elementDataViews: z206.array(DTOElementView)
5839
+ var DTOElementViewsListResponse = z207.object({
5840
+ elementDataViews: z207.array(DTOElementView)
5835
5841
  });
5836
5842
 
5837
5843
  // src/api/dto/workspaces/git.ts
5838
- import { z as z207 } from "zod";
5839
- var DTOGitOrganization = z207.object({
5840
- id: z207.string(),
5841
- name: z207.string(),
5842
- url: z207.string(),
5843
- slug: z207.string()
5844
+ import { z as z208 } from "zod";
5845
+ var DTOGitOrganization = z208.object({
5846
+ id: z208.string(),
5847
+ name: z208.string(),
5848
+ url: z208.string(),
5849
+ slug: z208.string()
5844
5850
  });
5845
- var DTOGitProject = z207.object({
5846
- id: z207.string(),
5847
- name: z207.string(),
5848
- url: z207.string(),
5849
- slug: z207.string()
5851
+ var DTOGitProject = z208.object({
5852
+ id: z208.string(),
5853
+ name: z208.string(),
5854
+ url: z208.string(),
5855
+ slug: z208.string()
5850
5856
  });
5851
- var DTOGitRepository = z207.object({
5852
- id: z207.string(),
5853
- name: z207.string(),
5854
- url: z207.string(),
5855
- slug: z207.string(),
5856
- defaultBranch: z207.string().optional()
5857
+ var DTOGitRepository = z208.object({
5858
+ id: z208.string(),
5859
+ name: z208.string(),
5860
+ url: z208.string(),
5861
+ slug: z208.string(),
5862
+ defaultBranch: z208.string().optional()
5857
5863
  });
5858
- var DTOGitBranch = z207.object({
5859
- name: z207.string(),
5860
- lastCommitId: z207.string()
5864
+ var DTOGitBranch = z208.object({
5865
+ name: z208.string(),
5866
+ lastCommitId: z208.string()
5861
5867
  });
5862
5868
 
5863
5869
  // src/api/dto/workspaces/integrations.ts
5864
- import { z as z208 } from "zod";
5870
+ import { z as z209 } from "zod";
5865
5871
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5866
5872
  accessToken: true,
5867
5873
  refreshToken: true
5868
5874
  });
5869
- var DTOIntegration = z208.object({
5870
- id: z208.string(),
5871
- workspaceId: z208.string(),
5875
+ var DTOIntegration = z209.object({
5876
+ id: z209.string(),
5877
+ workspaceId: z209.string(),
5872
5878
  type: ExtendedIntegrationType,
5873
- createdAt: z208.coerce.date(),
5874
- integrationCredentials: z208.array(DTOIntegrationCredentials).optional(),
5875
- integrationDesignSystems: z208.array(IntegrationDesignSystem).optional()
5879
+ createdAt: z209.coerce.date(),
5880
+ integrationCredentials: z209.array(DTOIntegrationCredentials).optional(),
5881
+ integrationDesignSystems: z209.array(IntegrationDesignSystem).optional()
5876
5882
  });
5877
- var DTOIntegrationOAuthGetResponse = z208.object({
5878
- url: z208.string()
5883
+ var DTOIntegrationOAuthGetResponse = z209.object({
5884
+ url: z209.string()
5879
5885
  });
5880
- var DTOIntegrationPostResponse = z208.object({
5886
+ var DTOIntegrationPostResponse = z209.object({
5881
5887
  integration: DTOIntegration
5882
5888
  });
5883
- var DTOIntegrationsGetListResponse = z208.object({
5889
+ var DTOIntegrationsGetListResponse = z209.object({
5884
5890
  integrations: DTOIntegration.array()
5885
5891
  });
5886
5892
 
5887
5893
  // src/api/dto/workspaces/invitations.ts
5888
- import { z as z209 } from "zod";
5889
- var DTOWorkspaceInvitationInput = z209.object({
5890
- email: z209.string().email(),
5894
+ import { z as z210 } from "zod";
5895
+ var DTOWorkspaceInvitationInput = z210.object({
5896
+ email: z210.string().email(),
5891
5897
  role: WorkspaceRoleSchema
5892
5898
  });
5893
- var DTOWorkspaceInvitationsListInput = z209.object({
5899
+ var DTOWorkspaceInvitationsListInput = z210.object({
5894
5900
  invites: DTOWorkspaceInvitationInput.array().max(100),
5895
- designSystemId: z209.string().optional()
5901
+ designSystemId: z210.string().optional()
5896
5902
  });
5897
- var DTOWorkspaceInvitationsResponse = z209.object({
5903
+ var DTOWorkspaceInvitationsResponse = z210.object({
5898
5904
  invitations: WorkspaceInvitation.array()
5899
5905
  });
5900
- var DTOWorkspaceInviteUpdate = z209.object({
5906
+ var DTOWorkspaceInviteUpdate = z210.object({
5901
5907
  role: WorkspaceRoleSchema
5902
5908
  });
5903
- var DTOWorkspaceInvitationUpdateResponse = z209.object({
5909
+ var DTOWorkspaceInvitationUpdateResponse = z210.object({
5904
5910
  invitation: WorkspaceInvitation
5905
5911
  });
5906
5912
 
5907
5913
  // src/api/dto/workspaces/membership.ts
5908
- import { z as z212 } from "zod";
5914
+ import { z as z213 } from "zod";
5909
5915
 
5910
5916
  // src/api/dto/workspaces/workspace.ts
5911
- import { z as z211 } from "zod";
5917
+ import { z as z212 } from "zod";
5912
5918
 
5913
5919
  // src/api/dto/workspaces/npm-registry.ts
5914
- import { z as z210 } from "zod";
5920
+ import { z as z211 } from "zod";
5915
5921
  var DTONpmRegistryConfigConstants = {
5916
5922
  passwordPlaceholder: "redacted"
5917
5923
  };
5918
- var DTONpmRegistryConfig = z210.object({
5924
+ var DTONpmRegistryConfig = z211.object({
5919
5925
  // Registry basic configuration
5920
5926
  registryType: NpmRegistryType,
5921
- registryUrl: z210.string(),
5922
- customRegistryUrl: z210.string().optional(),
5927
+ registryUrl: z211.string(),
5928
+ customRegistryUrl: z211.string().optional(),
5923
5929
  // URL of Supernova NPM packages proxy
5924
- proxyUrl: z210.string(),
5930
+ proxyUrl: z211.string(),
5925
5931
  // Auth configuration
5926
5932
  authType: NpmRegistryAuthType,
5927
- accessToken: z210.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5928
- username: z210.string().optional(),
5929
- password: z210.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5933
+ accessToken: z211.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5934
+ username: z211.string().optional(),
5935
+ password: z211.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5930
5936
  // NPM package scopes for whih the proxy should be enabled
5931
- enabledScopes: z210.array(z210.string()),
5937
+ enabledScopes: z211.array(z211.string()),
5932
5938
  // True if client should bypass Supernova proxy and connect directly to the registry
5933
5939
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5934
- bypassProxy: z210.boolean()
5940
+ bypassProxy: z211.boolean()
5935
5941
  });
5936
5942
 
5937
5943
  // src/api/dto/workspaces/workspace.ts
5938
5944
  var DTOWorkspaceProfile = WorkspaceProfile;
5939
- var DTOWorkspace = z211.object({
5940
- id: z211.string(),
5945
+ var DTOWorkspace = z212.object({
5946
+ id: z212.string(),
5941
5947
  profile: DTOWorkspaceProfile,
5942
5948
  subscription: Subscription,
5943
5949
  npmRegistry: DTONpmRegistryConfig.optional()
5944
5950
  });
5945
- var DTOWorkspaceCreateInput = z211.object({
5946
- name: z211.string()
5951
+ var DTOWorkspaceCreateInput = z212.object({
5952
+ name: z212.string()
5947
5953
  });
5948
- var DTOWorkspaceResponse = z211.object({
5954
+ var DTOWorkspaceResponse = z212.object({
5949
5955
  workspace: DTOWorkspace
5950
5956
  });
5951
5957
 
5952
5958
  // src/api/dto/workspaces/membership.ts
5953
- var DTOWorkspaceRole = z212.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5954
- var DTOUserWorkspaceMembership = z212.object({
5959
+ var DTOWorkspaceRole = z213.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
5960
+ var DTOUserWorkspaceMembership = z213.object({
5955
5961
  // Workspace the user is a member of
5956
5962
  workspace: DTOWorkspace,
5957
5963
  // Assigned role the user has in the workspace
@@ -5961,26 +5967,26 @@ var DTOUserWorkspaceMembership = z212.object({
5961
5967
  // when a workspace's subscription is downgraded to free tier
5962
5968
  effectiveRole: DTOWorkspaceRole
5963
5969
  });
5964
- var DTOWorkspaceMember = z212.object({
5970
+ var DTOWorkspaceMember = z213.object({
5965
5971
  user: User,
5966
5972
  role: WorkspaceRoleSchema,
5967
5973
  effectiveRole: WorkspaceRoleSchema
5968
5974
  });
5969
- var DTOUserWorkspaceMembershipsResponse = z212.object({
5970
- membership: z212.array(DTOUserWorkspaceMembership)
5975
+ var DTOUserWorkspaceMembershipsResponse = z213.object({
5976
+ membership: z213.array(DTOUserWorkspaceMembership)
5971
5977
  });
5972
- var DTOWorkspaceMembersListResponse = z212.object({
5973
- members: z212.array(DTOWorkspaceMember)
5978
+ var DTOWorkspaceMembersListResponse = z213.object({
5979
+ members: z213.array(DTOWorkspaceMember)
5974
5980
  });
5975
5981
 
5976
5982
  // src/api/dto/bff/app-bootstrap-data.ts
5977
- var DTOAppBootstrapDataQuery = z213.object({
5978
- preferredWorkspaceId: z213.string().optional(),
5979
- preferredDesignSystemId: z213.string().optional(),
5980
- preferredVersionId: z213.string().optional(),
5981
- preferredBrandId: z213.string().optional()
5983
+ var DTOAppBootstrapDataQuery = z214.object({
5984
+ preferredWorkspaceId: z214.string().optional(),
5985
+ preferredDesignSystemId: z214.string().optional(),
5986
+ preferredVersionId: z214.string().optional(),
5987
+ preferredBrandId: z214.string().optional()
5982
5988
  });
5983
- var DTOAppBootstrapDataResponse = z213.object({
5989
+ var DTOAppBootstrapDataResponse = z214.object({
5984
5990
  workspaceMembership: DTOUserWorkspaceMembership.optional(),
5985
5991
  designSystem: DTODesignSystem.optional(),
5986
5992
  version: DTODesignSystemVersion.optional(),
@@ -5988,88 +5994,88 @@ var DTOAppBootstrapDataResponse = z213.object({
5988
5994
  });
5989
5995
 
5990
5996
  // src/api/dto/collections/token-collection.ts
5991
- import { z as z214 } from "zod";
5992
- var DTOTokenCollection = z214.object({
5993
- id: z214.string(),
5994
- persistentId: z214.string(),
5995
- designSystemVersionId: z214.string(),
5997
+ import { z as z215 } from "zod";
5998
+ var DTOTokenCollection = z215.object({
5999
+ id: z215.string(),
6000
+ persistentId: z215.string(),
6001
+ designSystemVersionId: z215.string(),
5996
6002
  meta: ObjectMeta,
5997
6003
  backgroundColor: ColorTokenInlineData.optional(),
5998
- elementPropertyOptionId: z214.string(),
5999
- createdAt: z214.coerce.date(),
6000
- updatedAt: z214.coerce.date(),
6004
+ elementPropertyOptionId: z215.string(),
6005
+ createdAt: z215.coerce.date(),
6006
+ updatedAt: z215.coerce.date(),
6001
6007
  origin: CollectionOrigin.optional()
6002
6008
  });
6003
- var DTOTokenCollectionsListReponse = z214.object({
6009
+ var DTOTokenCollectionsListReponse = z215.object({
6004
6010
  collections: DTOTokenCollection.array()
6005
6011
  });
6006
6012
 
6007
6013
  // src/api/dto/design-tokens/design-token.ts
6008
- import { z as z215 } from "zod";
6014
+ import { z as z216 } from "zod";
6009
6015
  var DTODesignToken = DesignTokenTypedData.and(
6010
- z215.object({
6011
- id: z215.string(),
6012
- persistentId: z215.string(),
6013
- designSystemVersionId: z215.string(),
6016
+ z216.object({
6017
+ id: z216.string(),
6018
+ persistentId: z216.string(),
6019
+ designSystemVersionId: z216.string(),
6014
6020
  meta: ObjectMeta,
6015
6021
  originStyle: DesignTokenOrigin.optional(),
6016
- brandId: z215.string(),
6017
- collectionId: z215.string().optional(),
6018
- updatedAt: z215.coerce.date()
6022
+ brandId: z216.string(),
6023
+ collectionId: z216.string().optional(),
6024
+ updatedAt: z216.coerce.date()
6019
6025
  })
6020
6026
  );
6021
- var DTODesignTokenListResponse = z215.object({
6027
+ var DTODesignTokenListResponse = z216.object({
6022
6028
  tokens: DTODesignToken.array()
6023
6029
  });
6024
- var DTODesignTokenResponse = z215.object({
6030
+ var DTODesignTokenResponse = z216.object({
6025
6031
  token: DTODesignToken
6026
6032
  });
6027
- var DTODesignTokenGroup = z215.object({
6028
- id: z215.string(),
6033
+ var DTODesignTokenGroup = z216.object({
6034
+ id: z216.string(),
6029
6035
  tokenType: DesignTokenType,
6030
- persistentId: z215.string(),
6031
- isRoot: z215.boolean(),
6032
- brandId: z215.string(),
6036
+ persistentId: z216.string(),
6037
+ isRoot: z216.boolean(),
6038
+ brandId: z216.string(),
6033
6039
  meta: ObjectMeta,
6034
- childrenIds: z215.string().array()
6040
+ childrenIds: z216.string().array()
6035
6041
  });
6036
- var DTODesignTokenGroupListResponse = z215.object({
6042
+ var DTODesignTokenGroupListResponse = z216.object({
6037
6043
  groups: DTODesignTokenGroup.array()
6038
6044
  });
6039
- var DTODesignTokenGroupResponse = z215.object({
6045
+ var DTODesignTokenGroupResponse = z216.object({
6040
6046
  group: DTODesignTokenGroup
6041
6047
  });
6042
6048
  var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
6043
- z215.object({
6044
- persistentId: z215.string(),
6049
+ z216.object({
6050
+ persistentId: z216.string(),
6045
6051
  meta: ObjectMeta,
6046
- brandId: z215.string(),
6047
- groupPersistentId: z215.string().optional()
6052
+ brandId: z216.string(),
6053
+ groupPersistentId: z216.string().optional()
6048
6054
  })
6049
6055
  );
6050
- var DTODesignTokenGroupCreatePayload = z215.object({
6051
- persistentId: z215.string(),
6056
+ var DTODesignTokenGroupCreatePayload = z216.object({
6057
+ persistentId: z216.string(),
6052
6058
  meta: ObjectMeta,
6053
- brandId: z215.string(),
6054
- parentId: z215.string().optional(),
6059
+ brandId: z216.string(),
6060
+ parentId: z216.string().optional(),
6055
6061
  tokenType: DesignTokenType,
6056
- childrenIds: z215.string().array()
6062
+ childrenIds: z216.string().array()
6057
6063
  });
6058
6064
 
6059
6065
  // src/api/dto/documentation/anchor.ts
6060
- import { z as z216 } from "zod";
6066
+ import { z as z217 } from "zod";
6061
6067
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
6062
- var DTOGetDocumentationPageAnchorsResponse = z216.object({
6063
- anchors: z216.array(DTODocumentationPageAnchor)
6068
+ var DTOGetDocumentationPageAnchorsResponse = z217.object({
6069
+ anchors: z217.array(DTODocumentationPageAnchor)
6064
6070
  });
6065
6071
 
6066
6072
  // src/api/dto/documentation/approvals.ts
6067
- import { z as z217 } from "zod";
6073
+ import { z as z218 } from "zod";
6068
6074
  var DTODocumentationPageApprovalState = DocumentationPageApproval;
6069
- var DTODocumentationGroupApprovalState = z217.object({
6070
- persistentId: z217.string(),
6071
- groupId: z217.string(),
6072
- designSystemVersionId: z217.string(),
6075
+ var DTODocumentationGroupApprovalState = z218.object({
6076
+ persistentId: z218.string(),
6077
+ groupId: z218.string(),
6078
+ designSystemVersionId: z218.string(),
6073
6079
  approvalState: DocumentationPageApprovalState
6074
6080
  });
6075
6081
 
@@ -6077,68 +6083,68 @@ var DTODocumentationGroupApprovalState = z217.object({
6077
6083
  var DTOPageBlockItemV2 = PageBlockItemV2;
6078
6084
 
6079
6085
  // src/api/dto/documentation/documentation-page-snapshot.ts
6080
- import { z as z222 } from "zod";
6086
+ import { z as z223 } from "zod";
6081
6087
 
6082
6088
  // src/api/dto/elements/documentation/page-v2.ts
6083
- import { z as z221 } from "zod";
6089
+ import { z as z222 } from "zod";
6084
6090
 
6085
6091
  // src/api/dto/elements/documentation/draft-state.ts
6086
- import { z as z219 } from "zod";
6092
+ import { z as z220 } from "zod";
6087
6093
 
6088
6094
  // src/api/dto/elements/documentation/item-configuration-v2.ts
6089
- import { z as z218 } from "zod";
6095
+ import { z as z219 } from "zod";
6090
6096
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
6091
- var DTODocumentationItemConfigurationV2 = z218.object({
6092
- showSidebar: z218.boolean(),
6093
- isPrivate: z218.boolean(),
6094
- isHidden: z218.boolean(),
6097
+ var DTODocumentationItemConfigurationV2 = z219.object({
6098
+ showSidebar: z219.boolean(),
6099
+ isPrivate: z219.boolean(),
6100
+ isHidden: z219.boolean(),
6095
6101
  header: DTODocumentationItemHeaderV2
6096
6102
  });
6097
6103
 
6098
6104
  // src/api/dto/elements/documentation/draft-state.ts
6099
- var DTODocumentationDraftChangeType = z219.enum(["Created", "Updated", "Deleted"]);
6100
- var DTODocumentationDraftStateCreated = z219.object({
6101
- changeType: z219.literal(DTODocumentationDraftChangeType.enum.Created)
6102
- });
6103
- var DTODocumentationDraftStateUpdated = z219.object({
6104
- changeType: z219.literal(DTODocumentationDraftChangeType.enum.Updated),
6105
- changes: z219.object({
6106
- previousTitle: z219.string().optional(),
6105
+ var DTODocumentationDraftChangeType = z220.enum(["Created", "Updated", "Deleted"]);
6106
+ var DTODocumentationDraftStateCreated = z220.object({
6107
+ changeType: z220.literal(DTODocumentationDraftChangeType.enum.Created)
6108
+ });
6109
+ var DTODocumentationDraftStateUpdated = z220.object({
6110
+ changeType: z220.literal(DTODocumentationDraftChangeType.enum.Updated),
6111
+ changes: z220.object({
6112
+ previousTitle: z220.string().optional(),
6107
6113
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
6108
- previousContentHash: z219.string().optional()
6114
+ previousContentHash: z220.string().optional()
6109
6115
  })
6110
6116
  });
6111
- var DTODocumentationDraftStateDeleted = z219.object({
6112
- changeType: z219.literal(DTODocumentationDraftChangeType.enum.Deleted),
6113
- deletedAt: z219.coerce.date(),
6114
- deletedByUserId: z219.string()
6117
+ var DTODocumentationDraftStateDeleted = z220.object({
6118
+ changeType: z220.literal(DTODocumentationDraftChangeType.enum.Deleted),
6119
+ deletedAt: z220.coerce.date(),
6120
+ deletedByUserId: z220.string()
6115
6121
  });
6116
- var DTODocumentationDraftState = z219.discriminatedUnion("changeType", [
6122
+ var DTODocumentationDraftState = z220.discriminatedUnion("changeType", [
6117
6123
  DTODocumentationDraftStateCreated,
6118
6124
  DTODocumentationDraftStateUpdated,
6119
6125
  DTODocumentationDraftStateDeleted
6120
6126
  ]);
6121
6127
 
6122
6128
  // src/api/dto/elements/documentation/metadata.ts
6123
- import { z as z220 } from "zod";
6124
- var DTODocumentationPublishMetadata = z220.object({
6125
- lastPublishedByUserId: z220.string(),
6126
- lastPublishedAt: z220.coerce.date()
6129
+ import { z as z221 } from "zod";
6130
+ var DTODocumentationPublishMetadata = z221.object({
6131
+ lastPublishedByUserId: z221.string(),
6132
+ lastPublishedAt: z221.coerce.date()
6127
6133
  });
6128
6134
 
6129
6135
  // src/api/dto/elements/documentation/page-v2.ts
6130
- var DTODocumentationPageV2 = z221.object({
6131
- id: z221.string(),
6132
- persistentId: z221.string(),
6133
- designSystemVersionId: z221.string(),
6134
- title: z221.string(),
6136
+ var DTODocumentationPageV2 = z222.object({
6137
+ id: z222.string(),
6138
+ persistentId: z222.string(),
6139
+ designSystemVersionId: z222.string(),
6140
+ title: z222.string(),
6135
6141
  configuration: DTODocumentationItemConfigurationV2,
6136
- shortPersistentId: z221.string(),
6137
- slug: z221.string().optional(),
6138
- userSlug: z221.string().optional(),
6139
- createdAt: z221.coerce.date(),
6140
- updatedAt: z221.coerce.date(),
6141
- path: z221.string(),
6142
+ shortPersistentId: z222.string(),
6143
+ slug: z222.string().optional(),
6144
+ userSlug: z222.string().optional(),
6145
+ createdAt: z222.coerce.date(),
6146
+ updatedAt: z222.coerce.date(),
6147
+ path: z222.string(),
6142
6148
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6143
6149
  draftState: DTODocumentationDraftState.optional(),
6144
6150
  /** Defined if a page was published at least once and contains metadata about last publish */
@@ -6146,215 +6152,215 @@ var DTODocumentationPageV2 = z221.object({
6146
6152
  /** Defines the approval state of the documentation page */
6147
6153
  approvalState: DTODocumentationPageApprovalState.optional(),
6148
6154
  // Backward compatibility
6149
- type: z221.literal("Page")
6155
+ type: z222.literal("Page")
6150
6156
  });
6151
- var DTOCreateDocumentationPageInputV2 = z221.object({
6157
+ var DTOCreateDocumentationPageInputV2 = z222.object({
6152
6158
  // Identifier
6153
- persistentId: z221.string(),
6159
+ persistentId: z222.string(),
6154
6160
  // Page properties
6155
- title: z221.string(),
6161
+ title: z222.string(),
6156
6162
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6157
6163
  // Page placement properties
6158
- parentPersistentId: z221.string(),
6159
- afterPersistentId: z221.string().nullish()
6164
+ parentPersistentId: z222.string(),
6165
+ afterPersistentId: z222.string().nullish()
6160
6166
  });
6161
- var DTOUpdateDocumentationPageInputV2 = z221.object({
6167
+ var DTOUpdateDocumentationPageInputV2 = z222.object({
6162
6168
  // Identifier of the group to update
6163
- id: z221.string(),
6169
+ id: z222.string(),
6164
6170
  // Page properties
6165
- title: z221.string().optional(),
6171
+ title: z222.string().optional(),
6166
6172
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6167
6173
  });
6168
- var DTOMoveDocumentationPageInputV2 = z221.object({
6174
+ var DTOMoveDocumentationPageInputV2 = z222.object({
6169
6175
  // Identifier of the group to update
6170
- id: z221.string(),
6176
+ id: z222.string(),
6171
6177
  // Page placement properties
6172
- parentPersistentId: z221.string(),
6173
- afterPersistentId: z221.string().nullish()
6178
+ parentPersistentId: z222.string(),
6179
+ afterPersistentId: z222.string().nullish()
6174
6180
  });
6175
- var DTODuplicateDocumentationPageInputV2 = z221.object({
6181
+ var DTODuplicateDocumentationPageInputV2 = z222.object({
6176
6182
  // Identifier of the page to duplicate from
6177
- id: z221.string(),
6183
+ id: z222.string(),
6178
6184
  // New page persistent id
6179
- persistentId: z221.string(),
6185
+ persistentId: z222.string(),
6180
6186
  // Page placement properties
6181
- parentPersistentId: z221.string(),
6182
- afterPersistentId: z221.string().nullish()
6187
+ parentPersistentId: z222.string(),
6188
+ afterPersistentId: z222.string().nullish()
6183
6189
  });
6184
- var DTODeleteDocumentationPageInputV2 = z221.object({
6190
+ var DTODeleteDocumentationPageInputV2 = z222.object({
6185
6191
  // Identifier
6186
- id: z221.string()
6192
+ id: z222.string()
6187
6193
  });
6188
- var DTORestoreDocumentationPageInput = z221.object({
6189
- persistentId: z221.string(),
6190
- snapshotId: z221.string().optional()
6194
+ var DTORestoreDocumentationPageInput = z222.object({
6195
+ persistentId: z222.string(),
6196
+ snapshotId: z222.string().optional()
6191
6197
  });
6192
- var DTORestoreDocumentationGroupInput = z221.object({
6193
- persistentId: z221.string(),
6194
- snapshotId: z221.string().optional()
6198
+ var DTORestoreDocumentationGroupInput = z222.object({
6199
+ persistentId: z222.string(),
6200
+ snapshotId: z222.string().optional()
6195
6201
  });
6196
- var DTODocumentationPageApprovalStateChangeInput = z221.object({
6197
- persistentId: z221.string(),
6202
+ var DTODocumentationPageApprovalStateChangeInput = z222.object({
6203
+ persistentId: z222.string(),
6198
6204
  approvalState: DocumentationPageApprovalState.optional()
6199
6205
  });
6200
6206
 
6201
6207
  // src/api/dto/documentation/documentation-page-snapshot.ts
6202
- var DTODocumentationPageSnapshot = z222.object({
6203
- id: z222.string(),
6204
- designSystemVersionId: z222.string(),
6205
- createdAt: z222.string(),
6206
- updatedAt: z222.string(),
6208
+ var DTODocumentationPageSnapshot = z223.object({
6209
+ id: z223.string(),
6210
+ designSystemVersionId: z223.string(),
6211
+ createdAt: z223.string(),
6212
+ updatedAt: z223.string(),
6207
6213
  documentationPage: DTODocumentationPageV2,
6208
- pageContentHash: z222.string(),
6214
+ pageContentHash: z223.string(),
6209
6215
  reason: DesignElementSnapshotReason
6210
6216
  });
6211
6217
 
6212
6218
  // src/api/dto/documentation/link-preview.ts
6213
- import { z as z223 } from "zod";
6214
- var DTODocumentationLinkPreviewResponse = z223.object({
6219
+ import { z as z224 } from "zod";
6220
+ var DTODocumentationLinkPreviewResponse = z224.object({
6215
6221
  linkPreview: DocumentationLinkPreview
6216
6222
  });
6217
- var DTODocumentationLinkPreviewRequest = z223.object({
6218
- url: z223.string().optional(),
6219
- documentationItemPersistentId: z223.string().optional()
6223
+ var DTODocumentationLinkPreviewRequest = z224.object({
6224
+ url: z224.string().optional(),
6225
+ documentationItemPersistentId: z224.string().optional()
6220
6226
  });
6221
6227
 
6222
6228
  // src/api/dto/documentation/publish.ts
6223
- import { z as z227 } from "zod";
6229
+ import { z as z228 } from "zod";
6224
6230
 
6225
6231
  // src/api/dto/export/exporter.ts
6226
- import { z as z224 } from "zod";
6227
- var DTOExporterType = z224.enum(["documentation", "code"]);
6228
- var DTOExporterSource = z224.enum(["git", "upload"]);
6229
- var DTOExporterMembershipRole = z224.enum(["Owner", "OwnerArchived", "User"]);
6230
- var DTOExporterListQuery = z224.object({
6231
- limit: z224.coerce.number().optional()
6232
- });
6233
- var DTOExporter = z224.object({
6234
- id: z224.string(),
6235
- name: z224.string(),
6236
- isPrivate: z224.boolean(),
6232
+ import { z as z225 } from "zod";
6233
+ var DTOExporterType = z225.enum(["documentation", "code"]);
6234
+ var DTOExporterSource = z225.enum(["git", "upload"]);
6235
+ var DTOExporterMembershipRole = z225.enum(["Owner", "OwnerArchived", "User"]);
6236
+ var DTOExporterListQuery = z225.object({
6237
+ limit: z225.coerce.number().optional()
6238
+ });
6239
+ var DTOExporter = z225.object({
6240
+ id: z225.string(),
6241
+ name: z225.string(),
6242
+ isPrivate: z225.boolean(),
6237
6243
  exporterType: DTOExporterType,
6238
- isDefaultDocumentationExporter: z224.boolean(),
6239
- iconURL: z224.string().optional(),
6244
+ isDefaultDocumentationExporter: z225.boolean(),
6245
+ iconURL: z225.string().optional(),
6240
6246
  configurationProperties: PulsarContributionConfigurationProperty.array(),
6241
6247
  customBlocks: PulsarCustomBlock.array(),
6242
- blockVariants: z224.record(z224.string(), PulsarContributionVariant.array()),
6243
- usesBrands: z224.boolean(),
6244
- usesThemes: z224.boolean(),
6248
+ blockVariants: z225.record(z225.string(), PulsarContributionVariant.array()),
6249
+ usesBrands: z225.boolean(),
6250
+ usesThemes: z225.boolean(),
6245
6251
  source: DTOExporterSource,
6246
- gitUrl: nullishToOptional(z224.string()),
6247
- gitBranch: nullishToOptional(z224.string()),
6248
- gitDirectory: nullishToOptional(z224.string())
6252
+ gitUrl: nullishToOptional(z225.string()),
6253
+ gitBranch: nullishToOptional(z225.string()),
6254
+ gitDirectory: nullishToOptional(z225.string())
6249
6255
  });
6250
- var DTOExporterMembership = z224.object({
6251
- workspaceId: z224.string(),
6252
- exporterId: z224.string(),
6256
+ var DTOExporterMembership = z225.object({
6257
+ workspaceId: z225.string(),
6258
+ exporterId: z225.string(),
6253
6259
  role: DTOExporterMembershipRole
6254
6260
  });
6255
- var DTOExporterCreateOutput = z224.object({
6261
+ var DTOExporterCreateOutput = z225.object({
6256
6262
  exporter: DTOExporter,
6257
6263
  membership: DTOExporterMembership
6258
6264
  });
6259
- var DTOExporterListResponse = z224.object({
6265
+ var DTOExporterListResponse = z225.object({
6260
6266
  exporters: DTOExporter.array(),
6261
6267
  membership: DTOExporterMembership.array()
6262
6268
  });
6263
- var DTOExporterGitProviderEnum = z224.enum(["github", "gitlab", "bitbucket", "azure"]);
6264
- var DTOExporterCreateInput = z224.object({
6265
- url: z224.string(),
6269
+ var DTOExporterGitProviderEnum = z225.enum(["github", "gitlab", "bitbucket", "azure"]);
6270
+ var DTOExporterCreateInput = z225.object({
6271
+ url: z225.string(),
6266
6272
  provider: DTOExporterGitProviderEnum
6267
6273
  });
6268
- var DTOExporterUpdateInput = z224.object({
6269
- url: z224.string().optional()
6274
+ var DTOExporterUpdateInput = z225.object({
6275
+ url: z225.string().optional()
6270
6276
  });
6271
6277
 
6272
6278
  // src/api/dto/export/filter.ts
6273
6279
  var DTOExportJobsListFilter = ExportJobFindByFilter;
6274
6280
 
6275
6281
  // src/api/dto/export/job.ts
6276
- import { z as z225 } from "zod";
6277
- var DTOExportJobCreatedBy = z225.object({
6278
- userId: z225.string(),
6279
- userName: z225.string()
6282
+ import { z as z226 } from "zod";
6283
+ var DTOExportJobCreatedBy = z226.object({
6284
+ userId: z226.string(),
6285
+ userName: z226.string()
6280
6286
  });
6281
- var DTOExportJobDesignSystemPreview = z225.object({
6282
- id: z225.string(),
6287
+ var DTOExportJobDesignSystemPreview = z226.object({
6288
+ id: z226.string(),
6283
6289
  meta: ObjectMeta
6284
6290
  });
6285
- var DTOExportJobDesignSystemVersionPreview = z225.object({
6286
- id: z225.string(),
6291
+ var DTOExportJobDesignSystemVersionPreview = z226.object({
6292
+ id: z226.string(),
6287
6293
  meta: ObjectMeta,
6288
- version: z225.string(),
6289
- isReadonly: z225.boolean()
6294
+ version: z226.string(),
6295
+ isReadonly: z226.boolean()
6290
6296
  });
6291
- var DTOExportJobDestinations = z225.object({
6297
+ var DTOExportJobDestinations = z226.object({
6292
6298
  s3: ExporterDestinationS3.optional(),
6293
6299
  azure: ExporterDestinationAzure.optional(),
6294
6300
  bitbucket: ExporterDestinationBitbucket.optional(),
6295
6301
  github: ExporterDestinationGithub.optional(),
6296
6302
  gitlab: ExporterDestinationGitlab.optional(),
6297
6303
  documentation: ExporterDestinationDocs.optional(),
6298
- webhookUrl: z225.string().optional()
6304
+ webhookUrl: z226.string().optional()
6299
6305
  });
6300
6306
  var DTOExportJobResult = ExportJobResult.omit({
6301
6307
  sndocs: true
6302
6308
  }).extend({
6303
6309
  documentation: ExportJobDocsDestinationResult.optional()
6304
6310
  });
6305
- var DTOExportJob = z225.object({
6306
- id: z225.string(),
6307
- createdAt: z225.coerce.date(),
6308
- finishedAt: z225.coerce.date().optional(),
6309
- index: z225.number().optional(),
6311
+ var DTOExportJob = z226.object({
6312
+ id: z226.string(),
6313
+ createdAt: z226.coerce.date(),
6314
+ finishedAt: z226.coerce.date().optional(),
6315
+ index: z226.number().optional(),
6310
6316
  status: ExportJobStatus,
6311
- estimatedExecutionTime: z225.number().optional(),
6317
+ estimatedExecutionTime: z226.number().optional(),
6312
6318
  createdBy: DTOExportJobCreatedBy.optional(),
6313
6319
  designSystem: DTOExportJobDesignSystemPreview,
6314
6320
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
6315
6321
  destinations: DTOExportJobDestinations,
6316
- exporterId: z225.string(),
6317
- scheduleId: z225.string().optional(),
6322
+ exporterId: z226.string(),
6323
+ scheduleId: z226.string().optional(),
6318
6324
  result: DTOExportJobResult.optional(),
6319
- brandPersistentId: z225.string().optional(),
6320
- themePersistentId: z225.string().optional(),
6321
- themePersistentIds: z225.string().array().optional()
6325
+ brandPersistentId: z226.string().optional(),
6326
+ themePersistentId: z226.string().optional(),
6327
+ themePersistentIds: z226.string().array().optional()
6322
6328
  });
6323
- var DTOExportJobResponse = z225.object({
6329
+ var DTOExportJobResponse = z226.object({
6324
6330
  job: DTOExportJob
6325
6331
  });
6326
6332
 
6327
6333
  // src/api/dto/export/pipeline.ts
6328
- import { z as z226 } from "zod";
6329
- var DTOPipelineListQuery = z226.object({
6330
- designSystemId: z226.string().optional(),
6331
- exporterId: z226.string().optional(),
6332
- latestJobsLimit: z226.coerce.number().optional()
6333
- });
6334
- var DTOPipeline = z226.object({
6335
- id: z226.string(),
6336
- name: z226.string(),
6334
+ import { z as z227 } from "zod";
6335
+ var DTOPipelineListQuery = z227.object({
6336
+ designSystemId: z227.string().optional(),
6337
+ exporterId: z227.string().optional(),
6338
+ latestJobsLimit: z227.coerce.number().optional()
6339
+ });
6340
+ var DTOPipeline = z227.object({
6341
+ id: z227.string(),
6342
+ name: z227.string(),
6337
6343
  eventType: PipelineEventType,
6338
- isEnabled: z226.boolean(),
6339
- workspaceId: z226.string(),
6340
- designSystemId: z226.string(),
6341
- exporterId: z226.string(),
6342
- brandPersistentId: z226.string().optional(),
6343
- themePersistentId: z226.string().optional(),
6344
- themePersistentIds: z226.string().array().optional(),
6344
+ isEnabled: z227.boolean(),
6345
+ workspaceId: z227.string(),
6346
+ designSystemId: z227.string(),
6347
+ exporterId: z227.string(),
6348
+ brandPersistentId: z227.string().optional(),
6349
+ themePersistentId: z227.string().optional(),
6350
+ themePersistentIds: z227.string().array().optional(),
6345
6351
  ...ExportDestinationsMap.shape,
6346
6352
  latestJobs: DTOExportJob.array()
6347
6353
  });
6348
- var DTOPipelineListResponse = z226.object({
6354
+ var DTOPipelineListResponse = z227.object({
6349
6355
  pipelines: DTOPipeline.array()
6350
6356
  });
6351
- var DTOPipelineResponse = z226.object({
6357
+ var DTOPipelineResponse = z227.object({
6352
6358
  pipeline: DTOPipeline
6353
6359
  });
6354
6360
 
6355
6361
  // src/api/dto/documentation/publish.ts
6356
6362
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
6357
- var DTOPublishDocumentationRequest = z227.object({
6363
+ var DTOPublishDocumentationRequest = z228.object({
6358
6364
  environment: PublishedDocEnvironment,
6359
6365
  /**
6360
6366
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -6362,42 +6368,42 @@ var DTOPublishDocumentationRequest = z227.object({
6362
6368
  */
6363
6369
  changes: DTOPublishDocumentationChanges.optional()
6364
6370
  });
6365
- var DTOPublishDocumentationResponse = z227.object({
6371
+ var DTOPublishDocumentationResponse = z228.object({
6366
6372
  job: DTOExportJob
6367
6373
  });
6368
6374
 
6369
6375
  // src/api/dto/elements/components/figma-component.ts
6370
- import { z as z228 } from "zod";
6376
+ import { z as z229 } from "zod";
6371
6377
  var DTOFigmaComponentProperty = FigmaComponentProperty;
6372
- var DTOFigmaComponentPropertyMap = z228.record(DTOFigmaComponentProperty);
6373
- var DTOFigmaComponent = z228.object({
6374
- id: z228.string(),
6375
- persistentId: z228.string(),
6376
- designSystemVersionId: z228.string(),
6377
- brandId: z228.string(),
6378
- thumbnailUrl: z228.string().optional(),
6379
- svgUrl: z228.string().optional(),
6380
- exportProperties: z228.object({
6381
- isAsset: z228.boolean()
6378
+ var DTOFigmaComponentPropertyMap = z229.record(DTOFigmaComponentProperty);
6379
+ var DTOFigmaComponent = z229.object({
6380
+ id: z229.string(),
6381
+ persistentId: z229.string(),
6382
+ designSystemVersionId: z229.string(),
6383
+ brandId: z229.string(),
6384
+ thumbnailUrl: z229.string().optional(),
6385
+ svgUrl: z229.string().optional(),
6386
+ exportProperties: z229.object({
6387
+ isAsset: z229.boolean()
6382
6388
  }),
6383
- createdAt: z228.coerce.date(),
6384
- updatedAt: z228.coerce.date(),
6389
+ createdAt: z229.coerce.date(),
6390
+ updatedAt: z229.coerce.date(),
6385
6391
  meta: ObjectMeta,
6386
6392
  originComponent: FigmaComponentOrigin.optional(),
6387
- parentComponentPersistentId: z228.string().optional(),
6388
- childrenPersistentIds: z228.string().array().optional(),
6393
+ parentComponentPersistentId: z229.string().optional(),
6394
+ childrenPersistentIds: z229.string().array().optional(),
6389
6395
  componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
6390
- variantPropertyValues: z228.record(z228.string()).optional()
6396
+ variantPropertyValues: z229.record(z229.string()).optional()
6391
6397
  });
6392
- var DTOFigmaComponentListResponse = z228.object({
6398
+ var DTOFigmaComponentListResponse = z229.object({
6393
6399
  components: DTOFigmaComponent.array()
6394
6400
  });
6395
6401
 
6396
6402
  // src/api/dto/elements/documentation/group-action.ts
6397
- import { z as z230 } from "zod";
6403
+ import { z as z231 } from "zod";
6398
6404
 
6399
6405
  // src/api/dto/elements/documentation/group-v2.ts
6400
- import { z as z229 } from "zod";
6406
+ import { z as z230 } from "zod";
6401
6407
  var DTODocumentationGroupV2 = ElementGroup.omit({
6402
6408
  sortOrder: true,
6403
6409
  parentPersistentId: true,
@@ -6407,13 +6413,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6407
6413
  data: true,
6408
6414
  shortPersistentId: true
6409
6415
  }).extend({
6410
- title: z229.string(),
6411
- isRoot: z229.boolean(),
6412
- childrenIds: z229.array(z229.string()),
6416
+ title: z230.string(),
6417
+ isRoot: z230.boolean(),
6418
+ childrenIds: z230.array(z230.string()),
6413
6419
  groupBehavior: DocumentationGroupBehavior,
6414
- shortPersistentId: z229.string(),
6420
+ shortPersistentId: z230.string(),
6415
6421
  configuration: DTODocumentationItemConfigurationV2,
6416
- type: z229.literal("Group"),
6422
+ type: z230.literal("Group"),
6417
6423
  /** Defined when a group has changed since last publish and can be included into a partial publish */
6418
6424
  draftState: DTODocumentationDraftState.optional(),
6419
6425
  /** Defined if a group was published at least once and contains metadata about last publish */
@@ -6421,127 +6427,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
6421
6427
  //** An approval state for frontend to utilize. */
6422
6428
  approvalState: DTODocumentationGroupApprovalState.optional()
6423
6429
  });
6424
- var DTOCreateDocumentationGroupInput = z229.object({
6430
+ var DTOCreateDocumentationGroupInput = z230.object({
6425
6431
  // Identifier
6426
- persistentId: z229.string(),
6432
+ persistentId: z230.string(),
6427
6433
  // Group properties
6428
- title: z229.string(),
6434
+ title: z230.string(),
6429
6435
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
6430
6436
  // Group placement properties
6431
- afterPersistentId: z229.string().nullish(),
6432
- parentPersistentId: z229.string()
6437
+ afterPersistentId: z230.string().nullish(),
6438
+ parentPersistentId: z230.string()
6433
6439
  });
6434
- var DTOUpdateDocumentationGroupInput = z229.object({
6440
+ var DTOUpdateDocumentationGroupInput = z230.object({
6435
6441
  // Identifier of the group to update
6436
- id: z229.string(),
6442
+ id: z230.string(),
6437
6443
  // Group properties
6438
- title: z229.string().optional(),
6444
+ title: z230.string().optional(),
6439
6445
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
6440
6446
  });
6441
- var DTOMoveDocumentationGroupInput = z229.object({
6447
+ var DTOMoveDocumentationGroupInput = z230.object({
6442
6448
  // Identifier of the group to update
6443
- id: z229.string(),
6449
+ id: z230.string(),
6444
6450
  // Group placement properties
6445
- parentPersistentId: z229.string(),
6446
- afterPersistentId: z229.string().nullish()
6451
+ parentPersistentId: z230.string(),
6452
+ afterPersistentId: z230.string().nullish()
6447
6453
  });
6448
- var DTODuplicateDocumentationGroupInput = z229.object({
6454
+ var DTODuplicateDocumentationGroupInput = z230.object({
6449
6455
  // Identifier of the group to duplicate from
6450
- id: z229.string(),
6456
+ id: z230.string(),
6451
6457
  // New group persistent id
6452
- persistentId: z229.string(),
6458
+ persistentId: z230.string(),
6453
6459
  // Group placement properties
6454
- afterPersistentId: z229.string().nullish(),
6455
- parentPersistentId: z229.string()
6460
+ afterPersistentId: z230.string().nullish(),
6461
+ parentPersistentId: z230.string()
6456
6462
  });
6457
- var DTOCreateDocumentationTabInput = z229.object({
6463
+ var DTOCreateDocumentationTabInput = z230.object({
6458
6464
  // New group persistent id
6459
- persistentId: z229.string(),
6465
+ persistentId: z230.string(),
6460
6466
  // If this is page, we will attempt to convert it to tab
6461
6467
  // If this is tab group, we will add a new tab to it
6462
- fromItemPersistentId: z229.string(),
6463
- tabName: z229.string()
6468
+ fromItemPersistentId: z230.string(),
6469
+ tabName: z230.string()
6464
6470
  });
6465
- var DTODeleteDocumentationTabGroupInput = z229.object({
6471
+ var DTODeleteDocumentationTabGroupInput = z230.object({
6466
6472
  // Deleted group id
6467
- id: z229.string()
6473
+ id: z230.string()
6468
6474
  });
6469
- var DTODeleteDocumentationGroupInput = z229.object({
6475
+ var DTODeleteDocumentationGroupInput = z230.object({
6470
6476
  // Identifier
6471
- id: z229.string(),
6477
+ id: z230.string(),
6472
6478
  // Deletion options
6473
- deleteSubtree: z229.boolean().default(false)
6479
+ deleteSubtree: z230.boolean().default(false)
6474
6480
  });
6475
6481
 
6476
6482
  // src/api/dto/elements/documentation/group-action.ts
6477
- var SuccessPayload = z230.object({
6478
- success: z230.literal(true)
6483
+ var SuccessPayload = z231.object({
6484
+ success: z231.literal(true)
6479
6485
  });
6480
- var DTODocumentationGroupCreateActionOutputV2 = z230.object({
6481
- type: z230.literal("DocumentationGroupCreate"),
6486
+ var DTODocumentationGroupCreateActionOutputV2 = z231.object({
6487
+ type: z231.literal("DocumentationGroupCreate"),
6482
6488
  output: SuccessPayload
6483
6489
  });
6484
- var DTODocumentationTabCreateActionOutputV2 = z230.object({
6485
- type: z230.literal("DocumentationTabCreate"),
6490
+ var DTODocumentationTabCreateActionOutputV2 = z231.object({
6491
+ type: z231.literal("DocumentationTabCreate"),
6486
6492
  output: SuccessPayload
6487
6493
  });
6488
- var DTODocumentationGroupUpdateActionOutputV2 = z230.object({
6489
- type: z230.literal("DocumentationGroupUpdate"),
6494
+ var DTODocumentationGroupUpdateActionOutputV2 = z231.object({
6495
+ type: z231.literal("DocumentationGroupUpdate"),
6490
6496
  output: SuccessPayload
6491
6497
  });
6492
- var DTODocumentationGroupMoveActionOutputV2 = z230.object({
6493
- type: z230.literal("DocumentationGroupMove"),
6498
+ var DTODocumentationGroupMoveActionOutputV2 = z231.object({
6499
+ type: z231.literal("DocumentationGroupMove"),
6494
6500
  output: SuccessPayload
6495
6501
  });
6496
- var DTODocumentationGroupDuplicateActionOutputV2 = z230.object({
6497
- type: z230.literal("DocumentationGroupDuplicate"),
6502
+ var DTODocumentationGroupDuplicateActionOutputV2 = z231.object({
6503
+ type: z231.literal("DocumentationGroupDuplicate"),
6498
6504
  output: SuccessPayload
6499
6505
  });
6500
- var DTODocumentationGroupDeleteActionOutputV2 = z230.object({
6501
- type: z230.literal("DocumentationGroupDelete"),
6506
+ var DTODocumentationGroupDeleteActionOutputV2 = z231.object({
6507
+ type: z231.literal("DocumentationGroupDelete"),
6502
6508
  output: SuccessPayload
6503
6509
  });
6504
- var DTODocumentationTabGroupDeleteActionOutputV2 = z230.object({
6505
- type: z230.literal("DocumentationTabGroupDelete"),
6510
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z231.object({
6511
+ type: z231.literal("DocumentationTabGroupDelete"),
6506
6512
  output: SuccessPayload
6507
6513
  });
6508
- var DTODocumentationGroupCreateActionInputV2 = z230.object({
6509
- type: z230.literal("DocumentationGroupCreate"),
6514
+ var DTODocumentationGroupCreateActionInputV2 = z231.object({
6515
+ type: z231.literal("DocumentationGroupCreate"),
6510
6516
  input: DTOCreateDocumentationGroupInput
6511
6517
  });
6512
- var DTODocumentationTabCreateActionInputV2 = z230.object({
6513
- type: z230.literal("DocumentationTabCreate"),
6518
+ var DTODocumentationTabCreateActionInputV2 = z231.object({
6519
+ type: z231.literal("DocumentationTabCreate"),
6514
6520
  input: DTOCreateDocumentationTabInput
6515
6521
  });
6516
- var DTODocumentationGroupUpdateActionInputV2 = z230.object({
6517
- type: z230.literal("DocumentationGroupUpdate"),
6522
+ var DTODocumentationGroupUpdateActionInputV2 = z231.object({
6523
+ type: z231.literal("DocumentationGroupUpdate"),
6518
6524
  input: DTOUpdateDocumentationGroupInput
6519
6525
  });
6520
- var DTODocumentationGroupMoveActionInputV2 = z230.object({
6521
- type: z230.literal("DocumentationGroupMove"),
6526
+ var DTODocumentationGroupMoveActionInputV2 = z231.object({
6527
+ type: z231.literal("DocumentationGroupMove"),
6522
6528
  input: DTOMoveDocumentationGroupInput
6523
6529
  });
6524
- var DTODocumentationGroupDuplicateActionInputV2 = z230.object({
6525
- type: z230.literal("DocumentationGroupDuplicate"),
6530
+ var DTODocumentationGroupDuplicateActionInputV2 = z231.object({
6531
+ type: z231.literal("DocumentationGroupDuplicate"),
6526
6532
  input: DTODuplicateDocumentationGroupInput
6527
6533
  });
6528
- var DTODocumentationGroupDeleteActionInputV2 = z230.object({
6529
- type: z230.literal("DocumentationGroupDelete"),
6534
+ var DTODocumentationGroupDeleteActionInputV2 = z231.object({
6535
+ type: z231.literal("DocumentationGroupDelete"),
6530
6536
  input: DTODeleteDocumentationGroupInput
6531
6537
  });
6532
- var DTODocumentationTabGroupDeleteActionInputV2 = z230.object({
6533
- type: z230.literal("DocumentationTabGroupDelete"),
6538
+ var DTODocumentationTabGroupDeleteActionInputV2 = z231.object({
6539
+ type: z231.literal("DocumentationTabGroupDelete"),
6534
6540
  input: DTODeleteDocumentationTabGroupInput
6535
6541
  });
6536
6542
 
6537
6543
  // src/api/dto/elements/documentation/group-v1.ts
6538
- import { z as z232 } from "zod";
6544
+ import { z as z233 } from "zod";
6539
6545
 
6540
6546
  // src/api/dto/elements/documentation/item-configuration-v1.ts
6541
- import { z as z231 } from "zod";
6542
- var DocumentationColorV1 = z231.object({
6543
- aliasTo: z231.string().optional(),
6544
- value: z231.string().optional()
6547
+ import { z as z232 } from "zod";
6548
+ var DocumentationColorV1 = z232.object({
6549
+ aliasTo: z232.string().optional(),
6550
+ value: z232.string().optional()
6545
6551
  });
6546
6552
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6547
6553
  foregroundColor: true,
@@ -6550,10 +6556,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
6550
6556
  foregroundColor: DocumentationColorV1.optional(),
6551
6557
  backgroundColor: DocumentationColorV1.optional()
6552
6558
  });
6553
- var DTODocumentationItemConfigurationV1 = z231.object({
6554
- showSidebar: z231.boolean(),
6555
- isPrivate: z231.boolean(),
6556
- isHidden: z231.boolean(),
6559
+ var DTODocumentationItemConfigurationV1 = z232.object({
6560
+ showSidebar: z232.boolean(),
6561
+ isPrivate: z232.boolean(),
6562
+ isHidden: z232.boolean(),
6557
6563
  header: DTODocumentationItemHeaderV1
6558
6564
  });
6559
6565
 
@@ -6567,27 +6573,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
6567
6573
  data: true,
6568
6574
  shortPersistentId: true
6569
6575
  }).extend({
6570
- title: z232.string(),
6571
- isRoot: z232.boolean(),
6572
- childrenIds: z232.array(z232.string()),
6576
+ title: z233.string(),
6577
+ isRoot: z233.boolean(),
6578
+ childrenIds: z233.array(z233.string()),
6573
6579
  groupBehavior: DocumentationGroupBehavior,
6574
- shortPersistentId: z232.string(),
6575
- type: z232.literal("Group")
6580
+ shortPersistentId: z233.string(),
6581
+ type: z233.literal("Group")
6576
6582
  });
6577
6583
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
6578
6584
  configuration: DTODocumentationItemConfigurationV1
6579
6585
  });
6580
6586
 
6581
6587
  // src/api/dto/elements/documentation/hierarchy.ts
6582
- import { z as z233 } from "zod";
6583
- var DTODocumentationHierarchyV2 = z233.object({
6584
- pages: z233.array(
6588
+ import { z as z234 } from "zod";
6589
+ var DTODocumentationHierarchyV2 = z234.object({
6590
+ pages: z234.array(
6585
6591
  DTODocumentationPageV2.extend({
6586
6592
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6587
6593
  draftState: DTODocumentationDraftState.optional()
6588
6594
  })
6589
6595
  ),
6590
- groups: z233.array(
6596
+ groups: z234.array(
6591
6597
  DTODocumentationGroupV2.extend({
6592
6598
  /** Defined when a page has changed since last publish and can be included into a partial publish */
6593
6599
  draftState: DTODocumentationDraftState.optional()
@@ -6596,84 +6602,84 @@ var DTODocumentationHierarchyV2 = z233.object({
6596
6602
  });
6597
6603
 
6598
6604
  // src/api/dto/elements/documentation/page-actions-v2.ts
6599
- import { z as z234 } from "zod";
6600
- var SuccessPayload2 = z234.object({
6601
- success: z234.literal(true)
6605
+ import { z as z235 } from "zod";
6606
+ var SuccessPayload2 = z235.object({
6607
+ success: z235.literal(true)
6602
6608
  });
6603
- var DTODocumentationPageCreateActionOutputV2 = z234.object({
6604
- type: z234.literal("DocumentationPageCreate"),
6609
+ var DTODocumentationPageCreateActionOutputV2 = z235.object({
6610
+ type: z235.literal("DocumentationPageCreate"),
6605
6611
  output: SuccessPayload2
6606
6612
  });
6607
- var DTODocumentationPageUpdateActionOutputV2 = z234.object({
6608
- type: z234.literal("DocumentationPageUpdate"),
6613
+ var DTODocumentationPageUpdateActionOutputV2 = z235.object({
6614
+ type: z235.literal("DocumentationPageUpdate"),
6609
6615
  output: SuccessPayload2
6610
6616
  });
6611
- var DTODocumentationPageMoveActionOutputV2 = z234.object({
6612
- type: z234.literal("DocumentationPageMove"),
6617
+ var DTODocumentationPageMoveActionOutputV2 = z235.object({
6618
+ type: z235.literal("DocumentationPageMove"),
6613
6619
  output: SuccessPayload2
6614
6620
  });
6615
- var DTODocumentationPageDuplicateActionOutputV2 = z234.object({
6616
- type: z234.literal("DocumentationPageDuplicate"),
6621
+ var DTODocumentationPageDuplicateActionOutputV2 = z235.object({
6622
+ type: z235.literal("DocumentationPageDuplicate"),
6617
6623
  output: SuccessPayload2
6618
6624
  });
6619
- var DTODocumentationPageDeleteActionOutputV2 = z234.object({
6620
- type: z234.literal("DocumentationPageDelete"),
6625
+ var DTODocumentationPageDeleteActionOutputV2 = z235.object({
6626
+ type: z235.literal("DocumentationPageDelete"),
6621
6627
  output: SuccessPayload2
6622
6628
  });
6623
- var DTODocumentationPageRestoreActionOutput = z234.object({
6624
- type: z234.literal("DocumentationPageRestore"),
6629
+ var DTODocumentationPageRestoreActionOutput = z235.object({
6630
+ type: z235.literal("DocumentationPageRestore"),
6625
6631
  output: SuccessPayload2
6626
6632
  });
6627
- var DTODocumentationGroupRestoreActionOutput = z234.object({
6628
- type: z234.literal("DocumentationGroupRestore"),
6633
+ var DTODocumentationGroupRestoreActionOutput = z235.object({
6634
+ type: z235.literal("DocumentationGroupRestore"),
6629
6635
  output: SuccessPayload2
6630
6636
  });
6631
- var DTODocumentationPageApprovalStateChangeActionOutput = z234.object({
6632
- type: z234.literal("DocumentationPageApprovalStateChange"),
6637
+ var DTODocumentationPageApprovalStateChangeActionOutput = z235.object({
6638
+ type: z235.literal("DocumentationPageApprovalStateChange"),
6633
6639
  output: SuccessPayload2
6634
6640
  });
6635
- var DTODocumentationPageCreateActionInputV2 = z234.object({
6636
- type: z234.literal("DocumentationPageCreate"),
6641
+ var DTODocumentationPageCreateActionInputV2 = z235.object({
6642
+ type: z235.literal("DocumentationPageCreate"),
6637
6643
  input: DTOCreateDocumentationPageInputV2
6638
6644
  });
6639
- var DTODocumentationPageUpdateActionInputV2 = z234.object({
6640
- type: z234.literal("DocumentationPageUpdate"),
6645
+ var DTODocumentationPageUpdateActionInputV2 = z235.object({
6646
+ type: z235.literal("DocumentationPageUpdate"),
6641
6647
  input: DTOUpdateDocumentationPageInputV2
6642
6648
  });
6643
- var DTODocumentationPageMoveActionInputV2 = z234.object({
6644
- type: z234.literal("DocumentationPageMove"),
6649
+ var DTODocumentationPageMoveActionInputV2 = z235.object({
6650
+ type: z235.literal("DocumentationPageMove"),
6645
6651
  input: DTOMoveDocumentationPageInputV2
6646
6652
  });
6647
- var DTODocumentationPageDuplicateActionInputV2 = z234.object({
6648
- type: z234.literal("DocumentationPageDuplicate"),
6653
+ var DTODocumentationPageDuplicateActionInputV2 = z235.object({
6654
+ type: z235.literal("DocumentationPageDuplicate"),
6649
6655
  input: DTODuplicateDocumentationPageInputV2
6650
6656
  });
6651
- var DTODocumentationPageDeleteActionInputV2 = z234.object({
6652
- type: z234.literal("DocumentationPageDelete"),
6657
+ var DTODocumentationPageDeleteActionInputV2 = z235.object({
6658
+ type: z235.literal("DocumentationPageDelete"),
6653
6659
  input: DTODeleteDocumentationPageInputV2
6654
6660
  });
6655
- var DTODocumentationPageRestoreActionInput = z234.object({
6656
- type: z234.literal("DocumentationPageRestore"),
6661
+ var DTODocumentationPageRestoreActionInput = z235.object({
6662
+ type: z235.literal("DocumentationPageRestore"),
6657
6663
  input: DTORestoreDocumentationPageInput
6658
6664
  });
6659
- var DTODocumentationGroupRestoreActionInput = z234.object({
6660
- type: z234.literal("DocumentationGroupRestore"),
6665
+ var DTODocumentationGroupRestoreActionInput = z235.object({
6666
+ type: z235.literal("DocumentationGroupRestore"),
6661
6667
  input: DTORestoreDocumentationGroupInput
6662
6668
  });
6663
- var DTODocumentationPageApprovalStateChangeActionInput = z234.object({
6664
- type: z234.literal("DocumentationPageApprovalStateChange"),
6669
+ var DTODocumentationPageApprovalStateChangeActionInput = z235.object({
6670
+ type: z235.literal("DocumentationPageApprovalStateChange"),
6665
6671
  input: DTODocumentationPageApprovalStateChangeInput
6666
6672
  });
6667
6673
 
6668
6674
  // src/api/dto/elements/documentation/page-content.ts
6669
- import { z as z235 } from "zod";
6675
+ import { z as z236 } from "zod";
6670
6676
  var DTODocumentationPageContent = DocumentationPageContent;
6671
- var DTODocumentationPageContentGetResponse = z235.object({
6677
+ var DTODocumentationPageContentGetResponse = z236.object({
6672
6678
  pageContent: DTODocumentationPageContent
6673
6679
  });
6674
6680
 
6675
6681
  // src/api/dto/elements/documentation/page-v1.ts
6676
- import { z as z236 } from "zod";
6682
+ import { z as z237 } from "zod";
6677
6683
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
6678
6684
  data: true,
6679
6685
  meta: true,
@@ -6681,63 +6687,63 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
6681
6687
  sortOrder: true
6682
6688
  }).extend({
6683
6689
  configuration: DTODocumentationItemConfigurationV1,
6684
- blocks: z236.array(PageBlockV1),
6685
- title: z236.string(),
6686
- path: z236.string()
6690
+ blocks: z237.array(PageBlockV1),
6691
+ title: z237.string(),
6692
+ path: z237.string()
6687
6693
  });
6688
6694
 
6689
6695
  // src/api/dto/elements/documentation/structure.ts
6690
- import { z as z237 } from "zod";
6691
- var DTODocumentationStructureItemType = z237.enum(["Group", "Page"]);
6692
- var DTODocumentationStructureItemBase = z237.object({
6696
+ import { z as z238 } from "zod";
6697
+ var DTODocumentationStructureItemType = z238.enum(["Group", "Page"]);
6698
+ var DTODocumentationStructureItemBase = z238.object({
6693
6699
  type: DTODocumentationStructureItemType,
6694
- id: z237.string(),
6695
- designSystemVersionId: z237.string(),
6696
- shortPersistentId: z237.string(),
6697
- persistentId: z237.string(),
6698
- title: z237.string(),
6699
- createdAt: z237.coerce.date(),
6700
- updatedAt: z237.coerce.date()
6700
+ id: z238.string(),
6701
+ designSystemVersionId: z238.string(),
6702
+ shortPersistentId: z238.string(),
6703
+ persistentId: z238.string(),
6704
+ title: z238.string(),
6705
+ createdAt: z238.coerce.date(),
6706
+ updatedAt: z238.coerce.date()
6701
6707
  });
6702
6708
  var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
6703
- type: z237.literal(DTODocumentationStructureItemType.enum.Group),
6704
- groupBehavior: z237.string(),
6705
- childrenIds: z237.string().array(),
6706
- isRoot: z237.boolean()
6709
+ type: z238.literal(DTODocumentationStructureItemType.enum.Group),
6710
+ groupBehavior: z238.string(),
6711
+ childrenIds: z238.string().array(),
6712
+ isRoot: z238.boolean()
6707
6713
  });
6708
6714
  var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
6709
- type: z237.literal(DTODocumentationStructureItemType.enum.Page),
6710
- path: z237.string()
6715
+ type: z238.literal(DTODocumentationStructureItemType.enum.Page),
6716
+ path: z238.string()
6711
6717
  });
6712
- var DTODocumentationStructureItem = z237.discriminatedUnion("type", [
6718
+ var DTODocumentationStructureItem = z238.discriminatedUnion("type", [
6713
6719
  DTODocumentationStructureGroupItem,
6714
6720
  DTODocumentationStructurePageItem
6715
6721
  ]);
6716
- var DTODocumentationStructure = z237.object({
6717
- items: z237.array(DTODocumentationStructureItem)
6722
+ var DTODocumentationStructure = z238.object({
6723
+ items: z238.array(DTODocumentationStructureItem)
6718
6724
  });
6719
6725
 
6720
6726
  // src/api/dto/elements/figma-nodes/figma-node.ts
6721
- import { z as z238 } from "zod";
6727
+ import { z as z239 } from "zod";
6722
6728
  var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
6723
- var DTOFigmaNodeOrigin = z238.object({
6724
- sourceId: z238.string(),
6725
- fileId: z238.string().optional(),
6726
- parentName: z238.string().optional()
6729
+ var DTOFigmaNodeOrigin = z239.object({
6730
+ sourceId: z239.string(),
6731
+ fileId: z239.string().optional(),
6732
+ parentName: z239.string().optional()
6727
6733
  });
6728
- var DTOFigmaNodeData = z238.object({
6734
+ var DTOFigmaNodeData = z239.object({
6729
6735
  // Id of the node in the Figma file
6730
- figmaNodeId: z238.string(),
6736
+ figmaNodeId: z239.string(),
6731
6737
  // Validity
6732
- isValid: z238.boolean(),
6738
+ isValid: z239.boolean(),
6733
6739
  // Asset data
6734
- assetId: z238.string(),
6735
- assetUrl: z238.string(),
6740
+ assetId: z239.string(),
6741
+ assetUrl: z239.string(),
6736
6742
  assetFormat: DTOFigmaNodeRenderFormat,
6737
6743
  // Asset metadata
6738
- assetScale: z238.number(),
6739
- assetWidth: z238.number().optional(),
6740
- assetHeight: z238.number().optional()
6744
+ assetScale: z239.number(),
6745
+ assetWidth: z239.number().optional(),
6746
+ assetHeight: z239.number().optional()
6741
6747
  });
6742
6748
  var DTOFigmaNode = FigmaNodeReference.omit({
6743
6749
  data: true,
@@ -6746,15 +6752,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
6746
6752
  data: DTOFigmaNodeData,
6747
6753
  origin: DTOFigmaNodeOrigin
6748
6754
  });
6749
- var DTOFigmaNodeRenderInput = z238.object({
6755
+ var DTOFigmaNodeRenderInput = z239.object({
6750
6756
  /**
6751
6757
  * Id of a design system's data source representing a linked Figma file
6752
6758
  */
6753
- sourceId: z238.string(),
6759
+ sourceId: z239.string(),
6754
6760
  /**
6755
6761
  * Id of a node within the Figma file
6756
6762
  */
6757
- figmaFileNodeId: z238.string(),
6763
+ figmaFileNodeId: z239.string(),
6758
6764
  /**
6759
6765
  * Format in which the node must be rendered, png by default.
6760
6766
  */
@@ -6762,84 +6768,84 @@ var DTOFigmaNodeRenderInput = z238.object({
6762
6768
  });
6763
6769
 
6764
6770
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
6765
- import { z as z239 } from "zod";
6766
- var DTOFigmaNodeRenderActionOutput = z239.object({
6767
- type: z239.literal("FigmaNodeRender"),
6768
- figmaNodes: z239.array(DTOFigmaNode)
6771
+ import { z as z240 } from "zod";
6772
+ var DTOFigmaNodeRenderActionOutput = z240.object({
6773
+ type: z240.literal("FigmaNodeRender"),
6774
+ figmaNodes: z240.array(DTOFigmaNode)
6769
6775
  });
6770
- var DTOFigmaNodeRenderActionInput = z239.object({
6771
- type: z239.literal("FigmaNodeRender"),
6776
+ var DTOFigmaNodeRenderActionInput = z240.object({
6777
+ type: z240.literal("FigmaNodeRender"),
6772
6778
  input: DTOFigmaNodeRenderInput.array()
6773
6779
  });
6774
6780
 
6775
6781
  // src/api/dto/elements/properties/property-definitions.ts
6776
- import { z as z240 } from "zod";
6782
+ import { z as z241 } from "zod";
6777
6783
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
6778
- var DTOElementPropertyDefinitionOption = z240.object({
6779
- id: z240.string(),
6780
- name: z240.string(),
6784
+ var DTOElementPropertyDefinitionOption = z241.object({
6785
+ id: z241.string(),
6786
+ name: z241.string(),
6781
6787
  backgroundColor: DTOColorTokenInlineData.optional()
6782
6788
  });
6783
- var DTOElementPropertyDefinition = z240.object({
6784
- id: z240.string(),
6785
- designSystemVersionId: z240.string(),
6789
+ var DTOElementPropertyDefinition = z241.object({
6790
+ id: z241.string(),
6791
+ designSystemVersionId: z241.string(),
6786
6792
  meta: DTOObjectMeta,
6787
- persistentId: z240.string(),
6793
+ persistentId: z241.string(),
6788
6794
  type: ElementPropertyTypeSchema,
6789
6795
  targetElementType: ElementPropertyTargetType,
6790
- codeName: z240.string().regex(CODE_NAME_REGEX2),
6791
- options: nullishToOptional(z240.array(DTOElementPropertyDefinitionOption)),
6796
+ codeName: z241.string().regex(CODE_NAME_REGEX2),
6797
+ options: nullishToOptional(z241.array(DTOElementPropertyDefinitionOption)),
6792
6798
  linkElementType: nullishToOptional(ElementPropertyLinkType),
6793
- isImmutable: z240.boolean(),
6799
+ isImmutable: z241.boolean(),
6794
6800
  immutablePropertyType: ElementPropertyImmutableType.optional()
6795
6801
  });
6796
- var DTOElementPropertyDefinitionListResponse = z240.object({
6797
- definitions: z240.array(DTOElementPropertyDefinition)
6802
+ var DTOElementPropertyDefinitionListResponse = z241.object({
6803
+ definitions: z241.array(DTOElementPropertyDefinition)
6798
6804
  });
6799
- var DTOElementPropertyDefinitionResponse = z240.object({
6805
+ var DTOElementPropertyDefinitionResponse = z241.object({
6800
6806
  definition: DTOElementPropertyDefinition
6801
6807
  });
6802
- var DTOElementPropertyDefinitionCreatePayload = z240.object({
6808
+ var DTOElementPropertyDefinitionCreatePayload = z241.object({
6803
6809
  meta: DTOObjectMeta,
6804
- persistentId: z240.string(),
6810
+ persistentId: z241.string(),
6805
6811
  type: ElementPropertyTypeSchema,
6806
6812
  targetElementType: ElementPropertyTargetType,
6807
- codeName: z240.string().regex(CODE_NAME_REGEX2),
6808
- options: nullishToOptional(z240.array(DTOElementPropertyDefinitionOption)),
6813
+ codeName: z241.string().regex(CODE_NAME_REGEX2),
6814
+ options: nullishToOptional(z241.array(DTOElementPropertyDefinitionOption)),
6809
6815
  linkElementType: nullishToOptional(ElementPropertyLinkType),
6810
- columnWidth: z240.number().max(1024).optional()
6816
+ columnWidth: z241.number().max(1024).optional()
6811
6817
  });
6812
- var DTOElementPropertyDefinitionUpdatePayload = z240.object({
6818
+ var DTOElementPropertyDefinitionUpdatePayload = z241.object({
6813
6819
  meta: DTOObjectMeta.optional(),
6814
- codeName: z240.string().regex(CODE_NAME_REGEX2).optional(),
6815
- options: z240.array(DTOElementPropertyDefinitionOption).optional()
6820
+ codeName: z241.string().regex(CODE_NAME_REGEX2).optional(),
6821
+ options: z241.array(DTOElementPropertyDefinitionOption).optional()
6816
6822
  });
6817
6823
 
6818
6824
  // src/api/dto/elements/properties/property-values.ts
6819
- import { z as z241 } from "zod";
6820
- var DTOElementPropertyValue = z241.object({
6821
- id: z241.string(),
6822
- designSystemVersionId: z241.string(),
6823
- definitionId: z241.string(),
6824
- targetElementId: z241.string(),
6825
- value: z241.union([z241.string(), z241.number(), z241.boolean()]).optional(),
6826
- valuePreview: z241.string().optional()
6827
- });
6828
- var DTOElementPropertyValueListResponse = z241.object({
6829
- values: z241.array(DTOElementPropertyValue)
6830
- });
6831
- var DTOElementPropertyValueResponse = z241.object({
6825
+ import { z as z242 } from "zod";
6826
+ var DTOElementPropertyValue = z242.object({
6827
+ id: z242.string(),
6828
+ designSystemVersionId: z242.string(),
6829
+ definitionId: z242.string(),
6830
+ targetElementId: z242.string(),
6831
+ value: z242.union([z242.string(), z242.number(), z242.boolean()]).optional(),
6832
+ valuePreview: z242.string().optional()
6833
+ });
6834
+ var DTOElementPropertyValueListResponse = z242.object({
6835
+ values: z242.array(DTOElementPropertyValue)
6836
+ });
6837
+ var DTOElementPropertyValueResponse = z242.object({
6832
6838
  value: DTOElementPropertyValue
6833
6839
  });
6834
- var DTOElementPropertyValueUpsertPaylod = z241.object({
6835
- definitionId: z241.string(),
6836
- targetElementId: z241.string(),
6837
- value: z241.string().or(z241.number()).or(z241.boolean())
6840
+ var DTOElementPropertyValueUpsertPaylod = z242.object({
6841
+ definitionId: z242.string(),
6842
+ targetElementId: z242.string(),
6843
+ value: z242.string().or(z242.number()).or(z242.boolean())
6838
6844
  });
6839
6845
 
6840
6846
  // src/api/dto/elements/elements-action-v2.ts
6841
- import { z as z242 } from "zod";
6842
- var DTOElementActionOutput = z242.discriminatedUnion("type", [
6847
+ import { z as z243 } from "zod";
6848
+ var DTOElementActionOutput = z243.discriminatedUnion("type", [
6843
6849
  // Documentation pages
6844
6850
  DTODocumentationPageCreateActionOutputV2,
6845
6851
  DTODocumentationPageUpdateActionOutputV2,
@@ -6862,7 +6868,7 @@ var DTOElementActionOutput = z242.discriminatedUnion("type", [
6862
6868
  // Approvals
6863
6869
  DTODocumentationPageApprovalStateChangeActionOutput
6864
6870
  ]);
6865
- var DTOElementActionInput = z242.discriminatedUnion("type", [
6871
+ var DTOElementActionInput = z243.discriminatedUnion("type", [
6866
6872
  // Documentation pages
6867
6873
  DTODocumentationPageCreateActionInputV2,
6868
6874
  DTODocumentationPageUpdateActionInputV2,
@@ -6887,80 +6893,80 @@ var DTOElementActionInput = z242.discriminatedUnion("type", [
6887
6893
  ]);
6888
6894
 
6889
6895
  // src/api/dto/elements/get-elements-v2.ts
6890
- import { z as z243 } from "zod";
6891
- var DTOElementsGetTypeFilter = z243.enum(["FigmaNode"]);
6892
- var DTOElementsGetQuerySchema = z243.object({
6893
- types: z243.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6896
+ import { z as z244 } from "zod";
6897
+ var DTOElementsGetTypeFilter = z244.enum(["FigmaNode"]);
6898
+ var DTOElementsGetQuerySchema = z244.object({
6899
+ types: z244.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
6894
6900
  });
6895
- var DTOElementsGetOutput = z243.object({
6896
- figmaNodes: z243.array(DTOFigmaNode).optional()
6901
+ var DTOElementsGetOutput = z244.object({
6902
+ figmaNodes: z244.array(DTOFigmaNode).optional()
6897
6903
  });
6898
6904
 
6899
6905
  // src/api/dto/figma-components/assets/download.ts
6900
- import { z as z244 } from "zod";
6901
- var DTOAssetRenderConfiguration = z244.object({
6902
- prefix: z244.string().optional(),
6903
- suffix: z244.string().optional(),
6904
- scale: z244.enum(["x1", "x2", "x3", "x4"]),
6905
- format: z244.enum(["png", "pdf", "svg"])
6906
- });
6907
- var DTORenderedAssetFile = z244.object({
6908
- assetId: z244.string(),
6909
- fileName: z244.string(),
6910
- sourceUrl: z244.string(),
6906
+ import { z as z245 } from "zod";
6907
+ var DTOAssetRenderConfiguration = z245.object({
6908
+ prefix: z245.string().optional(),
6909
+ suffix: z245.string().optional(),
6910
+ scale: z245.enum(["x1", "x2", "x3", "x4"]),
6911
+ format: z245.enum(["png", "pdf", "svg"])
6912
+ });
6913
+ var DTORenderedAssetFile = z245.object({
6914
+ assetId: z245.string(),
6915
+ fileName: z245.string(),
6916
+ sourceUrl: z245.string(),
6911
6917
  settings: DTOAssetRenderConfiguration,
6912
- originalName: z244.string()
6918
+ originalName: z245.string()
6913
6919
  });
6914
- var DTODownloadAssetsRequest = z244.object({
6915
- persistentIds: z244.array(z244.string().uuid()).optional(),
6920
+ var DTODownloadAssetsRequest = z245.object({
6921
+ persistentIds: z245.array(z245.string().uuid()).optional(),
6916
6922
  settings: DTOAssetRenderConfiguration.array()
6917
6923
  });
6918
- var DTODownloadAssetsResponse = z244.object({
6924
+ var DTODownloadAssetsResponse = z245.object({
6919
6925
  items: DTORenderedAssetFile.array()
6920
6926
  });
6921
6927
 
6922
6928
  // src/api/dto/liveblocks/auth-response.ts
6923
- import { z as z245 } from "zod";
6924
- var DTOLiveblocksAuthResponse = z245.object({
6925
- token: z245.string()
6929
+ import { z as z246 } from "zod";
6930
+ var DTOLiveblocksAuthResponse = z246.object({
6931
+ token: z246.string()
6926
6932
  });
6927
6933
 
6928
6934
  // src/api/dto/themes/override.ts
6929
- import { z as z246 } from "zod";
6935
+ import { z as z247 } from "zod";
6930
6936
  var DTOThemeOverride = DesignTokenTypedData.and(
6931
- z246.object({
6932
- tokenPersistentId: z246.string(),
6937
+ z247.object({
6938
+ tokenPersistentId: z247.string(),
6933
6939
  origin: ThemeOverrideOrigin.optional()
6934
6940
  })
6935
6941
  );
6936
6942
  var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
6937
- z246.object({
6938
- tokenPersistentId: z246.string()
6943
+ z247.object({
6944
+ tokenPersistentId: z247.string()
6939
6945
  })
6940
6946
  );
6941
6947
 
6942
6948
  // src/api/dto/themes/theme.ts
6943
- import { z as z247 } from "zod";
6944
- var DTOTheme = z247.object({
6945
- id: z247.string(),
6946
- persistentId: z247.string(),
6947
- designSystemVersionId: z247.string(),
6948
- brandId: z247.string(),
6949
+ import { z as z248 } from "zod";
6950
+ var DTOTheme = z248.object({
6951
+ id: z248.string(),
6952
+ persistentId: z248.string(),
6953
+ designSystemVersionId: z248.string(),
6954
+ brandId: z248.string(),
6949
6955
  meta: ObjectMeta,
6950
- codeName: z247.string(),
6956
+ codeName: z248.string(),
6951
6957
  overrides: DTOThemeOverride.array()
6952
6958
  });
6953
- var DTOThemeResponse = z247.object({
6959
+ var DTOThemeResponse = z248.object({
6954
6960
  theme: DTOTheme
6955
6961
  });
6956
- var DTOThemeListResponse = z247.object({
6962
+ var DTOThemeListResponse = z248.object({
6957
6963
  themes: DTOTheme.array()
6958
6964
  });
6959
- var DTOThemeCreatePayload = z247.object({
6965
+ var DTOThemeCreatePayload = z248.object({
6960
6966
  meta: ObjectMeta,
6961
- persistentId: z247.string(),
6962
- brandId: z247.string(),
6963
- codeName: z247.string(),
6967
+ persistentId: z248.string(),
6968
+ brandId: z248.string(),
6969
+ codeName: z248.string(),
6964
6970
  overrides: DTOThemeOverride.array()
6965
6971
  });
6966
6972
 
@@ -7051,13 +7057,13 @@ var BrandsEndpoint = class {
7051
7057
  };
7052
7058
 
7053
7059
  // src/api/endpoints/design-system/versions/components.ts
7054
- import { z as z248 } from "zod";
7060
+ import { z as z249 } from "zod";
7055
7061
  var DesignSystemComponentEndpoint = class {
7056
7062
  constructor(requestExecutor) {
7057
7063
  this.requestExecutor = requestExecutor;
7058
7064
  }
7059
7065
  async create(dsId, vId, body) {
7060
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/design-system-components`, z248.any(), {
7066
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/design-system-components`, z249.any(), {
7061
7067
  body,
7062
7068
  method: "POST"
7063
7069
  });
@@ -7098,7 +7104,7 @@ var ImportJobsEndpoint = class {
7098
7104
  };
7099
7105
 
7100
7106
  // src/api/endpoints/design-system/versions/overrides.ts
7101
- import { z as z249 } from "zod";
7107
+ import { z as z250 } from "zod";
7102
7108
  var OverridesEndpoint = class {
7103
7109
  constructor(requestExecutor) {
7104
7110
  this.requestExecutor = requestExecutor;
@@ -7106,7 +7112,7 @@ var OverridesEndpoint = class {
7106
7112
  create(dsId, versionId, themeId, body) {
7107
7113
  return this.requestExecutor.json(
7108
7114
  `/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
7109
- z249.any(),
7115
+ z250.any(),
7110
7116
  {
7111
7117
  method: "POST",
7112
7118
  body
@@ -7116,7 +7122,7 @@ var OverridesEndpoint = class {
7116
7122
  };
7117
7123
 
7118
7124
  // src/api/endpoints/design-system/versions/property-definitions.ts
7119
- import { z as z250 } from "zod";
7125
+ import { z as z251 } from "zod";
7120
7126
  var ElementPropertyDefinitionsEndpoint = class {
7121
7127
  constructor(requestExecutor) {
7122
7128
  this.requestExecutor = requestExecutor;
@@ -7144,7 +7150,7 @@ var ElementPropertyDefinitionsEndpoint = class {
7144
7150
  delete(designSystemId, versionId, defId) {
7145
7151
  return this.requestExecutor.json(
7146
7152
  `/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
7147
- z250.any(),
7153
+ z251.any(),
7148
7154
  { method: "DELETE" }
7149
7155
  );
7150
7156
  }
@@ -7183,7 +7189,7 @@ var VersionStatsEndpoint = class {
7183
7189
  };
7184
7190
 
7185
7191
  // src/api/endpoints/design-system/versions/themes.ts
7186
- import { z as z251 } from "zod";
7192
+ import { z as z252 } from "zod";
7187
7193
  var ThemesEndpoint = class {
7188
7194
  constructor(requestExecutor) {
7189
7195
  this.requestExecutor = requestExecutor;
@@ -7206,7 +7212,7 @@ var ThemesEndpoint = class {
7206
7212
  });
7207
7213
  }
7208
7214
  delete(dsId, versionId, themeId) {
7209
- return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z251.any(), {
7215
+ return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z252.any(), {
7210
7216
  method: "DELETE"
7211
7217
  });
7212
7218
  }
@@ -7273,6 +7279,28 @@ var TokensEndpoint = class {
7273
7279
  }
7274
7280
  };
7275
7281
 
7282
+ // src/api/endpoints/design-system/versions/documentation.ts
7283
+ var DocumentationEndpoint = class {
7284
+ constructor(requestExecutor) {
7285
+ this.requestExecutor = requestExecutor;
7286
+ }
7287
+ getStructure(designSystemId, versionId) {
7288
+ return this.requestExecutor.json(
7289
+ `/design-systems/${designSystemId}/versions/${versionId}/documentation/structure`,
7290
+ DTODocumentationStructure
7291
+ );
7292
+ }
7293
+ async getDocStructure(dsId, vId) {
7294
+ return await this.requestExecutor.json(
7295
+ `/design-systems/${dsId}/versions/${vId}/documentation/structure`,
7296
+ DTODocumentationStructure,
7297
+ {
7298
+ method: "GET"
7299
+ }
7300
+ );
7301
+ }
7302
+ };
7303
+
7276
7304
  // src/api/endpoints/design-system/versions/versions.ts
7277
7305
  var DesignSystemVersionsEndpoint = class {
7278
7306
  constructor(requestExecutor) {
@@ -7288,6 +7316,7 @@ var DesignSystemVersionsEndpoint = class {
7288
7316
  __publicField(this, "elementPropertyValues");
7289
7317
  __publicField(this, "elementsActions");
7290
7318
  __publicField(this, "designSystemComponents");
7319
+ __publicField(this, "documentation");
7291
7320
  this.themes = new ThemesEndpoint(requestExecutor);
7292
7321
  this.brands = new BrandsEndpoint(requestExecutor);
7293
7322
  this.tokenCollections = new TokenCollectionsEndpoint(requestExecutor);
@@ -7299,6 +7328,7 @@ var DesignSystemVersionsEndpoint = class {
7299
7328
  this.elementPropertyValues = new ElementPropertyValuesEndpoint(requestExecutor);
7300
7329
  this.elementsActions = new ElementsActionsEndpoint(requestExecutor);
7301
7330
  this.designSystemComponents = new DesignSystemComponentEndpoint(requestExecutor);
7331
+ this.documentation = new DocumentationEndpoint(requestExecutor);
7302
7332
  }
7303
7333
  list(dsId) {
7304
7334
  return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
@@ -7343,7 +7373,7 @@ var DesignSystemContactsEndpoint = class {
7343
7373
  };
7344
7374
 
7345
7375
  // src/api/endpoints/design-system/design-systems.ts
7346
- import { z as z253 } from "zod";
7376
+ import { z as z254 } from "zod";
7347
7377
 
7348
7378
  // src/api/endpoints/design-system/members.ts
7349
7379
  var DesignSystemMembersEndpoint = class {
@@ -7364,7 +7394,7 @@ var DesignSystemMembersEndpoint = class {
7364
7394
  };
7365
7395
 
7366
7396
  // src/api/endpoints/design-system/sources.ts
7367
- import { z as z252 } from "zod";
7397
+ import { z as z253 } from "zod";
7368
7398
  var DesignSystemSourcesEndpoint = class {
7369
7399
  constructor(requestExecutor) {
7370
7400
  this.requestExecutor = requestExecutor;
@@ -7373,7 +7403,7 @@ var DesignSystemSourcesEndpoint = class {
7373
7403
  return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
7374
7404
  }
7375
7405
  delete(dsId, sourceId) {
7376
- return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z252.any(), { method: "DELETE" });
7406
+ return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z253.any(), { method: "DELETE" });
7377
7407
  }
7378
7408
  };
7379
7409
 
@@ -7402,7 +7432,7 @@ var DesignSystemsEndpoint = class {
7402
7432
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
7403
7433
  }
7404
7434
  delete(dsId) {
7405
- return this.requestExecutor.json(`/design-systems/${dsId}`, z253.any(), { method: "DELETE" });
7435
+ return this.requestExecutor.json(`/design-systems/${dsId}`, z254.any(), { method: "DELETE" });
7406
7436
  }
7407
7437
  update(dsId, body) {
7408
7438
  return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
@@ -7446,7 +7476,7 @@ var WorkspaceInvitationsEndpoint = class {
7446
7476
  };
7447
7477
 
7448
7478
  // src/api/endpoints/workspaces/workspace-members.ts
7449
- import { z as z254 } from "zod";
7479
+ import { z as z255 } from "zod";
7450
7480
  var WorkspaceMembersEndpoint = class {
7451
7481
  constructor(requestExecutor) {
7452
7482
  this.requestExecutor = requestExecutor;
@@ -7463,7 +7493,7 @@ var WorkspaceMembersEndpoint = class {
7463
7493
  });
7464
7494
  }
7465
7495
  invite(workspaceId, body) {
7466
- return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z254.any(), { method: "POST", body });
7496
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z255.any(), { method: "POST", body });
7467
7497
  }
7468
7498
  delete(workspaceId, userId) {
7469
7499
  return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
@@ -7473,7 +7503,7 @@ var WorkspaceMembersEndpoint = class {
7473
7503
  };
7474
7504
 
7475
7505
  // src/api/endpoints/workspaces/workspaces.ts
7476
- import { z as z255 } from "zod";
7506
+ import { z as z256 } from "zod";
7477
7507
  var WorkspacesEndpoint = class {
7478
7508
  constructor(requestExecutor) {
7479
7509
  this.requestExecutor = requestExecutor;
@@ -7496,10 +7526,16 @@ var WorkspacesEndpoint = class {
7496
7526
  return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
7497
7527
  }
7498
7528
  delete(workspaceId) {
7499
- return this.requestExecutor.json(`/workspaces/${workspaceId}`, z255.any(), { method: "DELETE" });
7529
+ return this.requestExecutor.json(`/workspaces/${workspaceId}`, z256.any(), { method: "DELETE" });
7500
7530
  }
7501
7531
  subscription(workspaceId) {
7502
- return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z255.any(), { method: "GET" });
7532
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z256.any(), { method: "GET" });
7533
+ }
7534
+ transferOwnership(workspaceId, body) {
7535
+ return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
7536
+ method: "PUT",
7537
+ body
7538
+ });
7503
7539
  }
7504
7540
  };
7505
7541
 
@@ -7580,9 +7616,9 @@ ${bodyText}`,
7580
7616
 
7581
7617
  // src/api/transport/request-executor.ts
7582
7618
  import fetch from "node-fetch";
7583
- import { z as z256 } from "zod";
7584
- var ResponseWrapper = z256.object({
7585
- result: z256.record(z256.any())
7619
+ import { z as z257 } from "zod";
7620
+ var ResponseWrapper = z257.object({
7621
+ result: z257.record(z257.any())
7586
7622
  });
7587
7623
  var RequestExecutor = class {
7588
7624
  constructor(testServerConfig) {
@@ -7713,7 +7749,7 @@ function generateHash(input, debug = false) {
7713
7749
  }
7714
7750
 
7715
7751
  // src/yjs/design-system-content/documentation-hierarchy.ts
7716
- import { z as z257 } from "zod";
7752
+ import { z as z258 } from "zod";
7717
7753
 
7718
7754
  // src/yjs/version-room/base.ts
7719
7755
  var VersionRoomBaseYDoc = class {
@@ -8243,24 +8279,24 @@ var FrontendVersionRoomYDoc = class {
8243
8279
  };
8244
8280
 
8245
8281
  // src/yjs/design-system-content/documentation-hierarchy.ts
8246
- var DocumentationHierarchySettings = z257.object({
8247
- routingVersion: z257.string(),
8248
- isDraftFeatureAdopted: z257.boolean(),
8249
- isApprovalFeatureEnabled: z257.boolean(),
8250
- approvalRequiredForPublishing: z257.boolean()
8282
+ var DocumentationHierarchySettings = z258.object({
8283
+ routingVersion: z258.string(),
8284
+ isDraftFeatureAdopted: z258.boolean(),
8285
+ isApprovalFeatureEnabled: z258.boolean(),
8286
+ approvalRequiredForPublishing: z258.boolean()
8251
8287
  });
8252
8288
  function yjsToDocumentationHierarchy(doc) {
8253
8289
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
8254
8290
  }
8255
8291
 
8256
8292
  // src/yjs/design-system-content/item-configuration.ts
8257
- import { z as z258 } from "zod";
8258
- var DTODocumentationPageRoomHeaderData = z258.object({
8259
- title: z258.string(),
8293
+ import { z as z259 } from "zod";
8294
+ var DTODocumentationPageRoomHeaderData = z259.object({
8295
+ title: z259.string(),
8260
8296
  configuration: DTODocumentationItemConfigurationV2
8261
8297
  });
8262
- var DTODocumentationPageRoomHeaderDataUpdate = z258.object({
8263
- title: z258.string().optional(),
8298
+ var DTODocumentationPageRoomHeaderDataUpdate = z259.object({
8299
+ title: z259.string().optional(),
8264
8300
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
8265
8301
  });
8266
8302
  function itemConfigurationToYjs(yDoc, item) {
@@ -8311,7 +8347,7 @@ function yjsToItemConfiguration(yDoc) {
8311
8347
  header: rawHeader
8312
8348
  };
8313
8349
  return {
8314
- title: z258.string().parse(title),
8350
+ title: z259.string().parse(title),
8315
8351
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
8316
8352
  };
8317
8353
  }
@@ -8321,9 +8357,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
8321
8357
  var PageSectionEditorModel = PageSectionEditorModelV2;
8322
8358
 
8323
8359
  // src/yjs/docs-editor/model/page.ts
8324
- import { z as z259 } from "zod";
8325
- var DocumentationPageEditorModel = z259.object({
8326
- blocks: z259.array(DocumentationPageContentItem)
8360
+ import { z as z260 } from "zod";
8361
+ var DocumentationPageEditorModel = z260.object({
8362
+ blocks: z260.array(DocumentationPageContentItem)
8327
8363
  });
8328
8364
 
8329
8365
  // src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
@@ -11844,7 +11880,7 @@ var blocks = [
11844
11880
 
11845
11881
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
11846
11882
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
11847
- import { z as z260 } from "zod";
11883
+ import { z as z261 } from "zod";
11848
11884
  function yDocToPage(yDoc, definitions) {
11849
11885
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
11850
11886
  }
@@ -11924,7 +11960,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
11924
11960
  return null;
11925
11961
  return {
11926
11962
  id,
11927
- title: getProsemirrorAttribute(prosemirrorNode, "title", z260.string()) ?? "",
11963
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z261.string()) ?? "",
11928
11964
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
11929
11965
  };
11930
11966
  }
@@ -11959,7 +11995,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
11959
11995
  });
11960
11996
  }
11961
11997
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
11962
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z260.string());
11998
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z261.string());
11963
11999
  if (!definitionId) {
11964
12000
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
11965
12001
  return [];
@@ -12001,7 +12037,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
12001
12037
  if (!id)
12002
12038
  return null;
12003
12039
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
12004
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z260.string().optional()));
12040
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z261.string().optional()));
12005
12041
  return {
12006
12042
  id,
12007
12043
  type: "Block",
@@ -12129,10 +12165,10 @@ function parseRichTextAttribute(mark) {
12129
12165
  return null;
12130
12166
  }
12131
12167
  function parseProsemirrorLink(mark) {
12132
- const href = getProsemirrorAttribute(mark, "href", z260.string().optional());
12168
+ const href = getProsemirrorAttribute(mark, "href", z261.string().optional());
12133
12169
  if (!href)
12134
12170
  return null;
12135
- const target = getProsemirrorAttribute(mark, "target", z260.string().optional());
12171
+ const target = getProsemirrorAttribute(mark, "target", z261.string().optional());
12136
12172
  const openInNewTab = target === "_blank";
12137
12173
  if (href.startsWith("@")) {
12138
12174
  return {
@@ -12151,10 +12187,10 @@ function parseProsemirrorLink(mark) {
12151
12187
  }
12152
12188
  }
12153
12189
  function parseProsemirrorCommentHighlight(mark) {
12154
- const highlightId = getProsemirrorAttribute(mark, "highlightId", z260.string().optional());
12190
+ const highlightId = getProsemirrorAttribute(mark, "highlightId", z261.string().optional());
12155
12191
  if (!highlightId)
12156
12192
  return null;
12157
- const isResolved = getProsemirrorAttribute(mark, "resolved", z260.boolean().optional()) ?? false;
12193
+ const isResolved = getProsemirrorAttribute(mark, "resolved", z261.boolean().optional()) ?? false;
12158
12194
  return {
12159
12195
  type: "Comment",
12160
12196
  commentHighlightId: highlightId,
@@ -12166,7 +12202,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
12166
12202
  if (!id)
12167
12203
  return null;
12168
12204
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
12169
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z260.boolean().optional()) !== false;
12205
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z261.boolean().optional()) !== false;
12170
12206
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
12171
12207
  if (!tableChild) {
12172
12208
  return emptyTable(id, variantId, 0);
@@ -12213,9 +12249,9 @@ function parseAsTableCell(prosemirrorNode) {
12213
12249
  const id = getProsemirrorBlockId(prosemirrorNode);
12214
12250
  if (!id)
12215
12251
  return null;
12216
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z260.string().optional());
12252
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z261.string().optional());
12217
12253
  let columnWidth;
12218
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z260.array(z260.number()).nullish());
12254
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z261.array(z261.number()).nullish());
12219
12255
  if (columnWidthArray) {
12220
12256
  columnWidth = roundDimension(columnWidthArray[0]);
12221
12257
  }
@@ -12253,7 +12289,7 @@ function parseAsTableNode(prosemirrorNode) {
12253
12289
  value: parseRichText(prosemirrorNode.content ?? [])
12254
12290
  };
12255
12291
  case "image":
12256
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z260.string());
12292
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z261.string());
12257
12293
  if (!items)
12258
12294
  return null;
12259
12295
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -12373,7 +12409,7 @@ function definitionExpectsPlaceholderItem(definition) {
12373
12409
  );
12374
12410
  }
12375
12411
  function parseBlockItems(prosemirrorNode, definition) {
12376
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z260.string());
12412
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z261.string());
12377
12413
  if (!itemsString)
12378
12414
  return null;
12379
12415
  const itemsJson = JSON.parse(itemsString);
@@ -12385,18 +12421,18 @@ function parseBlockItems(prosemirrorNode, definition) {
12385
12421
  }
12386
12422
  function parseAppearance(prosemirrorNode) {
12387
12423
  let appearance = {};
12388
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z260.string().optional());
12424
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z261.string().optional());
12389
12425
  if (rawAppearanceString) {
12390
12426
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
12391
12427
  if (parsedAppearance.success) {
12392
12428
  appearance = parsedAppearance.data;
12393
12429
  }
12394
12430
  }
12395
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z260.number().optional());
12431
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z261.number().optional());
12396
12432
  if (columns) {
12397
12433
  appearance.numberOfColumns = columns;
12398
12434
  }
12399
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z260.string().optional());
12435
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z261.string().optional());
12400
12436
  if (backgroundColor) {
12401
12437
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
12402
12438
  if (parsedColor.success) {
@@ -12491,13 +12527,13 @@ function valueSchemaForPropertyType(type) {
12491
12527
  }
12492
12528
  }
12493
12529
  function getProsemirrorBlockId(prosemirrorNode) {
12494
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z260.string());
12530
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z261.string());
12495
12531
  if (!id)
12496
12532
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
12497
12533
  return id;
12498
12534
  }
12499
12535
  function getProsemirrorBlockVariantId(prosemirrorNode) {
12500
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z260.string()));
12536
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z261.string()));
12501
12537
  }
12502
12538
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
12503
12539
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -12788,6 +12824,7 @@ export {
12788
12824
  DTOThemeResponse,
12789
12825
  DTOTokenCollection,
12790
12826
  DTOTokenCollectionsListReponse,
12827
+ DTOTransferOwnershipPayload,
12791
12828
  DTOUpdateDocumentationGroupInput,
12792
12829
  DTOUpdateDocumentationPageInputV2,
12793
12830
  DTOUpdateUserNotificationSettingsPayload,