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