@supernova-studio/client 0.58.0 → 0.58.2
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 +198 -1118
- package/dist/index.d.ts +198 -1118
- package/dist/index.js +63 -58
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +951 -946
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/aux/color.ts +7 -0
- package/src/api/dto/aux/index.ts +2 -0
- package/src/api/dto/aux/meta.ts +8 -0
- package/src/api/dto/elements/elements-action-v2.ts +0 -18
- package/src/api/dto/elements/properties/index.ts +0 -1
- package/src/api/dto/elements/properties/property-definitions.ts +22 -16
- package/src/api/endpoints/design-system/versions/property-definitions.ts +18 -0
- package/src/api/endpoints/design-system/versions/versions.ts +20 -1
- package/src/api/transport/request-executor.ts +4 -1
- package/src/api/dto/elements/properties/property-definitions-actions-v2.ts +0 -53
package/dist/index.mjs
CHANGED
|
@@ -5127,49 +5127,62 @@ function integrationCredentialToDto(credential) {
|
|
|
5127
5127
|
};
|
|
5128
5128
|
}
|
|
5129
5129
|
|
|
5130
|
-
// src/api/dto/aux/
|
|
5130
|
+
// src/api/dto/aux/color.ts
|
|
5131
5131
|
import { z as z177 } from "zod";
|
|
5132
|
-
var
|
|
5133
|
-
|
|
5134
|
-
|
|
5132
|
+
var DTOColorTokenInlineData = z177.object({
|
|
5133
|
+
value: z177.string().regex(/^#[a-f0-9]{6,8}$/)
|
|
5134
|
+
});
|
|
5135
|
+
|
|
5136
|
+
// src/api/dto/aux/meta.ts
|
|
5137
|
+
import { z as z178 } from "zod";
|
|
5138
|
+
var DTOObjectMeta = z178.object({
|
|
5139
|
+
name: z178.string().max(512),
|
|
5140
|
+
description: z178.string().max(2048).optional()
|
|
5141
|
+
});
|
|
5142
|
+
|
|
5143
|
+
// src/api/dto/aux/pagination.ts
|
|
5144
|
+
import { z as z179 } from "zod";
|
|
5145
|
+
var DTOPagination = z179.object({
|
|
5146
|
+
limit: z179.string().optional(),
|
|
5147
|
+
offset: z179.string().optional()
|
|
5135
5148
|
});
|
|
5136
5149
|
|
|
5137
5150
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5138
|
-
import { z as
|
|
5151
|
+
import { z as z212 } from "zod";
|
|
5139
5152
|
|
|
5140
5153
|
// src/api/dto/design-systems/brand.ts
|
|
5141
|
-
import { z as
|
|
5142
|
-
var DTOBrand =
|
|
5143
|
-
id:
|
|
5144
|
-
designSystemVersionId:
|
|
5145
|
-
persistentId:
|
|
5154
|
+
import { z as z180 } from "zod";
|
|
5155
|
+
var DTOBrand = z180.object({
|
|
5156
|
+
id: z180.string(),
|
|
5157
|
+
designSystemVersionId: z180.string(),
|
|
5158
|
+
persistentId: z180.string(),
|
|
5146
5159
|
meta: ObjectMeta
|
|
5147
5160
|
});
|
|
5148
|
-
var DTOBrandGetResponse =
|
|
5149
|
-
var DTOBrandCreateResponse =
|
|
5161
|
+
var DTOBrandGetResponse = z180.object({ brand: DTOBrand });
|
|
5162
|
+
var DTOBrandCreateResponse = z180.object({
|
|
5150
5163
|
brand: DTOBrand
|
|
5151
5164
|
});
|
|
5152
|
-
var DTOBrandsListResponse =
|
|
5165
|
+
var DTOBrandsListResponse = z180.object({ brands: z180.array(DTOBrand) });
|
|
5153
5166
|
|
|
5154
5167
|
// src/api/dto/design-systems/contact.ts
|
|
5155
|
-
import { z as
|
|
5168
|
+
import { z as z184 } from "zod";
|
|
5156
5169
|
|
|
5157
5170
|
// src/api/dto/users/authenticated-user.ts
|
|
5158
|
-
import { z as
|
|
5171
|
+
import { z as z182 } from "zod";
|
|
5159
5172
|
|
|
5160
5173
|
// src/api/dto/users/user.ts
|
|
5161
|
-
import { z as
|
|
5162
|
-
var DTOUserProfile =
|
|
5163
|
-
name:
|
|
5164
|
-
nickname:
|
|
5165
|
-
avatar:
|
|
5166
|
-
});
|
|
5167
|
-
var DTOUser =
|
|
5168
|
-
id:
|
|
5169
|
-
email:
|
|
5174
|
+
import { z as z181 } from "zod";
|
|
5175
|
+
var DTOUserProfile = z181.object({
|
|
5176
|
+
name: z181.string(),
|
|
5177
|
+
nickname: z181.string().optional(),
|
|
5178
|
+
avatar: z181.string().optional()
|
|
5179
|
+
});
|
|
5180
|
+
var DTOUser = z181.object({
|
|
5181
|
+
id: z181.string(),
|
|
5182
|
+
email: z181.string(),
|
|
5170
5183
|
profile: DTOUserProfile
|
|
5171
5184
|
});
|
|
5172
|
-
var DTOUserGetResponse =
|
|
5185
|
+
var DTOUserGetResponse = z181.object({
|
|
5173
5186
|
user: DTOUser
|
|
5174
5187
|
});
|
|
5175
5188
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -5178,146 +5191,146 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
5178
5191
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
5179
5192
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5180
5193
|
var DTOUserSource = UserSource;
|
|
5181
|
-
var DTOUserOnboarding =
|
|
5182
|
-
companyName:
|
|
5183
|
-
numberOfPeopleInOrg:
|
|
5184
|
-
numberOfPeopleInDesignTeam:
|
|
5194
|
+
var DTOUserOnboarding = z182.object({
|
|
5195
|
+
companyName: z182.string().optional(),
|
|
5196
|
+
numberOfPeopleInOrg: z182.string().optional(),
|
|
5197
|
+
numberOfPeopleInDesignTeam: z182.string().optional(),
|
|
5185
5198
|
department: DTOUserOnboardingDepartment.optional(),
|
|
5186
|
-
jobTitle:
|
|
5187
|
-
phase:
|
|
5199
|
+
jobTitle: z182.string().optional(),
|
|
5200
|
+
phase: z182.string().optional(),
|
|
5188
5201
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
5189
|
-
designSystemName:
|
|
5190
|
-
defaultDestination:
|
|
5191
|
-
isPageDraftOnboardingFinished:
|
|
5202
|
+
designSystemName: z182.string().optional(),
|
|
5203
|
+
defaultDestination: z182.string().optional(),
|
|
5204
|
+
isPageDraftOnboardingFinished: z182.boolean().optional()
|
|
5192
5205
|
});
|
|
5193
5206
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5194
5207
|
onboarding: DTOUserOnboarding.optional()
|
|
5195
5208
|
});
|
|
5196
5209
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5197
5210
|
profile: DTOAuthenticatedUserProfile,
|
|
5198
|
-
createdAt:
|
|
5199
|
-
loggedOutAt:
|
|
5211
|
+
createdAt: z182.coerce.date(),
|
|
5212
|
+
loggedOutAt: z182.coerce.date().optional(),
|
|
5200
5213
|
source: DTOUserSource.optional()
|
|
5201
5214
|
});
|
|
5202
|
-
var DTOAuthenticatedUserResponse =
|
|
5215
|
+
var DTOAuthenticatedUserResponse = z182.object({
|
|
5203
5216
|
user: DTOAuthenticatedUser
|
|
5204
5217
|
});
|
|
5205
5218
|
|
|
5206
5219
|
// src/api/dto/users/update.ts
|
|
5207
|
-
import { z as
|
|
5208
|
-
var DTOUserProfileUpdateResponse =
|
|
5220
|
+
import { z as z183 } from "zod";
|
|
5221
|
+
var DTOUserProfileUpdateResponse = z183.object({
|
|
5209
5222
|
user: User
|
|
5210
5223
|
});
|
|
5211
5224
|
|
|
5212
5225
|
// src/api/dto/design-systems/contact.ts
|
|
5213
|
-
var DTODesignSystemContactsResponse =
|
|
5214
|
-
contacts:
|
|
5215
|
-
workspace:
|
|
5216
|
-
designSystem:
|
|
5226
|
+
var DTODesignSystemContactsResponse = z184.object({
|
|
5227
|
+
contacts: z184.object({
|
|
5228
|
+
workspace: z184.array(DTOUser),
|
|
5229
|
+
designSystem: z184.array(DTOUser)
|
|
5217
5230
|
})
|
|
5218
5231
|
});
|
|
5219
5232
|
|
|
5220
5233
|
// src/api/dto/design-systems/data-source.ts
|
|
5221
|
-
import { z as
|
|
5222
|
-
var DTODataSourceFigmaFileVersion =
|
|
5223
|
-
id:
|
|
5224
|
-
created_at:
|
|
5225
|
-
label:
|
|
5226
|
-
description:
|
|
5227
|
-
});
|
|
5228
|
-
var DTODataSourceFigmaCloud =
|
|
5229
|
-
fileId:
|
|
5234
|
+
import { z as z185 } from "zod";
|
|
5235
|
+
var DTODataSourceFigmaFileVersion = z185.object({
|
|
5236
|
+
id: z185.string(),
|
|
5237
|
+
created_at: z185.coerce.date(),
|
|
5238
|
+
label: z185.string(),
|
|
5239
|
+
description: z185.string()
|
|
5240
|
+
});
|
|
5241
|
+
var DTODataSourceFigmaCloud = z185.object({
|
|
5242
|
+
fileId: z185.string(),
|
|
5230
5243
|
state: DataSourceFigmaState,
|
|
5231
5244
|
autoImportMode: DataSourceAutoImportMode,
|
|
5232
|
-
fileThumbnailUrl:
|
|
5245
|
+
fileThumbnailUrl: z185.string().optional(),
|
|
5233
5246
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5234
|
-
lastImportedAt:
|
|
5247
|
+
lastImportedAt: z185.coerce.date().nullish(),
|
|
5235
5248
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5236
|
-
lastUpdatesCheckedAt:
|
|
5237
|
-
ownerId:
|
|
5238
|
-
ownerUserName:
|
|
5239
|
-
preferredCredentialId:
|
|
5249
|
+
lastUpdatesCheckedAt: z185.date().nullish(),
|
|
5250
|
+
ownerId: z185.string(),
|
|
5251
|
+
ownerUserName: z185.string().optional(),
|
|
5252
|
+
preferredCredentialId: z185.string().optional(),
|
|
5240
5253
|
stats: DataSourceStats
|
|
5241
5254
|
});
|
|
5242
|
-
var DTODataSourceFigma =
|
|
5243
|
-
id:
|
|
5244
|
-
type:
|
|
5245
|
-
fileName:
|
|
5255
|
+
var DTODataSourceFigma = z185.object({
|
|
5256
|
+
id: z185.string(),
|
|
5257
|
+
type: z185.literal(DataSourceRemoteType.Enum.Figma),
|
|
5258
|
+
fileName: z185.string(),
|
|
5246
5259
|
scope: DataSourceFigmaScope,
|
|
5247
|
-
brandId:
|
|
5248
|
-
themeId:
|
|
5260
|
+
brandId: z185.string(),
|
|
5261
|
+
themeId: z185.string().nullish(),
|
|
5249
5262
|
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5250
5263
|
});
|
|
5251
|
-
var DTODataSourceTokenStudio =
|
|
5252
|
-
id:
|
|
5253
|
-
type:
|
|
5254
|
-
fileName:
|
|
5255
|
-
brandId:
|
|
5256
|
-
themeId:
|
|
5257
|
-
tokenStudio:
|
|
5258
|
-
settings:
|
|
5259
|
-
dryRun:
|
|
5260
|
-
verbose:
|
|
5261
|
-
preciseCopy:
|
|
5264
|
+
var DTODataSourceTokenStudio = z185.object({
|
|
5265
|
+
id: z185.string(),
|
|
5266
|
+
type: z185.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5267
|
+
fileName: z185.string(),
|
|
5268
|
+
brandId: z185.string(),
|
|
5269
|
+
themeId: z185.string().nullish(),
|
|
5270
|
+
tokenStudio: z185.object({
|
|
5271
|
+
settings: z185.object({
|
|
5272
|
+
dryRun: z185.boolean(),
|
|
5273
|
+
verbose: z185.boolean(),
|
|
5274
|
+
preciseCopy: z185.boolean()
|
|
5262
5275
|
}),
|
|
5263
|
-
connectionName:
|
|
5264
|
-
lastImportedAt:
|
|
5265
|
-
lastImportedResults:
|
|
5266
|
-
|
|
5267
|
-
mapping:
|
|
5268
|
-
tokenSets:
|
|
5269
|
-
supernovaBrand:
|
|
5270
|
-
supernovaTheme:
|
|
5276
|
+
connectionName: z185.string(),
|
|
5277
|
+
lastImportedAt: z185.coerce.date(),
|
|
5278
|
+
lastImportedResults: z185.array(
|
|
5279
|
+
z185.object({
|
|
5280
|
+
mapping: z185.object({
|
|
5281
|
+
tokenSets: z185.array(z185.string()),
|
|
5282
|
+
supernovaBrand: z185.string(),
|
|
5283
|
+
supernovaTheme: z185.string().optional()
|
|
5271
5284
|
}),
|
|
5272
|
-
isFailed:
|
|
5273
|
-
tokensCreated:
|
|
5274
|
-
tokensDeleted:
|
|
5275
|
-
tokensUpdated:
|
|
5285
|
+
isFailed: z185.boolean(),
|
|
5286
|
+
tokensCreated: z185.number(),
|
|
5287
|
+
tokensDeleted: z185.number(),
|
|
5288
|
+
tokensUpdated: z185.number()
|
|
5276
5289
|
})
|
|
5277
5290
|
)
|
|
5278
5291
|
})
|
|
5279
5292
|
});
|
|
5280
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5281
|
-
id:
|
|
5282
|
-
type:
|
|
5283
|
-
fileName:
|
|
5284
|
-
brandId:
|
|
5285
|
-
upload:
|
|
5286
|
-
remoteId:
|
|
5293
|
+
var DTODataSourceFigmaVariablesPlugin = z185.object({
|
|
5294
|
+
id: z185.string(),
|
|
5295
|
+
type: z185.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5296
|
+
fileName: z185.string(),
|
|
5297
|
+
brandId: z185.string(),
|
|
5298
|
+
upload: z185.object({
|
|
5299
|
+
remoteId: z185.string(),
|
|
5287
5300
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5288
|
-
lastImportedAt:
|
|
5301
|
+
lastImportedAt: z185.coerce.date().optional(),
|
|
5289
5302
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5290
|
-
isTokenTypeSplitEnabled:
|
|
5303
|
+
isTokenTypeSplitEnabled: z185.boolean()
|
|
5291
5304
|
}),
|
|
5292
|
-
figmaVariablesPlugin:
|
|
5293
|
-
fileId:
|
|
5294
|
-
lastImportedAt:
|
|
5305
|
+
figmaVariablesPlugin: z185.object({
|
|
5306
|
+
fileId: z185.string(),
|
|
5307
|
+
lastImportedAt: z185.coerce.date().optional(),
|
|
5295
5308
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5296
|
-
isTokenTypeSplitEnabled:
|
|
5297
|
-
isCollectionsMigrationCompleted:
|
|
5309
|
+
isTokenTypeSplitEnabled: z185.boolean(),
|
|
5310
|
+
isCollectionsMigrationCompleted: z185.boolean().default(false)
|
|
5298
5311
|
})
|
|
5299
5312
|
});
|
|
5300
|
-
var DTODataSource =
|
|
5313
|
+
var DTODataSource = z185.discriminatedUnion("type", [
|
|
5301
5314
|
DTODataSourceFigma,
|
|
5302
5315
|
DTODataSourceFigmaVariablesPlugin,
|
|
5303
5316
|
DTODataSourceTokenStudio
|
|
5304
5317
|
]);
|
|
5305
|
-
var DTODataSourcesListResponse =
|
|
5306
|
-
sources:
|
|
5318
|
+
var DTODataSourcesListResponse = z185.object({
|
|
5319
|
+
sources: z185.array(DTODataSource)
|
|
5307
5320
|
});
|
|
5308
|
-
var DTODataSourceCreationResponse =
|
|
5321
|
+
var DTODataSourceCreationResponse = z185.object({
|
|
5309
5322
|
source: DTODataSource
|
|
5310
5323
|
});
|
|
5311
5324
|
|
|
5312
5325
|
// src/api/dto/design-systems/design-system.ts
|
|
5313
|
-
import { z as
|
|
5326
|
+
import { z as z188 } from "zod";
|
|
5314
5327
|
|
|
5315
5328
|
// src/api/dto/design-systems/members.ts
|
|
5316
|
-
import { z as
|
|
5329
|
+
import { z as z187 } from "zod";
|
|
5317
5330
|
|
|
5318
5331
|
// src/api/dto/design-systems/role.ts
|
|
5319
|
-
import { z as
|
|
5320
|
-
var DTODesignSystemRole =
|
|
5332
|
+
import { z as z186 } from "zod";
|
|
5333
|
+
var DTODesignSystemRole = z186.enum([
|
|
5321
5334
|
WorkspaceRole.Admin,
|
|
5322
5335
|
WorkspaceRole.Contributor,
|
|
5323
5336
|
WorkspaceRole.Creator,
|
|
@@ -5325,29 +5338,29 @@ var DTODesignSystemRole = z184.enum([
|
|
|
5325
5338
|
]);
|
|
5326
5339
|
|
|
5327
5340
|
// src/api/dto/design-systems/members.ts
|
|
5328
|
-
var DTODesignSystemMember =
|
|
5329
|
-
userId:
|
|
5341
|
+
var DTODesignSystemMember = z187.object({
|
|
5342
|
+
userId: z187.string(),
|
|
5330
5343
|
/**
|
|
5331
5344
|
* Role that the member has in the design system,
|
|
5332
5345
|
* undefined if set to inherit from workspace
|
|
5333
5346
|
*/
|
|
5334
5347
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5335
5348
|
});
|
|
5336
|
-
var DTODesignSystemInvitation =
|
|
5337
|
-
id:
|
|
5338
|
-
workspaceInvitationId:
|
|
5349
|
+
var DTODesignSystemInvitation = z187.object({
|
|
5350
|
+
id: z187.string(),
|
|
5351
|
+
workspaceInvitationId: z187.string(),
|
|
5339
5352
|
/**
|
|
5340
5353
|
* Role that the invitation has in the design system,
|
|
5341
5354
|
* undefined if set to inherit from workspace
|
|
5342
5355
|
*/
|
|
5343
5356
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5344
5357
|
});
|
|
5345
|
-
var DTODesignSystemMemberListResponse =
|
|
5358
|
+
var DTODesignSystemMemberListResponse = z187.object({
|
|
5346
5359
|
members: DTODesignSystemMember.array(),
|
|
5347
5360
|
invitations: DTODesignSystemInvitation.array()
|
|
5348
5361
|
});
|
|
5349
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5350
|
-
ok:
|
|
5362
|
+
var DTODesignSystemMembersUpdateResponse = z187.object({
|
|
5363
|
+
ok: z187.literal(true)
|
|
5351
5364
|
});
|
|
5352
5365
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5353
5366
|
|
|
@@ -5358,14 +5371,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5358
5371
|
docExporterId: true
|
|
5359
5372
|
}).extend({
|
|
5360
5373
|
meta: ObjectMeta,
|
|
5361
|
-
docExporterId:
|
|
5362
|
-
sources:
|
|
5363
|
-
isPublic:
|
|
5374
|
+
docExporterId: z188.string(),
|
|
5375
|
+
sources: z188.array(z188.any()),
|
|
5376
|
+
isPublic: z188.literal(true),
|
|
5364
5377
|
/**
|
|
5365
5378
|
* Whether or not user who is requesting the design system
|
|
5366
5379
|
* has access to the design system's contents.
|
|
5367
5380
|
*/
|
|
5368
|
-
isAvailableToUser:
|
|
5381
|
+
isAvailableToUser: z188.boolean(),
|
|
5369
5382
|
/**
|
|
5370
5383
|
* @deprecated
|
|
5371
5384
|
*/
|
|
@@ -5376,17 +5389,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5376
5389
|
*/
|
|
5377
5390
|
effectiveRole: DTODesignSystemRole.optional()
|
|
5378
5391
|
});
|
|
5379
|
-
var DTODesignSystemResponse =
|
|
5392
|
+
var DTODesignSystemResponse = z188.object({
|
|
5380
5393
|
designSystem: DTODesignSystem
|
|
5381
5394
|
});
|
|
5382
|
-
var DTODesignSystemsListResponse =
|
|
5395
|
+
var DTODesignSystemsListResponse = z188.object({
|
|
5383
5396
|
designSystems: DTODesignSystem.array()
|
|
5384
5397
|
});
|
|
5385
|
-
var DTODesignSystemCreateInput =
|
|
5386
|
-
workspaceId:
|
|
5398
|
+
var DTODesignSystemCreateInput = z188.object({
|
|
5399
|
+
workspaceId: z188.string(),
|
|
5387
5400
|
meta: ObjectMeta.optional(),
|
|
5388
|
-
name:
|
|
5389
|
-
description:
|
|
5401
|
+
name: z188.string().min(2).max(64).optional(),
|
|
5402
|
+
description: z188.string().max(1024).optional(),
|
|
5390
5403
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5391
5404
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
5392
5405
|
usersToInvite: true,
|
|
@@ -5396,25 +5409,25 @@ var DTODesignSystemCreateInput = z186.object({
|
|
|
5396
5409
|
});
|
|
5397
5410
|
|
|
5398
5411
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5399
|
-
import { z as
|
|
5400
|
-
var DTODiffCountBase =
|
|
5401
|
-
created:
|
|
5402
|
-
updated:
|
|
5403
|
-
deleted:
|
|
5412
|
+
import { z as z189 } from "zod";
|
|
5413
|
+
var DTODiffCountBase = z189.object({
|
|
5414
|
+
created: z189.number(),
|
|
5415
|
+
updated: z189.number(),
|
|
5416
|
+
deleted: z189.number()
|
|
5404
5417
|
});
|
|
5405
|
-
var DTODesignElementsDataDiffResponse =
|
|
5418
|
+
var DTODesignElementsDataDiffResponse = z189.object({
|
|
5406
5419
|
tokens: DTODiffCountBase,
|
|
5407
5420
|
assets: DTODiffCountBase
|
|
5408
5421
|
});
|
|
5409
5422
|
|
|
5410
5423
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5411
|
-
import { z as
|
|
5412
|
-
var DTOExporterProperty =
|
|
5413
|
-
var DTOExporterPropertyListResponse =
|
|
5424
|
+
import { z as z190 } from "zod";
|
|
5425
|
+
var DTOExporterProperty = z190.any({});
|
|
5426
|
+
var DTOExporterPropertyListResponse = z190.object({ items: z190.array(DTOExporterProperty) });
|
|
5414
5427
|
|
|
5415
5428
|
// src/api/dto/design-systems/figma-variables.ts
|
|
5416
|
-
import { z as
|
|
5417
|
-
var DimensionsVariableScopeSchema =
|
|
5429
|
+
import { z as z191 } from "zod";
|
|
5430
|
+
var DimensionsVariableScopeSchema = z191.enum([
|
|
5418
5431
|
"CORNER_RADIUS",
|
|
5419
5432
|
"WIDTH_HEIGHT",
|
|
5420
5433
|
"GAP",
|
|
@@ -5428,130 +5441,130 @@ var DimensionsVariableScopeSchema = z189.enum([
|
|
|
5428
5441
|
"PARAGRAPH_INDENT",
|
|
5429
5442
|
"FONT_WEIGHT"
|
|
5430
5443
|
]);
|
|
5431
|
-
var StringVariableScopeSchema =
|
|
5444
|
+
var StringVariableScopeSchema = z191.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
5432
5445
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
5433
5446
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
5434
|
-
var VariableScope =
|
|
5435
|
-
var ReferencedVariableOrigin =
|
|
5436
|
-
name:
|
|
5437
|
-
remote:
|
|
5447
|
+
var VariableScope = z191.string();
|
|
5448
|
+
var ReferencedVariableOrigin = z191.object({
|
|
5449
|
+
name: z191.string(),
|
|
5450
|
+
remote: z191.boolean()
|
|
5438
5451
|
});
|
|
5439
|
-
var RGB =
|
|
5440
|
-
r:
|
|
5441
|
-
g:
|
|
5442
|
-
b:
|
|
5452
|
+
var RGB = z191.object({
|
|
5453
|
+
r: z191.number(),
|
|
5454
|
+
g: z191.number(),
|
|
5455
|
+
b: z191.number()
|
|
5443
5456
|
});
|
|
5444
5457
|
var RGBA = RGB.extend({
|
|
5445
|
-
a:
|
|
5446
|
-
});
|
|
5447
|
-
var VariableAlias =
|
|
5448
|
-
type:
|
|
5449
|
-
id:
|
|
5450
|
-
resolvedValue:
|
|
5451
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
5452
|
-
});
|
|
5453
|
-
var VariableValue =
|
|
5454
|
-
var ResolvedVariableType =
|
|
5455
|
-
var Variable =
|
|
5456
|
-
id:
|
|
5457
|
-
name:
|
|
5458
|
-
key:
|
|
5459
|
-
variableCollectionId:
|
|
5458
|
+
a: z191.number()
|
|
5459
|
+
});
|
|
5460
|
+
var VariableAlias = z191.object({
|
|
5461
|
+
type: z191.literal("VARIABLE_ALIAS"),
|
|
5462
|
+
id: z191.string(),
|
|
5463
|
+
resolvedValue: z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).optional(),
|
|
5464
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z191.null())
|
|
5465
|
+
});
|
|
5466
|
+
var VariableValue = z191.boolean().or(z191.number()).or(z191.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
5467
|
+
var ResolvedVariableType = z191.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
5468
|
+
var Variable = z191.object({
|
|
5469
|
+
id: z191.string(),
|
|
5470
|
+
name: z191.string(),
|
|
5471
|
+
key: z191.string(),
|
|
5472
|
+
variableCollectionId: z191.string(),
|
|
5460
5473
|
resolvedType: ResolvedVariableType,
|
|
5461
|
-
valuesByMode:
|
|
5462
|
-
remote:
|
|
5463
|
-
description:
|
|
5464
|
-
hiddenFromPublishing:
|
|
5465
|
-
scopes:
|
|
5466
|
-
codeSyntax:
|
|
5467
|
-
});
|
|
5468
|
-
var VariableMode =
|
|
5469
|
-
modeId:
|
|
5470
|
-
name:
|
|
5471
|
-
});
|
|
5472
|
-
var Collection2 =
|
|
5473
|
-
id:
|
|
5474
|
-
name:
|
|
5475
|
-
modes:
|
|
5476
|
-
defaultModeId:
|
|
5477
|
-
remote:
|
|
5478
|
-
hiddenFromPublishing:
|
|
5479
|
-
});
|
|
5480
|
-
var VariablesMapping =
|
|
5481
|
-
variableCollections:
|
|
5482
|
-
variableMode:
|
|
5483
|
-
supernovaBrand:
|
|
5484
|
-
supernovaTheme:
|
|
5485
|
-
});
|
|
5486
|
-
var FormattedCollections =
|
|
5487
|
-
variables:
|
|
5488
|
-
variableCollections:
|
|
5489
|
-
mappings:
|
|
5490
|
-
variablesOrder:
|
|
5474
|
+
valuesByMode: z191.record(VariableValue),
|
|
5475
|
+
remote: z191.boolean(),
|
|
5476
|
+
description: z191.string(),
|
|
5477
|
+
hiddenFromPublishing: z191.boolean(),
|
|
5478
|
+
scopes: z191.array(VariableScope),
|
|
5479
|
+
codeSyntax: z191.record(z191.any()).optional()
|
|
5480
|
+
});
|
|
5481
|
+
var VariableMode = z191.object({
|
|
5482
|
+
modeId: z191.string(),
|
|
5483
|
+
name: z191.string()
|
|
5484
|
+
});
|
|
5485
|
+
var Collection2 = z191.object({
|
|
5486
|
+
id: z191.string(),
|
|
5487
|
+
name: z191.string(),
|
|
5488
|
+
modes: z191.array(VariableMode),
|
|
5489
|
+
defaultModeId: z191.string(),
|
|
5490
|
+
remote: z191.boolean(),
|
|
5491
|
+
hiddenFromPublishing: z191.boolean()
|
|
5492
|
+
});
|
|
5493
|
+
var VariablesMapping = z191.object({
|
|
5494
|
+
variableCollections: z191.array(z191.string()).min(1),
|
|
5495
|
+
variableMode: z191.string().min(1),
|
|
5496
|
+
supernovaBrand: z191.string().min(1),
|
|
5497
|
+
supernovaTheme: z191.string().min(1).optional().or(z191.null())
|
|
5498
|
+
});
|
|
5499
|
+
var FormattedCollections = z191.object({
|
|
5500
|
+
variables: z191.record(z191.string(), Variable),
|
|
5501
|
+
variableCollections: z191.record(z191.string(), Collection2),
|
|
5502
|
+
mappings: z191.array(VariablesMapping).optional(),
|
|
5503
|
+
variablesOrder: z191.string().array().optional()
|
|
5491
5504
|
});
|
|
5492
5505
|
|
|
5493
5506
|
// src/api/dto/design-systems/import-job.ts
|
|
5494
|
-
import { z as
|
|
5495
|
-
var DTOImportJob =
|
|
5496
|
-
id:
|
|
5497
|
-
designSystemId:
|
|
5498
|
-
designSystemVersionId:
|
|
5499
|
-
operation:
|
|
5500
|
-
createdAt:
|
|
5501
|
-
stateChangedAt:
|
|
5507
|
+
import { z as z192 } from "zod";
|
|
5508
|
+
var DTOImportJob = z192.object({
|
|
5509
|
+
id: z192.string(),
|
|
5510
|
+
designSystemId: z192.string(),
|
|
5511
|
+
designSystemVersionId: z192.string(),
|
|
5512
|
+
operation: z192.literal("Import"),
|
|
5513
|
+
createdAt: z192.coerce.date(),
|
|
5514
|
+
stateChangedAt: z192.coerce.date(),
|
|
5502
5515
|
state: ImportJobState,
|
|
5503
|
-
sourceIds:
|
|
5516
|
+
sourceIds: z192.string().array()
|
|
5504
5517
|
});
|
|
5505
|
-
var DTOImportJobResponse =
|
|
5518
|
+
var DTOImportJobResponse = z192.object({
|
|
5506
5519
|
job: DTOImportJob
|
|
5507
5520
|
});
|
|
5508
|
-
var DTOBffFigmaImportRequestBody =
|
|
5509
|
-
type:
|
|
5510
|
-
brandPersistentId:
|
|
5511
|
-
fileId:
|
|
5521
|
+
var DTOBffFigmaImportRequestBody = z192.object({
|
|
5522
|
+
type: z192.literal(DataSourceRemoteType.Enum.Figma),
|
|
5523
|
+
brandPersistentId: z192.string().optional(),
|
|
5524
|
+
fileId: z192.string(),
|
|
5512
5525
|
scope: DataSourceFigmaScope,
|
|
5513
5526
|
autoImportMode: DataSourceAutoImportMode
|
|
5514
5527
|
});
|
|
5515
|
-
var DTOBffUploadImportRequestBody =
|
|
5516
|
-
type:
|
|
5517
|
-
brandPersistentId:
|
|
5518
|
-
sourceName:
|
|
5519
|
-
remoteId:
|
|
5520
|
-
isTokenTypeSplitEnabled:
|
|
5521
|
-
payload:
|
|
5528
|
+
var DTOBffUploadImportRequestBody = z192.object({
|
|
5529
|
+
type: z192.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5530
|
+
brandPersistentId: z192.string().optional(),
|
|
5531
|
+
sourceName: z192.string().optional(),
|
|
5532
|
+
remoteId: z192.string(),
|
|
5533
|
+
isTokenTypeSplitEnabled: z192.boolean().optional(),
|
|
5534
|
+
payload: z192.any()
|
|
5522
5535
|
});
|
|
5523
|
-
var DTOBffImportRequestBody =
|
|
5536
|
+
var DTOBffImportRequestBody = z192.discriminatedUnion("type", [
|
|
5524
5537
|
DTOBffFigmaImportRequestBody,
|
|
5525
5538
|
DTOBffUploadImportRequestBody
|
|
5526
5539
|
]);
|
|
5527
5540
|
|
|
5528
5541
|
// src/api/dto/design-systems/stats.ts
|
|
5529
|
-
import { z as
|
|
5530
|
-
var DTODesignSystemVersionStats =
|
|
5531
|
-
tokens:
|
|
5532
|
-
designSystemComponents:
|
|
5533
|
-
assets:
|
|
5534
|
-
documentationPages:
|
|
5542
|
+
import { z as z193 } from "zod";
|
|
5543
|
+
var DTODesignSystemVersionStats = z193.object({
|
|
5544
|
+
tokens: z193.number(),
|
|
5545
|
+
designSystemComponents: z193.number(),
|
|
5546
|
+
assets: z193.number(),
|
|
5547
|
+
documentationPages: z193.number()
|
|
5535
5548
|
});
|
|
5536
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5537
|
-
brandId:
|
|
5549
|
+
var DTODesignSystemVersionStatsQuery = z193.object({
|
|
5550
|
+
brandId: z193.string().optional()
|
|
5538
5551
|
});
|
|
5539
5552
|
|
|
5540
5553
|
// src/api/dto/design-systems/version.ts
|
|
5541
|
-
import { z as
|
|
5554
|
+
import { z as z204 } from "zod";
|
|
5542
5555
|
|
|
5543
5556
|
// src/api/payloads/design-systems/brand.ts
|
|
5544
|
-
import { z as
|
|
5545
|
-
var DTOCreateBrandInput =
|
|
5546
|
-
persistentId:
|
|
5547
|
-
meta:
|
|
5548
|
-
name:
|
|
5549
|
-
description:
|
|
5557
|
+
import { z as z194 } from "zod";
|
|
5558
|
+
var DTOCreateBrandInput = z194.object({
|
|
5559
|
+
persistentId: z194.string().uuid(),
|
|
5560
|
+
meta: z194.object({
|
|
5561
|
+
name: z194.string(),
|
|
5562
|
+
description: z194.string()
|
|
5550
5563
|
})
|
|
5551
5564
|
});
|
|
5552
5565
|
|
|
5553
5566
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5554
|
-
import { z as
|
|
5567
|
+
import { z as z195 } from "zod";
|
|
5555
5568
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5556
5569
|
id: true,
|
|
5557
5570
|
workspaceId: true,
|
|
@@ -5563,40 +5576,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5563
5576
|
}).extend({
|
|
5564
5577
|
meta: ObjectMeta.partial().optional()
|
|
5565
5578
|
});
|
|
5566
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5579
|
+
var DTODesignSystemUpdateAccessModeInput = z195.object({
|
|
5567
5580
|
accessMode: DesignSystemAccessMode,
|
|
5568
|
-
retain:
|
|
5569
|
-
userIds:
|
|
5570
|
-
inviteIds:
|
|
5581
|
+
retain: z195.object({
|
|
5582
|
+
userIds: z195.string().array(),
|
|
5583
|
+
inviteIds: z195.string().array()
|
|
5571
5584
|
}).optional()
|
|
5572
5585
|
});
|
|
5573
5586
|
|
|
5574
5587
|
// src/api/payloads/design-systems/version.ts
|
|
5575
|
-
import { z as
|
|
5576
|
-
var ObjectMeta2 =
|
|
5577
|
-
name:
|
|
5578
|
-
description:
|
|
5588
|
+
import { z as z196 } from "zod";
|
|
5589
|
+
var ObjectMeta2 = z196.object({
|
|
5590
|
+
name: z196.string().max(150).optional(),
|
|
5591
|
+
description: z196.string().max(2e3).optional()
|
|
5579
5592
|
});
|
|
5580
5593
|
function validateDesignSystemVersion(version) {
|
|
5581
5594
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5582
5595
|
return urlCompliantRegex.test(version);
|
|
5583
5596
|
}
|
|
5584
|
-
var DTOCreateVersionInput =
|
|
5597
|
+
var DTOCreateVersionInput = z196.object({
|
|
5585
5598
|
meta: ObjectMeta2,
|
|
5586
|
-
version:
|
|
5599
|
+
version: z196.string().refine(validateDesignSystemVersion, {
|
|
5587
5600
|
message: "Invalid semantic versioning format"
|
|
5588
5601
|
}),
|
|
5589
|
-
changeLog:
|
|
5602
|
+
changeLog: z196.string().optional()
|
|
5590
5603
|
});
|
|
5591
|
-
var DTOUpdateVersionInput =
|
|
5604
|
+
var DTOUpdateVersionInput = z196.object({
|
|
5592
5605
|
meta: ObjectMeta2,
|
|
5593
|
-
version:
|
|
5606
|
+
version: z196.string(),
|
|
5594
5607
|
// required for PUT, but not editable
|
|
5595
|
-
changeLog:
|
|
5608
|
+
changeLog: z196.string()
|
|
5596
5609
|
});
|
|
5597
5610
|
|
|
5598
5611
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5599
|
-
import { z as
|
|
5612
|
+
import { z as z197 } from "zod";
|
|
5600
5613
|
|
|
5601
5614
|
// src/api/dto/documentation/block-definition.ts
|
|
5602
5615
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5608,60 +5621,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5608
5621
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5609
5622
|
|
|
5610
5623
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5611
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5612
|
-
definitions:
|
|
5624
|
+
var DTOGetBlockDefinitionsOutput = z197.object({
|
|
5625
|
+
definitions: z197.array(DTOPageBlockDefinition)
|
|
5613
5626
|
});
|
|
5614
5627
|
|
|
5615
5628
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5616
|
-
import { z as
|
|
5617
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5618
|
-
environment:
|
|
5629
|
+
import { z as z198 } from "zod";
|
|
5630
|
+
var DTODocumentationPublishTypeQueryParams = z198.object({
|
|
5631
|
+
environment: z198.enum(["Live", "Preview"])
|
|
5619
5632
|
});
|
|
5620
5633
|
|
|
5621
5634
|
// src/api/payloads/export/pipeline.ts
|
|
5622
|
-
import { z as
|
|
5623
|
-
var DTOPipelineCreateBody =
|
|
5624
|
-
name:
|
|
5625
|
-
exporterId:
|
|
5626
|
-
designSystemId:
|
|
5627
|
-
isEnabled:
|
|
5635
|
+
import { z as z199 } from "zod";
|
|
5636
|
+
var DTOPipelineCreateBody = z199.object({
|
|
5637
|
+
name: z199.string(),
|
|
5638
|
+
exporterId: z199.string(),
|
|
5639
|
+
designSystemId: z199.string(),
|
|
5640
|
+
isEnabled: z199.boolean(),
|
|
5628
5641
|
eventType: PipelineEventType,
|
|
5629
|
-
brandPersistentId:
|
|
5630
|
-
themePersistentId:
|
|
5631
|
-
themePersistentIds:
|
|
5642
|
+
brandPersistentId: z199.string().optional(),
|
|
5643
|
+
themePersistentId: z199.string().optional(),
|
|
5644
|
+
themePersistentIds: z199.string().array().optional(),
|
|
5632
5645
|
destination: PipelineDestinationType.optional(),
|
|
5633
5646
|
gitQuery: GitObjectsQuery,
|
|
5634
|
-
destinations:
|
|
5647
|
+
destinations: z199.object({
|
|
5635
5648
|
s3: ExporterDestinationS3.nullish(),
|
|
5636
5649
|
azure: ExporterDestinationAzure.nullish(),
|
|
5637
5650
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5638
5651
|
github: ExporterDestinationGithub.nullish(),
|
|
5639
5652
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5640
5653
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5641
|
-
webhookUrl:
|
|
5654
|
+
webhookUrl: z199.string().nullish()
|
|
5642
5655
|
})
|
|
5643
5656
|
});
|
|
5644
5657
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5645
|
-
id:
|
|
5658
|
+
id: z199.string()
|
|
5646
5659
|
});
|
|
5647
|
-
var DTOPipelineTriggerBody =
|
|
5648
|
-
designSystemVersionId:
|
|
5660
|
+
var DTOPipelineTriggerBody = z199.object({
|
|
5661
|
+
designSystemVersionId: z199.string()
|
|
5649
5662
|
});
|
|
5650
5663
|
|
|
5651
5664
|
// src/api/payloads/liveblocks/auth.ts
|
|
5652
|
-
import { z as
|
|
5653
|
-
var DTOLiveblocksAuthRequest =
|
|
5654
|
-
room:
|
|
5665
|
+
import { z as z200 } from "zod";
|
|
5666
|
+
var DTOLiveblocksAuthRequest = z200.object({
|
|
5667
|
+
room: z200.string().optional()
|
|
5655
5668
|
});
|
|
5656
5669
|
|
|
5657
5670
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5658
|
-
import { z as
|
|
5659
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5671
|
+
import { z as z201 } from "zod";
|
|
5672
|
+
var DTOUpdateUserNotificationSettingsPayload = z201.object({
|
|
5660
5673
|
notificationSettings: UserNotificationSettings
|
|
5661
5674
|
});
|
|
5662
|
-
var DTOUserNotificationSettingsResponse =
|
|
5663
|
-
userId:
|
|
5664
|
-
workspaceId:
|
|
5675
|
+
var DTOUserNotificationSettingsResponse = z201.object({
|
|
5676
|
+
userId: z201.string(),
|
|
5677
|
+
workspaceId: z201.string(),
|
|
5665
5678
|
notificationSettings: UserNotificationSettings
|
|
5666
5679
|
});
|
|
5667
5680
|
|
|
@@ -5669,7 +5682,7 @@ var DTOUserNotificationSettingsResponse = z199.object({
|
|
|
5669
5682
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5670
5683
|
|
|
5671
5684
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5672
|
-
import { z as
|
|
5685
|
+
import { z as z202 } from "zod";
|
|
5673
5686
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5674
5687
|
function validateSsoPayload(ssoPayload) {
|
|
5675
5688
|
const keys = [];
|
|
@@ -5692,21 +5705,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5692
5705
|
keys
|
|
5693
5706
|
};
|
|
5694
5707
|
}
|
|
5695
|
-
var NpmRegistryInput =
|
|
5696
|
-
enabledScopes:
|
|
5697
|
-
customRegistryUrl:
|
|
5698
|
-
bypassProxy:
|
|
5699
|
-
npmProxyRegistryConfigId:
|
|
5700
|
-
npmProxyVersion:
|
|
5701
|
-
registryType:
|
|
5702
|
-
authType:
|
|
5703
|
-
authHeaderName:
|
|
5704
|
-
authHeaderValue:
|
|
5705
|
-
accessToken:
|
|
5706
|
-
username:
|
|
5707
|
-
password:
|
|
5708
|
-
});
|
|
5709
|
-
var WorkspaceConfigurationPayload =
|
|
5708
|
+
var NpmRegistryInput = z202.object({
|
|
5709
|
+
enabledScopes: z202.array(z202.string()),
|
|
5710
|
+
customRegistryUrl: z202.string().optional(),
|
|
5711
|
+
bypassProxy: z202.boolean().optional(),
|
|
5712
|
+
npmProxyRegistryConfigId: z202.string().optional(),
|
|
5713
|
+
npmProxyVersion: z202.number().optional(),
|
|
5714
|
+
registryType: z202.string(),
|
|
5715
|
+
authType: z202.string(),
|
|
5716
|
+
authHeaderName: z202.string(),
|
|
5717
|
+
authHeaderValue: z202.string(),
|
|
5718
|
+
accessToken: z202.string(),
|
|
5719
|
+
username: z202.string(),
|
|
5720
|
+
password: z202.string()
|
|
5721
|
+
});
|
|
5722
|
+
var WorkspaceConfigurationPayload = z202.object({
|
|
5710
5723
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5711
5724
|
sso: SsoProvider.partial().optional(),
|
|
5712
5725
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5714,218 +5727,218 @@ var WorkspaceConfigurationPayload = z200.object({
|
|
|
5714
5727
|
});
|
|
5715
5728
|
|
|
5716
5729
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5717
|
-
import { z as
|
|
5718
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5730
|
+
import { z as z203 } from "zod";
|
|
5731
|
+
var DTOWorkspaceIntegrationOauthInput = z203.object({
|
|
5719
5732
|
type: IntegrationType
|
|
5720
5733
|
});
|
|
5721
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5722
|
-
userId:
|
|
5734
|
+
var DTOWorkspaceIntegrationPATInput = z203.object({
|
|
5735
|
+
userId: z203.string(),
|
|
5723
5736
|
type: IntegrationType,
|
|
5724
5737
|
token: IntegrationToken
|
|
5725
5738
|
});
|
|
5726
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5727
|
-
organization:
|
|
5739
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z203.object({
|
|
5740
|
+
organization: z203.string().optional(),
|
|
5728
5741
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5729
|
-
project:
|
|
5742
|
+
project: z203.string().optional(),
|
|
5730
5743
|
// Only for Bitbucket and Azure
|
|
5731
|
-
repository:
|
|
5744
|
+
repository: z203.string().optional(),
|
|
5732
5745
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5733
|
-
branch:
|
|
5746
|
+
branch: z203.string().optional(),
|
|
5734
5747
|
// For all providers, useful for PR creations.
|
|
5735
|
-
user:
|
|
5748
|
+
user: z203.string().optional()
|
|
5736
5749
|
// Only for Gitlab User Repositories
|
|
5737
5750
|
});
|
|
5738
5751
|
|
|
5739
5752
|
// src/api/dto/design-systems/version.ts
|
|
5740
|
-
var DTODesignSystemVersion =
|
|
5741
|
-
id:
|
|
5742
|
-
createdAt:
|
|
5753
|
+
var DTODesignSystemVersion = z204.object({
|
|
5754
|
+
id: z204.string(),
|
|
5755
|
+
createdAt: z204.coerce.date(),
|
|
5743
5756
|
meta: ObjectMeta,
|
|
5744
|
-
version:
|
|
5745
|
-
isReadonly:
|
|
5746
|
-
changeLog:
|
|
5747
|
-
designSystemId:
|
|
5757
|
+
version: z204.string(),
|
|
5758
|
+
isReadonly: z204.boolean(),
|
|
5759
|
+
changeLog: z204.string(),
|
|
5760
|
+
designSystemId: z204.string()
|
|
5748
5761
|
});
|
|
5749
|
-
var DTODesignSystemVersionsListResponse =
|
|
5750
|
-
designSystemVersions:
|
|
5762
|
+
var DTODesignSystemVersionsListResponse = z204.object({
|
|
5763
|
+
designSystemVersions: z204.array(DTODesignSystemVersion)
|
|
5751
5764
|
});
|
|
5752
|
-
var DTODesignSystemVersionGetResponse =
|
|
5765
|
+
var DTODesignSystemVersionGetResponse = z204.object({
|
|
5753
5766
|
designSystemVersion: DTODesignSystemVersion
|
|
5754
5767
|
});
|
|
5755
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5768
|
+
var DTODesignSystemVersionCreationResponse = z204.object({
|
|
5756
5769
|
meta: ObjectMeta,
|
|
5757
|
-
version:
|
|
5758
|
-
changeLog:
|
|
5759
|
-
isReadOnly:
|
|
5760
|
-
designSystemId:
|
|
5761
|
-
jobId:
|
|
5762
|
-
});
|
|
5763
|
-
var VersionSQSPayload =
|
|
5764
|
-
jobId:
|
|
5765
|
-
designSystemId:
|
|
5770
|
+
version: z204.string(),
|
|
5771
|
+
changeLog: z204.string(),
|
|
5772
|
+
isReadOnly: z204.boolean(),
|
|
5773
|
+
designSystemId: z204.string(),
|
|
5774
|
+
jobId: z204.string()
|
|
5775
|
+
});
|
|
5776
|
+
var VersionSQSPayload = z204.object({
|
|
5777
|
+
jobId: z204.string(),
|
|
5778
|
+
designSystemId: z204.string(),
|
|
5766
5779
|
input: DTOCreateVersionInput
|
|
5767
5780
|
});
|
|
5768
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5769
|
-
jobs:
|
|
5781
|
+
var DTODesignSystemVersionJobsResponse = z204.object({
|
|
5782
|
+
jobs: z204.array(VersionCreationJob)
|
|
5770
5783
|
});
|
|
5771
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5784
|
+
var DTODesignSystemVersionJobStatusResponse = z204.object({
|
|
5772
5785
|
job: VersionCreationJob
|
|
5773
5786
|
});
|
|
5774
5787
|
|
|
5775
5788
|
// src/api/dto/design-systems/view.ts
|
|
5776
|
-
import { z as
|
|
5777
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5778
|
-
id:
|
|
5779
|
-
persistentId:
|
|
5780
|
-
width:
|
|
5789
|
+
import { z as z205 } from "zod";
|
|
5790
|
+
var DTOElementViewColumnSharedAttributes = z205.object({
|
|
5791
|
+
id: z205.string(),
|
|
5792
|
+
persistentId: z205.string(),
|
|
5793
|
+
width: z205.number()
|
|
5781
5794
|
});
|
|
5782
5795
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5783
|
-
type:
|
|
5796
|
+
type: z205.literal("BaseProperty"),
|
|
5784
5797
|
basePropertyType: ElementViewBaseColumnType
|
|
5785
5798
|
});
|
|
5786
5799
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5787
|
-
type:
|
|
5788
|
-
propertyDefinitionId:
|
|
5800
|
+
type: z205.literal("PropertyDefinition"),
|
|
5801
|
+
propertyDefinitionId: z205.string()
|
|
5789
5802
|
});
|
|
5790
5803
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5791
|
-
type:
|
|
5792
|
-
themeId:
|
|
5804
|
+
type: z205.literal("Theme"),
|
|
5805
|
+
themeId: z205.string()
|
|
5793
5806
|
});
|
|
5794
|
-
var DTOElementViewColumn =
|
|
5807
|
+
var DTOElementViewColumn = z205.discriminatedUnion("type", [
|
|
5795
5808
|
DTOElementViewBasePropertyColumn,
|
|
5796
5809
|
DTOElementViewPropertyDefinitionColumn,
|
|
5797
5810
|
DTOElementViewThemeColumn
|
|
5798
5811
|
]);
|
|
5799
|
-
var DTOElementView =
|
|
5812
|
+
var DTOElementView = z205.object({
|
|
5800
5813
|
meta: ObjectMeta,
|
|
5801
|
-
persistentId:
|
|
5814
|
+
persistentId: z205.string(),
|
|
5802
5815
|
targetElementType: ElementPropertyTargetType,
|
|
5803
|
-
id:
|
|
5804
|
-
isDefault:
|
|
5805
|
-
columns:
|
|
5816
|
+
id: z205.string(),
|
|
5817
|
+
isDefault: z205.boolean(),
|
|
5818
|
+
columns: z205.array(DTOElementViewColumn)
|
|
5806
5819
|
});
|
|
5807
|
-
var DTOElementViewsListResponse =
|
|
5808
|
-
elementDataViews:
|
|
5820
|
+
var DTOElementViewsListResponse = z205.object({
|
|
5821
|
+
elementDataViews: z205.array(DTOElementView)
|
|
5809
5822
|
});
|
|
5810
5823
|
|
|
5811
5824
|
// src/api/dto/workspaces/git.ts
|
|
5812
|
-
import { z as
|
|
5813
|
-
var DTOGitOrganization =
|
|
5814
|
-
id:
|
|
5815
|
-
name:
|
|
5816
|
-
url:
|
|
5817
|
-
slug:
|
|
5818
|
-
});
|
|
5819
|
-
var DTOGitProject =
|
|
5820
|
-
id:
|
|
5821
|
-
name:
|
|
5822
|
-
url:
|
|
5823
|
-
slug:
|
|
5824
|
-
});
|
|
5825
|
-
var DTOGitRepository =
|
|
5826
|
-
id:
|
|
5827
|
-
name:
|
|
5828
|
-
url:
|
|
5829
|
-
slug:
|
|
5830
|
-
defaultBranch:
|
|
5831
|
-
});
|
|
5832
|
-
var DTOGitBranch =
|
|
5833
|
-
name:
|
|
5834
|
-
lastCommitId:
|
|
5825
|
+
import { z as z206 } from "zod";
|
|
5826
|
+
var DTOGitOrganization = z206.object({
|
|
5827
|
+
id: z206.string(),
|
|
5828
|
+
name: z206.string(),
|
|
5829
|
+
url: z206.string(),
|
|
5830
|
+
slug: z206.string()
|
|
5831
|
+
});
|
|
5832
|
+
var DTOGitProject = z206.object({
|
|
5833
|
+
id: z206.string(),
|
|
5834
|
+
name: z206.string(),
|
|
5835
|
+
url: z206.string(),
|
|
5836
|
+
slug: z206.string()
|
|
5837
|
+
});
|
|
5838
|
+
var DTOGitRepository = z206.object({
|
|
5839
|
+
id: z206.string(),
|
|
5840
|
+
name: z206.string(),
|
|
5841
|
+
url: z206.string(),
|
|
5842
|
+
slug: z206.string(),
|
|
5843
|
+
defaultBranch: z206.string().optional()
|
|
5844
|
+
});
|
|
5845
|
+
var DTOGitBranch = z206.object({
|
|
5846
|
+
name: z206.string(),
|
|
5847
|
+
lastCommitId: z206.string()
|
|
5835
5848
|
});
|
|
5836
5849
|
|
|
5837
5850
|
// src/api/dto/workspaces/integrations.ts
|
|
5838
|
-
import { z as
|
|
5851
|
+
import { z as z207 } from "zod";
|
|
5839
5852
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5840
5853
|
accessToken: true,
|
|
5841
5854
|
refreshToken: true
|
|
5842
5855
|
});
|
|
5843
|
-
var DTOIntegration =
|
|
5844
|
-
id:
|
|
5845
|
-
workspaceId:
|
|
5856
|
+
var DTOIntegration = z207.object({
|
|
5857
|
+
id: z207.string(),
|
|
5858
|
+
workspaceId: z207.string(),
|
|
5846
5859
|
type: ExtendedIntegrationType,
|
|
5847
|
-
createdAt:
|
|
5848
|
-
integrationCredentials:
|
|
5849
|
-
integrationDesignSystems:
|
|
5860
|
+
createdAt: z207.coerce.date(),
|
|
5861
|
+
integrationCredentials: z207.array(DTOIntegrationCredentials).optional(),
|
|
5862
|
+
integrationDesignSystems: z207.array(IntegrationDesignSystem).optional()
|
|
5850
5863
|
});
|
|
5851
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5852
|
-
url:
|
|
5864
|
+
var DTOIntegrationOAuthGetResponse = z207.object({
|
|
5865
|
+
url: z207.string()
|
|
5853
5866
|
});
|
|
5854
|
-
var DTOIntegrationPostResponse =
|
|
5867
|
+
var DTOIntegrationPostResponse = z207.object({
|
|
5855
5868
|
integration: DTOIntegration
|
|
5856
5869
|
});
|
|
5857
|
-
var DTOIntegrationsGetListResponse =
|
|
5870
|
+
var DTOIntegrationsGetListResponse = z207.object({
|
|
5858
5871
|
integrations: DTOIntegration.array()
|
|
5859
5872
|
});
|
|
5860
5873
|
|
|
5861
5874
|
// src/api/dto/workspaces/invitations.ts
|
|
5862
|
-
import { z as
|
|
5863
|
-
var DTOWorkspaceInvitationInput =
|
|
5864
|
-
email:
|
|
5875
|
+
import { z as z208 } from "zod";
|
|
5876
|
+
var DTOWorkspaceInvitationInput = z208.object({
|
|
5877
|
+
email: z208.string().email(),
|
|
5865
5878
|
role: WorkspaceRoleSchema
|
|
5866
5879
|
});
|
|
5867
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5880
|
+
var DTOWorkspaceInvitationsListInput = z208.object({
|
|
5868
5881
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5869
|
-
designSystemId:
|
|
5882
|
+
designSystemId: z208.string().optional()
|
|
5870
5883
|
});
|
|
5871
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5884
|
+
var DTOWorkspaceInvitationsResponse = z208.object({
|
|
5872
5885
|
invitations: WorkspaceInvitation.array()
|
|
5873
5886
|
});
|
|
5874
|
-
var DTOWorkspaceInviteUpdate =
|
|
5887
|
+
var DTOWorkspaceInviteUpdate = z208.object({
|
|
5875
5888
|
role: WorkspaceRoleSchema
|
|
5876
5889
|
});
|
|
5877
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
5890
|
+
var DTOWorkspaceInvitationUpdateResponse = z208.object({
|
|
5878
5891
|
invitation: WorkspaceInvitation
|
|
5879
5892
|
});
|
|
5880
5893
|
|
|
5881
5894
|
// src/api/dto/workspaces/membership.ts
|
|
5882
|
-
import { z as
|
|
5895
|
+
import { z as z211 } from "zod";
|
|
5883
5896
|
|
|
5884
5897
|
// src/api/dto/workspaces/workspace.ts
|
|
5885
|
-
import { z as
|
|
5898
|
+
import { z as z210 } from "zod";
|
|
5886
5899
|
|
|
5887
5900
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5888
|
-
import { z as
|
|
5901
|
+
import { z as z209 } from "zod";
|
|
5889
5902
|
var DTONpmRegistryConfigConstants = {
|
|
5890
5903
|
passwordPlaceholder: "redacted"
|
|
5891
5904
|
};
|
|
5892
|
-
var DTONpmRegistryConfig =
|
|
5905
|
+
var DTONpmRegistryConfig = z209.object({
|
|
5893
5906
|
// Registry basic configuration
|
|
5894
5907
|
registryType: NpmRegistryType,
|
|
5895
|
-
registryUrl:
|
|
5896
|
-
customRegistryUrl:
|
|
5908
|
+
registryUrl: z209.string(),
|
|
5909
|
+
customRegistryUrl: z209.string().optional(),
|
|
5897
5910
|
// URL of Supernova NPM packages proxy
|
|
5898
|
-
proxyUrl:
|
|
5911
|
+
proxyUrl: z209.string(),
|
|
5899
5912
|
// Auth configuration
|
|
5900
5913
|
authType: NpmRegistryAuthType,
|
|
5901
|
-
accessToken:
|
|
5902
|
-
username:
|
|
5903
|
-
password:
|
|
5914
|
+
accessToken: z209.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5915
|
+
username: z209.string().optional(),
|
|
5916
|
+
password: z209.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5904
5917
|
// NPM package scopes for whih the proxy should be enabled
|
|
5905
|
-
enabledScopes:
|
|
5918
|
+
enabledScopes: z209.array(z209.string()),
|
|
5906
5919
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5907
5920
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5908
|
-
bypassProxy:
|
|
5921
|
+
bypassProxy: z209.boolean()
|
|
5909
5922
|
});
|
|
5910
5923
|
|
|
5911
5924
|
// src/api/dto/workspaces/workspace.ts
|
|
5912
5925
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
5913
|
-
var DTOWorkspace =
|
|
5914
|
-
id:
|
|
5926
|
+
var DTOWorkspace = z210.object({
|
|
5927
|
+
id: z210.string(),
|
|
5915
5928
|
profile: DTOWorkspaceProfile,
|
|
5916
5929
|
subscription: Subscription,
|
|
5917
5930
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5918
5931
|
});
|
|
5919
|
-
var DTOWorkspaceCreateInput =
|
|
5920
|
-
name:
|
|
5932
|
+
var DTOWorkspaceCreateInput = z210.object({
|
|
5933
|
+
name: z210.string()
|
|
5921
5934
|
});
|
|
5922
|
-
var DTOWorkspaceResponse =
|
|
5935
|
+
var DTOWorkspaceResponse = z210.object({
|
|
5923
5936
|
workspace: DTOWorkspace
|
|
5924
5937
|
});
|
|
5925
5938
|
|
|
5926
5939
|
// src/api/dto/workspaces/membership.ts
|
|
5927
|
-
var DTOWorkspaceRole =
|
|
5928
|
-
var DTOUserWorkspaceMembership =
|
|
5940
|
+
var DTOWorkspaceRole = z211.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5941
|
+
var DTOUserWorkspaceMembership = z211.object({
|
|
5929
5942
|
// Workspace the user is a member of
|
|
5930
5943
|
workspace: DTOWorkspace,
|
|
5931
5944
|
// Assigned role the user has in the workspace
|
|
@@ -5935,26 +5948,26 @@ var DTOUserWorkspaceMembership = z209.object({
|
|
|
5935
5948
|
// when a workspace's subscription is downgraded to free tier
|
|
5936
5949
|
effectiveRole: DTOWorkspaceRole
|
|
5937
5950
|
});
|
|
5938
|
-
var DTOWorkspaceMember =
|
|
5951
|
+
var DTOWorkspaceMember = z211.object({
|
|
5939
5952
|
user: User,
|
|
5940
5953
|
role: WorkspaceRoleSchema,
|
|
5941
5954
|
effectiveRole: WorkspaceRoleSchema
|
|
5942
5955
|
});
|
|
5943
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5944
|
-
membership:
|
|
5956
|
+
var DTOUserWorkspaceMembershipsResponse = z211.object({
|
|
5957
|
+
membership: z211.array(DTOUserWorkspaceMembership)
|
|
5945
5958
|
});
|
|
5946
|
-
var DTOWorkspaceMembersListResponse =
|
|
5947
|
-
members:
|
|
5959
|
+
var DTOWorkspaceMembersListResponse = z211.object({
|
|
5960
|
+
members: z211.array(DTOWorkspaceMember)
|
|
5948
5961
|
});
|
|
5949
5962
|
|
|
5950
5963
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5951
|
-
var DTOAppBootstrapDataQuery =
|
|
5952
|
-
preferredWorkspaceId:
|
|
5953
|
-
preferredDesignSystemId:
|
|
5954
|
-
preferredVersionId:
|
|
5955
|
-
preferredBrandId:
|
|
5964
|
+
var DTOAppBootstrapDataQuery = z212.object({
|
|
5965
|
+
preferredWorkspaceId: z212.string().optional(),
|
|
5966
|
+
preferredDesignSystemId: z212.string().optional(),
|
|
5967
|
+
preferredVersionId: z212.string().optional(),
|
|
5968
|
+
preferredBrandId: z212.string().optional()
|
|
5956
5969
|
});
|
|
5957
|
-
var DTOAppBootstrapDataResponse =
|
|
5970
|
+
var DTOAppBootstrapDataResponse = z212.object({
|
|
5958
5971
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5959
5972
|
designSystem: DTODesignSystem.optional(),
|
|
5960
5973
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5962,88 +5975,88 @@ var DTOAppBootstrapDataResponse = z210.object({
|
|
|
5962
5975
|
});
|
|
5963
5976
|
|
|
5964
5977
|
// src/api/dto/collections/token-collection.ts
|
|
5965
|
-
import { z as
|
|
5966
|
-
var DTOTokenCollection =
|
|
5967
|
-
id:
|
|
5968
|
-
persistentId:
|
|
5969
|
-
designSystemVersionId:
|
|
5978
|
+
import { z as z213 } from "zod";
|
|
5979
|
+
var DTOTokenCollection = z213.object({
|
|
5980
|
+
id: z213.string(),
|
|
5981
|
+
persistentId: z213.string(),
|
|
5982
|
+
designSystemVersionId: z213.string(),
|
|
5970
5983
|
meta: ObjectMeta,
|
|
5971
5984
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
5972
|
-
elementPropertyOptionId:
|
|
5973
|
-
createdAt:
|
|
5974
|
-
updatedAt:
|
|
5985
|
+
elementPropertyOptionId: z213.string(),
|
|
5986
|
+
createdAt: z213.coerce.date(),
|
|
5987
|
+
updatedAt: z213.coerce.date(),
|
|
5975
5988
|
origin: CollectionOrigin.optional()
|
|
5976
5989
|
});
|
|
5977
|
-
var DTOTokenCollectionsListReponse =
|
|
5990
|
+
var DTOTokenCollectionsListReponse = z213.object({
|
|
5978
5991
|
collections: DTOTokenCollection.array()
|
|
5979
5992
|
});
|
|
5980
5993
|
|
|
5981
5994
|
// src/api/dto/design-tokens/design-token.ts
|
|
5982
|
-
import { z as
|
|
5995
|
+
import { z as z214 } from "zod";
|
|
5983
5996
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
5984
|
-
|
|
5985
|
-
id:
|
|
5986
|
-
persistentId:
|
|
5987
|
-
designSystemVersionId:
|
|
5997
|
+
z214.object({
|
|
5998
|
+
id: z214.string(),
|
|
5999
|
+
persistentId: z214.string(),
|
|
6000
|
+
designSystemVersionId: z214.string(),
|
|
5988
6001
|
meta: ObjectMeta,
|
|
5989
6002
|
originStyle: DesignTokenOrigin.optional(),
|
|
5990
|
-
brandId:
|
|
5991
|
-
collectionId:
|
|
5992
|
-
updatedAt:
|
|
6003
|
+
brandId: z214.string(),
|
|
6004
|
+
collectionId: z214.string().optional(),
|
|
6005
|
+
updatedAt: z214.coerce.date()
|
|
5993
6006
|
})
|
|
5994
6007
|
);
|
|
5995
|
-
var DTODesignTokenListResponse =
|
|
6008
|
+
var DTODesignTokenListResponse = z214.object({
|
|
5996
6009
|
tokens: DTODesignToken.array()
|
|
5997
6010
|
});
|
|
5998
|
-
var DTODesignTokenResponse =
|
|
6011
|
+
var DTODesignTokenResponse = z214.object({
|
|
5999
6012
|
token: DTODesignToken
|
|
6000
6013
|
});
|
|
6001
|
-
var DTODesignTokenGroup =
|
|
6002
|
-
id:
|
|
6014
|
+
var DTODesignTokenGroup = z214.object({
|
|
6015
|
+
id: z214.string(),
|
|
6003
6016
|
tokenType: DesignTokenType,
|
|
6004
|
-
persistentId:
|
|
6005
|
-
isRoot:
|
|
6006
|
-
brandId:
|
|
6017
|
+
persistentId: z214.string(),
|
|
6018
|
+
isRoot: z214.boolean(),
|
|
6019
|
+
brandId: z214.string(),
|
|
6007
6020
|
meta: ObjectMeta,
|
|
6008
|
-
childrenIds:
|
|
6021
|
+
childrenIds: z214.string().array()
|
|
6009
6022
|
});
|
|
6010
|
-
var DTODesignTokenGroupListResponse =
|
|
6023
|
+
var DTODesignTokenGroupListResponse = z214.object({
|
|
6011
6024
|
groups: DTODesignTokenGroup.array()
|
|
6012
6025
|
});
|
|
6013
|
-
var DTODesignTokenGroupResponse =
|
|
6026
|
+
var DTODesignTokenGroupResponse = z214.object({
|
|
6014
6027
|
group: DTODesignTokenGroup
|
|
6015
6028
|
});
|
|
6016
6029
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6017
|
-
|
|
6018
|
-
persistentId:
|
|
6030
|
+
z214.object({
|
|
6031
|
+
persistentId: z214.string(),
|
|
6019
6032
|
meta: ObjectMeta,
|
|
6020
|
-
brandId:
|
|
6021
|
-
groupPersistentId:
|
|
6033
|
+
brandId: z214.string(),
|
|
6034
|
+
groupPersistentId: z214.string().optional()
|
|
6022
6035
|
})
|
|
6023
6036
|
);
|
|
6024
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6025
|
-
persistentId:
|
|
6037
|
+
var DTODesignTokenGroupCreatePayload = z214.object({
|
|
6038
|
+
persistentId: z214.string(),
|
|
6026
6039
|
meta: ObjectMeta,
|
|
6027
|
-
brandId:
|
|
6028
|
-
parentId:
|
|
6040
|
+
brandId: z214.string(),
|
|
6041
|
+
parentId: z214.string().optional(),
|
|
6029
6042
|
tokenType: DesignTokenType,
|
|
6030
|
-
childrenIds:
|
|
6043
|
+
childrenIds: z214.string().array()
|
|
6031
6044
|
});
|
|
6032
6045
|
|
|
6033
6046
|
// src/api/dto/documentation/anchor.ts
|
|
6034
|
-
import { z as
|
|
6047
|
+
import { z as z215 } from "zod";
|
|
6035
6048
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6036
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6037
|
-
anchors:
|
|
6049
|
+
var DTOGetDocumentationPageAnchorsResponse = z215.object({
|
|
6050
|
+
anchors: z215.array(DTODocumentationPageAnchor)
|
|
6038
6051
|
});
|
|
6039
6052
|
|
|
6040
6053
|
// src/api/dto/documentation/approvals.ts
|
|
6041
|
-
import { z as
|
|
6054
|
+
import { z as z216 } from "zod";
|
|
6042
6055
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
6043
|
-
var DTODocumentationGroupApprovalState =
|
|
6044
|
-
persistentId:
|
|
6045
|
-
groupId:
|
|
6046
|
-
designSystemVersionId:
|
|
6056
|
+
var DTODocumentationGroupApprovalState = z216.object({
|
|
6057
|
+
persistentId: z216.string(),
|
|
6058
|
+
groupId: z216.string(),
|
|
6059
|
+
designSystemVersionId: z216.string(),
|
|
6047
6060
|
approvalState: DocumentationPageApprovalState
|
|
6048
6061
|
});
|
|
6049
6062
|
|
|
@@ -6051,68 +6064,68 @@ var DTODocumentationGroupApprovalState = z214.object({
|
|
|
6051
6064
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6052
6065
|
|
|
6053
6066
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6054
|
-
import { z as
|
|
6067
|
+
import { z as z221 } from "zod";
|
|
6055
6068
|
|
|
6056
6069
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6057
|
-
import { z as
|
|
6070
|
+
import { z as z220 } from "zod";
|
|
6058
6071
|
|
|
6059
6072
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6060
|
-
import { z as
|
|
6073
|
+
import { z as z218 } from "zod";
|
|
6061
6074
|
|
|
6062
6075
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6063
|
-
import { z as
|
|
6076
|
+
import { z as z217 } from "zod";
|
|
6064
6077
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6065
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6066
|
-
showSidebar:
|
|
6067
|
-
isPrivate:
|
|
6068
|
-
isHidden:
|
|
6078
|
+
var DTODocumentationItemConfigurationV2 = z217.object({
|
|
6079
|
+
showSidebar: z217.boolean(),
|
|
6080
|
+
isPrivate: z217.boolean(),
|
|
6081
|
+
isHidden: z217.boolean(),
|
|
6069
6082
|
header: DTODocumentationItemHeaderV2
|
|
6070
6083
|
});
|
|
6071
6084
|
|
|
6072
6085
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6073
|
-
var DTODocumentationDraftChangeType =
|
|
6074
|
-
var DTODocumentationDraftStateCreated =
|
|
6075
|
-
changeType:
|
|
6076
|
-
});
|
|
6077
|
-
var DTODocumentationDraftStateUpdated =
|
|
6078
|
-
changeType:
|
|
6079
|
-
changes:
|
|
6080
|
-
previousTitle:
|
|
6086
|
+
var DTODocumentationDraftChangeType = z218.enum(["Created", "Updated", "Deleted"]);
|
|
6087
|
+
var DTODocumentationDraftStateCreated = z218.object({
|
|
6088
|
+
changeType: z218.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6089
|
+
});
|
|
6090
|
+
var DTODocumentationDraftStateUpdated = z218.object({
|
|
6091
|
+
changeType: z218.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6092
|
+
changes: z218.object({
|
|
6093
|
+
previousTitle: z218.string().optional(),
|
|
6081
6094
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6082
|
-
previousContentHash:
|
|
6095
|
+
previousContentHash: z218.string().optional()
|
|
6083
6096
|
})
|
|
6084
6097
|
});
|
|
6085
|
-
var DTODocumentationDraftStateDeleted =
|
|
6086
|
-
changeType:
|
|
6087
|
-
deletedAt:
|
|
6088
|
-
deletedByUserId:
|
|
6098
|
+
var DTODocumentationDraftStateDeleted = z218.object({
|
|
6099
|
+
changeType: z218.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6100
|
+
deletedAt: z218.coerce.date(),
|
|
6101
|
+
deletedByUserId: z218.string()
|
|
6089
6102
|
});
|
|
6090
|
-
var DTODocumentationDraftState =
|
|
6103
|
+
var DTODocumentationDraftState = z218.discriminatedUnion("changeType", [
|
|
6091
6104
|
DTODocumentationDraftStateCreated,
|
|
6092
6105
|
DTODocumentationDraftStateUpdated,
|
|
6093
6106
|
DTODocumentationDraftStateDeleted
|
|
6094
6107
|
]);
|
|
6095
6108
|
|
|
6096
6109
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6097
|
-
import { z as
|
|
6098
|
-
var DTODocumentationPublishMetadata =
|
|
6099
|
-
lastPublishedByUserId:
|
|
6100
|
-
lastPublishedAt:
|
|
6110
|
+
import { z as z219 } from "zod";
|
|
6111
|
+
var DTODocumentationPublishMetadata = z219.object({
|
|
6112
|
+
lastPublishedByUserId: z219.string(),
|
|
6113
|
+
lastPublishedAt: z219.coerce.date()
|
|
6101
6114
|
});
|
|
6102
6115
|
|
|
6103
6116
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6104
|
-
var DTODocumentationPageV2 =
|
|
6105
|
-
id:
|
|
6106
|
-
persistentId:
|
|
6107
|
-
designSystemVersionId:
|
|
6108
|
-
title:
|
|
6117
|
+
var DTODocumentationPageV2 = z220.object({
|
|
6118
|
+
id: z220.string(),
|
|
6119
|
+
persistentId: z220.string(),
|
|
6120
|
+
designSystemVersionId: z220.string(),
|
|
6121
|
+
title: z220.string(),
|
|
6109
6122
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6110
|
-
shortPersistentId:
|
|
6111
|
-
slug:
|
|
6112
|
-
userSlug:
|
|
6113
|
-
createdAt:
|
|
6114
|
-
updatedAt:
|
|
6115
|
-
path:
|
|
6123
|
+
shortPersistentId: z220.string(),
|
|
6124
|
+
slug: z220.string().optional(),
|
|
6125
|
+
userSlug: z220.string().optional(),
|
|
6126
|
+
createdAt: z220.coerce.date(),
|
|
6127
|
+
updatedAt: z220.coerce.date(),
|
|
6128
|
+
path: z220.string(),
|
|
6116
6129
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6117
6130
|
draftState: DTODocumentationDraftState.optional(),
|
|
6118
6131
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6120,215 +6133,215 @@ var DTODocumentationPageV2 = z218.object({
|
|
|
6120
6133
|
/** Defines the approval state of the documentation page */
|
|
6121
6134
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6122
6135
|
// Backward compatibility
|
|
6123
|
-
type:
|
|
6136
|
+
type: z220.literal("Page")
|
|
6124
6137
|
});
|
|
6125
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6138
|
+
var DTOCreateDocumentationPageInputV2 = z220.object({
|
|
6126
6139
|
// Identifier
|
|
6127
|
-
persistentId:
|
|
6140
|
+
persistentId: z220.string(),
|
|
6128
6141
|
// Page properties
|
|
6129
|
-
title:
|
|
6142
|
+
title: z220.string(),
|
|
6130
6143
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6131
6144
|
// Page placement properties
|
|
6132
|
-
parentPersistentId:
|
|
6133
|
-
afterPersistentId:
|
|
6145
|
+
parentPersistentId: z220.string(),
|
|
6146
|
+
afterPersistentId: z220.string().nullish()
|
|
6134
6147
|
});
|
|
6135
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6148
|
+
var DTOUpdateDocumentationPageInputV2 = z220.object({
|
|
6136
6149
|
// Identifier of the group to update
|
|
6137
|
-
id:
|
|
6150
|
+
id: z220.string(),
|
|
6138
6151
|
// Page properties
|
|
6139
|
-
title:
|
|
6152
|
+
title: z220.string().optional(),
|
|
6140
6153
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6141
6154
|
});
|
|
6142
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6155
|
+
var DTOMoveDocumentationPageInputV2 = z220.object({
|
|
6143
6156
|
// Identifier of the group to update
|
|
6144
|
-
id:
|
|
6157
|
+
id: z220.string(),
|
|
6145
6158
|
// Page placement properties
|
|
6146
|
-
parentPersistentId:
|
|
6147
|
-
afterPersistentId:
|
|
6159
|
+
parentPersistentId: z220.string(),
|
|
6160
|
+
afterPersistentId: z220.string().nullish()
|
|
6148
6161
|
});
|
|
6149
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6162
|
+
var DTODuplicateDocumentationPageInputV2 = z220.object({
|
|
6150
6163
|
// Identifier of the page to duplicate from
|
|
6151
|
-
id:
|
|
6164
|
+
id: z220.string(),
|
|
6152
6165
|
// New page persistent id
|
|
6153
|
-
persistentId:
|
|
6166
|
+
persistentId: z220.string(),
|
|
6154
6167
|
// Page placement properties
|
|
6155
|
-
parentPersistentId:
|
|
6156
|
-
afterPersistentId:
|
|
6168
|
+
parentPersistentId: z220.string(),
|
|
6169
|
+
afterPersistentId: z220.string().nullish()
|
|
6157
6170
|
});
|
|
6158
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6171
|
+
var DTODeleteDocumentationPageInputV2 = z220.object({
|
|
6159
6172
|
// Identifier
|
|
6160
|
-
id:
|
|
6173
|
+
id: z220.string()
|
|
6161
6174
|
});
|
|
6162
|
-
var DTORestoreDocumentationPageInput =
|
|
6163
|
-
persistentId:
|
|
6164
|
-
snapshotId:
|
|
6175
|
+
var DTORestoreDocumentationPageInput = z220.object({
|
|
6176
|
+
persistentId: z220.string(),
|
|
6177
|
+
snapshotId: z220.string().optional()
|
|
6165
6178
|
});
|
|
6166
|
-
var DTORestoreDocumentationGroupInput =
|
|
6167
|
-
persistentId:
|
|
6168
|
-
snapshotId:
|
|
6179
|
+
var DTORestoreDocumentationGroupInput = z220.object({
|
|
6180
|
+
persistentId: z220.string(),
|
|
6181
|
+
snapshotId: z220.string().optional()
|
|
6169
6182
|
});
|
|
6170
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6171
|
-
persistentId:
|
|
6183
|
+
var DTODocumentationPageApprovalStateChangeInput = z220.object({
|
|
6184
|
+
persistentId: z220.string(),
|
|
6172
6185
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6173
6186
|
});
|
|
6174
6187
|
|
|
6175
6188
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6176
|
-
var DTODocumentationPageSnapshot =
|
|
6177
|
-
id:
|
|
6178
|
-
designSystemVersionId:
|
|
6179
|
-
createdAt:
|
|
6180
|
-
updatedAt:
|
|
6189
|
+
var DTODocumentationPageSnapshot = z221.object({
|
|
6190
|
+
id: z221.string(),
|
|
6191
|
+
designSystemVersionId: z221.string(),
|
|
6192
|
+
createdAt: z221.string(),
|
|
6193
|
+
updatedAt: z221.string(),
|
|
6181
6194
|
documentationPage: DTODocumentationPageV2,
|
|
6182
|
-
pageContentHash:
|
|
6195
|
+
pageContentHash: z221.string(),
|
|
6183
6196
|
reason: DesignElementSnapshotReason
|
|
6184
6197
|
});
|
|
6185
6198
|
|
|
6186
6199
|
// src/api/dto/documentation/link-preview.ts
|
|
6187
|
-
import { z as
|
|
6188
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6200
|
+
import { z as z222 } from "zod";
|
|
6201
|
+
var DTODocumentationLinkPreviewResponse = z222.object({
|
|
6189
6202
|
linkPreview: DocumentationLinkPreview
|
|
6190
6203
|
});
|
|
6191
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6192
|
-
url:
|
|
6193
|
-
documentationItemPersistentId:
|
|
6204
|
+
var DTODocumentationLinkPreviewRequest = z222.object({
|
|
6205
|
+
url: z222.string().optional(),
|
|
6206
|
+
documentationItemPersistentId: z222.string().optional()
|
|
6194
6207
|
});
|
|
6195
6208
|
|
|
6196
6209
|
// src/api/dto/documentation/publish.ts
|
|
6197
|
-
import { z as
|
|
6210
|
+
import { z as z226 } from "zod";
|
|
6198
6211
|
|
|
6199
6212
|
// src/api/dto/export/exporter.ts
|
|
6200
|
-
import { z as
|
|
6201
|
-
var DTOExporterType =
|
|
6202
|
-
var DTOExporterSource =
|
|
6203
|
-
var DTOExporterMembershipRole =
|
|
6204
|
-
var DTOExporterListQuery =
|
|
6205
|
-
limit:
|
|
6213
|
+
import { z as z223 } from "zod";
|
|
6214
|
+
var DTOExporterType = z223.enum(["documentation", "code"]);
|
|
6215
|
+
var DTOExporterSource = z223.enum(["git", "upload"]);
|
|
6216
|
+
var DTOExporterMembershipRole = z223.enum(["Owner", "OwnerArchived", "User"]);
|
|
6217
|
+
var DTOExporterListQuery = z223.object({
|
|
6218
|
+
limit: z223.coerce.number().optional()
|
|
6206
6219
|
});
|
|
6207
|
-
var DTOExporter =
|
|
6208
|
-
id:
|
|
6209
|
-
name:
|
|
6210
|
-
isPrivate:
|
|
6220
|
+
var DTOExporter = z223.object({
|
|
6221
|
+
id: z223.string(),
|
|
6222
|
+
name: z223.string(),
|
|
6223
|
+
isPrivate: z223.boolean(),
|
|
6211
6224
|
exporterType: DTOExporterType,
|
|
6212
|
-
isDefaultDocumentationExporter:
|
|
6213
|
-
iconURL:
|
|
6225
|
+
isDefaultDocumentationExporter: z223.boolean(),
|
|
6226
|
+
iconURL: z223.string().optional(),
|
|
6214
6227
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6215
6228
|
customBlocks: PulsarCustomBlock.array(),
|
|
6216
|
-
blockVariants:
|
|
6217
|
-
usesBrands:
|
|
6218
|
-
usesThemes:
|
|
6229
|
+
blockVariants: z223.record(z223.string(), PulsarContributionVariant.array()),
|
|
6230
|
+
usesBrands: z223.boolean(),
|
|
6231
|
+
usesThemes: z223.boolean(),
|
|
6219
6232
|
source: DTOExporterSource,
|
|
6220
|
-
gitUrl: nullishToOptional(
|
|
6221
|
-
gitBranch: nullishToOptional(
|
|
6222
|
-
gitDirectory: nullishToOptional(
|
|
6233
|
+
gitUrl: nullishToOptional(z223.string()),
|
|
6234
|
+
gitBranch: nullishToOptional(z223.string()),
|
|
6235
|
+
gitDirectory: nullishToOptional(z223.string())
|
|
6223
6236
|
});
|
|
6224
|
-
var DTOExporterMembership =
|
|
6225
|
-
workspaceId:
|
|
6226
|
-
exporterId:
|
|
6237
|
+
var DTOExporterMembership = z223.object({
|
|
6238
|
+
workspaceId: z223.string(),
|
|
6239
|
+
exporterId: z223.string(),
|
|
6227
6240
|
role: DTOExporterMembershipRole
|
|
6228
6241
|
});
|
|
6229
|
-
var DTOExporterCreateOutput =
|
|
6242
|
+
var DTOExporterCreateOutput = z223.object({
|
|
6230
6243
|
exporter: DTOExporter,
|
|
6231
6244
|
membership: DTOExporterMembership
|
|
6232
6245
|
});
|
|
6233
|
-
var DTOExporterListResponse =
|
|
6246
|
+
var DTOExporterListResponse = z223.object({
|
|
6234
6247
|
exporters: DTOExporter.array(),
|
|
6235
6248
|
membership: DTOExporterMembership.array()
|
|
6236
6249
|
});
|
|
6237
|
-
var DTOExporterGitProviderEnum =
|
|
6238
|
-
var DTOExporterCreateInput =
|
|
6239
|
-
url:
|
|
6250
|
+
var DTOExporterGitProviderEnum = z223.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6251
|
+
var DTOExporterCreateInput = z223.object({
|
|
6252
|
+
url: z223.string(),
|
|
6240
6253
|
provider: DTOExporterGitProviderEnum
|
|
6241
6254
|
});
|
|
6242
|
-
var DTOExporterUpdateInput =
|
|
6243
|
-
url:
|
|
6255
|
+
var DTOExporterUpdateInput = z223.object({
|
|
6256
|
+
url: z223.string().optional()
|
|
6244
6257
|
});
|
|
6245
6258
|
|
|
6246
6259
|
// src/api/dto/export/filter.ts
|
|
6247
6260
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6248
6261
|
|
|
6249
6262
|
// src/api/dto/export/job.ts
|
|
6250
|
-
import { z as
|
|
6251
|
-
var DTOExportJobCreatedBy =
|
|
6252
|
-
userId:
|
|
6253
|
-
userName:
|
|
6263
|
+
import { z as z224 } from "zod";
|
|
6264
|
+
var DTOExportJobCreatedBy = z224.object({
|
|
6265
|
+
userId: z224.string(),
|
|
6266
|
+
userName: z224.string()
|
|
6254
6267
|
});
|
|
6255
|
-
var DTOExportJobDesignSystemPreview =
|
|
6256
|
-
id:
|
|
6268
|
+
var DTOExportJobDesignSystemPreview = z224.object({
|
|
6269
|
+
id: z224.string(),
|
|
6257
6270
|
meta: ObjectMeta
|
|
6258
6271
|
});
|
|
6259
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6260
|
-
id:
|
|
6272
|
+
var DTOExportJobDesignSystemVersionPreview = z224.object({
|
|
6273
|
+
id: z224.string(),
|
|
6261
6274
|
meta: ObjectMeta,
|
|
6262
|
-
version:
|
|
6263
|
-
isReadonly:
|
|
6275
|
+
version: z224.string(),
|
|
6276
|
+
isReadonly: z224.boolean()
|
|
6264
6277
|
});
|
|
6265
|
-
var DTOExportJobDestinations =
|
|
6278
|
+
var DTOExportJobDestinations = z224.object({
|
|
6266
6279
|
s3: ExporterDestinationS3.optional(),
|
|
6267
6280
|
azure: ExporterDestinationAzure.optional(),
|
|
6268
6281
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6269
6282
|
github: ExporterDestinationGithub.optional(),
|
|
6270
6283
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6271
6284
|
documentation: ExporterDestinationDocs.optional(),
|
|
6272
|
-
webhookUrl:
|
|
6285
|
+
webhookUrl: z224.string().optional()
|
|
6273
6286
|
});
|
|
6274
6287
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6275
6288
|
sndocs: true
|
|
6276
6289
|
}).extend({
|
|
6277
6290
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6278
6291
|
});
|
|
6279
|
-
var DTOExportJob =
|
|
6280
|
-
id:
|
|
6281
|
-
createdAt:
|
|
6282
|
-
finishedAt:
|
|
6283
|
-
index:
|
|
6292
|
+
var DTOExportJob = z224.object({
|
|
6293
|
+
id: z224.string(),
|
|
6294
|
+
createdAt: z224.coerce.date(),
|
|
6295
|
+
finishedAt: z224.coerce.date().optional(),
|
|
6296
|
+
index: z224.number().optional(),
|
|
6284
6297
|
status: ExportJobStatus,
|
|
6285
|
-
estimatedExecutionTime:
|
|
6298
|
+
estimatedExecutionTime: z224.number().optional(),
|
|
6286
6299
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6287
6300
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6288
6301
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6289
6302
|
destinations: DTOExportJobDestinations,
|
|
6290
|
-
exporterId:
|
|
6291
|
-
scheduleId:
|
|
6303
|
+
exporterId: z224.string(),
|
|
6304
|
+
scheduleId: z224.string().optional(),
|
|
6292
6305
|
result: DTOExportJobResult.optional(),
|
|
6293
|
-
brandPersistentId:
|
|
6294
|
-
themePersistentId:
|
|
6295
|
-
themePersistentIds:
|
|
6306
|
+
brandPersistentId: z224.string().optional(),
|
|
6307
|
+
themePersistentId: z224.string().optional(),
|
|
6308
|
+
themePersistentIds: z224.string().array().optional()
|
|
6296
6309
|
});
|
|
6297
|
-
var DTOExportJobResponse =
|
|
6310
|
+
var DTOExportJobResponse = z224.object({
|
|
6298
6311
|
job: DTOExportJob
|
|
6299
6312
|
});
|
|
6300
6313
|
|
|
6301
6314
|
// src/api/dto/export/pipeline.ts
|
|
6302
|
-
import { z as
|
|
6303
|
-
var DTOPipelineListQuery =
|
|
6304
|
-
designSystemId:
|
|
6305
|
-
exporterId:
|
|
6306
|
-
latestJobsLimit:
|
|
6315
|
+
import { z as z225 } from "zod";
|
|
6316
|
+
var DTOPipelineListQuery = z225.object({
|
|
6317
|
+
designSystemId: z225.string().optional(),
|
|
6318
|
+
exporterId: z225.string().optional(),
|
|
6319
|
+
latestJobsLimit: z225.coerce.number().optional()
|
|
6307
6320
|
});
|
|
6308
|
-
var DTOPipeline =
|
|
6309
|
-
id:
|
|
6310
|
-
name:
|
|
6321
|
+
var DTOPipeline = z225.object({
|
|
6322
|
+
id: z225.string(),
|
|
6323
|
+
name: z225.string(),
|
|
6311
6324
|
eventType: PipelineEventType,
|
|
6312
|
-
isEnabled:
|
|
6313
|
-
workspaceId:
|
|
6314
|
-
designSystemId:
|
|
6315
|
-
exporterId:
|
|
6316
|
-
brandPersistentId:
|
|
6317
|
-
themePersistentId:
|
|
6318
|
-
themePersistentIds:
|
|
6325
|
+
isEnabled: z225.boolean(),
|
|
6326
|
+
workspaceId: z225.string(),
|
|
6327
|
+
designSystemId: z225.string(),
|
|
6328
|
+
exporterId: z225.string(),
|
|
6329
|
+
brandPersistentId: z225.string().optional(),
|
|
6330
|
+
themePersistentId: z225.string().optional(),
|
|
6331
|
+
themePersistentIds: z225.string().array().optional(),
|
|
6319
6332
|
...ExportDestinationsMap.shape,
|
|
6320
6333
|
latestJobs: DTOExportJob.array()
|
|
6321
6334
|
});
|
|
6322
|
-
var DTOPipelineListResponse =
|
|
6335
|
+
var DTOPipelineListResponse = z225.object({
|
|
6323
6336
|
pipelines: DTOPipeline.array()
|
|
6324
6337
|
});
|
|
6325
|
-
var DTOPipelineResponse =
|
|
6338
|
+
var DTOPipelineResponse = z225.object({
|
|
6326
6339
|
pipeline: DTOPipeline
|
|
6327
6340
|
});
|
|
6328
6341
|
|
|
6329
6342
|
// src/api/dto/documentation/publish.ts
|
|
6330
6343
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6331
|
-
var DTOPublishDocumentationRequest =
|
|
6344
|
+
var DTOPublishDocumentationRequest = z226.object({
|
|
6332
6345
|
environment: PublishedDocEnvironment,
|
|
6333
6346
|
/**
|
|
6334
6347
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6336,42 +6349,42 @@ var DTOPublishDocumentationRequest = z224.object({
|
|
|
6336
6349
|
*/
|
|
6337
6350
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6338
6351
|
});
|
|
6339
|
-
var DTOPublishDocumentationResponse =
|
|
6352
|
+
var DTOPublishDocumentationResponse = z226.object({
|
|
6340
6353
|
job: DTOExportJob
|
|
6341
6354
|
});
|
|
6342
6355
|
|
|
6343
6356
|
// src/api/dto/elements/components/figma-component.ts
|
|
6344
|
-
import { z as
|
|
6357
|
+
import { z as z227 } from "zod";
|
|
6345
6358
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6346
|
-
var DTOFigmaComponentPropertyMap =
|
|
6347
|
-
var DTOFigmaComponent =
|
|
6348
|
-
id:
|
|
6349
|
-
persistentId:
|
|
6350
|
-
designSystemVersionId:
|
|
6351
|
-
brandId:
|
|
6352
|
-
thumbnailUrl:
|
|
6353
|
-
svgUrl:
|
|
6354
|
-
exportProperties:
|
|
6355
|
-
isAsset:
|
|
6359
|
+
var DTOFigmaComponentPropertyMap = z227.record(DTOFigmaComponentProperty);
|
|
6360
|
+
var DTOFigmaComponent = z227.object({
|
|
6361
|
+
id: z227.string(),
|
|
6362
|
+
persistentId: z227.string(),
|
|
6363
|
+
designSystemVersionId: z227.string(),
|
|
6364
|
+
brandId: z227.string(),
|
|
6365
|
+
thumbnailUrl: z227.string().optional(),
|
|
6366
|
+
svgUrl: z227.string().optional(),
|
|
6367
|
+
exportProperties: z227.object({
|
|
6368
|
+
isAsset: z227.boolean()
|
|
6356
6369
|
}),
|
|
6357
|
-
createdAt:
|
|
6358
|
-
updatedAt:
|
|
6370
|
+
createdAt: z227.coerce.date(),
|
|
6371
|
+
updatedAt: z227.coerce.date(),
|
|
6359
6372
|
meta: ObjectMeta,
|
|
6360
6373
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6361
|
-
parentComponentPersistentId:
|
|
6362
|
-
childrenPersistentIds:
|
|
6374
|
+
parentComponentPersistentId: z227.string().optional(),
|
|
6375
|
+
childrenPersistentIds: z227.string().array().optional(),
|
|
6363
6376
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6364
|
-
variantPropertyValues:
|
|
6377
|
+
variantPropertyValues: z227.record(z227.string()).optional()
|
|
6365
6378
|
});
|
|
6366
|
-
var DTOFigmaComponentListResponse =
|
|
6379
|
+
var DTOFigmaComponentListResponse = z227.object({
|
|
6367
6380
|
components: DTOFigmaComponent.array()
|
|
6368
6381
|
});
|
|
6369
6382
|
|
|
6370
6383
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6371
|
-
import { z as
|
|
6384
|
+
import { z as z229 } from "zod";
|
|
6372
6385
|
|
|
6373
6386
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6374
|
-
import { z as
|
|
6387
|
+
import { z as z228 } from "zod";
|
|
6375
6388
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6376
6389
|
sortOrder: true,
|
|
6377
6390
|
parentPersistentId: true,
|
|
@@ -6381,13 +6394,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6381
6394
|
data: true,
|
|
6382
6395
|
shortPersistentId: true
|
|
6383
6396
|
}).extend({
|
|
6384
|
-
title:
|
|
6385
|
-
isRoot:
|
|
6386
|
-
childrenIds:
|
|
6397
|
+
title: z228.string(),
|
|
6398
|
+
isRoot: z228.boolean(),
|
|
6399
|
+
childrenIds: z228.array(z228.string()),
|
|
6387
6400
|
groupBehavior: DocumentationGroupBehavior,
|
|
6388
|
-
shortPersistentId:
|
|
6401
|
+
shortPersistentId: z228.string(),
|
|
6389
6402
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6390
|
-
type:
|
|
6403
|
+
type: z228.literal("Group"),
|
|
6391
6404
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6392
6405
|
draftState: DTODocumentationDraftState.optional(),
|
|
6393
6406
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6395,127 +6408,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6395
6408
|
//** An approval state for frontend to utilize. */
|
|
6396
6409
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6397
6410
|
});
|
|
6398
|
-
var DTOCreateDocumentationGroupInput =
|
|
6411
|
+
var DTOCreateDocumentationGroupInput = z228.object({
|
|
6399
6412
|
// Identifier
|
|
6400
|
-
persistentId:
|
|
6413
|
+
persistentId: z228.string(),
|
|
6401
6414
|
// Group properties
|
|
6402
|
-
title:
|
|
6415
|
+
title: z228.string(),
|
|
6403
6416
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6404
6417
|
// Group placement properties
|
|
6405
|
-
afterPersistentId:
|
|
6406
|
-
parentPersistentId:
|
|
6418
|
+
afterPersistentId: z228.string().nullish(),
|
|
6419
|
+
parentPersistentId: z228.string()
|
|
6407
6420
|
});
|
|
6408
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6421
|
+
var DTOUpdateDocumentationGroupInput = z228.object({
|
|
6409
6422
|
// Identifier of the group to update
|
|
6410
|
-
id:
|
|
6423
|
+
id: z228.string(),
|
|
6411
6424
|
// Group properties
|
|
6412
|
-
title:
|
|
6425
|
+
title: z228.string().optional(),
|
|
6413
6426
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6414
6427
|
});
|
|
6415
|
-
var DTOMoveDocumentationGroupInput =
|
|
6428
|
+
var DTOMoveDocumentationGroupInput = z228.object({
|
|
6416
6429
|
// Identifier of the group to update
|
|
6417
|
-
id:
|
|
6430
|
+
id: z228.string(),
|
|
6418
6431
|
// Group placement properties
|
|
6419
|
-
parentPersistentId:
|
|
6420
|
-
afterPersistentId:
|
|
6432
|
+
parentPersistentId: z228.string(),
|
|
6433
|
+
afterPersistentId: z228.string().nullish()
|
|
6421
6434
|
});
|
|
6422
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6435
|
+
var DTODuplicateDocumentationGroupInput = z228.object({
|
|
6423
6436
|
// Identifier of the group to duplicate from
|
|
6424
|
-
id:
|
|
6437
|
+
id: z228.string(),
|
|
6425
6438
|
// New group persistent id
|
|
6426
|
-
persistentId:
|
|
6439
|
+
persistentId: z228.string(),
|
|
6427
6440
|
// Group placement properties
|
|
6428
|
-
afterPersistentId:
|
|
6429
|
-
parentPersistentId:
|
|
6441
|
+
afterPersistentId: z228.string().nullish(),
|
|
6442
|
+
parentPersistentId: z228.string()
|
|
6430
6443
|
});
|
|
6431
|
-
var DTOCreateDocumentationTabInput =
|
|
6444
|
+
var DTOCreateDocumentationTabInput = z228.object({
|
|
6432
6445
|
// New group persistent id
|
|
6433
|
-
persistentId:
|
|
6446
|
+
persistentId: z228.string(),
|
|
6434
6447
|
// If this is page, we will attempt to convert it to tab
|
|
6435
6448
|
// If this is tab group, we will add a new tab to it
|
|
6436
|
-
fromItemPersistentId:
|
|
6437
|
-
tabName:
|
|
6449
|
+
fromItemPersistentId: z228.string(),
|
|
6450
|
+
tabName: z228.string()
|
|
6438
6451
|
});
|
|
6439
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6452
|
+
var DTODeleteDocumentationTabGroupInput = z228.object({
|
|
6440
6453
|
// Deleted group id
|
|
6441
|
-
id:
|
|
6454
|
+
id: z228.string()
|
|
6442
6455
|
});
|
|
6443
|
-
var DTODeleteDocumentationGroupInput =
|
|
6456
|
+
var DTODeleteDocumentationGroupInput = z228.object({
|
|
6444
6457
|
// Identifier
|
|
6445
|
-
id:
|
|
6458
|
+
id: z228.string(),
|
|
6446
6459
|
// Deletion options
|
|
6447
|
-
deleteSubtree:
|
|
6460
|
+
deleteSubtree: z228.boolean().default(false)
|
|
6448
6461
|
});
|
|
6449
6462
|
|
|
6450
6463
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6451
|
-
var SuccessPayload =
|
|
6452
|
-
success:
|
|
6464
|
+
var SuccessPayload = z229.object({
|
|
6465
|
+
success: z229.literal(true)
|
|
6453
6466
|
});
|
|
6454
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6455
|
-
type:
|
|
6467
|
+
var DTODocumentationGroupCreateActionOutputV2 = z229.object({
|
|
6468
|
+
type: z229.literal("DocumentationGroupCreate"),
|
|
6456
6469
|
output: SuccessPayload
|
|
6457
6470
|
});
|
|
6458
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6459
|
-
type:
|
|
6471
|
+
var DTODocumentationTabCreateActionOutputV2 = z229.object({
|
|
6472
|
+
type: z229.literal("DocumentationTabCreate"),
|
|
6460
6473
|
output: SuccessPayload
|
|
6461
6474
|
});
|
|
6462
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6463
|
-
type:
|
|
6475
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z229.object({
|
|
6476
|
+
type: z229.literal("DocumentationGroupUpdate"),
|
|
6464
6477
|
output: SuccessPayload
|
|
6465
6478
|
});
|
|
6466
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6467
|
-
type:
|
|
6479
|
+
var DTODocumentationGroupMoveActionOutputV2 = z229.object({
|
|
6480
|
+
type: z229.literal("DocumentationGroupMove"),
|
|
6468
6481
|
output: SuccessPayload
|
|
6469
6482
|
});
|
|
6470
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6471
|
-
type:
|
|
6483
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z229.object({
|
|
6484
|
+
type: z229.literal("DocumentationGroupDuplicate"),
|
|
6472
6485
|
output: SuccessPayload
|
|
6473
6486
|
});
|
|
6474
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6475
|
-
type:
|
|
6487
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z229.object({
|
|
6488
|
+
type: z229.literal("DocumentationGroupDelete"),
|
|
6476
6489
|
output: SuccessPayload
|
|
6477
6490
|
});
|
|
6478
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6479
|
-
type:
|
|
6491
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z229.object({
|
|
6492
|
+
type: z229.literal("DocumentationTabGroupDelete"),
|
|
6480
6493
|
output: SuccessPayload
|
|
6481
6494
|
});
|
|
6482
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6483
|
-
type:
|
|
6495
|
+
var DTODocumentationGroupCreateActionInputV2 = z229.object({
|
|
6496
|
+
type: z229.literal("DocumentationGroupCreate"),
|
|
6484
6497
|
input: DTOCreateDocumentationGroupInput
|
|
6485
6498
|
});
|
|
6486
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6487
|
-
type:
|
|
6499
|
+
var DTODocumentationTabCreateActionInputV2 = z229.object({
|
|
6500
|
+
type: z229.literal("DocumentationTabCreate"),
|
|
6488
6501
|
input: DTOCreateDocumentationTabInput
|
|
6489
6502
|
});
|
|
6490
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6491
|
-
type:
|
|
6503
|
+
var DTODocumentationGroupUpdateActionInputV2 = z229.object({
|
|
6504
|
+
type: z229.literal("DocumentationGroupUpdate"),
|
|
6492
6505
|
input: DTOUpdateDocumentationGroupInput
|
|
6493
6506
|
});
|
|
6494
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6495
|
-
type:
|
|
6507
|
+
var DTODocumentationGroupMoveActionInputV2 = z229.object({
|
|
6508
|
+
type: z229.literal("DocumentationGroupMove"),
|
|
6496
6509
|
input: DTOMoveDocumentationGroupInput
|
|
6497
6510
|
});
|
|
6498
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6499
|
-
type:
|
|
6511
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z229.object({
|
|
6512
|
+
type: z229.literal("DocumentationGroupDuplicate"),
|
|
6500
6513
|
input: DTODuplicateDocumentationGroupInput
|
|
6501
6514
|
});
|
|
6502
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6503
|
-
type:
|
|
6515
|
+
var DTODocumentationGroupDeleteActionInputV2 = z229.object({
|
|
6516
|
+
type: z229.literal("DocumentationGroupDelete"),
|
|
6504
6517
|
input: DTODeleteDocumentationGroupInput
|
|
6505
6518
|
});
|
|
6506
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6507
|
-
type:
|
|
6519
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z229.object({
|
|
6520
|
+
type: z229.literal("DocumentationTabGroupDelete"),
|
|
6508
6521
|
input: DTODeleteDocumentationTabGroupInput
|
|
6509
6522
|
});
|
|
6510
6523
|
|
|
6511
6524
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6512
|
-
import { z as
|
|
6525
|
+
import { z as z231 } from "zod";
|
|
6513
6526
|
|
|
6514
6527
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6515
|
-
import { z as
|
|
6516
|
-
var DocumentationColorV1 =
|
|
6517
|
-
aliasTo:
|
|
6518
|
-
value:
|
|
6528
|
+
import { z as z230 } from "zod";
|
|
6529
|
+
var DocumentationColorV1 = z230.object({
|
|
6530
|
+
aliasTo: z230.string().optional(),
|
|
6531
|
+
value: z230.string().optional()
|
|
6519
6532
|
});
|
|
6520
6533
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6521
6534
|
foregroundColor: true,
|
|
@@ -6524,10 +6537,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6524
6537
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6525
6538
|
backgroundColor: DocumentationColorV1.optional()
|
|
6526
6539
|
});
|
|
6527
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6528
|
-
showSidebar:
|
|
6529
|
-
isPrivate:
|
|
6530
|
-
isHidden:
|
|
6540
|
+
var DTODocumentationItemConfigurationV1 = z230.object({
|
|
6541
|
+
showSidebar: z230.boolean(),
|
|
6542
|
+
isPrivate: z230.boolean(),
|
|
6543
|
+
isHidden: z230.boolean(),
|
|
6531
6544
|
header: DTODocumentationItemHeaderV1
|
|
6532
6545
|
});
|
|
6533
6546
|
|
|
@@ -6541,27 +6554,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6541
6554
|
data: true,
|
|
6542
6555
|
shortPersistentId: true
|
|
6543
6556
|
}).extend({
|
|
6544
|
-
title:
|
|
6545
|
-
isRoot:
|
|
6546
|
-
childrenIds:
|
|
6557
|
+
title: z231.string(),
|
|
6558
|
+
isRoot: z231.boolean(),
|
|
6559
|
+
childrenIds: z231.array(z231.string()),
|
|
6547
6560
|
groupBehavior: DocumentationGroupBehavior,
|
|
6548
|
-
shortPersistentId:
|
|
6549
|
-
type:
|
|
6561
|
+
shortPersistentId: z231.string(),
|
|
6562
|
+
type: z231.literal("Group")
|
|
6550
6563
|
});
|
|
6551
6564
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6552
6565
|
configuration: DTODocumentationItemConfigurationV1
|
|
6553
6566
|
});
|
|
6554
6567
|
|
|
6555
6568
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6556
|
-
import { z as
|
|
6557
|
-
var DTODocumentationHierarchyV2 =
|
|
6558
|
-
pages:
|
|
6569
|
+
import { z as z232 } from "zod";
|
|
6570
|
+
var DTODocumentationHierarchyV2 = z232.object({
|
|
6571
|
+
pages: z232.array(
|
|
6559
6572
|
DTODocumentationPageV2.extend({
|
|
6560
6573
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6561
6574
|
draftState: DTODocumentationDraftState.optional()
|
|
6562
6575
|
})
|
|
6563
6576
|
),
|
|
6564
|
-
groups:
|
|
6577
|
+
groups: z232.array(
|
|
6565
6578
|
DTODocumentationGroupV2.extend({
|
|
6566
6579
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6567
6580
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6570,84 +6583,84 @@ var DTODocumentationHierarchyV2 = z230.object({
|
|
|
6570
6583
|
});
|
|
6571
6584
|
|
|
6572
6585
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6573
|
-
import { z as
|
|
6574
|
-
var SuccessPayload2 =
|
|
6575
|
-
success:
|
|
6586
|
+
import { z as z233 } from "zod";
|
|
6587
|
+
var SuccessPayload2 = z233.object({
|
|
6588
|
+
success: z233.literal(true)
|
|
6576
6589
|
});
|
|
6577
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6578
|
-
type:
|
|
6590
|
+
var DTODocumentationPageCreateActionOutputV2 = z233.object({
|
|
6591
|
+
type: z233.literal("DocumentationPageCreate"),
|
|
6579
6592
|
output: SuccessPayload2
|
|
6580
6593
|
});
|
|
6581
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6582
|
-
type:
|
|
6594
|
+
var DTODocumentationPageUpdateActionOutputV2 = z233.object({
|
|
6595
|
+
type: z233.literal("DocumentationPageUpdate"),
|
|
6583
6596
|
output: SuccessPayload2
|
|
6584
6597
|
});
|
|
6585
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6586
|
-
type:
|
|
6598
|
+
var DTODocumentationPageMoveActionOutputV2 = z233.object({
|
|
6599
|
+
type: z233.literal("DocumentationPageMove"),
|
|
6587
6600
|
output: SuccessPayload2
|
|
6588
6601
|
});
|
|
6589
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6590
|
-
type:
|
|
6602
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z233.object({
|
|
6603
|
+
type: z233.literal("DocumentationPageDuplicate"),
|
|
6591
6604
|
output: SuccessPayload2
|
|
6592
6605
|
});
|
|
6593
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6594
|
-
type:
|
|
6606
|
+
var DTODocumentationPageDeleteActionOutputV2 = z233.object({
|
|
6607
|
+
type: z233.literal("DocumentationPageDelete"),
|
|
6595
6608
|
output: SuccessPayload2
|
|
6596
6609
|
});
|
|
6597
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6598
|
-
type:
|
|
6610
|
+
var DTODocumentationPageRestoreActionOutput = z233.object({
|
|
6611
|
+
type: z233.literal("DocumentationPageRestore"),
|
|
6599
6612
|
output: SuccessPayload2
|
|
6600
6613
|
});
|
|
6601
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6602
|
-
type:
|
|
6614
|
+
var DTODocumentationGroupRestoreActionOutput = z233.object({
|
|
6615
|
+
type: z233.literal("DocumentationGroupRestore"),
|
|
6603
6616
|
output: SuccessPayload2
|
|
6604
6617
|
});
|
|
6605
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6606
|
-
type:
|
|
6618
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z233.object({
|
|
6619
|
+
type: z233.literal("DocumentationPageApprovalStateChange"),
|
|
6607
6620
|
output: SuccessPayload2
|
|
6608
6621
|
});
|
|
6609
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6610
|
-
type:
|
|
6622
|
+
var DTODocumentationPageCreateActionInputV2 = z233.object({
|
|
6623
|
+
type: z233.literal("DocumentationPageCreate"),
|
|
6611
6624
|
input: DTOCreateDocumentationPageInputV2
|
|
6612
6625
|
});
|
|
6613
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6614
|
-
type:
|
|
6626
|
+
var DTODocumentationPageUpdateActionInputV2 = z233.object({
|
|
6627
|
+
type: z233.literal("DocumentationPageUpdate"),
|
|
6615
6628
|
input: DTOUpdateDocumentationPageInputV2
|
|
6616
6629
|
});
|
|
6617
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6618
|
-
type:
|
|
6630
|
+
var DTODocumentationPageMoveActionInputV2 = z233.object({
|
|
6631
|
+
type: z233.literal("DocumentationPageMove"),
|
|
6619
6632
|
input: DTOMoveDocumentationPageInputV2
|
|
6620
6633
|
});
|
|
6621
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6622
|
-
type:
|
|
6634
|
+
var DTODocumentationPageDuplicateActionInputV2 = z233.object({
|
|
6635
|
+
type: z233.literal("DocumentationPageDuplicate"),
|
|
6623
6636
|
input: DTODuplicateDocumentationPageInputV2
|
|
6624
6637
|
});
|
|
6625
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6626
|
-
type:
|
|
6638
|
+
var DTODocumentationPageDeleteActionInputV2 = z233.object({
|
|
6639
|
+
type: z233.literal("DocumentationPageDelete"),
|
|
6627
6640
|
input: DTODeleteDocumentationPageInputV2
|
|
6628
6641
|
});
|
|
6629
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6630
|
-
type:
|
|
6642
|
+
var DTODocumentationPageRestoreActionInput = z233.object({
|
|
6643
|
+
type: z233.literal("DocumentationPageRestore"),
|
|
6631
6644
|
input: DTORestoreDocumentationPageInput
|
|
6632
6645
|
});
|
|
6633
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6634
|
-
type:
|
|
6646
|
+
var DTODocumentationGroupRestoreActionInput = z233.object({
|
|
6647
|
+
type: z233.literal("DocumentationGroupRestore"),
|
|
6635
6648
|
input: DTORestoreDocumentationGroupInput
|
|
6636
6649
|
});
|
|
6637
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6638
|
-
type:
|
|
6650
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z233.object({
|
|
6651
|
+
type: z233.literal("DocumentationPageApprovalStateChange"),
|
|
6639
6652
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6640
6653
|
});
|
|
6641
6654
|
|
|
6642
6655
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6643
|
-
import { z as
|
|
6656
|
+
import { z as z234 } from "zod";
|
|
6644
6657
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6645
|
-
var DTODocumentationPageContentGetResponse =
|
|
6658
|
+
var DTODocumentationPageContentGetResponse = z234.object({
|
|
6646
6659
|
pageContent: DTODocumentationPageContent
|
|
6647
6660
|
});
|
|
6648
6661
|
|
|
6649
6662
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6650
|
-
import { z as
|
|
6663
|
+
import { z as z235 } from "zod";
|
|
6651
6664
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6652
6665
|
data: true,
|
|
6653
6666
|
meta: true,
|
|
@@ -6655,32 +6668,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6655
6668
|
sortOrder: true
|
|
6656
6669
|
}).extend({
|
|
6657
6670
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6658
|
-
blocks:
|
|
6659
|
-
title:
|
|
6660
|
-
path:
|
|
6671
|
+
blocks: z235.array(PageBlockV1),
|
|
6672
|
+
title: z235.string(),
|
|
6673
|
+
path: z235.string()
|
|
6661
6674
|
});
|
|
6662
6675
|
|
|
6663
6676
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6664
|
-
import { z as
|
|
6677
|
+
import { z as z236 } from "zod";
|
|
6665
6678
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6666
|
-
var DTOFigmaNodeOrigin =
|
|
6667
|
-
sourceId:
|
|
6668
|
-
fileId:
|
|
6669
|
-
parentName:
|
|
6679
|
+
var DTOFigmaNodeOrigin = z236.object({
|
|
6680
|
+
sourceId: z236.string(),
|
|
6681
|
+
fileId: z236.string().optional(),
|
|
6682
|
+
parentName: z236.string().optional()
|
|
6670
6683
|
});
|
|
6671
|
-
var DTOFigmaNodeData =
|
|
6684
|
+
var DTOFigmaNodeData = z236.object({
|
|
6672
6685
|
// Id of the node in the Figma file
|
|
6673
|
-
figmaNodeId:
|
|
6686
|
+
figmaNodeId: z236.string(),
|
|
6674
6687
|
// Validity
|
|
6675
|
-
isValid:
|
|
6688
|
+
isValid: z236.boolean(),
|
|
6676
6689
|
// Asset data
|
|
6677
|
-
assetId:
|
|
6678
|
-
assetUrl:
|
|
6690
|
+
assetId: z236.string(),
|
|
6691
|
+
assetUrl: z236.string(),
|
|
6679
6692
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6680
6693
|
// Asset metadata
|
|
6681
|
-
assetScale:
|
|
6682
|
-
assetWidth:
|
|
6683
|
-
assetHeight:
|
|
6694
|
+
assetScale: z236.number(),
|
|
6695
|
+
assetWidth: z236.number().optional(),
|
|
6696
|
+
assetHeight: z236.number().optional()
|
|
6684
6697
|
});
|
|
6685
6698
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6686
6699
|
data: true,
|
|
@@ -6689,15 +6702,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6689
6702
|
data: DTOFigmaNodeData,
|
|
6690
6703
|
origin: DTOFigmaNodeOrigin
|
|
6691
6704
|
});
|
|
6692
|
-
var DTOFigmaNodeRenderInput =
|
|
6705
|
+
var DTOFigmaNodeRenderInput = z236.object({
|
|
6693
6706
|
/**
|
|
6694
6707
|
* Id of a design system's data source representing a linked Figma file
|
|
6695
6708
|
*/
|
|
6696
|
-
sourceId:
|
|
6709
|
+
sourceId: z236.string(),
|
|
6697
6710
|
/**
|
|
6698
6711
|
* Id of a node within the Figma file
|
|
6699
6712
|
*/
|
|
6700
|
-
figmaFileNodeId:
|
|
6713
|
+
figmaFileNodeId: z236.string(),
|
|
6701
6714
|
/**
|
|
6702
6715
|
* Format in which the node must be rendered, png by default.
|
|
6703
6716
|
*/
|
|
@@ -6705,108 +6718,82 @@ var DTOFigmaNodeRenderInput = z234.object({
|
|
|
6705
6718
|
});
|
|
6706
6719
|
|
|
6707
6720
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6708
|
-
import { z as
|
|
6709
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6710
|
-
type:
|
|
6711
|
-
figmaNodes:
|
|
6721
|
+
import { z as z237 } from "zod";
|
|
6722
|
+
var DTOFigmaNodeRenderActionOutput = z237.object({
|
|
6723
|
+
type: z237.literal("FigmaNodeRender"),
|
|
6724
|
+
figmaNodes: z237.array(DTOFigmaNode)
|
|
6712
6725
|
});
|
|
6713
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6714
|
-
type:
|
|
6726
|
+
var DTOFigmaNodeRenderActionInput = z237.object({
|
|
6727
|
+
type: z237.literal("FigmaNodeRender"),
|
|
6715
6728
|
input: DTOFigmaNodeRenderInput.array()
|
|
6716
6729
|
});
|
|
6717
6730
|
|
|
6718
|
-
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6719
|
-
import { z as z237 } from "zod";
|
|
6720
|
-
|
|
6721
6731
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6722
|
-
import { z as
|
|
6732
|
+
import { z as z238 } from "zod";
|
|
6723
6733
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6724
|
-
var
|
|
6725
|
-
id:
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6734
|
+
var DTOElementPropertyDefinitionOption = z238.object({
|
|
6735
|
+
id: z238.string(),
|
|
6736
|
+
name: z238.string(),
|
|
6737
|
+
backgroundColor: DTOColorTokenInlineData.optional()
|
|
6738
|
+
});
|
|
6739
|
+
var DTOElementPropertyDefinition = z238.object({
|
|
6740
|
+
id: z238.string(),
|
|
6741
|
+
designSystemVersionId: z238.string(),
|
|
6742
|
+
meta: DTOObjectMeta,
|
|
6743
|
+
persistentId: z238.string(),
|
|
6729
6744
|
type: ElementPropertyTypeSchema,
|
|
6730
6745
|
targetElementType: ElementPropertyTargetType,
|
|
6731
|
-
codeName:
|
|
6732
|
-
options: nullishToOptional(
|
|
6746
|
+
codeName: z238.string().regex(CODE_NAME_REGEX2),
|
|
6747
|
+
options: nullishToOptional(z238.array(DTOElementPropertyDefinitionOption)),
|
|
6733
6748
|
linkElementType: nullishToOptional(ElementPropertyLinkType)
|
|
6734
6749
|
});
|
|
6735
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
6736
|
-
definitions:
|
|
6737
|
-
});
|
|
6738
|
-
var DTOElementPropertyDefinitionResponse = z236.object({
|
|
6739
|
-
definition: DTOElementPropertyDefinition
|
|
6740
|
-
});
|
|
6741
|
-
var DTOElementPropertyDefinitionCreatePayload = DTOElementPropertyDefinition.omit({
|
|
6742
|
-
id: true,
|
|
6743
|
-
designSystemVersionId: true
|
|
6744
|
-
});
|
|
6745
|
-
var DTOElementPropertyDefinitionUpdatePayload = z236.object({
|
|
6746
|
-
id: z236.string(),
|
|
6747
|
-
name: z236.string().optional(),
|
|
6748
|
-
description: z236.string().optional(),
|
|
6749
|
-
codeName: z236.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6750
|
-
options: z236.array(ElementPropertyDefinitionOption).optional()
|
|
6751
|
-
});
|
|
6752
|
-
var DTOElementPropertyDefinitionDeletePayload = z236.object({
|
|
6753
|
-
id: z236.string()
|
|
6750
|
+
var DTOElementPropertyDefinitionListResponse = z238.object({
|
|
6751
|
+
definitions: z238.array(DTOElementPropertyDefinition)
|
|
6754
6752
|
});
|
|
6755
|
-
|
|
6756
|
-
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6757
|
-
var SuccessPayload3 = z237.object({
|
|
6758
|
-
success: z237.literal(true)
|
|
6759
|
-
});
|
|
6760
|
-
var DTOPropertyDefinitionCreateActionOutputV2 = z237.object({
|
|
6761
|
-
type: z237.literal("PropertyDefinitionCreate"),
|
|
6753
|
+
var DTOElementPropertyDefinitionResponse = z238.object({
|
|
6762
6754
|
definition: DTOElementPropertyDefinition
|
|
6763
6755
|
});
|
|
6764
|
-
var
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
type: z237.literal("PropertyDefinitionCreate"),
|
|
6774
|
-
input: DTOElementPropertyDefinitionCreatePayload
|
|
6775
|
-
});
|
|
6776
|
-
var DTOPropertyDefinitionUpdateActionInputV2 = z237.object({
|
|
6777
|
-
type: z237.literal("PropertyDefinitionUpdate"),
|
|
6778
|
-
input: DTOElementPropertyDefinitionUpdatePayload
|
|
6756
|
+
var DTOElementPropertyDefinitionCreatePayload = z238.object({
|
|
6757
|
+
meta: DTOObjectMeta,
|
|
6758
|
+
persistentId: z238.string(),
|
|
6759
|
+
type: ElementPropertyTypeSchema,
|
|
6760
|
+
targetElementType: ElementPropertyTargetType,
|
|
6761
|
+
codeName: z238.string().regex(CODE_NAME_REGEX2),
|
|
6762
|
+
options: nullishToOptional(z238.array(DTOElementPropertyDefinitionOption)),
|
|
6763
|
+
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6764
|
+
columnWidth: z238.number().max(1024).optional()
|
|
6779
6765
|
});
|
|
6780
|
-
var
|
|
6781
|
-
|
|
6782
|
-
|
|
6766
|
+
var DTOElementPropertyDefinitionUpdatePayload = z238.object({
|
|
6767
|
+
meta: DTOObjectMeta.optional(),
|
|
6768
|
+
codeName: z238.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6769
|
+
options: z238.array(DTOElementPropertyDefinitionOption).optional()
|
|
6783
6770
|
});
|
|
6784
6771
|
|
|
6785
6772
|
// src/api/dto/elements/properties/property-values.ts
|
|
6786
|
-
import { z as
|
|
6787
|
-
var DTOElementPropertyValue =
|
|
6788
|
-
id:
|
|
6789
|
-
designSystemVersionId:
|
|
6790
|
-
definitionId:
|
|
6791
|
-
targetElementId:
|
|
6792
|
-
value:
|
|
6793
|
-
valuePreview:
|
|
6794
|
-
});
|
|
6795
|
-
var DTOElementPropertyValueListResponse =
|
|
6796
|
-
values:
|
|
6797
|
-
});
|
|
6798
|
-
var DTOElementPropertyValueResponse =
|
|
6773
|
+
import { z as z239 } from "zod";
|
|
6774
|
+
var DTOElementPropertyValue = z239.object({
|
|
6775
|
+
id: z239.string(),
|
|
6776
|
+
designSystemVersionId: z239.string(),
|
|
6777
|
+
definitionId: z239.string(),
|
|
6778
|
+
targetElementId: z239.string(),
|
|
6779
|
+
value: z239.union([z239.string(), z239.number(), z239.boolean()]).optional(),
|
|
6780
|
+
valuePreview: z239.string().optional()
|
|
6781
|
+
});
|
|
6782
|
+
var DTOElementPropertyValueListResponse = z239.object({
|
|
6783
|
+
values: z239.array(DTOElementPropertyValue)
|
|
6784
|
+
});
|
|
6785
|
+
var DTOElementPropertyValueResponse = z239.object({
|
|
6799
6786
|
value: DTOElementPropertyValue
|
|
6800
6787
|
});
|
|
6801
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
6802
|
-
definitionId:
|
|
6803
|
-
targetElementId:
|
|
6804
|
-
value:
|
|
6788
|
+
var DTOElementPropertyValueUpsertPaylod = z239.object({
|
|
6789
|
+
definitionId: z239.string(),
|
|
6790
|
+
targetElementId: z239.string(),
|
|
6791
|
+
value: z239.string().or(z239.number()).or(z239.boolean())
|
|
6805
6792
|
});
|
|
6806
6793
|
|
|
6807
6794
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6808
|
-
import { z as
|
|
6809
|
-
var DTOElementActionOutput =
|
|
6795
|
+
import { z as z240 } from "zod";
|
|
6796
|
+
var DTOElementActionOutput = z240.discriminatedUnion("type", [
|
|
6810
6797
|
// Documentation pages
|
|
6811
6798
|
DTODocumentationPageCreateActionOutputV2,
|
|
6812
6799
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6823,17 +6810,13 @@ var DTOElementActionOutput = z239.discriminatedUnion("type", [
|
|
|
6823
6810
|
DTODocumentationTabGroupDeleteActionOutputV2,
|
|
6824
6811
|
// Figma frames
|
|
6825
6812
|
DTOFigmaNodeRenderActionOutput,
|
|
6826
|
-
// Properties Definitions
|
|
6827
|
-
DTOPropertyDefinitionCreateActionOutputV2,
|
|
6828
|
-
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
6829
|
-
DTOPropertyDefinitionDeleteActionOutputV2,
|
|
6830
6813
|
// Restore
|
|
6831
6814
|
DTODocumentationPageRestoreActionOutput,
|
|
6832
6815
|
DTODocumentationGroupRestoreActionOutput,
|
|
6833
6816
|
// Approvals
|
|
6834
6817
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6835
6818
|
]);
|
|
6836
|
-
var DTOElementActionInput =
|
|
6819
|
+
var DTOElementActionInput = z240.discriminatedUnion("type", [
|
|
6837
6820
|
// Documentation pages
|
|
6838
6821
|
DTODocumentationPageCreateActionInputV2,
|
|
6839
6822
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6850,10 +6833,6 @@ var DTOElementActionInput = z239.discriminatedUnion("type", [
|
|
|
6850
6833
|
DTODocumentationTabGroupDeleteActionInputV2,
|
|
6851
6834
|
// Figma frames
|
|
6852
6835
|
DTOFigmaNodeRenderActionInput,
|
|
6853
|
-
// Properties Definitions
|
|
6854
|
-
DTOPropertyDefinitionCreateActionInputV2,
|
|
6855
|
-
DTOPropertyDefinitionUpdateActionInputV2,
|
|
6856
|
-
DTOPropertyDefinitionDeleteActionInputV2,
|
|
6857
6836
|
// Restore
|
|
6858
6837
|
DTODocumentationPageRestoreActionInput,
|
|
6859
6838
|
DTODocumentationGroupRestoreActionInput,
|
|
@@ -6862,80 +6841,80 @@ var DTOElementActionInput = z239.discriminatedUnion("type", [
|
|
|
6862
6841
|
]);
|
|
6863
6842
|
|
|
6864
6843
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6865
|
-
import { z as
|
|
6866
|
-
var DTOElementsGetTypeFilter =
|
|
6867
|
-
var DTOElementsGetQuerySchema =
|
|
6868
|
-
types:
|
|
6844
|
+
import { z as z241 } from "zod";
|
|
6845
|
+
var DTOElementsGetTypeFilter = z241.enum(["FigmaNode"]);
|
|
6846
|
+
var DTOElementsGetQuerySchema = z241.object({
|
|
6847
|
+
types: z241.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6869
6848
|
});
|
|
6870
|
-
var DTOElementsGetOutput =
|
|
6871
|
-
figmaNodes:
|
|
6849
|
+
var DTOElementsGetOutput = z241.object({
|
|
6850
|
+
figmaNodes: z241.array(DTOFigmaNode).optional()
|
|
6872
6851
|
});
|
|
6873
6852
|
|
|
6874
6853
|
// src/api/dto/figma-components/assets/download.ts
|
|
6875
|
-
import { z as
|
|
6876
|
-
var DTOAssetRenderConfiguration =
|
|
6877
|
-
prefix:
|
|
6878
|
-
suffix:
|
|
6879
|
-
scale:
|
|
6880
|
-
format:
|
|
6881
|
-
});
|
|
6882
|
-
var DTORenderedAssetFile =
|
|
6883
|
-
assetId:
|
|
6884
|
-
fileName:
|
|
6885
|
-
sourceUrl:
|
|
6854
|
+
import { z as z242 } from "zod";
|
|
6855
|
+
var DTOAssetRenderConfiguration = z242.object({
|
|
6856
|
+
prefix: z242.string().optional(),
|
|
6857
|
+
suffix: z242.string().optional(),
|
|
6858
|
+
scale: z242.enum(["x1", "x2", "x3", "x4"]),
|
|
6859
|
+
format: z242.enum(["png", "pdf", "svg"])
|
|
6860
|
+
});
|
|
6861
|
+
var DTORenderedAssetFile = z242.object({
|
|
6862
|
+
assetId: z242.string(),
|
|
6863
|
+
fileName: z242.string(),
|
|
6864
|
+
sourceUrl: z242.string(),
|
|
6886
6865
|
settings: DTOAssetRenderConfiguration,
|
|
6887
|
-
originalName:
|
|
6866
|
+
originalName: z242.string()
|
|
6888
6867
|
});
|
|
6889
|
-
var DTODownloadAssetsRequest =
|
|
6890
|
-
persistentIds:
|
|
6868
|
+
var DTODownloadAssetsRequest = z242.object({
|
|
6869
|
+
persistentIds: z242.array(z242.string().uuid()).optional(),
|
|
6891
6870
|
settings: DTOAssetRenderConfiguration.array()
|
|
6892
6871
|
});
|
|
6893
|
-
var DTODownloadAssetsResponse =
|
|
6872
|
+
var DTODownloadAssetsResponse = z242.object({
|
|
6894
6873
|
items: DTORenderedAssetFile.array()
|
|
6895
6874
|
});
|
|
6896
6875
|
|
|
6897
6876
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6898
|
-
import { z as
|
|
6899
|
-
var DTOLiveblocksAuthResponse =
|
|
6900
|
-
token:
|
|
6877
|
+
import { z as z243 } from "zod";
|
|
6878
|
+
var DTOLiveblocksAuthResponse = z243.object({
|
|
6879
|
+
token: z243.string()
|
|
6901
6880
|
});
|
|
6902
6881
|
|
|
6903
6882
|
// src/api/dto/themes/override.ts
|
|
6904
|
-
import { z as
|
|
6883
|
+
import { z as z244 } from "zod";
|
|
6905
6884
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
6906
|
-
|
|
6907
|
-
tokenPersistentId:
|
|
6885
|
+
z244.object({
|
|
6886
|
+
tokenPersistentId: z244.string(),
|
|
6908
6887
|
origin: ThemeOverrideOrigin.optional()
|
|
6909
6888
|
})
|
|
6910
6889
|
);
|
|
6911
6890
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
6912
|
-
|
|
6913
|
-
tokenPersistentId:
|
|
6891
|
+
z244.object({
|
|
6892
|
+
tokenPersistentId: z244.string()
|
|
6914
6893
|
})
|
|
6915
6894
|
);
|
|
6916
6895
|
|
|
6917
6896
|
// src/api/dto/themes/theme.ts
|
|
6918
|
-
import { z as
|
|
6919
|
-
var DTOTheme =
|
|
6920
|
-
id:
|
|
6921
|
-
persistentId:
|
|
6922
|
-
designSystemVersionId:
|
|
6923
|
-
brandId:
|
|
6897
|
+
import { z as z245 } from "zod";
|
|
6898
|
+
var DTOTheme = z245.object({
|
|
6899
|
+
id: z245.string(),
|
|
6900
|
+
persistentId: z245.string(),
|
|
6901
|
+
designSystemVersionId: z245.string(),
|
|
6902
|
+
brandId: z245.string(),
|
|
6924
6903
|
meta: ObjectMeta,
|
|
6925
|
-
codeName:
|
|
6904
|
+
codeName: z245.string(),
|
|
6926
6905
|
overrides: DTOThemeOverride.array()
|
|
6927
6906
|
});
|
|
6928
|
-
var DTOThemeResponse =
|
|
6907
|
+
var DTOThemeResponse = z245.object({
|
|
6929
6908
|
theme: DTOTheme
|
|
6930
6909
|
});
|
|
6931
|
-
var DTOThemeListResponse =
|
|
6910
|
+
var DTOThemeListResponse = z245.object({
|
|
6932
6911
|
themes: DTOTheme.array()
|
|
6933
6912
|
});
|
|
6934
|
-
var DTOThemeCreatePayload =
|
|
6913
|
+
var DTOThemeCreatePayload = z245.object({
|
|
6935
6914
|
meta: ObjectMeta,
|
|
6936
|
-
persistentId:
|
|
6937
|
-
brandId:
|
|
6938
|
-
codeName:
|
|
6915
|
+
persistentId: z245.string(),
|
|
6916
|
+
brandId: z245.string(),
|
|
6917
|
+
codeName: z245.string(),
|
|
6939
6918
|
overrides: DTOThemeOverride.array()
|
|
6940
6919
|
});
|
|
6941
6920
|
|
|
@@ -7029,7 +7008,7 @@ var ImportJobsEndpoint = class {
|
|
|
7029
7008
|
};
|
|
7030
7009
|
|
|
7031
7010
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
7032
|
-
import { z as
|
|
7011
|
+
import { z as z246 } from "zod";
|
|
7033
7012
|
var OverridesEndpoint = class {
|
|
7034
7013
|
constructor(requestExecutor) {
|
|
7035
7014
|
this.requestExecutor = requestExecutor;
|
|
@@ -7037,7 +7016,7 @@ var OverridesEndpoint = class {
|
|
|
7037
7016
|
create(dsId, versionId, themeId, body) {
|
|
7038
7017
|
return this.requestExecutor.json(
|
|
7039
7018
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
7040
|
-
|
|
7019
|
+
z246.any(),
|
|
7041
7020
|
{
|
|
7042
7021
|
method: "POST",
|
|
7043
7022
|
body
|
|
@@ -7047,6 +7026,7 @@ var OverridesEndpoint = class {
|
|
|
7047
7026
|
};
|
|
7048
7027
|
|
|
7049
7028
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7029
|
+
import { z as z247 } from "zod";
|
|
7050
7030
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
7051
7031
|
constructor(requestExecutor) {
|
|
7052
7032
|
this.requestExecutor = requestExecutor;
|
|
@@ -7064,6 +7044,20 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
7064
7044
|
{ method: "POST", body }
|
|
7065
7045
|
);
|
|
7066
7046
|
}
|
|
7047
|
+
update(designSystemId, versionId, defId, body) {
|
|
7048
|
+
return this.requestExecutor.json(
|
|
7049
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7050
|
+
DTOElementPropertyDefinitionResponse,
|
|
7051
|
+
{ method: "PUT", body }
|
|
7052
|
+
);
|
|
7053
|
+
}
|
|
7054
|
+
delete(designSystemId, versionId, defId) {
|
|
7055
|
+
return this.requestExecutor.json(
|
|
7056
|
+
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7057
|
+
z247.any(),
|
|
7058
|
+
{ method: "DELETE" }
|
|
7059
|
+
);
|
|
7060
|
+
}
|
|
7067
7061
|
};
|
|
7068
7062
|
|
|
7069
7063
|
// src/api/endpoints/design-system/versions/property-values.ts
|
|
@@ -7099,7 +7093,7 @@ var VersionStatsEndpoint = class {
|
|
|
7099
7093
|
};
|
|
7100
7094
|
|
|
7101
7095
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
7102
|
-
import { z as
|
|
7096
|
+
import { z as z248 } from "zod";
|
|
7103
7097
|
var ThemesEndpoint = class {
|
|
7104
7098
|
constructor(requestExecutor) {
|
|
7105
7099
|
this.requestExecutor = requestExecutor;
|
|
@@ -7122,7 +7116,7 @@ var ThemesEndpoint = class {
|
|
|
7122
7116
|
});
|
|
7123
7117
|
}
|
|
7124
7118
|
delete(dsId, versionId, themeId) {
|
|
7125
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
7119
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z248.any(), {
|
|
7126
7120
|
method: "DELETE"
|
|
7127
7121
|
});
|
|
7128
7122
|
}
|
|
@@ -7215,6 +7209,18 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7215
7209
|
list(dsId) {
|
|
7216
7210
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
|
|
7217
7211
|
}
|
|
7212
|
+
commit(dsId, body) {
|
|
7213
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/head/commit`, DTODesignSystemVersionCreationResponse, {
|
|
7214
|
+
method: "POST",
|
|
7215
|
+
body
|
|
7216
|
+
});
|
|
7217
|
+
}
|
|
7218
|
+
job(dsId, jobId) {
|
|
7219
|
+
return this.requestExecutor.json(
|
|
7220
|
+
`/design-systems/${dsId}/versions/jobs/${jobId}`,
|
|
7221
|
+
DTODesignSystemVersionJobStatusResponse
|
|
7222
|
+
);
|
|
7223
|
+
}
|
|
7218
7224
|
};
|
|
7219
7225
|
|
|
7220
7226
|
// src/api/endpoints/design-system/bff.ts
|
|
@@ -7243,7 +7249,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
7243
7249
|
};
|
|
7244
7250
|
|
|
7245
7251
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7246
|
-
import { z as
|
|
7252
|
+
import { z as z250 } from "zod";
|
|
7247
7253
|
|
|
7248
7254
|
// src/api/endpoints/design-system/members.ts
|
|
7249
7255
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -7264,7 +7270,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
7264
7270
|
};
|
|
7265
7271
|
|
|
7266
7272
|
// src/api/endpoints/design-system/sources.ts
|
|
7267
|
-
import { z as
|
|
7273
|
+
import { z as z249 } from "zod";
|
|
7268
7274
|
var DesignSystemSourcesEndpoint = class {
|
|
7269
7275
|
constructor(requestExecutor) {
|
|
7270
7276
|
this.requestExecutor = requestExecutor;
|
|
@@ -7273,7 +7279,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7273
7279
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
7274
7280
|
}
|
|
7275
7281
|
delete(dsId, sourceId) {
|
|
7276
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
7282
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z249.any(), { method: "DELETE" });
|
|
7277
7283
|
}
|
|
7278
7284
|
};
|
|
7279
7285
|
|
|
@@ -7302,7 +7308,7 @@ var DesignSystemsEndpoint = class {
|
|
|
7302
7308
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
7303
7309
|
}
|
|
7304
7310
|
delete(dsId) {
|
|
7305
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
7311
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z250.any(), { method: "DELETE" });
|
|
7306
7312
|
}
|
|
7307
7313
|
update(dsId, body) {
|
|
7308
7314
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -7346,7 +7352,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
7346
7352
|
};
|
|
7347
7353
|
|
|
7348
7354
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
7349
|
-
import { z as
|
|
7355
|
+
import { z as z251 } from "zod";
|
|
7350
7356
|
var WorkspaceMembersEndpoint = class {
|
|
7351
7357
|
constructor(requestExecutor) {
|
|
7352
7358
|
this.requestExecutor = requestExecutor;
|
|
@@ -7363,7 +7369,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7363
7369
|
});
|
|
7364
7370
|
}
|
|
7365
7371
|
invite(workspaceId, body) {
|
|
7366
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
7372
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z251.any(), { method: "POST", body });
|
|
7367
7373
|
}
|
|
7368
7374
|
delete(workspaceId, userId) {
|
|
7369
7375
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -7373,7 +7379,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7373
7379
|
};
|
|
7374
7380
|
|
|
7375
7381
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
7376
|
-
import { z as
|
|
7382
|
+
import { z as z252 } from "zod";
|
|
7377
7383
|
var WorkspacesEndpoint = class {
|
|
7378
7384
|
constructor(requestExecutor) {
|
|
7379
7385
|
this.requestExecutor = requestExecutor;
|
|
@@ -7396,10 +7402,10 @@ var WorkspacesEndpoint = class {
|
|
|
7396
7402
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
7397
7403
|
}
|
|
7398
7404
|
delete(workspaceId) {
|
|
7399
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
7405
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z252.any(), { method: "DELETE" });
|
|
7400
7406
|
}
|
|
7401
7407
|
subscription(workspaceId) {
|
|
7402
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
7408
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z252.any(), { method: "GET" });
|
|
7403
7409
|
}
|
|
7404
7410
|
};
|
|
7405
7411
|
|
|
@@ -7480,9 +7486,9 @@ ${bodyText}`,
|
|
|
7480
7486
|
|
|
7481
7487
|
// src/api/transport/request-executor.ts
|
|
7482
7488
|
import fetch from "node-fetch";
|
|
7483
|
-
import { z as
|
|
7484
|
-
var ResponseWrapper =
|
|
7485
|
-
result:
|
|
7489
|
+
import { z as z253 } from "zod";
|
|
7490
|
+
var ResponseWrapper = z253.object({
|
|
7491
|
+
result: z253.record(z253.any())
|
|
7486
7492
|
});
|
|
7487
7493
|
var RequestExecutor = class {
|
|
7488
7494
|
constructor(testServerConfig) {
|
|
@@ -7514,8 +7520,11 @@ var RequestExecutor = class {
|
|
|
7514
7520
|
const bodyString = await response.text();
|
|
7515
7521
|
throw RequestExecutorError.serverError(endpoint, response.status, bodyString);
|
|
7516
7522
|
}
|
|
7517
|
-
const
|
|
7523
|
+
const json = await response.json();
|
|
7524
|
+
const wrapperParseResult = ResponseWrapper.safeParse(json);
|
|
7518
7525
|
if (!wrapperParseResult.success) {
|
|
7526
|
+
console.error(`Response was:`);
|
|
7527
|
+
console.error(json);
|
|
7519
7528
|
throw RequestExecutorError.responseParsingError(endpoint, wrapperParseResult.error);
|
|
7520
7529
|
}
|
|
7521
7530
|
const responseParseResult = schema.safeParse(wrapperParseResult.data.result);
|
|
@@ -7610,7 +7619,7 @@ function generateHash(input, debug = false) {
|
|
|
7610
7619
|
}
|
|
7611
7620
|
|
|
7612
7621
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7613
|
-
import { z as
|
|
7622
|
+
import { z as z254 } from "zod";
|
|
7614
7623
|
|
|
7615
7624
|
// src/yjs/version-room/base.ts
|
|
7616
7625
|
var VersionRoomBaseYDoc = class {
|
|
@@ -8140,24 +8149,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8140
8149
|
};
|
|
8141
8150
|
|
|
8142
8151
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8143
|
-
var DocumentationHierarchySettings =
|
|
8144
|
-
routingVersion:
|
|
8145
|
-
isDraftFeatureAdopted:
|
|
8146
|
-
isApprovalFeatureEnabled:
|
|
8147
|
-
approvalRequiredForPublishing:
|
|
8152
|
+
var DocumentationHierarchySettings = z254.object({
|
|
8153
|
+
routingVersion: z254.string(),
|
|
8154
|
+
isDraftFeatureAdopted: z254.boolean(),
|
|
8155
|
+
isApprovalFeatureEnabled: z254.boolean(),
|
|
8156
|
+
approvalRequiredForPublishing: z254.boolean()
|
|
8148
8157
|
});
|
|
8149
8158
|
function yjsToDocumentationHierarchy(doc) {
|
|
8150
8159
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
8151
8160
|
}
|
|
8152
8161
|
|
|
8153
8162
|
// src/yjs/design-system-content/item-configuration.ts
|
|
8154
|
-
import { z as
|
|
8155
|
-
var DTODocumentationPageRoomHeaderData =
|
|
8156
|
-
title:
|
|
8163
|
+
import { z as z255 } from "zod";
|
|
8164
|
+
var DTODocumentationPageRoomHeaderData = z255.object({
|
|
8165
|
+
title: z255.string(),
|
|
8157
8166
|
configuration: DTODocumentationItemConfigurationV2
|
|
8158
8167
|
});
|
|
8159
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
8160
|
-
title:
|
|
8168
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z255.object({
|
|
8169
|
+
title: z255.string().optional(),
|
|
8161
8170
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
8162
8171
|
});
|
|
8163
8172
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -8208,7 +8217,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
8208
8217
|
header: rawHeader
|
|
8209
8218
|
};
|
|
8210
8219
|
return {
|
|
8211
|
-
title:
|
|
8220
|
+
title: z255.string().parse(title),
|
|
8212
8221
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
8213
8222
|
};
|
|
8214
8223
|
}
|
|
@@ -8218,9 +8227,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
8218
8227
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
8219
8228
|
|
|
8220
8229
|
// src/yjs/docs-editor/model/page.ts
|
|
8221
|
-
import { z as
|
|
8222
|
-
var DocumentationPageEditorModel =
|
|
8223
|
-
blocks:
|
|
8230
|
+
import { z as z256 } from "zod";
|
|
8231
|
+
var DocumentationPageEditorModel = z256.object({
|
|
8232
|
+
blocks: z256.array(DocumentationPageContentItem)
|
|
8224
8233
|
});
|
|
8225
8234
|
|
|
8226
8235
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -11741,7 +11750,7 @@ var blocks = [
|
|
|
11741
11750
|
|
|
11742
11751
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
11743
11752
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
11744
|
-
import { z as
|
|
11753
|
+
import { z as z257 } from "zod";
|
|
11745
11754
|
function yDocToPage(yDoc, definitions) {
|
|
11746
11755
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
11747
11756
|
}
|
|
@@ -11821,7 +11830,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
11821
11830
|
return null;
|
|
11822
11831
|
return {
|
|
11823
11832
|
id,
|
|
11824
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
11833
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z257.string()) ?? "",
|
|
11825
11834
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
11826
11835
|
};
|
|
11827
11836
|
}
|
|
@@ -11856,7 +11865,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11856
11865
|
});
|
|
11857
11866
|
}
|
|
11858
11867
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11859
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11868
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z257.string());
|
|
11860
11869
|
if (!definitionId) {
|
|
11861
11870
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11862
11871
|
return [];
|
|
@@ -11898,7 +11907,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11898
11907
|
if (!id)
|
|
11899
11908
|
return null;
|
|
11900
11909
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11901
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11910
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z257.string().optional()));
|
|
11902
11911
|
return {
|
|
11903
11912
|
id,
|
|
11904
11913
|
type: "Block",
|
|
@@ -12026,10 +12035,10 @@ function parseRichTextAttribute(mark) {
|
|
|
12026
12035
|
return null;
|
|
12027
12036
|
}
|
|
12028
12037
|
function parseProsemirrorLink(mark) {
|
|
12029
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
12038
|
+
const href = getProsemirrorAttribute(mark, "href", z257.string().optional());
|
|
12030
12039
|
if (!href)
|
|
12031
12040
|
return null;
|
|
12032
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
12041
|
+
const target = getProsemirrorAttribute(mark, "target", z257.string().optional());
|
|
12033
12042
|
const openInNewTab = target === "_blank";
|
|
12034
12043
|
if (href.startsWith("@")) {
|
|
12035
12044
|
return {
|
|
@@ -12048,10 +12057,10 @@ function parseProsemirrorLink(mark) {
|
|
|
12048
12057
|
}
|
|
12049
12058
|
}
|
|
12050
12059
|
function parseProsemirrorCommentHighlight(mark) {
|
|
12051
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
12060
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z257.string().optional());
|
|
12052
12061
|
if (!highlightId)
|
|
12053
12062
|
return null;
|
|
12054
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
12063
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z257.boolean().optional()) ?? false;
|
|
12055
12064
|
return {
|
|
12056
12065
|
type: "Comment",
|
|
12057
12066
|
commentHighlightId: highlightId,
|
|
@@ -12063,7 +12072,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
12063
12072
|
if (!id)
|
|
12064
12073
|
return null;
|
|
12065
12074
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12066
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
12075
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z257.boolean().optional()) !== false;
|
|
12067
12076
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
12068
12077
|
if (!tableChild) {
|
|
12069
12078
|
return emptyTable(id, variantId, 0);
|
|
@@ -12110,9 +12119,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
12110
12119
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
12111
12120
|
if (!id)
|
|
12112
12121
|
return null;
|
|
12113
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
12122
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z257.string().optional());
|
|
12114
12123
|
let columnWidth;
|
|
12115
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
12124
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z257.array(z257.number()).nullish());
|
|
12116
12125
|
if (columnWidthArray) {
|
|
12117
12126
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
12118
12127
|
}
|
|
@@ -12150,7 +12159,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
12150
12159
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
12151
12160
|
};
|
|
12152
12161
|
case "image":
|
|
12153
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12162
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z257.string());
|
|
12154
12163
|
if (!items)
|
|
12155
12164
|
return null;
|
|
12156
12165
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -12270,7 +12279,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
12270
12279
|
);
|
|
12271
12280
|
}
|
|
12272
12281
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
12273
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12282
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z257.string());
|
|
12274
12283
|
if (!itemsString)
|
|
12275
12284
|
return null;
|
|
12276
12285
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -12282,18 +12291,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
12282
12291
|
}
|
|
12283
12292
|
function parseAppearance(prosemirrorNode) {
|
|
12284
12293
|
let appearance = {};
|
|
12285
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
12294
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z257.string().optional());
|
|
12286
12295
|
if (rawAppearanceString) {
|
|
12287
12296
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
12288
12297
|
if (parsedAppearance.success) {
|
|
12289
12298
|
appearance = parsedAppearance.data;
|
|
12290
12299
|
}
|
|
12291
12300
|
}
|
|
12292
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
12301
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z257.number().optional());
|
|
12293
12302
|
if (columns) {
|
|
12294
12303
|
appearance.numberOfColumns = columns;
|
|
12295
12304
|
}
|
|
12296
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
12305
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z257.string().optional());
|
|
12297
12306
|
if (backgroundColor) {
|
|
12298
12307
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
12299
12308
|
if (parsedColor.success) {
|
|
@@ -12388,13 +12397,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
12388
12397
|
}
|
|
12389
12398
|
}
|
|
12390
12399
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
12391
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
12400
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z257.string());
|
|
12392
12401
|
if (!id)
|
|
12393
12402
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
12394
12403
|
return id;
|
|
12395
12404
|
}
|
|
12396
12405
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
12397
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
12406
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z257.string()));
|
|
12398
12407
|
}
|
|
12399
12408
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
12400
12409
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -12471,6 +12480,7 @@ export {
|
|
|
12471
12480
|
DTOBrandCreateResponse,
|
|
12472
12481
|
DTOBrandGetResponse,
|
|
12473
12482
|
DTOBrandsListResponse,
|
|
12483
|
+
DTOColorTokenInlineData,
|
|
12474
12484
|
DTOCreateBrandInput,
|
|
12475
12485
|
DTOCreateDocumentationGroupInput,
|
|
12476
12486
|
DTOCreateDocumentationPageInputV2,
|
|
@@ -12581,8 +12591,8 @@ export {
|
|
|
12581
12591
|
DTOElementActionOutput,
|
|
12582
12592
|
DTOElementPropertyDefinition,
|
|
12583
12593
|
DTOElementPropertyDefinitionCreatePayload,
|
|
12584
|
-
DTOElementPropertyDefinitionDeletePayload,
|
|
12585
12594
|
DTOElementPropertyDefinitionListResponse,
|
|
12595
|
+
DTOElementPropertyDefinitionOption,
|
|
12586
12596
|
DTOElementPropertyDefinitionResponse,
|
|
12587
12597
|
DTOElementPropertyDefinitionUpdatePayload,
|
|
12588
12598
|
DTOElementPropertyValue,
|
|
@@ -12648,6 +12658,7 @@ export {
|
|
|
12648
12658
|
DTOMoveDocumentationPageInputV2,
|
|
12649
12659
|
DTONpmRegistryConfig,
|
|
12650
12660
|
DTONpmRegistryConfigConstants,
|
|
12661
|
+
DTOObjectMeta,
|
|
12651
12662
|
DTOPageBlockColorV2,
|
|
12652
12663
|
DTOPageBlockDefinition,
|
|
12653
12664
|
DTOPageBlockDefinitionBehavior,
|
|
@@ -12664,12 +12675,6 @@ export {
|
|
|
12664
12675
|
DTOPipelineResponse,
|
|
12665
12676
|
DTOPipelineTriggerBody,
|
|
12666
12677
|
DTOPipelineUpdateBody,
|
|
12667
|
-
DTOPropertyDefinitionCreateActionInputV2,
|
|
12668
|
-
DTOPropertyDefinitionCreateActionOutputV2,
|
|
12669
|
-
DTOPropertyDefinitionDeleteActionInputV2,
|
|
12670
|
-
DTOPropertyDefinitionDeleteActionOutputV2,
|
|
12671
|
-
DTOPropertyDefinitionUpdateActionInputV2,
|
|
12672
|
-
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
12673
12678
|
DTOPublishDocumentationChanges,
|
|
12674
12679
|
DTOPublishDocumentationRequest,
|
|
12675
12680
|
DTOPublishDocumentationResponse,
|