@supernova-studio/client 0.54.5 → 0.54.6
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 +304 -203
- package/dist/index.d.ts +304 -203
- package/dist/index.js +44 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1316 -1274
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/design-systems/index.ts +1 -0
- package/src/api/dto/design-systems/members.ts +32 -0
- package/src/api/dto/users/index.ts +2 -1
- package/src/api/dto/users/{profile/update.ts → update.ts} +2 -1
- package/src/api/dto/users/user.ts +22 -0
- package/src/api/dto/users/profile/index.ts +0 -1
package/dist/index.mjs
CHANGED
|
@@ -20,12 +20,12 @@ 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 z126 } 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 z125 } from "zod";
|
|
27
28
|
import { z as z124 } from "zod";
|
|
28
|
-
import { z as z123 } 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";
|
|
@@ -125,22 +125,22 @@ 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
|
-
import { z as z117 } from "zod";
|
|
129
128
|
import { z as z116 } from "zod";
|
|
130
129
|
import { z as z118 } from "zod";
|
|
130
|
+
import { z as z117 } from "zod";
|
|
131
131
|
import { z as z119 } from "zod";
|
|
132
132
|
import { z as z120 } from "zod";
|
|
133
133
|
import { z as z121 } from "zod";
|
|
134
134
|
import { z as z122 } from "zod";
|
|
135
|
+
import { z as z123 } from "zod";
|
|
136
|
+
import { z as z133 } from "zod";
|
|
135
137
|
import { z as z132 } from "zod";
|
|
136
|
-
import { z as z131 } from "zod";
|
|
137
|
-
import { z as z126 } from "zod";
|
|
138
138
|
import { z as z127 } from "zod";
|
|
139
139
|
import { z as z128 } from "zod";
|
|
140
140
|
import { z as z129 } from "zod";
|
|
141
141
|
import { z as z130 } from "zod";
|
|
142
|
-
import { z as
|
|
143
|
-
import { z as
|
|
142
|
+
import { z as z131 } from "zod";
|
|
143
|
+
import { z as z148 } from "zod";
|
|
144
144
|
import { z as z134 } from "zod";
|
|
145
145
|
import { z as z135 } from "zod";
|
|
146
146
|
import { z as z136 } from "zod";
|
|
@@ -149,37 +149,38 @@ import { z as z138 } from "zod";
|
|
|
149
149
|
import { z as z139 } from "zod";
|
|
150
150
|
import { z as z140 } from "zod";
|
|
151
151
|
import { z as z141 } from "zod";
|
|
152
|
-
import { z as z146 } from "zod";
|
|
153
152
|
import { z as z142 } from "zod";
|
|
154
|
-
import
|
|
155
|
-
import { z as z145 } from "zod";
|
|
153
|
+
import { z as z147 } from "zod";
|
|
156
154
|
import { z as z143 } from "zod";
|
|
155
|
+
import IPCIDR from "ip-cidr";
|
|
156
|
+
import { z as z146 } from "zod";
|
|
157
157
|
import { z as z144 } from "zod";
|
|
158
|
-
import { z as
|
|
159
|
-
import { z as z151 } from "zod";
|
|
158
|
+
import { z as z145 } from "zod";
|
|
160
159
|
import { z as z149 } from "zod";
|
|
161
|
-
import { z as z150 } from "zod";
|
|
162
160
|
import { z as z152 } from "zod";
|
|
161
|
+
import { z as z150 } from "zod";
|
|
162
|
+
import { z as z151 } from "zod";
|
|
163
163
|
import { z as z153 } from "zod";
|
|
164
164
|
import { z as z154 } from "zod";
|
|
165
165
|
import { z as z155 } from "zod";
|
|
166
166
|
import { z as z156 } from "zod";
|
|
167
167
|
import { z as z157 } from "zod";
|
|
168
|
-
import { z as z159 } from "zod";
|
|
169
168
|
import { z as z158 } from "zod";
|
|
170
169
|
import { z as z160 } from "zod";
|
|
170
|
+
import { z as z159 } from "zod";
|
|
171
171
|
import { z as z161 } from "zod";
|
|
172
172
|
import { z as z162 } from "zod";
|
|
173
173
|
import { z as z163 } from "zod";
|
|
174
174
|
import { z as z164 } from "zod";
|
|
175
|
-
import { z as z172 } from "zod";
|
|
176
|
-
import { z as z166 } from "zod";
|
|
177
175
|
import { z as z165 } from "zod";
|
|
176
|
+
import { z as z173 } from "zod";
|
|
178
177
|
import { z as z167 } from "zod";
|
|
178
|
+
import { z as z166 } from "zod";
|
|
179
179
|
import { z as z168 } from "zod";
|
|
180
180
|
import { z as z169 } from "zod";
|
|
181
181
|
import { z as z170 } from "zod";
|
|
182
182
|
import { z as z171 } from "zod";
|
|
183
|
+
import { z as z172 } from "zod";
|
|
183
184
|
var __defProp2 = Object.defineProperty;
|
|
184
185
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
185
186
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -3542,83 +3543,89 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
|
3542
3543
|
function pickLatestGroupSnapshots(snapshots) {
|
|
3543
3544
|
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
3544
3545
|
}
|
|
3545
|
-
var
|
|
3546
|
-
var ElementViewColumnType = z113.union([
|
|
3547
|
-
z113.literal("BaseProperty"),
|
|
3548
|
-
z113.literal("PropertyDefinition"),
|
|
3549
|
-
z113.literal("Theme")
|
|
3550
|
-
]);
|
|
3551
|
-
var ElementViewColumnSharedAttributes = z113.object({
|
|
3546
|
+
var DesignSystemMembership = z113.object({
|
|
3552
3547
|
id: z113.string(),
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3548
|
+
userId: z113.string(),
|
|
3549
|
+
designSystemId: z113.string(),
|
|
3550
|
+
workspaceMembershipId: z113.string()
|
|
3551
|
+
});
|
|
3552
|
+
var ElementViewBaseColumnType = z114.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
3553
|
+
var ElementViewColumnType = z114.union([
|
|
3554
|
+
z114.literal("BaseProperty"),
|
|
3555
|
+
z114.literal("PropertyDefinition"),
|
|
3556
|
+
z114.literal("Theme")
|
|
3557
|
+
]);
|
|
3558
|
+
var ElementViewColumnSharedAttributes = z114.object({
|
|
3559
|
+
id: z114.string(),
|
|
3560
|
+
persistentId: z114.string(),
|
|
3561
|
+
elementDataViewId: z114.string(),
|
|
3562
|
+
sortPosition: z114.number(),
|
|
3563
|
+
width: z114.number()
|
|
3557
3564
|
});
|
|
3558
3565
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
3559
|
-
type:
|
|
3566
|
+
type: z114.literal("BaseProperty"),
|
|
3560
3567
|
basePropertyType: ElementViewBaseColumnType
|
|
3561
3568
|
});
|
|
3562
3569
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
3563
|
-
type:
|
|
3564
|
-
propertyDefinitionId:
|
|
3570
|
+
type: z114.literal("PropertyDefinition"),
|
|
3571
|
+
propertyDefinitionId: z114.string()
|
|
3565
3572
|
});
|
|
3566
3573
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
3567
|
-
type:
|
|
3568
|
-
themeId:
|
|
3574
|
+
type: z114.literal("Theme"),
|
|
3575
|
+
themeId: z114.string()
|
|
3569
3576
|
});
|
|
3570
|
-
var ElementViewColumn =
|
|
3577
|
+
var ElementViewColumn = z114.discriminatedUnion("type", [
|
|
3571
3578
|
ElementViewBasePropertyColumn,
|
|
3572
3579
|
ElementViewPropertyDefinitionColumn,
|
|
3573
3580
|
ElementViewThemeColumn
|
|
3574
3581
|
]);
|
|
3575
|
-
var ElementView =
|
|
3576
|
-
id: z114.string(),
|
|
3577
|
-
persistentId: z114.string(),
|
|
3578
|
-
designSystemVersionId: z114.string(),
|
|
3579
|
-
name: z114.string(),
|
|
3580
|
-
description: z114.string(),
|
|
3581
|
-
targetElementType: ElementPropertyTargetType,
|
|
3582
|
-
isDefault: z114.boolean()
|
|
3583
|
-
});
|
|
3584
|
-
var Brand = z115.object({
|
|
3582
|
+
var ElementView = z115.object({
|
|
3585
3583
|
id: z115.string(),
|
|
3586
|
-
designSystemVersionId: z115.string(),
|
|
3587
3584
|
persistentId: z115.string(),
|
|
3585
|
+
designSystemVersionId: z115.string(),
|
|
3588
3586
|
name: z115.string(),
|
|
3589
|
-
description: z115.string()
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
var DesignSystemSwitcher = z116.object({
|
|
3593
|
-
isEnabled: z116.boolean(),
|
|
3594
|
-
designSystemIds: z116.array(z116.string())
|
|
3587
|
+
description: z115.string(),
|
|
3588
|
+
targetElementType: ElementPropertyTargetType,
|
|
3589
|
+
isDefault: z115.boolean()
|
|
3595
3590
|
});
|
|
3596
|
-
var
|
|
3591
|
+
var Brand = z116.object({
|
|
3597
3592
|
id: z116.string(),
|
|
3598
|
-
|
|
3593
|
+
designSystemVersionId: z116.string(),
|
|
3594
|
+
persistentId: z116.string(),
|
|
3599
3595
|
name: z116.string(),
|
|
3600
|
-
description: z116.string()
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3596
|
+
description: z116.string()
|
|
3597
|
+
});
|
|
3598
|
+
var DesignSystemAccessMode = z117.enum(["Open", "InviteOnly"]);
|
|
3599
|
+
var DesignSystemSwitcher = z117.object({
|
|
3600
|
+
isEnabled: z117.boolean(),
|
|
3601
|
+
designSystemIds: z117.array(z117.string())
|
|
3602
|
+
});
|
|
3603
|
+
var DesignSystem = z117.object({
|
|
3604
|
+
id: z117.string(),
|
|
3605
|
+
workspaceId: z117.string(),
|
|
3606
|
+
name: z117.string(),
|
|
3607
|
+
description: z117.string(),
|
|
3608
|
+
docExporterId: nullishToOptional(z117.string()),
|
|
3609
|
+
docSlug: z117.string(),
|
|
3610
|
+
docUserSlug: nullishToOptional(z117.string()),
|
|
3611
|
+
docSlugDeprecated: z117.string(),
|
|
3612
|
+
isPublic: z117.boolean(),
|
|
3613
|
+
isMultibrand: z117.boolean(),
|
|
3614
|
+
docViewUrl: nullishToOptional(z117.string()),
|
|
3615
|
+
basePrefixes: z117.array(z117.string()),
|
|
3609
3616
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3610
|
-
isApprovalFeatureEnabled:
|
|
3611
|
-
approvalRequiredForPublishing:
|
|
3617
|
+
isApprovalFeatureEnabled: z117.boolean(),
|
|
3618
|
+
approvalRequiredForPublishing: z117.boolean(),
|
|
3612
3619
|
accessMode: DesignSystemAccessMode,
|
|
3613
|
-
createdAt:
|
|
3614
|
-
updatedAt:
|
|
3620
|
+
createdAt: z117.coerce.date(),
|
|
3621
|
+
updatedAt: z117.coerce.date()
|
|
3615
3622
|
});
|
|
3616
3623
|
var DS_NAME_MIN_LENGTH = 2;
|
|
3617
3624
|
var DS_NAME_MAX_LENGTH = 64;
|
|
3618
3625
|
var DS_DESC_MAX_LENGTH = 2048;
|
|
3619
|
-
var DesignSystemUpdateInputMetadata =
|
|
3620
|
-
name:
|
|
3621
|
-
description:
|
|
3626
|
+
var DesignSystemUpdateInputMetadata = z118.object({
|
|
3627
|
+
name: z118.string().min(DS_NAME_MIN_LENGTH).max(DS_NAME_MAX_LENGTH).trim().optional(),
|
|
3628
|
+
description: z118.string().max(DS_DESC_MAX_LENGTH).trim().optional()
|
|
3622
3629
|
});
|
|
3623
3630
|
var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
3624
3631
|
id: true,
|
|
@@ -3633,173 +3640,173 @@ var DesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
3633
3640
|
var DS_NAME_MIN_LENGTH2 = 2;
|
|
3634
3641
|
var DS_NAME_MAX_LENGTH2 = 64;
|
|
3635
3642
|
var DS_DESC_MAX_LENGTH2 = 64;
|
|
3636
|
-
var DesignSystemCreateInputMetadata =
|
|
3637
|
-
name:
|
|
3638
|
-
description:
|
|
3643
|
+
var DesignSystemCreateInputMetadata = z119.object({
|
|
3644
|
+
name: z119.string().min(DS_NAME_MIN_LENGTH2).max(DS_NAME_MAX_LENGTH2).trim(),
|
|
3645
|
+
description: z119.string().max(DS_DESC_MAX_LENGTH2).trim()
|
|
3639
3646
|
});
|
|
3640
|
-
var DesignSystemCreateInput =
|
|
3647
|
+
var DesignSystemCreateInput = z119.object({
|
|
3641
3648
|
meta: DesignSystemCreateInputMetadata,
|
|
3642
|
-
workspaceId:
|
|
3643
|
-
isPublic:
|
|
3644
|
-
basePrefixes:
|
|
3645
|
-
docUserSlug:
|
|
3646
|
-
source:
|
|
3649
|
+
workspaceId: z119.string(),
|
|
3650
|
+
isPublic: z119.boolean().optional(),
|
|
3651
|
+
basePrefixes: z119.array(z119.string()).optional(),
|
|
3652
|
+
docUserSlug: z119.string().nullish().optional(),
|
|
3653
|
+
source: z119.array(z119.string()).optional()
|
|
3647
3654
|
});
|
|
3648
|
-
var ExporterPropertyImageValue =
|
|
3655
|
+
var ExporterPropertyImageValue = z120.object({
|
|
3649
3656
|
asset: PageBlockAsset.optional(),
|
|
3650
|
-
assetId:
|
|
3651
|
-
assetUrl:
|
|
3652
|
-
});
|
|
3653
|
-
var ExporterPropertyValue =
|
|
3654
|
-
key:
|
|
3655
|
-
value:
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3657
|
+
assetId: z120.string().optional(),
|
|
3658
|
+
assetUrl: z120.string().optional()
|
|
3659
|
+
});
|
|
3660
|
+
var ExporterPropertyValue = z120.object({
|
|
3661
|
+
key: z120.string(),
|
|
3662
|
+
value: z120.union([
|
|
3663
|
+
z120.number(),
|
|
3664
|
+
z120.string(),
|
|
3665
|
+
z120.boolean(),
|
|
3659
3666
|
ExporterPropertyImageValue,
|
|
3660
3667
|
ColorTokenData,
|
|
3661
3668
|
TypographyTokenData
|
|
3662
3669
|
])
|
|
3663
3670
|
});
|
|
3664
|
-
var ExporterPropertyValuesCollection =
|
|
3665
|
-
id: z119.string(),
|
|
3666
|
-
designSystemId: z119.string(),
|
|
3667
|
-
exporterId: z119.string(),
|
|
3668
|
-
values: z119.array(ExporterPropertyValue)
|
|
3669
|
-
});
|
|
3670
|
-
var PublishedDocPage = z120.object({
|
|
3671
|
+
var ExporterPropertyValuesCollection = z120.object({
|
|
3671
3672
|
id: z120.string(),
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
pathV2: z120.string(),
|
|
3676
|
-
storagePath: z120.string(),
|
|
3677
|
-
locale: z120.string().optional(),
|
|
3678
|
-
isPrivate: z120.boolean(),
|
|
3679
|
-
isHidden: z120.boolean(),
|
|
3680
|
-
createdAt: z120.coerce.date(),
|
|
3681
|
-
updatedAt: z120.coerce.date()
|
|
3673
|
+
designSystemId: z120.string(),
|
|
3674
|
+
exporterId: z120.string(),
|
|
3675
|
+
values: z120.array(ExporterPropertyValue)
|
|
3682
3676
|
});
|
|
3683
|
-
var
|
|
3684
|
-
var PublishedDocEnvironment = z121.enum(publishedDocEnvironments);
|
|
3685
|
-
var PublishedDocsChecksums = z121.record(z121.string());
|
|
3686
|
-
var PublishedDocRoutingVersion = z121.enum(["1", "2"]);
|
|
3687
|
-
var PublishedDoc = z121.object({
|
|
3677
|
+
var PublishedDocPage = z121.object({
|
|
3688
3678
|
id: z121.string(),
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
isDefault: z121.boolean(),
|
|
3694
|
-
isPublic: z121.boolean(),
|
|
3695
|
-
environment: PublishedDocEnvironment,
|
|
3696
|
-
checksums: PublishedDocsChecksums,
|
|
3679
|
+
publishedDocId: z121.string(),
|
|
3680
|
+
pageShortPersistentId: z121.string(),
|
|
3681
|
+
pathV1: z121.string(),
|
|
3682
|
+
pathV2: z121.string(),
|
|
3697
3683
|
storagePath: z121.string(),
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
assetCount: z121.number()
|
|
3684
|
+
locale: z121.string().optional(),
|
|
3685
|
+
isPrivate: z121.boolean(),
|
|
3686
|
+
isHidden: z121.boolean(),
|
|
3687
|
+
createdAt: z121.coerce.date(),
|
|
3688
|
+
updatedAt: z121.coerce.date()
|
|
3704
3689
|
});
|
|
3705
|
-
var
|
|
3690
|
+
var publishedDocEnvironments = ["Live", "Preview"];
|
|
3691
|
+
var PublishedDocEnvironment = z122.enum(publishedDocEnvironments);
|
|
3692
|
+
var PublishedDocsChecksums = z122.record(z122.string());
|
|
3693
|
+
var PublishedDocRoutingVersion = z122.enum(["1", "2"]);
|
|
3694
|
+
var PublishedDoc = z122.object({
|
|
3706
3695
|
id: z122.string(),
|
|
3707
|
-
|
|
3696
|
+
designSystemVersionId: z122.string(),
|
|
3708
3697
|
createdAt: z122.coerce.date(),
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3698
|
+
updatedAt: z122.coerce.date(),
|
|
3699
|
+
lastPublishedAt: z122.coerce.date(),
|
|
3700
|
+
isDefault: z122.boolean(),
|
|
3701
|
+
isPublic: z122.boolean(),
|
|
3702
|
+
environment: PublishedDocEnvironment,
|
|
3703
|
+
checksums: PublishedDocsChecksums,
|
|
3704
|
+
storagePath: z122.string(),
|
|
3705
|
+
wasMigrated: z122.boolean(),
|
|
3706
|
+
routingVersion: PublishedDocRoutingVersion,
|
|
3707
|
+
usesLocalizations: z122.boolean(),
|
|
3708
|
+
wasPublishedWithLocalizations: z122.boolean(),
|
|
3709
|
+
tokenCount: z122.number(),
|
|
3710
|
+
assetCount: z122.number()
|
|
3711
|
+
});
|
|
3712
|
+
var DesignSystemVersion = z123.object({
|
|
3713
|
+
id: z123.string(),
|
|
3714
|
+
version: z123.string(),
|
|
3715
|
+
createdAt: z123.coerce.date(),
|
|
3716
|
+
designSystemId: z123.string(),
|
|
3717
|
+
name: z123.string(),
|
|
3718
|
+
comment: z123.string(),
|
|
3719
|
+
isReadonly: z123.boolean(),
|
|
3720
|
+
changeLog: z123.string(),
|
|
3721
|
+
parentId: z123.string().optional(),
|
|
3722
|
+
isDraftsFeatureAdopted: z123.boolean()
|
|
3723
|
+
});
|
|
3724
|
+
var VersionCreationJobStatus = z123.enum(["Success", "InProgress", "Error"]);
|
|
3725
|
+
var VersionCreationJob = z123.object({
|
|
3726
|
+
id: z123.string(),
|
|
3727
|
+
version: z123.string(),
|
|
3728
|
+
designSystemId: z123.string(),
|
|
3729
|
+
designSystemVersionId: nullishToOptional(z123.string()),
|
|
3723
3730
|
status: VersionCreationJobStatus,
|
|
3724
|
-
errorMessage: nullishToOptional(
|
|
3731
|
+
errorMessage: nullishToOptional(z123.string())
|
|
3725
3732
|
});
|
|
3726
3733
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
3727
3734
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
3728
|
-
var ExportJobDocumentationChanges =
|
|
3729
|
-
pagePersistentIds:
|
|
3730
|
-
groupPersistentIds:
|
|
3735
|
+
var ExportJobDocumentationChanges = z124.object({
|
|
3736
|
+
pagePersistentIds: z124.string().array(),
|
|
3737
|
+
groupPersistentIds: z124.string().array()
|
|
3731
3738
|
});
|
|
3732
|
-
var ExporterDestinationDocs =
|
|
3739
|
+
var ExporterDestinationDocs = z124.object({
|
|
3733
3740
|
environment: PublishedDocEnvironment,
|
|
3734
3741
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
3735
3742
|
});
|
|
3736
|
-
var ExporterDestinationS3 =
|
|
3737
|
-
var ExporterDestinationGithub =
|
|
3738
|
-
credentialId:
|
|
3743
|
+
var ExporterDestinationS3 = z124.object({});
|
|
3744
|
+
var ExporterDestinationGithub = z124.object({
|
|
3745
|
+
credentialId: z124.string().optional(),
|
|
3739
3746
|
// Repository
|
|
3740
|
-
url:
|
|
3747
|
+
url: z124.string(),
|
|
3741
3748
|
// Location
|
|
3742
|
-
branch:
|
|
3743
|
-
relativePath: nullishToOptional(
|
|
3749
|
+
branch: z124.string(),
|
|
3750
|
+
relativePath: nullishToOptional(z124.string()),
|
|
3744
3751
|
// Commit metadata
|
|
3745
|
-
commitAuthorName: nullishToOptional(
|
|
3746
|
-
commitAuthorEmail: nullishToOptional(
|
|
3752
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
3753
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
3747
3754
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3748
|
-
connectionId: nullishToOptional(
|
|
3749
|
-
userId: nullishToOptional(
|
|
3755
|
+
connectionId: nullishToOptional(z124.string()),
|
|
3756
|
+
userId: nullishToOptional(z124.number())
|
|
3750
3757
|
});
|
|
3751
|
-
var ExporterDestinationAzure =
|
|
3752
|
-
credentialId:
|
|
3758
|
+
var ExporterDestinationAzure = z124.object({
|
|
3759
|
+
credentialId: z124.string().optional(),
|
|
3753
3760
|
// Repository
|
|
3754
|
-
organizationId:
|
|
3755
|
-
projectId:
|
|
3756
|
-
repositoryId:
|
|
3761
|
+
organizationId: z124.string(),
|
|
3762
|
+
projectId: z124.string(),
|
|
3763
|
+
repositoryId: z124.string(),
|
|
3757
3764
|
// Commit metadata
|
|
3758
|
-
commitAuthorName: nullishToOptional(
|
|
3759
|
-
commitAuthorEmail: nullishToOptional(
|
|
3765
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
3766
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
3760
3767
|
// Location
|
|
3761
|
-
branch:
|
|
3762
|
-
relativePath: nullishToOptional(
|
|
3768
|
+
branch: z124.string(),
|
|
3769
|
+
relativePath: nullishToOptional(z124.string()),
|
|
3763
3770
|
// Maybe not needed
|
|
3764
|
-
url: nullishToOptional(
|
|
3771
|
+
url: nullishToOptional(z124.string()),
|
|
3765
3772
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3766
|
-
connectionId: nullishToOptional(
|
|
3767
|
-
userId: nullishToOptional(
|
|
3773
|
+
connectionId: nullishToOptional(z124.string()),
|
|
3774
|
+
userId: nullishToOptional(z124.number())
|
|
3768
3775
|
});
|
|
3769
|
-
var ExporterDestinationGitlab =
|
|
3770
|
-
credentialId:
|
|
3776
|
+
var ExporterDestinationGitlab = z124.object({
|
|
3777
|
+
credentialId: z124.string().optional(),
|
|
3771
3778
|
// Repository
|
|
3772
|
-
projectId:
|
|
3779
|
+
projectId: z124.string(),
|
|
3773
3780
|
// Commit metadata
|
|
3774
|
-
commitAuthorName: nullishToOptional(
|
|
3775
|
-
commitAuthorEmail: nullishToOptional(
|
|
3781
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
3782
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
3776
3783
|
// Location
|
|
3777
|
-
branch:
|
|
3778
|
-
relativePath: nullishToOptional(
|
|
3784
|
+
branch: z124.string(),
|
|
3785
|
+
relativePath: nullishToOptional(z124.string()),
|
|
3779
3786
|
// Maybe not needed
|
|
3780
|
-
url: nullishToOptional(
|
|
3787
|
+
url: nullishToOptional(z124.string()),
|
|
3781
3788
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3782
|
-
connectionId: nullishToOptional(
|
|
3783
|
-
userId: nullishToOptional(
|
|
3789
|
+
connectionId: nullishToOptional(z124.string()),
|
|
3790
|
+
userId: nullishToOptional(z124.number())
|
|
3784
3791
|
});
|
|
3785
|
-
var ExporterDestinationBitbucket =
|
|
3786
|
-
credentialId:
|
|
3792
|
+
var ExporterDestinationBitbucket = z124.object({
|
|
3793
|
+
credentialId: z124.string().optional(),
|
|
3787
3794
|
// Repository
|
|
3788
|
-
workspaceSlug:
|
|
3789
|
-
projectKey:
|
|
3790
|
-
repoSlug:
|
|
3795
|
+
workspaceSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3796
|
+
projectKey: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3797
|
+
repoSlug: z124.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3791
3798
|
// Commit metadata
|
|
3792
|
-
commitAuthorName: nullishToOptional(
|
|
3793
|
-
commitAuthorEmail: nullishToOptional(
|
|
3799
|
+
commitAuthorName: nullishToOptional(z124.string()),
|
|
3800
|
+
commitAuthorEmail: nullishToOptional(z124.string()),
|
|
3794
3801
|
// Location
|
|
3795
|
-
branch:
|
|
3796
|
-
relativePath: nullishToOptional(
|
|
3802
|
+
branch: z124.string(),
|
|
3803
|
+
relativePath: nullishToOptional(z124.string()),
|
|
3797
3804
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3798
|
-
connectionId: nullishToOptional(
|
|
3799
|
-
userId: nullishToOptional(
|
|
3805
|
+
connectionId: nullishToOptional(z124.string()),
|
|
3806
|
+
userId: nullishToOptional(z124.number())
|
|
3800
3807
|
});
|
|
3801
|
-
var ExportDestinationsMap =
|
|
3802
|
-
webhookUrl:
|
|
3808
|
+
var ExportDestinationsMap = z124.object({
|
|
3809
|
+
webhookUrl: z124.string().optional(),
|
|
3803
3810
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
3804
3811
|
destinationS3: ExporterDestinationS3.optional(),
|
|
3805
3812
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -3807,92 +3814,92 @@ var ExportDestinationsMap = z123.object({
|
|
|
3807
3814
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
3808
3815
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
3809
3816
|
});
|
|
3810
|
-
var PipelineEventType =
|
|
3811
|
-
var PipelineDestinationGitType =
|
|
3812
|
-
var PipelineDestinationExtraType =
|
|
3813
|
-
var PipelineDestinationType =
|
|
3814
|
-
var Pipeline =
|
|
3815
|
-
id:
|
|
3816
|
-
name:
|
|
3817
|
+
var PipelineEventType = z125.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
3818
|
+
var PipelineDestinationGitType = z125.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
3819
|
+
var PipelineDestinationExtraType = z125.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
3820
|
+
var PipelineDestinationType = z125.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
3821
|
+
var Pipeline = z125.object({
|
|
3822
|
+
id: z125.string(),
|
|
3823
|
+
name: z125.string(),
|
|
3817
3824
|
eventType: PipelineEventType,
|
|
3818
|
-
isEnabled:
|
|
3819
|
-
workspaceId:
|
|
3820
|
-
designSystemId:
|
|
3821
|
-
exporterId:
|
|
3822
|
-
brandPersistentId:
|
|
3823
|
-
themePersistentId:
|
|
3825
|
+
isEnabled: z125.boolean(),
|
|
3826
|
+
workspaceId: z125.string(),
|
|
3827
|
+
designSystemId: z125.string(),
|
|
3828
|
+
exporterId: z125.string(),
|
|
3829
|
+
brandPersistentId: z125.string().optional(),
|
|
3830
|
+
themePersistentId: z125.string().optional(),
|
|
3824
3831
|
// Destinations
|
|
3825
3832
|
...ExportDestinationsMap.shape
|
|
3826
3833
|
});
|
|
3827
|
-
var ExportJobDump =
|
|
3828
|
-
id:
|
|
3829
|
-
createdAt:
|
|
3830
|
-
finishedAt:
|
|
3831
|
-
exportArtefacts:
|
|
3834
|
+
var ExportJobDump = z126.object({
|
|
3835
|
+
id: z126.string(),
|
|
3836
|
+
createdAt: z126.coerce.date(),
|
|
3837
|
+
finishedAt: z126.coerce.date(),
|
|
3838
|
+
exportArtefacts: z126.string()
|
|
3832
3839
|
});
|
|
3833
|
-
var CodeIntegrationDump =
|
|
3840
|
+
var CodeIntegrationDump = z126.object({
|
|
3834
3841
|
exporters: Exporter.array(),
|
|
3835
3842
|
pipelines: Pipeline.array(),
|
|
3836
3843
|
exportJobs: ExportJobDump.array()
|
|
3837
3844
|
});
|
|
3838
3845
|
var DesignSystemVersionRoom = Entity.extend({
|
|
3839
|
-
designSystemVersionId:
|
|
3840
|
-
liveblocksId:
|
|
3841
|
-
});
|
|
3842
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
3843
|
-
routingVersion:
|
|
3844
|
-
isDraftFeatureAdopted:
|
|
3845
|
-
isApprovalFeatureEnabled:
|
|
3846
|
-
approvalRequiredForPublishing:
|
|
3847
|
-
});
|
|
3848
|
-
var DesignSystemVersionRoomInitialState =
|
|
3849
|
-
pages:
|
|
3850
|
-
groups:
|
|
3851
|
-
pageSnapshots:
|
|
3852
|
-
groupSnapshots:
|
|
3853
|
-
pageApprovals:
|
|
3846
|
+
designSystemVersionId: z127.string(),
|
|
3847
|
+
liveblocksId: z127.string()
|
|
3848
|
+
});
|
|
3849
|
+
var DesignSystemVersionRoomInternalSettings = z127.object({
|
|
3850
|
+
routingVersion: z127.string(),
|
|
3851
|
+
isDraftFeatureAdopted: z127.boolean(),
|
|
3852
|
+
isApprovalFeatureEnabled: z127.boolean(),
|
|
3853
|
+
approvalRequiredForPublishing: z127.boolean()
|
|
3854
|
+
});
|
|
3855
|
+
var DesignSystemVersionRoomInitialState = z127.object({
|
|
3856
|
+
pages: z127.array(DocumentationPageV2),
|
|
3857
|
+
groups: z127.array(ElementGroup),
|
|
3858
|
+
pageSnapshots: z127.array(DocumentationPageSnapshot),
|
|
3859
|
+
groupSnapshots: z127.array(ElementGroupSnapshot),
|
|
3860
|
+
pageApprovals: z127.array(DocumentationPageApproval),
|
|
3854
3861
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
3855
3862
|
});
|
|
3856
|
-
var DesignSystemVersionRoomUpdate =
|
|
3857
|
-
pages:
|
|
3858
|
-
groups:
|
|
3859
|
-
pageIdsToDelete:
|
|
3860
|
-
groupIdsToDelete:
|
|
3861
|
-
pageSnapshots:
|
|
3862
|
-
groupSnapshots:
|
|
3863
|
-
pageSnapshotIdsToDelete:
|
|
3864
|
-
groupSnapshotIdsToDelete:
|
|
3865
|
-
pageHashesToUpdate:
|
|
3866
|
-
pageApprovals:
|
|
3867
|
-
pageApprovalIdsToDelete:
|
|
3863
|
+
var DesignSystemVersionRoomUpdate = z127.object({
|
|
3864
|
+
pages: z127.array(DocumentationPageV2),
|
|
3865
|
+
groups: z127.array(ElementGroup),
|
|
3866
|
+
pageIdsToDelete: z127.array(z127.string()),
|
|
3867
|
+
groupIdsToDelete: z127.array(z127.string()),
|
|
3868
|
+
pageSnapshots: z127.array(DocumentationPageSnapshot),
|
|
3869
|
+
groupSnapshots: z127.array(ElementGroupSnapshot),
|
|
3870
|
+
pageSnapshotIdsToDelete: z127.array(z127.string()),
|
|
3871
|
+
groupSnapshotIdsToDelete: z127.array(z127.string()),
|
|
3872
|
+
pageHashesToUpdate: z127.record(z127.string(), z127.string()),
|
|
3873
|
+
pageApprovals: z127.array(DocumentationPageApproval),
|
|
3874
|
+
pageApprovalIdsToDelete: z127.array(z127.string())
|
|
3868
3875
|
});
|
|
3869
3876
|
var DocumentationPageRoom = Entity.extend({
|
|
3870
|
-
designSystemVersionId:
|
|
3871
|
-
documentationPageId:
|
|
3872
|
-
liveblocksId:
|
|
3873
|
-
isDirty:
|
|
3877
|
+
designSystemVersionId: z128.string(),
|
|
3878
|
+
documentationPageId: z128.string(),
|
|
3879
|
+
liveblocksId: z128.string(),
|
|
3880
|
+
isDirty: z128.boolean()
|
|
3874
3881
|
});
|
|
3875
|
-
var DocumentationPageRoomState =
|
|
3876
|
-
pageItems:
|
|
3882
|
+
var DocumentationPageRoomState = z128.object({
|
|
3883
|
+
pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3877
3884
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
3878
3885
|
});
|
|
3879
|
-
var DocumentationPageRoomRoomUpdate =
|
|
3886
|
+
var DocumentationPageRoomRoomUpdate = z128.object({
|
|
3880
3887
|
page: DocumentationPageV2,
|
|
3881
3888
|
pageParent: ElementGroup
|
|
3882
3889
|
});
|
|
3883
3890
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
3884
|
-
pageItems:
|
|
3885
|
-
blockDefinitions:
|
|
3891
|
+
pageItems: z128.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3892
|
+
blockDefinitions: z128.array(PageBlockDefinition)
|
|
3886
3893
|
});
|
|
3887
|
-
var RestoredDocumentationPage =
|
|
3894
|
+
var RestoredDocumentationPage = z128.object({
|
|
3888
3895
|
page: DocumentationPageV2,
|
|
3889
3896
|
pageParent: ElementGroup,
|
|
3890
3897
|
pageContent: DocumentationPageContentData,
|
|
3891
|
-
contentHash:
|
|
3892
|
-
snapshotId:
|
|
3893
|
-
roomId:
|
|
3898
|
+
contentHash: z128.string(),
|
|
3899
|
+
snapshotId: z128.string(),
|
|
3900
|
+
roomId: z128.string().optional()
|
|
3894
3901
|
});
|
|
3895
|
-
var RestoredDocumentationGroup =
|
|
3902
|
+
var RestoredDocumentationGroup = z128.object({
|
|
3896
3903
|
group: ElementGroup,
|
|
3897
3904
|
parent: ElementGroup
|
|
3898
3905
|
});
|
|
@@ -3902,28 +3909,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
3902
3909
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
3903
3910
|
return RoomTypeEnum2;
|
|
3904
3911
|
})(RoomTypeEnum || {});
|
|
3905
|
-
var RoomTypeSchema =
|
|
3912
|
+
var RoomTypeSchema = z129.nativeEnum(RoomTypeEnum);
|
|
3906
3913
|
var RoomType = RoomTypeSchema.enum;
|
|
3907
3914
|
var WorkspaceRoom = Entity.extend({
|
|
3908
|
-
workspaceId:
|
|
3909
|
-
liveblocksId:
|
|
3915
|
+
workspaceId: z130.string(),
|
|
3916
|
+
liveblocksId: z130.string()
|
|
3910
3917
|
});
|
|
3911
|
-
var PublishedDocsDump =
|
|
3918
|
+
var PublishedDocsDump = z131.object({
|
|
3912
3919
|
documentation: PublishedDoc,
|
|
3913
3920
|
pages: PublishedDocPage.array()
|
|
3914
3921
|
});
|
|
3915
|
-
var DocumentationThreadDump =
|
|
3922
|
+
var DocumentationThreadDump = z132.object({
|
|
3916
3923
|
thread: DocumentationCommentThread,
|
|
3917
3924
|
comments: DocumentationComment.array()
|
|
3918
3925
|
});
|
|
3919
|
-
var DocumentationPageRoomDump =
|
|
3926
|
+
var DocumentationPageRoomDump = z132.object({
|
|
3920
3927
|
room: DocumentationPageRoom,
|
|
3921
3928
|
threads: DocumentationThreadDump.array()
|
|
3922
3929
|
});
|
|
3923
|
-
var DesignSystemVersionMultiplayerDump =
|
|
3930
|
+
var DesignSystemVersionMultiplayerDump = z132.object({
|
|
3924
3931
|
documentationPages: DocumentationPageRoomDump.array()
|
|
3925
3932
|
});
|
|
3926
|
-
var DesignSystemVersionDump =
|
|
3933
|
+
var DesignSystemVersionDump = z132.object({
|
|
3927
3934
|
version: DesignSystemVersion,
|
|
3928
3935
|
brands: Brand.array(),
|
|
3929
3936
|
elements: DesignElement.array(),
|
|
@@ -3936,142 +3943,142 @@ var DesignSystemVersionDump = z131.object({
|
|
|
3936
3943
|
publishedDocumentations: PublishedDocsDump.array(),
|
|
3937
3944
|
assetReferences: AssetReference.array()
|
|
3938
3945
|
});
|
|
3939
|
-
var DesignSystemDump =
|
|
3946
|
+
var DesignSystemDump = z133.object({
|
|
3940
3947
|
designSystem: DesignSystem,
|
|
3941
3948
|
dataSources: DataSource.array(),
|
|
3942
3949
|
versions: DesignSystemVersionDump.array(),
|
|
3943
3950
|
customDomain: CustomDomain.optional(),
|
|
3944
3951
|
files: Asset.array()
|
|
3945
3952
|
});
|
|
3946
|
-
var IntegrationAuthType =
|
|
3947
|
-
var ExternalServiceType =
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
+
var IntegrationAuthType = z134.union([z134.literal("OAuth2"), z134.literal("PAT")]);
|
|
3954
|
+
var ExternalServiceType = z134.union([
|
|
3955
|
+
z134.literal("figma"),
|
|
3956
|
+
z134.literal("github"),
|
|
3957
|
+
z134.literal("azure"),
|
|
3958
|
+
z134.literal("gitlab"),
|
|
3959
|
+
z134.literal("bitbucket")
|
|
3953
3960
|
]);
|
|
3954
|
-
var IntegrationUserInfo =
|
|
3955
|
-
id:
|
|
3956
|
-
handle:
|
|
3957
|
-
avatarUrl:
|
|
3958
|
-
email:
|
|
3961
|
+
var IntegrationUserInfo = z134.object({
|
|
3962
|
+
id: z134.string(),
|
|
3963
|
+
handle: z134.string().optional(),
|
|
3964
|
+
avatarUrl: z134.string().optional(),
|
|
3965
|
+
email: z134.string().optional(),
|
|
3959
3966
|
authType: IntegrationAuthType.optional(),
|
|
3960
|
-
customUrl:
|
|
3967
|
+
customUrl: z134.string().optional()
|
|
3961
3968
|
});
|
|
3962
|
-
var UserLinkedIntegrations =
|
|
3969
|
+
var UserLinkedIntegrations = z134.object({
|
|
3963
3970
|
figma: IntegrationUserInfo.optional(),
|
|
3964
3971
|
github: IntegrationUserInfo.array().optional(),
|
|
3965
3972
|
azure: IntegrationUserInfo.array().optional(),
|
|
3966
3973
|
gitlab: IntegrationUserInfo.array().optional(),
|
|
3967
3974
|
bitbucket: IntegrationUserInfo.array().optional()
|
|
3968
3975
|
});
|
|
3969
|
-
var UserAnalyticsCleanupSchedule =
|
|
3970
|
-
userId:
|
|
3971
|
-
createdAt:
|
|
3972
|
-
deleteAt:
|
|
3976
|
+
var UserAnalyticsCleanupSchedule = z135.object({
|
|
3977
|
+
userId: z135.string(),
|
|
3978
|
+
createdAt: z135.coerce.date(),
|
|
3979
|
+
deleteAt: z135.coerce.date()
|
|
3973
3980
|
});
|
|
3974
3981
|
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3975
3982
|
createdAt: true
|
|
3976
3983
|
});
|
|
3977
|
-
var CreateUserInput =
|
|
3978
|
-
email:
|
|
3979
|
-
name:
|
|
3980
|
-
username:
|
|
3981
|
-
});
|
|
3982
|
-
var UserIdentity = z136.object({
|
|
3983
|
-
id: z136.string(),
|
|
3984
|
-
userId: z136.string()
|
|
3984
|
+
var CreateUserInput = z136.object({
|
|
3985
|
+
email: z136.string(),
|
|
3986
|
+
name: z136.string(),
|
|
3987
|
+
username: z136.string()
|
|
3985
3988
|
});
|
|
3986
|
-
var
|
|
3989
|
+
var UserIdentity = z137.object({
|
|
3987
3990
|
id: z137.string(),
|
|
3988
|
-
|
|
3989
|
-
email: z137.string(),
|
|
3990
|
-
avatar: z137.string().optional()
|
|
3991
|
+
userId: z137.string()
|
|
3991
3992
|
});
|
|
3992
|
-
var
|
|
3993
|
-
|
|
3993
|
+
var UserMinified = z138.object({
|
|
3994
|
+
id: z138.string(),
|
|
3995
|
+
name: z138.string(),
|
|
3996
|
+
email: z138.string(),
|
|
3997
|
+
avatar: z138.string().optional()
|
|
3994
3998
|
});
|
|
3995
|
-
var
|
|
3999
|
+
var LiveblocksNotificationSettings = z139.object({
|
|
4000
|
+
sendCommentNotificationEmails: z139.boolean()
|
|
4001
|
+
});
|
|
4002
|
+
var UserNotificationSettings = z139.object({
|
|
3996
4003
|
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3997
4004
|
});
|
|
3998
|
-
var UserOnboardingDepartment =
|
|
3999
|
-
var UserOnboardingJobLevel =
|
|
4000
|
-
var UserOnboarding =
|
|
4001
|
-
companyName:
|
|
4002
|
-
numberOfPeopleInOrg:
|
|
4003
|
-
numberOfPeopleInDesignTeam:
|
|
4005
|
+
var UserOnboardingDepartment = z140.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4006
|
+
var UserOnboardingJobLevel = z140.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4007
|
+
var UserOnboarding = z140.object({
|
|
4008
|
+
companyName: z140.string().optional(),
|
|
4009
|
+
numberOfPeopleInOrg: z140.string().optional(),
|
|
4010
|
+
numberOfPeopleInDesignTeam: z140.string().optional(),
|
|
4004
4011
|
department: UserOnboardingDepartment.optional(),
|
|
4005
|
-
jobTitle:
|
|
4006
|
-
phase:
|
|
4012
|
+
jobTitle: z140.string().optional(),
|
|
4013
|
+
phase: z140.string().optional(),
|
|
4007
4014
|
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4008
|
-
designSystemName:
|
|
4009
|
-
defaultDestination:
|
|
4010
|
-
figmaUrl:
|
|
4011
|
-
isPageDraftOnboardingFinished:
|
|
4012
|
-
isApprovalsOnboardingFinished:
|
|
4013
|
-
});
|
|
4014
|
-
var UserProfile =
|
|
4015
|
-
name:
|
|
4016
|
-
avatar:
|
|
4017
|
-
nickname:
|
|
4015
|
+
designSystemName: z140.string().optional(),
|
|
4016
|
+
defaultDestination: z140.string().optional(),
|
|
4017
|
+
figmaUrl: z140.string().optional(),
|
|
4018
|
+
isPageDraftOnboardingFinished: z140.boolean().optional(),
|
|
4019
|
+
isApprovalsOnboardingFinished: z140.boolean().optional()
|
|
4020
|
+
});
|
|
4021
|
+
var UserProfile = z140.object({
|
|
4022
|
+
name: z140.string(),
|
|
4023
|
+
avatar: z140.string().optional(),
|
|
4024
|
+
nickname: z140.string().optional(),
|
|
4018
4025
|
onboarding: UserOnboarding.optional()
|
|
4019
4026
|
});
|
|
4020
4027
|
var UserProfileUpdate = UserProfile.partial().omit({
|
|
4021
4028
|
avatar: true
|
|
4022
4029
|
});
|
|
4023
|
-
var UserTest =
|
|
4024
|
-
id: z140.string(),
|
|
4025
|
-
email: z140.string()
|
|
4026
|
-
});
|
|
4027
|
-
var User = z141.object({
|
|
4030
|
+
var UserTest = z141.object({
|
|
4028
4031
|
id: z141.string(),
|
|
4029
|
-
email: z141.string()
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4032
|
+
email: z141.string()
|
|
4033
|
+
});
|
|
4034
|
+
var User = z142.object({
|
|
4035
|
+
id: z142.string(),
|
|
4036
|
+
email: z142.string(),
|
|
4037
|
+
emailVerified: z142.boolean(),
|
|
4038
|
+
createdAt: z142.coerce.date(),
|
|
4039
|
+
trialExpiresAt: z142.coerce.date().optional(),
|
|
4033
4040
|
profile: UserProfile,
|
|
4034
4041
|
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4035
|
-
loggedOutAt:
|
|
4036
|
-
isProtected:
|
|
4037
|
-
});
|
|
4038
|
-
var IntegrationDesignSystem =
|
|
4039
|
-
designSystemId:
|
|
4040
|
-
brandId:
|
|
4041
|
-
title:
|
|
4042
|
-
userId:
|
|
4043
|
-
date:
|
|
4044
|
-
});
|
|
4045
|
-
var IntegrationCredentialsType =
|
|
4046
|
-
var IntegrationCredentialsState =
|
|
4047
|
-
var IntegrationCredentialsProfile =
|
|
4048
|
-
id: nullishToOptional(
|
|
4049
|
-
email: nullishToOptional(
|
|
4050
|
-
handle: nullishToOptional(
|
|
4051
|
-
type: nullishToOptional(
|
|
4052
|
-
avatarUrl: nullishToOptional(
|
|
4053
|
-
organization: nullishToOptional(
|
|
4054
|
-
collection: nullishToOptional(
|
|
4055
|
-
});
|
|
4056
|
-
var IntegrationCredentials =
|
|
4057
|
-
id:
|
|
4042
|
+
loggedOutAt: z142.coerce.date().optional(),
|
|
4043
|
+
isProtected: z142.boolean()
|
|
4044
|
+
});
|
|
4045
|
+
var IntegrationDesignSystem = z143.object({
|
|
4046
|
+
designSystemId: z143.string(),
|
|
4047
|
+
brandId: z143.string(),
|
|
4048
|
+
title: z143.string().optional(),
|
|
4049
|
+
userId: z143.string().optional(),
|
|
4050
|
+
date: z143.coerce.date().optional()
|
|
4051
|
+
});
|
|
4052
|
+
var IntegrationCredentialsType = z143.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4053
|
+
var IntegrationCredentialsState = z143.enum(["Active", "Inactive"]);
|
|
4054
|
+
var IntegrationCredentialsProfile = z143.object({
|
|
4055
|
+
id: nullishToOptional(z143.string()),
|
|
4056
|
+
email: nullishToOptional(z143.string()),
|
|
4057
|
+
handle: nullishToOptional(z143.string()),
|
|
4058
|
+
type: nullishToOptional(z143.string()),
|
|
4059
|
+
avatarUrl: nullishToOptional(z143.string()),
|
|
4060
|
+
organization: nullishToOptional(z143.string()),
|
|
4061
|
+
collection: nullishToOptional(z143.string())
|
|
4062
|
+
});
|
|
4063
|
+
var IntegrationCredentials = z143.object({
|
|
4064
|
+
id: z143.string(),
|
|
4058
4065
|
type: IntegrationCredentialsType,
|
|
4059
|
-
integrationId:
|
|
4060
|
-
accessToken:
|
|
4061
|
-
userId:
|
|
4062
|
-
createdAt:
|
|
4063
|
-
refreshToken:
|
|
4064
|
-
tokenName:
|
|
4065
|
-
expiresAt:
|
|
4066
|
-
refreshedAt:
|
|
4067
|
-
username:
|
|
4068
|
-
appInstallationId:
|
|
4066
|
+
integrationId: z143.string(),
|
|
4067
|
+
accessToken: z143.string(),
|
|
4068
|
+
userId: z143.string(),
|
|
4069
|
+
createdAt: z143.coerce.date(),
|
|
4070
|
+
refreshToken: z143.string().optional(),
|
|
4071
|
+
tokenName: z143.string().optional(),
|
|
4072
|
+
expiresAt: z143.coerce.date().optional(),
|
|
4073
|
+
refreshedAt: z143.coerce.date().optional(),
|
|
4074
|
+
username: z143.string().optional(),
|
|
4075
|
+
appInstallationId: z143.string().optional(),
|
|
4069
4076
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4070
|
-
customUrl:
|
|
4077
|
+
customUrl: z143.string().optional(),
|
|
4071
4078
|
state: IntegrationCredentialsState,
|
|
4072
4079
|
user: UserMinified.optional()
|
|
4073
4080
|
});
|
|
4074
|
-
var ExtendedIntegrationType =
|
|
4081
|
+
var ExtendedIntegrationType = z143.enum([
|
|
4075
4082
|
"Figma",
|
|
4076
4083
|
"Github",
|
|
4077
4084
|
"Gitlab",
|
|
@@ -4082,26 +4089,26 @@ var ExtendedIntegrationType = z142.enum([
|
|
|
4082
4089
|
]);
|
|
4083
4090
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4084
4091
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4085
|
-
var Integration =
|
|
4086
|
-
id:
|
|
4087
|
-
workspaceId:
|
|
4092
|
+
var Integration = z143.object({
|
|
4093
|
+
id: z143.string(),
|
|
4094
|
+
workspaceId: z143.string(),
|
|
4088
4095
|
type: IntegrationType,
|
|
4089
|
-
createdAt:
|
|
4090
|
-
integrationCredentials:
|
|
4091
|
-
});
|
|
4092
|
-
var IntegrationToken =
|
|
4093
|
-
access_token:
|
|
4094
|
-
refresh_token:
|
|
4095
|
-
expires_in:
|
|
4096
|
-
token_type:
|
|
4097
|
-
token_name:
|
|
4098
|
-
token_azure_organization_name:
|
|
4096
|
+
createdAt: z143.coerce.date(),
|
|
4097
|
+
integrationCredentials: z143.array(IntegrationCredentials).optional()
|
|
4098
|
+
});
|
|
4099
|
+
var IntegrationToken = z143.object({
|
|
4100
|
+
access_token: z143.string(),
|
|
4101
|
+
refresh_token: z143.string().optional(),
|
|
4102
|
+
expires_in: z143.union([z143.number().optional(), z143.string().optional()]),
|
|
4103
|
+
token_type: z143.string().optional(),
|
|
4104
|
+
token_name: z143.string().optional(),
|
|
4105
|
+
token_azure_organization_name: z143.string().optional(),
|
|
4099
4106
|
// Azure Cloud PAT only
|
|
4100
|
-
token_azure_collection_name:
|
|
4107
|
+
token_azure_collection_name: z143.string().optional(),
|
|
4101
4108
|
// Azure Server PAT only
|
|
4102
|
-
token_bitbucket_username:
|
|
4109
|
+
token_bitbucket_username: z143.string().optional(),
|
|
4103
4110
|
// Bitbucket only
|
|
4104
|
-
custom_url:
|
|
4111
|
+
custom_url: z143.string().optional().transform((value) => {
|
|
4105
4112
|
if (!value?.trim())
|
|
4106
4113
|
return void 0;
|
|
4107
4114
|
return formatCustomUrl(value);
|
|
@@ -4137,157 +4144,157 @@ function formatCustomUrl(url) {
|
|
|
4137
4144
|
}
|
|
4138
4145
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4139
4146
|
}
|
|
4140
|
-
var NpmRegistryAuthType =
|
|
4141
|
-
var NpmRegistryType =
|
|
4142
|
-
var NpmRegistryBasicAuthConfig =
|
|
4143
|
-
authType:
|
|
4144
|
-
username:
|
|
4145
|
-
password:
|
|
4147
|
+
var NpmRegistryAuthType = z144.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
4148
|
+
var NpmRegistryType = z144.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4149
|
+
var NpmRegistryBasicAuthConfig = z144.object({
|
|
4150
|
+
authType: z144.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4151
|
+
username: z144.string(),
|
|
4152
|
+
password: z144.string()
|
|
4146
4153
|
});
|
|
4147
|
-
var NpmRegistryBearerAuthConfig =
|
|
4148
|
-
authType:
|
|
4149
|
-
accessToken:
|
|
4154
|
+
var NpmRegistryBearerAuthConfig = z144.object({
|
|
4155
|
+
authType: z144.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4156
|
+
accessToken: z144.string()
|
|
4150
4157
|
});
|
|
4151
|
-
var NpmRegistryNoAuthConfig =
|
|
4152
|
-
authType:
|
|
4158
|
+
var NpmRegistryNoAuthConfig = z144.object({
|
|
4159
|
+
authType: z144.literal(NpmRegistryAuthType.Enum.None)
|
|
4153
4160
|
});
|
|
4154
|
-
var NpmRegistrCustomAuthConfig =
|
|
4155
|
-
authType:
|
|
4156
|
-
authHeaderName:
|
|
4157
|
-
authHeaderValue:
|
|
4161
|
+
var NpmRegistrCustomAuthConfig = z144.object({
|
|
4162
|
+
authType: z144.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4163
|
+
authHeaderName: z144.string(),
|
|
4164
|
+
authHeaderValue: z144.string()
|
|
4158
4165
|
});
|
|
4159
|
-
var NpmRegistryAuthConfig =
|
|
4166
|
+
var NpmRegistryAuthConfig = z144.discriminatedUnion("authType", [
|
|
4160
4167
|
NpmRegistryBasicAuthConfig,
|
|
4161
4168
|
NpmRegistryBearerAuthConfig,
|
|
4162
4169
|
NpmRegistryNoAuthConfig,
|
|
4163
4170
|
NpmRegistrCustomAuthConfig
|
|
4164
4171
|
]);
|
|
4165
|
-
var NpmRegistryConfigBase =
|
|
4172
|
+
var NpmRegistryConfigBase = z144.object({
|
|
4166
4173
|
registryType: NpmRegistryType,
|
|
4167
|
-
enabledScopes:
|
|
4168
|
-
customRegistryUrl:
|
|
4169
|
-
bypassProxy:
|
|
4170
|
-
npmProxyRegistryConfigId:
|
|
4171
|
-
npmProxyVersion:
|
|
4174
|
+
enabledScopes: z144.array(z144.string()),
|
|
4175
|
+
customRegistryUrl: z144.string().optional(),
|
|
4176
|
+
bypassProxy: z144.boolean().default(false),
|
|
4177
|
+
npmProxyRegistryConfigId: z144.string().optional(),
|
|
4178
|
+
npmProxyVersion: z144.number().optional()
|
|
4172
4179
|
});
|
|
4173
4180
|
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4174
|
-
var SsoProvider =
|
|
4175
|
-
providerId:
|
|
4176
|
-
defaultAutoInviteValue:
|
|
4177
|
-
autoInviteDomains:
|
|
4178
|
-
skipDocsSupernovaLogin:
|
|
4179
|
-
areInvitesDisabled:
|
|
4180
|
-
isTestMode:
|
|
4181
|
-
emailDomains:
|
|
4182
|
-
metadataXml:
|
|
4181
|
+
var SsoProvider = z145.object({
|
|
4182
|
+
providerId: z145.string(),
|
|
4183
|
+
defaultAutoInviteValue: z145.boolean(),
|
|
4184
|
+
autoInviteDomains: z145.record(z145.string(), z145.boolean()),
|
|
4185
|
+
skipDocsSupernovaLogin: z145.boolean(),
|
|
4186
|
+
areInvitesDisabled: z145.boolean(),
|
|
4187
|
+
isTestMode: z145.boolean(),
|
|
4188
|
+
emailDomains: z145.array(z145.string()),
|
|
4189
|
+
metadataXml: z145.string().nullish()
|
|
4183
4190
|
});
|
|
4184
4191
|
var isValidCIDR = (value) => {
|
|
4185
4192
|
return IPCIDR.isValidAddress(value);
|
|
4186
4193
|
};
|
|
4187
|
-
var WorkspaceIpWhitelistEntry =
|
|
4188
|
-
isEnabled:
|
|
4189
|
-
name:
|
|
4190
|
-
range:
|
|
4194
|
+
var WorkspaceIpWhitelistEntry = z146.object({
|
|
4195
|
+
isEnabled: z146.boolean(),
|
|
4196
|
+
name: z146.string(),
|
|
4197
|
+
range: z146.string().refine(isValidCIDR, {
|
|
4191
4198
|
message: "Invalid IP CIDR"
|
|
4192
4199
|
})
|
|
4193
4200
|
});
|
|
4194
|
-
var WorkspaceIpSettings =
|
|
4195
|
-
isEnabledForCloud:
|
|
4196
|
-
isEnabledForDocs:
|
|
4197
|
-
entries:
|
|
4201
|
+
var WorkspaceIpSettings = z146.object({
|
|
4202
|
+
isEnabledForCloud: z146.boolean(),
|
|
4203
|
+
isEnabledForDocs: z146.boolean(),
|
|
4204
|
+
entries: z146.array(WorkspaceIpWhitelistEntry)
|
|
4198
4205
|
});
|
|
4199
|
-
var WorkspaceProfile =
|
|
4200
|
-
name:
|
|
4201
|
-
handle:
|
|
4202
|
-
color:
|
|
4203
|
-
avatar: nullishToOptional(
|
|
4206
|
+
var WorkspaceProfile = z146.object({
|
|
4207
|
+
name: z146.string(),
|
|
4208
|
+
handle: z146.string(),
|
|
4209
|
+
color: z146.string(),
|
|
4210
|
+
avatar: nullishToOptional(z146.string()),
|
|
4204
4211
|
billingDetails: nullishToOptional(BillingDetails)
|
|
4205
4212
|
});
|
|
4206
4213
|
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4207
4214
|
avatar: true
|
|
4208
4215
|
});
|
|
4209
|
-
var Workspace =
|
|
4210
|
-
id:
|
|
4216
|
+
var Workspace = z146.object({
|
|
4217
|
+
id: z146.string(),
|
|
4211
4218
|
profile: WorkspaceProfile,
|
|
4212
4219
|
subscription: Subscription,
|
|
4213
4220
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4214
4221
|
sso: nullishToOptional(SsoProvider),
|
|
4215
4222
|
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4216
4223
|
});
|
|
4217
|
-
var WorkspaceWithDesignSystems =
|
|
4224
|
+
var WorkspaceWithDesignSystems = z146.object({
|
|
4218
4225
|
workspace: Workspace,
|
|
4219
|
-
designSystems:
|
|
4226
|
+
designSystems: z146.array(DesignSystem)
|
|
4220
4227
|
});
|
|
4221
|
-
var WorkspaceDump =
|
|
4228
|
+
var WorkspaceDump = z147.object({
|
|
4222
4229
|
workspace: Workspace,
|
|
4223
4230
|
designSystems: DesignSystemDump.array(),
|
|
4224
4231
|
codeIntegration: CodeIntegrationDump,
|
|
4225
4232
|
integrations: Integration.array()
|
|
4226
4233
|
});
|
|
4227
|
-
var UserDump =
|
|
4234
|
+
var UserDump = z148.object({
|
|
4228
4235
|
user: User,
|
|
4229
4236
|
workspaces: WorkspaceDump.array()
|
|
4230
4237
|
});
|
|
4231
|
-
var NpmProxyToken =
|
|
4232
|
-
access:
|
|
4233
|
-
expiresAt:
|
|
4238
|
+
var NpmProxyToken = z149.object({
|
|
4239
|
+
access: z149.string(),
|
|
4240
|
+
expiresAt: z149.number()
|
|
4234
4241
|
});
|
|
4235
|
-
var SessionData =
|
|
4236
|
-
returnToUrl:
|
|
4242
|
+
var SessionData = z149.object({
|
|
4243
|
+
returnToUrl: z149.string().optional(),
|
|
4237
4244
|
npmProxyToken: NpmProxyToken.optional()
|
|
4238
4245
|
});
|
|
4239
|
-
var Session =
|
|
4240
|
-
id:
|
|
4241
|
-
expiresAt:
|
|
4242
|
-
userId:
|
|
4246
|
+
var Session = z149.object({
|
|
4247
|
+
id: z149.string(),
|
|
4248
|
+
expiresAt: z149.coerce.date(),
|
|
4249
|
+
userId: z149.string().nullable(),
|
|
4243
4250
|
data: SessionData
|
|
4244
4251
|
});
|
|
4245
|
-
var AuthTokens =
|
|
4246
|
-
access:
|
|
4247
|
-
refresh:
|
|
4252
|
+
var AuthTokens = z149.object({
|
|
4253
|
+
access: z149.string(),
|
|
4254
|
+
refresh: z149.string()
|
|
4248
4255
|
});
|
|
4249
|
-
var UserSession =
|
|
4256
|
+
var UserSession = z149.object({
|
|
4250
4257
|
session: Session,
|
|
4251
4258
|
user: User.nullable()
|
|
4252
4259
|
});
|
|
4253
|
-
var EventDataSourceImported =
|
|
4254
|
-
type:
|
|
4255
|
-
workspaceId: z149.string(),
|
|
4256
|
-
designSystemId: z149.string()
|
|
4257
|
-
});
|
|
4258
|
-
var EventVersionReleased = z150.object({
|
|
4259
|
-
type: z150.literal("DesignSystemVersionReleased"),
|
|
4260
|
+
var EventDataSourceImported = z150.object({
|
|
4261
|
+
type: z150.literal("DataSourceImported"),
|
|
4260
4262
|
workspaceId: z150.string(),
|
|
4261
|
-
designSystemId: z150.string()
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4263
|
+
designSystemId: z150.string()
|
|
4264
|
+
});
|
|
4265
|
+
var EventVersionReleased = z151.object({
|
|
4266
|
+
type: z151.literal("DesignSystemVersionReleased"),
|
|
4267
|
+
workspaceId: z151.string(),
|
|
4268
|
+
designSystemId: z151.string(),
|
|
4269
|
+
versionId: z151.string()
|
|
4270
|
+
});
|
|
4271
|
+
var Event = z152.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4272
|
+
var ExportJobDocumentationContext = z153.object({
|
|
4273
|
+
isSingleVersionDocs: z153.boolean(),
|
|
4274
|
+
versionSlug: z153.string(),
|
|
4268
4275
|
environment: PublishedDocEnvironment
|
|
4269
4276
|
});
|
|
4270
|
-
var ExportJobContext =
|
|
4271
|
-
apiUrl:
|
|
4272
|
-
accessToken:
|
|
4273
|
-
designSystemId:
|
|
4274
|
-
designSystemName:
|
|
4275
|
-
exporterId:
|
|
4276
|
-
versionId:
|
|
4277
|
-
brandId:
|
|
4278
|
-
themeId:
|
|
4279
|
-
exporterName:
|
|
4280
|
-
exporterPackageUrl:
|
|
4277
|
+
var ExportJobContext = z153.object({
|
|
4278
|
+
apiUrl: z153.string(),
|
|
4279
|
+
accessToken: z153.string(),
|
|
4280
|
+
designSystemId: z153.string(),
|
|
4281
|
+
designSystemName: z153.string(),
|
|
4282
|
+
exporterId: z153.string(),
|
|
4283
|
+
versionId: z153.string(),
|
|
4284
|
+
brandId: z153.string().optional(),
|
|
4285
|
+
themeId: z153.string().optional(),
|
|
4286
|
+
exporterName: z153.string(),
|
|
4287
|
+
exporterPackageUrl: z153.string(),
|
|
4281
4288
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4282
4289
|
documentation: ExportJobDocumentationContext.optional()
|
|
4283
4290
|
});
|
|
4284
|
-
var ExporterFunctionPayload =
|
|
4285
|
-
exportJobId:
|
|
4286
|
-
exportContextId:
|
|
4287
|
-
designSystemId:
|
|
4288
|
-
workspaceId:
|
|
4291
|
+
var ExporterFunctionPayload = z154.object({
|
|
4292
|
+
exportJobId: z154.string(),
|
|
4293
|
+
exportContextId: z154.string(),
|
|
4294
|
+
designSystemId: z154.string(),
|
|
4295
|
+
workspaceId: z154.string()
|
|
4289
4296
|
});
|
|
4290
|
-
var ExportJobDestinationType =
|
|
4297
|
+
var ExportJobDestinationType = z155.enum([
|
|
4291
4298
|
"s3",
|
|
4292
4299
|
"webhookUrl",
|
|
4293
4300
|
"github",
|
|
@@ -4296,30 +4303,30 @@ var ExportJobDestinationType = z154.enum([
|
|
|
4296
4303
|
"gitlab",
|
|
4297
4304
|
"bitbucket"
|
|
4298
4305
|
]);
|
|
4299
|
-
var ExportJobStatus =
|
|
4300
|
-
var ExportJobLogEntryType =
|
|
4301
|
-
var ExportJobLogEntry =
|
|
4302
|
-
id:
|
|
4303
|
-
time:
|
|
4306
|
+
var ExportJobStatus = z155.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4307
|
+
var ExportJobLogEntryType = z155.enum(["success", "info", "warning", "error", "user"]);
|
|
4308
|
+
var ExportJobLogEntry = z155.object({
|
|
4309
|
+
id: z155.string().optional(),
|
|
4310
|
+
time: z155.coerce.date(),
|
|
4304
4311
|
type: ExportJobLogEntryType,
|
|
4305
|
-
message:
|
|
4312
|
+
message: z155.string()
|
|
4306
4313
|
});
|
|
4307
|
-
var ExportJobPullRequestDestinationResult =
|
|
4308
|
-
pullRequestUrl:
|
|
4314
|
+
var ExportJobPullRequestDestinationResult = z155.object({
|
|
4315
|
+
pullRequestUrl: z155.string()
|
|
4309
4316
|
});
|
|
4310
|
-
var ExportJobS3DestinationResult =
|
|
4311
|
-
bucket:
|
|
4312
|
-
urlPrefix:
|
|
4313
|
-
path:
|
|
4314
|
-
files:
|
|
4315
|
-
url: nullishToOptional(
|
|
4316
|
-
urls: nullishToOptional(
|
|
4317
|
+
var ExportJobS3DestinationResult = z155.object({
|
|
4318
|
+
bucket: z155.string(),
|
|
4319
|
+
urlPrefix: z155.string().optional(),
|
|
4320
|
+
path: z155.string(),
|
|
4321
|
+
files: z155.array(z155.string()),
|
|
4322
|
+
url: nullishToOptional(z155.string()),
|
|
4323
|
+
urls: nullishToOptional(z155.string().array())
|
|
4317
4324
|
});
|
|
4318
|
-
var ExportJobDocsDestinationResult =
|
|
4319
|
-
url:
|
|
4325
|
+
var ExportJobDocsDestinationResult = z155.object({
|
|
4326
|
+
url: z155.string()
|
|
4320
4327
|
});
|
|
4321
|
-
var ExportJobResult =
|
|
4322
|
-
error:
|
|
4328
|
+
var ExportJobResult = z155.object({
|
|
4329
|
+
error: z155.string().optional(),
|
|
4323
4330
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4324
4331
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4325
4332
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4328,21 +4335,21 @@ var ExportJobResult = z154.object({
|
|
|
4328
4335
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4329
4336
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4330
4337
|
});
|
|
4331
|
-
var ExportJob =
|
|
4332
|
-
id:
|
|
4333
|
-
createdAt:
|
|
4334
|
-
finishedAt:
|
|
4335
|
-
designSystemId:
|
|
4336
|
-
designSystemVersionId:
|
|
4337
|
-
workspaceId:
|
|
4338
|
-
scheduleId:
|
|
4339
|
-
exporterId:
|
|
4340
|
-
brandId:
|
|
4341
|
-
themeId:
|
|
4342
|
-
estimatedExecutionTime:
|
|
4338
|
+
var ExportJob = z155.object({
|
|
4339
|
+
id: z155.string(),
|
|
4340
|
+
createdAt: z155.coerce.date(),
|
|
4341
|
+
finishedAt: z155.coerce.date().optional(),
|
|
4342
|
+
designSystemId: z155.string(),
|
|
4343
|
+
designSystemVersionId: z155.string(),
|
|
4344
|
+
workspaceId: z155.string(),
|
|
4345
|
+
scheduleId: z155.string().nullish(),
|
|
4346
|
+
exporterId: z155.string(),
|
|
4347
|
+
brandId: z155.string().optional(),
|
|
4348
|
+
themeId: z155.string().optional(),
|
|
4349
|
+
estimatedExecutionTime: z155.number().optional(),
|
|
4343
4350
|
status: ExportJobStatus,
|
|
4344
4351
|
result: ExportJobResult.optional(),
|
|
4345
|
-
createdByUserId:
|
|
4352
|
+
createdByUserId: z155.string().optional(),
|
|
4346
4353
|
// Destinations
|
|
4347
4354
|
...ExportDestinationsMap.shape
|
|
4348
4355
|
});
|
|
@@ -4356,24 +4363,24 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4356
4363
|
themeId: true,
|
|
4357
4364
|
brandId: true
|
|
4358
4365
|
}).extend({
|
|
4359
|
-
destinations:
|
|
4366
|
+
destinations: z155.array(ExportJobDestinationType),
|
|
4360
4367
|
docsEnvironment: PublishedDocEnvironment
|
|
4361
4368
|
}).partial();
|
|
4362
|
-
var ExporterWorkspaceMembershipRole =
|
|
4363
|
-
var ExporterWorkspaceMembership =
|
|
4364
|
-
id:
|
|
4365
|
-
workspaceId:
|
|
4366
|
-
exporterId:
|
|
4369
|
+
var ExporterWorkspaceMembershipRole = z156.enum(["Owner", "OwnerArchived", "User"]);
|
|
4370
|
+
var ExporterWorkspaceMembership = z157.object({
|
|
4371
|
+
id: z157.string(),
|
|
4372
|
+
workspaceId: z157.string(),
|
|
4373
|
+
exporterId: z157.string(),
|
|
4367
4374
|
role: ExporterWorkspaceMembershipRole
|
|
4368
4375
|
});
|
|
4369
|
-
var FlaggedFeature =
|
|
4370
|
-
var FeatureFlagMap =
|
|
4371
|
-
var FeatureFlag =
|
|
4372
|
-
id:
|
|
4376
|
+
var FlaggedFeature = z158.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
|
|
4377
|
+
var FeatureFlagMap = z158.record(FlaggedFeature, z158.boolean());
|
|
4378
|
+
var FeatureFlag = z158.object({
|
|
4379
|
+
id: z158.string(),
|
|
4373
4380
|
feature: FlaggedFeature,
|
|
4374
|
-
createdAt:
|
|
4375
|
-
enabled:
|
|
4376
|
-
designSystemId:
|
|
4381
|
+
createdAt: z158.coerce.date(),
|
|
4382
|
+
enabled: z158.boolean(),
|
|
4383
|
+
designSystemId: z158.string().optional()
|
|
4377
4384
|
});
|
|
4378
4385
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4379
4386
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -4383,173 +4390,173 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4383
4390
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4384
4391
|
return OAuthProviderNames2;
|
|
4385
4392
|
})(OAuthProviderNames || {});
|
|
4386
|
-
var OAuthProviderSchema =
|
|
4393
|
+
var OAuthProviderSchema = z159.nativeEnum(OAuthProviderNames);
|
|
4387
4394
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4388
|
-
var ExternalOAuthRequest =
|
|
4389
|
-
id:
|
|
4395
|
+
var ExternalOAuthRequest = z160.object({
|
|
4396
|
+
id: z160.string(),
|
|
4390
4397
|
provider: OAuthProviderSchema,
|
|
4391
|
-
userId:
|
|
4392
|
-
state:
|
|
4393
|
-
createdAt:
|
|
4398
|
+
userId: z160.string(),
|
|
4399
|
+
state: z160.string(),
|
|
4400
|
+
createdAt: z160.coerce.date()
|
|
4394
4401
|
});
|
|
4395
|
-
var GitObjectsQuery =
|
|
4396
|
-
organization:
|
|
4402
|
+
var GitObjectsQuery = z161.object({
|
|
4403
|
+
organization: z161.string().optional(),
|
|
4397
4404
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4398
|
-
project:
|
|
4405
|
+
project: z161.string().optional(),
|
|
4399
4406
|
// Only for Bitbucket and Azure
|
|
4400
|
-
repository:
|
|
4407
|
+
repository: z161.string().optional(),
|
|
4401
4408
|
// For all providers. For Gitlab, it's called "project".
|
|
4402
|
-
branch:
|
|
4409
|
+
branch: z161.string().optional(),
|
|
4403
4410
|
// For all providers.
|
|
4404
|
-
user:
|
|
4411
|
+
user: z161.string().optional()
|
|
4405
4412
|
// Gitlab user
|
|
4406
4413
|
});
|
|
4407
|
-
var GitOrganization =
|
|
4408
|
-
id:
|
|
4409
|
-
name:
|
|
4410
|
-
url:
|
|
4411
|
-
slug:
|
|
4414
|
+
var GitOrganization = z161.object({
|
|
4415
|
+
id: z161.string(),
|
|
4416
|
+
name: z161.string(),
|
|
4417
|
+
url: z161.string(),
|
|
4418
|
+
slug: z161.string()
|
|
4412
4419
|
});
|
|
4413
|
-
var GitProject =
|
|
4414
|
-
id:
|
|
4415
|
-
name:
|
|
4416
|
-
url:
|
|
4417
|
-
slug:
|
|
4420
|
+
var GitProject = z161.object({
|
|
4421
|
+
id: z161.string(),
|
|
4422
|
+
name: z161.string(),
|
|
4423
|
+
url: z161.string(),
|
|
4424
|
+
slug: z161.string()
|
|
4418
4425
|
});
|
|
4419
|
-
var GitRepository =
|
|
4420
|
-
id:
|
|
4421
|
-
name:
|
|
4422
|
-
url:
|
|
4423
|
-
slug:
|
|
4426
|
+
var GitRepository = z161.object({
|
|
4427
|
+
id: z161.string(),
|
|
4428
|
+
name: z161.string(),
|
|
4429
|
+
url: z161.string(),
|
|
4430
|
+
slug: z161.string(),
|
|
4424
4431
|
/**
|
|
4425
4432
|
* Can be undefined when:
|
|
4426
4433
|
* - there are no branches in the repository yet
|
|
4427
4434
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4428
4435
|
*/
|
|
4429
|
-
defaultBranch:
|
|
4436
|
+
defaultBranch: z161.string().optional()
|
|
4430
4437
|
});
|
|
4431
|
-
var GitBranch =
|
|
4432
|
-
name:
|
|
4433
|
-
lastCommitId:
|
|
4438
|
+
var GitBranch = z161.object({
|
|
4439
|
+
name: z161.string(),
|
|
4440
|
+
lastCommitId: z161.string()
|
|
4434
4441
|
});
|
|
4435
|
-
var IntegrationTokenSchemaOld =
|
|
4436
|
-
id: z161.string(),
|
|
4437
|
-
provider: OAuthProviderSchema,
|
|
4438
|
-
scope: z161.string(),
|
|
4439
|
-
userId: z161.string(),
|
|
4440
|
-
accessToken: z161.string(),
|
|
4441
|
-
refreshToken: z161.string(),
|
|
4442
|
-
expiresAt: z161.coerce.date(),
|
|
4443
|
-
externalUserId: z161.string().nullish()
|
|
4444
|
-
});
|
|
4445
|
-
var WorkspaceOAuthRequestSchema = z162.object({
|
|
4442
|
+
var IntegrationTokenSchemaOld = z162.object({
|
|
4446
4443
|
id: z162.string(),
|
|
4447
|
-
workspaceId: z162.string(),
|
|
4448
4444
|
provider: OAuthProviderSchema,
|
|
4445
|
+
scope: z162.string(),
|
|
4449
4446
|
userId: z162.string(),
|
|
4450
|
-
|
|
4447
|
+
accessToken: z162.string(),
|
|
4448
|
+
refreshToken: z162.string(),
|
|
4449
|
+
expiresAt: z162.coerce.date(),
|
|
4450
|
+
externalUserId: z162.string().nullish()
|
|
4451
|
+
});
|
|
4452
|
+
var WorkspaceOAuthRequestSchema = z163.object({
|
|
4453
|
+
id: z163.string(),
|
|
4454
|
+
workspaceId: z163.string(),
|
|
4455
|
+
provider: OAuthProviderSchema,
|
|
4456
|
+
userId: z163.string(),
|
|
4457
|
+
createdAt: z163.coerce.date()
|
|
4451
4458
|
});
|
|
4452
|
-
var AnyRecord =
|
|
4459
|
+
var AnyRecord = z164.record(z164.any());
|
|
4453
4460
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4454
|
-
|
|
4455
|
-
tarball:
|
|
4461
|
+
z164.object({
|
|
4462
|
+
tarball: z164.string()
|
|
4456
4463
|
})
|
|
4457
4464
|
);
|
|
4458
4465
|
var NpmPackageVersion = AnyRecord.and(
|
|
4459
|
-
|
|
4466
|
+
z164.object({
|
|
4460
4467
|
dist: NpmPackageVersionDist
|
|
4461
4468
|
})
|
|
4462
4469
|
);
|
|
4463
4470
|
var NpmPackage = AnyRecord.and(
|
|
4464
|
-
|
|
4465
|
-
_id:
|
|
4466
|
-
name:
|
|
4471
|
+
z164.object({
|
|
4472
|
+
_id: z164.string(),
|
|
4473
|
+
name: z164.string(),
|
|
4467
4474
|
// e.g. "latest": "1.2.3"
|
|
4468
|
-
"dist-tags":
|
|
4475
|
+
"dist-tags": z164.record(z164.string(), z164.string()),
|
|
4469
4476
|
// "1.2.3": {...}
|
|
4470
|
-
versions:
|
|
4477
|
+
versions: z164.record(NpmPackageVersion)
|
|
4471
4478
|
})
|
|
4472
4479
|
);
|
|
4473
|
-
var NpmProxyTokenPayload =
|
|
4474
|
-
npmProxyRegistryConfigId:
|
|
4480
|
+
var NpmProxyTokenPayload = z165.object({
|
|
4481
|
+
npmProxyRegistryConfigId: z165.string()
|
|
4475
4482
|
});
|
|
4476
|
-
var WorkspaceRoleSchema =
|
|
4483
|
+
var WorkspaceRoleSchema = z166.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
4477
4484
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
4478
4485
|
var MAX_MEMBERS_COUNT = 100;
|
|
4479
|
-
var UserInvite =
|
|
4480
|
-
email:
|
|
4486
|
+
var UserInvite = z167.object({
|
|
4487
|
+
email: z167.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4481
4488
|
role: WorkspaceRoleSchema
|
|
4482
4489
|
});
|
|
4483
|
-
var UserInvites =
|
|
4484
|
-
var WorkspaceConfigurationUpdate =
|
|
4485
|
-
id:
|
|
4490
|
+
var UserInvites = z167.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4491
|
+
var WorkspaceConfigurationUpdate = z168.object({
|
|
4492
|
+
id: z168.string(),
|
|
4486
4493
|
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4487
4494
|
sso: SsoProvider.optional(),
|
|
4488
4495
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4489
4496
|
profile: WorkspaceProfileUpdate.optional()
|
|
4490
4497
|
});
|
|
4491
|
-
var WorkspaceContext =
|
|
4492
|
-
workspaceId:
|
|
4498
|
+
var WorkspaceContext = z169.object({
|
|
4499
|
+
workspaceId: z169.string(),
|
|
4493
4500
|
product: ProductCodeSchema,
|
|
4494
4501
|
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4495
|
-
publicDesignSystem:
|
|
4502
|
+
publicDesignSystem: z169.boolean().optional()
|
|
4496
4503
|
});
|
|
4497
4504
|
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4498
4505
|
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4499
4506
|
var HANDLE_MIN_LENGTH = 2;
|
|
4500
4507
|
var HANDLE_MAX_LENGTH = 64;
|
|
4501
|
-
var CreateWorkspaceInput =
|
|
4502
|
-
name:
|
|
4508
|
+
var CreateWorkspaceInput = z170.object({
|
|
4509
|
+
name: z170.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4503
4510
|
product: ProductCodeSchema,
|
|
4504
|
-
priceId:
|
|
4505
|
-
billingEmail:
|
|
4506
|
-
handle:
|
|
4511
|
+
priceId: z170.string(),
|
|
4512
|
+
billingEmail: z170.string().email().optional(),
|
|
4513
|
+
handle: z170.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional(),
|
|
4507
4514
|
invites: UserInvites.optional(),
|
|
4508
|
-
promoCode:
|
|
4515
|
+
promoCode: z170.string().optional(),
|
|
4509
4516
|
status: InternalStatusSchema.optional(),
|
|
4510
4517
|
planInterval: BillingIntervalSchema.optional(),
|
|
4511
|
-
seats:
|
|
4512
|
-
seatLimit:
|
|
4518
|
+
seats: z170.number().optional(),
|
|
4519
|
+
seatLimit: z170.number().optional(),
|
|
4513
4520
|
card: CardSchema.optional(),
|
|
4514
4521
|
sso: SsoProvider.optional(),
|
|
4515
4522
|
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4516
4523
|
ipWhitelist: WorkspaceIpSettings.optional()
|
|
4517
4524
|
});
|
|
4518
|
-
var WorkspaceInvitation =
|
|
4519
|
-
id: z170.string(),
|
|
4520
|
-
email: z170.string().email(),
|
|
4521
|
-
createdAt: z170.coerce.date(),
|
|
4522
|
-
resentAt: z170.coerce.date().nullish(),
|
|
4523
|
-
role: z170.nativeEnum(WorkspaceRole),
|
|
4524
|
-
workspaceId: z170.string(),
|
|
4525
|
-
invitedBy: z170.string()
|
|
4526
|
-
});
|
|
4527
|
-
var WorkspaceMembership = z171.object({
|
|
4525
|
+
var WorkspaceInvitation = z171.object({
|
|
4528
4526
|
id: z171.string(),
|
|
4529
|
-
|
|
4527
|
+
email: z171.string().email(),
|
|
4528
|
+
createdAt: z171.coerce.date(),
|
|
4529
|
+
resentAt: z171.coerce.date().nullish(),
|
|
4530
|
+
role: z171.nativeEnum(WorkspaceRole),
|
|
4530
4531
|
workspaceId: z171.string(),
|
|
4531
|
-
|
|
4532
|
+
invitedBy: z171.string()
|
|
4533
|
+
});
|
|
4534
|
+
var WorkspaceMembership = z172.object({
|
|
4535
|
+
id: z172.string(),
|
|
4536
|
+
userId: z172.string(),
|
|
4537
|
+
workspaceId: z172.string(),
|
|
4538
|
+
workspaceRole: z172.nativeEnum(WorkspaceRole),
|
|
4532
4539
|
notificationSettings: UserNotificationSettings
|
|
4533
4540
|
});
|
|
4534
|
-
var UpdateMembershipRolesInput =
|
|
4535
|
-
members:
|
|
4536
|
-
|
|
4537
|
-
userId:
|
|
4538
|
-
role:
|
|
4541
|
+
var UpdateMembershipRolesInput = z172.object({
|
|
4542
|
+
members: z172.array(
|
|
4543
|
+
z172.object({
|
|
4544
|
+
userId: z172.string(),
|
|
4545
|
+
role: z172.nativeEnum(WorkspaceRole)
|
|
4539
4546
|
})
|
|
4540
4547
|
)
|
|
4541
4548
|
});
|
|
4542
|
-
var PersonalAccessToken =
|
|
4543
|
-
id:
|
|
4544
|
-
userId:
|
|
4545
|
-
workspaceId:
|
|
4549
|
+
var PersonalAccessToken = z173.object({
|
|
4550
|
+
id: z173.string(),
|
|
4551
|
+
userId: z173.string(),
|
|
4552
|
+
workspaceId: z173.string().optional(),
|
|
4546
4553
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
4547
|
-
name:
|
|
4548
|
-
hidden:
|
|
4549
|
-
token:
|
|
4550
|
-
scope:
|
|
4551
|
-
createdAt:
|
|
4552
|
-
expireAt:
|
|
4554
|
+
name: z173.string(),
|
|
4555
|
+
hidden: z173.boolean(),
|
|
4556
|
+
token: z173.string(),
|
|
4557
|
+
scope: z173.string().optional(),
|
|
4558
|
+
createdAt: z173.coerce.date(),
|
|
4559
|
+
expireAt: z173.coerce.date().optional()
|
|
4553
4560
|
});
|
|
4554
4561
|
|
|
4555
4562
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
@@ -4965,163 +4972,179 @@ function integrationCredentialToDto(credential) {
|
|
|
4965
4972
|
}
|
|
4966
4973
|
|
|
4967
4974
|
// src/api/dto/aux/pagination.ts
|
|
4968
|
-
import { z as
|
|
4969
|
-
var DTOPagination =
|
|
4970
|
-
limit:
|
|
4971
|
-
offset:
|
|
4975
|
+
import { z as z174 } from "zod";
|
|
4976
|
+
var DTOPagination = z174.object({
|
|
4977
|
+
limit: z174.string().optional(),
|
|
4978
|
+
offset: z174.string().optional()
|
|
4972
4979
|
});
|
|
4973
4980
|
|
|
4974
4981
|
// src/api/dto/design-systems/brand.ts
|
|
4975
|
-
import { z as
|
|
4976
|
-
var DTOBrand =
|
|
4977
|
-
id:
|
|
4978
|
-
designSystemVersionId:
|
|
4979
|
-
persistentId:
|
|
4982
|
+
import { z as z175 } from "zod";
|
|
4983
|
+
var DTOBrand = z175.object({
|
|
4984
|
+
id: z175.string(),
|
|
4985
|
+
designSystemVersionId: z175.string(),
|
|
4986
|
+
persistentId: z175.string(),
|
|
4980
4987
|
meta: ObjectMeta
|
|
4981
4988
|
});
|
|
4982
|
-
var DTOBrandGetResponse =
|
|
4983
|
-
var DTOBrandCreateResponse =
|
|
4989
|
+
var DTOBrandGetResponse = z175.object({ brand: DTOBrand });
|
|
4990
|
+
var DTOBrandCreateResponse = z175.object({
|
|
4984
4991
|
brand: DTOBrand
|
|
4985
4992
|
});
|
|
4986
|
-
var DTOBrandsListResponse =
|
|
4993
|
+
var DTOBrandsListResponse = z175.object({ brands: z175.array(DTOBrand) });
|
|
4987
4994
|
|
|
4988
4995
|
// src/api/dto/design-systems/data-source.ts
|
|
4989
|
-
import { z as
|
|
4990
|
-
var DTODataSourceFigmaFileVersion =
|
|
4991
|
-
id:
|
|
4992
|
-
created_at:
|
|
4993
|
-
label:
|
|
4994
|
-
description:
|
|
4995
|
-
});
|
|
4996
|
-
var DTODataSourceFigmaCloud =
|
|
4997
|
-
fileId:
|
|
4996
|
+
import { z as z176 } from "zod";
|
|
4997
|
+
var DTODataSourceFigmaFileVersion = z176.object({
|
|
4998
|
+
id: z176.string(),
|
|
4999
|
+
created_at: z176.coerce.date(),
|
|
5000
|
+
label: z176.string(),
|
|
5001
|
+
description: z176.string()
|
|
5002
|
+
});
|
|
5003
|
+
var DTODataSourceFigmaCloud = z176.object({
|
|
5004
|
+
fileId: z176.string(),
|
|
4998
5005
|
state: DataSourceFigmaState,
|
|
4999
5006
|
autoImportMode: DataSourceAutoImportMode,
|
|
5000
|
-
fileThumbnailUrl:
|
|
5007
|
+
fileThumbnailUrl: z176.string().optional(),
|
|
5001
5008
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5002
|
-
lastImportedAt:
|
|
5009
|
+
lastImportedAt: z176.date().nullish(),
|
|
5003
5010
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5004
|
-
lastUpdatesCheckedAt:
|
|
5005
|
-
ownerId:
|
|
5006
|
-
ownerUserName:
|
|
5007
|
-
preferredCredentialId:
|
|
5011
|
+
lastUpdatesCheckedAt: z176.date().nullish(),
|
|
5012
|
+
ownerId: z176.string(),
|
|
5013
|
+
ownerUserName: z176.string().optional(),
|
|
5014
|
+
preferredCredentialId: z176.string().optional(),
|
|
5008
5015
|
stats: DataSourceStats
|
|
5009
5016
|
});
|
|
5010
|
-
var DTODataSourceFigma =
|
|
5011
|
-
id:
|
|
5012
|
-
type:
|
|
5013
|
-
fileName:
|
|
5017
|
+
var DTODataSourceFigma = z176.object({
|
|
5018
|
+
id: z176.string(),
|
|
5019
|
+
type: z176.literal(DataSourceRemoteType.Enum.Figma),
|
|
5020
|
+
fileName: z176.string(),
|
|
5014
5021
|
scope: DataSourceFigmaScope,
|
|
5015
|
-
brandId:
|
|
5016
|
-
themeId:
|
|
5022
|
+
brandId: z176.string(),
|
|
5023
|
+
themeId: z176.string().nullish(),
|
|
5017
5024
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
5018
|
-
tokenStudio:
|
|
5019
|
-
upload:
|
|
5020
|
-
figmaVariablesPlugin:
|
|
5021
|
-
});
|
|
5022
|
-
var DTODataSourceTokenStudio =
|
|
5023
|
-
id:
|
|
5024
|
-
type:
|
|
5025
|
-
fileName:
|
|
5026
|
-
brandId:
|
|
5027
|
-
themeId:
|
|
5028
|
-
cloud:
|
|
5029
|
-
tokenStudio:
|
|
5030
|
-
settings:
|
|
5031
|
-
dryRun:
|
|
5032
|
-
verbose:
|
|
5033
|
-
preciseCopy:
|
|
5025
|
+
tokenStudio: z176.literal(null),
|
|
5026
|
+
upload: z176.literal(null),
|
|
5027
|
+
figmaVariablesPlugin: z176.literal(null)
|
|
5028
|
+
});
|
|
5029
|
+
var DTODataSourceTokenStudio = z176.object({
|
|
5030
|
+
id: z176.string(),
|
|
5031
|
+
type: z176.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5032
|
+
fileName: z176.string(),
|
|
5033
|
+
brandId: z176.string(),
|
|
5034
|
+
themeId: z176.string().nullish(),
|
|
5035
|
+
cloud: z176.literal(null),
|
|
5036
|
+
tokenStudio: z176.object({
|
|
5037
|
+
settings: z176.object({
|
|
5038
|
+
dryRun: z176.boolean(),
|
|
5039
|
+
verbose: z176.boolean(),
|
|
5040
|
+
preciseCopy: z176.boolean()
|
|
5034
5041
|
}),
|
|
5035
|
-
connectionName:
|
|
5036
|
-
lastImportedAt:
|
|
5037
|
-
lastImportedResults:
|
|
5038
|
-
|
|
5039
|
-
mapping:
|
|
5040
|
-
tokenSets:
|
|
5041
|
-
supernovaBrand:
|
|
5042
|
-
supernovaTheme:
|
|
5042
|
+
connectionName: z176.string(),
|
|
5043
|
+
lastImportedAt: z176.date(),
|
|
5044
|
+
lastImportedResults: z176.array(
|
|
5045
|
+
z176.object({
|
|
5046
|
+
mapping: z176.object({
|
|
5047
|
+
tokenSets: z176.array(z176.string()),
|
|
5048
|
+
supernovaBrand: z176.string(),
|
|
5049
|
+
supernovaTheme: z176.string().optional()
|
|
5043
5050
|
}),
|
|
5044
|
-
isFailed:
|
|
5045
|
-
tokensCreated:
|
|
5046
|
-
tokensDeleted:
|
|
5047
|
-
tokensUpdated:
|
|
5051
|
+
isFailed: z176.boolean(),
|
|
5052
|
+
tokensCreated: z176.number(),
|
|
5053
|
+
tokensDeleted: z176.number(),
|
|
5054
|
+
tokensUpdated: z176.number()
|
|
5048
5055
|
})
|
|
5049
5056
|
)
|
|
5050
5057
|
}),
|
|
5051
|
-
upload:
|
|
5052
|
-
figmaVariablesPlugin:
|
|
5053
|
-
});
|
|
5054
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5055
|
-
id:
|
|
5056
|
-
type:
|
|
5057
|
-
fileName:
|
|
5058
|
-
brandId:
|
|
5059
|
-
themeId:
|
|
5060
|
-
cloud:
|
|
5061
|
-
tokenStudio:
|
|
5062
|
-
upload:
|
|
5063
|
-
remoteId:
|
|
5058
|
+
upload: z176.literal(null),
|
|
5059
|
+
figmaVariablesPlugin: z176.literal(null)
|
|
5060
|
+
});
|
|
5061
|
+
var DTODataSourceFigmaVariablesPlugin = z176.object({
|
|
5062
|
+
id: z176.string(),
|
|
5063
|
+
type: z176.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5064
|
+
fileName: z176.string(),
|
|
5065
|
+
brandId: z176.string(),
|
|
5066
|
+
themeId: z176.literal(null),
|
|
5067
|
+
cloud: z176.literal(null),
|
|
5068
|
+
tokenStudio: z176.literal(null),
|
|
5069
|
+
upload: z176.object({
|
|
5070
|
+
remoteId: z176.string(),
|
|
5064
5071
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5065
|
-
lastImportedAt:
|
|
5072
|
+
lastImportedAt: z176.date().optional(),
|
|
5066
5073
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5067
5074
|
}),
|
|
5068
|
-
figmaVariablesPlugin:
|
|
5069
|
-
fileId:
|
|
5070
|
-
lastImportedAt:
|
|
5075
|
+
figmaVariablesPlugin: z176.object({
|
|
5076
|
+
fileId: z176.string(),
|
|
5077
|
+
lastImportedAt: z176.date().optional(),
|
|
5071
5078
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5072
5079
|
})
|
|
5073
5080
|
});
|
|
5074
|
-
var DTODataSource =
|
|
5081
|
+
var DTODataSource = z176.discriminatedUnion("type", [
|
|
5075
5082
|
DTODataSourceFigma,
|
|
5076
5083
|
DTODataSourceFigmaVariablesPlugin,
|
|
5077
5084
|
DTODataSourceTokenStudio
|
|
5078
5085
|
]);
|
|
5079
|
-
var DTODataSourcesListResponse =
|
|
5080
|
-
sources:
|
|
5086
|
+
var DTODataSourcesListResponse = z176.object({
|
|
5087
|
+
sources: z176.array(DTODataSource)
|
|
5081
5088
|
});
|
|
5082
|
-
var DTODataSourceCreationResponse =
|
|
5089
|
+
var DTODataSourceCreationResponse = z176.object({
|
|
5083
5090
|
source: DTODataSource
|
|
5084
5091
|
});
|
|
5085
5092
|
|
|
5086
5093
|
// src/api/dto/design-systems/design-system.ts
|
|
5087
|
-
import { z as
|
|
5094
|
+
import { z as z177 } from "zod";
|
|
5088
5095
|
var DTODesignSystem = DesignSystem.omit({
|
|
5089
5096
|
name: true,
|
|
5090
5097
|
description: true,
|
|
5091
5098
|
docExporterId: true
|
|
5092
5099
|
}).extend({
|
|
5093
5100
|
meta: ObjectMeta,
|
|
5094
|
-
docExporterId:
|
|
5095
|
-
sources:
|
|
5101
|
+
docExporterId: z177.string(),
|
|
5102
|
+
sources: z177.array(z177.any())
|
|
5096
5103
|
});
|
|
5097
5104
|
|
|
5098
5105
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5099
|
-
import { z as
|
|
5100
|
-
var DTODiffCountBase =
|
|
5101
|
-
created:
|
|
5102
|
-
updated:
|
|
5103
|
-
deleted:
|
|
5106
|
+
import { z as z178 } from "zod";
|
|
5107
|
+
var DTODiffCountBase = z178.object({
|
|
5108
|
+
created: z178.number(),
|
|
5109
|
+
updated: z178.number(),
|
|
5110
|
+
deleted: z178.number()
|
|
5104
5111
|
});
|
|
5105
|
-
var DTODesignElementsDataDiffResponse =
|
|
5112
|
+
var DTODesignElementsDataDiffResponse = z178.object({
|
|
5106
5113
|
tokens: DTODiffCountBase,
|
|
5107
5114
|
assets: DTODiffCountBase
|
|
5108
5115
|
});
|
|
5109
5116
|
|
|
5110
5117
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5111
|
-
import { z as
|
|
5112
|
-
var DTOExporterProperty =
|
|
5113
|
-
var DTOExporterPropertyListResponse =
|
|
5118
|
+
import { z as z179 } from "zod";
|
|
5119
|
+
var DTOExporterProperty = z179.any({});
|
|
5120
|
+
var DTOExporterPropertyListResponse = z179.object({ items: z179.array(DTOExporterProperty) });
|
|
5121
|
+
|
|
5122
|
+
// src/api/dto/design-systems/members.ts
|
|
5123
|
+
import { z as z180 } from "zod";
|
|
5124
|
+
var DTODesignSystemMember = z180.object({
|
|
5125
|
+
userId: z180.string()
|
|
5126
|
+
});
|
|
5127
|
+
var DTODesignSystemMemberListResponse = z180.object({
|
|
5128
|
+
members: DTODesignSystemMember.array()
|
|
5129
|
+
});
|
|
5130
|
+
var DTODesignSystemMembersUpdateResponse = z180.object({
|
|
5131
|
+
ok: z180.literal(true)
|
|
5132
|
+
});
|
|
5133
|
+
var DTODesignSystemMembersUpdatePayload = z180.object({
|
|
5134
|
+
inviteUserIds: z180.string().array(),
|
|
5135
|
+
removeUserIds: z180.string().array()
|
|
5136
|
+
});
|
|
5114
5137
|
|
|
5115
5138
|
// src/api/dto/design-systems/version.ts
|
|
5116
|
-
import { z as
|
|
5139
|
+
import { z as z190 } from "zod";
|
|
5117
5140
|
|
|
5118
5141
|
// src/api/payloads/design-systems/brand.ts
|
|
5119
|
-
import { z as
|
|
5120
|
-
var DTOCreateBrandInput =
|
|
5121
|
-
persistentId:
|
|
5122
|
-
meta:
|
|
5123
|
-
name:
|
|
5124
|
-
description:
|
|
5142
|
+
import { z as z181 } from "zod";
|
|
5143
|
+
var DTOCreateBrandInput = z181.object({
|
|
5144
|
+
persistentId: z181.string().uuid(),
|
|
5145
|
+
meta: z181.object({
|
|
5146
|
+
name: z181.string(),
|
|
5147
|
+
description: z181.string()
|
|
5125
5148
|
})
|
|
5126
5149
|
});
|
|
5127
5150
|
|
|
@@ -5129,31 +5152,31 @@ var DTOCreateBrandInput = z179.object({
|
|
|
5129
5152
|
var DTODesignSystemUpdateInput = DesignSystemUpdateInput;
|
|
5130
5153
|
|
|
5131
5154
|
// src/api/payloads/design-systems/version.ts
|
|
5132
|
-
import { z as
|
|
5133
|
-
var ObjectMeta2 =
|
|
5134
|
-
name:
|
|
5135
|
-
description:
|
|
5155
|
+
import { z as z182 } from "zod";
|
|
5156
|
+
var ObjectMeta2 = z182.object({
|
|
5157
|
+
name: z182.string().max(150).optional(),
|
|
5158
|
+
description: z182.string().max(2e3).optional()
|
|
5136
5159
|
});
|
|
5137
5160
|
function validateDesignSystemVersion(version) {
|
|
5138
5161
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5139
5162
|
return urlCompliantRegex.test(version);
|
|
5140
5163
|
}
|
|
5141
|
-
var DTOCreateVersionInput =
|
|
5164
|
+
var DTOCreateVersionInput = z182.object({
|
|
5142
5165
|
meta: ObjectMeta2,
|
|
5143
|
-
version:
|
|
5166
|
+
version: z182.string().refine(validateDesignSystemVersion, {
|
|
5144
5167
|
message: "Invalid semantic versioning format"
|
|
5145
5168
|
}),
|
|
5146
|
-
changeLog:
|
|
5169
|
+
changeLog: z182.string().optional()
|
|
5147
5170
|
});
|
|
5148
|
-
var DTOUpdateVersionInput =
|
|
5171
|
+
var DTOUpdateVersionInput = z182.object({
|
|
5149
5172
|
meta: ObjectMeta2,
|
|
5150
|
-
version:
|
|
5173
|
+
version: z182.string(),
|
|
5151
5174
|
// required for PUT, but not editable
|
|
5152
|
-
changeLog:
|
|
5175
|
+
changeLog: z182.string()
|
|
5153
5176
|
});
|
|
5154
5177
|
|
|
5155
5178
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5156
|
-
import { z as
|
|
5179
|
+
import { z as z183 } from "zod";
|
|
5157
5180
|
|
|
5158
5181
|
// src/api/dto/documentation/block-definition.ts
|
|
5159
5182
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5165,59 +5188,59 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5165
5188
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5166
5189
|
|
|
5167
5190
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5168
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5169
|
-
definitions:
|
|
5191
|
+
var DTOGetBlockDefinitionsOutput = z183.object({
|
|
5192
|
+
definitions: z183.array(DTOPageBlockDefinition)
|
|
5170
5193
|
});
|
|
5171
5194
|
|
|
5172
5195
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5173
|
-
import { z as
|
|
5174
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5175
|
-
environment:
|
|
5196
|
+
import { z as z184 } from "zod";
|
|
5197
|
+
var DTODocumentationPublishTypeQueryParams = z184.object({
|
|
5198
|
+
environment: z184.enum(["Live", "Preview"])
|
|
5176
5199
|
});
|
|
5177
5200
|
|
|
5178
5201
|
// src/api/payloads/export/pipeline.ts
|
|
5179
|
-
import { z as
|
|
5180
|
-
var DTOPipelineCreateBody =
|
|
5181
|
-
name:
|
|
5182
|
-
exporterId:
|
|
5183
|
-
designSystemId:
|
|
5184
|
-
isEnabled:
|
|
5202
|
+
import { z as z185 } from "zod";
|
|
5203
|
+
var DTOPipelineCreateBody = z185.object({
|
|
5204
|
+
name: z185.string(),
|
|
5205
|
+
exporterId: z185.string(),
|
|
5206
|
+
designSystemId: z185.string(),
|
|
5207
|
+
isEnabled: z185.boolean(),
|
|
5185
5208
|
eventType: PipelineEventType,
|
|
5186
|
-
brandPersistentId:
|
|
5187
|
-
themePersistentId:
|
|
5209
|
+
brandPersistentId: z185.string().optional(),
|
|
5210
|
+
themePersistentId: z185.string().optional(),
|
|
5188
5211
|
destination: PipelineDestinationType.optional(),
|
|
5189
5212
|
gitQuery: GitObjectsQuery,
|
|
5190
|
-
destinations:
|
|
5213
|
+
destinations: z185.object({
|
|
5191
5214
|
s3: ExporterDestinationS3.nullish(),
|
|
5192
5215
|
azure: ExporterDestinationAzure.nullish(),
|
|
5193
5216
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5194
5217
|
github: ExporterDestinationGithub.nullish(),
|
|
5195
5218
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5196
5219
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5197
|
-
webhookUrl:
|
|
5220
|
+
webhookUrl: z185.string().nullish()
|
|
5198
5221
|
})
|
|
5199
5222
|
});
|
|
5200
5223
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5201
|
-
id:
|
|
5224
|
+
id: z185.string()
|
|
5202
5225
|
});
|
|
5203
|
-
var DTOPipelineTriggerBody =
|
|
5204
|
-
designSystemVersionId:
|
|
5226
|
+
var DTOPipelineTriggerBody = z185.object({
|
|
5227
|
+
designSystemVersionId: z185.string()
|
|
5205
5228
|
});
|
|
5206
5229
|
|
|
5207
5230
|
// src/api/payloads/liveblocks/auth.ts
|
|
5208
|
-
import { z as
|
|
5209
|
-
var DTOLiveblocksAuthRequest =
|
|
5210
|
-
room:
|
|
5231
|
+
import { z as z186 } from "zod";
|
|
5232
|
+
var DTOLiveblocksAuthRequest = z186.object({
|
|
5233
|
+
room: z186.string().optional()
|
|
5211
5234
|
});
|
|
5212
5235
|
|
|
5213
5236
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5214
|
-
import { z as
|
|
5215
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5237
|
+
import { z as z187 } from "zod";
|
|
5238
|
+
var DTOUpdateUserNotificationSettingsPayload = z187.object({
|
|
5216
5239
|
notificationSettings: UserNotificationSettings
|
|
5217
5240
|
});
|
|
5218
|
-
var DTOUserNotificationSettingsResponse =
|
|
5219
|
-
userId:
|
|
5220
|
-
workspaceId:
|
|
5241
|
+
var DTOUserNotificationSettingsResponse = z187.object({
|
|
5242
|
+
userId: z187.string(),
|
|
5243
|
+
workspaceId: z187.string(),
|
|
5221
5244
|
notificationSettings: UserNotificationSettings
|
|
5222
5245
|
});
|
|
5223
5246
|
|
|
@@ -5225,7 +5248,7 @@ var DTOUserNotificationSettingsResponse = z185.object({
|
|
|
5225
5248
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5226
5249
|
|
|
5227
5250
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5228
|
-
import { z as
|
|
5251
|
+
import { z as z188 } from "zod";
|
|
5229
5252
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5230
5253
|
function validateSsoPayload(ssoPayload) {
|
|
5231
5254
|
const keys = [];
|
|
@@ -5248,21 +5271,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5248
5271
|
keys
|
|
5249
5272
|
};
|
|
5250
5273
|
}
|
|
5251
|
-
var NpmRegistryInput =
|
|
5252
|
-
enabledScopes:
|
|
5253
|
-
customRegistryUrl:
|
|
5254
|
-
bypassProxy:
|
|
5255
|
-
npmProxyRegistryConfigId:
|
|
5256
|
-
npmProxyVersion:
|
|
5257
|
-
registryType:
|
|
5258
|
-
authType:
|
|
5259
|
-
authHeaderName:
|
|
5260
|
-
authHeaderValue:
|
|
5261
|
-
accessToken:
|
|
5262
|
-
username:
|
|
5263
|
-
password:
|
|
5264
|
-
});
|
|
5265
|
-
var WorkspaceConfigurationPayload =
|
|
5274
|
+
var NpmRegistryInput = z188.object({
|
|
5275
|
+
enabledScopes: z188.array(z188.string()),
|
|
5276
|
+
customRegistryUrl: z188.string().optional(),
|
|
5277
|
+
bypassProxy: z188.boolean().optional(),
|
|
5278
|
+
npmProxyRegistryConfigId: z188.string().optional(),
|
|
5279
|
+
npmProxyVersion: z188.number().optional(),
|
|
5280
|
+
registryType: z188.string(),
|
|
5281
|
+
authType: z188.string(),
|
|
5282
|
+
authHeaderName: z188.string(),
|
|
5283
|
+
authHeaderValue: z188.string(),
|
|
5284
|
+
accessToken: z188.string(),
|
|
5285
|
+
username: z188.string(),
|
|
5286
|
+
password: z188.string()
|
|
5287
|
+
});
|
|
5288
|
+
var WorkspaceConfigurationPayload = z188.object({
|
|
5266
5289
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5267
5290
|
sso: SsoProvider.partial().optional(),
|
|
5268
5291
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5270,114 +5293,114 @@ var WorkspaceConfigurationPayload = z186.object({
|
|
|
5270
5293
|
});
|
|
5271
5294
|
|
|
5272
5295
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5273
|
-
import { z as
|
|
5274
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5296
|
+
import { z as z189 } from "zod";
|
|
5297
|
+
var DTOWorkspaceIntegrationOauthInput = z189.object({
|
|
5275
5298
|
type: IntegrationType
|
|
5276
5299
|
});
|
|
5277
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5278
|
-
userId:
|
|
5300
|
+
var DTOWorkspaceIntegrationPATInput = z189.object({
|
|
5301
|
+
userId: z189.string(),
|
|
5279
5302
|
type: IntegrationType,
|
|
5280
5303
|
token: IntegrationToken
|
|
5281
5304
|
});
|
|
5282
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5283
|
-
organization:
|
|
5305
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z189.object({
|
|
5306
|
+
organization: z189.string().optional(),
|
|
5284
5307
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5285
|
-
project:
|
|
5308
|
+
project: z189.string().optional(),
|
|
5286
5309
|
// Only for Bitbucket and Azure
|
|
5287
|
-
repository:
|
|
5310
|
+
repository: z189.string().optional(),
|
|
5288
5311
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5289
|
-
branch:
|
|
5312
|
+
branch: z189.string().optional(),
|
|
5290
5313
|
// For all providers, useful for PR creations.
|
|
5291
|
-
user:
|
|
5314
|
+
user: z189.string().optional()
|
|
5292
5315
|
// Only for Gitlab User Repositories
|
|
5293
5316
|
});
|
|
5294
5317
|
|
|
5295
5318
|
// src/api/dto/design-systems/version.ts
|
|
5296
|
-
var DTODesignSystemVersion =
|
|
5297
|
-
id:
|
|
5298
|
-
createdAt:
|
|
5319
|
+
var DTODesignSystemVersion = z190.object({
|
|
5320
|
+
id: z190.string(),
|
|
5321
|
+
createdAt: z190.date(),
|
|
5299
5322
|
meta: ObjectMeta,
|
|
5300
|
-
version:
|
|
5301
|
-
isReadonly:
|
|
5302
|
-
changeLog:
|
|
5303
|
-
designSystemId:
|
|
5323
|
+
version: z190.string(),
|
|
5324
|
+
isReadonly: z190.boolean(),
|
|
5325
|
+
changeLog: z190.string(),
|
|
5326
|
+
designSystemId: z190.string()
|
|
5304
5327
|
});
|
|
5305
|
-
var DTODesignSystemVersionsListResponse =
|
|
5306
|
-
designSystemVersions:
|
|
5328
|
+
var DTODesignSystemVersionsListResponse = z190.object({
|
|
5329
|
+
designSystemVersions: z190.array(DTODesignSystemVersion)
|
|
5307
5330
|
});
|
|
5308
|
-
var DTODesignSystemVersionGetResponse =
|
|
5331
|
+
var DTODesignSystemVersionGetResponse = z190.object({
|
|
5309
5332
|
designSystemVersion: DTODesignSystemVersion
|
|
5310
5333
|
});
|
|
5311
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5334
|
+
var DTODesignSystemVersionCreationResponse = z190.object({
|
|
5312
5335
|
meta: ObjectMeta,
|
|
5313
|
-
version:
|
|
5314
|
-
changeLog:
|
|
5315
|
-
isReadOnly:
|
|
5316
|
-
designSystemId:
|
|
5317
|
-
jobId:
|
|
5318
|
-
});
|
|
5319
|
-
var VersionSQSPayload =
|
|
5320
|
-
jobId:
|
|
5321
|
-
designSystemId:
|
|
5336
|
+
version: z190.string(),
|
|
5337
|
+
changeLog: z190.string(),
|
|
5338
|
+
isReadOnly: z190.boolean(),
|
|
5339
|
+
designSystemId: z190.string(),
|
|
5340
|
+
jobId: z190.string()
|
|
5341
|
+
});
|
|
5342
|
+
var VersionSQSPayload = z190.object({
|
|
5343
|
+
jobId: z190.string(),
|
|
5344
|
+
designSystemId: z190.string(),
|
|
5322
5345
|
input: DTOCreateVersionInput
|
|
5323
5346
|
});
|
|
5324
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5325
|
-
jobs:
|
|
5347
|
+
var DTODesignSystemVersionJobsResponse = z190.object({
|
|
5348
|
+
jobs: z190.array(VersionCreationJob)
|
|
5326
5349
|
});
|
|
5327
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5350
|
+
var DTODesignSystemVersionJobStatusResponse = z190.object({
|
|
5328
5351
|
job: VersionCreationJob
|
|
5329
5352
|
});
|
|
5330
5353
|
|
|
5331
5354
|
// src/api/dto/design-systems/view.ts
|
|
5332
|
-
import { z as
|
|
5333
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5334
|
-
id:
|
|
5335
|
-
persistentId:
|
|
5336
|
-
width:
|
|
5355
|
+
import { z as z191 } from "zod";
|
|
5356
|
+
var DTOElementViewColumnSharedAttributes = z191.object({
|
|
5357
|
+
id: z191.string(),
|
|
5358
|
+
persistentId: z191.string(),
|
|
5359
|
+
width: z191.number()
|
|
5337
5360
|
});
|
|
5338
5361
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5339
|
-
type:
|
|
5362
|
+
type: z191.literal("BaseProperty"),
|
|
5340
5363
|
basePropertyType: ElementViewBaseColumnType
|
|
5341
5364
|
});
|
|
5342
5365
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5343
|
-
type:
|
|
5344
|
-
propertyDefinitionId:
|
|
5366
|
+
type: z191.literal("PropertyDefinition"),
|
|
5367
|
+
propertyDefinitionId: z191.string()
|
|
5345
5368
|
});
|
|
5346
5369
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5347
|
-
type:
|
|
5348
|
-
themeId:
|
|
5370
|
+
type: z191.literal("Theme"),
|
|
5371
|
+
themeId: z191.string()
|
|
5349
5372
|
});
|
|
5350
|
-
var DTOElementViewColumn =
|
|
5373
|
+
var DTOElementViewColumn = z191.discriminatedUnion("type", [
|
|
5351
5374
|
DTOElementViewBasePropertyColumn,
|
|
5352
5375
|
DTOElementViewPropertyDefinitionColumn,
|
|
5353
5376
|
DTOElementViewThemeColumn
|
|
5354
5377
|
]);
|
|
5355
|
-
var DTOElementView =
|
|
5378
|
+
var DTOElementView = z191.object({
|
|
5356
5379
|
meta: ObjectMeta,
|
|
5357
|
-
persistentId:
|
|
5380
|
+
persistentId: z191.string(),
|
|
5358
5381
|
targetElementType: ElementPropertyTargetType,
|
|
5359
|
-
id:
|
|
5360
|
-
isDefault:
|
|
5361
|
-
columns:
|
|
5382
|
+
id: z191.string(),
|
|
5383
|
+
isDefault: z191.boolean(),
|
|
5384
|
+
columns: z191.array(DTOElementViewColumn)
|
|
5362
5385
|
});
|
|
5363
|
-
var DTOElementViewsListResponse =
|
|
5364
|
-
elementDataViews:
|
|
5386
|
+
var DTOElementViewsListResponse = z191.object({
|
|
5387
|
+
elementDataViews: z191.array(DTOElementView)
|
|
5365
5388
|
});
|
|
5366
5389
|
|
|
5367
5390
|
// src/api/dto/documentation/anchor.ts
|
|
5368
|
-
import { z as
|
|
5391
|
+
import { z as z192 } from "zod";
|
|
5369
5392
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5370
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5371
|
-
anchors:
|
|
5393
|
+
var DTOGetDocumentationPageAnchorsResponse = z192.object({
|
|
5394
|
+
anchors: z192.array(DTODocumentationPageAnchor)
|
|
5372
5395
|
});
|
|
5373
5396
|
|
|
5374
5397
|
// src/api/dto/documentation/approvals.ts
|
|
5375
|
-
import { z as
|
|
5398
|
+
import { z as z193 } from "zod";
|
|
5376
5399
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5377
|
-
var DTODocumentationGroupApprovalState =
|
|
5378
|
-
persistentId:
|
|
5379
|
-
groupId:
|
|
5380
|
-
designSystemVersionId:
|
|
5400
|
+
var DTODocumentationGroupApprovalState = z193.object({
|
|
5401
|
+
persistentId: z193.string(),
|
|
5402
|
+
groupId: z193.string(),
|
|
5403
|
+
designSystemVersionId: z193.string(),
|
|
5381
5404
|
approvalState: DocumentationPageApprovalState
|
|
5382
5405
|
});
|
|
5383
5406
|
|
|
@@ -5385,68 +5408,68 @@ var DTODocumentationGroupApprovalState = z191.object({
|
|
|
5385
5408
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5386
5409
|
|
|
5387
5410
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5388
|
-
import { z as
|
|
5411
|
+
import { z as z198 } from "zod";
|
|
5389
5412
|
|
|
5390
5413
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5391
|
-
import { z as
|
|
5414
|
+
import { z as z197 } from "zod";
|
|
5392
5415
|
|
|
5393
5416
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5394
|
-
import { z as
|
|
5417
|
+
import { z as z195 } from "zod";
|
|
5395
5418
|
|
|
5396
5419
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5397
|
-
import { z as
|
|
5420
|
+
import { z as z194 } from "zod";
|
|
5398
5421
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5399
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5400
|
-
showSidebar:
|
|
5401
|
-
isPrivate:
|
|
5402
|
-
isHidden:
|
|
5422
|
+
var DTODocumentationItemConfigurationV2 = z194.object({
|
|
5423
|
+
showSidebar: z194.boolean(),
|
|
5424
|
+
isPrivate: z194.boolean(),
|
|
5425
|
+
isHidden: z194.boolean(),
|
|
5403
5426
|
header: DTODocumentationItemHeaderV2
|
|
5404
5427
|
});
|
|
5405
5428
|
|
|
5406
5429
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5407
|
-
var DTODocumentationDraftChangeType =
|
|
5408
|
-
var DTODocumentationDraftStateCreated =
|
|
5409
|
-
changeType:
|
|
5410
|
-
});
|
|
5411
|
-
var DTODocumentationDraftStateUpdated =
|
|
5412
|
-
changeType:
|
|
5413
|
-
changes:
|
|
5414
|
-
previousTitle:
|
|
5430
|
+
var DTODocumentationDraftChangeType = z195.enum(["Created", "Updated", "Deleted"]);
|
|
5431
|
+
var DTODocumentationDraftStateCreated = z195.object({
|
|
5432
|
+
changeType: z195.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5433
|
+
});
|
|
5434
|
+
var DTODocumentationDraftStateUpdated = z195.object({
|
|
5435
|
+
changeType: z195.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5436
|
+
changes: z195.object({
|
|
5437
|
+
previousTitle: z195.string().optional(),
|
|
5415
5438
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5416
|
-
previousContentHash:
|
|
5439
|
+
previousContentHash: z195.string().optional()
|
|
5417
5440
|
})
|
|
5418
5441
|
});
|
|
5419
|
-
var DTODocumentationDraftStateDeleted =
|
|
5420
|
-
changeType:
|
|
5421
|
-
deletedAt:
|
|
5422
|
-
deletedByUserId:
|
|
5442
|
+
var DTODocumentationDraftStateDeleted = z195.object({
|
|
5443
|
+
changeType: z195.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5444
|
+
deletedAt: z195.coerce.date(),
|
|
5445
|
+
deletedByUserId: z195.string()
|
|
5423
5446
|
});
|
|
5424
|
-
var DTODocumentationDraftState =
|
|
5447
|
+
var DTODocumentationDraftState = z195.discriminatedUnion("changeType", [
|
|
5425
5448
|
DTODocumentationDraftStateCreated,
|
|
5426
5449
|
DTODocumentationDraftStateUpdated,
|
|
5427
5450
|
DTODocumentationDraftStateDeleted
|
|
5428
5451
|
]);
|
|
5429
5452
|
|
|
5430
5453
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5431
|
-
import { z as
|
|
5432
|
-
var DTODocumentationPublishMetadata =
|
|
5433
|
-
lastPublishedByUserId:
|
|
5434
|
-
lastPublishedAt:
|
|
5454
|
+
import { z as z196 } from "zod";
|
|
5455
|
+
var DTODocumentationPublishMetadata = z196.object({
|
|
5456
|
+
lastPublishedByUserId: z196.string(),
|
|
5457
|
+
lastPublishedAt: z196.coerce.date()
|
|
5435
5458
|
});
|
|
5436
5459
|
|
|
5437
5460
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5438
|
-
var DTODocumentationPageV2 =
|
|
5439
|
-
id:
|
|
5440
|
-
persistentId:
|
|
5441
|
-
designSystemVersionId:
|
|
5442
|
-
title:
|
|
5461
|
+
var DTODocumentationPageV2 = z197.object({
|
|
5462
|
+
id: z197.string(),
|
|
5463
|
+
persistentId: z197.string(),
|
|
5464
|
+
designSystemVersionId: z197.string(),
|
|
5465
|
+
title: z197.string(),
|
|
5443
5466
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5444
|
-
shortPersistentId:
|
|
5445
|
-
slug:
|
|
5446
|
-
userSlug:
|
|
5447
|
-
createdAt:
|
|
5448
|
-
updatedAt:
|
|
5449
|
-
path:
|
|
5467
|
+
shortPersistentId: z197.string(),
|
|
5468
|
+
slug: z197.string().optional(),
|
|
5469
|
+
userSlug: z197.string().optional(),
|
|
5470
|
+
createdAt: z197.coerce.date(),
|
|
5471
|
+
updatedAt: z197.coerce.date(),
|
|
5472
|
+
path: z197.string(),
|
|
5450
5473
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5451
5474
|
draftState: DTODocumentationDraftState.optional(),
|
|
5452
5475
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5454,195 +5477,195 @@ var DTODocumentationPageV2 = z195.object({
|
|
|
5454
5477
|
/** Defines the approval state of the documentation page */
|
|
5455
5478
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5456
5479
|
// Backward compatibility
|
|
5457
|
-
type:
|
|
5480
|
+
type: z197.literal("Page")
|
|
5458
5481
|
});
|
|
5459
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5482
|
+
var DTOCreateDocumentationPageInputV2 = z197.object({
|
|
5460
5483
|
// Identifier
|
|
5461
|
-
persistentId:
|
|
5484
|
+
persistentId: z197.string().uuid(),
|
|
5462
5485
|
// Page properties
|
|
5463
|
-
title:
|
|
5486
|
+
title: z197.string(),
|
|
5464
5487
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5465
5488
|
// Page placement properties
|
|
5466
|
-
parentPersistentId:
|
|
5467
|
-
afterPersistentId:
|
|
5489
|
+
parentPersistentId: z197.string().uuid(),
|
|
5490
|
+
afterPersistentId: z197.string().uuid().nullish()
|
|
5468
5491
|
});
|
|
5469
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5492
|
+
var DTOUpdateDocumentationPageInputV2 = z197.object({
|
|
5470
5493
|
// Identifier of the group to update
|
|
5471
|
-
id:
|
|
5494
|
+
id: z197.string(),
|
|
5472
5495
|
// Page properties
|
|
5473
|
-
title:
|
|
5496
|
+
title: z197.string().optional(),
|
|
5474
5497
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5475
5498
|
});
|
|
5476
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5499
|
+
var DTOMoveDocumentationPageInputV2 = z197.object({
|
|
5477
5500
|
// Identifier of the group to update
|
|
5478
|
-
id:
|
|
5501
|
+
id: z197.string(),
|
|
5479
5502
|
// Page placement properties
|
|
5480
|
-
parentPersistentId:
|
|
5481
|
-
afterPersistentId:
|
|
5503
|
+
parentPersistentId: z197.string().uuid(),
|
|
5504
|
+
afterPersistentId: z197.string().uuid().nullish()
|
|
5482
5505
|
});
|
|
5483
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5506
|
+
var DTODuplicateDocumentationPageInputV2 = z197.object({
|
|
5484
5507
|
// Identifier of the page to duplicate from
|
|
5485
|
-
id:
|
|
5508
|
+
id: z197.string(),
|
|
5486
5509
|
// New page persistent id
|
|
5487
|
-
persistentId:
|
|
5510
|
+
persistentId: z197.string().uuid(),
|
|
5488
5511
|
// Page placement properties
|
|
5489
|
-
parentPersistentId:
|
|
5490
|
-
afterPersistentId:
|
|
5512
|
+
parentPersistentId: z197.string().uuid(),
|
|
5513
|
+
afterPersistentId: z197.string().uuid().nullish()
|
|
5491
5514
|
});
|
|
5492
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5515
|
+
var DTODeleteDocumentationPageInputV2 = z197.object({
|
|
5493
5516
|
// Identifier
|
|
5494
|
-
id:
|
|
5517
|
+
id: z197.string()
|
|
5495
5518
|
});
|
|
5496
|
-
var DTORestoreDocumentationPageInput =
|
|
5497
|
-
persistentId:
|
|
5498
|
-
snapshotId:
|
|
5519
|
+
var DTORestoreDocumentationPageInput = z197.object({
|
|
5520
|
+
persistentId: z197.string(),
|
|
5521
|
+
snapshotId: z197.string().optional()
|
|
5499
5522
|
});
|
|
5500
|
-
var DTORestoreDocumentationGroupInput =
|
|
5501
|
-
persistentId:
|
|
5502
|
-
snapshotId:
|
|
5523
|
+
var DTORestoreDocumentationGroupInput = z197.object({
|
|
5524
|
+
persistentId: z197.string(),
|
|
5525
|
+
snapshotId: z197.string().optional()
|
|
5503
5526
|
});
|
|
5504
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5505
|
-
persistentId:
|
|
5527
|
+
var DTODocumentationPageApprovalStateChangeInput = z197.object({
|
|
5528
|
+
persistentId: z197.string(),
|
|
5506
5529
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5507
5530
|
});
|
|
5508
5531
|
|
|
5509
5532
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5510
|
-
var DTODocumentationPageSnapshot =
|
|
5511
|
-
id:
|
|
5512
|
-
designSystemVersionId:
|
|
5513
|
-
createdAt:
|
|
5514
|
-
updatedAt:
|
|
5533
|
+
var DTODocumentationPageSnapshot = z198.object({
|
|
5534
|
+
id: z198.string(),
|
|
5535
|
+
designSystemVersionId: z198.string(),
|
|
5536
|
+
createdAt: z198.string(),
|
|
5537
|
+
updatedAt: z198.string(),
|
|
5515
5538
|
documentationPage: DTODocumentationPageV2,
|
|
5516
|
-
pageContentHash:
|
|
5539
|
+
pageContentHash: z198.string(),
|
|
5517
5540
|
reason: DesignElementSnapshotReason
|
|
5518
5541
|
});
|
|
5519
5542
|
|
|
5520
5543
|
// src/api/dto/documentation/link-preview.ts
|
|
5521
|
-
import { z as
|
|
5522
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5544
|
+
import { z as z199 } from "zod";
|
|
5545
|
+
var DTODocumentationLinkPreviewResponse = z199.object({
|
|
5523
5546
|
linkPreview: DocumentationLinkPreview
|
|
5524
5547
|
});
|
|
5525
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5526
|
-
url:
|
|
5527
|
-
documentationItemPersistentId:
|
|
5548
|
+
var DTODocumentationLinkPreviewRequest = z199.object({
|
|
5549
|
+
url: z199.string().optional(),
|
|
5550
|
+
documentationItemPersistentId: z199.string().optional()
|
|
5528
5551
|
});
|
|
5529
5552
|
|
|
5530
5553
|
// src/api/dto/documentation/publish.ts
|
|
5531
|
-
import { z as
|
|
5554
|
+
import { z as z203 } from "zod";
|
|
5532
5555
|
|
|
5533
5556
|
// src/api/dto/export/exporter.ts
|
|
5534
|
-
import { z as
|
|
5535
|
-
var DTOExporterType =
|
|
5536
|
-
var DTOExporterSource =
|
|
5537
|
-
var DTOExporterMembershipRole =
|
|
5538
|
-
var DTOExporter =
|
|
5539
|
-
id:
|
|
5540
|
-
name:
|
|
5541
|
-
isPrivate:
|
|
5557
|
+
import { z as z200 } from "zod";
|
|
5558
|
+
var DTOExporterType = z200.enum(["documentation", "code"]);
|
|
5559
|
+
var DTOExporterSource = z200.enum(["git", "upload"]);
|
|
5560
|
+
var DTOExporterMembershipRole = z200.enum(["Owner", "OwnerArchived", "User"]);
|
|
5561
|
+
var DTOExporter = z200.object({
|
|
5562
|
+
id: z200.string(),
|
|
5563
|
+
name: z200.string(),
|
|
5564
|
+
isPrivate: z200.boolean(),
|
|
5542
5565
|
exporterType: DTOExporterType,
|
|
5543
|
-
isDefaultDocumentationExporter:
|
|
5544
|
-
iconURL:
|
|
5566
|
+
isDefaultDocumentationExporter: z200.boolean(),
|
|
5567
|
+
iconURL: z200.string().optional(),
|
|
5545
5568
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5546
5569
|
customBlocks: PulsarCustomBlock.array(),
|
|
5547
|
-
blockVariants:
|
|
5548
|
-
usesBrands:
|
|
5549
|
-
usesThemes:
|
|
5570
|
+
blockVariants: z200.record(z200.string(), PulsarContributionVariant.array()),
|
|
5571
|
+
usesBrands: z200.boolean(),
|
|
5572
|
+
usesThemes: z200.boolean(),
|
|
5550
5573
|
source: DTOExporterSource,
|
|
5551
|
-
gitUrl:
|
|
5552
|
-
gitBranch:
|
|
5553
|
-
gitDirectory:
|
|
5574
|
+
gitUrl: z200.string().optional(),
|
|
5575
|
+
gitBranch: z200.string().optional(),
|
|
5576
|
+
gitDirectory: z200.string().optional()
|
|
5554
5577
|
});
|
|
5555
|
-
var DTOExporterMembership =
|
|
5556
|
-
workspaceId:
|
|
5557
|
-
exporterId:
|
|
5578
|
+
var DTOExporterMembership = z200.object({
|
|
5579
|
+
workspaceId: z200.string(),
|
|
5580
|
+
exporterId: z200.string(),
|
|
5558
5581
|
role: DTOExporterMembershipRole
|
|
5559
5582
|
});
|
|
5560
|
-
var DTOExporterCreateOutput =
|
|
5583
|
+
var DTOExporterCreateOutput = z200.object({
|
|
5561
5584
|
exporter: DTOExporter,
|
|
5562
5585
|
membership: DTOExporterMembership
|
|
5563
5586
|
});
|
|
5564
|
-
var DTOExporterGitProviderEnum =
|
|
5565
|
-
var DTOExporterCreateInput =
|
|
5566
|
-
url:
|
|
5587
|
+
var DTOExporterGitProviderEnum = z200.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5588
|
+
var DTOExporterCreateInput = z200.object({
|
|
5589
|
+
url: z200.string(),
|
|
5567
5590
|
provider: DTOExporterGitProviderEnum
|
|
5568
5591
|
});
|
|
5569
|
-
var DTOExporterUpdateInput =
|
|
5570
|
-
url:
|
|
5592
|
+
var DTOExporterUpdateInput = z200.object({
|
|
5593
|
+
url: z200.string().optional()
|
|
5571
5594
|
});
|
|
5572
5595
|
|
|
5573
5596
|
// src/api/dto/export/filter.ts
|
|
5574
5597
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5575
5598
|
|
|
5576
5599
|
// src/api/dto/export/job.ts
|
|
5577
|
-
import { z as
|
|
5578
|
-
var DTOExportJobCreatedBy =
|
|
5579
|
-
userId:
|
|
5580
|
-
userName:
|
|
5600
|
+
import { z as z201 } from "zod";
|
|
5601
|
+
var DTOExportJobCreatedBy = z201.object({
|
|
5602
|
+
userId: z201.string(),
|
|
5603
|
+
userName: z201.string()
|
|
5581
5604
|
});
|
|
5582
|
-
var DTOExportJobDesignSystemPreview =
|
|
5583
|
-
id:
|
|
5605
|
+
var DTOExportJobDesignSystemPreview = z201.object({
|
|
5606
|
+
id: z201.string(),
|
|
5584
5607
|
meta: ObjectMeta
|
|
5585
5608
|
});
|
|
5586
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5587
|
-
id:
|
|
5609
|
+
var DTOExportJobDesignSystemVersionPreview = z201.object({
|
|
5610
|
+
id: z201.string(),
|
|
5588
5611
|
meta: ObjectMeta,
|
|
5589
|
-
version:
|
|
5590
|
-
isReadonly:
|
|
5612
|
+
version: z201.string(),
|
|
5613
|
+
isReadonly: z201.boolean()
|
|
5591
5614
|
});
|
|
5592
|
-
var DTOExportJobDestinations =
|
|
5615
|
+
var DTOExportJobDestinations = z201.object({
|
|
5593
5616
|
s3: ExporterDestinationS3.optional(),
|
|
5594
5617
|
azure: ExporterDestinationAzure.optional(),
|
|
5595
5618
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5596
5619
|
github: ExporterDestinationGithub.optional(),
|
|
5597
5620
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5598
5621
|
documentation: ExporterDestinationDocs.optional(),
|
|
5599
|
-
webhookUrl:
|
|
5622
|
+
webhookUrl: z201.string().optional()
|
|
5600
5623
|
});
|
|
5601
5624
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5602
5625
|
sndocs: true
|
|
5603
5626
|
}).extend({
|
|
5604
5627
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5605
5628
|
});
|
|
5606
|
-
var DTOExportJob =
|
|
5607
|
-
id:
|
|
5608
|
-
createdAt:
|
|
5609
|
-
finishedAt:
|
|
5610
|
-
index:
|
|
5629
|
+
var DTOExportJob = z201.object({
|
|
5630
|
+
id: z201.string(),
|
|
5631
|
+
createdAt: z201.coerce.date(),
|
|
5632
|
+
finishedAt: z201.coerce.date().optional(),
|
|
5633
|
+
index: z201.number().optional(),
|
|
5611
5634
|
status: ExportJobStatus,
|
|
5612
|
-
estimatedExecutionTime:
|
|
5635
|
+
estimatedExecutionTime: z201.number().optional(),
|
|
5613
5636
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5614
5637
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5615
5638
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5616
5639
|
destinations: DTOExportJobDestinations,
|
|
5617
|
-
exporterId:
|
|
5618
|
-
scheduleId:
|
|
5640
|
+
exporterId: z201.string(),
|
|
5641
|
+
scheduleId: z201.string().optional(),
|
|
5619
5642
|
result: DTOExportJobResult.optional(),
|
|
5620
|
-
brandPersistentId:
|
|
5621
|
-
themePersistentId:
|
|
5643
|
+
brandPersistentId: z201.string().optional(),
|
|
5644
|
+
themePersistentId: z201.string().optional()
|
|
5622
5645
|
});
|
|
5623
|
-
var DTOExportJobResponse =
|
|
5646
|
+
var DTOExportJobResponse = z201.object({
|
|
5624
5647
|
job: DTOExportJob
|
|
5625
5648
|
});
|
|
5626
5649
|
|
|
5627
5650
|
// src/api/dto/export/pipeline.ts
|
|
5628
|
-
import { z as
|
|
5629
|
-
var DTOPipeline =
|
|
5630
|
-
id:
|
|
5631
|
-
name:
|
|
5651
|
+
import { z as z202 } from "zod";
|
|
5652
|
+
var DTOPipeline = z202.object({
|
|
5653
|
+
id: z202.string(),
|
|
5654
|
+
name: z202.string(),
|
|
5632
5655
|
eventType: PipelineEventType,
|
|
5633
|
-
isEnabled:
|
|
5634
|
-
workspaceId:
|
|
5635
|
-
designSystemId:
|
|
5636
|
-
exporterId:
|
|
5637
|
-
brandPersistentId:
|
|
5638
|
-
themePersistentId:
|
|
5656
|
+
isEnabled: z202.boolean(),
|
|
5657
|
+
workspaceId: z202.string(),
|
|
5658
|
+
designSystemId: z202.string(),
|
|
5659
|
+
exporterId: z202.string(),
|
|
5660
|
+
brandPersistentId: z202.string().optional(),
|
|
5661
|
+
themePersistentId: z202.string().optional(),
|
|
5639
5662
|
...ExportDestinationsMap.shape,
|
|
5640
5663
|
latestJobs: DTOExportJob.array()
|
|
5641
5664
|
});
|
|
5642
5665
|
|
|
5643
5666
|
// src/api/dto/documentation/publish.ts
|
|
5644
5667
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5645
|
-
var DTOPublishDocumentationRequest =
|
|
5668
|
+
var DTOPublishDocumentationRequest = z203.object({
|
|
5646
5669
|
environment: PublishedDocEnvironment,
|
|
5647
5670
|
/**
|
|
5648
5671
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -5650,41 +5673,41 @@ var DTOPublishDocumentationRequest = z201.object({
|
|
|
5650
5673
|
*/
|
|
5651
5674
|
changes: DTOPublishDocumentationChanges.optional()
|
|
5652
5675
|
});
|
|
5653
|
-
var DTOPublishDocumentationResponse =
|
|
5676
|
+
var DTOPublishDocumentationResponse = z203.object({
|
|
5654
5677
|
job: DTOExportJob
|
|
5655
5678
|
});
|
|
5656
5679
|
|
|
5657
5680
|
// src/api/dto/elements/components/figma-component.ts
|
|
5658
|
-
import { z as
|
|
5681
|
+
import { z as z204 } from "zod";
|
|
5659
5682
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
5660
|
-
var DTOFigmaComponentPropertyMap =
|
|
5661
|
-
var DTOFigmaComponent =
|
|
5662
|
-
id:
|
|
5663
|
-
persistentId:
|
|
5664
|
-
designSystemVersionId:
|
|
5665
|
-
brandId:
|
|
5666
|
-
thumbnailUrl:
|
|
5667
|
-
svgUrl:
|
|
5668
|
-
exportProperties:
|
|
5669
|
-
isAsset:
|
|
5683
|
+
var DTOFigmaComponentPropertyMap = z204.record(DTOFigmaComponentProperty);
|
|
5684
|
+
var DTOFigmaComponent = z204.object({
|
|
5685
|
+
id: z204.string(),
|
|
5686
|
+
persistentId: z204.string(),
|
|
5687
|
+
designSystemVersionId: z204.string(),
|
|
5688
|
+
brandId: z204.string(),
|
|
5689
|
+
thumbnailUrl: z204.string().optional(),
|
|
5690
|
+
svgUrl: z204.string().optional(),
|
|
5691
|
+
exportProperties: z204.object({
|
|
5692
|
+
isAsset: z204.boolean()
|
|
5670
5693
|
}),
|
|
5671
|
-
createdAt:
|
|
5672
|
-
updatedAt:
|
|
5694
|
+
createdAt: z204.coerce.date(),
|
|
5695
|
+
updatedAt: z204.coerce.date(),
|
|
5673
5696
|
meta: ObjectMeta,
|
|
5674
5697
|
originComponent: FigmaComponentOrigin.optional(),
|
|
5675
|
-
parentComponentPersistentId:
|
|
5698
|
+
parentComponentPersistentId: z204.string().optional(),
|
|
5676
5699
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
5677
|
-
childrenPersistentIds:
|
|
5700
|
+
childrenPersistentIds: z204.string().array().optional()
|
|
5678
5701
|
});
|
|
5679
|
-
var DTOFigmaComponentListResponse =
|
|
5702
|
+
var DTOFigmaComponentListResponse = z204.object({
|
|
5680
5703
|
components: DTOFigmaComponent.array()
|
|
5681
5704
|
});
|
|
5682
5705
|
|
|
5683
5706
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5684
|
-
import { z as
|
|
5707
|
+
import { z as z206 } from "zod";
|
|
5685
5708
|
|
|
5686
5709
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
5687
|
-
import { z as
|
|
5710
|
+
import { z as z205 } from "zod";
|
|
5688
5711
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
5689
5712
|
sortOrder: true,
|
|
5690
5713
|
parentPersistentId: true,
|
|
@@ -5694,13 +5717,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5694
5717
|
data: true,
|
|
5695
5718
|
shortPersistentId: true
|
|
5696
5719
|
}).extend({
|
|
5697
|
-
title:
|
|
5698
|
-
isRoot:
|
|
5699
|
-
childrenIds:
|
|
5720
|
+
title: z205.string(),
|
|
5721
|
+
isRoot: z205.boolean(),
|
|
5722
|
+
childrenIds: z205.array(z205.string()),
|
|
5700
5723
|
groupBehavior: DocumentationGroupBehavior,
|
|
5701
|
-
shortPersistentId:
|
|
5724
|
+
shortPersistentId: z205.string(),
|
|
5702
5725
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5703
|
-
type:
|
|
5726
|
+
type: z205.literal("Group"),
|
|
5704
5727
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
5705
5728
|
draftState: DTODocumentationDraftState.optional(),
|
|
5706
5729
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -5708,127 +5731,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
5708
5731
|
//** An approval state for frontend to utilize. */
|
|
5709
5732
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
5710
5733
|
});
|
|
5711
|
-
var DTOCreateDocumentationGroupInput =
|
|
5734
|
+
var DTOCreateDocumentationGroupInput = z205.object({
|
|
5712
5735
|
// Identifier
|
|
5713
|
-
persistentId:
|
|
5736
|
+
persistentId: z205.string().uuid(),
|
|
5714
5737
|
// Group properties
|
|
5715
|
-
title:
|
|
5738
|
+
title: z205.string(),
|
|
5716
5739
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5717
5740
|
// Group placement properties
|
|
5718
|
-
afterPersistentId:
|
|
5719
|
-
parentPersistentId:
|
|
5741
|
+
afterPersistentId: z205.string().uuid().nullish(),
|
|
5742
|
+
parentPersistentId: z205.string().uuid()
|
|
5720
5743
|
});
|
|
5721
|
-
var DTOUpdateDocumentationGroupInput =
|
|
5744
|
+
var DTOUpdateDocumentationGroupInput = z205.object({
|
|
5722
5745
|
// Identifier of the group to update
|
|
5723
|
-
id:
|
|
5746
|
+
id: z205.string(),
|
|
5724
5747
|
// Group properties
|
|
5725
|
-
title:
|
|
5748
|
+
title: z205.string().optional(),
|
|
5726
5749
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5727
5750
|
});
|
|
5728
|
-
var DTOMoveDocumentationGroupInput =
|
|
5751
|
+
var DTOMoveDocumentationGroupInput = z205.object({
|
|
5729
5752
|
// Identifier of the group to update
|
|
5730
|
-
id:
|
|
5753
|
+
id: z205.string(),
|
|
5731
5754
|
// Group placement properties
|
|
5732
|
-
parentPersistentId:
|
|
5733
|
-
afterPersistentId:
|
|
5755
|
+
parentPersistentId: z205.string().uuid(),
|
|
5756
|
+
afterPersistentId: z205.string().uuid().nullish()
|
|
5734
5757
|
});
|
|
5735
|
-
var DTODuplicateDocumentationGroupInput =
|
|
5758
|
+
var DTODuplicateDocumentationGroupInput = z205.object({
|
|
5736
5759
|
// Identifier of the group to duplicate from
|
|
5737
|
-
id:
|
|
5760
|
+
id: z205.string(),
|
|
5738
5761
|
// New group persistent id
|
|
5739
|
-
persistentId:
|
|
5762
|
+
persistentId: z205.string().uuid(),
|
|
5740
5763
|
// Group placement properties
|
|
5741
|
-
afterPersistentId:
|
|
5742
|
-
parentPersistentId:
|
|
5764
|
+
afterPersistentId: z205.string().uuid().nullish(),
|
|
5765
|
+
parentPersistentId: z205.string().uuid()
|
|
5743
5766
|
});
|
|
5744
|
-
var DTOCreateDocumentationTabInput =
|
|
5767
|
+
var DTOCreateDocumentationTabInput = z205.object({
|
|
5745
5768
|
// New group persistent id
|
|
5746
|
-
persistentId:
|
|
5769
|
+
persistentId: z205.string().uuid(),
|
|
5747
5770
|
// If this is page, we will attempt to convert it to tab
|
|
5748
5771
|
// If this is tab group, we will add a new tab to it
|
|
5749
|
-
fromItemPersistentId:
|
|
5750
|
-
tabName:
|
|
5772
|
+
fromItemPersistentId: z205.string(),
|
|
5773
|
+
tabName: z205.string()
|
|
5751
5774
|
});
|
|
5752
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
5775
|
+
var DTODeleteDocumentationTabGroupInput = z205.object({
|
|
5753
5776
|
// Deleted group id
|
|
5754
|
-
id:
|
|
5777
|
+
id: z205.string()
|
|
5755
5778
|
});
|
|
5756
|
-
var DTODeleteDocumentationGroupInput =
|
|
5779
|
+
var DTODeleteDocumentationGroupInput = z205.object({
|
|
5757
5780
|
// Identifier
|
|
5758
|
-
id:
|
|
5781
|
+
id: z205.string(),
|
|
5759
5782
|
// Deletion options
|
|
5760
|
-
deleteSubtree:
|
|
5783
|
+
deleteSubtree: z205.boolean().default(false)
|
|
5761
5784
|
});
|
|
5762
5785
|
|
|
5763
5786
|
// src/api/dto/elements/documentation/group-action.ts
|
|
5764
|
-
var SuccessPayload =
|
|
5765
|
-
success:
|
|
5787
|
+
var SuccessPayload = z206.object({
|
|
5788
|
+
success: z206.literal(true)
|
|
5766
5789
|
});
|
|
5767
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
5768
|
-
type:
|
|
5790
|
+
var DTODocumentationGroupCreateActionOutputV2 = z206.object({
|
|
5791
|
+
type: z206.literal("DocumentationGroupCreate"),
|
|
5769
5792
|
output: SuccessPayload
|
|
5770
5793
|
});
|
|
5771
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
5772
|
-
type:
|
|
5794
|
+
var DTODocumentationTabCreateActionOutputV2 = z206.object({
|
|
5795
|
+
type: z206.literal("DocumentationTabCreate"),
|
|
5773
5796
|
output: SuccessPayload
|
|
5774
5797
|
});
|
|
5775
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
5776
|
-
type:
|
|
5798
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z206.object({
|
|
5799
|
+
type: z206.literal("DocumentationGroupUpdate"),
|
|
5777
5800
|
output: SuccessPayload
|
|
5778
5801
|
});
|
|
5779
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
5780
|
-
type:
|
|
5802
|
+
var DTODocumentationGroupMoveActionOutputV2 = z206.object({
|
|
5803
|
+
type: z206.literal("DocumentationGroupMove"),
|
|
5781
5804
|
output: SuccessPayload
|
|
5782
5805
|
});
|
|
5783
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
5784
|
-
type:
|
|
5806
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z206.object({
|
|
5807
|
+
type: z206.literal("DocumentationGroupDuplicate"),
|
|
5785
5808
|
output: SuccessPayload
|
|
5786
5809
|
});
|
|
5787
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
5788
|
-
type:
|
|
5810
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z206.object({
|
|
5811
|
+
type: z206.literal("DocumentationGroupDelete"),
|
|
5789
5812
|
output: SuccessPayload
|
|
5790
5813
|
});
|
|
5791
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
5792
|
-
type:
|
|
5814
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z206.object({
|
|
5815
|
+
type: z206.literal("DocumentationTabGroupDelete"),
|
|
5793
5816
|
output: SuccessPayload
|
|
5794
5817
|
});
|
|
5795
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
5796
|
-
type:
|
|
5818
|
+
var DTODocumentationGroupCreateActionInputV2 = z206.object({
|
|
5819
|
+
type: z206.literal("DocumentationGroupCreate"),
|
|
5797
5820
|
input: DTOCreateDocumentationGroupInput
|
|
5798
5821
|
});
|
|
5799
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
5800
|
-
type:
|
|
5822
|
+
var DTODocumentationTabCreateActionInputV2 = z206.object({
|
|
5823
|
+
type: z206.literal("DocumentationTabCreate"),
|
|
5801
5824
|
input: DTOCreateDocumentationTabInput
|
|
5802
5825
|
});
|
|
5803
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
5804
|
-
type:
|
|
5826
|
+
var DTODocumentationGroupUpdateActionInputV2 = z206.object({
|
|
5827
|
+
type: z206.literal("DocumentationGroupUpdate"),
|
|
5805
5828
|
input: DTOUpdateDocumentationGroupInput
|
|
5806
5829
|
});
|
|
5807
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
5808
|
-
type:
|
|
5830
|
+
var DTODocumentationGroupMoveActionInputV2 = z206.object({
|
|
5831
|
+
type: z206.literal("DocumentationGroupMove"),
|
|
5809
5832
|
input: DTOMoveDocumentationGroupInput
|
|
5810
5833
|
});
|
|
5811
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
5812
|
-
type:
|
|
5834
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z206.object({
|
|
5835
|
+
type: z206.literal("DocumentationGroupDuplicate"),
|
|
5813
5836
|
input: DTODuplicateDocumentationGroupInput
|
|
5814
5837
|
});
|
|
5815
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
5816
|
-
type:
|
|
5838
|
+
var DTODocumentationGroupDeleteActionInputV2 = z206.object({
|
|
5839
|
+
type: z206.literal("DocumentationGroupDelete"),
|
|
5817
5840
|
input: DTODeleteDocumentationGroupInput
|
|
5818
5841
|
});
|
|
5819
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
5820
|
-
type:
|
|
5842
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z206.object({
|
|
5843
|
+
type: z206.literal("DocumentationTabGroupDelete"),
|
|
5821
5844
|
input: DTODeleteDocumentationTabGroupInput
|
|
5822
5845
|
});
|
|
5823
5846
|
|
|
5824
5847
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
5825
|
-
import { z as
|
|
5848
|
+
import { z as z208 } from "zod";
|
|
5826
5849
|
|
|
5827
5850
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
5828
|
-
import { z as
|
|
5829
|
-
var DocumentationColorV1 =
|
|
5830
|
-
aliasTo:
|
|
5831
|
-
value:
|
|
5851
|
+
import { z as z207 } from "zod";
|
|
5852
|
+
var DocumentationColorV1 = z207.object({
|
|
5853
|
+
aliasTo: z207.string().optional(),
|
|
5854
|
+
value: z207.string().optional()
|
|
5832
5855
|
});
|
|
5833
5856
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
5834
5857
|
foregroundColor: true,
|
|
@@ -5837,10 +5860,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
5837
5860
|
foregroundColor: DocumentationColorV1.optional(),
|
|
5838
5861
|
backgroundColor: DocumentationColorV1.optional()
|
|
5839
5862
|
});
|
|
5840
|
-
var DTODocumentationItemConfigurationV1 =
|
|
5841
|
-
showSidebar:
|
|
5842
|
-
isPrivate:
|
|
5843
|
-
isHidden:
|
|
5863
|
+
var DTODocumentationItemConfigurationV1 = z207.object({
|
|
5864
|
+
showSidebar: z207.boolean(),
|
|
5865
|
+
isPrivate: z207.boolean(),
|
|
5866
|
+
isHidden: z207.boolean(),
|
|
5844
5867
|
header: DTODocumentationItemHeaderV1
|
|
5845
5868
|
});
|
|
5846
5869
|
|
|
@@ -5854,27 +5877,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
5854
5877
|
data: true,
|
|
5855
5878
|
shortPersistentId: true
|
|
5856
5879
|
}).extend({
|
|
5857
|
-
title:
|
|
5858
|
-
isRoot:
|
|
5859
|
-
childrenIds:
|
|
5880
|
+
title: z208.string(),
|
|
5881
|
+
isRoot: z208.boolean(),
|
|
5882
|
+
childrenIds: z208.array(z208.string()),
|
|
5860
5883
|
groupBehavior: DocumentationGroupBehavior,
|
|
5861
|
-
shortPersistentId:
|
|
5862
|
-
type:
|
|
5884
|
+
shortPersistentId: z208.string(),
|
|
5885
|
+
type: z208.literal("Group")
|
|
5863
5886
|
});
|
|
5864
5887
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
5865
5888
|
configuration: DTODocumentationItemConfigurationV1
|
|
5866
5889
|
});
|
|
5867
5890
|
|
|
5868
5891
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
5869
|
-
import { z as
|
|
5870
|
-
var DTODocumentationHierarchyV2 =
|
|
5871
|
-
pages:
|
|
5892
|
+
import { z as z209 } from "zod";
|
|
5893
|
+
var DTODocumentationHierarchyV2 = z209.object({
|
|
5894
|
+
pages: z209.array(
|
|
5872
5895
|
DTODocumentationPageV2.extend({
|
|
5873
5896
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5874
5897
|
draftState: DTODocumentationDraftState.optional()
|
|
5875
5898
|
})
|
|
5876
5899
|
),
|
|
5877
|
-
groups:
|
|
5900
|
+
groups: z209.array(
|
|
5878
5901
|
DTODocumentationGroupV2.extend({
|
|
5879
5902
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5880
5903
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -5883,84 +5906,84 @@ var DTODocumentationHierarchyV2 = z207.object({
|
|
|
5883
5906
|
});
|
|
5884
5907
|
|
|
5885
5908
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
5886
|
-
import { z as
|
|
5887
|
-
var SuccessPayload2 =
|
|
5888
|
-
success:
|
|
5909
|
+
import { z as z210 } from "zod";
|
|
5910
|
+
var SuccessPayload2 = z210.object({
|
|
5911
|
+
success: z210.literal(true)
|
|
5889
5912
|
});
|
|
5890
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
5891
|
-
type:
|
|
5913
|
+
var DTODocumentationPageCreateActionOutputV2 = z210.object({
|
|
5914
|
+
type: z210.literal("DocumentationPageCreate"),
|
|
5892
5915
|
output: SuccessPayload2
|
|
5893
5916
|
});
|
|
5894
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
5895
|
-
type:
|
|
5917
|
+
var DTODocumentationPageUpdateActionOutputV2 = z210.object({
|
|
5918
|
+
type: z210.literal("DocumentationPageUpdate"),
|
|
5896
5919
|
output: SuccessPayload2
|
|
5897
5920
|
});
|
|
5898
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
5899
|
-
type:
|
|
5921
|
+
var DTODocumentationPageMoveActionOutputV2 = z210.object({
|
|
5922
|
+
type: z210.literal("DocumentationPageMove"),
|
|
5900
5923
|
output: SuccessPayload2
|
|
5901
5924
|
});
|
|
5902
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
5903
|
-
type:
|
|
5925
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z210.object({
|
|
5926
|
+
type: z210.literal("DocumentationPageDuplicate"),
|
|
5904
5927
|
output: SuccessPayload2
|
|
5905
5928
|
});
|
|
5906
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
5907
|
-
type:
|
|
5929
|
+
var DTODocumentationPageDeleteActionOutputV2 = z210.object({
|
|
5930
|
+
type: z210.literal("DocumentationPageDelete"),
|
|
5908
5931
|
output: SuccessPayload2
|
|
5909
5932
|
});
|
|
5910
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
5911
|
-
type:
|
|
5933
|
+
var DTODocumentationPageRestoreActionOutput = z210.object({
|
|
5934
|
+
type: z210.literal("DocumentationPageRestore"),
|
|
5912
5935
|
output: SuccessPayload2
|
|
5913
5936
|
});
|
|
5914
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
5915
|
-
type:
|
|
5937
|
+
var DTODocumentationGroupRestoreActionOutput = z210.object({
|
|
5938
|
+
type: z210.literal("DocumentationGroupRestore"),
|
|
5916
5939
|
output: SuccessPayload2
|
|
5917
5940
|
});
|
|
5918
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
5919
|
-
type:
|
|
5941
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z210.object({
|
|
5942
|
+
type: z210.literal("DocumentationPageApprovalStateChange"),
|
|
5920
5943
|
output: SuccessPayload2
|
|
5921
5944
|
});
|
|
5922
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
5923
|
-
type:
|
|
5945
|
+
var DTODocumentationPageCreateActionInputV2 = z210.object({
|
|
5946
|
+
type: z210.literal("DocumentationPageCreate"),
|
|
5924
5947
|
input: DTOCreateDocumentationPageInputV2
|
|
5925
5948
|
});
|
|
5926
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
5927
|
-
type:
|
|
5949
|
+
var DTODocumentationPageUpdateActionInputV2 = z210.object({
|
|
5950
|
+
type: z210.literal("DocumentationPageUpdate"),
|
|
5928
5951
|
input: DTOUpdateDocumentationPageInputV2
|
|
5929
5952
|
});
|
|
5930
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
5931
|
-
type:
|
|
5953
|
+
var DTODocumentationPageMoveActionInputV2 = z210.object({
|
|
5954
|
+
type: z210.literal("DocumentationPageMove"),
|
|
5932
5955
|
input: DTOMoveDocumentationPageInputV2
|
|
5933
5956
|
});
|
|
5934
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
5935
|
-
type:
|
|
5957
|
+
var DTODocumentationPageDuplicateActionInputV2 = z210.object({
|
|
5958
|
+
type: z210.literal("DocumentationPageDuplicate"),
|
|
5936
5959
|
input: DTODuplicateDocumentationPageInputV2
|
|
5937
5960
|
});
|
|
5938
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
5939
|
-
type:
|
|
5961
|
+
var DTODocumentationPageDeleteActionInputV2 = z210.object({
|
|
5962
|
+
type: z210.literal("DocumentationPageDelete"),
|
|
5940
5963
|
input: DTODeleteDocumentationPageInputV2
|
|
5941
5964
|
});
|
|
5942
|
-
var DTODocumentationPageRestoreActionInput =
|
|
5943
|
-
type:
|
|
5965
|
+
var DTODocumentationPageRestoreActionInput = z210.object({
|
|
5966
|
+
type: z210.literal("DocumentationPageRestore"),
|
|
5944
5967
|
input: DTORestoreDocumentationPageInput
|
|
5945
5968
|
});
|
|
5946
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
5947
|
-
type:
|
|
5969
|
+
var DTODocumentationGroupRestoreActionInput = z210.object({
|
|
5970
|
+
type: z210.literal("DocumentationGroupRestore"),
|
|
5948
5971
|
input: DTORestoreDocumentationGroupInput
|
|
5949
5972
|
});
|
|
5950
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
5951
|
-
type:
|
|
5973
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z210.object({
|
|
5974
|
+
type: z210.literal("DocumentationPageApprovalStateChange"),
|
|
5952
5975
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
5953
5976
|
});
|
|
5954
5977
|
|
|
5955
5978
|
// src/api/dto/elements/documentation/page-content.ts
|
|
5956
|
-
import { z as
|
|
5979
|
+
import { z as z211 } from "zod";
|
|
5957
5980
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
5958
|
-
var DTODocumentationPageContentGetResponse =
|
|
5981
|
+
var DTODocumentationPageContentGetResponse = z211.object({
|
|
5959
5982
|
pageContent: DTODocumentationPageContent
|
|
5960
5983
|
});
|
|
5961
5984
|
|
|
5962
5985
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
5963
|
-
import { z as
|
|
5986
|
+
import { z as z212 } from "zod";
|
|
5964
5987
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
5965
5988
|
data: true,
|
|
5966
5989
|
meta: true,
|
|
@@ -5968,32 +5991,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
5968
5991
|
sortOrder: true
|
|
5969
5992
|
}).extend({
|
|
5970
5993
|
configuration: DTODocumentationItemConfigurationV1,
|
|
5971
|
-
blocks:
|
|
5972
|
-
title:
|
|
5973
|
-
path:
|
|
5994
|
+
blocks: z212.array(PageBlockV1),
|
|
5995
|
+
title: z212.string(),
|
|
5996
|
+
path: z212.string()
|
|
5974
5997
|
});
|
|
5975
5998
|
|
|
5976
5999
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
5977
|
-
import { z as
|
|
6000
|
+
import { z as z213 } from "zod";
|
|
5978
6001
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
5979
|
-
var DTOFigmaNodeOrigin =
|
|
5980
|
-
sourceId:
|
|
5981
|
-
fileId:
|
|
5982
|
-
parentName:
|
|
6002
|
+
var DTOFigmaNodeOrigin = z213.object({
|
|
6003
|
+
sourceId: z213.string(),
|
|
6004
|
+
fileId: z213.string().optional(),
|
|
6005
|
+
parentName: z213.string().optional()
|
|
5983
6006
|
});
|
|
5984
|
-
var DTOFigmaNodeData =
|
|
6007
|
+
var DTOFigmaNodeData = z213.object({
|
|
5985
6008
|
// Id of the node in the Figma file
|
|
5986
|
-
figmaNodeId:
|
|
6009
|
+
figmaNodeId: z213.string(),
|
|
5987
6010
|
// Validity
|
|
5988
|
-
isValid:
|
|
6011
|
+
isValid: z213.boolean(),
|
|
5989
6012
|
// Asset data
|
|
5990
|
-
assetId:
|
|
5991
|
-
assetUrl:
|
|
6013
|
+
assetId: z213.string(),
|
|
6014
|
+
assetUrl: z213.string(),
|
|
5992
6015
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
5993
6016
|
// Asset metadata
|
|
5994
|
-
assetScale:
|
|
5995
|
-
assetWidth:
|
|
5996
|
-
assetHeight:
|
|
6017
|
+
assetScale: z213.number(),
|
|
6018
|
+
assetWidth: z213.number().optional(),
|
|
6019
|
+
assetHeight: z213.number().optional()
|
|
5997
6020
|
});
|
|
5998
6021
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
5999
6022
|
data: true,
|
|
@@ -6002,15 +6025,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6002
6025
|
data: DTOFigmaNodeData,
|
|
6003
6026
|
origin: DTOFigmaNodeOrigin
|
|
6004
6027
|
});
|
|
6005
|
-
var DTOFigmaNodeRenderInput =
|
|
6028
|
+
var DTOFigmaNodeRenderInput = z213.object({
|
|
6006
6029
|
/**
|
|
6007
6030
|
* Id of a design system's data source representing a linked Figma file
|
|
6008
6031
|
*/
|
|
6009
|
-
sourceId:
|
|
6032
|
+
sourceId: z213.string(),
|
|
6010
6033
|
/**
|
|
6011
6034
|
* Id of a node within the Figma file
|
|
6012
6035
|
*/
|
|
6013
|
-
figmaFileNodeId:
|
|
6036
|
+
figmaFileNodeId: z213.string(),
|
|
6014
6037
|
/**
|
|
6015
6038
|
* Format in which the node must be rendered, png by default.
|
|
6016
6039
|
*/
|
|
@@ -6018,97 +6041,97 @@ var DTOFigmaNodeRenderInput = z211.object({
|
|
|
6018
6041
|
});
|
|
6019
6042
|
|
|
6020
6043
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6021
|
-
import { z as
|
|
6022
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6023
|
-
type:
|
|
6024
|
-
figmaNodes:
|
|
6044
|
+
import { z as z214 } from "zod";
|
|
6045
|
+
var DTOFigmaNodeRenderActionOutput = z214.object({
|
|
6046
|
+
type: z214.literal("FigmaNodeRender"),
|
|
6047
|
+
figmaNodes: z214.array(DTOFigmaNode)
|
|
6025
6048
|
});
|
|
6026
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6027
|
-
type:
|
|
6049
|
+
var DTOFigmaNodeRenderActionInput = z214.object({
|
|
6050
|
+
type: z214.literal("FigmaNodeRender"),
|
|
6028
6051
|
input: DTOFigmaNodeRenderInput.array()
|
|
6029
6052
|
});
|
|
6030
6053
|
|
|
6031
6054
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6032
|
-
import { z as
|
|
6055
|
+
import { z as z216 } from "zod";
|
|
6033
6056
|
|
|
6034
6057
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6035
|
-
import { z as
|
|
6058
|
+
import { z as z215 } from "zod";
|
|
6036
6059
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6037
|
-
var DTOElementPropertyDefinition =
|
|
6038
|
-
id:
|
|
6039
|
-
designSystemVersionId:
|
|
6060
|
+
var DTOElementPropertyDefinition = z215.object({
|
|
6061
|
+
id: z215.string(),
|
|
6062
|
+
designSystemVersionId: z215.string(),
|
|
6040
6063
|
meta: ObjectMeta,
|
|
6041
|
-
persistentId:
|
|
6064
|
+
persistentId: z215.string(),
|
|
6042
6065
|
type: ElementPropertyTypeSchema,
|
|
6043
6066
|
targetElementType: ElementPropertyTargetType,
|
|
6044
|
-
codeName:
|
|
6045
|
-
options:
|
|
6067
|
+
codeName: z215.string().regex(CODE_NAME_REGEX2),
|
|
6068
|
+
options: z215.array(ElementPropertyDefinitionOption).optional(),
|
|
6046
6069
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6047
6070
|
});
|
|
6048
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6049
|
-
definitions:
|
|
6071
|
+
var DTOElementPropertyDefinitionsGetResponse = z215.object({
|
|
6072
|
+
definitions: z215.array(DTOElementPropertyDefinition)
|
|
6050
6073
|
});
|
|
6051
6074
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6052
6075
|
id: true,
|
|
6053
6076
|
designSystemVersionId: true
|
|
6054
6077
|
});
|
|
6055
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6056
|
-
id:
|
|
6057
|
-
name:
|
|
6058
|
-
description:
|
|
6059
|
-
codeName:
|
|
6060
|
-
options:
|
|
6078
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z215.object({
|
|
6079
|
+
id: z215.string(),
|
|
6080
|
+
name: z215.string().optional(),
|
|
6081
|
+
description: z215.string().optional(),
|
|
6082
|
+
codeName: z215.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6083
|
+
options: z215.array(ElementPropertyDefinitionOption).optional()
|
|
6061
6084
|
});
|
|
6062
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6063
|
-
id:
|
|
6085
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z215.object({
|
|
6086
|
+
id: z215.string()
|
|
6064
6087
|
});
|
|
6065
6088
|
|
|
6066
6089
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6067
|
-
var SuccessPayload3 =
|
|
6068
|
-
success:
|
|
6090
|
+
var SuccessPayload3 = z216.object({
|
|
6091
|
+
success: z216.literal(true)
|
|
6069
6092
|
});
|
|
6070
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6071
|
-
type:
|
|
6093
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z216.object({
|
|
6094
|
+
type: z216.literal("PropertyDefinitionCreate"),
|
|
6072
6095
|
definition: DTOElementPropertyDefinition
|
|
6073
6096
|
});
|
|
6074
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6075
|
-
type:
|
|
6097
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z216.object({
|
|
6098
|
+
type: z216.literal("PropertyDefinitionUpdate"),
|
|
6076
6099
|
definition: DTOElementPropertyDefinition
|
|
6077
6100
|
});
|
|
6078
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6079
|
-
type:
|
|
6101
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z216.object({
|
|
6102
|
+
type: z216.literal("PropertyDefinitionDelete"),
|
|
6080
6103
|
output: SuccessPayload3
|
|
6081
6104
|
});
|
|
6082
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6083
|
-
type:
|
|
6105
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z216.object({
|
|
6106
|
+
type: z216.literal("PropertyDefinitionCreate"),
|
|
6084
6107
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6085
6108
|
});
|
|
6086
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6087
|
-
type:
|
|
6109
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z216.object({
|
|
6110
|
+
type: z216.literal("PropertyDefinitionUpdate"),
|
|
6088
6111
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6089
6112
|
});
|
|
6090
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6091
|
-
type:
|
|
6113
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z216.object({
|
|
6114
|
+
type: z216.literal("PropertyDefinitionDelete"),
|
|
6092
6115
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6093
6116
|
});
|
|
6094
6117
|
|
|
6095
6118
|
// src/api/dto/elements/properties/property-values.ts
|
|
6096
|
-
import { z as
|
|
6097
|
-
var DTOElementPropertyValue =
|
|
6098
|
-
id:
|
|
6099
|
-
designSystemVersionId:
|
|
6100
|
-
definitionId:
|
|
6101
|
-
targetElementId:
|
|
6102
|
-
value:
|
|
6103
|
-
valuePreview:
|
|
6119
|
+
import { z as z217 } from "zod";
|
|
6120
|
+
var DTOElementPropertyValue = z217.object({
|
|
6121
|
+
id: z217.string(),
|
|
6122
|
+
designSystemVersionId: z217.string(),
|
|
6123
|
+
definitionId: z217.string(),
|
|
6124
|
+
targetElementId: z217.string(),
|
|
6125
|
+
value: z217.union([z217.string(), z217.number(), z217.boolean()]).optional(),
|
|
6126
|
+
valuePreview: z217.string().optional()
|
|
6104
6127
|
});
|
|
6105
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6106
|
-
values:
|
|
6128
|
+
var DTOElementPropertyValuesGetResponse = z217.object({
|
|
6129
|
+
values: z217.array(DTOElementPropertyValue)
|
|
6107
6130
|
});
|
|
6108
6131
|
|
|
6109
6132
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6110
|
-
import { z as
|
|
6111
|
-
var DTOElementActionOutput =
|
|
6133
|
+
import { z as z218 } from "zod";
|
|
6134
|
+
var DTOElementActionOutput = z218.discriminatedUnion("type", [
|
|
6112
6135
|
// Documentation pages
|
|
6113
6136
|
DTODocumentationPageCreateActionOutputV2,
|
|
6114
6137
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6135,7 +6158,7 @@ var DTOElementActionOutput = z216.discriminatedUnion("type", [
|
|
|
6135
6158
|
// Approvals
|
|
6136
6159
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6137
6160
|
]);
|
|
6138
|
-
var DTOElementActionInput =
|
|
6161
|
+
var DTOElementActionInput = z218.discriminatedUnion("type", [
|
|
6139
6162
|
// Documentation pages
|
|
6140
6163
|
DTODocumentationPageCreateActionInputV2,
|
|
6141
6164
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6164,141 +6187,154 @@ var DTOElementActionInput = z216.discriminatedUnion("type", [
|
|
|
6164
6187
|
]);
|
|
6165
6188
|
|
|
6166
6189
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6167
|
-
import { z as
|
|
6168
|
-
var DTOElementsGetTypeFilter =
|
|
6169
|
-
var DTOElementsGetQuerySchema =
|
|
6170
|
-
types:
|
|
6190
|
+
import { z as z219 } from "zod";
|
|
6191
|
+
var DTOElementsGetTypeFilter = z219.enum(["FigmaNode"]);
|
|
6192
|
+
var DTOElementsGetQuerySchema = z219.object({
|
|
6193
|
+
types: z219.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6171
6194
|
});
|
|
6172
|
-
var DTOElementsGetOutput =
|
|
6173
|
-
figmaNodes:
|
|
6195
|
+
var DTOElementsGetOutput = z219.object({
|
|
6196
|
+
figmaNodes: z219.array(DTOFigmaNode).optional()
|
|
6174
6197
|
});
|
|
6175
6198
|
|
|
6176
6199
|
// src/api/dto/figma-components/assets/download.ts
|
|
6177
|
-
import { z as
|
|
6178
|
-
var DTOAssetRenderConfiguration =
|
|
6179
|
-
prefix:
|
|
6180
|
-
suffix:
|
|
6181
|
-
scale:
|
|
6182
|
-
format:
|
|
6183
|
-
});
|
|
6184
|
-
var DTORenderedAssetFile =
|
|
6185
|
-
assetId:
|
|
6186
|
-
fileName:
|
|
6187
|
-
sourceUrl:
|
|
6200
|
+
import { z as z220 } from "zod";
|
|
6201
|
+
var DTOAssetRenderConfiguration = z220.object({
|
|
6202
|
+
prefix: z220.string().optional(),
|
|
6203
|
+
suffix: z220.string().optional(),
|
|
6204
|
+
scale: z220.enum(["x1", "x2", "x3", "x4"]),
|
|
6205
|
+
format: z220.enum(["png", "pdf", "svg"])
|
|
6206
|
+
});
|
|
6207
|
+
var DTORenderedAssetFile = z220.object({
|
|
6208
|
+
assetId: z220.string(),
|
|
6209
|
+
fileName: z220.string(),
|
|
6210
|
+
sourceUrl: z220.string(),
|
|
6188
6211
|
settings: DTOAssetRenderConfiguration,
|
|
6189
|
-
originalName:
|
|
6212
|
+
originalName: z220.string()
|
|
6190
6213
|
});
|
|
6191
|
-
var DTODownloadAssetsRequest =
|
|
6192
|
-
persistentIds:
|
|
6214
|
+
var DTODownloadAssetsRequest = z220.object({
|
|
6215
|
+
persistentIds: z220.array(z220.string().uuid()).optional(),
|
|
6193
6216
|
settings: DTOAssetRenderConfiguration.array()
|
|
6194
6217
|
});
|
|
6195
|
-
var DTODownloadAssetsResponse =
|
|
6218
|
+
var DTODownloadAssetsResponse = z220.object({
|
|
6196
6219
|
items: DTORenderedAssetFile.array()
|
|
6197
6220
|
});
|
|
6198
6221
|
|
|
6199
6222
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6200
|
-
import { z as
|
|
6201
|
-
var DTOLiveblocksAuthResponse =
|
|
6202
|
-
token:
|
|
6223
|
+
import { z as z221 } from "zod";
|
|
6224
|
+
var DTOLiveblocksAuthResponse = z221.object({
|
|
6225
|
+
token: z221.string()
|
|
6203
6226
|
});
|
|
6204
6227
|
|
|
6205
|
-
// src/api/dto/users/
|
|
6206
|
-
import { z as
|
|
6207
|
-
var DTOUserProfileUpdateResponse =
|
|
6228
|
+
// src/api/dto/users/update.ts
|
|
6229
|
+
import { z as z222 } from "zod";
|
|
6230
|
+
var DTOUserProfileUpdateResponse = z222.object({
|
|
6208
6231
|
user: User
|
|
6209
6232
|
});
|
|
6210
6233
|
|
|
6234
|
+
// src/api/dto/users/user.ts
|
|
6235
|
+
import { z as z223 } from "zod";
|
|
6236
|
+
var DTOUserProfile = z223.object({
|
|
6237
|
+
name: z223.string(),
|
|
6238
|
+
nickname: z223.string().optional(),
|
|
6239
|
+
avatar: z223.string().optional()
|
|
6240
|
+
});
|
|
6241
|
+
var DTOUser = z223.object({
|
|
6242
|
+
id: z223.string(),
|
|
6243
|
+
email: z223.string(),
|
|
6244
|
+
profile: DTOUserProfile
|
|
6245
|
+
});
|
|
6246
|
+
|
|
6211
6247
|
// src/api/dto/workspaces/git.ts
|
|
6212
|
-
import { z as
|
|
6213
|
-
var DTOGitOrganization =
|
|
6214
|
-
id:
|
|
6215
|
-
name:
|
|
6216
|
-
url:
|
|
6217
|
-
slug:
|
|
6218
|
-
});
|
|
6219
|
-
var DTOGitProject =
|
|
6220
|
-
id:
|
|
6221
|
-
name:
|
|
6222
|
-
url:
|
|
6223
|
-
slug:
|
|
6224
|
-
});
|
|
6225
|
-
var DTOGitRepository =
|
|
6226
|
-
id:
|
|
6227
|
-
name:
|
|
6228
|
-
url:
|
|
6229
|
-
slug:
|
|
6230
|
-
defaultBranch:
|
|
6231
|
-
});
|
|
6232
|
-
var DTOGitBranch =
|
|
6233
|
-
name:
|
|
6234
|
-
lastCommitId:
|
|
6248
|
+
import { z as z224 } from "zod";
|
|
6249
|
+
var DTOGitOrganization = z224.object({
|
|
6250
|
+
id: z224.string(),
|
|
6251
|
+
name: z224.string(),
|
|
6252
|
+
url: z224.string(),
|
|
6253
|
+
slug: z224.string()
|
|
6254
|
+
});
|
|
6255
|
+
var DTOGitProject = z224.object({
|
|
6256
|
+
id: z224.string(),
|
|
6257
|
+
name: z224.string(),
|
|
6258
|
+
url: z224.string(),
|
|
6259
|
+
slug: z224.string()
|
|
6260
|
+
});
|
|
6261
|
+
var DTOGitRepository = z224.object({
|
|
6262
|
+
id: z224.string(),
|
|
6263
|
+
name: z224.string(),
|
|
6264
|
+
url: z224.string(),
|
|
6265
|
+
slug: z224.string(),
|
|
6266
|
+
defaultBranch: z224.string().optional()
|
|
6267
|
+
});
|
|
6268
|
+
var DTOGitBranch = z224.object({
|
|
6269
|
+
name: z224.string(),
|
|
6270
|
+
lastCommitId: z224.string()
|
|
6235
6271
|
});
|
|
6236
6272
|
|
|
6237
6273
|
// src/api/dto/workspaces/integrations.ts
|
|
6238
|
-
import { z as
|
|
6274
|
+
import { z as z225 } from "zod";
|
|
6239
6275
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
6240
6276
|
accessToken: true,
|
|
6241
6277
|
refreshToken: true
|
|
6242
6278
|
});
|
|
6243
|
-
var DTOIntegration =
|
|
6244
|
-
id:
|
|
6245
|
-
workspaceId:
|
|
6279
|
+
var DTOIntegration = z225.object({
|
|
6280
|
+
id: z225.string(),
|
|
6281
|
+
workspaceId: z225.string(),
|
|
6246
6282
|
type: ExtendedIntegrationType,
|
|
6247
|
-
createdAt:
|
|
6248
|
-
integrationCredentials:
|
|
6249
|
-
integrationDesignSystems:
|
|
6283
|
+
createdAt: z225.coerce.date(),
|
|
6284
|
+
integrationCredentials: z225.array(DTOIntegrationCredentials).optional(),
|
|
6285
|
+
integrationDesignSystems: z225.array(IntegrationDesignSystem).optional()
|
|
6250
6286
|
});
|
|
6251
|
-
var DTOIntegrationOAuthGetResponse =
|
|
6252
|
-
url:
|
|
6287
|
+
var DTOIntegrationOAuthGetResponse = z225.object({
|
|
6288
|
+
url: z225.string()
|
|
6253
6289
|
});
|
|
6254
|
-
var DTOIntegrationPostResponse =
|
|
6290
|
+
var DTOIntegrationPostResponse = z225.object({
|
|
6255
6291
|
integration: DTOIntegration
|
|
6256
6292
|
});
|
|
6257
|
-
var DTOIntegrationsGetListResponse =
|
|
6293
|
+
var DTOIntegrationsGetListResponse = z225.object({
|
|
6258
6294
|
integrations: DTOIntegration.array()
|
|
6259
6295
|
});
|
|
6260
6296
|
|
|
6261
6297
|
// src/api/dto/workspaces/membership.ts
|
|
6262
|
-
import { z as
|
|
6298
|
+
import { z as z228 } from "zod";
|
|
6263
6299
|
|
|
6264
6300
|
// src/api/dto/workspaces/workspace.ts
|
|
6265
|
-
import { z as
|
|
6301
|
+
import { z as z227 } from "zod";
|
|
6266
6302
|
|
|
6267
6303
|
// src/api/dto/workspaces/npm-registry.ts
|
|
6268
|
-
import { z as
|
|
6304
|
+
import { z as z226 } from "zod";
|
|
6269
6305
|
var DTONpmRegistryConfigConstants = {
|
|
6270
6306
|
passwordPlaceholder: "redacted"
|
|
6271
6307
|
};
|
|
6272
|
-
var DTONpmRegistryConfig =
|
|
6308
|
+
var DTONpmRegistryConfig = z226.object({
|
|
6273
6309
|
// Registry basic configuration
|
|
6274
6310
|
registryType: NpmRegistryType,
|
|
6275
|
-
registryUrl:
|
|
6276
|
-
customRegistryUrl:
|
|
6311
|
+
registryUrl: z226.string(),
|
|
6312
|
+
customRegistryUrl: z226.string().optional(),
|
|
6277
6313
|
// URL of Supernova NPM packages proxy
|
|
6278
|
-
proxyUrl:
|
|
6314
|
+
proxyUrl: z226.string(),
|
|
6279
6315
|
// Auth configuration
|
|
6280
6316
|
authType: NpmRegistryAuthType,
|
|
6281
|
-
accessToken:
|
|
6282
|
-
username:
|
|
6283
|
-
password:
|
|
6317
|
+
accessToken: z226.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6318
|
+
username: z226.string().optional(),
|
|
6319
|
+
password: z226.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
6284
6320
|
// NPM package scopes for whih the proxy should be enabled
|
|
6285
|
-
enabledScopes:
|
|
6321
|
+
enabledScopes: z226.array(z226.string()),
|
|
6286
6322
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
6287
6323
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
6288
|
-
bypassProxy:
|
|
6324
|
+
bypassProxy: z226.boolean()
|
|
6289
6325
|
});
|
|
6290
6326
|
|
|
6291
6327
|
// src/api/dto/workspaces/workspace.ts
|
|
6292
|
-
var DTOWorkspace =
|
|
6293
|
-
id:
|
|
6328
|
+
var DTOWorkspace = z227.object({
|
|
6329
|
+
id: z227.string(),
|
|
6294
6330
|
profile: WorkspaceProfile,
|
|
6295
6331
|
subscription: Subscription,
|
|
6296
6332
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
6297
6333
|
});
|
|
6298
6334
|
|
|
6299
6335
|
// src/api/dto/workspaces/membership.ts
|
|
6300
|
-
var DTOWorkspaceRole =
|
|
6301
|
-
var DTOUserWorkspaceMembership =
|
|
6336
|
+
var DTOWorkspaceRole = z228.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
6337
|
+
var DTOUserWorkspaceMembership = z228.object({
|
|
6302
6338
|
// Workspace the user is a member of
|
|
6303
6339
|
workspace: DTOWorkspace,
|
|
6304
6340
|
// Assigned role the user has in the workspace
|
|
@@ -6308,8 +6344,8 @@ var DTOUserWorkspaceMembership = z225.object({
|
|
|
6308
6344
|
// when a workspace's subscription is downgraded to free tier
|
|
6309
6345
|
effectiveRole: DTOWorkspaceRole
|
|
6310
6346
|
});
|
|
6311
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
6312
|
-
membership:
|
|
6347
|
+
var DTOUserWorkspaceMembershipsResponse = z228.object({
|
|
6348
|
+
membership: z228.array(DTOUserWorkspaceMembership)
|
|
6313
6349
|
});
|
|
6314
6350
|
|
|
6315
6351
|
// src/utils/hash.ts
|
|
@@ -6371,7 +6407,7 @@ function generateHash(input, debug = false) {
|
|
|
6371
6407
|
}
|
|
6372
6408
|
|
|
6373
6409
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6374
|
-
import { z as
|
|
6410
|
+
import { z as z229 } from "zod";
|
|
6375
6411
|
|
|
6376
6412
|
// src/yjs/version-room/base.ts
|
|
6377
6413
|
var VersionRoomBaseYDoc = class {
|
|
@@ -6900,24 +6936,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
6900
6936
|
};
|
|
6901
6937
|
|
|
6902
6938
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
6903
|
-
var DocumentationHierarchySettings =
|
|
6904
|
-
routingVersion:
|
|
6905
|
-
isDraftFeatureAdopted:
|
|
6906
|
-
isApprovalFeatureEnabled:
|
|
6907
|
-
approvalRequiredForPublishing:
|
|
6939
|
+
var DocumentationHierarchySettings = z229.object({
|
|
6940
|
+
routingVersion: z229.string(),
|
|
6941
|
+
isDraftFeatureAdopted: z229.boolean(),
|
|
6942
|
+
isApprovalFeatureEnabled: z229.boolean(),
|
|
6943
|
+
approvalRequiredForPublishing: z229.boolean()
|
|
6908
6944
|
});
|
|
6909
6945
|
function yjsToDocumentationHierarchy(doc) {
|
|
6910
6946
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
6911
6947
|
}
|
|
6912
6948
|
|
|
6913
6949
|
// src/yjs/design-system-content/item-configuration.ts
|
|
6914
|
-
import { z as
|
|
6915
|
-
var DTODocumentationPageRoomHeaderData =
|
|
6916
|
-
title:
|
|
6950
|
+
import { z as z230 } from "zod";
|
|
6951
|
+
var DTODocumentationPageRoomHeaderData = z230.object({
|
|
6952
|
+
title: z230.string(),
|
|
6917
6953
|
configuration: DTODocumentationItemConfigurationV2
|
|
6918
6954
|
});
|
|
6919
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
6920
|
-
title:
|
|
6955
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z230.object({
|
|
6956
|
+
title: z230.string().optional(),
|
|
6921
6957
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
6922
6958
|
});
|
|
6923
6959
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -6968,7 +7004,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
6968
7004
|
header: rawHeader
|
|
6969
7005
|
};
|
|
6970
7006
|
return {
|
|
6971
|
-
title:
|
|
7007
|
+
title: z230.string().parse(title),
|
|
6972
7008
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
6973
7009
|
};
|
|
6974
7010
|
}
|
|
@@ -6978,9 +7014,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
6978
7014
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
6979
7015
|
|
|
6980
7016
|
// src/yjs/docs-editor/model/page.ts
|
|
6981
|
-
import { z as
|
|
6982
|
-
var DocumentationPageEditorModel =
|
|
6983
|
-
blocks:
|
|
7017
|
+
import { z as z231 } from "zod";
|
|
7018
|
+
var DocumentationPageEditorModel = z231.object({
|
|
7019
|
+
blocks: z231.array(DocumentationPageContentItem)
|
|
6984
7020
|
});
|
|
6985
7021
|
|
|
6986
7022
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -10844,7 +10880,7 @@ var blocks = [
|
|
|
10844
10880
|
|
|
10845
10881
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
10846
10882
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
10847
|
-
import { z as
|
|
10883
|
+
import { z as z232 } from "zod";
|
|
10848
10884
|
function yDocToPage(yDoc, definitions) {
|
|
10849
10885
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
10850
10886
|
}
|
|
@@ -10924,7 +10960,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
10924
10960
|
return null;
|
|
10925
10961
|
return {
|
|
10926
10962
|
id,
|
|
10927
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
10963
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z232.string()) ?? "",
|
|
10928
10964
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
10929
10965
|
};
|
|
10930
10966
|
}
|
|
@@ -10959,7 +10995,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
10959
10995
|
});
|
|
10960
10996
|
}
|
|
10961
10997
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
10962
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
10998
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z232.string());
|
|
10963
10999
|
if (!definitionId) {
|
|
10964
11000
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
10965
11001
|
return [];
|
|
@@ -11001,7 +11037,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11001
11037
|
if (!id)
|
|
11002
11038
|
return null;
|
|
11003
11039
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11004
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11040
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z232.string().optional()));
|
|
11005
11041
|
return {
|
|
11006
11042
|
id,
|
|
11007
11043
|
type: "Block",
|
|
@@ -11129,10 +11165,10 @@ function parseRichTextAttribute(mark) {
|
|
|
11129
11165
|
return null;
|
|
11130
11166
|
}
|
|
11131
11167
|
function parseProsemirrorLink(mark) {
|
|
11132
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
11168
|
+
const href = getProsemirrorAttribute(mark, "href", z232.string().optional());
|
|
11133
11169
|
if (!href)
|
|
11134
11170
|
return null;
|
|
11135
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
11171
|
+
const target = getProsemirrorAttribute(mark, "target", z232.string().optional());
|
|
11136
11172
|
const openInNewTab = target === "_blank";
|
|
11137
11173
|
if (href.startsWith("@")) {
|
|
11138
11174
|
return {
|
|
@@ -11151,10 +11187,10 @@ function parseProsemirrorLink(mark) {
|
|
|
11151
11187
|
}
|
|
11152
11188
|
}
|
|
11153
11189
|
function parseProsemirrorCommentHighlight(mark) {
|
|
11154
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
11190
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z232.string().optional());
|
|
11155
11191
|
if (!highlightId)
|
|
11156
11192
|
return null;
|
|
11157
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
11193
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z232.boolean().optional()) ?? false;
|
|
11158
11194
|
return {
|
|
11159
11195
|
type: "Comment",
|
|
11160
11196
|
commentHighlightId: highlightId,
|
|
@@ -11166,7 +11202,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
11166
11202
|
if (!id)
|
|
11167
11203
|
return null;
|
|
11168
11204
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11169
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
11205
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z232.boolean().optional()) !== false;
|
|
11170
11206
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
11171
11207
|
if (!tableChild) {
|
|
11172
11208
|
return emptyTable(id, variantId, 0);
|
|
@@ -11213,9 +11249,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
11213
11249
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
11214
11250
|
if (!id)
|
|
11215
11251
|
return null;
|
|
11216
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11252
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z232.string().optional());
|
|
11217
11253
|
let columnWidth;
|
|
11218
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11254
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z232.array(z232.number()).optional());
|
|
11219
11255
|
if (columnWidthArray) {
|
|
11220
11256
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
11221
11257
|
}
|
|
@@ -11253,7 +11289,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11253
11289
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11254
11290
|
};
|
|
11255
11291
|
case "image":
|
|
11256
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11292
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z232.string());
|
|
11257
11293
|
if (!items)
|
|
11258
11294
|
return null;
|
|
11259
11295
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11373,7 +11409,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11373
11409
|
);
|
|
11374
11410
|
}
|
|
11375
11411
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11376
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11412
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z232.string());
|
|
11377
11413
|
if (!itemsString)
|
|
11378
11414
|
return null;
|
|
11379
11415
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11385,18 +11421,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11385
11421
|
}
|
|
11386
11422
|
function parseAppearance(prosemirrorNode) {
|
|
11387
11423
|
let appearance = {};
|
|
11388
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11424
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z232.string().optional());
|
|
11389
11425
|
if (rawAppearanceString) {
|
|
11390
11426
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11391
11427
|
if (parsedAppearance.success) {
|
|
11392
11428
|
appearance = parsedAppearance.data;
|
|
11393
11429
|
}
|
|
11394
11430
|
}
|
|
11395
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11431
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z232.number().optional());
|
|
11396
11432
|
if (columns) {
|
|
11397
11433
|
appearance.numberOfColumns = columns;
|
|
11398
11434
|
}
|
|
11399
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11435
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z232.string().optional());
|
|
11400
11436
|
if (backgroundColor) {
|
|
11401
11437
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11402
11438
|
if (parsedColor.success) {
|
|
@@ -11491,13 +11527,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11491
11527
|
}
|
|
11492
11528
|
}
|
|
11493
11529
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11494
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11530
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z232.string());
|
|
11495
11531
|
if (!id)
|
|
11496
11532
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11497
11533
|
return id;
|
|
11498
11534
|
}
|
|
11499
11535
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11500
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11536
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z232.string()));
|
|
11501
11537
|
}
|
|
11502
11538
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11503
11539
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|
|
@@ -11575,6 +11611,10 @@ export {
|
|
|
11575
11611
|
DTODeleteElementPropertyDefinitionInputV2,
|
|
11576
11612
|
DTODesignElementsDataDiffResponse,
|
|
11577
11613
|
DTODesignSystem,
|
|
11614
|
+
DTODesignSystemMember,
|
|
11615
|
+
DTODesignSystemMemberListResponse,
|
|
11616
|
+
DTODesignSystemMembersUpdatePayload,
|
|
11617
|
+
DTODesignSystemMembersUpdateResponse,
|
|
11578
11618
|
DTODesignSystemUpdateInput,
|
|
11579
11619
|
DTODesignSystemVersion,
|
|
11580
11620
|
DTODesignSystemVersionCreationResponse,
|
|
@@ -11734,7 +11774,9 @@ export {
|
|
|
11734
11774
|
DTOUpdateElementPropertyDefinitionInputV2,
|
|
11735
11775
|
DTOUpdateUserNotificationSettingsPayload,
|
|
11736
11776
|
DTOUpdateVersionInput,
|
|
11777
|
+
DTOUser,
|
|
11737
11778
|
DTOUserNotificationSettingsResponse,
|
|
11779
|
+
DTOUserProfile,
|
|
11738
11780
|
DTOUserProfileUpdatePayload,
|
|
11739
11781
|
DTOUserProfileUpdateResponse,
|
|
11740
11782
|
DTOUserWorkspaceMembership,
|