@supernova-studio/client 1.9.12 → 1.9.14
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 +319 -1
- package/dist/index.d.ts +319 -1
- package/dist/index.js +41 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1432 -1392
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -199,6 +199,7 @@ import { z as z191 } from "zod";
|
|
|
199
199
|
import { z as z192 } from "zod";
|
|
200
200
|
import { z as z193 } from "zod";
|
|
201
201
|
import { z as z194 } from "zod";
|
|
202
|
+
import { z as z195 } from "zod";
|
|
202
203
|
var __defProp2 = Object.defineProperty;
|
|
203
204
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
204
205
|
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -4151,6 +4152,7 @@ var FigmaExporterProcessedStylesSchema = z123.object({
|
|
|
4151
4152
|
]).optional(),
|
|
4152
4153
|
transform: z123.string().optional(),
|
|
4153
4154
|
transformOrigin: z123.string().optional(),
|
|
4155
|
+
rotate: z123.string().optional(),
|
|
4154
4156
|
clipPath: z123.string().optional(),
|
|
4155
4157
|
color: z123.string().optional(),
|
|
4156
4158
|
fontFamily: z123.string().optional(),
|
|
@@ -5472,18 +5474,29 @@ var NpmPackage = AnyRecord.and(
|
|
|
5472
5474
|
var NpmProxyTokenPayload = z193.object({
|
|
5473
5475
|
npmProxyRegistryConfigId: z193.string()
|
|
5474
5476
|
});
|
|
5475
|
-
var
|
|
5477
|
+
var PortalSettingsTheme = nullishToOptional(UserTheme);
|
|
5478
|
+
var PortalSettings = z194.object({
|
|
5476
5479
|
id: z194.string(),
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
hidden: z194.boolean(),
|
|
5483
|
-
token: z194.string(),
|
|
5484
|
-
scope: z194.string().optional(),
|
|
5480
|
+
workspaceId: z194.string(),
|
|
5481
|
+
enabledDesignSystemIds: z194.array(z194.string()),
|
|
5482
|
+
enabledBrandPersistentIds: z194.array(z194.string()),
|
|
5483
|
+
theme: PortalSettingsTheme,
|
|
5484
|
+
sidebar: nullishToOptional(z194.any()),
|
|
5485
5485
|
createdAt: z194.coerce.date(),
|
|
5486
|
-
|
|
5486
|
+
updatedAt: z194.coerce.date()
|
|
5487
|
+
});
|
|
5488
|
+
var PersonalAccessToken = z195.object({
|
|
5489
|
+
id: z195.string(),
|
|
5490
|
+
userId: z195.string(),
|
|
5491
|
+
workspaceId: z195.string().optional(),
|
|
5492
|
+
designSystemId: z195.string().optional(),
|
|
5493
|
+
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
5494
|
+
name: z195.string(),
|
|
5495
|
+
hidden: z195.boolean(),
|
|
5496
|
+
token: z195.string(),
|
|
5497
|
+
scope: z195.string().optional(),
|
|
5498
|
+
createdAt: z195.coerce.date(),
|
|
5499
|
+
expireAt: z195.coerce.date().optional()
|
|
5487
5500
|
});
|
|
5488
5501
|
|
|
5489
5502
|
// src/api/conversion/analytics/page-visits-to-dto.ts
|
|
@@ -6004,105 +6017,105 @@ function integrationCredentialToDto(credential) {
|
|
|
6004
6017
|
}
|
|
6005
6018
|
|
|
6006
6019
|
// src/api/dto/access-tokens/access-token.ts
|
|
6007
|
-
import { z as
|
|
6008
|
-
var DTOAccessToken =
|
|
6009
|
-
id:
|
|
6010
|
-
createdAt:
|
|
6011
|
-
name:
|
|
6012
|
-
scope:
|
|
6020
|
+
import { z as z196 } from "zod";
|
|
6021
|
+
var DTOAccessToken = z196.object({
|
|
6022
|
+
id: z196.string(),
|
|
6023
|
+
createdAt: z196.coerce.date(),
|
|
6024
|
+
name: z196.string(),
|
|
6025
|
+
scope: z196.string().optional()
|
|
6013
6026
|
});
|
|
6014
6027
|
var DTOAccessTokenFull = DTOAccessToken.extend({
|
|
6015
|
-
token:
|
|
6028
|
+
token: z196.string()
|
|
6016
6029
|
});
|
|
6017
|
-
var DTOAccessTokenListResponse =
|
|
6030
|
+
var DTOAccessTokenListResponse = z196.object({
|
|
6018
6031
|
tokens: DTOAccessToken.array()
|
|
6019
6032
|
});
|
|
6020
|
-
var DTOAccessTokenResponse =
|
|
6033
|
+
var DTOAccessTokenResponse = z196.object({
|
|
6021
6034
|
token: DTOAccessToken
|
|
6022
6035
|
});
|
|
6023
|
-
var DTOAccessTokenFullResponse =
|
|
6036
|
+
var DTOAccessTokenFullResponse = z196.object({
|
|
6024
6037
|
token: DTOAccessTokenFull
|
|
6025
6038
|
});
|
|
6026
|
-
var DTOAccessTokenCreatePayload =
|
|
6027
|
-
name:
|
|
6028
|
-
scope:
|
|
6039
|
+
var DTOAccessTokenCreatePayload = z196.object({
|
|
6040
|
+
name: z196.string(),
|
|
6041
|
+
scope: z196.string().optional()
|
|
6029
6042
|
});
|
|
6030
6043
|
|
|
6031
6044
|
// src/api/dto/aux/color.ts
|
|
6032
|
-
import { z as
|
|
6033
|
-
var DTOColorTokenInlineData =
|
|
6034
|
-
value:
|
|
6045
|
+
import { z as z197 } from "zod";
|
|
6046
|
+
var DTOColorTokenInlineData = z197.object({
|
|
6047
|
+
value: z197.string().regex(/^#[a-f0-9]{6,8}$/)
|
|
6035
6048
|
});
|
|
6036
6049
|
|
|
6037
6050
|
// src/api/dto/aux/meta.ts
|
|
6038
|
-
import { z as
|
|
6039
|
-
var DTOObjectMeta =
|
|
6040
|
-
name:
|
|
6041
|
-
description:
|
|
6051
|
+
import { z as z198 } from "zod";
|
|
6052
|
+
var DTOObjectMeta = z198.object({
|
|
6053
|
+
name: z198.string().max(512),
|
|
6054
|
+
description: z198.string().max(2048).optional()
|
|
6042
6055
|
});
|
|
6043
6056
|
|
|
6044
6057
|
// src/api/dto/aux/pagination.ts
|
|
6045
|
-
import { z as
|
|
6046
|
-
var DTOPagination =
|
|
6047
|
-
limit:
|
|
6048
|
-
offset:
|
|
6058
|
+
import { z as z199 } from "zod";
|
|
6059
|
+
var DTOPagination = z199.object({
|
|
6060
|
+
limit: z199.string().optional(),
|
|
6061
|
+
offset: z199.string().optional()
|
|
6049
6062
|
});
|
|
6050
6063
|
|
|
6051
6064
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6052
|
-
import { z as
|
|
6065
|
+
import { z as z241 } from "zod";
|
|
6053
6066
|
|
|
6054
6067
|
// src/api/dto/design-systems/brand.ts
|
|
6055
|
-
import { z as
|
|
6056
|
-
var DTOBrand =
|
|
6057
|
-
id:
|
|
6058
|
-
designSystemVersionId:
|
|
6059
|
-
persistentId:
|
|
6068
|
+
import { z as z200 } from "zod";
|
|
6069
|
+
var DTOBrand = z200.object({
|
|
6070
|
+
id: z200.string(),
|
|
6071
|
+
designSystemVersionId: z200.string(),
|
|
6072
|
+
persistentId: z200.string(),
|
|
6060
6073
|
meta: ObjectMeta
|
|
6061
6074
|
});
|
|
6062
|
-
var DTOBrandGetResponse =
|
|
6063
|
-
var DTOBrandCreateResponse =
|
|
6075
|
+
var DTOBrandGetResponse = z200.object({ brand: DTOBrand });
|
|
6076
|
+
var DTOBrandCreateResponse = z200.object({
|
|
6064
6077
|
brand: DTOBrand
|
|
6065
6078
|
});
|
|
6066
|
-
var DTOBrandsListResponse =
|
|
6067
|
-
var DTOBrandCreatePayload =
|
|
6068
|
-
persistentId:
|
|
6079
|
+
var DTOBrandsListResponse = z200.object({ brands: z200.array(DTOBrand) });
|
|
6080
|
+
var DTOBrandCreatePayload = z200.object({
|
|
6081
|
+
persistentId: z200.string().uuid(),
|
|
6069
6082
|
meta: DTOObjectMeta
|
|
6070
6083
|
});
|
|
6071
|
-
var DTOBrandUpdatePayload =
|
|
6084
|
+
var DTOBrandUpdatePayload = z200.object({
|
|
6072
6085
|
meta: DTOObjectMeta.optional(),
|
|
6073
|
-
persistentId:
|
|
6086
|
+
persistentId: z200.string()
|
|
6074
6087
|
});
|
|
6075
6088
|
|
|
6076
6089
|
// src/api/dto/design-systems/code-component.ts
|
|
6077
|
-
import { z as
|
|
6090
|
+
import { z as z201 } from "zod";
|
|
6078
6091
|
var DTOCodeComponentResolvedTypeKind = CodeComponentResolvedTypeKind;
|
|
6079
6092
|
var DTOCodeComponentResolvedType = CodeComponentResolvedType;
|
|
6080
6093
|
var DTOCodeComponentParentType = CodeComponentParentType;
|
|
6081
6094
|
var DTOCodeComponentProperty = CodeComponentProperty;
|
|
6082
6095
|
var DTOCodeComponent = CodeComponent;
|
|
6083
|
-
var DTOCodeComponentResponse =
|
|
6096
|
+
var DTOCodeComponentResponse = z201.object({
|
|
6084
6097
|
codeComponent: DTOCodeComponent
|
|
6085
6098
|
});
|
|
6086
|
-
var DTOCodeComponentListResponse =
|
|
6099
|
+
var DTOCodeComponentListResponse = z201.object({
|
|
6087
6100
|
codeComponents: DTOCodeComponent.array()
|
|
6088
6101
|
});
|
|
6089
|
-
var DTOCodeComponentCreateInput =
|
|
6090
|
-
persistentId:
|
|
6091
|
-
exportName:
|
|
6092
|
-
componentPath:
|
|
6093
|
-
description:
|
|
6094
|
-
properties:
|
|
6095
|
-
tags:
|
|
6102
|
+
var DTOCodeComponentCreateInput = z201.object({
|
|
6103
|
+
persistentId: z201.string(),
|
|
6104
|
+
exportName: z201.string(),
|
|
6105
|
+
componentPath: z201.string(),
|
|
6106
|
+
description: z201.string(),
|
|
6107
|
+
properties: z201.record(z201.string(), DTOCodeComponentProperty),
|
|
6108
|
+
tags: z201.record(z201.string(), z201.string()).nullable()
|
|
6096
6109
|
});
|
|
6097
|
-
var DTOCodeComponentsCreateInput =
|
|
6110
|
+
var DTOCodeComponentsCreateInput = z201.object({
|
|
6098
6111
|
codeComponents: DTOCodeComponentCreateInput.array()
|
|
6099
6112
|
});
|
|
6100
6113
|
var DTOCodeComponentUpsertResponse = CodeComponentUpsertResponse;
|
|
6101
6114
|
var DTOAnalyzeCodeComponentsInPackage = AnalyzeCodeComponentsInPackage;
|
|
6102
6115
|
var DTODependencyDefinition = DependencyDefinition;
|
|
6103
6116
|
var DTORegistry = Registry;
|
|
6104
|
-
var DTOAnalyzeCodeComponentsInPackageResponse =
|
|
6105
|
-
ok:
|
|
6117
|
+
var DTOAnalyzeCodeComponentsInPackageResponse = z201.object({
|
|
6118
|
+
ok: z201.literal(true)
|
|
6106
6119
|
});
|
|
6107
6120
|
var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit({
|
|
6108
6121
|
designSystemId: true,
|
|
@@ -6111,48 +6124,48 @@ var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit
|
|
|
6111
6124
|
});
|
|
6112
6125
|
|
|
6113
6126
|
// src/api/dto/design-systems/component.ts
|
|
6114
|
-
import { z as
|
|
6115
|
-
var DTODesignSystemComponent =
|
|
6116
|
-
id:
|
|
6117
|
-
persistentId:
|
|
6118
|
-
designSystemVersionId:
|
|
6119
|
-
brandId:
|
|
6127
|
+
import { z as z202 } from "zod";
|
|
6128
|
+
var DTODesignSystemComponent = z202.object({
|
|
6129
|
+
id: z202.string(),
|
|
6130
|
+
persistentId: z202.string(),
|
|
6131
|
+
designSystemVersionId: z202.string(),
|
|
6132
|
+
brandId: z202.string(),
|
|
6120
6133
|
meta: DTOObjectMeta,
|
|
6121
|
-
createdAt:
|
|
6122
|
-
updatedAt:
|
|
6134
|
+
createdAt: z202.coerce.date(),
|
|
6135
|
+
updatedAt: z202.coerce.date()
|
|
6123
6136
|
});
|
|
6124
|
-
var DTODesignSystemComponentResponse =
|
|
6137
|
+
var DTODesignSystemComponentResponse = z202.object({
|
|
6125
6138
|
designSystemComponent: DTODesignSystemComponent
|
|
6126
6139
|
});
|
|
6127
|
-
var DTODesignSystemComponentListResponse =
|
|
6140
|
+
var DTODesignSystemComponentListResponse = z202.object({
|
|
6128
6141
|
designSystemComponents: DTODesignSystemComponent.array()
|
|
6129
6142
|
});
|
|
6130
|
-
var DTODesignSystemComponentCreateInput =
|
|
6131
|
-
brandId:
|
|
6143
|
+
var DTODesignSystemComponentCreateInput = z202.object({
|
|
6144
|
+
brandId: z202.string(),
|
|
6132
6145
|
// Persistent ID,
|
|
6133
|
-
persistentId:
|
|
6146
|
+
persistentId: z202.string(),
|
|
6134
6147
|
meta: DTOObjectMeta
|
|
6135
6148
|
});
|
|
6136
6149
|
|
|
6137
6150
|
// src/api/dto/design-systems/contact.ts
|
|
6138
|
-
import { z as
|
|
6151
|
+
import { z as z206 } from "zod";
|
|
6139
6152
|
|
|
6140
6153
|
// src/api/dto/users/authenticated-user.ts
|
|
6141
|
-
import { z as
|
|
6154
|
+
import { z as z204 } from "zod";
|
|
6142
6155
|
|
|
6143
6156
|
// src/api/dto/users/user.ts
|
|
6144
|
-
import { z as
|
|
6145
|
-
var DTOUserProfile =
|
|
6146
|
-
name:
|
|
6147
|
-
nickname:
|
|
6148
|
-
avatar:
|
|
6149
|
-
});
|
|
6150
|
-
var DTOUser =
|
|
6151
|
-
id:
|
|
6152
|
-
email:
|
|
6157
|
+
import { z as z203 } from "zod";
|
|
6158
|
+
var DTOUserProfile = z203.object({
|
|
6159
|
+
name: z203.string(),
|
|
6160
|
+
nickname: z203.string().optional(),
|
|
6161
|
+
avatar: z203.string().optional()
|
|
6162
|
+
});
|
|
6163
|
+
var DTOUser = z203.object({
|
|
6164
|
+
id: z203.string(),
|
|
6165
|
+
email: z203.string(),
|
|
6153
6166
|
profile: DTOUserProfile
|
|
6154
6167
|
});
|
|
6155
|
-
var DTOUserGetResponse =
|
|
6168
|
+
var DTOUserGetResponse = z203.object({
|
|
6156
6169
|
user: DTOUser
|
|
6157
6170
|
});
|
|
6158
6171
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -6162,17 +6175,17 @@ var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
|
6162
6175
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6163
6176
|
var DTOUserSource = UserSource;
|
|
6164
6177
|
var DTOUserTheme = UserTheme;
|
|
6165
|
-
var DTOUserOnboarding =
|
|
6166
|
-
companyName:
|
|
6167
|
-
numberOfPeopleInOrg:
|
|
6168
|
-
numberOfPeopleInDesignTeam:
|
|
6178
|
+
var DTOUserOnboarding = z204.object({
|
|
6179
|
+
companyName: z204.string().optional(),
|
|
6180
|
+
numberOfPeopleInOrg: z204.string().optional(),
|
|
6181
|
+
numberOfPeopleInDesignTeam: z204.string().optional(),
|
|
6169
6182
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6170
|
-
jobTitle:
|
|
6171
|
-
phase:
|
|
6183
|
+
jobTitle: z204.string().optional(),
|
|
6184
|
+
phase: z204.string().optional(),
|
|
6172
6185
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6173
|
-
designSystemName:
|
|
6174
|
-
defaultDestination:
|
|
6175
|
-
isPageDraftOnboardingFinished:
|
|
6186
|
+
designSystemName: z204.string().optional(),
|
|
6187
|
+
defaultDestination: z204.string().optional(),
|
|
6188
|
+
isPageDraftOnboardingFinished: z204.boolean().optional()
|
|
6176
6189
|
});
|
|
6177
6190
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6178
6191
|
onboarding: DTOUserOnboarding.optional(),
|
|
@@ -6180,194 +6193,194 @@ var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
|
6180
6193
|
});
|
|
6181
6194
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6182
6195
|
profile: DTOAuthenticatedUserProfile,
|
|
6183
|
-
createdAt:
|
|
6184
|
-
loggedOutAt:
|
|
6196
|
+
createdAt: z204.coerce.date(),
|
|
6197
|
+
loggedOutAt: z204.coerce.date().optional(),
|
|
6185
6198
|
source: DTOUserSource.optional()
|
|
6186
6199
|
});
|
|
6187
|
-
var DTOAuthenticatedUserResponse =
|
|
6200
|
+
var DTOAuthenticatedUserResponse = z204.object({
|
|
6188
6201
|
user: DTOAuthenticatedUser
|
|
6189
6202
|
});
|
|
6190
6203
|
|
|
6191
6204
|
// src/api/dto/users/update.ts
|
|
6192
|
-
import { z as
|
|
6193
|
-
var DTOUserProfileUpdateResponse =
|
|
6205
|
+
import { z as z205 } from "zod";
|
|
6206
|
+
var DTOUserProfileUpdateResponse = z205.object({
|
|
6194
6207
|
user: User
|
|
6195
6208
|
});
|
|
6196
6209
|
|
|
6197
6210
|
// src/api/dto/design-systems/contact.ts
|
|
6198
|
-
var DTODesignSystemContactsResponse =
|
|
6199
|
-
contacts:
|
|
6200
|
-
workspace:
|
|
6201
|
-
designSystem:
|
|
6211
|
+
var DTODesignSystemContactsResponse = z206.object({
|
|
6212
|
+
contacts: z206.object({
|
|
6213
|
+
workspace: z206.array(DTOUser),
|
|
6214
|
+
designSystem: z206.array(DTOUser)
|
|
6202
6215
|
})
|
|
6203
6216
|
});
|
|
6204
6217
|
|
|
6205
6218
|
// src/api/dto/design-systems/data-source.ts
|
|
6206
|
-
import { z as
|
|
6219
|
+
import { z as z207 } from "zod";
|
|
6207
6220
|
var DTODataSourceFigmaScope = DataSourceFigmaScope;
|
|
6208
|
-
var DTODataSourceFigmaFileVersion =
|
|
6209
|
-
id:
|
|
6210
|
-
created_at:
|
|
6211
|
-
label:
|
|
6212
|
-
description:
|
|
6213
|
-
});
|
|
6214
|
-
var DTODataSourceFigmaCloud =
|
|
6215
|
-
fileId:
|
|
6221
|
+
var DTODataSourceFigmaFileVersion = z207.object({
|
|
6222
|
+
id: z207.string(),
|
|
6223
|
+
created_at: z207.coerce.date(),
|
|
6224
|
+
label: z207.string(),
|
|
6225
|
+
description: z207.string()
|
|
6226
|
+
});
|
|
6227
|
+
var DTODataSourceFigmaCloud = z207.object({
|
|
6228
|
+
fileId: z207.string(),
|
|
6216
6229
|
state: DataSourceFigmaState,
|
|
6217
6230
|
autoImportMode: DataSourceAutoImportMode,
|
|
6218
|
-
fileThumbnailUrl:
|
|
6231
|
+
fileThumbnailUrl: z207.string().optional(),
|
|
6219
6232
|
lastImportResult: SourceImportSummary.nullish(),
|
|
6220
|
-
lastImportedAt:
|
|
6233
|
+
lastImportedAt: z207.coerce.date().nullish(),
|
|
6221
6234
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
6222
|
-
lastUpdatesCheckedAt:
|
|
6223
|
-
ownerId:
|
|
6224
|
-
ownerUserName:
|
|
6225
|
-
preferredCredentialId:
|
|
6235
|
+
lastUpdatesCheckedAt: z207.date().nullish(),
|
|
6236
|
+
ownerId: z207.string(),
|
|
6237
|
+
ownerUserName: z207.string().optional(),
|
|
6238
|
+
preferredCredentialId: z207.string().optional(),
|
|
6226
6239
|
stats: DataSourceStats
|
|
6227
6240
|
});
|
|
6228
|
-
var DTODataSourceFigma =
|
|
6229
|
-
id:
|
|
6230
|
-
type:
|
|
6231
|
-
fileName:
|
|
6241
|
+
var DTODataSourceFigma = z207.object({
|
|
6242
|
+
id: z207.string(),
|
|
6243
|
+
type: z207.literal(DataSourceRemoteType.Enum.Figma),
|
|
6244
|
+
fileName: z207.string(),
|
|
6232
6245
|
scope: DTODataSourceFigmaScope,
|
|
6233
|
-
brandId:
|
|
6234
|
-
themeId:
|
|
6246
|
+
brandId: z207.string(),
|
|
6247
|
+
themeId: z207.string().nullish(),
|
|
6235
6248
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
6236
|
-
sortOrder:
|
|
6237
|
-
});
|
|
6238
|
-
var DTODataSourceTokenStudio =
|
|
6239
|
-
id:
|
|
6240
|
-
type:
|
|
6241
|
-
fileName:
|
|
6242
|
-
brandId:
|
|
6243
|
-
themeId:
|
|
6244
|
-
sortOrder:
|
|
6245
|
-
tokenStudio:
|
|
6246
|
-
settings:
|
|
6247
|
-
dryRun:
|
|
6248
|
-
verbose:
|
|
6249
|
-
preciseCopy:
|
|
6249
|
+
sortOrder: z207.number().optional()
|
|
6250
|
+
});
|
|
6251
|
+
var DTODataSourceTokenStudio = z207.object({
|
|
6252
|
+
id: z207.string(),
|
|
6253
|
+
type: z207.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
6254
|
+
fileName: z207.string(),
|
|
6255
|
+
brandId: z207.string(),
|
|
6256
|
+
themeId: z207.string().nullish(),
|
|
6257
|
+
sortOrder: z207.number().optional(),
|
|
6258
|
+
tokenStudio: z207.object({
|
|
6259
|
+
settings: z207.object({
|
|
6260
|
+
dryRun: z207.boolean(),
|
|
6261
|
+
verbose: z207.boolean(),
|
|
6262
|
+
preciseCopy: z207.boolean()
|
|
6250
6263
|
}),
|
|
6251
|
-
connectionName:
|
|
6252
|
-
lastImportedAt:
|
|
6253
|
-
lastImportedResults:
|
|
6254
|
-
|
|
6255
|
-
mapping:
|
|
6256
|
-
tokenSets:
|
|
6257
|
-
supernovaBrand:
|
|
6258
|
-
supernovaTheme:
|
|
6264
|
+
connectionName: z207.string(),
|
|
6265
|
+
lastImportedAt: z207.coerce.date(),
|
|
6266
|
+
lastImportedResults: z207.array(
|
|
6267
|
+
z207.object({
|
|
6268
|
+
mapping: z207.object({
|
|
6269
|
+
tokenSets: z207.array(z207.string()),
|
|
6270
|
+
supernovaBrand: z207.string(),
|
|
6271
|
+
supernovaTheme: z207.string().optional()
|
|
6259
6272
|
}),
|
|
6260
|
-
isFailed:
|
|
6261
|
-
tokensCreated:
|
|
6262
|
-
tokensDeleted:
|
|
6263
|
-
tokensUpdated:
|
|
6273
|
+
isFailed: z207.boolean(),
|
|
6274
|
+
tokensCreated: z207.number(),
|
|
6275
|
+
tokensDeleted: z207.number(),
|
|
6276
|
+
tokensUpdated: z207.number()
|
|
6264
6277
|
})
|
|
6265
6278
|
)
|
|
6266
6279
|
})
|
|
6267
6280
|
});
|
|
6268
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
6269
|
-
id:
|
|
6270
|
-
type:
|
|
6271
|
-
fileName:
|
|
6272
|
-
brandId:
|
|
6273
|
-
sortOrder:
|
|
6274
|
-
upload:
|
|
6275
|
-
remoteId:
|
|
6281
|
+
var DTODataSourceFigmaVariablesPlugin = z207.object({
|
|
6282
|
+
id: z207.string(),
|
|
6283
|
+
type: z207.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
6284
|
+
fileName: z207.string(),
|
|
6285
|
+
brandId: z207.string(),
|
|
6286
|
+
sortOrder: z207.number().optional(),
|
|
6287
|
+
upload: z207.object({
|
|
6288
|
+
remoteId: z207.string(),
|
|
6276
6289
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
6277
|
-
lastImportedAt:
|
|
6290
|
+
lastImportedAt: z207.coerce.date().optional(),
|
|
6278
6291
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
6279
|
-
isTokenTypeSplitEnabled:
|
|
6292
|
+
isTokenTypeSplitEnabled: z207.boolean()
|
|
6280
6293
|
}),
|
|
6281
|
-
figmaVariablesPlugin:
|
|
6282
|
-
fileId:
|
|
6283
|
-
lastImportedAt:
|
|
6294
|
+
figmaVariablesPlugin: z207.object({
|
|
6295
|
+
fileId: z207.string(),
|
|
6296
|
+
lastImportedAt: z207.coerce.date().optional(),
|
|
6284
6297
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
6285
|
-
isTokenTypeSplitEnabled:
|
|
6286
|
-
isCollectionsMigrationCompleted:
|
|
6298
|
+
isTokenTypeSplitEnabled: z207.boolean(),
|
|
6299
|
+
isCollectionsMigrationCompleted: z207.boolean().default(false)
|
|
6287
6300
|
})
|
|
6288
6301
|
});
|
|
6289
|
-
var DTODataSourceStorybook =
|
|
6290
|
-
id:
|
|
6291
|
-
type:
|
|
6292
|
-
fileName:
|
|
6293
|
-
brandId:
|
|
6294
|
-
sortOrder:
|
|
6295
|
-
storybook:
|
|
6296
|
-
indexUrl:
|
|
6297
|
-
userUrl:
|
|
6298
|
-
lastImportedAt:
|
|
6302
|
+
var DTODataSourceStorybook = z207.object({
|
|
6303
|
+
id: z207.string(),
|
|
6304
|
+
type: z207.literal(DataSourceRemoteType.Enum.Storybook),
|
|
6305
|
+
fileName: z207.string(),
|
|
6306
|
+
brandId: z207.string(),
|
|
6307
|
+
sortOrder: z207.number().optional(),
|
|
6308
|
+
storybook: z207.object({
|
|
6309
|
+
indexUrl: z207.string(),
|
|
6310
|
+
userUrl: z207.string(),
|
|
6311
|
+
lastImportedAt: z207.coerce.date().optional(),
|
|
6299
6312
|
lastImportedResult: SourceImportStorybookSummary.optional(),
|
|
6300
|
-
lastImportedSuccessfully:
|
|
6301
|
-
isFailed:
|
|
6302
|
-
storiesCount:
|
|
6303
|
-
docsCount:
|
|
6304
|
-
description:
|
|
6305
|
-
isUsingVpn:
|
|
6313
|
+
lastImportedSuccessfully: z207.coerce.date().optional(),
|
|
6314
|
+
isFailed: z207.boolean(),
|
|
6315
|
+
storiesCount: z207.number(),
|
|
6316
|
+
docsCount: z207.number(),
|
|
6317
|
+
description: z207.string().optional(),
|
|
6318
|
+
isUsingVpn: z207.boolean().optional()
|
|
6306
6319
|
})
|
|
6307
6320
|
});
|
|
6308
|
-
var DTODataSourcesStorybookResponse =
|
|
6309
|
-
isFailed:
|
|
6310
|
-
storiesCount:
|
|
6311
|
-
docsCount:
|
|
6312
|
-
created:
|
|
6313
|
-
updated:
|
|
6314
|
-
deleted:
|
|
6321
|
+
var DTODataSourcesStorybookResponse = z207.object({
|
|
6322
|
+
isFailed: z207.boolean(),
|
|
6323
|
+
storiesCount: z207.number(),
|
|
6324
|
+
docsCount: z207.number(),
|
|
6325
|
+
created: z207.array(z207.string()).optional(),
|
|
6326
|
+
updated: z207.array(z207.string()).optional(),
|
|
6327
|
+
deleted: z207.array(z207.string()).optional()
|
|
6315
6328
|
});
|
|
6316
|
-
var DTODataSource =
|
|
6329
|
+
var DTODataSource = z207.discriminatedUnion("type", [
|
|
6317
6330
|
DTODataSourceFigma,
|
|
6318
6331
|
DTODataSourceFigmaVariablesPlugin,
|
|
6319
6332
|
DTODataSourceTokenStudio,
|
|
6320
6333
|
DTODataSourceStorybook
|
|
6321
6334
|
]);
|
|
6322
|
-
var DTODataSourcesListResponse =
|
|
6323
|
-
sources:
|
|
6335
|
+
var DTODataSourcesListResponse = z207.object({
|
|
6336
|
+
sources: z207.array(DTODataSource)
|
|
6324
6337
|
});
|
|
6325
|
-
var DTODataSourceResponse =
|
|
6338
|
+
var DTODataSourceResponse = z207.object({
|
|
6326
6339
|
source: DTODataSource
|
|
6327
6340
|
});
|
|
6328
|
-
var DTODataSourceFigmaCreatePayload =
|
|
6329
|
-
brandPersistentId:
|
|
6330
|
-
figmaFileUrl:
|
|
6341
|
+
var DTODataSourceFigmaCreatePayload = z207.object({
|
|
6342
|
+
brandPersistentId: z207.string(),
|
|
6343
|
+
figmaFileUrl: z207.string(),
|
|
6331
6344
|
scope: DTODataSourceFigmaScope,
|
|
6332
6345
|
autoImportMode: DataSourceAutoImportMode
|
|
6333
6346
|
});
|
|
6334
|
-
var DTODataSourceFigmaImportPayload =
|
|
6335
|
-
sourceIds:
|
|
6336
|
-
});
|
|
6337
|
-
var DTODataSourceStorybookCreatePayload =
|
|
6338
|
-
brandPersistentId:
|
|
6339
|
-
fileName:
|
|
6340
|
-
userUrl:
|
|
6341
|
-
indexUrl:
|
|
6342
|
-
payload:
|
|
6343
|
-
type:
|
|
6344
|
-
description:
|
|
6345
|
-
isUsingVpn:
|
|
6346
|
-
});
|
|
6347
|
-
var DTOStorybookImportPayload =
|
|
6348
|
-
sourceId:
|
|
6349
|
-
payload:
|
|
6350
|
-
});
|
|
6351
|
-
var DTOStorybookSourceUpdatePayload =
|
|
6352
|
-
description:
|
|
6353
|
-
isUsingVpn:
|
|
6354
|
-
fileName:
|
|
6355
|
-
});
|
|
6356
|
-
var DTOFigmaSourceUpdatePayload =
|
|
6357
|
-
themeId:
|
|
6347
|
+
var DTODataSourceFigmaImportPayload = z207.object({
|
|
6348
|
+
sourceIds: z207.array(z207.string())
|
|
6349
|
+
});
|
|
6350
|
+
var DTODataSourceStorybookCreatePayload = z207.object({
|
|
6351
|
+
brandPersistentId: z207.string(),
|
|
6352
|
+
fileName: z207.string().optional(),
|
|
6353
|
+
userUrl: z207.string(),
|
|
6354
|
+
indexUrl: z207.string(),
|
|
6355
|
+
payload: z207.unknown(),
|
|
6356
|
+
type: z207.literal(DataSourceRemoteType.Enum.Storybook),
|
|
6357
|
+
description: z207.string().optional(),
|
|
6358
|
+
isUsingVpn: z207.boolean().optional()
|
|
6359
|
+
});
|
|
6360
|
+
var DTOStorybookImportPayload = z207.object({
|
|
6361
|
+
sourceId: z207.string(),
|
|
6362
|
+
payload: z207.unknown()
|
|
6363
|
+
});
|
|
6364
|
+
var DTOStorybookSourceUpdatePayload = z207.object({
|
|
6365
|
+
description: z207.string().nullish().optional(),
|
|
6366
|
+
isUsingVpn: z207.boolean().optional(),
|
|
6367
|
+
fileName: z207.string().optional()
|
|
6368
|
+
});
|
|
6369
|
+
var DTOFigmaSourceUpdatePayload = z207.object({
|
|
6370
|
+
themeId: z207.string().optional(),
|
|
6358
6371
|
scope: DataSourceFigmaScope.optional(),
|
|
6359
6372
|
autoImportMode: DataSourceAutoImportMode.optional()
|
|
6360
6373
|
});
|
|
6361
6374
|
|
|
6362
6375
|
// src/api/dto/design-systems/design-system.ts
|
|
6363
|
-
import { z as
|
|
6376
|
+
import { z as z210 } from "zod";
|
|
6364
6377
|
|
|
6365
6378
|
// src/api/dto/design-systems/members.ts
|
|
6366
|
-
import { z as
|
|
6379
|
+
import { z as z209 } from "zod";
|
|
6367
6380
|
|
|
6368
6381
|
// src/api/dto/design-systems/role.ts
|
|
6369
|
-
import { z as
|
|
6370
|
-
var DTODesignSystemRole =
|
|
6382
|
+
import { z as z208 } from "zod";
|
|
6383
|
+
var DTODesignSystemRole = z208.enum([
|
|
6371
6384
|
WorkspaceRole.Admin,
|
|
6372
6385
|
WorkspaceRole.Contributor,
|
|
6373
6386
|
WorkspaceRole.Creator,
|
|
@@ -6375,29 +6388,29 @@ var DTODesignSystemRole = z207.enum([
|
|
|
6375
6388
|
]);
|
|
6376
6389
|
|
|
6377
6390
|
// src/api/dto/design-systems/members.ts
|
|
6378
|
-
var DTODesignSystemMember =
|
|
6379
|
-
userId:
|
|
6391
|
+
var DTODesignSystemMember = z209.object({
|
|
6392
|
+
userId: z209.string(),
|
|
6380
6393
|
/**
|
|
6381
6394
|
* Role that the member has in the design system,
|
|
6382
6395
|
* undefined if set to inherit from workspace
|
|
6383
6396
|
*/
|
|
6384
6397
|
designSystemRole: DTODesignSystemRole.optional()
|
|
6385
6398
|
});
|
|
6386
|
-
var DTODesignSystemInvitation =
|
|
6387
|
-
id:
|
|
6388
|
-
workspaceInvitationId:
|
|
6399
|
+
var DTODesignSystemInvitation = z209.object({
|
|
6400
|
+
id: z209.string(),
|
|
6401
|
+
workspaceInvitationId: z209.string(),
|
|
6389
6402
|
/**
|
|
6390
6403
|
* Role that the invitation has in the design system,
|
|
6391
6404
|
* undefined if set to inherit from workspace
|
|
6392
6405
|
*/
|
|
6393
6406
|
designSystemRole: DTODesignSystemRole.optional()
|
|
6394
6407
|
});
|
|
6395
|
-
var DTODesignSystemMemberListResponse =
|
|
6408
|
+
var DTODesignSystemMemberListResponse = z209.object({
|
|
6396
6409
|
members: DTODesignSystemMember.array(),
|
|
6397
6410
|
invitations: DTODesignSystemInvitation.array()
|
|
6398
6411
|
});
|
|
6399
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
6400
|
-
ok:
|
|
6412
|
+
var DTODesignSystemMembersUpdateResponse = z209.object({
|
|
6413
|
+
ok: z209.literal(true)
|
|
6401
6414
|
});
|
|
6402
6415
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
6403
6416
|
|
|
@@ -6408,14 +6421,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
6408
6421
|
docExporterId: true
|
|
6409
6422
|
}).extend({
|
|
6410
6423
|
meta: ObjectMeta,
|
|
6411
|
-
docExporterId:
|
|
6412
|
-
sources:
|
|
6413
|
-
isPublic:
|
|
6424
|
+
docExporterId: z210.string(),
|
|
6425
|
+
sources: z210.array(z210.any()),
|
|
6426
|
+
isPublic: z210.literal(true),
|
|
6414
6427
|
/**
|
|
6415
6428
|
* Whether or not user who is requesting the design system
|
|
6416
6429
|
* has access to the design system's contents.
|
|
6417
6430
|
*/
|
|
6418
|
-
isAvailableToUser:
|
|
6431
|
+
isAvailableToUser: z210.boolean(),
|
|
6419
6432
|
/**
|
|
6420
6433
|
* @deprecated
|
|
6421
6434
|
*/
|
|
@@ -6426,17 +6439,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
6426
6439
|
*/
|
|
6427
6440
|
effectiveRole: DTODesignSystemRole.optional()
|
|
6428
6441
|
});
|
|
6429
|
-
var DTODesignSystemResponse =
|
|
6442
|
+
var DTODesignSystemResponse = z210.object({
|
|
6430
6443
|
designSystem: DTODesignSystem
|
|
6431
6444
|
});
|
|
6432
|
-
var DTODesignSystemsListResponse =
|
|
6445
|
+
var DTODesignSystemsListResponse = z210.object({
|
|
6433
6446
|
designSystems: DTODesignSystem.array()
|
|
6434
6447
|
});
|
|
6435
|
-
var DTODesignSystemCreateInput =
|
|
6436
|
-
workspaceId:
|
|
6448
|
+
var DTODesignSystemCreateInput = z210.object({
|
|
6449
|
+
workspaceId: z210.string(),
|
|
6437
6450
|
meta: ObjectMeta.optional(),
|
|
6438
|
-
name:
|
|
6439
|
-
description:
|
|
6451
|
+
name: z210.string().min(2).max(64).optional(),
|
|
6452
|
+
description: z210.string().max(1024).optional(),
|
|
6440
6453
|
accessMode: DesignSystemAccessMode.optional(),
|
|
6441
6454
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
6442
6455
|
usersToInvite: true,
|
|
@@ -6446,20 +6459,20 @@ var DTODesignSystemCreateInput = z209.object({
|
|
|
6446
6459
|
});
|
|
6447
6460
|
|
|
6448
6461
|
// src/api/dto/design-systems/elements-diff.ts
|
|
6449
|
-
import { z as
|
|
6450
|
-
var DTODiffCountBase =
|
|
6451
|
-
created:
|
|
6452
|
-
updated:
|
|
6453
|
-
deleted:
|
|
6462
|
+
import { z as z211 } from "zod";
|
|
6463
|
+
var DTODiffCountBase = z211.object({
|
|
6464
|
+
created: z211.number(),
|
|
6465
|
+
updated: z211.number(),
|
|
6466
|
+
deleted: z211.number()
|
|
6454
6467
|
});
|
|
6455
|
-
var DTODesignElementsDataDiffResponse =
|
|
6468
|
+
var DTODesignElementsDataDiffResponse = z211.object({
|
|
6456
6469
|
tokens: DTODiffCountBase,
|
|
6457
6470
|
assets: DTODiffCountBase
|
|
6458
6471
|
});
|
|
6459
6472
|
|
|
6460
6473
|
// src/api/dto/design-systems/figma-variables.ts
|
|
6461
|
-
import { z as
|
|
6462
|
-
var DimensionsVariableScopeSchema =
|
|
6474
|
+
import { z as z212 } from "zod";
|
|
6475
|
+
var DimensionsVariableScopeSchema = z212.enum([
|
|
6463
6476
|
"CORNER_RADIUS",
|
|
6464
6477
|
"WIDTH_HEIGHT",
|
|
6465
6478
|
"GAP",
|
|
@@ -6473,372 +6486,372 @@ var DimensionsVariableScopeSchema = z211.enum([
|
|
|
6473
6486
|
"PARAGRAPH_INDENT",
|
|
6474
6487
|
"FONT_WEIGHT"
|
|
6475
6488
|
]);
|
|
6476
|
-
var StringVariableScopeSchema =
|
|
6489
|
+
var StringVariableScopeSchema = z212.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
6477
6490
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
6478
6491
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
6479
|
-
var VariableScope =
|
|
6480
|
-
var ReferencedVariableOrigin =
|
|
6481
|
-
name:
|
|
6482
|
-
remote:
|
|
6492
|
+
var VariableScope = z212.string();
|
|
6493
|
+
var ReferencedVariableOrigin = z212.object({
|
|
6494
|
+
name: z212.string(),
|
|
6495
|
+
remote: z212.boolean()
|
|
6483
6496
|
});
|
|
6484
|
-
var RGB =
|
|
6485
|
-
r:
|
|
6486
|
-
g:
|
|
6487
|
-
b:
|
|
6497
|
+
var RGB = z212.object({
|
|
6498
|
+
r: z212.number(),
|
|
6499
|
+
g: z212.number(),
|
|
6500
|
+
b: z212.number()
|
|
6488
6501
|
});
|
|
6489
6502
|
var RGBA = RGB.extend({
|
|
6490
|
-
a:
|
|
6491
|
-
});
|
|
6492
|
-
var VariableAlias =
|
|
6493
|
-
type:
|
|
6494
|
-
id:
|
|
6495
|
-
resolvedValue:
|
|
6496
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
6497
|
-
});
|
|
6498
|
-
var VariableValue =
|
|
6499
|
-
var ResolvedVariableType =
|
|
6500
|
-
var Variable =
|
|
6501
|
-
id:
|
|
6502
|
-
name:
|
|
6503
|
-
key:
|
|
6504
|
-
variableCollectionId:
|
|
6503
|
+
a: z212.number()
|
|
6504
|
+
});
|
|
6505
|
+
var VariableAlias = z212.object({
|
|
6506
|
+
type: z212.literal("VARIABLE_ALIAS"),
|
|
6507
|
+
id: z212.string(),
|
|
6508
|
+
resolvedValue: z212.boolean().or(z212.number()).or(z212.string()).or(RGBA).or(RGB).optional(),
|
|
6509
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z212.null())
|
|
6510
|
+
});
|
|
6511
|
+
var VariableValue = z212.boolean().or(z212.number()).or(z212.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
6512
|
+
var ResolvedVariableType = z212.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
6513
|
+
var Variable = z212.object({
|
|
6514
|
+
id: z212.string(),
|
|
6515
|
+
name: z212.string(),
|
|
6516
|
+
key: z212.string(),
|
|
6517
|
+
variableCollectionId: z212.string(),
|
|
6505
6518
|
resolvedType: ResolvedVariableType,
|
|
6506
|
-
valuesByMode:
|
|
6507
|
-
remote:
|
|
6508
|
-
description:
|
|
6509
|
-
hiddenFromPublishing:
|
|
6510
|
-
scopes:
|
|
6511
|
-
codeSyntax:
|
|
6512
|
-
});
|
|
6513
|
-
var VariableMode =
|
|
6514
|
-
modeId:
|
|
6515
|
-
name:
|
|
6516
|
-
});
|
|
6517
|
-
var Collection2 =
|
|
6518
|
-
id:
|
|
6519
|
-
name:
|
|
6520
|
-
modes:
|
|
6521
|
-
defaultModeId:
|
|
6522
|
-
remote:
|
|
6523
|
-
hiddenFromPublishing:
|
|
6524
|
-
});
|
|
6525
|
-
var VariablesMapping =
|
|
6526
|
-
variableCollections:
|
|
6527
|
-
variableMode:
|
|
6528
|
-
supernovaBrand:
|
|
6529
|
-
supernovaTheme:
|
|
6530
|
-
});
|
|
6531
|
-
var FormattedCollections =
|
|
6532
|
-
variables:
|
|
6533
|
-
variableCollections:
|
|
6534
|
-
mappings:
|
|
6535
|
-
variablesOrder:
|
|
6519
|
+
valuesByMode: z212.record(VariableValue),
|
|
6520
|
+
remote: z212.boolean(),
|
|
6521
|
+
description: z212.string(),
|
|
6522
|
+
hiddenFromPublishing: z212.boolean(),
|
|
6523
|
+
scopes: z212.array(VariableScope),
|
|
6524
|
+
codeSyntax: z212.record(z212.any()).optional()
|
|
6525
|
+
});
|
|
6526
|
+
var VariableMode = z212.object({
|
|
6527
|
+
modeId: z212.string(),
|
|
6528
|
+
name: z212.string()
|
|
6529
|
+
});
|
|
6530
|
+
var Collection2 = z212.object({
|
|
6531
|
+
id: z212.string(),
|
|
6532
|
+
name: z212.string(),
|
|
6533
|
+
modes: z212.array(VariableMode),
|
|
6534
|
+
defaultModeId: z212.string(),
|
|
6535
|
+
remote: z212.boolean(),
|
|
6536
|
+
hiddenFromPublishing: z212.boolean()
|
|
6537
|
+
});
|
|
6538
|
+
var VariablesMapping = z212.object({
|
|
6539
|
+
variableCollections: z212.array(z212.string()).min(1),
|
|
6540
|
+
variableMode: z212.string().min(1),
|
|
6541
|
+
supernovaBrand: z212.string().min(1),
|
|
6542
|
+
supernovaTheme: z212.string().min(1).optional().or(z212.null())
|
|
6543
|
+
});
|
|
6544
|
+
var FormattedCollections = z212.object({
|
|
6545
|
+
variables: z212.record(z212.string(), Variable),
|
|
6546
|
+
variableCollections: z212.record(z212.string(), Collection2),
|
|
6547
|
+
mappings: z212.array(VariablesMapping).optional(),
|
|
6548
|
+
variablesOrder: z212.string().array().optional()
|
|
6536
6549
|
});
|
|
6537
6550
|
|
|
6538
6551
|
// src/api/dto/design-systems/file.ts
|
|
6539
|
-
import { z as
|
|
6552
|
+
import { z as z213 } from "zod";
|
|
6540
6553
|
var DTOAssetScope = AssetScope;
|
|
6541
|
-
var DTOFileUploadItem =
|
|
6542
|
-
size:
|
|
6543
|
-
name:
|
|
6544
|
-
checksum:
|
|
6554
|
+
var DTOFileUploadItem = z213.object({
|
|
6555
|
+
size: z213.number(),
|
|
6556
|
+
name: z213.string(),
|
|
6557
|
+
checksum: z213.string(),
|
|
6545
6558
|
scope: DTOAssetScope.exclude(["ComponentThumbnail", "DocumentationFrame"]).optional()
|
|
6546
6559
|
});
|
|
6547
|
-
var DTOFileUploadPayload =
|
|
6548
|
-
files:
|
|
6560
|
+
var DTOFileUploadPayload = z213.object({
|
|
6561
|
+
files: z213.array(DTOFileUploadItem)
|
|
6549
6562
|
});
|
|
6550
|
-
var DTOFileUploadResponseItem =
|
|
6551
|
-
fileId:
|
|
6552
|
-
referencePersistentId:
|
|
6553
|
-
name:
|
|
6554
|
-
checksum:
|
|
6555
|
-
pendingUpload:
|
|
6556
|
-
url:
|
|
6557
|
-
size:
|
|
6563
|
+
var DTOFileUploadResponseItem = z213.object({
|
|
6564
|
+
fileId: z213.string(),
|
|
6565
|
+
referencePersistentId: z213.string(),
|
|
6566
|
+
name: z213.string(),
|
|
6567
|
+
checksum: z213.string(),
|
|
6568
|
+
pendingUpload: z213.boolean().optional(),
|
|
6569
|
+
url: z213.string(),
|
|
6570
|
+
size: z213.number()
|
|
6558
6571
|
});
|
|
6559
6572
|
var DTOFileResponseItem = DTOFileUploadResponseItem.omit({ pendingUpload: true });
|
|
6560
|
-
var DTOUploadUrlItem =
|
|
6561
|
-
fileId:
|
|
6562
|
-
uploadUrl:
|
|
6573
|
+
var DTOUploadUrlItem = z213.object({
|
|
6574
|
+
fileId: z213.string(),
|
|
6575
|
+
uploadUrl: z213.string()
|
|
6563
6576
|
});
|
|
6564
|
-
var DTOFileUploadResponse =
|
|
6565
|
-
files:
|
|
6566
|
-
uploadUrls:
|
|
6577
|
+
var DTOFileUploadResponse = z213.object({
|
|
6578
|
+
files: z213.array(DTOFileUploadResponseItem),
|
|
6579
|
+
uploadUrls: z213.array(DTOUploadUrlItem)
|
|
6567
6580
|
});
|
|
6568
|
-
var DTOFilesGetPayload =
|
|
6569
|
-
persistentIds:
|
|
6581
|
+
var DTOFilesGetPayload = z213.object({
|
|
6582
|
+
persistentIds: z213.string().array().optional()
|
|
6570
6583
|
});
|
|
6571
|
-
var DTOFilesGetQuery =
|
|
6584
|
+
var DTOFilesGetQuery = z213.object({
|
|
6572
6585
|
includeScope: DTOAssetScope.optional()
|
|
6573
6586
|
});
|
|
6574
|
-
var DTOFilesResponse =
|
|
6575
|
-
files:
|
|
6587
|
+
var DTOFilesResponse = z213.object({
|
|
6588
|
+
files: z213.array(DTOFileResponseItem)
|
|
6576
6589
|
});
|
|
6577
|
-
var DTOFileUploadFinalizePayload =
|
|
6578
|
-
fileIds:
|
|
6590
|
+
var DTOFileUploadFinalizePayload = z213.object({
|
|
6591
|
+
fileIds: z213.array(z213.string())
|
|
6579
6592
|
});
|
|
6580
|
-
var DTOFileUploadFinalizeResponse =
|
|
6593
|
+
var DTOFileUploadFinalizeResponse = z213.object({ ok: z213.literal(true) });
|
|
6581
6594
|
|
|
6582
6595
|
// src/api/dto/design-systems/import-job.ts
|
|
6583
|
-
import { z as
|
|
6584
|
-
var DTOImportJob =
|
|
6585
|
-
id:
|
|
6586
|
-
designSystemId:
|
|
6587
|
-
designSystemVersionId:
|
|
6588
|
-
operation:
|
|
6589
|
-
createdAt:
|
|
6590
|
-
stateChangedAt:
|
|
6596
|
+
import { z as z214 } from "zod";
|
|
6597
|
+
var DTOImportJob = z214.object({
|
|
6598
|
+
id: z214.string(),
|
|
6599
|
+
designSystemId: z214.string(),
|
|
6600
|
+
designSystemVersionId: z214.string(),
|
|
6601
|
+
operation: z214.literal("Import"),
|
|
6602
|
+
createdAt: z214.coerce.date(),
|
|
6603
|
+
stateChangedAt: z214.coerce.date(),
|
|
6591
6604
|
state: ImportJobState,
|
|
6592
|
-
sourceIds:
|
|
6605
|
+
sourceIds: z214.string().array()
|
|
6593
6606
|
});
|
|
6594
|
-
var DTOImportJobResponse =
|
|
6607
|
+
var DTOImportJobResponse = z214.object({
|
|
6595
6608
|
job: DTOImportJob
|
|
6596
6609
|
});
|
|
6597
|
-
var DTOBffFigmaImportRequestBody =
|
|
6598
|
-
type:
|
|
6599
|
-
brandPersistentId:
|
|
6600
|
-
fileId:
|
|
6610
|
+
var DTOBffFigmaImportRequestBody = z214.object({
|
|
6611
|
+
type: z214.literal(DataSourceRemoteType.Enum.Figma),
|
|
6612
|
+
brandPersistentId: z214.string().optional(),
|
|
6613
|
+
fileId: z214.string(),
|
|
6601
6614
|
scope: DataSourceFigmaScope,
|
|
6602
6615
|
autoImportMode: DataSourceAutoImportMode
|
|
6603
6616
|
});
|
|
6604
|
-
var DTOBffUploadImportRequestBody =
|
|
6605
|
-
type:
|
|
6606
|
-
brandPersistentId:
|
|
6607
|
-
sourceName:
|
|
6608
|
-
remoteId:
|
|
6609
|
-
isTokenTypeSplitEnabled:
|
|
6610
|
-
payload:
|
|
6617
|
+
var DTOBffUploadImportRequestBody = z214.object({
|
|
6618
|
+
type: z214.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
6619
|
+
brandPersistentId: z214.string().optional(),
|
|
6620
|
+
sourceName: z214.string().optional(),
|
|
6621
|
+
remoteId: z214.string(),
|
|
6622
|
+
isTokenTypeSplitEnabled: z214.boolean().optional(),
|
|
6623
|
+
payload: z214.any()
|
|
6611
6624
|
});
|
|
6612
|
-
var DTOBffImportRequestBody =
|
|
6625
|
+
var DTOBffImportRequestBody = z214.discriminatedUnion("type", [
|
|
6613
6626
|
DTOBffFigmaImportRequestBody,
|
|
6614
6627
|
DTOBffUploadImportRequestBody
|
|
6615
6628
|
]);
|
|
6616
6629
|
|
|
6617
6630
|
// src/api/dto/design-systems/redirects.ts
|
|
6618
|
-
import { z as
|
|
6619
|
-
var DTOPageRedirectCreateBody =
|
|
6620
|
-
pagePersistentId:
|
|
6621
|
-
path:
|
|
6631
|
+
import { z as z215 } from "zod";
|
|
6632
|
+
var DTOPageRedirectCreateBody = z215.object({
|
|
6633
|
+
pagePersistentId: z215.string(),
|
|
6634
|
+
path: z215.string()
|
|
6622
6635
|
});
|
|
6623
6636
|
var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
|
|
6624
|
-
var DTOPageRedirect =
|
|
6625
|
-
id:
|
|
6626
|
-
pagePersistentId:
|
|
6627
|
-
path:
|
|
6637
|
+
var DTOPageRedirect = z215.object({
|
|
6638
|
+
id: z215.string(),
|
|
6639
|
+
pagePersistentId: z215.string(),
|
|
6640
|
+
path: z215.string()
|
|
6628
6641
|
});
|
|
6629
|
-
var DTOPageRedirectListResponse =
|
|
6642
|
+
var DTOPageRedirectListResponse = z215.object({
|
|
6630
6643
|
redirects: DTOPageRedirect.array()
|
|
6631
6644
|
});
|
|
6632
|
-
var DTOPageRedirectResponse =
|
|
6645
|
+
var DTOPageRedirectResponse = z215.object({
|
|
6633
6646
|
redirect: DTOPageRedirect
|
|
6634
6647
|
});
|
|
6635
|
-
var DTOPageRedirectDeleteResponse =
|
|
6636
|
-
success:
|
|
6648
|
+
var DTOPageRedirectDeleteResponse = z215.object({
|
|
6649
|
+
success: z215.boolean()
|
|
6637
6650
|
});
|
|
6638
6651
|
|
|
6639
6652
|
// src/api/dto/design-systems/stats.ts
|
|
6640
|
-
import { z as
|
|
6641
|
-
var DTODesignSystemVersionStats =
|
|
6642
|
-
tokens:
|
|
6643
|
-
designSystemComponents:
|
|
6644
|
-
assets:
|
|
6645
|
-
documentationPages:
|
|
6646
|
-
figmaComponents:
|
|
6647
|
-
});
|
|
6648
|
-
var DTODesignSystemVersionStatsQuery =
|
|
6653
|
+
import { z as z216 } from "zod";
|
|
6654
|
+
var DTODesignSystemVersionStats = z216.object({
|
|
6655
|
+
tokens: z216.number(),
|
|
6656
|
+
designSystemComponents: z216.number(),
|
|
6657
|
+
assets: z216.number(),
|
|
6658
|
+
documentationPages: z216.number(),
|
|
6659
|
+
figmaComponents: z216.number()
|
|
6660
|
+
});
|
|
6661
|
+
var DTODesignSystemVersionStatsQuery = z216.object({
|
|
6649
6662
|
/**
|
|
6650
6663
|
* Unique ID across versions (non-persistent ID)
|
|
6651
6664
|
*/
|
|
6652
|
-
brandId:
|
|
6665
|
+
brandId: z216.string().optional()
|
|
6653
6666
|
});
|
|
6654
6667
|
|
|
6655
6668
|
// src/api/dto/design-systems/storybook.ts
|
|
6656
|
-
import { z as
|
|
6657
|
-
var DTOStorybookUploadUrlRequest =
|
|
6658
|
-
name:
|
|
6659
|
-
});
|
|
6660
|
-
var DTOStorybookUploadUrlResponse =
|
|
6661
|
-
signedUrl:
|
|
6662
|
-
storybookUploadId:
|
|
6663
|
-
});
|
|
6664
|
-
var DTOStorybookAccessTokenResponse =
|
|
6665
|
-
accessToken:
|
|
6666
|
-
});
|
|
6667
|
-
var DTOStorybookAccessTokenPayload =
|
|
6668
|
-
designSystemId:
|
|
6669
|
-
storybookUploadId:
|
|
6670
|
-
});
|
|
6671
|
-
var DTOStorybookUploadStatus =
|
|
6672
|
-
status:
|
|
6673
|
-
timestamp:
|
|
6674
|
-
reason:
|
|
6675
|
-
});
|
|
6676
|
-
var DTOStorybookEntryOrigin =
|
|
6677
|
-
id:
|
|
6678
|
-
type:
|
|
6679
|
-
name:
|
|
6680
|
-
title:
|
|
6681
|
-
});
|
|
6682
|
-
var DTOStorybookEntry =
|
|
6683
|
-
id:
|
|
6684
|
-
storyId:
|
|
6685
|
-
designSystemId:
|
|
6686
|
-
sourceId:
|
|
6687
|
-
aliases:
|
|
6688
|
-
url:
|
|
6689
|
-
isDeleted:
|
|
6669
|
+
import { z as z217 } from "zod";
|
|
6670
|
+
var DTOStorybookUploadUrlRequest = z217.object({
|
|
6671
|
+
name: z217.string()
|
|
6672
|
+
});
|
|
6673
|
+
var DTOStorybookUploadUrlResponse = z217.object({
|
|
6674
|
+
signedUrl: z217.string(),
|
|
6675
|
+
storybookUploadId: z217.string()
|
|
6676
|
+
});
|
|
6677
|
+
var DTOStorybookAccessTokenResponse = z217.object({
|
|
6678
|
+
accessToken: z217.string()
|
|
6679
|
+
});
|
|
6680
|
+
var DTOStorybookAccessTokenPayload = z217.object({
|
|
6681
|
+
designSystemId: z217.string(),
|
|
6682
|
+
storybookUploadId: z217.string()
|
|
6683
|
+
});
|
|
6684
|
+
var DTOStorybookUploadStatus = z217.object({
|
|
6685
|
+
status: z217.enum(["Failed", "InProgress", "Completed", "Unknown"]),
|
|
6686
|
+
timestamp: z217.number().optional(),
|
|
6687
|
+
reason: z217.string().optional()
|
|
6688
|
+
});
|
|
6689
|
+
var DTOStorybookEntryOrigin = z217.object({
|
|
6690
|
+
id: z217.string(),
|
|
6691
|
+
type: z217.enum(["story", "docs"]),
|
|
6692
|
+
name: z217.string(),
|
|
6693
|
+
title: z217.string()
|
|
6694
|
+
});
|
|
6695
|
+
var DTOStorybookEntry = z217.object({
|
|
6696
|
+
id: z217.string(),
|
|
6697
|
+
storyId: z217.string(),
|
|
6698
|
+
designSystemId: z217.string(),
|
|
6699
|
+
sourceId: z217.string(),
|
|
6700
|
+
aliases: z217.array(z217.string()).optional(),
|
|
6701
|
+
url: z217.string(),
|
|
6702
|
+
isDeleted: z217.boolean().optional(),
|
|
6690
6703
|
origin: DTOStorybookEntryOrigin,
|
|
6691
|
-
createdAt:
|
|
6692
|
-
updatedAt:
|
|
6704
|
+
createdAt: z217.coerce.date(),
|
|
6705
|
+
updatedAt: z217.coerce.date()
|
|
6693
6706
|
});
|
|
6694
|
-
var DTOStorybookEntryReplaceAction =
|
|
6695
|
-
newStoryId:
|
|
6707
|
+
var DTOStorybookEntryReplaceAction = z217.object({
|
|
6708
|
+
newStoryId: z217.string()
|
|
6696
6709
|
});
|
|
6697
|
-
var DTOStorybookEntryListResponse =
|
|
6698
|
-
var DTOStorybookEntryResponse =
|
|
6710
|
+
var DTOStorybookEntryListResponse = z217.object({ entries: z217.array(DTOStorybookEntry) });
|
|
6711
|
+
var DTOStorybookEntryResponse = z217.object({ entry: DTOStorybookEntry });
|
|
6699
6712
|
|
|
6700
6713
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
6701
|
-
import { z as
|
|
6714
|
+
import { z as z225 } from "zod";
|
|
6702
6715
|
|
|
6703
6716
|
// src/api/dto/workspaces/git.ts
|
|
6704
|
-
import { z as
|
|
6705
|
-
var DTOGitOrganization =
|
|
6706
|
-
id:
|
|
6707
|
-
name:
|
|
6708
|
-
url:
|
|
6709
|
-
slug:
|
|
6717
|
+
import { z as z218 } from "zod";
|
|
6718
|
+
var DTOGitOrganization = z218.object({
|
|
6719
|
+
id: z218.string(),
|
|
6720
|
+
name: z218.string(),
|
|
6721
|
+
url: z218.string(),
|
|
6722
|
+
slug: z218.string()
|
|
6710
6723
|
});
|
|
6711
|
-
var DTOGitProject =
|
|
6712
|
-
id:
|
|
6713
|
-
name:
|
|
6714
|
-
url:
|
|
6715
|
-
slug:
|
|
6724
|
+
var DTOGitProject = z218.object({
|
|
6725
|
+
id: z218.string(),
|
|
6726
|
+
name: z218.string(),
|
|
6727
|
+
url: z218.string(),
|
|
6728
|
+
slug: z218.string()
|
|
6716
6729
|
});
|
|
6717
|
-
var DTOGitRepository =
|
|
6718
|
-
id:
|
|
6719
|
-
name:
|
|
6720
|
-
url:
|
|
6721
|
-
slug:
|
|
6722
|
-
defaultBranch:
|
|
6730
|
+
var DTOGitRepository = z218.object({
|
|
6731
|
+
id: z218.string(),
|
|
6732
|
+
name: z218.string(),
|
|
6733
|
+
url: z218.string(),
|
|
6734
|
+
slug: z218.string(),
|
|
6735
|
+
defaultBranch: z218.string().optional()
|
|
6723
6736
|
});
|
|
6724
|
-
var DTOGitBranch =
|
|
6725
|
-
name:
|
|
6726
|
-
lastCommitId:
|
|
6737
|
+
var DTOGitBranch = z218.object({
|
|
6738
|
+
name: z218.string(),
|
|
6739
|
+
lastCommitId: z218.string()
|
|
6727
6740
|
});
|
|
6728
6741
|
|
|
6729
6742
|
// src/api/dto/workspaces/integrations.ts
|
|
6730
|
-
import { z as
|
|
6743
|
+
import { z as z219 } from "zod";
|
|
6731
6744
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6732
6745
|
accessToken: true,
|
|
6733
6746
|
refreshToken: true
|
|
6734
6747
|
});
|
|
6735
|
-
var DTOIntegration =
|
|
6736
|
-
id:
|
|
6737
|
-
workspaceId:
|
|
6748
|
+
var DTOIntegration = z219.object({
|
|
6749
|
+
id: z219.string(),
|
|
6750
|
+
workspaceId: z219.string(),
|
|
6738
6751
|
type: ExtendedIntegrationType,
|
|
6739
|
-
createdAt:
|
|
6740
|
-
integrationCredentials:
|
|
6741
|
-
integrationDesignSystems:
|
|
6752
|
+
createdAt: z219.coerce.date(),
|
|
6753
|
+
integrationCredentials: z219.array(DTOIntegrationCredentials).optional(),
|
|
6754
|
+
integrationDesignSystems: z219.array(IntegrationDesignSystem).optional()
|
|
6742
6755
|
});
|
|
6743
|
-
var DTOIntegrationOAuthGetResponse =
|
|
6744
|
-
url:
|
|
6756
|
+
var DTOIntegrationOAuthGetResponse = z219.object({
|
|
6757
|
+
url: z219.string()
|
|
6745
6758
|
});
|
|
6746
|
-
var DTOIntegrationPostResponse =
|
|
6759
|
+
var DTOIntegrationPostResponse = z219.object({
|
|
6747
6760
|
integration: DTOIntegration
|
|
6748
6761
|
});
|
|
6749
|
-
var DTOIntegrationsGetListResponse =
|
|
6762
|
+
var DTOIntegrationsGetListResponse = z219.object({
|
|
6750
6763
|
integrations: DTOIntegration.array()
|
|
6751
6764
|
});
|
|
6752
6765
|
|
|
6753
6766
|
// src/api/dto/workspaces/invitations.ts
|
|
6754
|
-
import { z as
|
|
6755
|
-
var DTOWorkspaceInvitationInput =
|
|
6756
|
-
email:
|
|
6767
|
+
import { z as z220 } from "zod";
|
|
6768
|
+
var DTOWorkspaceInvitationInput = z220.object({
|
|
6769
|
+
email: z220.string().email(),
|
|
6757
6770
|
role: WorkspaceRoleSchema
|
|
6758
6771
|
});
|
|
6759
|
-
var DTOWorkspaceInvitationsListInput =
|
|
6772
|
+
var DTOWorkspaceInvitationsListInput = z220.object({
|
|
6760
6773
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6761
|
-
designSystemId:
|
|
6774
|
+
designSystemId: z220.string().optional()
|
|
6762
6775
|
});
|
|
6763
|
-
var DTOWorkspaceInvitationsResponse =
|
|
6776
|
+
var DTOWorkspaceInvitationsResponse = z220.object({
|
|
6764
6777
|
invitations: WorkspaceInvitation.array()
|
|
6765
6778
|
});
|
|
6766
|
-
var DTOWorkspaceInviteUpdate =
|
|
6779
|
+
var DTOWorkspaceInviteUpdate = z220.object({
|
|
6767
6780
|
role: WorkspaceRoleSchema
|
|
6768
6781
|
});
|
|
6769
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
6782
|
+
var DTOWorkspaceInvitationUpdateResponse = z220.object({
|
|
6770
6783
|
invitation: WorkspaceInvitation
|
|
6771
6784
|
});
|
|
6772
6785
|
|
|
6773
6786
|
// src/api/dto/workspaces/membership.ts
|
|
6774
|
-
import { z as
|
|
6787
|
+
import { z as z223 } from "zod";
|
|
6775
6788
|
|
|
6776
6789
|
// src/api/dto/workspaces/workspace.ts
|
|
6777
|
-
import { z as
|
|
6790
|
+
import { z as z222 } from "zod";
|
|
6778
6791
|
|
|
6779
6792
|
// src/api/dto/workspaces/npm-registry.ts
|
|
6780
|
-
import { z as
|
|
6793
|
+
import { z as z221 } from "zod";
|
|
6781
6794
|
var DTONpmRegistryConfigConstants = {
|
|
6782
6795
|
passwordPlaceholder: "redacted"
|
|
6783
6796
|
};
|
|
6784
|
-
var DTONpmRegistryConfig =
|
|
6797
|
+
var DTONpmRegistryConfig = z221.object({
|
|
6785
6798
|
// Registry basic configuration
|
|
6786
6799
|
registryType: NpmRegistryType,
|
|
6787
|
-
registryUrl:
|
|
6788
|
-
customRegistryUrl:
|
|
6800
|
+
registryUrl: z221.string(),
|
|
6801
|
+
customRegistryUrl: z221.string().optional(),
|
|
6789
6802
|
// URL of Supernova NPM packages proxy
|
|
6790
|
-
proxyUrl:
|
|
6803
|
+
proxyUrl: z221.string(),
|
|
6791
6804
|
// Auth configuration
|
|
6792
6805
|
authType: NpmRegistryAuthType,
|
|
6793
|
-
accessToken:
|
|
6794
|
-
username:
|
|
6795
|
-
password:
|
|
6806
|
+
accessToken: z221.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6807
|
+
username: z221.string().optional(),
|
|
6808
|
+
password: z221.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6796
6809
|
// NPM package scopes for whih the proxy should be enabled
|
|
6797
|
-
enabledScopes:
|
|
6810
|
+
enabledScopes: z221.array(z221.string()),
|
|
6798
6811
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6799
6812
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6800
|
-
bypassProxy:
|
|
6813
|
+
bypassProxy: z221.boolean()
|
|
6801
6814
|
});
|
|
6802
|
-
var DTONpmRegistryAccessTokenResponse =
|
|
6803
|
-
version:
|
|
6804
|
-
accessToken:
|
|
6805
|
-
registryUrl:
|
|
6815
|
+
var DTONpmRegistryAccessTokenResponse = z221.object({
|
|
6816
|
+
version: z221.number(),
|
|
6817
|
+
accessToken: z221.string().optional(),
|
|
6818
|
+
registryUrl: z221.string()
|
|
6806
6819
|
});
|
|
6807
|
-
var DTOUpdateRegistryInput =
|
|
6820
|
+
var DTOUpdateRegistryInput = z221.object({
|
|
6808
6821
|
registryType: nullishToOptional(NpmRegistryType),
|
|
6809
6822
|
authType: nullishToOptional(NpmRegistryAuthType),
|
|
6810
|
-
enabledScopes: nullishToOptional(
|
|
6811
|
-
customRegistryUrl: nullishToOptional(
|
|
6812
|
-
bypassProxy: nullishToOptional(
|
|
6813
|
-
npmProxyVersion: nullishToOptional(
|
|
6814
|
-
authHeaderName: nullishToOptional(
|
|
6815
|
-
authHeaderValue: nullishToOptional(
|
|
6816
|
-
accessToken: nullishToOptional(
|
|
6817
|
-
username: nullishToOptional(
|
|
6818
|
-
password: nullishToOptional(
|
|
6819
|
-
});
|
|
6820
|
-
var DTOUpdateRegistryOutput =
|
|
6823
|
+
enabledScopes: nullishToOptional(z221.array(z221.string())),
|
|
6824
|
+
customRegistryUrl: nullishToOptional(z221.string()),
|
|
6825
|
+
bypassProxy: nullishToOptional(z221.boolean()),
|
|
6826
|
+
npmProxyVersion: nullishToOptional(z221.number()),
|
|
6827
|
+
authHeaderName: nullishToOptional(z221.string()),
|
|
6828
|
+
authHeaderValue: nullishToOptional(z221.string()),
|
|
6829
|
+
accessToken: nullishToOptional(z221.string()),
|
|
6830
|
+
username: nullishToOptional(z221.string()),
|
|
6831
|
+
password: nullishToOptional(z221.string())
|
|
6832
|
+
});
|
|
6833
|
+
var DTOUpdateRegistryOutput = z221.object({
|
|
6821
6834
|
npmRegistrySettings: DTONpmRegistryConfig
|
|
6822
6835
|
});
|
|
6823
6836
|
|
|
6824
6837
|
// src/api/dto/workspaces/workspace.ts
|
|
6825
6838
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6826
|
-
var DTOWorkspace =
|
|
6827
|
-
id:
|
|
6839
|
+
var DTOWorkspace = z222.object({
|
|
6840
|
+
id: z222.string(),
|
|
6828
6841
|
profile: DTOWorkspaceProfile,
|
|
6829
6842
|
subscription: Subscription,
|
|
6830
6843
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6831
6844
|
});
|
|
6832
|
-
var DTOWorkspaceCreateInput =
|
|
6833
|
-
name:
|
|
6845
|
+
var DTOWorkspaceCreateInput = z222.object({
|
|
6846
|
+
name: z222.string()
|
|
6834
6847
|
});
|
|
6835
|
-
var DTOWorkspaceResponse =
|
|
6848
|
+
var DTOWorkspaceResponse = z222.object({
|
|
6836
6849
|
workspace: DTOWorkspace
|
|
6837
6850
|
});
|
|
6838
6851
|
|
|
6839
6852
|
// src/api/dto/workspaces/membership.ts
|
|
6840
|
-
var DTOWorkspaceRole =
|
|
6841
|
-
var DTOUserWorkspaceMembership =
|
|
6853
|
+
var DTOWorkspaceRole = z223.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6854
|
+
var DTOUserWorkspaceMembership = z223.object({
|
|
6842
6855
|
// Workspace the user is a member of
|
|
6843
6856
|
workspace: DTOWorkspace,
|
|
6844
6857
|
// Assigned role the user has in the workspace
|
|
@@ -6848,54 +6861,54 @@ var DTOUserWorkspaceMembership = z222.object({
|
|
|
6848
6861
|
// when a workspace's subscription is downgraded to free tier
|
|
6849
6862
|
effectiveRole: DTOWorkspaceRole
|
|
6850
6863
|
});
|
|
6851
|
-
var DTOWorkspaceMember =
|
|
6864
|
+
var DTOWorkspaceMember = z223.object({
|
|
6852
6865
|
user: User,
|
|
6853
6866
|
role: WorkspaceRoleSchema,
|
|
6854
6867
|
effectiveRole: WorkspaceRoleSchema
|
|
6855
6868
|
});
|
|
6856
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6857
|
-
membership:
|
|
6869
|
+
var DTOUserWorkspaceMembershipsResponse = z223.object({
|
|
6870
|
+
membership: z223.array(DTOUserWorkspaceMembership)
|
|
6858
6871
|
});
|
|
6859
|
-
var DTOWorkspaceMembersListResponse =
|
|
6860
|
-
members:
|
|
6872
|
+
var DTOWorkspaceMembersListResponse = z223.object({
|
|
6873
|
+
members: z223.array(DTOWorkspaceMember)
|
|
6861
6874
|
});
|
|
6862
6875
|
|
|
6863
6876
|
// src/api/dto/workspaces/untyped-data.ts
|
|
6864
|
-
import { z as
|
|
6877
|
+
import { z as z224 } from "zod";
|
|
6865
6878
|
var DTOWorkspaceUntypedData = WorkspaceUntypedData;
|
|
6866
|
-
var DTOWorkspaceUntypedDataListResponse =
|
|
6879
|
+
var DTOWorkspaceUntypedDataListResponse = z224.object({
|
|
6867
6880
|
data: DTOWorkspaceUntypedData.array()
|
|
6868
6881
|
});
|
|
6869
|
-
var DTOWorkspaceUntypedDataResponse =
|
|
6882
|
+
var DTOWorkspaceUntypedDataResponse = z224.object({
|
|
6870
6883
|
data: DTOWorkspaceUntypedData
|
|
6871
6884
|
});
|
|
6872
|
-
var DTOWorkspaceUntypedDataCreatePayload =
|
|
6873
|
-
value:
|
|
6885
|
+
var DTOWorkspaceUntypedDataCreatePayload = z224.object({
|
|
6886
|
+
value: z224.unknown()
|
|
6874
6887
|
});
|
|
6875
|
-
var DTOWorkspaceUntypedDataUpdatePayload =
|
|
6876
|
-
value:
|
|
6888
|
+
var DTOWorkspaceUntypedDataUpdatePayload = z224.object({
|
|
6889
|
+
value: z224.unknown()
|
|
6877
6890
|
});
|
|
6878
6891
|
|
|
6879
6892
|
// src/api/dto/design-systems/user-design-systems.ts
|
|
6880
|
-
var DTOUserDesignSystemsResponse =
|
|
6893
|
+
var DTOUserDesignSystemsResponse = z225.object({
|
|
6881
6894
|
designSystems: DTODesignSystem.array(),
|
|
6882
6895
|
workspaces: DTOWorkspace.array()
|
|
6883
6896
|
});
|
|
6884
6897
|
|
|
6885
6898
|
// src/api/dto/design-systems/version-room.ts
|
|
6886
|
-
import { z as
|
|
6887
|
-
var DTODesignSystemVersionRoom =
|
|
6888
|
-
id:
|
|
6899
|
+
import { z as z226 } from "zod";
|
|
6900
|
+
var DTODesignSystemVersionRoom = z226.object({
|
|
6901
|
+
id: z226.string()
|
|
6889
6902
|
});
|
|
6890
|
-
var DTODesignSystemVersionRoomResponse =
|
|
6903
|
+
var DTODesignSystemVersionRoomResponse = z226.object({
|
|
6891
6904
|
room: DTODesignSystemVersionRoom
|
|
6892
6905
|
});
|
|
6893
6906
|
|
|
6894
6907
|
// src/api/dto/design-systems/version.ts
|
|
6895
|
-
import { z as
|
|
6908
|
+
import { z as z239 } from "zod";
|
|
6896
6909
|
|
|
6897
6910
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
6898
|
-
import { z as
|
|
6911
|
+
import { z as z227 } from "zod";
|
|
6899
6912
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
6900
6913
|
id: true,
|
|
6901
6914
|
workspaceId: true,
|
|
@@ -6907,56 +6920,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
6907
6920
|
}).extend({
|
|
6908
6921
|
meta: ObjectMeta.partial().optional()
|
|
6909
6922
|
});
|
|
6910
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
6923
|
+
var DTODesignSystemUpdateAccessModeInput = z227.object({
|
|
6911
6924
|
accessMode: DesignSystemAccessMode,
|
|
6912
|
-
retain:
|
|
6913
|
-
userIds:
|
|
6914
|
-
inviteIds:
|
|
6925
|
+
retain: z227.object({
|
|
6926
|
+
userIds: z227.string().array(),
|
|
6927
|
+
inviteIds: z227.string().array()
|
|
6915
6928
|
}).optional()
|
|
6916
6929
|
});
|
|
6917
6930
|
|
|
6918
6931
|
// src/api/payloads/design-systems/version.ts
|
|
6919
|
-
import { z as
|
|
6920
|
-
var ObjectMeta2 =
|
|
6921
|
-
name:
|
|
6922
|
-
description:
|
|
6932
|
+
import { z as z228 } from "zod";
|
|
6933
|
+
var ObjectMeta2 = z228.object({
|
|
6934
|
+
name: z228.string().max(150).optional(),
|
|
6935
|
+
description: z228.string().max(2e3).optional()
|
|
6923
6936
|
});
|
|
6924
6937
|
function validateDesignSystemVersion(version) {
|
|
6925
6938
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
6926
6939
|
return urlCompliantRegex.test(version);
|
|
6927
6940
|
}
|
|
6928
|
-
var DTOCreateVersionInput =
|
|
6941
|
+
var DTOCreateVersionInput = z228.object({
|
|
6929
6942
|
meta: ObjectMeta2,
|
|
6930
|
-
version:
|
|
6943
|
+
version: z228.string().refine(validateDesignSystemVersion, {
|
|
6931
6944
|
message: "Invalid semantic versioning format"
|
|
6932
6945
|
}),
|
|
6933
|
-
changeLog:
|
|
6946
|
+
changeLog: z228.string().optional()
|
|
6934
6947
|
});
|
|
6935
|
-
var DTOUpdateVersionInput =
|
|
6948
|
+
var DTOUpdateVersionInput = z228.object({
|
|
6936
6949
|
meta: ObjectMeta2,
|
|
6937
|
-
version:
|
|
6950
|
+
version: z228.string(),
|
|
6938
6951
|
// required for PUT, but not editable
|
|
6939
|
-
changeLog:
|
|
6952
|
+
changeLog: z228.string()
|
|
6940
6953
|
});
|
|
6941
6954
|
|
|
6942
6955
|
// src/api/payloads/documentation/analytics.ts
|
|
6943
|
-
import { z as
|
|
6944
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
6945
|
-
referencePeriod:
|
|
6946
|
-
start:
|
|
6947
|
-
end:
|
|
6956
|
+
import { z as z229 } from "zod";
|
|
6957
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z229.object({
|
|
6958
|
+
referencePeriod: z229.object({
|
|
6959
|
+
start: z229.coerce.date(),
|
|
6960
|
+
end: z229.coerce.date().optional()
|
|
6948
6961
|
}),
|
|
6949
|
-
baselinePeriod:
|
|
6950
|
-
start:
|
|
6951
|
-
end:
|
|
6962
|
+
baselinePeriod: z229.object({
|
|
6963
|
+
start: z229.coerce.date(),
|
|
6964
|
+
end: z229.coerce.date().optional()
|
|
6952
6965
|
})
|
|
6953
6966
|
});
|
|
6954
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
6955
|
-
timeFrames:
|
|
6967
|
+
var DTODocumentationAnalyticsDiffPayload = z229.object({
|
|
6968
|
+
timeFrames: z229.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
6956
6969
|
});
|
|
6957
6970
|
|
|
6958
6971
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6959
|
-
import { z as
|
|
6972
|
+
import { z as z230 } from "zod";
|
|
6960
6973
|
|
|
6961
6974
|
// src/api/dto/documentation/block-definition.ts
|
|
6962
6975
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -6968,79 +6981,79 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
6968
6981
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
6969
6982
|
|
|
6970
6983
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6971
|
-
var DTOGetBlockDefinitionsQuery =
|
|
6972
|
-
files:
|
|
6984
|
+
var DTOGetBlockDefinitionsQuery = z230.object({
|
|
6985
|
+
files: z230.coerce.boolean().optional()
|
|
6973
6986
|
});
|
|
6974
|
-
var DTOGetBlockDefinitionsOutput =
|
|
6975
|
-
definitions:
|
|
6987
|
+
var DTOGetBlockDefinitionsOutput = z230.object({
|
|
6988
|
+
definitions: z230.array(DTOPageBlockDefinition)
|
|
6976
6989
|
});
|
|
6977
6990
|
|
|
6978
6991
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
6979
|
-
import { z as
|
|
6980
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
6981
|
-
environment:
|
|
6992
|
+
import { z as z231 } from "zod";
|
|
6993
|
+
var DTODocumentationPublishTypeQueryParams = z231.object({
|
|
6994
|
+
environment: z231.enum(["Live", "Preview"])
|
|
6982
6995
|
});
|
|
6983
6996
|
|
|
6984
6997
|
// src/api/payloads/export/pipeline.ts
|
|
6985
|
-
import { z as
|
|
6998
|
+
import { z as z233 } from "zod";
|
|
6986
6999
|
|
|
6987
7000
|
// src/api/dto/export/exporter-property.ts
|
|
6988
|
-
import { z as
|
|
6989
|
-
var PrimitiveValue2 =
|
|
6990
|
-
var ArrayValue2 =
|
|
6991
|
-
var ObjectValue2 =
|
|
7001
|
+
import { z as z232 } from "zod";
|
|
7002
|
+
var PrimitiveValue2 = z232.number().or(z232.boolean()).or(z232.string());
|
|
7003
|
+
var ArrayValue2 = z232.array(z232.string());
|
|
7004
|
+
var ObjectValue2 = z232.record(z232.string());
|
|
6992
7005
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
6993
|
-
var DTOExporterPropertyType =
|
|
6994
|
-
var PropertyDefinitionBase2 =
|
|
6995
|
-
key:
|
|
6996
|
-
title:
|
|
6997
|
-
description:
|
|
6998
|
-
category:
|
|
6999
|
-
dependsOn:
|
|
7000
|
-
});
|
|
7001
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
7002
|
-
label:
|
|
7003
|
-
description:
|
|
7006
|
+
var DTOExporterPropertyType = z232.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
7007
|
+
var PropertyDefinitionBase2 = z232.object({
|
|
7008
|
+
key: z232.string(),
|
|
7009
|
+
title: z232.string(),
|
|
7010
|
+
description: z232.string(),
|
|
7011
|
+
category: z232.string().optional(),
|
|
7012
|
+
dependsOn: z232.record(z232.boolean()).optional()
|
|
7013
|
+
});
|
|
7014
|
+
var DTOExporterPropertyDefinitionEnumOption = z232.object({
|
|
7015
|
+
label: z232.string(),
|
|
7016
|
+
description: z232.string()
|
|
7004
7017
|
});
|
|
7005
7018
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
7006
|
-
type:
|
|
7007
|
-
options:
|
|
7008
|
-
default:
|
|
7019
|
+
type: z232.literal(DTOExporterPropertyType.Enum.Enum),
|
|
7020
|
+
options: z232.record(DTOExporterPropertyDefinitionEnumOption),
|
|
7021
|
+
default: z232.string()
|
|
7009
7022
|
});
|
|
7010
7023
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
7011
|
-
type:
|
|
7012
|
-
default:
|
|
7024
|
+
type: z232.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
7025
|
+
default: z232.boolean()
|
|
7013
7026
|
});
|
|
7014
7027
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
7015
|
-
type:
|
|
7016
|
-
default:
|
|
7017
|
-
isMultiline:
|
|
7028
|
+
type: z232.literal(DTOExporterPropertyType.Enum.String),
|
|
7029
|
+
default: z232.string(),
|
|
7030
|
+
isMultiline: z232.boolean().optional()
|
|
7018
7031
|
});
|
|
7019
7032
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
7020
|
-
type:
|
|
7021
|
-
default:
|
|
7033
|
+
type: z232.literal(DTOExporterPropertyType.Enum.Number),
|
|
7034
|
+
default: z232.number()
|
|
7022
7035
|
});
|
|
7023
7036
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
7024
|
-
type:
|
|
7037
|
+
type: z232.literal(DTOExporterPropertyType.Enum.Array),
|
|
7025
7038
|
default: ArrayValue2
|
|
7026
7039
|
});
|
|
7027
7040
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
7028
|
-
type:
|
|
7041
|
+
type: z232.literal(DTOExporterPropertyType.Enum.Object),
|
|
7029
7042
|
default: ObjectValue2,
|
|
7030
|
-
allowedKeys:
|
|
7031
|
-
options:
|
|
7032
|
-
type:
|
|
7043
|
+
allowedKeys: z232.object({
|
|
7044
|
+
options: z232.string().array(),
|
|
7045
|
+
type: z232.string()
|
|
7033
7046
|
}).optional(),
|
|
7034
|
-
allowedValues:
|
|
7035
|
-
type:
|
|
7047
|
+
allowedValues: z232.object({
|
|
7048
|
+
type: z232.string()
|
|
7036
7049
|
}).optional()
|
|
7037
7050
|
});
|
|
7038
7051
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
7039
|
-
type:
|
|
7040
|
-
language:
|
|
7041
|
-
default:
|
|
7052
|
+
type: z232.literal(DTOExporterPropertyType.Enum.Code),
|
|
7053
|
+
language: z232.string(),
|
|
7054
|
+
default: z232.string()
|
|
7042
7055
|
});
|
|
7043
|
-
var DTOExporterPropertyDefinition =
|
|
7056
|
+
var DTOExporterPropertyDefinition = z232.discriminatedUnion("type", [
|
|
7044
7057
|
DTOExporterPropertyDefinitionEnum,
|
|
7045
7058
|
DTOExporterPropertyDefinitionBoolean,
|
|
7046
7059
|
DTOExporterPropertyDefinitionString,
|
|
@@ -7049,84 +7062,84 @@ var DTOExporterPropertyDefinition = z231.discriminatedUnion("type", [
|
|
|
7049
7062
|
DTOExporterPropertyDefinitionObject,
|
|
7050
7063
|
DTOExporterPropertyDefinitionCode
|
|
7051
7064
|
]);
|
|
7052
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
7065
|
+
var DTOExporterPropertyDefinitionsResponse = z232.object({
|
|
7053
7066
|
properties: DTOExporterPropertyDefinition.array()
|
|
7054
7067
|
});
|
|
7055
|
-
var DTOExporterPropertyValueMap =
|
|
7068
|
+
var DTOExporterPropertyValueMap = z232.record(DTOExporterPropertyValue);
|
|
7056
7069
|
|
|
7057
7070
|
// src/api/payloads/export/pipeline.ts
|
|
7058
|
-
var GitDestinationOptions =
|
|
7059
|
-
branch:
|
|
7060
|
-
commitMessage:
|
|
7061
|
-
commitAuthorName:
|
|
7062
|
-
commitAuthorEmail:
|
|
7063
|
-
pullRequestTitle:
|
|
7064
|
-
pullRequestDescription:
|
|
7065
|
-
relativePath:
|
|
7066
|
-
purgeDirectory:
|
|
7067
|
-
});
|
|
7068
|
-
var DTOPipelineCreateBody =
|
|
7069
|
-
name:
|
|
7070
|
-
exporterId:
|
|
7071
|
-
designSystemId:
|
|
7072
|
-
isEnabled:
|
|
7071
|
+
var GitDestinationOptions = z233.object({
|
|
7072
|
+
branch: z233.string().min(1).nullish(),
|
|
7073
|
+
commitMessage: z233.string().min(1).nullish(),
|
|
7074
|
+
commitAuthorName: z233.string().min(1).nullish(),
|
|
7075
|
+
commitAuthorEmail: z233.string().email().nullish(),
|
|
7076
|
+
pullRequestTitle: z233.string().min(1).nullish(),
|
|
7077
|
+
pullRequestDescription: z233.string().min(1).nullish(),
|
|
7078
|
+
relativePath: z233.string().nullish(),
|
|
7079
|
+
purgeDirectory: z233.boolean().nullish()
|
|
7080
|
+
});
|
|
7081
|
+
var DTOPipelineCreateBody = z233.object({
|
|
7082
|
+
name: z233.string(),
|
|
7083
|
+
exporterId: z233.string(),
|
|
7084
|
+
designSystemId: z233.string(),
|
|
7085
|
+
isEnabled: z233.boolean(),
|
|
7073
7086
|
eventType: PipelineEventType,
|
|
7074
|
-
brandPersistentId:
|
|
7075
|
-
themePersistentId:
|
|
7076
|
-
themePersistentIds:
|
|
7087
|
+
brandPersistentId: z233.string().optional(),
|
|
7088
|
+
themePersistentId: z233.string().optional(),
|
|
7089
|
+
themePersistentIds: z233.string().array().optional(),
|
|
7077
7090
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7078
7091
|
destination: PipelineDestinationType.optional(),
|
|
7079
7092
|
gitQuery: GitObjectsQuery,
|
|
7080
|
-
destinations:
|
|
7093
|
+
destinations: z233.object({
|
|
7081
7094
|
s3: ExporterDestinationS3.nullish(),
|
|
7082
7095
|
azure: ExporterDestinationAzure.nullish(),
|
|
7083
7096
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
7084
7097
|
github: ExporterDestinationGithub.nullish(),
|
|
7085
7098
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
7086
7099
|
documentation: ExporterDestinationDocs.nullish(),
|
|
7087
|
-
webhookUrl:
|
|
7100
|
+
webhookUrl: z233.string().nullish()
|
|
7088
7101
|
})
|
|
7089
7102
|
});
|
|
7090
|
-
var DTOPipelineUpdateBody =
|
|
7091
|
-
exporterId:
|
|
7092
|
-
name:
|
|
7093
|
-
isEnabled:
|
|
7103
|
+
var DTOPipelineUpdateBody = z233.object({
|
|
7104
|
+
exporterId: z233.string().optional(),
|
|
7105
|
+
name: z233.string().optional(),
|
|
7106
|
+
isEnabled: z233.boolean().optional(),
|
|
7094
7107
|
eventType: PipelineEventType.optional(),
|
|
7095
|
-
brandPersistentId:
|
|
7096
|
-
themePersistentId:
|
|
7097
|
-
themePersistentIds:
|
|
7108
|
+
brandPersistentId: z233.string().optional(),
|
|
7109
|
+
themePersistentId: z233.string().optional(),
|
|
7110
|
+
themePersistentIds: z233.string().array().optional(),
|
|
7098
7111
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7099
7112
|
destination: PipelineDestinationType.optional(),
|
|
7100
7113
|
gitQuery: GitObjectsQuery.optional(),
|
|
7101
|
-
destinations:
|
|
7114
|
+
destinations: z233.object({
|
|
7102
7115
|
s3: ExporterDestinationS3.nullish(),
|
|
7103
7116
|
azure: ExporterDestinationAzure.nullish(),
|
|
7104
7117
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
7105
7118
|
github: ExporterDestinationGithub.nullish(),
|
|
7106
7119
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
7107
7120
|
documentation: ExporterDestinationDocs.nullish(),
|
|
7108
|
-
webhookUrl:
|
|
7121
|
+
webhookUrl: z233.string().nullish()
|
|
7109
7122
|
}).optional(),
|
|
7110
7123
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
7111
7124
|
});
|
|
7112
|
-
var DTOPipelineTriggerBody =
|
|
7113
|
-
designSystemVersionId:
|
|
7125
|
+
var DTOPipelineTriggerBody = z233.object({
|
|
7126
|
+
designSystemVersionId: z233.string()
|
|
7114
7127
|
});
|
|
7115
7128
|
|
|
7116
7129
|
// src/api/payloads/liveblocks/auth.ts
|
|
7117
|
-
import { z as
|
|
7118
|
-
var DTOLiveblocksAuthRequest =
|
|
7119
|
-
room:
|
|
7130
|
+
import { z as z234 } from "zod";
|
|
7131
|
+
var DTOLiveblocksAuthRequest = z234.object({
|
|
7132
|
+
room: z234.string().optional()
|
|
7120
7133
|
});
|
|
7121
7134
|
|
|
7122
7135
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
7123
|
-
import { z as
|
|
7124
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
7136
|
+
import { z as z235 } from "zod";
|
|
7137
|
+
var DTOUpdateUserNotificationSettingsPayload = z235.object({
|
|
7125
7138
|
notificationSettings: UserNotificationSettings
|
|
7126
7139
|
});
|
|
7127
|
-
var DTOUserNotificationSettingsResponse =
|
|
7128
|
-
userId:
|
|
7129
|
-
workspaceId:
|
|
7140
|
+
var DTOUserNotificationSettingsResponse = z235.object({
|
|
7141
|
+
userId: z235.string(),
|
|
7142
|
+
workspaceId: z235.string(),
|
|
7130
7143
|
notificationSettings: UserNotificationSettings
|
|
7131
7144
|
});
|
|
7132
7145
|
|
|
@@ -7134,13 +7147,13 @@ var DTOUserNotificationSettingsResponse = z234.object({
|
|
|
7134
7147
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
7135
7148
|
|
|
7136
7149
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
7137
|
-
import { z as
|
|
7138
|
-
var DTOTransferOwnershipPayload =
|
|
7139
|
-
newOwnerId:
|
|
7150
|
+
import { z as z236 } from "zod";
|
|
7151
|
+
var DTOTransferOwnershipPayload = z236.object({
|
|
7152
|
+
newOwnerId: z236.string()
|
|
7140
7153
|
});
|
|
7141
7154
|
|
|
7142
7155
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
7143
|
-
import { z as
|
|
7156
|
+
import { z as z237 } from "zod";
|
|
7144
7157
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
7145
7158
|
function validateSsoPayload(ssoPayload) {
|
|
7146
7159
|
const keys = [];
|
|
@@ -7163,21 +7176,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
7163
7176
|
keys
|
|
7164
7177
|
};
|
|
7165
7178
|
}
|
|
7166
|
-
var NpmRegistryInput =
|
|
7167
|
-
enabledScopes:
|
|
7168
|
-
customRegistryUrl:
|
|
7169
|
-
bypassProxy:
|
|
7170
|
-
npmProxyRegistryConfigId:
|
|
7171
|
-
npmProxyVersion:
|
|
7172
|
-
registryType:
|
|
7173
|
-
authType:
|
|
7174
|
-
authHeaderName:
|
|
7175
|
-
authHeaderValue:
|
|
7176
|
-
accessToken:
|
|
7177
|
-
username:
|
|
7178
|
-
password:
|
|
7179
|
-
});
|
|
7180
|
-
var WorkspaceConfigurationPayload =
|
|
7179
|
+
var NpmRegistryInput = z237.object({
|
|
7180
|
+
enabledScopes: z237.array(z237.string()),
|
|
7181
|
+
customRegistryUrl: z237.string().optional(),
|
|
7182
|
+
bypassProxy: z237.boolean().optional(),
|
|
7183
|
+
npmProxyRegistryConfigId: z237.string().optional(),
|
|
7184
|
+
npmProxyVersion: z237.number().optional(),
|
|
7185
|
+
registryType: z237.string(),
|
|
7186
|
+
authType: z237.string(),
|
|
7187
|
+
authHeaderName: z237.string(),
|
|
7188
|
+
authHeaderValue: z237.string(),
|
|
7189
|
+
accessToken: z237.string(),
|
|
7190
|
+
username: z237.string(),
|
|
7191
|
+
password: z237.string()
|
|
7192
|
+
});
|
|
7193
|
+
var WorkspaceConfigurationPayload = z237.object({
|
|
7181
7194
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
7182
7195
|
sso: SsoProvider.partial().optional(),
|
|
7183
7196
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -7185,107 +7198,107 @@ var WorkspaceConfigurationPayload = z236.object({
|
|
|
7185
7198
|
});
|
|
7186
7199
|
|
|
7187
7200
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
7188
|
-
import { z as
|
|
7189
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
7201
|
+
import { z as z238 } from "zod";
|
|
7202
|
+
var DTOWorkspaceIntegrationOauthInput = z238.object({
|
|
7190
7203
|
type: IntegrationType
|
|
7191
7204
|
});
|
|
7192
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
7205
|
+
var DTOWorkspaceIntegrationPATInput = z238.object({
|
|
7193
7206
|
type: IntegrationType,
|
|
7194
7207
|
token: IntegrationToken
|
|
7195
7208
|
});
|
|
7196
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
7197
|
-
organization:
|
|
7209
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z238.object({
|
|
7210
|
+
organization: z238.string().optional(),
|
|
7198
7211
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
7199
|
-
project:
|
|
7212
|
+
project: z238.string().optional(),
|
|
7200
7213
|
// Only for Bitbucket and Azure
|
|
7201
|
-
repository:
|
|
7214
|
+
repository: z238.string().optional(),
|
|
7202
7215
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
7203
|
-
branch:
|
|
7216
|
+
branch: z238.string().optional(),
|
|
7204
7217
|
// For all providers, useful for PR creations.
|
|
7205
|
-
user:
|
|
7218
|
+
user: z238.string().optional()
|
|
7206
7219
|
// Only for Gitlab User Repositories
|
|
7207
7220
|
});
|
|
7208
7221
|
|
|
7209
7222
|
// src/api/dto/design-systems/version.ts
|
|
7210
|
-
var DTODesignSystemVersion =
|
|
7211
|
-
id:
|
|
7212
|
-
createdAt:
|
|
7223
|
+
var DTODesignSystemVersion = z239.object({
|
|
7224
|
+
id: z239.string(),
|
|
7225
|
+
createdAt: z239.coerce.date(),
|
|
7213
7226
|
meta: ObjectMeta,
|
|
7214
|
-
version:
|
|
7215
|
-
isReadonly:
|
|
7216
|
-
changeLog:
|
|
7217
|
-
designSystemId:
|
|
7227
|
+
version: z239.string(),
|
|
7228
|
+
isReadonly: z239.boolean(),
|
|
7229
|
+
changeLog: z239.string(),
|
|
7230
|
+
designSystemId: z239.string()
|
|
7218
7231
|
});
|
|
7219
|
-
var DTODesignSystemVersionsListResponse =
|
|
7220
|
-
designSystemVersions:
|
|
7232
|
+
var DTODesignSystemVersionsListResponse = z239.object({
|
|
7233
|
+
designSystemVersions: z239.array(DTODesignSystemVersion)
|
|
7221
7234
|
});
|
|
7222
|
-
var DTODesignSystemVersionGetResponse =
|
|
7235
|
+
var DTODesignSystemVersionGetResponse = z239.object({
|
|
7223
7236
|
designSystemVersion: DTODesignSystemVersion
|
|
7224
7237
|
});
|
|
7225
|
-
var DTODesignSystemVersionCreationResponse =
|
|
7238
|
+
var DTODesignSystemVersionCreationResponse = z239.object({
|
|
7226
7239
|
meta: ObjectMeta,
|
|
7227
|
-
version:
|
|
7228
|
-
changeLog:
|
|
7229
|
-
isReadOnly:
|
|
7230
|
-
designSystemId:
|
|
7231
|
-
jobId:
|
|
7232
|
-
});
|
|
7233
|
-
var VersionSQSPayload =
|
|
7234
|
-
jobId:
|
|
7235
|
-
designSystemId:
|
|
7240
|
+
version: z239.string(),
|
|
7241
|
+
changeLog: z239.string(),
|
|
7242
|
+
isReadOnly: z239.boolean(),
|
|
7243
|
+
designSystemId: z239.string(),
|
|
7244
|
+
jobId: z239.string()
|
|
7245
|
+
});
|
|
7246
|
+
var VersionSQSPayload = z239.object({
|
|
7247
|
+
jobId: z239.string(),
|
|
7248
|
+
designSystemId: z239.string(),
|
|
7236
7249
|
input: DTOCreateVersionInput
|
|
7237
7250
|
});
|
|
7238
|
-
var DTODesignSystemVersionJobsResponse =
|
|
7239
|
-
jobs:
|
|
7251
|
+
var DTODesignSystemVersionJobsResponse = z239.object({
|
|
7252
|
+
jobs: z239.array(VersionCreationJob)
|
|
7240
7253
|
});
|
|
7241
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
7254
|
+
var DTODesignSystemVersionJobStatusResponse = z239.object({
|
|
7242
7255
|
job: VersionCreationJob
|
|
7243
7256
|
});
|
|
7244
7257
|
|
|
7245
7258
|
// src/api/dto/design-systems/view.ts
|
|
7246
|
-
import { z as
|
|
7247
|
-
var DTOElementViewColumnSharedAttributes =
|
|
7248
|
-
id:
|
|
7249
|
-
persistentId:
|
|
7250
|
-
width:
|
|
7259
|
+
import { z as z240 } from "zod";
|
|
7260
|
+
var DTOElementViewColumnSharedAttributes = z240.object({
|
|
7261
|
+
id: z240.string(),
|
|
7262
|
+
persistentId: z240.string(),
|
|
7263
|
+
width: z240.number()
|
|
7251
7264
|
});
|
|
7252
7265
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7253
|
-
type:
|
|
7266
|
+
type: z240.literal("BaseProperty"),
|
|
7254
7267
|
basePropertyType: ElementViewBaseColumnType
|
|
7255
7268
|
});
|
|
7256
7269
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7257
|
-
type:
|
|
7258
|
-
propertyDefinitionId:
|
|
7270
|
+
type: z240.literal("PropertyDefinition"),
|
|
7271
|
+
propertyDefinitionId: z240.string()
|
|
7259
7272
|
});
|
|
7260
7273
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
7261
|
-
type:
|
|
7262
|
-
themeId:
|
|
7274
|
+
type: z240.literal("Theme"),
|
|
7275
|
+
themeId: z240.string()
|
|
7263
7276
|
});
|
|
7264
|
-
var DTOElementViewColumn =
|
|
7277
|
+
var DTOElementViewColumn = z240.discriminatedUnion("type", [
|
|
7265
7278
|
DTOElementViewBasePropertyColumn,
|
|
7266
7279
|
DTOElementViewPropertyDefinitionColumn,
|
|
7267
7280
|
DTOElementViewThemeColumn
|
|
7268
7281
|
]);
|
|
7269
|
-
var DTOElementView =
|
|
7282
|
+
var DTOElementView = z240.object({
|
|
7270
7283
|
meta: ObjectMeta,
|
|
7271
|
-
persistentId:
|
|
7284
|
+
persistentId: z240.string(),
|
|
7272
7285
|
targetElementType: ElementPropertyTargetType,
|
|
7273
|
-
id:
|
|
7274
|
-
isDefault:
|
|
7275
|
-
columns:
|
|
7286
|
+
id: z240.string(),
|
|
7287
|
+
isDefault: z240.boolean(),
|
|
7288
|
+
columns: z240.array(DTOElementViewColumn)
|
|
7276
7289
|
});
|
|
7277
|
-
var DTOElementViewsListResponse =
|
|
7278
|
-
elementDataViews:
|
|
7290
|
+
var DTOElementViewsListResponse = z240.object({
|
|
7291
|
+
elementDataViews: z240.array(DTOElementView)
|
|
7279
7292
|
});
|
|
7280
7293
|
|
|
7281
7294
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
7282
|
-
var DTOAppBootstrapDataQuery =
|
|
7283
|
-
preferredWorkspaceId:
|
|
7284
|
-
preferredDesignSystemId:
|
|
7285
|
-
preferredVersionId:
|
|
7286
|
-
preferredBrandId:
|
|
7295
|
+
var DTOAppBootstrapDataQuery = z241.object({
|
|
7296
|
+
preferredWorkspaceId: z241.string().optional(),
|
|
7297
|
+
preferredDesignSystemId: z241.string().optional(),
|
|
7298
|
+
preferredVersionId: z241.string().optional(),
|
|
7299
|
+
preferredBrandId: z241.string().optional()
|
|
7287
7300
|
});
|
|
7288
|
-
var DTOAppBootstrapDataResponse =
|
|
7301
|
+
var DTOAppBootstrapDataResponse = z241.object({
|
|
7289
7302
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
7290
7303
|
designSystem: DTODesignSystem.optional(),
|
|
7291
7304
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -7293,92 +7306,92 @@ var DTOAppBootstrapDataResponse = z240.object({
|
|
|
7293
7306
|
});
|
|
7294
7307
|
|
|
7295
7308
|
// src/api/dto/collections/token-collection.ts
|
|
7296
|
-
import { z as
|
|
7297
|
-
var DTOTokenCollection =
|
|
7298
|
-
id:
|
|
7299
|
-
persistentId:
|
|
7300
|
-
designSystemVersionId:
|
|
7309
|
+
import { z as z242 } from "zod";
|
|
7310
|
+
var DTOTokenCollection = z242.object({
|
|
7311
|
+
id: z242.string(),
|
|
7312
|
+
persistentId: z242.string(),
|
|
7313
|
+
designSystemVersionId: z242.string(),
|
|
7301
7314
|
meta: ObjectMeta,
|
|
7302
7315
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
7303
|
-
elementPropertyOptionId:
|
|
7304
|
-
createdAt:
|
|
7305
|
-
updatedAt:
|
|
7316
|
+
elementPropertyOptionId: z242.string(),
|
|
7317
|
+
createdAt: z242.coerce.date(),
|
|
7318
|
+
updatedAt: z242.coerce.date(),
|
|
7306
7319
|
origin: CollectionOrigin.optional()
|
|
7307
7320
|
});
|
|
7308
|
-
var DTOTokenCollectionsListReponse =
|
|
7321
|
+
var DTOTokenCollectionsListReponse = z242.object({
|
|
7309
7322
|
collections: DTOTokenCollection.array()
|
|
7310
7323
|
});
|
|
7311
7324
|
|
|
7312
7325
|
// src/api/dto/design-tokens/design-token.ts
|
|
7313
|
-
import { z as
|
|
7326
|
+
import { z as z243 } from "zod";
|
|
7314
7327
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
7315
|
-
|
|
7316
|
-
id:
|
|
7317
|
-
persistentId:
|
|
7318
|
-
designSystemVersionId:
|
|
7328
|
+
z243.object({
|
|
7329
|
+
id: z243.string(),
|
|
7330
|
+
persistentId: z243.string(),
|
|
7331
|
+
designSystemVersionId: z243.string(),
|
|
7319
7332
|
meta: ObjectMeta,
|
|
7320
7333
|
originStyle: DesignTokenOrigin.optional(),
|
|
7321
|
-
brandId:
|
|
7322
|
-
collectionId:
|
|
7323
|
-
updatedAt:
|
|
7334
|
+
brandId: z243.string(),
|
|
7335
|
+
collectionId: z243.string().optional(),
|
|
7336
|
+
updatedAt: z243.coerce.date()
|
|
7324
7337
|
})
|
|
7325
7338
|
);
|
|
7326
|
-
var DTODesignTokenListResponse =
|
|
7339
|
+
var DTODesignTokenListResponse = z243.object({
|
|
7327
7340
|
tokens: DTODesignToken.array()
|
|
7328
7341
|
});
|
|
7329
|
-
var DTODesignTokenResponse =
|
|
7342
|
+
var DTODesignTokenResponse = z243.object({
|
|
7330
7343
|
token: DTODesignToken
|
|
7331
7344
|
});
|
|
7332
|
-
var DTODesignTokenGroup =
|
|
7333
|
-
id:
|
|
7345
|
+
var DTODesignTokenGroup = z243.object({
|
|
7346
|
+
id: z243.string(),
|
|
7334
7347
|
tokenType: DesignTokenType,
|
|
7335
|
-
persistentId:
|
|
7336
|
-
isRoot:
|
|
7337
|
-
brandId:
|
|
7348
|
+
persistentId: z243.string(),
|
|
7349
|
+
isRoot: z243.boolean(),
|
|
7350
|
+
brandId: z243.string(),
|
|
7338
7351
|
meta: ObjectMeta,
|
|
7339
|
-
childrenIds:
|
|
7352
|
+
childrenIds: z243.string().array()
|
|
7340
7353
|
});
|
|
7341
|
-
var DTODesignTokenGroupListResponse =
|
|
7354
|
+
var DTODesignTokenGroupListResponse = z243.object({
|
|
7342
7355
|
groups: DTODesignTokenGroup.array()
|
|
7343
7356
|
});
|
|
7344
|
-
var DTODesignTokenGroupResponse =
|
|
7357
|
+
var DTODesignTokenGroupResponse = z243.object({
|
|
7345
7358
|
group: DTODesignTokenGroup
|
|
7346
7359
|
});
|
|
7347
7360
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
7348
|
-
|
|
7349
|
-
persistentId:
|
|
7361
|
+
z243.object({
|
|
7362
|
+
persistentId: z243.string(),
|
|
7350
7363
|
meta: ObjectMeta,
|
|
7351
|
-
brandId:
|
|
7352
|
-
groupPersistentId:
|
|
7364
|
+
brandId: z243.string(),
|
|
7365
|
+
groupPersistentId: z243.string().optional()
|
|
7353
7366
|
})
|
|
7354
7367
|
);
|
|
7355
|
-
var DTODesignTokenGroupCreatePayload =
|
|
7356
|
-
persistentId:
|
|
7368
|
+
var DTODesignTokenGroupCreatePayload = z243.object({
|
|
7369
|
+
persistentId: z243.string(),
|
|
7357
7370
|
meta: ObjectMeta,
|
|
7358
|
-
brandId:
|
|
7359
|
-
parentId:
|
|
7371
|
+
brandId: z243.string(),
|
|
7372
|
+
parentId: z243.string().optional(),
|
|
7360
7373
|
tokenType: DesignTokenType,
|
|
7361
|
-
childrenIds:
|
|
7374
|
+
childrenIds: z243.string().array()
|
|
7362
7375
|
});
|
|
7363
7376
|
|
|
7364
7377
|
// src/api/dto/documentation/analytics-v2.ts
|
|
7365
|
-
import { z as
|
|
7366
|
-
var DTODocumentationAnalyticsTimeFrame =
|
|
7367
|
-
start:
|
|
7368
|
-
end:
|
|
7378
|
+
import { z as z244 } from "zod";
|
|
7379
|
+
var DTODocumentationAnalyticsTimeFrame = z244.object({
|
|
7380
|
+
start: z244.coerce.date(),
|
|
7381
|
+
end: z244.coerce.date().optional()
|
|
7369
7382
|
});
|
|
7370
|
-
var DTOPublishedDocVisitData =
|
|
7371
|
-
timestamp:
|
|
7372
|
-
versionId:
|
|
7373
|
-
locale:
|
|
7374
|
-
visits:
|
|
7375
|
-
sessions:
|
|
7383
|
+
var DTOPublishedDocVisitData = z244.object({
|
|
7384
|
+
timestamp: z244.coerce.date(),
|
|
7385
|
+
versionId: z244.string(),
|
|
7386
|
+
locale: z244.string().optional(),
|
|
7387
|
+
visits: z244.number(),
|
|
7388
|
+
sessions: z244.number()
|
|
7376
7389
|
});
|
|
7377
7390
|
var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
|
|
7378
|
-
pagePersistentId:
|
|
7391
|
+
pagePersistentId: z244.string()
|
|
7379
7392
|
});
|
|
7380
|
-
var DTOPublishedDocVisitHeatMapDay =
|
|
7381
|
-
var DTOPublishedDocVisitHeatMapWeek =
|
|
7393
|
+
var DTOPublishedDocVisitHeatMapDay = z244.number().array().length(12);
|
|
7394
|
+
var DTOPublishedDocVisitHeatMapWeek = z244.object({
|
|
7382
7395
|
/**
|
|
7383
7396
|
* For which timeframe it was calculated
|
|
7384
7397
|
*/
|
|
@@ -7391,65 +7404,65 @@ var DTOPublishedDocVisitHeatMapWeek = z243.object({
|
|
|
7391
7404
|
sat: DTOPublishedDocVisitHeatMapDay,
|
|
7392
7405
|
sun: DTOPublishedDocVisitHeatMapDay
|
|
7393
7406
|
});
|
|
7394
|
-
var DTOPublishedDocAnalyticsComparisonData =
|
|
7407
|
+
var DTOPublishedDocAnalyticsComparisonData = z244.object({
|
|
7395
7408
|
/**
|
|
7396
7409
|
* For which timeframe it was calculated
|
|
7397
7410
|
*/
|
|
7398
7411
|
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
7399
|
-
priorVisitCount:
|
|
7400
|
-
priorSessionCount:
|
|
7401
|
-
currentVisitCount:
|
|
7402
|
-
currentSessionCount:
|
|
7412
|
+
priorVisitCount: z244.number(),
|
|
7413
|
+
priorSessionCount: z244.number(),
|
|
7414
|
+
currentVisitCount: z244.number(),
|
|
7415
|
+
currentSessionCount: z244.number()
|
|
7403
7416
|
});
|
|
7404
7417
|
var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
|
|
7405
|
-
pagePersistentId:
|
|
7418
|
+
pagePersistentId: z244.string()
|
|
7406
7419
|
});
|
|
7407
|
-
var DTODocumentationPageAnalyticsResponse =
|
|
7420
|
+
var DTODocumentationPageAnalyticsResponse = z244.object({
|
|
7408
7421
|
globalAnalytics: DTOPublishedDocVisitData.array(),
|
|
7409
7422
|
pageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
7410
7423
|
heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
|
|
7411
7424
|
comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
|
|
7412
7425
|
pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
|
|
7413
7426
|
});
|
|
7414
|
-
var DTODocumentationAnalyticsRequest =
|
|
7415
|
-
timeFrames:
|
|
7427
|
+
var DTODocumentationAnalyticsRequest = z244.object({
|
|
7428
|
+
timeFrames: z244.array(DTODocumentationAnalyticsTimeFrame)
|
|
7416
7429
|
});
|
|
7417
7430
|
|
|
7418
7431
|
// src/api/dto/documentation/analytics.ts
|
|
7419
|
-
import { z as
|
|
7420
|
-
var DTODocumentationPageAnalyticsDifference =
|
|
7421
|
-
startDate:
|
|
7422
|
-
endDate:
|
|
7423
|
-
currentVisitCount:
|
|
7424
|
-
currentSessionCount:
|
|
7425
|
-
priorVisitCount:
|
|
7426
|
-
priorSessionCount:
|
|
7432
|
+
import { z as z245 } from "zod";
|
|
7433
|
+
var DTODocumentationPageAnalyticsDifference = z245.object({
|
|
7434
|
+
startDate: z245.coerce.date(),
|
|
7435
|
+
endDate: z245.coerce.date().optional(),
|
|
7436
|
+
currentVisitCount: z245.number(),
|
|
7437
|
+
currentSessionCount: z245.number(),
|
|
7438
|
+
priorVisitCount: z245.number(),
|
|
7439
|
+
priorSessionCount: z245.number()
|
|
7427
7440
|
});
|
|
7428
|
-
var DTODocumentationPageIntervalDifferenceResponse =
|
|
7429
|
-
differences:
|
|
7441
|
+
var DTODocumentationPageIntervalDifferenceResponse = z245.object({
|
|
7442
|
+
differences: z245.array(DTODocumentationPageAnalyticsDifference)
|
|
7430
7443
|
});
|
|
7431
7444
|
|
|
7432
7445
|
// src/api/dto/documentation/anchor.ts
|
|
7433
|
-
import { z as
|
|
7446
|
+
import { z as z246 } from "zod";
|
|
7434
7447
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
7435
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
7436
|
-
anchors:
|
|
7448
|
+
var DTOGetDocumentationPageAnchorsResponse = z246.object({
|
|
7449
|
+
anchors: z246.array(DTODocumentationPageAnchor)
|
|
7437
7450
|
});
|
|
7438
7451
|
|
|
7439
7452
|
// src/api/dto/documentation/approvals.ts
|
|
7440
|
-
import { z as
|
|
7441
|
-
var DTODocumentationPageApprovalState =
|
|
7453
|
+
import { z as z247 } from "zod";
|
|
7454
|
+
var DTODocumentationPageApprovalState = z247.object({
|
|
7442
7455
|
approvalState: DocumentationPageApprovalState,
|
|
7443
|
-
pagePersistentId:
|
|
7444
|
-
updatedByUserId:
|
|
7445
|
-
designSystemVersionId:
|
|
7446
|
-
updatedAt:
|
|
7447
|
-
createdAt:
|
|
7448
|
-
});
|
|
7449
|
-
var DTODocumentationGroupApprovalState =
|
|
7450
|
-
persistentId:
|
|
7451
|
-
groupPersistentId:
|
|
7452
|
-
designSystemVersionId:
|
|
7456
|
+
pagePersistentId: z247.string(),
|
|
7457
|
+
updatedByUserId: z247.string(),
|
|
7458
|
+
designSystemVersionId: z247.string(),
|
|
7459
|
+
updatedAt: z247.coerce.date(),
|
|
7460
|
+
createdAt: z247.coerce.date()
|
|
7461
|
+
});
|
|
7462
|
+
var DTODocumentationGroupApprovalState = z247.object({
|
|
7463
|
+
persistentId: z247.string(),
|
|
7464
|
+
groupPersistentId: z247.string(),
|
|
7465
|
+
designSystemVersionId: z247.string(),
|
|
7453
7466
|
approvalState: DocumentationPageApprovalState
|
|
7454
7467
|
});
|
|
7455
7468
|
|
|
@@ -7457,68 +7470,68 @@ var DTODocumentationGroupApprovalState = z246.object({
|
|
|
7457
7470
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
7458
7471
|
|
|
7459
7472
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7460
|
-
import { z as
|
|
7473
|
+
import { z as z252 } from "zod";
|
|
7461
7474
|
|
|
7462
7475
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7463
|
-
import { z as
|
|
7476
|
+
import { z as z251 } from "zod";
|
|
7464
7477
|
|
|
7465
7478
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7466
|
-
import { z as
|
|
7479
|
+
import { z as z249 } from "zod";
|
|
7467
7480
|
|
|
7468
7481
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
7469
|
-
import { z as
|
|
7482
|
+
import { z as z248 } from "zod";
|
|
7470
7483
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
7471
|
-
var DTODocumentationItemConfigurationV2 =
|
|
7472
|
-
showSidebar:
|
|
7473
|
-
isPrivate:
|
|
7474
|
-
isHidden:
|
|
7484
|
+
var DTODocumentationItemConfigurationV2 = z248.object({
|
|
7485
|
+
showSidebar: z248.boolean(),
|
|
7486
|
+
isPrivate: z248.boolean(),
|
|
7487
|
+
isHidden: z248.boolean(),
|
|
7475
7488
|
header: DTODocumentationItemHeaderV2
|
|
7476
7489
|
});
|
|
7477
7490
|
|
|
7478
7491
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
7479
|
-
var DTODocumentationDraftChangeType =
|
|
7480
|
-
var DTODocumentationDraftStateCreated =
|
|
7481
|
-
changeType:
|
|
7482
|
-
});
|
|
7483
|
-
var DTODocumentationDraftStateUpdated =
|
|
7484
|
-
changeType:
|
|
7485
|
-
changes:
|
|
7486
|
-
previousTitle:
|
|
7492
|
+
var DTODocumentationDraftChangeType = z249.enum(["Created", "Updated", "Deleted"]);
|
|
7493
|
+
var DTODocumentationDraftStateCreated = z249.object({
|
|
7494
|
+
changeType: z249.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
7495
|
+
});
|
|
7496
|
+
var DTODocumentationDraftStateUpdated = z249.object({
|
|
7497
|
+
changeType: z249.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
7498
|
+
changes: z249.object({
|
|
7499
|
+
previousTitle: z249.string().optional(),
|
|
7487
7500
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
7488
|
-
previousContentHash:
|
|
7501
|
+
previousContentHash: z249.string().optional()
|
|
7489
7502
|
})
|
|
7490
7503
|
});
|
|
7491
|
-
var DTODocumentationDraftStateDeleted =
|
|
7492
|
-
changeType:
|
|
7493
|
-
deletedAt:
|
|
7494
|
-
deletedByUserId:
|
|
7504
|
+
var DTODocumentationDraftStateDeleted = z249.object({
|
|
7505
|
+
changeType: z249.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
7506
|
+
deletedAt: z249.coerce.date(),
|
|
7507
|
+
deletedByUserId: z249.string()
|
|
7495
7508
|
});
|
|
7496
|
-
var DTODocumentationDraftState =
|
|
7509
|
+
var DTODocumentationDraftState = z249.discriminatedUnion("changeType", [
|
|
7497
7510
|
DTODocumentationDraftStateCreated,
|
|
7498
7511
|
DTODocumentationDraftStateUpdated,
|
|
7499
7512
|
DTODocumentationDraftStateDeleted
|
|
7500
7513
|
]);
|
|
7501
7514
|
|
|
7502
7515
|
// src/api/dto/elements/documentation/metadata.ts
|
|
7503
|
-
import { z as
|
|
7504
|
-
var DTODocumentationPublishMetadata =
|
|
7505
|
-
lastPublishedByUserId:
|
|
7506
|
-
lastPublishedAt:
|
|
7516
|
+
import { z as z250 } from "zod";
|
|
7517
|
+
var DTODocumentationPublishMetadata = z250.object({
|
|
7518
|
+
lastPublishedByUserId: z250.string(),
|
|
7519
|
+
lastPublishedAt: z250.coerce.date()
|
|
7507
7520
|
});
|
|
7508
7521
|
|
|
7509
7522
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
7510
|
-
var DTODocumentationPageV2 =
|
|
7511
|
-
id:
|
|
7512
|
-
persistentId:
|
|
7513
|
-
designSystemVersionId:
|
|
7514
|
-
title:
|
|
7523
|
+
var DTODocumentationPageV2 = z251.object({
|
|
7524
|
+
id: z251.string(),
|
|
7525
|
+
persistentId: z251.string(),
|
|
7526
|
+
designSystemVersionId: z251.string(),
|
|
7527
|
+
title: z251.string(),
|
|
7515
7528
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7516
|
-
shortPersistentId:
|
|
7517
|
-
slug:
|
|
7518
|
-
userSlug:
|
|
7519
|
-
createdAt:
|
|
7520
|
-
updatedAt:
|
|
7521
|
-
path:
|
|
7529
|
+
shortPersistentId: z251.string(),
|
|
7530
|
+
slug: z251.string().optional(),
|
|
7531
|
+
userSlug: z251.string().optional(),
|
|
7532
|
+
createdAt: z251.coerce.date(),
|
|
7533
|
+
updatedAt: z251.coerce.date(),
|
|
7534
|
+
path: z251.string(),
|
|
7522
7535
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7523
7536
|
draftState: DTODocumentationDraftState.optional(),
|
|
7524
7537
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -7526,267 +7539,267 @@ var DTODocumentationPageV2 = z250.object({
|
|
|
7526
7539
|
/** Defines the approval state of the documentation page */
|
|
7527
7540
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
7528
7541
|
/** Id of the page document room */
|
|
7529
|
-
liveblocksRoomId:
|
|
7542
|
+
liveblocksRoomId: z251.string().optional(),
|
|
7530
7543
|
// Backward compatibility
|
|
7531
|
-
type:
|
|
7544
|
+
type: z251.literal("Page")
|
|
7532
7545
|
});
|
|
7533
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
7546
|
+
var DTOCreateDocumentationPageInputV2 = z251.object({
|
|
7534
7547
|
// Identifier
|
|
7535
|
-
persistentId:
|
|
7548
|
+
persistentId: z251.string(),
|
|
7536
7549
|
// Page properties
|
|
7537
|
-
title:
|
|
7550
|
+
title: z251.string(),
|
|
7538
7551
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7539
7552
|
// Page placement properties
|
|
7540
|
-
parentPersistentId:
|
|
7541
|
-
afterPersistentId:
|
|
7553
|
+
parentPersistentId: z251.string(),
|
|
7554
|
+
afterPersistentId: z251.string().nullish()
|
|
7542
7555
|
});
|
|
7543
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
7556
|
+
var DTOUpdateDocumentationPageInputV2 = z251.object({
|
|
7544
7557
|
// Identifier of the page to update
|
|
7545
|
-
id:
|
|
7558
|
+
id: z251.string(),
|
|
7546
7559
|
// Page properties
|
|
7547
|
-
title:
|
|
7560
|
+
title: z251.string().optional(),
|
|
7548
7561
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7549
7562
|
});
|
|
7550
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
7563
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z251.object({
|
|
7551
7564
|
// Identifier of the page to update
|
|
7552
|
-
id:
|
|
7565
|
+
id: z251.string(),
|
|
7553
7566
|
// Page properties
|
|
7554
|
-
documentItems:
|
|
7567
|
+
documentItems: z251.array(DocumentationPageContentItem)
|
|
7555
7568
|
});
|
|
7556
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
7569
|
+
var DTOMoveDocumentationPageInputV2 = z251.object({
|
|
7557
7570
|
// Identifier of the group to update
|
|
7558
|
-
id:
|
|
7571
|
+
id: z251.string(),
|
|
7559
7572
|
// Page placement properties
|
|
7560
|
-
parentPersistentId:
|
|
7561
|
-
afterPersistentId:
|
|
7573
|
+
parentPersistentId: z251.string(),
|
|
7574
|
+
afterPersistentId: z251.string().nullish()
|
|
7562
7575
|
});
|
|
7563
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
7576
|
+
var DTODuplicateDocumentationPageInputV2 = z251.object({
|
|
7564
7577
|
// Identifier of the page to duplicate from
|
|
7565
|
-
id:
|
|
7578
|
+
id: z251.string(),
|
|
7566
7579
|
// New page persistent id
|
|
7567
|
-
persistentId:
|
|
7580
|
+
persistentId: z251.string(),
|
|
7568
7581
|
// Page placement properties
|
|
7569
|
-
parentPersistentId:
|
|
7570
|
-
afterPersistentId:
|
|
7582
|
+
parentPersistentId: z251.string(),
|
|
7583
|
+
afterPersistentId: z251.string().nullish()
|
|
7571
7584
|
});
|
|
7572
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
7585
|
+
var DTODeleteDocumentationPageInputV2 = z251.object({
|
|
7573
7586
|
// Identifier
|
|
7574
|
-
id:
|
|
7587
|
+
id: z251.string()
|
|
7575
7588
|
});
|
|
7576
|
-
var DTORestoreDocumentationPageInput =
|
|
7577
|
-
persistentId:
|
|
7578
|
-
snapshotId:
|
|
7589
|
+
var DTORestoreDocumentationPageInput = z251.object({
|
|
7590
|
+
persistentId: z251.string(),
|
|
7591
|
+
snapshotId: z251.string().optional()
|
|
7579
7592
|
});
|
|
7580
|
-
var DTORestoreDocumentationGroupInput =
|
|
7581
|
-
persistentId:
|
|
7582
|
-
snapshotId:
|
|
7593
|
+
var DTORestoreDocumentationGroupInput = z251.object({
|
|
7594
|
+
persistentId: z251.string(),
|
|
7595
|
+
snapshotId: z251.string().optional()
|
|
7583
7596
|
});
|
|
7584
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
7585
|
-
persistentId:
|
|
7597
|
+
var DTODocumentationPageApprovalStateChangeInput = z251.object({
|
|
7598
|
+
persistentId: z251.string(),
|
|
7586
7599
|
approvalState: DocumentationPageApprovalState.optional()
|
|
7587
7600
|
});
|
|
7588
7601
|
|
|
7589
7602
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7590
|
-
var DTODocumentationPageSnapshot =
|
|
7591
|
-
id:
|
|
7592
|
-
designSystemVersionId:
|
|
7593
|
-
createdAt:
|
|
7594
|
-
updatedAt:
|
|
7603
|
+
var DTODocumentationPageSnapshot = z252.object({
|
|
7604
|
+
id: z252.string(),
|
|
7605
|
+
designSystemVersionId: z252.string(),
|
|
7606
|
+
createdAt: z252.string(),
|
|
7607
|
+
updatedAt: z252.string(),
|
|
7595
7608
|
documentationPage: DTODocumentationPageV2,
|
|
7596
|
-
pageContentHash:
|
|
7609
|
+
pageContentHash: z252.string(),
|
|
7597
7610
|
reason: DesignElementSnapshotReason
|
|
7598
7611
|
});
|
|
7599
7612
|
|
|
7600
7613
|
// src/api/dto/documentation/link-preview.ts
|
|
7601
|
-
import { z as
|
|
7602
|
-
var DTODocumentationLinkPreviewResponse =
|
|
7614
|
+
import { z as z253 } from "zod";
|
|
7615
|
+
var DTODocumentationLinkPreviewResponse = z253.object({
|
|
7603
7616
|
linkPreview: DocumentationLinkPreview
|
|
7604
7617
|
});
|
|
7605
|
-
var DTODocumentationLinkPreviewRequest =
|
|
7606
|
-
url:
|
|
7607
|
-
documentationItemPersistentId:
|
|
7618
|
+
var DTODocumentationLinkPreviewRequest = z253.object({
|
|
7619
|
+
url: z253.string().optional(),
|
|
7620
|
+
documentationItemPersistentId: z253.string().optional()
|
|
7608
7621
|
});
|
|
7609
7622
|
|
|
7610
7623
|
// src/api/dto/documentation/publish.ts
|
|
7611
|
-
import { z as
|
|
7624
|
+
import { z as z257 } from "zod";
|
|
7612
7625
|
|
|
7613
7626
|
// src/api/dto/export/exporter.ts
|
|
7614
|
-
import { z as
|
|
7615
|
-
var DTOExporterType =
|
|
7616
|
-
var DTOExporterSource =
|
|
7617
|
-
var DTOExporterMembershipRole =
|
|
7618
|
-
var DTOExporterListQuery =
|
|
7619
|
-
limit:
|
|
7620
|
-
offset:
|
|
7627
|
+
import { z as z254 } from "zod";
|
|
7628
|
+
var DTOExporterType = z254.enum(["documentation", "code"]);
|
|
7629
|
+
var DTOExporterSource = z254.enum(["git", "upload"]);
|
|
7630
|
+
var DTOExporterMembershipRole = z254.enum(["Owner", "OwnerArchived", "User"]);
|
|
7631
|
+
var DTOExporterListQuery = z254.object({
|
|
7632
|
+
limit: z254.coerce.number().optional(),
|
|
7633
|
+
offset: z254.coerce.number().optional(),
|
|
7621
7634
|
type: DTOExporterType.optional(),
|
|
7622
|
-
search:
|
|
7635
|
+
search: z254.string().optional()
|
|
7623
7636
|
});
|
|
7624
|
-
var DTOExporter =
|
|
7625
|
-
id:
|
|
7626
|
-
name:
|
|
7627
|
-
isPrivate:
|
|
7637
|
+
var DTOExporter = z254.object({
|
|
7638
|
+
id: z254.string(),
|
|
7639
|
+
name: z254.string(),
|
|
7640
|
+
isPrivate: z254.boolean(),
|
|
7628
7641
|
exporterType: DTOExporterType,
|
|
7629
|
-
isDefaultDocumentationExporter:
|
|
7630
|
-
iconURL:
|
|
7642
|
+
isDefaultDocumentationExporter: z254.boolean(),
|
|
7643
|
+
iconURL: z254.string().optional(),
|
|
7631
7644
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
7632
7645
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
7633
7646
|
customBlocks: PulsarCustomBlock.array(),
|
|
7634
|
-
blockVariants:
|
|
7635
|
-
homepage:
|
|
7636
|
-
organization:
|
|
7637
|
-
packageId:
|
|
7638
|
-
tags:
|
|
7639
|
-
author:
|
|
7640
|
-
version:
|
|
7641
|
-
description:
|
|
7642
|
-
usesLocale:
|
|
7643
|
-
usesBrands:
|
|
7644
|
-
usesThemes:
|
|
7645
|
-
readme:
|
|
7646
|
-
routingVersion:
|
|
7647
|
+
blockVariants: z254.record(z254.string(), PulsarContributionVariant.array()),
|
|
7648
|
+
homepage: z254.string().optional(),
|
|
7649
|
+
organization: z254.string().optional(),
|
|
7650
|
+
packageId: z254.string().optional(),
|
|
7651
|
+
tags: z254.array(z254.string()),
|
|
7652
|
+
author: z254.string().optional(),
|
|
7653
|
+
version: z254.string(),
|
|
7654
|
+
description: z254.string(),
|
|
7655
|
+
usesLocale: z254.boolean(),
|
|
7656
|
+
usesBrands: z254.boolean(),
|
|
7657
|
+
usesThemes: z254.boolean(),
|
|
7658
|
+
readme: z254.string().optional(),
|
|
7659
|
+
routingVersion: z254.string().optional(),
|
|
7647
7660
|
source: DTOExporterSource,
|
|
7648
|
-
gitProvider:
|
|
7649
|
-
gitUrl: nullishToOptional(
|
|
7650
|
-
gitBranch: nullishToOptional(
|
|
7651
|
-
gitDirectory: nullishToOptional(
|
|
7652
|
-
isDeprecated:
|
|
7653
|
-
deprecationNote:
|
|
7654
|
-
replacementExporterId:
|
|
7655
|
-
});
|
|
7656
|
-
var DTOExporterMembership =
|
|
7657
|
-
workspaceId:
|
|
7658
|
-
exporterId:
|
|
7661
|
+
gitProvider: z254.string().optional(),
|
|
7662
|
+
gitUrl: nullishToOptional(z254.string()),
|
|
7663
|
+
gitBranch: nullishToOptional(z254.string()),
|
|
7664
|
+
gitDirectory: nullishToOptional(z254.string()),
|
|
7665
|
+
isDeprecated: z254.boolean(),
|
|
7666
|
+
deprecationNote: z254.string().optional(),
|
|
7667
|
+
replacementExporterId: z254.string().optional()
|
|
7668
|
+
});
|
|
7669
|
+
var DTOExporterMembership = z254.object({
|
|
7670
|
+
workspaceId: z254.string(),
|
|
7671
|
+
exporterId: z254.string(),
|
|
7659
7672
|
role: DTOExporterMembershipRole
|
|
7660
7673
|
});
|
|
7661
|
-
var DTOExporterResponse =
|
|
7674
|
+
var DTOExporterResponse = z254.object({
|
|
7662
7675
|
exporter: DTOExporter,
|
|
7663
7676
|
membership: DTOExporterMembership
|
|
7664
7677
|
});
|
|
7665
|
-
var DTOExporterListResponse =
|
|
7678
|
+
var DTOExporterListResponse = z254.object({
|
|
7666
7679
|
exporters: DTOExporter.array(),
|
|
7667
7680
|
membership: DTOExporterMembership.array(),
|
|
7668
|
-
total:
|
|
7681
|
+
total: z254.number()
|
|
7669
7682
|
});
|
|
7670
|
-
var DTOExporterGitProviderEnum =
|
|
7671
|
-
var DTOExporterCreateInput =
|
|
7672
|
-
url:
|
|
7683
|
+
var DTOExporterGitProviderEnum = z254.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
7684
|
+
var DTOExporterCreateInput = z254.object({
|
|
7685
|
+
url: z254.string(),
|
|
7673
7686
|
provider: DTOExporterGitProviderEnum
|
|
7674
7687
|
});
|
|
7675
|
-
var DTOExporterUpdateInput =
|
|
7676
|
-
url:
|
|
7688
|
+
var DTOExporterUpdateInput = z254.object({
|
|
7689
|
+
url: z254.string().optional()
|
|
7677
7690
|
});
|
|
7678
|
-
var DTOExporterDeprecationInput =
|
|
7679
|
-
isDeprecated:
|
|
7680
|
-
deprecationNote:
|
|
7681
|
-
replacementExporterId:
|
|
7691
|
+
var DTOExporterDeprecationInput = z254.object({
|
|
7692
|
+
isDeprecated: z254.boolean(),
|
|
7693
|
+
deprecationNote: z254.string().optional(),
|
|
7694
|
+
replacementExporterId: z254.string().optional()
|
|
7682
7695
|
});
|
|
7683
7696
|
|
|
7684
7697
|
// src/api/dto/export/filter.ts
|
|
7685
7698
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
7686
7699
|
|
|
7687
7700
|
// src/api/dto/export/job.ts
|
|
7688
|
-
import { z as
|
|
7689
|
-
var DTOExportJobCreatedBy =
|
|
7690
|
-
userId:
|
|
7691
|
-
userName:
|
|
7701
|
+
import { z as z255 } from "zod";
|
|
7702
|
+
var DTOExportJobCreatedBy = z255.object({
|
|
7703
|
+
userId: z255.string(),
|
|
7704
|
+
userName: z255.string()
|
|
7692
7705
|
});
|
|
7693
|
-
var DTOExportJobDesignSystemPreview =
|
|
7694
|
-
id:
|
|
7706
|
+
var DTOExportJobDesignSystemPreview = z255.object({
|
|
7707
|
+
id: z255.string(),
|
|
7695
7708
|
meta: ObjectMeta
|
|
7696
7709
|
});
|
|
7697
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
7698
|
-
id:
|
|
7710
|
+
var DTOExportJobDesignSystemVersionPreview = z255.object({
|
|
7711
|
+
id: z255.string(),
|
|
7699
7712
|
meta: ObjectMeta,
|
|
7700
|
-
version:
|
|
7701
|
-
isReadonly:
|
|
7713
|
+
version: z255.string(),
|
|
7714
|
+
isReadonly: z255.boolean()
|
|
7702
7715
|
});
|
|
7703
|
-
var DTOExportJobDestinations =
|
|
7716
|
+
var DTOExportJobDestinations = z255.object({
|
|
7704
7717
|
s3: ExporterDestinationS3.optional(),
|
|
7705
7718
|
azure: ExporterDestinationAzure.optional(),
|
|
7706
7719
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
7707
7720
|
github: ExporterDestinationGithub.optional(),
|
|
7708
7721
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
7709
7722
|
documentation: ExporterDestinationDocs.optional(),
|
|
7710
|
-
webhookUrl:
|
|
7723
|
+
webhookUrl: z255.string().optional()
|
|
7711
7724
|
});
|
|
7712
7725
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
7713
7726
|
sndocs: true
|
|
7714
7727
|
}).extend({
|
|
7715
7728
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
7716
7729
|
});
|
|
7717
|
-
var DTOExportJob =
|
|
7718
|
-
id:
|
|
7719
|
-
createdAt:
|
|
7720
|
-
finishedAt:
|
|
7721
|
-
index:
|
|
7730
|
+
var DTOExportJob = z255.object({
|
|
7731
|
+
id: z255.string(),
|
|
7732
|
+
createdAt: z255.coerce.date(),
|
|
7733
|
+
finishedAt: z255.coerce.date().optional(),
|
|
7734
|
+
index: z255.number().optional(),
|
|
7722
7735
|
status: ExportJobStatus,
|
|
7723
|
-
estimatedExecutionTime:
|
|
7736
|
+
estimatedExecutionTime: z255.number().optional(),
|
|
7724
7737
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
7725
7738
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
7726
7739
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
7727
7740
|
destinations: DTOExportJobDestinations,
|
|
7728
|
-
exporterId:
|
|
7729
|
-
scheduleId:
|
|
7741
|
+
exporterId: z255.string(),
|
|
7742
|
+
scheduleId: z255.string().optional(),
|
|
7730
7743
|
result: DTOExportJobResult.optional(),
|
|
7731
|
-
brandPersistentId:
|
|
7732
|
-
themePersistentId:
|
|
7733
|
-
themePersistentIds:
|
|
7744
|
+
brandPersistentId: z255.string().optional(),
|
|
7745
|
+
themePersistentId: z255.string().optional(),
|
|
7746
|
+
themePersistentIds: z255.string().array().optional(),
|
|
7734
7747
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
7735
7748
|
});
|
|
7736
|
-
var DTOExportJobResponse =
|
|
7749
|
+
var DTOExportJobResponse = z255.object({
|
|
7737
7750
|
job: DTOExportJob
|
|
7738
7751
|
});
|
|
7739
|
-
var DTOExportJobResponseLegacy =
|
|
7740
|
-
job:
|
|
7741
|
-
id:
|
|
7752
|
+
var DTOExportJobResponseLegacy = z255.object({
|
|
7753
|
+
job: z255.object({
|
|
7754
|
+
id: z255.string(),
|
|
7742
7755
|
status: ExportJobStatus
|
|
7743
7756
|
})
|
|
7744
7757
|
});
|
|
7745
|
-
var DTOExportJobCreateInput =
|
|
7746
|
-
designSystemId:
|
|
7747
|
-
designSystemVersionId:
|
|
7748
|
-
exporterId:
|
|
7749
|
-
brandId:
|
|
7750
|
-
themeId:
|
|
7751
|
-
themePersistentIds:
|
|
7758
|
+
var DTOExportJobCreateInput = z255.object({
|
|
7759
|
+
designSystemId: z255.string(),
|
|
7760
|
+
designSystemVersionId: z255.string(),
|
|
7761
|
+
exporterId: z255.string(),
|
|
7762
|
+
brandId: z255.string().optional(),
|
|
7763
|
+
themeId: z255.string().optional(),
|
|
7764
|
+
themePersistentIds: z255.string().array().optional(),
|
|
7752
7765
|
destinations: DTOExportJobDestinations,
|
|
7753
7766
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7754
|
-
previewMode:
|
|
7767
|
+
previewMode: z255.boolean().optional()
|
|
7755
7768
|
});
|
|
7756
7769
|
|
|
7757
7770
|
// src/api/dto/export/pipeline.ts
|
|
7758
|
-
import { z as
|
|
7759
|
-
var DTOPipelineListQuery =
|
|
7760
|
-
designSystemId:
|
|
7761
|
-
exporterId:
|
|
7762
|
-
latestJobsLimit:
|
|
7763
|
-
});
|
|
7764
|
-
var DTOPipeline =
|
|
7765
|
-
id:
|
|
7766
|
-
name:
|
|
7771
|
+
import { z as z256 } from "zod";
|
|
7772
|
+
var DTOPipelineListQuery = z256.object({
|
|
7773
|
+
designSystemId: z256.string().optional(),
|
|
7774
|
+
exporterId: z256.string().optional(),
|
|
7775
|
+
latestJobsLimit: z256.coerce.number().optional()
|
|
7776
|
+
});
|
|
7777
|
+
var DTOPipeline = z256.object({
|
|
7778
|
+
id: z256.string(),
|
|
7779
|
+
name: z256.string(),
|
|
7767
7780
|
eventType: PipelineEventType,
|
|
7768
|
-
isEnabled:
|
|
7769
|
-
workspaceId:
|
|
7770
|
-
designSystemId:
|
|
7771
|
-
exporterId:
|
|
7772
|
-
brandPersistentId:
|
|
7773
|
-
themePersistentId:
|
|
7774
|
-
themePersistentIds:
|
|
7781
|
+
isEnabled: z256.boolean(),
|
|
7782
|
+
workspaceId: z256.string(),
|
|
7783
|
+
designSystemId: z256.string(),
|
|
7784
|
+
exporterId: z256.string(),
|
|
7785
|
+
brandPersistentId: z256.string().optional(),
|
|
7786
|
+
themePersistentId: z256.string().optional(),
|
|
7787
|
+
themePersistentIds: z256.string().array().optional(),
|
|
7775
7788
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7776
7789
|
...ExportDestinationsMap.shape,
|
|
7777
7790
|
latestJobs: DTOExportJob.array(),
|
|
7778
|
-
isExporterDeprecated:
|
|
7791
|
+
isExporterDeprecated: z256.boolean()
|
|
7779
7792
|
});
|
|
7780
|
-
var DTOPipelineListResponse =
|
|
7793
|
+
var DTOPipelineListResponse = z256.object({
|
|
7781
7794
|
pipelines: DTOPipeline.array()
|
|
7782
7795
|
});
|
|
7783
|
-
var DTOPipelineResponse =
|
|
7796
|
+
var DTOPipelineResponse = z256.object({
|
|
7784
7797
|
pipeline: DTOPipeline
|
|
7785
7798
|
});
|
|
7786
7799
|
|
|
7787
7800
|
// src/api/dto/documentation/publish.ts
|
|
7788
7801
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
7789
|
-
var DTOPublishDocumentationRequest =
|
|
7802
|
+
var DTOPublishDocumentationRequest = z257.object({
|
|
7790
7803
|
environment: PublishedDocEnvironment,
|
|
7791
7804
|
/**
|
|
7792
7805
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -7794,66 +7807,66 @@ var DTOPublishDocumentationRequest = z256.object({
|
|
|
7794
7807
|
*/
|
|
7795
7808
|
changes: DTOPublishDocumentationChanges.optional()
|
|
7796
7809
|
});
|
|
7797
|
-
var DTOPublishDocumentationResponse =
|
|
7810
|
+
var DTOPublishDocumentationResponse = z257.object({
|
|
7798
7811
|
job: DTOExportJob
|
|
7799
7812
|
});
|
|
7800
7813
|
|
|
7801
7814
|
// src/api/dto/documentation/room.ts
|
|
7802
|
-
import { z as
|
|
7803
|
-
var DTODocumentationPageRoom =
|
|
7804
|
-
id:
|
|
7815
|
+
import { z as z258 } from "zod";
|
|
7816
|
+
var DTODocumentationPageRoom = z258.object({
|
|
7817
|
+
id: z258.string()
|
|
7805
7818
|
});
|
|
7806
|
-
var DTODocumentationPageRoomResponse =
|
|
7819
|
+
var DTODocumentationPageRoomResponse = z258.object({
|
|
7807
7820
|
room: DTODocumentationPageRoom
|
|
7808
7821
|
});
|
|
7809
7822
|
|
|
7810
7823
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
7811
|
-
import
|
|
7812
|
-
var DTOFigmaComponentGroup =
|
|
7813
|
-
id:
|
|
7814
|
-
designSystemVersionId:
|
|
7815
|
-
persistentId:
|
|
7816
|
-
isRoot:
|
|
7817
|
-
brandId:
|
|
7824
|
+
import z259 from "zod";
|
|
7825
|
+
var DTOFigmaComponentGroup = z259.object({
|
|
7826
|
+
id: z259.string(),
|
|
7827
|
+
designSystemVersionId: z259.string(),
|
|
7828
|
+
persistentId: z259.string(),
|
|
7829
|
+
isRoot: z259.boolean(),
|
|
7830
|
+
brandId: z259.string(),
|
|
7818
7831
|
meta: DTOObjectMeta,
|
|
7819
|
-
childrenIds:
|
|
7832
|
+
childrenIds: z259.string().array()
|
|
7820
7833
|
});
|
|
7821
|
-
var DTOFigmaComponentGroupListResponse =
|
|
7834
|
+
var DTOFigmaComponentGroupListResponse = z259.object({
|
|
7822
7835
|
groups: DTOFigmaComponentGroup.array()
|
|
7823
7836
|
});
|
|
7824
7837
|
|
|
7825
7838
|
// src/api/dto/elements/components/figma-component.ts
|
|
7826
|
-
import { z as
|
|
7839
|
+
import { z as z260 } from "zod";
|
|
7827
7840
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
7828
|
-
var DTOFigmaComponentPropertyMap =
|
|
7829
|
-
var DTOFigmaComponent =
|
|
7830
|
-
id:
|
|
7831
|
-
persistentId:
|
|
7832
|
-
designSystemVersionId:
|
|
7833
|
-
brandId:
|
|
7834
|
-
thumbnailUrl:
|
|
7835
|
-
svgUrl:
|
|
7836
|
-
exportProperties:
|
|
7837
|
-
isAsset:
|
|
7841
|
+
var DTOFigmaComponentPropertyMap = z260.record(DTOFigmaComponentProperty);
|
|
7842
|
+
var DTOFigmaComponent = z260.object({
|
|
7843
|
+
id: z260.string(),
|
|
7844
|
+
persistentId: z260.string(),
|
|
7845
|
+
designSystemVersionId: z260.string(),
|
|
7846
|
+
brandId: z260.string(),
|
|
7847
|
+
thumbnailUrl: z260.string().optional(),
|
|
7848
|
+
svgUrl: z260.string().optional(),
|
|
7849
|
+
exportProperties: z260.object({
|
|
7850
|
+
isAsset: z260.boolean()
|
|
7838
7851
|
}),
|
|
7839
|
-
createdAt:
|
|
7840
|
-
updatedAt:
|
|
7852
|
+
createdAt: z260.coerce.date(),
|
|
7853
|
+
updatedAt: z260.coerce.date(),
|
|
7841
7854
|
meta: ObjectMeta,
|
|
7842
7855
|
originComponent: FigmaComponentOrigin.optional(),
|
|
7843
|
-
parentComponentPersistentId:
|
|
7844
|
-
childrenPersistentIds:
|
|
7856
|
+
parentComponentPersistentId: z260.string().optional(),
|
|
7857
|
+
childrenPersistentIds: z260.string().array().optional(),
|
|
7845
7858
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
7846
|
-
variantPropertyValues:
|
|
7859
|
+
variantPropertyValues: z260.record(z260.string()).optional()
|
|
7847
7860
|
});
|
|
7848
|
-
var DTOFigmaComponentListResponse =
|
|
7861
|
+
var DTOFigmaComponentListResponse = z260.object({
|
|
7849
7862
|
components: DTOFigmaComponent.array()
|
|
7850
7863
|
});
|
|
7851
7864
|
|
|
7852
7865
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7853
|
-
import { z as
|
|
7866
|
+
import { z as z262 } from "zod";
|
|
7854
7867
|
|
|
7855
7868
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
7856
|
-
import { z as
|
|
7869
|
+
import { z as z261 } from "zod";
|
|
7857
7870
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
7858
7871
|
sortOrder: true,
|
|
7859
7872
|
parentPersistentId: true,
|
|
@@ -7863,13 +7876,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7863
7876
|
data: true,
|
|
7864
7877
|
shortPersistentId: true
|
|
7865
7878
|
}).extend({
|
|
7866
|
-
title:
|
|
7867
|
-
isRoot:
|
|
7868
|
-
childrenIds:
|
|
7879
|
+
title: z261.string(),
|
|
7880
|
+
isRoot: z261.boolean(),
|
|
7881
|
+
childrenIds: z261.array(z261.string()),
|
|
7869
7882
|
groupBehavior: DocumentationGroupBehavior,
|
|
7870
|
-
shortPersistentId:
|
|
7883
|
+
shortPersistentId: z261.string(),
|
|
7871
7884
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7872
|
-
type:
|
|
7885
|
+
type: z261.literal("Group"),
|
|
7873
7886
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
7874
7887
|
draftState: DTODocumentationDraftState.optional(),
|
|
7875
7888
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -7877,127 +7890,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7877
7890
|
//** An approval state for frontend to utilize. */
|
|
7878
7891
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
7879
7892
|
});
|
|
7880
|
-
var DTOCreateDocumentationGroupInput =
|
|
7893
|
+
var DTOCreateDocumentationGroupInput = z261.object({
|
|
7881
7894
|
// Identifier
|
|
7882
|
-
persistentId:
|
|
7895
|
+
persistentId: z261.string(),
|
|
7883
7896
|
// Group properties
|
|
7884
|
-
title:
|
|
7897
|
+
title: z261.string(),
|
|
7885
7898
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7886
7899
|
// Group placement properties
|
|
7887
|
-
afterPersistentId:
|
|
7888
|
-
parentPersistentId:
|
|
7900
|
+
afterPersistentId: z261.string().nullish(),
|
|
7901
|
+
parentPersistentId: z261.string()
|
|
7889
7902
|
});
|
|
7890
|
-
var DTOUpdateDocumentationGroupInput =
|
|
7903
|
+
var DTOUpdateDocumentationGroupInput = z261.object({
|
|
7891
7904
|
// Identifier of the group to update
|
|
7892
|
-
id:
|
|
7905
|
+
id: z261.string(),
|
|
7893
7906
|
// Group properties
|
|
7894
|
-
title:
|
|
7907
|
+
title: z261.string().optional(),
|
|
7895
7908
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7896
7909
|
});
|
|
7897
|
-
var DTOMoveDocumentationGroupInput =
|
|
7910
|
+
var DTOMoveDocumentationGroupInput = z261.object({
|
|
7898
7911
|
// Identifier of the group to update
|
|
7899
|
-
id:
|
|
7912
|
+
id: z261.string(),
|
|
7900
7913
|
// Group placement properties
|
|
7901
|
-
parentPersistentId:
|
|
7902
|
-
afterPersistentId:
|
|
7914
|
+
parentPersistentId: z261.string(),
|
|
7915
|
+
afterPersistentId: z261.string().nullish()
|
|
7903
7916
|
});
|
|
7904
|
-
var DTODuplicateDocumentationGroupInput =
|
|
7917
|
+
var DTODuplicateDocumentationGroupInput = z261.object({
|
|
7905
7918
|
// Identifier of the group to duplicate from
|
|
7906
|
-
id:
|
|
7919
|
+
id: z261.string(),
|
|
7907
7920
|
// New group persistent id
|
|
7908
|
-
persistentId:
|
|
7921
|
+
persistentId: z261.string(),
|
|
7909
7922
|
// Group placement properties
|
|
7910
|
-
afterPersistentId:
|
|
7911
|
-
parentPersistentId:
|
|
7923
|
+
afterPersistentId: z261.string().nullish(),
|
|
7924
|
+
parentPersistentId: z261.string()
|
|
7912
7925
|
});
|
|
7913
|
-
var DTOCreateDocumentationTabInput =
|
|
7926
|
+
var DTOCreateDocumentationTabInput = z261.object({
|
|
7914
7927
|
// New group persistent id
|
|
7915
|
-
persistentId:
|
|
7928
|
+
persistentId: z261.string(),
|
|
7916
7929
|
// If this is page, we will attempt to convert it to tab
|
|
7917
7930
|
// If this is tab group, we will add a new tab to it
|
|
7918
|
-
fromItemPersistentId:
|
|
7919
|
-
tabName:
|
|
7931
|
+
fromItemPersistentId: z261.string(),
|
|
7932
|
+
tabName: z261.string()
|
|
7920
7933
|
});
|
|
7921
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
7934
|
+
var DTODeleteDocumentationTabGroupInput = z261.object({
|
|
7922
7935
|
// Deleted group id
|
|
7923
|
-
id:
|
|
7936
|
+
id: z261.string()
|
|
7924
7937
|
});
|
|
7925
|
-
var DTODeleteDocumentationGroupInput =
|
|
7938
|
+
var DTODeleteDocumentationGroupInput = z261.object({
|
|
7926
7939
|
// Identifier
|
|
7927
|
-
id:
|
|
7940
|
+
id: z261.string(),
|
|
7928
7941
|
// Deletion options
|
|
7929
|
-
deleteSubtree:
|
|
7942
|
+
deleteSubtree: z261.boolean().default(false)
|
|
7930
7943
|
});
|
|
7931
7944
|
|
|
7932
7945
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7933
|
-
var SuccessPayload =
|
|
7934
|
-
success:
|
|
7946
|
+
var SuccessPayload = z262.object({
|
|
7947
|
+
success: z262.literal(true)
|
|
7935
7948
|
});
|
|
7936
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
7937
|
-
type:
|
|
7949
|
+
var DTODocumentationGroupCreateActionOutputV2 = z262.object({
|
|
7950
|
+
type: z262.literal("DocumentationGroupCreate"),
|
|
7938
7951
|
output: SuccessPayload
|
|
7939
7952
|
});
|
|
7940
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
7941
|
-
type:
|
|
7953
|
+
var DTODocumentationTabCreateActionOutputV2 = z262.object({
|
|
7954
|
+
type: z262.literal("DocumentationTabCreate"),
|
|
7942
7955
|
output: SuccessPayload
|
|
7943
7956
|
});
|
|
7944
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
7945
|
-
type:
|
|
7957
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z262.object({
|
|
7958
|
+
type: z262.literal("DocumentationGroupUpdate"),
|
|
7946
7959
|
output: SuccessPayload
|
|
7947
7960
|
});
|
|
7948
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
7949
|
-
type:
|
|
7961
|
+
var DTODocumentationGroupMoveActionOutputV2 = z262.object({
|
|
7962
|
+
type: z262.literal("DocumentationGroupMove"),
|
|
7950
7963
|
output: SuccessPayload
|
|
7951
7964
|
});
|
|
7952
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
7953
|
-
type:
|
|
7965
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z262.object({
|
|
7966
|
+
type: z262.literal("DocumentationGroupDuplicate"),
|
|
7954
7967
|
output: SuccessPayload
|
|
7955
7968
|
});
|
|
7956
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
7957
|
-
type:
|
|
7969
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z262.object({
|
|
7970
|
+
type: z262.literal("DocumentationGroupDelete"),
|
|
7958
7971
|
output: SuccessPayload
|
|
7959
7972
|
});
|
|
7960
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
7961
|
-
type:
|
|
7973
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z262.object({
|
|
7974
|
+
type: z262.literal("DocumentationTabGroupDelete"),
|
|
7962
7975
|
output: SuccessPayload
|
|
7963
7976
|
});
|
|
7964
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
7965
|
-
type:
|
|
7977
|
+
var DTODocumentationGroupCreateActionInputV2 = z262.object({
|
|
7978
|
+
type: z262.literal("DocumentationGroupCreate"),
|
|
7966
7979
|
input: DTOCreateDocumentationGroupInput
|
|
7967
7980
|
});
|
|
7968
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
7969
|
-
type:
|
|
7981
|
+
var DTODocumentationTabCreateActionInputV2 = z262.object({
|
|
7982
|
+
type: z262.literal("DocumentationTabCreate"),
|
|
7970
7983
|
input: DTOCreateDocumentationTabInput
|
|
7971
7984
|
});
|
|
7972
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
7973
|
-
type:
|
|
7985
|
+
var DTODocumentationGroupUpdateActionInputV2 = z262.object({
|
|
7986
|
+
type: z262.literal("DocumentationGroupUpdate"),
|
|
7974
7987
|
input: DTOUpdateDocumentationGroupInput
|
|
7975
7988
|
});
|
|
7976
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
7977
|
-
type:
|
|
7989
|
+
var DTODocumentationGroupMoveActionInputV2 = z262.object({
|
|
7990
|
+
type: z262.literal("DocumentationGroupMove"),
|
|
7978
7991
|
input: DTOMoveDocumentationGroupInput
|
|
7979
7992
|
});
|
|
7980
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
7981
|
-
type:
|
|
7993
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z262.object({
|
|
7994
|
+
type: z262.literal("DocumentationGroupDuplicate"),
|
|
7982
7995
|
input: DTODuplicateDocumentationGroupInput
|
|
7983
7996
|
});
|
|
7984
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
7985
|
-
type:
|
|
7997
|
+
var DTODocumentationGroupDeleteActionInputV2 = z262.object({
|
|
7998
|
+
type: z262.literal("DocumentationGroupDelete"),
|
|
7986
7999
|
input: DTODeleteDocumentationGroupInput
|
|
7987
8000
|
});
|
|
7988
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
7989
|
-
type:
|
|
8001
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z262.object({
|
|
8002
|
+
type: z262.literal("DocumentationTabGroupDelete"),
|
|
7990
8003
|
input: DTODeleteDocumentationTabGroupInput
|
|
7991
8004
|
});
|
|
7992
8005
|
|
|
7993
8006
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
7994
|
-
import { z as
|
|
8007
|
+
import { z as z264 } from "zod";
|
|
7995
8008
|
|
|
7996
8009
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
7997
|
-
import { z as
|
|
7998
|
-
var DocumentationColorV1 =
|
|
7999
|
-
aliasTo:
|
|
8000
|
-
value:
|
|
8010
|
+
import { z as z263 } from "zod";
|
|
8011
|
+
var DocumentationColorV1 = z263.object({
|
|
8012
|
+
aliasTo: z263.string().optional(),
|
|
8013
|
+
value: z263.string().optional()
|
|
8001
8014
|
});
|
|
8002
8015
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
8003
8016
|
foregroundColor: true,
|
|
@@ -8006,10 +8019,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
8006
8019
|
foregroundColor: DocumentationColorV1.optional(),
|
|
8007
8020
|
backgroundColor: DocumentationColorV1.optional()
|
|
8008
8021
|
});
|
|
8009
|
-
var DTODocumentationItemConfigurationV1 =
|
|
8010
|
-
showSidebar:
|
|
8011
|
-
isPrivate:
|
|
8012
|
-
isHidden:
|
|
8022
|
+
var DTODocumentationItemConfigurationV1 = z263.object({
|
|
8023
|
+
showSidebar: z263.boolean(),
|
|
8024
|
+
isPrivate: z263.boolean(),
|
|
8025
|
+
isHidden: z263.boolean(),
|
|
8013
8026
|
header: DTODocumentationItemHeaderV1
|
|
8014
8027
|
});
|
|
8015
8028
|
|
|
@@ -8023,145 +8036,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
8023
8036
|
data: true,
|
|
8024
8037
|
shortPersistentId: true
|
|
8025
8038
|
}).extend({
|
|
8026
|
-
title:
|
|
8027
|
-
isRoot:
|
|
8028
|
-
childrenIds:
|
|
8039
|
+
title: z264.string(),
|
|
8040
|
+
isRoot: z264.boolean(),
|
|
8041
|
+
childrenIds: z264.array(z264.string()),
|
|
8029
8042
|
groupBehavior: DocumentationGroupBehavior,
|
|
8030
|
-
shortPersistentId:
|
|
8031
|
-
type:
|
|
8043
|
+
shortPersistentId: z264.string(),
|
|
8044
|
+
type: z264.literal("Group")
|
|
8032
8045
|
});
|
|
8033
8046
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
8034
8047
|
configuration: DTODocumentationItemConfigurationV1
|
|
8035
8048
|
});
|
|
8036
8049
|
|
|
8037
8050
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
8038
|
-
import { z as
|
|
8039
|
-
var DTODocumentationHierarchyV2 =
|
|
8040
|
-
pages:
|
|
8051
|
+
import { z as z265 } from "zod";
|
|
8052
|
+
var DTODocumentationHierarchyV2 = z265.object({
|
|
8053
|
+
pages: z265.array(
|
|
8041
8054
|
DTODocumentationPageV2.extend({
|
|
8042
8055
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8043
8056
|
draftState: DTODocumentationDraftState.optional()
|
|
8044
8057
|
})
|
|
8045
8058
|
),
|
|
8046
|
-
groups:
|
|
8059
|
+
groups: z265.array(
|
|
8047
8060
|
DTODocumentationGroupV2.extend({
|
|
8048
8061
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
8049
8062
|
draftState: DTODocumentationDraftState.optional()
|
|
8050
8063
|
})
|
|
8051
8064
|
),
|
|
8052
8065
|
/** True if the documentation was already published, false otherwise. */
|
|
8053
|
-
hasPublishedDocumentationContent:
|
|
8066
|
+
hasPublishedDocumentationContent: z265.boolean()
|
|
8054
8067
|
});
|
|
8055
8068
|
|
|
8056
8069
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
8057
|
-
import { z as
|
|
8058
|
-
var SuccessPayload2 =
|
|
8059
|
-
success:
|
|
8070
|
+
import { z as z266 } from "zod";
|
|
8071
|
+
var SuccessPayload2 = z266.object({
|
|
8072
|
+
success: z266.literal(true)
|
|
8060
8073
|
});
|
|
8061
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
8062
|
-
type:
|
|
8074
|
+
var DTODocumentationPageCreateActionOutputV2 = z266.object({
|
|
8075
|
+
type: z266.literal("DocumentationPageCreate"),
|
|
8063
8076
|
output: SuccessPayload2
|
|
8064
8077
|
});
|
|
8065
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
8066
|
-
type:
|
|
8078
|
+
var DTODocumentationPageUpdateActionOutputV2 = z266.object({
|
|
8079
|
+
type: z266.literal("DocumentationPageUpdate"),
|
|
8067
8080
|
output: SuccessPayload2
|
|
8068
8081
|
});
|
|
8069
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
8070
|
-
type:
|
|
8082
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z266.object({
|
|
8083
|
+
type: z266.literal("DocumentationPageUpdateDocument"),
|
|
8071
8084
|
output: SuccessPayload2
|
|
8072
8085
|
});
|
|
8073
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
8074
|
-
type:
|
|
8086
|
+
var DTODocumentationPageMoveActionOutputV2 = z266.object({
|
|
8087
|
+
type: z266.literal("DocumentationPageMove"),
|
|
8075
8088
|
output: SuccessPayload2
|
|
8076
8089
|
});
|
|
8077
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
8078
|
-
type:
|
|
8090
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z266.object({
|
|
8091
|
+
type: z266.literal("DocumentationPageDuplicate"),
|
|
8079
8092
|
output: SuccessPayload2
|
|
8080
8093
|
});
|
|
8081
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
8082
|
-
type:
|
|
8094
|
+
var DTODocumentationPageDeleteActionOutputV2 = z266.object({
|
|
8095
|
+
type: z266.literal("DocumentationPageDelete"),
|
|
8083
8096
|
output: SuccessPayload2
|
|
8084
8097
|
});
|
|
8085
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
8086
|
-
type:
|
|
8098
|
+
var DTODocumentationPageRestoreActionOutput = z266.object({
|
|
8099
|
+
type: z266.literal("DocumentationPageRestore"),
|
|
8087
8100
|
output: SuccessPayload2
|
|
8088
8101
|
});
|
|
8089
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
8090
|
-
type:
|
|
8102
|
+
var DTODocumentationGroupRestoreActionOutput = z266.object({
|
|
8103
|
+
type: z266.literal("DocumentationGroupRestore"),
|
|
8091
8104
|
output: SuccessPayload2
|
|
8092
8105
|
});
|
|
8093
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
8094
|
-
type:
|
|
8106
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z266.object({
|
|
8107
|
+
type: z266.literal("DocumentationPageApprovalStateChange"),
|
|
8095
8108
|
output: SuccessPayload2
|
|
8096
8109
|
});
|
|
8097
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
8098
|
-
type:
|
|
8110
|
+
var DTODocumentationPageCreateActionInputV2 = z266.object({
|
|
8111
|
+
type: z266.literal("DocumentationPageCreate"),
|
|
8099
8112
|
input: DTOCreateDocumentationPageInputV2
|
|
8100
8113
|
});
|
|
8101
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
8102
|
-
type:
|
|
8114
|
+
var DTODocumentationPageUpdateActionInputV2 = z266.object({
|
|
8115
|
+
type: z266.literal("DocumentationPageUpdate"),
|
|
8103
8116
|
input: DTOUpdateDocumentationPageInputV2
|
|
8104
8117
|
});
|
|
8105
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
8106
|
-
type:
|
|
8118
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z266.object({
|
|
8119
|
+
type: z266.literal("DocumentationPageUpdateDocument"),
|
|
8107
8120
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
8108
8121
|
});
|
|
8109
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
8110
|
-
type:
|
|
8122
|
+
var DTODocumentationPageMoveActionInputV2 = z266.object({
|
|
8123
|
+
type: z266.literal("DocumentationPageMove"),
|
|
8111
8124
|
input: DTOMoveDocumentationPageInputV2
|
|
8112
8125
|
});
|
|
8113
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
8114
|
-
type:
|
|
8126
|
+
var DTODocumentationPageDuplicateActionInputV2 = z266.object({
|
|
8127
|
+
type: z266.literal("DocumentationPageDuplicate"),
|
|
8115
8128
|
input: DTODuplicateDocumentationPageInputV2
|
|
8116
8129
|
});
|
|
8117
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
8118
|
-
type:
|
|
8130
|
+
var DTODocumentationPageDeleteActionInputV2 = z266.object({
|
|
8131
|
+
type: z266.literal("DocumentationPageDelete"),
|
|
8119
8132
|
input: DTODeleteDocumentationPageInputV2
|
|
8120
8133
|
});
|
|
8121
|
-
var DTODocumentationPageRestoreActionInput =
|
|
8122
|
-
type:
|
|
8134
|
+
var DTODocumentationPageRestoreActionInput = z266.object({
|
|
8135
|
+
type: z266.literal("DocumentationPageRestore"),
|
|
8123
8136
|
input: DTORestoreDocumentationPageInput
|
|
8124
8137
|
});
|
|
8125
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
8126
|
-
type:
|
|
8138
|
+
var DTODocumentationGroupRestoreActionInput = z266.object({
|
|
8139
|
+
type: z266.literal("DocumentationGroupRestore"),
|
|
8127
8140
|
input: DTORestoreDocumentationGroupInput
|
|
8128
8141
|
});
|
|
8129
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
8130
|
-
type:
|
|
8142
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z266.object({
|
|
8143
|
+
type: z266.literal("DocumentationPageApprovalStateChange"),
|
|
8131
8144
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
8132
8145
|
});
|
|
8133
8146
|
|
|
8134
8147
|
// src/api/dto/elements/documentation/page-content.ts
|
|
8135
|
-
import { z as
|
|
8148
|
+
import { z as z267 } from "zod";
|
|
8136
8149
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
8137
|
-
var DTODocumentationPageContentGetResponse =
|
|
8150
|
+
var DTODocumentationPageContentGetResponse = z267.object({
|
|
8138
8151
|
pageContent: DTODocumentationPageContent
|
|
8139
8152
|
});
|
|
8140
8153
|
|
|
8141
8154
|
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
8142
|
-
import { z as
|
|
8143
|
-
var DTODocumentationPageDependencies =
|
|
8144
|
-
id:
|
|
8145
|
-
designSystemVersionId:
|
|
8146
|
-
createdAt:
|
|
8147
|
-
updatedAt:
|
|
8148
|
-
documentationPageId:
|
|
8149
|
-
tokenPersistentIds:
|
|
8150
|
-
figmaComponentPersistentIds:
|
|
8151
|
-
componentPersistentIds:
|
|
8152
|
-
figmaNodePersistentIds:
|
|
8153
|
-
groupPersistentIds:
|
|
8154
|
-
propertyPersistentIds:
|
|
8155
|
-
themePersistentIds:
|
|
8156
|
-
documentationPagePersistentIds:
|
|
8157
|
-
storybookEntriesStoryIds:
|
|
8158
|
-
});
|
|
8159
|
-
var DTODocumentationPageDependenciesGetResponse =
|
|
8160
|
-
dependencies:
|
|
8155
|
+
import { z as z268 } from "zod";
|
|
8156
|
+
var DTODocumentationPageDependencies = z268.object({
|
|
8157
|
+
id: z268.string(),
|
|
8158
|
+
designSystemVersionId: z268.string(),
|
|
8159
|
+
createdAt: z268.coerce.date(),
|
|
8160
|
+
updatedAt: z268.coerce.date(),
|
|
8161
|
+
documentationPageId: z268.string(),
|
|
8162
|
+
tokenPersistentIds: z268.array(z268.string()),
|
|
8163
|
+
figmaComponentPersistentIds: z268.array(z268.string()),
|
|
8164
|
+
componentPersistentIds: z268.array(z268.string()),
|
|
8165
|
+
figmaNodePersistentIds: z268.array(z268.string()),
|
|
8166
|
+
groupPersistentIds: z268.array(z268.string()),
|
|
8167
|
+
propertyPersistentIds: z268.array(z268.string()),
|
|
8168
|
+
themePersistentIds: z268.array(z268.string()),
|
|
8169
|
+
documentationPagePersistentIds: z268.array(z268.string()),
|
|
8170
|
+
storybookEntriesStoryIds: z268.array(z268.string())
|
|
8171
|
+
});
|
|
8172
|
+
var DTODocumentationPageDependenciesGetResponse = z268.object({
|
|
8173
|
+
dependencies: z268.array(DTODocumentationPageDependencies)
|
|
8161
8174
|
});
|
|
8162
8175
|
|
|
8163
8176
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
8164
|
-
import { z as
|
|
8177
|
+
import { z as z269 } from "zod";
|
|
8165
8178
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
8166
8179
|
data: true,
|
|
8167
8180
|
meta: true,
|
|
@@ -8169,81 +8182,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
8169
8182
|
sortOrder: true
|
|
8170
8183
|
}).extend({
|
|
8171
8184
|
configuration: DTODocumentationItemConfigurationV1,
|
|
8172
|
-
blocks:
|
|
8173
|
-
title:
|
|
8174
|
-
path:
|
|
8185
|
+
blocks: z269.array(PageBlockV1),
|
|
8186
|
+
title: z269.string(),
|
|
8187
|
+
path: z269.string()
|
|
8175
8188
|
});
|
|
8176
8189
|
|
|
8177
8190
|
// src/api/dto/elements/documentation/settings.ts
|
|
8178
|
-
import { z as
|
|
8179
|
-
var DTODocumentationSettings =
|
|
8180
|
-
isDraftFeatureAdopted:
|
|
8181
|
-
isApprovalsFeatureEnabled:
|
|
8182
|
-
isApprovalRequiredForPublishing:
|
|
8191
|
+
import { z as z270 } from "zod";
|
|
8192
|
+
var DTODocumentationSettings = z270.object({
|
|
8193
|
+
isDraftFeatureAdopted: z270.boolean(),
|
|
8194
|
+
isApprovalsFeatureEnabled: z270.boolean(),
|
|
8195
|
+
isApprovalRequiredForPublishing: z270.boolean()
|
|
8183
8196
|
});
|
|
8184
8197
|
|
|
8185
8198
|
// src/api/dto/elements/documentation/structure.ts
|
|
8186
|
-
import { z as
|
|
8187
|
-
var DTODocumentationStructureItemType =
|
|
8188
|
-
var DTODocumentationStructureItemBase =
|
|
8199
|
+
import { z as z271 } from "zod";
|
|
8200
|
+
var DTODocumentationStructureItemType = z271.enum(["Group", "Page"]);
|
|
8201
|
+
var DTODocumentationStructureItemBase = z271.object({
|
|
8189
8202
|
type: DTODocumentationStructureItemType,
|
|
8190
|
-
id:
|
|
8191
|
-
designSystemVersionId:
|
|
8192
|
-
shortPersistentId:
|
|
8193
|
-
persistentId:
|
|
8194
|
-
title:
|
|
8195
|
-
createdAt:
|
|
8196
|
-
updatedAt:
|
|
8203
|
+
id: z271.string(),
|
|
8204
|
+
designSystemVersionId: z271.string(),
|
|
8205
|
+
shortPersistentId: z271.string(),
|
|
8206
|
+
persistentId: z271.string(),
|
|
8207
|
+
title: z271.string(),
|
|
8208
|
+
createdAt: z271.coerce.date(),
|
|
8209
|
+
updatedAt: z271.coerce.date()
|
|
8197
8210
|
});
|
|
8198
8211
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
8199
|
-
type:
|
|
8200
|
-
groupBehavior:
|
|
8201
|
-
childrenIds:
|
|
8202
|
-
isRoot:
|
|
8212
|
+
type: z271.literal(DTODocumentationStructureItemType.enum.Group),
|
|
8213
|
+
groupBehavior: z271.string(),
|
|
8214
|
+
childrenIds: z271.string().array(),
|
|
8215
|
+
isRoot: z271.boolean()
|
|
8203
8216
|
});
|
|
8204
8217
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
8205
|
-
type:
|
|
8206
|
-
path:
|
|
8218
|
+
type: z271.literal(DTODocumentationStructureItemType.enum.Page),
|
|
8219
|
+
path: z271.string()
|
|
8207
8220
|
});
|
|
8208
|
-
var DTODocumentationStructureItem =
|
|
8221
|
+
var DTODocumentationStructureItem = z271.discriminatedUnion("type", [
|
|
8209
8222
|
DTODocumentationStructureGroupItem,
|
|
8210
8223
|
DTODocumentationStructurePageItem
|
|
8211
8224
|
]);
|
|
8212
|
-
var DTODocumentationStructure =
|
|
8213
|
-
items:
|
|
8225
|
+
var DTODocumentationStructure = z271.object({
|
|
8226
|
+
items: z271.array(DTODocumentationStructureItem)
|
|
8214
8227
|
});
|
|
8215
8228
|
|
|
8216
8229
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
8217
|
-
import { z as
|
|
8218
|
-
var DTOFigmaNodeStructure =
|
|
8219
|
-
id:
|
|
8220
|
-
sourceId:
|
|
8230
|
+
import { z as z272 } from "zod";
|
|
8231
|
+
var DTOFigmaNodeStructure = z272.object({
|
|
8232
|
+
id: z272.string(),
|
|
8233
|
+
sourceId: z272.string(),
|
|
8221
8234
|
importState: FigmaNodeStructureStateV2,
|
|
8222
|
-
createdAt:
|
|
8223
|
-
updatedAt:
|
|
8235
|
+
createdAt: z272.coerce.date(),
|
|
8236
|
+
updatedAt: z272.coerce.date()
|
|
8224
8237
|
});
|
|
8225
8238
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
8226
8239
|
rootNode: FigmaFileStructureNode
|
|
8227
8240
|
});
|
|
8228
|
-
var DTOFigmaNodeStructureListResponse =
|
|
8241
|
+
var DTOFigmaNodeStructureListResponse = z272.object({
|
|
8229
8242
|
structures: DTOFigmaNodeStructure.array()
|
|
8230
8243
|
});
|
|
8231
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
8244
|
+
var DTOFigmaNodeStructureDetailResponse = z272.object({
|
|
8232
8245
|
structure: DTOFigmaNodeStructureDetail
|
|
8233
8246
|
});
|
|
8234
8247
|
|
|
8235
8248
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8236
|
-
import { z as
|
|
8249
|
+
import { z as z274 } from "zod";
|
|
8237
8250
|
|
|
8238
8251
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
8239
|
-
import { z as
|
|
8252
|
+
import { z as z273 } from "zod";
|
|
8240
8253
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
8241
|
-
var DTOFigmaNodeOrigin =
|
|
8242
|
-
sourceId:
|
|
8243
|
-
fileId:
|
|
8244
|
-
parentName:
|
|
8254
|
+
var DTOFigmaNodeOrigin = z273.object({
|
|
8255
|
+
sourceId: z273.string(),
|
|
8256
|
+
fileId: z273.string().optional(),
|
|
8257
|
+
parentName: z273.string().optional()
|
|
8245
8258
|
});
|
|
8246
|
-
var DTOFigmaNodeRenderInputBase =
|
|
8259
|
+
var DTOFigmaNodeRenderInputBase = z273.object({
|
|
8247
8260
|
/**
|
|
8248
8261
|
* Format in which the node must be rendered, png by default.
|
|
8249
8262
|
*/
|
|
@@ -8251,57 +8264,57 @@ var DTOFigmaNodeRenderInputBase = z272.object({
|
|
|
8251
8264
|
/**
|
|
8252
8265
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
8253
8266
|
*/
|
|
8254
|
-
scale:
|
|
8267
|
+
scale: z273.number().optional()
|
|
8255
8268
|
});
|
|
8256
8269
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8257
|
-
inputType:
|
|
8270
|
+
inputType: z273.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
8258
8271
|
/**
|
|
8259
8272
|
* Id of a design system's data source representing a linked Figma file
|
|
8260
8273
|
*/
|
|
8261
|
-
sourceId:
|
|
8274
|
+
sourceId: z273.string(),
|
|
8262
8275
|
/**
|
|
8263
8276
|
* Id of a node within the Figma file
|
|
8264
8277
|
*/
|
|
8265
|
-
figmaFileNodeId:
|
|
8278
|
+
figmaFileNodeId: z273.string()
|
|
8266
8279
|
});
|
|
8267
8280
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
8268
|
-
inputType:
|
|
8281
|
+
inputType: z273.literal("URL"),
|
|
8269
8282
|
/**
|
|
8270
8283
|
* Id of a design system's data source representing a linked Figma file
|
|
8271
8284
|
*/
|
|
8272
|
-
figmaNodeUrl:
|
|
8285
|
+
figmaNodeUrl: z273.string(),
|
|
8273
8286
|
/**
|
|
8274
8287
|
* Brand persistent id to use in case a source has to be created for this render
|
|
8275
8288
|
*/
|
|
8276
|
-
brandPersistentId:
|
|
8289
|
+
brandPersistentId: z273.string()
|
|
8277
8290
|
});
|
|
8278
|
-
var DTOFigmaNodeRerenderInput =
|
|
8279
|
-
inputType:
|
|
8291
|
+
var DTOFigmaNodeRerenderInput = z273.object({
|
|
8292
|
+
inputType: z273.literal("Rerender"),
|
|
8280
8293
|
/**
|
|
8281
8294
|
* Persistent ID of an existing Figma node
|
|
8282
8295
|
*/
|
|
8283
|
-
figmaNodePersistentId:
|
|
8296
|
+
figmaNodePersistentId: z273.string()
|
|
8284
8297
|
});
|
|
8285
|
-
var DTOFigmaNodeRenderInput =
|
|
8298
|
+
var DTOFigmaNodeRenderInput = z273.discriminatedUnion("inputType", [
|
|
8286
8299
|
DTOFigmaNodeRenderIdInput,
|
|
8287
8300
|
DTOFigmaNodeRenderUrlInput,
|
|
8288
8301
|
DTOFigmaNodeRerenderInput
|
|
8289
8302
|
]);
|
|
8290
8303
|
|
|
8291
8304
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
8292
|
-
var DTOFigmaNodeData =
|
|
8305
|
+
var DTOFigmaNodeData = z274.object({
|
|
8293
8306
|
// Id of the node in the Figma file
|
|
8294
|
-
figmaNodeId:
|
|
8307
|
+
figmaNodeId: z274.string(),
|
|
8295
8308
|
// Validity
|
|
8296
|
-
isValid:
|
|
8309
|
+
isValid: z274.boolean(),
|
|
8297
8310
|
// Asset data
|
|
8298
|
-
assetId:
|
|
8299
|
-
assetUrl:
|
|
8311
|
+
assetId: z274.string(),
|
|
8312
|
+
assetUrl: z274.string(),
|
|
8300
8313
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
8301
8314
|
// Asset metadata
|
|
8302
|
-
assetScale:
|
|
8303
|
-
assetWidth:
|
|
8304
|
-
assetHeight:
|
|
8315
|
+
assetScale: z274.number(),
|
|
8316
|
+
assetWidth: z274.number().optional(),
|
|
8317
|
+
assetHeight: z274.number().optional()
|
|
8305
8318
|
});
|
|
8306
8319
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
8307
8320
|
data: true,
|
|
@@ -8312,15 +8325,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
8312
8325
|
});
|
|
8313
8326
|
|
|
8314
8327
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
8315
|
-
import { z as
|
|
8316
|
-
var DTOFigmaNodeDataV2 =
|
|
8317
|
-
sceneNodeId:
|
|
8328
|
+
import { z as z275 } from "zod";
|
|
8329
|
+
var DTOFigmaNodeDataV2 = z275.object({
|
|
8330
|
+
sceneNodeId: z275.string(),
|
|
8318
8331
|
format: FigmaNodeRenderFormat,
|
|
8319
|
-
scale:
|
|
8332
|
+
scale: z275.number().optional(),
|
|
8320
8333
|
renderState: FigmaNodeRenderState,
|
|
8321
8334
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
8322
8335
|
renderError: FigmaNodeRenderError.optional(),
|
|
8323
|
-
hasSource:
|
|
8336
|
+
hasSource: z275.boolean()
|
|
8324
8337
|
});
|
|
8325
8338
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
8326
8339
|
data: true,
|
|
@@ -8331,113 +8344,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
8331
8344
|
});
|
|
8332
8345
|
|
|
8333
8346
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
8334
|
-
import { z as
|
|
8335
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
8336
|
-
type:
|
|
8337
|
-
figmaNodes:
|
|
8347
|
+
import { z as z276 } from "zod";
|
|
8348
|
+
var DTOFigmaNodeRenderActionOutput = z276.object({
|
|
8349
|
+
type: z276.literal("FigmaNodeRender"),
|
|
8350
|
+
figmaNodes: z276.array(DTOFigmaNode)
|
|
8338
8351
|
});
|
|
8339
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
8340
|
-
type:
|
|
8341
|
-
figmaNodes:
|
|
8352
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z276.object({
|
|
8353
|
+
type: z276.literal("FigmaNodeRenderAsync"),
|
|
8354
|
+
figmaNodes: z276.array(DTOFigmaNodeV2)
|
|
8342
8355
|
});
|
|
8343
|
-
var DTOFigmaNodeRenderActionInput =
|
|
8344
|
-
type:
|
|
8356
|
+
var DTOFigmaNodeRenderActionInput = z276.object({
|
|
8357
|
+
type: z276.literal("FigmaNodeRender"),
|
|
8345
8358
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
8346
8359
|
});
|
|
8347
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
8348
|
-
type:
|
|
8360
|
+
var DTOFigmaNodeRenderAsyncActionInput = z276.object({
|
|
8361
|
+
type: z276.literal("FigmaNodeRenderAsync"),
|
|
8349
8362
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
8350
8363
|
});
|
|
8351
8364
|
|
|
8352
8365
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
8353
|
-
import { z as
|
|
8354
|
-
var DTOFrameNodeStructure =
|
|
8355
|
-
id:
|
|
8356
|
-
persistentId:
|
|
8357
|
-
designSystemVersionId:
|
|
8366
|
+
import { z as z277 } from "zod";
|
|
8367
|
+
var DTOFrameNodeStructure = z277.object({
|
|
8368
|
+
id: z277.string(),
|
|
8369
|
+
persistentId: z277.string(),
|
|
8370
|
+
designSystemVersionId: z277.string(),
|
|
8358
8371
|
origin: FigmaFileStructureOrigin,
|
|
8359
8372
|
assetsInFile: FigmaFileStructureStatistics
|
|
8360
8373
|
});
|
|
8361
|
-
var DTOFrameNodeStructureListResponse =
|
|
8374
|
+
var DTOFrameNodeStructureListResponse = z277.object({
|
|
8362
8375
|
structures: DTOFrameNodeStructure.array()
|
|
8363
8376
|
});
|
|
8364
8377
|
|
|
8365
8378
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
8366
|
-
import { z as
|
|
8379
|
+
import { z as z278 } from "zod";
|
|
8367
8380
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
8368
|
-
var DTOElementPropertyDefinitionOption =
|
|
8369
|
-
id:
|
|
8370
|
-
name:
|
|
8381
|
+
var DTOElementPropertyDefinitionOption = z278.object({
|
|
8382
|
+
id: z278.string(),
|
|
8383
|
+
name: z278.string(),
|
|
8371
8384
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
8372
8385
|
});
|
|
8373
|
-
var DTOElementPropertyDefinition =
|
|
8374
|
-
id:
|
|
8375
|
-
designSystemVersionId:
|
|
8386
|
+
var DTOElementPropertyDefinition = z278.object({
|
|
8387
|
+
id: z278.string(),
|
|
8388
|
+
designSystemVersionId: z278.string(),
|
|
8376
8389
|
meta: DTOObjectMeta,
|
|
8377
|
-
persistentId:
|
|
8390
|
+
persistentId: z278.string(),
|
|
8378
8391
|
type: ElementPropertyTypeSchema,
|
|
8379
8392
|
targetElementType: ElementPropertyTargetType,
|
|
8380
|
-
codeName:
|
|
8381
|
-
options: nullishToOptional(
|
|
8393
|
+
codeName: z278.string().regex(CODE_NAME_REGEX2),
|
|
8394
|
+
options: nullishToOptional(z278.array(DTOElementPropertyDefinitionOption)),
|
|
8382
8395
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8383
|
-
isImmutable:
|
|
8396
|
+
isImmutable: z278.boolean(),
|
|
8384
8397
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
8385
8398
|
});
|
|
8386
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
8387
|
-
definitions:
|
|
8399
|
+
var DTOElementPropertyDefinitionListResponse = z278.object({
|
|
8400
|
+
definitions: z278.array(DTOElementPropertyDefinition)
|
|
8388
8401
|
});
|
|
8389
|
-
var DTOElementPropertyDefinitionResponse =
|
|
8402
|
+
var DTOElementPropertyDefinitionResponse = z278.object({
|
|
8390
8403
|
definition: DTOElementPropertyDefinition
|
|
8391
8404
|
});
|
|
8392
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
8405
|
+
var DTOElementPropertyDefinitionCreatePayload = z278.object({
|
|
8393
8406
|
meta: DTOObjectMeta,
|
|
8394
|
-
persistentId:
|
|
8407
|
+
persistentId: z278.string(),
|
|
8395
8408
|
type: ElementPropertyTypeSchema,
|
|
8396
8409
|
targetElementType: ElementPropertyTargetType,
|
|
8397
|
-
codeName:
|
|
8398
|
-
options: nullishToOptional(
|
|
8410
|
+
codeName: z278.string().regex(CODE_NAME_REGEX2),
|
|
8411
|
+
options: nullishToOptional(z278.array(DTOElementPropertyDefinitionOption)),
|
|
8399
8412
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
8400
|
-
columnWidth:
|
|
8413
|
+
columnWidth: z278.number().max(1024).optional()
|
|
8401
8414
|
});
|
|
8402
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
8415
|
+
var DTOElementPropertyDefinitionUpdatePayload = z278.object({
|
|
8403
8416
|
meta: DTOObjectMeta.optional(),
|
|
8404
|
-
codeName:
|
|
8405
|
-
options:
|
|
8417
|
+
codeName: z278.string().regex(CODE_NAME_REGEX2).optional(),
|
|
8418
|
+
options: z278.array(DTOElementPropertyDefinitionOption).optional()
|
|
8406
8419
|
});
|
|
8407
8420
|
|
|
8408
8421
|
// src/api/dto/elements/properties/property-values.ts
|
|
8409
|
-
import { z as
|
|
8410
|
-
var DTOElementPropertyValue =
|
|
8411
|
-
id:
|
|
8412
|
-
designSystemVersionId:
|
|
8413
|
-
definitionId:
|
|
8414
|
-
targetElementId:
|
|
8415
|
-
value:
|
|
8416
|
-
valuePreview:
|
|
8417
|
-
});
|
|
8418
|
-
var DTOElementPropertyValueListResponse =
|
|
8419
|
-
values:
|
|
8420
|
-
});
|
|
8421
|
-
var DTOElementPropertyValueResponse =
|
|
8422
|
+
import { z as z279 } from "zod";
|
|
8423
|
+
var DTOElementPropertyValue = z279.object({
|
|
8424
|
+
id: z279.string(),
|
|
8425
|
+
designSystemVersionId: z279.string(),
|
|
8426
|
+
definitionId: z279.string(),
|
|
8427
|
+
targetElementId: z279.string(),
|
|
8428
|
+
value: z279.union([z279.string(), z279.number(), z279.boolean()]).optional(),
|
|
8429
|
+
valuePreview: z279.string().optional()
|
|
8430
|
+
});
|
|
8431
|
+
var DTOElementPropertyValueListResponse = z279.object({
|
|
8432
|
+
values: z279.array(DTOElementPropertyValue)
|
|
8433
|
+
});
|
|
8434
|
+
var DTOElementPropertyValueResponse = z279.object({
|
|
8422
8435
|
value: DTOElementPropertyValue
|
|
8423
8436
|
});
|
|
8424
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
8425
|
-
type:
|
|
8426
|
-
output:
|
|
8437
|
+
var DTOElementPropertyValuesEditActionOutput = z279.object({
|
|
8438
|
+
type: z279.literal("ElementPropertyValuesEdit"),
|
|
8439
|
+
output: z279.object({ success: z279.literal(true) })
|
|
8427
8440
|
});
|
|
8428
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
8429
|
-
definitionId:
|
|
8430
|
-
targetElementId:
|
|
8431
|
-
value:
|
|
8441
|
+
var DTOElementPropertyValueUpsertPaylod = z279.object({
|
|
8442
|
+
definitionId: z279.string(),
|
|
8443
|
+
targetElementId: z279.string(),
|
|
8444
|
+
value: z279.string().or(z279.number()).or(z279.boolean()).nullable()
|
|
8432
8445
|
});
|
|
8433
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
8434
|
-
type:
|
|
8446
|
+
var DTOElementPropertyValuesEditActionInput = z279.object({
|
|
8447
|
+
type: z279.literal("ElementPropertyValuesEdit"),
|
|
8435
8448
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
8436
8449
|
});
|
|
8437
8450
|
|
|
8438
8451
|
// src/api/dto/elements/elements-action-v2.ts
|
|
8439
|
-
import { z as
|
|
8440
|
-
var DTOElementActionOutput =
|
|
8452
|
+
import { z as z280 } from "zod";
|
|
8453
|
+
var DTOElementActionOutput = z280.discriminatedUnion("type", [
|
|
8441
8454
|
// Documentation pages
|
|
8442
8455
|
DTODocumentationPageCreateActionOutputV2,
|
|
8443
8456
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -8464,7 +8477,7 @@ var DTOElementActionOutput = z279.discriminatedUnion("type", [
|
|
|
8464
8477
|
// Element properties
|
|
8465
8478
|
DTOElementPropertyValuesEditActionOutput
|
|
8466
8479
|
]);
|
|
8467
|
-
var DTOElementActionInput =
|
|
8480
|
+
var DTOElementActionInput = z280.discriminatedUnion("type", [
|
|
8468
8481
|
// Documentation pages
|
|
8469
8482
|
DTODocumentationPageCreateActionInputV2,
|
|
8470
8483
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -8491,96 +8504,119 @@ var DTOElementActionInput = z279.discriminatedUnion("type", [
|
|
|
8491
8504
|
// Element properties
|
|
8492
8505
|
DTOElementPropertyValuesEditActionInput
|
|
8493
8506
|
]).and(
|
|
8494
|
-
|
|
8495
|
-
tId:
|
|
8507
|
+
z280.object({
|
|
8508
|
+
tId: z280.string().optional()
|
|
8496
8509
|
})
|
|
8497
8510
|
);
|
|
8498
8511
|
|
|
8499
8512
|
// src/api/dto/elements/get-elements-v2.ts
|
|
8500
|
-
import { z as
|
|
8501
|
-
var DTOElementsGetTypeFilter =
|
|
8502
|
-
var DTOElementsGetQuerySchema =
|
|
8503
|
-
types:
|
|
8504
|
-
responseVersion:
|
|
8513
|
+
import { z as z281 } from "zod";
|
|
8514
|
+
var DTOElementsGetTypeFilter = z281.enum(["FigmaNode"]);
|
|
8515
|
+
var DTOElementsGetQuerySchema = z281.object({
|
|
8516
|
+
types: z281.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
8517
|
+
responseVersion: z281.coerce.number().default(1)
|
|
8505
8518
|
});
|
|
8506
|
-
var DTOElementsGetOutput =
|
|
8507
|
-
figmaNodes:
|
|
8519
|
+
var DTOElementsGetOutput = z281.object({
|
|
8520
|
+
figmaNodes: z281.array(DTOFigmaNode).optional()
|
|
8508
8521
|
});
|
|
8509
|
-
var DTOElementsGetOutputV2 =
|
|
8510
|
-
figmaNodes:
|
|
8522
|
+
var DTOElementsGetOutputV2 = z281.object({
|
|
8523
|
+
figmaNodes: z281.array(DTOFigmaNodeV2).optional()
|
|
8511
8524
|
});
|
|
8512
8525
|
|
|
8513
8526
|
// src/api/dto/figma-components/assets/download.ts
|
|
8514
|
-
import { z as
|
|
8515
|
-
var DTOAssetRenderConfiguration =
|
|
8516
|
-
prefix:
|
|
8517
|
-
suffix:
|
|
8518
|
-
scale:
|
|
8519
|
-
format:
|
|
8520
|
-
});
|
|
8521
|
-
var DTORenderedAssetFile =
|
|
8522
|
-
assetId:
|
|
8523
|
-
fileName:
|
|
8524
|
-
sourceUrl:
|
|
8527
|
+
import { z as z282 } from "zod";
|
|
8528
|
+
var DTOAssetRenderConfiguration = z282.object({
|
|
8529
|
+
prefix: z282.string().optional(),
|
|
8530
|
+
suffix: z282.string().optional(),
|
|
8531
|
+
scale: z282.enum(["x1", "x2", "x3", "x4"]),
|
|
8532
|
+
format: z282.enum(["png", "pdf", "svg"])
|
|
8533
|
+
});
|
|
8534
|
+
var DTORenderedAssetFile = z282.object({
|
|
8535
|
+
assetId: z282.string(),
|
|
8536
|
+
fileName: z282.string(),
|
|
8537
|
+
sourceUrl: z282.string(),
|
|
8525
8538
|
settings: DTOAssetRenderConfiguration,
|
|
8526
|
-
originalName:
|
|
8539
|
+
originalName: z282.string()
|
|
8527
8540
|
});
|
|
8528
|
-
var DTODownloadAssetsRequest =
|
|
8529
|
-
persistentIds:
|
|
8541
|
+
var DTODownloadAssetsRequest = z282.object({
|
|
8542
|
+
persistentIds: z282.array(z282.string().uuid()).optional(),
|
|
8530
8543
|
settings: DTOAssetRenderConfiguration.array()
|
|
8531
8544
|
});
|
|
8532
|
-
var DTODownloadAssetsResponse =
|
|
8545
|
+
var DTODownloadAssetsResponse = z282.object({
|
|
8533
8546
|
items: DTORenderedAssetFile.array()
|
|
8534
8547
|
});
|
|
8535
8548
|
|
|
8536
8549
|
// src/api/dto/figma-exporter/figma-node.ts
|
|
8537
|
-
import { z as
|
|
8538
|
-
var DTOFigmaNodeResponse =
|
|
8550
|
+
import { z as z283 } from "zod";
|
|
8551
|
+
var DTOFigmaNodeResponse = z283.object({
|
|
8539
8552
|
nodes: FigmaExporterAnyDesignNodeSchema
|
|
8540
8553
|
});
|
|
8541
8554
|
|
|
8542
8555
|
// src/api/dto/liveblocks/auth-response.ts
|
|
8543
|
-
import { z as
|
|
8544
|
-
var DTOLiveblocksAuthResponse =
|
|
8545
|
-
token:
|
|
8556
|
+
import { z as z284 } from "zod";
|
|
8557
|
+
var DTOLiveblocksAuthResponse = z284.object({
|
|
8558
|
+
token: z284.string()
|
|
8559
|
+
});
|
|
8560
|
+
|
|
8561
|
+
// src/api/dto/portal/portal-settings.ts
|
|
8562
|
+
import { z as z285 } from "zod";
|
|
8563
|
+
var DTOPortalSettingsTheme = PortalSettingsTheme;
|
|
8564
|
+
var DTOPortalSettings = z285.object({
|
|
8565
|
+
id: z285.string(),
|
|
8566
|
+
workspaceId: z285.string(),
|
|
8567
|
+
enabledDesignSystemIds: z285.array(z285.string()),
|
|
8568
|
+
enabledBrandPersistentIds: z285.array(z285.string()),
|
|
8569
|
+
theme: nullishToOptional(DTOPortalSettingsTheme),
|
|
8570
|
+
sidebar: nullishToOptional(z285.any()),
|
|
8571
|
+
createdAt: z285.coerce.date(),
|
|
8572
|
+
updatedAt: z285.coerce.date()
|
|
8573
|
+
});
|
|
8574
|
+
var DTOPortalSettingsGetResponse = z285.object({
|
|
8575
|
+
portalSettings: DTOPortalSettings
|
|
8576
|
+
});
|
|
8577
|
+
var DTOPortalSettingsUpdatePayload = z285.object({
|
|
8578
|
+
enabledDesignSystemIds: z285.array(z285.string()).optional(),
|
|
8579
|
+
enabledBrandPersistentIds: z285.array(z285.string()).optional(),
|
|
8580
|
+
theme: DTOPortalSettingsTheme.optional(),
|
|
8581
|
+
sidebar: z285.any().optional()
|
|
8546
8582
|
});
|
|
8547
8583
|
|
|
8548
8584
|
// src/api/dto/themes/override.ts
|
|
8549
|
-
import { z as
|
|
8585
|
+
import { z as z286 } from "zod";
|
|
8550
8586
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
8551
|
-
|
|
8552
|
-
tokenPersistentId:
|
|
8587
|
+
z286.object({
|
|
8588
|
+
tokenPersistentId: z286.string(),
|
|
8553
8589
|
origin: ThemeOverrideOrigin.optional()
|
|
8554
8590
|
})
|
|
8555
8591
|
);
|
|
8556
8592
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
8557
|
-
|
|
8558
|
-
tokenPersistentId:
|
|
8593
|
+
z286.object({
|
|
8594
|
+
tokenPersistentId: z286.string()
|
|
8559
8595
|
})
|
|
8560
8596
|
);
|
|
8561
8597
|
|
|
8562
8598
|
// src/api/dto/themes/theme.ts
|
|
8563
|
-
import { z as
|
|
8564
|
-
var DTOTheme =
|
|
8565
|
-
id:
|
|
8566
|
-
persistentId:
|
|
8567
|
-
designSystemVersionId:
|
|
8568
|
-
brandId:
|
|
8599
|
+
import { z as z287 } from "zod";
|
|
8600
|
+
var DTOTheme = z287.object({
|
|
8601
|
+
id: z287.string(),
|
|
8602
|
+
persistentId: z287.string(),
|
|
8603
|
+
designSystemVersionId: z287.string(),
|
|
8604
|
+
brandId: z287.string(),
|
|
8569
8605
|
meta: ObjectMeta,
|
|
8570
|
-
codeName:
|
|
8606
|
+
codeName: z287.string(),
|
|
8571
8607
|
overrides: DTOThemeOverride.array()
|
|
8572
8608
|
});
|
|
8573
|
-
var DTOThemeResponse =
|
|
8609
|
+
var DTOThemeResponse = z287.object({
|
|
8574
8610
|
theme: DTOTheme
|
|
8575
8611
|
});
|
|
8576
|
-
var DTOThemeListResponse =
|
|
8612
|
+
var DTOThemeListResponse = z287.object({
|
|
8577
8613
|
themes: DTOTheme.array()
|
|
8578
8614
|
});
|
|
8579
|
-
var DTOThemeCreatePayload =
|
|
8615
|
+
var DTOThemeCreatePayload = z287.object({
|
|
8580
8616
|
meta: ObjectMeta,
|
|
8581
|
-
persistentId:
|
|
8582
|
-
brandId:
|
|
8583
|
-
codeName:
|
|
8617
|
+
persistentId: z287.string(),
|
|
8618
|
+
brandId: z287.string(),
|
|
8619
|
+
codeName: z287.string(),
|
|
8584
8620
|
overrides: DTOThemeOverride.array()
|
|
8585
8621
|
});
|
|
8586
8622
|
|
|
@@ -8816,13 +8852,13 @@ var ExportersEndpoint = class {
|
|
|
8816
8852
|
};
|
|
8817
8853
|
|
|
8818
8854
|
// src/api/endpoints/codegen/jobs.ts
|
|
8819
|
-
import { z as
|
|
8855
|
+
import { z as z288 } from "zod";
|
|
8820
8856
|
var ExporterJobsEndpoint = class {
|
|
8821
8857
|
constructor(requestExecutor) {
|
|
8822
8858
|
this.requestExecutor = requestExecutor;
|
|
8823
8859
|
}
|
|
8824
8860
|
list(workspaceId) {
|
|
8825
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
8861
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z288.any());
|
|
8826
8862
|
}
|
|
8827
8863
|
get(workspaceId, jobId) {
|
|
8828
8864
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -8880,7 +8916,7 @@ var CodegenEndpoint = class {
|
|
|
8880
8916
|
};
|
|
8881
8917
|
|
|
8882
8918
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
8883
|
-
import { z as
|
|
8919
|
+
import { z as z289 } from "zod";
|
|
8884
8920
|
var BrandsEndpoint = class {
|
|
8885
8921
|
constructor(requestExecutor) {
|
|
8886
8922
|
this.requestExecutor = requestExecutor;
|
|
@@ -8914,7 +8950,7 @@ var BrandsEndpoint = class {
|
|
|
8914
8950
|
});
|
|
8915
8951
|
}
|
|
8916
8952
|
delete(dsId, vId, brandId) {
|
|
8917
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
8953
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z289.any(), {
|
|
8918
8954
|
method: "DELETE"
|
|
8919
8955
|
});
|
|
8920
8956
|
}
|
|
@@ -9181,7 +9217,7 @@ var ImportJobsEndpoint = class {
|
|
|
9181
9217
|
};
|
|
9182
9218
|
|
|
9183
9219
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
9184
|
-
import { z as
|
|
9220
|
+
import { z as z290 } from "zod";
|
|
9185
9221
|
var OverridesEndpoint = class {
|
|
9186
9222
|
constructor(requestExecutor) {
|
|
9187
9223
|
this.requestExecutor = requestExecutor;
|
|
@@ -9189,7 +9225,7 @@ var OverridesEndpoint = class {
|
|
|
9189
9225
|
create(dsId, versionId, themeId, body) {
|
|
9190
9226
|
return this.requestExecutor.json(
|
|
9191
9227
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
9192
|
-
|
|
9228
|
+
z290.any(),
|
|
9193
9229
|
{
|
|
9194
9230
|
method: "POST",
|
|
9195
9231
|
body
|
|
@@ -9199,7 +9235,7 @@ var OverridesEndpoint = class {
|
|
|
9199
9235
|
};
|
|
9200
9236
|
|
|
9201
9237
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
9202
|
-
import { z as
|
|
9238
|
+
import { z as z291 } from "zod";
|
|
9203
9239
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
9204
9240
|
constructor(requestExecutor) {
|
|
9205
9241
|
this.requestExecutor = requestExecutor;
|
|
@@ -9227,7 +9263,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
9227
9263
|
delete(designSystemId, versionId, defId) {
|
|
9228
9264
|
return this.requestExecutor.json(
|
|
9229
9265
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
9230
|
-
|
|
9266
|
+
z291.any(),
|
|
9231
9267
|
{ method: "DELETE" }
|
|
9232
9268
|
);
|
|
9233
9269
|
}
|
|
@@ -9266,7 +9302,7 @@ var VersionStatsEndpoint = class {
|
|
|
9266
9302
|
};
|
|
9267
9303
|
|
|
9268
9304
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
9269
|
-
import { z as
|
|
9305
|
+
import { z as z292 } from "zod";
|
|
9270
9306
|
var ThemesEndpoint = class {
|
|
9271
9307
|
constructor(requestExecutor) {
|
|
9272
9308
|
this.requestExecutor = requestExecutor;
|
|
@@ -9289,7 +9325,7 @@ var ThemesEndpoint = class {
|
|
|
9289
9325
|
});
|
|
9290
9326
|
}
|
|
9291
9327
|
delete(dsId, versionId, themeId) {
|
|
9292
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
9328
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z292.any(), {
|
|
9293
9329
|
method: "DELETE"
|
|
9294
9330
|
});
|
|
9295
9331
|
}
|
|
@@ -9460,7 +9496,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
9460
9496
|
};
|
|
9461
9497
|
|
|
9462
9498
|
// src/api/endpoints/design-system/design-systems.ts
|
|
9463
|
-
import { z as
|
|
9499
|
+
import { z as z296 } from "zod";
|
|
9464
9500
|
|
|
9465
9501
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
9466
9502
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -9537,7 +9573,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
9537
9573
|
};
|
|
9538
9574
|
|
|
9539
9575
|
// src/api/endpoints/design-system/sources.ts
|
|
9540
|
-
import { z as
|
|
9576
|
+
import { z as z293 } from "zod";
|
|
9541
9577
|
var DesignSystemSourcesEndpoint = class {
|
|
9542
9578
|
constructor(requestExecutor) {
|
|
9543
9579
|
this.requestExecutor = requestExecutor;
|
|
@@ -9555,7 +9591,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
9555
9591
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
9556
9592
|
}
|
|
9557
9593
|
delete(dsId, sourceId) {
|
|
9558
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
9594
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z293.any(), { method: "DELETE" });
|
|
9559
9595
|
}
|
|
9560
9596
|
updateFigmaSource(dsId, sourceId, payload) {
|
|
9561
9597
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse, {
|
|
@@ -9598,7 +9634,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
9598
9634
|
};
|
|
9599
9635
|
|
|
9600
9636
|
// src/api/endpoints/design-system/storybook.ts
|
|
9601
|
-
import { z as
|
|
9637
|
+
import { z as z294 } from "zod";
|
|
9602
9638
|
var StorybookEntriesEndpoint = class {
|
|
9603
9639
|
constructor(requestExecutor) {
|
|
9604
9640
|
this.requestExecutor = requestExecutor;
|
|
@@ -9614,14 +9650,14 @@ var StorybookEntriesEndpoint = class {
|
|
|
9614
9650
|
);
|
|
9615
9651
|
}
|
|
9616
9652
|
delete(dsId, entryId) {
|
|
9617
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
9653
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z294.any(), {
|
|
9618
9654
|
method: "DELETE"
|
|
9619
9655
|
});
|
|
9620
9656
|
}
|
|
9621
9657
|
};
|
|
9622
9658
|
|
|
9623
9659
|
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
9624
|
-
import { z as
|
|
9660
|
+
import { z as z295 } from "zod";
|
|
9625
9661
|
var StorybookHostingEndpoint = class {
|
|
9626
9662
|
constructor(requestExecutor) {
|
|
9627
9663
|
this.requestExecutor = requestExecutor;
|
|
@@ -9635,7 +9671,7 @@ var StorybookHostingEndpoint = class {
|
|
|
9635
9671
|
delete(dsId, storybookUploadId) {
|
|
9636
9672
|
return this.requestExecutor.json(
|
|
9637
9673
|
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
9638
|
-
|
|
9674
|
+
z295.object({ ok: z295.boolean() }),
|
|
9639
9675
|
{
|
|
9640
9676
|
method: "DELETE"
|
|
9641
9677
|
}
|
|
@@ -9693,7 +9729,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9693
9729
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
9694
9730
|
}
|
|
9695
9731
|
delete(dsId) {
|
|
9696
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
9732
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z296.any(), { method: "DELETE" });
|
|
9697
9733
|
}
|
|
9698
9734
|
update(dsId, body) {
|
|
9699
9735
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -9710,7 +9746,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9710
9746
|
};
|
|
9711
9747
|
|
|
9712
9748
|
// src/api/endpoints/workspaces/integrations.ts
|
|
9713
|
-
import { z as
|
|
9749
|
+
import { z as z297 } from "zod";
|
|
9714
9750
|
var WorkspaceIntegrationsEndpoint = class {
|
|
9715
9751
|
constructor(requestExecutor) {
|
|
9716
9752
|
this.requestExecutor = requestExecutor;
|
|
@@ -9719,7 +9755,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
9719
9755
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
9720
9756
|
}
|
|
9721
9757
|
delete(wsId, iId) {
|
|
9722
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
9758
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z297.unknown(), { method: "DELETE" });
|
|
9723
9759
|
}
|
|
9724
9760
|
};
|
|
9725
9761
|
|
|
@@ -9751,7 +9787,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
9751
9787
|
};
|
|
9752
9788
|
|
|
9753
9789
|
// src/api/endpoints/workspaces/members.ts
|
|
9754
|
-
import { z as
|
|
9790
|
+
import { z as z298 } from "zod";
|
|
9755
9791
|
var WorkspaceMembersEndpoint = class {
|
|
9756
9792
|
constructor(requestExecutor) {
|
|
9757
9793
|
this.requestExecutor = requestExecutor;
|
|
@@ -9768,7 +9804,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
9768
9804
|
});
|
|
9769
9805
|
}
|
|
9770
9806
|
invite(workspaceId, body) {
|
|
9771
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
9807
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z298.any(), { method: "POST", body });
|
|
9772
9808
|
}
|
|
9773
9809
|
delete(workspaceId, userId) {
|
|
9774
9810
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -9797,7 +9833,7 @@ var WorkspaceNpmRegistryEndpoint = class {
|
|
|
9797
9833
|
};
|
|
9798
9834
|
|
|
9799
9835
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
9800
|
-
import { z as
|
|
9836
|
+
import { z as z299 } from "zod";
|
|
9801
9837
|
var WorkspacesEndpoint = class {
|
|
9802
9838
|
constructor(requestExecutor) {
|
|
9803
9839
|
this.requestExecutor = requestExecutor;
|
|
@@ -9827,10 +9863,10 @@ var WorkspacesEndpoint = class {
|
|
|
9827
9863
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
9828
9864
|
}
|
|
9829
9865
|
delete(workspaceId) {
|
|
9830
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
9866
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z299.any(), { method: "DELETE" });
|
|
9831
9867
|
}
|
|
9832
9868
|
subscription(workspaceId) {
|
|
9833
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
9869
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z299.any(), { method: "GET" });
|
|
9834
9870
|
}
|
|
9835
9871
|
transferOwnership(workspaceId, body) {
|
|
9836
9872
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -9930,9 +9966,9 @@ ${bodyText}`,
|
|
|
9930
9966
|
|
|
9931
9967
|
// src/api/transport/request-executor.ts
|
|
9932
9968
|
import fetch from "node-fetch";
|
|
9933
|
-
import { z as
|
|
9934
|
-
var ResponseWrapper =
|
|
9935
|
-
result:
|
|
9969
|
+
import { z as z300 } from "zod";
|
|
9970
|
+
var ResponseWrapper = z300.object({
|
|
9971
|
+
result: z300.record(z300.any())
|
|
9936
9972
|
});
|
|
9937
9973
|
var RequestExecutor = class {
|
|
9938
9974
|
constructor(testServerConfig) {
|
|
@@ -10006,31 +10042,31 @@ var SupernovaApiClient = class {
|
|
|
10006
10042
|
};
|
|
10007
10043
|
|
|
10008
10044
|
// src/events/design-system.ts
|
|
10009
|
-
import { z as
|
|
10010
|
-
var DTOEventFigmaNodesRendered =
|
|
10011
|
-
type:
|
|
10012
|
-
designSystemId:
|
|
10013
|
-
versionId:
|
|
10014
|
-
figmaNodePersistentIds:
|
|
10015
|
-
});
|
|
10016
|
-
var DTOEventDataSourcesImported =
|
|
10017
|
-
type:
|
|
10018
|
-
designSystemId:
|
|
10019
|
-
versionId:
|
|
10020
|
-
importJobId:
|
|
10045
|
+
import { z as z301 } from "zod";
|
|
10046
|
+
var DTOEventFigmaNodesRendered = z301.object({
|
|
10047
|
+
type: z301.literal("DesignSystem.FigmaNodesRendered"),
|
|
10048
|
+
designSystemId: z301.string(),
|
|
10049
|
+
versionId: z301.string(),
|
|
10050
|
+
figmaNodePersistentIds: z301.string().array()
|
|
10051
|
+
});
|
|
10052
|
+
var DTOEventDataSourcesImported = z301.object({
|
|
10053
|
+
type: z301.literal("DesignSystem.ImportJobFinished"),
|
|
10054
|
+
designSystemId: z301.string(),
|
|
10055
|
+
versionId: z301.string(),
|
|
10056
|
+
importJobId: z301.string(),
|
|
10021
10057
|
dataSourceType: DataSourceRemoteType,
|
|
10022
|
-
dataSourceIds:
|
|
10058
|
+
dataSourceIds: z301.string().array()
|
|
10023
10059
|
});
|
|
10024
10060
|
|
|
10025
10061
|
// src/events/event.ts
|
|
10026
|
-
import { z as
|
|
10027
|
-
var DTOEvent =
|
|
10062
|
+
import { z as z302 } from "zod";
|
|
10063
|
+
var DTOEvent = z302.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
10028
10064
|
|
|
10029
10065
|
// src/sync/docs-structure-repo.ts
|
|
10030
10066
|
import PQueue from "p-queue";
|
|
10031
10067
|
|
|
10032
10068
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
10033
|
-
import { z as
|
|
10069
|
+
import { z as z303 } from "zod";
|
|
10034
10070
|
|
|
10035
10071
|
// src/yjs/version-room/base.ts
|
|
10036
10072
|
var VersionRoomBaseYDoc = class {
|
|
@@ -10580,24 +10616,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
10580
10616
|
};
|
|
10581
10617
|
|
|
10582
10618
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
10583
|
-
var DocumentationHierarchySettings =
|
|
10584
|
-
routingVersion:
|
|
10585
|
-
isDraftFeatureAdopted:
|
|
10586
|
-
isApprovalFeatureEnabled:
|
|
10587
|
-
approvalRequiredForPublishing:
|
|
10619
|
+
var DocumentationHierarchySettings = z303.object({
|
|
10620
|
+
routingVersion: z303.string(),
|
|
10621
|
+
isDraftFeatureAdopted: z303.boolean(),
|
|
10622
|
+
isApprovalFeatureEnabled: z303.boolean(),
|
|
10623
|
+
approvalRequiredForPublishing: z303.boolean()
|
|
10588
10624
|
});
|
|
10589
10625
|
function yjsToDocumentationHierarchy(doc) {
|
|
10590
10626
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
10591
10627
|
}
|
|
10592
10628
|
|
|
10593
10629
|
// src/yjs/design-system-content/item-configuration.ts
|
|
10594
|
-
import { z as
|
|
10595
|
-
var DTODocumentationPageRoomHeaderData =
|
|
10596
|
-
title:
|
|
10630
|
+
import { z as z304 } from "zod";
|
|
10631
|
+
var DTODocumentationPageRoomHeaderData = z304.object({
|
|
10632
|
+
title: z304.string(),
|
|
10597
10633
|
configuration: DTODocumentationItemConfigurationV2
|
|
10598
10634
|
});
|
|
10599
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
10600
|
-
title:
|
|
10635
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z304.object({
|
|
10636
|
+
title: z304.string().optional(),
|
|
10601
10637
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
10602
10638
|
});
|
|
10603
10639
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -10632,9 +10668,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
10632
10668
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
10633
10669
|
|
|
10634
10670
|
// src/yjs/docs-editor/model/page.ts
|
|
10635
|
-
import { z as
|
|
10636
|
-
var DocumentationPageEditorModel =
|
|
10637
|
-
blocks:
|
|
10671
|
+
import { z as z305 } from "zod";
|
|
10672
|
+
var DocumentationPageEditorModel = z305.object({
|
|
10673
|
+
blocks: z305.array(DocumentationPageContentItem)
|
|
10638
10674
|
});
|
|
10639
10675
|
|
|
10640
10676
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -14311,7 +14347,7 @@ var blocks = [
|
|
|
14311
14347
|
|
|
14312
14348
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
14313
14349
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
14314
|
-
import { z as
|
|
14350
|
+
import { z as z306 } from "zod";
|
|
14315
14351
|
function yDocToPage(yDoc, definitions) {
|
|
14316
14352
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
14317
14353
|
}
|
|
@@ -14387,7 +14423,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
14387
14423
|
if (!id) return null;
|
|
14388
14424
|
return {
|
|
14389
14425
|
id,
|
|
14390
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
14426
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z306.string()) ?? "",
|
|
14391
14427
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
14392
14428
|
};
|
|
14393
14429
|
}
|
|
@@ -14421,7 +14457,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
14421
14457
|
});
|
|
14422
14458
|
}
|
|
14423
14459
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
14424
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
14460
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z306.string());
|
|
14425
14461
|
if (!definitionId) {
|
|
14426
14462
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
14427
14463
|
return [];
|
|
@@ -14462,7 +14498,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
14462
14498
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
14463
14499
|
if (!id) return null;
|
|
14464
14500
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
14465
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
14501
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z306.string().optional()));
|
|
14466
14502
|
return {
|
|
14467
14503
|
id,
|
|
14468
14504
|
type: "Block",
|
|
@@ -14585,9 +14621,9 @@ function parseRichTextAttribute(mark) {
|
|
|
14585
14621
|
return null;
|
|
14586
14622
|
}
|
|
14587
14623
|
function parseProsemirrorLink(mark) {
|
|
14588
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
14624
|
+
const href = getProsemirrorAttribute(mark, "href", z306.string().optional());
|
|
14589
14625
|
if (!href) return null;
|
|
14590
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
14626
|
+
const target = getProsemirrorAttribute(mark, "target", z306.string().optional());
|
|
14591
14627
|
const openInNewTab = target === "_blank";
|
|
14592
14628
|
if (href.startsWith("@")) {
|
|
14593
14629
|
return {
|
|
@@ -14606,9 +14642,9 @@ function parseProsemirrorLink(mark) {
|
|
|
14606
14642
|
}
|
|
14607
14643
|
}
|
|
14608
14644
|
function parseProsemirrorCommentHighlight(mark) {
|
|
14609
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
14645
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z306.string().optional());
|
|
14610
14646
|
if (!highlightId) return null;
|
|
14611
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
14647
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z306.boolean().optional()) ?? false;
|
|
14612
14648
|
return {
|
|
14613
14649
|
type: "Comment",
|
|
14614
14650
|
commentHighlightId: highlightId,
|
|
@@ -14619,7 +14655,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
14619
14655
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
14620
14656
|
if (!id) return null;
|
|
14621
14657
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
14622
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
14658
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z306.boolean().optional()) !== false;
|
|
14623
14659
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
14624
14660
|
if (!tableChild) {
|
|
14625
14661
|
return emptyTable(id, variantId, 0);
|
|
@@ -14665,9 +14701,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
14665
14701
|
function parseAsTableCell(prosemirrorNode) {
|
|
14666
14702
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
14667
14703
|
if (!id) return null;
|
|
14668
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
14704
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z306.string().optional());
|
|
14669
14705
|
let columnWidth;
|
|
14670
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
14706
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z306.array(z306.number()).nullish());
|
|
14671
14707
|
if (columnWidthArray) {
|
|
14672
14708
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
14673
14709
|
}
|
|
@@ -14703,7 +14739,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
14703
14739
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
14704
14740
|
};
|
|
14705
14741
|
case "image":
|
|
14706
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14742
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z306.string());
|
|
14707
14743
|
if (!items) return null;
|
|
14708
14744
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
14709
14745
|
if (!parsedItems.success) return null;
|
|
@@ -14817,7 +14853,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
14817
14853
|
);
|
|
14818
14854
|
}
|
|
14819
14855
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
14820
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14856
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z306.string());
|
|
14821
14857
|
if (!itemsString) return null;
|
|
14822
14858
|
const itemsJson = JSON.parse(itemsString);
|
|
14823
14859
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -14828,18 +14864,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
14828
14864
|
}
|
|
14829
14865
|
function parseAppearance(prosemirrorNode) {
|
|
14830
14866
|
let appearance = {};
|
|
14831
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
14867
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z306.string().optional());
|
|
14832
14868
|
if (rawAppearanceString) {
|
|
14833
14869
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
14834
14870
|
if (parsedAppearance.success) {
|
|
14835
14871
|
appearance = parsedAppearance.data;
|
|
14836
14872
|
}
|
|
14837
14873
|
}
|
|
14838
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
14874
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z306.number().optional());
|
|
14839
14875
|
if (columns) {
|
|
14840
14876
|
appearance.numberOfColumns = columns;
|
|
14841
14877
|
}
|
|
14842
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
14878
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z306.string().optional());
|
|
14843
14879
|
if (backgroundColor) {
|
|
14844
14880
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
14845
14881
|
if (parsedColor.success) {
|
|
@@ -14940,12 +14976,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
14940
14976
|
}
|
|
14941
14977
|
}
|
|
14942
14978
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
14943
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
14979
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z306.string());
|
|
14944
14980
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
14945
14981
|
return id;
|
|
14946
14982
|
}
|
|
14947
14983
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
14948
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
14984
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z306.string()));
|
|
14949
14985
|
}
|
|
14950
14986
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
14951
14987
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -15801,6 +15837,10 @@ export {
|
|
|
15801
15837
|
DTOPipelineResponse,
|
|
15802
15838
|
DTOPipelineTriggerBody,
|
|
15803
15839
|
DTOPipelineUpdateBody,
|
|
15840
|
+
DTOPortalSettings,
|
|
15841
|
+
DTOPortalSettingsGetResponse,
|
|
15842
|
+
DTOPortalSettingsTheme,
|
|
15843
|
+
DTOPortalSettingsUpdatePayload,
|
|
15804
15844
|
DTOPublishDocumentationChanges,
|
|
15805
15845
|
DTOPublishDocumentationRequest,
|
|
15806
15846
|
DTOPublishDocumentationResponse,
|