@supernova-studio/client 1.6.2 → 1.6.4
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 +4781 -1609
- package/dist/index.d.ts +4781 -1609
- package/dist/index.js +408 -205
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1634 -1431
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -683,13 +683,33 @@ var CodeComponent = z23.object({
|
|
|
683
683
|
componentPath: z23.string(),
|
|
684
684
|
description: z23.string(),
|
|
685
685
|
properties: z23.record(z23.string(), CodeComponentProperty),
|
|
686
|
-
tags: z23.record(z23.string(), z23.string()).
|
|
686
|
+
tags: z23.record(z23.string(), z23.string()).nullable()
|
|
687
687
|
});
|
|
688
688
|
var CodeComponentUpsertResponse = z23.object({
|
|
689
689
|
created: z23.number().nonnegative(),
|
|
690
690
|
updated: z23.number().nonnegative(),
|
|
691
691
|
deleted: z23.number().nonnegative()
|
|
692
692
|
});
|
|
693
|
+
var RegistryType = z23.enum(["Npm", "Github", "Artifactory", "Azure", "Custom"]);
|
|
694
|
+
var Registry = z23.object({
|
|
695
|
+
type: RegistryType,
|
|
696
|
+
url: z23.string().optional(),
|
|
697
|
+
accessToken: z23.string().optional(),
|
|
698
|
+
scope: z23.string(),
|
|
699
|
+
authConfig: z23.record(z23.string()).optional()
|
|
700
|
+
});
|
|
701
|
+
var DependencyDefinition = z23.object({
|
|
702
|
+
name: z23.string(),
|
|
703
|
+
version: z23.string().optional()
|
|
704
|
+
});
|
|
705
|
+
var AnalyzeCodeComponentsInPackage = z23.object({
|
|
706
|
+
designSystemId: z23.string(),
|
|
707
|
+
versionId: z23.string(),
|
|
708
|
+
mainPackage: DependencyDefinition,
|
|
709
|
+
dependencies: z23.array(DependencyDefinition).optional(),
|
|
710
|
+
registries: Registry.array(),
|
|
711
|
+
userAccessToken: z23.string()
|
|
712
|
+
});
|
|
693
713
|
var FigmaFileDownloadScope = z24.object({
|
|
694
714
|
styles: z24.boolean(),
|
|
695
715
|
components: z24.boolean(),
|
|
@@ -3327,6 +3347,11 @@ var SourceImportComponentSummary = z90.object({
|
|
|
3327
3347
|
componentAssetsUpdated: zeroNumberByDefault(),
|
|
3328
3348
|
componentAssetsDeleted: zeroNumberByDefault()
|
|
3329
3349
|
});
|
|
3350
|
+
var SourceImportStorybookSummary = z90.object({
|
|
3351
|
+
created: zeroNumberByDefault(),
|
|
3352
|
+
updated: zeroNumberByDefault(),
|
|
3353
|
+
deleted: zeroNumberByDefault()
|
|
3354
|
+
});
|
|
3330
3355
|
var SourceImportFrameSummary = z90.object({
|
|
3331
3356
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
3332
3357
|
invalidReferencesCount: nullishToOptional(z90.number().optional())
|
|
@@ -3412,9 +3437,12 @@ var DataSourceStorybookRemote = z91.object({
|
|
|
3412
3437
|
ownerId: z91.string().optional(),
|
|
3413
3438
|
lastImportedAt: z91.coerce.date().optional(),
|
|
3414
3439
|
lastImportedSuccessfully: z91.coerce.date().optional(),
|
|
3440
|
+
lastImportedResult: SourceImportStorybookSummary.optional(),
|
|
3415
3441
|
isFailed: z91.boolean(),
|
|
3416
3442
|
storiesCount: z91.number(),
|
|
3417
|
-
docsCount: z91.number()
|
|
3443
|
+
docsCount: z91.number(),
|
|
3444
|
+
description: z91.string().optional(),
|
|
3445
|
+
isUsingVpn: z91.boolean().optional()
|
|
3418
3446
|
});
|
|
3419
3447
|
var DataSourceRemote = z91.discriminatedUnion("type", [
|
|
3420
3448
|
DataSourceFigmaRemote,
|
|
@@ -4622,8 +4650,7 @@ var DocumentationPageRoom = Entity.extend({
|
|
|
4622
4650
|
isDirty: z161.boolean()
|
|
4623
4651
|
});
|
|
4624
4652
|
var DocumentationPageRoomState = z161.object({
|
|
4625
|
-
pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
|
|
4626
|
-
itemConfiguration: DocumentationItemConfigurationV2
|
|
4653
|
+
pageItems: z161.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2))
|
|
4627
4654
|
});
|
|
4628
4655
|
var DocumentationPageRoomRoomUpdate = z161.object({
|
|
4629
4656
|
page: DocumentationPageV2,
|
|
@@ -5623,120 +5650,156 @@ function integrationCredentialToDto(credential) {
|
|
|
5623
5650
|
};
|
|
5624
5651
|
}
|
|
5625
5652
|
|
|
5626
|
-
// src/api/dto/
|
|
5653
|
+
// src/api/dto/access-tokens/access-token.ts
|
|
5627
5654
|
import { z as z191 } from "zod";
|
|
5628
|
-
var
|
|
5629
|
-
|
|
5655
|
+
var DTOAccessToken = z191.object({
|
|
5656
|
+
id: z191.string(),
|
|
5657
|
+
createdAt: z191.coerce.date(),
|
|
5658
|
+
name: z191.string(),
|
|
5659
|
+
scope: z191.string().optional()
|
|
5660
|
+
});
|
|
5661
|
+
var DTOAccessTokenFull = DTOAccessToken.extend({
|
|
5662
|
+
token: z191.string()
|
|
5663
|
+
});
|
|
5664
|
+
var DTOAccessTokenListResponse = z191.object({
|
|
5665
|
+
tokens: DTOAccessToken.array()
|
|
5666
|
+
});
|
|
5667
|
+
var DTOAccessTokenResponse = z191.object({
|
|
5668
|
+
token: DTOAccessToken
|
|
5669
|
+
});
|
|
5670
|
+
var DTOAccessTokenFullResponse = z191.object({
|
|
5671
|
+
token: DTOAccessTokenFull
|
|
5672
|
+
});
|
|
5673
|
+
var DTOAccessTokenCreatePayload = z191.object({
|
|
5674
|
+
name: z191.string(),
|
|
5675
|
+
scope: z191.string().optional()
|
|
5630
5676
|
});
|
|
5631
5677
|
|
|
5632
|
-
// src/api/dto/aux/
|
|
5678
|
+
// src/api/dto/aux/color.ts
|
|
5633
5679
|
import { z as z192 } from "zod";
|
|
5634
|
-
var
|
|
5635
|
-
|
|
5636
|
-
description: z192.string().max(2048).optional()
|
|
5680
|
+
var DTOColorTokenInlineData = z192.object({
|
|
5681
|
+
value: z192.string().regex(/^#[a-f0-9]{6,8}$/)
|
|
5637
5682
|
});
|
|
5638
5683
|
|
|
5639
|
-
// src/api/dto/aux/
|
|
5684
|
+
// src/api/dto/aux/meta.ts
|
|
5640
5685
|
import { z as z193 } from "zod";
|
|
5641
|
-
var
|
|
5642
|
-
|
|
5643
|
-
|
|
5686
|
+
var DTOObjectMeta = z193.object({
|
|
5687
|
+
name: z193.string().max(512),
|
|
5688
|
+
description: z193.string().max(2048).optional()
|
|
5689
|
+
});
|
|
5690
|
+
|
|
5691
|
+
// src/api/dto/aux/pagination.ts
|
|
5692
|
+
import { z as z194 } from "zod";
|
|
5693
|
+
var DTOPagination = z194.object({
|
|
5694
|
+
limit: z194.string().optional(),
|
|
5695
|
+
offset: z194.string().optional()
|
|
5644
5696
|
});
|
|
5645
5697
|
|
|
5646
5698
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5647
|
-
import { z as
|
|
5699
|
+
import { z as z235 } from "zod";
|
|
5648
5700
|
|
|
5649
5701
|
// src/api/dto/design-systems/brand.ts
|
|
5650
|
-
import { z as
|
|
5651
|
-
var DTOBrand =
|
|
5652
|
-
id:
|
|
5653
|
-
designSystemVersionId:
|
|
5654
|
-
persistentId:
|
|
5702
|
+
import { z as z195 } from "zod";
|
|
5703
|
+
var DTOBrand = z195.object({
|
|
5704
|
+
id: z195.string(),
|
|
5705
|
+
designSystemVersionId: z195.string(),
|
|
5706
|
+
persistentId: z195.string(),
|
|
5655
5707
|
meta: ObjectMeta
|
|
5656
5708
|
});
|
|
5657
|
-
var DTOBrandGetResponse =
|
|
5658
|
-
var DTOBrandCreateResponse =
|
|
5709
|
+
var DTOBrandGetResponse = z195.object({ brand: DTOBrand });
|
|
5710
|
+
var DTOBrandCreateResponse = z195.object({
|
|
5659
5711
|
brand: DTOBrand
|
|
5660
5712
|
});
|
|
5661
|
-
var DTOBrandsListResponse =
|
|
5662
|
-
var DTOBrandCreatePayload =
|
|
5663
|
-
persistentId:
|
|
5713
|
+
var DTOBrandsListResponse = z195.object({ brands: z195.array(DTOBrand) });
|
|
5714
|
+
var DTOBrandCreatePayload = z195.object({
|
|
5715
|
+
persistentId: z195.string().uuid(),
|
|
5664
5716
|
meta: DTOObjectMeta
|
|
5665
5717
|
});
|
|
5666
|
-
var DTOBrandUpdatePayload =
|
|
5718
|
+
var DTOBrandUpdatePayload = z195.object({
|
|
5667
5719
|
meta: DTOObjectMeta.optional(),
|
|
5668
|
-
persistentId:
|
|
5720
|
+
persistentId: z195.string()
|
|
5669
5721
|
});
|
|
5670
5722
|
|
|
5671
5723
|
// src/api/dto/design-systems/code-component.ts
|
|
5672
|
-
import { z as
|
|
5724
|
+
import { z as z196 } from "zod";
|
|
5673
5725
|
var DTOCodeComponentResolvedTypeKind = CodeComponentResolvedTypeKind;
|
|
5674
5726
|
var DTOCodeComponentResolvedType = CodeComponentResolvedType;
|
|
5675
5727
|
var DTOCodeComponentParentType = CodeComponentParentType;
|
|
5676
5728
|
var DTOCodeComponentProperty = CodeComponentProperty;
|
|
5677
5729
|
var DTOCodeComponent = CodeComponent;
|
|
5678
|
-
var DTOCodeComponentResponse =
|
|
5730
|
+
var DTOCodeComponentResponse = z196.object({
|
|
5679
5731
|
codeComponent: DTOCodeComponent
|
|
5680
5732
|
});
|
|
5681
|
-
var DTOCodeComponentListResponse =
|
|
5733
|
+
var DTOCodeComponentListResponse = z196.object({
|
|
5682
5734
|
codeComponents: DTOCodeComponent.array()
|
|
5683
5735
|
});
|
|
5684
|
-
var DTOCodeComponentCreateInput =
|
|
5685
|
-
persistentId:
|
|
5686
|
-
exportName:
|
|
5687
|
-
componentPath:
|
|
5688
|
-
description:
|
|
5689
|
-
properties:
|
|
5690
|
-
tags:
|
|
5736
|
+
var DTOCodeComponentCreateInput = z196.object({
|
|
5737
|
+
persistentId: z196.string(),
|
|
5738
|
+
exportName: z196.string(),
|
|
5739
|
+
componentPath: z196.string(),
|
|
5740
|
+
description: z196.string(),
|
|
5741
|
+
properties: z196.record(z196.string(), DTOCodeComponentProperty),
|
|
5742
|
+
tags: z196.record(z196.string(), z196.string()).nullable()
|
|
5691
5743
|
});
|
|
5692
|
-
var DTOCodeComponentsCreateInput =
|
|
5744
|
+
var DTOCodeComponentsCreateInput = z196.object({
|
|
5693
5745
|
codeComponents: DTOCodeComponentCreateInput.array()
|
|
5694
5746
|
});
|
|
5695
5747
|
var DTOCodeComponentUpsertResponse = CodeComponentUpsertResponse;
|
|
5748
|
+
var DTOAnalyzeCodeComponentsInPackage = AnalyzeCodeComponentsInPackage;
|
|
5749
|
+
var DTODependencyDefinition = DependencyDefinition;
|
|
5750
|
+
var DTORegistry = Registry;
|
|
5751
|
+
var DTOAnalyzeCodeComponentsInPackageResponse = z196.object({
|
|
5752
|
+
ok: z196.literal(true)
|
|
5753
|
+
});
|
|
5754
|
+
var DTOAnalyzeCodeComponentsInPackageInput = AnalyzeCodeComponentsInPackage.omit({
|
|
5755
|
+
designSystemId: true,
|
|
5756
|
+
versionId: true,
|
|
5757
|
+
userAccessToken: true
|
|
5758
|
+
});
|
|
5696
5759
|
|
|
5697
5760
|
// src/api/dto/design-systems/component.ts
|
|
5698
|
-
import { z as
|
|
5699
|
-
var DTODesignSystemComponent =
|
|
5700
|
-
id:
|
|
5701
|
-
persistentId:
|
|
5702
|
-
designSystemVersionId:
|
|
5703
|
-
brandId:
|
|
5761
|
+
import { z as z197 } from "zod";
|
|
5762
|
+
var DTODesignSystemComponent = z197.object({
|
|
5763
|
+
id: z197.string(),
|
|
5764
|
+
persistentId: z197.string(),
|
|
5765
|
+
designSystemVersionId: z197.string(),
|
|
5766
|
+
brandId: z197.string(),
|
|
5704
5767
|
meta: DTOObjectMeta,
|
|
5705
|
-
createdAt:
|
|
5706
|
-
updatedAt:
|
|
5768
|
+
createdAt: z197.coerce.date(),
|
|
5769
|
+
updatedAt: z197.coerce.date()
|
|
5707
5770
|
});
|
|
5708
|
-
var DTODesignSystemComponentResponse =
|
|
5771
|
+
var DTODesignSystemComponentResponse = z197.object({
|
|
5709
5772
|
designSystemComponent: DTODesignSystemComponent
|
|
5710
5773
|
});
|
|
5711
|
-
var DTODesignSystemComponentListResponse =
|
|
5774
|
+
var DTODesignSystemComponentListResponse = z197.object({
|
|
5712
5775
|
designSystemComponents: DTODesignSystemComponent.array()
|
|
5713
5776
|
});
|
|
5714
|
-
var DTODesignSystemComponentCreateInput =
|
|
5715
|
-
brandId:
|
|
5777
|
+
var DTODesignSystemComponentCreateInput = z197.object({
|
|
5778
|
+
brandId: z197.string(),
|
|
5716
5779
|
// Persistent ID,
|
|
5717
|
-
persistentId:
|
|
5780
|
+
persistentId: z197.string(),
|
|
5718
5781
|
meta: DTOObjectMeta
|
|
5719
5782
|
});
|
|
5720
5783
|
|
|
5721
5784
|
// src/api/dto/design-systems/contact.ts
|
|
5722
|
-
import { z as
|
|
5785
|
+
import { z as z201 } from "zod";
|
|
5723
5786
|
|
|
5724
5787
|
// src/api/dto/users/authenticated-user.ts
|
|
5725
|
-
import { z as
|
|
5788
|
+
import { z as z199 } from "zod";
|
|
5726
5789
|
|
|
5727
5790
|
// src/api/dto/users/user.ts
|
|
5728
|
-
import { z as
|
|
5729
|
-
var DTOUserProfile =
|
|
5730
|
-
name:
|
|
5731
|
-
nickname:
|
|
5732
|
-
avatar:
|
|
5733
|
-
});
|
|
5734
|
-
var DTOUser =
|
|
5735
|
-
id:
|
|
5736
|
-
email:
|
|
5791
|
+
import { z as z198 } from "zod";
|
|
5792
|
+
var DTOUserProfile = z198.object({
|
|
5793
|
+
name: z198.string(),
|
|
5794
|
+
nickname: z198.string().optional(),
|
|
5795
|
+
avatar: z198.string().optional()
|
|
5796
|
+
});
|
|
5797
|
+
var DTOUser = z198.object({
|
|
5798
|
+
id: z198.string(),
|
|
5799
|
+
email: z198.string(),
|
|
5737
5800
|
profile: DTOUserProfile
|
|
5738
5801
|
});
|
|
5739
|
-
var DTOUserGetResponse =
|
|
5802
|
+
var DTOUserGetResponse = z198.object({
|
|
5740
5803
|
user: DTOUser
|
|
5741
5804
|
});
|
|
5742
5805
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -5746,17 +5809,17 @@ var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
|
5746
5809
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5747
5810
|
var DTOUserSource = UserSource;
|
|
5748
5811
|
var DTOUserTheme = UserTheme;
|
|
5749
|
-
var DTOUserOnboarding =
|
|
5750
|
-
companyName:
|
|
5751
|
-
numberOfPeopleInOrg:
|
|
5752
|
-
numberOfPeopleInDesignTeam:
|
|
5812
|
+
var DTOUserOnboarding = z199.object({
|
|
5813
|
+
companyName: z199.string().optional(),
|
|
5814
|
+
numberOfPeopleInOrg: z199.string().optional(),
|
|
5815
|
+
numberOfPeopleInDesignTeam: z199.string().optional(),
|
|
5753
5816
|
department: DTOUserOnboardingDepartment.optional(),
|
|
5754
|
-
jobTitle:
|
|
5755
|
-
phase:
|
|
5817
|
+
jobTitle: z199.string().optional(),
|
|
5818
|
+
phase: z199.string().optional(),
|
|
5756
5819
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
5757
|
-
designSystemName:
|
|
5758
|
-
defaultDestination:
|
|
5759
|
-
isPageDraftOnboardingFinished:
|
|
5820
|
+
designSystemName: z199.string().optional(),
|
|
5821
|
+
defaultDestination: z199.string().optional(),
|
|
5822
|
+
isPageDraftOnboardingFinished: z199.boolean().optional()
|
|
5760
5823
|
});
|
|
5761
5824
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5762
5825
|
onboarding: DTOUserOnboarding.optional(),
|
|
@@ -5764,178 +5827,189 @@ var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
|
5764
5827
|
});
|
|
5765
5828
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5766
5829
|
profile: DTOAuthenticatedUserProfile,
|
|
5767
|
-
createdAt:
|
|
5768
|
-
loggedOutAt:
|
|
5830
|
+
createdAt: z199.coerce.date(),
|
|
5831
|
+
loggedOutAt: z199.coerce.date().optional(),
|
|
5769
5832
|
source: DTOUserSource.optional()
|
|
5770
5833
|
});
|
|
5771
|
-
var DTOAuthenticatedUserResponse =
|
|
5834
|
+
var DTOAuthenticatedUserResponse = z199.object({
|
|
5772
5835
|
user: DTOAuthenticatedUser
|
|
5773
5836
|
});
|
|
5774
5837
|
|
|
5775
5838
|
// src/api/dto/users/update.ts
|
|
5776
|
-
import { z as
|
|
5777
|
-
var DTOUserProfileUpdateResponse =
|
|
5839
|
+
import { z as z200 } from "zod";
|
|
5840
|
+
var DTOUserProfileUpdateResponse = z200.object({
|
|
5778
5841
|
user: User
|
|
5779
5842
|
});
|
|
5780
5843
|
|
|
5781
5844
|
// src/api/dto/design-systems/contact.ts
|
|
5782
|
-
var DTODesignSystemContactsResponse =
|
|
5783
|
-
contacts:
|
|
5784
|
-
workspace:
|
|
5785
|
-
designSystem:
|
|
5845
|
+
var DTODesignSystemContactsResponse = z201.object({
|
|
5846
|
+
contacts: z201.object({
|
|
5847
|
+
workspace: z201.array(DTOUser),
|
|
5848
|
+
designSystem: z201.array(DTOUser)
|
|
5786
5849
|
})
|
|
5787
5850
|
});
|
|
5788
5851
|
|
|
5789
5852
|
// src/api/dto/design-systems/data-source.ts
|
|
5790
|
-
import { z as
|
|
5853
|
+
import { z as z202 } from "zod";
|
|
5791
5854
|
var DTODataSourceFigmaScope = DataSourceFigmaScope;
|
|
5792
|
-
var DTODataSourceFigmaFileVersion =
|
|
5793
|
-
id:
|
|
5794
|
-
created_at:
|
|
5795
|
-
label:
|
|
5796
|
-
description:
|
|
5797
|
-
});
|
|
5798
|
-
var DTODataSourceFigmaCloud =
|
|
5799
|
-
fileId:
|
|
5855
|
+
var DTODataSourceFigmaFileVersion = z202.object({
|
|
5856
|
+
id: z202.string(),
|
|
5857
|
+
created_at: z202.coerce.date(),
|
|
5858
|
+
label: z202.string(),
|
|
5859
|
+
description: z202.string()
|
|
5860
|
+
});
|
|
5861
|
+
var DTODataSourceFigmaCloud = z202.object({
|
|
5862
|
+
fileId: z202.string(),
|
|
5800
5863
|
state: DataSourceFigmaState,
|
|
5801
5864
|
autoImportMode: DataSourceAutoImportMode,
|
|
5802
|
-
fileThumbnailUrl:
|
|
5865
|
+
fileThumbnailUrl: z202.string().optional(),
|
|
5803
5866
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5804
|
-
lastImportedAt:
|
|
5867
|
+
lastImportedAt: z202.coerce.date().nullish(),
|
|
5805
5868
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5806
|
-
lastUpdatesCheckedAt:
|
|
5807
|
-
ownerId:
|
|
5808
|
-
ownerUserName:
|
|
5809
|
-
preferredCredentialId:
|
|
5869
|
+
lastUpdatesCheckedAt: z202.date().nullish(),
|
|
5870
|
+
ownerId: z202.string(),
|
|
5871
|
+
ownerUserName: z202.string().optional(),
|
|
5872
|
+
preferredCredentialId: z202.string().optional(),
|
|
5810
5873
|
stats: DataSourceStats
|
|
5811
5874
|
});
|
|
5812
|
-
var DTODataSourceFigma =
|
|
5813
|
-
id:
|
|
5814
|
-
type:
|
|
5815
|
-
fileName:
|
|
5875
|
+
var DTODataSourceFigma = z202.object({
|
|
5876
|
+
id: z202.string(),
|
|
5877
|
+
type: z202.literal(DataSourceRemoteType.Enum.Figma),
|
|
5878
|
+
fileName: z202.string(),
|
|
5816
5879
|
scope: DTODataSourceFigmaScope,
|
|
5817
|
-
brandId:
|
|
5818
|
-
themeId:
|
|
5880
|
+
brandId: z202.string(),
|
|
5881
|
+
themeId: z202.string().nullish(),
|
|
5819
5882
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
5820
|
-
sortOrder:
|
|
5821
|
-
});
|
|
5822
|
-
var DTODataSourceTokenStudio =
|
|
5823
|
-
id:
|
|
5824
|
-
type:
|
|
5825
|
-
fileName:
|
|
5826
|
-
brandId:
|
|
5827
|
-
themeId:
|
|
5828
|
-
sortOrder:
|
|
5829
|
-
tokenStudio:
|
|
5830
|
-
settings:
|
|
5831
|
-
dryRun:
|
|
5832
|
-
verbose:
|
|
5833
|
-
preciseCopy:
|
|
5883
|
+
sortOrder: z202.number().optional()
|
|
5884
|
+
});
|
|
5885
|
+
var DTODataSourceTokenStudio = z202.object({
|
|
5886
|
+
id: z202.string(),
|
|
5887
|
+
type: z202.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5888
|
+
fileName: z202.string(),
|
|
5889
|
+
brandId: z202.string(),
|
|
5890
|
+
themeId: z202.string().nullish(),
|
|
5891
|
+
sortOrder: z202.number().optional(),
|
|
5892
|
+
tokenStudio: z202.object({
|
|
5893
|
+
settings: z202.object({
|
|
5894
|
+
dryRun: z202.boolean(),
|
|
5895
|
+
verbose: z202.boolean(),
|
|
5896
|
+
preciseCopy: z202.boolean()
|
|
5834
5897
|
}),
|
|
5835
|
-
connectionName:
|
|
5836
|
-
lastImportedAt:
|
|
5837
|
-
lastImportedResults:
|
|
5838
|
-
|
|
5839
|
-
mapping:
|
|
5840
|
-
tokenSets:
|
|
5841
|
-
supernovaBrand:
|
|
5842
|
-
supernovaTheme:
|
|
5898
|
+
connectionName: z202.string(),
|
|
5899
|
+
lastImportedAt: z202.coerce.date(),
|
|
5900
|
+
lastImportedResults: z202.array(
|
|
5901
|
+
z202.object({
|
|
5902
|
+
mapping: z202.object({
|
|
5903
|
+
tokenSets: z202.array(z202.string()),
|
|
5904
|
+
supernovaBrand: z202.string(),
|
|
5905
|
+
supernovaTheme: z202.string().optional()
|
|
5843
5906
|
}),
|
|
5844
|
-
isFailed:
|
|
5845
|
-
tokensCreated:
|
|
5846
|
-
tokensDeleted:
|
|
5847
|
-
tokensUpdated:
|
|
5907
|
+
isFailed: z202.boolean(),
|
|
5908
|
+
tokensCreated: z202.number(),
|
|
5909
|
+
tokensDeleted: z202.number(),
|
|
5910
|
+
tokensUpdated: z202.number()
|
|
5848
5911
|
})
|
|
5849
5912
|
)
|
|
5850
5913
|
})
|
|
5851
5914
|
});
|
|
5852
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5853
|
-
id:
|
|
5854
|
-
type:
|
|
5855
|
-
fileName:
|
|
5856
|
-
brandId:
|
|
5857
|
-
sortOrder:
|
|
5858
|
-
upload:
|
|
5859
|
-
remoteId:
|
|
5915
|
+
var DTODataSourceFigmaVariablesPlugin = z202.object({
|
|
5916
|
+
id: z202.string(),
|
|
5917
|
+
type: z202.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5918
|
+
fileName: z202.string(),
|
|
5919
|
+
brandId: z202.string(),
|
|
5920
|
+
sortOrder: z202.number().optional(),
|
|
5921
|
+
upload: z202.object({
|
|
5922
|
+
remoteId: z202.string(),
|
|
5860
5923
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5861
|
-
lastImportedAt:
|
|
5924
|
+
lastImportedAt: z202.coerce.date().optional(),
|
|
5862
5925
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5863
|
-
isTokenTypeSplitEnabled:
|
|
5926
|
+
isTokenTypeSplitEnabled: z202.boolean()
|
|
5864
5927
|
}),
|
|
5865
|
-
figmaVariablesPlugin:
|
|
5866
|
-
fileId:
|
|
5867
|
-
lastImportedAt:
|
|
5928
|
+
figmaVariablesPlugin: z202.object({
|
|
5929
|
+
fileId: z202.string(),
|
|
5930
|
+
lastImportedAt: z202.coerce.date().optional(),
|
|
5868
5931
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
5869
|
-
isTokenTypeSplitEnabled:
|
|
5870
|
-
isCollectionsMigrationCompleted:
|
|
5932
|
+
isTokenTypeSplitEnabled: z202.boolean(),
|
|
5933
|
+
isCollectionsMigrationCompleted: z202.boolean().default(false)
|
|
5871
5934
|
})
|
|
5872
5935
|
});
|
|
5873
|
-
var DTODataSourceStorybook =
|
|
5874
|
-
id:
|
|
5875
|
-
type:
|
|
5876
|
-
fileName:
|
|
5877
|
-
brandId:
|
|
5878
|
-
sortOrder:
|
|
5879
|
-
storybook:
|
|
5880
|
-
indexUrl:
|
|
5881
|
-
userUrl:
|
|
5882
|
-
lastImportedAt:
|
|
5883
|
-
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
|
|
5936
|
+
var DTODataSourceStorybook = z202.object({
|
|
5937
|
+
id: z202.string(),
|
|
5938
|
+
type: z202.literal(DataSourceRemoteType.Enum.Storybook),
|
|
5939
|
+
fileName: z202.string(),
|
|
5940
|
+
brandId: z202.string(),
|
|
5941
|
+
sortOrder: z202.number().optional(),
|
|
5942
|
+
storybook: z202.object({
|
|
5943
|
+
indexUrl: z202.string(),
|
|
5944
|
+
userUrl: z202.string(),
|
|
5945
|
+
lastImportedAt: z202.coerce.date().optional(),
|
|
5946
|
+
lastImportedResult: SourceImportStorybookSummary.optional(),
|
|
5947
|
+
lastImportedSuccessfully: z202.coerce.date().optional(),
|
|
5948
|
+
isFailed: z202.boolean(),
|
|
5949
|
+
storiesCount: z202.number(),
|
|
5950
|
+
docsCount: z202.number(),
|
|
5951
|
+
description: z202.string().optional(),
|
|
5952
|
+
isUsingVpn: z202.boolean().optional()
|
|
5887
5953
|
})
|
|
5888
5954
|
});
|
|
5889
|
-
var DTODataSourcesStorybookResponse =
|
|
5890
|
-
isFailed:
|
|
5891
|
-
storiesCount:
|
|
5892
|
-
docsCount:
|
|
5893
|
-
created:
|
|
5894
|
-
updated:
|
|
5895
|
-
deleted:
|
|
5955
|
+
var DTODataSourcesStorybookResponse = z202.object({
|
|
5956
|
+
isFailed: z202.boolean(),
|
|
5957
|
+
storiesCount: z202.number(),
|
|
5958
|
+
docsCount: z202.number(),
|
|
5959
|
+
created: z202.array(z202.string()).optional(),
|
|
5960
|
+
updated: z202.array(z202.string()).optional(),
|
|
5961
|
+
deleted: z202.array(z202.string()).optional()
|
|
5896
5962
|
});
|
|
5897
|
-
var DTODataSource =
|
|
5963
|
+
var DTODataSource = z202.discriminatedUnion("type", [
|
|
5898
5964
|
DTODataSourceFigma,
|
|
5899
5965
|
DTODataSourceFigmaVariablesPlugin,
|
|
5900
5966
|
DTODataSourceTokenStudio,
|
|
5901
5967
|
DTODataSourceStorybook
|
|
5902
5968
|
]);
|
|
5903
|
-
var DTODataSourcesListResponse =
|
|
5904
|
-
sources:
|
|
5969
|
+
var DTODataSourcesListResponse = z202.object({
|
|
5970
|
+
sources: z202.array(DTODataSource)
|
|
5905
5971
|
});
|
|
5906
|
-
var DTODataSourceResponse =
|
|
5972
|
+
var DTODataSourceResponse = z202.object({
|
|
5907
5973
|
source: DTODataSource
|
|
5908
5974
|
});
|
|
5909
|
-
var DTODataSourceFigmaCreatePayload =
|
|
5910
|
-
brandPersistentId:
|
|
5911
|
-
figmaFileUrl:
|
|
5975
|
+
var DTODataSourceFigmaCreatePayload = z202.object({
|
|
5976
|
+
brandPersistentId: z202.string(),
|
|
5977
|
+
figmaFileUrl: z202.string(),
|
|
5912
5978
|
scope: DTODataSourceFigmaScope,
|
|
5913
5979
|
autoImportMode: DataSourceAutoImportMode
|
|
5914
5980
|
});
|
|
5915
|
-
var DTODataSourceFigmaImportPayload =
|
|
5916
|
-
sourceIds:
|
|
5981
|
+
var DTODataSourceFigmaImportPayload = z202.object({
|
|
5982
|
+
sourceIds: z202.array(z202.string())
|
|
5983
|
+
});
|
|
5984
|
+
var DTODataSourceStorybookCreatePayload = z202.object({
|
|
5985
|
+
brandPersistentId: z202.string(),
|
|
5986
|
+
fileName: z202.string().optional(),
|
|
5987
|
+
userUrl: z202.string(),
|
|
5988
|
+
indexUrl: z202.string(),
|
|
5989
|
+
payload: z202.unknown(),
|
|
5990
|
+
type: z202.literal(DataSourceRemoteType.Enum.Storybook),
|
|
5991
|
+
description: z202.string().optional(),
|
|
5992
|
+
isUsingVpn: z202.boolean().optional()
|
|
5917
5993
|
});
|
|
5918
|
-
var
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
indexUrl: z201.string(),
|
|
5922
|
-
payload: z201.unknown(),
|
|
5923
|
-
type: z201.literal(DataSourceRemoteType.Enum.Storybook)
|
|
5994
|
+
var DTOStorybookImportPayload = z202.object({
|
|
5995
|
+
sourceId: z202.string(),
|
|
5996
|
+
payload: z202.unknown()
|
|
5924
5997
|
});
|
|
5925
|
-
var
|
|
5926
|
-
|
|
5927
|
-
|
|
5998
|
+
var DTOStorybookSourceUpdatePayload = z202.object({
|
|
5999
|
+
description: z202.string().nullish().optional(),
|
|
6000
|
+
isUsingVpn: z202.boolean().optional(),
|
|
6001
|
+
fileName: z202.string().optional()
|
|
5928
6002
|
});
|
|
5929
6003
|
|
|
5930
6004
|
// src/api/dto/design-systems/design-system.ts
|
|
5931
|
-
import { z as
|
|
6005
|
+
import { z as z205 } from "zod";
|
|
5932
6006
|
|
|
5933
6007
|
// src/api/dto/design-systems/members.ts
|
|
5934
|
-
import { z as
|
|
6008
|
+
import { z as z204 } from "zod";
|
|
5935
6009
|
|
|
5936
6010
|
// src/api/dto/design-systems/role.ts
|
|
5937
|
-
import { z as
|
|
5938
|
-
var DTODesignSystemRole =
|
|
6011
|
+
import { z as z203 } from "zod";
|
|
6012
|
+
var DTODesignSystemRole = z203.enum([
|
|
5939
6013
|
WorkspaceRole.Admin,
|
|
5940
6014
|
WorkspaceRole.Contributor,
|
|
5941
6015
|
WorkspaceRole.Creator,
|
|
@@ -5943,29 +6017,29 @@ var DTODesignSystemRole = z202.enum([
|
|
|
5943
6017
|
]);
|
|
5944
6018
|
|
|
5945
6019
|
// src/api/dto/design-systems/members.ts
|
|
5946
|
-
var DTODesignSystemMember =
|
|
5947
|
-
userId:
|
|
6020
|
+
var DTODesignSystemMember = z204.object({
|
|
6021
|
+
userId: z204.string(),
|
|
5948
6022
|
/**
|
|
5949
6023
|
* Role that the member has in the design system,
|
|
5950
6024
|
* undefined if set to inherit from workspace
|
|
5951
6025
|
*/
|
|
5952
6026
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5953
6027
|
});
|
|
5954
|
-
var DTODesignSystemInvitation =
|
|
5955
|
-
id:
|
|
5956
|
-
workspaceInvitationId:
|
|
6028
|
+
var DTODesignSystemInvitation = z204.object({
|
|
6029
|
+
id: z204.string(),
|
|
6030
|
+
workspaceInvitationId: z204.string(),
|
|
5957
6031
|
/**
|
|
5958
6032
|
* Role that the invitation has in the design system,
|
|
5959
6033
|
* undefined if set to inherit from workspace
|
|
5960
6034
|
*/
|
|
5961
6035
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5962
6036
|
});
|
|
5963
|
-
var DTODesignSystemMemberListResponse =
|
|
6037
|
+
var DTODesignSystemMemberListResponse = z204.object({
|
|
5964
6038
|
members: DTODesignSystemMember.array(),
|
|
5965
6039
|
invitations: DTODesignSystemInvitation.array()
|
|
5966
6040
|
});
|
|
5967
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5968
|
-
ok:
|
|
6041
|
+
var DTODesignSystemMembersUpdateResponse = z204.object({
|
|
6042
|
+
ok: z204.literal(true)
|
|
5969
6043
|
});
|
|
5970
6044
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5971
6045
|
|
|
@@ -5976,14 +6050,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5976
6050
|
docExporterId: true
|
|
5977
6051
|
}).extend({
|
|
5978
6052
|
meta: ObjectMeta,
|
|
5979
|
-
docExporterId:
|
|
5980
|
-
sources:
|
|
5981
|
-
isPublic:
|
|
6053
|
+
docExporterId: z205.string(),
|
|
6054
|
+
sources: z205.array(z205.any()),
|
|
6055
|
+
isPublic: z205.literal(true),
|
|
5982
6056
|
/**
|
|
5983
6057
|
* Whether or not user who is requesting the design system
|
|
5984
6058
|
* has access to the design system's contents.
|
|
5985
6059
|
*/
|
|
5986
|
-
isAvailableToUser:
|
|
6060
|
+
isAvailableToUser: z205.boolean(),
|
|
5987
6061
|
/**
|
|
5988
6062
|
* @deprecated
|
|
5989
6063
|
*/
|
|
@@ -5994,17 +6068,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5994
6068
|
*/
|
|
5995
6069
|
effectiveRole: DTODesignSystemRole.optional()
|
|
5996
6070
|
});
|
|
5997
|
-
var DTODesignSystemResponse =
|
|
6071
|
+
var DTODesignSystemResponse = z205.object({
|
|
5998
6072
|
designSystem: DTODesignSystem
|
|
5999
6073
|
});
|
|
6000
|
-
var DTODesignSystemsListResponse =
|
|
6074
|
+
var DTODesignSystemsListResponse = z205.object({
|
|
6001
6075
|
designSystems: DTODesignSystem.array()
|
|
6002
6076
|
});
|
|
6003
|
-
var DTODesignSystemCreateInput =
|
|
6004
|
-
workspaceId:
|
|
6077
|
+
var DTODesignSystemCreateInput = z205.object({
|
|
6078
|
+
workspaceId: z205.string(),
|
|
6005
6079
|
meta: ObjectMeta.optional(),
|
|
6006
|
-
name:
|
|
6007
|
-
description:
|
|
6080
|
+
name: z205.string().min(2).max(64).optional(),
|
|
6081
|
+
description: z205.string().max(1024).optional(),
|
|
6008
6082
|
accessMode: DesignSystemAccessMode.optional(),
|
|
6009
6083
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
6010
6084
|
usersToInvite: true,
|
|
@@ -6014,20 +6088,20 @@ var DTODesignSystemCreateInput = z204.object({
|
|
|
6014
6088
|
});
|
|
6015
6089
|
|
|
6016
6090
|
// src/api/dto/design-systems/elements-diff.ts
|
|
6017
|
-
import { z as
|
|
6018
|
-
var DTODiffCountBase =
|
|
6019
|
-
created:
|
|
6020
|
-
updated:
|
|
6021
|
-
deleted:
|
|
6091
|
+
import { z as z206 } from "zod";
|
|
6092
|
+
var DTODiffCountBase = z206.object({
|
|
6093
|
+
created: z206.number(),
|
|
6094
|
+
updated: z206.number(),
|
|
6095
|
+
deleted: z206.number()
|
|
6022
6096
|
});
|
|
6023
|
-
var DTODesignElementsDataDiffResponse =
|
|
6097
|
+
var DTODesignElementsDataDiffResponse = z206.object({
|
|
6024
6098
|
tokens: DTODiffCountBase,
|
|
6025
6099
|
assets: DTODiffCountBase
|
|
6026
6100
|
});
|
|
6027
6101
|
|
|
6028
6102
|
// src/api/dto/design-systems/figma-variables.ts
|
|
6029
|
-
import { z as
|
|
6030
|
-
var DimensionsVariableScopeSchema =
|
|
6103
|
+
import { z as z207 } from "zod";
|
|
6104
|
+
var DimensionsVariableScopeSchema = z207.enum([
|
|
6031
6105
|
"CORNER_RADIUS",
|
|
6032
6106
|
"WIDTH_HEIGHT",
|
|
6033
6107
|
"GAP",
|
|
@@ -6041,181 +6115,385 @@ var DimensionsVariableScopeSchema = z206.enum([
|
|
|
6041
6115
|
"PARAGRAPH_INDENT",
|
|
6042
6116
|
"FONT_WEIGHT"
|
|
6043
6117
|
]);
|
|
6044
|
-
var StringVariableScopeSchema =
|
|
6118
|
+
var StringVariableScopeSchema = z207.enum(["TEXT_CONTENT", "FONT_FAMILY", "FONT_STYLE"]);
|
|
6045
6119
|
var DimensionsVariableScopeType = DimensionsVariableScopeSchema.enum;
|
|
6046
6120
|
var StringVariableScopeType = StringVariableScopeSchema.enum;
|
|
6047
|
-
var VariableScope =
|
|
6048
|
-
var ReferencedVariableOrigin =
|
|
6049
|
-
name:
|
|
6050
|
-
remote:
|
|
6121
|
+
var VariableScope = z207.string();
|
|
6122
|
+
var ReferencedVariableOrigin = z207.object({
|
|
6123
|
+
name: z207.string(),
|
|
6124
|
+
remote: z207.boolean()
|
|
6051
6125
|
});
|
|
6052
|
-
var RGB =
|
|
6053
|
-
r:
|
|
6054
|
-
g:
|
|
6055
|
-
b:
|
|
6126
|
+
var RGB = z207.object({
|
|
6127
|
+
r: z207.number(),
|
|
6128
|
+
g: z207.number(),
|
|
6129
|
+
b: z207.number()
|
|
6056
6130
|
});
|
|
6057
6131
|
var RGBA = RGB.extend({
|
|
6058
|
-
a:
|
|
6059
|
-
});
|
|
6060
|
-
var VariableAlias =
|
|
6061
|
-
type:
|
|
6062
|
-
id:
|
|
6063
|
-
resolvedValue:
|
|
6064
|
-
referenceOrigin: ReferencedVariableOrigin.optional().or(
|
|
6065
|
-
});
|
|
6066
|
-
var VariableValue =
|
|
6067
|
-
var ResolvedVariableType =
|
|
6068
|
-
var Variable =
|
|
6069
|
-
id:
|
|
6070
|
-
name:
|
|
6071
|
-
key:
|
|
6072
|
-
variableCollectionId:
|
|
6132
|
+
a: z207.number()
|
|
6133
|
+
});
|
|
6134
|
+
var VariableAlias = z207.object({
|
|
6135
|
+
type: z207.literal("VARIABLE_ALIAS"),
|
|
6136
|
+
id: z207.string(),
|
|
6137
|
+
resolvedValue: z207.boolean().or(z207.number()).or(z207.string()).or(RGBA).or(RGB).optional(),
|
|
6138
|
+
referenceOrigin: ReferencedVariableOrigin.optional().or(z207.null())
|
|
6139
|
+
});
|
|
6140
|
+
var VariableValue = z207.boolean().or(z207.number()).or(z207.string()).or(RGBA).or(RGB).or(VariableAlias);
|
|
6141
|
+
var ResolvedVariableType = z207.enum(["BOOLEAN", "FLOAT", "STRING", "COLOR"]);
|
|
6142
|
+
var Variable = z207.object({
|
|
6143
|
+
id: z207.string(),
|
|
6144
|
+
name: z207.string(),
|
|
6145
|
+
key: z207.string(),
|
|
6146
|
+
variableCollectionId: z207.string(),
|
|
6073
6147
|
resolvedType: ResolvedVariableType,
|
|
6074
|
-
valuesByMode:
|
|
6075
|
-
remote:
|
|
6076
|
-
description:
|
|
6077
|
-
hiddenFromPublishing:
|
|
6078
|
-
scopes:
|
|
6079
|
-
codeSyntax:
|
|
6080
|
-
});
|
|
6081
|
-
var VariableMode =
|
|
6082
|
-
modeId:
|
|
6083
|
-
name:
|
|
6084
|
-
});
|
|
6085
|
-
var Collection2 =
|
|
6086
|
-
id:
|
|
6087
|
-
name:
|
|
6088
|
-
modes:
|
|
6089
|
-
defaultModeId:
|
|
6090
|
-
remote:
|
|
6091
|
-
hiddenFromPublishing:
|
|
6092
|
-
});
|
|
6093
|
-
var VariablesMapping =
|
|
6094
|
-
variableCollections:
|
|
6095
|
-
variableMode:
|
|
6096
|
-
supernovaBrand:
|
|
6097
|
-
supernovaTheme:
|
|
6098
|
-
});
|
|
6099
|
-
var FormattedCollections =
|
|
6100
|
-
variables:
|
|
6101
|
-
variableCollections:
|
|
6102
|
-
mappings:
|
|
6103
|
-
variablesOrder:
|
|
6148
|
+
valuesByMode: z207.record(VariableValue),
|
|
6149
|
+
remote: z207.boolean(),
|
|
6150
|
+
description: z207.string(),
|
|
6151
|
+
hiddenFromPublishing: z207.boolean(),
|
|
6152
|
+
scopes: z207.array(VariableScope),
|
|
6153
|
+
codeSyntax: z207.record(z207.any()).optional()
|
|
6154
|
+
});
|
|
6155
|
+
var VariableMode = z207.object({
|
|
6156
|
+
modeId: z207.string(),
|
|
6157
|
+
name: z207.string()
|
|
6158
|
+
});
|
|
6159
|
+
var Collection2 = z207.object({
|
|
6160
|
+
id: z207.string(),
|
|
6161
|
+
name: z207.string(),
|
|
6162
|
+
modes: z207.array(VariableMode),
|
|
6163
|
+
defaultModeId: z207.string(),
|
|
6164
|
+
remote: z207.boolean(),
|
|
6165
|
+
hiddenFromPublishing: z207.boolean()
|
|
6166
|
+
});
|
|
6167
|
+
var VariablesMapping = z207.object({
|
|
6168
|
+
variableCollections: z207.array(z207.string()).min(1),
|
|
6169
|
+
variableMode: z207.string().min(1),
|
|
6170
|
+
supernovaBrand: z207.string().min(1),
|
|
6171
|
+
supernovaTheme: z207.string().min(1).optional().or(z207.null())
|
|
6172
|
+
});
|
|
6173
|
+
var FormattedCollections = z207.object({
|
|
6174
|
+
variables: z207.record(z207.string(), Variable),
|
|
6175
|
+
variableCollections: z207.record(z207.string(), Collection2),
|
|
6176
|
+
mappings: z207.array(VariablesMapping).optional(),
|
|
6177
|
+
variablesOrder: z207.string().array().optional()
|
|
6104
6178
|
});
|
|
6105
6179
|
|
|
6106
6180
|
// src/api/dto/design-systems/import-job.ts
|
|
6107
|
-
import { z as
|
|
6108
|
-
var DTOImportJob =
|
|
6109
|
-
id:
|
|
6110
|
-
designSystemId:
|
|
6111
|
-
designSystemVersionId:
|
|
6112
|
-
operation:
|
|
6113
|
-
createdAt:
|
|
6114
|
-
stateChangedAt:
|
|
6181
|
+
import { z as z208 } from "zod";
|
|
6182
|
+
var DTOImportJob = z208.object({
|
|
6183
|
+
id: z208.string(),
|
|
6184
|
+
designSystemId: z208.string(),
|
|
6185
|
+
designSystemVersionId: z208.string(),
|
|
6186
|
+
operation: z208.literal("Import"),
|
|
6187
|
+
createdAt: z208.coerce.date(),
|
|
6188
|
+
stateChangedAt: z208.coerce.date(),
|
|
6115
6189
|
state: ImportJobState,
|
|
6116
|
-
sourceIds:
|
|
6190
|
+
sourceIds: z208.string().array()
|
|
6117
6191
|
});
|
|
6118
|
-
var DTOImportJobResponse =
|
|
6192
|
+
var DTOImportJobResponse = z208.object({
|
|
6119
6193
|
job: DTOImportJob
|
|
6120
6194
|
});
|
|
6121
|
-
var DTOBffFigmaImportRequestBody =
|
|
6122
|
-
type:
|
|
6123
|
-
brandPersistentId:
|
|
6124
|
-
fileId:
|
|
6195
|
+
var DTOBffFigmaImportRequestBody = z208.object({
|
|
6196
|
+
type: z208.literal(DataSourceRemoteType.Enum.Figma),
|
|
6197
|
+
brandPersistentId: z208.string().optional(),
|
|
6198
|
+
fileId: z208.string(),
|
|
6125
6199
|
scope: DataSourceFigmaScope,
|
|
6126
6200
|
autoImportMode: DataSourceAutoImportMode
|
|
6127
6201
|
});
|
|
6128
|
-
var DTOBffUploadImportRequestBody =
|
|
6129
|
-
type:
|
|
6130
|
-
brandPersistentId:
|
|
6131
|
-
sourceName:
|
|
6132
|
-
remoteId:
|
|
6133
|
-
isTokenTypeSplitEnabled:
|
|
6134
|
-
payload:
|
|
6202
|
+
var DTOBffUploadImportRequestBody = z208.object({
|
|
6203
|
+
type: z208.enum([DataSourceRemoteType.Enum.FigmaVariablesPlugin, "Upload"]).transform((v) => DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
6204
|
+
brandPersistentId: z208.string().optional(),
|
|
6205
|
+
sourceName: z208.string().optional(),
|
|
6206
|
+
remoteId: z208.string(),
|
|
6207
|
+
isTokenTypeSplitEnabled: z208.boolean().optional(),
|
|
6208
|
+
payload: z208.any()
|
|
6135
6209
|
});
|
|
6136
|
-
var DTOBffImportRequestBody =
|
|
6210
|
+
var DTOBffImportRequestBody = z208.discriminatedUnion("type", [
|
|
6137
6211
|
DTOBffFigmaImportRequestBody,
|
|
6138
6212
|
DTOBffUploadImportRequestBody
|
|
6139
6213
|
]);
|
|
6140
6214
|
|
|
6141
6215
|
// src/api/dto/design-systems/redirects.ts
|
|
6142
|
-
import { z as
|
|
6143
|
-
var DTOPageRedirectCreateBody =
|
|
6144
|
-
pagePersistentId:
|
|
6145
|
-
path:
|
|
6216
|
+
import { z as z209 } from "zod";
|
|
6217
|
+
var DTOPageRedirectCreateBody = z209.object({
|
|
6218
|
+
pagePersistentId: z209.string(),
|
|
6219
|
+
path: z209.string()
|
|
6146
6220
|
});
|
|
6147
6221
|
var DTOPageRedirectUpdateBody = DTOPageRedirectCreateBody.partial();
|
|
6148
|
-
var DTOPageRedirect =
|
|
6149
|
-
id:
|
|
6150
|
-
pagePersistentId:
|
|
6151
|
-
path:
|
|
6222
|
+
var DTOPageRedirect = z209.object({
|
|
6223
|
+
id: z209.string(),
|
|
6224
|
+
pagePersistentId: z209.string(),
|
|
6225
|
+
path: z209.string()
|
|
6152
6226
|
});
|
|
6153
|
-
var DTOPageRedirectListResponse =
|
|
6227
|
+
var DTOPageRedirectListResponse = z209.object({
|
|
6154
6228
|
redirects: DTOPageRedirect.array()
|
|
6155
6229
|
});
|
|
6156
|
-
var DTOPageRedirectResponse =
|
|
6230
|
+
var DTOPageRedirectResponse = z209.object({
|
|
6157
6231
|
redirect: DTOPageRedirect
|
|
6158
6232
|
});
|
|
6159
|
-
var DTOPageRedirectDeleteResponse =
|
|
6160
|
-
success:
|
|
6233
|
+
var DTOPageRedirectDeleteResponse = z209.object({
|
|
6234
|
+
success: z209.boolean()
|
|
6161
6235
|
});
|
|
6162
6236
|
|
|
6163
6237
|
// src/api/dto/design-systems/stats.ts
|
|
6164
|
-
import { z as
|
|
6165
|
-
var DTODesignSystemVersionStats =
|
|
6166
|
-
tokens:
|
|
6167
|
-
designSystemComponents:
|
|
6168
|
-
assets:
|
|
6169
|
-
documentationPages:
|
|
6170
|
-
figmaComponents:
|
|
6171
|
-
});
|
|
6172
|
-
var DTODesignSystemVersionStatsQuery =
|
|
6238
|
+
import { z as z210 } from "zod";
|
|
6239
|
+
var DTODesignSystemVersionStats = z210.object({
|
|
6240
|
+
tokens: z210.number(),
|
|
6241
|
+
designSystemComponents: z210.number(),
|
|
6242
|
+
assets: z210.number(),
|
|
6243
|
+
documentationPages: z210.number(),
|
|
6244
|
+
figmaComponents: z210.number()
|
|
6245
|
+
});
|
|
6246
|
+
var DTODesignSystemVersionStatsQuery = z210.object({
|
|
6173
6247
|
/**
|
|
6174
6248
|
* Unique ID across versions (non-persistent ID)
|
|
6175
6249
|
*/
|
|
6176
|
-
brandId:
|
|
6250
|
+
brandId: z210.string().optional()
|
|
6177
6251
|
});
|
|
6178
6252
|
|
|
6179
6253
|
// src/api/dto/design-systems/storybook.ts
|
|
6180
|
-
import { z as
|
|
6181
|
-
var
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6254
|
+
import { z as z211 } from "zod";
|
|
6255
|
+
var DTOStorybookUploadUrlRequest = z211.object({
|
|
6256
|
+
name: z211.string()
|
|
6257
|
+
});
|
|
6258
|
+
var DTOStorybookUploadUrlResponse = z211.object({
|
|
6259
|
+
signedUrl: z211.string(),
|
|
6260
|
+
storybookUploadId: z211.string()
|
|
6261
|
+
});
|
|
6262
|
+
var DTOStorybookAccessTokenResponse = z211.object({
|
|
6263
|
+
accessToken: z211.string()
|
|
6264
|
+
});
|
|
6265
|
+
var DTOStorybookAccessTokenPayload = z211.object({
|
|
6266
|
+
designSystemId: z211.string(),
|
|
6267
|
+
storybookUploadId: z211.string()
|
|
6268
|
+
});
|
|
6269
|
+
var DTOStorybookUploadStatus = z211.object({
|
|
6270
|
+
status: z211.enum(["Failed", "InProgress", "Completed", "Unknown"]),
|
|
6271
|
+
timestamp: z211.number().optional(),
|
|
6272
|
+
reason: z211.string().optional()
|
|
6273
|
+
});
|
|
6274
|
+
var DTOStorybookEntryOrigin = z211.object({
|
|
6275
|
+
id: z211.string(),
|
|
6276
|
+
type: z211.enum(["story", "docs"]),
|
|
6277
|
+
name: z211.string(),
|
|
6278
|
+
title: z211.string()
|
|
6279
|
+
});
|
|
6280
|
+
var DTOStorybookEntry = z211.object({
|
|
6281
|
+
id: z211.string(),
|
|
6282
|
+
storyId: z211.string(),
|
|
6283
|
+
designSystemId: z211.string(),
|
|
6284
|
+
sourceId: z211.string(),
|
|
6285
|
+
aliases: z211.array(z211.string()).optional(),
|
|
6286
|
+
url: z211.string(),
|
|
6287
|
+
isDeleted: z211.boolean().optional(),
|
|
6195
6288
|
origin: DTOStorybookEntryOrigin,
|
|
6196
|
-
createdAt:
|
|
6197
|
-
updatedAt:
|
|
6289
|
+
createdAt: z211.coerce.date(),
|
|
6290
|
+
updatedAt: z211.coerce.date()
|
|
6291
|
+
});
|
|
6292
|
+
var DTOStorybookEntryReplaceAction = z211.object({
|
|
6293
|
+
newStoryId: z211.string()
|
|
6294
|
+
});
|
|
6295
|
+
var DTOStorybookEntryListResponse = z211.object({ entries: z211.array(DTOStorybookEntry) });
|
|
6296
|
+
var DTOStorybookEntryResponse = z211.object({ entry: DTOStorybookEntry });
|
|
6297
|
+
|
|
6298
|
+
// src/api/dto/design-systems/user-design-systems.ts
|
|
6299
|
+
import { z as z219 } from "zod";
|
|
6300
|
+
|
|
6301
|
+
// src/api/dto/workspaces/git.ts
|
|
6302
|
+
import { z as z212 } from "zod";
|
|
6303
|
+
var DTOGitOrganization = z212.object({
|
|
6304
|
+
id: z212.string(),
|
|
6305
|
+
name: z212.string(),
|
|
6306
|
+
url: z212.string(),
|
|
6307
|
+
slug: z212.string()
|
|
6308
|
+
});
|
|
6309
|
+
var DTOGitProject = z212.object({
|
|
6310
|
+
id: z212.string(),
|
|
6311
|
+
name: z212.string(),
|
|
6312
|
+
url: z212.string(),
|
|
6313
|
+
slug: z212.string()
|
|
6314
|
+
});
|
|
6315
|
+
var DTOGitRepository = z212.object({
|
|
6316
|
+
id: z212.string(),
|
|
6317
|
+
name: z212.string(),
|
|
6318
|
+
url: z212.string(),
|
|
6319
|
+
slug: z212.string(),
|
|
6320
|
+
defaultBranch: z212.string().optional()
|
|
6321
|
+
});
|
|
6322
|
+
var DTOGitBranch = z212.object({
|
|
6323
|
+
name: z212.string(),
|
|
6324
|
+
lastCommitId: z212.string()
|
|
6325
|
+
});
|
|
6326
|
+
|
|
6327
|
+
// src/api/dto/workspaces/integrations.ts
|
|
6328
|
+
import { z as z213 } from "zod";
|
|
6329
|
+
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6330
|
+
accessToken: true,
|
|
6331
|
+
refreshToken: true
|
|
6332
|
+
});
|
|
6333
|
+
var DTOIntegration = z213.object({
|
|
6334
|
+
id: z213.string(),
|
|
6335
|
+
workspaceId: z213.string(),
|
|
6336
|
+
type: ExtendedIntegrationType,
|
|
6337
|
+
createdAt: z213.coerce.date(),
|
|
6338
|
+
integrationCredentials: z213.array(DTOIntegrationCredentials).optional(),
|
|
6339
|
+
integrationDesignSystems: z213.array(IntegrationDesignSystem).optional()
|
|
6198
6340
|
});
|
|
6199
|
-
var
|
|
6200
|
-
|
|
6341
|
+
var DTOIntegrationOAuthGetResponse = z213.object({
|
|
6342
|
+
url: z213.string()
|
|
6343
|
+
});
|
|
6344
|
+
var DTOIntegrationPostResponse = z213.object({
|
|
6345
|
+
integration: DTOIntegration
|
|
6346
|
+
});
|
|
6347
|
+
var DTOIntegrationsGetListResponse = z213.object({
|
|
6348
|
+
integrations: DTOIntegration.array()
|
|
6349
|
+
});
|
|
6350
|
+
|
|
6351
|
+
// src/api/dto/workspaces/invitations.ts
|
|
6352
|
+
import { z as z214 } from "zod";
|
|
6353
|
+
var DTOWorkspaceInvitationInput = z214.object({
|
|
6354
|
+
email: z214.string().email(),
|
|
6355
|
+
role: WorkspaceRoleSchema
|
|
6356
|
+
});
|
|
6357
|
+
var DTOWorkspaceInvitationsListInput = z214.object({
|
|
6358
|
+
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6359
|
+
designSystemId: z214.string().optional()
|
|
6360
|
+
});
|
|
6361
|
+
var DTOWorkspaceInvitationsResponse = z214.object({
|
|
6362
|
+
invitations: WorkspaceInvitation.array()
|
|
6363
|
+
});
|
|
6364
|
+
var DTOWorkspaceInviteUpdate = z214.object({
|
|
6365
|
+
role: WorkspaceRoleSchema
|
|
6366
|
+
});
|
|
6367
|
+
var DTOWorkspaceInvitationUpdateResponse = z214.object({
|
|
6368
|
+
invitation: WorkspaceInvitation
|
|
6369
|
+
});
|
|
6370
|
+
|
|
6371
|
+
// src/api/dto/workspaces/membership.ts
|
|
6372
|
+
import { z as z217 } from "zod";
|
|
6373
|
+
|
|
6374
|
+
// src/api/dto/workspaces/workspace.ts
|
|
6375
|
+
import { z as z216 } from "zod";
|
|
6376
|
+
|
|
6377
|
+
// src/api/dto/workspaces/npm-registry.ts
|
|
6378
|
+
import { z as z215 } from "zod";
|
|
6379
|
+
var DTONpmRegistryConfigConstants = {
|
|
6380
|
+
passwordPlaceholder: "redacted"
|
|
6381
|
+
};
|
|
6382
|
+
var DTONpmRegistryConfig = z215.object({
|
|
6383
|
+
// Registry basic configuration
|
|
6384
|
+
registryType: NpmRegistryType,
|
|
6385
|
+
registryUrl: z215.string(),
|
|
6386
|
+
customRegistryUrl: z215.string().optional(),
|
|
6387
|
+
// URL of Supernova NPM packages proxy
|
|
6388
|
+
proxyUrl: z215.string(),
|
|
6389
|
+
// Auth configuration
|
|
6390
|
+
authType: NpmRegistryAuthType,
|
|
6391
|
+
accessToken: z215.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6392
|
+
username: z215.string().optional(),
|
|
6393
|
+
password: z215.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6394
|
+
// NPM package scopes for whih the proxy should be enabled
|
|
6395
|
+
enabledScopes: z215.array(z215.string()),
|
|
6396
|
+
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6397
|
+
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6398
|
+
bypassProxy: z215.boolean()
|
|
6399
|
+
});
|
|
6400
|
+
var DTONpmRegistryAccessTokenResponse = z215.object({
|
|
6401
|
+
version: z215.number(),
|
|
6402
|
+
accessToken: z215.string().optional(),
|
|
6403
|
+
registryUrl: z215.string()
|
|
6404
|
+
});
|
|
6405
|
+
var DTOUpdateRegistryInput = z215.object({
|
|
6406
|
+
registryType: nullishToOptional(NpmRegistryType),
|
|
6407
|
+
authType: nullishToOptional(NpmRegistryAuthType),
|
|
6408
|
+
enabledScopes: nullishToOptional(z215.array(z215.string())),
|
|
6409
|
+
customRegistryUrl: nullishToOptional(z215.string()),
|
|
6410
|
+
bypassProxy: nullishToOptional(z215.boolean()),
|
|
6411
|
+
npmProxyVersion: nullishToOptional(z215.number()),
|
|
6412
|
+
authHeaderName: nullishToOptional(z215.string()),
|
|
6413
|
+
authHeaderValue: nullishToOptional(z215.string()),
|
|
6414
|
+
accessToken: nullishToOptional(z215.string()),
|
|
6415
|
+
username: nullishToOptional(z215.string()),
|
|
6416
|
+
password: nullishToOptional(z215.string())
|
|
6417
|
+
});
|
|
6418
|
+
var DTOUpdateRegistryOutput = z215.object({
|
|
6419
|
+
npmRegistrySettings: DTONpmRegistryConfig
|
|
6420
|
+
});
|
|
6421
|
+
|
|
6422
|
+
// src/api/dto/workspaces/workspace.ts
|
|
6423
|
+
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6424
|
+
var DTOWorkspace = z216.object({
|
|
6425
|
+
id: z216.string(),
|
|
6426
|
+
profile: DTOWorkspaceProfile,
|
|
6427
|
+
subscription: Subscription,
|
|
6428
|
+
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6429
|
+
});
|
|
6430
|
+
var DTOWorkspaceCreateInput = z216.object({
|
|
6431
|
+
name: z216.string()
|
|
6432
|
+
});
|
|
6433
|
+
var DTOWorkspaceResponse = z216.object({
|
|
6434
|
+
workspace: DTOWorkspace
|
|
6435
|
+
});
|
|
6436
|
+
|
|
6437
|
+
// src/api/dto/workspaces/membership.ts
|
|
6438
|
+
var DTOWorkspaceRole = z217.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6439
|
+
var DTOUserWorkspaceMembership = z217.object({
|
|
6440
|
+
// Workspace the user is a member of
|
|
6441
|
+
workspace: DTOWorkspace,
|
|
6442
|
+
// Assigned role the user has in the workspace
|
|
6443
|
+
role: DTOWorkspaceRole,
|
|
6444
|
+
// Role that determines actual permissions the user has in the workspace
|
|
6445
|
+
// E.g. this is different from the default role when editors are downgraded to viewers
|
|
6446
|
+
// when a workspace's subscription is downgraded to free tier
|
|
6447
|
+
effectiveRole: DTOWorkspaceRole
|
|
6448
|
+
});
|
|
6449
|
+
var DTOWorkspaceMember = z217.object({
|
|
6450
|
+
user: User,
|
|
6451
|
+
role: WorkspaceRoleSchema,
|
|
6452
|
+
effectiveRole: WorkspaceRoleSchema
|
|
6453
|
+
});
|
|
6454
|
+
var DTOUserWorkspaceMembershipsResponse = z217.object({
|
|
6455
|
+
membership: z217.array(DTOUserWorkspaceMembership)
|
|
6456
|
+
});
|
|
6457
|
+
var DTOWorkspaceMembersListResponse = z217.object({
|
|
6458
|
+
members: z217.array(DTOWorkspaceMember)
|
|
6459
|
+
});
|
|
6460
|
+
|
|
6461
|
+
// src/api/dto/workspaces/untyped-data.ts
|
|
6462
|
+
import { z as z218 } from "zod";
|
|
6463
|
+
var DTOWorkspaceUntypedData = WorkspaceUntypedData;
|
|
6464
|
+
var DTOWorkspaceUntypedDataListResponse = z218.object({
|
|
6465
|
+
data: DTOWorkspaceUntypedData.array()
|
|
6466
|
+
});
|
|
6467
|
+
var DTOWorkspaceUntypedDataResponse = z218.object({
|
|
6468
|
+
data: DTOWorkspaceUntypedData
|
|
6469
|
+
});
|
|
6470
|
+
var DTOWorkspaceUntypedDataCreatePayload = z218.object({
|
|
6471
|
+
value: z218.unknown()
|
|
6472
|
+
});
|
|
6473
|
+
var DTOWorkspaceUntypedDataUpdatePayload = z218.object({
|
|
6474
|
+
value: z218.unknown()
|
|
6475
|
+
});
|
|
6476
|
+
|
|
6477
|
+
// src/api/dto/design-systems/user-design-systems.ts
|
|
6478
|
+
var DTOUserDesignSystemsResponse = z219.object({
|
|
6479
|
+
designSystems: DTODesignSystem.array(),
|
|
6480
|
+
workspaces: DTOWorkspace.array()
|
|
6201
6481
|
});
|
|
6202
|
-
var DTOStorybookEntryListResponse = z210.object({ entries: z210.array(DTOStorybookEntry) });
|
|
6203
|
-
var DTOStorybookEntryResponse = z210.object({ entry: DTOStorybookEntry });
|
|
6204
6482
|
|
|
6205
6483
|
// src/api/dto/design-systems/version-room.ts
|
|
6206
|
-
import { z as
|
|
6207
|
-
var DTODesignSystemVersionRoom =
|
|
6208
|
-
id:
|
|
6484
|
+
import { z as z220 } from "zod";
|
|
6485
|
+
var DTODesignSystemVersionRoom = z220.object({
|
|
6486
|
+
id: z220.string()
|
|
6209
6487
|
});
|
|
6210
|
-
var DTODesignSystemVersionRoomResponse =
|
|
6488
|
+
var DTODesignSystemVersionRoomResponse = z220.object({
|
|
6211
6489
|
room: DTODesignSystemVersionRoom
|
|
6212
6490
|
});
|
|
6213
6491
|
|
|
6214
6492
|
// src/api/dto/design-systems/version.ts
|
|
6215
|
-
import { z as
|
|
6493
|
+
import { z as z233 } from "zod";
|
|
6216
6494
|
|
|
6217
6495
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
6218
|
-
import { z as
|
|
6496
|
+
import { z as z221 } from "zod";
|
|
6219
6497
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
6220
6498
|
id: true,
|
|
6221
6499
|
workspaceId: true,
|
|
@@ -6227,56 +6505,56 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
6227
6505
|
}).extend({
|
|
6228
6506
|
meta: ObjectMeta.partial().optional()
|
|
6229
6507
|
});
|
|
6230
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
6508
|
+
var DTODesignSystemUpdateAccessModeInput = z221.object({
|
|
6231
6509
|
accessMode: DesignSystemAccessMode,
|
|
6232
|
-
retain:
|
|
6233
|
-
userIds:
|
|
6234
|
-
inviteIds:
|
|
6510
|
+
retain: z221.object({
|
|
6511
|
+
userIds: z221.string().array(),
|
|
6512
|
+
inviteIds: z221.string().array()
|
|
6235
6513
|
}).optional()
|
|
6236
6514
|
});
|
|
6237
6515
|
|
|
6238
6516
|
// src/api/payloads/design-systems/version.ts
|
|
6239
|
-
import { z as
|
|
6240
|
-
var ObjectMeta2 =
|
|
6241
|
-
name:
|
|
6242
|
-
description:
|
|
6517
|
+
import { z as z222 } from "zod";
|
|
6518
|
+
var ObjectMeta2 = z222.object({
|
|
6519
|
+
name: z222.string().max(150).optional(),
|
|
6520
|
+
description: z222.string().max(2e3).optional()
|
|
6243
6521
|
});
|
|
6244
6522
|
function validateDesignSystemVersion(version) {
|
|
6245
6523
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
6246
6524
|
return urlCompliantRegex.test(version);
|
|
6247
6525
|
}
|
|
6248
|
-
var DTOCreateVersionInput =
|
|
6526
|
+
var DTOCreateVersionInput = z222.object({
|
|
6249
6527
|
meta: ObjectMeta2,
|
|
6250
|
-
version:
|
|
6528
|
+
version: z222.string().refine(validateDesignSystemVersion, {
|
|
6251
6529
|
message: "Invalid semantic versioning format"
|
|
6252
6530
|
}),
|
|
6253
|
-
changeLog:
|
|
6531
|
+
changeLog: z222.string().optional()
|
|
6254
6532
|
});
|
|
6255
|
-
var DTOUpdateVersionInput =
|
|
6533
|
+
var DTOUpdateVersionInput = z222.object({
|
|
6256
6534
|
meta: ObjectMeta2,
|
|
6257
|
-
version:
|
|
6535
|
+
version: z222.string(),
|
|
6258
6536
|
// required for PUT, but not editable
|
|
6259
|
-
changeLog:
|
|
6537
|
+
changeLog: z222.string()
|
|
6260
6538
|
});
|
|
6261
6539
|
|
|
6262
6540
|
// src/api/payloads/documentation/analytics.ts
|
|
6263
|
-
import { z as
|
|
6264
|
-
var DTODocumentationAnalyticsTimeFrameComparison =
|
|
6265
|
-
referencePeriod:
|
|
6266
|
-
start:
|
|
6267
|
-
end:
|
|
6541
|
+
import { z as z223 } from "zod";
|
|
6542
|
+
var DTODocumentationAnalyticsTimeFrameComparison = z223.object({
|
|
6543
|
+
referencePeriod: z223.object({
|
|
6544
|
+
start: z223.coerce.date(),
|
|
6545
|
+
end: z223.coerce.date().optional()
|
|
6268
6546
|
}),
|
|
6269
|
-
baselinePeriod:
|
|
6270
|
-
start:
|
|
6271
|
-
end:
|
|
6547
|
+
baselinePeriod: z223.object({
|
|
6548
|
+
start: z223.coerce.date(),
|
|
6549
|
+
end: z223.coerce.date().optional()
|
|
6272
6550
|
})
|
|
6273
6551
|
});
|
|
6274
|
-
var DTODocumentationAnalyticsDiffPayload =
|
|
6275
|
-
timeFrames:
|
|
6552
|
+
var DTODocumentationAnalyticsDiffPayload = z223.object({
|
|
6553
|
+
timeFrames: z223.array(DTODocumentationAnalyticsTimeFrameComparison)
|
|
6276
6554
|
});
|
|
6277
6555
|
|
|
6278
6556
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6279
|
-
import { z as
|
|
6557
|
+
import { z as z224 } from "zod";
|
|
6280
6558
|
|
|
6281
6559
|
// src/api/dto/documentation/block-definition.ts
|
|
6282
6560
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -6288,76 +6566,76 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
6288
6566
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
6289
6567
|
|
|
6290
6568
|
// src/api/payloads/documentation/block-definitions.ts
|
|
6291
|
-
var DTOGetBlockDefinitionsOutput =
|
|
6292
|
-
definitions:
|
|
6569
|
+
var DTOGetBlockDefinitionsOutput = z224.object({
|
|
6570
|
+
definitions: z224.array(DTOPageBlockDefinition)
|
|
6293
6571
|
});
|
|
6294
6572
|
|
|
6295
6573
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
6296
|
-
import { z as
|
|
6297
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
6298
|
-
environment:
|
|
6574
|
+
import { z as z225 } from "zod";
|
|
6575
|
+
var DTODocumentationPublishTypeQueryParams = z225.object({
|
|
6576
|
+
environment: z225.enum(["Live", "Preview"])
|
|
6299
6577
|
});
|
|
6300
6578
|
|
|
6301
6579
|
// src/api/payloads/export/pipeline.ts
|
|
6302
|
-
import { z as
|
|
6580
|
+
import { z as z227 } from "zod";
|
|
6303
6581
|
|
|
6304
6582
|
// src/api/dto/export/exporter-property.ts
|
|
6305
|
-
import { z as
|
|
6306
|
-
var PrimitiveValue2 =
|
|
6307
|
-
var ArrayValue2 =
|
|
6308
|
-
var ObjectValue2 =
|
|
6583
|
+
import { z as z226 } from "zod";
|
|
6584
|
+
var PrimitiveValue2 = z226.number().or(z226.boolean()).or(z226.string());
|
|
6585
|
+
var ArrayValue2 = z226.array(z226.string());
|
|
6586
|
+
var ObjectValue2 = z226.record(z226.string());
|
|
6309
6587
|
var DTOExporterPropertyValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
6310
|
-
var DTOExporterPropertyType =
|
|
6311
|
-
var PropertyDefinitionBase2 =
|
|
6312
|
-
key:
|
|
6313
|
-
title:
|
|
6314
|
-
description:
|
|
6315
|
-
category:
|
|
6316
|
-
dependsOn:
|
|
6317
|
-
});
|
|
6318
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
6319
|
-
label:
|
|
6320
|
-
description:
|
|
6588
|
+
var DTOExporterPropertyType = z226.enum(["Enum", "Boolean", "String", "Number", "Array", "Object", "Code"]);
|
|
6589
|
+
var PropertyDefinitionBase2 = z226.object({
|
|
6590
|
+
key: z226.string(),
|
|
6591
|
+
title: z226.string(),
|
|
6592
|
+
description: z226.string(),
|
|
6593
|
+
category: z226.string().optional(),
|
|
6594
|
+
dependsOn: z226.record(z226.boolean()).optional()
|
|
6595
|
+
});
|
|
6596
|
+
var DTOExporterPropertyDefinitionEnumOption = z226.object({
|
|
6597
|
+
label: z226.string(),
|
|
6598
|
+
description: z226.string()
|
|
6321
6599
|
});
|
|
6322
6600
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
6323
|
-
type:
|
|
6324
|
-
options:
|
|
6325
|
-
default:
|
|
6601
|
+
type: z226.literal(DTOExporterPropertyType.Enum.Enum),
|
|
6602
|
+
options: z226.record(DTOExporterPropertyDefinitionEnumOption),
|
|
6603
|
+
default: z226.string()
|
|
6326
6604
|
});
|
|
6327
6605
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
6328
|
-
type:
|
|
6329
|
-
default:
|
|
6606
|
+
type: z226.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
6607
|
+
default: z226.boolean()
|
|
6330
6608
|
});
|
|
6331
6609
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
6332
|
-
type:
|
|
6333
|
-
default:
|
|
6334
|
-
isMultiline:
|
|
6610
|
+
type: z226.literal(DTOExporterPropertyType.Enum.String),
|
|
6611
|
+
default: z226.string(),
|
|
6612
|
+
isMultiline: z226.boolean().optional()
|
|
6335
6613
|
});
|
|
6336
6614
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
6337
|
-
type:
|
|
6338
|
-
default:
|
|
6615
|
+
type: z226.literal(DTOExporterPropertyType.Enum.Number),
|
|
6616
|
+
default: z226.number()
|
|
6339
6617
|
});
|
|
6340
6618
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
6341
|
-
type:
|
|
6619
|
+
type: z226.literal(DTOExporterPropertyType.Enum.Array),
|
|
6342
6620
|
default: ArrayValue2
|
|
6343
6621
|
});
|
|
6344
6622
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
6345
|
-
type:
|
|
6623
|
+
type: z226.literal(DTOExporterPropertyType.Enum.Object),
|
|
6346
6624
|
default: ObjectValue2,
|
|
6347
|
-
allowedKeys:
|
|
6348
|
-
options:
|
|
6349
|
-
type:
|
|
6625
|
+
allowedKeys: z226.object({
|
|
6626
|
+
options: z226.string().array(),
|
|
6627
|
+
type: z226.string()
|
|
6350
6628
|
}).optional(),
|
|
6351
|
-
allowedValues:
|
|
6352
|
-
type:
|
|
6629
|
+
allowedValues: z226.object({
|
|
6630
|
+
type: z226.string()
|
|
6353
6631
|
}).optional()
|
|
6354
6632
|
});
|
|
6355
6633
|
var DTOExporterPropertyDefinitionCode = PropertyDefinitionBase2.extend({
|
|
6356
|
-
type:
|
|
6357
|
-
language:
|
|
6358
|
-
default:
|
|
6634
|
+
type: z226.literal(DTOExporterPropertyType.Enum.Code),
|
|
6635
|
+
language: z226.string(),
|
|
6636
|
+
default: z226.string()
|
|
6359
6637
|
});
|
|
6360
|
-
var DTOExporterPropertyDefinition =
|
|
6638
|
+
var DTOExporterPropertyDefinition = z226.discriminatedUnion("type", [
|
|
6361
6639
|
DTOExporterPropertyDefinitionEnum,
|
|
6362
6640
|
DTOExporterPropertyDefinitionBoolean,
|
|
6363
6641
|
DTOExporterPropertyDefinitionString,
|
|
@@ -6366,84 +6644,84 @@ var DTOExporterPropertyDefinition = z217.discriminatedUnion("type", [
|
|
|
6366
6644
|
DTOExporterPropertyDefinitionObject,
|
|
6367
6645
|
DTOExporterPropertyDefinitionCode
|
|
6368
6646
|
]);
|
|
6369
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
6647
|
+
var DTOExporterPropertyDefinitionsResponse = z226.object({
|
|
6370
6648
|
properties: DTOExporterPropertyDefinition.array()
|
|
6371
6649
|
});
|
|
6372
|
-
var DTOExporterPropertyValueMap =
|
|
6650
|
+
var DTOExporterPropertyValueMap = z226.record(DTOExporterPropertyValue);
|
|
6373
6651
|
|
|
6374
6652
|
// src/api/payloads/export/pipeline.ts
|
|
6375
|
-
var GitDestinationOptions =
|
|
6376
|
-
branch:
|
|
6377
|
-
commitMessage:
|
|
6378
|
-
commitAuthorName:
|
|
6379
|
-
commitAuthorEmail:
|
|
6380
|
-
pullRequestTitle:
|
|
6381
|
-
pullRequestDescription:
|
|
6382
|
-
relativePath:
|
|
6383
|
-
purgeDirectory:
|
|
6384
|
-
});
|
|
6385
|
-
var DTOPipelineCreateBody =
|
|
6386
|
-
name:
|
|
6387
|
-
exporterId:
|
|
6388
|
-
designSystemId:
|
|
6389
|
-
isEnabled:
|
|
6653
|
+
var GitDestinationOptions = z227.object({
|
|
6654
|
+
branch: z227.string().min(1).optional(),
|
|
6655
|
+
commitMessage: z227.string().min(1).optional(),
|
|
6656
|
+
commitAuthorName: z227.string().min(1).optional(),
|
|
6657
|
+
commitAuthorEmail: z227.string().email().optional(),
|
|
6658
|
+
pullRequestTitle: z227.string().min(1).optional(),
|
|
6659
|
+
pullRequestDescription: z227.string().min(1).optional(),
|
|
6660
|
+
relativePath: z227.string().optional(),
|
|
6661
|
+
purgeDirectory: z227.boolean().optional()
|
|
6662
|
+
});
|
|
6663
|
+
var DTOPipelineCreateBody = z227.object({
|
|
6664
|
+
name: z227.string(),
|
|
6665
|
+
exporterId: z227.string(),
|
|
6666
|
+
designSystemId: z227.string(),
|
|
6667
|
+
isEnabled: z227.boolean(),
|
|
6390
6668
|
eventType: PipelineEventType,
|
|
6391
|
-
brandPersistentId:
|
|
6392
|
-
themePersistentId:
|
|
6393
|
-
themePersistentIds:
|
|
6669
|
+
brandPersistentId: z227.string().optional(),
|
|
6670
|
+
themePersistentId: z227.string().optional(),
|
|
6671
|
+
themePersistentIds: z227.string().array().optional(),
|
|
6394
6672
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6395
6673
|
destination: PipelineDestinationType.optional(),
|
|
6396
6674
|
gitQuery: GitObjectsQuery,
|
|
6397
|
-
destinations:
|
|
6675
|
+
destinations: z227.object({
|
|
6398
6676
|
s3: ExporterDestinationS3.nullish(),
|
|
6399
6677
|
azure: ExporterDestinationAzure.nullish(),
|
|
6400
6678
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6401
6679
|
github: ExporterDestinationGithub.nullish(),
|
|
6402
6680
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6403
6681
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6404
|
-
webhookUrl:
|
|
6682
|
+
webhookUrl: z227.string().nullish()
|
|
6405
6683
|
})
|
|
6406
6684
|
});
|
|
6407
|
-
var DTOPipelineUpdateBody =
|
|
6408
|
-
exporterId:
|
|
6409
|
-
name:
|
|
6410
|
-
isEnabled:
|
|
6685
|
+
var DTOPipelineUpdateBody = z227.object({
|
|
6686
|
+
exporterId: z227.string().optional(),
|
|
6687
|
+
name: z227.string().optional(),
|
|
6688
|
+
isEnabled: z227.boolean().optional(),
|
|
6411
6689
|
eventType: PipelineEventType.optional(),
|
|
6412
|
-
brandPersistentId:
|
|
6413
|
-
themePersistentId:
|
|
6414
|
-
themePersistentIds:
|
|
6690
|
+
brandPersistentId: z227.string().optional(),
|
|
6691
|
+
themePersistentId: z227.string().optional(),
|
|
6692
|
+
themePersistentIds: z227.string().array().optional(),
|
|
6415
6693
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6416
6694
|
destination: PipelineDestinationType.optional(),
|
|
6417
6695
|
gitQuery: GitObjectsQuery.optional(),
|
|
6418
|
-
destinations:
|
|
6696
|
+
destinations: z227.object({
|
|
6419
6697
|
s3: ExporterDestinationS3.nullish(),
|
|
6420
6698
|
azure: ExporterDestinationAzure.nullish(),
|
|
6421
6699
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
6422
6700
|
github: ExporterDestinationGithub.nullish(),
|
|
6423
6701
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
6424
6702
|
documentation: ExporterDestinationDocs.nullish(),
|
|
6425
|
-
webhookUrl:
|
|
6703
|
+
webhookUrl: z227.string().nullish()
|
|
6426
6704
|
}).optional(),
|
|
6427
6705
|
gitDestinationOptions: GitDestinationOptions.partial().optional()
|
|
6428
6706
|
});
|
|
6429
|
-
var DTOPipelineTriggerBody =
|
|
6430
|
-
designSystemVersionId:
|
|
6707
|
+
var DTOPipelineTriggerBody = z227.object({
|
|
6708
|
+
designSystemVersionId: z227.string()
|
|
6431
6709
|
});
|
|
6432
6710
|
|
|
6433
6711
|
// src/api/payloads/liveblocks/auth.ts
|
|
6434
|
-
import { z as
|
|
6435
|
-
var DTOLiveblocksAuthRequest =
|
|
6436
|
-
room:
|
|
6712
|
+
import { z as z228 } from "zod";
|
|
6713
|
+
var DTOLiveblocksAuthRequest = z228.object({
|
|
6714
|
+
room: z228.string().optional()
|
|
6437
6715
|
});
|
|
6438
6716
|
|
|
6439
6717
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
6440
|
-
import { z as
|
|
6441
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
6718
|
+
import { z as z229 } from "zod";
|
|
6719
|
+
var DTOUpdateUserNotificationSettingsPayload = z229.object({
|
|
6442
6720
|
notificationSettings: UserNotificationSettings
|
|
6443
6721
|
});
|
|
6444
|
-
var DTOUserNotificationSettingsResponse =
|
|
6445
|
-
userId:
|
|
6446
|
-
workspaceId:
|
|
6722
|
+
var DTOUserNotificationSettingsResponse = z229.object({
|
|
6723
|
+
userId: z229.string(),
|
|
6724
|
+
workspaceId: z229.string(),
|
|
6447
6725
|
notificationSettings: UserNotificationSettings
|
|
6448
6726
|
});
|
|
6449
6727
|
|
|
@@ -6451,13 +6729,13 @@ var DTOUserNotificationSettingsResponse = z220.object({
|
|
|
6451
6729
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
6452
6730
|
|
|
6453
6731
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
6454
|
-
import { z as
|
|
6455
|
-
var DTOTransferOwnershipPayload =
|
|
6456
|
-
newOwnerId:
|
|
6732
|
+
import { z as z230 } from "zod";
|
|
6733
|
+
var DTOTransferOwnershipPayload = z230.object({
|
|
6734
|
+
newOwnerId: z230.string()
|
|
6457
6735
|
});
|
|
6458
6736
|
|
|
6459
6737
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
6460
|
-
import { z as
|
|
6738
|
+
import { z as z231 } from "zod";
|
|
6461
6739
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
6462
6740
|
function validateSsoPayload(ssoPayload) {
|
|
6463
6741
|
const keys = [];
|
|
@@ -6480,21 +6758,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
6480
6758
|
keys
|
|
6481
6759
|
};
|
|
6482
6760
|
}
|
|
6483
|
-
var NpmRegistryInput =
|
|
6484
|
-
enabledScopes:
|
|
6485
|
-
customRegistryUrl:
|
|
6486
|
-
bypassProxy:
|
|
6487
|
-
npmProxyRegistryConfigId:
|
|
6488
|
-
npmProxyVersion:
|
|
6489
|
-
registryType:
|
|
6490
|
-
authType:
|
|
6491
|
-
authHeaderName:
|
|
6492
|
-
authHeaderValue:
|
|
6493
|
-
accessToken:
|
|
6494
|
-
username:
|
|
6495
|
-
password:
|
|
6496
|
-
});
|
|
6497
|
-
var WorkspaceConfigurationPayload =
|
|
6761
|
+
var NpmRegistryInput = z231.object({
|
|
6762
|
+
enabledScopes: z231.array(z231.string()),
|
|
6763
|
+
customRegistryUrl: z231.string().optional(),
|
|
6764
|
+
bypassProxy: z231.boolean().optional(),
|
|
6765
|
+
npmProxyRegistryConfigId: z231.string().optional(),
|
|
6766
|
+
npmProxyVersion: z231.number().optional(),
|
|
6767
|
+
registryType: z231.string(),
|
|
6768
|
+
authType: z231.string(),
|
|
6769
|
+
authHeaderName: z231.string(),
|
|
6770
|
+
authHeaderValue: z231.string(),
|
|
6771
|
+
accessToken: z231.string(),
|
|
6772
|
+
username: z231.string(),
|
|
6773
|
+
password: z231.string()
|
|
6774
|
+
});
|
|
6775
|
+
var WorkspaceConfigurationPayload = z231.object({
|
|
6498
6776
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
6499
6777
|
sso: SsoProvider.partial().optional(),
|
|
6500
6778
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -6502,262 +6780,107 @@ var WorkspaceConfigurationPayload = z222.object({
|
|
|
6502
6780
|
});
|
|
6503
6781
|
|
|
6504
6782
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
6505
|
-
import { z as
|
|
6506
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
6783
|
+
import { z as z232 } from "zod";
|
|
6784
|
+
var DTOWorkspaceIntegrationOauthInput = z232.object({
|
|
6507
6785
|
type: IntegrationType
|
|
6508
6786
|
});
|
|
6509
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
6787
|
+
var DTOWorkspaceIntegrationPATInput = z232.object({
|
|
6510
6788
|
type: IntegrationType,
|
|
6511
6789
|
token: IntegrationToken
|
|
6512
6790
|
});
|
|
6513
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
6514
|
-
organization:
|
|
6791
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z232.object({
|
|
6792
|
+
organization: z232.string().optional(),
|
|
6515
6793
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
6516
|
-
project:
|
|
6794
|
+
project: z232.string().optional(),
|
|
6517
6795
|
// Only for Bitbucket and Azure
|
|
6518
|
-
repository:
|
|
6796
|
+
repository: z232.string().optional(),
|
|
6519
6797
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
6520
|
-
branch:
|
|
6798
|
+
branch: z232.string().optional(),
|
|
6521
6799
|
// For all providers, useful for PR creations.
|
|
6522
|
-
user:
|
|
6800
|
+
user: z232.string().optional()
|
|
6523
6801
|
// Only for Gitlab User Repositories
|
|
6524
6802
|
});
|
|
6525
6803
|
|
|
6526
6804
|
// src/api/dto/design-systems/version.ts
|
|
6527
|
-
var DTODesignSystemVersion =
|
|
6528
|
-
id:
|
|
6529
|
-
createdAt:
|
|
6530
|
-
meta: ObjectMeta,
|
|
6531
|
-
version: z224.string(),
|
|
6532
|
-
isReadonly: z224.boolean(),
|
|
6533
|
-
changeLog: z224.string(),
|
|
6534
|
-
designSystemId: z224.string()
|
|
6535
|
-
});
|
|
6536
|
-
var DTODesignSystemVersionsListResponse = z224.object({
|
|
6537
|
-
designSystemVersions: z224.array(DTODesignSystemVersion)
|
|
6538
|
-
});
|
|
6539
|
-
var DTODesignSystemVersionGetResponse = z224.object({
|
|
6540
|
-
designSystemVersion: DTODesignSystemVersion
|
|
6541
|
-
});
|
|
6542
|
-
var DTODesignSystemVersionCreationResponse = z224.object({
|
|
6543
|
-
meta: ObjectMeta,
|
|
6544
|
-
version: z224.string(),
|
|
6545
|
-
changeLog: z224.string(),
|
|
6546
|
-
isReadOnly: z224.boolean(),
|
|
6547
|
-
designSystemId: z224.string(),
|
|
6548
|
-
jobId: z224.string()
|
|
6549
|
-
});
|
|
6550
|
-
var VersionSQSPayload = z224.object({
|
|
6551
|
-
jobId: z224.string(),
|
|
6552
|
-
designSystemId: z224.string(),
|
|
6553
|
-
input: DTOCreateVersionInput
|
|
6554
|
-
});
|
|
6555
|
-
var DTODesignSystemVersionJobsResponse = z224.object({
|
|
6556
|
-
jobs: z224.array(VersionCreationJob)
|
|
6557
|
-
});
|
|
6558
|
-
var DTODesignSystemVersionJobStatusResponse = z224.object({
|
|
6559
|
-
job: VersionCreationJob
|
|
6560
|
-
});
|
|
6561
|
-
|
|
6562
|
-
// src/api/dto/design-systems/view.ts
|
|
6563
|
-
import { z as z225 } from "zod";
|
|
6564
|
-
var DTOElementViewColumnSharedAttributes = z225.object({
|
|
6565
|
-
id: z225.string(),
|
|
6566
|
-
persistentId: z225.string(),
|
|
6567
|
-
width: z225.number()
|
|
6568
|
-
});
|
|
6569
|
-
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6570
|
-
type: z225.literal("BaseProperty"),
|
|
6571
|
-
basePropertyType: ElementViewBaseColumnType
|
|
6572
|
-
});
|
|
6573
|
-
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6574
|
-
type: z225.literal("PropertyDefinition"),
|
|
6575
|
-
propertyDefinitionId: z225.string()
|
|
6576
|
-
});
|
|
6577
|
-
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6578
|
-
type: z225.literal("Theme"),
|
|
6579
|
-
themeId: z225.string()
|
|
6580
|
-
});
|
|
6581
|
-
var DTOElementViewColumn = z225.discriminatedUnion("type", [
|
|
6582
|
-
DTOElementViewBasePropertyColumn,
|
|
6583
|
-
DTOElementViewPropertyDefinitionColumn,
|
|
6584
|
-
DTOElementViewThemeColumn
|
|
6585
|
-
]);
|
|
6586
|
-
var DTOElementView = z225.object({
|
|
6805
|
+
var DTODesignSystemVersion = z233.object({
|
|
6806
|
+
id: z233.string(),
|
|
6807
|
+
createdAt: z233.coerce.date(),
|
|
6587
6808
|
meta: ObjectMeta,
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
columns: z225.array(DTOElementViewColumn)
|
|
6593
|
-
});
|
|
6594
|
-
var DTOElementViewsListResponse = z225.object({
|
|
6595
|
-
elementDataViews: z225.array(DTOElementView)
|
|
6596
|
-
});
|
|
6597
|
-
|
|
6598
|
-
// src/api/dto/workspaces/git.ts
|
|
6599
|
-
import { z as z226 } from "zod";
|
|
6600
|
-
var DTOGitOrganization = z226.object({
|
|
6601
|
-
id: z226.string(),
|
|
6602
|
-
name: z226.string(),
|
|
6603
|
-
url: z226.string(),
|
|
6604
|
-
slug: z226.string()
|
|
6605
|
-
});
|
|
6606
|
-
var DTOGitProject = z226.object({
|
|
6607
|
-
id: z226.string(),
|
|
6608
|
-
name: z226.string(),
|
|
6609
|
-
url: z226.string(),
|
|
6610
|
-
slug: z226.string()
|
|
6611
|
-
});
|
|
6612
|
-
var DTOGitRepository = z226.object({
|
|
6613
|
-
id: z226.string(),
|
|
6614
|
-
name: z226.string(),
|
|
6615
|
-
url: z226.string(),
|
|
6616
|
-
slug: z226.string(),
|
|
6617
|
-
defaultBranch: z226.string().optional()
|
|
6618
|
-
});
|
|
6619
|
-
var DTOGitBranch = z226.object({
|
|
6620
|
-
name: z226.string(),
|
|
6621
|
-
lastCommitId: z226.string()
|
|
6622
|
-
});
|
|
6623
|
-
|
|
6624
|
-
// src/api/dto/workspaces/integrations.ts
|
|
6625
|
-
import { z as z227 } from "zod";
|
|
6626
|
-
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6627
|
-
accessToken: true,
|
|
6628
|
-
refreshToken: true
|
|
6629
|
-
});
|
|
6630
|
-
var DTOIntegration = z227.object({
|
|
6631
|
-
id: z227.string(),
|
|
6632
|
-
workspaceId: z227.string(),
|
|
6633
|
-
type: ExtendedIntegrationType,
|
|
6634
|
-
createdAt: z227.coerce.date(),
|
|
6635
|
-
integrationCredentials: z227.array(DTOIntegrationCredentials).optional(),
|
|
6636
|
-
integrationDesignSystems: z227.array(IntegrationDesignSystem).optional()
|
|
6637
|
-
});
|
|
6638
|
-
var DTOIntegrationOAuthGetResponse = z227.object({
|
|
6639
|
-
url: z227.string()
|
|
6640
|
-
});
|
|
6641
|
-
var DTOIntegrationPostResponse = z227.object({
|
|
6642
|
-
integration: DTOIntegration
|
|
6643
|
-
});
|
|
6644
|
-
var DTOIntegrationsGetListResponse = z227.object({
|
|
6645
|
-
integrations: DTOIntegration.array()
|
|
6646
|
-
});
|
|
6647
|
-
|
|
6648
|
-
// src/api/dto/workspaces/invitations.ts
|
|
6649
|
-
import { z as z228 } from "zod";
|
|
6650
|
-
var DTOWorkspaceInvitationInput = z228.object({
|
|
6651
|
-
email: z228.string().email(),
|
|
6652
|
-
role: WorkspaceRoleSchema
|
|
6653
|
-
});
|
|
6654
|
-
var DTOWorkspaceInvitationsListInput = z228.object({
|
|
6655
|
-
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6656
|
-
designSystemId: z228.string().optional()
|
|
6657
|
-
});
|
|
6658
|
-
var DTOWorkspaceInvitationsResponse = z228.object({
|
|
6659
|
-
invitations: WorkspaceInvitation.array()
|
|
6660
|
-
});
|
|
6661
|
-
var DTOWorkspaceInviteUpdate = z228.object({
|
|
6662
|
-
role: WorkspaceRoleSchema
|
|
6663
|
-
});
|
|
6664
|
-
var DTOWorkspaceInvitationUpdateResponse = z228.object({
|
|
6665
|
-
invitation: WorkspaceInvitation
|
|
6666
|
-
});
|
|
6667
|
-
|
|
6668
|
-
// src/api/dto/workspaces/membership.ts
|
|
6669
|
-
import { z as z231 } from "zod";
|
|
6670
|
-
|
|
6671
|
-
// src/api/dto/workspaces/workspace.ts
|
|
6672
|
-
import { z as z230 } from "zod";
|
|
6673
|
-
|
|
6674
|
-
// src/api/dto/workspaces/npm-registry.ts
|
|
6675
|
-
import { z as z229 } from "zod";
|
|
6676
|
-
var DTONpmRegistryConfigConstants = {
|
|
6677
|
-
passwordPlaceholder: "redacted"
|
|
6678
|
-
};
|
|
6679
|
-
var DTONpmRegistryConfig = z229.object({
|
|
6680
|
-
// Registry basic configuration
|
|
6681
|
-
registryType: NpmRegistryType,
|
|
6682
|
-
registryUrl: z229.string(),
|
|
6683
|
-
customRegistryUrl: z229.string().optional(),
|
|
6684
|
-
// URL of Supernova NPM packages proxy
|
|
6685
|
-
proxyUrl: z229.string(),
|
|
6686
|
-
// Auth configuration
|
|
6687
|
-
authType: NpmRegistryAuthType,
|
|
6688
|
-
accessToken: z229.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6689
|
-
username: z229.string().optional(),
|
|
6690
|
-
password: z229.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6691
|
-
// NPM package scopes for whih the proxy should be enabled
|
|
6692
|
-
enabledScopes: z229.array(z229.string()),
|
|
6693
|
-
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6694
|
-
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6695
|
-
bypassProxy: z229.boolean()
|
|
6696
|
-
});
|
|
6697
|
-
|
|
6698
|
-
// src/api/dto/workspaces/workspace.ts
|
|
6699
|
-
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6700
|
-
var DTOWorkspace = z230.object({
|
|
6701
|
-
id: z230.string(),
|
|
6702
|
-
profile: DTOWorkspaceProfile,
|
|
6703
|
-
subscription: Subscription,
|
|
6704
|
-
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6705
|
-
});
|
|
6706
|
-
var DTOWorkspaceCreateInput = z230.object({
|
|
6707
|
-
name: z230.string()
|
|
6708
|
-
});
|
|
6709
|
-
var DTOWorkspaceResponse = z230.object({
|
|
6710
|
-
workspace: DTOWorkspace
|
|
6711
|
-
});
|
|
6712
|
-
|
|
6713
|
-
// src/api/dto/workspaces/membership.ts
|
|
6714
|
-
var DTOWorkspaceRole = z231.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6715
|
-
var DTOUserWorkspaceMembership = z231.object({
|
|
6716
|
-
// Workspace the user is a member of
|
|
6717
|
-
workspace: DTOWorkspace,
|
|
6718
|
-
// Assigned role the user has in the workspace
|
|
6719
|
-
role: DTOWorkspaceRole,
|
|
6720
|
-
// Role that determines actual permissions the user has in the workspace
|
|
6721
|
-
// E.g. this is different from the default role when editors are downgraded to viewers
|
|
6722
|
-
// when a workspace's subscription is downgraded to free tier
|
|
6723
|
-
effectiveRole: DTOWorkspaceRole
|
|
6809
|
+
version: z233.string(),
|
|
6810
|
+
isReadonly: z233.boolean(),
|
|
6811
|
+
changeLog: z233.string(),
|
|
6812
|
+
designSystemId: z233.string()
|
|
6724
6813
|
});
|
|
6725
|
-
var
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6814
|
+
var DTODesignSystemVersionsListResponse = z233.object({
|
|
6815
|
+
designSystemVersions: z233.array(DTODesignSystemVersion)
|
|
6816
|
+
});
|
|
6817
|
+
var DTODesignSystemVersionGetResponse = z233.object({
|
|
6818
|
+
designSystemVersion: DTODesignSystemVersion
|
|
6819
|
+
});
|
|
6820
|
+
var DTODesignSystemVersionCreationResponse = z233.object({
|
|
6821
|
+
meta: ObjectMeta,
|
|
6822
|
+
version: z233.string(),
|
|
6823
|
+
changeLog: z233.string(),
|
|
6824
|
+
isReadOnly: z233.boolean(),
|
|
6825
|
+
designSystemId: z233.string(),
|
|
6826
|
+
jobId: z233.string()
|
|
6827
|
+
});
|
|
6828
|
+
var VersionSQSPayload = z233.object({
|
|
6829
|
+
jobId: z233.string(),
|
|
6830
|
+
designSystemId: z233.string(),
|
|
6831
|
+
input: DTOCreateVersionInput
|
|
6729
6832
|
});
|
|
6730
|
-
var
|
|
6731
|
-
|
|
6833
|
+
var DTODesignSystemVersionJobsResponse = z233.object({
|
|
6834
|
+
jobs: z233.array(VersionCreationJob)
|
|
6732
6835
|
});
|
|
6733
|
-
var
|
|
6734
|
-
|
|
6836
|
+
var DTODesignSystemVersionJobStatusResponse = z233.object({
|
|
6837
|
+
job: VersionCreationJob
|
|
6735
6838
|
});
|
|
6736
6839
|
|
|
6737
|
-
// src/api/dto/
|
|
6738
|
-
import { z as
|
|
6739
|
-
var
|
|
6740
|
-
|
|
6741
|
-
|
|
6840
|
+
// src/api/dto/design-systems/view.ts
|
|
6841
|
+
import { z as z234 } from "zod";
|
|
6842
|
+
var DTOElementViewColumnSharedAttributes = z234.object({
|
|
6843
|
+
id: z234.string(),
|
|
6844
|
+
persistentId: z234.string(),
|
|
6845
|
+
width: z234.number()
|
|
6742
6846
|
});
|
|
6743
|
-
var
|
|
6744
|
-
|
|
6847
|
+
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6848
|
+
type: z234.literal("BaseProperty"),
|
|
6849
|
+
basePropertyType: ElementViewBaseColumnType
|
|
6850
|
+
});
|
|
6851
|
+
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6852
|
+
type: z234.literal("PropertyDefinition"),
|
|
6853
|
+
propertyDefinitionId: z234.string()
|
|
6854
|
+
});
|
|
6855
|
+
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6856
|
+
type: z234.literal("Theme"),
|
|
6857
|
+
themeId: z234.string()
|
|
6745
6858
|
});
|
|
6746
|
-
var
|
|
6747
|
-
|
|
6859
|
+
var DTOElementViewColumn = z234.discriminatedUnion("type", [
|
|
6860
|
+
DTOElementViewBasePropertyColumn,
|
|
6861
|
+
DTOElementViewPropertyDefinitionColumn,
|
|
6862
|
+
DTOElementViewThemeColumn
|
|
6863
|
+
]);
|
|
6864
|
+
var DTOElementView = z234.object({
|
|
6865
|
+
meta: ObjectMeta,
|
|
6866
|
+
persistentId: z234.string(),
|
|
6867
|
+
targetElementType: ElementPropertyTargetType,
|
|
6868
|
+
id: z234.string(),
|
|
6869
|
+
isDefault: z234.boolean(),
|
|
6870
|
+
columns: z234.array(DTOElementViewColumn)
|
|
6748
6871
|
});
|
|
6749
|
-
var
|
|
6750
|
-
|
|
6872
|
+
var DTOElementViewsListResponse = z234.object({
|
|
6873
|
+
elementDataViews: z234.array(DTOElementView)
|
|
6751
6874
|
});
|
|
6752
6875
|
|
|
6753
6876
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6754
|
-
var DTOAppBootstrapDataQuery =
|
|
6755
|
-
preferredWorkspaceId:
|
|
6756
|
-
preferredDesignSystemId:
|
|
6757
|
-
preferredVersionId:
|
|
6758
|
-
preferredBrandId:
|
|
6877
|
+
var DTOAppBootstrapDataQuery = z235.object({
|
|
6878
|
+
preferredWorkspaceId: z235.string().optional(),
|
|
6879
|
+
preferredDesignSystemId: z235.string().optional(),
|
|
6880
|
+
preferredVersionId: z235.string().optional(),
|
|
6881
|
+
preferredBrandId: z235.string().optional()
|
|
6759
6882
|
});
|
|
6760
|
-
var DTOAppBootstrapDataResponse =
|
|
6883
|
+
var DTOAppBootstrapDataResponse = z235.object({
|
|
6761
6884
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
6762
6885
|
designSystem: DTODesignSystem.optional(),
|
|
6763
6886
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -6765,92 +6888,92 @@ var DTOAppBootstrapDataResponse = z233.object({
|
|
|
6765
6888
|
});
|
|
6766
6889
|
|
|
6767
6890
|
// src/api/dto/collections/token-collection.ts
|
|
6768
|
-
import { z as
|
|
6769
|
-
var DTOTokenCollection =
|
|
6770
|
-
id:
|
|
6771
|
-
persistentId:
|
|
6772
|
-
designSystemVersionId:
|
|
6891
|
+
import { z as z236 } from "zod";
|
|
6892
|
+
var DTOTokenCollection = z236.object({
|
|
6893
|
+
id: z236.string(),
|
|
6894
|
+
persistentId: z236.string(),
|
|
6895
|
+
designSystemVersionId: z236.string(),
|
|
6773
6896
|
meta: ObjectMeta,
|
|
6774
6897
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
6775
|
-
elementPropertyOptionId:
|
|
6776
|
-
createdAt:
|
|
6777
|
-
updatedAt:
|
|
6898
|
+
elementPropertyOptionId: z236.string(),
|
|
6899
|
+
createdAt: z236.coerce.date(),
|
|
6900
|
+
updatedAt: z236.coerce.date(),
|
|
6778
6901
|
origin: CollectionOrigin.optional()
|
|
6779
6902
|
});
|
|
6780
|
-
var DTOTokenCollectionsListReponse =
|
|
6903
|
+
var DTOTokenCollectionsListReponse = z236.object({
|
|
6781
6904
|
collections: DTOTokenCollection.array()
|
|
6782
6905
|
});
|
|
6783
6906
|
|
|
6784
6907
|
// src/api/dto/design-tokens/design-token.ts
|
|
6785
|
-
import { z as
|
|
6908
|
+
import { z as z237 } from "zod";
|
|
6786
6909
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6787
|
-
|
|
6788
|
-
id:
|
|
6789
|
-
persistentId:
|
|
6790
|
-
designSystemVersionId:
|
|
6910
|
+
z237.object({
|
|
6911
|
+
id: z237.string(),
|
|
6912
|
+
persistentId: z237.string(),
|
|
6913
|
+
designSystemVersionId: z237.string(),
|
|
6791
6914
|
meta: ObjectMeta,
|
|
6792
6915
|
originStyle: DesignTokenOrigin.optional(),
|
|
6793
|
-
brandId:
|
|
6794
|
-
collectionId:
|
|
6795
|
-
updatedAt:
|
|
6916
|
+
brandId: z237.string(),
|
|
6917
|
+
collectionId: z237.string().optional(),
|
|
6918
|
+
updatedAt: z237.coerce.date()
|
|
6796
6919
|
})
|
|
6797
6920
|
);
|
|
6798
|
-
var DTODesignTokenListResponse =
|
|
6921
|
+
var DTODesignTokenListResponse = z237.object({
|
|
6799
6922
|
tokens: DTODesignToken.array()
|
|
6800
6923
|
});
|
|
6801
|
-
var DTODesignTokenResponse =
|
|
6924
|
+
var DTODesignTokenResponse = z237.object({
|
|
6802
6925
|
token: DTODesignToken
|
|
6803
6926
|
});
|
|
6804
|
-
var DTODesignTokenGroup =
|
|
6805
|
-
id:
|
|
6927
|
+
var DTODesignTokenGroup = z237.object({
|
|
6928
|
+
id: z237.string(),
|
|
6806
6929
|
tokenType: DesignTokenType,
|
|
6807
|
-
persistentId:
|
|
6808
|
-
isRoot:
|
|
6809
|
-
brandId:
|
|
6930
|
+
persistentId: z237.string(),
|
|
6931
|
+
isRoot: z237.boolean(),
|
|
6932
|
+
brandId: z237.string(),
|
|
6810
6933
|
meta: ObjectMeta,
|
|
6811
|
-
childrenIds:
|
|
6934
|
+
childrenIds: z237.string().array()
|
|
6812
6935
|
});
|
|
6813
|
-
var DTODesignTokenGroupListResponse =
|
|
6936
|
+
var DTODesignTokenGroupListResponse = z237.object({
|
|
6814
6937
|
groups: DTODesignTokenGroup.array()
|
|
6815
6938
|
});
|
|
6816
|
-
var DTODesignTokenGroupResponse =
|
|
6939
|
+
var DTODesignTokenGroupResponse = z237.object({
|
|
6817
6940
|
group: DTODesignTokenGroup
|
|
6818
6941
|
});
|
|
6819
6942
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6820
|
-
|
|
6821
|
-
persistentId:
|
|
6943
|
+
z237.object({
|
|
6944
|
+
persistentId: z237.string(),
|
|
6822
6945
|
meta: ObjectMeta,
|
|
6823
|
-
brandId:
|
|
6824
|
-
groupPersistentId:
|
|
6946
|
+
brandId: z237.string(),
|
|
6947
|
+
groupPersistentId: z237.string().optional()
|
|
6825
6948
|
})
|
|
6826
6949
|
);
|
|
6827
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6828
|
-
persistentId:
|
|
6950
|
+
var DTODesignTokenGroupCreatePayload = z237.object({
|
|
6951
|
+
persistentId: z237.string(),
|
|
6829
6952
|
meta: ObjectMeta,
|
|
6830
|
-
brandId:
|
|
6831
|
-
parentId:
|
|
6953
|
+
brandId: z237.string(),
|
|
6954
|
+
parentId: z237.string().optional(),
|
|
6832
6955
|
tokenType: DesignTokenType,
|
|
6833
|
-
childrenIds:
|
|
6956
|
+
childrenIds: z237.string().array()
|
|
6834
6957
|
});
|
|
6835
6958
|
|
|
6836
6959
|
// src/api/dto/documentation/analytics-v2.ts
|
|
6837
|
-
import { z as
|
|
6838
|
-
var DTODocumentationAnalyticsTimeFrame =
|
|
6839
|
-
start:
|
|
6840
|
-
end:
|
|
6960
|
+
import { z as z238 } from "zod";
|
|
6961
|
+
var DTODocumentationAnalyticsTimeFrame = z238.object({
|
|
6962
|
+
start: z238.coerce.date(),
|
|
6963
|
+
end: z238.coerce.date().optional()
|
|
6841
6964
|
});
|
|
6842
|
-
var DTOPublishedDocVisitData =
|
|
6843
|
-
timestamp:
|
|
6844
|
-
versionId:
|
|
6845
|
-
locale:
|
|
6846
|
-
visits:
|
|
6847
|
-
sessions:
|
|
6965
|
+
var DTOPublishedDocVisitData = z238.object({
|
|
6966
|
+
timestamp: z238.coerce.date(),
|
|
6967
|
+
versionId: z238.string(),
|
|
6968
|
+
locale: z238.string().optional(),
|
|
6969
|
+
visits: z238.number(),
|
|
6970
|
+
sessions: z238.number()
|
|
6848
6971
|
});
|
|
6849
6972
|
var DTOPublishedDocPageVisitData = DTOPublishedDocVisitData.extend({
|
|
6850
|
-
pagePersistentId:
|
|
6973
|
+
pagePersistentId: z238.string()
|
|
6851
6974
|
});
|
|
6852
|
-
var DTOPublishedDocVisitHeatMapDay =
|
|
6853
|
-
var DTOPublishedDocVisitHeatMapWeek =
|
|
6975
|
+
var DTOPublishedDocVisitHeatMapDay = z238.number().array().length(12);
|
|
6976
|
+
var DTOPublishedDocVisitHeatMapWeek = z238.object({
|
|
6854
6977
|
/**
|
|
6855
6978
|
* For which timeframe it was calculated
|
|
6856
6979
|
*/
|
|
@@ -6863,75 +6986,65 @@ var DTOPublishedDocVisitHeatMapWeek = z236.object({
|
|
|
6863
6986
|
sat: DTOPublishedDocVisitHeatMapDay,
|
|
6864
6987
|
sun: DTOPublishedDocVisitHeatMapDay
|
|
6865
6988
|
});
|
|
6866
|
-
var DTOPublishedDocAnalyticsComparisonData =
|
|
6989
|
+
var DTOPublishedDocAnalyticsComparisonData = z238.object({
|
|
6867
6990
|
/**
|
|
6868
6991
|
* For which timeframe it was calculated
|
|
6869
6992
|
*/
|
|
6870
6993
|
timeFrame: DTODocumentationAnalyticsTimeFrame,
|
|
6871
|
-
priorVisitCount:
|
|
6872
|
-
priorSessionCount:
|
|
6873
|
-
currentVisitCount:
|
|
6874
|
-
currentSessionCount:
|
|
6994
|
+
priorVisitCount: z238.number(),
|
|
6995
|
+
priorSessionCount: z238.number(),
|
|
6996
|
+
currentVisitCount: z238.number(),
|
|
6997
|
+
currentSessionCount: z238.number()
|
|
6875
6998
|
});
|
|
6876
6999
|
var DTOPublishedDocPageAnalyticsComparisonData = DTOPublishedDocAnalyticsComparisonData.extend({
|
|
6877
|
-
pagePersistentId:
|
|
7000
|
+
pagePersistentId: z238.string()
|
|
6878
7001
|
});
|
|
6879
|
-
var DTODocumentationPageAnalyticsResponse =
|
|
6880
|
-
// Old
|
|
6881
|
-
/**
|
|
6882
|
-
* @deprecated
|
|
6883
|
-
*/
|
|
6884
|
-
analytics: z236.array(DTOPublishedDocPageVisitData),
|
|
6885
|
-
/**
|
|
6886
|
-
* @deprecated
|
|
6887
|
-
*/
|
|
6888
|
-
perPageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
6889
|
-
// New
|
|
7002
|
+
var DTODocumentationPageAnalyticsResponse = z238.object({
|
|
6890
7003
|
globalAnalytics: DTOPublishedDocVisitData.array(),
|
|
6891
7004
|
pageAnalytics: DTOPublishedDocPageVisitData.array(),
|
|
6892
7005
|
heatMapData: DTOPublishedDocVisitHeatMapWeek.array(),
|
|
6893
7006
|
comparisonData: DTOPublishedDocAnalyticsComparisonData.array(),
|
|
6894
7007
|
pageComparisonData: DTOPublishedDocPageAnalyticsComparisonData.array()
|
|
6895
7008
|
});
|
|
6896
|
-
var DTODocumentationAnalyticsRequest =
|
|
6897
|
-
timeFrames:
|
|
7009
|
+
var DTODocumentationAnalyticsRequest = z238.object({
|
|
7010
|
+
timeFrames: z238.array(DTODocumentationAnalyticsTimeFrame)
|
|
6898
7011
|
});
|
|
6899
7012
|
|
|
6900
7013
|
// src/api/dto/documentation/analytics.ts
|
|
6901
|
-
import { z as
|
|
6902
|
-
var DTODocumentationPageAnalyticsDifference =
|
|
6903
|
-
startDate:
|
|
6904
|
-
endDate:
|
|
6905
|
-
currentVisitCount:
|
|
6906
|
-
currentSessionCount:
|
|
6907
|
-
priorVisitCount:
|
|
6908
|
-
priorSessionCount:
|
|
7014
|
+
import { z as z239 } from "zod";
|
|
7015
|
+
var DTODocumentationPageAnalyticsDifference = z239.object({
|
|
7016
|
+
startDate: z239.coerce.date(),
|
|
7017
|
+
endDate: z239.coerce.date().optional(),
|
|
7018
|
+
currentVisitCount: z239.number(),
|
|
7019
|
+
currentSessionCount: z239.number(),
|
|
7020
|
+
priorVisitCount: z239.number(),
|
|
7021
|
+
priorSessionCount: z239.number()
|
|
6909
7022
|
});
|
|
6910
|
-
var DTODocumentationPageIntervalDifferenceResponse =
|
|
6911
|
-
differences:
|
|
7023
|
+
var DTODocumentationPageIntervalDifferenceResponse = z239.object({
|
|
7024
|
+
differences: z239.array(DTODocumentationPageAnalyticsDifference)
|
|
6912
7025
|
});
|
|
6913
7026
|
|
|
6914
7027
|
// src/api/dto/documentation/anchor.ts
|
|
6915
|
-
import { z as
|
|
7028
|
+
import { z as z240 } from "zod";
|
|
6916
7029
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6917
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6918
|
-
anchors:
|
|
7030
|
+
var DTOGetDocumentationPageAnchorsResponse = z240.object({
|
|
7031
|
+
anchors: z240.array(DTODocumentationPageAnchor)
|
|
6919
7032
|
});
|
|
6920
7033
|
|
|
6921
7034
|
// src/api/dto/documentation/approvals.ts
|
|
6922
|
-
import { z as
|
|
6923
|
-
var DTODocumentationPageApprovalState =
|
|
7035
|
+
import { z as z241 } from "zod";
|
|
7036
|
+
var DTODocumentationPageApprovalState = z241.object({
|
|
6924
7037
|
approvalState: DocumentationPageApprovalState,
|
|
6925
|
-
pagePersistentId:
|
|
6926
|
-
updatedByUserId:
|
|
6927
|
-
designSystemVersionId:
|
|
6928
|
-
updatedAt:
|
|
6929
|
-
createdAt:
|
|
6930
|
-
});
|
|
6931
|
-
var DTODocumentationGroupApprovalState =
|
|
6932
|
-
persistentId:
|
|
6933
|
-
groupPersistentId:
|
|
6934
|
-
designSystemVersionId:
|
|
7038
|
+
pagePersistentId: z241.string(),
|
|
7039
|
+
updatedByUserId: z241.string(),
|
|
7040
|
+
designSystemVersionId: z241.string(),
|
|
7041
|
+
updatedAt: z241.coerce.date(),
|
|
7042
|
+
createdAt: z241.coerce.date()
|
|
7043
|
+
});
|
|
7044
|
+
var DTODocumentationGroupApprovalState = z241.object({
|
|
7045
|
+
persistentId: z241.string(),
|
|
7046
|
+
groupPersistentId: z241.string(),
|
|
7047
|
+
designSystemVersionId: z241.string(),
|
|
6935
7048
|
approvalState: DocumentationPageApprovalState
|
|
6936
7049
|
});
|
|
6937
7050
|
|
|
@@ -6939,68 +7052,68 @@ var DTODocumentationGroupApprovalState = z239.object({
|
|
|
6939
7052
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6940
7053
|
|
|
6941
7054
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6942
|
-
import { z as
|
|
7055
|
+
import { z as z246 } from "zod";
|
|
6943
7056
|
|
|
6944
7057
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6945
|
-
import { z as
|
|
7058
|
+
import { z as z245 } from "zod";
|
|
6946
7059
|
|
|
6947
7060
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6948
|
-
import { z as
|
|
7061
|
+
import { z as z243 } from "zod";
|
|
6949
7062
|
|
|
6950
7063
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6951
|
-
import { z as
|
|
7064
|
+
import { z as z242 } from "zod";
|
|
6952
7065
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6953
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6954
|
-
showSidebar:
|
|
6955
|
-
isPrivate:
|
|
6956
|
-
isHidden:
|
|
7066
|
+
var DTODocumentationItemConfigurationV2 = z242.object({
|
|
7067
|
+
showSidebar: z242.boolean(),
|
|
7068
|
+
isPrivate: z242.boolean(),
|
|
7069
|
+
isHidden: z242.boolean(),
|
|
6957
7070
|
header: DTODocumentationItemHeaderV2
|
|
6958
7071
|
});
|
|
6959
7072
|
|
|
6960
7073
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6961
|
-
var DTODocumentationDraftChangeType =
|
|
6962
|
-
var DTODocumentationDraftStateCreated =
|
|
6963
|
-
changeType:
|
|
6964
|
-
});
|
|
6965
|
-
var DTODocumentationDraftStateUpdated =
|
|
6966
|
-
changeType:
|
|
6967
|
-
changes:
|
|
6968
|
-
previousTitle:
|
|
7074
|
+
var DTODocumentationDraftChangeType = z243.enum(["Created", "Updated", "Deleted"]);
|
|
7075
|
+
var DTODocumentationDraftStateCreated = z243.object({
|
|
7076
|
+
changeType: z243.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
7077
|
+
});
|
|
7078
|
+
var DTODocumentationDraftStateUpdated = z243.object({
|
|
7079
|
+
changeType: z243.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
7080
|
+
changes: z243.object({
|
|
7081
|
+
previousTitle: z243.string().optional(),
|
|
6969
7082
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6970
|
-
previousContentHash:
|
|
7083
|
+
previousContentHash: z243.string().optional()
|
|
6971
7084
|
})
|
|
6972
7085
|
});
|
|
6973
|
-
var DTODocumentationDraftStateDeleted =
|
|
6974
|
-
changeType:
|
|
6975
|
-
deletedAt:
|
|
6976
|
-
deletedByUserId:
|
|
7086
|
+
var DTODocumentationDraftStateDeleted = z243.object({
|
|
7087
|
+
changeType: z243.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
7088
|
+
deletedAt: z243.coerce.date(),
|
|
7089
|
+
deletedByUserId: z243.string()
|
|
6977
7090
|
});
|
|
6978
|
-
var DTODocumentationDraftState =
|
|
7091
|
+
var DTODocumentationDraftState = z243.discriminatedUnion("changeType", [
|
|
6979
7092
|
DTODocumentationDraftStateCreated,
|
|
6980
7093
|
DTODocumentationDraftStateUpdated,
|
|
6981
7094
|
DTODocumentationDraftStateDeleted
|
|
6982
7095
|
]);
|
|
6983
7096
|
|
|
6984
7097
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6985
|
-
import { z as
|
|
6986
|
-
var DTODocumentationPublishMetadata =
|
|
6987
|
-
lastPublishedByUserId:
|
|
6988
|
-
lastPublishedAt:
|
|
7098
|
+
import { z as z244 } from "zod";
|
|
7099
|
+
var DTODocumentationPublishMetadata = z244.object({
|
|
7100
|
+
lastPublishedByUserId: z244.string(),
|
|
7101
|
+
lastPublishedAt: z244.coerce.date()
|
|
6989
7102
|
});
|
|
6990
7103
|
|
|
6991
7104
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6992
|
-
var DTODocumentationPageV2 =
|
|
6993
|
-
id:
|
|
6994
|
-
persistentId:
|
|
6995
|
-
designSystemVersionId:
|
|
6996
|
-
title:
|
|
7105
|
+
var DTODocumentationPageV2 = z245.object({
|
|
7106
|
+
id: z245.string(),
|
|
7107
|
+
persistentId: z245.string(),
|
|
7108
|
+
designSystemVersionId: z245.string(),
|
|
7109
|
+
title: z245.string(),
|
|
6997
7110
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6998
|
-
shortPersistentId:
|
|
6999
|
-
slug:
|
|
7000
|
-
userSlug:
|
|
7001
|
-
createdAt:
|
|
7002
|
-
updatedAt:
|
|
7003
|
-
path:
|
|
7111
|
+
shortPersistentId: z245.string(),
|
|
7112
|
+
slug: z245.string().optional(),
|
|
7113
|
+
userSlug: z245.string().optional(),
|
|
7114
|
+
createdAt: z245.coerce.date(),
|
|
7115
|
+
updatedAt: z245.coerce.date(),
|
|
7116
|
+
path: z245.string(),
|
|
7004
7117
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7005
7118
|
draftState: DTODocumentationDraftState.optional(),
|
|
7006
7119
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -7008,267 +7121,267 @@ var DTODocumentationPageV2 = z243.object({
|
|
|
7008
7121
|
/** Defines the approval state of the documentation page */
|
|
7009
7122
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
7010
7123
|
/** Id of the page document room */
|
|
7011
|
-
liveblocksRoomId:
|
|
7124
|
+
liveblocksRoomId: z245.string().optional(),
|
|
7012
7125
|
// Backward compatibility
|
|
7013
|
-
type:
|
|
7126
|
+
type: z245.literal("Page")
|
|
7014
7127
|
});
|
|
7015
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
7128
|
+
var DTOCreateDocumentationPageInputV2 = z245.object({
|
|
7016
7129
|
// Identifier
|
|
7017
|
-
persistentId:
|
|
7130
|
+
persistentId: z245.string(),
|
|
7018
7131
|
// Page properties
|
|
7019
|
-
title:
|
|
7132
|
+
title: z245.string(),
|
|
7020
7133
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7021
7134
|
// Page placement properties
|
|
7022
|
-
parentPersistentId:
|
|
7023
|
-
afterPersistentId:
|
|
7135
|
+
parentPersistentId: z245.string(),
|
|
7136
|
+
afterPersistentId: z245.string().nullish()
|
|
7024
7137
|
});
|
|
7025
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
7138
|
+
var DTOUpdateDocumentationPageInputV2 = z245.object({
|
|
7026
7139
|
// Identifier of the page to update
|
|
7027
|
-
id:
|
|
7140
|
+
id: z245.string(),
|
|
7028
7141
|
// Page properties
|
|
7029
|
-
title:
|
|
7142
|
+
title: z245.string().optional(),
|
|
7030
7143
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7031
7144
|
});
|
|
7032
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
7145
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z245.object({
|
|
7033
7146
|
// Identifier of the page to update
|
|
7034
|
-
id:
|
|
7147
|
+
id: z245.string(),
|
|
7035
7148
|
// Page properties
|
|
7036
|
-
documentItems:
|
|
7149
|
+
documentItems: z245.array(DocumentationPageContentItem)
|
|
7037
7150
|
});
|
|
7038
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
7151
|
+
var DTOMoveDocumentationPageInputV2 = z245.object({
|
|
7039
7152
|
// Identifier of the group to update
|
|
7040
|
-
id:
|
|
7153
|
+
id: z245.string(),
|
|
7041
7154
|
// Page placement properties
|
|
7042
|
-
parentPersistentId:
|
|
7043
|
-
afterPersistentId:
|
|
7155
|
+
parentPersistentId: z245.string(),
|
|
7156
|
+
afterPersistentId: z245.string().nullish()
|
|
7044
7157
|
});
|
|
7045
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
7158
|
+
var DTODuplicateDocumentationPageInputV2 = z245.object({
|
|
7046
7159
|
// Identifier of the page to duplicate from
|
|
7047
|
-
id:
|
|
7160
|
+
id: z245.string(),
|
|
7048
7161
|
// New page persistent id
|
|
7049
|
-
persistentId:
|
|
7162
|
+
persistentId: z245.string(),
|
|
7050
7163
|
// Page placement properties
|
|
7051
|
-
parentPersistentId:
|
|
7052
|
-
afterPersistentId:
|
|
7164
|
+
parentPersistentId: z245.string(),
|
|
7165
|
+
afterPersistentId: z245.string().nullish()
|
|
7053
7166
|
});
|
|
7054
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
7167
|
+
var DTODeleteDocumentationPageInputV2 = z245.object({
|
|
7055
7168
|
// Identifier
|
|
7056
|
-
id:
|
|
7169
|
+
id: z245.string()
|
|
7057
7170
|
});
|
|
7058
|
-
var DTORestoreDocumentationPageInput =
|
|
7059
|
-
persistentId:
|
|
7060
|
-
snapshotId:
|
|
7171
|
+
var DTORestoreDocumentationPageInput = z245.object({
|
|
7172
|
+
persistentId: z245.string(),
|
|
7173
|
+
snapshotId: z245.string().optional()
|
|
7061
7174
|
});
|
|
7062
|
-
var DTORestoreDocumentationGroupInput =
|
|
7063
|
-
persistentId:
|
|
7064
|
-
snapshotId:
|
|
7175
|
+
var DTORestoreDocumentationGroupInput = z245.object({
|
|
7176
|
+
persistentId: z245.string(),
|
|
7177
|
+
snapshotId: z245.string().optional()
|
|
7065
7178
|
});
|
|
7066
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
7067
|
-
persistentId:
|
|
7179
|
+
var DTODocumentationPageApprovalStateChangeInput = z245.object({
|
|
7180
|
+
persistentId: z245.string(),
|
|
7068
7181
|
approvalState: DocumentationPageApprovalState.optional()
|
|
7069
7182
|
});
|
|
7070
7183
|
|
|
7071
7184
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
7072
|
-
var DTODocumentationPageSnapshot =
|
|
7073
|
-
id:
|
|
7074
|
-
designSystemVersionId:
|
|
7075
|
-
createdAt:
|
|
7076
|
-
updatedAt:
|
|
7185
|
+
var DTODocumentationPageSnapshot = z246.object({
|
|
7186
|
+
id: z246.string(),
|
|
7187
|
+
designSystemVersionId: z246.string(),
|
|
7188
|
+
createdAt: z246.string(),
|
|
7189
|
+
updatedAt: z246.string(),
|
|
7077
7190
|
documentationPage: DTODocumentationPageV2,
|
|
7078
|
-
pageContentHash:
|
|
7191
|
+
pageContentHash: z246.string(),
|
|
7079
7192
|
reason: DesignElementSnapshotReason
|
|
7080
7193
|
});
|
|
7081
7194
|
|
|
7082
7195
|
// src/api/dto/documentation/link-preview.ts
|
|
7083
|
-
import { z as
|
|
7084
|
-
var DTODocumentationLinkPreviewResponse =
|
|
7196
|
+
import { z as z247 } from "zod";
|
|
7197
|
+
var DTODocumentationLinkPreviewResponse = z247.object({
|
|
7085
7198
|
linkPreview: DocumentationLinkPreview
|
|
7086
7199
|
});
|
|
7087
|
-
var DTODocumentationLinkPreviewRequest =
|
|
7088
|
-
url:
|
|
7089
|
-
documentationItemPersistentId:
|
|
7200
|
+
var DTODocumentationLinkPreviewRequest = z247.object({
|
|
7201
|
+
url: z247.string().optional(),
|
|
7202
|
+
documentationItemPersistentId: z247.string().optional()
|
|
7090
7203
|
});
|
|
7091
7204
|
|
|
7092
7205
|
// src/api/dto/documentation/publish.ts
|
|
7093
|
-
import { z as
|
|
7206
|
+
import { z as z251 } from "zod";
|
|
7094
7207
|
|
|
7095
7208
|
// src/api/dto/export/exporter.ts
|
|
7096
|
-
import { z as
|
|
7097
|
-
var DTOExporterType =
|
|
7098
|
-
var DTOExporterSource =
|
|
7099
|
-
var DTOExporterMembershipRole =
|
|
7100
|
-
var DTOExporterListQuery =
|
|
7101
|
-
limit:
|
|
7102
|
-
offset:
|
|
7209
|
+
import { z as z248 } from "zod";
|
|
7210
|
+
var DTOExporterType = z248.enum(["documentation", "code"]);
|
|
7211
|
+
var DTOExporterSource = z248.enum(["git", "upload"]);
|
|
7212
|
+
var DTOExporterMembershipRole = z248.enum(["Owner", "OwnerArchived", "User"]);
|
|
7213
|
+
var DTOExporterListQuery = z248.object({
|
|
7214
|
+
limit: z248.coerce.number().optional(),
|
|
7215
|
+
offset: z248.coerce.number().optional(),
|
|
7103
7216
|
type: DTOExporterType.optional(),
|
|
7104
|
-
search:
|
|
7217
|
+
search: z248.string().optional()
|
|
7105
7218
|
});
|
|
7106
|
-
var DTOExporter =
|
|
7107
|
-
id:
|
|
7108
|
-
name:
|
|
7109
|
-
isPrivate:
|
|
7219
|
+
var DTOExporter = z248.object({
|
|
7220
|
+
id: z248.string(),
|
|
7221
|
+
name: z248.string(),
|
|
7222
|
+
isPrivate: z248.boolean(),
|
|
7110
7223
|
exporterType: DTOExporterType,
|
|
7111
|
-
isDefaultDocumentationExporter:
|
|
7112
|
-
iconURL:
|
|
7224
|
+
isDefaultDocumentationExporter: z248.boolean(),
|
|
7225
|
+
iconURL: z248.string().optional(),
|
|
7113
7226
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
7114
7227
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
7115
7228
|
customBlocks: PulsarCustomBlock.array(),
|
|
7116
|
-
blockVariants:
|
|
7117
|
-
homepage:
|
|
7118
|
-
organization:
|
|
7119
|
-
packageId:
|
|
7120
|
-
tags:
|
|
7121
|
-
author:
|
|
7122
|
-
version:
|
|
7123
|
-
description:
|
|
7124
|
-
usesLocale:
|
|
7125
|
-
usesBrands:
|
|
7126
|
-
usesThemes:
|
|
7127
|
-
readme:
|
|
7128
|
-
routingVersion:
|
|
7229
|
+
blockVariants: z248.record(z248.string(), PulsarContributionVariant.array()),
|
|
7230
|
+
homepage: z248.string().optional(),
|
|
7231
|
+
organization: z248.string().optional(),
|
|
7232
|
+
packageId: z248.string().optional(),
|
|
7233
|
+
tags: z248.array(z248.string()),
|
|
7234
|
+
author: z248.string().optional(),
|
|
7235
|
+
version: z248.string(),
|
|
7236
|
+
description: z248.string(),
|
|
7237
|
+
usesLocale: z248.boolean(),
|
|
7238
|
+
usesBrands: z248.boolean(),
|
|
7239
|
+
usesThemes: z248.boolean(),
|
|
7240
|
+
readme: z248.string().optional(),
|
|
7241
|
+
routingVersion: z248.string().optional(),
|
|
7129
7242
|
source: DTOExporterSource,
|
|
7130
|
-
gitProvider:
|
|
7131
|
-
gitUrl: nullishToOptional(
|
|
7132
|
-
gitBranch: nullishToOptional(
|
|
7133
|
-
gitDirectory: nullishToOptional(
|
|
7134
|
-
isDeprecated:
|
|
7135
|
-
deprecationNote:
|
|
7136
|
-
replacementExporterId:
|
|
7137
|
-
});
|
|
7138
|
-
var DTOExporterMembership =
|
|
7139
|
-
workspaceId:
|
|
7140
|
-
exporterId:
|
|
7243
|
+
gitProvider: z248.string().optional(),
|
|
7244
|
+
gitUrl: nullishToOptional(z248.string()),
|
|
7245
|
+
gitBranch: nullishToOptional(z248.string()),
|
|
7246
|
+
gitDirectory: nullishToOptional(z248.string()),
|
|
7247
|
+
isDeprecated: z248.boolean(),
|
|
7248
|
+
deprecationNote: z248.string().optional(),
|
|
7249
|
+
replacementExporterId: z248.string().optional()
|
|
7250
|
+
});
|
|
7251
|
+
var DTOExporterMembership = z248.object({
|
|
7252
|
+
workspaceId: z248.string(),
|
|
7253
|
+
exporterId: z248.string(),
|
|
7141
7254
|
role: DTOExporterMembershipRole
|
|
7142
7255
|
});
|
|
7143
|
-
var DTOExporterResponse =
|
|
7256
|
+
var DTOExporterResponse = z248.object({
|
|
7144
7257
|
exporter: DTOExporter,
|
|
7145
7258
|
membership: DTOExporterMembership
|
|
7146
7259
|
});
|
|
7147
|
-
var DTOExporterListResponse =
|
|
7260
|
+
var DTOExporterListResponse = z248.object({
|
|
7148
7261
|
exporters: DTOExporter.array(),
|
|
7149
7262
|
membership: DTOExporterMembership.array(),
|
|
7150
|
-
total:
|
|
7263
|
+
total: z248.number()
|
|
7151
7264
|
});
|
|
7152
|
-
var DTOExporterGitProviderEnum =
|
|
7153
|
-
var DTOExporterCreateInput =
|
|
7154
|
-
url:
|
|
7265
|
+
var DTOExporterGitProviderEnum = z248.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
7266
|
+
var DTOExporterCreateInput = z248.object({
|
|
7267
|
+
url: z248.string(),
|
|
7155
7268
|
provider: DTOExporterGitProviderEnum
|
|
7156
7269
|
});
|
|
7157
|
-
var DTOExporterUpdateInput =
|
|
7158
|
-
url:
|
|
7270
|
+
var DTOExporterUpdateInput = z248.object({
|
|
7271
|
+
url: z248.string().optional()
|
|
7159
7272
|
});
|
|
7160
|
-
var DTOExporterDeprecationInput =
|
|
7161
|
-
isDeprecated:
|
|
7162
|
-
deprecationNote:
|
|
7163
|
-
replacementExporterId:
|
|
7273
|
+
var DTOExporterDeprecationInput = z248.object({
|
|
7274
|
+
isDeprecated: z248.boolean(),
|
|
7275
|
+
deprecationNote: z248.string().optional(),
|
|
7276
|
+
replacementExporterId: z248.string().optional()
|
|
7164
7277
|
});
|
|
7165
7278
|
|
|
7166
7279
|
// src/api/dto/export/filter.ts
|
|
7167
7280
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
7168
7281
|
|
|
7169
7282
|
// src/api/dto/export/job.ts
|
|
7170
|
-
import { z as
|
|
7171
|
-
var DTOExportJobCreatedBy =
|
|
7172
|
-
userId:
|
|
7173
|
-
userName:
|
|
7283
|
+
import { z as z249 } from "zod";
|
|
7284
|
+
var DTOExportJobCreatedBy = z249.object({
|
|
7285
|
+
userId: z249.string(),
|
|
7286
|
+
userName: z249.string()
|
|
7174
7287
|
});
|
|
7175
|
-
var DTOExportJobDesignSystemPreview =
|
|
7176
|
-
id:
|
|
7288
|
+
var DTOExportJobDesignSystemPreview = z249.object({
|
|
7289
|
+
id: z249.string(),
|
|
7177
7290
|
meta: ObjectMeta
|
|
7178
7291
|
});
|
|
7179
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
7180
|
-
id:
|
|
7292
|
+
var DTOExportJobDesignSystemVersionPreview = z249.object({
|
|
7293
|
+
id: z249.string(),
|
|
7181
7294
|
meta: ObjectMeta,
|
|
7182
|
-
version:
|
|
7183
|
-
isReadonly:
|
|
7295
|
+
version: z249.string(),
|
|
7296
|
+
isReadonly: z249.boolean()
|
|
7184
7297
|
});
|
|
7185
|
-
var DTOExportJobDestinations =
|
|
7298
|
+
var DTOExportJobDestinations = z249.object({
|
|
7186
7299
|
s3: ExporterDestinationS3.optional(),
|
|
7187
7300
|
azure: ExporterDestinationAzure.optional(),
|
|
7188
7301
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
7189
7302
|
github: ExporterDestinationGithub.optional(),
|
|
7190
7303
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
7191
7304
|
documentation: ExporterDestinationDocs.optional(),
|
|
7192
|
-
webhookUrl:
|
|
7305
|
+
webhookUrl: z249.string().optional()
|
|
7193
7306
|
});
|
|
7194
7307
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
7195
7308
|
sndocs: true
|
|
7196
7309
|
}).extend({
|
|
7197
7310
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
7198
7311
|
});
|
|
7199
|
-
var DTOExportJob =
|
|
7200
|
-
id:
|
|
7201
|
-
createdAt:
|
|
7202
|
-
finishedAt:
|
|
7203
|
-
index:
|
|
7312
|
+
var DTOExportJob = z249.object({
|
|
7313
|
+
id: z249.string(),
|
|
7314
|
+
createdAt: z249.coerce.date(),
|
|
7315
|
+
finishedAt: z249.coerce.date().optional(),
|
|
7316
|
+
index: z249.number().optional(),
|
|
7204
7317
|
status: ExportJobStatus,
|
|
7205
|
-
estimatedExecutionTime:
|
|
7318
|
+
estimatedExecutionTime: z249.number().optional(),
|
|
7206
7319
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
7207
7320
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
7208
7321
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
7209
7322
|
destinations: DTOExportJobDestinations,
|
|
7210
|
-
exporterId:
|
|
7211
|
-
scheduleId:
|
|
7323
|
+
exporterId: z249.string(),
|
|
7324
|
+
scheduleId: z249.string().optional(),
|
|
7212
7325
|
result: DTOExportJobResult.optional(),
|
|
7213
|
-
brandPersistentId:
|
|
7214
|
-
themePersistentId:
|
|
7215
|
-
themePersistentIds:
|
|
7326
|
+
brandPersistentId: z249.string().optional(),
|
|
7327
|
+
themePersistentId: z249.string().optional(),
|
|
7328
|
+
themePersistentIds: z249.string().array().optional(),
|
|
7216
7329
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
7217
7330
|
});
|
|
7218
|
-
var DTOExportJobResponse =
|
|
7331
|
+
var DTOExportJobResponse = z249.object({
|
|
7219
7332
|
job: DTOExportJob
|
|
7220
7333
|
});
|
|
7221
|
-
var DTOExportJobResponseLegacy =
|
|
7222
|
-
job:
|
|
7223
|
-
id:
|
|
7334
|
+
var DTOExportJobResponseLegacy = z249.object({
|
|
7335
|
+
job: z249.object({
|
|
7336
|
+
id: z249.string(),
|
|
7224
7337
|
status: ExportJobStatus
|
|
7225
7338
|
})
|
|
7226
7339
|
});
|
|
7227
|
-
var DTOExportJobCreateInput =
|
|
7228
|
-
designSystemId:
|
|
7229
|
-
designSystemVersionId:
|
|
7230
|
-
exporterId:
|
|
7231
|
-
brandId:
|
|
7232
|
-
themeId:
|
|
7233
|
-
themePersistentIds:
|
|
7340
|
+
var DTOExportJobCreateInput = z249.object({
|
|
7341
|
+
designSystemId: z249.string(),
|
|
7342
|
+
designSystemVersionId: z249.string(),
|
|
7343
|
+
exporterId: z249.string(),
|
|
7344
|
+
brandId: z249.string().optional(),
|
|
7345
|
+
themeId: z249.string().optional(),
|
|
7346
|
+
themePersistentIds: z249.string().array().optional(),
|
|
7234
7347
|
destinations: DTOExportJobDestinations,
|
|
7235
7348
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7236
|
-
previewMode:
|
|
7349
|
+
previewMode: z249.boolean().optional()
|
|
7237
7350
|
});
|
|
7238
7351
|
|
|
7239
7352
|
// src/api/dto/export/pipeline.ts
|
|
7240
|
-
import { z as
|
|
7241
|
-
var DTOPipelineListQuery =
|
|
7242
|
-
designSystemId:
|
|
7243
|
-
exporterId:
|
|
7244
|
-
latestJobsLimit:
|
|
7245
|
-
});
|
|
7246
|
-
var DTOPipeline =
|
|
7247
|
-
id:
|
|
7248
|
-
name:
|
|
7353
|
+
import { z as z250 } from "zod";
|
|
7354
|
+
var DTOPipelineListQuery = z250.object({
|
|
7355
|
+
designSystemId: z250.string().optional(),
|
|
7356
|
+
exporterId: z250.string().optional(),
|
|
7357
|
+
latestJobsLimit: z250.coerce.number().optional()
|
|
7358
|
+
});
|
|
7359
|
+
var DTOPipeline = z250.object({
|
|
7360
|
+
id: z250.string(),
|
|
7361
|
+
name: z250.string(),
|
|
7249
7362
|
eventType: PipelineEventType,
|
|
7250
|
-
isEnabled:
|
|
7251
|
-
workspaceId:
|
|
7252
|
-
designSystemId:
|
|
7253
|
-
exporterId:
|
|
7254
|
-
brandPersistentId:
|
|
7255
|
-
themePersistentId:
|
|
7256
|
-
themePersistentIds:
|
|
7363
|
+
isEnabled: z250.boolean(),
|
|
7364
|
+
workspaceId: z250.string(),
|
|
7365
|
+
designSystemId: z250.string(),
|
|
7366
|
+
exporterId: z250.string(),
|
|
7367
|
+
brandPersistentId: z250.string().optional(),
|
|
7368
|
+
themePersistentId: z250.string().optional(),
|
|
7369
|
+
themePersistentIds: z250.string().array().optional(),
|
|
7257
7370
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
7258
7371
|
...ExportDestinationsMap.shape,
|
|
7259
7372
|
latestJobs: DTOExportJob.array(),
|
|
7260
|
-
isExporterDeprecated:
|
|
7373
|
+
isExporterDeprecated: z250.boolean()
|
|
7261
7374
|
});
|
|
7262
|
-
var DTOPipelineListResponse =
|
|
7375
|
+
var DTOPipelineListResponse = z250.object({
|
|
7263
7376
|
pipelines: DTOPipeline.array()
|
|
7264
7377
|
});
|
|
7265
|
-
var DTOPipelineResponse =
|
|
7378
|
+
var DTOPipelineResponse = z250.object({
|
|
7266
7379
|
pipeline: DTOPipeline
|
|
7267
7380
|
});
|
|
7268
7381
|
|
|
7269
7382
|
// src/api/dto/documentation/publish.ts
|
|
7270
7383
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
7271
|
-
var DTOPublishDocumentationRequest =
|
|
7384
|
+
var DTOPublishDocumentationRequest = z251.object({
|
|
7272
7385
|
environment: PublishedDocEnvironment,
|
|
7273
7386
|
/**
|
|
7274
7387
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -7276,66 +7389,66 @@ var DTOPublishDocumentationRequest = z249.object({
|
|
|
7276
7389
|
*/
|
|
7277
7390
|
changes: DTOPublishDocumentationChanges.optional()
|
|
7278
7391
|
});
|
|
7279
|
-
var DTOPublishDocumentationResponse =
|
|
7392
|
+
var DTOPublishDocumentationResponse = z251.object({
|
|
7280
7393
|
job: DTOExportJob
|
|
7281
7394
|
});
|
|
7282
7395
|
|
|
7283
7396
|
// src/api/dto/documentation/room.ts
|
|
7284
|
-
import { z as
|
|
7285
|
-
var DTODocumentationPageRoom =
|
|
7286
|
-
id:
|
|
7397
|
+
import { z as z252 } from "zod";
|
|
7398
|
+
var DTODocumentationPageRoom = z252.object({
|
|
7399
|
+
id: z252.string()
|
|
7287
7400
|
});
|
|
7288
|
-
var DTODocumentationPageRoomResponse =
|
|
7401
|
+
var DTODocumentationPageRoomResponse = z252.object({
|
|
7289
7402
|
room: DTODocumentationPageRoom
|
|
7290
7403
|
});
|
|
7291
7404
|
|
|
7292
7405
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
7293
|
-
import
|
|
7294
|
-
var DTOFigmaComponentGroup =
|
|
7295
|
-
id:
|
|
7296
|
-
designSystemVersionId:
|
|
7297
|
-
persistentId:
|
|
7298
|
-
isRoot:
|
|
7299
|
-
brandId:
|
|
7406
|
+
import z253 from "zod";
|
|
7407
|
+
var DTOFigmaComponentGroup = z253.object({
|
|
7408
|
+
id: z253.string(),
|
|
7409
|
+
designSystemVersionId: z253.string(),
|
|
7410
|
+
persistentId: z253.string(),
|
|
7411
|
+
isRoot: z253.boolean(),
|
|
7412
|
+
brandId: z253.string(),
|
|
7300
7413
|
meta: DTOObjectMeta,
|
|
7301
|
-
childrenIds:
|
|
7414
|
+
childrenIds: z253.string().array()
|
|
7302
7415
|
});
|
|
7303
|
-
var DTOFigmaComponentGroupListResponse =
|
|
7416
|
+
var DTOFigmaComponentGroupListResponse = z253.object({
|
|
7304
7417
|
groups: DTOFigmaComponentGroup.array()
|
|
7305
7418
|
});
|
|
7306
7419
|
|
|
7307
7420
|
// src/api/dto/elements/components/figma-component.ts
|
|
7308
|
-
import { z as
|
|
7421
|
+
import { z as z254 } from "zod";
|
|
7309
7422
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
7310
|
-
var DTOFigmaComponentPropertyMap =
|
|
7311
|
-
var DTOFigmaComponent =
|
|
7312
|
-
id:
|
|
7313
|
-
persistentId:
|
|
7314
|
-
designSystemVersionId:
|
|
7315
|
-
brandId:
|
|
7316
|
-
thumbnailUrl:
|
|
7317
|
-
svgUrl:
|
|
7318
|
-
exportProperties:
|
|
7319
|
-
isAsset:
|
|
7423
|
+
var DTOFigmaComponentPropertyMap = z254.record(DTOFigmaComponentProperty);
|
|
7424
|
+
var DTOFigmaComponent = z254.object({
|
|
7425
|
+
id: z254.string(),
|
|
7426
|
+
persistentId: z254.string(),
|
|
7427
|
+
designSystemVersionId: z254.string(),
|
|
7428
|
+
brandId: z254.string(),
|
|
7429
|
+
thumbnailUrl: z254.string().optional(),
|
|
7430
|
+
svgUrl: z254.string().optional(),
|
|
7431
|
+
exportProperties: z254.object({
|
|
7432
|
+
isAsset: z254.boolean()
|
|
7320
7433
|
}),
|
|
7321
|
-
createdAt:
|
|
7322
|
-
updatedAt:
|
|
7434
|
+
createdAt: z254.coerce.date(),
|
|
7435
|
+
updatedAt: z254.coerce.date(),
|
|
7323
7436
|
meta: ObjectMeta,
|
|
7324
7437
|
originComponent: FigmaComponentOrigin.optional(),
|
|
7325
|
-
parentComponentPersistentId:
|
|
7326
|
-
childrenPersistentIds:
|
|
7438
|
+
parentComponentPersistentId: z254.string().optional(),
|
|
7439
|
+
childrenPersistentIds: z254.string().array().optional(),
|
|
7327
7440
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
7328
|
-
variantPropertyValues:
|
|
7441
|
+
variantPropertyValues: z254.record(z254.string()).optional()
|
|
7329
7442
|
});
|
|
7330
|
-
var DTOFigmaComponentListResponse =
|
|
7443
|
+
var DTOFigmaComponentListResponse = z254.object({
|
|
7331
7444
|
components: DTOFigmaComponent.array()
|
|
7332
7445
|
});
|
|
7333
7446
|
|
|
7334
7447
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7335
|
-
import { z as
|
|
7448
|
+
import { z as z256 } from "zod";
|
|
7336
7449
|
|
|
7337
7450
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
7338
|
-
import { z as
|
|
7451
|
+
import { z as z255 } from "zod";
|
|
7339
7452
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
7340
7453
|
sortOrder: true,
|
|
7341
7454
|
parentPersistentId: true,
|
|
@@ -7345,13 +7458,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7345
7458
|
data: true,
|
|
7346
7459
|
shortPersistentId: true
|
|
7347
7460
|
}).extend({
|
|
7348
|
-
title:
|
|
7349
|
-
isRoot:
|
|
7350
|
-
childrenIds:
|
|
7461
|
+
title: z255.string(),
|
|
7462
|
+
isRoot: z255.boolean(),
|
|
7463
|
+
childrenIds: z255.array(z255.string()),
|
|
7351
7464
|
groupBehavior: DocumentationGroupBehavior,
|
|
7352
|
-
shortPersistentId:
|
|
7465
|
+
shortPersistentId: z255.string(),
|
|
7353
7466
|
configuration: DTODocumentationItemConfigurationV2,
|
|
7354
|
-
type:
|
|
7467
|
+
type: z255.literal("Group"),
|
|
7355
7468
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
7356
7469
|
draftState: DTODocumentationDraftState.optional(),
|
|
7357
7470
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -7359,127 +7472,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
7359
7472
|
//** An approval state for frontend to utilize. */
|
|
7360
7473
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
7361
7474
|
});
|
|
7362
|
-
var DTOCreateDocumentationGroupInput =
|
|
7475
|
+
var DTOCreateDocumentationGroupInput = z255.object({
|
|
7363
7476
|
// Identifier
|
|
7364
|
-
persistentId:
|
|
7477
|
+
persistentId: z255.string(),
|
|
7365
7478
|
// Group properties
|
|
7366
|
-
title:
|
|
7479
|
+
title: z255.string(),
|
|
7367
7480
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
7368
7481
|
// Group placement properties
|
|
7369
|
-
afterPersistentId:
|
|
7370
|
-
parentPersistentId:
|
|
7482
|
+
afterPersistentId: z255.string().nullish(),
|
|
7483
|
+
parentPersistentId: z255.string()
|
|
7371
7484
|
});
|
|
7372
|
-
var DTOUpdateDocumentationGroupInput =
|
|
7485
|
+
var DTOUpdateDocumentationGroupInput = z255.object({
|
|
7373
7486
|
// Identifier of the group to update
|
|
7374
|
-
id:
|
|
7487
|
+
id: z255.string(),
|
|
7375
7488
|
// Group properties
|
|
7376
|
-
title:
|
|
7489
|
+
title: z255.string().optional(),
|
|
7377
7490
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
7378
7491
|
});
|
|
7379
|
-
var DTOMoveDocumentationGroupInput =
|
|
7492
|
+
var DTOMoveDocumentationGroupInput = z255.object({
|
|
7380
7493
|
// Identifier of the group to update
|
|
7381
|
-
id:
|
|
7494
|
+
id: z255.string(),
|
|
7382
7495
|
// Group placement properties
|
|
7383
|
-
parentPersistentId:
|
|
7384
|
-
afterPersistentId:
|
|
7496
|
+
parentPersistentId: z255.string(),
|
|
7497
|
+
afterPersistentId: z255.string().nullish()
|
|
7385
7498
|
});
|
|
7386
|
-
var DTODuplicateDocumentationGroupInput =
|
|
7499
|
+
var DTODuplicateDocumentationGroupInput = z255.object({
|
|
7387
7500
|
// Identifier of the group to duplicate from
|
|
7388
|
-
id:
|
|
7501
|
+
id: z255.string(),
|
|
7389
7502
|
// New group persistent id
|
|
7390
|
-
persistentId:
|
|
7503
|
+
persistentId: z255.string(),
|
|
7391
7504
|
// Group placement properties
|
|
7392
|
-
afterPersistentId:
|
|
7393
|
-
parentPersistentId:
|
|
7505
|
+
afterPersistentId: z255.string().nullish(),
|
|
7506
|
+
parentPersistentId: z255.string()
|
|
7394
7507
|
});
|
|
7395
|
-
var DTOCreateDocumentationTabInput =
|
|
7508
|
+
var DTOCreateDocumentationTabInput = z255.object({
|
|
7396
7509
|
// New group persistent id
|
|
7397
|
-
persistentId:
|
|
7510
|
+
persistentId: z255.string(),
|
|
7398
7511
|
// If this is page, we will attempt to convert it to tab
|
|
7399
7512
|
// If this is tab group, we will add a new tab to it
|
|
7400
|
-
fromItemPersistentId:
|
|
7401
|
-
tabName:
|
|
7513
|
+
fromItemPersistentId: z255.string(),
|
|
7514
|
+
tabName: z255.string()
|
|
7402
7515
|
});
|
|
7403
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
7516
|
+
var DTODeleteDocumentationTabGroupInput = z255.object({
|
|
7404
7517
|
// Deleted group id
|
|
7405
|
-
id:
|
|
7518
|
+
id: z255.string()
|
|
7406
7519
|
});
|
|
7407
|
-
var DTODeleteDocumentationGroupInput =
|
|
7520
|
+
var DTODeleteDocumentationGroupInput = z255.object({
|
|
7408
7521
|
// Identifier
|
|
7409
|
-
id:
|
|
7522
|
+
id: z255.string(),
|
|
7410
7523
|
// Deletion options
|
|
7411
|
-
deleteSubtree:
|
|
7524
|
+
deleteSubtree: z255.boolean().default(false)
|
|
7412
7525
|
});
|
|
7413
7526
|
|
|
7414
7527
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7415
|
-
var SuccessPayload =
|
|
7416
|
-
success:
|
|
7528
|
+
var SuccessPayload = z256.object({
|
|
7529
|
+
success: z256.literal(true)
|
|
7417
7530
|
});
|
|
7418
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
7419
|
-
type:
|
|
7531
|
+
var DTODocumentationGroupCreateActionOutputV2 = z256.object({
|
|
7532
|
+
type: z256.literal("DocumentationGroupCreate"),
|
|
7420
7533
|
output: SuccessPayload
|
|
7421
7534
|
});
|
|
7422
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
7423
|
-
type:
|
|
7535
|
+
var DTODocumentationTabCreateActionOutputV2 = z256.object({
|
|
7536
|
+
type: z256.literal("DocumentationTabCreate"),
|
|
7424
7537
|
output: SuccessPayload
|
|
7425
7538
|
});
|
|
7426
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
7427
|
-
type:
|
|
7539
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z256.object({
|
|
7540
|
+
type: z256.literal("DocumentationGroupUpdate"),
|
|
7428
7541
|
output: SuccessPayload
|
|
7429
7542
|
});
|
|
7430
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
7431
|
-
type:
|
|
7543
|
+
var DTODocumentationGroupMoveActionOutputV2 = z256.object({
|
|
7544
|
+
type: z256.literal("DocumentationGroupMove"),
|
|
7432
7545
|
output: SuccessPayload
|
|
7433
7546
|
});
|
|
7434
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
7435
|
-
type:
|
|
7547
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z256.object({
|
|
7548
|
+
type: z256.literal("DocumentationGroupDuplicate"),
|
|
7436
7549
|
output: SuccessPayload
|
|
7437
7550
|
});
|
|
7438
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
7439
|
-
type:
|
|
7551
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z256.object({
|
|
7552
|
+
type: z256.literal("DocumentationGroupDelete"),
|
|
7440
7553
|
output: SuccessPayload
|
|
7441
7554
|
});
|
|
7442
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
7443
|
-
type:
|
|
7555
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z256.object({
|
|
7556
|
+
type: z256.literal("DocumentationTabGroupDelete"),
|
|
7444
7557
|
output: SuccessPayload
|
|
7445
7558
|
});
|
|
7446
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
7447
|
-
type:
|
|
7559
|
+
var DTODocumentationGroupCreateActionInputV2 = z256.object({
|
|
7560
|
+
type: z256.literal("DocumentationGroupCreate"),
|
|
7448
7561
|
input: DTOCreateDocumentationGroupInput
|
|
7449
7562
|
});
|
|
7450
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
7451
|
-
type:
|
|
7563
|
+
var DTODocumentationTabCreateActionInputV2 = z256.object({
|
|
7564
|
+
type: z256.literal("DocumentationTabCreate"),
|
|
7452
7565
|
input: DTOCreateDocumentationTabInput
|
|
7453
7566
|
});
|
|
7454
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
7455
|
-
type:
|
|
7567
|
+
var DTODocumentationGroupUpdateActionInputV2 = z256.object({
|
|
7568
|
+
type: z256.literal("DocumentationGroupUpdate"),
|
|
7456
7569
|
input: DTOUpdateDocumentationGroupInput
|
|
7457
7570
|
});
|
|
7458
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
7459
|
-
type:
|
|
7571
|
+
var DTODocumentationGroupMoveActionInputV2 = z256.object({
|
|
7572
|
+
type: z256.literal("DocumentationGroupMove"),
|
|
7460
7573
|
input: DTOMoveDocumentationGroupInput
|
|
7461
7574
|
});
|
|
7462
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
7463
|
-
type:
|
|
7575
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z256.object({
|
|
7576
|
+
type: z256.literal("DocumentationGroupDuplicate"),
|
|
7464
7577
|
input: DTODuplicateDocumentationGroupInput
|
|
7465
7578
|
});
|
|
7466
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
7467
|
-
type:
|
|
7579
|
+
var DTODocumentationGroupDeleteActionInputV2 = z256.object({
|
|
7580
|
+
type: z256.literal("DocumentationGroupDelete"),
|
|
7468
7581
|
input: DTODeleteDocumentationGroupInput
|
|
7469
7582
|
});
|
|
7470
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
7471
|
-
type:
|
|
7583
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z256.object({
|
|
7584
|
+
type: z256.literal("DocumentationTabGroupDelete"),
|
|
7472
7585
|
input: DTODeleteDocumentationTabGroupInput
|
|
7473
7586
|
});
|
|
7474
7587
|
|
|
7475
7588
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
7476
|
-
import { z as
|
|
7589
|
+
import { z as z258 } from "zod";
|
|
7477
7590
|
|
|
7478
7591
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
7479
|
-
import { z as
|
|
7480
|
-
var DocumentationColorV1 =
|
|
7481
|
-
aliasTo:
|
|
7482
|
-
value:
|
|
7592
|
+
import { z as z257 } from "zod";
|
|
7593
|
+
var DocumentationColorV1 = z257.object({
|
|
7594
|
+
aliasTo: z257.string().optional(),
|
|
7595
|
+
value: z257.string().optional()
|
|
7483
7596
|
});
|
|
7484
7597
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
7485
7598
|
foregroundColor: true,
|
|
@@ -7488,10 +7601,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
7488
7601
|
foregroundColor: DocumentationColorV1.optional(),
|
|
7489
7602
|
backgroundColor: DocumentationColorV1.optional()
|
|
7490
7603
|
});
|
|
7491
|
-
var DTODocumentationItemConfigurationV1 =
|
|
7492
|
-
showSidebar:
|
|
7493
|
-
isPrivate:
|
|
7494
|
-
isHidden:
|
|
7604
|
+
var DTODocumentationItemConfigurationV1 = z257.object({
|
|
7605
|
+
showSidebar: z257.boolean(),
|
|
7606
|
+
isPrivate: z257.boolean(),
|
|
7607
|
+
isHidden: z257.boolean(),
|
|
7495
7608
|
header: DTODocumentationItemHeaderV1
|
|
7496
7609
|
});
|
|
7497
7610
|
|
|
@@ -7505,145 +7618,145 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
7505
7618
|
data: true,
|
|
7506
7619
|
shortPersistentId: true
|
|
7507
7620
|
}).extend({
|
|
7508
|
-
title:
|
|
7509
|
-
isRoot:
|
|
7510
|
-
childrenIds:
|
|
7621
|
+
title: z258.string(),
|
|
7622
|
+
isRoot: z258.boolean(),
|
|
7623
|
+
childrenIds: z258.array(z258.string()),
|
|
7511
7624
|
groupBehavior: DocumentationGroupBehavior,
|
|
7512
|
-
shortPersistentId:
|
|
7513
|
-
type:
|
|
7625
|
+
shortPersistentId: z258.string(),
|
|
7626
|
+
type: z258.literal("Group")
|
|
7514
7627
|
});
|
|
7515
7628
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
7516
7629
|
configuration: DTODocumentationItemConfigurationV1
|
|
7517
7630
|
});
|
|
7518
7631
|
|
|
7519
7632
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
7520
|
-
import { z as
|
|
7521
|
-
var DTODocumentationHierarchyV2 =
|
|
7522
|
-
pages:
|
|
7633
|
+
import { z as z259 } from "zod";
|
|
7634
|
+
var DTODocumentationHierarchyV2 = z259.object({
|
|
7635
|
+
pages: z259.array(
|
|
7523
7636
|
DTODocumentationPageV2.extend({
|
|
7524
7637
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7525
7638
|
draftState: DTODocumentationDraftState.optional()
|
|
7526
7639
|
})
|
|
7527
7640
|
),
|
|
7528
|
-
groups:
|
|
7641
|
+
groups: z259.array(
|
|
7529
7642
|
DTODocumentationGroupV2.extend({
|
|
7530
7643
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7531
7644
|
draftState: DTODocumentationDraftState.optional()
|
|
7532
7645
|
})
|
|
7533
7646
|
),
|
|
7534
7647
|
/** True if the documentation was already published, false otherwise. */
|
|
7535
|
-
hasPublishedDocumentationContent:
|
|
7648
|
+
hasPublishedDocumentationContent: z259.boolean()
|
|
7536
7649
|
});
|
|
7537
7650
|
|
|
7538
7651
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
7539
|
-
import { z as
|
|
7540
|
-
var SuccessPayload2 =
|
|
7541
|
-
success:
|
|
7652
|
+
import { z as z260 } from "zod";
|
|
7653
|
+
var SuccessPayload2 = z260.object({
|
|
7654
|
+
success: z260.literal(true)
|
|
7542
7655
|
});
|
|
7543
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
7544
|
-
type:
|
|
7656
|
+
var DTODocumentationPageCreateActionOutputV2 = z260.object({
|
|
7657
|
+
type: z260.literal("DocumentationPageCreate"),
|
|
7545
7658
|
output: SuccessPayload2
|
|
7546
7659
|
});
|
|
7547
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
7548
|
-
type:
|
|
7660
|
+
var DTODocumentationPageUpdateActionOutputV2 = z260.object({
|
|
7661
|
+
type: z260.literal("DocumentationPageUpdate"),
|
|
7549
7662
|
output: SuccessPayload2
|
|
7550
7663
|
});
|
|
7551
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
7552
|
-
type:
|
|
7664
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z260.object({
|
|
7665
|
+
type: z260.literal("DocumentationPageUpdateDocument"),
|
|
7553
7666
|
output: SuccessPayload2
|
|
7554
7667
|
});
|
|
7555
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
7556
|
-
type:
|
|
7668
|
+
var DTODocumentationPageMoveActionOutputV2 = z260.object({
|
|
7669
|
+
type: z260.literal("DocumentationPageMove"),
|
|
7557
7670
|
output: SuccessPayload2
|
|
7558
7671
|
});
|
|
7559
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
7560
|
-
type:
|
|
7672
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z260.object({
|
|
7673
|
+
type: z260.literal("DocumentationPageDuplicate"),
|
|
7561
7674
|
output: SuccessPayload2
|
|
7562
7675
|
});
|
|
7563
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
7564
|
-
type:
|
|
7676
|
+
var DTODocumentationPageDeleteActionOutputV2 = z260.object({
|
|
7677
|
+
type: z260.literal("DocumentationPageDelete"),
|
|
7565
7678
|
output: SuccessPayload2
|
|
7566
7679
|
});
|
|
7567
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
7568
|
-
type:
|
|
7680
|
+
var DTODocumentationPageRestoreActionOutput = z260.object({
|
|
7681
|
+
type: z260.literal("DocumentationPageRestore"),
|
|
7569
7682
|
output: SuccessPayload2
|
|
7570
7683
|
});
|
|
7571
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
7572
|
-
type:
|
|
7684
|
+
var DTODocumentationGroupRestoreActionOutput = z260.object({
|
|
7685
|
+
type: z260.literal("DocumentationGroupRestore"),
|
|
7573
7686
|
output: SuccessPayload2
|
|
7574
7687
|
});
|
|
7575
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
7576
|
-
type:
|
|
7688
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z260.object({
|
|
7689
|
+
type: z260.literal("DocumentationPageApprovalStateChange"),
|
|
7577
7690
|
output: SuccessPayload2
|
|
7578
7691
|
});
|
|
7579
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
7580
|
-
type:
|
|
7692
|
+
var DTODocumentationPageCreateActionInputV2 = z260.object({
|
|
7693
|
+
type: z260.literal("DocumentationPageCreate"),
|
|
7581
7694
|
input: DTOCreateDocumentationPageInputV2
|
|
7582
7695
|
});
|
|
7583
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
7584
|
-
type:
|
|
7696
|
+
var DTODocumentationPageUpdateActionInputV2 = z260.object({
|
|
7697
|
+
type: z260.literal("DocumentationPageUpdate"),
|
|
7585
7698
|
input: DTOUpdateDocumentationPageInputV2
|
|
7586
7699
|
});
|
|
7587
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
7588
|
-
type:
|
|
7700
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z260.object({
|
|
7701
|
+
type: z260.literal("DocumentationPageUpdateDocument"),
|
|
7589
7702
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7590
7703
|
});
|
|
7591
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
7592
|
-
type:
|
|
7704
|
+
var DTODocumentationPageMoveActionInputV2 = z260.object({
|
|
7705
|
+
type: z260.literal("DocumentationPageMove"),
|
|
7593
7706
|
input: DTOMoveDocumentationPageInputV2
|
|
7594
7707
|
});
|
|
7595
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
7596
|
-
type:
|
|
7708
|
+
var DTODocumentationPageDuplicateActionInputV2 = z260.object({
|
|
7709
|
+
type: z260.literal("DocumentationPageDuplicate"),
|
|
7597
7710
|
input: DTODuplicateDocumentationPageInputV2
|
|
7598
7711
|
});
|
|
7599
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
7600
|
-
type:
|
|
7712
|
+
var DTODocumentationPageDeleteActionInputV2 = z260.object({
|
|
7713
|
+
type: z260.literal("DocumentationPageDelete"),
|
|
7601
7714
|
input: DTODeleteDocumentationPageInputV2
|
|
7602
7715
|
});
|
|
7603
|
-
var DTODocumentationPageRestoreActionInput =
|
|
7604
|
-
type:
|
|
7716
|
+
var DTODocumentationPageRestoreActionInput = z260.object({
|
|
7717
|
+
type: z260.literal("DocumentationPageRestore"),
|
|
7605
7718
|
input: DTORestoreDocumentationPageInput
|
|
7606
7719
|
});
|
|
7607
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
7608
|
-
type:
|
|
7720
|
+
var DTODocumentationGroupRestoreActionInput = z260.object({
|
|
7721
|
+
type: z260.literal("DocumentationGroupRestore"),
|
|
7609
7722
|
input: DTORestoreDocumentationGroupInput
|
|
7610
7723
|
});
|
|
7611
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
7612
|
-
type:
|
|
7724
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z260.object({
|
|
7725
|
+
type: z260.literal("DocumentationPageApprovalStateChange"),
|
|
7613
7726
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
7614
7727
|
});
|
|
7615
7728
|
|
|
7616
7729
|
// src/api/dto/elements/documentation/page-content.ts
|
|
7617
|
-
import { z as
|
|
7730
|
+
import { z as z261 } from "zod";
|
|
7618
7731
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
7619
|
-
var DTODocumentationPageContentGetResponse =
|
|
7732
|
+
var DTODocumentationPageContentGetResponse = z261.object({
|
|
7620
7733
|
pageContent: DTODocumentationPageContent
|
|
7621
7734
|
});
|
|
7622
7735
|
|
|
7623
7736
|
// src/api/dto/elements/documentation/page-dependencies.ts
|
|
7624
|
-
import { z as
|
|
7625
|
-
var DTODocumentationPageDependencies =
|
|
7626
|
-
id:
|
|
7627
|
-
designSystemVersionId:
|
|
7628
|
-
createdAt:
|
|
7629
|
-
updatedAt:
|
|
7630
|
-
documentationPageId:
|
|
7631
|
-
tokenPersistentIds:
|
|
7632
|
-
figmaComponentPersistentIds:
|
|
7633
|
-
componentPersistentIds:
|
|
7634
|
-
figmaNodePersistentIds:
|
|
7635
|
-
groupPersistentIds:
|
|
7636
|
-
propertyPersistentIds:
|
|
7637
|
-
themePersistentIds:
|
|
7638
|
-
documentationPagePersistentIds:
|
|
7639
|
-
storybookEntriesStoryIds:
|
|
7640
|
-
});
|
|
7641
|
-
var DTODocumentationPageDependenciesGetResponse =
|
|
7642
|
-
dependencies:
|
|
7737
|
+
import { z as z262 } from "zod";
|
|
7738
|
+
var DTODocumentationPageDependencies = z262.object({
|
|
7739
|
+
id: z262.string(),
|
|
7740
|
+
designSystemVersionId: z262.string(),
|
|
7741
|
+
createdAt: z262.coerce.date(),
|
|
7742
|
+
updatedAt: z262.coerce.date(),
|
|
7743
|
+
documentationPageId: z262.string(),
|
|
7744
|
+
tokenPersistentIds: z262.array(z262.string()),
|
|
7745
|
+
figmaComponentPersistentIds: z262.array(z262.string()),
|
|
7746
|
+
componentPersistentIds: z262.array(z262.string()),
|
|
7747
|
+
figmaNodePersistentIds: z262.array(z262.string()),
|
|
7748
|
+
groupPersistentIds: z262.array(z262.string()),
|
|
7749
|
+
propertyPersistentIds: z262.array(z262.string()),
|
|
7750
|
+
themePersistentIds: z262.array(z262.string()),
|
|
7751
|
+
documentationPagePersistentIds: z262.array(z262.string()),
|
|
7752
|
+
storybookEntriesStoryIds: z262.array(z262.string())
|
|
7753
|
+
});
|
|
7754
|
+
var DTODocumentationPageDependenciesGetResponse = z262.object({
|
|
7755
|
+
dependencies: z262.array(DTODocumentationPageDependencies)
|
|
7643
7756
|
});
|
|
7644
7757
|
|
|
7645
7758
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
7646
|
-
import { z as
|
|
7759
|
+
import { z as z263 } from "zod";
|
|
7647
7760
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
7648
7761
|
data: true,
|
|
7649
7762
|
meta: true,
|
|
@@ -7651,81 +7764,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7651
7764
|
sortOrder: true
|
|
7652
7765
|
}).extend({
|
|
7653
7766
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7654
|
-
blocks:
|
|
7655
|
-
title:
|
|
7656
|
-
path:
|
|
7767
|
+
blocks: z263.array(PageBlockV1),
|
|
7768
|
+
title: z263.string(),
|
|
7769
|
+
path: z263.string()
|
|
7657
7770
|
});
|
|
7658
7771
|
|
|
7659
7772
|
// src/api/dto/elements/documentation/settings.ts
|
|
7660
|
-
import { z as
|
|
7661
|
-
var DTODocumentationSettings =
|
|
7662
|
-
isDraftFeatureAdopted:
|
|
7663
|
-
isApprovalsFeatureEnabled:
|
|
7664
|
-
isApprovalRequiredForPublishing:
|
|
7773
|
+
import { z as z264 } from "zod";
|
|
7774
|
+
var DTODocumentationSettings = z264.object({
|
|
7775
|
+
isDraftFeatureAdopted: z264.boolean(),
|
|
7776
|
+
isApprovalsFeatureEnabled: z264.boolean(),
|
|
7777
|
+
isApprovalRequiredForPublishing: z264.boolean()
|
|
7665
7778
|
});
|
|
7666
7779
|
|
|
7667
7780
|
// src/api/dto/elements/documentation/structure.ts
|
|
7668
|
-
import { z as
|
|
7669
|
-
var DTODocumentationStructureItemType =
|
|
7670
|
-
var DTODocumentationStructureItemBase =
|
|
7781
|
+
import { z as z265 } from "zod";
|
|
7782
|
+
var DTODocumentationStructureItemType = z265.enum(["Group", "Page"]);
|
|
7783
|
+
var DTODocumentationStructureItemBase = z265.object({
|
|
7671
7784
|
type: DTODocumentationStructureItemType,
|
|
7672
|
-
id:
|
|
7673
|
-
designSystemVersionId:
|
|
7674
|
-
shortPersistentId:
|
|
7675
|
-
persistentId:
|
|
7676
|
-
title:
|
|
7677
|
-
createdAt:
|
|
7678
|
-
updatedAt:
|
|
7785
|
+
id: z265.string(),
|
|
7786
|
+
designSystemVersionId: z265.string(),
|
|
7787
|
+
shortPersistentId: z265.string(),
|
|
7788
|
+
persistentId: z265.string(),
|
|
7789
|
+
title: z265.string(),
|
|
7790
|
+
createdAt: z265.coerce.date(),
|
|
7791
|
+
updatedAt: z265.coerce.date()
|
|
7679
7792
|
});
|
|
7680
7793
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7681
|
-
type:
|
|
7682
|
-
groupBehavior:
|
|
7683
|
-
childrenIds:
|
|
7684
|
-
isRoot:
|
|
7794
|
+
type: z265.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7795
|
+
groupBehavior: z265.string(),
|
|
7796
|
+
childrenIds: z265.string().array(),
|
|
7797
|
+
isRoot: z265.boolean()
|
|
7685
7798
|
});
|
|
7686
7799
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7687
|
-
type:
|
|
7688
|
-
path:
|
|
7800
|
+
type: z265.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7801
|
+
path: z265.string()
|
|
7689
7802
|
});
|
|
7690
|
-
var DTODocumentationStructureItem =
|
|
7803
|
+
var DTODocumentationStructureItem = z265.discriminatedUnion("type", [
|
|
7691
7804
|
DTODocumentationStructureGroupItem,
|
|
7692
7805
|
DTODocumentationStructurePageItem
|
|
7693
7806
|
]);
|
|
7694
|
-
var DTODocumentationStructure =
|
|
7695
|
-
items:
|
|
7807
|
+
var DTODocumentationStructure = z265.object({
|
|
7808
|
+
items: z265.array(DTODocumentationStructureItem)
|
|
7696
7809
|
});
|
|
7697
7810
|
|
|
7698
7811
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
7699
|
-
import { z as
|
|
7700
|
-
var DTOFigmaNodeStructure =
|
|
7701
|
-
id:
|
|
7702
|
-
sourceId:
|
|
7812
|
+
import { z as z266 } from "zod";
|
|
7813
|
+
var DTOFigmaNodeStructure = z266.object({
|
|
7814
|
+
id: z266.string(),
|
|
7815
|
+
sourceId: z266.string(),
|
|
7703
7816
|
importState: FigmaNodeStructureStateV2,
|
|
7704
|
-
createdAt:
|
|
7705
|
-
updatedAt:
|
|
7817
|
+
createdAt: z266.coerce.date(),
|
|
7818
|
+
updatedAt: z266.coerce.date()
|
|
7706
7819
|
});
|
|
7707
7820
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
7708
7821
|
rootNode: FigmaFileStructureNode
|
|
7709
7822
|
});
|
|
7710
|
-
var DTOFigmaNodeStructureListResponse =
|
|
7823
|
+
var DTOFigmaNodeStructureListResponse = z266.object({
|
|
7711
7824
|
structures: DTOFigmaNodeStructure.array()
|
|
7712
7825
|
});
|
|
7713
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
7826
|
+
var DTOFigmaNodeStructureDetailResponse = z266.object({
|
|
7714
7827
|
structure: DTOFigmaNodeStructureDetail
|
|
7715
7828
|
});
|
|
7716
7829
|
|
|
7717
7830
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7718
|
-
import { z as
|
|
7831
|
+
import { z as z268 } from "zod";
|
|
7719
7832
|
|
|
7720
7833
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7721
|
-
import { z as
|
|
7834
|
+
import { z as z267 } from "zod";
|
|
7722
7835
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7723
|
-
var DTOFigmaNodeOrigin =
|
|
7724
|
-
sourceId:
|
|
7725
|
-
fileId:
|
|
7726
|
-
parentName:
|
|
7836
|
+
var DTOFigmaNodeOrigin = z267.object({
|
|
7837
|
+
sourceId: z267.string(),
|
|
7838
|
+
fileId: z267.string().optional(),
|
|
7839
|
+
parentName: z267.string().optional()
|
|
7727
7840
|
});
|
|
7728
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7841
|
+
var DTOFigmaNodeRenderInputBase = z267.object({
|
|
7729
7842
|
/**
|
|
7730
7843
|
* Format in which the node must be rendered, png by default.
|
|
7731
7844
|
*/
|
|
@@ -7733,57 +7846,57 @@ var DTOFigmaNodeRenderInputBase = z265.object({
|
|
|
7733
7846
|
/**
|
|
7734
7847
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7735
7848
|
*/
|
|
7736
|
-
scale:
|
|
7849
|
+
scale: z267.number().optional()
|
|
7737
7850
|
});
|
|
7738
7851
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7739
|
-
inputType:
|
|
7852
|
+
inputType: z267.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7740
7853
|
/**
|
|
7741
7854
|
* Id of a design system's data source representing a linked Figma file
|
|
7742
7855
|
*/
|
|
7743
|
-
sourceId:
|
|
7856
|
+
sourceId: z267.string(),
|
|
7744
7857
|
/**
|
|
7745
7858
|
* Id of a node within the Figma file
|
|
7746
7859
|
*/
|
|
7747
|
-
figmaFileNodeId:
|
|
7860
|
+
figmaFileNodeId: z267.string()
|
|
7748
7861
|
});
|
|
7749
7862
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7750
|
-
inputType:
|
|
7863
|
+
inputType: z267.literal("URL"),
|
|
7751
7864
|
/**
|
|
7752
7865
|
* Id of a design system's data source representing a linked Figma file
|
|
7753
7866
|
*/
|
|
7754
|
-
figmaNodeUrl:
|
|
7867
|
+
figmaNodeUrl: z267.string(),
|
|
7755
7868
|
/**
|
|
7756
7869
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7757
7870
|
*/
|
|
7758
|
-
brandPersistentId:
|
|
7871
|
+
brandPersistentId: z267.string()
|
|
7759
7872
|
});
|
|
7760
|
-
var DTOFigmaNodeRerenderInput =
|
|
7761
|
-
inputType:
|
|
7873
|
+
var DTOFigmaNodeRerenderInput = z267.object({
|
|
7874
|
+
inputType: z267.literal("Rerender"),
|
|
7762
7875
|
/**
|
|
7763
7876
|
* Persistent ID of an existing Figma node
|
|
7764
7877
|
*/
|
|
7765
|
-
figmaNodePersistentId:
|
|
7878
|
+
figmaNodePersistentId: z267.string()
|
|
7766
7879
|
});
|
|
7767
|
-
var DTOFigmaNodeRenderInput =
|
|
7880
|
+
var DTOFigmaNodeRenderInput = z267.discriminatedUnion("inputType", [
|
|
7768
7881
|
DTOFigmaNodeRenderIdInput,
|
|
7769
7882
|
DTOFigmaNodeRenderUrlInput,
|
|
7770
7883
|
DTOFigmaNodeRerenderInput
|
|
7771
7884
|
]);
|
|
7772
7885
|
|
|
7773
7886
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7774
|
-
var DTOFigmaNodeData =
|
|
7887
|
+
var DTOFigmaNodeData = z268.object({
|
|
7775
7888
|
// Id of the node in the Figma file
|
|
7776
|
-
figmaNodeId:
|
|
7889
|
+
figmaNodeId: z268.string(),
|
|
7777
7890
|
// Validity
|
|
7778
|
-
isValid:
|
|
7891
|
+
isValid: z268.boolean(),
|
|
7779
7892
|
// Asset data
|
|
7780
|
-
assetId:
|
|
7781
|
-
assetUrl:
|
|
7893
|
+
assetId: z268.string(),
|
|
7894
|
+
assetUrl: z268.string(),
|
|
7782
7895
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7783
7896
|
// Asset metadata
|
|
7784
|
-
assetScale:
|
|
7785
|
-
assetWidth:
|
|
7786
|
-
assetHeight:
|
|
7897
|
+
assetScale: z268.number(),
|
|
7898
|
+
assetWidth: z268.number().optional(),
|
|
7899
|
+
assetHeight: z268.number().optional()
|
|
7787
7900
|
});
|
|
7788
7901
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7789
7902
|
data: true,
|
|
@@ -7794,15 +7907,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7794
7907
|
});
|
|
7795
7908
|
|
|
7796
7909
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7797
|
-
import { z as
|
|
7798
|
-
var DTOFigmaNodeDataV2 =
|
|
7799
|
-
sceneNodeId:
|
|
7910
|
+
import { z as z269 } from "zod";
|
|
7911
|
+
var DTOFigmaNodeDataV2 = z269.object({
|
|
7912
|
+
sceneNodeId: z269.string(),
|
|
7800
7913
|
format: FigmaNodeRenderFormat,
|
|
7801
|
-
scale:
|
|
7914
|
+
scale: z269.number().optional(),
|
|
7802
7915
|
renderState: FigmaNodeRenderState,
|
|
7803
7916
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7804
7917
|
renderError: FigmaNodeRenderError.optional(),
|
|
7805
|
-
hasSource:
|
|
7918
|
+
hasSource: z269.boolean()
|
|
7806
7919
|
});
|
|
7807
7920
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7808
7921
|
data: true,
|
|
@@ -7813,113 +7926,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7813
7926
|
});
|
|
7814
7927
|
|
|
7815
7928
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7816
|
-
import { z as
|
|
7817
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7818
|
-
type:
|
|
7819
|
-
figmaNodes:
|
|
7929
|
+
import { z as z270 } from "zod";
|
|
7930
|
+
var DTOFigmaNodeRenderActionOutput = z270.object({
|
|
7931
|
+
type: z270.literal("FigmaNodeRender"),
|
|
7932
|
+
figmaNodes: z270.array(DTOFigmaNode)
|
|
7820
7933
|
});
|
|
7821
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7822
|
-
type:
|
|
7823
|
-
figmaNodes:
|
|
7934
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z270.object({
|
|
7935
|
+
type: z270.literal("FigmaNodeRenderAsync"),
|
|
7936
|
+
figmaNodes: z270.array(DTOFigmaNodeV2)
|
|
7824
7937
|
});
|
|
7825
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7826
|
-
type:
|
|
7938
|
+
var DTOFigmaNodeRenderActionInput = z270.object({
|
|
7939
|
+
type: z270.literal("FigmaNodeRender"),
|
|
7827
7940
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7828
7941
|
});
|
|
7829
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7830
|
-
type:
|
|
7942
|
+
var DTOFigmaNodeRenderAsyncActionInput = z270.object({
|
|
7943
|
+
type: z270.literal("FigmaNodeRenderAsync"),
|
|
7831
7944
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7832
7945
|
});
|
|
7833
7946
|
|
|
7834
7947
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
7835
|
-
import { z as
|
|
7836
|
-
var DTOFrameNodeStructure =
|
|
7837
|
-
id:
|
|
7838
|
-
persistentId:
|
|
7839
|
-
designSystemVersionId:
|
|
7948
|
+
import { z as z271 } from "zod";
|
|
7949
|
+
var DTOFrameNodeStructure = z271.object({
|
|
7950
|
+
id: z271.string(),
|
|
7951
|
+
persistentId: z271.string(),
|
|
7952
|
+
designSystemVersionId: z271.string(),
|
|
7840
7953
|
origin: FigmaFileStructureOrigin,
|
|
7841
7954
|
assetsInFile: FigmaFileStructureStatistics
|
|
7842
7955
|
});
|
|
7843
|
-
var DTOFrameNodeStructureListResponse =
|
|
7956
|
+
var DTOFrameNodeStructureListResponse = z271.object({
|
|
7844
7957
|
structures: DTOFrameNodeStructure.array()
|
|
7845
7958
|
});
|
|
7846
7959
|
|
|
7847
7960
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
7848
|
-
import { z as
|
|
7961
|
+
import { z as z272 } from "zod";
|
|
7849
7962
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
7850
|
-
var DTOElementPropertyDefinitionOption =
|
|
7851
|
-
id:
|
|
7852
|
-
name:
|
|
7963
|
+
var DTOElementPropertyDefinitionOption = z272.object({
|
|
7964
|
+
id: z272.string(),
|
|
7965
|
+
name: z272.string(),
|
|
7853
7966
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
7854
7967
|
});
|
|
7855
|
-
var DTOElementPropertyDefinition =
|
|
7856
|
-
id:
|
|
7857
|
-
designSystemVersionId:
|
|
7968
|
+
var DTOElementPropertyDefinition = z272.object({
|
|
7969
|
+
id: z272.string(),
|
|
7970
|
+
designSystemVersionId: z272.string(),
|
|
7858
7971
|
meta: DTOObjectMeta,
|
|
7859
|
-
persistentId:
|
|
7972
|
+
persistentId: z272.string(),
|
|
7860
7973
|
type: ElementPropertyTypeSchema,
|
|
7861
7974
|
targetElementType: ElementPropertyTargetType,
|
|
7862
|
-
codeName:
|
|
7863
|
-
options: nullishToOptional(
|
|
7975
|
+
codeName: z272.string().regex(CODE_NAME_REGEX2),
|
|
7976
|
+
options: nullishToOptional(z272.array(DTOElementPropertyDefinitionOption)),
|
|
7864
7977
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7865
|
-
isImmutable:
|
|
7978
|
+
isImmutable: z272.boolean(),
|
|
7866
7979
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
7867
7980
|
});
|
|
7868
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
7869
|
-
definitions:
|
|
7981
|
+
var DTOElementPropertyDefinitionListResponse = z272.object({
|
|
7982
|
+
definitions: z272.array(DTOElementPropertyDefinition)
|
|
7870
7983
|
});
|
|
7871
|
-
var DTOElementPropertyDefinitionResponse =
|
|
7984
|
+
var DTOElementPropertyDefinitionResponse = z272.object({
|
|
7872
7985
|
definition: DTOElementPropertyDefinition
|
|
7873
7986
|
});
|
|
7874
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
7987
|
+
var DTOElementPropertyDefinitionCreatePayload = z272.object({
|
|
7875
7988
|
meta: DTOObjectMeta,
|
|
7876
|
-
persistentId:
|
|
7989
|
+
persistentId: z272.string(),
|
|
7877
7990
|
type: ElementPropertyTypeSchema,
|
|
7878
7991
|
targetElementType: ElementPropertyTargetType,
|
|
7879
|
-
codeName:
|
|
7880
|
-
options: nullishToOptional(
|
|
7992
|
+
codeName: z272.string().regex(CODE_NAME_REGEX2),
|
|
7993
|
+
options: nullishToOptional(z272.array(DTOElementPropertyDefinitionOption)),
|
|
7881
7994
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7882
|
-
columnWidth:
|
|
7995
|
+
columnWidth: z272.number().max(1024).optional()
|
|
7883
7996
|
});
|
|
7884
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
7997
|
+
var DTOElementPropertyDefinitionUpdatePayload = z272.object({
|
|
7885
7998
|
meta: DTOObjectMeta.optional(),
|
|
7886
|
-
codeName:
|
|
7887
|
-
options:
|
|
7999
|
+
codeName: z272.string().regex(CODE_NAME_REGEX2).optional(),
|
|
8000
|
+
options: z272.array(DTOElementPropertyDefinitionOption).optional()
|
|
7888
8001
|
});
|
|
7889
8002
|
|
|
7890
8003
|
// src/api/dto/elements/properties/property-values.ts
|
|
7891
|
-
import { z as
|
|
7892
|
-
var DTOElementPropertyValue =
|
|
7893
|
-
id:
|
|
7894
|
-
designSystemVersionId:
|
|
7895
|
-
definitionId:
|
|
7896
|
-
targetElementId:
|
|
7897
|
-
value:
|
|
7898
|
-
valuePreview:
|
|
7899
|
-
});
|
|
7900
|
-
var DTOElementPropertyValueListResponse =
|
|
7901
|
-
values:
|
|
7902
|
-
});
|
|
7903
|
-
var DTOElementPropertyValueResponse =
|
|
8004
|
+
import { z as z273 } from "zod";
|
|
8005
|
+
var DTOElementPropertyValue = z273.object({
|
|
8006
|
+
id: z273.string(),
|
|
8007
|
+
designSystemVersionId: z273.string(),
|
|
8008
|
+
definitionId: z273.string(),
|
|
8009
|
+
targetElementId: z273.string(),
|
|
8010
|
+
value: z273.union([z273.string(), z273.number(), z273.boolean()]).optional(),
|
|
8011
|
+
valuePreview: z273.string().optional()
|
|
8012
|
+
});
|
|
8013
|
+
var DTOElementPropertyValueListResponse = z273.object({
|
|
8014
|
+
values: z273.array(DTOElementPropertyValue)
|
|
8015
|
+
});
|
|
8016
|
+
var DTOElementPropertyValueResponse = z273.object({
|
|
7904
8017
|
value: DTOElementPropertyValue
|
|
7905
8018
|
});
|
|
7906
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
7907
|
-
type:
|
|
7908
|
-
output:
|
|
8019
|
+
var DTOElementPropertyValuesEditActionOutput = z273.object({
|
|
8020
|
+
type: z273.literal("ElementPropertyValuesEdit"),
|
|
8021
|
+
output: z273.object({ success: z273.literal(true) })
|
|
7909
8022
|
});
|
|
7910
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
7911
|
-
definitionId:
|
|
7912
|
-
targetElementId:
|
|
7913
|
-
value:
|
|
8023
|
+
var DTOElementPropertyValueUpsertPaylod = z273.object({
|
|
8024
|
+
definitionId: z273.string(),
|
|
8025
|
+
targetElementId: z273.string(),
|
|
8026
|
+
value: z273.string().or(z273.number()).or(z273.boolean()).nullable()
|
|
7914
8027
|
});
|
|
7915
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
7916
|
-
type:
|
|
8028
|
+
var DTOElementPropertyValuesEditActionInput = z273.object({
|
|
8029
|
+
type: z273.literal("ElementPropertyValuesEdit"),
|
|
7917
8030
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
7918
8031
|
});
|
|
7919
8032
|
|
|
7920
8033
|
// src/api/dto/elements/elements-action-v2.ts
|
|
7921
|
-
import { z as
|
|
7922
|
-
var DTOElementActionOutput =
|
|
8034
|
+
import { z as z274 } from "zod";
|
|
8035
|
+
var DTOElementActionOutput = z274.discriminatedUnion("type", [
|
|
7923
8036
|
// Documentation pages
|
|
7924
8037
|
DTODocumentationPageCreateActionOutputV2,
|
|
7925
8038
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -7946,7 +8059,7 @@ var DTOElementActionOutput = z272.discriminatedUnion("type", [
|
|
|
7946
8059
|
// Element properties
|
|
7947
8060
|
DTOElementPropertyValuesEditActionOutput
|
|
7948
8061
|
]);
|
|
7949
|
-
var DTOElementActionInput =
|
|
8062
|
+
var DTOElementActionInput = z274.discriminatedUnion("type", [
|
|
7950
8063
|
// Documentation pages
|
|
7951
8064
|
DTODocumentationPageCreateActionInputV2,
|
|
7952
8065
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7973,90 +8086,90 @@ var DTOElementActionInput = z272.discriminatedUnion("type", [
|
|
|
7973
8086
|
// Element properties
|
|
7974
8087
|
DTOElementPropertyValuesEditActionInput
|
|
7975
8088
|
]).and(
|
|
7976
|
-
|
|
7977
|
-
tId:
|
|
8089
|
+
z274.object({
|
|
8090
|
+
tId: z274.string().optional()
|
|
7978
8091
|
})
|
|
7979
8092
|
);
|
|
7980
8093
|
|
|
7981
8094
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7982
|
-
import { z as
|
|
7983
|
-
var DTOElementsGetTypeFilter =
|
|
7984
|
-
var DTOElementsGetQuerySchema =
|
|
7985
|
-
types:
|
|
7986
|
-
responseVersion:
|
|
8095
|
+
import { z as z275 } from "zod";
|
|
8096
|
+
var DTOElementsGetTypeFilter = z275.enum(["FigmaNode"]);
|
|
8097
|
+
var DTOElementsGetQuerySchema = z275.object({
|
|
8098
|
+
types: z275.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
8099
|
+
responseVersion: z275.coerce.number().default(1)
|
|
7987
8100
|
});
|
|
7988
|
-
var DTOElementsGetOutput =
|
|
7989
|
-
figmaNodes:
|
|
8101
|
+
var DTOElementsGetOutput = z275.object({
|
|
8102
|
+
figmaNodes: z275.array(DTOFigmaNode).optional()
|
|
7990
8103
|
});
|
|
7991
|
-
var DTOElementsGetOutputV2 =
|
|
7992
|
-
figmaNodes:
|
|
8104
|
+
var DTOElementsGetOutputV2 = z275.object({
|
|
8105
|
+
figmaNodes: z275.array(DTOFigmaNodeV2).optional()
|
|
7993
8106
|
});
|
|
7994
8107
|
|
|
7995
8108
|
// src/api/dto/figma-components/assets/download.ts
|
|
7996
|
-
import { z as
|
|
7997
|
-
var DTOAssetRenderConfiguration =
|
|
7998
|
-
prefix:
|
|
7999
|
-
suffix:
|
|
8000
|
-
scale:
|
|
8001
|
-
format:
|
|
8002
|
-
});
|
|
8003
|
-
var DTORenderedAssetFile =
|
|
8004
|
-
assetId:
|
|
8005
|
-
fileName:
|
|
8006
|
-
sourceUrl:
|
|
8109
|
+
import { z as z276 } from "zod";
|
|
8110
|
+
var DTOAssetRenderConfiguration = z276.object({
|
|
8111
|
+
prefix: z276.string().optional(),
|
|
8112
|
+
suffix: z276.string().optional(),
|
|
8113
|
+
scale: z276.enum(["x1", "x2", "x3", "x4"]),
|
|
8114
|
+
format: z276.enum(["png", "pdf", "svg"])
|
|
8115
|
+
});
|
|
8116
|
+
var DTORenderedAssetFile = z276.object({
|
|
8117
|
+
assetId: z276.string(),
|
|
8118
|
+
fileName: z276.string(),
|
|
8119
|
+
sourceUrl: z276.string(),
|
|
8007
8120
|
settings: DTOAssetRenderConfiguration,
|
|
8008
|
-
originalName:
|
|
8121
|
+
originalName: z276.string()
|
|
8009
8122
|
});
|
|
8010
|
-
var DTODownloadAssetsRequest =
|
|
8011
|
-
persistentIds:
|
|
8123
|
+
var DTODownloadAssetsRequest = z276.object({
|
|
8124
|
+
persistentIds: z276.array(z276.string().uuid()).optional(),
|
|
8012
8125
|
settings: DTOAssetRenderConfiguration.array()
|
|
8013
8126
|
});
|
|
8014
|
-
var DTODownloadAssetsResponse =
|
|
8127
|
+
var DTODownloadAssetsResponse = z276.object({
|
|
8015
8128
|
items: DTORenderedAssetFile.array()
|
|
8016
8129
|
});
|
|
8017
8130
|
|
|
8018
8131
|
// src/api/dto/liveblocks/auth-response.ts
|
|
8019
|
-
import { z as
|
|
8020
|
-
var DTOLiveblocksAuthResponse =
|
|
8021
|
-
token:
|
|
8132
|
+
import { z as z277 } from "zod";
|
|
8133
|
+
var DTOLiveblocksAuthResponse = z277.object({
|
|
8134
|
+
token: z277.string()
|
|
8022
8135
|
});
|
|
8023
8136
|
|
|
8024
8137
|
// src/api/dto/themes/override.ts
|
|
8025
|
-
import { z as
|
|
8138
|
+
import { z as z278 } from "zod";
|
|
8026
8139
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
8027
|
-
|
|
8028
|
-
tokenPersistentId:
|
|
8140
|
+
z278.object({
|
|
8141
|
+
tokenPersistentId: z278.string(),
|
|
8029
8142
|
origin: ThemeOverrideOrigin.optional()
|
|
8030
8143
|
})
|
|
8031
8144
|
);
|
|
8032
8145
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
8033
|
-
|
|
8034
|
-
tokenPersistentId:
|
|
8146
|
+
z278.object({
|
|
8147
|
+
tokenPersistentId: z278.string()
|
|
8035
8148
|
})
|
|
8036
8149
|
);
|
|
8037
8150
|
|
|
8038
8151
|
// src/api/dto/themes/theme.ts
|
|
8039
|
-
import { z as
|
|
8040
|
-
var DTOTheme =
|
|
8041
|
-
id:
|
|
8042
|
-
persistentId:
|
|
8043
|
-
designSystemVersionId:
|
|
8044
|
-
brandId:
|
|
8152
|
+
import { z as z279 } from "zod";
|
|
8153
|
+
var DTOTheme = z279.object({
|
|
8154
|
+
id: z279.string(),
|
|
8155
|
+
persistentId: z279.string(),
|
|
8156
|
+
designSystemVersionId: z279.string(),
|
|
8157
|
+
brandId: z279.string(),
|
|
8045
8158
|
meta: ObjectMeta,
|
|
8046
|
-
codeName:
|
|
8159
|
+
codeName: z279.string(),
|
|
8047
8160
|
overrides: DTOThemeOverride.array()
|
|
8048
8161
|
});
|
|
8049
|
-
var DTOThemeResponse =
|
|
8162
|
+
var DTOThemeResponse = z279.object({
|
|
8050
8163
|
theme: DTOTheme
|
|
8051
8164
|
});
|
|
8052
|
-
var DTOThemeListResponse =
|
|
8165
|
+
var DTOThemeListResponse = z279.object({
|
|
8053
8166
|
themes: DTOTheme.array()
|
|
8054
8167
|
});
|
|
8055
|
-
var DTOThemeCreatePayload =
|
|
8168
|
+
var DTOThemeCreatePayload = z279.object({
|
|
8056
8169
|
meta: ObjectMeta,
|
|
8057
|
-
persistentId:
|
|
8058
|
-
brandId:
|
|
8059
|
-
codeName:
|
|
8170
|
+
persistentId: z279.string(),
|
|
8171
|
+
brandId: z279.string(),
|
|
8172
|
+
codeName: z279.string(),
|
|
8060
8173
|
overrides: DTOThemeOverride.array()
|
|
8061
8174
|
});
|
|
8062
8175
|
|
|
@@ -8292,13 +8405,13 @@ var ExportersEndpoint = class {
|
|
|
8292
8405
|
};
|
|
8293
8406
|
|
|
8294
8407
|
// src/api/endpoints/codegen/jobs.ts
|
|
8295
|
-
import { z as
|
|
8408
|
+
import { z as z280 } from "zod";
|
|
8296
8409
|
var ExporterJobsEndpoint = class {
|
|
8297
8410
|
constructor(requestExecutor) {
|
|
8298
8411
|
this.requestExecutor = requestExecutor;
|
|
8299
8412
|
}
|
|
8300
8413
|
list(workspaceId) {
|
|
8301
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
8414
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z280.any());
|
|
8302
8415
|
}
|
|
8303
8416
|
get(workspaceId, jobId) {
|
|
8304
8417
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -8356,7 +8469,7 @@ var CodegenEndpoint = class {
|
|
|
8356
8469
|
};
|
|
8357
8470
|
|
|
8358
8471
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
8359
|
-
import { z as
|
|
8472
|
+
import { z as z281 } from "zod";
|
|
8360
8473
|
var BrandsEndpoint = class {
|
|
8361
8474
|
constructor(requestExecutor) {
|
|
8362
8475
|
this.requestExecutor = requestExecutor;
|
|
@@ -8390,7 +8503,7 @@ var BrandsEndpoint = class {
|
|
|
8390
8503
|
});
|
|
8391
8504
|
}
|
|
8392
8505
|
delete(dsId, vId, brandId) {
|
|
8393
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
8506
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z281.any(), {
|
|
8394
8507
|
method: "DELETE"
|
|
8395
8508
|
});
|
|
8396
8509
|
}
|
|
@@ -8426,6 +8539,16 @@ var CodeComponentsEndpoint = class {
|
|
|
8426
8539
|
}
|
|
8427
8540
|
);
|
|
8428
8541
|
}
|
|
8542
|
+
async analyzePackage(dsId, vId, body) {
|
|
8543
|
+
return this.requestExecutor.json(
|
|
8544
|
+
`/design-systems/${dsId}/versions/${vId}/code-components/analyze-package`,
|
|
8545
|
+
DTOAnalyzeCodeComponentsInPackageResponse,
|
|
8546
|
+
{
|
|
8547
|
+
body,
|
|
8548
|
+
method: "POST"
|
|
8549
|
+
}
|
|
8550
|
+
);
|
|
8551
|
+
}
|
|
8429
8552
|
};
|
|
8430
8553
|
|
|
8431
8554
|
// src/api/endpoints/design-system/versions/documentation.ts
|
|
@@ -8603,7 +8726,7 @@ var ImportJobsEndpoint = class {
|
|
|
8603
8726
|
};
|
|
8604
8727
|
|
|
8605
8728
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
8606
|
-
import { z as
|
|
8729
|
+
import { z as z282 } from "zod";
|
|
8607
8730
|
var OverridesEndpoint = class {
|
|
8608
8731
|
constructor(requestExecutor) {
|
|
8609
8732
|
this.requestExecutor = requestExecutor;
|
|
@@ -8611,7 +8734,7 @@ var OverridesEndpoint = class {
|
|
|
8611
8734
|
create(dsId, versionId, themeId, body) {
|
|
8612
8735
|
return this.requestExecutor.json(
|
|
8613
8736
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
8614
|
-
|
|
8737
|
+
z282.any(),
|
|
8615
8738
|
{
|
|
8616
8739
|
method: "POST",
|
|
8617
8740
|
body
|
|
@@ -8621,7 +8744,7 @@ var OverridesEndpoint = class {
|
|
|
8621
8744
|
};
|
|
8622
8745
|
|
|
8623
8746
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
8624
|
-
import { z as
|
|
8747
|
+
import { z as z283 } from "zod";
|
|
8625
8748
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
8626
8749
|
constructor(requestExecutor) {
|
|
8627
8750
|
this.requestExecutor = requestExecutor;
|
|
@@ -8649,7 +8772,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
8649
8772
|
delete(designSystemId, versionId, defId) {
|
|
8650
8773
|
return this.requestExecutor.json(
|
|
8651
8774
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
8652
|
-
|
|
8775
|
+
z283.any(),
|
|
8653
8776
|
{ method: "DELETE" }
|
|
8654
8777
|
);
|
|
8655
8778
|
}
|
|
@@ -8688,7 +8811,7 @@ var VersionStatsEndpoint = class {
|
|
|
8688
8811
|
};
|
|
8689
8812
|
|
|
8690
8813
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
8691
|
-
import { z as
|
|
8814
|
+
import { z as z284 } from "zod";
|
|
8692
8815
|
var ThemesEndpoint = class {
|
|
8693
8816
|
constructor(requestExecutor) {
|
|
8694
8817
|
this.requestExecutor = requestExecutor;
|
|
@@ -8711,7 +8834,7 @@ var ThemesEndpoint = class {
|
|
|
8711
8834
|
});
|
|
8712
8835
|
}
|
|
8713
8836
|
delete(dsId, versionId, themeId) {
|
|
8714
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
8837
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z284.any(), {
|
|
8715
8838
|
method: "DELETE"
|
|
8716
8839
|
});
|
|
8717
8840
|
}
|
|
@@ -8880,7 +9003,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
8880
9003
|
};
|
|
8881
9004
|
|
|
8882
9005
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8883
|
-
import { z as
|
|
9006
|
+
import { z as z288 } from "zod";
|
|
8884
9007
|
|
|
8885
9008
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
8886
9009
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -8957,7 +9080,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
8957
9080
|
};
|
|
8958
9081
|
|
|
8959
9082
|
// src/api/endpoints/design-system/sources.ts
|
|
8960
|
-
import { z as
|
|
9083
|
+
import { z as z285 } from "zod";
|
|
8961
9084
|
var DesignSystemSourcesEndpoint = class {
|
|
8962
9085
|
constructor(requestExecutor) {
|
|
8963
9086
|
this.requestExecutor = requestExecutor;
|
|
@@ -8975,7 +9098,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8975
9098
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, DTODataSourceResponse);
|
|
8976
9099
|
}
|
|
8977
9100
|
delete(dsId, sourceId) {
|
|
8978
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
9101
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z285.any(), { method: "DELETE" });
|
|
8979
9102
|
}
|
|
8980
9103
|
figmaImport(dsId, payload) {
|
|
8981
9104
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -8984,15 +9107,29 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8984
9107
|
});
|
|
8985
9108
|
}
|
|
8986
9109
|
storybookImport(dsId, payload) {
|
|
8987
|
-
return this.requestExecutor.json(
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
9110
|
+
return this.requestExecutor.json(
|
|
9111
|
+
`/design-systems/${dsId}/versions/head/storybook-import`,
|
|
9112
|
+
DTODataSourcesStorybookResponse,
|
|
9113
|
+
{
|
|
9114
|
+
method: "POST",
|
|
9115
|
+
body: payload
|
|
9116
|
+
}
|
|
9117
|
+
);
|
|
9118
|
+
}
|
|
9119
|
+
updateStorybookImport(dsId, versionId, payload) {
|
|
9120
|
+
return this.requestExecutor.json(
|
|
9121
|
+
`/design-systems/${dsId}/versions/${versionId}/storybook-import`,
|
|
9122
|
+
DTODataSourcesStorybookResponse,
|
|
9123
|
+
{
|
|
9124
|
+
method: "POST",
|
|
9125
|
+
body: payload
|
|
9126
|
+
}
|
|
9127
|
+
);
|
|
8991
9128
|
}
|
|
8992
9129
|
};
|
|
8993
9130
|
|
|
8994
9131
|
// src/api/endpoints/design-system/storybook.ts
|
|
8995
|
-
import { z as
|
|
9132
|
+
import { z as z286 } from "zod";
|
|
8996
9133
|
var StorybookEntriesEndpoint = class {
|
|
8997
9134
|
constructor(requestExecutor) {
|
|
8998
9135
|
this.requestExecutor = requestExecutor;
|
|
@@ -9001,10 +9138,51 @@ var StorybookEntriesEndpoint = class {
|
|
|
9001
9138
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook`, DTOStorybookEntryListResponse);
|
|
9002
9139
|
}
|
|
9003
9140
|
replace(dsId, entryId) {
|
|
9004
|
-
return this.requestExecutor.json(
|
|
9141
|
+
return this.requestExecutor.json(
|
|
9142
|
+
`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
9143
|
+
DTOStorybookEntryReplaceAction,
|
|
9144
|
+
{ method: "PUT" }
|
|
9145
|
+
);
|
|
9005
9146
|
}
|
|
9006
9147
|
delete(dsId, entryId) {
|
|
9007
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`,
|
|
9148
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/storybook/${entryId}`, z286.any(), {
|
|
9149
|
+
method: "DELETE"
|
|
9150
|
+
});
|
|
9151
|
+
}
|
|
9152
|
+
};
|
|
9153
|
+
|
|
9154
|
+
// src/api/endpoints/design-system/storybook-hosting.ts
|
|
9155
|
+
import { z as z287 } from "zod";
|
|
9156
|
+
var StorybookHostingEndpoint = class {
|
|
9157
|
+
constructor(requestExecutor) {
|
|
9158
|
+
this.requestExecutor = requestExecutor;
|
|
9159
|
+
}
|
|
9160
|
+
getSignedUploadUrl(dsId, body) {
|
|
9161
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/storybook/upload`, DTOStorybookUploadUrlResponse, {
|
|
9162
|
+
body,
|
|
9163
|
+
method: "POST"
|
|
9164
|
+
});
|
|
9165
|
+
}
|
|
9166
|
+
delete(dsId, storybookUploadId) {
|
|
9167
|
+
return this.requestExecutor.json(
|
|
9168
|
+
`/design-systems/${dsId}/storybook/${storybookUploadId}`,
|
|
9169
|
+
z287.object({ ok: z287.boolean() }),
|
|
9170
|
+
{
|
|
9171
|
+
method: "DELETE"
|
|
9172
|
+
}
|
|
9173
|
+
);
|
|
9174
|
+
}
|
|
9175
|
+
getUploadStatus(dsId, storybookUploadId) {
|
|
9176
|
+
return this.requestExecutor.json(
|
|
9177
|
+
`/design-systems/${dsId}/storybook/${storybookUploadId}/status`,
|
|
9178
|
+
DTOStorybookUploadStatus
|
|
9179
|
+
);
|
|
9180
|
+
}
|
|
9181
|
+
getAccessToken(dsId, name) {
|
|
9182
|
+
return this.requestExecutor.json(
|
|
9183
|
+
`/design-systems/${dsId}/storybook/alias/${name}/access-token`,
|
|
9184
|
+
DTOStorybookAccessTokenResponse
|
|
9185
|
+
);
|
|
9008
9186
|
}
|
|
9009
9187
|
};
|
|
9010
9188
|
|
|
@@ -9017,6 +9195,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9017
9195
|
__publicField(this, "bff");
|
|
9018
9196
|
__publicField(this, "sources");
|
|
9019
9197
|
__publicField(this, "storybook");
|
|
9198
|
+
__publicField(this, "storybookHosting");
|
|
9020
9199
|
__publicField(this, "contacts");
|
|
9021
9200
|
__publicField(this, "redirects");
|
|
9022
9201
|
__publicField(this, "figmaNodeStructures");
|
|
@@ -9026,6 +9205,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9026
9205
|
this.bff = new DesignSystemBffEndpoint(requestExecutor);
|
|
9027
9206
|
this.sources = new DesignSystemSourcesEndpoint(requestExecutor);
|
|
9028
9207
|
this.storybook = new StorybookEntriesEndpoint(requestExecutor);
|
|
9208
|
+
this.storybookHosting = new StorybookHostingEndpoint(requestExecutor);
|
|
9029
9209
|
this.contacts = new DesignSystemContactsEndpoint(requestExecutor);
|
|
9030
9210
|
this.redirects = new DesignSystemPageRedirectsEndpoint(requestExecutor);
|
|
9031
9211
|
this.figmaNodeStructures = new FigmaNodeStructuresEndpoint(requestExecutor);
|
|
@@ -9037,11 +9217,14 @@ var DesignSystemsEndpoint = class {
|
|
|
9037
9217
|
list(wsId) {
|
|
9038
9218
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
9039
9219
|
}
|
|
9220
|
+
listUserDesignSystems() {
|
|
9221
|
+
return this.requestExecutor.json("/design-systems", DTOUserDesignSystemsResponse);
|
|
9222
|
+
}
|
|
9040
9223
|
get(dsId) {
|
|
9041
9224
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
9042
9225
|
}
|
|
9043
9226
|
delete(dsId) {
|
|
9044
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
9227
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z288.any(), { method: "DELETE" });
|
|
9045
9228
|
}
|
|
9046
9229
|
update(dsId, body) {
|
|
9047
9230
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -9058,7 +9241,7 @@ var DesignSystemsEndpoint = class {
|
|
|
9058
9241
|
};
|
|
9059
9242
|
|
|
9060
9243
|
// src/api/endpoints/workspaces/integrations.ts
|
|
9061
|
-
import { z as
|
|
9244
|
+
import { z as z289 } from "zod";
|
|
9062
9245
|
var WorkspaceIntegrationsEndpoint = class {
|
|
9063
9246
|
constructor(requestExecutor) {
|
|
9064
9247
|
this.requestExecutor = requestExecutor;
|
|
@@ -9067,7 +9250,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
9067
9250
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
9068
9251
|
}
|
|
9069
9252
|
delete(wsId, iId) {
|
|
9070
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
9253
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z289.unknown(), { method: "DELETE" });
|
|
9071
9254
|
}
|
|
9072
9255
|
};
|
|
9073
9256
|
|
|
@@ -9099,7 +9282,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
9099
9282
|
};
|
|
9100
9283
|
|
|
9101
9284
|
// src/api/endpoints/workspaces/members.ts
|
|
9102
|
-
import { z as
|
|
9285
|
+
import { z as z290 } from "zod";
|
|
9103
9286
|
var WorkspaceMembersEndpoint = class {
|
|
9104
9287
|
constructor(requestExecutor) {
|
|
9105
9288
|
this.requestExecutor = requestExecutor;
|
|
@@ -9116,7 +9299,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
9116
9299
|
});
|
|
9117
9300
|
}
|
|
9118
9301
|
invite(workspaceId, body) {
|
|
9119
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
9302
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z290.any(), { method: "POST", body });
|
|
9120
9303
|
}
|
|
9121
9304
|
delete(workspaceId, userId) {
|
|
9122
9305
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -9125,17 +9308,38 @@ var WorkspaceMembersEndpoint = class {
|
|
|
9125
9308
|
}
|
|
9126
9309
|
};
|
|
9127
9310
|
|
|
9311
|
+
// src/api/endpoints/workspaces/npm-register.ts
|
|
9312
|
+
var WorkspaceNpmRegistryEndpoint = class {
|
|
9313
|
+
constructor(requestExecutor) {
|
|
9314
|
+
this.requestExecutor = requestExecutor;
|
|
9315
|
+
}
|
|
9316
|
+
getAccessToken(wsId) {
|
|
9317
|
+
return this.requestExecutor.json(
|
|
9318
|
+
`/workspaces/${wsId}/npm-registry/access-token`,
|
|
9319
|
+
DTONpmRegistryAccessTokenResponse
|
|
9320
|
+
);
|
|
9321
|
+
}
|
|
9322
|
+
update(wsId, body) {
|
|
9323
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/npm-registry`, DTOUpdateRegistryOutput, {
|
|
9324
|
+
method: "PUT",
|
|
9325
|
+
body
|
|
9326
|
+
});
|
|
9327
|
+
}
|
|
9328
|
+
};
|
|
9329
|
+
|
|
9128
9330
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
9129
|
-
import { z as
|
|
9331
|
+
import { z as z291 } from "zod";
|
|
9130
9332
|
var WorkspacesEndpoint = class {
|
|
9131
9333
|
constructor(requestExecutor) {
|
|
9132
9334
|
this.requestExecutor = requestExecutor;
|
|
9133
9335
|
__publicField(this, "members");
|
|
9134
9336
|
__publicField(this, "invitations");
|
|
9337
|
+
__publicField(this, "npmRegistry");
|
|
9135
9338
|
__publicField(this, "integrations");
|
|
9136
9339
|
this.members = new WorkspaceMembersEndpoint(requestExecutor);
|
|
9137
9340
|
this.invitations = new WorkspaceInvitationsEndpoint(requestExecutor);
|
|
9138
9341
|
this.integrations = new WorkspaceIntegrationsEndpoint(requestExecutor);
|
|
9342
|
+
this.npmRegistry = new WorkspaceNpmRegistryEndpoint(requestExecutor);
|
|
9139
9343
|
}
|
|
9140
9344
|
create(body) {
|
|
9141
9345
|
return this.requestExecutor.json("/workspaces", DTOWorkspaceResponse, {
|
|
@@ -9147,14 +9351,17 @@ var WorkspacesEndpoint = class {
|
|
|
9147
9351
|
}
|
|
9148
9352
|
});
|
|
9149
9353
|
}
|
|
9354
|
+
list() {
|
|
9355
|
+
return this.requestExecutor.json(`/workspaces`, DTOUserWorkspaceMembershipsResponse, { method: "GET" });
|
|
9356
|
+
}
|
|
9150
9357
|
get(workspaceId) {
|
|
9151
9358
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
9152
9359
|
}
|
|
9153
9360
|
delete(workspaceId) {
|
|
9154
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
9361
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z291.any(), { method: "DELETE" });
|
|
9155
9362
|
}
|
|
9156
9363
|
subscription(workspaceId) {
|
|
9157
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
9364
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z291.any(), { method: "GET" });
|
|
9158
9365
|
}
|
|
9159
9366
|
transferOwnership(workspaceId, body) {
|
|
9160
9367
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -9254,9 +9461,9 @@ ${bodyText}`,
|
|
|
9254
9461
|
|
|
9255
9462
|
// src/api/transport/request-executor.ts
|
|
9256
9463
|
import fetch from "node-fetch";
|
|
9257
|
-
import { z as
|
|
9258
|
-
var ResponseWrapper =
|
|
9259
|
-
result:
|
|
9464
|
+
import { z as z292 } from "zod";
|
|
9465
|
+
var ResponseWrapper = z292.object({
|
|
9466
|
+
result: z292.record(z292.any())
|
|
9260
9467
|
});
|
|
9261
9468
|
var RequestExecutor = class {
|
|
9262
9469
|
constructor(testServerConfig) {
|
|
@@ -9330,31 +9537,31 @@ var SupernovaApiClient = class {
|
|
|
9330
9537
|
};
|
|
9331
9538
|
|
|
9332
9539
|
// src/events/design-system.ts
|
|
9333
|
-
import { z as
|
|
9334
|
-
var DTOEventFigmaNodesRendered =
|
|
9335
|
-
type:
|
|
9336
|
-
designSystemId:
|
|
9337
|
-
versionId:
|
|
9338
|
-
figmaNodePersistentIds:
|
|
9339
|
-
});
|
|
9340
|
-
var DTOEventDataSourcesImported =
|
|
9341
|
-
type:
|
|
9342
|
-
designSystemId:
|
|
9343
|
-
versionId:
|
|
9344
|
-
importJobId:
|
|
9540
|
+
import { z as z293 } from "zod";
|
|
9541
|
+
var DTOEventFigmaNodesRendered = z293.object({
|
|
9542
|
+
type: z293.literal("DesignSystem.FigmaNodesRendered"),
|
|
9543
|
+
designSystemId: z293.string(),
|
|
9544
|
+
versionId: z293.string(),
|
|
9545
|
+
figmaNodePersistentIds: z293.string().array()
|
|
9546
|
+
});
|
|
9547
|
+
var DTOEventDataSourcesImported = z293.object({
|
|
9548
|
+
type: z293.literal("DesignSystem.ImportJobFinished"),
|
|
9549
|
+
designSystemId: z293.string(),
|
|
9550
|
+
versionId: z293.string(),
|
|
9551
|
+
importJobId: z293.string(),
|
|
9345
9552
|
dataSourceType: DataSourceRemoteType,
|
|
9346
|
-
dataSourceIds:
|
|
9553
|
+
dataSourceIds: z293.string().array()
|
|
9347
9554
|
});
|
|
9348
9555
|
|
|
9349
9556
|
// src/events/event.ts
|
|
9350
|
-
import { z as
|
|
9351
|
-
var DTOEvent =
|
|
9557
|
+
import { z as z294 } from "zod";
|
|
9558
|
+
var DTOEvent = z294.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
9352
9559
|
|
|
9353
9560
|
// src/sync/docs-structure-repo.ts
|
|
9354
9561
|
import PQueue from "p-queue";
|
|
9355
9562
|
|
|
9356
9563
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9357
|
-
import { z as
|
|
9564
|
+
import { z as z295 } from "zod";
|
|
9358
9565
|
|
|
9359
9566
|
// src/yjs/version-room/base.ts
|
|
9360
9567
|
var VersionRoomBaseYDoc = class {
|
|
@@ -9904,24 +10111,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
9904
10111
|
};
|
|
9905
10112
|
|
|
9906
10113
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9907
|
-
var DocumentationHierarchySettings =
|
|
9908
|
-
routingVersion:
|
|
9909
|
-
isDraftFeatureAdopted:
|
|
9910
|
-
isApprovalFeatureEnabled:
|
|
9911
|
-
approvalRequiredForPublishing:
|
|
10114
|
+
var DocumentationHierarchySettings = z295.object({
|
|
10115
|
+
routingVersion: z295.string(),
|
|
10116
|
+
isDraftFeatureAdopted: z295.boolean(),
|
|
10117
|
+
isApprovalFeatureEnabled: z295.boolean(),
|
|
10118
|
+
approvalRequiredForPublishing: z295.boolean()
|
|
9912
10119
|
});
|
|
9913
10120
|
function yjsToDocumentationHierarchy(doc) {
|
|
9914
10121
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
9915
10122
|
}
|
|
9916
10123
|
|
|
9917
10124
|
// src/yjs/design-system-content/item-configuration.ts
|
|
9918
|
-
import { z as
|
|
9919
|
-
var DTODocumentationPageRoomHeaderData =
|
|
9920
|
-
title:
|
|
10125
|
+
import { z as z296 } from "zod";
|
|
10126
|
+
var DTODocumentationPageRoomHeaderData = z296.object({
|
|
10127
|
+
title: z296.string(),
|
|
9921
10128
|
configuration: DTODocumentationItemConfigurationV2
|
|
9922
10129
|
});
|
|
9923
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
9924
|
-
title:
|
|
10130
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z296.object({
|
|
10131
|
+
title: z296.string().optional(),
|
|
9925
10132
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
9926
10133
|
});
|
|
9927
10134
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -9950,41 +10157,15 @@ function itemConfigurationToYjs(yDoc, item) {
|
|
|
9950
10157
|
configuration?.isPrivate !== void 0 && configYMap.set("isPrivate", configuration.isPrivate);
|
|
9951
10158
|
});
|
|
9952
10159
|
}
|
|
9953
|
-
function yjsToItemConfiguration(yDoc) {
|
|
9954
|
-
const title = yDoc.getMap("itemTitle").get("title");
|
|
9955
|
-
const headerYMap = yDoc.getMap("itemHeader");
|
|
9956
|
-
const rawHeader = {
|
|
9957
|
-
description: headerYMap.get("description"),
|
|
9958
|
-
alignment: headerYMap.get("alignment"),
|
|
9959
|
-
foregroundColor: headerYMap.get("foregroundColor"),
|
|
9960
|
-
backgroundColor: headerYMap.get("backgroundColor"),
|
|
9961
|
-
backgroundImageAsset: headerYMap.get("backgroundImageAsset"),
|
|
9962
|
-
backgroundImageScaleType: headerYMap.get("backgroundImageScaleType"),
|
|
9963
|
-
showBackgroundOverlay: headerYMap.get("showBackgroundOverlay"),
|
|
9964
|
-
showCoverText: headerYMap.get("showCoverText"),
|
|
9965
|
-
minHeight: headerYMap.get("minHeight")
|
|
9966
|
-
};
|
|
9967
|
-
const configYMap = yDoc.getMap("itemConfiguration");
|
|
9968
|
-
const rawConfig = {
|
|
9969
|
-
showSidebar: configYMap.get("showSidebar"),
|
|
9970
|
-
isHidden: configYMap.get("isHidden") ?? false,
|
|
9971
|
-
isPrivate: configYMap.get("isPrivate") ?? false,
|
|
9972
|
-
header: rawHeader
|
|
9973
|
-
};
|
|
9974
|
-
return {
|
|
9975
|
-
title: z293.string().parse(title),
|
|
9976
|
-
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
9977
|
-
};
|
|
9978
|
-
}
|
|
9979
10160
|
|
|
9980
10161
|
// src/yjs/docs-editor/model/block.ts
|
|
9981
10162
|
var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
9982
10163
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
9983
10164
|
|
|
9984
10165
|
// src/yjs/docs-editor/model/page.ts
|
|
9985
|
-
import { z as
|
|
9986
|
-
var DocumentationPageEditorModel =
|
|
9987
|
-
blocks:
|
|
10166
|
+
import { z as z297 } from "zod";
|
|
10167
|
+
var DocumentationPageEditorModel = z297.object({
|
|
10168
|
+
blocks: z297.array(DocumentationPageContentItem)
|
|
9988
10169
|
});
|
|
9989
10170
|
|
|
9990
10171
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -13577,7 +13758,7 @@ var blocks = [
|
|
|
13577
13758
|
|
|
13578
13759
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
13579
13760
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
13580
|
-
import { z as
|
|
13761
|
+
import { z as z298 } from "zod";
|
|
13581
13762
|
function yDocToPage(yDoc, definitions) {
|
|
13582
13763
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
13583
13764
|
}
|
|
@@ -13653,7 +13834,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
13653
13834
|
if (!id) return null;
|
|
13654
13835
|
return {
|
|
13655
13836
|
id,
|
|
13656
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
13837
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z298.string()) ?? "",
|
|
13657
13838
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
13658
13839
|
};
|
|
13659
13840
|
}
|
|
@@ -13687,7 +13868,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
13687
13868
|
});
|
|
13688
13869
|
}
|
|
13689
13870
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
13690
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
13871
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z298.string());
|
|
13691
13872
|
if (!definitionId) {
|
|
13692
13873
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
13693
13874
|
return [];
|
|
@@ -13728,7 +13909,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
13728
13909
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13729
13910
|
if (!id) return null;
|
|
13730
13911
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13731
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
13912
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z298.string().optional()));
|
|
13732
13913
|
return {
|
|
13733
13914
|
id,
|
|
13734
13915
|
type: "Block",
|
|
@@ -13851,9 +14032,9 @@ function parseRichTextAttribute(mark) {
|
|
|
13851
14032
|
return null;
|
|
13852
14033
|
}
|
|
13853
14034
|
function parseProsemirrorLink(mark) {
|
|
13854
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
14035
|
+
const href = getProsemirrorAttribute(mark, "href", z298.string().optional());
|
|
13855
14036
|
if (!href) return null;
|
|
13856
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
14037
|
+
const target = getProsemirrorAttribute(mark, "target", z298.string().optional());
|
|
13857
14038
|
const openInNewTab = target === "_blank";
|
|
13858
14039
|
if (href.startsWith("@")) {
|
|
13859
14040
|
return {
|
|
@@ -13872,9 +14053,9 @@ function parseProsemirrorLink(mark) {
|
|
|
13872
14053
|
}
|
|
13873
14054
|
}
|
|
13874
14055
|
function parseProsemirrorCommentHighlight(mark) {
|
|
13875
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
14056
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z298.string().optional());
|
|
13876
14057
|
if (!highlightId) return null;
|
|
13877
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
14058
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z298.boolean().optional()) ?? false;
|
|
13878
14059
|
return {
|
|
13879
14060
|
type: "Comment",
|
|
13880
14061
|
commentHighlightId: highlightId,
|
|
@@ -13885,7 +14066,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13885
14066
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13886
14067
|
if (!id) return null;
|
|
13887
14068
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13888
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
14069
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z298.boolean().optional()) !== false;
|
|
13889
14070
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
13890
14071
|
if (!tableChild) {
|
|
13891
14072
|
return emptyTable(id, variantId, 0);
|
|
@@ -13931,9 +14112,9 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13931
14112
|
function parseAsTableCell(prosemirrorNode) {
|
|
13932
14113
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13933
14114
|
if (!id) return null;
|
|
13934
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
14115
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z298.string().optional());
|
|
13935
14116
|
let columnWidth;
|
|
13936
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
14117
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z298.array(z298.number()).nullish());
|
|
13937
14118
|
if (columnWidthArray) {
|
|
13938
14119
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
13939
14120
|
}
|
|
@@ -13969,7 +14150,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
13969
14150
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
13970
14151
|
};
|
|
13971
14152
|
case "image":
|
|
13972
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14153
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z298.string());
|
|
13973
14154
|
if (!items) return null;
|
|
13974
14155
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
13975
14156
|
if (!parsedItems.success) return null;
|
|
@@ -14083,7 +14264,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
14083
14264
|
);
|
|
14084
14265
|
}
|
|
14085
14266
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
14086
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
14267
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z298.string());
|
|
14087
14268
|
if (!itemsString) return null;
|
|
14088
14269
|
const itemsJson = JSON.parse(itemsString);
|
|
14089
14270
|
if (!Array.isArray(itemsJson)) {
|
|
@@ -14094,18 +14275,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
14094
14275
|
}
|
|
14095
14276
|
function parseAppearance(prosemirrorNode) {
|
|
14096
14277
|
let appearance = {};
|
|
14097
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
14278
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z298.string().optional());
|
|
14098
14279
|
if (rawAppearanceString) {
|
|
14099
14280
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
14100
14281
|
if (parsedAppearance.success) {
|
|
14101
14282
|
appearance = parsedAppearance.data;
|
|
14102
14283
|
}
|
|
14103
14284
|
}
|
|
14104
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
14285
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z298.number().optional());
|
|
14105
14286
|
if (columns) {
|
|
14106
14287
|
appearance.numberOfColumns = columns;
|
|
14107
14288
|
}
|
|
14108
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
14289
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z298.string().optional());
|
|
14109
14290
|
if (backgroundColor) {
|
|
14110
14291
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
14111
14292
|
if (parsedColor.success) {
|
|
@@ -14204,12 +14385,12 @@ function valueSchemaForPropertyType(type) {
|
|
|
14204
14385
|
}
|
|
14205
14386
|
}
|
|
14206
14387
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
14207
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
14388
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z298.string());
|
|
14208
14389
|
if (!id) console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
14209
14390
|
return id;
|
|
14210
14391
|
}
|
|
14211
14392
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
14212
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
14393
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z298.string()));
|
|
14213
14394
|
}
|
|
14214
14395
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
14215
14396
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -14750,6 +14931,15 @@ export {
|
|
|
14750
14931
|
CodeComponentsEndpoint,
|
|
14751
14932
|
CodegenEndpoint,
|
|
14752
14933
|
Collection2 as Collection,
|
|
14934
|
+
DTOAccessToken,
|
|
14935
|
+
DTOAccessTokenCreatePayload,
|
|
14936
|
+
DTOAccessTokenFull,
|
|
14937
|
+
DTOAccessTokenFullResponse,
|
|
14938
|
+
DTOAccessTokenListResponse,
|
|
14939
|
+
DTOAccessTokenResponse,
|
|
14940
|
+
DTOAnalyzeCodeComponentsInPackage,
|
|
14941
|
+
DTOAnalyzeCodeComponentsInPackageInput,
|
|
14942
|
+
DTOAnalyzeCodeComponentsInPackageResponse,
|
|
14753
14943
|
DTOAppBootstrapDataQuery,
|
|
14754
14944
|
DTOAppBootstrapDataResponse,
|
|
14755
14945
|
DTOAssetRenderConfiguration,
|
|
@@ -14796,6 +14986,7 @@ export {
|
|
|
14796
14986
|
DTODeleteDocumentationGroupInput,
|
|
14797
14987
|
DTODeleteDocumentationPageInputV2,
|
|
14798
14988
|
DTODeleteDocumentationTabGroupInput,
|
|
14989
|
+
DTODependencyDefinition,
|
|
14799
14990
|
DTODesignElementsDataDiffResponse,
|
|
14800
14991
|
DTODesignSystem,
|
|
14801
14992
|
DTODesignSystemComponent,
|
|
@@ -15015,6 +15206,7 @@ export {
|
|
|
15015
15206
|
DTOLiveblocksAuthResponse,
|
|
15016
15207
|
DTOMoveDocumentationGroupInput,
|
|
15017
15208
|
DTOMoveDocumentationPageInputV2,
|
|
15209
|
+
DTONpmRegistryAccessTokenResponse,
|
|
15018
15210
|
DTONpmRegistryConfig,
|
|
15019
15211
|
DTONpmRegistryConfigConstants,
|
|
15020
15212
|
DTOObjectMeta,
|
|
@@ -15048,15 +15240,22 @@ export {
|
|
|
15048
15240
|
DTOPublishedDocPageVisitData,
|
|
15049
15241
|
DTOPublishedDocVisitData,
|
|
15050
15242
|
DTOPublishedDocVisitHeatMapWeek,
|
|
15243
|
+
DTORegistry,
|
|
15051
15244
|
DTORenderedAssetFile,
|
|
15052
15245
|
DTORestoreDocumentationGroupInput,
|
|
15053
15246
|
DTORestoreDocumentationPageInput,
|
|
15247
|
+
DTOStorybookAccessTokenPayload,
|
|
15248
|
+
DTOStorybookAccessTokenResponse,
|
|
15054
15249
|
DTOStorybookEntry,
|
|
15055
15250
|
DTOStorybookEntryListResponse,
|
|
15056
15251
|
DTOStorybookEntryOrigin,
|
|
15057
15252
|
DTOStorybookEntryReplaceAction,
|
|
15058
15253
|
DTOStorybookEntryResponse,
|
|
15059
15254
|
DTOStorybookImportPayload,
|
|
15255
|
+
DTOStorybookSourceUpdatePayload,
|
|
15256
|
+
DTOStorybookUploadStatus,
|
|
15257
|
+
DTOStorybookUploadUrlRequest,
|
|
15258
|
+
DTOStorybookUploadUrlResponse,
|
|
15060
15259
|
DTOTheme,
|
|
15061
15260
|
DTOThemeCreatePayload,
|
|
15062
15261
|
DTOThemeListResponse,
|
|
@@ -15069,9 +15268,12 @@ export {
|
|
|
15069
15268
|
DTOUpdateDocumentationGroupInput,
|
|
15070
15269
|
DTOUpdateDocumentationPageDocumentInputV2,
|
|
15071
15270
|
DTOUpdateDocumentationPageInputV2,
|
|
15271
|
+
DTOUpdateRegistryInput,
|
|
15272
|
+
DTOUpdateRegistryOutput,
|
|
15072
15273
|
DTOUpdateUserNotificationSettingsPayload,
|
|
15073
15274
|
DTOUpdateVersionInput,
|
|
15074
15275
|
DTOUser,
|
|
15276
|
+
DTOUserDesignSystemsResponse,
|
|
15075
15277
|
DTOUserGetResponse,
|
|
15076
15278
|
DTOUserNotificationSettingsResponse,
|
|
15077
15279
|
DTOUserOnboarding,
|
|
@@ -15151,6 +15353,7 @@ export {
|
|
|
15151
15353
|
RequestExecutorError,
|
|
15152
15354
|
ResolvedVariableType,
|
|
15153
15355
|
StorybookEntriesEndpoint,
|
|
15356
|
+
StorybookHostingEndpoint,
|
|
15154
15357
|
StringVariableScopeType,
|
|
15155
15358
|
SupernovaApiClient,
|
|
15156
15359
|
ThemesEndpoint,
|
|
@@ -15170,6 +15373,7 @@ export {
|
|
|
15170
15373
|
WorkspaceIntegrationsEndpoint,
|
|
15171
15374
|
WorkspaceInvitationsEndpoint,
|
|
15172
15375
|
WorkspaceMembersEndpoint,
|
|
15376
|
+
WorkspaceNpmRegistryEndpoint,
|
|
15173
15377
|
WorkspacesEndpoint,
|
|
15174
15378
|
applyActionsLocally,
|
|
15175
15379
|
applyPrivacyConfigurationToNestedItems,
|
|
@@ -15226,7 +15430,6 @@ export {
|
|
|
15226
15430
|
validateSsoPayload,
|
|
15227
15431
|
yDocToPage,
|
|
15228
15432
|
yXmlFragmentToPage,
|
|
15229
|
-
yjsToDocumentationHierarchy
|
|
15230
|
-
yjsToItemConfiguration
|
|
15433
|
+
yjsToDocumentationHierarchy
|
|
15231
15434
|
};
|
|
15232
15435
|
//# sourceMappingURL=index.mjs.map
|