@supernova-studio/client 0.48.19 → 0.48.21

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
@@ -4709,157 +4709,164 @@ function integrationCredentialToDto(credential) {
4709
4709
  };
4710
4710
  }
4711
4711
 
4712
- // src/api/dto/design-systems/brand.ts
4712
+ // src/api/dto/aux/pagination.ts
4713
4713
  import { z as z169 } from "zod";
4714
- var DTOBrand = z169.object({
4715
- id: z169.string(),
4716
- designSystemVersionId: z169.string(),
4717
- persistentId: z169.string(),
4714
+ var DTOPagination = z169.object({
4715
+ limit: z169.string().optional(),
4716
+ offset: z169.string().optional()
4717
+ });
4718
+
4719
+ // src/api/dto/design-systems/brand.ts
4720
+ import { z as z170 } from "zod";
4721
+ var DTOBrand = z170.object({
4722
+ id: z170.string(),
4723
+ designSystemVersionId: z170.string(),
4724
+ persistentId: z170.string(),
4718
4725
  meta: ObjectMeta
4719
4726
  });
4720
- var DTOBrandGetResponse = z169.object({ brand: DTOBrand });
4721
- var DTOBrandCreateResponse = z169.object({
4727
+ var DTOBrandGetResponse = z170.object({ brand: DTOBrand });
4728
+ var DTOBrandCreateResponse = z170.object({
4722
4729
  brand: DTOBrand
4723
4730
  });
4724
- var DTOBrandsListResponse = z169.object({ brands: z169.array(DTOBrand) });
4731
+ var DTOBrandsListResponse = z170.object({ brands: z170.array(DTOBrand) });
4725
4732
 
4726
4733
  // src/api/dto/design-systems/data-source.ts
4727
- import { z as z170 } from "zod";
4728
- var DTODataSourceFigmaFileVersion = z170.object({
4729
- id: z170.string(),
4730
- created_at: z170.coerce.date(),
4731
- label: z170.string(),
4732
- description: z170.string()
4733
- });
4734
- var DTODataSourceFigmaCloud = z170.object({
4735
- fileId: z170.string(),
4734
+ import { z as z171 } from "zod";
4735
+ var DTODataSourceFigmaFileVersion = z171.object({
4736
+ id: z171.string(),
4737
+ created_at: z171.coerce.date(),
4738
+ label: z171.string(),
4739
+ description: z171.string()
4740
+ });
4741
+ var DTODataSourceFigmaCloud = z171.object({
4742
+ fileId: z171.string(),
4736
4743
  state: DataSourceFigmaState,
4737
4744
  autoImportMode: DataSourceAutoImportMode,
4738
- fileThumbnailUrl: z170.string().optional(),
4745
+ fileThumbnailUrl: z171.string().optional(),
4739
4746
  lastImportResult: SourceImportSummary.nullish(),
4740
- lastImportedAt: z170.date().nullish(),
4747
+ lastImportedAt: z171.date().nullish(),
4741
4748
  lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
4742
- lastUpdatesCheckedAt: z170.date().nullish(),
4743
- ownerId: z170.string(),
4744
- ownerUserName: z170.string().optional(),
4745
- preferredCredentialId: z170.string().optional(),
4749
+ lastUpdatesCheckedAt: z171.date().nullish(),
4750
+ ownerId: z171.string(),
4751
+ ownerUserName: z171.string().optional(),
4752
+ preferredCredentialId: z171.string().optional(),
4746
4753
  stats: DataSourceStats
4747
4754
  });
4748
- var DTODataSourceFigma = z170.object({
4749
- id: z170.string(),
4750
- type: z170.literal(DataSourceRemoteType.Enum.Figma),
4751
- fileName: z170.string(),
4755
+ var DTODataSourceFigma = z171.object({
4756
+ id: z171.string(),
4757
+ type: z171.literal(DataSourceRemoteType.Enum.Figma),
4758
+ fileName: z171.string(),
4752
4759
  scope: DataSourceFigmaScope,
4753
- brandId: z170.string(),
4754
- themeId: z170.string().nullish(),
4760
+ brandId: z171.string(),
4761
+ themeId: z171.string().nullish(),
4755
4762
  cloud: DTODataSourceFigmaCloud.nullish(),
4756
- tokenStudio: z170.literal(null),
4757
- upload: z170.literal(null),
4758
- figmaVariablesPlugin: z170.literal(null)
4759
- });
4760
- var DTODataSourceTokenStudio = z170.object({
4761
- id: z170.string(),
4762
- type: z170.literal(DataSourceRemoteType.Enum.TokenStudio),
4763
- fileName: z170.string(),
4764
- brandId: z170.string(),
4765
- themeId: z170.string().nullish(),
4766
- cloud: z170.literal(null),
4767
- tokenStudio: z170.object({
4768
- settings: z170.object({
4769
- dryRun: z170.boolean(),
4770
- verbose: z170.boolean(),
4771
- preciseCopy: z170.boolean()
4763
+ tokenStudio: z171.literal(null),
4764
+ upload: z171.literal(null),
4765
+ figmaVariablesPlugin: z171.literal(null)
4766
+ });
4767
+ var DTODataSourceTokenStudio = z171.object({
4768
+ id: z171.string(),
4769
+ type: z171.literal(DataSourceRemoteType.Enum.TokenStudio),
4770
+ fileName: z171.string(),
4771
+ brandId: z171.string(),
4772
+ themeId: z171.string().nullish(),
4773
+ cloud: z171.literal(null),
4774
+ tokenStudio: z171.object({
4775
+ settings: z171.object({
4776
+ dryRun: z171.boolean(),
4777
+ verbose: z171.boolean(),
4778
+ preciseCopy: z171.boolean()
4772
4779
  }),
4773
- connectionName: z170.string(),
4774
- lastImportedAt: z170.date(),
4775
- lastImportedResults: z170.array(
4776
- z170.object({
4777
- mapping: z170.object({
4778
- tokenSets: z170.array(z170.string()),
4779
- supernovaBrand: z170.string(),
4780
- supernovaTheme: z170.string().optional()
4780
+ connectionName: z171.string(),
4781
+ lastImportedAt: z171.date(),
4782
+ lastImportedResults: z171.array(
4783
+ z171.object({
4784
+ mapping: z171.object({
4785
+ tokenSets: z171.array(z171.string()),
4786
+ supernovaBrand: z171.string(),
4787
+ supernovaTheme: z171.string().optional()
4781
4788
  }),
4782
- isFailed: z170.boolean(),
4783
- tokensCreated: z170.number(),
4784
- tokensDeleted: z170.number(),
4785
- tokensUpdated: z170.number()
4789
+ isFailed: z171.boolean(),
4790
+ tokensCreated: z171.number(),
4791
+ tokensDeleted: z171.number(),
4792
+ tokensUpdated: z171.number()
4786
4793
  })
4787
4794
  )
4788
4795
  }),
4789
- upload: z170.literal(null),
4790
- figmaVariablesPlugin: z170.literal(null)
4791
- });
4792
- var DTODataSourceFigmaVariablesPlugin = z170.object({
4793
- id: z170.string(),
4794
- type: z170.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4795
- fileName: z170.string(),
4796
- brandId: z170.string(),
4797
- themeId: z170.literal(null),
4798
- cloud: z170.literal(null),
4799
- tokenStudio: z170.literal(null),
4800
- upload: z170.object({
4801
- remoteId: z170.string(),
4796
+ upload: z171.literal(null),
4797
+ figmaVariablesPlugin: z171.literal(null)
4798
+ });
4799
+ var DTODataSourceFigmaVariablesPlugin = z171.object({
4800
+ id: z171.string(),
4801
+ type: z171.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
4802
+ fileName: z171.string(),
4803
+ brandId: z171.string(),
4804
+ themeId: z171.literal(null),
4805
+ cloud: z171.literal(null),
4806
+ tokenStudio: z171.literal(null),
4807
+ upload: z171.object({
4808
+ remoteId: z171.string(),
4802
4809
  remoteSourceType: DataSourceUploadRemoteSource,
4803
- lastImportedAt: z170.date().optional(),
4810
+ lastImportedAt: z171.date().optional(),
4804
4811
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
4805
4812
  }),
4806
- figmaVariablesPlugin: z170.object({
4807
- fileId: z170.string(),
4808
- lastImportedAt: z170.date().optional(),
4813
+ figmaVariablesPlugin: z171.object({
4814
+ fileId: z171.string(),
4815
+ lastImportedAt: z171.date().optional(),
4809
4816
  lastImportMetadata: DataSourceUploadImportMetadata.optional()
4810
4817
  })
4811
4818
  });
4812
- var DTODataSource = z170.discriminatedUnion("type", [
4819
+ var DTODataSource = z171.discriminatedUnion("type", [
4813
4820
  DTODataSourceFigma,
4814
4821
  DTODataSourceFigmaVariablesPlugin,
4815
4822
  DTODataSourceTokenStudio
4816
4823
  ]);
4817
- var DTODataSourcesListResponse = z170.object({
4818
- sources: z170.array(DTODataSource)
4824
+ var DTODataSourcesListResponse = z171.object({
4825
+ sources: z171.array(DTODataSource)
4819
4826
  });
4820
- var DTODataSourceCreationResponse = z170.object({
4827
+ var DTODataSourceCreationResponse = z171.object({
4821
4828
  source: DTODataSource
4822
4829
  });
4823
4830
 
4824
4831
  // src/api/dto/design-systems/design-system.ts
4825
- import { z as z171 } from "zod";
4832
+ import { z as z172 } from "zod";
4826
4833
  var DTODesignSystem = DesignSystem.omit({
4827
4834
  name: true,
4828
4835
  description: true,
4829
4836
  docExporterId: true
4830
4837
  }).extend({
4831
4838
  meta: ObjectMeta,
4832
- docExporterId: z171.string(),
4833
- sources: z171.array(z171.any())
4839
+ docExporterId: z172.string(),
4840
+ sources: z172.array(z172.any())
4834
4841
  });
4835
4842
 
4836
4843
  // src/api/dto/design-systems/elements-diff.ts
4837
- import { z as z172 } from "zod";
4838
- var DTODiffCountBase = z172.object({
4839
- created: z172.number(),
4840
- updated: z172.number(),
4841
- deleted: z172.number()
4844
+ import { z as z173 } from "zod";
4845
+ var DTODiffCountBase = z173.object({
4846
+ created: z173.number(),
4847
+ updated: z173.number(),
4848
+ deleted: z173.number()
4842
4849
  });
4843
- var DTODesignElementsDataDiffResponse = z172.object({
4850
+ var DTODesignElementsDataDiffResponse = z173.object({
4844
4851
  tokens: DTODiffCountBase,
4845
4852
  assets: DTODiffCountBase
4846
4853
  });
4847
4854
 
4848
4855
  // src/api/dto/design-systems/exporter-property.ts
4849
- import { z as z173 } from "zod";
4850
- var DTOExporterProperty = z173.any({});
4851
- var DTOExporterPropertyListResponse = z173.object({ items: z173.array(DTOExporterProperty) });
4856
+ import { z as z174 } from "zod";
4857
+ var DTOExporterProperty = z174.any({});
4858
+ var DTOExporterPropertyListResponse = z174.object({ items: z174.array(DTOExporterProperty) });
4852
4859
 
4853
4860
  // src/api/dto/design-systems/version.ts
4854
- import { z as z183 } from "zod";
4861
+ import { z as z184 } from "zod";
4855
4862
 
4856
4863
  // src/api/payloads/design-systems/brand.ts
4857
- import { z as z174 } from "zod";
4858
- var DTOCreateBrandInput = z174.object({
4859
- persistentId: z174.string().uuid(),
4860
- meta: z174.object({
4861
- name: z174.string(),
4862
- description: z174.string()
4864
+ import { z as z175 } from "zod";
4865
+ var DTOCreateBrandInput = z175.object({
4866
+ persistentId: z175.string().uuid(),
4867
+ meta: z175.object({
4868
+ name: z175.string(),
4869
+ description: z175.string()
4863
4870
  })
4864
4871
  });
4865
4872
 
@@ -4867,31 +4874,31 @@ var DTOCreateBrandInput = z174.object({
4867
4874
  var DTODesignSystemUpdateInput = DesignSystemUpdateInput;
4868
4875
 
4869
4876
  // src/api/payloads/design-systems/version.ts
4870
- import { z as z175 } from "zod";
4871
- var ObjectMeta2 = z175.object({
4872
- name: z175.string().max(150).optional(),
4873
- description: z175.string().max(2e3).optional()
4877
+ import { z as z176 } from "zod";
4878
+ var ObjectMeta2 = z176.object({
4879
+ name: z176.string().max(150).optional(),
4880
+ description: z176.string().max(2e3).optional()
4874
4881
  });
4875
4882
  function validateDesignSystemVersion(version) {
4876
4883
  const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
4877
4884
  return urlCompliantRegex.test(version);
4878
4885
  }
4879
- var DTOCreateVersionInput = z175.object({
4886
+ var DTOCreateVersionInput = z176.object({
4880
4887
  meta: ObjectMeta2,
4881
- version: z175.string().refine(validateDesignSystemVersion, {
4888
+ version: z176.string().refine(validateDesignSystemVersion, {
4882
4889
  message: "Invalid semantic versioning format"
4883
4890
  }),
4884
- changeLog: z175.string().optional()
4891
+ changeLog: z176.string().optional()
4885
4892
  });
4886
- var DTOUpdateVersionInput = z175.object({
4893
+ var DTOUpdateVersionInput = z176.object({
4887
4894
  meta: ObjectMeta2,
4888
- version: z175.string(),
4895
+ version: z176.string(),
4889
4896
  // required for PUT, but not editable
4890
- changeLog: z175.string()
4897
+ changeLog: z176.string()
4891
4898
  });
4892
4899
 
4893
4900
  // src/api/payloads/documentation/block-definitions.ts
4894
- import { z as z176 } from "zod";
4901
+ import { z as z177 } from "zod";
4895
4902
 
4896
4903
  // src/api/dto/documentation/block-definition.ts
4897
4904
  var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
@@ -4903,59 +4910,59 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
4903
4910
  var DTOPageBlockDefinition = PageBlockDefinition;
4904
4911
 
4905
4912
  // src/api/payloads/documentation/block-definitions.ts
4906
- var DTOGetBlockDefinitionsOutput = z176.object({
4907
- definitions: z176.array(DTOPageBlockDefinition)
4913
+ var DTOGetBlockDefinitionsOutput = z177.object({
4914
+ definitions: z177.array(DTOPageBlockDefinition)
4908
4915
  });
4909
4916
 
4910
4917
  // src/api/payloads/documentation/design-data-doc-diff.ts
4911
- import { z as z177 } from "zod";
4912
- var DTODocumentationPublishTypeQueryParams = z177.object({
4913
- environment: z177.enum(["Live", "Preview"])
4918
+ import { z as z178 } from "zod";
4919
+ var DTODocumentationPublishTypeQueryParams = z178.object({
4920
+ environment: z178.enum(["Live", "Preview"])
4914
4921
  });
4915
4922
 
4916
4923
  // src/api/payloads/export/pipeline.ts
4917
- import { z as z178 } from "zod";
4918
- var DTOPipelineCreateBody = z178.object({
4919
- name: z178.string(),
4920
- exporterId: z178.string(),
4921
- designSystemId: z178.string(),
4922
- isEnabled: z178.boolean(),
4924
+ import { z as z179 } from "zod";
4925
+ var DTOPipelineCreateBody = z179.object({
4926
+ name: z179.string(),
4927
+ exporterId: z179.string(),
4928
+ designSystemId: z179.string(),
4929
+ isEnabled: z179.boolean(),
4923
4930
  eventType: PipelineEventType,
4924
- brandPersistentId: z178.string().optional(),
4925
- themePersistentId: z178.string().optional(),
4931
+ brandPersistentId: z179.string().optional(),
4932
+ themePersistentId: z179.string().optional(),
4926
4933
  destination: PipelineDestinationType.optional(),
4927
4934
  gitQuery: GitObjectsQuery,
4928
- destinations: z178.object({
4935
+ destinations: z179.object({
4929
4936
  s3: ExporterDestinationS3.nullish(),
4930
4937
  azure: ExporterDestinationAzure.nullish(),
4931
4938
  bitbucket: ExporterDestinationBitbucket.nullish(),
4932
4939
  github: ExporterDestinationGithub.nullish(),
4933
4940
  gitlab: ExporterDestinationGitlab.nullish(),
4934
4941
  documentation: ExporterDestinationDocs.nullish(),
4935
- webhookUrl: z178.string().nullish()
4942
+ webhookUrl: z179.string().nullish()
4936
4943
  })
4937
4944
  });
4938
4945
  var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
4939
- id: z178.string()
4946
+ id: z179.string()
4940
4947
  });
4941
- var DTOPipelineTriggerBody = z178.object({
4942
- designSystemVersionId: z178.string()
4948
+ var DTOPipelineTriggerBody = z179.object({
4949
+ designSystemVersionId: z179.string()
4943
4950
  });
4944
4951
 
4945
4952
  // src/api/payloads/liveblocks/auth.ts
4946
- import { z as z179 } from "zod";
4947
- var DTOLiveblocksAuthRequest = z179.object({
4948
- room: z179.string().optional()
4953
+ import { z as z180 } from "zod";
4954
+ var DTOLiveblocksAuthRequest = z180.object({
4955
+ room: z180.string().optional()
4949
4956
  });
4950
4957
 
4951
4958
  // src/api/payloads/users/notifications/notification-settings.ts
4952
- import { z as z180 } from "zod";
4953
- var DTOUpdateUserNotificationSettingsPayload = z180.object({
4959
+ import { z as z181 } from "zod";
4960
+ var DTOUpdateUserNotificationSettingsPayload = z181.object({
4954
4961
  notificationSettings: UserNotificationSettings
4955
4962
  });
4956
- var DTOUserNotificationSettingsResponse = z180.object({
4957
- userId: z180.string(),
4958
- workspaceId: z180.string(),
4963
+ var DTOUserNotificationSettingsResponse = z181.object({
4964
+ userId: z181.string(),
4965
+ workspaceId: z181.string(),
4959
4966
  notificationSettings: UserNotificationSettings
4960
4967
  });
4961
4968
 
@@ -4963,7 +4970,7 @@ var DTOUserNotificationSettingsResponse = z180.object({
4963
4970
  var DTOUserProfileUpdatePayload = UserProfileUpdate;
4964
4971
 
4965
4972
  // src/api/payloads/workspaces/workspace-configuration.ts
4966
- import { z as z181 } from "zod";
4973
+ import { z as z182 } from "zod";
4967
4974
  var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
4968
4975
  function validateSsoPayload(ssoPayload) {
4969
4976
  const keys = [];
@@ -4986,21 +4993,21 @@ function validateSsoPayload(ssoPayload) {
4986
4993
  keys
4987
4994
  };
4988
4995
  }
4989
- var NpmRegistryInput = z181.object({
4990
- enabledScopes: z181.array(z181.string()),
4991
- customRegistryUrl: z181.string().optional(),
4992
- bypassProxy: z181.boolean().optional(),
4993
- npmProxyRegistryConfigId: z181.string().optional(),
4994
- npmProxyVersion: z181.number().optional(),
4995
- registryType: z181.string(),
4996
- authType: z181.string(),
4997
- authHeaderName: z181.string(),
4998
- authHeaderValue: z181.string(),
4999
- accessToken: z181.string(),
5000
- username: z181.string(),
5001
- password: z181.string()
5002
- });
5003
- var WorkspaceConfigurationPayload = z181.object({
4996
+ var NpmRegistryInput = z182.object({
4997
+ enabledScopes: z182.array(z182.string()),
4998
+ customRegistryUrl: z182.string().optional(),
4999
+ bypassProxy: z182.boolean().optional(),
5000
+ npmProxyRegistryConfigId: z182.string().optional(),
5001
+ npmProxyVersion: z182.number().optional(),
5002
+ registryType: z182.string(),
5003
+ authType: z182.string(),
5004
+ authHeaderName: z182.string(),
5005
+ authHeaderValue: z182.string(),
5006
+ accessToken: z182.string(),
5007
+ username: z182.string(),
5008
+ password: z182.string()
5009
+ });
5010
+ var WorkspaceConfigurationPayload = z182.object({
5004
5011
  ipWhitelist: WorkspaceIpSettings.partial().optional(),
5005
5012
  sso: SsoProvider.partial().optional(),
5006
5013
  npmRegistrySettings: NpmRegistryInput.partial().optional(),
@@ -5008,363 +5015,363 @@ var WorkspaceConfigurationPayload = z181.object({
5008
5015
  });
5009
5016
 
5010
5017
  // src/api/payloads/workspaces/workspace-integrations.ts
5011
- import { z as z182 } from "zod";
5012
- var DTOWorkspaceIntegrationOauthInput = z182.object({
5018
+ import { z as z183 } from "zod";
5019
+ var DTOWorkspaceIntegrationOauthInput = z183.object({
5013
5020
  type: IntegrationType
5014
5021
  });
5015
- var DTOWorkspaceIntegrationPATInput = z182.object({
5016
- userId: z182.string(),
5022
+ var DTOWorkspaceIntegrationPATInput = z183.object({
5023
+ userId: z183.string(),
5017
5024
  type: IntegrationType,
5018
5025
  token: IntegrationToken
5019
5026
  });
5020
- var DTOWorkspaceIntegrationGetGitObjectsInput = z182.object({
5021
- organization: z182.string().optional(),
5027
+ var DTOWorkspaceIntegrationGetGitObjectsInput = z183.object({
5028
+ organization: z183.string().optional(),
5022
5029
  // Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
5023
- project: z182.string().optional(),
5030
+ project: z183.string().optional(),
5024
5031
  // Only for Bitbucket and Azure
5025
- repository: z182.string().optional(),
5032
+ repository: z183.string().optional(),
5026
5033
  // For all providers. Pay attention for Gitlab, they call repositories "projects".
5027
- branch: z182.string().optional(),
5034
+ branch: z183.string().optional(),
5028
5035
  // For all providers, useful for PR creations.
5029
- user: z182.string().optional()
5036
+ user: z183.string().optional()
5030
5037
  // Only for Gitlab User Repositories
5031
5038
  });
5032
5039
 
5033
5040
  // src/api/dto/design-systems/version.ts
5034
- var DTODesignSystemVersion = z183.object({
5035
- id: z183.string(),
5036
- createdAt: z183.date(),
5041
+ var DTODesignSystemVersion = z184.object({
5042
+ id: z184.string(),
5043
+ createdAt: z184.date(),
5037
5044
  meta: ObjectMeta,
5038
- version: z183.string(),
5039
- isReadonly: z183.boolean(),
5040
- changeLog: z183.string(),
5041
- designSystemId: z183.string()
5045
+ version: z184.string(),
5046
+ isReadonly: z184.boolean(),
5047
+ changeLog: z184.string(),
5048
+ designSystemId: z184.string()
5042
5049
  });
5043
- var DTODesignSystemVersionsListResponse = z183.object({
5044
- designSystemVersions: z183.array(DTODesignSystemVersion)
5050
+ var DTODesignSystemVersionsListResponse = z184.object({
5051
+ designSystemVersions: z184.array(DTODesignSystemVersion)
5045
5052
  });
5046
- var DTODesignSystemVersionGetResponse = z183.object({
5053
+ var DTODesignSystemVersionGetResponse = z184.object({
5047
5054
  designSystemVersion: DTODesignSystemVersion
5048
5055
  });
5049
- var DTODesignSystemVersionCreationResponse = z183.object({
5056
+ var DTODesignSystemVersionCreationResponse = z184.object({
5050
5057
  meta: ObjectMeta,
5051
- version: z183.string(),
5052
- changeLog: z183.string(),
5053
- isReadOnly: z183.boolean(),
5054
- designSystemId: z183.string(),
5055
- jobId: z183.string()
5056
- });
5057
- var VersionSQSPayload = z183.object({
5058
- jobId: z183.string(),
5059
- designSystemId: z183.string(),
5058
+ version: z184.string(),
5059
+ changeLog: z184.string(),
5060
+ isReadOnly: z184.boolean(),
5061
+ designSystemId: z184.string(),
5062
+ jobId: z184.string()
5063
+ });
5064
+ var VersionSQSPayload = z184.object({
5065
+ jobId: z184.string(),
5066
+ designSystemId: z184.string(),
5060
5067
  input: DTOCreateVersionInput
5061
5068
  });
5062
- var DTODesignSystemVersionJobsResponse = z183.object({
5063
- jobs: z183.array(VersionCreationJob)
5069
+ var DTODesignSystemVersionJobsResponse = z184.object({
5070
+ jobs: z184.array(VersionCreationJob)
5064
5071
  });
5065
- var DTODesignSystemVersionJobStatusResponse = z183.object({
5072
+ var DTODesignSystemVersionJobStatusResponse = z184.object({
5066
5073
  job: VersionCreationJob
5067
5074
  });
5068
5075
 
5069
5076
  // src/api/dto/design-systems/view.ts
5070
- import { z as z184 } from "zod";
5071
- var DTOElementViewColumnSharedAttributes = z184.object({
5072
- id: z184.string(),
5073
- persistentId: z184.string(),
5074
- width: z184.number()
5077
+ import { z as z185 } from "zod";
5078
+ var DTOElementViewColumnSharedAttributes = z185.object({
5079
+ id: z185.string(),
5080
+ persistentId: z185.string(),
5081
+ width: z185.number()
5075
5082
  });
5076
5083
  var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
5077
- type: z184.literal("BaseProperty"),
5084
+ type: z185.literal("BaseProperty"),
5078
5085
  basePropertyType: ElementViewBaseColumnType
5079
5086
  });
5080
5087
  var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
5081
- type: z184.literal("PropertyDefinition"),
5082
- propertyDefinitionId: z184.string()
5088
+ type: z185.literal("PropertyDefinition"),
5089
+ propertyDefinitionId: z185.string()
5083
5090
  });
5084
5091
  var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
5085
- type: z184.literal("Theme"),
5086
- themeId: z184.string()
5092
+ type: z185.literal("Theme"),
5093
+ themeId: z185.string()
5087
5094
  });
5088
- var DTOElementViewColumn = z184.discriminatedUnion("type", [
5095
+ var DTOElementViewColumn = z185.discriminatedUnion("type", [
5089
5096
  DTOElementViewBasePropertyColumn,
5090
5097
  DTOElementViewPropertyDefinitionColumn,
5091
5098
  DTOElementViewThemeColumn
5092
5099
  ]);
5093
- var DTOElementView = z184.object({
5100
+ var DTOElementView = z185.object({
5094
5101
  meta: ObjectMeta,
5095
- persistentId: z184.string(),
5102
+ persistentId: z185.string(),
5096
5103
  targetElementType: ElementPropertyTargetType,
5097
- id: z184.string(),
5098
- isDefault: z184.boolean(),
5099
- columns: z184.array(DTOElementViewColumn)
5104
+ id: z185.string(),
5105
+ isDefault: z185.boolean(),
5106
+ columns: z185.array(DTOElementViewColumn)
5100
5107
  });
5101
- var DTOElementViewsListResponse = z184.object({
5102
- elementDataViews: z184.array(DTOElementView)
5108
+ var DTOElementViewsListResponse = z185.object({
5109
+ elementDataViews: z185.array(DTOElementView)
5103
5110
  });
5104
5111
 
5105
5112
  // src/api/dto/documentation/anchor.ts
5106
- import { z as z185 } from "zod";
5113
+ import { z as z186 } from "zod";
5107
5114
  var DTODocumentationPageAnchor = DocumentationPageAnchor;
5108
- var DTOGetDocumentationPageAnchorsResponse = z185.object({
5109
- anchors: z185.array(DTODocumentationPageAnchor)
5115
+ var DTOGetDocumentationPageAnchorsResponse = z186.object({
5116
+ anchors: z186.array(DTODocumentationPageAnchor)
5110
5117
  });
5111
5118
 
5112
5119
  // src/api/dto/documentation/block.ts
5113
5120
  var DTOPageBlockItemV2 = PageBlockItemV2;
5114
5121
 
5115
5122
  // src/api/dto/documentation/documentation-page-snapshot.ts
5116
- import { z as z190 } from "zod";
5123
+ import { z as z191 } from "zod";
5117
5124
 
5118
5125
  // src/api/dto/elements/documentation/page-v2.ts
5119
- import { z as z189 } from "zod";
5126
+ import { z as z190 } from "zod";
5120
5127
 
5121
5128
  // src/api/dto/elements/documentation/draft-state.ts
5122
- import { z as z187 } from "zod";
5129
+ import { z as z188 } from "zod";
5123
5130
 
5124
5131
  // src/api/dto/elements/documentation/item-configuration-v2.ts
5125
- import { z as z186 } from "zod";
5132
+ import { z as z187 } from "zod";
5126
5133
  var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
5127
- var DTODocumentationItemConfigurationV2 = z186.object({
5128
- showSidebar: z186.boolean(),
5129
- isPrivate: z186.boolean(),
5130
- isHidden: z186.boolean(),
5134
+ var DTODocumentationItemConfigurationV2 = z187.object({
5135
+ showSidebar: z187.boolean(),
5136
+ isPrivate: z187.boolean(),
5137
+ isHidden: z187.boolean(),
5131
5138
  header: DTODocumentationItemHeaderV2
5132
5139
  });
5133
5140
 
5134
5141
  // src/api/dto/elements/documentation/draft-state.ts
5135
- var DTODocumentationDraftChangeType = z187.enum(["Created", "Updated", "Deleted"]);
5136
- var DTODocumentationDraftStateCreated = z187.object({
5137
- changeType: z187.literal(DTODocumentationDraftChangeType.enum.Created)
5138
- });
5139
- var DTODocumentationDraftStateUpdated = z187.object({
5140
- changeType: z187.literal(DTODocumentationDraftChangeType.enum.Updated),
5141
- changes: z187.object({
5142
- previousTitle: z187.string().optional(),
5142
+ var DTODocumentationDraftChangeType = z188.enum(["Created", "Updated", "Deleted"]);
5143
+ var DTODocumentationDraftStateCreated = z188.object({
5144
+ changeType: z188.literal(DTODocumentationDraftChangeType.enum.Created)
5145
+ });
5146
+ var DTODocumentationDraftStateUpdated = z188.object({
5147
+ changeType: z188.literal(DTODocumentationDraftChangeType.enum.Updated),
5148
+ changes: z188.object({
5149
+ previousTitle: z188.string().optional(),
5143
5150
  previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
5144
- previousContentHash: z187.string().optional()
5151
+ previousContentHash: z188.string().optional()
5145
5152
  })
5146
5153
  });
5147
- var DTODocumentationDraftStateDeleted = z187.object({
5148
- changeType: z187.literal(DTODocumentationDraftChangeType.enum.Deleted),
5149
- deletedAt: z187.coerce.date(),
5150
- deletedByUserId: z187.string()
5154
+ var DTODocumentationDraftStateDeleted = z188.object({
5155
+ changeType: z188.literal(DTODocumentationDraftChangeType.enum.Deleted),
5156
+ deletedAt: z188.coerce.date(),
5157
+ deletedByUserId: z188.string()
5151
5158
  });
5152
- var DTODocumentationDraftState = z187.discriminatedUnion("changeType", [
5159
+ var DTODocumentationDraftState = z188.discriminatedUnion("changeType", [
5153
5160
  DTODocumentationDraftStateCreated,
5154
5161
  DTODocumentationDraftStateUpdated,
5155
5162
  DTODocumentationDraftStateDeleted
5156
5163
  ]);
5157
5164
 
5158
5165
  // src/api/dto/elements/documentation/metadata.ts
5159
- import { z as z188 } from "zod";
5160
- var DTODocumentationPublishMetadata = z188.object({
5161
- lastPublishedByUserId: z188.string(),
5162
- lastPublishedAt: z188.coerce.date()
5166
+ import { z as z189 } from "zod";
5167
+ var DTODocumentationPublishMetadata = z189.object({
5168
+ lastPublishedByUserId: z189.string(),
5169
+ lastPublishedAt: z189.coerce.date()
5163
5170
  });
5164
5171
 
5165
5172
  // src/api/dto/elements/documentation/page-v2.ts
5166
- var DTODocumentationPageV2 = z189.object({
5167
- id: z189.string(),
5168
- persistentId: z189.string(),
5169
- designSystemVersionId: z189.string(),
5170
- title: z189.string(),
5173
+ var DTODocumentationPageV2 = z190.object({
5174
+ id: z190.string(),
5175
+ persistentId: z190.string(),
5176
+ designSystemVersionId: z190.string(),
5177
+ title: z190.string(),
5171
5178
  configuration: DTODocumentationItemConfigurationV2,
5172
- shortPersistentId: z189.string(),
5173
- slug: z189.string().optional(),
5174
- userSlug: z189.string().optional(),
5175
- createdAt: z189.coerce.date(),
5176
- updatedAt: z189.coerce.date(),
5177
- path: z189.string(),
5179
+ shortPersistentId: z190.string(),
5180
+ slug: z190.string().optional(),
5181
+ userSlug: z190.string().optional(),
5182
+ createdAt: z190.coerce.date(),
5183
+ updatedAt: z190.coerce.date(),
5184
+ path: z190.string(),
5178
5185
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5179
5186
  draftState: DTODocumentationDraftState.optional(),
5180
5187
  /** Defined if a page was published at least once and contains metadata about last publish */
5181
5188
  publishMetadata: DTODocumentationPublishMetadata.optional(),
5182
5189
  // Backward compatibility
5183
- type: z189.literal("Page")
5190
+ type: z190.literal("Page")
5184
5191
  });
5185
- var DTOCreateDocumentationPageInputV2 = z189.object({
5192
+ var DTOCreateDocumentationPageInputV2 = z190.object({
5186
5193
  // Identifier
5187
- persistentId: z189.string().uuid(),
5194
+ persistentId: z190.string().uuid(),
5188
5195
  // Page properties
5189
- title: z189.string(),
5196
+ title: z190.string(),
5190
5197
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5191
5198
  // Page placement properties
5192
- parentPersistentId: z189.string().uuid(),
5193
- afterPersistentId: z189.string().uuid().nullish()
5199
+ parentPersistentId: z190.string().uuid(),
5200
+ afterPersistentId: z190.string().uuid().nullish()
5194
5201
  });
5195
- var DTOUpdateDocumentationPageInputV2 = z189.object({
5202
+ var DTOUpdateDocumentationPageInputV2 = z190.object({
5196
5203
  // Identifier of the group to update
5197
- id: z189.string(),
5204
+ id: z190.string(),
5198
5205
  // Page properties
5199
- title: z189.string().optional(),
5206
+ title: z190.string().optional(),
5200
5207
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5201
5208
  });
5202
- var DTOMoveDocumentationPageInputV2 = z189.object({
5209
+ var DTOMoveDocumentationPageInputV2 = z190.object({
5203
5210
  // Identifier of the group to update
5204
- id: z189.string(),
5211
+ id: z190.string(),
5205
5212
  // Page placement properties
5206
- parentPersistentId: z189.string().uuid(),
5207
- afterPersistentId: z189.string().uuid().nullish()
5213
+ parentPersistentId: z190.string().uuid(),
5214
+ afterPersistentId: z190.string().uuid().nullish()
5208
5215
  });
5209
- var DTODuplicateDocumentationPageInputV2 = z189.object({
5216
+ var DTODuplicateDocumentationPageInputV2 = z190.object({
5210
5217
  // Identifier of the page to duplicate from
5211
- id: z189.string(),
5218
+ id: z190.string(),
5212
5219
  // New page persistent id
5213
- persistentId: z189.string().uuid(),
5220
+ persistentId: z190.string().uuid(),
5214
5221
  // Page placement properties
5215
- parentPersistentId: z189.string().uuid(),
5216
- afterPersistentId: z189.string().uuid().nullish()
5222
+ parentPersistentId: z190.string().uuid(),
5223
+ afterPersistentId: z190.string().uuid().nullish()
5217
5224
  });
5218
- var DTODeleteDocumentationPageInputV2 = z189.object({
5225
+ var DTODeleteDocumentationPageInputV2 = z190.object({
5219
5226
  // Identifier
5220
- id: z189.string()
5227
+ id: z190.string()
5221
5228
  });
5222
- var DTORestoreDocumentationPageInput = z189.object({
5223
- persistentId: z189.string(),
5224
- snapshotId: z189.string().optional()
5229
+ var DTORestoreDocumentationPageInput = z190.object({
5230
+ persistentId: z190.string(),
5231
+ snapshotId: z190.string().optional()
5225
5232
  });
5226
- var DTORestoreDocumentationGroupInput = z189.object({
5227
- persistentId: z189.string(),
5228
- snapshotId: z189.string().optional()
5233
+ var DTORestoreDocumentationGroupInput = z190.object({
5234
+ persistentId: z190.string(),
5235
+ snapshotId: z190.string().optional()
5229
5236
  });
5230
5237
 
5231
5238
  // src/api/dto/documentation/documentation-page-snapshot.ts
5232
- var DTODocumentationPageSnapshot = z190.object({
5233
- id: z190.string(),
5234
- designSystemVersionId: z190.string(),
5235
- createdAt: z190.string(),
5236
- updatedAt: z190.string(),
5239
+ var DTODocumentationPageSnapshot = z191.object({
5240
+ id: z191.string(),
5241
+ designSystemVersionId: z191.string(),
5242
+ createdAt: z191.string(),
5243
+ updatedAt: z191.string(),
5237
5244
  documentationPage: DTODocumentationPageV2,
5238
- pageContentHash: z190.string(),
5245
+ pageContentHash: z191.string(),
5239
5246
  reason: DesignElementSnapshotReason
5240
5247
  });
5241
5248
 
5242
5249
  // src/api/dto/documentation/link-preview.ts
5243
- import { z as z191 } from "zod";
5244
- var DTODocumentationLinkPreviewResponse = z191.object({
5250
+ import { z as z192 } from "zod";
5251
+ var DTODocumentationLinkPreviewResponse = z192.object({
5245
5252
  linkPreview: DocumentationLinkPreview
5246
5253
  });
5247
- var DTODocumentationLinkPreviewRequest = z191.object({
5248
- url: z191.string().optional(),
5249
- documentationItemPersistentId: z191.string().optional()
5254
+ var DTODocumentationLinkPreviewRequest = z192.object({
5255
+ url: z192.string().optional(),
5256
+ documentationItemPersistentId: z192.string().optional()
5250
5257
  });
5251
5258
 
5252
5259
  // src/api/dto/documentation/publish.ts
5253
- import { z as z195 } from "zod";
5260
+ import { z as z196 } from "zod";
5254
5261
 
5255
5262
  // src/api/dto/export/exporter.ts
5256
- import { z as z192 } from "zod";
5257
- var DTOExporterType = z192.enum(["documentation", "code"]);
5258
- var DTOExporterSource = z192.enum(["git", "upload"]);
5259
- var DTOExporterMembershipRole = z192.enum(["Owner", "OwnerArchived", "User"]);
5260
- var DTOExporter = z192.object({
5261
- id: z192.string(),
5262
- name: z192.string(),
5263
- isPrivate: z192.boolean(),
5263
+ import { z as z193 } from "zod";
5264
+ var DTOExporterType = z193.enum(["documentation", "code"]);
5265
+ var DTOExporterSource = z193.enum(["git", "upload"]);
5266
+ var DTOExporterMembershipRole = z193.enum(["Owner", "OwnerArchived", "User"]);
5267
+ var DTOExporter = z193.object({
5268
+ id: z193.string(),
5269
+ name: z193.string(),
5270
+ isPrivate: z193.boolean(),
5264
5271
  exporterType: DTOExporterType,
5265
- isDefaultDocumentationExporter: z192.boolean(),
5266
- iconURL: z192.string().optional(),
5272
+ isDefaultDocumentationExporter: z193.boolean(),
5273
+ iconURL: z193.string().optional(),
5267
5274
  configurationProperties: PulsarContributionConfigurationProperty.array(),
5268
5275
  customBlocks: PulsarCustomBlock.array(),
5269
- blockVariants: z192.record(z192.string(), PulsarContributionVariant.array()),
5270
- usesBrands: z192.boolean(),
5271
- usesThemes: z192.boolean(),
5276
+ blockVariants: z193.record(z193.string(), PulsarContributionVariant.array()),
5277
+ usesBrands: z193.boolean(),
5278
+ usesThemes: z193.boolean(),
5272
5279
  source: DTOExporterSource,
5273
- gitUrl: z192.string().optional(),
5274
- gitBranch: z192.string().optional(),
5275
- gitDirectory: z192.string().optional()
5280
+ gitUrl: z193.string().optional(),
5281
+ gitBranch: z193.string().optional(),
5282
+ gitDirectory: z193.string().optional()
5276
5283
  });
5277
- var DTOExporterMembership = z192.object({
5278
- workspaceId: z192.string(),
5279
- exporterId: z192.string(),
5284
+ var DTOExporterMembership = z193.object({
5285
+ workspaceId: z193.string(),
5286
+ exporterId: z193.string(),
5280
5287
  role: DTOExporterMembershipRole
5281
5288
  });
5282
- var DTOExporterCreateOutput = z192.object({
5289
+ var DTOExporterCreateOutput = z193.object({
5283
5290
  exporter: DTOExporter,
5284
5291
  membership: DTOExporterMembership
5285
5292
  });
5286
- var DTOExporterGitProviderEnum = z192.enum(["github", "gitlab", "bitbucket", "azure"]);
5287
- var DTOExporterCreateInput = z192.object({
5288
- url: z192.string(),
5293
+ var DTOExporterGitProviderEnum = z193.enum(["github", "gitlab", "bitbucket", "azure"]);
5294
+ var DTOExporterCreateInput = z193.object({
5295
+ url: z193.string(),
5289
5296
  provider: DTOExporterGitProviderEnum
5290
5297
  });
5291
- var DTOExporterUpdateInput = z192.object({
5292
- url: z192.string().optional()
5298
+ var DTOExporterUpdateInput = z193.object({
5299
+ url: z193.string().optional()
5293
5300
  });
5294
5301
 
5295
5302
  // src/api/dto/export/filter.ts
5296
5303
  var DTOExportJobsListFilter = ExportJobFindByFilter;
5297
5304
 
5298
5305
  // src/api/dto/export/job.ts
5299
- import { z as z193 } from "zod";
5300
- var DTOExportJobCreatedBy = z193.object({
5301
- userId: z193.string(),
5302
- userName: z193.string()
5306
+ import { z as z194 } from "zod";
5307
+ var DTOExportJobCreatedBy = z194.object({
5308
+ userId: z194.string(),
5309
+ userName: z194.string()
5303
5310
  });
5304
- var DTOExportJobDesignSystemPreview = z193.object({
5305
- id: z193.string(),
5311
+ var DTOExportJobDesignSystemPreview = z194.object({
5312
+ id: z194.string(),
5306
5313
  meta: ObjectMeta
5307
5314
  });
5308
- var DTOExportJobDesignSystemVersionPreview = z193.object({
5309
- id: z193.string(),
5315
+ var DTOExportJobDesignSystemVersionPreview = z194.object({
5316
+ id: z194.string(),
5310
5317
  meta: ObjectMeta,
5311
- version: z193.string(),
5312
- isReadonly: z193.boolean()
5318
+ version: z194.string(),
5319
+ isReadonly: z194.boolean()
5313
5320
  });
5314
- var DTOExportJobDestinations = z193.object({
5321
+ var DTOExportJobDestinations = z194.object({
5315
5322
  s3: ExporterDestinationS3.optional(),
5316
5323
  azure: ExporterDestinationAzure.optional(),
5317
5324
  bitbucket: ExporterDestinationBitbucket.optional(),
5318
5325
  github: ExporterDestinationGithub.optional(),
5319
5326
  gitlab: ExporterDestinationGitlab.optional(),
5320
5327
  documentation: ExporterDestinationDocs.optional(),
5321
- webhookUrl: z193.string().optional()
5328
+ webhookUrl: z194.string().optional()
5322
5329
  });
5323
5330
  var DTOExportJobResult = ExportJobResult.omit({
5324
5331
  sndocs: true
5325
5332
  }).extend({
5326
5333
  documentation: ExportJobDocsDestinationResult.optional()
5327
5334
  });
5328
- var DTOExportJob = z193.object({
5329
- id: z193.string(),
5330
- createdAt: z193.coerce.date(),
5331
- finishedAt: z193.coerce.date().optional(),
5332
- index: z193.number().optional(),
5335
+ var DTOExportJob = z194.object({
5336
+ id: z194.string(),
5337
+ createdAt: z194.coerce.date(),
5338
+ finishedAt: z194.coerce.date().optional(),
5339
+ index: z194.number().optional(),
5333
5340
  status: ExportJobStatus,
5334
- estimatedExecutionTime: z193.number().optional(),
5341
+ estimatedExecutionTime: z194.number().optional(),
5335
5342
  createdBy: DTOExportJobCreatedBy.optional(),
5336
5343
  designSystem: DTOExportJobDesignSystemPreview,
5337
5344
  designSystemVersion: DTOExportJobDesignSystemVersionPreview,
5338
5345
  destinations: DTOExportJobDestinations,
5339
- exporterId: z193.string(),
5340
- scheduleId: z193.string().optional(),
5346
+ exporterId: z194.string(),
5347
+ scheduleId: z194.string().optional(),
5341
5348
  result: DTOExportJobResult.optional(),
5342
- brandPersistentId: z193.string().optional(),
5343
- themePersistentId: z193.string().optional()
5349
+ brandPersistentId: z194.string().optional(),
5350
+ themePersistentId: z194.string().optional()
5344
5351
  });
5345
- var DTOExportJobResponse = z193.object({
5352
+ var DTOExportJobResponse = z194.object({
5346
5353
  job: DTOExportJob
5347
5354
  });
5348
5355
 
5349
5356
  // src/api/dto/export/pipeline.ts
5350
- import { z as z194 } from "zod";
5351
- var DTOPipeline = z194.object({
5352
- id: z194.string(),
5353
- name: z194.string(),
5357
+ import { z as z195 } from "zod";
5358
+ var DTOPipeline = z195.object({
5359
+ id: z195.string(),
5360
+ name: z195.string(),
5354
5361
  eventType: PipelineEventType,
5355
- isEnabled: z194.boolean(),
5356
- workspaceId: z194.string(),
5357
- designSystemId: z194.string(),
5358
- exporterId: z194.string(),
5359
- brandPersistentId: z194.string().optional(),
5360
- themePersistentId: z194.string().optional(),
5362
+ isEnabled: z195.boolean(),
5363
+ workspaceId: z195.string(),
5364
+ designSystemId: z195.string(),
5365
+ exporterId: z195.string(),
5366
+ brandPersistentId: z195.string().optional(),
5367
+ themePersistentId: z195.string().optional(),
5361
5368
  ...ExportDestinationsMap.shape,
5362
5369
  latestJobs: DTOExportJob.array()
5363
5370
  });
5364
5371
 
5365
5372
  // src/api/dto/documentation/publish.ts
5366
5373
  var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
5367
- var DTOPublishDocumentationRequest = z195.object({
5374
+ var DTOPublishDocumentationRequest = z196.object({
5368
5375
  environment: PublishedDocEnvironment,
5369
5376
  /**
5370
5377
  * If defined, this allows narrowing down what is published to a set of specific pages and groups
@@ -5372,15 +5379,15 @@ var DTOPublishDocumentationRequest = z195.object({
5372
5379
  */
5373
5380
  changes: DTOPublishDocumentationChanges.optional()
5374
5381
  });
5375
- var DTOPublishDocumentationResponse = z195.object({
5382
+ var DTOPublishDocumentationResponse = z196.object({
5376
5383
  job: DTOExportJob
5377
5384
  });
5378
5385
 
5379
5386
  // src/api/dto/elements/documentation/group-action.ts
5380
- import { z as z197 } from "zod";
5387
+ import { z as z198 } from "zod";
5381
5388
 
5382
5389
  // src/api/dto/elements/documentation/group-v2.ts
5383
- import { z as z196 } from "zod";
5390
+ import { z as z197 } from "zod";
5384
5391
  var DTODocumentationGroupV2 = ElementGroup.omit({
5385
5392
  sortOrder: true,
5386
5393
  parentPersistentId: true,
@@ -5390,139 +5397,139 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
5390
5397
  data: true,
5391
5398
  shortPersistentId: true
5392
5399
  }).extend({
5393
- title: z196.string(),
5394
- isRoot: z196.boolean(),
5395
- childrenIds: z196.array(z196.string()),
5400
+ title: z197.string(),
5401
+ isRoot: z197.boolean(),
5402
+ childrenIds: z197.array(z197.string()),
5396
5403
  groupBehavior: DocumentationGroupBehavior,
5397
- shortPersistentId: z196.string(),
5404
+ shortPersistentId: z197.string(),
5398
5405
  configuration: DTODocumentationItemConfigurationV2,
5399
- type: z196.literal("Group"),
5406
+ type: z197.literal("Group"),
5400
5407
  /** Defined when a group has changed since last publish and can be included into a partial publish */
5401
5408
  draftState: DTODocumentationDraftState.optional(),
5402
5409
  /** Defined if a group was published at least once and contains metadata about last publish */
5403
5410
  publishMetadata: DTODocumentationPublishMetadata.optional()
5404
5411
  });
5405
- var DTOCreateDocumentationGroupInput = z196.object({
5412
+ var DTOCreateDocumentationGroupInput = z197.object({
5406
5413
  // Identifier
5407
- persistentId: z196.string().uuid(),
5414
+ persistentId: z197.string().uuid(),
5408
5415
  // Group properties
5409
- title: z196.string(),
5416
+ title: z197.string(),
5410
5417
  configuration: DTODocumentationItemConfigurationV2.partial().optional(),
5411
5418
  // Group placement properties
5412
- afterPersistentId: z196.string().uuid().nullish(),
5413
- parentPersistentId: z196.string().uuid()
5419
+ afterPersistentId: z197.string().uuid().nullish(),
5420
+ parentPersistentId: z197.string().uuid()
5414
5421
  });
5415
- var DTOUpdateDocumentationGroupInput = z196.object({
5422
+ var DTOUpdateDocumentationGroupInput = z197.object({
5416
5423
  // Identifier of the group to update
5417
- id: z196.string(),
5424
+ id: z197.string(),
5418
5425
  // Group properties
5419
- title: z196.string().optional(),
5426
+ title: z197.string().optional(),
5420
5427
  configuration: DTODocumentationItemConfigurationV2.partial().optional()
5421
5428
  });
5422
- var DTOMoveDocumentationGroupInput = z196.object({
5429
+ var DTOMoveDocumentationGroupInput = z197.object({
5423
5430
  // Identifier of the group to update
5424
- id: z196.string(),
5431
+ id: z197.string(),
5425
5432
  // Group placement properties
5426
- parentPersistentId: z196.string().uuid(),
5427
- afterPersistentId: z196.string().uuid().nullish()
5433
+ parentPersistentId: z197.string().uuid(),
5434
+ afterPersistentId: z197.string().uuid().nullish()
5428
5435
  });
5429
- var DTODuplicateDocumentationGroupInput = z196.object({
5436
+ var DTODuplicateDocumentationGroupInput = z197.object({
5430
5437
  // Identifier of the group to duplicate from
5431
- id: z196.string(),
5438
+ id: z197.string(),
5432
5439
  // New group persistent id
5433
- persistentId: z196.string().uuid(),
5440
+ persistentId: z197.string().uuid(),
5434
5441
  // Group placement properties
5435
- afterPersistentId: z196.string().uuid().nullish(),
5436
- parentPersistentId: z196.string().uuid()
5442
+ afterPersistentId: z197.string().uuid().nullish(),
5443
+ parentPersistentId: z197.string().uuid()
5437
5444
  });
5438
- var DTOCreateDocumentationTabInput = z196.object({
5445
+ var DTOCreateDocumentationTabInput = z197.object({
5439
5446
  // New group persistent id
5440
- persistentId: z196.string().uuid(),
5447
+ persistentId: z197.string().uuid(),
5441
5448
  // If this is page, we will attempt to convert it to tab
5442
5449
  // If this is tab group, we will add a new tab to it
5443
- fromItemPersistentId: z196.string(),
5444
- tabName: z196.string()
5450
+ fromItemPersistentId: z197.string(),
5451
+ tabName: z197.string()
5445
5452
  });
5446
- var DTODeleteDocumentationTabGroupInput = z196.object({
5453
+ var DTODeleteDocumentationTabGroupInput = z197.object({
5447
5454
  // Deleted group id
5448
- id: z196.string()
5455
+ id: z197.string()
5449
5456
  });
5450
- var DTODeleteDocumentationGroupInput = z196.object({
5457
+ var DTODeleteDocumentationGroupInput = z197.object({
5451
5458
  // Identifier
5452
- id: z196.string(),
5459
+ id: z197.string(),
5453
5460
  // Deletion options
5454
- deleteSubtree: z196.boolean().default(false)
5461
+ deleteSubtree: z197.boolean().default(false)
5455
5462
  });
5456
5463
 
5457
5464
  // src/api/dto/elements/documentation/group-action.ts
5458
- var SuccessPayload = z197.object({
5459
- success: z197.literal(true)
5465
+ var SuccessPayload = z198.object({
5466
+ success: z198.literal(true)
5460
5467
  });
5461
- var DTODocumentationGroupCreateActionOutputV2 = z197.object({
5462
- type: z197.literal("DocumentationGroupCreate"),
5468
+ var DTODocumentationGroupCreateActionOutputV2 = z198.object({
5469
+ type: z198.literal("DocumentationGroupCreate"),
5463
5470
  output: SuccessPayload
5464
5471
  });
5465
- var DTODocumentationTabCreateActionOutputV2 = z197.object({
5466
- type: z197.literal("DocumentationTabCreate"),
5472
+ var DTODocumentationTabCreateActionOutputV2 = z198.object({
5473
+ type: z198.literal("DocumentationTabCreate"),
5467
5474
  output: SuccessPayload
5468
5475
  });
5469
- var DTODocumentationGroupUpdateActionOutputV2 = z197.object({
5470
- type: z197.literal("DocumentationGroupUpdate"),
5476
+ var DTODocumentationGroupUpdateActionOutputV2 = z198.object({
5477
+ type: z198.literal("DocumentationGroupUpdate"),
5471
5478
  output: SuccessPayload
5472
5479
  });
5473
- var DTODocumentationGroupMoveActionOutputV2 = z197.object({
5474
- type: z197.literal("DocumentationGroupMove"),
5480
+ var DTODocumentationGroupMoveActionOutputV2 = z198.object({
5481
+ type: z198.literal("DocumentationGroupMove"),
5475
5482
  output: SuccessPayload
5476
5483
  });
5477
- var DTODocumentationGroupDuplicateActionOutputV2 = z197.object({
5478
- type: z197.literal("DocumentationGroupDuplicate"),
5484
+ var DTODocumentationGroupDuplicateActionOutputV2 = z198.object({
5485
+ type: z198.literal("DocumentationGroupDuplicate"),
5479
5486
  output: SuccessPayload
5480
5487
  });
5481
- var DTODocumentationGroupDeleteActionOutputV2 = z197.object({
5482
- type: z197.literal("DocumentationGroupDelete"),
5488
+ var DTODocumentationGroupDeleteActionOutputV2 = z198.object({
5489
+ type: z198.literal("DocumentationGroupDelete"),
5483
5490
  output: SuccessPayload
5484
5491
  });
5485
- var DTODocumentationTabGroupDeleteActionOutputV2 = z197.object({
5486
- type: z197.literal("DocumentationTabGroupDelete"),
5492
+ var DTODocumentationTabGroupDeleteActionOutputV2 = z198.object({
5493
+ type: z198.literal("DocumentationTabGroupDelete"),
5487
5494
  output: SuccessPayload
5488
5495
  });
5489
- var DTODocumentationGroupCreateActionInputV2 = z197.object({
5490
- type: z197.literal("DocumentationGroupCreate"),
5496
+ var DTODocumentationGroupCreateActionInputV2 = z198.object({
5497
+ type: z198.literal("DocumentationGroupCreate"),
5491
5498
  input: DTOCreateDocumentationGroupInput
5492
5499
  });
5493
- var DTODocumentationTabCreateActionInputV2 = z197.object({
5494
- type: z197.literal("DocumentationTabCreate"),
5500
+ var DTODocumentationTabCreateActionInputV2 = z198.object({
5501
+ type: z198.literal("DocumentationTabCreate"),
5495
5502
  input: DTOCreateDocumentationTabInput
5496
5503
  });
5497
- var DTODocumentationGroupUpdateActionInputV2 = z197.object({
5498
- type: z197.literal("DocumentationGroupUpdate"),
5504
+ var DTODocumentationGroupUpdateActionInputV2 = z198.object({
5505
+ type: z198.literal("DocumentationGroupUpdate"),
5499
5506
  input: DTOUpdateDocumentationGroupInput
5500
5507
  });
5501
- var DTODocumentationGroupMoveActionInputV2 = z197.object({
5502
- type: z197.literal("DocumentationGroupMove"),
5508
+ var DTODocumentationGroupMoveActionInputV2 = z198.object({
5509
+ type: z198.literal("DocumentationGroupMove"),
5503
5510
  input: DTOMoveDocumentationGroupInput
5504
5511
  });
5505
- var DTODocumentationGroupDuplicateActionInputV2 = z197.object({
5506
- type: z197.literal("DocumentationGroupDuplicate"),
5512
+ var DTODocumentationGroupDuplicateActionInputV2 = z198.object({
5513
+ type: z198.literal("DocumentationGroupDuplicate"),
5507
5514
  input: DTODuplicateDocumentationGroupInput
5508
5515
  });
5509
- var DTODocumentationGroupDeleteActionInputV2 = z197.object({
5510
- type: z197.literal("DocumentationGroupDelete"),
5516
+ var DTODocumentationGroupDeleteActionInputV2 = z198.object({
5517
+ type: z198.literal("DocumentationGroupDelete"),
5511
5518
  input: DTODeleteDocumentationGroupInput
5512
5519
  });
5513
- var DTODocumentationTabGroupDeleteActionInputV2 = z197.object({
5514
- type: z197.literal("DocumentationTabGroupDelete"),
5520
+ var DTODocumentationTabGroupDeleteActionInputV2 = z198.object({
5521
+ type: z198.literal("DocumentationTabGroupDelete"),
5515
5522
  input: DTODeleteDocumentationTabGroupInput
5516
5523
  });
5517
5524
 
5518
5525
  // src/api/dto/elements/documentation/group-v1.ts
5519
- import { z as z199 } from "zod";
5526
+ import { z as z200 } from "zod";
5520
5527
 
5521
5528
  // src/api/dto/elements/documentation/item-configuration-v1.ts
5522
- import { z as z198 } from "zod";
5523
- var DocumentationColorV1 = z198.object({
5524
- aliasTo: z198.string().optional(),
5525
- value: z198.string().optional()
5529
+ import { z as z199 } from "zod";
5530
+ var DocumentationColorV1 = z199.object({
5531
+ aliasTo: z199.string().optional(),
5532
+ value: z199.string().optional()
5526
5533
  });
5527
5534
  var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5528
5535
  foregroundColor: true,
@@ -5531,10 +5538,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
5531
5538
  foregroundColor: DocumentationColorV1.optional(),
5532
5539
  backgroundColor: DocumentationColorV1.optional()
5533
5540
  });
5534
- var DTODocumentationItemConfigurationV1 = z198.object({
5535
- showSidebar: z198.boolean(),
5536
- isPrivate: z198.boolean(),
5537
- isHidden: z198.boolean(),
5541
+ var DTODocumentationItemConfigurationV1 = z199.object({
5542
+ showSidebar: z199.boolean(),
5543
+ isPrivate: z199.boolean(),
5544
+ isHidden: z199.boolean(),
5538
5545
  header: DTODocumentationItemHeaderV1
5539
5546
  });
5540
5547
 
@@ -5548,27 +5555,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
5548
5555
  data: true,
5549
5556
  shortPersistentId: true
5550
5557
  }).extend({
5551
- title: z199.string(),
5552
- isRoot: z199.boolean(),
5553
- childrenIds: z199.array(z199.string()),
5558
+ title: z200.string(),
5559
+ isRoot: z200.boolean(),
5560
+ childrenIds: z200.array(z200.string()),
5554
5561
  groupBehavior: DocumentationGroupBehavior,
5555
- shortPersistentId: z199.string(),
5556
- type: z199.literal("Group")
5562
+ shortPersistentId: z200.string(),
5563
+ type: z200.literal("Group")
5557
5564
  });
5558
5565
  var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
5559
5566
  configuration: DTODocumentationItemConfigurationV1
5560
5567
  });
5561
5568
 
5562
5569
  // src/api/dto/elements/documentation/hierarchy.ts
5563
- import { z as z200 } from "zod";
5564
- var DTODocumentationHierarchyV2 = z200.object({
5565
- pages: z200.array(
5570
+ import { z as z201 } from "zod";
5571
+ var DTODocumentationHierarchyV2 = z201.object({
5572
+ pages: z201.array(
5566
5573
  DTODocumentationPageV2.extend({
5567
5574
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5568
5575
  draftState: DTODocumentationDraftState.optional()
5569
5576
  })
5570
5577
  ),
5571
- groups: z200.array(
5578
+ groups: z201.array(
5572
5579
  DTODocumentationGroupV2.extend({
5573
5580
  /** Defined when a page has changed since last publish and can be included into a partial publish */
5574
5581
  draftState: DTODocumentationDraftState.optional()
@@ -5577,76 +5584,76 @@ var DTODocumentationHierarchyV2 = z200.object({
5577
5584
  });
5578
5585
 
5579
5586
  // src/api/dto/elements/documentation/page-actions-v2.ts
5580
- import { z as z201 } from "zod";
5581
- var SuccessPayload2 = z201.object({
5582
- success: z201.literal(true)
5587
+ import { z as z202 } from "zod";
5588
+ var SuccessPayload2 = z202.object({
5589
+ success: z202.literal(true)
5583
5590
  });
5584
- var DTODocumentationPageCreateActionOutputV2 = z201.object({
5585
- type: z201.literal("DocumentationPageCreate"),
5591
+ var DTODocumentationPageCreateActionOutputV2 = z202.object({
5592
+ type: z202.literal("DocumentationPageCreate"),
5586
5593
  output: SuccessPayload2
5587
5594
  });
5588
- var DTODocumentationPageUpdateActionOutputV2 = z201.object({
5589
- type: z201.literal("DocumentationPageUpdate"),
5595
+ var DTODocumentationPageUpdateActionOutputV2 = z202.object({
5596
+ type: z202.literal("DocumentationPageUpdate"),
5590
5597
  output: SuccessPayload2
5591
5598
  });
5592
- var DTODocumentationPageMoveActionOutputV2 = z201.object({
5593
- type: z201.literal("DocumentationPageMove"),
5599
+ var DTODocumentationPageMoveActionOutputV2 = z202.object({
5600
+ type: z202.literal("DocumentationPageMove"),
5594
5601
  output: SuccessPayload2
5595
5602
  });
5596
- var DTODocumentationPageDuplicateActionOutputV2 = z201.object({
5597
- type: z201.literal("DocumentationPageDuplicate"),
5603
+ var DTODocumentationPageDuplicateActionOutputV2 = z202.object({
5604
+ type: z202.literal("DocumentationPageDuplicate"),
5598
5605
  output: SuccessPayload2
5599
5606
  });
5600
- var DTODocumentationPageDeleteActionOutputV2 = z201.object({
5601
- type: z201.literal("DocumentationPageDelete"),
5607
+ var DTODocumentationPageDeleteActionOutputV2 = z202.object({
5608
+ type: z202.literal("DocumentationPageDelete"),
5602
5609
  output: SuccessPayload2
5603
5610
  });
5604
- var DTODocumentationPageRestoreActionOutput = z201.object({
5605
- type: z201.literal("DocumentationPageRestore"),
5611
+ var DTODocumentationPageRestoreActionOutput = z202.object({
5612
+ type: z202.literal("DocumentationPageRestore"),
5606
5613
  output: SuccessPayload2
5607
5614
  });
5608
- var DTODocumentationGroupRestoreActionOutput = z201.object({
5609
- type: z201.literal("DocumentationGroupRestore"),
5615
+ var DTODocumentationGroupRestoreActionOutput = z202.object({
5616
+ type: z202.literal("DocumentationGroupRestore"),
5610
5617
  output: SuccessPayload2
5611
5618
  });
5612
- var DTODocumentationPageCreateActionInputV2 = z201.object({
5613
- type: z201.literal("DocumentationPageCreate"),
5619
+ var DTODocumentationPageCreateActionInputV2 = z202.object({
5620
+ type: z202.literal("DocumentationPageCreate"),
5614
5621
  input: DTOCreateDocumentationPageInputV2
5615
5622
  });
5616
- var DTODocumentationPageUpdateActionInputV2 = z201.object({
5617
- type: z201.literal("DocumentationPageUpdate"),
5623
+ var DTODocumentationPageUpdateActionInputV2 = z202.object({
5624
+ type: z202.literal("DocumentationPageUpdate"),
5618
5625
  input: DTOUpdateDocumentationPageInputV2
5619
5626
  });
5620
- var DTODocumentationPageMoveActionInputV2 = z201.object({
5621
- type: z201.literal("DocumentationPageMove"),
5627
+ var DTODocumentationPageMoveActionInputV2 = z202.object({
5628
+ type: z202.literal("DocumentationPageMove"),
5622
5629
  input: DTOMoveDocumentationPageInputV2
5623
5630
  });
5624
- var DTODocumentationPageDuplicateActionInputV2 = z201.object({
5625
- type: z201.literal("DocumentationPageDuplicate"),
5631
+ var DTODocumentationPageDuplicateActionInputV2 = z202.object({
5632
+ type: z202.literal("DocumentationPageDuplicate"),
5626
5633
  input: DTODuplicateDocumentationPageInputV2
5627
5634
  });
5628
- var DTODocumentationPageDeleteActionInputV2 = z201.object({
5629
- type: z201.literal("DocumentationPageDelete"),
5635
+ var DTODocumentationPageDeleteActionInputV2 = z202.object({
5636
+ type: z202.literal("DocumentationPageDelete"),
5630
5637
  input: DTODeleteDocumentationPageInputV2
5631
5638
  });
5632
- var DTODocumentationPageRestoreActionInput = z201.object({
5633
- type: z201.literal("DocumentationPageRestore"),
5639
+ var DTODocumentationPageRestoreActionInput = z202.object({
5640
+ type: z202.literal("DocumentationPageRestore"),
5634
5641
  input: DTORestoreDocumentationPageInput
5635
5642
  });
5636
- var DTODocumentationGroupRestoreActionInput = z201.object({
5637
- type: z201.literal("DocumentationGroupRestore"),
5643
+ var DTODocumentationGroupRestoreActionInput = z202.object({
5644
+ type: z202.literal("DocumentationGroupRestore"),
5638
5645
  input: DTORestoreDocumentationGroupInput
5639
5646
  });
5640
5647
 
5641
5648
  // src/api/dto/elements/documentation/page-content.ts
5642
- import { z as z202 } from "zod";
5649
+ import { z as z203 } from "zod";
5643
5650
  var DTODocumentationPageContent = DocumentationPageContent;
5644
- var DTODocumentationPageContentGetResponse = z202.object({
5651
+ var DTODocumentationPageContentGetResponse = z203.object({
5645
5652
  pageContent: DTODocumentationPageContent
5646
5653
  });
5647
5654
 
5648
5655
  // src/api/dto/elements/documentation/page-v1.ts
5649
- import { z as z203 } from "zod";
5656
+ import { z as z204 } from "zod";
5650
5657
  var DocumentationPageV1DTO = DocumentationPageV1.omit({
5651
5658
  data: true,
5652
5659
  meta: true,
@@ -5654,30 +5661,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
5654
5661
  sortOrder: true
5655
5662
  }).extend({
5656
5663
  configuration: DTODocumentationItemConfigurationV1,
5657
- blocks: z203.array(PageBlockV1),
5658
- title: z203.string(),
5659
- path: z203.string()
5664
+ blocks: z204.array(PageBlockV1),
5665
+ title: z204.string(),
5666
+ path: z204.string()
5660
5667
  });
5661
5668
 
5662
5669
  // src/api/dto/elements/figma-nodes/figma-node.ts
5663
- import { z as z204 } from "zod";
5664
- var DTOFigmaNodeOrigin = z204.object({
5665
- sourceId: z204.string(),
5666
- fileId: z204.string().optional(),
5667
- parentName: z204.string().optional()
5670
+ import { z as z205 } from "zod";
5671
+ var DTOFigmaNodeOrigin = z205.object({
5672
+ sourceId: z205.string(),
5673
+ fileId: z205.string().optional(),
5674
+ parentName: z205.string().optional()
5668
5675
  });
5669
- var DTOFigmaNodeData = z204.object({
5676
+ var DTOFigmaNodeData = z205.object({
5670
5677
  // Id of the node in the Figma file
5671
- figmaNodeId: z204.string(),
5678
+ figmaNodeId: z205.string(),
5672
5679
  // Validity
5673
- isValid: z204.boolean(),
5680
+ isValid: z205.boolean(),
5674
5681
  // Asset data
5675
- assetId: z204.string(),
5676
- assetUrl: z204.string(),
5682
+ assetId: z205.string(),
5683
+ assetUrl: z205.string(),
5677
5684
  // Asset metadata
5678
- assetScale: z204.number(),
5679
- assetWidth: z204.number().optional(),
5680
- assetHeight: z204.number().optional()
5685
+ assetScale: z205.number(),
5686
+ assetWidth: z205.number().optional(),
5687
+ assetHeight: z205.number().optional()
5681
5688
  });
5682
5689
  var DTOFigmaNode = FigmaFileStructure.omit({
5683
5690
  data: true,
@@ -5686,105 +5693,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
5686
5693
  data: DTOFigmaNodeData,
5687
5694
  origin: DTOFigmaNodeOrigin
5688
5695
  });
5689
- var DTOFigmaNodeRenderInput = z204.object({
5696
+ var DTOFigmaNodeRenderInput = z205.object({
5690
5697
  // Id of a design system's data source representing a linked Figma file
5691
- sourceId: z204.string(),
5698
+ sourceId: z205.string(),
5692
5699
  // Id of a node within the Figma file
5693
- figmaFileNodeId: z204.string()
5700
+ figmaFileNodeId: z205.string()
5694
5701
  });
5695
5702
 
5696
5703
  // src/api/dto/elements/figma-nodes/node-actions-v2.ts
5697
- import { z as z205 } from "zod";
5698
- var DTOFigmaNodeRenderActionOutput = z205.object({
5699
- type: z205.literal("FigmaNodeRender"),
5700
- figmaNodes: z205.array(DTOFigmaNode)
5704
+ import { z as z206 } from "zod";
5705
+ var DTOFigmaNodeRenderActionOutput = z206.object({
5706
+ type: z206.literal("FigmaNodeRender"),
5707
+ figmaNodes: z206.array(DTOFigmaNode)
5701
5708
  });
5702
- var DTOFigmaNodeRenderActionInput = z205.object({
5703
- type: z205.literal("FigmaNodeRender"),
5709
+ var DTOFigmaNodeRenderActionInput = z206.object({
5710
+ type: z206.literal("FigmaNodeRender"),
5704
5711
  input: DTOFigmaNodeRenderInput.array()
5705
5712
  });
5706
5713
 
5707
5714
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5708
- import { z as z207 } from "zod";
5715
+ import { z as z208 } from "zod";
5709
5716
 
5710
5717
  // src/api/dto/elements/properties/property-definitions.ts
5711
- import { z as z206 } from "zod";
5718
+ import { z as z207 } from "zod";
5712
5719
  var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
5713
- var DTOElementPropertyDefinition = z206.object({
5714
- id: z206.string(),
5715
- designSystemVersionId: z206.string(),
5720
+ var DTOElementPropertyDefinition = z207.object({
5721
+ id: z207.string(),
5722
+ designSystemVersionId: z207.string(),
5716
5723
  meta: ObjectMeta,
5717
- persistentId: z206.string(),
5724
+ persistentId: z207.string(),
5718
5725
  type: ElementPropertyTypeSchema,
5719
5726
  targetElementType: ElementPropertyTargetType,
5720
- codeName: z206.string().regex(CODE_NAME_REGEX2),
5721
- options: z206.array(ElementPropertyDefinitionOption).optional(),
5727
+ codeName: z207.string().regex(CODE_NAME_REGEX2),
5728
+ options: z207.array(ElementPropertyDefinitionOption).optional(),
5722
5729
  linkElementType: ElementPropertyLinkType.optional()
5723
5730
  });
5724
- var DTOElementPropertyDefinitionsGetResponse = z206.object({
5725
- definitions: z206.array(DTOElementPropertyDefinition)
5731
+ var DTOElementPropertyDefinitionsGetResponse = z207.object({
5732
+ definitions: z207.array(DTOElementPropertyDefinition)
5726
5733
  });
5727
5734
  var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
5728
5735
  id: true,
5729
5736
  designSystemVersionId: true
5730
5737
  });
5731
- var DTOUpdateElementPropertyDefinitionInputV2 = z206.object({
5732
- id: z206.string(),
5733
- name: z206.string().optional(),
5734
- description: z206.string().optional(),
5735
- codeName: z206.string().regex(CODE_NAME_REGEX2).optional(),
5736
- options: z206.array(ElementPropertyDefinitionOption).optional()
5738
+ var DTOUpdateElementPropertyDefinitionInputV2 = z207.object({
5739
+ id: z207.string(),
5740
+ name: z207.string().optional(),
5741
+ description: z207.string().optional(),
5742
+ codeName: z207.string().regex(CODE_NAME_REGEX2).optional(),
5743
+ options: z207.array(ElementPropertyDefinitionOption).optional()
5737
5744
  });
5738
- var DTODeleteElementPropertyDefinitionInputV2 = z206.object({
5739
- id: z206.string()
5745
+ var DTODeleteElementPropertyDefinitionInputV2 = z207.object({
5746
+ id: z207.string()
5740
5747
  });
5741
5748
 
5742
5749
  // src/api/dto/elements/properties/property-definitions-actions-v2.ts
5743
- var SuccessPayload3 = z207.object({
5744
- success: z207.literal(true)
5750
+ var SuccessPayload3 = z208.object({
5751
+ success: z208.literal(true)
5745
5752
  });
5746
- var DTOPropertyDefinitionCreateActionOutputV2 = z207.object({
5747
- type: z207.literal("PropertyDefinitionCreate"),
5753
+ var DTOPropertyDefinitionCreateActionOutputV2 = z208.object({
5754
+ type: z208.literal("PropertyDefinitionCreate"),
5748
5755
  definition: DTOElementPropertyDefinition
5749
5756
  });
5750
- var DTOPropertyDefinitionUpdateActionOutputV2 = z207.object({
5751
- type: z207.literal("PropertyDefinitionUpdate"),
5757
+ var DTOPropertyDefinitionUpdateActionOutputV2 = z208.object({
5758
+ type: z208.literal("PropertyDefinitionUpdate"),
5752
5759
  definition: DTOElementPropertyDefinition
5753
5760
  });
5754
- var DTOPropertyDefinitionDeleteActionOutputV2 = z207.object({
5755
- type: z207.literal("PropertyDefinitionDelete"),
5761
+ var DTOPropertyDefinitionDeleteActionOutputV2 = z208.object({
5762
+ type: z208.literal("PropertyDefinitionDelete"),
5756
5763
  output: SuccessPayload3
5757
5764
  });
5758
- var DTOPropertyDefinitionCreateActionInputV2 = z207.object({
5759
- type: z207.literal("PropertyDefinitionCreate"),
5765
+ var DTOPropertyDefinitionCreateActionInputV2 = z208.object({
5766
+ type: z208.literal("PropertyDefinitionCreate"),
5760
5767
  input: DTOCreateElementPropertyDefinitionInputV2
5761
5768
  });
5762
- var DTOPropertyDefinitionUpdateActionInputV2 = z207.object({
5763
- type: z207.literal("PropertyDefinitionUpdate"),
5769
+ var DTOPropertyDefinitionUpdateActionInputV2 = z208.object({
5770
+ type: z208.literal("PropertyDefinitionUpdate"),
5764
5771
  input: DTOUpdateElementPropertyDefinitionInputV2
5765
5772
  });
5766
- var DTOPropertyDefinitionDeleteActionInputV2 = z207.object({
5767
- type: z207.literal("PropertyDefinitionDelete"),
5773
+ var DTOPropertyDefinitionDeleteActionInputV2 = z208.object({
5774
+ type: z208.literal("PropertyDefinitionDelete"),
5768
5775
  input: DTODeleteElementPropertyDefinitionInputV2
5769
5776
  });
5770
5777
 
5771
5778
  // src/api/dto/elements/properties/property-values.ts
5772
- import { z as z208 } from "zod";
5773
- var DTOElementPropertyValue = z208.object({
5774
- id: z208.string(),
5775
- designSystemVersionId: z208.string(),
5776
- definitionId: z208.string(),
5777
- targetElementId: z208.string(),
5778
- value: z208.union([z208.string(), z208.number(), z208.boolean()]).optional(),
5779
- valuePreview: z208.string().optional()
5779
+ import { z as z209 } from "zod";
5780
+ var DTOElementPropertyValue = z209.object({
5781
+ id: z209.string(),
5782
+ designSystemVersionId: z209.string(),
5783
+ definitionId: z209.string(),
5784
+ targetElementId: z209.string(),
5785
+ value: z209.union([z209.string(), z209.number(), z209.boolean()]).optional(),
5786
+ valuePreview: z209.string().optional()
5780
5787
  });
5781
- var DTOElementPropertyValuesGetResponse = z208.object({
5782
- values: z208.array(DTOElementPropertyValue)
5788
+ var DTOElementPropertyValuesGetResponse = z209.object({
5789
+ values: z209.array(DTOElementPropertyValue)
5783
5790
  });
5784
5791
 
5785
5792
  // src/api/dto/elements/elements-action-v2.ts
5786
- import { z as z209 } from "zod";
5787
- var DTOElementActionOutput = z209.discriminatedUnion("type", [
5793
+ import { z as z210 } from "zod";
5794
+ var DTOElementActionOutput = z210.discriminatedUnion("type", [
5788
5795
  // Documentation pages
5789
5796
  DTODocumentationPageCreateActionOutputV2,
5790
5797
  DTODocumentationPageUpdateActionOutputV2,
@@ -5809,7 +5816,7 @@ var DTOElementActionOutput = z209.discriminatedUnion("type", [
5809
5816
  DTODocumentationPageRestoreActionOutput,
5810
5817
  DTODocumentationGroupRestoreActionOutput
5811
5818
  ]);
5812
- var DTOElementActionInput = z209.discriminatedUnion("type", [
5819
+ var DTOElementActionInput = z210.discriminatedUnion("type", [
5813
5820
  // Documentation pages
5814
5821
  DTODocumentationPageCreateActionInputV2,
5815
5822
  DTODocumentationPageUpdateActionInputV2,
@@ -5836,141 +5843,141 @@ var DTOElementActionInput = z209.discriminatedUnion("type", [
5836
5843
  ]);
5837
5844
 
5838
5845
  // src/api/dto/elements/get-elements-v2.ts
5839
- import { z as z210 } from "zod";
5840
- var DTOElementsGetTypeFilter = z210.enum(["FigmaNode"]);
5841
- var DTOElementsGetQuerySchema = z210.object({
5842
- types: z210.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5846
+ import { z as z211 } from "zod";
5847
+ var DTOElementsGetTypeFilter = z211.enum(["FigmaNode"]);
5848
+ var DTOElementsGetQuerySchema = z211.object({
5849
+ types: z211.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
5843
5850
  });
5844
- var DTOElementsGetOutput = z210.object({
5845
- figmaNodes: z210.array(DTOFigmaNode).optional()
5851
+ var DTOElementsGetOutput = z211.object({
5852
+ figmaNodes: z211.array(DTOFigmaNode).optional()
5846
5853
  });
5847
5854
 
5848
5855
  // src/api/dto/figma-components/assets/download.ts
5849
- import { z as z211 } from "zod";
5850
- var DTOAssetRenderConfiguration = z211.object({
5851
- prefix: z211.string().optional(),
5852
- suffix: z211.string().optional(),
5853
- scale: z211.enum(["x1", "x2", "x3", "x4"]),
5854
- format: z211.enum(["png", "pdf", "svg"])
5855
- });
5856
- var DTORenderedAssetFile = z211.object({
5857
- assetId: z211.string(),
5858
- fileName: z211.string(),
5859
- sourceUrl: z211.string(),
5856
+ import { z as z212 } from "zod";
5857
+ var DTOAssetRenderConfiguration = z212.object({
5858
+ prefix: z212.string().optional(),
5859
+ suffix: z212.string().optional(),
5860
+ scale: z212.enum(["x1", "x2", "x3", "x4"]),
5861
+ format: z212.enum(["png", "pdf", "svg"])
5862
+ });
5863
+ var DTORenderedAssetFile = z212.object({
5864
+ assetId: z212.string(),
5865
+ fileName: z212.string(),
5866
+ sourceUrl: z212.string(),
5860
5867
  settings: DTOAssetRenderConfiguration,
5861
- originalName: z211.string()
5868
+ originalName: z212.string()
5862
5869
  });
5863
- var DTODownloadAssetsRequest = z211.object({
5864
- persistentIds: z211.array(z211.string().uuid()).optional(),
5870
+ var DTODownloadAssetsRequest = z212.object({
5871
+ persistentIds: z212.array(z212.string().uuid()).optional(),
5865
5872
  settings: DTOAssetRenderConfiguration.array()
5866
5873
  });
5867
- var DTODownloadAssetsResponse = z211.object({
5874
+ var DTODownloadAssetsResponse = z212.object({
5868
5875
  items: DTORenderedAssetFile.array()
5869
5876
  });
5870
5877
 
5871
5878
  // src/api/dto/liveblocks/auth-response.ts
5872
- import { z as z212 } from "zod";
5873
- var DTOLiveblocksAuthResponse = z212.object({
5874
- token: z212.string()
5879
+ import { z as z213 } from "zod";
5880
+ var DTOLiveblocksAuthResponse = z213.object({
5881
+ token: z213.string()
5875
5882
  });
5876
5883
 
5877
5884
  // src/api/dto/users/profile/update.ts
5878
- import { z as z213 } from "zod";
5879
- var DTOUserProfileUpdateResponse = z213.object({
5885
+ import { z as z214 } from "zod";
5886
+ var DTOUserProfileUpdateResponse = z214.object({
5880
5887
  user: User
5881
5888
  });
5882
5889
 
5883
5890
  // src/api/dto/workspaces/git.ts
5884
- import { z as z214 } from "zod";
5885
- var DTOGitOrganization = z214.object({
5886
- id: z214.string(),
5887
- name: z214.string(),
5888
- url: z214.string(),
5889
- slug: z214.string()
5890
- });
5891
- var DTOGitProject = z214.object({
5892
- id: z214.string(),
5893
- name: z214.string(),
5894
- url: z214.string(),
5895
- slug: z214.string()
5896
- });
5897
- var DTOGitRepository = z214.object({
5898
- id: z214.string(),
5899
- name: z214.string(),
5900
- url: z214.string(),
5901
- slug: z214.string(),
5902
- defaultBranch: z214.string().optional()
5903
- });
5904
- var DTOGitBranch = z214.object({
5905
- name: z214.string(),
5906
- lastCommitId: z214.string()
5891
+ import { z as z215 } from "zod";
5892
+ var DTOGitOrganization = z215.object({
5893
+ id: z215.string(),
5894
+ name: z215.string(),
5895
+ url: z215.string(),
5896
+ slug: z215.string()
5897
+ });
5898
+ var DTOGitProject = z215.object({
5899
+ id: z215.string(),
5900
+ name: z215.string(),
5901
+ url: z215.string(),
5902
+ slug: z215.string()
5903
+ });
5904
+ var DTOGitRepository = z215.object({
5905
+ id: z215.string(),
5906
+ name: z215.string(),
5907
+ url: z215.string(),
5908
+ slug: z215.string(),
5909
+ defaultBranch: z215.string().optional()
5910
+ });
5911
+ var DTOGitBranch = z215.object({
5912
+ name: z215.string(),
5913
+ lastCommitId: z215.string()
5907
5914
  });
5908
5915
 
5909
5916
  // src/api/dto/workspaces/integrations.ts
5910
- import { z as z215 } from "zod";
5917
+ import { z as z216 } from "zod";
5911
5918
  var DTOIntegrationCredentials = IntegrationCredentials.omit({
5912
5919
  accessToken: true,
5913
5920
  refreshToken: true
5914
5921
  });
5915
- var DTOIntegration = z215.object({
5916
- id: z215.string(),
5917
- workspaceId: z215.string(),
5922
+ var DTOIntegration = z216.object({
5923
+ id: z216.string(),
5924
+ workspaceId: z216.string(),
5918
5925
  type: ExtendedIntegrationType,
5919
- createdAt: z215.coerce.date(),
5920
- integrationCredentials: z215.array(DTOIntegrationCredentials).optional(),
5921
- integrationDesignSystems: z215.array(IntegrationDesignSystem).optional()
5926
+ createdAt: z216.coerce.date(),
5927
+ integrationCredentials: z216.array(DTOIntegrationCredentials).optional(),
5928
+ integrationDesignSystems: z216.array(IntegrationDesignSystem).optional()
5922
5929
  });
5923
- var DTOIntegrationOAuthGetResponse = z215.object({
5924
- url: z215.string()
5930
+ var DTOIntegrationOAuthGetResponse = z216.object({
5931
+ url: z216.string()
5925
5932
  });
5926
- var DTOIntegrationPostResponse = z215.object({
5933
+ var DTOIntegrationPostResponse = z216.object({
5927
5934
  integration: DTOIntegration
5928
5935
  });
5929
- var DTOIntegrationsGetListResponse = z215.object({
5936
+ var DTOIntegrationsGetListResponse = z216.object({
5930
5937
  integrations: DTOIntegration.array()
5931
5938
  });
5932
5939
 
5933
5940
  // src/api/dto/workspaces/membership.ts
5934
- import { z as z218 } from "zod";
5941
+ import { z as z219 } from "zod";
5935
5942
 
5936
5943
  // src/api/dto/workspaces/workspace.ts
5937
- import { z as z217 } from "zod";
5944
+ import { z as z218 } from "zod";
5938
5945
 
5939
5946
  // src/api/dto/workspaces/npm-registry.ts
5940
- import { z as z216 } from "zod";
5947
+ import { z as z217 } from "zod";
5941
5948
  var DTONpmRegistryConfigConstants = {
5942
5949
  passwordPlaceholder: "redacted"
5943
5950
  };
5944
- var DTONpmRegistryConfig = z216.object({
5951
+ var DTONpmRegistryConfig = z217.object({
5945
5952
  // Registry basic configuration
5946
5953
  registryType: NpmRegistryType,
5947
- registryUrl: z216.string(),
5948
- customRegistryUrl: z216.string().optional(),
5954
+ registryUrl: z217.string(),
5955
+ customRegistryUrl: z217.string().optional(),
5949
5956
  // URL of Supernova NPM packages proxy
5950
- proxyUrl: z216.string(),
5957
+ proxyUrl: z217.string(),
5951
5958
  // Auth configuration
5952
5959
  authType: NpmRegistryAuthType,
5953
- accessToken: z216.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5954
- username: z216.string().optional(),
5955
- password: z216.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5960
+ accessToken: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5961
+ username: z217.string().optional(),
5962
+ password: z217.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
5956
5963
  // NPM package scopes for whih the proxy should be enabled
5957
- enabledScopes: z216.array(z216.string()),
5964
+ enabledScopes: z217.array(z217.string()),
5958
5965
  // True if client should bypass Supernova proxy and connect directly to the registry
5959
5966
  // (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
5960
- bypassProxy: z216.boolean()
5967
+ bypassProxy: z217.boolean()
5961
5968
  });
5962
5969
 
5963
5970
  // src/api/dto/workspaces/workspace.ts
5964
- var DTOWorkspace = z217.object({
5965
- id: z217.string(),
5971
+ var DTOWorkspace = z218.object({
5972
+ id: z218.string(),
5966
5973
  profile: WorkspaceProfile,
5967
5974
  subscription: Subscription,
5968
5975
  npmRegistry: DTONpmRegistryConfig.optional()
5969
5976
  });
5970
5977
 
5971
5978
  // src/api/dto/workspaces/membership.ts
5972
- var DTOWorkspaceRole = z218.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5973
- var DTOUserWorkspaceMembership = z218.object({
5979
+ var DTOWorkspaceRole = z219.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
5980
+ var DTOUserWorkspaceMembership = z219.object({
5974
5981
  // Workspace the user is a member of
5975
5982
  workspace: DTOWorkspace,
5976
5983
  // Assigned role the user has in the workspace
@@ -5980,8 +5987,8 @@ var DTOUserWorkspaceMembership = z218.object({
5980
5987
  // when a workspace's subscription is downgraded to free tier
5981
5988
  effectiveRole: DTOWorkspaceRole
5982
5989
  });
5983
- var DTOUserWorkspaceMembershipsResponse = z218.object({
5984
- membership: z218.array(DTOUserWorkspaceMembership)
5990
+ var DTOUserWorkspaceMembershipsResponse = z219.object({
5991
+ membership: z219.array(DTOUserWorkspaceMembership)
5985
5992
  });
5986
5993
 
5987
5994
  // src/utils/hash.ts
@@ -6043,7 +6050,7 @@ function generateHash(input, debug = false) {
6043
6050
  }
6044
6051
 
6045
6052
  // src/yjs/design-system-content/documentation-hierarchy.ts
6046
- import { z as z219 } from "zod";
6053
+ import { z as z220 } from "zod";
6047
6054
 
6048
6055
  // src/yjs/version-room/base.ts
6049
6056
  var VersionRoomBaseYDoc = class {
@@ -6463,22 +6470,22 @@ var FrontendVersionRoomYDoc = class {
6463
6470
  };
6464
6471
 
6465
6472
  // src/yjs/design-system-content/documentation-hierarchy.ts
6466
- var DocumentationHierarchySettings = z219.object({
6467
- routingVersion: z219.string(),
6468
- isDraftFeatureAdopted: z219.boolean()
6473
+ var DocumentationHierarchySettings = z220.object({
6474
+ routingVersion: z220.string(),
6475
+ isDraftFeatureAdopted: z220.boolean()
6469
6476
  });
6470
6477
  function yjsToDocumentationHierarchy(doc) {
6471
6478
  return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
6472
6479
  }
6473
6480
 
6474
6481
  // src/yjs/design-system-content/item-configuration.ts
6475
- import { z as z220 } from "zod";
6476
- var DTODocumentationPageRoomHeaderData = z220.object({
6477
- title: z220.string(),
6482
+ import { z as z221 } from "zod";
6483
+ var DTODocumentationPageRoomHeaderData = z221.object({
6484
+ title: z221.string(),
6478
6485
  configuration: DTODocumentationItemConfigurationV2
6479
6486
  });
6480
- var DTODocumentationPageRoomHeaderDataUpdate = z220.object({
6481
- title: z220.string().optional(),
6487
+ var DTODocumentationPageRoomHeaderDataUpdate = z221.object({
6488
+ title: z221.string().optional(),
6482
6489
  configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
6483
6490
  });
6484
6491
  function itemConfigurationToYjs(yDoc, item) {
@@ -6529,7 +6536,7 @@ function yjsToItemConfiguration(yDoc) {
6529
6536
  header: rawHeader
6530
6537
  };
6531
6538
  return {
6532
- title: z220.string().parse(title),
6539
+ title: z221.string().parse(title),
6533
6540
  configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
6534
6541
  };
6535
6542
  }
@@ -6539,9 +6546,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
6539
6546
  var PageSectionEditorModel = PageSectionEditorModelV2;
6540
6547
 
6541
6548
  // src/yjs/docs-editor/model/page.ts
6542
- import { z as z221 } from "zod";
6543
- var DocumentationPageEditorModel = z221.object({
6544
- blocks: z221.array(DocumentationPageContentItem)
6549
+ import { z as z222 } from "zod";
6550
+ var DocumentationPageEditorModel = z222.object({
6551
+ blocks: z222.array(DocumentationPageContentItem)
6545
6552
  });
6546
6553
 
6547
6554
  // src/yjs/docs-editor/prosemirror/schema.ts
@@ -10291,7 +10298,7 @@ var blocks = [
10291
10298
 
10292
10299
  // src/yjs/docs-editor/prosemirror-to-blocks.ts
10293
10300
  import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
10294
- import { z as z222 } from "zod";
10301
+ import { z as z223 } from "zod";
10295
10302
  function yDocToPage(yDoc, definitions) {
10296
10303
  return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
10297
10304
  }
@@ -10334,7 +10341,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
10334
10341
  return null;
10335
10342
  return {
10336
10343
  id,
10337
- title: getProsemirrorAttribute(prosemirrorNode, "title", z222.string()) ?? "",
10344
+ title: getProsemirrorAttribute(prosemirrorNode, "title", z223.string()) ?? "",
10338
10345
  columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
10339
10346
  };
10340
10347
  }
@@ -10369,7 +10376,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
10369
10376
  });
10370
10377
  }
10371
10378
  function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
10372
- const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z222.string());
10379
+ const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z223.string());
10373
10380
  if (!definitionId) {
10374
10381
  console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
10375
10382
  return [];
@@ -10411,7 +10418,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
10411
10418
  if (!id)
10412
10419
  return null;
10413
10420
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
10414
- const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z222.string().optional()));
10421
+ const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z223.string().optional()));
10415
10422
  return {
10416
10423
  id,
10417
10424
  type: "Block",
@@ -10537,10 +10544,10 @@ function parseRichTextAttribute(mark) {
10537
10544
  return null;
10538
10545
  }
10539
10546
  function parseProsemirrorLink(mark) {
10540
- const href = getProsemirrorAttribute(mark, "href", z222.string().optional());
10547
+ const href = getProsemirrorAttribute(mark, "href", z223.string().optional());
10541
10548
  if (!href)
10542
10549
  return null;
10543
- const target = getProsemirrorAttribute(mark, "target", z222.string().optional());
10550
+ const target = getProsemirrorAttribute(mark, "target", z223.string().optional());
10544
10551
  const openInNewTab = target === "_blank";
10545
10552
  if (href.startsWith("@")) {
10546
10553
  return {
@@ -10563,7 +10570,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
10563
10570
  if (!id)
10564
10571
  return null;
10565
10572
  const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
10566
- const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z222.boolean().optional()) !== false;
10573
+ const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z223.boolean().optional()) !== false;
10567
10574
  const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
10568
10575
  if (!tableChild) {
10569
10576
  return emptyTable(id, variantId, 0);
@@ -10610,9 +10617,9 @@ function parseAsTableCell(prosemirrorNode) {
10610
10617
  const id = getProsemirrorBlockId(prosemirrorNode);
10611
10618
  if (!id)
10612
10619
  return null;
10613
- const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z222.string().optional());
10620
+ const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z223.string().optional());
10614
10621
  let columnWidth;
10615
- const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z222.array(z222.number()).optional());
10622
+ const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z223.array(z223.number()).optional());
10616
10623
  if (columnWidthArray) {
10617
10624
  columnWidth = roundDimension(columnWidthArray[0]);
10618
10625
  }
@@ -10650,7 +10657,7 @@ function parseAsTableNode(prosemirrorNode) {
10650
10657
  value: parseRichText(prosemirrorNode.content ?? [])
10651
10658
  };
10652
10659
  case "image":
10653
- const items = getProsemirrorAttribute(prosemirrorNode, "items", z222.string());
10660
+ const items = getProsemirrorAttribute(prosemirrorNode, "items", z223.string());
10654
10661
  if (!items)
10655
10662
  return null;
10656
10663
  const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
@@ -10767,7 +10774,7 @@ function definitionExpectsPlaceholderItem(definition) {
10767
10774
  );
10768
10775
  }
10769
10776
  function parseBlockItems(prosemirrorNode, definition) {
10770
- const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z222.string());
10777
+ const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z223.string());
10771
10778
  if (!itemsString)
10772
10779
  return null;
10773
10780
  const itemsJson = JSON.parse(itemsString);
@@ -10779,18 +10786,18 @@ function parseBlockItems(prosemirrorNode, definition) {
10779
10786
  }
10780
10787
  function parseAppearance(prosemirrorNode) {
10781
10788
  let appearance = {};
10782
- const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z222.string().optional());
10789
+ const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z223.string().optional());
10783
10790
  if (rawAppearanceString) {
10784
10791
  const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
10785
10792
  if (parsedAppearance.success) {
10786
10793
  appearance = parsedAppearance.data;
10787
10794
  }
10788
10795
  }
10789
- const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z222.number().optional());
10796
+ const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z223.number().optional());
10790
10797
  if (columns) {
10791
10798
  appearance.numberOfColumns = columns;
10792
10799
  }
10793
- const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z222.string().optional());
10800
+ const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z223.string().optional());
10794
10801
  if (backgroundColor) {
10795
10802
  const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
10796
10803
  if (parsedColor.success) {
@@ -10883,13 +10890,13 @@ function valueSchemaForPropertyType(type) {
10883
10890
  }
10884
10891
  }
10885
10892
  function getProsemirrorBlockId(prosemirrorNode) {
10886
- const id = getProsemirrorAttribute(prosemirrorNode, "id", z222.string());
10893
+ const id = getProsemirrorAttribute(prosemirrorNode, "id", z223.string());
10887
10894
  if (!id)
10888
10895
  console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
10889
10896
  return id;
10890
10897
  }
10891
10898
  function getProsemirrorBlockVariantId(prosemirrorNode) {
10892
- return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z222.string()));
10899
+ return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z223.string()));
10893
10900
  }
10894
10901
  function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
10895
10902
  const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
@@ -11094,6 +11101,7 @@ export {
11094
11101
  DTOPageBlockDefinitionProperty,
11095
11102
  DTOPageBlockDefinitionVariant,
11096
11103
  DTOPageBlockItemV2,
11104
+ DTOPagination,
11097
11105
  DTOPipeline,
11098
11106
  DTOPipelineCreateBody,
11099
11107
  DTOPipelineTriggerBody,