@supernova-studio/client 0.58.5 → 0.58.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +544 -185
- package/dist/index.d.ts +544 -185
- package/dist/index.js +88 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +972 -921
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/properties/property-definitions.ts +3 -0
package/dist/index.mjs
CHANGED
|
@@ -1481,6 +1481,7 @@ var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
|
1481
1481
|
var ElementPropertyTypeSchema = z35.enum(["Text", "Number", "Boolean", "Select", "Generic", "Link", "URL"]);
|
|
1482
1482
|
var ElementPropertyTargetType = z35.enum(["Token", "Component", "DocumentationPage"]);
|
|
1483
1483
|
var ElementPropertyLinkType = z35.enum(["FigmaComponent", "DocumentationPage"]);
|
|
1484
|
+
var ElementPropertyImmutableType = z35.enum(["Collection"]);
|
|
1484
1485
|
var CODE_NAME_REGEX = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
1485
1486
|
var ColorTokenInlineData = z35.object({
|
|
1486
1487
|
value: z35.string()
|
|
@@ -2819,7 +2820,8 @@ var DesignTokenOriginPart = z85.object({
|
|
|
2819
2820
|
referenceOriginRemote: z85.boolean().optional(),
|
|
2820
2821
|
referencePersistentId: z85.string().optional(),
|
|
2821
2822
|
referenceResolutionFailed: z85.boolean().optional(),
|
|
2822
|
-
key: z85.string().optional()
|
|
2823
|
+
key: z85.string().optional(),
|
|
2824
|
+
sortOrder: z85.number().optional()
|
|
2823
2825
|
});
|
|
2824
2826
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
2825
2827
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -5150,7 +5152,7 @@ var DTOPagination = z179.object({
|
|
|
5150
5152
|
});
|
|
5151
5153
|
|
|
5152
5154
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5153
|
-
import { z as
|
|
5155
|
+
import { z as z213 } from "zod";
|
|
5154
5156
|
|
|
5155
5157
|
// src/api/dto/design-systems/brand.ts
|
|
5156
5158
|
import { z as z180 } from "zod";
|
|
@@ -5166,25 +5168,34 @@ var DTOBrandCreateResponse = z180.object({
|
|
|
5166
5168
|
});
|
|
5167
5169
|
var DTOBrandsListResponse = z180.object({ brands: z180.array(DTOBrand) });
|
|
5168
5170
|
|
|
5171
|
+
// src/api/dto/design-systems/component.ts
|
|
5172
|
+
import { z as z181 } from "zod";
|
|
5173
|
+
var DTODesignSystemComponentCreateInput = z181.object({
|
|
5174
|
+
brandId: z181.string(),
|
|
5175
|
+
// Persistent ID,
|
|
5176
|
+
persistentId: z181.string(),
|
|
5177
|
+
meta: ObjectMeta
|
|
5178
|
+
});
|
|
5179
|
+
|
|
5169
5180
|
// src/api/dto/design-systems/contact.ts
|
|
5170
|
-
import { z as
|
|
5181
|
+
import { z as z185 } from "zod";
|
|
5171
5182
|
|
|
5172
5183
|
// src/api/dto/users/authenticated-user.ts
|
|
5173
|
-
import { z as
|
|
5184
|
+
import { z as z183 } from "zod";
|
|
5174
5185
|
|
|
5175
5186
|
// src/api/dto/users/user.ts
|
|
5176
|
-
import { z as
|
|
5177
|
-
var DTOUserProfile =
|
|
5178
|
-
name:
|
|
5179
|
-
nickname:
|
|
5180
|
-
avatar:
|
|
5181
|
-
});
|
|
5182
|
-
var DTOUser =
|
|
5183
|
-
id:
|
|
5184
|
-
email:
|
|
5187
|
+
import { z as z182 } from "zod";
|
|
5188
|
+
var DTOUserProfile = z182.object({
|
|
5189
|
+
name: z182.string(),
|
|
5190
|
+
nickname: z182.string().optional(),
|
|
5191
|
+
avatar: z182.string().optional()
|
|
5192
|
+
});
|
|
5193
|
+
var DTOUser = z182.object({
|
|
5194
|
+
id: z182.string(),
|
|
5195
|
+
email: z182.string(),
|
|
5185
5196
|
profile: DTOUserProfile
|
|
5186
5197
|
});
|
|
5187
|
-
var DTOUserGetResponse =
|
|
5198
|
+
var DTOUserGetResponse = z182.object({
|
|
5188
5199
|
user: DTOUser
|
|
5189
5200
|
});
|
|
5190
5201
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -5193,146 +5204,146 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
5193
5204
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
5194
5205
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5195
5206
|
var DTOUserSource = UserSource;
|
|
5196
|
-
var DTOUserOnboarding =
|
|
5197
|
-
companyName:
|
|
5198
|
-
numberOfPeopleInOrg:
|
|
5199
|
-
numberOfPeopleInDesignTeam:
|
|
5207
|
+
var DTOUserOnboarding = z183.object({
|
|
5208
|
+
companyName: z183.string().optional(),
|
|
5209
|
+
numberOfPeopleInOrg: z183.string().optional(),
|
|
5210
|
+
numberOfPeopleInDesignTeam: z183.string().optional(),
|
|
5200
5211
|
department: DTOUserOnboardingDepartment.optional(),
|
|
5201
|
-
jobTitle:
|
|
5202
|
-
phase:
|
|
5212
|
+
jobTitle: z183.string().optional(),
|
|
5213
|
+
phase: z183.string().optional(),
|
|
5203
5214
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
5204
|
-
designSystemName:
|
|
5205
|
-
defaultDestination:
|
|
5206
|
-
isPageDraftOnboardingFinished:
|
|
5215
|
+
designSystemName: z183.string().optional(),
|
|
5216
|
+
defaultDestination: z183.string().optional(),
|
|
5217
|
+
isPageDraftOnboardingFinished: z183.boolean().optional()
|
|
5207
5218
|
});
|
|
5208
5219
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5209
5220
|
onboarding: DTOUserOnboarding.optional()
|
|
5210
5221
|
});
|
|
5211
5222
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5212
5223
|
profile: DTOAuthenticatedUserProfile,
|
|
5213
|
-
createdAt:
|
|
5214
|
-
loggedOutAt:
|
|
5224
|
+
createdAt: z183.coerce.date(),
|
|
5225
|
+
loggedOutAt: z183.coerce.date().optional(),
|
|
5215
5226
|
source: DTOUserSource.optional()
|
|
5216
5227
|
});
|
|
5217
|
-
var DTOAuthenticatedUserResponse =
|
|
5228
|
+
var DTOAuthenticatedUserResponse = z183.object({
|
|
5218
5229
|
user: DTOAuthenticatedUser
|
|
5219
5230
|
});
|
|
5220
5231
|
|
|
5221
5232
|
// src/api/dto/users/update.ts
|
|
5222
|
-
import { z as
|
|
5223
|
-
var DTOUserProfileUpdateResponse =
|
|
5233
|
+
import { z as z184 } from "zod";
|
|
5234
|
+
var DTOUserProfileUpdateResponse = z184.object({
|
|
5224
5235
|
user: User
|
|
5225
5236
|
});
|
|
5226
5237
|
|
|
5227
5238
|
// src/api/dto/design-systems/contact.ts
|
|
5228
|
-
var DTODesignSystemContactsResponse =
|
|
5229
|
-
contacts:
|
|
5230
|
-
workspace:
|
|
5231
|
-
designSystem:
|
|
5239
|
+
var DTODesignSystemContactsResponse = z185.object({
|
|
5240
|
+
contacts: z185.object({
|
|
5241
|
+
workspace: z185.array(DTOUser),
|
|
5242
|
+
designSystem: z185.array(DTOUser)
|
|
5232
5243
|
})
|
|
5233
5244
|
});
|
|
5234
5245
|
|
|
5235
5246
|
// src/api/dto/design-systems/data-source.ts
|
|
5236
|
-
import { z as
|
|
5237
|
-
var DTODataSourceFigmaFileVersion =
|
|
5238
|
-
id:
|
|
5239
|
-
created_at:
|
|
5240
|
-
label:
|
|
5241
|
-
description:
|
|
5242
|
-
});
|
|
5243
|
-
var DTODataSourceFigmaCloud =
|
|
5244
|
-
fileId:
|
|
5247
|
+
import { z as z186 } from "zod";
|
|
5248
|
+
var DTODataSourceFigmaFileVersion = z186.object({
|
|
5249
|
+
id: z186.string(),
|
|
5250
|
+
created_at: z186.coerce.date(),
|
|
5251
|
+
label: z186.string(),
|
|
5252
|
+
description: z186.string()
|
|
5253
|
+
});
|
|
5254
|
+
var DTODataSourceFigmaCloud = z186.object({
|
|
5255
|
+
fileId: z186.string(),
|
|
5245
5256
|
state: DataSourceFigmaState,
|
|
5246
5257
|
autoImportMode: DataSourceAutoImportMode,
|
|
5247
|
-
fileThumbnailUrl:
|
|
5258
|
+
fileThumbnailUrl: z186.string().optional(),
|
|
5248
5259
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5249
|
-
lastImportedAt:
|
|
5260
|
+
lastImportedAt: z186.coerce.date().nullish(),
|
|
5250
5261
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5251
|
-
lastUpdatesCheckedAt:
|
|
5252
|
-
ownerId:
|
|
5253
|
-
ownerUserName:
|
|
5254
|
-
preferredCredentialId:
|
|
5262
|
+
lastUpdatesCheckedAt: z186.date().nullish(),
|
|
5263
|
+
ownerId: z186.string(),
|
|
5264
|
+
ownerUserName: z186.string().optional(),
|
|
5265
|
+
preferredCredentialId: z186.string().optional(),
|
|
5255
5266
|
stats: DataSourceStats
|
|
5256
5267
|
});
|
|
5257
|
-
var DTODataSourceFigma =
|
|
5258
|
-
id:
|
|
5259
|
-
type:
|
|
5260
|
-
fileName:
|
|
5268
|
+
var DTODataSourceFigma = z186.object({
|
|
5269
|
+
id: z186.string(),
|
|
5270
|
+
type: z186.literal(DataSourceRemoteType.Enum.Figma),
|
|
5271
|
+
fileName: z186.string(),
|
|
5261
5272
|
scope: DataSourceFigmaScope,
|
|
5262
|
-
brandId:
|
|
5263
|
-
themeId:
|
|
5273
|
+
brandId: z186.string(),
|
|
5274
|
+
themeId: z186.string().nullish(),
|
|
5264
5275
|
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5265
5276
|
});
|
|
5266
|
-
var DTODataSourceTokenStudio =
|
|
5267
|
-
id:
|
|
5268
|
-
type:
|
|
5269
|
-
fileName:
|
|
5270
|
-
brandId:
|
|
5271
|
-
themeId:
|
|
5272
|
-
tokenStudio:
|
|
5273
|
-
settings:
|
|
5274
|
-
dryRun:
|
|
5275
|
-
verbose:
|
|
5276
|
-
preciseCopy:
|
|
5277
|
+
var DTODataSourceTokenStudio = z186.object({
|
|
5278
|
+
id: z186.string(),
|
|
5279
|
+
type: z186.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5280
|
+
fileName: z186.string(),
|
|
5281
|
+
brandId: z186.string(),
|
|
5282
|
+
themeId: z186.string().nullish(),
|
|
5283
|
+
tokenStudio: z186.object({
|
|
5284
|
+
settings: z186.object({
|
|
5285
|
+
dryRun: z186.boolean(),
|
|
5286
|
+
verbose: z186.boolean(),
|
|
5287
|
+
preciseCopy: z186.boolean()
|
|
5277
5288
|
}),
|
|
5278
|
-
connectionName:
|
|
5279
|
-
lastImportedAt:
|
|
5280
|
-
lastImportedResults:
|
|
5281
|
-
|
|
5282
|
-
mapping:
|
|
5283
|
-
tokenSets:
|
|
5284
|
-
supernovaBrand:
|
|
5285
|
-
supernovaTheme:
|
|
5289
|
+
connectionName: z186.string(),
|
|
5290
|
+
lastImportedAt: z186.coerce.date(),
|
|
5291
|
+
lastImportedResults: z186.array(
|
|
5292
|
+
z186.object({
|
|
5293
|
+
mapping: z186.object({
|
|
5294
|
+
tokenSets: z186.array(z186.string()),
|
|
5295
|
+
supernovaBrand: z186.string(),
|
|
5296
|
+
supernovaTheme: z186.string().optional()
|
|
5286
5297
|
}),
|
|
5287
|
-
isFailed:
|
|
5288
|
-
tokensCreated:
|
|
5289
|
-
tokensDeleted:
|
|
5290
|
-
tokensUpdated:
|
|
5298
|
+
isFailed: z186.boolean(),
|
|
5299
|
+
tokensCreated: z186.number(),
|
|
5300
|
+
tokensDeleted: z186.number(),
|
|
5301
|
+
tokensUpdated: z186.number()
|
|
5291
5302
|
})
|
|
5292
5303
|
)
|
|
5293
5304
|
})
|
|
5294
5305
|
});
|
|
5295
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5296
|
-
id:
|
|
5297
|
-
type:
|
|
5298
|
-
fileName:
|
|
5299
|
-
brandId:
|
|
5300
|
-
upload:
|
|
5301
|
-
remoteId:
|
|
5306
|
+
var DTODataSourceFigmaVariablesPlugin = z186.object({
|
|
5307
|
+
id: z186.string(),
|
|
5308
|
+
type: z186.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5309
|
+
fileName: z186.string(),
|
|
5310
|
+
brandId: z186.string(),
|
|
5311
|
+
upload: z186.object({
|
|
5312
|
+
remoteId: z186.string(),
|
|
5302
5313
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5303
|
-
lastImportedAt:
|
|
5314
|
+
lastImportedAt: z186.coerce.date().optional(),
|
|
5304
5315
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5305
|
-
isTokenTypeSplitEnabled:
|
|
5316
|
+
isTokenTypeSplitEnabled: z186.boolean()
|
|
5306
5317
|
}),
|
|
5307
|
-
figmaVariablesPlugin:
|
|
5308
|
-
fileId:
|
|
5309
|
-
lastImportedAt:
|
|
5318
|
+
figmaVariablesPlugin: z186.object({
|
|
5319
|
+
fileId: z186.string(),
|
|
5320
|
+
lastImportedAt: z186.coerce.date().optional(),
|
|
5310
5321
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5311
|
-
isTokenTypeSplitEnabled:
|
|
5312
|
-
isCollectionsMigrationCompleted:
|
|
5322
|
+
isTokenTypeSplitEnabled: z186.boolean(),
|
|
5323
|
+
isCollectionsMigrationCompleted: z186.boolean().default(false)
|
|
5313
5324
|
})
|
|
5314
5325
|
});
|
|
5315
|
-
var DTODataSource =
|
|
5326
|
+
var DTODataSource = z186.discriminatedUnion("type", [
|
|
5316
5327
|
DTODataSourceFigma,
|
|
5317
5328
|
DTODataSourceFigmaVariablesPlugin,
|
|
5318
5329
|
DTODataSourceTokenStudio
|
|
5319
5330
|
]);
|
|
5320
|
-
var DTODataSourcesListResponse =
|
|
5321
|
-
sources:
|
|
5331
|
+
var DTODataSourcesListResponse = z186.object({
|
|
5332
|
+
sources: z186.array(DTODataSource)
|
|
5322
5333
|
});
|
|
5323
|
-
var DTODataSourceCreationResponse =
|
|
5334
|
+
var DTODataSourceCreationResponse = z186.object({
|
|
5324
5335
|
source: DTODataSource
|
|
5325
5336
|
});
|
|
5326
5337
|
|
|
5327
5338
|
// src/api/dto/design-systems/design-system.ts
|
|
5328
|
-
import { z as
|
|
5339
|
+
import { z as z189 } from "zod";
|
|
5329
5340
|
|
|
5330
5341
|
// src/api/dto/design-systems/members.ts
|
|
5331
|
-
import { z as
|
|
5342
|
+
import { z as z188 } from "zod";
|
|
5332
5343
|
|
|
5333
5344
|
// src/api/dto/design-systems/role.ts
|
|
5334
|
-
import { z as
|
|
5335
|
-
var DTODesignSystemRole =
|
|
5345
|
+
import { z as z187 } from "zod";
|
|
5346
|
+
var DTODesignSystemRole = z187.enum([
|
|
5336
5347
|
WorkspaceRole.Admin,
|
|
5337
5348
|
WorkspaceRole.Contributor,
|
|
5338
5349
|
WorkspaceRole.Creator,
|
|
@@ -5340,29 +5351,29 @@ var DTODesignSystemRole = z186.enum([
|
|
|
5340
5351
|
]);
|
|
5341
5352
|
|
|
5342
5353
|
// src/api/dto/design-systems/members.ts
|
|
5343
|
-
var DTODesignSystemMember =
|
|
5344
|
-
userId:
|
|
5354
|
+
var DTODesignSystemMember = z188.object({
|
|
5355
|
+
userId: z188.string(),
|
|
5345
5356
|
/**
|
|
5346
5357
|
* Role that the member has in the design system,
|
|
5347
5358
|
* undefined if set to inherit from workspace
|
|
5348
5359
|
*/
|
|
5349
5360
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5350
5361
|
});
|
|
5351
|
-
var DTODesignSystemInvitation =
|
|
5352
|
-
id:
|
|
5353
|
-
workspaceInvitationId:
|
|
5362
|
+
var DTODesignSystemInvitation = z188.object({
|
|
5363
|
+
id: z188.string(),
|
|
5364
|
+
workspaceInvitationId: z188.string(),
|
|
5354
5365
|
/**
|
|
5355
5366
|
* Role that the invitation has in the design system,
|
|
5356
5367
|
* undefined if set to inherit from workspace
|
|
5357
5368
|
*/
|
|
5358
5369
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5359
5370
|
});
|
|
5360
|
-
var DTODesignSystemMemberListResponse =
|
|
5371
|
+
var DTODesignSystemMemberListResponse = z188.object({
|
|
5361
5372
|
members: DTODesignSystemMember.array(),
|
|
5362
5373
|
invitations: DTODesignSystemInvitation.array()
|
|
5363
5374
|
});
|
|
5364
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5365
|
-
ok:
|
|
5375
|
+
var DTODesignSystemMembersUpdateResponse = z188.object({
|
|
5376
|
+
ok: z188.literal(true)
|
|
5366
5377
|
});
|
|
5367
5378
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5368
5379
|
|
|
@@ -5373,14 +5384,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5373
5384
|
docExporterId: true
|
|
5374
5385
|
}).extend({
|
|
5375
5386
|
meta: ObjectMeta,
|
|
5376
|
-
docExporterId:
|
|
5377
|
-
sources:
|
|
5378
|
-
isPublic:
|
|
5387
|
+
docExporterId: z189.string(),
|
|
5388
|
+
sources: z189.array(z189.any()),
|
|
5389
|
+
isPublic: z189.literal(true),
|
|
5379
5390
|
/**
|
|
5380
5391
|
* Whether or not user who is requesting the design system
|
|
5381
5392
|
* has access to the design system's contents.
|
|
5382
5393
|
*/
|
|
5383
|
-
isAvailableToUser:
|
|
5394
|
+
isAvailableToUser: z189.boolean(),
|
|
5384
5395
|
/**
|
|
5385
5396
|
* @deprecated
|
|
5386
5397
|
*/
|
|
@@ -5391,17 +5402,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5391
5402
|
*/
|
|
5392
5403
|
effectiveRole: DTODesignSystemRole.optional()
|
|
5393
5404
|
});
|
|
5394
|
-
var DTODesignSystemResponse =
|
|
5405
|
+
var DTODesignSystemResponse = z189.object({
|
|
5395
5406
|
designSystem: DTODesignSystem
|
|
5396
5407
|
});
|
|
5397
|
-
var DTODesignSystemsListResponse =
|
|
5408
|
+
var DTODesignSystemsListResponse = z189.object({
|
|
5398
5409
|
designSystems: DTODesignSystem.array()
|
|
5399
5410
|
});
|
|
5400
|
-
var DTODesignSystemCreateInput =
|
|
5401
|
-
workspaceId:
|
|
5411
|
+
var DTODesignSystemCreateInput = z189.object({
|
|
5412
|
+
workspaceId: z189.string(),
|
|
5402
5413
|
meta: ObjectMeta.optional(),
|
|
5403
|
-
name:
|
|
5404
|
-
description:
|
|
5414
|
+
name: z189.string().min(2).max(64).optional(),
|
|
5415
|
+
description: z189.string().max(1024).optional(),
|
|
5405
5416
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5406
5417
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
5407
5418
|
usersToInvite: true,
|
|
@@ -5411,25 +5422,25 @@ var DTODesignSystemCreateInput = z188.object({
|
|
|
5411
5422
|
});
|
|
5412
5423
|
|
|
5413
5424
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5414
|
-
import { z as
|
|
5415
|
-
var DTODiffCountBase =
|
|
5416
|
-
created:
|
|
5417
|
-
updated:
|
|
5418
|
-
deleted:
|
|
5425
|
+
import { z as z190 } from "zod";
|
|
5426
|
+
var DTODiffCountBase = z190.object({
|
|
5427
|
+
created: z190.number(),
|
|
5428
|
+
updated: z190.number(),
|
|
5429
|
+
deleted: z190.number()
|
|
5419
5430
|
});
|
|
5420
|
-
var DTODesignElementsDataDiffResponse =
|
|
5431
|
+
var DTODesignElementsDataDiffResponse = z190.object({
|
|
5421
5432
|
tokens: DTODiffCountBase,
|
|
5422
5433
|
assets: DTODiffCountBase
|
|
5423
5434
|
});
|
|
5424
5435
|
|
|
5425
5436
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5426
|
-
import { z as
|
|
5427
|
-
var DTOExporterProperty =
|
|
5428
|
-
var DTOExporterPropertyListResponse =
|
|
5437
|
+
import { z as z191 } from "zod";
|
|
5438
|
+
var DTOExporterProperty = z191.any({});
|
|
5439
|
+
var DTOExporterPropertyListResponse = z191.object({ items: z191.array(DTOExporterProperty) });
|
|
5429
5440
|
|
|
5430
5441
|
// src/api/dto/design-systems/figma-variables.ts
|
|
5431
|
-
import { z as
|
|
5432
|
-
var DimensionsVariableScopeSchema =
|
|
5442
|
+
import { z as z192 } from "zod";
|
|
5443
|
+
var DimensionsVariableScopeSchema = z192.enum([
|
|
5433
5444
|
"CORNER_RADIUS",
|
|
5434
5445
|
"WIDTH_HEIGHT",
|
|
5435
5446
|
"GAP",
|
|
@@ -5443,130 +5454,130 @@ var DimensionsVariableScopeSchema = z191.enum([
|
|
|
5443
5454
|
"PARAGRAPH_INDENT",
|
|
5444
5455
|
"FONT_WEIGHT"
|
|
5445
5456
|
]);
|
|
5446
|
-
var StringVariableScopeSchema =
|
|
5457
|
+
var StringVariableScopeSchema = z192.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
5447
5458
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
5448
5459
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
5449
|
-
var VariableScope =
|
|
5450
|
-
var ReferencedVariableOrigin =
|
|
5451
|
-
name:
|
|
5452
|
-
remote:
|
|
5460
|
+
var VariableScope = z192.string();
|
|
5461
|
+
var ReferencedVariableOrigin = z192.object({
|
|
5462
|
+
name: z192.string(),
|
|
5463
|
+
remote: z192.boolean()
|
|
5453
5464
|
});
|
|
5454
|
-
var RGB =
|
|
5455
|
-
r:
|
|
5456
|
-
g:
|
|
5457
|
-
b:
|
|
5465
|
+
var RGB = z192.object({
|
|
5466
|
+
r: z192.number(),
|
|
5467
|
+
g: z192.number(),
|
|
5468
|
+
b: z192.number()
|
|
5458
5469
|
});
|
|
5459
5470
|
var RGBA = RGB.extend({
|
|
5460
|
-
a:
|
|
5461
|
-
});
|
|
5462
|
-
var VariableAlias =
|
|
5463
|
-
type:
|
|
5464
|
-
id:
|
|
5465
|
-
resolvedValue:
|
|
5466
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
5467
|
-
});
|
|
5468
|
-
var VariableValue =
|
|
5469
|
-
var ResolvedVariableType =
|
|
5470
|
-
var Variable =
|
|
5471
|
-
id:
|
|
5472
|
-
name:
|
|
5473
|
-
key:
|
|
5474
|
-
variableCollectionId:
|
|
5471
|
+
a: z192.number()
|
|
5472
|
+
});
|
|
5473
|
+
var VariableAlias = z192.object({
|
|
5474
|
+
type: z192.literal("VARIABLE_ALIAS"),
|
|
5475
|
+
id: z192.string(),
|
|
5476
|
+
resolvedValue: z192.boolean().or(z192.number()).or(z192.string()).or(RGBA).or(RGB).optional(),
|
|
5477
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z192.null())
|
|
5478
|
+
});
|
|
5479
|
+
var VariableValue = z192.boolean().or(z192.number()).or(z192.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
5480
|
+
var ResolvedVariableType = z192.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
5481
|
+
var Variable = z192.object({
|
|
5482
|
+
id: z192.string(),
|
|
5483
|
+
name: z192.string(),
|
|
5484
|
+
key: z192.string(),
|
|
5485
|
+
variableCollectionId: z192.string(),
|
|
5475
5486
|
resolvedType: ResolvedVariableType,
|
|
5476
|
-
valuesByMode:
|
|
5477
|
-
remote:
|
|
5478
|
-
description:
|
|
5479
|
-
hiddenFromPublishing:
|
|
5480
|
-
scopes:
|
|
5481
|
-
codeSyntax:
|
|
5482
|
-
});
|
|
5483
|
-
var VariableMode =
|
|
5484
|
-
modeId:
|
|
5485
|
-
name:
|
|
5486
|
-
});
|
|
5487
|
-
var Collection2 =
|
|
5488
|
-
id:
|
|
5489
|
-
name:
|
|
5490
|
-
modes:
|
|
5491
|
-
defaultModeId:
|
|
5492
|
-
remote:
|
|
5493
|
-
hiddenFromPublishing:
|
|
5494
|
-
});
|
|
5495
|
-
var VariablesMapping =
|
|
5496
|
-
variableCollections:
|
|
5497
|
-
variableMode:
|
|
5498
|
-
supernovaBrand:
|
|
5499
|
-
supernovaTheme:
|
|
5500
|
-
});
|
|
5501
|
-
var FormattedCollections =
|
|
5502
|
-
variables:
|
|
5503
|
-
variableCollections:
|
|
5504
|
-
mappings:
|
|
5505
|
-
variablesOrder:
|
|
5487
|
+
valuesByMode: z192.record(VariableValue),
|
|
5488
|
+
remote: z192.boolean(),
|
|
5489
|
+
description: z192.string(),
|
|
5490
|
+
hiddenFromPublishing: z192.boolean(),
|
|
5491
|
+
scopes: z192.array(VariableScope),
|
|
5492
|
+
codeSyntax: z192.record(z192.any()).optional()
|
|
5493
|
+
});
|
|
5494
|
+
var VariableMode = z192.object({
|
|
5495
|
+
modeId: z192.string(),
|
|
5496
|
+
name: z192.string()
|
|
5497
|
+
});
|
|
5498
|
+
var Collection2 = z192.object({
|
|
5499
|
+
id: z192.string(),
|
|
5500
|
+
name: z192.string(),
|
|
5501
|
+
modes: z192.array(VariableMode),
|
|
5502
|
+
defaultModeId: z192.string(),
|
|
5503
|
+
remote: z192.boolean(),
|
|
5504
|
+
hiddenFromPublishing: z192.boolean()
|
|
5505
|
+
});
|
|
5506
|
+
var VariablesMapping = z192.object({
|
|
5507
|
+
variableCollections: z192.array(z192.string()).min(1),
|
|
5508
|
+
variableMode: z192.string().min(1),
|
|
5509
|
+
supernovaBrand: z192.string().min(1),
|
|
5510
|
+
supernovaTheme: z192.string().min(1).optional().or(z192.null())
|
|
5511
|
+
});
|
|
5512
|
+
var FormattedCollections = z192.object({
|
|
5513
|
+
variables: z192.record(z192.string(), Variable),
|
|
5514
|
+
variableCollections: z192.record(z192.string(), Collection2),
|
|
5515
|
+
mappings: z192.array(VariablesMapping).optional(),
|
|
5516
|
+
variablesOrder: z192.string().array().optional()
|
|
5506
5517
|
});
|
|
5507
5518
|
|
|
5508
5519
|
// src/api/dto/design-systems/import-job.ts
|
|
5509
|
-
import { z as
|
|
5510
|
-
var DTOImportJob =
|
|
5511
|
-
id:
|
|
5512
|
-
designSystemId:
|
|
5513
|
-
designSystemVersionId:
|
|
5514
|
-
operation:
|
|
5515
|
-
createdAt:
|
|
5516
|
-
stateChangedAt:
|
|
5520
|
+
import { z as z193 } from "zod";
|
|
5521
|
+
var DTOImportJob = z193.object({
|
|
5522
|
+
id: z193.string(),
|
|
5523
|
+
designSystemId: z193.string(),
|
|
5524
|
+
designSystemVersionId: z193.string(),
|
|
5525
|
+
operation: z193.literal("Import"),
|
|
5526
|
+
createdAt: z193.coerce.date(),
|
|
5527
|
+
stateChangedAt: z193.coerce.date(),
|
|
5517
5528
|
state: ImportJobState,
|
|
5518
|
-
sourceIds:
|
|
5529
|
+
sourceIds: z193.string().array()
|
|
5519
5530
|
});
|
|
5520
|
-
var DTOImportJobResponse =
|
|
5531
|
+
var DTOImportJobResponse = z193.object({
|
|
5521
5532
|
job: DTOImportJob
|
|
5522
5533
|
});
|
|
5523
|
-
var DTOBffFigmaImportRequestBody =
|
|
5524
|
-
type:
|
|
5525
|
-
brandPersistentId:
|
|
5526
|
-
fileId:
|
|
5534
|
+
var DTOBffFigmaImportRequestBody = z193.object({
|
|
5535
|
+
type: z193.literal(DataSourceRemoteType.Enum.Figma),
|
|
5536
|
+
brandPersistentId: z193.string().optional(),
|
|
5537
|
+
fileId: z193.string(),
|
|
5527
5538
|
scope: DataSourceFigmaScope,
|
|
5528
5539
|
autoImportMode: DataSourceAutoImportMode
|
|
5529
5540
|
});
|
|
5530
|
-
var DTOBffUploadImportRequestBody =
|
|
5531
|
-
type:
|
|
5532
|
-
brandPersistentId:
|
|
5533
|
-
sourceName:
|
|
5534
|
-
remoteId:
|
|
5535
|
-
isTokenTypeSplitEnabled:
|
|
5536
|
-
payload:
|
|
5541
|
+
var DTOBffUploadImportRequestBody = z193.object({
|
|
5542
|
+
type: z193.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5543
|
+
brandPersistentId: z193.string().optional(),
|
|
5544
|
+
sourceName: z193.string().optional(),
|
|
5545
|
+
remoteId: z193.string(),
|
|
5546
|
+
isTokenTypeSplitEnabled: z193.boolean().optional(),
|
|
5547
|
+
payload: z193.any()
|
|
5537
5548
|
});
|
|
5538
|
-
var DTOBffImportRequestBody =
|
|
5549
|
+
var DTOBffImportRequestBody = z193.discriminatedUnion("type", [
|
|
5539
5550
|
DTOBffFigmaImportRequestBody,
|
|
5540
5551
|
DTOBffUploadImportRequestBody
|
|
5541
5552
|
]);
|
|
5542
5553
|
|
|
5543
5554
|
// src/api/dto/design-systems/stats.ts
|
|
5544
|
-
import { z as
|
|
5545
|
-
var DTODesignSystemVersionStats =
|
|
5546
|
-
tokens:
|
|
5547
|
-
designSystemComponents:
|
|
5548
|
-
assets:
|
|
5549
|
-
documentationPages:
|
|
5555
|
+
import { z as z194 } from "zod";
|
|
5556
|
+
var DTODesignSystemVersionStats = z194.object({
|
|
5557
|
+
tokens: z194.number(),
|
|
5558
|
+
designSystemComponents: z194.number(),
|
|
5559
|
+
assets: z194.number(),
|
|
5560
|
+
documentationPages: z194.number()
|
|
5550
5561
|
});
|
|
5551
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5552
|
-
brandId:
|
|
5562
|
+
var DTODesignSystemVersionStatsQuery = z194.object({
|
|
5563
|
+
brandId: z194.string().optional()
|
|
5553
5564
|
});
|
|
5554
5565
|
|
|
5555
5566
|
// src/api/dto/design-systems/version.ts
|
|
5556
|
-
import { z as
|
|
5567
|
+
import { z as z205 } from "zod";
|
|
5557
5568
|
|
|
5558
5569
|
// src/api/payloads/design-systems/brand.ts
|
|
5559
|
-
import { z as
|
|
5560
|
-
var DTOCreateBrandInput =
|
|
5561
|
-
persistentId:
|
|
5562
|
-
meta:
|
|
5563
|
-
name:
|
|
5564
|
-
description:
|
|
5570
|
+
import { z as z195 } from "zod";
|
|
5571
|
+
var DTOCreateBrandInput = z195.object({
|
|
5572
|
+
persistentId: z195.string().uuid(),
|
|
5573
|
+
meta: z195.object({
|
|
5574
|
+
name: z195.string(),
|
|
5575
|
+
description: z195.string()
|
|
5565
5576
|
})
|
|
5566
5577
|
});
|
|
5567
5578
|
|
|
5568
5579
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5569
|
-
import { z as
|
|
5580
|
+
import { z as z196 } from "zod";
|
|
5570
5581
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5571
5582
|
id: true,
|
|
5572
5583
|
workspaceId: true,
|
|
@@ -5578,40 +5589,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5578
5589
|
}).extend({
|
|
5579
5590
|
meta: ObjectMeta.partial().optional()
|
|
5580
5591
|
});
|
|
5581
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5592
|
+
var DTODesignSystemUpdateAccessModeInput = z196.object({
|
|
5582
5593
|
accessMode: DesignSystemAccessMode,
|
|
5583
|
-
retain:
|
|
5584
|
-
userIds:
|
|
5585
|
-
inviteIds:
|
|
5594
|
+
retain: z196.object({
|
|
5595
|
+
userIds: z196.string().array(),
|
|
5596
|
+
inviteIds: z196.string().array()
|
|
5586
5597
|
}).optional()
|
|
5587
5598
|
});
|
|
5588
5599
|
|
|
5589
5600
|
// src/api/payloads/design-systems/version.ts
|
|
5590
|
-
import { z as
|
|
5591
|
-
var ObjectMeta2 =
|
|
5592
|
-
name:
|
|
5593
|
-
description:
|
|
5601
|
+
import { z as z197 } from "zod";
|
|
5602
|
+
var ObjectMeta2 = z197.object({
|
|
5603
|
+
name: z197.string().max(150).optional(),
|
|
5604
|
+
description: z197.string().max(2e3).optional()
|
|
5594
5605
|
});
|
|
5595
5606
|
function validateDesignSystemVersion(version) {
|
|
5596
5607
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5597
5608
|
return urlCompliantRegex.test(version);
|
|
5598
5609
|
}
|
|
5599
|
-
var DTOCreateVersionInput =
|
|
5610
|
+
var DTOCreateVersionInput = z197.object({
|
|
5600
5611
|
meta: ObjectMeta2,
|
|
5601
|
-
version:
|
|
5612
|
+
version: z197.string().refine(validateDesignSystemVersion, {
|
|
5602
5613
|
message: "Invalid semantic versioning format"
|
|
5603
5614
|
}),
|
|
5604
|
-
changeLog:
|
|
5615
|
+
changeLog: z197.string().optional()
|
|
5605
5616
|
});
|
|
5606
|
-
var DTOUpdateVersionInput =
|
|
5617
|
+
var DTOUpdateVersionInput = z197.object({
|
|
5607
5618
|
meta: ObjectMeta2,
|
|
5608
|
-
version:
|
|
5619
|
+
version: z197.string(),
|
|
5609
5620
|
// required for PUT, but not editable
|
|
5610
|
-
changeLog:
|
|
5621
|
+
changeLog: z197.string()
|
|
5611
5622
|
});
|
|
5612
5623
|
|
|
5613
5624
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5614
|
-
import { z as
|
|
5625
|
+
import { z as z198 } from "zod";
|
|
5615
5626
|
|
|
5616
5627
|
// src/api/dto/documentation/block-definition.ts
|
|
5617
5628
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5623,60 +5634,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5623
5634
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5624
5635
|
|
|
5625
5636
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5626
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5627
|
-
definitions:
|
|
5637
|
+
var DTOGetBlockDefinitionsOutput = z198.object({
|
|
5638
|
+
definitions: z198.array(DTOPageBlockDefinition)
|
|
5628
5639
|
});
|
|
5629
5640
|
|
|
5630
5641
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5631
|
-
import { z as
|
|
5632
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5633
|
-
environment:
|
|
5642
|
+
import { z as z199 } from "zod";
|
|
5643
|
+
var DTODocumentationPublishTypeQueryParams = z199.object({
|
|
5644
|
+
environment: z199.enum(["Live", "Preview"])
|
|
5634
5645
|
});
|
|
5635
5646
|
|
|
5636
5647
|
// src/api/payloads/export/pipeline.ts
|
|
5637
|
-
import { z as
|
|
5638
|
-
var DTOPipelineCreateBody =
|
|
5639
|
-
name:
|
|
5640
|
-
exporterId:
|
|
5641
|
-
designSystemId:
|
|
5642
|
-
isEnabled:
|
|
5648
|
+
import { z as z200 } from "zod";
|
|
5649
|
+
var DTOPipelineCreateBody = z200.object({
|
|
5650
|
+
name: z200.string(),
|
|
5651
|
+
exporterId: z200.string(),
|
|
5652
|
+
designSystemId: z200.string(),
|
|
5653
|
+
isEnabled: z200.boolean(),
|
|
5643
5654
|
eventType: PipelineEventType,
|
|
5644
|
-
brandPersistentId:
|
|
5645
|
-
themePersistentId:
|
|
5646
|
-
themePersistentIds:
|
|
5655
|
+
brandPersistentId: z200.string().optional(),
|
|
5656
|
+
themePersistentId: z200.string().optional(),
|
|
5657
|
+
themePersistentIds: z200.string().array().optional(),
|
|
5647
5658
|
destination: PipelineDestinationType.optional(),
|
|
5648
5659
|
gitQuery: GitObjectsQuery,
|
|
5649
|
-
destinations:
|
|
5660
|
+
destinations: z200.object({
|
|
5650
5661
|
s3: ExporterDestinationS3.nullish(),
|
|
5651
5662
|
azure: ExporterDestinationAzure.nullish(),
|
|
5652
5663
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5653
5664
|
github: ExporterDestinationGithub.nullish(),
|
|
5654
5665
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5655
5666
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5656
|
-
webhookUrl:
|
|
5667
|
+
webhookUrl: z200.string().nullish()
|
|
5657
5668
|
})
|
|
5658
5669
|
});
|
|
5659
5670
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5660
|
-
id:
|
|
5671
|
+
id: z200.string()
|
|
5661
5672
|
});
|
|
5662
|
-
var DTOPipelineTriggerBody =
|
|
5663
|
-
designSystemVersionId:
|
|
5673
|
+
var DTOPipelineTriggerBody = z200.object({
|
|
5674
|
+
designSystemVersionId: z200.string()
|
|
5664
5675
|
});
|
|
5665
5676
|
|
|
5666
5677
|
// src/api/payloads/liveblocks/auth.ts
|
|
5667
|
-
import { z as
|
|
5668
|
-
var DTOLiveblocksAuthRequest =
|
|
5669
|
-
room:
|
|
5678
|
+
import { z as z201 } from "zod";
|
|
5679
|
+
var DTOLiveblocksAuthRequest = z201.object({
|
|
5680
|
+
room: z201.string().optional()
|
|
5670
5681
|
});
|
|
5671
5682
|
|
|
5672
5683
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5673
|
-
import { z as
|
|
5674
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5684
|
+
import { z as z202 } from "zod";
|
|
5685
|
+
var DTOUpdateUserNotificationSettingsPayload = z202.object({
|
|
5675
5686
|
notificationSettings: UserNotificationSettings
|
|
5676
5687
|
});
|
|
5677
|
-
var DTOUserNotificationSettingsResponse =
|
|
5678
|
-
userId:
|
|
5679
|
-
workspaceId:
|
|
5688
|
+
var DTOUserNotificationSettingsResponse = z202.object({
|
|
5689
|
+
userId: z202.string(),
|
|
5690
|
+
workspaceId: z202.string(),
|
|
5680
5691
|
notificationSettings: UserNotificationSettings
|
|
5681
5692
|
});
|
|
5682
5693
|
|
|
@@ -5684,7 +5695,7 @@ var DTOUserNotificationSettingsResponse = z201.object({
|
|
|
5684
5695
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5685
5696
|
|
|
5686
5697
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5687
|
-
import { z as
|
|
5698
|
+
import { z as z203 } from "zod";
|
|
5688
5699
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5689
5700
|
function validateSsoPayload(ssoPayload) {
|
|
5690
5701
|
const keys = [];
|
|
@@ -5707,21 +5718,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5707
5718
|
keys
|
|
5708
5719
|
};
|
|
5709
5720
|
}
|
|
5710
|
-
var NpmRegistryInput =
|
|
5711
|
-
enabledScopes:
|
|
5712
|
-
customRegistryUrl:
|
|
5713
|
-
bypassProxy:
|
|
5714
|
-
npmProxyRegistryConfigId:
|
|
5715
|
-
npmProxyVersion:
|
|
5716
|
-
registryType:
|
|
5717
|
-
authType:
|
|
5718
|
-
authHeaderName:
|
|
5719
|
-
authHeaderValue:
|
|
5720
|
-
accessToken:
|
|
5721
|
-
username:
|
|
5722
|
-
password:
|
|
5723
|
-
});
|
|
5724
|
-
var WorkspaceConfigurationPayload =
|
|
5721
|
+
var NpmRegistryInput = z203.object({
|
|
5722
|
+
enabledScopes: z203.array(z203.string()),
|
|
5723
|
+
customRegistryUrl: z203.string().optional(),
|
|
5724
|
+
bypassProxy: z203.boolean().optional(),
|
|
5725
|
+
npmProxyRegistryConfigId: z203.string().optional(),
|
|
5726
|
+
npmProxyVersion: z203.number().optional(),
|
|
5727
|
+
registryType: z203.string(),
|
|
5728
|
+
authType: z203.string(),
|
|
5729
|
+
authHeaderName: z203.string(),
|
|
5730
|
+
authHeaderValue: z203.string(),
|
|
5731
|
+
accessToken: z203.string(),
|
|
5732
|
+
username: z203.string(),
|
|
5733
|
+
password: z203.string()
|
|
5734
|
+
});
|
|
5735
|
+
var WorkspaceConfigurationPayload = z203.object({
|
|
5725
5736
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5726
5737
|
sso: SsoProvider.partial().optional(),
|
|
5727
5738
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5729,218 +5740,218 @@ var WorkspaceConfigurationPayload = z202.object({
|
|
|
5729
5740
|
});
|
|
5730
5741
|
|
|
5731
5742
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5732
|
-
import { z as
|
|
5733
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5743
|
+
import { z as z204 } from "zod";
|
|
5744
|
+
var DTOWorkspaceIntegrationOauthInput = z204.object({
|
|
5734
5745
|
type: IntegrationType
|
|
5735
5746
|
});
|
|
5736
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5737
|
-
userId:
|
|
5747
|
+
var DTOWorkspaceIntegrationPATInput = z204.object({
|
|
5748
|
+
userId: z204.string(),
|
|
5738
5749
|
type: IntegrationType,
|
|
5739
5750
|
token: IntegrationToken
|
|
5740
5751
|
});
|
|
5741
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5742
|
-
organization:
|
|
5752
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z204.object({
|
|
5753
|
+
organization: z204.string().optional(),
|
|
5743
5754
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5744
|
-
project:
|
|
5755
|
+
project: z204.string().optional(),
|
|
5745
5756
|
// Only for Bitbucket and Azure
|
|
5746
|
-
repository:
|
|
5757
|
+
repository: z204.string().optional(),
|
|
5747
5758
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5748
|
-
branch:
|
|
5759
|
+
branch: z204.string().optional(),
|
|
5749
5760
|
// For all providers, useful for PR creations.
|
|
5750
|
-
user:
|
|
5761
|
+
user: z204.string().optional()
|
|
5751
5762
|
// Only for Gitlab User Repositories
|
|
5752
5763
|
});
|
|
5753
5764
|
|
|
5754
5765
|
// src/api/dto/design-systems/version.ts
|
|
5755
|
-
var DTODesignSystemVersion =
|
|
5756
|
-
id:
|
|
5757
|
-
createdAt:
|
|
5766
|
+
var DTODesignSystemVersion = z205.object({
|
|
5767
|
+
id: z205.string(),
|
|
5768
|
+
createdAt: z205.coerce.date(),
|
|
5758
5769
|
meta: ObjectMeta,
|
|
5759
|
-
version:
|
|
5760
|
-
isReadonly:
|
|
5761
|
-
changeLog:
|
|
5762
|
-
designSystemId:
|
|
5770
|
+
version: z205.string(),
|
|
5771
|
+
isReadonly: z205.boolean(),
|
|
5772
|
+
changeLog: z205.string(),
|
|
5773
|
+
designSystemId: z205.string()
|
|
5763
5774
|
});
|
|
5764
|
-
var DTODesignSystemVersionsListResponse =
|
|
5765
|
-
designSystemVersions:
|
|
5775
|
+
var DTODesignSystemVersionsListResponse = z205.object({
|
|
5776
|
+
designSystemVersions: z205.array(DTODesignSystemVersion)
|
|
5766
5777
|
});
|
|
5767
|
-
var DTODesignSystemVersionGetResponse =
|
|
5778
|
+
var DTODesignSystemVersionGetResponse = z205.object({
|
|
5768
5779
|
designSystemVersion: DTODesignSystemVersion
|
|
5769
5780
|
});
|
|
5770
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5781
|
+
var DTODesignSystemVersionCreationResponse = z205.object({
|
|
5771
5782
|
meta: ObjectMeta,
|
|
5772
|
-
version:
|
|
5773
|
-
changeLog:
|
|
5774
|
-
isReadOnly:
|
|
5775
|
-
designSystemId:
|
|
5776
|
-
jobId:
|
|
5777
|
-
});
|
|
5778
|
-
var VersionSQSPayload =
|
|
5779
|
-
jobId:
|
|
5780
|
-
designSystemId:
|
|
5783
|
+
version: z205.string(),
|
|
5784
|
+
changeLog: z205.string(),
|
|
5785
|
+
isReadOnly: z205.boolean(),
|
|
5786
|
+
designSystemId: z205.string(),
|
|
5787
|
+
jobId: z205.string()
|
|
5788
|
+
});
|
|
5789
|
+
var VersionSQSPayload = z205.object({
|
|
5790
|
+
jobId: z205.string(),
|
|
5791
|
+
designSystemId: z205.string(),
|
|
5781
5792
|
input: DTOCreateVersionInput
|
|
5782
5793
|
});
|
|
5783
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5784
|
-
jobs:
|
|
5794
|
+
var DTODesignSystemVersionJobsResponse = z205.object({
|
|
5795
|
+
jobs: z205.array(VersionCreationJob)
|
|
5785
5796
|
});
|
|
5786
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5797
|
+
var DTODesignSystemVersionJobStatusResponse = z205.object({
|
|
5787
5798
|
job: VersionCreationJob
|
|
5788
5799
|
});
|
|
5789
5800
|
|
|
5790
5801
|
// src/api/dto/design-systems/view.ts
|
|
5791
|
-
import { z as
|
|
5792
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5793
|
-
id:
|
|
5794
|
-
persistentId:
|
|
5795
|
-
width:
|
|
5802
|
+
import { z as z206 } from "zod";
|
|
5803
|
+
var DTOElementViewColumnSharedAttributes = z206.object({
|
|
5804
|
+
id: z206.string(),
|
|
5805
|
+
persistentId: z206.string(),
|
|
5806
|
+
width: z206.number()
|
|
5796
5807
|
});
|
|
5797
5808
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5798
|
-
type:
|
|
5809
|
+
type: z206.literal("BaseProperty"),
|
|
5799
5810
|
basePropertyType: ElementViewBaseColumnType
|
|
5800
5811
|
});
|
|
5801
5812
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5802
|
-
type:
|
|
5803
|
-
propertyDefinitionId:
|
|
5813
|
+
type: z206.literal("PropertyDefinition"),
|
|
5814
|
+
propertyDefinitionId: z206.string()
|
|
5804
5815
|
});
|
|
5805
5816
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5806
|
-
type:
|
|
5807
|
-
themeId:
|
|
5817
|
+
type: z206.literal("Theme"),
|
|
5818
|
+
themeId: z206.string()
|
|
5808
5819
|
});
|
|
5809
|
-
var DTOElementViewColumn =
|
|
5820
|
+
var DTOElementViewColumn = z206.discriminatedUnion("type", [
|
|
5810
5821
|
DTOElementViewBasePropertyColumn,
|
|
5811
5822
|
DTOElementViewPropertyDefinitionColumn,
|
|
5812
5823
|
DTOElementViewThemeColumn
|
|
5813
5824
|
]);
|
|
5814
|
-
var DTOElementView =
|
|
5825
|
+
var DTOElementView = z206.object({
|
|
5815
5826
|
meta: ObjectMeta,
|
|
5816
|
-
persistentId:
|
|
5827
|
+
persistentId: z206.string(),
|
|
5817
5828
|
targetElementType: ElementPropertyTargetType,
|
|
5818
|
-
id:
|
|
5819
|
-
isDefault:
|
|
5820
|
-
columns:
|
|
5829
|
+
id: z206.string(),
|
|
5830
|
+
isDefault: z206.boolean(),
|
|
5831
|
+
columns: z206.array(DTOElementViewColumn)
|
|
5821
5832
|
});
|
|
5822
|
-
var DTOElementViewsListResponse =
|
|
5823
|
-
elementDataViews:
|
|
5833
|
+
var DTOElementViewsListResponse = z206.object({
|
|
5834
|
+
elementDataViews: z206.array(DTOElementView)
|
|
5824
5835
|
});
|
|
5825
5836
|
|
|
5826
5837
|
// src/api/dto/workspaces/git.ts
|
|
5827
|
-
import { z as
|
|
5828
|
-
var DTOGitOrganization =
|
|
5829
|
-
id:
|
|
5830
|
-
name:
|
|
5831
|
-
url:
|
|
5832
|
-
slug:
|
|
5838
|
+
import { z as z207 } from "zod";
|
|
5839
|
+
var DTOGitOrganization = z207.object({
|
|
5840
|
+
id: z207.string(),
|
|
5841
|
+
name: z207.string(),
|
|
5842
|
+
url: z207.string(),
|
|
5843
|
+
slug: z207.string()
|
|
5833
5844
|
});
|
|
5834
|
-
var DTOGitProject =
|
|
5835
|
-
id:
|
|
5836
|
-
name:
|
|
5837
|
-
url:
|
|
5838
|
-
slug:
|
|
5845
|
+
var DTOGitProject = z207.object({
|
|
5846
|
+
id: z207.string(),
|
|
5847
|
+
name: z207.string(),
|
|
5848
|
+
url: z207.string(),
|
|
5849
|
+
slug: z207.string()
|
|
5839
5850
|
});
|
|
5840
|
-
var DTOGitRepository =
|
|
5841
|
-
id:
|
|
5842
|
-
name:
|
|
5843
|
-
url:
|
|
5844
|
-
slug:
|
|
5845
|
-
defaultBranch:
|
|
5851
|
+
var DTOGitRepository = z207.object({
|
|
5852
|
+
id: z207.string(),
|
|
5853
|
+
name: z207.string(),
|
|
5854
|
+
url: z207.string(),
|
|
5855
|
+
slug: z207.string(),
|
|
5856
|
+
defaultBranch: z207.string().optional()
|
|
5846
5857
|
});
|
|
5847
|
-
var DTOGitBranch =
|
|
5848
|
-
name:
|
|
5849
|
-
lastCommitId:
|
|
5858
|
+
var DTOGitBranch = z207.object({
|
|
5859
|
+
name: z207.string(),
|
|
5860
|
+
lastCommitId: z207.string()
|
|
5850
5861
|
});
|
|
5851
5862
|
|
|
5852
5863
|
// src/api/dto/workspaces/integrations.ts
|
|
5853
|
-
import { z as
|
|
5864
|
+
import { z as z208 } from "zod";
|
|
5854
5865
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5855
5866
|
accessToken: true,
|
|
5856
5867
|
refreshToken: true
|
|
5857
5868
|
});
|
|
5858
|
-
var DTOIntegration =
|
|
5859
|
-
id:
|
|
5860
|
-
workspaceId:
|
|
5869
|
+
var DTOIntegration = z208.object({
|
|
5870
|
+
id: z208.string(),
|
|
5871
|
+
workspaceId: z208.string(),
|
|
5861
5872
|
type: ExtendedIntegrationType,
|
|
5862
|
-
createdAt:
|
|
5863
|
-
integrationCredentials:
|
|
5864
|
-
integrationDesignSystems:
|
|
5873
|
+
createdAt: z208.coerce.date(),
|
|
5874
|
+
integrationCredentials: z208.array(DTOIntegrationCredentials).optional(),
|
|
5875
|
+
integrationDesignSystems: z208.array(IntegrationDesignSystem).optional()
|
|
5865
5876
|
});
|
|
5866
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5867
|
-
url:
|
|
5877
|
+
var DTOIntegrationOAuthGetResponse = z208.object({
|
|
5878
|
+
url: z208.string()
|
|
5868
5879
|
});
|
|
5869
|
-
var DTOIntegrationPostResponse =
|
|
5880
|
+
var DTOIntegrationPostResponse = z208.object({
|
|
5870
5881
|
integration: DTOIntegration
|
|
5871
5882
|
});
|
|
5872
|
-
var DTOIntegrationsGetListResponse =
|
|
5883
|
+
var DTOIntegrationsGetListResponse = z208.object({
|
|
5873
5884
|
integrations: DTOIntegration.array()
|
|
5874
5885
|
});
|
|
5875
5886
|
|
|
5876
5887
|
// src/api/dto/workspaces/invitations.ts
|
|
5877
|
-
import { z as
|
|
5878
|
-
var DTOWorkspaceInvitationInput =
|
|
5879
|
-
email:
|
|
5888
|
+
import { z as z209 } from "zod";
|
|
5889
|
+
var DTOWorkspaceInvitationInput = z209.object({
|
|
5890
|
+
email: z209.string().email(),
|
|
5880
5891
|
role: WorkspaceRoleSchema
|
|
5881
5892
|
});
|
|
5882
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5893
|
+
var DTOWorkspaceInvitationsListInput = z209.object({
|
|
5883
5894
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5884
|
-
designSystemId:
|
|
5895
|
+
designSystemId: z209.string().optional()
|
|
5885
5896
|
});
|
|
5886
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5897
|
+
var DTOWorkspaceInvitationsResponse = z209.object({
|
|
5887
5898
|
invitations: WorkspaceInvitation.array()
|
|
5888
5899
|
});
|
|
5889
|
-
var DTOWorkspaceInviteUpdate =
|
|
5900
|
+
var DTOWorkspaceInviteUpdate = z209.object({
|
|
5890
5901
|
role: WorkspaceRoleSchema
|
|
5891
5902
|
});
|
|
5892
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
5903
|
+
var DTOWorkspaceInvitationUpdateResponse = z209.object({
|
|
5893
5904
|
invitation: WorkspaceInvitation
|
|
5894
5905
|
});
|
|
5895
5906
|
|
|
5896
5907
|
// src/api/dto/workspaces/membership.ts
|
|
5897
|
-
import { z as
|
|
5908
|
+
import { z as z212 } from "zod";
|
|
5898
5909
|
|
|
5899
5910
|
// src/api/dto/workspaces/workspace.ts
|
|
5900
|
-
import { z as
|
|
5911
|
+
import { z as z211 } from "zod";
|
|
5901
5912
|
|
|
5902
5913
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5903
|
-
import { z as
|
|
5914
|
+
import { z as z210 } from "zod";
|
|
5904
5915
|
var DTONpmRegistryConfigConstants = {
|
|
5905
5916
|
passwordPlaceholder: "redacted"
|
|
5906
5917
|
};
|
|
5907
|
-
var DTONpmRegistryConfig =
|
|
5918
|
+
var DTONpmRegistryConfig = z210.object({
|
|
5908
5919
|
// Registry basic configuration
|
|
5909
5920
|
registryType: NpmRegistryType,
|
|
5910
|
-
registryUrl:
|
|
5911
|
-
customRegistryUrl:
|
|
5921
|
+
registryUrl: z210.string(),
|
|
5922
|
+
customRegistryUrl: z210.string().optional(),
|
|
5912
5923
|
// URL of Supernova NPM packages proxy
|
|
5913
|
-
proxyUrl:
|
|
5924
|
+
proxyUrl: z210.string(),
|
|
5914
5925
|
// Auth configuration
|
|
5915
5926
|
authType: NpmRegistryAuthType,
|
|
5916
|
-
accessToken:
|
|
5917
|
-
username:
|
|
5918
|
-
password:
|
|
5927
|
+
accessToken: z210.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5928
|
+
username: z210.string().optional(),
|
|
5929
|
+
password: z210.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5919
5930
|
// NPM package scopes for whih the proxy should be enabled
|
|
5920
|
-
enabledScopes:
|
|
5931
|
+
enabledScopes: z210.array(z210.string()),
|
|
5921
5932
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5922
5933
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5923
|
-
bypassProxy:
|
|
5934
|
+
bypassProxy: z210.boolean()
|
|
5924
5935
|
});
|
|
5925
5936
|
|
|
5926
5937
|
// src/api/dto/workspaces/workspace.ts
|
|
5927
5938
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
5928
|
-
var DTOWorkspace =
|
|
5929
|
-
id:
|
|
5939
|
+
var DTOWorkspace = z211.object({
|
|
5940
|
+
id: z211.string(),
|
|
5930
5941
|
profile: DTOWorkspaceProfile,
|
|
5931
5942
|
subscription: Subscription,
|
|
5932
5943
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5933
5944
|
});
|
|
5934
|
-
var DTOWorkspaceCreateInput =
|
|
5935
|
-
name:
|
|
5945
|
+
var DTOWorkspaceCreateInput = z211.object({
|
|
5946
|
+
name: z211.string()
|
|
5936
5947
|
});
|
|
5937
|
-
var DTOWorkspaceResponse =
|
|
5948
|
+
var DTOWorkspaceResponse = z211.object({
|
|
5938
5949
|
workspace: DTOWorkspace
|
|
5939
5950
|
});
|
|
5940
5951
|
|
|
5941
5952
|
// src/api/dto/workspaces/membership.ts
|
|
5942
|
-
var DTOWorkspaceRole =
|
|
5943
|
-
var DTOUserWorkspaceMembership =
|
|
5953
|
+
var DTOWorkspaceRole = z212.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5954
|
+
var DTOUserWorkspaceMembership = z212.object({
|
|
5944
5955
|
// Workspace the user is a member of
|
|
5945
5956
|
workspace: DTOWorkspace,
|
|
5946
5957
|
// Assigned role the user has in the workspace
|
|
@@ -5950,26 +5961,26 @@ var DTOUserWorkspaceMembership = z211.object({
|
|
|
5950
5961
|
// when a workspace's subscription is downgraded to free tier
|
|
5951
5962
|
effectiveRole: DTOWorkspaceRole
|
|
5952
5963
|
});
|
|
5953
|
-
var DTOWorkspaceMember =
|
|
5964
|
+
var DTOWorkspaceMember = z212.object({
|
|
5954
5965
|
user: User,
|
|
5955
5966
|
role: WorkspaceRoleSchema,
|
|
5956
5967
|
effectiveRole: WorkspaceRoleSchema
|
|
5957
5968
|
});
|
|
5958
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5959
|
-
membership:
|
|
5969
|
+
var DTOUserWorkspaceMembershipsResponse = z212.object({
|
|
5970
|
+
membership: z212.array(DTOUserWorkspaceMembership)
|
|
5960
5971
|
});
|
|
5961
|
-
var DTOWorkspaceMembersListResponse =
|
|
5962
|
-
members:
|
|
5972
|
+
var DTOWorkspaceMembersListResponse = z212.object({
|
|
5973
|
+
members: z212.array(DTOWorkspaceMember)
|
|
5963
5974
|
});
|
|
5964
5975
|
|
|
5965
5976
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5966
|
-
var DTOAppBootstrapDataQuery =
|
|
5967
|
-
preferredWorkspaceId:
|
|
5968
|
-
preferredDesignSystemId:
|
|
5969
|
-
preferredVersionId:
|
|
5970
|
-
preferredBrandId:
|
|
5977
|
+
var DTOAppBootstrapDataQuery = z213.object({
|
|
5978
|
+
preferredWorkspaceId: z213.string().optional(),
|
|
5979
|
+
preferredDesignSystemId: z213.string().optional(),
|
|
5980
|
+
preferredVersionId: z213.string().optional(),
|
|
5981
|
+
preferredBrandId: z213.string().optional()
|
|
5971
5982
|
});
|
|
5972
|
-
var DTOAppBootstrapDataResponse =
|
|
5983
|
+
var DTOAppBootstrapDataResponse = z213.object({
|
|
5973
5984
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5974
5985
|
designSystem: DTODesignSystem.optional(),
|
|
5975
5986
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5977,88 +5988,88 @@ var DTOAppBootstrapDataResponse = z212.object({
|
|
|
5977
5988
|
});
|
|
5978
5989
|
|
|
5979
5990
|
// src/api/dto/collections/token-collection.ts
|
|
5980
|
-
import { z as
|
|
5981
|
-
var DTOTokenCollection =
|
|
5982
|
-
id:
|
|
5983
|
-
persistentId:
|
|
5984
|
-
designSystemVersionId:
|
|
5991
|
+
import { z as z214 } from "zod";
|
|
5992
|
+
var DTOTokenCollection = z214.object({
|
|
5993
|
+
id: z214.string(),
|
|
5994
|
+
persistentId: z214.string(),
|
|
5995
|
+
designSystemVersionId: z214.string(),
|
|
5985
5996
|
meta: ObjectMeta,
|
|
5986
5997
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
5987
|
-
elementPropertyOptionId:
|
|
5988
|
-
createdAt:
|
|
5989
|
-
updatedAt:
|
|
5998
|
+
elementPropertyOptionId: z214.string(),
|
|
5999
|
+
createdAt: z214.coerce.date(),
|
|
6000
|
+
updatedAt: z214.coerce.date(),
|
|
5990
6001
|
origin: CollectionOrigin.optional()
|
|
5991
6002
|
});
|
|
5992
|
-
var DTOTokenCollectionsListReponse =
|
|
6003
|
+
var DTOTokenCollectionsListReponse = z214.object({
|
|
5993
6004
|
collections: DTOTokenCollection.array()
|
|
5994
6005
|
});
|
|
5995
6006
|
|
|
5996
6007
|
// src/api/dto/design-tokens/design-token.ts
|
|
5997
|
-
import { z as
|
|
6008
|
+
import { z as z215 } from "zod";
|
|
5998
6009
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
5999
|
-
|
|
6000
|
-
id:
|
|
6001
|
-
persistentId:
|
|
6002
|
-
designSystemVersionId:
|
|
6010
|
+
z215.object({
|
|
6011
|
+
id: z215.string(),
|
|
6012
|
+
persistentId: z215.string(),
|
|
6013
|
+
designSystemVersionId: z215.string(),
|
|
6003
6014
|
meta: ObjectMeta,
|
|
6004
6015
|
originStyle: DesignTokenOrigin.optional(),
|
|
6005
|
-
brandId:
|
|
6006
|
-
collectionId:
|
|
6007
|
-
updatedAt:
|
|
6016
|
+
brandId: z215.string(),
|
|
6017
|
+
collectionId: z215.string().optional(),
|
|
6018
|
+
updatedAt: z215.coerce.date()
|
|
6008
6019
|
})
|
|
6009
6020
|
);
|
|
6010
|
-
var DTODesignTokenListResponse =
|
|
6021
|
+
var DTODesignTokenListResponse = z215.object({
|
|
6011
6022
|
tokens: DTODesignToken.array()
|
|
6012
6023
|
});
|
|
6013
|
-
var DTODesignTokenResponse =
|
|
6024
|
+
var DTODesignTokenResponse = z215.object({
|
|
6014
6025
|
token: DTODesignToken
|
|
6015
6026
|
});
|
|
6016
|
-
var DTODesignTokenGroup =
|
|
6017
|
-
id:
|
|
6027
|
+
var DTODesignTokenGroup = z215.object({
|
|
6028
|
+
id: z215.string(),
|
|
6018
6029
|
tokenType: DesignTokenType,
|
|
6019
|
-
persistentId:
|
|
6020
|
-
isRoot:
|
|
6021
|
-
brandId:
|
|
6030
|
+
persistentId: z215.string(),
|
|
6031
|
+
isRoot: z215.boolean(),
|
|
6032
|
+
brandId: z215.string(),
|
|
6022
6033
|
meta: ObjectMeta,
|
|
6023
|
-
childrenIds:
|
|
6034
|
+
childrenIds: z215.string().array()
|
|
6024
6035
|
});
|
|
6025
|
-
var DTODesignTokenGroupListResponse =
|
|
6036
|
+
var DTODesignTokenGroupListResponse = z215.object({
|
|
6026
6037
|
groups: DTODesignTokenGroup.array()
|
|
6027
6038
|
});
|
|
6028
|
-
var DTODesignTokenGroupResponse =
|
|
6039
|
+
var DTODesignTokenGroupResponse = z215.object({
|
|
6029
6040
|
group: DTODesignTokenGroup
|
|
6030
6041
|
});
|
|
6031
6042
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6032
|
-
|
|
6033
|
-
persistentId:
|
|
6043
|
+
z215.object({
|
|
6044
|
+
persistentId: z215.string(),
|
|
6034
6045
|
meta: ObjectMeta,
|
|
6035
|
-
brandId:
|
|
6036
|
-
groupPersistentId:
|
|
6046
|
+
brandId: z215.string(),
|
|
6047
|
+
groupPersistentId: z215.string().optional()
|
|
6037
6048
|
})
|
|
6038
6049
|
);
|
|
6039
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6040
|
-
persistentId:
|
|
6050
|
+
var DTODesignTokenGroupCreatePayload = z215.object({
|
|
6051
|
+
persistentId: z215.string(),
|
|
6041
6052
|
meta: ObjectMeta,
|
|
6042
|
-
brandId:
|
|
6043
|
-
parentId:
|
|
6053
|
+
brandId: z215.string(),
|
|
6054
|
+
parentId: z215.string().optional(),
|
|
6044
6055
|
tokenType: DesignTokenType,
|
|
6045
|
-
childrenIds:
|
|
6056
|
+
childrenIds: z215.string().array()
|
|
6046
6057
|
});
|
|
6047
6058
|
|
|
6048
6059
|
// src/api/dto/documentation/anchor.ts
|
|
6049
|
-
import { z as
|
|
6060
|
+
import { z as z216 } from "zod";
|
|
6050
6061
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6051
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6052
|
-
anchors:
|
|
6062
|
+
var DTOGetDocumentationPageAnchorsResponse = z216.object({
|
|
6063
|
+
anchors: z216.array(DTODocumentationPageAnchor)
|
|
6053
6064
|
});
|
|
6054
6065
|
|
|
6055
6066
|
// src/api/dto/documentation/approvals.ts
|
|
6056
|
-
import { z as
|
|
6067
|
+
import { z as z217 } from "zod";
|
|
6057
6068
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
6058
|
-
var DTODocumentationGroupApprovalState =
|
|
6059
|
-
persistentId:
|
|
6060
|
-
groupId:
|
|
6061
|
-
designSystemVersionId:
|
|
6069
|
+
var DTODocumentationGroupApprovalState = z217.object({
|
|
6070
|
+
persistentId: z217.string(),
|
|
6071
|
+
groupId: z217.string(),
|
|
6072
|
+
designSystemVersionId: z217.string(),
|
|
6062
6073
|
approvalState: DocumentationPageApprovalState
|
|
6063
6074
|
});
|
|
6064
6075
|
|
|
@@ -6066,68 +6077,68 @@ var DTODocumentationGroupApprovalState = z216.object({
|
|
|
6066
6077
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6067
6078
|
|
|
6068
6079
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6069
|
-
import { z as
|
|
6080
|
+
import { z as z222 } from "zod";
|
|
6070
6081
|
|
|
6071
6082
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6072
|
-
import { z as
|
|
6083
|
+
import { z as z221 } from "zod";
|
|
6073
6084
|
|
|
6074
6085
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6075
|
-
import { z as
|
|
6086
|
+
import { z as z219 } from "zod";
|
|
6076
6087
|
|
|
6077
6088
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6078
|
-
import { z as
|
|
6089
|
+
import { z as z218 } from "zod";
|
|
6079
6090
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6080
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6081
|
-
showSidebar:
|
|
6082
|
-
isPrivate:
|
|
6083
|
-
isHidden:
|
|
6091
|
+
var DTODocumentationItemConfigurationV2 = z218.object({
|
|
6092
|
+
showSidebar: z218.boolean(),
|
|
6093
|
+
isPrivate: z218.boolean(),
|
|
6094
|
+
isHidden: z218.boolean(),
|
|
6084
6095
|
header: DTODocumentationItemHeaderV2
|
|
6085
6096
|
});
|
|
6086
6097
|
|
|
6087
6098
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6088
|
-
var DTODocumentationDraftChangeType =
|
|
6089
|
-
var DTODocumentationDraftStateCreated =
|
|
6090
|
-
changeType:
|
|
6091
|
-
});
|
|
6092
|
-
var DTODocumentationDraftStateUpdated =
|
|
6093
|
-
changeType:
|
|
6094
|
-
changes:
|
|
6095
|
-
previousTitle:
|
|
6099
|
+
var DTODocumentationDraftChangeType = z219.enum(["Created", "Updated", "Deleted"]);
|
|
6100
|
+
var DTODocumentationDraftStateCreated = z219.object({
|
|
6101
|
+
changeType: z219.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6102
|
+
});
|
|
6103
|
+
var DTODocumentationDraftStateUpdated = z219.object({
|
|
6104
|
+
changeType: z219.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6105
|
+
changes: z219.object({
|
|
6106
|
+
previousTitle: z219.string().optional(),
|
|
6096
6107
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6097
|
-
previousContentHash:
|
|
6108
|
+
previousContentHash: z219.string().optional()
|
|
6098
6109
|
})
|
|
6099
6110
|
});
|
|
6100
|
-
var DTODocumentationDraftStateDeleted =
|
|
6101
|
-
changeType:
|
|
6102
|
-
deletedAt:
|
|
6103
|
-
deletedByUserId:
|
|
6111
|
+
var DTODocumentationDraftStateDeleted = z219.object({
|
|
6112
|
+
changeType: z219.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6113
|
+
deletedAt: z219.coerce.date(),
|
|
6114
|
+
deletedByUserId: z219.string()
|
|
6104
6115
|
});
|
|
6105
|
-
var DTODocumentationDraftState =
|
|
6116
|
+
var DTODocumentationDraftState = z219.discriminatedUnion("changeType", [
|
|
6106
6117
|
DTODocumentationDraftStateCreated,
|
|
6107
6118
|
DTODocumentationDraftStateUpdated,
|
|
6108
6119
|
DTODocumentationDraftStateDeleted
|
|
6109
6120
|
]);
|
|
6110
6121
|
|
|
6111
6122
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6112
|
-
import { z as
|
|
6113
|
-
var DTODocumentationPublishMetadata =
|
|
6114
|
-
lastPublishedByUserId:
|
|
6115
|
-
lastPublishedAt:
|
|
6123
|
+
import { z as z220 } from "zod";
|
|
6124
|
+
var DTODocumentationPublishMetadata = z220.object({
|
|
6125
|
+
lastPublishedByUserId: z220.string(),
|
|
6126
|
+
lastPublishedAt: z220.coerce.date()
|
|
6116
6127
|
});
|
|
6117
6128
|
|
|
6118
6129
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6119
|
-
var DTODocumentationPageV2 =
|
|
6120
|
-
id:
|
|
6121
|
-
persistentId:
|
|
6122
|
-
designSystemVersionId:
|
|
6123
|
-
title:
|
|
6130
|
+
var DTODocumentationPageV2 = z221.object({
|
|
6131
|
+
id: z221.string(),
|
|
6132
|
+
persistentId: z221.string(),
|
|
6133
|
+
designSystemVersionId: z221.string(),
|
|
6134
|
+
title: z221.string(),
|
|
6124
6135
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6125
|
-
shortPersistentId:
|
|
6126
|
-
slug:
|
|
6127
|
-
userSlug:
|
|
6128
|
-
createdAt:
|
|
6129
|
-
updatedAt:
|
|
6130
|
-
path:
|
|
6136
|
+
shortPersistentId: z221.string(),
|
|
6137
|
+
slug: z221.string().optional(),
|
|
6138
|
+
userSlug: z221.string().optional(),
|
|
6139
|
+
createdAt: z221.coerce.date(),
|
|
6140
|
+
updatedAt: z221.coerce.date(),
|
|
6141
|
+
path: z221.string(),
|
|
6131
6142
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6132
6143
|
draftState: DTODocumentationDraftState.optional(),
|
|
6133
6144
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6135,215 +6146,215 @@ var DTODocumentationPageV2 = z220.object({
|
|
|
6135
6146
|
/** Defines the approval state of the documentation page */
|
|
6136
6147
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6137
6148
|
// Backward compatibility
|
|
6138
|
-
type:
|
|
6149
|
+
type: z221.literal("Page")
|
|
6139
6150
|
});
|
|
6140
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6151
|
+
var DTOCreateDocumentationPageInputV2 = z221.object({
|
|
6141
6152
|
// Identifier
|
|
6142
|
-
persistentId:
|
|
6153
|
+
persistentId: z221.string(),
|
|
6143
6154
|
// Page properties
|
|
6144
|
-
title:
|
|
6155
|
+
title: z221.string(),
|
|
6145
6156
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6146
6157
|
// Page placement properties
|
|
6147
|
-
parentPersistentId:
|
|
6148
|
-
afterPersistentId:
|
|
6158
|
+
parentPersistentId: z221.string(),
|
|
6159
|
+
afterPersistentId: z221.string().nullish()
|
|
6149
6160
|
});
|
|
6150
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6161
|
+
var DTOUpdateDocumentationPageInputV2 = z221.object({
|
|
6151
6162
|
// Identifier of the group to update
|
|
6152
|
-
id:
|
|
6163
|
+
id: z221.string(),
|
|
6153
6164
|
// Page properties
|
|
6154
|
-
title:
|
|
6165
|
+
title: z221.string().optional(),
|
|
6155
6166
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6156
6167
|
});
|
|
6157
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6168
|
+
var DTOMoveDocumentationPageInputV2 = z221.object({
|
|
6158
6169
|
// Identifier of the group to update
|
|
6159
|
-
id:
|
|
6170
|
+
id: z221.string(),
|
|
6160
6171
|
// Page placement properties
|
|
6161
|
-
parentPersistentId:
|
|
6162
|
-
afterPersistentId:
|
|
6172
|
+
parentPersistentId: z221.string(),
|
|
6173
|
+
afterPersistentId: z221.string().nullish()
|
|
6163
6174
|
});
|
|
6164
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6175
|
+
var DTODuplicateDocumentationPageInputV2 = z221.object({
|
|
6165
6176
|
// Identifier of the page to duplicate from
|
|
6166
|
-
id:
|
|
6177
|
+
id: z221.string(),
|
|
6167
6178
|
// New page persistent id
|
|
6168
|
-
persistentId:
|
|
6179
|
+
persistentId: z221.string(),
|
|
6169
6180
|
// Page placement properties
|
|
6170
|
-
parentPersistentId:
|
|
6171
|
-
afterPersistentId:
|
|
6181
|
+
parentPersistentId: z221.string(),
|
|
6182
|
+
afterPersistentId: z221.string().nullish()
|
|
6172
6183
|
});
|
|
6173
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6184
|
+
var DTODeleteDocumentationPageInputV2 = z221.object({
|
|
6174
6185
|
// Identifier
|
|
6175
|
-
id:
|
|
6186
|
+
id: z221.string()
|
|
6176
6187
|
});
|
|
6177
|
-
var DTORestoreDocumentationPageInput =
|
|
6178
|
-
persistentId:
|
|
6179
|
-
snapshotId:
|
|
6188
|
+
var DTORestoreDocumentationPageInput = z221.object({
|
|
6189
|
+
persistentId: z221.string(),
|
|
6190
|
+
snapshotId: z221.string().optional()
|
|
6180
6191
|
});
|
|
6181
|
-
var DTORestoreDocumentationGroupInput =
|
|
6182
|
-
persistentId:
|
|
6183
|
-
snapshotId:
|
|
6192
|
+
var DTORestoreDocumentationGroupInput = z221.object({
|
|
6193
|
+
persistentId: z221.string(),
|
|
6194
|
+
snapshotId: z221.string().optional()
|
|
6184
6195
|
});
|
|
6185
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6186
|
-
persistentId:
|
|
6196
|
+
var DTODocumentationPageApprovalStateChangeInput = z221.object({
|
|
6197
|
+
persistentId: z221.string(),
|
|
6187
6198
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6188
6199
|
});
|
|
6189
6200
|
|
|
6190
6201
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6191
|
-
var DTODocumentationPageSnapshot =
|
|
6192
|
-
id:
|
|
6193
|
-
designSystemVersionId:
|
|
6194
|
-
createdAt:
|
|
6195
|
-
updatedAt:
|
|
6202
|
+
var DTODocumentationPageSnapshot = z222.object({
|
|
6203
|
+
id: z222.string(),
|
|
6204
|
+
designSystemVersionId: z222.string(),
|
|
6205
|
+
createdAt: z222.string(),
|
|
6206
|
+
updatedAt: z222.string(),
|
|
6196
6207
|
documentationPage: DTODocumentationPageV2,
|
|
6197
|
-
pageContentHash:
|
|
6208
|
+
pageContentHash: z222.string(),
|
|
6198
6209
|
reason: DesignElementSnapshotReason
|
|
6199
6210
|
});
|
|
6200
6211
|
|
|
6201
6212
|
// src/api/dto/documentation/link-preview.ts
|
|
6202
|
-
import { z as
|
|
6203
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6213
|
+
import { z as z223 } from "zod";
|
|
6214
|
+
var DTODocumentationLinkPreviewResponse = z223.object({
|
|
6204
6215
|
linkPreview: DocumentationLinkPreview
|
|
6205
6216
|
});
|
|
6206
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6207
|
-
url:
|
|
6208
|
-
documentationItemPersistentId:
|
|
6217
|
+
var DTODocumentationLinkPreviewRequest = z223.object({
|
|
6218
|
+
url: z223.string().optional(),
|
|
6219
|
+
documentationItemPersistentId: z223.string().optional()
|
|
6209
6220
|
});
|
|
6210
6221
|
|
|
6211
6222
|
// src/api/dto/documentation/publish.ts
|
|
6212
|
-
import { z as
|
|
6223
|
+
import { z as z227 } from "zod";
|
|
6213
6224
|
|
|
6214
6225
|
// src/api/dto/export/exporter.ts
|
|
6215
|
-
import { z as
|
|
6216
|
-
var DTOExporterType =
|
|
6217
|
-
var DTOExporterSource =
|
|
6218
|
-
var DTOExporterMembershipRole =
|
|
6219
|
-
var DTOExporterListQuery =
|
|
6220
|
-
limit:
|
|
6221
|
-
});
|
|
6222
|
-
var DTOExporter =
|
|
6223
|
-
id:
|
|
6224
|
-
name:
|
|
6225
|
-
isPrivate:
|
|
6226
|
+
import { z as z224 } from "zod";
|
|
6227
|
+
var DTOExporterType = z224.enum(["documentation", "code"]);
|
|
6228
|
+
var DTOExporterSource = z224.enum(["git", "upload"]);
|
|
6229
|
+
var DTOExporterMembershipRole = z224.enum(["Owner", "OwnerArchived", "User"]);
|
|
6230
|
+
var DTOExporterListQuery = z224.object({
|
|
6231
|
+
limit: z224.coerce.number().optional()
|
|
6232
|
+
});
|
|
6233
|
+
var DTOExporter = z224.object({
|
|
6234
|
+
id: z224.string(),
|
|
6235
|
+
name: z224.string(),
|
|
6236
|
+
isPrivate: z224.boolean(),
|
|
6226
6237
|
exporterType: DTOExporterType,
|
|
6227
|
-
isDefaultDocumentationExporter:
|
|
6228
|
-
iconURL:
|
|
6238
|
+
isDefaultDocumentationExporter: z224.boolean(),
|
|
6239
|
+
iconURL: z224.string().optional(),
|
|
6229
6240
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6230
6241
|
customBlocks: PulsarCustomBlock.array(),
|
|
6231
|
-
blockVariants:
|
|
6232
|
-
usesBrands:
|
|
6233
|
-
usesThemes:
|
|
6242
|
+
blockVariants: z224.record(z224.string(), PulsarContributionVariant.array()),
|
|
6243
|
+
usesBrands: z224.boolean(),
|
|
6244
|
+
usesThemes: z224.boolean(),
|
|
6234
6245
|
source: DTOExporterSource,
|
|
6235
|
-
gitUrl: nullishToOptional(
|
|
6236
|
-
gitBranch: nullishToOptional(
|
|
6237
|
-
gitDirectory: nullishToOptional(
|
|
6246
|
+
gitUrl: nullishToOptional(z224.string()),
|
|
6247
|
+
gitBranch: nullishToOptional(z224.string()),
|
|
6248
|
+
gitDirectory: nullishToOptional(z224.string())
|
|
6238
6249
|
});
|
|
6239
|
-
var DTOExporterMembership =
|
|
6240
|
-
workspaceId:
|
|
6241
|
-
exporterId:
|
|
6250
|
+
var DTOExporterMembership = z224.object({
|
|
6251
|
+
workspaceId: z224.string(),
|
|
6252
|
+
exporterId: z224.string(),
|
|
6242
6253
|
role: DTOExporterMembershipRole
|
|
6243
6254
|
});
|
|
6244
|
-
var DTOExporterCreateOutput =
|
|
6255
|
+
var DTOExporterCreateOutput = z224.object({
|
|
6245
6256
|
exporter: DTOExporter,
|
|
6246
6257
|
membership: DTOExporterMembership
|
|
6247
6258
|
});
|
|
6248
|
-
var DTOExporterListResponse =
|
|
6259
|
+
var DTOExporterListResponse = z224.object({
|
|
6249
6260
|
exporters: DTOExporter.array(),
|
|
6250
6261
|
membership: DTOExporterMembership.array()
|
|
6251
6262
|
});
|
|
6252
|
-
var DTOExporterGitProviderEnum =
|
|
6253
|
-
var DTOExporterCreateInput =
|
|
6254
|
-
url:
|
|
6263
|
+
var DTOExporterGitProviderEnum = z224.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6264
|
+
var DTOExporterCreateInput = z224.object({
|
|
6265
|
+
url: z224.string(),
|
|
6255
6266
|
provider: DTOExporterGitProviderEnum
|
|
6256
6267
|
});
|
|
6257
|
-
var DTOExporterUpdateInput =
|
|
6258
|
-
url:
|
|
6268
|
+
var DTOExporterUpdateInput = z224.object({
|
|
6269
|
+
url: z224.string().optional()
|
|
6259
6270
|
});
|
|
6260
6271
|
|
|
6261
6272
|
// src/api/dto/export/filter.ts
|
|
6262
6273
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6263
6274
|
|
|
6264
6275
|
// src/api/dto/export/job.ts
|
|
6265
|
-
import { z as
|
|
6266
|
-
var DTOExportJobCreatedBy =
|
|
6267
|
-
userId:
|
|
6268
|
-
userName:
|
|
6276
|
+
import { z as z225 } from "zod";
|
|
6277
|
+
var DTOExportJobCreatedBy = z225.object({
|
|
6278
|
+
userId: z225.string(),
|
|
6279
|
+
userName: z225.string()
|
|
6269
6280
|
});
|
|
6270
|
-
var DTOExportJobDesignSystemPreview =
|
|
6271
|
-
id:
|
|
6281
|
+
var DTOExportJobDesignSystemPreview = z225.object({
|
|
6282
|
+
id: z225.string(),
|
|
6272
6283
|
meta: ObjectMeta
|
|
6273
6284
|
});
|
|
6274
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6275
|
-
id:
|
|
6285
|
+
var DTOExportJobDesignSystemVersionPreview = z225.object({
|
|
6286
|
+
id: z225.string(),
|
|
6276
6287
|
meta: ObjectMeta,
|
|
6277
|
-
version:
|
|
6278
|
-
isReadonly:
|
|
6288
|
+
version: z225.string(),
|
|
6289
|
+
isReadonly: z225.boolean()
|
|
6279
6290
|
});
|
|
6280
|
-
var DTOExportJobDestinations =
|
|
6291
|
+
var DTOExportJobDestinations = z225.object({
|
|
6281
6292
|
s3: ExporterDestinationS3.optional(),
|
|
6282
6293
|
azure: ExporterDestinationAzure.optional(),
|
|
6283
6294
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6284
6295
|
github: ExporterDestinationGithub.optional(),
|
|
6285
6296
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6286
6297
|
documentation: ExporterDestinationDocs.optional(),
|
|
6287
|
-
webhookUrl:
|
|
6298
|
+
webhookUrl: z225.string().optional()
|
|
6288
6299
|
});
|
|
6289
6300
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6290
6301
|
sndocs: true
|
|
6291
6302
|
}).extend({
|
|
6292
6303
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6293
6304
|
});
|
|
6294
|
-
var DTOExportJob =
|
|
6295
|
-
id:
|
|
6296
|
-
createdAt:
|
|
6297
|
-
finishedAt:
|
|
6298
|
-
index:
|
|
6305
|
+
var DTOExportJob = z225.object({
|
|
6306
|
+
id: z225.string(),
|
|
6307
|
+
createdAt: z225.coerce.date(),
|
|
6308
|
+
finishedAt: z225.coerce.date().optional(),
|
|
6309
|
+
index: z225.number().optional(),
|
|
6299
6310
|
status: ExportJobStatus,
|
|
6300
|
-
estimatedExecutionTime:
|
|
6311
|
+
estimatedExecutionTime: z225.number().optional(),
|
|
6301
6312
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6302
6313
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6303
6314
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6304
6315
|
destinations: DTOExportJobDestinations,
|
|
6305
|
-
exporterId:
|
|
6306
|
-
scheduleId:
|
|
6316
|
+
exporterId: z225.string(),
|
|
6317
|
+
scheduleId: z225.string().optional(),
|
|
6307
6318
|
result: DTOExportJobResult.optional(),
|
|
6308
|
-
brandPersistentId:
|
|
6309
|
-
themePersistentId:
|
|
6310
|
-
themePersistentIds:
|
|
6319
|
+
brandPersistentId: z225.string().optional(),
|
|
6320
|
+
themePersistentId: z225.string().optional(),
|
|
6321
|
+
themePersistentIds: z225.string().array().optional()
|
|
6311
6322
|
});
|
|
6312
|
-
var DTOExportJobResponse =
|
|
6323
|
+
var DTOExportJobResponse = z225.object({
|
|
6313
6324
|
job: DTOExportJob
|
|
6314
6325
|
});
|
|
6315
6326
|
|
|
6316
6327
|
// src/api/dto/export/pipeline.ts
|
|
6317
|
-
import { z as
|
|
6318
|
-
var DTOPipelineListQuery =
|
|
6319
|
-
designSystemId:
|
|
6320
|
-
exporterId:
|
|
6321
|
-
latestJobsLimit:
|
|
6322
|
-
});
|
|
6323
|
-
var DTOPipeline =
|
|
6324
|
-
id:
|
|
6325
|
-
name:
|
|
6328
|
+
import { z as z226 } from "zod";
|
|
6329
|
+
var DTOPipelineListQuery = z226.object({
|
|
6330
|
+
designSystemId: z226.string().optional(),
|
|
6331
|
+
exporterId: z226.string().optional(),
|
|
6332
|
+
latestJobsLimit: z226.coerce.number().optional()
|
|
6333
|
+
});
|
|
6334
|
+
var DTOPipeline = z226.object({
|
|
6335
|
+
id: z226.string(),
|
|
6336
|
+
name: z226.string(),
|
|
6326
6337
|
eventType: PipelineEventType,
|
|
6327
|
-
isEnabled:
|
|
6328
|
-
workspaceId:
|
|
6329
|
-
designSystemId:
|
|
6330
|
-
exporterId:
|
|
6331
|
-
brandPersistentId:
|
|
6332
|
-
themePersistentId:
|
|
6333
|
-
themePersistentIds:
|
|
6338
|
+
isEnabled: z226.boolean(),
|
|
6339
|
+
workspaceId: z226.string(),
|
|
6340
|
+
designSystemId: z226.string(),
|
|
6341
|
+
exporterId: z226.string(),
|
|
6342
|
+
brandPersistentId: z226.string().optional(),
|
|
6343
|
+
themePersistentId: z226.string().optional(),
|
|
6344
|
+
themePersistentIds: z226.string().array().optional(),
|
|
6334
6345
|
...ExportDestinationsMap.shape,
|
|
6335
6346
|
latestJobs: DTOExportJob.array()
|
|
6336
6347
|
});
|
|
6337
|
-
var DTOPipelineListResponse =
|
|
6348
|
+
var DTOPipelineListResponse = z226.object({
|
|
6338
6349
|
pipelines: DTOPipeline.array()
|
|
6339
6350
|
});
|
|
6340
|
-
var DTOPipelineResponse =
|
|
6351
|
+
var DTOPipelineResponse = z226.object({
|
|
6341
6352
|
pipeline: DTOPipeline
|
|
6342
6353
|
});
|
|
6343
6354
|
|
|
6344
6355
|
// src/api/dto/documentation/publish.ts
|
|
6345
6356
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6346
|
-
var DTOPublishDocumentationRequest =
|
|
6357
|
+
var DTOPublishDocumentationRequest = z227.object({
|
|
6347
6358
|
environment: PublishedDocEnvironment,
|
|
6348
6359
|
/**
|
|
6349
6360
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6351,42 +6362,42 @@ var DTOPublishDocumentationRequest = z226.object({
|
|
|
6351
6362
|
*/
|
|
6352
6363
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6353
6364
|
});
|
|
6354
|
-
var DTOPublishDocumentationResponse =
|
|
6365
|
+
var DTOPublishDocumentationResponse = z227.object({
|
|
6355
6366
|
job: DTOExportJob
|
|
6356
6367
|
});
|
|
6357
6368
|
|
|
6358
6369
|
// src/api/dto/elements/components/figma-component.ts
|
|
6359
|
-
import { z as
|
|
6370
|
+
import { z as z228 } from "zod";
|
|
6360
6371
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6361
|
-
var DTOFigmaComponentPropertyMap =
|
|
6362
|
-
var DTOFigmaComponent =
|
|
6363
|
-
id:
|
|
6364
|
-
persistentId:
|
|
6365
|
-
designSystemVersionId:
|
|
6366
|
-
brandId:
|
|
6367
|
-
thumbnailUrl:
|
|
6368
|
-
svgUrl:
|
|
6369
|
-
exportProperties:
|
|
6370
|
-
isAsset:
|
|
6372
|
+
var DTOFigmaComponentPropertyMap = z228.record(DTOFigmaComponentProperty);
|
|
6373
|
+
var DTOFigmaComponent = z228.object({
|
|
6374
|
+
id: z228.string(),
|
|
6375
|
+
persistentId: z228.string(),
|
|
6376
|
+
designSystemVersionId: z228.string(),
|
|
6377
|
+
brandId: z228.string(),
|
|
6378
|
+
thumbnailUrl: z228.string().optional(),
|
|
6379
|
+
svgUrl: z228.string().optional(),
|
|
6380
|
+
exportProperties: z228.object({
|
|
6381
|
+
isAsset: z228.boolean()
|
|
6371
6382
|
}),
|
|
6372
|
-
createdAt:
|
|
6373
|
-
updatedAt:
|
|
6383
|
+
createdAt: z228.coerce.date(),
|
|
6384
|
+
updatedAt: z228.coerce.date(),
|
|
6374
6385
|
meta: ObjectMeta,
|
|
6375
6386
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6376
|
-
parentComponentPersistentId:
|
|
6377
|
-
childrenPersistentIds:
|
|
6387
|
+
parentComponentPersistentId: z228.string().optional(),
|
|
6388
|
+
childrenPersistentIds: z228.string().array().optional(),
|
|
6378
6389
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6379
|
-
variantPropertyValues:
|
|
6390
|
+
variantPropertyValues: z228.record(z228.string()).optional()
|
|
6380
6391
|
});
|
|
6381
|
-
var DTOFigmaComponentListResponse =
|
|
6392
|
+
var DTOFigmaComponentListResponse = z228.object({
|
|
6382
6393
|
components: DTOFigmaComponent.array()
|
|
6383
6394
|
});
|
|
6384
6395
|
|
|
6385
6396
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6386
|
-
import { z as
|
|
6397
|
+
import { z as z230 } from "zod";
|
|
6387
6398
|
|
|
6388
6399
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6389
|
-
import { z as
|
|
6400
|
+
import { z as z229 } from "zod";
|
|
6390
6401
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6391
6402
|
sortOrder: true,
|
|
6392
6403
|
parentPersistentId: true,
|
|
@@ -6396,13 +6407,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6396
6407
|
data: true,
|
|
6397
6408
|
shortPersistentId: true
|
|
6398
6409
|
}).extend({
|
|
6399
|
-
title:
|
|
6400
|
-
isRoot:
|
|
6401
|
-
childrenIds:
|
|
6410
|
+
title: z229.string(),
|
|
6411
|
+
isRoot: z229.boolean(),
|
|
6412
|
+
childrenIds: z229.array(z229.string()),
|
|
6402
6413
|
groupBehavior: DocumentationGroupBehavior,
|
|
6403
|
-
shortPersistentId:
|
|
6414
|
+
shortPersistentId: z229.string(),
|
|
6404
6415
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6405
|
-
type:
|
|
6416
|
+
type: z229.literal("Group"),
|
|
6406
6417
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6407
6418
|
draftState: DTODocumentationDraftState.optional(),
|
|
6408
6419
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6410,127 +6421,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6410
6421
|
//** An approval state for frontend to utilize. */
|
|
6411
6422
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6412
6423
|
});
|
|
6413
|
-
var DTOCreateDocumentationGroupInput =
|
|
6424
|
+
var DTOCreateDocumentationGroupInput = z229.object({
|
|
6414
6425
|
// Identifier
|
|
6415
|
-
persistentId:
|
|
6426
|
+
persistentId: z229.string(),
|
|
6416
6427
|
// Group properties
|
|
6417
|
-
title:
|
|
6428
|
+
title: z229.string(),
|
|
6418
6429
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6419
6430
|
// Group placement properties
|
|
6420
|
-
afterPersistentId:
|
|
6421
|
-
parentPersistentId:
|
|
6431
|
+
afterPersistentId: z229.string().nullish(),
|
|
6432
|
+
parentPersistentId: z229.string()
|
|
6422
6433
|
});
|
|
6423
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6434
|
+
var DTOUpdateDocumentationGroupInput = z229.object({
|
|
6424
6435
|
// Identifier of the group to update
|
|
6425
|
-
id:
|
|
6436
|
+
id: z229.string(),
|
|
6426
6437
|
// Group properties
|
|
6427
|
-
title:
|
|
6438
|
+
title: z229.string().optional(),
|
|
6428
6439
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6429
6440
|
});
|
|
6430
|
-
var DTOMoveDocumentationGroupInput =
|
|
6441
|
+
var DTOMoveDocumentationGroupInput = z229.object({
|
|
6431
6442
|
// Identifier of the group to update
|
|
6432
|
-
id:
|
|
6443
|
+
id: z229.string(),
|
|
6433
6444
|
// Group placement properties
|
|
6434
|
-
parentPersistentId:
|
|
6435
|
-
afterPersistentId:
|
|
6445
|
+
parentPersistentId: z229.string(),
|
|
6446
|
+
afterPersistentId: z229.string().nullish()
|
|
6436
6447
|
});
|
|
6437
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6448
|
+
var DTODuplicateDocumentationGroupInput = z229.object({
|
|
6438
6449
|
// Identifier of the group to duplicate from
|
|
6439
|
-
id:
|
|
6450
|
+
id: z229.string(),
|
|
6440
6451
|
// New group persistent id
|
|
6441
|
-
persistentId:
|
|
6452
|
+
persistentId: z229.string(),
|
|
6442
6453
|
// Group placement properties
|
|
6443
|
-
afterPersistentId:
|
|
6444
|
-
parentPersistentId:
|
|
6454
|
+
afterPersistentId: z229.string().nullish(),
|
|
6455
|
+
parentPersistentId: z229.string()
|
|
6445
6456
|
});
|
|
6446
|
-
var DTOCreateDocumentationTabInput =
|
|
6457
|
+
var DTOCreateDocumentationTabInput = z229.object({
|
|
6447
6458
|
// New group persistent id
|
|
6448
|
-
persistentId:
|
|
6459
|
+
persistentId: z229.string(),
|
|
6449
6460
|
// If this is page, we will attempt to convert it to tab
|
|
6450
6461
|
// If this is tab group, we will add a new tab to it
|
|
6451
|
-
fromItemPersistentId:
|
|
6452
|
-
tabName:
|
|
6462
|
+
fromItemPersistentId: z229.string(),
|
|
6463
|
+
tabName: z229.string()
|
|
6453
6464
|
});
|
|
6454
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6465
|
+
var DTODeleteDocumentationTabGroupInput = z229.object({
|
|
6455
6466
|
// Deleted group id
|
|
6456
|
-
id:
|
|
6467
|
+
id: z229.string()
|
|
6457
6468
|
});
|
|
6458
|
-
var DTODeleteDocumentationGroupInput =
|
|
6469
|
+
var DTODeleteDocumentationGroupInput = z229.object({
|
|
6459
6470
|
// Identifier
|
|
6460
|
-
id:
|
|
6471
|
+
id: z229.string(),
|
|
6461
6472
|
// Deletion options
|
|
6462
|
-
deleteSubtree:
|
|
6473
|
+
deleteSubtree: z229.boolean().default(false)
|
|
6463
6474
|
});
|
|
6464
6475
|
|
|
6465
6476
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6466
|
-
var SuccessPayload =
|
|
6467
|
-
success:
|
|
6477
|
+
var SuccessPayload = z230.object({
|
|
6478
|
+
success: z230.literal(true)
|
|
6468
6479
|
});
|
|
6469
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6470
|
-
type:
|
|
6480
|
+
var DTODocumentationGroupCreateActionOutputV2 = z230.object({
|
|
6481
|
+
type: z230.literal("DocumentationGroupCreate"),
|
|
6471
6482
|
output: SuccessPayload
|
|
6472
6483
|
});
|
|
6473
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6474
|
-
type:
|
|
6484
|
+
var DTODocumentationTabCreateActionOutputV2 = z230.object({
|
|
6485
|
+
type: z230.literal("DocumentationTabCreate"),
|
|
6475
6486
|
output: SuccessPayload
|
|
6476
6487
|
});
|
|
6477
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6478
|
-
type:
|
|
6488
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z230.object({
|
|
6489
|
+
type: z230.literal("DocumentationGroupUpdate"),
|
|
6479
6490
|
output: SuccessPayload
|
|
6480
6491
|
});
|
|
6481
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6482
|
-
type:
|
|
6492
|
+
var DTODocumentationGroupMoveActionOutputV2 = z230.object({
|
|
6493
|
+
type: z230.literal("DocumentationGroupMove"),
|
|
6483
6494
|
output: SuccessPayload
|
|
6484
6495
|
});
|
|
6485
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6486
|
-
type:
|
|
6496
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z230.object({
|
|
6497
|
+
type: z230.literal("DocumentationGroupDuplicate"),
|
|
6487
6498
|
output: SuccessPayload
|
|
6488
6499
|
});
|
|
6489
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6490
|
-
type:
|
|
6500
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z230.object({
|
|
6501
|
+
type: z230.literal("DocumentationGroupDelete"),
|
|
6491
6502
|
output: SuccessPayload
|
|
6492
6503
|
});
|
|
6493
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6494
|
-
type:
|
|
6504
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z230.object({
|
|
6505
|
+
type: z230.literal("DocumentationTabGroupDelete"),
|
|
6495
6506
|
output: SuccessPayload
|
|
6496
6507
|
});
|
|
6497
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6498
|
-
type:
|
|
6508
|
+
var DTODocumentationGroupCreateActionInputV2 = z230.object({
|
|
6509
|
+
type: z230.literal("DocumentationGroupCreate"),
|
|
6499
6510
|
input: DTOCreateDocumentationGroupInput
|
|
6500
6511
|
});
|
|
6501
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6502
|
-
type:
|
|
6512
|
+
var DTODocumentationTabCreateActionInputV2 = z230.object({
|
|
6513
|
+
type: z230.literal("DocumentationTabCreate"),
|
|
6503
6514
|
input: DTOCreateDocumentationTabInput
|
|
6504
6515
|
});
|
|
6505
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6506
|
-
type:
|
|
6516
|
+
var DTODocumentationGroupUpdateActionInputV2 = z230.object({
|
|
6517
|
+
type: z230.literal("DocumentationGroupUpdate"),
|
|
6507
6518
|
input: DTOUpdateDocumentationGroupInput
|
|
6508
6519
|
});
|
|
6509
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6510
|
-
type:
|
|
6520
|
+
var DTODocumentationGroupMoveActionInputV2 = z230.object({
|
|
6521
|
+
type: z230.literal("DocumentationGroupMove"),
|
|
6511
6522
|
input: DTOMoveDocumentationGroupInput
|
|
6512
6523
|
});
|
|
6513
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6514
|
-
type:
|
|
6524
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z230.object({
|
|
6525
|
+
type: z230.literal("DocumentationGroupDuplicate"),
|
|
6515
6526
|
input: DTODuplicateDocumentationGroupInput
|
|
6516
6527
|
});
|
|
6517
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6518
|
-
type:
|
|
6528
|
+
var DTODocumentationGroupDeleteActionInputV2 = z230.object({
|
|
6529
|
+
type: z230.literal("DocumentationGroupDelete"),
|
|
6519
6530
|
input: DTODeleteDocumentationGroupInput
|
|
6520
6531
|
});
|
|
6521
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6522
|
-
type:
|
|
6532
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z230.object({
|
|
6533
|
+
type: z230.literal("DocumentationTabGroupDelete"),
|
|
6523
6534
|
input: DTODeleteDocumentationTabGroupInput
|
|
6524
6535
|
});
|
|
6525
6536
|
|
|
6526
6537
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6527
|
-
import { z as
|
|
6538
|
+
import { z as z232 } from "zod";
|
|
6528
6539
|
|
|
6529
6540
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6530
|
-
import { z as
|
|
6531
|
-
var DocumentationColorV1 =
|
|
6532
|
-
aliasTo:
|
|
6533
|
-
value:
|
|
6541
|
+
import { z as z231 } from "zod";
|
|
6542
|
+
var DocumentationColorV1 = z231.object({
|
|
6543
|
+
aliasTo: z231.string().optional(),
|
|
6544
|
+
value: z231.string().optional()
|
|
6534
6545
|
});
|
|
6535
6546
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6536
6547
|
foregroundColor: true,
|
|
@@ -6539,10 +6550,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6539
6550
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6540
6551
|
backgroundColor: DocumentationColorV1.optional()
|
|
6541
6552
|
});
|
|
6542
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6543
|
-
showSidebar:
|
|
6544
|
-
isPrivate:
|
|
6545
|
-
isHidden:
|
|
6553
|
+
var DTODocumentationItemConfigurationV1 = z231.object({
|
|
6554
|
+
showSidebar: z231.boolean(),
|
|
6555
|
+
isPrivate: z231.boolean(),
|
|
6556
|
+
isHidden: z231.boolean(),
|
|
6546
6557
|
header: DTODocumentationItemHeaderV1
|
|
6547
6558
|
});
|
|
6548
6559
|
|
|
@@ -6556,27 +6567,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6556
6567
|
data: true,
|
|
6557
6568
|
shortPersistentId: true
|
|
6558
6569
|
}).extend({
|
|
6559
|
-
title:
|
|
6560
|
-
isRoot:
|
|
6561
|
-
childrenIds:
|
|
6570
|
+
title: z232.string(),
|
|
6571
|
+
isRoot: z232.boolean(),
|
|
6572
|
+
childrenIds: z232.array(z232.string()),
|
|
6562
6573
|
groupBehavior: DocumentationGroupBehavior,
|
|
6563
|
-
shortPersistentId:
|
|
6564
|
-
type:
|
|
6574
|
+
shortPersistentId: z232.string(),
|
|
6575
|
+
type: z232.literal("Group")
|
|
6565
6576
|
});
|
|
6566
6577
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6567
6578
|
configuration: DTODocumentationItemConfigurationV1
|
|
6568
6579
|
});
|
|
6569
6580
|
|
|
6570
6581
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6571
|
-
import { z as
|
|
6572
|
-
var DTODocumentationHierarchyV2 =
|
|
6573
|
-
pages:
|
|
6582
|
+
import { z as z233 } from "zod";
|
|
6583
|
+
var DTODocumentationHierarchyV2 = z233.object({
|
|
6584
|
+
pages: z233.array(
|
|
6574
6585
|
DTODocumentationPageV2.extend({
|
|
6575
6586
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6576
6587
|
draftState: DTODocumentationDraftState.optional()
|
|
6577
6588
|
})
|
|
6578
6589
|
),
|
|
6579
|
-
groups:
|
|
6590
|
+
groups: z233.array(
|
|
6580
6591
|
DTODocumentationGroupV2.extend({
|
|
6581
6592
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6582
6593
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6585,84 +6596,84 @@ var DTODocumentationHierarchyV2 = z232.object({
|
|
|
6585
6596
|
});
|
|
6586
6597
|
|
|
6587
6598
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6588
|
-
import { z as
|
|
6589
|
-
var SuccessPayload2 =
|
|
6590
|
-
success:
|
|
6599
|
+
import { z as z234 } from "zod";
|
|
6600
|
+
var SuccessPayload2 = z234.object({
|
|
6601
|
+
success: z234.literal(true)
|
|
6591
6602
|
});
|
|
6592
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6593
|
-
type:
|
|
6603
|
+
var DTODocumentationPageCreateActionOutputV2 = z234.object({
|
|
6604
|
+
type: z234.literal("DocumentationPageCreate"),
|
|
6594
6605
|
output: SuccessPayload2
|
|
6595
6606
|
});
|
|
6596
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6597
|
-
type:
|
|
6607
|
+
var DTODocumentationPageUpdateActionOutputV2 = z234.object({
|
|
6608
|
+
type: z234.literal("DocumentationPageUpdate"),
|
|
6598
6609
|
output: SuccessPayload2
|
|
6599
6610
|
});
|
|
6600
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6601
|
-
type:
|
|
6611
|
+
var DTODocumentationPageMoveActionOutputV2 = z234.object({
|
|
6612
|
+
type: z234.literal("DocumentationPageMove"),
|
|
6602
6613
|
output: SuccessPayload2
|
|
6603
6614
|
});
|
|
6604
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6605
|
-
type:
|
|
6615
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z234.object({
|
|
6616
|
+
type: z234.literal("DocumentationPageDuplicate"),
|
|
6606
6617
|
output: SuccessPayload2
|
|
6607
6618
|
});
|
|
6608
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6609
|
-
type:
|
|
6619
|
+
var DTODocumentationPageDeleteActionOutputV2 = z234.object({
|
|
6620
|
+
type: z234.literal("DocumentationPageDelete"),
|
|
6610
6621
|
output: SuccessPayload2
|
|
6611
6622
|
});
|
|
6612
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6613
|
-
type:
|
|
6623
|
+
var DTODocumentationPageRestoreActionOutput = z234.object({
|
|
6624
|
+
type: z234.literal("DocumentationPageRestore"),
|
|
6614
6625
|
output: SuccessPayload2
|
|
6615
6626
|
});
|
|
6616
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6617
|
-
type:
|
|
6627
|
+
var DTODocumentationGroupRestoreActionOutput = z234.object({
|
|
6628
|
+
type: z234.literal("DocumentationGroupRestore"),
|
|
6618
6629
|
output: SuccessPayload2
|
|
6619
6630
|
});
|
|
6620
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6621
|
-
type:
|
|
6631
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z234.object({
|
|
6632
|
+
type: z234.literal("DocumentationPageApprovalStateChange"),
|
|
6622
6633
|
output: SuccessPayload2
|
|
6623
6634
|
});
|
|
6624
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6625
|
-
type:
|
|
6635
|
+
var DTODocumentationPageCreateActionInputV2 = z234.object({
|
|
6636
|
+
type: z234.literal("DocumentationPageCreate"),
|
|
6626
6637
|
input: DTOCreateDocumentationPageInputV2
|
|
6627
6638
|
});
|
|
6628
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6629
|
-
type:
|
|
6639
|
+
var DTODocumentationPageUpdateActionInputV2 = z234.object({
|
|
6640
|
+
type: z234.literal("DocumentationPageUpdate"),
|
|
6630
6641
|
input: DTOUpdateDocumentationPageInputV2
|
|
6631
6642
|
});
|
|
6632
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6633
|
-
type:
|
|
6643
|
+
var DTODocumentationPageMoveActionInputV2 = z234.object({
|
|
6644
|
+
type: z234.literal("DocumentationPageMove"),
|
|
6634
6645
|
input: DTOMoveDocumentationPageInputV2
|
|
6635
6646
|
});
|
|
6636
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6637
|
-
type:
|
|
6647
|
+
var DTODocumentationPageDuplicateActionInputV2 = z234.object({
|
|
6648
|
+
type: z234.literal("DocumentationPageDuplicate"),
|
|
6638
6649
|
input: DTODuplicateDocumentationPageInputV2
|
|
6639
6650
|
});
|
|
6640
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6641
|
-
type:
|
|
6651
|
+
var DTODocumentationPageDeleteActionInputV2 = z234.object({
|
|
6652
|
+
type: z234.literal("DocumentationPageDelete"),
|
|
6642
6653
|
input: DTODeleteDocumentationPageInputV2
|
|
6643
6654
|
});
|
|
6644
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6645
|
-
type:
|
|
6655
|
+
var DTODocumentationPageRestoreActionInput = z234.object({
|
|
6656
|
+
type: z234.literal("DocumentationPageRestore"),
|
|
6646
6657
|
input: DTORestoreDocumentationPageInput
|
|
6647
6658
|
});
|
|
6648
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6649
|
-
type:
|
|
6659
|
+
var DTODocumentationGroupRestoreActionInput = z234.object({
|
|
6660
|
+
type: z234.literal("DocumentationGroupRestore"),
|
|
6650
6661
|
input: DTORestoreDocumentationGroupInput
|
|
6651
6662
|
});
|
|
6652
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6653
|
-
type:
|
|
6663
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z234.object({
|
|
6664
|
+
type: z234.literal("DocumentationPageApprovalStateChange"),
|
|
6654
6665
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6655
6666
|
});
|
|
6656
6667
|
|
|
6657
6668
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6658
|
-
import { z as
|
|
6669
|
+
import { z as z235 } from "zod";
|
|
6659
6670
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6660
|
-
var DTODocumentationPageContentGetResponse =
|
|
6671
|
+
var DTODocumentationPageContentGetResponse = z235.object({
|
|
6661
6672
|
pageContent: DTODocumentationPageContent
|
|
6662
6673
|
});
|
|
6663
6674
|
|
|
6664
6675
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6665
|
-
import { z as
|
|
6676
|
+
import { z as z236 } from "zod";
|
|
6666
6677
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6667
6678
|
data: true,
|
|
6668
6679
|
meta: true,
|
|
@@ -6670,32 +6681,63 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6670
6681
|
sortOrder: true
|
|
6671
6682
|
}).extend({
|
|
6672
6683
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6673
|
-
blocks:
|
|
6674
|
-
title:
|
|
6675
|
-
path:
|
|
6684
|
+
blocks: z236.array(PageBlockV1),
|
|
6685
|
+
title: z236.string(),
|
|
6686
|
+
path: z236.string()
|
|
6687
|
+
});
|
|
6688
|
+
|
|
6689
|
+
// src/api/dto/elements/documentation/structure.ts
|
|
6690
|
+
import { z as z237 } from "zod";
|
|
6691
|
+
var DTODocumentationStructureItemType = z237.enum(["Group", "Page"]);
|
|
6692
|
+
var DTODocumentationStructureItemBase = z237.object({
|
|
6693
|
+
type: DTODocumentationStructureItemType,
|
|
6694
|
+
id: z237.string(),
|
|
6695
|
+
designSystemVersionId: z237.string(),
|
|
6696
|
+
shortPersistentId: z237.string(),
|
|
6697
|
+
persistentId: z237.string(),
|
|
6698
|
+
title: z237.string(),
|
|
6699
|
+
createdAt: z237.coerce.date(),
|
|
6700
|
+
updatedAt: z237.coerce.date()
|
|
6701
|
+
});
|
|
6702
|
+
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
6703
|
+
type: z237.literal(DTODocumentationStructureItemType.enum.Group),
|
|
6704
|
+
groupBehavior: z237.string(),
|
|
6705
|
+
childrenIds: z237.string().array(),
|
|
6706
|
+
isRoot: z237.boolean()
|
|
6707
|
+
});
|
|
6708
|
+
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
6709
|
+
type: z237.literal(DTODocumentationStructureItemType.enum.Page),
|
|
6710
|
+
path: z237.string()
|
|
6711
|
+
});
|
|
6712
|
+
var DTODocumentationStructureItem = z237.discriminatedUnion("type", [
|
|
6713
|
+
DTODocumentationStructureGroupItem,
|
|
6714
|
+
DTODocumentationStructurePageItem
|
|
6715
|
+
]);
|
|
6716
|
+
var DTODocumentationStructure = z237.object({
|
|
6717
|
+
items: z237.array(DTODocumentationStructureItem)
|
|
6676
6718
|
});
|
|
6677
6719
|
|
|
6678
6720
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6679
|
-
import { z as
|
|
6721
|
+
import { z as z238 } from "zod";
|
|
6680
6722
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6681
|
-
var DTOFigmaNodeOrigin =
|
|
6682
|
-
sourceId:
|
|
6683
|
-
fileId:
|
|
6684
|
-
parentName:
|
|
6723
|
+
var DTOFigmaNodeOrigin = z238.object({
|
|
6724
|
+
sourceId: z238.string(),
|
|
6725
|
+
fileId: z238.string().optional(),
|
|
6726
|
+
parentName: z238.string().optional()
|
|
6685
6727
|
});
|
|
6686
|
-
var DTOFigmaNodeData =
|
|
6728
|
+
var DTOFigmaNodeData = z238.object({
|
|
6687
6729
|
// Id of the node in the Figma file
|
|
6688
|
-
figmaNodeId:
|
|
6730
|
+
figmaNodeId: z238.string(),
|
|
6689
6731
|
// Validity
|
|
6690
|
-
isValid:
|
|
6732
|
+
isValid: z238.boolean(),
|
|
6691
6733
|
// Asset data
|
|
6692
|
-
assetId:
|
|
6693
|
-
assetUrl:
|
|
6734
|
+
assetId: z238.string(),
|
|
6735
|
+
assetUrl: z238.string(),
|
|
6694
6736
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6695
6737
|
// Asset metadata
|
|
6696
|
-
assetScale:
|
|
6697
|
-
assetWidth:
|
|
6698
|
-
assetHeight:
|
|
6738
|
+
assetScale: z238.number(),
|
|
6739
|
+
assetWidth: z238.number().optional(),
|
|
6740
|
+
assetHeight: z238.number().optional()
|
|
6699
6741
|
});
|
|
6700
6742
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6701
6743
|
data: true,
|
|
@@ -6704,15 +6746,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6704
6746
|
data: DTOFigmaNodeData,
|
|
6705
6747
|
origin: DTOFigmaNodeOrigin
|
|
6706
6748
|
});
|
|
6707
|
-
var DTOFigmaNodeRenderInput =
|
|
6749
|
+
var DTOFigmaNodeRenderInput = z238.object({
|
|
6708
6750
|
/**
|
|
6709
6751
|
* Id of a design system's data source representing a linked Figma file
|
|
6710
6752
|
*/
|
|
6711
|
-
sourceId:
|
|
6753
|
+
sourceId: z238.string(),
|
|
6712
6754
|
/**
|
|
6713
6755
|
* Id of a node within the Figma file
|
|
6714
6756
|
*/
|
|
6715
|
-
figmaFileNodeId:
|
|
6757
|
+
figmaFileNodeId: z238.string(),
|
|
6716
6758
|
/**
|
|
6717
6759
|
* Format in which the node must be rendered, png by default.
|
|
6718
6760
|
*/
|
|
@@ -6720,82 +6762,84 @@ var DTOFigmaNodeRenderInput = z236.object({
|
|
|
6720
6762
|
});
|
|
6721
6763
|
|
|
6722
6764
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6723
|
-
import { z as
|
|
6724
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6725
|
-
type:
|
|
6726
|
-
figmaNodes:
|
|
6765
|
+
import { z as z239 } from "zod";
|
|
6766
|
+
var DTOFigmaNodeRenderActionOutput = z239.object({
|
|
6767
|
+
type: z239.literal("FigmaNodeRender"),
|
|
6768
|
+
figmaNodes: z239.array(DTOFigmaNode)
|
|
6727
6769
|
});
|
|
6728
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6729
|
-
type:
|
|
6770
|
+
var DTOFigmaNodeRenderActionInput = z239.object({
|
|
6771
|
+
type: z239.literal("FigmaNodeRender"),
|
|
6730
6772
|
input: DTOFigmaNodeRenderInput.array()
|
|
6731
6773
|
});
|
|
6732
6774
|
|
|
6733
6775
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6734
|
-
import { z as
|
|
6776
|
+
import { z as z240 } from "zod";
|
|
6735
6777
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6736
|
-
var DTOElementPropertyDefinitionOption =
|
|
6737
|
-
id:
|
|
6738
|
-
name:
|
|
6778
|
+
var DTOElementPropertyDefinitionOption = z240.object({
|
|
6779
|
+
id: z240.string(),
|
|
6780
|
+
name: z240.string(),
|
|
6739
6781
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
6740
6782
|
});
|
|
6741
|
-
var DTOElementPropertyDefinition =
|
|
6742
|
-
id:
|
|
6743
|
-
designSystemVersionId:
|
|
6783
|
+
var DTOElementPropertyDefinition = z240.object({
|
|
6784
|
+
id: z240.string(),
|
|
6785
|
+
designSystemVersionId: z240.string(),
|
|
6744
6786
|
meta: DTOObjectMeta,
|
|
6745
|
-
persistentId:
|
|
6787
|
+
persistentId: z240.string(),
|
|
6746
6788
|
type: ElementPropertyTypeSchema,
|
|
6747
6789
|
targetElementType: ElementPropertyTargetType,
|
|
6748
|
-
codeName:
|
|
6749
|
-
options: nullishToOptional(
|
|
6750
|
-
linkElementType: nullishToOptional(ElementPropertyLinkType)
|
|
6790
|
+
codeName: z240.string().regex(CODE_NAME_REGEX2),
|
|
6791
|
+
options: nullishToOptional(z240.array(DTOElementPropertyDefinitionOption)),
|
|
6792
|
+
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6793
|
+
isImmutable: z240.boolean(),
|
|
6794
|
+
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
6751
6795
|
});
|
|
6752
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
6753
|
-
definitions:
|
|
6796
|
+
var DTOElementPropertyDefinitionListResponse = z240.object({
|
|
6797
|
+
definitions: z240.array(DTOElementPropertyDefinition)
|
|
6754
6798
|
});
|
|
6755
|
-
var DTOElementPropertyDefinitionResponse =
|
|
6799
|
+
var DTOElementPropertyDefinitionResponse = z240.object({
|
|
6756
6800
|
definition: DTOElementPropertyDefinition
|
|
6757
6801
|
});
|
|
6758
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
6802
|
+
var DTOElementPropertyDefinitionCreatePayload = z240.object({
|
|
6759
6803
|
meta: DTOObjectMeta,
|
|
6760
|
-
persistentId:
|
|
6804
|
+
persistentId: z240.string(),
|
|
6761
6805
|
type: ElementPropertyTypeSchema,
|
|
6762
6806
|
targetElementType: ElementPropertyTargetType,
|
|
6763
|
-
codeName:
|
|
6764
|
-
options: nullishToOptional(
|
|
6807
|
+
codeName: z240.string().regex(CODE_NAME_REGEX2),
|
|
6808
|
+
options: nullishToOptional(z240.array(DTOElementPropertyDefinitionOption)),
|
|
6765
6809
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6766
|
-
columnWidth:
|
|
6810
|
+
columnWidth: z240.number().max(1024).optional()
|
|
6767
6811
|
});
|
|
6768
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
6812
|
+
var DTOElementPropertyDefinitionUpdatePayload = z240.object({
|
|
6769
6813
|
meta: DTOObjectMeta.optional(),
|
|
6770
|
-
codeName:
|
|
6771
|
-
options:
|
|
6814
|
+
codeName: z240.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6815
|
+
options: z240.array(DTOElementPropertyDefinitionOption).optional()
|
|
6772
6816
|
});
|
|
6773
6817
|
|
|
6774
6818
|
// src/api/dto/elements/properties/property-values.ts
|
|
6775
|
-
import { z as
|
|
6776
|
-
var DTOElementPropertyValue =
|
|
6777
|
-
id:
|
|
6778
|
-
designSystemVersionId:
|
|
6779
|
-
definitionId:
|
|
6780
|
-
targetElementId:
|
|
6781
|
-
value:
|
|
6782
|
-
valuePreview:
|
|
6783
|
-
});
|
|
6784
|
-
var DTOElementPropertyValueListResponse =
|
|
6785
|
-
values:
|
|
6786
|
-
});
|
|
6787
|
-
var DTOElementPropertyValueResponse =
|
|
6819
|
+
import { z as z241 } from "zod";
|
|
6820
|
+
var DTOElementPropertyValue = z241.object({
|
|
6821
|
+
id: z241.string(),
|
|
6822
|
+
designSystemVersionId: z241.string(),
|
|
6823
|
+
definitionId: z241.string(),
|
|
6824
|
+
targetElementId: z241.string(),
|
|
6825
|
+
value: z241.union([z241.string(), z241.number(), z241.boolean()]).optional(),
|
|
6826
|
+
valuePreview: z241.string().optional()
|
|
6827
|
+
});
|
|
6828
|
+
var DTOElementPropertyValueListResponse = z241.object({
|
|
6829
|
+
values: z241.array(DTOElementPropertyValue)
|
|
6830
|
+
});
|
|
6831
|
+
var DTOElementPropertyValueResponse = z241.object({
|
|
6788
6832
|
value: DTOElementPropertyValue
|
|
6789
6833
|
});
|
|
6790
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
6791
|
-
definitionId:
|
|
6792
|
-
targetElementId:
|
|
6793
|
-
value:
|
|
6834
|
+
var DTOElementPropertyValueUpsertPaylod = z241.object({
|
|
6835
|
+
definitionId: z241.string(),
|
|
6836
|
+
targetElementId: z241.string(),
|
|
6837
|
+
value: z241.string().or(z241.number()).or(z241.boolean())
|
|
6794
6838
|
});
|
|
6795
6839
|
|
|
6796
6840
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6797
|
-
import { z as
|
|
6798
|
-
var DTOElementActionOutput =
|
|
6841
|
+
import { z as z242 } from "zod";
|
|
6842
|
+
var DTOElementActionOutput = z242.discriminatedUnion("type", [
|
|
6799
6843
|
// Documentation pages
|
|
6800
6844
|
DTODocumentationPageCreateActionOutputV2,
|
|
6801
6845
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6818,7 +6862,7 @@ var DTOElementActionOutput = z240.discriminatedUnion("type", [
|
|
|
6818
6862
|
// Approvals
|
|
6819
6863
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6820
6864
|
]);
|
|
6821
|
-
var DTOElementActionInput =
|
|
6865
|
+
var DTOElementActionInput = z242.discriminatedUnion("type", [
|
|
6822
6866
|
// Documentation pages
|
|
6823
6867
|
DTODocumentationPageCreateActionInputV2,
|
|
6824
6868
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6843,80 +6887,80 @@ var DTOElementActionInput = z240.discriminatedUnion("type", [
|
|
|
6843
6887
|
]);
|
|
6844
6888
|
|
|
6845
6889
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6846
|
-
import { z as
|
|
6847
|
-
var DTOElementsGetTypeFilter =
|
|
6848
|
-
var DTOElementsGetQuerySchema =
|
|
6849
|
-
types:
|
|
6890
|
+
import { z as z243 } from "zod";
|
|
6891
|
+
var DTOElementsGetTypeFilter = z243.enum(["FigmaNode"]);
|
|
6892
|
+
var DTOElementsGetQuerySchema = z243.object({
|
|
6893
|
+
types: z243.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6850
6894
|
});
|
|
6851
|
-
var DTOElementsGetOutput =
|
|
6852
|
-
figmaNodes:
|
|
6895
|
+
var DTOElementsGetOutput = z243.object({
|
|
6896
|
+
figmaNodes: z243.array(DTOFigmaNode).optional()
|
|
6853
6897
|
});
|
|
6854
6898
|
|
|
6855
6899
|
// src/api/dto/figma-components/assets/download.ts
|
|
6856
|
-
import { z as
|
|
6857
|
-
var DTOAssetRenderConfiguration =
|
|
6858
|
-
prefix:
|
|
6859
|
-
suffix:
|
|
6860
|
-
scale:
|
|
6861
|
-
format:
|
|
6862
|
-
});
|
|
6863
|
-
var DTORenderedAssetFile =
|
|
6864
|
-
assetId:
|
|
6865
|
-
fileName:
|
|
6866
|
-
sourceUrl:
|
|
6900
|
+
import { z as z244 } from "zod";
|
|
6901
|
+
var DTOAssetRenderConfiguration = z244.object({
|
|
6902
|
+
prefix: z244.string().optional(),
|
|
6903
|
+
suffix: z244.string().optional(),
|
|
6904
|
+
scale: z244.enum(["x1", "x2", "x3", "x4"]),
|
|
6905
|
+
format: z244.enum(["png", "pdf", "svg"])
|
|
6906
|
+
});
|
|
6907
|
+
var DTORenderedAssetFile = z244.object({
|
|
6908
|
+
assetId: z244.string(),
|
|
6909
|
+
fileName: z244.string(),
|
|
6910
|
+
sourceUrl: z244.string(),
|
|
6867
6911
|
settings: DTOAssetRenderConfiguration,
|
|
6868
|
-
originalName:
|
|
6912
|
+
originalName: z244.string()
|
|
6869
6913
|
});
|
|
6870
|
-
var DTODownloadAssetsRequest =
|
|
6871
|
-
persistentIds:
|
|
6914
|
+
var DTODownloadAssetsRequest = z244.object({
|
|
6915
|
+
persistentIds: z244.array(z244.string().uuid()).optional(),
|
|
6872
6916
|
settings: DTOAssetRenderConfiguration.array()
|
|
6873
6917
|
});
|
|
6874
|
-
var DTODownloadAssetsResponse =
|
|
6918
|
+
var DTODownloadAssetsResponse = z244.object({
|
|
6875
6919
|
items: DTORenderedAssetFile.array()
|
|
6876
6920
|
});
|
|
6877
6921
|
|
|
6878
6922
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6879
|
-
import { z as
|
|
6880
|
-
var DTOLiveblocksAuthResponse =
|
|
6881
|
-
token:
|
|
6923
|
+
import { z as z245 } from "zod";
|
|
6924
|
+
var DTOLiveblocksAuthResponse = z245.object({
|
|
6925
|
+
token: z245.string()
|
|
6882
6926
|
});
|
|
6883
6927
|
|
|
6884
6928
|
// src/api/dto/themes/override.ts
|
|
6885
|
-
import { z as
|
|
6929
|
+
import { z as z246 } from "zod";
|
|
6886
6930
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
6887
|
-
|
|
6888
|
-
tokenPersistentId:
|
|
6931
|
+
z246.object({
|
|
6932
|
+
tokenPersistentId: z246.string(),
|
|
6889
6933
|
origin: ThemeOverrideOrigin.optional()
|
|
6890
6934
|
})
|
|
6891
6935
|
);
|
|
6892
6936
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
6893
|
-
|
|
6894
|
-
tokenPersistentId:
|
|
6937
|
+
z246.object({
|
|
6938
|
+
tokenPersistentId: z246.string()
|
|
6895
6939
|
})
|
|
6896
6940
|
);
|
|
6897
6941
|
|
|
6898
6942
|
// src/api/dto/themes/theme.ts
|
|
6899
|
-
import { z as
|
|
6900
|
-
var DTOTheme =
|
|
6901
|
-
id:
|
|
6902
|
-
persistentId:
|
|
6903
|
-
designSystemVersionId:
|
|
6904
|
-
brandId:
|
|
6943
|
+
import { z as z247 } from "zod";
|
|
6944
|
+
var DTOTheme = z247.object({
|
|
6945
|
+
id: z247.string(),
|
|
6946
|
+
persistentId: z247.string(),
|
|
6947
|
+
designSystemVersionId: z247.string(),
|
|
6948
|
+
brandId: z247.string(),
|
|
6905
6949
|
meta: ObjectMeta,
|
|
6906
|
-
codeName:
|
|
6950
|
+
codeName: z247.string(),
|
|
6907
6951
|
overrides: DTOThemeOverride.array()
|
|
6908
6952
|
});
|
|
6909
|
-
var DTOThemeResponse =
|
|
6953
|
+
var DTOThemeResponse = z247.object({
|
|
6910
6954
|
theme: DTOTheme
|
|
6911
6955
|
});
|
|
6912
|
-
var DTOThemeListResponse =
|
|
6956
|
+
var DTOThemeListResponse = z247.object({
|
|
6913
6957
|
themes: DTOTheme.array()
|
|
6914
6958
|
});
|
|
6915
|
-
var DTOThemeCreatePayload =
|
|
6959
|
+
var DTOThemeCreatePayload = z247.object({
|
|
6916
6960
|
meta: ObjectMeta,
|
|
6917
|
-
persistentId:
|
|
6918
|
-
brandId:
|
|
6919
|
-
codeName:
|
|
6961
|
+
persistentId: z247.string(),
|
|
6962
|
+
brandId: z247.string(),
|
|
6963
|
+
codeName: z247.string(),
|
|
6920
6964
|
overrides: DTOThemeOverride.array()
|
|
6921
6965
|
});
|
|
6922
6966
|
|
|
@@ -7006,6 +7050,40 @@ var BrandsEndpoint = class {
|
|
|
7006
7050
|
}
|
|
7007
7051
|
};
|
|
7008
7052
|
|
|
7053
|
+
// src/api/endpoints/design-system/versions/components.ts
|
|
7054
|
+
import { z as z248 } from "zod";
|
|
7055
|
+
var DesignSystemComponentEndpoint = class {
|
|
7056
|
+
constructor(requestExecutor) {
|
|
7057
|
+
this.requestExecutor = requestExecutor;
|
|
7058
|
+
}
|
|
7059
|
+
async create(dsId, vId, body) {
|
|
7060
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/design-system-components`, z248.any(), {
|
|
7061
|
+
body,
|
|
7062
|
+
method: "POST"
|
|
7063
|
+
});
|
|
7064
|
+
}
|
|
7065
|
+
};
|
|
7066
|
+
|
|
7067
|
+
// src/api/endpoints/design-system/versions/elements-actions.ts
|
|
7068
|
+
var ElementsActionsEndpoint = class {
|
|
7069
|
+
constructor(requestExecutor) {
|
|
7070
|
+
this.requestExecutor = requestExecutor;
|
|
7071
|
+
}
|
|
7072
|
+
async createDocPage(dsId, vId, input) {
|
|
7073
|
+
return this.requestExecutor.json(
|
|
7074
|
+
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7075
|
+
DTOElementActionOutput,
|
|
7076
|
+
{
|
|
7077
|
+
body: {
|
|
7078
|
+
type: "DocumentationPageCreate",
|
|
7079
|
+
input
|
|
7080
|
+
},
|
|
7081
|
+
method: "POST"
|
|
7082
|
+
}
|
|
7083
|
+
);
|
|
7084
|
+
}
|
|
7085
|
+
};
|
|
7086
|
+
|
|
7009
7087
|
// src/api/endpoints/design-system/versions/import-jobs.ts
|
|
7010
7088
|
var ImportJobsEndpoint = class {
|
|
7011
7089
|
constructor(requestExecutor) {
|
|
@@ -7020,7 +7098,7 @@ var ImportJobsEndpoint = class {
|
|
|
7020
7098
|
};
|
|
7021
7099
|
|
|
7022
7100
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
7023
|
-
import { z as
|
|
7101
|
+
import { z as z249 } from "zod";
|
|
7024
7102
|
var OverridesEndpoint = class {
|
|
7025
7103
|
constructor(requestExecutor) {
|
|
7026
7104
|
this.requestExecutor = requestExecutor;
|
|
@@ -7028,7 +7106,7 @@ var OverridesEndpoint = class {
|
|
|
7028
7106
|
create(dsId, versionId, themeId, body) {
|
|
7029
7107
|
return this.requestExecutor.json(
|
|
7030
7108
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
7031
|
-
|
|
7109
|
+
z249.any(),
|
|
7032
7110
|
{
|
|
7033
7111
|
method: "POST",
|
|
7034
7112
|
body
|
|
@@ -7038,7 +7116,7 @@ var OverridesEndpoint = class {
|
|
|
7038
7116
|
};
|
|
7039
7117
|
|
|
7040
7118
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7041
|
-
import { z as
|
|
7119
|
+
import { z as z250 } from "zod";
|
|
7042
7120
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
7043
7121
|
constructor(requestExecutor) {
|
|
7044
7122
|
this.requestExecutor = requestExecutor;
|
|
@@ -7066,7 +7144,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
7066
7144
|
delete(designSystemId, versionId, defId) {
|
|
7067
7145
|
return this.requestExecutor.json(
|
|
7068
7146
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7069
|
-
|
|
7147
|
+
z250.any(),
|
|
7070
7148
|
{ method: "DELETE" }
|
|
7071
7149
|
);
|
|
7072
7150
|
}
|
|
@@ -7105,7 +7183,7 @@ var VersionStatsEndpoint = class {
|
|
|
7105
7183
|
};
|
|
7106
7184
|
|
|
7107
7185
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
7108
|
-
import { z as
|
|
7186
|
+
import { z as z251 } from "zod";
|
|
7109
7187
|
var ThemesEndpoint = class {
|
|
7110
7188
|
constructor(requestExecutor) {
|
|
7111
7189
|
this.requestExecutor = requestExecutor;
|
|
@@ -7128,7 +7206,7 @@ var ThemesEndpoint = class {
|
|
|
7128
7206
|
});
|
|
7129
7207
|
}
|
|
7130
7208
|
delete(dsId, versionId, themeId) {
|
|
7131
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
7209
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z251.any(), {
|
|
7132
7210
|
method: "DELETE"
|
|
7133
7211
|
});
|
|
7134
7212
|
}
|
|
@@ -7195,40 +7273,6 @@ var TokensEndpoint = class {
|
|
|
7195
7273
|
}
|
|
7196
7274
|
};
|
|
7197
7275
|
|
|
7198
|
-
// src/api/endpoints/design-system/versions/components.ts
|
|
7199
|
-
import { z as z249 } from "zod";
|
|
7200
|
-
var DesignSystemComponentEndpoint = class {
|
|
7201
|
-
constructor(requestExecutor) {
|
|
7202
|
-
this.requestExecutor = requestExecutor;
|
|
7203
|
-
}
|
|
7204
|
-
async create(dsId, vId, body) {
|
|
7205
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/design-system-components`, z249.any(), {
|
|
7206
|
-
body,
|
|
7207
|
-
method: "POST"
|
|
7208
|
-
});
|
|
7209
|
-
}
|
|
7210
|
-
};
|
|
7211
|
-
|
|
7212
|
-
// src/api/endpoints/design-system/versions/elements-actions.ts
|
|
7213
|
-
var ElementsActionsEndpoint = class {
|
|
7214
|
-
constructor(requestExecutor) {
|
|
7215
|
-
this.requestExecutor = requestExecutor;
|
|
7216
|
-
}
|
|
7217
|
-
async createDocPage(dsId, vId, input) {
|
|
7218
|
-
return this.requestExecutor.json(
|
|
7219
|
-
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7220
|
-
DTOElementActionOutput,
|
|
7221
|
-
{
|
|
7222
|
-
body: {
|
|
7223
|
-
type: "DocumentationPageCreate",
|
|
7224
|
-
input
|
|
7225
|
-
},
|
|
7226
|
-
method: "POST"
|
|
7227
|
-
}
|
|
7228
|
-
);
|
|
7229
|
-
}
|
|
7230
|
-
};
|
|
7231
|
-
|
|
7232
7276
|
// src/api/endpoints/design-system/versions/versions.ts
|
|
7233
7277
|
var DesignSystemVersionsEndpoint = class {
|
|
7234
7278
|
constructor(requestExecutor) {
|
|
@@ -7299,7 +7343,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
7299
7343
|
};
|
|
7300
7344
|
|
|
7301
7345
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7302
|
-
import { z as
|
|
7346
|
+
import { z as z253 } from "zod";
|
|
7303
7347
|
|
|
7304
7348
|
// src/api/endpoints/design-system/members.ts
|
|
7305
7349
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -7320,7 +7364,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
7320
7364
|
};
|
|
7321
7365
|
|
|
7322
7366
|
// src/api/endpoints/design-system/sources.ts
|
|
7323
|
-
import { z as
|
|
7367
|
+
import { z as z252 } from "zod";
|
|
7324
7368
|
var DesignSystemSourcesEndpoint = class {
|
|
7325
7369
|
constructor(requestExecutor) {
|
|
7326
7370
|
this.requestExecutor = requestExecutor;
|
|
@@ -7329,7 +7373,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7329
7373
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
7330
7374
|
}
|
|
7331
7375
|
delete(dsId, sourceId) {
|
|
7332
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
7376
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z252.any(), { method: "DELETE" });
|
|
7333
7377
|
}
|
|
7334
7378
|
};
|
|
7335
7379
|
|
|
@@ -7358,7 +7402,7 @@ var DesignSystemsEndpoint = class {
|
|
|
7358
7402
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
7359
7403
|
}
|
|
7360
7404
|
delete(dsId) {
|
|
7361
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
7405
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z253.any(), { method: "DELETE" });
|
|
7362
7406
|
}
|
|
7363
7407
|
update(dsId, body) {
|
|
7364
7408
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -7402,7 +7446,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
7402
7446
|
};
|
|
7403
7447
|
|
|
7404
7448
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
7405
|
-
import { z as
|
|
7449
|
+
import { z as z254 } from "zod";
|
|
7406
7450
|
var WorkspaceMembersEndpoint = class {
|
|
7407
7451
|
constructor(requestExecutor) {
|
|
7408
7452
|
this.requestExecutor = requestExecutor;
|
|
@@ -7419,7 +7463,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7419
7463
|
});
|
|
7420
7464
|
}
|
|
7421
7465
|
invite(workspaceId, body) {
|
|
7422
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
7466
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z254.any(), { method: "POST", body });
|
|
7423
7467
|
}
|
|
7424
7468
|
delete(workspaceId, userId) {
|
|
7425
7469
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -7429,7 +7473,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7429
7473
|
};
|
|
7430
7474
|
|
|
7431
7475
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
7432
|
-
import { z as
|
|
7476
|
+
import { z as z255 } from "zod";
|
|
7433
7477
|
var WorkspacesEndpoint = class {
|
|
7434
7478
|
constructor(requestExecutor) {
|
|
7435
7479
|
this.requestExecutor = requestExecutor;
|
|
@@ -7452,10 +7496,10 @@ var WorkspacesEndpoint = class {
|
|
|
7452
7496
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
7453
7497
|
}
|
|
7454
7498
|
delete(workspaceId) {
|
|
7455
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
7499
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z255.any(), { method: "DELETE" });
|
|
7456
7500
|
}
|
|
7457
7501
|
subscription(workspaceId) {
|
|
7458
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
7502
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z255.any(), { method: "GET" });
|
|
7459
7503
|
}
|
|
7460
7504
|
};
|
|
7461
7505
|
|
|
@@ -7536,9 +7580,9 @@ ${bodyText}`,
|
|
|
7536
7580
|
|
|
7537
7581
|
// src/api/transport/request-executor.ts
|
|
7538
7582
|
import fetch from "node-fetch";
|
|
7539
|
-
import { z as
|
|
7540
|
-
var ResponseWrapper =
|
|
7541
|
-
result:
|
|
7583
|
+
import { z as z256 } from "zod";
|
|
7584
|
+
var ResponseWrapper = z256.object({
|
|
7585
|
+
result: z256.record(z256.any())
|
|
7542
7586
|
});
|
|
7543
7587
|
var RequestExecutor = class {
|
|
7544
7588
|
constructor(testServerConfig) {
|
|
@@ -7669,7 +7713,7 @@ function generateHash(input, debug = false) {
|
|
|
7669
7713
|
}
|
|
7670
7714
|
|
|
7671
7715
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7672
|
-
import { z as
|
|
7716
|
+
import { z as z257 } from "zod";
|
|
7673
7717
|
|
|
7674
7718
|
// src/yjs/version-room/base.ts
|
|
7675
7719
|
var VersionRoomBaseYDoc = class {
|
|
@@ -8199,24 +8243,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8199
8243
|
};
|
|
8200
8244
|
|
|
8201
8245
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8202
|
-
var DocumentationHierarchySettings =
|
|
8203
|
-
routingVersion:
|
|
8204
|
-
isDraftFeatureAdopted:
|
|
8205
|
-
isApprovalFeatureEnabled:
|
|
8206
|
-
approvalRequiredForPublishing:
|
|
8246
|
+
var DocumentationHierarchySettings = z257.object({
|
|
8247
|
+
routingVersion: z257.string(),
|
|
8248
|
+
isDraftFeatureAdopted: z257.boolean(),
|
|
8249
|
+
isApprovalFeatureEnabled: z257.boolean(),
|
|
8250
|
+
approvalRequiredForPublishing: z257.boolean()
|
|
8207
8251
|
});
|
|
8208
8252
|
function yjsToDocumentationHierarchy(doc) {
|
|
8209
8253
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
8210
8254
|
}
|
|
8211
8255
|
|
|
8212
8256
|
// src/yjs/design-system-content/item-configuration.ts
|
|
8213
|
-
import { z as
|
|
8214
|
-
var DTODocumentationPageRoomHeaderData =
|
|
8215
|
-
title:
|
|
8257
|
+
import { z as z258 } from "zod";
|
|
8258
|
+
var DTODocumentationPageRoomHeaderData = z258.object({
|
|
8259
|
+
title: z258.string(),
|
|
8216
8260
|
configuration: DTODocumentationItemConfigurationV2
|
|
8217
8261
|
});
|
|
8218
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
8219
|
-
title:
|
|
8262
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z258.object({
|
|
8263
|
+
title: z258.string().optional(),
|
|
8220
8264
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
8221
8265
|
});
|
|
8222
8266
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -8267,7 +8311,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
8267
8311
|
header: rawHeader
|
|
8268
8312
|
};
|
|
8269
8313
|
return {
|
|
8270
|
-
title:
|
|
8314
|
+
title: z258.string().parse(title),
|
|
8271
8315
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
8272
8316
|
};
|
|
8273
8317
|
}
|
|
@@ -8277,9 +8321,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
8277
8321
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
8278
8322
|
|
|
8279
8323
|
// src/yjs/docs-editor/model/page.ts
|
|
8280
|
-
import { z as
|
|
8281
|
-
var DocumentationPageEditorModel =
|
|
8282
|
-
blocks:
|
|
8324
|
+
import { z as z259 } from "zod";
|
|
8325
|
+
var DocumentationPageEditorModel = z259.object({
|
|
8326
|
+
blocks: z259.array(DocumentationPageContentItem)
|
|
8283
8327
|
});
|
|
8284
8328
|
|
|
8285
8329
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -11800,7 +11844,7 @@ var blocks = [
|
|
|
11800
11844
|
|
|
11801
11845
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
11802
11846
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
11803
|
-
import { z as
|
|
11847
|
+
import { z as z260 } from "zod";
|
|
11804
11848
|
function yDocToPage(yDoc, definitions) {
|
|
11805
11849
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
11806
11850
|
}
|
|
@@ -11880,7 +11924,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
11880
11924
|
return null;
|
|
11881
11925
|
return {
|
|
11882
11926
|
id,
|
|
11883
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
11927
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z260.string()) ?? "",
|
|
11884
11928
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
11885
11929
|
};
|
|
11886
11930
|
}
|
|
@@ -11915,7 +11959,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11915
11959
|
});
|
|
11916
11960
|
}
|
|
11917
11961
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11918
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11962
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z260.string());
|
|
11919
11963
|
if (!definitionId) {
|
|
11920
11964
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11921
11965
|
return [];
|
|
@@ -11957,7 +12001,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11957
12001
|
if (!id)
|
|
11958
12002
|
return null;
|
|
11959
12003
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11960
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
12004
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z260.string().optional()));
|
|
11961
12005
|
return {
|
|
11962
12006
|
id,
|
|
11963
12007
|
type: "Block",
|
|
@@ -12085,10 +12129,10 @@ function parseRichTextAttribute(mark) {
|
|
|
12085
12129
|
return null;
|
|
12086
12130
|
}
|
|
12087
12131
|
function parseProsemirrorLink(mark) {
|
|
12088
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
12132
|
+
const href = getProsemirrorAttribute(mark, "href", z260.string().optional());
|
|
12089
12133
|
if (!href)
|
|
12090
12134
|
return null;
|
|
12091
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
12135
|
+
const target = getProsemirrorAttribute(mark, "target", z260.string().optional());
|
|
12092
12136
|
const openInNewTab = target === "_blank";
|
|
12093
12137
|
if (href.startsWith("@")) {
|
|
12094
12138
|
return {
|
|
@@ -12107,10 +12151,10 @@ function parseProsemirrorLink(mark) {
|
|
|
12107
12151
|
}
|
|
12108
12152
|
}
|
|
12109
12153
|
function parseProsemirrorCommentHighlight(mark) {
|
|
12110
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
12154
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z260.string().optional());
|
|
12111
12155
|
if (!highlightId)
|
|
12112
12156
|
return null;
|
|
12113
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
12157
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z260.boolean().optional()) ?? false;
|
|
12114
12158
|
return {
|
|
12115
12159
|
type: "Comment",
|
|
12116
12160
|
commentHighlightId: highlightId,
|
|
@@ -12122,7 +12166,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
12122
12166
|
if (!id)
|
|
12123
12167
|
return null;
|
|
12124
12168
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12125
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
12169
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z260.boolean().optional()) !== false;
|
|
12126
12170
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
12127
12171
|
if (!tableChild) {
|
|
12128
12172
|
return emptyTable(id, variantId, 0);
|
|
@@ -12169,9 +12213,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
12169
12213
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
12170
12214
|
if (!id)
|
|
12171
12215
|
return null;
|
|
12172
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
12216
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z260.string().optional());
|
|
12173
12217
|
let columnWidth;
|
|
12174
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
12218
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z260.array(z260.number()).nullish());
|
|
12175
12219
|
if (columnWidthArray) {
|
|
12176
12220
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
12177
12221
|
}
|
|
@@ -12209,7 +12253,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
12209
12253
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
12210
12254
|
};
|
|
12211
12255
|
case "image":
|
|
12212
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12256
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z260.string());
|
|
12213
12257
|
if (!items)
|
|
12214
12258
|
return null;
|
|
12215
12259
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -12329,7 +12373,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
12329
12373
|
);
|
|
12330
12374
|
}
|
|
12331
12375
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
12332
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12376
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z260.string());
|
|
12333
12377
|
if (!itemsString)
|
|
12334
12378
|
return null;
|
|
12335
12379
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -12341,18 +12385,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
12341
12385
|
}
|
|
12342
12386
|
function parseAppearance(prosemirrorNode) {
|
|
12343
12387
|
let appearance = {};
|
|
12344
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
12388
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z260.string().optional());
|
|
12345
12389
|
if (rawAppearanceString) {
|
|
12346
12390
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
12347
12391
|
if (parsedAppearance.success) {
|
|
12348
12392
|
appearance = parsedAppearance.data;
|
|
12349
12393
|
}
|
|
12350
12394
|
}
|
|
12351
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
12395
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z260.number().optional());
|
|
12352
12396
|
if (columns) {
|
|
12353
12397
|
appearance.numberOfColumns = columns;
|
|
12354
12398
|
}
|
|
12355
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
12399
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z260.string().optional());
|
|
12356
12400
|
if (backgroundColor) {
|
|
12357
12401
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
12358
12402
|
if (parsedColor.success) {
|
|
@@ -12447,13 +12491,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
12447
12491
|
}
|
|
12448
12492
|
}
|
|
12449
12493
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
12450
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
12494
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z260.string());
|
|
12451
12495
|
if (!id)
|
|
12452
12496
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
12453
12497
|
return id;
|
|
12454
12498
|
}
|
|
12455
12499
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
12456
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
12500
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z260.string()));
|
|
12457
12501
|
}
|
|
12458
12502
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
12459
12503
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -12548,6 +12592,7 @@ export {
|
|
|
12548
12592
|
DTODeleteDocumentationTabGroupInput,
|
|
12549
12593
|
DTODesignElementsDataDiffResponse,
|
|
12550
12594
|
DTODesignSystem,
|
|
12595
|
+
DTODesignSystemComponentCreateInput,
|
|
12551
12596
|
DTODesignSystemContactsResponse,
|
|
12552
12597
|
DTODesignSystemCreateInput,
|
|
12553
12598
|
DTODesignSystemInvitation,
|
|
@@ -12629,6 +12674,10 @@ export {
|
|
|
12629
12674
|
DTODocumentationPageV2,
|
|
12630
12675
|
DTODocumentationPublishMetadata,
|
|
12631
12676
|
DTODocumentationPublishTypeQueryParams,
|
|
12677
|
+
DTODocumentationStructure,
|
|
12678
|
+
DTODocumentationStructureGroupItem,
|
|
12679
|
+
DTODocumentationStructureItem,
|
|
12680
|
+
DTODocumentationStructurePageItem,
|
|
12632
12681
|
DTODocumentationTabCreateActionInputV2,
|
|
12633
12682
|
DTODocumentationTabCreateActionOutputV2,
|
|
12634
12683
|
DTODocumentationTabGroupDeleteActionInputV2,
|
|
@@ -12772,6 +12821,7 @@ export {
|
|
|
12772
12821
|
DTOWorkspaceResponse,
|
|
12773
12822
|
DTOWorkspaceRole,
|
|
12774
12823
|
DesignSystemBffEndpoint,
|
|
12824
|
+
DesignSystemComponentEndpoint,
|
|
12775
12825
|
DesignSystemContactsEndpoint,
|
|
12776
12826
|
DesignSystemMembersEndpoint,
|
|
12777
12827
|
DesignSystemSourcesEndpoint,
|
|
@@ -12783,6 +12833,7 @@ export {
|
|
|
12783
12833
|
DocumentationPageV1DTO,
|
|
12784
12834
|
ElementPropertyDefinitionsEndpoint,
|
|
12785
12835
|
ElementPropertyValuesEndpoint,
|
|
12836
|
+
ElementsActionsEndpoint,
|
|
12786
12837
|
ExportersEndpoint,
|
|
12787
12838
|
FormattedCollections,
|
|
12788
12839
|
FrontendVersionRoomYDoc,
|