@supernova-studio/client 0.47.17 → 0.47.18
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 +1793 -262
- package/dist/index.d.ts +1793 -262
- package/dist/index.js +150 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +628 -518
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/export/index.ts +1 -0
- package/src/api/conversion/export/pipeline.ts +23 -0
- package/src/api/conversion/index.ts +1 -0
- package/src/api/dto/export/index.ts +1 -0
- package/src/api/dto/export/job.ts +7 -2
- package/src/api/dto/export/pipeline.ts +17 -0
- package/src/api/payloads/export/index.ts +1 -0
- package/src/api/payloads/export/pipeline.ts +46 -0
- package/src/api/payloads/index.ts +1 -0
- package/src/api/payloads/workspaces/workspace-integrations.ts +3 -3
package/dist/index.mjs
CHANGED
|
@@ -143,10 +143,10 @@ import { z as z133 } from "zod";
|
|
|
143
143
|
import { z as z134 } from "zod";
|
|
144
144
|
import { z as z135 } from "zod";
|
|
145
145
|
import { z as z136 } from "zod";
|
|
146
|
+
import { z as z139 } from "zod";
|
|
146
147
|
import { z as z137 } from "zod";
|
|
147
|
-
import { z as z140 } from "zod";
|
|
148
148
|
import { z as z138 } from "zod";
|
|
149
|
-
import { z as
|
|
149
|
+
import { z as z140 } from "zod";
|
|
150
150
|
import { z as z141 } from "zod";
|
|
151
151
|
import { z as z143 } from "zod";
|
|
152
152
|
import { z as z142 } from "zod";
|
|
@@ -2766,42 +2766,44 @@ var ExporterDestinationDocs = z133.object({
|
|
|
2766
2766
|
});
|
|
2767
2767
|
var ExporterDestinationS3 = z133.object({});
|
|
2768
2768
|
var ExporterDestinationGithub = z133.object({
|
|
2769
|
+
credentialId: z133.string().optional(),
|
|
2770
|
+
// Repository
|
|
2769
2771
|
url: z133.string(),
|
|
2772
|
+
// Location
|
|
2770
2773
|
branch: z133.string(),
|
|
2771
|
-
|
|
2772
|
-
connectionId: z133.string(),
|
|
2773
|
-
relativePath: z133.string()
|
|
2774
|
+
relativePath: nullishToOptional(z133.string())
|
|
2774
2775
|
});
|
|
2775
2776
|
var ExporterDestinationAzure = z133.object({
|
|
2776
|
-
|
|
2777
|
+
credentialId: z133.string().optional(),
|
|
2778
|
+
// Repository
|
|
2777
2779
|
organizationId: z133.string(),
|
|
2778
2780
|
projectId: z133.string(),
|
|
2779
2781
|
repositoryId: z133.string(),
|
|
2782
|
+
// Location
|
|
2780
2783
|
branch: z133.string(),
|
|
2781
|
-
relativePath: z133.string()
|
|
2782
|
-
//
|
|
2783
|
-
|
|
2784
|
-
// url: z.string(),
|
|
2784
|
+
relativePath: nullishToOptional(z133.string()),
|
|
2785
|
+
// Maybe not needed
|
|
2786
|
+
url: nullishToOptional(z133.string())
|
|
2785
2787
|
});
|
|
2786
2788
|
var ExporterDestinationGitlab = z133.object({
|
|
2787
|
-
|
|
2789
|
+
credentialId: z133.string().optional(),
|
|
2790
|
+
// Repository
|
|
2788
2791
|
projectId: z133.string(),
|
|
2792
|
+
// Location
|
|
2789
2793
|
branch: z133.string(),
|
|
2790
|
-
relativePath: z133.string()
|
|
2791
|
-
//
|
|
2792
|
-
|
|
2793
|
-
// url: z.string(),
|
|
2794
|
+
relativePath: nullishToOptional(z133.string()),
|
|
2795
|
+
// Maybe not needed
|
|
2796
|
+
url: nullishToOptional(z133.string())
|
|
2794
2797
|
});
|
|
2795
2798
|
var ExporterDestinationBitbucket = z133.object({
|
|
2796
|
-
|
|
2799
|
+
credentialId: z133.string().optional(),
|
|
2800
|
+
// Repository
|
|
2797
2801
|
workspaceSlug: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2798
2802
|
projectKey: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2799
2803
|
repoSlug: z133.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2804
|
+
// Location
|
|
2800
2805
|
branch: z133.string(),
|
|
2801
|
-
relativePath: z133.string()
|
|
2802
|
-
// // +
|
|
2803
|
-
// userId: z.string(),
|
|
2804
|
-
// url: z.string(),
|
|
2806
|
+
relativePath: nullishToOptional(z133.string())
|
|
2805
2807
|
});
|
|
2806
2808
|
var ExportDestinationsMap = z133.object({
|
|
2807
2809
|
webhookUrl: z133.string().optional(),
|
|
@@ -2812,7 +2814,15 @@ var ExportDestinationsMap = z133.object({
|
|
|
2812
2814
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
2813
2815
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
2814
2816
|
});
|
|
2815
|
-
var ExportJobDestinationType = z134.enum([
|
|
2817
|
+
var ExportJobDestinationType = z134.enum([
|
|
2818
|
+
"s3",
|
|
2819
|
+
"webhookUrl",
|
|
2820
|
+
"github",
|
|
2821
|
+
"documentation",
|
|
2822
|
+
"azure",
|
|
2823
|
+
"gitlab",
|
|
2824
|
+
"bitbucket"
|
|
2825
|
+
]);
|
|
2816
2826
|
var ExportJobStatus = z134.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
2817
2827
|
var ExportJobLogEntryType = z134.enum(["success", "info", "warning", "error", "user"]);
|
|
2818
2828
|
var ExportJobLogEntry = z134.object({
|
|
@@ -2873,25 +2883,11 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
2873
2883
|
destinations: z134.array(ExportJobDestinationType),
|
|
2874
2884
|
docsEnvironment: PublishedDocEnvironment
|
|
2875
2885
|
}).partial();
|
|
2876
|
-
var
|
|
2877
|
-
var
|
|
2878
|
-
id:
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
isEnabled: z135.boolean(),
|
|
2882
|
-
workspaceId: z135.string(),
|
|
2883
|
-
designSystemId: z135.string(),
|
|
2884
|
-
exporterId: z135.string(),
|
|
2885
|
-
brandId: z135.string().optional(),
|
|
2886
|
-
themeId: z135.string().optional(),
|
|
2887
|
-
// Destinations
|
|
2888
|
-
...ExportDestinationsMap.shape
|
|
2889
|
-
});
|
|
2890
|
-
var ExporterWorkspaceMembershipRole = z136.enum(["Owner", "OwnerArchived", "User"]);
|
|
2891
|
-
var ExporterWorkspaceMembership = z137.object({
|
|
2892
|
-
id: z137.string(),
|
|
2893
|
-
workspaceId: z137.string(),
|
|
2894
|
-
exporterId: z137.string(),
|
|
2886
|
+
var ExporterWorkspaceMembershipRole = z135.enum(["Owner", "OwnerArchived", "User"]);
|
|
2887
|
+
var ExporterWorkspaceMembership = z136.object({
|
|
2888
|
+
id: z136.string(),
|
|
2889
|
+
workspaceId: z136.string(),
|
|
2890
|
+
exporterId: z136.string(),
|
|
2895
2891
|
role: ExporterWorkspaceMembershipRole
|
|
2896
2892
|
});
|
|
2897
2893
|
var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
@@ -2901,8 +2897,8 @@ var GitProviderNames = /* @__PURE__ */ ((GitProviderNames2) => {
|
|
|
2901
2897
|
GitProviderNames2["Bitbucket"] = "bitbucket";
|
|
2902
2898
|
return GitProviderNames2;
|
|
2903
2899
|
})(GitProviderNames || {});
|
|
2904
|
-
var GitProvider =
|
|
2905
|
-
var PulsarPropertyType =
|
|
2900
|
+
var GitProvider = z137.nativeEnum(GitProviderNames);
|
|
2901
|
+
var PulsarPropertyType = z138.enum([
|
|
2906
2902
|
"string",
|
|
2907
2903
|
"number",
|
|
2908
2904
|
"boolean",
|
|
@@ -2915,72 +2911,89 @@ var PulsarPropertyType = z139.enum([
|
|
|
2915
2911
|
"tokenProperties",
|
|
2916
2912
|
"tokenType"
|
|
2917
2913
|
]);
|
|
2918
|
-
var PulsarBaseProperty =
|
|
2919
|
-
label:
|
|
2920
|
-
key:
|
|
2921
|
-
description:
|
|
2914
|
+
var PulsarBaseProperty = z138.object({
|
|
2915
|
+
label: z138.string(),
|
|
2916
|
+
key: z138.string(),
|
|
2917
|
+
description: z138.string().nullish(),
|
|
2922
2918
|
type: PulsarPropertyType,
|
|
2923
|
-
values:
|
|
2924
|
-
default:
|
|
2919
|
+
values: z138.array(z138.string()).nullish(),
|
|
2920
|
+
default: z138.union([z138.string(), z138.boolean(), z138.number()]).nullish(),
|
|
2925
2921
|
// PulsarPropertyValueType //is optional?
|
|
2926
|
-
inputType:
|
|
2922
|
+
inputType: z138.enum(["code", "plain"]).optional(),
|
|
2927
2923
|
//is optional?
|
|
2928
|
-
isMultiline:
|
|
2924
|
+
isMultiline: z138.boolean().nullish()
|
|
2929
2925
|
});
|
|
2930
2926
|
var PulsarContributionConfigurationProperty = PulsarBaseProperty.extend({
|
|
2931
|
-
category:
|
|
2932
|
-
});
|
|
2933
|
-
var PulsarContributionVariant =
|
|
2934
|
-
key:
|
|
2935
|
-
name:
|
|
2936
|
-
isDefault: nullishToOptional(
|
|
2937
|
-
description: nullishToOptional(
|
|
2938
|
-
thumbnailURL: nullishToOptional(
|
|
2939
|
-
});
|
|
2940
|
-
var PulsarCustomBlock =
|
|
2941
|
-
title: nullishToOptional(
|
|
2942
|
-
key:
|
|
2943
|
-
category: nullishToOptional(
|
|
2944
|
-
description: nullishToOptional(
|
|
2927
|
+
category: z138.string()
|
|
2928
|
+
});
|
|
2929
|
+
var PulsarContributionVariant = z138.object({
|
|
2930
|
+
key: z138.string(),
|
|
2931
|
+
name: z138.string(),
|
|
2932
|
+
isDefault: nullishToOptional(z138.boolean()),
|
|
2933
|
+
description: nullishToOptional(z138.string()),
|
|
2934
|
+
thumbnailURL: nullishToOptional(z138.string())
|
|
2935
|
+
});
|
|
2936
|
+
var PulsarCustomBlock = z138.object({
|
|
2937
|
+
title: nullishToOptional(z138.string()),
|
|
2938
|
+
key: z138.string(),
|
|
2939
|
+
category: nullishToOptional(z138.string()),
|
|
2940
|
+
description: nullishToOptional(z138.string()),
|
|
2941
|
+
iconURL: nullishToOptional(z138.string()),
|
|
2942
|
+
mode: nullishToOptional(z138.enum(["array", "block"])),
|
|
2943
|
+
properties: nullishToOptional(z138.array(PulsarBaseProperty)).transform((v) => v ?? [])
|
|
2944
|
+
});
|
|
2945
|
+
var ExporterType = z139.enum(["code", "documentation"]);
|
|
2946
|
+
var ExporterSource = z139.enum(["git", "upload"]);
|
|
2947
|
+
var ExporterTag = z139.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2948
|
+
var ExporterPulsarDetails = z139.object({
|
|
2949
|
+
description: z139.string(),
|
|
2950
|
+
version: z139.string(),
|
|
2951
|
+
routingVersion: nullishToOptional(z139.string()),
|
|
2952
|
+
author: nullishToOptional(z139.string()),
|
|
2953
|
+
organization: nullishToOptional(z139.string()),
|
|
2954
|
+
homepage: nullishToOptional(z139.string()),
|
|
2955
|
+
readme: nullishToOptional(z139.string()),
|
|
2956
|
+
tags: nullishToOptional(z139.array(ExporterTag)).default([]),
|
|
2957
|
+
packageId: nullishToOptional(z139.string().max(255)),
|
|
2945
2958
|
iconURL: nullishToOptional(z139.string()),
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
})
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
var ExporterTag = z140.string().regex(/^[0-9a-zA-Z]+(\s[0-9a-zA-Z]+)*$/);
|
|
2952
|
-
var ExporterPulsarDetails = z140.object({
|
|
2953
|
-
description: z140.string(),
|
|
2954
|
-
version: z140.string(),
|
|
2955
|
-
routingVersion: nullishToOptional(z140.string()),
|
|
2956
|
-
author: nullishToOptional(z140.string()),
|
|
2957
|
-
organization: nullishToOptional(z140.string()),
|
|
2958
|
-
homepage: nullishToOptional(z140.string()),
|
|
2959
|
-
readme: nullishToOptional(z140.string()),
|
|
2960
|
-
tags: nullishToOptional(z140.array(ExporterTag)).default([]),
|
|
2961
|
-
packageId: nullishToOptional(z140.string().max(255)),
|
|
2962
|
-
iconURL: nullishToOptional(z140.string()),
|
|
2963
|
-
configurationProperties: nullishToOptional(z140.array(PulsarContributionConfigurationProperty)).default([]),
|
|
2964
|
-
customBlocks: nullishToOptional(z140.array(PulsarCustomBlock)).default([]),
|
|
2965
|
-
blockVariants: nullishToOptional(z140.record(z140.string(), z140.array(PulsarContributionVariant))).default({}),
|
|
2966
|
-
usesBrands: nullishToOptional(z140.boolean()).default(false),
|
|
2967
|
-
usesThemes: nullishToOptional(z140.boolean()).default(false)
|
|
2959
|
+
configurationProperties: nullishToOptional(z139.array(PulsarContributionConfigurationProperty)).default([]),
|
|
2960
|
+
customBlocks: nullishToOptional(z139.array(PulsarCustomBlock)).default([]),
|
|
2961
|
+
blockVariants: nullishToOptional(z139.record(z139.string(), z139.array(PulsarContributionVariant))).default({}),
|
|
2962
|
+
usesBrands: nullishToOptional(z139.boolean()).default(false),
|
|
2963
|
+
usesThemes: nullishToOptional(z139.boolean()).default(false)
|
|
2968
2964
|
});
|
|
2969
2965
|
var ExporterDetails = ExporterPulsarDetails.extend({
|
|
2970
2966
|
source: ExporterSource,
|
|
2971
2967
|
gitProvider: nullishToOptional(GitProvider),
|
|
2972
|
-
gitUrl: nullishToOptional(
|
|
2973
|
-
gitBranch: nullishToOptional(
|
|
2974
|
-
gitDirectory: nullishToOptional(
|
|
2968
|
+
gitUrl: nullishToOptional(z139.string()),
|
|
2969
|
+
gitBranch: nullishToOptional(z139.string()),
|
|
2970
|
+
gitDirectory: nullishToOptional(z139.string())
|
|
2975
2971
|
});
|
|
2976
|
-
var Exporter =
|
|
2977
|
-
id:
|
|
2978
|
-
createdAt:
|
|
2979
|
-
name:
|
|
2980
|
-
isPrivate:
|
|
2972
|
+
var Exporter = z139.object({
|
|
2973
|
+
id: z139.string(),
|
|
2974
|
+
createdAt: z139.coerce.date(),
|
|
2975
|
+
name: z139.string(),
|
|
2976
|
+
isPrivate: z139.boolean(),
|
|
2981
2977
|
details: ExporterDetails,
|
|
2982
2978
|
exporterType: nullishToOptional(ExporterType).default("code"),
|
|
2983
|
-
storagePath: nullishToOptional(
|
|
2979
|
+
storagePath: nullishToOptional(z139.string()).default("")
|
|
2980
|
+
});
|
|
2981
|
+
var PipelineEventType = z140.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
2982
|
+
var PipelineDestinationGitType = z140.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
2983
|
+
var PipelineDestinationExtraType = z140.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
2984
|
+
var PipelineDestinationType = z140.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
2985
|
+
var Pipeline = z140.object({
|
|
2986
|
+
id: z140.string(),
|
|
2987
|
+
name: z140.string(),
|
|
2988
|
+
eventType: PipelineEventType,
|
|
2989
|
+
isEnabled: z140.boolean(),
|
|
2990
|
+
workspaceId: z140.string(),
|
|
2991
|
+
designSystemId: z140.string(),
|
|
2992
|
+
exporterId: z140.string(),
|
|
2993
|
+
brandPersistentId: z140.string().optional(),
|
|
2994
|
+
themePersistentId: z140.string().optional(),
|
|
2995
|
+
// Destinations
|
|
2996
|
+
...ExportDestinationsMap.shape
|
|
2984
2997
|
});
|
|
2985
2998
|
var FlaggedFeature = z141.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
2986
2999
|
var FeatureFlagMap = z141.record(FlaggedFeature, z141.boolean());
|
|
@@ -3008,6 +3021,18 @@ var ExternalOAuthRequest = z143.object({
|
|
|
3008
3021
|
state: z143.string(),
|
|
3009
3022
|
createdAt: z143.coerce.date()
|
|
3010
3023
|
});
|
|
3024
|
+
var GitObjectsQuery = z144.object({
|
|
3025
|
+
organization: z144.string().optional(),
|
|
3026
|
+
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
3027
|
+
project: z144.string().optional(),
|
|
3028
|
+
// Only for Bitbucket and Azure
|
|
3029
|
+
repository: z144.string().optional(),
|
|
3030
|
+
// For all providers. For Gitlab, it's called "project".
|
|
3031
|
+
branch: z144.string().optional(),
|
|
3032
|
+
// For all providers.
|
|
3033
|
+
user: z144.string().optional()
|
|
3034
|
+
// Gitlab user
|
|
3035
|
+
});
|
|
3011
3036
|
var GitOrganization = z144.object({
|
|
3012
3037
|
id: z144.string(),
|
|
3013
3038
|
name: z144.string(),
|
|
@@ -3110,8 +3135,18 @@ var IntegrationToken = z145.object({
|
|
|
3110
3135
|
tokenName: data.token_name,
|
|
3111
3136
|
tokenBitbucketUsername: data.token_bitbucket_username,
|
|
3112
3137
|
tokenAzureOrganizationName: data.token_azure_organization_name,
|
|
3113
|
-
customUrl: data.custom_url
|
|
3138
|
+
customUrl: data.custom_url ? formatCustomUrl(data.custom_url) : void 0
|
|
3114
3139
|
};
|
|
3140
|
+
function formatCustomUrl(url) {
|
|
3141
|
+
let formattedUrl = url.trim();
|
|
3142
|
+
if (!formattedUrl.startsWith("http://") && !formattedUrl.startsWith("https://")) {
|
|
3143
|
+
formattedUrl = "http://" + formattedUrl;
|
|
3144
|
+
}
|
|
3145
|
+
if (formattedUrl.endsWith("/")) {
|
|
3146
|
+
formattedUrl = formattedUrl.slice(0, -1);
|
|
3147
|
+
}
|
|
3148
|
+
return formattedUrl;
|
|
3149
|
+
}
|
|
3115
3150
|
});
|
|
3116
3151
|
var IntegrationTokenSchemaOld = z146.object({
|
|
3117
3152
|
id: z146.string(),
|
|
@@ -4282,6 +4317,28 @@ function documentationPageToDTOV1(page, pagePathMap) {
|
|
|
4282
4317
|
};
|
|
4283
4318
|
}
|
|
4284
4319
|
|
|
4320
|
+
// src/api/conversion/export/pipeline.ts
|
|
4321
|
+
function pipelineToDto(pipeline) {
|
|
4322
|
+
return {
|
|
4323
|
+
id: pipeline.id,
|
|
4324
|
+
name: pipeline.name,
|
|
4325
|
+
eventType: pipeline.eventType,
|
|
4326
|
+
isEnabled: pipeline.isEnabled,
|
|
4327
|
+
workspaceId: pipeline.workspaceId,
|
|
4328
|
+
designSystemId: pipeline.designSystemId,
|
|
4329
|
+
exporterId: pipeline.exporterId,
|
|
4330
|
+
brandPersistentId: pipeline.brandPersistentId,
|
|
4331
|
+
themePersistentId: pipeline.themePersistentId,
|
|
4332
|
+
destinationAzure: pipeline.destinationAzure,
|
|
4333
|
+
destinationBitbucket: pipeline.destinationBitbucket,
|
|
4334
|
+
destinationSnDocs: pipeline.destinationSnDocs,
|
|
4335
|
+
destinationGithub: pipeline.destinationGithub,
|
|
4336
|
+
destinationGitlab: pipeline.destinationGitlab,
|
|
4337
|
+
destinationS3: pipeline.destinationS3,
|
|
4338
|
+
webhookUrl: pipeline.webhookUrl
|
|
4339
|
+
};
|
|
4340
|
+
}
|
|
4341
|
+
|
|
4285
4342
|
// src/api/conversion/integrations/git.ts
|
|
4286
4343
|
function gitOrganizationToDto(org) {
|
|
4287
4344
|
return {
|
|
@@ -4459,7 +4516,7 @@ var DTOExporterProperty = z159.any({});
|
|
|
4459
4516
|
var DTOExporterPropertyListResponse = z159.object({ items: z159.array(DTOExporterProperty) });
|
|
4460
4517
|
|
|
4461
4518
|
// src/api/dto/design-systems/version.ts
|
|
4462
|
-
import { z as
|
|
4519
|
+
import { z as z168 } from "zod";
|
|
4463
4520
|
|
|
4464
4521
|
// src/api/payloads/design-systems/brand.ts
|
|
4465
4522
|
import { z as z160 } from "zod";
|
|
@@ -4501,20 +4558,49 @@ var DTOGetBlockDefinitionsOutput = z162.object({
|
|
|
4501
4558
|
definitions: z162.array(PageBlockDefinition)
|
|
4502
4559
|
});
|
|
4503
4560
|
|
|
4504
|
-
// src/api/payloads/
|
|
4561
|
+
// src/api/payloads/export/pipeline.ts
|
|
4505
4562
|
import { z as z163 } from "zod";
|
|
4506
|
-
var
|
|
4507
|
-
|
|
4563
|
+
var DTOPipelineCreateBody = z163.object({
|
|
4564
|
+
name: z163.string(),
|
|
4565
|
+
exporterId: z163.string(),
|
|
4566
|
+
designSystemId: z163.string(),
|
|
4567
|
+
isEnabled: z163.boolean(),
|
|
4568
|
+
eventType: PipelineEventType,
|
|
4569
|
+
brandPersistentId: z163.string().optional(),
|
|
4570
|
+
themePersistentId: z163.string().optional(),
|
|
4571
|
+
destination: PipelineDestinationType,
|
|
4572
|
+
gitQuery: GitObjectsQuery,
|
|
4573
|
+
destinations: z163.object({
|
|
4574
|
+
s3: ExporterDestinationS3.nullish(),
|
|
4575
|
+
azure: ExporterDestinationAzure.nullish(),
|
|
4576
|
+
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
4577
|
+
github: ExporterDestinationGithub.nullish(),
|
|
4578
|
+
gitlab: ExporterDestinationGitlab.nullish(),
|
|
4579
|
+
documentation: ExporterDestinationDocs.nullish(),
|
|
4580
|
+
webhookUrl: z163.string().nullish()
|
|
4581
|
+
})
|
|
4582
|
+
});
|
|
4583
|
+
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
4584
|
+
id: z163.string()
|
|
4585
|
+
});
|
|
4586
|
+
var DTOPipelineTriggerBody = z163.object({
|
|
4587
|
+
designSystemVersionId: z163.string()
|
|
4508
4588
|
});
|
|
4509
4589
|
|
|
4510
|
-
// src/api/payloads/
|
|
4590
|
+
// src/api/payloads/liveblocks/auth.ts
|
|
4511
4591
|
import { z as z164 } from "zod";
|
|
4512
|
-
var
|
|
4592
|
+
var DTOLiveblocksAuthRequest = z164.object({
|
|
4593
|
+
room: z164.string().optional()
|
|
4594
|
+
});
|
|
4595
|
+
|
|
4596
|
+
// src/api/payloads/users/notifications/notification-settings.ts
|
|
4597
|
+
import { z as z165 } from "zod";
|
|
4598
|
+
var DTOUpdateUserNotificationSettingsPayload = z165.object({
|
|
4513
4599
|
notificationSettings: UserNotificationSettings
|
|
4514
4600
|
});
|
|
4515
|
-
var DTOUserNotificationSettingsResponse =
|
|
4516
|
-
userId:
|
|
4517
|
-
workspaceId:
|
|
4601
|
+
var DTOUserNotificationSettingsResponse = z165.object({
|
|
4602
|
+
userId: z165.string(),
|
|
4603
|
+
workspaceId: z165.string(),
|
|
4518
4604
|
notificationSettings: UserNotificationSettings
|
|
4519
4605
|
});
|
|
4520
4606
|
|
|
@@ -4522,7 +4608,7 @@ var DTOUserNotificationSettingsResponse = z164.object({
|
|
|
4522
4608
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
4523
4609
|
|
|
4524
4610
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
4525
|
-
import { z as
|
|
4611
|
+
import { z as z166 } from "zod";
|
|
4526
4612
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
4527
4613
|
function validateSsoPayload(ssoPayload) {
|
|
4528
4614
|
const keys = [];
|
|
@@ -4545,21 +4631,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
4545
4631
|
keys
|
|
4546
4632
|
};
|
|
4547
4633
|
}
|
|
4548
|
-
var NpmRegistryInput =
|
|
4549
|
-
enabledScopes:
|
|
4550
|
-
customRegistryUrl:
|
|
4551
|
-
bypassProxy:
|
|
4552
|
-
npmProxyRegistryConfigId:
|
|
4553
|
-
npmProxyVersion:
|
|
4554
|
-
registryType:
|
|
4555
|
-
authType:
|
|
4556
|
-
authHeaderName:
|
|
4557
|
-
authHeaderValue:
|
|
4558
|
-
accessToken:
|
|
4559
|
-
username:
|
|
4560
|
-
password:
|
|
4561
|
-
});
|
|
4562
|
-
var WorkspaceConfigurationPayload =
|
|
4634
|
+
var NpmRegistryInput = z166.object({
|
|
4635
|
+
enabledScopes: z166.array(z166.string()),
|
|
4636
|
+
customRegistryUrl: z166.string().optional(),
|
|
4637
|
+
bypassProxy: z166.boolean().optional(),
|
|
4638
|
+
npmProxyRegistryConfigId: z166.string().optional(),
|
|
4639
|
+
npmProxyVersion: z166.number().optional(),
|
|
4640
|
+
registryType: z166.string(),
|
|
4641
|
+
authType: z166.string(),
|
|
4642
|
+
authHeaderName: z166.string(),
|
|
4643
|
+
authHeaderValue: z166.string(),
|
|
4644
|
+
accessToken: z166.string(),
|
|
4645
|
+
username: z166.string(),
|
|
4646
|
+
password: z166.string()
|
|
4647
|
+
});
|
|
4648
|
+
var WorkspaceConfigurationPayload = z166.object({
|
|
4563
4649
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
4564
4650
|
sso: SsoProvider.partial().optional(),
|
|
4565
4651
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -4567,130 +4653,130 @@ var WorkspaceConfigurationPayload = z165.object({
|
|
|
4567
4653
|
});
|
|
4568
4654
|
|
|
4569
4655
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
4570
|
-
import { z as
|
|
4571
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
4656
|
+
import { z as z167 } from "zod";
|
|
4657
|
+
var DTOWorkspaceIntegrationOauthInput = z167.object({
|
|
4572
4658
|
type: IntegrationType
|
|
4573
4659
|
});
|
|
4574
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
4575
|
-
userId:
|
|
4660
|
+
var DTOWorkspaceIntegrationPATInput = z167.object({
|
|
4661
|
+
userId: z167.string(),
|
|
4576
4662
|
type: IntegrationType,
|
|
4577
4663
|
token: IntegrationToken
|
|
4578
4664
|
});
|
|
4579
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
4580
|
-
organization:
|
|
4581
|
-
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4582
|
-
project:
|
|
4665
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z167.object({
|
|
4666
|
+
organization: z167.string().optional(),
|
|
4667
|
+
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
4668
|
+
project: z167.string().optional(),
|
|
4583
4669
|
// Only for Bitbucket and Azure
|
|
4584
|
-
repository:
|
|
4670
|
+
repository: z167.string().optional(),
|
|
4585
4671
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
4586
|
-
branch:
|
|
4587
|
-
// For all providers.
|
|
4588
|
-
user:
|
|
4589
|
-
// Only for Gitlab
|
|
4672
|
+
branch: z167.string().optional(),
|
|
4673
|
+
// For all providers, useful for PR creations.
|
|
4674
|
+
user: z167.string().optional()
|
|
4675
|
+
// Only for Gitlab User Repositories
|
|
4590
4676
|
});
|
|
4591
4677
|
|
|
4592
4678
|
// src/api/dto/design-systems/version.ts
|
|
4593
|
-
var DTODesignSystemVersion =
|
|
4594
|
-
id:
|
|
4595
|
-
createdAt:
|
|
4679
|
+
var DTODesignSystemVersion = z168.object({
|
|
4680
|
+
id: z168.string(),
|
|
4681
|
+
createdAt: z168.date(),
|
|
4596
4682
|
meta: ObjectMeta,
|
|
4597
|
-
version:
|
|
4598
|
-
isReadonly:
|
|
4599
|
-
changeLog:
|
|
4600
|
-
designSystemId:
|
|
4683
|
+
version: z168.string(),
|
|
4684
|
+
isReadonly: z168.boolean(),
|
|
4685
|
+
changeLog: z168.string(),
|
|
4686
|
+
designSystemId: z168.string()
|
|
4601
4687
|
});
|
|
4602
|
-
var DTODesignSystemVersionsListResponse =
|
|
4603
|
-
designSystemVersions:
|
|
4688
|
+
var DTODesignSystemVersionsListResponse = z168.object({
|
|
4689
|
+
designSystemVersions: z168.array(DTODesignSystemVersion)
|
|
4604
4690
|
});
|
|
4605
|
-
var DTODesignSystemVersionGetResponse =
|
|
4691
|
+
var DTODesignSystemVersionGetResponse = z168.object({
|
|
4606
4692
|
designSystemVersion: DTODesignSystemVersion
|
|
4607
4693
|
});
|
|
4608
|
-
var DTODesignSystemVersionCreationResponse =
|
|
4694
|
+
var DTODesignSystemVersionCreationResponse = z168.object({
|
|
4609
4695
|
meta: ObjectMeta,
|
|
4610
|
-
version:
|
|
4611
|
-
changeLog:
|
|
4612
|
-
isReadOnly:
|
|
4613
|
-
designSystemId:
|
|
4614
|
-
jobId:
|
|
4615
|
-
});
|
|
4616
|
-
var VersionSQSPayload =
|
|
4617
|
-
jobId:
|
|
4618
|
-
designSystemId:
|
|
4696
|
+
version: z168.string(),
|
|
4697
|
+
changeLog: z168.string(),
|
|
4698
|
+
isReadOnly: z168.boolean(),
|
|
4699
|
+
designSystemId: z168.string(),
|
|
4700
|
+
jobId: z168.string()
|
|
4701
|
+
});
|
|
4702
|
+
var VersionSQSPayload = z168.object({
|
|
4703
|
+
jobId: z168.string(),
|
|
4704
|
+
designSystemId: z168.string(),
|
|
4619
4705
|
input: DTOCreateVersionInput
|
|
4620
4706
|
});
|
|
4621
|
-
var DTODesignSystemVersionJobsResponse =
|
|
4622
|
-
jobs:
|
|
4707
|
+
var DTODesignSystemVersionJobsResponse = z168.object({
|
|
4708
|
+
jobs: z168.array(VersionCreationJob)
|
|
4623
4709
|
});
|
|
4624
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
4710
|
+
var DTODesignSystemVersionJobStatusResponse = z168.object({
|
|
4625
4711
|
job: VersionCreationJob
|
|
4626
4712
|
});
|
|
4627
4713
|
|
|
4628
4714
|
// src/api/dto/design-systems/view.ts
|
|
4629
|
-
import { z as
|
|
4630
|
-
var DTOElementViewColumnSharedAttributes =
|
|
4631
|
-
id:
|
|
4632
|
-
persistentId:
|
|
4633
|
-
width:
|
|
4715
|
+
import { z as z169 } from "zod";
|
|
4716
|
+
var DTOElementViewColumnSharedAttributes = z169.object({
|
|
4717
|
+
id: z169.string(),
|
|
4718
|
+
persistentId: z169.string(),
|
|
4719
|
+
width: z169.number()
|
|
4634
4720
|
});
|
|
4635
4721
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4636
|
-
type:
|
|
4722
|
+
type: z169.literal("BaseProperty"),
|
|
4637
4723
|
basePropertyType: ElementViewBaseColumnType
|
|
4638
4724
|
});
|
|
4639
4725
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4640
|
-
type:
|
|
4641
|
-
propertyDefinitionId:
|
|
4726
|
+
type: z169.literal("PropertyDefinition"),
|
|
4727
|
+
propertyDefinitionId: z169.string()
|
|
4642
4728
|
});
|
|
4643
4729
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4644
|
-
type:
|
|
4645
|
-
themeId:
|
|
4730
|
+
type: z169.literal("Theme"),
|
|
4731
|
+
themeId: z169.string()
|
|
4646
4732
|
});
|
|
4647
|
-
var DTOElementViewColumn =
|
|
4733
|
+
var DTOElementViewColumn = z169.discriminatedUnion("type", [
|
|
4648
4734
|
DTOElementViewBasePropertyColumn,
|
|
4649
4735
|
DTOElementViewPropertyDefinitionColumn,
|
|
4650
4736
|
DTOElementViewThemeColumn
|
|
4651
4737
|
]);
|
|
4652
|
-
var DTOElementView =
|
|
4738
|
+
var DTOElementView = z169.object({
|
|
4653
4739
|
meta: ObjectMeta,
|
|
4654
|
-
persistentId:
|
|
4740
|
+
persistentId: z169.string(),
|
|
4655
4741
|
targetElementType: ElementPropertyTargetType,
|
|
4656
|
-
id:
|
|
4657
|
-
isDefault:
|
|
4658
|
-
columns:
|
|
4742
|
+
id: z169.string(),
|
|
4743
|
+
isDefault: z169.boolean(),
|
|
4744
|
+
columns: z169.array(DTOElementViewColumn)
|
|
4659
4745
|
});
|
|
4660
|
-
var DTOElementViewsListResponse =
|
|
4661
|
-
elementDataViews:
|
|
4746
|
+
var DTOElementViewsListResponse = z169.object({
|
|
4747
|
+
elementDataViews: z169.array(DTOElementView)
|
|
4662
4748
|
});
|
|
4663
4749
|
|
|
4664
4750
|
// src/api/dto/documentation/anchor.ts
|
|
4665
|
-
import { z as
|
|
4751
|
+
import { z as z170 } from "zod";
|
|
4666
4752
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
4667
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
4668
|
-
anchors:
|
|
4753
|
+
var DTOGetDocumentationPageAnchorsResponse = z170.object({
|
|
4754
|
+
anchors: z170.array(DTODocumentationPageAnchor)
|
|
4669
4755
|
});
|
|
4670
4756
|
|
|
4671
4757
|
// src/api/dto/documentation/link-preview.ts
|
|
4672
|
-
import { z as
|
|
4673
|
-
var DTODocumentationLinkPreviewResponse =
|
|
4758
|
+
import { z as z171 } from "zod";
|
|
4759
|
+
var DTODocumentationLinkPreviewResponse = z171.object({
|
|
4674
4760
|
linkPreview: DocumentationLinkPreview
|
|
4675
4761
|
});
|
|
4676
|
-
var DTODocumentationLinkPreviewRequest =
|
|
4677
|
-
url:
|
|
4678
|
-
documentationItemPersistentId:
|
|
4762
|
+
var DTODocumentationLinkPreviewRequest = z171.object({
|
|
4763
|
+
url: z171.string().optional(),
|
|
4764
|
+
documentationItemPersistentId: z171.string().optional()
|
|
4679
4765
|
});
|
|
4680
4766
|
|
|
4681
4767
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4682
|
-
import { z as
|
|
4768
|
+
import { z as z174 } from "zod";
|
|
4683
4769
|
|
|
4684
4770
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
4685
|
-
import { z as
|
|
4771
|
+
import { z as z173 } from "zod";
|
|
4686
4772
|
|
|
4687
4773
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
4688
|
-
import { z as
|
|
4774
|
+
import { z as z172 } from "zod";
|
|
4689
4775
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
4690
|
-
var DTODocumentationItemConfigurationV2 =
|
|
4691
|
-
showSidebar:
|
|
4692
|
-
isPrivate:
|
|
4693
|
-
isHidden:
|
|
4776
|
+
var DTODocumentationItemConfigurationV2 = z172.object({
|
|
4777
|
+
showSidebar: z172.boolean(),
|
|
4778
|
+
isPrivate: z172.boolean(),
|
|
4779
|
+
isHidden: z172.boolean(),
|
|
4694
4780
|
header: DTODocumentationItemHeaderV2
|
|
4695
4781
|
});
|
|
4696
4782
|
|
|
@@ -4704,136 +4790,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
4704
4790
|
data: true,
|
|
4705
4791
|
shortPersistentId: true
|
|
4706
4792
|
}).extend({
|
|
4707
|
-
title:
|
|
4708
|
-
isRoot:
|
|
4709
|
-
childrenIds:
|
|
4793
|
+
title: z173.string(),
|
|
4794
|
+
isRoot: z173.boolean(),
|
|
4795
|
+
childrenIds: z173.array(z173.string()),
|
|
4710
4796
|
groupBehavior: DocumentationGroupBehavior,
|
|
4711
|
-
shortPersistentId:
|
|
4797
|
+
shortPersistentId: z173.string(),
|
|
4712
4798
|
configuration: DTODocumentationItemConfigurationV2,
|
|
4713
|
-
type:
|
|
4799
|
+
type: z173.literal("Group")
|
|
4714
4800
|
});
|
|
4715
4801
|
var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
|
|
4716
|
-
var DTOCreateDocumentationGroupInput =
|
|
4802
|
+
var DTOCreateDocumentationGroupInput = z173.object({
|
|
4717
4803
|
// Identifier
|
|
4718
|
-
persistentId:
|
|
4804
|
+
persistentId: z173.string().uuid(),
|
|
4719
4805
|
// Group properties
|
|
4720
|
-
title:
|
|
4806
|
+
title: z173.string(),
|
|
4721
4807
|
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4722
4808
|
// Group placement properties
|
|
4723
|
-
afterPersistentId:
|
|
4724
|
-
parentPersistentId:
|
|
4809
|
+
afterPersistentId: z173.string().uuid().nullish(),
|
|
4810
|
+
parentPersistentId: z173.string().uuid()
|
|
4725
4811
|
});
|
|
4726
|
-
var DTOUpdateDocumentationGroupInput =
|
|
4812
|
+
var DTOUpdateDocumentationGroupInput = z173.object({
|
|
4727
4813
|
// Identifier of the group to update
|
|
4728
|
-
id:
|
|
4814
|
+
id: z173.string(),
|
|
4729
4815
|
// Group properties
|
|
4730
|
-
title:
|
|
4816
|
+
title: z173.string().optional(),
|
|
4731
4817
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4732
4818
|
});
|
|
4733
|
-
var DTOMoveDocumentationGroupInput =
|
|
4819
|
+
var DTOMoveDocumentationGroupInput = z173.object({
|
|
4734
4820
|
// Identifier of the group to update
|
|
4735
|
-
id:
|
|
4821
|
+
id: z173.string(),
|
|
4736
4822
|
// Group placement properties
|
|
4737
|
-
parentPersistentId:
|
|
4738
|
-
afterPersistentId:
|
|
4823
|
+
parentPersistentId: z173.string().uuid(),
|
|
4824
|
+
afterPersistentId: z173.string().uuid().nullish()
|
|
4739
4825
|
});
|
|
4740
|
-
var DTODuplicateDocumentationGroupInput =
|
|
4826
|
+
var DTODuplicateDocumentationGroupInput = z173.object({
|
|
4741
4827
|
// Identifier of the group to duplicate from
|
|
4742
|
-
id:
|
|
4828
|
+
id: z173.string(),
|
|
4743
4829
|
// New group persistent id
|
|
4744
|
-
persistentId:
|
|
4830
|
+
persistentId: z173.string().uuid(),
|
|
4745
4831
|
// Group placement properties
|
|
4746
|
-
afterPersistentId:
|
|
4747
|
-
parentPersistentId:
|
|
4832
|
+
afterPersistentId: z173.string().uuid().nullish(),
|
|
4833
|
+
parentPersistentId: z173.string().uuid()
|
|
4748
4834
|
});
|
|
4749
|
-
var DTOCreateDocumentationTabInput =
|
|
4835
|
+
var DTOCreateDocumentationTabInput = z173.object({
|
|
4750
4836
|
// New group persistent id
|
|
4751
|
-
persistentId:
|
|
4837
|
+
persistentId: z173.string().uuid(),
|
|
4752
4838
|
// If this is page, we will attempt to convert it to tab
|
|
4753
4839
|
// If this is tab group, we will add a new tab to it
|
|
4754
|
-
fromItemPersistentId:
|
|
4755
|
-
tabName:
|
|
4840
|
+
fromItemPersistentId: z173.string(),
|
|
4841
|
+
tabName: z173.string()
|
|
4756
4842
|
});
|
|
4757
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
4843
|
+
var DTODeleteDocumentationTabGroupInput = z173.object({
|
|
4758
4844
|
// Deleted group id
|
|
4759
|
-
id:
|
|
4845
|
+
id: z173.string()
|
|
4760
4846
|
});
|
|
4761
|
-
var DTODeleteDocumentationGroupInput =
|
|
4847
|
+
var DTODeleteDocumentationGroupInput = z173.object({
|
|
4762
4848
|
// Identifier
|
|
4763
|
-
id:
|
|
4849
|
+
id: z173.string(),
|
|
4764
4850
|
// Deletion options
|
|
4765
|
-
deleteSubtree:
|
|
4851
|
+
deleteSubtree: z173.boolean().default(false)
|
|
4766
4852
|
});
|
|
4767
4853
|
|
|
4768
4854
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4769
|
-
var SuccessPayload =
|
|
4770
|
-
success:
|
|
4855
|
+
var SuccessPayload = z174.object({
|
|
4856
|
+
success: z174.literal(true)
|
|
4771
4857
|
});
|
|
4772
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
4773
|
-
type:
|
|
4858
|
+
var DTODocumentationGroupCreateActionOutputV2 = z174.object({
|
|
4859
|
+
type: z174.literal("DocumentationGroupCreate"),
|
|
4774
4860
|
output: SuccessPayload
|
|
4775
4861
|
});
|
|
4776
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
4777
|
-
type:
|
|
4862
|
+
var DTODocumentationTabCreateActionOutputV2 = z174.object({
|
|
4863
|
+
type: z174.literal("DocumentationTabCreate"),
|
|
4778
4864
|
output: SuccessPayload
|
|
4779
4865
|
});
|
|
4780
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
4781
|
-
type:
|
|
4866
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z174.object({
|
|
4867
|
+
type: z174.literal("DocumentationGroupUpdate"),
|
|
4782
4868
|
output: SuccessPayload
|
|
4783
4869
|
});
|
|
4784
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
4785
|
-
type:
|
|
4870
|
+
var DTODocumentationGroupMoveActionOutputV2 = z174.object({
|
|
4871
|
+
type: z174.literal("DocumentationGroupMove"),
|
|
4786
4872
|
output: SuccessPayload
|
|
4787
4873
|
});
|
|
4788
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
4789
|
-
type:
|
|
4874
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z174.object({
|
|
4875
|
+
type: z174.literal("DocumentationGroupDuplicate"),
|
|
4790
4876
|
output: SuccessPayload
|
|
4791
4877
|
});
|
|
4792
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
4793
|
-
type:
|
|
4878
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z174.object({
|
|
4879
|
+
type: z174.literal("DocumentationGroupDelete"),
|
|
4794
4880
|
output: SuccessPayload
|
|
4795
4881
|
});
|
|
4796
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
4797
|
-
type:
|
|
4882
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z174.object({
|
|
4883
|
+
type: z174.literal("DocumentationTabGroupDelete"),
|
|
4798
4884
|
output: SuccessPayload
|
|
4799
4885
|
});
|
|
4800
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
4801
|
-
type:
|
|
4886
|
+
var DTODocumentationGroupCreateActionInputV2 = z174.object({
|
|
4887
|
+
type: z174.literal("DocumentationGroupCreate"),
|
|
4802
4888
|
input: DTOCreateDocumentationGroupInput
|
|
4803
4889
|
});
|
|
4804
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
4805
|
-
type:
|
|
4890
|
+
var DTODocumentationTabCreateActionInputV2 = z174.object({
|
|
4891
|
+
type: z174.literal("DocumentationTabCreate"),
|
|
4806
4892
|
input: DTOCreateDocumentationTabInput
|
|
4807
4893
|
});
|
|
4808
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
4809
|
-
type:
|
|
4894
|
+
var DTODocumentationGroupUpdateActionInputV2 = z174.object({
|
|
4895
|
+
type: z174.literal("DocumentationGroupUpdate"),
|
|
4810
4896
|
input: DTOUpdateDocumentationGroupInput
|
|
4811
4897
|
});
|
|
4812
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
4813
|
-
type:
|
|
4898
|
+
var DTODocumentationGroupMoveActionInputV2 = z174.object({
|
|
4899
|
+
type: z174.literal("DocumentationGroupMove"),
|
|
4814
4900
|
input: DTOMoveDocumentationGroupInput
|
|
4815
4901
|
});
|
|
4816
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
4817
|
-
type:
|
|
4902
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z174.object({
|
|
4903
|
+
type: z174.literal("DocumentationGroupDuplicate"),
|
|
4818
4904
|
input: DTODuplicateDocumentationGroupInput
|
|
4819
4905
|
});
|
|
4820
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
4821
|
-
type:
|
|
4906
|
+
var DTODocumentationGroupDeleteActionInputV2 = z174.object({
|
|
4907
|
+
type: z174.literal("DocumentationGroupDelete"),
|
|
4822
4908
|
input: DTODeleteDocumentationGroupInput
|
|
4823
4909
|
});
|
|
4824
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
4825
|
-
type:
|
|
4910
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z174.object({
|
|
4911
|
+
type: z174.literal("DocumentationTabGroupDelete"),
|
|
4826
4912
|
input: DTODeleteDocumentationTabGroupInput
|
|
4827
4913
|
});
|
|
4828
4914
|
|
|
4829
4915
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
4830
|
-
import { z as
|
|
4916
|
+
import { z as z176 } from "zod";
|
|
4831
4917
|
|
|
4832
4918
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
4833
|
-
import { z as
|
|
4834
|
-
var DocumentationColorV1 =
|
|
4835
|
-
aliasTo:
|
|
4836
|
-
value:
|
|
4919
|
+
import { z as z175 } from "zod";
|
|
4920
|
+
var DocumentationColorV1 = z175.object({
|
|
4921
|
+
aliasTo: z175.string().optional(),
|
|
4922
|
+
value: z175.string().optional()
|
|
4837
4923
|
});
|
|
4838
4924
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
4839
4925
|
foregroundColor: true,
|
|
@@ -4842,10 +4928,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
4842
4928
|
foregroundColor: DocumentationColorV1.optional(),
|
|
4843
4929
|
backgroundColor: DocumentationColorV1.optional()
|
|
4844
4930
|
});
|
|
4845
|
-
var DTODocumentationItemConfigurationV1 =
|
|
4846
|
-
showSidebar:
|
|
4847
|
-
isPrivate:
|
|
4848
|
-
isHidden:
|
|
4931
|
+
var DTODocumentationItemConfigurationV1 = z175.object({
|
|
4932
|
+
showSidebar: z175.boolean(),
|
|
4933
|
+
isPrivate: z175.boolean(),
|
|
4934
|
+
isHidden: z175.boolean(),
|
|
4849
4935
|
header: DTODocumentationItemHeaderV1
|
|
4850
4936
|
});
|
|
4851
4937
|
|
|
@@ -4859,130 +4945,130 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
4859
4945
|
data: true,
|
|
4860
4946
|
shortPersistentId: true
|
|
4861
4947
|
}).extend({
|
|
4862
|
-
title:
|
|
4863
|
-
isRoot:
|
|
4864
|
-
childrenIds:
|
|
4948
|
+
title: z176.string(),
|
|
4949
|
+
isRoot: z176.boolean(),
|
|
4950
|
+
childrenIds: z176.array(z176.string()),
|
|
4865
4951
|
groupBehavior: DocumentationGroupBehavior,
|
|
4866
|
-
shortPersistentId:
|
|
4867
|
-
type:
|
|
4952
|
+
shortPersistentId: z176.string(),
|
|
4953
|
+
type: z176.literal("Group")
|
|
4868
4954
|
});
|
|
4869
4955
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
4870
4956
|
configuration: DTODocumentationItemConfigurationV1
|
|
4871
4957
|
});
|
|
4872
4958
|
|
|
4873
4959
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4874
|
-
import { z as
|
|
4960
|
+
import { z as z178 } from "zod";
|
|
4875
4961
|
|
|
4876
4962
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
4877
|
-
import { z as
|
|
4963
|
+
import { z as z177 } from "zod";
|
|
4878
4964
|
var DTODocumentationPageV2 = DocumentationPageV2.omit({
|
|
4879
4965
|
data: true,
|
|
4880
4966
|
meta: true,
|
|
4881
4967
|
parentPersistentId: true,
|
|
4882
4968
|
sortOrder: true
|
|
4883
4969
|
}).extend({
|
|
4884
|
-
title:
|
|
4885
|
-
path:
|
|
4886
|
-
type:
|
|
4970
|
+
title: z177.string(),
|
|
4971
|
+
path: z177.string(),
|
|
4972
|
+
type: z177.literal("Page"),
|
|
4887
4973
|
configuration: DTODocumentationItemConfigurationV2
|
|
4888
4974
|
});
|
|
4889
4975
|
var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
|
|
4890
|
-
var DTODocumentationHierarchyV2 =
|
|
4891
|
-
pages:
|
|
4892
|
-
groups:
|
|
4976
|
+
var DTODocumentationHierarchyV2 = z177.object({
|
|
4977
|
+
pages: z177.array(DTODocumentationPageStructureV2),
|
|
4978
|
+
groups: z177.array(DTODocumentationGroupStructureV2)
|
|
4893
4979
|
});
|
|
4894
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
4980
|
+
var DTOCreateDocumentationPageInputV2 = z177.object({
|
|
4895
4981
|
// Identifier
|
|
4896
|
-
persistentId:
|
|
4982
|
+
persistentId: z177.string().uuid(),
|
|
4897
4983
|
// Page properties
|
|
4898
|
-
title:
|
|
4984
|
+
title: z177.string(),
|
|
4899
4985
|
configuration: DTODocumentationItemConfigurationV2.optional(),
|
|
4900
4986
|
// Page placement properties
|
|
4901
|
-
parentPersistentId:
|
|
4902
|
-
afterPersistentId:
|
|
4987
|
+
parentPersistentId: z177.string().uuid(),
|
|
4988
|
+
afterPersistentId: z177.string().uuid().nullish()
|
|
4903
4989
|
});
|
|
4904
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
4990
|
+
var DTOUpdateDocumentationPageInputV2 = z177.object({
|
|
4905
4991
|
// Identifier of the group to update
|
|
4906
|
-
id:
|
|
4992
|
+
id: z177.string(),
|
|
4907
4993
|
// Page properties
|
|
4908
|
-
title:
|
|
4994
|
+
title: z177.string().optional(),
|
|
4909
4995
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4910
4996
|
});
|
|
4911
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
4997
|
+
var DTOMoveDocumentationPageInputV2 = z177.object({
|
|
4912
4998
|
// Identifier of the group to update
|
|
4913
|
-
id:
|
|
4999
|
+
id: z177.string(),
|
|
4914
5000
|
// Page placement properties
|
|
4915
|
-
parentPersistentId:
|
|
4916
|
-
afterPersistentId:
|
|
5001
|
+
parentPersistentId: z177.string().uuid(),
|
|
5002
|
+
afterPersistentId: z177.string().uuid().nullish()
|
|
4917
5003
|
});
|
|
4918
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5004
|
+
var DTODuplicateDocumentationPageInputV2 = z177.object({
|
|
4919
5005
|
// Identifier of the page to duplicate from
|
|
4920
|
-
id:
|
|
5006
|
+
id: z177.string(),
|
|
4921
5007
|
// New page persistent id
|
|
4922
|
-
persistentId:
|
|
5008
|
+
persistentId: z177.string().uuid(),
|
|
4923
5009
|
// Page placement properties
|
|
4924
|
-
parentPersistentId:
|
|
4925
|
-
afterPersistentId:
|
|
5010
|
+
parentPersistentId: z177.string().uuid(),
|
|
5011
|
+
afterPersistentId: z177.string().uuid().nullish()
|
|
4926
5012
|
});
|
|
4927
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5013
|
+
var DTODeleteDocumentationPageInputV2 = z177.object({
|
|
4928
5014
|
// Identifier
|
|
4929
|
-
id:
|
|
5015
|
+
id: z177.string()
|
|
4930
5016
|
});
|
|
4931
5017
|
|
|
4932
5018
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
4933
|
-
var SuccessPayload2 =
|
|
4934
|
-
success:
|
|
5019
|
+
var SuccessPayload2 = z178.object({
|
|
5020
|
+
success: z178.literal(true)
|
|
4935
5021
|
});
|
|
4936
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
4937
|
-
type:
|
|
5022
|
+
var DTODocumentationPageCreateActionOutputV2 = z178.object({
|
|
5023
|
+
type: z178.literal("DocumentationPageCreate"),
|
|
4938
5024
|
output: SuccessPayload2
|
|
4939
5025
|
});
|
|
4940
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
4941
|
-
type:
|
|
5026
|
+
var DTODocumentationPageUpdateActionOutputV2 = z178.object({
|
|
5027
|
+
type: z178.literal("DocumentationPageUpdate"),
|
|
4942
5028
|
output: SuccessPayload2
|
|
4943
5029
|
});
|
|
4944
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
4945
|
-
type:
|
|
5030
|
+
var DTODocumentationPageMoveActionOutputV2 = z178.object({
|
|
5031
|
+
type: z178.literal("DocumentationPageMove"),
|
|
4946
5032
|
output: SuccessPayload2
|
|
4947
5033
|
});
|
|
4948
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
4949
|
-
type:
|
|
5034
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z178.object({
|
|
5035
|
+
type: z178.literal("DocumentationPageDuplicate"),
|
|
4950
5036
|
output: SuccessPayload2
|
|
4951
5037
|
});
|
|
4952
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
4953
|
-
type:
|
|
5038
|
+
var DTODocumentationPageDeleteActionOutputV2 = z178.object({
|
|
5039
|
+
type: z178.literal("DocumentationPageDelete"),
|
|
4954
5040
|
output: SuccessPayload2
|
|
4955
5041
|
});
|
|
4956
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
4957
|
-
type:
|
|
5042
|
+
var DTODocumentationPageCreateActionInputV2 = z178.object({
|
|
5043
|
+
type: z178.literal("DocumentationPageCreate"),
|
|
4958
5044
|
input: DTOCreateDocumentationPageInputV2
|
|
4959
5045
|
});
|
|
4960
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
4961
|
-
type:
|
|
5046
|
+
var DTODocumentationPageUpdateActionInputV2 = z178.object({
|
|
5047
|
+
type: z178.literal("DocumentationPageUpdate"),
|
|
4962
5048
|
input: DTOUpdateDocumentationPageInputV2
|
|
4963
5049
|
});
|
|
4964
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
4965
|
-
type:
|
|
5050
|
+
var DTODocumentationPageMoveActionInputV2 = z178.object({
|
|
5051
|
+
type: z178.literal("DocumentationPageMove"),
|
|
4966
5052
|
input: DTOMoveDocumentationPageInputV2
|
|
4967
5053
|
});
|
|
4968
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
4969
|
-
type:
|
|
5054
|
+
var DTODocumentationPageDuplicateActionInputV2 = z178.object({
|
|
5055
|
+
type: z178.literal("DocumentationPageDuplicate"),
|
|
4970
5056
|
input: DTODuplicateDocumentationPageInputV2
|
|
4971
5057
|
});
|
|
4972
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
4973
|
-
type:
|
|
5058
|
+
var DTODocumentationPageDeleteActionInputV2 = z178.object({
|
|
5059
|
+
type: z178.literal("DocumentationPageDelete"),
|
|
4974
5060
|
input: DTODeleteDocumentationPageInputV2
|
|
4975
5061
|
});
|
|
4976
5062
|
|
|
4977
5063
|
// src/api/dto/elements/documentation/page-content.ts
|
|
4978
|
-
import { z as
|
|
5064
|
+
import { z as z179 } from "zod";
|
|
4979
5065
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
4980
|
-
var DTODocumentationPageContentGetResponse =
|
|
5066
|
+
var DTODocumentationPageContentGetResponse = z179.object({
|
|
4981
5067
|
pageContent: DTODocumentationPageContent
|
|
4982
5068
|
});
|
|
4983
5069
|
|
|
4984
5070
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
4985
|
-
import { z as
|
|
5071
|
+
import { z as z180 } from "zod";
|
|
4986
5072
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
4987
5073
|
data: true,
|
|
4988
5074
|
meta: true,
|
|
@@ -4990,30 +5076,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
4990
5076
|
sortOrder: true
|
|
4991
5077
|
}).extend({
|
|
4992
5078
|
configuration: DTODocumentationItemConfigurationV1,
|
|
4993
|
-
blocks:
|
|
4994
|
-
title:
|
|
4995
|
-
path:
|
|
5079
|
+
blocks: z180.array(PageBlockV1),
|
|
5080
|
+
title: z180.string(),
|
|
5081
|
+
path: z180.string()
|
|
4996
5082
|
});
|
|
4997
5083
|
|
|
4998
5084
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
4999
|
-
import { z as
|
|
5000
|
-
var DTOFigmaNodeOrigin =
|
|
5001
|
-
sourceId:
|
|
5002
|
-
fileId:
|
|
5003
|
-
parentName:
|
|
5085
|
+
import { z as z181 } from "zod";
|
|
5086
|
+
var DTOFigmaNodeOrigin = z181.object({
|
|
5087
|
+
sourceId: z181.string(),
|
|
5088
|
+
fileId: z181.string().optional(),
|
|
5089
|
+
parentName: z181.string().optional()
|
|
5004
5090
|
});
|
|
5005
|
-
var DTOFigmaNodeData =
|
|
5091
|
+
var DTOFigmaNodeData = z181.object({
|
|
5006
5092
|
// Id of the node in the Figma file
|
|
5007
|
-
figmaNodeId:
|
|
5093
|
+
figmaNodeId: z181.string(),
|
|
5008
5094
|
// Validity
|
|
5009
|
-
isValid:
|
|
5095
|
+
isValid: z181.boolean(),
|
|
5010
5096
|
// Asset data
|
|
5011
|
-
assetId:
|
|
5012
|
-
assetUrl:
|
|
5097
|
+
assetId: z181.string(),
|
|
5098
|
+
assetUrl: z181.string(),
|
|
5013
5099
|
// Asset metadata
|
|
5014
|
-
assetScale:
|
|
5015
|
-
assetWidth:
|
|
5016
|
-
assetHeight:
|
|
5100
|
+
assetScale: z181.number(),
|
|
5101
|
+
assetWidth: z181.number().optional(),
|
|
5102
|
+
assetHeight: z181.number().optional()
|
|
5017
5103
|
});
|
|
5018
5104
|
var DTOFigmaNode = FigmaFileStructure.omit({
|
|
5019
5105
|
data: true,
|
|
@@ -5022,105 +5108,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
|
|
|
5022
5108
|
data: DTOFigmaNodeData,
|
|
5023
5109
|
origin: DTOFigmaNodeOrigin
|
|
5024
5110
|
});
|
|
5025
|
-
var DTOFigmaNodeRenderInput =
|
|
5111
|
+
var DTOFigmaNodeRenderInput = z181.object({
|
|
5026
5112
|
// Id of a design system's data source representing a linked Figma file
|
|
5027
|
-
sourceId:
|
|
5113
|
+
sourceId: z181.string(),
|
|
5028
5114
|
// Id of a node within the Figma file
|
|
5029
|
-
figmaFileNodeId:
|
|
5115
|
+
figmaFileNodeId: z181.string()
|
|
5030
5116
|
});
|
|
5031
5117
|
|
|
5032
5118
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
5033
|
-
import { z as
|
|
5034
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
5035
|
-
type:
|
|
5036
|
-
figmaNodes:
|
|
5119
|
+
import { z as z182 } from "zod";
|
|
5120
|
+
var DTOFigmaNodeRenderActionOutput = z182.object({
|
|
5121
|
+
type: z182.literal("FigmaNodeRender"),
|
|
5122
|
+
figmaNodes: z182.array(DTOFigmaNode)
|
|
5037
5123
|
});
|
|
5038
|
-
var DTOFigmaNodeRenderActionInput =
|
|
5039
|
-
type:
|
|
5124
|
+
var DTOFigmaNodeRenderActionInput = z182.object({
|
|
5125
|
+
type: z182.literal("FigmaNodeRender"),
|
|
5040
5126
|
input: DTOFigmaNodeRenderInput.array()
|
|
5041
5127
|
});
|
|
5042
5128
|
|
|
5043
5129
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5044
|
-
import { z as
|
|
5130
|
+
import { z as z184 } from "zod";
|
|
5045
5131
|
|
|
5046
5132
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
5047
|
-
import { z as
|
|
5133
|
+
import { z as z183 } from "zod";
|
|
5048
5134
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
5049
|
-
var DTOElementPropertyDefinition =
|
|
5050
|
-
id:
|
|
5051
|
-
designSystemVersionId:
|
|
5135
|
+
var DTOElementPropertyDefinition = z183.object({
|
|
5136
|
+
id: z183.string(),
|
|
5137
|
+
designSystemVersionId: z183.string(),
|
|
5052
5138
|
meta: ObjectMeta,
|
|
5053
|
-
persistentId:
|
|
5139
|
+
persistentId: z183.string(),
|
|
5054
5140
|
type: ElementPropertyTypeSchema,
|
|
5055
5141
|
targetElementType: ElementPropertyTargetType,
|
|
5056
|
-
codeName:
|
|
5057
|
-
options:
|
|
5142
|
+
codeName: z183.string().regex(CODE_NAME_REGEX2),
|
|
5143
|
+
options: z183.array(ElementPropertyDefinitionOption).optional(),
|
|
5058
5144
|
linkElementType: ElementPropertyLinkType.optional()
|
|
5059
5145
|
});
|
|
5060
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
5061
|
-
definitions:
|
|
5146
|
+
var DTOElementPropertyDefinitionsGetResponse = z183.object({
|
|
5147
|
+
definitions: z183.array(DTOElementPropertyDefinition)
|
|
5062
5148
|
});
|
|
5063
5149
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
5064
5150
|
id: true,
|
|
5065
5151
|
designSystemVersionId: true
|
|
5066
5152
|
});
|
|
5067
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
5068
|
-
id:
|
|
5069
|
-
name:
|
|
5070
|
-
description:
|
|
5071
|
-
codeName:
|
|
5072
|
-
options:
|
|
5153
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z183.object({
|
|
5154
|
+
id: z183.string(),
|
|
5155
|
+
name: z183.string().optional(),
|
|
5156
|
+
description: z183.string().optional(),
|
|
5157
|
+
codeName: z183.string().regex(CODE_NAME_REGEX2).optional(),
|
|
5158
|
+
options: z183.array(ElementPropertyDefinitionOption).optional()
|
|
5073
5159
|
});
|
|
5074
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
5075
|
-
id:
|
|
5160
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z183.object({
|
|
5161
|
+
id: z183.string()
|
|
5076
5162
|
});
|
|
5077
5163
|
|
|
5078
5164
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5079
|
-
var SuccessPayload3 =
|
|
5080
|
-
success:
|
|
5165
|
+
var SuccessPayload3 = z184.object({
|
|
5166
|
+
success: z184.literal(true)
|
|
5081
5167
|
});
|
|
5082
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
5083
|
-
type:
|
|
5168
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z184.object({
|
|
5169
|
+
type: z184.literal("PropertyDefinitionCreate"),
|
|
5084
5170
|
definition: DTOElementPropertyDefinition
|
|
5085
5171
|
});
|
|
5086
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
5087
|
-
type:
|
|
5172
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z184.object({
|
|
5173
|
+
type: z184.literal("PropertyDefinitionUpdate"),
|
|
5088
5174
|
definition: DTOElementPropertyDefinition
|
|
5089
5175
|
});
|
|
5090
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
5091
|
-
type:
|
|
5176
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z184.object({
|
|
5177
|
+
type: z184.literal("PropertyDefinitionDelete"),
|
|
5092
5178
|
output: SuccessPayload3
|
|
5093
5179
|
});
|
|
5094
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
5095
|
-
type:
|
|
5180
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z184.object({
|
|
5181
|
+
type: z184.literal("PropertyDefinitionCreate"),
|
|
5096
5182
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
5097
5183
|
});
|
|
5098
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
5099
|
-
type:
|
|
5184
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z184.object({
|
|
5185
|
+
type: z184.literal("PropertyDefinitionUpdate"),
|
|
5100
5186
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
5101
5187
|
});
|
|
5102
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
5103
|
-
type:
|
|
5188
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z184.object({
|
|
5189
|
+
type: z184.literal("PropertyDefinitionDelete"),
|
|
5104
5190
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
5105
5191
|
});
|
|
5106
5192
|
|
|
5107
5193
|
// src/api/dto/elements/properties/property-values.ts
|
|
5108
|
-
import { z as
|
|
5109
|
-
var DTOElementPropertyValue =
|
|
5110
|
-
id:
|
|
5111
|
-
designSystemVersionId:
|
|
5112
|
-
definitionId:
|
|
5113
|
-
targetElementId:
|
|
5114
|
-
value:
|
|
5115
|
-
valuePreview:
|
|
5194
|
+
import { z as z185 } from "zod";
|
|
5195
|
+
var DTOElementPropertyValue = z185.object({
|
|
5196
|
+
id: z185.string(),
|
|
5197
|
+
designSystemVersionId: z185.string(),
|
|
5198
|
+
definitionId: z185.string(),
|
|
5199
|
+
targetElementId: z185.string(),
|
|
5200
|
+
value: z185.union([z185.string(), z185.number(), z185.boolean()]).optional(),
|
|
5201
|
+
valuePreview: z185.string().optional()
|
|
5116
5202
|
});
|
|
5117
|
-
var DTOElementPropertyValuesGetResponse =
|
|
5118
|
-
values:
|
|
5203
|
+
var DTOElementPropertyValuesGetResponse = z185.object({
|
|
5204
|
+
values: z185.array(DTOElementPropertyValue)
|
|
5119
5205
|
});
|
|
5120
5206
|
|
|
5121
5207
|
// src/api/dto/elements/elements-action-v2.ts
|
|
5122
|
-
import { z as
|
|
5123
|
-
var DTOElementActionOutput =
|
|
5208
|
+
import { z as z186 } from "zod";
|
|
5209
|
+
var DTOElementActionOutput = z186.discriminatedUnion("type", [
|
|
5124
5210
|
// Documentation pages
|
|
5125
5211
|
DTODocumentationPageCreateActionOutputV2,
|
|
5126
5212
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -5142,7 +5228,7 @@ var DTOElementActionOutput = z185.discriminatedUnion("type", [
|
|
|
5142
5228
|
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
5143
5229
|
DTOPropertyDefinitionDeleteActionOutputV2
|
|
5144
5230
|
]);
|
|
5145
|
-
var DTOElementActionInput =
|
|
5231
|
+
var DTOElementActionInput = z186.discriminatedUnion("type", [
|
|
5146
5232
|
// Documentation pages
|
|
5147
5233
|
DTODocumentationPageCreateActionInputV2,
|
|
5148
5234
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -5166,189 +5252,207 @@ var DTOElementActionInput = z185.discriminatedUnion("type", [
|
|
|
5166
5252
|
]);
|
|
5167
5253
|
|
|
5168
5254
|
// src/api/dto/elements/get-elements-v2.ts
|
|
5169
|
-
import { z as
|
|
5170
|
-
var DTOElementsGetTypeFilter =
|
|
5171
|
-
var DTOElementsGetQuerySchema =
|
|
5172
|
-
types:
|
|
5255
|
+
import { z as z187 } from "zod";
|
|
5256
|
+
var DTOElementsGetTypeFilter = z187.enum(["FigmaNode"]);
|
|
5257
|
+
var DTOElementsGetQuerySchema = z187.object({
|
|
5258
|
+
types: z187.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
5173
5259
|
});
|
|
5174
|
-
var DTOElementsGetOutput =
|
|
5175
|
-
figmaNodes:
|
|
5260
|
+
var DTOElementsGetOutput = z187.object({
|
|
5261
|
+
figmaNodes: z187.array(DTOFigmaNode).optional()
|
|
5176
5262
|
});
|
|
5177
5263
|
|
|
5178
5264
|
// src/api/dto/export/exporter.ts
|
|
5179
|
-
import { z as
|
|
5180
|
-
var DTOExporterType =
|
|
5181
|
-
var DTOExporterSource =
|
|
5182
|
-
var DTOExporterMembershipRole =
|
|
5183
|
-
var DTOExporter =
|
|
5184
|
-
id:
|
|
5185
|
-
name:
|
|
5186
|
-
isPrivate:
|
|
5265
|
+
import { z as z188 } from "zod";
|
|
5266
|
+
var DTOExporterType = z188.enum(["documentation", "code"]);
|
|
5267
|
+
var DTOExporterSource = z188.enum(["git", "upload"]);
|
|
5268
|
+
var DTOExporterMembershipRole = z188.enum(["Owner", "OwnerArchived", "User"]);
|
|
5269
|
+
var DTOExporter = z188.object({
|
|
5270
|
+
id: z188.string(),
|
|
5271
|
+
name: z188.string(),
|
|
5272
|
+
isPrivate: z188.boolean(),
|
|
5187
5273
|
exporterType: DTOExporterType,
|
|
5188
|
-
isDefaultDocumentationExporter:
|
|
5189
|
-
iconURL:
|
|
5274
|
+
isDefaultDocumentationExporter: z188.boolean(),
|
|
5275
|
+
iconURL: z188.string().optional(),
|
|
5190
5276
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5191
5277
|
customBlocks: PulsarCustomBlock.array(),
|
|
5192
5278
|
blockVariants: PulsarContributionVariant.array(),
|
|
5193
|
-
usesBrands:
|
|
5194
|
-
usesThemes:
|
|
5279
|
+
usesBrands: z188.boolean(),
|
|
5280
|
+
usesThemes: z188.boolean(),
|
|
5195
5281
|
source: DTOExporterSource,
|
|
5196
|
-
gitUrl:
|
|
5197
|
-
gitBranch:
|
|
5198
|
-
gitDirectory:
|
|
5282
|
+
gitUrl: z188.string().optional(),
|
|
5283
|
+
gitBranch: z188.string().optional(),
|
|
5284
|
+
gitDirectory: z188.string().optional()
|
|
5199
5285
|
});
|
|
5200
|
-
var DTOExporterMembership =
|
|
5201
|
-
workspaceId:
|
|
5202
|
-
exporterId:
|
|
5286
|
+
var DTOExporterMembership = z188.object({
|
|
5287
|
+
workspaceId: z188.string(),
|
|
5288
|
+
exporterId: z188.string(),
|
|
5203
5289
|
role: DTOExporterMembershipRole
|
|
5204
5290
|
});
|
|
5205
|
-
var DTOExporterCreateOutput =
|
|
5291
|
+
var DTOExporterCreateOutput = z188.object({
|
|
5206
5292
|
exporter: DTOExporter,
|
|
5207
5293
|
membership: DTOExporterMembership
|
|
5208
5294
|
});
|
|
5209
|
-
var DTOExporterGitProviderEnum =
|
|
5210
|
-
var DTOExporterCreateInput =
|
|
5211
|
-
url:
|
|
5295
|
+
var DTOExporterGitProviderEnum = z188.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5296
|
+
var DTOExporterCreateInput = z188.object({
|
|
5297
|
+
url: z188.string(),
|
|
5212
5298
|
provider: DTOExporterGitProviderEnum.optional()
|
|
5213
5299
|
});
|
|
5214
5300
|
|
|
5215
5301
|
// src/api/dto/export/job.ts
|
|
5216
|
-
import { z as
|
|
5217
|
-
var DTOExportJobCreatedBy =
|
|
5218
|
-
userId:
|
|
5219
|
-
userName:
|
|
5302
|
+
import { z as z189 } from "zod";
|
|
5303
|
+
var DTOExportJobCreatedBy = z189.object({
|
|
5304
|
+
userId: z189.string(),
|
|
5305
|
+
userName: z189.string()
|
|
5220
5306
|
});
|
|
5221
|
-
var DTOExportJobDesignSystemPreview =
|
|
5222
|
-
id:
|
|
5307
|
+
var DTOExportJobDesignSystemPreview = z189.object({
|
|
5308
|
+
id: z189.string(),
|
|
5223
5309
|
meta: ObjectMeta
|
|
5224
5310
|
});
|
|
5225
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5226
|
-
id:
|
|
5311
|
+
var DTOExportJobDesignSystemVersionPreview = z189.object({
|
|
5312
|
+
id: z189.string(),
|
|
5227
5313
|
meta: ObjectMeta,
|
|
5228
|
-
version:
|
|
5229
|
-
isReadonly:
|
|
5314
|
+
version: z189.string(),
|
|
5315
|
+
isReadonly: z189.boolean()
|
|
5230
5316
|
});
|
|
5231
|
-
var DTOExportJobDestinations =
|
|
5317
|
+
var DTOExportJobDestinations = z189.object({
|
|
5232
5318
|
s3: ExporterDestinationS3.optional(),
|
|
5233
5319
|
azure: ExporterDestinationAzure.optional(),
|
|
5234
5320
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5235
5321
|
github: ExporterDestinationGithub.optional(),
|
|
5236
5322
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5237
5323
|
documentation: ExporterDestinationDocs.optional(),
|
|
5238
|
-
webhookUrl:
|
|
5324
|
+
webhookUrl: z189.string().optional()
|
|
5239
5325
|
});
|
|
5240
|
-
var DTOExportJob =
|
|
5241
|
-
id:
|
|
5242
|
-
createdAt:
|
|
5243
|
-
finishedAt:
|
|
5244
|
-
index:
|
|
5326
|
+
var DTOExportJob = z189.object({
|
|
5327
|
+
id: z189.string(),
|
|
5328
|
+
createdAt: z189.date(),
|
|
5329
|
+
finishedAt: z189.date().optional(),
|
|
5330
|
+
index: z189.number().optional(),
|
|
5245
5331
|
status: ExportJobStatus,
|
|
5246
|
-
estimatedExecutionTime:
|
|
5247
|
-
createdBy: DTOExportJobCreatedBy,
|
|
5332
|
+
estimatedExecutionTime: z189.number().optional(),
|
|
5333
|
+
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5248
5334
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5249
5335
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5250
5336
|
destinations: DTOExportJobDestinations,
|
|
5251
|
-
exporterId:
|
|
5252
|
-
scheduleId:
|
|
5337
|
+
exporterId: z189.string(),
|
|
5338
|
+
scheduleId: z189.string().optional(),
|
|
5253
5339
|
result: ExportJobResult.optional()
|
|
5254
5340
|
});
|
|
5341
|
+
var DTOExportJobResponse = z189.object({
|
|
5342
|
+
job: DTOExportJob
|
|
5343
|
+
});
|
|
5344
|
+
|
|
5345
|
+
// src/api/dto/export/pipeline.ts
|
|
5346
|
+
import { z as z190 } from "zod";
|
|
5347
|
+
var DTOPipeline = z190.object({
|
|
5348
|
+
id: z190.string(),
|
|
5349
|
+
name: z190.string(),
|
|
5350
|
+
eventType: PipelineEventType,
|
|
5351
|
+
isEnabled: z190.boolean(),
|
|
5352
|
+
workspaceId: z190.string(),
|
|
5353
|
+
designSystemId: z190.string(),
|
|
5354
|
+
exporterId: z190.string(),
|
|
5355
|
+
brandPersistentId: z190.string().optional(),
|
|
5356
|
+
themePersistentId: z190.string().optional(),
|
|
5357
|
+
...ExportDestinationsMap.shape
|
|
5358
|
+
});
|
|
5255
5359
|
|
|
5256
5360
|
// src/api/dto/liveblocks/auth-response.ts
|
|
5257
|
-
import { z as
|
|
5258
|
-
var DTOLiveblocksAuthResponse =
|
|
5259
|
-
token:
|
|
5361
|
+
import { z as z191 } from "zod";
|
|
5362
|
+
var DTOLiveblocksAuthResponse = z191.object({
|
|
5363
|
+
token: z191.string()
|
|
5260
5364
|
});
|
|
5261
5365
|
|
|
5262
5366
|
// src/api/dto/users/profile/update.ts
|
|
5263
|
-
import { z as
|
|
5264
|
-
var DTOUserProfileUpdateResponse =
|
|
5367
|
+
import { z as z192 } from "zod";
|
|
5368
|
+
var DTOUserProfileUpdateResponse = z192.object({
|
|
5265
5369
|
user: User
|
|
5266
5370
|
});
|
|
5267
5371
|
|
|
5268
5372
|
// src/api/dto/workspaces/git.ts
|
|
5269
|
-
import { z as
|
|
5270
|
-
var DTOGitOrganization =
|
|
5271
|
-
id:
|
|
5272
|
-
name:
|
|
5273
|
-
url:
|
|
5274
|
-
});
|
|
5275
|
-
var DTOGitProject =
|
|
5276
|
-
id:
|
|
5277
|
-
name:
|
|
5278
|
-
url:
|
|
5279
|
-
});
|
|
5280
|
-
var DTOGitRepository =
|
|
5281
|
-
id:
|
|
5282
|
-
name:
|
|
5283
|
-
url:
|
|
5284
|
-
defaultBranch:
|
|
5285
|
-
});
|
|
5286
|
-
var DTOGitBranch =
|
|
5287
|
-
name:
|
|
5288
|
-
lastCommitId:
|
|
5373
|
+
import { z as z193 } from "zod";
|
|
5374
|
+
var DTOGitOrganization = z193.object({
|
|
5375
|
+
id: z193.string(),
|
|
5376
|
+
name: z193.string(),
|
|
5377
|
+
url: z193.string()
|
|
5378
|
+
});
|
|
5379
|
+
var DTOGitProject = z193.object({
|
|
5380
|
+
id: z193.string(),
|
|
5381
|
+
name: z193.string(),
|
|
5382
|
+
url: z193.string()
|
|
5383
|
+
});
|
|
5384
|
+
var DTOGitRepository = z193.object({
|
|
5385
|
+
id: z193.string(),
|
|
5386
|
+
name: z193.string(),
|
|
5387
|
+
url: z193.string(),
|
|
5388
|
+
defaultBranch: z193.string()
|
|
5389
|
+
});
|
|
5390
|
+
var DTOGitBranch = z193.object({
|
|
5391
|
+
name: z193.string(),
|
|
5392
|
+
lastCommitId: z193.string()
|
|
5289
5393
|
});
|
|
5290
5394
|
|
|
5291
5395
|
// src/api/dto/workspaces/integrations.ts
|
|
5292
|
-
import { z as
|
|
5293
|
-
var DTOIntegration =
|
|
5294
|
-
id:
|
|
5295
|
-
workspaceId:
|
|
5396
|
+
import { z as z194 } from "zod";
|
|
5397
|
+
var DTOIntegration = z194.object({
|
|
5398
|
+
id: z194.string(),
|
|
5399
|
+
workspaceId: z194.string(),
|
|
5296
5400
|
type: ExtendedIntegrationType,
|
|
5297
|
-
createdAt:
|
|
5298
|
-
integrationCredentials:
|
|
5299
|
-
integrationDesignSystems:
|
|
5401
|
+
createdAt: z194.coerce.date(),
|
|
5402
|
+
integrationCredentials: z194.array(IntegrationCredentials).optional(),
|
|
5403
|
+
integrationDesignSystems: z194.array(IntegrationDesignSystem).optional()
|
|
5300
5404
|
});
|
|
5301
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5302
|
-
url:
|
|
5405
|
+
var DTOIntegrationOAuthGetResponse = z194.object({
|
|
5406
|
+
url: z194.string()
|
|
5303
5407
|
});
|
|
5304
|
-
var DTOIntegrationPostResponse =
|
|
5408
|
+
var DTOIntegrationPostResponse = z194.object({
|
|
5305
5409
|
integration: DTOIntegration
|
|
5306
5410
|
});
|
|
5307
|
-
var DTOIntegrationsGetListResponse =
|
|
5411
|
+
var DTOIntegrationsGetListResponse = z194.object({
|
|
5308
5412
|
integrations: DTOIntegration.array()
|
|
5309
5413
|
});
|
|
5310
5414
|
|
|
5311
5415
|
// src/api/dto/workspaces/membership.ts
|
|
5312
|
-
import { z as
|
|
5416
|
+
import { z as z197 } from "zod";
|
|
5313
5417
|
|
|
5314
5418
|
// src/api/dto/workspaces/workspace.ts
|
|
5315
|
-
import { z as
|
|
5419
|
+
import { z as z196 } from "zod";
|
|
5316
5420
|
|
|
5317
5421
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5318
|
-
import { z as
|
|
5422
|
+
import { z as z195 } from "zod";
|
|
5319
5423
|
var DTONpmRegistryConfigConstants = {
|
|
5320
5424
|
passwordPlaceholder: "redacted"
|
|
5321
5425
|
};
|
|
5322
|
-
var DTONpmRegistryConfig =
|
|
5426
|
+
var DTONpmRegistryConfig = z195.object({
|
|
5323
5427
|
// Registry basic configuration
|
|
5324
5428
|
registryType: NpmRegistryType,
|
|
5325
|
-
registryUrl:
|
|
5326
|
-
customRegistryUrl:
|
|
5429
|
+
registryUrl: z195.string(),
|
|
5430
|
+
customRegistryUrl: z195.string().optional(),
|
|
5327
5431
|
// URL of Supernova NPM packages proxy
|
|
5328
|
-
proxyUrl:
|
|
5432
|
+
proxyUrl: z195.string(),
|
|
5329
5433
|
// Auth configuration
|
|
5330
5434
|
authType: NpmRegistryAuthType,
|
|
5331
|
-
accessToken:
|
|
5332
|
-
username:
|
|
5333
|
-
password:
|
|
5435
|
+
accessToken: z195.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5436
|
+
username: z195.string().optional(),
|
|
5437
|
+
password: z195.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5334
5438
|
// NPM package scopes for whih the proxy should be enabled
|
|
5335
|
-
enabledScopes:
|
|
5439
|
+
enabledScopes: z195.array(z195.string()),
|
|
5336
5440
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5337
5441
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5338
|
-
bypassProxy:
|
|
5442
|
+
bypassProxy: z195.boolean()
|
|
5339
5443
|
});
|
|
5340
5444
|
|
|
5341
5445
|
// src/api/dto/workspaces/workspace.ts
|
|
5342
|
-
var DTOWorkspace =
|
|
5343
|
-
id:
|
|
5446
|
+
var DTOWorkspace = z196.object({
|
|
5447
|
+
id: z196.string(),
|
|
5344
5448
|
profile: WorkspaceProfile,
|
|
5345
5449
|
subscription: Subscription,
|
|
5346
5450
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5347
5451
|
});
|
|
5348
5452
|
|
|
5349
5453
|
// src/api/dto/workspaces/membership.ts
|
|
5350
|
-
var DTOWorkspaceRole =
|
|
5351
|
-
var DTOUserWorkspaceMembership =
|
|
5454
|
+
var DTOWorkspaceRole = z197.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
|
|
5455
|
+
var DTOUserWorkspaceMembership = z197.object({
|
|
5352
5456
|
// Workspace the user is a member of
|
|
5353
5457
|
workspace: DTOWorkspace,
|
|
5354
5458
|
// Assigned role the user has in the workspace
|
|
@@ -5358,14 +5462,14 @@ var DTOUserWorkspaceMembership = z195.object({
|
|
|
5358
5462
|
// when a workspace's subscription is downgraded to free tier
|
|
5359
5463
|
effectiveRole: DTOWorkspaceRole
|
|
5360
5464
|
});
|
|
5361
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5362
|
-
membership:
|
|
5465
|
+
var DTOUserWorkspaceMembershipsResponse = z197.object({
|
|
5466
|
+
membership: z197.array(DTOUserWorkspaceMembership)
|
|
5363
5467
|
});
|
|
5364
5468
|
|
|
5365
5469
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
5366
|
-
import { z as
|
|
5367
|
-
var DocumentationHierarchySettings =
|
|
5368
|
-
routingVersion:
|
|
5470
|
+
import { z as z198 } from "zod";
|
|
5471
|
+
var DocumentationHierarchySettings = z198.object({
|
|
5472
|
+
routingVersion: z198.string()
|
|
5369
5473
|
});
|
|
5370
5474
|
function documentationHierarchyToYjs(doc, transaction) {
|
|
5371
5475
|
doc.transact((trx) => {
|
|
@@ -5436,13 +5540,13 @@ function getInternalSettingsYMap(doc) {
|
|
|
5436
5540
|
}
|
|
5437
5541
|
|
|
5438
5542
|
// src/yjs/design-system-content/item-configuration.ts
|
|
5439
|
-
import { z as
|
|
5440
|
-
var DTODocumentationPageRoomHeaderData =
|
|
5441
|
-
title:
|
|
5543
|
+
import { z as z199 } from "zod";
|
|
5544
|
+
var DTODocumentationPageRoomHeaderData = z199.object({
|
|
5545
|
+
title: z199.string(),
|
|
5442
5546
|
configuration: DTODocumentationItemConfigurationV2
|
|
5443
5547
|
});
|
|
5444
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
5445
|
-
title:
|
|
5548
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z199.object({
|
|
5549
|
+
title: z199.string().optional(),
|
|
5446
5550
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
5447
5551
|
});
|
|
5448
5552
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -5493,7 +5597,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
5493
5597
|
header: rawHeader
|
|
5494
5598
|
};
|
|
5495
5599
|
return {
|
|
5496
|
-
title:
|
|
5600
|
+
title: z199.string().parse(title),
|
|
5497
5601
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
5498
5602
|
};
|
|
5499
5603
|
}
|
|
@@ -5503,9 +5607,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
5503
5607
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
5504
5608
|
|
|
5505
5609
|
// src/yjs/docs-editor/model/page.ts
|
|
5506
|
-
import { z as
|
|
5507
|
-
var DocumentationPageEditorModel =
|
|
5508
|
-
blocks:
|
|
5610
|
+
import { z as z200 } from "zod";
|
|
5611
|
+
var DocumentationPageEditorModel = z200.object({
|
|
5612
|
+
blocks: z200.array(PageBlockEditorModel.or(PageSectionEditorModel))
|
|
5509
5613
|
});
|
|
5510
5614
|
|
|
5511
5615
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -8477,7 +8581,7 @@ var blocks = [
|
|
|
8477
8581
|
|
|
8478
8582
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
8479
8583
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
8480
|
-
import { z as
|
|
8584
|
+
import { z as z201 } from "zod";
|
|
8481
8585
|
function yDocToPage(yDoc, definitions) {
|
|
8482
8586
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
8483
8587
|
}
|
|
@@ -8520,7 +8624,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
8520
8624
|
return null;
|
|
8521
8625
|
return {
|
|
8522
8626
|
id,
|
|
8523
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
8627
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z201.string()) ?? "",
|
|
8524
8628
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
8525
8629
|
};
|
|
8526
8630
|
}
|
|
@@ -8555,7 +8659,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
8555
8659
|
});
|
|
8556
8660
|
}
|
|
8557
8661
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
8558
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
8662
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z201.string());
|
|
8559
8663
|
if (!definitionId) {
|
|
8560
8664
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
8561
8665
|
return [];
|
|
@@ -8597,7 +8701,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
8597
8701
|
if (!id)
|
|
8598
8702
|
return null;
|
|
8599
8703
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8600
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
8704
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z201.string().optional()));
|
|
8601
8705
|
return {
|
|
8602
8706
|
// TODO Artem: indent
|
|
8603
8707
|
id,
|
|
@@ -8724,10 +8828,10 @@ function parseRichTextAttribute(mark) {
|
|
|
8724
8828
|
return null;
|
|
8725
8829
|
}
|
|
8726
8830
|
function parseProsemirrorLink(mark) {
|
|
8727
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
8831
|
+
const href = getProsemirrorAttribute(mark, "href", z201.string().optional());
|
|
8728
8832
|
if (!href)
|
|
8729
8833
|
return null;
|
|
8730
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
8834
|
+
const target = getProsemirrorAttribute(mark, "target", z201.string().optional());
|
|
8731
8835
|
const openInNewTab = target === "_blank";
|
|
8732
8836
|
if (href.startsWith("@")) {
|
|
8733
8837
|
return {
|
|
@@ -8750,7 +8854,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
8750
8854
|
if (!id)
|
|
8751
8855
|
return null;
|
|
8752
8856
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8753
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
8857
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z201.boolean().optional()) !== false;
|
|
8754
8858
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
8755
8859
|
if (!tableChild) {
|
|
8756
8860
|
return emptyTable(id, variantId, 0);
|
|
@@ -8797,9 +8901,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
8797
8901
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
8798
8902
|
if (!id)
|
|
8799
8903
|
return null;
|
|
8800
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
8904
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z201.string().optional());
|
|
8801
8905
|
let columnWidth;
|
|
8802
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
8906
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z201.array(z201.number()).optional());
|
|
8803
8907
|
if (columnWidthArray) {
|
|
8804
8908
|
columnWidth = columnWidthArray[0];
|
|
8805
8909
|
}
|
|
@@ -8837,7 +8941,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
8837
8941
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
8838
8942
|
};
|
|
8839
8943
|
case "image":
|
|
8840
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
8944
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z201.string());
|
|
8841
8945
|
if (!items)
|
|
8842
8946
|
return null;
|
|
8843
8947
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -8942,7 +9046,7 @@ function parseAsCustomBlock(prosemirrorNode, definition) {
|
|
|
8942
9046
|
};
|
|
8943
9047
|
}
|
|
8944
9048
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
8945
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
9049
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z201.string());
|
|
8946
9050
|
if (!itemsString)
|
|
8947
9051
|
return null;
|
|
8948
9052
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -8954,18 +9058,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
8954
9058
|
}
|
|
8955
9059
|
function parseAppearance(prosemirrorNode) {
|
|
8956
9060
|
let appearance = {};
|
|
8957
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
9061
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z201.string().optional());
|
|
8958
9062
|
if (rawAppearanceString) {
|
|
8959
9063
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
8960
9064
|
if (parsedAppearance.success) {
|
|
8961
9065
|
appearance = parsedAppearance.data;
|
|
8962
9066
|
}
|
|
8963
9067
|
}
|
|
8964
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
9068
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z201.number().optional());
|
|
8965
9069
|
if (columns) {
|
|
8966
9070
|
appearance.numberOfColumns = columns;
|
|
8967
9071
|
}
|
|
8968
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
9072
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z201.string().optional());
|
|
8969
9073
|
if (backgroundColor) {
|
|
8970
9074
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
8971
9075
|
if (parsedColor.success) {
|
|
@@ -9056,13 +9160,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
9056
9160
|
}
|
|
9057
9161
|
}
|
|
9058
9162
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
9059
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
9163
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z201.string());
|
|
9060
9164
|
if (!id)
|
|
9061
9165
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
9062
9166
|
return id;
|
|
9063
9167
|
}
|
|
9064
9168
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
9065
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
9169
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z201.string()));
|
|
9066
9170
|
}
|
|
9067
9171
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
9068
9172
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -9179,6 +9283,7 @@ export {
|
|
|
9179
9283
|
DTOExportJobDesignSystemPreview,
|
|
9180
9284
|
DTOExportJobDesignSystemVersionPreview,
|
|
9181
9285
|
DTOExportJobDestinations,
|
|
9286
|
+
DTOExportJobResponse,
|
|
9182
9287
|
DTOExporter,
|
|
9183
9288
|
DTOExporterCreateInput,
|
|
9184
9289
|
DTOExporterCreateOutput,
|
|
@@ -9211,6 +9316,10 @@ export {
|
|
|
9211
9316
|
DTOMoveDocumentationPageInputV2,
|
|
9212
9317
|
DTONpmRegistryConfig,
|
|
9213
9318
|
DTONpmRegistryConfigConstants,
|
|
9319
|
+
DTOPipeline,
|
|
9320
|
+
DTOPipelineCreateBody,
|
|
9321
|
+
DTOPipelineTriggerBody,
|
|
9322
|
+
DTOPipelineUpdateBody,
|
|
9214
9323
|
DTOPropertyDefinitionCreateActionInputV2,
|
|
9215
9324
|
DTOPropertyDefinitionCreateActionOutputV2,
|
|
9216
9325
|
DTOPropertyDefinitionDeleteActionInputV2,
|
|
@@ -9272,6 +9381,7 @@ export {
|
|
|
9272
9381
|
itemConfigurationToYjs,
|
|
9273
9382
|
pageToProsemirrorDoc,
|
|
9274
9383
|
pageToYXmlFragment,
|
|
9384
|
+
pipelineToDto,
|
|
9275
9385
|
pmSchema,
|
|
9276
9386
|
prosemirrorDocToPage,
|
|
9277
9387
|
prosemirrorNodeToSection,
|