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