@supernova-studio/client 0.59.10 → 0.59.12
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 +307 -3
- package/dist/index.d.ts +307 -3
- package/dist/index.js +51 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +850 -803
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/dto/design-systems/version-room.ts +12 -0
- package/src/api/dto/elements/elements-action-v2.ts +30 -24
- package/src/api/dto/users/authenticated-user.ts +4 -1
- package/src/api/endpoints/design-system/versions/elements-action.ts +3 -0
- package/src/api/endpoints/design-system/versions/versions.ts +8 -0
- package/src/yjs/version-room/backend.ts +5 -0
- package/src/yjs/version-room/base.ts +26 -0
package/dist/index.mjs
CHANGED
|
@@ -4380,7 +4380,8 @@ var DesignSystemVersionRoomUpdate = z151.object({
|
|
|
4380
4380
|
groupSnapshotIdsToDelete: z151.array(z151.string()),
|
|
4381
4381
|
pageHashesToUpdate: z151.record(z151.string(), z151.string()),
|
|
4382
4382
|
pageApprovals: z151.array(DocumentationPageApproval),
|
|
4383
|
-
pageApprovalIdsToDelete: z151.array(z151.string())
|
|
4383
|
+
pageApprovalIdsToDelete: z151.array(z151.string()),
|
|
4384
|
+
executedTransactionIds: z151.array(z151.string())
|
|
4384
4385
|
});
|
|
4385
4386
|
var DocumentationPageRoom = Entity.extend({
|
|
4386
4387
|
designSystemVersionId: z152.string(),
|
|
@@ -5302,7 +5303,7 @@ var DTOPagination = z183.object({
|
|
|
5302
5303
|
});
|
|
5303
5304
|
|
|
5304
5305
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5305
|
-
import { z as
|
|
5306
|
+
import { z as z219 } from "zod";
|
|
5306
5307
|
|
|
5307
5308
|
// src/api/dto/design-systems/brand.ts
|
|
5308
5309
|
import { z as z184 } from "zod";
|
|
@@ -5377,6 +5378,7 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
5377
5378
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
5378
5379
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
5379
5380
|
var DTOUserSource = UserSource;
|
|
5381
|
+
var DTOUserTheme = UserTheme;
|
|
5380
5382
|
var DTOUserOnboarding = z187.object({
|
|
5381
5383
|
companyName: z187.string().optional(),
|
|
5382
5384
|
numberOfPeopleInOrg: z187.string().optional(),
|
|
@@ -5390,7 +5392,8 @@ var DTOUserOnboarding = z187.object({
|
|
|
5390
5392
|
isPageDraftOnboardingFinished: z187.boolean().optional()
|
|
5391
5393
|
});
|
|
5392
5394
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
5393
|
-
onboarding: DTOUserOnboarding.optional()
|
|
5395
|
+
onboarding: DTOUserOnboarding.optional(),
|
|
5396
|
+
theme: DTOUserTheme.optional()
|
|
5394
5397
|
});
|
|
5395
5398
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
5396
5399
|
profile: DTOAuthenticatedUserProfile,
|
|
@@ -5767,11 +5770,20 @@ var DTODesignSystemVersionStatsQuery = z198.object({
|
|
|
5767
5770
|
brandId: z198.string().optional()
|
|
5768
5771
|
});
|
|
5769
5772
|
|
|
5773
|
+
// src/api/dto/design-systems/version-room.ts
|
|
5774
|
+
import { z as z199 } from "zod";
|
|
5775
|
+
var DTODesignSystemVersionRoom = z199.object({
|
|
5776
|
+
id: z199.string()
|
|
5777
|
+
});
|
|
5778
|
+
var DTODesignSystemVersionRoomResponse = z199.object({
|
|
5779
|
+
room: DTODesignSystemVersionRoom
|
|
5780
|
+
});
|
|
5781
|
+
|
|
5770
5782
|
// src/api/dto/design-systems/version.ts
|
|
5771
|
-
import { z as
|
|
5783
|
+
import { z as z211 } from "zod";
|
|
5772
5784
|
|
|
5773
5785
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5774
|
-
import { z as
|
|
5786
|
+
import { z as z200 } from "zod";
|
|
5775
5787
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5776
5788
|
id: true,
|
|
5777
5789
|
workspaceId: true,
|
|
@@ -5783,40 +5795,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5783
5795
|
}).extend({
|
|
5784
5796
|
meta: ObjectMeta.partial().optional()
|
|
5785
5797
|
});
|
|
5786
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5798
|
+
var DTODesignSystemUpdateAccessModeInput = z200.object({
|
|
5787
5799
|
accessMode: DesignSystemAccessMode,
|
|
5788
|
-
retain:
|
|
5789
|
-
userIds:
|
|
5790
|
-
inviteIds:
|
|
5800
|
+
retain: z200.object({
|
|
5801
|
+
userIds: z200.string().array(),
|
|
5802
|
+
inviteIds: z200.string().array()
|
|
5791
5803
|
}).optional()
|
|
5792
5804
|
});
|
|
5793
5805
|
|
|
5794
5806
|
// src/api/payloads/design-systems/version.ts
|
|
5795
|
-
import { z as
|
|
5796
|
-
var ObjectMeta2 =
|
|
5797
|
-
name:
|
|
5798
|
-
description:
|
|
5807
|
+
import { z as z201 } from "zod";
|
|
5808
|
+
var ObjectMeta2 = z201.object({
|
|
5809
|
+
name: z201.string().max(150).optional(),
|
|
5810
|
+
description: z201.string().max(2e3).optional()
|
|
5799
5811
|
});
|
|
5800
5812
|
function validateDesignSystemVersion(version) {
|
|
5801
5813
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5802
5814
|
return urlCompliantRegex.test(version);
|
|
5803
5815
|
}
|
|
5804
|
-
var DTOCreateVersionInput =
|
|
5816
|
+
var DTOCreateVersionInput = z201.object({
|
|
5805
5817
|
meta: ObjectMeta2,
|
|
5806
|
-
version:
|
|
5818
|
+
version: z201.string().refine(validateDesignSystemVersion, {
|
|
5807
5819
|
message: "Invalid semantic versioning format"
|
|
5808
5820
|
}),
|
|
5809
|
-
changeLog:
|
|
5821
|
+
changeLog: z201.string().optional()
|
|
5810
5822
|
});
|
|
5811
|
-
var DTOUpdateVersionInput =
|
|
5823
|
+
var DTOUpdateVersionInput = z201.object({
|
|
5812
5824
|
meta: ObjectMeta2,
|
|
5813
|
-
version:
|
|
5825
|
+
version: z201.string(),
|
|
5814
5826
|
// required for PUT, but not editable
|
|
5815
|
-
changeLog:
|
|
5827
|
+
changeLog: z201.string()
|
|
5816
5828
|
});
|
|
5817
5829
|
|
|
5818
5830
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5819
|
-
import { z as
|
|
5831
|
+
import { z as z202 } from "zod";
|
|
5820
5832
|
|
|
5821
5833
|
// src/api/dto/documentation/block-definition.ts
|
|
5822
5834
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5828,70 +5840,70 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5828
5840
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5829
5841
|
|
|
5830
5842
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5831
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5832
|
-
definitions:
|
|
5843
|
+
var DTOGetBlockDefinitionsOutput = z202.object({
|
|
5844
|
+
definitions: z202.array(DTOPageBlockDefinition)
|
|
5833
5845
|
});
|
|
5834
5846
|
|
|
5835
5847
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5836
|
-
import { z as
|
|
5837
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5838
|
-
environment:
|
|
5848
|
+
import { z as z203 } from "zod";
|
|
5849
|
+
var DTODocumentationPublishTypeQueryParams = z203.object({
|
|
5850
|
+
environment: z203.enum(["Live", "Preview"])
|
|
5839
5851
|
});
|
|
5840
5852
|
|
|
5841
5853
|
// src/api/payloads/export/pipeline.ts
|
|
5842
|
-
import { z as
|
|
5854
|
+
import { z as z205 } from "zod";
|
|
5843
5855
|
|
|
5844
5856
|
// src/api/dto/export/exporter-property.ts
|
|
5845
|
-
import { z as
|
|
5846
|
-
var PrimitiveValue2 =
|
|
5847
|
-
var ArrayValue2 =
|
|
5848
|
-
var ObjectValue2 =
|
|
5857
|
+
import { z as z204 } from "zod";
|
|
5858
|
+
var PrimitiveValue2 = z204.number().or(z204.boolean()).or(z204.string());
|
|
5859
|
+
var ArrayValue2 = z204.array(z204.string());
|
|
5860
|
+
var ObjectValue2 = z204.record(z204.string());
|
|
5849
5861
|
var DTOExporterPropertyDefinitionValue = PrimitiveValue2.or(ArrayValue2).or(ObjectValue2);
|
|
5850
|
-
var DTOExporterPropertyType =
|
|
5851
|
-
var PropertyDefinitionBase2 =
|
|
5852
|
-
key:
|
|
5853
|
-
title:
|
|
5854
|
-
description:
|
|
5855
|
-
category:
|
|
5856
|
-
dependsOn:
|
|
5857
|
-
});
|
|
5858
|
-
var DTOExporterPropertyDefinitionEnumOption =
|
|
5859
|
-
label:
|
|
5860
|
-
description:
|
|
5862
|
+
var DTOExporterPropertyType = z204.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
5863
|
+
var PropertyDefinitionBase2 = z204.object({
|
|
5864
|
+
key: z204.string(),
|
|
5865
|
+
title: z204.string(),
|
|
5866
|
+
description: z204.string(),
|
|
5867
|
+
category: z204.string().optional(),
|
|
5868
|
+
dependsOn: z204.record(z204.boolean()).optional()
|
|
5869
|
+
});
|
|
5870
|
+
var DTOExporterPropertyDefinitionEnumOption = z204.object({
|
|
5871
|
+
label: z204.string(),
|
|
5872
|
+
description: z204.string()
|
|
5861
5873
|
});
|
|
5862
5874
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase2.extend({
|
|
5863
|
-
type:
|
|
5864
|
-
options:
|
|
5865
|
-
default:
|
|
5875
|
+
type: z204.literal(DTOExporterPropertyType.Enum.Enum),
|
|
5876
|
+
options: z204.record(DTOExporterPropertyDefinitionEnumOption),
|
|
5877
|
+
default: z204.string()
|
|
5866
5878
|
});
|
|
5867
5879
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase2.extend({
|
|
5868
|
-
type:
|
|
5869
|
-
default:
|
|
5880
|
+
type: z204.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
5881
|
+
default: z204.boolean()
|
|
5870
5882
|
});
|
|
5871
5883
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase2.extend({
|
|
5872
|
-
type:
|
|
5873
|
-
default:
|
|
5884
|
+
type: z204.literal(DTOExporterPropertyType.Enum.String),
|
|
5885
|
+
default: z204.string()
|
|
5874
5886
|
});
|
|
5875
5887
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase2.extend({
|
|
5876
|
-
type:
|
|
5877
|
-
default:
|
|
5888
|
+
type: z204.literal(DTOExporterPropertyType.Enum.Number),
|
|
5889
|
+
default: z204.number()
|
|
5878
5890
|
});
|
|
5879
5891
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase2.extend({
|
|
5880
|
-
type:
|
|
5892
|
+
type: z204.literal(DTOExporterPropertyType.Enum.Array),
|
|
5881
5893
|
default: ArrayValue2
|
|
5882
5894
|
});
|
|
5883
5895
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase2.extend({
|
|
5884
|
-
type:
|
|
5896
|
+
type: z204.literal(DTOExporterPropertyType.Enum.Object),
|
|
5885
5897
|
default: ObjectValue2,
|
|
5886
|
-
allowedKeys:
|
|
5887
|
-
options:
|
|
5888
|
-
type:
|
|
5898
|
+
allowedKeys: z204.object({
|
|
5899
|
+
options: z204.string().array(),
|
|
5900
|
+
type: z204.string()
|
|
5889
5901
|
}).optional(),
|
|
5890
|
-
allowedValues:
|
|
5891
|
-
type:
|
|
5902
|
+
allowedValues: z204.object({
|
|
5903
|
+
type: z204.string()
|
|
5892
5904
|
}).optional()
|
|
5893
5905
|
});
|
|
5894
|
-
var DTOExporterPropertyDefinition =
|
|
5906
|
+
var DTOExporterPropertyDefinition = z204.discriminatedUnion("type", [
|
|
5895
5907
|
DTOExporterPropertyDefinitionEnum,
|
|
5896
5908
|
DTOExporterPropertyDefinitionBoolean,
|
|
5897
5909
|
DTOExporterPropertyDefinitionString,
|
|
@@ -5899,73 +5911,73 @@ var DTOExporterPropertyDefinition = z203.discriminatedUnion("type", [
|
|
|
5899
5911
|
DTOExporterPropertyDefinitionArray,
|
|
5900
5912
|
DTOExporterPropertyDefinitionObject
|
|
5901
5913
|
]);
|
|
5902
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
5914
|
+
var DTOExporterPropertyDefinitionsResponse = z204.object({
|
|
5903
5915
|
properties: DTOExporterPropertyDefinition.array()
|
|
5904
5916
|
});
|
|
5905
|
-
var DTOExporterPropertyDefinitionValueMap =
|
|
5917
|
+
var DTOExporterPropertyDefinitionValueMap = z204.record(DTOExporterPropertyDefinitionValue);
|
|
5906
5918
|
|
|
5907
5919
|
// src/api/payloads/export/pipeline.ts
|
|
5908
|
-
var DTOPipelineCreateBody =
|
|
5909
|
-
name:
|
|
5910
|
-
exporterId:
|
|
5911
|
-
designSystemId:
|
|
5912
|
-
isEnabled:
|
|
5920
|
+
var DTOPipelineCreateBody = z205.object({
|
|
5921
|
+
name: z205.string(),
|
|
5922
|
+
exporterId: z205.string(),
|
|
5923
|
+
designSystemId: z205.string(),
|
|
5924
|
+
isEnabled: z205.boolean(),
|
|
5913
5925
|
eventType: PipelineEventType,
|
|
5914
|
-
brandPersistentId:
|
|
5915
|
-
themePersistentId:
|
|
5916
|
-
themePersistentIds:
|
|
5926
|
+
brandPersistentId: z205.string().optional(),
|
|
5927
|
+
themePersistentId: z205.string().optional(),
|
|
5928
|
+
themePersistentIds: z205.string().array().optional(),
|
|
5917
5929
|
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
5918
5930
|
destination: PipelineDestinationType.optional(),
|
|
5919
5931
|
gitQuery: GitObjectsQuery,
|
|
5920
|
-
destinations:
|
|
5932
|
+
destinations: z205.object({
|
|
5921
5933
|
s3: ExporterDestinationS3.nullish(),
|
|
5922
5934
|
azure: ExporterDestinationAzure.nullish(),
|
|
5923
5935
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5924
5936
|
github: ExporterDestinationGithub.nullish(),
|
|
5925
5937
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5926
5938
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5927
|
-
webhookUrl:
|
|
5939
|
+
webhookUrl: z205.string().nullish()
|
|
5928
5940
|
})
|
|
5929
5941
|
});
|
|
5930
|
-
var DTOPipelineUpdateBody =
|
|
5931
|
-
exporterId:
|
|
5932
|
-
name:
|
|
5933
|
-
isEnabled:
|
|
5942
|
+
var DTOPipelineUpdateBody = z205.object({
|
|
5943
|
+
exporterId: z205.string().optional(),
|
|
5944
|
+
name: z205.string().optional(),
|
|
5945
|
+
isEnabled: z205.boolean().optional(),
|
|
5934
5946
|
eventType: PipelineEventType.optional(),
|
|
5935
|
-
brandPersistentId:
|
|
5936
|
-
themePersistentId:
|
|
5937
|
-
themePersistentIds:
|
|
5947
|
+
brandPersistentId: z205.string().optional(),
|
|
5948
|
+
themePersistentId: z205.string().optional(),
|
|
5949
|
+
themePersistentIds: z205.string().array().optional(),
|
|
5938
5950
|
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
5939
5951
|
destination: PipelineDestinationType.optional(),
|
|
5940
5952
|
gitQuery: GitObjectsQuery.optional(),
|
|
5941
|
-
destinations:
|
|
5953
|
+
destinations: z205.object({
|
|
5942
5954
|
s3: ExporterDestinationS3.nullish(),
|
|
5943
5955
|
azure: ExporterDestinationAzure.nullish(),
|
|
5944
5956
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5945
5957
|
github: ExporterDestinationGithub.nullish(),
|
|
5946
5958
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5947
5959
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5948
|
-
webhookUrl:
|
|
5960
|
+
webhookUrl: z205.string().nullish()
|
|
5949
5961
|
}).optional()
|
|
5950
5962
|
});
|
|
5951
|
-
var DTOPipelineTriggerBody =
|
|
5952
|
-
designSystemVersionId:
|
|
5963
|
+
var DTOPipelineTriggerBody = z205.object({
|
|
5964
|
+
designSystemVersionId: z205.string()
|
|
5953
5965
|
});
|
|
5954
5966
|
|
|
5955
5967
|
// src/api/payloads/liveblocks/auth.ts
|
|
5956
|
-
import { z as
|
|
5957
|
-
var DTOLiveblocksAuthRequest =
|
|
5958
|
-
room:
|
|
5968
|
+
import { z as z206 } from "zod";
|
|
5969
|
+
var DTOLiveblocksAuthRequest = z206.object({
|
|
5970
|
+
room: z206.string().optional()
|
|
5959
5971
|
});
|
|
5960
5972
|
|
|
5961
5973
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5962
|
-
import { z as
|
|
5963
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5974
|
+
import { z as z207 } from "zod";
|
|
5975
|
+
var DTOUpdateUserNotificationSettingsPayload = z207.object({
|
|
5964
5976
|
notificationSettings: UserNotificationSettings
|
|
5965
5977
|
});
|
|
5966
|
-
var DTOUserNotificationSettingsResponse =
|
|
5967
|
-
userId:
|
|
5968
|
-
workspaceId:
|
|
5978
|
+
var DTOUserNotificationSettingsResponse = z207.object({
|
|
5979
|
+
userId: z207.string(),
|
|
5980
|
+
workspaceId: z207.string(),
|
|
5969
5981
|
notificationSettings: UserNotificationSettings
|
|
5970
5982
|
});
|
|
5971
5983
|
|
|
@@ -5973,13 +5985,13 @@ var DTOUserNotificationSettingsResponse = z206.object({
|
|
|
5973
5985
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5974
5986
|
|
|
5975
5987
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
5976
|
-
import { z as
|
|
5977
|
-
var DTOTransferOwnershipPayload =
|
|
5978
|
-
newOwnerId:
|
|
5988
|
+
import { z as z208 } from "zod";
|
|
5989
|
+
var DTOTransferOwnershipPayload = z208.object({
|
|
5990
|
+
newOwnerId: z208.string()
|
|
5979
5991
|
});
|
|
5980
5992
|
|
|
5981
5993
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5982
|
-
import { z as
|
|
5994
|
+
import { z as z209 } from "zod";
|
|
5983
5995
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5984
5996
|
function validateSsoPayload(ssoPayload) {
|
|
5985
5997
|
const keys = [];
|
|
@@ -6002,21 +6014,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
6002
6014
|
keys
|
|
6003
6015
|
};
|
|
6004
6016
|
}
|
|
6005
|
-
var NpmRegistryInput =
|
|
6006
|
-
enabledScopes:
|
|
6007
|
-
customRegistryUrl:
|
|
6008
|
-
bypassProxy:
|
|
6009
|
-
npmProxyRegistryConfigId:
|
|
6010
|
-
npmProxyVersion:
|
|
6011
|
-
registryType:
|
|
6012
|
-
authType:
|
|
6013
|
-
authHeaderName:
|
|
6014
|
-
authHeaderValue:
|
|
6015
|
-
accessToken:
|
|
6016
|
-
username:
|
|
6017
|
-
password:
|
|
6018
|
-
});
|
|
6019
|
-
var WorkspaceConfigurationPayload =
|
|
6017
|
+
var NpmRegistryInput = z209.object({
|
|
6018
|
+
enabledScopes: z209.array(z209.string()),
|
|
6019
|
+
customRegistryUrl: z209.string().optional(),
|
|
6020
|
+
bypassProxy: z209.boolean().optional(),
|
|
6021
|
+
npmProxyRegistryConfigId: z209.string().optional(),
|
|
6022
|
+
npmProxyVersion: z209.number().optional(),
|
|
6023
|
+
registryType: z209.string(),
|
|
6024
|
+
authType: z209.string(),
|
|
6025
|
+
authHeaderName: z209.string(),
|
|
6026
|
+
authHeaderValue: z209.string(),
|
|
6027
|
+
accessToken: z209.string(),
|
|
6028
|
+
username: z209.string(),
|
|
6029
|
+
password: z209.string()
|
|
6030
|
+
});
|
|
6031
|
+
var WorkspaceConfigurationPayload = z209.object({
|
|
6020
6032
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
6021
6033
|
sso: SsoProvider.partial().optional(),
|
|
6022
6034
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -6024,218 +6036,218 @@ var WorkspaceConfigurationPayload = z208.object({
|
|
|
6024
6036
|
});
|
|
6025
6037
|
|
|
6026
6038
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
6027
|
-
import { z as
|
|
6028
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
6039
|
+
import { z as z210 } from "zod";
|
|
6040
|
+
var DTOWorkspaceIntegrationOauthInput = z210.object({
|
|
6029
6041
|
type: IntegrationType
|
|
6030
6042
|
});
|
|
6031
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
6032
|
-
userId:
|
|
6043
|
+
var DTOWorkspaceIntegrationPATInput = z210.object({
|
|
6044
|
+
userId: z210.string(),
|
|
6033
6045
|
type: IntegrationType,
|
|
6034
6046
|
token: IntegrationToken
|
|
6035
6047
|
});
|
|
6036
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
6037
|
-
organization:
|
|
6048
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z210.object({
|
|
6049
|
+
organization: z210.string().optional(),
|
|
6038
6050
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
6039
|
-
project:
|
|
6051
|
+
project: z210.string().optional(),
|
|
6040
6052
|
// Only for Bitbucket and Azure
|
|
6041
|
-
repository:
|
|
6053
|
+
repository: z210.string().optional(),
|
|
6042
6054
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
6043
|
-
branch:
|
|
6055
|
+
branch: z210.string().optional(),
|
|
6044
6056
|
// For all providers, useful for PR creations.
|
|
6045
|
-
user:
|
|
6057
|
+
user: z210.string().optional()
|
|
6046
6058
|
// Only for Gitlab User Repositories
|
|
6047
6059
|
});
|
|
6048
6060
|
|
|
6049
6061
|
// src/api/dto/design-systems/version.ts
|
|
6050
|
-
var DTODesignSystemVersion =
|
|
6051
|
-
id:
|
|
6052
|
-
createdAt:
|
|
6062
|
+
var DTODesignSystemVersion = z211.object({
|
|
6063
|
+
id: z211.string(),
|
|
6064
|
+
createdAt: z211.coerce.date(),
|
|
6053
6065
|
meta: ObjectMeta,
|
|
6054
|
-
version:
|
|
6055
|
-
isReadonly:
|
|
6056
|
-
changeLog:
|
|
6057
|
-
designSystemId:
|
|
6066
|
+
version: z211.string(),
|
|
6067
|
+
isReadonly: z211.boolean(),
|
|
6068
|
+
changeLog: z211.string(),
|
|
6069
|
+
designSystemId: z211.string()
|
|
6058
6070
|
});
|
|
6059
|
-
var DTODesignSystemVersionsListResponse =
|
|
6060
|
-
designSystemVersions:
|
|
6071
|
+
var DTODesignSystemVersionsListResponse = z211.object({
|
|
6072
|
+
designSystemVersions: z211.array(DTODesignSystemVersion)
|
|
6061
6073
|
});
|
|
6062
|
-
var DTODesignSystemVersionGetResponse =
|
|
6074
|
+
var DTODesignSystemVersionGetResponse = z211.object({
|
|
6063
6075
|
designSystemVersion: DTODesignSystemVersion
|
|
6064
6076
|
});
|
|
6065
|
-
var DTODesignSystemVersionCreationResponse =
|
|
6077
|
+
var DTODesignSystemVersionCreationResponse = z211.object({
|
|
6066
6078
|
meta: ObjectMeta,
|
|
6067
|
-
version:
|
|
6068
|
-
changeLog:
|
|
6069
|
-
isReadOnly:
|
|
6070
|
-
designSystemId:
|
|
6071
|
-
jobId:
|
|
6072
|
-
});
|
|
6073
|
-
var VersionSQSPayload =
|
|
6074
|
-
jobId:
|
|
6075
|
-
designSystemId:
|
|
6079
|
+
version: z211.string(),
|
|
6080
|
+
changeLog: z211.string(),
|
|
6081
|
+
isReadOnly: z211.boolean(),
|
|
6082
|
+
designSystemId: z211.string(),
|
|
6083
|
+
jobId: z211.string()
|
|
6084
|
+
});
|
|
6085
|
+
var VersionSQSPayload = z211.object({
|
|
6086
|
+
jobId: z211.string(),
|
|
6087
|
+
designSystemId: z211.string(),
|
|
6076
6088
|
input: DTOCreateVersionInput
|
|
6077
6089
|
});
|
|
6078
|
-
var DTODesignSystemVersionJobsResponse =
|
|
6079
|
-
jobs:
|
|
6090
|
+
var DTODesignSystemVersionJobsResponse = z211.object({
|
|
6091
|
+
jobs: z211.array(VersionCreationJob)
|
|
6080
6092
|
});
|
|
6081
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
6093
|
+
var DTODesignSystemVersionJobStatusResponse = z211.object({
|
|
6082
6094
|
job: VersionCreationJob
|
|
6083
6095
|
});
|
|
6084
6096
|
|
|
6085
6097
|
// src/api/dto/design-systems/view.ts
|
|
6086
|
-
import { z as
|
|
6087
|
-
var DTOElementViewColumnSharedAttributes =
|
|
6088
|
-
id:
|
|
6089
|
-
persistentId:
|
|
6090
|
-
width:
|
|
6098
|
+
import { z as z212 } from "zod";
|
|
6099
|
+
var DTOElementViewColumnSharedAttributes = z212.object({
|
|
6100
|
+
id: z212.string(),
|
|
6101
|
+
persistentId: z212.string(),
|
|
6102
|
+
width: z212.number()
|
|
6091
6103
|
});
|
|
6092
6104
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6093
|
-
type:
|
|
6105
|
+
type: z212.literal("BaseProperty"),
|
|
6094
6106
|
basePropertyType: ElementViewBaseColumnType
|
|
6095
6107
|
});
|
|
6096
6108
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6097
|
-
type:
|
|
6098
|
-
propertyDefinitionId:
|
|
6109
|
+
type: z212.literal("PropertyDefinition"),
|
|
6110
|
+
propertyDefinitionId: z212.string()
|
|
6099
6111
|
});
|
|
6100
6112
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
6101
|
-
type:
|
|
6102
|
-
themeId:
|
|
6113
|
+
type: z212.literal("Theme"),
|
|
6114
|
+
themeId: z212.string()
|
|
6103
6115
|
});
|
|
6104
|
-
var DTOElementViewColumn =
|
|
6116
|
+
var DTOElementViewColumn = z212.discriminatedUnion("type", [
|
|
6105
6117
|
DTOElementViewBasePropertyColumn,
|
|
6106
6118
|
DTOElementViewPropertyDefinitionColumn,
|
|
6107
6119
|
DTOElementViewThemeColumn
|
|
6108
6120
|
]);
|
|
6109
|
-
var DTOElementView =
|
|
6121
|
+
var DTOElementView = z212.object({
|
|
6110
6122
|
meta: ObjectMeta,
|
|
6111
|
-
persistentId:
|
|
6123
|
+
persistentId: z212.string(),
|
|
6112
6124
|
targetElementType: ElementPropertyTargetType,
|
|
6113
|
-
id:
|
|
6114
|
-
isDefault:
|
|
6115
|
-
columns:
|
|
6125
|
+
id: z212.string(),
|
|
6126
|
+
isDefault: z212.boolean(),
|
|
6127
|
+
columns: z212.array(DTOElementViewColumn)
|
|
6116
6128
|
});
|
|
6117
|
-
var DTOElementViewsListResponse =
|
|
6118
|
-
elementDataViews:
|
|
6129
|
+
var DTOElementViewsListResponse = z212.object({
|
|
6130
|
+
elementDataViews: z212.array(DTOElementView)
|
|
6119
6131
|
});
|
|
6120
6132
|
|
|
6121
6133
|
// src/api/dto/workspaces/git.ts
|
|
6122
|
-
import { z as
|
|
6123
|
-
var DTOGitOrganization =
|
|
6124
|
-
id:
|
|
6125
|
-
name:
|
|
6126
|
-
url:
|
|
6127
|
-
slug:
|
|
6134
|
+
import { z as z213 } from "zod";
|
|
6135
|
+
var DTOGitOrganization = z213.object({
|
|
6136
|
+
id: z213.string(),
|
|
6137
|
+
name: z213.string(),
|
|
6138
|
+
url: z213.string(),
|
|
6139
|
+
slug: z213.string()
|
|
6128
6140
|
});
|
|
6129
|
-
var DTOGitProject =
|
|
6130
|
-
id:
|
|
6131
|
-
name:
|
|
6132
|
-
url:
|
|
6133
|
-
slug:
|
|
6141
|
+
var DTOGitProject = z213.object({
|
|
6142
|
+
id: z213.string(),
|
|
6143
|
+
name: z213.string(),
|
|
6144
|
+
url: z213.string(),
|
|
6145
|
+
slug: z213.string()
|
|
6134
6146
|
});
|
|
6135
|
-
var DTOGitRepository =
|
|
6136
|
-
id:
|
|
6137
|
-
name:
|
|
6138
|
-
url:
|
|
6139
|
-
slug:
|
|
6140
|
-
defaultBranch:
|
|
6147
|
+
var DTOGitRepository = z213.object({
|
|
6148
|
+
id: z213.string(),
|
|
6149
|
+
name: z213.string(),
|
|
6150
|
+
url: z213.string(),
|
|
6151
|
+
slug: z213.string(),
|
|
6152
|
+
defaultBranch: z213.string().optional()
|
|
6141
6153
|
});
|
|
6142
|
-
var DTOGitBranch =
|
|
6143
|
-
name:
|
|
6144
|
-
lastCommitId:
|
|
6154
|
+
var DTOGitBranch = z213.object({
|
|
6155
|
+
name: z213.string(),
|
|
6156
|
+
lastCommitId: z213.string()
|
|
6145
6157
|
});
|
|
6146
6158
|
|
|
6147
6159
|
// src/api/dto/workspaces/integrations.ts
|
|
6148
|
-
import { z as
|
|
6160
|
+
import { z as z214 } from "zod";
|
|
6149
6161
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6150
6162
|
accessToken: true,
|
|
6151
6163
|
refreshToken: true
|
|
6152
6164
|
});
|
|
6153
|
-
var DTOIntegration =
|
|
6154
|
-
id:
|
|
6155
|
-
workspaceId:
|
|
6165
|
+
var DTOIntegration = z214.object({
|
|
6166
|
+
id: z214.string(),
|
|
6167
|
+
workspaceId: z214.string(),
|
|
6156
6168
|
type: ExtendedIntegrationType,
|
|
6157
|
-
createdAt:
|
|
6158
|
-
integrationCredentials:
|
|
6159
|
-
integrationDesignSystems:
|
|
6169
|
+
createdAt: z214.coerce.date(),
|
|
6170
|
+
integrationCredentials: z214.array(DTOIntegrationCredentials).optional(),
|
|
6171
|
+
integrationDesignSystems: z214.array(IntegrationDesignSystem).optional()
|
|
6160
6172
|
});
|
|
6161
|
-
var DTOIntegrationOAuthGetResponse =
|
|
6162
|
-
url:
|
|
6173
|
+
var DTOIntegrationOAuthGetResponse = z214.object({
|
|
6174
|
+
url: z214.string()
|
|
6163
6175
|
});
|
|
6164
|
-
var DTOIntegrationPostResponse =
|
|
6176
|
+
var DTOIntegrationPostResponse = z214.object({
|
|
6165
6177
|
integration: DTOIntegration
|
|
6166
6178
|
});
|
|
6167
|
-
var DTOIntegrationsGetListResponse =
|
|
6179
|
+
var DTOIntegrationsGetListResponse = z214.object({
|
|
6168
6180
|
integrations: DTOIntegration.array()
|
|
6169
6181
|
});
|
|
6170
6182
|
|
|
6171
6183
|
// src/api/dto/workspaces/invitations.ts
|
|
6172
|
-
import { z as
|
|
6173
|
-
var DTOWorkspaceInvitationInput =
|
|
6174
|
-
email:
|
|
6184
|
+
import { z as z215 } from "zod";
|
|
6185
|
+
var DTOWorkspaceInvitationInput = z215.object({
|
|
6186
|
+
email: z215.string().email(),
|
|
6175
6187
|
role: WorkspaceRoleSchema
|
|
6176
6188
|
});
|
|
6177
|
-
var DTOWorkspaceInvitationsListInput =
|
|
6189
|
+
var DTOWorkspaceInvitationsListInput = z215.object({
|
|
6178
6190
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
6179
|
-
designSystemId:
|
|
6191
|
+
designSystemId: z215.string().optional()
|
|
6180
6192
|
});
|
|
6181
|
-
var DTOWorkspaceInvitationsResponse =
|
|
6193
|
+
var DTOWorkspaceInvitationsResponse = z215.object({
|
|
6182
6194
|
invitations: WorkspaceInvitation.array()
|
|
6183
6195
|
});
|
|
6184
|
-
var DTOWorkspaceInviteUpdate =
|
|
6196
|
+
var DTOWorkspaceInviteUpdate = z215.object({
|
|
6185
6197
|
role: WorkspaceRoleSchema
|
|
6186
6198
|
});
|
|
6187
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
6199
|
+
var DTOWorkspaceInvitationUpdateResponse = z215.object({
|
|
6188
6200
|
invitation: WorkspaceInvitation
|
|
6189
6201
|
});
|
|
6190
6202
|
|
|
6191
6203
|
// src/api/dto/workspaces/membership.ts
|
|
6192
|
-
import { z as
|
|
6204
|
+
import { z as z218 } from "zod";
|
|
6193
6205
|
|
|
6194
6206
|
// src/api/dto/workspaces/workspace.ts
|
|
6195
|
-
import { z as
|
|
6207
|
+
import { z as z217 } from "zod";
|
|
6196
6208
|
|
|
6197
6209
|
// src/api/dto/workspaces/npm-registry.ts
|
|
6198
|
-
import { z as
|
|
6210
|
+
import { z as z216 } from "zod";
|
|
6199
6211
|
var DTONpmRegistryConfigConstants = {
|
|
6200
6212
|
passwordPlaceholder: "redacted"
|
|
6201
6213
|
};
|
|
6202
|
-
var DTONpmRegistryConfig =
|
|
6214
|
+
var DTONpmRegistryConfig = z216.object({
|
|
6203
6215
|
// Registry basic configuration
|
|
6204
6216
|
registryType: NpmRegistryType,
|
|
6205
|
-
registryUrl:
|
|
6206
|
-
customRegistryUrl:
|
|
6217
|
+
registryUrl: z216.string(),
|
|
6218
|
+
customRegistryUrl: z216.string().optional(),
|
|
6207
6219
|
// URL of Supernova NPM packages proxy
|
|
6208
|
-
proxyUrl:
|
|
6220
|
+
proxyUrl: z216.string(),
|
|
6209
6221
|
// Auth configuration
|
|
6210
6222
|
authType: NpmRegistryAuthType,
|
|
6211
|
-
accessToken:
|
|
6212
|
-
username:
|
|
6213
|
-
password:
|
|
6223
|
+
accessToken: z216.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6224
|
+
username: z216.string().optional(),
|
|
6225
|
+
password: z216.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6214
6226
|
// NPM package scopes for whih the proxy should be enabled
|
|
6215
|
-
enabledScopes:
|
|
6227
|
+
enabledScopes: z216.array(z216.string()),
|
|
6216
6228
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6217
6229
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6218
|
-
bypassProxy:
|
|
6230
|
+
bypassProxy: z216.boolean()
|
|
6219
6231
|
});
|
|
6220
6232
|
|
|
6221
6233
|
// src/api/dto/workspaces/workspace.ts
|
|
6222
6234
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6223
|
-
var DTOWorkspace =
|
|
6224
|
-
id:
|
|
6235
|
+
var DTOWorkspace = z217.object({
|
|
6236
|
+
id: z217.string(),
|
|
6225
6237
|
profile: DTOWorkspaceProfile,
|
|
6226
6238
|
subscription: Subscription,
|
|
6227
6239
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6228
6240
|
});
|
|
6229
|
-
var DTOWorkspaceCreateInput =
|
|
6230
|
-
name:
|
|
6241
|
+
var DTOWorkspaceCreateInput = z217.object({
|
|
6242
|
+
name: z217.string()
|
|
6231
6243
|
});
|
|
6232
|
-
var DTOWorkspaceResponse =
|
|
6244
|
+
var DTOWorkspaceResponse = z217.object({
|
|
6233
6245
|
workspace: DTOWorkspace
|
|
6234
6246
|
});
|
|
6235
6247
|
|
|
6236
6248
|
// src/api/dto/workspaces/membership.ts
|
|
6237
|
-
var DTOWorkspaceRole =
|
|
6238
|
-
var DTOUserWorkspaceMembership =
|
|
6249
|
+
var DTOWorkspaceRole = z218.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6250
|
+
var DTOUserWorkspaceMembership = z218.object({
|
|
6239
6251
|
// Workspace the user is a member of
|
|
6240
6252
|
workspace: DTOWorkspace,
|
|
6241
6253
|
// Assigned role the user has in the workspace
|
|
@@ -6245,26 +6257,26 @@ var DTOUserWorkspaceMembership = z217.object({
|
|
|
6245
6257
|
// when a workspace's subscription is downgraded to free tier
|
|
6246
6258
|
effectiveRole: DTOWorkspaceRole
|
|
6247
6259
|
});
|
|
6248
|
-
var DTOWorkspaceMember =
|
|
6260
|
+
var DTOWorkspaceMember = z218.object({
|
|
6249
6261
|
user: User,
|
|
6250
6262
|
role: WorkspaceRoleSchema,
|
|
6251
6263
|
effectiveRole: WorkspaceRoleSchema
|
|
6252
6264
|
});
|
|
6253
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6254
|
-
membership:
|
|
6265
|
+
var DTOUserWorkspaceMembershipsResponse = z218.object({
|
|
6266
|
+
membership: z218.array(DTOUserWorkspaceMembership)
|
|
6255
6267
|
});
|
|
6256
|
-
var DTOWorkspaceMembersListResponse =
|
|
6257
|
-
members:
|
|
6268
|
+
var DTOWorkspaceMembersListResponse = z218.object({
|
|
6269
|
+
members: z218.array(DTOWorkspaceMember)
|
|
6258
6270
|
});
|
|
6259
6271
|
|
|
6260
6272
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6261
|
-
var DTOAppBootstrapDataQuery =
|
|
6262
|
-
preferredWorkspaceId:
|
|
6263
|
-
preferredDesignSystemId:
|
|
6264
|
-
preferredVersionId:
|
|
6265
|
-
preferredBrandId:
|
|
6273
|
+
var DTOAppBootstrapDataQuery = z219.object({
|
|
6274
|
+
preferredWorkspaceId: z219.string().optional(),
|
|
6275
|
+
preferredDesignSystemId: z219.string().optional(),
|
|
6276
|
+
preferredVersionId: z219.string().optional(),
|
|
6277
|
+
preferredBrandId: z219.string().optional()
|
|
6266
6278
|
});
|
|
6267
|
-
var DTOAppBootstrapDataResponse =
|
|
6279
|
+
var DTOAppBootstrapDataResponse = z219.object({
|
|
6268
6280
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
6269
6281
|
designSystem: DTODesignSystem.optional(),
|
|
6270
6282
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -6272,88 +6284,88 @@ var DTOAppBootstrapDataResponse = z218.object({
|
|
|
6272
6284
|
});
|
|
6273
6285
|
|
|
6274
6286
|
// src/api/dto/collections/token-collection.ts
|
|
6275
|
-
import { z as
|
|
6276
|
-
var DTOTokenCollection =
|
|
6277
|
-
id:
|
|
6278
|
-
persistentId:
|
|
6279
|
-
designSystemVersionId:
|
|
6287
|
+
import { z as z220 } from "zod";
|
|
6288
|
+
var DTOTokenCollection = z220.object({
|
|
6289
|
+
id: z220.string(),
|
|
6290
|
+
persistentId: z220.string(),
|
|
6291
|
+
designSystemVersionId: z220.string(),
|
|
6280
6292
|
meta: ObjectMeta,
|
|
6281
6293
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
6282
|
-
elementPropertyOptionId:
|
|
6283
|
-
createdAt:
|
|
6284
|
-
updatedAt:
|
|
6294
|
+
elementPropertyOptionId: z220.string(),
|
|
6295
|
+
createdAt: z220.coerce.date(),
|
|
6296
|
+
updatedAt: z220.coerce.date(),
|
|
6285
6297
|
origin: CollectionOrigin.optional()
|
|
6286
6298
|
});
|
|
6287
|
-
var DTOTokenCollectionsListReponse =
|
|
6299
|
+
var DTOTokenCollectionsListReponse = z220.object({
|
|
6288
6300
|
collections: DTOTokenCollection.array()
|
|
6289
6301
|
});
|
|
6290
6302
|
|
|
6291
6303
|
// src/api/dto/design-tokens/design-token.ts
|
|
6292
|
-
import { z as
|
|
6304
|
+
import { z as z221 } from "zod";
|
|
6293
6305
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6294
|
-
|
|
6295
|
-
id:
|
|
6296
|
-
persistentId:
|
|
6297
|
-
designSystemVersionId:
|
|
6306
|
+
z221.object({
|
|
6307
|
+
id: z221.string(),
|
|
6308
|
+
persistentId: z221.string(),
|
|
6309
|
+
designSystemVersionId: z221.string(),
|
|
6298
6310
|
meta: ObjectMeta,
|
|
6299
6311
|
originStyle: DesignTokenOrigin.optional(),
|
|
6300
|
-
brandId:
|
|
6301
|
-
collectionId:
|
|
6302
|
-
updatedAt:
|
|
6312
|
+
brandId: z221.string(),
|
|
6313
|
+
collectionId: z221.string().optional(),
|
|
6314
|
+
updatedAt: z221.coerce.date()
|
|
6303
6315
|
})
|
|
6304
6316
|
);
|
|
6305
|
-
var DTODesignTokenListResponse =
|
|
6317
|
+
var DTODesignTokenListResponse = z221.object({
|
|
6306
6318
|
tokens: DTODesignToken.array()
|
|
6307
6319
|
});
|
|
6308
|
-
var DTODesignTokenResponse =
|
|
6320
|
+
var DTODesignTokenResponse = z221.object({
|
|
6309
6321
|
token: DTODesignToken
|
|
6310
6322
|
});
|
|
6311
|
-
var DTODesignTokenGroup =
|
|
6312
|
-
id:
|
|
6323
|
+
var DTODesignTokenGroup = z221.object({
|
|
6324
|
+
id: z221.string(),
|
|
6313
6325
|
tokenType: DesignTokenType,
|
|
6314
|
-
persistentId:
|
|
6315
|
-
isRoot:
|
|
6316
|
-
brandId:
|
|
6326
|
+
persistentId: z221.string(),
|
|
6327
|
+
isRoot: z221.boolean(),
|
|
6328
|
+
brandId: z221.string(),
|
|
6317
6329
|
meta: ObjectMeta,
|
|
6318
|
-
childrenIds:
|
|
6330
|
+
childrenIds: z221.string().array()
|
|
6319
6331
|
});
|
|
6320
|
-
var DTODesignTokenGroupListResponse =
|
|
6332
|
+
var DTODesignTokenGroupListResponse = z221.object({
|
|
6321
6333
|
groups: DTODesignTokenGroup.array()
|
|
6322
6334
|
});
|
|
6323
|
-
var DTODesignTokenGroupResponse =
|
|
6335
|
+
var DTODesignTokenGroupResponse = z221.object({
|
|
6324
6336
|
group: DTODesignTokenGroup
|
|
6325
6337
|
});
|
|
6326
6338
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6327
|
-
|
|
6328
|
-
persistentId:
|
|
6339
|
+
z221.object({
|
|
6340
|
+
persistentId: z221.string(),
|
|
6329
6341
|
meta: ObjectMeta,
|
|
6330
|
-
brandId:
|
|
6331
|
-
groupPersistentId:
|
|
6342
|
+
brandId: z221.string(),
|
|
6343
|
+
groupPersistentId: z221.string().optional()
|
|
6332
6344
|
})
|
|
6333
6345
|
);
|
|
6334
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6335
|
-
persistentId:
|
|
6346
|
+
var DTODesignTokenGroupCreatePayload = z221.object({
|
|
6347
|
+
persistentId: z221.string(),
|
|
6336
6348
|
meta: ObjectMeta,
|
|
6337
|
-
brandId:
|
|
6338
|
-
parentId:
|
|
6349
|
+
brandId: z221.string(),
|
|
6350
|
+
parentId: z221.string().optional(),
|
|
6339
6351
|
tokenType: DesignTokenType,
|
|
6340
|
-
childrenIds:
|
|
6352
|
+
childrenIds: z221.string().array()
|
|
6341
6353
|
});
|
|
6342
6354
|
|
|
6343
6355
|
// src/api/dto/documentation/anchor.ts
|
|
6344
|
-
import { z as
|
|
6356
|
+
import { z as z222 } from "zod";
|
|
6345
6357
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6346
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6347
|
-
anchors:
|
|
6358
|
+
var DTOGetDocumentationPageAnchorsResponse = z222.object({
|
|
6359
|
+
anchors: z222.array(DTODocumentationPageAnchor)
|
|
6348
6360
|
});
|
|
6349
6361
|
|
|
6350
6362
|
// src/api/dto/documentation/approvals.ts
|
|
6351
|
-
import { z as
|
|
6363
|
+
import { z as z223 } from "zod";
|
|
6352
6364
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
6353
|
-
var DTODocumentationGroupApprovalState =
|
|
6354
|
-
persistentId:
|
|
6355
|
-
groupId:
|
|
6356
|
-
designSystemVersionId:
|
|
6365
|
+
var DTODocumentationGroupApprovalState = z223.object({
|
|
6366
|
+
persistentId: z223.string(),
|
|
6367
|
+
groupId: z223.string(),
|
|
6368
|
+
designSystemVersionId: z223.string(),
|
|
6357
6369
|
approvalState: DocumentationPageApprovalState
|
|
6358
6370
|
});
|
|
6359
6371
|
|
|
@@ -6361,68 +6373,68 @@ var DTODocumentationGroupApprovalState = z222.object({
|
|
|
6361
6373
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6362
6374
|
|
|
6363
6375
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6364
|
-
import { z as
|
|
6376
|
+
import { z as z228 } from "zod";
|
|
6365
6377
|
|
|
6366
6378
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6367
|
-
import { z as
|
|
6379
|
+
import { z as z227 } from "zod";
|
|
6368
6380
|
|
|
6369
6381
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6370
|
-
import { z as
|
|
6382
|
+
import { z as z225 } from "zod";
|
|
6371
6383
|
|
|
6372
6384
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6373
|
-
import { z as
|
|
6385
|
+
import { z as z224 } from "zod";
|
|
6374
6386
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6375
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6376
|
-
showSidebar:
|
|
6377
|
-
isPrivate:
|
|
6378
|
-
isHidden:
|
|
6387
|
+
var DTODocumentationItemConfigurationV2 = z224.object({
|
|
6388
|
+
showSidebar: z224.boolean(),
|
|
6389
|
+
isPrivate: z224.boolean(),
|
|
6390
|
+
isHidden: z224.boolean(),
|
|
6379
6391
|
header: DTODocumentationItemHeaderV2
|
|
6380
6392
|
});
|
|
6381
6393
|
|
|
6382
6394
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6383
|
-
var DTODocumentationDraftChangeType =
|
|
6384
|
-
var DTODocumentationDraftStateCreated =
|
|
6385
|
-
changeType:
|
|
6386
|
-
});
|
|
6387
|
-
var DTODocumentationDraftStateUpdated =
|
|
6388
|
-
changeType:
|
|
6389
|
-
changes:
|
|
6390
|
-
previousTitle:
|
|
6395
|
+
var DTODocumentationDraftChangeType = z225.enum(["Created", "Updated", "Deleted"]);
|
|
6396
|
+
var DTODocumentationDraftStateCreated = z225.object({
|
|
6397
|
+
changeType: z225.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6398
|
+
});
|
|
6399
|
+
var DTODocumentationDraftStateUpdated = z225.object({
|
|
6400
|
+
changeType: z225.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6401
|
+
changes: z225.object({
|
|
6402
|
+
previousTitle: z225.string().optional(),
|
|
6391
6403
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6392
|
-
previousContentHash:
|
|
6404
|
+
previousContentHash: z225.string().optional()
|
|
6393
6405
|
})
|
|
6394
6406
|
});
|
|
6395
|
-
var DTODocumentationDraftStateDeleted =
|
|
6396
|
-
changeType:
|
|
6397
|
-
deletedAt:
|
|
6398
|
-
deletedByUserId:
|
|
6407
|
+
var DTODocumentationDraftStateDeleted = z225.object({
|
|
6408
|
+
changeType: z225.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6409
|
+
deletedAt: z225.coerce.date(),
|
|
6410
|
+
deletedByUserId: z225.string()
|
|
6399
6411
|
});
|
|
6400
|
-
var DTODocumentationDraftState =
|
|
6412
|
+
var DTODocumentationDraftState = z225.discriminatedUnion("changeType", [
|
|
6401
6413
|
DTODocumentationDraftStateCreated,
|
|
6402
6414
|
DTODocumentationDraftStateUpdated,
|
|
6403
6415
|
DTODocumentationDraftStateDeleted
|
|
6404
6416
|
]);
|
|
6405
6417
|
|
|
6406
6418
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6407
|
-
import { z as
|
|
6408
|
-
var DTODocumentationPublishMetadata =
|
|
6409
|
-
lastPublishedByUserId:
|
|
6410
|
-
lastPublishedAt:
|
|
6419
|
+
import { z as z226 } from "zod";
|
|
6420
|
+
var DTODocumentationPublishMetadata = z226.object({
|
|
6421
|
+
lastPublishedByUserId: z226.string(),
|
|
6422
|
+
lastPublishedAt: z226.coerce.date()
|
|
6411
6423
|
});
|
|
6412
6424
|
|
|
6413
6425
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6414
|
-
var DTODocumentationPageV2 =
|
|
6415
|
-
id:
|
|
6416
|
-
persistentId:
|
|
6417
|
-
designSystemVersionId:
|
|
6418
|
-
title:
|
|
6426
|
+
var DTODocumentationPageV2 = z227.object({
|
|
6427
|
+
id: z227.string(),
|
|
6428
|
+
persistentId: z227.string(),
|
|
6429
|
+
designSystemVersionId: z227.string(),
|
|
6430
|
+
title: z227.string(),
|
|
6419
6431
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6420
|
-
shortPersistentId:
|
|
6421
|
-
slug:
|
|
6422
|
-
userSlug:
|
|
6423
|
-
createdAt:
|
|
6424
|
-
updatedAt:
|
|
6425
|
-
path:
|
|
6432
|
+
shortPersistentId: z227.string(),
|
|
6433
|
+
slug: z227.string().optional(),
|
|
6434
|
+
userSlug: z227.string().optional(),
|
|
6435
|
+
createdAt: z227.coerce.date(),
|
|
6436
|
+
updatedAt: z227.coerce.date(),
|
|
6437
|
+
path: z227.string(),
|
|
6426
6438
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6427
6439
|
draftState: DTODocumentationDraftState.optional(),
|
|
6428
6440
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6430,226 +6442,226 @@ var DTODocumentationPageV2 = z226.object({
|
|
|
6430
6442
|
/** Defines the approval state of the documentation page */
|
|
6431
6443
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6432
6444
|
/** Id of the page document room */
|
|
6433
|
-
liveblocksRoomId:
|
|
6445
|
+
liveblocksRoomId: z227.string().optional(),
|
|
6434
6446
|
// Backward compatibility
|
|
6435
|
-
type:
|
|
6447
|
+
type: z227.literal("Page")
|
|
6436
6448
|
});
|
|
6437
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6449
|
+
var DTOCreateDocumentationPageInputV2 = z227.object({
|
|
6438
6450
|
// Identifier
|
|
6439
|
-
persistentId:
|
|
6451
|
+
persistentId: z227.string(),
|
|
6440
6452
|
// Page properties
|
|
6441
|
-
title:
|
|
6453
|
+
title: z227.string(),
|
|
6442
6454
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6443
6455
|
// Page placement properties
|
|
6444
|
-
parentPersistentId:
|
|
6445
|
-
afterPersistentId:
|
|
6456
|
+
parentPersistentId: z227.string(),
|
|
6457
|
+
afterPersistentId: z227.string().nullish()
|
|
6446
6458
|
});
|
|
6447
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6459
|
+
var DTOUpdateDocumentationPageInputV2 = z227.object({
|
|
6448
6460
|
// Identifier of the group to update
|
|
6449
|
-
id:
|
|
6461
|
+
id: z227.string(),
|
|
6450
6462
|
// Page properties
|
|
6451
|
-
title:
|
|
6463
|
+
title: z227.string().optional(),
|
|
6452
6464
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6453
6465
|
});
|
|
6454
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6466
|
+
var DTOMoveDocumentationPageInputV2 = z227.object({
|
|
6455
6467
|
// Identifier of the group to update
|
|
6456
|
-
id:
|
|
6468
|
+
id: z227.string(),
|
|
6457
6469
|
// Page placement properties
|
|
6458
|
-
parentPersistentId:
|
|
6459
|
-
afterPersistentId:
|
|
6470
|
+
parentPersistentId: z227.string(),
|
|
6471
|
+
afterPersistentId: z227.string().nullish()
|
|
6460
6472
|
});
|
|
6461
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6473
|
+
var DTODuplicateDocumentationPageInputV2 = z227.object({
|
|
6462
6474
|
// Identifier of the page to duplicate from
|
|
6463
|
-
id:
|
|
6475
|
+
id: z227.string(),
|
|
6464
6476
|
// New page persistent id
|
|
6465
|
-
persistentId:
|
|
6477
|
+
persistentId: z227.string(),
|
|
6466
6478
|
// Page placement properties
|
|
6467
|
-
parentPersistentId:
|
|
6468
|
-
afterPersistentId:
|
|
6479
|
+
parentPersistentId: z227.string(),
|
|
6480
|
+
afterPersistentId: z227.string().nullish()
|
|
6469
6481
|
});
|
|
6470
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6482
|
+
var DTODeleteDocumentationPageInputV2 = z227.object({
|
|
6471
6483
|
// Identifier
|
|
6472
|
-
id:
|
|
6484
|
+
id: z227.string()
|
|
6473
6485
|
});
|
|
6474
|
-
var DTORestoreDocumentationPageInput =
|
|
6475
|
-
persistentId:
|
|
6476
|
-
snapshotId:
|
|
6486
|
+
var DTORestoreDocumentationPageInput = z227.object({
|
|
6487
|
+
persistentId: z227.string(),
|
|
6488
|
+
snapshotId: z227.string().optional()
|
|
6477
6489
|
});
|
|
6478
|
-
var DTORestoreDocumentationGroupInput =
|
|
6479
|
-
persistentId:
|
|
6480
|
-
snapshotId:
|
|
6490
|
+
var DTORestoreDocumentationGroupInput = z227.object({
|
|
6491
|
+
persistentId: z227.string(),
|
|
6492
|
+
snapshotId: z227.string().optional()
|
|
6481
6493
|
});
|
|
6482
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6483
|
-
persistentId:
|
|
6494
|
+
var DTODocumentationPageApprovalStateChangeInput = z227.object({
|
|
6495
|
+
persistentId: z227.string(),
|
|
6484
6496
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6485
6497
|
});
|
|
6486
6498
|
|
|
6487
6499
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6488
|
-
var DTODocumentationPageSnapshot =
|
|
6489
|
-
id:
|
|
6490
|
-
designSystemVersionId:
|
|
6491
|
-
createdAt:
|
|
6492
|
-
updatedAt:
|
|
6500
|
+
var DTODocumentationPageSnapshot = z228.object({
|
|
6501
|
+
id: z228.string(),
|
|
6502
|
+
designSystemVersionId: z228.string(),
|
|
6503
|
+
createdAt: z228.string(),
|
|
6504
|
+
updatedAt: z228.string(),
|
|
6493
6505
|
documentationPage: DTODocumentationPageV2,
|
|
6494
|
-
pageContentHash:
|
|
6506
|
+
pageContentHash: z228.string(),
|
|
6495
6507
|
reason: DesignElementSnapshotReason
|
|
6496
6508
|
});
|
|
6497
6509
|
|
|
6498
6510
|
// src/api/dto/documentation/link-preview.ts
|
|
6499
|
-
import { z as
|
|
6500
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6511
|
+
import { z as z229 } from "zod";
|
|
6512
|
+
var DTODocumentationLinkPreviewResponse = z229.object({
|
|
6501
6513
|
linkPreview: DocumentationLinkPreview
|
|
6502
6514
|
});
|
|
6503
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6504
|
-
url:
|
|
6505
|
-
documentationItemPersistentId:
|
|
6515
|
+
var DTODocumentationLinkPreviewRequest = z229.object({
|
|
6516
|
+
url: z229.string().optional(),
|
|
6517
|
+
documentationItemPersistentId: z229.string().optional()
|
|
6506
6518
|
});
|
|
6507
6519
|
|
|
6508
6520
|
// src/api/dto/documentation/publish.ts
|
|
6509
|
-
import { z as
|
|
6521
|
+
import { z as z233 } from "zod";
|
|
6510
6522
|
|
|
6511
6523
|
// src/api/dto/export/exporter.ts
|
|
6512
|
-
import { z as
|
|
6513
|
-
var DTOExporterType =
|
|
6514
|
-
var DTOExporterSource =
|
|
6515
|
-
var DTOExporterMembershipRole =
|
|
6516
|
-
var DTOExporterListQuery =
|
|
6517
|
-
limit:
|
|
6518
|
-
});
|
|
6519
|
-
var DTOExporter =
|
|
6520
|
-
id:
|
|
6521
|
-
name:
|
|
6522
|
-
isPrivate:
|
|
6524
|
+
import { z as z230 } from "zod";
|
|
6525
|
+
var DTOExporterType = z230.enum(["documentation", "code"]);
|
|
6526
|
+
var DTOExporterSource = z230.enum(["git", "upload"]);
|
|
6527
|
+
var DTOExporterMembershipRole = z230.enum(["Owner", "OwnerArchived", "User"]);
|
|
6528
|
+
var DTOExporterListQuery = z230.object({
|
|
6529
|
+
limit: z230.coerce.number().optional()
|
|
6530
|
+
});
|
|
6531
|
+
var DTOExporter = z230.object({
|
|
6532
|
+
id: z230.string(),
|
|
6533
|
+
name: z230.string(),
|
|
6534
|
+
isPrivate: z230.boolean(),
|
|
6523
6535
|
exporterType: DTOExporterType,
|
|
6524
|
-
isDefaultDocumentationExporter:
|
|
6525
|
-
iconURL:
|
|
6536
|
+
isDefaultDocumentationExporter: z230.boolean(),
|
|
6537
|
+
iconURL: z230.string().optional(),
|
|
6526
6538
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6527
6539
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
6528
6540
|
customBlocks: PulsarCustomBlock.array(),
|
|
6529
|
-
blockVariants:
|
|
6530
|
-
usesBrands:
|
|
6531
|
-
usesThemes:
|
|
6541
|
+
blockVariants: z230.record(z230.string(), PulsarContributionVariant.array()),
|
|
6542
|
+
usesBrands: z230.boolean(),
|
|
6543
|
+
usesThemes: z230.boolean(),
|
|
6532
6544
|
source: DTOExporterSource,
|
|
6533
|
-
gitUrl: nullishToOptional(
|
|
6534
|
-
gitBranch: nullishToOptional(
|
|
6535
|
-
gitDirectory: nullishToOptional(
|
|
6545
|
+
gitUrl: nullishToOptional(z230.string()),
|
|
6546
|
+
gitBranch: nullishToOptional(z230.string()),
|
|
6547
|
+
gitDirectory: nullishToOptional(z230.string())
|
|
6536
6548
|
});
|
|
6537
|
-
var DTOExporterMembership =
|
|
6538
|
-
workspaceId:
|
|
6539
|
-
exporterId:
|
|
6549
|
+
var DTOExporterMembership = z230.object({
|
|
6550
|
+
workspaceId: z230.string(),
|
|
6551
|
+
exporterId: z230.string(),
|
|
6540
6552
|
role: DTOExporterMembershipRole
|
|
6541
6553
|
});
|
|
6542
|
-
var DTOExporterResponse =
|
|
6554
|
+
var DTOExporterResponse = z230.object({
|
|
6543
6555
|
exporter: DTOExporter,
|
|
6544
6556
|
membership: DTOExporterMembership
|
|
6545
6557
|
});
|
|
6546
|
-
var DTOExporterListResponse =
|
|
6558
|
+
var DTOExporterListResponse = z230.object({
|
|
6547
6559
|
exporters: DTOExporter.array(),
|
|
6548
6560
|
membership: DTOExporterMembership.array()
|
|
6549
6561
|
});
|
|
6550
|
-
var DTOExporterGitProviderEnum =
|
|
6551
|
-
var DTOExporterCreateInput =
|
|
6552
|
-
url:
|
|
6562
|
+
var DTOExporterGitProviderEnum = z230.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6563
|
+
var DTOExporterCreateInput = z230.object({
|
|
6564
|
+
url: z230.string(),
|
|
6553
6565
|
provider: DTOExporterGitProviderEnum
|
|
6554
6566
|
});
|
|
6555
|
-
var DTOExporterUpdateInput =
|
|
6556
|
-
url:
|
|
6567
|
+
var DTOExporterUpdateInput = z230.object({
|
|
6568
|
+
url: z230.string().optional()
|
|
6557
6569
|
});
|
|
6558
6570
|
|
|
6559
6571
|
// src/api/dto/export/filter.ts
|
|
6560
6572
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6561
6573
|
|
|
6562
6574
|
// src/api/dto/export/job.ts
|
|
6563
|
-
import { z as
|
|
6564
|
-
var DTOExportJobCreatedBy =
|
|
6565
|
-
userId:
|
|
6566
|
-
userName:
|
|
6575
|
+
import { z as z231 } from "zod";
|
|
6576
|
+
var DTOExportJobCreatedBy = z231.object({
|
|
6577
|
+
userId: z231.string(),
|
|
6578
|
+
userName: z231.string()
|
|
6567
6579
|
});
|
|
6568
|
-
var DTOExportJobDesignSystemPreview =
|
|
6569
|
-
id:
|
|
6580
|
+
var DTOExportJobDesignSystemPreview = z231.object({
|
|
6581
|
+
id: z231.string(),
|
|
6570
6582
|
meta: ObjectMeta
|
|
6571
6583
|
});
|
|
6572
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6573
|
-
id:
|
|
6584
|
+
var DTOExportJobDesignSystemVersionPreview = z231.object({
|
|
6585
|
+
id: z231.string(),
|
|
6574
6586
|
meta: ObjectMeta,
|
|
6575
|
-
version:
|
|
6576
|
-
isReadonly:
|
|
6587
|
+
version: z231.string(),
|
|
6588
|
+
isReadonly: z231.boolean()
|
|
6577
6589
|
});
|
|
6578
|
-
var DTOExportJobDestinations =
|
|
6590
|
+
var DTOExportJobDestinations = z231.object({
|
|
6579
6591
|
s3: ExporterDestinationS3.optional(),
|
|
6580
6592
|
azure: ExporterDestinationAzure.optional(),
|
|
6581
6593
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6582
6594
|
github: ExporterDestinationGithub.optional(),
|
|
6583
6595
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6584
6596
|
documentation: ExporterDestinationDocs.optional(),
|
|
6585
|
-
webhookUrl:
|
|
6597
|
+
webhookUrl: z231.string().optional()
|
|
6586
6598
|
});
|
|
6587
6599
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6588
6600
|
sndocs: true
|
|
6589
6601
|
}).extend({
|
|
6590
6602
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6591
6603
|
});
|
|
6592
|
-
var DTOExportJob =
|
|
6593
|
-
id:
|
|
6594
|
-
createdAt:
|
|
6595
|
-
finishedAt:
|
|
6596
|
-
index:
|
|
6604
|
+
var DTOExportJob = z231.object({
|
|
6605
|
+
id: z231.string(),
|
|
6606
|
+
createdAt: z231.coerce.date(),
|
|
6607
|
+
finishedAt: z231.coerce.date().optional(),
|
|
6608
|
+
index: z231.number().optional(),
|
|
6597
6609
|
status: ExportJobStatus,
|
|
6598
|
-
estimatedExecutionTime:
|
|
6610
|
+
estimatedExecutionTime: z231.number().optional(),
|
|
6599
6611
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6600
6612
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6601
6613
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6602
6614
|
destinations: DTOExportJobDestinations,
|
|
6603
|
-
exporterId:
|
|
6604
|
-
scheduleId:
|
|
6615
|
+
exporterId: z231.string(),
|
|
6616
|
+
scheduleId: z231.string().optional(),
|
|
6605
6617
|
result: DTOExportJobResult.optional(),
|
|
6606
|
-
brandPersistentId:
|
|
6607
|
-
themePersistentId:
|
|
6608
|
-
themePersistentIds:
|
|
6618
|
+
brandPersistentId: z231.string().optional(),
|
|
6619
|
+
themePersistentId: z231.string().optional(),
|
|
6620
|
+
themePersistentIds: z231.string().array().optional(),
|
|
6609
6621
|
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional()
|
|
6610
6622
|
});
|
|
6611
|
-
var DTOExportJobResponse =
|
|
6623
|
+
var DTOExportJobResponse = z231.object({
|
|
6612
6624
|
job: DTOExportJob
|
|
6613
6625
|
});
|
|
6614
|
-
var DTOExportJobResponseLegacy =
|
|
6615
|
-
job:
|
|
6616
|
-
id:
|
|
6626
|
+
var DTOExportJobResponseLegacy = z231.object({
|
|
6627
|
+
job: z231.object({
|
|
6628
|
+
id: z231.string(),
|
|
6617
6629
|
status: ExportJobStatus
|
|
6618
6630
|
})
|
|
6619
6631
|
});
|
|
6620
6632
|
|
|
6621
6633
|
// src/api/dto/export/pipeline.ts
|
|
6622
|
-
import { z as
|
|
6623
|
-
var DTOPipelineListQuery =
|
|
6624
|
-
designSystemId:
|
|
6625
|
-
exporterId:
|
|
6626
|
-
latestJobsLimit:
|
|
6627
|
-
});
|
|
6628
|
-
var DTOPipeline =
|
|
6629
|
-
id:
|
|
6630
|
-
name:
|
|
6634
|
+
import { z as z232 } from "zod";
|
|
6635
|
+
var DTOPipelineListQuery = z232.object({
|
|
6636
|
+
designSystemId: z232.string().optional(),
|
|
6637
|
+
exporterId: z232.string().optional(),
|
|
6638
|
+
latestJobsLimit: z232.coerce.number().optional()
|
|
6639
|
+
});
|
|
6640
|
+
var DTOPipeline = z232.object({
|
|
6641
|
+
id: z232.string(),
|
|
6642
|
+
name: z232.string(),
|
|
6631
6643
|
eventType: PipelineEventType,
|
|
6632
|
-
isEnabled:
|
|
6633
|
-
workspaceId:
|
|
6634
|
-
designSystemId:
|
|
6635
|
-
exporterId:
|
|
6636
|
-
brandPersistentId:
|
|
6637
|
-
themePersistentId:
|
|
6638
|
-
themePersistentIds:
|
|
6644
|
+
isEnabled: z232.boolean(),
|
|
6645
|
+
workspaceId: z232.string(),
|
|
6646
|
+
designSystemId: z232.string(),
|
|
6647
|
+
exporterId: z232.string(),
|
|
6648
|
+
brandPersistentId: z232.string().optional(),
|
|
6649
|
+
themePersistentId: z232.string().optional(),
|
|
6650
|
+
themePersistentIds: z232.string().array().optional(),
|
|
6639
6651
|
exporterConfigurationProperties: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
6640
6652
|
...ExportDestinationsMap.shape,
|
|
6641
6653
|
latestJobs: DTOExportJob.array()
|
|
6642
6654
|
});
|
|
6643
|
-
var DTOPipelineListResponse =
|
|
6655
|
+
var DTOPipelineListResponse = z232.object({
|
|
6644
6656
|
pipelines: DTOPipeline.array()
|
|
6645
6657
|
});
|
|
6646
|
-
var DTOPipelineResponse =
|
|
6658
|
+
var DTOPipelineResponse = z232.object({
|
|
6647
6659
|
pipeline: DTOPipeline
|
|
6648
6660
|
});
|
|
6649
6661
|
|
|
6650
6662
|
// src/api/dto/documentation/publish.ts
|
|
6651
6663
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6652
|
-
var DTOPublishDocumentationRequest =
|
|
6664
|
+
var DTOPublishDocumentationRequest = z233.object({
|
|
6653
6665
|
environment: PublishedDocEnvironment,
|
|
6654
6666
|
/**
|
|
6655
6667
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6657,66 +6669,66 @@ var DTOPublishDocumentationRequest = z232.object({
|
|
|
6657
6669
|
*/
|
|
6658
6670
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6659
6671
|
});
|
|
6660
|
-
var DTOPublishDocumentationResponse =
|
|
6672
|
+
var DTOPublishDocumentationResponse = z233.object({
|
|
6661
6673
|
job: DTOExportJob
|
|
6662
6674
|
});
|
|
6663
6675
|
|
|
6664
6676
|
// src/api/dto/documentation/room.ts
|
|
6665
|
-
import { z as
|
|
6666
|
-
var DTODocumentationPageRoom =
|
|
6667
|
-
id:
|
|
6677
|
+
import { z as z234 } from "zod";
|
|
6678
|
+
var DTODocumentationPageRoom = z234.object({
|
|
6679
|
+
id: z234.string()
|
|
6668
6680
|
});
|
|
6669
|
-
var DTODocumentationPageRoomResponse =
|
|
6681
|
+
var DTODocumentationPageRoomResponse = z234.object({
|
|
6670
6682
|
room: DTODocumentationPageRoom
|
|
6671
6683
|
});
|
|
6672
6684
|
|
|
6673
6685
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
6674
|
-
import
|
|
6675
|
-
var DTOFigmaComponentGroup =
|
|
6676
|
-
id:
|
|
6677
|
-
designSystemVersionId:
|
|
6678
|
-
persistentId:
|
|
6679
|
-
isRoot:
|
|
6680
|
-
brandId:
|
|
6686
|
+
import z235 from "zod";
|
|
6687
|
+
var DTOFigmaComponentGroup = z235.object({
|
|
6688
|
+
id: z235.string(),
|
|
6689
|
+
designSystemVersionId: z235.string(),
|
|
6690
|
+
persistentId: z235.string(),
|
|
6691
|
+
isRoot: z235.boolean(),
|
|
6692
|
+
brandId: z235.string(),
|
|
6681
6693
|
meta: DTOObjectMeta,
|
|
6682
|
-
childrenIds:
|
|
6694
|
+
childrenIds: z235.string().array()
|
|
6683
6695
|
});
|
|
6684
|
-
var DTOFigmaComponentGroupListResponse =
|
|
6696
|
+
var DTOFigmaComponentGroupListResponse = z235.object({
|
|
6685
6697
|
groups: DTOFigmaComponentGroup.array()
|
|
6686
6698
|
});
|
|
6687
6699
|
|
|
6688
6700
|
// src/api/dto/elements/components/figma-component.ts
|
|
6689
|
-
import { z as
|
|
6701
|
+
import { z as z236 } from "zod";
|
|
6690
6702
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6691
|
-
var DTOFigmaComponentPropertyMap =
|
|
6692
|
-
var DTOFigmaComponent =
|
|
6693
|
-
id:
|
|
6694
|
-
persistentId:
|
|
6695
|
-
designSystemVersionId:
|
|
6696
|
-
brandId:
|
|
6697
|
-
thumbnailUrl:
|
|
6698
|
-
svgUrl:
|
|
6699
|
-
exportProperties:
|
|
6700
|
-
isAsset:
|
|
6703
|
+
var DTOFigmaComponentPropertyMap = z236.record(DTOFigmaComponentProperty);
|
|
6704
|
+
var DTOFigmaComponent = z236.object({
|
|
6705
|
+
id: z236.string(),
|
|
6706
|
+
persistentId: z236.string(),
|
|
6707
|
+
designSystemVersionId: z236.string(),
|
|
6708
|
+
brandId: z236.string(),
|
|
6709
|
+
thumbnailUrl: z236.string().optional(),
|
|
6710
|
+
svgUrl: z236.string().optional(),
|
|
6711
|
+
exportProperties: z236.object({
|
|
6712
|
+
isAsset: z236.boolean()
|
|
6701
6713
|
}),
|
|
6702
|
-
createdAt:
|
|
6703
|
-
updatedAt:
|
|
6714
|
+
createdAt: z236.coerce.date(),
|
|
6715
|
+
updatedAt: z236.coerce.date(),
|
|
6704
6716
|
meta: ObjectMeta,
|
|
6705
6717
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6706
|
-
parentComponentPersistentId:
|
|
6707
|
-
childrenPersistentIds:
|
|
6718
|
+
parentComponentPersistentId: z236.string().optional(),
|
|
6719
|
+
childrenPersistentIds: z236.string().array().optional(),
|
|
6708
6720
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6709
|
-
variantPropertyValues:
|
|
6721
|
+
variantPropertyValues: z236.record(z236.string()).optional()
|
|
6710
6722
|
});
|
|
6711
|
-
var DTOFigmaComponentListResponse =
|
|
6723
|
+
var DTOFigmaComponentListResponse = z236.object({
|
|
6712
6724
|
components: DTOFigmaComponent.array()
|
|
6713
6725
|
});
|
|
6714
6726
|
|
|
6715
6727
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6716
|
-
import { z as
|
|
6728
|
+
import { z as z238 } from "zod";
|
|
6717
6729
|
|
|
6718
6730
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6719
|
-
import { z as
|
|
6731
|
+
import { z as z237 } from "zod";
|
|
6720
6732
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6721
6733
|
sortOrder: true,
|
|
6722
6734
|
parentPersistentId: true,
|
|
@@ -6726,13 +6738,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6726
6738
|
data: true,
|
|
6727
6739
|
shortPersistentId: true
|
|
6728
6740
|
}).extend({
|
|
6729
|
-
title:
|
|
6730
|
-
isRoot:
|
|
6731
|
-
childrenIds:
|
|
6741
|
+
title: z237.string(),
|
|
6742
|
+
isRoot: z237.boolean(),
|
|
6743
|
+
childrenIds: z237.array(z237.string()),
|
|
6732
6744
|
groupBehavior: DocumentationGroupBehavior,
|
|
6733
|
-
shortPersistentId:
|
|
6745
|
+
shortPersistentId: z237.string(),
|
|
6734
6746
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6735
|
-
type:
|
|
6747
|
+
type: z237.literal("Group"),
|
|
6736
6748
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6737
6749
|
draftState: DTODocumentationDraftState.optional(),
|
|
6738
6750
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6740,127 +6752,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6740
6752
|
//** An approval state for frontend to utilize. */
|
|
6741
6753
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6742
6754
|
});
|
|
6743
|
-
var DTOCreateDocumentationGroupInput =
|
|
6755
|
+
var DTOCreateDocumentationGroupInput = z237.object({
|
|
6744
6756
|
// Identifier
|
|
6745
|
-
persistentId:
|
|
6757
|
+
persistentId: z237.string(),
|
|
6746
6758
|
// Group properties
|
|
6747
|
-
title:
|
|
6759
|
+
title: z237.string(),
|
|
6748
6760
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6749
6761
|
// Group placement properties
|
|
6750
|
-
afterPersistentId:
|
|
6751
|
-
parentPersistentId:
|
|
6762
|
+
afterPersistentId: z237.string().nullish(),
|
|
6763
|
+
parentPersistentId: z237.string()
|
|
6752
6764
|
});
|
|
6753
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6765
|
+
var DTOUpdateDocumentationGroupInput = z237.object({
|
|
6754
6766
|
// Identifier of the group to update
|
|
6755
|
-
id:
|
|
6767
|
+
id: z237.string(),
|
|
6756
6768
|
// Group properties
|
|
6757
|
-
title:
|
|
6769
|
+
title: z237.string().optional(),
|
|
6758
6770
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6759
6771
|
});
|
|
6760
|
-
var DTOMoveDocumentationGroupInput =
|
|
6772
|
+
var DTOMoveDocumentationGroupInput = z237.object({
|
|
6761
6773
|
// Identifier of the group to update
|
|
6762
|
-
id:
|
|
6774
|
+
id: z237.string(),
|
|
6763
6775
|
// Group placement properties
|
|
6764
|
-
parentPersistentId:
|
|
6765
|
-
afterPersistentId:
|
|
6776
|
+
parentPersistentId: z237.string(),
|
|
6777
|
+
afterPersistentId: z237.string().nullish()
|
|
6766
6778
|
});
|
|
6767
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6779
|
+
var DTODuplicateDocumentationGroupInput = z237.object({
|
|
6768
6780
|
// Identifier of the group to duplicate from
|
|
6769
|
-
id:
|
|
6781
|
+
id: z237.string(),
|
|
6770
6782
|
// New group persistent id
|
|
6771
|
-
persistentId:
|
|
6783
|
+
persistentId: z237.string(),
|
|
6772
6784
|
// Group placement properties
|
|
6773
|
-
afterPersistentId:
|
|
6774
|
-
parentPersistentId:
|
|
6785
|
+
afterPersistentId: z237.string().nullish(),
|
|
6786
|
+
parentPersistentId: z237.string()
|
|
6775
6787
|
});
|
|
6776
|
-
var DTOCreateDocumentationTabInput =
|
|
6788
|
+
var DTOCreateDocumentationTabInput = z237.object({
|
|
6777
6789
|
// New group persistent id
|
|
6778
|
-
persistentId:
|
|
6790
|
+
persistentId: z237.string(),
|
|
6779
6791
|
// If this is page, we will attempt to convert it to tab
|
|
6780
6792
|
// If this is tab group, we will add a new tab to it
|
|
6781
|
-
fromItemPersistentId:
|
|
6782
|
-
tabName:
|
|
6793
|
+
fromItemPersistentId: z237.string(),
|
|
6794
|
+
tabName: z237.string()
|
|
6783
6795
|
});
|
|
6784
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6796
|
+
var DTODeleteDocumentationTabGroupInput = z237.object({
|
|
6785
6797
|
// Deleted group id
|
|
6786
|
-
id:
|
|
6798
|
+
id: z237.string()
|
|
6787
6799
|
});
|
|
6788
|
-
var DTODeleteDocumentationGroupInput =
|
|
6800
|
+
var DTODeleteDocumentationGroupInput = z237.object({
|
|
6789
6801
|
// Identifier
|
|
6790
|
-
id:
|
|
6802
|
+
id: z237.string(),
|
|
6791
6803
|
// Deletion options
|
|
6792
|
-
deleteSubtree:
|
|
6804
|
+
deleteSubtree: z237.boolean().default(false)
|
|
6793
6805
|
});
|
|
6794
6806
|
|
|
6795
6807
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6796
|
-
var SuccessPayload =
|
|
6797
|
-
success:
|
|
6808
|
+
var SuccessPayload = z238.object({
|
|
6809
|
+
success: z238.literal(true)
|
|
6798
6810
|
});
|
|
6799
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6800
|
-
type:
|
|
6811
|
+
var DTODocumentationGroupCreateActionOutputV2 = z238.object({
|
|
6812
|
+
type: z238.literal("DocumentationGroupCreate"),
|
|
6801
6813
|
output: SuccessPayload
|
|
6802
6814
|
});
|
|
6803
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6804
|
-
type:
|
|
6815
|
+
var DTODocumentationTabCreateActionOutputV2 = z238.object({
|
|
6816
|
+
type: z238.literal("DocumentationTabCreate"),
|
|
6805
6817
|
output: SuccessPayload
|
|
6806
6818
|
});
|
|
6807
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6808
|
-
type:
|
|
6819
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z238.object({
|
|
6820
|
+
type: z238.literal("DocumentationGroupUpdate"),
|
|
6809
6821
|
output: SuccessPayload
|
|
6810
6822
|
});
|
|
6811
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6812
|
-
type:
|
|
6823
|
+
var DTODocumentationGroupMoveActionOutputV2 = z238.object({
|
|
6824
|
+
type: z238.literal("DocumentationGroupMove"),
|
|
6813
6825
|
output: SuccessPayload
|
|
6814
6826
|
});
|
|
6815
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6816
|
-
type:
|
|
6827
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z238.object({
|
|
6828
|
+
type: z238.literal("DocumentationGroupDuplicate"),
|
|
6817
6829
|
output: SuccessPayload
|
|
6818
6830
|
});
|
|
6819
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6820
|
-
type:
|
|
6831
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z238.object({
|
|
6832
|
+
type: z238.literal("DocumentationGroupDelete"),
|
|
6821
6833
|
output: SuccessPayload
|
|
6822
6834
|
});
|
|
6823
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6824
|
-
type:
|
|
6835
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z238.object({
|
|
6836
|
+
type: z238.literal("DocumentationTabGroupDelete"),
|
|
6825
6837
|
output: SuccessPayload
|
|
6826
6838
|
});
|
|
6827
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6828
|
-
type:
|
|
6839
|
+
var DTODocumentationGroupCreateActionInputV2 = z238.object({
|
|
6840
|
+
type: z238.literal("DocumentationGroupCreate"),
|
|
6829
6841
|
input: DTOCreateDocumentationGroupInput
|
|
6830
6842
|
});
|
|
6831
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6832
|
-
type:
|
|
6843
|
+
var DTODocumentationTabCreateActionInputV2 = z238.object({
|
|
6844
|
+
type: z238.literal("DocumentationTabCreate"),
|
|
6833
6845
|
input: DTOCreateDocumentationTabInput
|
|
6834
6846
|
});
|
|
6835
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6836
|
-
type:
|
|
6847
|
+
var DTODocumentationGroupUpdateActionInputV2 = z238.object({
|
|
6848
|
+
type: z238.literal("DocumentationGroupUpdate"),
|
|
6837
6849
|
input: DTOUpdateDocumentationGroupInput
|
|
6838
6850
|
});
|
|
6839
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6840
|
-
type:
|
|
6851
|
+
var DTODocumentationGroupMoveActionInputV2 = z238.object({
|
|
6852
|
+
type: z238.literal("DocumentationGroupMove"),
|
|
6841
6853
|
input: DTOMoveDocumentationGroupInput
|
|
6842
6854
|
});
|
|
6843
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6844
|
-
type:
|
|
6855
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z238.object({
|
|
6856
|
+
type: z238.literal("DocumentationGroupDuplicate"),
|
|
6845
6857
|
input: DTODuplicateDocumentationGroupInput
|
|
6846
6858
|
});
|
|
6847
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6848
|
-
type:
|
|
6859
|
+
var DTODocumentationGroupDeleteActionInputV2 = z238.object({
|
|
6860
|
+
type: z238.literal("DocumentationGroupDelete"),
|
|
6849
6861
|
input: DTODeleteDocumentationGroupInput
|
|
6850
6862
|
});
|
|
6851
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6852
|
-
type:
|
|
6863
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z238.object({
|
|
6864
|
+
type: z238.literal("DocumentationTabGroupDelete"),
|
|
6853
6865
|
input: DTODeleteDocumentationTabGroupInput
|
|
6854
6866
|
});
|
|
6855
6867
|
|
|
6856
6868
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6857
|
-
import { z as
|
|
6869
|
+
import { z as z240 } from "zod";
|
|
6858
6870
|
|
|
6859
6871
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6860
|
-
import { z as
|
|
6861
|
-
var DocumentationColorV1 =
|
|
6862
|
-
aliasTo:
|
|
6863
|
-
value:
|
|
6872
|
+
import { z as z239 } from "zod";
|
|
6873
|
+
var DocumentationColorV1 = z239.object({
|
|
6874
|
+
aliasTo: z239.string().optional(),
|
|
6875
|
+
value: z239.string().optional()
|
|
6864
6876
|
});
|
|
6865
6877
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6866
6878
|
foregroundColor: true,
|
|
@@ -6869,10 +6881,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6869
6881
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6870
6882
|
backgroundColor: DocumentationColorV1.optional()
|
|
6871
6883
|
});
|
|
6872
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6873
|
-
showSidebar:
|
|
6874
|
-
isPrivate:
|
|
6875
|
-
isHidden:
|
|
6884
|
+
var DTODocumentationItemConfigurationV1 = z239.object({
|
|
6885
|
+
showSidebar: z239.boolean(),
|
|
6886
|
+
isPrivate: z239.boolean(),
|
|
6887
|
+
isHidden: z239.boolean(),
|
|
6876
6888
|
header: DTODocumentationItemHeaderV1
|
|
6877
6889
|
});
|
|
6878
6890
|
|
|
@@ -6886,27 +6898,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6886
6898
|
data: true,
|
|
6887
6899
|
shortPersistentId: true
|
|
6888
6900
|
}).extend({
|
|
6889
|
-
title:
|
|
6890
|
-
isRoot:
|
|
6891
|
-
childrenIds:
|
|
6901
|
+
title: z240.string(),
|
|
6902
|
+
isRoot: z240.boolean(),
|
|
6903
|
+
childrenIds: z240.array(z240.string()),
|
|
6892
6904
|
groupBehavior: DocumentationGroupBehavior,
|
|
6893
|
-
shortPersistentId:
|
|
6894
|
-
type:
|
|
6905
|
+
shortPersistentId: z240.string(),
|
|
6906
|
+
type: z240.literal("Group")
|
|
6895
6907
|
});
|
|
6896
6908
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6897
6909
|
configuration: DTODocumentationItemConfigurationV1
|
|
6898
6910
|
});
|
|
6899
6911
|
|
|
6900
6912
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6901
|
-
import { z as
|
|
6902
|
-
var DTODocumentationHierarchyV2 =
|
|
6903
|
-
pages:
|
|
6913
|
+
import { z as z241 } from "zod";
|
|
6914
|
+
var DTODocumentationHierarchyV2 = z241.object({
|
|
6915
|
+
pages: z241.array(
|
|
6904
6916
|
DTODocumentationPageV2.extend({
|
|
6905
6917
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6906
6918
|
draftState: DTODocumentationDraftState.optional()
|
|
6907
6919
|
})
|
|
6908
6920
|
),
|
|
6909
|
-
groups:
|
|
6921
|
+
groups: z241.array(
|
|
6910
6922
|
DTODocumentationGroupV2.extend({
|
|
6911
6923
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6912
6924
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6915,84 +6927,84 @@ var DTODocumentationHierarchyV2 = z240.object({
|
|
|
6915
6927
|
});
|
|
6916
6928
|
|
|
6917
6929
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6918
|
-
import { z as
|
|
6919
|
-
var SuccessPayload2 =
|
|
6920
|
-
success:
|
|
6930
|
+
import { z as z242 } from "zod";
|
|
6931
|
+
var SuccessPayload2 = z242.object({
|
|
6932
|
+
success: z242.literal(true)
|
|
6921
6933
|
});
|
|
6922
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6923
|
-
type:
|
|
6934
|
+
var DTODocumentationPageCreateActionOutputV2 = z242.object({
|
|
6935
|
+
type: z242.literal("DocumentationPageCreate"),
|
|
6924
6936
|
output: SuccessPayload2
|
|
6925
6937
|
});
|
|
6926
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6927
|
-
type:
|
|
6938
|
+
var DTODocumentationPageUpdateActionOutputV2 = z242.object({
|
|
6939
|
+
type: z242.literal("DocumentationPageUpdate"),
|
|
6928
6940
|
output: SuccessPayload2
|
|
6929
6941
|
});
|
|
6930
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6931
|
-
type:
|
|
6942
|
+
var DTODocumentationPageMoveActionOutputV2 = z242.object({
|
|
6943
|
+
type: z242.literal("DocumentationPageMove"),
|
|
6932
6944
|
output: SuccessPayload2
|
|
6933
6945
|
});
|
|
6934
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6935
|
-
type:
|
|
6946
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z242.object({
|
|
6947
|
+
type: z242.literal("DocumentationPageDuplicate"),
|
|
6936
6948
|
output: SuccessPayload2
|
|
6937
6949
|
});
|
|
6938
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6939
|
-
type:
|
|
6950
|
+
var DTODocumentationPageDeleteActionOutputV2 = z242.object({
|
|
6951
|
+
type: z242.literal("DocumentationPageDelete"),
|
|
6940
6952
|
output: SuccessPayload2
|
|
6941
6953
|
});
|
|
6942
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6943
|
-
type:
|
|
6954
|
+
var DTODocumentationPageRestoreActionOutput = z242.object({
|
|
6955
|
+
type: z242.literal("DocumentationPageRestore"),
|
|
6944
6956
|
output: SuccessPayload2
|
|
6945
6957
|
});
|
|
6946
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6947
|
-
type:
|
|
6958
|
+
var DTODocumentationGroupRestoreActionOutput = z242.object({
|
|
6959
|
+
type: z242.literal("DocumentationGroupRestore"),
|
|
6948
6960
|
output: SuccessPayload2
|
|
6949
6961
|
});
|
|
6950
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6951
|
-
type:
|
|
6962
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z242.object({
|
|
6963
|
+
type: z242.literal("DocumentationPageApprovalStateChange"),
|
|
6952
6964
|
output: SuccessPayload2
|
|
6953
6965
|
});
|
|
6954
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6955
|
-
type:
|
|
6966
|
+
var DTODocumentationPageCreateActionInputV2 = z242.object({
|
|
6967
|
+
type: z242.literal("DocumentationPageCreate"),
|
|
6956
6968
|
input: DTOCreateDocumentationPageInputV2
|
|
6957
6969
|
});
|
|
6958
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6959
|
-
type:
|
|
6970
|
+
var DTODocumentationPageUpdateActionInputV2 = z242.object({
|
|
6971
|
+
type: z242.literal("DocumentationPageUpdate"),
|
|
6960
6972
|
input: DTOUpdateDocumentationPageInputV2
|
|
6961
6973
|
});
|
|
6962
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6963
|
-
type:
|
|
6974
|
+
var DTODocumentationPageMoveActionInputV2 = z242.object({
|
|
6975
|
+
type: z242.literal("DocumentationPageMove"),
|
|
6964
6976
|
input: DTOMoveDocumentationPageInputV2
|
|
6965
6977
|
});
|
|
6966
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6967
|
-
type:
|
|
6978
|
+
var DTODocumentationPageDuplicateActionInputV2 = z242.object({
|
|
6979
|
+
type: z242.literal("DocumentationPageDuplicate"),
|
|
6968
6980
|
input: DTODuplicateDocumentationPageInputV2
|
|
6969
6981
|
});
|
|
6970
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6971
|
-
type:
|
|
6982
|
+
var DTODocumentationPageDeleteActionInputV2 = z242.object({
|
|
6983
|
+
type: z242.literal("DocumentationPageDelete"),
|
|
6972
6984
|
input: DTODeleteDocumentationPageInputV2
|
|
6973
6985
|
});
|
|
6974
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6975
|
-
type:
|
|
6986
|
+
var DTODocumentationPageRestoreActionInput = z242.object({
|
|
6987
|
+
type: z242.literal("DocumentationPageRestore"),
|
|
6976
6988
|
input: DTORestoreDocumentationPageInput
|
|
6977
6989
|
});
|
|
6978
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6979
|
-
type:
|
|
6990
|
+
var DTODocumentationGroupRestoreActionInput = z242.object({
|
|
6991
|
+
type: z242.literal("DocumentationGroupRestore"),
|
|
6980
6992
|
input: DTORestoreDocumentationGroupInput
|
|
6981
6993
|
});
|
|
6982
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6983
|
-
type:
|
|
6994
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z242.object({
|
|
6995
|
+
type: z242.literal("DocumentationPageApprovalStateChange"),
|
|
6984
6996
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6985
6997
|
});
|
|
6986
6998
|
|
|
6987
6999
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6988
|
-
import { z as
|
|
7000
|
+
import { z as z243 } from "zod";
|
|
6989
7001
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6990
|
-
var DTODocumentationPageContentGetResponse =
|
|
7002
|
+
var DTODocumentationPageContentGetResponse = z243.object({
|
|
6991
7003
|
pageContent: DTODocumentationPageContent
|
|
6992
7004
|
});
|
|
6993
7005
|
|
|
6994
7006
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6995
|
-
import { z as
|
|
7007
|
+
import { z as z244 } from "zod";
|
|
6996
7008
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6997
7009
|
data: true,
|
|
6998
7010
|
meta: true,
|
|
@@ -7000,54 +7012,54 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7000
7012
|
sortOrder: true
|
|
7001
7013
|
}).extend({
|
|
7002
7014
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7003
|
-
blocks:
|
|
7004
|
-
title:
|
|
7005
|
-
path:
|
|
7015
|
+
blocks: z244.array(PageBlockV1),
|
|
7016
|
+
title: z244.string(),
|
|
7017
|
+
path: z244.string()
|
|
7006
7018
|
});
|
|
7007
7019
|
|
|
7008
7020
|
// src/api/dto/elements/documentation/structure.ts
|
|
7009
|
-
import { z as
|
|
7010
|
-
var DTODocumentationStructureItemType =
|
|
7011
|
-
var DTODocumentationStructureItemBase =
|
|
7021
|
+
import { z as z245 } from "zod";
|
|
7022
|
+
var DTODocumentationStructureItemType = z245.enum(["Group", "Page"]);
|
|
7023
|
+
var DTODocumentationStructureItemBase = z245.object({
|
|
7012
7024
|
type: DTODocumentationStructureItemType,
|
|
7013
|
-
id:
|
|
7014
|
-
designSystemVersionId:
|
|
7015
|
-
shortPersistentId:
|
|
7016
|
-
persistentId:
|
|
7017
|
-
title:
|
|
7018
|
-
createdAt:
|
|
7019
|
-
updatedAt:
|
|
7025
|
+
id: z245.string(),
|
|
7026
|
+
designSystemVersionId: z245.string(),
|
|
7027
|
+
shortPersistentId: z245.string(),
|
|
7028
|
+
persistentId: z245.string(),
|
|
7029
|
+
title: z245.string(),
|
|
7030
|
+
createdAt: z245.coerce.date(),
|
|
7031
|
+
updatedAt: z245.coerce.date()
|
|
7020
7032
|
});
|
|
7021
7033
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7022
|
-
type:
|
|
7023
|
-
groupBehavior:
|
|
7024
|
-
childrenIds:
|
|
7025
|
-
isRoot:
|
|
7034
|
+
type: z245.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7035
|
+
groupBehavior: z245.string(),
|
|
7036
|
+
childrenIds: z245.string().array(),
|
|
7037
|
+
isRoot: z245.boolean()
|
|
7026
7038
|
});
|
|
7027
7039
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7028
|
-
type:
|
|
7029
|
-
path:
|
|
7040
|
+
type: z245.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7041
|
+
path: z245.string()
|
|
7030
7042
|
});
|
|
7031
|
-
var DTODocumentationStructureItem =
|
|
7043
|
+
var DTODocumentationStructureItem = z245.discriminatedUnion("type", [
|
|
7032
7044
|
DTODocumentationStructureGroupItem,
|
|
7033
7045
|
DTODocumentationStructurePageItem
|
|
7034
7046
|
]);
|
|
7035
|
-
var DTODocumentationStructure =
|
|
7036
|
-
items:
|
|
7047
|
+
var DTODocumentationStructure = z245.object({
|
|
7048
|
+
items: z245.array(DTODocumentationStructureItem)
|
|
7037
7049
|
});
|
|
7038
7050
|
|
|
7039
7051
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7040
|
-
import { z as
|
|
7052
|
+
import { z as z247 } from "zod";
|
|
7041
7053
|
|
|
7042
7054
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7043
|
-
import { z as
|
|
7055
|
+
import { z as z246 } from "zod";
|
|
7044
7056
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7045
|
-
var DTOFigmaNodeOrigin =
|
|
7046
|
-
sourceId:
|
|
7047
|
-
fileId:
|
|
7048
|
-
parentName:
|
|
7057
|
+
var DTOFigmaNodeOrigin = z246.object({
|
|
7058
|
+
sourceId: z246.string(),
|
|
7059
|
+
fileId: z246.string().optional(),
|
|
7060
|
+
parentName: z246.string().optional()
|
|
7049
7061
|
});
|
|
7050
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7062
|
+
var DTOFigmaNodeRenderInputBase = z246.object({
|
|
7051
7063
|
/**
|
|
7052
7064
|
* Format in which the node must be rendered, png by default.
|
|
7053
7065
|
*/
|
|
@@ -7055,57 +7067,57 @@ var DTOFigmaNodeRenderInputBase = z245.object({
|
|
|
7055
7067
|
/**
|
|
7056
7068
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7057
7069
|
*/
|
|
7058
|
-
scale:
|
|
7070
|
+
scale: z246.number().optional()
|
|
7059
7071
|
});
|
|
7060
7072
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7061
|
-
inputType:
|
|
7073
|
+
inputType: z246.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7062
7074
|
/**
|
|
7063
7075
|
* Id of a design system's data source representing a linked Figma file
|
|
7064
7076
|
*/
|
|
7065
|
-
sourceId:
|
|
7077
|
+
sourceId: z246.string(),
|
|
7066
7078
|
/**
|
|
7067
7079
|
* Id of a node within the Figma file
|
|
7068
7080
|
*/
|
|
7069
|
-
figmaFileNodeId:
|
|
7081
|
+
figmaFileNodeId: z246.string()
|
|
7070
7082
|
});
|
|
7071
7083
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7072
|
-
inputType:
|
|
7084
|
+
inputType: z246.literal("URL"),
|
|
7073
7085
|
/**
|
|
7074
7086
|
* Id of a design system's data source representing a linked Figma file
|
|
7075
7087
|
*/
|
|
7076
|
-
figmaNodeUrl:
|
|
7088
|
+
figmaNodeUrl: z246.string(),
|
|
7077
7089
|
/**
|
|
7078
7090
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7079
7091
|
*/
|
|
7080
|
-
brandPersistentId:
|
|
7092
|
+
brandPersistentId: z246.string()
|
|
7081
7093
|
});
|
|
7082
|
-
var DTOFigmaNodeRerenderInput =
|
|
7083
|
-
inputType:
|
|
7094
|
+
var DTOFigmaNodeRerenderInput = z246.object({
|
|
7095
|
+
inputType: z246.literal("Rerender"),
|
|
7084
7096
|
/**
|
|
7085
7097
|
* Persistent ID of an existing Figma node
|
|
7086
7098
|
*/
|
|
7087
|
-
figmaNodePersistentId:
|
|
7099
|
+
figmaNodePersistentId: z246.string()
|
|
7088
7100
|
});
|
|
7089
|
-
var DTOFigmaNodeRenderInput =
|
|
7101
|
+
var DTOFigmaNodeRenderInput = z246.discriminatedUnion("inputType", [
|
|
7090
7102
|
DTOFigmaNodeRenderIdInput,
|
|
7091
7103
|
DTOFigmaNodeRenderUrlInput,
|
|
7092
7104
|
DTOFigmaNodeRerenderInput
|
|
7093
7105
|
]);
|
|
7094
7106
|
|
|
7095
7107
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7096
|
-
var DTOFigmaNodeData =
|
|
7108
|
+
var DTOFigmaNodeData = z247.object({
|
|
7097
7109
|
// Id of the node in the Figma file
|
|
7098
|
-
figmaNodeId:
|
|
7110
|
+
figmaNodeId: z247.string(),
|
|
7099
7111
|
// Validity
|
|
7100
|
-
isValid:
|
|
7112
|
+
isValid: z247.boolean(),
|
|
7101
7113
|
// Asset data
|
|
7102
|
-
assetId:
|
|
7103
|
-
assetUrl:
|
|
7114
|
+
assetId: z247.string(),
|
|
7115
|
+
assetUrl: z247.string(),
|
|
7104
7116
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7105
7117
|
// Asset metadata
|
|
7106
|
-
assetScale:
|
|
7107
|
-
assetWidth:
|
|
7108
|
-
assetHeight:
|
|
7118
|
+
assetScale: z247.number(),
|
|
7119
|
+
assetWidth: z247.number().optional(),
|
|
7120
|
+
assetHeight: z247.number().optional()
|
|
7109
7121
|
});
|
|
7110
7122
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7111
7123
|
data: true,
|
|
@@ -7116,15 +7128,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7116
7128
|
});
|
|
7117
7129
|
|
|
7118
7130
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7119
|
-
import { z as
|
|
7120
|
-
var DTOFigmaNodeDataV2 =
|
|
7121
|
-
sceneNodeId:
|
|
7131
|
+
import { z as z248 } from "zod";
|
|
7132
|
+
var DTOFigmaNodeDataV2 = z248.object({
|
|
7133
|
+
sceneNodeId: z248.string(),
|
|
7122
7134
|
format: FigmaNodeRenderFormat,
|
|
7123
|
-
scale:
|
|
7135
|
+
scale: z248.number().optional(),
|
|
7124
7136
|
renderState: FigmaNodeRenderState,
|
|
7125
7137
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7126
7138
|
renderError: FigmaNodeRenderError.optional(),
|
|
7127
|
-
hasSource:
|
|
7139
|
+
hasSource: z248.boolean()
|
|
7128
7140
|
});
|
|
7129
7141
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7130
7142
|
data: true,
|
|
@@ -7135,105 +7147,105 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7135
7147
|
});
|
|
7136
7148
|
|
|
7137
7149
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7138
|
-
import { z as
|
|
7139
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7140
|
-
type:
|
|
7141
|
-
figmaNodes:
|
|
7150
|
+
import { z as z249 } from "zod";
|
|
7151
|
+
var DTOFigmaNodeRenderActionOutput = z249.object({
|
|
7152
|
+
type: z249.literal("FigmaNodeRender"),
|
|
7153
|
+
figmaNodes: z249.array(DTOFigmaNode)
|
|
7142
7154
|
});
|
|
7143
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7144
|
-
type:
|
|
7145
|
-
figmaNodes:
|
|
7155
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z249.object({
|
|
7156
|
+
type: z249.literal("FigmaNodeRenderAsync"),
|
|
7157
|
+
figmaNodes: z249.array(DTOFigmaNodeV2)
|
|
7146
7158
|
});
|
|
7147
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7148
|
-
type:
|
|
7159
|
+
var DTOFigmaNodeRenderActionInput = z249.object({
|
|
7160
|
+
type: z249.literal("FigmaNodeRender"),
|
|
7149
7161
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7150
7162
|
});
|
|
7151
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7152
|
-
type:
|
|
7163
|
+
var DTOFigmaNodeRenderAsyncActionInput = z249.object({
|
|
7164
|
+
type: z249.literal("FigmaNodeRenderAsync"),
|
|
7153
7165
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7154
7166
|
});
|
|
7155
7167
|
|
|
7156
7168
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
7157
|
-
import { z as
|
|
7158
|
-
var DTOFrameNodeStructure =
|
|
7159
|
-
id:
|
|
7160
|
-
persistentId:
|
|
7161
|
-
designSystemVersionId:
|
|
7169
|
+
import { z as z250 } from "zod";
|
|
7170
|
+
var DTOFrameNodeStructure = z250.object({
|
|
7171
|
+
id: z250.string(),
|
|
7172
|
+
persistentId: z250.string(),
|
|
7173
|
+
designSystemVersionId: z250.string(),
|
|
7162
7174
|
origin: FigmaFileStructureOrigin,
|
|
7163
7175
|
assetsInFile: FigmaFileStructureStatistics
|
|
7164
7176
|
});
|
|
7165
|
-
var DTOFrameNodeStructureListResponse =
|
|
7177
|
+
var DTOFrameNodeStructureListResponse = z250.object({
|
|
7166
7178
|
structures: DTOFrameNodeStructure.array()
|
|
7167
7179
|
});
|
|
7168
7180
|
|
|
7169
7181
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
7170
|
-
import { z as
|
|
7182
|
+
import { z as z251 } from "zod";
|
|
7171
7183
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
7172
|
-
var DTOElementPropertyDefinitionOption =
|
|
7173
|
-
id:
|
|
7174
|
-
name:
|
|
7184
|
+
var DTOElementPropertyDefinitionOption = z251.object({
|
|
7185
|
+
id: z251.string(),
|
|
7186
|
+
name: z251.string(),
|
|
7175
7187
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
7176
7188
|
});
|
|
7177
|
-
var DTOElementPropertyDefinition =
|
|
7178
|
-
id:
|
|
7179
|
-
designSystemVersionId:
|
|
7189
|
+
var DTOElementPropertyDefinition = z251.object({
|
|
7190
|
+
id: z251.string(),
|
|
7191
|
+
designSystemVersionId: z251.string(),
|
|
7180
7192
|
meta: DTOObjectMeta,
|
|
7181
|
-
persistentId:
|
|
7193
|
+
persistentId: z251.string(),
|
|
7182
7194
|
type: ElementPropertyTypeSchema,
|
|
7183
7195
|
targetElementType: ElementPropertyTargetType,
|
|
7184
|
-
codeName:
|
|
7185
|
-
options: nullishToOptional(
|
|
7196
|
+
codeName: z251.string().regex(CODE_NAME_REGEX2),
|
|
7197
|
+
options: nullishToOptional(z251.array(DTOElementPropertyDefinitionOption)),
|
|
7186
7198
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7187
|
-
isImmutable:
|
|
7199
|
+
isImmutable: z251.boolean(),
|
|
7188
7200
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
7189
7201
|
});
|
|
7190
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
7191
|
-
definitions:
|
|
7202
|
+
var DTOElementPropertyDefinitionListResponse = z251.object({
|
|
7203
|
+
definitions: z251.array(DTOElementPropertyDefinition)
|
|
7192
7204
|
});
|
|
7193
|
-
var DTOElementPropertyDefinitionResponse =
|
|
7205
|
+
var DTOElementPropertyDefinitionResponse = z251.object({
|
|
7194
7206
|
definition: DTOElementPropertyDefinition
|
|
7195
7207
|
});
|
|
7196
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
7208
|
+
var DTOElementPropertyDefinitionCreatePayload = z251.object({
|
|
7197
7209
|
meta: DTOObjectMeta,
|
|
7198
|
-
persistentId:
|
|
7210
|
+
persistentId: z251.string(),
|
|
7199
7211
|
type: ElementPropertyTypeSchema,
|
|
7200
7212
|
targetElementType: ElementPropertyTargetType,
|
|
7201
|
-
codeName:
|
|
7202
|
-
options: nullishToOptional(
|
|
7213
|
+
codeName: z251.string().regex(CODE_NAME_REGEX2),
|
|
7214
|
+
options: nullishToOptional(z251.array(DTOElementPropertyDefinitionOption)),
|
|
7203
7215
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7204
|
-
columnWidth:
|
|
7216
|
+
columnWidth: z251.number().max(1024).optional()
|
|
7205
7217
|
});
|
|
7206
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
7218
|
+
var DTOElementPropertyDefinitionUpdatePayload = z251.object({
|
|
7207
7219
|
meta: DTOObjectMeta.optional(),
|
|
7208
|
-
codeName:
|
|
7209
|
-
options:
|
|
7220
|
+
codeName: z251.string().regex(CODE_NAME_REGEX2).optional(),
|
|
7221
|
+
options: z251.array(DTOElementPropertyDefinitionOption).optional()
|
|
7210
7222
|
});
|
|
7211
7223
|
|
|
7212
7224
|
// src/api/dto/elements/properties/property-values.ts
|
|
7213
|
-
import { z as
|
|
7214
|
-
var DTOElementPropertyValue =
|
|
7215
|
-
id:
|
|
7216
|
-
designSystemVersionId:
|
|
7217
|
-
definitionId:
|
|
7218
|
-
targetElementId:
|
|
7219
|
-
value:
|
|
7220
|
-
valuePreview:
|
|
7221
|
-
});
|
|
7222
|
-
var DTOElementPropertyValueListResponse =
|
|
7223
|
-
values:
|
|
7224
|
-
});
|
|
7225
|
-
var DTOElementPropertyValueResponse =
|
|
7225
|
+
import { z as z252 } from "zod";
|
|
7226
|
+
var DTOElementPropertyValue = z252.object({
|
|
7227
|
+
id: z252.string(),
|
|
7228
|
+
designSystemVersionId: z252.string(),
|
|
7229
|
+
definitionId: z252.string(),
|
|
7230
|
+
targetElementId: z252.string(),
|
|
7231
|
+
value: z252.union([z252.string(), z252.number(), z252.boolean()]).optional(),
|
|
7232
|
+
valuePreview: z252.string().optional()
|
|
7233
|
+
});
|
|
7234
|
+
var DTOElementPropertyValueListResponse = z252.object({
|
|
7235
|
+
values: z252.array(DTOElementPropertyValue)
|
|
7236
|
+
});
|
|
7237
|
+
var DTOElementPropertyValueResponse = z252.object({
|
|
7226
7238
|
value: DTOElementPropertyValue
|
|
7227
7239
|
});
|
|
7228
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
7229
|
-
definitionId:
|
|
7230
|
-
targetElementId:
|
|
7231
|
-
value:
|
|
7240
|
+
var DTOElementPropertyValueUpsertPaylod = z252.object({
|
|
7241
|
+
definitionId: z252.string(),
|
|
7242
|
+
targetElementId: z252.string(),
|
|
7243
|
+
value: z252.string().or(z252.number()).or(z252.boolean())
|
|
7232
7244
|
});
|
|
7233
7245
|
|
|
7234
7246
|
// src/api/dto/elements/elements-action-v2.ts
|
|
7235
|
-
import { z as
|
|
7236
|
-
var DTOElementActionOutput =
|
|
7247
|
+
import { z as z253 } from "zod";
|
|
7248
|
+
var DTOElementActionOutput = z253.discriminatedUnion("type", [
|
|
7237
7249
|
// Documentation pages
|
|
7238
7250
|
DTODocumentationPageCreateActionOutputV2,
|
|
7239
7251
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -7257,7 +7269,7 @@ var DTOElementActionOutput = z252.discriminatedUnion("type", [
|
|
|
7257
7269
|
// Approvals
|
|
7258
7270
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
7259
7271
|
]);
|
|
7260
|
-
var DTOElementActionInput =
|
|
7272
|
+
var DTOElementActionInput = z253.discriminatedUnion("type", [
|
|
7261
7273
|
// Documentation pages
|
|
7262
7274
|
DTODocumentationPageCreateActionInputV2,
|
|
7263
7275
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7280,87 +7292,91 @@ var DTOElementActionInput = z252.discriminatedUnion("type", [
|
|
|
7280
7292
|
DTODocumentationGroupRestoreActionInput,
|
|
7281
7293
|
// Approval
|
|
7282
7294
|
DTODocumentationPageApprovalStateChangeActionInput
|
|
7283
|
-
])
|
|
7295
|
+
]).and(
|
|
7296
|
+
z253.object({
|
|
7297
|
+
tId: z253.string().optional()
|
|
7298
|
+
})
|
|
7299
|
+
);
|
|
7284
7300
|
|
|
7285
7301
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7286
|
-
import { z as
|
|
7287
|
-
var DTOElementsGetTypeFilter =
|
|
7288
|
-
var DTOElementsGetQuerySchema =
|
|
7289
|
-
types:
|
|
7290
|
-
responseVersion:
|
|
7302
|
+
import { z as z254 } from "zod";
|
|
7303
|
+
var DTOElementsGetTypeFilter = z254.enum(["FigmaNode"]);
|
|
7304
|
+
var DTOElementsGetQuerySchema = z254.object({
|
|
7305
|
+
types: z254.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
7306
|
+
responseVersion: z254.coerce.number().default(1)
|
|
7291
7307
|
});
|
|
7292
|
-
var DTOElementsGetOutput =
|
|
7293
|
-
figmaNodes:
|
|
7308
|
+
var DTOElementsGetOutput = z254.object({
|
|
7309
|
+
figmaNodes: z254.array(DTOFigmaNode).optional()
|
|
7294
7310
|
});
|
|
7295
|
-
var DTOElementsGetOutputV2 =
|
|
7296
|
-
figmaNodes:
|
|
7311
|
+
var DTOElementsGetOutputV2 = z254.object({
|
|
7312
|
+
figmaNodes: z254.array(DTOFigmaNodeV2).optional()
|
|
7297
7313
|
});
|
|
7298
7314
|
|
|
7299
7315
|
// src/api/dto/figma-components/assets/download.ts
|
|
7300
|
-
import { z as
|
|
7301
|
-
var DTOAssetRenderConfiguration =
|
|
7302
|
-
prefix:
|
|
7303
|
-
suffix:
|
|
7304
|
-
scale:
|
|
7305
|
-
format:
|
|
7306
|
-
});
|
|
7307
|
-
var DTORenderedAssetFile =
|
|
7308
|
-
assetId:
|
|
7309
|
-
fileName:
|
|
7310
|
-
sourceUrl:
|
|
7316
|
+
import { z as z255 } from "zod";
|
|
7317
|
+
var DTOAssetRenderConfiguration = z255.object({
|
|
7318
|
+
prefix: z255.string().optional(),
|
|
7319
|
+
suffix: z255.string().optional(),
|
|
7320
|
+
scale: z255.enum(["x1", "x2", "x3", "x4"]),
|
|
7321
|
+
format: z255.enum(["png", "pdf", "svg"])
|
|
7322
|
+
});
|
|
7323
|
+
var DTORenderedAssetFile = z255.object({
|
|
7324
|
+
assetId: z255.string(),
|
|
7325
|
+
fileName: z255.string(),
|
|
7326
|
+
sourceUrl: z255.string(),
|
|
7311
7327
|
settings: DTOAssetRenderConfiguration,
|
|
7312
|
-
originalName:
|
|
7328
|
+
originalName: z255.string()
|
|
7313
7329
|
});
|
|
7314
|
-
var DTODownloadAssetsRequest =
|
|
7315
|
-
persistentIds:
|
|
7330
|
+
var DTODownloadAssetsRequest = z255.object({
|
|
7331
|
+
persistentIds: z255.array(z255.string().uuid()).optional(),
|
|
7316
7332
|
settings: DTOAssetRenderConfiguration.array()
|
|
7317
7333
|
});
|
|
7318
|
-
var DTODownloadAssetsResponse =
|
|
7334
|
+
var DTODownloadAssetsResponse = z255.object({
|
|
7319
7335
|
items: DTORenderedAssetFile.array()
|
|
7320
7336
|
});
|
|
7321
7337
|
|
|
7322
7338
|
// src/api/dto/liveblocks/auth-response.ts
|
|
7323
|
-
import { z as
|
|
7324
|
-
var DTOLiveblocksAuthResponse =
|
|
7325
|
-
token:
|
|
7339
|
+
import { z as z256 } from "zod";
|
|
7340
|
+
var DTOLiveblocksAuthResponse = z256.object({
|
|
7341
|
+
token: z256.string()
|
|
7326
7342
|
});
|
|
7327
7343
|
|
|
7328
7344
|
// src/api/dto/themes/override.ts
|
|
7329
|
-
import { z as
|
|
7345
|
+
import { z as z257 } from "zod";
|
|
7330
7346
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
7331
|
-
|
|
7332
|
-
tokenPersistentId:
|
|
7347
|
+
z257.object({
|
|
7348
|
+
tokenPersistentId: z257.string(),
|
|
7333
7349
|
origin: ThemeOverrideOrigin.optional()
|
|
7334
7350
|
})
|
|
7335
7351
|
);
|
|
7336
7352
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
7337
|
-
|
|
7338
|
-
tokenPersistentId:
|
|
7353
|
+
z257.object({
|
|
7354
|
+
tokenPersistentId: z257.string()
|
|
7339
7355
|
})
|
|
7340
7356
|
);
|
|
7341
7357
|
|
|
7342
7358
|
// src/api/dto/themes/theme.ts
|
|
7343
|
-
import { z as
|
|
7344
|
-
var DTOTheme =
|
|
7345
|
-
id:
|
|
7346
|
-
persistentId:
|
|
7347
|
-
designSystemVersionId:
|
|
7348
|
-
brandId:
|
|
7359
|
+
import { z as z258 } from "zod";
|
|
7360
|
+
var DTOTheme = z258.object({
|
|
7361
|
+
id: z258.string(),
|
|
7362
|
+
persistentId: z258.string(),
|
|
7363
|
+
designSystemVersionId: z258.string(),
|
|
7364
|
+
brandId: z258.string(),
|
|
7349
7365
|
meta: ObjectMeta,
|
|
7350
|
-
codeName:
|
|
7366
|
+
codeName: z258.string(),
|
|
7351
7367
|
overrides: DTOThemeOverride.array()
|
|
7352
7368
|
});
|
|
7353
|
-
var DTOThemeResponse =
|
|
7369
|
+
var DTOThemeResponse = z258.object({
|
|
7354
7370
|
theme: DTOTheme
|
|
7355
7371
|
});
|
|
7356
|
-
var DTOThemeListResponse =
|
|
7372
|
+
var DTOThemeListResponse = z258.object({
|
|
7357
7373
|
themes: DTOTheme.array()
|
|
7358
7374
|
});
|
|
7359
|
-
var DTOThemeCreatePayload =
|
|
7375
|
+
var DTOThemeCreatePayload = z258.object({
|
|
7360
7376
|
meta: ObjectMeta,
|
|
7361
|
-
persistentId:
|
|
7362
|
-
brandId:
|
|
7363
|
-
codeName:
|
|
7377
|
+
persistentId: z258.string(),
|
|
7378
|
+
brandId: z258.string(),
|
|
7379
|
+
codeName: z258.string(),
|
|
7364
7380
|
overrides: DTOThemeOverride.array()
|
|
7365
7381
|
});
|
|
7366
7382
|
|
|
@@ -7503,13 +7519,13 @@ var ExportersEndpoint = class {
|
|
|
7503
7519
|
};
|
|
7504
7520
|
|
|
7505
7521
|
// src/api/endpoints/codegen/jobs.ts
|
|
7506
|
-
import { z as
|
|
7522
|
+
import { z as z259 } from "zod";
|
|
7507
7523
|
var ExporterJobsEndpoint = class {
|
|
7508
7524
|
constructor(requestExecutor) {
|
|
7509
7525
|
this.requestExecutor = requestExecutor;
|
|
7510
7526
|
}
|
|
7511
7527
|
list(workspaceId) {
|
|
7512
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
7528
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z259.any());
|
|
7513
7529
|
}
|
|
7514
7530
|
get(workspaceId, jobId) {
|
|
7515
7531
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -7567,7 +7583,7 @@ var CodegenEndpoint = class {
|
|
|
7567
7583
|
};
|
|
7568
7584
|
|
|
7569
7585
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
7570
|
-
import { z as
|
|
7586
|
+
import { z as z260 } from "zod";
|
|
7571
7587
|
var BrandsEndpoint = class {
|
|
7572
7588
|
constructor(requestExecutor) {
|
|
7573
7589
|
this.requestExecutor = requestExecutor;
|
|
@@ -7601,7 +7617,7 @@ var BrandsEndpoint = class {
|
|
|
7601
7617
|
});
|
|
7602
7618
|
}
|
|
7603
7619
|
delete(dsId, vId, brandId) {
|
|
7604
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
7620
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z260.any(), {
|
|
7605
7621
|
method: "DELETE"
|
|
7606
7622
|
});
|
|
7607
7623
|
}
|
|
@@ -7656,6 +7672,7 @@ var DesignSystemComponentEndpoint = class {
|
|
|
7656
7672
|
};
|
|
7657
7673
|
|
|
7658
7674
|
// src/api/endpoints/design-system/versions/elements-action.ts
|
|
7675
|
+
import { randomUUID } from "node:crypto";
|
|
7659
7676
|
var ElementsActionEndpoint = class {
|
|
7660
7677
|
constructor(requestExecutor) {
|
|
7661
7678
|
this.requestExecutor = requestExecutor;
|
|
@@ -7685,6 +7702,8 @@ var ElementsActionEndpoint = class {
|
|
|
7685
7702
|
return this.action(dsId, vId, { type: "FigmaNodeRenderAsync", nodes });
|
|
7686
7703
|
}
|
|
7687
7704
|
async action(dsId, vId, input) {
|
|
7705
|
+
if (!input.tId)
|
|
7706
|
+
input.tId = randomUUID();
|
|
7688
7707
|
return this.requestExecutor.json(
|
|
7689
7708
|
`/design-systems/${dsId}/versions/${vId}/elements-action`,
|
|
7690
7709
|
DTOElementActionOutput,
|
|
@@ -7770,7 +7789,7 @@ var ImportJobsEndpoint = class {
|
|
|
7770
7789
|
};
|
|
7771
7790
|
|
|
7772
7791
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
7773
|
-
import { z as
|
|
7792
|
+
import { z as z261 } from "zod";
|
|
7774
7793
|
var OverridesEndpoint = class {
|
|
7775
7794
|
constructor(requestExecutor) {
|
|
7776
7795
|
this.requestExecutor = requestExecutor;
|
|
@@ -7778,7 +7797,7 @@ var OverridesEndpoint = class {
|
|
|
7778
7797
|
create(dsId, versionId, themeId, body) {
|
|
7779
7798
|
return this.requestExecutor.json(
|
|
7780
7799
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
7781
|
-
|
|
7800
|
+
z261.any(),
|
|
7782
7801
|
{
|
|
7783
7802
|
method: "POST",
|
|
7784
7803
|
body
|
|
@@ -7788,7 +7807,7 @@ var OverridesEndpoint = class {
|
|
|
7788
7807
|
};
|
|
7789
7808
|
|
|
7790
7809
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7791
|
-
import { z as
|
|
7810
|
+
import { z as z262 } from "zod";
|
|
7792
7811
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
7793
7812
|
constructor(requestExecutor) {
|
|
7794
7813
|
this.requestExecutor = requestExecutor;
|
|
@@ -7816,7 +7835,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
7816
7835
|
delete(designSystemId, versionId, defId) {
|
|
7817
7836
|
return this.requestExecutor.json(
|
|
7818
7837
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7819
|
-
|
|
7838
|
+
z262.any(),
|
|
7820
7839
|
{ method: "DELETE" }
|
|
7821
7840
|
);
|
|
7822
7841
|
}
|
|
@@ -7855,7 +7874,7 @@ var VersionStatsEndpoint = class {
|
|
|
7855
7874
|
};
|
|
7856
7875
|
|
|
7857
7876
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
7858
|
-
import { z as
|
|
7877
|
+
import { z as z263 } from "zod";
|
|
7859
7878
|
var ThemesEndpoint = class {
|
|
7860
7879
|
constructor(requestExecutor) {
|
|
7861
7880
|
this.requestExecutor = requestExecutor;
|
|
@@ -7878,7 +7897,7 @@ var ThemesEndpoint = class {
|
|
|
7878
7897
|
});
|
|
7879
7898
|
}
|
|
7880
7899
|
delete(dsId, versionId, themeId) {
|
|
7881
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
7900
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z263.any(), {
|
|
7882
7901
|
method: "DELETE"
|
|
7883
7902
|
});
|
|
7884
7903
|
}
|
|
@@ -7997,6 +8016,12 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
7997
8016
|
DTODesignSystemVersionJobStatusResponse
|
|
7998
8017
|
);
|
|
7999
8018
|
}
|
|
8019
|
+
room(dsId, vId) {
|
|
8020
|
+
return this.requestExecutor.json(
|
|
8021
|
+
`/design-systems/${dsId}/versions/${vId}/room`,
|
|
8022
|
+
DTODesignSystemVersionRoomResponse
|
|
8023
|
+
);
|
|
8024
|
+
}
|
|
8000
8025
|
};
|
|
8001
8026
|
|
|
8002
8027
|
// src/api/endpoints/design-system/bff.ts
|
|
@@ -8025,7 +8050,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
8025
8050
|
};
|
|
8026
8051
|
|
|
8027
8052
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8028
|
-
import { z as
|
|
8053
|
+
import { z as z265 } from "zod";
|
|
8029
8054
|
|
|
8030
8055
|
// src/api/endpoints/design-system/members.ts
|
|
8031
8056
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -8046,7 +8071,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
8046
8071
|
};
|
|
8047
8072
|
|
|
8048
8073
|
// src/api/endpoints/design-system/sources.ts
|
|
8049
|
-
import { z as
|
|
8074
|
+
import { z as z264 } from "zod";
|
|
8050
8075
|
var DesignSystemSourcesEndpoint = class {
|
|
8051
8076
|
constructor(requestExecutor) {
|
|
8052
8077
|
this.requestExecutor = requestExecutor;
|
|
@@ -8061,7 +8086,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8061
8086
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
8062
8087
|
}
|
|
8063
8088
|
delete(dsId, sourceId) {
|
|
8064
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
8089
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z264.any(), { method: "DELETE" });
|
|
8065
8090
|
}
|
|
8066
8091
|
figmaImport(dsId, payload) {
|
|
8067
8092
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -8096,7 +8121,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8096
8121
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
8097
8122
|
}
|
|
8098
8123
|
delete(dsId) {
|
|
8099
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
8124
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z265.any(), { method: "DELETE" });
|
|
8100
8125
|
}
|
|
8101
8126
|
update(dsId, body) {
|
|
8102
8127
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -8140,7 +8165,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
8140
8165
|
};
|
|
8141
8166
|
|
|
8142
8167
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
8143
|
-
import { z as
|
|
8168
|
+
import { z as z266 } from "zod";
|
|
8144
8169
|
var WorkspaceMembersEndpoint = class {
|
|
8145
8170
|
constructor(requestExecutor) {
|
|
8146
8171
|
this.requestExecutor = requestExecutor;
|
|
@@ -8157,7 +8182,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8157
8182
|
});
|
|
8158
8183
|
}
|
|
8159
8184
|
invite(workspaceId, body) {
|
|
8160
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
8185
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z266.any(), { method: "POST", body });
|
|
8161
8186
|
}
|
|
8162
8187
|
delete(workspaceId, userId) {
|
|
8163
8188
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -8167,7 +8192,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8167
8192
|
};
|
|
8168
8193
|
|
|
8169
8194
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
8170
|
-
import { z as
|
|
8195
|
+
import { z as z267 } from "zod";
|
|
8171
8196
|
var WorkspacesEndpoint = class {
|
|
8172
8197
|
constructor(requestExecutor) {
|
|
8173
8198
|
this.requestExecutor = requestExecutor;
|
|
@@ -8190,10 +8215,10 @@ var WorkspacesEndpoint = class {
|
|
|
8190
8215
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
8191
8216
|
}
|
|
8192
8217
|
delete(workspaceId) {
|
|
8193
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
8218
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z267.any(), { method: "DELETE" });
|
|
8194
8219
|
}
|
|
8195
8220
|
subscription(workspaceId) {
|
|
8196
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
8221
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z267.any(), { method: "GET" });
|
|
8197
8222
|
}
|
|
8198
8223
|
transferOwnership(workspaceId, body) {
|
|
8199
8224
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -8293,9 +8318,9 @@ ${bodyText}`,
|
|
|
8293
8318
|
|
|
8294
8319
|
// src/api/transport/request-executor.ts
|
|
8295
8320
|
import fetch from "node-fetch";
|
|
8296
|
-
import { z as
|
|
8297
|
-
var ResponseWrapper =
|
|
8298
|
-
result:
|
|
8321
|
+
import { z as z268 } from "zod";
|
|
8322
|
+
var ResponseWrapper = z268.object({
|
|
8323
|
+
result: z268.record(z268.any())
|
|
8299
8324
|
});
|
|
8300
8325
|
var RequestExecutor = class {
|
|
8301
8326
|
constructor(testServerConfig) {
|
|
@@ -8372,28 +8397,28 @@ var SupernovaApiClient = class {
|
|
|
8372
8397
|
};
|
|
8373
8398
|
|
|
8374
8399
|
// src/events/design-system.ts
|
|
8375
|
-
import { z as
|
|
8376
|
-
var DTOEventFigmaNodesRendered =
|
|
8377
|
-
type:
|
|
8378
|
-
designSystemId:
|
|
8379
|
-
versionId:
|
|
8380
|
-
figmaNodePersistentIds:
|
|
8381
|
-
});
|
|
8382
|
-
var DTOEventDataSourcesImported =
|
|
8383
|
-
type:
|
|
8384
|
-
designSystemId:
|
|
8385
|
-
versionId:
|
|
8386
|
-
importJobId:
|
|
8400
|
+
import { z as z269 } from "zod";
|
|
8401
|
+
var DTOEventFigmaNodesRendered = z269.object({
|
|
8402
|
+
type: z269.literal("DesignSystem.FigmaNodesRendered"),
|
|
8403
|
+
designSystemId: z269.string(),
|
|
8404
|
+
versionId: z269.string(),
|
|
8405
|
+
figmaNodePersistentIds: z269.string().array()
|
|
8406
|
+
});
|
|
8407
|
+
var DTOEventDataSourcesImported = z269.object({
|
|
8408
|
+
type: z269.literal("DesignSystem.ImportJobFinished"),
|
|
8409
|
+
designSystemId: z269.string(),
|
|
8410
|
+
versionId: z269.string(),
|
|
8411
|
+
importJobId: z269.string(),
|
|
8387
8412
|
dataSourceType: DataSourceRemoteType,
|
|
8388
|
-
dataSourceIds:
|
|
8413
|
+
dataSourceIds: z269.string().array()
|
|
8389
8414
|
});
|
|
8390
8415
|
|
|
8391
8416
|
// src/events/event.ts
|
|
8392
|
-
import { z as
|
|
8393
|
-
var DTOEvent =
|
|
8417
|
+
import { z as z270 } from "zod";
|
|
8418
|
+
var DTOEvent = z270.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
8394
8419
|
|
|
8395
8420
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8396
|
-
import { z as
|
|
8421
|
+
import { z as z271 } from "zod";
|
|
8397
8422
|
|
|
8398
8423
|
// src/yjs/version-room/base.ts
|
|
8399
8424
|
var VersionRoomBaseYDoc = class {
|
|
@@ -8549,7 +8574,9 @@ var VersionRoomBaseYDoc = class {
|
|
|
8549
8574
|
get documentationPageContentHashesYMap() {
|
|
8550
8575
|
return this.yDoc.getMap("documentationPageHashes");
|
|
8551
8576
|
}
|
|
8577
|
+
//
|
|
8552
8578
|
// Approval states
|
|
8579
|
+
//
|
|
8553
8580
|
updateApprovalStates(updates) {
|
|
8554
8581
|
this.setObjects(this.documentationPageApprovalsMap, updates);
|
|
8555
8582
|
}
|
|
@@ -8562,6 +8589,22 @@ var VersionRoomBaseYDoc = class {
|
|
|
8562
8589
|
get documentationPageApprovalsMap() {
|
|
8563
8590
|
return this.yDoc.getMap("documentationPageApprovals");
|
|
8564
8591
|
}
|
|
8592
|
+
//
|
|
8593
|
+
// Executed transactions
|
|
8594
|
+
//
|
|
8595
|
+
updateExecutedTransactionIds(transactionIds) {
|
|
8596
|
+
transactionIds = Array.from(new Set(transactionIds));
|
|
8597
|
+
if (!transactionIds.length)
|
|
8598
|
+
return;
|
|
8599
|
+
const array = this.executedTransactionIdsArray;
|
|
8600
|
+
array.push(transactionIds);
|
|
8601
|
+
if (array.length > 100) {
|
|
8602
|
+
array.delete(0, array.length - 100);
|
|
8603
|
+
}
|
|
8604
|
+
}
|
|
8605
|
+
get executedTransactionIdsArray() {
|
|
8606
|
+
return this.yDoc.getArray("executedTransactionIds");
|
|
8607
|
+
}
|
|
8565
8608
|
};
|
|
8566
8609
|
|
|
8567
8610
|
// src/yjs/version-room/utils.ts
|
|
@@ -8936,24 +8979,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8936
8979
|
};
|
|
8937
8980
|
|
|
8938
8981
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8939
|
-
var DocumentationHierarchySettings =
|
|
8940
|
-
routingVersion:
|
|
8941
|
-
isDraftFeatureAdopted:
|
|
8942
|
-
isApprovalFeatureEnabled:
|
|
8943
|
-
approvalRequiredForPublishing:
|
|
8982
|
+
var DocumentationHierarchySettings = z271.object({
|
|
8983
|
+
routingVersion: z271.string(),
|
|
8984
|
+
isDraftFeatureAdopted: z271.boolean(),
|
|
8985
|
+
isApprovalFeatureEnabled: z271.boolean(),
|
|
8986
|
+
approvalRequiredForPublishing: z271.boolean()
|
|
8944
8987
|
});
|
|
8945
8988
|
function yjsToDocumentationHierarchy(doc) {
|
|
8946
8989
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
8947
8990
|
}
|
|
8948
8991
|
|
|
8949
8992
|
// src/yjs/design-system-content/item-configuration.ts
|
|
8950
|
-
import { z as
|
|
8951
|
-
var DTODocumentationPageRoomHeaderData =
|
|
8952
|
-
title:
|
|
8993
|
+
import { z as z272 } from "zod";
|
|
8994
|
+
var DTODocumentationPageRoomHeaderData = z272.object({
|
|
8995
|
+
title: z272.string(),
|
|
8953
8996
|
configuration: DTODocumentationItemConfigurationV2
|
|
8954
8997
|
});
|
|
8955
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
8956
|
-
title:
|
|
8998
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z272.object({
|
|
8999
|
+
title: z272.string().optional(),
|
|
8957
9000
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
8958
9001
|
});
|
|
8959
9002
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -9004,7 +9047,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
9004
9047
|
header: rawHeader
|
|
9005
9048
|
};
|
|
9006
9049
|
return {
|
|
9007
|
-
title:
|
|
9050
|
+
title: z272.string().parse(title),
|
|
9008
9051
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
9009
9052
|
};
|
|
9010
9053
|
}
|
|
@@ -9014,9 +9057,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
9014
9057
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
9015
9058
|
|
|
9016
9059
|
// src/yjs/docs-editor/model/page.ts
|
|
9017
|
-
import { z as
|
|
9018
|
-
var DocumentationPageEditorModel =
|
|
9019
|
-
blocks:
|
|
9060
|
+
import { z as z273 } from "zod";
|
|
9061
|
+
var DocumentationPageEditorModel = z273.object({
|
|
9062
|
+
blocks: z273.array(DocumentationPageContentItem)
|
|
9020
9063
|
});
|
|
9021
9064
|
|
|
9022
9065
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -12575,7 +12618,7 @@ var blocks = [
|
|
|
12575
12618
|
|
|
12576
12619
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
12577
12620
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
12578
|
-
import { z as
|
|
12621
|
+
import { z as z274 } from "zod";
|
|
12579
12622
|
function yDocToPage(yDoc, definitions) {
|
|
12580
12623
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
12581
12624
|
}
|
|
@@ -12655,7 +12698,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
12655
12698
|
return null;
|
|
12656
12699
|
return {
|
|
12657
12700
|
id,
|
|
12658
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
12701
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z274.string()) ?? "",
|
|
12659
12702
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
12660
12703
|
};
|
|
12661
12704
|
}
|
|
@@ -12690,7 +12733,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
12690
12733
|
});
|
|
12691
12734
|
}
|
|
12692
12735
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
12693
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
12736
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z274.string());
|
|
12694
12737
|
if (!definitionId) {
|
|
12695
12738
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
12696
12739
|
return [];
|
|
@@ -12732,7 +12775,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
12732
12775
|
if (!id)
|
|
12733
12776
|
return null;
|
|
12734
12777
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12735
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
12778
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z274.string().optional()));
|
|
12736
12779
|
return {
|
|
12737
12780
|
id,
|
|
12738
12781
|
type: "Block",
|
|
@@ -12860,10 +12903,10 @@ function parseRichTextAttribute(mark) {
|
|
|
12860
12903
|
return null;
|
|
12861
12904
|
}
|
|
12862
12905
|
function parseProsemirrorLink(mark) {
|
|
12863
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
12906
|
+
const href = getProsemirrorAttribute(mark, "href", z274.string().optional());
|
|
12864
12907
|
if (!href)
|
|
12865
12908
|
return null;
|
|
12866
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
12909
|
+
const target = getProsemirrorAttribute(mark, "target", z274.string().optional());
|
|
12867
12910
|
const openInNewTab = target === "_blank";
|
|
12868
12911
|
if (href.startsWith("@")) {
|
|
12869
12912
|
return {
|
|
@@ -12882,10 +12925,10 @@ function parseProsemirrorLink(mark) {
|
|
|
12882
12925
|
}
|
|
12883
12926
|
}
|
|
12884
12927
|
function parseProsemirrorCommentHighlight(mark) {
|
|
12885
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
12928
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z274.string().optional());
|
|
12886
12929
|
if (!highlightId)
|
|
12887
12930
|
return null;
|
|
12888
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
12931
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z274.boolean().optional()) ?? false;
|
|
12889
12932
|
return {
|
|
12890
12933
|
type: "Comment",
|
|
12891
12934
|
commentHighlightId: highlightId,
|
|
@@ -12897,7 +12940,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
12897
12940
|
if (!id)
|
|
12898
12941
|
return null;
|
|
12899
12942
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12900
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
12943
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z274.boolean().optional()) !== false;
|
|
12901
12944
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
12902
12945
|
if (!tableChild) {
|
|
12903
12946
|
return emptyTable(id, variantId, 0);
|
|
@@ -12944,9 +12987,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
12944
12987
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
12945
12988
|
if (!id)
|
|
12946
12989
|
return null;
|
|
12947
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
12990
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z274.string().optional());
|
|
12948
12991
|
let columnWidth;
|
|
12949
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
12992
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z274.array(z274.number()).nullish());
|
|
12950
12993
|
if (columnWidthArray) {
|
|
12951
12994
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
12952
12995
|
}
|
|
@@ -12984,7 +13027,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
12984
13027
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
12985
13028
|
};
|
|
12986
13029
|
case "image":
|
|
12987
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13030
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z274.string());
|
|
12988
13031
|
if (!items)
|
|
12989
13032
|
return null;
|
|
12990
13033
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -13104,7 +13147,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
13104
13147
|
);
|
|
13105
13148
|
}
|
|
13106
13149
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
13107
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13150
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z274.string());
|
|
13108
13151
|
if (!itemsString)
|
|
13109
13152
|
return null;
|
|
13110
13153
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -13116,18 +13159,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
13116
13159
|
}
|
|
13117
13160
|
function parseAppearance(prosemirrorNode) {
|
|
13118
13161
|
let appearance = {};
|
|
13119
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
13162
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z274.string().optional());
|
|
13120
13163
|
if (rawAppearanceString) {
|
|
13121
13164
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
13122
13165
|
if (parsedAppearance.success) {
|
|
13123
13166
|
appearance = parsedAppearance.data;
|
|
13124
13167
|
}
|
|
13125
13168
|
}
|
|
13126
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
13169
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z274.number().optional());
|
|
13127
13170
|
if (columns) {
|
|
13128
13171
|
appearance.numberOfColumns = columns;
|
|
13129
13172
|
}
|
|
13130
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
13173
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z274.string().optional());
|
|
13131
13174
|
if (backgroundColor) {
|
|
13132
13175
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
13133
13176
|
if (parsedColor.success) {
|
|
@@ -13222,13 +13265,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
13222
13265
|
}
|
|
13223
13266
|
}
|
|
13224
13267
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
13225
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
13268
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z274.string());
|
|
13226
13269
|
if (!id)
|
|
13227
13270
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
13228
13271
|
return id;
|
|
13229
13272
|
}
|
|
13230
13273
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
13231
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
13274
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z274.string()));
|
|
13232
13275
|
}
|
|
13233
13276
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
13234
13277
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -13275,6 +13318,7 @@ var BackendVersionRoomYDoc = class {
|
|
|
13275
13318
|
transaction.pageHashesToUpdate && yDoc.updateDocumentationPageContentHashes(transaction.pageHashesToUpdate);
|
|
13276
13319
|
transaction.pageApprovals && yDoc.updateApprovalStates(transaction.pageApprovals);
|
|
13277
13320
|
transaction.pageApprovalIdsToDelete && yDoc.removeApprovalStates(transaction.pageApprovalIdsToDelete);
|
|
13321
|
+
transaction.executedTransactionIds && yDoc.updateExecutedTransactionIds(transaction.executedTransactionIds);
|
|
13278
13322
|
});
|
|
13279
13323
|
}
|
|
13280
13324
|
getDocumentationPageContentHashes() {
|
|
@@ -13347,6 +13391,8 @@ export {
|
|
|
13347
13391
|
DTODesignSystemVersionGetResponse,
|
|
13348
13392
|
DTODesignSystemVersionJobStatusResponse,
|
|
13349
13393
|
DTODesignSystemVersionJobsResponse,
|
|
13394
|
+
DTODesignSystemVersionRoom,
|
|
13395
|
+
DTODesignSystemVersionRoomResponse,
|
|
13350
13396
|
DTODesignSystemVersionStats,
|
|
13351
13397
|
DTODesignSystemVersionStatsQuery,
|
|
13352
13398
|
DTODesignSystemVersionsListResponse,
|
|
@@ -13576,6 +13622,7 @@ export {
|
|
|
13576
13622
|
DTOUserProfileUpdatePayload,
|
|
13577
13623
|
DTOUserProfileUpdateResponse,
|
|
13578
13624
|
DTOUserSource,
|
|
13625
|
+
DTOUserTheme,
|
|
13579
13626
|
DTOUserWorkspaceMembership,
|
|
13580
13627
|
DTOUserWorkspaceMembershipsResponse,
|
|
13581
13628
|
DTOWorkspace,
|