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