@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.d.mts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +639 -631
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4709,157 +4709,164 @@ function integrationCredentialToDto(credential) {
|
|
|
4709
4709
|
};
|
|
4710
4710
|
}
|
|
4711
4711
|
|
|
4712
|
-
// src/api/dto/
|
|
4712
|
+
// src/api/dto/aux/pagination.ts
|
|
4713
4713
|
import { z as z169 } from "zod";
|
|
4714
|
-
var
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
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 =
|
|
4721
|
-
var DTOBrandCreateResponse =
|
|
4727
|
+
var DTOBrandGetResponse = z170.object({ brand: DTOBrand });
|
|
4728
|
+
var DTOBrandCreateResponse = z170.object({
|
|
4722
4729
|
brand: DTOBrand
|
|
4723
4730
|
});
|
|
4724
|
-
var DTOBrandsListResponse =
|
|
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
|
|
4728
|
-
var DTODataSourceFigmaFileVersion =
|
|
4729
|
-
id:
|
|
4730
|
-
created_at:
|
|
4731
|
-
label:
|
|
4732
|
-
description:
|
|
4733
|
-
});
|
|
4734
|
-
var DTODataSourceFigmaCloud =
|
|
4735
|
-
fileId:
|
|
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:
|
|
4745
|
+
fileThumbnailUrl: z171.string().optional(),
|
|
4739
4746
|
lastImportResult: SourceImportSummary.nullish(),
|
|
4740
|
-
lastImportedAt:
|
|
4747
|
+
lastImportedAt: z171.date().nullish(),
|
|
4741
4748
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
4742
|
-
lastUpdatesCheckedAt:
|
|
4743
|
-
ownerId:
|
|
4744
|
-
ownerUserName:
|
|
4745
|
-
preferredCredentialId:
|
|
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 =
|
|
4749
|
-
id:
|
|
4750
|
-
type:
|
|
4751
|
-
fileName:
|
|
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:
|
|
4754
|
-
themeId:
|
|
4760
|
+
brandId: z171.string(),
|
|
4761
|
+
themeId: z171.string().nullish(),
|
|
4755
4762
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
4756
|
-
tokenStudio:
|
|
4757
|
-
upload:
|
|
4758
|
-
figmaVariablesPlugin:
|
|
4759
|
-
});
|
|
4760
|
-
var DTODataSourceTokenStudio =
|
|
4761
|
-
id:
|
|
4762
|
-
type:
|
|
4763
|
-
fileName:
|
|
4764
|
-
brandId:
|
|
4765
|
-
themeId:
|
|
4766
|
-
cloud:
|
|
4767
|
-
tokenStudio:
|
|
4768
|
-
settings:
|
|
4769
|
-
dryRun:
|
|
4770
|
-
verbose:
|
|
4771
|
-
preciseCopy:
|
|
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:
|
|
4774
|
-
lastImportedAt:
|
|
4775
|
-
lastImportedResults:
|
|
4776
|
-
|
|
4777
|
-
mapping:
|
|
4778
|
-
tokenSets:
|
|
4779
|
-
supernovaBrand:
|
|
4780
|
-
supernovaTheme:
|
|
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:
|
|
4783
|
-
tokensCreated:
|
|
4784
|
-
tokensDeleted:
|
|
4785
|
-
tokensUpdated:
|
|
4789
|
+
isFailed: z171.boolean(),
|
|
4790
|
+
tokensCreated: z171.number(),
|
|
4791
|
+
tokensDeleted: z171.number(),
|
|
4792
|
+
tokensUpdated: z171.number()
|
|
4786
4793
|
})
|
|
4787
4794
|
)
|
|
4788
4795
|
}),
|
|
4789
|
-
upload:
|
|
4790
|
-
figmaVariablesPlugin:
|
|
4791
|
-
});
|
|
4792
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
4793
|
-
id:
|
|
4794
|
-
type:
|
|
4795
|
-
fileName:
|
|
4796
|
-
brandId:
|
|
4797
|
-
themeId:
|
|
4798
|
-
cloud:
|
|
4799
|
-
tokenStudio:
|
|
4800
|
-
upload:
|
|
4801
|
-
remoteId:
|
|
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:
|
|
4810
|
+
lastImportedAt: z171.date().optional(),
|
|
4804
4811
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
4805
4812
|
}),
|
|
4806
|
-
figmaVariablesPlugin:
|
|
4807
|
-
fileId:
|
|
4808
|
-
lastImportedAt:
|
|
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 =
|
|
4819
|
+
var DTODataSource = z171.discriminatedUnion("type", [
|
|
4813
4820
|
DTODataSourceFigma,
|
|
4814
4821
|
DTODataSourceFigmaVariablesPlugin,
|
|
4815
4822
|
DTODataSourceTokenStudio
|
|
4816
4823
|
]);
|
|
4817
|
-
var DTODataSourcesListResponse =
|
|
4818
|
-
sources:
|
|
4824
|
+
var DTODataSourcesListResponse = z171.object({
|
|
4825
|
+
sources: z171.array(DTODataSource)
|
|
4819
4826
|
});
|
|
4820
|
-
var DTODataSourceCreationResponse =
|
|
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
|
|
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:
|
|
4833
|
-
sources:
|
|
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
|
|
4838
|
-
var DTODiffCountBase =
|
|
4839
|
-
created:
|
|
4840
|
-
updated:
|
|
4841
|
-
deleted:
|
|
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 =
|
|
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
|
|
4850
|
-
var DTOExporterProperty =
|
|
4851
|
-
var DTOExporterPropertyListResponse =
|
|
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
|
|
4861
|
+
import { z as z184 } from "zod";
|
|
4855
4862
|
|
|
4856
4863
|
// src/api/payloads/design-systems/brand.ts
|
|
4857
|
-
import { z as
|
|
4858
|
-
var DTOCreateBrandInput =
|
|
4859
|
-
persistentId:
|
|
4860
|
-
meta:
|
|
4861
|
-
name:
|
|
4862
|
-
description:
|
|
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
|
|
4871
|
-
var ObjectMeta2 =
|
|
4872
|
-
name:
|
|
4873
|
-
description:
|
|
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 =
|
|
4886
|
+
var DTOCreateVersionInput = z176.object({
|
|
4880
4887
|
meta: ObjectMeta2,
|
|
4881
|
-
version:
|
|
4888
|
+
version: z176.string().refine(validateDesignSystemVersion, {
|
|
4882
4889
|
message: "Invalid semantic versioning format"
|
|
4883
4890
|
}),
|
|
4884
|
-
changeLog:
|
|
4891
|
+
changeLog: z176.string().optional()
|
|
4885
4892
|
});
|
|
4886
|
-
var DTOUpdateVersionInput =
|
|
4893
|
+
var DTOUpdateVersionInput = z176.object({
|
|
4887
4894
|
meta: ObjectMeta2,
|
|
4888
|
-
version:
|
|
4895
|
+
version: z176.string(),
|
|
4889
4896
|
// required for PUT, but not editable
|
|
4890
|
-
changeLog:
|
|
4897
|
+
changeLog: z176.string()
|
|
4891
4898
|
});
|
|
4892
4899
|
|
|
4893
4900
|
// src/api/payloads/documentation/block-definitions.ts
|
|
4894
|
-
import { z as
|
|
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 =
|
|
4907
|
-
definitions:
|
|
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
|
|
4912
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
4913
|
-
environment:
|
|
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
|
|
4918
|
-
var DTOPipelineCreateBody =
|
|
4919
|
-
name:
|
|
4920
|
-
exporterId:
|
|
4921
|
-
designSystemId:
|
|
4922
|
-
isEnabled:
|
|
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:
|
|
4925
|
-
themePersistentId:
|
|
4931
|
+
brandPersistentId: z179.string().optional(),
|
|
4932
|
+
themePersistentId: z179.string().optional(),
|
|
4926
4933
|
destination: PipelineDestinationType.optional(),
|
|
4927
4934
|
gitQuery: GitObjectsQuery,
|
|
4928
|
-
destinations:
|
|
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:
|
|
4942
|
+
webhookUrl: z179.string().nullish()
|
|
4936
4943
|
})
|
|
4937
4944
|
});
|
|
4938
4945
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
4939
|
-
id:
|
|
4946
|
+
id: z179.string()
|
|
4940
4947
|
});
|
|
4941
|
-
var DTOPipelineTriggerBody =
|
|
4942
|
-
designSystemVersionId:
|
|
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
|
|
4947
|
-
var DTOLiveblocksAuthRequest =
|
|
4948
|
-
room:
|
|
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
|
|
4953
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
4959
|
+
import { z as z181 } from "zod";
|
|
4960
|
+
var DTOUpdateUserNotificationSettingsPayload = z181.object({
|
|
4954
4961
|
notificationSettings: UserNotificationSettings
|
|
4955
4962
|
});
|
|
4956
|
-
var DTOUserNotificationSettingsResponse =
|
|
4957
|
-
userId:
|
|
4958
|
-
workspaceId:
|
|
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
|
|
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 =
|
|
4990
|
-
enabledScopes:
|
|
4991
|
-
customRegistryUrl:
|
|
4992
|
-
bypassProxy:
|
|
4993
|
-
npmProxyRegistryConfigId:
|
|
4994
|
-
npmProxyVersion:
|
|
4995
|
-
registryType:
|
|
4996
|
-
authType:
|
|
4997
|
-
authHeaderName:
|
|
4998
|
-
authHeaderValue:
|
|
4999
|
-
accessToken:
|
|
5000
|
-
username:
|
|
5001
|
-
password:
|
|
5002
|
-
});
|
|
5003
|
-
var WorkspaceConfigurationPayload =
|
|
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
|
|
5012
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5018
|
+
import { z as z183 } from "zod";
|
|
5019
|
+
var DTOWorkspaceIntegrationOauthInput = z183.object({
|
|
5013
5020
|
type: IntegrationType
|
|
5014
5021
|
});
|
|
5015
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5016
|
-
userId:
|
|
5022
|
+
var DTOWorkspaceIntegrationPATInput = z183.object({
|
|
5023
|
+
userId: z183.string(),
|
|
5017
5024
|
type: IntegrationType,
|
|
5018
5025
|
token: IntegrationToken
|
|
5019
5026
|
});
|
|
5020
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5021
|
-
organization:
|
|
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:
|
|
5030
|
+
project: z183.string().optional(),
|
|
5024
5031
|
// Only for Bitbucket and Azure
|
|
5025
|
-
repository:
|
|
5032
|
+
repository: z183.string().optional(),
|
|
5026
5033
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5027
|
-
branch:
|
|
5034
|
+
branch: z183.string().optional(),
|
|
5028
5035
|
// For all providers, useful for PR creations.
|
|
5029
|
-
user:
|
|
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 =
|
|
5035
|
-
id:
|
|
5036
|
-
createdAt:
|
|
5041
|
+
var DTODesignSystemVersion = z184.object({
|
|
5042
|
+
id: z184.string(),
|
|
5043
|
+
createdAt: z184.date(),
|
|
5037
5044
|
meta: ObjectMeta,
|
|
5038
|
-
version:
|
|
5039
|
-
isReadonly:
|
|
5040
|
-
changeLog:
|
|
5041
|
-
designSystemId:
|
|
5045
|
+
version: z184.string(),
|
|
5046
|
+
isReadonly: z184.boolean(),
|
|
5047
|
+
changeLog: z184.string(),
|
|
5048
|
+
designSystemId: z184.string()
|
|
5042
5049
|
});
|
|
5043
|
-
var DTODesignSystemVersionsListResponse =
|
|
5044
|
-
designSystemVersions:
|
|
5050
|
+
var DTODesignSystemVersionsListResponse = z184.object({
|
|
5051
|
+
designSystemVersions: z184.array(DTODesignSystemVersion)
|
|
5045
5052
|
});
|
|
5046
|
-
var DTODesignSystemVersionGetResponse =
|
|
5053
|
+
var DTODesignSystemVersionGetResponse = z184.object({
|
|
5047
5054
|
designSystemVersion: DTODesignSystemVersion
|
|
5048
5055
|
});
|
|
5049
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5056
|
+
var DTODesignSystemVersionCreationResponse = z184.object({
|
|
5050
5057
|
meta: ObjectMeta,
|
|
5051
|
-
version:
|
|
5052
|
-
changeLog:
|
|
5053
|
-
isReadOnly:
|
|
5054
|
-
designSystemId:
|
|
5055
|
-
jobId:
|
|
5056
|
-
});
|
|
5057
|
-
var VersionSQSPayload =
|
|
5058
|
-
jobId:
|
|
5059
|
-
designSystemId:
|
|
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 =
|
|
5063
|
-
jobs:
|
|
5069
|
+
var DTODesignSystemVersionJobsResponse = z184.object({
|
|
5070
|
+
jobs: z184.array(VersionCreationJob)
|
|
5064
5071
|
});
|
|
5065
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
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
|
|
5071
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5072
|
-
id:
|
|
5073
|
-
persistentId:
|
|
5074
|
-
width:
|
|
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:
|
|
5084
|
+
type: z185.literal("BaseProperty"),
|
|
5078
5085
|
basePropertyType: ElementViewBaseColumnType
|
|
5079
5086
|
});
|
|
5080
5087
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5081
|
-
type:
|
|
5082
|
-
propertyDefinitionId:
|
|
5088
|
+
type: z185.literal("PropertyDefinition"),
|
|
5089
|
+
propertyDefinitionId: z185.string()
|
|
5083
5090
|
});
|
|
5084
5091
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5085
|
-
type:
|
|
5086
|
-
themeId:
|
|
5092
|
+
type: z185.literal("Theme"),
|
|
5093
|
+
themeId: z185.string()
|
|
5087
5094
|
});
|
|
5088
|
-
var DTOElementViewColumn =
|
|
5095
|
+
var DTOElementViewColumn = z185.discriminatedUnion("type", [
|
|
5089
5096
|
DTOElementViewBasePropertyColumn,
|
|
5090
5097
|
DTOElementViewPropertyDefinitionColumn,
|
|
5091
5098
|
DTOElementViewThemeColumn
|
|
5092
5099
|
]);
|
|
5093
|
-
var DTOElementView =
|
|
5100
|
+
var DTOElementView = z185.object({
|
|
5094
5101
|
meta: ObjectMeta,
|
|
5095
|
-
persistentId:
|
|
5102
|
+
persistentId: z185.string(),
|
|
5096
5103
|
targetElementType: ElementPropertyTargetType,
|
|
5097
|
-
id:
|
|
5098
|
-
isDefault:
|
|
5099
|
-
columns:
|
|
5104
|
+
id: z185.string(),
|
|
5105
|
+
isDefault: z185.boolean(),
|
|
5106
|
+
columns: z185.array(DTOElementViewColumn)
|
|
5100
5107
|
});
|
|
5101
|
-
var DTOElementViewsListResponse =
|
|
5102
|
-
elementDataViews:
|
|
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
|
|
5113
|
+
import { z as z186 } from "zod";
|
|
5107
5114
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5108
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5109
|
-
anchors:
|
|
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
|
|
5123
|
+
import { z as z191 } from "zod";
|
|
5117
5124
|
|
|
5118
5125
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5119
|
-
import { z as
|
|
5126
|
+
import { z as z190 } from "zod";
|
|
5120
5127
|
|
|
5121
5128
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5122
|
-
import { z as
|
|
5129
|
+
import { z as z188 } from "zod";
|
|
5123
5130
|
|
|
5124
5131
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5125
|
-
import { z as
|
|
5132
|
+
import { z as z187 } from "zod";
|
|
5126
5133
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5127
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5128
|
-
showSidebar:
|
|
5129
|
-
isPrivate:
|
|
5130
|
-
isHidden:
|
|
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 =
|
|
5136
|
-
var DTODocumentationDraftStateCreated =
|
|
5137
|
-
changeType:
|
|
5138
|
-
});
|
|
5139
|
-
var DTODocumentationDraftStateUpdated =
|
|
5140
|
-
changeType:
|
|
5141
|
-
changes:
|
|
5142
|
-
previousTitle:
|
|
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:
|
|
5151
|
+
previousContentHash: z188.string().optional()
|
|
5145
5152
|
})
|
|
5146
5153
|
});
|
|
5147
|
-
var DTODocumentationDraftStateDeleted =
|
|
5148
|
-
changeType:
|
|
5149
|
-
deletedAt:
|
|
5150
|
-
deletedByUserId:
|
|
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 =
|
|
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
|
|
5160
|
-
var DTODocumentationPublishMetadata =
|
|
5161
|
-
lastPublishedByUserId:
|
|
5162
|
-
lastPublishedAt:
|
|
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 =
|
|
5167
|
-
id:
|
|
5168
|
-
persistentId:
|
|
5169
|
-
designSystemVersionId:
|
|
5170
|
-
title:
|
|
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:
|
|
5173
|
-
slug:
|
|
5174
|
-
userSlug:
|
|
5175
|
-
createdAt:
|
|
5176
|
-
updatedAt:
|
|
5177
|
-
path:
|
|
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:
|
|
5190
|
+
type: z190.literal("Page")
|
|
5184
5191
|
});
|
|
5185
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5192
|
+
var DTOCreateDocumentationPageInputV2 = z190.object({
|
|
5186
5193
|
// Identifier
|
|
5187
|
-
persistentId:
|
|
5194
|
+
persistentId: z190.string().uuid(),
|
|
5188
5195
|
// Page properties
|
|
5189
|
-
title:
|
|
5196
|
+
title: z190.string(),
|
|
5190
5197
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5191
5198
|
// Page placement properties
|
|
5192
|
-
parentPersistentId:
|
|
5193
|
-
afterPersistentId:
|
|
5199
|
+
parentPersistentId: z190.string().uuid(),
|
|
5200
|
+
afterPersistentId: z190.string().uuid().nullish()
|
|
5194
5201
|
});
|
|
5195
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5202
|
+
var DTOUpdateDocumentationPageInputV2 = z190.object({
|
|
5196
5203
|
// Identifier of the group to update
|
|
5197
|
-
id:
|
|
5204
|
+
id: z190.string(),
|
|
5198
5205
|
// Page properties
|
|
5199
|
-
title:
|
|
5206
|
+
title: z190.string().optional(),
|
|
5200
5207
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5201
5208
|
});
|
|
5202
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5209
|
+
var DTOMoveDocumentationPageInputV2 = z190.object({
|
|
5203
5210
|
// Identifier of the group to update
|
|
5204
|
-
id:
|
|
5211
|
+
id: z190.string(),
|
|
5205
5212
|
// Page placement properties
|
|
5206
|
-
parentPersistentId:
|
|
5207
|
-
afterPersistentId:
|
|
5213
|
+
parentPersistentId: z190.string().uuid(),
|
|
5214
|
+
afterPersistentId: z190.string().uuid().nullish()
|
|
5208
5215
|
});
|
|
5209
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5216
|
+
var DTODuplicateDocumentationPageInputV2 = z190.object({
|
|
5210
5217
|
// Identifier of the page to duplicate from
|
|
5211
|
-
id:
|
|
5218
|
+
id: z190.string(),
|
|
5212
5219
|
// New page persistent id
|
|
5213
|
-
persistentId:
|
|
5220
|
+
persistentId: z190.string().uuid(),
|
|
5214
5221
|
// Page placement properties
|
|
5215
|
-
parentPersistentId:
|
|
5216
|
-
afterPersistentId:
|
|
5222
|
+
parentPersistentId: z190.string().uuid(),
|
|
5223
|
+
afterPersistentId: z190.string().uuid().nullish()
|
|
5217
5224
|
});
|
|
5218
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5225
|
+
var DTODeleteDocumentationPageInputV2 = z190.object({
|
|
5219
5226
|
// Identifier
|
|
5220
|
-
id:
|
|
5227
|
+
id: z190.string()
|
|
5221
5228
|
});
|
|
5222
|
-
var DTORestoreDocumentationPageInput =
|
|
5223
|
-
persistentId:
|
|
5224
|
-
snapshotId:
|
|
5229
|
+
var DTORestoreDocumentationPageInput = z190.object({
|
|
5230
|
+
persistentId: z190.string(),
|
|
5231
|
+
snapshotId: z190.string().optional()
|
|
5225
5232
|
});
|
|
5226
|
-
var DTORestoreDocumentationGroupInput =
|
|
5227
|
-
persistentId:
|
|
5228
|
-
snapshotId:
|
|
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 =
|
|
5233
|
-
id:
|
|
5234
|
-
designSystemVersionId:
|
|
5235
|
-
createdAt:
|
|
5236
|
-
updatedAt:
|
|
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:
|
|
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
|
|
5244
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5250
|
+
import { z as z192 } from "zod";
|
|
5251
|
+
var DTODocumentationLinkPreviewResponse = z192.object({
|
|
5245
5252
|
linkPreview: DocumentationLinkPreview
|
|
5246
5253
|
});
|
|
5247
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5248
|
-
url:
|
|
5249
|
-
documentationItemPersistentId:
|
|
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
|
|
5260
|
+
import { z as z196 } from "zod";
|
|
5254
5261
|
|
|
5255
5262
|
// src/api/dto/export/exporter.ts
|
|
5256
|
-
import { z as
|
|
5257
|
-
var DTOExporterType =
|
|
5258
|
-
var DTOExporterSource =
|
|
5259
|
-
var DTOExporterMembershipRole =
|
|
5260
|
-
var DTOExporter =
|
|
5261
|
-
id:
|
|
5262
|
-
name:
|
|
5263
|
-
isPrivate:
|
|
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:
|
|
5266
|
-
iconURL:
|
|
5272
|
+
isDefaultDocumentationExporter: z193.boolean(),
|
|
5273
|
+
iconURL: z193.string().optional(),
|
|
5267
5274
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5268
5275
|
customBlocks: PulsarCustomBlock.array(),
|
|
5269
|
-
blockVariants:
|
|
5270
|
-
usesBrands:
|
|
5271
|
-
usesThemes:
|
|
5276
|
+
blockVariants: z193.record(z193.string(), PulsarContributionVariant.array()),
|
|
5277
|
+
usesBrands: z193.boolean(),
|
|
5278
|
+
usesThemes: z193.boolean(),
|
|
5272
5279
|
source: DTOExporterSource,
|
|
5273
|
-
gitUrl:
|
|
5274
|
-
gitBranch:
|
|
5275
|
-
gitDirectory:
|
|
5280
|
+
gitUrl: z193.string().optional(),
|
|
5281
|
+
gitBranch: z193.string().optional(),
|
|
5282
|
+
gitDirectory: z193.string().optional()
|
|
5276
5283
|
});
|
|
5277
|
-
var DTOExporterMembership =
|
|
5278
|
-
workspaceId:
|
|
5279
|
-
exporterId:
|
|
5284
|
+
var DTOExporterMembership = z193.object({
|
|
5285
|
+
workspaceId: z193.string(),
|
|
5286
|
+
exporterId: z193.string(),
|
|
5280
5287
|
role: DTOExporterMembershipRole
|
|
5281
5288
|
});
|
|
5282
|
-
var DTOExporterCreateOutput =
|
|
5289
|
+
var DTOExporterCreateOutput = z193.object({
|
|
5283
5290
|
exporter: DTOExporter,
|
|
5284
5291
|
membership: DTOExporterMembership
|
|
5285
5292
|
});
|
|
5286
|
-
var DTOExporterGitProviderEnum =
|
|
5287
|
-
var DTOExporterCreateInput =
|
|
5288
|
-
url:
|
|
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 =
|
|
5292
|
-
url:
|
|
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
|
|
5300
|
-
var DTOExportJobCreatedBy =
|
|
5301
|
-
userId:
|
|
5302
|
-
userName:
|
|
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 =
|
|
5305
|
-
id:
|
|
5311
|
+
var DTOExportJobDesignSystemPreview = z194.object({
|
|
5312
|
+
id: z194.string(),
|
|
5306
5313
|
meta: ObjectMeta
|
|
5307
5314
|
});
|
|
5308
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5309
|
-
id:
|
|
5315
|
+
var DTOExportJobDesignSystemVersionPreview = z194.object({
|
|
5316
|
+
id: z194.string(),
|
|
5310
5317
|
meta: ObjectMeta,
|
|
5311
|
-
version:
|
|
5312
|
-
isReadonly:
|
|
5318
|
+
version: z194.string(),
|
|
5319
|
+
isReadonly: z194.boolean()
|
|
5313
5320
|
});
|
|
5314
|
-
var DTOExportJobDestinations =
|
|
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:
|
|
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 =
|
|
5329
|
-
id:
|
|
5330
|
-
createdAt:
|
|
5331
|
-
finishedAt:
|
|
5332
|
-
index:
|
|
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:
|
|
5341
|
+
estimatedExecutionTime: z194.number().optional(),
|
|
5335
5342
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5336
5343
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5337
5344
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5338
5345
|
destinations: DTOExportJobDestinations,
|
|
5339
|
-
exporterId:
|
|
5340
|
-
scheduleId:
|
|
5346
|
+
exporterId: z194.string(),
|
|
5347
|
+
scheduleId: z194.string().optional(),
|
|
5341
5348
|
result: DTOExportJobResult.optional(),
|
|
5342
|
-
brandPersistentId:
|
|
5343
|
-
themePersistentId:
|
|
5349
|
+
brandPersistentId: z194.string().optional(),
|
|
5350
|
+
themePersistentId: z194.string().optional()
|
|
5344
5351
|
});
|
|
5345
|
-
var DTOExportJobResponse =
|
|
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
|
|
5351
|
-
var DTOPipeline =
|
|
5352
|
-
id:
|
|
5353
|
-
name:
|
|
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:
|
|
5356
|
-
workspaceId:
|
|
5357
|
-
designSystemId:
|
|
5358
|
-
exporterId:
|
|
5359
|
-
brandPersistentId:
|
|
5360
|
-
themePersistentId:
|
|
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 =
|
|
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 =
|
|
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
|
|
5387
|
+
import { z as z198 } from "zod";
|
|
5381
5388
|
|
|
5382
5389
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
5383
|
-
import { z as
|
|
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:
|
|
5394
|
-
isRoot:
|
|
5395
|
-
childrenIds:
|
|
5400
|
+
title: z197.string(),
|
|
5401
|
+
isRoot: z197.boolean(),
|
|
5402
|
+
childrenIds: z197.array(z197.string()),
|
|
5396
5403
|
groupBehavior: DocumentationGroupBehavior,
|
|
5397
|
-
shortPersistentId:
|
|
5404
|
+
shortPersistentId: z197.string(),
|
|
5398
5405
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5399
|
-
type:
|
|
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 =
|
|
5412
|
+
var DTOCreateDocumentationGroupInput = z197.object({
|
|
5406
5413
|
// Identifier
|
|
5407
|
-
persistentId:
|
|
5414
|
+
persistentId: z197.string().uuid(),
|
|
5408
5415
|
// Group properties
|
|
5409
|
-
title:
|
|
5416
|
+
title: z197.string(),
|
|
5410
5417
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5411
5418
|
// Group placement properties
|
|
5412
|
-
afterPersistentId:
|
|
5413
|
-
parentPersistentId:
|
|
5419
|
+
afterPersistentId: z197.string().uuid().nullish(),
|
|
5420
|
+
parentPersistentId: z197.string().uuid()
|
|
5414
5421
|
});
|
|
5415
|
-
var DTOUpdateDocumentationGroupInput =
|
|
5422
|
+
var DTOUpdateDocumentationGroupInput = z197.object({
|
|
5416
5423
|
// Identifier of the group to update
|
|
5417
|
-
id:
|
|
5424
|
+
id: z197.string(),
|
|
5418
5425
|
// Group properties
|
|
5419
|
-
title:
|
|
5426
|
+
title: z197.string().optional(),
|
|
5420
5427
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5421
5428
|
});
|
|
5422
|
-
var DTOMoveDocumentationGroupInput =
|
|
5429
|
+
var DTOMoveDocumentationGroupInput = z197.object({
|
|
5423
5430
|
// Identifier of the group to update
|
|
5424
|
-
id:
|
|
5431
|
+
id: z197.string(),
|
|
5425
5432
|
// Group placement properties
|
|
5426
|
-
parentPersistentId:
|
|
5427
|
-
afterPersistentId:
|
|
5433
|
+
parentPersistentId: z197.string().uuid(),
|
|
5434
|
+
afterPersistentId: z197.string().uuid().nullish()
|
|
5428
5435
|
});
|
|
5429
|
-
var DTODuplicateDocumentationGroupInput =
|
|
5436
|
+
var DTODuplicateDocumentationGroupInput = z197.object({
|
|
5430
5437
|
// Identifier of the group to duplicate from
|
|
5431
|
-
id:
|
|
5438
|
+
id: z197.string(),
|
|
5432
5439
|
// New group persistent id
|
|
5433
|
-
persistentId:
|
|
5440
|
+
persistentId: z197.string().uuid(),
|
|
5434
5441
|
// Group placement properties
|
|
5435
|
-
afterPersistentId:
|
|
5436
|
-
parentPersistentId:
|
|
5442
|
+
afterPersistentId: z197.string().uuid().nullish(),
|
|
5443
|
+
parentPersistentId: z197.string().uuid()
|
|
5437
5444
|
});
|
|
5438
|
-
var DTOCreateDocumentationTabInput =
|
|
5445
|
+
var DTOCreateDocumentationTabInput = z197.object({
|
|
5439
5446
|
// New group persistent id
|
|
5440
|
-
persistentId:
|
|
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:
|
|
5444
|
-
tabName:
|
|
5450
|
+
fromItemPersistentId: z197.string(),
|
|
5451
|
+
tabName: z197.string()
|
|
5445
5452
|
});
|
|
5446
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
5453
|
+
var DTODeleteDocumentationTabGroupInput = z197.object({
|
|
5447
5454
|
// Deleted group id
|
|
5448
|
-
id:
|
|
5455
|
+
id: z197.string()
|
|
5449
5456
|
});
|
|
5450
|
-
var DTODeleteDocumentationGroupInput =
|
|
5457
|
+
var DTODeleteDocumentationGroupInput = z197.object({
|
|
5451
5458
|
// Identifier
|
|
5452
|
-
id:
|
|
5459
|
+
id: z197.string(),
|
|
5453
5460
|
// Deletion options
|
|
5454
|
-
deleteSubtree:
|
|
5461
|
+
deleteSubtree: z197.boolean().default(false)
|
|
5455
5462
|
});
|
|
5456
5463
|
|
|
5457
5464
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5458
|
-
var SuccessPayload =
|
|
5459
|
-
success:
|
|
5465
|
+
var SuccessPayload = z198.object({
|
|
5466
|
+
success: z198.literal(true)
|
|
5460
5467
|
});
|
|
5461
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
5462
|
-
type:
|
|
5468
|
+
var DTODocumentationGroupCreateActionOutputV2 = z198.object({
|
|
5469
|
+
type: z198.literal("DocumentationGroupCreate"),
|
|
5463
5470
|
output: SuccessPayload
|
|
5464
5471
|
});
|
|
5465
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
5466
|
-
type:
|
|
5472
|
+
var DTODocumentationTabCreateActionOutputV2 = z198.object({
|
|
5473
|
+
type: z198.literal("DocumentationTabCreate"),
|
|
5467
5474
|
output: SuccessPayload
|
|
5468
5475
|
});
|
|
5469
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
5470
|
-
type:
|
|
5476
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z198.object({
|
|
5477
|
+
type: z198.literal("DocumentationGroupUpdate"),
|
|
5471
5478
|
output: SuccessPayload
|
|
5472
5479
|
});
|
|
5473
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
5474
|
-
type:
|
|
5480
|
+
var DTODocumentationGroupMoveActionOutputV2 = z198.object({
|
|
5481
|
+
type: z198.literal("DocumentationGroupMove"),
|
|
5475
5482
|
output: SuccessPayload
|
|
5476
5483
|
});
|
|
5477
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
5478
|
-
type:
|
|
5484
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z198.object({
|
|
5485
|
+
type: z198.literal("DocumentationGroupDuplicate"),
|
|
5479
5486
|
output: SuccessPayload
|
|
5480
5487
|
});
|
|
5481
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
5482
|
-
type:
|
|
5488
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z198.object({
|
|
5489
|
+
type: z198.literal("DocumentationGroupDelete"),
|
|
5483
5490
|
output: SuccessPayload
|
|
5484
5491
|
});
|
|
5485
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
5486
|
-
type:
|
|
5492
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z198.object({
|
|
5493
|
+
type: z198.literal("DocumentationTabGroupDelete"),
|
|
5487
5494
|
output: SuccessPayload
|
|
5488
5495
|
});
|
|
5489
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
5490
|
-
type:
|
|
5496
|
+
var DTODocumentationGroupCreateActionInputV2 = z198.object({
|
|
5497
|
+
type: z198.literal("DocumentationGroupCreate"),
|
|
5491
5498
|
input: DTOCreateDocumentationGroupInput
|
|
5492
5499
|
});
|
|
5493
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
5494
|
-
type:
|
|
5500
|
+
var DTODocumentationTabCreateActionInputV2 = z198.object({
|
|
5501
|
+
type: z198.literal("DocumentationTabCreate"),
|
|
5495
5502
|
input: DTOCreateDocumentationTabInput
|
|
5496
5503
|
});
|
|
5497
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
5498
|
-
type:
|
|
5504
|
+
var DTODocumentationGroupUpdateActionInputV2 = z198.object({
|
|
5505
|
+
type: z198.literal("DocumentationGroupUpdate"),
|
|
5499
5506
|
input: DTOUpdateDocumentationGroupInput
|
|
5500
5507
|
});
|
|
5501
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
5502
|
-
type:
|
|
5508
|
+
var DTODocumentationGroupMoveActionInputV2 = z198.object({
|
|
5509
|
+
type: z198.literal("DocumentationGroupMove"),
|
|
5503
5510
|
input: DTOMoveDocumentationGroupInput
|
|
5504
5511
|
});
|
|
5505
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
5506
|
-
type:
|
|
5512
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z198.object({
|
|
5513
|
+
type: z198.literal("DocumentationGroupDuplicate"),
|
|
5507
5514
|
input: DTODuplicateDocumentationGroupInput
|
|
5508
5515
|
});
|
|
5509
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
5510
|
-
type:
|
|
5516
|
+
var DTODocumentationGroupDeleteActionInputV2 = z198.object({
|
|
5517
|
+
type: z198.literal("DocumentationGroupDelete"),
|
|
5511
5518
|
input: DTODeleteDocumentationGroupInput
|
|
5512
5519
|
});
|
|
5513
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
5514
|
-
type:
|
|
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
|
|
5526
|
+
import { z as z200 } from "zod";
|
|
5520
5527
|
|
|
5521
5528
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
5522
|
-
import { z as
|
|
5523
|
-
var DocumentationColorV1 =
|
|
5524
|
-
aliasTo:
|
|
5525
|
-
value:
|
|
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 =
|
|
5535
|
-
showSidebar:
|
|
5536
|
-
isPrivate:
|
|
5537
|
-
isHidden:
|
|
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:
|
|
5552
|
-
isRoot:
|
|
5553
|
-
childrenIds:
|
|
5558
|
+
title: z200.string(),
|
|
5559
|
+
isRoot: z200.boolean(),
|
|
5560
|
+
childrenIds: z200.array(z200.string()),
|
|
5554
5561
|
groupBehavior: DocumentationGroupBehavior,
|
|
5555
|
-
shortPersistentId:
|
|
5556
|
-
type:
|
|
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
|
|
5564
|
-
var DTODocumentationHierarchyV2 =
|
|
5565
|
-
pages:
|
|
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:
|
|
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
|
|
5581
|
-
var SuccessPayload2 =
|
|
5582
|
-
success:
|
|
5587
|
+
import { z as z202 } from "zod";
|
|
5588
|
+
var SuccessPayload2 = z202.object({
|
|
5589
|
+
success: z202.literal(true)
|
|
5583
5590
|
});
|
|
5584
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
5585
|
-
type:
|
|
5591
|
+
var DTODocumentationPageCreateActionOutputV2 = z202.object({
|
|
5592
|
+
type: z202.literal("DocumentationPageCreate"),
|
|
5586
5593
|
output: SuccessPayload2
|
|
5587
5594
|
});
|
|
5588
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
5589
|
-
type:
|
|
5595
|
+
var DTODocumentationPageUpdateActionOutputV2 = z202.object({
|
|
5596
|
+
type: z202.literal("DocumentationPageUpdate"),
|
|
5590
5597
|
output: SuccessPayload2
|
|
5591
5598
|
});
|
|
5592
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
5593
|
-
type:
|
|
5599
|
+
var DTODocumentationPageMoveActionOutputV2 = z202.object({
|
|
5600
|
+
type: z202.literal("DocumentationPageMove"),
|
|
5594
5601
|
output: SuccessPayload2
|
|
5595
5602
|
});
|
|
5596
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
5597
|
-
type:
|
|
5603
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z202.object({
|
|
5604
|
+
type: z202.literal("DocumentationPageDuplicate"),
|
|
5598
5605
|
output: SuccessPayload2
|
|
5599
5606
|
});
|
|
5600
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
5601
|
-
type:
|
|
5607
|
+
var DTODocumentationPageDeleteActionOutputV2 = z202.object({
|
|
5608
|
+
type: z202.literal("DocumentationPageDelete"),
|
|
5602
5609
|
output: SuccessPayload2
|
|
5603
5610
|
});
|
|
5604
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
5605
|
-
type:
|
|
5611
|
+
var DTODocumentationPageRestoreActionOutput = z202.object({
|
|
5612
|
+
type: z202.literal("DocumentationPageRestore"),
|
|
5606
5613
|
output: SuccessPayload2
|
|
5607
5614
|
});
|
|
5608
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
5609
|
-
type:
|
|
5615
|
+
var DTODocumentationGroupRestoreActionOutput = z202.object({
|
|
5616
|
+
type: z202.literal("DocumentationGroupRestore"),
|
|
5610
5617
|
output: SuccessPayload2
|
|
5611
5618
|
});
|
|
5612
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
5613
|
-
type:
|
|
5619
|
+
var DTODocumentationPageCreateActionInputV2 = z202.object({
|
|
5620
|
+
type: z202.literal("DocumentationPageCreate"),
|
|
5614
5621
|
input: DTOCreateDocumentationPageInputV2
|
|
5615
5622
|
});
|
|
5616
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
5617
|
-
type:
|
|
5623
|
+
var DTODocumentationPageUpdateActionInputV2 = z202.object({
|
|
5624
|
+
type: z202.literal("DocumentationPageUpdate"),
|
|
5618
5625
|
input: DTOUpdateDocumentationPageInputV2
|
|
5619
5626
|
});
|
|
5620
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
5621
|
-
type:
|
|
5627
|
+
var DTODocumentationPageMoveActionInputV2 = z202.object({
|
|
5628
|
+
type: z202.literal("DocumentationPageMove"),
|
|
5622
5629
|
input: DTOMoveDocumentationPageInputV2
|
|
5623
5630
|
});
|
|
5624
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
5625
|
-
type:
|
|
5631
|
+
var DTODocumentationPageDuplicateActionInputV2 = z202.object({
|
|
5632
|
+
type: z202.literal("DocumentationPageDuplicate"),
|
|
5626
5633
|
input: DTODuplicateDocumentationPageInputV2
|
|
5627
5634
|
});
|
|
5628
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
5629
|
-
type:
|
|
5635
|
+
var DTODocumentationPageDeleteActionInputV2 = z202.object({
|
|
5636
|
+
type: z202.literal("DocumentationPageDelete"),
|
|
5630
5637
|
input: DTODeleteDocumentationPageInputV2
|
|
5631
5638
|
});
|
|
5632
|
-
var DTODocumentationPageRestoreActionInput =
|
|
5633
|
-
type:
|
|
5639
|
+
var DTODocumentationPageRestoreActionInput = z202.object({
|
|
5640
|
+
type: z202.literal("DocumentationPageRestore"),
|
|
5634
5641
|
input: DTORestoreDocumentationPageInput
|
|
5635
5642
|
});
|
|
5636
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
5637
|
-
type:
|
|
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
|
|
5649
|
+
import { z as z203 } from "zod";
|
|
5643
5650
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
5644
|
-
var DTODocumentationPageContentGetResponse =
|
|
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
|
|
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:
|
|
5658
|
-
title:
|
|
5659
|
-
path:
|
|
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
|
|
5664
|
-
var DTOFigmaNodeOrigin =
|
|
5665
|
-
sourceId:
|
|
5666
|
-
fileId:
|
|
5667
|
-
parentName:
|
|
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 =
|
|
5676
|
+
var DTOFigmaNodeData = z205.object({
|
|
5670
5677
|
// Id of the node in the Figma file
|
|
5671
|
-
figmaNodeId:
|
|
5678
|
+
figmaNodeId: z205.string(),
|
|
5672
5679
|
// Validity
|
|
5673
|
-
isValid:
|
|
5680
|
+
isValid: z205.boolean(),
|
|
5674
5681
|
// Asset data
|
|
5675
|
-
assetId:
|
|
5676
|
-
assetUrl:
|
|
5682
|
+
assetId: z205.string(),
|
|
5683
|
+
assetUrl: z205.string(),
|
|
5677
5684
|
// Asset metadata
|
|
5678
|
-
assetScale:
|
|
5679
|
-
assetWidth:
|
|
5680
|
-
assetHeight:
|
|
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 =
|
|
5696
|
+
var DTOFigmaNodeRenderInput = z205.object({
|
|
5690
5697
|
// Id of a design system's data source representing a linked Figma file
|
|
5691
|
-
sourceId:
|
|
5698
|
+
sourceId: z205.string(),
|
|
5692
5699
|
// Id of a node within the Figma file
|
|
5693
|
-
figmaFileNodeId:
|
|
5700
|
+
figmaFileNodeId: z205.string()
|
|
5694
5701
|
});
|
|
5695
5702
|
|
|
5696
5703
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
5697
|
-
import { z as
|
|
5698
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
5699
|
-
type:
|
|
5700
|
-
figmaNodes:
|
|
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 =
|
|
5703
|
-
type:
|
|
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
|
|
5715
|
+
import { z as z208 } from "zod";
|
|
5709
5716
|
|
|
5710
5717
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
5711
|
-
import { z as
|
|
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 =
|
|
5714
|
-
id:
|
|
5715
|
-
designSystemVersionId:
|
|
5720
|
+
var DTOElementPropertyDefinition = z207.object({
|
|
5721
|
+
id: z207.string(),
|
|
5722
|
+
designSystemVersionId: z207.string(),
|
|
5716
5723
|
meta: ObjectMeta,
|
|
5717
|
-
persistentId:
|
|
5724
|
+
persistentId: z207.string(),
|
|
5718
5725
|
type: ElementPropertyTypeSchema,
|
|
5719
5726
|
targetElementType: ElementPropertyTargetType,
|
|
5720
|
-
codeName:
|
|
5721
|
-
options:
|
|
5727
|
+
codeName: z207.string().regex(CODE_NAME_REGEX2),
|
|
5728
|
+
options: z207.array(ElementPropertyDefinitionOption).optional(),
|
|
5722
5729
|
linkElementType: ElementPropertyLinkType.optional()
|
|
5723
5730
|
});
|
|
5724
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
5725
|
-
definitions:
|
|
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 =
|
|
5732
|
-
id:
|
|
5733
|
-
name:
|
|
5734
|
-
description:
|
|
5735
|
-
codeName:
|
|
5736
|
-
options:
|
|
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 =
|
|
5739
|
-
id:
|
|
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 =
|
|
5744
|
-
success:
|
|
5750
|
+
var SuccessPayload3 = z208.object({
|
|
5751
|
+
success: z208.literal(true)
|
|
5745
5752
|
});
|
|
5746
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
5747
|
-
type:
|
|
5753
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z208.object({
|
|
5754
|
+
type: z208.literal("PropertyDefinitionCreate"),
|
|
5748
5755
|
definition: DTOElementPropertyDefinition
|
|
5749
5756
|
});
|
|
5750
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
5751
|
-
type:
|
|
5757
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z208.object({
|
|
5758
|
+
type: z208.literal("PropertyDefinitionUpdate"),
|
|
5752
5759
|
definition: DTOElementPropertyDefinition
|
|
5753
5760
|
});
|
|
5754
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
5755
|
-
type:
|
|
5761
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z208.object({
|
|
5762
|
+
type: z208.literal("PropertyDefinitionDelete"),
|
|
5756
5763
|
output: SuccessPayload3
|
|
5757
5764
|
});
|
|
5758
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
5759
|
-
type:
|
|
5765
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z208.object({
|
|
5766
|
+
type: z208.literal("PropertyDefinitionCreate"),
|
|
5760
5767
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
5761
5768
|
});
|
|
5762
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
5763
|
-
type:
|
|
5769
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z208.object({
|
|
5770
|
+
type: z208.literal("PropertyDefinitionUpdate"),
|
|
5764
5771
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
5765
5772
|
});
|
|
5766
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
5767
|
-
type:
|
|
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
|
|
5773
|
-
var DTOElementPropertyValue =
|
|
5774
|
-
id:
|
|
5775
|
-
designSystemVersionId:
|
|
5776
|
-
definitionId:
|
|
5777
|
-
targetElementId:
|
|
5778
|
-
value:
|
|
5779
|
-
valuePreview:
|
|
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 =
|
|
5782
|
-
values:
|
|
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
|
|
5787
|
-
var DTOElementActionOutput =
|
|
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 =
|
|
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
|
|
5840
|
-
var DTOElementsGetTypeFilter =
|
|
5841
|
-
var DTOElementsGetQuerySchema =
|
|
5842
|
-
types:
|
|
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 =
|
|
5845
|
-
figmaNodes:
|
|
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
|
|
5850
|
-
var DTOAssetRenderConfiguration =
|
|
5851
|
-
prefix:
|
|
5852
|
-
suffix:
|
|
5853
|
-
scale:
|
|
5854
|
-
format:
|
|
5855
|
-
});
|
|
5856
|
-
var DTORenderedAssetFile =
|
|
5857
|
-
assetId:
|
|
5858
|
-
fileName:
|
|
5859
|
-
sourceUrl:
|
|
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:
|
|
5868
|
+
originalName: z212.string()
|
|
5862
5869
|
});
|
|
5863
|
-
var DTODownloadAssetsRequest =
|
|
5864
|
-
persistentIds:
|
|
5870
|
+
var DTODownloadAssetsRequest = z212.object({
|
|
5871
|
+
persistentIds: z212.array(z212.string().uuid()).optional(),
|
|
5865
5872
|
settings: DTOAssetRenderConfiguration.array()
|
|
5866
5873
|
});
|
|
5867
|
-
var DTODownloadAssetsResponse =
|
|
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
|
|
5873
|
-
var DTOLiveblocksAuthResponse =
|
|
5874
|
-
token:
|
|
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
|
|
5879
|
-
var DTOUserProfileUpdateResponse =
|
|
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
|
|
5885
|
-
var DTOGitOrganization =
|
|
5886
|
-
id:
|
|
5887
|
-
name:
|
|
5888
|
-
url:
|
|
5889
|
-
slug:
|
|
5890
|
-
});
|
|
5891
|
-
var DTOGitProject =
|
|
5892
|
-
id:
|
|
5893
|
-
name:
|
|
5894
|
-
url:
|
|
5895
|
-
slug:
|
|
5896
|
-
});
|
|
5897
|
-
var DTOGitRepository =
|
|
5898
|
-
id:
|
|
5899
|
-
name:
|
|
5900
|
-
url:
|
|
5901
|
-
slug:
|
|
5902
|
-
defaultBranch:
|
|
5903
|
-
});
|
|
5904
|
-
var DTOGitBranch =
|
|
5905
|
-
name:
|
|
5906
|
-
lastCommitId:
|
|
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
|
|
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 =
|
|
5916
|
-
id:
|
|
5917
|
-
workspaceId:
|
|
5922
|
+
var DTOIntegration = z216.object({
|
|
5923
|
+
id: z216.string(),
|
|
5924
|
+
workspaceId: z216.string(),
|
|
5918
5925
|
type: ExtendedIntegrationType,
|
|
5919
|
-
createdAt:
|
|
5920
|
-
integrationCredentials:
|
|
5921
|
-
integrationDesignSystems:
|
|
5926
|
+
createdAt: z216.coerce.date(),
|
|
5927
|
+
integrationCredentials: z216.array(DTOIntegrationCredentials).optional(),
|
|
5928
|
+
integrationDesignSystems: z216.array(IntegrationDesignSystem).optional()
|
|
5922
5929
|
});
|
|
5923
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5924
|
-
url:
|
|
5930
|
+
var DTOIntegrationOAuthGetResponse = z216.object({
|
|
5931
|
+
url: z216.string()
|
|
5925
5932
|
});
|
|
5926
|
-
var DTOIntegrationPostResponse =
|
|
5933
|
+
var DTOIntegrationPostResponse = z216.object({
|
|
5927
5934
|
integration: DTOIntegration
|
|
5928
5935
|
});
|
|
5929
|
-
var DTOIntegrationsGetListResponse =
|
|
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
|
|
5941
|
+
import { z as z219 } from "zod";
|
|
5935
5942
|
|
|
5936
5943
|
// src/api/dto/workspaces/workspace.ts
|
|
5937
|
-
import { z as
|
|
5944
|
+
import { z as z218 } from "zod";
|
|
5938
5945
|
|
|
5939
5946
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5940
|
-
import { z as
|
|
5947
|
+
import { z as z217 } from "zod";
|
|
5941
5948
|
var DTONpmRegistryConfigConstants = {
|
|
5942
5949
|
passwordPlaceholder: "redacted"
|
|
5943
5950
|
};
|
|
5944
|
-
var DTONpmRegistryConfig =
|
|
5951
|
+
var DTONpmRegistryConfig = z217.object({
|
|
5945
5952
|
// Registry basic configuration
|
|
5946
5953
|
registryType: NpmRegistryType,
|
|
5947
|
-
registryUrl:
|
|
5948
|
-
customRegistryUrl:
|
|
5954
|
+
registryUrl: z217.string(),
|
|
5955
|
+
customRegistryUrl: z217.string().optional(),
|
|
5949
5956
|
// URL of Supernova NPM packages proxy
|
|
5950
|
-
proxyUrl:
|
|
5957
|
+
proxyUrl: z217.string(),
|
|
5951
5958
|
// Auth configuration
|
|
5952
5959
|
authType: NpmRegistryAuthType,
|
|
5953
|
-
accessToken:
|
|
5954
|
-
username:
|
|
5955
|
-
password:
|
|
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:
|
|
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:
|
|
5967
|
+
bypassProxy: z217.boolean()
|
|
5961
5968
|
});
|
|
5962
5969
|
|
|
5963
5970
|
// src/api/dto/workspaces/workspace.ts
|
|
5964
|
-
var DTOWorkspace =
|
|
5965
|
-
id:
|
|
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 =
|
|
5973
|
-
var DTOUserWorkspaceMembership =
|
|
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 =
|
|
5984
|
-
membership:
|
|
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
|
|
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 =
|
|
6467
|
-
routingVersion:
|
|
6468
|
-
isDraftFeatureAdopted:
|
|
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
|
|
6476
|
-
var DTODocumentationPageRoomHeaderData =
|
|
6477
|
-
title:
|
|
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 =
|
|
6481
|
-
title:
|
|
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:
|
|
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
|
|
6543
|
-
var DocumentationPageEditorModel =
|
|
6544
|
-
blocks:
|
|
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
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
10547
|
+
const href = getProsemirrorAttribute(mark, "href", z223.string().optional());
|
|
10541
10548
|
if (!href)
|
|
10542
10549
|
return null;
|
|
10543
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
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",
|
|
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",
|
|
10620
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z223.string().optional());
|
|
10614
10621
|
let columnWidth;
|
|
10615
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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",
|
|
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(
|
|
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,
|