@supernova-studio/client 1.4.7 → 1.4.8
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 +626 -24
- package/dist/index.d.ts +626 -24
- package/dist/index.js +91 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1205 -1115
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5375,7 +5375,7 @@ var DTOPagination = z188.object({
|
|
|
5375
5375
|
});
|
|
5376
5376
|
|
|
5377
5377
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5378
|
-
import { z as
|
|
5378
|
+
import { z as z225 } from "zod";
|
|
5379
5379
|
|
|
5380
5380
|
// src/api/dto/design-systems/brand.ts
|
|
5381
5381
|
import { z as z189 } from "zod";
|
|
@@ -5399,49 +5399,96 @@ var DTOBrandUpdatePayload = z189.object({
|
|
|
5399
5399
|
persistentId: z189.string()
|
|
5400
5400
|
});
|
|
5401
5401
|
|
|
5402
|
-
// src/api/dto/design-systems/component.ts
|
|
5402
|
+
// src/api/dto/design-systems/code-component.ts
|
|
5403
5403
|
import { z as z190 } from "zod";
|
|
5404
|
-
var
|
|
5404
|
+
var DTOComponentPropertyControlType = z190.enum([
|
|
5405
|
+
"Boolean",
|
|
5406
|
+
"Function",
|
|
5407
|
+
"Number",
|
|
5408
|
+
"Object",
|
|
5409
|
+
"Slot",
|
|
5410
|
+
"String",
|
|
5411
|
+
"Unknown"
|
|
5412
|
+
]);
|
|
5413
|
+
var DTOControlTypeInfo = z190.object({
|
|
5414
|
+
isArray: z190.boolean(),
|
|
5415
|
+
type: DTOComponentPropertyControlType
|
|
5416
|
+
});
|
|
5417
|
+
var DTOCodeComponentProperty = z190.object({
|
|
5418
|
+
control: DTOControlTypeInfo,
|
|
5419
|
+
defaultValue: z190.string().optional(),
|
|
5420
|
+
name: z190.string(),
|
|
5421
|
+
required: z190.boolean(),
|
|
5422
|
+
type: z190.string()
|
|
5423
|
+
});
|
|
5424
|
+
var DTOCodeComponent = z190.object({
|
|
5405
5425
|
id: z190.string(),
|
|
5406
|
-
persistentId: z190.string(),
|
|
5407
5426
|
designSystemVersionId: z190.string(),
|
|
5408
|
-
|
|
5409
|
-
meta: DTOObjectMeta,
|
|
5427
|
+
persistentId: z190.string(),
|
|
5410
5428
|
createdAt: z190.coerce.date(),
|
|
5411
|
-
updatedAt: z190.coerce.date()
|
|
5429
|
+
updatedAt: z190.coerce.date(),
|
|
5430
|
+
exportName: z190.string(),
|
|
5431
|
+
properties: z190.record(z190.string(), DTOCodeComponentProperty),
|
|
5432
|
+
versionId: z190.string()
|
|
5433
|
+
});
|
|
5434
|
+
var DTOCodeComponentResponse = z190.object({
|
|
5435
|
+
codeComponent: DTOCodeComponent
|
|
5436
|
+
});
|
|
5437
|
+
var DTOCodeComponentListResponse = z190.object({
|
|
5438
|
+
codeComponents: DTOCodeComponent.array()
|
|
5439
|
+
});
|
|
5440
|
+
var DTOCodeComponentCreateInput = z190.object({
|
|
5441
|
+
persistentId: z190.string(),
|
|
5442
|
+
exportName: z190.string(),
|
|
5443
|
+
properties: z190.record(z190.string(), DTOCodeComponentProperty)
|
|
5444
|
+
});
|
|
5445
|
+
var DTOCodeComponentsCreateInput = z190.object({
|
|
5446
|
+
codeComponents: DTOCodeComponentCreateInput.array()
|
|
5447
|
+
});
|
|
5448
|
+
|
|
5449
|
+
// src/api/dto/design-systems/component.ts
|
|
5450
|
+
import { z as z191 } from "zod";
|
|
5451
|
+
var DTODesignSystemComponent = z191.object({
|
|
5452
|
+
id: z191.string(),
|
|
5453
|
+
persistentId: z191.string(),
|
|
5454
|
+
designSystemVersionId: z191.string(),
|
|
5455
|
+
brandId: z191.string(),
|
|
5456
|
+
meta: DTOObjectMeta,
|
|
5457
|
+
createdAt: z191.coerce.date(),
|
|
5458
|
+
updatedAt: z191.coerce.date()
|
|
5412
5459
|
});
|
|
5413
|
-
var DTODesignSystemComponentResponse =
|
|
5460
|
+
var DTODesignSystemComponentResponse = z191.object({
|
|
5414
5461
|
designSystemComponent: DTODesignSystemComponent
|
|
5415
5462
|
});
|
|
5416
|
-
var DTODesignSystemComponentListResponse =
|
|
5463
|
+
var DTODesignSystemComponentListResponse = z191.object({
|
|
5417
5464
|
designSystemComponents: DTODesignSystemComponent.array()
|
|
5418
5465
|
});
|
|
5419
|
-
var DTODesignSystemComponentCreateInput =
|
|
5420
|
-
brandId:
|
|
5466
|
+
var DTODesignSystemComponentCreateInput = z191.object({
|
|
5467
|
+
brandId: z191.string(),
|
|
5421
5468
|
// Persistent ID,
|
|
5422
|
-
persistentId:
|
|
5469
|
+
persistentId: z191.string(),
|
|
5423
5470
|
meta: DTOObjectMeta
|
|
5424
5471
|
});
|
|
5425
5472
|
|
|
5426
5473
|
// src/api/dto/design-systems/contact.ts
|
|
5427
|
-
import { z as
|
|
5474
|
+
import { z as z195 } from "zod";
|
|
5428
5475
|
|
|
5429
5476
|
// src/api/dto/users/authenticated-user.ts
|
|
5430
|
-
import { z as
|
|
5477
|
+
import { z as z193 } from "zod";
|
|
5431
5478
|
|
|
5432
5479
|
// src/api/dto/users/user.ts
|
|
5433
|
-
import { z as
|
|
5434
|
-
var DTOUserProfile =
|
|
5435
|
-
name:
|
|
5436
|
-
nickname:
|
|
5437
|
-
avatar:
|
|
5438
|
-
});
|
|
5439
|
-
var DTOUser =
|
|
5440
|
-
id:
|
|
5441
|
-
email:
|
|
5480
|
+
import { z as z192 } from "zod";
|
|
5481
|
+
var DTOUserProfile = z192.object({
|
|
5482
|
+
name: z192.string(),
|
|
5483
|
+
nickname: z192.string().optional(),
|
|
5484
|
+
avatar: z192.string().optional()
|
|
5485
|
+
});
|
|
5486
|
+
var DTOUser = z192.object({
|
|
5487
|
+
id: z192.string(),
|
|
5488
|
+
email: z192.string(),
|
|
5442
5489
|
profile: DTOUserProfile
|
|
5443
5490
|
});
|
|
5444
|
-
var DTOUserGetResponse =
|
|
5491
|
+
var DTOUserGetResponse = z192.object({
|
|
5445
5492
|
user: DTOUser
|
|
5446
5493
|
});
|
|
5447
5494
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -5451,17 +5498,17 @@ var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
|
5451
5498
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5452
5499
|
var DTOUserSource = UserSource;
|
|
5453
5500
|
var DTOUserTheme = UserTheme;
|
|
5454
|
-
var DTOUserOnboarding =
|
|
5455
|
-
companyName:
|
|
5456
|
-
numberOfPeopleInOrg:
|
|
5457
|
-
numberOfPeopleInDesignTeam:
|
|
5501
|
+
var DTOUserOnboarding = z193.object({
|
|
5502
|
+
companyName: z193.string().optional(),
|
|
5503
|
+
numberOfPeopleInOrg: z193.string().optional(),
|
|
5504
|
+
numberOfPeopleInDesignTeam: z193.string().optional(),
|
|
5458
5505
|
department: DTOUserOnboardingDepartment.optional(),
|
|
5459
|
-
jobTitle:
|
|
5460
|
-
phase:
|
|
5506
|
+
jobTitle: z193.string().optional(),
|
|
5507
|
+
phase: z193.string().optional(),
|
|
5461
5508
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
5462
|
-
designSystemName:
|
|
5463
|
-
defaultDestination:
|
|
5464
|
-
isPageDraftOnboardingFinished:
|
|
5509
|
+
designSystemName: z193.string().optional(),
|
|
5510
|
+
defaultDestination: z193.string().optional(),
|
|
5511
|
+
isPageDraftOnboardingFinished: z193.boolean().optional()
|
|
5465
5512
|
});
|
|
5466
5513
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5467
5514
|
onboarding: DTOUserOnboarding.optional(),
|
|
@@ -5469,139 +5516,139 @@ var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
|
5469
5516
|
});
|
|
5470
5517
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5471
5518
|
profile: DTOAuthenticatedUserProfile,
|
|
5472
|
-
createdAt:
|
|
5473
|
-
loggedOutAt:
|
|
5519
|
+
createdAt: z193.coerce.date(),
|
|
5520
|
+
loggedOutAt: z193.coerce.date().optional(),
|
|
5474
5521
|
source: DTOUserSource.optional()
|
|
5475
5522
|
});
|
|
5476
|
-
var DTOAuthenticatedUserResponse =
|
|
5523
|
+
var DTOAuthenticatedUserResponse = z193.object({
|
|
5477
5524
|
user: DTOAuthenticatedUser
|
|
5478
5525
|
});
|
|
5479
5526
|
|
|
5480
5527
|
// src/api/dto/users/update.ts
|
|
5481
|
-
import { z as
|
|
5482
|
-
var DTOUserProfileUpdateResponse =
|
|
5528
|
+
import { z as z194 } from "zod";
|
|
5529
|
+
var DTOUserProfileUpdateResponse = z194.object({
|
|
5483
5530
|
user: User
|
|
5484
5531
|
});
|
|
5485
5532
|
|
|
5486
5533
|
// src/api/dto/design-systems/contact.ts
|
|
5487
|
-
var DTODesignSystemContactsResponse =
|
|
5488
|
-
contacts:
|
|
5489
|
-
workspace:
|
|
5490
|
-
designSystem:
|
|
5534
|
+
var DTODesignSystemContactsResponse = z195.object({
|
|
5535
|
+
contacts: z195.object({
|
|
5536
|
+
workspace: z195.array(DTOUser),
|
|
5537
|
+
designSystem: z195.array(DTOUser)
|
|
5491
5538
|
})
|
|
5492
5539
|
});
|
|
5493
5540
|
|
|
5494
5541
|
// src/api/dto/design-systems/data-source.ts
|
|
5495
|
-
import { z as
|
|
5542
|
+
import { z as z196 } from "zod";
|
|
5496
5543
|
var DTODataSourceFigmaScope = DataSourceFigmaScope;
|
|
5497
|
-
var DTODataSourceFigmaFileVersion =
|
|
5498
|
-
id:
|
|
5499
|
-
created_at:
|
|
5500
|
-
label:
|
|
5501
|
-
description:
|
|
5502
|
-
});
|
|
5503
|
-
var DTODataSourceFigmaCloud =
|
|
5504
|
-
fileId:
|
|
5544
|
+
var DTODataSourceFigmaFileVersion = z196.object({
|
|
5545
|
+
id: z196.string(),
|
|
5546
|
+
created_at: z196.coerce.date(),
|
|
5547
|
+
label: z196.string(),
|
|
5548
|
+
description: z196.string()
|
|
5549
|
+
});
|
|
5550
|
+
var DTODataSourceFigmaCloud = z196.object({
|
|
5551
|
+
fileId: z196.string(),
|
|
5505
5552
|
state: DataSourceFigmaState,
|
|
5506
5553
|
autoImportMode: DataSourceAutoImportMode,
|
|
5507
|
-
fileThumbnailUrl:
|
|
5554
|
+
fileThumbnailUrl: z196.string().optional(),
|
|
5508
5555
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5509
|
-
lastImportedAt:
|
|
5556
|
+
lastImportedAt: z196.coerce.date().nullish(),
|
|
5510
5557
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5511
|
-
lastUpdatesCheckedAt:
|
|
5512
|
-
ownerId:
|
|
5513
|
-
ownerUserName:
|
|
5514
|
-
preferredCredentialId:
|
|
5558
|
+
lastUpdatesCheckedAt: z196.date().nullish(),
|
|
5559
|
+
ownerId: z196.string(),
|
|
5560
|
+
ownerUserName: z196.string().optional(),
|
|
5561
|
+
preferredCredentialId: z196.string().optional(),
|
|
5515
5562
|
stats: DataSourceStats
|
|
5516
5563
|
});
|
|
5517
|
-
var DTODataSourceFigma =
|
|
5518
|
-
id:
|
|
5519
|
-
type:
|
|
5520
|
-
fileName:
|
|
5564
|
+
var DTODataSourceFigma = z196.object({
|
|
5565
|
+
id: z196.string(),
|
|
5566
|
+
type: z196.literal(DataSourceRemoteType.Enum.Figma),
|
|
5567
|
+
fileName: z196.string(),
|
|
5521
5568
|
scope: DTODataSourceFigmaScope,
|
|
5522
|
-
brandId:
|
|
5523
|
-
themeId:
|
|
5569
|
+
brandId: z196.string(),
|
|
5570
|
+
themeId: z196.string().nullish(),
|
|
5524
5571
|
cloud: DTODataSourceFigmaCloud.nullish()
|
|
5525
5572
|
});
|
|
5526
|
-
var DTODataSourceTokenStudio =
|
|
5527
|
-
id:
|
|
5528
|
-
type:
|
|
5529
|
-
fileName:
|
|
5530
|
-
brandId:
|
|
5531
|
-
themeId:
|
|
5532
|
-
tokenStudio:
|
|
5533
|
-
settings:
|
|
5534
|
-
dryRun:
|
|
5535
|
-
verbose:
|
|
5536
|
-
preciseCopy:
|
|
5573
|
+
var DTODataSourceTokenStudio = z196.object({
|
|
5574
|
+
id: z196.string(),
|
|
5575
|
+
type: z196.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5576
|
+
fileName: z196.string(),
|
|
5577
|
+
brandId: z196.string(),
|
|
5578
|
+
themeId: z196.string().nullish(),
|
|
5579
|
+
tokenStudio: z196.object({
|
|
5580
|
+
settings: z196.object({
|
|
5581
|
+
dryRun: z196.boolean(),
|
|
5582
|
+
verbose: z196.boolean(),
|
|
5583
|
+
preciseCopy: z196.boolean()
|
|
5537
5584
|
}),
|
|
5538
|
-
connectionName:
|
|
5539
|
-
lastImportedAt:
|
|
5540
|
-
lastImportedResults:
|
|
5541
|
-
|
|
5542
|
-
mapping:
|
|
5543
|
-
tokenSets:
|
|
5544
|
-
supernovaBrand:
|
|
5545
|
-
supernovaTheme:
|
|
5585
|
+
connectionName: z196.string(),
|
|
5586
|
+
lastImportedAt: z196.coerce.date(),
|
|
5587
|
+
lastImportedResults: z196.array(
|
|
5588
|
+
z196.object({
|
|
5589
|
+
mapping: z196.object({
|
|
5590
|
+
tokenSets: z196.array(z196.string()),
|
|
5591
|
+
supernovaBrand: z196.string(),
|
|
5592
|
+
supernovaTheme: z196.string().optional()
|
|
5546
5593
|
}),
|
|
5547
|
-
isFailed:
|
|
5548
|
-
tokensCreated:
|
|
5549
|
-
tokensDeleted:
|
|
5550
|
-
tokensUpdated:
|
|
5594
|
+
isFailed: z196.boolean(),
|
|
5595
|
+
tokensCreated: z196.number(),
|
|
5596
|
+
tokensDeleted: z196.number(),
|
|
5597
|
+
tokensUpdated: z196.number()
|
|
5551
5598
|
})
|
|
5552
5599
|
)
|
|
5553
5600
|
})
|
|
5554
5601
|
});
|
|
5555
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5556
|
-
id:
|
|
5557
|
-
type:
|
|
5558
|
-
fileName:
|
|
5559
|
-
brandId:
|
|
5560
|
-
upload:
|
|
5561
|
-
remoteId:
|
|
5602
|
+
var DTODataSourceFigmaVariablesPlugin = z196.object({
|
|
5603
|
+
id: z196.string(),
|
|
5604
|
+
type: z196.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5605
|
+
fileName: z196.string(),
|
|
5606
|
+
brandId: z196.string(),
|
|
5607
|
+
upload: z196.object({
|
|
5608
|
+
remoteId: z196.string(),
|
|
5562
5609
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5563
|
-
lastImportedAt:
|
|
5610
|
+
lastImportedAt: z196.coerce.date().optional(),
|
|
5564
5611
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5565
|
-
isTokenTypeSplitEnabled:
|
|
5612
|
+
isTokenTypeSplitEnabled: z196.boolean()
|
|
5566
5613
|
}),
|
|
5567
|
-
figmaVariablesPlugin:
|
|
5568
|
-
fileId:
|
|
5569
|
-
lastImportedAt:
|
|
5614
|
+
figmaVariablesPlugin: z196.object({
|
|
5615
|
+
fileId: z196.string(),
|
|
5616
|
+
lastImportedAt: z196.coerce.date().optional(),
|
|
5570
5617
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5571
|
-
isTokenTypeSplitEnabled:
|
|
5572
|
-
isCollectionsMigrationCompleted:
|
|
5618
|
+
isTokenTypeSplitEnabled: z196.boolean(),
|
|
5619
|
+
isCollectionsMigrationCompleted: z196.boolean().default(false)
|
|
5573
5620
|
})
|
|
5574
5621
|
});
|
|
5575
|
-
var DTODataSource =
|
|
5622
|
+
var DTODataSource = z196.discriminatedUnion("type", [
|
|
5576
5623
|
DTODataSourceFigma,
|
|
5577
5624
|
DTODataSourceFigmaVariablesPlugin,
|
|
5578
5625
|
DTODataSourceTokenStudio
|
|
5579
5626
|
]);
|
|
5580
|
-
var DTODataSourcesListResponse =
|
|
5581
|
-
sources:
|
|
5627
|
+
var DTODataSourcesListResponse = z196.object({
|
|
5628
|
+
sources: z196.array(DTODataSource)
|
|
5582
5629
|
});
|
|
5583
|
-
var DTODataSourceResponse =
|
|
5630
|
+
var DTODataSourceResponse = z196.object({
|
|
5584
5631
|
source: DTODataSource
|
|
5585
5632
|
});
|
|
5586
|
-
var DTODataSourceFigmaCreatePayload =
|
|
5587
|
-
brandPersistentId:
|
|
5588
|
-
figmaFileUrl:
|
|
5633
|
+
var DTODataSourceFigmaCreatePayload = z196.object({
|
|
5634
|
+
brandPersistentId: z196.string(),
|
|
5635
|
+
figmaFileUrl: z196.string(),
|
|
5589
5636
|
scope: DTODataSourceFigmaScope,
|
|
5590
5637
|
autoImportMode: DataSourceAutoImportMode
|
|
5591
5638
|
});
|
|
5592
|
-
var DTODataSourceFigmaImportPayload =
|
|
5593
|
-
sourceIds:
|
|
5639
|
+
var DTODataSourceFigmaImportPayload = z196.object({
|
|
5640
|
+
sourceIds: z196.array(z196.string())
|
|
5594
5641
|
});
|
|
5595
5642
|
|
|
5596
5643
|
// src/api/dto/design-systems/design-system.ts
|
|
5597
|
-
import { z as
|
|
5644
|
+
import { z as z199 } from "zod";
|
|
5598
5645
|
|
|
5599
5646
|
// src/api/dto/design-systems/members.ts
|
|
5600
|
-
import { z as
|
|
5647
|
+
import { z as z198 } from "zod";
|
|
5601
5648
|
|
|
5602
5649
|
// src/api/dto/design-systems/role.ts
|
|
5603
|
-
import { z as
|
|
5604
|
-
var DTODesignSystemRole =
|
|
5650
|
+
import { z as z197 } from "zod";
|
|
5651
|
+
var DTODesignSystemRole = z197.enum([
|
|
5605
5652
|
WorkspaceRole.Admin,
|
|
5606
5653
|
WorkspaceRole.Contributor,
|
|
5607
5654
|
WorkspaceRole.Creator,
|
|
@@ -5609,29 +5656,29 @@ var DTODesignSystemRole = z196.enum([
|
|
|
5609
5656
|
]);
|
|
5610
5657
|
|
|
5611
5658
|
// src/api/dto/design-systems/members.ts
|
|
5612
|
-
var DTODesignSystemMember =
|
|
5613
|
-
userId:
|
|
5659
|
+
var DTODesignSystemMember = z198.object({
|
|
5660
|
+
userId: z198.string(),
|
|
5614
5661
|
/**
|
|
5615
5662
|
* Role that the member has in the design system,
|
|
5616
5663
|
* undefined if set to inherit from workspace
|
|
5617
5664
|
*/
|
|
5618
5665
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5619
5666
|
});
|
|
5620
|
-
var DTODesignSystemInvitation =
|
|
5621
|
-
id:
|
|
5622
|
-
workspaceInvitationId:
|
|
5667
|
+
var DTODesignSystemInvitation = z198.object({
|
|
5668
|
+
id: z198.string(),
|
|
5669
|
+
workspaceInvitationId: z198.string(),
|
|
5623
5670
|
/**
|
|
5624
5671
|
* Role that the invitation has in the design system,
|
|
5625
5672
|
* undefined if set to inherit from workspace
|
|
5626
5673
|
*/
|
|
5627
5674
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5628
5675
|
});
|
|
5629
|
-
var DTODesignSystemMemberListResponse =
|
|
5676
|
+
var DTODesignSystemMemberListResponse = z198.object({
|
|
5630
5677
|
members: DTODesignSystemMember.array(),
|
|
5631
5678
|
invitations: DTODesignSystemInvitation.array()
|
|
5632
5679
|
});
|
|
5633
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5634
|
-
ok:
|
|
5680
|
+
var DTODesignSystemMembersUpdateResponse = z198.object({
|
|
5681
|
+
ok: z198.literal(true)
|
|
5635
5682
|
});
|
|
5636
5683
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5637
5684
|
|
|
@@ -5642,14 +5689,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5642
5689
|
docExporterId: true
|
|
5643
5690
|
}).extend({
|
|
5644
5691
|
meta: ObjectMeta,
|
|
5645
|
-
docExporterId:
|
|
5646
|
-
sources:
|
|
5647
|
-
isPublic:
|
|
5692
|
+
docExporterId: z199.string(),
|
|
5693
|
+
sources: z199.array(z199.any()),
|
|
5694
|
+
isPublic: z199.literal(true),
|
|
5648
5695
|
/**
|
|
5649
5696
|
* Whether or not user who is requesting the design system
|
|
5650
5697
|
* has access to the design system's contents.
|
|
5651
5698
|
*/
|
|
5652
|
-
isAvailableToUser:
|
|
5699
|
+
isAvailableToUser: z199.boolean(),
|
|
5653
5700
|
/**
|
|
5654
5701
|
* @deprecated
|
|
5655
5702
|
*/
|
|
@@ -5660,17 +5707,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5660
5707
|
*/
|
|
5661
5708
|
effectiveRole: DTODesignSystemRole.optional()
|
|
5662
5709
|
});
|
|
5663
|
-
var DTODesignSystemResponse =
|
|
5710
|
+
var DTODesignSystemResponse = z199.object({
|
|
5664
5711
|
designSystem: DTODesignSystem
|
|
5665
5712
|
});
|
|
5666
|
-
var DTODesignSystemsListResponse =
|
|
5713
|
+
var DTODesignSystemsListResponse = z199.object({
|
|
5667
5714
|
designSystems: DTODesignSystem.array()
|
|
5668
5715
|
});
|
|
5669
|
-
var DTODesignSystemCreateInput =
|
|
5670
|
-
workspaceId:
|
|
5716
|
+
var DTODesignSystemCreateInput = z199.object({
|
|
5717
|
+
workspaceId: z199.string(),
|
|
5671
5718
|
meta: ObjectMeta.optional(),
|
|
5672
|
-
name:
|
|
5673
|
-
description:
|
|
5719
|
+
name: z199.string().min(2).max(64).optional(),
|
|
5720
|
+
description: z199.string().max(1024).optional(),
|
|
5674
5721
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5675
5722
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
5676
5723
|
usersToInvite: true,
|
|
@@ -5680,20 +5727,20 @@ var DTODesignSystemCreateInput = z198.object({
|
|
|
5680
5727
|
});
|
|
5681
5728
|
|
|
5682
5729
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5683
|
-
import { z as
|
|
5684
|
-
var DTODiffCountBase =
|
|
5685
|
-
created:
|
|
5686
|
-
updated:
|
|
5687
|
-
deleted:
|
|
5730
|
+
import { z as z200 } from "zod";
|
|
5731
|
+
var DTODiffCountBase = z200.object({
|
|
5732
|
+
created: z200.number(),
|
|
5733
|
+
updated: z200.number(),
|
|
5734
|
+
deleted: z200.number()
|
|
5688
5735
|
});
|
|
5689
|
-
var DTODesignElementsDataDiffResponse =
|
|
5736
|
+
var DTODesignElementsDataDiffResponse = z200.object({
|
|
5690
5737
|
tokens: DTODiffCountBase,
|
|
5691
5738
|
assets: DTODiffCountBase
|
|
5692
5739
|
});
|
|
5693
5740
|
|
|
5694
5741
|
// src/api/dto/design-systems/figma-variables.ts
|
|
5695
|
-
import { z as
|
|
5696
|
-
var DimensionsVariableScopeSchema =
|
|
5742
|
+
import { z as z201 } from "zod";
|
|
5743
|
+
var DimensionsVariableScopeSchema = z201.enum([
|
|
5697
5744
|
"CORNER_RADIUS",
|
|
5698
5745
|
"WIDTH_HEIGHT",
|
|
5699
5746
|
"GAP",
|
|
@@ -5707,155 +5754,155 @@ var DimensionsVariableScopeSchema = z200.enum([
|
|
|
5707
5754
|
"PARAGRAPH_INDENT",
|
|
5708
5755
|
"FONT_WEIGHT"
|
|
5709
5756
|
]);
|
|
5710
|
-
var StringVariableScopeSchema =
|
|
5757
|
+
var StringVariableScopeSchema = z201.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
5711
5758
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
5712
5759
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
5713
|
-
var VariableScope =
|
|
5714
|
-
var ReferencedVariableOrigin =
|
|
5715
|
-
name:
|
|
5716
|
-
remote:
|
|
5760
|
+
var VariableScope = z201.string();
|
|
5761
|
+
var ReferencedVariableOrigin = z201.object({
|
|
5762
|
+
name: z201.string(),
|
|
5763
|
+
remote: z201.boolean()
|
|
5717
5764
|
});
|
|
5718
|
-
var RGB =
|
|
5719
|
-
r:
|
|
5720
|
-
g:
|
|
5721
|
-
b:
|
|
5765
|
+
var RGB = z201.object({
|
|
5766
|
+
r: z201.number(),
|
|
5767
|
+
g: z201.number(),
|
|
5768
|
+
b: z201.number()
|
|
5722
5769
|
});
|
|
5723
5770
|
var RGBA = RGB.extend({
|
|
5724
|
-
a:
|
|
5725
|
-
});
|
|
5726
|
-
var VariableAlias =
|
|
5727
|
-
type:
|
|
5728
|
-
id:
|
|
5729
|
-
resolvedValue:
|
|
5730
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
5731
|
-
});
|
|
5732
|
-
var VariableValue =
|
|
5733
|
-
var ResolvedVariableType =
|
|
5734
|
-
var Variable =
|
|
5735
|
-
id:
|
|
5736
|
-
name:
|
|
5737
|
-
key:
|
|
5738
|
-
variableCollectionId:
|
|
5771
|
+
a: z201.number()
|
|
5772
|
+
});
|
|
5773
|
+
var VariableAlias = z201.object({
|
|
5774
|
+
type: z201.literal("VARIABLE_ALIAS"),
|
|
5775
|
+
id: z201.string(),
|
|
5776
|
+
resolvedValue: z201.boolean().or(z201.number()).or(z201.string()).or(RGBA).or(RGB).optional(),
|
|
5777
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z201.null())
|
|
5778
|
+
});
|
|
5779
|
+
var VariableValue = z201.boolean().or(z201.number()).or(z201.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
5780
|
+
var ResolvedVariableType = z201.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
5781
|
+
var Variable = z201.object({
|
|
5782
|
+
id: z201.string(),
|
|
5783
|
+
name: z201.string(),
|
|
5784
|
+
key: z201.string(),
|
|
5785
|
+
variableCollectionId: z201.string(),
|
|
5739
5786
|
resolvedType: ResolvedVariableType,
|
|
5740
|
-
valuesByMode:
|
|
5741
|
-
remote:
|
|
5742
|
-
description:
|
|
5743
|
-
hiddenFromPublishing:
|
|
5744
|
-
scopes:
|
|
5745
|
-
codeSyntax:
|
|
5746
|
-
});
|
|
5747
|
-
var VariableMode =
|
|
5748
|
-
modeId:
|
|
5749
|
-
name:
|
|
5750
|
-
});
|
|
5751
|
-
var Collection2 =
|
|
5752
|
-
id:
|
|
5753
|
-
name:
|
|
5754
|
-
modes:
|
|
5755
|
-
defaultModeId:
|
|
5756
|
-
remote:
|
|
5757
|
-
hiddenFromPublishing:
|
|
5758
|
-
});
|
|
5759
|
-
var VariablesMapping =
|
|
5760
|
-
variableCollections:
|
|
5761
|
-
variableMode:
|
|
5762
|
-
supernovaBrand:
|
|
5763
|
-
supernovaTheme:
|
|
5764
|
-
});
|
|
5765
|
-
var FormattedCollections =
|
|
5766
|
-
variables:
|
|
5767
|
-
variableCollections:
|
|
5768
|
-
mappings:
|
|
5769
|
-
variablesOrder:
|
|
5787
|
+
valuesByMode: z201.record(VariableValue),
|
|
5788
|
+
remote: z201.boolean(),
|
|
5789
|
+
description: z201.string(),
|
|
5790
|
+
hiddenFromPublishing: z201.boolean(),
|
|
5791
|
+
scopes: z201.array(VariableScope),
|
|
5792
|
+
codeSyntax: z201.record(z201.any()).optional()
|
|
5793
|
+
});
|
|
5794
|
+
var VariableMode = z201.object({
|
|
5795
|
+
modeId: z201.string(),
|
|
5796
|
+
name: z201.string()
|
|
5797
|
+
});
|
|
5798
|
+
var Collection2 = z201.object({
|
|
5799
|
+
id: z201.string(),
|
|
5800
|
+
name: z201.string(),
|
|
5801
|
+
modes: z201.array(VariableMode),
|
|
5802
|
+
defaultModeId: z201.string(),
|
|
5803
|
+
remote: z201.boolean(),
|
|
5804
|
+
hiddenFromPublishing: z201.boolean()
|
|
5805
|
+
});
|
|
5806
|
+
var VariablesMapping = z201.object({
|
|
5807
|
+
variableCollections: z201.array(z201.string()).min(1),
|
|
5808
|
+
variableMode: z201.string().min(1),
|
|
5809
|
+
supernovaBrand: z201.string().min(1),
|
|
5810
|
+
supernovaTheme: z201.string().min(1).optional().or(z201.null())
|
|
5811
|
+
});
|
|
5812
|
+
var FormattedCollections = z201.object({
|
|
5813
|
+
variables: z201.record(z201.string(), Variable),
|
|
5814
|
+
variableCollections: z201.record(z201.string(), Collection2),
|
|
5815
|
+
mappings: z201.array(VariablesMapping).optional(),
|
|
5816
|
+
variablesOrder: z201.string().array().optional()
|
|
5770
5817
|
});
|
|
5771
5818
|
|
|
5772
5819
|
// src/api/dto/design-systems/import-job.ts
|
|
5773
|
-
import { z as
|
|
5774
|
-
var DTOImportJob =
|
|
5775
|
-
id:
|
|
5776
|
-
designSystemId:
|
|
5777
|
-
designSystemVersionId:
|
|
5778
|
-
operation:
|
|
5779
|
-
createdAt:
|
|
5780
|
-
stateChangedAt:
|
|
5820
|
+
import { z as z202 } from "zod";
|
|
5821
|
+
var DTOImportJob = z202.object({
|
|
5822
|
+
id: z202.string(),
|
|
5823
|
+
designSystemId: z202.string(),
|
|
5824
|
+
designSystemVersionId: z202.string(),
|
|
5825
|
+
operation: z202.literal("Import"),
|
|
5826
|
+
createdAt: z202.coerce.date(),
|
|
5827
|
+
stateChangedAt: z202.coerce.date(),
|
|
5781
5828
|
state: ImportJobState,
|
|
5782
|
-
sourceIds:
|
|
5829
|
+
sourceIds: z202.string().array()
|
|
5783
5830
|
});
|
|
5784
|
-
var DTOImportJobResponse =
|
|
5831
|
+
var DTOImportJobResponse = z202.object({
|
|
5785
5832
|
job: DTOImportJob
|
|
5786
5833
|
});
|
|
5787
|
-
var DTOBffFigmaImportRequestBody =
|
|
5788
|
-
type:
|
|
5789
|
-
brandPersistentId:
|
|
5790
|
-
fileId:
|
|
5834
|
+
var DTOBffFigmaImportRequestBody = z202.object({
|
|
5835
|
+
type: z202.literal(DataSourceRemoteType.Enum.Figma),
|
|
5836
|
+
brandPersistentId: z202.string().optional(),
|
|
5837
|
+
fileId: z202.string(),
|
|
5791
5838
|
scope: DataSourceFigmaScope,
|
|
5792
5839
|
autoImportMode: DataSourceAutoImportMode
|
|
5793
5840
|
});
|
|
5794
|
-
var DTOBffUploadImportRequestBody =
|
|
5795
|
-
type:
|
|
5796
|
-
brandPersistentId:
|
|
5797
|
-
sourceName:
|
|
5798
|
-
remoteId:
|
|
5799
|
-
isTokenTypeSplitEnabled:
|
|
5800
|
-
payload:
|
|
5841
|
+
var DTOBffUploadImportRequestBody = z202.object({
|
|
5842
|
+
type: z202.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5843
|
+
brandPersistentId: z202.string().optional(),
|
|
5844
|
+
sourceName: z202.string().optional(),
|
|
5845
|
+
remoteId: z202.string(),
|
|
5846
|
+
isTokenTypeSplitEnabled: z202.boolean().optional(),
|
|
5847
|
+
payload: z202.any()
|
|
5801
5848
|
});
|
|
5802
|
-
var DTOBffImportRequestBody =
|
|
5849
|
+
var DTOBffImportRequestBody = z202.discriminatedUnion("type", [
|
|
5803
5850
|
DTOBffFigmaImportRequestBody,
|
|
5804
5851
|
DTOBffUploadImportRequestBody
|
|
5805
5852
|
]);
|
|
5806
5853
|
|
|
5807
5854
|
// src/api/dto/design-systems/redirects.ts
|
|
5808
|
-
import { z as
|
|
5809
|
-
var DTOPageRedirectCreateBody =
|
|
5810
|
-
pagePersistentId:
|
|
5811
|
-
path:
|
|
5855
|
+
import { z as z203 } from "zod";
|
|
5856
|
+
var DTOPageRedirectCreateBody = z203.object({
|
|
5857
|
+
pagePersistentId: z203.string(),
|
|
5858
|
+
path: z203.string()
|
|
5812
5859
|
});
|
|
5813
5860
|
var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
|
|
5814
|
-
var DTOPageRedirect =
|
|
5815
|
-
id:
|
|
5816
|
-
pagePersistentId:
|
|
5817
|
-
path:
|
|
5861
|
+
var DTOPageRedirect = z203.object({
|
|
5862
|
+
id: z203.string(),
|
|
5863
|
+
pagePersistentId: z203.string(),
|
|
5864
|
+
path: z203.string()
|
|
5818
5865
|
});
|
|
5819
|
-
var DTOPageRedirectListResponse =
|
|
5866
|
+
var DTOPageRedirectListResponse = z203.object({
|
|
5820
5867
|
redirects: DTOPageRedirect.array()
|
|
5821
5868
|
});
|
|
5822
|
-
var DTOPageRedirectResponse =
|
|
5869
|
+
var DTOPageRedirectResponse = z203.object({
|
|
5823
5870
|
redirect: DTOPageRedirect
|
|
5824
5871
|
});
|
|
5825
|
-
var DTOPageRedirectDeleteResponse =
|
|
5826
|
-
success:
|
|
5872
|
+
var DTOPageRedirectDeleteResponse = z203.object({
|
|
5873
|
+
success: z203.boolean()
|
|
5827
5874
|
});
|
|
5828
5875
|
|
|
5829
5876
|
// src/api/dto/design-systems/stats.ts
|
|
5830
|
-
import { z as
|
|
5831
|
-
var DTODesignSystemVersionStats =
|
|
5832
|
-
tokens:
|
|
5833
|
-
designSystemComponents:
|
|
5834
|
-
assets:
|
|
5835
|
-
documentationPages:
|
|
5836
|
-
figmaComponents:
|
|
5837
|
-
});
|
|
5838
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5877
|
+
import { z as z204 } from "zod";
|
|
5878
|
+
var DTODesignSystemVersionStats = z204.object({
|
|
5879
|
+
tokens: z204.number(),
|
|
5880
|
+
designSystemComponents: z204.number(),
|
|
5881
|
+
assets: z204.number(),
|
|
5882
|
+
documentationPages: z204.number(),
|
|
5883
|
+
figmaComponents: z204.number()
|
|
5884
|
+
});
|
|
5885
|
+
var DTODesignSystemVersionStatsQuery = z204.object({
|
|
5839
5886
|
/**
|
|
5840
5887
|
* Unique ID across versions (non-persistent ID)
|
|
5841
5888
|
*/
|
|
5842
|
-
brandId:
|
|
5889
|
+
brandId: z204.string().optional()
|
|
5843
5890
|
});
|
|
5844
5891
|
|
|
5845
5892
|
// src/api/dto/design-systems/version-room.ts
|
|
5846
|
-
import { z as
|
|
5847
|
-
var DTODesignSystemVersionRoom =
|
|
5848
|
-
id:
|
|
5893
|
+
import { z as z205 } from "zod";
|
|
5894
|
+
var DTODesignSystemVersionRoom = z205.object({
|
|
5895
|
+
id: z205.string()
|
|
5849
5896
|
});
|
|
5850
|
-
var DTODesignSystemVersionRoomResponse =
|
|
5897
|
+
var DTODesignSystemVersionRoomResponse = z205.object({
|
|
5851
5898
|
room: DTODesignSystemVersionRoom
|
|
5852
5899
|
});
|
|
5853
5900
|
|
|
5854
5901
|
// src/api/dto/design-systems/version.ts
|
|
5855
|
-
import { z as
|
|
5902
|
+
import { z as z217 } from "zod";
|
|
5856
5903
|
|
|
5857
5904
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5858
|
-
import { z as
|
|
5905
|
+
import { z as z206 } from "zod";
|
|
5859
5906
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5860
5907
|
id: true,
|
|
5861
5908
|
workspaceId: true,
|
|
@@ -5867,40 +5914,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5867
5914
|
}).extend({
|
|
5868
5915
|
meta: ObjectMeta.partial().optional()
|
|
5869
5916
|
});
|
|
5870
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5917
|
+
var DTODesignSystemUpdateAccessModeInput = z206.object({
|
|
5871
5918
|
accessMode: DesignSystemAccessMode,
|
|
5872
|
-
retain:
|
|
5873
|
-
userIds:
|
|
5874
|
-
inviteIds:
|
|
5919
|
+
retain: z206.object({
|
|
5920
|
+
userIds: z206.string().array(),
|
|
5921
|
+
inviteIds: z206.string().array()
|
|
5875
5922
|
}).optional()
|
|
5876
5923
|
});
|
|
5877
5924
|
|
|
5878
5925
|
// src/api/payloads/design-systems/version.ts
|
|
5879
|
-
import { z as
|
|
5880
|
-
var ObjectMeta2 =
|
|
5881
|
-
name:
|
|
5882
|
-
description:
|
|
5926
|
+
import { z as z207 } from "zod";
|
|
5927
|
+
var ObjectMeta2 = z207.object({
|
|
5928
|
+
name: z207.string().max(150).optional(),
|
|
5929
|
+
description: z207.string().max(2e3).optional()
|
|
5883
5930
|
});
|
|
5884
5931
|
function validateDesignSystemVersion(version) {
|
|
5885
5932
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5886
5933
|
return urlCompliantRegex.test(version);
|
|
5887
5934
|
}
|
|
5888
|
-
var DTOCreateVersionInput =
|
|
5935
|
+
var DTOCreateVersionInput = z207.object({
|
|
5889
5936
|
meta: ObjectMeta2,
|
|
5890
|
-
version:
|
|
5937
|
+
version: z207.string().refine(validateDesignSystemVersion, {
|
|
5891
5938
|
message: "Invalid semantic versioning format"
|
|
5892
5939
|
}),
|
|
5893
|
-
changeLog:
|
|
5940
|
+
changeLog: z207.string().optional()
|
|
5894
5941
|
});
|
|
5895
|
-
var DTOUpdateVersionInput =
|
|
5942
|
+
var DTOUpdateVersionInput = z207.object({
|
|
5896
5943
|
meta: ObjectMeta2,
|
|
5897
|
-
version:
|
|
5944
|
+
version: z207.string(),
|
|
5898
5945
|
// required for PUT, but not editable
|
|
5899
|
-
changeLog:
|
|
5946
|
+
changeLog: z207.string()
|
|
5900
5947
|
});
|
|
5901
5948
|
|
|
5902
5949
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5903
|
-
import { z as
|
|
5950
|
+
import { z as z208 } from "zod";
|
|
5904
5951
|
|
|
5905
5952
|
// src/api/dto/documentation/block-definition.ts
|
|
5906
5953
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5912,76 +5959,76 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5912
5959
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5913
5960
|
|
|
5914
5961
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5915
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5916
|
-
definitions:
|
|
5962
|
+
var DTOGetBlockDefinitionsOutput = z208.object({
|
|
5963
|
+
definitions: z208.array(DTOPageBlockDefinition)
|
|
5917
5964
|
});
|
|
5918
5965
|
|
|
5919
5966
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5920
|
-
import { z as
|
|
5921
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5922
|
-
environment:
|
|
5967
|
+
import { z as z209 } from "zod";
|
|
5968
|
+
var DTODocumentationPublishTypeQueryParams = z209.object({
|
|
5969
|
+
environment: z209.enum(["Live", "Preview"])
|
|
5923
5970
|
});
|
|
5924
5971
|
|
|
5925
5972
|
// src/api/payloads/export/pipeline.ts
|
|
5926
|
-
import { z as
|
|
5973
|
+
import { z as z211 } from "zod";
|
|
5927
5974
|
|
|
5928
5975
|
// src/api/dto/export/exporter-property.ts
|
|
5929
|
-
import { z as
|
|
5930
|
-
var PrimitiveValue2 =
|
|
5931
|
-
var ArrayValue2 =
|
|
5932
|
-
var ObjectValue2 =
|
|
5976
|
+
import { z as z210 } from "zod";
|
|
5977
|
+
var PrimitiveValue2 = z210.number().or(z210.boolean()).or(z210.string());
|
|
5978
|
+
var ArrayValue2 = z210.array(z210.string());
|
|
5979
|
+
var ObjectValue2 = z210.record(z210.string());
|
|
5933
5980
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
5934
|
-
var DTOExporterPropertyType =
|
|
5935
|
-
var PropertyDefinitionBase2 =
|
|
5936
|
-
key:
|
|
5937
|
-
title:
|
|
5938
|
-
description:
|
|
5939
|
-
category:
|
|
5940
|
-
dependsOn:
|
|
5941
|
-
});
|
|
5942
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
5943
|
-
label:
|
|
5944
|
-
description:
|
|
5981
|
+
var DTOExporterPropertyType = z210.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
5982
|
+
var PropertyDefinitionBase2 = z210.object({
|
|
5983
|
+
key: z210.string(),
|
|
5984
|
+
title: z210.string(),
|
|
5985
|
+
description: z210.string(),
|
|
5986
|
+
category: z210.string().optional(),
|
|
5987
|
+
dependsOn: z210.record(z210.boolean()).optional()
|
|
5988
|
+
});
|
|
5989
|
+
var DTOExporterPropertyDefinitionEnumOption = z210.object({
|
|
5990
|
+
label: z210.string(),
|
|
5991
|
+
description: z210.string()
|
|
5945
5992
|
});
|
|
5946
5993
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
5947
|
-
type:
|
|
5948
|
-
options:
|
|
5949
|
-
default:
|
|
5994
|
+
type: z210.literal(DTOExporterPropertyType.Enum.Enum),
|
|
5995
|
+
options: z210.record(DTOExporterPropertyDefinitionEnumOption),
|
|
5996
|
+
default: z210.string()
|
|
5950
5997
|
});
|
|
5951
5998
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
5952
|
-
type:
|
|
5953
|
-
default:
|
|
5999
|
+
type: z210.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
6000
|
+
default: z210.boolean()
|
|
5954
6001
|
});
|
|
5955
6002
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
5956
|
-
type:
|
|
5957
|
-
default:
|
|
5958
|
-
isMultiline:
|
|
6003
|
+
type: z210.literal(DTOExporterPropertyType.Enum.String),
|
|
6004
|
+
default: z210.string(),
|
|
6005
|
+
isMultiline: z210.boolean().optional()
|
|
5959
6006
|
});
|
|
5960
6007
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
5961
|
-
type:
|
|
5962
|
-
default:
|
|
6008
|
+
type: z210.literal(DTOExporterPropertyType.Enum.Number),
|
|
6009
|
+
default: z210.number()
|
|
5963
6010
|
});
|
|
5964
6011
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
5965
|
-
type:
|
|
6012
|
+
type: z210.literal(DTOExporterPropertyType.Enum.Array),
|
|
5966
6013
|
default: ArrayValue2
|
|
5967
6014
|
});
|
|
5968
6015
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
5969
|
-
type:
|
|
6016
|
+
type: z210.literal(DTOExporterPropertyType.Enum.Object),
|
|
5970
6017
|
default: ObjectValue2,
|
|
5971
|
-
allowedKeys:
|
|
5972
|
-
options:
|
|
5973
|
-
type:
|
|
6018
|
+
allowedKeys: z210.object({
|
|
6019
|
+
options: z210.string().array(),
|
|
6020
|
+
type: z210.string()
|
|
5974
6021
|
}).optional(),
|
|
5975
|
-
allowedValues:
|
|
5976
|
-
type:
|
|
6022
|
+
allowedValues: z210.object({
|
|
6023
|
+
type: z210.string()
|
|
5977
6024
|
}).optional()
|
|
5978
6025
|
});
|
|
5979
6026
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
5980
|
-
type:
|
|
5981
|
-
language:
|
|
5982
|
-
default:
|
|
6027
|
+
type: z210.literal(DTOExporterPropertyType.Enum.Code),
|
|
6028
|
+
language: z210.string(),
|
|
6029
|
+
default: z210.string()
|
|
5983
6030
|
});
|
|
5984
|
-
var DTOExporterPropertyDefinition =
|
|
6031
|
+
var DTOExporterPropertyDefinition = z210.discriminatedUnion("type", [
|
|
5985
6032
|
DTOExporterPropertyDefinitionEnum,
|
|
5986
6033
|
DTOExporterPropertyDefinitionBoolean,
|
|
5987
6034
|
DTOExporterPropertyDefinitionString,
|
|
@@ -5990,84 +6037,84 @@ var DTOExporterPropertyDefinition = z209.discriminatedUnion("type", [
|
|
|
5990
6037
|
DTOExporterPropertyDefinitionObject,
|
|
5991
6038
|
DTOExporterPropertyDefinitionCode
|
|
5992
6039
|
]);
|
|
5993
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
6040
|
+
var DTOExporterPropertyDefinitionsResponse = z210.object({
|
|
5994
6041
|
properties: DTOExporterPropertyDefinition.array()
|
|
5995
6042
|
});
|
|
5996
|
-
var DTOExporterPropertyValueMap =
|
|
6043
|
+
var DTOExporterPropertyValueMap = z210.record(DTOExporterPropertyValue);
|
|
5997
6044
|
|
|
5998
6045
|
// src/api/payloads/export/pipeline.ts
|
|
5999
|
-
var GitDestinationOptions =
|
|
6000
|
-
branch:
|
|
6001
|
-
commitMessage:
|
|
6002
|
-
commitAuthorName:
|
|
6003
|
-
commitAuthorEmail:
|
|
6004
|
-
pullRequestTitle:
|
|
6005
|
-
pullRequestDescription:
|
|
6006
|
-
relativePath:
|
|
6007
|
-
purgeDirectory:
|
|
6008
|
-
});
|
|
6009
|
-
var DTOPipelineCreateBody =
|
|
6010
|
-
name:
|
|
6011
|
-
exporterId:
|
|
6012
|
-
designSystemId:
|
|
6013
|
-
isEnabled:
|
|
6046
|
+
var GitDestinationOptions = z211.object({
|
|
6047
|
+
branch: z211.string().min(1).optional(),
|
|
6048
|
+
commitMessage: z211.string().min(1).optional(),
|
|
6049
|
+
commitAuthorName: z211.string().min(1).optional(),
|
|
6050
|
+
commitAuthorEmail: z211.string().email().optional(),
|
|
6051
|
+
pullRequestTitle: z211.string().min(1).optional(),
|
|
6052
|
+
pullRequestDescription: z211.string().min(1).optional(),
|
|
6053
|
+
relativePath: z211.string().optional(),
|
|
6054
|
+
purgeDirectory: z211.boolean().optional()
|
|
6055
|
+
});
|
|
6056
|
+
var DTOPipelineCreateBody = z211.object({
|
|
6057
|
+
name: z211.string(),
|
|
6058
|
+
exporterId: z211.string(),
|
|
6059
|
+
designSystemId: z211.string(),
|
|
6060
|
+
isEnabled: z211.boolean(),
|
|
6014
6061
|
eventType: PipelineEventType,
|
|
6015
|
-
brandPersistentId:
|
|
6016
|
-
themePersistentId:
|
|
6017
|
-
themePersistentIds:
|
|
6062
|
+
brandPersistentId: z211.string().optional(),
|
|
6063
|
+
themePersistentId: z211.string().optional(),
|
|
6064
|
+
themePersistentIds: z211.string().array().optional(),
|
|
6018
6065
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6019
6066
|
destination: PipelineDestinationType.optional(),
|
|
6020
6067
|
gitQuery: GitObjectsQuery,
|
|
6021
|
-
destinations:
|
|
6068
|
+
destinations: z211.object({
|
|
6022
6069
|
s3: ExporterDestinationS3.nullish(),
|
|
6023
6070
|
azure: ExporterDestinationAzure.nullish(),
|
|
6024
6071
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6025
6072
|
github: ExporterDestinationGithub.nullish(),
|
|
6026
6073
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6027
6074
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6028
|
-
webhookUrl:
|
|
6075
|
+
webhookUrl: z211.string().nullish()
|
|
6029
6076
|
})
|
|
6030
6077
|
});
|
|
6031
|
-
var DTOPipelineUpdateBody =
|
|
6032
|
-
exporterId:
|
|
6033
|
-
name:
|
|
6034
|
-
isEnabled:
|
|
6078
|
+
var DTOPipelineUpdateBody = z211.object({
|
|
6079
|
+
exporterId: z211.string().optional(),
|
|
6080
|
+
name: z211.string().optional(),
|
|
6081
|
+
isEnabled: z211.boolean().optional(),
|
|
6035
6082
|
eventType: PipelineEventType.optional(),
|
|
6036
|
-
brandPersistentId:
|
|
6037
|
-
themePersistentId:
|
|
6038
|
-
themePersistentIds:
|
|
6083
|
+
brandPersistentId: z211.string().optional(),
|
|
6084
|
+
themePersistentId: z211.string().optional(),
|
|
6085
|
+
themePersistentIds: z211.string().array().optional(),
|
|
6039
6086
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6040
6087
|
destination: PipelineDestinationType.optional(),
|
|
6041
6088
|
gitQuery: GitObjectsQuery.optional(),
|
|
6042
|
-
destinations:
|
|
6089
|
+
destinations: z211.object({
|
|
6043
6090
|
s3: ExporterDestinationS3.nullish(),
|
|
6044
6091
|
azure: ExporterDestinationAzure.nullish(),
|
|
6045
6092
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6046
6093
|
github: ExporterDestinationGithub.nullish(),
|
|
6047
6094
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6048
6095
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6049
|
-
webhookUrl:
|
|
6096
|
+
webhookUrl: z211.string().nullish()
|
|
6050
6097
|
}).optional(),
|
|
6051
6098
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
6052
6099
|
});
|
|
6053
|
-
var DTOPipelineTriggerBody =
|
|
6054
|
-
designSystemVersionId:
|
|
6100
|
+
var DTOPipelineTriggerBody = z211.object({
|
|
6101
|
+
designSystemVersionId: z211.string()
|
|
6055
6102
|
});
|
|
6056
6103
|
|
|
6057
6104
|
// src/api/payloads/liveblocks/auth.ts
|
|
6058
|
-
import { z as
|
|
6059
|
-
var DTOLiveblocksAuthRequest =
|
|
6060
|
-
room:
|
|
6105
|
+
import { z as z212 } from "zod";
|
|
6106
|
+
var DTOLiveblocksAuthRequest = z212.object({
|
|
6107
|
+
room: z212.string().optional()
|
|
6061
6108
|
});
|
|
6062
6109
|
|
|
6063
6110
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
6064
|
-
import { z as
|
|
6065
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
6111
|
+
import { z as z213 } from "zod";
|
|
6112
|
+
var DTOUpdateUserNotificationSettingsPayload = z213.object({
|
|
6066
6113
|
notificationSettings: UserNotificationSettings
|
|
6067
6114
|
});
|
|
6068
|
-
var DTOUserNotificationSettingsResponse =
|
|
6069
|
-
userId:
|
|
6070
|
-
workspaceId:
|
|
6115
|
+
var DTOUserNotificationSettingsResponse = z213.object({
|
|
6116
|
+
userId: z213.string(),
|
|
6117
|
+
workspaceId: z213.string(),
|
|
6071
6118
|
notificationSettings: UserNotificationSettings
|
|
6072
6119
|
});
|
|
6073
6120
|
|
|
@@ -6075,13 +6122,13 @@ var DTOUserNotificationSettingsResponse = z212.object({
|
|
|
6075
6122
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
6076
6123
|
|
|
6077
6124
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
6078
|
-
import { z as
|
|
6079
|
-
var DTOTransferOwnershipPayload =
|
|
6080
|
-
newOwnerId:
|
|
6125
|
+
import { z as z214 } from "zod";
|
|
6126
|
+
var DTOTransferOwnershipPayload = z214.object({
|
|
6127
|
+
newOwnerId: z214.string()
|
|
6081
6128
|
});
|
|
6082
6129
|
|
|
6083
6130
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
6084
|
-
import { z as
|
|
6131
|
+
import { z as z215 } from "zod";
|
|
6085
6132
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
6086
6133
|
function validateSsoPayload(ssoPayload) {
|
|
6087
6134
|
const keys = [];
|
|
@@ -6104,21 +6151,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
6104
6151
|
keys
|
|
6105
6152
|
};
|
|
6106
6153
|
}
|
|
6107
|
-
var NpmRegistryInput =
|
|
6108
|
-
enabledScopes:
|
|
6109
|
-
customRegistryUrl:
|
|
6110
|
-
bypassProxy:
|
|
6111
|
-
npmProxyRegistryConfigId:
|
|
6112
|
-
npmProxyVersion:
|
|
6113
|
-
registryType:
|
|
6114
|
-
authType:
|
|
6115
|
-
authHeaderName:
|
|
6116
|
-
authHeaderValue:
|
|
6117
|
-
accessToken:
|
|
6118
|
-
username:
|
|
6119
|
-
password:
|
|
6120
|
-
});
|
|
6121
|
-
var WorkspaceConfigurationPayload =
|
|
6154
|
+
var NpmRegistryInput = z215.object({
|
|
6155
|
+
enabledScopes: z215.array(z215.string()),
|
|
6156
|
+
customRegistryUrl: z215.string().optional(),
|
|
6157
|
+
bypassProxy: z215.boolean().optional(),
|
|
6158
|
+
npmProxyRegistryConfigId: z215.string().optional(),
|
|
6159
|
+
npmProxyVersion: z215.number().optional(),
|
|
6160
|
+
registryType: z215.string(),
|
|
6161
|
+
authType: z215.string(),
|
|
6162
|
+
authHeaderName: z215.string(),
|
|
6163
|
+
authHeaderValue: z215.string(),
|
|
6164
|
+
accessToken: z215.string(),
|
|
6165
|
+
username: z215.string(),
|
|
6166
|
+
password: z215.string()
|
|
6167
|
+
});
|
|
6168
|
+
var WorkspaceConfigurationPayload = z215.object({
|
|
6122
6169
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
6123
6170
|
sso: SsoProvider.partial().optional(),
|
|
6124
6171
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -6126,218 +6173,218 @@ var WorkspaceConfigurationPayload = z214.object({
|
|
|
6126
6173
|
});
|
|
6127
6174
|
|
|
6128
6175
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
6129
|
-
import { z as
|
|
6130
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
6176
|
+
import { z as z216 } from "zod";
|
|
6177
|
+
var DTOWorkspaceIntegrationOauthInput = z216.object({
|
|
6131
6178
|
type: IntegrationType
|
|
6132
6179
|
});
|
|
6133
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
6134
|
-
userId:
|
|
6180
|
+
var DTOWorkspaceIntegrationPATInput = z216.object({
|
|
6181
|
+
userId: z216.string(),
|
|
6135
6182
|
type: IntegrationType,
|
|
6136
6183
|
token: IntegrationToken
|
|
6137
6184
|
});
|
|
6138
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
6139
|
-
organization:
|
|
6185
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z216.object({
|
|
6186
|
+
organization: z216.string().optional(),
|
|
6140
6187
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
6141
|
-
project:
|
|
6188
|
+
project: z216.string().optional(),
|
|
6142
6189
|
// Only for Bitbucket and Azure
|
|
6143
|
-
repository:
|
|
6190
|
+
repository: z216.string().optional(),
|
|
6144
6191
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
6145
|
-
branch:
|
|
6192
|
+
branch: z216.string().optional(),
|
|
6146
6193
|
// For all providers, useful for PR creations.
|
|
6147
|
-
user:
|
|
6194
|
+
user: z216.string().optional()
|
|
6148
6195
|
// Only for Gitlab User Repositories
|
|
6149
6196
|
});
|
|
6150
6197
|
|
|
6151
6198
|
// src/api/dto/design-systems/version.ts
|
|
6152
|
-
var DTODesignSystemVersion =
|
|
6153
|
-
id:
|
|
6154
|
-
createdAt:
|
|
6199
|
+
var DTODesignSystemVersion = z217.object({
|
|
6200
|
+
id: z217.string(),
|
|
6201
|
+
createdAt: z217.coerce.date(),
|
|
6155
6202
|
meta: ObjectMeta,
|
|
6156
|
-
version:
|
|
6157
|
-
isReadonly:
|
|
6158
|
-
changeLog:
|
|
6159
|
-
designSystemId:
|
|
6203
|
+
version: z217.string(),
|
|
6204
|
+
isReadonly: z217.boolean(),
|
|
6205
|
+
changeLog: z217.string(),
|
|
6206
|
+
designSystemId: z217.string()
|
|
6160
6207
|
});
|
|
6161
|
-
var DTODesignSystemVersionsListResponse =
|
|
6162
|
-
designSystemVersions:
|
|
6208
|
+
var DTODesignSystemVersionsListResponse = z217.object({
|
|
6209
|
+
designSystemVersions: z217.array(DTODesignSystemVersion)
|
|
6163
6210
|
});
|
|
6164
|
-
var DTODesignSystemVersionGetResponse =
|
|
6211
|
+
var DTODesignSystemVersionGetResponse = z217.object({
|
|
6165
6212
|
designSystemVersion: DTODesignSystemVersion
|
|
6166
6213
|
});
|
|
6167
|
-
var DTODesignSystemVersionCreationResponse =
|
|
6214
|
+
var DTODesignSystemVersionCreationResponse = z217.object({
|
|
6168
6215
|
meta: ObjectMeta,
|
|
6169
|
-
version:
|
|
6170
|
-
changeLog:
|
|
6171
|
-
isReadOnly:
|
|
6172
|
-
designSystemId:
|
|
6173
|
-
jobId:
|
|
6174
|
-
});
|
|
6175
|
-
var VersionSQSPayload =
|
|
6176
|
-
jobId:
|
|
6177
|
-
designSystemId:
|
|
6216
|
+
version: z217.string(),
|
|
6217
|
+
changeLog: z217.string(),
|
|
6218
|
+
isReadOnly: z217.boolean(),
|
|
6219
|
+
designSystemId: z217.string(),
|
|
6220
|
+
jobId: z217.string()
|
|
6221
|
+
});
|
|
6222
|
+
var VersionSQSPayload = z217.object({
|
|
6223
|
+
jobId: z217.string(),
|
|
6224
|
+
designSystemId: z217.string(),
|
|
6178
6225
|
input: DTOCreateVersionInput
|
|
6179
6226
|
});
|
|
6180
|
-
var DTODesignSystemVersionJobsResponse =
|
|
6181
|
-
jobs:
|
|
6227
|
+
var DTODesignSystemVersionJobsResponse = z217.object({
|
|
6228
|
+
jobs: z217.array(VersionCreationJob)
|
|
6182
6229
|
});
|
|
6183
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
6230
|
+
var DTODesignSystemVersionJobStatusResponse = z217.object({
|
|
6184
6231
|
job: VersionCreationJob
|
|
6185
6232
|
});
|
|
6186
6233
|
|
|
6187
6234
|
// src/api/dto/design-systems/view.ts
|
|
6188
|
-
import { z as
|
|
6189
|
-
var DTOElementViewColumnSharedAttributes =
|
|
6190
|
-
id:
|
|
6191
|
-
persistentId:
|
|
6192
|
-
width:
|
|
6235
|
+
import { z as z218 } from "zod";
|
|
6236
|
+
var DTOElementViewColumnSharedAttributes = z218.object({
|
|
6237
|
+
id: z218.string(),
|
|
6238
|
+
persistentId: z218.string(),
|
|
6239
|
+
width: z218.number()
|
|
6193
6240
|
});
|
|
6194
6241
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6195
|
-
type:
|
|
6242
|
+
type: z218.literal("BaseProperty"),
|
|
6196
6243
|
basePropertyType: ElementViewBaseColumnType
|
|
6197
6244
|
});
|
|
6198
6245
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6199
|
-
type:
|
|
6200
|
-
propertyDefinitionId:
|
|
6246
|
+
type: z218.literal("PropertyDefinition"),
|
|
6247
|
+
propertyDefinitionId: z218.string()
|
|
6201
6248
|
});
|
|
6202
6249
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6203
|
-
type:
|
|
6204
|
-
themeId:
|
|
6250
|
+
type: z218.literal("Theme"),
|
|
6251
|
+
themeId: z218.string()
|
|
6205
6252
|
});
|
|
6206
|
-
var DTOElementViewColumn =
|
|
6253
|
+
var DTOElementViewColumn = z218.discriminatedUnion("type", [
|
|
6207
6254
|
DTOElementViewBasePropertyColumn,
|
|
6208
6255
|
DTOElementViewPropertyDefinitionColumn,
|
|
6209
6256
|
DTOElementViewThemeColumn
|
|
6210
6257
|
]);
|
|
6211
|
-
var DTOElementView =
|
|
6258
|
+
var DTOElementView = z218.object({
|
|
6212
6259
|
meta: ObjectMeta,
|
|
6213
|
-
persistentId:
|
|
6260
|
+
persistentId: z218.string(),
|
|
6214
6261
|
targetElementType: ElementPropertyTargetType,
|
|
6215
|
-
id:
|
|
6216
|
-
isDefault:
|
|
6217
|
-
columns:
|
|
6262
|
+
id: z218.string(),
|
|
6263
|
+
isDefault: z218.boolean(),
|
|
6264
|
+
columns: z218.array(DTOElementViewColumn)
|
|
6218
6265
|
});
|
|
6219
|
-
var DTOElementViewsListResponse =
|
|
6220
|
-
elementDataViews:
|
|
6266
|
+
var DTOElementViewsListResponse = z218.object({
|
|
6267
|
+
elementDataViews: z218.array(DTOElementView)
|
|
6221
6268
|
});
|
|
6222
6269
|
|
|
6223
6270
|
// src/api/dto/workspaces/git.ts
|
|
6224
|
-
import { z as
|
|
6225
|
-
var DTOGitOrganization =
|
|
6226
|
-
id:
|
|
6227
|
-
name:
|
|
6228
|
-
url:
|
|
6229
|
-
slug:
|
|
6271
|
+
import { z as z219 } from "zod";
|
|
6272
|
+
var DTOGitOrganization = z219.object({
|
|
6273
|
+
id: z219.string(),
|
|
6274
|
+
name: z219.string(),
|
|
6275
|
+
url: z219.string(),
|
|
6276
|
+
slug: z219.string()
|
|
6230
6277
|
});
|
|
6231
|
-
var DTOGitProject =
|
|
6232
|
-
id:
|
|
6233
|
-
name:
|
|
6234
|
-
url:
|
|
6235
|
-
slug:
|
|
6278
|
+
var DTOGitProject = z219.object({
|
|
6279
|
+
id: z219.string(),
|
|
6280
|
+
name: z219.string(),
|
|
6281
|
+
url: z219.string(),
|
|
6282
|
+
slug: z219.string()
|
|
6236
6283
|
});
|
|
6237
|
-
var DTOGitRepository =
|
|
6238
|
-
id:
|
|
6239
|
-
name:
|
|
6240
|
-
url:
|
|
6241
|
-
slug:
|
|
6242
|
-
defaultBranch:
|
|
6284
|
+
var DTOGitRepository = z219.object({
|
|
6285
|
+
id: z219.string(),
|
|
6286
|
+
name: z219.string(),
|
|
6287
|
+
url: z219.string(),
|
|
6288
|
+
slug: z219.string(),
|
|
6289
|
+
defaultBranch: z219.string().optional()
|
|
6243
6290
|
});
|
|
6244
|
-
var DTOGitBranch =
|
|
6245
|
-
name:
|
|
6246
|
-
lastCommitId:
|
|
6291
|
+
var DTOGitBranch = z219.object({
|
|
6292
|
+
name: z219.string(),
|
|
6293
|
+
lastCommitId: z219.string()
|
|
6247
6294
|
});
|
|
6248
6295
|
|
|
6249
6296
|
// src/api/dto/workspaces/integrations.ts
|
|
6250
|
-
import { z as
|
|
6297
|
+
import { z as z220 } from "zod";
|
|
6251
6298
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6252
6299
|
accessToken: true,
|
|
6253
6300
|
refreshToken: true
|
|
6254
6301
|
});
|
|
6255
|
-
var DTOIntegration =
|
|
6256
|
-
id:
|
|
6257
|
-
workspaceId:
|
|
6302
|
+
var DTOIntegration = z220.object({
|
|
6303
|
+
id: z220.string(),
|
|
6304
|
+
workspaceId: z220.string(),
|
|
6258
6305
|
type: ExtendedIntegrationType,
|
|
6259
|
-
createdAt:
|
|
6260
|
-
integrationCredentials:
|
|
6261
|
-
integrationDesignSystems:
|
|
6306
|
+
createdAt: z220.coerce.date(),
|
|
6307
|
+
integrationCredentials: z220.array(DTOIntegrationCredentials).optional(),
|
|
6308
|
+
integrationDesignSystems: z220.array(IntegrationDesignSystem).optional()
|
|
6262
6309
|
});
|
|
6263
|
-
var DTOIntegrationOAuthGetResponse =
|
|
6264
|
-
url:
|
|
6310
|
+
var DTOIntegrationOAuthGetResponse = z220.object({
|
|
6311
|
+
url: z220.string()
|
|
6265
6312
|
});
|
|
6266
|
-
var DTOIntegrationPostResponse =
|
|
6313
|
+
var DTOIntegrationPostResponse = z220.object({
|
|
6267
6314
|
integration: DTOIntegration
|
|
6268
6315
|
});
|
|
6269
|
-
var DTOIntegrationsGetListResponse =
|
|
6316
|
+
var DTOIntegrationsGetListResponse = z220.object({
|
|
6270
6317
|
integrations: DTOIntegration.array()
|
|
6271
6318
|
});
|
|
6272
6319
|
|
|
6273
6320
|
// src/api/dto/workspaces/invitations.ts
|
|
6274
|
-
import { z as
|
|
6275
|
-
var DTOWorkspaceInvitationInput =
|
|
6276
|
-
email:
|
|
6321
|
+
import { z as z221 } from "zod";
|
|
6322
|
+
var DTOWorkspaceInvitationInput = z221.object({
|
|
6323
|
+
email: z221.string().email(),
|
|
6277
6324
|
role: WorkspaceRoleSchema
|
|
6278
6325
|
});
|
|
6279
|
-
var DTOWorkspaceInvitationsListInput =
|
|
6326
|
+
var DTOWorkspaceInvitationsListInput = z221.object({
|
|
6280
6327
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6281
|
-
designSystemId:
|
|
6328
|
+
designSystemId: z221.string().optional()
|
|
6282
6329
|
});
|
|
6283
|
-
var DTOWorkspaceInvitationsResponse =
|
|
6330
|
+
var DTOWorkspaceInvitationsResponse = z221.object({
|
|
6284
6331
|
invitations: WorkspaceInvitation.array()
|
|
6285
6332
|
});
|
|
6286
|
-
var DTOWorkspaceInviteUpdate =
|
|
6333
|
+
var DTOWorkspaceInviteUpdate = z221.object({
|
|
6287
6334
|
role: WorkspaceRoleSchema
|
|
6288
6335
|
});
|
|
6289
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
6336
|
+
var DTOWorkspaceInvitationUpdateResponse = z221.object({
|
|
6290
6337
|
invitation: WorkspaceInvitation
|
|
6291
6338
|
});
|
|
6292
6339
|
|
|
6293
6340
|
// src/api/dto/workspaces/membership.ts
|
|
6294
|
-
import { z as
|
|
6341
|
+
import { z as z224 } from "zod";
|
|
6295
6342
|
|
|
6296
6343
|
// src/api/dto/workspaces/workspace.ts
|
|
6297
|
-
import { z as
|
|
6344
|
+
import { z as z223 } from "zod";
|
|
6298
6345
|
|
|
6299
6346
|
// src/api/dto/workspaces/npm-registry.ts
|
|
6300
|
-
import { z as
|
|
6347
|
+
import { z as z222 } from "zod";
|
|
6301
6348
|
var DTONpmRegistryConfigConstants = {
|
|
6302
6349
|
passwordPlaceholder: "redacted"
|
|
6303
6350
|
};
|
|
6304
|
-
var DTONpmRegistryConfig =
|
|
6351
|
+
var DTONpmRegistryConfig = z222.object({
|
|
6305
6352
|
// Registry basic configuration
|
|
6306
6353
|
registryType: NpmRegistryType,
|
|
6307
|
-
registryUrl:
|
|
6308
|
-
customRegistryUrl:
|
|
6354
|
+
registryUrl: z222.string(),
|
|
6355
|
+
customRegistryUrl: z222.string().optional(),
|
|
6309
6356
|
// URL of Supernova NPM packages proxy
|
|
6310
|
-
proxyUrl:
|
|
6357
|
+
proxyUrl: z222.string(),
|
|
6311
6358
|
// Auth configuration
|
|
6312
6359
|
authType: NpmRegistryAuthType,
|
|
6313
|
-
accessToken:
|
|
6314
|
-
username:
|
|
6315
|
-
password:
|
|
6360
|
+
accessToken: z222.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6361
|
+
username: z222.string().optional(),
|
|
6362
|
+
password: z222.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6316
6363
|
// NPM package scopes for whih the proxy should be enabled
|
|
6317
|
-
enabledScopes:
|
|
6364
|
+
enabledScopes: z222.array(z222.string()),
|
|
6318
6365
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6319
6366
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6320
|
-
bypassProxy:
|
|
6367
|
+
bypassProxy: z222.boolean()
|
|
6321
6368
|
});
|
|
6322
6369
|
|
|
6323
6370
|
// src/api/dto/workspaces/workspace.ts
|
|
6324
6371
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6325
|
-
var DTOWorkspace =
|
|
6326
|
-
id:
|
|
6372
|
+
var DTOWorkspace = z223.object({
|
|
6373
|
+
id: z223.string(),
|
|
6327
6374
|
profile: DTOWorkspaceProfile,
|
|
6328
6375
|
subscription: Subscription,
|
|
6329
6376
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6330
6377
|
});
|
|
6331
|
-
var DTOWorkspaceCreateInput =
|
|
6332
|
-
name:
|
|
6378
|
+
var DTOWorkspaceCreateInput = z223.object({
|
|
6379
|
+
name: z223.string()
|
|
6333
6380
|
});
|
|
6334
|
-
var DTOWorkspaceResponse =
|
|
6381
|
+
var DTOWorkspaceResponse = z223.object({
|
|
6335
6382
|
workspace: DTOWorkspace
|
|
6336
6383
|
});
|
|
6337
6384
|
|
|
6338
6385
|
// src/api/dto/workspaces/membership.ts
|
|
6339
|
-
var DTOWorkspaceRole =
|
|
6340
|
-
var DTOUserWorkspaceMembership =
|
|
6386
|
+
var DTOWorkspaceRole = z224.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6387
|
+
var DTOUserWorkspaceMembership = z224.object({
|
|
6341
6388
|
// Workspace the user is a member of
|
|
6342
6389
|
workspace: DTOWorkspace,
|
|
6343
6390
|
// Assigned role the user has in the workspace
|
|
@@ -6347,26 +6394,26 @@ var DTOUserWorkspaceMembership = z223.object({
|
|
|
6347
6394
|
// when a workspace's subscription is downgraded to free tier
|
|
6348
6395
|
effectiveRole: DTOWorkspaceRole
|
|
6349
6396
|
});
|
|
6350
|
-
var DTOWorkspaceMember =
|
|
6397
|
+
var DTOWorkspaceMember = z224.object({
|
|
6351
6398
|
user: User,
|
|
6352
6399
|
role: WorkspaceRoleSchema,
|
|
6353
6400
|
effectiveRole: WorkspaceRoleSchema
|
|
6354
6401
|
});
|
|
6355
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6356
|
-
membership:
|
|
6402
|
+
var DTOUserWorkspaceMembershipsResponse = z224.object({
|
|
6403
|
+
membership: z224.array(DTOUserWorkspaceMembership)
|
|
6357
6404
|
});
|
|
6358
|
-
var DTOWorkspaceMembersListResponse =
|
|
6359
|
-
members:
|
|
6405
|
+
var DTOWorkspaceMembersListResponse = z224.object({
|
|
6406
|
+
members: z224.array(DTOWorkspaceMember)
|
|
6360
6407
|
});
|
|
6361
6408
|
|
|
6362
6409
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6363
|
-
var DTOAppBootstrapDataQuery =
|
|
6364
|
-
preferredWorkspaceId:
|
|
6365
|
-
preferredDesignSystemId:
|
|
6366
|
-
preferredVersionId:
|
|
6367
|
-
preferredBrandId:
|
|
6410
|
+
var DTOAppBootstrapDataQuery = z225.object({
|
|
6411
|
+
preferredWorkspaceId: z225.string().optional(),
|
|
6412
|
+
preferredDesignSystemId: z225.string().optional(),
|
|
6413
|
+
preferredVersionId: z225.string().optional(),
|
|
6414
|
+
preferredBrandId: z225.string().optional()
|
|
6368
6415
|
});
|
|
6369
|
-
var DTOAppBootstrapDataResponse =
|
|
6416
|
+
var DTOAppBootstrapDataResponse = z225.object({
|
|
6370
6417
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
6371
6418
|
designSystem: DTODesignSystem.optional(),
|
|
6372
6419
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -6374,95 +6421,95 @@ var DTOAppBootstrapDataResponse = z224.object({
|
|
|
6374
6421
|
});
|
|
6375
6422
|
|
|
6376
6423
|
// src/api/dto/collections/token-collection.ts
|
|
6377
|
-
import { z as
|
|
6378
|
-
var DTOTokenCollection =
|
|
6379
|
-
id:
|
|
6380
|
-
persistentId:
|
|
6381
|
-
designSystemVersionId:
|
|
6424
|
+
import { z as z226 } from "zod";
|
|
6425
|
+
var DTOTokenCollection = z226.object({
|
|
6426
|
+
id: z226.string(),
|
|
6427
|
+
persistentId: z226.string(),
|
|
6428
|
+
designSystemVersionId: z226.string(),
|
|
6382
6429
|
meta: ObjectMeta,
|
|
6383
6430
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
6384
|
-
elementPropertyOptionId:
|
|
6385
|
-
createdAt:
|
|
6386
|
-
updatedAt:
|
|
6431
|
+
elementPropertyOptionId: z226.string(),
|
|
6432
|
+
createdAt: z226.coerce.date(),
|
|
6433
|
+
updatedAt: z226.coerce.date(),
|
|
6387
6434
|
origin: CollectionOrigin.optional()
|
|
6388
6435
|
});
|
|
6389
|
-
var DTOTokenCollectionsListReponse =
|
|
6436
|
+
var DTOTokenCollectionsListReponse = z226.object({
|
|
6390
6437
|
collections: DTOTokenCollection.array()
|
|
6391
6438
|
});
|
|
6392
6439
|
|
|
6393
6440
|
// src/api/dto/design-tokens/design-token.ts
|
|
6394
|
-
import { z as
|
|
6441
|
+
import { z as z227 } from "zod";
|
|
6395
6442
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6396
|
-
|
|
6397
|
-
id:
|
|
6398
|
-
persistentId:
|
|
6399
|
-
designSystemVersionId:
|
|
6443
|
+
z227.object({
|
|
6444
|
+
id: z227.string(),
|
|
6445
|
+
persistentId: z227.string(),
|
|
6446
|
+
designSystemVersionId: z227.string(),
|
|
6400
6447
|
meta: ObjectMeta,
|
|
6401
6448
|
originStyle: DesignTokenOrigin.optional(),
|
|
6402
|
-
brandId:
|
|
6403
|
-
collectionId:
|
|
6404
|
-
updatedAt:
|
|
6449
|
+
brandId: z227.string(),
|
|
6450
|
+
collectionId: z227.string().optional(),
|
|
6451
|
+
updatedAt: z227.coerce.date()
|
|
6405
6452
|
})
|
|
6406
6453
|
);
|
|
6407
|
-
var DTODesignTokenListResponse =
|
|
6454
|
+
var DTODesignTokenListResponse = z227.object({
|
|
6408
6455
|
tokens: DTODesignToken.array()
|
|
6409
6456
|
});
|
|
6410
|
-
var DTODesignTokenResponse =
|
|
6457
|
+
var DTODesignTokenResponse = z227.object({
|
|
6411
6458
|
token: DTODesignToken
|
|
6412
6459
|
});
|
|
6413
|
-
var DTODesignTokenGroup =
|
|
6414
|
-
id:
|
|
6460
|
+
var DTODesignTokenGroup = z227.object({
|
|
6461
|
+
id: z227.string(),
|
|
6415
6462
|
tokenType: DesignTokenType,
|
|
6416
|
-
persistentId:
|
|
6417
|
-
isRoot:
|
|
6418
|
-
brandId:
|
|
6463
|
+
persistentId: z227.string(),
|
|
6464
|
+
isRoot: z227.boolean(),
|
|
6465
|
+
brandId: z227.string(),
|
|
6419
6466
|
meta: ObjectMeta,
|
|
6420
|
-
childrenIds:
|
|
6467
|
+
childrenIds: z227.string().array()
|
|
6421
6468
|
});
|
|
6422
|
-
var DTODesignTokenGroupListResponse =
|
|
6469
|
+
var DTODesignTokenGroupListResponse = z227.object({
|
|
6423
6470
|
groups: DTODesignTokenGroup.array()
|
|
6424
6471
|
});
|
|
6425
|
-
var DTODesignTokenGroupResponse =
|
|
6472
|
+
var DTODesignTokenGroupResponse = z227.object({
|
|
6426
6473
|
group: DTODesignTokenGroup
|
|
6427
6474
|
});
|
|
6428
6475
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6429
|
-
|
|
6430
|
-
persistentId:
|
|
6476
|
+
z227.object({
|
|
6477
|
+
persistentId: z227.string(),
|
|
6431
6478
|
meta: ObjectMeta,
|
|
6432
|
-
brandId:
|
|
6433
|
-
groupPersistentId:
|
|
6479
|
+
brandId: z227.string(),
|
|
6480
|
+
groupPersistentId: z227.string().optional()
|
|
6434
6481
|
})
|
|
6435
6482
|
);
|
|
6436
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6437
|
-
persistentId:
|
|
6483
|
+
var DTODesignTokenGroupCreatePayload = z227.object({
|
|
6484
|
+
persistentId: z227.string(),
|
|
6438
6485
|
meta: ObjectMeta,
|
|
6439
|
-
brandId:
|
|
6440
|
-
parentId:
|
|
6486
|
+
brandId: z227.string(),
|
|
6487
|
+
parentId: z227.string().optional(),
|
|
6441
6488
|
tokenType: DesignTokenType,
|
|
6442
|
-
childrenIds:
|
|
6489
|
+
childrenIds: z227.string().array()
|
|
6443
6490
|
});
|
|
6444
6491
|
|
|
6445
6492
|
// src/api/dto/documentation/anchor.ts
|
|
6446
|
-
import { z as
|
|
6493
|
+
import { z as z228 } from "zod";
|
|
6447
6494
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6448
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6449
|
-
anchors:
|
|
6495
|
+
var DTOGetDocumentationPageAnchorsResponse = z228.object({
|
|
6496
|
+
anchors: z228.array(DTODocumentationPageAnchor)
|
|
6450
6497
|
});
|
|
6451
6498
|
|
|
6452
6499
|
// src/api/dto/documentation/approvals.ts
|
|
6453
|
-
import { z as
|
|
6454
|
-
var DTODocumentationPageApprovalState =
|
|
6500
|
+
import { z as z229 } from "zod";
|
|
6501
|
+
var DTODocumentationPageApprovalState = z229.object({
|
|
6455
6502
|
approvalState: DocumentationPageApprovalState,
|
|
6456
|
-
pagePersistentId:
|
|
6457
|
-
updatedByUserId:
|
|
6458
|
-
designSystemVersionId:
|
|
6459
|
-
updatedAt:
|
|
6460
|
-
createdAt:
|
|
6461
|
-
});
|
|
6462
|
-
var DTODocumentationGroupApprovalState =
|
|
6463
|
-
persistentId:
|
|
6464
|
-
groupPersistentId:
|
|
6465
|
-
designSystemVersionId:
|
|
6503
|
+
pagePersistentId: z229.string(),
|
|
6504
|
+
updatedByUserId: z229.string(),
|
|
6505
|
+
designSystemVersionId: z229.string(),
|
|
6506
|
+
updatedAt: z229.coerce.date(),
|
|
6507
|
+
createdAt: z229.coerce.date()
|
|
6508
|
+
});
|
|
6509
|
+
var DTODocumentationGroupApprovalState = z229.object({
|
|
6510
|
+
persistentId: z229.string(),
|
|
6511
|
+
groupPersistentId: z229.string(),
|
|
6512
|
+
designSystemVersionId: z229.string(),
|
|
6466
6513
|
approvalState: DocumentationPageApprovalState
|
|
6467
6514
|
});
|
|
6468
6515
|
|
|
@@ -6470,68 +6517,68 @@ var DTODocumentationGroupApprovalState = z228.object({
|
|
|
6470
6517
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6471
6518
|
|
|
6472
6519
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6473
|
-
import { z as
|
|
6520
|
+
import { z as z234 } from "zod";
|
|
6474
6521
|
|
|
6475
6522
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6476
|
-
import { z as
|
|
6523
|
+
import { z as z233 } from "zod";
|
|
6477
6524
|
|
|
6478
6525
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6479
|
-
import { z as
|
|
6526
|
+
import { z as z231 } from "zod";
|
|
6480
6527
|
|
|
6481
6528
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6482
|
-
import { z as
|
|
6529
|
+
import { z as z230 } from "zod";
|
|
6483
6530
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6484
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6485
|
-
showSidebar:
|
|
6486
|
-
isPrivate:
|
|
6487
|
-
isHidden:
|
|
6531
|
+
var DTODocumentationItemConfigurationV2 = z230.object({
|
|
6532
|
+
showSidebar: z230.boolean(),
|
|
6533
|
+
isPrivate: z230.boolean(),
|
|
6534
|
+
isHidden: z230.boolean(),
|
|
6488
6535
|
header: DTODocumentationItemHeaderV2
|
|
6489
6536
|
});
|
|
6490
6537
|
|
|
6491
6538
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6492
|
-
var DTODocumentationDraftChangeType =
|
|
6493
|
-
var DTODocumentationDraftStateCreated =
|
|
6494
|
-
changeType:
|
|
6495
|
-
});
|
|
6496
|
-
var DTODocumentationDraftStateUpdated =
|
|
6497
|
-
changeType:
|
|
6498
|
-
changes:
|
|
6499
|
-
previousTitle:
|
|
6539
|
+
var DTODocumentationDraftChangeType = z231.enum(["Created", "Updated", "Deleted"]);
|
|
6540
|
+
var DTODocumentationDraftStateCreated = z231.object({
|
|
6541
|
+
changeType: z231.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6542
|
+
});
|
|
6543
|
+
var DTODocumentationDraftStateUpdated = z231.object({
|
|
6544
|
+
changeType: z231.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6545
|
+
changes: z231.object({
|
|
6546
|
+
previousTitle: z231.string().optional(),
|
|
6500
6547
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6501
|
-
previousContentHash:
|
|
6548
|
+
previousContentHash: z231.string().optional()
|
|
6502
6549
|
})
|
|
6503
6550
|
});
|
|
6504
|
-
var DTODocumentationDraftStateDeleted =
|
|
6505
|
-
changeType:
|
|
6506
|
-
deletedAt:
|
|
6507
|
-
deletedByUserId:
|
|
6551
|
+
var DTODocumentationDraftStateDeleted = z231.object({
|
|
6552
|
+
changeType: z231.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6553
|
+
deletedAt: z231.coerce.date(),
|
|
6554
|
+
deletedByUserId: z231.string()
|
|
6508
6555
|
});
|
|
6509
|
-
var DTODocumentationDraftState =
|
|
6556
|
+
var DTODocumentationDraftState = z231.discriminatedUnion("changeType", [
|
|
6510
6557
|
DTODocumentationDraftStateCreated,
|
|
6511
6558
|
DTODocumentationDraftStateUpdated,
|
|
6512
6559
|
DTODocumentationDraftStateDeleted
|
|
6513
6560
|
]);
|
|
6514
6561
|
|
|
6515
6562
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6516
|
-
import { z as
|
|
6517
|
-
var DTODocumentationPublishMetadata =
|
|
6518
|
-
lastPublishedByUserId:
|
|
6519
|
-
lastPublishedAt:
|
|
6563
|
+
import { z as z232 } from "zod";
|
|
6564
|
+
var DTODocumentationPublishMetadata = z232.object({
|
|
6565
|
+
lastPublishedByUserId: z232.string(),
|
|
6566
|
+
lastPublishedAt: z232.coerce.date()
|
|
6520
6567
|
});
|
|
6521
6568
|
|
|
6522
6569
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6523
|
-
var DTODocumentationPageV2 =
|
|
6524
|
-
id:
|
|
6525
|
-
persistentId:
|
|
6526
|
-
designSystemVersionId:
|
|
6527
|
-
title:
|
|
6570
|
+
var DTODocumentationPageV2 = z233.object({
|
|
6571
|
+
id: z233.string(),
|
|
6572
|
+
persistentId: z233.string(),
|
|
6573
|
+
designSystemVersionId: z233.string(),
|
|
6574
|
+
title: z233.string(),
|
|
6528
6575
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6529
|
-
shortPersistentId:
|
|
6530
|
-
slug:
|
|
6531
|
-
userSlug:
|
|
6532
|
-
createdAt:
|
|
6533
|
-
updatedAt:
|
|
6534
|
-
path:
|
|
6576
|
+
shortPersistentId: z233.string(),
|
|
6577
|
+
slug: z233.string().optional(),
|
|
6578
|
+
userSlug: z233.string().optional(),
|
|
6579
|
+
createdAt: z233.coerce.date(),
|
|
6580
|
+
updatedAt: z233.coerce.date(),
|
|
6581
|
+
path: z233.string(),
|
|
6535
6582
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6536
6583
|
draftState: DTODocumentationDraftState.optional(),
|
|
6537
6584
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6539,266 +6586,266 @@ var DTODocumentationPageV2 = z232.object({
|
|
|
6539
6586
|
/** Defines the approval state of the documentation page */
|
|
6540
6587
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6541
6588
|
/** Id of the page document room */
|
|
6542
|
-
liveblocksRoomId:
|
|
6589
|
+
liveblocksRoomId: z233.string().optional(),
|
|
6543
6590
|
// Backward compatibility
|
|
6544
|
-
type:
|
|
6591
|
+
type: z233.literal("Page")
|
|
6545
6592
|
});
|
|
6546
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6593
|
+
var DTOCreateDocumentationPageInputV2 = z233.object({
|
|
6547
6594
|
// Identifier
|
|
6548
|
-
persistentId:
|
|
6595
|
+
persistentId: z233.string(),
|
|
6549
6596
|
// Page properties
|
|
6550
|
-
title:
|
|
6597
|
+
title: z233.string(),
|
|
6551
6598
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6552
6599
|
// Page placement properties
|
|
6553
|
-
parentPersistentId:
|
|
6554
|
-
afterPersistentId:
|
|
6600
|
+
parentPersistentId: z233.string(),
|
|
6601
|
+
afterPersistentId: z233.string().nullish()
|
|
6555
6602
|
});
|
|
6556
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6603
|
+
var DTOUpdateDocumentationPageInputV2 = z233.object({
|
|
6557
6604
|
// Identifier of the page to update
|
|
6558
|
-
id:
|
|
6605
|
+
id: z233.string(),
|
|
6559
6606
|
// Page properties
|
|
6560
|
-
title:
|
|
6607
|
+
title: z233.string().optional(),
|
|
6561
6608
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6562
6609
|
});
|
|
6563
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
6610
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z233.object({
|
|
6564
6611
|
// Identifier of the page to update
|
|
6565
|
-
id:
|
|
6612
|
+
id: z233.string(),
|
|
6566
6613
|
// Page properties
|
|
6567
|
-
documentItems:
|
|
6614
|
+
documentItems: z233.array(DocumentationPageContentItem)
|
|
6568
6615
|
});
|
|
6569
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6616
|
+
var DTOMoveDocumentationPageInputV2 = z233.object({
|
|
6570
6617
|
// Identifier of the group to update
|
|
6571
|
-
id:
|
|
6618
|
+
id: z233.string(),
|
|
6572
6619
|
// Page placement properties
|
|
6573
|
-
parentPersistentId:
|
|
6574
|
-
afterPersistentId:
|
|
6620
|
+
parentPersistentId: z233.string(),
|
|
6621
|
+
afterPersistentId: z233.string().nullish()
|
|
6575
6622
|
});
|
|
6576
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6623
|
+
var DTODuplicateDocumentationPageInputV2 = z233.object({
|
|
6577
6624
|
// Identifier of the page to duplicate from
|
|
6578
|
-
id:
|
|
6625
|
+
id: z233.string(),
|
|
6579
6626
|
// New page persistent id
|
|
6580
|
-
persistentId:
|
|
6627
|
+
persistentId: z233.string(),
|
|
6581
6628
|
// Page placement properties
|
|
6582
|
-
parentPersistentId:
|
|
6583
|
-
afterPersistentId:
|
|
6629
|
+
parentPersistentId: z233.string(),
|
|
6630
|
+
afterPersistentId: z233.string().nullish()
|
|
6584
6631
|
});
|
|
6585
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6632
|
+
var DTODeleteDocumentationPageInputV2 = z233.object({
|
|
6586
6633
|
// Identifier
|
|
6587
|
-
id:
|
|
6634
|
+
id: z233.string()
|
|
6588
6635
|
});
|
|
6589
|
-
var DTORestoreDocumentationPageInput =
|
|
6590
|
-
persistentId:
|
|
6591
|
-
snapshotId:
|
|
6636
|
+
var DTORestoreDocumentationPageInput = z233.object({
|
|
6637
|
+
persistentId: z233.string(),
|
|
6638
|
+
snapshotId: z233.string().optional()
|
|
6592
6639
|
});
|
|
6593
|
-
var DTORestoreDocumentationGroupInput =
|
|
6594
|
-
persistentId:
|
|
6595
|
-
snapshotId:
|
|
6640
|
+
var DTORestoreDocumentationGroupInput = z233.object({
|
|
6641
|
+
persistentId: z233.string(),
|
|
6642
|
+
snapshotId: z233.string().optional()
|
|
6596
6643
|
});
|
|
6597
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6598
|
-
persistentId:
|
|
6644
|
+
var DTODocumentationPageApprovalStateChangeInput = z233.object({
|
|
6645
|
+
persistentId: z233.string(),
|
|
6599
6646
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6600
6647
|
});
|
|
6601
6648
|
|
|
6602
6649
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6603
|
-
var DTODocumentationPageSnapshot =
|
|
6604
|
-
id:
|
|
6605
|
-
designSystemVersionId:
|
|
6606
|
-
createdAt:
|
|
6607
|
-
updatedAt:
|
|
6650
|
+
var DTODocumentationPageSnapshot = z234.object({
|
|
6651
|
+
id: z234.string(),
|
|
6652
|
+
designSystemVersionId: z234.string(),
|
|
6653
|
+
createdAt: z234.string(),
|
|
6654
|
+
updatedAt: z234.string(),
|
|
6608
6655
|
documentationPage: DTODocumentationPageV2,
|
|
6609
|
-
pageContentHash:
|
|
6656
|
+
pageContentHash: z234.string(),
|
|
6610
6657
|
reason: DesignElementSnapshotReason
|
|
6611
6658
|
});
|
|
6612
6659
|
|
|
6613
6660
|
// src/api/dto/documentation/link-preview.ts
|
|
6614
|
-
import { z as
|
|
6615
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6661
|
+
import { z as z235 } from "zod";
|
|
6662
|
+
var DTODocumentationLinkPreviewResponse = z235.object({
|
|
6616
6663
|
linkPreview: DocumentationLinkPreview
|
|
6617
6664
|
});
|
|
6618
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6619
|
-
url:
|
|
6620
|
-
documentationItemPersistentId:
|
|
6665
|
+
var DTODocumentationLinkPreviewRequest = z235.object({
|
|
6666
|
+
url: z235.string().optional(),
|
|
6667
|
+
documentationItemPersistentId: z235.string().optional()
|
|
6621
6668
|
});
|
|
6622
6669
|
|
|
6623
6670
|
// src/api/dto/documentation/publish.ts
|
|
6624
|
-
import { z as
|
|
6671
|
+
import { z as z239 } from "zod";
|
|
6625
6672
|
|
|
6626
6673
|
// src/api/dto/export/exporter.ts
|
|
6627
|
-
import { z as
|
|
6628
|
-
var DTOExporterType =
|
|
6629
|
-
var DTOExporterSource =
|
|
6630
|
-
var DTOExporterMembershipRole =
|
|
6631
|
-
var DTOExporterListQuery =
|
|
6632
|
-
limit:
|
|
6633
|
-
offset:
|
|
6674
|
+
import { z as z236 } from "zod";
|
|
6675
|
+
var DTOExporterType = z236.enum(["documentation", "code"]);
|
|
6676
|
+
var DTOExporterSource = z236.enum(["git", "upload"]);
|
|
6677
|
+
var DTOExporterMembershipRole = z236.enum(["Owner", "OwnerArchived", "User"]);
|
|
6678
|
+
var DTOExporterListQuery = z236.object({
|
|
6679
|
+
limit: z236.coerce.number().optional(),
|
|
6680
|
+
offset: z236.coerce.number().optional(),
|
|
6634
6681
|
type: DTOExporterType.optional(),
|
|
6635
|
-
search:
|
|
6682
|
+
search: z236.string().optional()
|
|
6636
6683
|
});
|
|
6637
|
-
var DTOExporter =
|
|
6638
|
-
id:
|
|
6639
|
-
name:
|
|
6640
|
-
isPrivate:
|
|
6684
|
+
var DTOExporter = z236.object({
|
|
6685
|
+
id: z236.string(),
|
|
6686
|
+
name: z236.string(),
|
|
6687
|
+
isPrivate: z236.boolean(),
|
|
6641
6688
|
exporterType: DTOExporterType,
|
|
6642
|
-
isDefaultDocumentationExporter:
|
|
6643
|
-
iconURL:
|
|
6689
|
+
isDefaultDocumentationExporter: z236.boolean(),
|
|
6690
|
+
iconURL: z236.string().optional(),
|
|
6644
6691
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6645
6692
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
6646
6693
|
customBlocks: PulsarCustomBlock.array(),
|
|
6647
|
-
blockVariants:
|
|
6648
|
-
homepage:
|
|
6649
|
-
organization:
|
|
6650
|
-
packageId:
|
|
6651
|
-
tags:
|
|
6652
|
-
author:
|
|
6653
|
-
version:
|
|
6654
|
-
description:
|
|
6655
|
-
usesLocale:
|
|
6656
|
-
usesBrands:
|
|
6657
|
-
usesThemes:
|
|
6658
|
-
readme:
|
|
6659
|
-
routingVersion:
|
|
6694
|
+
blockVariants: z236.record(z236.string(), PulsarContributionVariant.array()),
|
|
6695
|
+
homepage: z236.string().optional(),
|
|
6696
|
+
organization: z236.string().optional(),
|
|
6697
|
+
packageId: z236.string().optional(),
|
|
6698
|
+
tags: z236.array(z236.string()),
|
|
6699
|
+
author: z236.string().optional(),
|
|
6700
|
+
version: z236.string(),
|
|
6701
|
+
description: z236.string(),
|
|
6702
|
+
usesLocale: z236.boolean(),
|
|
6703
|
+
usesBrands: z236.boolean(),
|
|
6704
|
+
usesThemes: z236.boolean(),
|
|
6705
|
+
readme: z236.string().optional(),
|
|
6706
|
+
routingVersion: z236.string().optional(),
|
|
6660
6707
|
source: DTOExporterSource,
|
|
6661
|
-
gitProvider:
|
|
6662
|
-
gitUrl: nullishToOptional(
|
|
6663
|
-
gitBranch: nullishToOptional(
|
|
6664
|
-
gitDirectory: nullishToOptional(
|
|
6665
|
-
isDeprecated:
|
|
6666
|
-
deprecationNote:
|
|
6667
|
-
replacementExporterId:
|
|
6668
|
-
});
|
|
6669
|
-
var DTOExporterMembership =
|
|
6670
|
-
workspaceId:
|
|
6671
|
-
exporterId:
|
|
6708
|
+
gitProvider: z236.string().optional(),
|
|
6709
|
+
gitUrl: nullishToOptional(z236.string()),
|
|
6710
|
+
gitBranch: nullishToOptional(z236.string()),
|
|
6711
|
+
gitDirectory: nullishToOptional(z236.string()),
|
|
6712
|
+
isDeprecated: z236.boolean(),
|
|
6713
|
+
deprecationNote: z236.string().optional(),
|
|
6714
|
+
replacementExporterId: z236.string().optional()
|
|
6715
|
+
});
|
|
6716
|
+
var DTOExporterMembership = z236.object({
|
|
6717
|
+
workspaceId: z236.string(),
|
|
6718
|
+
exporterId: z236.string(),
|
|
6672
6719
|
role: DTOExporterMembershipRole
|
|
6673
6720
|
});
|
|
6674
|
-
var DTOExporterResponse =
|
|
6721
|
+
var DTOExporterResponse = z236.object({
|
|
6675
6722
|
exporter: DTOExporter,
|
|
6676
6723
|
membership: DTOExporterMembership
|
|
6677
6724
|
});
|
|
6678
|
-
var DTOExporterListResponse =
|
|
6725
|
+
var DTOExporterListResponse = z236.object({
|
|
6679
6726
|
exporters: DTOExporter.array(),
|
|
6680
6727
|
membership: DTOExporterMembership.array(),
|
|
6681
|
-
total:
|
|
6728
|
+
total: z236.number()
|
|
6682
6729
|
});
|
|
6683
|
-
var DTOExporterGitProviderEnum =
|
|
6684
|
-
var DTOExporterCreateInput =
|
|
6685
|
-
url:
|
|
6730
|
+
var DTOExporterGitProviderEnum = z236.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6731
|
+
var DTOExporterCreateInput = z236.object({
|
|
6732
|
+
url: z236.string(),
|
|
6686
6733
|
provider: DTOExporterGitProviderEnum
|
|
6687
6734
|
});
|
|
6688
|
-
var DTOExporterUpdateInput =
|
|
6689
|
-
url:
|
|
6735
|
+
var DTOExporterUpdateInput = z236.object({
|
|
6736
|
+
url: z236.string().optional()
|
|
6690
6737
|
});
|
|
6691
|
-
var DTOExporterDeprecationInput =
|
|
6692
|
-
isDeprecated:
|
|
6693
|
-
deprecationNote:
|
|
6694
|
-
replacementExporterId:
|
|
6738
|
+
var DTOExporterDeprecationInput = z236.object({
|
|
6739
|
+
isDeprecated: z236.boolean(),
|
|
6740
|
+
deprecationNote: z236.string().optional(),
|
|
6741
|
+
replacementExporterId: z236.string().optional()
|
|
6695
6742
|
});
|
|
6696
6743
|
|
|
6697
6744
|
// src/api/dto/export/filter.ts
|
|
6698
6745
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6699
6746
|
|
|
6700
6747
|
// src/api/dto/export/job.ts
|
|
6701
|
-
import { z as
|
|
6702
|
-
var DTOExportJobCreatedBy =
|
|
6703
|
-
userId:
|
|
6704
|
-
userName:
|
|
6748
|
+
import { z as z237 } from "zod";
|
|
6749
|
+
var DTOExportJobCreatedBy = z237.object({
|
|
6750
|
+
userId: z237.string(),
|
|
6751
|
+
userName: z237.string()
|
|
6705
6752
|
});
|
|
6706
|
-
var DTOExportJobDesignSystemPreview =
|
|
6707
|
-
id:
|
|
6753
|
+
var DTOExportJobDesignSystemPreview = z237.object({
|
|
6754
|
+
id: z237.string(),
|
|
6708
6755
|
meta: ObjectMeta
|
|
6709
6756
|
});
|
|
6710
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6711
|
-
id:
|
|
6757
|
+
var DTOExportJobDesignSystemVersionPreview = z237.object({
|
|
6758
|
+
id: z237.string(),
|
|
6712
6759
|
meta: ObjectMeta,
|
|
6713
|
-
version:
|
|
6714
|
-
isReadonly:
|
|
6760
|
+
version: z237.string(),
|
|
6761
|
+
isReadonly: z237.boolean()
|
|
6715
6762
|
});
|
|
6716
|
-
var DTOExportJobDestinations =
|
|
6763
|
+
var DTOExportJobDestinations = z237.object({
|
|
6717
6764
|
s3: ExporterDestinationS3.optional(),
|
|
6718
6765
|
azure: ExporterDestinationAzure.optional(),
|
|
6719
6766
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6720
6767
|
github: ExporterDestinationGithub.optional(),
|
|
6721
6768
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6722
6769
|
documentation: ExporterDestinationDocs.optional(),
|
|
6723
|
-
webhookUrl:
|
|
6770
|
+
webhookUrl: z237.string().optional()
|
|
6724
6771
|
});
|
|
6725
6772
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6726
6773
|
sndocs: true
|
|
6727
6774
|
}).extend({
|
|
6728
6775
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6729
6776
|
});
|
|
6730
|
-
var DTOExportJob =
|
|
6731
|
-
id:
|
|
6732
|
-
createdAt:
|
|
6733
|
-
finishedAt:
|
|
6734
|
-
index:
|
|
6777
|
+
var DTOExportJob = z237.object({
|
|
6778
|
+
id: z237.string(),
|
|
6779
|
+
createdAt: z237.coerce.date(),
|
|
6780
|
+
finishedAt: z237.coerce.date().optional(),
|
|
6781
|
+
index: z237.number().optional(),
|
|
6735
6782
|
status: ExportJobStatus,
|
|
6736
|
-
estimatedExecutionTime:
|
|
6783
|
+
estimatedExecutionTime: z237.number().optional(),
|
|
6737
6784
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6738
6785
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6739
6786
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6740
6787
|
destinations: DTOExportJobDestinations,
|
|
6741
|
-
exporterId:
|
|
6742
|
-
scheduleId:
|
|
6788
|
+
exporterId: z237.string(),
|
|
6789
|
+
scheduleId: z237.string().optional(),
|
|
6743
6790
|
result: DTOExportJobResult.optional(),
|
|
6744
|
-
brandPersistentId:
|
|
6745
|
-
themePersistentId:
|
|
6746
|
-
themePersistentIds:
|
|
6791
|
+
brandPersistentId: z237.string().optional(),
|
|
6792
|
+
themePersistentId: z237.string().optional(),
|
|
6793
|
+
themePersistentIds: z237.string().array().optional(),
|
|
6747
6794
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6748
6795
|
});
|
|
6749
|
-
var DTOExportJobResponse =
|
|
6796
|
+
var DTOExportJobResponse = z237.object({
|
|
6750
6797
|
job: DTOExportJob
|
|
6751
6798
|
});
|
|
6752
|
-
var DTOExportJobResponseLegacy =
|
|
6753
|
-
job:
|
|
6754
|
-
id:
|
|
6799
|
+
var DTOExportJobResponseLegacy = z237.object({
|
|
6800
|
+
job: z237.object({
|
|
6801
|
+
id: z237.string(),
|
|
6755
6802
|
status: ExportJobStatus
|
|
6756
6803
|
})
|
|
6757
6804
|
});
|
|
6758
|
-
var DTOExportJobCreateInput =
|
|
6759
|
-
designSystemId:
|
|
6760
|
-
designSystemVersionId:
|
|
6761
|
-
exporterId:
|
|
6762
|
-
brandId:
|
|
6763
|
-
themeId:
|
|
6764
|
-
themePersistentIds:
|
|
6805
|
+
var DTOExportJobCreateInput = z237.object({
|
|
6806
|
+
designSystemId: z237.string(),
|
|
6807
|
+
designSystemVersionId: z237.string(),
|
|
6808
|
+
exporterId: z237.string(),
|
|
6809
|
+
brandId: z237.string().optional(),
|
|
6810
|
+
themeId: z237.string().optional(),
|
|
6811
|
+
themePersistentIds: z237.string().array().optional(),
|
|
6765
6812
|
destinations: DTOExportJobDestinations,
|
|
6766
6813
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6767
6814
|
});
|
|
6768
6815
|
|
|
6769
6816
|
// src/api/dto/export/pipeline.ts
|
|
6770
|
-
import { z as
|
|
6771
|
-
var DTOPipelineListQuery =
|
|
6772
|
-
designSystemId:
|
|
6773
|
-
exporterId:
|
|
6774
|
-
latestJobsLimit:
|
|
6775
|
-
});
|
|
6776
|
-
var DTOPipeline =
|
|
6777
|
-
id:
|
|
6778
|
-
name:
|
|
6817
|
+
import { z as z238 } from "zod";
|
|
6818
|
+
var DTOPipelineListQuery = z238.object({
|
|
6819
|
+
designSystemId: z238.string().optional(),
|
|
6820
|
+
exporterId: z238.string().optional(),
|
|
6821
|
+
latestJobsLimit: z238.coerce.number().optional()
|
|
6822
|
+
});
|
|
6823
|
+
var DTOPipeline = z238.object({
|
|
6824
|
+
id: z238.string(),
|
|
6825
|
+
name: z238.string(),
|
|
6779
6826
|
eventType: PipelineEventType,
|
|
6780
|
-
isEnabled:
|
|
6781
|
-
workspaceId:
|
|
6782
|
-
designSystemId:
|
|
6783
|
-
exporterId:
|
|
6784
|
-
brandPersistentId:
|
|
6785
|
-
themePersistentId:
|
|
6786
|
-
themePersistentIds:
|
|
6827
|
+
isEnabled: z238.boolean(),
|
|
6828
|
+
workspaceId: z238.string(),
|
|
6829
|
+
designSystemId: z238.string(),
|
|
6830
|
+
exporterId: z238.string(),
|
|
6831
|
+
brandPersistentId: z238.string().optional(),
|
|
6832
|
+
themePersistentId: z238.string().optional(),
|
|
6833
|
+
themePersistentIds: z238.string().array().optional(),
|
|
6787
6834
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6788
6835
|
...ExportDestinationsMap.shape,
|
|
6789
6836
|
latestJobs: DTOExportJob.array(),
|
|
6790
|
-
isExporterDeprecated:
|
|
6837
|
+
isExporterDeprecated: z238.boolean()
|
|
6791
6838
|
});
|
|
6792
|
-
var DTOPipelineListResponse =
|
|
6839
|
+
var DTOPipelineListResponse = z238.object({
|
|
6793
6840
|
pipelines: DTOPipeline.array()
|
|
6794
6841
|
});
|
|
6795
|
-
var DTOPipelineResponse =
|
|
6842
|
+
var DTOPipelineResponse = z238.object({
|
|
6796
6843
|
pipeline: DTOPipeline
|
|
6797
6844
|
});
|
|
6798
6845
|
|
|
6799
6846
|
// src/api/dto/documentation/publish.ts
|
|
6800
6847
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6801
|
-
var DTOPublishDocumentationRequest =
|
|
6848
|
+
var DTOPublishDocumentationRequest = z239.object({
|
|
6802
6849
|
environment: PublishedDocEnvironment,
|
|
6803
6850
|
/**
|
|
6804
6851
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6806,66 +6853,66 @@ var DTOPublishDocumentationRequest = z238.object({
|
|
|
6806
6853
|
*/
|
|
6807
6854
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6808
6855
|
});
|
|
6809
|
-
var DTOPublishDocumentationResponse =
|
|
6856
|
+
var DTOPublishDocumentationResponse = z239.object({
|
|
6810
6857
|
job: DTOExportJob
|
|
6811
6858
|
});
|
|
6812
6859
|
|
|
6813
6860
|
// src/api/dto/documentation/room.ts
|
|
6814
|
-
import { z as
|
|
6815
|
-
var DTODocumentationPageRoom =
|
|
6816
|
-
id:
|
|
6861
|
+
import { z as z240 } from "zod";
|
|
6862
|
+
var DTODocumentationPageRoom = z240.object({
|
|
6863
|
+
id: z240.string()
|
|
6817
6864
|
});
|
|
6818
|
-
var DTODocumentationPageRoomResponse =
|
|
6865
|
+
var DTODocumentationPageRoomResponse = z240.object({
|
|
6819
6866
|
room: DTODocumentationPageRoom
|
|
6820
6867
|
});
|
|
6821
6868
|
|
|
6822
6869
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
6823
|
-
import
|
|
6824
|
-
var DTOFigmaComponentGroup =
|
|
6825
|
-
id:
|
|
6826
|
-
designSystemVersionId:
|
|
6827
|
-
persistentId:
|
|
6828
|
-
isRoot:
|
|
6829
|
-
brandId:
|
|
6870
|
+
import z241 from "zod";
|
|
6871
|
+
var DTOFigmaComponentGroup = z241.object({
|
|
6872
|
+
id: z241.string(),
|
|
6873
|
+
designSystemVersionId: z241.string(),
|
|
6874
|
+
persistentId: z241.string(),
|
|
6875
|
+
isRoot: z241.boolean(),
|
|
6876
|
+
brandId: z241.string(),
|
|
6830
6877
|
meta: DTOObjectMeta,
|
|
6831
|
-
childrenIds:
|
|
6878
|
+
childrenIds: z241.string().array()
|
|
6832
6879
|
});
|
|
6833
|
-
var DTOFigmaComponentGroupListResponse =
|
|
6880
|
+
var DTOFigmaComponentGroupListResponse = z241.object({
|
|
6834
6881
|
groups: DTOFigmaComponentGroup.array()
|
|
6835
6882
|
});
|
|
6836
6883
|
|
|
6837
6884
|
// src/api/dto/elements/components/figma-component.ts
|
|
6838
|
-
import { z as
|
|
6885
|
+
import { z as z242 } from "zod";
|
|
6839
6886
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6840
|
-
var DTOFigmaComponentPropertyMap =
|
|
6841
|
-
var DTOFigmaComponent =
|
|
6842
|
-
id:
|
|
6843
|
-
persistentId:
|
|
6844
|
-
designSystemVersionId:
|
|
6845
|
-
brandId:
|
|
6846
|
-
thumbnailUrl:
|
|
6847
|
-
svgUrl:
|
|
6848
|
-
exportProperties:
|
|
6849
|
-
isAsset:
|
|
6887
|
+
var DTOFigmaComponentPropertyMap = z242.record(DTOFigmaComponentProperty);
|
|
6888
|
+
var DTOFigmaComponent = z242.object({
|
|
6889
|
+
id: z242.string(),
|
|
6890
|
+
persistentId: z242.string(),
|
|
6891
|
+
designSystemVersionId: z242.string(),
|
|
6892
|
+
brandId: z242.string(),
|
|
6893
|
+
thumbnailUrl: z242.string().optional(),
|
|
6894
|
+
svgUrl: z242.string().optional(),
|
|
6895
|
+
exportProperties: z242.object({
|
|
6896
|
+
isAsset: z242.boolean()
|
|
6850
6897
|
}),
|
|
6851
|
-
createdAt:
|
|
6852
|
-
updatedAt:
|
|
6898
|
+
createdAt: z242.coerce.date(),
|
|
6899
|
+
updatedAt: z242.coerce.date(),
|
|
6853
6900
|
meta: ObjectMeta,
|
|
6854
6901
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6855
|
-
parentComponentPersistentId:
|
|
6856
|
-
childrenPersistentIds:
|
|
6902
|
+
parentComponentPersistentId: z242.string().optional(),
|
|
6903
|
+
childrenPersistentIds: z242.string().array().optional(),
|
|
6857
6904
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6858
|
-
variantPropertyValues:
|
|
6905
|
+
variantPropertyValues: z242.record(z242.string()).optional()
|
|
6859
6906
|
});
|
|
6860
|
-
var DTOFigmaComponentListResponse =
|
|
6907
|
+
var DTOFigmaComponentListResponse = z242.object({
|
|
6861
6908
|
components: DTOFigmaComponent.array()
|
|
6862
6909
|
});
|
|
6863
6910
|
|
|
6864
6911
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6865
|
-
import { z as
|
|
6912
|
+
import { z as z244 } from "zod";
|
|
6866
6913
|
|
|
6867
6914
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6868
|
-
import { z as
|
|
6915
|
+
import { z as z243 } from "zod";
|
|
6869
6916
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6870
6917
|
sortOrder: true,
|
|
6871
6918
|
parentPersistentId: true,
|
|
@@ -6875,13 +6922,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6875
6922
|
data: true,
|
|
6876
6923
|
shortPersistentId: true
|
|
6877
6924
|
}).extend({
|
|
6878
|
-
title:
|
|
6879
|
-
isRoot:
|
|
6880
|
-
childrenIds:
|
|
6925
|
+
title: z243.string(),
|
|
6926
|
+
isRoot: z243.boolean(),
|
|
6927
|
+
childrenIds: z243.array(z243.string()),
|
|
6881
6928
|
groupBehavior: DocumentationGroupBehavior,
|
|
6882
|
-
shortPersistentId:
|
|
6929
|
+
shortPersistentId: z243.string(),
|
|
6883
6930
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6884
|
-
type:
|
|
6931
|
+
type: z243.literal("Group"),
|
|
6885
6932
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6886
6933
|
draftState: DTODocumentationDraftState.optional(),
|
|
6887
6934
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6889,127 +6936,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6889
6936
|
//** An approval state for frontend to utilize. */
|
|
6890
6937
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6891
6938
|
});
|
|
6892
|
-
var DTOCreateDocumentationGroupInput =
|
|
6939
|
+
var DTOCreateDocumentationGroupInput = z243.object({
|
|
6893
6940
|
// Identifier
|
|
6894
|
-
persistentId:
|
|
6941
|
+
persistentId: z243.string(),
|
|
6895
6942
|
// Group properties
|
|
6896
|
-
title:
|
|
6943
|
+
title: z243.string(),
|
|
6897
6944
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6898
6945
|
// Group placement properties
|
|
6899
|
-
afterPersistentId:
|
|
6900
|
-
parentPersistentId:
|
|
6946
|
+
afterPersistentId: z243.string().nullish(),
|
|
6947
|
+
parentPersistentId: z243.string()
|
|
6901
6948
|
});
|
|
6902
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6949
|
+
var DTOUpdateDocumentationGroupInput = z243.object({
|
|
6903
6950
|
// Identifier of the group to update
|
|
6904
|
-
id:
|
|
6951
|
+
id: z243.string(),
|
|
6905
6952
|
// Group properties
|
|
6906
|
-
title:
|
|
6953
|
+
title: z243.string().optional(),
|
|
6907
6954
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6908
6955
|
});
|
|
6909
|
-
var DTOMoveDocumentationGroupInput =
|
|
6956
|
+
var DTOMoveDocumentationGroupInput = z243.object({
|
|
6910
6957
|
// Identifier of the group to update
|
|
6911
|
-
id:
|
|
6958
|
+
id: z243.string(),
|
|
6912
6959
|
// Group placement properties
|
|
6913
|
-
parentPersistentId:
|
|
6914
|
-
afterPersistentId:
|
|
6960
|
+
parentPersistentId: z243.string(),
|
|
6961
|
+
afterPersistentId: z243.string().nullish()
|
|
6915
6962
|
});
|
|
6916
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6963
|
+
var DTODuplicateDocumentationGroupInput = z243.object({
|
|
6917
6964
|
// Identifier of the group to duplicate from
|
|
6918
|
-
id:
|
|
6965
|
+
id: z243.string(),
|
|
6919
6966
|
// New group persistent id
|
|
6920
|
-
persistentId:
|
|
6967
|
+
persistentId: z243.string(),
|
|
6921
6968
|
// Group placement properties
|
|
6922
|
-
afterPersistentId:
|
|
6923
|
-
parentPersistentId:
|
|
6969
|
+
afterPersistentId: z243.string().nullish(),
|
|
6970
|
+
parentPersistentId: z243.string()
|
|
6924
6971
|
});
|
|
6925
|
-
var DTOCreateDocumentationTabInput =
|
|
6972
|
+
var DTOCreateDocumentationTabInput = z243.object({
|
|
6926
6973
|
// New group persistent id
|
|
6927
|
-
persistentId:
|
|
6974
|
+
persistentId: z243.string(),
|
|
6928
6975
|
// If this is page, we will attempt to convert it to tab
|
|
6929
6976
|
// If this is tab group, we will add a new tab to it
|
|
6930
|
-
fromItemPersistentId:
|
|
6931
|
-
tabName:
|
|
6977
|
+
fromItemPersistentId: z243.string(),
|
|
6978
|
+
tabName: z243.string()
|
|
6932
6979
|
});
|
|
6933
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6980
|
+
var DTODeleteDocumentationTabGroupInput = z243.object({
|
|
6934
6981
|
// Deleted group id
|
|
6935
|
-
id:
|
|
6982
|
+
id: z243.string()
|
|
6936
6983
|
});
|
|
6937
|
-
var DTODeleteDocumentationGroupInput =
|
|
6984
|
+
var DTODeleteDocumentationGroupInput = z243.object({
|
|
6938
6985
|
// Identifier
|
|
6939
|
-
id:
|
|
6986
|
+
id: z243.string(),
|
|
6940
6987
|
// Deletion options
|
|
6941
|
-
deleteSubtree:
|
|
6988
|
+
deleteSubtree: z243.boolean().default(false)
|
|
6942
6989
|
});
|
|
6943
6990
|
|
|
6944
6991
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6945
|
-
var SuccessPayload =
|
|
6946
|
-
success:
|
|
6992
|
+
var SuccessPayload = z244.object({
|
|
6993
|
+
success: z244.literal(true)
|
|
6947
6994
|
});
|
|
6948
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6949
|
-
type:
|
|
6995
|
+
var DTODocumentationGroupCreateActionOutputV2 = z244.object({
|
|
6996
|
+
type: z244.literal("DocumentationGroupCreate"),
|
|
6950
6997
|
output: SuccessPayload
|
|
6951
6998
|
});
|
|
6952
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6953
|
-
type:
|
|
6999
|
+
var DTODocumentationTabCreateActionOutputV2 = z244.object({
|
|
7000
|
+
type: z244.literal("DocumentationTabCreate"),
|
|
6954
7001
|
output: SuccessPayload
|
|
6955
7002
|
});
|
|
6956
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6957
|
-
type:
|
|
7003
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z244.object({
|
|
7004
|
+
type: z244.literal("DocumentationGroupUpdate"),
|
|
6958
7005
|
output: SuccessPayload
|
|
6959
7006
|
});
|
|
6960
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6961
|
-
type:
|
|
7007
|
+
var DTODocumentationGroupMoveActionOutputV2 = z244.object({
|
|
7008
|
+
type: z244.literal("DocumentationGroupMove"),
|
|
6962
7009
|
output: SuccessPayload
|
|
6963
7010
|
});
|
|
6964
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6965
|
-
type:
|
|
7011
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z244.object({
|
|
7012
|
+
type: z244.literal("DocumentationGroupDuplicate"),
|
|
6966
7013
|
output: SuccessPayload
|
|
6967
7014
|
});
|
|
6968
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6969
|
-
type:
|
|
7015
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z244.object({
|
|
7016
|
+
type: z244.literal("DocumentationGroupDelete"),
|
|
6970
7017
|
output: SuccessPayload
|
|
6971
7018
|
});
|
|
6972
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6973
|
-
type:
|
|
7019
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z244.object({
|
|
7020
|
+
type: z244.literal("DocumentationTabGroupDelete"),
|
|
6974
7021
|
output: SuccessPayload
|
|
6975
7022
|
});
|
|
6976
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6977
|
-
type:
|
|
7023
|
+
var DTODocumentationGroupCreateActionInputV2 = z244.object({
|
|
7024
|
+
type: z244.literal("DocumentationGroupCreate"),
|
|
6978
7025
|
input: DTOCreateDocumentationGroupInput
|
|
6979
7026
|
});
|
|
6980
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6981
|
-
type:
|
|
7027
|
+
var DTODocumentationTabCreateActionInputV2 = z244.object({
|
|
7028
|
+
type: z244.literal("DocumentationTabCreate"),
|
|
6982
7029
|
input: DTOCreateDocumentationTabInput
|
|
6983
7030
|
});
|
|
6984
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6985
|
-
type:
|
|
7031
|
+
var DTODocumentationGroupUpdateActionInputV2 = z244.object({
|
|
7032
|
+
type: z244.literal("DocumentationGroupUpdate"),
|
|
6986
7033
|
input: DTOUpdateDocumentationGroupInput
|
|
6987
7034
|
});
|
|
6988
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6989
|
-
type:
|
|
7035
|
+
var DTODocumentationGroupMoveActionInputV2 = z244.object({
|
|
7036
|
+
type: z244.literal("DocumentationGroupMove"),
|
|
6990
7037
|
input: DTOMoveDocumentationGroupInput
|
|
6991
7038
|
});
|
|
6992
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6993
|
-
type:
|
|
7039
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z244.object({
|
|
7040
|
+
type: z244.literal("DocumentationGroupDuplicate"),
|
|
6994
7041
|
input: DTODuplicateDocumentationGroupInput
|
|
6995
7042
|
});
|
|
6996
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6997
|
-
type:
|
|
7043
|
+
var DTODocumentationGroupDeleteActionInputV2 = z244.object({
|
|
7044
|
+
type: z244.literal("DocumentationGroupDelete"),
|
|
6998
7045
|
input: DTODeleteDocumentationGroupInput
|
|
6999
7046
|
});
|
|
7000
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
7001
|
-
type:
|
|
7047
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z244.object({
|
|
7048
|
+
type: z244.literal("DocumentationTabGroupDelete"),
|
|
7002
7049
|
input: DTODeleteDocumentationTabGroupInput
|
|
7003
7050
|
});
|
|
7004
7051
|
|
|
7005
7052
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
7006
|
-
import { z as
|
|
7053
|
+
import { z as z246 } from "zod";
|
|
7007
7054
|
|
|
7008
7055
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
7009
|
-
import { z as
|
|
7010
|
-
var DocumentationColorV1 =
|
|
7011
|
-
aliasTo:
|
|
7012
|
-
value:
|
|
7056
|
+
import { z as z245 } from "zod";
|
|
7057
|
+
var DocumentationColorV1 = z245.object({
|
|
7058
|
+
aliasTo: z245.string().optional(),
|
|
7059
|
+
value: z245.string().optional()
|
|
7013
7060
|
});
|
|
7014
7061
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
7015
7062
|
foregroundColor: true,
|
|
@@ -7018,10 +7065,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
7018
7065
|
foregroundColor: DocumentationColorV1.optional(),
|
|
7019
7066
|
backgroundColor: DocumentationColorV1.optional()
|
|
7020
7067
|
});
|
|
7021
|
-
var DTODocumentationItemConfigurationV1 =
|
|
7022
|
-
showSidebar:
|
|
7023
|
-
isPrivate:
|
|
7024
|
-
isHidden:
|
|
7068
|
+
var DTODocumentationItemConfigurationV1 = z245.object({
|
|
7069
|
+
showSidebar: z245.boolean(),
|
|
7070
|
+
isPrivate: z245.boolean(),
|
|
7071
|
+
isHidden: z245.boolean(),
|
|
7025
7072
|
header: DTODocumentationItemHeaderV1
|
|
7026
7073
|
});
|
|
7027
7074
|
|
|
@@ -7035,123 +7082,123 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
7035
7082
|
data: true,
|
|
7036
7083
|
shortPersistentId: true
|
|
7037
7084
|
}).extend({
|
|
7038
|
-
title:
|
|
7039
|
-
isRoot:
|
|
7040
|
-
childrenIds:
|
|
7085
|
+
title: z246.string(),
|
|
7086
|
+
isRoot: z246.boolean(),
|
|
7087
|
+
childrenIds: z246.array(z246.string()),
|
|
7041
7088
|
groupBehavior: DocumentationGroupBehavior,
|
|
7042
|
-
shortPersistentId:
|
|
7043
|
-
type:
|
|
7089
|
+
shortPersistentId: z246.string(),
|
|
7090
|
+
type: z246.literal("Group")
|
|
7044
7091
|
});
|
|
7045
7092
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
7046
7093
|
configuration: DTODocumentationItemConfigurationV1
|
|
7047
7094
|
});
|
|
7048
7095
|
|
|
7049
7096
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
7050
|
-
import { z as
|
|
7051
|
-
var DTODocumentationHierarchyV2 =
|
|
7052
|
-
pages:
|
|
7097
|
+
import { z as z247 } from "zod";
|
|
7098
|
+
var DTODocumentationHierarchyV2 = z247.object({
|
|
7099
|
+
pages: z247.array(
|
|
7053
7100
|
DTODocumentationPageV2.extend({
|
|
7054
7101
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7055
7102
|
draftState: DTODocumentationDraftState.optional()
|
|
7056
7103
|
})
|
|
7057
7104
|
),
|
|
7058
|
-
groups:
|
|
7105
|
+
groups: z247.array(
|
|
7059
7106
|
DTODocumentationGroupV2.extend({
|
|
7060
7107
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7061
7108
|
draftState: DTODocumentationDraftState.optional()
|
|
7062
7109
|
})
|
|
7063
7110
|
),
|
|
7064
7111
|
/** True if the documentation was already published, false otherwise. */
|
|
7065
|
-
hasPublishedDocumentationContent:
|
|
7112
|
+
hasPublishedDocumentationContent: z247.boolean()
|
|
7066
7113
|
});
|
|
7067
7114
|
|
|
7068
7115
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
7069
|
-
import { z as
|
|
7070
|
-
var SuccessPayload2 =
|
|
7071
|
-
success:
|
|
7116
|
+
import { z as z248 } from "zod";
|
|
7117
|
+
var SuccessPayload2 = z248.object({
|
|
7118
|
+
success: z248.literal(true)
|
|
7072
7119
|
});
|
|
7073
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
7074
|
-
type:
|
|
7120
|
+
var DTODocumentationPageCreateActionOutputV2 = z248.object({
|
|
7121
|
+
type: z248.literal("DocumentationPageCreate"),
|
|
7075
7122
|
output: SuccessPayload2
|
|
7076
7123
|
});
|
|
7077
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
7078
|
-
type:
|
|
7124
|
+
var DTODocumentationPageUpdateActionOutputV2 = z248.object({
|
|
7125
|
+
type: z248.literal("DocumentationPageUpdate"),
|
|
7079
7126
|
output: SuccessPayload2
|
|
7080
7127
|
});
|
|
7081
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
7082
|
-
type:
|
|
7128
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z248.object({
|
|
7129
|
+
type: z248.literal("DocumentationPageUpdateDocument"),
|
|
7083
7130
|
output: SuccessPayload2
|
|
7084
7131
|
});
|
|
7085
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
7086
|
-
type:
|
|
7132
|
+
var DTODocumentationPageMoveActionOutputV2 = z248.object({
|
|
7133
|
+
type: z248.literal("DocumentationPageMove"),
|
|
7087
7134
|
output: SuccessPayload2
|
|
7088
7135
|
});
|
|
7089
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
7090
|
-
type:
|
|
7136
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z248.object({
|
|
7137
|
+
type: z248.literal("DocumentationPageDuplicate"),
|
|
7091
7138
|
output: SuccessPayload2
|
|
7092
7139
|
});
|
|
7093
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
7094
|
-
type:
|
|
7140
|
+
var DTODocumentationPageDeleteActionOutputV2 = z248.object({
|
|
7141
|
+
type: z248.literal("DocumentationPageDelete"),
|
|
7095
7142
|
output: SuccessPayload2
|
|
7096
7143
|
});
|
|
7097
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
7098
|
-
type:
|
|
7144
|
+
var DTODocumentationPageRestoreActionOutput = z248.object({
|
|
7145
|
+
type: z248.literal("DocumentationPageRestore"),
|
|
7099
7146
|
output: SuccessPayload2
|
|
7100
7147
|
});
|
|
7101
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
7102
|
-
type:
|
|
7148
|
+
var DTODocumentationGroupRestoreActionOutput = z248.object({
|
|
7149
|
+
type: z248.literal("DocumentationGroupRestore"),
|
|
7103
7150
|
output: SuccessPayload2
|
|
7104
7151
|
});
|
|
7105
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
7106
|
-
type:
|
|
7152
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z248.object({
|
|
7153
|
+
type: z248.literal("DocumentationPageApprovalStateChange"),
|
|
7107
7154
|
output: SuccessPayload2
|
|
7108
7155
|
});
|
|
7109
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
7110
|
-
type:
|
|
7156
|
+
var DTODocumentationPageCreateActionInputV2 = z248.object({
|
|
7157
|
+
type: z248.literal("DocumentationPageCreate"),
|
|
7111
7158
|
input: DTOCreateDocumentationPageInputV2
|
|
7112
7159
|
});
|
|
7113
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
7114
|
-
type:
|
|
7160
|
+
var DTODocumentationPageUpdateActionInputV2 = z248.object({
|
|
7161
|
+
type: z248.literal("DocumentationPageUpdate"),
|
|
7115
7162
|
input: DTOUpdateDocumentationPageInputV2
|
|
7116
7163
|
});
|
|
7117
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
7118
|
-
type:
|
|
7164
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z248.object({
|
|
7165
|
+
type: z248.literal("DocumentationPageUpdateDocument"),
|
|
7119
7166
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7120
7167
|
});
|
|
7121
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
7122
|
-
type:
|
|
7168
|
+
var DTODocumentationPageMoveActionInputV2 = z248.object({
|
|
7169
|
+
type: z248.literal("DocumentationPageMove"),
|
|
7123
7170
|
input: DTOMoveDocumentationPageInputV2
|
|
7124
7171
|
});
|
|
7125
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
7126
|
-
type:
|
|
7172
|
+
var DTODocumentationPageDuplicateActionInputV2 = z248.object({
|
|
7173
|
+
type: z248.literal("DocumentationPageDuplicate"),
|
|
7127
7174
|
input: DTODuplicateDocumentationPageInputV2
|
|
7128
7175
|
});
|
|
7129
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
7130
|
-
type:
|
|
7176
|
+
var DTODocumentationPageDeleteActionInputV2 = z248.object({
|
|
7177
|
+
type: z248.literal("DocumentationPageDelete"),
|
|
7131
7178
|
input: DTODeleteDocumentationPageInputV2
|
|
7132
7179
|
});
|
|
7133
|
-
var DTODocumentationPageRestoreActionInput =
|
|
7134
|
-
type:
|
|
7180
|
+
var DTODocumentationPageRestoreActionInput = z248.object({
|
|
7181
|
+
type: z248.literal("DocumentationPageRestore"),
|
|
7135
7182
|
input: DTORestoreDocumentationPageInput
|
|
7136
7183
|
});
|
|
7137
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
7138
|
-
type:
|
|
7184
|
+
var DTODocumentationGroupRestoreActionInput = z248.object({
|
|
7185
|
+
type: z248.literal("DocumentationGroupRestore"),
|
|
7139
7186
|
input: DTORestoreDocumentationGroupInput
|
|
7140
7187
|
});
|
|
7141
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
7142
|
-
type:
|
|
7188
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z248.object({
|
|
7189
|
+
type: z248.literal("DocumentationPageApprovalStateChange"),
|
|
7143
7190
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
7144
7191
|
});
|
|
7145
7192
|
|
|
7146
7193
|
// src/api/dto/elements/documentation/page-content.ts
|
|
7147
|
-
import { z as
|
|
7194
|
+
import { z as z249 } from "zod";
|
|
7148
7195
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
7149
|
-
var DTODocumentationPageContentGetResponse =
|
|
7196
|
+
var DTODocumentationPageContentGetResponse = z249.object({
|
|
7150
7197
|
pageContent: DTODocumentationPageContent
|
|
7151
7198
|
});
|
|
7152
7199
|
|
|
7153
7200
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
7154
|
-
import { z as
|
|
7201
|
+
import { z as z250 } from "zod";
|
|
7155
7202
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
7156
7203
|
data: true,
|
|
7157
7204
|
meta: true,
|
|
@@ -7159,81 +7206,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7159
7206
|
sortOrder: true
|
|
7160
7207
|
}).extend({
|
|
7161
7208
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7162
|
-
blocks:
|
|
7163
|
-
title:
|
|
7164
|
-
path:
|
|
7209
|
+
blocks: z250.array(PageBlockV1),
|
|
7210
|
+
title: z250.string(),
|
|
7211
|
+
path: z250.string()
|
|
7165
7212
|
});
|
|
7166
7213
|
|
|
7167
7214
|
// src/api/dto/elements/documentation/settings.ts
|
|
7168
|
-
import { z as
|
|
7169
|
-
var DTODocumentationSettings =
|
|
7170
|
-
isDraftFeatureAdopted:
|
|
7171
|
-
isApprovalsFeatureEnabled:
|
|
7172
|
-
isApprovalRequiredForPublishing:
|
|
7215
|
+
import { z as z251 } from "zod";
|
|
7216
|
+
var DTODocumentationSettings = z251.object({
|
|
7217
|
+
isDraftFeatureAdopted: z251.boolean(),
|
|
7218
|
+
isApprovalsFeatureEnabled: z251.boolean(),
|
|
7219
|
+
isApprovalRequiredForPublishing: z251.boolean()
|
|
7173
7220
|
});
|
|
7174
7221
|
|
|
7175
7222
|
// src/api/dto/elements/documentation/structure.ts
|
|
7176
|
-
import { z as
|
|
7177
|
-
var DTODocumentationStructureItemType =
|
|
7178
|
-
var DTODocumentationStructureItemBase =
|
|
7223
|
+
import { z as z252 } from "zod";
|
|
7224
|
+
var DTODocumentationStructureItemType = z252.enum(["Group", "Page"]);
|
|
7225
|
+
var DTODocumentationStructureItemBase = z252.object({
|
|
7179
7226
|
type: DTODocumentationStructureItemType,
|
|
7180
|
-
id:
|
|
7181
|
-
designSystemVersionId:
|
|
7182
|
-
shortPersistentId:
|
|
7183
|
-
persistentId:
|
|
7184
|
-
title:
|
|
7185
|
-
createdAt:
|
|
7186
|
-
updatedAt:
|
|
7227
|
+
id: z252.string(),
|
|
7228
|
+
designSystemVersionId: z252.string(),
|
|
7229
|
+
shortPersistentId: z252.string(),
|
|
7230
|
+
persistentId: z252.string(),
|
|
7231
|
+
title: z252.string(),
|
|
7232
|
+
createdAt: z252.coerce.date(),
|
|
7233
|
+
updatedAt: z252.coerce.date()
|
|
7187
7234
|
});
|
|
7188
7235
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7189
|
-
type:
|
|
7190
|
-
groupBehavior:
|
|
7191
|
-
childrenIds:
|
|
7192
|
-
isRoot:
|
|
7236
|
+
type: z252.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7237
|
+
groupBehavior: z252.string(),
|
|
7238
|
+
childrenIds: z252.string().array(),
|
|
7239
|
+
isRoot: z252.boolean()
|
|
7193
7240
|
});
|
|
7194
7241
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7195
|
-
type:
|
|
7196
|
-
path:
|
|
7242
|
+
type: z252.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7243
|
+
path: z252.string()
|
|
7197
7244
|
});
|
|
7198
|
-
var DTODocumentationStructureItem =
|
|
7245
|
+
var DTODocumentationStructureItem = z252.discriminatedUnion("type", [
|
|
7199
7246
|
DTODocumentationStructureGroupItem,
|
|
7200
7247
|
DTODocumentationStructurePageItem
|
|
7201
7248
|
]);
|
|
7202
|
-
var DTODocumentationStructure =
|
|
7203
|
-
items:
|
|
7249
|
+
var DTODocumentationStructure = z252.object({
|
|
7250
|
+
items: z252.array(DTODocumentationStructureItem)
|
|
7204
7251
|
});
|
|
7205
7252
|
|
|
7206
7253
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
7207
|
-
import { z as
|
|
7208
|
-
var DTOFigmaNodeStructure =
|
|
7209
|
-
id:
|
|
7210
|
-
sourceId:
|
|
7254
|
+
import { z as z253 } from "zod";
|
|
7255
|
+
var DTOFigmaNodeStructure = z253.object({
|
|
7256
|
+
id: z253.string(),
|
|
7257
|
+
sourceId: z253.string(),
|
|
7211
7258
|
importState: FigmaNodeStructureStateV2,
|
|
7212
|
-
createdAt:
|
|
7213
|
-
updatedAt:
|
|
7259
|
+
createdAt: z253.coerce.date(),
|
|
7260
|
+
updatedAt: z253.coerce.date()
|
|
7214
7261
|
});
|
|
7215
7262
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
7216
7263
|
rootNode: FigmaFileStructureNode
|
|
7217
7264
|
});
|
|
7218
|
-
var DTOFigmaNodeStructureListResponse =
|
|
7265
|
+
var DTOFigmaNodeStructureListResponse = z253.object({
|
|
7219
7266
|
structures: DTOFigmaNodeStructure.array()
|
|
7220
7267
|
});
|
|
7221
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
7268
|
+
var DTOFigmaNodeStructureDetailResponse = z253.object({
|
|
7222
7269
|
structure: DTOFigmaNodeStructureDetail
|
|
7223
7270
|
});
|
|
7224
7271
|
|
|
7225
7272
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7226
|
-
import { z as
|
|
7273
|
+
import { z as z255 } from "zod";
|
|
7227
7274
|
|
|
7228
7275
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7229
|
-
import { z as
|
|
7276
|
+
import { z as z254 } from "zod";
|
|
7230
7277
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7231
|
-
var DTOFigmaNodeOrigin =
|
|
7232
|
-
sourceId:
|
|
7233
|
-
fileId:
|
|
7234
|
-
parentName:
|
|
7278
|
+
var DTOFigmaNodeOrigin = z254.object({
|
|
7279
|
+
sourceId: z254.string(),
|
|
7280
|
+
fileId: z254.string().optional(),
|
|
7281
|
+
parentName: z254.string().optional()
|
|
7235
7282
|
});
|
|
7236
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7283
|
+
var DTOFigmaNodeRenderInputBase = z254.object({
|
|
7237
7284
|
/**
|
|
7238
7285
|
* Format in which the node must be rendered, png by default.
|
|
7239
7286
|
*/
|
|
@@ -7241,57 +7288,57 @@ var DTOFigmaNodeRenderInputBase = z253.object({
|
|
|
7241
7288
|
/**
|
|
7242
7289
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7243
7290
|
*/
|
|
7244
|
-
scale:
|
|
7291
|
+
scale: z254.number().optional()
|
|
7245
7292
|
});
|
|
7246
7293
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7247
|
-
inputType:
|
|
7294
|
+
inputType: z254.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7248
7295
|
/**
|
|
7249
7296
|
* Id of a design system's data source representing a linked Figma file
|
|
7250
7297
|
*/
|
|
7251
|
-
sourceId:
|
|
7298
|
+
sourceId: z254.string(),
|
|
7252
7299
|
/**
|
|
7253
7300
|
* Id of a node within the Figma file
|
|
7254
7301
|
*/
|
|
7255
|
-
figmaFileNodeId:
|
|
7302
|
+
figmaFileNodeId: z254.string()
|
|
7256
7303
|
});
|
|
7257
7304
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7258
|
-
inputType:
|
|
7305
|
+
inputType: z254.literal("URL"),
|
|
7259
7306
|
/**
|
|
7260
7307
|
* Id of a design system's data source representing a linked Figma file
|
|
7261
7308
|
*/
|
|
7262
|
-
figmaNodeUrl:
|
|
7309
|
+
figmaNodeUrl: z254.string(),
|
|
7263
7310
|
/**
|
|
7264
7311
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7265
7312
|
*/
|
|
7266
|
-
brandPersistentId:
|
|
7313
|
+
brandPersistentId: z254.string()
|
|
7267
7314
|
});
|
|
7268
|
-
var DTOFigmaNodeRerenderInput =
|
|
7269
|
-
inputType:
|
|
7315
|
+
var DTOFigmaNodeRerenderInput = z254.object({
|
|
7316
|
+
inputType: z254.literal("Rerender"),
|
|
7270
7317
|
/**
|
|
7271
7318
|
* Persistent ID of an existing Figma node
|
|
7272
7319
|
*/
|
|
7273
|
-
figmaNodePersistentId:
|
|
7320
|
+
figmaNodePersistentId: z254.string()
|
|
7274
7321
|
});
|
|
7275
|
-
var DTOFigmaNodeRenderInput =
|
|
7322
|
+
var DTOFigmaNodeRenderInput = z254.discriminatedUnion("inputType", [
|
|
7276
7323
|
DTOFigmaNodeRenderIdInput,
|
|
7277
7324
|
DTOFigmaNodeRenderUrlInput,
|
|
7278
7325
|
DTOFigmaNodeRerenderInput
|
|
7279
7326
|
]);
|
|
7280
7327
|
|
|
7281
7328
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7282
|
-
var DTOFigmaNodeData =
|
|
7329
|
+
var DTOFigmaNodeData = z255.object({
|
|
7283
7330
|
// Id of the node in the Figma file
|
|
7284
|
-
figmaNodeId:
|
|
7331
|
+
figmaNodeId: z255.string(),
|
|
7285
7332
|
// Validity
|
|
7286
|
-
isValid:
|
|
7333
|
+
isValid: z255.boolean(),
|
|
7287
7334
|
// Asset data
|
|
7288
|
-
assetId:
|
|
7289
|
-
assetUrl:
|
|
7335
|
+
assetId: z255.string(),
|
|
7336
|
+
assetUrl: z255.string(),
|
|
7290
7337
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7291
7338
|
// Asset metadata
|
|
7292
|
-
assetScale:
|
|
7293
|
-
assetWidth:
|
|
7294
|
-
assetHeight:
|
|
7339
|
+
assetScale: z255.number(),
|
|
7340
|
+
assetWidth: z255.number().optional(),
|
|
7341
|
+
assetHeight: z255.number().optional()
|
|
7295
7342
|
});
|
|
7296
7343
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7297
7344
|
data: true,
|
|
@@ -7302,15 +7349,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7302
7349
|
});
|
|
7303
7350
|
|
|
7304
7351
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7305
|
-
import { z as
|
|
7306
|
-
var DTOFigmaNodeDataV2 =
|
|
7307
|
-
sceneNodeId:
|
|
7352
|
+
import { z as z256 } from "zod";
|
|
7353
|
+
var DTOFigmaNodeDataV2 = z256.object({
|
|
7354
|
+
sceneNodeId: z256.string(),
|
|
7308
7355
|
format: FigmaNodeRenderFormat,
|
|
7309
|
-
scale:
|
|
7356
|
+
scale: z256.number().optional(),
|
|
7310
7357
|
renderState: FigmaNodeRenderState,
|
|
7311
7358
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7312
7359
|
renderError: FigmaNodeRenderError.optional(),
|
|
7313
|
-
hasSource:
|
|
7360
|
+
hasSource: z256.boolean()
|
|
7314
7361
|
});
|
|
7315
7362
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7316
7363
|
data: true,
|
|
@@ -7321,105 +7368,105 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7321
7368
|
});
|
|
7322
7369
|
|
|
7323
7370
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7324
|
-
import { z as
|
|
7325
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7326
|
-
type:
|
|
7327
|
-
figmaNodes:
|
|
7371
|
+
import { z as z257 } from "zod";
|
|
7372
|
+
var DTOFigmaNodeRenderActionOutput = z257.object({
|
|
7373
|
+
type: z257.literal("FigmaNodeRender"),
|
|
7374
|
+
figmaNodes: z257.array(DTOFigmaNode)
|
|
7328
7375
|
});
|
|
7329
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7330
|
-
type:
|
|
7331
|
-
figmaNodes:
|
|
7376
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z257.object({
|
|
7377
|
+
type: z257.literal("FigmaNodeRenderAsync"),
|
|
7378
|
+
figmaNodes: z257.array(DTOFigmaNodeV2)
|
|
7332
7379
|
});
|
|
7333
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7334
|
-
type:
|
|
7380
|
+
var DTOFigmaNodeRenderActionInput = z257.object({
|
|
7381
|
+
type: z257.literal("FigmaNodeRender"),
|
|
7335
7382
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7336
7383
|
});
|
|
7337
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7338
|
-
type:
|
|
7384
|
+
var DTOFigmaNodeRenderAsyncActionInput = z257.object({
|
|
7385
|
+
type: z257.literal("FigmaNodeRenderAsync"),
|
|
7339
7386
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7340
7387
|
});
|
|
7341
7388
|
|
|
7342
7389
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
7343
|
-
import { z as
|
|
7344
|
-
var DTOFrameNodeStructure =
|
|
7345
|
-
id:
|
|
7346
|
-
persistentId:
|
|
7347
|
-
designSystemVersionId:
|
|
7390
|
+
import { z as z258 } from "zod";
|
|
7391
|
+
var DTOFrameNodeStructure = z258.object({
|
|
7392
|
+
id: z258.string(),
|
|
7393
|
+
persistentId: z258.string(),
|
|
7394
|
+
designSystemVersionId: z258.string(),
|
|
7348
7395
|
origin: FigmaFileStructureOrigin,
|
|
7349
7396
|
assetsInFile: FigmaFileStructureStatistics
|
|
7350
7397
|
});
|
|
7351
|
-
var DTOFrameNodeStructureListResponse =
|
|
7398
|
+
var DTOFrameNodeStructureListResponse = z258.object({
|
|
7352
7399
|
structures: DTOFrameNodeStructure.array()
|
|
7353
7400
|
});
|
|
7354
7401
|
|
|
7355
7402
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
7356
|
-
import { z as
|
|
7403
|
+
import { z as z259 } from "zod";
|
|
7357
7404
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
7358
|
-
var DTOElementPropertyDefinitionOption =
|
|
7359
|
-
id:
|
|
7360
|
-
name:
|
|
7405
|
+
var DTOElementPropertyDefinitionOption = z259.object({
|
|
7406
|
+
id: z259.string(),
|
|
7407
|
+
name: z259.string(),
|
|
7361
7408
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
7362
7409
|
});
|
|
7363
|
-
var DTOElementPropertyDefinition =
|
|
7364
|
-
id:
|
|
7365
|
-
designSystemVersionId:
|
|
7410
|
+
var DTOElementPropertyDefinition = z259.object({
|
|
7411
|
+
id: z259.string(),
|
|
7412
|
+
designSystemVersionId: z259.string(),
|
|
7366
7413
|
meta: DTOObjectMeta,
|
|
7367
|
-
persistentId:
|
|
7414
|
+
persistentId: z259.string(),
|
|
7368
7415
|
type: ElementPropertyTypeSchema,
|
|
7369
7416
|
targetElementType: ElementPropertyTargetType,
|
|
7370
|
-
codeName:
|
|
7371
|
-
options: nullishToOptional(
|
|
7417
|
+
codeName: z259.string().regex(CODE_NAME_REGEX2),
|
|
7418
|
+
options: nullishToOptional(z259.array(DTOElementPropertyDefinitionOption)),
|
|
7372
7419
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7373
|
-
isImmutable:
|
|
7420
|
+
isImmutable: z259.boolean(),
|
|
7374
7421
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
7375
7422
|
});
|
|
7376
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
7377
|
-
definitions:
|
|
7423
|
+
var DTOElementPropertyDefinitionListResponse = z259.object({
|
|
7424
|
+
definitions: z259.array(DTOElementPropertyDefinition)
|
|
7378
7425
|
});
|
|
7379
|
-
var DTOElementPropertyDefinitionResponse =
|
|
7426
|
+
var DTOElementPropertyDefinitionResponse = z259.object({
|
|
7380
7427
|
definition: DTOElementPropertyDefinition
|
|
7381
7428
|
});
|
|
7382
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
7429
|
+
var DTOElementPropertyDefinitionCreatePayload = z259.object({
|
|
7383
7430
|
meta: DTOObjectMeta,
|
|
7384
|
-
persistentId:
|
|
7431
|
+
persistentId: z259.string(),
|
|
7385
7432
|
type: ElementPropertyTypeSchema,
|
|
7386
7433
|
targetElementType: ElementPropertyTargetType,
|
|
7387
|
-
codeName:
|
|
7388
|
-
options: nullishToOptional(
|
|
7434
|
+
codeName: z259.string().regex(CODE_NAME_REGEX2),
|
|
7435
|
+
options: nullishToOptional(z259.array(DTOElementPropertyDefinitionOption)),
|
|
7389
7436
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7390
|
-
columnWidth:
|
|
7437
|
+
columnWidth: z259.number().max(1024).optional()
|
|
7391
7438
|
});
|
|
7392
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
7439
|
+
var DTOElementPropertyDefinitionUpdatePayload = z259.object({
|
|
7393
7440
|
meta: DTOObjectMeta.optional(),
|
|
7394
|
-
codeName:
|
|
7395
|
-
options:
|
|
7441
|
+
codeName: z259.string().regex(CODE_NAME_REGEX2).optional(),
|
|
7442
|
+
options: z259.array(DTOElementPropertyDefinitionOption).optional()
|
|
7396
7443
|
});
|
|
7397
7444
|
|
|
7398
7445
|
// src/api/dto/elements/properties/property-values.ts
|
|
7399
|
-
import { z as
|
|
7400
|
-
var DTOElementPropertyValue =
|
|
7401
|
-
id:
|
|
7402
|
-
designSystemVersionId:
|
|
7403
|
-
definitionId:
|
|
7404
|
-
targetElementId:
|
|
7405
|
-
value:
|
|
7406
|
-
valuePreview:
|
|
7407
|
-
});
|
|
7408
|
-
var DTOElementPropertyValueListResponse =
|
|
7409
|
-
values:
|
|
7410
|
-
});
|
|
7411
|
-
var DTOElementPropertyValueResponse =
|
|
7446
|
+
import { z as z260 } from "zod";
|
|
7447
|
+
var DTOElementPropertyValue = z260.object({
|
|
7448
|
+
id: z260.string(),
|
|
7449
|
+
designSystemVersionId: z260.string(),
|
|
7450
|
+
definitionId: z260.string(),
|
|
7451
|
+
targetElementId: z260.string(),
|
|
7452
|
+
value: z260.union([z260.string(), z260.number(), z260.boolean()]).optional(),
|
|
7453
|
+
valuePreview: z260.string().optional()
|
|
7454
|
+
});
|
|
7455
|
+
var DTOElementPropertyValueListResponse = z260.object({
|
|
7456
|
+
values: z260.array(DTOElementPropertyValue)
|
|
7457
|
+
});
|
|
7458
|
+
var DTOElementPropertyValueResponse = z260.object({
|
|
7412
7459
|
value: DTOElementPropertyValue
|
|
7413
7460
|
});
|
|
7414
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
7415
|
-
definitionId:
|
|
7416
|
-
targetElementId:
|
|
7417
|
-
value:
|
|
7461
|
+
var DTOElementPropertyValueUpsertPaylod = z260.object({
|
|
7462
|
+
definitionId: z260.string(),
|
|
7463
|
+
targetElementId: z260.string(),
|
|
7464
|
+
value: z260.string().or(z260.number()).or(z260.boolean())
|
|
7418
7465
|
});
|
|
7419
7466
|
|
|
7420
7467
|
// src/api/dto/elements/elements-action-v2.ts
|
|
7421
|
-
import { z as
|
|
7422
|
-
var DTOElementActionOutput =
|
|
7468
|
+
import { z as z261 } from "zod";
|
|
7469
|
+
var DTOElementActionOutput = z261.discriminatedUnion("type", [
|
|
7423
7470
|
// Documentation pages
|
|
7424
7471
|
DTODocumentationPageCreateActionOutputV2,
|
|
7425
7472
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -7444,7 +7491,7 @@ var DTOElementActionOutput = z260.discriminatedUnion("type", [
|
|
|
7444
7491
|
// Approvals
|
|
7445
7492
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
7446
7493
|
]);
|
|
7447
|
-
var DTOElementActionInput =
|
|
7494
|
+
var DTOElementActionInput = z261.discriminatedUnion("type", [
|
|
7448
7495
|
// Documentation pages
|
|
7449
7496
|
DTODocumentationPageCreateActionInputV2,
|
|
7450
7497
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7469,90 +7516,90 @@ var DTOElementActionInput = z260.discriminatedUnion("type", [
|
|
|
7469
7516
|
// Approval
|
|
7470
7517
|
DTODocumentationPageApprovalStateChangeActionInput
|
|
7471
7518
|
]).and(
|
|
7472
|
-
|
|
7473
|
-
tId:
|
|
7519
|
+
z261.object({
|
|
7520
|
+
tId: z261.string().optional()
|
|
7474
7521
|
})
|
|
7475
7522
|
);
|
|
7476
7523
|
|
|
7477
7524
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7478
|
-
import { z as
|
|
7479
|
-
var DTOElementsGetTypeFilter =
|
|
7480
|
-
var DTOElementsGetQuerySchema =
|
|
7481
|
-
types:
|
|
7482
|
-
responseVersion:
|
|
7525
|
+
import { z as z262 } from "zod";
|
|
7526
|
+
var DTOElementsGetTypeFilter = z262.enum(["FigmaNode"]);
|
|
7527
|
+
var DTOElementsGetQuerySchema = z262.object({
|
|
7528
|
+
types: z262.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
7529
|
+
responseVersion: z262.coerce.number().default(1)
|
|
7483
7530
|
});
|
|
7484
|
-
var DTOElementsGetOutput =
|
|
7485
|
-
figmaNodes:
|
|
7531
|
+
var DTOElementsGetOutput = z262.object({
|
|
7532
|
+
figmaNodes: z262.array(DTOFigmaNode).optional()
|
|
7486
7533
|
});
|
|
7487
|
-
var DTOElementsGetOutputV2 =
|
|
7488
|
-
figmaNodes:
|
|
7534
|
+
var DTOElementsGetOutputV2 = z262.object({
|
|
7535
|
+
figmaNodes: z262.array(DTOFigmaNodeV2).optional()
|
|
7489
7536
|
});
|
|
7490
7537
|
|
|
7491
7538
|
// src/api/dto/figma-components/assets/download.ts
|
|
7492
|
-
import { z as
|
|
7493
|
-
var DTOAssetRenderConfiguration =
|
|
7494
|
-
prefix:
|
|
7495
|
-
suffix:
|
|
7496
|
-
scale:
|
|
7497
|
-
format:
|
|
7498
|
-
});
|
|
7499
|
-
var DTORenderedAssetFile =
|
|
7500
|
-
assetId:
|
|
7501
|
-
fileName:
|
|
7502
|
-
sourceUrl:
|
|
7539
|
+
import { z as z263 } from "zod";
|
|
7540
|
+
var DTOAssetRenderConfiguration = z263.object({
|
|
7541
|
+
prefix: z263.string().optional(),
|
|
7542
|
+
suffix: z263.string().optional(),
|
|
7543
|
+
scale: z263.enum(["x1", "x2", "x3", "x4"]),
|
|
7544
|
+
format: z263.enum(["png", "pdf", "svg"])
|
|
7545
|
+
});
|
|
7546
|
+
var DTORenderedAssetFile = z263.object({
|
|
7547
|
+
assetId: z263.string(),
|
|
7548
|
+
fileName: z263.string(),
|
|
7549
|
+
sourceUrl: z263.string(),
|
|
7503
7550
|
settings: DTOAssetRenderConfiguration,
|
|
7504
|
-
originalName:
|
|
7551
|
+
originalName: z263.string()
|
|
7505
7552
|
});
|
|
7506
|
-
var DTODownloadAssetsRequest =
|
|
7507
|
-
persistentIds:
|
|
7553
|
+
var DTODownloadAssetsRequest = z263.object({
|
|
7554
|
+
persistentIds: z263.array(z263.string().uuid()).optional(),
|
|
7508
7555
|
settings: DTOAssetRenderConfiguration.array()
|
|
7509
7556
|
});
|
|
7510
|
-
var DTODownloadAssetsResponse =
|
|
7557
|
+
var DTODownloadAssetsResponse = z263.object({
|
|
7511
7558
|
items: DTORenderedAssetFile.array()
|
|
7512
7559
|
});
|
|
7513
7560
|
|
|
7514
7561
|
// src/api/dto/liveblocks/auth-response.ts
|
|
7515
|
-
import { z as
|
|
7516
|
-
var DTOLiveblocksAuthResponse =
|
|
7517
|
-
token:
|
|
7562
|
+
import { z as z264 } from "zod";
|
|
7563
|
+
var DTOLiveblocksAuthResponse = z264.object({
|
|
7564
|
+
token: z264.string()
|
|
7518
7565
|
});
|
|
7519
7566
|
|
|
7520
7567
|
// src/api/dto/themes/override.ts
|
|
7521
|
-
import { z as
|
|
7568
|
+
import { z as z265 } from "zod";
|
|
7522
7569
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
7523
|
-
|
|
7524
|
-
tokenPersistentId:
|
|
7570
|
+
z265.object({
|
|
7571
|
+
tokenPersistentId: z265.string(),
|
|
7525
7572
|
origin: ThemeOverrideOrigin.optional()
|
|
7526
7573
|
})
|
|
7527
7574
|
);
|
|
7528
7575
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
7529
|
-
|
|
7530
|
-
tokenPersistentId:
|
|
7576
|
+
z265.object({
|
|
7577
|
+
tokenPersistentId: z265.string()
|
|
7531
7578
|
})
|
|
7532
7579
|
);
|
|
7533
7580
|
|
|
7534
7581
|
// src/api/dto/themes/theme.ts
|
|
7535
|
-
import { z as
|
|
7536
|
-
var DTOTheme =
|
|
7537
|
-
id:
|
|
7538
|
-
persistentId:
|
|
7539
|
-
designSystemVersionId:
|
|
7540
|
-
brandId:
|
|
7582
|
+
import { z as z266 } from "zod";
|
|
7583
|
+
var DTOTheme = z266.object({
|
|
7584
|
+
id: z266.string(),
|
|
7585
|
+
persistentId: z266.string(),
|
|
7586
|
+
designSystemVersionId: z266.string(),
|
|
7587
|
+
brandId: z266.string(),
|
|
7541
7588
|
meta: ObjectMeta,
|
|
7542
|
-
codeName:
|
|
7589
|
+
codeName: z266.string(),
|
|
7543
7590
|
overrides: DTOThemeOverride.array()
|
|
7544
7591
|
});
|
|
7545
|
-
var DTOThemeResponse =
|
|
7592
|
+
var DTOThemeResponse = z266.object({
|
|
7546
7593
|
theme: DTOTheme
|
|
7547
7594
|
});
|
|
7548
|
-
var DTOThemeListResponse =
|
|
7595
|
+
var DTOThemeListResponse = z266.object({
|
|
7549
7596
|
themes: DTOTheme.array()
|
|
7550
7597
|
});
|
|
7551
|
-
var DTOThemeCreatePayload =
|
|
7598
|
+
var DTOThemeCreatePayload = z266.object({
|
|
7552
7599
|
meta: ObjectMeta,
|
|
7553
|
-
persistentId:
|
|
7554
|
-
brandId:
|
|
7555
|
-
codeName:
|
|
7600
|
+
persistentId: z266.string(),
|
|
7601
|
+
brandId: z266.string(),
|
|
7602
|
+
codeName: z266.string(),
|
|
7556
7603
|
overrides: DTOThemeOverride.array()
|
|
7557
7604
|
});
|
|
7558
7605
|
|
|
@@ -7788,13 +7835,13 @@ var ExportersEndpoint = class {
|
|
|
7788
7835
|
};
|
|
7789
7836
|
|
|
7790
7837
|
// src/api/endpoints/codegen/jobs.ts
|
|
7791
|
-
import { z as
|
|
7838
|
+
import { z as z267 } from "zod";
|
|
7792
7839
|
var ExporterJobsEndpoint = class {
|
|
7793
7840
|
constructor(requestExecutor) {
|
|
7794
7841
|
this.requestExecutor = requestExecutor;
|
|
7795
7842
|
}
|
|
7796
7843
|
list(workspaceId) {
|
|
7797
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
7844
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z267.any());
|
|
7798
7845
|
}
|
|
7799
7846
|
get(workspaceId, jobId) {
|
|
7800
7847
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -7852,7 +7899,7 @@ var CodegenEndpoint = class {
|
|
|
7852
7899
|
};
|
|
7853
7900
|
|
|
7854
7901
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
7855
|
-
import { z as
|
|
7902
|
+
import { z as z268 } from "zod";
|
|
7856
7903
|
var BrandsEndpoint = class {
|
|
7857
7904
|
constructor(requestExecutor) {
|
|
7858
7905
|
this.requestExecutor = requestExecutor;
|
|
@@ -7886,12 +7933,44 @@ var BrandsEndpoint = class {
|
|
|
7886
7933
|
});
|
|
7887
7934
|
}
|
|
7888
7935
|
delete(dsId, vId, brandId) {
|
|
7889
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
7936
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z268.any(), {
|
|
7890
7937
|
method: "DELETE"
|
|
7891
7938
|
});
|
|
7892
7939
|
}
|
|
7893
7940
|
};
|
|
7894
7941
|
|
|
7942
|
+
// src/api/endpoints/design-system/versions/code-components.ts
|
|
7943
|
+
var CodeComponentsEndpoint = class {
|
|
7944
|
+
constructor(requestExecutor) {
|
|
7945
|
+
this.requestExecutor = requestExecutor;
|
|
7946
|
+
}
|
|
7947
|
+
async import(dsId, vId, body) {
|
|
7948
|
+
return this.requestExecutor.json(
|
|
7949
|
+
`/design-systems/${dsId}/versions/${vId}/code-components`,
|
|
7950
|
+
DTOCodeComponentListResponse,
|
|
7951
|
+
{
|
|
7952
|
+
body,
|
|
7953
|
+
method: "POST"
|
|
7954
|
+
}
|
|
7955
|
+
);
|
|
7956
|
+
}
|
|
7957
|
+
async list(dsId, vId) {
|
|
7958
|
+
return this.requestExecutor.json(
|
|
7959
|
+
`/design-systems/${dsId}/versions/${vId}/code-components`,
|
|
7960
|
+
DTOCodeComponentListResponse
|
|
7961
|
+
);
|
|
7962
|
+
}
|
|
7963
|
+
async deleteAll(dsId, vId) {
|
|
7964
|
+
return this.requestExecutor.json(
|
|
7965
|
+
`/design-systems/${dsId}/versions/${vId}/code-components`,
|
|
7966
|
+
DTOCodeComponentListResponse,
|
|
7967
|
+
{
|
|
7968
|
+
method: "DELETE"
|
|
7969
|
+
}
|
|
7970
|
+
);
|
|
7971
|
+
}
|
|
7972
|
+
};
|
|
7973
|
+
|
|
7895
7974
|
// src/api/endpoints/design-system/versions/documentation.ts
|
|
7896
7975
|
var DocumentationEndpoint = class {
|
|
7897
7976
|
constructor(requestExecutor) {
|
|
@@ -8064,7 +8143,7 @@ var ImportJobsEndpoint = class {
|
|
|
8064
8143
|
};
|
|
8065
8144
|
|
|
8066
8145
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
8067
|
-
import { z as
|
|
8146
|
+
import { z as z269 } from "zod";
|
|
8068
8147
|
var OverridesEndpoint = class {
|
|
8069
8148
|
constructor(requestExecutor) {
|
|
8070
8149
|
this.requestExecutor = requestExecutor;
|
|
@@ -8072,7 +8151,7 @@ var OverridesEndpoint = class {
|
|
|
8072
8151
|
create(dsId, versionId, themeId, body) {
|
|
8073
8152
|
return this.requestExecutor.json(
|
|
8074
8153
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
8075
|
-
|
|
8154
|
+
z269.any(),
|
|
8076
8155
|
{
|
|
8077
8156
|
method: "POST",
|
|
8078
8157
|
body
|
|
@@ -8082,7 +8161,7 @@ var OverridesEndpoint = class {
|
|
|
8082
8161
|
};
|
|
8083
8162
|
|
|
8084
8163
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
8085
|
-
import { z as
|
|
8164
|
+
import { z as z270 } from "zod";
|
|
8086
8165
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
8087
8166
|
constructor(requestExecutor) {
|
|
8088
8167
|
this.requestExecutor = requestExecutor;
|
|
@@ -8110,7 +8189,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
8110
8189
|
delete(designSystemId, versionId, defId) {
|
|
8111
8190
|
return this.requestExecutor.json(
|
|
8112
8191
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
8113
|
-
|
|
8192
|
+
z270.any(),
|
|
8114
8193
|
{ method: "DELETE" }
|
|
8115
8194
|
);
|
|
8116
8195
|
}
|
|
@@ -8149,7 +8228,7 @@ var VersionStatsEndpoint = class {
|
|
|
8149
8228
|
};
|
|
8150
8229
|
|
|
8151
8230
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
8152
|
-
import { z as
|
|
8231
|
+
import { z as z271 } from "zod";
|
|
8153
8232
|
var ThemesEndpoint = class {
|
|
8154
8233
|
constructor(requestExecutor) {
|
|
8155
8234
|
this.requestExecutor = requestExecutor;
|
|
@@ -8172,7 +8251,7 @@ var ThemesEndpoint = class {
|
|
|
8172
8251
|
});
|
|
8173
8252
|
}
|
|
8174
8253
|
delete(dsId, versionId, themeId) {
|
|
8175
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
8254
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z271.any(), {
|
|
8176
8255
|
method: "DELETE"
|
|
8177
8256
|
});
|
|
8178
8257
|
}
|
|
@@ -8259,6 +8338,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
8259
8338
|
__publicField(this, "elements");
|
|
8260
8339
|
__publicField(this, "designSystemComponents");
|
|
8261
8340
|
__publicField(this, "documentation");
|
|
8341
|
+
__publicField(this, "codeComponents");
|
|
8262
8342
|
this.themes = new ThemesEndpoint(requestExecutor);
|
|
8263
8343
|
this.brands = new BrandsEndpoint(requestExecutor);
|
|
8264
8344
|
this.tokenCollections = new TokenCollectionsEndpoint(requestExecutor);
|
|
@@ -8275,6 +8355,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
8275
8355
|
this.elements = new ElementsEndpoint(requestExecutor);
|
|
8276
8356
|
this.designSystemComponents = new DesignSystemComponentEndpoint(requestExecutor);
|
|
8277
8357
|
this.documentation = new DocumentationEndpoint(requestExecutor);
|
|
8358
|
+
this.codeComponents = new CodeComponentsEndpoint(requestExecutor);
|
|
8278
8359
|
}
|
|
8279
8360
|
list(dsId) {
|
|
8280
8361
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
|
|
@@ -8325,7 +8406,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
8325
8406
|
};
|
|
8326
8407
|
|
|
8327
8408
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8328
|
-
import { z as
|
|
8409
|
+
import { z as z273 } from "zod";
|
|
8329
8410
|
|
|
8330
8411
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
8331
8412
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -8402,7 +8483,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
8402
8483
|
};
|
|
8403
8484
|
|
|
8404
8485
|
// src/api/endpoints/design-system/sources.ts
|
|
8405
|
-
import { z as
|
|
8486
|
+
import { z as z272 } from "zod";
|
|
8406
8487
|
var DesignSystemSourcesEndpoint = class {
|
|
8407
8488
|
constructor(requestExecutor) {
|
|
8408
8489
|
this.requestExecutor = requestExecutor;
|
|
@@ -8417,7 +8498,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8417
8498
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
8418
8499
|
}
|
|
8419
8500
|
delete(dsId, sourceId) {
|
|
8420
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
8501
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z272.any(), { method: "DELETE" });
|
|
8421
8502
|
}
|
|
8422
8503
|
figmaImport(dsId, payload) {
|
|
8423
8504
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -8456,7 +8537,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8456
8537
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
8457
8538
|
}
|
|
8458
8539
|
delete(dsId) {
|
|
8459
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
8540
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z273.any(), { method: "DELETE" });
|
|
8460
8541
|
}
|
|
8461
8542
|
update(dsId, body) {
|
|
8462
8543
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -8473,7 +8554,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8473
8554
|
};
|
|
8474
8555
|
|
|
8475
8556
|
// src/api/endpoints/workspaces/integrations.ts
|
|
8476
|
-
import { z as
|
|
8557
|
+
import { z as z274 } from "zod";
|
|
8477
8558
|
var WorkspaceIntegrationsEndpoint = class {
|
|
8478
8559
|
constructor(requestExecutor) {
|
|
8479
8560
|
this.requestExecutor = requestExecutor;
|
|
@@ -8482,7 +8563,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
8482
8563
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
8483
8564
|
}
|
|
8484
8565
|
delete(wsId, iId) {
|
|
8485
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
8566
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z274.unknown(), { method: "DELETE" });
|
|
8486
8567
|
}
|
|
8487
8568
|
};
|
|
8488
8569
|
|
|
@@ -8514,7 +8595,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
8514
8595
|
};
|
|
8515
8596
|
|
|
8516
8597
|
// src/api/endpoints/workspaces/members.ts
|
|
8517
|
-
import { z as
|
|
8598
|
+
import { z as z275 } from "zod";
|
|
8518
8599
|
var WorkspaceMembersEndpoint = class {
|
|
8519
8600
|
constructor(requestExecutor) {
|
|
8520
8601
|
this.requestExecutor = requestExecutor;
|
|
@@ -8531,7 +8612,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8531
8612
|
});
|
|
8532
8613
|
}
|
|
8533
8614
|
invite(workspaceId, body) {
|
|
8534
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
8615
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z275.any(), { method: "POST", body });
|
|
8535
8616
|
}
|
|
8536
8617
|
delete(workspaceId, userId) {
|
|
8537
8618
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -8541,7 +8622,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8541
8622
|
};
|
|
8542
8623
|
|
|
8543
8624
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
8544
|
-
import { z as
|
|
8625
|
+
import { z as z276 } from "zod";
|
|
8545
8626
|
var WorkspacesEndpoint = class {
|
|
8546
8627
|
constructor(requestExecutor) {
|
|
8547
8628
|
this.requestExecutor = requestExecutor;
|
|
@@ -8566,10 +8647,10 @@ var WorkspacesEndpoint = class {
|
|
|
8566
8647
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
8567
8648
|
}
|
|
8568
8649
|
delete(workspaceId) {
|
|
8569
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
8650
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z276.any(), { method: "DELETE" });
|
|
8570
8651
|
}
|
|
8571
8652
|
subscription(workspaceId) {
|
|
8572
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
8653
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z276.any(), { method: "GET" });
|
|
8573
8654
|
}
|
|
8574
8655
|
transferOwnership(workspaceId, body) {
|
|
8575
8656
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -8669,9 +8750,9 @@ ${bodyText}`,
|
|
|
8669
8750
|
|
|
8670
8751
|
// src/api/transport/request-executor.ts
|
|
8671
8752
|
import fetch from "node-fetch";
|
|
8672
|
-
import { z as
|
|
8673
|
-
var ResponseWrapper =
|
|
8674
|
-
result:
|
|
8753
|
+
import { z as z277 } from "zod";
|
|
8754
|
+
var ResponseWrapper = z277.object({
|
|
8755
|
+
result: z277.record(z277.any())
|
|
8675
8756
|
});
|
|
8676
8757
|
var RequestExecutor = class {
|
|
8677
8758
|
constructor(testServerConfig) {
|
|
@@ -8748,31 +8829,31 @@ var SupernovaApiClient = class {
|
|
|
8748
8829
|
};
|
|
8749
8830
|
|
|
8750
8831
|
// src/events/design-system.ts
|
|
8751
|
-
import { z as
|
|
8752
|
-
var DTOEventFigmaNodesRendered =
|
|
8753
|
-
type:
|
|
8754
|
-
designSystemId:
|
|
8755
|
-
versionId:
|
|
8756
|
-
figmaNodePersistentIds:
|
|
8757
|
-
});
|
|
8758
|
-
var DTOEventDataSourcesImported =
|
|
8759
|
-
type:
|
|
8760
|
-
designSystemId:
|
|
8761
|
-
versionId:
|
|
8762
|
-
importJobId:
|
|
8832
|
+
import { z as z278 } from "zod";
|
|
8833
|
+
var DTOEventFigmaNodesRendered = z278.object({
|
|
8834
|
+
type: z278.literal("DesignSystem.FigmaNodesRendered"),
|
|
8835
|
+
designSystemId: z278.string(),
|
|
8836
|
+
versionId: z278.string(),
|
|
8837
|
+
figmaNodePersistentIds: z278.string().array()
|
|
8838
|
+
});
|
|
8839
|
+
var DTOEventDataSourcesImported = z278.object({
|
|
8840
|
+
type: z278.literal("DesignSystem.ImportJobFinished"),
|
|
8841
|
+
designSystemId: z278.string(),
|
|
8842
|
+
versionId: z278.string(),
|
|
8843
|
+
importJobId: z278.string(),
|
|
8763
8844
|
dataSourceType: DataSourceRemoteType,
|
|
8764
|
-
dataSourceIds:
|
|
8845
|
+
dataSourceIds: z278.string().array()
|
|
8765
8846
|
});
|
|
8766
8847
|
|
|
8767
8848
|
// src/events/event.ts
|
|
8768
|
-
import { z as
|
|
8769
|
-
var DTOEvent =
|
|
8849
|
+
import { z as z279 } from "zod";
|
|
8850
|
+
var DTOEvent = z279.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
8770
8851
|
|
|
8771
8852
|
// src/sync/docs-structure-repo.ts
|
|
8772
8853
|
import PQueue from "p-queue";
|
|
8773
8854
|
|
|
8774
8855
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8775
|
-
import { z as
|
|
8856
|
+
import { z as z280 } from "zod";
|
|
8776
8857
|
|
|
8777
8858
|
// src/yjs/version-room/base.ts
|
|
8778
8859
|
var VersionRoomBaseYDoc = class {
|
|
@@ -9337,24 +9418,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
9337
9418
|
};
|
|
9338
9419
|
|
|
9339
9420
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9340
|
-
var DocumentationHierarchySettings =
|
|
9341
|
-
routingVersion:
|
|
9342
|
-
isDraftFeatureAdopted:
|
|
9343
|
-
isApprovalFeatureEnabled:
|
|
9344
|
-
approvalRequiredForPublishing:
|
|
9421
|
+
var DocumentationHierarchySettings = z280.object({
|
|
9422
|
+
routingVersion: z280.string(),
|
|
9423
|
+
isDraftFeatureAdopted: z280.boolean(),
|
|
9424
|
+
isApprovalFeatureEnabled: z280.boolean(),
|
|
9425
|
+
approvalRequiredForPublishing: z280.boolean()
|
|
9345
9426
|
});
|
|
9346
9427
|
function yjsToDocumentationHierarchy(doc) {
|
|
9347
9428
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
9348
9429
|
}
|
|
9349
9430
|
|
|
9350
9431
|
// src/yjs/design-system-content/item-configuration.ts
|
|
9351
|
-
import { z as
|
|
9352
|
-
var DTODocumentationPageRoomHeaderData =
|
|
9353
|
-
title:
|
|
9432
|
+
import { z as z281 } from "zod";
|
|
9433
|
+
var DTODocumentationPageRoomHeaderData = z281.object({
|
|
9434
|
+
title: z281.string(),
|
|
9354
9435
|
configuration: DTODocumentationItemConfigurationV2
|
|
9355
9436
|
});
|
|
9356
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
9357
|
-
title:
|
|
9437
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z281.object({
|
|
9438
|
+
title: z281.string().optional(),
|
|
9358
9439
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
9359
9440
|
});
|
|
9360
9441
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -9405,7 +9486,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
9405
9486
|
header: rawHeader
|
|
9406
9487
|
};
|
|
9407
9488
|
return {
|
|
9408
|
-
title:
|
|
9489
|
+
title: z281.string().parse(title),
|
|
9409
9490
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
9410
9491
|
};
|
|
9411
9492
|
}
|
|
@@ -9415,9 +9496,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
9415
9496
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
9416
9497
|
|
|
9417
9498
|
// src/yjs/docs-editor/model/page.ts
|
|
9418
|
-
import { z as
|
|
9419
|
-
var DocumentationPageEditorModel =
|
|
9420
|
-
blocks:
|
|
9499
|
+
import { z as z282 } from "zod";
|
|
9500
|
+
var DocumentationPageEditorModel = z282.object({
|
|
9501
|
+
blocks: z282.array(DocumentationPageContentItem)
|
|
9421
9502
|
});
|
|
9422
9503
|
|
|
9423
9504
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -12976,7 +13057,7 @@ var blocks = [
|
|
|
12976
13057
|
|
|
12977
13058
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
12978
13059
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
12979
|
-
import { z as
|
|
13060
|
+
import { z as z283 } from "zod";
|
|
12980
13061
|
function yDocToPage(yDoc, definitions) {
|
|
12981
13062
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
12982
13063
|
}
|
|
@@ -13056,7 +13137,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
13056
13137
|
return null;
|
|
13057
13138
|
return {
|
|
13058
13139
|
id,
|
|
13059
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
13140
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z283.string()) ?? "",
|
|
13060
13141
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
13061
13142
|
};
|
|
13062
13143
|
}
|
|
@@ -13091,7 +13172,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
13091
13172
|
});
|
|
13092
13173
|
}
|
|
13093
13174
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
13094
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
13175
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z283.string());
|
|
13095
13176
|
if (!definitionId) {
|
|
13096
13177
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
13097
13178
|
return [];
|
|
@@ -13133,7 +13214,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
13133
13214
|
if (!id)
|
|
13134
13215
|
return null;
|
|
13135
13216
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13136
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
13217
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z283.string().optional()));
|
|
13137
13218
|
return {
|
|
13138
13219
|
id,
|
|
13139
13220
|
type: "Block",
|
|
@@ -13261,10 +13342,10 @@ function parseRichTextAttribute(mark) {
|
|
|
13261
13342
|
return null;
|
|
13262
13343
|
}
|
|
13263
13344
|
function parseProsemirrorLink(mark) {
|
|
13264
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
13345
|
+
const href = getProsemirrorAttribute(mark, "href", z283.string().optional());
|
|
13265
13346
|
if (!href)
|
|
13266
13347
|
return null;
|
|
13267
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
13348
|
+
const target = getProsemirrorAttribute(mark, "target", z283.string().optional());
|
|
13268
13349
|
const openInNewTab = target === "_blank";
|
|
13269
13350
|
if (href.startsWith("@")) {
|
|
13270
13351
|
return {
|
|
@@ -13283,10 +13364,10 @@ function parseProsemirrorLink(mark) {
|
|
|
13283
13364
|
}
|
|
13284
13365
|
}
|
|
13285
13366
|
function parseProsemirrorCommentHighlight(mark) {
|
|
13286
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
13367
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z283.string().optional());
|
|
13287
13368
|
if (!highlightId)
|
|
13288
13369
|
return null;
|
|
13289
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
13370
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z283.boolean().optional()) ?? false;
|
|
13290
13371
|
return {
|
|
13291
13372
|
type: "Comment",
|
|
13292
13373
|
commentHighlightId: highlightId,
|
|
@@ -13298,7 +13379,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13298
13379
|
if (!id)
|
|
13299
13380
|
return null;
|
|
13300
13381
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13301
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
13382
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z283.boolean().optional()) !== false;
|
|
13302
13383
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
13303
13384
|
if (!tableChild) {
|
|
13304
13385
|
return emptyTable(id, variantId, 0);
|
|
@@ -13345,9 +13426,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
13345
13426
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13346
13427
|
if (!id)
|
|
13347
13428
|
return null;
|
|
13348
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
13429
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z283.string().optional());
|
|
13349
13430
|
let columnWidth;
|
|
13350
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
13431
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z283.array(z283.number()).nullish());
|
|
13351
13432
|
if (columnWidthArray) {
|
|
13352
13433
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
13353
13434
|
}
|
|
@@ -13385,7 +13466,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
13385
13466
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
13386
13467
|
};
|
|
13387
13468
|
case "image":
|
|
13388
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13469
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z283.string());
|
|
13389
13470
|
if (!items)
|
|
13390
13471
|
return null;
|
|
13391
13472
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -13505,7 +13586,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
13505
13586
|
);
|
|
13506
13587
|
}
|
|
13507
13588
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
13508
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13589
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z283.string());
|
|
13509
13590
|
if (!itemsString)
|
|
13510
13591
|
return null;
|
|
13511
13592
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -13517,18 +13598,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
13517
13598
|
}
|
|
13518
13599
|
function parseAppearance(prosemirrorNode) {
|
|
13519
13600
|
let appearance = {};
|
|
13520
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
13601
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z283.string().optional());
|
|
13521
13602
|
if (rawAppearanceString) {
|
|
13522
13603
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
13523
13604
|
if (parsedAppearance.success) {
|
|
13524
13605
|
appearance = parsedAppearance.data;
|
|
13525
13606
|
}
|
|
13526
13607
|
}
|
|
13527
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
13608
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z283.number().optional());
|
|
13528
13609
|
if (columns) {
|
|
13529
13610
|
appearance.numberOfColumns = columns;
|
|
13530
13611
|
}
|
|
13531
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
13612
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z283.string().optional());
|
|
13532
13613
|
if (backgroundColor) {
|
|
13533
13614
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
13534
13615
|
if (parsedColor.success) {
|
|
@@ -13623,13 +13704,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
13623
13704
|
}
|
|
13624
13705
|
}
|
|
13625
13706
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
13626
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
13707
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z283.string());
|
|
13627
13708
|
if (!id)
|
|
13628
13709
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
13629
13710
|
return id;
|
|
13630
13711
|
}
|
|
13631
13712
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
13632
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
13713
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z283.string()));
|
|
13633
13714
|
}
|
|
13634
13715
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
13635
13716
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -14171,6 +14252,7 @@ export {
|
|
|
14171
14252
|
BlockDefinitionUtils,
|
|
14172
14253
|
BlockParsingUtils,
|
|
14173
14254
|
BrandsEndpoint,
|
|
14255
|
+
CodeComponentsEndpoint,
|
|
14174
14256
|
CodegenEndpoint,
|
|
14175
14257
|
Collection2 as Collection,
|
|
14176
14258
|
DTOAppBootstrapDataQuery,
|
|
@@ -14188,7 +14270,15 @@ export {
|
|
|
14188
14270
|
DTOBrandGetResponse,
|
|
14189
14271
|
DTOBrandUpdatePayload,
|
|
14190
14272
|
DTOBrandsListResponse,
|
|
14273
|
+
DTOCodeComponent,
|
|
14274
|
+
DTOCodeComponentCreateInput,
|
|
14275
|
+
DTOCodeComponentListResponse,
|
|
14276
|
+
DTOCodeComponentProperty,
|
|
14277
|
+
DTOCodeComponentResponse,
|
|
14278
|
+
DTOCodeComponentsCreateInput,
|
|
14191
14279
|
DTOColorTokenInlineData,
|
|
14280
|
+
DTOComponentPropertyControlType,
|
|
14281
|
+
DTOControlTypeInfo,
|
|
14192
14282
|
DTOCreateDocumentationGroupInput,
|
|
14193
14283
|
DTOCreateDocumentationPageInputV2,
|
|
14194
14284
|
DTOCreateDocumentationTabInput,
|