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