@supernova-studio/client 0.58.7 → 0.58.9
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 +1431 -448
- package/dist/index.d.ts +1431 -448
- package/dist/index.js +138 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +788 -659
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/data-source.ts +28 -3
- package/src/api/endpoints/design-system/sources.ts +21 -1
- package/src/api/endpoints/design-system/versions/documentation.ts +23 -0
- package/src/api/endpoints/design-system/versions/elements-action.ts +98 -0
- package/src/api/endpoints/design-system/versions/index.ts +2 -1
- package/src/api/endpoints/design-system/versions/versions.ts +6 -3
- package/src/api/endpoints/workspaces/workspaces.ts +8 -0
- package/src/api/payloads/workspaces/index.ts +1 -0
- package/src/api/payloads/workspaces/transfer-ownership.ts +7 -0
- package/src/api/endpoints/design-system/versions/elements-actions.ts +0 -20
package/dist/index.mjs
CHANGED
|
@@ -571,7 +571,8 @@ var FigmaFileDownloadScope = z22.object({
|
|
|
571
571
|
maxFileDepth: z22.number().optional()
|
|
572
572
|
});
|
|
573
573
|
var FigmaFileAccessData = z22.object({
|
|
574
|
-
accessToken: z22.string()
|
|
574
|
+
accessToken: z22.string(),
|
|
575
|
+
accessTokenType: z22.enum(["OAuth2", "PAT"])
|
|
575
576
|
});
|
|
576
577
|
var ImportWarningType = z23.enum([
|
|
577
578
|
"NoVersionFound",
|
|
@@ -4325,7 +4326,7 @@ var IntegrationDesignSystem = z154.object({
|
|
|
4325
4326
|
userId: z154.string().optional(),
|
|
4326
4327
|
date: z154.coerce.date().optional()
|
|
4327
4328
|
});
|
|
4328
|
-
var IntegrationCredentialsType = z154.enum(["OAuth2", "PAT"
|
|
4329
|
+
var IntegrationCredentialsType = z154.enum(["OAuth2", "PAT"]);
|
|
4329
4330
|
var IntegrationCredentialsState = z154.enum(["Active", "Inactive"]);
|
|
4330
4331
|
var IntegrationCredentialsProfile = z154.object({
|
|
4331
4332
|
id: nullishToOptional(z154.string()),
|
|
@@ -5152,7 +5153,7 @@ var DTOPagination = z179.object({
|
|
|
5152
5153
|
});
|
|
5153
5154
|
|
|
5154
5155
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5155
|
-
import { z as
|
|
5156
|
+
import { z as z214 } from "zod";
|
|
5156
5157
|
|
|
5157
5158
|
// src/api/dto/design-systems/brand.ts
|
|
5158
5159
|
import { z as z180 } from "zod";
|
|
@@ -5245,6 +5246,7 @@ var DTODesignSystemContactsResponse = z185.object({
|
|
|
5245
5246
|
|
|
5246
5247
|
// src/api/dto/design-systems/data-source.ts
|
|
5247
5248
|
import { z as z186 } from "zod";
|
|
5249
|
+
var DTODataSourceFigmaScope = DataSourceFigmaScope;
|
|
5248
5250
|
var DTODataSourceFigmaFileVersion = z186.object({
|
|
5249
5251
|
id: z186.string(),
|
|
5250
5252
|
created_at: z186.coerce.date(),
|
|
@@ -5269,7 +5271,7 @@ var DTODataSourceFigma = z186.object({
|
|
|
5269
5271
|
id: z186.string(),
|
|
5270
5272
|
type: z186.literal(DataSourceRemoteType.Enum.Figma),
|
|
5271
5273
|
fileName: z186.string(),
|
|
5272
|
-
scope:
|
|
5274
|
+
scope: DTODataSourceFigmaScope,
|
|
5273
5275
|
brandId: z186.string(),
|
|
5274
5276
|
themeId: z186.string().nullish(),
|
|
5275
5277
|
cloud: DTODataSourceFigmaCloud.nullish()
|
|
@@ -5331,9 +5333,18 @@ var DTODataSource = z186.discriminatedUnion("type", [
|
|
|
5331
5333
|
var DTODataSourcesListResponse = z186.object({
|
|
5332
5334
|
sources: z186.array(DTODataSource)
|
|
5333
5335
|
});
|
|
5334
|
-
var
|
|
5336
|
+
var DTODataSourceResponse = z186.object({
|
|
5335
5337
|
source: DTODataSource
|
|
5336
5338
|
});
|
|
5339
|
+
var DTODataSourceFigmaCreatePayload = z186.object({
|
|
5340
|
+
brandPersistentId: z186.string(),
|
|
5341
|
+
figmaFileUrl: z186.string(),
|
|
5342
|
+
scope: DTODataSourceFigmaScope,
|
|
5343
|
+
autoImportMode: DataSourceAutoImportMode
|
|
5344
|
+
});
|
|
5345
|
+
var DTODataSourceFigmaImportPayload = z186.object({
|
|
5346
|
+
sourceIds: z186.array(z186.string())
|
|
5347
|
+
});
|
|
5337
5348
|
|
|
5338
5349
|
// src/api/dto/design-systems/design-system.ts
|
|
5339
5350
|
import { z as z189 } from "zod";
|
|
@@ -5564,7 +5575,7 @@ var DTODesignSystemVersionStatsQuery = z194.object({
|
|
|
5564
5575
|
});
|
|
5565
5576
|
|
|
5566
5577
|
// src/api/dto/design-systems/version.ts
|
|
5567
|
-
import { z as
|
|
5578
|
+
import { z as z206 } from "zod";
|
|
5568
5579
|
|
|
5569
5580
|
// src/api/payloads/design-systems/brand.ts
|
|
5570
5581
|
import { z as z195 } from "zod";
|
|
@@ -5694,8 +5705,14 @@ var DTOUserNotificationSettingsResponse = z202.object({
|
|
|
5694
5705
|
// src/api/payloads/users/profile/update.ts
|
|
5695
5706
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5696
5707
|
|
|
5697
|
-
// src/api/payloads/workspaces/
|
|
5708
|
+
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
5698
5709
|
import { z as z203 } from "zod";
|
|
5710
|
+
var DTOTransferOwnershipPayload = z203.object({
|
|
5711
|
+
newOwnerId: z203.string()
|
|
5712
|
+
});
|
|
5713
|
+
|
|
5714
|
+
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5715
|
+
import { z as z204 } from "zod";
|
|
5699
5716
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5700
5717
|
function validateSsoPayload(ssoPayload) {
|
|
5701
5718
|
const keys = [];
|
|
@@ -5718,21 +5735,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5718
5735
|
keys
|
|
5719
5736
|
};
|
|
5720
5737
|
}
|
|
5721
|
-
var NpmRegistryInput =
|
|
5722
|
-
enabledScopes:
|
|
5723
|
-
customRegistryUrl:
|
|
5724
|
-
bypassProxy:
|
|
5725
|
-
npmProxyRegistryConfigId:
|
|
5726
|
-
npmProxyVersion:
|
|
5727
|
-
registryType:
|
|
5728
|
-
authType:
|
|
5729
|
-
authHeaderName:
|
|
5730
|
-
authHeaderValue:
|
|
5731
|
-
accessToken:
|
|
5732
|
-
username:
|
|
5733
|
-
password:
|
|
5734
|
-
});
|
|
5735
|
-
var WorkspaceConfigurationPayload =
|
|
5738
|
+
var NpmRegistryInput = z204.object({
|
|
5739
|
+
enabledScopes: z204.array(z204.string()),
|
|
5740
|
+
customRegistryUrl: z204.string().optional(),
|
|
5741
|
+
bypassProxy: z204.boolean().optional(),
|
|
5742
|
+
npmProxyRegistryConfigId: z204.string().optional(),
|
|
5743
|
+
npmProxyVersion: z204.number().optional(),
|
|
5744
|
+
registryType: z204.string(),
|
|
5745
|
+
authType: z204.string(),
|
|
5746
|
+
authHeaderName: z204.string(),
|
|
5747
|
+
authHeaderValue: z204.string(),
|
|
5748
|
+
accessToken: z204.string(),
|
|
5749
|
+
username: z204.string(),
|
|
5750
|
+
password: z204.string()
|
|
5751
|
+
});
|
|
5752
|
+
var WorkspaceConfigurationPayload = z204.object({
|
|
5736
5753
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5737
5754
|
sso: SsoProvider.partial().optional(),
|
|
5738
5755
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5740,218 +5757,218 @@ var WorkspaceConfigurationPayload = z203.object({
|
|
|
5740
5757
|
});
|
|
5741
5758
|
|
|
5742
5759
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5743
|
-
import { z as
|
|
5744
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5760
|
+
import { z as z205 } from "zod";
|
|
5761
|
+
var DTOWorkspaceIntegrationOauthInput = z205.object({
|
|
5745
5762
|
type: IntegrationType
|
|
5746
5763
|
});
|
|
5747
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5748
|
-
userId:
|
|
5764
|
+
var DTOWorkspaceIntegrationPATInput = z205.object({
|
|
5765
|
+
userId: z205.string(),
|
|
5749
5766
|
type: IntegrationType,
|
|
5750
5767
|
token: IntegrationToken
|
|
5751
5768
|
});
|
|
5752
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5753
|
-
organization:
|
|
5769
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z205.object({
|
|
5770
|
+
organization: z205.string().optional(),
|
|
5754
5771
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5755
|
-
project:
|
|
5772
|
+
project: z205.string().optional(),
|
|
5756
5773
|
// Only for Bitbucket and Azure
|
|
5757
|
-
repository:
|
|
5774
|
+
repository: z205.string().optional(),
|
|
5758
5775
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5759
|
-
branch:
|
|
5776
|
+
branch: z205.string().optional(),
|
|
5760
5777
|
// For all providers, useful for PR creations.
|
|
5761
|
-
user:
|
|
5778
|
+
user: z205.string().optional()
|
|
5762
5779
|
// Only for Gitlab User Repositories
|
|
5763
5780
|
});
|
|
5764
5781
|
|
|
5765
5782
|
// src/api/dto/design-systems/version.ts
|
|
5766
|
-
var DTODesignSystemVersion =
|
|
5767
|
-
id:
|
|
5768
|
-
createdAt:
|
|
5783
|
+
var DTODesignSystemVersion = z206.object({
|
|
5784
|
+
id: z206.string(),
|
|
5785
|
+
createdAt: z206.coerce.date(),
|
|
5769
5786
|
meta: ObjectMeta,
|
|
5770
|
-
version:
|
|
5771
|
-
isReadonly:
|
|
5772
|
-
changeLog:
|
|
5773
|
-
designSystemId:
|
|
5787
|
+
version: z206.string(),
|
|
5788
|
+
isReadonly: z206.boolean(),
|
|
5789
|
+
changeLog: z206.string(),
|
|
5790
|
+
designSystemId: z206.string()
|
|
5774
5791
|
});
|
|
5775
|
-
var DTODesignSystemVersionsListResponse =
|
|
5776
|
-
designSystemVersions:
|
|
5792
|
+
var DTODesignSystemVersionsListResponse = z206.object({
|
|
5793
|
+
designSystemVersions: z206.array(DTODesignSystemVersion)
|
|
5777
5794
|
});
|
|
5778
|
-
var DTODesignSystemVersionGetResponse =
|
|
5795
|
+
var DTODesignSystemVersionGetResponse = z206.object({
|
|
5779
5796
|
designSystemVersion: DTODesignSystemVersion
|
|
5780
5797
|
});
|
|
5781
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5798
|
+
var DTODesignSystemVersionCreationResponse = z206.object({
|
|
5782
5799
|
meta: ObjectMeta,
|
|
5783
|
-
version:
|
|
5784
|
-
changeLog:
|
|
5785
|
-
isReadOnly:
|
|
5786
|
-
designSystemId:
|
|
5787
|
-
jobId:
|
|
5788
|
-
});
|
|
5789
|
-
var VersionSQSPayload =
|
|
5790
|
-
jobId:
|
|
5791
|
-
designSystemId:
|
|
5800
|
+
version: z206.string(),
|
|
5801
|
+
changeLog: z206.string(),
|
|
5802
|
+
isReadOnly: z206.boolean(),
|
|
5803
|
+
designSystemId: z206.string(),
|
|
5804
|
+
jobId: z206.string()
|
|
5805
|
+
});
|
|
5806
|
+
var VersionSQSPayload = z206.object({
|
|
5807
|
+
jobId: z206.string(),
|
|
5808
|
+
designSystemId: z206.string(),
|
|
5792
5809
|
input: DTOCreateVersionInput
|
|
5793
5810
|
});
|
|
5794
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5795
|
-
jobs:
|
|
5811
|
+
var DTODesignSystemVersionJobsResponse = z206.object({
|
|
5812
|
+
jobs: z206.array(VersionCreationJob)
|
|
5796
5813
|
});
|
|
5797
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5814
|
+
var DTODesignSystemVersionJobStatusResponse = z206.object({
|
|
5798
5815
|
job: VersionCreationJob
|
|
5799
5816
|
});
|
|
5800
5817
|
|
|
5801
5818
|
// src/api/dto/design-systems/view.ts
|
|
5802
|
-
import { z as
|
|
5803
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5804
|
-
id:
|
|
5805
|
-
persistentId:
|
|
5806
|
-
width:
|
|
5819
|
+
import { z as z207 } from "zod";
|
|
5820
|
+
var DTOElementViewColumnSharedAttributes = z207.object({
|
|
5821
|
+
id: z207.string(),
|
|
5822
|
+
persistentId: z207.string(),
|
|
5823
|
+
width: z207.number()
|
|
5807
5824
|
});
|
|
5808
5825
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5809
|
-
type:
|
|
5826
|
+
type: z207.literal("BaseProperty"),
|
|
5810
5827
|
basePropertyType: ElementViewBaseColumnType
|
|
5811
5828
|
});
|
|
5812
5829
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5813
|
-
type:
|
|
5814
|
-
propertyDefinitionId:
|
|
5830
|
+
type: z207.literal("PropertyDefinition"),
|
|
5831
|
+
propertyDefinitionId: z207.string()
|
|
5815
5832
|
});
|
|
5816
5833
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5817
|
-
type:
|
|
5818
|
-
themeId:
|
|
5834
|
+
type: z207.literal("Theme"),
|
|
5835
|
+
themeId: z207.string()
|
|
5819
5836
|
});
|
|
5820
|
-
var DTOElementViewColumn =
|
|
5837
|
+
var DTOElementViewColumn = z207.discriminatedUnion("type", [
|
|
5821
5838
|
DTOElementViewBasePropertyColumn,
|
|
5822
5839
|
DTOElementViewPropertyDefinitionColumn,
|
|
5823
5840
|
DTOElementViewThemeColumn
|
|
5824
5841
|
]);
|
|
5825
|
-
var DTOElementView =
|
|
5842
|
+
var DTOElementView = z207.object({
|
|
5826
5843
|
meta: ObjectMeta,
|
|
5827
|
-
persistentId:
|
|
5844
|
+
persistentId: z207.string(),
|
|
5828
5845
|
targetElementType: ElementPropertyTargetType,
|
|
5829
|
-
id:
|
|
5830
|
-
isDefault:
|
|
5831
|
-
columns:
|
|
5846
|
+
id: z207.string(),
|
|
5847
|
+
isDefault: z207.boolean(),
|
|
5848
|
+
columns: z207.array(DTOElementViewColumn)
|
|
5832
5849
|
});
|
|
5833
|
-
var DTOElementViewsListResponse =
|
|
5834
|
-
elementDataViews:
|
|
5850
|
+
var DTOElementViewsListResponse = z207.object({
|
|
5851
|
+
elementDataViews: z207.array(DTOElementView)
|
|
5835
5852
|
});
|
|
5836
5853
|
|
|
5837
5854
|
// src/api/dto/workspaces/git.ts
|
|
5838
|
-
import { z as
|
|
5839
|
-
var DTOGitOrganization =
|
|
5840
|
-
id:
|
|
5841
|
-
name:
|
|
5842
|
-
url:
|
|
5843
|
-
slug:
|
|
5855
|
+
import { z as z208 } from "zod";
|
|
5856
|
+
var DTOGitOrganization = z208.object({
|
|
5857
|
+
id: z208.string(),
|
|
5858
|
+
name: z208.string(),
|
|
5859
|
+
url: z208.string(),
|
|
5860
|
+
slug: z208.string()
|
|
5844
5861
|
});
|
|
5845
|
-
var DTOGitProject =
|
|
5846
|
-
id:
|
|
5847
|
-
name:
|
|
5848
|
-
url:
|
|
5849
|
-
slug:
|
|
5862
|
+
var DTOGitProject = z208.object({
|
|
5863
|
+
id: z208.string(),
|
|
5864
|
+
name: z208.string(),
|
|
5865
|
+
url: z208.string(),
|
|
5866
|
+
slug: z208.string()
|
|
5850
5867
|
});
|
|
5851
|
-
var DTOGitRepository =
|
|
5852
|
-
id:
|
|
5853
|
-
name:
|
|
5854
|
-
url:
|
|
5855
|
-
slug:
|
|
5856
|
-
defaultBranch:
|
|
5868
|
+
var DTOGitRepository = z208.object({
|
|
5869
|
+
id: z208.string(),
|
|
5870
|
+
name: z208.string(),
|
|
5871
|
+
url: z208.string(),
|
|
5872
|
+
slug: z208.string(),
|
|
5873
|
+
defaultBranch: z208.string().optional()
|
|
5857
5874
|
});
|
|
5858
|
-
var DTOGitBranch =
|
|
5859
|
-
name:
|
|
5860
|
-
lastCommitId:
|
|
5875
|
+
var DTOGitBranch = z208.object({
|
|
5876
|
+
name: z208.string(),
|
|
5877
|
+
lastCommitId: z208.string()
|
|
5861
5878
|
});
|
|
5862
5879
|
|
|
5863
5880
|
// src/api/dto/workspaces/integrations.ts
|
|
5864
|
-
import { z as
|
|
5881
|
+
import { z as z209 } from "zod";
|
|
5865
5882
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5866
5883
|
accessToken: true,
|
|
5867
5884
|
refreshToken: true
|
|
5868
5885
|
});
|
|
5869
|
-
var DTOIntegration =
|
|
5870
|
-
id:
|
|
5871
|
-
workspaceId:
|
|
5886
|
+
var DTOIntegration = z209.object({
|
|
5887
|
+
id: z209.string(),
|
|
5888
|
+
workspaceId: z209.string(),
|
|
5872
5889
|
type: ExtendedIntegrationType,
|
|
5873
|
-
createdAt:
|
|
5874
|
-
integrationCredentials:
|
|
5875
|
-
integrationDesignSystems:
|
|
5890
|
+
createdAt: z209.coerce.date(),
|
|
5891
|
+
integrationCredentials: z209.array(DTOIntegrationCredentials).optional(),
|
|
5892
|
+
integrationDesignSystems: z209.array(IntegrationDesignSystem).optional()
|
|
5876
5893
|
});
|
|
5877
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5878
|
-
url:
|
|
5894
|
+
var DTOIntegrationOAuthGetResponse = z209.object({
|
|
5895
|
+
url: z209.string()
|
|
5879
5896
|
});
|
|
5880
|
-
var DTOIntegrationPostResponse =
|
|
5897
|
+
var DTOIntegrationPostResponse = z209.object({
|
|
5881
5898
|
integration: DTOIntegration
|
|
5882
5899
|
});
|
|
5883
|
-
var DTOIntegrationsGetListResponse =
|
|
5900
|
+
var DTOIntegrationsGetListResponse = z209.object({
|
|
5884
5901
|
integrations: DTOIntegration.array()
|
|
5885
5902
|
});
|
|
5886
5903
|
|
|
5887
5904
|
// src/api/dto/workspaces/invitations.ts
|
|
5888
|
-
import { z as
|
|
5889
|
-
var DTOWorkspaceInvitationInput =
|
|
5890
|
-
email:
|
|
5905
|
+
import { z as z210 } from "zod";
|
|
5906
|
+
var DTOWorkspaceInvitationInput = z210.object({
|
|
5907
|
+
email: z210.string().email(),
|
|
5891
5908
|
role: WorkspaceRoleSchema
|
|
5892
5909
|
});
|
|
5893
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5910
|
+
var DTOWorkspaceInvitationsListInput = z210.object({
|
|
5894
5911
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5895
|
-
designSystemId:
|
|
5912
|
+
designSystemId: z210.string().optional()
|
|
5896
5913
|
});
|
|
5897
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5914
|
+
var DTOWorkspaceInvitationsResponse = z210.object({
|
|
5898
5915
|
invitations: WorkspaceInvitation.array()
|
|
5899
5916
|
});
|
|
5900
|
-
var DTOWorkspaceInviteUpdate =
|
|
5917
|
+
var DTOWorkspaceInviteUpdate = z210.object({
|
|
5901
5918
|
role: WorkspaceRoleSchema
|
|
5902
5919
|
});
|
|
5903
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
5920
|
+
var DTOWorkspaceInvitationUpdateResponse = z210.object({
|
|
5904
5921
|
invitation: WorkspaceInvitation
|
|
5905
5922
|
});
|
|
5906
5923
|
|
|
5907
5924
|
// src/api/dto/workspaces/membership.ts
|
|
5908
|
-
import { z as
|
|
5925
|
+
import { z as z213 } from "zod";
|
|
5909
5926
|
|
|
5910
5927
|
// src/api/dto/workspaces/workspace.ts
|
|
5911
|
-
import { z as
|
|
5928
|
+
import { z as z212 } from "zod";
|
|
5912
5929
|
|
|
5913
5930
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5914
|
-
import { z as
|
|
5931
|
+
import { z as z211 } from "zod";
|
|
5915
5932
|
var DTONpmRegistryConfigConstants = {
|
|
5916
5933
|
passwordPlaceholder: "redacted"
|
|
5917
5934
|
};
|
|
5918
|
-
var DTONpmRegistryConfig =
|
|
5935
|
+
var DTONpmRegistryConfig = z211.object({
|
|
5919
5936
|
// Registry basic configuration
|
|
5920
5937
|
registryType: NpmRegistryType,
|
|
5921
|
-
registryUrl:
|
|
5922
|
-
customRegistryUrl:
|
|
5938
|
+
registryUrl: z211.string(),
|
|
5939
|
+
customRegistryUrl: z211.string().optional(),
|
|
5923
5940
|
// URL of Supernova NPM packages proxy
|
|
5924
|
-
proxyUrl:
|
|
5941
|
+
proxyUrl: z211.string(),
|
|
5925
5942
|
// Auth configuration
|
|
5926
5943
|
authType: NpmRegistryAuthType,
|
|
5927
|
-
accessToken:
|
|
5928
|
-
username:
|
|
5929
|
-
password:
|
|
5944
|
+
accessToken: z211.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5945
|
+
username: z211.string().optional(),
|
|
5946
|
+
password: z211.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5930
5947
|
// NPM package scopes for whih the proxy should be enabled
|
|
5931
|
-
enabledScopes:
|
|
5948
|
+
enabledScopes: z211.array(z211.string()),
|
|
5932
5949
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5933
5950
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5934
|
-
bypassProxy:
|
|
5951
|
+
bypassProxy: z211.boolean()
|
|
5935
5952
|
});
|
|
5936
5953
|
|
|
5937
5954
|
// src/api/dto/workspaces/workspace.ts
|
|
5938
5955
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
5939
|
-
var DTOWorkspace =
|
|
5940
|
-
id:
|
|
5956
|
+
var DTOWorkspace = z212.object({
|
|
5957
|
+
id: z212.string(),
|
|
5941
5958
|
profile: DTOWorkspaceProfile,
|
|
5942
5959
|
subscription: Subscription,
|
|
5943
5960
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5944
5961
|
});
|
|
5945
|
-
var DTOWorkspaceCreateInput =
|
|
5946
|
-
name:
|
|
5962
|
+
var DTOWorkspaceCreateInput = z212.object({
|
|
5963
|
+
name: z212.string()
|
|
5947
5964
|
});
|
|
5948
|
-
var DTOWorkspaceResponse =
|
|
5965
|
+
var DTOWorkspaceResponse = z212.object({
|
|
5949
5966
|
workspace: DTOWorkspace
|
|
5950
5967
|
});
|
|
5951
5968
|
|
|
5952
5969
|
// src/api/dto/workspaces/membership.ts
|
|
5953
|
-
var DTOWorkspaceRole =
|
|
5954
|
-
var DTOUserWorkspaceMembership =
|
|
5970
|
+
var DTOWorkspaceRole = z213.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5971
|
+
var DTOUserWorkspaceMembership = z213.object({
|
|
5955
5972
|
// Workspace the user is a member of
|
|
5956
5973
|
workspace: DTOWorkspace,
|
|
5957
5974
|
// Assigned role the user has in the workspace
|
|
@@ -5961,26 +5978,26 @@ var DTOUserWorkspaceMembership = z212.object({
|
|
|
5961
5978
|
// when a workspace's subscription is downgraded to free tier
|
|
5962
5979
|
effectiveRole: DTOWorkspaceRole
|
|
5963
5980
|
});
|
|
5964
|
-
var DTOWorkspaceMember =
|
|
5981
|
+
var DTOWorkspaceMember = z213.object({
|
|
5965
5982
|
user: User,
|
|
5966
5983
|
role: WorkspaceRoleSchema,
|
|
5967
5984
|
effectiveRole: WorkspaceRoleSchema
|
|
5968
5985
|
});
|
|
5969
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5970
|
-
membership:
|
|
5986
|
+
var DTOUserWorkspaceMembershipsResponse = z213.object({
|
|
5987
|
+
membership: z213.array(DTOUserWorkspaceMembership)
|
|
5971
5988
|
});
|
|
5972
|
-
var DTOWorkspaceMembersListResponse =
|
|
5973
|
-
members:
|
|
5989
|
+
var DTOWorkspaceMembersListResponse = z213.object({
|
|
5990
|
+
members: z213.array(DTOWorkspaceMember)
|
|
5974
5991
|
});
|
|
5975
5992
|
|
|
5976
5993
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5977
|
-
var DTOAppBootstrapDataQuery =
|
|
5978
|
-
preferredWorkspaceId:
|
|
5979
|
-
preferredDesignSystemId:
|
|
5980
|
-
preferredVersionId:
|
|
5981
|
-
preferredBrandId:
|
|
5994
|
+
var DTOAppBootstrapDataQuery = z214.object({
|
|
5995
|
+
preferredWorkspaceId: z214.string().optional(),
|
|
5996
|
+
preferredDesignSystemId: z214.string().optional(),
|
|
5997
|
+
preferredVersionId: z214.string().optional(),
|
|
5998
|
+
preferredBrandId: z214.string().optional()
|
|
5982
5999
|
});
|
|
5983
|
-
var DTOAppBootstrapDataResponse =
|
|
6000
|
+
var DTOAppBootstrapDataResponse = z214.object({
|
|
5984
6001
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5985
6002
|
designSystem: DTODesignSystem.optional(),
|
|
5986
6003
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5988,88 +6005,88 @@ var DTOAppBootstrapDataResponse = z213.object({
|
|
|
5988
6005
|
});
|
|
5989
6006
|
|
|
5990
6007
|
// src/api/dto/collections/token-collection.ts
|
|
5991
|
-
import { z as
|
|
5992
|
-
var DTOTokenCollection =
|
|
5993
|
-
id:
|
|
5994
|
-
persistentId:
|
|
5995
|
-
designSystemVersionId:
|
|
6008
|
+
import { z as z215 } from "zod";
|
|
6009
|
+
var DTOTokenCollection = z215.object({
|
|
6010
|
+
id: z215.string(),
|
|
6011
|
+
persistentId: z215.string(),
|
|
6012
|
+
designSystemVersionId: z215.string(),
|
|
5996
6013
|
meta: ObjectMeta,
|
|
5997
6014
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
5998
|
-
elementPropertyOptionId:
|
|
5999
|
-
createdAt:
|
|
6000
|
-
updatedAt:
|
|
6015
|
+
elementPropertyOptionId: z215.string(),
|
|
6016
|
+
createdAt: z215.coerce.date(),
|
|
6017
|
+
updatedAt: z215.coerce.date(),
|
|
6001
6018
|
origin: CollectionOrigin.optional()
|
|
6002
6019
|
});
|
|
6003
|
-
var DTOTokenCollectionsListReponse =
|
|
6020
|
+
var DTOTokenCollectionsListReponse = z215.object({
|
|
6004
6021
|
collections: DTOTokenCollection.array()
|
|
6005
6022
|
});
|
|
6006
6023
|
|
|
6007
6024
|
// src/api/dto/design-tokens/design-token.ts
|
|
6008
|
-
import { z as
|
|
6025
|
+
import { z as z216 } from "zod";
|
|
6009
6026
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6010
|
-
|
|
6011
|
-
id:
|
|
6012
|
-
persistentId:
|
|
6013
|
-
designSystemVersionId:
|
|
6027
|
+
z216.object({
|
|
6028
|
+
id: z216.string(),
|
|
6029
|
+
persistentId: z216.string(),
|
|
6030
|
+
designSystemVersionId: z216.string(),
|
|
6014
6031
|
meta: ObjectMeta,
|
|
6015
6032
|
originStyle: DesignTokenOrigin.optional(),
|
|
6016
|
-
brandId:
|
|
6017
|
-
collectionId:
|
|
6018
|
-
updatedAt:
|
|
6033
|
+
brandId: z216.string(),
|
|
6034
|
+
collectionId: z216.string().optional(),
|
|
6035
|
+
updatedAt: z216.coerce.date()
|
|
6019
6036
|
})
|
|
6020
6037
|
);
|
|
6021
|
-
var DTODesignTokenListResponse =
|
|
6038
|
+
var DTODesignTokenListResponse = z216.object({
|
|
6022
6039
|
tokens: DTODesignToken.array()
|
|
6023
6040
|
});
|
|
6024
|
-
var DTODesignTokenResponse =
|
|
6041
|
+
var DTODesignTokenResponse = z216.object({
|
|
6025
6042
|
token: DTODesignToken
|
|
6026
6043
|
});
|
|
6027
|
-
var DTODesignTokenGroup =
|
|
6028
|
-
id:
|
|
6044
|
+
var DTODesignTokenGroup = z216.object({
|
|
6045
|
+
id: z216.string(),
|
|
6029
6046
|
tokenType: DesignTokenType,
|
|
6030
|
-
persistentId:
|
|
6031
|
-
isRoot:
|
|
6032
|
-
brandId:
|
|
6047
|
+
persistentId: z216.string(),
|
|
6048
|
+
isRoot: z216.boolean(),
|
|
6049
|
+
brandId: z216.string(),
|
|
6033
6050
|
meta: ObjectMeta,
|
|
6034
|
-
childrenIds:
|
|
6051
|
+
childrenIds: z216.string().array()
|
|
6035
6052
|
});
|
|
6036
|
-
var DTODesignTokenGroupListResponse =
|
|
6053
|
+
var DTODesignTokenGroupListResponse = z216.object({
|
|
6037
6054
|
groups: DTODesignTokenGroup.array()
|
|
6038
6055
|
});
|
|
6039
|
-
var DTODesignTokenGroupResponse =
|
|
6056
|
+
var DTODesignTokenGroupResponse = z216.object({
|
|
6040
6057
|
group: DTODesignTokenGroup
|
|
6041
6058
|
});
|
|
6042
6059
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6043
|
-
|
|
6044
|
-
persistentId:
|
|
6060
|
+
z216.object({
|
|
6061
|
+
persistentId: z216.string(),
|
|
6045
6062
|
meta: ObjectMeta,
|
|
6046
|
-
brandId:
|
|
6047
|
-
groupPersistentId:
|
|
6063
|
+
brandId: z216.string(),
|
|
6064
|
+
groupPersistentId: z216.string().optional()
|
|
6048
6065
|
})
|
|
6049
6066
|
);
|
|
6050
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6051
|
-
persistentId:
|
|
6067
|
+
var DTODesignTokenGroupCreatePayload = z216.object({
|
|
6068
|
+
persistentId: z216.string(),
|
|
6052
6069
|
meta: ObjectMeta,
|
|
6053
|
-
brandId:
|
|
6054
|
-
parentId:
|
|
6070
|
+
brandId: z216.string(),
|
|
6071
|
+
parentId: z216.string().optional(),
|
|
6055
6072
|
tokenType: DesignTokenType,
|
|
6056
|
-
childrenIds:
|
|
6073
|
+
childrenIds: z216.string().array()
|
|
6057
6074
|
});
|
|
6058
6075
|
|
|
6059
6076
|
// src/api/dto/documentation/anchor.ts
|
|
6060
|
-
import { z as
|
|
6077
|
+
import { z as z217 } from "zod";
|
|
6061
6078
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6062
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6063
|
-
anchors:
|
|
6079
|
+
var DTOGetDocumentationPageAnchorsResponse = z217.object({
|
|
6080
|
+
anchors: z217.array(DTODocumentationPageAnchor)
|
|
6064
6081
|
});
|
|
6065
6082
|
|
|
6066
6083
|
// src/api/dto/documentation/approvals.ts
|
|
6067
|
-
import { z as
|
|
6084
|
+
import { z as z218 } from "zod";
|
|
6068
6085
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
6069
|
-
var DTODocumentationGroupApprovalState =
|
|
6070
|
-
persistentId:
|
|
6071
|
-
groupId:
|
|
6072
|
-
designSystemVersionId:
|
|
6086
|
+
var DTODocumentationGroupApprovalState = z218.object({
|
|
6087
|
+
persistentId: z218.string(),
|
|
6088
|
+
groupId: z218.string(),
|
|
6089
|
+
designSystemVersionId: z218.string(),
|
|
6073
6090
|
approvalState: DocumentationPageApprovalState
|
|
6074
6091
|
});
|
|
6075
6092
|
|
|
@@ -6077,68 +6094,68 @@ var DTODocumentationGroupApprovalState = z217.object({
|
|
|
6077
6094
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6078
6095
|
|
|
6079
6096
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6080
|
-
import { z as
|
|
6097
|
+
import { z as z223 } from "zod";
|
|
6081
6098
|
|
|
6082
6099
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6083
|
-
import { z as
|
|
6100
|
+
import { z as z222 } from "zod";
|
|
6084
6101
|
|
|
6085
6102
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6086
|
-
import { z as
|
|
6103
|
+
import { z as z220 } from "zod";
|
|
6087
6104
|
|
|
6088
6105
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6089
|
-
import { z as
|
|
6106
|
+
import { z as z219 } from "zod";
|
|
6090
6107
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6091
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6092
|
-
showSidebar:
|
|
6093
|
-
isPrivate:
|
|
6094
|
-
isHidden:
|
|
6108
|
+
var DTODocumentationItemConfigurationV2 = z219.object({
|
|
6109
|
+
showSidebar: z219.boolean(),
|
|
6110
|
+
isPrivate: z219.boolean(),
|
|
6111
|
+
isHidden: z219.boolean(),
|
|
6095
6112
|
header: DTODocumentationItemHeaderV2
|
|
6096
6113
|
});
|
|
6097
6114
|
|
|
6098
6115
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6099
|
-
var DTODocumentationDraftChangeType =
|
|
6100
|
-
var DTODocumentationDraftStateCreated =
|
|
6101
|
-
changeType:
|
|
6102
|
-
});
|
|
6103
|
-
var DTODocumentationDraftStateUpdated =
|
|
6104
|
-
changeType:
|
|
6105
|
-
changes:
|
|
6106
|
-
previousTitle:
|
|
6116
|
+
var DTODocumentationDraftChangeType = z220.enum(["Created", "Updated", "Deleted"]);
|
|
6117
|
+
var DTODocumentationDraftStateCreated = z220.object({
|
|
6118
|
+
changeType: z220.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6119
|
+
});
|
|
6120
|
+
var DTODocumentationDraftStateUpdated = z220.object({
|
|
6121
|
+
changeType: z220.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6122
|
+
changes: z220.object({
|
|
6123
|
+
previousTitle: z220.string().optional(),
|
|
6107
6124
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6108
|
-
previousContentHash:
|
|
6125
|
+
previousContentHash: z220.string().optional()
|
|
6109
6126
|
})
|
|
6110
6127
|
});
|
|
6111
|
-
var DTODocumentationDraftStateDeleted =
|
|
6112
|
-
changeType:
|
|
6113
|
-
deletedAt:
|
|
6114
|
-
deletedByUserId:
|
|
6128
|
+
var DTODocumentationDraftStateDeleted = z220.object({
|
|
6129
|
+
changeType: z220.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6130
|
+
deletedAt: z220.coerce.date(),
|
|
6131
|
+
deletedByUserId: z220.string()
|
|
6115
6132
|
});
|
|
6116
|
-
var DTODocumentationDraftState =
|
|
6133
|
+
var DTODocumentationDraftState = z220.discriminatedUnion("changeType", [
|
|
6117
6134
|
DTODocumentationDraftStateCreated,
|
|
6118
6135
|
DTODocumentationDraftStateUpdated,
|
|
6119
6136
|
DTODocumentationDraftStateDeleted
|
|
6120
6137
|
]);
|
|
6121
6138
|
|
|
6122
6139
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6123
|
-
import { z as
|
|
6124
|
-
var DTODocumentationPublishMetadata =
|
|
6125
|
-
lastPublishedByUserId:
|
|
6126
|
-
lastPublishedAt:
|
|
6140
|
+
import { z as z221 } from "zod";
|
|
6141
|
+
var DTODocumentationPublishMetadata = z221.object({
|
|
6142
|
+
lastPublishedByUserId: z221.string(),
|
|
6143
|
+
lastPublishedAt: z221.coerce.date()
|
|
6127
6144
|
});
|
|
6128
6145
|
|
|
6129
6146
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6130
|
-
var DTODocumentationPageV2 =
|
|
6131
|
-
id:
|
|
6132
|
-
persistentId:
|
|
6133
|
-
designSystemVersionId:
|
|
6134
|
-
title:
|
|
6147
|
+
var DTODocumentationPageV2 = z222.object({
|
|
6148
|
+
id: z222.string(),
|
|
6149
|
+
persistentId: z222.string(),
|
|
6150
|
+
designSystemVersionId: z222.string(),
|
|
6151
|
+
title: z222.string(),
|
|
6135
6152
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6136
|
-
shortPersistentId:
|
|
6137
|
-
slug:
|
|
6138
|
-
userSlug:
|
|
6139
|
-
createdAt:
|
|
6140
|
-
updatedAt:
|
|
6141
|
-
path:
|
|
6153
|
+
shortPersistentId: z222.string(),
|
|
6154
|
+
slug: z222.string().optional(),
|
|
6155
|
+
userSlug: z222.string().optional(),
|
|
6156
|
+
createdAt: z222.coerce.date(),
|
|
6157
|
+
updatedAt: z222.coerce.date(),
|
|
6158
|
+
path: z222.string(),
|
|
6142
6159
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6143
6160
|
draftState: DTODocumentationDraftState.optional(),
|
|
6144
6161
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6146,215 +6163,215 @@ var DTODocumentationPageV2 = z221.object({
|
|
|
6146
6163
|
/** Defines the approval state of the documentation page */
|
|
6147
6164
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6148
6165
|
// Backward compatibility
|
|
6149
|
-
type:
|
|
6166
|
+
type: z222.literal("Page")
|
|
6150
6167
|
});
|
|
6151
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6168
|
+
var DTOCreateDocumentationPageInputV2 = z222.object({
|
|
6152
6169
|
// Identifier
|
|
6153
|
-
persistentId:
|
|
6170
|
+
persistentId: z222.string(),
|
|
6154
6171
|
// Page properties
|
|
6155
|
-
title:
|
|
6172
|
+
title: z222.string(),
|
|
6156
6173
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6157
6174
|
// Page placement properties
|
|
6158
|
-
parentPersistentId:
|
|
6159
|
-
afterPersistentId:
|
|
6175
|
+
parentPersistentId: z222.string(),
|
|
6176
|
+
afterPersistentId: z222.string().nullish()
|
|
6160
6177
|
});
|
|
6161
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6178
|
+
var DTOUpdateDocumentationPageInputV2 = z222.object({
|
|
6162
6179
|
// Identifier of the group to update
|
|
6163
|
-
id:
|
|
6180
|
+
id: z222.string(),
|
|
6164
6181
|
// Page properties
|
|
6165
|
-
title:
|
|
6182
|
+
title: z222.string().optional(),
|
|
6166
6183
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6167
6184
|
});
|
|
6168
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6185
|
+
var DTOMoveDocumentationPageInputV2 = z222.object({
|
|
6169
6186
|
// Identifier of the group to update
|
|
6170
|
-
id:
|
|
6187
|
+
id: z222.string(),
|
|
6171
6188
|
// Page placement properties
|
|
6172
|
-
parentPersistentId:
|
|
6173
|
-
afterPersistentId:
|
|
6189
|
+
parentPersistentId: z222.string(),
|
|
6190
|
+
afterPersistentId: z222.string().nullish()
|
|
6174
6191
|
});
|
|
6175
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6192
|
+
var DTODuplicateDocumentationPageInputV2 = z222.object({
|
|
6176
6193
|
// Identifier of the page to duplicate from
|
|
6177
|
-
id:
|
|
6194
|
+
id: z222.string(),
|
|
6178
6195
|
// New page persistent id
|
|
6179
|
-
persistentId:
|
|
6196
|
+
persistentId: z222.string(),
|
|
6180
6197
|
// Page placement properties
|
|
6181
|
-
parentPersistentId:
|
|
6182
|
-
afterPersistentId:
|
|
6198
|
+
parentPersistentId: z222.string(),
|
|
6199
|
+
afterPersistentId: z222.string().nullish()
|
|
6183
6200
|
});
|
|
6184
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6201
|
+
var DTODeleteDocumentationPageInputV2 = z222.object({
|
|
6185
6202
|
// Identifier
|
|
6186
|
-
id:
|
|
6203
|
+
id: z222.string()
|
|
6187
6204
|
});
|
|
6188
|
-
var DTORestoreDocumentationPageInput =
|
|
6189
|
-
persistentId:
|
|
6190
|
-
snapshotId:
|
|
6205
|
+
var DTORestoreDocumentationPageInput = z222.object({
|
|
6206
|
+
persistentId: z222.string(),
|
|
6207
|
+
snapshotId: z222.string().optional()
|
|
6191
6208
|
});
|
|
6192
|
-
var DTORestoreDocumentationGroupInput =
|
|
6193
|
-
persistentId:
|
|
6194
|
-
snapshotId:
|
|
6209
|
+
var DTORestoreDocumentationGroupInput = z222.object({
|
|
6210
|
+
persistentId: z222.string(),
|
|
6211
|
+
snapshotId: z222.string().optional()
|
|
6195
6212
|
});
|
|
6196
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6197
|
-
persistentId:
|
|
6213
|
+
var DTODocumentationPageApprovalStateChangeInput = z222.object({
|
|
6214
|
+
persistentId: z222.string(),
|
|
6198
6215
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6199
6216
|
});
|
|
6200
6217
|
|
|
6201
6218
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6202
|
-
var DTODocumentationPageSnapshot =
|
|
6203
|
-
id:
|
|
6204
|
-
designSystemVersionId:
|
|
6205
|
-
createdAt:
|
|
6206
|
-
updatedAt:
|
|
6219
|
+
var DTODocumentationPageSnapshot = z223.object({
|
|
6220
|
+
id: z223.string(),
|
|
6221
|
+
designSystemVersionId: z223.string(),
|
|
6222
|
+
createdAt: z223.string(),
|
|
6223
|
+
updatedAt: z223.string(),
|
|
6207
6224
|
documentationPage: DTODocumentationPageV2,
|
|
6208
|
-
pageContentHash:
|
|
6225
|
+
pageContentHash: z223.string(),
|
|
6209
6226
|
reason: DesignElementSnapshotReason
|
|
6210
6227
|
});
|
|
6211
6228
|
|
|
6212
6229
|
// src/api/dto/documentation/link-preview.ts
|
|
6213
|
-
import { z as
|
|
6214
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6230
|
+
import { z as z224 } from "zod";
|
|
6231
|
+
var DTODocumentationLinkPreviewResponse = z224.object({
|
|
6215
6232
|
linkPreview: DocumentationLinkPreview
|
|
6216
6233
|
});
|
|
6217
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6218
|
-
url:
|
|
6219
|
-
documentationItemPersistentId:
|
|
6234
|
+
var DTODocumentationLinkPreviewRequest = z224.object({
|
|
6235
|
+
url: z224.string().optional(),
|
|
6236
|
+
documentationItemPersistentId: z224.string().optional()
|
|
6220
6237
|
});
|
|
6221
6238
|
|
|
6222
6239
|
// src/api/dto/documentation/publish.ts
|
|
6223
|
-
import { z as
|
|
6240
|
+
import { z as z228 } from "zod";
|
|
6224
6241
|
|
|
6225
6242
|
// src/api/dto/export/exporter.ts
|
|
6226
|
-
import { z as
|
|
6227
|
-
var DTOExporterType =
|
|
6228
|
-
var DTOExporterSource =
|
|
6229
|
-
var DTOExporterMembershipRole =
|
|
6230
|
-
var DTOExporterListQuery =
|
|
6231
|
-
limit:
|
|
6232
|
-
});
|
|
6233
|
-
var DTOExporter =
|
|
6234
|
-
id:
|
|
6235
|
-
name:
|
|
6236
|
-
isPrivate:
|
|
6243
|
+
import { z as z225 } from "zod";
|
|
6244
|
+
var DTOExporterType = z225.enum(["documentation", "code"]);
|
|
6245
|
+
var DTOExporterSource = z225.enum(["git", "upload"]);
|
|
6246
|
+
var DTOExporterMembershipRole = z225.enum(["Owner", "OwnerArchived", "User"]);
|
|
6247
|
+
var DTOExporterListQuery = z225.object({
|
|
6248
|
+
limit: z225.coerce.number().optional()
|
|
6249
|
+
});
|
|
6250
|
+
var DTOExporter = z225.object({
|
|
6251
|
+
id: z225.string(),
|
|
6252
|
+
name: z225.string(),
|
|
6253
|
+
isPrivate: z225.boolean(),
|
|
6237
6254
|
exporterType: DTOExporterType,
|
|
6238
|
-
isDefaultDocumentationExporter:
|
|
6239
|
-
iconURL:
|
|
6255
|
+
isDefaultDocumentationExporter: z225.boolean(),
|
|
6256
|
+
iconURL: z225.string().optional(),
|
|
6240
6257
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6241
6258
|
customBlocks: PulsarCustomBlock.array(),
|
|
6242
|
-
blockVariants:
|
|
6243
|
-
usesBrands:
|
|
6244
|
-
usesThemes:
|
|
6259
|
+
blockVariants: z225.record(z225.string(), PulsarContributionVariant.array()),
|
|
6260
|
+
usesBrands: z225.boolean(),
|
|
6261
|
+
usesThemes: z225.boolean(),
|
|
6245
6262
|
source: DTOExporterSource,
|
|
6246
|
-
gitUrl: nullishToOptional(
|
|
6247
|
-
gitBranch: nullishToOptional(
|
|
6248
|
-
gitDirectory: nullishToOptional(
|
|
6263
|
+
gitUrl: nullishToOptional(z225.string()),
|
|
6264
|
+
gitBranch: nullishToOptional(z225.string()),
|
|
6265
|
+
gitDirectory: nullishToOptional(z225.string())
|
|
6249
6266
|
});
|
|
6250
|
-
var DTOExporterMembership =
|
|
6251
|
-
workspaceId:
|
|
6252
|
-
exporterId:
|
|
6267
|
+
var DTOExporterMembership = z225.object({
|
|
6268
|
+
workspaceId: z225.string(),
|
|
6269
|
+
exporterId: z225.string(),
|
|
6253
6270
|
role: DTOExporterMembershipRole
|
|
6254
6271
|
});
|
|
6255
|
-
var DTOExporterCreateOutput =
|
|
6272
|
+
var DTOExporterCreateOutput = z225.object({
|
|
6256
6273
|
exporter: DTOExporter,
|
|
6257
6274
|
membership: DTOExporterMembership
|
|
6258
6275
|
});
|
|
6259
|
-
var DTOExporterListResponse =
|
|
6276
|
+
var DTOExporterListResponse = z225.object({
|
|
6260
6277
|
exporters: DTOExporter.array(),
|
|
6261
6278
|
membership: DTOExporterMembership.array()
|
|
6262
6279
|
});
|
|
6263
|
-
var DTOExporterGitProviderEnum =
|
|
6264
|
-
var DTOExporterCreateInput =
|
|
6265
|
-
url:
|
|
6280
|
+
var DTOExporterGitProviderEnum = z225.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6281
|
+
var DTOExporterCreateInput = z225.object({
|
|
6282
|
+
url: z225.string(),
|
|
6266
6283
|
provider: DTOExporterGitProviderEnum
|
|
6267
6284
|
});
|
|
6268
|
-
var DTOExporterUpdateInput =
|
|
6269
|
-
url:
|
|
6285
|
+
var DTOExporterUpdateInput = z225.object({
|
|
6286
|
+
url: z225.string().optional()
|
|
6270
6287
|
});
|
|
6271
6288
|
|
|
6272
6289
|
// src/api/dto/export/filter.ts
|
|
6273
6290
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6274
6291
|
|
|
6275
6292
|
// src/api/dto/export/job.ts
|
|
6276
|
-
import { z as
|
|
6277
|
-
var DTOExportJobCreatedBy =
|
|
6278
|
-
userId:
|
|
6279
|
-
userName:
|
|
6293
|
+
import { z as z226 } from "zod";
|
|
6294
|
+
var DTOExportJobCreatedBy = z226.object({
|
|
6295
|
+
userId: z226.string(),
|
|
6296
|
+
userName: z226.string()
|
|
6280
6297
|
});
|
|
6281
|
-
var DTOExportJobDesignSystemPreview =
|
|
6282
|
-
id:
|
|
6298
|
+
var DTOExportJobDesignSystemPreview = z226.object({
|
|
6299
|
+
id: z226.string(),
|
|
6283
6300
|
meta: ObjectMeta
|
|
6284
6301
|
});
|
|
6285
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6286
|
-
id:
|
|
6302
|
+
var DTOExportJobDesignSystemVersionPreview = z226.object({
|
|
6303
|
+
id: z226.string(),
|
|
6287
6304
|
meta: ObjectMeta,
|
|
6288
|
-
version:
|
|
6289
|
-
isReadonly:
|
|
6305
|
+
version: z226.string(),
|
|
6306
|
+
isReadonly: z226.boolean()
|
|
6290
6307
|
});
|
|
6291
|
-
var DTOExportJobDestinations =
|
|
6308
|
+
var DTOExportJobDestinations = z226.object({
|
|
6292
6309
|
s3: ExporterDestinationS3.optional(),
|
|
6293
6310
|
azure: ExporterDestinationAzure.optional(),
|
|
6294
6311
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6295
6312
|
github: ExporterDestinationGithub.optional(),
|
|
6296
6313
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6297
6314
|
documentation: ExporterDestinationDocs.optional(),
|
|
6298
|
-
webhookUrl:
|
|
6315
|
+
webhookUrl: z226.string().optional()
|
|
6299
6316
|
});
|
|
6300
6317
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6301
6318
|
sndocs: true
|
|
6302
6319
|
}).extend({
|
|
6303
6320
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6304
6321
|
});
|
|
6305
|
-
var DTOExportJob =
|
|
6306
|
-
id:
|
|
6307
|
-
createdAt:
|
|
6308
|
-
finishedAt:
|
|
6309
|
-
index:
|
|
6322
|
+
var DTOExportJob = z226.object({
|
|
6323
|
+
id: z226.string(),
|
|
6324
|
+
createdAt: z226.coerce.date(),
|
|
6325
|
+
finishedAt: z226.coerce.date().optional(),
|
|
6326
|
+
index: z226.number().optional(),
|
|
6310
6327
|
status: ExportJobStatus,
|
|
6311
|
-
estimatedExecutionTime:
|
|
6328
|
+
estimatedExecutionTime: z226.number().optional(),
|
|
6312
6329
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6313
6330
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6314
6331
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6315
6332
|
destinations: DTOExportJobDestinations,
|
|
6316
|
-
exporterId:
|
|
6317
|
-
scheduleId:
|
|
6333
|
+
exporterId: z226.string(),
|
|
6334
|
+
scheduleId: z226.string().optional(),
|
|
6318
6335
|
result: DTOExportJobResult.optional(),
|
|
6319
|
-
brandPersistentId:
|
|
6320
|
-
themePersistentId:
|
|
6321
|
-
themePersistentIds:
|
|
6336
|
+
brandPersistentId: z226.string().optional(),
|
|
6337
|
+
themePersistentId: z226.string().optional(),
|
|
6338
|
+
themePersistentIds: z226.string().array().optional()
|
|
6322
6339
|
});
|
|
6323
|
-
var DTOExportJobResponse =
|
|
6340
|
+
var DTOExportJobResponse = z226.object({
|
|
6324
6341
|
job: DTOExportJob
|
|
6325
6342
|
});
|
|
6326
6343
|
|
|
6327
6344
|
// src/api/dto/export/pipeline.ts
|
|
6328
|
-
import { z as
|
|
6329
|
-
var DTOPipelineListQuery =
|
|
6330
|
-
designSystemId:
|
|
6331
|
-
exporterId:
|
|
6332
|
-
latestJobsLimit:
|
|
6333
|
-
});
|
|
6334
|
-
var DTOPipeline =
|
|
6335
|
-
id:
|
|
6336
|
-
name:
|
|
6345
|
+
import { z as z227 } from "zod";
|
|
6346
|
+
var DTOPipelineListQuery = z227.object({
|
|
6347
|
+
designSystemId: z227.string().optional(),
|
|
6348
|
+
exporterId: z227.string().optional(),
|
|
6349
|
+
latestJobsLimit: z227.coerce.number().optional()
|
|
6350
|
+
});
|
|
6351
|
+
var DTOPipeline = z227.object({
|
|
6352
|
+
id: z227.string(),
|
|
6353
|
+
name: z227.string(),
|
|
6337
6354
|
eventType: PipelineEventType,
|
|
6338
|
-
isEnabled:
|
|
6339
|
-
workspaceId:
|
|
6340
|
-
designSystemId:
|
|
6341
|
-
exporterId:
|
|
6342
|
-
brandPersistentId:
|
|
6343
|
-
themePersistentId:
|
|
6344
|
-
themePersistentIds:
|
|
6355
|
+
isEnabled: z227.boolean(),
|
|
6356
|
+
workspaceId: z227.string(),
|
|
6357
|
+
designSystemId: z227.string(),
|
|
6358
|
+
exporterId: z227.string(),
|
|
6359
|
+
brandPersistentId: z227.string().optional(),
|
|
6360
|
+
themePersistentId: z227.string().optional(),
|
|
6361
|
+
themePersistentIds: z227.string().array().optional(),
|
|
6345
6362
|
...ExportDestinationsMap.shape,
|
|
6346
6363
|
latestJobs: DTOExportJob.array()
|
|
6347
6364
|
});
|
|
6348
|
-
var DTOPipelineListResponse =
|
|
6365
|
+
var DTOPipelineListResponse = z227.object({
|
|
6349
6366
|
pipelines: DTOPipeline.array()
|
|
6350
6367
|
});
|
|
6351
|
-
var DTOPipelineResponse =
|
|
6368
|
+
var DTOPipelineResponse = z227.object({
|
|
6352
6369
|
pipeline: DTOPipeline
|
|
6353
6370
|
});
|
|
6354
6371
|
|
|
6355
6372
|
// src/api/dto/documentation/publish.ts
|
|
6356
6373
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6357
|
-
var DTOPublishDocumentationRequest =
|
|
6374
|
+
var DTOPublishDocumentationRequest = z228.object({
|
|
6358
6375
|
environment: PublishedDocEnvironment,
|
|
6359
6376
|
/**
|
|
6360
6377
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6362,42 +6379,42 @@ var DTOPublishDocumentationRequest = z227.object({
|
|
|
6362
6379
|
*/
|
|
6363
6380
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6364
6381
|
});
|
|
6365
|
-
var DTOPublishDocumentationResponse =
|
|
6382
|
+
var DTOPublishDocumentationResponse = z228.object({
|
|
6366
6383
|
job: DTOExportJob
|
|
6367
6384
|
});
|
|
6368
6385
|
|
|
6369
6386
|
// src/api/dto/elements/components/figma-component.ts
|
|
6370
|
-
import { z as
|
|
6387
|
+
import { z as z229 } from "zod";
|
|
6371
6388
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6372
|
-
var DTOFigmaComponentPropertyMap =
|
|
6373
|
-
var DTOFigmaComponent =
|
|
6374
|
-
id:
|
|
6375
|
-
persistentId:
|
|
6376
|
-
designSystemVersionId:
|
|
6377
|
-
brandId:
|
|
6378
|
-
thumbnailUrl:
|
|
6379
|
-
svgUrl:
|
|
6380
|
-
exportProperties:
|
|
6381
|
-
isAsset:
|
|
6389
|
+
var DTOFigmaComponentPropertyMap = z229.record(DTOFigmaComponentProperty);
|
|
6390
|
+
var DTOFigmaComponent = z229.object({
|
|
6391
|
+
id: z229.string(),
|
|
6392
|
+
persistentId: z229.string(),
|
|
6393
|
+
designSystemVersionId: z229.string(),
|
|
6394
|
+
brandId: z229.string(),
|
|
6395
|
+
thumbnailUrl: z229.string().optional(),
|
|
6396
|
+
svgUrl: z229.string().optional(),
|
|
6397
|
+
exportProperties: z229.object({
|
|
6398
|
+
isAsset: z229.boolean()
|
|
6382
6399
|
}),
|
|
6383
|
-
createdAt:
|
|
6384
|
-
updatedAt:
|
|
6400
|
+
createdAt: z229.coerce.date(),
|
|
6401
|
+
updatedAt: z229.coerce.date(),
|
|
6385
6402
|
meta: ObjectMeta,
|
|
6386
6403
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6387
|
-
parentComponentPersistentId:
|
|
6388
|
-
childrenPersistentIds:
|
|
6404
|
+
parentComponentPersistentId: z229.string().optional(),
|
|
6405
|
+
childrenPersistentIds: z229.string().array().optional(),
|
|
6389
6406
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6390
|
-
variantPropertyValues:
|
|
6407
|
+
variantPropertyValues: z229.record(z229.string()).optional()
|
|
6391
6408
|
});
|
|
6392
|
-
var DTOFigmaComponentListResponse =
|
|
6409
|
+
var DTOFigmaComponentListResponse = z229.object({
|
|
6393
6410
|
components: DTOFigmaComponent.array()
|
|
6394
6411
|
});
|
|
6395
6412
|
|
|
6396
6413
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6397
|
-
import { z as
|
|
6414
|
+
import { z as z231 } from "zod";
|
|
6398
6415
|
|
|
6399
6416
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6400
|
-
import { z as
|
|
6417
|
+
import { z as z230 } from "zod";
|
|
6401
6418
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6402
6419
|
sortOrder: true,
|
|
6403
6420
|
parentPersistentId: true,
|
|
@@ -6407,13 +6424,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6407
6424
|
data: true,
|
|
6408
6425
|
shortPersistentId: true
|
|
6409
6426
|
}).extend({
|
|
6410
|
-
title:
|
|
6411
|
-
isRoot:
|
|
6412
|
-
childrenIds:
|
|
6427
|
+
title: z230.string(),
|
|
6428
|
+
isRoot: z230.boolean(),
|
|
6429
|
+
childrenIds: z230.array(z230.string()),
|
|
6413
6430
|
groupBehavior: DocumentationGroupBehavior,
|
|
6414
|
-
shortPersistentId:
|
|
6431
|
+
shortPersistentId: z230.string(),
|
|
6415
6432
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6416
|
-
type:
|
|
6433
|
+
type: z230.literal("Group"),
|
|
6417
6434
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6418
6435
|
draftState: DTODocumentationDraftState.optional(),
|
|
6419
6436
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6421,127 +6438,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6421
6438
|
//** An approval state for frontend to utilize. */
|
|
6422
6439
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6423
6440
|
});
|
|
6424
|
-
var DTOCreateDocumentationGroupInput =
|
|
6441
|
+
var DTOCreateDocumentationGroupInput = z230.object({
|
|
6425
6442
|
// Identifier
|
|
6426
|
-
persistentId:
|
|
6443
|
+
persistentId: z230.string(),
|
|
6427
6444
|
// Group properties
|
|
6428
|
-
title:
|
|
6445
|
+
title: z230.string(),
|
|
6429
6446
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6430
6447
|
// Group placement properties
|
|
6431
|
-
afterPersistentId:
|
|
6432
|
-
parentPersistentId:
|
|
6448
|
+
afterPersistentId: z230.string().nullish(),
|
|
6449
|
+
parentPersistentId: z230.string()
|
|
6433
6450
|
});
|
|
6434
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6451
|
+
var DTOUpdateDocumentationGroupInput = z230.object({
|
|
6435
6452
|
// Identifier of the group to update
|
|
6436
|
-
id:
|
|
6453
|
+
id: z230.string(),
|
|
6437
6454
|
// Group properties
|
|
6438
|
-
title:
|
|
6455
|
+
title: z230.string().optional(),
|
|
6439
6456
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6440
6457
|
});
|
|
6441
|
-
var DTOMoveDocumentationGroupInput =
|
|
6458
|
+
var DTOMoveDocumentationGroupInput = z230.object({
|
|
6442
6459
|
// Identifier of the group to update
|
|
6443
|
-
id:
|
|
6460
|
+
id: z230.string(),
|
|
6444
6461
|
// Group placement properties
|
|
6445
|
-
parentPersistentId:
|
|
6446
|
-
afterPersistentId:
|
|
6462
|
+
parentPersistentId: z230.string(),
|
|
6463
|
+
afterPersistentId: z230.string().nullish()
|
|
6447
6464
|
});
|
|
6448
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6465
|
+
var DTODuplicateDocumentationGroupInput = z230.object({
|
|
6449
6466
|
// Identifier of the group to duplicate from
|
|
6450
|
-
id:
|
|
6467
|
+
id: z230.string(),
|
|
6451
6468
|
// New group persistent id
|
|
6452
|
-
persistentId:
|
|
6469
|
+
persistentId: z230.string(),
|
|
6453
6470
|
// Group placement properties
|
|
6454
|
-
afterPersistentId:
|
|
6455
|
-
parentPersistentId:
|
|
6471
|
+
afterPersistentId: z230.string().nullish(),
|
|
6472
|
+
parentPersistentId: z230.string()
|
|
6456
6473
|
});
|
|
6457
|
-
var DTOCreateDocumentationTabInput =
|
|
6474
|
+
var DTOCreateDocumentationTabInput = z230.object({
|
|
6458
6475
|
// New group persistent id
|
|
6459
|
-
persistentId:
|
|
6476
|
+
persistentId: z230.string(),
|
|
6460
6477
|
// If this is page, we will attempt to convert it to tab
|
|
6461
6478
|
// If this is tab group, we will add a new tab to it
|
|
6462
|
-
fromItemPersistentId:
|
|
6463
|
-
tabName:
|
|
6479
|
+
fromItemPersistentId: z230.string(),
|
|
6480
|
+
tabName: z230.string()
|
|
6464
6481
|
});
|
|
6465
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6482
|
+
var DTODeleteDocumentationTabGroupInput = z230.object({
|
|
6466
6483
|
// Deleted group id
|
|
6467
|
-
id:
|
|
6484
|
+
id: z230.string()
|
|
6468
6485
|
});
|
|
6469
|
-
var DTODeleteDocumentationGroupInput =
|
|
6486
|
+
var DTODeleteDocumentationGroupInput = z230.object({
|
|
6470
6487
|
// Identifier
|
|
6471
|
-
id:
|
|
6488
|
+
id: z230.string(),
|
|
6472
6489
|
// Deletion options
|
|
6473
|
-
deleteSubtree:
|
|
6490
|
+
deleteSubtree: z230.boolean().default(false)
|
|
6474
6491
|
});
|
|
6475
6492
|
|
|
6476
6493
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6477
|
-
var SuccessPayload =
|
|
6478
|
-
success:
|
|
6494
|
+
var SuccessPayload = z231.object({
|
|
6495
|
+
success: z231.literal(true)
|
|
6479
6496
|
});
|
|
6480
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6481
|
-
type:
|
|
6497
|
+
var DTODocumentationGroupCreateActionOutputV2 = z231.object({
|
|
6498
|
+
type: z231.literal("DocumentationGroupCreate"),
|
|
6482
6499
|
output: SuccessPayload
|
|
6483
6500
|
});
|
|
6484
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6485
|
-
type:
|
|
6501
|
+
var DTODocumentationTabCreateActionOutputV2 = z231.object({
|
|
6502
|
+
type: z231.literal("DocumentationTabCreate"),
|
|
6486
6503
|
output: SuccessPayload
|
|
6487
6504
|
});
|
|
6488
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6489
|
-
type:
|
|
6505
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z231.object({
|
|
6506
|
+
type: z231.literal("DocumentationGroupUpdate"),
|
|
6490
6507
|
output: SuccessPayload
|
|
6491
6508
|
});
|
|
6492
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6493
|
-
type:
|
|
6509
|
+
var DTODocumentationGroupMoveActionOutputV2 = z231.object({
|
|
6510
|
+
type: z231.literal("DocumentationGroupMove"),
|
|
6494
6511
|
output: SuccessPayload
|
|
6495
6512
|
});
|
|
6496
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6497
|
-
type:
|
|
6513
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z231.object({
|
|
6514
|
+
type: z231.literal("DocumentationGroupDuplicate"),
|
|
6498
6515
|
output: SuccessPayload
|
|
6499
6516
|
});
|
|
6500
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6501
|
-
type:
|
|
6517
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z231.object({
|
|
6518
|
+
type: z231.literal("DocumentationGroupDelete"),
|
|
6502
6519
|
output: SuccessPayload
|
|
6503
6520
|
});
|
|
6504
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6505
|
-
type:
|
|
6521
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z231.object({
|
|
6522
|
+
type: z231.literal("DocumentationTabGroupDelete"),
|
|
6506
6523
|
output: SuccessPayload
|
|
6507
6524
|
});
|
|
6508
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6509
|
-
type:
|
|
6525
|
+
var DTODocumentationGroupCreateActionInputV2 = z231.object({
|
|
6526
|
+
type: z231.literal("DocumentationGroupCreate"),
|
|
6510
6527
|
input: DTOCreateDocumentationGroupInput
|
|
6511
6528
|
});
|
|
6512
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6513
|
-
type:
|
|
6529
|
+
var DTODocumentationTabCreateActionInputV2 = z231.object({
|
|
6530
|
+
type: z231.literal("DocumentationTabCreate"),
|
|
6514
6531
|
input: DTOCreateDocumentationTabInput
|
|
6515
6532
|
});
|
|
6516
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6517
|
-
type:
|
|
6533
|
+
var DTODocumentationGroupUpdateActionInputV2 = z231.object({
|
|
6534
|
+
type: z231.literal("DocumentationGroupUpdate"),
|
|
6518
6535
|
input: DTOUpdateDocumentationGroupInput
|
|
6519
6536
|
});
|
|
6520
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6521
|
-
type:
|
|
6537
|
+
var DTODocumentationGroupMoveActionInputV2 = z231.object({
|
|
6538
|
+
type: z231.literal("DocumentationGroupMove"),
|
|
6522
6539
|
input: DTOMoveDocumentationGroupInput
|
|
6523
6540
|
});
|
|
6524
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6525
|
-
type:
|
|
6541
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z231.object({
|
|
6542
|
+
type: z231.literal("DocumentationGroupDuplicate"),
|
|
6526
6543
|
input: DTODuplicateDocumentationGroupInput
|
|
6527
6544
|
});
|
|
6528
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6529
|
-
type:
|
|
6545
|
+
var DTODocumentationGroupDeleteActionInputV2 = z231.object({
|
|
6546
|
+
type: z231.literal("DocumentationGroupDelete"),
|
|
6530
6547
|
input: DTODeleteDocumentationGroupInput
|
|
6531
6548
|
});
|
|
6532
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6533
|
-
type:
|
|
6549
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z231.object({
|
|
6550
|
+
type: z231.literal("DocumentationTabGroupDelete"),
|
|
6534
6551
|
input: DTODeleteDocumentationTabGroupInput
|
|
6535
6552
|
});
|
|
6536
6553
|
|
|
6537
6554
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6538
|
-
import { z as
|
|
6555
|
+
import { z as z233 } from "zod";
|
|
6539
6556
|
|
|
6540
6557
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6541
|
-
import { z as
|
|
6542
|
-
var DocumentationColorV1 =
|
|
6543
|
-
aliasTo:
|
|
6544
|
-
value:
|
|
6558
|
+
import { z as z232 } from "zod";
|
|
6559
|
+
var DocumentationColorV1 = z232.object({
|
|
6560
|
+
aliasTo: z232.string().optional(),
|
|
6561
|
+
value: z232.string().optional()
|
|
6545
6562
|
});
|
|
6546
6563
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6547
6564
|
foregroundColor: true,
|
|
@@ -6550,10 +6567,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6550
6567
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6551
6568
|
backgroundColor: DocumentationColorV1.optional()
|
|
6552
6569
|
});
|
|
6553
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6554
|
-
showSidebar:
|
|
6555
|
-
isPrivate:
|
|
6556
|
-
isHidden:
|
|
6570
|
+
var DTODocumentationItemConfigurationV1 = z232.object({
|
|
6571
|
+
showSidebar: z232.boolean(),
|
|
6572
|
+
isPrivate: z232.boolean(),
|
|
6573
|
+
isHidden: z232.boolean(),
|
|
6557
6574
|
header: DTODocumentationItemHeaderV1
|
|
6558
6575
|
});
|
|
6559
6576
|
|
|
@@ -6567,27 +6584,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6567
6584
|
data: true,
|
|
6568
6585
|
shortPersistentId: true
|
|
6569
6586
|
}).extend({
|
|
6570
|
-
title:
|
|
6571
|
-
isRoot:
|
|
6572
|
-
childrenIds:
|
|
6587
|
+
title: z233.string(),
|
|
6588
|
+
isRoot: z233.boolean(),
|
|
6589
|
+
childrenIds: z233.array(z233.string()),
|
|
6573
6590
|
groupBehavior: DocumentationGroupBehavior,
|
|
6574
|
-
shortPersistentId:
|
|
6575
|
-
type:
|
|
6591
|
+
shortPersistentId: z233.string(),
|
|
6592
|
+
type: z233.literal("Group")
|
|
6576
6593
|
});
|
|
6577
6594
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6578
6595
|
configuration: DTODocumentationItemConfigurationV1
|
|
6579
6596
|
});
|
|
6580
6597
|
|
|
6581
6598
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6582
|
-
import { z as
|
|
6583
|
-
var DTODocumentationHierarchyV2 =
|
|
6584
|
-
pages:
|
|
6599
|
+
import { z as z234 } from "zod";
|
|
6600
|
+
var DTODocumentationHierarchyV2 = z234.object({
|
|
6601
|
+
pages: z234.array(
|
|
6585
6602
|
DTODocumentationPageV2.extend({
|
|
6586
6603
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6587
6604
|
draftState: DTODocumentationDraftState.optional()
|
|
6588
6605
|
})
|
|
6589
6606
|
),
|
|
6590
|
-
groups:
|
|
6607
|
+
groups: z234.array(
|
|
6591
6608
|
DTODocumentationGroupV2.extend({
|
|
6592
6609
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6593
6610
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6596,84 +6613,84 @@ var DTODocumentationHierarchyV2 = z233.object({
|
|
|
6596
6613
|
});
|
|
6597
6614
|
|
|
6598
6615
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6599
|
-
import { z as
|
|
6600
|
-
var SuccessPayload2 =
|
|
6601
|
-
success:
|
|
6616
|
+
import { z as z235 } from "zod";
|
|
6617
|
+
var SuccessPayload2 = z235.object({
|
|
6618
|
+
success: z235.literal(true)
|
|
6602
6619
|
});
|
|
6603
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6604
|
-
type:
|
|
6620
|
+
var DTODocumentationPageCreateActionOutputV2 = z235.object({
|
|
6621
|
+
type: z235.literal("DocumentationPageCreate"),
|
|
6605
6622
|
output: SuccessPayload2
|
|
6606
6623
|
});
|
|
6607
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6608
|
-
type:
|
|
6624
|
+
var DTODocumentationPageUpdateActionOutputV2 = z235.object({
|
|
6625
|
+
type: z235.literal("DocumentationPageUpdate"),
|
|
6609
6626
|
output: SuccessPayload2
|
|
6610
6627
|
});
|
|
6611
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6612
|
-
type:
|
|
6628
|
+
var DTODocumentationPageMoveActionOutputV2 = z235.object({
|
|
6629
|
+
type: z235.literal("DocumentationPageMove"),
|
|
6613
6630
|
output: SuccessPayload2
|
|
6614
6631
|
});
|
|
6615
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6616
|
-
type:
|
|
6632
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z235.object({
|
|
6633
|
+
type: z235.literal("DocumentationPageDuplicate"),
|
|
6617
6634
|
output: SuccessPayload2
|
|
6618
6635
|
});
|
|
6619
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6620
|
-
type:
|
|
6636
|
+
var DTODocumentationPageDeleteActionOutputV2 = z235.object({
|
|
6637
|
+
type: z235.literal("DocumentationPageDelete"),
|
|
6621
6638
|
output: SuccessPayload2
|
|
6622
6639
|
});
|
|
6623
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6624
|
-
type:
|
|
6640
|
+
var DTODocumentationPageRestoreActionOutput = z235.object({
|
|
6641
|
+
type: z235.literal("DocumentationPageRestore"),
|
|
6625
6642
|
output: SuccessPayload2
|
|
6626
6643
|
});
|
|
6627
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6628
|
-
type:
|
|
6644
|
+
var DTODocumentationGroupRestoreActionOutput = z235.object({
|
|
6645
|
+
type: z235.literal("DocumentationGroupRestore"),
|
|
6629
6646
|
output: SuccessPayload2
|
|
6630
6647
|
});
|
|
6631
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6632
|
-
type:
|
|
6648
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z235.object({
|
|
6649
|
+
type: z235.literal("DocumentationPageApprovalStateChange"),
|
|
6633
6650
|
output: SuccessPayload2
|
|
6634
6651
|
});
|
|
6635
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6636
|
-
type:
|
|
6652
|
+
var DTODocumentationPageCreateActionInputV2 = z235.object({
|
|
6653
|
+
type: z235.literal("DocumentationPageCreate"),
|
|
6637
6654
|
input: DTOCreateDocumentationPageInputV2
|
|
6638
6655
|
});
|
|
6639
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6640
|
-
type:
|
|
6656
|
+
var DTODocumentationPageUpdateActionInputV2 = z235.object({
|
|
6657
|
+
type: z235.literal("DocumentationPageUpdate"),
|
|
6641
6658
|
input: DTOUpdateDocumentationPageInputV2
|
|
6642
6659
|
});
|
|
6643
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6644
|
-
type:
|
|
6660
|
+
var DTODocumentationPageMoveActionInputV2 = z235.object({
|
|
6661
|
+
type: z235.literal("DocumentationPageMove"),
|
|
6645
6662
|
input: DTOMoveDocumentationPageInputV2
|
|
6646
6663
|
});
|
|
6647
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6648
|
-
type:
|
|
6664
|
+
var DTODocumentationPageDuplicateActionInputV2 = z235.object({
|
|
6665
|
+
type: z235.literal("DocumentationPageDuplicate"),
|
|
6649
6666
|
input: DTODuplicateDocumentationPageInputV2
|
|
6650
6667
|
});
|
|
6651
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6652
|
-
type:
|
|
6668
|
+
var DTODocumentationPageDeleteActionInputV2 = z235.object({
|
|
6669
|
+
type: z235.literal("DocumentationPageDelete"),
|
|
6653
6670
|
input: DTODeleteDocumentationPageInputV2
|
|
6654
6671
|
});
|
|
6655
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6656
|
-
type:
|
|
6672
|
+
var DTODocumentationPageRestoreActionInput = z235.object({
|
|
6673
|
+
type: z235.literal("DocumentationPageRestore"),
|
|
6657
6674
|
input: DTORestoreDocumentationPageInput
|
|
6658
6675
|
});
|
|
6659
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6660
|
-
type:
|
|
6676
|
+
var DTODocumentationGroupRestoreActionInput = z235.object({
|
|
6677
|
+
type: z235.literal("DocumentationGroupRestore"),
|
|
6661
6678
|
input: DTORestoreDocumentationGroupInput
|
|
6662
6679
|
});
|
|
6663
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6664
|
-
type:
|
|
6680
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z235.object({
|
|
6681
|
+
type: z235.literal("DocumentationPageApprovalStateChange"),
|
|
6665
6682
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6666
6683
|
});
|
|
6667
6684
|
|
|
6668
6685
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6669
|
-
import { z as
|
|
6686
|
+
import { z as z236 } from "zod";
|
|
6670
6687
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6671
|
-
var DTODocumentationPageContentGetResponse =
|
|
6688
|
+
var DTODocumentationPageContentGetResponse = z236.object({
|
|
6672
6689
|
pageContent: DTODocumentationPageContent
|
|
6673
6690
|
});
|
|
6674
6691
|
|
|
6675
6692
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6676
|
-
import { z as
|
|
6693
|
+
import { z as z237 } from "zod";
|
|
6677
6694
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6678
6695
|
data: true,
|
|
6679
6696
|
meta: true,
|
|
@@ -6681,63 +6698,63 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6681
6698
|
sortOrder: true
|
|
6682
6699
|
}).extend({
|
|
6683
6700
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6684
|
-
blocks:
|
|
6685
|
-
title:
|
|
6686
|
-
path:
|
|
6701
|
+
blocks: z237.array(PageBlockV1),
|
|
6702
|
+
title: z237.string(),
|
|
6703
|
+
path: z237.string()
|
|
6687
6704
|
});
|
|
6688
6705
|
|
|
6689
6706
|
// src/api/dto/elements/documentation/structure.ts
|
|
6690
|
-
import { z as
|
|
6691
|
-
var DTODocumentationStructureItemType =
|
|
6692
|
-
var DTODocumentationStructureItemBase =
|
|
6707
|
+
import { z as z238 } from "zod";
|
|
6708
|
+
var DTODocumentationStructureItemType = z238.enum(["Group", "Page"]);
|
|
6709
|
+
var DTODocumentationStructureItemBase = z238.object({
|
|
6693
6710
|
type: DTODocumentationStructureItemType,
|
|
6694
|
-
id:
|
|
6695
|
-
designSystemVersionId:
|
|
6696
|
-
shortPersistentId:
|
|
6697
|
-
persistentId:
|
|
6698
|
-
title:
|
|
6699
|
-
createdAt:
|
|
6700
|
-
updatedAt:
|
|
6711
|
+
id: z238.string(),
|
|
6712
|
+
designSystemVersionId: z238.string(),
|
|
6713
|
+
shortPersistentId: z238.string(),
|
|
6714
|
+
persistentId: z238.string(),
|
|
6715
|
+
title: z238.string(),
|
|
6716
|
+
createdAt: z238.coerce.date(),
|
|
6717
|
+
updatedAt: z238.coerce.date()
|
|
6701
6718
|
});
|
|
6702
6719
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
6703
|
-
type:
|
|
6704
|
-
groupBehavior:
|
|
6705
|
-
childrenIds:
|
|
6706
|
-
isRoot:
|
|
6720
|
+
type: z238.literal(DTODocumentationStructureItemType.enum.Group),
|
|
6721
|
+
groupBehavior: z238.string(),
|
|
6722
|
+
childrenIds: z238.string().array(),
|
|
6723
|
+
isRoot: z238.boolean()
|
|
6707
6724
|
});
|
|
6708
6725
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
6709
|
-
type:
|
|
6710
|
-
path:
|
|
6726
|
+
type: z238.literal(DTODocumentationStructureItemType.enum.Page),
|
|
6727
|
+
path: z238.string()
|
|
6711
6728
|
});
|
|
6712
|
-
var DTODocumentationStructureItem =
|
|
6729
|
+
var DTODocumentationStructureItem = z238.discriminatedUnion("type", [
|
|
6713
6730
|
DTODocumentationStructureGroupItem,
|
|
6714
6731
|
DTODocumentationStructurePageItem
|
|
6715
6732
|
]);
|
|
6716
|
-
var DTODocumentationStructure =
|
|
6717
|
-
items:
|
|
6733
|
+
var DTODocumentationStructure = z238.object({
|
|
6734
|
+
items: z238.array(DTODocumentationStructureItem)
|
|
6718
6735
|
});
|
|
6719
6736
|
|
|
6720
6737
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6721
|
-
import { z as
|
|
6738
|
+
import { z as z239 } from "zod";
|
|
6722
6739
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6723
|
-
var DTOFigmaNodeOrigin =
|
|
6724
|
-
sourceId:
|
|
6725
|
-
fileId:
|
|
6726
|
-
parentName:
|
|
6740
|
+
var DTOFigmaNodeOrigin = z239.object({
|
|
6741
|
+
sourceId: z239.string(),
|
|
6742
|
+
fileId: z239.string().optional(),
|
|
6743
|
+
parentName: z239.string().optional()
|
|
6727
6744
|
});
|
|
6728
|
-
var DTOFigmaNodeData =
|
|
6745
|
+
var DTOFigmaNodeData = z239.object({
|
|
6729
6746
|
// Id of the node in the Figma file
|
|
6730
|
-
figmaNodeId:
|
|
6747
|
+
figmaNodeId: z239.string(),
|
|
6731
6748
|
// Validity
|
|
6732
|
-
isValid:
|
|
6749
|
+
isValid: z239.boolean(),
|
|
6733
6750
|
// Asset data
|
|
6734
|
-
assetId:
|
|
6735
|
-
assetUrl:
|
|
6751
|
+
assetId: z239.string(),
|
|
6752
|
+
assetUrl: z239.string(),
|
|
6736
6753
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6737
6754
|
// Asset metadata
|
|
6738
|
-
assetScale:
|
|
6739
|
-
assetWidth:
|
|
6740
|
-
assetHeight:
|
|
6755
|
+
assetScale: z239.number(),
|
|
6756
|
+
assetWidth: z239.number().optional(),
|
|
6757
|
+
assetHeight: z239.number().optional()
|
|
6741
6758
|
});
|
|
6742
6759
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6743
6760
|
data: true,
|
|
@@ -6746,15 +6763,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6746
6763
|
data: DTOFigmaNodeData,
|
|
6747
6764
|
origin: DTOFigmaNodeOrigin
|
|
6748
6765
|
});
|
|
6749
|
-
var DTOFigmaNodeRenderInput =
|
|
6766
|
+
var DTOFigmaNodeRenderInput = z239.object({
|
|
6750
6767
|
/**
|
|
6751
6768
|
* Id of a design system's data source representing a linked Figma file
|
|
6752
6769
|
*/
|
|
6753
|
-
sourceId:
|
|
6770
|
+
sourceId: z239.string(),
|
|
6754
6771
|
/**
|
|
6755
6772
|
* Id of a node within the Figma file
|
|
6756
6773
|
*/
|
|
6757
|
-
figmaFileNodeId:
|
|
6774
|
+
figmaFileNodeId: z239.string(),
|
|
6758
6775
|
/**
|
|
6759
6776
|
* Format in which the node must be rendered, png by default.
|
|
6760
6777
|
*/
|
|
@@ -6762,84 +6779,84 @@ var DTOFigmaNodeRenderInput = z238.object({
|
|
|
6762
6779
|
});
|
|
6763
6780
|
|
|
6764
6781
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6765
|
-
import { z as
|
|
6766
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6767
|
-
type:
|
|
6768
|
-
figmaNodes:
|
|
6782
|
+
import { z as z240 } from "zod";
|
|
6783
|
+
var DTOFigmaNodeRenderActionOutput = z240.object({
|
|
6784
|
+
type: z240.literal("FigmaNodeRender"),
|
|
6785
|
+
figmaNodes: z240.array(DTOFigmaNode)
|
|
6769
6786
|
});
|
|
6770
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6771
|
-
type:
|
|
6787
|
+
var DTOFigmaNodeRenderActionInput = z240.object({
|
|
6788
|
+
type: z240.literal("FigmaNodeRender"),
|
|
6772
6789
|
input: DTOFigmaNodeRenderInput.array()
|
|
6773
6790
|
});
|
|
6774
6791
|
|
|
6775
6792
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6776
|
-
import { z as
|
|
6793
|
+
import { z as z241 } from "zod";
|
|
6777
6794
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6778
|
-
var DTOElementPropertyDefinitionOption =
|
|
6779
|
-
id:
|
|
6780
|
-
name:
|
|
6795
|
+
var DTOElementPropertyDefinitionOption = z241.object({
|
|
6796
|
+
id: z241.string(),
|
|
6797
|
+
name: z241.string(),
|
|
6781
6798
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
6782
6799
|
});
|
|
6783
|
-
var DTOElementPropertyDefinition =
|
|
6784
|
-
id:
|
|
6785
|
-
designSystemVersionId:
|
|
6800
|
+
var DTOElementPropertyDefinition = z241.object({
|
|
6801
|
+
id: z241.string(),
|
|
6802
|
+
designSystemVersionId: z241.string(),
|
|
6786
6803
|
meta: DTOObjectMeta,
|
|
6787
|
-
persistentId:
|
|
6804
|
+
persistentId: z241.string(),
|
|
6788
6805
|
type: ElementPropertyTypeSchema,
|
|
6789
6806
|
targetElementType: ElementPropertyTargetType,
|
|
6790
|
-
codeName:
|
|
6791
|
-
options: nullishToOptional(
|
|
6807
|
+
codeName: z241.string().regex(CODE_NAME_REGEX2),
|
|
6808
|
+
options: nullishToOptional(z241.array(DTOElementPropertyDefinitionOption)),
|
|
6792
6809
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6793
|
-
isImmutable:
|
|
6810
|
+
isImmutable: z241.boolean(),
|
|
6794
6811
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
6795
6812
|
});
|
|
6796
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
6797
|
-
definitions:
|
|
6813
|
+
var DTOElementPropertyDefinitionListResponse = z241.object({
|
|
6814
|
+
definitions: z241.array(DTOElementPropertyDefinition)
|
|
6798
6815
|
});
|
|
6799
|
-
var DTOElementPropertyDefinitionResponse =
|
|
6816
|
+
var DTOElementPropertyDefinitionResponse = z241.object({
|
|
6800
6817
|
definition: DTOElementPropertyDefinition
|
|
6801
6818
|
});
|
|
6802
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
6819
|
+
var DTOElementPropertyDefinitionCreatePayload = z241.object({
|
|
6803
6820
|
meta: DTOObjectMeta,
|
|
6804
|
-
persistentId:
|
|
6821
|
+
persistentId: z241.string(),
|
|
6805
6822
|
type: ElementPropertyTypeSchema,
|
|
6806
6823
|
targetElementType: ElementPropertyTargetType,
|
|
6807
|
-
codeName:
|
|
6808
|
-
options: nullishToOptional(
|
|
6824
|
+
codeName: z241.string().regex(CODE_NAME_REGEX2),
|
|
6825
|
+
options: nullishToOptional(z241.array(DTOElementPropertyDefinitionOption)),
|
|
6809
6826
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6810
|
-
columnWidth:
|
|
6827
|
+
columnWidth: z241.number().max(1024).optional()
|
|
6811
6828
|
});
|
|
6812
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
6829
|
+
var DTOElementPropertyDefinitionUpdatePayload = z241.object({
|
|
6813
6830
|
meta: DTOObjectMeta.optional(),
|
|
6814
|
-
codeName:
|
|
6815
|
-
options:
|
|
6831
|
+
codeName: z241.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6832
|
+
options: z241.array(DTOElementPropertyDefinitionOption).optional()
|
|
6816
6833
|
});
|
|
6817
6834
|
|
|
6818
6835
|
// src/api/dto/elements/properties/property-values.ts
|
|
6819
|
-
import { z as
|
|
6820
|
-
var DTOElementPropertyValue =
|
|
6821
|
-
id:
|
|
6822
|
-
designSystemVersionId:
|
|
6823
|
-
definitionId:
|
|
6824
|
-
targetElementId:
|
|
6825
|
-
value:
|
|
6826
|
-
valuePreview:
|
|
6827
|
-
});
|
|
6828
|
-
var DTOElementPropertyValueListResponse =
|
|
6829
|
-
values:
|
|
6830
|
-
});
|
|
6831
|
-
var DTOElementPropertyValueResponse =
|
|
6836
|
+
import { z as z242 } from "zod";
|
|
6837
|
+
var DTOElementPropertyValue = z242.object({
|
|
6838
|
+
id: z242.string(),
|
|
6839
|
+
designSystemVersionId: z242.string(),
|
|
6840
|
+
definitionId: z242.string(),
|
|
6841
|
+
targetElementId: z242.string(),
|
|
6842
|
+
value: z242.union([z242.string(), z242.number(), z242.boolean()]).optional(),
|
|
6843
|
+
valuePreview: z242.string().optional()
|
|
6844
|
+
});
|
|
6845
|
+
var DTOElementPropertyValueListResponse = z242.object({
|
|
6846
|
+
values: z242.array(DTOElementPropertyValue)
|
|
6847
|
+
});
|
|
6848
|
+
var DTOElementPropertyValueResponse = z242.object({
|
|
6832
6849
|
value: DTOElementPropertyValue
|
|
6833
6850
|
});
|
|
6834
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
6835
|
-
definitionId:
|
|
6836
|
-
targetElementId:
|
|
6837
|
-
value:
|
|
6851
|
+
var DTOElementPropertyValueUpsertPaylod = z242.object({
|
|
6852
|
+
definitionId: z242.string(),
|
|
6853
|
+
targetElementId: z242.string(),
|
|
6854
|
+
value: z242.string().or(z242.number()).or(z242.boolean())
|
|
6838
6855
|
});
|
|
6839
6856
|
|
|
6840
6857
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6841
|
-
import { z as
|
|
6842
|
-
var DTOElementActionOutput =
|
|
6858
|
+
import { z as z243 } from "zod";
|
|
6859
|
+
var DTOElementActionOutput = z243.discriminatedUnion("type", [
|
|
6843
6860
|
// Documentation pages
|
|
6844
6861
|
DTODocumentationPageCreateActionOutputV2,
|
|
6845
6862
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6862,7 +6879,7 @@ var DTOElementActionOutput = z242.discriminatedUnion("type", [
|
|
|
6862
6879
|
// Approvals
|
|
6863
6880
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6864
6881
|
]);
|
|
6865
|
-
var DTOElementActionInput =
|
|
6882
|
+
var DTOElementActionInput = z243.discriminatedUnion("type", [
|
|
6866
6883
|
// Documentation pages
|
|
6867
6884
|
DTODocumentationPageCreateActionInputV2,
|
|
6868
6885
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6887,80 +6904,80 @@ var DTOElementActionInput = z242.discriminatedUnion("type", [
|
|
|
6887
6904
|
]);
|
|
6888
6905
|
|
|
6889
6906
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6890
|
-
import { z as
|
|
6891
|
-
var DTOElementsGetTypeFilter =
|
|
6892
|
-
var DTOElementsGetQuerySchema =
|
|
6893
|
-
types:
|
|
6907
|
+
import { z as z244 } from "zod";
|
|
6908
|
+
var DTOElementsGetTypeFilter = z244.enum(["FigmaNode"]);
|
|
6909
|
+
var DTOElementsGetQuerySchema = z244.object({
|
|
6910
|
+
types: z244.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6894
6911
|
});
|
|
6895
|
-
var DTOElementsGetOutput =
|
|
6896
|
-
figmaNodes:
|
|
6912
|
+
var DTOElementsGetOutput = z244.object({
|
|
6913
|
+
figmaNodes: z244.array(DTOFigmaNode).optional()
|
|
6897
6914
|
});
|
|
6898
6915
|
|
|
6899
6916
|
// src/api/dto/figma-components/assets/download.ts
|
|
6900
|
-
import { z as
|
|
6901
|
-
var DTOAssetRenderConfiguration =
|
|
6902
|
-
prefix:
|
|
6903
|
-
suffix:
|
|
6904
|
-
scale:
|
|
6905
|
-
format:
|
|
6906
|
-
});
|
|
6907
|
-
var DTORenderedAssetFile =
|
|
6908
|
-
assetId:
|
|
6909
|
-
fileName:
|
|
6910
|
-
sourceUrl:
|
|
6917
|
+
import { z as z245 } from "zod";
|
|
6918
|
+
var DTOAssetRenderConfiguration = z245.object({
|
|
6919
|
+
prefix: z245.string().optional(),
|
|
6920
|
+
suffix: z245.string().optional(),
|
|
6921
|
+
scale: z245.enum(["x1", "x2", "x3", "x4"]),
|
|
6922
|
+
format: z245.enum(["png", "pdf", "svg"])
|
|
6923
|
+
});
|
|
6924
|
+
var DTORenderedAssetFile = z245.object({
|
|
6925
|
+
assetId: z245.string(),
|
|
6926
|
+
fileName: z245.string(),
|
|
6927
|
+
sourceUrl: z245.string(),
|
|
6911
6928
|
settings: DTOAssetRenderConfiguration,
|
|
6912
|
-
originalName:
|
|
6929
|
+
originalName: z245.string()
|
|
6913
6930
|
});
|
|
6914
|
-
var DTODownloadAssetsRequest =
|
|
6915
|
-
persistentIds:
|
|
6931
|
+
var DTODownloadAssetsRequest = z245.object({
|
|
6932
|
+
persistentIds: z245.array(z245.string().uuid()).optional(),
|
|
6916
6933
|
settings: DTOAssetRenderConfiguration.array()
|
|
6917
6934
|
});
|
|
6918
|
-
var DTODownloadAssetsResponse =
|
|
6935
|
+
var DTODownloadAssetsResponse = z245.object({
|
|
6919
6936
|
items: DTORenderedAssetFile.array()
|
|
6920
6937
|
});
|
|
6921
6938
|
|
|
6922
6939
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6923
|
-
import { z as
|
|
6924
|
-
var DTOLiveblocksAuthResponse =
|
|
6925
|
-
token:
|
|
6940
|
+
import { z as z246 } from "zod";
|
|
6941
|
+
var DTOLiveblocksAuthResponse = z246.object({
|
|
6942
|
+
token: z246.string()
|
|
6926
6943
|
});
|
|
6927
6944
|
|
|
6928
6945
|
// src/api/dto/themes/override.ts
|
|
6929
|
-
import { z as
|
|
6946
|
+
import { z as z247 } from "zod";
|
|
6930
6947
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
6931
|
-
|
|
6932
|
-
tokenPersistentId:
|
|
6948
|
+
z247.object({
|
|
6949
|
+
tokenPersistentId: z247.string(),
|
|
6933
6950
|
origin: ThemeOverrideOrigin.optional()
|
|
6934
6951
|
})
|
|
6935
6952
|
);
|
|
6936
6953
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
6937
|
-
|
|
6938
|
-
tokenPersistentId:
|
|
6954
|
+
z247.object({
|
|
6955
|
+
tokenPersistentId: z247.string()
|
|
6939
6956
|
})
|
|
6940
6957
|
);
|
|
6941
6958
|
|
|
6942
6959
|
// src/api/dto/themes/theme.ts
|
|
6943
|
-
import { z as
|
|
6944
|
-
var DTOTheme =
|
|
6945
|
-
id:
|
|
6946
|
-
persistentId:
|
|
6947
|
-
designSystemVersionId:
|
|
6948
|
-
brandId:
|
|
6960
|
+
import { z as z248 } from "zod";
|
|
6961
|
+
var DTOTheme = z248.object({
|
|
6962
|
+
id: z248.string(),
|
|
6963
|
+
persistentId: z248.string(),
|
|
6964
|
+
designSystemVersionId: z248.string(),
|
|
6965
|
+
brandId: z248.string(),
|
|
6949
6966
|
meta: ObjectMeta,
|
|
6950
|
-
codeName:
|
|
6967
|
+
codeName: z248.string(),
|
|
6951
6968
|
overrides: DTOThemeOverride.array()
|
|
6952
6969
|
});
|
|
6953
|
-
var DTOThemeResponse =
|
|
6970
|
+
var DTOThemeResponse = z248.object({
|
|
6954
6971
|
theme: DTOTheme
|
|
6955
6972
|
});
|
|
6956
|
-
var DTOThemeListResponse =
|
|
6973
|
+
var DTOThemeListResponse = z248.object({
|
|
6957
6974
|
themes: DTOTheme.array()
|
|
6958
6975
|
});
|
|
6959
|
-
var DTOThemeCreatePayload =
|
|
6976
|
+
var DTOThemeCreatePayload = z248.object({
|
|
6960
6977
|
meta: ObjectMeta,
|
|
6961
|
-
persistentId:
|
|
6962
|
-
brandId:
|
|
6963
|
-
codeName:
|
|
6978
|
+
persistentId: z248.string(),
|
|
6979
|
+
brandId: z248.string(),
|
|
6980
|
+
codeName: z248.string(),
|
|
6964
6981
|
overrides: DTOThemeOverride.array()
|
|
6965
6982
|
});
|
|
6966
6983
|
|
|
@@ -7051,21 +7068,43 @@ var BrandsEndpoint = class {
|
|
|
7051
7068
|
};
|
|
7052
7069
|
|
|
7053
7070
|
// src/api/endpoints/design-system/versions/components.ts
|
|
7054
|
-
import { z as
|
|
7071
|
+
import { z as z249 } from "zod";
|
|
7055
7072
|
var DesignSystemComponentEndpoint = class {
|
|
7056
7073
|
constructor(requestExecutor) {
|
|
7057
7074
|
this.requestExecutor = requestExecutor;
|
|
7058
7075
|
}
|
|
7059
7076
|
async create(dsId, vId, body) {
|
|
7060
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/design-system-components`,
|
|
7077
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/design-system-components`, z249.any(), {
|
|
7061
7078
|
body,
|
|
7062
7079
|
method: "POST"
|
|
7063
7080
|
});
|
|
7064
7081
|
}
|
|
7065
7082
|
};
|
|
7066
7083
|
|
|
7067
|
-
// src/api/endpoints/design-system/versions/
|
|
7068
|
-
var
|
|
7084
|
+
// src/api/endpoints/design-system/versions/documentation.ts
|
|
7085
|
+
var DocumentationEndpoint = class {
|
|
7086
|
+
constructor(requestExecutor) {
|
|
7087
|
+
this.requestExecutor = requestExecutor;
|
|
7088
|
+
}
|
|
7089
|
+
getStructure(designSystemId, versionId) {
|
|
7090
|
+
return this.requestExecutor.json(
|
|
7091
|
+
`/design-systems/${designSystemId}/versions/${versionId}/documentation/structure`,
|
|
7092
|
+
DTODocumentationStructure
|
|
7093
|
+
);
|
|
7094
|
+
}
|
|
7095
|
+
async getDocStructure(dsId, vId) {
|
|
7096
|
+
return await this.requestExecutor.json(
|
|
7097
|
+
`/design-systems/${dsId}/versions/${vId}/documentation/structure`,
|
|
7098
|
+
DTODocumentationStructure,
|
|
7099
|
+
{
|
|
7100
|
+
method: "GET"
|
|
7101
|
+
}
|
|
7102
|
+
);
|
|
7103
|
+
}
|
|
7104
|
+
};
|
|
7105
|
+
|
|
7106
|
+
// src/api/endpoints/design-system/versions/elements-action.ts
|
|
7107
|
+
var ElementsActionEndpoint = class {
|
|
7069
7108
|
constructor(requestExecutor) {
|
|
7070
7109
|
this.requestExecutor = requestExecutor;
|
|
7071
7110
|
}
|
|
@@ -7082,6 +7121,71 @@ var ElementsActionsEndpoint = class {
|
|
|
7082
7121
|
}
|
|
7083
7122
|
);
|
|
7084
7123
|
}
|
|
7124
|
+
async createDocGroup(dsId, vId, input) {
|
|
7125
|
+
return this.requestExecutor.json(
|
|
7126
|
+
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7127
|
+
DTOElementActionOutput,
|
|
7128
|
+
{
|
|
7129
|
+
body: {
|
|
7130
|
+
type: "DocumentationGroupCreate",
|
|
7131
|
+
input
|
|
7132
|
+
},
|
|
7133
|
+
method: "POST"
|
|
7134
|
+
}
|
|
7135
|
+
);
|
|
7136
|
+
}
|
|
7137
|
+
async moveDocGroup(dsId, vId, input) {
|
|
7138
|
+
return this.requestExecutor.json(
|
|
7139
|
+
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7140
|
+
DTOElementActionOutput,
|
|
7141
|
+
{
|
|
7142
|
+
body: {
|
|
7143
|
+
type: "DocumentationGroupMove",
|
|
7144
|
+
input
|
|
7145
|
+
},
|
|
7146
|
+
method: "POST"
|
|
7147
|
+
}
|
|
7148
|
+
);
|
|
7149
|
+
}
|
|
7150
|
+
async updateDocPage(dsId, vId, input) {
|
|
7151
|
+
return this.requestExecutor.json(
|
|
7152
|
+
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7153
|
+
DTOElementActionOutput,
|
|
7154
|
+
{
|
|
7155
|
+
body: {
|
|
7156
|
+
type: "DocumentationPageUpdate",
|
|
7157
|
+
input
|
|
7158
|
+
},
|
|
7159
|
+
method: "POST"
|
|
7160
|
+
}
|
|
7161
|
+
);
|
|
7162
|
+
}
|
|
7163
|
+
async updateDocGroup(dsId, vId, input) {
|
|
7164
|
+
return this.requestExecutor.json(
|
|
7165
|
+
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7166
|
+
DTOElementActionOutput,
|
|
7167
|
+
{
|
|
7168
|
+
body: {
|
|
7169
|
+
type: "DocumentationGroupUpdate",
|
|
7170
|
+
input
|
|
7171
|
+
},
|
|
7172
|
+
method: "POST"
|
|
7173
|
+
}
|
|
7174
|
+
);
|
|
7175
|
+
}
|
|
7176
|
+
async createDocTab(dsId, vId, input) {
|
|
7177
|
+
return this.requestExecutor.json(
|
|
7178
|
+
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7179
|
+
DTOElementActionOutput,
|
|
7180
|
+
{
|
|
7181
|
+
body: {
|
|
7182
|
+
type: "DocumentationTabCreate",
|
|
7183
|
+
input
|
|
7184
|
+
},
|
|
7185
|
+
method: "POST"
|
|
7186
|
+
}
|
|
7187
|
+
);
|
|
7188
|
+
}
|
|
7085
7189
|
};
|
|
7086
7190
|
|
|
7087
7191
|
// src/api/endpoints/design-system/versions/import-jobs.ts
|
|
@@ -7098,7 +7202,7 @@ var ImportJobsEndpoint = class {
|
|
|
7098
7202
|
};
|
|
7099
7203
|
|
|
7100
7204
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
7101
|
-
import { z as
|
|
7205
|
+
import { z as z250 } from "zod";
|
|
7102
7206
|
var OverridesEndpoint = class {
|
|
7103
7207
|
constructor(requestExecutor) {
|
|
7104
7208
|
this.requestExecutor = requestExecutor;
|
|
@@ -7106,7 +7210,7 @@ var OverridesEndpoint = class {
|
|
|
7106
7210
|
create(dsId, versionId, themeId, body) {
|
|
7107
7211
|
return this.requestExecutor.json(
|
|
7108
7212
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
7109
|
-
|
|
7213
|
+
z250.any(),
|
|
7110
7214
|
{
|
|
7111
7215
|
method: "POST",
|
|
7112
7216
|
body
|
|
@@ -7116,7 +7220,7 @@ var OverridesEndpoint = class {
|
|
|
7116
7220
|
};
|
|
7117
7221
|
|
|
7118
7222
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7119
|
-
import { z as
|
|
7223
|
+
import { z as z251 } from "zod";
|
|
7120
7224
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
7121
7225
|
constructor(requestExecutor) {
|
|
7122
7226
|
this.requestExecutor = requestExecutor;
|
|
@@ -7144,7 +7248,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
7144
7248
|
delete(designSystemId, versionId, defId) {
|
|
7145
7249
|
return this.requestExecutor.json(
|
|
7146
7250
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7147
|
-
|
|
7251
|
+
z251.any(),
|
|
7148
7252
|
{ method: "DELETE" }
|
|
7149
7253
|
);
|
|
7150
7254
|
}
|
|
@@ -7183,7 +7287,7 @@ var VersionStatsEndpoint = class {
|
|
|
7183
7287
|
};
|
|
7184
7288
|
|
|
7185
7289
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
7186
|
-
import { z as
|
|
7290
|
+
import { z as z252 } from "zod";
|
|
7187
7291
|
var ThemesEndpoint = class {
|
|
7188
7292
|
constructor(requestExecutor) {
|
|
7189
7293
|
this.requestExecutor = requestExecutor;
|
|
@@ -7206,7 +7310,7 @@ var ThemesEndpoint = class {
|
|
|
7206
7310
|
});
|
|
7207
7311
|
}
|
|
7208
7312
|
delete(dsId, versionId, themeId) {
|
|
7209
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
7313
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z252.any(), {
|
|
7210
7314
|
method: "DELETE"
|
|
7211
7315
|
});
|
|
7212
7316
|
}
|
|
@@ -7286,8 +7390,9 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7286
7390
|
__publicField(this, "stats");
|
|
7287
7391
|
__publicField(this, "elementPropertyDefinitions");
|
|
7288
7392
|
__publicField(this, "elementPropertyValues");
|
|
7289
|
-
__publicField(this, "
|
|
7393
|
+
__publicField(this, "elementsAction");
|
|
7290
7394
|
__publicField(this, "designSystemComponents");
|
|
7395
|
+
__publicField(this, "documentation");
|
|
7291
7396
|
this.themes = new ThemesEndpoint(requestExecutor);
|
|
7292
7397
|
this.brands = new BrandsEndpoint(requestExecutor);
|
|
7293
7398
|
this.tokenCollections = new TokenCollectionsEndpoint(requestExecutor);
|
|
@@ -7297,8 +7402,9 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7297
7402
|
this.stats = new VersionStatsEndpoint(requestExecutor);
|
|
7298
7403
|
this.elementPropertyDefinitions = new ElementPropertyDefinitionsEndpoint(requestExecutor);
|
|
7299
7404
|
this.elementPropertyValues = new ElementPropertyValuesEndpoint(requestExecutor);
|
|
7300
|
-
this.
|
|
7405
|
+
this.elementsAction = new ElementsActionEndpoint(requestExecutor);
|
|
7301
7406
|
this.designSystemComponents = new DesignSystemComponentEndpoint(requestExecutor);
|
|
7407
|
+
this.documentation = new DocumentationEndpoint(requestExecutor);
|
|
7302
7408
|
}
|
|
7303
7409
|
list(dsId) {
|
|
7304
7410
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions`, DTODesignSystemVersionsListResponse);
|
|
@@ -7343,7 +7449,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
7343
7449
|
};
|
|
7344
7450
|
|
|
7345
7451
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7346
|
-
import { z as
|
|
7452
|
+
import { z as z254 } from "zod";
|
|
7347
7453
|
|
|
7348
7454
|
// src/api/endpoints/design-system/members.ts
|
|
7349
7455
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -7364,16 +7470,28 @@ var DesignSystemMembersEndpoint = class {
|
|
|
7364
7470
|
};
|
|
7365
7471
|
|
|
7366
7472
|
// src/api/endpoints/design-system/sources.ts
|
|
7367
|
-
import { z as
|
|
7473
|
+
import { z as z253 } from "zod";
|
|
7368
7474
|
var DesignSystemSourcesEndpoint = class {
|
|
7369
7475
|
constructor(requestExecutor) {
|
|
7370
7476
|
this.requestExecutor = requestExecutor;
|
|
7371
7477
|
}
|
|
7478
|
+
create(dsId, payload) {
|
|
7479
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourceResponse, {
|
|
7480
|
+
method: "POST",
|
|
7481
|
+
body: payload
|
|
7482
|
+
});
|
|
7483
|
+
}
|
|
7372
7484
|
list(dsId) {
|
|
7373
7485
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
7374
7486
|
}
|
|
7375
7487
|
delete(dsId, sourceId) {
|
|
7376
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
7488
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z253.any(), { method: "DELETE" });
|
|
7489
|
+
}
|
|
7490
|
+
figmaImport(dsId, payload) {
|
|
7491
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
7492
|
+
method: "POST",
|
|
7493
|
+
body: payload
|
|
7494
|
+
});
|
|
7377
7495
|
}
|
|
7378
7496
|
};
|
|
7379
7497
|
|
|
@@ -7402,7 +7520,7 @@ var DesignSystemsEndpoint = class {
|
|
|
7402
7520
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
7403
7521
|
}
|
|
7404
7522
|
delete(dsId) {
|
|
7405
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
7523
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z254.any(), { method: "DELETE" });
|
|
7406
7524
|
}
|
|
7407
7525
|
update(dsId, body) {
|
|
7408
7526
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -7446,7 +7564,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
7446
7564
|
};
|
|
7447
7565
|
|
|
7448
7566
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
7449
|
-
import { z as
|
|
7567
|
+
import { z as z255 } from "zod";
|
|
7450
7568
|
var WorkspaceMembersEndpoint = class {
|
|
7451
7569
|
constructor(requestExecutor) {
|
|
7452
7570
|
this.requestExecutor = requestExecutor;
|
|
@@ -7463,7 +7581,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7463
7581
|
});
|
|
7464
7582
|
}
|
|
7465
7583
|
invite(workspaceId, body) {
|
|
7466
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
7584
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z255.any(), { method: "POST", body });
|
|
7467
7585
|
}
|
|
7468
7586
|
delete(workspaceId, userId) {
|
|
7469
7587
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -7473,7 +7591,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7473
7591
|
};
|
|
7474
7592
|
|
|
7475
7593
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
7476
|
-
import { z as
|
|
7594
|
+
import { z as z256 } from "zod";
|
|
7477
7595
|
var WorkspacesEndpoint = class {
|
|
7478
7596
|
constructor(requestExecutor) {
|
|
7479
7597
|
this.requestExecutor = requestExecutor;
|
|
@@ -7496,10 +7614,16 @@ var WorkspacesEndpoint = class {
|
|
|
7496
7614
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
7497
7615
|
}
|
|
7498
7616
|
delete(workspaceId) {
|
|
7499
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
7617
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z256.any(), { method: "DELETE" });
|
|
7500
7618
|
}
|
|
7501
7619
|
subscription(workspaceId) {
|
|
7502
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
7620
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z256.any(), { method: "GET" });
|
|
7621
|
+
}
|
|
7622
|
+
transferOwnership(workspaceId, body) {
|
|
7623
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
7624
|
+
method: "PUT",
|
|
7625
|
+
body
|
|
7626
|
+
});
|
|
7503
7627
|
}
|
|
7504
7628
|
};
|
|
7505
7629
|
|
|
@@ -7580,9 +7704,9 @@ ${bodyText}`,
|
|
|
7580
7704
|
|
|
7581
7705
|
// src/api/transport/request-executor.ts
|
|
7582
7706
|
import fetch from "node-fetch";
|
|
7583
|
-
import { z as
|
|
7584
|
-
var ResponseWrapper =
|
|
7585
|
-
result:
|
|
7707
|
+
import { z as z257 } from "zod";
|
|
7708
|
+
var ResponseWrapper = z257.object({
|
|
7709
|
+
result: z257.record(z257.any())
|
|
7586
7710
|
});
|
|
7587
7711
|
var RequestExecutor = class {
|
|
7588
7712
|
constructor(testServerConfig) {
|
|
@@ -7713,7 +7837,7 @@ function generateHash(input, debug = false) {
|
|
|
7713
7837
|
}
|
|
7714
7838
|
|
|
7715
7839
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7716
|
-
import { z as
|
|
7840
|
+
import { z as z258 } from "zod";
|
|
7717
7841
|
|
|
7718
7842
|
// src/yjs/version-room/base.ts
|
|
7719
7843
|
var VersionRoomBaseYDoc = class {
|
|
@@ -8243,24 +8367,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8243
8367
|
};
|
|
8244
8368
|
|
|
8245
8369
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8246
|
-
var DocumentationHierarchySettings =
|
|
8247
|
-
routingVersion:
|
|
8248
|
-
isDraftFeatureAdopted:
|
|
8249
|
-
isApprovalFeatureEnabled:
|
|
8250
|
-
approvalRequiredForPublishing:
|
|
8370
|
+
var DocumentationHierarchySettings = z258.object({
|
|
8371
|
+
routingVersion: z258.string(),
|
|
8372
|
+
isDraftFeatureAdopted: z258.boolean(),
|
|
8373
|
+
isApprovalFeatureEnabled: z258.boolean(),
|
|
8374
|
+
approvalRequiredForPublishing: z258.boolean()
|
|
8251
8375
|
});
|
|
8252
8376
|
function yjsToDocumentationHierarchy(doc) {
|
|
8253
8377
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
8254
8378
|
}
|
|
8255
8379
|
|
|
8256
8380
|
// src/yjs/design-system-content/item-configuration.ts
|
|
8257
|
-
import { z as
|
|
8258
|
-
var DTODocumentationPageRoomHeaderData =
|
|
8259
|
-
title:
|
|
8381
|
+
import { z as z259 } from "zod";
|
|
8382
|
+
var DTODocumentationPageRoomHeaderData = z259.object({
|
|
8383
|
+
title: z259.string(),
|
|
8260
8384
|
configuration: DTODocumentationItemConfigurationV2
|
|
8261
8385
|
});
|
|
8262
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
8263
|
-
title:
|
|
8386
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z259.object({
|
|
8387
|
+
title: z259.string().optional(),
|
|
8264
8388
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
8265
8389
|
});
|
|
8266
8390
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -8311,7 +8435,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
8311
8435
|
header: rawHeader
|
|
8312
8436
|
};
|
|
8313
8437
|
return {
|
|
8314
|
-
title:
|
|
8438
|
+
title: z259.string().parse(title),
|
|
8315
8439
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
8316
8440
|
};
|
|
8317
8441
|
}
|
|
@@ -8321,9 +8445,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
8321
8445
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
8322
8446
|
|
|
8323
8447
|
// src/yjs/docs-editor/model/page.ts
|
|
8324
|
-
import { z as
|
|
8325
|
-
var DocumentationPageEditorModel =
|
|
8326
|
-
blocks:
|
|
8448
|
+
import { z as z260 } from "zod";
|
|
8449
|
+
var DocumentationPageEditorModel = z260.object({
|
|
8450
|
+
blocks: z260.array(DocumentationPageContentItem)
|
|
8327
8451
|
});
|
|
8328
8452
|
|
|
8329
8453
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -11844,7 +11968,7 @@ var blocks = [
|
|
|
11844
11968
|
|
|
11845
11969
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
11846
11970
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
11847
|
-
import { z as
|
|
11971
|
+
import { z as z261 } from "zod";
|
|
11848
11972
|
function yDocToPage(yDoc, definitions) {
|
|
11849
11973
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
11850
11974
|
}
|
|
@@ -11924,7 +12048,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
11924
12048
|
return null;
|
|
11925
12049
|
return {
|
|
11926
12050
|
id,
|
|
11927
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
12051
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z261.string()) ?? "",
|
|
11928
12052
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
11929
12053
|
};
|
|
11930
12054
|
}
|
|
@@ -11959,7 +12083,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11959
12083
|
});
|
|
11960
12084
|
}
|
|
11961
12085
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11962
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
12086
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z261.string());
|
|
11963
12087
|
if (!definitionId) {
|
|
11964
12088
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11965
12089
|
return [];
|
|
@@ -12001,7 +12125,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
12001
12125
|
if (!id)
|
|
12002
12126
|
return null;
|
|
12003
12127
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12004
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
12128
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z261.string().optional()));
|
|
12005
12129
|
return {
|
|
12006
12130
|
id,
|
|
12007
12131
|
type: "Block",
|
|
@@ -12129,10 +12253,10 @@ function parseRichTextAttribute(mark) {
|
|
|
12129
12253
|
return null;
|
|
12130
12254
|
}
|
|
12131
12255
|
function parseProsemirrorLink(mark) {
|
|
12132
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
12256
|
+
const href = getProsemirrorAttribute(mark, "href", z261.string().optional());
|
|
12133
12257
|
if (!href)
|
|
12134
12258
|
return null;
|
|
12135
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
12259
|
+
const target = getProsemirrorAttribute(mark, "target", z261.string().optional());
|
|
12136
12260
|
const openInNewTab = target === "_blank";
|
|
12137
12261
|
if (href.startsWith("@")) {
|
|
12138
12262
|
return {
|
|
@@ -12151,10 +12275,10 @@ function parseProsemirrorLink(mark) {
|
|
|
12151
12275
|
}
|
|
12152
12276
|
}
|
|
12153
12277
|
function parseProsemirrorCommentHighlight(mark) {
|
|
12154
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
12278
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z261.string().optional());
|
|
12155
12279
|
if (!highlightId)
|
|
12156
12280
|
return null;
|
|
12157
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
12281
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z261.boolean().optional()) ?? false;
|
|
12158
12282
|
return {
|
|
12159
12283
|
type: "Comment",
|
|
12160
12284
|
commentHighlightId: highlightId,
|
|
@@ -12166,7 +12290,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
12166
12290
|
if (!id)
|
|
12167
12291
|
return null;
|
|
12168
12292
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12169
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
12293
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z261.boolean().optional()) !== false;
|
|
12170
12294
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
12171
12295
|
if (!tableChild) {
|
|
12172
12296
|
return emptyTable(id, variantId, 0);
|
|
@@ -12213,9 +12337,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
12213
12337
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
12214
12338
|
if (!id)
|
|
12215
12339
|
return null;
|
|
12216
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
12340
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z261.string().optional());
|
|
12217
12341
|
let columnWidth;
|
|
12218
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
12342
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z261.array(z261.number()).nullish());
|
|
12219
12343
|
if (columnWidthArray) {
|
|
12220
12344
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
12221
12345
|
}
|
|
@@ -12253,7 +12377,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
12253
12377
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
12254
12378
|
};
|
|
12255
12379
|
case "image":
|
|
12256
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12380
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z261.string());
|
|
12257
12381
|
if (!items)
|
|
12258
12382
|
return null;
|
|
12259
12383
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -12373,7 +12497,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
12373
12497
|
);
|
|
12374
12498
|
}
|
|
12375
12499
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
12376
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12500
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z261.string());
|
|
12377
12501
|
if (!itemsString)
|
|
12378
12502
|
return null;
|
|
12379
12503
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -12385,18 +12509,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
12385
12509
|
}
|
|
12386
12510
|
function parseAppearance(prosemirrorNode) {
|
|
12387
12511
|
let appearance = {};
|
|
12388
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
12512
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z261.string().optional());
|
|
12389
12513
|
if (rawAppearanceString) {
|
|
12390
12514
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
12391
12515
|
if (parsedAppearance.success) {
|
|
12392
12516
|
appearance = parsedAppearance.data;
|
|
12393
12517
|
}
|
|
12394
12518
|
}
|
|
12395
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
12519
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z261.number().optional());
|
|
12396
12520
|
if (columns) {
|
|
12397
12521
|
appearance.numberOfColumns = columns;
|
|
12398
12522
|
}
|
|
12399
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
12523
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z261.string().optional());
|
|
12400
12524
|
if (backgroundColor) {
|
|
12401
12525
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
12402
12526
|
if (parsedColor.success) {
|
|
@@ -12491,13 +12615,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
12491
12615
|
}
|
|
12492
12616
|
}
|
|
12493
12617
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
12494
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
12618
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z261.string());
|
|
12495
12619
|
if (!id)
|
|
12496
12620
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
12497
12621
|
return id;
|
|
12498
12622
|
}
|
|
12499
12623
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
12500
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
12624
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z261.string()));
|
|
12501
12625
|
}
|
|
12502
12626
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
12503
12627
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -12581,10 +12705,13 @@ export {
|
|
|
12581
12705
|
DTOCreateDocumentationTabInput,
|
|
12582
12706
|
DTOCreateVersionInput,
|
|
12583
12707
|
DTODataSource,
|
|
12584
|
-
DTODataSourceCreationResponse,
|
|
12585
12708
|
DTODataSourceFigma,
|
|
12586
12709
|
DTODataSourceFigmaCloud,
|
|
12710
|
+
DTODataSourceFigmaCreatePayload,
|
|
12711
|
+
DTODataSourceFigmaImportPayload,
|
|
12712
|
+
DTODataSourceFigmaScope,
|
|
12587
12713
|
DTODataSourceFigmaVariablesPlugin,
|
|
12714
|
+
DTODataSourceResponse,
|
|
12588
12715
|
DTODataSourceTokenStudio,
|
|
12589
12716
|
DTODataSourcesListResponse,
|
|
12590
12717
|
DTODeleteDocumentationGroupInput,
|
|
@@ -12788,6 +12915,7 @@ export {
|
|
|
12788
12915
|
DTOThemeResponse,
|
|
12789
12916
|
DTOTokenCollection,
|
|
12790
12917
|
DTOTokenCollectionsListReponse,
|
|
12918
|
+
DTOTransferOwnershipPayload,
|
|
12791
12919
|
DTOUpdateDocumentationGroupInput,
|
|
12792
12920
|
DTOUpdateDocumentationPageInputV2,
|
|
12793
12921
|
DTOUpdateUserNotificationSettingsPayload,
|
|
@@ -12828,12 +12956,13 @@ export {
|
|
|
12828
12956
|
DesignSystemVersionsEndpoint,
|
|
12829
12957
|
DesignSystemsEndpoint,
|
|
12830
12958
|
DimensionsVariableScopeType,
|
|
12959
|
+
DocumentationEndpoint,
|
|
12831
12960
|
DocumentationHierarchySettings,
|
|
12832
12961
|
DocumentationPageEditorModel,
|
|
12833
12962
|
DocumentationPageV1DTO,
|
|
12834
12963
|
ElementPropertyDefinitionsEndpoint,
|
|
12835
12964
|
ElementPropertyValuesEndpoint,
|
|
12836
|
-
|
|
12965
|
+
ElementsActionEndpoint,
|
|
12837
12966
|
ExportersEndpoint,
|
|
12838
12967
|
FormattedCollections,
|
|
12839
12968
|
FrontendVersionRoomYDoc,
|