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