@supernova-studio/client 0.58.10 → 0.58.11
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 +821 -34
- package/dist/index.d.ts +821 -34
- package/dist/index.js +66 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +801 -752
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/brand.ts +23 -1
- package/src/api/dto/design-systems/component.ts +32 -2
- package/src/api/endpoints/design-system/versions/brands.ts +16 -3
- package/src/api/endpoints/design-system/versions/ds-components.ts +20 -7
- package/src/api/payloads/design-systems/index.ts +0 -1
- package/src/api/transport/request-executor-error.ts +1 -1
- package/src/api/payloads/design-systems/brand.ts +0 -12
package/dist/index.mjs
CHANGED
|
@@ -5153,7 +5153,7 @@ var DTOPagination = z179.object({
|
|
|
5153
5153
|
});
|
|
5154
5154
|
|
|
5155
5155
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5156
|
-
import { z as
|
|
5156
|
+
import { z as z213 } from "zod";
|
|
5157
5157
|
|
|
5158
5158
|
// src/api/dto/design-systems/brand.ts
|
|
5159
5159
|
import { z as z180 } from "zod";
|
|
@@ -5168,14 +5168,37 @@ var DTOBrandCreateResponse = z180.object({
|
|
|
5168
5168
|
brand: DTOBrand
|
|
5169
5169
|
});
|
|
5170
5170
|
var DTOBrandsListResponse = z180.object({ brands: z180.array(DTOBrand) });
|
|
5171
|
+
var DTOBrandCreatePayload = z180.object({
|
|
5172
|
+
persistentId: z180.string().uuid(),
|
|
5173
|
+
meta: DTOObjectMeta
|
|
5174
|
+
});
|
|
5175
|
+
var DTOBrandUpdatePayload = z180.object({
|
|
5176
|
+
meta: DTOObjectMeta.optional(),
|
|
5177
|
+
persistentId: z180.string()
|
|
5178
|
+
});
|
|
5171
5179
|
|
|
5172
5180
|
// src/api/dto/design-systems/component.ts
|
|
5173
5181
|
import { z as z181 } from "zod";
|
|
5182
|
+
var DTODesignSystemComponent = z181.object({
|
|
5183
|
+
id: z181.string(),
|
|
5184
|
+
persistentId: z181.string(),
|
|
5185
|
+
designSystemVersionId: z181.string(),
|
|
5186
|
+
brandId: z181.string(),
|
|
5187
|
+
meta: DTOObjectMeta,
|
|
5188
|
+
createdAt: z181.coerce.date(),
|
|
5189
|
+
updatedAt: z181.coerce.date()
|
|
5190
|
+
});
|
|
5191
|
+
var DTODesignSystemComponentResponse = z181.object({
|
|
5192
|
+
designSystemComponent: DTODesignSystemComponent
|
|
5193
|
+
});
|
|
5194
|
+
var DTODesignSystemComponentListResponse = z181.object({
|
|
5195
|
+
designSystemComponents: DTODesignSystemComponent.array()
|
|
5196
|
+
});
|
|
5174
5197
|
var DTODesignSystemComponentCreateInput = z181.object({
|
|
5175
5198
|
brandId: z181.string(),
|
|
5176
5199
|
// Persistent ID,
|
|
5177
5200
|
persistentId: z181.string(),
|
|
5178
|
-
meta:
|
|
5201
|
+
meta: DTOObjectMeta
|
|
5179
5202
|
});
|
|
5180
5203
|
|
|
5181
5204
|
// src/api/dto/design-systems/contact.ts
|
|
@@ -5570,20 +5593,10 @@ var DTODesignSystemVersionStatsQuery = z193.object({
|
|
|
5570
5593
|
});
|
|
5571
5594
|
|
|
5572
5595
|
// src/api/dto/design-systems/version.ts
|
|
5573
|
-
import { z as
|
|
5574
|
-
|
|
5575
|
-
// src/api/payloads/design-systems/brand.ts
|
|
5576
|
-
import { z as z194 } from "zod";
|
|
5577
|
-
var DTOCreateBrandInput = z194.object({
|
|
5578
|
-
persistentId: z194.string().uuid(),
|
|
5579
|
-
meta: z194.object({
|
|
5580
|
-
name: z194.string(),
|
|
5581
|
-
description: z194.string()
|
|
5582
|
-
})
|
|
5583
|
-
});
|
|
5596
|
+
import { z as z205 } from "zod";
|
|
5584
5597
|
|
|
5585
5598
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5586
|
-
import { z as
|
|
5599
|
+
import { z as z194 } from "zod";
|
|
5587
5600
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5588
5601
|
id: true,
|
|
5589
5602
|
workspaceId: true,
|
|
@@ -5595,40 +5608,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5595
5608
|
}).extend({
|
|
5596
5609
|
meta: ObjectMeta.partial().optional()
|
|
5597
5610
|
});
|
|
5598
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5611
|
+
var DTODesignSystemUpdateAccessModeInput = z194.object({
|
|
5599
5612
|
accessMode: DesignSystemAccessMode,
|
|
5600
|
-
retain:
|
|
5601
|
-
userIds:
|
|
5602
|
-
inviteIds:
|
|
5613
|
+
retain: z194.object({
|
|
5614
|
+
userIds: z194.string().array(),
|
|
5615
|
+
inviteIds: z194.string().array()
|
|
5603
5616
|
}).optional()
|
|
5604
5617
|
});
|
|
5605
5618
|
|
|
5606
5619
|
// src/api/payloads/design-systems/version.ts
|
|
5607
|
-
import { z as
|
|
5608
|
-
var ObjectMeta2 =
|
|
5609
|
-
name:
|
|
5610
|
-
description:
|
|
5620
|
+
import { z as z195 } from "zod";
|
|
5621
|
+
var ObjectMeta2 = z195.object({
|
|
5622
|
+
name: z195.string().max(150).optional(),
|
|
5623
|
+
description: z195.string().max(2e3).optional()
|
|
5611
5624
|
});
|
|
5612
5625
|
function validateDesignSystemVersion(version) {
|
|
5613
5626
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5614
5627
|
return urlCompliantRegex.test(version);
|
|
5615
5628
|
}
|
|
5616
|
-
var DTOCreateVersionInput =
|
|
5629
|
+
var DTOCreateVersionInput = z195.object({
|
|
5617
5630
|
meta: ObjectMeta2,
|
|
5618
|
-
version:
|
|
5631
|
+
version: z195.string().refine(validateDesignSystemVersion, {
|
|
5619
5632
|
message: "Invalid semantic versioning format"
|
|
5620
5633
|
}),
|
|
5621
|
-
changeLog:
|
|
5634
|
+
changeLog: z195.string().optional()
|
|
5622
5635
|
});
|
|
5623
|
-
var DTOUpdateVersionInput =
|
|
5636
|
+
var DTOUpdateVersionInput = z195.object({
|
|
5624
5637
|
meta: ObjectMeta2,
|
|
5625
|
-
version:
|
|
5638
|
+
version: z195.string(),
|
|
5626
5639
|
// required for PUT, but not editable
|
|
5627
|
-
changeLog:
|
|
5640
|
+
changeLog: z195.string()
|
|
5628
5641
|
});
|
|
5629
5642
|
|
|
5630
5643
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5631
|
-
import { z as
|
|
5644
|
+
import { z as z196 } from "zod";
|
|
5632
5645
|
|
|
5633
5646
|
// src/api/dto/documentation/block-definition.ts
|
|
5634
5647
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5640,63 +5653,63 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5640
5653
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5641
5654
|
|
|
5642
5655
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5643
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5644
|
-
definitions:
|
|
5656
|
+
var DTOGetBlockDefinitionsOutput = z196.object({
|
|
5657
|
+
definitions: z196.array(DTOPageBlockDefinition)
|
|
5645
5658
|
});
|
|
5646
5659
|
|
|
5647
5660
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5648
|
-
import { z as
|
|
5649
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5650
|
-
environment:
|
|
5661
|
+
import { z as z197 } from "zod";
|
|
5662
|
+
var DTODocumentationPublishTypeQueryParams = z197.object({
|
|
5663
|
+
environment: z197.enum(["Live", "Preview"])
|
|
5651
5664
|
});
|
|
5652
5665
|
|
|
5653
5666
|
// src/api/payloads/export/pipeline.ts
|
|
5654
|
-
import { z as
|
|
5667
|
+
import { z as z199 } from "zod";
|
|
5655
5668
|
|
|
5656
5669
|
// src/api/dto/export/exporter-property.ts
|
|
5657
|
-
import { z as
|
|
5658
|
-
var PrimitiveValue =
|
|
5659
|
-
var ArrayValue =
|
|
5660
|
-
var ObjectValue =
|
|
5670
|
+
import { z as z198 } from "zod";
|
|
5671
|
+
var PrimitiveValue = z198.number().or(z198.boolean()).or(z198.string());
|
|
5672
|
+
var ArrayValue = z198.array(z198.string());
|
|
5673
|
+
var ObjectValue = z198.record(z198.string());
|
|
5661
5674
|
var DTOExporterPropertyDefinitionValue = PrimitiveValue.or(ArrayValue).or(ObjectValue);
|
|
5662
|
-
var DTOExporterPropertyType =
|
|
5663
|
-
var PropertyDefinitionBase =
|
|
5664
|
-
key:
|
|
5665
|
-
title:
|
|
5666
|
-
description:
|
|
5675
|
+
var DTOExporterPropertyType = z198.enum(["Enum", "Boolean", "String", "Number", "Array", "Object"]);
|
|
5676
|
+
var PropertyDefinitionBase = z198.object({
|
|
5677
|
+
key: z198.string(),
|
|
5678
|
+
title: z198.string(),
|
|
5679
|
+
description: z198.string()
|
|
5667
5680
|
});
|
|
5668
5681
|
var DTOExporterPropertyDefinitionEnum = PropertyDefinitionBase.extend({
|
|
5669
|
-
type:
|
|
5670
|
-
options:
|
|
5671
|
-
default:
|
|
5682
|
+
type: z198.literal(DTOExporterPropertyType.Enum.Enum),
|
|
5683
|
+
options: z198.string().array(),
|
|
5684
|
+
default: z198.string()
|
|
5672
5685
|
});
|
|
5673
5686
|
var DTOExporterPropertyDefinitionBoolean = PropertyDefinitionBase.extend({
|
|
5674
|
-
type:
|
|
5675
|
-
default:
|
|
5687
|
+
type: z198.literal(DTOExporterPropertyType.Enum.Boolean),
|
|
5688
|
+
default: z198.boolean()
|
|
5676
5689
|
});
|
|
5677
5690
|
var DTOExporterPropertyDefinitionString = PropertyDefinitionBase.extend({
|
|
5678
|
-
type:
|
|
5679
|
-
default:
|
|
5691
|
+
type: z198.literal(DTOExporterPropertyType.Enum.String),
|
|
5692
|
+
default: z198.string()
|
|
5680
5693
|
});
|
|
5681
5694
|
var DTOExporterPropertyDefinitionNumber = PropertyDefinitionBase.extend({
|
|
5682
|
-
type:
|
|
5683
|
-
default:
|
|
5695
|
+
type: z198.literal(DTOExporterPropertyType.Enum.Number),
|
|
5696
|
+
default: z198.number()
|
|
5684
5697
|
});
|
|
5685
5698
|
var DTOExporterPropertyDefinitionArray = PropertyDefinitionBase.extend({
|
|
5686
|
-
type:
|
|
5699
|
+
type: z198.literal(DTOExporterPropertyType.Enum.Array),
|
|
5687
5700
|
default: ArrayValue
|
|
5688
5701
|
});
|
|
5689
5702
|
var DTOExporterPropertyDefinitionObject = PropertyDefinitionBase.extend({
|
|
5690
|
-
type:
|
|
5703
|
+
type: z198.literal(DTOExporterPropertyType.Enum.Object),
|
|
5691
5704
|
default: ObjectValue,
|
|
5692
|
-
allowedKeys:
|
|
5693
|
-
options:
|
|
5705
|
+
allowedKeys: z198.object({
|
|
5706
|
+
options: z198.string().array()
|
|
5694
5707
|
}).optional(),
|
|
5695
|
-
allowedValues:
|
|
5696
|
-
options:
|
|
5708
|
+
allowedValues: z198.object({
|
|
5709
|
+
options: z198.string().array()
|
|
5697
5710
|
}).optional()
|
|
5698
5711
|
});
|
|
5699
|
-
var DTOExporterPropertyDefinition =
|
|
5712
|
+
var DTOExporterPropertyDefinition = z198.discriminatedUnion("type", [
|
|
5700
5713
|
DTOExporterPropertyDefinitionEnum,
|
|
5701
5714
|
DTOExporterPropertyDefinitionBoolean,
|
|
5702
5715
|
DTOExporterPropertyDefinitionString,
|
|
@@ -5704,55 +5717,55 @@ var DTOExporterPropertyDefinition = z199.discriminatedUnion("type", [
|
|
|
5704
5717
|
DTOExporterPropertyDefinitionArray,
|
|
5705
5718
|
DTOExporterPropertyDefinitionObject
|
|
5706
5719
|
]);
|
|
5707
|
-
var DTOExporterPropertyDefinitionsResponse =
|
|
5720
|
+
var DTOExporterPropertyDefinitionsResponse = z198.object({
|
|
5708
5721
|
properties: DTOExporterPropertyDefinition.array()
|
|
5709
5722
|
});
|
|
5710
|
-
var DTOExporterPropertyDefinitionValueMap =
|
|
5723
|
+
var DTOExporterPropertyDefinitionValueMap = z198.record(DTOExporterPropertyDefinitionValue);
|
|
5711
5724
|
|
|
5712
5725
|
// src/api/payloads/export/pipeline.ts
|
|
5713
|
-
var DTOPipelineCreateBody =
|
|
5714
|
-
name:
|
|
5715
|
-
exporterId:
|
|
5716
|
-
designSystemId:
|
|
5717
|
-
isEnabled:
|
|
5726
|
+
var DTOPipelineCreateBody = z199.object({
|
|
5727
|
+
name: z199.string(),
|
|
5728
|
+
exporterId: z199.string(),
|
|
5729
|
+
designSystemId: z199.string(),
|
|
5730
|
+
isEnabled: z199.boolean(),
|
|
5718
5731
|
eventType: PipelineEventType,
|
|
5719
|
-
brandPersistentId:
|
|
5720
|
-
themePersistentId:
|
|
5721
|
-
themePersistentIds:
|
|
5732
|
+
brandPersistentId: z199.string().optional(),
|
|
5733
|
+
themePersistentId: z199.string().optional(),
|
|
5734
|
+
themePersistentIds: z199.string().array().optional(),
|
|
5722
5735
|
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
5723
5736
|
destination: PipelineDestinationType.optional(),
|
|
5724
5737
|
gitQuery: GitObjectsQuery,
|
|
5725
|
-
destinations:
|
|
5738
|
+
destinations: z199.object({
|
|
5726
5739
|
s3: ExporterDestinationS3.nullish(),
|
|
5727
5740
|
azure: ExporterDestinationAzure.nullish(),
|
|
5728
5741
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5729
5742
|
github: ExporterDestinationGithub.nullish(),
|
|
5730
5743
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5731
5744
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5732
|
-
webhookUrl:
|
|
5745
|
+
webhookUrl: z199.string().nullish()
|
|
5733
5746
|
})
|
|
5734
5747
|
});
|
|
5735
5748
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5736
|
-
id:
|
|
5749
|
+
id: z199.string()
|
|
5737
5750
|
});
|
|
5738
|
-
var DTOPipelineTriggerBody =
|
|
5739
|
-
designSystemVersionId:
|
|
5751
|
+
var DTOPipelineTriggerBody = z199.object({
|
|
5752
|
+
designSystemVersionId: z199.string()
|
|
5740
5753
|
});
|
|
5741
5754
|
|
|
5742
5755
|
// src/api/payloads/liveblocks/auth.ts
|
|
5743
|
-
import { z as
|
|
5744
|
-
var DTOLiveblocksAuthRequest =
|
|
5745
|
-
room:
|
|
5756
|
+
import { z as z200 } from "zod";
|
|
5757
|
+
var DTOLiveblocksAuthRequest = z200.object({
|
|
5758
|
+
room: z200.string().optional()
|
|
5746
5759
|
});
|
|
5747
5760
|
|
|
5748
5761
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5749
|
-
import { z as
|
|
5750
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5762
|
+
import { z as z201 } from "zod";
|
|
5763
|
+
var DTOUpdateUserNotificationSettingsPayload = z201.object({
|
|
5751
5764
|
notificationSettings: UserNotificationSettings
|
|
5752
5765
|
});
|
|
5753
|
-
var DTOUserNotificationSettingsResponse =
|
|
5754
|
-
userId:
|
|
5755
|
-
workspaceId:
|
|
5766
|
+
var DTOUserNotificationSettingsResponse = z201.object({
|
|
5767
|
+
userId: z201.string(),
|
|
5768
|
+
workspaceId: z201.string(),
|
|
5756
5769
|
notificationSettings: UserNotificationSettings
|
|
5757
5770
|
});
|
|
5758
5771
|
|
|
@@ -5760,13 +5773,13 @@ var DTOUserNotificationSettingsResponse = z202.object({
|
|
|
5760
5773
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5761
5774
|
|
|
5762
5775
|
// src/api/payloads/workspaces/transfer-ownership.ts
|
|
5763
|
-
import { z as
|
|
5764
|
-
var DTOTransferOwnershipPayload =
|
|
5765
|
-
newOwnerId:
|
|
5776
|
+
import { z as z202 } from "zod";
|
|
5777
|
+
var DTOTransferOwnershipPayload = z202.object({
|
|
5778
|
+
newOwnerId: z202.string()
|
|
5766
5779
|
});
|
|
5767
5780
|
|
|
5768
5781
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5769
|
-
import { z as
|
|
5782
|
+
import { z as z203 } from "zod";
|
|
5770
5783
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5771
5784
|
function validateSsoPayload(ssoPayload) {
|
|
5772
5785
|
const keys = [];
|
|
@@ -5789,21 +5802,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5789
5802
|
keys
|
|
5790
5803
|
};
|
|
5791
5804
|
}
|
|
5792
|
-
var NpmRegistryInput =
|
|
5793
|
-
enabledScopes:
|
|
5794
|
-
customRegistryUrl:
|
|
5795
|
-
bypassProxy:
|
|
5796
|
-
npmProxyRegistryConfigId:
|
|
5797
|
-
npmProxyVersion:
|
|
5798
|
-
registryType:
|
|
5799
|
-
authType:
|
|
5800
|
-
authHeaderName:
|
|
5801
|
-
authHeaderValue:
|
|
5802
|
-
accessToken:
|
|
5803
|
-
username:
|
|
5804
|
-
password:
|
|
5805
|
-
});
|
|
5806
|
-
var WorkspaceConfigurationPayload =
|
|
5805
|
+
var NpmRegistryInput = z203.object({
|
|
5806
|
+
enabledScopes: z203.array(z203.string()),
|
|
5807
|
+
customRegistryUrl: z203.string().optional(),
|
|
5808
|
+
bypassProxy: z203.boolean().optional(),
|
|
5809
|
+
npmProxyRegistryConfigId: z203.string().optional(),
|
|
5810
|
+
npmProxyVersion: z203.number().optional(),
|
|
5811
|
+
registryType: z203.string(),
|
|
5812
|
+
authType: z203.string(),
|
|
5813
|
+
authHeaderName: z203.string(),
|
|
5814
|
+
authHeaderValue: z203.string(),
|
|
5815
|
+
accessToken: z203.string(),
|
|
5816
|
+
username: z203.string(),
|
|
5817
|
+
password: z203.string()
|
|
5818
|
+
});
|
|
5819
|
+
var WorkspaceConfigurationPayload = z203.object({
|
|
5807
5820
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5808
5821
|
sso: SsoProvider.partial().optional(),
|
|
5809
5822
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5811,218 +5824,218 @@ var WorkspaceConfigurationPayload = z204.object({
|
|
|
5811
5824
|
});
|
|
5812
5825
|
|
|
5813
5826
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5814
|
-
import { z as
|
|
5815
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5827
|
+
import { z as z204 } from "zod";
|
|
5828
|
+
var DTOWorkspaceIntegrationOauthInput = z204.object({
|
|
5816
5829
|
type: IntegrationType
|
|
5817
5830
|
});
|
|
5818
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5819
|
-
userId:
|
|
5831
|
+
var DTOWorkspaceIntegrationPATInput = z204.object({
|
|
5832
|
+
userId: z204.string(),
|
|
5820
5833
|
type: IntegrationType,
|
|
5821
5834
|
token: IntegrationToken
|
|
5822
5835
|
});
|
|
5823
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5824
|
-
organization:
|
|
5836
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z204.object({
|
|
5837
|
+
organization: z204.string().optional(),
|
|
5825
5838
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5826
|
-
project:
|
|
5839
|
+
project: z204.string().optional(),
|
|
5827
5840
|
// Only for Bitbucket and Azure
|
|
5828
|
-
repository:
|
|
5841
|
+
repository: z204.string().optional(),
|
|
5829
5842
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5830
|
-
branch:
|
|
5843
|
+
branch: z204.string().optional(),
|
|
5831
5844
|
// For all providers, useful for PR creations.
|
|
5832
|
-
user:
|
|
5845
|
+
user: z204.string().optional()
|
|
5833
5846
|
// Only for Gitlab User Repositories
|
|
5834
5847
|
});
|
|
5835
5848
|
|
|
5836
5849
|
// src/api/dto/design-systems/version.ts
|
|
5837
|
-
var DTODesignSystemVersion =
|
|
5838
|
-
id:
|
|
5839
|
-
createdAt:
|
|
5850
|
+
var DTODesignSystemVersion = z205.object({
|
|
5851
|
+
id: z205.string(),
|
|
5852
|
+
createdAt: z205.coerce.date(),
|
|
5840
5853
|
meta: ObjectMeta,
|
|
5841
|
-
version:
|
|
5842
|
-
isReadonly:
|
|
5843
|
-
changeLog:
|
|
5844
|
-
designSystemId:
|
|
5854
|
+
version: z205.string(),
|
|
5855
|
+
isReadonly: z205.boolean(),
|
|
5856
|
+
changeLog: z205.string(),
|
|
5857
|
+
designSystemId: z205.string()
|
|
5845
5858
|
});
|
|
5846
|
-
var DTODesignSystemVersionsListResponse =
|
|
5847
|
-
designSystemVersions:
|
|
5859
|
+
var DTODesignSystemVersionsListResponse = z205.object({
|
|
5860
|
+
designSystemVersions: z205.array(DTODesignSystemVersion)
|
|
5848
5861
|
});
|
|
5849
|
-
var DTODesignSystemVersionGetResponse =
|
|
5862
|
+
var DTODesignSystemVersionGetResponse = z205.object({
|
|
5850
5863
|
designSystemVersion: DTODesignSystemVersion
|
|
5851
5864
|
});
|
|
5852
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5865
|
+
var DTODesignSystemVersionCreationResponse = z205.object({
|
|
5853
5866
|
meta: ObjectMeta,
|
|
5854
|
-
version:
|
|
5855
|
-
changeLog:
|
|
5856
|
-
isReadOnly:
|
|
5857
|
-
designSystemId:
|
|
5858
|
-
jobId:
|
|
5859
|
-
});
|
|
5860
|
-
var VersionSQSPayload =
|
|
5861
|
-
jobId:
|
|
5862
|
-
designSystemId:
|
|
5867
|
+
version: z205.string(),
|
|
5868
|
+
changeLog: z205.string(),
|
|
5869
|
+
isReadOnly: z205.boolean(),
|
|
5870
|
+
designSystemId: z205.string(),
|
|
5871
|
+
jobId: z205.string()
|
|
5872
|
+
});
|
|
5873
|
+
var VersionSQSPayload = z205.object({
|
|
5874
|
+
jobId: z205.string(),
|
|
5875
|
+
designSystemId: z205.string(),
|
|
5863
5876
|
input: DTOCreateVersionInput
|
|
5864
5877
|
});
|
|
5865
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5866
|
-
jobs:
|
|
5878
|
+
var DTODesignSystemVersionJobsResponse = z205.object({
|
|
5879
|
+
jobs: z205.array(VersionCreationJob)
|
|
5867
5880
|
});
|
|
5868
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5881
|
+
var DTODesignSystemVersionJobStatusResponse = z205.object({
|
|
5869
5882
|
job: VersionCreationJob
|
|
5870
5883
|
});
|
|
5871
5884
|
|
|
5872
5885
|
// src/api/dto/design-systems/view.ts
|
|
5873
|
-
import { z as
|
|
5874
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5875
|
-
id:
|
|
5876
|
-
persistentId:
|
|
5877
|
-
width:
|
|
5886
|
+
import { z as z206 } from "zod";
|
|
5887
|
+
var DTOElementViewColumnSharedAttributes = z206.object({
|
|
5888
|
+
id: z206.string(),
|
|
5889
|
+
persistentId: z206.string(),
|
|
5890
|
+
width: z206.number()
|
|
5878
5891
|
});
|
|
5879
5892
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5880
|
-
type:
|
|
5893
|
+
type: z206.literal("BaseProperty"),
|
|
5881
5894
|
basePropertyType: ElementViewBaseColumnType
|
|
5882
5895
|
});
|
|
5883
5896
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5884
|
-
type:
|
|
5885
|
-
propertyDefinitionId:
|
|
5897
|
+
type: z206.literal("PropertyDefinition"),
|
|
5898
|
+
propertyDefinitionId: z206.string()
|
|
5886
5899
|
});
|
|
5887
5900
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5888
|
-
type:
|
|
5889
|
-
themeId:
|
|
5901
|
+
type: z206.literal("Theme"),
|
|
5902
|
+
themeId: z206.string()
|
|
5890
5903
|
});
|
|
5891
|
-
var DTOElementViewColumn =
|
|
5904
|
+
var DTOElementViewColumn = z206.discriminatedUnion("type", [
|
|
5892
5905
|
DTOElementViewBasePropertyColumn,
|
|
5893
5906
|
DTOElementViewPropertyDefinitionColumn,
|
|
5894
5907
|
DTOElementViewThemeColumn
|
|
5895
5908
|
]);
|
|
5896
|
-
var DTOElementView =
|
|
5909
|
+
var DTOElementView = z206.object({
|
|
5897
5910
|
meta: ObjectMeta,
|
|
5898
|
-
persistentId:
|
|
5911
|
+
persistentId: z206.string(),
|
|
5899
5912
|
targetElementType: ElementPropertyTargetType,
|
|
5900
|
-
id:
|
|
5901
|
-
isDefault:
|
|
5902
|
-
columns:
|
|
5913
|
+
id: z206.string(),
|
|
5914
|
+
isDefault: z206.boolean(),
|
|
5915
|
+
columns: z206.array(DTOElementViewColumn)
|
|
5903
5916
|
});
|
|
5904
|
-
var DTOElementViewsListResponse =
|
|
5905
|
-
elementDataViews:
|
|
5917
|
+
var DTOElementViewsListResponse = z206.object({
|
|
5918
|
+
elementDataViews: z206.array(DTOElementView)
|
|
5906
5919
|
});
|
|
5907
5920
|
|
|
5908
5921
|
// src/api/dto/workspaces/git.ts
|
|
5909
|
-
import { z as
|
|
5910
|
-
var DTOGitOrganization =
|
|
5911
|
-
id:
|
|
5912
|
-
name:
|
|
5913
|
-
url:
|
|
5914
|
-
slug:
|
|
5922
|
+
import { z as z207 } from "zod";
|
|
5923
|
+
var DTOGitOrganization = z207.object({
|
|
5924
|
+
id: z207.string(),
|
|
5925
|
+
name: z207.string(),
|
|
5926
|
+
url: z207.string(),
|
|
5927
|
+
slug: z207.string()
|
|
5915
5928
|
});
|
|
5916
|
-
var DTOGitProject =
|
|
5917
|
-
id:
|
|
5918
|
-
name:
|
|
5919
|
-
url:
|
|
5920
|
-
slug:
|
|
5929
|
+
var DTOGitProject = z207.object({
|
|
5930
|
+
id: z207.string(),
|
|
5931
|
+
name: z207.string(),
|
|
5932
|
+
url: z207.string(),
|
|
5933
|
+
slug: z207.string()
|
|
5921
5934
|
});
|
|
5922
|
-
var DTOGitRepository =
|
|
5923
|
-
id:
|
|
5924
|
-
name:
|
|
5925
|
-
url:
|
|
5926
|
-
slug:
|
|
5927
|
-
defaultBranch:
|
|
5935
|
+
var DTOGitRepository = z207.object({
|
|
5936
|
+
id: z207.string(),
|
|
5937
|
+
name: z207.string(),
|
|
5938
|
+
url: z207.string(),
|
|
5939
|
+
slug: z207.string(),
|
|
5940
|
+
defaultBranch: z207.string().optional()
|
|
5928
5941
|
});
|
|
5929
|
-
var DTOGitBranch =
|
|
5930
|
-
name:
|
|
5931
|
-
lastCommitId:
|
|
5942
|
+
var DTOGitBranch = z207.object({
|
|
5943
|
+
name: z207.string(),
|
|
5944
|
+
lastCommitId: z207.string()
|
|
5932
5945
|
});
|
|
5933
5946
|
|
|
5934
5947
|
// src/api/dto/workspaces/integrations.ts
|
|
5935
|
-
import { z as
|
|
5948
|
+
import { z as z208 } from "zod";
|
|
5936
5949
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5937
5950
|
accessToken: true,
|
|
5938
5951
|
refreshToken: true
|
|
5939
5952
|
});
|
|
5940
|
-
var DTOIntegration =
|
|
5941
|
-
id:
|
|
5942
|
-
workspaceId:
|
|
5953
|
+
var DTOIntegration = z208.object({
|
|
5954
|
+
id: z208.string(),
|
|
5955
|
+
workspaceId: z208.string(),
|
|
5943
5956
|
type: ExtendedIntegrationType,
|
|
5944
|
-
createdAt:
|
|
5945
|
-
integrationCredentials:
|
|
5946
|
-
integrationDesignSystems:
|
|
5957
|
+
createdAt: z208.coerce.date(),
|
|
5958
|
+
integrationCredentials: z208.array(DTOIntegrationCredentials).optional(),
|
|
5959
|
+
integrationDesignSystems: z208.array(IntegrationDesignSystem).optional()
|
|
5947
5960
|
});
|
|
5948
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5949
|
-
url:
|
|
5961
|
+
var DTOIntegrationOAuthGetResponse = z208.object({
|
|
5962
|
+
url: z208.string()
|
|
5950
5963
|
});
|
|
5951
|
-
var DTOIntegrationPostResponse =
|
|
5964
|
+
var DTOIntegrationPostResponse = z208.object({
|
|
5952
5965
|
integration: DTOIntegration
|
|
5953
5966
|
});
|
|
5954
|
-
var DTOIntegrationsGetListResponse =
|
|
5967
|
+
var DTOIntegrationsGetListResponse = z208.object({
|
|
5955
5968
|
integrations: DTOIntegration.array()
|
|
5956
5969
|
});
|
|
5957
5970
|
|
|
5958
5971
|
// src/api/dto/workspaces/invitations.ts
|
|
5959
|
-
import { z as
|
|
5960
|
-
var DTOWorkspaceInvitationInput =
|
|
5961
|
-
email:
|
|
5972
|
+
import { z as z209 } from "zod";
|
|
5973
|
+
var DTOWorkspaceInvitationInput = z209.object({
|
|
5974
|
+
email: z209.string().email(),
|
|
5962
5975
|
role: WorkspaceRoleSchema
|
|
5963
5976
|
});
|
|
5964
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5977
|
+
var DTOWorkspaceInvitationsListInput = z209.object({
|
|
5965
5978
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5966
|
-
designSystemId:
|
|
5979
|
+
designSystemId: z209.string().optional()
|
|
5967
5980
|
});
|
|
5968
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5981
|
+
var DTOWorkspaceInvitationsResponse = z209.object({
|
|
5969
5982
|
invitations: WorkspaceInvitation.array()
|
|
5970
5983
|
});
|
|
5971
|
-
var DTOWorkspaceInviteUpdate =
|
|
5984
|
+
var DTOWorkspaceInviteUpdate = z209.object({
|
|
5972
5985
|
role: WorkspaceRoleSchema
|
|
5973
5986
|
});
|
|
5974
|
-
var DTOWorkspaceInvitationUpdateResponse =
|
|
5987
|
+
var DTOWorkspaceInvitationUpdateResponse = z209.object({
|
|
5975
5988
|
invitation: WorkspaceInvitation
|
|
5976
5989
|
});
|
|
5977
5990
|
|
|
5978
5991
|
// src/api/dto/workspaces/membership.ts
|
|
5979
|
-
import { z as
|
|
5992
|
+
import { z as z212 } from "zod";
|
|
5980
5993
|
|
|
5981
5994
|
// src/api/dto/workspaces/workspace.ts
|
|
5982
|
-
import { z as
|
|
5995
|
+
import { z as z211 } from "zod";
|
|
5983
5996
|
|
|
5984
5997
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5985
|
-
import { z as
|
|
5998
|
+
import { z as z210 } from "zod";
|
|
5986
5999
|
var DTONpmRegistryConfigConstants = {
|
|
5987
6000
|
passwordPlaceholder: "redacted"
|
|
5988
6001
|
};
|
|
5989
|
-
var DTONpmRegistryConfig =
|
|
6002
|
+
var DTONpmRegistryConfig = z210.object({
|
|
5990
6003
|
// Registry basic configuration
|
|
5991
6004
|
registryType: NpmRegistryType,
|
|
5992
|
-
registryUrl:
|
|
5993
|
-
customRegistryUrl:
|
|
6005
|
+
registryUrl: z210.string(),
|
|
6006
|
+
customRegistryUrl: z210.string().optional(),
|
|
5994
6007
|
// URL of Supernova NPM packages proxy
|
|
5995
|
-
proxyUrl:
|
|
6008
|
+
proxyUrl: z210.string(),
|
|
5996
6009
|
// Auth configuration
|
|
5997
6010
|
authType: NpmRegistryAuthType,
|
|
5998
|
-
accessToken:
|
|
5999
|
-
username:
|
|
6000
|
-
password:
|
|
6011
|
+
accessToken: z210.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6012
|
+
username: z210.string().optional(),
|
|
6013
|
+
password: z210.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6001
6014
|
// NPM package scopes for whih the proxy should be enabled
|
|
6002
|
-
enabledScopes:
|
|
6015
|
+
enabledScopes: z210.array(z210.string()),
|
|
6003
6016
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6004
6017
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6005
|
-
bypassProxy:
|
|
6018
|
+
bypassProxy: z210.boolean()
|
|
6006
6019
|
});
|
|
6007
6020
|
|
|
6008
6021
|
// src/api/dto/workspaces/workspace.ts
|
|
6009
6022
|
var DTOWorkspaceProfile = WorkspaceProfile;
|
|
6010
|
-
var DTOWorkspace =
|
|
6011
|
-
id:
|
|
6023
|
+
var DTOWorkspace = z211.object({
|
|
6024
|
+
id: z211.string(),
|
|
6012
6025
|
profile: DTOWorkspaceProfile,
|
|
6013
6026
|
subscription: Subscription,
|
|
6014
6027
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6015
6028
|
});
|
|
6016
|
-
var DTOWorkspaceCreateInput =
|
|
6017
|
-
name:
|
|
6029
|
+
var DTOWorkspaceCreateInput = z211.object({
|
|
6030
|
+
name: z211.string()
|
|
6018
6031
|
});
|
|
6019
|
-
var DTOWorkspaceResponse =
|
|
6032
|
+
var DTOWorkspaceResponse = z211.object({
|
|
6020
6033
|
workspace: DTOWorkspace
|
|
6021
6034
|
});
|
|
6022
6035
|
|
|
6023
6036
|
// src/api/dto/workspaces/membership.ts
|
|
6024
|
-
var DTOWorkspaceRole =
|
|
6025
|
-
var DTOUserWorkspaceMembership =
|
|
6037
|
+
var DTOWorkspaceRole = z212.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6038
|
+
var DTOUserWorkspaceMembership = z212.object({
|
|
6026
6039
|
// Workspace the user is a member of
|
|
6027
6040
|
workspace: DTOWorkspace,
|
|
6028
6041
|
// Assigned role the user has in the workspace
|
|
@@ -6032,26 +6045,26 @@ var DTOUserWorkspaceMembership = z213.object({
|
|
|
6032
6045
|
// when a workspace's subscription is downgraded to free tier
|
|
6033
6046
|
effectiveRole: DTOWorkspaceRole
|
|
6034
6047
|
});
|
|
6035
|
-
var DTOWorkspaceMember =
|
|
6048
|
+
var DTOWorkspaceMember = z212.object({
|
|
6036
6049
|
user: User,
|
|
6037
6050
|
role: WorkspaceRoleSchema,
|
|
6038
6051
|
effectiveRole: WorkspaceRoleSchema
|
|
6039
6052
|
});
|
|
6040
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6041
|
-
membership:
|
|
6053
|
+
var DTOUserWorkspaceMembershipsResponse = z212.object({
|
|
6054
|
+
membership: z212.array(DTOUserWorkspaceMembership)
|
|
6042
6055
|
});
|
|
6043
|
-
var DTOWorkspaceMembersListResponse =
|
|
6044
|
-
members:
|
|
6056
|
+
var DTOWorkspaceMembersListResponse = z212.object({
|
|
6057
|
+
members: z212.array(DTOWorkspaceMember)
|
|
6045
6058
|
});
|
|
6046
6059
|
|
|
6047
6060
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
6048
|
-
var DTOAppBootstrapDataQuery =
|
|
6049
|
-
preferredWorkspaceId:
|
|
6050
|
-
preferredDesignSystemId:
|
|
6051
|
-
preferredVersionId:
|
|
6052
|
-
preferredBrandId:
|
|
6061
|
+
var DTOAppBootstrapDataQuery = z213.object({
|
|
6062
|
+
preferredWorkspaceId: z213.string().optional(),
|
|
6063
|
+
preferredDesignSystemId: z213.string().optional(),
|
|
6064
|
+
preferredVersionId: z213.string().optional(),
|
|
6065
|
+
preferredBrandId: z213.string().optional()
|
|
6053
6066
|
});
|
|
6054
|
-
var DTOAppBootstrapDataResponse =
|
|
6067
|
+
var DTOAppBootstrapDataResponse = z213.object({
|
|
6055
6068
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
6056
6069
|
designSystem: DTODesignSystem.optional(),
|
|
6057
6070
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -6059,88 +6072,88 @@ var DTOAppBootstrapDataResponse = z214.object({
|
|
|
6059
6072
|
});
|
|
6060
6073
|
|
|
6061
6074
|
// src/api/dto/collections/token-collection.ts
|
|
6062
|
-
import { z as
|
|
6063
|
-
var DTOTokenCollection =
|
|
6064
|
-
id:
|
|
6065
|
-
persistentId:
|
|
6066
|
-
designSystemVersionId:
|
|
6075
|
+
import { z as z214 } from "zod";
|
|
6076
|
+
var DTOTokenCollection = z214.object({
|
|
6077
|
+
id: z214.string(),
|
|
6078
|
+
persistentId: z214.string(),
|
|
6079
|
+
designSystemVersionId: z214.string(),
|
|
6067
6080
|
meta: ObjectMeta,
|
|
6068
6081
|
backgroundColor: ColorTokenInlineData.optional(),
|
|
6069
|
-
elementPropertyOptionId:
|
|
6070
|
-
createdAt:
|
|
6071
|
-
updatedAt:
|
|
6082
|
+
elementPropertyOptionId: z214.string(),
|
|
6083
|
+
createdAt: z214.coerce.date(),
|
|
6084
|
+
updatedAt: z214.coerce.date(),
|
|
6072
6085
|
origin: CollectionOrigin.optional()
|
|
6073
6086
|
});
|
|
6074
|
-
var DTOTokenCollectionsListReponse =
|
|
6087
|
+
var DTOTokenCollectionsListReponse = z214.object({
|
|
6075
6088
|
collections: DTOTokenCollection.array()
|
|
6076
6089
|
});
|
|
6077
6090
|
|
|
6078
6091
|
// src/api/dto/design-tokens/design-token.ts
|
|
6079
|
-
import { z as
|
|
6092
|
+
import { z as z215 } from "zod";
|
|
6080
6093
|
var DTODesignToken = DesignTokenTypedData.and(
|
|
6081
|
-
|
|
6082
|
-
id:
|
|
6083
|
-
persistentId:
|
|
6084
|
-
designSystemVersionId:
|
|
6094
|
+
z215.object({
|
|
6095
|
+
id: z215.string(),
|
|
6096
|
+
persistentId: z215.string(),
|
|
6097
|
+
designSystemVersionId: z215.string(),
|
|
6085
6098
|
meta: ObjectMeta,
|
|
6086
6099
|
originStyle: DesignTokenOrigin.optional(),
|
|
6087
|
-
brandId:
|
|
6088
|
-
collectionId:
|
|
6089
|
-
updatedAt:
|
|
6100
|
+
brandId: z215.string(),
|
|
6101
|
+
collectionId: z215.string().optional(),
|
|
6102
|
+
updatedAt: z215.coerce.date()
|
|
6090
6103
|
})
|
|
6091
6104
|
);
|
|
6092
|
-
var DTODesignTokenListResponse =
|
|
6105
|
+
var DTODesignTokenListResponse = z215.object({
|
|
6093
6106
|
tokens: DTODesignToken.array()
|
|
6094
6107
|
});
|
|
6095
|
-
var DTODesignTokenResponse =
|
|
6108
|
+
var DTODesignTokenResponse = z215.object({
|
|
6096
6109
|
token: DTODesignToken
|
|
6097
6110
|
});
|
|
6098
|
-
var DTODesignTokenGroup =
|
|
6099
|
-
id:
|
|
6111
|
+
var DTODesignTokenGroup = z215.object({
|
|
6112
|
+
id: z215.string(),
|
|
6100
6113
|
tokenType: DesignTokenType,
|
|
6101
|
-
persistentId:
|
|
6102
|
-
isRoot:
|
|
6103
|
-
brandId:
|
|
6114
|
+
persistentId: z215.string(),
|
|
6115
|
+
isRoot: z215.boolean(),
|
|
6116
|
+
brandId: z215.string(),
|
|
6104
6117
|
meta: ObjectMeta,
|
|
6105
|
-
childrenIds:
|
|
6118
|
+
childrenIds: z215.string().array()
|
|
6106
6119
|
});
|
|
6107
|
-
var DTODesignTokenGroupListResponse =
|
|
6120
|
+
var DTODesignTokenGroupListResponse = z215.object({
|
|
6108
6121
|
groups: DTODesignTokenGroup.array()
|
|
6109
6122
|
});
|
|
6110
|
-
var DTODesignTokenGroupResponse =
|
|
6123
|
+
var DTODesignTokenGroupResponse = z215.object({
|
|
6111
6124
|
group: DTODesignTokenGroup
|
|
6112
6125
|
});
|
|
6113
6126
|
var DTODesignTokenCreatePayload = DesignTokenTypedData.and(
|
|
6114
|
-
|
|
6115
|
-
persistentId:
|
|
6127
|
+
z215.object({
|
|
6128
|
+
persistentId: z215.string(),
|
|
6116
6129
|
meta: ObjectMeta,
|
|
6117
|
-
brandId:
|
|
6118
|
-
groupPersistentId:
|
|
6130
|
+
brandId: z215.string(),
|
|
6131
|
+
groupPersistentId: z215.string().optional()
|
|
6119
6132
|
})
|
|
6120
6133
|
);
|
|
6121
|
-
var DTODesignTokenGroupCreatePayload =
|
|
6122
|
-
persistentId:
|
|
6134
|
+
var DTODesignTokenGroupCreatePayload = z215.object({
|
|
6135
|
+
persistentId: z215.string(),
|
|
6123
6136
|
meta: ObjectMeta,
|
|
6124
|
-
brandId:
|
|
6125
|
-
parentId:
|
|
6137
|
+
brandId: z215.string(),
|
|
6138
|
+
parentId: z215.string().optional(),
|
|
6126
6139
|
tokenType: DesignTokenType,
|
|
6127
|
-
childrenIds:
|
|
6140
|
+
childrenIds: z215.string().array()
|
|
6128
6141
|
});
|
|
6129
6142
|
|
|
6130
6143
|
// src/api/dto/documentation/anchor.ts
|
|
6131
|
-
import { z as
|
|
6144
|
+
import { z as z216 } from "zod";
|
|
6132
6145
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6133
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6134
|
-
anchors:
|
|
6146
|
+
var DTOGetDocumentationPageAnchorsResponse = z216.object({
|
|
6147
|
+
anchors: z216.array(DTODocumentationPageAnchor)
|
|
6135
6148
|
});
|
|
6136
6149
|
|
|
6137
6150
|
// src/api/dto/documentation/approvals.ts
|
|
6138
|
-
import { z as
|
|
6151
|
+
import { z as z217 } from "zod";
|
|
6139
6152
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
6140
|
-
var DTODocumentationGroupApprovalState =
|
|
6141
|
-
persistentId:
|
|
6142
|
-
groupId:
|
|
6143
|
-
designSystemVersionId:
|
|
6153
|
+
var DTODocumentationGroupApprovalState = z217.object({
|
|
6154
|
+
persistentId: z217.string(),
|
|
6155
|
+
groupId: z217.string(),
|
|
6156
|
+
designSystemVersionId: z217.string(),
|
|
6144
6157
|
approvalState: DocumentationPageApprovalState
|
|
6145
6158
|
});
|
|
6146
6159
|
|
|
@@ -6148,68 +6161,68 @@ var DTODocumentationGroupApprovalState = z218.object({
|
|
|
6148
6161
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6149
6162
|
|
|
6150
6163
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6151
|
-
import { z as
|
|
6164
|
+
import { z as z222 } from "zod";
|
|
6152
6165
|
|
|
6153
6166
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6154
|
-
import { z as
|
|
6167
|
+
import { z as z221 } from "zod";
|
|
6155
6168
|
|
|
6156
6169
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6157
|
-
import { z as
|
|
6170
|
+
import { z as z219 } from "zod";
|
|
6158
6171
|
|
|
6159
6172
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6160
|
-
import { z as
|
|
6173
|
+
import { z as z218 } from "zod";
|
|
6161
6174
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6162
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6163
|
-
showSidebar:
|
|
6164
|
-
isPrivate:
|
|
6165
|
-
isHidden:
|
|
6175
|
+
var DTODocumentationItemConfigurationV2 = z218.object({
|
|
6176
|
+
showSidebar: z218.boolean(),
|
|
6177
|
+
isPrivate: z218.boolean(),
|
|
6178
|
+
isHidden: z218.boolean(),
|
|
6166
6179
|
header: DTODocumentationItemHeaderV2
|
|
6167
6180
|
});
|
|
6168
6181
|
|
|
6169
6182
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6170
|
-
var DTODocumentationDraftChangeType =
|
|
6171
|
-
var DTODocumentationDraftStateCreated =
|
|
6172
|
-
changeType:
|
|
6173
|
-
});
|
|
6174
|
-
var DTODocumentationDraftStateUpdated =
|
|
6175
|
-
changeType:
|
|
6176
|
-
changes:
|
|
6177
|
-
previousTitle:
|
|
6183
|
+
var DTODocumentationDraftChangeType = z219.enum(["Created", "Updated", "Deleted"]);
|
|
6184
|
+
var DTODocumentationDraftStateCreated = z219.object({
|
|
6185
|
+
changeType: z219.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6186
|
+
});
|
|
6187
|
+
var DTODocumentationDraftStateUpdated = z219.object({
|
|
6188
|
+
changeType: z219.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6189
|
+
changes: z219.object({
|
|
6190
|
+
previousTitle: z219.string().optional(),
|
|
6178
6191
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6179
|
-
previousContentHash:
|
|
6192
|
+
previousContentHash: z219.string().optional()
|
|
6180
6193
|
})
|
|
6181
6194
|
});
|
|
6182
|
-
var DTODocumentationDraftStateDeleted =
|
|
6183
|
-
changeType:
|
|
6184
|
-
deletedAt:
|
|
6185
|
-
deletedByUserId:
|
|
6195
|
+
var DTODocumentationDraftStateDeleted = z219.object({
|
|
6196
|
+
changeType: z219.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6197
|
+
deletedAt: z219.coerce.date(),
|
|
6198
|
+
deletedByUserId: z219.string()
|
|
6186
6199
|
});
|
|
6187
|
-
var DTODocumentationDraftState =
|
|
6200
|
+
var DTODocumentationDraftState = z219.discriminatedUnion("changeType", [
|
|
6188
6201
|
DTODocumentationDraftStateCreated,
|
|
6189
6202
|
DTODocumentationDraftStateUpdated,
|
|
6190
6203
|
DTODocumentationDraftStateDeleted
|
|
6191
6204
|
]);
|
|
6192
6205
|
|
|
6193
6206
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6194
|
-
import { z as
|
|
6195
|
-
var DTODocumentationPublishMetadata =
|
|
6196
|
-
lastPublishedByUserId:
|
|
6197
|
-
lastPublishedAt:
|
|
6207
|
+
import { z as z220 } from "zod";
|
|
6208
|
+
var DTODocumentationPublishMetadata = z220.object({
|
|
6209
|
+
lastPublishedByUserId: z220.string(),
|
|
6210
|
+
lastPublishedAt: z220.coerce.date()
|
|
6198
6211
|
});
|
|
6199
6212
|
|
|
6200
6213
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6201
|
-
var DTODocumentationPageV2 =
|
|
6202
|
-
id:
|
|
6203
|
-
persistentId:
|
|
6204
|
-
designSystemVersionId:
|
|
6205
|
-
title:
|
|
6214
|
+
var DTODocumentationPageV2 = z221.object({
|
|
6215
|
+
id: z221.string(),
|
|
6216
|
+
persistentId: z221.string(),
|
|
6217
|
+
designSystemVersionId: z221.string(),
|
|
6218
|
+
title: z221.string(),
|
|
6206
6219
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6207
|
-
shortPersistentId:
|
|
6208
|
-
slug:
|
|
6209
|
-
userSlug:
|
|
6210
|
-
createdAt:
|
|
6211
|
-
updatedAt:
|
|
6212
|
-
path:
|
|
6220
|
+
shortPersistentId: z221.string(),
|
|
6221
|
+
slug: z221.string().optional(),
|
|
6222
|
+
userSlug: z221.string().optional(),
|
|
6223
|
+
createdAt: z221.coerce.date(),
|
|
6224
|
+
updatedAt: z221.coerce.date(),
|
|
6225
|
+
path: z221.string(),
|
|
6213
6226
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6214
6227
|
draftState: DTODocumentationDraftState.optional(),
|
|
6215
6228
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6217,218 +6230,218 @@ var DTODocumentationPageV2 = z222.object({
|
|
|
6217
6230
|
/** Defines the approval state of the documentation page */
|
|
6218
6231
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6219
6232
|
// Backward compatibility
|
|
6220
|
-
type:
|
|
6233
|
+
type: z221.literal("Page")
|
|
6221
6234
|
});
|
|
6222
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6235
|
+
var DTOCreateDocumentationPageInputV2 = z221.object({
|
|
6223
6236
|
// Identifier
|
|
6224
|
-
persistentId:
|
|
6237
|
+
persistentId: z221.string(),
|
|
6225
6238
|
// Page properties
|
|
6226
|
-
title:
|
|
6239
|
+
title: z221.string(),
|
|
6227
6240
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6228
6241
|
// Page placement properties
|
|
6229
|
-
parentPersistentId:
|
|
6230
|
-
afterPersistentId:
|
|
6242
|
+
parentPersistentId: z221.string(),
|
|
6243
|
+
afterPersistentId: z221.string().nullish()
|
|
6231
6244
|
});
|
|
6232
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6245
|
+
var DTOUpdateDocumentationPageInputV2 = z221.object({
|
|
6233
6246
|
// Identifier of the group to update
|
|
6234
|
-
id:
|
|
6247
|
+
id: z221.string(),
|
|
6235
6248
|
// Page properties
|
|
6236
|
-
title:
|
|
6249
|
+
title: z221.string().optional(),
|
|
6237
6250
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6238
6251
|
});
|
|
6239
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6252
|
+
var DTOMoveDocumentationPageInputV2 = z221.object({
|
|
6240
6253
|
// Identifier of the group to update
|
|
6241
|
-
id:
|
|
6254
|
+
id: z221.string(),
|
|
6242
6255
|
// Page placement properties
|
|
6243
|
-
parentPersistentId:
|
|
6244
|
-
afterPersistentId:
|
|
6256
|
+
parentPersistentId: z221.string(),
|
|
6257
|
+
afterPersistentId: z221.string().nullish()
|
|
6245
6258
|
});
|
|
6246
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6259
|
+
var DTODuplicateDocumentationPageInputV2 = z221.object({
|
|
6247
6260
|
// Identifier of the page to duplicate from
|
|
6248
|
-
id:
|
|
6261
|
+
id: z221.string(),
|
|
6249
6262
|
// New page persistent id
|
|
6250
|
-
persistentId:
|
|
6263
|
+
persistentId: z221.string(),
|
|
6251
6264
|
// Page placement properties
|
|
6252
|
-
parentPersistentId:
|
|
6253
|
-
afterPersistentId:
|
|
6265
|
+
parentPersistentId: z221.string(),
|
|
6266
|
+
afterPersistentId: z221.string().nullish()
|
|
6254
6267
|
});
|
|
6255
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6268
|
+
var DTODeleteDocumentationPageInputV2 = z221.object({
|
|
6256
6269
|
// Identifier
|
|
6257
|
-
id:
|
|
6270
|
+
id: z221.string()
|
|
6258
6271
|
});
|
|
6259
|
-
var DTORestoreDocumentationPageInput =
|
|
6260
|
-
persistentId:
|
|
6261
|
-
snapshotId:
|
|
6272
|
+
var DTORestoreDocumentationPageInput = z221.object({
|
|
6273
|
+
persistentId: z221.string(),
|
|
6274
|
+
snapshotId: z221.string().optional()
|
|
6262
6275
|
});
|
|
6263
|
-
var DTORestoreDocumentationGroupInput =
|
|
6264
|
-
persistentId:
|
|
6265
|
-
snapshotId:
|
|
6276
|
+
var DTORestoreDocumentationGroupInput = z221.object({
|
|
6277
|
+
persistentId: z221.string(),
|
|
6278
|
+
snapshotId: z221.string().optional()
|
|
6266
6279
|
});
|
|
6267
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6268
|
-
persistentId:
|
|
6280
|
+
var DTODocumentationPageApprovalStateChangeInput = z221.object({
|
|
6281
|
+
persistentId: z221.string(),
|
|
6269
6282
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6270
6283
|
});
|
|
6271
6284
|
|
|
6272
6285
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6273
|
-
var DTODocumentationPageSnapshot =
|
|
6274
|
-
id:
|
|
6275
|
-
designSystemVersionId:
|
|
6276
|
-
createdAt:
|
|
6277
|
-
updatedAt:
|
|
6286
|
+
var DTODocumentationPageSnapshot = z222.object({
|
|
6287
|
+
id: z222.string(),
|
|
6288
|
+
designSystemVersionId: z222.string(),
|
|
6289
|
+
createdAt: z222.string(),
|
|
6290
|
+
updatedAt: z222.string(),
|
|
6278
6291
|
documentationPage: DTODocumentationPageV2,
|
|
6279
|
-
pageContentHash:
|
|
6292
|
+
pageContentHash: z222.string(),
|
|
6280
6293
|
reason: DesignElementSnapshotReason
|
|
6281
6294
|
});
|
|
6282
6295
|
|
|
6283
6296
|
// src/api/dto/documentation/link-preview.ts
|
|
6284
|
-
import { z as
|
|
6285
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6297
|
+
import { z as z223 } from "zod";
|
|
6298
|
+
var DTODocumentationLinkPreviewResponse = z223.object({
|
|
6286
6299
|
linkPreview: DocumentationLinkPreview
|
|
6287
6300
|
});
|
|
6288
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6289
|
-
url:
|
|
6290
|
-
documentationItemPersistentId:
|
|
6301
|
+
var DTODocumentationLinkPreviewRequest = z223.object({
|
|
6302
|
+
url: z223.string().optional(),
|
|
6303
|
+
documentationItemPersistentId: z223.string().optional()
|
|
6291
6304
|
});
|
|
6292
6305
|
|
|
6293
6306
|
// src/api/dto/documentation/publish.ts
|
|
6294
|
-
import { z as
|
|
6307
|
+
import { z as z227 } from "zod";
|
|
6295
6308
|
|
|
6296
6309
|
// src/api/dto/export/exporter.ts
|
|
6297
|
-
import { z as
|
|
6298
|
-
var DTOExporterType =
|
|
6299
|
-
var DTOExporterSource =
|
|
6300
|
-
var DTOExporterMembershipRole =
|
|
6301
|
-
var DTOExporterListQuery =
|
|
6302
|
-
limit:
|
|
6303
|
-
});
|
|
6304
|
-
var DTOExporter =
|
|
6305
|
-
id:
|
|
6306
|
-
name:
|
|
6307
|
-
isPrivate:
|
|
6310
|
+
import { z as z224 } from "zod";
|
|
6311
|
+
var DTOExporterType = z224.enum(["documentation", "code"]);
|
|
6312
|
+
var DTOExporterSource = z224.enum(["git", "upload"]);
|
|
6313
|
+
var DTOExporterMembershipRole = z224.enum(["Owner", "OwnerArchived", "User"]);
|
|
6314
|
+
var DTOExporterListQuery = z224.object({
|
|
6315
|
+
limit: z224.coerce.number().optional()
|
|
6316
|
+
});
|
|
6317
|
+
var DTOExporter = z224.object({
|
|
6318
|
+
id: z224.string(),
|
|
6319
|
+
name: z224.string(),
|
|
6320
|
+
isPrivate: z224.boolean(),
|
|
6308
6321
|
exporterType: DTOExporterType,
|
|
6309
|
-
isDefaultDocumentationExporter:
|
|
6310
|
-
iconURL:
|
|
6322
|
+
isDefaultDocumentationExporter: z224.boolean(),
|
|
6323
|
+
iconURL: z224.string().optional(),
|
|
6311
6324
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6312
6325
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
6313
6326
|
customBlocks: PulsarCustomBlock.array(),
|
|
6314
|
-
blockVariants:
|
|
6315
|
-
usesBrands:
|
|
6316
|
-
usesThemes:
|
|
6327
|
+
blockVariants: z224.record(z224.string(), PulsarContributionVariant.array()),
|
|
6328
|
+
usesBrands: z224.boolean(),
|
|
6329
|
+
usesThemes: z224.boolean(),
|
|
6317
6330
|
source: DTOExporterSource,
|
|
6318
|
-
gitUrl: nullishToOptional(
|
|
6319
|
-
gitBranch: nullishToOptional(
|
|
6320
|
-
gitDirectory: nullishToOptional(
|
|
6331
|
+
gitUrl: nullishToOptional(z224.string()),
|
|
6332
|
+
gitBranch: nullishToOptional(z224.string()),
|
|
6333
|
+
gitDirectory: nullishToOptional(z224.string())
|
|
6321
6334
|
});
|
|
6322
|
-
var DTOExporterMembership =
|
|
6323
|
-
workspaceId:
|
|
6324
|
-
exporterId:
|
|
6335
|
+
var DTOExporterMembership = z224.object({
|
|
6336
|
+
workspaceId: z224.string(),
|
|
6337
|
+
exporterId: z224.string(),
|
|
6325
6338
|
role: DTOExporterMembershipRole
|
|
6326
6339
|
});
|
|
6327
|
-
var DTOExporterCreateOutput =
|
|
6340
|
+
var DTOExporterCreateOutput = z224.object({
|
|
6328
6341
|
exporter: DTOExporter,
|
|
6329
6342
|
membership: DTOExporterMembership
|
|
6330
6343
|
});
|
|
6331
|
-
var DTOExporterListResponse =
|
|
6344
|
+
var DTOExporterListResponse = z224.object({
|
|
6332
6345
|
exporters: DTOExporter.array(),
|
|
6333
6346
|
membership: DTOExporterMembership.array()
|
|
6334
6347
|
});
|
|
6335
|
-
var DTOExporterGitProviderEnum =
|
|
6336
|
-
var DTOExporterCreateInput =
|
|
6337
|
-
url:
|
|
6348
|
+
var DTOExporterGitProviderEnum = z224.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6349
|
+
var DTOExporterCreateInput = z224.object({
|
|
6350
|
+
url: z224.string(),
|
|
6338
6351
|
provider: DTOExporterGitProviderEnum
|
|
6339
6352
|
});
|
|
6340
|
-
var DTOExporterUpdateInput =
|
|
6341
|
-
url:
|
|
6353
|
+
var DTOExporterUpdateInput = z224.object({
|
|
6354
|
+
url: z224.string().optional()
|
|
6342
6355
|
});
|
|
6343
6356
|
|
|
6344
6357
|
// src/api/dto/export/filter.ts
|
|
6345
6358
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6346
6359
|
|
|
6347
6360
|
// src/api/dto/export/job.ts
|
|
6348
|
-
import { z as
|
|
6349
|
-
var DTOExportJobCreatedBy =
|
|
6350
|
-
userId:
|
|
6351
|
-
userName:
|
|
6361
|
+
import { z as z225 } from "zod";
|
|
6362
|
+
var DTOExportJobCreatedBy = z225.object({
|
|
6363
|
+
userId: z225.string(),
|
|
6364
|
+
userName: z225.string()
|
|
6352
6365
|
});
|
|
6353
|
-
var DTOExportJobDesignSystemPreview =
|
|
6354
|
-
id:
|
|
6366
|
+
var DTOExportJobDesignSystemPreview = z225.object({
|
|
6367
|
+
id: z225.string(),
|
|
6355
6368
|
meta: ObjectMeta
|
|
6356
6369
|
});
|
|
6357
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6358
|
-
id:
|
|
6370
|
+
var DTOExportJobDesignSystemVersionPreview = z225.object({
|
|
6371
|
+
id: z225.string(),
|
|
6359
6372
|
meta: ObjectMeta,
|
|
6360
|
-
version:
|
|
6361
|
-
isReadonly:
|
|
6373
|
+
version: z225.string(),
|
|
6374
|
+
isReadonly: z225.boolean()
|
|
6362
6375
|
});
|
|
6363
|
-
var DTOExportJobDestinations =
|
|
6376
|
+
var DTOExportJobDestinations = z225.object({
|
|
6364
6377
|
s3: ExporterDestinationS3.optional(),
|
|
6365
6378
|
azure: ExporterDestinationAzure.optional(),
|
|
6366
6379
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6367
6380
|
github: ExporterDestinationGithub.optional(),
|
|
6368
6381
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6369
6382
|
documentation: ExporterDestinationDocs.optional(),
|
|
6370
|
-
webhookUrl:
|
|
6383
|
+
webhookUrl: z225.string().optional()
|
|
6371
6384
|
});
|
|
6372
6385
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6373
6386
|
sndocs: true
|
|
6374
6387
|
}).extend({
|
|
6375
6388
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6376
6389
|
});
|
|
6377
|
-
var DTOExportJob =
|
|
6378
|
-
id:
|
|
6379
|
-
createdAt:
|
|
6380
|
-
finishedAt:
|
|
6381
|
-
index:
|
|
6390
|
+
var DTOExportJob = z225.object({
|
|
6391
|
+
id: z225.string(),
|
|
6392
|
+
createdAt: z225.coerce.date(),
|
|
6393
|
+
finishedAt: z225.coerce.date().optional(),
|
|
6394
|
+
index: z225.number().optional(),
|
|
6382
6395
|
status: ExportJobStatus,
|
|
6383
|
-
estimatedExecutionTime:
|
|
6396
|
+
estimatedExecutionTime: z225.number().optional(),
|
|
6384
6397
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6385
6398
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6386
6399
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6387
6400
|
destinations: DTOExportJobDestinations,
|
|
6388
|
-
exporterId:
|
|
6389
|
-
scheduleId:
|
|
6401
|
+
exporterId: z225.string(),
|
|
6402
|
+
scheduleId: z225.string().optional(),
|
|
6390
6403
|
result: DTOExportJobResult.optional(),
|
|
6391
|
-
brandPersistentId:
|
|
6392
|
-
themePersistentId:
|
|
6393
|
-
themePersistentIds:
|
|
6404
|
+
brandPersistentId: z225.string().optional(),
|
|
6405
|
+
themePersistentId: z225.string().optional(),
|
|
6406
|
+
themePersistentIds: z225.string().array().optional(),
|
|
6394
6407
|
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional()
|
|
6395
6408
|
});
|
|
6396
|
-
var DTOExportJobResponse =
|
|
6409
|
+
var DTOExportJobResponse = z225.object({
|
|
6397
6410
|
job: DTOExportJob
|
|
6398
6411
|
});
|
|
6399
6412
|
|
|
6400
6413
|
// src/api/dto/export/pipeline.ts
|
|
6401
|
-
import { z as
|
|
6402
|
-
var DTOPipelineListQuery =
|
|
6403
|
-
designSystemId:
|
|
6404
|
-
exporterId:
|
|
6405
|
-
latestJobsLimit:
|
|
6406
|
-
});
|
|
6407
|
-
var DTOPipeline =
|
|
6408
|
-
id:
|
|
6409
|
-
name:
|
|
6414
|
+
import { z as z226 } from "zod";
|
|
6415
|
+
var DTOPipelineListQuery = z226.object({
|
|
6416
|
+
designSystemId: z226.string().optional(),
|
|
6417
|
+
exporterId: z226.string().optional(),
|
|
6418
|
+
latestJobsLimit: z226.coerce.number().optional()
|
|
6419
|
+
});
|
|
6420
|
+
var DTOPipeline = z226.object({
|
|
6421
|
+
id: z226.string(),
|
|
6422
|
+
name: z226.string(),
|
|
6410
6423
|
eventType: PipelineEventType,
|
|
6411
|
-
isEnabled:
|
|
6412
|
-
workspaceId:
|
|
6413
|
-
designSystemId:
|
|
6414
|
-
exporterId:
|
|
6415
|
-
brandPersistentId:
|
|
6416
|
-
themePersistentId:
|
|
6417
|
-
themePersistentIds:
|
|
6424
|
+
isEnabled: z226.boolean(),
|
|
6425
|
+
workspaceId: z226.string(),
|
|
6426
|
+
designSystemId: z226.string(),
|
|
6427
|
+
exporterId: z226.string(),
|
|
6428
|
+
brandPersistentId: z226.string().optional(),
|
|
6429
|
+
themePersistentId: z226.string().optional(),
|
|
6430
|
+
themePersistentIds: z226.string().array().optional(),
|
|
6418
6431
|
exporterConfiguration: DTOExporterPropertyDefinitionValueMap.optional(),
|
|
6419
6432
|
...ExportDestinationsMap.shape,
|
|
6420
6433
|
latestJobs: DTOExportJob.array()
|
|
6421
6434
|
});
|
|
6422
|
-
var DTOPipelineListResponse =
|
|
6435
|
+
var DTOPipelineListResponse = z226.object({
|
|
6423
6436
|
pipelines: DTOPipeline.array()
|
|
6424
6437
|
});
|
|
6425
|
-
var DTOPipelineResponse =
|
|
6438
|
+
var DTOPipelineResponse = z226.object({
|
|
6426
6439
|
pipeline: DTOPipeline
|
|
6427
6440
|
});
|
|
6428
6441
|
|
|
6429
6442
|
// src/api/dto/documentation/publish.ts
|
|
6430
6443
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6431
|
-
var DTOPublishDocumentationRequest =
|
|
6444
|
+
var DTOPublishDocumentationRequest = z227.object({
|
|
6432
6445
|
environment: PublishedDocEnvironment,
|
|
6433
6446
|
/**
|
|
6434
6447
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6436,57 +6449,57 @@ var DTOPublishDocumentationRequest = z228.object({
|
|
|
6436
6449
|
*/
|
|
6437
6450
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6438
6451
|
});
|
|
6439
|
-
var DTOPublishDocumentationResponse =
|
|
6452
|
+
var DTOPublishDocumentationResponse = z227.object({
|
|
6440
6453
|
job: DTOExportJob
|
|
6441
6454
|
});
|
|
6442
6455
|
|
|
6443
6456
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
6444
|
-
import
|
|
6445
|
-
var DTOFigmaComponentGroup =
|
|
6446
|
-
id:
|
|
6447
|
-
designSystemVersionId:
|
|
6448
|
-
persistentId:
|
|
6449
|
-
isRoot:
|
|
6450
|
-
brandId:
|
|
6457
|
+
import z228 from "zod";
|
|
6458
|
+
var DTOFigmaComponentGroup = z228.object({
|
|
6459
|
+
id: z228.string(),
|
|
6460
|
+
designSystemVersionId: z228.string(),
|
|
6461
|
+
persistentId: z228.string(),
|
|
6462
|
+
isRoot: z228.boolean(),
|
|
6463
|
+
brandId: z228.string(),
|
|
6451
6464
|
meta: DTOObjectMeta,
|
|
6452
|
-
childrenIds:
|
|
6465
|
+
childrenIds: z228.string().array()
|
|
6453
6466
|
});
|
|
6454
|
-
var DTOFigmaComponentGroupListResponse =
|
|
6467
|
+
var DTOFigmaComponentGroupListResponse = z228.object({
|
|
6455
6468
|
groups: DTOFigmaComponentGroup.array()
|
|
6456
6469
|
});
|
|
6457
6470
|
|
|
6458
6471
|
// src/api/dto/elements/components/figma-component.ts
|
|
6459
|
-
import { z as
|
|
6472
|
+
import { z as z229 } from "zod";
|
|
6460
6473
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6461
|
-
var DTOFigmaComponentPropertyMap =
|
|
6462
|
-
var DTOFigmaComponent =
|
|
6463
|
-
id:
|
|
6464
|
-
persistentId:
|
|
6465
|
-
designSystemVersionId:
|
|
6466
|
-
brandId:
|
|
6467
|
-
thumbnailUrl:
|
|
6468
|
-
svgUrl:
|
|
6469
|
-
exportProperties:
|
|
6470
|
-
isAsset:
|
|
6474
|
+
var DTOFigmaComponentPropertyMap = z229.record(DTOFigmaComponentProperty);
|
|
6475
|
+
var DTOFigmaComponent = z229.object({
|
|
6476
|
+
id: z229.string(),
|
|
6477
|
+
persistentId: z229.string(),
|
|
6478
|
+
designSystemVersionId: z229.string(),
|
|
6479
|
+
brandId: z229.string(),
|
|
6480
|
+
thumbnailUrl: z229.string().optional(),
|
|
6481
|
+
svgUrl: z229.string().optional(),
|
|
6482
|
+
exportProperties: z229.object({
|
|
6483
|
+
isAsset: z229.boolean()
|
|
6471
6484
|
}),
|
|
6472
|
-
createdAt:
|
|
6473
|
-
updatedAt:
|
|
6485
|
+
createdAt: z229.coerce.date(),
|
|
6486
|
+
updatedAt: z229.coerce.date(),
|
|
6474
6487
|
meta: ObjectMeta,
|
|
6475
6488
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6476
|
-
parentComponentPersistentId:
|
|
6477
|
-
childrenPersistentIds:
|
|
6489
|
+
parentComponentPersistentId: z229.string().optional(),
|
|
6490
|
+
childrenPersistentIds: z229.string().array().optional(),
|
|
6478
6491
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6479
|
-
variantPropertyValues:
|
|
6492
|
+
variantPropertyValues: z229.record(z229.string()).optional()
|
|
6480
6493
|
});
|
|
6481
|
-
var DTOFigmaComponentListResponse =
|
|
6494
|
+
var DTOFigmaComponentListResponse = z229.object({
|
|
6482
6495
|
components: DTOFigmaComponent.array()
|
|
6483
6496
|
});
|
|
6484
6497
|
|
|
6485
6498
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6486
|
-
import { z as
|
|
6499
|
+
import { z as z231 } from "zod";
|
|
6487
6500
|
|
|
6488
6501
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6489
|
-
import { z as
|
|
6502
|
+
import { z as z230 } from "zod";
|
|
6490
6503
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6491
6504
|
sortOrder: true,
|
|
6492
6505
|
parentPersistentId: true,
|
|
@@ -6496,13 +6509,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6496
6509
|
data: true,
|
|
6497
6510
|
shortPersistentId: true
|
|
6498
6511
|
}).extend({
|
|
6499
|
-
title:
|
|
6500
|
-
isRoot:
|
|
6501
|
-
childrenIds:
|
|
6512
|
+
title: z230.string(),
|
|
6513
|
+
isRoot: z230.boolean(),
|
|
6514
|
+
childrenIds: z230.array(z230.string()),
|
|
6502
6515
|
groupBehavior: DocumentationGroupBehavior,
|
|
6503
|
-
shortPersistentId:
|
|
6516
|
+
shortPersistentId: z230.string(),
|
|
6504
6517
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6505
|
-
type:
|
|
6518
|
+
type: z230.literal("Group"),
|
|
6506
6519
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6507
6520
|
draftState: DTODocumentationDraftState.optional(),
|
|
6508
6521
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6510,127 +6523,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6510
6523
|
//** An approval state for frontend to utilize. */
|
|
6511
6524
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6512
6525
|
});
|
|
6513
|
-
var DTOCreateDocumentationGroupInput =
|
|
6526
|
+
var DTOCreateDocumentationGroupInput = z230.object({
|
|
6514
6527
|
// Identifier
|
|
6515
|
-
persistentId:
|
|
6528
|
+
persistentId: z230.string(),
|
|
6516
6529
|
// Group properties
|
|
6517
|
-
title:
|
|
6530
|
+
title: z230.string(),
|
|
6518
6531
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6519
6532
|
// Group placement properties
|
|
6520
|
-
afterPersistentId:
|
|
6521
|
-
parentPersistentId:
|
|
6533
|
+
afterPersistentId: z230.string().nullish(),
|
|
6534
|
+
parentPersistentId: z230.string()
|
|
6522
6535
|
});
|
|
6523
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6536
|
+
var DTOUpdateDocumentationGroupInput = z230.object({
|
|
6524
6537
|
// Identifier of the group to update
|
|
6525
|
-
id:
|
|
6538
|
+
id: z230.string(),
|
|
6526
6539
|
// Group properties
|
|
6527
|
-
title:
|
|
6540
|
+
title: z230.string().optional(),
|
|
6528
6541
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6529
6542
|
});
|
|
6530
|
-
var DTOMoveDocumentationGroupInput =
|
|
6543
|
+
var DTOMoveDocumentationGroupInput = z230.object({
|
|
6531
6544
|
// Identifier of the group to update
|
|
6532
|
-
id:
|
|
6545
|
+
id: z230.string(),
|
|
6533
6546
|
// Group placement properties
|
|
6534
|
-
parentPersistentId:
|
|
6535
|
-
afterPersistentId:
|
|
6547
|
+
parentPersistentId: z230.string(),
|
|
6548
|
+
afterPersistentId: z230.string().nullish()
|
|
6536
6549
|
});
|
|
6537
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6550
|
+
var DTODuplicateDocumentationGroupInput = z230.object({
|
|
6538
6551
|
// Identifier of the group to duplicate from
|
|
6539
|
-
id:
|
|
6552
|
+
id: z230.string(),
|
|
6540
6553
|
// New group persistent id
|
|
6541
|
-
persistentId:
|
|
6554
|
+
persistentId: z230.string(),
|
|
6542
6555
|
// Group placement properties
|
|
6543
|
-
afterPersistentId:
|
|
6544
|
-
parentPersistentId:
|
|
6556
|
+
afterPersistentId: z230.string().nullish(),
|
|
6557
|
+
parentPersistentId: z230.string()
|
|
6545
6558
|
});
|
|
6546
|
-
var DTOCreateDocumentationTabInput =
|
|
6559
|
+
var DTOCreateDocumentationTabInput = z230.object({
|
|
6547
6560
|
// New group persistent id
|
|
6548
|
-
persistentId:
|
|
6561
|
+
persistentId: z230.string(),
|
|
6549
6562
|
// If this is page, we will attempt to convert it to tab
|
|
6550
6563
|
// If this is tab group, we will add a new tab to it
|
|
6551
|
-
fromItemPersistentId:
|
|
6552
|
-
tabName:
|
|
6564
|
+
fromItemPersistentId: z230.string(),
|
|
6565
|
+
tabName: z230.string()
|
|
6553
6566
|
});
|
|
6554
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6567
|
+
var DTODeleteDocumentationTabGroupInput = z230.object({
|
|
6555
6568
|
// Deleted group id
|
|
6556
|
-
id:
|
|
6569
|
+
id: z230.string()
|
|
6557
6570
|
});
|
|
6558
|
-
var DTODeleteDocumentationGroupInput =
|
|
6571
|
+
var DTODeleteDocumentationGroupInput = z230.object({
|
|
6559
6572
|
// Identifier
|
|
6560
|
-
id:
|
|
6573
|
+
id: z230.string(),
|
|
6561
6574
|
// Deletion options
|
|
6562
|
-
deleteSubtree:
|
|
6575
|
+
deleteSubtree: z230.boolean().default(false)
|
|
6563
6576
|
});
|
|
6564
6577
|
|
|
6565
6578
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6566
|
-
var SuccessPayload =
|
|
6567
|
-
success:
|
|
6579
|
+
var SuccessPayload = z231.object({
|
|
6580
|
+
success: z231.literal(true)
|
|
6568
6581
|
});
|
|
6569
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6570
|
-
type:
|
|
6582
|
+
var DTODocumentationGroupCreateActionOutputV2 = z231.object({
|
|
6583
|
+
type: z231.literal("DocumentationGroupCreate"),
|
|
6571
6584
|
output: SuccessPayload
|
|
6572
6585
|
});
|
|
6573
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6574
|
-
type:
|
|
6586
|
+
var DTODocumentationTabCreateActionOutputV2 = z231.object({
|
|
6587
|
+
type: z231.literal("DocumentationTabCreate"),
|
|
6575
6588
|
output: SuccessPayload
|
|
6576
6589
|
});
|
|
6577
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6578
|
-
type:
|
|
6590
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z231.object({
|
|
6591
|
+
type: z231.literal("DocumentationGroupUpdate"),
|
|
6579
6592
|
output: SuccessPayload
|
|
6580
6593
|
});
|
|
6581
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6582
|
-
type:
|
|
6594
|
+
var DTODocumentationGroupMoveActionOutputV2 = z231.object({
|
|
6595
|
+
type: z231.literal("DocumentationGroupMove"),
|
|
6583
6596
|
output: SuccessPayload
|
|
6584
6597
|
});
|
|
6585
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6586
|
-
type:
|
|
6598
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z231.object({
|
|
6599
|
+
type: z231.literal("DocumentationGroupDuplicate"),
|
|
6587
6600
|
output: SuccessPayload
|
|
6588
6601
|
});
|
|
6589
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6590
|
-
type:
|
|
6602
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z231.object({
|
|
6603
|
+
type: z231.literal("DocumentationGroupDelete"),
|
|
6591
6604
|
output: SuccessPayload
|
|
6592
6605
|
});
|
|
6593
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6594
|
-
type:
|
|
6606
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z231.object({
|
|
6607
|
+
type: z231.literal("DocumentationTabGroupDelete"),
|
|
6595
6608
|
output: SuccessPayload
|
|
6596
6609
|
});
|
|
6597
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6598
|
-
type:
|
|
6610
|
+
var DTODocumentationGroupCreateActionInputV2 = z231.object({
|
|
6611
|
+
type: z231.literal("DocumentationGroupCreate"),
|
|
6599
6612
|
input: DTOCreateDocumentationGroupInput
|
|
6600
6613
|
});
|
|
6601
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6602
|
-
type:
|
|
6614
|
+
var DTODocumentationTabCreateActionInputV2 = z231.object({
|
|
6615
|
+
type: z231.literal("DocumentationTabCreate"),
|
|
6603
6616
|
input: DTOCreateDocumentationTabInput
|
|
6604
6617
|
});
|
|
6605
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6606
|
-
type:
|
|
6618
|
+
var DTODocumentationGroupUpdateActionInputV2 = z231.object({
|
|
6619
|
+
type: z231.literal("DocumentationGroupUpdate"),
|
|
6607
6620
|
input: DTOUpdateDocumentationGroupInput
|
|
6608
6621
|
});
|
|
6609
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6610
|
-
type:
|
|
6622
|
+
var DTODocumentationGroupMoveActionInputV2 = z231.object({
|
|
6623
|
+
type: z231.literal("DocumentationGroupMove"),
|
|
6611
6624
|
input: DTOMoveDocumentationGroupInput
|
|
6612
6625
|
});
|
|
6613
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6614
|
-
type:
|
|
6626
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z231.object({
|
|
6627
|
+
type: z231.literal("DocumentationGroupDuplicate"),
|
|
6615
6628
|
input: DTODuplicateDocumentationGroupInput
|
|
6616
6629
|
});
|
|
6617
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6618
|
-
type:
|
|
6630
|
+
var DTODocumentationGroupDeleteActionInputV2 = z231.object({
|
|
6631
|
+
type: z231.literal("DocumentationGroupDelete"),
|
|
6619
6632
|
input: DTODeleteDocumentationGroupInput
|
|
6620
6633
|
});
|
|
6621
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6622
|
-
type:
|
|
6634
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z231.object({
|
|
6635
|
+
type: z231.literal("DocumentationTabGroupDelete"),
|
|
6623
6636
|
input: DTODeleteDocumentationTabGroupInput
|
|
6624
6637
|
});
|
|
6625
6638
|
|
|
6626
6639
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6627
|
-
import { z as
|
|
6640
|
+
import { z as z233 } from "zod";
|
|
6628
6641
|
|
|
6629
6642
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6630
|
-
import { z as
|
|
6631
|
-
var DocumentationColorV1 =
|
|
6632
|
-
aliasTo:
|
|
6633
|
-
value:
|
|
6643
|
+
import { z as z232 } from "zod";
|
|
6644
|
+
var DocumentationColorV1 = z232.object({
|
|
6645
|
+
aliasTo: z232.string().optional(),
|
|
6646
|
+
value: z232.string().optional()
|
|
6634
6647
|
});
|
|
6635
6648
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6636
6649
|
foregroundColor: true,
|
|
@@ -6639,10 +6652,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6639
6652
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6640
6653
|
backgroundColor: DocumentationColorV1.optional()
|
|
6641
6654
|
});
|
|
6642
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6643
|
-
showSidebar:
|
|
6644
|
-
isPrivate:
|
|
6645
|
-
isHidden:
|
|
6655
|
+
var DTODocumentationItemConfigurationV1 = z232.object({
|
|
6656
|
+
showSidebar: z232.boolean(),
|
|
6657
|
+
isPrivate: z232.boolean(),
|
|
6658
|
+
isHidden: z232.boolean(),
|
|
6646
6659
|
header: DTODocumentationItemHeaderV1
|
|
6647
6660
|
});
|
|
6648
6661
|
|
|
@@ -6656,27 +6669,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6656
6669
|
data: true,
|
|
6657
6670
|
shortPersistentId: true
|
|
6658
6671
|
}).extend({
|
|
6659
|
-
title:
|
|
6660
|
-
isRoot:
|
|
6661
|
-
childrenIds:
|
|
6672
|
+
title: z233.string(),
|
|
6673
|
+
isRoot: z233.boolean(),
|
|
6674
|
+
childrenIds: z233.array(z233.string()),
|
|
6662
6675
|
groupBehavior: DocumentationGroupBehavior,
|
|
6663
|
-
shortPersistentId:
|
|
6664
|
-
type:
|
|
6676
|
+
shortPersistentId: z233.string(),
|
|
6677
|
+
type: z233.literal("Group")
|
|
6665
6678
|
});
|
|
6666
6679
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6667
6680
|
configuration: DTODocumentationItemConfigurationV1
|
|
6668
6681
|
});
|
|
6669
6682
|
|
|
6670
6683
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6671
|
-
import { z as
|
|
6672
|
-
var DTODocumentationHierarchyV2 =
|
|
6673
|
-
pages:
|
|
6684
|
+
import { z as z234 } from "zod";
|
|
6685
|
+
var DTODocumentationHierarchyV2 = z234.object({
|
|
6686
|
+
pages: z234.array(
|
|
6674
6687
|
DTODocumentationPageV2.extend({
|
|
6675
6688
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6676
6689
|
draftState: DTODocumentationDraftState.optional()
|
|
6677
6690
|
})
|
|
6678
6691
|
),
|
|
6679
|
-
groups:
|
|
6692
|
+
groups: z234.array(
|
|
6680
6693
|
DTODocumentationGroupV2.extend({
|
|
6681
6694
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6682
6695
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6685,84 +6698,84 @@ var DTODocumentationHierarchyV2 = z235.object({
|
|
|
6685
6698
|
});
|
|
6686
6699
|
|
|
6687
6700
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6688
|
-
import { z as
|
|
6689
|
-
var SuccessPayload2 =
|
|
6690
|
-
success:
|
|
6701
|
+
import { z as z235 } from "zod";
|
|
6702
|
+
var SuccessPayload2 = z235.object({
|
|
6703
|
+
success: z235.literal(true)
|
|
6691
6704
|
});
|
|
6692
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6693
|
-
type:
|
|
6705
|
+
var DTODocumentationPageCreateActionOutputV2 = z235.object({
|
|
6706
|
+
type: z235.literal("DocumentationPageCreate"),
|
|
6694
6707
|
output: SuccessPayload2
|
|
6695
6708
|
});
|
|
6696
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6697
|
-
type:
|
|
6709
|
+
var DTODocumentationPageUpdateActionOutputV2 = z235.object({
|
|
6710
|
+
type: z235.literal("DocumentationPageUpdate"),
|
|
6698
6711
|
output: SuccessPayload2
|
|
6699
6712
|
});
|
|
6700
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6701
|
-
type:
|
|
6713
|
+
var DTODocumentationPageMoveActionOutputV2 = z235.object({
|
|
6714
|
+
type: z235.literal("DocumentationPageMove"),
|
|
6702
6715
|
output: SuccessPayload2
|
|
6703
6716
|
});
|
|
6704
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6705
|
-
type:
|
|
6717
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z235.object({
|
|
6718
|
+
type: z235.literal("DocumentationPageDuplicate"),
|
|
6706
6719
|
output: SuccessPayload2
|
|
6707
6720
|
});
|
|
6708
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6709
|
-
type:
|
|
6721
|
+
var DTODocumentationPageDeleteActionOutputV2 = z235.object({
|
|
6722
|
+
type: z235.literal("DocumentationPageDelete"),
|
|
6710
6723
|
output: SuccessPayload2
|
|
6711
6724
|
});
|
|
6712
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6713
|
-
type:
|
|
6725
|
+
var DTODocumentationPageRestoreActionOutput = z235.object({
|
|
6726
|
+
type: z235.literal("DocumentationPageRestore"),
|
|
6714
6727
|
output: SuccessPayload2
|
|
6715
6728
|
});
|
|
6716
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6717
|
-
type:
|
|
6729
|
+
var DTODocumentationGroupRestoreActionOutput = z235.object({
|
|
6730
|
+
type: z235.literal("DocumentationGroupRestore"),
|
|
6718
6731
|
output: SuccessPayload2
|
|
6719
6732
|
});
|
|
6720
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6721
|
-
type:
|
|
6733
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z235.object({
|
|
6734
|
+
type: z235.literal("DocumentationPageApprovalStateChange"),
|
|
6722
6735
|
output: SuccessPayload2
|
|
6723
6736
|
});
|
|
6724
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6725
|
-
type:
|
|
6737
|
+
var DTODocumentationPageCreateActionInputV2 = z235.object({
|
|
6738
|
+
type: z235.literal("DocumentationPageCreate"),
|
|
6726
6739
|
input: DTOCreateDocumentationPageInputV2
|
|
6727
6740
|
});
|
|
6728
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6729
|
-
type:
|
|
6741
|
+
var DTODocumentationPageUpdateActionInputV2 = z235.object({
|
|
6742
|
+
type: z235.literal("DocumentationPageUpdate"),
|
|
6730
6743
|
input: DTOUpdateDocumentationPageInputV2
|
|
6731
6744
|
});
|
|
6732
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6733
|
-
type:
|
|
6745
|
+
var DTODocumentationPageMoveActionInputV2 = z235.object({
|
|
6746
|
+
type: z235.literal("DocumentationPageMove"),
|
|
6734
6747
|
input: DTOMoveDocumentationPageInputV2
|
|
6735
6748
|
});
|
|
6736
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6737
|
-
type:
|
|
6749
|
+
var DTODocumentationPageDuplicateActionInputV2 = z235.object({
|
|
6750
|
+
type: z235.literal("DocumentationPageDuplicate"),
|
|
6738
6751
|
input: DTODuplicateDocumentationPageInputV2
|
|
6739
6752
|
});
|
|
6740
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6741
|
-
type:
|
|
6753
|
+
var DTODocumentationPageDeleteActionInputV2 = z235.object({
|
|
6754
|
+
type: z235.literal("DocumentationPageDelete"),
|
|
6742
6755
|
input: DTODeleteDocumentationPageInputV2
|
|
6743
6756
|
});
|
|
6744
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6745
|
-
type:
|
|
6757
|
+
var DTODocumentationPageRestoreActionInput = z235.object({
|
|
6758
|
+
type: z235.literal("DocumentationPageRestore"),
|
|
6746
6759
|
input: DTORestoreDocumentationPageInput
|
|
6747
6760
|
});
|
|
6748
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6749
|
-
type:
|
|
6761
|
+
var DTODocumentationGroupRestoreActionInput = z235.object({
|
|
6762
|
+
type: z235.literal("DocumentationGroupRestore"),
|
|
6750
6763
|
input: DTORestoreDocumentationGroupInput
|
|
6751
6764
|
});
|
|
6752
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6753
|
-
type:
|
|
6765
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z235.object({
|
|
6766
|
+
type: z235.literal("DocumentationPageApprovalStateChange"),
|
|
6754
6767
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6755
6768
|
});
|
|
6756
6769
|
|
|
6757
6770
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6758
|
-
import { z as
|
|
6771
|
+
import { z as z236 } from "zod";
|
|
6759
6772
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6760
|
-
var DTODocumentationPageContentGetResponse =
|
|
6773
|
+
var DTODocumentationPageContentGetResponse = z236.object({
|
|
6761
6774
|
pageContent: DTODocumentationPageContent
|
|
6762
6775
|
});
|
|
6763
6776
|
|
|
6764
6777
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6765
|
-
import { z as
|
|
6778
|
+
import { z as z237 } from "zod";
|
|
6766
6779
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6767
6780
|
data: true,
|
|
6768
6781
|
meta: true,
|
|
@@ -6770,63 +6783,63 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6770
6783
|
sortOrder: true
|
|
6771
6784
|
}).extend({
|
|
6772
6785
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6773
|
-
blocks:
|
|
6774
|
-
title:
|
|
6775
|
-
path:
|
|
6786
|
+
blocks: z237.array(PageBlockV1),
|
|
6787
|
+
title: z237.string(),
|
|
6788
|
+
path: z237.string()
|
|
6776
6789
|
});
|
|
6777
6790
|
|
|
6778
6791
|
// src/api/dto/elements/documentation/structure.ts
|
|
6779
|
-
import { z as
|
|
6780
|
-
var DTODocumentationStructureItemType =
|
|
6781
|
-
var DTODocumentationStructureItemBase =
|
|
6792
|
+
import { z as z238 } from "zod";
|
|
6793
|
+
var DTODocumentationStructureItemType = z238.enum(["Group", "Page"]);
|
|
6794
|
+
var DTODocumentationStructureItemBase = z238.object({
|
|
6782
6795
|
type: DTODocumentationStructureItemType,
|
|
6783
|
-
id:
|
|
6784
|
-
designSystemVersionId:
|
|
6785
|
-
shortPersistentId:
|
|
6786
|
-
persistentId:
|
|
6787
|
-
title:
|
|
6788
|
-
createdAt:
|
|
6789
|
-
updatedAt:
|
|
6796
|
+
id: z238.string(),
|
|
6797
|
+
designSystemVersionId: z238.string(),
|
|
6798
|
+
shortPersistentId: z238.string(),
|
|
6799
|
+
persistentId: z238.string(),
|
|
6800
|
+
title: z238.string(),
|
|
6801
|
+
createdAt: z238.coerce.date(),
|
|
6802
|
+
updatedAt: z238.coerce.date()
|
|
6790
6803
|
});
|
|
6791
6804
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
6792
|
-
type:
|
|
6793
|
-
groupBehavior:
|
|
6794
|
-
childrenIds:
|
|
6795
|
-
isRoot:
|
|
6805
|
+
type: z238.literal(DTODocumentationStructureItemType.enum.Group),
|
|
6806
|
+
groupBehavior: z238.string(),
|
|
6807
|
+
childrenIds: z238.string().array(),
|
|
6808
|
+
isRoot: z238.boolean()
|
|
6796
6809
|
});
|
|
6797
6810
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
6798
|
-
type:
|
|
6799
|
-
path:
|
|
6811
|
+
type: z238.literal(DTODocumentationStructureItemType.enum.Page),
|
|
6812
|
+
path: z238.string()
|
|
6800
6813
|
});
|
|
6801
|
-
var DTODocumentationStructureItem =
|
|
6814
|
+
var DTODocumentationStructureItem = z238.discriminatedUnion("type", [
|
|
6802
6815
|
DTODocumentationStructureGroupItem,
|
|
6803
6816
|
DTODocumentationStructurePageItem
|
|
6804
6817
|
]);
|
|
6805
|
-
var DTODocumentationStructure =
|
|
6806
|
-
items:
|
|
6818
|
+
var DTODocumentationStructure = z238.object({
|
|
6819
|
+
items: z238.array(DTODocumentationStructureItem)
|
|
6807
6820
|
});
|
|
6808
6821
|
|
|
6809
6822
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6810
|
-
import { z as
|
|
6823
|
+
import { z as z239 } from "zod";
|
|
6811
6824
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6812
|
-
var DTOFigmaNodeOrigin =
|
|
6813
|
-
sourceId:
|
|
6814
|
-
fileId:
|
|
6815
|
-
parentName:
|
|
6825
|
+
var DTOFigmaNodeOrigin = z239.object({
|
|
6826
|
+
sourceId: z239.string(),
|
|
6827
|
+
fileId: z239.string().optional(),
|
|
6828
|
+
parentName: z239.string().optional()
|
|
6816
6829
|
});
|
|
6817
|
-
var DTOFigmaNodeData =
|
|
6830
|
+
var DTOFigmaNodeData = z239.object({
|
|
6818
6831
|
// Id of the node in the Figma file
|
|
6819
|
-
figmaNodeId:
|
|
6832
|
+
figmaNodeId: z239.string(),
|
|
6820
6833
|
// Validity
|
|
6821
|
-
isValid:
|
|
6834
|
+
isValid: z239.boolean(),
|
|
6822
6835
|
// Asset data
|
|
6823
|
-
assetId:
|
|
6824
|
-
assetUrl:
|
|
6836
|
+
assetId: z239.string(),
|
|
6837
|
+
assetUrl: z239.string(),
|
|
6825
6838
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6826
6839
|
// Asset metadata
|
|
6827
|
-
assetScale:
|
|
6828
|
-
assetWidth:
|
|
6829
|
-
assetHeight:
|
|
6840
|
+
assetScale: z239.number(),
|
|
6841
|
+
assetWidth: z239.number().optional(),
|
|
6842
|
+
assetHeight: z239.number().optional()
|
|
6830
6843
|
});
|
|
6831
6844
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6832
6845
|
data: true,
|
|
@@ -6835,15 +6848,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6835
6848
|
data: DTOFigmaNodeData,
|
|
6836
6849
|
origin: DTOFigmaNodeOrigin
|
|
6837
6850
|
});
|
|
6838
|
-
var DTOFigmaNodeRenderInput =
|
|
6851
|
+
var DTOFigmaNodeRenderInput = z239.object({
|
|
6839
6852
|
/**
|
|
6840
6853
|
* Id of a design system's data source representing a linked Figma file
|
|
6841
6854
|
*/
|
|
6842
|
-
sourceId:
|
|
6855
|
+
sourceId: z239.string(),
|
|
6843
6856
|
/**
|
|
6844
6857
|
* Id of a node within the Figma file
|
|
6845
6858
|
*/
|
|
6846
|
-
figmaFileNodeId:
|
|
6859
|
+
figmaFileNodeId: z239.string(),
|
|
6847
6860
|
/**
|
|
6848
6861
|
* Format in which the node must be rendered, png by default.
|
|
6849
6862
|
*/
|
|
@@ -6851,97 +6864,97 @@ var DTOFigmaNodeRenderInput = z240.object({
|
|
|
6851
6864
|
});
|
|
6852
6865
|
|
|
6853
6866
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6854
|
-
import { z as
|
|
6855
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6856
|
-
type:
|
|
6857
|
-
figmaNodes:
|
|
6867
|
+
import { z as z240 } from "zod";
|
|
6868
|
+
var DTOFigmaNodeRenderActionOutput = z240.object({
|
|
6869
|
+
type: z240.literal("FigmaNodeRender"),
|
|
6870
|
+
figmaNodes: z240.array(DTOFigmaNode)
|
|
6858
6871
|
});
|
|
6859
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6860
|
-
type:
|
|
6872
|
+
var DTOFigmaNodeRenderActionInput = z240.object({
|
|
6873
|
+
type: z240.literal("FigmaNodeRender"),
|
|
6861
6874
|
input: DTOFigmaNodeRenderInput.array()
|
|
6862
6875
|
});
|
|
6863
6876
|
|
|
6864
6877
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
6865
|
-
import { z as
|
|
6866
|
-
var DTOFrameNodeStructure =
|
|
6867
|
-
id:
|
|
6868
|
-
persistentId:
|
|
6869
|
-
designSystemVersionId:
|
|
6878
|
+
import { z as z241 } from "zod";
|
|
6879
|
+
var DTOFrameNodeStructure = z241.object({
|
|
6880
|
+
id: z241.string(),
|
|
6881
|
+
persistentId: z241.string(),
|
|
6882
|
+
designSystemVersionId: z241.string(),
|
|
6870
6883
|
origin: FigmaFileStructureOrigin,
|
|
6871
6884
|
assetsInFile: FigmaFileStructureStatistics
|
|
6872
6885
|
});
|
|
6873
|
-
var DTOFrameNodeStructureListResponse =
|
|
6886
|
+
var DTOFrameNodeStructureListResponse = z241.object({
|
|
6874
6887
|
structures: DTOFrameNodeStructure.array()
|
|
6875
6888
|
});
|
|
6876
6889
|
|
|
6877
6890
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6878
|
-
import { z as
|
|
6891
|
+
import { z as z242 } from "zod";
|
|
6879
6892
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6880
|
-
var DTOElementPropertyDefinitionOption =
|
|
6881
|
-
id:
|
|
6882
|
-
name:
|
|
6893
|
+
var DTOElementPropertyDefinitionOption = z242.object({
|
|
6894
|
+
id: z242.string(),
|
|
6895
|
+
name: z242.string(),
|
|
6883
6896
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
6884
6897
|
});
|
|
6885
|
-
var DTOElementPropertyDefinition =
|
|
6886
|
-
id:
|
|
6887
|
-
designSystemVersionId:
|
|
6898
|
+
var DTOElementPropertyDefinition = z242.object({
|
|
6899
|
+
id: z242.string(),
|
|
6900
|
+
designSystemVersionId: z242.string(),
|
|
6888
6901
|
meta: DTOObjectMeta,
|
|
6889
|
-
persistentId:
|
|
6902
|
+
persistentId: z242.string(),
|
|
6890
6903
|
type: ElementPropertyTypeSchema,
|
|
6891
6904
|
targetElementType: ElementPropertyTargetType,
|
|
6892
|
-
codeName:
|
|
6893
|
-
options: nullishToOptional(
|
|
6905
|
+
codeName: z242.string().regex(CODE_NAME_REGEX2),
|
|
6906
|
+
options: nullishToOptional(z242.array(DTOElementPropertyDefinitionOption)),
|
|
6894
6907
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6895
|
-
isImmutable:
|
|
6908
|
+
isImmutable: z242.boolean(),
|
|
6896
6909
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
6897
6910
|
});
|
|
6898
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
6899
|
-
definitions:
|
|
6911
|
+
var DTOElementPropertyDefinitionListResponse = z242.object({
|
|
6912
|
+
definitions: z242.array(DTOElementPropertyDefinition)
|
|
6900
6913
|
});
|
|
6901
|
-
var DTOElementPropertyDefinitionResponse =
|
|
6914
|
+
var DTOElementPropertyDefinitionResponse = z242.object({
|
|
6902
6915
|
definition: DTOElementPropertyDefinition
|
|
6903
6916
|
});
|
|
6904
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
6917
|
+
var DTOElementPropertyDefinitionCreatePayload = z242.object({
|
|
6905
6918
|
meta: DTOObjectMeta,
|
|
6906
|
-
persistentId:
|
|
6919
|
+
persistentId: z242.string(),
|
|
6907
6920
|
type: ElementPropertyTypeSchema,
|
|
6908
6921
|
targetElementType: ElementPropertyTargetType,
|
|
6909
|
-
codeName:
|
|
6910
|
-
options: nullishToOptional(
|
|
6922
|
+
codeName: z242.string().regex(CODE_NAME_REGEX2),
|
|
6923
|
+
options: nullishToOptional(z242.array(DTOElementPropertyDefinitionOption)),
|
|
6911
6924
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
6912
|
-
columnWidth:
|
|
6925
|
+
columnWidth: z242.number().max(1024).optional()
|
|
6913
6926
|
});
|
|
6914
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
6927
|
+
var DTOElementPropertyDefinitionUpdatePayload = z242.object({
|
|
6915
6928
|
meta: DTOObjectMeta.optional(),
|
|
6916
|
-
codeName:
|
|
6917
|
-
options:
|
|
6929
|
+
codeName: z242.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6930
|
+
options: z242.array(DTOElementPropertyDefinitionOption).optional()
|
|
6918
6931
|
});
|
|
6919
6932
|
|
|
6920
6933
|
// src/api/dto/elements/properties/property-values.ts
|
|
6921
|
-
import { z as
|
|
6922
|
-
var DTOElementPropertyValue =
|
|
6923
|
-
id:
|
|
6924
|
-
designSystemVersionId:
|
|
6925
|
-
definitionId:
|
|
6926
|
-
targetElementId:
|
|
6927
|
-
value:
|
|
6928
|
-
valuePreview:
|
|
6929
|
-
});
|
|
6930
|
-
var DTOElementPropertyValueListResponse =
|
|
6931
|
-
values:
|
|
6932
|
-
});
|
|
6933
|
-
var DTOElementPropertyValueResponse =
|
|
6934
|
+
import { z as z243 } from "zod";
|
|
6935
|
+
var DTOElementPropertyValue = z243.object({
|
|
6936
|
+
id: z243.string(),
|
|
6937
|
+
designSystemVersionId: z243.string(),
|
|
6938
|
+
definitionId: z243.string(),
|
|
6939
|
+
targetElementId: z243.string(),
|
|
6940
|
+
value: z243.union([z243.string(), z243.number(), z243.boolean()]).optional(),
|
|
6941
|
+
valuePreview: z243.string().optional()
|
|
6942
|
+
});
|
|
6943
|
+
var DTOElementPropertyValueListResponse = z243.object({
|
|
6944
|
+
values: z243.array(DTOElementPropertyValue)
|
|
6945
|
+
});
|
|
6946
|
+
var DTOElementPropertyValueResponse = z243.object({
|
|
6934
6947
|
value: DTOElementPropertyValue
|
|
6935
6948
|
});
|
|
6936
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
6937
|
-
definitionId:
|
|
6938
|
-
targetElementId:
|
|
6939
|
-
value:
|
|
6949
|
+
var DTOElementPropertyValueUpsertPaylod = z243.object({
|
|
6950
|
+
definitionId: z243.string(),
|
|
6951
|
+
targetElementId: z243.string(),
|
|
6952
|
+
value: z243.string().or(z243.number()).or(z243.boolean())
|
|
6940
6953
|
});
|
|
6941
6954
|
|
|
6942
6955
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6943
|
-
import { z as
|
|
6944
|
-
var DTOElementActionOutput =
|
|
6956
|
+
import { z as z244 } from "zod";
|
|
6957
|
+
var DTOElementActionOutput = z244.discriminatedUnion("type", [
|
|
6945
6958
|
// Documentation pages
|
|
6946
6959
|
DTODocumentationPageCreateActionOutputV2,
|
|
6947
6960
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6964,7 +6977,7 @@ var DTOElementActionOutput = z245.discriminatedUnion("type", [
|
|
|
6964
6977
|
// Approvals
|
|
6965
6978
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6966
6979
|
]);
|
|
6967
|
-
var DTOElementActionInput =
|
|
6980
|
+
var DTOElementActionInput = z244.discriminatedUnion("type", [
|
|
6968
6981
|
// Documentation pages
|
|
6969
6982
|
DTODocumentationPageCreateActionInputV2,
|
|
6970
6983
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6989,80 +7002,80 @@ var DTOElementActionInput = z245.discriminatedUnion("type", [
|
|
|
6989
7002
|
]);
|
|
6990
7003
|
|
|
6991
7004
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6992
|
-
import { z as
|
|
6993
|
-
var DTOElementsGetTypeFilter =
|
|
6994
|
-
var DTOElementsGetQuerySchema =
|
|
6995
|
-
types:
|
|
7005
|
+
import { z as z245 } from "zod";
|
|
7006
|
+
var DTOElementsGetTypeFilter = z245.enum(["FigmaNode"]);
|
|
7007
|
+
var DTOElementsGetQuerySchema = z245.object({
|
|
7008
|
+
types: z245.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6996
7009
|
});
|
|
6997
|
-
var DTOElementsGetOutput =
|
|
6998
|
-
figmaNodes:
|
|
7010
|
+
var DTOElementsGetOutput = z245.object({
|
|
7011
|
+
figmaNodes: z245.array(DTOFigmaNode).optional()
|
|
6999
7012
|
});
|
|
7000
7013
|
|
|
7001
7014
|
// src/api/dto/figma-components/assets/download.ts
|
|
7002
|
-
import { z as
|
|
7003
|
-
var DTOAssetRenderConfiguration =
|
|
7004
|
-
prefix:
|
|
7005
|
-
suffix:
|
|
7006
|
-
scale:
|
|
7007
|
-
format:
|
|
7008
|
-
});
|
|
7009
|
-
var DTORenderedAssetFile =
|
|
7010
|
-
assetId:
|
|
7011
|
-
fileName:
|
|
7012
|
-
sourceUrl:
|
|
7015
|
+
import { z as z246 } from "zod";
|
|
7016
|
+
var DTOAssetRenderConfiguration = z246.object({
|
|
7017
|
+
prefix: z246.string().optional(),
|
|
7018
|
+
suffix: z246.string().optional(),
|
|
7019
|
+
scale: z246.enum(["x1", "x2", "x3", "x4"]),
|
|
7020
|
+
format: z246.enum(["png", "pdf", "svg"])
|
|
7021
|
+
});
|
|
7022
|
+
var DTORenderedAssetFile = z246.object({
|
|
7023
|
+
assetId: z246.string(),
|
|
7024
|
+
fileName: z246.string(),
|
|
7025
|
+
sourceUrl: z246.string(),
|
|
7013
7026
|
settings: DTOAssetRenderConfiguration,
|
|
7014
|
-
originalName:
|
|
7027
|
+
originalName: z246.string()
|
|
7015
7028
|
});
|
|
7016
|
-
var DTODownloadAssetsRequest =
|
|
7017
|
-
persistentIds:
|
|
7029
|
+
var DTODownloadAssetsRequest = z246.object({
|
|
7030
|
+
persistentIds: z246.array(z246.string().uuid()).optional(),
|
|
7018
7031
|
settings: DTOAssetRenderConfiguration.array()
|
|
7019
7032
|
});
|
|
7020
|
-
var DTODownloadAssetsResponse =
|
|
7033
|
+
var DTODownloadAssetsResponse = z246.object({
|
|
7021
7034
|
items: DTORenderedAssetFile.array()
|
|
7022
7035
|
});
|
|
7023
7036
|
|
|
7024
7037
|
// src/api/dto/liveblocks/auth-response.ts
|
|
7025
|
-
import { z as
|
|
7026
|
-
var DTOLiveblocksAuthResponse =
|
|
7027
|
-
token:
|
|
7038
|
+
import { z as z247 } from "zod";
|
|
7039
|
+
var DTOLiveblocksAuthResponse = z247.object({
|
|
7040
|
+
token: z247.string()
|
|
7028
7041
|
});
|
|
7029
7042
|
|
|
7030
7043
|
// src/api/dto/themes/override.ts
|
|
7031
|
-
import { z as
|
|
7044
|
+
import { z as z248 } from "zod";
|
|
7032
7045
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
7033
|
-
|
|
7034
|
-
tokenPersistentId:
|
|
7046
|
+
z248.object({
|
|
7047
|
+
tokenPersistentId: z248.string(),
|
|
7035
7048
|
origin: ThemeOverrideOrigin.optional()
|
|
7036
7049
|
})
|
|
7037
7050
|
);
|
|
7038
7051
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
7039
|
-
|
|
7040
|
-
tokenPersistentId:
|
|
7052
|
+
z248.object({
|
|
7053
|
+
tokenPersistentId: z248.string()
|
|
7041
7054
|
})
|
|
7042
7055
|
);
|
|
7043
7056
|
|
|
7044
7057
|
// src/api/dto/themes/theme.ts
|
|
7045
|
-
import { z as
|
|
7046
|
-
var DTOTheme =
|
|
7047
|
-
id:
|
|
7048
|
-
persistentId:
|
|
7049
|
-
designSystemVersionId:
|
|
7050
|
-
brandId:
|
|
7058
|
+
import { z as z249 } from "zod";
|
|
7059
|
+
var DTOTheme = z249.object({
|
|
7060
|
+
id: z249.string(),
|
|
7061
|
+
persistentId: z249.string(),
|
|
7062
|
+
designSystemVersionId: z249.string(),
|
|
7063
|
+
brandId: z249.string(),
|
|
7051
7064
|
meta: ObjectMeta,
|
|
7052
|
-
codeName:
|
|
7065
|
+
codeName: z249.string(),
|
|
7053
7066
|
overrides: DTOThemeOverride.array()
|
|
7054
7067
|
});
|
|
7055
|
-
var DTOThemeResponse =
|
|
7068
|
+
var DTOThemeResponse = z249.object({
|
|
7056
7069
|
theme: DTOTheme
|
|
7057
7070
|
});
|
|
7058
|
-
var DTOThemeListResponse =
|
|
7071
|
+
var DTOThemeListResponse = z249.object({
|
|
7059
7072
|
themes: DTOTheme.array()
|
|
7060
7073
|
});
|
|
7061
|
-
var DTOThemeCreatePayload =
|
|
7074
|
+
var DTOThemeCreatePayload = z249.object({
|
|
7062
7075
|
meta: ObjectMeta,
|
|
7063
|
-
persistentId:
|
|
7064
|
-
brandId:
|
|
7065
|
-
codeName:
|
|
7076
|
+
persistentId: z249.string(),
|
|
7077
|
+
brandId: z249.string(),
|
|
7078
|
+
codeName: z249.string(),
|
|
7066
7079
|
overrides: DTOThemeOverride.array()
|
|
7067
7080
|
});
|
|
7068
7081
|
|
|
@@ -7193,6 +7206,7 @@ var CodegenEndpoint = class {
|
|
|
7193
7206
|
};
|
|
7194
7207
|
|
|
7195
7208
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
7209
|
+
import { z as z250 } from "zod";
|
|
7196
7210
|
var BrandsEndpoint = class {
|
|
7197
7211
|
constructor(requestExecutor) {
|
|
7198
7212
|
this.requestExecutor = requestExecutor;
|
|
@@ -7219,6 +7233,17 @@ var BrandsEndpoint = class {
|
|
|
7219
7233
|
}
|
|
7220
7234
|
);
|
|
7221
7235
|
}
|
|
7236
|
+
update(dsId, vId, brandId, body) {
|
|
7237
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, DTOBrandGetResponse, {
|
|
7238
|
+
method: "PUT",
|
|
7239
|
+
body
|
|
7240
|
+
});
|
|
7241
|
+
}
|
|
7242
|
+
delete(dsId, vId, brandId) {
|
|
7243
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z250.any(), {
|
|
7244
|
+
method: "DELETE"
|
|
7245
|
+
});
|
|
7246
|
+
}
|
|
7222
7247
|
};
|
|
7223
7248
|
|
|
7224
7249
|
// src/api/endpoints/design-system/versions/documentation.ts
|
|
@@ -7244,16 +7269,25 @@ var DocumentationEndpoint = class {
|
|
|
7244
7269
|
};
|
|
7245
7270
|
|
|
7246
7271
|
// src/api/endpoints/design-system/versions/ds-components.ts
|
|
7247
|
-
import { z as z251 } from "zod";
|
|
7248
7272
|
var DesignSystemComponentEndpoint = class {
|
|
7249
7273
|
constructor(requestExecutor) {
|
|
7250
7274
|
this.requestExecutor = requestExecutor;
|
|
7251
7275
|
}
|
|
7276
|
+
async list(dsId, vId) {
|
|
7277
|
+
return this.requestExecutor.json(
|
|
7278
|
+
`/design-systems/${dsId}/versions/${vId}/design-system-components`,
|
|
7279
|
+
DTODesignSystemComponentListResponse
|
|
7280
|
+
);
|
|
7281
|
+
}
|
|
7252
7282
|
async create(dsId, vId, body) {
|
|
7253
|
-
return this.requestExecutor.json(
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7283
|
+
return this.requestExecutor.json(
|
|
7284
|
+
`/design-systems/${dsId}/versions/${vId}/design-system-components`,
|
|
7285
|
+
DTODesignSystemComponentResponse,
|
|
7286
|
+
{
|
|
7287
|
+
body,
|
|
7288
|
+
method: "POST"
|
|
7289
|
+
}
|
|
7290
|
+
);
|
|
7257
7291
|
}
|
|
7258
7292
|
};
|
|
7259
7293
|
|
|
@@ -7360,7 +7394,7 @@ var ImportJobsEndpoint = class {
|
|
|
7360
7394
|
};
|
|
7361
7395
|
|
|
7362
7396
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
7363
|
-
import { z as
|
|
7397
|
+
import { z as z251 } from "zod";
|
|
7364
7398
|
var OverridesEndpoint = class {
|
|
7365
7399
|
constructor(requestExecutor) {
|
|
7366
7400
|
this.requestExecutor = requestExecutor;
|
|
@@ -7368,7 +7402,7 @@ var OverridesEndpoint = class {
|
|
|
7368
7402
|
create(dsId, versionId, themeId, body) {
|
|
7369
7403
|
return this.requestExecutor.json(
|
|
7370
7404
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
7371
|
-
|
|
7405
|
+
z251.any(),
|
|
7372
7406
|
{
|
|
7373
7407
|
method: "POST",
|
|
7374
7408
|
body
|
|
@@ -7378,7 +7412,7 @@ var OverridesEndpoint = class {
|
|
|
7378
7412
|
};
|
|
7379
7413
|
|
|
7380
7414
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
7381
|
-
import { z as
|
|
7415
|
+
import { z as z252 } from "zod";
|
|
7382
7416
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
7383
7417
|
constructor(requestExecutor) {
|
|
7384
7418
|
this.requestExecutor = requestExecutor;
|
|
@@ -7406,7 +7440,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
7406
7440
|
delete(designSystemId, versionId, defId) {
|
|
7407
7441
|
return this.requestExecutor.json(
|
|
7408
7442
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
7409
|
-
|
|
7443
|
+
z252.any(),
|
|
7410
7444
|
{ method: "DELETE" }
|
|
7411
7445
|
);
|
|
7412
7446
|
}
|
|
@@ -7445,7 +7479,7 @@ var VersionStatsEndpoint = class {
|
|
|
7445
7479
|
};
|
|
7446
7480
|
|
|
7447
7481
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
7448
|
-
import { z as
|
|
7482
|
+
import { z as z253 } from "zod";
|
|
7449
7483
|
var ThemesEndpoint = class {
|
|
7450
7484
|
constructor(requestExecutor) {
|
|
7451
7485
|
this.requestExecutor = requestExecutor;
|
|
@@ -7468,7 +7502,7 @@ var ThemesEndpoint = class {
|
|
|
7468
7502
|
});
|
|
7469
7503
|
}
|
|
7470
7504
|
delete(dsId, versionId, themeId) {
|
|
7471
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
7505
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z253.any(), {
|
|
7472
7506
|
method: "DELETE"
|
|
7473
7507
|
});
|
|
7474
7508
|
}
|
|
@@ -7615,7 +7649,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
7615
7649
|
};
|
|
7616
7650
|
|
|
7617
7651
|
// src/api/endpoints/design-system/design-systems.ts
|
|
7618
|
-
import { z as
|
|
7652
|
+
import { z as z255 } from "zod";
|
|
7619
7653
|
|
|
7620
7654
|
// src/api/endpoints/design-system/members.ts
|
|
7621
7655
|
var DesignSystemMembersEndpoint = class {
|
|
@@ -7636,7 +7670,7 @@ var DesignSystemMembersEndpoint = class {
|
|
|
7636
7670
|
};
|
|
7637
7671
|
|
|
7638
7672
|
// src/api/endpoints/design-system/sources.ts
|
|
7639
|
-
import { z as
|
|
7673
|
+
import { z as z254 } from "zod";
|
|
7640
7674
|
var DesignSystemSourcesEndpoint = class {
|
|
7641
7675
|
constructor(requestExecutor) {
|
|
7642
7676
|
this.requestExecutor = requestExecutor;
|
|
@@ -7651,7 +7685,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
7651
7685
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
7652
7686
|
}
|
|
7653
7687
|
delete(dsId, sourceId) {
|
|
7654
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
7688
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z254.any(), { method: "DELETE" });
|
|
7655
7689
|
}
|
|
7656
7690
|
figmaImport(dsId, payload) {
|
|
7657
7691
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -7686,7 +7720,7 @@ var DesignSystemsEndpoint = class {
|
|
|
7686
7720
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
7687
7721
|
}
|
|
7688
7722
|
delete(dsId) {
|
|
7689
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
7723
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z255.any(), { method: "DELETE" });
|
|
7690
7724
|
}
|
|
7691
7725
|
update(dsId, body) {
|
|
7692
7726
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -7730,7 +7764,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
7730
7764
|
};
|
|
7731
7765
|
|
|
7732
7766
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
7733
|
-
import { z as
|
|
7767
|
+
import { z as z256 } from "zod";
|
|
7734
7768
|
var WorkspaceMembersEndpoint = class {
|
|
7735
7769
|
constructor(requestExecutor) {
|
|
7736
7770
|
this.requestExecutor = requestExecutor;
|
|
@@ -7747,7 +7781,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7747
7781
|
});
|
|
7748
7782
|
}
|
|
7749
7783
|
invite(workspaceId, body) {
|
|
7750
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
7784
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z256.any(), { method: "POST", body });
|
|
7751
7785
|
}
|
|
7752
7786
|
delete(workspaceId, userId) {
|
|
7753
7787
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -7757,7 +7791,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
7757
7791
|
};
|
|
7758
7792
|
|
|
7759
7793
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
7760
|
-
import { z as
|
|
7794
|
+
import { z as z257 } from "zod";
|
|
7761
7795
|
var WorkspacesEndpoint = class {
|
|
7762
7796
|
constructor(requestExecutor) {
|
|
7763
7797
|
this.requestExecutor = requestExecutor;
|
|
@@ -7780,10 +7814,10 @@ var WorkspacesEndpoint = class {
|
|
|
7780
7814
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
7781
7815
|
}
|
|
7782
7816
|
delete(workspaceId) {
|
|
7783
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
7817
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z257.any(), { method: "DELETE" });
|
|
7784
7818
|
}
|
|
7785
7819
|
subscription(workspaceId) {
|
|
7786
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
7820
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z257.any(), { method: "GET" });
|
|
7787
7821
|
}
|
|
7788
7822
|
transferOwnership(workspaceId, body) {
|
|
7789
7823
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -7870,9 +7904,9 @@ ${bodyText}`,
|
|
|
7870
7904
|
|
|
7871
7905
|
// src/api/transport/request-executor.ts
|
|
7872
7906
|
import fetch from "node-fetch";
|
|
7873
|
-
import { z as
|
|
7874
|
-
var ResponseWrapper =
|
|
7875
|
-
result:
|
|
7907
|
+
import { z as z258 } from "zod";
|
|
7908
|
+
var ResponseWrapper = z258.object({
|
|
7909
|
+
result: z258.record(z258.any())
|
|
7876
7910
|
});
|
|
7877
7911
|
var RequestExecutor = class {
|
|
7878
7912
|
constructor(testServerConfig) {
|
|
@@ -7947,7 +7981,7 @@ var SupernovaApiClient = class {
|
|
|
7947
7981
|
};
|
|
7948
7982
|
|
|
7949
7983
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7950
|
-
import { z as
|
|
7984
|
+
import { z as z259 } from "zod";
|
|
7951
7985
|
|
|
7952
7986
|
// src/yjs/version-room/base.ts
|
|
7953
7987
|
var VersionRoomBaseYDoc = class {
|
|
@@ -8477,24 +8511,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
8477
8511
|
};
|
|
8478
8512
|
|
|
8479
8513
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8480
|
-
var DocumentationHierarchySettings =
|
|
8481
|
-
routingVersion:
|
|
8482
|
-
isDraftFeatureAdopted:
|
|
8483
|
-
isApprovalFeatureEnabled:
|
|
8484
|
-
approvalRequiredForPublishing:
|
|
8514
|
+
var DocumentationHierarchySettings = z259.object({
|
|
8515
|
+
routingVersion: z259.string(),
|
|
8516
|
+
isDraftFeatureAdopted: z259.boolean(),
|
|
8517
|
+
isApprovalFeatureEnabled: z259.boolean(),
|
|
8518
|
+
approvalRequiredForPublishing: z259.boolean()
|
|
8485
8519
|
});
|
|
8486
8520
|
function yjsToDocumentationHierarchy(doc) {
|
|
8487
8521
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
8488
8522
|
}
|
|
8489
8523
|
|
|
8490
8524
|
// src/yjs/design-system-content/item-configuration.ts
|
|
8491
|
-
import { z as
|
|
8492
|
-
var DTODocumentationPageRoomHeaderData =
|
|
8493
|
-
title:
|
|
8525
|
+
import { z as z260 } from "zod";
|
|
8526
|
+
var DTODocumentationPageRoomHeaderData = z260.object({
|
|
8527
|
+
title: z260.string(),
|
|
8494
8528
|
configuration: DTODocumentationItemConfigurationV2
|
|
8495
8529
|
});
|
|
8496
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
8497
|
-
title:
|
|
8530
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z260.object({
|
|
8531
|
+
title: z260.string().optional(),
|
|
8498
8532
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
8499
8533
|
});
|
|
8500
8534
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -8545,7 +8579,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
8545
8579
|
header: rawHeader
|
|
8546
8580
|
};
|
|
8547
8581
|
return {
|
|
8548
|
-
title:
|
|
8582
|
+
title: z260.string().parse(title),
|
|
8549
8583
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
8550
8584
|
};
|
|
8551
8585
|
}
|
|
@@ -8555,9 +8589,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
8555
8589
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
8556
8590
|
|
|
8557
8591
|
// src/yjs/docs-editor/model/page.ts
|
|
8558
|
-
import { z as
|
|
8559
|
-
var DocumentationPageEditorModel =
|
|
8560
|
-
blocks:
|
|
8592
|
+
import { z as z261 } from "zod";
|
|
8593
|
+
var DocumentationPageEditorModel = z261.object({
|
|
8594
|
+
blocks: z261.array(DocumentationPageContentItem)
|
|
8561
8595
|
});
|
|
8562
8596
|
|
|
8563
8597
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -12078,7 +12112,7 @@ var blocks = [
|
|
|
12078
12112
|
|
|
12079
12113
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
12080
12114
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
12081
|
-
import { z as
|
|
12115
|
+
import { z as z262 } from "zod";
|
|
12082
12116
|
function yDocToPage(yDoc, definitions) {
|
|
12083
12117
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
12084
12118
|
}
|
|
@@ -12158,7 +12192,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
12158
12192
|
return null;
|
|
12159
12193
|
return {
|
|
12160
12194
|
id,
|
|
12161
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
12195
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z262.string()) ?? "",
|
|
12162
12196
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
12163
12197
|
};
|
|
12164
12198
|
}
|
|
@@ -12193,7 +12227,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
12193
12227
|
});
|
|
12194
12228
|
}
|
|
12195
12229
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
12196
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
12230
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z262.string());
|
|
12197
12231
|
if (!definitionId) {
|
|
12198
12232
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
12199
12233
|
return [];
|
|
@@ -12235,7 +12269,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
12235
12269
|
if (!id)
|
|
12236
12270
|
return null;
|
|
12237
12271
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12238
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
12272
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z262.string().optional()));
|
|
12239
12273
|
return {
|
|
12240
12274
|
id,
|
|
12241
12275
|
type: "Block",
|
|
@@ -12363,10 +12397,10 @@ function parseRichTextAttribute(mark) {
|
|
|
12363
12397
|
return null;
|
|
12364
12398
|
}
|
|
12365
12399
|
function parseProsemirrorLink(mark) {
|
|
12366
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
12400
|
+
const href = getProsemirrorAttribute(mark, "href", z262.string().optional());
|
|
12367
12401
|
if (!href)
|
|
12368
12402
|
return null;
|
|
12369
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
12403
|
+
const target = getProsemirrorAttribute(mark, "target", z262.string().optional());
|
|
12370
12404
|
const openInNewTab = target === "_blank";
|
|
12371
12405
|
if (href.startsWith("@")) {
|
|
12372
12406
|
return {
|
|
@@ -12385,10 +12419,10 @@ function parseProsemirrorLink(mark) {
|
|
|
12385
12419
|
}
|
|
12386
12420
|
}
|
|
12387
12421
|
function parseProsemirrorCommentHighlight(mark) {
|
|
12388
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
12422
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z262.string().optional());
|
|
12389
12423
|
if (!highlightId)
|
|
12390
12424
|
return null;
|
|
12391
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
12425
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z262.boolean().optional()) ?? false;
|
|
12392
12426
|
return {
|
|
12393
12427
|
type: "Comment",
|
|
12394
12428
|
commentHighlightId: highlightId,
|
|
@@ -12400,7 +12434,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
12400
12434
|
if (!id)
|
|
12401
12435
|
return null;
|
|
12402
12436
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
12403
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
12437
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z262.boolean().optional()) !== false;
|
|
12404
12438
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
12405
12439
|
if (!tableChild) {
|
|
12406
12440
|
return emptyTable(id, variantId, 0);
|
|
@@ -12447,9 +12481,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
12447
12481
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
12448
12482
|
if (!id)
|
|
12449
12483
|
return null;
|
|
12450
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
12484
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z262.string().optional());
|
|
12451
12485
|
let columnWidth;
|
|
12452
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
12486
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z262.array(z262.number()).nullish());
|
|
12453
12487
|
if (columnWidthArray) {
|
|
12454
12488
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
12455
12489
|
}
|
|
@@ -12487,7 +12521,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
12487
12521
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
12488
12522
|
};
|
|
12489
12523
|
case "image":
|
|
12490
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12524
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z262.string());
|
|
12491
12525
|
if (!items)
|
|
12492
12526
|
return null;
|
|
12493
12527
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -12607,7 +12641,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
12607
12641
|
);
|
|
12608
12642
|
}
|
|
12609
12643
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
12610
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
12644
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z262.string());
|
|
12611
12645
|
if (!itemsString)
|
|
12612
12646
|
return null;
|
|
12613
12647
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -12619,18 +12653,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
12619
12653
|
}
|
|
12620
12654
|
function parseAppearance(prosemirrorNode) {
|
|
12621
12655
|
let appearance = {};
|
|
12622
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
12656
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z262.string().optional());
|
|
12623
12657
|
if (rawAppearanceString) {
|
|
12624
12658
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
12625
12659
|
if (parsedAppearance.success) {
|
|
12626
12660
|
appearance = parsedAppearance.data;
|
|
12627
12661
|
}
|
|
12628
12662
|
}
|
|
12629
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
12663
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z262.number().optional());
|
|
12630
12664
|
if (columns) {
|
|
12631
12665
|
appearance.numberOfColumns = columns;
|
|
12632
12666
|
}
|
|
12633
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
12667
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z262.string().optional());
|
|
12634
12668
|
if (backgroundColor) {
|
|
12635
12669
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
12636
12670
|
if (parsedColor.success) {
|
|
@@ -12725,13 +12759,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
12725
12759
|
}
|
|
12726
12760
|
}
|
|
12727
12761
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
12728
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
12762
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z262.string());
|
|
12729
12763
|
if (!id)
|
|
12730
12764
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
12731
12765
|
return id;
|
|
12732
12766
|
}
|
|
12733
12767
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
12734
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
12768
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z262.string()));
|
|
12735
12769
|
}
|
|
12736
12770
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
12737
12771
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -12805,11 +12839,12 @@ export {
|
|
|
12805
12839
|
DTOBffImportRequestBody,
|
|
12806
12840
|
DTOBffUploadImportRequestBody,
|
|
12807
12841
|
DTOBrand,
|
|
12842
|
+
DTOBrandCreatePayload,
|
|
12808
12843
|
DTOBrandCreateResponse,
|
|
12809
12844
|
DTOBrandGetResponse,
|
|
12845
|
+
DTOBrandUpdatePayload,
|
|
12810
12846
|
DTOBrandsListResponse,
|
|
12811
12847
|
DTOColorTokenInlineData,
|
|
12812
|
-
DTOCreateBrandInput,
|
|
12813
12848
|
DTOCreateDocumentationGroupInput,
|
|
12814
12849
|
DTOCreateDocumentationPageInputV2,
|
|
12815
12850
|
DTOCreateDocumentationTabInput,
|
|
@@ -12829,7 +12864,10 @@ export {
|
|
|
12829
12864
|
DTODeleteDocumentationTabGroupInput,
|
|
12830
12865
|
DTODesignElementsDataDiffResponse,
|
|
12831
12866
|
DTODesignSystem,
|
|
12867
|
+
DTODesignSystemComponent,
|
|
12832
12868
|
DTODesignSystemComponentCreateInput,
|
|
12869
|
+
DTODesignSystemComponentListResponse,
|
|
12870
|
+
DTODesignSystemComponentResponse,
|
|
12833
12871
|
DTODesignSystemContactsResponse,
|
|
12834
12872
|
DTODesignSystemCreateInput,
|
|
12835
12873
|
DTODesignSystemInvitation,
|
|
@@ -12961,6 +12999,17 @@ export {
|
|
|
12961
12999
|
DTOExporterListResponse,
|
|
12962
13000
|
DTOExporterMembership,
|
|
12963
13001
|
DTOExporterMembershipRole,
|
|
13002
|
+
DTOExporterPropertyDefinition,
|
|
13003
|
+
DTOExporterPropertyDefinitionArray,
|
|
13004
|
+
DTOExporterPropertyDefinitionBoolean,
|
|
13005
|
+
DTOExporterPropertyDefinitionEnum,
|
|
13006
|
+
DTOExporterPropertyDefinitionNumber,
|
|
13007
|
+
DTOExporterPropertyDefinitionObject,
|
|
13008
|
+
DTOExporterPropertyDefinitionString,
|
|
13009
|
+
DTOExporterPropertyDefinitionValue,
|
|
13010
|
+
DTOExporterPropertyDefinitionValueMap,
|
|
13011
|
+
DTOExporterPropertyDefinitionsResponse,
|
|
13012
|
+
DTOExporterPropertyType,
|
|
12964
13013
|
DTOExporterSource,
|
|
12965
13014
|
DTOExporterType,
|
|
12966
13015
|
DTOExporterUpdateInput,
|