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