@supernova-studio/client 0.47.38 → 0.47.40
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 +83 -3
- package/dist/index.d.ts +83 -3
- package/dist/index.js +90 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1649 -1568
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/conversion/documentation/documentation-elements-to-hierarchy-v2-dto.ts +3 -1
- package/src/api/dto/elements/documentation/page-v2.ts +3 -2
- package/src/index.ts +1 -0
- package/src/utils/hash.ts +35 -0
- package/src/utils/index.ts +1 -0
- package/src/yjs/design-system-content/documentation-hierarchy.ts +33 -3
package/dist/index.mjs
CHANGED
|
@@ -20,18 +20,18 @@ import { z as z11 } from "zod";
|
|
|
20
20
|
import { z as z12 } from "zod";
|
|
21
21
|
import { z as z13 } from "zod";
|
|
22
22
|
import { z as z14 } from "zod";
|
|
23
|
-
import { z as
|
|
23
|
+
import { z as z120 } from "zod";
|
|
24
24
|
import { z as z17 } from "zod";
|
|
25
25
|
import { z as z15 } from "zod";
|
|
26
26
|
import { z as z16 } from "zod";
|
|
27
|
+
import { z as z119 } from "zod";
|
|
27
28
|
import { z as z118 } from "zod";
|
|
28
|
-
import { z as z117 } from "zod";
|
|
29
29
|
import { z as z18 } from "zod";
|
|
30
30
|
import { z as z19 } from "zod";
|
|
31
31
|
import { z as z20 } from "zod";
|
|
32
32
|
import { z as z21 } from "zod";
|
|
33
|
+
import { z as z82 } from "zod";
|
|
33
34
|
import { z as z81 } from "zod";
|
|
34
|
-
import { z as z80 } from "zod";
|
|
35
35
|
import { z as z22 } from "zod";
|
|
36
36
|
import { z as z24 } from "zod";
|
|
37
37
|
import { z as z23 } from "zod";
|
|
@@ -87,15 +87,15 @@ import { z as z72 } from "zod";
|
|
|
87
87
|
import { z as z74 } from "zod";
|
|
88
88
|
import { z as z75 } from "zod";
|
|
89
89
|
import { z as z76 } from "zod";
|
|
90
|
-
import { z as z78 } from "zod";
|
|
91
90
|
import { z as z77 } from "zod";
|
|
92
91
|
import { z as z79 } from "zod";
|
|
93
|
-
import { z as
|
|
92
|
+
import { z as z78 } from "zod";
|
|
93
|
+
import { z as z80 } from "zod";
|
|
94
94
|
import { z as z83 } from "zod";
|
|
95
|
-
import { z as z86 } from "zod";
|
|
96
|
-
import { z as z85 } from "zod";
|
|
97
95
|
import { z as z84 } from "zod";
|
|
98
96
|
import { z as z87 } from "zod";
|
|
97
|
+
import { z as z86 } from "zod";
|
|
98
|
+
import { z as z85 } from "zod";
|
|
99
99
|
import { z as z88 } from "zod";
|
|
100
100
|
import { z as z89 } from "zod";
|
|
101
101
|
import { z as z90 } from "zod";
|
|
@@ -104,37 +104,37 @@ import { z as z92 } from "zod";
|
|
|
104
104
|
import { z as z93 } from "zod";
|
|
105
105
|
import { z as z94 } from "zod";
|
|
106
106
|
import { z as z95 } from "zod";
|
|
107
|
-
import { z as z103 } from "zod";
|
|
108
107
|
import { z as z96 } from "zod";
|
|
109
|
-
import { z as
|
|
108
|
+
import { z as z104 } from "zod";
|
|
110
109
|
import { z as z97 } from "zod";
|
|
111
110
|
import { z as z99 } from "zod";
|
|
111
|
+
import { z as z98 } from "zod";
|
|
112
112
|
import { z as z100 } from "zod";
|
|
113
113
|
import { z as z101 } from "zod";
|
|
114
114
|
import { z as z102 } from "zod";
|
|
115
|
-
import { z as
|
|
115
|
+
import { z as z103 } from "zod";
|
|
116
116
|
import { z as z105 } from "zod";
|
|
117
117
|
import { z as z106 } from "zod";
|
|
118
|
-
import { z as z110 } from "zod";
|
|
119
|
-
import IPCIDR from "ip-cidr";
|
|
120
|
-
import { z as z109 } from "zod";
|
|
121
118
|
import { z as z107 } from "zod";
|
|
122
|
-
import { z as z108 } from "zod";
|
|
123
119
|
import { z as z111 } from "zod";
|
|
120
|
+
import IPCIDR from "ip-cidr";
|
|
121
|
+
import { z as z110 } from "zod";
|
|
122
|
+
import { z as z108 } from "zod";
|
|
123
|
+
import { z as z109 } from "zod";
|
|
124
124
|
import { z as z112 } from "zod";
|
|
125
125
|
import { z as z113 } from "zod";
|
|
126
126
|
import { z as z114 } from "zod";
|
|
127
127
|
import { z as z115 } from "zod";
|
|
128
128
|
import { z as z116 } from "zod";
|
|
129
|
+
import { z as z117 } from "zod";
|
|
130
|
+
import { z as z127 } from "zod";
|
|
129
131
|
import { z as z126 } from "zod";
|
|
130
|
-
import { z as z125 } from "zod";
|
|
131
|
-
import { z as z120 } from "zod";
|
|
132
132
|
import { z as z121 } from "zod";
|
|
133
133
|
import { z as z122 } from "zod";
|
|
134
134
|
import { z as z123 } from "zod";
|
|
135
135
|
import { z as z124 } from "zod";
|
|
136
|
-
import { z as
|
|
137
|
-
import { z as
|
|
136
|
+
import { z as z125 } from "zod";
|
|
137
|
+
import { z as z140 } from "zod";
|
|
138
138
|
import { z as z128 } from "zod";
|
|
139
139
|
import { z as z129 } from "zod";
|
|
140
140
|
import { z as z130 } from "zod";
|
|
@@ -143,32 +143,33 @@ import { z as z132 } from "zod";
|
|
|
143
143
|
import { z as z133 } from "zod";
|
|
144
144
|
import { z as z134 } from "zod";
|
|
145
145
|
import { z as z135 } from "zod";
|
|
146
|
+
import { z as z136 } from "zod";
|
|
147
|
+
import { z as z139 } from "zod";
|
|
146
148
|
import { z as z138 } from "zod";
|
|
147
149
|
import { z as z137 } from "zod";
|
|
148
|
-
import { z as z136 } from "zod";
|
|
149
150
|
import slugifyImplementation from "@sindresorhus/slugify";
|
|
150
|
-
import { z as z140 } from "zod";
|
|
151
151
|
import { z as z141 } from "zod";
|
|
152
152
|
import { z as z142 } from "zod";
|
|
153
153
|
import { z as z143 } from "zod";
|
|
154
154
|
import { z as z144 } from "zod";
|
|
155
155
|
import { z as z145 } from "zod";
|
|
156
156
|
import { z as z146 } from "zod";
|
|
157
|
-
import { z as z148 } from "zod";
|
|
158
157
|
import { z as z147 } from "zod";
|
|
159
158
|
import { z as z149 } from "zod";
|
|
159
|
+
import { z as z148 } from "zod";
|
|
160
160
|
import { z as z150 } from "zod";
|
|
161
161
|
import { z as z151 } from "zod";
|
|
162
162
|
import { z as z152 } from "zod";
|
|
163
163
|
import { z as z153 } from "zod";
|
|
164
|
-
import { z as z161 } from "zod";
|
|
165
|
-
import { z as z155 } from "zod";
|
|
166
164
|
import { z as z154 } from "zod";
|
|
165
|
+
import { z as z162 } from "zod";
|
|
167
166
|
import { z as z156 } from "zod";
|
|
167
|
+
import { z as z155 } from "zod";
|
|
168
168
|
import { z as z157 } from "zod";
|
|
169
169
|
import { z as z158 } from "zod";
|
|
170
170
|
import { z as z159 } from "zod";
|
|
171
171
|
import { z as z160 } from "zod";
|
|
172
|
+
import { z as z161 } from "zod";
|
|
172
173
|
var AssetDeleteScheduleStatus = z.enum(["InProgress", "Pending"]);
|
|
173
174
|
var AssetDeleteSchedule = z.object({
|
|
174
175
|
id: z.string(),
|
|
@@ -1552,11 +1553,28 @@ var DocumentationPageV2 = DesignElementBase.extend(DesignElementGroupableRequire
|
|
|
1552
1553
|
oldBlocks: z74.array(PageBlockV1).optional()
|
|
1553
1554
|
})
|
|
1554
1555
|
});
|
|
1555
|
-
var
|
|
1556
|
-
|
|
1557
|
-
|
|
1556
|
+
var DesignElementSnapshot = z75.object({
|
|
1557
|
+
id: z75.string(),
|
|
1558
|
+
// Scope
|
|
1559
|
+
designSystemVersionId: z75.string(),
|
|
1560
|
+
// Metadata about the element that needs to be indexed in the db
|
|
1561
|
+
elementId: z75.string(),
|
|
1562
|
+
elementType: DesignElementType,
|
|
1563
|
+
elementPersistentId: z75.string(),
|
|
1564
|
+
elementParentPersistentId: z75.string(),
|
|
1565
|
+
elementName: z75.string(),
|
|
1566
|
+
// Computed hash to compare to current state of the element
|
|
1567
|
+
hash: z75.string(),
|
|
1568
|
+
// Where is the element's full shapshot stored
|
|
1569
|
+
storageKey: z75.string(),
|
|
1570
|
+
// When the element was snapshotted
|
|
1571
|
+
createdAt: z75.coerce.date()
|
|
1572
|
+
});
|
|
1573
|
+
var FigmaFileStructureOrigin = z76.object({
|
|
1574
|
+
sourceId: z76.string(),
|
|
1575
|
+
fileId: z76.string().optional()
|
|
1558
1576
|
});
|
|
1559
|
-
var FigmaFileStructureData =
|
|
1577
|
+
var FigmaFileStructureData = z76.object({
|
|
1560
1578
|
rootNode: FigmaFileStructureNode,
|
|
1561
1579
|
assetsInFile: FigmaFileStructureStatistics
|
|
1562
1580
|
});
|
|
@@ -1564,17 +1582,17 @@ var FigmaFileStructure = DesignElementBase.extend({
|
|
|
1564
1582
|
origin: FigmaFileStructureOrigin,
|
|
1565
1583
|
data: FigmaFileStructureData
|
|
1566
1584
|
});
|
|
1567
|
-
var FigmaNodeReferenceOrigin =
|
|
1568
|
-
sourceId:
|
|
1569
|
-
parentName:
|
|
1585
|
+
var FigmaNodeReferenceOrigin = z77.object({
|
|
1586
|
+
sourceId: z77.string(),
|
|
1587
|
+
parentName: z77.string().optional()
|
|
1570
1588
|
});
|
|
1571
1589
|
var FigmaNodeReference = DesignElementBase.extend({
|
|
1572
1590
|
data: FigmaNodeReferenceData,
|
|
1573
1591
|
origin: FigmaNodeReferenceOrigin
|
|
1574
1592
|
});
|
|
1575
|
-
var DesignTokenOriginPart =
|
|
1576
|
-
referenceOriginId:
|
|
1577
|
-
referencePersistentId:
|
|
1593
|
+
var DesignTokenOriginPart = z78.object({
|
|
1594
|
+
referenceOriginId: z78.string().optional(),
|
|
1595
|
+
referencePersistentId: z78.string().optional()
|
|
1578
1596
|
});
|
|
1579
1597
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
1580
1598
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -1586,111 +1604,111 @@ var UpdateDesignTokenBase = DesignTokenBase.omit({
|
|
|
1586
1604
|
brandPersistentId: true,
|
|
1587
1605
|
designSystemVersionId: true
|
|
1588
1606
|
});
|
|
1589
|
-
var BlurTokenTypedData =
|
|
1590
|
-
type:
|
|
1607
|
+
var BlurTokenTypedData = z78.object({
|
|
1608
|
+
type: z78.literal("Blur"),
|
|
1591
1609
|
data: BlurTokenData
|
|
1592
1610
|
});
|
|
1593
|
-
var ColorTokenTypedData =
|
|
1594
|
-
type:
|
|
1611
|
+
var ColorTokenTypedData = z78.object({
|
|
1612
|
+
type: z78.literal("Color"),
|
|
1595
1613
|
data: ColorTokenData
|
|
1596
1614
|
});
|
|
1597
|
-
var GradientTokenTypedData =
|
|
1598
|
-
type:
|
|
1615
|
+
var GradientTokenTypedData = z78.object({
|
|
1616
|
+
type: z78.literal("Gradient"),
|
|
1599
1617
|
data: GradientTokenData
|
|
1600
1618
|
});
|
|
1601
|
-
var OpacityTokenTypedData =
|
|
1602
|
-
type:
|
|
1619
|
+
var OpacityTokenTypedData = z78.object({
|
|
1620
|
+
type: z78.literal("Opacity"),
|
|
1603
1621
|
data: OpacityTokenData
|
|
1604
1622
|
});
|
|
1605
|
-
var ShadowTokenTypedData =
|
|
1606
|
-
type:
|
|
1623
|
+
var ShadowTokenTypedData = z78.object({
|
|
1624
|
+
type: z78.literal("Shadow"),
|
|
1607
1625
|
data: ShadowTokenData
|
|
1608
1626
|
});
|
|
1609
|
-
var TypographyTokenTypedData =
|
|
1610
|
-
type:
|
|
1627
|
+
var TypographyTokenTypedData = z78.object({
|
|
1628
|
+
type: z78.literal("Typography"),
|
|
1611
1629
|
data: TypographyTokenData
|
|
1612
1630
|
});
|
|
1613
|
-
var StringTokenTypedData =
|
|
1614
|
-
type:
|
|
1631
|
+
var StringTokenTypedData = z78.object({
|
|
1632
|
+
type: z78.literal("String"),
|
|
1615
1633
|
data: StringTokenData
|
|
1616
1634
|
});
|
|
1617
|
-
var DimensionTokenTypedData =
|
|
1618
|
-
type:
|
|
1635
|
+
var DimensionTokenTypedData = z78.object({
|
|
1636
|
+
type: z78.literal("Dimension"),
|
|
1619
1637
|
data: DimensionTokenData
|
|
1620
1638
|
});
|
|
1621
|
-
var FontSizeTokenTypedData =
|
|
1622
|
-
type:
|
|
1639
|
+
var FontSizeTokenTypedData = z78.object({
|
|
1640
|
+
type: z78.literal("FontSize"),
|
|
1623
1641
|
data: FontSizeTokenData
|
|
1624
1642
|
});
|
|
1625
|
-
var FontFamilyTokenTypedData =
|
|
1626
|
-
type:
|
|
1643
|
+
var FontFamilyTokenTypedData = z78.object({
|
|
1644
|
+
type: z78.literal("FontFamily"),
|
|
1627
1645
|
data: FontFamilyTokenData
|
|
1628
1646
|
});
|
|
1629
|
-
var FontWeightTokenTypedData =
|
|
1630
|
-
type:
|
|
1647
|
+
var FontWeightTokenTypedData = z78.object({
|
|
1648
|
+
type: z78.literal("FontWeight"),
|
|
1631
1649
|
data: FontWeightTokenData
|
|
1632
1650
|
});
|
|
1633
|
-
var LetterSpacingTokenTypedData =
|
|
1634
|
-
type:
|
|
1651
|
+
var LetterSpacingTokenTypedData = z78.object({
|
|
1652
|
+
type: z78.literal("LetterSpacing"),
|
|
1635
1653
|
data: LetterSpacingTokenData
|
|
1636
1654
|
});
|
|
1637
|
-
var LineHeightTokenTypedData =
|
|
1638
|
-
type:
|
|
1655
|
+
var LineHeightTokenTypedData = z78.object({
|
|
1656
|
+
type: z78.literal("LineHeight"),
|
|
1639
1657
|
data: LineHeightTokenData
|
|
1640
1658
|
});
|
|
1641
|
-
var ParagraphSpacingTokenTypedData =
|
|
1642
|
-
type:
|
|
1659
|
+
var ParagraphSpacingTokenTypedData = z78.object({
|
|
1660
|
+
type: z78.literal("ParagraphSpacing"),
|
|
1643
1661
|
data: ParagraphSpacingTokenData
|
|
1644
1662
|
});
|
|
1645
|
-
var TextCaseTokenTypedData =
|
|
1646
|
-
type:
|
|
1663
|
+
var TextCaseTokenTypedData = z78.object({
|
|
1664
|
+
type: z78.literal("TextCase"),
|
|
1647
1665
|
data: TextCaseTokenData
|
|
1648
1666
|
});
|
|
1649
|
-
var TextDecorationTokenTypedData =
|
|
1650
|
-
type:
|
|
1667
|
+
var TextDecorationTokenTypedData = z78.object({
|
|
1668
|
+
type: z78.literal("TextDecoration"),
|
|
1651
1669
|
data: TextDecorationTokenData
|
|
1652
1670
|
});
|
|
1653
|
-
var BorderRadiusTokenTypedData =
|
|
1654
|
-
type:
|
|
1671
|
+
var BorderRadiusTokenTypedData = z78.object({
|
|
1672
|
+
type: z78.literal("BorderRadius"),
|
|
1655
1673
|
data: BorderRadiusTokenData
|
|
1656
1674
|
});
|
|
1657
|
-
var BorderWidthTokenTypedData =
|
|
1658
|
-
type:
|
|
1675
|
+
var BorderWidthTokenTypedData = z78.object({
|
|
1676
|
+
type: z78.literal("BorderWidth"),
|
|
1659
1677
|
data: BorderWidthTokenData
|
|
1660
1678
|
});
|
|
1661
|
-
var BorderTypedData =
|
|
1662
|
-
type:
|
|
1679
|
+
var BorderTypedData = z78.object({
|
|
1680
|
+
type: z78.literal("Border"),
|
|
1663
1681
|
data: BorderTokenData
|
|
1664
1682
|
});
|
|
1665
|
-
var ProductCopyTypedData =
|
|
1666
|
-
type:
|
|
1683
|
+
var ProductCopyTypedData = z78.object({
|
|
1684
|
+
type: z78.literal("ProductCopy"),
|
|
1667
1685
|
data: ProductCopyTokenData
|
|
1668
1686
|
});
|
|
1669
|
-
var SizeTypedData =
|
|
1670
|
-
type:
|
|
1687
|
+
var SizeTypedData = z78.object({
|
|
1688
|
+
type: z78.literal("Size"),
|
|
1671
1689
|
data: SizeTokenData
|
|
1672
1690
|
});
|
|
1673
|
-
var SpaceTypedData =
|
|
1674
|
-
type:
|
|
1691
|
+
var SpaceTypedData = z78.object({
|
|
1692
|
+
type: z78.literal("Space"),
|
|
1675
1693
|
data: SpaceTokenData
|
|
1676
1694
|
});
|
|
1677
|
-
var VisibilityTypedData =
|
|
1678
|
-
type:
|
|
1695
|
+
var VisibilityTypedData = z78.object({
|
|
1696
|
+
type: z78.literal("Visibility"),
|
|
1679
1697
|
data: VisibilityTokenData
|
|
1680
1698
|
});
|
|
1681
|
-
var ZIndexTypedData =
|
|
1682
|
-
type:
|
|
1699
|
+
var ZIndexTypedData = z78.object({
|
|
1700
|
+
type: z78.literal("ZIndex"),
|
|
1683
1701
|
data: ZIndexTokenData
|
|
1684
1702
|
});
|
|
1685
|
-
var DurationTypedData =
|
|
1686
|
-
type:
|
|
1703
|
+
var DurationTypedData = z78.object({
|
|
1704
|
+
type: z78.literal("Duration"),
|
|
1687
1705
|
data: DurationTokenData
|
|
1688
1706
|
});
|
|
1689
|
-
var FontTypedData =
|
|
1690
|
-
type:
|
|
1691
|
-
data:
|
|
1707
|
+
var FontTypedData = z78.object({
|
|
1708
|
+
type: z78.literal("Font"),
|
|
1709
|
+
data: z78.record(z78.any())
|
|
1692
1710
|
});
|
|
1693
|
-
var DesignTokenTypedData =
|
|
1711
|
+
var DesignTokenTypedData = z78.discriminatedUnion("type", [
|
|
1694
1712
|
BlurTokenTypedData,
|
|
1695
1713
|
BorderRadiusTokenTypedData,
|
|
1696
1714
|
BorderWidthTokenTypedData,
|
|
@@ -1723,34 +1741,34 @@ var CreateDesignToken = DesignTokenTypedData.and(CreateDesignTokenBase);
|
|
|
1723
1741
|
var ThemeOverrideOriginPart = DesignTokenOriginPart;
|
|
1724
1742
|
var ThemeOverrideOrigin = DesignTokenOrigin;
|
|
1725
1743
|
var ThemeOverride = DesignTokenTypedData.and(
|
|
1726
|
-
|
|
1727
|
-
tokenPersistentId:
|
|
1744
|
+
z79.object({
|
|
1745
|
+
tokenPersistentId: z79.string(),
|
|
1728
1746
|
origin: ThemeOverrideOrigin.optional().nullable().transform((v) => v ?? void 0)
|
|
1729
1747
|
})
|
|
1730
1748
|
);
|
|
1731
|
-
var ThemeElementData =
|
|
1732
|
-
value:
|
|
1733
|
-
overrides:
|
|
1749
|
+
var ThemeElementData = z79.object({
|
|
1750
|
+
value: z79.object({
|
|
1751
|
+
overrides: z79.array(ThemeOverride)
|
|
1734
1752
|
})
|
|
1735
1753
|
});
|
|
1736
|
-
var ThemeOriginPart =
|
|
1737
|
-
var ThemeOriginObject =
|
|
1738
|
-
id:
|
|
1739
|
-
name:
|
|
1754
|
+
var ThemeOriginPart = z79.object({});
|
|
1755
|
+
var ThemeOriginObject = z79.object({
|
|
1756
|
+
id: z79.string(),
|
|
1757
|
+
name: z79.string()
|
|
1740
1758
|
});
|
|
1741
|
-
var ThemeOriginSource =
|
|
1742
|
-
sourceId:
|
|
1743
|
-
sourceObjects:
|
|
1759
|
+
var ThemeOriginSource = z79.object({
|
|
1760
|
+
sourceId: z79.string(),
|
|
1761
|
+
sourceObjects: z79.array(ThemeOriginObject)
|
|
1744
1762
|
});
|
|
1745
|
-
var ThemeOrigin =
|
|
1746
|
-
sources:
|
|
1763
|
+
var ThemeOrigin = z79.object({
|
|
1764
|
+
sources: z79.array(ThemeOriginSource)
|
|
1747
1765
|
});
|
|
1748
1766
|
var Theme = DesignElementBase.extend(DesignElementBrandedPart.shape).extend({
|
|
1749
1767
|
origin: ThemeOrigin.optional(),
|
|
1750
|
-
overrides:
|
|
1751
|
-
codeName:
|
|
1768
|
+
overrides: z79.array(ThemeOverride),
|
|
1769
|
+
codeName: z79.string()
|
|
1752
1770
|
});
|
|
1753
|
-
var ImportWarningType =
|
|
1771
|
+
var ImportWarningType = z80.enum([
|
|
1754
1772
|
"NoVersionFound",
|
|
1755
1773
|
"UnsupportedFill",
|
|
1756
1774
|
"UnsupportedStroke",
|
|
@@ -1765,25 +1783,25 @@ var ImportWarningType = z79.enum([
|
|
|
1765
1783
|
"DuplicateImportedStylePath",
|
|
1766
1784
|
"NoUnpublishedStyles"
|
|
1767
1785
|
]);
|
|
1768
|
-
var ImportWarning =
|
|
1786
|
+
var ImportWarning = z80.object({
|
|
1769
1787
|
warningType: ImportWarningType,
|
|
1770
|
-
componentId:
|
|
1771
|
-
componentName:
|
|
1772
|
-
styleId:
|
|
1773
|
-
styleName:
|
|
1774
|
-
unsupportedStyleValueType:
|
|
1788
|
+
componentId: z80.string().optional(),
|
|
1789
|
+
componentName: z80.string().optional(),
|
|
1790
|
+
styleId: z80.string().optional(),
|
|
1791
|
+
styleName: z80.string().optional(),
|
|
1792
|
+
unsupportedStyleValueType: z80.string().optional()
|
|
1775
1793
|
});
|
|
1776
|
-
var FileStructureStats =
|
|
1794
|
+
var FileStructureStats = z81.object({
|
|
1777
1795
|
frames: zeroNumberByDefault(),
|
|
1778
1796
|
components: zeroNumberByDefault(),
|
|
1779
1797
|
componentSets: zeroNumberByDefault()
|
|
1780
1798
|
});
|
|
1781
1799
|
var SourceImportSummaryByTokenTypeKey = DesignTokenType.or(
|
|
1782
1800
|
// Backward compatibility
|
|
1783
|
-
|
|
1801
|
+
z81.enum(["Measure", "Radius", "GenericToken", "Font", "Text"])
|
|
1784
1802
|
);
|
|
1785
|
-
var SourceImportSummaryByTokenType =
|
|
1786
|
-
var SourceImportTokenSummary =
|
|
1803
|
+
var SourceImportSummaryByTokenType = z81.record(SourceImportSummaryByTokenTypeKey, z81.number());
|
|
1804
|
+
var SourceImportTokenSummary = z81.object({
|
|
1787
1805
|
tokensCreated: zeroNumberByDefault(),
|
|
1788
1806
|
tokensUpdated: zeroNumberByDefault(),
|
|
1789
1807
|
tokensDeleted: zeroNumberByDefault(),
|
|
@@ -1791,7 +1809,7 @@ var SourceImportTokenSummary = z80.object({
|
|
|
1791
1809
|
tokensUpdatedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {}),
|
|
1792
1810
|
tokensDeletedPerType: SourceImportSummaryByTokenType.nullish().transform((v) => v ?? {})
|
|
1793
1811
|
});
|
|
1794
|
-
var SourceImportComponentSummary =
|
|
1812
|
+
var SourceImportComponentSummary = z81.object({
|
|
1795
1813
|
componentsCreated: zeroNumberByDefault(),
|
|
1796
1814
|
componentsUpdated: zeroNumberByDefault(),
|
|
1797
1815
|
componentsDeleted: zeroNumberByDefault(),
|
|
@@ -1799,153 +1817,153 @@ var SourceImportComponentSummary = z80.object({
|
|
|
1799
1817
|
componentAssetsUpdated: zeroNumberByDefault(),
|
|
1800
1818
|
componentAssetsDeleted: zeroNumberByDefault()
|
|
1801
1819
|
});
|
|
1802
|
-
var SourceImportFrameSummary =
|
|
1820
|
+
var SourceImportFrameSummary = z81.object({
|
|
1803
1821
|
assetsInFile: nullishToOptional(FileStructureStats.optional()),
|
|
1804
|
-
invalidReferencesCount: nullishToOptional(
|
|
1805
|
-
});
|
|
1806
|
-
var SourceImportSummary =
|
|
1807
|
-
sourceId: nullishToOptional(
|
|
1808
|
-
brandId: nullishToOptional(
|
|
1809
|
-
versionId: nullishToOptional(
|
|
1810
|
-
error: nullishToOptional(
|
|
1811
|
-
isFailed:
|
|
1812
|
-
warnings:
|
|
1822
|
+
invalidReferencesCount: nullishToOptional(z81.number().optional())
|
|
1823
|
+
});
|
|
1824
|
+
var SourceImportSummary = z81.object({
|
|
1825
|
+
sourceId: nullishToOptional(z81.string()),
|
|
1826
|
+
brandId: nullishToOptional(z81.string()),
|
|
1827
|
+
versionId: nullishToOptional(z81.string()),
|
|
1828
|
+
error: nullishToOptional(z81.any()),
|
|
1829
|
+
isFailed: z81.boolean(),
|
|
1830
|
+
warnings: z81.array(ImportWarning).nullish().transform((v) => v ?? []),
|
|
1813
1831
|
...SourceImportTokenSummary.shape,
|
|
1814
1832
|
...SourceImportComponentSummary.shape,
|
|
1815
1833
|
...FileStructureStats.shape
|
|
1816
1834
|
});
|
|
1817
1835
|
function zeroNumberByDefault() {
|
|
1818
|
-
return
|
|
1836
|
+
return z81.number().nullish().transform((v) => v ?? 0);
|
|
1819
1837
|
}
|
|
1820
|
-
var DataSourceRemoteType =
|
|
1821
|
-
var DataSourceUploadRemoteSource =
|
|
1822
|
-
var DataSourceFigmaState =
|
|
1823
|
-
var DataSourceAutoImportMode =
|
|
1824
|
-
var DataSourceStats =
|
|
1838
|
+
var DataSourceRemoteType = z82.enum(["Figma", "TokenStudio", "FigmaVariablesPlugin"]);
|
|
1839
|
+
var DataSourceUploadRemoteSource = z82.enum(["TokenStudio", "FigmaVariablesPlugin", "Custom"]);
|
|
1840
|
+
var DataSourceFigmaState = z82.enum(["Active", "MissingIntegration", "MissingFileAccess", "MissingFileOwner"]);
|
|
1841
|
+
var DataSourceAutoImportMode = z82.enum(["Never", "Hourly"]);
|
|
1842
|
+
var DataSourceStats = z82.object({
|
|
1825
1843
|
tokens: zeroNumberByDefault2(),
|
|
1826
1844
|
components: zeroNumberByDefault2(),
|
|
1827
1845
|
assets: zeroNumberByDefault2(),
|
|
1828
1846
|
frames: zeroNumberByDefault2()
|
|
1829
1847
|
});
|
|
1830
|
-
var DataSourceFigmaFileData =
|
|
1831
|
-
lastUpdatedAt:
|
|
1848
|
+
var DataSourceFigmaFileData = z82.object({
|
|
1849
|
+
lastUpdatedAt: z82.coerce.date()
|
|
1832
1850
|
});
|
|
1833
|
-
var DataSourceFigmaFileVersionData =
|
|
1834
|
-
id:
|
|
1835
|
-
label:
|
|
1836
|
-
description:
|
|
1837
|
-
createdAt:
|
|
1851
|
+
var DataSourceFigmaFileVersionData = z82.object({
|
|
1852
|
+
id: z82.string(),
|
|
1853
|
+
label: z82.string().optional(),
|
|
1854
|
+
description: z82.string().optional(),
|
|
1855
|
+
createdAt: z82.coerce.date()
|
|
1838
1856
|
});
|
|
1839
|
-
var DataSourceFigmaScope =
|
|
1840
|
-
assets:
|
|
1841
|
-
components:
|
|
1842
|
-
documentationFrames:
|
|
1843
|
-
tokens:
|
|
1844
|
-
themePersistentId:
|
|
1845
|
-
isUnpublishedContentFallbackEnabled:
|
|
1857
|
+
var DataSourceFigmaScope = z82.object({
|
|
1858
|
+
assets: z82.boolean(),
|
|
1859
|
+
components: z82.boolean(),
|
|
1860
|
+
documentationFrames: z82.boolean(),
|
|
1861
|
+
tokens: z82.boolean(),
|
|
1862
|
+
themePersistentId: z82.string().optional(),
|
|
1863
|
+
isUnpublishedContentFallbackEnabled: z82.boolean()
|
|
1846
1864
|
});
|
|
1847
|
-
var DataSourceFigmaImportMetadata =
|
|
1865
|
+
var DataSourceFigmaImportMetadata = z82.object({
|
|
1848
1866
|
fileData: DataSourceFigmaFileData.optional(),
|
|
1849
1867
|
importedPublishedVersion: DataSourceFigmaFileVersionData.optional()
|
|
1850
1868
|
});
|
|
1851
|
-
var DataSourceFigmaRemote =
|
|
1852
|
-
type:
|
|
1853
|
-
fileId:
|
|
1854
|
-
preferredCredentialId:
|
|
1855
|
-
ownerId:
|
|
1869
|
+
var DataSourceFigmaRemote = z82.object({
|
|
1870
|
+
type: z82.literal(DataSourceRemoteType.Enum.Figma),
|
|
1871
|
+
fileId: z82.string(),
|
|
1872
|
+
preferredCredentialId: z82.string().optional(),
|
|
1873
|
+
ownerId: z82.string(),
|
|
1856
1874
|
// todo remove or keep to reference who created data source
|
|
1857
|
-
ownerName:
|
|
1875
|
+
ownerName: z82.string(),
|
|
1858
1876
|
// todo probably remove
|
|
1859
1877
|
scope: DataSourceFigmaScope,
|
|
1860
1878
|
state: DataSourceFigmaState,
|
|
1861
|
-
requiresSync:
|
|
1879
|
+
requiresSync: z82.boolean().optional().transform((v) => v ?? false),
|
|
1862
1880
|
lastImportMetadata: DataSourceFigmaImportMetadata.optional(),
|
|
1863
|
-
downloadChunkSize:
|
|
1864
|
-
figmaRenderChunkSize:
|
|
1865
|
-
maxFileDepth:
|
|
1881
|
+
downloadChunkSize: z82.number().optional(),
|
|
1882
|
+
figmaRenderChunkSize: z82.number().optional(),
|
|
1883
|
+
maxFileDepth: z82.number().optional()
|
|
1866
1884
|
});
|
|
1867
|
-
var DataSourceTokenStudioRemote =
|
|
1868
|
-
type:
|
|
1885
|
+
var DataSourceTokenStudioRemote = z82.object({
|
|
1886
|
+
type: z82.literal(DataSourceRemoteType.Enum.TokenStudio)
|
|
1869
1887
|
});
|
|
1870
|
-
var DataSourceUploadImportMetadata =
|
|
1871
|
-
var DataSourceUploadRemote =
|
|
1872
|
-
type:
|
|
1873
|
-
remoteId:
|
|
1888
|
+
var DataSourceUploadImportMetadata = z82.record(z82.any());
|
|
1889
|
+
var DataSourceUploadRemote = z82.object({
|
|
1890
|
+
type: z82.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
1891
|
+
remoteId: z82.string(),
|
|
1874
1892
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
1875
1893
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
1876
1894
|
});
|
|
1877
|
-
var DataSourceRemote =
|
|
1895
|
+
var DataSourceRemote = z82.discriminatedUnion("type", [
|
|
1878
1896
|
DataSourceFigmaRemote,
|
|
1879
1897
|
DataSourceUploadRemote,
|
|
1880
1898
|
DataSourceTokenStudioRemote
|
|
1881
1899
|
]);
|
|
1882
|
-
var DataSource =
|
|
1883
|
-
id:
|
|
1884
|
-
name:
|
|
1885
|
-
thumbnailUrl:
|
|
1886
|
-
createdAt:
|
|
1887
|
-
lastImportedAt:
|
|
1900
|
+
var DataSource = z82.object({
|
|
1901
|
+
id: z82.string(),
|
|
1902
|
+
name: z82.string(),
|
|
1903
|
+
thumbnailUrl: z82.string().optional(),
|
|
1904
|
+
createdAt: z82.coerce.date().optional(),
|
|
1905
|
+
lastImportedAt: z82.coerce.date().optional(),
|
|
1888
1906
|
lastImportSummary: SourceImportSummary.optional(),
|
|
1889
|
-
designSystemId:
|
|
1890
|
-
brandPersistentId:
|
|
1907
|
+
designSystemId: z82.string(),
|
|
1908
|
+
brandPersistentId: z82.string(),
|
|
1891
1909
|
autoImportMode: DataSourceAutoImportMode,
|
|
1892
1910
|
stats: DataSourceStats,
|
|
1893
1911
|
remote: DataSourceRemote,
|
|
1894
|
-
sortOrder:
|
|
1912
|
+
sortOrder: z82.number()
|
|
1895
1913
|
});
|
|
1896
|
-
var DataSourceVersion =
|
|
1897
|
-
id:
|
|
1898
|
-
createdAt:
|
|
1899
|
-
label:
|
|
1900
|
-
description:
|
|
1914
|
+
var DataSourceVersion = z82.object({
|
|
1915
|
+
id: z82.string(),
|
|
1916
|
+
createdAt: z82.coerce.date(),
|
|
1917
|
+
label: z82.string().nullish(),
|
|
1918
|
+
description: z82.string().nullish()
|
|
1901
1919
|
});
|
|
1902
1920
|
function zeroNumberByDefault2() {
|
|
1903
|
-
return
|
|
1921
|
+
return z82.number().nullish().transform((v) => v ?? 0);
|
|
1904
1922
|
}
|
|
1905
|
-
var ImportJobState =
|
|
1906
|
-
var ImportJobOperation =
|
|
1923
|
+
var ImportJobState = z83.enum(["PendingInput", "Queued", "InProgress", "Failed", "Success"]);
|
|
1924
|
+
var ImportJobOperation = z83.enum(["Check", "Import"]);
|
|
1907
1925
|
var ImportJob = Entity.extend({
|
|
1908
|
-
designSystemId:
|
|
1909
|
-
designSystemVersionId:
|
|
1910
|
-
sourceIds:
|
|
1926
|
+
designSystemId: z83.string(),
|
|
1927
|
+
designSystemVersionId: z83.string(),
|
|
1928
|
+
sourceIds: z83.array(z83.string()),
|
|
1911
1929
|
state: ImportJobState,
|
|
1912
|
-
createdByUserId:
|
|
1913
|
-
importContextId:
|
|
1914
|
-
error:
|
|
1930
|
+
createdByUserId: z83.string().optional(),
|
|
1931
|
+
importContextId: z83.string(),
|
|
1932
|
+
error: z83.string().optional(),
|
|
1915
1933
|
sourceType: DataSourceRemoteType,
|
|
1916
|
-
importContextCleanedUp:
|
|
1917
|
-
});
|
|
1918
|
-
var PageBlockDefinitionAppearance =
|
|
1919
|
-
isBordered:
|
|
1920
|
-
hasBackground:
|
|
1921
|
-
isEditorPresentationDifferent:
|
|
1922
|
-
showBlockHeaderInEditor:
|
|
1923
|
-
});
|
|
1924
|
-
var PageBlockDefinitionLayoutType =
|
|
1925
|
-
var PageBlockDefinitionLayoutGap =
|
|
1926
|
-
var PageBlockDefinitionLayoutAlign =
|
|
1927
|
-
var PageBlockDefinitionLayoutResizing =
|
|
1928
|
-
var PageBlockDefinitionLayoutBase =
|
|
1934
|
+
importContextCleanedUp: z83.boolean()
|
|
1935
|
+
});
|
|
1936
|
+
var PageBlockDefinitionAppearance = z84.object({
|
|
1937
|
+
isBordered: z84.boolean().optional(),
|
|
1938
|
+
hasBackground: z84.boolean().optional(),
|
|
1939
|
+
isEditorPresentationDifferent: z84.boolean().optional(),
|
|
1940
|
+
showBlockHeaderInEditor: z84.boolean().optional()
|
|
1941
|
+
});
|
|
1942
|
+
var PageBlockDefinitionLayoutType = z85.enum(["Column", "Row"]);
|
|
1943
|
+
var PageBlockDefinitionLayoutGap = z85.enum(["Small", "Medium", "Large", "None"]);
|
|
1944
|
+
var PageBlockDefinitionLayoutAlign = z85.enum(["Start", "Center", "End"]);
|
|
1945
|
+
var PageBlockDefinitionLayoutResizing = z85.enum(["Fill", "Hug"]);
|
|
1946
|
+
var PageBlockDefinitionLayoutBase = z85.object({
|
|
1929
1947
|
type: PageBlockDefinitionLayoutType,
|
|
1930
1948
|
gap: PageBlockDefinitionLayoutGap.optional(),
|
|
1931
1949
|
columnAlign: PageBlockDefinitionLayoutAlign.optional(),
|
|
1932
1950
|
columnResizing: PageBlockDefinitionLayoutResizing.optional()
|
|
1933
1951
|
});
|
|
1934
1952
|
var PageBlockDefinitionLayout = PageBlockDefinitionLayoutBase.extend({
|
|
1935
|
-
children:
|
|
1936
|
-
});
|
|
1937
|
-
var PageBlockDefinitionVariant =
|
|
1938
|
-
id:
|
|
1939
|
-
name:
|
|
1940
|
-
image:
|
|
1941
|
-
description:
|
|
1942
|
-
documentationLink:
|
|
1953
|
+
children: z85.lazy(() => z85.array(PageBlockDefinitionLayout.or(z85.string())))
|
|
1954
|
+
});
|
|
1955
|
+
var PageBlockDefinitionVariant = z85.object({
|
|
1956
|
+
id: z85.string(),
|
|
1957
|
+
name: z85.string(),
|
|
1958
|
+
image: z85.string().optional(),
|
|
1959
|
+
description: z85.string().optional(),
|
|
1960
|
+
documentationLink: z85.string().optional(),
|
|
1943
1961
|
layout: PageBlockDefinitionLayout,
|
|
1944
|
-
maxColumns:
|
|
1945
|
-
defaultColumns:
|
|
1962
|
+
maxColumns: z85.number().optional(),
|
|
1963
|
+
defaultColumns: z85.number().optional(),
|
|
1946
1964
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
1947
1965
|
});
|
|
1948
|
-
var PageBlockDefinitionPropertyType =
|
|
1966
|
+
var PageBlockDefinitionPropertyType = z86.enum([
|
|
1949
1967
|
"RichText",
|
|
1950
1968
|
"MultiRichText",
|
|
1951
1969
|
"Text",
|
|
@@ -1973,7 +1991,7 @@ var PageBlockDefinitionPropertyType = z85.enum([
|
|
|
1973
1991
|
"Color",
|
|
1974
1992
|
"FigmaComponent"
|
|
1975
1993
|
]);
|
|
1976
|
-
var PageBlockDefinitionRichTextPropertyStyle =
|
|
1994
|
+
var PageBlockDefinitionRichTextPropertyStyle = z86.enum([
|
|
1977
1995
|
"Title1",
|
|
1978
1996
|
"Title2",
|
|
1979
1997
|
"Title3",
|
|
@@ -1983,8 +2001,8 @@ var PageBlockDefinitionRichTextPropertyStyle = z85.enum([
|
|
|
1983
2001
|
"Callout",
|
|
1984
2002
|
"Default"
|
|
1985
2003
|
]);
|
|
1986
|
-
var PageBlockDefinitionMultiRichTextPropertyStyle =
|
|
1987
|
-
var PageBlockDefinitionTextPropertyStyle =
|
|
2004
|
+
var PageBlockDefinitionMultiRichTextPropertyStyle = z86.enum(["OL", "UL", "Default"]);
|
|
2005
|
+
var PageBlockDefinitionTextPropertyStyle = z86.enum([
|
|
1988
2006
|
"Title1",
|
|
1989
2007
|
"Title2",
|
|
1990
2008
|
"Title3",
|
|
@@ -1998,15 +2016,15 @@ var PageBlockDefinitionTextPropertyStyle = z85.enum([
|
|
|
1998
2016
|
"SmallSemibold",
|
|
1999
2017
|
"Custom"
|
|
2000
2018
|
]);
|
|
2001
|
-
var PageBlockDefinitionTextPropertyColor =
|
|
2002
|
-
var PageBlockDefinitionBooleanPropertyStyle =
|
|
2003
|
-
var PageBlockDefinitionSingleSelectPropertyStyle =
|
|
2019
|
+
var PageBlockDefinitionTextPropertyColor = z86.enum(["Neutral", "NeutralFaded"]);
|
|
2020
|
+
var PageBlockDefinitionBooleanPropertyStyle = z86.enum(["SegmentedControl", "ToggleButton", "Checkbox"]);
|
|
2021
|
+
var PageBlockDefinitionSingleSelectPropertyStyle = z86.enum([
|
|
2004
2022
|
"SegmentedControl",
|
|
2005
2023
|
"ToggleButton",
|
|
2006
2024
|
"Select",
|
|
2007
2025
|
"Checkbox"
|
|
2008
2026
|
]);
|
|
2009
|
-
var PageBlockDefinitionSingleSelectPropertyColor =
|
|
2027
|
+
var PageBlockDefinitionSingleSelectPropertyColor = z86.enum([
|
|
2010
2028
|
"Green",
|
|
2011
2029
|
"Red",
|
|
2012
2030
|
"Yellow",
|
|
@@ -2021,76 +2039,76 @@ var PageBlockDefinitionSingleSelectPropertyColor = z85.enum([
|
|
|
2021
2039
|
"Cyan",
|
|
2022
2040
|
"Fuchsia"
|
|
2023
2041
|
]);
|
|
2024
|
-
var IconSet =
|
|
2042
|
+
var IconSet = z86.enum([
|
|
2025
2043
|
"CheckCircle",
|
|
2026
2044
|
"CrossCircle",
|
|
2027
2045
|
"Alert"
|
|
2028
2046
|
]);
|
|
2029
|
-
var PageBlockDefinitionMultiSelectPropertyStyle =
|
|
2030
|
-
var PageBlockDefinitionImageAspectRatio =
|
|
2031
|
-
var PageBlockDefinitionImageWidth =
|
|
2032
|
-
var PageBlockDefinitionSelectChoice =
|
|
2033
|
-
value:
|
|
2034
|
-
name:
|
|
2047
|
+
var PageBlockDefinitionMultiSelectPropertyStyle = z86.enum(["SegmentedControl", "Select", "Checkbox"]);
|
|
2048
|
+
var PageBlockDefinitionImageAspectRatio = z86.enum(["Auto", "Square", "Landscape", "Portrait", "Wide"]);
|
|
2049
|
+
var PageBlockDefinitionImageWidth = z86.enum(["Full", "Icon", "Small", "Medium", "Large", "Poster"]);
|
|
2050
|
+
var PageBlockDefinitionSelectChoice = z86.object({
|
|
2051
|
+
value: z86.string(),
|
|
2052
|
+
name: z86.string(),
|
|
2035
2053
|
icon: IconSet.optional(),
|
|
2036
|
-
customIconUrl:
|
|
2054
|
+
customIconUrl: z86.string().optional(),
|
|
2037
2055
|
color: PageBlockDefinitionSingleSelectPropertyColor.optional()
|
|
2038
2056
|
});
|
|
2039
|
-
var PageBlockDefinitionUntypedPropertyOptions =
|
|
2040
|
-
var PageBlockDefinitionRichTextOptions =
|
|
2057
|
+
var PageBlockDefinitionUntypedPropertyOptions = z86.record(z86.any());
|
|
2058
|
+
var PageBlockDefinitionRichTextOptions = z86.object({
|
|
2041
2059
|
richTextStyle: PageBlockDefinitionRichTextPropertyStyle.optional()
|
|
2042
2060
|
});
|
|
2043
|
-
var PageBlockDefinitionMutiRichTextOptions =
|
|
2061
|
+
var PageBlockDefinitionMutiRichTextOptions = z86.object({
|
|
2044
2062
|
multiRichTextStyle: PageBlockDefinitionMultiRichTextPropertyStyle.optional()
|
|
2045
2063
|
});
|
|
2046
|
-
var PageBlockDefinitionTextOptions =
|
|
2047
|
-
placeholder:
|
|
2048
|
-
defaultValue:
|
|
2064
|
+
var PageBlockDefinitionTextOptions = z86.object({
|
|
2065
|
+
placeholder: z86.string().optional(),
|
|
2066
|
+
defaultValue: z86.string().optional(),
|
|
2049
2067
|
textStyle: PageBlockDefinitionTextPropertyStyle.optional(),
|
|
2050
2068
|
color: PageBlockDefinitionTextPropertyColor.optional(),
|
|
2051
|
-
allowLineBreaks:
|
|
2069
|
+
allowLineBreaks: z86.boolean().optional()
|
|
2052
2070
|
});
|
|
2053
|
-
var PageBlockDefinitionSelectOptions =
|
|
2071
|
+
var PageBlockDefinitionSelectOptions = z86.object({
|
|
2054
2072
|
singleSelectStyle: PageBlockDefinitionSingleSelectPropertyStyle.optional(),
|
|
2055
|
-
defaultChoice:
|
|
2056
|
-
choices:
|
|
2073
|
+
defaultChoice: z86.string(),
|
|
2074
|
+
choices: z86.array(PageBlockDefinitionSelectChoice)
|
|
2057
2075
|
});
|
|
2058
|
-
var PageBlockDefinitionImageOptions =
|
|
2076
|
+
var PageBlockDefinitionImageOptions = z86.object({
|
|
2059
2077
|
width: PageBlockDefinitionImageWidth.optional(),
|
|
2060
2078
|
aspectRatio: PageBlockDefinitionImageAspectRatio.optional(),
|
|
2061
|
-
allowCaption:
|
|
2062
|
-
recommendation:
|
|
2079
|
+
allowCaption: z86.boolean().optional(),
|
|
2080
|
+
recommendation: z86.string().optional()
|
|
2063
2081
|
});
|
|
2064
|
-
var PageBlockDefinitionBooleanOptions =
|
|
2065
|
-
defaultvalue:
|
|
2082
|
+
var PageBlockDefinitionBooleanOptions = z86.object({
|
|
2083
|
+
defaultvalue: z86.boolean().optional(),
|
|
2066
2084
|
booleanStyle: PageBlockDefinitionBooleanPropertyStyle.optional()
|
|
2067
2085
|
});
|
|
2068
|
-
var PageBlockDefinitionNumberOptions =
|
|
2069
|
-
defaultValue:
|
|
2070
|
-
min:
|
|
2071
|
-
max:
|
|
2072
|
-
step:
|
|
2073
|
-
placeholder:
|
|
2086
|
+
var PageBlockDefinitionNumberOptions = z86.object({
|
|
2087
|
+
defaultValue: z86.number(),
|
|
2088
|
+
min: z86.number().optional(),
|
|
2089
|
+
max: z86.number().optional(),
|
|
2090
|
+
step: z86.number().optional(),
|
|
2091
|
+
placeholder: z86.string().optional()
|
|
2074
2092
|
});
|
|
2075
|
-
var PageBlockDefinitionComponentOptions =
|
|
2076
|
-
renderLayoutAs:
|
|
2077
|
-
allowPropertySelection:
|
|
2093
|
+
var PageBlockDefinitionComponentOptions = z86.object({
|
|
2094
|
+
renderLayoutAs: z86.enum(["List", "Table"]).optional(),
|
|
2095
|
+
allowPropertySelection: z86.boolean().optional()
|
|
2078
2096
|
});
|
|
2079
|
-
var PageBlockDefinitionProperty =
|
|
2080
|
-
id:
|
|
2081
|
-
name:
|
|
2097
|
+
var PageBlockDefinitionProperty = z86.object({
|
|
2098
|
+
id: z86.string(),
|
|
2099
|
+
name: z86.string(),
|
|
2082
2100
|
type: PageBlockDefinitionPropertyType,
|
|
2083
|
-
description:
|
|
2101
|
+
description: z86.string().optional(),
|
|
2084
2102
|
options: PageBlockDefinitionUntypedPropertyOptions.optional(),
|
|
2085
|
-
variantOptions:
|
|
2103
|
+
variantOptions: z86.record(PageBlockDefinitionUntypedPropertyOptions).optional()
|
|
2086
2104
|
});
|
|
2087
|
-
var PageBlockDefinitionItem =
|
|
2088
|
-
properties:
|
|
2105
|
+
var PageBlockDefinitionItem = z86.object({
|
|
2106
|
+
properties: z86.array(PageBlockDefinitionProperty),
|
|
2089
2107
|
appearance: PageBlockDefinitionAppearance.optional(),
|
|
2090
|
-
variants:
|
|
2091
|
-
defaultVariantKey:
|
|
2108
|
+
variants: z86.array(PageBlockDefinitionVariant),
|
|
2109
|
+
defaultVariantKey: z86.string()
|
|
2092
2110
|
});
|
|
2093
|
-
var PageBlockCategory =
|
|
2111
|
+
var PageBlockCategory = z87.enum([
|
|
2094
2112
|
"Text",
|
|
2095
2113
|
"Layout",
|
|
2096
2114
|
"Media",
|
|
@@ -2104,168 +2122,168 @@ var PageBlockCategory = z86.enum([
|
|
|
2104
2122
|
"Data",
|
|
2105
2123
|
"Other"
|
|
2106
2124
|
]);
|
|
2107
|
-
var PageBlockBehaviorDataType =
|
|
2108
|
-
var PageBlockBehaviorSelectionType =
|
|
2109
|
-
var PageBlockDefinitionBehavior =
|
|
2125
|
+
var PageBlockBehaviorDataType = z87.enum(["Item", "Token", "Asset", "Component", "FigmaNode", "FigmaComponent"]);
|
|
2126
|
+
var PageBlockBehaviorSelectionType = z87.enum(["Entity", "Group", "EntityAndGroup"]);
|
|
2127
|
+
var PageBlockDefinitionBehavior = z87.object({
|
|
2110
2128
|
dataType: PageBlockBehaviorDataType,
|
|
2111
|
-
items:
|
|
2112
|
-
numberOfItems:
|
|
2113
|
-
allowLinks:
|
|
2114
|
-
newItemLabel:
|
|
2129
|
+
items: z87.object({
|
|
2130
|
+
numberOfItems: z87.number(),
|
|
2131
|
+
allowLinks: z87.boolean(),
|
|
2132
|
+
newItemLabel: z87.string().optional()
|
|
2115
2133
|
}).optional(),
|
|
2116
|
-
entities:
|
|
2134
|
+
entities: z87.object({
|
|
2117
2135
|
selectionType: PageBlockBehaviorSelectionType,
|
|
2118
|
-
maxSelected:
|
|
2136
|
+
maxSelected: z87.number()
|
|
2119
2137
|
}).optional()
|
|
2120
2138
|
});
|
|
2121
|
-
var PageBlockDefinitionOnboarding =
|
|
2122
|
-
helpText:
|
|
2123
|
-
documentationLink:
|
|
2139
|
+
var PageBlockDefinitionOnboarding = z87.object({
|
|
2140
|
+
helpText: z87.string(),
|
|
2141
|
+
documentationLink: z87.string().optional()
|
|
2124
2142
|
});
|
|
2125
|
-
var PageBlockDefinition =
|
|
2126
|
-
id:
|
|
2127
|
-
name:
|
|
2128
|
-
description:
|
|
2143
|
+
var PageBlockDefinition = z87.object({
|
|
2144
|
+
id: z87.string(),
|
|
2145
|
+
name: z87.string(),
|
|
2146
|
+
description: z87.string(),
|
|
2129
2147
|
category: PageBlockCategory,
|
|
2130
|
-
icon:
|
|
2131
|
-
documentationLink:
|
|
2132
|
-
searchKeywords:
|
|
2148
|
+
icon: z87.string().optional(),
|
|
2149
|
+
documentationLink: z87.string().optional(),
|
|
2150
|
+
searchKeywords: z87.array(z87.string()).optional(),
|
|
2133
2151
|
item: PageBlockDefinitionItem,
|
|
2134
2152
|
behavior: PageBlockDefinitionBehavior,
|
|
2135
|
-
editorOptions:
|
|
2153
|
+
editorOptions: z87.object({
|
|
2136
2154
|
onboarding: PageBlockDefinitionOnboarding.optional()
|
|
2137
2155
|
}),
|
|
2138
2156
|
appearance: PageBlockDefinitionAppearance.optional()
|
|
2139
2157
|
});
|
|
2140
|
-
var DocumentationPageGroup =
|
|
2141
|
-
type:
|
|
2142
|
-
childType:
|
|
2143
|
-
id:
|
|
2144
|
-
persistentId:
|
|
2145
|
-
shortPersistentId:
|
|
2146
|
-
designSystemVersionId:
|
|
2147
|
-
parentPersistentId:
|
|
2148
|
-
sortOrder:
|
|
2149
|
-
title:
|
|
2150
|
-
slug:
|
|
2151
|
-
userSlug:
|
|
2152
|
-
createdAt:
|
|
2153
|
-
updatedAt:
|
|
2154
|
-
});
|
|
2155
|
-
var DocumentationLinkPreview =
|
|
2156
|
-
title:
|
|
2157
|
-
description:
|
|
2158
|
+
var DocumentationPageGroup = z88.object({
|
|
2159
|
+
type: z88.literal("ElementGroup"),
|
|
2160
|
+
childType: z88.literal("DocumentationPage"),
|
|
2161
|
+
id: z88.string(),
|
|
2162
|
+
persistentId: z88.string(),
|
|
2163
|
+
shortPersistentId: z88.string(),
|
|
2164
|
+
designSystemVersionId: z88.string(),
|
|
2165
|
+
parentPersistentId: z88.string().nullish(),
|
|
2166
|
+
sortOrder: z88.number(),
|
|
2167
|
+
title: z88.string(),
|
|
2168
|
+
slug: z88.string(),
|
|
2169
|
+
userSlug: z88.string().nullish(),
|
|
2170
|
+
createdAt: z88.coerce.date(),
|
|
2171
|
+
updatedAt: z88.coerce.date()
|
|
2172
|
+
});
|
|
2173
|
+
var DocumentationLinkPreview = z89.object({
|
|
2174
|
+
title: z89.string().optional(),
|
|
2175
|
+
description: z89.string().optional(),
|
|
2158
2176
|
thumbnail: PageBlockImageReference.optional()
|
|
2159
2177
|
});
|
|
2160
|
-
var DocumentationPageAnchor =
|
|
2161
|
-
blockId:
|
|
2162
|
-
level:
|
|
2163
|
-
text:
|
|
2164
|
-
});
|
|
2165
|
-
var DocumentationPageContentBackup = z90.object({
|
|
2166
|
-
id: z90.string(),
|
|
2167
|
-
designSystemVersionId: z90.string(),
|
|
2168
|
-
createdAt: z90.coerce.date(),
|
|
2169
|
-
updatedAt: z90.coerce.date(),
|
|
2170
|
-
documentationPageId: z90.string(),
|
|
2171
|
-
documentationPageName: z90.string(),
|
|
2172
|
-
storagePath: z90.string()
|
|
2173
|
-
});
|
|
2174
|
-
var DocumentationPageContentItem = z91.discriminatedUnion("type", [
|
|
2175
|
-
PageBlockEditorModelV2,
|
|
2176
|
-
PageSectionEditorModelV2
|
|
2177
|
-
]);
|
|
2178
|
-
var DocumentationPageContentData = z91.object({
|
|
2179
|
-
items: z91.array(DocumentationPageContentItem)
|
|
2178
|
+
var DocumentationPageAnchor = z90.object({
|
|
2179
|
+
blockId: z90.string(),
|
|
2180
|
+
level: z90.number(),
|
|
2181
|
+
text: z90.string()
|
|
2180
2182
|
});
|
|
2181
|
-
var
|
|
2183
|
+
var DocumentationPageContentBackup = z91.object({
|
|
2182
2184
|
id: z91.string(),
|
|
2183
2185
|
designSystemVersionId: z91.string(),
|
|
2184
2186
|
createdAt: z91.coerce.date(),
|
|
2185
2187
|
updatedAt: z91.coerce.date(),
|
|
2186
2188
|
documentationPageId: z91.string(),
|
|
2187
|
-
|
|
2189
|
+
documentationPageName: z91.string(),
|
|
2190
|
+
storagePath: z91.string()
|
|
2188
2191
|
});
|
|
2189
|
-
var
|
|
2190
|
-
|
|
2192
|
+
var DocumentationPageContentItem = z92.discriminatedUnion("type", [
|
|
2193
|
+
PageBlockEditorModelV2,
|
|
2194
|
+
PageSectionEditorModelV2
|
|
2195
|
+
]);
|
|
2196
|
+
var DocumentationPageContentData = z92.object({
|
|
2197
|
+
items: z92.array(DocumentationPageContentItem)
|
|
2198
|
+
});
|
|
2199
|
+
var DocumentationPageContent = z92.object({
|
|
2191
2200
|
id: z92.string(),
|
|
2192
|
-
persistentId: z92.string(),
|
|
2193
|
-
shortPersistentId: z92.string(),
|
|
2194
2201
|
designSystemVersionId: z92.string(),
|
|
2195
|
-
parentPersistentId: z92.string().nullish(),
|
|
2196
|
-
sortOrder: z92.number(),
|
|
2197
|
-
title: z92.string(),
|
|
2198
|
-
slug: z92.string(),
|
|
2199
|
-
userSlug: z92.string().nullish(),
|
|
2200
2202
|
createdAt: z92.coerce.date(),
|
|
2201
|
-
updatedAt: z92.coerce.date()
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
id: z93.string(),
|
|
2205
|
-
authorId: z93.string(),
|
|
2206
|
-
threadId: z93.string(),
|
|
2207
|
-
roomId: z93.string(),
|
|
2208
|
-
createdAt: z93.coerce.date(),
|
|
2209
|
-
editedAt: z93.coerce.date().optional(),
|
|
2210
|
-
deletedAt: z93.coerce.date().optional(),
|
|
2211
|
-
body: z93.string()
|
|
2203
|
+
updatedAt: z92.coerce.date(),
|
|
2204
|
+
documentationPageId: z92.string(),
|
|
2205
|
+
data: DocumentationPageContentData
|
|
2212
2206
|
});
|
|
2213
|
-
var
|
|
2207
|
+
var DocumentationPage = z93.object({
|
|
2208
|
+
type: z93.literal("DocumentationPage"),
|
|
2214
2209
|
id: z93.string(),
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
brandId: z93.string(),
|
|
2210
|
+
persistentId: z93.string(),
|
|
2211
|
+
shortPersistentId: z93.string(),
|
|
2218
2212
|
designSystemVersionId: z93.string(),
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2213
|
+
parentPersistentId: z93.string().nullish(),
|
|
2214
|
+
sortOrder: z93.number(),
|
|
2215
|
+
title: z93.string(),
|
|
2216
|
+
slug: z93.string(),
|
|
2217
|
+
userSlug: z93.string().nullish(),
|
|
2222
2218
|
createdAt: z93.coerce.date(),
|
|
2223
2219
|
updatedAt: z93.coerce.date()
|
|
2224
2220
|
});
|
|
2225
|
-
var
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2221
|
+
var DocumentationComment = z94.object({
|
|
2222
|
+
id: z94.string(),
|
|
2223
|
+
authorId: z94.string(),
|
|
2224
|
+
threadId: z94.string(),
|
|
2225
|
+
roomId: z94.string(),
|
|
2226
|
+
createdAt: z94.coerce.date(),
|
|
2227
|
+
editedAt: z94.coerce.date().optional(),
|
|
2228
|
+
deletedAt: z94.coerce.date().optional(),
|
|
2229
|
+
body: z94.string()
|
|
2230
|
+
});
|
|
2231
|
+
var DocumentationCommentThread = z94.object({
|
|
2232
|
+
id: z94.string(),
|
|
2233
|
+
roomId: z94.string(),
|
|
2234
|
+
pagePersistentId: z94.string(),
|
|
2235
|
+
brandId: z94.string(),
|
|
2236
|
+
designSystemVersionId: z94.string(),
|
|
2237
|
+
designSystemId: z94.string(),
|
|
2238
|
+
blockId: z94.string().optional(),
|
|
2239
|
+
resolved: z94.boolean(),
|
|
2240
|
+
createdAt: z94.coerce.date(),
|
|
2241
|
+
updatedAt: z94.coerce.date()
|
|
2242
|
+
});
|
|
2243
|
+
var FigmaFileDownloadScope = z95.object({
|
|
2244
|
+
styles: z95.boolean(),
|
|
2245
|
+
components: z95.boolean(),
|
|
2246
|
+
currentVersion: z95.literal("__latest__").nullable(),
|
|
2247
|
+
publishedVersion: z95.string().nullable(),
|
|
2248
|
+
downloadChunkSize: z95.number().optional(),
|
|
2249
|
+
maxFileDepth: z95.number().optional()
|
|
2250
|
+
});
|
|
2251
|
+
var FigmaFileAccessData = z95.object({
|
|
2252
|
+
accessToken: z95.string()
|
|
2253
|
+
});
|
|
2254
|
+
var ImportFunctionInput = z96.object({
|
|
2255
|
+
importJobId: z96.string(),
|
|
2256
|
+
importContextId: z96.string(),
|
|
2257
|
+
designSystemId: z96.string().optional()
|
|
2258
|
+
});
|
|
2259
|
+
var ImportedFigmaSourceData = z96.object({
|
|
2260
|
+
sourceId: z96.string(),
|
|
2243
2261
|
figmaRemote: DataSourceFigmaRemote
|
|
2244
2262
|
});
|
|
2245
|
-
var FigmaImportBaseContext =
|
|
2246
|
-
designSystemId:
|
|
2263
|
+
var FigmaImportBaseContext = z96.object({
|
|
2264
|
+
designSystemId: z96.string(),
|
|
2247
2265
|
/**
|
|
2248
2266
|
* Data required for accessing Figma files. This should contain access data for all file ids
|
|
2249
2267
|
* mentioned in the `importedSourceDataBySourceId`
|
|
2250
2268
|
*
|
|
2251
2269
|
* fileId: file data
|
|
2252
2270
|
*/
|
|
2253
|
-
fileAccessByFileId:
|
|
2271
|
+
fileAccessByFileId: z96.record(FigmaFileAccessData),
|
|
2254
2272
|
/**
|
|
2255
2273
|
* Figma source data for which import was requested
|
|
2256
2274
|
*
|
|
2257
2275
|
* sourceId: source data
|
|
2258
2276
|
*/
|
|
2259
|
-
importedSourceDataBySourceId:
|
|
2277
|
+
importedSourceDataBySourceId: z96.record(ImportedFigmaSourceData),
|
|
2260
2278
|
/**
|
|
2261
2279
|
* Array of warnings that will be written into the import result summary at the end
|
|
2262
2280
|
* of import job execution and displayed by the client.
|
|
2263
2281
|
*/
|
|
2264
|
-
importWarnings:
|
|
2282
|
+
importWarnings: z96.record(ImportWarning.array()).default({})
|
|
2265
2283
|
});
|
|
2266
2284
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
2267
|
-
sourcesWithMissingAccess:
|
|
2268
|
-
shadowOpacityOptional:
|
|
2285
|
+
sourcesWithMissingAccess: z96.array(z96.string()).default([]),
|
|
2286
|
+
shadowOpacityOptional: z96.boolean().default(false)
|
|
2269
2287
|
});
|
|
2270
2288
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
2271
2289
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -2277,65 +2295,65 @@ var FigmaImportContextWithDownloadScopes = FigmaImportContextWithSourcesState.ex
|
|
|
2277
2295
|
*
|
|
2278
2296
|
* File id -> file download scope
|
|
2279
2297
|
*/
|
|
2280
|
-
fileDownloadScopesByFileId:
|
|
2298
|
+
fileDownloadScopesByFileId: z96.record(FigmaFileDownloadScope),
|
|
2281
2299
|
/**
|
|
2282
2300
|
* Sources filtered down to the ones that have changed since last import and therefore need to be
|
|
2283
2301
|
* imported again.
|
|
2284
2302
|
*
|
|
2285
2303
|
* Source id -> import metadata
|
|
2286
2304
|
*/
|
|
2287
|
-
changedImportedSourceDataBySourceId:
|
|
2305
|
+
changedImportedSourceDataBySourceId: z96.record(ChangedImportedFigmaSourceData)
|
|
2288
2306
|
});
|
|
2289
|
-
var ImageImportModelType =
|
|
2290
|
-
var ImageImportModelBase =
|
|
2307
|
+
var ImageImportModelType = z97.enum(["Url", "FigmaRender"]);
|
|
2308
|
+
var ImageImportModelBase = z97.object({
|
|
2291
2309
|
scope: AssetScope
|
|
2292
2310
|
});
|
|
2293
2311
|
var UrlImageImportModel = ImageImportModelBase.extend({
|
|
2294
|
-
type:
|
|
2295
|
-
url:
|
|
2296
|
-
originKey:
|
|
2297
|
-
extension:
|
|
2312
|
+
type: z97.literal(ImageImportModelType.enum.Url),
|
|
2313
|
+
url: z97.string(),
|
|
2314
|
+
originKey: z97.string(),
|
|
2315
|
+
extension: z97.string()
|
|
2298
2316
|
});
|
|
2299
|
-
var FigmaRenderFormat =
|
|
2317
|
+
var FigmaRenderFormat = z97.enum(["Svg", "Png"]);
|
|
2300
2318
|
var FigmaRenderBase = ImageImportModelBase.extend({
|
|
2301
|
-
type:
|
|
2302
|
-
fileId:
|
|
2303
|
-
fileVersionId:
|
|
2304
|
-
nodeId:
|
|
2305
|
-
originKey:
|
|
2319
|
+
type: z97.literal(ImageImportModelType.enum.FigmaRender),
|
|
2320
|
+
fileId: z97.string(),
|
|
2321
|
+
fileVersionId: z97.string().optional(),
|
|
2322
|
+
nodeId: z97.string(),
|
|
2323
|
+
originKey: z97.string()
|
|
2306
2324
|
});
|
|
2307
2325
|
var FigmaPngRenderImportModel = FigmaRenderBase.extend({
|
|
2308
|
-
format:
|
|
2309
|
-
scale:
|
|
2326
|
+
format: z97.literal(FigmaRenderFormat.enum.Png),
|
|
2327
|
+
scale: z97.number()
|
|
2310
2328
|
});
|
|
2311
2329
|
var FigmaSvgRenderImportModel = FigmaRenderBase.extend({
|
|
2312
|
-
format:
|
|
2330
|
+
format: z97.literal(FigmaRenderFormat.enum.Svg)
|
|
2313
2331
|
});
|
|
2314
|
-
var FigmaRenderImportModel =
|
|
2332
|
+
var FigmaRenderImportModel = z97.discriminatedUnion("format", [
|
|
2315
2333
|
FigmaPngRenderImportModel,
|
|
2316
2334
|
FigmaSvgRenderImportModel
|
|
2317
2335
|
]);
|
|
2318
|
-
var ImageImportModel =
|
|
2319
|
-
var ImportModelBase =
|
|
2320
|
-
id:
|
|
2336
|
+
var ImageImportModel = z97.union([UrlImageImportModel, FigmaRenderImportModel]);
|
|
2337
|
+
var ImportModelBase = z98.object({
|
|
2338
|
+
id: z98.string(),
|
|
2321
2339
|
meta: ObjectMeta,
|
|
2322
2340
|
origin: DesignElementOrigin,
|
|
2323
|
-
brandPersistentId:
|
|
2324
|
-
sortOrder:
|
|
2341
|
+
brandPersistentId: z98.string(),
|
|
2342
|
+
sortOrder: z98.number()
|
|
2325
2343
|
});
|
|
2326
2344
|
var ImportModelInputBase = ImportModelBase.omit({
|
|
2327
2345
|
brandPersistentId: true,
|
|
2328
2346
|
origin: true,
|
|
2329
2347
|
sortOrder: true
|
|
2330
2348
|
}).extend({
|
|
2331
|
-
originId:
|
|
2332
|
-
originMetadata:
|
|
2349
|
+
originId: z98.string(),
|
|
2350
|
+
originMetadata: z98.record(z98.any())
|
|
2333
2351
|
});
|
|
2334
|
-
var ComponentImportModelPart =
|
|
2352
|
+
var ComponentImportModelPart = z99.object({
|
|
2335
2353
|
thumbnail: ImageImportModel
|
|
2336
2354
|
});
|
|
2337
2355
|
var ComponentImportModel = ImportModelBase.extend(ComponentImportModelPart.shape).extend({
|
|
2338
|
-
isAsset:
|
|
2356
|
+
isAsset: z99.boolean(),
|
|
2339
2357
|
svg: FigmaSvgRenderImportModel.optional(),
|
|
2340
2358
|
origin: ComponentOrigin
|
|
2341
2359
|
});
|
|
@@ -2347,44 +2365,44 @@ var AssetImportModelInput = ImportModelInputBase.extend(ComponentImportModelPart
|
|
|
2347
2365
|
originMetadata: ComponentOriginPart
|
|
2348
2366
|
});
|
|
2349
2367
|
var ThemeOverrideImportModelBase = DesignTokenTypedData.and(
|
|
2350
|
-
|
|
2351
|
-
id:
|
|
2368
|
+
z100.object({
|
|
2369
|
+
id: z100.string(),
|
|
2352
2370
|
meta: ObjectMeta
|
|
2353
2371
|
})
|
|
2354
2372
|
);
|
|
2355
2373
|
var ThemeOverrideImportModel = ThemeOverrideImportModelBase.and(
|
|
2356
|
-
|
|
2374
|
+
z100.object({
|
|
2357
2375
|
origin: ThemeOverrideOrigin
|
|
2358
2376
|
})
|
|
2359
2377
|
);
|
|
2360
2378
|
var ThemeOverrideImportModelInput = ThemeOverrideImportModelBase.and(
|
|
2361
|
-
|
|
2362
|
-
originId:
|
|
2379
|
+
z100.object({
|
|
2380
|
+
originId: z100.string(),
|
|
2363
2381
|
originMetadata: ThemeOverrideOriginPart
|
|
2364
2382
|
})
|
|
2365
2383
|
);
|
|
2366
|
-
var ThemeImportModel =
|
|
2384
|
+
var ThemeImportModel = z100.object({
|
|
2367
2385
|
meta: ObjectMeta,
|
|
2368
|
-
brandPersistentId:
|
|
2386
|
+
brandPersistentId: z100.string(),
|
|
2369
2387
|
originSource: ThemeOriginSource,
|
|
2370
|
-
overrides:
|
|
2371
|
-
sortOrder:
|
|
2388
|
+
overrides: z100.array(ThemeOverrideImportModel),
|
|
2389
|
+
sortOrder: z100.number()
|
|
2372
2390
|
});
|
|
2373
|
-
var ThemeImportModelInput =
|
|
2391
|
+
var ThemeImportModelInput = z100.object({
|
|
2374
2392
|
meta: ObjectMeta,
|
|
2375
|
-
originObjects:
|
|
2376
|
-
overrides:
|
|
2393
|
+
originObjects: z100.array(ThemeOriginObject),
|
|
2394
|
+
overrides: z100.array(ThemeOverrideImportModelInput)
|
|
2377
2395
|
});
|
|
2378
|
-
var ThemeUpdateImportModel =
|
|
2379
|
-
themePersistentId:
|
|
2380
|
-
overrides:
|
|
2396
|
+
var ThemeUpdateImportModel = z100.object({
|
|
2397
|
+
themePersistentId: z100.string(),
|
|
2398
|
+
overrides: z100.array(ThemeOverrideImportModel)
|
|
2381
2399
|
});
|
|
2382
|
-
var ThemeUpdateImportModelInput =
|
|
2383
|
-
themePersistentId:
|
|
2384
|
-
overrides:
|
|
2400
|
+
var ThemeUpdateImportModelInput = z100.object({
|
|
2401
|
+
themePersistentId: z100.string(),
|
|
2402
|
+
overrides: z100.array(ThemeOverrideImportModelInput)
|
|
2385
2403
|
});
|
|
2386
|
-
var DesignTokenImportModelPart =
|
|
2387
|
-
collection:
|
|
2404
|
+
var DesignTokenImportModelPart = z101.object({
|
|
2405
|
+
collection: z101.string().optional()
|
|
2388
2406
|
});
|
|
2389
2407
|
var DesignTokenImportModelBase = ImportModelBase.extend(DesignTokenImportModelPart.shape).extend({
|
|
2390
2408
|
origin: DesignTokenOrigin
|
|
@@ -2398,10 +2416,10 @@ var FigmaFileStructureNodeImportModelBase = FigmaFileStructureNodeBase.extend({
|
|
|
2398
2416
|
image: FigmaPngRenderImportModel
|
|
2399
2417
|
});
|
|
2400
2418
|
var FigmaFileStructureNodeImportModel = FigmaFileStructureNodeImportModelBase.extend({
|
|
2401
|
-
children:
|
|
2419
|
+
children: z102.lazy(() => FigmaFileStructureNodeImportModel.array())
|
|
2402
2420
|
});
|
|
2403
|
-
var FigmaFileStructureImportModelPart =
|
|
2404
|
-
data:
|
|
2421
|
+
var FigmaFileStructureImportModelPart = z102.object({
|
|
2422
|
+
data: z102.object({
|
|
2405
2423
|
rootNode: FigmaFileStructureNodeImportModel,
|
|
2406
2424
|
assetsInFile: FigmaFileStructureStatistics
|
|
2407
2425
|
})
|
|
@@ -2412,350 +2430,350 @@ var FigmaFileStructureImportModel = ImportModelBase.extend(FigmaFileStructureImp
|
|
|
2412
2430
|
var FigmaFileStructureImportModelInput = ImportModelInputBase.extend(
|
|
2413
2431
|
FigmaFileStructureImportModelPart.shape
|
|
2414
2432
|
).extend({
|
|
2415
|
-
fileVersionId:
|
|
2433
|
+
fileVersionId: z102.string()
|
|
2416
2434
|
});
|
|
2417
|
-
var DataSourceImportModel =
|
|
2418
|
-
id:
|
|
2419
|
-
fileName:
|
|
2420
|
-
thumbnailUrl:
|
|
2435
|
+
var DataSourceImportModel = z103.object({
|
|
2436
|
+
id: z103.string(),
|
|
2437
|
+
fileName: z103.string().optional(),
|
|
2438
|
+
thumbnailUrl: z103.string().optional()
|
|
2421
2439
|
});
|
|
2422
|
-
var ImportModelInputCollection =
|
|
2440
|
+
var ImportModelInputCollection = z104.object({
|
|
2423
2441
|
source: DataSourceImportModel,
|
|
2424
|
-
tokens:
|
|
2425
|
-
components:
|
|
2426
|
-
assets:
|
|
2427
|
-
themeUpdates:
|
|
2428
|
-
themes:
|
|
2442
|
+
tokens: z104.array(DesignTokenImportModelInput).default([]),
|
|
2443
|
+
components: z104.array(ComponentImportModelInput).default([]),
|
|
2444
|
+
assets: z104.array(AssetImportModelInput).default([]),
|
|
2445
|
+
themeUpdates: z104.array(ThemeUpdateImportModelInput).default([]),
|
|
2446
|
+
themes: z104.array(ThemeImportModelInput).default([]),
|
|
2429
2447
|
figmaFileStructure: FigmaFileStructureImportModelInput.optional()
|
|
2430
2448
|
});
|
|
2431
|
-
var ImportModelCollection =
|
|
2432
|
-
sources:
|
|
2433
|
-
tokens:
|
|
2434
|
-
components:
|
|
2435
|
-
themeUpdates:
|
|
2436
|
-
themes:
|
|
2437
|
-
figmaFileStructures:
|
|
2438
|
-
});
|
|
2439
|
-
var ElementViewBaseColumnType =
|
|
2440
|
-
var ElementViewColumnType =
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2449
|
+
var ImportModelCollection = z104.object({
|
|
2450
|
+
sources: z104.array(DataSourceImportModel),
|
|
2451
|
+
tokens: z104.array(DesignTokenImportModel).default([]),
|
|
2452
|
+
components: z104.array(ComponentImportModel).default([]),
|
|
2453
|
+
themeUpdates: z104.array(ThemeUpdateImportModel).default([]),
|
|
2454
|
+
themes: z104.array(ThemeImportModel).default([]),
|
|
2455
|
+
figmaFileStructures: z104.array(FigmaFileStructureImportModel)
|
|
2456
|
+
});
|
|
2457
|
+
var ElementViewBaseColumnType = z105.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
2458
|
+
var ElementViewColumnType = z105.union([
|
|
2459
|
+
z105.literal("BaseProperty"),
|
|
2460
|
+
z105.literal("PropertyDefinition"),
|
|
2461
|
+
z105.literal("Theme")
|
|
2444
2462
|
]);
|
|
2445
|
-
var ElementViewColumnSharedAttributes =
|
|
2446
|
-
id:
|
|
2447
|
-
persistentId:
|
|
2448
|
-
elementDataViewId:
|
|
2449
|
-
sortPosition:
|
|
2450
|
-
width:
|
|
2463
|
+
var ElementViewColumnSharedAttributes = z105.object({
|
|
2464
|
+
id: z105.string(),
|
|
2465
|
+
persistentId: z105.string(),
|
|
2466
|
+
elementDataViewId: z105.string(),
|
|
2467
|
+
sortPosition: z105.number(),
|
|
2468
|
+
width: z105.number()
|
|
2451
2469
|
});
|
|
2452
2470
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
2453
|
-
type:
|
|
2471
|
+
type: z105.literal("BaseProperty"),
|
|
2454
2472
|
basePropertyType: ElementViewBaseColumnType
|
|
2455
2473
|
});
|
|
2456
2474
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
2457
|
-
type:
|
|
2458
|
-
propertyDefinitionId:
|
|
2475
|
+
type: z105.literal("PropertyDefinition"),
|
|
2476
|
+
propertyDefinitionId: z105.string()
|
|
2459
2477
|
});
|
|
2460
2478
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
2461
|
-
type:
|
|
2462
|
-
themeId:
|
|
2479
|
+
type: z105.literal("Theme"),
|
|
2480
|
+
themeId: z105.string()
|
|
2463
2481
|
});
|
|
2464
|
-
var ElementViewColumn =
|
|
2482
|
+
var ElementViewColumn = z105.discriminatedUnion("type", [
|
|
2465
2483
|
ElementViewBasePropertyColumn,
|
|
2466
2484
|
ElementViewPropertyDefinitionColumn,
|
|
2467
2485
|
ElementViewThemeColumn
|
|
2468
2486
|
]);
|
|
2469
|
-
var ElementView =
|
|
2470
|
-
id: z105.string(),
|
|
2471
|
-
persistentId: z105.string(),
|
|
2472
|
-
designSystemVersionId: z105.string(),
|
|
2473
|
-
name: z105.string(),
|
|
2474
|
-
description: z105.string(),
|
|
2475
|
-
targetElementType: ElementPropertyTargetType,
|
|
2476
|
-
isDefault: z105.boolean()
|
|
2477
|
-
});
|
|
2478
|
-
var Brand = z106.object({
|
|
2487
|
+
var ElementView = z106.object({
|
|
2479
2488
|
id: z106.string(),
|
|
2480
|
-
designSystemVersionId: z106.string(),
|
|
2481
2489
|
persistentId: z106.string(),
|
|
2490
|
+
designSystemVersionId: z106.string(),
|
|
2482
2491
|
name: z106.string(),
|
|
2483
|
-
description: z106.string()
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
var
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
var
|
|
2497
|
-
authType:
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2492
|
+
description: z106.string(),
|
|
2493
|
+
targetElementType: ElementPropertyTargetType,
|
|
2494
|
+
isDefault: z106.boolean()
|
|
2495
|
+
});
|
|
2496
|
+
var Brand = z107.object({
|
|
2497
|
+
id: z107.string(),
|
|
2498
|
+
designSystemVersionId: z107.string(),
|
|
2499
|
+
persistentId: z107.string(),
|
|
2500
|
+
name: z107.string(),
|
|
2501
|
+
description: z107.string()
|
|
2502
|
+
});
|
|
2503
|
+
var NpmRegistryAuthType = z108.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
2504
|
+
var NpmRegistryType = z108.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
2505
|
+
var NpmRegistryBasicAuthConfig = z108.object({
|
|
2506
|
+
authType: z108.literal(NpmRegistryAuthType.Enum.Basic),
|
|
2507
|
+
username: z108.string(),
|
|
2508
|
+
password: z108.string()
|
|
2509
|
+
});
|
|
2510
|
+
var NpmRegistryBearerAuthConfig = z108.object({
|
|
2511
|
+
authType: z108.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
2512
|
+
accessToken: z108.string()
|
|
2513
|
+
});
|
|
2514
|
+
var NpmRegistryNoAuthConfig = z108.object({
|
|
2515
|
+
authType: z108.literal(NpmRegistryAuthType.Enum.None)
|
|
2516
|
+
});
|
|
2517
|
+
var NpmRegistrCustomAuthConfig = z108.object({
|
|
2518
|
+
authType: z108.literal(NpmRegistryAuthType.Enum.Custom),
|
|
2519
|
+
authHeaderName: z108.string(),
|
|
2520
|
+
authHeaderValue: z108.string()
|
|
2521
|
+
});
|
|
2522
|
+
var NpmRegistryAuthConfig = z108.discriminatedUnion("authType", [
|
|
2505
2523
|
NpmRegistryBasicAuthConfig,
|
|
2506
2524
|
NpmRegistryBearerAuthConfig,
|
|
2507
2525
|
NpmRegistryNoAuthConfig,
|
|
2508
2526
|
NpmRegistrCustomAuthConfig
|
|
2509
2527
|
]);
|
|
2510
|
-
var NpmRegistryConfigBase =
|
|
2528
|
+
var NpmRegistryConfigBase = z108.object({
|
|
2511
2529
|
registryType: NpmRegistryType,
|
|
2512
|
-
enabledScopes:
|
|
2513
|
-
customRegistryUrl:
|
|
2514
|
-
bypassProxy:
|
|
2515
|
-
npmProxyRegistryConfigId:
|
|
2516
|
-
npmProxyVersion:
|
|
2530
|
+
enabledScopes: z108.array(z108.string()),
|
|
2531
|
+
customRegistryUrl: z108.string().optional(),
|
|
2532
|
+
bypassProxy: z108.boolean().default(false),
|
|
2533
|
+
npmProxyRegistryConfigId: z108.string().optional(),
|
|
2534
|
+
npmProxyVersion: z108.number().optional()
|
|
2517
2535
|
});
|
|
2518
2536
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
2519
|
-
var SsoProvider =
|
|
2520
|
-
providerId:
|
|
2521
|
-
defaultAutoInviteValue:
|
|
2522
|
-
autoInviteDomains:
|
|
2523
|
-
skipDocsSupernovaLogin:
|
|
2524
|
-
areInvitesDisabled:
|
|
2525
|
-
isTestMode:
|
|
2526
|
-
emailDomains:
|
|
2527
|
-
metadataXml:
|
|
2537
|
+
var SsoProvider = z109.object({
|
|
2538
|
+
providerId: z109.string(),
|
|
2539
|
+
defaultAutoInviteValue: z109.boolean(),
|
|
2540
|
+
autoInviteDomains: z109.record(z109.string(), z109.boolean()),
|
|
2541
|
+
skipDocsSupernovaLogin: z109.boolean(),
|
|
2542
|
+
areInvitesDisabled: z109.boolean(),
|
|
2543
|
+
isTestMode: z109.boolean(),
|
|
2544
|
+
emailDomains: z109.array(z109.string()),
|
|
2545
|
+
metadataXml: z109.string().nullish()
|
|
2528
2546
|
});
|
|
2529
2547
|
var isValidCIDR = (value) => {
|
|
2530
2548
|
return IPCIDR.isValidAddress(value);
|
|
2531
2549
|
};
|
|
2532
|
-
var WorkspaceIpWhitelistEntry =
|
|
2533
|
-
isEnabled:
|
|
2534
|
-
name:
|
|
2535
|
-
range:
|
|
2550
|
+
var WorkspaceIpWhitelistEntry = z110.object({
|
|
2551
|
+
isEnabled: z110.boolean(),
|
|
2552
|
+
name: z110.string(),
|
|
2553
|
+
range: z110.string().refine(isValidCIDR, {
|
|
2536
2554
|
message: "Invalid IP CIDR"
|
|
2537
2555
|
})
|
|
2538
2556
|
});
|
|
2539
|
-
var WorkspaceIpSettings =
|
|
2540
|
-
isEnabledForCloud:
|
|
2541
|
-
isEnabledForDocs:
|
|
2542
|
-
entries:
|
|
2557
|
+
var WorkspaceIpSettings = z110.object({
|
|
2558
|
+
isEnabledForCloud: z110.boolean(),
|
|
2559
|
+
isEnabledForDocs: z110.boolean(),
|
|
2560
|
+
entries: z110.array(WorkspaceIpWhitelistEntry)
|
|
2543
2561
|
});
|
|
2544
|
-
var WorkspaceProfile =
|
|
2545
|
-
name:
|
|
2546
|
-
handle:
|
|
2547
|
-
color:
|
|
2548
|
-
avatar: nullishToOptional(
|
|
2562
|
+
var WorkspaceProfile = z110.object({
|
|
2563
|
+
name: z110.string(),
|
|
2564
|
+
handle: z110.string(),
|
|
2565
|
+
color: z110.string(),
|
|
2566
|
+
avatar: nullishToOptional(z110.string()),
|
|
2549
2567
|
billingDetails: nullishToOptional(BillingDetails)
|
|
2550
2568
|
});
|
|
2551
2569
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
2552
2570
|
avatar: true
|
|
2553
2571
|
});
|
|
2554
|
-
var Workspace =
|
|
2555
|
-
id:
|
|
2572
|
+
var Workspace = z110.object({
|
|
2573
|
+
id: z110.string(),
|
|
2556
2574
|
profile: WorkspaceProfile,
|
|
2557
2575
|
subscription: Subscription,
|
|
2558
2576
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
2559
2577
|
sso: nullishToOptional(SsoProvider),
|
|
2560
2578
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
2561
2579
|
});
|
|
2562
|
-
var WorkspaceWithDesignSystems =
|
|
2580
|
+
var WorkspaceWithDesignSystems = z110.object({
|
|
2563
2581
|
workspace: Workspace,
|
|
2564
|
-
designSystems:
|
|
2582
|
+
designSystems: z110.array(DesignSystem)
|
|
2565
2583
|
});
|
|
2566
|
-
var DesignSystemSwitcher =
|
|
2567
|
-
isEnabled:
|
|
2568
|
-
designSystemIds:
|
|
2584
|
+
var DesignSystemSwitcher = z111.object({
|
|
2585
|
+
isEnabled: z111.boolean(),
|
|
2586
|
+
designSystemIds: z111.array(z111.string())
|
|
2569
2587
|
});
|
|
2570
|
-
var DesignSystem =
|
|
2571
|
-
id:
|
|
2572
|
-
workspaceId:
|
|
2573
|
-
name:
|
|
2574
|
-
description:
|
|
2575
|
-
docExporterId: nullishToOptional(
|
|
2576
|
-
docSlug:
|
|
2577
|
-
docUserSlug: nullishToOptional(
|
|
2578
|
-
docSlugDeprecated:
|
|
2579
|
-
isPublic:
|
|
2580
|
-
isMultibrand:
|
|
2581
|
-
docViewUrl: nullishToOptional(
|
|
2582
|
-
basePrefixes:
|
|
2588
|
+
var DesignSystem = z111.object({
|
|
2589
|
+
id: z111.string(),
|
|
2590
|
+
workspaceId: z111.string(),
|
|
2591
|
+
name: z111.string(),
|
|
2592
|
+
description: z111.string(),
|
|
2593
|
+
docExporterId: nullishToOptional(z111.string()),
|
|
2594
|
+
docSlug: z111.string(),
|
|
2595
|
+
docUserSlug: nullishToOptional(z111.string()),
|
|
2596
|
+
docSlugDeprecated: z111.string(),
|
|
2597
|
+
isPublic: z111.boolean(),
|
|
2598
|
+
isMultibrand: z111.boolean(),
|
|
2599
|
+
docViewUrl: nullishToOptional(z111.string()),
|
|
2600
|
+
basePrefixes: z111.array(z111.string()),
|
|
2583
2601
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
2584
|
-
createdAt:
|
|
2585
|
-
updatedAt:
|
|
2602
|
+
createdAt: z111.coerce.date(),
|
|
2603
|
+
updatedAt: z111.coerce.date()
|
|
2586
2604
|
});
|
|
2587
|
-
var DesignSystemWithWorkspace =
|
|
2605
|
+
var DesignSystemWithWorkspace = z111.object({
|
|
2588
2606
|
designSystem: DesignSystem,
|
|
2589
2607
|
workspace: Workspace
|
|
2590
2608
|
});
|
|
2591
2609
|
var DS_NAME_MIN_LENGTH = 2;
|
|
2592
2610
|
var DS_NAME_MAX_LENGTH = 64;
|
|
2593
2611
|
var DS_DESC_MAX_LENGTH = 64;
|
|
2594
|
-
var DesignSystemCreateInputMetadata =
|
|
2595
|
-
name:
|
|
2596
|
-
description:
|
|
2612
|
+
var DesignSystemCreateInputMetadata = z112.object({
|
|
2613
|
+
name: z112.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim(),
|
|
2614
|
+
description: z112.string().max(DS_DESC_MAX_LENGTH).trim()
|
|
2597
2615
|
});
|
|
2598
|
-
var DesignSystemCreateInput =
|
|
2616
|
+
var DesignSystemCreateInput = z112.object({
|
|
2599
2617
|
meta: DesignSystemCreateInputMetadata,
|
|
2600
|
-
workspaceId:
|
|
2601
|
-
isPublic:
|
|
2602
|
-
basePrefixes:
|
|
2603
|
-
docUserSlug:
|
|
2604
|
-
source:
|
|
2618
|
+
workspaceId: z112.string(),
|
|
2619
|
+
isPublic: z112.boolean().optional(),
|
|
2620
|
+
basePrefixes: z112.array(z112.string()).optional(),
|
|
2621
|
+
docUserSlug: z112.string().nullish().optional(),
|
|
2622
|
+
source: z112.array(z112.string()).optional()
|
|
2605
2623
|
});
|
|
2606
2624
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
2607
2625
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
2608
2626
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
2609
|
-
var DesignSystemUpdateInputMetadata =
|
|
2610
|
-
name:
|
|
2611
|
-
description:
|
|
2627
|
+
var DesignSystemUpdateInputMetadata = z113.object({
|
|
2628
|
+
name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2629
|
+
description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional()
|
|
2612
2630
|
});
|
|
2613
|
-
var DesignSystemUpdateInput =
|
|
2631
|
+
var DesignSystemUpdateInput = z113.object({
|
|
2614
2632
|
meta: DesignSystemUpdateInputMetadata.optional(),
|
|
2615
|
-
workspaceId:
|
|
2616
|
-
isPublic:
|
|
2617
|
-
basePrefixes:
|
|
2618
|
-
docUserSlug:
|
|
2619
|
-
source:
|
|
2620
|
-
name:
|
|
2621
|
-
description:
|
|
2622
|
-
docExporterId:
|
|
2623
|
-
});
|
|
2624
|
-
var ExporterPropertyImageValue =
|
|
2633
|
+
workspaceId: z113.string().optional(),
|
|
2634
|
+
isPublic: z113.boolean().optional(),
|
|
2635
|
+
basePrefixes: z113.array(z113.string()).optional(),
|
|
2636
|
+
docUserSlug: z113.string().nullish().optional(),
|
|
2637
|
+
source: z113.array(z113.string()).optional(),
|
|
2638
|
+
name: z113.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim().optional(),
|
|
2639
|
+
description: z113.string().max(DS_DESC_MAX_LENGTH2).trim().optional(),
|
|
2640
|
+
docExporterId: z113.string().optional()
|
|
2641
|
+
});
|
|
2642
|
+
var ExporterPropertyImageValue = z114.object({
|
|
2625
2643
|
asset: PageBlockAsset.optional(),
|
|
2626
|
-
assetId:
|
|
2627
|
-
assetUrl:
|
|
2628
|
-
});
|
|
2629
|
-
var ExporterPropertyValue =
|
|
2630
|
-
key:
|
|
2631
|
-
value:
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2644
|
+
assetId: z114.string().optional(),
|
|
2645
|
+
assetUrl: z114.string().optional()
|
|
2646
|
+
});
|
|
2647
|
+
var ExporterPropertyValue = z114.object({
|
|
2648
|
+
key: z114.string(),
|
|
2649
|
+
value: z114.union([
|
|
2650
|
+
z114.number(),
|
|
2651
|
+
z114.string(),
|
|
2652
|
+
z114.boolean(),
|
|
2635
2653
|
ExporterPropertyImageValue,
|
|
2636
2654
|
ColorTokenData,
|
|
2637
2655
|
TypographyTokenData
|
|
2638
2656
|
])
|
|
2639
2657
|
});
|
|
2640
|
-
var ExporterPropertyValuesCollection =
|
|
2641
|
-
id: z113.string(),
|
|
2642
|
-
designSystemId: z113.string(),
|
|
2643
|
-
exporterId: z113.string(),
|
|
2644
|
-
values: z113.array(ExporterPropertyValue)
|
|
2645
|
-
});
|
|
2646
|
-
var PublishedDocPage = z114.object({
|
|
2658
|
+
var ExporterPropertyValuesCollection = z114.object({
|
|
2647
2659
|
id: z114.string(),
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
pathV2: z114.string(),
|
|
2652
|
-
storagePath: z114.string(),
|
|
2653
|
-
locale: z114.string().optional(),
|
|
2654
|
-
isPrivate: z114.boolean(),
|
|
2655
|
-
isHidden: z114.boolean(),
|
|
2656
|
-
createdAt: z114.coerce.date(),
|
|
2657
|
-
updatedAt: z114.coerce.date()
|
|
2660
|
+
designSystemId: z114.string(),
|
|
2661
|
+
exporterId: z114.string(),
|
|
2662
|
+
values: z114.array(ExporterPropertyValue)
|
|
2658
2663
|
});
|
|
2659
|
-
var
|
|
2660
|
-
var PublishedDocEnvironment = z115.enum(publishedDocEnvironments);
|
|
2661
|
-
var PublishedDocsChecksums = z115.record(z115.string());
|
|
2662
|
-
var PublishedDocRoutingVersion = z115.enum(["1", "2"]);
|
|
2663
|
-
var PublishedDoc = z115.object({
|
|
2664
|
+
var PublishedDocPage = z115.object({
|
|
2664
2665
|
id: z115.string(),
|
|
2665
|
-
|
|
2666
|
+
publishedDocId: z115.string(),
|
|
2667
|
+
pageShortPersistentId: z115.string(),
|
|
2668
|
+
pathV1: z115.string(),
|
|
2669
|
+
pathV2: z115.string(),
|
|
2670
|
+
storagePath: z115.string(),
|
|
2671
|
+
locale: z115.string().optional(),
|
|
2672
|
+
isPrivate: z115.boolean(),
|
|
2673
|
+
isHidden: z115.boolean(),
|
|
2666
2674
|
createdAt: z115.coerce.date(),
|
|
2667
|
-
updatedAt: z115.coerce.date()
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2675
|
+
updatedAt: z115.coerce.date()
|
|
2676
|
+
});
|
|
2677
|
+
var publishedDocEnvironments = ["Live", "Preview"];
|
|
2678
|
+
var PublishedDocEnvironment = z116.enum(publishedDocEnvironments);
|
|
2679
|
+
var PublishedDocsChecksums = z116.record(z116.string());
|
|
2680
|
+
var PublishedDocRoutingVersion = z116.enum(["1", "2"]);
|
|
2681
|
+
var PublishedDoc = z116.object({
|
|
2682
|
+
id: z116.string(),
|
|
2683
|
+
designSystemVersionId: z116.string(),
|
|
2684
|
+
createdAt: z116.coerce.date(),
|
|
2685
|
+
updatedAt: z116.coerce.date(),
|
|
2686
|
+
lastPublishedAt: z116.coerce.date(),
|
|
2687
|
+
isDefault: z116.boolean(),
|
|
2688
|
+
isPublic: z116.boolean(),
|
|
2671
2689
|
environment: PublishedDocEnvironment,
|
|
2672
2690
|
checksums: PublishedDocsChecksums,
|
|
2673
|
-
storagePath:
|
|
2674
|
-
wasMigrated:
|
|
2691
|
+
storagePath: z116.string(),
|
|
2692
|
+
wasMigrated: z116.boolean(),
|
|
2675
2693
|
routingVersion: PublishedDocRoutingVersion,
|
|
2676
|
-
usesLocalizations:
|
|
2677
|
-
wasPublishedWithLocalizations:
|
|
2678
|
-
});
|
|
2679
|
-
var DesignSystemVersion =
|
|
2680
|
-
id:
|
|
2681
|
-
version:
|
|
2682
|
-
createdAt:
|
|
2683
|
-
designSystemId:
|
|
2684
|
-
name:
|
|
2685
|
-
comment:
|
|
2686
|
-
isReadonly:
|
|
2687
|
-
changeLog:
|
|
2688
|
-
parentId:
|
|
2689
|
-
});
|
|
2690
|
-
var VersionCreationJobStatus =
|
|
2691
|
-
var VersionCreationJob =
|
|
2692
|
-
id:
|
|
2693
|
-
version:
|
|
2694
|
-
designSystemId:
|
|
2695
|
-
designSystemVersionId: nullishToOptional(
|
|
2694
|
+
usesLocalizations: z116.boolean(),
|
|
2695
|
+
wasPublishedWithLocalizations: z116.boolean()
|
|
2696
|
+
});
|
|
2697
|
+
var DesignSystemVersion = z117.object({
|
|
2698
|
+
id: z117.string(),
|
|
2699
|
+
version: z117.string(),
|
|
2700
|
+
createdAt: z117.date(),
|
|
2701
|
+
designSystemId: z117.string(),
|
|
2702
|
+
name: z117.string(),
|
|
2703
|
+
comment: z117.string(),
|
|
2704
|
+
isReadonly: z117.boolean(),
|
|
2705
|
+
changeLog: z117.string(),
|
|
2706
|
+
parentId: z117.string().optional()
|
|
2707
|
+
});
|
|
2708
|
+
var VersionCreationJobStatus = z117.enum(["Success", "InProgress", "Error"]);
|
|
2709
|
+
var VersionCreationJob = z117.object({
|
|
2710
|
+
id: z117.string(),
|
|
2711
|
+
version: z117.string(),
|
|
2712
|
+
designSystemId: z117.string(),
|
|
2713
|
+
designSystemVersionId: nullishToOptional(z117.string()),
|
|
2696
2714
|
status: VersionCreationJobStatus,
|
|
2697
|
-
errorMessage: nullishToOptional(
|
|
2715
|
+
errorMessage: nullishToOptional(z117.string())
|
|
2698
2716
|
});
|
|
2699
2717
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
2700
2718
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
2701
|
-
var ExporterDestinationDocs =
|
|
2719
|
+
var ExporterDestinationDocs = z118.object({
|
|
2702
2720
|
environment: PublishedDocEnvironment
|
|
2703
2721
|
});
|
|
2704
|
-
var ExporterDestinationS3 =
|
|
2705
|
-
var ExporterDestinationGithub =
|
|
2706
|
-
credentialId:
|
|
2722
|
+
var ExporterDestinationS3 = z118.object({});
|
|
2723
|
+
var ExporterDestinationGithub = z118.object({
|
|
2724
|
+
credentialId: z118.string().optional(),
|
|
2707
2725
|
// Repository
|
|
2708
|
-
url:
|
|
2726
|
+
url: z118.string(),
|
|
2709
2727
|
// Location
|
|
2710
|
-
branch:
|
|
2711
|
-
relativePath: nullishToOptional(
|
|
2728
|
+
branch: z118.string(),
|
|
2729
|
+
relativePath: nullishToOptional(z118.string()),
|
|
2712
2730
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
2713
|
-
connectionId: nullishToOptional(
|
|
2714
|
-
userId: nullishToOptional(
|
|
2731
|
+
connectionId: nullishToOptional(z118.string()),
|
|
2732
|
+
userId: nullishToOptional(z118.number())
|
|
2715
2733
|
});
|
|
2716
|
-
var ExporterDestinationAzure =
|
|
2717
|
-
credentialId:
|
|
2734
|
+
var ExporterDestinationAzure = z118.object({
|
|
2735
|
+
credentialId: z118.string().optional(),
|
|
2718
2736
|
// Repository
|
|
2719
|
-
organizationId:
|
|
2720
|
-
projectId:
|
|
2721
|
-
repositoryId:
|
|
2737
|
+
organizationId: z118.string(),
|
|
2738
|
+
projectId: z118.string(),
|
|
2739
|
+
repositoryId: z118.string(),
|
|
2722
2740
|
// Location
|
|
2723
|
-
branch:
|
|
2724
|
-
relativePath: nullishToOptional(
|
|
2741
|
+
branch: z118.string(),
|
|
2742
|
+
relativePath: nullishToOptional(z118.string()),
|
|
2725
2743
|
// Maybe not needed
|
|
2726
|
-
url: nullishToOptional(
|
|
2744
|
+
url: nullishToOptional(z118.string()),
|
|
2727
2745
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
2728
|
-
connectionId: nullishToOptional(
|
|
2729
|
-
userId: nullishToOptional(
|
|
2746
|
+
connectionId: nullishToOptional(z118.string()),
|
|
2747
|
+
userId: nullishToOptional(z118.number())
|
|
2730
2748
|
});
|
|
2731
|
-
var ExporterDestinationGitlab =
|
|
2732
|
-
credentialId:
|
|
2749
|
+
var ExporterDestinationGitlab = z118.object({
|
|
2750
|
+
credentialId: z118.string().optional(),
|
|
2733
2751
|
// Repository
|
|
2734
|
-
projectId:
|
|
2752
|
+
projectId: z118.string(),
|
|
2735
2753
|
// Location
|
|
2736
|
-
branch:
|
|
2737
|
-
relativePath: nullishToOptional(
|
|
2754
|
+
branch: z118.string(),
|
|
2755
|
+
relativePath: nullishToOptional(z118.string()),
|
|
2738
2756
|
// Maybe not needed
|
|
2739
|
-
url: nullishToOptional(
|
|
2757
|
+
url: nullishToOptional(z118.string()),
|
|
2740
2758
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
2741
|
-
connectionId: nullishToOptional(
|
|
2742
|
-
userId: nullishToOptional(
|
|
2759
|
+
connectionId: nullishToOptional(z118.string()),
|
|
2760
|
+
userId: nullishToOptional(z118.number())
|
|
2743
2761
|
});
|
|
2744
|
-
var ExporterDestinationBitbucket =
|
|
2745
|
-
credentialId:
|
|
2762
|
+
var ExporterDestinationBitbucket = z118.object({
|
|
2763
|
+
credentialId: z118.string().optional(),
|
|
2746
2764
|
// Repository
|
|
2747
|
-
workspaceSlug:
|
|
2748
|
-
projectKey:
|
|
2749
|
-
repoSlug:
|
|
2765
|
+
workspaceSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2766
|
+
projectKey: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2767
|
+
repoSlug: z118.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
2750
2768
|
// Location
|
|
2751
|
-
branch:
|
|
2752
|
-
relativePath: nullishToOptional(
|
|
2769
|
+
branch: z118.string(),
|
|
2770
|
+
relativePath: nullishToOptional(z118.string()),
|
|
2753
2771
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
2754
|
-
connectionId: nullishToOptional(
|
|
2755
|
-
userId: nullishToOptional(
|
|
2772
|
+
connectionId: nullishToOptional(z118.string()),
|
|
2773
|
+
userId: nullishToOptional(z118.number())
|
|
2756
2774
|
});
|
|
2757
|
-
var ExportDestinationsMap =
|
|
2758
|
-
webhookUrl:
|
|
2775
|
+
var ExportDestinationsMap = z118.object({
|
|
2776
|
+
webhookUrl: z118.string().optional(),
|
|
2759
2777
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
2760
2778
|
destinationS3: ExporterDestinationS3.optional(),
|
|
2761
2779
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -2763,69 +2781,72 @@ var ExportDestinationsMap = z117.object({
|
|
|
2763
2781
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
2764
2782
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
2765
2783
|
});
|
|
2766
|
-
var PipelineEventType =
|
|
2767
|
-
var PipelineDestinationGitType =
|
|
2768
|
-
var PipelineDestinationExtraType =
|
|
2769
|
-
var PipelineDestinationType =
|
|
2770
|
-
var Pipeline =
|
|
2771
|
-
id:
|
|
2772
|
-
name:
|
|
2784
|
+
var PipelineEventType = z119.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
2785
|
+
var PipelineDestinationGitType = z119.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
2786
|
+
var PipelineDestinationExtraType = z119.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
2787
|
+
var PipelineDestinationType = z119.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
2788
|
+
var Pipeline = z119.object({
|
|
2789
|
+
id: z119.string(),
|
|
2790
|
+
name: z119.string(),
|
|
2773
2791
|
eventType: PipelineEventType,
|
|
2774
|
-
isEnabled:
|
|
2775
|
-
workspaceId:
|
|
2776
|
-
designSystemId:
|
|
2777
|
-
exporterId:
|
|
2778
|
-
brandPersistentId:
|
|
2779
|
-
themePersistentId:
|
|
2792
|
+
isEnabled: z119.boolean(),
|
|
2793
|
+
workspaceId: z119.string(),
|
|
2794
|
+
designSystemId: z119.string(),
|
|
2795
|
+
exporterId: z119.string(),
|
|
2796
|
+
brandPersistentId: z119.string().optional(),
|
|
2797
|
+
themePersistentId: z119.string().optional(),
|
|
2780
2798
|
// Destinations
|
|
2781
2799
|
...ExportDestinationsMap.shape
|
|
2782
2800
|
});
|
|
2783
|
-
var ExportJobDump =
|
|
2784
|
-
id:
|
|
2785
|
-
createdAt:
|
|
2786
|
-
finishedAt:
|
|
2787
|
-
exportArtefacts:
|
|
2801
|
+
var ExportJobDump = z120.object({
|
|
2802
|
+
id: z120.string(),
|
|
2803
|
+
createdAt: z120.coerce.date(),
|
|
2804
|
+
finishedAt: z120.coerce.date(),
|
|
2805
|
+
exportArtefacts: z120.string()
|
|
2788
2806
|
});
|
|
2789
|
-
var CodeIntegrationDump =
|
|
2807
|
+
var CodeIntegrationDump = z120.object({
|
|
2790
2808
|
exporters: Exporter.array(),
|
|
2791
2809
|
pipelines: Pipeline.array(),
|
|
2792
2810
|
exportJobs: ExportJobDump.array()
|
|
2793
2811
|
});
|
|
2794
2812
|
var DesignSystemVersionRoom = Entity.extend({
|
|
2795
|
-
designSystemVersionId:
|
|
2796
|
-
liveblocksId:
|
|
2813
|
+
designSystemVersionId: z121.string(),
|
|
2814
|
+
liveblocksId: z121.string()
|
|
2797
2815
|
});
|
|
2798
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
2799
|
-
routingVersion:
|
|
2816
|
+
var DesignSystemVersionRoomInternalSettings = z121.object({
|
|
2817
|
+
routingVersion: z121.string(),
|
|
2818
|
+
isDraftFeatureAdopted: z121.boolean()
|
|
2800
2819
|
});
|
|
2801
|
-
var DesignSystemVersionRoomInitialState =
|
|
2802
|
-
pages:
|
|
2803
|
-
groups:
|
|
2820
|
+
var DesignSystemVersionRoomInitialState = z121.object({
|
|
2821
|
+
pages: z121.array(DocumentationPageV2),
|
|
2822
|
+
groups: z121.array(ElementGroup),
|
|
2823
|
+
documentationPublishedState: z121.array(DesignElementSnapshot),
|
|
2804
2824
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
2805
2825
|
});
|
|
2806
|
-
var DesignSystemVersionRoomUpdate =
|
|
2807
|
-
pages:
|
|
2808
|
-
groups:
|
|
2809
|
-
|
|
2810
|
-
|
|
2826
|
+
var DesignSystemVersionRoomUpdate = z121.object({
|
|
2827
|
+
pages: z121.array(DocumentationPageV2),
|
|
2828
|
+
groups: z121.array(ElementGroup),
|
|
2829
|
+
documentationPublishedState: z121.array(DesignElementSnapshot),
|
|
2830
|
+
deletedPageIds: z121.array(z121.string()),
|
|
2831
|
+
deletedGroupIds: z121.array(z121.string())
|
|
2811
2832
|
});
|
|
2812
2833
|
var DocumentationPageRoom = Entity.extend({
|
|
2813
|
-
designSystemVersionId:
|
|
2814
|
-
documentationPageId:
|
|
2815
|
-
liveblocksId:
|
|
2816
|
-
isDirty:
|
|
2834
|
+
designSystemVersionId: z122.string(),
|
|
2835
|
+
documentationPageId: z122.string(),
|
|
2836
|
+
liveblocksId: z122.string(),
|
|
2837
|
+
isDirty: z122.boolean()
|
|
2817
2838
|
});
|
|
2818
|
-
var DocumentationPageRoomState =
|
|
2819
|
-
pageItems:
|
|
2839
|
+
var DocumentationPageRoomState = z122.object({
|
|
2840
|
+
pageItems: z122.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2820
2841
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
2821
2842
|
});
|
|
2822
|
-
var DocumentationPageRoomRoomUpdate =
|
|
2843
|
+
var DocumentationPageRoomRoomUpdate = z122.object({
|
|
2823
2844
|
page: DocumentationPageV2,
|
|
2824
2845
|
pageParent: ElementGroup
|
|
2825
2846
|
});
|
|
2826
2847
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
2827
|
-
pageItems:
|
|
2828
|
-
blockDefinitions:
|
|
2848
|
+
pageItems: z122.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
2849
|
+
blockDefinitions: z122.array(PageBlockDefinition)
|
|
2829
2850
|
});
|
|
2830
2851
|
var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
2831
2852
|
RoomTypeEnum2["DocumentationPage"] = "documentation-page";
|
|
@@ -2833,28 +2854,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
2833
2854
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
2834
2855
|
return RoomTypeEnum2;
|
|
2835
2856
|
})(RoomTypeEnum || {});
|
|
2836
|
-
var RoomTypeSchema =
|
|
2857
|
+
var RoomTypeSchema = z123.nativeEnum(RoomTypeEnum);
|
|
2837
2858
|
var RoomType = RoomTypeSchema.enum;
|
|
2838
2859
|
var WorkspaceRoom = Entity.extend({
|
|
2839
|
-
workspaceId:
|
|
2840
|
-
liveblocksId:
|
|
2860
|
+
workspaceId: z124.string(),
|
|
2861
|
+
liveblocksId: z124.string()
|
|
2841
2862
|
});
|
|
2842
|
-
var PublishedDocsDump =
|
|
2863
|
+
var PublishedDocsDump = z125.object({
|
|
2843
2864
|
documentation: PublishedDoc,
|
|
2844
2865
|
pages: PublishedDocPage.array()
|
|
2845
2866
|
});
|
|
2846
|
-
var DocumentationThreadDump =
|
|
2867
|
+
var DocumentationThreadDump = z126.object({
|
|
2847
2868
|
thread: DocumentationCommentThread,
|
|
2848
2869
|
comments: DocumentationComment.array()
|
|
2849
2870
|
});
|
|
2850
|
-
var DocumentationPageRoomDump =
|
|
2871
|
+
var DocumentationPageRoomDump = z126.object({
|
|
2851
2872
|
room: DocumentationPageRoom,
|
|
2852
2873
|
threads: DocumentationThreadDump.array()
|
|
2853
2874
|
});
|
|
2854
|
-
var DesignSystemVersionMultiplayerDump =
|
|
2875
|
+
var DesignSystemVersionMultiplayerDump = z126.object({
|
|
2855
2876
|
documentationPages: DocumentationPageRoomDump.array()
|
|
2856
2877
|
});
|
|
2857
|
-
var DesignSystemVersionDump =
|
|
2878
|
+
var DesignSystemVersionDump = z126.object({
|
|
2858
2879
|
version: DesignSystemVersion,
|
|
2859
2880
|
brands: Brand.array(),
|
|
2860
2881
|
elements: DesignElement.array(),
|
|
@@ -2867,102 +2888,102 @@ var DesignSystemVersionDump = z125.object({
|
|
|
2867
2888
|
publishedDocumentations: PublishedDocsDump.array(),
|
|
2868
2889
|
assetReferences: AssetReference.array()
|
|
2869
2890
|
});
|
|
2870
|
-
var DesignSystemDump =
|
|
2891
|
+
var DesignSystemDump = z127.object({
|
|
2871
2892
|
designSystem: DesignSystem,
|
|
2872
2893
|
dataSources: DataSource.array(),
|
|
2873
2894
|
versions: DesignSystemVersionDump.array(),
|
|
2874
2895
|
customDomain: CustomDomain.optional(),
|
|
2875
2896
|
files: Asset.array()
|
|
2876
2897
|
});
|
|
2877
|
-
var IntegrationAuthType =
|
|
2878
|
-
var ExternalServiceType =
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2898
|
+
var IntegrationAuthType = z128.union([z128.literal("OAuth2"), z128.literal("PAT")]);
|
|
2899
|
+
var ExternalServiceType = z128.union([
|
|
2900
|
+
z128.literal("figma"),
|
|
2901
|
+
z128.literal("github"),
|
|
2902
|
+
z128.literal("azure"),
|
|
2903
|
+
z128.literal("gitlab"),
|
|
2904
|
+
z128.literal("bitbucket")
|
|
2884
2905
|
]);
|
|
2885
|
-
var IntegrationUserInfo =
|
|
2886
|
-
id:
|
|
2887
|
-
handle:
|
|
2888
|
-
avatarUrl:
|
|
2889
|
-
email:
|
|
2906
|
+
var IntegrationUserInfo = z128.object({
|
|
2907
|
+
id: z128.string(),
|
|
2908
|
+
handle: z128.string().optional(),
|
|
2909
|
+
avatarUrl: z128.string().optional(),
|
|
2910
|
+
email: z128.string().optional(),
|
|
2890
2911
|
authType: IntegrationAuthType.optional(),
|
|
2891
|
-
customUrl:
|
|
2912
|
+
customUrl: z128.string().optional()
|
|
2892
2913
|
});
|
|
2893
|
-
var UserLinkedIntegrations =
|
|
2914
|
+
var UserLinkedIntegrations = z128.object({
|
|
2894
2915
|
figma: IntegrationUserInfo.optional(),
|
|
2895
2916
|
github: IntegrationUserInfo.array().optional(),
|
|
2896
2917
|
azure: IntegrationUserInfo.array().optional(),
|
|
2897
2918
|
gitlab: IntegrationUserInfo.array().optional(),
|
|
2898
2919
|
bitbucket: IntegrationUserInfo.array().optional()
|
|
2899
2920
|
});
|
|
2900
|
-
var UserAnalyticsCleanupSchedule =
|
|
2901
|
-
userId:
|
|
2902
|
-
createdAt:
|
|
2903
|
-
deleteAt:
|
|
2921
|
+
var UserAnalyticsCleanupSchedule = z129.object({
|
|
2922
|
+
userId: z129.string(),
|
|
2923
|
+
createdAt: z129.coerce.date(),
|
|
2924
|
+
deleteAt: z129.coerce.date()
|
|
2904
2925
|
});
|
|
2905
2926
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
2906
2927
|
createdAt: true
|
|
2907
2928
|
});
|
|
2908
|
-
var CreateUserInput =
|
|
2909
|
-
email:
|
|
2910
|
-
name:
|
|
2911
|
-
username:
|
|
2929
|
+
var CreateUserInput = z130.object({
|
|
2930
|
+
email: z130.string(),
|
|
2931
|
+
name: z130.string(),
|
|
2932
|
+
username: z130.string()
|
|
2912
2933
|
});
|
|
2913
|
-
var UserIdentity =
|
|
2914
|
-
id: z130.string(),
|
|
2915
|
-
userId: z130.string()
|
|
2916
|
-
});
|
|
2917
|
-
var UserMinified = z131.object({
|
|
2934
|
+
var UserIdentity = z131.object({
|
|
2918
2935
|
id: z131.string(),
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2936
|
+
userId: z131.string()
|
|
2937
|
+
});
|
|
2938
|
+
var UserMinified = z132.object({
|
|
2939
|
+
id: z132.string(),
|
|
2940
|
+
name: z132.string(),
|
|
2941
|
+
email: z132.string(),
|
|
2942
|
+
avatar: z132.string().optional()
|
|
2922
2943
|
});
|
|
2923
|
-
var LiveblocksNotificationSettings =
|
|
2924
|
-
sendCommentNotificationEmails:
|
|
2944
|
+
var LiveblocksNotificationSettings = z133.object({
|
|
2945
|
+
sendCommentNotificationEmails: z133.boolean()
|
|
2925
2946
|
});
|
|
2926
|
-
var UserNotificationSettings =
|
|
2947
|
+
var UserNotificationSettings = z133.object({
|
|
2927
2948
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
2928
2949
|
});
|
|
2929
|
-
var UserOnboardingDepartment =
|
|
2930
|
-
var UserOnboardingJobLevel =
|
|
2931
|
-
var UserOnboarding =
|
|
2932
|
-
companyName:
|
|
2933
|
-
numberOfPeopleInOrg:
|
|
2934
|
-
numberOfPeopleInDesignTeam:
|
|
2950
|
+
var UserOnboardingDepartment = z134.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
2951
|
+
var UserOnboardingJobLevel = z134.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
2952
|
+
var UserOnboarding = z134.object({
|
|
2953
|
+
companyName: z134.string().optional(),
|
|
2954
|
+
numberOfPeopleInOrg: z134.string().optional(),
|
|
2955
|
+
numberOfPeopleInDesignTeam: z134.string().optional(),
|
|
2935
2956
|
department: UserOnboardingDepartment.optional(),
|
|
2936
|
-
jobTitle:
|
|
2937
|
-
phase:
|
|
2957
|
+
jobTitle: z134.string().optional(),
|
|
2958
|
+
phase: z134.string().optional(),
|
|
2938
2959
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
2939
|
-
designSystemName:
|
|
2940
|
-
defaultDestination:
|
|
2941
|
-
figmaUrl:
|
|
2942
|
-
});
|
|
2943
|
-
var UserProfile =
|
|
2944
|
-
name:
|
|
2945
|
-
avatar:
|
|
2946
|
-
nickname:
|
|
2960
|
+
designSystemName: z134.string().optional(),
|
|
2961
|
+
defaultDestination: z134.string().optional(),
|
|
2962
|
+
figmaUrl: z134.string().optional()
|
|
2963
|
+
});
|
|
2964
|
+
var UserProfile = z134.object({
|
|
2965
|
+
name: z134.string(),
|
|
2966
|
+
avatar: z134.string().optional(),
|
|
2967
|
+
nickname: z134.string().optional(),
|
|
2947
2968
|
onboarding: UserOnboarding.optional()
|
|
2948
2969
|
});
|
|
2949
2970
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
2950
2971
|
avatar: true
|
|
2951
2972
|
});
|
|
2952
|
-
var UserTest =
|
|
2953
|
-
id: z134.string(),
|
|
2954
|
-
email: z134.string()
|
|
2955
|
-
});
|
|
2956
|
-
var User = z135.object({
|
|
2973
|
+
var UserTest = z135.object({
|
|
2957
2974
|
id: z135.string(),
|
|
2958
|
-
email: z135.string()
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2975
|
+
email: z135.string()
|
|
2976
|
+
});
|
|
2977
|
+
var User = z136.object({
|
|
2978
|
+
id: z136.string(),
|
|
2979
|
+
email: z136.string(),
|
|
2980
|
+
emailVerified: z136.boolean(),
|
|
2981
|
+
createdAt: z136.coerce.date(),
|
|
2982
|
+
trialExpiresAt: z136.coerce.date().optional(),
|
|
2962
2983
|
profile: UserProfile,
|
|
2963
2984
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
2964
|
-
loggedOutAt:
|
|
2965
|
-
isProtected:
|
|
2985
|
+
loggedOutAt: z136.coerce.date().optional(),
|
|
2986
|
+
isProtected: z136.boolean()
|
|
2966
2987
|
});
|
|
2967
2988
|
var SupernovaException = class _SupernovaException extends Error {
|
|
2968
2989
|
//
|
|
@@ -3071,25 +3092,25 @@ function groupBy(items, keyFn) {
|
|
|
3071
3092
|
}
|
|
3072
3093
|
return result;
|
|
3073
3094
|
}
|
|
3074
|
-
var ContentLoadInstruction =
|
|
3075
|
-
from:
|
|
3076
|
-
to:
|
|
3077
|
-
authorizationHeaderKvsId:
|
|
3078
|
-
timeout:
|
|
3095
|
+
var ContentLoadInstruction = z137.object({
|
|
3096
|
+
from: z137.string(),
|
|
3097
|
+
to: z137.string(),
|
|
3098
|
+
authorizationHeaderKvsId: z137.string().optional(),
|
|
3099
|
+
timeout: z137.number().optional()
|
|
3079
3100
|
});
|
|
3080
|
-
var ContentLoaderPayload =
|
|
3081
|
-
type:
|
|
3101
|
+
var ContentLoaderPayload = z137.object({
|
|
3102
|
+
type: z137.literal("Single"),
|
|
3082
3103
|
instruction: ContentLoadInstruction
|
|
3083
3104
|
}).or(
|
|
3084
|
-
|
|
3085
|
-
type:
|
|
3086
|
-
loadingChunkSize:
|
|
3087
|
-
instructions:
|
|
3105
|
+
z137.object({
|
|
3106
|
+
type: z137.literal("Multiple"),
|
|
3107
|
+
loadingChunkSize: z137.number().optional(),
|
|
3108
|
+
instructions: z137.array(ContentLoadInstruction)
|
|
3088
3109
|
})
|
|
3089
3110
|
).or(
|
|
3090
|
-
|
|
3091
|
-
type:
|
|
3092
|
-
location:
|
|
3111
|
+
z137.object({
|
|
3112
|
+
type: z137.literal("S3"),
|
|
3113
|
+
location: z137.string()
|
|
3093
3114
|
})
|
|
3094
3115
|
);
|
|
3095
3116
|
function slugify(str, options) {
|
|
@@ -3717,43 +3738,43 @@ var RESERVED_SLUGS = [
|
|
|
3717
3738
|
];
|
|
3718
3739
|
var RESERVED_SLUGS_SET = new Set(RESERVED_SLUGS);
|
|
3719
3740
|
var slugRegex = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
|
|
3720
|
-
var IntegrationDesignSystem =
|
|
3721
|
-
designSystemId:
|
|
3722
|
-
brandId:
|
|
3723
|
-
title:
|
|
3724
|
-
userId:
|
|
3725
|
-
date:
|
|
3726
|
-
});
|
|
3727
|
-
var IntegrationCredentialsType =
|
|
3728
|
-
var IntegrationCredentialsState =
|
|
3729
|
-
var IntegrationCredentialsProfile =
|
|
3730
|
-
id: nullishToOptional(
|
|
3731
|
-
email: nullishToOptional(
|
|
3732
|
-
handle: nullishToOptional(
|
|
3733
|
-
type: nullishToOptional(
|
|
3734
|
-
avatarUrl: nullishToOptional(
|
|
3735
|
-
organization: nullishToOptional(
|
|
3736
|
-
collection: nullishToOptional(
|
|
3737
|
-
});
|
|
3738
|
-
var IntegrationCredentials =
|
|
3739
|
-
id:
|
|
3741
|
+
var IntegrationDesignSystem = z138.object({
|
|
3742
|
+
designSystemId: z138.string(),
|
|
3743
|
+
brandId: z138.string(),
|
|
3744
|
+
title: z138.string().optional(),
|
|
3745
|
+
userId: z138.string().optional(),
|
|
3746
|
+
date: z138.coerce.date().optional()
|
|
3747
|
+
});
|
|
3748
|
+
var IntegrationCredentialsType = z138.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
3749
|
+
var IntegrationCredentialsState = z138.enum(["Active", "Inactive"]);
|
|
3750
|
+
var IntegrationCredentialsProfile = z138.object({
|
|
3751
|
+
id: nullishToOptional(z138.string()),
|
|
3752
|
+
email: nullishToOptional(z138.string()),
|
|
3753
|
+
handle: nullishToOptional(z138.string()),
|
|
3754
|
+
type: nullishToOptional(z138.string()),
|
|
3755
|
+
avatarUrl: nullishToOptional(z138.string()),
|
|
3756
|
+
organization: nullishToOptional(z138.string()),
|
|
3757
|
+
collection: nullishToOptional(z138.string())
|
|
3758
|
+
});
|
|
3759
|
+
var IntegrationCredentials = z138.object({
|
|
3760
|
+
id: z138.string(),
|
|
3740
3761
|
type: IntegrationCredentialsType,
|
|
3741
|
-
integrationId:
|
|
3742
|
-
accessToken:
|
|
3743
|
-
userId:
|
|
3744
|
-
createdAt:
|
|
3745
|
-
refreshToken:
|
|
3746
|
-
tokenName:
|
|
3747
|
-
expiresAt:
|
|
3748
|
-
refreshedAt:
|
|
3749
|
-
username:
|
|
3750
|
-
appInstallationId:
|
|
3762
|
+
integrationId: z138.string(),
|
|
3763
|
+
accessToken: z138.string(),
|
|
3764
|
+
userId: z138.string(),
|
|
3765
|
+
createdAt: z138.coerce.date(),
|
|
3766
|
+
refreshToken: z138.string().optional(),
|
|
3767
|
+
tokenName: z138.string().optional(),
|
|
3768
|
+
expiresAt: z138.coerce.date().optional(),
|
|
3769
|
+
refreshedAt: z138.coerce.date().optional(),
|
|
3770
|
+
username: z138.string().optional(),
|
|
3771
|
+
appInstallationId: z138.string().optional(),
|
|
3751
3772
|
profile: IntegrationCredentialsProfile.optional(),
|
|
3752
|
-
customUrl:
|
|
3773
|
+
customUrl: z138.string().optional(),
|
|
3753
3774
|
state: IntegrationCredentialsState,
|
|
3754
3775
|
user: UserMinified.optional()
|
|
3755
3776
|
});
|
|
3756
|
-
var ExtendedIntegrationType =
|
|
3777
|
+
var ExtendedIntegrationType = z138.enum([
|
|
3757
3778
|
"Figma",
|
|
3758
3779
|
"Github",
|
|
3759
3780
|
"Gitlab",
|
|
@@ -3764,26 +3785,26 @@ var ExtendedIntegrationType = z137.enum([
|
|
|
3764
3785
|
]);
|
|
3765
3786
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
3766
3787
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
3767
|
-
var Integration =
|
|
3768
|
-
id:
|
|
3769
|
-
workspaceId:
|
|
3788
|
+
var Integration = z138.object({
|
|
3789
|
+
id: z138.string(),
|
|
3790
|
+
workspaceId: z138.string(),
|
|
3770
3791
|
type: IntegrationType,
|
|
3771
|
-
createdAt:
|
|
3772
|
-
integrationCredentials:
|
|
3773
|
-
});
|
|
3774
|
-
var IntegrationToken =
|
|
3775
|
-
access_token:
|
|
3776
|
-
refresh_token:
|
|
3777
|
-
expires_in:
|
|
3778
|
-
token_type:
|
|
3779
|
-
token_name:
|
|
3780
|
-
token_azure_organization_name:
|
|
3792
|
+
createdAt: z138.coerce.date(),
|
|
3793
|
+
integrationCredentials: z138.array(IntegrationCredentials).optional()
|
|
3794
|
+
});
|
|
3795
|
+
var IntegrationToken = z138.object({
|
|
3796
|
+
access_token: z138.string(),
|
|
3797
|
+
refresh_token: z138.string().optional(),
|
|
3798
|
+
expires_in: z138.union([z138.number().optional(), z138.string().optional()]),
|
|
3799
|
+
token_type: z138.string().optional(),
|
|
3800
|
+
token_name: z138.string().optional(),
|
|
3801
|
+
token_azure_organization_name: z138.string().optional(),
|
|
3781
3802
|
// Azure Cloud PAT only
|
|
3782
|
-
token_azure_collection_name:
|
|
3803
|
+
token_azure_collection_name: z138.string().optional(),
|
|
3783
3804
|
// Azure Server PAT only
|
|
3784
|
-
token_bitbucket_username:
|
|
3805
|
+
token_bitbucket_username: z138.string().optional(),
|
|
3785
3806
|
// Bitbucket only
|
|
3786
|
-
custom_url:
|
|
3807
|
+
custom_url: z138.string().optional().transform((value) => {
|
|
3787
3808
|
if (!value?.trim())
|
|
3788
3809
|
return void 0;
|
|
3789
3810
|
return formatCustomUrl(value);
|
|
@@ -3819,64 +3840,64 @@ function formatCustomUrl(url) {
|
|
|
3819
3840
|
}
|
|
3820
3841
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
3821
3842
|
}
|
|
3822
|
-
var WorkspaceDump =
|
|
3843
|
+
var WorkspaceDump = z139.object({
|
|
3823
3844
|
workspace: Workspace,
|
|
3824
3845
|
designSystems: DesignSystemDump.array(),
|
|
3825
3846
|
codeIntegration: CodeIntegrationDump,
|
|
3826
3847
|
integrations: Integration.array()
|
|
3827
3848
|
});
|
|
3828
|
-
var UserDump =
|
|
3849
|
+
var UserDump = z140.object({
|
|
3829
3850
|
user: User,
|
|
3830
3851
|
workspaces: WorkspaceDump.array()
|
|
3831
3852
|
});
|
|
3832
|
-
var NpmProxyToken =
|
|
3833
|
-
access:
|
|
3834
|
-
expiresAt:
|
|
3853
|
+
var NpmProxyToken = z141.object({
|
|
3854
|
+
access: z141.string(),
|
|
3855
|
+
expiresAt: z141.number()
|
|
3835
3856
|
});
|
|
3836
|
-
var SessionData =
|
|
3837
|
-
returnToUrl:
|
|
3857
|
+
var SessionData = z141.object({
|
|
3858
|
+
returnToUrl: z141.string().optional(),
|
|
3838
3859
|
npmProxyToken: NpmProxyToken.optional()
|
|
3839
3860
|
});
|
|
3840
|
-
var Session =
|
|
3841
|
-
id:
|
|
3842
|
-
expiresAt:
|
|
3843
|
-
userId:
|
|
3861
|
+
var Session = z141.object({
|
|
3862
|
+
id: z141.string(),
|
|
3863
|
+
expiresAt: z141.coerce.date(),
|
|
3864
|
+
userId: z141.string().nullable(),
|
|
3844
3865
|
data: SessionData
|
|
3845
3866
|
});
|
|
3846
|
-
var AuthTokens =
|
|
3847
|
-
access:
|
|
3848
|
-
refresh:
|
|
3867
|
+
var AuthTokens = z141.object({
|
|
3868
|
+
access: z141.string(),
|
|
3869
|
+
refresh: z141.string()
|
|
3849
3870
|
});
|
|
3850
|
-
var UserSession =
|
|
3871
|
+
var UserSession = z141.object({
|
|
3851
3872
|
session: Session,
|
|
3852
3873
|
user: User.nullable()
|
|
3853
3874
|
});
|
|
3854
|
-
var ExportJobDocumentationContext =
|
|
3855
|
-
isSingleVersionDocs:
|
|
3856
|
-
versionSlug:
|
|
3875
|
+
var ExportJobDocumentationContext = z142.object({
|
|
3876
|
+
isSingleVersionDocs: z142.boolean(),
|
|
3877
|
+
versionSlug: z142.string(),
|
|
3857
3878
|
environment: PublishedDocEnvironment
|
|
3858
3879
|
});
|
|
3859
|
-
var ExportJobContext =
|
|
3860
|
-
apiUrl:
|
|
3861
|
-
accessToken:
|
|
3862
|
-
designSystemId:
|
|
3863
|
-
designSystemName:
|
|
3864
|
-
exporterId:
|
|
3865
|
-
versionId:
|
|
3866
|
-
brandId:
|
|
3867
|
-
themeId:
|
|
3868
|
-
exporterName:
|
|
3869
|
-
exporterPackageUrl:
|
|
3880
|
+
var ExportJobContext = z142.object({
|
|
3881
|
+
apiUrl: z142.string(),
|
|
3882
|
+
accessToken: z142.string(),
|
|
3883
|
+
designSystemId: z142.string(),
|
|
3884
|
+
designSystemName: z142.string(),
|
|
3885
|
+
exporterId: z142.string(),
|
|
3886
|
+
versionId: z142.string(),
|
|
3887
|
+
brandId: z142.string().optional(),
|
|
3888
|
+
themeId: z142.string().optional(),
|
|
3889
|
+
exporterName: z142.string(),
|
|
3890
|
+
exporterPackageUrl: z142.string(),
|
|
3870
3891
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
3871
3892
|
documentation: ExportJobDocumentationContext.optional()
|
|
3872
3893
|
});
|
|
3873
|
-
var ExporterFunctionPayload =
|
|
3874
|
-
exportJobId:
|
|
3875
|
-
exportContextId:
|
|
3876
|
-
designSystemId:
|
|
3877
|
-
workspaceId:
|
|
3894
|
+
var ExporterFunctionPayload = z143.object({
|
|
3895
|
+
exportJobId: z143.string(),
|
|
3896
|
+
exportContextId: z143.string(),
|
|
3897
|
+
designSystemId: z143.string(),
|
|
3898
|
+
workspaceId: z143.string()
|
|
3878
3899
|
});
|
|
3879
|
-
var ExportJobDestinationType =
|
|
3900
|
+
var ExportJobDestinationType = z144.enum([
|
|
3880
3901
|
"s3",
|
|
3881
3902
|
"webhookUrl",
|
|
3882
3903
|
"github",
|
|
@@ -3885,30 +3906,30 @@ var ExportJobDestinationType = z143.enum([
|
|
|
3885
3906
|
"gitlab",
|
|
3886
3907
|
"bitbucket"
|
|
3887
3908
|
]);
|
|
3888
|
-
var ExportJobStatus =
|
|
3889
|
-
var ExportJobLogEntryType =
|
|
3890
|
-
var ExportJobLogEntry =
|
|
3891
|
-
id:
|
|
3892
|
-
time:
|
|
3909
|
+
var ExportJobStatus = z144.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
3910
|
+
var ExportJobLogEntryType = z144.enum(["success", "info", "warning", "error", "user"]);
|
|
3911
|
+
var ExportJobLogEntry = z144.object({
|
|
3912
|
+
id: z144.string().optional(),
|
|
3913
|
+
time: z144.coerce.date(),
|
|
3893
3914
|
type: ExportJobLogEntryType,
|
|
3894
|
-
message:
|
|
3915
|
+
message: z144.string()
|
|
3895
3916
|
});
|
|
3896
|
-
var ExportJobPullRequestDestinationResult =
|
|
3897
|
-
pullRequestUrl:
|
|
3917
|
+
var ExportJobPullRequestDestinationResult = z144.object({
|
|
3918
|
+
pullRequestUrl: z144.string()
|
|
3898
3919
|
});
|
|
3899
|
-
var ExportJobS3DestinationResult =
|
|
3900
|
-
bucket:
|
|
3901
|
-
urlPrefix:
|
|
3902
|
-
path:
|
|
3903
|
-
files:
|
|
3904
|
-
url: nullishToOptional(
|
|
3905
|
-
urls: nullishToOptional(
|
|
3920
|
+
var ExportJobS3DestinationResult = z144.object({
|
|
3921
|
+
bucket: z144.string(),
|
|
3922
|
+
urlPrefix: z144.string().optional(),
|
|
3923
|
+
path: z144.string(),
|
|
3924
|
+
files: z144.array(z144.string()),
|
|
3925
|
+
url: nullishToOptional(z144.string()),
|
|
3926
|
+
urls: nullishToOptional(z144.string().array())
|
|
3906
3927
|
});
|
|
3907
|
-
var ExportJobDocsDestinationResult =
|
|
3908
|
-
url:
|
|
3928
|
+
var ExportJobDocsDestinationResult = z144.object({
|
|
3929
|
+
url: z144.string()
|
|
3909
3930
|
});
|
|
3910
|
-
var ExportJobResult =
|
|
3911
|
-
error:
|
|
3931
|
+
var ExportJobResult = z144.object({
|
|
3932
|
+
error: z144.string().optional(),
|
|
3912
3933
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
3913
3934
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
3914
3935
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -3917,21 +3938,21 @@ var ExportJobResult = z143.object({
|
|
|
3917
3938
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
3918
3939
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
3919
3940
|
});
|
|
3920
|
-
var ExportJob =
|
|
3921
|
-
id:
|
|
3922
|
-
createdAt:
|
|
3923
|
-
finishedAt:
|
|
3924
|
-
designSystemId:
|
|
3925
|
-
designSystemVersionId:
|
|
3926
|
-
workspaceId:
|
|
3927
|
-
scheduleId:
|
|
3928
|
-
exporterId:
|
|
3929
|
-
brandId:
|
|
3930
|
-
themeId:
|
|
3931
|
-
estimatedExecutionTime:
|
|
3941
|
+
var ExportJob = z144.object({
|
|
3942
|
+
id: z144.string(),
|
|
3943
|
+
createdAt: z144.coerce.date(),
|
|
3944
|
+
finishedAt: z144.coerce.date().optional(),
|
|
3945
|
+
designSystemId: z144.string(),
|
|
3946
|
+
designSystemVersionId: z144.string(),
|
|
3947
|
+
workspaceId: z144.string(),
|
|
3948
|
+
scheduleId: z144.string().nullish(),
|
|
3949
|
+
exporterId: z144.string(),
|
|
3950
|
+
brandId: z144.string().optional(),
|
|
3951
|
+
themeId: z144.string().optional(),
|
|
3952
|
+
estimatedExecutionTime: z144.number().optional(),
|
|
3932
3953
|
status: ExportJobStatus,
|
|
3933
3954
|
result: ExportJobResult.optional(),
|
|
3934
|
-
createdByUserId:
|
|
3955
|
+
createdByUserId: z144.string().optional(),
|
|
3935
3956
|
// Destinations
|
|
3936
3957
|
...ExportDestinationsMap.shape
|
|
3937
3958
|
});
|
|
@@ -3945,24 +3966,24 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
3945
3966
|
themeId: true,
|
|
3946
3967
|
brandId: true
|
|
3947
3968
|
}).extend({
|
|
3948
|
-
destinations:
|
|
3969
|
+
destinations: z144.array(ExportJobDestinationType),
|
|
3949
3970
|
docsEnvironment: PublishedDocEnvironment
|
|
3950
3971
|
}).partial();
|
|
3951
|
-
var ExporterWorkspaceMembershipRole =
|
|
3952
|
-
var ExporterWorkspaceMembership =
|
|
3953
|
-
id:
|
|
3954
|
-
workspaceId:
|
|
3955
|
-
exporterId:
|
|
3972
|
+
var ExporterWorkspaceMembershipRole = z145.enum(["Owner", "OwnerArchived", "User"]);
|
|
3973
|
+
var ExporterWorkspaceMembership = z146.object({
|
|
3974
|
+
id: z146.string(),
|
|
3975
|
+
workspaceId: z146.string(),
|
|
3976
|
+
exporterId: z146.string(),
|
|
3956
3977
|
role: ExporterWorkspaceMembershipRole
|
|
3957
3978
|
});
|
|
3958
|
-
var FlaggedFeature =
|
|
3959
|
-
var FeatureFlagMap =
|
|
3960
|
-
var FeatureFlag =
|
|
3961
|
-
id:
|
|
3979
|
+
var FlaggedFeature = z147.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter"]);
|
|
3980
|
+
var FeatureFlagMap = z147.record(FlaggedFeature, z147.boolean());
|
|
3981
|
+
var FeatureFlag = z147.object({
|
|
3982
|
+
id: z147.string(),
|
|
3962
3983
|
feature: FlaggedFeature,
|
|
3963
|
-
createdAt:
|
|
3964
|
-
enabled:
|
|
3965
|
-
designSystemId:
|
|
3984
|
+
createdAt: z147.coerce.date(),
|
|
3985
|
+
enabled: z147.boolean(),
|
|
3986
|
+
designSystemId: z147.string().optional()
|
|
3966
3987
|
});
|
|
3967
3988
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
3968
3989
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -3972,173 +3993,173 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
3972
3993
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
3973
3994
|
return OAuthProviderNames2;
|
|
3974
3995
|
})(OAuthProviderNames || {});
|
|
3975
|
-
var OAuthProviderSchema =
|
|
3996
|
+
var OAuthProviderSchema = z148.nativeEnum(OAuthProviderNames);
|
|
3976
3997
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
3977
|
-
var ExternalOAuthRequest =
|
|
3978
|
-
id:
|
|
3998
|
+
var ExternalOAuthRequest = z149.object({
|
|
3999
|
+
id: z149.string(),
|
|
3979
4000
|
provider: OAuthProviderSchema,
|
|
3980
|
-
userId:
|
|
3981
|
-
state:
|
|
3982
|
-
createdAt:
|
|
4001
|
+
userId: z149.string(),
|
|
4002
|
+
state: z149.string(),
|
|
4003
|
+
createdAt: z149.coerce.date()
|
|
3983
4004
|
});
|
|
3984
|
-
var GitObjectsQuery =
|
|
3985
|
-
organization:
|
|
4005
|
+
var GitObjectsQuery = z150.object({
|
|
4006
|
+
organization: z150.string().optional(),
|
|
3986
4007
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
3987
|
-
project:
|
|
4008
|
+
project: z150.string().optional(),
|
|
3988
4009
|
// Only for Bitbucket and Azure
|
|
3989
|
-
repository:
|
|
4010
|
+
repository: z150.string().optional(),
|
|
3990
4011
|
// For all providers. For Gitlab, it's called "project".
|
|
3991
|
-
branch:
|
|
4012
|
+
branch: z150.string().optional(),
|
|
3992
4013
|
// For all providers.
|
|
3993
|
-
user:
|
|
4014
|
+
user: z150.string().optional()
|
|
3994
4015
|
// Gitlab user
|
|
3995
4016
|
});
|
|
3996
|
-
var GitOrganization =
|
|
3997
|
-
id:
|
|
3998
|
-
name:
|
|
3999
|
-
url:
|
|
4000
|
-
slug:
|
|
4017
|
+
var GitOrganization = z150.object({
|
|
4018
|
+
id: z150.string(),
|
|
4019
|
+
name: z150.string(),
|
|
4020
|
+
url: z150.string(),
|
|
4021
|
+
slug: z150.string()
|
|
4001
4022
|
});
|
|
4002
|
-
var GitProject =
|
|
4003
|
-
id:
|
|
4004
|
-
name:
|
|
4005
|
-
url:
|
|
4006
|
-
slug:
|
|
4023
|
+
var GitProject = z150.object({
|
|
4024
|
+
id: z150.string(),
|
|
4025
|
+
name: z150.string(),
|
|
4026
|
+
url: z150.string(),
|
|
4027
|
+
slug: z150.string()
|
|
4007
4028
|
});
|
|
4008
|
-
var GitRepository =
|
|
4009
|
-
id:
|
|
4010
|
-
name:
|
|
4011
|
-
url:
|
|
4012
|
-
slug:
|
|
4029
|
+
var GitRepository = z150.object({
|
|
4030
|
+
id: z150.string(),
|
|
4031
|
+
name: z150.string(),
|
|
4032
|
+
url: z150.string(),
|
|
4033
|
+
slug: z150.string(),
|
|
4013
4034
|
/**
|
|
4014
4035
|
* Can be undefined when:
|
|
4015
4036
|
* - there are no branches in the repository yet
|
|
4016
4037
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4017
4038
|
*/
|
|
4018
|
-
defaultBranch:
|
|
4039
|
+
defaultBranch: z150.string().optional()
|
|
4019
4040
|
});
|
|
4020
|
-
var GitBranch =
|
|
4021
|
-
name:
|
|
4022
|
-
lastCommitId:
|
|
4041
|
+
var GitBranch = z150.object({
|
|
4042
|
+
name: z150.string(),
|
|
4043
|
+
lastCommitId: z150.string()
|
|
4023
4044
|
});
|
|
4024
|
-
var IntegrationTokenSchemaOld =
|
|
4025
|
-
id: z150.string(),
|
|
4026
|
-
provider: OAuthProviderSchema,
|
|
4027
|
-
scope: z150.string(),
|
|
4028
|
-
userId: z150.string(),
|
|
4029
|
-
accessToken: z150.string(),
|
|
4030
|
-
refreshToken: z150.string(),
|
|
4031
|
-
expiresAt: z150.coerce.date(),
|
|
4032
|
-
externalUserId: z150.string().nullish()
|
|
4033
|
-
});
|
|
4034
|
-
var WorkspaceOAuthRequestSchema = z151.object({
|
|
4045
|
+
var IntegrationTokenSchemaOld = z151.object({
|
|
4035
4046
|
id: z151.string(),
|
|
4036
|
-
workspaceId: z151.string(),
|
|
4037
4047
|
provider: OAuthProviderSchema,
|
|
4048
|
+
scope: z151.string(),
|
|
4038
4049
|
userId: z151.string(),
|
|
4039
|
-
|
|
4050
|
+
accessToken: z151.string(),
|
|
4051
|
+
refreshToken: z151.string(),
|
|
4052
|
+
expiresAt: z151.coerce.date(),
|
|
4053
|
+
externalUserId: z151.string().nullish()
|
|
4054
|
+
});
|
|
4055
|
+
var WorkspaceOAuthRequestSchema = z152.object({
|
|
4056
|
+
id: z152.string(),
|
|
4057
|
+
workspaceId: z152.string(),
|
|
4058
|
+
provider: OAuthProviderSchema,
|
|
4059
|
+
userId: z152.string(),
|
|
4060
|
+
createdAt: z152.coerce.date()
|
|
4040
4061
|
});
|
|
4041
|
-
var AnyRecord =
|
|
4062
|
+
var AnyRecord = z153.record(z153.any());
|
|
4042
4063
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4043
|
-
|
|
4044
|
-
tarball:
|
|
4064
|
+
z153.object({
|
|
4065
|
+
tarball: z153.string()
|
|
4045
4066
|
})
|
|
4046
4067
|
);
|
|
4047
4068
|
var NpmPackageVersion = AnyRecord.and(
|
|
4048
|
-
|
|
4069
|
+
z153.object({
|
|
4049
4070
|
dist: NpmPackageVersionDist
|
|
4050
4071
|
})
|
|
4051
4072
|
);
|
|
4052
4073
|
var NpmPackage = AnyRecord.and(
|
|
4053
|
-
|
|
4054
|
-
_id:
|
|
4055
|
-
name:
|
|
4074
|
+
z153.object({
|
|
4075
|
+
_id: z153.string(),
|
|
4076
|
+
name: z153.string(),
|
|
4056
4077
|
// e.g. "latest": "1.2.3"
|
|
4057
|
-
"dist-tags":
|
|
4078
|
+
"dist-tags": z153.record(z153.string(), z153.string()),
|
|
4058
4079
|
// "1.2.3": {...}
|
|
4059
|
-
versions:
|
|
4080
|
+
versions: z153.record(NpmPackageVersion)
|
|
4060
4081
|
})
|
|
4061
4082
|
);
|
|
4062
|
-
var NpmProxyTokenPayload =
|
|
4063
|
-
npmProxyRegistryConfigId:
|
|
4083
|
+
var NpmProxyTokenPayload = z154.object({
|
|
4084
|
+
npmProxyRegistryConfigId: z154.string()
|
|
4064
4085
|
});
|
|
4065
|
-
var WorkspaceRoleSchema =
|
|
4086
|
+
var WorkspaceRoleSchema = z155.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest"]);
|
|
4066
4087
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4067
4088
|
var MAX_MEMBERS_COUNT = 100;
|
|
4068
|
-
var UserInvite =
|
|
4069
|
-
email:
|
|
4089
|
+
var UserInvite = z156.object({
|
|
4090
|
+
email: z156.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4070
4091
|
role: WorkspaceRoleSchema
|
|
4071
4092
|
});
|
|
4072
|
-
var UserInvites =
|
|
4073
|
-
var WorkspaceConfigurationUpdate =
|
|
4074
|
-
id:
|
|
4093
|
+
var UserInvites = z156.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4094
|
+
var WorkspaceConfigurationUpdate = z157.object({
|
|
4095
|
+
id: z157.string(),
|
|
4075
4096
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4076
4097
|
sso: SsoProvider.optional(),
|
|
4077
4098
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4078
4099
|
profile: WorkspaceProfileUpdate.optional()
|
|
4079
4100
|
});
|
|
4080
|
-
var WorkspaceContext =
|
|
4081
|
-
workspaceId:
|
|
4101
|
+
var WorkspaceContext = z158.object({
|
|
4102
|
+
workspaceId: z158.string(),
|
|
4082
4103
|
product: ProductCodeSchema,
|
|
4083
4104
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4084
|
-
publicDesignSystem:
|
|
4105
|
+
publicDesignSystem: z158.boolean().optional()
|
|
4085
4106
|
});
|
|
4086
4107
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4087
4108
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4088
4109
|
var HANDLE_MIN_LENGTH = 2;
|
|
4089
4110
|
var HANDLE_MAX_LENGTH = 64;
|
|
4090
|
-
var CreateWorkspaceInput =
|
|
4091
|
-
name:
|
|
4111
|
+
var CreateWorkspaceInput = z159.object({
|
|
4112
|
+
name: z159.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4092
4113
|
product: ProductCodeSchema,
|
|
4093
|
-
priceId:
|
|
4094
|
-
billingEmail:
|
|
4095
|
-
handle:
|
|
4114
|
+
priceId: z159.string(),
|
|
4115
|
+
billingEmail: z159.string().email().optional(),
|
|
4116
|
+
handle: z159.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
4096
4117
|
invites: UserInvites.optional(),
|
|
4097
|
-
promoCode:
|
|
4118
|
+
promoCode: z159.string().optional(),
|
|
4098
4119
|
status: InternalStatusSchema.optional(),
|
|
4099
4120
|
planInterval: BillingIntervalSchema.optional(),
|
|
4100
|
-
seats:
|
|
4101
|
-
seatLimit:
|
|
4121
|
+
seats: z159.number().optional(),
|
|
4122
|
+
seatLimit: z159.number().optional(),
|
|
4102
4123
|
card: CardSchema.optional(),
|
|
4103
4124
|
sso: SsoProvider.optional(),
|
|
4104
4125
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4105
4126
|
ipWhitelist: WorkspaceIpSettings.optional()
|
|
4106
4127
|
});
|
|
4107
|
-
var WorkspaceInvitation =
|
|
4108
|
-
id: z159.string(),
|
|
4109
|
-
email: z159.string().email(),
|
|
4110
|
-
createdAt: z159.coerce.date(),
|
|
4111
|
-
resentAt: z159.coerce.date().nullish(),
|
|
4112
|
-
role: z159.nativeEnum(WorkspaceRole),
|
|
4113
|
-
workspaceId: z159.string(),
|
|
4114
|
-
invitedBy: z159.string()
|
|
4115
|
-
});
|
|
4116
|
-
var WorkspaceMembership = z160.object({
|
|
4128
|
+
var WorkspaceInvitation = z160.object({
|
|
4117
4129
|
id: z160.string(),
|
|
4118
|
-
|
|
4130
|
+
email: z160.string().email(),
|
|
4131
|
+
createdAt: z160.coerce.date(),
|
|
4132
|
+
resentAt: z160.coerce.date().nullish(),
|
|
4133
|
+
role: z160.nativeEnum(WorkspaceRole),
|
|
4119
4134
|
workspaceId: z160.string(),
|
|
4120
|
-
|
|
4135
|
+
invitedBy: z160.string()
|
|
4136
|
+
});
|
|
4137
|
+
var WorkspaceMembership = z161.object({
|
|
4138
|
+
id: z161.string(),
|
|
4139
|
+
userId: z161.string(),
|
|
4140
|
+
workspaceId: z161.string(),
|
|
4141
|
+
workspaceRole: z161.nativeEnum(WorkspaceRole),
|
|
4121
4142
|
notificationSettings: UserNotificationSettings
|
|
4122
4143
|
});
|
|
4123
|
-
var UpdateMembershipRolesInput =
|
|
4124
|
-
members:
|
|
4125
|
-
|
|
4126
|
-
userId:
|
|
4127
|
-
role:
|
|
4144
|
+
var UpdateMembershipRolesInput = z161.object({
|
|
4145
|
+
members: z161.array(
|
|
4146
|
+
z161.object({
|
|
4147
|
+
userId: z161.string(),
|
|
4148
|
+
role: z161.nativeEnum(WorkspaceRole)
|
|
4128
4149
|
})
|
|
4129
4150
|
)
|
|
4130
4151
|
});
|
|
4131
|
-
var PersonalAccessToken =
|
|
4132
|
-
id:
|
|
4133
|
-
userId:
|
|
4134
|
-
workspaceId:
|
|
4152
|
+
var PersonalAccessToken = z162.object({
|
|
4153
|
+
id: z162.string(),
|
|
4154
|
+
userId: z162.string(),
|
|
4155
|
+
workspaceId: z162.string().optional(),
|
|
4135
4156
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
4136
|
-
name:
|
|
4137
|
-
hidden:
|
|
4138
|
-
token:
|
|
4139
|
-
scope:
|
|
4140
|
-
createdAt:
|
|
4141
|
-
expireAt:
|
|
4157
|
+
name: z162.string(),
|
|
4158
|
+
hidden: z162.boolean(),
|
|
4159
|
+
token: z162.string(),
|
|
4160
|
+
scope: z162.string().optional(),
|
|
4161
|
+
createdAt: z162.coerce.date(),
|
|
4162
|
+
expireAt: z162.coerce.date().optional()
|
|
4142
4163
|
});
|
|
4143
4164
|
|
|
4144
4165
|
// src/api/conversion/documentation/documentation-item-configuration-v2-to-dto.ts
|
|
@@ -4332,10 +4353,11 @@ function documentationPageToStructureDTOV2(page, pagePathMap) {
|
|
|
4332
4353
|
}
|
|
4333
4354
|
|
|
4334
4355
|
// src/api/conversion/documentation/documentation-elements-to-hierarchy-v2-dto.ts
|
|
4335
|
-
function documentationElementsToHierarchyDto(docPages, docGroups, routingVersion) {
|
|
4356
|
+
function documentationElementsToHierarchyDto(docPages, docGroups, publishedPagesSnapshots, routingVersion) {
|
|
4336
4357
|
return {
|
|
4337
4358
|
pages: documentationPagesToStructureDTOV2(docPages, docGroups, routingVersion),
|
|
4338
|
-
groups: elementGroupsToDocumentationGroupStructureDTOV2(docGroups, docPages)
|
|
4359
|
+
groups: elementGroupsToDocumentationGroupStructureDTOV2(docGroups, docPages),
|
|
4360
|
+
publishedPagesSnapshots
|
|
4339
4361
|
};
|
|
4340
4362
|
}
|
|
4341
4363
|
|
|
@@ -4566,219 +4588,219 @@ function integrationCredentialToDto(credential) {
|
|
|
4566
4588
|
}
|
|
4567
4589
|
|
|
4568
4590
|
// src/api/dto/design-systems/brand.ts
|
|
4569
|
-
import { z as
|
|
4570
|
-
var DTOBrand =
|
|
4571
|
-
id:
|
|
4572
|
-
designSystemVersionId:
|
|
4573
|
-
persistentId:
|
|
4591
|
+
import { z as z163 } from "zod";
|
|
4592
|
+
var DTOBrand = z163.object({
|
|
4593
|
+
id: z163.string(),
|
|
4594
|
+
designSystemVersionId: z163.string(),
|
|
4595
|
+
persistentId: z163.string(),
|
|
4574
4596
|
meta: ObjectMeta
|
|
4575
4597
|
});
|
|
4576
|
-
var DTOBrandGetResponse =
|
|
4577
|
-
var DTOBrandCreateResponse =
|
|
4598
|
+
var DTOBrandGetResponse = z163.object({ brand: DTOBrand });
|
|
4599
|
+
var DTOBrandCreateResponse = z163.object({
|
|
4578
4600
|
brand: DTOBrand
|
|
4579
4601
|
});
|
|
4580
|
-
var DTOBrandsListResponse =
|
|
4602
|
+
var DTOBrandsListResponse = z163.object({ brands: z163.array(DTOBrand) });
|
|
4581
4603
|
|
|
4582
4604
|
// src/api/dto/design-systems/data-source.ts
|
|
4583
|
-
import { z as
|
|
4584
|
-
var DTODataSourceFigmaFileVersion =
|
|
4585
|
-
id:
|
|
4586
|
-
created_at:
|
|
4587
|
-
label:
|
|
4588
|
-
description:
|
|
4589
|
-
});
|
|
4590
|
-
var DTODataSourceFigmaCloud =
|
|
4591
|
-
fileId:
|
|
4605
|
+
import { z as z164 } from "zod";
|
|
4606
|
+
var DTODataSourceFigmaFileVersion = z164.object({
|
|
4607
|
+
id: z164.string(),
|
|
4608
|
+
created_at: z164.coerce.date(),
|
|
4609
|
+
label: z164.string(),
|
|
4610
|
+
description: z164.string()
|
|
4611
|
+
});
|
|
4612
|
+
var DTODataSourceFigmaCloud = z164.object({
|
|
4613
|
+
fileId: z164.string(),
|
|
4592
4614
|
state: DataSourceFigmaState,
|
|
4593
4615
|
autoImportMode: DataSourceAutoImportMode,
|
|
4594
|
-
fileThumbnailUrl:
|
|
4616
|
+
fileThumbnailUrl: z164.string().optional(),
|
|
4595
4617
|
lastImportResult: SourceImportSummary.nullish(),
|
|
4596
|
-
lastImportedAt:
|
|
4618
|
+
lastImportedAt: z164.date().nullish(),
|
|
4597
4619
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
4598
|
-
lastUpdatesCheckedAt:
|
|
4599
|
-
ownerId:
|
|
4600
|
-
ownerUserName:
|
|
4601
|
-
preferredCredentialId:
|
|
4620
|
+
lastUpdatesCheckedAt: z164.date().nullish(),
|
|
4621
|
+
ownerId: z164.string(),
|
|
4622
|
+
ownerUserName: z164.string().optional(),
|
|
4623
|
+
preferredCredentialId: z164.string().optional(),
|
|
4602
4624
|
stats: DataSourceStats
|
|
4603
4625
|
});
|
|
4604
|
-
var DTODataSourceFigma =
|
|
4605
|
-
id:
|
|
4606
|
-
type:
|
|
4607
|
-
fileName:
|
|
4626
|
+
var DTODataSourceFigma = z164.object({
|
|
4627
|
+
id: z164.string(),
|
|
4628
|
+
type: z164.literal(DataSourceRemoteType.Enum.Figma),
|
|
4629
|
+
fileName: z164.string(),
|
|
4608
4630
|
scope: DataSourceFigmaScope,
|
|
4609
|
-
brandId:
|
|
4610
|
-
themeId:
|
|
4631
|
+
brandId: z164.string(),
|
|
4632
|
+
themeId: z164.string().nullish(),
|
|
4611
4633
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
4612
|
-
tokenStudio:
|
|
4613
|
-
upload:
|
|
4614
|
-
figmaVariablesPlugin:
|
|
4615
|
-
});
|
|
4616
|
-
var DTODataSourceTokenStudio =
|
|
4617
|
-
id:
|
|
4618
|
-
type:
|
|
4619
|
-
fileName:
|
|
4620
|
-
brandId:
|
|
4621
|
-
themeId:
|
|
4622
|
-
cloud:
|
|
4623
|
-
tokenStudio:
|
|
4624
|
-
settings:
|
|
4625
|
-
dryRun:
|
|
4626
|
-
verbose:
|
|
4627
|
-
preciseCopy:
|
|
4634
|
+
tokenStudio: z164.literal(null),
|
|
4635
|
+
upload: z164.literal(null),
|
|
4636
|
+
figmaVariablesPlugin: z164.literal(null)
|
|
4637
|
+
});
|
|
4638
|
+
var DTODataSourceTokenStudio = z164.object({
|
|
4639
|
+
id: z164.string(),
|
|
4640
|
+
type: z164.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
4641
|
+
fileName: z164.string(),
|
|
4642
|
+
brandId: z164.string(),
|
|
4643
|
+
themeId: z164.string().nullish(),
|
|
4644
|
+
cloud: z164.literal(null),
|
|
4645
|
+
tokenStudio: z164.object({
|
|
4646
|
+
settings: z164.object({
|
|
4647
|
+
dryRun: z164.boolean(),
|
|
4648
|
+
verbose: z164.boolean(),
|
|
4649
|
+
preciseCopy: z164.boolean()
|
|
4628
4650
|
}),
|
|
4629
|
-
connectionName:
|
|
4630
|
-
lastImportedAt:
|
|
4631
|
-
lastImportedResults:
|
|
4632
|
-
|
|
4633
|
-
mapping:
|
|
4634
|
-
tokenSets:
|
|
4635
|
-
supernovaBrand:
|
|
4636
|
-
supernovaTheme:
|
|
4651
|
+
connectionName: z164.string(),
|
|
4652
|
+
lastImportedAt: z164.date(),
|
|
4653
|
+
lastImportedResults: z164.array(
|
|
4654
|
+
z164.object({
|
|
4655
|
+
mapping: z164.object({
|
|
4656
|
+
tokenSets: z164.array(z164.string()),
|
|
4657
|
+
supernovaBrand: z164.string(),
|
|
4658
|
+
supernovaTheme: z164.string().optional()
|
|
4637
4659
|
}),
|
|
4638
|
-
isFailed:
|
|
4639
|
-
tokensCreated:
|
|
4640
|
-
tokensDeleted:
|
|
4641
|
-
tokensUpdated:
|
|
4660
|
+
isFailed: z164.boolean(),
|
|
4661
|
+
tokensCreated: z164.number(),
|
|
4662
|
+
tokensDeleted: z164.number(),
|
|
4663
|
+
tokensUpdated: z164.number()
|
|
4642
4664
|
})
|
|
4643
4665
|
)
|
|
4644
4666
|
}),
|
|
4645
|
-
upload:
|
|
4646
|
-
figmaVariablesPlugin:
|
|
4647
|
-
});
|
|
4648
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
4649
|
-
id:
|
|
4650
|
-
type:
|
|
4651
|
-
fileName:
|
|
4652
|
-
brandId:
|
|
4653
|
-
themeId:
|
|
4654
|
-
cloud:
|
|
4655
|
-
tokenStudio:
|
|
4656
|
-
upload:
|
|
4657
|
-
remoteId:
|
|
4667
|
+
upload: z164.literal(null),
|
|
4668
|
+
figmaVariablesPlugin: z164.literal(null)
|
|
4669
|
+
});
|
|
4670
|
+
var DTODataSourceFigmaVariablesPlugin = z164.object({
|
|
4671
|
+
id: z164.string(),
|
|
4672
|
+
type: z164.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
4673
|
+
fileName: z164.string(),
|
|
4674
|
+
brandId: z164.string(),
|
|
4675
|
+
themeId: z164.literal(null),
|
|
4676
|
+
cloud: z164.literal(null),
|
|
4677
|
+
tokenStudio: z164.literal(null),
|
|
4678
|
+
upload: z164.object({
|
|
4679
|
+
remoteId: z164.string(),
|
|
4658
4680
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
4659
|
-
lastImportedAt:
|
|
4681
|
+
lastImportedAt: z164.date().optional(),
|
|
4660
4682
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
4661
4683
|
}),
|
|
4662
|
-
figmaVariablesPlugin:
|
|
4663
|
-
fileId:
|
|
4664
|
-
lastImportedAt:
|
|
4684
|
+
figmaVariablesPlugin: z164.object({
|
|
4685
|
+
fileId: z164.string(),
|
|
4686
|
+
lastImportedAt: z164.date().optional(),
|
|
4665
4687
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
4666
4688
|
})
|
|
4667
4689
|
});
|
|
4668
|
-
var DTODataSource =
|
|
4690
|
+
var DTODataSource = z164.discriminatedUnion("type", [
|
|
4669
4691
|
DTODataSourceFigma,
|
|
4670
4692
|
DTODataSourceFigmaVariablesPlugin,
|
|
4671
4693
|
DTODataSourceTokenStudio
|
|
4672
4694
|
]);
|
|
4673
|
-
var DTODataSourcesListResponse =
|
|
4674
|
-
sources:
|
|
4695
|
+
var DTODataSourcesListResponse = z164.object({
|
|
4696
|
+
sources: z164.array(DTODataSource)
|
|
4675
4697
|
});
|
|
4676
|
-
var DTODataSourceCreationResponse =
|
|
4698
|
+
var DTODataSourceCreationResponse = z164.object({
|
|
4677
4699
|
source: DTODataSource
|
|
4678
4700
|
});
|
|
4679
4701
|
|
|
4680
4702
|
// src/api/dto/design-systems/design-system.ts
|
|
4681
|
-
import { z as
|
|
4703
|
+
import { z as z165 } from "zod";
|
|
4682
4704
|
var DTODesignSystem = DesignSystem.omit({
|
|
4683
4705
|
name: true,
|
|
4684
4706
|
description: true,
|
|
4685
4707
|
docExporterId: true
|
|
4686
4708
|
}).extend({
|
|
4687
4709
|
meta: ObjectMeta,
|
|
4688
|
-
docExporterId:
|
|
4710
|
+
docExporterId: z165.string()
|
|
4689
4711
|
});
|
|
4690
4712
|
|
|
4691
4713
|
// src/api/dto/design-systems/exporter-property.ts
|
|
4692
|
-
import { z as
|
|
4693
|
-
var DTOExporterProperty =
|
|
4694
|
-
var DTOExporterPropertyListResponse =
|
|
4714
|
+
import { z as z166 } from "zod";
|
|
4715
|
+
var DTOExporterProperty = z166.any({});
|
|
4716
|
+
var DTOExporterPropertyListResponse = z166.object({ items: z166.array(DTOExporterProperty) });
|
|
4695
4717
|
|
|
4696
4718
|
// src/api/dto/design-systems/version.ts
|
|
4697
|
-
import { z as
|
|
4719
|
+
import { z as z175 } from "zod";
|
|
4698
4720
|
|
|
4699
4721
|
// src/api/payloads/design-systems/brand.ts
|
|
4700
|
-
import { z as
|
|
4701
|
-
var DTOCreateBrandInput =
|
|
4702
|
-
persistentId:
|
|
4703
|
-
meta:
|
|
4704
|
-
name:
|
|
4705
|
-
description:
|
|
4722
|
+
import { z as z167 } from "zod";
|
|
4723
|
+
var DTOCreateBrandInput = z167.object({
|
|
4724
|
+
persistentId: z167.string().uuid(),
|
|
4725
|
+
meta: z167.object({
|
|
4726
|
+
name: z167.string(),
|
|
4727
|
+
description: z167.string()
|
|
4706
4728
|
})
|
|
4707
4729
|
});
|
|
4708
4730
|
|
|
4709
4731
|
// src/api/payloads/design-systems/version.ts
|
|
4710
|
-
import { z as
|
|
4711
|
-
var ObjectMeta2 =
|
|
4712
|
-
name:
|
|
4713
|
-
description:
|
|
4732
|
+
import { z as z168 } from "zod";
|
|
4733
|
+
var ObjectMeta2 = z168.object({
|
|
4734
|
+
name: z168.string().max(150).optional(),
|
|
4735
|
+
description: z168.string().max(2e3).optional()
|
|
4714
4736
|
});
|
|
4715
4737
|
function validateDesignSystemVersion(version) {
|
|
4716
4738
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
4717
4739
|
return urlCompliantRegex.test(version);
|
|
4718
4740
|
}
|
|
4719
|
-
var DTOCreateVersionInput =
|
|
4741
|
+
var DTOCreateVersionInput = z168.object({
|
|
4720
4742
|
meta: ObjectMeta2,
|
|
4721
|
-
version:
|
|
4743
|
+
version: z168.string().refine(validateDesignSystemVersion, {
|
|
4722
4744
|
message: "Invalid semantic versioning format"
|
|
4723
4745
|
}),
|
|
4724
|
-
changeLog:
|
|
4746
|
+
changeLog: z168.string().optional()
|
|
4725
4747
|
});
|
|
4726
|
-
var DTOUpdateVersionInput =
|
|
4748
|
+
var DTOUpdateVersionInput = z168.object({
|
|
4727
4749
|
meta: ObjectMeta2,
|
|
4728
|
-
version:
|
|
4750
|
+
version: z168.string(),
|
|
4729
4751
|
// required for PUT, but not editable
|
|
4730
|
-
changeLog:
|
|
4752
|
+
changeLog: z168.string()
|
|
4731
4753
|
});
|
|
4732
4754
|
|
|
4733
4755
|
// src/api/payloads/documentation/block-definitions.ts
|
|
4734
|
-
import { z as
|
|
4735
|
-
var DTOGetBlockDefinitionsOutput =
|
|
4736
|
-
definitions:
|
|
4756
|
+
import { z as z169 } from "zod";
|
|
4757
|
+
var DTOGetBlockDefinitionsOutput = z169.object({
|
|
4758
|
+
definitions: z169.array(PageBlockDefinition)
|
|
4737
4759
|
});
|
|
4738
4760
|
|
|
4739
4761
|
// src/api/payloads/export/pipeline.ts
|
|
4740
|
-
import { z as
|
|
4741
|
-
var DTOPipelineCreateBody =
|
|
4742
|
-
name:
|
|
4743
|
-
exporterId:
|
|
4744
|
-
designSystemId:
|
|
4745
|
-
isEnabled:
|
|
4762
|
+
import { z as z170 } from "zod";
|
|
4763
|
+
var DTOPipelineCreateBody = z170.object({
|
|
4764
|
+
name: z170.string(),
|
|
4765
|
+
exporterId: z170.string(),
|
|
4766
|
+
designSystemId: z170.string(),
|
|
4767
|
+
isEnabled: z170.boolean(),
|
|
4746
4768
|
eventType: PipelineEventType,
|
|
4747
|
-
brandPersistentId:
|
|
4748
|
-
themePersistentId:
|
|
4769
|
+
brandPersistentId: z170.string().optional(),
|
|
4770
|
+
themePersistentId: z170.string().optional(),
|
|
4749
4771
|
destination: PipelineDestinationType.optional(),
|
|
4750
4772
|
gitQuery: GitObjectsQuery,
|
|
4751
|
-
destinations:
|
|
4773
|
+
destinations: z170.object({
|
|
4752
4774
|
s3: ExporterDestinationS3.nullish(),
|
|
4753
4775
|
azure: ExporterDestinationAzure.nullish(),
|
|
4754
4776
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
4755
4777
|
github: ExporterDestinationGithub.nullish(),
|
|
4756
4778
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
4757
4779
|
documentation: ExporterDestinationDocs.nullish(),
|
|
4758
|
-
webhookUrl:
|
|
4780
|
+
webhookUrl: z170.string().nullish()
|
|
4759
4781
|
})
|
|
4760
4782
|
});
|
|
4761
4783
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
4762
|
-
id:
|
|
4784
|
+
id: z170.string()
|
|
4763
4785
|
});
|
|
4764
|
-
var DTOPipelineTriggerBody =
|
|
4765
|
-
designSystemVersionId:
|
|
4786
|
+
var DTOPipelineTriggerBody = z170.object({
|
|
4787
|
+
designSystemVersionId: z170.string()
|
|
4766
4788
|
});
|
|
4767
4789
|
|
|
4768
4790
|
// src/api/payloads/liveblocks/auth.ts
|
|
4769
|
-
import { z as
|
|
4770
|
-
var DTOLiveblocksAuthRequest =
|
|
4771
|
-
room:
|
|
4791
|
+
import { z as z171 } from "zod";
|
|
4792
|
+
var DTOLiveblocksAuthRequest = z171.object({
|
|
4793
|
+
room: z171.string().optional()
|
|
4772
4794
|
});
|
|
4773
4795
|
|
|
4774
4796
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
4775
|
-
import { z as
|
|
4776
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
4797
|
+
import { z as z172 } from "zod";
|
|
4798
|
+
var DTOUpdateUserNotificationSettingsPayload = z172.object({
|
|
4777
4799
|
notificationSettings: UserNotificationSettings
|
|
4778
4800
|
});
|
|
4779
|
-
var DTOUserNotificationSettingsResponse =
|
|
4780
|
-
userId:
|
|
4781
|
-
workspaceId:
|
|
4801
|
+
var DTOUserNotificationSettingsResponse = z172.object({
|
|
4802
|
+
userId: z172.string(),
|
|
4803
|
+
workspaceId: z172.string(),
|
|
4782
4804
|
notificationSettings: UserNotificationSettings
|
|
4783
4805
|
});
|
|
4784
4806
|
|
|
@@ -4786,7 +4808,7 @@ var DTOUserNotificationSettingsResponse = z171.object({
|
|
|
4786
4808
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
4787
4809
|
|
|
4788
4810
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
4789
|
-
import { z as
|
|
4811
|
+
import { z as z173 } from "zod";
|
|
4790
4812
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
4791
4813
|
function validateSsoPayload(ssoPayload) {
|
|
4792
4814
|
const keys = [];
|
|
@@ -4809,21 +4831,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
4809
4831
|
keys
|
|
4810
4832
|
};
|
|
4811
4833
|
}
|
|
4812
|
-
var NpmRegistryInput =
|
|
4813
|
-
enabledScopes:
|
|
4814
|
-
customRegistryUrl:
|
|
4815
|
-
bypassProxy:
|
|
4816
|
-
npmProxyRegistryConfigId:
|
|
4817
|
-
npmProxyVersion:
|
|
4818
|
-
registryType:
|
|
4819
|
-
authType:
|
|
4820
|
-
authHeaderName:
|
|
4821
|
-
authHeaderValue:
|
|
4822
|
-
accessToken:
|
|
4823
|
-
username:
|
|
4824
|
-
password:
|
|
4825
|
-
});
|
|
4826
|
-
var WorkspaceConfigurationPayload =
|
|
4834
|
+
var NpmRegistryInput = z173.object({
|
|
4835
|
+
enabledScopes: z173.array(z173.string()),
|
|
4836
|
+
customRegistryUrl: z173.string().optional(),
|
|
4837
|
+
bypassProxy: z173.boolean().optional(),
|
|
4838
|
+
npmProxyRegistryConfigId: z173.string().optional(),
|
|
4839
|
+
npmProxyVersion: z173.number().optional(),
|
|
4840
|
+
registryType: z173.string(),
|
|
4841
|
+
authType: z173.string(),
|
|
4842
|
+
authHeaderName: z173.string(),
|
|
4843
|
+
authHeaderValue: z173.string(),
|
|
4844
|
+
accessToken: z173.string(),
|
|
4845
|
+
username: z173.string(),
|
|
4846
|
+
password: z173.string()
|
|
4847
|
+
});
|
|
4848
|
+
var WorkspaceConfigurationPayload = z173.object({
|
|
4827
4849
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
4828
4850
|
sso: SsoProvider.partial().optional(),
|
|
4829
4851
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -4831,130 +4853,130 @@ var WorkspaceConfigurationPayload = z172.object({
|
|
|
4831
4853
|
});
|
|
4832
4854
|
|
|
4833
4855
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
4834
|
-
import { z as
|
|
4835
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
4856
|
+
import { z as z174 } from "zod";
|
|
4857
|
+
var DTOWorkspaceIntegrationOauthInput = z174.object({
|
|
4836
4858
|
type: IntegrationType
|
|
4837
4859
|
});
|
|
4838
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
4839
|
-
userId:
|
|
4860
|
+
var DTOWorkspaceIntegrationPATInput = z174.object({
|
|
4861
|
+
userId: z174.string(),
|
|
4840
4862
|
type: IntegrationType,
|
|
4841
4863
|
token: IntegrationToken
|
|
4842
4864
|
});
|
|
4843
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
4844
|
-
organization:
|
|
4865
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z174.object({
|
|
4866
|
+
organization: z174.string().optional(),
|
|
4845
4867
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
4846
|
-
project:
|
|
4868
|
+
project: z174.string().optional(),
|
|
4847
4869
|
// Only for Bitbucket and Azure
|
|
4848
|
-
repository:
|
|
4870
|
+
repository: z174.string().optional(),
|
|
4849
4871
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
4850
|
-
branch:
|
|
4872
|
+
branch: z174.string().optional(),
|
|
4851
4873
|
// For all providers, useful for PR creations.
|
|
4852
|
-
user:
|
|
4874
|
+
user: z174.string().optional()
|
|
4853
4875
|
// Only for Gitlab User Repositories
|
|
4854
4876
|
});
|
|
4855
4877
|
|
|
4856
4878
|
// src/api/dto/design-systems/version.ts
|
|
4857
|
-
var DTODesignSystemVersion =
|
|
4858
|
-
id:
|
|
4859
|
-
createdAt:
|
|
4879
|
+
var DTODesignSystemVersion = z175.object({
|
|
4880
|
+
id: z175.string(),
|
|
4881
|
+
createdAt: z175.date(),
|
|
4860
4882
|
meta: ObjectMeta,
|
|
4861
|
-
version:
|
|
4862
|
-
isReadonly:
|
|
4863
|
-
changeLog:
|
|
4864
|
-
designSystemId:
|
|
4883
|
+
version: z175.string(),
|
|
4884
|
+
isReadonly: z175.boolean(),
|
|
4885
|
+
changeLog: z175.string(),
|
|
4886
|
+
designSystemId: z175.string()
|
|
4865
4887
|
});
|
|
4866
|
-
var DTODesignSystemVersionsListResponse =
|
|
4867
|
-
designSystemVersions:
|
|
4888
|
+
var DTODesignSystemVersionsListResponse = z175.object({
|
|
4889
|
+
designSystemVersions: z175.array(DTODesignSystemVersion)
|
|
4868
4890
|
});
|
|
4869
|
-
var DTODesignSystemVersionGetResponse =
|
|
4891
|
+
var DTODesignSystemVersionGetResponse = z175.object({
|
|
4870
4892
|
designSystemVersion: DTODesignSystemVersion
|
|
4871
4893
|
});
|
|
4872
|
-
var DTODesignSystemVersionCreationResponse =
|
|
4894
|
+
var DTODesignSystemVersionCreationResponse = z175.object({
|
|
4873
4895
|
meta: ObjectMeta,
|
|
4874
|
-
version:
|
|
4875
|
-
changeLog:
|
|
4876
|
-
isReadOnly:
|
|
4877
|
-
designSystemId:
|
|
4878
|
-
jobId:
|
|
4879
|
-
});
|
|
4880
|
-
var VersionSQSPayload =
|
|
4881
|
-
jobId:
|
|
4882
|
-
designSystemId:
|
|
4896
|
+
version: z175.string(),
|
|
4897
|
+
changeLog: z175.string(),
|
|
4898
|
+
isReadOnly: z175.boolean(),
|
|
4899
|
+
designSystemId: z175.string(),
|
|
4900
|
+
jobId: z175.string()
|
|
4901
|
+
});
|
|
4902
|
+
var VersionSQSPayload = z175.object({
|
|
4903
|
+
jobId: z175.string(),
|
|
4904
|
+
designSystemId: z175.string(),
|
|
4883
4905
|
input: DTOCreateVersionInput
|
|
4884
4906
|
});
|
|
4885
|
-
var DTODesignSystemVersionJobsResponse =
|
|
4886
|
-
jobs:
|
|
4907
|
+
var DTODesignSystemVersionJobsResponse = z175.object({
|
|
4908
|
+
jobs: z175.array(VersionCreationJob)
|
|
4887
4909
|
});
|
|
4888
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
4910
|
+
var DTODesignSystemVersionJobStatusResponse = z175.object({
|
|
4889
4911
|
job: VersionCreationJob
|
|
4890
4912
|
});
|
|
4891
4913
|
|
|
4892
4914
|
// src/api/dto/design-systems/view.ts
|
|
4893
|
-
import { z as
|
|
4894
|
-
var DTOElementViewColumnSharedAttributes =
|
|
4895
|
-
id:
|
|
4896
|
-
persistentId:
|
|
4897
|
-
width:
|
|
4915
|
+
import { z as z176 } from "zod";
|
|
4916
|
+
var DTOElementViewColumnSharedAttributes = z176.object({
|
|
4917
|
+
id: z176.string(),
|
|
4918
|
+
persistentId: z176.string(),
|
|
4919
|
+
width: z176.number()
|
|
4898
4920
|
});
|
|
4899
4921
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4900
|
-
type:
|
|
4922
|
+
type: z176.literal("BaseProperty"),
|
|
4901
4923
|
basePropertyType: ElementViewBaseColumnType
|
|
4902
4924
|
});
|
|
4903
4925
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4904
|
-
type:
|
|
4905
|
-
propertyDefinitionId:
|
|
4926
|
+
type: z176.literal("PropertyDefinition"),
|
|
4927
|
+
propertyDefinitionId: z176.string()
|
|
4906
4928
|
});
|
|
4907
4929
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
4908
|
-
type:
|
|
4909
|
-
themeId:
|
|
4930
|
+
type: z176.literal("Theme"),
|
|
4931
|
+
themeId: z176.string()
|
|
4910
4932
|
});
|
|
4911
|
-
var DTOElementViewColumn =
|
|
4933
|
+
var DTOElementViewColumn = z176.discriminatedUnion("type", [
|
|
4912
4934
|
DTOElementViewBasePropertyColumn,
|
|
4913
4935
|
DTOElementViewPropertyDefinitionColumn,
|
|
4914
4936
|
DTOElementViewThemeColumn
|
|
4915
4937
|
]);
|
|
4916
|
-
var DTOElementView =
|
|
4938
|
+
var DTOElementView = z176.object({
|
|
4917
4939
|
meta: ObjectMeta,
|
|
4918
|
-
persistentId:
|
|
4940
|
+
persistentId: z176.string(),
|
|
4919
4941
|
targetElementType: ElementPropertyTargetType,
|
|
4920
|
-
id:
|
|
4921
|
-
isDefault:
|
|
4922
|
-
columns:
|
|
4942
|
+
id: z176.string(),
|
|
4943
|
+
isDefault: z176.boolean(),
|
|
4944
|
+
columns: z176.array(DTOElementViewColumn)
|
|
4923
4945
|
});
|
|
4924
|
-
var DTOElementViewsListResponse =
|
|
4925
|
-
elementDataViews:
|
|
4946
|
+
var DTOElementViewsListResponse = z176.object({
|
|
4947
|
+
elementDataViews: z176.array(DTOElementView)
|
|
4926
4948
|
});
|
|
4927
4949
|
|
|
4928
4950
|
// src/api/dto/documentation/anchor.ts
|
|
4929
|
-
import { z as
|
|
4951
|
+
import { z as z177 } from "zod";
|
|
4930
4952
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
4931
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
4932
|
-
anchors:
|
|
4953
|
+
var DTOGetDocumentationPageAnchorsResponse = z177.object({
|
|
4954
|
+
anchors: z177.array(DTODocumentationPageAnchor)
|
|
4933
4955
|
});
|
|
4934
4956
|
|
|
4935
4957
|
// src/api/dto/documentation/link-preview.ts
|
|
4936
|
-
import { z as
|
|
4937
|
-
var DTODocumentationLinkPreviewResponse =
|
|
4958
|
+
import { z as z178 } from "zod";
|
|
4959
|
+
var DTODocumentationLinkPreviewResponse = z178.object({
|
|
4938
4960
|
linkPreview: DocumentationLinkPreview
|
|
4939
4961
|
});
|
|
4940
|
-
var DTODocumentationLinkPreviewRequest =
|
|
4941
|
-
url:
|
|
4942
|
-
documentationItemPersistentId:
|
|
4962
|
+
var DTODocumentationLinkPreviewRequest = z178.object({
|
|
4963
|
+
url: z178.string().optional(),
|
|
4964
|
+
documentationItemPersistentId: z178.string().optional()
|
|
4943
4965
|
});
|
|
4944
4966
|
|
|
4945
4967
|
// src/api/dto/elements/documentation/group-action.ts
|
|
4946
|
-
import { z as
|
|
4968
|
+
import { z as z181 } from "zod";
|
|
4947
4969
|
|
|
4948
4970
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
4949
|
-
import { z as
|
|
4971
|
+
import { z as z180 } from "zod";
|
|
4950
4972
|
|
|
4951
4973
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
4952
|
-
import { z as
|
|
4974
|
+
import { z as z179 } from "zod";
|
|
4953
4975
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
4954
|
-
var DTODocumentationItemConfigurationV2 =
|
|
4955
|
-
showSidebar:
|
|
4956
|
-
isPrivate:
|
|
4957
|
-
isHidden:
|
|
4976
|
+
var DTODocumentationItemConfigurationV2 = z179.object({
|
|
4977
|
+
showSidebar: z179.boolean(),
|
|
4978
|
+
isPrivate: z179.boolean(),
|
|
4979
|
+
isHidden: z179.boolean(),
|
|
4958
4980
|
header: DTODocumentationItemHeaderV2
|
|
4959
4981
|
});
|
|
4960
4982
|
|
|
@@ -4968,136 +4990,136 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
4968
4990
|
data: true,
|
|
4969
4991
|
shortPersistentId: true
|
|
4970
4992
|
}).extend({
|
|
4971
|
-
title:
|
|
4972
|
-
isRoot:
|
|
4973
|
-
childrenIds:
|
|
4993
|
+
title: z180.string(),
|
|
4994
|
+
isRoot: z180.boolean(),
|
|
4995
|
+
childrenIds: z180.array(z180.string()),
|
|
4974
4996
|
groupBehavior: DocumentationGroupBehavior,
|
|
4975
|
-
shortPersistentId:
|
|
4997
|
+
shortPersistentId: z180.string(),
|
|
4976
4998
|
configuration: DTODocumentationItemConfigurationV2,
|
|
4977
|
-
type:
|
|
4999
|
+
type: z180.literal("Group")
|
|
4978
5000
|
});
|
|
4979
5001
|
var DTODocumentationGroupStructureV2 = DTODocumentationGroupV2;
|
|
4980
|
-
var DTOCreateDocumentationGroupInput =
|
|
5002
|
+
var DTOCreateDocumentationGroupInput = z180.object({
|
|
4981
5003
|
// Identifier
|
|
4982
|
-
persistentId:
|
|
5004
|
+
persistentId: z180.string().uuid(),
|
|
4983
5005
|
// Group properties
|
|
4984
|
-
title:
|
|
5006
|
+
title: z180.string(),
|
|
4985
5007
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
4986
5008
|
// Group placement properties
|
|
4987
|
-
afterPersistentId:
|
|
4988
|
-
parentPersistentId:
|
|
5009
|
+
afterPersistentId: z180.string().uuid().nullish(),
|
|
5010
|
+
parentPersistentId: z180.string().uuid()
|
|
4989
5011
|
});
|
|
4990
|
-
var DTOUpdateDocumentationGroupInput =
|
|
5012
|
+
var DTOUpdateDocumentationGroupInput = z180.object({
|
|
4991
5013
|
// Identifier of the group to update
|
|
4992
|
-
id:
|
|
5014
|
+
id: z180.string(),
|
|
4993
5015
|
// Group properties
|
|
4994
|
-
title:
|
|
5016
|
+
title: z180.string().optional(),
|
|
4995
5017
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
4996
5018
|
});
|
|
4997
|
-
var DTOMoveDocumentationGroupInput =
|
|
5019
|
+
var DTOMoveDocumentationGroupInput = z180.object({
|
|
4998
5020
|
// Identifier of the group to update
|
|
4999
|
-
id:
|
|
5021
|
+
id: z180.string(),
|
|
5000
5022
|
// Group placement properties
|
|
5001
|
-
parentPersistentId:
|
|
5002
|
-
afterPersistentId:
|
|
5023
|
+
parentPersistentId: z180.string().uuid(),
|
|
5024
|
+
afterPersistentId: z180.string().uuid().nullish()
|
|
5003
5025
|
});
|
|
5004
|
-
var DTODuplicateDocumentationGroupInput =
|
|
5026
|
+
var DTODuplicateDocumentationGroupInput = z180.object({
|
|
5005
5027
|
// Identifier of the group to duplicate from
|
|
5006
|
-
id:
|
|
5028
|
+
id: z180.string(),
|
|
5007
5029
|
// New group persistent id
|
|
5008
|
-
persistentId:
|
|
5030
|
+
persistentId: z180.string().uuid(),
|
|
5009
5031
|
// Group placement properties
|
|
5010
|
-
afterPersistentId:
|
|
5011
|
-
parentPersistentId:
|
|
5032
|
+
afterPersistentId: z180.string().uuid().nullish(),
|
|
5033
|
+
parentPersistentId: z180.string().uuid()
|
|
5012
5034
|
});
|
|
5013
|
-
var DTOCreateDocumentationTabInput =
|
|
5035
|
+
var DTOCreateDocumentationTabInput = z180.object({
|
|
5014
5036
|
// New group persistent id
|
|
5015
|
-
persistentId:
|
|
5037
|
+
persistentId: z180.string().uuid(),
|
|
5016
5038
|
// If this is page, we will attempt to convert it to tab
|
|
5017
5039
|
// If this is tab group, we will add a new tab to it
|
|
5018
|
-
fromItemPersistentId:
|
|
5019
|
-
tabName:
|
|
5040
|
+
fromItemPersistentId: z180.string(),
|
|
5041
|
+
tabName: z180.string()
|
|
5020
5042
|
});
|
|
5021
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
5043
|
+
var DTODeleteDocumentationTabGroupInput = z180.object({
|
|
5022
5044
|
// Deleted group id
|
|
5023
|
-
id:
|
|
5045
|
+
id: z180.string()
|
|
5024
5046
|
});
|
|
5025
|
-
var DTODeleteDocumentationGroupInput =
|
|
5047
|
+
var DTODeleteDocumentationGroupInput = z180.object({
|
|
5026
5048
|
// Identifier
|
|
5027
|
-
id:
|
|
5049
|
+
id: z180.string(),
|
|
5028
5050
|
// Deletion options
|
|
5029
|
-
deleteSubtree:
|
|
5051
|
+
deleteSubtree: z180.boolean().default(false)
|
|
5030
5052
|
});
|
|
5031
5053
|
|
|
5032
5054
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5033
|
-
var SuccessPayload =
|
|
5034
|
-
success:
|
|
5055
|
+
var SuccessPayload = z181.object({
|
|
5056
|
+
success: z181.literal(true)
|
|
5035
5057
|
});
|
|
5036
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
5037
|
-
type:
|
|
5058
|
+
var DTODocumentationGroupCreateActionOutputV2 = z181.object({
|
|
5059
|
+
type: z181.literal("DocumentationGroupCreate"),
|
|
5038
5060
|
output: SuccessPayload
|
|
5039
5061
|
});
|
|
5040
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
5041
|
-
type:
|
|
5062
|
+
var DTODocumentationTabCreateActionOutputV2 = z181.object({
|
|
5063
|
+
type: z181.literal("DocumentationTabCreate"),
|
|
5042
5064
|
output: SuccessPayload
|
|
5043
5065
|
});
|
|
5044
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
5045
|
-
type:
|
|
5066
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z181.object({
|
|
5067
|
+
type: z181.literal("DocumentationGroupUpdate"),
|
|
5046
5068
|
output: SuccessPayload
|
|
5047
5069
|
});
|
|
5048
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
5049
|
-
type:
|
|
5070
|
+
var DTODocumentationGroupMoveActionOutputV2 = z181.object({
|
|
5071
|
+
type: z181.literal("DocumentationGroupMove"),
|
|
5050
5072
|
output: SuccessPayload
|
|
5051
5073
|
});
|
|
5052
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
5053
|
-
type:
|
|
5074
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z181.object({
|
|
5075
|
+
type: z181.literal("DocumentationGroupDuplicate"),
|
|
5054
5076
|
output: SuccessPayload
|
|
5055
5077
|
});
|
|
5056
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
5057
|
-
type:
|
|
5078
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z181.object({
|
|
5079
|
+
type: z181.literal("DocumentationGroupDelete"),
|
|
5058
5080
|
output: SuccessPayload
|
|
5059
5081
|
});
|
|
5060
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
5061
|
-
type:
|
|
5082
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z181.object({
|
|
5083
|
+
type: z181.literal("DocumentationTabGroupDelete"),
|
|
5062
5084
|
output: SuccessPayload
|
|
5063
5085
|
});
|
|
5064
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
5065
|
-
type:
|
|
5086
|
+
var DTODocumentationGroupCreateActionInputV2 = z181.object({
|
|
5087
|
+
type: z181.literal("DocumentationGroupCreate"),
|
|
5066
5088
|
input: DTOCreateDocumentationGroupInput
|
|
5067
5089
|
});
|
|
5068
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
5069
|
-
type:
|
|
5090
|
+
var DTODocumentationTabCreateActionInputV2 = z181.object({
|
|
5091
|
+
type: z181.literal("DocumentationTabCreate"),
|
|
5070
5092
|
input: DTOCreateDocumentationTabInput
|
|
5071
5093
|
});
|
|
5072
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
5073
|
-
type:
|
|
5094
|
+
var DTODocumentationGroupUpdateActionInputV2 = z181.object({
|
|
5095
|
+
type: z181.literal("DocumentationGroupUpdate"),
|
|
5074
5096
|
input: DTOUpdateDocumentationGroupInput
|
|
5075
5097
|
});
|
|
5076
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
5077
|
-
type:
|
|
5098
|
+
var DTODocumentationGroupMoveActionInputV2 = z181.object({
|
|
5099
|
+
type: z181.literal("DocumentationGroupMove"),
|
|
5078
5100
|
input: DTOMoveDocumentationGroupInput
|
|
5079
5101
|
});
|
|
5080
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
5081
|
-
type:
|
|
5102
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z181.object({
|
|
5103
|
+
type: z181.literal("DocumentationGroupDuplicate"),
|
|
5082
5104
|
input: DTODuplicateDocumentationGroupInput
|
|
5083
5105
|
});
|
|
5084
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
5085
|
-
type:
|
|
5106
|
+
var DTODocumentationGroupDeleteActionInputV2 = z181.object({
|
|
5107
|
+
type: z181.literal("DocumentationGroupDelete"),
|
|
5086
5108
|
input: DTODeleteDocumentationGroupInput
|
|
5087
5109
|
});
|
|
5088
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
5089
|
-
type:
|
|
5110
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z181.object({
|
|
5111
|
+
type: z181.literal("DocumentationTabGroupDelete"),
|
|
5090
5112
|
input: DTODeleteDocumentationTabGroupInput
|
|
5091
5113
|
});
|
|
5092
5114
|
|
|
5093
5115
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
5094
|
-
import { z as
|
|
5116
|
+
import { z as z183 } from "zod";
|
|
5095
5117
|
|
|
5096
5118
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
5097
|
-
import { z as
|
|
5098
|
-
var DocumentationColorV1 =
|
|
5099
|
-
aliasTo:
|
|
5100
|
-
value:
|
|
5119
|
+
import { z as z182 } from "zod";
|
|
5120
|
+
var DocumentationColorV1 = z182.object({
|
|
5121
|
+
aliasTo: z182.string().optional(),
|
|
5122
|
+
value: z182.string().optional()
|
|
5101
5123
|
});
|
|
5102
5124
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
5103
5125
|
foregroundColor: true,
|
|
@@ -5106,10 +5128,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
5106
5128
|
foregroundColor: DocumentationColorV1.optional(),
|
|
5107
5129
|
backgroundColor: DocumentationColorV1.optional()
|
|
5108
5130
|
});
|
|
5109
|
-
var DTODocumentationItemConfigurationV1 =
|
|
5110
|
-
showSidebar:
|
|
5111
|
-
isPrivate:
|
|
5112
|
-
isHidden:
|
|
5131
|
+
var DTODocumentationItemConfigurationV1 = z182.object({
|
|
5132
|
+
showSidebar: z182.boolean(),
|
|
5133
|
+
isPrivate: z182.boolean(),
|
|
5134
|
+
isHidden: z182.boolean(),
|
|
5113
5135
|
header: DTODocumentationItemHeaderV1
|
|
5114
5136
|
});
|
|
5115
5137
|
|
|
@@ -5123,130 +5145,131 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
5123
5145
|
data: true,
|
|
5124
5146
|
shortPersistentId: true
|
|
5125
5147
|
}).extend({
|
|
5126
|
-
title:
|
|
5127
|
-
isRoot:
|
|
5128
|
-
childrenIds:
|
|
5148
|
+
title: z183.string(),
|
|
5149
|
+
isRoot: z183.boolean(),
|
|
5150
|
+
childrenIds: z183.array(z183.string()),
|
|
5129
5151
|
groupBehavior: DocumentationGroupBehavior,
|
|
5130
|
-
shortPersistentId:
|
|
5131
|
-
type:
|
|
5152
|
+
shortPersistentId: z183.string(),
|
|
5153
|
+
type: z183.literal("Group")
|
|
5132
5154
|
});
|
|
5133
5155
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
5134
5156
|
configuration: DTODocumentationItemConfigurationV1
|
|
5135
5157
|
});
|
|
5136
5158
|
|
|
5137
5159
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
5138
|
-
import { z as
|
|
5160
|
+
import { z as z185 } from "zod";
|
|
5139
5161
|
|
|
5140
5162
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5141
|
-
import { z as
|
|
5163
|
+
import { z as z184 } from "zod";
|
|
5142
5164
|
var DTODocumentationPageV2 = DocumentationPageV2.omit({
|
|
5143
5165
|
data: true,
|
|
5144
5166
|
meta: true,
|
|
5145
5167
|
parentPersistentId: true,
|
|
5146
5168
|
sortOrder: true
|
|
5147
5169
|
}).extend({
|
|
5148
|
-
title:
|
|
5149
|
-
path:
|
|
5150
|
-
type:
|
|
5170
|
+
title: z184.string(),
|
|
5171
|
+
path: z184.string(),
|
|
5172
|
+
type: z184.literal("Page"),
|
|
5151
5173
|
configuration: DTODocumentationItemConfigurationV2
|
|
5152
5174
|
});
|
|
5153
5175
|
var DTODocumentationPageStructureV2 = DTODocumentationPageV2;
|
|
5154
|
-
var DTODocumentationHierarchyV2 =
|
|
5155
|
-
pages:
|
|
5156
|
-
groups:
|
|
5176
|
+
var DTODocumentationHierarchyV2 = z184.object({
|
|
5177
|
+
pages: z184.array(DTODocumentationPageStructureV2),
|
|
5178
|
+
groups: z184.array(DTODocumentationGroupStructureV2),
|
|
5179
|
+
publishedPagesSnapshots: DesignElementSnapshot.array()
|
|
5157
5180
|
});
|
|
5158
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5181
|
+
var DTOCreateDocumentationPageInputV2 = z184.object({
|
|
5159
5182
|
// Identifier
|
|
5160
|
-
persistentId:
|
|
5183
|
+
persistentId: z184.string().uuid(),
|
|
5161
5184
|
// Page properties
|
|
5162
|
-
title:
|
|
5185
|
+
title: z184.string(),
|
|
5163
5186
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5164
5187
|
// Page placement properties
|
|
5165
|
-
parentPersistentId:
|
|
5166
|
-
afterPersistentId:
|
|
5188
|
+
parentPersistentId: z184.string().uuid(),
|
|
5189
|
+
afterPersistentId: z184.string().uuid().nullish()
|
|
5167
5190
|
});
|
|
5168
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5191
|
+
var DTOUpdateDocumentationPageInputV2 = z184.object({
|
|
5169
5192
|
// Identifier of the group to update
|
|
5170
|
-
id:
|
|
5193
|
+
id: z184.string(),
|
|
5171
5194
|
// Page properties
|
|
5172
|
-
title:
|
|
5195
|
+
title: z184.string().optional(),
|
|
5173
5196
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5174
5197
|
});
|
|
5175
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5198
|
+
var DTOMoveDocumentationPageInputV2 = z184.object({
|
|
5176
5199
|
// Identifier of the group to update
|
|
5177
|
-
id:
|
|
5200
|
+
id: z184.string(),
|
|
5178
5201
|
// Page placement properties
|
|
5179
|
-
parentPersistentId:
|
|
5180
|
-
afterPersistentId:
|
|
5202
|
+
parentPersistentId: z184.string().uuid(),
|
|
5203
|
+
afterPersistentId: z184.string().uuid().nullish()
|
|
5181
5204
|
});
|
|
5182
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5205
|
+
var DTODuplicateDocumentationPageInputV2 = z184.object({
|
|
5183
5206
|
// Identifier of the page to duplicate from
|
|
5184
|
-
id:
|
|
5207
|
+
id: z184.string(),
|
|
5185
5208
|
// New page persistent id
|
|
5186
|
-
persistentId:
|
|
5209
|
+
persistentId: z184.string().uuid(),
|
|
5187
5210
|
// Page placement properties
|
|
5188
|
-
parentPersistentId:
|
|
5189
|
-
afterPersistentId:
|
|
5211
|
+
parentPersistentId: z184.string().uuid(),
|
|
5212
|
+
afterPersistentId: z184.string().uuid().nullish()
|
|
5190
5213
|
});
|
|
5191
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5214
|
+
var DTODeleteDocumentationPageInputV2 = z184.object({
|
|
5192
5215
|
// Identifier
|
|
5193
|
-
id:
|
|
5216
|
+
id: z184.string()
|
|
5194
5217
|
});
|
|
5195
5218
|
|
|
5196
5219
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
5197
|
-
var SuccessPayload2 =
|
|
5198
|
-
success:
|
|
5220
|
+
var SuccessPayload2 = z185.object({
|
|
5221
|
+
success: z185.literal(true)
|
|
5199
5222
|
});
|
|
5200
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
5201
|
-
type:
|
|
5223
|
+
var DTODocumentationPageCreateActionOutputV2 = z185.object({
|
|
5224
|
+
type: z185.literal("DocumentationPageCreate"),
|
|
5202
5225
|
output: SuccessPayload2
|
|
5203
5226
|
});
|
|
5204
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
5205
|
-
type:
|
|
5227
|
+
var DTODocumentationPageUpdateActionOutputV2 = z185.object({
|
|
5228
|
+
type: z185.literal("DocumentationPageUpdate"),
|
|
5206
5229
|
output: SuccessPayload2
|
|
5207
5230
|
});
|
|
5208
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
5209
|
-
type:
|
|
5231
|
+
var DTODocumentationPageMoveActionOutputV2 = z185.object({
|
|
5232
|
+
type: z185.literal("DocumentationPageMove"),
|
|
5210
5233
|
output: SuccessPayload2
|
|
5211
5234
|
});
|
|
5212
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
5213
|
-
type:
|
|
5235
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z185.object({
|
|
5236
|
+
type: z185.literal("DocumentationPageDuplicate"),
|
|
5214
5237
|
output: SuccessPayload2
|
|
5215
5238
|
});
|
|
5216
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
5217
|
-
type:
|
|
5239
|
+
var DTODocumentationPageDeleteActionOutputV2 = z185.object({
|
|
5240
|
+
type: z185.literal("DocumentationPageDelete"),
|
|
5218
5241
|
output: SuccessPayload2
|
|
5219
5242
|
});
|
|
5220
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
5221
|
-
type:
|
|
5243
|
+
var DTODocumentationPageCreateActionInputV2 = z185.object({
|
|
5244
|
+
type: z185.literal("DocumentationPageCreate"),
|
|
5222
5245
|
input: DTOCreateDocumentationPageInputV2
|
|
5223
5246
|
});
|
|
5224
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
5225
|
-
type:
|
|
5247
|
+
var DTODocumentationPageUpdateActionInputV2 = z185.object({
|
|
5248
|
+
type: z185.literal("DocumentationPageUpdate"),
|
|
5226
5249
|
input: DTOUpdateDocumentationPageInputV2
|
|
5227
5250
|
});
|
|
5228
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
5229
|
-
type:
|
|
5251
|
+
var DTODocumentationPageMoveActionInputV2 = z185.object({
|
|
5252
|
+
type: z185.literal("DocumentationPageMove"),
|
|
5230
5253
|
input: DTOMoveDocumentationPageInputV2
|
|
5231
5254
|
});
|
|
5232
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
5233
|
-
type:
|
|
5255
|
+
var DTODocumentationPageDuplicateActionInputV2 = z185.object({
|
|
5256
|
+
type: z185.literal("DocumentationPageDuplicate"),
|
|
5234
5257
|
input: DTODuplicateDocumentationPageInputV2
|
|
5235
5258
|
});
|
|
5236
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
5237
|
-
type:
|
|
5259
|
+
var DTODocumentationPageDeleteActionInputV2 = z185.object({
|
|
5260
|
+
type: z185.literal("DocumentationPageDelete"),
|
|
5238
5261
|
input: DTODeleteDocumentationPageInputV2
|
|
5239
5262
|
});
|
|
5240
5263
|
|
|
5241
5264
|
// src/api/dto/elements/documentation/page-content.ts
|
|
5242
|
-
import { z as
|
|
5265
|
+
import { z as z186 } from "zod";
|
|
5243
5266
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
5244
|
-
var DTODocumentationPageContentGetResponse =
|
|
5267
|
+
var DTODocumentationPageContentGetResponse = z186.object({
|
|
5245
5268
|
pageContent: DTODocumentationPageContent
|
|
5246
5269
|
});
|
|
5247
5270
|
|
|
5248
5271
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
5249
|
-
import { z as
|
|
5272
|
+
import { z as z187 } from "zod";
|
|
5250
5273
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
5251
5274
|
data: true,
|
|
5252
5275
|
meta: true,
|
|
@@ -5254,30 +5277,30 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
5254
5277
|
sortOrder: true
|
|
5255
5278
|
}).extend({
|
|
5256
5279
|
configuration: DTODocumentationItemConfigurationV1,
|
|
5257
|
-
blocks:
|
|
5258
|
-
title:
|
|
5259
|
-
path:
|
|
5280
|
+
blocks: z187.array(PageBlockV1),
|
|
5281
|
+
title: z187.string(),
|
|
5282
|
+
path: z187.string()
|
|
5260
5283
|
});
|
|
5261
5284
|
|
|
5262
5285
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
5263
|
-
import { z as
|
|
5264
|
-
var DTOFigmaNodeOrigin =
|
|
5265
|
-
sourceId:
|
|
5266
|
-
fileId:
|
|
5267
|
-
parentName:
|
|
5286
|
+
import { z as z188 } from "zod";
|
|
5287
|
+
var DTOFigmaNodeOrigin = z188.object({
|
|
5288
|
+
sourceId: z188.string(),
|
|
5289
|
+
fileId: z188.string().optional(),
|
|
5290
|
+
parentName: z188.string().optional()
|
|
5268
5291
|
});
|
|
5269
|
-
var DTOFigmaNodeData =
|
|
5292
|
+
var DTOFigmaNodeData = z188.object({
|
|
5270
5293
|
// Id of the node in the Figma file
|
|
5271
|
-
figmaNodeId:
|
|
5294
|
+
figmaNodeId: z188.string(),
|
|
5272
5295
|
// Validity
|
|
5273
|
-
isValid:
|
|
5296
|
+
isValid: z188.boolean(),
|
|
5274
5297
|
// Asset data
|
|
5275
|
-
assetId:
|
|
5276
|
-
assetUrl:
|
|
5298
|
+
assetId: z188.string(),
|
|
5299
|
+
assetUrl: z188.string(),
|
|
5277
5300
|
// Asset metadata
|
|
5278
|
-
assetScale:
|
|
5279
|
-
assetWidth:
|
|
5280
|
-
assetHeight:
|
|
5301
|
+
assetScale: z188.number(),
|
|
5302
|
+
assetWidth: z188.number().optional(),
|
|
5303
|
+
assetHeight: z188.number().optional()
|
|
5281
5304
|
});
|
|
5282
5305
|
var DTOFigmaNode = FigmaFileStructure.omit({
|
|
5283
5306
|
data: true,
|
|
@@ -5286,105 +5309,105 @@ var DTOFigmaNode = FigmaFileStructure.omit({
|
|
|
5286
5309
|
data: DTOFigmaNodeData,
|
|
5287
5310
|
origin: DTOFigmaNodeOrigin
|
|
5288
5311
|
});
|
|
5289
|
-
var DTOFigmaNodeRenderInput =
|
|
5312
|
+
var DTOFigmaNodeRenderInput = z188.object({
|
|
5290
5313
|
// Id of a design system's data source representing a linked Figma file
|
|
5291
|
-
sourceId:
|
|
5314
|
+
sourceId: z188.string(),
|
|
5292
5315
|
// Id of a node within the Figma file
|
|
5293
|
-
figmaFileNodeId:
|
|
5316
|
+
figmaFileNodeId: z188.string()
|
|
5294
5317
|
});
|
|
5295
5318
|
|
|
5296
5319
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
5297
|
-
import { z as
|
|
5298
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
5299
|
-
type:
|
|
5300
|
-
figmaNodes:
|
|
5320
|
+
import { z as z189 } from "zod";
|
|
5321
|
+
var DTOFigmaNodeRenderActionOutput = z189.object({
|
|
5322
|
+
type: z189.literal("FigmaNodeRender"),
|
|
5323
|
+
figmaNodes: z189.array(DTOFigmaNode)
|
|
5301
5324
|
});
|
|
5302
|
-
var DTOFigmaNodeRenderActionInput =
|
|
5303
|
-
type:
|
|
5325
|
+
var DTOFigmaNodeRenderActionInput = z189.object({
|
|
5326
|
+
type: z189.literal("FigmaNodeRender"),
|
|
5304
5327
|
input: DTOFigmaNodeRenderInput.array()
|
|
5305
5328
|
});
|
|
5306
5329
|
|
|
5307
5330
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5308
|
-
import { z as
|
|
5331
|
+
import { z as z191 } from "zod";
|
|
5309
5332
|
|
|
5310
5333
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
5311
|
-
import { z as
|
|
5334
|
+
import { z as z190 } from "zod";
|
|
5312
5335
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
5313
|
-
var DTOElementPropertyDefinition =
|
|
5314
|
-
id:
|
|
5315
|
-
designSystemVersionId:
|
|
5336
|
+
var DTOElementPropertyDefinition = z190.object({
|
|
5337
|
+
id: z190.string(),
|
|
5338
|
+
designSystemVersionId: z190.string(),
|
|
5316
5339
|
meta: ObjectMeta,
|
|
5317
|
-
persistentId:
|
|
5340
|
+
persistentId: z190.string(),
|
|
5318
5341
|
type: ElementPropertyTypeSchema,
|
|
5319
5342
|
targetElementType: ElementPropertyTargetType,
|
|
5320
|
-
codeName:
|
|
5321
|
-
options:
|
|
5343
|
+
codeName: z190.string().regex(CODE_NAME_REGEX2),
|
|
5344
|
+
options: z190.array(ElementPropertyDefinitionOption).optional(),
|
|
5322
5345
|
linkElementType: ElementPropertyLinkType.optional()
|
|
5323
5346
|
});
|
|
5324
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
5325
|
-
definitions:
|
|
5347
|
+
var DTOElementPropertyDefinitionsGetResponse = z190.object({
|
|
5348
|
+
definitions: z190.array(DTOElementPropertyDefinition)
|
|
5326
5349
|
});
|
|
5327
5350
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
5328
5351
|
id: true,
|
|
5329
5352
|
designSystemVersionId: true
|
|
5330
5353
|
});
|
|
5331
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
5332
|
-
id:
|
|
5333
|
-
name:
|
|
5334
|
-
description:
|
|
5335
|
-
codeName:
|
|
5336
|
-
options:
|
|
5354
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z190.object({
|
|
5355
|
+
id: z190.string(),
|
|
5356
|
+
name: z190.string().optional(),
|
|
5357
|
+
description: z190.string().optional(),
|
|
5358
|
+
codeName: z190.string().regex(CODE_NAME_REGEX2).optional(),
|
|
5359
|
+
options: z190.array(ElementPropertyDefinitionOption).optional()
|
|
5337
5360
|
});
|
|
5338
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
5339
|
-
id:
|
|
5361
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z190.object({
|
|
5362
|
+
id: z190.string()
|
|
5340
5363
|
});
|
|
5341
5364
|
|
|
5342
5365
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
5343
|
-
var SuccessPayload3 =
|
|
5344
|
-
success:
|
|
5366
|
+
var SuccessPayload3 = z191.object({
|
|
5367
|
+
success: z191.literal(true)
|
|
5345
5368
|
});
|
|
5346
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
5347
|
-
type:
|
|
5369
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z191.object({
|
|
5370
|
+
type: z191.literal("PropertyDefinitionCreate"),
|
|
5348
5371
|
definition: DTOElementPropertyDefinition
|
|
5349
5372
|
});
|
|
5350
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
5351
|
-
type:
|
|
5373
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z191.object({
|
|
5374
|
+
type: z191.literal("PropertyDefinitionUpdate"),
|
|
5352
5375
|
definition: DTOElementPropertyDefinition
|
|
5353
5376
|
});
|
|
5354
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
5355
|
-
type:
|
|
5377
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z191.object({
|
|
5378
|
+
type: z191.literal("PropertyDefinitionDelete"),
|
|
5356
5379
|
output: SuccessPayload3
|
|
5357
5380
|
});
|
|
5358
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
5359
|
-
type:
|
|
5381
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z191.object({
|
|
5382
|
+
type: z191.literal("PropertyDefinitionCreate"),
|
|
5360
5383
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
5361
5384
|
});
|
|
5362
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
5363
|
-
type:
|
|
5385
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z191.object({
|
|
5386
|
+
type: z191.literal("PropertyDefinitionUpdate"),
|
|
5364
5387
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
5365
5388
|
});
|
|
5366
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
5367
|
-
type:
|
|
5389
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z191.object({
|
|
5390
|
+
type: z191.literal("PropertyDefinitionDelete"),
|
|
5368
5391
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
5369
5392
|
});
|
|
5370
5393
|
|
|
5371
5394
|
// src/api/dto/elements/properties/property-values.ts
|
|
5372
|
-
import { z as
|
|
5373
|
-
var DTOElementPropertyValue =
|
|
5374
|
-
id:
|
|
5375
|
-
designSystemVersionId:
|
|
5376
|
-
definitionId:
|
|
5377
|
-
targetElementId:
|
|
5378
|
-
value:
|
|
5379
|
-
valuePreview:
|
|
5395
|
+
import { z as z192 } from "zod";
|
|
5396
|
+
var DTOElementPropertyValue = z192.object({
|
|
5397
|
+
id: z192.string(),
|
|
5398
|
+
designSystemVersionId: z192.string(),
|
|
5399
|
+
definitionId: z192.string(),
|
|
5400
|
+
targetElementId: z192.string(),
|
|
5401
|
+
value: z192.union([z192.string(), z192.number(), z192.boolean()]).optional(),
|
|
5402
|
+
valuePreview: z192.string().optional()
|
|
5380
5403
|
});
|
|
5381
|
-
var DTOElementPropertyValuesGetResponse =
|
|
5382
|
-
values:
|
|
5404
|
+
var DTOElementPropertyValuesGetResponse = z192.object({
|
|
5405
|
+
values: z192.array(DTOElementPropertyValue)
|
|
5383
5406
|
});
|
|
5384
5407
|
|
|
5385
5408
|
// src/api/dto/elements/elements-action-v2.ts
|
|
5386
|
-
import { z as
|
|
5387
|
-
var DTOElementActionOutput =
|
|
5409
|
+
import { z as z193 } from "zod";
|
|
5410
|
+
var DTOElementActionOutput = z193.discriminatedUnion("type", [
|
|
5388
5411
|
// Documentation pages
|
|
5389
5412
|
DTODocumentationPageCreateActionOutputV2,
|
|
5390
5413
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -5406,7 +5429,7 @@ var DTOElementActionOutput = z192.discriminatedUnion("type", [
|
|
|
5406
5429
|
DTOPropertyDefinitionUpdateActionOutputV2,
|
|
5407
5430
|
DTOPropertyDefinitionDeleteActionOutputV2
|
|
5408
5431
|
]);
|
|
5409
|
-
var DTOElementActionInput =
|
|
5432
|
+
var DTOElementActionInput = z193.discriminatedUnion("type", [
|
|
5410
5433
|
// Documentation pages
|
|
5411
5434
|
DTODocumentationPageCreateActionInputV2,
|
|
5412
5435
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -5430,220 +5453,220 @@ var DTOElementActionInput = z192.discriminatedUnion("type", [
|
|
|
5430
5453
|
]);
|
|
5431
5454
|
|
|
5432
5455
|
// src/api/dto/elements/get-elements-v2.ts
|
|
5433
|
-
import { z as
|
|
5434
|
-
var DTOElementsGetTypeFilter =
|
|
5435
|
-
var DTOElementsGetQuerySchema =
|
|
5436
|
-
types:
|
|
5456
|
+
import { z as z194 } from "zod";
|
|
5457
|
+
var DTOElementsGetTypeFilter = z194.enum(["FigmaNode"]);
|
|
5458
|
+
var DTOElementsGetQuerySchema = z194.object({
|
|
5459
|
+
types: z194.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
5437
5460
|
});
|
|
5438
|
-
var DTOElementsGetOutput =
|
|
5439
|
-
figmaNodes:
|
|
5461
|
+
var DTOElementsGetOutput = z194.object({
|
|
5462
|
+
figmaNodes: z194.array(DTOFigmaNode).optional()
|
|
5440
5463
|
});
|
|
5441
5464
|
|
|
5442
5465
|
// src/api/dto/export/exporter.ts
|
|
5443
|
-
import { z as
|
|
5444
|
-
var DTOExporterType =
|
|
5445
|
-
var DTOExporterSource =
|
|
5446
|
-
var DTOExporterMembershipRole =
|
|
5447
|
-
var DTOExporter =
|
|
5448
|
-
id:
|
|
5449
|
-
name:
|
|
5450
|
-
isPrivate:
|
|
5466
|
+
import { z as z195 } from "zod";
|
|
5467
|
+
var DTOExporterType = z195.enum(["documentation", "code"]);
|
|
5468
|
+
var DTOExporterSource = z195.enum(["git", "upload"]);
|
|
5469
|
+
var DTOExporterMembershipRole = z195.enum(["Owner", "OwnerArchived", "User"]);
|
|
5470
|
+
var DTOExporter = z195.object({
|
|
5471
|
+
id: z195.string(),
|
|
5472
|
+
name: z195.string(),
|
|
5473
|
+
isPrivate: z195.boolean(),
|
|
5451
5474
|
exporterType: DTOExporterType,
|
|
5452
|
-
isDefaultDocumentationExporter:
|
|
5453
|
-
iconURL:
|
|
5475
|
+
isDefaultDocumentationExporter: z195.boolean(),
|
|
5476
|
+
iconURL: z195.string().optional(),
|
|
5454
5477
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5455
5478
|
customBlocks: PulsarCustomBlock.array(),
|
|
5456
|
-
blockVariants:
|
|
5457
|
-
usesBrands:
|
|
5458
|
-
usesThemes:
|
|
5479
|
+
blockVariants: z195.record(z195.string(), PulsarContributionVariant.array()),
|
|
5480
|
+
usesBrands: z195.boolean(),
|
|
5481
|
+
usesThemes: z195.boolean(),
|
|
5459
5482
|
source: DTOExporterSource,
|
|
5460
|
-
gitUrl:
|
|
5461
|
-
gitBranch:
|
|
5462
|
-
gitDirectory:
|
|
5483
|
+
gitUrl: z195.string().optional(),
|
|
5484
|
+
gitBranch: z195.string().optional(),
|
|
5485
|
+
gitDirectory: z195.string().optional()
|
|
5463
5486
|
});
|
|
5464
|
-
var DTOExporterMembership =
|
|
5465
|
-
workspaceId:
|
|
5466
|
-
exporterId:
|
|
5487
|
+
var DTOExporterMembership = z195.object({
|
|
5488
|
+
workspaceId: z195.string(),
|
|
5489
|
+
exporterId: z195.string(),
|
|
5467
5490
|
role: DTOExporterMembershipRole
|
|
5468
5491
|
});
|
|
5469
|
-
var DTOExporterCreateOutput =
|
|
5492
|
+
var DTOExporterCreateOutput = z195.object({
|
|
5470
5493
|
exporter: DTOExporter,
|
|
5471
5494
|
membership: DTOExporterMembership
|
|
5472
5495
|
});
|
|
5473
|
-
var DTOExporterGitProviderEnum =
|
|
5474
|
-
var DTOExporterCreateInput =
|
|
5475
|
-
url:
|
|
5496
|
+
var DTOExporterGitProviderEnum = z195.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5497
|
+
var DTOExporterCreateInput = z195.object({
|
|
5498
|
+
url: z195.string(),
|
|
5476
5499
|
provider: DTOExporterGitProviderEnum
|
|
5477
5500
|
});
|
|
5478
|
-
var DTOExporterUpdateInput =
|
|
5479
|
-
url:
|
|
5501
|
+
var DTOExporterUpdateInput = z195.object({
|
|
5502
|
+
url: z195.string().optional()
|
|
5480
5503
|
});
|
|
5481
5504
|
|
|
5482
5505
|
// src/api/dto/export/job.ts
|
|
5483
|
-
import { z as
|
|
5484
|
-
var DTOExportJobCreatedBy =
|
|
5485
|
-
userId:
|
|
5486
|
-
userName:
|
|
5506
|
+
import { z as z196 } from "zod";
|
|
5507
|
+
var DTOExportJobCreatedBy = z196.object({
|
|
5508
|
+
userId: z196.string(),
|
|
5509
|
+
userName: z196.string()
|
|
5487
5510
|
});
|
|
5488
|
-
var DTOExportJobDesignSystemPreview =
|
|
5489
|
-
id:
|
|
5511
|
+
var DTOExportJobDesignSystemPreview = z196.object({
|
|
5512
|
+
id: z196.string(),
|
|
5490
5513
|
meta: ObjectMeta
|
|
5491
5514
|
});
|
|
5492
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5493
|
-
id:
|
|
5515
|
+
var DTOExportJobDesignSystemVersionPreview = z196.object({
|
|
5516
|
+
id: z196.string(),
|
|
5494
5517
|
meta: ObjectMeta,
|
|
5495
|
-
version:
|
|
5496
|
-
isReadonly:
|
|
5518
|
+
version: z196.string(),
|
|
5519
|
+
isReadonly: z196.boolean()
|
|
5497
5520
|
});
|
|
5498
|
-
var DTOExportJobDestinations =
|
|
5521
|
+
var DTOExportJobDestinations = z196.object({
|
|
5499
5522
|
s3: ExporterDestinationS3.optional(),
|
|
5500
5523
|
azure: ExporterDestinationAzure.optional(),
|
|
5501
5524
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5502
5525
|
github: ExporterDestinationGithub.optional(),
|
|
5503
5526
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5504
5527
|
documentation: ExporterDestinationDocs.optional(),
|
|
5505
|
-
webhookUrl:
|
|
5528
|
+
webhookUrl: z196.string().optional()
|
|
5506
5529
|
});
|
|
5507
|
-
var DTOExportJob =
|
|
5508
|
-
id:
|
|
5509
|
-
createdAt:
|
|
5510
|
-
finishedAt:
|
|
5511
|
-
index:
|
|
5530
|
+
var DTOExportJob = z196.object({
|
|
5531
|
+
id: z196.string(),
|
|
5532
|
+
createdAt: z196.coerce.date(),
|
|
5533
|
+
finishedAt: z196.coerce.date().optional(),
|
|
5534
|
+
index: z196.number().optional(),
|
|
5512
5535
|
status: ExportJobStatus,
|
|
5513
|
-
estimatedExecutionTime:
|
|
5536
|
+
estimatedExecutionTime: z196.number().optional(),
|
|
5514
5537
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5515
5538
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5516
5539
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5517
5540
|
destinations: DTOExportJobDestinations,
|
|
5518
|
-
exporterId:
|
|
5519
|
-
scheduleId:
|
|
5541
|
+
exporterId: z196.string(),
|
|
5542
|
+
scheduleId: z196.string().optional(),
|
|
5520
5543
|
result: ExportJobResult.optional(),
|
|
5521
|
-
brandPersistentId:
|
|
5522
|
-
themePersistentId:
|
|
5544
|
+
brandPersistentId: z196.string().optional(),
|
|
5545
|
+
themePersistentId: z196.string().optional()
|
|
5523
5546
|
});
|
|
5524
|
-
var DTOExportJobResponse =
|
|
5547
|
+
var DTOExportJobResponse = z196.object({
|
|
5525
5548
|
job: DTOExportJob
|
|
5526
5549
|
});
|
|
5527
5550
|
|
|
5528
5551
|
// src/api/dto/export/pipeline.ts
|
|
5529
|
-
import { z as
|
|
5530
|
-
var DTOPipeline =
|
|
5531
|
-
id:
|
|
5532
|
-
name:
|
|
5552
|
+
import { z as z197 } from "zod";
|
|
5553
|
+
var DTOPipeline = z197.object({
|
|
5554
|
+
id: z197.string(),
|
|
5555
|
+
name: z197.string(),
|
|
5533
5556
|
eventType: PipelineEventType,
|
|
5534
|
-
isEnabled:
|
|
5535
|
-
workspaceId:
|
|
5536
|
-
designSystemId:
|
|
5537
|
-
exporterId:
|
|
5538
|
-
brandPersistentId:
|
|
5539
|
-
themePersistentId:
|
|
5557
|
+
isEnabled: z197.boolean(),
|
|
5558
|
+
workspaceId: z197.string(),
|
|
5559
|
+
designSystemId: z197.string(),
|
|
5560
|
+
exporterId: z197.string(),
|
|
5561
|
+
brandPersistentId: z197.string().optional(),
|
|
5562
|
+
themePersistentId: z197.string().optional(),
|
|
5540
5563
|
...ExportDestinationsMap.shape,
|
|
5541
5564
|
latestJobs: DTOExportJob.array()
|
|
5542
5565
|
});
|
|
5543
5566
|
|
|
5544
5567
|
// src/api/dto/liveblocks/auth-response.ts
|
|
5545
|
-
import { z as
|
|
5546
|
-
var DTOLiveblocksAuthResponse =
|
|
5547
|
-
token:
|
|
5568
|
+
import { z as z198 } from "zod";
|
|
5569
|
+
var DTOLiveblocksAuthResponse = z198.object({
|
|
5570
|
+
token: z198.string()
|
|
5548
5571
|
});
|
|
5549
5572
|
|
|
5550
5573
|
// src/api/dto/users/profile/update.ts
|
|
5551
|
-
import { z as
|
|
5552
|
-
var DTOUserProfileUpdateResponse =
|
|
5574
|
+
import { z as z199 } from "zod";
|
|
5575
|
+
var DTOUserProfileUpdateResponse = z199.object({
|
|
5553
5576
|
user: User
|
|
5554
5577
|
});
|
|
5555
5578
|
|
|
5556
5579
|
// src/api/dto/workspaces/git.ts
|
|
5557
|
-
import { z as
|
|
5558
|
-
var DTOGitOrganization =
|
|
5559
|
-
id:
|
|
5560
|
-
name:
|
|
5561
|
-
url:
|
|
5562
|
-
slug:
|
|
5563
|
-
});
|
|
5564
|
-
var DTOGitProject =
|
|
5565
|
-
id:
|
|
5566
|
-
name:
|
|
5567
|
-
url:
|
|
5568
|
-
slug:
|
|
5569
|
-
});
|
|
5570
|
-
var DTOGitRepository =
|
|
5571
|
-
id:
|
|
5572
|
-
name:
|
|
5573
|
-
url:
|
|
5574
|
-
slug:
|
|
5575
|
-
defaultBranch:
|
|
5576
|
-
});
|
|
5577
|
-
var DTOGitBranch =
|
|
5578
|
-
name:
|
|
5579
|
-
lastCommitId:
|
|
5580
|
+
import { z as z200 } from "zod";
|
|
5581
|
+
var DTOGitOrganization = z200.object({
|
|
5582
|
+
id: z200.string(),
|
|
5583
|
+
name: z200.string(),
|
|
5584
|
+
url: z200.string(),
|
|
5585
|
+
slug: z200.string()
|
|
5586
|
+
});
|
|
5587
|
+
var DTOGitProject = z200.object({
|
|
5588
|
+
id: z200.string(),
|
|
5589
|
+
name: z200.string(),
|
|
5590
|
+
url: z200.string(),
|
|
5591
|
+
slug: z200.string()
|
|
5592
|
+
});
|
|
5593
|
+
var DTOGitRepository = z200.object({
|
|
5594
|
+
id: z200.string(),
|
|
5595
|
+
name: z200.string(),
|
|
5596
|
+
url: z200.string(),
|
|
5597
|
+
slug: z200.string(),
|
|
5598
|
+
defaultBranch: z200.string().optional()
|
|
5599
|
+
});
|
|
5600
|
+
var DTOGitBranch = z200.object({
|
|
5601
|
+
name: z200.string(),
|
|
5602
|
+
lastCommitId: z200.string()
|
|
5580
5603
|
});
|
|
5581
5604
|
|
|
5582
5605
|
// src/api/dto/workspaces/integrations.ts
|
|
5583
|
-
import { z as
|
|
5606
|
+
import { z as z201 } from "zod";
|
|
5584
5607
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5585
5608
|
accessToken: true,
|
|
5586
5609
|
refreshToken: true
|
|
5587
5610
|
});
|
|
5588
|
-
var DTOIntegration =
|
|
5589
|
-
id:
|
|
5590
|
-
workspaceId:
|
|
5611
|
+
var DTOIntegration = z201.object({
|
|
5612
|
+
id: z201.string(),
|
|
5613
|
+
workspaceId: z201.string(),
|
|
5591
5614
|
type: ExtendedIntegrationType,
|
|
5592
|
-
createdAt:
|
|
5593
|
-
integrationCredentials:
|
|
5594
|
-
integrationDesignSystems:
|
|
5615
|
+
createdAt: z201.coerce.date(),
|
|
5616
|
+
integrationCredentials: z201.array(DTOIntegrationCredentials).optional(),
|
|
5617
|
+
integrationDesignSystems: z201.array(IntegrationDesignSystem).optional()
|
|
5595
5618
|
});
|
|
5596
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5597
|
-
url:
|
|
5619
|
+
var DTOIntegrationOAuthGetResponse = z201.object({
|
|
5620
|
+
url: z201.string()
|
|
5598
5621
|
});
|
|
5599
|
-
var DTOIntegrationPostResponse =
|
|
5622
|
+
var DTOIntegrationPostResponse = z201.object({
|
|
5600
5623
|
integration: DTOIntegration
|
|
5601
5624
|
});
|
|
5602
|
-
var DTOIntegrationsGetListResponse =
|
|
5625
|
+
var DTOIntegrationsGetListResponse = z201.object({
|
|
5603
5626
|
integrations: DTOIntegration.array()
|
|
5604
5627
|
});
|
|
5605
5628
|
|
|
5606
5629
|
// src/api/dto/workspaces/membership.ts
|
|
5607
|
-
import { z as
|
|
5630
|
+
import { z as z204 } from "zod";
|
|
5608
5631
|
|
|
5609
5632
|
// src/api/dto/workspaces/workspace.ts
|
|
5610
|
-
import { z as
|
|
5633
|
+
import { z as z203 } from "zod";
|
|
5611
5634
|
|
|
5612
5635
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5613
|
-
import { z as
|
|
5636
|
+
import { z as z202 } from "zod";
|
|
5614
5637
|
var DTONpmRegistryConfigConstants = {
|
|
5615
5638
|
passwordPlaceholder: "redacted"
|
|
5616
5639
|
};
|
|
5617
|
-
var DTONpmRegistryConfig =
|
|
5640
|
+
var DTONpmRegistryConfig = z202.object({
|
|
5618
5641
|
// Registry basic configuration
|
|
5619
5642
|
registryType: NpmRegistryType,
|
|
5620
|
-
registryUrl:
|
|
5621
|
-
customRegistryUrl:
|
|
5643
|
+
registryUrl: z202.string(),
|
|
5644
|
+
customRegistryUrl: z202.string().optional(),
|
|
5622
5645
|
// URL of Supernova NPM packages proxy
|
|
5623
|
-
proxyUrl:
|
|
5646
|
+
proxyUrl: z202.string(),
|
|
5624
5647
|
// Auth configuration
|
|
5625
5648
|
authType: NpmRegistryAuthType,
|
|
5626
|
-
accessToken:
|
|
5627
|
-
username:
|
|
5628
|
-
password:
|
|
5649
|
+
accessToken: z202.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5650
|
+
username: z202.string().optional(),
|
|
5651
|
+
password: z202.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5629
5652
|
// NPM package scopes for whih the proxy should be enabled
|
|
5630
|
-
enabledScopes:
|
|
5653
|
+
enabledScopes: z202.array(z202.string()),
|
|
5631
5654
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5632
5655
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5633
|
-
bypassProxy:
|
|
5656
|
+
bypassProxy: z202.boolean()
|
|
5634
5657
|
});
|
|
5635
5658
|
|
|
5636
5659
|
// src/api/dto/workspaces/workspace.ts
|
|
5637
|
-
var DTOWorkspace =
|
|
5638
|
-
id:
|
|
5660
|
+
var DTOWorkspace = z203.object({
|
|
5661
|
+
id: z203.string(),
|
|
5639
5662
|
profile: WorkspaceProfile,
|
|
5640
5663
|
subscription: Subscription,
|
|
5641
5664
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5642
5665
|
});
|
|
5643
5666
|
|
|
5644
5667
|
// src/api/dto/workspaces/membership.ts
|
|
5645
|
-
var DTOWorkspaceRole =
|
|
5646
|
-
var DTOUserWorkspaceMembership =
|
|
5668
|
+
var DTOWorkspaceRole = z204.enum(["Owner", "Admin", "Creator", "Viewer", "Billing"]);
|
|
5669
|
+
var DTOUserWorkspaceMembership = z204.object({
|
|
5647
5670
|
// Workspace the user is a member of
|
|
5648
5671
|
workspace: DTOWorkspace,
|
|
5649
5672
|
// Assigned role the user has in the workspace
|
|
@@ -5653,14 +5676,49 @@ var DTOUserWorkspaceMembership = z203.object({
|
|
|
5653
5676
|
// when a workspace's subscription is downgraded to free tier
|
|
5654
5677
|
effectiveRole: DTOWorkspaceRole
|
|
5655
5678
|
});
|
|
5656
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5657
|
-
membership:
|
|
5679
|
+
var DTOUserWorkspaceMembershipsResponse = z204.object({
|
|
5680
|
+
membership: z204.array(DTOUserWorkspaceMembership)
|
|
5658
5681
|
});
|
|
5659
5682
|
|
|
5683
|
+
// src/utils/hash.ts
|
|
5684
|
+
import { createHash } from "crypto";
|
|
5685
|
+
function hash(s) {
|
|
5686
|
+
return createHash("sha256").update(s).digest("hex");
|
|
5687
|
+
}
|
|
5688
|
+
function prepareObject(obj) {
|
|
5689
|
+
if (obj === null || typeof obj !== "object") {
|
|
5690
|
+
return obj;
|
|
5691
|
+
}
|
|
5692
|
+
if (Array.isArray(obj)) {
|
|
5693
|
+
return obj.map(prepareObject);
|
|
5694
|
+
}
|
|
5695
|
+
const sortedObj = {};
|
|
5696
|
+
for (const key of Object.keys(obj).sort()) {
|
|
5697
|
+
if (obj[key] === null || obj[key] === void 0) {
|
|
5698
|
+
continue;
|
|
5699
|
+
}
|
|
5700
|
+
sortedObj[key] = prepareObject(obj[key]);
|
|
5701
|
+
}
|
|
5702
|
+
return sortedObj;
|
|
5703
|
+
}
|
|
5704
|
+
function generateHash(input) {
|
|
5705
|
+
if (typeof input === "object") {
|
|
5706
|
+
return hash(JSON.stringify(prepareObject(input)));
|
|
5707
|
+
} else {
|
|
5708
|
+
try {
|
|
5709
|
+
const obj = JSON.parse(input);
|
|
5710
|
+
return hash(JSON.stringify(prepareObject(obj)));
|
|
5711
|
+
} catch {
|
|
5712
|
+
return hash(input);
|
|
5713
|
+
}
|
|
5714
|
+
}
|
|
5715
|
+
}
|
|
5716
|
+
|
|
5660
5717
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
5661
|
-
import { z as
|
|
5662
|
-
var DocumentationHierarchySettings =
|
|
5663
|
-
routingVersion:
|
|
5718
|
+
import { z as z205 } from "zod";
|
|
5719
|
+
var DocumentationHierarchySettings = z205.object({
|
|
5720
|
+
routingVersion: z205.string(),
|
|
5721
|
+
isDraftFeatureAdopted: z205.boolean()
|
|
5664
5722
|
});
|
|
5665
5723
|
function documentationHierarchyToYjs(doc, transaction) {
|
|
5666
5724
|
doc.transact((trx) => {
|
|
@@ -5684,6 +5742,10 @@ function documentationHierarchyToYjs(doc, transaction) {
|
|
|
5684
5742
|
transaction.groups.forEach((group) => {
|
|
5685
5743
|
groupsMap.set(group.id, JSON.parse(JSON.stringify(group)));
|
|
5686
5744
|
});
|
|
5745
|
+
const publishedSnapshotsMap = getPublishedSnapshotsYMap(trx.doc);
|
|
5746
|
+
transaction.publishedPageSnapshots.forEach((state) => {
|
|
5747
|
+
publishedSnapshotsMap.set(state.id, JSON.parse(JSON.stringify(state)));
|
|
5748
|
+
});
|
|
5687
5749
|
if (transaction.internalSettings) {
|
|
5688
5750
|
serializeDocumentationInternalSettings(trx.doc, transaction.internalSettings);
|
|
5689
5751
|
}
|
|
@@ -5693,10 +5755,12 @@ function documentationHierarchyToYjs(doc, transaction) {
|
|
|
5693
5755
|
function serializeDocumentationInternalSettings(doc, settings) {
|
|
5694
5756
|
const map = getInternalSettingsYMap(doc);
|
|
5695
5757
|
map.set("routingVersion", settings.routingVersion);
|
|
5758
|
+
settings.isDraftFeatureAdopted !== void 0 && map.set("isDraftFeatureAdapted", settings.isDraftFeatureAdopted);
|
|
5696
5759
|
}
|
|
5697
5760
|
function yjsToDocumentationHierarchy(doc) {
|
|
5698
5761
|
const pagesMap = getPagesYMap(doc);
|
|
5699
5762
|
const groupsMap = getGroupsYMap(doc);
|
|
5763
|
+
const publishedSnapshotsMap = getPublishedSnapshotsYMap(doc);
|
|
5700
5764
|
const pages = [];
|
|
5701
5765
|
pagesMap.forEach((page) => {
|
|
5702
5766
|
pages.push(DocumentationPageV2.parse(page));
|
|
@@ -5705,18 +5769,31 @@ function yjsToDocumentationHierarchy(doc) {
|
|
|
5705
5769
|
groupsMap.forEach((group) => {
|
|
5706
5770
|
groups.push(ElementGroup.parse(group));
|
|
5707
5771
|
});
|
|
5772
|
+
const publishedSnapshots = [];
|
|
5773
|
+
publishedSnapshotsMap.forEach((state) => {
|
|
5774
|
+
publishedSnapshots.push(DesignElementSnapshot.parse(state));
|
|
5775
|
+
});
|
|
5708
5776
|
const internalSettings = parseDocumentationInternalSettings(doc);
|
|
5709
|
-
const hierarchy = documentationElementsToHierarchyDto(
|
|
5777
|
+
const hierarchy = documentationElementsToHierarchyDto(
|
|
5778
|
+
pages,
|
|
5779
|
+
groups,
|
|
5780
|
+
publishedSnapshots,
|
|
5781
|
+
internalSettings.routingVersion ?? "2"
|
|
5782
|
+
);
|
|
5710
5783
|
return hierarchy;
|
|
5711
5784
|
}
|
|
5712
5785
|
function parseDocumentationInternalSettings(doc) {
|
|
5713
5786
|
const map = getInternalSettingsYMap(doc);
|
|
5714
5787
|
const rawSettings = {
|
|
5715
|
-
routingVersion: map.get("routingVersion")
|
|
5788
|
+
routingVersion: map.get("routingVersion"),
|
|
5789
|
+
isDraftFeatureAdopted: map.get("isDraftFeatureAdapted") ?? false
|
|
5716
5790
|
};
|
|
5717
5791
|
const settingsParseResult = DocumentationHierarchySettings.safeParse(rawSettings);
|
|
5718
5792
|
if (!settingsParseResult.success) {
|
|
5719
|
-
return {
|
|
5793
|
+
return {
|
|
5794
|
+
routingVersion: "2",
|
|
5795
|
+
isDraftFeatureAdopted: false
|
|
5796
|
+
};
|
|
5720
5797
|
}
|
|
5721
5798
|
return settingsParseResult.data;
|
|
5722
5799
|
}
|
|
@@ -5729,15 +5806,18 @@ function getGroupsYMap(doc) {
|
|
|
5729
5806
|
function getInternalSettingsYMap(doc) {
|
|
5730
5807
|
return doc.getMap("documentationInternalSettings");
|
|
5731
5808
|
}
|
|
5809
|
+
function getPublishedSnapshotsYMap(doc) {
|
|
5810
|
+
return doc.getMap("documentationPagePublishedSnapshots");
|
|
5811
|
+
}
|
|
5732
5812
|
|
|
5733
5813
|
// src/yjs/design-system-content/item-configuration.ts
|
|
5734
|
-
import { z as
|
|
5735
|
-
var DTODocumentationPageRoomHeaderData =
|
|
5736
|
-
title:
|
|
5814
|
+
import { z as z206 } from "zod";
|
|
5815
|
+
var DTODocumentationPageRoomHeaderData = z206.object({
|
|
5816
|
+
title: z206.string(),
|
|
5737
5817
|
configuration: DTODocumentationItemConfigurationV2
|
|
5738
5818
|
});
|
|
5739
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
5740
|
-
title:
|
|
5819
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z206.object({
|
|
5820
|
+
title: z206.string().optional(),
|
|
5741
5821
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
5742
5822
|
});
|
|
5743
5823
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -5788,7 +5868,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
5788
5868
|
header: rawHeader
|
|
5789
5869
|
};
|
|
5790
5870
|
return {
|
|
5791
|
-
title:
|
|
5871
|
+
title: z206.string().parse(title),
|
|
5792
5872
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
5793
5873
|
};
|
|
5794
5874
|
}
|
|
@@ -5798,9 +5878,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
5798
5878
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
5799
5879
|
|
|
5800
5880
|
// src/yjs/docs-editor/model/page.ts
|
|
5801
|
-
import { z as
|
|
5802
|
-
var DocumentationPageEditorModel =
|
|
5803
|
-
blocks:
|
|
5881
|
+
import { z as z207 } from "zod";
|
|
5882
|
+
var DocumentationPageEditorModel = z207.object({
|
|
5883
|
+
blocks: z207.array(PageBlockEditorModel.or(PageSectionEditorModel))
|
|
5804
5884
|
});
|
|
5805
5885
|
|
|
5806
5886
|
// src/yjs/docs-editor/prosemirror/schema.ts
|
|
@@ -8772,7 +8852,7 @@ var blocks = [
|
|
|
8772
8852
|
|
|
8773
8853
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
8774
8854
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
8775
|
-
import { z as
|
|
8855
|
+
import { z as z208 } from "zod";
|
|
8776
8856
|
function yDocToPage(yDoc, definitions) {
|
|
8777
8857
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
8778
8858
|
}
|
|
@@ -8815,7 +8895,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
8815
8895
|
return null;
|
|
8816
8896
|
return {
|
|
8817
8897
|
id,
|
|
8818
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
8898
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z208.string()) ?? "",
|
|
8819
8899
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
8820
8900
|
};
|
|
8821
8901
|
}
|
|
@@ -8850,7 +8930,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
8850
8930
|
});
|
|
8851
8931
|
}
|
|
8852
8932
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
8853
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
8933
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z208.string());
|
|
8854
8934
|
if (!definitionId) {
|
|
8855
8935
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
8856
8936
|
return [];
|
|
@@ -8892,7 +8972,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
8892
8972
|
if (!id)
|
|
8893
8973
|
return null;
|
|
8894
8974
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
8895
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
8975
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z208.string().optional()));
|
|
8896
8976
|
return {
|
|
8897
8977
|
id,
|
|
8898
8978
|
type: "Block",
|
|
@@ -9018,10 +9098,10 @@ function parseRichTextAttribute(mark) {
|
|
|
9018
9098
|
return null;
|
|
9019
9099
|
}
|
|
9020
9100
|
function parseProsemirrorLink(mark) {
|
|
9021
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
9101
|
+
const href = getProsemirrorAttribute(mark, "href", z208.string().optional());
|
|
9022
9102
|
if (!href)
|
|
9023
9103
|
return null;
|
|
9024
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
9104
|
+
const target = getProsemirrorAttribute(mark, "target", z208.string().optional());
|
|
9025
9105
|
const openInNewTab = target === "_blank";
|
|
9026
9106
|
if (href.startsWith("@")) {
|
|
9027
9107
|
return {
|
|
@@ -9044,7 +9124,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
9044
9124
|
if (!id)
|
|
9045
9125
|
return null;
|
|
9046
9126
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
9047
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
9127
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z208.boolean().optional()) !== false;
|
|
9048
9128
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
9049
9129
|
if (!tableChild) {
|
|
9050
9130
|
return emptyTable(id, variantId, 0);
|
|
@@ -9091,9 +9171,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
9091
9171
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
9092
9172
|
if (!id)
|
|
9093
9173
|
return null;
|
|
9094
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
9174
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z208.string().optional());
|
|
9095
9175
|
let columnWidth;
|
|
9096
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
9176
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z208.array(z208.number()).optional());
|
|
9097
9177
|
if (columnWidthArray) {
|
|
9098
9178
|
columnWidth = columnWidthArray[0];
|
|
9099
9179
|
}
|
|
@@ -9131,7 +9211,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
9131
9211
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
9132
9212
|
};
|
|
9133
9213
|
case "image":
|
|
9134
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
9214
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z208.string());
|
|
9135
9215
|
if (!items)
|
|
9136
9216
|
return null;
|
|
9137
9217
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -9247,7 +9327,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
9247
9327
|
);
|
|
9248
9328
|
}
|
|
9249
9329
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
9250
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
9330
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z208.string());
|
|
9251
9331
|
if (!itemsString)
|
|
9252
9332
|
return null;
|
|
9253
9333
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -9259,18 +9339,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
9259
9339
|
}
|
|
9260
9340
|
function parseAppearance(prosemirrorNode) {
|
|
9261
9341
|
let appearance = {};
|
|
9262
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
9342
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z208.string().optional());
|
|
9263
9343
|
if (rawAppearanceString) {
|
|
9264
9344
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
9265
9345
|
if (parsedAppearance.success) {
|
|
9266
9346
|
appearance = parsedAppearance.data;
|
|
9267
9347
|
}
|
|
9268
9348
|
}
|
|
9269
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
9349
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z208.number().optional());
|
|
9270
9350
|
if (columns) {
|
|
9271
9351
|
appearance.numberOfColumns = columns;
|
|
9272
9352
|
}
|
|
9273
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
9353
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z208.string().optional());
|
|
9274
9354
|
if (backgroundColor) {
|
|
9275
9355
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
9276
9356
|
if (parsedColor.success) {
|
|
@@ -9363,13 +9443,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
9363
9443
|
}
|
|
9364
9444
|
}
|
|
9365
9445
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
9366
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
9446
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z208.string());
|
|
9367
9447
|
if (!id)
|
|
9368
9448
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
9369
9449
|
return id;
|
|
9370
9450
|
}
|
|
9371
9451
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
9372
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
9452
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z208.string()));
|
|
9373
9453
|
}
|
|
9374
9454
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
9375
9455
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -9575,6 +9655,7 @@ export {
|
|
|
9575
9655
|
elementGroupsToDocumentationGroupFixedConfigurationDTOV2,
|
|
9576
9656
|
elementGroupsToDocumentationGroupStructureDTOV1,
|
|
9577
9657
|
elementGroupsToDocumentationGroupStructureDTOV2,
|
|
9658
|
+
generateHash,
|
|
9578
9659
|
getDtoDefaultItemConfigurationV1,
|
|
9579
9660
|
getDtoDefaultItemConfigurationV2,
|
|
9580
9661
|
getMockPageBlockDefinitions,
|