@supernova-studio/client 1.6.6 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +164 -22
- package/dist/index.d.ts +164 -22
- package/dist/index.js +32 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1520 -1492
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -177,24 +177,25 @@ import { z as z167 } from "zod";
|
|
|
177
177
|
import { z as z170 } from "zod";
|
|
178
178
|
import { z as z171 } from "zod";
|
|
179
179
|
import { z as z172 } from "zod";
|
|
180
|
-
import { z as
|
|
180
|
+
import { z as z176 } from "zod";
|
|
181
181
|
import { z as z173 } from "zod";
|
|
182
182
|
import { z as z174 } from "zod";
|
|
183
|
-
import { z as
|
|
183
|
+
import { z as z175 } from "zod";
|
|
184
184
|
import { z as z177 } from "zod";
|
|
185
185
|
import { z as z178 } from "zod";
|
|
186
186
|
import { z as z179 } from "zod";
|
|
187
187
|
import { z as z180 } from "zod";
|
|
188
188
|
import { z as z181 } from "zod";
|
|
189
189
|
import { z as z182 } from "zod";
|
|
190
|
-
import { z as z184 } from "zod";
|
|
191
190
|
import { z as z183 } from "zod";
|
|
192
191
|
import { z as z185 } from "zod";
|
|
192
|
+
import { z as z184 } from "zod";
|
|
193
193
|
import { z as z186 } from "zod";
|
|
194
194
|
import { z as z187 } from "zod";
|
|
195
195
|
import { z as z188 } from "zod";
|
|
196
196
|
import { z as z189 } from "zod";
|
|
197
197
|
import { z as z190 } from "zod";
|
|
198
|
+
import { z as z191 } from "zod";
|
|
198
199
|
var __defProp2 = Object.defineProperty;
|
|
199
200
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
200
201
|
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -3884,7 +3885,7 @@ var DocumentationPageDependencies = z114.object({
|
|
|
3884
3885
|
propertyPersistentIds: z114.set(z114.string()),
|
|
3885
3886
|
themePersistentIds: z114.set(z114.string()),
|
|
3886
3887
|
documentationPagePersistentIds: z114.set(z114.string()),
|
|
3887
|
-
storybookEntriesStoryIds: z114.
|
|
3888
|
+
storybookEntriesStoryIds: z114.array(z114.string())
|
|
3888
3889
|
});
|
|
3889
3890
|
var DocumentationPage = z115.object({
|
|
3890
3891
|
type: z115.literal("DocumentationPage"),
|
|
@@ -4464,8 +4465,9 @@ var StorybookEntryOrigin = z154.object({
|
|
|
4464
4465
|
id: z154.string(),
|
|
4465
4466
|
type: z154.enum(["story", "docs"]),
|
|
4466
4467
|
name: z154.string(),
|
|
4467
|
-
title: z154.string()
|
|
4468
|
+
title: z154.string(),
|
|
4468
4469
|
// Same as 'kind' for v3
|
|
4470
|
+
index: z154.number().optional()
|
|
4469
4471
|
});
|
|
4470
4472
|
var StorybookEntry = z154.object({
|
|
4471
4473
|
id: z154.string(),
|
|
@@ -4588,7 +4590,13 @@ var ExportDestinationsMapUpdate = z157.object({
|
|
|
4588
4590
|
destinationGitlab: ExporterDestinationGitlab.nullish(),
|
|
4589
4591
|
destinationBitbucket: ExporterDestinationBitbucket.nullish()
|
|
4590
4592
|
});
|
|
4591
|
-
var PipelineEventType = z158.enum([
|
|
4593
|
+
var PipelineEventType = z158.enum([
|
|
4594
|
+
"OnVersionReleased",
|
|
4595
|
+
"OnHeadChanged",
|
|
4596
|
+
"OnSourceUpdated",
|
|
4597
|
+
"OnDocumentationPublished",
|
|
4598
|
+
"None"
|
|
4599
|
+
]);
|
|
4592
4600
|
var PipelineDestinationGitType = z158.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4593
4601
|
var PipelineDestinationExtraType = z158.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
4594
4602
|
var PipelineDestinationType = z158.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
@@ -4891,38 +4899,48 @@ var EventVersionReleased = z174.object({
|
|
|
4891
4899
|
designSystemId: z174.string(),
|
|
4892
4900
|
versionId: z174.string()
|
|
4893
4901
|
});
|
|
4894
|
-
var
|
|
4895
|
-
|
|
4896
|
-
|
|
4897
|
-
|
|
4902
|
+
var EventDocumentationPublished = z175.object({
|
|
4903
|
+
type: z175.literal("DocumentationPublished"),
|
|
4904
|
+
workspaceId: z175.string(),
|
|
4905
|
+
designSystemId: z175.string(),
|
|
4906
|
+
versionId: z175.string()
|
|
4907
|
+
});
|
|
4908
|
+
var Event = z176.discriminatedUnion("type", [
|
|
4909
|
+
EventVersionReleased,
|
|
4910
|
+
EventDataSourceImported,
|
|
4911
|
+
EventDocumentationPublished
|
|
4912
|
+
]);
|
|
4913
|
+
var ExportJobDocumentationContext = z177.object({
|
|
4914
|
+
isSingleVersionDocs: z177.boolean(),
|
|
4915
|
+
versionSlug: z177.string(),
|
|
4898
4916
|
environment: PublishedDocEnvironment
|
|
4899
4917
|
});
|
|
4900
|
-
var ExportJobContext =
|
|
4901
|
-
apiUrl:
|
|
4902
|
-
accessToken:
|
|
4903
|
-
designSystemId:
|
|
4904
|
-
designSystemName:
|
|
4905
|
-
exporterId:
|
|
4906
|
-
versionId:
|
|
4907
|
-
brandId:
|
|
4908
|
-
themeId:
|
|
4909
|
-
themePersistentIds:
|
|
4910
|
-
previewMode:
|
|
4911
|
-
exporterName:
|
|
4918
|
+
var ExportJobContext = z177.object({
|
|
4919
|
+
apiUrl: z177.string(),
|
|
4920
|
+
accessToken: z177.string(),
|
|
4921
|
+
designSystemId: z177.string(),
|
|
4922
|
+
designSystemName: z177.string(),
|
|
4923
|
+
exporterId: z177.string(),
|
|
4924
|
+
versionId: z177.string(),
|
|
4925
|
+
brandId: z177.string().optional(),
|
|
4926
|
+
themeId: z177.string().optional(),
|
|
4927
|
+
themePersistentIds: z177.string().array().optional(),
|
|
4928
|
+
previewMode: z177.boolean().optional(),
|
|
4929
|
+
exporterName: z177.string(),
|
|
4912
4930
|
documentation: ExportJobDocumentationContext.optional()
|
|
4913
4931
|
});
|
|
4914
|
-
var ExportJobExporterConfiguration =
|
|
4915
|
-
exporterPackageUrl:
|
|
4932
|
+
var ExportJobExporterConfiguration = z177.object({
|
|
4933
|
+
exporterPackageUrl: z177.string(),
|
|
4916
4934
|
exporterPropertyValues: ExporterConfigurationPropertyValue.array(),
|
|
4917
4935
|
exporterPropertyValuesV2: ExporterPropertyValueMap.optional()
|
|
4918
4936
|
});
|
|
4919
|
-
var ExporterFunctionPayload =
|
|
4920
|
-
exportJobId:
|
|
4921
|
-
exportContextId:
|
|
4922
|
-
designSystemId:
|
|
4923
|
-
workspaceId:
|
|
4937
|
+
var ExporterFunctionPayload = z178.object({
|
|
4938
|
+
exportJobId: z178.string(),
|
|
4939
|
+
exportContextId: z178.string(),
|
|
4940
|
+
designSystemId: z178.string(),
|
|
4941
|
+
workspaceId: z178.string()
|
|
4924
4942
|
});
|
|
4925
|
-
var ExportJobDestinationType =
|
|
4943
|
+
var ExportJobDestinationType = z179.enum([
|
|
4926
4944
|
"s3",
|
|
4927
4945
|
"webhookUrl",
|
|
4928
4946
|
"github",
|
|
@@ -4931,30 +4949,30 @@ var ExportJobDestinationType = z178.enum([
|
|
|
4931
4949
|
"gitlab",
|
|
4932
4950
|
"bitbucket"
|
|
4933
4951
|
]);
|
|
4934
|
-
var ExportJobStatus =
|
|
4935
|
-
var ExportJobLogEntryType =
|
|
4936
|
-
var ExportJobLogEntry =
|
|
4937
|
-
id:
|
|
4938
|
-
time:
|
|
4952
|
+
var ExportJobStatus = z179.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4953
|
+
var ExportJobLogEntryType = z179.enum(["success", "info", "warning", "error", "user"]);
|
|
4954
|
+
var ExportJobLogEntry = z179.object({
|
|
4955
|
+
id: z179.string().optional(),
|
|
4956
|
+
time: z179.coerce.date(),
|
|
4939
4957
|
type: ExportJobLogEntryType,
|
|
4940
|
-
message:
|
|
4958
|
+
message: z179.string()
|
|
4941
4959
|
});
|
|
4942
|
-
var ExportJobPullRequestDestinationResult =
|
|
4943
|
-
pullRequestUrl:
|
|
4960
|
+
var ExportJobPullRequestDestinationResult = z179.object({
|
|
4961
|
+
pullRequestUrl: z179.string()
|
|
4944
4962
|
});
|
|
4945
|
-
var ExportJobS3DestinationResult =
|
|
4946
|
-
bucket:
|
|
4947
|
-
urlPrefix:
|
|
4948
|
-
path:
|
|
4949
|
-
files:
|
|
4950
|
-
url: nullishToOptional(
|
|
4951
|
-
urls: nullishToOptional(
|
|
4963
|
+
var ExportJobS3DestinationResult = z179.object({
|
|
4964
|
+
bucket: z179.string(),
|
|
4965
|
+
urlPrefix: z179.string().optional(),
|
|
4966
|
+
path: z179.string(),
|
|
4967
|
+
files: z179.array(z179.string()),
|
|
4968
|
+
url: nullishToOptional(z179.string()),
|
|
4969
|
+
urls: nullishToOptional(z179.string().array())
|
|
4952
4970
|
});
|
|
4953
|
-
var ExportJobDocsDestinationResult =
|
|
4954
|
-
url:
|
|
4971
|
+
var ExportJobDocsDestinationResult = z179.object({
|
|
4972
|
+
url: z179.string()
|
|
4955
4973
|
});
|
|
4956
|
-
var ExportJobResult =
|
|
4957
|
-
error:
|
|
4974
|
+
var ExportJobResult = z179.object({
|
|
4975
|
+
error: z179.string().optional(),
|
|
4958
4976
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4959
4977
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4960
4978
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4963,24 +4981,24 @@ var ExportJobResult = z178.object({
|
|
|
4963
4981
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4964
4982
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4965
4983
|
});
|
|
4966
|
-
var ExportJob =
|
|
4967
|
-
id:
|
|
4968
|
-
createdAt:
|
|
4969
|
-
finishedAt:
|
|
4970
|
-
designSystemId:
|
|
4971
|
-
designSystemVersionId:
|
|
4972
|
-
workspaceId:
|
|
4973
|
-
scheduleId:
|
|
4974
|
-
exporterId:
|
|
4975
|
-
brandId:
|
|
4976
|
-
themeId:
|
|
4977
|
-
themePersistentIds:
|
|
4978
|
-
estimatedExecutionTime:
|
|
4984
|
+
var ExportJob = z179.object({
|
|
4985
|
+
id: z179.string(),
|
|
4986
|
+
createdAt: z179.coerce.date(),
|
|
4987
|
+
finishedAt: z179.coerce.date().optional(),
|
|
4988
|
+
designSystemId: z179.string(),
|
|
4989
|
+
designSystemVersionId: z179.string(),
|
|
4990
|
+
workspaceId: z179.string(),
|
|
4991
|
+
scheduleId: z179.string().nullish(),
|
|
4992
|
+
exporterId: z179.string(),
|
|
4993
|
+
brandId: z179.string().optional(),
|
|
4994
|
+
themeId: z179.string().optional(),
|
|
4995
|
+
themePersistentIds: z179.string().array().optional(),
|
|
4996
|
+
estimatedExecutionTime: z179.number().optional(),
|
|
4979
4997
|
status: ExportJobStatus,
|
|
4980
4998
|
result: ExportJobResult.optional(),
|
|
4981
|
-
createdByUserId:
|
|
4999
|
+
createdByUserId: z179.string().optional(),
|
|
4982
5000
|
exporterPropertyValues: ExporterPropertyValueMap.optional(),
|
|
4983
|
-
previewMode:
|
|
5001
|
+
previewMode: z179.boolean().optional(),
|
|
4984
5002
|
// Destinations
|
|
4985
5003
|
...ExportDestinationsMap.shape
|
|
4986
5004
|
});
|
|
@@ -4994,24 +5012,24 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4994
5012
|
themeId: true,
|
|
4995
5013
|
brandId: true
|
|
4996
5014
|
}).extend({
|
|
4997
|
-
destinations:
|
|
5015
|
+
destinations: z179.array(ExportJobDestinationType),
|
|
4998
5016
|
docsEnvironment: PublishedDocEnvironment
|
|
4999
5017
|
}).partial();
|
|
5000
|
-
var ExporterType2 =
|
|
5001
|
-
var ListExporterQuery =
|
|
5002
|
-
limit:
|
|
5003
|
-
offset:
|
|
5018
|
+
var ExporterType2 = z180.enum(["documentation", "code"]);
|
|
5019
|
+
var ListExporterQuery = z180.object({
|
|
5020
|
+
limit: z180.number().optional(),
|
|
5021
|
+
offset: z180.number().optional(),
|
|
5004
5022
|
type: ExporterType2.optional(),
|
|
5005
|
-
search:
|
|
5023
|
+
search: z180.string().optional()
|
|
5006
5024
|
});
|
|
5007
|
-
var ExporterWorkspaceMembershipRole =
|
|
5008
|
-
var ExporterWorkspaceMembership =
|
|
5009
|
-
id:
|
|
5010
|
-
workspaceId:
|
|
5011
|
-
exporterId:
|
|
5025
|
+
var ExporterWorkspaceMembershipRole = z181.enum(["Owner", "OwnerArchived", "User"]);
|
|
5026
|
+
var ExporterWorkspaceMembership = z182.object({
|
|
5027
|
+
id: z182.string(),
|
|
5028
|
+
workspaceId: z182.string(),
|
|
5029
|
+
exporterId: z182.string(),
|
|
5012
5030
|
role: ExporterWorkspaceMembershipRole
|
|
5013
5031
|
});
|
|
5014
|
-
var FlaggedFeature =
|
|
5032
|
+
var FlaggedFeature = z183.enum([
|
|
5015
5033
|
"FigmaImporterV2",
|
|
5016
5034
|
"DisableImporter",
|
|
5017
5035
|
"VariablesOrder",
|
|
@@ -5022,13 +5040,13 @@ var FlaggedFeature = z182.enum([
|
|
|
5022
5040
|
"TypographyUseFontStyle",
|
|
5023
5041
|
"FigmaImporterV3"
|
|
5024
5042
|
]);
|
|
5025
|
-
var FeatureFlagMap =
|
|
5026
|
-
var FeatureFlag =
|
|
5027
|
-
id:
|
|
5043
|
+
var FeatureFlagMap = z183.record(FlaggedFeature, z183.boolean());
|
|
5044
|
+
var FeatureFlag = z183.object({
|
|
5045
|
+
id: z183.string(),
|
|
5028
5046
|
feature: FlaggedFeature,
|
|
5029
|
-
createdAt:
|
|
5030
|
-
enabled:
|
|
5031
|
-
designSystemId:
|
|
5047
|
+
createdAt: z183.coerce.date(),
|
|
5048
|
+
enabled: z183.boolean(),
|
|
5049
|
+
designSystemId: z183.string().optional()
|
|
5032
5050
|
});
|
|
5033
5051
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
5034
5052
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -5038,108 +5056,108 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
5038
5056
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
5039
5057
|
return OAuthProviderNames2;
|
|
5040
5058
|
})(OAuthProviderNames || {});
|
|
5041
|
-
var OAuthProviderSchema =
|
|
5059
|
+
var OAuthProviderSchema = z184.nativeEnum(OAuthProviderNames);
|
|
5042
5060
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
5043
|
-
var ExternalOAuthRequest =
|
|
5044
|
-
id:
|
|
5061
|
+
var ExternalOAuthRequest = z185.object({
|
|
5062
|
+
id: z185.string(),
|
|
5045
5063
|
provider: OAuthProviderSchema,
|
|
5046
|
-
userId:
|
|
5047
|
-
state:
|
|
5048
|
-
createdAt:
|
|
5064
|
+
userId: z185.string(),
|
|
5065
|
+
state: z185.string(),
|
|
5066
|
+
createdAt: z185.coerce.date()
|
|
5049
5067
|
});
|
|
5050
|
-
var GitObjectsQuery =
|
|
5051
|
-
organization:
|
|
5068
|
+
var GitObjectsQuery = z186.object({
|
|
5069
|
+
organization: z186.string().optional(),
|
|
5052
5070
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
5053
|
-
project:
|
|
5071
|
+
project: z186.string().optional(),
|
|
5054
5072
|
// Only for Bitbucket and Azure
|
|
5055
|
-
repository:
|
|
5073
|
+
repository: z186.string().optional(),
|
|
5056
5074
|
// For all providers. For Gitlab, it's called "project".
|
|
5057
|
-
branch:
|
|
5075
|
+
branch: z186.string().optional(),
|
|
5058
5076
|
// For all providers.
|
|
5059
|
-
user:
|
|
5077
|
+
user: z186.string().optional()
|
|
5060
5078
|
// Gitlab user
|
|
5061
5079
|
});
|
|
5062
|
-
var GitOrganization =
|
|
5063
|
-
id:
|
|
5064
|
-
name:
|
|
5065
|
-
url:
|
|
5066
|
-
slug:
|
|
5080
|
+
var GitOrganization = z186.object({
|
|
5081
|
+
id: z186.string(),
|
|
5082
|
+
name: z186.string(),
|
|
5083
|
+
url: z186.string(),
|
|
5084
|
+
slug: z186.string()
|
|
5067
5085
|
});
|
|
5068
|
-
var GitProject =
|
|
5069
|
-
id:
|
|
5070
|
-
name:
|
|
5071
|
-
url:
|
|
5072
|
-
slug:
|
|
5086
|
+
var GitProject = z186.object({
|
|
5087
|
+
id: z186.string(),
|
|
5088
|
+
name: z186.string(),
|
|
5089
|
+
url: z186.string(),
|
|
5090
|
+
slug: z186.string()
|
|
5073
5091
|
});
|
|
5074
|
-
var GitRepository =
|
|
5075
|
-
id:
|
|
5076
|
-
name:
|
|
5077
|
-
url:
|
|
5078
|
-
slug:
|
|
5092
|
+
var GitRepository = z186.object({
|
|
5093
|
+
id: z186.string(),
|
|
5094
|
+
name: z186.string(),
|
|
5095
|
+
url: z186.string(),
|
|
5096
|
+
slug: z186.string(),
|
|
5079
5097
|
/**
|
|
5080
5098
|
* Can be undefined when:
|
|
5081
5099
|
* - there are no branches in the repository yet
|
|
5082
5100
|
* - Git provider doesn't expose this information on a repository via their API
|
|
5083
5101
|
*/
|
|
5084
|
-
defaultBranch:
|
|
5102
|
+
defaultBranch: z186.string().optional()
|
|
5085
5103
|
});
|
|
5086
|
-
var GitBranch =
|
|
5087
|
-
name:
|
|
5088
|
-
lastCommitId:
|
|
5104
|
+
var GitBranch = z186.object({
|
|
5105
|
+
name: z186.string(),
|
|
5106
|
+
lastCommitId: z186.string()
|
|
5089
5107
|
});
|
|
5090
|
-
var IntegrationTokenSchemaOld =
|
|
5091
|
-
id: z186.string(),
|
|
5092
|
-
provider: OAuthProviderSchema,
|
|
5093
|
-
scope: z186.string(),
|
|
5094
|
-
userId: z186.string(),
|
|
5095
|
-
accessToken: z186.string(),
|
|
5096
|
-
refreshToken: z186.string(),
|
|
5097
|
-
expiresAt: z186.coerce.date(),
|
|
5098
|
-
externalUserId: z186.string().nullish()
|
|
5099
|
-
});
|
|
5100
|
-
var WorkspaceOAuthRequestSchema = z187.object({
|
|
5108
|
+
var IntegrationTokenSchemaOld = z187.object({
|
|
5101
5109
|
id: z187.string(),
|
|
5102
|
-
workspaceId: z187.string(),
|
|
5103
5110
|
provider: OAuthProviderSchema,
|
|
5111
|
+
scope: z187.string(),
|
|
5104
5112
|
userId: z187.string(),
|
|
5105
|
-
|
|
5113
|
+
accessToken: z187.string(),
|
|
5114
|
+
refreshToken: z187.string(),
|
|
5115
|
+
expiresAt: z187.coerce.date(),
|
|
5116
|
+
externalUserId: z187.string().nullish()
|
|
5117
|
+
});
|
|
5118
|
+
var WorkspaceOAuthRequestSchema = z188.object({
|
|
5119
|
+
id: z188.string(),
|
|
5120
|
+
workspaceId: z188.string(),
|
|
5121
|
+
provider: OAuthProviderSchema,
|
|
5122
|
+
userId: z188.string(),
|
|
5123
|
+
createdAt: z188.coerce.date()
|
|
5106
5124
|
});
|
|
5107
|
-
var AnyRecord =
|
|
5125
|
+
var AnyRecord = z189.record(z189.any());
|
|
5108
5126
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
5109
|
-
|
|
5110
|
-
tarball:
|
|
5127
|
+
z189.object({
|
|
5128
|
+
tarball: z189.string()
|
|
5111
5129
|
})
|
|
5112
5130
|
);
|
|
5113
5131
|
var NpmPackageVersion = AnyRecord.and(
|
|
5114
|
-
|
|
5132
|
+
z189.object({
|
|
5115
5133
|
dist: NpmPackageVersionDist
|
|
5116
5134
|
})
|
|
5117
5135
|
);
|
|
5118
5136
|
var NpmPackage = AnyRecord.and(
|
|
5119
|
-
|
|
5120
|
-
_id:
|
|
5121
|
-
name:
|
|
5137
|
+
z189.object({
|
|
5138
|
+
_id: z189.string(),
|
|
5139
|
+
name: z189.string(),
|
|
5122
5140
|
// e.g. "latest": "1.2.3"
|
|
5123
|
-
"dist-tags":
|
|
5141
|
+
"dist-tags": z189.record(z189.string(), z189.string()),
|
|
5124
5142
|
// "1.2.3": {...}
|
|
5125
|
-
versions:
|
|
5143
|
+
versions: z189.record(NpmPackageVersion)
|
|
5126
5144
|
})
|
|
5127
5145
|
);
|
|
5128
|
-
var NpmProxyTokenPayload =
|
|
5129
|
-
npmProxyRegistryConfigId:
|
|
5130
|
-
});
|
|
5131
|
-
var PersonalAccessToken =
|
|
5132
|
-
id:
|
|
5133
|
-
userId:
|
|
5134
|
-
workspaceId:
|
|
5135
|
-
designSystemId:
|
|
5146
|
+
var NpmProxyTokenPayload = z190.object({
|
|
5147
|
+
npmProxyRegistryConfigId: z190.string()
|
|
5148
|
+
});
|
|
5149
|
+
var PersonalAccessToken = z191.object({
|
|
5150
|
+
id: z191.string(),
|
|
5151
|
+
userId: z191.string(),
|
|
5152
|
+
workspaceId: z191.string().optional(),
|
|
5153
|
+
designSystemId: z191.string().optional(),
|
|
5136
5154
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5137
|
-
name:
|
|
5138
|
-
hidden:
|
|
5139
|
-
token:
|
|
5140
|
-
scope:
|
|
5141
|
-
createdAt:
|
|
5142
|
-
expireAt:
|
|
5155
|
+
name: z191.string(),
|
|
5156
|
+
hidden: z191.boolean(),
|
|
5157
|
+
token: z191.string(),
|
|
5158
|
+
scope: z191.string().optional(),
|
|
5159
|
+
createdAt: z191.coerce.date(),
|
|
5160
|
+
expireAt: z191.coerce.date().optional()
|
|
5143
5161
|
});
|
|
5144
5162
|
|
|
5145
5163
|
// src/api/conversion/analytics/page-visits-to-dto.ts
|
|
@@ -5660,105 +5678,105 @@ function integrationCredentialToDto(credential) {
|
|
|
5660
5678
|
}
|
|
5661
5679
|
|
|
5662
5680
|
// src/api/dto/access-tokens/access-token.ts
|
|
5663
|
-
import { z as
|
|
5664
|
-
var DTOAccessToken =
|
|
5665
|
-
id:
|
|
5666
|
-
createdAt:
|
|
5667
|
-
name:
|
|
5668
|
-
scope:
|
|
5681
|
+
import { z as z192 } from "zod";
|
|
5682
|
+
var DTOAccessToken = z192.object({
|
|
5683
|
+
id: z192.string(),
|
|
5684
|
+
createdAt: z192.coerce.date(),
|
|
5685
|
+
name: z192.string(),
|
|
5686
|
+
scope: z192.string().optional()
|
|
5669
5687
|
});
|
|
5670
5688
|
var DTOAccessTokenFull = DTOAccessToken.extend({
|
|
5671
|
-
token:
|
|
5689
|
+
token: z192.string()
|
|
5672
5690
|
});
|
|
5673
|
-
var DTOAccessTokenListResponse =
|
|
5691
|
+
var DTOAccessTokenListResponse = z192.object({
|
|
5674
5692
|
tokens: DTOAccessToken.array()
|
|
5675
5693
|
});
|
|
5676
|
-
var DTOAccessTokenResponse =
|
|
5694
|
+
var DTOAccessTokenResponse = z192.object({
|
|
5677
5695
|
token: DTOAccessToken
|
|
5678
5696
|
});
|
|
5679
|
-
var DTOAccessTokenFullResponse =
|
|
5697
|
+
var DTOAccessTokenFullResponse = z192.object({
|
|
5680
5698
|
token: DTOAccessTokenFull
|
|
5681
5699
|
});
|
|
5682
|
-
var DTOAccessTokenCreatePayload =
|
|
5683
|
-
name:
|
|
5684
|
-
scope:
|
|
5700
|
+
var DTOAccessTokenCreatePayload = z192.object({
|
|
5701
|
+
name: z192.string(),
|
|
5702
|
+
scope: z192.string().optional()
|
|
5685
5703
|
});
|
|
5686
5704
|
|
|
5687
5705
|
// src/api/dto/aux/color.ts
|
|
5688
|
-
import { z as
|
|
5689
|
-
var DTOColorTokenInlineData =
|
|
5690
|
-
value:
|
|
5706
|
+
import { z as z193 } from "zod";
|
|
5707
|
+
var DTOColorTokenInlineData = z193.object({
|
|
5708
|
+
value: z193.string().regex(/^#[a-f0-9]{6,8}$/)
|
|
5691
5709
|
});
|
|
5692
5710
|
|
|
5693
5711
|
// src/api/dto/aux/meta.ts
|
|
5694
|
-
import { z as
|
|
5695
|
-
var DTOObjectMeta =
|
|
5696
|
-
name:
|
|
5697
|
-
description:
|
|
5712
|
+
import { z as z194 } from "zod";
|
|
5713
|
+
var DTOObjectMeta = z194.object({
|
|
5714
|
+
name: z194.string().max(512),
|
|
5715
|
+
description: z194.string().max(2048).optional()
|
|
5698
5716
|
});
|
|
5699
5717
|
|
|
5700
5718
|
// src/api/dto/aux/pagination.ts
|
|
5701
|
-
import { z as
|
|
5702
|
-
var DTOPagination =
|
|
5703
|
-
limit:
|
|
5704
|
-
offset:
|
|
5719
|
+
import { z as z195 } from "zod";
|
|
5720
|
+
var DTOPagination = z195.object({
|
|
5721
|
+
limit: z195.string().optional(),
|
|
5722
|
+
offset: z195.string().optional()
|
|
5705
5723
|
});
|
|
5706
5724
|
|
|
5707
5725
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5708
|
-
import { z as
|
|
5726
|
+
import { z as z236 } from "zod";
|
|
5709
5727
|
|
|
5710
5728
|
// src/api/dto/design-systems/brand.ts
|
|
5711
|
-
import { z as
|
|
5712
|
-
var DTOBrand =
|
|
5713
|
-
id:
|
|
5714
|
-
designSystemVersionId:
|
|
5715
|
-
persistentId:
|
|
5729
|
+
import { z as z196 } from "zod";
|
|
5730
|
+
var DTOBrand = z196.object({
|
|
5731
|
+
id: z196.string(),
|
|
5732
|
+
designSystemVersionId: z196.string(),
|
|
5733
|
+
persistentId: z196.string(),
|
|
5716
5734
|
meta: ObjectMeta
|
|
5717
5735
|
});
|
|
5718
|
-
var DTOBrandGetResponse =
|
|
5719
|
-
var DTOBrandCreateResponse =
|
|
5736
|
+
var DTOBrandGetResponse = z196.object({ brand: DTOBrand });
|
|
5737
|
+
var DTOBrandCreateResponse = z196.object({
|
|
5720
5738
|
brand: DTOBrand
|
|
5721
5739
|
});
|
|
5722
|
-
var DTOBrandsListResponse =
|
|
5723
|
-
var DTOBrandCreatePayload =
|
|
5724
|
-
persistentId:
|
|
5740
|
+
var DTOBrandsListResponse = z196.object({ brands: z196.array(DTOBrand) });
|
|
5741
|
+
var DTOBrandCreatePayload = z196.object({
|
|
5742
|
+
persistentId: z196.string().uuid(),
|
|
5725
5743
|
meta: DTOObjectMeta
|
|
5726
5744
|
});
|
|
5727
|
-
var DTOBrandUpdatePayload =
|
|
5745
|
+
var DTOBrandUpdatePayload = z196.object({
|
|
5728
5746
|
meta: DTOObjectMeta.optional(),
|
|
5729
|
-
persistentId:
|
|
5747
|
+
persistentId: z196.string()
|
|
5730
5748
|
});
|
|
5731
5749
|
|
|
5732
5750
|
// src/api/dto/design-systems/code-component.ts
|
|
5733
|
-
import { z as
|
|
5751
|
+
import { z as z197 } from "zod";
|
|
5734
5752
|
var DTOCodeComponentResolvedTypeKind = CodeComponentResolvedTypeKind;
|
|
5735
5753
|
var DTOCodeComponentResolvedType = CodeComponentResolvedType;
|
|
5736
5754
|
var DTOCodeComponentParentType = CodeComponentParentType;
|
|
5737
5755
|
var DTOCodeComponentProperty = CodeComponentProperty;
|
|
5738
5756
|
var DTOCodeComponent = CodeComponent;
|
|
5739
|
-
var DTOCodeComponentResponse =
|
|
5757
|
+
var DTOCodeComponentResponse = z197.object({
|
|
5740
5758
|
codeComponent: DTOCodeComponent
|
|
5741
5759
|
});
|
|
5742
|
-
var DTOCodeComponentListResponse =
|
|
5760
|
+
var DTOCodeComponentListResponse = z197.object({
|
|
5743
5761
|
codeComponents: DTOCodeComponent.array()
|
|
5744
5762
|
});
|
|
5745
|
-
var DTOCodeComponentCreateInput =
|
|
5746
|
-
persistentId:
|
|
5747
|
-
exportName:
|
|
5748
|
-
componentPath:
|
|
5749
|
-
description:
|
|
5750
|
-
properties:
|
|
5751
|
-
tags:
|
|
5763
|
+
var DTOCodeComponentCreateInput = z197.object({
|
|
5764
|
+
persistentId: z197.string(),
|
|
5765
|
+
exportName: z197.string(),
|
|
5766
|
+
componentPath: z197.string(),
|
|
5767
|
+
description: z197.string(),
|
|
5768
|
+
properties: z197.record(z197.string(), DTOCodeComponentProperty),
|
|
5769
|
+
tags: z197.record(z197.string(), z197.string()).nullable()
|
|
5752
5770
|
});
|
|
5753
|
-
var DTOCodeComponentsCreateInput =
|
|
5771
|
+
var DTOCodeComponentsCreateInput = z197.object({
|
|
5754
5772
|
codeComponents: DTOCodeComponentCreateInput.array()
|
|
5755
5773
|
});
|
|
5756
5774
|
var DTOCodeComponentUpsertResponse = CodeComponentUpsertResponse;
|
|
5757
5775
|
var DTOAnalyzeCodeComponentsInPackage = AnalyzeCodeComponentsInPackage;
|
|
5758
5776
|
var DTODependencyDefinition = DependencyDefinition;
|
|
5759
5777
|
var DTORegistry = Registry;
|
|
5760
|
-
var DTOAnalyzeCodeComponentsInPackageResponse =
|
|
5761
|
-
ok:
|
|
5778
|
+
var DTOAnalyzeCodeComponentsInPackageResponse = z197.object({
|
|
5779
|
+
ok: z197.literal(true)
|
|
5762
5780
|
});
|
|
5763
5781
|
var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit({
|
|
5764
5782
|
designSystemId: true,
|
|
@@ -5767,48 +5785,48 @@ var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit
|
|
|
5767
5785
|
});
|
|
5768
5786
|
|
|
5769
5787
|
// src/api/dto/design-systems/component.ts
|
|
5770
|
-
import { z as
|
|
5771
|
-
var DTODesignSystemComponent =
|
|
5772
|
-
id:
|
|
5773
|
-
persistentId:
|
|
5774
|
-
designSystemVersionId:
|
|
5775
|
-
brandId:
|
|
5788
|
+
import { z as z198 } from "zod";
|
|
5789
|
+
var DTODesignSystemComponent = z198.object({
|
|
5790
|
+
id: z198.string(),
|
|
5791
|
+
persistentId: z198.string(),
|
|
5792
|
+
designSystemVersionId: z198.string(),
|
|
5793
|
+
brandId: z198.string(),
|
|
5776
5794
|
meta: DTOObjectMeta,
|
|
5777
|
-
createdAt:
|
|
5778
|
-
updatedAt:
|
|
5795
|
+
createdAt: z198.coerce.date(),
|
|
5796
|
+
updatedAt: z198.coerce.date()
|
|
5779
5797
|
});
|
|
5780
|
-
var DTODesignSystemComponentResponse =
|
|
5798
|
+
var DTODesignSystemComponentResponse = z198.object({
|
|
5781
5799
|
designSystemComponent: DTODesignSystemComponent
|
|
5782
5800
|
});
|
|
5783
|
-
var DTODesignSystemComponentListResponse =
|
|
5801
|
+
var DTODesignSystemComponentListResponse = z198.object({
|
|
5784
5802
|
designSystemComponents: DTODesignSystemComponent.array()
|
|
5785
5803
|
});
|
|
5786
|
-
var DTODesignSystemComponentCreateInput =
|
|
5787
|
-
brandId:
|
|
5804
|
+
var DTODesignSystemComponentCreateInput = z198.object({
|
|
5805
|
+
brandId: z198.string(),
|
|
5788
5806
|
// Persistent ID,
|
|
5789
|
-
persistentId:
|
|
5807
|
+
persistentId: z198.string(),
|
|
5790
5808
|
meta: DTOObjectMeta
|
|
5791
5809
|
});
|
|
5792
5810
|
|
|
5793
5811
|
// src/api/dto/design-systems/contact.ts
|
|
5794
|
-
import { z as
|
|
5812
|
+
import { z as z202 } from "zod";
|
|
5795
5813
|
|
|
5796
5814
|
// src/api/dto/users/authenticated-user.ts
|
|
5797
|
-
import { z as
|
|
5815
|
+
import { z as z200 } from "zod";
|
|
5798
5816
|
|
|
5799
5817
|
// src/api/dto/users/user.ts
|
|
5800
|
-
import { z as
|
|
5801
|
-
var DTOUserProfile =
|
|
5802
|
-
name:
|
|
5803
|
-
nickname:
|
|
5804
|
-
avatar:
|
|
5805
|
-
});
|
|
5806
|
-
var DTOUser =
|
|
5807
|
-
id:
|
|
5808
|
-
email:
|
|
5818
|
+
import { z as z199 } from "zod";
|
|
5819
|
+
var DTOUserProfile = z199.object({
|
|
5820
|
+
name: z199.string(),
|
|
5821
|
+
nickname: z199.string().optional(),
|
|
5822
|
+
avatar: z199.string().optional()
|
|
5823
|
+
});
|
|
5824
|
+
var DTOUser = z199.object({
|
|
5825
|
+
id: z199.string(),
|
|
5826
|
+
email: z199.string(),
|
|
5809
5827
|
profile: DTOUserProfile
|
|
5810
5828
|
});
|
|
5811
|
-
var DTOUserGetResponse =
|
|
5829
|
+
var DTOUserGetResponse = z199.object({
|
|
5812
5830
|
user: DTOUser
|
|
5813
5831
|
});
|
|
5814
5832
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -5818,17 +5836,17 @@ var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
|
5818
5836
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5819
5837
|
var DTOUserSource = UserSource;
|
|
5820
5838
|
var DTOUserTheme = UserTheme;
|
|
5821
|
-
var DTOUserOnboarding =
|
|
5822
|
-
companyName:
|
|
5823
|
-
numberOfPeopleInOrg:
|
|
5824
|
-
numberOfPeopleInDesignTeam:
|
|
5839
|
+
var DTOUserOnboarding = z200.object({
|
|
5840
|
+
companyName: z200.string().optional(),
|
|
5841
|
+
numberOfPeopleInOrg: z200.string().optional(),
|
|
5842
|
+
numberOfPeopleInDesignTeam: z200.string().optional(),
|
|
5825
5843
|
department: DTOUserOnboardingDepartment.optional(),
|
|
5826
|
-
jobTitle:
|
|
5827
|
-
phase:
|
|
5844
|
+
jobTitle: z200.string().optional(),
|
|
5845
|
+
phase: z200.string().optional(),
|
|
5828
5846
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
5829
|
-
designSystemName:
|
|
5830
|
-
defaultDestination:
|
|
5831
|
-
isPageDraftOnboardingFinished:
|
|
5847
|
+
designSystemName: z200.string().optional(),
|
|
5848
|
+
defaultDestination: z200.string().optional(),
|
|
5849
|
+
isPageDraftOnboardingFinished: z200.boolean().optional()
|
|
5832
5850
|
});
|
|
5833
5851
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5834
5852
|
onboarding: DTOUserOnboarding.optional(),
|
|
@@ -5836,189 +5854,189 @@ var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
|
5836
5854
|
});
|
|
5837
5855
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5838
5856
|
profile: DTOAuthenticatedUserProfile,
|
|
5839
|
-
createdAt:
|
|
5840
|
-
loggedOutAt:
|
|
5857
|
+
createdAt: z200.coerce.date(),
|
|
5858
|
+
loggedOutAt: z200.coerce.date().optional(),
|
|
5841
5859
|
source: DTOUserSource.optional()
|
|
5842
5860
|
});
|
|
5843
|
-
var DTOAuthenticatedUserResponse =
|
|
5861
|
+
var DTOAuthenticatedUserResponse = z200.object({
|
|
5844
5862
|
user: DTOAuthenticatedUser
|
|
5845
5863
|
});
|
|
5846
5864
|
|
|
5847
5865
|
// src/api/dto/users/update.ts
|
|
5848
|
-
import { z as
|
|
5849
|
-
var DTOUserProfileUpdateResponse =
|
|
5866
|
+
import { z as z201 } from "zod";
|
|
5867
|
+
var DTOUserProfileUpdateResponse = z201.object({
|
|
5850
5868
|
user: User
|
|
5851
5869
|
});
|
|
5852
5870
|
|
|
5853
5871
|
// src/api/dto/design-systems/contact.ts
|
|
5854
|
-
var DTODesignSystemContactsResponse =
|
|
5855
|
-
contacts:
|
|
5856
|
-
workspace:
|
|
5857
|
-
designSystem:
|
|
5872
|
+
var DTODesignSystemContactsResponse = z202.object({
|
|
5873
|
+
contacts: z202.object({
|
|
5874
|
+
workspace: z202.array(DTOUser),
|
|
5875
|
+
designSystem: z202.array(DTOUser)
|
|
5858
5876
|
})
|
|
5859
5877
|
});
|
|
5860
5878
|
|
|
5861
5879
|
// src/api/dto/design-systems/data-source.ts
|
|
5862
|
-
import { z as
|
|
5880
|
+
import { z as z203 } from "zod";
|
|
5863
5881
|
var DTODataSourceFigmaScope = DataSourceFigmaScope;
|
|
5864
|
-
var DTODataSourceFigmaFileVersion =
|
|
5865
|
-
id:
|
|
5866
|
-
created_at:
|
|
5867
|
-
label:
|
|
5868
|
-
description:
|
|
5869
|
-
});
|
|
5870
|
-
var DTODataSourceFigmaCloud =
|
|
5871
|
-
fileId:
|
|
5882
|
+
var DTODataSourceFigmaFileVersion = z203.object({
|
|
5883
|
+
id: z203.string(),
|
|
5884
|
+
created_at: z203.coerce.date(),
|
|
5885
|
+
label: z203.string(),
|
|
5886
|
+
description: z203.string()
|
|
5887
|
+
});
|
|
5888
|
+
var DTODataSourceFigmaCloud = z203.object({
|
|
5889
|
+
fileId: z203.string(),
|
|
5872
5890
|
state: DataSourceFigmaState,
|
|
5873
5891
|
autoImportMode: DataSourceAutoImportMode,
|
|
5874
|
-
fileThumbnailUrl:
|
|
5892
|
+
fileThumbnailUrl: z203.string().optional(),
|
|
5875
5893
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5876
|
-
lastImportedAt:
|
|
5894
|
+
lastImportedAt: z203.coerce.date().nullish(),
|
|
5877
5895
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5878
|
-
lastUpdatesCheckedAt:
|
|
5879
|
-
ownerId:
|
|
5880
|
-
ownerUserName:
|
|
5881
|
-
preferredCredentialId:
|
|
5896
|
+
lastUpdatesCheckedAt: z203.date().nullish(),
|
|
5897
|
+
ownerId: z203.string(),
|
|
5898
|
+
ownerUserName: z203.string().optional(),
|
|
5899
|
+
preferredCredentialId: z203.string().optional(),
|
|
5882
5900
|
stats: DataSourceStats
|
|
5883
5901
|
});
|
|
5884
|
-
var DTODataSourceFigma =
|
|
5885
|
-
id:
|
|
5886
|
-
type:
|
|
5887
|
-
fileName:
|
|
5902
|
+
var DTODataSourceFigma = z203.object({
|
|
5903
|
+
id: z203.string(),
|
|
5904
|
+
type: z203.literal(DataSourceRemoteType.Enum.Figma),
|
|
5905
|
+
fileName: z203.string(),
|
|
5888
5906
|
scope: DTODataSourceFigmaScope,
|
|
5889
|
-
brandId:
|
|
5890
|
-
themeId:
|
|
5907
|
+
brandId: z203.string(),
|
|
5908
|
+
themeId: z203.string().nullish(),
|
|
5891
5909
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
5892
|
-
sortOrder:
|
|
5893
|
-
});
|
|
5894
|
-
var DTODataSourceTokenStudio =
|
|
5895
|
-
id:
|
|
5896
|
-
type:
|
|
5897
|
-
fileName:
|
|
5898
|
-
brandId:
|
|
5899
|
-
themeId:
|
|
5900
|
-
sortOrder:
|
|
5901
|
-
tokenStudio:
|
|
5902
|
-
settings:
|
|
5903
|
-
dryRun:
|
|
5904
|
-
verbose:
|
|
5905
|
-
preciseCopy:
|
|
5910
|
+
sortOrder: z203.number().optional()
|
|
5911
|
+
});
|
|
5912
|
+
var DTODataSourceTokenStudio = z203.object({
|
|
5913
|
+
id: z203.string(),
|
|
5914
|
+
type: z203.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5915
|
+
fileName: z203.string(),
|
|
5916
|
+
brandId: z203.string(),
|
|
5917
|
+
themeId: z203.string().nullish(),
|
|
5918
|
+
sortOrder: z203.number().optional(),
|
|
5919
|
+
tokenStudio: z203.object({
|
|
5920
|
+
settings: z203.object({
|
|
5921
|
+
dryRun: z203.boolean(),
|
|
5922
|
+
verbose: z203.boolean(),
|
|
5923
|
+
preciseCopy: z203.boolean()
|
|
5906
5924
|
}),
|
|
5907
|
-
connectionName:
|
|
5908
|
-
lastImportedAt:
|
|
5909
|
-
lastImportedResults:
|
|
5910
|
-
|
|
5911
|
-
mapping:
|
|
5912
|
-
tokenSets:
|
|
5913
|
-
supernovaBrand:
|
|
5914
|
-
supernovaTheme:
|
|
5925
|
+
connectionName: z203.string(),
|
|
5926
|
+
lastImportedAt: z203.coerce.date(),
|
|
5927
|
+
lastImportedResults: z203.array(
|
|
5928
|
+
z203.object({
|
|
5929
|
+
mapping: z203.object({
|
|
5930
|
+
tokenSets: z203.array(z203.string()),
|
|
5931
|
+
supernovaBrand: z203.string(),
|
|
5932
|
+
supernovaTheme: z203.string().optional()
|
|
5915
5933
|
}),
|
|
5916
|
-
isFailed:
|
|
5917
|
-
tokensCreated:
|
|
5918
|
-
tokensDeleted:
|
|
5919
|
-
tokensUpdated:
|
|
5934
|
+
isFailed: z203.boolean(),
|
|
5935
|
+
tokensCreated: z203.number(),
|
|
5936
|
+
tokensDeleted: z203.number(),
|
|
5937
|
+
tokensUpdated: z203.number()
|
|
5920
5938
|
})
|
|
5921
5939
|
)
|
|
5922
5940
|
})
|
|
5923
5941
|
});
|
|
5924
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5925
|
-
id:
|
|
5926
|
-
type:
|
|
5927
|
-
fileName:
|
|
5928
|
-
brandId:
|
|
5929
|
-
sortOrder:
|
|
5930
|
-
upload:
|
|
5931
|
-
remoteId:
|
|
5942
|
+
var DTODataSourceFigmaVariablesPlugin = z203.object({
|
|
5943
|
+
id: z203.string(),
|
|
5944
|
+
type: z203.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5945
|
+
fileName: z203.string(),
|
|
5946
|
+
brandId: z203.string(),
|
|
5947
|
+
sortOrder: z203.number().optional(),
|
|
5948
|
+
upload: z203.object({
|
|
5949
|
+
remoteId: z203.string(),
|
|
5932
5950
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5933
|
-
lastImportedAt:
|
|
5951
|
+
lastImportedAt: z203.coerce.date().optional(),
|
|
5934
5952
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5935
|
-
isTokenTypeSplitEnabled:
|
|
5953
|
+
isTokenTypeSplitEnabled: z203.boolean()
|
|
5936
5954
|
}),
|
|
5937
|
-
figmaVariablesPlugin:
|
|
5938
|
-
fileId:
|
|
5939
|
-
lastImportedAt:
|
|
5955
|
+
figmaVariablesPlugin: z203.object({
|
|
5956
|
+
fileId: z203.string(),
|
|
5957
|
+
lastImportedAt: z203.coerce.date().optional(),
|
|
5940
5958
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5941
|
-
isTokenTypeSplitEnabled:
|
|
5942
|
-
isCollectionsMigrationCompleted:
|
|
5959
|
+
isTokenTypeSplitEnabled: z203.boolean(),
|
|
5960
|
+
isCollectionsMigrationCompleted: z203.boolean().default(false)
|
|
5943
5961
|
})
|
|
5944
5962
|
});
|
|
5945
|
-
var DTODataSourceStorybook =
|
|
5946
|
-
id:
|
|
5947
|
-
type:
|
|
5948
|
-
fileName:
|
|
5949
|
-
brandId:
|
|
5950
|
-
sortOrder:
|
|
5951
|
-
storybook:
|
|
5952
|
-
indexUrl:
|
|
5953
|
-
userUrl:
|
|
5954
|
-
lastImportedAt:
|
|
5963
|
+
var DTODataSourceStorybook = z203.object({
|
|
5964
|
+
id: z203.string(),
|
|
5965
|
+
type: z203.literal(DataSourceRemoteType.Enum.Storybook),
|
|
5966
|
+
fileName: z203.string(),
|
|
5967
|
+
brandId: z203.string(),
|
|
5968
|
+
sortOrder: z203.number().optional(),
|
|
5969
|
+
storybook: z203.object({
|
|
5970
|
+
indexUrl: z203.string(),
|
|
5971
|
+
userUrl: z203.string(),
|
|
5972
|
+
lastImportedAt: z203.coerce.date().optional(),
|
|
5955
5973
|
lastImportedResult: SourceImportStorybookSummary.optional(),
|
|
5956
|
-
lastImportedSuccessfully:
|
|
5957
|
-
isFailed:
|
|
5958
|
-
storiesCount:
|
|
5959
|
-
docsCount:
|
|
5960
|
-
description:
|
|
5961
|
-
isUsingVpn:
|
|
5974
|
+
lastImportedSuccessfully: z203.coerce.date().optional(),
|
|
5975
|
+
isFailed: z203.boolean(),
|
|
5976
|
+
storiesCount: z203.number(),
|
|
5977
|
+
docsCount: z203.number(),
|
|
5978
|
+
description: z203.string().optional(),
|
|
5979
|
+
isUsingVpn: z203.boolean().optional()
|
|
5962
5980
|
})
|
|
5963
5981
|
});
|
|
5964
|
-
var DTODataSourcesStorybookResponse =
|
|
5965
|
-
isFailed:
|
|
5966
|
-
storiesCount:
|
|
5967
|
-
docsCount:
|
|
5968
|
-
created:
|
|
5969
|
-
updated:
|
|
5970
|
-
deleted:
|
|
5982
|
+
var DTODataSourcesStorybookResponse = z203.object({
|
|
5983
|
+
isFailed: z203.boolean(),
|
|
5984
|
+
storiesCount: z203.number(),
|
|
5985
|
+
docsCount: z203.number(),
|
|
5986
|
+
created: z203.array(z203.string()).optional(),
|
|
5987
|
+
updated: z203.array(z203.string()).optional(),
|
|
5988
|
+
deleted: z203.array(z203.string()).optional()
|
|
5971
5989
|
});
|
|
5972
|
-
var DTODataSource =
|
|
5990
|
+
var DTODataSource = z203.discriminatedUnion("type", [
|
|
5973
5991
|
DTODataSourceFigma,
|
|
5974
5992
|
DTODataSourceFigmaVariablesPlugin,
|
|
5975
5993
|
DTODataSourceTokenStudio,
|
|
5976
5994
|
DTODataSourceStorybook
|
|
5977
5995
|
]);
|
|
5978
|
-
var DTODataSourcesListResponse =
|
|
5979
|
-
sources:
|
|
5996
|
+
var DTODataSourcesListResponse = z203.object({
|
|
5997
|
+
sources: z203.array(DTODataSource)
|
|
5980
5998
|
});
|
|
5981
|
-
var DTODataSourceResponse =
|
|
5999
|
+
var DTODataSourceResponse = z203.object({
|
|
5982
6000
|
source: DTODataSource
|
|
5983
6001
|
});
|
|
5984
|
-
var DTODataSourceFigmaCreatePayload =
|
|
5985
|
-
brandPersistentId:
|
|
5986
|
-
figmaFileUrl:
|
|
6002
|
+
var DTODataSourceFigmaCreatePayload = z203.object({
|
|
6003
|
+
brandPersistentId: z203.string(),
|
|
6004
|
+
figmaFileUrl: z203.string(),
|
|
5987
6005
|
scope: DTODataSourceFigmaScope,
|
|
5988
6006
|
autoImportMode: DataSourceAutoImportMode
|
|
5989
6007
|
});
|
|
5990
|
-
var DTODataSourceFigmaImportPayload =
|
|
5991
|
-
sourceIds:
|
|
6008
|
+
var DTODataSourceFigmaImportPayload = z203.object({
|
|
6009
|
+
sourceIds: z203.array(z203.string())
|
|
5992
6010
|
});
|
|
5993
|
-
var DTODataSourceStorybookCreatePayload =
|
|
5994
|
-
brandPersistentId:
|
|
5995
|
-
fileName:
|
|
5996
|
-
userUrl:
|
|
5997
|
-
indexUrl:
|
|
5998
|
-
payload:
|
|
5999
|
-
type:
|
|
6000
|
-
description:
|
|
6001
|
-
isUsingVpn:
|
|
6011
|
+
var DTODataSourceStorybookCreatePayload = z203.object({
|
|
6012
|
+
brandPersistentId: z203.string(),
|
|
6013
|
+
fileName: z203.string().optional(),
|
|
6014
|
+
userUrl: z203.string(),
|
|
6015
|
+
indexUrl: z203.string(),
|
|
6016
|
+
payload: z203.unknown(),
|
|
6017
|
+
type: z203.literal(DataSourceRemoteType.Enum.Storybook),
|
|
6018
|
+
description: z203.string().optional(),
|
|
6019
|
+
isUsingVpn: z203.boolean().optional()
|
|
6002
6020
|
});
|
|
6003
|
-
var DTOStorybookImportPayload =
|
|
6004
|
-
sourceId:
|
|
6005
|
-
payload:
|
|
6021
|
+
var DTOStorybookImportPayload = z203.object({
|
|
6022
|
+
sourceId: z203.string(),
|
|
6023
|
+
payload: z203.unknown()
|
|
6006
6024
|
});
|
|
6007
|
-
var DTOStorybookSourceUpdatePayload =
|
|
6008
|
-
description:
|
|
6009
|
-
isUsingVpn:
|
|
6010
|
-
fileName:
|
|
6025
|
+
var DTOStorybookSourceUpdatePayload = z203.object({
|
|
6026
|
+
description: z203.string().nullish().optional(),
|
|
6027
|
+
isUsingVpn: z203.boolean().optional(),
|
|
6028
|
+
fileName: z203.string().optional()
|
|
6011
6029
|
});
|
|
6012
6030
|
|
|
6013
6031
|
// src/api/dto/design-systems/design-system.ts
|
|
6014
|
-
import { z as
|
|
6032
|
+
import { z as z206 } from "zod";
|
|
6015
6033
|
|
|
6016
6034
|
// src/api/dto/design-systems/members.ts
|
|
6017
|
-
import { z as
|
|
6035
|
+
import { z as z205 } from "zod";
|
|
6018
6036
|
|
|
6019
6037
|
// src/api/dto/design-systems/role.ts
|
|
6020
|
-
import { z as
|
|
6021
|
-
var DTODesignSystemRole =
|
|
6038
|
+
import { z as z204 } from "zod";
|
|
6039
|
+
var DTODesignSystemRole = z204.enum([
|
|
6022
6040
|
WorkspaceRole.Admin,
|
|
6023
6041
|
WorkspaceRole.Contributor,
|
|
6024
6042
|
WorkspaceRole.Creator,
|
|
@@ -6026,29 +6044,29 @@ var DTODesignSystemRole = z203.enum([
|
|
|
6026
6044
|
]);
|
|
6027
6045
|
|
|
6028
6046
|
// src/api/dto/design-systems/members.ts
|
|
6029
|
-
var DTODesignSystemMember =
|
|
6030
|
-
userId:
|
|
6047
|
+
var DTODesignSystemMember = z205.object({
|
|
6048
|
+
userId: z205.string(),
|
|
6031
6049
|
/**
|
|
6032
6050
|
* Role that the member has in the design system,
|
|
6033
6051
|
* undefined if set to inherit from workspace
|
|
6034
6052
|
*/
|
|
6035
6053
|
designSystemRole: DTODesignSystemRole.optional()
|
|
6036
6054
|
});
|
|
6037
|
-
var DTODesignSystemInvitation =
|
|
6038
|
-
id:
|
|
6039
|
-
workspaceInvitationId:
|
|
6055
|
+
var DTODesignSystemInvitation = z205.object({
|
|
6056
|
+
id: z205.string(),
|
|
6057
|
+
workspaceInvitationId: z205.string(),
|
|
6040
6058
|
/**
|
|
6041
6059
|
* Role that the invitation has in the design system,
|
|
6042
6060
|
* undefined if set to inherit from workspace
|
|
6043
6061
|
*/
|
|
6044
6062
|
designSystemRole: DTODesignSystemRole.optional()
|
|
6045
6063
|
});
|
|
6046
|
-
var DTODesignSystemMemberListResponse =
|
|
6064
|
+
var DTODesignSystemMemberListResponse = z205.object({
|
|
6047
6065
|
members: DTODesignSystemMember.array(),
|
|
6048
6066
|
invitations: DTODesignSystemInvitation.array()
|
|
6049
6067
|
});
|
|
6050
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
6051
|
-
ok:
|
|
6068
|
+
var DTODesignSystemMembersUpdateResponse = z205.object({
|
|
6069
|
+
ok: z205.literal(true)
|
|
6052
6070
|
});
|
|
6053
6071
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
6054
6072
|
|
|
@@ -6059,14 +6077,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
6059
6077
|
docExporterId: true
|
|
6060
6078
|
}).extend({
|
|
6061
6079
|
meta: ObjectMeta,
|
|
6062
|
-
docExporterId:
|
|
6063
|
-
sources:
|
|
6064
|
-
isPublic:
|
|
6080
|
+
docExporterId: z206.string(),
|
|
6081
|
+
sources: z206.array(z206.any()),
|
|
6082
|
+
isPublic: z206.literal(true),
|
|
6065
6083
|
/**
|
|
6066
6084
|
* Whether or not user who is requesting the design system
|
|
6067
6085
|
* has access to the design system's contents.
|
|
6068
6086
|
*/
|
|
6069
|
-
isAvailableToUser:
|
|
6087
|
+
isAvailableToUser: z206.boolean(),
|
|
6070
6088
|
/**
|
|
6071
6089
|
* @deprecated
|
|
6072
6090
|
*/
|
|
@@ -6077,17 +6095,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
6077
6095
|
*/
|
|
6078
6096
|
effectiveRole: DTODesignSystemRole.optional()
|
|
6079
6097
|
});
|
|
6080
|
-
var DTODesignSystemResponse =
|
|
6098
|
+
var DTODesignSystemResponse = z206.object({
|
|
6081
6099
|
designSystem: DTODesignSystem
|
|
6082
6100
|
});
|
|
6083
|
-
var DTODesignSystemsListResponse =
|
|
6101
|
+
var DTODesignSystemsListResponse = z206.object({
|
|
6084
6102
|
designSystems: DTODesignSystem.array()
|
|
6085
6103
|
});
|
|
6086
|
-
var DTODesignSystemCreateInput =
|
|
6087
|
-
workspaceId:
|
|
6104
|
+
var DTODesignSystemCreateInput = z206.object({
|
|
6105
|
+
workspaceId: z206.string(),
|
|
6088
6106
|
meta: ObjectMeta.optional(),
|
|
6089
|
-
name:
|
|
6090
|
-
description:
|
|
6107
|
+
name: z206.string().min(2).max(64).optional(),
|
|
6108
|
+
description: z206.string().max(1024).optional(),
|
|
6091
6109
|
accessMode: DesignSystemAccessMode.optional(),
|
|
6092
6110
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
6093
6111
|
usersToInvite: true,
|
|
@@ -6097,20 +6115,20 @@ var DTODesignSystemCreateInput = z205.object({
|
|
|
6097
6115
|
});
|
|
6098
6116
|
|
|
6099
6117
|
// src/api/dto/design-systems/elements-diff.ts
|
|
6100
|
-
import { z as
|
|
6101
|
-
var DTODiffCountBase =
|
|
6102
|
-
created:
|
|
6103
|
-
updated:
|
|
6104
|
-
deleted:
|
|
6118
|
+
import { z as z207 } from "zod";
|
|
6119
|
+
var DTODiffCountBase = z207.object({
|
|
6120
|
+
created: z207.number(),
|
|
6121
|
+
updated: z207.number(),
|
|
6122
|
+
deleted: z207.number()
|
|
6105
6123
|
});
|
|
6106
|
-
var DTODesignElementsDataDiffResponse =
|
|
6124
|
+
var DTODesignElementsDataDiffResponse = z207.object({
|
|
6107
6125
|
tokens: DTODiffCountBase,
|
|
6108
6126
|
assets: DTODiffCountBase
|
|
6109
6127
|
});
|
|
6110
6128
|
|
|
6111
6129
|
// src/api/dto/design-systems/figma-variables.ts
|
|
6112
|
-
import { z as
|
|
6113
|
-
var DimensionsVariableScopeSchema =
|
|
6130
|
+
import { z as z208 } from "zod";
|
|
6131
|
+
var DimensionsVariableScopeSchema = z208.enum([
|
|
6114
6132
|
"CORNER_RADIUS",
|
|
6115
6133
|
"WIDTH_HEIGHT",
|
|
6116
6134
|
"GAP",
|
|
@@ -6124,328 +6142,328 @@ var DimensionsVariableScopeSchema = z207.enum([
|
|
|
6124
6142
|
"PARAGRAPH_INDENT",
|
|
6125
6143
|
"FONT_WEIGHT"
|
|
6126
6144
|
]);
|
|
6127
|
-
var StringVariableScopeSchema =
|
|
6145
|
+
var StringVariableScopeSchema = z208.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
6128
6146
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
6129
6147
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
6130
|
-
var VariableScope =
|
|
6131
|
-
var ReferencedVariableOrigin =
|
|
6132
|
-
name:
|
|
6133
|
-
remote:
|
|
6148
|
+
var VariableScope = z208.string();
|
|
6149
|
+
var ReferencedVariableOrigin = z208.object({
|
|
6150
|
+
name: z208.string(),
|
|
6151
|
+
remote: z208.boolean()
|
|
6134
6152
|
});
|
|
6135
|
-
var RGB =
|
|
6136
|
-
r:
|
|
6137
|
-
g:
|
|
6138
|
-
b:
|
|
6153
|
+
var RGB = z208.object({
|
|
6154
|
+
r: z208.number(),
|
|
6155
|
+
g: z208.number(),
|
|
6156
|
+
b: z208.number()
|
|
6139
6157
|
});
|
|
6140
6158
|
var RGBA = RGB.extend({
|
|
6141
|
-
a:
|
|
6142
|
-
});
|
|
6143
|
-
var VariableAlias =
|
|
6144
|
-
type:
|
|
6145
|
-
id:
|
|
6146
|
-
resolvedValue:
|
|
6147
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
6148
|
-
});
|
|
6149
|
-
var VariableValue =
|
|
6150
|
-
var ResolvedVariableType =
|
|
6151
|
-
var Variable =
|
|
6152
|
-
id:
|
|
6153
|
-
name:
|
|
6154
|
-
key:
|
|
6155
|
-
variableCollectionId:
|
|
6159
|
+
a: z208.number()
|
|
6160
|
+
});
|
|
6161
|
+
var VariableAlias = z208.object({
|
|
6162
|
+
type: z208.literal("VARIABLE_ALIAS"),
|
|
6163
|
+
id: z208.string(),
|
|
6164
|
+
resolvedValue: z208.boolean().or(z208.number()).or(z208.string()).or(RGBA).or(RGB).optional(),
|
|
6165
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z208.null())
|
|
6166
|
+
});
|
|
6167
|
+
var VariableValue = z208.boolean().or(z208.number()).or(z208.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
6168
|
+
var ResolvedVariableType = z208.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
6169
|
+
var Variable = z208.object({
|
|
6170
|
+
id: z208.string(),
|
|
6171
|
+
name: z208.string(),
|
|
6172
|
+
key: z208.string(),
|
|
6173
|
+
variableCollectionId: z208.string(),
|
|
6156
6174
|
resolvedType: ResolvedVariableType,
|
|
6157
|
-
valuesByMode:
|
|
6158
|
-
remote:
|
|
6159
|
-
description:
|
|
6160
|
-
hiddenFromPublishing:
|
|
6161
|
-
scopes:
|
|
6162
|
-
codeSyntax:
|
|
6163
|
-
});
|
|
6164
|
-
var VariableMode =
|
|
6165
|
-
modeId:
|
|
6166
|
-
name:
|
|
6167
|
-
});
|
|
6168
|
-
var Collection2 =
|
|
6169
|
-
id:
|
|
6170
|
-
name:
|
|
6171
|
-
modes:
|
|
6172
|
-
defaultModeId:
|
|
6173
|
-
remote:
|
|
6174
|
-
hiddenFromPublishing:
|
|
6175
|
-
});
|
|
6176
|
-
var VariablesMapping =
|
|
6177
|
-
variableCollections:
|
|
6178
|
-
variableMode:
|
|
6179
|
-
supernovaBrand:
|
|
6180
|
-
supernovaTheme:
|
|
6181
|
-
});
|
|
6182
|
-
var FormattedCollections =
|
|
6183
|
-
variables:
|
|
6184
|
-
variableCollections:
|
|
6185
|
-
mappings:
|
|
6186
|
-
variablesOrder:
|
|
6175
|
+
valuesByMode: z208.record(VariableValue),
|
|
6176
|
+
remote: z208.boolean(),
|
|
6177
|
+
description: z208.string(),
|
|
6178
|
+
hiddenFromPublishing: z208.boolean(),
|
|
6179
|
+
scopes: z208.array(VariableScope),
|
|
6180
|
+
codeSyntax: z208.record(z208.any()).optional()
|
|
6181
|
+
});
|
|
6182
|
+
var VariableMode = z208.object({
|
|
6183
|
+
modeId: z208.string(),
|
|
6184
|
+
name: z208.string()
|
|
6185
|
+
});
|
|
6186
|
+
var Collection2 = z208.object({
|
|
6187
|
+
id: z208.string(),
|
|
6188
|
+
name: z208.string(),
|
|
6189
|
+
modes: z208.array(VariableMode),
|
|
6190
|
+
defaultModeId: z208.string(),
|
|
6191
|
+
remote: z208.boolean(),
|
|
6192
|
+
hiddenFromPublishing: z208.boolean()
|
|
6193
|
+
});
|
|
6194
|
+
var VariablesMapping = z208.object({
|
|
6195
|
+
variableCollections: z208.array(z208.string()).min(1),
|
|
6196
|
+
variableMode: z208.string().min(1),
|
|
6197
|
+
supernovaBrand: z208.string().min(1),
|
|
6198
|
+
supernovaTheme: z208.string().min(1).optional().or(z208.null())
|
|
6199
|
+
});
|
|
6200
|
+
var FormattedCollections = z208.object({
|
|
6201
|
+
variables: z208.record(z208.string(), Variable),
|
|
6202
|
+
variableCollections: z208.record(z208.string(), Collection2),
|
|
6203
|
+
mappings: z208.array(VariablesMapping).optional(),
|
|
6204
|
+
variablesOrder: z208.string().array().optional()
|
|
6187
6205
|
});
|
|
6188
6206
|
|
|
6189
6207
|
// src/api/dto/design-systems/import-job.ts
|
|
6190
|
-
import { z as
|
|
6191
|
-
var DTOImportJob =
|
|
6192
|
-
id:
|
|
6193
|
-
designSystemId:
|
|
6194
|
-
designSystemVersionId:
|
|
6195
|
-
operation:
|
|
6196
|
-
createdAt:
|
|
6197
|
-
stateChangedAt:
|
|
6208
|
+
import { z as z209 } from "zod";
|
|
6209
|
+
var DTOImportJob = z209.object({
|
|
6210
|
+
id: z209.string(),
|
|
6211
|
+
designSystemId: z209.string(),
|
|
6212
|
+
designSystemVersionId: z209.string(),
|
|
6213
|
+
operation: z209.literal("Import"),
|
|
6214
|
+
createdAt: z209.coerce.date(),
|
|
6215
|
+
stateChangedAt: z209.coerce.date(),
|
|
6198
6216
|
state: ImportJobState,
|
|
6199
|
-
sourceIds:
|
|
6217
|
+
sourceIds: z209.string().array()
|
|
6200
6218
|
});
|
|
6201
|
-
var DTOImportJobResponse =
|
|
6219
|
+
var DTOImportJobResponse = z209.object({
|
|
6202
6220
|
job: DTOImportJob
|
|
6203
6221
|
});
|
|
6204
|
-
var DTOBffFigmaImportRequestBody =
|
|
6205
|
-
type:
|
|
6206
|
-
brandPersistentId:
|
|
6207
|
-
fileId:
|
|
6222
|
+
var DTOBffFigmaImportRequestBody = z209.object({
|
|
6223
|
+
type: z209.literal(DataSourceRemoteType.Enum.Figma),
|
|
6224
|
+
brandPersistentId: z209.string().optional(),
|
|
6225
|
+
fileId: z209.string(),
|
|
6208
6226
|
scope: DataSourceFigmaScope,
|
|
6209
6227
|
autoImportMode: DataSourceAutoImportMode
|
|
6210
6228
|
});
|
|
6211
|
-
var DTOBffUploadImportRequestBody =
|
|
6212
|
-
type:
|
|
6213
|
-
brandPersistentId:
|
|
6214
|
-
sourceName:
|
|
6215
|
-
remoteId:
|
|
6216
|
-
isTokenTypeSplitEnabled:
|
|
6217
|
-
payload:
|
|
6229
|
+
var DTOBffUploadImportRequestBody = z209.object({
|
|
6230
|
+
type: z209.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
6231
|
+
brandPersistentId: z209.string().optional(),
|
|
6232
|
+
sourceName: z209.string().optional(),
|
|
6233
|
+
remoteId: z209.string(),
|
|
6234
|
+
isTokenTypeSplitEnabled: z209.boolean().optional(),
|
|
6235
|
+
payload: z209.any()
|
|
6218
6236
|
});
|
|
6219
|
-
var DTOBffImportRequestBody =
|
|
6237
|
+
var DTOBffImportRequestBody = z209.discriminatedUnion("type", [
|
|
6220
6238
|
DTOBffFigmaImportRequestBody,
|
|
6221
6239
|
DTOBffUploadImportRequestBody
|
|
6222
6240
|
]);
|
|
6223
6241
|
|
|
6224
6242
|
// src/api/dto/design-systems/redirects.ts
|
|
6225
|
-
import { z as
|
|
6226
|
-
var DTOPageRedirectCreateBody =
|
|
6227
|
-
pagePersistentId:
|
|
6228
|
-
path:
|
|
6243
|
+
import { z as z210 } from "zod";
|
|
6244
|
+
var DTOPageRedirectCreateBody = z210.object({
|
|
6245
|
+
pagePersistentId: z210.string(),
|
|
6246
|
+
path: z210.string()
|
|
6229
6247
|
});
|
|
6230
6248
|
var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
|
|
6231
|
-
var DTOPageRedirect =
|
|
6232
|
-
id:
|
|
6233
|
-
pagePersistentId:
|
|
6234
|
-
path:
|
|
6249
|
+
var DTOPageRedirect = z210.object({
|
|
6250
|
+
id: z210.string(),
|
|
6251
|
+
pagePersistentId: z210.string(),
|
|
6252
|
+
path: z210.string()
|
|
6235
6253
|
});
|
|
6236
|
-
var DTOPageRedirectListResponse =
|
|
6254
|
+
var DTOPageRedirectListResponse = z210.object({
|
|
6237
6255
|
redirects: DTOPageRedirect.array()
|
|
6238
6256
|
});
|
|
6239
|
-
var DTOPageRedirectResponse =
|
|
6257
|
+
var DTOPageRedirectResponse = z210.object({
|
|
6240
6258
|
redirect: DTOPageRedirect
|
|
6241
6259
|
});
|
|
6242
|
-
var DTOPageRedirectDeleteResponse =
|
|
6243
|
-
success:
|
|
6260
|
+
var DTOPageRedirectDeleteResponse = z210.object({
|
|
6261
|
+
success: z210.boolean()
|
|
6244
6262
|
});
|
|
6245
6263
|
|
|
6246
6264
|
// src/api/dto/design-systems/stats.ts
|
|
6247
|
-
import { z as
|
|
6248
|
-
var DTODesignSystemVersionStats =
|
|
6249
|
-
tokens:
|
|
6250
|
-
designSystemComponents:
|
|
6251
|
-
assets:
|
|
6252
|
-
documentationPages:
|
|
6253
|
-
figmaComponents:
|
|
6254
|
-
});
|
|
6255
|
-
var DTODesignSystemVersionStatsQuery =
|
|
6265
|
+
import { z as z211 } from "zod";
|
|
6266
|
+
var DTODesignSystemVersionStats = z211.object({
|
|
6267
|
+
tokens: z211.number(),
|
|
6268
|
+
designSystemComponents: z211.number(),
|
|
6269
|
+
assets: z211.number(),
|
|
6270
|
+
documentationPages: z211.number(),
|
|
6271
|
+
figmaComponents: z211.number()
|
|
6272
|
+
});
|
|
6273
|
+
var DTODesignSystemVersionStatsQuery = z211.object({
|
|
6256
6274
|
/**
|
|
6257
6275
|
* Unique ID across versions (non-persistent ID)
|
|
6258
6276
|
*/
|
|
6259
|
-
brandId:
|
|
6277
|
+
brandId: z211.string().optional()
|
|
6260
6278
|
});
|
|
6261
6279
|
|
|
6262
6280
|
// src/api/dto/design-systems/storybook.ts
|
|
6263
|
-
import { z as
|
|
6264
|
-
var DTOStorybookUploadUrlRequest =
|
|
6265
|
-
name:
|
|
6266
|
-
});
|
|
6267
|
-
var DTOStorybookUploadUrlResponse =
|
|
6268
|
-
signedUrl:
|
|
6269
|
-
storybookUploadId:
|
|
6270
|
-
});
|
|
6271
|
-
var DTOStorybookAccessTokenResponse =
|
|
6272
|
-
accessToken:
|
|
6273
|
-
});
|
|
6274
|
-
var DTOStorybookAccessTokenPayload =
|
|
6275
|
-
designSystemId:
|
|
6276
|
-
storybookUploadId:
|
|
6277
|
-
});
|
|
6278
|
-
var DTOStorybookUploadStatus =
|
|
6279
|
-
status:
|
|
6280
|
-
timestamp:
|
|
6281
|
-
reason:
|
|
6282
|
-
});
|
|
6283
|
-
var DTOStorybookEntryOrigin =
|
|
6284
|
-
id:
|
|
6285
|
-
type:
|
|
6286
|
-
name:
|
|
6287
|
-
title:
|
|
6288
|
-
});
|
|
6289
|
-
var DTOStorybookEntry =
|
|
6290
|
-
id:
|
|
6291
|
-
storyId:
|
|
6292
|
-
designSystemId:
|
|
6293
|
-
sourceId:
|
|
6294
|
-
aliases:
|
|
6295
|
-
url:
|
|
6296
|
-
isDeleted:
|
|
6281
|
+
import { z as z212 } from "zod";
|
|
6282
|
+
var DTOStorybookUploadUrlRequest = z212.object({
|
|
6283
|
+
name: z212.string()
|
|
6284
|
+
});
|
|
6285
|
+
var DTOStorybookUploadUrlResponse = z212.object({
|
|
6286
|
+
signedUrl: z212.string(),
|
|
6287
|
+
storybookUploadId: z212.string()
|
|
6288
|
+
});
|
|
6289
|
+
var DTOStorybookAccessTokenResponse = z212.object({
|
|
6290
|
+
accessToken: z212.string()
|
|
6291
|
+
});
|
|
6292
|
+
var DTOStorybookAccessTokenPayload = z212.object({
|
|
6293
|
+
designSystemId: z212.string(),
|
|
6294
|
+
storybookUploadId: z212.string()
|
|
6295
|
+
});
|
|
6296
|
+
var DTOStorybookUploadStatus = z212.object({
|
|
6297
|
+
status: z212.enum(["Failed", "InProgress", "Completed", "Unknown"]),
|
|
6298
|
+
timestamp: z212.number().optional(),
|
|
6299
|
+
reason: z212.string().optional()
|
|
6300
|
+
});
|
|
6301
|
+
var DTOStorybookEntryOrigin = z212.object({
|
|
6302
|
+
id: z212.string(),
|
|
6303
|
+
type: z212.enum(["story", "docs"]),
|
|
6304
|
+
name: z212.string(),
|
|
6305
|
+
title: z212.string()
|
|
6306
|
+
});
|
|
6307
|
+
var DTOStorybookEntry = z212.object({
|
|
6308
|
+
id: z212.string(),
|
|
6309
|
+
storyId: z212.string(),
|
|
6310
|
+
designSystemId: z212.string(),
|
|
6311
|
+
sourceId: z212.string(),
|
|
6312
|
+
aliases: z212.array(z212.string()).optional(),
|
|
6313
|
+
url: z212.string(),
|
|
6314
|
+
isDeleted: z212.boolean().optional(),
|
|
6297
6315
|
origin: DTOStorybookEntryOrigin,
|
|
6298
|
-
createdAt:
|
|
6299
|
-
updatedAt:
|
|
6316
|
+
createdAt: z212.coerce.date(),
|
|
6317
|
+
updatedAt: z212.coerce.date()
|
|
6300
6318
|
});
|
|
6301
|
-
var DTOStorybookEntryReplaceAction =
|
|
6302
|
-
newStoryId:
|
|
6319
|
+
var DTOStorybookEntryReplaceAction = z212.object({
|
|
6320
|
+
newStoryId: z212.string()
|
|
6303
6321
|
});
|
|
6304
|
-
var DTOStorybookEntryListResponse =
|
|
6305
|
-
var DTOStorybookEntryResponse =
|
|
6322
|
+
var DTOStorybookEntryListResponse = z212.object({ entries: z212.array(DTOStorybookEntry) });
|
|
6323
|
+
var DTOStorybookEntryResponse = z212.object({ entry: DTOStorybookEntry });
|
|
6306
6324
|
|
|
6307
6325
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
6308
|
-
import { z as
|
|
6326
|
+
import { z as z220 } from "zod";
|
|
6309
6327
|
|
|
6310
6328
|
// src/api/dto/workspaces/git.ts
|
|
6311
|
-
import { z as
|
|
6312
|
-
var DTOGitOrganization =
|
|
6313
|
-
id:
|
|
6314
|
-
name:
|
|
6315
|
-
url:
|
|
6316
|
-
slug:
|
|
6329
|
+
import { z as z213 } from "zod";
|
|
6330
|
+
var DTOGitOrganization = z213.object({
|
|
6331
|
+
id: z213.string(),
|
|
6332
|
+
name: z213.string(),
|
|
6333
|
+
url: z213.string(),
|
|
6334
|
+
slug: z213.string()
|
|
6317
6335
|
});
|
|
6318
|
-
var DTOGitProject =
|
|
6319
|
-
id:
|
|
6320
|
-
name:
|
|
6321
|
-
url:
|
|
6322
|
-
slug:
|
|
6336
|
+
var DTOGitProject = z213.object({
|
|
6337
|
+
id: z213.string(),
|
|
6338
|
+
name: z213.string(),
|
|
6339
|
+
url: z213.string(),
|
|
6340
|
+
slug: z213.string()
|
|
6323
6341
|
});
|
|
6324
|
-
var DTOGitRepository =
|
|
6325
|
-
id:
|
|
6326
|
-
name:
|
|
6327
|
-
url:
|
|
6328
|
-
slug:
|
|
6329
|
-
defaultBranch:
|
|
6342
|
+
var DTOGitRepository = z213.object({
|
|
6343
|
+
id: z213.string(),
|
|
6344
|
+
name: z213.string(),
|
|
6345
|
+
url: z213.string(),
|
|
6346
|
+
slug: z213.string(),
|
|
6347
|
+
defaultBranch: z213.string().optional()
|
|
6330
6348
|
});
|
|
6331
|
-
var DTOGitBranch =
|
|
6332
|
-
name:
|
|
6333
|
-
lastCommitId:
|
|
6349
|
+
var DTOGitBranch = z213.object({
|
|
6350
|
+
name: z213.string(),
|
|
6351
|
+
lastCommitId: z213.string()
|
|
6334
6352
|
});
|
|
6335
6353
|
|
|
6336
6354
|
// src/api/dto/workspaces/integrations.ts
|
|
6337
|
-
import { z as
|
|
6355
|
+
import { z as z214 } from "zod";
|
|
6338
6356
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6339
6357
|
accessToken: true,
|
|
6340
6358
|
refreshToken: true
|
|
6341
6359
|
});
|
|
6342
|
-
var DTOIntegration =
|
|
6343
|
-
id:
|
|
6344
|
-
workspaceId:
|
|
6360
|
+
var DTOIntegration = z214.object({
|
|
6361
|
+
id: z214.string(),
|
|
6362
|
+
workspaceId: z214.string(),
|
|
6345
6363
|
type: ExtendedIntegrationType,
|
|
6346
|
-
createdAt:
|
|
6347
|
-
integrationCredentials:
|
|
6348
|
-
integrationDesignSystems:
|
|
6364
|
+
createdAt: z214.coerce.date(),
|
|
6365
|
+
integrationCredentials: z214.array(DTOIntegrationCredentials).optional(),
|
|
6366
|
+
integrationDesignSystems: z214.array(IntegrationDesignSystem).optional()
|
|
6349
6367
|
});
|
|
6350
|
-
var DTOIntegrationOAuthGetResponse =
|
|
6351
|
-
url:
|
|
6368
|
+
var DTOIntegrationOAuthGetResponse = z214.object({
|
|
6369
|
+
url: z214.string()
|
|
6352
6370
|
});
|
|
6353
|
-
var DTOIntegrationPostResponse =
|
|
6371
|
+
var DTOIntegrationPostResponse = z214.object({
|
|
6354
6372
|
integration: DTOIntegration
|
|
6355
6373
|
});
|
|
6356
|
-
var DTOIntegrationsGetListResponse =
|
|
6374
|
+
var DTOIntegrationsGetListResponse = z214.object({
|
|
6357
6375
|
integrations: DTOIntegration.array()
|
|
6358
6376
|
});
|
|
6359
6377
|
|
|
6360
6378
|
// src/api/dto/workspaces/invitations.ts
|
|
6361
|
-
import { z as
|
|
6362
|
-
var DTOWorkspaceInvitationInput =
|
|
6363
|
-
email:
|
|
6379
|
+
import { z as z215 } from "zod";
|
|
6380
|
+
var DTOWorkspaceInvitationInput = z215.object({
|
|
6381
|
+
email: z215.string().email(),
|
|
6364
6382
|
role: WorkspaceRoleSchema
|
|
6365
6383
|
});
|
|
6366
|
-
var DTOWorkspaceInvitationsListInput =
|
|
6384
|
+
var DTOWorkspaceInvitationsListInput = z215.object({
|
|
6367
6385
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6368
|
-
designSystemId:
|
|
6386
|
+
designSystemId: z215.string().optional()
|
|
6369
6387
|
});
|
|
6370
|
-
var DTOWorkspaceInvitationsResponse =
|
|
6388
|
+
var DTOWorkspaceInvitationsResponse = z215.object({
|
|
6371
6389
|
invitations: WorkspaceInvitation.array()
|
|
6372
6390
|
});
|
|
6373
|
-
var DTOWorkspaceInviteUpdate =
|
|
6391
|
+
var DTOWorkspaceInviteUpdate = z215.object({
|
|
6374
6392
|
role: WorkspaceRoleSchema
|
|
6375
6393
|
});
|
|
6376
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
6394
|
+
var DTOWorkspaceInvitationUpdateResponse = z215.object({
|
|
6377
6395
|
invitation: WorkspaceInvitation
|
|
6378
6396
|
});
|
|
6379
6397
|
|
|
6380
6398
|
// src/api/dto/workspaces/membership.ts
|
|
6381
|
-
import { z as
|
|
6399
|
+
import { z as z218 } from "zod";
|
|
6382
6400
|
|
|
6383
6401
|
// src/api/dto/workspaces/workspace.ts
|
|
6384
|
-
import { z as
|
|
6402
|
+
import { z as z217 } from "zod";
|
|
6385
6403
|
|
|
6386
6404
|
// src/api/dto/workspaces/npm-registry.ts
|
|
6387
|
-
import { z as
|
|
6405
|
+
import { z as z216 } from "zod";
|
|
6388
6406
|
var DTONpmRegistryConfigConstants = {
|
|
6389
6407
|
passwordPlaceholder: "redacted"
|
|
6390
6408
|
};
|
|
6391
|
-
var DTONpmRegistryConfig =
|
|
6409
|
+
var DTONpmRegistryConfig = z216.object({
|
|
6392
6410
|
// Registry basic configuration
|
|
6393
6411
|
registryType: NpmRegistryType,
|
|
6394
|
-
registryUrl:
|
|
6395
|
-
customRegistryUrl:
|
|
6412
|
+
registryUrl: z216.string(),
|
|
6413
|
+
customRegistryUrl: z216.string().optional(),
|
|
6396
6414
|
// URL of Supernova NPM packages proxy
|
|
6397
|
-
proxyUrl:
|
|
6415
|
+
proxyUrl: z216.string(),
|
|
6398
6416
|
// Auth configuration
|
|
6399
6417
|
authType: NpmRegistryAuthType,
|
|
6400
|
-
accessToken:
|
|
6401
|
-
username:
|
|
6402
|
-
password:
|
|
6418
|
+
accessToken: z216.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6419
|
+
username: z216.string().optional(),
|
|
6420
|
+
password: z216.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6403
6421
|
// NPM package scopes for whih the proxy should be enabled
|
|
6404
|
-
enabledScopes:
|
|
6422
|
+
enabledScopes: z216.array(z216.string()),
|
|
6405
6423
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6406
6424
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6407
|
-
bypassProxy:
|
|
6425
|
+
bypassProxy: z216.boolean()
|
|
6408
6426
|
});
|
|
6409
|
-
var DTONpmRegistryAccessTokenResponse =
|
|
6410
|
-
version:
|
|
6411
|
-
accessToken:
|
|
6412
|
-
registryUrl:
|
|
6427
|
+
var DTONpmRegistryAccessTokenResponse = z216.object({
|
|
6428
|
+
version: z216.number(),
|
|
6429
|
+
accessToken: z216.string().optional(),
|
|
6430
|
+
registryUrl: z216.string()
|
|
6413
6431
|
});
|
|
6414
|
-
var DTOUpdateRegistryInput =
|
|
6432
|
+
var DTOUpdateRegistryInput = z216.object({
|
|
6415
6433
|
registryType: nullishToOptional(NpmRegistryType),
|
|
6416
6434
|
authType: nullishToOptional(NpmRegistryAuthType),
|
|
6417
|
-
enabledScopes: nullishToOptional(
|
|
6418
|
-
customRegistryUrl: nullishToOptional(
|
|
6419
|
-
bypassProxy: nullishToOptional(
|
|
6420
|
-
npmProxyVersion: nullishToOptional(
|
|
6421
|
-
authHeaderName: nullishToOptional(
|
|
6422
|
-
authHeaderValue: nullishToOptional(
|
|
6423
|
-
accessToken: nullishToOptional(
|
|
6424
|
-
username: nullishToOptional(
|
|
6425
|
-
password: nullishToOptional(
|
|
6426
|
-
});
|
|
6427
|
-
var DTOUpdateRegistryOutput =
|
|
6435
|
+
enabledScopes: nullishToOptional(z216.array(z216.string())),
|
|
6436
|
+
customRegistryUrl: nullishToOptional(z216.string()),
|
|
6437
|
+
bypassProxy: nullishToOptional(z216.boolean()),
|
|
6438
|
+
npmProxyVersion: nullishToOptional(z216.number()),
|
|
6439
|
+
authHeaderName: nullishToOptional(z216.string()),
|
|
6440
|
+
authHeaderValue: nullishToOptional(z216.string()),
|
|
6441
|
+
accessToken: nullishToOptional(z216.string()),
|
|
6442
|
+
username: nullishToOptional(z216.string()),
|
|
6443
|
+
password: nullishToOptional(z216.string())
|
|
6444
|
+
});
|
|
6445
|
+
var DTOUpdateRegistryOutput = z216.object({
|
|
6428
6446
|
npmRegistrySettings: DTONpmRegistryConfig
|
|
6429
6447
|
});
|
|
6430
6448
|
|
|
6431
6449
|
// src/api/dto/workspaces/workspace.ts
|
|
6432
6450
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6433
|
-
var DTOWorkspace =
|
|
6434
|
-
id:
|
|
6451
|
+
var DTOWorkspace = z217.object({
|
|
6452
|
+
id: z217.string(),
|
|
6435
6453
|
profile: DTOWorkspaceProfile,
|
|
6436
6454
|
subscription: Subscription,
|
|
6437
6455
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6438
6456
|
});
|
|
6439
|
-
var DTOWorkspaceCreateInput =
|
|
6440
|
-
name:
|
|
6457
|
+
var DTOWorkspaceCreateInput = z217.object({
|
|
6458
|
+
name: z217.string()
|
|
6441
6459
|
});
|
|
6442
|
-
var DTOWorkspaceResponse =
|
|
6460
|
+
var DTOWorkspaceResponse = z217.object({
|
|
6443
6461
|
workspace: DTOWorkspace
|
|
6444
6462
|
});
|
|
6445
6463
|
|
|
6446
6464
|
// src/api/dto/workspaces/membership.ts
|
|
6447
|
-
var DTOWorkspaceRole =
|
|
6448
|
-
var DTOUserWorkspaceMembership =
|
|
6465
|
+
var DTOWorkspaceRole = z218.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6466
|
+
var DTOUserWorkspaceMembership = z218.object({
|
|
6449
6467
|
// Workspace the user is a member of
|
|
6450
6468
|
workspace: DTOWorkspace,
|
|
6451
6469
|
// Assigned role the user has in the workspace
|
|
@@ -6455,54 +6473,54 @@ var DTOUserWorkspaceMembership = z217.object({
|
|
|
6455
6473
|
// when a workspace's subscription is downgraded to free tier
|
|
6456
6474
|
effectiveRole: DTOWorkspaceRole
|
|
6457
6475
|
});
|
|
6458
|
-
var DTOWorkspaceMember =
|
|
6476
|
+
var DTOWorkspaceMember = z218.object({
|
|
6459
6477
|
user: User,
|
|
6460
6478
|
role: WorkspaceRoleSchema,
|
|
6461
6479
|
effectiveRole: WorkspaceRoleSchema
|
|
6462
6480
|
});
|
|
6463
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6464
|
-
membership:
|
|
6481
|
+
var DTOUserWorkspaceMembershipsResponse = z218.object({
|
|
6482
|
+
membership: z218.array(DTOUserWorkspaceMembership)
|
|
6465
6483
|
});
|
|
6466
|
-
var DTOWorkspaceMembersListResponse =
|
|
6467
|
-
members:
|
|
6484
|
+
var DTOWorkspaceMembersListResponse = z218.object({
|
|
6485
|
+
members: z218.array(DTOWorkspaceMember)
|
|
6468
6486
|
});
|
|
6469
6487
|
|
|
6470
6488
|
// src/api/dto/workspaces/untyped-data.ts
|
|
6471
|
-
import { z as
|
|
6489
|
+
import { z as z219 } from "zod";
|
|
6472
6490
|
var DTOWorkspaceUntypedData = WorkspaceUntypedData;
|
|
6473
|
-
var DTOWorkspaceUntypedDataListResponse =
|
|
6491
|
+
var DTOWorkspaceUntypedDataListResponse = z219.object({
|
|
6474
6492
|
data: DTOWorkspaceUntypedData.array()
|
|
6475
6493
|
});
|
|
6476
|
-
var DTOWorkspaceUntypedDataResponse =
|
|
6494
|
+
var DTOWorkspaceUntypedDataResponse = z219.object({
|
|
6477
6495
|
data: DTOWorkspaceUntypedData
|
|
6478
6496
|
});
|
|
6479
|
-
var DTOWorkspaceUntypedDataCreatePayload =
|
|
6480
|
-
value:
|
|
6497
|
+
var DTOWorkspaceUntypedDataCreatePayload = z219.object({
|
|
6498
|
+
value: z219.unknown()
|
|
6481
6499
|
});
|
|
6482
|
-
var DTOWorkspaceUntypedDataUpdatePayload =
|
|
6483
|
-
value:
|
|
6500
|
+
var DTOWorkspaceUntypedDataUpdatePayload = z219.object({
|
|
6501
|
+
value: z219.unknown()
|
|
6484
6502
|
});
|
|
6485
6503
|
|
|
6486
6504
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
6487
|
-
var DTOUserDesignSystemsResponse =
|
|
6505
|
+
var DTOUserDesignSystemsResponse = z220.object({
|
|
6488
6506
|
designSystems: DTODesignSystem.array(),
|
|
6489
6507
|
workspaces: DTOWorkspace.array()
|
|
6490
6508
|
});
|
|
6491
6509
|
|
|
6492
6510
|
// src/api/dto/design-systems/version-room.ts
|
|
6493
|
-
import { z as
|
|
6494
|
-
var DTODesignSystemVersionRoom =
|
|
6495
|
-
id:
|
|
6511
|
+
import { z as z221 } from "zod";
|
|
6512
|
+
var DTODesignSystemVersionRoom = z221.object({
|
|
6513
|
+
id: z221.string()
|
|
6496
6514
|
});
|
|
6497
|
-
var DTODesignSystemVersionRoomResponse =
|
|
6515
|
+
var DTODesignSystemVersionRoomResponse = z221.object({
|
|
6498
6516
|
room: DTODesignSystemVersionRoom
|
|
6499
6517
|
});
|
|
6500
6518
|
|
|
6501
6519
|
// src/api/dto/design-systems/version.ts
|
|
6502
|
-
import { z as
|
|
6520
|
+
import { z as z234 } from "zod";
|
|
6503
6521
|
|
|
6504
6522
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
6505
|
-
import { z as
|
|
6523
|
+
import { z as z222 } from "zod";
|
|
6506
6524
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
6507
6525
|
id: true,
|
|
6508
6526
|
workspaceId: true,
|
|
@@ -6514,56 +6532,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
6514
6532
|
}).extend({
|
|
6515
6533
|
meta: ObjectMeta.partial().optional()
|
|
6516
6534
|
});
|
|
6517
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
6535
|
+
var DTODesignSystemUpdateAccessModeInput = z222.object({
|
|
6518
6536
|
accessMode: DesignSystemAccessMode,
|
|
6519
|
-
retain:
|
|
6520
|
-
userIds:
|
|
6521
|
-
inviteIds:
|
|
6537
|
+
retain: z222.object({
|
|
6538
|
+
userIds: z222.string().array(),
|
|
6539
|
+
inviteIds: z222.string().array()
|
|
6522
6540
|
}).optional()
|
|
6523
6541
|
});
|
|
6524
6542
|
|
|
6525
6543
|
// src/api/payloads/design-systems/version.ts
|
|
6526
|
-
import { z as
|
|
6527
|
-
var ObjectMeta2 =
|
|
6528
|
-
name:
|
|
6529
|
-
description:
|
|
6544
|
+
import { z as z223 } from "zod";
|
|
6545
|
+
var ObjectMeta2 = z223.object({
|
|
6546
|
+
name: z223.string().max(150).optional(),
|
|
6547
|
+
description: z223.string().max(2e3).optional()
|
|
6530
6548
|
});
|
|
6531
6549
|
function validateDesignSystemVersion(version) {
|
|
6532
6550
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
6533
6551
|
return urlCompliantRegex.test(version);
|
|
6534
6552
|
}
|
|
6535
|
-
var DTOCreateVersionInput =
|
|
6553
|
+
var DTOCreateVersionInput = z223.object({
|
|
6536
6554
|
meta: ObjectMeta2,
|
|
6537
|
-
version:
|
|
6555
|
+
version: z223.string().refine(validateDesignSystemVersion, {
|
|
6538
6556
|
message: "Invalid semantic versioning format"
|
|
6539
6557
|
}),
|
|
6540
|
-
changeLog:
|
|
6558
|
+
changeLog: z223.string().optional()
|
|
6541
6559
|
});
|
|
6542
|
-
var DTOUpdateVersionInput =
|
|
6560
|
+
var DTOUpdateVersionInput = z223.object({
|
|
6543
6561
|
meta: ObjectMeta2,
|
|
6544
|
-
version:
|
|
6562
|
+
version: z223.string(),
|
|
6545
6563
|
// required for PUT, but not editable
|
|
6546
|
-
changeLog:
|
|
6564
|
+
changeLog: z223.string()
|
|
6547
6565
|
});
|
|
6548
6566
|
|
|
6549
6567
|
// src/api/payloads/documentation/analytics.ts
|
|
6550
|
-
import { z as
|
|
6551
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
6552
|
-
referencePeriod:
|
|
6553
|
-
start:
|
|
6554
|
-
end:
|
|
6568
|
+
import { z as z224 } from "zod";
|
|
6569
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z224.object({
|
|
6570
|
+
referencePeriod: z224.object({
|
|
6571
|
+
start: z224.coerce.date(),
|
|
6572
|
+
end: z224.coerce.date().optional()
|
|
6555
6573
|
}),
|
|
6556
|
-
baselinePeriod:
|
|
6557
|
-
start:
|
|
6558
|
-
end:
|
|
6574
|
+
baselinePeriod: z224.object({
|
|
6575
|
+
start: z224.coerce.date(),
|
|
6576
|
+
end: z224.coerce.date().optional()
|
|
6559
6577
|
})
|
|
6560
6578
|
});
|
|
6561
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
6562
|
-
timeFrames:
|
|
6579
|
+
var DTODocumentationAnalyticsDiffPayload = z224.object({
|
|
6580
|
+
timeFrames: z224.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
6563
6581
|
});
|
|
6564
6582
|
|
|
6565
6583
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6566
|
-
import { z as
|
|
6584
|
+
import { z as z225 } from "zod";
|
|
6567
6585
|
|
|
6568
6586
|
// src/api/dto/documentation/block-definition.ts
|
|
6569
6587
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -6575,76 +6593,76 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
6575
6593
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
6576
6594
|
|
|
6577
6595
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6578
|
-
var DTOGetBlockDefinitionsOutput =
|
|
6579
|
-
definitions:
|
|
6596
|
+
var DTOGetBlockDefinitionsOutput = z225.object({
|
|
6597
|
+
definitions: z225.array(DTOPageBlockDefinition)
|
|
6580
6598
|
});
|
|
6581
6599
|
|
|
6582
6600
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
6583
|
-
import { z as
|
|
6584
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
6585
|
-
environment:
|
|
6601
|
+
import { z as z226 } from "zod";
|
|
6602
|
+
var DTODocumentationPublishTypeQueryParams = z226.object({
|
|
6603
|
+
environment: z226.enum(["Live", "Preview"])
|
|
6586
6604
|
});
|
|
6587
6605
|
|
|
6588
6606
|
// src/api/payloads/export/pipeline.ts
|
|
6589
|
-
import { z as
|
|
6607
|
+
import { z as z228 } from "zod";
|
|
6590
6608
|
|
|
6591
6609
|
// src/api/dto/export/exporter-property.ts
|
|
6592
|
-
import { z as
|
|
6593
|
-
var PrimitiveValue2 =
|
|
6594
|
-
var ArrayValue2 =
|
|
6595
|
-
var ObjectValue2 =
|
|
6610
|
+
import { z as z227 } from "zod";
|
|
6611
|
+
var PrimitiveValue2 = z227.number().or(z227.boolean()).or(z227.string());
|
|
6612
|
+
var ArrayValue2 = z227.array(z227.string());
|
|
6613
|
+
var ObjectValue2 = z227.record(z227.string());
|
|
6596
6614
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
6597
|
-
var DTOExporterPropertyType =
|
|
6598
|
-
var PropertyDefinitionBase2 =
|
|
6599
|
-
key:
|
|
6600
|
-
title:
|
|
6601
|
-
description:
|
|
6602
|
-
category:
|
|
6603
|
-
dependsOn:
|
|
6604
|
-
});
|
|
6605
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
6606
|
-
label:
|
|
6607
|
-
description:
|
|
6615
|
+
var DTOExporterPropertyType = z227.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
6616
|
+
var PropertyDefinitionBase2 = z227.object({
|
|
6617
|
+
key: z227.string(),
|
|
6618
|
+
title: z227.string(),
|
|
6619
|
+
description: z227.string(),
|
|
6620
|
+
category: z227.string().optional(),
|
|
6621
|
+
dependsOn: z227.record(z227.boolean()).optional()
|
|
6622
|
+
});
|
|
6623
|
+
var DTOExporterPropertyDefinitionEnumOption = z227.object({
|
|
6624
|
+
label: z227.string(),
|
|
6625
|
+
description: z227.string()
|
|
6608
6626
|
});
|
|
6609
6627
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
6610
|
-
type:
|
|
6611
|
-
options:
|
|
6612
|
-
default:
|
|
6628
|
+
type: z227.literal(DTOExporterPropertyType.Enum.Enum),
|
|
6629
|
+
options: z227.record(DTOExporterPropertyDefinitionEnumOption),
|
|
6630
|
+
default: z227.string()
|
|
6613
6631
|
});
|
|
6614
6632
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
6615
|
-
type:
|
|
6616
|
-
default:
|
|
6633
|
+
type: z227.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
6634
|
+
default: z227.boolean()
|
|
6617
6635
|
});
|
|
6618
6636
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
6619
|
-
type:
|
|
6620
|
-
default:
|
|
6621
|
-
isMultiline:
|
|
6637
|
+
type: z227.literal(DTOExporterPropertyType.Enum.String),
|
|
6638
|
+
default: z227.string(),
|
|
6639
|
+
isMultiline: z227.boolean().optional()
|
|
6622
6640
|
});
|
|
6623
6641
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
6624
|
-
type:
|
|
6625
|
-
default:
|
|
6642
|
+
type: z227.literal(DTOExporterPropertyType.Enum.Number),
|
|
6643
|
+
default: z227.number()
|
|
6626
6644
|
});
|
|
6627
6645
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
6628
|
-
type:
|
|
6646
|
+
type: z227.literal(DTOExporterPropertyType.Enum.Array),
|
|
6629
6647
|
default: ArrayValue2
|
|
6630
6648
|
});
|
|
6631
6649
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
6632
|
-
type:
|
|
6650
|
+
type: z227.literal(DTOExporterPropertyType.Enum.Object),
|
|
6633
6651
|
default: ObjectValue2,
|
|
6634
|
-
allowedKeys:
|
|
6635
|
-
options:
|
|
6636
|
-
type:
|
|
6652
|
+
allowedKeys: z227.object({
|
|
6653
|
+
options: z227.string().array(),
|
|
6654
|
+
type: z227.string()
|
|
6637
6655
|
}).optional(),
|
|
6638
|
-
allowedValues:
|
|
6639
|
-
type:
|
|
6656
|
+
allowedValues: z227.object({
|
|
6657
|
+
type: z227.string()
|
|
6640
6658
|
}).optional()
|
|
6641
6659
|
});
|
|
6642
6660
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
6643
|
-
type:
|
|
6644
|
-
language:
|
|
6645
|
-
default:
|
|
6661
|
+
type: z227.literal(DTOExporterPropertyType.Enum.Code),
|
|
6662
|
+
language: z227.string(),
|
|
6663
|
+
default: z227.string()
|
|
6646
6664
|
});
|
|
6647
|
-
var DTOExporterPropertyDefinition =
|
|
6665
|
+
var DTOExporterPropertyDefinition = z227.discriminatedUnion("type", [
|
|
6648
6666
|
DTOExporterPropertyDefinitionEnum,
|
|
6649
6667
|
DTOExporterPropertyDefinitionBoolean,
|
|
6650
6668
|
DTOExporterPropertyDefinitionString,
|
|
@@ -6653,84 +6671,84 @@ var DTOExporterPropertyDefinition = z226.discriminatedUnion("type", [
|
|
|
6653
6671
|
DTOExporterPropertyDefinitionObject,
|
|
6654
6672
|
DTOExporterPropertyDefinitionCode
|
|
6655
6673
|
]);
|
|
6656
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
6674
|
+
var DTOExporterPropertyDefinitionsResponse = z227.object({
|
|
6657
6675
|
properties: DTOExporterPropertyDefinition.array()
|
|
6658
6676
|
});
|
|
6659
|
-
var DTOExporterPropertyValueMap =
|
|
6677
|
+
var DTOExporterPropertyValueMap = z227.record(DTOExporterPropertyValue);
|
|
6660
6678
|
|
|
6661
6679
|
// src/api/payloads/export/pipeline.ts
|
|
6662
|
-
var GitDestinationOptions =
|
|
6663
|
-
branch:
|
|
6664
|
-
commitMessage:
|
|
6665
|
-
commitAuthorName:
|
|
6666
|
-
commitAuthorEmail:
|
|
6667
|
-
pullRequestTitle:
|
|
6668
|
-
pullRequestDescription:
|
|
6669
|
-
relativePath:
|
|
6670
|
-
purgeDirectory:
|
|
6671
|
-
});
|
|
6672
|
-
var DTOPipelineCreateBody =
|
|
6673
|
-
name:
|
|
6674
|
-
exporterId:
|
|
6675
|
-
designSystemId:
|
|
6676
|
-
isEnabled:
|
|
6680
|
+
var GitDestinationOptions = z228.object({
|
|
6681
|
+
branch: z228.string().min(1).optional(),
|
|
6682
|
+
commitMessage: z228.string().min(1).optional(),
|
|
6683
|
+
commitAuthorName: z228.string().min(1).optional(),
|
|
6684
|
+
commitAuthorEmail: z228.string().email().optional(),
|
|
6685
|
+
pullRequestTitle: z228.string().min(1).optional(),
|
|
6686
|
+
pullRequestDescription: z228.string().min(1).optional(),
|
|
6687
|
+
relativePath: z228.string().optional(),
|
|
6688
|
+
purgeDirectory: z228.boolean().optional()
|
|
6689
|
+
});
|
|
6690
|
+
var DTOPipelineCreateBody = z228.object({
|
|
6691
|
+
name: z228.string(),
|
|
6692
|
+
exporterId: z228.string(),
|
|
6693
|
+
designSystemId: z228.string(),
|
|
6694
|
+
isEnabled: z228.boolean(),
|
|
6677
6695
|
eventType: PipelineEventType,
|
|
6678
|
-
brandPersistentId:
|
|
6679
|
-
themePersistentId:
|
|
6680
|
-
themePersistentIds:
|
|
6696
|
+
brandPersistentId: z228.string().optional(),
|
|
6697
|
+
themePersistentId: z228.string().optional(),
|
|
6698
|
+
themePersistentIds: z228.string().array().optional(),
|
|
6681
6699
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6682
6700
|
destination: PipelineDestinationType.optional(),
|
|
6683
6701
|
gitQuery: GitObjectsQuery,
|
|
6684
|
-
destinations:
|
|
6702
|
+
destinations: z228.object({
|
|
6685
6703
|
s3: ExporterDestinationS3.nullish(),
|
|
6686
6704
|
azure: ExporterDestinationAzure.nullish(),
|
|
6687
6705
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6688
6706
|
github: ExporterDestinationGithub.nullish(),
|
|
6689
6707
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6690
6708
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6691
|
-
webhookUrl:
|
|
6709
|
+
webhookUrl: z228.string().nullish()
|
|
6692
6710
|
})
|
|
6693
6711
|
});
|
|
6694
|
-
var DTOPipelineUpdateBody =
|
|
6695
|
-
exporterId:
|
|
6696
|
-
name:
|
|
6697
|
-
isEnabled:
|
|
6712
|
+
var DTOPipelineUpdateBody = z228.object({
|
|
6713
|
+
exporterId: z228.string().optional(),
|
|
6714
|
+
name: z228.string().optional(),
|
|
6715
|
+
isEnabled: z228.boolean().optional(),
|
|
6698
6716
|
eventType: PipelineEventType.optional(),
|
|
6699
|
-
brandPersistentId:
|
|
6700
|
-
themePersistentId:
|
|
6701
|
-
themePersistentIds:
|
|
6717
|
+
brandPersistentId: z228.string().optional(),
|
|
6718
|
+
themePersistentId: z228.string().optional(),
|
|
6719
|
+
themePersistentIds: z228.string().array().optional(),
|
|
6702
6720
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6703
6721
|
destination: PipelineDestinationType.optional(),
|
|
6704
6722
|
gitQuery: GitObjectsQuery.optional(),
|
|
6705
|
-
destinations:
|
|
6723
|
+
destinations: z228.object({
|
|
6706
6724
|
s3: ExporterDestinationS3.nullish(),
|
|
6707
6725
|
azure: ExporterDestinationAzure.nullish(),
|
|
6708
6726
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6709
6727
|
github: ExporterDestinationGithub.nullish(),
|
|
6710
6728
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6711
6729
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6712
|
-
webhookUrl:
|
|
6730
|
+
webhookUrl: z228.string().nullish()
|
|
6713
6731
|
}).optional(),
|
|
6714
6732
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
6715
6733
|
});
|
|
6716
|
-
var DTOPipelineTriggerBody =
|
|
6717
|
-
designSystemVersionId:
|
|
6734
|
+
var DTOPipelineTriggerBody = z228.object({
|
|
6735
|
+
designSystemVersionId: z228.string()
|
|
6718
6736
|
});
|
|
6719
6737
|
|
|
6720
6738
|
// src/api/payloads/liveblocks/auth.ts
|
|
6721
|
-
import { z as
|
|
6722
|
-
var DTOLiveblocksAuthRequest =
|
|
6723
|
-
room:
|
|
6739
|
+
import { z as z229 } from "zod";
|
|
6740
|
+
var DTOLiveblocksAuthRequest = z229.object({
|
|
6741
|
+
room: z229.string().optional()
|
|
6724
6742
|
});
|
|
6725
6743
|
|
|
6726
6744
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
6727
|
-
import { z as
|
|
6728
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
6745
|
+
import { z as z230 } from "zod";
|
|
6746
|
+
var DTOUpdateUserNotificationSettingsPayload = z230.object({
|
|
6729
6747
|
notificationSettings: UserNotificationSettings
|
|
6730
6748
|
});
|
|
6731
|
-
var DTOUserNotificationSettingsResponse =
|
|
6732
|
-
userId:
|
|
6733
|
-
workspaceId:
|
|
6749
|
+
var DTOUserNotificationSettingsResponse = z230.object({
|
|
6750
|
+
userId: z230.string(),
|
|
6751
|
+
workspaceId: z230.string(),
|
|
6734
6752
|
notificationSettings: UserNotificationSettings
|
|
6735
6753
|
});
|
|
6736
6754
|
|
|
@@ -6738,13 +6756,13 @@ var DTOUserNotificationSettingsResponse = z229.object({
|
|
|
6738
6756
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
6739
6757
|
|
|
6740
6758
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
6741
|
-
import { z as
|
|
6742
|
-
var DTOTransferOwnershipPayload =
|
|
6743
|
-
newOwnerId:
|
|
6759
|
+
import { z as z231 } from "zod";
|
|
6760
|
+
var DTOTransferOwnershipPayload = z231.object({
|
|
6761
|
+
newOwnerId: z231.string()
|
|
6744
6762
|
});
|
|
6745
6763
|
|
|
6746
6764
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
6747
|
-
import { z as
|
|
6765
|
+
import { z as z232 } from "zod";
|
|
6748
6766
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
6749
6767
|
function validateSsoPayload(ssoPayload) {
|
|
6750
6768
|
const keys = [];
|
|
@@ -6767,21 +6785,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
6767
6785
|
keys
|
|
6768
6786
|
};
|
|
6769
6787
|
}
|
|
6770
|
-
var NpmRegistryInput =
|
|
6771
|
-
enabledScopes:
|
|
6772
|
-
customRegistryUrl:
|
|
6773
|
-
bypassProxy:
|
|
6774
|
-
npmProxyRegistryConfigId:
|
|
6775
|
-
npmProxyVersion:
|
|
6776
|
-
registryType:
|
|
6777
|
-
authType:
|
|
6778
|
-
authHeaderName:
|
|
6779
|
-
authHeaderValue:
|
|
6780
|
-
accessToken:
|
|
6781
|
-
username:
|
|
6782
|
-
password:
|
|
6783
|
-
});
|
|
6784
|
-
var WorkspaceConfigurationPayload =
|
|
6788
|
+
var NpmRegistryInput = z232.object({
|
|
6789
|
+
enabledScopes: z232.array(z232.string()),
|
|
6790
|
+
customRegistryUrl: z232.string().optional(),
|
|
6791
|
+
bypassProxy: z232.boolean().optional(),
|
|
6792
|
+
npmProxyRegistryConfigId: z232.string().optional(),
|
|
6793
|
+
npmProxyVersion: z232.number().optional(),
|
|
6794
|
+
registryType: z232.string(),
|
|
6795
|
+
authType: z232.string(),
|
|
6796
|
+
authHeaderName: z232.string(),
|
|
6797
|
+
authHeaderValue: z232.string(),
|
|
6798
|
+
accessToken: z232.string(),
|
|
6799
|
+
username: z232.string(),
|
|
6800
|
+
password: z232.string()
|
|
6801
|
+
});
|
|
6802
|
+
var WorkspaceConfigurationPayload = z232.object({
|
|
6785
6803
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
6786
6804
|
sso: SsoProvider.partial().optional(),
|
|
6787
6805
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -6789,107 +6807,107 @@ var WorkspaceConfigurationPayload = z231.object({
|
|
|
6789
6807
|
});
|
|
6790
6808
|
|
|
6791
6809
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
6792
|
-
import { z as
|
|
6793
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
6810
|
+
import { z as z233 } from "zod";
|
|
6811
|
+
var DTOWorkspaceIntegrationOauthInput = z233.object({
|
|
6794
6812
|
type: IntegrationType
|
|
6795
6813
|
});
|
|
6796
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
6814
|
+
var DTOWorkspaceIntegrationPATInput = z233.object({
|
|
6797
6815
|
type: IntegrationType,
|
|
6798
6816
|
token: IntegrationToken
|
|
6799
6817
|
});
|
|
6800
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
6801
|
-
organization:
|
|
6818
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z233.object({
|
|
6819
|
+
organization: z233.string().optional(),
|
|
6802
6820
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
6803
|
-
project:
|
|
6821
|
+
project: z233.string().optional(),
|
|
6804
6822
|
// Only for Bitbucket and Azure
|
|
6805
|
-
repository:
|
|
6823
|
+
repository: z233.string().optional(),
|
|
6806
6824
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
6807
|
-
branch:
|
|
6825
|
+
branch: z233.string().optional(),
|
|
6808
6826
|
// For all providers, useful for PR creations.
|
|
6809
|
-
user:
|
|
6827
|
+
user: z233.string().optional()
|
|
6810
6828
|
// Only for Gitlab User Repositories
|
|
6811
6829
|
});
|
|
6812
6830
|
|
|
6813
6831
|
// src/api/dto/design-systems/version.ts
|
|
6814
|
-
var DTODesignSystemVersion =
|
|
6815
|
-
id:
|
|
6816
|
-
createdAt:
|
|
6832
|
+
var DTODesignSystemVersion = z234.object({
|
|
6833
|
+
id: z234.string(),
|
|
6834
|
+
createdAt: z234.coerce.date(),
|
|
6817
6835
|
meta: ObjectMeta,
|
|
6818
|
-
version:
|
|
6819
|
-
isReadonly:
|
|
6820
|
-
changeLog:
|
|
6821
|
-
designSystemId:
|
|
6836
|
+
version: z234.string(),
|
|
6837
|
+
isReadonly: z234.boolean(),
|
|
6838
|
+
changeLog: z234.string(),
|
|
6839
|
+
designSystemId: z234.string()
|
|
6822
6840
|
});
|
|
6823
|
-
var DTODesignSystemVersionsListResponse =
|
|
6824
|
-
designSystemVersions:
|
|
6841
|
+
var DTODesignSystemVersionsListResponse = z234.object({
|
|
6842
|
+
designSystemVersions: z234.array(DTODesignSystemVersion)
|
|
6825
6843
|
});
|
|
6826
|
-
var DTODesignSystemVersionGetResponse =
|
|
6844
|
+
var DTODesignSystemVersionGetResponse = z234.object({
|
|
6827
6845
|
designSystemVersion: DTODesignSystemVersion
|
|
6828
6846
|
});
|
|
6829
|
-
var DTODesignSystemVersionCreationResponse =
|
|
6847
|
+
var DTODesignSystemVersionCreationResponse = z234.object({
|
|
6830
6848
|
meta: ObjectMeta,
|
|
6831
|
-
version:
|
|
6832
|
-
changeLog:
|
|
6833
|
-
isReadOnly:
|
|
6834
|
-
designSystemId:
|
|
6835
|
-
jobId:
|
|
6836
|
-
});
|
|
6837
|
-
var VersionSQSPayload =
|
|
6838
|
-
jobId:
|
|
6839
|
-
designSystemId:
|
|
6849
|
+
version: z234.string(),
|
|
6850
|
+
changeLog: z234.string(),
|
|
6851
|
+
isReadOnly: z234.boolean(),
|
|
6852
|
+
designSystemId: z234.string(),
|
|
6853
|
+
jobId: z234.string()
|
|
6854
|
+
});
|
|
6855
|
+
var VersionSQSPayload = z234.object({
|
|
6856
|
+
jobId: z234.string(),
|
|
6857
|
+
designSystemId: z234.string(),
|
|
6840
6858
|
input: DTOCreateVersionInput
|
|
6841
6859
|
});
|
|
6842
|
-
var DTODesignSystemVersionJobsResponse =
|
|
6843
|
-
jobs:
|
|
6860
|
+
var DTODesignSystemVersionJobsResponse = z234.object({
|
|
6861
|
+
jobs: z234.array(VersionCreationJob)
|
|
6844
6862
|
});
|
|
6845
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
6863
|
+
var DTODesignSystemVersionJobStatusResponse = z234.object({
|
|
6846
6864
|
job: VersionCreationJob
|
|
6847
6865
|
});
|
|
6848
6866
|
|
|
6849
6867
|
// src/api/dto/design-systems/view.ts
|
|
6850
|
-
import { z as
|
|
6851
|
-
var DTOElementViewColumnSharedAttributes =
|
|
6852
|
-
id:
|
|
6853
|
-
persistentId:
|
|
6854
|
-
width:
|
|
6868
|
+
import { z as z235 } from "zod";
|
|
6869
|
+
var DTOElementViewColumnSharedAttributes = z235.object({
|
|
6870
|
+
id: z235.string(),
|
|
6871
|
+
persistentId: z235.string(),
|
|
6872
|
+
width: z235.number()
|
|
6855
6873
|
});
|
|
6856
6874
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6857
|
-
type:
|
|
6875
|
+
type: z235.literal("BaseProperty"),
|
|
6858
6876
|
basePropertyType: ElementViewBaseColumnType
|
|
6859
6877
|
});
|
|
6860
6878
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6861
|
-
type:
|
|
6862
|
-
propertyDefinitionId:
|
|
6879
|
+
type: z235.literal("PropertyDefinition"),
|
|
6880
|
+
propertyDefinitionId: z235.string()
|
|
6863
6881
|
});
|
|
6864
6882
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6865
|
-
type:
|
|
6866
|
-
themeId:
|
|
6883
|
+
type: z235.literal("Theme"),
|
|
6884
|
+
themeId: z235.string()
|
|
6867
6885
|
});
|
|
6868
|
-
var DTOElementViewColumn =
|
|
6886
|
+
var DTOElementViewColumn = z235.discriminatedUnion("type", [
|
|
6869
6887
|
DTOElementViewBasePropertyColumn,
|
|
6870
6888
|
DTOElementViewPropertyDefinitionColumn,
|
|
6871
6889
|
DTOElementViewThemeColumn
|
|
6872
6890
|
]);
|
|
6873
|
-
var DTOElementView =
|
|
6891
|
+
var DTOElementView = z235.object({
|
|
6874
6892
|
meta: ObjectMeta,
|
|
6875
|
-
persistentId:
|
|
6893
|
+
persistentId: z235.string(),
|
|
6876
6894
|
targetElementType: ElementPropertyTargetType,
|
|
6877
|
-
id:
|
|
6878
|
-
isDefault:
|
|
6879
|
-
columns:
|
|
6895
|
+
id: z235.string(),
|
|
6896
|
+
isDefault: z235.boolean(),
|
|
6897
|
+
columns: z235.array(DTOElementViewColumn)
|
|
6880
6898
|
});
|
|
6881
|
-
var DTOElementViewsListResponse =
|
|
6882
|
-
elementDataViews:
|
|
6899
|
+
var DTOElementViewsListResponse = z235.object({
|
|
6900
|
+
elementDataViews: z235.array(DTOElementView)
|
|
6883
6901
|
});
|
|
6884
6902
|
|
|
6885
6903
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6886
|
-
var DTOAppBootstrapDataQuery =
|
|
6887
|
-
preferredWorkspaceId:
|
|
6888
|
-
preferredDesignSystemId:
|
|
6889
|
-
preferredVersionId:
|
|
6890
|
-
preferredBrandId:
|
|
6904
|
+
var DTOAppBootstrapDataQuery = z236.object({
|
|
6905
|
+
preferredWorkspaceId: z236.string().optional(),
|
|
6906
|
+
preferredDesignSystemId: z236.string().optional(),
|
|
6907
|
+
preferredVersionId: z236.string().optional(),
|
|
6908
|
+
preferredBrandId: z236.string().optional()
|
|
6891
6909
|
});
|
|
6892
|
-
var DTOAppBootstrapDataResponse =
|
|
6910
|
+
var DTOAppBootstrapDataResponse = z236.object({
|
|
6893
6911
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
6894
6912
|
designSystem: DTODesignSystem.optional(),
|
|
6895
6913
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -6897,92 +6915,92 @@ var DTOAppBootstrapDataResponse = z235.object({
|
|
|
6897
6915
|
});
|
|
6898
6916
|
|
|
6899
6917
|
// src/api/dto/collections/token-collection.ts
|
|
6900
|
-
import { z as
|
|
6901
|
-
var DTOTokenCollection =
|
|
6902
|
-
id:
|
|
6903
|
-
persistentId:
|
|
6904
|
-
designSystemVersionId:
|
|
6918
|
+
import { z as z237 } from "zod";
|
|
6919
|
+
var DTOTokenCollection = z237.object({
|
|
6920
|
+
id: z237.string(),
|
|
6921
|
+
persistentId: z237.string(),
|
|
6922
|
+
designSystemVersionId: z237.string(),
|
|
6905
6923
|
meta: ObjectMeta,
|
|
6906
6924
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
6907
|
-
elementPropertyOptionId:
|
|
6908
|
-
createdAt:
|
|
6909
|
-
updatedAt:
|
|
6925
|
+
elementPropertyOptionId: z237.string(),
|
|
6926
|
+
createdAt: z237.coerce.date(),
|
|
6927
|
+
updatedAt: z237.coerce.date(),
|
|
6910
6928
|
origin: CollectionOrigin.optional()
|
|
6911
6929
|
});
|
|
6912
|
-
var DTOTokenCollectionsListReponse =
|
|
6930
|
+
var DTOTokenCollectionsListReponse = z237.object({
|
|
6913
6931
|
collections: DTOTokenCollection.array()
|
|
6914
6932
|
});
|
|
6915
6933
|
|
|
6916
6934
|
// src/api/dto/design-tokens/design-token.ts
|
|
6917
|
-
import { z as
|
|
6935
|
+
import { z as z238 } from "zod";
|
|
6918
6936
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6919
|
-
|
|
6920
|
-
id:
|
|
6921
|
-
persistentId:
|
|
6922
|
-
designSystemVersionId:
|
|
6937
|
+
z238.object({
|
|
6938
|
+
id: z238.string(),
|
|
6939
|
+
persistentId: z238.string(),
|
|
6940
|
+
designSystemVersionId: z238.string(),
|
|
6923
6941
|
meta: ObjectMeta,
|
|
6924
6942
|
originStyle: DesignTokenOrigin.optional(),
|
|
6925
|
-
brandId:
|
|
6926
|
-
collectionId:
|
|
6927
|
-
updatedAt:
|
|
6943
|
+
brandId: z238.string(),
|
|
6944
|
+
collectionId: z238.string().optional(),
|
|
6945
|
+
updatedAt: z238.coerce.date()
|
|
6928
6946
|
})
|
|
6929
6947
|
);
|
|
6930
|
-
var DTODesignTokenListResponse =
|
|
6948
|
+
var DTODesignTokenListResponse = z238.object({
|
|
6931
6949
|
tokens: DTODesignToken.array()
|
|
6932
6950
|
});
|
|
6933
|
-
var DTODesignTokenResponse =
|
|
6951
|
+
var DTODesignTokenResponse = z238.object({
|
|
6934
6952
|
token: DTODesignToken
|
|
6935
6953
|
});
|
|
6936
|
-
var DTODesignTokenGroup =
|
|
6937
|
-
id:
|
|
6954
|
+
var DTODesignTokenGroup = z238.object({
|
|
6955
|
+
id: z238.string(),
|
|
6938
6956
|
tokenType: DesignTokenType,
|
|
6939
|
-
persistentId:
|
|
6940
|
-
isRoot:
|
|
6941
|
-
brandId:
|
|
6957
|
+
persistentId: z238.string(),
|
|
6958
|
+
isRoot: z238.boolean(),
|
|
6959
|
+
brandId: z238.string(),
|
|
6942
6960
|
meta: ObjectMeta,
|
|
6943
|
-
childrenIds:
|
|
6961
|
+
childrenIds: z238.string().array()
|
|
6944
6962
|
});
|
|
6945
|
-
var DTODesignTokenGroupListResponse =
|
|
6963
|
+
var DTODesignTokenGroupListResponse = z238.object({
|
|
6946
6964
|
groups: DTODesignTokenGroup.array()
|
|
6947
6965
|
});
|
|
6948
|
-
var DTODesignTokenGroupResponse =
|
|
6966
|
+
var DTODesignTokenGroupResponse = z238.object({
|
|
6949
6967
|
group: DTODesignTokenGroup
|
|
6950
6968
|
});
|
|
6951
6969
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6952
|
-
|
|
6953
|
-
persistentId:
|
|
6970
|
+
z238.object({
|
|
6971
|
+
persistentId: z238.string(),
|
|
6954
6972
|
meta: ObjectMeta,
|
|
6955
|
-
brandId:
|
|
6956
|
-
groupPersistentId:
|
|
6973
|
+
brandId: z238.string(),
|
|
6974
|
+
groupPersistentId: z238.string().optional()
|
|
6957
6975
|
})
|
|
6958
6976
|
);
|
|
6959
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6960
|
-
persistentId:
|
|
6977
|
+
var DTODesignTokenGroupCreatePayload = z238.object({
|
|
6978
|
+
persistentId: z238.string(),
|
|
6961
6979
|
meta: ObjectMeta,
|
|
6962
|
-
brandId:
|
|
6963
|
-
parentId:
|
|
6980
|
+
brandId: z238.string(),
|
|
6981
|
+
parentId: z238.string().optional(),
|
|
6964
6982
|
tokenType: DesignTokenType,
|
|
6965
|
-
childrenIds:
|
|
6983
|
+
childrenIds: z238.string().array()
|
|
6966
6984
|
});
|
|
6967
6985
|
|
|
6968
6986
|
// src/api/dto/documentation/analytics-v2.ts
|
|
6969
|
-
import { z as
|
|
6970
|
-
var DTODocumentationAnalyticsTimeFrame =
|
|
6971
|
-
start:
|
|
6972
|
-
end:
|
|
6987
|
+
import { z as z239 } from "zod";
|
|
6988
|
+
var DTODocumentationAnalyticsTimeFrame = z239.object({
|
|
6989
|
+
start: z239.coerce.date(),
|
|
6990
|
+
end: z239.coerce.date().optional()
|
|
6973
6991
|
});
|
|
6974
|
-
var DTOPublishedDocVisitData =
|
|
6975
|
-
timestamp:
|
|
6976
|
-
versionId:
|
|
6977
|
-
locale:
|
|
6978
|
-
visits:
|
|
6979
|
-
sessions:
|
|
6992
|
+
var DTOPublishedDocVisitData = z239.object({
|
|
6993
|
+
timestamp: z239.coerce.date(),
|
|
6994
|
+
versionId: z239.string(),
|
|
6995
|
+
locale: z239.string().optional(),
|
|
6996
|
+
visits: z239.number(),
|
|
6997
|
+
sessions: z239.number()
|
|
6980
6998
|
});
|
|
6981
6999
|
var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
|
|
6982
|
-
pagePersistentId:
|
|
7000
|
+
pagePersistentId: z239.string()
|
|
6983
7001
|
});
|
|
6984
|
-
var DTOPublishedDocVisitHeatMapDay =
|
|
6985
|
-
var DTOPublishedDocVisitHeatMapWeek =
|
|
7002
|
+
var DTOPublishedDocVisitHeatMapDay = z239.number().array().length(12);
|
|
7003
|
+
var DTOPublishedDocVisitHeatMapWeek = z239.object({
|
|
6986
7004
|
/**
|
|
6987
7005
|
* For which timeframe it was calculated
|
|
6988
7006
|
*/
|
|
@@ -6995,65 +7013,65 @@ var DTOPublishedDocVisitHeatMapWeek = z238.object({
|
|
|
6995
7013
|
sat: DTOPublishedDocVisitHeatMapDay,
|
|
6996
7014
|
sun: DTOPublishedDocVisitHeatMapDay
|
|
6997
7015
|
});
|
|
6998
|
-
var DTOPublishedDocAnalyticsComparisonData =
|
|
7016
|
+
var DTOPublishedDocAnalyticsComparisonData = z239.object({
|
|
6999
7017
|
/**
|
|
7000
7018
|
* For which timeframe it was calculated
|
|
7001
7019
|
*/
|
|
7002
7020
|
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
7003
|
-
priorVisitCount:
|
|
7004
|
-
priorSessionCount:
|
|
7005
|
-
currentVisitCount:
|
|
7006
|
-
currentSessionCount:
|
|
7021
|
+
priorVisitCount: z239.number(),
|
|
7022
|
+
priorSessionCount: z239.number(),
|
|
7023
|
+
currentVisitCount: z239.number(),
|
|
7024
|
+
currentSessionCount: z239.number()
|
|
7007
7025
|
});
|
|
7008
7026
|
var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
|
|
7009
|
-
pagePersistentId:
|
|
7027
|
+
pagePersistentId: z239.string()
|
|
7010
7028
|
});
|
|
7011
|
-
var DTODocumentationPageAnalyticsResponse =
|
|
7029
|
+
var DTODocumentationPageAnalyticsResponse = z239.object({
|
|
7012
7030
|
globalAnalytics: DTOPublishedDocVisitData.array(),
|
|
7013
7031
|
pageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
7014
7032
|
heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
|
|
7015
7033
|
comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
|
|
7016
7034
|
pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
|
|
7017
7035
|
});
|
|
7018
|
-
var DTODocumentationAnalyticsRequest =
|
|
7019
|
-
timeFrames:
|
|
7036
|
+
var DTODocumentationAnalyticsRequest = z239.object({
|
|
7037
|
+
timeFrames: z239.array(DTODocumentationAnalyticsTimeFrame)
|
|
7020
7038
|
});
|
|
7021
7039
|
|
|
7022
7040
|
// src/api/dto/documentation/analytics.ts
|
|
7023
|
-
import { z as
|
|
7024
|
-
var DTODocumentationPageAnalyticsDifference =
|
|
7025
|
-
startDate:
|
|
7026
|
-
endDate:
|
|
7027
|
-
currentVisitCount:
|
|
7028
|
-
currentSessionCount:
|
|
7029
|
-
priorVisitCount:
|
|
7030
|
-
priorSessionCount:
|
|
7041
|
+
import { z as z240 } from "zod";
|
|
7042
|
+
var DTODocumentationPageAnalyticsDifference = z240.object({
|
|
7043
|
+
startDate: z240.coerce.date(),
|
|
7044
|
+
endDate: z240.coerce.date().optional(),
|
|
7045
|
+
currentVisitCount: z240.number(),
|
|
7046
|
+
currentSessionCount: z240.number(),
|
|
7047
|
+
priorVisitCount: z240.number(),
|
|
7048
|
+
priorSessionCount: z240.number()
|
|
7031
7049
|
});
|
|
7032
|
-
var DTODocumentationPageIntervalDifferenceResponse =
|
|
7033
|
-
differences:
|
|
7050
|
+
var DTODocumentationPageIntervalDifferenceResponse = z240.object({
|
|
7051
|
+
differences: z240.array(DTODocumentationPageAnalyticsDifference)
|
|
7034
7052
|
});
|
|
7035
7053
|
|
|
7036
7054
|
// src/api/dto/documentation/anchor.ts
|
|
7037
|
-
import { z as
|
|
7055
|
+
import { z as z241 } from "zod";
|
|
7038
7056
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
7039
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
7040
|
-
anchors:
|
|
7057
|
+
var DTOGetDocumentationPageAnchorsResponse = z241.object({
|
|
7058
|
+
anchors: z241.array(DTODocumentationPageAnchor)
|
|
7041
7059
|
});
|
|
7042
7060
|
|
|
7043
7061
|
// src/api/dto/documentation/approvals.ts
|
|
7044
|
-
import { z as
|
|
7045
|
-
var DTODocumentationPageApprovalState =
|
|
7062
|
+
import { z as z242 } from "zod";
|
|
7063
|
+
var DTODocumentationPageApprovalState = z242.object({
|
|
7046
7064
|
approvalState: DocumentationPageApprovalState,
|
|
7047
|
-
pagePersistentId:
|
|
7048
|
-
updatedByUserId:
|
|
7049
|
-
designSystemVersionId:
|
|
7050
|
-
updatedAt:
|
|
7051
|
-
createdAt:
|
|
7052
|
-
});
|
|
7053
|
-
var DTODocumentationGroupApprovalState =
|
|
7054
|
-
persistentId:
|
|
7055
|
-
groupPersistentId:
|
|
7056
|
-
designSystemVersionId:
|
|
7065
|
+
pagePersistentId: z242.string(),
|
|
7066
|
+
updatedByUserId: z242.string(),
|
|
7067
|
+
designSystemVersionId: z242.string(),
|
|
7068
|
+
updatedAt: z242.coerce.date(),
|
|
7069
|
+
createdAt: z242.coerce.date()
|
|
7070
|
+
});
|
|
7071
|
+
var DTODocumentationGroupApprovalState = z242.object({
|
|
7072
|
+
persistentId: z242.string(),
|
|
7073
|
+
groupPersistentId: z242.string(),
|
|
7074
|
+
designSystemVersionId: z242.string(),
|
|
7057
7075
|
approvalState: DocumentationPageApprovalState
|
|
7058
7076
|
});
|
|
7059
7077
|
|
|
@@ -7061,68 +7079,68 @@ var DTODocumentationGroupApprovalState = z241.object({
|
|
|
7061
7079
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
7062
7080
|
|
|
7063
7081
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7064
|
-
import { z as
|
|
7082
|
+
import { z as z247 } from "zod";
|
|
7065
7083
|
|
|
7066
7084
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7067
|
-
import { z as
|
|
7085
|
+
import { z as z246 } from "zod";
|
|
7068
7086
|
|
|
7069
7087
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7070
|
-
import { z as
|
|
7088
|
+
import { z as z244 } from "zod";
|
|
7071
7089
|
|
|
7072
7090
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
7073
|
-
import { z as
|
|
7091
|
+
import { z as z243 } from "zod";
|
|
7074
7092
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
7075
|
-
var DTODocumentationItemConfigurationV2 =
|
|
7076
|
-
showSidebar:
|
|
7077
|
-
isPrivate:
|
|
7078
|
-
isHidden:
|
|
7093
|
+
var DTODocumentationItemConfigurationV2 = z243.object({
|
|
7094
|
+
showSidebar: z243.boolean(),
|
|
7095
|
+
isPrivate: z243.boolean(),
|
|
7096
|
+
isHidden: z243.boolean(),
|
|
7079
7097
|
header: DTODocumentationItemHeaderV2
|
|
7080
7098
|
});
|
|
7081
7099
|
|
|
7082
7100
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7083
|
-
var DTODocumentationDraftChangeType =
|
|
7084
|
-
var DTODocumentationDraftStateCreated =
|
|
7085
|
-
changeType:
|
|
7086
|
-
});
|
|
7087
|
-
var DTODocumentationDraftStateUpdated =
|
|
7088
|
-
changeType:
|
|
7089
|
-
changes:
|
|
7090
|
-
previousTitle:
|
|
7101
|
+
var DTODocumentationDraftChangeType = z244.enum(["Created", "Updated", "Deleted"]);
|
|
7102
|
+
var DTODocumentationDraftStateCreated = z244.object({
|
|
7103
|
+
changeType: z244.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
7104
|
+
});
|
|
7105
|
+
var DTODocumentationDraftStateUpdated = z244.object({
|
|
7106
|
+
changeType: z244.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
7107
|
+
changes: z244.object({
|
|
7108
|
+
previousTitle: z244.string().optional(),
|
|
7091
7109
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
7092
|
-
previousContentHash:
|
|
7110
|
+
previousContentHash: z244.string().optional()
|
|
7093
7111
|
})
|
|
7094
7112
|
});
|
|
7095
|
-
var DTODocumentationDraftStateDeleted =
|
|
7096
|
-
changeType:
|
|
7097
|
-
deletedAt:
|
|
7098
|
-
deletedByUserId:
|
|
7113
|
+
var DTODocumentationDraftStateDeleted = z244.object({
|
|
7114
|
+
changeType: z244.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
7115
|
+
deletedAt: z244.coerce.date(),
|
|
7116
|
+
deletedByUserId: z244.string()
|
|
7099
7117
|
});
|
|
7100
|
-
var DTODocumentationDraftState =
|
|
7118
|
+
var DTODocumentationDraftState = z244.discriminatedUnion("changeType", [
|
|
7101
7119
|
DTODocumentationDraftStateCreated,
|
|
7102
7120
|
DTODocumentationDraftStateUpdated,
|
|
7103
7121
|
DTODocumentationDraftStateDeleted
|
|
7104
7122
|
]);
|
|
7105
7123
|
|
|
7106
7124
|
// src/api/dto/elements/documentation/metadata.ts
|
|
7107
|
-
import { z as
|
|
7108
|
-
var DTODocumentationPublishMetadata =
|
|
7109
|
-
lastPublishedByUserId:
|
|
7110
|
-
lastPublishedAt:
|
|
7125
|
+
import { z as z245 } from "zod";
|
|
7126
|
+
var DTODocumentationPublishMetadata = z245.object({
|
|
7127
|
+
lastPublishedByUserId: z245.string(),
|
|
7128
|
+
lastPublishedAt: z245.coerce.date()
|
|
7111
7129
|
});
|
|
7112
7130
|
|
|
7113
7131
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7114
|
-
var DTODocumentationPageV2 =
|
|
7115
|
-
id:
|
|
7116
|
-
persistentId:
|
|
7117
|
-
designSystemVersionId:
|
|
7118
|
-
title:
|
|
7132
|
+
var DTODocumentationPageV2 = z246.object({
|
|
7133
|
+
id: z246.string(),
|
|
7134
|
+
persistentId: z246.string(),
|
|
7135
|
+
designSystemVersionId: z246.string(),
|
|
7136
|
+
title: z246.string(),
|
|
7119
7137
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7120
|
-
shortPersistentId:
|
|
7121
|
-
slug:
|
|
7122
|
-
userSlug:
|
|
7123
|
-
createdAt:
|
|
7124
|
-
updatedAt:
|
|
7125
|
-
path:
|
|
7138
|
+
shortPersistentId: z246.string(),
|
|
7139
|
+
slug: z246.string().optional(),
|
|
7140
|
+
userSlug: z246.string().optional(),
|
|
7141
|
+
createdAt: z246.coerce.date(),
|
|
7142
|
+
updatedAt: z246.coerce.date(),
|
|
7143
|
+
path: z246.string(),
|
|
7126
7144
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7127
7145
|
draftState: DTODocumentationDraftState.optional(),
|
|
7128
7146
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -7130,267 +7148,267 @@ var DTODocumentationPageV2 = z245.object({
|
|
|
7130
7148
|
/** Defines the approval state of the documentation page */
|
|
7131
7149
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
7132
7150
|
/** Id of the page document room */
|
|
7133
|
-
liveblocksRoomId:
|
|
7151
|
+
liveblocksRoomId: z246.string().optional(),
|
|
7134
7152
|
// Backward compatibility
|
|
7135
|
-
type:
|
|
7153
|
+
type: z246.literal("Page")
|
|
7136
7154
|
});
|
|
7137
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
7155
|
+
var DTOCreateDocumentationPageInputV2 = z246.object({
|
|
7138
7156
|
// Identifier
|
|
7139
|
-
persistentId:
|
|
7157
|
+
persistentId: z246.string(),
|
|
7140
7158
|
// Page properties
|
|
7141
|
-
title:
|
|
7159
|
+
title: z246.string(),
|
|
7142
7160
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7143
7161
|
// Page placement properties
|
|
7144
|
-
parentPersistentId:
|
|
7145
|
-
afterPersistentId:
|
|
7162
|
+
parentPersistentId: z246.string(),
|
|
7163
|
+
afterPersistentId: z246.string().nullish()
|
|
7146
7164
|
});
|
|
7147
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
7165
|
+
var DTOUpdateDocumentationPageInputV2 = z246.object({
|
|
7148
7166
|
// Identifier of the page to update
|
|
7149
|
-
id:
|
|
7167
|
+
id: z246.string(),
|
|
7150
7168
|
// Page properties
|
|
7151
|
-
title:
|
|
7169
|
+
title: z246.string().optional(),
|
|
7152
7170
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7153
7171
|
});
|
|
7154
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
7172
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z246.object({
|
|
7155
7173
|
// Identifier of the page to update
|
|
7156
|
-
id:
|
|
7174
|
+
id: z246.string(),
|
|
7157
7175
|
// Page properties
|
|
7158
|
-
documentItems:
|
|
7176
|
+
documentItems: z246.array(DocumentationPageContentItem)
|
|
7159
7177
|
});
|
|
7160
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
7178
|
+
var DTOMoveDocumentationPageInputV2 = z246.object({
|
|
7161
7179
|
// Identifier of the group to update
|
|
7162
|
-
id:
|
|
7180
|
+
id: z246.string(),
|
|
7163
7181
|
// Page placement properties
|
|
7164
|
-
parentPersistentId:
|
|
7165
|
-
afterPersistentId:
|
|
7182
|
+
parentPersistentId: z246.string(),
|
|
7183
|
+
afterPersistentId: z246.string().nullish()
|
|
7166
7184
|
});
|
|
7167
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
7185
|
+
var DTODuplicateDocumentationPageInputV2 = z246.object({
|
|
7168
7186
|
// Identifier of the page to duplicate from
|
|
7169
|
-
id:
|
|
7187
|
+
id: z246.string(),
|
|
7170
7188
|
// New page persistent id
|
|
7171
|
-
persistentId:
|
|
7189
|
+
persistentId: z246.string(),
|
|
7172
7190
|
// Page placement properties
|
|
7173
|
-
parentPersistentId:
|
|
7174
|
-
afterPersistentId:
|
|
7191
|
+
parentPersistentId: z246.string(),
|
|
7192
|
+
afterPersistentId: z246.string().nullish()
|
|
7175
7193
|
});
|
|
7176
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
7194
|
+
var DTODeleteDocumentationPageInputV2 = z246.object({
|
|
7177
7195
|
// Identifier
|
|
7178
|
-
id:
|
|
7196
|
+
id: z246.string()
|
|
7179
7197
|
});
|
|
7180
|
-
var DTORestoreDocumentationPageInput =
|
|
7181
|
-
persistentId:
|
|
7182
|
-
snapshotId:
|
|
7198
|
+
var DTORestoreDocumentationPageInput = z246.object({
|
|
7199
|
+
persistentId: z246.string(),
|
|
7200
|
+
snapshotId: z246.string().optional()
|
|
7183
7201
|
});
|
|
7184
|
-
var DTORestoreDocumentationGroupInput =
|
|
7185
|
-
persistentId:
|
|
7186
|
-
snapshotId:
|
|
7202
|
+
var DTORestoreDocumentationGroupInput = z246.object({
|
|
7203
|
+
persistentId: z246.string(),
|
|
7204
|
+
snapshotId: z246.string().optional()
|
|
7187
7205
|
});
|
|
7188
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
7189
|
-
persistentId:
|
|
7206
|
+
var DTODocumentationPageApprovalStateChangeInput = z246.object({
|
|
7207
|
+
persistentId: z246.string(),
|
|
7190
7208
|
approvalState: DocumentationPageApprovalState.optional()
|
|
7191
7209
|
});
|
|
7192
7210
|
|
|
7193
7211
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7194
|
-
var DTODocumentationPageSnapshot =
|
|
7195
|
-
id:
|
|
7196
|
-
designSystemVersionId:
|
|
7197
|
-
createdAt:
|
|
7198
|
-
updatedAt:
|
|
7212
|
+
var DTODocumentationPageSnapshot = z247.object({
|
|
7213
|
+
id: z247.string(),
|
|
7214
|
+
designSystemVersionId: z247.string(),
|
|
7215
|
+
createdAt: z247.string(),
|
|
7216
|
+
updatedAt: z247.string(),
|
|
7199
7217
|
documentationPage: DTODocumentationPageV2,
|
|
7200
|
-
pageContentHash:
|
|
7218
|
+
pageContentHash: z247.string(),
|
|
7201
7219
|
reason: DesignElementSnapshotReason
|
|
7202
7220
|
});
|
|
7203
7221
|
|
|
7204
7222
|
// src/api/dto/documentation/link-preview.ts
|
|
7205
|
-
import { z as
|
|
7206
|
-
var DTODocumentationLinkPreviewResponse =
|
|
7223
|
+
import { z as z248 } from "zod";
|
|
7224
|
+
var DTODocumentationLinkPreviewResponse = z248.object({
|
|
7207
7225
|
linkPreview: DocumentationLinkPreview
|
|
7208
7226
|
});
|
|
7209
|
-
var DTODocumentationLinkPreviewRequest =
|
|
7210
|
-
url:
|
|
7211
|
-
documentationItemPersistentId:
|
|
7227
|
+
var DTODocumentationLinkPreviewRequest = z248.object({
|
|
7228
|
+
url: z248.string().optional(),
|
|
7229
|
+
documentationItemPersistentId: z248.string().optional()
|
|
7212
7230
|
});
|
|
7213
7231
|
|
|
7214
7232
|
// src/api/dto/documentation/publish.ts
|
|
7215
|
-
import { z as
|
|
7233
|
+
import { z as z252 } from "zod";
|
|
7216
7234
|
|
|
7217
7235
|
// src/api/dto/export/exporter.ts
|
|
7218
|
-
import { z as
|
|
7219
|
-
var DTOExporterType =
|
|
7220
|
-
var DTOExporterSource =
|
|
7221
|
-
var DTOExporterMembershipRole =
|
|
7222
|
-
var DTOExporterListQuery =
|
|
7223
|
-
limit:
|
|
7224
|
-
offset:
|
|
7236
|
+
import { z as z249 } from "zod";
|
|
7237
|
+
var DTOExporterType = z249.enum(["documentation", "code"]);
|
|
7238
|
+
var DTOExporterSource = z249.enum(["git", "upload"]);
|
|
7239
|
+
var DTOExporterMembershipRole = z249.enum(["Owner", "OwnerArchived", "User"]);
|
|
7240
|
+
var DTOExporterListQuery = z249.object({
|
|
7241
|
+
limit: z249.coerce.number().optional(),
|
|
7242
|
+
offset: z249.coerce.number().optional(),
|
|
7225
7243
|
type: DTOExporterType.optional(),
|
|
7226
|
-
search:
|
|
7244
|
+
search: z249.string().optional()
|
|
7227
7245
|
});
|
|
7228
|
-
var DTOExporter =
|
|
7229
|
-
id:
|
|
7230
|
-
name:
|
|
7231
|
-
isPrivate:
|
|
7246
|
+
var DTOExporter = z249.object({
|
|
7247
|
+
id: z249.string(),
|
|
7248
|
+
name: z249.string(),
|
|
7249
|
+
isPrivate: z249.boolean(),
|
|
7232
7250
|
exporterType: DTOExporterType,
|
|
7233
|
-
isDefaultDocumentationExporter:
|
|
7234
|
-
iconURL:
|
|
7251
|
+
isDefaultDocumentationExporter: z249.boolean(),
|
|
7252
|
+
iconURL: z249.string().optional(),
|
|
7235
7253
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
7236
7254
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
7237
7255
|
customBlocks: PulsarCustomBlock.array(),
|
|
7238
|
-
blockVariants:
|
|
7239
|
-
homepage:
|
|
7240
|
-
organization:
|
|
7241
|
-
packageId:
|
|
7242
|
-
tags:
|
|
7243
|
-
author:
|
|
7244
|
-
version:
|
|
7245
|
-
description:
|
|
7246
|
-
usesLocale:
|
|
7247
|
-
usesBrands:
|
|
7248
|
-
usesThemes:
|
|
7249
|
-
readme:
|
|
7250
|
-
routingVersion:
|
|
7256
|
+
blockVariants: z249.record(z249.string(), PulsarContributionVariant.array()),
|
|
7257
|
+
homepage: z249.string().optional(),
|
|
7258
|
+
organization: z249.string().optional(),
|
|
7259
|
+
packageId: z249.string().optional(),
|
|
7260
|
+
tags: z249.array(z249.string()),
|
|
7261
|
+
author: z249.string().optional(),
|
|
7262
|
+
version: z249.string(),
|
|
7263
|
+
description: z249.string(),
|
|
7264
|
+
usesLocale: z249.boolean(),
|
|
7265
|
+
usesBrands: z249.boolean(),
|
|
7266
|
+
usesThemes: z249.boolean(),
|
|
7267
|
+
readme: z249.string().optional(),
|
|
7268
|
+
routingVersion: z249.string().optional(),
|
|
7251
7269
|
source: DTOExporterSource,
|
|
7252
|
-
gitProvider:
|
|
7253
|
-
gitUrl: nullishToOptional(
|
|
7254
|
-
gitBranch: nullishToOptional(
|
|
7255
|
-
gitDirectory: nullishToOptional(
|
|
7256
|
-
isDeprecated:
|
|
7257
|
-
deprecationNote:
|
|
7258
|
-
replacementExporterId:
|
|
7259
|
-
});
|
|
7260
|
-
var DTOExporterMembership =
|
|
7261
|
-
workspaceId:
|
|
7262
|
-
exporterId:
|
|
7270
|
+
gitProvider: z249.string().optional(),
|
|
7271
|
+
gitUrl: nullishToOptional(z249.string()),
|
|
7272
|
+
gitBranch: nullishToOptional(z249.string()),
|
|
7273
|
+
gitDirectory: nullishToOptional(z249.string()),
|
|
7274
|
+
isDeprecated: z249.boolean(),
|
|
7275
|
+
deprecationNote: z249.string().optional(),
|
|
7276
|
+
replacementExporterId: z249.string().optional()
|
|
7277
|
+
});
|
|
7278
|
+
var DTOExporterMembership = z249.object({
|
|
7279
|
+
workspaceId: z249.string(),
|
|
7280
|
+
exporterId: z249.string(),
|
|
7263
7281
|
role: DTOExporterMembershipRole
|
|
7264
7282
|
});
|
|
7265
|
-
var DTOExporterResponse =
|
|
7283
|
+
var DTOExporterResponse = z249.object({
|
|
7266
7284
|
exporter: DTOExporter,
|
|
7267
7285
|
membership: DTOExporterMembership
|
|
7268
7286
|
});
|
|
7269
|
-
var DTOExporterListResponse =
|
|
7287
|
+
var DTOExporterListResponse = z249.object({
|
|
7270
7288
|
exporters: DTOExporter.array(),
|
|
7271
7289
|
membership: DTOExporterMembership.array(),
|
|
7272
|
-
total:
|
|
7290
|
+
total: z249.number()
|
|
7273
7291
|
});
|
|
7274
|
-
var DTOExporterGitProviderEnum =
|
|
7275
|
-
var DTOExporterCreateInput =
|
|
7276
|
-
url:
|
|
7292
|
+
var DTOExporterGitProviderEnum = z249.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
7293
|
+
var DTOExporterCreateInput = z249.object({
|
|
7294
|
+
url: z249.string(),
|
|
7277
7295
|
provider: DTOExporterGitProviderEnum
|
|
7278
7296
|
});
|
|
7279
|
-
var DTOExporterUpdateInput =
|
|
7280
|
-
url:
|
|
7297
|
+
var DTOExporterUpdateInput = z249.object({
|
|
7298
|
+
url: z249.string().optional()
|
|
7281
7299
|
});
|
|
7282
|
-
var DTOExporterDeprecationInput =
|
|
7283
|
-
isDeprecated:
|
|
7284
|
-
deprecationNote:
|
|
7285
|
-
replacementExporterId:
|
|
7300
|
+
var DTOExporterDeprecationInput = z249.object({
|
|
7301
|
+
isDeprecated: z249.boolean(),
|
|
7302
|
+
deprecationNote: z249.string().optional(),
|
|
7303
|
+
replacementExporterId: z249.string().optional()
|
|
7286
7304
|
});
|
|
7287
7305
|
|
|
7288
7306
|
// src/api/dto/export/filter.ts
|
|
7289
7307
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
7290
7308
|
|
|
7291
7309
|
// src/api/dto/export/job.ts
|
|
7292
|
-
import { z as
|
|
7293
|
-
var DTOExportJobCreatedBy =
|
|
7294
|
-
userId:
|
|
7295
|
-
userName:
|
|
7310
|
+
import { z as z250 } from "zod";
|
|
7311
|
+
var DTOExportJobCreatedBy = z250.object({
|
|
7312
|
+
userId: z250.string(),
|
|
7313
|
+
userName: z250.string()
|
|
7296
7314
|
});
|
|
7297
|
-
var DTOExportJobDesignSystemPreview =
|
|
7298
|
-
id:
|
|
7315
|
+
var DTOExportJobDesignSystemPreview = z250.object({
|
|
7316
|
+
id: z250.string(),
|
|
7299
7317
|
meta: ObjectMeta
|
|
7300
7318
|
});
|
|
7301
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
7302
|
-
id:
|
|
7319
|
+
var DTOExportJobDesignSystemVersionPreview = z250.object({
|
|
7320
|
+
id: z250.string(),
|
|
7303
7321
|
meta: ObjectMeta,
|
|
7304
|
-
version:
|
|
7305
|
-
isReadonly:
|
|
7322
|
+
version: z250.string(),
|
|
7323
|
+
isReadonly: z250.boolean()
|
|
7306
7324
|
});
|
|
7307
|
-
var DTOExportJobDestinations =
|
|
7325
|
+
var DTOExportJobDestinations = z250.object({
|
|
7308
7326
|
s3: ExporterDestinationS3.optional(),
|
|
7309
7327
|
azure: ExporterDestinationAzure.optional(),
|
|
7310
7328
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
7311
7329
|
github: ExporterDestinationGithub.optional(),
|
|
7312
7330
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
7313
7331
|
documentation: ExporterDestinationDocs.optional(),
|
|
7314
|
-
webhookUrl:
|
|
7332
|
+
webhookUrl: z250.string().optional()
|
|
7315
7333
|
});
|
|
7316
7334
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
7317
7335
|
sndocs: true
|
|
7318
7336
|
}).extend({
|
|
7319
7337
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
7320
7338
|
});
|
|
7321
|
-
var DTOExportJob =
|
|
7322
|
-
id:
|
|
7323
|
-
createdAt:
|
|
7324
|
-
finishedAt:
|
|
7325
|
-
index:
|
|
7339
|
+
var DTOExportJob = z250.object({
|
|
7340
|
+
id: z250.string(),
|
|
7341
|
+
createdAt: z250.coerce.date(),
|
|
7342
|
+
finishedAt: z250.coerce.date().optional(),
|
|
7343
|
+
index: z250.number().optional(),
|
|
7326
7344
|
status: ExportJobStatus,
|
|
7327
|
-
estimatedExecutionTime:
|
|
7345
|
+
estimatedExecutionTime: z250.number().optional(),
|
|
7328
7346
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
7329
7347
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
7330
7348
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
7331
7349
|
destinations: DTOExportJobDestinations,
|
|
7332
|
-
exporterId:
|
|
7333
|
-
scheduleId:
|
|
7350
|
+
exporterId: z250.string(),
|
|
7351
|
+
scheduleId: z250.string().optional(),
|
|
7334
7352
|
result: DTOExportJobResult.optional(),
|
|
7335
|
-
brandPersistentId:
|
|
7336
|
-
themePersistentId:
|
|
7337
|
-
themePersistentIds:
|
|
7353
|
+
brandPersistentId: z250.string().optional(),
|
|
7354
|
+
themePersistentId: z250.string().optional(),
|
|
7355
|
+
themePersistentIds: z250.string().array().optional(),
|
|
7338
7356
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
7339
7357
|
});
|
|
7340
|
-
var DTOExportJobResponse =
|
|
7358
|
+
var DTOExportJobResponse = z250.object({
|
|
7341
7359
|
job: DTOExportJob
|
|
7342
7360
|
});
|
|
7343
|
-
var DTOExportJobResponseLegacy =
|
|
7344
|
-
job:
|
|
7345
|
-
id:
|
|
7361
|
+
var DTOExportJobResponseLegacy = z250.object({
|
|
7362
|
+
job: z250.object({
|
|
7363
|
+
id: z250.string(),
|
|
7346
7364
|
status: ExportJobStatus
|
|
7347
7365
|
})
|
|
7348
7366
|
});
|
|
7349
|
-
var DTOExportJobCreateInput =
|
|
7350
|
-
designSystemId:
|
|
7351
|
-
designSystemVersionId:
|
|
7352
|
-
exporterId:
|
|
7353
|
-
brandId:
|
|
7354
|
-
themeId:
|
|
7355
|
-
themePersistentIds:
|
|
7367
|
+
var DTOExportJobCreateInput = z250.object({
|
|
7368
|
+
designSystemId: z250.string(),
|
|
7369
|
+
designSystemVersionId: z250.string(),
|
|
7370
|
+
exporterId: z250.string(),
|
|
7371
|
+
brandId: z250.string().optional(),
|
|
7372
|
+
themeId: z250.string().optional(),
|
|
7373
|
+
themePersistentIds: z250.string().array().optional(),
|
|
7356
7374
|
destinations: DTOExportJobDestinations,
|
|
7357
7375
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7358
|
-
previewMode:
|
|
7376
|
+
previewMode: z250.boolean().optional()
|
|
7359
7377
|
});
|
|
7360
7378
|
|
|
7361
7379
|
// src/api/dto/export/pipeline.ts
|
|
7362
|
-
import { z as
|
|
7363
|
-
var DTOPipelineListQuery =
|
|
7364
|
-
designSystemId:
|
|
7365
|
-
exporterId:
|
|
7366
|
-
latestJobsLimit:
|
|
7367
|
-
});
|
|
7368
|
-
var DTOPipeline =
|
|
7369
|
-
id:
|
|
7370
|
-
name:
|
|
7380
|
+
import { z as z251 } from "zod";
|
|
7381
|
+
var DTOPipelineListQuery = z251.object({
|
|
7382
|
+
designSystemId: z251.string().optional(),
|
|
7383
|
+
exporterId: z251.string().optional(),
|
|
7384
|
+
latestJobsLimit: z251.coerce.number().optional()
|
|
7385
|
+
});
|
|
7386
|
+
var DTOPipeline = z251.object({
|
|
7387
|
+
id: z251.string(),
|
|
7388
|
+
name: z251.string(),
|
|
7371
7389
|
eventType: PipelineEventType,
|
|
7372
|
-
isEnabled:
|
|
7373
|
-
workspaceId:
|
|
7374
|
-
designSystemId:
|
|
7375
|
-
exporterId:
|
|
7376
|
-
brandPersistentId:
|
|
7377
|
-
themePersistentId:
|
|
7378
|
-
themePersistentIds:
|
|
7390
|
+
isEnabled: z251.boolean(),
|
|
7391
|
+
workspaceId: z251.string(),
|
|
7392
|
+
designSystemId: z251.string(),
|
|
7393
|
+
exporterId: z251.string(),
|
|
7394
|
+
brandPersistentId: z251.string().optional(),
|
|
7395
|
+
themePersistentId: z251.string().optional(),
|
|
7396
|
+
themePersistentIds: z251.string().array().optional(),
|
|
7379
7397
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7380
7398
|
...ExportDestinationsMap.shape,
|
|
7381
7399
|
latestJobs: DTOExportJob.array(),
|
|
7382
|
-
isExporterDeprecated:
|
|
7400
|
+
isExporterDeprecated: z251.boolean()
|
|
7383
7401
|
});
|
|
7384
|
-
var DTOPipelineListResponse =
|
|
7402
|
+
var DTOPipelineListResponse = z251.object({
|
|
7385
7403
|
pipelines: DTOPipeline.array()
|
|
7386
7404
|
});
|
|
7387
|
-
var DTOPipelineResponse =
|
|
7405
|
+
var DTOPipelineResponse = z251.object({
|
|
7388
7406
|
pipeline: DTOPipeline
|
|
7389
7407
|
});
|
|
7390
7408
|
|
|
7391
7409
|
// src/api/dto/documentation/publish.ts
|
|
7392
7410
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
7393
|
-
var DTOPublishDocumentationRequest =
|
|
7411
|
+
var DTOPublishDocumentationRequest = z252.object({
|
|
7394
7412
|
environment: PublishedDocEnvironment,
|
|
7395
7413
|
/**
|
|
7396
7414
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -7398,66 +7416,66 @@ var DTOPublishDocumentationRequest = z251.object({
|
|
|
7398
7416
|
*/
|
|
7399
7417
|
changes: DTOPublishDocumentationChanges.optional()
|
|
7400
7418
|
});
|
|
7401
|
-
var DTOPublishDocumentationResponse =
|
|
7419
|
+
var DTOPublishDocumentationResponse = z252.object({
|
|
7402
7420
|
job: DTOExportJob
|
|
7403
7421
|
});
|
|
7404
7422
|
|
|
7405
7423
|
// src/api/dto/documentation/room.ts
|
|
7406
|
-
import { z as
|
|
7407
|
-
var DTODocumentationPageRoom =
|
|
7408
|
-
id:
|
|
7424
|
+
import { z as z253 } from "zod";
|
|
7425
|
+
var DTODocumentationPageRoom = z253.object({
|
|
7426
|
+
id: z253.string()
|
|
7409
7427
|
});
|
|
7410
|
-
var DTODocumentationPageRoomResponse =
|
|
7428
|
+
var DTODocumentationPageRoomResponse = z253.object({
|
|
7411
7429
|
room: DTODocumentationPageRoom
|
|
7412
7430
|
});
|
|
7413
7431
|
|
|
7414
7432
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
7415
|
-
import
|
|
7416
|
-
var DTOFigmaComponentGroup =
|
|
7417
|
-
id:
|
|
7418
|
-
designSystemVersionId:
|
|
7419
|
-
persistentId:
|
|
7420
|
-
isRoot:
|
|
7421
|
-
brandId:
|
|
7433
|
+
import z254 from "zod";
|
|
7434
|
+
var DTOFigmaComponentGroup = z254.object({
|
|
7435
|
+
id: z254.string(),
|
|
7436
|
+
designSystemVersionId: z254.string(),
|
|
7437
|
+
persistentId: z254.string(),
|
|
7438
|
+
isRoot: z254.boolean(),
|
|
7439
|
+
brandId: z254.string(),
|
|
7422
7440
|
meta: DTOObjectMeta,
|
|
7423
|
-
childrenIds:
|
|
7441
|
+
childrenIds: z254.string().array()
|
|
7424
7442
|
});
|
|
7425
|
-
var DTOFigmaComponentGroupListResponse =
|
|
7443
|
+
var DTOFigmaComponentGroupListResponse = z254.object({
|
|
7426
7444
|
groups: DTOFigmaComponentGroup.array()
|
|
7427
7445
|
});
|
|
7428
7446
|
|
|
7429
7447
|
// src/api/dto/elements/components/figma-component.ts
|
|
7430
|
-
import { z as
|
|
7448
|
+
import { z as z255 } from "zod";
|
|
7431
7449
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
7432
|
-
var DTOFigmaComponentPropertyMap =
|
|
7433
|
-
var DTOFigmaComponent =
|
|
7434
|
-
id:
|
|
7435
|
-
persistentId:
|
|
7436
|
-
designSystemVersionId:
|
|
7437
|
-
brandId:
|
|
7438
|
-
thumbnailUrl:
|
|
7439
|
-
svgUrl:
|
|
7440
|
-
exportProperties:
|
|
7441
|
-
isAsset:
|
|
7450
|
+
var DTOFigmaComponentPropertyMap = z255.record(DTOFigmaComponentProperty);
|
|
7451
|
+
var DTOFigmaComponent = z255.object({
|
|
7452
|
+
id: z255.string(),
|
|
7453
|
+
persistentId: z255.string(),
|
|
7454
|
+
designSystemVersionId: z255.string(),
|
|
7455
|
+
brandId: z255.string(),
|
|
7456
|
+
thumbnailUrl: z255.string().optional(),
|
|
7457
|
+
svgUrl: z255.string().optional(),
|
|
7458
|
+
exportProperties: z255.object({
|
|
7459
|
+
isAsset: z255.boolean()
|
|
7442
7460
|
}),
|
|
7443
|
-
createdAt:
|
|
7444
|
-
updatedAt:
|
|
7461
|
+
createdAt: z255.coerce.date(),
|
|
7462
|
+
updatedAt: z255.coerce.date(),
|
|
7445
7463
|
meta: ObjectMeta,
|
|
7446
7464
|
originComponent: FigmaComponentOrigin.optional(),
|
|
7447
|
-
parentComponentPersistentId:
|
|
7448
|
-
childrenPersistentIds:
|
|
7465
|
+
parentComponentPersistentId: z255.string().optional(),
|
|
7466
|
+
childrenPersistentIds: z255.string().array().optional(),
|
|
7449
7467
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
7450
|
-
variantPropertyValues:
|
|
7468
|
+
variantPropertyValues: z255.record(z255.string()).optional()
|
|
7451
7469
|
});
|
|
7452
|
-
var DTOFigmaComponentListResponse =
|
|
7470
|
+
var DTOFigmaComponentListResponse = z255.object({
|
|
7453
7471
|
components: DTOFigmaComponent.array()
|
|
7454
7472
|
});
|
|
7455
7473
|
|
|
7456
7474
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7457
|
-
import { z as
|
|
7475
|
+
import { z as z257 } from "zod";
|
|
7458
7476
|
|
|
7459
7477
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
7460
|
-
import { z as
|
|
7478
|
+
import { z as z256 } from "zod";
|
|
7461
7479
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
7462
7480
|
sortOrder: true,
|
|
7463
7481
|
parentPersistentId: true,
|
|
@@ -7467,13 +7485,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7467
7485
|
data: true,
|
|
7468
7486
|
shortPersistentId: true
|
|
7469
7487
|
}).extend({
|
|
7470
|
-
title:
|
|
7471
|
-
isRoot:
|
|
7472
|
-
childrenIds:
|
|
7488
|
+
title: z256.string(),
|
|
7489
|
+
isRoot: z256.boolean(),
|
|
7490
|
+
childrenIds: z256.array(z256.string()),
|
|
7473
7491
|
groupBehavior: DocumentationGroupBehavior,
|
|
7474
|
-
shortPersistentId:
|
|
7492
|
+
shortPersistentId: z256.string(),
|
|
7475
7493
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7476
|
-
type:
|
|
7494
|
+
type: z256.literal("Group"),
|
|
7477
7495
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
7478
7496
|
draftState: DTODocumentationDraftState.optional(),
|
|
7479
7497
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -7481,127 +7499,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7481
7499
|
//** An approval state for frontend to utilize. */
|
|
7482
7500
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
7483
7501
|
});
|
|
7484
|
-
var DTOCreateDocumentationGroupInput =
|
|
7502
|
+
var DTOCreateDocumentationGroupInput = z256.object({
|
|
7485
7503
|
// Identifier
|
|
7486
|
-
persistentId:
|
|
7504
|
+
persistentId: z256.string(),
|
|
7487
7505
|
// Group properties
|
|
7488
|
-
title:
|
|
7506
|
+
title: z256.string(),
|
|
7489
7507
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7490
7508
|
// Group placement properties
|
|
7491
|
-
afterPersistentId:
|
|
7492
|
-
parentPersistentId:
|
|
7509
|
+
afterPersistentId: z256.string().nullish(),
|
|
7510
|
+
parentPersistentId: z256.string()
|
|
7493
7511
|
});
|
|
7494
|
-
var DTOUpdateDocumentationGroupInput =
|
|
7512
|
+
var DTOUpdateDocumentationGroupInput = z256.object({
|
|
7495
7513
|
// Identifier of the group to update
|
|
7496
|
-
id:
|
|
7514
|
+
id: z256.string(),
|
|
7497
7515
|
// Group properties
|
|
7498
|
-
title:
|
|
7516
|
+
title: z256.string().optional(),
|
|
7499
7517
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7500
7518
|
});
|
|
7501
|
-
var DTOMoveDocumentationGroupInput =
|
|
7519
|
+
var DTOMoveDocumentationGroupInput = z256.object({
|
|
7502
7520
|
// Identifier of the group to update
|
|
7503
|
-
id:
|
|
7521
|
+
id: z256.string(),
|
|
7504
7522
|
// Group placement properties
|
|
7505
|
-
parentPersistentId:
|
|
7506
|
-
afterPersistentId:
|
|
7523
|
+
parentPersistentId: z256.string(),
|
|
7524
|
+
afterPersistentId: z256.string().nullish()
|
|
7507
7525
|
});
|
|
7508
|
-
var DTODuplicateDocumentationGroupInput =
|
|
7526
|
+
var DTODuplicateDocumentationGroupInput = z256.object({
|
|
7509
7527
|
// Identifier of the group to duplicate from
|
|
7510
|
-
id:
|
|
7528
|
+
id: z256.string(),
|
|
7511
7529
|
// New group persistent id
|
|
7512
|
-
persistentId:
|
|
7530
|
+
persistentId: z256.string(),
|
|
7513
7531
|
// Group placement properties
|
|
7514
|
-
afterPersistentId:
|
|
7515
|
-
parentPersistentId:
|
|
7532
|
+
afterPersistentId: z256.string().nullish(),
|
|
7533
|
+
parentPersistentId: z256.string()
|
|
7516
7534
|
});
|
|
7517
|
-
var DTOCreateDocumentationTabInput =
|
|
7535
|
+
var DTOCreateDocumentationTabInput = z256.object({
|
|
7518
7536
|
// New group persistent id
|
|
7519
|
-
persistentId:
|
|
7537
|
+
persistentId: z256.string(),
|
|
7520
7538
|
// If this is page, we will attempt to convert it to tab
|
|
7521
7539
|
// If this is tab group, we will add a new tab to it
|
|
7522
|
-
fromItemPersistentId:
|
|
7523
|
-
tabName:
|
|
7540
|
+
fromItemPersistentId: z256.string(),
|
|
7541
|
+
tabName: z256.string()
|
|
7524
7542
|
});
|
|
7525
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
7543
|
+
var DTODeleteDocumentationTabGroupInput = z256.object({
|
|
7526
7544
|
// Deleted group id
|
|
7527
|
-
id:
|
|
7545
|
+
id: z256.string()
|
|
7528
7546
|
});
|
|
7529
|
-
var DTODeleteDocumentationGroupInput =
|
|
7547
|
+
var DTODeleteDocumentationGroupInput = z256.object({
|
|
7530
7548
|
// Identifier
|
|
7531
|
-
id:
|
|
7549
|
+
id: z256.string(),
|
|
7532
7550
|
// Deletion options
|
|
7533
|
-
deleteSubtree:
|
|
7551
|
+
deleteSubtree: z256.boolean().default(false)
|
|
7534
7552
|
});
|
|
7535
7553
|
|
|
7536
7554
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7537
|
-
var SuccessPayload =
|
|
7538
|
-
success:
|
|
7555
|
+
var SuccessPayload = z257.object({
|
|
7556
|
+
success: z257.literal(true)
|
|
7539
7557
|
});
|
|
7540
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
7541
|
-
type:
|
|
7558
|
+
var DTODocumentationGroupCreateActionOutputV2 = z257.object({
|
|
7559
|
+
type: z257.literal("DocumentationGroupCreate"),
|
|
7542
7560
|
output: SuccessPayload
|
|
7543
7561
|
});
|
|
7544
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
7545
|
-
type:
|
|
7562
|
+
var DTODocumentationTabCreateActionOutputV2 = z257.object({
|
|
7563
|
+
type: z257.literal("DocumentationTabCreate"),
|
|
7546
7564
|
output: SuccessPayload
|
|
7547
7565
|
});
|
|
7548
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
7549
|
-
type:
|
|
7566
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z257.object({
|
|
7567
|
+
type: z257.literal("DocumentationGroupUpdate"),
|
|
7550
7568
|
output: SuccessPayload
|
|
7551
7569
|
});
|
|
7552
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
7553
|
-
type:
|
|
7570
|
+
var DTODocumentationGroupMoveActionOutputV2 = z257.object({
|
|
7571
|
+
type: z257.literal("DocumentationGroupMove"),
|
|
7554
7572
|
output: SuccessPayload
|
|
7555
7573
|
});
|
|
7556
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
7557
|
-
type:
|
|
7574
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z257.object({
|
|
7575
|
+
type: z257.literal("DocumentationGroupDuplicate"),
|
|
7558
7576
|
output: SuccessPayload
|
|
7559
7577
|
});
|
|
7560
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
7561
|
-
type:
|
|
7578
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z257.object({
|
|
7579
|
+
type: z257.literal("DocumentationGroupDelete"),
|
|
7562
7580
|
output: SuccessPayload
|
|
7563
7581
|
});
|
|
7564
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
7565
|
-
type:
|
|
7582
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z257.object({
|
|
7583
|
+
type: z257.literal("DocumentationTabGroupDelete"),
|
|
7566
7584
|
output: SuccessPayload
|
|
7567
7585
|
});
|
|
7568
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
7569
|
-
type:
|
|
7586
|
+
var DTODocumentationGroupCreateActionInputV2 = z257.object({
|
|
7587
|
+
type: z257.literal("DocumentationGroupCreate"),
|
|
7570
7588
|
input: DTOCreateDocumentationGroupInput
|
|
7571
7589
|
});
|
|
7572
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
7573
|
-
type:
|
|
7590
|
+
var DTODocumentationTabCreateActionInputV2 = z257.object({
|
|
7591
|
+
type: z257.literal("DocumentationTabCreate"),
|
|
7574
7592
|
input: DTOCreateDocumentationTabInput
|
|
7575
7593
|
});
|
|
7576
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
7577
|
-
type:
|
|
7594
|
+
var DTODocumentationGroupUpdateActionInputV2 = z257.object({
|
|
7595
|
+
type: z257.literal("DocumentationGroupUpdate"),
|
|
7578
7596
|
input: DTOUpdateDocumentationGroupInput
|
|
7579
7597
|
});
|
|
7580
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
7581
|
-
type:
|
|
7598
|
+
var DTODocumentationGroupMoveActionInputV2 = z257.object({
|
|
7599
|
+
type: z257.literal("DocumentationGroupMove"),
|
|
7582
7600
|
input: DTOMoveDocumentationGroupInput
|
|
7583
7601
|
});
|
|
7584
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
7585
|
-
type:
|
|
7602
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z257.object({
|
|
7603
|
+
type: z257.literal("DocumentationGroupDuplicate"),
|
|
7586
7604
|
input: DTODuplicateDocumentationGroupInput
|
|
7587
7605
|
});
|
|
7588
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
7589
|
-
type:
|
|
7606
|
+
var DTODocumentationGroupDeleteActionInputV2 = z257.object({
|
|
7607
|
+
type: z257.literal("DocumentationGroupDelete"),
|
|
7590
7608
|
input: DTODeleteDocumentationGroupInput
|
|
7591
7609
|
});
|
|
7592
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
7593
|
-
type:
|
|
7610
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z257.object({
|
|
7611
|
+
type: z257.literal("DocumentationTabGroupDelete"),
|
|
7594
7612
|
input: DTODeleteDocumentationTabGroupInput
|
|
7595
7613
|
});
|
|
7596
7614
|
|
|
7597
7615
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
7598
|
-
import { z as
|
|
7616
|
+
import { z as z259 } from "zod";
|
|
7599
7617
|
|
|
7600
7618
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
7601
|
-
import { z as
|
|
7602
|
-
var DocumentationColorV1 =
|
|
7603
|
-
aliasTo:
|
|
7604
|
-
value:
|
|
7619
|
+
import { z as z258 } from "zod";
|
|
7620
|
+
var DocumentationColorV1 = z258.object({
|
|
7621
|
+
aliasTo: z258.string().optional(),
|
|
7622
|
+
value: z258.string().optional()
|
|
7605
7623
|
});
|
|
7606
7624
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
7607
7625
|
foregroundColor: true,
|
|
@@ -7610,10 +7628,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
7610
7628
|
foregroundColor: DocumentationColorV1.optional(),
|
|
7611
7629
|
backgroundColor: DocumentationColorV1.optional()
|
|
7612
7630
|
});
|
|
7613
|
-
var DTODocumentationItemConfigurationV1 =
|
|
7614
|
-
showSidebar:
|
|
7615
|
-
isPrivate:
|
|
7616
|
-
isHidden:
|
|
7631
|
+
var DTODocumentationItemConfigurationV1 = z258.object({
|
|
7632
|
+
showSidebar: z258.boolean(),
|
|
7633
|
+
isPrivate: z258.boolean(),
|
|
7634
|
+
isHidden: z258.boolean(),
|
|
7617
7635
|
header: DTODocumentationItemHeaderV1
|
|
7618
7636
|
});
|
|
7619
7637
|
|
|
@@ -7627,145 +7645,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
7627
7645
|
data: true,
|
|
7628
7646
|
shortPersistentId: true
|
|
7629
7647
|
}).extend({
|
|
7630
|
-
title:
|
|
7631
|
-
isRoot:
|
|
7632
|
-
childrenIds:
|
|
7648
|
+
title: z259.string(),
|
|
7649
|
+
isRoot: z259.boolean(),
|
|
7650
|
+
childrenIds: z259.array(z259.string()),
|
|
7633
7651
|
groupBehavior: DocumentationGroupBehavior,
|
|
7634
|
-
shortPersistentId:
|
|
7635
|
-
type:
|
|
7652
|
+
shortPersistentId: z259.string(),
|
|
7653
|
+
type: z259.literal("Group")
|
|
7636
7654
|
});
|
|
7637
7655
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
7638
7656
|
configuration: DTODocumentationItemConfigurationV1
|
|
7639
7657
|
});
|
|
7640
7658
|
|
|
7641
7659
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
7642
|
-
import { z as
|
|
7643
|
-
var DTODocumentationHierarchyV2 =
|
|
7644
|
-
pages:
|
|
7660
|
+
import { z as z260 } from "zod";
|
|
7661
|
+
var DTODocumentationHierarchyV2 = z260.object({
|
|
7662
|
+
pages: z260.array(
|
|
7645
7663
|
DTODocumentationPageV2.extend({
|
|
7646
7664
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7647
7665
|
draftState: DTODocumentationDraftState.optional()
|
|
7648
7666
|
})
|
|
7649
7667
|
),
|
|
7650
|
-
groups:
|
|
7668
|
+
groups: z260.array(
|
|
7651
7669
|
DTODocumentationGroupV2.extend({
|
|
7652
7670
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7653
7671
|
draftState: DTODocumentationDraftState.optional()
|
|
7654
7672
|
})
|
|
7655
7673
|
),
|
|
7656
7674
|
/** True if the documentation was already published, false otherwise. */
|
|
7657
|
-
hasPublishedDocumentationContent:
|
|
7675
|
+
hasPublishedDocumentationContent: z260.boolean()
|
|
7658
7676
|
});
|
|
7659
7677
|
|
|
7660
7678
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
7661
|
-
import { z as
|
|
7662
|
-
var SuccessPayload2 =
|
|
7663
|
-
success:
|
|
7679
|
+
import { z as z261 } from "zod";
|
|
7680
|
+
var SuccessPayload2 = z261.object({
|
|
7681
|
+
success: z261.literal(true)
|
|
7664
7682
|
});
|
|
7665
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
7666
|
-
type:
|
|
7683
|
+
var DTODocumentationPageCreateActionOutputV2 = z261.object({
|
|
7684
|
+
type: z261.literal("DocumentationPageCreate"),
|
|
7667
7685
|
output: SuccessPayload2
|
|
7668
7686
|
});
|
|
7669
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
7670
|
-
type:
|
|
7687
|
+
var DTODocumentationPageUpdateActionOutputV2 = z261.object({
|
|
7688
|
+
type: z261.literal("DocumentationPageUpdate"),
|
|
7671
7689
|
output: SuccessPayload2
|
|
7672
7690
|
});
|
|
7673
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
7674
|
-
type:
|
|
7691
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z261.object({
|
|
7692
|
+
type: z261.literal("DocumentationPageUpdateDocument"),
|
|
7675
7693
|
output: SuccessPayload2
|
|
7676
7694
|
});
|
|
7677
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
7678
|
-
type:
|
|
7695
|
+
var DTODocumentationPageMoveActionOutputV2 = z261.object({
|
|
7696
|
+
type: z261.literal("DocumentationPageMove"),
|
|
7679
7697
|
output: SuccessPayload2
|
|
7680
7698
|
});
|
|
7681
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
7682
|
-
type:
|
|
7699
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z261.object({
|
|
7700
|
+
type: z261.literal("DocumentationPageDuplicate"),
|
|
7683
7701
|
output: SuccessPayload2
|
|
7684
7702
|
});
|
|
7685
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
7686
|
-
type:
|
|
7703
|
+
var DTODocumentationPageDeleteActionOutputV2 = z261.object({
|
|
7704
|
+
type: z261.literal("DocumentationPageDelete"),
|
|
7687
7705
|
output: SuccessPayload2
|
|
7688
7706
|
});
|
|
7689
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
7690
|
-
type:
|
|
7707
|
+
var DTODocumentationPageRestoreActionOutput = z261.object({
|
|
7708
|
+
type: z261.literal("DocumentationPageRestore"),
|
|
7691
7709
|
output: SuccessPayload2
|
|
7692
7710
|
});
|
|
7693
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
7694
|
-
type:
|
|
7711
|
+
var DTODocumentationGroupRestoreActionOutput = z261.object({
|
|
7712
|
+
type: z261.literal("DocumentationGroupRestore"),
|
|
7695
7713
|
output: SuccessPayload2
|
|
7696
7714
|
});
|
|
7697
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
7698
|
-
type:
|
|
7715
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z261.object({
|
|
7716
|
+
type: z261.literal("DocumentationPageApprovalStateChange"),
|
|
7699
7717
|
output: SuccessPayload2
|
|
7700
7718
|
});
|
|
7701
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
7702
|
-
type:
|
|
7719
|
+
var DTODocumentationPageCreateActionInputV2 = z261.object({
|
|
7720
|
+
type: z261.literal("DocumentationPageCreate"),
|
|
7703
7721
|
input: DTOCreateDocumentationPageInputV2
|
|
7704
7722
|
});
|
|
7705
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
7706
|
-
type:
|
|
7723
|
+
var DTODocumentationPageUpdateActionInputV2 = z261.object({
|
|
7724
|
+
type: z261.literal("DocumentationPageUpdate"),
|
|
7707
7725
|
input: DTOUpdateDocumentationPageInputV2
|
|
7708
7726
|
});
|
|
7709
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
7710
|
-
type:
|
|
7727
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z261.object({
|
|
7728
|
+
type: z261.literal("DocumentationPageUpdateDocument"),
|
|
7711
7729
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7712
7730
|
});
|
|
7713
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
7714
|
-
type:
|
|
7731
|
+
var DTODocumentationPageMoveActionInputV2 = z261.object({
|
|
7732
|
+
type: z261.literal("DocumentationPageMove"),
|
|
7715
7733
|
input: DTOMoveDocumentationPageInputV2
|
|
7716
7734
|
});
|
|
7717
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
7718
|
-
type:
|
|
7735
|
+
var DTODocumentationPageDuplicateActionInputV2 = z261.object({
|
|
7736
|
+
type: z261.literal("DocumentationPageDuplicate"),
|
|
7719
7737
|
input: DTODuplicateDocumentationPageInputV2
|
|
7720
7738
|
});
|
|
7721
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
7722
|
-
type:
|
|
7739
|
+
var DTODocumentationPageDeleteActionInputV2 = z261.object({
|
|
7740
|
+
type: z261.literal("DocumentationPageDelete"),
|
|
7723
7741
|
input: DTODeleteDocumentationPageInputV2
|
|
7724
7742
|
});
|
|
7725
|
-
var DTODocumentationPageRestoreActionInput =
|
|
7726
|
-
type:
|
|
7743
|
+
var DTODocumentationPageRestoreActionInput = z261.object({
|
|
7744
|
+
type: z261.literal("DocumentationPageRestore"),
|
|
7727
7745
|
input: DTORestoreDocumentationPageInput
|
|
7728
7746
|
});
|
|
7729
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
7730
|
-
type:
|
|
7747
|
+
var DTODocumentationGroupRestoreActionInput = z261.object({
|
|
7748
|
+
type: z261.literal("DocumentationGroupRestore"),
|
|
7731
7749
|
input: DTORestoreDocumentationGroupInput
|
|
7732
7750
|
});
|
|
7733
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
7734
|
-
type:
|
|
7751
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z261.object({
|
|
7752
|
+
type: z261.literal("DocumentationPageApprovalStateChange"),
|
|
7735
7753
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
7736
7754
|
});
|
|
7737
7755
|
|
|
7738
7756
|
// src/api/dto/elements/documentation/page-content.ts
|
|
7739
|
-
import { z as
|
|
7757
|
+
import { z as z262 } from "zod";
|
|
7740
7758
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
7741
|
-
var DTODocumentationPageContentGetResponse =
|
|
7759
|
+
var DTODocumentationPageContentGetResponse = z262.object({
|
|
7742
7760
|
pageContent: DTODocumentationPageContent
|
|
7743
7761
|
});
|
|
7744
7762
|
|
|
7745
7763
|
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
7746
|
-
import { z as
|
|
7747
|
-
var DTODocumentationPageDependencies =
|
|
7748
|
-
id:
|
|
7749
|
-
designSystemVersionId:
|
|
7750
|
-
createdAt:
|
|
7751
|
-
updatedAt:
|
|
7752
|
-
documentationPageId:
|
|
7753
|
-
tokenPersistentIds:
|
|
7754
|
-
figmaComponentPersistentIds:
|
|
7755
|
-
componentPersistentIds:
|
|
7756
|
-
figmaNodePersistentIds:
|
|
7757
|
-
groupPersistentIds:
|
|
7758
|
-
propertyPersistentIds:
|
|
7759
|
-
themePersistentIds:
|
|
7760
|
-
documentationPagePersistentIds:
|
|
7761
|
-
storybookEntriesStoryIds:
|
|
7762
|
-
});
|
|
7763
|
-
var DTODocumentationPageDependenciesGetResponse =
|
|
7764
|
-
dependencies:
|
|
7764
|
+
import { z as z263 } from "zod";
|
|
7765
|
+
var DTODocumentationPageDependencies = z263.object({
|
|
7766
|
+
id: z263.string(),
|
|
7767
|
+
designSystemVersionId: z263.string(),
|
|
7768
|
+
createdAt: z263.coerce.date(),
|
|
7769
|
+
updatedAt: z263.coerce.date(),
|
|
7770
|
+
documentationPageId: z263.string(),
|
|
7771
|
+
tokenPersistentIds: z263.array(z263.string()),
|
|
7772
|
+
figmaComponentPersistentIds: z263.array(z263.string()),
|
|
7773
|
+
componentPersistentIds: z263.array(z263.string()),
|
|
7774
|
+
figmaNodePersistentIds: z263.array(z263.string()),
|
|
7775
|
+
groupPersistentIds: z263.array(z263.string()),
|
|
7776
|
+
propertyPersistentIds: z263.array(z263.string()),
|
|
7777
|
+
themePersistentIds: z263.array(z263.string()),
|
|
7778
|
+
documentationPagePersistentIds: z263.array(z263.string()),
|
|
7779
|
+
storybookEntriesStoryIds: z263.array(z263.string())
|
|
7780
|
+
});
|
|
7781
|
+
var DTODocumentationPageDependenciesGetResponse = z263.object({
|
|
7782
|
+
dependencies: z263.array(DTODocumentationPageDependencies)
|
|
7765
7783
|
});
|
|
7766
7784
|
|
|
7767
7785
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
7768
|
-
import { z as
|
|
7786
|
+
import { z as z264 } from "zod";
|
|
7769
7787
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
7770
7788
|
data: true,
|
|
7771
7789
|
meta: true,
|
|
@@ -7773,81 +7791,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7773
7791
|
sortOrder: true
|
|
7774
7792
|
}).extend({
|
|
7775
7793
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7776
|
-
blocks:
|
|
7777
|
-
title:
|
|
7778
|
-
path:
|
|
7794
|
+
blocks: z264.array(PageBlockV1),
|
|
7795
|
+
title: z264.string(),
|
|
7796
|
+
path: z264.string()
|
|
7779
7797
|
});
|
|
7780
7798
|
|
|
7781
7799
|
// src/api/dto/elements/documentation/settings.ts
|
|
7782
|
-
import { z as
|
|
7783
|
-
var DTODocumentationSettings =
|
|
7784
|
-
isDraftFeatureAdopted:
|
|
7785
|
-
isApprovalsFeatureEnabled:
|
|
7786
|
-
isApprovalRequiredForPublishing:
|
|
7800
|
+
import { z as z265 } from "zod";
|
|
7801
|
+
var DTODocumentationSettings = z265.object({
|
|
7802
|
+
isDraftFeatureAdopted: z265.boolean(),
|
|
7803
|
+
isApprovalsFeatureEnabled: z265.boolean(),
|
|
7804
|
+
isApprovalRequiredForPublishing: z265.boolean()
|
|
7787
7805
|
});
|
|
7788
7806
|
|
|
7789
7807
|
// src/api/dto/elements/documentation/structure.ts
|
|
7790
|
-
import { z as
|
|
7791
|
-
var DTODocumentationStructureItemType =
|
|
7792
|
-
var DTODocumentationStructureItemBase =
|
|
7808
|
+
import { z as z266 } from "zod";
|
|
7809
|
+
var DTODocumentationStructureItemType = z266.enum(["Group", "Page"]);
|
|
7810
|
+
var DTODocumentationStructureItemBase = z266.object({
|
|
7793
7811
|
type: DTODocumentationStructureItemType,
|
|
7794
|
-
id:
|
|
7795
|
-
designSystemVersionId:
|
|
7796
|
-
shortPersistentId:
|
|
7797
|
-
persistentId:
|
|
7798
|
-
title:
|
|
7799
|
-
createdAt:
|
|
7800
|
-
updatedAt:
|
|
7812
|
+
id: z266.string(),
|
|
7813
|
+
designSystemVersionId: z266.string(),
|
|
7814
|
+
shortPersistentId: z266.string(),
|
|
7815
|
+
persistentId: z266.string(),
|
|
7816
|
+
title: z266.string(),
|
|
7817
|
+
createdAt: z266.coerce.date(),
|
|
7818
|
+
updatedAt: z266.coerce.date()
|
|
7801
7819
|
});
|
|
7802
7820
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7803
|
-
type:
|
|
7804
|
-
groupBehavior:
|
|
7805
|
-
childrenIds:
|
|
7806
|
-
isRoot:
|
|
7821
|
+
type: z266.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7822
|
+
groupBehavior: z266.string(),
|
|
7823
|
+
childrenIds: z266.string().array(),
|
|
7824
|
+
isRoot: z266.boolean()
|
|
7807
7825
|
});
|
|
7808
7826
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7809
|
-
type:
|
|
7810
|
-
path:
|
|
7827
|
+
type: z266.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7828
|
+
path: z266.string()
|
|
7811
7829
|
});
|
|
7812
|
-
var DTODocumentationStructureItem =
|
|
7830
|
+
var DTODocumentationStructureItem = z266.discriminatedUnion("type", [
|
|
7813
7831
|
DTODocumentationStructureGroupItem,
|
|
7814
7832
|
DTODocumentationStructurePageItem
|
|
7815
7833
|
]);
|
|
7816
|
-
var DTODocumentationStructure =
|
|
7817
|
-
items:
|
|
7834
|
+
var DTODocumentationStructure = z266.object({
|
|
7835
|
+
items: z266.array(DTODocumentationStructureItem)
|
|
7818
7836
|
});
|
|
7819
7837
|
|
|
7820
7838
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
7821
|
-
import { z as
|
|
7822
|
-
var DTOFigmaNodeStructure =
|
|
7823
|
-
id:
|
|
7824
|
-
sourceId:
|
|
7839
|
+
import { z as z267 } from "zod";
|
|
7840
|
+
var DTOFigmaNodeStructure = z267.object({
|
|
7841
|
+
id: z267.string(),
|
|
7842
|
+
sourceId: z267.string(),
|
|
7825
7843
|
importState: FigmaNodeStructureStateV2,
|
|
7826
|
-
createdAt:
|
|
7827
|
-
updatedAt:
|
|
7844
|
+
createdAt: z267.coerce.date(),
|
|
7845
|
+
updatedAt: z267.coerce.date()
|
|
7828
7846
|
});
|
|
7829
7847
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
7830
7848
|
rootNode: FigmaFileStructureNode
|
|
7831
7849
|
});
|
|
7832
|
-
var DTOFigmaNodeStructureListResponse =
|
|
7850
|
+
var DTOFigmaNodeStructureListResponse = z267.object({
|
|
7833
7851
|
structures: DTOFigmaNodeStructure.array()
|
|
7834
7852
|
});
|
|
7835
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
7853
|
+
var DTOFigmaNodeStructureDetailResponse = z267.object({
|
|
7836
7854
|
structure: DTOFigmaNodeStructureDetail
|
|
7837
7855
|
});
|
|
7838
7856
|
|
|
7839
7857
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7840
|
-
import { z as
|
|
7858
|
+
import { z as z269 } from "zod";
|
|
7841
7859
|
|
|
7842
7860
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7843
|
-
import { z as
|
|
7861
|
+
import { z as z268 } from "zod";
|
|
7844
7862
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7845
|
-
var DTOFigmaNodeOrigin =
|
|
7846
|
-
sourceId:
|
|
7847
|
-
fileId:
|
|
7848
|
-
parentName:
|
|
7863
|
+
var DTOFigmaNodeOrigin = z268.object({
|
|
7864
|
+
sourceId: z268.string(),
|
|
7865
|
+
fileId: z268.string().optional(),
|
|
7866
|
+
parentName: z268.string().optional()
|
|
7849
7867
|
});
|
|
7850
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7868
|
+
var DTOFigmaNodeRenderInputBase = z268.object({
|
|
7851
7869
|
/**
|
|
7852
7870
|
* Format in which the node must be rendered, png by default.
|
|
7853
7871
|
*/
|
|
@@ -7855,57 +7873,57 @@ var DTOFigmaNodeRenderInputBase = z267.object({
|
|
|
7855
7873
|
/**
|
|
7856
7874
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7857
7875
|
*/
|
|
7858
|
-
scale:
|
|
7876
|
+
scale: z268.number().optional()
|
|
7859
7877
|
});
|
|
7860
7878
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7861
|
-
inputType:
|
|
7879
|
+
inputType: z268.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7862
7880
|
/**
|
|
7863
7881
|
* Id of a design system's data source representing a linked Figma file
|
|
7864
7882
|
*/
|
|
7865
|
-
sourceId:
|
|
7883
|
+
sourceId: z268.string(),
|
|
7866
7884
|
/**
|
|
7867
7885
|
* Id of a node within the Figma file
|
|
7868
7886
|
*/
|
|
7869
|
-
figmaFileNodeId:
|
|
7887
|
+
figmaFileNodeId: z268.string()
|
|
7870
7888
|
});
|
|
7871
7889
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7872
|
-
inputType:
|
|
7890
|
+
inputType: z268.literal("URL"),
|
|
7873
7891
|
/**
|
|
7874
7892
|
* Id of a design system's data source representing a linked Figma file
|
|
7875
7893
|
*/
|
|
7876
|
-
figmaNodeUrl:
|
|
7894
|
+
figmaNodeUrl: z268.string(),
|
|
7877
7895
|
/**
|
|
7878
7896
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7879
7897
|
*/
|
|
7880
|
-
brandPersistentId:
|
|
7898
|
+
brandPersistentId: z268.string()
|
|
7881
7899
|
});
|
|
7882
|
-
var DTOFigmaNodeRerenderInput =
|
|
7883
|
-
inputType:
|
|
7900
|
+
var DTOFigmaNodeRerenderInput = z268.object({
|
|
7901
|
+
inputType: z268.literal("Rerender"),
|
|
7884
7902
|
/**
|
|
7885
7903
|
* Persistent ID of an existing Figma node
|
|
7886
7904
|
*/
|
|
7887
|
-
figmaNodePersistentId:
|
|
7905
|
+
figmaNodePersistentId: z268.string()
|
|
7888
7906
|
});
|
|
7889
|
-
var DTOFigmaNodeRenderInput =
|
|
7907
|
+
var DTOFigmaNodeRenderInput = z268.discriminatedUnion("inputType", [
|
|
7890
7908
|
DTOFigmaNodeRenderIdInput,
|
|
7891
7909
|
DTOFigmaNodeRenderUrlInput,
|
|
7892
7910
|
DTOFigmaNodeRerenderInput
|
|
7893
7911
|
]);
|
|
7894
7912
|
|
|
7895
7913
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7896
|
-
var DTOFigmaNodeData =
|
|
7914
|
+
var DTOFigmaNodeData = z269.object({
|
|
7897
7915
|
// Id of the node in the Figma file
|
|
7898
|
-
figmaNodeId:
|
|
7916
|
+
figmaNodeId: z269.string(),
|
|
7899
7917
|
// Validity
|
|
7900
|
-
isValid:
|
|
7918
|
+
isValid: z269.boolean(),
|
|
7901
7919
|
// Asset data
|
|
7902
|
-
assetId:
|
|
7903
|
-
assetUrl:
|
|
7920
|
+
assetId: z269.string(),
|
|
7921
|
+
assetUrl: z269.string(),
|
|
7904
7922
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7905
7923
|
// Asset metadata
|
|
7906
|
-
assetScale:
|
|
7907
|
-
assetWidth:
|
|
7908
|
-
assetHeight:
|
|
7924
|
+
assetScale: z269.number(),
|
|
7925
|
+
assetWidth: z269.number().optional(),
|
|
7926
|
+
assetHeight: z269.number().optional()
|
|
7909
7927
|
});
|
|
7910
7928
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7911
7929
|
data: true,
|
|
@@ -7916,15 +7934,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7916
7934
|
});
|
|
7917
7935
|
|
|
7918
7936
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7919
|
-
import { z as
|
|
7920
|
-
var DTOFigmaNodeDataV2 =
|
|
7921
|
-
sceneNodeId:
|
|
7937
|
+
import { z as z270 } from "zod";
|
|
7938
|
+
var DTOFigmaNodeDataV2 = z270.object({
|
|
7939
|
+
sceneNodeId: z270.string(),
|
|
7922
7940
|
format: FigmaNodeRenderFormat,
|
|
7923
|
-
scale:
|
|
7941
|
+
scale: z270.number().optional(),
|
|
7924
7942
|
renderState: FigmaNodeRenderState,
|
|
7925
7943
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7926
7944
|
renderError: FigmaNodeRenderError.optional(),
|
|
7927
|
-
hasSource:
|
|
7945
|
+
hasSource: z270.boolean()
|
|
7928
7946
|
});
|
|
7929
7947
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7930
7948
|
data: true,
|
|
@@ -7935,113 +7953,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7935
7953
|
});
|
|
7936
7954
|
|
|
7937
7955
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7938
|
-
import { z as
|
|
7939
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7940
|
-
type:
|
|
7941
|
-
figmaNodes:
|
|
7956
|
+
import { z as z271 } from "zod";
|
|
7957
|
+
var DTOFigmaNodeRenderActionOutput = z271.object({
|
|
7958
|
+
type: z271.literal("FigmaNodeRender"),
|
|
7959
|
+
figmaNodes: z271.array(DTOFigmaNode)
|
|
7942
7960
|
});
|
|
7943
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7944
|
-
type:
|
|
7945
|
-
figmaNodes:
|
|
7961
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z271.object({
|
|
7962
|
+
type: z271.literal("FigmaNodeRenderAsync"),
|
|
7963
|
+
figmaNodes: z271.array(DTOFigmaNodeV2)
|
|
7946
7964
|
});
|
|
7947
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7948
|
-
type:
|
|
7965
|
+
var DTOFigmaNodeRenderActionInput = z271.object({
|
|
7966
|
+
type: z271.literal("FigmaNodeRender"),
|
|
7949
7967
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7950
7968
|
});
|
|
7951
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7952
|
-
type:
|
|
7969
|
+
var DTOFigmaNodeRenderAsyncActionInput = z271.object({
|
|
7970
|
+
type: z271.literal("FigmaNodeRenderAsync"),
|
|
7953
7971
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7954
7972
|
});
|
|
7955
7973
|
|
|
7956
7974
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
7957
|
-
import { z as
|
|
7958
|
-
var DTOFrameNodeStructure =
|
|
7959
|
-
id:
|
|
7960
|
-
persistentId:
|
|
7961
|
-
designSystemVersionId:
|
|
7975
|
+
import { z as z272 } from "zod";
|
|
7976
|
+
var DTOFrameNodeStructure = z272.object({
|
|
7977
|
+
id: z272.string(),
|
|
7978
|
+
persistentId: z272.string(),
|
|
7979
|
+
designSystemVersionId: z272.string(),
|
|
7962
7980
|
origin: FigmaFileStructureOrigin,
|
|
7963
7981
|
assetsInFile: FigmaFileStructureStatistics
|
|
7964
7982
|
});
|
|
7965
|
-
var DTOFrameNodeStructureListResponse =
|
|
7983
|
+
var DTOFrameNodeStructureListResponse = z272.object({
|
|
7966
7984
|
structures: DTOFrameNodeStructure.array()
|
|
7967
7985
|
});
|
|
7968
7986
|
|
|
7969
7987
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
7970
|
-
import { z as
|
|
7988
|
+
import { z as z273 } from "zod";
|
|
7971
7989
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
7972
|
-
var DTOElementPropertyDefinitionOption =
|
|
7973
|
-
id:
|
|
7974
|
-
name:
|
|
7990
|
+
var DTOElementPropertyDefinitionOption = z273.object({
|
|
7991
|
+
id: z273.string(),
|
|
7992
|
+
name: z273.string(),
|
|
7975
7993
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
7976
7994
|
});
|
|
7977
|
-
var DTOElementPropertyDefinition =
|
|
7978
|
-
id:
|
|
7979
|
-
designSystemVersionId:
|
|
7995
|
+
var DTOElementPropertyDefinition = z273.object({
|
|
7996
|
+
id: z273.string(),
|
|
7997
|
+
designSystemVersionId: z273.string(),
|
|
7980
7998
|
meta: DTOObjectMeta,
|
|
7981
|
-
persistentId:
|
|
7999
|
+
persistentId: z273.string(),
|
|
7982
8000
|
type: ElementPropertyTypeSchema,
|
|
7983
8001
|
targetElementType: ElementPropertyTargetType,
|
|
7984
|
-
codeName:
|
|
7985
|
-
options: nullishToOptional(
|
|
8002
|
+
codeName: z273.string().regex(CODE_NAME_REGEX2),
|
|
8003
|
+
options: nullishToOptional(z273.array(DTOElementPropertyDefinitionOption)),
|
|
7986
8004
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7987
|
-
isImmutable:
|
|
8005
|
+
isImmutable: z273.boolean(),
|
|
7988
8006
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
7989
8007
|
});
|
|
7990
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
7991
|
-
definitions:
|
|
8008
|
+
var DTOElementPropertyDefinitionListResponse = z273.object({
|
|
8009
|
+
definitions: z273.array(DTOElementPropertyDefinition)
|
|
7992
8010
|
});
|
|
7993
|
-
var DTOElementPropertyDefinitionResponse =
|
|
8011
|
+
var DTOElementPropertyDefinitionResponse = z273.object({
|
|
7994
8012
|
definition: DTOElementPropertyDefinition
|
|
7995
8013
|
});
|
|
7996
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
8014
|
+
var DTOElementPropertyDefinitionCreatePayload = z273.object({
|
|
7997
8015
|
meta: DTOObjectMeta,
|
|
7998
|
-
persistentId:
|
|
8016
|
+
persistentId: z273.string(),
|
|
7999
8017
|
type: ElementPropertyTypeSchema,
|
|
8000
8018
|
targetElementType: ElementPropertyTargetType,
|
|
8001
|
-
codeName:
|
|
8002
|
-
options: nullishToOptional(
|
|
8019
|
+
codeName: z273.string().regex(CODE_NAME_REGEX2),
|
|
8020
|
+
options: nullishToOptional(z273.array(DTOElementPropertyDefinitionOption)),
|
|
8003
8021
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8004
|
-
columnWidth:
|
|
8022
|
+
columnWidth: z273.number().max(1024).optional()
|
|
8005
8023
|
});
|
|
8006
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
8024
|
+
var DTOElementPropertyDefinitionUpdatePayload = z273.object({
|
|
8007
8025
|
meta: DTOObjectMeta.optional(),
|
|
8008
|
-
codeName:
|
|
8009
|
-
options:
|
|
8026
|
+
codeName: z273.string().regex(CODE_NAME_REGEX2).optional(),
|
|
8027
|
+
options: z273.array(DTOElementPropertyDefinitionOption).optional()
|
|
8010
8028
|
});
|
|
8011
8029
|
|
|
8012
8030
|
// src/api/dto/elements/properties/property-values.ts
|
|
8013
|
-
import { z as
|
|
8014
|
-
var DTOElementPropertyValue =
|
|
8015
|
-
id:
|
|
8016
|
-
designSystemVersionId:
|
|
8017
|
-
definitionId:
|
|
8018
|
-
targetElementId:
|
|
8019
|
-
value:
|
|
8020
|
-
valuePreview:
|
|
8021
|
-
});
|
|
8022
|
-
var DTOElementPropertyValueListResponse =
|
|
8023
|
-
values:
|
|
8024
|
-
});
|
|
8025
|
-
var DTOElementPropertyValueResponse =
|
|
8031
|
+
import { z as z274 } from "zod";
|
|
8032
|
+
var DTOElementPropertyValue = z274.object({
|
|
8033
|
+
id: z274.string(),
|
|
8034
|
+
designSystemVersionId: z274.string(),
|
|
8035
|
+
definitionId: z274.string(),
|
|
8036
|
+
targetElementId: z274.string(),
|
|
8037
|
+
value: z274.union([z274.string(), z274.number(), z274.boolean()]).optional(),
|
|
8038
|
+
valuePreview: z274.string().optional()
|
|
8039
|
+
});
|
|
8040
|
+
var DTOElementPropertyValueListResponse = z274.object({
|
|
8041
|
+
values: z274.array(DTOElementPropertyValue)
|
|
8042
|
+
});
|
|
8043
|
+
var DTOElementPropertyValueResponse = z274.object({
|
|
8026
8044
|
value: DTOElementPropertyValue
|
|
8027
8045
|
});
|
|
8028
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
8029
|
-
type:
|
|
8030
|
-
output:
|
|
8046
|
+
var DTOElementPropertyValuesEditActionOutput = z274.object({
|
|
8047
|
+
type: z274.literal("ElementPropertyValuesEdit"),
|
|
8048
|
+
output: z274.object({ success: z274.literal(true) })
|
|
8031
8049
|
});
|
|
8032
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
8033
|
-
definitionId:
|
|
8034
|
-
targetElementId:
|
|
8035
|
-
value:
|
|
8050
|
+
var DTOElementPropertyValueUpsertPaylod = z274.object({
|
|
8051
|
+
definitionId: z274.string(),
|
|
8052
|
+
targetElementId: z274.string(),
|
|
8053
|
+
value: z274.string().or(z274.number()).or(z274.boolean()).nullable()
|
|
8036
8054
|
});
|
|
8037
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
8038
|
-
type:
|
|
8055
|
+
var DTOElementPropertyValuesEditActionInput = z274.object({
|
|
8056
|
+
type: z274.literal("ElementPropertyValuesEdit"),
|
|
8039
8057
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
8040
8058
|
});
|
|
8041
8059
|
|
|
8042
8060
|
// src/api/dto/elements/elements-action-v2.ts
|
|
8043
|
-
import { z as
|
|
8044
|
-
var DTOElementActionOutput =
|
|
8061
|
+
import { z as z275 } from "zod";
|
|
8062
|
+
var DTOElementActionOutput = z275.discriminatedUnion("type", [
|
|
8045
8063
|
// Documentation pages
|
|
8046
8064
|
DTODocumentationPageCreateActionOutputV2,
|
|
8047
8065
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -8068,7 +8086,7 @@ var DTOElementActionOutput = z274.discriminatedUnion("type", [
|
|
|
8068
8086
|
// Element properties
|
|
8069
8087
|
DTOElementPropertyValuesEditActionOutput
|
|
8070
8088
|
]);
|
|
8071
|
-
var DTOElementActionInput =
|
|
8089
|
+
var DTOElementActionInput = z275.discriminatedUnion("type", [
|
|
8072
8090
|
// Documentation pages
|
|
8073
8091
|
DTODocumentationPageCreateActionInputV2,
|
|
8074
8092
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -8095,90 +8113,90 @@ var DTOElementActionInput = z274.discriminatedUnion("type", [
|
|
|
8095
8113
|
// Element properties
|
|
8096
8114
|
DTOElementPropertyValuesEditActionInput
|
|
8097
8115
|
]).and(
|
|
8098
|
-
|
|
8099
|
-
tId:
|
|
8116
|
+
z275.object({
|
|
8117
|
+
tId: z275.string().optional()
|
|
8100
8118
|
})
|
|
8101
8119
|
);
|
|
8102
8120
|
|
|
8103
8121
|
// src/api/dto/elements/get-elements-v2.ts
|
|
8104
|
-
import { z as
|
|
8105
|
-
var DTOElementsGetTypeFilter =
|
|
8106
|
-
var DTOElementsGetQuerySchema =
|
|
8107
|
-
types:
|
|
8108
|
-
responseVersion:
|
|
8122
|
+
import { z as z276 } from "zod";
|
|
8123
|
+
var DTOElementsGetTypeFilter = z276.enum(["FigmaNode"]);
|
|
8124
|
+
var DTOElementsGetQuerySchema = z276.object({
|
|
8125
|
+
types: z276.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
8126
|
+
responseVersion: z276.coerce.number().default(1)
|
|
8109
8127
|
});
|
|
8110
|
-
var DTOElementsGetOutput =
|
|
8111
|
-
figmaNodes:
|
|
8128
|
+
var DTOElementsGetOutput = z276.object({
|
|
8129
|
+
figmaNodes: z276.array(DTOFigmaNode).optional()
|
|
8112
8130
|
});
|
|
8113
|
-
var DTOElementsGetOutputV2 =
|
|
8114
|
-
figmaNodes:
|
|
8131
|
+
var DTOElementsGetOutputV2 = z276.object({
|
|
8132
|
+
figmaNodes: z276.array(DTOFigmaNodeV2).optional()
|
|
8115
8133
|
});
|
|
8116
8134
|
|
|
8117
8135
|
// src/api/dto/figma-components/assets/download.ts
|
|
8118
|
-
import { z as
|
|
8119
|
-
var DTOAssetRenderConfiguration =
|
|
8120
|
-
prefix:
|
|
8121
|
-
suffix:
|
|
8122
|
-
scale:
|
|
8123
|
-
format:
|
|
8124
|
-
});
|
|
8125
|
-
var DTORenderedAssetFile =
|
|
8126
|
-
assetId:
|
|
8127
|
-
fileName:
|
|
8128
|
-
sourceUrl:
|
|
8136
|
+
import { z as z277 } from "zod";
|
|
8137
|
+
var DTOAssetRenderConfiguration = z277.object({
|
|
8138
|
+
prefix: z277.string().optional(),
|
|
8139
|
+
suffix: z277.string().optional(),
|
|
8140
|
+
scale: z277.enum(["x1", "x2", "x3", "x4"]),
|
|
8141
|
+
format: z277.enum(["png", "pdf", "svg"])
|
|
8142
|
+
});
|
|
8143
|
+
var DTORenderedAssetFile = z277.object({
|
|
8144
|
+
assetId: z277.string(),
|
|
8145
|
+
fileName: z277.string(),
|
|
8146
|
+
sourceUrl: z277.string(),
|
|
8129
8147
|
settings: DTOAssetRenderConfiguration,
|
|
8130
|
-
originalName:
|
|
8148
|
+
originalName: z277.string()
|
|
8131
8149
|
});
|
|
8132
|
-
var DTODownloadAssetsRequest =
|
|
8133
|
-
persistentIds:
|
|
8150
|
+
var DTODownloadAssetsRequest = z277.object({
|
|
8151
|
+
persistentIds: z277.array(z277.string().uuid()).optional(),
|
|
8134
8152
|
settings: DTOAssetRenderConfiguration.array()
|
|
8135
8153
|
});
|
|
8136
|
-
var DTODownloadAssetsResponse =
|
|
8154
|
+
var DTODownloadAssetsResponse = z277.object({
|
|
8137
8155
|
items: DTORenderedAssetFile.array()
|
|
8138
8156
|
});
|
|
8139
8157
|
|
|
8140
8158
|
// src/api/dto/liveblocks/auth-response.ts
|
|
8141
|
-
import { z as
|
|
8142
|
-
var DTOLiveblocksAuthResponse =
|
|
8143
|
-
token:
|
|
8159
|
+
import { z as z278 } from "zod";
|
|
8160
|
+
var DTOLiveblocksAuthResponse = z278.object({
|
|
8161
|
+
token: z278.string()
|
|
8144
8162
|
});
|
|
8145
8163
|
|
|
8146
8164
|
// src/api/dto/themes/override.ts
|
|
8147
|
-
import { z as
|
|
8165
|
+
import { z as z279 } from "zod";
|
|
8148
8166
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
8149
|
-
|
|
8150
|
-
tokenPersistentId:
|
|
8167
|
+
z279.object({
|
|
8168
|
+
tokenPersistentId: z279.string(),
|
|
8151
8169
|
origin: ThemeOverrideOrigin.optional()
|
|
8152
8170
|
})
|
|
8153
8171
|
);
|
|
8154
8172
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
8155
|
-
|
|
8156
|
-
tokenPersistentId:
|
|
8173
|
+
z279.object({
|
|
8174
|
+
tokenPersistentId: z279.string()
|
|
8157
8175
|
})
|
|
8158
8176
|
);
|
|
8159
8177
|
|
|
8160
8178
|
// src/api/dto/themes/theme.ts
|
|
8161
|
-
import { z as
|
|
8162
|
-
var DTOTheme =
|
|
8163
|
-
id:
|
|
8164
|
-
persistentId:
|
|
8165
|
-
designSystemVersionId:
|
|
8166
|
-
brandId:
|
|
8179
|
+
import { z as z280 } from "zod";
|
|
8180
|
+
var DTOTheme = z280.object({
|
|
8181
|
+
id: z280.string(),
|
|
8182
|
+
persistentId: z280.string(),
|
|
8183
|
+
designSystemVersionId: z280.string(),
|
|
8184
|
+
brandId: z280.string(),
|
|
8167
8185
|
meta: ObjectMeta,
|
|
8168
|
-
codeName:
|
|
8186
|
+
codeName: z280.string(),
|
|
8169
8187
|
overrides: DTOThemeOverride.array()
|
|
8170
8188
|
});
|
|
8171
|
-
var DTOThemeResponse =
|
|
8189
|
+
var DTOThemeResponse = z280.object({
|
|
8172
8190
|
theme: DTOTheme
|
|
8173
8191
|
});
|
|
8174
|
-
var DTOThemeListResponse =
|
|
8192
|
+
var DTOThemeListResponse = z280.object({
|
|
8175
8193
|
themes: DTOTheme.array()
|
|
8176
8194
|
});
|
|
8177
|
-
var DTOThemeCreatePayload =
|
|
8195
|
+
var DTOThemeCreatePayload = z280.object({
|
|
8178
8196
|
meta: ObjectMeta,
|
|
8179
|
-
persistentId:
|
|
8180
|
-
brandId:
|
|
8181
|
-
codeName:
|
|
8197
|
+
persistentId: z280.string(),
|
|
8198
|
+
brandId: z280.string(),
|
|
8199
|
+
codeName: z280.string(),
|
|
8182
8200
|
overrides: DTOThemeOverride.array()
|
|
8183
8201
|
});
|
|
8184
8202
|
|
|
@@ -8414,13 +8432,13 @@ var ExportersEndpoint = class {
|
|
|
8414
8432
|
};
|
|
8415
8433
|
|
|
8416
8434
|
// src/api/endpoints/codegen/jobs.ts
|
|
8417
|
-
import { z as
|
|
8435
|
+
import { z as z281 } from "zod";
|
|
8418
8436
|
var ExporterJobsEndpoint = class {
|
|
8419
8437
|
constructor(requestExecutor) {
|
|
8420
8438
|
this.requestExecutor = requestExecutor;
|
|
8421
8439
|
}
|
|
8422
8440
|
list(workspaceId) {
|
|
8423
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
8441
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z281.any());
|
|
8424
8442
|
}
|
|
8425
8443
|
get(workspaceId, jobId) {
|
|
8426
8444
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -8478,7 +8496,7 @@ var CodegenEndpoint = class {
|
|
|
8478
8496
|
};
|
|
8479
8497
|
|
|
8480
8498
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
8481
|
-
import { z as
|
|
8499
|
+
import { z as z282 } from "zod";
|
|
8482
8500
|
var BrandsEndpoint = class {
|
|
8483
8501
|
constructor(requestExecutor) {
|
|
8484
8502
|
this.requestExecutor = requestExecutor;
|
|
@@ -8512,7 +8530,7 @@ var BrandsEndpoint = class {
|
|
|
8512
8530
|
});
|
|
8513
8531
|
}
|
|
8514
8532
|
delete(dsId, vId, brandId) {
|
|
8515
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
8533
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z282.any(), {
|
|
8516
8534
|
method: "DELETE"
|
|
8517
8535
|
});
|
|
8518
8536
|
}
|
|
@@ -8589,6 +8607,16 @@ var DocumentationEndpoint = class {
|
|
|
8589
8607
|
DTOGetBlockDefinitionsOutput
|
|
8590
8608
|
);
|
|
8591
8609
|
}
|
|
8610
|
+
async publish(dsId, vId, body) {
|
|
8611
|
+
return await this.requestExecutor.json(
|
|
8612
|
+
`/design-systems/${dsId}/versions/${vId}/documentation/publish`,
|
|
8613
|
+
DTOPublishDocumentationResponse,
|
|
8614
|
+
{
|
|
8615
|
+
method: "POST",
|
|
8616
|
+
body
|
|
8617
|
+
}
|
|
8618
|
+
);
|
|
8619
|
+
}
|
|
8592
8620
|
};
|
|
8593
8621
|
|
|
8594
8622
|
// src/api/endpoints/design-system/versions/ds-components.ts
|
|
@@ -8735,7 +8763,7 @@ var ImportJobsEndpoint = class {
|
|
|
8735
8763
|
};
|
|
8736
8764
|
|
|
8737
8765
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
8738
|
-
import { z as
|
|
8766
|
+
import { z as z283 } from "zod";
|
|
8739
8767
|
var OverridesEndpoint = class {
|
|
8740
8768
|
constructor(requestExecutor) {
|
|
8741
8769
|
this.requestExecutor = requestExecutor;
|
|
@@ -8743,7 +8771,7 @@ var OverridesEndpoint = class {
|
|
|
8743
8771
|
create(dsId, versionId, themeId, body) {
|
|
8744
8772
|
return this.requestExecutor.json(
|
|
8745
8773
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
8746
|
-
|
|
8774
|
+
z283.any(),
|
|
8747
8775
|
{
|
|
8748
8776
|
method: "POST",
|
|
8749
8777
|
body
|
|
@@ -8753,7 +8781,7 @@ var OverridesEndpoint = class {
|
|
|
8753
8781
|
};
|
|
8754
8782
|
|
|
8755
8783
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
8756
|
-
import { z as
|
|
8784
|
+
import { z as z284 } from "zod";
|
|
8757
8785
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
8758
8786
|
constructor(requestExecutor) {
|
|
8759
8787
|
this.requestExecutor = requestExecutor;
|
|
@@ -8781,7 +8809,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
8781
8809
|
delete(designSystemId, versionId, defId) {
|
|
8782
8810
|
return this.requestExecutor.json(
|
|
8783
8811
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
8784
|
-
|
|
8812
|
+
z284.any(),
|
|
8785
8813
|
{ method: "DELETE" }
|
|
8786
8814
|
);
|
|
8787
8815
|
}
|
|
@@ -8820,7 +8848,7 @@ var VersionStatsEndpoint = class {
|
|
|
8820
8848
|
};
|
|
8821
8849
|
|
|
8822
8850
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
8823
|
-
import { z as
|
|
8851
|
+
import { z as z285 } from "zod";
|
|
8824
8852
|
var ThemesEndpoint = class {
|
|
8825
8853
|
constructor(requestExecutor) {
|
|
8826
8854
|
this.requestExecutor = requestExecutor;
|
|
@@ -8843,7 +8871,7 @@ var ThemesEndpoint = class {
|
|
|
8843
8871
|
});
|
|
8844
8872
|
}
|
|
8845
8873
|
delete(dsId, versionId, themeId) {
|
|
8846
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
8874
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z285.any(), {
|
|
8847
8875
|
method: "DELETE"
|
|
8848
8876
|
});
|
|
8849
8877
|
}
|
|
@@ -9012,7 +9040,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
9012
9040
|
};
|
|
9013
9041
|
|
|
9014
9042
|
// src/api/endpoints/design-system/design-systems.ts
|
|
9015
|
-
import { z as
|
|
9043
|
+
import { z as z289 } from "zod";
|
|
9016
9044
|
|
|
9017
9045
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
9018
9046
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -9089,7 +9117,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
9089
9117
|
};
|
|
9090
9118
|
|
|
9091
9119
|
// src/api/endpoints/design-system/sources.ts
|
|
9092
|
-
import { z as
|
|
9120
|
+
import { z as z286 } from "zod";
|
|
9093
9121
|
var DesignSystemSourcesEndpoint = class {
|
|
9094
9122
|
constructor(requestExecutor) {
|
|
9095
9123
|
this.requestExecutor = requestExecutor;
|
|
@@ -9107,7 +9135,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
9107
9135
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
9108
9136
|
}
|
|
9109
9137
|
delete(dsId, sourceId) {
|
|
9110
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
9138
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z286.any(), { method: "DELETE" });
|
|
9111
9139
|
}
|
|
9112
9140
|
figmaImport(dsId, payload) {
|
|
9113
9141
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -9138,7 +9166,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
9138
9166
|
};
|
|
9139
9167
|
|
|
9140
9168
|
// src/api/endpoints/design-system/storybook.ts
|
|
9141
|
-
import { z as
|
|
9169
|
+
import { z as z287 } from "zod";
|
|
9142
9170
|
var StorybookEntriesEndpoint = class {
|
|
9143
9171
|
constructor(requestExecutor) {
|
|
9144
9172
|
this.requestExecutor = requestExecutor;
|
|
@@ -9154,14 +9182,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
9154
9182
|
);
|
|
9155
9183
|
}
|
|
9156
9184
|
delete(dsId, entryId) {
|
|
9157
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
9185
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z287.any(), {
|
|
9158
9186
|
method: "DELETE"
|
|
9159
9187
|
});
|
|
9160
9188
|
}
|
|
9161
9189
|
};
|
|
9162
9190
|
|
|
9163
9191
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
9164
|
-
import { z as
|
|
9192
|
+
import { z as z288 } from "zod";
|
|
9165
9193
|
var StorybookHostingEndpoint = class {
|
|
9166
9194
|
constructor(requestExecutor) {
|
|
9167
9195
|
this.requestExecutor = requestExecutor;
|
|
@@ -9175,7 +9203,7 @@ var StorybookHostingEndpoint = class {
|
|
|
9175
9203
|
delete(dsId, storybookUploadId) {
|
|
9176
9204
|
return this.requestExecutor.json(
|
|
9177
9205
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
9178
|
-
|
|
9206
|
+
z288.object({ ok: z288.boolean() }),
|
|
9179
9207
|
{
|
|
9180
9208
|
method: "DELETE"
|
|
9181
9209
|
}
|
|
@@ -9233,7 +9261,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9233
9261
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
9234
9262
|
}
|
|
9235
9263
|
delete(dsId) {
|
|
9236
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
9264
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z289.any(), { method: "DELETE" });
|
|
9237
9265
|
}
|
|
9238
9266
|
update(dsId, body) {
|
|
9239
9267
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -9250,7 +9278,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9250
9278
|
};
|
|
9251
9279
|
|
|
9252
9280
|
// src/api/endpoints/workspaces/integrations.ts
|
|
9253
|
-
import { z as
|
|
9281
|
+
import { z as z290 } from "zod";
|
|
9254
9282
|
var WorkspaceIntegrationsEndpoint = class {
|
|
9255
9283
|
constructor(requestExecutor) {
|
|
9256
9284
|
this.requestExecutor = requestExecutor;
|
|
@@ -9259,7 +9287,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
9259
9287
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
9260
9288
|
}
|
|
9261
9289
|
delete(wsId, iId) {
|
|
9262
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
9290
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z290.unknown(), { method: "DELETE" });
|
|
9263
9291
|
}
|
|
9264
9292
|
};
|
|
9265
9293
|
|
|
@@ -9291,7 +9319,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
9291
9319
|
};
|
|
9292
9320
|
|
|
9293
9321
|
// src/api/endpoints/workspaces/members.ts
|
|
9294
|
-
import { z as
|
|
9322
|
+
import { z as z291 } from "zod";
|
|
9295
9323
|
var WorkspaceMembersEndpoint = class {
|
|
9296
9324
|
constructor(requestExecutor) {
|
|
9297
9325
|
this.requestExecutor = requestExecutor;
|
|
@@ -9308,7 +9336,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
9308
9336
|
});
|
|
9309
9337
|
}
|
|
9310
9338
|
invite(workspaceId, body) {
|
|
9311
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
9339
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z291.any(), { method: "POST", body });
|
|
9312
9340
|
}
|
|
9313
9341
|
delete(workspaceId, userId) {
|
|
9314
9342
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -9337,7 +9365,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
9337
9365
|
};
|
|
9338
9366
|
|
|
9339
9367
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
9340
|
-
import { z as
|
|
9368
|
+
import { z as z292 } from "zod";
|
|
9341
9369
|
var WorkspacesEndpoint = class {
|
|
9342
9370
|
constructor(requestExecutor) {
|
|
9343
9371
|
this.requestExecutor = requestExecutor;
|
|
@@ -9367,10 +9395,10 @@ var WorkspacesEndpoint = class {
|
|
|
9367
9395
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
9368
9396
|
}
|
|
9369
9397
|
delete(workspaceId) {
|
|
9370
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
9398
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z292.any(), { method: "DELETE" });
|
|
9371
9399
|
}
|
|
9372
9400
|
subscription(workspaceId) {
|
|
9373
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
9401
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z292.any(), { method: "GET" });
|
|
9374
9402
|
}
|
|
9375
9403
|
transferOwnership(workspaceId, body) {
|
|
9376
9404
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -9470,9 +9498,9 @@ ${bodyText}`,
|
|
|
9470
9498
|
|
|
9471
9499
|
// src/api/transport/request-executor.ts
|
|
9472
9500
|
import fetch from "node-fetch";
|
|
9473
|
-
import { z as
|
|
9474
|
-
var ResponseWrapper =
|
|
9475
|
-
result:
|
|
9501
|
+
import { z as z293 } from "zod";
|
|
9502
|
+
var ResponseWrapper = z293.object({
|
|
9503
|
+
result: z293.record(z293.any())
|
|
9476
9504
|
});
|
|
9477
9505
|
var RequestExecutor = class {
|
|
9478
9506
|
constructor(testServerConfig) {
|
|
@@ -9546,31 +9574,31 @@ var SupernovaApiClient = class {
|
|
|
9546
9574
|
};
|
|
9547
9575
|
|
|
9548
9576
|
// src/events/design-system.ts
|
|
9549
|
-
import { z as
|
|
9550
|
-
var DTOEventFigmaNodesRendered =
|
|
9551
|
-
type:
|
|
9552
|
-
designSystemId:
|
|
9553
|
-
versionId:
|
|
9554
|
-
figmaNodePersistentIds:
|
|
9555
|
-
});
|
|
9556
|
-
var DTOEventDataSourcesImported =
|
|
9557
|
-
type:
|
|
9558
|
-
designSystemId:
|
|
9559
|
-
versionId:
|
|
9560
|
-
importJobId:
|
|
9577
|
+
import { z as z294 } from "zod";
|
|
9578
|
+
var DTOEventFigmaNodesRendered = z294.object({
|
|
9579
|
+
type: z294.literal("DesignSystem.FigmaNodesRendered"),
|
|
9580
|
+
designSystemId: z294.string(),
|
|
9581
|
+
versionId: z294.string(),
|
|
9582
|
+
figmaNodePersistentIds: z294.string().array()
|
|
9583
|
+
});
|
|
9584
|
+
var DTOEventDataSourcesImported = z294.object({
|
|
9585
|
+
type: z294.literal("DesignSystem.ImportJobFinished"),
|
|
9586
|
+
designSystemId: z294.string(),
|
|
9587
|
+
versionId: z294.string(),
|
|
9588
|
+
importJobId: z294.string(),
|
|
9561
9589
|
dataSourceType: DataSourceRemoteType,
|
|
9562
|
-
dataSourceIds:
|
|
9590
|
+
dataSourceIds: z294.string().array()
|
|
9563
9591
|
});
|
|
9564
9592
|
|
|
9565
9593
|
// src/events/event.ts
|
|
9566
|
-
import { z as
|
|
9567
|
-
var DTOEvent =
|
|
9594
|
+
import { z as z295 } from "zod";
|
|
9595
|
+
var DTOEvent = z295.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
9568
9596
|
|
|
9569
9597
|
// src/sync/docs-structure-repo.ts
|
|
9570
9598
|
import PQueue from "p-queue";
|
|
9571
9599
|
|
|
9572
9600
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9573
|
-
import { z as
|
|
9601
|
+
import { z as z296 } from "zod";
|
|
9574
9602
|
|
|
9575
9603
|
// src/yjs/version-room/base.ts
|
|
9576
9604
|
var VersionRoomBaseYDoc = class {
|
|
@@ -10120,24 +10148,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
10120
10148
|
};
|
|
10121
10149
|
|
|
10122
10150
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
10123
|
-
var DocumentationHierarchySettings =
|
|
10124
|
-
routingVersion:
|
|
10125
|
-
isDraftFeatureAdopted:
|
|
10126
|
-
isApprovalFeatureEnabled:
|
|
10127
|
-
approvalRequiredForPublishing:
|
|
10151
|
+
var DocumentationHierarchySettings = z296.object({
|
|
10152
|
+
routingVersion: z296.string(),
|
|
10153
|
+
isDraftFeatureAdopted: z296.boolean(),
|
|
10154
|
+
isApprovalFeatureEnabled: z296.boolean(),
|
|
10155
|
+
approvalRequiredForPublishing: z296.boolean()
|
|
10128
10156
|
});
|
|
10129
10157
|
function yjsToDocumentationHierarchy(doc) {
|
|
10130
10158
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
10131
10159
|
}
|
|
10132
10160
|
|
|
10133
10161
|
// src/yjs/design-system-content/item-configuration.ts
|
|
10134
|
-
import { z as
|
|
10135
|
-
var DTODocumentationPageRoomHeaderData =
|
|
10136
|
-
title:
|
|
10162
|
+
import { z as z297 } from "zod";
|
|
10163
|
+
var DTODocumentationPageRoomHeaderData = z297.object({
|
|
10164
|
+
title: z297.string(),
|
|
10137
10165
|
configuration: DTODocumentationItemConfigurationV2
|
|
10138
10166
|
});
|
|
10139
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
10140
|
-
title:
|
|
10167
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z297.object({
|
|
10168
|
+
title: z297.string().optional(),
|
|
10141
10169
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
10142
10170
|
});
|
|
10143
10171
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -10172,9 +10200,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
10172
10200
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
10173
10201
|
|
|
10174
10202
|
// src/yjs/docs-editor/model/page.ts
|
|
10175
|
-
import { z as
|
|
10176
|
-
var DocumentationPageEditorModel =
|
|
10177
|
-
blocks:
|
|
10203
|
+
import { z as z298 } from "zod";
|
|
10204
|
+
var DocumentationPageEditorModel = z298.object({
|
|
10205
|
+
blocks: z298.array(DocumentationPageContentItem)
|
|
10178
10206
|
});
|
|
10179
10207
|
|
|
10180
10208
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -13767,7 +13795,7 @@ var blocks = [
|
|
|
13767
13795
|
|
|
13768
13796
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
13769
13797
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
13770
|
-
import { z as
|
|
13798
|
+
import { z as z299 } from "zod";
|
|
13771
13799
|
function yDocToPage(yDoc, definitions) {
|
|
13772
13800
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
13773
13801
|
}
|
|
@@ -13843,7 +13871,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
13843
13871
|
if (!id) return null;
|
|
13844
13872
|
return {
|
|
13845
13873
|
id,
|
|
13846
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
13874
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z299.string()) ?? "",
|
|
13847
13875
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
13848
13876
|
};
|
|
13849
13877
|
}
|
|
@@ -13877,7 +13905,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
13877
13905
|
});
|
|
13878
13906
|
}
|
|
13879
13907
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
13880
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
13908
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z299.string());
|
|
13881
13909
|
if (!definitionId) {
|
|
13882
13910
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
13883
13911
|
return [];
|
|
@@ -13918,7 +13946,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
13918
13946
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13919
13947
|
if (!id) return null;
|
|
13920
13948
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13921
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
13949
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z299.string().optional()));
|
|
13922
13950
|
return {
|
|
13923
13951
|
id,
|
|
13924
13952
|
type: "Block",
|
|
@@ -14041,9 +14069,9 @@ function parseRichTextAttribute(mark) {
|
|
|
14041
14069
|
return null;
|
|
14042
14070
|
}
|
|
14043
14071
|
function parseProsemirrorLink(mark) {
|
|
14044
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
14072
|
+
const href = getProsemirrorAttribute(mark, "href", z299.string().optional());
|
|
14045
14073
|
if (!href) return null;
|
|
14046
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
14074
|
+
const target = getProsemirrorAttribute(mark, "target", z299.string().optional());
|
|
14047
14075
|
const openInNewTab = target === "_blank";
|
|
14048
14076
|
if (href.startsWith("@")) {
|
|
14049
14077
|
return {
|
|
@@ -14062,9 +14090,9 @@ function parseProsemirrorLink(mark) {
|
|
|
14062
14090
|
}
|
|
14063
14091
|
}
|
|
14064
14092
|
function parseProsemirrorCommentHighlight(mark) {
|
|
14065
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
14093
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z299.string().optional());
|
|
14066
14094
|
if (!highlightId) return null;
|
|
14067
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
14095
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z299.boolean().optional()) ?? false;
|
|
14068
14096
|
return {
|
|
14069
14097
|
type: "Comment",
|
|
14070
14098
|
commentHighlightId: highlightId,
|
|
@@ -14075,7 +14103,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
14075
14103
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
14076
14104
|
if (!id) return null;
|
|
14077
14105
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
14078
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
14106
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z299.boolean().optional()) !== false;
|
|
14079
14107
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
14080
14108
|
if (!tableChild) {
|
|
14081
14109
|
return emptyTable(id, variantId, 0);
|
|
@@ -14121,9 +14149,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
14121
14149
|
function parseAsTableCell(prosemirrorNode) {
|
|
14122
14150
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
14123
14151
|
if (!id) return null;
|
|
14124
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
14152
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z299.string().optional());
|
|
14125
14153
|
let columnWidth;
|
|
14126
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
14154
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z299.array(z299.number()).nullish());
|
|
14127
14155
|
if (columnWidthArray) {
|
|
14128
14156
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
14129
14157
|
}
|
|
@@ -14159,7 +14187,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
14159
14187
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
14160
14188
|
};
|
|
14161
14189
|
case "image":
|
|
14162
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14190
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z299.string());
|
|
14163
14191
|
if (!items) return null;
|
|
14164
14192
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
14165
14193
|
if (!parsedItems.success) return null;
|
|
@@ -14273,7 +14301,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
14273
14301
|
);
|
|
14274
14302
|
}
|
|
14275
14303
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
14276
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14304
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z299.string());
|
|
14277
14305
|
if (!itemsString) return null;
|
|
14278
14306
|
const itemsJson = JSON.parse(itemsString);
|
|
14279
14307
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -14284,18 +14312,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
14284
14312
|
}
|
|
14285
14313
|
function parseAppearance(prosemirrorNode) {
|
|
14286
14314
|
let appearance = {};
|
|
14287
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
14315
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z299.string().optional());
|
|
14288
14316
|
if (rawAppearanceString) {
|
|
14289
14317
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
14290
14318
|
if (parsedAppearance.success) {
|
|
14291
14319
|
appearance = parsedAppearance.data;
|
|
14292
14320
|
}
|
|
14293
14321
|
}
|
|
14294
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
14322
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z299.number().optional());
|
|
14295
14323
|
if (columns) {
|
|
14296
14324
|
appearance.numberOfColumns = columns;
|
|
14297
14325
|
}
|
|
14298
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
14326
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z299.string().optional());
|
|
14299
14327
|
if (backgroundColor) {
|
|
14300
14328
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
14301
14329
|
if (parsedColor.success) {
|
|
@@ -14394,12 +14422,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
14394
14422
|
}
|
|
14395
14423
|
}
|
|
14396
14424
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
14397
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
14425
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z299.string());
|
|
14398
14426
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
14399
14427
|
return id;
|
|
14400
14428
|
}
|
|
14401
14429
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
14402
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
14430
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z299.string()));
|
|
14403
14431
|
}
|
|
14404
14432
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
14405
14433
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|