@supernova-studio/client 1.4.12 → 1.4.14
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 +60 -1
- package/dist/index.d.ts +60 -1
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +621 -604
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4679,6 +4679,7 @@ var Session = z166.object({
|
|
|
4679
4679
|
id: z166.string(),
|
|
4680
4680
|
expiresAt: z166.coerce.date(),
|
|
4681
4681
|
userId: z166.string().nullable(),
|
|
4682
|
+
anonymousId: z166.string().nullable(),
|
|
4682
4683
|
data: SessionData
|
|
4683
4684
|
});
|
|
4684
4685
|
var AuthTokens = z166.object({
|
|
@@ -6500,27 +6501,41 @@ var DTODesignTokenGroupCreatePayload = z228.object({
|
|
|
6500
6501
|
childrenIds: z228.string().array()
|
|
6501
6502
|
});
|
|
6502
6503
|
|
|
6503
|
-
// src/api/dto/documentation/
|
|
6504
|
+
// src/api/dto/documentation/analytics.ts
|
|
6504
6505
|
import { z as z229 } from "zod";
|
|
6506
|
+
var DTOPublishedDocPageVisitData = z229.object({
|
|
6507
|
+
id: z229.string(),
|
|
6508
|
+
versionId: z229.string(),
|
|
6509
|
+
pagePersistentId: z229.string(),
|
|
6510
|
+
locale: z229.string().optional(),
|
|
6511
|
+
timestamp: z229.coerce.date(),
|
|
6512
|
+
visits: z229.number(),
|
|
6513
|
+
userId: z229.string().optional(),
|
|
6514
|
+
anonymousId: z229.string().optional()
|
|
6515
|
+
});
|
|
6516
|
+
var DTOAnalyticsDataResponse = z229.array(DTOPublishedDocPageVisitData);
|
|
6517
|
+
|
|
6518
|
+
// src/api/dto/documentation/anchor.ts
|
|
6519
|
+
import { z as z230 } from "zod";
|
|
6505
6520
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
6506
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
6507
|
-
anchors:
|
|
6521
|
+
var DTOGetDocumentationPageAnchorsResponse = z230.object({
|
|
6522
|
+
anchors: z230.array(DTODocumentationPageAnchor)
|
|
6508
6523
|
});
|
|
6509
6524
|
|
|
6510
6525
|
// src/api/dto/documentation/approvals.ts
|
|
6511
|
-
import { z as
|
|
6512
|
-
var DTODocumentationPageApprovalState =
|
|
6526
|
+
import { z as z231 } from "zod";
|
|
6527
|
+
var DTODocumentationPageApprovalState = z231.object({
|
|
6513
6528
|
approvalState: DocumentationPageApprovalState,
|
|
6514
|
-
pagePersistentId:
|
|
6515
|
-
updatedByUserId:
|
|
6516
|
-
designSystemVersionId:
|
|
6517
|
-
updatedAt:
|
|
6518
|
-
createdAt:
|
|
6519
|
-
});
|
|
6520
|
-
var DTODocumentationGroupApprovalState =
|
|
6521
|
-
persistentId:
|
|
6522
|
-
groupPersistentId:
|
|
6523
|
-
designSystemVersionId:
|
|
6529
|
+
pagePersistentId: z231.string(),
|
|
6530
|
+
updatedByUserId: z231.string(),
|
|
6531
|
+
designSystemVersionId: z231.string(),
|
|
6532
|
+
updatedAt: z231.coerce.date(),
|
|
6533
|
+
createdAt: z231.coerce.date()
|
|
6534
|
+
});
|
|
6535
|
+
var DTODocumentationGroupApprovalState = z231.object({
|
|
6536
|
+
persistentId: z231.string(),
|
|
6537
|
+
groupPersistentId: z231.string(),
|
|
6538
|
+
designSystemVersionId: z231.string(),
|
|
6524
6539
|
approvalState: DocumentationPageApprovalState
|
|
6525
6540
|
});
|
|
6526
6541
|
|
|
@@ -6528,68 +6543,68 @@ var DTODocumentationGroupApprovalState = z230.object({
|
|
|
6528
6543
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
6529
6544
|
|
|
6530
6545
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6531
|
-
import { z as
|
|
6546
|
+
import { z as z236 } from "zod";
|
|
6532
6547
|
|
|
6533
6548
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6534
|
-
import { z as
|
|
6549
|
+
import { z as z235 } from "zod";
|
|
6535
6550
|
|
|
6536
6551
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6537
|
-
import { z as
|
|
6552
|
+
import { z as z233 } from "zod";
|
|
6538
6553
|
|
|
6539
6554
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
6540
|
-
import { z as
|
|
6555
|
+
import { z as z232 } from "zod";
|
|
6541
6556
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
6542
|
-
var DTODocumentationItemConfigurationV2 =
|
|
6543
|
-
showSidebar:
|
|
6544
|
-
isPrivate:
|
|
6545
|
-
isHidden:
|
|
6557
|
+
var DTODocumentationItemConfigurationV2 = z232.object({
|
|
6558
|
+
showSidebar: z232.boolean(),
|
|
6559
|
+
isPrivate: z232.boolean(),
|
|
6560
|
+
isHidden: z232.boolean(),
|
|
6546
6561
|
header: DTODocumentationItemHeaderV2
|
|
6547
6562
|
});
|
|
6548
6563
|
|
|
6549
6564
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
6550
|
-
var DTODocumentationDraftChangeType =
|
|
6551
|
-
var DTODocumentationDraftStateCreated =
|
|
6552
|
-
changeType:
|
|
6553
|
-
});
|
|
6554
|
-
var DTODocumentationDraftStateUpdated =
|
|
6555
|
-
changeType:
|
|
6556
|
-
changes:
|
|
6557
|
-
previousTitle:
|
|
6565
|
+
var DTODocumentationDraftChangeType = z233.enum(["Created", "Updated", "Deleted"]);
|
|
6566
|
+
var DTODocumentationDraftStateCreated = z233.object({
|
|
6567
|
+
changeType: z233.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
6568
|
+
});
|
|
6569
|
+
var DTODocumentationDraftStateUpdated = z233.object({
|
|
6570
|
+
changeType: z233.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
6571
|
+
changes: z233.object({
|
|
6572
|
+
previousTitle: z233.string().optional(),
|
|
6558
6573
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
6559
|
-
previousContentHash:
|
|
6574
|
+
previousContentHash: z233.string().optional()
|
|
6560
6575
|
})
|
|
6561
6576
|
});
|
|
6562
|
-
var DTODocumentationDraftStateDeleted =
|
|
6563
|
-
changeType:
|
|
6564
|
-
deletedAt:
|
|
6565
|
-
deletedByUserId:
|
|
6577
|
+
var DTODocumentationDraftStateDeleted = z233.object({
|
|
6578
|
+
changeType: z233.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
6579
|
+
deletedAt: z233.coerce.date(),
|
|
6580
|
+
deletedByUserId: z233.string()
|
|
6566
6581
|
});
|
|
6567
|
-
var DTODocumentationDraftState =
|
|
6582
|
+
var DTODocumentationDraftState = z233.discriminatedUnion("changeType", [
|
|
6568
6583
|
DTODocumentationDraftStateCreated,
|
|
6569
6584
|
DTODocumentationDraftStateUpdated,
|
|
6570
6585
|
DTODocumentationDraftStateDeleted
|
|
6571
6586
|
]);
|
|
6572
6587
|
|
|
6573
6588
|
// src/api/dto/elements/documentation/metadata.ts
|
|
6574
|
-
import { z as
|
|
6575
|
-
var DTODocumentationPublishMetadata =
|
|
6576
|
-
lastPublishedByUserId:
|
|
6577
|
-
lastPublishedAt:
|
|
6589
|
+
import { z as z234 } from "zod";
|
|
6590
|
+
var DTODocumentationPublishMetadata = z234.object({
|
|
6591
|
+
lastPublishedByUserId: z234.string(),
|
|
6592
|
+
lastPublishedAt: z234.coerce.date()
|
|
6578
6593
|
});
|
|
6579
6594
|
|
|
6580
6595
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
6581
|
-
var DTODocumentationPageV2 =
|
|
6582
|
-
id:
|
|
6583
|
-
persistentId:
|
|
6584
|
-
designSystemVersionId:
|
|
6585
|
-
title:
|
|
6596
|
+
var DTODocumentationPageV2 = z235.object({
|
|
6597
|
+
id: z235.string(),
|
|
6598
|
+
persistentId: z235.string(),
|
|
6599
|
+
designSystemVersionId: z235.string(),
|
|
6600
|
+
title: z235.string(),
|
|
6586
6601
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6587
|
-
shortPersistentId:
|
|
6588
|
-
slug:
|
|
6589
|
-
userSlug:
|
|
6590
|
-
createdAt:
|
|
6591
|
-
updatedAt:
|
|
6592
|
-
path:
|
|
6602
|
+
shortPersistentId: z235.string(),
|
|
6603
|
+
slug: z235.string().optional(),
|
|
6604
|
+
userSlug: z235.string().optional(),
|
|
6605
|
+
createdAt: z235.coerce.date(),
|
|
6606
|
+
updatedAt: z235.coerce.date(),
|
|
6607
|
+
path: z235.string(),
|
|
6593
6608
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6594
6609
|
draftState: DTODocumentationDraftState.optional(),
|
|
6595
6610
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -6597,266 +6612,266 @@ var DTODocumentationPageV2 = z234.object({
|
|
|
6597
6612
|
/** Defines the approval state of the documentation page */
|
|
6598
6613
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
6599
6614
|
/** Id of the page document room */
|
|
6600
|
-
liveblocksRoomId:
|
|
6615
|
+
liveblocksRoomId: z235.string().optional(),
|
|
6601
6616
|
// Backward compatibility
|
|
6602
|
-
type:
|
|
6617
|
+
type: z235.literal("Page")
|
|
6603
6618
|
});
|
|
6604
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
6619
|
+
var DTOCreateDocumentationPageInputV2 = z235.object({
|
|
6605
6620
|
// Identifier
|
|
6606
|
-
persistentId:
|
|
6621
|
+
persistentId: z235.string(),
|
|
6607
6622
|
// Page properties
|
|
6608
|
-
title:
|
|
6623
|
+
title: z235.string(),
|
|
6609
6624
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6610
6625
|
// Page placement properties
|
|
6611
|
-
parentPersistentId:
|
|
6612
|
-
afterPersistentId:
|
|
6626
|
+
parentPersistentId: z235.string(),
|
|
6627
|
+
afterPersistentId: z235.string().nullish()
|
|
6613
6628
|
});
|
|
6614
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
6629
|
+
var DTOUpdateDocumentationPageInputV2 = z235.object({
|
|
6615
6630
|
// Identifier of the page to update
|
|
6616
|
-
id:
|
|
6631
|
+
id: z235.string(),
|
|
6617
6632
|
// Page properties
|
|
6618
|
-
title:
|
|
6633
|
+
title: z235.string().optional(),
|
|
6619
6634
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6620
6635
|
});
|
|
6621
|
-
var DTOUpdateDocumentationPageDocumentInputV2 =
|
|
6636
|
+
var DTOUpdateDocumentationPageDocumentInputV2 = z235.object({
|
|
6622
6637
|
// Identifier of the page to update
|
|
6623
|
-
id:
|
|
6638
|
+
id: z235.string(),
|
|
6624
6639
|
// Page properties
|
|
6625
|
-
documentItems:
|
|
6640
|
+
documentItems: z235.array(DocumentationPageContentItem)
|
|
6626
6641
|
});
|
|
6627
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
6642
|
+
var DTOMoveDocumentationPageInputV2 = z235.object({
|
|
6628
6643
|
// Identifier of the group to update
|
|
6629
|
-
id:
|
|
6644
|
+
id: z235.string(),
|
|
6630
6645
|
// Page placement properties
|
|
6631
|
-
parentPersistentId:
|
|
6632
|
-
afterPersistentId:
|
|
6646
|
+
parentPersistentId: z235.string(),
|
|
6647
|
+
afterPersistentId: z235.string().nullish()
|
|
6633
6648
|
});
|
|
6634
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
6649
|
+
var DTODuplicateDocumentationPageInputV2 = z235.object({
|
|
6635
6650
|
// Identifier of the page to duplicate from
|
|
6636
|
-
id:
|
|
6651
|
+
id: z235.string(),
|
|
6637
6652
|
// New page persistent id
|
|
6638
|
-
persistentId:
|
|
6653
|
+
persistentId: z235.string(),
|
|
6639
6654
|
// Page placement properties
|
|
6640
|
-
parentPersistentId:
|
|
6641
|
-
afterPersistentId:
|
|
6655
|
+
parentPersistentId: z235.string(),
|
|
6656
|
+
afterPersistentId: z235.string().nullish()
|
|
6642
6657
|
});
|
|
6643
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
6658
|
+
var DTODeleteDocumentationPageInputV2 = z235.object({
|
|
6644
6659
|
// Identifier
|
|
6645
|
-
id:
|
|
6660
|
+
id: z235.string()
|
|
6646
6661
|
});
|
|
6647
|
-
var DTORestoreDocumentationPageInput =
|
|
6648
|
-
persistentId:
|
|
6649
|
-
snapshotId:
|
|
6662
|
+
var DTORestoreDocumentationPageInput = z235.object({
|
|
6663
|
+
persistentId: z235.string(),
|
|
6664
|
+
snapshotId: z235.string().optional()
|
|
6650
6665
|
});
|
|
6651
|
-
var DTORestoreDocumentationGroupInput =
|
|
6652
|
-
persistentId:
|
|
6653
|
-
snapshotId:
|
|
6666
|
+
var DTORestoreDocumentationGroupInput = z235.object({
|
|
6667
|
+
persistentId: z235.string(),
|
|
6668
|
+
snapshotId: z235.string().optional()
|
|
6654
6669
|
});
|
|
6655
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
6656
|
-
persistentId:
|
|
6670
|
+
var DTODocumentationPageApprovalStateChangeInput = z235.object({
|
|
6671
|
+
persistentId: z235.string(),
|
|
6657
6672
|
approvalState: DocumentationPageApprovalState.optional()
|
|
6658
6673
|
});
|
|
6659
6674
|
|
|
6660
6675
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
6661
|
-
var DTODocumentationPageSnapshot =
|
|
6662
|
-
id:
|
|
6663
|
-
designSystemVersionId:
|
|
6664
|
-
createdAt:
|
|
6665
|
-
updatedAt:
|
|
6676
|
+
var DTODocumentationPageSnapshot = z236.object({
|
|
6677
|
+
id: z236.string(),
|
|
6678
|
+
designSystemVersionId: z236.string(),
|
|
6679
|
+
createdAt: z236.string(),
|
|
6680
|
+
updatedAt: z236.string(),
|
|
6666
6681
|
documentationPage: DTODocumentationPageV2,
|
|
6667
|
-
pageContentHash:
|
|
6682
|
+
pageContentHash: z236.string(),
|
|
6668
6683
|
reason: DesignElementSnapshotReason
|
|
6669
6684
|
});
|
|
6670
6685
|
|
|
6671
6686
|
// src/api/dto/documentation/link-preview.ts
|
|
6672
|
-
import { z as
|
|
6673
|
-
var DTODocumentationLinkPreviewResponse =
|
|
6687
|
+
import { z as z237 } from "zod";
|
|
6688
|
+
var DTODocumentationLinkPreviewResponse = z237.object({
|
|
6674
6689
|
linkPreview: DocumentationLinkPreview
|
|
6675
6690
|
});
|
|
6676
|
-
var DTODocumentationLinkPreviewRequest =
|
|
6677
|
-
url:
|
|
6678
|
-
documentationItemPersistentId:
|
|
6691
|
+
var DTODocumentationLinkPreviewRequest = z237.object({
|
|
6692
|
+
url: z237.string().optional(),
|
|
6693
|
+
documentationItemPersistentId: z237.string().optional()
|
|
6679
6694
|
});
|
|
6680
6695
|
|
|
6681
6696
|
// src/api/dto/documentation/publish.ts
|
|
6682
|
-
import { z as
|
|
6697
|
+
import { z as z241 } from "zod";
|
|
6683
6698
|
|
|
6684
6699
|
// src/api/dto/export/exporter.ts
|
|
6685
|
-
import { z as
|
|
6686
|
-
var DTOExporterType =
|
|
6687
|
-
var DTOExporterSource =
|
|
6688
|
-
var DTOExporterMembershipRole =
|
|
6689
|
-
var DTOExporterListQuery =
|
|
6690
|
-
limit:
|
|
6691
|
-
offset:
|
|
6700
|
+
import { z as z238 } from "zod";
|
|
6701
|
+
var DTOExporterType = z238.enum(["documentation", "code"]);
|
|
6702
|
+
var DTOExporterSource = z238.enum(["git", "upload"]);
|
|
6703
|
+
var DTOExporterMembershipRole = z238.enum(["Owner", "OwnerArchived", "User"]);
|
|
6704
|
+
var DTOExporterListQuery = z238.object({
|
|
6705
|
+
limit: z238.coerce.number().optional(),
|
|
6706
|
+
offset: z238.coerce.number().optional(),
|
|
6692
6707
|
type: DTOExporterType.optional(),
|
|
6693
|
-
search:
|
|
6708
|
+
search: z238.string().optional()
|
|
6694
6709
|
});
|
|
6695
|
-
var DTOExporter =
|
|
6696
|
-
id:
|
|
6697
|
-
name:
|
|
6698
|
-
isPrivate:
|
|
6710
|
+
var DTOExporter = z238.object({
|
|
6711
|
+
id: z238.string(),
|
|
6712
|
+
name: z238.string(),
|
|
6713
|
+
isPrivate: z238.boolean(),
|
|
6699
6714
|
exporterType: DTOExporterType,
|
|
6700
|
-
isDefaultDocumentationExporter:
|
|
6701
|
-
iconURL:
|
|
6715
|
+
isDefaultDocumentationExporter: z238.boolean(),
|
|
6716
|
+
iconURL: z238.string().optional(),
|
|
6702
6717
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
6703
6718
|
properties: DTOExporterPropertyDefinition.array().optional(),
|
|
6704
6719
|
customBlocks: PulsarCustomBlock.array(),
|
|
6705
|
-
blockVariants:
|
|
6706
|
-
homepage:
|
|
6707
|
-
organization:
|
|
6708
|
-
packageId:
|
|
6709
|
-
tags:
|
|
6710
|
-
author:
|
|
6711
|
-
version:
|
|
6712
|
-
description:
|
|
6713
|
-
usesLocale:
|
|
6714
|
-
usesBrands:
|
|
6715
|
-
usesThemes:
|
|
6716
|
-
readme:
|
|
6717
|
-
routingVersion:
|
|
6720
|
+
blockVariants: z238.record(z238.string(), PulsarContributionVariant.array()),
|
|
6721
|
+
homepage: z238.string().optional(),
|
|
6722
|
+
organization: z238.string().optional(),
|
|
6723
|
+
packageId: z238.string().optional(),
|
|
6724
|
+
tags: z238.array(z238.string()),
|
|
6725
|
+
author: z238.string().optional(),
|
|
6726
|
+
version: z238.string(),
|
|
6727
|
+
description: z238.string(),
|
|
6728
|
+
usesLocale: z238.boolean(),
|
|
6729
|
+
usesBrands: z238.boolean(),
|
|
6730
|
+
usesThemes: z238.boolean(),
|
|
6731
|
+
readme: z238.string().optional(),
|
|
6732
|
+
routingVersion: z238.string().optional(),
|
|
6718
6733
|
source: DTOExporterSource,
|
|
6719
|
-
gitProvider:
|
|
6720
|
-
gitUrl: nullishToOptional(
|
|
6721
|
-
gitBranch: nullishToOptional(
|
|
6722
|
-
gitDirectory: nullishToOptional(
|
|
6723
|
-
isDeprecated:
|
|
6724
|
-
deprecationNote:
|
|
6725
|
-
replacementExporterId:
|
|
6726
|
-
});
|
|
6727
|
-
var DTOExporterMembership =
|
|
6728
|
-
workspaceId:
|
|
6729
|
-
exporterId:
|
|
6734
|
+
gitProvider: z238.string().optional(),
|
|
6735
|
+
gitUrl: nullishToOptional(z238.string()),
|
|
6736
|
+
gitBranch: nullishToOptional(z238.string()),
|
|
6737
|
+
gitDirectory: nullishToOptional(z238.string()),
|
|
6738
|
+
isDeprecated: z238.boolean(),
|
|
6739
|
+
deprecationNote: z238.string().optional(),
|
|
6740
|
+
replacementExporterId: z238.string().optional()
|
|
6741
|
+
});
|
|
6742
|
+
var DTOExporterMembership = z238.object({
|
|
6743
|
+
workspaceId: z238.string(),
|
|
6744
|
+
exporterId: z238.string(),
|
|
6730
6745
|
role: DTOExporterMembershipRole
|
|
6731
6746
|
});
|
|
6732
|
-
var DTOExporterResponse =
|
|
6747
|
+
var DTOExporterResponse = z238.object({
|
|
6733
6748
|
exporter: DTOExporter,
|
|
6734
6749
|
membership: DTOExporterMembership
|
|
6735
6750
|
});
|
|
6736
|
-
var DTOExporterListResponse =
|
|
6751
|
+
var DTOExporterListResponse = z238.object({
|
|
6737
6752
|
exporters: DTOExporter.array(),
|
|
6738
6753
|
membership: DTOExporterMembership.array(),
|
|
6739
|
-
total:
|
|
6754
|
+
total: z238.number()
|
|
6740
6755
|
});
|
|
6741
|
-
var DTOExporterGitProviderEnum =
|
|
6742
|
-
var DTOExporterCreateInput =
|
|
6743
|
-
url:
|
|
6756
|
+
var DTOExporterGitProviderEnum = z238.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
6757
|
+
var DTOExporterCreateInput = z238.object({
|
|
6758
|
+
url: z238.string(),
|
|
6744
6759
|
provider: DTOExporterGitProviderEnum
|
|
6745
6760
|
});
|
|
6746
|
-
var DTOExporterUpdateInput =
|
|
6747
|
-
url:
|
|
6761
|
+
var DTOExporterUpdateInput = z238.object({
|
|
6762
|
+
url: z238.string().optional()
|
|
6748
6763
|
});
|
|
6749
|
-
var DTOExporterDeprecationInput =
|
|
6750
|
-
isDeprecated:
|
|
6751
|
-
deprecationNote:
|
|
6752
|
-
replacementExporterId:
|
|
6764
|
+
var DTOExporterDeprecationInput = z238.object({
|
|
6765
|
+
isDeprecated: z238.boolean(),
|
|
6766
|
+
deprecationNote: z238.string().optional(),
|
|
6767
|
+
replacementExporterId: z238.string().optional()
|
|
6753
6768
|
});
|
|
6754
6769
|
|
|
6755
6770
|
// src/api/dto/export/filter.ts
|
|
6756
6771
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
6757
6772
|
|
|
6758
6773
|
// src/api/dto/export/job.ts
|
|
6759
|
-
import { z as
|
|
6760
|
-
var DTOExportJobCreatedBy =
|
|
6761
|
-
userId:
|
|
6762
|
-
userName:
|
|
6774
|
+
import { z as z239 } from "zod";
|
|
6775
|
+
var DTOExportJobCreatedBy = z239.object({
|
|
6776
|
+
userId: z239.string(),
|
|
6777
|
+
userName: z239.string()
|
|
6763
6778
|
});
|
|
6764
|
-
var DTOExportJobDesignSystemPreview =
|
|
6765
|
-
id:
|
|
6779
|
+
var DTOExportJobDesignSystemPreview = z239.object({
|
|
6780
|
+
id: z239.string(),
|
|
6766
6781
|
meta: ObjectMeta
|
|
6767
6782
|
});
|
|
6768
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
6769
|
-
id:
|
|
6783
|
+
var DTOExportJobDesignSystemVersionPreview = z239.object({
|
|
6784
|
+
id: z239.string(),
|
|
6770
6785
|
meta: ObjectMeta,
|
|
6771
|
-
version:
|
|
6772
|
-
isReadonly:
|
|
6786
|
+
version: z239.string(),
|
|
6787
|
+
isReadonly: z239.boolean()
|
|
6773
6788
|
});
|
|
6774
|
-
var DTOExportJobDestinations =
|
|
6789
|
+
var DTOExportJobDestinations = z239.object({
|
|
6775
6790
|
s3: ExporterDestinationS3.optional(),
|
|
6776
6791
|
azure: ExporterDestinationAzure.optional(),
|
|
6777
6792
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
6778
6793
|
github: ExporterDestinationGithub.optional(),
|
|
6779
6794
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
6780
6795
|
documentation: ExporterDestinationDocs.optional(),
|
|
6781
|
-
webhookUrl:
|
|
6796
|
+
webhookUrl: z239.string().optional()
|
|
6782
6797
|
});
|
|
6783
6798
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
6784
6799
|
sndocs: true
|
|
6785
6800
|
}).extend({
|
|
6786
6801
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
6787
6802
|
});
|
|
6788
|
-
var DTOExportJob =
|
|
6789
|
-
id:
|
|
6790
|
-
createdAt:
|
|
6791
|
-
finishedAt:
|
|
6792
|
-
index:
|
|
6803
|
+
var DTOExportJob = z239.object({
|
|
6804
|
+
id: z239.string(),
|
|
6805
|
+
createdAt: z239.coerce.date(),
|
|
6806
|
+
finishedAt: z239.coerce.date().optional(),
|
|
6807
|
+
index: z239.number().optional(),
|
|
6793
6808
|
status: ExportJobStatus,
|
|
6794
|
-
estimatedExecutionTime:
|
|
6809
|
+
estimatedExecutionTime: z239.number().optional(),
|
|
6795
6810
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
6796
6811
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
6797
6812
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
6798
6813
|
destinations: DTOExportJobDestinations,
|
|
6799
|
-
exporterId:
|
|
6800
|
-
scheduleId:
|
|
6814
|
+
exporterId: z239.string(),
|
|
6815
|
+
scheduleId: z239.string().optional(),
|
|
6801
6816
|
result: DTOExportJobResult.optional(),
|
|
6802
|
-
brandPersistentId:
|
|
6803
|
-
themePersistentId:
|
|
6804
|
-
themePersistentIds:
|
|
6817
|
+
brandPersistentId: z239.string().optional(),
|
|
6818
|
+
themePersistentId: z239.string().optional(),
|
|
6819
|
+
themePersistentIds: z239.string().array().optional(),
|
|
6805
6820
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6806
6821
|
});
|
|
6807
|
-
var DTOExportJobResponse =
|
|
6822
|
+
var DTOExportJobResponse = z239.object({
|
|
6808
6823
|
job: DTOExportJob
|
|
6809
6824
|
});
|
|
6810
|
-
var DTOExportJobResponseLegacy =
|
|
6811
|
-
job:
|
|
6812
|
-
id:
|
|
6825
|
+
var DTOExportJobResponseLegacy = z239.object({
|
|
6826
|
+
job: z239.object({
|
|
6827
|
+
id: z239.string(),
|
|
6813
6828
|
status: ExportJobStatus
|
|
6814
6829
|
})
|
|
6815
6830
|
});
|
|
6816
|
-
var DTOExportJobCreateInput =
|
|
6817
|
-
designSystemId:
|
|
6818
|
-
designSystemVersionId:
|
|
6819
|
-
exporterId:
|
|
6820
|
-
brandId:
|
|
6821
|
-
themeId:
|
|
6822
|
-
themePersistentIds:
|
|
6831
|
+
var DTOExportJobCreateInput = z239.object({
|
|
6832
|
+
designSystemId: z239.string(),
|
|
6833
|
+
designSystemVersionId: z239.string(),
|
|
6834
|
+
exporterId: z239.string(),
|
|
6835
|
+
brandId: z239.string().optional(),
|
|
6836
|
+
themeId: z239.string().optional(),
|
|
6837
|
+
themePersistentIds: z239.string().array().optional(),
|
|
6823
6838
|
destinations: DTOExportJobDestinations,
|
|
6824
6839
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional()
|
|
6825
6840
|
});
|
|
6826
6841
|
|
|
6827
6842
|
// src/api/dto/export/pipeline.ts
|
|
6828
|
-
import { z as
|
|
6829
|
-
var DTOPipelineListQuery =
|
|
6830
|
-
designSystemId:
|
|
6831
|
-
exporterId:
|
|
6832
|
-
latestJobsLimit:
|
|
6833
|
-
});
|
|
6834
|
-
var DTOPipeline =
|
|
6835
|
-
id:
|
|
6836
|
-
name:
|
|
6843
|
+
import { z as z240 } from "zod";
|
|
6844
|
+
var DTOPipelineListQuery = z240.object({
|
|
6845
|
+
designSystemId: z240.string().optional(),
|
|
6846
|
+
exporterId: z240.string().optional(),
|
|
6847
|
+
latestJobsLimit: z240.coerce.number().optional()
|
|
6848
|
+
});
|
|
6849
|
+
var DTOPipeline = z240.object({
|
|
6850
|
+
id: z240.string(),
|
|
6851
|
+
name: z240.string(),
|
|
6837
6852
|
eventType: PipelineEventType,
|
|
6838
|
-
isEnabled:
|
|
6839
|
-
workspaceId:
|
|
6840
|
-
designSystemId:
|
|
6841
|
-
exporterId:
|
|
6842
|
-
brandPersistentId:
|
|
6843
|
-
themePersistentId:
|
|
6844
|
-
themePersistentIds:
|
|
6853
|
+
isEnabled: z240.boolean(),
|
|
6854
|
+
workspaceId: z240.string(),
|
|
6855
|
+
designSystemId: z240.string(),
|
|
6856
|
+
exporterId: z240.string(),
|
|
6857
|
+
brandPersistentId: z240.string().optional(),
|
|
6858
|
+
themePersistentId: z240.string().optional(),
|
|
6859
|
+
themePersistentIds: z240.string().array().optional(),
|
|
6845
6860
|
exporterPropertyValues: DTOExporterPropertyValueMap.optional(),
|
|
6846
6861
|
...ExportDestinationsMap.shape,
|
|
6847
6862
|
latestJobs: DTOExportJob.array(),
|
|
6848
|
-
isExporterDeprecated:
|
|
6863
|
+
isExporterDeprecated: z240.boolean()
|
|
6849
6864
|
});
|
|
6850
|
-
var DTOPipelineListResponse =
|
|
6865
|
+
var DTOPipelineListResponse = z240.object({
|
|
6851
6866
|
pipelines: DTOPipeline.array()
|
|
6852
6867
|
});
|
|
6853
|
-
var DTOPipelineResponse =
|
|
6868
|
+
var DTOPipelineResponse = z240.object({
|
|
6854
6869
|
pipeline: DTOPipeline
|
|
6855
6870
|
});
|
|
6856
6871
|
|
|
6857
6872
|
// src/api/dto/documentation/publish.ts
|
|
6858
6873
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
6859
|
-
var DTOPublishDocumentationRequest =
|
|
6874
|
+
var DTOPublishDocumentationRequest = z241.object({
|
|
6860
6875
|
environment: PublishedDocEnvironment,
|
|
6861
6876
|
/**
|
|
6862
6877
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6864,66 +6879,66 @@ var DTOPublishDocumentationRequest = z240.object({
|
|
|
6864
6879
|
*/
|
|
6865
6880
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6866
6881
|
});
|
|
6867
|
-
var DTOPublishDocumentationResponse =
|
|
6882
|
+
var DTOPublishDocumentationResponse = z241.object({
|
|
6868
6883
|
job: DTOExportJob
|
|
6869
6884
|
});
|
|
6870
6885
|
|
|
6871
6886
|
// src/api/dto/documentation/room.ts
|
|
6872
|
-
import { z as
|
|
6873
|
-
var DTODocumentationPageRoom =
|
|
6874
|
-
id:
|
|
6887
|
+
import { z as z242 } from "zod";
|
|
6888
|
+
var DTODocumentationPageRoom = z242.object({
|
|
6889
|
+
id: z242.string()
|
|
6875
6890
|
});
|
|
6876
|
-
var DTODocumentationPageRoomResponse =
|
|
6891
|
+
var DTODocumentationPageRoomResponse = z242.object({
|
|
6877
6892
|
room: DTODocumentationPageRoom
|
|
6878
6893
|
});
|
|
6879
6894
|
|
|
6880
6895
|
// src/api/dto/elements/components/figma-component-group.ts
|
|
6881
|
-
import
|
|
6882
|
-
var DTOFigmaComponentGroup =
|
|
6883
|
-
id:
|
|
6884
|
-
designSystemVersionId:
|
|
6885
|
-
persistentId:
|
|
6886
|
-
isRoot:
|
|
6887
|
-
brandId:
|
|
6896
|
+
import z243 from "zod";
|
|
6897
|
+
var DTOFigmaComponentGroup = z243.object({
|
|
6898
|
+
id: z243.string(),
|
|
6899
|
+
designSystemVersionId: z243.string(),
|
|
6900
|
+
persistentId: z243.string(),
|
|
6901
|
+
isRoot: z243.boolean(),
|
|
6902
|
+
brandId: z243.string(),
|
|
6888
6903
|
meta: DTOObjectMeta,
|
|
6889
|
-
childrenIds:
|
|
6904
|
+
childrenIds: z243.string().array()
|
|
6890
6905
|
});
|
|
6891
|
-
var DTOFigmaComponentGroupListResponse =
|
|
6906
|
+
var DTOFigmaComponentGroupListResponse = z243.object({
|
|
6892
6907
|
groups: DTOFigmaComponentGroup.array()
|
|
6893
6908
|
});
|
|
6894
6909
|
|
|
6895
6910
|
// src/api/dto/elements/components/figma-component.ts
|
|
6896
|
-
import { z as
|
|
6911
|
+
import { z as z244 } from "zod";
|
|
6897
6912
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6898
|
-
var DTOFigmaComponentPropertyMap =
|
|
6899
|
-
var DTOFigmaComponent =
|
|
6900
|
-
id:
|
|
6901
|
-
persistentId:
|
|
6902
|
-
designSystemVersionId:
|
|
6903
|
-
brandId:
|
|
6904
|
-
thumbnailUrl:
|
|
6905
|
-
svgUrl:
|
|
6906
|
-
exportProperties:
|
|
6907
|
-
isAsset:
|
|
6913
|
+
var DTOFigmaComponentPropertyMap = z244.record(DTOFigmaComponentProperty);
|
|
6914
|
+
var DTOFigmaComponent = z244.object({
|
|
6915
|
+
id: z244.string(),
|
|
6916
|
+
persistentId: z244.string(),
|
|
6917
|
+
designSystemVersionId: z244.string(),
|
|
6918
|
+
brandId: z244.string(),
|
|
6919
|
+
thumbnailUrl: z244.string().optional(),
|
|
6920
|
+
svgUrl: z244.string().optional(),
|
|
6921
|
+
exportProperties: z244.object({
|
|
6922
|
+
isAsset: z244.boolean()
|
|
6908
6923
|
}),
|
|
6909
|
-
createdAt:
|
|
6910
|
-
updatedAt:
|
|
6924
|
+
createdAt: z244.coerce.date(),
|
|
6925
|
+
updatedAt: z244.coerce.date(),
|
|
6911
6926
|
meta: ObjectMeta,
|
|
6912
6927
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6913
|
-
parentComponentPersistentId:
|
|
6914
|
-
childrenPersistentIds:
|
|
6928
|
+
parentComponentPersistentId: z244.string().optional(),
|
|
6929
|
+
childrenPersistentIds: z244.string().array().optional(),
|
|
6915
6930
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6916
|
-
variantPropertyValues:
|
|
6931
|
+
variantPropertyValues: z244.record(z244.string()).optional()
|
|
6917
6932
|
});
|
|
6918
|
-
var DTOFigmaComponentListResponse =
|
|
6933
|
+
var DTOFigmaComponentListResponse = z244.object({
|
|
6919
6934
|
components: DTOFigmaComponent.array()
|
|
6920
6935
|
});
|
|
6921
6936
|
|
|
6922
6937
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6923
|
-
import { z as
|
|
6938
|
+
import { z as z246 } from "zod";
|
|
6924
6939
|
|
|
6925
6940
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6926
|
-
import { z as
|
|
6941
|
+
import { z as z245 } from "zod";
|
|
6927
6942
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6928
6943
|
sortOrder: true,
|
|
6929
6944
|
parentPersistentId: true,
|
|
@@ -6933,13 +6948,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6933
6948
|
data: true,
|
|
6934
6949
|
shortPersistentId: true
|
|
6935
6950
|
}).extend({
|
|
6936
|
-
title:
|
|
6937
|
-
isRoot:
|
|
6938
|
-
childrenIds:
|
|
6951
|
+
title: z245.string(),
|
|
6952
|
+
isRoot: z245.boolean(),
|
|
6953
|
+
childrenIds: z245.array(z245.string()),
|
|
6939
6954
|
groupBehavior: DocumentationGroupBehavior,
|
|
6940
|
-
shortPersistentId:
|
|
6955
|
+
shortPersistentId: z245.string(),
|
|
6941
6956
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6942
|
-
type:
|
|
6957
|
+
type: z245.literal("Group"),
|
|
6943
6958
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6944
6959
|
draftState: DTODocumentationDraftState.optional(),
|
|
6945
6960
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6947,127 +6962,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6947
6962
|
//** An approval state for frontend to utilize. */
|
|
6948
6963
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6949
6964
|
});
|
|
6950
|
-
var DTOCreateDocumentationGroupInput =
|
|
6965
|
+
var DTOCreateDocumentationGroupInput = z245.object({
|
|
6951
6966
|
// Identifier
|
|
6952
|
-
persistentId:
|
|
6967
|
+
persistentId: z245.string(),
|
|
6953
6968
|
// Group properties
|
|
6954
|
-
title:
|
|
6969
|
+
title: z245.string(),
|
|
6955
6970
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6956
6971
|
// Group placement properties
|
|
6957
|
-
afterPersistentId:
|
|
6958
|
-
parentPersistentId:
|
|
6972
|
+
afterPersistentId: z245.string().nullish(),
|
|
6973
|
+
parentPersistentId: z245.string()
|
|
6959
6974
|
});
|
|
6960
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6975
|
+
var DTOUpdateDocumentationGroupInput = z245.object({
|
|
6961
6976
|
// Identifier of the group to update
|
|
6962
|
-
id:
|
|
6977
|
+
id: z245.string(),
|
|
6963
6978
|
// Group properties
|
|
6964
|
-
title:
|
|
6979
|
+
title: z245.string().optional(),
|
|
6965
6980
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6966
6981
|
});
|
|
6967
|
-
var DTOMoveDocumentationGroupInput =
|
|
6982
|
+
var DTOMoveDocumentationGroupInput = z245.object({
|
|
6968
6983
|
// Identifier of the group to update
|
|
6969
|
-
id:
|
|
6984
|
+
id: z245.string(),
|
|
6970
6985
|
// Group placement properties
|
|
6971
|
-
parentPersistentId:
|
|
6972
|
-
afterPersistentId:
|
|
6986
|
+
parentPersistentId: z245.string(),
|
|
6987
|
+
afterPersistentId: z245.string().nullish()
|
|
6973
6988
|
});
|
|
6974
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6989
|
+
var DTODuplicateDocumentationGroupInput = z245.object({
|
|
6975
6990
|
// Identifier of the group to duplicate from
|
|
6976
|
-
id:
|
|
6991
|
+
id: z245.string(),
|
|
6977
6992
|
// New group persistent id
|
|
6978
|
-
persistentId:
|
|
6993
|
+
persistentId: z245.string(),
|
|
6979
6994
|
// Group placement properties
|
|
6980
|
-
afterPersistentId:
|
|
6981
|
-
parentPersistentId:
|
|
6995
|
+
afterPersistentId: z245.string().nullish(),
|
|
6996
|
+
parentPersistentId: z245.string()
|
|
6982
6997
|
});
|
|
6983
|
-
var DTOCreateDocumentationTabInput =
|
|
6998
|
+
var DTOCreateDocumentationTabInput = z245.object({
|
|
6984
6999
|
// New group persistent id
|
|
6985
|
-
persistentId:
|
|
7000
|
+
persistentId: z245.string(),
|
|
6986
7001
|
// If this is page, we will attempt to convert it to tab
|
|
6987
7002
|
// If this is tab group, we will add a new tab to it
|
|
6988
|
-
fromItemPersistentId:
|
|
6989
|
-
tabName:
|
|
7003
|
+
fromItemPersistentId: z245.string(),
|
|
7004
|
+
tabName: z245.string()
|
|
6990
7005
|
});
|
|
6991
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
7006
|
+
var DTODeleteDocumentationTabGroupInput = z245.object({
|
|
6992
7007
|
// Deleted group id
|
|
6993
|
-
id:
|
|
7008
|
+
id: z245.string()
|
|
6994
7009
|
});
|
|
6995
|
-
var DTODeleteDocumentationGroupInput =
|
|
7010
|
+
var DTODeleteDocumentationGroupInput = z245.object({
|
|
6996
7011
|
// Identifier
|
|
6997
|
-
id:
|
|
7012
|
+
id: z245.string(),
|
|
6998
7013
|
// Deletion options
|
|
6999
|
-
deleteSubtree:
|
|
7014
|
+
deleteSubtree: z245.boolean().default(false)
|
|
7000
7015
|
});
|
|
7001
7016
|
|
|
7002
7017
|
// src/api/dto/elements/documentation/group-action.ts
|
|
7003
|
-
var SuccessPayload =
|
|
7004
|
-
success:
|
|
7018
|
+
var SuccessPayload = z246.object({
|
|
7019
|
+
success: z246.literal(true)
|
|
7005
7020
|
});
|
|
7006
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
7007
|
-
type:
|
|
7021
|
+
var DTODocumentationGroupCreateActionOutputV2 = z246.object({
|
|
7022
|
+
type: z246.literal("DocumentationGroupCreate"),
|
|
7008
7023
|
output: SuccessPayload
|
|
7009
7024
|
});
|
|
7010
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
7011
|
-
type:
|
|
7025
|
+
var DTODocumentationTabCreateActionOutputV2 = z246.object({
|
|
7026
|
+
type: z246.literal("DocumentationTabCreate"),
|
|
7012
7027
|
output: SuccessPayload
|
|
7013
7028
|
});
|
|
7014
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
7015
|
-
type:
|
|
7029
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z246.object({
|
|
7030
|
+
type: z246.literal("DocumentationGroupUpdate"),
|
|
7016
7031
|
output: SuccessPayload
|
|
7017
7032
|
});
|
|
7018
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
7019
|
-
type:
|
|
7033
|
+
var DTODocumentationGroupMoveActionOutputV2 = z246.object({
|
|
7034
|
+
type: z246.literal("DocumentationGroupMove"),
|
|
7020
7035
|
output: SuccessPayload
|
|
7021
7036
|
});
|
|
7022
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
7023
|
-
type:
|
|
7037
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z246.object({
|
|
7038
|
+
type: z246.literal("DocumentationGroupDuplicate"),
|
|
7024
7039
|
output: SuccessPayload
|
|
7025
7040
|
});
|
|
7026
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
7027
|
-
type:
|
|
7041
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z246.object({
|
|
7042
|
+
type: z246.literal("DocumentationGroupDelete"),
|
|
7028
7043
|
output: SuccessPayload
|
|
7029
7044
|
});
|
|
7030
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
7031
|
-
type:
|
|
7045
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z246.object({
|
|
7046
|
+
type: z246.literal("DocumentationTabGroupDelete"),
|
|
7032
7047
|
output: SuccessPayload
|
|
7033
7048
|
});
|
|
7034
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
7035
|
-
type:
|
|
7049
|
+
var DTODocumentationGroupCreateActionInputV2 = z246.object({
|
|
7050
|
+
type: z246.literal("DocumentationGroupCreate"),
|
|
7036
7051
|
input: DTOCreateDocumentationGroupInput
|
|
7037
7052
|
});
|
|
7038
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
7039
|
-
type:
|
|
7053
|
+
var DTODocumentationTabCreateActionInputV2 = z246.object({
|
|
7054
|
+
type: z246.literal("DocumentationTabCreate"),
|
|
7040
7055
|
input: DTOCreateDocumentationTabInput
|
|
7041
7056
|
});
|
|
7042
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
7043
|
-
type:
|
|
7057
|
+
var DTODocumentationGroupUpdateActionInputV2 = z246.object({
|
|
7058
|
+
type: z246.literal("DocumentationGroupUpdate"),
|
|
7044
7059
|
input: DTOUpdateDocumentationGroupInput
|
|
7045
7060
|
});
|
|
7046
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
7047
|
-
type:
|
|
7061
|
+
var DTODocumentationGroupMoveActionInputV2 = z246.object({
|
|
7062
|
+
type: z246.literal("DocumentationGroupMove"),
|
|
7048
7063
|
input: DTOMoveDocumentationGroupInput
|
|
7049
7064
|
});
|
|
7050
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
7051
|
-
type:
|
|
7065
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z246.object({
|
|
7066
|
+
type: z246.literal("DocumentationGroupDuplicate"),
|
|
7052
7067
|
input: DTODuplicateDocumentationGroupInput
|
|
7053
7068
|
});
|
|
7054
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
7055
|
-
type:
|
|
7069
|
+
var DTODocumentationGroupDeleteActionInputV2 = z246.object({
|
|
7070
|
+
type: z246.literal("DocumentationGroupDelete"),
|
|
7056
7071
|
input: DTODeleteDocumentationGroupInput
|
|
7057
7072
|
});
|
|
7058
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
7059
|
-
type:
|
|
7073
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z246.object({
|
|
7074
|
+
type: z246.literal("DocumentationTabGroupDelete"),
|
|
7060
7075
|
input: DTODeleteDocumentationTabGroupInput
|
|
7061
7076
|
});
|
|
7062
7077
|
|
|
7063
7078
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
7064
|
-
import { z as
|
|
7079
|
+
import { z as z248 } from "zod";
|
|
7065
7080
|
|
|
7066
7081
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
7067
|
-
import { z as
|
|
7068
|
-
var DocumentationColorV1 =
|
|
7069
|
-
aliasTo:
|
|
7070
|
-
value:
|
|
7082
|
+
import { z as z247 } from "zod";
|
|
7083
|
+
var DocumentationColorV1 = z247.object({
|
|
7084
|
+
aliasTo: z247.string().optional(),
|
|
7085
|
+
value: z247.string().optional()
|
|
7071
7086
|
});
|
|
7072
7087
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
7073
7088
|
foregroundColor: true,
|
|
@@ -7076,10 +7091,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
7076
7091
|
foregroundColor: DocumentationColorV1.optional(),
|
|
7077
7092
|
backgroundColor: DocumentationColorV1.optional()
|
|
7078
7093
|
});
|
|
7079
|
-
var DTODocumentationItemConfigurationV1 =
|
|
7080
|
-
showSidebar:
|
|
7081
|
-
isPrivate:
|
|
7082
|
-
isHidden:
|
|
7094
|
+
var DTODocumentationItemConfigurationV1 = z247.object({
|
|
7095
|
+
showSidebar: z247.boolean(),
|
|
7096
|
+
isPrivate: z247.boolean(),
|
|
7097
|
+
isHidden: z247.boolean(),
|
|
7083
7098
|
header: DTODocumentationItemHeaderV1
|
|
7084
7099
|
});
|
|
7085
7100
|
|
|
@@ -7093,123 +7108,123 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
7093
7108
|
data: true,
|
|
7094
7109
|
shortPersistentId: true
|
|
7095
7110
|
}).extend({
|
|
7096
|
-
title:
|
|
7097
|
-
isRoot:
|
|
7098
|
-
childrenIds:
|
|
7111
|
+
title: z248.string(),
|
|
7112
|
+
isRoot: z248.boolean(),
|
|
7113
|
+
childrenIds: z248.array(z248.string()),
|
|
7099
7114
|
groupBehavior: DocumentationGroupBehavior,
|
|
7100
|
-
shortPersistentId:
|
|
7101
|
-
type:
|
|
7115
|
+
shortPersistentId: z248.string(),
|
|
7116
|
+
type: z248.literal("Group")
|
|
7102
7117
|
});
|
|
7103
7118
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
7104
7119
|
configuration: DTODocumentationItemConfigurationV1
|
|
7105
7120
|
});
|
|
7106
7121
|
|
|
7107
7122
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
7108
|
-
import { z as
|
|
7109
|
-
var DTODocumentationHierarchyV2 =
|
|
7110
|
-
pages:
|
|
7123
|
+
import { z as z249 } from "zod";
|
|
7124
|
+
var DTODocumentationHierarchyV2 = z249.object({
|
|
7125
|
+
pages: z249.array(
|
|
7111
7126
|
DTODocumentationPageV2.extend({
|
|
7112
7127
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7113
7128
|
draftState: DTODocumentationDraftState.optional()
|
|
7114
7129
|
})
|
|
7115
7130
|
),
|
|
7116
|
-
groups:
|
|
7131
|
+
groups: z249.array(
|
|
7117
7132
|
DTODocumentationGroupV2.extend({
|
|
7118
7133
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
7119
7134
|
draftState: DTODocumentationDraftState.optional()
|
|
7120
7135
|
})
|
|
7121
7136
|
),
|
|
7122
7137
|
/** True if the documentation was already published, false otherwise. */
|
|
7123
|
-
hasPublishedDocumentationContent:
|
|
7138
|
+
hasPublishedDocumentationContent: z249.boolean()
|
|
7124
7139
|
});
|
|
7125
7140
|
|
|
7126
7141
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
7127
|
-
import { z as
|
|
7128
|
-
var SuccessPayload2 =
|
|
7129
|
-
success:
|
|
7142
|
+
import { z as z250 } from "zod";
|
|
7143
|
+
var SuccessPayload2 = z250.object({
|
|
7144
|
+
success: z250.literal(true)
|
|
7130
7145
|
});
|
|
7131
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
7132
|
-
type:
|
|
7146
|
+
var DTODocumentationPageCreateActionOutputV2 = z250.object({
|
|
7147
|
+
type: z250.literal("DocumentationPageCreate"),
|
|
7133
7148
|
output: SuccessPayload2
|
|
7134
7149
|
});
|
|
7135
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
7136
|
-
type:
|
|
7150
|
+
var DTODocumentationPageUpdateActionOutputV2 = z250.object({
|
|
7151
|
+
type: z250.literal("DocumentationPageUpdate"),
|
|
7137
7152
|
output: SuccessPayload2
|
|
7138
7153
|
});
|
|
7139
|
-
var DTODocumentationPageUpdateDocumentActionOutputV2 =
|
|
7140
|
-
type:
|
|
7154
|
+
var DTODocumentationPageUpdateDocumentActionOutputV2 = z250.object({
|
|
7155
|
+
type: z250.literal("DocumentationPageUpdateDocument"),
|
|
7141
7156
|
output: SuccessPayload2
|
|
7142
7157
|
});
|
|
7143
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
7144
|
-
type:
|
|
7158
|
+
var DTODocumentationPageMoveActionOutputV2 = z250.object({
|
|
7159
|
+
type: z250.literal("DocumentationPageMove"),
|
|
7145
7160
|
output: SuccessPayload2
|
|
7146
7161
|
});
|
|
7147
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
7148
|
-
type:
|
|
7162
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z250.object({
|
|
7163
|
+
type: z250.literal("DocumentationPageDuplicate"),
|
|
7149
7164
|
output: SuccessPayload2
|
|
7150
7165
|
});
|
|
7151
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
7152
|
-
type:
|
|
7166
|
+
var DTODocumentationPageDeleteActionOutputV2 = z250.object({
|
|
7167
|
+
type: z250.literal("DocumentationPageDelete"),
|
|
7153
7168
|
output: SuccessPayload2
|
|
7154
7169
|
});
|
|
7155
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
7156
|
-
type:
|
|
7170
|
+
var DTODocumentationPageRestoreActionOutput = z250.object({
|
|
7171
|
+
type: z250.literal("DocumentationPageRestore"),
|
|
7157
7172
|
output: SuccessPayload2
|
|
7158
7173
|
});
|
|
7159
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
7160
|
-
type:
|
|
7174
|
+
var DTODocumentationGroupRestoreActionOutput = z250.object({
|
|
7175
|
+
type: z250.literal("DocumentationGroupRestore"),
|
|
7161
7176
|
output: SuccessPayload2
|
|
7162
7177
|
});
|
|
7163
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
7164
|
-
type:
|
|
7178
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z250.object({
|
|
7179
|
+
type: z250.literal("DocumentationPageApprovalStateChange"),
|
|
7165
7180
|
output: SuccessPayload2
|
|
7166
7181
|
});
|
|
7167
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
7168
|
-
type:
|
|
7182
|
+
var DTODocumentationPageCreateActionInputV2 = z250.object({
|
|
7183
|
+
type: z250.literal("DocumentationPageCreate"),
|
|
7169
7184
|
input: DTOCreateDocumentationPageInputV2
|
|
7170
7185
|
});
|
|
7171
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
7172
|
-
type:
|
|
7186
|
+
var DTODocumentationPageUpdateActionInputV2 = z250.object({
|
|
7187
|
+
type: z250.literal("DocumentationPageUpdate"),
|
|
7173
7188
|
input: DTOUpdateDocumentationPageInputV2
|
|
7174
7189
|
});
|
|
7175
|
-
var DTODocumentationPageUpdateDocumentActionInputV2 =
|
|
7176
|
-
type:
|
|
7190
|
+
var DTODocumentationPageUpdateDocumentActionInputV2 = z250.object({
|
|
7191
|
+
type: z250.literal("DocumentationPageUpdateDocument"),
|
|
7177
7192
|
input: DTOUpdateDocumentationPageDocumentInputV2
|
|
7178
7193
|
});
|
|
7179
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
7180
|
-
type:
|
|
7194
|
+
var DTODocumentationPageMoveActionInputV2 = z250.object({
|
|
7195
|
+
type: z250.literal("DocumentationPageMove"),
|
|
7181
7196
|
input: DTOMoveDocumentationPageInputV2
|
|
7182
7197
|
});
|
|
7183
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
7184
|
-
type:
|
|
7198
|
+
var DTODocumentationPageDuplicateActionInputV2 = z250.object({
|
|
7199
|
+
type: z250.literal("DocumentationPageDuplicate"),
|
|
7185
7200
|
input: DTODuplicateDocumentationPageInputV2
|
|
7186
7201
|
});
|
|
7187
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
7188
|
-
type:
|
|
7202
|
+
var DTODocumentationPageDeleteActionInputV2 = z250.object({
|
|
7203
|
+
type: z250.literal("DocumentationPageDelete"),
|
|
7189
7204
|
input: DTODeleteDocumentationPageInputV2
|
|
7190
7205
|
});
|
|
7191
|
-
var DTODocumentationPageRestoreActionInput =
|
|
7192
|
-
type:
|
|
7206
|
+
var DTODocumentationPageRestoreActionInput = z250.object({
|
|
7207
|
+
type: z250.literal("DocumentationPageRestore"),
|
|
7193
7208
|
input: DTORestoreDocumentationPageInput
|
|
7194
7209
|
});
|
|
7195
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
7196
|
-
type:
|
|
7210
|
+
var DTODocumentationGroupRestoreActionInput = z250.object({
|
|
7211
|
+
type: z250.literal("DocumentationGroupRestore"),
|
|
7197
7212
|
input: DTORestoreDocumentationGroupInput
|
|
7198
7213
|
});
|
|
7199
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
7200
|
-
type:
|
|
7214
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z250.object({
|
|
7215
|
+
type: z250.literal("DocumentationPageApprovalStateChange"),
|
|
7201
7216
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
7202
7217
|
});
|
|
7203
7218
|
|
|
7204
7219
|
// src/api/dto/elements/documentation/page-content.ts
|
|
7205
|
-
import { z as
|
|
7220
|
+
import { z as z251 } from "zod";
|
|
7206
7221
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
7207
|
-
var DTODocumentationPageContentGetResponse =
|
|
7222
|
+
var DTODocumentationPageContentGetResponse = z251.object({
|
|
7208
7223
|
pageContent: DTODocumentationPageContent
|
|
7209
7224
|
});
|
|
7210
7225
|
|
|
7211
7226
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
7212
|
-
import { z as
|
|
7227
|
+
import { z as z252 } from "zod";
|
|
7213
7228
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
7214
7229
|
data: true,
|
|
7215
7230
|
meta: true,
|
|
@@ -7217,81 +7232,81 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
7217
7232
|
sortOrder: true
|
|
7218
7233
|
}).extend({
|
|
7219
7234
|
configuration: DTODocumentationItemConfigurationV1,
|
|
7220
|
-
blocks:
|
|
7221
|
-
title:
|
|
7222
|
-
path:
|
|
7235
|
+
blocks: z252.array(PageBlockV1),
|
|
7236
|
+
title: z252.string(),
|
|
7237
|
+
path: z252.string()
|
|
7223
7238
|
});
|
|
7224
7239
|
|
|
7225
7240
|
// src/api/dto/elements/documentation/settings.ts
|
|
7226
|
-
import { z as
|
|
7227
|
-
var DTODocumentationSettings =
|
|
7228
|
-
isDraftFeatureAdopted:
|
|
7229
|
-
isApprovalsFeatureEnabled:
|
|
7230
|
-
isApprovalRequiredForPublishing:
|
|
7241
|
+
import { z as z253 } from "zod";
|
|
7242
|
+
var DTODocumentationSettings = z253.object({
|
|
7243
|
+
isDraftFeatureAdopted: z253.boolean(),
|
|
7244
|
+
isApprovalsFeatureEnabled: z253.boolean(),
|
|
7245
|
+
isApprovalRequiredForPublishing: z253.boolean()
|
|
7231
7246
|
});
|
|
7232
7247
|
|
|
7233
7248
|
// src/api/dto/elements/documentation/structure.ts
|
|
7234
|
-
import { z as
|
|
7235
|
-
var DTODocumentationStructureItemType =
|
|
7236
|
-
var DTODocumentationStructureItemBase =
|
|
7249
|
+
import { z as z254 } from "zod";
|
|
7250
|
+
var DTODocumentationStructureItemType = z254.enum(["Group", "Page"]);
|
|
7251
|
+
var DTODocumentationStructureItemBase = z254.object({
|
|
7237
7252
|
type: DTODocumentationStructureItemType,
|
|
7238
|
-
id:
|
|
7239
|
-
designSystemVersionId:
|
|
7240
|
-
shortPersistentId:
|
|
7241
|
-
persistentId:
|
|
7242
|
-
title:
|
|
7243
|
-
createdAt:
|
|
7244
|
-
updatedAt:
|
|
7253
|
+
id: z254.string(),
|
|
7254
|
+
designSystemVersionId: z254.string(),
|
|
7255
|
+
shortPersistentId: z254.string(),
|
|
7256
|
+
persistentId: z254.string(),
|
|
7257
|
+
title: z254.string(),
|
|
7258
|
+
createdAt: z254.coerce.date(),
|
|
7259
|
+
updatedAt: z254.coerce.date()
|
|
7245
7260
|
});
|
|
7246
7261
|
var DTODocumentationStructureGroupItem = DTODocumentationStructureItemBase.extend({
|
|
7247
|
-
type:
|
|
7248
|
-
groupBehavior:
|
|
7249
|
-
childrenIds:
|
|
7250
|
-
isRoot:
|
|
7262
|
+
type: z254.literal(DTODocumentationStructureItemType.enum.Group),
|
|
7263
|
+
groupBehavior: z254.string(),
|
|
7264
|
+
childrenIds: z254.string().array(),
|
|
7265
|
+
isRoot: z254.boolean()
|
|
7251
7266
|
});
|
|
7252
7267
|
var DTODocumentationStructurePageItem = DTODocumentationStructureItemBase.extend({
|
|
7253
|
-
type:
|
|
7254
|
-
path:
|
|
7268
|
+
type: z254.literal(DTODocumentationStructureItemType.enum.Page),
|
|
7269
|
+
path: z254.string()
|
|
7255
7270
|
});
|
|
7256
|
-
var DTODocumentationStructureItem =
|
|
7271
|
+
var DTODocumentationStructureItem = z254.discriminatedUnion("type", [
|
|
7257
7272
|
DTODocumentationStructureGroupItem,
|
|
7258
7273
|
DTODocumentationStructurePageItem
|
|
7259
7274
|
]);
|
|
7260
|
-
var DTODocumentationStructure =
|
|
7261
|
-
items:
|
|
7275
|
+
var DTODocumentationStructure = z254.object({
|
|
7276
|
+
items: z254.array(DTODocumentationStructureItem)
|
|
7262
7277
|
});
|
|
7263
7278
|
|
|
7264
7279
|
// src/api/dto/elements/figma-nodes/figma-node-structure.ts
|
|
7265
|
-
import { z as
|
|
7266
|
-
var DTOFigmaNodeStructure =
|
|
7267
|
-
id:
|
|
7268
|
-
sourceId:
|
|
7280
|
+
import { z as z255 } from "zod";
|
|
7281
|
+
var DTOFigmaNodeStructure = z255.object({
|
|
7282
|
+
id: z255.string(),
|
|
7283
|
+
sourceId: z255.string(),
|
|
7269
7284
|
importState: FigmaNodeStructureStateV2,
|
|
7270
|
-
createdAt:
|
|
7271
|
-
updatedAt:
|
|
7285
|
+
createdAt: z255.coerce.date(),
|
|
7286
|
+
updatedAt: z255.coerce.date()
|
|
7272
7287
|
});
|
|
7273
7288
|
var DTOFigmaNodeStructureDetail = DTOFigmaNodeStructure.extend({
|
|
7274
7289
|
rootNode: FigmaFileStructureNode
|
|
7275
7290
|
});
|
|
7276
|
-
var DTOFigmaNodeStructureListResponse =
|
|
7291
|
+
var DTOFigmaNodeStructureListResponse = z255.object({
|
|
7277
7292
|
structures: DTOFigmaNodeStructure.array()
|
|
7278
7293
|
});
|
|
7279
|
-
var DTOFigmaNodeStructureDetailResponse =
|
|
7294
|
+
var DTOFigmaNodeStructureDetailResponse = z255.object({
|
|
7280
7295
|
structure: DTOFigmaNodeStructureDetail
|
|
7281
7296
|
});
|
|
7282
7297
|
|
|
7283
7298
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7284
|
-
import { z as
|
|
7299
|
+
import { z as z257 } from "zod";
|
|
7285
7300
|
|
|
7286
7301
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
7287
|
-
import { z as
|
|
7302
|
+
import { z as z256 } from "zod";
|
|
7288
7303
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
7289
|
-
var DTOFigmaNodeOrigin =
|
|
7290
|
-
sourceId:
|
|
7291
|
-
fileId:
|
|
7292
|
-
parentName:
|
|
7304
|
+
var DTOFigmaNodeOrigin = z256.object({
|
|
7305
|
+
sourceId: z256.string(),
|
|
7306
|
+
fileId: z256.string().optional(),
|
|
7307
|
+
parentName: z256.string().optional()
|
|
7293
7308
|
});
|
|
7294
|
-
var DTOFigmaNodeRenderInputBase =
|
|
7309
|
+
var DTOFigmaNodeRenderInputBase = z256.object({
|
|
7295
7310
|
/**
|
|
7296
7311
|
* Format in which the node must be rendered, png by default.
|
|
7297
7312
|
*/
|
|
@@ -7299,57 +7314,57 @@ var DTOFigmaNodeRenderInputBase = z255.object({
|
|
|
7299
7314
|
/**
|
|
7300
7315
|
* Scale to apply to PNG images, can be between 1 and 4. Scale is ignored for other image formats.
|
|
7301
7316
|
*/
|
|
7302
|
-
scale:
|
|
7317
|
+
scale: z256.number().optional()
|
|
7303
7318
|
});
|
|
7304
7319
|
var DTOFigmaNodeRenderIdInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7305
|
-
inputType:
|
|
7320
|
+
inputType: z256.literal("NodeId").optional().transform((v) => v ?? "NodeId"),
|
|
7306
7321
|
/**
|
|
7307
7322
|
* Id of a design system's data source representing a linked Figma file
|
|
7308
7323
|
*/
|
|
7309
|
-
sourceId:
|
|
7324
|
+
sourceId: z256.string(),
|
|
7310
7325
|
/**
|
|
7311
7326
|
* Id of a node within the Figma file
|
|
7312
7327
|
*/
|
|
7313
|
-
figmaFileNodeId:
|
|
7328
|
+
figmaFileNodeId: z256.string()
|
|
7314
7329
|
});
|
|
7315
7330
|
var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
7316
|
-
inputType:
|
|
7331
|
+
inputType: z256.literal("URL"),
|
|
7317
7332
|
/**
|
|
7318
7333
|
* Id of a design system's data source representing a linked Figma file
|
|
7319
7334
|
*/
|
|
7320
|
-
figmaNodeUrl:
|
|
7335
|
+
figmaNodeUrl: z256.string(),
|
|
7321
7336
|
/**
|
|
7322
7337
|
* Brand persistent id to use in case a source has to be created for this render
|
|
7323
7338
|
*/
|
|
7324
|
-
brandPersistentId:
|
|
7339
|
+
brandPersistentId: z256.string()
|
|
7325
7340
|
});
|
|
7326
|
-
var DTOFigmaNodeRerenderInput =
|
|
7327
|
-
inputType:
|
|
7341
|
+
var DTOFigmaNodeRerenderInput = z256.object({
|
|
7342
|
+
inputType: z256.literal("Rerender"),
|
|
7328
7343
|
/**
|
|
7329
7344
|
* Persistent ID of an existing Figma node
|
|
7330
7345
|
*/
|
|
7331
|
-
figmaNodePersistentId:
|
|
7346
|
+
figmaNodePersistentId: z256.string()
|
|
7332
7347
|
});
|
|
7333
|
-
var DTOFigmaNodeRenderInput =
|
|
7348
|
+
var DTOFigmaNodeRenderInput = z256.discriminatedUnion("inputType", [
|
|
7334
7349
|
DTOFigmaNodeRenderIdInput,
|
|
7335
7350
|
DTOFigmaNodeRenderUrlInput,
|
|
7336
7351
|
DTOFigmaNodeRerenderInput
|
|
7337
7352
|
]);
|
|
7338
7353
|
|
|
7339
7354
|
// src/api/dto/elements/figma-nodes/figma-node-v1.ts
|
|
7340
|
-
var DTOFigmaNodeData =
|
|
7355
|
+
var DTOFigmaNodeData = z257.object({
|
|
7341
7356
|
// Id of the node in the Figma file
|
|
7342
|
-
figmaNodeId:
|
|
7357
|
+
figmaNodeId: z257.string(),
|
|
7343
7358
|
// Validity
|
|
7344
|
-
isValid:
|
|
7359
|
+
isValid: z257.boolean(),
|
|
7345
7360
|
// Asset data
|
|
7346
|
-
assetId:
|
|
7347
|
-
assetUrl:
|
|
7361
|
+
assetId: z257.string(),
|
|
7362
|
+
assetUrl: z257.string(),
|
|
7348
7363
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
7349
7364
|
// Asset metadata
|
|
7350
|
-
assetScale:
|
|
7351
|
-
assetWidth:
|
|
7352
|
-
assetHeight:
|
|
7365
|
+
assetScale: z257.number(),
|
|
7366
|
+
assetWidth: z257.number().optional(),
|
|
7367
|
+
assetHeight: z257.number().optional()
|
|
7353
7368
|
});
|
|
7354
7369
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
7355
7370
|
data: true,
|
|
@@ -7360,15 +7375,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
7360
7375
|
});
|
|
7361
7376
|
|
|
7362
7377
|
// src/api/dto/elements/figma-nodes/figma-node-v2.ts
|
|
7363
|
-
import { z as
|
|
7364
|
-
var DTOFigmaNodeDataV2 =
|
|
7365
|
-
sceneNodeId:
|
|
7378
|
+
import { z as z258 } from "zod";
|
|
7379
|
+
var DTOFigmaNodeDataV2 = z258.object({
|
|
7380
|
+
sceneNodeId: z258.string(),
|
|
7366
7381
|
format: FigmaNodeRenderFormat,
|
|
7367
|
-
scale:
|
|
7382
|
+
scale: z258.number().optional(),
|
|
7368
7383
|
renderState: FigmaNodeRenderState,
|
|
7369
7384
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
7370
7385
|
renderError: FigmaNodeRenderError.optional(),
|
|
7371
|
-
hasSource:
|
|
7386
|
+
hasSource: z258.boolean()
|
|
7372
7387
|
});
|
|
7373
7388
|
var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
7374
7389
|
data: true,
|
|
@@ -7379,113 +7394,113 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
7379
7394
|
});
|
|
7380
7395
|
|
|
7381
7396
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
7382
|
-
import { z as
|
|
7383
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
7384
|
-
type:
|
|
7385
|
-
figmaNodes:
|
|
7397
|
+
import { z as z259 } from "zod";
|
|
7398
|
+
var DTOFigmaNodeRenderActionOutput = z259.object({
|
|
7399
|
+
type: z259.literal("FigmaNodeRender"),
|
|
7400
|
+
figmaNodes: z259.array(DTOFigmaNode)
|
|
7386
7401
|
});
|
|
7387
|
-
var DTOFigmaNodeRenderAsyncActionOutput =
|
|
7388
|
-
type:
|
|
7389
|
-
figmaNodes:
|
|
7402
|
+
var DTOFigmaNodeRenderAsyncActionOutput = z259.object({
|
|
7403
|
+
type: z259.literal("FigmaNodeRenderAsync"),
|
|
7404
|
+
figmaNodes: z259.array(DTOFigmaNodeV2)
|
|
7390
7405
|
});
|
|
7391
|
-
var DTOFigmaNodeRenderActionInput =
|
|
7392
|
-
type:
|
|
7406
|
+
var DTOFigmaNodeRenderActionInput = z259.object({
|
|
7407
|
+
type: z259.literal("FigmaNodeRender"),
|
|
7393
7408
|
input: DTOFigmaNodeRenderIdInput.array()
|
|
7394
7409
|
});
|
|
7395
|
-
var DTOFigmaNodeRenderAsyncActionInput =
|
|
7396
|
-
type:
|
|
7410
|
+
var DTOFigmaNodeRenderAsyncActionInput = z259.object({
|
|
7411
|
+
type: z259.literal("FigmaNodeRenderAsync"),
|
|
7397
7412
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
7398
7413
|
});
|
|
7399
7414
|
|
|
7400
7415
|
// src/api/dto/elements/frame-node-structures/frame-node-structure.ts
|
|
7401
|
-
import { z as
|
|
7402
|
-
var DTOFrameNodeStructure =
|
|
7403
|
-
id:
|
|
7404
|
-
persistentId:
|
|
7405
|
-
designSystemVersionId:
|
|
7416
|
+
import { z as z260 } from "zod";
|
|
7417
|
+
var DTOFrameNodeStructure = z260.object({
|
|
7418
|
+
id: z260.string(),
|
|
7419
|
+
persistentId: z260.string(),
|
|
7420
|
+
designSystemVersionId: z260.string(),
|
|
7406
7421
|
origin: FigmaFileStructureOrigin,
|
|
7407
7422
|
assetsInFile: FigmaFileStructureStatistics
|
|
7408
7423
|
});
|
|
7409
|
-
var DTOFrameNodeStructureListResponse =
|
|
7424
|
+
var DTOFrameNodeStructureListResponse = z260.object({
|
|
7410
7425
|
structures: DTOFrameNodeStructure.array()
|
|
7411
7426
|
});
|
|
7412
7427
|
|
|
7413
7428
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
7414
|
-
import { z as
|
|
7429
|
+
import { z as z261 } from "zod";
|
|
7415
7430
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9-]{1,99}$/;
|
|
7416
|
-
var DTOElementPropertyDefinitionOption =
|
|
7417
|
-
id:
|
|
7418
|
-
name:
|
|
7431
|
+
var DTOElementPropertyDefinitionOption = z261.object({
|
|
7432
|
+
id: z261.string(),
|
|
7433
|
+
name: z261.string(),
|
|
7419
7434
|
backgroundColor: DTOColorTokenInlineData.optional()
|
|
7420
7435
|
});
|
|
7421
|
-
var DTOElementPropertyDefinition =
|
|
7422
|
-
id:
|
|
7423
|
-
designSystemVersionId:
|
|
7436
|
+
var DTOElementPropertyDefinition = z261.object({
|
|
7437
|
+
id: z261.string(),
|
|
7438
|
+
designSystemVersionId: z261.string(),
|
|
7424
7439
|
meta: DTOObjectMeta,
|
|
7425
|
-
persistentId:
|
|
7440
|
+
persistentId: z261.string(),
|
|
7426
7441
|
type: ElementPropertyTypeSchema,
|
|
7427
7442
|
targetElementType: ElementPropertyTargetType,
|
|
7428
|
-
codeName:
|
|
7429
|
-
options: nullishToOptional(
|
|
7443
|
+
codeName: z261.string().regex(CODE_NAME_REGEX2),
|
|
7444
|
+
options: nullishToOptional(z261.array(DTOElementPropertyDefinitionOption)),
|
|
7430
7445
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7431
|
-
isImmutable:
|
|
7446
|
+
isImmutable: z261.boolean(),
|
|
7432
7447
|
immutablePropertyType: ElementPropertyImmutableType.optional()
|
|
7433
7448
|
});
|
|
7434
|
-
var DTOElementPropertyDefinitionListResponse =
|
|
7435
|
-
definitions:
|
|
7449
|
+
var DTOElementPropertyDefinitionListResponse = z261.object({
|
|
7450
|
+
definitions: z261.array(DTOElementPropertyDefinition)
|
|
7436
7451
|
});
|
|
7437
|
-
var DTOElementPropertyDefinitionResponse =
|
|
7452
|
+
var DTOElementPropertyDefinitionResponse = z261.object({
|
|
7438
7453
|
definition: DTOElementPropertyDefinition
|
|
7439
7454
|
});
|
|
7440
|
-
var DTOElementPropertyDefinitionCreatePayload =
|
|
7455
|
+
var DTOElementPropertyDefinitionCreatePayload = z261.object({
|
|
7441
7456
|
meta: DTOObjectMeta,
|
|
7442
|
-
persistentId:
|
|
7457
|
+
persistentId: z261.string(),
|
|
7443
7458
|
type: ElementPropertyTypeSchema,
|
|
7444
7459
|
targetElementType: ElementPropertyTargetType,
|
|
7445
|
-
codeName:
|
|
7446
|
-
options: nullishToOptional(
|
|
7460
|
+
codeName: z261.string().regex(CODE_NAME_REGEX2),
|
|
7461
|
+
options: nullishToOptional(z261.array(DTOElementPropertyDefinitionOption)),
|
|
7447
7462
|
linkElementType: nullishToOptional(ElementPropertyLinkType),
|
|
7448
|
-
columnWidth:
|
|
7463
|
+
columnWidth: z261.number().max(1024).optional()
|
|
7449
7464
|
});
|
|
7450
|
-
var DTOElementPropertyDefinitionUpdatePayload =
|
|
7465
|
+
var DTOElementPropertyDefinitionUpdatePayload = z261.object({
|
|
7451
7466
|
meta: DTOObjectMeta.optional(),
|
|
7452
|
-
codeName:
|
|
7453
|
-
options:
|
|
7467
|
+
codeName: z261.string().regex(CODE_NAME_REGEX2).optional(),
|
|
7468
|
+
options: z261.array(DTOElementPropertyDefinitionOption).optional()
|
|
7454
7469
|
});
|
|
7455
7470
|
|
|
7456
7471
|
// src/api/dto/elements/properties/property-values.ts
|
|
7457
|
-
import { z as
|
|
7458
|
-
var DTOElementPropertyValue =
|
|
7459
|
-
id:
|
|
7460
|
-
designSystemVersionId:
|
|
7461
|
-
definitionId:
|
|
7462
|
-
targetElementId:
|
|
7463
|
-
value:
|
|
7464
|
-
valuePreview:
|
|
7465
|
-
});
|
|
7466
|
-
var DTOElementPropertyValueListResponse =
|
|
7467
|
-
values:
|
|
7468
|
-
});
|
|
7469
|
-
var DTOElementPropertyValueResponse =
|
|
7472
|
+
import { z as z262 } from "zod";
|
|
7473
|
+
var DTOElementPropertyValue = z262.object({
|
|
7474
|
+
id: z262.string(),
|
|
7475
|
+
designSystemVersionId: z262.string(),
|
|
7476
|
+
definitionId: z262.string(),
|
|
7477
|
+
targetElementId: z262.string(),
|
|
7478
|
+
value: z262.union([z262.string(), z262.number(), z262.boolean()]).optional(),
|
|
7479
|
+
valuePreview: z262.string().optional()
|
|
7480
|
+
});
|
|
7481
|
+
var DTOElementPropertyValueListResponse = z262.object({
|
|
7482
|
+
values: z262.array(DTOElementPropertyValue)
|
|
7483
|
+
});
|
|
7484
|
+
var DTOElementPropertyValueResponse = z262.object({
|
|
7470
7485
|
value: DTOElementPropertyValue
|
|
7471
7486
|
});
|
|
7472
|
-
var DTOElementPropertyValuesEditActionOutput =
|
|
7473
|
-
type:
|
|
7474
|
-
output:
|
|
7487
|
+
var DTOElementPropertyValuesEditActionOutput = z262.object({
|
|
7488
|
+
type: z262.literal("ElementPropertyValuesEdit"),
|
|
7489
|
+
output: z262.object({ success: z262.literal(true) })
|
|
7475
7490
|
});
|
|
7476
|
-
var DTOElementPropertyValueUpsertPaylod =
|
|
7477
|
-
definitionId:
|
|
7478
|
-
targetElementId:
|
|
7479
|
-
value:
|
|
7491
|
+
var DTOElementPropertyValueUpsertPaylod = z262.object({
|
|
7492
|
+
definitionId: z262.string(),
|
|
7493
|
+
targetElementId: z262.string(),
|
|
7494
|
+
value: z262.string().or(z262.number()).or(z262.boolean()).nullable()
|
|
7480
7495
|
});
|
|
7481
|
-
var DTOElementPropertyValuesEditActionInput =
|
|
7482
|
-
type:
|
|
7496
|
+
var DTOElementPropertyValuesEditActionInput = z262.object({
|
|
7497
|
+
type: z262.literal("ElementPropertyValuesEdit"),
|
|
7483
7498
|
values: DTOElementPropertyValueUpsertPaylod.array()
|
|
7484
7499
|
});
|
|
7485
7500
|
|
|
7486
7501
|
// src/api/dto/elements/elements-action-v2.ts
|
|
7487
|
-
import { z as
|
|
7488
|
-
var DTOElementActionOutput =
|
|
7502
|
+
import { z as z263 } from "zod";
|
|
7503
|
+
var DTOElementActionOutput = z263.discriminatedUnion("type", [
|
|
7489
7504
|
// Documentation pages
|
|
7490
7505
|
DTODocumentationPageCreateActionOutputV2,
|
|
7491
7506
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -7512,7 +7527,7 @@ var DTOElementActionOutput = z262.discriminatedUnion("type", [
|
|
|
7512
7527
|
// Element properties
|
|
7513
7528
|
DTOElementPropertyValuesEditActionOutput
|
|
7514
7529
|
]);
|
|
7515
|
-
var DTOElementActionInput =
|
|
7530
|
+
var DTOElementActionInput = z263.discriminatedUnion("type", [
|
|
7516
7531
|
// Documentation pages
|
|
7517
7532
|
DTODocumentationPageCreateActionInputV2,
|
|
7518
7533
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -7539,90 +7554,90 @@ var DTOElementActionInput = z262.discriminatedUnion("type", [
|
|
|
7539
7554
|
// Element properties
|
|
7540
7555
|
DTOElementPropertyValuesEditActionInput
|
|
7541
7556
|
]).and(
|
|
7542
|
-
|
|
7543
|
-
tId:
|
|
7557
|
+
z263.object({
|
|
7558
|
+
tId: z263.string().optional()
|
|
7544
7559
|
})
|
|
7545
7560
|
);
|
|
7546
7561
|
|
|
7547
7562
|
// src/api/dto/elements/get-elements-v2.ts
|
|
7548
|
-
import { z as
|
|
7549
|
-
var DTOElementsGetTypeFilter =
|
|
7550
|
-
var DTOElementsGetQuerySchema =
|
|
7551
|
-
types:
|
|
7552
|
-
responseVersion:
|
|
7563
|
+
import { z as z264 } from "zod";
|
|
7564
|
+
var DTOElementsGetTypeFilter = z264.enum(["FigmaNode"]);
|
|
7565
|
+
var DTOElementsGetQuerySchema = z264.object({
|
|
7566
|
+
types: z264.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v))),
|
|
7567
|
+
responseVersion: z264.coerce.number().default(1)
|
|
7553
7568
|
});
|
|
7554
|
-
var DTOElementsGetOutput =
|
|
7555
|
-
figmaNodes:
|
|
7569
|
+
var DTOElementsGetOutput = z264.object({
|
|
7570
|
+
figmaNodes: z264.array(DTOFigmaNode).optional()
|
|
7556
7571
|
});
|
|
7557
|
-
var DTOElementsGetOutputV2 =
|
|
7558
|
-
figmaNodes:
|
|
7572
|
+
var DTOElementsGetOutputV2 = z264.object({
|
|
7573
|
+
figmaNodes: z264.array(DTOFigmaNodeV2).optional()
|
|
7559
7574
|
});
|
|
7560
7575
|
|
|
7561
7576
|
// src/api/dto/figma-components/assets/download.ts
|
|
7562
|
-
import { z as
|
|
7563
|
-
var DTOAssetRenderConfiguration =
|
|
7564
|
-
prefix:
|
|
7565
|
-
suffix:
|
|
7566
|
-
scale:
|
|
7567
|
-
format:
|
|
7568
|
-
});
|
|
7569
|
-
var DTORenderedAssetFile =
|
|
7570
|
-
assetId:
|
|
7571
|
-
fileName:
|
|
7572
|
-
sourceUrl:
|
|
7577
|
+
import { z as z265 } from "zod";
|
|
7578
|
+
var DTOAssetRenderConfiguration = z265.object({
|
|
7579
|
+
prefix: z265.string().optional(),
|
|
7580
|
+
suffix: z265.string().optional(),
|
|
7581
|
+
scale: z265.enum(["x1", "x2", "x3", "x4"]),
|
|
7582
|
+
format: z265.enum(["png", "pdf", "svg"])
|
|
7583
|
+
});
|
|
7584
|
+
var DTORenderedAssetFile = z265.object({
|
|
7585
|
+
assetId: z265.string(),
|
|
7586
|
+
fileName: z265.string(),
|
|
7587
|
+
sourceUrl: z265.string(),
|
|
7573
7588
|
settings: DTOAssetRenderConfiguration,
|
|
7574
|
-
originalName:
|
|
7589
|
+
originalName: z265.string()
|
|
7575
7590
|
});
|
|
7576
|
-
var DTODownloadAssetsRequest =
|
|
7577
|
-
persistentIds:
|
|
7591
|
+
var DTODownloadAssetsRequest = z265.object({
|
|
7592
|
+
persistentIds: z265.array(z265.string().uuid()).optional(),
|
|
7578
7593
|
settings: DTOAssetRenderConfiguration.array()
|
|
7579
7594
|
});
|
|
7580
|
-
var DTODownloadAssetsResponse =
|
|
7595
|
+
var DTODownloadAssetsResponse = z265.object({
|
|
7581
7596
|
items: DTORenderedAssetFile.array()
|
|
7582
7597
|
});
|
|
7583
7598
|
|
|
7584
7599
|
// src/api/dto/liveblocks/auth-response.ts
|
|
7585
|
-
import { z as
|
|
7586
|
-
var DTOLiveblocksAuthResponse =
|
|
7587
|
-
token:
|
|
7600
|
+
import { z as z266 } from "zod";
|
|
7601
|
+
var DTOLiveblocksAuthResponse = z266.object({
|
|
7602
|
+
token: z266.string()
|
|
7588
7603
|
});
|
|
7589
7604
|
|
|
7590
7605
|
// src/api/dto/themes/override.ts
|
|
7591
|
-
import { z as
|
|
7606
|
+
import { z as z267 } from "zod";
|
|
7592
7607
|
var DTOThemeOverride = DesignTokenTypedData.and(
|
|
7593
|
-
|
|
7594
|
-
tokenPersistentId:
|
|
7608
|
+
z267.object({
|
|
7609
|
+
tokenPersistentId: z267.string(),
|
|
7595
7610
|
origin: ThemeOverrideOrigin.optional()
|
|
7596
7611
|
})
|
|
7597
7612
|
);
|
|
7598
7613
|
var DTOThemeOverrideCreatePayload = DesignTokenTypedData.and(
|
|
7599
|
-
|
|
7600
|
-
tokenPersistentId:
|
|
7614
|
+
z267.object({
|
|
7615
|
+
tokenPersistentId: z267.string()
|
|
7601
7616
|
})
|
|
7602
7617
|
);
|
|
7603
7618
|
|
|
7604
7619
|
// src/api/dto/themes/theme.ts
|
|
7605
|
-
import { z as
|
|
7606
|
-
var DTOTheme =
|
|
7607
|
-
id:
|
|
7608
|
-
persistentId:
|
|
7609
|
-
designSystemVersionId:
|
|
7610
|
-
brandId:
|
|
7620
|
+
import { z as z268 } from "zod";
|
|
7621
|
+
var DTOTheme = z268.object({
|
|
7622
|
+
id: z268.string(),
|
|
7623
|
+
persistentId: z268.string(),
|
|
7624
|
+
designSystemVersionId: z268.string(),
|
|
7625
|
+
brandId: z268.string(),
|
|
7611
7626
|
meta: ObjectMeta,
|
|
7612
|
-
codeName:
|
|
7627
|
+
codeName: z268.string(),
|
|
7613
7628
|
overrides: DTOThemeOverride.array()
|
|
7614
7629
|
});
|
|
7615
|
-
var DTOThemeResponse =
|
|
7630
|
+
var DTOThemeResponse = z268.object({
|
|
7616
7631
|
theme: DTOTheme
|
|
7617
7632
|
});
|
|
7618
|
-
var DTOThemeListResponse =
|
|
7633
|
+
var DTOThemeListResponse = z268.object({
|
|
7619
7634
|
themes: DTOTheme.array()
|
|
7620
7635
|
});
|
|
7621
|
-
var DTOThemeCreatePayload =
|
|
7636
|
+
var DTOThemeCreatePayload = z268.object({
|
|
7622
7637
|
meta: ObjectMeta,
|
|
7623
|
-
persistentId:
|
|
7624
|
-
brandId:
|
|
7625
|
-
codeName:
|
|
7638
|
+
persistentId: z268.string(),
|
|
7639
|
+
brandId: z268.string(),
|
|
7640
|
+
codeName: z268.string(),
|
|
7626
7641
|
overrides: DTOThemeOverride.array()
|
|
7627
7642
|
});
|
|
7628
7643
|
|
|
@@ -7858,13 +7873,13 @@ var ExportersEndpoint = class {
|
|
|
7858
7873
|
};
|
|
7859
7874
|
|
|
7860
7875
|
// src/api/endpoints/codegen/jobs.ts
|
|
7861
|
-
import { z as
|
|
7876
|
+
import { z as z269 } from "zod";
|
|
7862
7877
|
var ExporterJobsEndpoint = class {
|
|
7863
7878
|
constructor(requestExecutor) {
|
|
7864
7879
|
this.requestExecutor = requestExecutor;
|
|
7865
7880
|
}
|
|
7866
7881
|
list(workspaceId) {
|
|
7867
|
-
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`,
|
|
7882
|
+
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs`, z269.any());
|
|
7868
7883
|
}
|
|
7869
7884
|
get(workspaceId, jobId) {
|
|
7870
7885
|
return this.requestExecutor.json(`/codegen/workspaces/${workspaceId}/jobs/${jobId}`, DTOExportJobResponseLegacy);
|
|
@@ -7922,7 +7937,7 @@ var CodegenEndpoint = class {
|
|
|
7922
7937
|
};
|
|
7923
7938
|
|
|
7924
7939
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
7925
|
-
import { z as
|
|
7940
|
+
import { z as z270 } from "zod";
|
|
7926
7941
|
var BrandsEndpoint = class {
|
|
7927
7942
|
constructor(requestExecutor) {
|
|
7928
7943
|
this.requestExecutor = requestExecutor;
|
|
@@ -7956,7 +7971,7 @@ var BrandsEndpoint = class {
|
|
|
7956
7971
|
});
|
|
7957
7972
|
}
|
|
7958
7973
|
delete(dsId, vId, brandId) {
|
|
7959
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`,
|
|
7974
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${vId}/brands/${brandId}`, z270.any(), {
|
|
7960
7975
|
method: "DELETE"
|
|
7961
7976
|
});
|
|
7962
7977
|
}
|
|
@@ -8169,7 +8184,7 @@ var ImportJobsEndpoint = class {
|
|
|
8169
8184
|
};
|
|
8170
8185
|
|
|
8171
8186
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
8172
|
-
import { z as
|
|
8187
|
+
import { z as z271 } from "zod";
|
|
8173
8188
|
var OverridesEndpoint = class {
|
|
8174
8189
|
constructor(requestExecutor) {
|
|
8175
8190
|
this.requestExecutor = requestExecutor;
|
|
@@ -8177,7 +8192,7 @@ var OverridesEndpoint = class {
|
|
|
8177
8192
|
create(dsId, versionId, themeId, body) {
|
|
8178
8193
|
return this.requestExecutor.json(
|
|
8179
8194
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
8180
|
-
|
|
8195
|
+
z271.any(),
|
|
8181
8196
|
{
|
|
8182
8197
|
method: "POST",
|
|
8183
8198
|
body
|
|
@@ -8187,7 +8202,7 @@ var OverridesEndpoint = class {
|
|
|
8187
8202
|
};
|
|
8188
8203
|
|
|
8189
8204
|
// src/api/endpoints/design-system/versions/property-definitions.ts
|
|
8190
|
-
import { z as
|
|
8205
|
+
import { z as z272 } from "zod";
|
|
8191
8206
|
var ElementPropertyDefinitionsEndpoint = class {
|
|
8192
8207
|
constructor(requestExecutor) {
|
|
8193
8208
|
this.requestExecutor = requestExecutor;
|
|
@@ -8215,7 +8230,7 @@ var ElementPropertyDefinitionsEndpoint = class {
|
|
|
8215
8230
|
delete(designSystemId, versionId, defId) {
|
|
8216
8231
|
return this.requestExecutor.json(
|
|
8217
8232
|
`/design-systems/${designSystemId}/versions/${versionId}/element-properties/definitions/${defId}`,
|
|
8218
|
-
|
|
8233
|
+
z272.any(),
|
|
8219
8234
|
{ method: "DELETE" }
|
|
8220
8235
|
);
|
|
8221
8236
|
}
|
|
@@ -8254,7 +8269,7 @@ var VersionStatsEndpoint = class {
|
|
|
8254
8269
|
};
|
|
8255
8270
|
|
|
8256
8271
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
8257
|
-
import { z as
|
|
8272
|
+
import { z as z273 } from "zod";
|
|
8258
8273
|
var ThemesEndpoint = class {
|
|
8259
8274
|
constructor(requestExecutor) {
|
|
8260
8275
|
this.requestExecutor = requestExecutor;
|
|
@@ -8277,7 +8292,7 @@ var ThemesEndpoint = class {
|
|
|
8277
8292
|
});
|
|
8278
8293
|
}
|
|
8279
8294
|
delete(dsId, versionId, themeId) {
|
|
8280
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
8295
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z273.any(), {
|
|
8281
8296
|
method: "DELETE"
|
|
8282
8297
|
});
|
|
8283
8298
|
}
|
|
@@ -8432,7 +8447,7 @@ var DesignSystemContactsEndpoint = class {
|
|
|
8432
8447
|
};
|
|
8433
8448
|
|
|
8434
8449
|
// src/api/endpoints/design-system/design-systems.ts
|
|
8435
|
-
import { z as
|
|
8450
|
+
import { z as z275 } from "zod";
|
|
8436
8451
|
|
|
8437
8452
|
// src/api/endpoints/design-system/figma-node-structures.ts
|
|
8438
8453
|
var FigmaNodeStructuresEndpoint = class {
|
|
@@ -8509,7 +8524,7 @@ var DesignSystemPageRedirectsEndpoint = class {
|
|
|
8509
8524
|
};
|
|
8510
8525
|
|
|
8511
8526
|
// src/api/endpoints/design-system/sources.ts
|
|
8512
|
-
import { z as
|
|
8527
|
+
import { z as z274 } from "zod";
|
|
8513
8528
|
var DesignSystemSourcesEndpoint = class {
|
|
8514
8529
|
constructor(requestExecutor) {
|
|
8515
8530
|
this.requestExecutor = requestExecutor;
|
|
@@ -8524,7 +8539,7 @@ var DesignSystemSourcesEndpoint = class {
|
|
|
8524
8539
|
return this.requestExecutor.json(`/design-systems/${dsId}/sources`, DTODataSourcesListResponse);
|
|
8525
8540
|
}
|
|
8526
8541
|
delete(dsId, sourceId) {
|
|
8527
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`,
|
|
8542
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/sources/${sourceId}`, z274.any(), { method: "DELETE" });
|
|
8528
8543
|
}
|
|
8529
8544
|
figmaImport(dsId, payload) {
|
|
8530
8545
|
return this.requestExecutor.json(`/design-systems/${dsId}/versions/head/cloud-import`, DTOImportJobResponse, {
|
|
@@ -8563,7 +8578,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8563
8578
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse);
|
|
8564
8579
|
}
|
|
8565
8580
|
delete(dsId) {
|
|
8566
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
8581
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z275.any(), { method: "DELETE" });
|
|
8567
8582
|
}
|
|
8568
8583
|
update(dsId, body) {
|
|
8569
8584
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -8580,7 +8595,7 @@ var DesignSystemsEndpoint = class {
|
|
|
8580
8595
|
};
|
|
8581
8596
|
|
|
8582
8597
|
// src/api/endpoints/workspaces/integrations.ts
|
|
8583
|
-
import { z as
|
|
8598
|
+
import { z as z276 } from "zod";
|
|
8584
8599
|
var WorkspaceIntegrationsEndpoint = class {
|
|
8585
8600
|
constructor(requestExecutor) {
|
|
8586
8601
|
this.requestExecutor = requestExecutor;
|
|
@@ -8589,7 +8604,7 @@ var WorkspaceIntegrationsEndpoint = class {
|
|
|
8589
8604
|
return this.requestExecutor.json(`/workspaces/${wsId}/integrations`, DTOIntegrationsGetListResponse);
|
|
8590
8605
|
}
|
|
8591
8606
|
delete(wsId, iId) {
|
|
8592
|
-
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`,
|
|
8607
|
+
return this.requestExecutor.json(`/workspaces/${wsId}/integrations/${iId}`, z276.unknown(), { method: "DELETE" });
|
|
8593
8608
|
}
|
|
8594
8609
|
};
|
|
8595
8610
|
|
|
@@ -8621,7 +8636,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
8621
8636
|
};
|
|
8622
8637
|
|
|
8623
8638
|
// src/api/endpoints/workspaces/members.ts
|
|
8624
|
-
import { z as
|
|
8639
|
+
import { z as z277 } from "zod";
|
|
8625
8640
|
var WorkspaceMembersEndpoint = class {
|
|
8626
8641
|
constructor(requestExecutor) {
|
|
8627
8642
|
this.requestExecutor = requestExecutor;
|
|
@@ -8638,7 +8653,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8638
8653
|
});
|
|
8639
8654
|
}
|
|
8640
8655
|
invite(workspaceId, body) {
|
|
8641
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
8656
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z277.any(), { method: "POST", body });
|
|
8642
8657
|
}
|
|
8643
8658
|
delete(workspaceId, userId) {
|
|
8644
8659
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -8648,7 +8663,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
8648
8663
|
};
|
|
8649
8664
|
|
|
8650
8665
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
8651
|
-
import { z as
|
|
8666
|
+
import { z as z278 } from "zod";
|
|
8652
8667
|
var WorkspacesEndpoint = class {
|
|
8653
8668
|
constructor(requestExecutor) {
|
|
8654
8669
|
this.requestExecutor = requestExecutor;
|
|
@@ -8673,10 +8688,10 @@ var WorkspacesEndpoint = class {
|
|
|
8673
8688
|
return this.requestExecutor.json(`/workspaces/${workspaceId}`, DTOWorkspaceResponse, { method: "GET" });
|
|
8674
8689
|
}
|
|
8675
8690
|
delete(workspaceId) {
|
|
8676
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
8691
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z278.any(), { method: "DELETE" });
|
|
8677
8692
|
}
|
|
8678
8693
|
subscription(workspaceId) {
|
|
8679
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
8694
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z278.any(), { method: "GET" });
|
|
8680
8695
|
}
|
|
8681
8696
|
transferOwnership(workspaceId, body) {
|
|
8682
8697
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/ownership`, DTOWorkspaceResponse, {
|
|
@@ -8776,9 +8791,9 @@ ${bodyText}`,
|
|
|
8776
8791
|
|
|
8777
8792
|
// src/api/transport/request-executor.ts
|
|
8778
8793
|
import fetch from "node-fetch";
|
|
8779
|
-
import { z as
|
|
8780
|
-
var ResponseWrapper =
|
|
8781
|
-
result:
|
|
8794
|
+
import { z as z279 } from "zod";
|
|
8795
|
+
var ResponseWrapper = z279.object({
|
|
8796
|
+
result: z279.record(z279.any())
|
|
8782
8797
|
});
|
|
8783
8798
|
var RequestExecutor = class {
|
|
8784
8799
|
constructor(testServerConfig) {
|
|
@@ -8855,31 +8870,31 @@ var SupernovaApiClient = class {
|
|
|
8855
8870
|
};
|
|
8856
8871
|
|
|
8857
8872
|
// src/events/design-system.ts
|
|
8858
|
-
import { z as
|
|
8859
|
-
var DTOEventFigmaNodesRendered =
|
|
8860
|
-
type:
|
|
8861
|
-
designSystemId:
|
|
8862
|
-
versionId:
|
|
8863
|
-
figmaNodePersistentIds:
|
|
8864
|
-
});
|
|
8865
|
-
var DTOEventDataSourcesImported =
|
|
8866
|
-
type:
|
|
8867
|
-
designSystemId:
|
|
8868
|
-
versionId:
|
|
8869
|
-
importJobId:
|
|
8873
|
+
import { z as z280 } from "zod";
|
|
8874
|
+
var DTOEventFigmaNodesRendered = z280.object({
|
|
8875
|
+
type: z280.literal("DesignSystem.FigmaNodesRendered"),
|
|
8876
|
+
designSystemId: z280.string(),
|
|
8877
|
+
versionId: z280.string(),
|
|
8878
|
+
figmaNodePersistentIds: z280.string().array()
|
|
8879
|
+
});
|
|
8880
|
+
var DTOEventDataSourcesImported = z280.object({
|
|
8881
|
+
type: z280.literal("DesignSystem.ImportJobFinished"),
|
|
8882
|
+
designSystemId: z280.string(),
|
|
8883
|
+
versionId: z280.string(),
|
|
8884
|
+
importJobId: z280.string(),
|
|
8870
8885
|
dataSourceType: DataSourceRemoteType,
|
|
8871
|
-
dataSourceIds:
|
|
8886
|
+
dataSourceIds: z280.string().array()
|
|
8872
8887
|
});
|
|
8873
8888
|
|
|
8874
8889
|
// src/events/event.ts
|
|
8875
|
-
import { z as
|
|
8876
|
-
var DTOEvent =
|
|
8890
|
+
import { z as z281 } from "zod";
|
|
8891
|
+
var DTOEvent = z281.discriminatedUnion("type", [DTOEventDataSourcesImported, DTOEventFigmaNodesRendered]);
|
|
8877
8892
|
|
|
8878
8893
|
// src/sync/docs-structure-repo.ts
|
|
8879
8894
|
import PQueue from "p-queue";
|
|
8880
8895
|
|
|
8881
8896
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
8882
|
-
import { z as
|
|
8897
|
+
import { z as z282 } from "zod";
|
|
8883
8898
|
|
|
8884
8899
|
// src/yjs/version-room/base.ts
|
|
8885
8900
|
var VersionRoomBaseYDoc = class {
|
|
@@ -9444,24 +9459,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
9444
9459
|
};
|
|
9445
9460
|
|
|
9446
9461
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
9447
|
-
var DocumentationHierarchySettings =
|
|
9448
|
-
routingVersion:
|
|
9449
|
-
isDraftFeatureAdopted:
|
|
9450
|
-
isApprovalFeatureEnabled:
|
|
9451
|
-
approvalRequiredForPublishing:
|
|
9462
|
+
var DocumentationHierarchySettings = z282.object({
|
|
9463
|
+
routingVersion: z282.string(),
|
|
9464
|
+
isDraftFeatureAdopted: z282.boolean(),
|
|
9465
|
+
isApprovalFeatureEnabled: z282.boolean(),
|
|
9466
|
+
approvalRequiredForPublishing: z282.boolean()
|
|
9452
9467
|
});
|
|
9453
9468
|
function yjsToDocumentationHierarchy(doc) {
|
|
9454
9469
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
9455
9470
|
}
|
|
9456
9471
|
|
|
9457
9472
|
// src/yjs/design-system-content/item-configuration.ts
|
|
9458
|
-
import { z as
|
|
9459
|
-
var DTODocumentationPageRoomHeaderData =
|
|
9460
|
-
title:
|
|
9473
|
+
import { z as z283 } from "zod";
|
|
9474
|
+
var DTODocumentationPageRoomHeaderData = z283.object({
|
|
9475
|
+
title: z283.string(),
|
|
9461
9476
|
configuration: DTODocumentationItemConfigurationV2
|
|
9462
9477
|
});
|
|
9463
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
9464
|
-
title:
|
|
9478
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z283.object({
|
|
9479
|
+
title: z283.string().optional(),
|
|
9465
9480
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
9466
9481
|
});
|
|
9467
9482
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -9512,7 +9527,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
9512
9527
|
header: rawHeader
|
|
9513
9528
|
};
|
|
9514
9529
|
return {
|
|
9515
|
-
title:
|
|
9530
|
+
title: z283.string().parse(title),
|
|
9516
9531
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
9517
9532
|
};
|
|
9518
9533
|
}
|
|
@@ -9522,9 +9537,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
9522
9537
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
9523
9538
|
|
|
9524
9539
|
// src/yjs/docs-editor/model/page.ts
|
|
9525
|
-
import { z as
|
|
9526
|
-
var DocumentationPageEditorModel =
|
|
9527
|
-
blocks:
|
|
9540
|
+
import { z as z284 } from "zod";
|
|
9541
|
+
var DocumentationPageEditorModel = z284.object({
|
|
9542
|
+
blocks: z284.array(DocumentationPageContentItem)
|
|
9528
9543
|
});
|
|
9529
9544
|
|
|
9530
9545
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -13083,7 +13098,7 @@ var blocks = [
|
|
|
13083
13098
|
|
|
13084
13099
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
13085
13100
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
13086
|
-
import { z as
|
|
13101
|
+
import { z as z285 } from "zod";
|
|
13087
13102
|
function yDocToPage(yDoc, definitions) {
|
|
13088
13103
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
13089
13104
|
}
|
|
@@ -13163,7 +13178,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
13163
13178
|
return null;
|
|
13164
13179
|
return {
|
|
13165
13180
|
id,
|
|
13166
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
13181
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z285.string()) ?? "",
|
|
13167
13182
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
13168
13183
|
};
|
|
13169
13184
|
}
|
|
@@ -13198,7 +13213,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
13198
13213
|
});
|
|
13199
13214
|
}
|
|
13200
13215
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
13201
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
13216
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z285.string());
|
|
13202
13217
|
if (!definitionId) {
|
|
13203
13218
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
13204
13219
|
return [];
|
|
@@ -13240,7 +13255,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
13240
13255
|
if (!id)
|
|
13241
13256
|
return null;
|
|
13242
13257
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13243
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
13258
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z285.string().optional()));
|
|
13244
13259
|
return {
|
|
13245
13260
|
id,
|
|
13246
13261
|
type: "Block",
|
|
@@ -13368,10 +13383,10 @@ function parseRichTextAttribute(mark) {
|
|
|
13368
13383
|
return null;
|
|
13369
13384
|
}
|
|
13370
13385
|
function parseProsemirrorLink(mark) {
|
|
13371
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
13386
|
+
const href = getProsemirrorAttribute(mark, "href", z285.string().optional());
|
|
13372
13387
|
if (!href)
|
|
13373
13388
|
return null;
|
|
13374
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
13389
|
+
const target = getProsemirrorAttribute(mark, "target", z285.string().optional());
|
|
13375
13390
|
const openInNewTab = target === "_blank";
|
|
13376
13391
|
if (href.startsWith("@")) {
|
|
13377
13392
|
return {
|
|
@@ -13390,10 +13405,10 @@ function parseProsemirrorLink(mark) {
|
|
|
13390
13405
|
}
|
|
13391
13406
|
}
|
|
13392
13407
|
function parseProsemirrorCommentHighlight(mark) {
|
|
13393
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
13408
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z285.string().optional());
|
|
13394
13409
|
if (!highlightId)
|
|
13395
13410
|
return null;
|
|
13396
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
13411
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z285.boolean().optional()) ?? false;
|
|
13397
13412
|
return {
|
|
13398
13413
|
type: "Comment",
|
|
13399
13414
|
commentHighlightId: highlightId,
|
|
@@ -13405,7 +13420,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
13405
13420
|
if (!id)
|
|
13406
13421
|
return null;
|
|
13407
13422
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
13408
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
13423
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z285.boolean().optional()) !== false;
|
|
13409
13424
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
13410
13425
|
if (!tableChild) {
|
|
13411
13426
|
return emptyTable(id, variantId, 0);
|
|
@@ -13452,9 +13467,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
13452
13467
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
13453
13468
|
if (!id)
|
|
13454
13469
|
return null;
|
|
13455
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
13470
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z285.string().optional());
|
|
13456
13471
|
let columnWidth;
|
|
13457
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
13472
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z285.array(z285.number()).nullish());
|
|
13458
13473
|
if (columnWidthArray) {
|
|
13459
13474
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
13460
13475
|
}
|
|
@@ -13492,7 +13507,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
13492
13507
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
13493
13508
|
};
|
|
13494
13509
|
case "image":
|
|
13495
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13510
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z285.string());
|
|
13496
13511
|
if (!items)
|
|
13497
13512
|
return null;
|
|
13498
13513
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -13612,7 +13627,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
13612
13627
|
);
|
|
13613
13628
|
}
|
|
13614
13629
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
13615
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
13630
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z285.string());
|
|
13616
13631
|
if (!itemsString)
|
|
13617
13632
|
return null;
|
|
13618
13633
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -13624,18 +13639,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
13624
13639
|
}
|
|
13625
13640
|
function parseAppearance(prosemirrorNode) {
|
|
13626
13641
|
let appearance = {};
|
|
13627
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
13642
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z285.string().optional());
|
|
13628
13643
|
if (rawAppearanceString) {
|
|
13629
13644
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
13630
13645
|
if (parsedAppearance.success) {
|
|
13631
13646
|
appearance = parsedAppearance.data;
|
|
13632
13647
|
}
|
|
13633
13648
|
}
|
|
13634
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
13649
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z285.number().optional());
|
|
13635
13650
|
if (columns) {
|
|
13636
13651
|
appearance.numberOfColumns = columns;
|
|
13637
13652
|
}
|
|
13638
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
13653
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z285.string().optional());
|
|
13639
13654
|
if (backgroundColor) {
|
|
13640
13655
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
13641
13656
|
if (parsedColor.success) {
|
|
@@ -13730,13 +13745,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
13730
13745
|
}
|
|
13731
13746
|
}
|
|
13732
13747
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
13733
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
13748
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z285.string());
|
|
13734
13749
|
if (!id)
|
|
13735
13750
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
13736
13751
|
return id;
|
|
13737
13752
|
}
|
|
13738
13753
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
13739
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
13754
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z285.string()));
|
|
13740
13755
|
}
|
|
13741
13756
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
13742
13757
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -14281,6 +14296,7 @@ export {
|
|
|
14281
14296
|
CodeComponentsEndpoint,
|
|
14282
14297
|
CodegenEndpoint,
|
|
14283
14298
|
Collection2 as Collection,
|
|
14299
|
+
DTOAnalyticsDataResponse,
|
|
14284
14300
|
DTOAppBootstrapDataQuery,
|
|
14285
14301
|
DTOAppBootstrapDataResponse,
|
|
14286
14302
|
DTOAssetRenderConfiguration,
|
|
@@ -14558,6 +14574,7 @@ export {
|
|
|
14558
14574
|
DTOPublishDocumentationChanges,
|
|
14559
14575
|
DTOPublishDocumentationRequest,
|
|
14560
14576
|
DTOPublishDocumentationResponse,
|
|
14577
|
+
DTOPublishedDocPageVisitData,
|
|
14561
14578
|
DTORenderedAssetFile,
|
|
14562
14579
|
DTORestoreDocumentationGroupInput,
|
|
14563
14580
|
DTORestoreDocumentationPageInput,
|