@supernova-studio/client 0.55.25 → 0.55.26
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 +51 -51
- package/dist/index.d.ts +51 -51
- package/dist/index.js +229 -226
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1501 -1498
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -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 z144 } 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 z143 } from "zod";
|
|
28
|
+
import { z as z142 } 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";
|
|
@@ -122,25 +122,28 @@ import { z as z109 } from "zod";
|
|
|
122
122
|
import { z as z110 } from "zod";
|
|
123
123
|
import { z as z111 } from "zod";
|
|
124
124
|
import { z as z112 } from "zod";
|
|
125
|
-
import { z as
|
|
125
|
+
import { z as z133 } from "zod";
|
|
126
126
|
import { z as z113 } from "zod";
|
|
127
127
|
import { z as z114 } from "zod";
|
|
128
128
|
import { z as z116 } from "zod";
|
|
129
|
-
import { z as
|
|
129
|
+
import { z as z115 } from "zod";
|
|
130
130
|
import { z as z118 } from "zod";
|
|
131
|
+
import IPCIDR from "ip-cidr";
|
|
132
|
+
import { z as z117 } from "zod";
|
|
131
133
|
import { z as z119 } from "zod";
|
|
132
134
|
import { z as z120 } from "zod";
|
|
133
135
|
import { z as z121 } from "zod";
|
|
136
|
+
import { z as z130 } from "zod";
|
|
134
137
|
import { z as z122 } from "zod";
|
|
135
138
|
import { z as z123 } from "zod";
|
|
136
|
-
import { z as
|
|
137
|
-
import { z as
|
|
139
|
+
import { z as z124 } from "zod";
|
|
140
|
+
import { z as z125 } from "zod";
|
|
141
|
+
import { z as z126 } from "zod";
|
|
138
142
|
import { z as z127 } from "zod";
|
|
139
143
|
import { z as z128 } from "zod";
|
|
140
144
|
import { z as z129 } from "zod";
|
|
141
|
-
import { z as z130 } from "zod";
|
|
142
145
|
import { z as z131 } from "zod";
|
|
143
|
-
import { z as
|
|
146
|
+
import { z as z132 } from "zod";
|
|
144
147
|
import { z as z134 } from "zod";
|
|
145
148
|
import { z as z135 } from "zod";
|
|
146
149
|
import { z as z136 } from "zod";
|
|
@@ -149,38 +152,36 @@ import { z as z138 } from "zod";
|
|
|
149
152
|
import { z as z139 } from "zod";
|
|
150
153
|
import { z as z140 } from "zod";
|
|
151
154
|
import { z as z141 } from "zod";
|
|
152
|
-
import { z as
|
|
153
|
-
import { z as
|
|
154
|
-
import IPCIDR from "ip-cidr";
|
|
155
|
+
import { z as z151 } from "zod";
|
|
156
|
+
import { z as z150 } from "zod";
|
|
155
157
|
import { z as z145 } from "zod";
|
|
156
|
-
import { z as
|
|
157
|
-
import { z as
|
|
158
|
+
import { z as z146 } from "zod";
|
|
159
|
+
import { z as z147 } from "zod";
|
|
158
160
|
import { z as z148 } from "zod";
|
|
159
|
-
import { z as z155 } from "zod";
|
|
160
161
|
import { z as z149 } from "zod";
|
|
161
|
-
import { z as z150 } from "zod";
|
|
162
|
-
import { z as z151 } from "zod";
|
|
163
|
-
import { z as z152 } from "zod";
|
|
164
|
-
import { z as z153 } from "zod";
|
|
165
162
|
import { z as z154 } from "zod";
|
|
163
|
+
import { z as z153 } from "zod";
|
|
164
|
+
import { z as z152 } from "zod";
|
|
165
|
+
import { z as z155 } from "zod";
|
|
166
166
|
import { z as z156 } from "zod";
|
|
167
|
-
import { z as z159 } from "zod";
|
|
168
167
|
import { z as z157 } from "zod";
|
|
169
|
-
import { z as z158 } from "zod";
|
|
170
168
|
import { z as z160 } from "zod";
|
|
169
|
+
import { z as z158 } 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
175
|
import { z as z165 } from "zod";
|
|
176
|
-
import { z as z167 } from "zod";
|
|
177
176
|
import { z as z166 } from "zod";
|
|
178
177
|
import { z as z168 } from "zod";
|
|
178
|
+
import { z as z167 } from "zod";
|
|
179
179
|
import { z as z169 } from "zod";
|
|
180
180
|
import { z as z170 } from "zod";
|
|
181
181
|
import { z as z171 } from "zod";
|
|
182
182
|
import { z as z172 } from "zod";
|
|
183
183
|
import { z as z173 } from "zod";
|
|
184
|
+
import { z as z174 } from "zod";
|
|
184
185
|
var __defProp2 = Object.defineProperty;
|
|
185
186
|
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
186
187
|
var __publicField2 = (obj, key, value) => {
|
|
@@ -3573,47 +3574,270 @@ var ElementGroupSnapshot = DesignElementSnapshotBase.extend({
|
|
|
3573
3574
|
function pickLatestGroupSnapshots(snapshots) {
|
|
3574
3575
|
return pickLatestSnapshots(snapshots, (s) => s.group.id);
|
|
3575
3576
|
}
|
|
3576
|
-
var
|
|
3577
|
+
var NpmRegistryAuthType = z113.enum(["Basic", "Bearer", "None", "Custom"]);
|
|
3578
|
+
var NpmRegistryType = z113.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
3579
|
+
var NpmRegistryBasicAuthConfig = z113.object({
|
|
3580
|
+
authType: z113.literal(NpmRegistryAuthType.Enum.Basic),
|
|
3581
|
+
username: z113.string(),
|
|
3582
|
+
password: z113.string()
|
|
3583
|
+
});
|
|
3584
|
+
var NpmRegistryBearerAuthConfig = z113.object({
|
|
3585
|
+
authType: z113.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
3586
|
+
accessToken: z113.string()
|
|
3587
|
+
});
|
|
3588
|
+
var NpmRegistryNoAuthConfig = z113.object({
|
|
3589
|
+
authType: z113.literal(NpmRegistryAuthType.Enum.None)
|
|
3590
|
+
});
|
|
3591
|
+
var NpmRegistrCustomAuthConfig = z113.object({
|
|
3592
|
+
authType: z113.literal(NpmRegistryAuthType.Enum.Custom),
|
|
3593
|
+
authHeaderName: z113.string(),
|
|
3594
|
+
authHeaderValue: z113.string()
|
|
3595
|
+
});
|
|
3596
|
+
var NpmRegistryAuthConfig = z113.discriminatedUnion("authType", [
|
|
3597
|
+
NpmRegistryBasicAuthConfig,
|
|
3598
|
+
NpmRegistryBearerAuthConfig,
|
|
3599
|
+
NpmRegistryNoAuthConfig,
|
|
3600
|
+
NpmRegistrCustomAuthConfig
|
|
3601
|
+
]);
|
|
3602
|
+
var NpmRegistryConfigBase = z113.object({
|
|
3603
|
+
registryType: NpmRegistryType,
|
|
3604
|
+
enabledScopes: z113.array(z113.string()),
|
|
3605
|
+
customRegistryUrl: z113.string().optional(),
|
|
3606
|
+
bypassProxy: z113.boolean().default(false),
|
|
3607
|
+
npmProxyRegistryConfigId: z113.string().optional(),
|
|
3608
|
+
npmProxyVersion: z113.number().optional()
|
|
3609
|
+
});
|
|
3610
|
+
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
3611
|
+
var SsoProvider = z114.object({
|
|
3612
|
+
providerId: z114.string(),
|
|
3613
|
+
defaultAutoInviteValue: z114.boolean(),
|
|
3614
|
+
autoInviteDomains: z114.record(z114.string(), z114.boolean()),
|
|
3615
|
+
skipDocsSupernovaLogin: z114.boolean(),
|
|
3616
|
+
areInvitesDisabled: z114.boolean(),
|
|
3617
|
+
isTestMode: z114.boolean(),
|
|
3618
|
+
emailDomains: z114.array(z114.string()),
|
|
3619
|
+
metadataXml: z114.string().nullish()
|
|
3620
|
+
});
|
|
3621
|
+
var WorkspaceRoleSchema = z115.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Guest", "Contributor"]);
|
|
3577
3622
|
var WorkspaceRole = WorkspaceRoleSchema.enum;
|
|
3578
|
-
var
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3623
|
+
var MAX_MEMBERS_COUNT = 100;
|
|
3624
|
+
var UserInvite = z116.object({
|
|
3625
|
+
email: z116.string().email().trim().transform((value) => value.toLowerCase()),
|
|
3626
|
+
role: WorkspaceRoleSchema
|
|
3627
|
+
});
|
|
3628
|
+
var UserInvites = z116.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
3629
|
+
var isValidCIDR = (value) => {
|
|
3630
|
+
return IPCIDR.isValidAddress(value);
|
|
3631
|
+
};
|
|
3632
|
+
var WorkspaceIpWhitelistEntry = z117.object({
|
|
3633
|
+
isEnabled: z117.boolean(),
|
|
3634
|
+
name: z117.string(),
|
|
3635
|
+
range: z117.string().refine(isValidCIDR, {
|
|
3636
|
+
message: "Invalid IP CIDR"
|
|
3637
|
+
})
|
|
3638
|
+
});
|
|
3639
|
+
var WorkspaceIpSettings = z117.object({
|
|
3640
|
+
isEnabledForCloud: z117.boolean(),
|
|
3641
|
+
isEnabledForDocs: z117.boolean(),
|
|
3642
|
+
entries: z117.array(WorkspaceIpWhitelistEntry)
|
|
3643
|
+
});
|
|
3644
|
+
var WorkspaceProfile = z117.object({
|
|
3645
|
+
name: z117.string(),
|
|
3646
|
+
handle: z117.string(),
|
|
3647
|
+
color: z117.string(),
|
|
3648
|
+
avatar: nullishToOptional(z117.string()),
|
|
3649
|
+
billingDetails: nullishToOptional(BillingDetails)
|
|
3650
|
+
});
|
|
3651
|
+
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
3652
|
+
avatar: true
|
|
3653
|
+
});
|
|
3654
|
+
var Workspace = z117.object({
|
|
3655
|
+
id: z117.string(),
|
|
3656
|
+
profile: WorkspaceProfile,
|
|
3657
|
+
subscription: Subscription,
|
|
3658
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
3659
|
+
sso: nullishToOptional(SsoProvider),
|
|
3660
|
+
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
3661
|
+
});
|
|
3662
|
+
var WorkspaceWithDesignSystems = z117.object({
|
|
3663
|
+
workspace: Workspace,
|
|
3664
|
+
designSystems: z117.array(DesignSystem)
|
|
3665
|
+
});
|
|
3666
|
+
var WorkspaceConfigurationUpdate = z118.object({
|
|
3667
|
+
id: z118.string(),
|
|
3668
|
+
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
3669
|
+
sso: SsoProvider.optional(),
|
|
3670
|
+
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
3671
|
+
profile: WorkspaceProfileUpdate.optional()
|
|
3672
|
+
});
|
|
3673
|
+
var WorkspaceContext = z119.object({
|
|
3674
|
+
workspaceId: z119.string(),
|
|
3675
|
+
product: ProductCodeSchema,
|
|
3676
|
+
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
3677
|
+
publicDesignSystem: z119.boolean().optional()
|
|
3678
|
+
});
|
|
3679
|
+
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
3680
|
+
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
3681
|
+
var HANDLE_MIN_LENGTH = 2;
|
|
3682
|
+
var HANDLE_MAX_LENGTH = 64;
|
|
3683
|
+
var CreateWorkspaceInput = z120.object({
|
|
3684
|
+
name: z120.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
3685
|
+
handle: z120.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
3686
|
+
});
|
|
3687
|
+
var WorkspaceInvitation = z121.object({
|
|
3688
|
+
id: z121.string(),
|
|
3689
|
+
email: z121.string().email(),
|
|
3690
|
+
createdAt: z121.coerce.date(),
|
|
3691
|
+
resentAt: z121.coerce.date().nullish(),
|
|
3692
|
+
role: z121.nativeEnum(WorkspaceRole),
|
|
3693
|
+
workspaceId: z121.string(),
|
|
3694
|
+
invitedBy: z121.string()
|
|
3695
|
+
});
|
|
3696
|
+
var IntegrationAuthType = z122.union([z122.literal("OAuth2"), z122.literal("PAT")]);
|
|
3697
|
+
var ExternalServiceType = z122.union([
|
|
3698
|
+
z122.literal("figma"),
|
|
3699
|
+
z122.literal("github"),
|
|
3700
|
+
z122.literal("azure"),
|
|
3701
|
+
z122.literal("gitlab"),
|
|
3702
|
+
z122.literal("bitbucket")
|
|
3703
|
+
]);
|
|
3704
|
+
var IntegrationUserInfo = z122.object({
|
|
3705
|
+
id: z122.string(),
|
|
3706
|
+
handle: z122.string().optional(),
|
|
3707
|
+
avatarUrl: z122.string().optional(),
|
|
3708
|
+
email: z122.string().optional(),
|
|
3709
|
+
authType: IntegrationAuthType.optional(),
|
|
3710
|
+
customUrl: z122.string().optional()
|
|
3711
|
+
});
|
|
3712
|
+
var UserLinkedIntegrations = z122.object({
|
|
3713
|
+
figma: IntegrationUserInfo.optional(),
|
|
3714
|
+
github: IntegrationUserInfo.array().optional(),
|
|
3715
|
+
azure: IntegrationUserInfo.array().optional(),
|
|
3716
|
+
gitlab: IntegrationUserInfo.array().optional(),
|
|
3717
|
+
bitbucket: IntegrationUserInfo.array().optional()
|
|
3718
|
+
});
|
|
3719
|
+
var UserAnalyticsCleanupSchedule = z123.object({
|
|
3720
|
+
userId: z123.string(),
|
|
3721
|
+
createdAt: z123.coerce.date(),
|
|
3722
|
+
deleteAt: z123.coerce.date()
|
|
3723
|
+
});
|
|
3724
|
+
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
3725
|
+
createdAt: true
|
|
3726
|
+
});
|
|
3727
|
+
var UserIdentity = z124.object({
|
|
3728
|
+
id: z124.string(),
|
|
3729
|
+
userId: z124.string()
|
|
3730
|
+
});
|
|
3731
|
+
var UserMinified = z125.object({
|
|
3732
|
+
id: z125.string(),
|
|
3733
|
+
name: z125.string(),
|
|
3734
|
+
email: z125.string(),
|
|
3735
|
+
avatar: z125.string().optional()
|
|
3582
3736
|
});
|
|
3583
|
-
var
|
|
3737
|
+
var LiveblocksNotificationSettings = z126.object({
|
|
3738
|
+
sendCommentNotificationEmails: z126.boolean()
|
|
3739
|
+
});
|
|
3740
|
+
var UserNotificationSettings = z126.object({
|
|
3741
|
+
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
3742
|
+
});
|
|
3743
|
+
var UserOnboardingDepartment = z127.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
3744
|
+
var UserOnboardingJobLevel = z127.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
3745
|
+
var UserOnboarding = z127.object({
|
|
3746
|
+
companyName: z127.string().optional(),
|
|
3747
|
+
numberOfPeopleInOrg: z127.string().optional(),
|
|
3748
|
+
numberOfPeopleInDesignTeam: z127.string().optional(),
|
|
3749
|
+
department: UserOnboardingDepartment.optional(),
|
|
3750
|
+
jobTitle: z127.string().optional(),
|
|
3751
|
+
phase: z127.string().optional(),
|
|
3752
|
+
jobLevel: UserOnboardingJobLevel.optional(),
|
|
3753
|
+
designSystemName: z127.string().optional(),
|
|
3754
|
+
defaultDestination: z127.string().optional(),
|
|
3755
|
+
figmaUrl: z127.string().optional(),
|
|
3756
|
+
isPageDraftOnboardingFinished: z127.boolean().optional(),
|
|
3757
|
+
isApprovalsOnboardingFinished: z127.boolean().optional()
|
|
3758
|
+
});
|
|
3759
|
+
var UserProfile = z127.object({
|
|
3760
|
+
name: z127.string(),
|
|
3761
|
+
avatar: z127.string().optional(),
|
|
3762
|
+
nickname: z127.string().optional(),
|
|
3763
|
+
onboarding: UserOnboarding.optional()
|
|
3764
|
+
});
|
|
3765
|
+
var UserProfileUpdate = UserProfile.partial().omit({
|
|
3766
|
+
avatar: true
|
|
3767
|
+
});
|
|
3768
|
+
var UserTest = z128.object({
|
|
3769
|
+
id: z128.string(),
|
|
3770
|
+
email: z128.string()
|
|
3771
|
+
});
|
|
3772
|
+
var UserSource = z129.enum(["SignUp", "Invite", "SSO"]);
|
|
3773
|
+
var User = z129.object({
|
|
3774
|
+
id: z129.string(),
|
|
3775
|
+
email: z129.string(),
|
|
3776
|
+
emailVerified: z129.boolean(),
|
|
3777
|
+
createdAt: z129.coerce.date(),
|
|
3778
|
+
trialExpiresAt: z129.coerce.date().optional(),
|
|
3779
|
+
profile: UserProfile,
|
|
3780
|
+
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
3781
|
+
loggedOutAt: z129.coerce.date().optional(),
|
|
3782
|
+
isProtected: z129.boolean(),
|
|
3783
|
+
source: UserSource.optional()
|
|
3784
|
+
});
|
|
3785
|
+
var WorkspaceMembership = z130.object({
|
|
3786
|
+
id: z130.string(),
|
|
3787
|
+
userId: z130.string(),
|
|
3788
|
+
workspaceId: z130.string(),
|
|
3789
|
+
workspaceRole: z130.nativeEnum(WorkspaceRole),
|
|
3790
|
+
notificationSettings: UserNotificationSettings
|
|
3791
|
+
});
|
|
3792
|
+
var UpdateMembershipRolesInput = z130.object({
|
|
3793
|
+
members: z130.array(
|
|
3794
|
+
z130.object({
|
|
3795
|
+
userId: z130.string(),
|
|
3796
|
+
role: z130.nativeEnum(WorkspaceRole)
|
|
3797
|
+
})
|
|
3798
|
+
)
|
|
3799
|
+
});
|
|
3800
|
+
var DesignSystemRole = z131.enum([
|
|
3584
3801
|
WorkspaceRole.Admin,
|
|
3585
3802
|
WorkspaceRole.Contributor,
|
|
3586
3803
|
WorkspaceRole.Creator,
|
|
3587
3804
|
WorkspaceRole.Viewer
|
|
3588
3805
|
]);
|
|
3589
|
-
var
|
|
3590
|
-
id:
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3806
|
+
var DesignSystemInvitation = z132.object({
|
|
3807
|
+
id: z132.string(),
|
|
3808
|
+
designSystemId: z132.string(),
|
|
3809
|
+
workspaceInvitationId: z132.string(),
|
|
3810
|
+
designSystemRole: DesignSystemRole.optional()
|
|
3594
3811
|
});
|
|
3595
|
-
var
|
|
3812
|
+
var DesignSystemMembership = z133.object({
|
|
3813
|
+
id: z133.string(),
|
|
3814
|
+
userId: z133.string(),
|
|
3815
|
+
designSystemId: z133.string(),
|
|
3816
|
+
designSystemRole: DesignSystemRole.optional(),
|
|
3817
|
+
workspaceMembershipId: z133.string()
|
|
3818
|
+
});
|
|
3819
|
+
var DesignSystemMembers = z133.object({
|
|
3596
3820
|
members: DesignSystemMembership.array(),
|
|
3597
3821
|
invitations: DesignSystemInvitation.array()
|
|
3598
3822
|
});
|
|
3599
|
-
var DesignSystemPendingMemberInvitation =
|
|
3600
|
-
inviteId:
|
|
3823
|
+
var DesignSystemPendingMemberInvitation = z133.object({
|
|
3824
|
+
inviteId: z133.string(),
|
|
3601
3825
|
/**
|
|
3602
3826
|
* Role that the user will have in the design system, undefined
|
|
3603
3827
|
* if it should be inherited from the workspace
|
|
3604
3828
|
*/
|
|
3605
3829
|
designSystemRole: DesignSystemRole.optional()
|
|
3606
3830
|
});
|
|
3607
|
-
var DesignSystemUserInvitation =
|
|
3608
|
-
userId:
|
|
3831
|
+
var DesignSystemUserInvitation = z133.object({
|
|
3832
|
+
userId: z133.string(),
|
|
3609
3833
|
/**
|
|
3610
3834
|
* Role that the user will have in the design system, undefined
|
|
3611
3835
|
* if it should be inherited from the workspace
|
|
3612
3836
|
*/
|
|
3613
3837
|
designSystemRole: DesignSystemRole.optional()
|
|
3614
3838
|
});
|
|
3615
|
-
var DesignSystemInvite =
|
|
3616
|
-
email:
|
|
3839
|
+
var DesignSystemInvite = z133.object({
|
|
3840
|
+
email: z133.string(),
|
|
3617
3841
|
workspaceRole: WorkspaceRoleSchema,
|
|
3618
3842
|
/**
|
|
3619
3843
|
* Role that the user will have in the design system, undefined
|
|
@@ -3621,252 +3845,252 @@ var DesignSystemInvite = z115.object({
|
|
|
3621
3845
|
*/
|
|
3622
3846
|
designSystemRole: DesignSystemRole.optional()
|
|
3623
3847
|
});
|
|
3624
|
-
var DesignSystemMemberUpdate =
|
|
3625
|
-
userId:
|
|
3848
|
+
var DesignSystemMemberUpdate = z133.object({
|
|
3849
|
+
userId: z133.string(),
|
|
3626
3850
|
designSystemRole: DesignSystemRole.nullable()
|
|
3627
3851
|
});
|
|
3628
|
-
var DesignSystemInviteUpdate =
|
|
3852
|
+
var DesignSystemInviteUpdate = z133.object({
|
|
3629
3853
|
/**
|
|
3630
3854
|
* Workspace invitation id
|
|
3631
3855
|
*/
|
|
3632
|
-
inviteId:
|
|
3856
|
+
inviteId: z133.string(),
|
|
3633
3857
|
designSystemRole: DesignSystemRole.nullable()
|
|
3634
3858
|
});
|
|
3635
|
-
var DesignSystemMembershipUpdates =
|
|
3859
|
+
var DesignSystemMembershipUpdates = z133.object({
|
|
3636
3860
|
usersToInvite: DesignSystemUserInvitation.array().optional(),
|
|
3637
3861
|
invitesToInvite: DesignSystemPendingMemberInvitation.array().optional(),
|
|
3638
3862
|
emailsToInvite: DesignSystemInvite.array().optional(),
|
|
3639
3863
|
usersToUpdate: DesignSystemMemberUpdate.array().optional(),
|
|
3640
3864
|
invitesToUpdate: DesignSystemInviteUpdate.array().optional(),
|
|
3641
|
-
removeUserIds:
|
|
3642
|
-
deleteInvitationIds:
|
|
3643
|
-
});
|
|
3644
|
-
var ElementViewBaseColumnType =
|
|
3645
|
-
var ElementViewColumnType =
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3865
|
+
removeUserIds: z133.string().array().optional(),
|
|
3866
|
+
deleteInvitationIds: z133.string().array().optional()
|
|
3867
|
+
});
|
|
3868
|
+
var ElementViewBaseColumnType = z134.enum(["Name", "Description", "Value", "UpdatedAt"]);
|
|
3869
|
+
var ElementViewColumnType = z134.union([
|
|
3870
|
+
z134.literal("BaseProperty"),
|
|
3871
|
+
z134.literal("PropertyDefinition"),
|
|
3872
|
+
z134.literal("Theme")
|
|
3649
3873
|
]);
|
|
3650
|
-
var ElementViewColumnSharedAttributes =
|
|
3651
|
-
id:
|
|
3652
|
-
persistentId:
|
|
3653
|
-
elementDataViewId:
|
|
3654
|
-
sortPosition:
|
|
3655
|
-
width:
|
|
3874
|
+
var ElementViewColumnSharedAttributes = z134.object({
|
|
3875
|
+
id: z134.string(),
|
|
3876
|
+
persistentId: z134.string(),
|
|
3877
|
+
elementDataViewId: z134.string(),
|
|
3878
|
+
sortPosition: z134.number(),
|
|
3879
|
+
width: z134.number()
|
|
3656
3880
|
});
|
|
3657
3881
|
var ElementViewBasePropertyColumn = ElementViewColumnSharedAttributes.extend({
|
|
3658
|
-
type:
|
|
3882
|
+
type: z134.literal("BaseProperty"),
|
|
3659
3883
|
basePropertyType: ElementViewBaseColumnType
|
|
3660
3884
|
});
|
|
3661
3885
|
var ElementViewPropertyDefinitionColumn = ElementViewColumnSharedAttributes.extend({
|
|
3662
|
-
type:
|
|
3663
|
-
propertyDefinitionId:
|
|
3886
|
+
type: z134.literal("PropertyDefinition"),
|
|
3887
|
+
propertyDefinitionId: z134.string()
|
|
3664
3888
|
});
|
|
3665
3889
|
var ElementViewThemeColumn = ElementViewColumnSharedAttributes.extend({
|
|
3666
|
-
type:
|
|
3667
|
-
themeId:
|
|
3890
|
+
type: z134.literal("Theme"),
|
|
3891
|
+
themeId: z134.string()
|
|
3668
3892
|
});
|
|
3669
|
-
var ElementViewColumn =
|
|
3893
|
+
var ElementViewColumn = z134.discriminatedUnion("type", [
|
|
3670
3894
|
ElementViewBasePropertyColumn,
|
|
3671
3895
|
ElementViewPropertyDefinitionColumn,
|
|
3672
3896
|
ElementViewThemeColumn
|
|
3673
3897
|
]);
|
|
3674
|
-
var ElementView =
|
|
3675
|
-
id:
|
|
3676
|
-
persistentId:
|
|
3677
|
-
designSystemVersionId:
|
|
3678
|
-
name:
|
|
3679
|
-
description:
|
|
3898
|
+
var ElementView = z135.object({
|
|
3899
|
+
id: z135.string(),
|
|
3900
|
+
persistentId: z135.string(),
|
|
3901
|
+
designSystemVersionId: z135.string(),
|
|
3902
|
+
name: z135.string(),
|
|
3903
|
+
description: z135.string(),
|
|
3680
3904
|
targetElementType: ElementPropertyTargetType,
|
|
3681
|
-
isDefault:
|
|
3905
|
+
isDefault: z135.boolean()
|
|
3682
3906
|
});
|
|
3683
|
-
var Brand =
|
|
3684
|
-
id:
|
|
3685
|
-
designSystemVersionId:
|
|
3686
|
-
persistentId:
|
|
3687
|
-
name:
|
|
3688
|
-
description:
|
|
3689
|
-
});
|
|
3690
|
-
var DesignSystemAccessMode =
|
|
3691
|
-
var DesignSystemSwitcher =
|
|
3692
|
-
isEnabled:
|
|
3693
|
-
designSystemIds:
|
|
3694
|
-
});
|
|
3695
|
-
var DesignSystem =
|
|
3696
|
-
id:
|
|
3697
|
-
workspaceId:
|
|
3698
|
-
name:
|
|
3699
|
-
description:
|
|
3700
|
-
docExporterId: nullishToOptional(
|
|
3701
|
-
docSlug:
|
|
3702
|
-
docUserSlug: nullishToOptional(
|
|
3703
|
-
docSlugDeprecated:
|
|
3704
|
-
isMultibrand:
|
|
3705
|
-
docViewUrl: nullishToOptional(
|
|
3706
|
-
basePrefixes:
|
|
3907
|
+
var Brand = z136.object({
|
|
3908
|
+
id: z136.string(),
|
|
3909
|
+
designSystemVersionId: z136.string(),
|
|
3910
|
+
persistentId: z136.string(),
|
|
3911
|
+
name: z136.string(),
|
|
3912
|
+
description: z136.string()
|
|
3913
|
+
});
|
|
3914
|
+
var DesignSystemAccessMode = z137.enum(["Open", "InviteOnly"]);
|
|
3915
|
+
var DesignSystemSwitcher = z137.object({
|
|
3916
|
+
isEnabled: z137.boolean(),
|
|
3917
|
+
designSystemIds: z137.array(z137.string())
|
|
3918
|
+
});
|
|
3919
|
+
var DesignSystem = z137.object({
|
|
3920
|
+
id: z137.string(),
|
|
3921
|
+
workspaceId: z137.string(),
|
|
3922
|
+
name: z137.string(),
|
|
3923
|
+
description: z137.string(),
|
|
3924
|
+
docExporterId: nullishToOptional(z137.string()),
|
|
3925
|
+
docSlug: z137.string(),
|
|
3926
|
+
docUserSlug: nullishToOptional(z137.string()),
|
|
3927
|
+
docSlugDeprecated: z137.string(),
|
|
3928
|
+
isMultibrand: z137.boolean(),
|
|
3929
|
+
docViewUrl: nullishToOptional(z137.string()),
|
|
3930
|
+
basePrefixes: z137.array(z137.string()),
|
|
3707
3931
|
designSystemSwitcher: nullishToOptional(DesignSystemSwitcher),
|
|
3708
|
-
isApprovalFeatureEnabled:
|
|
3709
|
-
approvalRequiredForPublishing:
|
|
3932
|
+
isApprovalFeatureEnabled: z137.boolean(),
|
|
3933
|
+
approvalRequiredForPublishing: z137.boolean(),
|
|
3710
3934
|
accessMode: DesignSystemAccessMode,
|
|
3711
|
-
membersGenerated:
|
|
3712
|
-
createdAt:
|
|
3713
|
-
updatedAt:
|
|
3935
|
+
membersGenerated: z137.boolean(),
|
|
3936
|
+
createdAt: z137.coerce.date(),
|
|
3937
|
+
updatedAt: z137.coerce.date()
|
|
3714
3938
|
});
|
|
3715
|
-
var ExporterPropertyImageValue =
|
|
3939
|
+
var ExporterPropertyImageValue = z138.object({
|
|
3716
3940
|
asset: PageBlockAsset.optional(),
|
|
3717
|
-
assetId:
|
|
3718
|
-
assetUrl:
|
|
3719
|
-
});
|
|
3720
|
-
var ExporterPropertyValue =
|
|
3721
|
-
key:
|
|
3722
|
-
value:
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3941
|
+
assetId: z138.string().optional(),
|
|
3942
|
+
assetUrl: z138.string().optional()
|
|
3943
|
+
});
|
|
3944
|
+
var ExporterPropertyValue = z138.object({
|
|
3945
|
+
key: z138.string(),
|
|
3946
|
+
value: z138.union([
|
|
3947
|
+
z138.number(),
|
|
3948
|
+
z138.string(),
|
|
3949
|
+
z138.boolean(),
|
|
3726
3950
|
ExporterPropertyImageValue,
|
|
3727
3951
|
ColorTokenData,
|
|
3728
3952
|
TypographyTokenData
|
|
3729
3953
|
])
|
|
3730
3954
|
});
|
|
3731
|
-
var ExporterPropertyValuesCollection =
|
|
3732
|
-
id:
|
|
3733
|
-
designSystemId:
|
|
3734
|
-
exporterId:
|
|
3735
|
-
values:
|
|
3736
|
-
});
|
|
3737
|
-
var PublishedDocPage =
|
|
3738
|
-
id:
|
|
3739
|
-
publishedDocId:
|
|
3740
|
-
pageShortPersistentId:
|
|
3741
|
-
pathV1:
|
|
3742
|
-
pathV2:
|
|
3743
|
-
storagePath:
|
|
3744
|
-
locale:
|
|
3745
|
-
isPrivate:
|
|
3746
|
-
isHidden:
|
|
3747
|
-
createdAt:
|
|
3748
|
-
updatedAt:
|
|
3955
|
+
var ExporterPropertyValuesCollection = z138.object({
|
|
3956
|
+
id: z138.string(),
|
|
3957
|
+
designSystemId: z138.string(),
|
|
3958
|
+
exporterId: z138.string(),
|
|
3959
|
+
values: z138.array(ExporterPropertyValue)
|
|
3960
|
+
});
|
|
3961
|
+
var PublishedDocPage = z139.object({
|
|
3962
|
+
id: z139.string(),
|
|
3963
|
+
publishedDocId: z139.string(),
|
|
3964
|
+
pageShortPersistentId: z139.string(),
|
|
3965
|
+
pathV1: z139.string(),
|
|
3966
|
+
pathV2: z139.string(),
|
|
3967
|
+
storagePath: z139.string(),
|
|
3968
|
+
locale: z139.string().optional(),
|
|
3969
|
+
isPrivate: z139.boolean(),
|
|
3970
|
+
isHidden: z139.boolean(),
|
|
3971
|
+
createdAt: z139.coerce.date(),
|
|
3972
|
+
updatedAt: z139.coerce.date()
|
|
3749
3973
|
});
|
|
3750
3974
|
var publishedDocEnvironments = ["Live", "Preview"];
|
|
3751
|
-
var PublishedDocEnvironment =
|
|
3752
|
-
var PublishedDocsChecksums =
|
|
3753
|
-
var PublishedDocRoutingVersion =
|
|
3754
|
-
var PublishedDoc =
|
|
3755
|
-
id:
|
|
3756
|
-
designSystemVersionId:
|
|
3757
|
-
createdAt:
|
|
3758
|
-
updatedAt:
|
|
3759
|
-
lastPublishedAt:
|
|
3760
|
-
isDefault:
|
|
3761
|
-
isPublic:
|
|
3975
|
+
var PublishedDocEnvironment = z140.enum(publishedDocEnvironments);
|
|
3976
|
+
var PublishedDocsChecksums = z140.record(z140.string());
|
|
3977
|
+
var PublishedDocRoutingVersion = z140.enum(["1", "2"]);
|
|
3978
|
+
var PublishedDoc = z140.object({
|
|
3979
|
+
id: z140.string(),
|
|
3980
|
+
designSystemVersionId: z140.string(),
|
|
3981
|
+
createdAt: z140.coerce.date(),
|
|
3982
|
+
updatedAt: z140.coerce.date(),
|
|
3983
|
+
lastPublishedAt: z140.coerce.date(),
|
|
3984
|
+
isDefault: z140.boolean(),
|
|
3985
|
+
isPublic: z140.boolean(),
|
|
3762
3986
|
environment: PublishedDocEnvironment,
|
|
3763
3987
|
checksums: PublishedDocsChecksums,
|
|
3764
|
-
storagePath:
|
|
3765
|
-
wasMigrated:
|
|
3988
|
+
storagePath: z140.string(),
|
|
3989
|
+
wasMigrated: z140.boolean(),
|
|
3766
3990
|
routingVersion: PublishedDocRoutingVersion,
|
|
3767
|
-
usesLocalizations:
|
|
3768
|
-
wasPublishedWithLocalizations:
|
|
3769
|
-
tokenCount:
|
|
3770
|
-
assetCount:
|
|
3771
|
-
});
|
|
3772
|
-
var DesignSystemVersion =
|
|
3773
|
-
id:
|
|
3774
|
-
version:
|
|
3775
|
-
createdAt:
|
|
3776
|
-
designSystemId:
|
|
3777
|
-
name:
|
|
3778
|
-
comment:
|
|
3779
|
-
isReadonly:
|
|
3780
|
-
changeLog:
|
|
3781
|
-
parentId:
|
|
3782
|
-
isDraftsFeatureAdopted:
|
|
3783
|
-
});
|
|
3784
|
-
var VersionCreationJobStatus =
|
|
3785
|
-
var VersionCreationJob =
|
|
3786
|
-
id:
|
|
3787
|
-
version:
|
|
3788
|
-
designSystemId:
|
|
3789
|
-
designSystemVersionId: nullishToOptional(
|
|
3991
|
+
usesLocalizations: z140.boolean(),
|
|
3992
|
+
wasPublishedWithLocalizations: z140.boolean(),
|
|
3993
|
+
tokenCount: z140.number(),
|
|
3994
|
+
assetCount: z140.number()
|
|
3995
|
+
});
|
|
3996
|
+
var DesignSystemVersion = z141.object({
|
|
3997
|
+
id: z141.string(),
|
|
3998
|
+
version: z141.string(),
|
|
3999
|
+
createdAt: z141.coerce.date(),
|
|
4000
|
+
designSystemId: z141.string(),
|
|
4001
|
+
name: z141.string(),
|
|
4002
|
+
comment: z141.string(),
|
|
4003
|
+
isReadonly: z141.boolean(),
|
|
4004
|
+
changeLog: z141.string(),
|
|
4005
|
+
parentId: z141.string().optional(),
|
|
4006
|
+
isDraftsFeatureAdopted: z141.boolean()
|
|
4007
|
+
});
|
|
4008
|
+
var VersionCreationJobStatus = z141.enum(["Success", "InProgress", "Error"]);
|
|
4009
|
+
var VersionCreationJob = z141.object({
|
|
4010
|
+
id: z141.string(),
|
|
4011
|
+
version: z141.string(),
|
|
4012
|
+
designSystemId: z141.string(),
|
|
4013
|
+
designSystemVersionId: nullishToOptional(z141.string()),
|
|
3790
4014
|
status: VersionCreationJobStatus,
|
|
3791
|
-
errorMessage: nullishToOptional(
|
|
4015
|
+
errorMessage: nullishToOptional(z141.string())
|
|
3792
4016
|
});
|
|
3793
4017
|
var BITBUCKET_SLUG = /^[-a-zA-Z0-9~]*$/;
|
|
3794
4018
|
var BITBUCKET_MAX_LENGTH = 64;
|
|
3795
|
-
var ExportJobDocumentationChanges =
|
|
3796
|
-
pagePersistentIds:
|
|
3797
|
-
groupPersistentIds:
|
|
4019
|
+
var ExportJobDocumentationChanges = z142.object({
|
|
4020
|
+
pagePersistentIds: z142.string().array(),
|
|
4021
|
+
groupPersistentIds: z142.string().array()
|
|
3798
4022
|
});
|
|
3799
|
-
var ExporterDestinationDocs =
|
|
4023
|
+
var ExporterDestinationDocs = z142.object({
|
|
3800
4024
|
environment: PublishedDocEnvironment,
|
|
3801
4025
|
changes: nullishToOptional(ExportJobDocumentationChanges)
|
|
3802
4026
|
});
|
|
3803
|
-
var ExporterDestinationS3 =
|
|
3804
|
-
var ExporterDestinationGithub =
|
|
3805
|
-
credentialId:
|
|
4027
|
+
var ExporterDestinationS3 = z142.object({});
|
|
4028
|
+
var ExporterDestinationGithub = z142.object({
|
|
4029
|
+
credentialId: z142.string().optional(),
|
|
3806
4030
|
// Repository
|
|
3807
|
-
url:
|
|
4031
|
+
url: z142.string(),
|
|
3808
4032
|
// Location
|
|
3809
|
-
branch:
|
|
3810
|
-
relativePath: nullishToOptional(
|
|
4033
|
+
branch: z142.string(),
|
|
4034
|
+
relativePath: nullishToOptional(z142.string()),
|
|
3811
4035
|
// Commit metadata
|
|
3812
|
-
commitAuthorName: nullishToOptional(
|
|
3813
|
-
commitAuthorEmail: nullishToOptional(
|
|
4036
|
+
commitAuthorName: nullishToOptional(z142.string()),
|
|
4037
|
+
commitAuthorEmail: nullishToOptional(z142.string()),
|
|
3814
4038
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3815
|
-
connectionId: nullishToOptional(
|
|
3816
|
-
userId: nullishToOptional(
|
|
4039
|
+
connectionId: nullishToOptional(z142.string()),
|
|
4040
|
+
userId: nullishToOptional(z142.number())
|
|
3817
4041
|
});
|
|
3818
|
-
var ExporterDestinationAzure =
|
|
3819
|
-
credentialId:
|
|
4042
|
+
var ExporterDestinationAzure = z142.object({
|
|
4043
|
+
credentialId: z142.string().optional(),
|
|
3820
4044
|
// Repository
|
|
3821
|
-
organizationId:
|
|
3822
|
-
projectId:
|
|
3823
|
-
repositoryId:
|
|
4045
|
+
organizationId: z142.string(),
|
|
4046
|
+
projectId: z142.string(),
|
|
4047
|
+
repositoryId: z142.string(),
|
|
3824
4048
|
// Commit metadata
|
|
3825
|
-
commitAuthorName: nullishToOptional(
|
|
3826
|
-
commitAuthorEmail: nullishToOptional(
|
|
4049
|
+
commitAuthorName: nullishToOptional(z142.string()),
|
|
4050
|
+
commitAuthorEmail: nullishToOptional(z142.string()),
|
|
3827
4051
|
// Location
|
|
3828
|
-
branch:
|
|
3829
|
-
relativePath: nullishToOptional(
|
|
4052
|
+
branch: z142.string(),
|
|
4053
|
+
relativePath: nullishToOptional(z142.string()),
|
|
3830
4054
|
// Maybe not needed
|
|
3831
|
-
url: nullishToOptional(
|
|
4055
|
+
url: nullishToOptional(z142.string()),
|
|
3832
4056
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3833
|
-
connectionId: nullishToOptional(
|
|
3834
|
-
userId: nullishToOptional(
|
|
4057
|
+
connectionId: nullishToOptional(z142.string()),
|
|
4058
|
+
userId: nullishToOptional(z142.number())
|
|
3835
4059
|
});
|
|
3836
|
-
var ExporterDestinationGitlab =
|
|
3837
|
-
credentialId:
|
|
4060
|
+
var ExporterDestinationGitlab = z142.object({
|
|
4061
|
+
credentialId: z142.string().optional(),
|
|
3838
4062
|
// Repository
|
|
3839
|
-
projectId:
|
|
4063
|
+
projectId: z142.string(),
|
|
3840
4064
|
// Commit metadata
|
|
3841
|
-
commitAuthorName: nullishToOptional(
|
|
3842
|
-
commitAuthorEmail: nullishToOptional(
|
|
4065
|
+
commitAuthorName: nullishToOptional(z142.string()),
|
|
4066
|
+
commitAuthorEmail: nullishToOptional(z142.string()),
|
|
3843
4067
|
// Location
|
|
3844
|
-
branch:
|
|
3845
|
-
relativePath: nullishToOptional(
|
|
4068
|
+
branch: z142.string(),
|
|
4069
|
+
relativePath: nullishToOptional(z142.string()),
|
|
3846
4070
|
// Maybe not needed
|
|
3847
|
-
url: nullishToOptional(
|
|
4071
|
+
url: nullishToOptional(z142.string()),
|
|
3848
4072
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3849
|
-
connectionId: nullishToOptional(
|
|
3850
|
-
userId: nullishToOptional(
|
|
4073
|
+
connectionId: nullishToOptional(z142.string()),
|
|
4074
|
+
userId: nullishToOptional(z142.number())
|
|
3851
4075
|
});
|
|
3852
|
-
var ExporterDestinationBitbucket =
|
|
3853
|
-
credentialId:
|
|
4076
|
+
var ExporterDestinationBitbucket = z142.object({
|
|
4077
|
+
credentialId: z142.string().optional(),
|
|
3854
4078
|
// Repository
|
|
3855
|
-
workspaceSlug:
|
|
3856
|
-
projectKey:
|
|
3857
|
-
repoSlug:
|
|
4079
|
+
workspaceSlug: z142.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4080
|
+
projectKey: z142.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
4081
|
+
repoSlug: z142.string().max(BITBUCKET_MAX_LENGTH).regex(BITBUCKET_SLUG),
|
|
3858
4082
|
// Commit metadata
|
|
3859
|
-
commitAuthorName: nullishToOptional(
|
|
3860
|
-
commitAuthorEmail: nullishToOptional(
|
|
4083
|
+
commitAuthorName: nullishToOptional(z142.string()),
|
|
4084
|
+
commitAuthorEmail: nullishToOptional(z142.string()),
|
|
3861
4085
|
// Location
|
|
3862
|
-
branch:
|
|
3863
|
-
relativePath: nullishToOptional(
|
|
4086
|
+
branch: z142.string(),
|
|
4087
|
+
relativePath: nullishToOptional(z142.string()),
|
|
3864
4088
|
// Legacy deprecated fields. Use `credentialId` instead
|
|
3865
|
-
connectionId: nullishToOptional(
|
|
3866
|
-
userId: nullishToOptional(
|
|
4089
|
+
connectionId: nullishToOptional(z142.string()),
|
|
4090
|
+
userId: nullishToOptional(z142.number())
|
|
3867
4091
|
});
|
|
3868
|
-
var ExportDestinationsMap =
|
|
3869
|
-
webhookUrl:
|
|
4092
|
+
var ExportDestinationsMap = z142.object({
|
|
4093
|
+
webhookUrl: z142.string().optional(),
|
|
3870
4094
|
destinationSnDocs: ExporterDestinationDocs.optional(),
|
|
3871
4095
|
destinationS3: ExporterDestinationS3.optional(),
|
|
3872
4096
|
destinationGithub: ExporterDestinationGithub.optional(),
|
|
@@ -3874,93 +4098,93 @@ var ExportDestinationsMap = z124.object({
|
|
|
3874
4098
|
destinationGitlab: ExporterDestinationGitlab.optional(),
|
|
3875
4099
|
destinationBitbucket: ExporterDestinationBitbucket.optional()
|
|
3876
4100
|
});
|
|
3877
|
-
var PipelineEventType =
|
|
3878
|
-
var PipelineDestinationGitType =
|
|
3879
|
-
var PipelineDestinationExtraType =
|
|
3880
|
-
var PipelineDestinationType =
|
|
3881
|
-
var Pipeline =
|
|
3882
|
-
id:
|
|
3883
|
-
name:
|
|
4101
|
+
var PipelineEventType = z143.enum(["OnVersionReleased", "OnHeadChanged", "OnSourceUpdated", "None"]);
|
|
4102
|
+
var PipelineDestinationGitType = z143.enum(["Github", "Gitlab", "Bitbucket", "Azure"]);
|
|
4103
|
+
var PipelineDestinationExtraType = z143.enum(["WebhookUrl", "S3", "Documentation"]);
|
|
4104
|
+
var PipelineDestinationType = z143.union([PipelineDestinationGitType, PipelineDestinationExtraType]);
|
|
4105
|
+
var Pipeline = z143.object({
|
|
4106
|
+
id: z143.string(),
|
|
4107
|
+
name: z143.string(),
|
|
3884
4108
|
eventType: PipelineEventType,
|
|
3885
|
-
isEnabled:
|
|
3886
|
-
workspaceId:
|
|
3887
|
-
designSystemId:
|
|
3888
|
-
exporterId:
|
|
3889
|
-
brandPersistentId:
|
|
3890
|
-
themePersistentId:
|
|
3891
|
-
themePersistentIds:
|
|
4109
|
+
isEnabled: z143.boolean(),
|
|
4110
|
+
workspaceId: z143.string(),
|
|
4111
|
+
designSystemId: z143.string(),
|
|
4112
|
+
exporterId: z143.string(),
|
|
4113
|
+
brandPersistentId: z143.string().optional(),
|
|
4114
|
+
themePersistentId: z143.string().optional(),
|
|
4115
|
+
themePersistentIds: z143.string().array().optional(),
|
|
3892
4116
|
// Destinations
|
|
3893
4117
|
...ExportDestinationsMap.shape
|
|
3894
4118
|
});
|
|
3895
|
-
var ExportJobDump =
|
|
3896
|
-
id:
|
|
3897
|
-
createdAt:
|
|
3898
|
-
finishedAt:
|
|
3899
|
-
exportArtefacts:
|
|
4119
|
+
var ExportJobDump = z144.object({
|
|
4120
|
+
id: z144.string(),
|
|
4121
|
+
createdAt: z144.coerce.date(),
|
|
4122
|
+
finishedAt: z144.coerce.date(),
|
|
4123
|
+
exportArtefacts: z144.string()
|
|
3900
4124
|
});
|
|
3901
|
-
var CodeIntegrationDump =
|
|
4125
|
+
var CodeIntegrationDump = z144.object({
|
|
3902
4126
|
exporters: Exporter.array(),
|
|
3903
4127
|
pipelines: Pipeline.array(),
|
|
3904
4128
|
exportJobs: ExportJobDump.array()
|
|
3905
4129
|
});
|
|
3906
4130
|
var DesignSystemVersionRoom = Entity.extend({
|
|
3907
|
-
designSystemVersionId:
|
|
3908
|
-
liveblocksId:
|
|
3909
|
-
});
|
|
3910
|
-
var DesignSystemVersionRoomInternalSettings =
|
|
3911
|
-
routingVersion:
|
|
3912
|
-
isDraftFeatureAdopted:
|
|
3913
|
-
isApprovalFeatureEnabled:
|
|
3914
|
-
approvalRequiredForPublishing:
|
|
3915
|
-
});
|
|
3916
|
-
var DesignSystemVersionRoomInitialState =
|
|
3917
|
-
pages:
|
|
3918
|
-
groups:
|
|
3919
|
-
pageSnapshots:
|
|
3920
|
-
groupSnapshots:
|
|
3921
|
-
pageApprovals:
|
|
4131
|
+
designSystemVersionId: z145.string(),
|
|
4132
|
+
liveblocksId: z145.string()
|
|
4133
|
+
});
|
|
4134
|
+
var DesignSystemVersionRoomInternalSettings = z145.object({
|
|
4135
|
+
routingVersion: z145.string(),
|
|
4136
|
+
isDraftFeatureAdopted: z145.boolean(),
|
|
4137
|
+
isApprovalFeatureEnabled: z145.boolean(),
|
|
4138
|
+
approvalRequiredForPublishing: z145.boolean()
|
|
4139
|
+
});
|
|
4140
|
+
var DesignSystemVersionRoomInitialState = z145.object({
|
|
4141
|
+
pages: z145.array(DocumentationPageV2),
|
|
4142
|
+
groups: z145.array(ElementGroup),
|
|
4143
|
+
pageSnapshots: z145.array(DocumentationPageSnapshot),
|
|
4144
|
+
groupSnapshots: z145.array(ElementGroupSnapshot),
|
|
4145
|
+
pageApprovals: z145.array(DocumentationPageApproval),
|
|
3922
4146
|
internalSettings: DesignSystemVersionRoomInternalSettings
|
|
3923
4147
|
});
|
|
3924
|
-
var DesignSystemVersionRoomUpdate =
|
|
3925
|
-
pages:
|
|
3926
|
-
groups:
|
|
3927
|
-
pageIdsToDelete:
|
|
3928
|
-
groupIdsToDelete:
|
|
3929
|
-
pageSnapshots:
|
|
3930
|
-
groupSnapshots:
|
|
3931
|
-
pageSnapshotIdsToDelete:
|
|
3932
|
-
groupSnapshotIdsToDelete:
|
|
3933
|
-
pageHashesToUpdate:
|
|
3934
|
-
pageApprovals:
|
|
3935
|
-
pageApprovalIdsToDelete:
|
|
4148
|
+
var DesignSystemVersionRoomUpdate = z145.object({
|
|
4149
|
+
pages: z145.array(DocumentationPageV2),
|
|
4150
|
+
groups: z145.array(ElementGroup),
|
|
4151
|
+
pageIdsToDelete: z145.array(z145.string()),
|
|
4152
|
+
groupIdsToDelete: z145.array(z145.string()),
|
|
4153
|
+
pageSnapshots: z145.array(DocumentationPageSnapshot),
|
|
4154
|
+
groupSnapshots: z145.array(ElementGroupSnapshot),
|
|
4155
|
+
pageSnapshotIdsToDelete: z145.array(z145.string()),
|
|
4156
|
+
groupSnapshotIdsToDelete: z145.array(z145.string()),
|
|
4157
|
+
pageHashesToUpdate: z145.record(z145.string(), z145.string()),
|
|
4158
|
+
pageApprovals: z145.array(DocumentationPageApproval),
|
|
4159
|
+
pageApprovalIdsToDelete: z145.array(z145.string())
|
|
3936
4160
|
});
|
|
3937
4161
|
var DocumentationPageRoom = Entity.extend({
|
|
3938
|
-
designSystemVersionId:
|
|
3939
|
-
documentationPageId:
|
|
3940
|
-
liveblocksId:
|
|
3941
|
-
isDirty:
|
|
4162
|
+
designSystemVersionId: z146.string(),
|
|
4163
|
+
documentationPageId: z146.string(),
|
|
4164
|
+
liveblocksId: z146.string(),
|
|
4165
|
+
isDirty: z146.boolean()
|
|
3942
4166
|
});
|
|
3943
|
-
var DocumentationPageRoomState =
|
|
3944
|
-
pageItems:
|
|
4167
|
+
var DocumentationPageRoomState = z146.object({
|
|
4168
|
+
pageItems: z146.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
3945
4169
|
itemConfiguration: DocumentationItemConfigurationV2
|
|
3946
4170
|
});
|
|
3947
|
-
var DocumentationPageRoomRoomUpdate =
|
|
4171
|
+
var DocumentationPageRoomRoomUpdate = z146.object({
|
|
3948
4172
|
page: DocumentationPageV2,
|
|
3949
4173
|
pageParent: ElementGroup
|
|
3950
4174
|
});
|
|
3951
4175
|
var DocumentationPageRoomInitialStateUpdate = DocumentationPageRoomRoomUpdate.extend({
|
|
3952
|
-
pageItems:
|
|
3953
|
-
blockDefinitions:
|
|
4176
|
+
pageItems: z146.array(PageBlockEditorModelV2.or(PageSectionEditorModelV2)),
|
|
4177
|
+
blockDefinitions: z146.array(PageBlockDefinition)
|
|
3954
4178
|
});
|
|
3955
|
-
var RestoredDocumentationPage =
|
|
4179
|
+
var RestoredDocumentationPage = z146.object({
|
|
3956
4180
|
page: DocumentationPageV2,
|
|
3957
4181
|
pageParent: ElementGroup,
|
|
3958
4182
|
pageContent: DocumentationPageContentData,
|
|
3959
|
-
contentHash:
|
|
3960
|
-
snapshotId:
|
|
3961
|
-
roomId:
|
|
4183
|
+
contentHash: z146.string(),
|
|
4184
|
+
snapshotId: z146.string(),
|
|
4185
|
+
roomId: z146.string().optional()
|
|
3962
4186
|
});
|
|
3963
|
-
var RestoredDocumentationGroup =
|
|
4187
|
+
var RestoredDocumentationGroup = z146.object({
|
|
3964
4188
|
group: ElementGroup,
|
|
3965
4189
|
parent: ElementGroup
|
|
3966
4190
|
});
|
|
@@ -3970,28 +4194,28 @@ var RoomTypeEnum = /* @__PURE__ */ ((RoomTypeEnum2) => {
|
|
|
3970
4194
|
RoomTypeEnum2["Workspace"] = "workspace";
|
|
3971
4195
|
return RoomTypeEnum2;
|
|
3972
4196
|
})(RoomTypeEnum || {});
|
|
3973
|
-
var RoomTypeSchema =
|
|
4197
|
+
var RoomTypeSchema = z147.nativeEnum(RoomTypeEnum);
|
|
3974
4198
|
var RoomType = RoomTypeSchema.enum;
|
|
3975
4199
|
var WorkspaceRoom = Entity.extend({
|
|
3976
|
-
workspaceId:
|
|
3977
|
-
liveblocksId:
|
|
4200
|
+
workspaceId: z148.string(),
|
|
4201
|
+
liveblocksId: z148.string()
|
|
3978
4202
|
});
|
|
3979
|
-
var PublishedDocsDump =
|
|
4203
|
+
var PublishedDocsDump = z149.object({
|
|
3980
4204
|
documentation: PublishedDoc,
|
|
3981
4205
|
pages: PublishedDocPage.array()
|
|
3982
4206
|
});
|
|
3983
|
-
var DocumentationThreadDump =
|
|
4207
|
+
var DocumentationThreadDump = z150.object({
|
|
3984
4208
|
thread: DocumentationCommentThread,
|
|
3985
4209
|
comments: DocumentationComment.array()
|
|
3986
4210
|
});
|
|
3987
|
-
var DocumentationPageRoomDump =
|
|
4211
|
+
var DocumentationPageRoomDump = z150.object({
|
|
3988
4212
|
room: DocumentationPageRoom,
|
|
3989
4213
|
threads: DocumentationThreadDump.array()
|
|
3990
4214
|
});
|
|
3991
|
-
var DesignSystemVersionMultiplayerDump =
|
|
4215
|
+
var DesignSystemVersionMultiplayerDump = z150.object({
|
|
3992
4216
|
documentationPages: DocumentationPageRoomDump.array()
|
|
3993
4217
|
});
|
|
3994
|
-
var DesignSystemVersionDump =
|
|
4218
|
+
var DesignSystemVersionDump = z150.object({
|
|
3995
4219
|
version: DesignSystemVersion,
|
|
3996
4220
|
brands: Brand.array(),
|
|
3997
4221
|
elements: DesignElement.array(),
|
|
@@ -4004,139 +4228,50 @@ var DesignSystemVersionDump = z132.object({
|
|
|
4004
4228
|
publishedDocumentations: PublishedDocsDump.array(),
|
|
4005
4229
|
assetReferences: AssetReference.array()
|
|
4006
4230
|
});
|
|
4007
|
-
var DesignSystemDump =
|
|
4231
|
+
var DesignSystemDump = z151.object({
|
|
4008
4232
|
designSystem: DesignSystem,
|
|
4009
4233
|
dataSources: DataSource.array(),
|
|
4010
4234
|
versions: DesignSystemVersionDump.array(),
|
|
4011
4235
|
customDomain: CustomDomain.optional(),
|
|
4012
4236
|
files: Asset.array()
|
|
4013
4237
|
});
|
|
4014
|
-
var
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
]);
|
|
4022
|
-
var
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
gitlab: IntegrationUserInfo.array().optional(),
|
|
4035
|
-
bitbucket: IntegrationUserInfo.array().optional()
|
|
4036
|
-
});
|
|
4037
|
-
var UserAnalyticsCleanupSchedule = z135.object({
|
|
4038
|
-
userId: z135.string(),
|
|
4039
|
-
createdAt: z135.coerce.date(),
|
|
4040
|
-
deleteAt: z135.coerce.date()
|
|
4041
|
-
});
|
|
4042
|
-
var UserAnalyticsCleanupScheduleDbInput = UserAnalyticsCleanupSchedule.omit({
|
|
4043
|
-
createdAt: true
|
|
4044
|
-
});
|
|
4045
|
-
var UserIdentity = z136.object({
|
|
4046
|
-
id: z136.string(),
|
|
4047
|
-
userId: z136.string()
|
|
4048
|
-
});
|
|
4049
|
-
var UserMinified = z137.object({
|
|
4050
|
-
id: z137.string(),
|
|
4051
|
-
name: z137.string(),
|
|
4052
|
-
email: z137.string(),
|
|
4053
|
-
avatar: z137.string().optional()
|
|
4054
|
-
});
|
|
4055
|
-
var LiveblocksNotificationSettings = z138.object({
|
|
4056
|
-
sendCommentNotificationEmails: z138.boolean()
|
|
4057
|
-
});
|
|
4058
|
-
var UserNotificationSettings = z138.object({
|
|
4059
|
-
liveblocksNotificationSettings: LiveblocksNotificationSettings
|
|
4060
|
-
});
|
|
4061
|
-
var UserOnboardingDepartment = z139.enum(["Design", "Engineering", "Product", "Brand", "Other"]);
|
|
4062
|
-
var UserOnboardingJobLevel = z139.enum(["Executive", "Manager", "IndividualContributor", "Other"]);
|
|
4063
|
-
var UserOnboarding = z139.object({
|
|
4064
|
-
companyName: z139.string().optional(),
|
|
4065
|
-
numberOfPeopleInOrg: z139.string().optional(),
|
|
4066
|
-
numberOfPeopleInDesignTeam: z139.string().optional(),
|
|
4067
|
-
department: UserOnboardingDepartment.optional(),
|
|
4068
|
-
jobTitle: z139.string().optional(),
|
|
4069
|
-
phase: z139.string().optional(),
|
|
4070
|
-
jobLevel: UserOnboardingJobLevel.optional(),
|
|
4071
|
-
designSystemName: z139.string().optional(),
|
|
4072
|
-
defaultDestination: z139.string().optional(),
|
|
4073
|
-
figmaUrl: z139.string().optional(),
|
|
4074
|
-
isPageDraftOnboardingFinished: z139.boolean().optional(),
|
|
4075
|
-
isApprovalsOnboardingFinished: z139.boolean().optional()
|
|
4076
|
-
});
|
|
4077
|
-
var UserProfile = z139.object({
|
|
4078
|
-
name: z139.string(),
|
|
4079
|
-
avatar: z139.string().optional(),
|
|
4080
|
-
nickname: z139.string().optional(),
|
|
4081
|
-
onboarding: UserOnboarding.optional()
|
|
4082
|
-
});
|
|
4083
|
-
var UserProfileUpdate = UserProfile.partial().omit({
|
|
4084
|
-
avatar: true
|
|
4085
|
-
});
|
|
4086
|
-
var UserTest = z140.object({
|
|
4087
|
-
id: z140.string(),
|
|
4088
|
-
email: z140.string()
|
|
4089
|
-
});
|
|
4090
|
-
var UserSource = z141.enum(["SignUp", "Invite", "SSO"]);
|
|
4091
|
-
var User = z141.object({
|
|
4092
|
-
id: z141.string(),
|
|
4093
|
-
email: z141.string(),
|
|
4094
|
-
emailVerified: z141.boolean(),
|
|
4095
|
-
createdAt: z141.coerce.date(),
|
|
4096
|
-
trialExpiresAt: z141.coerce.date().optional(),
|
|
4097
|
-
profile: UserProfile,
|
|
4098
|
-
linkedIntegrations: UserLinkedIntegrations.optional(),
|
|
4099
|
-
loggedOutAt: z141.coerce.date().optional(),
|
|
4100
|
-
isProtected: z141.boolean(),
|
|
4101
|
-
source: UserSource.optional()
|
|
4102
|
-
});
|
|
4103
|
-
var IntegrationDesignSystem = z142.object({
|
|
4104
|
-
designSystemId: z142.string(),
|
|
4105
|
-
brandId: z142.string(),
|
|
4106
|
-
title: z142.string().optional(),
|
|
4107
|
-
userId: z142.string().optional(),
|
|
4108
|
-
date: z142.coerce.date().optional()
|
|
4109
|
-
});
|
|
4110
|
-
var IntegrationCredentialsType = z142.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4111
|
-
var IntegrationCredentialsState = z142.enum(["Active", "Inactive"]);
|
|
4112
|
-
var IntegrationCredentialsProfile = z142.object({
|
|
4113
|
-
id: nullishToOptional(z142.string()),
|
|
4114
|
-
email: nullishToOptional(z142.string()),
|
|
4115
|
-
handle: nullishToOptional(z142.string()),
|
|
4116
|
-
type: nullishToOptional(z142.string()),
|
|
4117
|
-
avatarUrl: nullishToOptional(z142.string()),
|
|
4118
|
-
organization: nullishToOptional(z142.string()),
|
|
4119
|
-
collection: nullishToOptional(z142.string())
|
|
4120
|
-
});
|
|
4121
|
-
var IntegrationCredentials = z142.object({
|
|
4122
|
-
id: z142.string(),
|
|
4238
|
+
var IntegrationDesignSystem = z152.object({
|
|
4239
|
+
designSystemId: z152.string(),
|
|
4240
|
+
brandId: z152.string(),
|
|
4241
|
+
title: z152.string().optional(),
|
|
4242
|
+
userId: z152.string().optional(),
|
|
4243
|
+
date: z152.coerce.date().optional()
|
|
4244
|
+
});
|
|
4245
|
+
var IntegrationCredentialsType = z152.enum(["OAuth2", "PAT", "GithubApp"]);
|
|
4246
|
+
var IntegrationCredentialsState = z152.enum(["Active", "Inactive"]);
|
|
4247
|
+
var IntegrationCredentialsProfile = z152.object({
|
|
4248
|
+
id: nullishToOptional(z152.string()),
|
|
4249
|
+
email: nullishToOptional(z152.string()),
|
|
4250
|
+
handle: nullishToOptional(z152.string()),
|
|
4251
|
+
type: nullishToOptional(z152.string()),
|
|
4252
|
+
avatarUrl: nullishToOptional(z152.string()),
|
|
4253
|
+
organization: nullishToOptional(z152.string()),
|
|
4254
|
+
collection: nullishToOptional(z152.string())
|
|
4255
|
+
});
|
|
4256
|
+
var IntegrationCredentials = z152.object({
|
|
4257
|
+
id: z152.string(),
|
|
4123
4258
|
type: IntegrationCredentialsType,
|
|
4124
|
-
integrationId:
|
|
4125
|
-
accessToken:
|
|
4126
|
-
userId:
|
|
4127
|
-
createdAt:
|
|
4128
|
-
refreshToken:
|
|
4129
|
-
tokenName:
|
|
4130
|
-
expiresAt:
|
|
4131
|
-
refreshedAt:
|
|
4132
|
-
username:
|
|
4133
|
-
appInstallationId:
|
|
4259
|
+
integrationId: z152.string(),
|
|
4260
|
+
accessToken: z152.string(),
|
|
4261
|
+
userId: z152.string(),
|
|
4262
|
+
createdAt: z152.coerce.date(),
|
|
4263
|
+
refreshToken: z152.string().optional(),
|
|
4264
|
+
tokenName: z152.string().optional(),
|
|
4265
|
+
expiresAt: z152.coerce.date().optional(),
|
|
4266
|
+
refreshedAt: z152.coerce.date().optional(),
|
|
4267
|
+
username: z152.string().optional(),
|
|
4268
|
+
appInstallationId: z152.string().optional(),
|
|
4134
4269
|
profile: IntegrationCredentialsProfile.optional(),
|
|
4135
|
-
customUrl:
|
|
4270
|
+
customUrl: z152.string().optional(),
|
|
4136
4271
|
state: IntegrationCredentialsState,
|
|
4137
4272
|
user: UserMinified.optional()
|
|
4138
4273
|
});
|
|
4139
|
-
var ExtendedIntegrationType =
|
|
4274
|
+
var ExtendedIntegrationType = z152.enum([
|
|
4140
4275
|
"Figma",
|
|
4141
4276
|
"Github",
|
|
4142
4277
|
"Gitlab",
|
|
@@ -4147,26 +4282,26 @@ var ExtendedIntegrationType = z142.enum([
|
|
|
4147
4282
|
]);
|
|
4148
4283
|
var IntegrationType = ExtendedIntegrationType.exclude(["TokenStudio", "FigmaVariablesPlugin"]);
|
|
4149
4284
|
var GitIntegrationType = IntegrationType.exclude(["Figma"]);
|
|
4150
|
-
var Integration =
|
|
4151
|
-
id:
|
|
4152
|
-
workspaceId:
|
|
4285
|
+
var Integration = z152.object({
|
|
4286
|
+
id: z152.string(),
|
|
4287
|
+
workspaceId: z152.string(),
|
|
4153
4288
|
type: IntegrationType,
|
|
4154
|
-
createdAt:
|
|
4155
|
-
integrationCredentials:
|
|
4156
|
-
});
|
|
4157
|
-
var IntegrationToken =
|
|
4158
|
-
access_token:
|
|
4159
|
-
refresh_token:
|
|
4160
|
-
expires_in:
|
|
4161
|
-
token_type:
|
|
4162
|
-
token_name:
|
|
4163
|
-
token_azure_organization_name:
|
|
4289
|
+
createdAt: z152.coerce.date(),
|
|
4290
|
+
integrationCredentials: z152.array(IntegrationCredentials).optional()
|
|
4291
|
+
});
|
|
4292
|
+
var IntegrationToken = z152.object({
|
|
4293
|
+
access_token: z152.string(),
|
|
4294
|
+
refresh_token: z152.string().optional(),
|
|
4295
|
+
expires_in: z152.union([z152.number().optional(), z152.string().optional()]),
|
|
4296
|
+
token_type: z152.string().optional(),
|
|
4297
|
+
token_name: z152.string().optional(),
|
|
4298
|
+
token_azure_organization_name: z152.string().optional(),
|
|
4164
4299
|
// Azure Cloud PAT only
|
|
4165
|
-
token_azure_collection_name:
|
|
4300
|
+
token_azure_collection_name: z152.string().optional(),
|
|
4166
4301
|
// Azure Server PAT only
|
|
4167
|
-
token_bitbucket_username:
|
|
4302
|
+
token_bitbucket_username: z152.string().optional(),
|
|
4168
4303
|
// Bitbucket only
|
|
4169
|
-
custom_url:
|
|
4304
|
+
custom_url: z152.string().optional().transform((value) => {
|
|
4170
4305
|
if (!value?.trim())
|
|
4171
4306
|
return void 0;
|
|
4172
4307
|
return formatCustomUrl(value);
|
|
@@ -4202,228 +4337,96 @@ function formatCustomUrl(url) {
|
|
|
4202
4337
|
}
|
|
4203
4338
|
return forbiddenCustomUrlDomainList.some((domain) => formattedUrl.includes(domain)) ? void 0 : formattedUrl;
|
|
4204
4339
|
}
|
|
4205
|
-
var
|
|
4206
|
-
var NpmRegistryType = z143.enum(["NPMJS", "GitHub", "AzureDevOps", "Artifactory", "Custom"]);
|
|
4207
|
-
var NpmRegistryBasicAuthConfig = z143.object({
|
|
4208
|
-
authType: z143.literal(NpmRegistryAuthType.Enum.Basic),
|
|
4209
|
-
username: z143.string(),
|
|
4210
|
-
password: z143.string()
|
|
4211
|
-
});
|
|
4212
|
-
var NpmRegistryBearerAuthConfig = z143.object({
|
|
4213
|
-
authType: z143.literal(NpmRegistryAuthType.Enum.Bearer),
|
|
4214
|
-
accessToken: z143.string()
|
|
4215
|
-
});
|
|
4216
|
-
var NpmRegistryNoAuthConfig = z143.object({
|
|
4217
|
-
authType: z143.literal(NpmRegistryAuthType.Enum.None)
|
|
4218
|
-
});
|
|
4219
|
-
var NpmRegistrCustomAuthConfig = z143.object({
|
|
4220
|
-
authType: z143.literal(NpmRegistryAuthType.Enum.Custom),
|
|
4221
|
-
authHeaderName: z143.string(),
|
|
4222
|
-
authHeaderValue: z143.string()
|
|
4223
|
-
});
|
|
4224
|
-
var NpmRegistryAuthConfig = z143.discriminatedUnion("authType", [
|
|
4225
|
-
NpmRegistryBasicAuthConfig,
|
|
4226
|
-
NpmRegistryBearerAuthConfig,
|
|
4227
|
-
NpmRegistryNoAuthConfig,
|
|
4228
|
-
NpmRegistrCustomAuthConfig
|
|
4229
|
-
]);
|
|
4230
|
-
var NpmRegistryConfigBase = z143.object({
|
|
4231
|
-
registryType: NpmRegistryType,
|
|
4232
|
-
enabledScopes: z143.array(z143.string()),
|
|
4233
|
-
customRegistryUrl: z143.string().optional(),
|
|
4234
|
-
bypassProxy: z143.boolean().default(false),
|
|
4235
|
-
npmProxyRegistryConfigId: z143.string().optional(),
|
|
4236
|
-
npmProxyVersion: z143.number().optional()
|
|
4237
|
-
});
|
|
4238
|
-
var NpmRegistryConfig = NpmRegistryConfigBase.and(NpmRegistryAuthConfig);
|
|
4239
|
-
var SsoProvider = z144.object({
|
|
4240
|
-
providerId: z144.string(),
|
|
4241
|
-
defaultAutoInviteValue: z144.boolean(),
|
|
4242
|
-
autoInviteDomains: z144.record(z144.string(), z144.boolean()),
|
|
4243
|
-
skipDocsSupernovaLogin: z144.boolean(),
|
|
4244
|
-
areInvitesDisabled: z144.boolean(),
|
|
4245
|
-
isTestMode: z144.boolean(),
|
|
4246
|
-
emailDomains: z144.array(z144.string()),
|
|
4247
|
-
metadataXml: z144.string().nullish()
|
|
4248
|
-
});
|
|
4249
|
-
var isValidCIDR = (value) => {
|
|
4250
|
-
return IPCIDR.isValidAddress(value);
|
|
4251
|
-
};
|
|
4252
|
-
var WorkspaceIpWhitelistEntry = z145.object({
|
|
4253
|
-
isEnabled: z145.boolean(),
|
|
4254
|
-
name: z145.string(),
|
|
4255
|
-
range: z145.string().refine(isValidCIDR, {
|
|
4256
|
-
message: "Invalid IP CIDR"
|
|
4257
|
-
})
|
|
4258
|
-
});
|
|
4259
|
-
var WorkspaceIpSettings = z145.object({
|
|
4260
|
-
isEnabledForCloud: z145.boolean(),
|
|
4261
|
-
isEnabledForDocs: z145.boolean(),
|
|
4262
|
-
entries: z145.array(WorkspaceIpWhitelistEntry)
|
|
4263
|
-
});
|
|
4264
|
-
var WorkspaceProfile = z145.object({
|
|
4265
|
-
name: z145.string(),
|
|
4266
|
-
handle: z145.string(),
|
|
4267
|
-
color: z145.string(),
|
|
4268
|
-
avatar: nullishToOptional(z145.string()),
|
|
4269
|
-
billingDetails: nullishToOptional(BillingDetails)
|
|
4270
|
-
});
|
|
4271
|
-
var WorkspaceProfileUpdate = WorkspaceProfile.omit({
|
|
4272
|
-
avatar: true
|
|
4273
|
-
});
|
|
4274
|
-
var Workspace = z145.object({
|
|
4275
|
-
id: z145.string(),
|
|
4276
|
-
profile: WorkspaceProfile,
|
|
4277
|
-
subscription: Subscription,
|
|
4278
|
-
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4279
|
-
sso: nullishToOptional(SsoProvider),
|
|
4280
|
-
npmRegistrySettings: nullishToOptional(NpmRegistryConfig)
|
|
4281
|
-
});
|
|
4282
|
-
var WorkspaceWithDesignSystems = z145.object({
|
|
4283
|
-
workspace: Workspace,
|
|
4284
|
-
designSystems: z145.array(DesignSystem)
|
|
4285
|
-
});
|
|
4286
|
-
var WorkspaceDump = z146.object({
|
|
4340
|
+
var WorkspaceDump = z153.object({
|
|
4287
4341
|
workspace: Workspace,
|
|
4288
4342
|
designSystems: DesignSystemDump.array(),
|
|
4289
4343
|
codeIntegration: CodeIntegrationDump,
|
|
4290
4344
|
integrations: Integration.array()
|
|
4291
4345
|
});
|
|
4292
|
-
var UserDump =
|
|
4346
|
+
var UserDump = z154.object({
|
|
4293
4347
|
user: User,
|
|
4294
4348
|
workspaces: WorkspaceDump.array()
|
|
4295
4349
|
});
|
|
4296
|
-
var NpmProxyToken =
|
|
4297
|
-
access:
|
|
4298
|
-
expiresAt:
|
|
4350
|
+
var NpmProxyToken = z155.object({
|
|
4351
|
+
access: z155.string(),
|
|
4352
|
+
expiresAt: z155.number()
|
|
4299
4353
|
});
|
|
4300
|
-
var SessionData =
|
|
4301
|
-
returnToUrl:
|
|
4354
|
+
var SessionData = z155.object({
|
|
4355
|
+
returnToUrl: z155.string().optional(),
|
|
4302
4356
|
npmProxyToken: NpmProxyToken.optional()
|
|
4303
4357
|
});
|
|
4304
|
-
var Session =
|
|
4305
|
-
id:
|
|
4306
|
-
expiresAt:
|
|
4307
|
-
userId:
|
|
4358
|
+
var Session = z155.object({
|
|
4359
|
+
id: z155.string(),
|
|
4360
|
+
expiresAt: z155.coerce.date(),
|
|
4361
|
+
userId: z155.string().nullable(),
|
|
4308
4362
|
data: SessionData
|
|
4309
4363
|
});
|
|
4310
|
-
var AuthTokens =
|
|
4311
|
-
access:
|
|
4312
|
-
refresh:
|
|
4364
|
+
var AuthTokens = z155.object({
|
|
4365
|
+
access: z155.string(),
|
|
4366
|
+
refresh: z155.string()
|
|
4313
4367
|
});
|
|
4314
|
-
var UserSession =
|
|
4368
|
+
var UserSession = z155.object({
|
|
4315
4369
|
session: Session,
|
|
4316
4370
|
user: User.nullable()
|
|
4317
4371
|
});
|
|
4318
|
-
var
|
|
4319
|
-
|
|
4320
|
-
email: z149.string().email().trim().transform((value) => value.toLowerCase()),
|
|
4321
|
-
role: WorkspaceRoleSchema
|
|
4322
|
-
});
|
|
4323
|
-
var UserInvites = z149.array(UserInvite).max(MAX_MEMBERS_COUNT);
|
|
4324
|
-
var WorkspaceConfigurationUpdate = z150.object({
|
|
4325
|
-
id: z150.string(),
|
|
4326
|
-
ipWhitelist: WorkspaceIpSettings.optional(),
|
|
4327
|
-
sso: SsoProvider.optional(),
|
|
4328
|
-
npmRegistrySettings: NpmRegistryConfig.optional(),
|
|
4329
|
-
profile: WorkspaceProfileUpdate.optional()
|
|
4330
|
-
});
|
|
4331
|
-
var WorkspaceContext = z151.object({
|
|
4332
|
-
workspaceId: z151.string(),
|
|
4333
|
-
product: ProductCodeSchema,
|
|
4334
|
-
ipWhitelist: nullishToOptional(WorkspaceIpSettings),
|
|
4335
|
-
publicDesignSystem: z151.boolean().optional()
|
|
4336
|
-
});
|
|
4337
|
-
var WORKSPACE_NAME_MIN_LENGTH = 2;
|
|
4338
|
-
var WORKSPACE_NAME_MAX_LENGTH = 64;
|
|
4339
|
-
var HANDLE_MIN_LENGTH = 2;
|
|
4340
|
-
var HANDLE_MAX_LENGTH = 64;
|
|
4341
|
-
var CreateWorkspaceInput = z152.object({
|
|
4342
|
-
name: z152.string().min(WORKSPACE_NAME_MIN_LENGTH).max(WORKSPACE_NAME_MAX_LENGTH).trim(),
|
|
4343
|
-
handle: z152.string().regex(slugRegex).min(HANDLE_MIN_LENGTH).max(HANDLE_MAX_LENGTH).refine((value) => value?.length > 0).optional()
|
|
4344
|
-
});
|
|
4345
|
-
var WorkspaceInvitation = z153.object({
|
|
4346
|
-
id: z153.string(),
|
|
4347
|
-
email: z153.string().email(),
|
|
4348
|
-
createdAt: z153.coerce.date(),
|
|
4349
|
-
resentAt: z153.coerce.date().nullish(),
|
|
4350
|
-
role: z153.nativeEnum(WorkspaceRole),
|
|
4351
|
-
workspaceId: z153.string(),
|
|
4352
|
-
invitedBy: z153.string()
|
|
4353
|
-
});
|
|
4354
|
-
var WorkspaceMembership = z154.object({
|
|
4355
|
-
id: z154.string(),
|
|
4356
|
-
userId: z154.string(),
|
|
4357
|
-
workspaceId: z154.string(),
|
|
4358
|
-
workspaceRole: z154.nativeEnum(WorkspaceRole),
|
|
4359
|
-
notificationSettings: UserNotificationSettings
|
|
4360
|
-
});
|
|
4361
|
-
var UpdateMembershipRolesInput = z154.object({
|
|
4362
|
-
members: z154.array(
|
|
4363
|
-
z154.object({
|
|
4364
|
-
userId: z154.string(),
|
|
4365
|
-
role: z154.nativeEnum(WorkspaceRole)
|
|
4366
|
-
})
|
|
4367
|
-
)
|
|
4368
|
-
});
|
|
4369
|
-
var DesignSystemInviteEmailRecipient = z155.object({
|
|
4370
|
-
email: z155.string(),
|
|
4372
|
+
var DesignSystemInviteEmailRecipient = z156.object({
|
|
4373
|
+
email: z156.string(),
|
|
4371
4374
|
role: WorkspaceRoleSchema
|
|
4372
4375
|
});
|
|
4373
|
-
var DesignSystemInviteEmailData =
|
|
4376
|
+
var DesignSystemInviteEmailData = z156.object({
|
|
4374
4377
|
workspace: Workspace,
|
|
4375
4378
|
designSystem: DesignSystem,
|
|
4376
4379
|
invitedBy: User,
|
|
4377
|
-
documentationDomain:
|
|
4380
|
+
documentationDomain: z156.string().optional()
|
|
4378
4381
|
});
|
|
4379
|
-
var WorkspaceInviteEmailRecipient =
|
|
4380
|
-
email:
|
|
4382
|
+
var WorkspaceInviteEmailRecipient = z157.object({
|
|
4383
|
+
email: z157.string(),
|
|
4381
4384
|
role: WorkspaceRoleSchema
|
|
4382
4385
|
});
|
|
4383
|
-
var WorkspaceInviteEmailData =
|
|
4386
|
+
var WorkspaceInviteEmailData = z157.object({
|
|
4384
4387
|
workspace: Workspace,
|
|
4385
4388
|
invitedBy: User,
|
|
4386
|
-
documentationDomain:
|
|
4389
|
+
documentationDomain: z157.string().optional()
|
|
4387
4390
|
});
|
|
4388
|
-
var EventDataSourceImported =
|
|
4389
|
-
type:
|
|
4390
|
-
workspaceId: z157.string(),
|
|
4391
|
-
designSystemId: z157.string()
|
|
4392
|
-
});
|
|
4393
|
-
var EventVersionReleased = z158.object({
|
|
4394
|
-
type: z158.literal("DesignSystemVersionReleased"),
|
|
4391
|
+
var EventDataSourceImported = z158.object({
|
|
4392
|
+
type: z158.literal("DataSourceImported"),
|
|
4395
4393
|
workspaceId: z158.string(),
|
|
4396
|
-
designSystemId: z158.string()
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4394
|
+
designSystemId: z158.string()
|
|
4395
|
+
});
|
|
4396
|
+
var EventVersionReleased = z159.object({
|
|
4397
|
+
type: z159.literal("DesignSystemVersionReleased"),
|
|
4398
|
+
workspaceId: z159.string(),
|
|
4399
|
+
designSystemId: z159.string(),
|
|
4400
|
+
versionId: z159.string()
|
|
4401
|
+
});
|
|
4402
|
+
var Event = z160.discriminatedUnion("type", [EventVersionReleased, EventDataSourceImported]);
|
|
4403
|
+
var ExportJobDocumentationContext = z161.object({
|
|
4404
|
+
isSingleVersionDocs: z161.boolean(),
|
|
4405
|
+
versionSlug: z161.string(),
|
|
4403
4406
|
environment: PublishedDocEnvironment
|
|
4404
4407
|
});
|
|
4405
|
-
var ExportJobContext =
|
|
4406
|
-
apiUrl:
|
|
4407
|
-
accessToken:
|
|
4408
|
-
designSystemId:
|
|
4409
|
-
designSystemName:
|
|
4410
|
-
exporterId:
|
|
4411
|
-
versionId:
|
|
4412
|
-
brandId:
|
|
4413
|
-
themeId:
|
|
4414
|
-
themePersistentIds:
|
|
4415
|
-
exporterName:
|
|
4416
|
-
exporterPackageUrl:
|
|
4408
|
+
var ExportJobContext = z161.object({
|
|
4409
|
+
apiUrl: z161.string(),
|
|
4410
|
+
accessToken: z161.string(),
|
|
4411
|
+
designSystemId: z161.string(),
|
|
4412
|
+
designSystemName: z161.string(),
|
|
4413
|
+
exporterId: z161.string(),
|
|
4414
|
+
versionId: z161.string(),
|
|
4415
|
+
brandId: z161.string().optional(),
|
|
4416
|
+
themeId: z161.string().optional(),
|
|
4417
|
+
themePersistentIds: z161.string().array().optional(),
|
|
4418
|
+
exporterName: z161.string(),
|
|
4419
|
+
exporterPackageUrl: z161.string(),
|
|
4417
4420
|
exporterPropertyValues: ExporterPropertyValue.array(),
|
|
4418
4421
|
documentation: ExportJobDocumentationContext.optional()
|
|
4419
4422
|
});
|
|
4420
|
-
var ExporterFunctionPayload =
|
|
4421
|
-
exportJobId:
|
|
4422
|
-
exportContextId:
|
|
4423
|
-
designSystemId:
|
|
4424
|
-
workspaceId:
|
|
4423
|
+
var ExporterFunctionPayload = z162.object({
|
|
4424
|
+
exportJobId: z162.string(),
|
|
4425
|
+
exportContextId: z162.string(),
|
|
4426
|
+
designSystemId: z162.string(),
|
|
4427
|
+
workspaceId: z162.string()
|
|
4425
4428
|
});
|
|
4426
|
-
var ExportJobDestinationType =
|
|
4429
|
+
var ExportJobDestinationType = z163.enum([
|
|
4427
4430
|
"s3",
|
|
4428
4431
|
"webhookUrl",
|
|
4429
4432
|
"github",
|
|
@@ -4432,30 +4435,30 @@ var ExportJobDestinationType = z162.enum([
|
|
|
4432
4435
|
"gitlab",
|
|
4433
4436
|
"bitbucket"
|
|
4434
4437
|
]);
|
|
4435
|
-
var ExportJobStatus =
|
|
4436
|
-
var ExportJobLogEntryType =
|
|
4437
|
-
var ExportJobLogEntry =
|
|
4438
|
-
id:
|
|
4439
|
-
time:
|
|
4438
|
+
var ExportJobStatus = z163.enum(["InProgress", "Success", "Failed", "Timeout"]);
|
|
4439
|
+
var ExportJobLogEntryType = z163.enum(["success", "info", "warning", "error", "user"]);
|
|
4440
|
+
var ExportJobLogEntry = z163.object({
|
|
4441
|
+
id: z163.string().optional(),
|
|
4442
|
+
time: z163.coerce.date(),
|
|
4440
4443
|
type: ExportJobLogEntryType,
|
|
4441
|
-
message:
|
|
4444
|
+
message: z163.string()
|
|
4442
4445
|
});
|
|
4443
|
-
var ExportJobPullRequestDestinationResult =
|
|
4444
|
-
pullRequestUrl:
|
|
4446
|
+
var ExportJobPullRequestDestinationResult = z163.object({
|
|
4447
|
+
pullRequestUrl: z163.string()
|
|
4445
4448
|
});
|
|
4446
|
-
var ExportJobS3DestinationResult =
|
|
4447
|
-
bucket:
|
|
4448
|
-
urlPrefix:
|
|
4449
|
-
path:
|
|
4450
|
-
files:
|
|
4451
|
-
url: nullishToOptional(
|
|
4452
|
-
urls: nullishToOptional(
|
|
4449
|
+
var ExportJobS3DestinationResult = z163.object({
|
|
4450
|
+
bucket: z163.string(),
|
|
4451
|
+
urlPrefix: z163.string().optional(),
|
|
4452
|
+
path: z163.string(),
|
|
4453
|
+
files: z163.array(z163.string()),
|
|
4454
|
+
url: nullishToOptional(z163.string()),
|
|
4455
|
+
urls: nullishToOptional(z163.string().array())
|
|
4453
4456
|
});
|
|
4454
|
-
var ExportJobDocsDestinationResult =
|
|
4455
|
-
url:
|
|
4457
|
+
var ExportJobDocsDestinationResult = z163.object({
|
|
4458
|
+
url: z163.string()
|
|
4456
4459
|
});
|
|
4457
|
-
var ExportJobResult =
|
|
4458
|
-
error:
|
|
4460
|
+
var ExportJobResult = z163.object({
|
|
4461
|
+
error: z163.string().optional(),
|
|
4459
4462
|
s3: nullishToOptional(ExportJobS3DestinationResult),
|
|
4460
4463
|
github: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
4461
4464
|
azure: nullishToOptional(ExportJobPullRequestDestinationResult),
|
|
@@ -4464,22 +4467,22 @@ var ExportJobResult = z162.object({
|
|
|
4464
4467
|
sndocs: nullishToOptional(ExportJobDocsDestinationResult),
|
|
4465
4468
|
logs: nullishToOptional(ExportJobLogEntry.array())
|
|
4466
4469
|
});
|
|
4467
|
-
var ExportJob =
|
|
4468
|
-
id:
|
|
4469
|
-
createdAt:
|
|
4470
|
-
finishedAt:
|
|
4471
|
-
designSystemId:
|
|
4472
|
-
designSystemVersionId:
|
|
4473
|
-
workspaceId:
|
|
4474
|
-
scheduleId:
|
|
4475
|
-
exporterId:
|
|
4476
|
-
brandId:
|
|
4477
|
-
themeId:
|
|
4478
|
-
themePersistentIds:
|
|
4479
|
-
estimatedExecutionTime:
|
|
4470
|
+
var ExportJob = z163.object({
|
|
4471
|
+
id: z163.string(),
|
|
4472
|
+
createdAt: z163.coerce.date(),
|
|
4473
|
+
finishedAt: z163.coerce.date().optional(),
|
|
4474
|
+
designSystemId: z163.string(),
|
|
4475
|
+
designSystemVersionId: z163.string(),
|
|
4476
|
+
workspaceId: z163.string(),
|
|
4477
|
+
scheduleId: z163.string().nullish(),
|
|
4478
|
+
exporterId: z163.string(),
|
|
4479
|
+
brandId: z163.string().optional(),
|
|
4480
|
+
themeId: z163.string().optional(),
|
|
4481
|
+
themePersistentIds: z163.string().array().optional(),
|
|
4482
|
+
estimatedExecutionTime: z163.number().optional(),
|
|
4480
4483
|
status: ExportJobStatus,
|
|
4481
4484
|
result: ExportJobResult.optional(),
|
|
4482
|
-
createdByUserId:
|
|
4485
|
+
createdByUserId: z163.string().optional(),
|
|
4483
4486
|
// Destinations
|
|
4484
4487
|
...ExportDestinationsMap.shape
|
|
4485
4488
|
});
|
|
@@ -4493,24 +4496,24 @@ var ExportJobFindByFilter = ExportJob.pick({
|
|
|
4493
4496
|
themeId: true,
|
|
4494
4497
|
brandId: true
|
|
4495
4498
|
}).extend({
|
|
4496
|
-
destinations:
|
|
4499
|
+
destinations: z163.array(ExportJobDestinationType),
|
|
4497
4500
|
docsEnvironment: PublishedDocEnvironment
|
|
4498
4501
|
}).partial();
|
|
4499
|
-
var ExporterWorkspaceMembershipRole =
|
|
4500
|
-
var ExporterWorkspaceMembership =
|
|
4501
|
-
id:
|
|
4502
|
-
workspaceId:
|
|
4503
|
-
exporterId:
|
|
4502
|
+
var ExporterWorkspaceMembershipRole = z164.enum(["Owner", "OwnerArchived", "User"]);
|
|
4503
|
+
var ExporterWorkspaceMembership = z165.object({
|
|
4504
|
+
id: z165.string(),
|
|
4505
|
+
workspaceId: z165.string(),
|
|
4506
|
+
exporterId: z165.string(),
|
|
4504
4507
|
role: ExporterWorkspaceMembershipRole
|
|
4505
4508
|
});
|
|
4506
|
-
var FlaggedFeature =
|
|
4507
|
-
var FeatureFlagMap =
|
|
4508
|
-
var FeatureFlag =
|
|
4509
|
-
id:
|
|
4509
|
+
var FlaggedFeature = z166.enum(["FigmaImporterV2", "ShadowOpacityOptional", "DisableImporter", "VariablesOrder"]);
|
|
4510
|
+
var FeatureFlagMap = z166.record(FlaggedFeature, z166.boolean());
|
|
4511
|
+
var FeatureFlag = z166.object({
|
|
4512
|
+
id: z166.string(),
|
|
4510
4513
|
feature: FlaggedFeature,
|
|
4511
|
-
createdAt:
|
|
4512
|
-
enabled:
|
|
4513
|
-
designSystemId:
|
|
4514
|
+
createdAt: z166.coerce.date(),
|
|
4515
|
+
enabled: z166.boolean(),
|
|
4516
|
+
designSystemId: z166.string().optional()
|
|
4514
4517
|
});
|
|
4515
4518
|
var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
4516
4519
|
OAuthProviderNames2["Figma"] = "figma";
|
|
@@ -4520,107 +4523,107 @@ var OAuthProviderNames = /* @__PURE__ */ ((OAuthProviderNames2) => {
|
|
|
4520
4523
|
OAuthProviderNames2["Bitbucket"] = "bitbucket";
|
|
4521
4524
|
return OAuthProviderNames2;
|
|
4522
4525
|
})(OAuthProviderNames || {});
|
|
4523
|
-
var OAuthProviderSchema =
|
|
4526
|
+
var OAuthProviderSchema = z167.nativeEnum(OAuthProviderNames);
|
|
4524
4527
|
var OAuthProvider = OAuthProviderSchema.enum;
|
|
4525
|
-
var ExternalOAuthRequest =
|
|
4526
|
-
id:
|
|
4528
|
+
var ExternalOAuthRequest = z168.object({
|
|
4529
|
+
id: z168.string(),
|
|
4527
4530
|
provider: OAuthProviderSchema,
|
|
4528
|
-
userId:
|
|
4529
|
-
state:
|
|
4530
|
-
createdAt:
|
|
4531
|
+
userId: z168.string(),
|
|
4532
|
+
state: z168.string(),
|
|
4533
|
+
createdAt: z168.coerce.date()
|
|
4531
4534
|
});
|
|
4532
|
-
var GitObjectsQuery =
|
|
4533
|
-
organization:
|
|
4535
|
+
var GitObjectsQuery = z169.object({
|
|
4536
|
+
organization: z169.string().optional(),
|
|
4534
4537
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group | Github Account (User or Organization)
|
|
4535
|
-
project:
|
|
4538
|
+
project: z169.string().optional(),
|
|
4536
4539
|
// Only for Bitbucket and Azure
|
|
4537
|
-
repository:
|
|
4540
|
+
repository: z169.string().optional(),
|
|
4538
4541
|
// For all providers. For Gitlab, it's called "project".
|
|
4539
|
-
branch:
|
|
4542
|
+
branch: z169.string().optional(),
|
|
4540
4543
|
// For all providers.
|
|
4541
|
-
user:
|
|
4544
|
+
user: z169.string().optional()
|
|
4542
4545
|
// Gitlab user
|
|
4543
4546
|
});
|
|
4544
|
-
var GitOrganization =
|
|
4545
|
-
id:
|
|
4546
|
-
name:
|
|
4547
|
-
url:
|
|
4548
|
-
slug:
|
|
4547
|
+
var GitOrganization = z169.object({
|
|
4548
|
+
id: z169.string(),
|
|
4549
|
+
name: z169.string(),
|
|
4550
|
+
url: z169.string(),
|
|
4551
|
+
slug: z169.string()
|
|
4549
4552
|
});
|
|
4550
|
-
var GitProject =
|
|
4551
|
-
id:
|
|
4552
|
-
name:
|
|
4553
|
-
url:
|
|
4554
|
-
slug:
|
|
4553
|
+
var GitProject = z169.object({
|
|
4554
|
+
id: z169.string(),
|
|
4555
|
+
name: z169.string(),
|
|
4556
|
+
url: z169.string(),
|
|
4557
|
+
slug: z169.string()
|
|
4555
4558
|
});
|
|
4556
|
-
var GitRepository =
|
|
4557
|
-
id:
|
|
4558
|
-
name:
|
|
4559
|
-
url:
|
|
4560
|
-
slug:
|
|
4559
|
+
var GitRepository = z169.object({
|
|
4560
|
+
id: z169.string(),
|
|
4561
|
+
name: z169.string(),
|
|
4562
|
+
url: z169.string(),
|
|
4563
|
+
slug: z169.string(),
|
|
4561
4564
|
/**
|
|
4562
4565
|
* Can be undefined when:
|
|
4563
4566
|
* - there are no branches in the repository yet
|
|
4564
4567
|
* - Git provider doesn't expose this information on a repository via their API
|
|
4565
4568
|
*/
|
|
4566
|
-
defaultBranch:
|
|
4569
|
+
defaultBranch: z169.string().optional()
|
|
4567
4570
|
});
|
|
4568
|
-
var GitBranch =
|
|
4569
|
-
name:
|
|
4570
|
-
lastCommitId:
|
|
4571
|
+
var GitBranch = z169.object({
|
|
4572
|
+
name: z169.string(),
|
|
4573
|
+
lastCommitId: z169.string()
|
|
4571
4574
|
});
|
|
4572
|
-
var IntegrationTokenSchemaOld =
|
|
4573
|
-
id: z169.string(),
|
|
4574
|
-
provider: OAuthProviderSchema,
|
|
4575
|
-
scope: z169.string(),
|
|
4576
|
-
userId: z169.string(),
|
|
4577
|
-
accessToken: z169.string(),
|
|
4578
|
-
refreshToken: z169.string(),
|
|
4579
|
-
expiresAt: z169.coerce.date(),
|
|
4580
|
-
externalUserId: z169.string().nullish()
|
|
4581
|
-
});
|
|
4582
|
-
var WorkspaceOAuthRequestSchema = z170.object({
|
|
4575
|
+
var IntegrationTokenSchemaOld = z170.object({
|
|
4583
4576
|
id: z170.string(),
|
|
4584
|
-
workspaceId: z170.string(),
|
|
4585
4577
|
provider: OAuthProviderSchema,
|
|
4578
|
+
scope: z170.string(),
|
|
4586
4579
|
userId: z170.string(),
|
|
4587
|
-
|
|
4580
|
+
accessToken: z170.string(),
|
|
4581
|
+
refreshToken: z170.string(),
|
|
4582
|
+
expiresAt: z170.coerce.date(),
|
|
4583
|
+
externalUserId: z170.string().nullish()
|
|
4584
|
+
});
|
|
4585
|
+
var WorkspaceOAuthRequestSchema = z171.object({
|
|
4586
|
+
id: z171.string(),
|
|
4587
|
+
workspaceId: z171.string(),
|
|
4588
|
+
provider: OAuthProviderSchema,
|
|
4589
|
+
userId: z171.string(),
|
|
4590
|
+
createdAt: z171.coerce.date()
|
|
4588
4591
|
});
|
|
4589
|
-
var AnyRecord =
|
|
4592
|
+
var AnyRecord = z172.record(z172.any());
|
|
4590
4593
|
var NpmPackageVersionDist = AnyRecord.and(
|
|
4591
|
-
|
|
4592
|
-
tarball:
|
|
4594
|
+
z172.object({
|
|
4595
|
+
tarball: z172.string()
|
|
4593
4596
|
})
|
|
4594
4597
|
);
|
|
4595
4598
|
var NpmPackageVersion = AnyRecord.and(
|
|
4596
|
-
|
|
4599
|
+
z172.object({
|
|
4597
4600
|
dist: NpmPackageVersionDist
|
|
4598
4601
|
})
|
|
4599
4602
|
);
|
|
4600
4603
|
var NpmPackage = AnyRecord.and(
|
|
4601
|
-
|
|
4602
|
-
_id:
|
|
4603
|
-
name:
|
|
4604
|
+
z172.object({
|
|
4605
|
+
_id: z172.string(),
|
|
4606
|
+
name: z172.string(),
|
|
4604
4607
|
// e.g. "latest": "1.2.3"
|
|
4605
|
-
"dist-tags":
|
|
4608
|
+
"dist-tags": z172.record(z172.string(), z172.string()),
|
|
4606
4609
|
// "1.2.3": {...}
|
|
4607
|
-
versions:
|
|
4610
|
+
versions: z172.record(NpmPackageVersion)
|
|
4608
4611
|
})
|
|
4609
4612
|
);
|
|
4610
|
-
var NpmProxyTokenPayload =
|
|
4611
|
-
npmProxyRegistryConfigId:
|
|
4613
|
+
var NpmProxyTokenPayload = z173.object({
|
|
4614
|
+
npmProxyRegistryConfigId: z173.string()
|
|
4612
4615
|
});
|
|
4613
|
-
var PersonalAccessToken =
|
|
4614
|
-
id:
|
|
4615
|
-
userId:
|
|
4616
|
-
workspaceId:
|
|
4616
|
+
var PersonalAccessToken = z174.object({
|
|
4617
|
+
id: z174.string(),
|
|
4618
|
+
userId: z174.string(),
|
|
4619
|
+
workspaceId: z174.string().optional(),
|
|
4617
4620
|
workspaceRole: WorkspaceRoleSchema.optional(),
|
|
4618
|
-
name:
|
|
4619
|
-
hidden:
|
|
4620
|
-
token:
|
|
4621
|
-
scope:
|
|
4622
|
-
createdAt:
|
|
4623
|
-
expireAt:
|
|
4621
|
+
name: z174.string(),
|
|
4622
|
+
hidden: z174.boolean(),
|
|
4623
|
+
token: z174.string(),
|
|
4624
|
+
scope: z174.string().optional(),
|
|
4625
|
+
createdAt: z174.coerce.date(),
|
|
4626
|
+
expireAt: z174.coerce.date().optional()
|
|
4624
4627
|
});
|
|
4625
4628
|
|
|
4626
4629
|
// src/api/conversion/documentation/documentation-item-configuration-v1-to-dto.ts
|
|
@@ -5037,136 +5040,136 @@ function integrationCredentialToDto(credential) {
|
|
|
5037
5040
|
}
|
|
5038
5041
|
|
|
5039
5042
|
// src/api/dto/aux/pagination.ts
|
|
5040
|
-
import { z as
|
|
5041
|
-
var DTOPagination =
|
|
5042
|
-
limit:
|
|
5043
|
-
offset:
|
|
5043
|
+
import { z as z175 } from "zod";
|
|
5044
|
+
var DTOPagination = z175.object({
|
|
5045
|
+
limit: z175.string().optional(),
|
|
5046
|
+
offset: z175.string().optional()
|
|
5044
5047
|
});
|
|
5045
5048
|
|
|
5046
5049
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5047
|
-
import { z as
|
|
5050
|
+
import { z as z203 } from "zod";
|
|
5048
5051
|
|
|
5049
5052
|
// src/api/dto/design-systems/brand.ts
|
|
5050
|
-
import { z as
|
|
5051
|
-
var DTOBrand =
|
|
5052
|
-
id:
|
|
5053
|
-
designSystemVersionId:
|
|
5054
|
-
persistentId:
|
|
5053
|
+
import { z as z176 } from "zod";
|
|
5054
|
+
var DTOBrand = z176.object({
|
|
5055
|
+
id: z176.string(),
|
|
5056
|
+
designSystemVersionId: z176.string(),
|
|
5057
|
+
persistentId: z176.string(),
|
|
5055
5058
|
meta: ObjectMeta
|
|
5056
5059
|
});
|
|
5057
|
-
var DTOBrandGetResponse =
|
|
5058
|
-
var DTOBrandCreateResponse =
|
|
5060
|
+
var DTOBrandGetResponse = z176.object({ brand: DTOBrand });
|
|
5061
|
+
var DTOBrandCreateResponse = z176.object({
|
|
5059
5062
|
brand: DTOBrand
|
|
5060
5063
|
});
|
|
5061
|
-
var DTOBrandsListResponse =
|
|
5064
|
+
var DTOBrandsListResponse = z176.object({ brands: z176.array(DTOBrand) });
|
|
5062
5065
|
|
|
5063
5066
|
// src/api/dto/design-systems/data-source.ts
|
|
5064
|
-
import { z as
|
|
5065
|
-
var DTODataSourceFigmaFileVersion =
|
|
5066
|
-
id:
|
|
5067
|
-
created_at:
|
|
5068
|
-
label:
|
|
5069
|
-
description:
|
|
5070
|
-
});
|
|
5071
|
-
var DTODataSourceFigmaCloud =
|
|
5072
|
-
fileId:
|
|
5067
|
+
import { z as z177 } from "zod";
|
|
5068
|
+
var DTODataSourceFigmaFileVersion = z177.object({
|
|
5069
|
+
id: z177.string(),
|
|
5070
|
+
created_at: z177.coerce.date(),
|
|
5071
|
+
label: z177.string(),
|
|
5072
|
+
description: z177.string()
|
|
5073
|
+
});
|
|
5074
|
+
var DTODataSourceFigmaCloud = z177.object({
|
|
5075
|
+
fileId: z177.string(),
|
|
5073
5076
|
state: DataSourceFigmaState,
|
|
5074
5077
|
autoImportMode: DataSourceAutoImportMode,
|
|
5075
|
-
fileThumbnailUrl:
|
|
5078
|
+
fileThumbnailUrl: z177.string().optional(),
|
|
5076
5079
|
lastImportResult: SourceImportSummary.nullish(),
|
|
5077
|
-
lastImportedAt:
|
|
5080
|
+
lastImportedAt: z177.date().nullish(),
|
|
5078
5081
|
lastImportedVersion: DTODataSourceFigmaFileVersion.nullish(),
|
|
5079
|
-
lastUpdatesCheckedAt:
|
|
5080
|
-
ownerId:
|
|
5081
|
-
ownerUserName:
|
|
5082
|
-
preferredCredentialId:
|
|
5082
|
+
lastUpdatesCheckedAt: z177.date().nullish(),
|
|
5083
|
+
ownerId: z177.string(),
|
|
5084
|
+
ownerUserName: z177.string().optional(),
|
|
5085
|
+
preferredCredentialId: z177.string().optional(),
|
|
5083
5086
|
stats: DataSourceStats
|
|
5084
5087
|
});
|
|
5085
|
-
var DTODataSourceFigma =
|
|
5086
|
-
id:
|
|
5087
|
-
type:
|
|
5088
|
-
fileName:
|
|
5088
|
+
var DTODataSourceFigma = z177.object({
|
|
5089
|
+
id: z177.string(),
|
|
5090
|
+
type: z177.literal(DataSourceRemoteType.Enum.Figma),
|
|
5091
|
+
fileName: z177.string(),
|
|
5089
5092
|
scope: DataSourceFigmaScope,
|
|
5090
|
-
brandId:
|
|
5091
|
-
themeId:
|
|
5093
|
+
brandId: z177.string(),
|
|
5094
|
+
themeId: z177.string().nullish(),
|
|
5092
5095
|
cloud: DTODataSourceFigmaCloud.nullish(),
|
|
5093
|
-
tokenStudio:
|
|
5094
|
-
upload:
|
|
5095
|
-
figmaVariablesPlugin:
|
|
5096
|
-
});
|
|
5097
|
-
var DTODataSourceTokenStudio =
|
|
5098
|
-
id:
|
|
5099
|
-
type:
|
|
5100
|
-
fileName:
|
|
5101
|
-
brandId:
|
|
5102
|
-
themeId:
|
|
5103
|
-
cloud:
|
|
5104
|
-
tokenStudio:
|
|
5105
|
-
settings:
|
|
5106
|
-
dryRun:
|
|
5107
|
-
verbose:
|
|
5108
|
-
preciseCopy:
|
|
5096
|
+
tokenStudio: z177.literal(null),
|
|
5097
|
+
upload: z177.literal(null),
|
|
5098
|
+
figmaVariablesPlugin: z177.literal(null)
|
|
5099
|
+
});
|
|
5100
|
+
var DTODataSourceTokenStudio = z177.object({
|
|
5101
|
+
id: z177.string(),
|
|
5102
|
+
type: z177.literal(DataSourceRemoteType.Enum.TokenStudio),
|
|
5103
|
+
fileName: z177.string(),
|
|
5104
|
+
brandId: z177.string(),
|
|
5105
|
+
themeId: z177.string().nullish(),
|
|
5106
|
+
cloud: z177.literal(null),
|
|
5107
|
+
tokenStudio: z177.object({
|
|
5108
|
+
settings: z177.object({
|
|
5109
|
+
dryRun: z177.boolean(),
|
|
5110
|
+
verbose: z177.boolean(),
|
|
5111
|
+
preciseCopy: z177.boolean()
|
|
5109
5112
|
}),
|
|
5110
|
-
connectionName:
|
|
5111
|
-
lastImportedAt:
|
|
5112
|
-
lastImportedResults:
|
|
5113
|
-
|
|
5114
|
-
mapping:
|
|
5115
|
-
tokenSets:
|
|
5116
|
-
supernovaBrand:
|
|
5117
|
-
supernovaTheme:
|
|
5113
|
+
connectionName: z177.string(),
|
|
5114
|
+
lastImportedAt: z177.date(),
|
|
5115
|
+
lastImportedResults: z177.array(
|
|
5116
|
+
z177.object({
|
|
5117
|
+
mapping: z177.object({
|
|
5118
|
+
tokenSets: z177.array(z177.string()),
|
|
5119
|
+
supernovaBrand: z177.string(),
|
|
5120
|
+
supernovaTheme: z177.string().optional()
|
|
5118
5121
|
}),
|
|
5119
|
-
isFailed:
|
|
5120
|
-
tokensCreated:
|
|
5121
|
-
tokensDeleted:
|
|
5122
|
-
tokensUpdated:
|
|
5122
|
+
isFailed: z177.boolean(),
|
|
5123
|
+
tokensCreated: z177.number(),
|
|
5124
|
+
tokensDeleted: z177.number(),
|
|
5125
|
+
tokensUpdated: z177.number()
|
|
5123
5126
|
})
|
|
5124
5127
|
)
|
|
5125
5128
|
}),
|
|
5126
|
-
upload:
|
|
5127
|
-
figmaVariablesPlugin:
|
|
5128
|
-
});
|
|
5129
|
-
var DTODataSourceFigmaVariablesPlugin =
|
|
5130
|
-
id:
|
|
5131
|
-
type:
|
|
5132
|
-
fileName:
|
|
5133
|
-
brandId:
|
|
5134
|
-
themeId:
|
|
5135
|
-
cloud:
|
|
5136
|
-
tokenStudio:
|
|
5137
|
-
upload:
|
|
5138
|
-
remoteId:
|
|
5129
|
+
upload: z177.literal(null),
|
|
5130
|
+
figmaVariablesPlugin: z177.literal(null)
|
|
5131
|
+
});
|
|
5132
|
+
var DTODataSourceFigmaVariablesPlugin = z177.object({
|
|
5133
|
+
id: z177.string(),
|
|
5134
|
+
type: z177.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
5135
|
+
fileName: z177.string(),
|
|
5136
|
+
brandId: z177.string(),
|
|
5137
|
+
themeId: z177.literal(null),
|
|
5138
|
+
cloud: z177.literal(null),
|
|
5139
|
+
tokenStudio: z177.literal(null),
|
|
5140
|
+
upload: z177.object({
|
|
5141
|
+
remoteId: z177.string(),
|
|
5139
5142
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
5140
|
-
lastImportedAt:
|
|
5143
|
+
lastImportedAt: z177.date().optional(),
|
|
5141
5144
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5142
5145
|
}),
|
|
5143
|
-
figmaVariablesPlugin:
|
|
5144
|
-
fileId:
|
|
5145
|
-
lastImportedAt:
|
|
5146
|
+
figmaVariablesPlugin: z177.object({
|
|
5147
|
+
fileId: z177.string(),
|
|
5148
|
+
lastImportedAt: z177.date().optional(),
|
|
5146
5149
|
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
5147
5150
|
})
|
|
5148
5151
|
});
|
|
5149
|
-
var DTODataSource =
|
|
5152
|
+
var DTODataSource = z177.discriminatedUnion("type", [
|
|
5150
5153
|
DTODataSourceFigma,
|
|
5151
5154
|
DTODataSourceFigmaVariablesPlugin,
|
|
5152
5155
|
DTODataSourceTokenStudio
|
|
5153
5156
|
]);
|
|
5154
|
-
var DTODataSourcesListResponse =
|
|
5155
|
-
sources:
|
|
5157
|
+
var DTODataSourcesListResponse = z177.object({
|
|
5158
|
+
sources: z177.array(DTODataSource)
|
|
5156
5159
|
});
|
|
5157
|
-
var DTODataSourceCreationResponse =
|
|
5160
|
+
var DTODataSourceCreationResponse = z177.object({
|
|
5158
5161
|
source: DTODataSource
|
|
5159
5162
|
});
|
|
5160
5163
|
|
|
5161
5164
|
// src/api/dto/design-systems/design-system.ts
|
|
5162
|
-
import { z as
|
|
5165
|
+
import { z as z180 } from "zod";
|
|
5163
5166
|
|
|
5164
5167
|
// src/api/dto/design-systems/members.ts
|
|
5165
|
-
import { z as
|
|
5168
|
+
import { z as z179 } from "zod";
|
|
5166
5169
|
|
|
5167
5170
|
// src/api/dto/design-systems/role.ts
|
|
5168
|
-
import { z as
|
|
5169
|
-
var DTODesignSystemRole =
|
|
5171
|
+
import { z as z178 } from "zod";
|
|
5172
|
+
var DTODesignSystemRole = z178.enum([
|
|
5170
5173
|
WorkspaceRole.Admin,
|
|
5171
5174
|
WorkspaceRole.Contributor,
|
|
5172
5175
|
WorkspaceRole.Creator,
|
|
@@ -5174,29 +5177,29 @@ var DTODesignSystemRole = z177.enum([
|
|
|
5174
5177
|
]);
|
|
5175
5178
|
|
|
5176
5179
|
// src/api/dto/design-systems/members.ts
|
|
5177
|
-
var DTODesignSystemMember =
|
|
5178
|
-
userId:
|
|
5180
|
+
var DTODesignSystemMember = z179.object({
|
|
5181
|
+
userId: z179.string(),
|
|
5179
5182
|
/**
|
|
5180
5183
|
* Role that the member has in the design system,
|
|
5181
5184
|
* undefined if set to inherit from workspace
|
|
5182
5185
|
*/
|
|
5183
5186
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5184
5187
|
});
|
|
5185
|
-
var DTODesignSystemInvitation =
|
|
5186
|
-
id:
|
|
5187
|
-
workspaceInvitationId:
|
|
5188
|
+
var DTODesignSystemInvitation = z179.object({
|
|
5189
|
+
id: z179.string(),
|
|
5190
|
+
workspaceInvitationId: z179.string(),
|
|
5188
5191
|
/**
|
|
5189
5192
|
* Role that the invitation has in the design system,
|
|
5190
5193
|
* undefined if set to inherit from workspace
|
|
5191
5194
|
*/
|
|
5192
5195
|
designSystemRole: DTODesignSystemRole.optional()
|
|
5193
5196
|
});
|
|
5194
|
-
var DTODesignSystemMemberListResponse =
|
|
5197
|
+
var DTODesignSystemMemberListResponse = z179.object({
|
|
5195
5198
|
members: DTODesignSystemMember.array(),
|
|
5196
5199
|
invitations: DTODesignSystemInvitation.array()
|
|
5197
5200
|
});
|
|
5198
|
-
var DTODesignSystemMembersUpdateResponse =
|
|
5199
|
-
ok:
|
|
5201
|
+
var DTODesignSystemMembersUpdateResponse = z179.object({
|
|
5202
|
+
ok: z179.literal(true)
|
|
5200
5203
|
});
|
|
5201
5204
|
var DTODesignSystemMembersUpdatePayload = DesignSystemMembershipUpdates;
|
|
5202
5205
|
|
|
@@ -5207,14 +5210,14 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5207
5210
|
docExporterId: true
|
|
5208
5211
|
}).extend({
|
|
5209
5212
|
meta: ObjectMeta,
|
|
5210
|
-
docExporterId:
|
|
5211
|
-
sources:
|
|
5212
|
-
isPublic:
|
|
5213
|
+
docExporterId: z180.string(),
|
|
5214
|
+
sources: z180.array(z180.any()),
|
|
5215
|
+
isPublic: z180.literal(true),
|
|
5213
5216
|
/**
|
|
5214
5217
|
* Whether or not user who is requesting the design system
|
|
5215
5218
|
* has access to the design system's contents.
|
|
5216
5219
|
*/
|
|
5217
|
-
isAvailableToUser:
|
|
5220
|
+
isAvailableToUser: z180.boolean(),
|
|
5218
5221
|
/**
|
|
5219
5222
|
* @deprecated
|
|
5220
5223
|
*/
|
|
@@ -5225,17 +5228,17 @@ var DTODesignSystem = DesignSystem.omit({
|
|
|
5225
5228
|
*/
|
|
5226
5229
|
effectiveRole: DTODesignSystemRole.optional()
|
|
5227
5230
|
});
|
|
5228
|
-
var DTODesignSystemResponse =
|
|
5231
|
+
var DTODesignSystemResponse = z180.object({
|
|
5229
5232
|
designSystem: DTODesignSystem
|
|
5230
5233
|
});
|
|
5231
|
-
var DTODesignSystemsListResponse =
|
|
5234
|
+
var DTODesignSystemsListResponse = z180.object({
|
|
5232
5235
|
designSystems: DTODesignSystem.array()
|
|
5233
5236
|
});
|
|
5234
|
-
var DTODesignSystemCreateInput =
|
|
5235
|
-
workspaceId:
|
|
5237
|
+
var DTODesignSystemCreateInput = z180.object({
|
|
5238
|
+
workspaceId: z180.string(),
|
|
5236
5239
|
meta: ObjectMeta.optional(),
|
|
5237
|
-
name:
|
|
5238
|
-
description:
|
|
5240
|
+
name: z180.string().min(2).max(64).optional(),
|
|
5241
|
+
description: z180.string().max(1024).optional(),
|
|
5239
5242
|
accessMode: DesignSystemAccessMode.optional(),
|
|
5240
5243
|
invites: DTODesignSystemMembersUpdatePayload.pick({
|
|
5241
5244
|
usersToInvite: true,
|
|
@@ -5245,62 +5248,62 @@ var DTODesignSystemCreateInput = z179.object({
|
|
|
5245
5248
|
});
|
|
5246
5249
|
|
|
5247
5250
|
// src/api/dto/design-systems/elements-diff.ts
|
|
5248
|
-
import { z as
|
|
5249
|
-
var DTODiffCountBase =
|
|
5250
|
-
created:
|
|
5251
|
-
updated:
|
|
5252
|
-
deleted:
|
|
5251
|
+
import { z as z181 } from "zod";
|
|
5252
|
+
var DTODiffCountBase = z181.object({
|
|
5253
|
+
created: z181.number(),
|
|
5254
|
+
updated: z181.number(),
|
|
5255
|
+
deleted: z181.number()
|
|
5253
5256
|
});
|
|
5254
|
-
var DTODesignElementsDataDiffResponse =
|
|
5257
|
+
var DTODesignElementsDataDiffResponse = z181.object({
|
|
5255
5258
|
tokens: DTODiffCountBase,
|
|
5256
5259
|
assets: DTODiffCountBase
|
|
5257
5260
|
});
|
|
5258
5261
|
|
|
5259
5262
|
// src/api/dto/design-systems/exporter-property.ts
|
|
5260
|
-
import { z as
|
|
5261
|
-
var DTOExporterProperty =
|
|
5262
|
-
var DTOExporterPropertyListResponse =
|
|
5263
|
+
import { z as z182 } from "zod";
|
|
5264
|
+
var DTOExporterProperty = z182.any({});
|
|
5265
|
+
var DTOExporterPropertyListResponse = z182.object({ items: z182.array(DTOExporterProperty) });
|
|
5263
5266
|
|
|
5264
5267
|
// src/api/dto/design-systems/stats.ts
|
|
5265
|
-
import { z as
|
|
5266
|
-
var DTODesignSystemVersionStats =
|
|
5267
|
-
tokens:
|
|
5268
|
-
designSystemComponents:
|
|
5269
|
-
assets:
|
|
5270
|
-
documentationPages:
|
|
5268
|
+
import { z as z183 } from "zod";
|
|
5269
|
+
var DTODesignSystemVersionStats = z183.object({
|
|
5270
|
+
tokens: z183.number(),
|
|
5271
|
+
designSystemComponents: z183.number(),
|
|
5272
|
+
assets: z183.number(),
|
|
5273
|
+
documentationPages: z183.number()
|
|
5271
5274
|
});
|
|
5272
|
-
var DTODesignSystemVersionStatsQuery =
|
|
5273
|
-
brandId:
|
|
5275
|
+
var DTODesignSystemVersionStatsQuery = z183.object({
|
|
5276
|
+
brandId: z183.string().optional()
|
|
5274
5277
|
});
|
|
5275
5278
|
|
|
5276
5279
|
// src/api/dto/design-systems/version.ts
|
|
5277
|
-
import { z as
|
|
5280
|
+
import { z as z195 } from "zod";
|
|
5278
5281
|
|
|
5279
5282
|
// src/api/payloads/design-systems/brand.ts
|
|
5280
|
-
import { z as
|
|
5281
|
-
var DTOCreateBrandInput =
|
|
5282
|
-
persistentId:
|
|
5283
|
-
meta:
|
|
5284
|
-
name:
|
|
5285
|
-
description:
|
|
5283
|
+
import { z as z184 } from "zod";
|
|
5284
|
+
var DTOCreateBrandInput = z184.object({
|
|
5285
|
+
persistentId: z184.string().uuid(),
|
|
5286
|
+
meta: z184.object({
|
|
5287
|
+
name: z184.string(),
|
|
5288
|
+
description: z184.string()
|
|
5286
5289
|
})
|
|
5287
5290
|
});
|
|
5288
5291
|
|
|
5289
5292
|
// src/api/payloads/design-systems/theme.ts
|
|
5290
|
-
import { z as
|
|
5291
|
-
var DTOCreateThemeInput =
|
|
5293
|
+
import { z as z185 } from "zod";
|
|
5294
|
+
var DTOCreateThemeInput = z185.object({
|
|
5292
5295
|
meta: ObjectMeta,
|
|
5293
|
-
persistentId:
|
|
5294
|
-
designSystemVersionId:
|
|
5295
|
-
brandId:
|
|
5296
|
-
codeName:
|
|
5297
|
-
version:
|
|
5298
|
-
overrides:
|
|
5296
|
+
persistentId: z185.string(),
|
|
5297
|
+
designSystemVersionId: z185.string(),
|
|
5298
|
+
brandId: z185.string(),
|
|
5299
|
+
codeName: z185.string(),
|
|
5300
|
+
version: z185.string().optional(),
|
|
5301
|
+
overrides: z185.array(z185.any())
|
|
5299
5302
|
// TODO Add actual overrides.
|
|
5300
5303
|
});
|
|
5301
5304
|
|
|
5302
5305
|
// src/api/payloads/design-systems/update-design-system.ts
|
|
5303
|
-
import { z as
|
|
5306
|
+
import { z as z186 } from "zod";
|
|
5304
5307
|
var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
5305
5308
|
id: true,
|
|
5306
5309
|
workspaceId: true,
|
|
@@ -5312,40 +5315,40 @@ var DTODesignSystemUpdateInput = DesignSystem.partial().omit({
|
|
|
5312
5315
|
}).extend({
|
|
5313
5316
|
meta: ObjectMeta.partial().optional()
|
|
5314
5317
|
});
|
|
5315
|
-
var DTODesignSystemUpdateAccessModeInput =
|
|
5318
|
+
var DTODesignSystemUpdateAccessModeInput = z186.object({
|
|
5316
5319
|
accessMode: DesignSystemAccessMode,
|
|
5317
|
-
retain:
|
|
5318
|
-
userIds:
|
|
5319
|
-
inviteIds:
|
|
5320
|
+
retain: z186.object({
|
|
5321
|
+
userIds: z186.string().array(),
|
|
5322
|
+
inviteIds: z186.string().array()
|
|
5320
5323
|
}).optional()
|
|
5321
5324
|
});
|
|
5322
5325
|
|
|
5323
5326
|
// src/api/payloads/design-systems/version.ts
|
|
5324
|
-
import { z as
|
|
5325
|
-
var ObjectMeta2 =
|
|
5326
|
-
name:
|
|
5327
|
-
description:
|
|
5327
|
+
import { z as z187 } from "zod";
|
|
5328
|
+
var ObjectMeta2 = z187.object({
|
|
5329
|
+
name: z187.string().max(150).optional(),
|
|
5330
|
+
description: z187.string().max(2e3).optional()
|
|
5328
5331
|
});
|
|
5329
5332
|
function validateDesignSystemVersion(version) {
|
|
5330
5333
|
const urlCompliantRegex = /^[a-zA-Z0-9+.-]+$/;
|
|
5331
5334
|
return urlCompliantRegex.test(version);
|
|
5332
5335
|
}
|
|
5333
|
-
var DTOCreateVersionInput =
|
|
5336
|
+
var DTOCreateVersionInput = z187.object({
|
|
5334
5337
|
meta: ObjectMeta2,
|
|
5335
|
-
version:
|
|
5338
|
+
version: z187.string().refine(validateDesignSystemVersion, {
|
|
5336
5339
|
message: "Invalid semantic versioning format"
|
|
5337
5340
|
}),
|
|
5338
|
-
changeLog:
|
|
5341
|
+
changeLog: z187.string().optional()
|
|
5339
5342
|
});
|
|
5340
|
-
var DTOUpdateVersionInput =
|
|
5343
|
+
var DTOUpdateVersionInput = z187.object({
|
|
5341
5344
|
meta: ObjectMeta2,
|
|
5342
|
-
version:
|
|
5345
|
+
version: z187.string(),
|
|
5343
5346
|
// required for PUT, but not editable
|
|
5344
|
-
changeLog:
|
|
5347
|
+
changeLog: z187.string()
|
|
5345
5348
|
});
|
|
5346
5349
|
|
|
5347
5350
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5348
|
-
import { z as
|
|
5351
|
+
import { z as z188 } from "zod";
|
|
5349
5352
|
|
|
5350
5353
|
// src/api/dto/documentation/block-definition.ts
|
|
5351
5354
|
var DTOPageBlockDefinitionBehavior = PageBlockDefinitionBehavior;
|
|
@@ -5357,60 +5360,60 @@ var DTOPageBlockColorV2 = PageBlockColorV2;
|
|
|
5357
5360
|
var DTOPageBlockDefinition = PageBlockDefinition;
|
|
5358
5361
|
|
|
5359
5362
|
// src/api/payloads/documentation/block-definitions.ts
|
|
5360
|
-
var DTOGetBlockDefinitionsOutput =
|
|
5361
|
-
definitions:
|
|
5363
|
+
var DTOGetBlockDefinitionsOutput = z188.object({
|
|
5364
|
+
definitions: z188.array(DTOPageBlockDefinition)
|
|
5362
5365
|
});
|
|
5363
5366
|
|
|
5364
5367
|
// src/api/payloads/documentation/design-data-doc-diff.ts
|
|
5365
|
-
import { z as
|
|
5366
|
-
var DTODocumentationPublishTypeQueryParams =
|
|
5367
|
-
environment:
|
|
5368
|
+
import { z as z189 } from "zod";
|
|
5369
|
+
var DTODocumentationPublishTypeQueryParams = z189.object({
|
|
5370
|
+
environment: z189.enum(["Live", "Preview"])
|
|
5368
5371
|
});
|
|
5369
5372
|
|
|
5370
5373
|
// src/api/payloads/export/pipeline.ts
|
|
5371
|
-
import { z as
|
|
5372
|
-
var DTOPipelineCreateBody =
|
|
5373
|
-
name:
|
|
5374
|
-
exporterId:
|
|
5375
|
-
designSystemId:
|
|
5376
|
-
isEnabled:
|
|
5374
|
+
import { z as z190 } from "zod";
|
|
5375
|
+
var DTOPipelineCreateBody = z190.object({
|
|
5376
|
+
name: z190.string(),
|
|
5377
|
+
exporterId: z190.string(),
|
|
5378
|
+
designSystemId: z190.string(),
|
|
5379
|
+
isEnabled: z190.boolean(),
|
|
5377
5380
|
eventType: PipelineEventType,
|
|
5378
|
-
brandPersistentId:
|
|
5379
|
-
themePersistentId:
|
|
5380
|
-
themePersistentIds:
|
|
5381
|
+
brandPersistentId: z190.string().optional(),
|
|
5382
|
+
themePersistentId: z190.string().optional(),
|
|
5383
|
+
themePersistentIds: z190.string().array().optional(),
|
|
5381
5384
|
destination: PipelineDestinationType.optional(),
|
|
5382
5385
|
gitQuery: GitObjectsQuery,
|
|
5383
|
-
destinations:
|
|
5386
|
+
destinations: z190.object({
|
|
5384
5387
|
s3: ExporterDestinationS3.nullish(),
|
|
5385
5388
|
azure: ExporterDestinationAzure.nullish(),
|
|
5386
5389
|
bitbucket: ExporterDestinationBitbucket.nullish(),
|
|
5387
5390
|
github: ExporterDestinationGithub.nullish(),
|
|
5388
5391
|
gitlab: ExporterDestinationGitlab.nullish(),
|
|
5389
5392
|
documentation: ExporterDestinationDocs.nullish(),
|
|
5390
|
-
webhookUrl:
|
|
5393
|
+
webhookUrl: z190.string().nullish()
|
|
5391
5394
|
})
|
|
5392
5395
|
});
|
|
5393
5396
|
var DTOPipelineUpdateBody = DTOPipelineCreateBody.extend({
|
|
5394
|
-
id:
|
|
5397
|
+
id: z190.string()
|
|
5395
5398
|
});
|
|
5396
|
-
var DTOPipelineTriggerBody =
|
|
5397
|
-
designSystemVersionId:
|
|
5399
|
+
var DTOPipelineTriggerBody = z190.object({
|
|
5400
|
+
designSystemVersionId: z190.string()
|
|
5398
5401
|
});
|
|
5399
5402
|
|
|
5400
5403
|
// src/api/payloads/liveblocks/auth.ts
|
|
5401
|
-
import { z as
|
|
5402
|
-
var DTOLiveblocksAuthRequest =
|
|
5403
|
-
room:
|
|
5404
|
+
import { z as z191 } from "zod";
|
|
5405
|
+
var DTOLiveblocksAuthRequest = z191.object({
|
|
5406
|
+
room: z191.string().optional()
|
|
5404
5407
|
});
|
|
5405
5408
|
|
|
5406
5409
|
// src/api/payloads/users/notifications/notification-settings.ts
|
|
5407
|
-
import { z as
|
|
5408
|
-
var DTOUpdateUserNotificationSettingsPayload =
|
|
5410
|
+
import { z as z192 } from "zod";
|
|
5411
|
+
var DTOUpdateUserNotificationSettingsPayload = z192.object({
|
|
5409
5412
|
notificationSettings: UserNotificationSettings
|
|
5410
5413
|
});
|
|
5411
|
-
var DTOUserNotificationSettingsResponse =
|
|
5412
|
-
userId:
|
|
5413
|
-
workspaceId:
|
|
5414
|
+
var DTOUserNotificationSettingsResponse = z192.object({
|
|
5415
|
+
userId: z192.string(),
|
|
5416
|
+
workspaceId: z192.string(),
|
|
5414
5417
|
notificationSettings: UserNotificationSettings
|
|
5415
5418
|
});
|
|
5416
5419
|
|
|
@@ -5418,7 +5421,7 @@ var DTOUserNotificationSettingsResponse = z191.object({
|
|
|
5418
5421
|
var DTOUserProfileUpdatePayload = UserProfileUpdate;
|
|
5419
5422
|
|
|
5420
5423
|
// src/api/payloads/workspaces/workspace-configuration.ts
|
|
5421
|
-
import { z as
|
|
5424
|
+
import { z as z193 } from "zod";
|
|
5422
5425
|
var prohibitedSsoKeys = ["providerId", "metadataXml", "emailDomains"];
|
|
5423
5426
|
function validateSsoPayload(ssoPayload) {
|
|
5424
5427
|
const keys = [];
|
|
@@ -5441,21 +5444,21 @@ function validateSsoPayload(ssoPayload) {
|
|
|
5441
5444
|
keys
|
|
5442
5445
|
};
|
|
5443
5446
|
}
|
|
5444
|
-
var NpmRegistryInput =
|
|
5445
|
-
enabledScopes:
|
|
5446
|
-
customRegistryUrl:
|
|
5447
|
-
bypassProxy:
|
|
5448
|
-
npmProxyRegistryConfigId:
|
|
5449
|
-
npmProxyVersion:
|
|
5450
|
-
registryType:
|
|
5451
|
-
authType:
|
|
5452
|
-
authHeaderName:
|
|
5453
|
-
authHeaderValue:
|
|
5454
|
-
accessToken:
|
|
5455
|
-
username:
|
|
5456
|
-
password:
|
|
5457
|
-
});
|
|
5458
|
-
var WorkspaceConfigurationPayload =
|
|
5447
|
+
var NpmRegistryInput = z193.object({
|
|
5448
|
+
enabledScopes: z193.array(z193.string()),
|
|
5449
|
+
customRegistryUrl: z193.string().optional(),
|
|
5450
|
+
bypassProxy: z193.boolean().optional(),
|
|
5451
|
+
npmProxyRegistryConfigId: z193.string().optional(),
|
|
5452
|
+
npmProxyVersion: z193.number().optional(),
|
|
5453
|
+
registryType: z193.string(),
|
|
5454
|
+
authType: z193.string(),
|
|
5455
|
+
authHeaderName: z193.string(),
|
|
5456
|
+
authHeaderValue: z193.string(),
|
|
5457
|
+
accessToken: z193.string(),
|
|
5458
|
+
username: z193.string(),
|
|
5459
|
+
password: z193.string()
|
|
5460
|
+
});
|
|
5461
|
+
var WorkspaceConfigurationPayload = z193.object({
|
|
5459
5462
|
ipWhitelist: WorkspaceIpSettings.partial().optional(),
|
|
5460
5463
|
sso: SsoProvider.partial().optional(),
|
|
5461
5464
|
npmRegistrySettings: NpmRegistryInput.partial().optional(),
|
|
@@ -5463,211 +5466,211 @@ var WorkspaceConfigurationPayload = z192.object({
|
|
|
5463
5466
|
});
|
|
5464
5467
|
|
|
5465
5468
|
// src/api/payloads/workspaces/workspace-integrations.ts
|
|
5466
|
-
import { z as
|
|
5467
|
-
var DTOWorkspaceIntegrationOauthInput =
|
|
5469
|
+
import { z as z194 } from "zod";
|
|
5470
|
+
var DTOWorkspaceIntegrationOauthInput = z194.object({
|
|
5468
5471
|
type: IntegrationType
|
|
5469
5472
|
});
|
|
5470
|
-
var DTOWorkspaceIntegrationPATInput =
|
|
5471
|
-
userId:
|
|
5473
|
+
var DTOWorkspaceIntegrationPATInput = z194.object({
|
|
5474
|
+
userId: z194.string(),
|
|
5472
5475
|
type: IntegrationType,
|
|
5473
5476
|
token: IntegrationToken
|
|
5474
5477
|
});
|
|
5475
|
-
var DTOWorkspaceIntegrationGetGitObjectsInput =
|
|
5476
|
-
organization:
|
|
5478
|
+
var DTOWorkspaceIntegrationGetGitObjectsInput = z194.object({
|
|
5479
|
+
organization: z194.string().optional(),
|
|
5477
5480
|
// Azure Organization | Bitbucket Workspace slug | Gitlab Group and Sub-Groups | Github Account (User or Organization)
|
|
5478
|
-
project:
|
|
5481
|
+
project: z194.string().optional(),
|
|
5479
5482
|
// Only for Bitbucket and Azure
|
|
5480
|
-
repository:
|
|
5483
|
+
repository: z194.string().optional(),
|
|
5481
5484
|
// For all providers. Pay attention for Gitlab, they call repositories "projects".
|
|
5482
|
-
branch:
|
|
5485
|
+
branch: z194.string().optional(),
|
|
5483
5486
|
// For all providers, useful for PR creations.
|
|
5484
|
-
user:
|
|
5487
|
+
user: z194.string().optional()
|
|
5485
5488
|
// Only for Gitlab User Repositories
|
|
5486
5489
|
});
|
|
5487
5490
|
|
|
5488
5491
|
// src/api/dto/design-systems/version.ts
|
|
5489
|
-
var DTODesignSystemVersion =
|
|
5490
|
-
id:
|
|
5491
|
-
createdAt:
|
|
5492
|
+
var DTODesignSystemVersion = z195.object({
|
|
5493
|
+
id: z195.string(),
|
|
5494
|
+
createdAt: z195.coerce.date(),
|
|
5492
5495
|
meta: ObjectMeta,
|
|
5493
|
-
version:
|
|
5494
|
-
isReadonly:
|
|
5495
|
-
changeLog:
|
|
5496
|
-
designSystemId:
|
|
5496
|
+
version: z195.string(),
|
|
5497
|
+
isReadonly: z195.boolean(),
|
|
5498
|
+
changeLog: z195.string(),
|
|
5499
|
+
designSystemId: z195.string()
|
|
5497
5500
|
});
|
|
5498
|
-
var DTODesignSystemVersionsListResponse =
|
|
5499
|
-
designSystemVersions:
|
|
5501
|
+
var DTODesignSystemVersionsListResponse = z195.object({
|
|
5502
|
+
designSystemVersions: z195.array(DTODesignSystemVersion)
|
|
5500
5503
|
});
|
|
5501
|
-
var DTODesignSystemVersionGetResponse =
|
|
5504
|
+
var DTODesignSystemVersionGetResponse = z195.object({
|
|
5502
5505
|
designSystemVersion: DTODesignSystemVersion
|
|
5503
5506
|
});
|
|
5504
|
-
var DTODesignSystemVersionCreationResponse =
|
|
5507
|
+
var DTODesignSystemVersionCreationResponse = z195.object({
|
|
5505
5508
|
meta: ObjectMeta,
|
|
5506
|
-
version:
|
|
5507
|
-
changeLog:
|
|
5508
|
-
isReadOnly:
|
|
5509
|
-
designSystemId:
|
|
5510
|
-
jobId:
|
|
5511
|
-
});
|
|
5512
|
-
var VersionSQSPayload =
|
|
5513
|
-
jobId:
|
|
5514
|
-
designSystemId:
|
|
5509
|
+
version: z195.string(),
|
|
5510
|
+
changeLog: z195.string(),
|
|
5511
|
+
isReadOnly: z195.boolean(),
|
|
5512
|
+
designSystemId: z195.string(),
|
|
5513
|
+
jobId: z195.string()
|
|
5514
|
+
});
|
|
5515
|
+
var VersionSQSPayload = z195.object({
|
|
5516
|
+
jobId: z195.string(),
|
|
5517
|
+
designSystemId: z195.string(),
|
|
5515
5518
|
input: DTOCreateVersionInput
|
|
5516
5519
|
});
|
|
5517
|
-
var DTODesignSystemVersionJobsResponse =
|
|
5518
|
-
jobs:
|
|
5520
|
+
var DTODesignSystemVersionJobsResponse = z195.object({
|
|
5521
|
+
jobs: z195.array(VersionCreationJob)
|
|
5519
5522
|
});
|
|
5520
|
-
var DTODesignSystemVersionJobStatusResponse =
|
|
5523
|
+
var DTODesignSystemVersionJobStatusResponse = z195.object({
|
|
5521
5524
|
job: VersionCreationJob
|
|
5522
5525
|
});
|
|
5523
5526
|
|
|
5524
5527
|
// src/api/dto/design-systems/view.ts
|
|
5525
|
-
import { z as
|
|
5526
|
-
var DTOElementViewColumnSharedAttributes =
|
|
5527
|
-
id:
|
|
5528
|
-
persistentId:
|
|
5529
|
-
width:
|
|
5528
|
+
import { z as z196 } from "zod";
|
|
5529
|
+
var DTOElementViewColumnSharedAttributes = z196.object({
|
|
5530
|
+
id: z196.string(),
|
|
5531
|
+
persistentId: z196.string(),
|
|
5532
|
+
width: z196.number()
|
|
5530
5533
|
});
|
|
5531
5534
|
var DTOElementViewBasePropertyColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5532
|
-
type:
|
|
5535
|
+
type: z196.literal("BaseProperty"),
|
|
5533
5536
|
basePropertyType: ElementViewBaseColumnType
|
|
5534
5537
|
});
|
|
5535
5538
|
var DTOElementViewPropertyDefinitionColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5536
|
-
type:
|
|
5537
|
-
propertyDefinitionId:
|
|
5539
|
+
type: z196.literal("PropertyDefinition"),
|
|
5540
|
+
propertyDefinitionId: z196.string()
|
|
5538
5541
|
});
|
|
5539
5542
|
var DTOElementViewThemeColumn = DTOElementViewColumnSharedAttributes.extend({
|
|
5540
|
-
type:
|
|
5541
|
-
themeId:
|
|
5543
|
+
type: z196.literal("Theme"),
|
|
5544
|
+
themeId: z196.string()
|
|
5542
5545
|
});
|
|
5543
|
-
var DTOElementViewColumn =
|
|
5546
|
+
var DTOElementViewColumn = z196.discriminatedUnion("type", [
|
|
5544
5547
|
DTOElementViewBasePropertyColumn,
|
|
5545
5548
|
DTOElementViewPropertyDefinitionColumn,
|
|
5546
5549
|
DTOElementViewThemeColumn
|
|
5547
5550
|
]);
|
|
5548
|
-
var DTOElementView =
|
|
5551
|
+
var DTOElementView = z196.object({
|
|
5549
5552
|
meta: ObjectMeta,
|
|
5550
|
-
persistentId:
|
|
5553
|
+
persistentId: z196.string(),
|
|
5551
5554
|
targetElementType: ElementPropertyTargetType,
|
|
5552
|
-
id:
|
|
5553
|
-
isDefault:
|
|
5554
|
-
columns:
|
|
5555
|
+
id: z196.string(),
|
|
5556
|
+
isDefault: z196.boolean(),
|
|
5557
|
+
columns: z196.array(DTOElementViewColumn)
|
|
5555
5558
|
});
|
|
5556
|
-
var DTOElementViewsListResponse =
|
|
5557
|
-
elementDataViews:
|
|
5559
|
+
var DTOElementViewsListResponse = z196.object({
|
|
5560
|
+
elementDataViews: z196.array(DTOElementView)
|
|
5558
5561
|
});
|
|
5559
5562
|
|
|
5560
5563
|
// src/api/dto/workspaces/git.ts
|
|
5561
|
-
import { z as
|
|
5562
|
-
var DTOGitOrganization =
|
|
5563
|
-
id:
|
|
5564
|
-
name:
|
|
5565
|
-
url:
|
|
5566
|
-
slug:
|
|
5564
|
+
import { z as z197 } from "zod";
|
|
5565
|
+
var DTOGitOrganization = z197.object({
|
|
5566
|
+
id: z197.string(),
|
|
5567
|
+
name: z197.string(),
|
|
5568
|
+
url: z197.string(),
|
|
5569
|
+
slug: z197.string()
|
|
5567
5570
|
});
|
|
5568
|
-
var DTOGitProject =
|
|
5569
|
-
id:
|
|
5570
|
-
name:
|
|
5571
|
-
url:
|
|
5572
|
-
slug:
|
|
5571
|
+
var DTOGitProject = z197.object({
|
|
5572
|
+
id: z197.string(),
|
|
5573
|
+
name: z197.string(),
|
|
5574
|
+
url: z197.string(),
|
|
5575
|
+
slug: z197.string()
|
|
5573
5576
|
});
|
|
5574
|
-
var DTOGitRepository =
|
|
5575
|
-
id:
|
|
5576
|
-
name:
|
|
5577
|
-
url:
|
|
5578
|
-
slug:
|
|
5579
|
-
defaultBranch:
|
|
5577
|
+
var DTOGitRepository = z197.object({
|
|
5578
|
+
id: z197.string(),
|
|
5579
|
+
name: z197.string(),
|
|
5580
|
+
url: z197.string(),
|
|
5581
|
+
slug: z197.string(),
|
|
5582
|
+
defaultBranch: z197.string().optional()
|
|
5580
5583
|
});
|
|
5581
|
-
var DTOGitBranch =
|
|
5582
|
-
name:
|
|
5583
|
-
lastCommitId:
|
|
5584
|
+
var DTOGitBranch = z197.object({
|
|
5585
|
+
name: z197.string(),
|
|
5586
|
+
lastCommitId: z197.string()
|
|
5584
5587
|
});
|
|
5585
5588
|
|
|
5586
5589
|
// src/api/dto/workspaces/integrations.ts
|
|
5587
|
-
import { z as
|
|
5590
|
+
import { z as z198 } from "zod";
|
|
5588
5591
|
var DTOIntegrationCredentials = IntegrationCredentials.omit({
|
|
5589
5592
|
accessToken: true,
|
|
5590
5593
|
refreshToken: true
|
|
5591
5594
|
});
|
|
5592
|
-
var DTOIntegration =
|
|
5593
|
-
id:
|
|
5594
|
-
workspaceId:
|
|
5595
|
+
var DTOIntegration = z198.object({
|
|
5596
|
+
id: z198.string(),
|
|
5597
|
+
workspaceId: z198.string(),
|
|
5595
5598
|
type: ExtendedIntegrationType,
|
|
5596
|
-
createdAt:
|
|
5597
|
-
integrationCredentials:
|
|
5598
|
-
integrationDesignSystems:
|
|
5599
|
+
createdAt: z198.coerce.date(),
|
|
5600
|
+
integrationCredentials: z198.array(DTOIntegrationCredentials).optional(),
|
|
5601
|
+
integrationDesignSystems: z198.array(IntegrationDesignSystem).optional()
|
|
5599
5602
|
});
|
|
5600
|
-
var DTOIntegrationOAuthGetResponse =
|
|
5601
|
-
url:
|
|
5603
|
+
var DTOIntegrationOAuthGetResponse = z198.object({
|
|
5604
|
+
url: z198.string()
|
|
5602
5605
|
});
|
|
5603
|
-
var DTOIntegrationPostResponse =
|
|
5606
|
+
var DTOIntegrationPostResponse = z198.object({
|
|
5604
5607
|
integration: DTOIntegration
|
|
5605
5608
|
});
|
|
5606
|
-
var DTOIntegrationsGetListResponse =
|
|
5609
|
+
var DTOIntegrationsGetListResponse = z198.object({
|
|
5607
5610
|
integrations: DTOIntegration.array()
|
|
5608
5611
|
});
|
|
5609
5612
|
|
|
5610
5613
|
// src/api/dto/workspaces/invitations.ts
|
|
5611
|
-
import { z as
|
|
5612
|
-
var DTOWorkspaceInvitationInput =
|
|
5613
|
-
email:
|
|
5614
|
+
import { z as z199 } from "zod";
|
|
5615
|
+
var DTOWorkspaceInvitationInput = z199.object({
|
|
5616
|
+
email: z199.string().email(),
|
|
5614
5617
|
role: WorkspaceRoleSchema
|
|
5615
5618
|
});
|
|
5616
|
-
var DTOWorkspaceInvitationsListInput =
|
|
5619
|
+
var DTOWorkspaceInvitationsListInput = z199.object({
|
|
5617
5620
|
invites: DTOWorkspaceInvitationInput.array().max(100),
|
|
5618
|
-
designSystemId:
|
|
5621
|
+
designSystemId: z199.string().optional()
|
|
5619
5622
|
});
|
|
5620
|
-
var DTOWorkspaceInvitationsResponse =
|
|
5623
|
+
var DTOWorkspaceInvitationsResponse = z199.object({
|
|
5621
5624
|
invitations: WorkspaceInvitation.array()
|
|
5622
5625
|
});
|
|
5623
5626
|
|
|
5624
5627
|
// src/api/dto/workspaces/membership.ts
|
|
5625
|
-
import { z as
|
|
5628
|
+
import { z as z202 } from "zod";
|
|
5626
5629
|
|
|
5627
5630
|
// src/api/dto/workspaces/workspace.ts
|
|
5628
|
-
import { z as
|
|
5631
|
+
import { z as z201 } from "zod";
|
|
5629
5632
|
|
|
5630
5633
|
// src/api/dto/workspaces/npm-registry.ts
|
|
5631
|
-
import { z as
|
|
5634
|
+
import { z as z200 } from "zod";
|
|
5632
5635
|
var DTONpmRegistryConfigConstants = {
|
|
5633
5636
|
passwordPlaceholder: "redacted"
|
|
5634
5637
|
};
|
|
5635
|
-
var DTONpmRegistryConfig =
|
|
5638
|
+
var DTONpmRegistryConfig = z200.object({
|
|
5636
5639
|
// Registry basic configuration
|
|
5637
5640
|
registryType: NpmRegistryType,
|
|
5638
|
-
registryUrl:
|
|
5639
|
-
customRegistryUrl:
|
|
5641
|
+
registryUrl: z200.string(),
|
|
5642
|
+
customRegistryUrl: z200.string().optional(),
|
|
5640
5643
|
// URL of Supernova NPM packages proxy
|
|
5641
|
-
proxyUrl:
|
|
5644
|
+
proxyUrl: z200.string(),
|
|
5642
5645
|
// Auth configuration
|
|
5643
5646
|
authType: NpmRegistryAuthType,
|
|
5644
|
-
accessToken:
|
|
5645
|
-
username:
|
|
5646
|
-
password:
|
|
5647
|
+
accessToken: z200.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5648
|
+
username: z200.string().optional(),
|
|
5649
|
+
password: z200.literal(DTONpmRegistryConfigConstants.passwordPlaceholder).optional(),
|
|
5647
5650
|
// NPM package scopes for whih the proxy should be enabled
|
|
5648
|
-
enabledScopes:
|
|
5651
|
+
enabledScopes: z200.array(z200.string()),
|
|
5649
5652
|
// True if client should bypass Supernova proxy and connect directly to the registry
|
|
5650
5653
|
// (e.g. when the NPM registry is behind a VPN or firewall which prevents Supernova from accessing it)
|
|
5651
|
-
bypassProxy:
|
|
5654
|
+
bypassProxy: z200.boolean()
|
|
5652
5655
|
});
|
|
5653
5656
|
|
|
5654
5657
|
// src/api/dto/workspaces/workspace.ts
|
|
5655
|
-
var DTOWorkspace =
|
|
5656
|
-
id:
|
|
5658
|
+
var DTOWorkspace = z201.object({
|
|
5659
|
+
id: z201.string(),
|
|
5657
5660
|
profile: WorkspaceProfile,
|
|
5658
5661
|
subscription: Subscription,
|
|
5659
5662
|
npmRegistry: DTONpmRegistryConfig.optional()
|
|
5660
5663
|
});
|
|
5661
|
-
var DTOWorkspaceCreateInput =
|
|
5662
|
-
name:
|
|
5664
|
+
var DTOWorkspaceCreateInput = z201.object({
|
|
5665
|
+
name: z201.string()
|
|
5663
5666
|
});
|
|
5664
|
-
var DTOWorkspaceResponse =
|
|
5667
|
+
var DTOWorkspaceResponse = z201.object({
|
|
5665
5668
|
workspace: DTOWorkspace
|
|
5666
5669
|
});
|
|
5667
5670
|
|
|
5668
5671
|
// src/api/dto/workspaces/membership.ts
|
|
5669
|
-
var DTOWorkspaceRole =
|
|
5670
|
-
var DTOUserWorkspaceMembership =
|
|
5672
|
+
var DTOWorkspaceRole = z202.enum(["Owner", "Admin", "Creator", "Viewer", "Billing", "Contributor"]);
|
|
5673
|
+
var DTOUserWorkspaceMembership = z202.object({
|
|
5671
5674
|
// Workspace the user is a member of
|
|
5672
5675
|
workspace: DTOWorkspace,
|
|
5673
5676
|
// Assigned role the user has in the workspace
|
|
@@ -5677,18 +5680,18 @@ var DTOUserWorkspaceMembership = z201.object({
|
|
|
5677
5680
|
// when a workspace's subscription is downgraded to free tier
|
|
5678
5681
|
effectiveRole: DTOWorkspaceRole
|
|
5679
5682
|
});
|
|
5680
|
-
var DTOUserWorkspaceMembershipsResponse =
|
|
5681
|
-
membership:
|
|
5683
|
+
var DTOUserWorkspaceMembershipsResponse = z202.object({
|
|
5684
|
+
membership: z202.array(DTOUserWorkspaceMembership)
|
|
5682
5685
|
});
|
|
5683
5686
|
|
|
5684
5687
|
// src/api/dto/bff/app-bootstrap-data.ts
|
|
5685
|
-
var DTOAppBootstrapDataQuery =
|
|
5686
|
-
preferredWorkspaceId:
|
|
5687
|
-
preferredDesignSystemId:
|
|
5688
|
-
preferredVersionId:
|
|
5689
|
-
preferredBrandId:
|
|
5688
|
+
var DTOAppBootstrapDataQuery = z203.object({
|
|
5689
|
+
preferredWorkspaceId: z203.string().optional(),
|
|
5690
|
+
preferredDesignSystemId: z203.string().optional(),
|
|
5691
|
+
preferredVersionId: z203.string().optional(),
|
|
5692
|
+
preferredBrandId: z203.string().optional()
|
|
5690
5693
|
});
|
|
5691
|
-
var DTOAppBootstrapDataResponse =
|
|
5694
|
+
var DTOAppBootstrapDataResponse = z203.object({
|
|
5692
5695
|
workspaceMembership: DTOUserWorkspaceMembership.optional(),
|
|
5693
5696
|
designSystem: DTODesignSystem.optional(),
|
|
5694
5697
|
version: DTODesignSystemVersion.optional(),
|
|
@@ -5696,37 +5699,37 @@ var DTOAppBootstrapDataResponse = z202.object({
|
|
|
5696
5699
|
});
|
|
5697
5700
|
|
|
5698
5701
|
// src/api/dto/collections/collection.ts
|
|
5699
|
-
import { z as
|
|
5700
|
-
var DTOTokenCollection =
|
|
5701
|
-
id:
|
|
5702
|
-
persistentId:
|
|
5703
|
-
designSystemVersionId:
|
|
5702
|
+
import { z as z204 } from "zod";
|
|
5703
|
+
var DTOTokenCollection = z204.object({
|
|
5704
|
+
id: z204.string(),
|
|
5705
|
+
persistentId: z204.string(),
|
|
5706
|
+
designSystemVersionId: z204.string(),
|
|
5704
5707
|
meta: ObjectMeta,
|
|
5705
|
-
createdAt:
|
|
5706
|
-
updatedAt:
|
|
5707
|
-
origin:
|
|
5708
|
-
id:
|
|
5709
|
-
sourceId:
|
|
5708
|
+
createdAt: z204.coerce.date(),
|
|
5709
|
+
updatedAt: z204.coerce.date(),
|
|
5710
|
+
origin: z204.object({
|
|
5711
|
+
id: z204.string(),
|
|
5712
|
+
sourceId: z204.string()
|
|
5710
5713
|
})
|
|
5711
5714
|
});
|
|
5712
|
-
var DTOTokenCollectionsListReponse =
|
|
5715
|
+
var DTOTokenCollectionsListReponse = z204.object({
|
|
5713
5716
|
collections: DTOTokenCollection.array()
|
|
5714
5717
|
});
|
|
5715
5718
|
|
|
5716
5719
|
// src/api/dto/documentation/anchor.ts
|
|
5717
|
-
import { z as
|
|
5720
|
+
import { z as z205 } from "zod";
|
|
5718
5721
|
var DTODocumentationPageAnchor = DocumentationPageAnchor;
|
|
5719
|
-
var DTOGetDocumentationPageAnchorsResponse =
|
|
5720
|
-
anchors:
|
|
5722
|
+
var DTOGetDocumentationPageAnchorsResponse = z205.object({
|
|
5723
|
+
anchors: z205.array(DTODocumentationPageAnchor)
|
|
5721
5724
|
});
|
|
5722
5725
|
|
|
5723
5726
|
// src/api/dto/documentation/approvals.ts
|
|
5724
|
-
import { z as
|
|
5727
|
+
import { z as z206 } from "zod";
|
|
5725
5728
|
var DTODocumentationPageApprovalState = DocumentationPageApproval;
|
|
5726
|
-
var DTODocumentationGroupApprovalState =
|
|
5727
|
-
persistentId:
|
|
5728
|
-
groupId:
|
|
5729
|
-
designSystemVersionId:
|
|
5729
|
+
var DTODocumentationGroupApprovalState = z206.object({
|
|
5730
|
+
persistentId: z206.string(),
|
|
5731
|
+
groupId: z206.string(),
|
|
5732
|
+
designSystemVersionId: z206.string(),
|
|
5730
5733
|
approvalState: DocumentationPageApprovalState
|
|
5731
5734
|
});
|
|
5732
5735
|
|
|
@@ -5734,68 +5737,68 @@ var DTODocumentationGroupApprovalState = z205.object({
|
|
|
5734
5737
|
var DTOPageBlockItemV2 = PageBlockItemV2;
|
|
5735
5738
|
|
|
5736
5739
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5737
|
-
import { z as
|
|
5740
|
+
import { z as z211 } from "zod";
|
|
5738
5741
|
|
|
5739
5742
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5740
|
-
import { z as
|
|
5743
|
+
import { z as z210 } from "zod";
|
|
5741
5744
|
|
|
5742
5745
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5743
|
-
import { z as
|
|
5746
|
+
import { z as z208 } from "zod";
|
|
5744
5747
|
|
|
5745
5748
|
// src/api/dto/elements/documentation/item-configuration-v2.ts
|
|
5746
|
-
import { z as
|
|
5749
|
+
import { z as z207 } from "zod";
|
|
5747
5750
|
var DTODocumentationItemHeaderV2 = DocumentationItemHeaderV2;
|
|
5748
|
-
var DTODocumentationItemConfigurationV2 =
|
|
5749
|
-
showSidebar:
|
|
5750
|
-
isPrivate:
|
|
5751
|
-
isHidden:
|
|
5751
|
+
var DTODocumentationItemConfigurationV2 = z207.object({
|
|
5752
|
+
showSidebar: z207.boolean(),
|
|
5753
|
+
isPrivate: z207.boolean(),
|
|
5754
|
+
isHidden: z207.boolean(),
|
|
5752
5755
|
header: DTODocumentationItemHeaderV2
|
|
5753
5756
|
});
|
|
5754
5757
|
|
|
5755
5758
|
// src/api/dto/elements/documentation/draft-state.ts
|
|
5756
|
-
var DTODocumentationDraftChangeType =
|
|
5757
|
-
var DTODocumentationDraftStateCreated =
|
|
5758
|
-
changeType:
|
|
5759
|
-
});
|
|
5760
|
-
var DTODocumentationDraftStateUpdated =
|
|
5761
|
-
changeType:
|
|
5762
|
-
changes:
|
|
5763
|
-
previousTitle:
|
|
5759
|
+
var DTODocumentationDraftChangeType = z208.enum(["Created", "Updated", "Deleted"]);
|
|
5760
|
+
var DTODocumentationDraftStateCreated = z208.object({
|
|
5761
|
+
changeType: z208.literal(DTODocumentationDraftChangeType.enum.Created)
|
|
5762
|
+
});
|
|
5763
|
+
var DTODocumentationDraftStateUpdated = z208.object({
|
|
5764
|
+
changeType: z208.literal(DTODocumentationDraftChangeType.enum.Updated),
|
|
5765
|
+
changes: z208.object({
|
|
5766
|
+
previousTitle: z208.string().optional(),
|
|
5764
5767
|
previousConfiguration: DTODocumentationItemConfigurationV2.optional(),
|
|
5765
|
-
previousContentHash:
|
|
5768
|
+
previousContentHash: z208.string().optional()
|
|
5766
5769
|
})
|
|
5767
5770
|
});
|
|
5768
|
-
var DTODocumentationDraftStateDeleted =
|
|
5769
|
-
changeType:
|
|
5770
|
-
deletedAt:
|
|
5771
|
-
deletedByUserId:
|
|
5771
|
+
var DTODocumentationDraftStateDeleted = z208.object({
|
|
5772
|
+
changeType: z208.literal(DTODocumentationDraftChangeType.enum.Deleted),
|
|
5773
|
+
deletedAt: z208.coerce.date(),
|
|
5774
|
+
deletedByUserId: z208.string()
|
|
5772
5775
|
});
|
|
5773
|
-
var DTODocumentationDraftState =
|
|
5776
|
+
var DTODocumentationDraftState = z208.discriminatedUnion("changeType", [
|
|
5774
5777
|
DTODocumentationDraftStateCreated,
|
|
5775
5778
|
DTODocumentationDraftStateUpdated,
|
|
5776
5779
|
DTODocumentationDraftStateDeleted
|
|
5777
5780
|
]);
|
|
5778
5781
|
|
|
5779
5782
|
// src/api/dto/elements/documentation/metadata.ts
|
|
5780
|
-
import { z as
|
|
5781
|
-
var DTODocumentationPublishMetadata =
|
|
5782
|
-
lastPublishedByUserId:
|
|
5783
|
-
lastPublishedAt:
|
|
5783
|
+
import { z as z209 } from "zod";
|
|
5784
|
+
var DTODocumentationPublishMetadata = z209.object({
|
|
5785
|
+
lastPublishedByUserId: z209.string(),
|
|
5786
|
+
lastPublishedAt: z209.coerce.date()
|
|
5784
5787
|
});
|
|
5785
5788
|
|
|
5786
5789
|
// src/api/dto/elements/documentation/page-v2.ts
|
|
5787
|
-
var DTODocumentationPageV2 =
|
|
5788
|
-
id:
|
|
5789
|
-
persistentId:
|
|
5790
|
-
designSystemVersionId:
|
|
5791
|
-
title:
|
|
5790
|
+
var DTODocumentationPageV2 = z210.object({
|
|
5791
|
+
id: z210.string(),
|
|
5792
|
+
persistentId: z210.string(),
|
|
5793
|
+
designSystemVersionId: z210.string(),
|
|
5794
|
+
title: z210.string(),
|
|
5792
5795
|
configuration: DTODocumentationItemConfigurationV2,
|
|
5793
|
-
shortPersistentId:
|
|
5794
|
-
slug:
|
|
5795
|
-
userSlug:
|
|
5796
|
-
createdAt:
|
|
5797
|
-
updatedAt:
|
|
5798
|
-
path:
|
|
5796
|
+
shortPersistentId: z210.string(),
|
|
5797
|
+
slug: z210.string().optional(),
|
|
5798
|
+
userSlug: z210.string().optional(),
|
|
5799
|
+
createdAt: z210.coerce.date(),
|
|
5800
|
+
updatedAt: z210.coerce.date(),
|
|
5801
|
+
path: z210.string(),
|
|
5799
5802
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
5800
5803
|
draftState: DTODocumentationDraftState.optional(),
|
|
5801
5804
|
/** Defined if a page was published at least once and contains metadata about last publish */
|
|
@@ -5803,197 +5806,197 @@ var DTODocumentationPageV2 = z209.object({
|
|
|
5803
5806
|
/** Defines the approval state of the documentation page */
|
|
5804
5807
|
approvalState: DTODocumentationPageApprovalState.optional(),
|
|
5805
5808
|
// Backward compatibility
|
|
5806
|
-
type:
|
|
5809
|
+
type: z210.literal("Page")
|
|
5807
5810
|
});
|
|
5808
|
-
var DTOCreateDocumentationPageInputV2 =
|
|
5811
|
+
var DTOCreateDocumentationPageInputV2 = z210.object({
|
|
5809
5812
|
// Identifier
|
|
5810
|
-
persistentId:
|
|
5813
|
+
persistentId: z210.string().uuid(),
|
|
5811
5814
|
// Page properties
|
|
5812
|
-
title:
|
|
5815
|
+
title: z210.string(),
|
|
5813
5816
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
5814
5817
|
// Page placement properties
|
|
5815
|
-
parentPersistentId:
|
|
5816
|
-
afterPersistentId:
|
|
5818
|
+
parentPersistentId: z210.string().uuid(),
|
|
5819
|
+
afterPersistentId: z210.string().uuid().nullish()
|
|
5817
5820
|
});
|
|
5818
|
-
var DTOUpdateDocumentationPageInputV2 =
|
|
5821
|
+
var DTOUpdateDocumentationPageInputV2 = z210.object({
|
|
5819
5822
|
// Identifier of the group to update
|
|
5820
|
-
id:
|
|
5823
|
+
id: z210.string(),
|
|
5821
5824
|
// Page properties
|
|
5822
|
-
title:
|
|
5825
|
+
title: z210.string().optional(),
|
|
5823
5826
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
5824
5827
|
});
|
|
5825
|
-
var DTOMoveDocumentationPageInputV2 =
|
|
5828
|
+
var DTOMoveDocumentationPageInputV2 = z210.object({
|
|
5826
5829
|
// Identifier of the group to update
|
|
5827
|
-
id:
|
|
5830
|
+
id: z210.string(),
|
|
5828
5831
|
// Page placement properties
|
|
5829
|
-
parentPersistentId:
|
|
5830
|
-
afterPersistentId:
|
|
5832
|
+
parentPersistentId: z210.string().uuid(),
|
|
5833
|
+
afterPersistentId: z210.string().uuid().nullish()
|
|
5831
5834
|
});
|
|
5832
|
-
var DTODuplicateDocumentationPageInputV2 =
|
|
5835
|
+
var DTODuplicateDocumentationPageInputV2 = z210.object({
|
|
5833
5836
|
// Identifier of the page to duplicate from
|
|
5834
|
-
id:
|
|
5837
|
+
id: z210.string(),
|
|
5835
5838
|
// New page persistent id
|
|
5836
|
-
persistentId:
|
|
5839
|
+
persistentId: z210.string().uuid(),
|
|
5837
5840
|
// Page placement properties
|
|
5838
|
-
parentPersistentId:
|
|
5839
|
-
afterPersistentId:
|
|
5841
|
+
parentPersistentId: z210.string().uuid(),
|
|
5842
|
+
afterPersistentId: z210.string().uuid().nullish()
|
|
5840
5843
|
});
|
|
5841
|
-
var DTODeleteDocumentationPageInputV2 =
|
|
5844
|
+
var DTODeleteDocumentationPageInputV2 = z210.object({
|
|
5842
5845
|
// Identifier
|
|
5843
|
-
id:
|
|
5846
|
+
id: z210.string()
|
|
5844
5847
|
});
|
|
5845
|
-
var DTORestoreDocumentationPageInput =
|
|
5846
|
-
persistentId:
|
|
5847
|
-
snapshotId:
|
|
5848
|
+
var DTORestoreDocumentationPageInput = z210.object({
|
|
5849
|
+
persistentId: z210.string(),
|
|
5850
|
+
snapshotId: z210.string().optional()
|
|
5848
5851
|
});
|
|
5849
|
-
var DTORestoreDocumentationGroupInput =
|
|
5850
|
-
persistentId:
|
|
5851
|
-
snapshotId:
|
|
5852
|
+
var DTORestoreDocumentationGroupInput = z210.object({
|
|
5853
|
+
persistentId: z210.string(),
|
|
5854
|
+
snapshotId: z210.string().optional()
|
|
5852
5855
|
});
|
|
5853
|
-
var DTODocumentationPageApprovalStateChangeInput =
|
|
5854
|
-
persistentId:
|
|
5856
|
+
var DTODocumentationPageApprovalStateChangeInput = z210.object({
|
|
5857
|
+
persistentId: z210.string(),
|
|
5855
5858
|
approvalState: DocumentationPageApprovalState.optional()
|
|
5856
5859
|
});
|
|
5857
5860
|
|
|
5858
5861
|
// src/api/dto/documentation/documentation-page-snapshot.ts
|
|
5859
|
-
var DTODocumentationPageSnapshot =
|
|
5860
|
-
id:
|
|
5861
|
-
designSystemVersionId:
|
|
5862
|
-
createdAt:
|
|
5863
|
-
updatedAt:
|
|
5862
|
+
var DTODocumentationPageSnapshot = z211.object({
|
|
5863
|
+
id: z211.string(),
|
|
5864
|
+
designSystemVersionId: z211.string(),
|
|
5865
|
+
createdAt: z211.string(),
|
|
5866
|
+
updatedAt: z211.string(),
|
|
5864
5867
|
documentationPage: DTODocumentationPageV2,
|
|
5865
|
-
pageContentHash:
|
|
5868
|
+
pageContentHash: z211.string(),
|
|
5866
5869
|
reason: DesignElementSnapshotReason
|
|
5867
5870
|
});
|
|
5868
5871
|
|
|
5869
5872
|
// src/api/dto/documentation/link-preview.ts
|
|
5870
|
-
import { z as
|
|
5871
|
-
var DTODocumentationLinkPreviewResponse =
|
|
5873
|
+
import { z as z212 } from "zod";
|
|
5874
|
+
var DTODocumentationLinkPreviewResponse = z212.object({
|
|
5872
5875
|
linkPreview: DocumentationLinkPreview
|
|
5873
5876
|
});
|
|
5874
|
-
var DTODocumentationLinkPreviewRequest =
|
|
5875
|
-
url:
|
|
5876
|
-
documentationItemPersistentId:
|
|
5877
|
+
var DTODocumentationLinkPreviewRequest = z212.object({
|
|
5878
|
+
url: z212.string().optional(),
|
|
5879
|
+
documentationItemPersistentId: z212.string().optional()
|
|
5877
5880
|
});
|
|
5878
5881
|
|
|
5879
5882
|
// src/api/dto/documentation/publish.ts
|
|
5880
|
-
import { z as
|
|
5883
|
+
import { z as z216 } from "zod";
|
|
5881
5884
|
|
|
5882
5885
|
// src/api/dto/export/exporter.ts
|
|
5883
|
-
import { z as
|
|
5884
|
-
var DTOExporterType =
|
|
5885
|
-
var DTOExporterSource =
|
|
5886
|
-
var DTOExporterMembershipRole =
|
|
5887
|
-
var DTOExporter =
|
|
5888
|
-
id:
|
|
5889
|
-
name:
|
|
5890
|
-
isPrivate:
|
|
5886
|
+
import { z as z213 } from "zod";
|
|
5887
|
+
var DTOExporterType = z213.enum(["documentation", "code"]);
|
|
5888
|
+
var DTOExporterSource = z213.enum(["git", "upload"]);
|
|
5889
|
+
var DTOExporterMembershipRole = z213.enum(["Owner", "OwnerArchived", "User"]);
|
|
5890
|
+
var DTOExporter = z213.object({
|
|
5891
|
+
id: z213.string(),
|
|
5892
|
+
name: z213.string(),
|
|
5893
|
+
isPrivate: z213.boolean(),
|
|
5891
5894
|
exporterType: DTOExporterType,
|
|
5892
|
-
isDefaultDocumentationExporter:
|
|
5893
|
-
iconURL:
|
|
5895
|
+
isDefaultDocumentationExporter: z213.boolean(),
|
|
5896
|
+
iconURL: z213.string().optional(),
|
|
5894
5897
|
configurationProperties: PulsarContributionConfigurationProperty.array(),
|
|
5895
5898
|
customBlocks: PulsarCustomBlock.array(),
|
|
5896
|
-
blockVariants:
|
|
5897
|
-
usesBrands:
|
|
5898
|
-
usesThemes:
|
|
5899
|
+
blockVariants: z213.record(z213.string(), PulsarContributionVariant.array()),
|
|
5900
|
+
usesBrands: z213.boolean(),
|
|
5901
|
+
usesThemes: z213.boolean(),
|
|
5899
5902
|
source: DTOExporterSource,
|
|
5900
|
-
gitUrl:
|
|
5901
|
-
gitBranch:
|
|
5902
|
-
gitDirectory:
|
|
5903
|
+
gitUrl: z213.string().optional(),
|
|
5904
|
+
gitBranch: z213.string().optional(),
|
|
5905
|
+
gitDirectory: z213.string().optional()
|
|
5903
5906
|
});
|
|
5904
|
-
var DTOExporterMembership =
|
|
5905
|
-
workspaceId:
|
|
5906
|
-
exporterId:
|
|
5907
|
+
var DTOExporterMembership = z213.object({
|
|
5908
|
+
workspaceId: z213.string(),
|
|
5909
|
+
exporterId: z213.string(),
|
|
5907
5910
|
role: DTOExporterMembershipRole
|
|
5908
5911
|
});
|
|
5909
|
-
var DTOExporterCreateOutput =
|
|
5912
|
+
var DTOExporterCreateOutput = z213.object({
|
|
5910
5913
|
exporter: DTOExporter,
|
|
5911
5914
|
membership: DTOExporterMembership
|
|
5912
5915
|
});
|
|
5913
|
-
var DTOExporterGitProviderEnum =
|
|
5914
|
-
var DTOExporterCreateInput =
|
|
5915
|
-
url:
|
|
5916
|
+
var DTOExporterGitProviderEnum = z213.enum(["github", "gitlab", "bitbucket", "azure"]);
|
|
5917
|
+
var DTOExporterCreateInput = z213.object({
|
|
5918
|
+
url: z213.string(),
|
|
5916
5919
|
provider: DTOExporterGitProviderEnum
|
|
5917
5920
|
});
|
|
5918
|
-
var DTOExporterUpdateInput =
|
|
5919
|
-
url:
|
|
5921
|
+
var DTOExporterUpdateInput = z213.object({
|
|
5922
|
+
url: z213.string().optional()
|
|
5920
5923
|
});
|
|
5921
5924
|
|
|
5922
5925
|
// src/api/dto/export/filter.ts
|
|
5923
5926
|
var DTOExportJobsListFilter = ExportJobFindByFilter;
|
|
5924
5927
|
|
|
5925
5928
|
// src/api/dto/export/job.ts
|
|
5926
|
-
import { z as
|
|
5927
|
-
var DTOExportJobCreatedBy =
|
|
5928
|
-
userId:
|
|
5929
|
-
userName:
|
|
5929
|
+
import { z as z214 } from "zod";
|
|
5930
|
+
var DTOExportJobCreatedBy = z214.object({
|
|
5931
|
+
userId: z214.string(),
|
|
5932
|
+
userName: z214.string()
|
|
5930
5933
|
});
|
|
5931
|
-
var DTOExportJobDesignSystemPreview =
|
|
5932
|
-
id:
|
|
5934
|
+
var DTOExportJobDesignSystemPreview = z214.object({
|
|
5935
|
+
id: z214.string(),
|
|
5933
5936
|
meta: ObjectMeta
|
|
5934
5937
|
});
|
|
5935
|
-
var DTOExportJobDesignSystemVersionPreview =
|
|
5936
|
-
id:
|
|
5938
|
+
var DTOExportJobDesignSystemVersionPreview = z214.object({
|
|
5939
|
+
id: z214.string(),
|
|
5937
5940
|
meta: ObjectMeta,
|
|
5938
|
-
version:
|
|
5939
|
-
isReadonly:
|
|
5941
|
+
version: z214.string(),
|
|
5942
|
+
isReadonly: z214.boolean()
|
|
5940
5943
|
});
|
|
5941
|
-
var DTOExportJobDestinations =
|
|
5944
|
+
var DTOExportJobDestinations = z214.object({
|
|
5942
5945
|
s3: ExporterDestinationS3.optional(),
|
|
5943
5946
|
azure: ExporterDestinationAzure.optional(),
|
|
5944
5947
|
bitbucket: ExporterDestinationBitbucket.optional(),
|
|
5945
5948
|
github: ExporterDestinationGithub.optional(),
|
|
5946
5949
|
gitlab: ExporterDestinationGitlab.optional(),
|
|
5947
5950
|
documentation: ExporterDestinationDocs.optional(),
|
|
5948
|
-
webhookUrl:
|
|
5951
|
+
webhookUrl: z214.string().optional()
|
|
5949
5952
|
});
|
|
5950
5953
|
var DTOExportJobResult = ExportJobResult.omit({
|
|
5951
5954
|
sndocs: true
|
|
5952
5955
|
}).extend({
|
|
5953
5956
|
documentation: ExportJobDocsDestinationResult.optional()
|
|
5954
5957
|
});
|
|
5955
|
-
var DTOExportJob =
|
|
5956
|
-
id:
|
|
5957
|
-
createdAt:
|
|
5958
|
-
finishedAt:
|
|
5959
|
-
index:
|
|
5958
|
+
var DTOExportJob = z214.object({
|
|
5959
|
+
id: z214.string(),
|
|
5960
|
+
createdAt: z214.coerce.date(),
|
|
5961
|
+
finishedAt: z214.coerce.date().optional(),
|
|
5962
|
+
index: z214.number().optional(),
|
|
5960
5963
|
status: ExportJobStatus,
|
|
5961
|
-
estimatedExecutionTime:
|
|
5964
|
+
estimatedExecutionTime: z214.number().optional(),
|
|
5962
5965
|
createdBy: DTOExportJobCreatedBy.optional(),
|
|
5963
5966
|
designSystem: DTOExportJobDesignSystemPreview,
|
|
5964
5967
|
designSystemVersion: DTOExportJobDesignSystemVersionPreview,
|
|
5965
5968
|
destinations: DTOExportJobDestinations,
|
|
5966
|
-
exporterId:
|
|
5967
|
-
scheduleId:
|
|
5969
|
+
exporterId: z214.string(),
|
|
5970
|
+
scheduleId: z214.string().optional(),
|
|
5968
5971
|
result: DTOExportJobResult.optional(),
|
|
5969
|
-
brandPersistentId:
|
|
5970
|
-
themePersistentId:
|
|
5971
|
-
themePersistentIds:
|
|
5972
|
+
brandPersistentId: z214.string().optional(),
|
|
5973
|
+
themePersistentId: z214.string().optional(),
|
|
5974
|
+
themePersistentIds: z214.string().array().optional()
|
|
5972
5975
|
});
|
|
5973
|
-
var DTOExportJobResponse =
|
|
5976
|
+
var DTOExportJobResponse = z214.object({
|
|
5974
5977
|
job: DTOExportJob
|
|
5975
5978
|
});
|
|
5976
5979
|
|
|
5977
5980
|
// src/api/dto/export/pipeline.ts
|
|
5978
|
-
import { z as
|
|
5979
|
-
var DTOPipeline =
|
|
5980
|
-
id:
|
|
5981
|
-
name:
|
|
5981
|
+
import { z as z215 } from "zod";
|
|
5982
|
+
var DTOPipeline = z215.object({
|
|
5983
|
+
id: z215.string(),
|
|
5984
|
+
name: z215.string(),
|
|
5982
5985
|
eventType: PipelineEventType,
|
|
5983
|
-
isEnabled:
|
|
5984
|
-
workspaceId:
|
|
5985
|
-
designSystemId:
|
|
5986
|
-
exporterId:
|
|
5987
|
-
brandPersistentId:
|
|
5988
|
-
themePersistentId:
|
|
5989
|
-
themePersistentIds:
|
|
5986
|
+
isEnabled: z215.boolean(),
|
|
5987
|
+
workspaceId: z215.string(),
|
|
5988
|
+
designSystemId: z215.string(),
|
|
5989
|
+
exporterId: z215.string(),
|
|
5990
|
+
brandPersistentId: z215.string().optional(),
|
|
5991
|
+
themePersistentId: z215.string().optional(),
|
|
5992
|
+
themePersistentIds: z215.string().array().optional(),
|
|
5990
5993
|
...ExportDestinationsMap.shape,
|
|
5991
5994
|
latestJobs: DTOExportJob.array()
|
|
5992
5995
|
});
|
|
5993
5996
|
|
|
5994
5997
|
// src/api/dto/documentation/publish.ts
|
|
5995
5998
|
var DTOPublishDocumentationChanges = ExportJobDocumentationChanges;
|
|
5996
|
-
var DTOPublishDocumentationRequest =
|
|
5999
|
+
var DTOPublishDocumentationRequest = z216.object({
|
|
5997
6000
|
environment: PublishedDocEnvironment,
|
|
5998
6001
|
/**
|
|
5999
6002
|
* If defined, this allows narrowing down what is published to a set of specific pages and groups
|
|
@@ -6001,42 +6004,42 @@ var DTOPublishDocumentationRequest = z215.object({
|
|
|
6001
6004
|
*/
|
|
6002
6005
|
changes: DTOPublishDocumentationChanges.optional()
|
|
6003
6006
|
});
|
|
6004
|
-
var DTOPublishDocumentationResponse =
|
|
6007
|
+
var DTOPublishDocumentationResponse = z216.object({
|
|
6005
6008
|
job: DTOExportJob
|
|
6006
6009
|
});
|
|
6007
6010
|
|
|
6008
6011
|
// src/api/dto/elements/components/figma-component.ts
|
|
6009
|
-
import { z as
|
|
6012
|
+
import { z as z217 } from "zod";
|
|
6010
6013
|
var DTOFigmaComponentProperty = FigmaComponentProperty;
|
|
6011
|
-
var DTOFigmaComponentPropertyMap =
|
|
6012
|
-
var DTOFigmaComponent =
|
|
6013
|
-
id:
|
|
6014
|
-
persistentId:
|
|
6015
|
-
designSystemVersionId:
|
|
6016
|
-
brandId:
|
|
6017
|
-
thumbnailUrl:
|
|
6018
|
-
svgUrl:
|
|
6019
|
-
exportProperties:
|
|
6020
|
-
isAsset:
|
|
6014
|
+
var DTOFigmaComponentPropertyMap = z217.record(DTOFigmaComponentProperty);
|
|
6015
|
+
var DTOFigmaComponent = z217.object({
|
|
6016
|
+
id: z217.string(),
|
|
6017
|
+
persistentId: z217.string(),
|
|
6018
|
+
designSystemVersionId: z217.string(),
|
|
6019
|
+
brandId: z217.string(),
|
|
6020
|
+
thumbnailUrl: z217.string().optional(),
|
|
6021
|
+
svgUrl: z217.string().optional(),
|
|
6022
|
+
exportProperties: z217.object({
|
|
6023
|
+
isAsset: z217.boolean()
|
|
6021
6024
|
}),
|
|
6022
|
-
createdAt:
|
|
6023
|
-
updatedAt:
|
|
6025
|
+
createdAt: z217.coerce.date(),
|
|
6026
|
+
updatedAt: z217.coerce.date(),
|
|
6024
6027
|
meta: ObjectMeta,
|
|
6025
6028
|
originComponent: FigmaComponentOrigin.optional(),
|
|
6026
|
-
parentComponentPersistentId:
|
|
6027
|
-
childrenPersistentIds:
|
|
6029
|
+
parentComponentPersistentId: z217.string().optional(),
|
|
6030
|
+
childrenPersistentIds: z217.string().array().optional(),
|
|
6028
6031
|
componentPropertyDefinitions: DTOFigmaComponentPropertyMap.optional(),
|
|
6029
|
-
variantPropertyValues:
|
|
6032
|
+
variantPropertyValues: z217.record(z217.string()).optional()
|
|
6030
6033
|
});
|
|
6031
|
-
var DTOFigmaComponentListResponse =
|
|
6034
|
+
var DTOFigmaComponentListResponse = z217.object({
|
|
6032
6035
|
components: DTOFigmaComponent.array()
|
|
6033
6036
|
});
|
|
6034
6037
|
|
|
6035
6038
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6036
|
-
import { z as
|
|
6039
|
+
import { z as z219 } from "zod";
|
|
6037
6040
|
|
|
6038
6041
|
// src/api/dto/elements/documentation/group-v2.ts
|
|
6039
|
-
import { z as
|
|
6042
|
+
import { z as z218 } from "zod";
|
|
6040
6043
|
var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
6041
6044
|
sortOrder: true,
|
|
6042
6045
|
parentPersistentId: true,
|
|
@@ -6046,13 +6049,13 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6046
6049
|
data: true,
|
|
6047
6050
|
shortPersistentId: true
|
|
6048
6051
|
}).extend({
|
|
6049
|
-
title:
|
|
6050
|
-
isRoot:
|
|
6051
|
-
childrenIds:
|
|
6052
|
+
title: z218.string(),
|
|
6053
|
+
isRoot: z218.boolean(),
|
|
6054
|
+
childrenIds: z218.array(z218.string()),
|
|
6052
6055
|
groupBehavior: DocumentationGroupBehavior,
|
|
6053
|
-
shortPersistentId:
|
|
6056
|
+
shortPersistentId: z218.string(),
|
|
6054
6057
|
configuration: DTODocumentationItemConfigurationV2,
|
|
6055
|
-
type:
|
|
6058
|
+
type: z218.literal("Group"),
|
|
6056
6059
|
/** Defined when a group has changed since last publish and can be included into a partial publish */
|
|
6057
6060
|
draftState: DTODocumentationDraftState.optional(),
|
|
6058
6061
|
/** Defined if a group was published at least once and contains metadata about last publish */
|
|
@@ -6060,127 +6063,127 @@ var DTODocumentationGroupV2 = ElementGroup.omit({
|
|
|
6060
6063
|
//** An approval state for frontend to utilize. */
|
|
6061
6064
|
approvalState: DTODocumentationGroupApprovalState.optional()
|
|
6062
6065
|
});
|
|
6063
|
-
var DTOCreateDocumentationGroupInput =
|
|
6066
|
+
var DTOCreateDocumentationGroupInput = z218.object({
|
|
6064
6067
|
// Identifier
|
|
6065
|
-
persistentId:
|
|
6068
|
+
persistentId: z218.string().uuid(),
|
|
6066
6069
|
// Group properties
|
|
6067
|
-
title:
|
|
6070
|
+
title: z218.string(),
|
|
6068
6071
|
configuration: DTODocumentationItemConfigurationV2.partial().optional(),
|
|
6069
6072
|
// Group placement properties
|
|
6070
|
-
afterPersistentId:
|
|
6071
|
-
parentPersistentId:
|
|
6073
|
+
afterPersistentId: z218.string().uuid().nullish(),
|
|
6074
|
+
parentPersistentId: z218.string().uuid()
|
|
6072
6075
|
});
|
|
6073
|
-
var DTOUpdateDocumentationGroupInput =
|
|
6076
|
+
var DTOUpdateDocumentationGroupInput = z218.object({
|
|
6074
6077
|
// Identifier of the group to update
|
|
6075
|
-
id:
|
|
6078
|
+
id: z218.string(),
|
|
6076
6079
|
// Group properties
|
|
6077
|
-
title:
|
|
6080
|
+
title: z218.string().optional(),
|
|
6078
6081
|
configuration: DTODocumentationItemConfigurationV2.partial().optional()
|
|
6079
6082
|
});
|
|
6080
|
-
var DTOMoveDocumentationGroupInput =
|
|
6083
|
+
var DTOMoveDocumentationGroupInput = z218.object({
|
|
6081
6084
|
// Identifier of the group to update
|
|
6082
|
-
id:
|
|
6085
|
+
id: z218.string(),
|
|
6083
6086
|
// Group placement properties
|
|
6084
|
-
parentPersistentId:
|
|
6085
|
-
afterPersistentId:
|
|
6087
|
+
parentPersistentId: z218.string().uuid(),
|
|
6088
|
+
afterPersistentId: z218.string().uuid().nullish()
|
|
6086
6089
|
});
|
|
6087
|
-
var DTODuplicateDocumentationGroupInput =
|
|
6090
|
+
var DTODuplicateDocumentationGroupInput = z218.object({
|
|
6088
6091
|
// Identifier of the group to duplicate from
|
|
6089
|
-
id:
|
|
6092
|
+
id: z218.string(),
|
|
6090
6093
|
// New group persistent id
|
|
6091
|
-
persistentId:
|
|
6094
|
+
persistentId: z218.string().uuid(),
|
|
6092
6095
|
// Group placement properties
|
|
6093
|
-
afterPersistentId:
|
|
6094
|
-
parentPersistentId:
|
|
6096
|
+
afterPersistentId: z218.string().uuid().nullish(),
|
|
6097
|
+
parentPersistentId: z218.string().uuid()
|
|
6095
6098
|
});
|
|
6096
|
-
var DTOCreateDocumentationTabInput =
|
|
6099
|
+
var DTOCreateDocumentationTabInput = z218.object({
|
|
6097
6100
|
// New group persistent id
|
|
6098
|
-
persistentId:
|
|
6101
|
+
persistentId: z218.string().uuid(),
|
|
6099
6102
|
// If this is page, we will attempt to convert it to tab
|
|
6100
6103
|
// If this is tab group, we will add a new tab to it
|
|
6101
|
-
fromItemPersistentId:
|
|
6102
|
-
tabName:
|
|
6104
|
+
fromItemPersistentId: z218.string(),
|
|
6105
|
+
tabName: z218.string()
|
|
6103
6106
|
});
|
|
6104
|
-
var DTODeleteDocumentationTabGroupInput =
|
|
6107
|
+
var DTODeleteDocumentationTabGroupInput = z218.object({
|
|
6105
6108
|
// Deleted group id
|
|
6106
|
-
id:
|
|
6109
|
+
id: z218.string()
|
|
6107
6110
|
});
|
|
6108
|
-
var DTODeleteDocumentationGroupInput =
|
|
6111
|
+
var DTODeleteDocumentationGroupInput = z218.object({
|
|
6109
6112
|
// Identifier
|
|
6110
|
-
id:
|
|
6113
|
+
id: z218.string(),
|
|
6111
6114
|
// Deletion options
|
|
6112
|
-
deleteSubtree:
|
|
6115
|
+
deleteSubtree: z218.boolean().default(false)
|
|
6113
6116
|
});
|
|
6114
6117
|
|
|
6115
6118
|
// src/api/dto/elements/documentation/group-action.ts
|
|
6116
|
-
var SuccessPayload =
|
|
6117
|
-
success:
|
|
6119
|
+
var SuccessPayload = z219.object({
|
|
6120
|
+
success: z219.literal(true)
|
|
6118
6121
|
});
|
|
6119
|
-
var DTODocumentationGroupCreateActionOutputV2 =
|
|
6120
|
-
type:
|
|
6122
|
+
var DTODocumentationGroupCreateActionOutputV2 = z219.object({
|
|
6123
|
+
type: z219.literal("DocumentationGroupCreate"),
|
|
6121
6124
|
output: SuccessPayload
|
|
6122
6125
|
});
|
|
6123
|
-
var DTODocumentationTabCreateActionOutputV2 =
|
|
6124
|
-
type:
|
|
6126
|
+
var DTODocumentationTabCreateActionOutputV2 = z219.object({
|
|
6127
|
+
type: z219.literal("DocumentationTabCreate"),
|
|
6125
6128
|
output: SuccessPayload
|
|
6126
6129
|
});
|
|
6127
|
-
var DTODocumentationGroupUpdateActionOutputV2 =
|
|
6128
|
-
type:
|
|
6130
|
+
var DTODocumentationGroupUpdateActionOutputV2 = z219.object({
|
|
6131
|
+
type: z219.literal("DocumentationGroupUpdate"),
|
|
6129
6132
|
output: SuccessPayload
|
|
6130
6133
|
});
|
|
6131
|
-
var DTODocumentationGroupMoveActionOutputV2 =
|
|
6132
|
-
type:
|
|
6134
|
+
var DTODocumentationGroupMoveActionOutputV2 = z219.object({
|
|
6135
|
+
type: z219.literal("DocumentationGroupMove"),
|
|
6133
6136
|
output: SuccessPayload
|
|
6134
6137
|
});
|
|
6135
|
-
var DTODocumentationGroupDuplicateActionOutputV2 =
|
|
6136
|
-
type:
|
|
6138
|
+
var DTODocumentationGroupDuplicateActionOutputV2 = z219.object({
|
|
6139
|
+
type: z219.literal("DocumentationGroupDuplicate"),
|
|
6137
6140
|
output: SuccessPayload
|
|
6138
6141
|
});
|
|
6139
|
-
var DTODocumentationGroupDeleteActionOutputV2 =
|
|
6140
|
-
type:
|
|
6142
|
+
var DTODocumentationGroupDeleteActionOutputV2 = z219.object({
|
|
6143
|
+
type: z219.literal("DocumentationGroupDelete"),
|
|
6141
6144
|
output: SuccessPayload
|
|
6142
6145
|
});
|
|
6143
|
-
var DTODocumentationTabGroupDeleteActionOutputV2 =
|
|
6144
|
-
type:
|
|
6146
|
+
var DTODocumentationTabGroupDeleteActionOutputV2 = z219.object({
|
|
6147
|
+
type: z219.literal("DocumentationTabGroupDelete"),
|
|
6145
6148
|
output: SuccessPayload
|
|
6146
6149
|
});
|
|
6147
|
-
var DTODocumentationGroupCreateActionInputV2 =
|
|
6148
|
-
type:
|
|
6150
|
+
var DTODocumentationGroupCreateActionInputV2 = z219.object({
|
|
6151
|
+
type: z219.literal("DocumentationGroupCreate"),
|
|
6149
6152
|
input: DTOCreateDocumentationGroupInput
|
|
6150
6153
|
});
|
|
6151
|
-
var DTODocumentationTabCreateActionInputV2 =
|
|
6152
|
-
type:
|
|
6154
|
+
var DTODocumentationTabCreateActionInputV2 = z219.object({
|
|
6155
|
+
type: z219.literal("DocumentationTabCreate"),
|
|
6153
6156
|
input: DTOCreateDocumentationTabInput
|
|
6154
6157
|
});
|
|
6155
|
-
var DTODocumentationGroupUpdateActionInputV2 =
|
|
6156
|
-
type:
|
|
6158
|
+
var DTODocumentationGroupUpdateActionInputV2 = z219.object({
|
|
6159
|
+
type: z219.literal("DocumentationGroupUpdate"),
|
|
6157
6160
|
input: DTOUpdateDocumentationGroupInput
|
|
6158
6161
|
});
|
|
6159
|
-
var DTODocumentationGroupMoveActionInputV2 =
|
|
6160
|
-
type:
|
|
6162
|
+
var DTODocumentationGroupMoveActionInputV2 = z219.object({
|
|
6163
|
+
type: z219.literal("DocumentationGroupMove"),
|
|
6161
6164
|
input: DTOMoveDocumentationGroupInput
|
|
6162
6165
|
});
|
|
6163
|
-
var DTODocumentationGroupDuplicateActionInputV2 =
|
|
6164
|
-
type:
|
|
6166
|
+
var DTODocumentationGroupDuplicateActionInputV2 = z219.object({
|
|
6167
|
+
type: z219.literal("DocumentationGroupDuplicate"),
|
|
6165
6168
|
input: DTODuplicateDocumentationGroupInput
|
|
6166
6169
|
});
|
|
6167
|
-
var DTODocumentationGroupDeleteActionInputV2 =
|
|
6168
|
-
type:
|
|
6170
|
+
var DTODocumentationGroupDeleteActionInputV2 = z219.object({
|
|
6171
|
+
type: z219.literal("DocumentationGroupDelete"),
|
|
6169
6172
|
input: DTODeleteDocumentationGroupInput
|
|
6170
6173
|
});
|
|
6171
|
-
var DTODocumentationTabGroupDeleteActionInputV2 =
|
|
6172
|
-
type:
|
|
6174
|
+
var DTODocumentationTabGroupDeleteActionInputV2 = z219.object({
|
|
6175
|
+
type: z219.literal("DocumentationTabGroupDelete"),
|
|
6173
6176
|
input: DTODeleteDocumentationTabGroupInput
|
|
6174
6177
|
});
|
|
6175
6178
|
|
|
6176
6179
|
// src/api/dto/elements/documentation/group-v1.ts
|
|
6177
|
-
import { z as
|
|
6180
|
+
import { z as z221 } from "zod";
|
|
6178
6181
|
|
|
6179
6182
|
// src/api/dto/elements/documentation/item-configuration-v1.ts
|
|
6180
|
-
import { z as
|
|
6181
|
-
var DocumentationColorV1 =
|
|
6182
|
-
aliasTo:
|
|
6183
|
-
value:
|
|
6183
|
+
import { z as z220 } from "zod";
|
|
6184
|
+
var DocumentationColorV1 = z220.object({
|
|
6185
|
+
aliasTo: z220.string().optional(),
|
|
6186
|
+
value: z220.string().optional()
|
|
6184
6187
|
});
|
|
6185
6188
|
var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
6186
6189
|
foregroundColor: true,
|
|
@@ -6189,10 +6192,10 @@ var DTODocumentationItemHeaderV1 = DocumentationItemHeaderV1.omit({
|
|
|
6189
6192
|
foregroundColor: DocumentationColorV1.optional(),
|
|
6190
6193
|
backgroundColor: DocumentationColorV1.optional()
|
|
6191
6194
|
});
|
|
6192
|
-
var DTODocumentationItemConfigurationV1 =
|
|
6193
|
-
showSidebar:
|
|
6194
|
-
isPrivate:
|
|
6195
|
-
isHidden:
|
|
6195
|
+
var DTODocumentationItemConfigurationV1 = z220.object({
|
|
6196
|
+
showSidebar: z220.boolean(),
|
|
6197
|
+
isPrivate: z220.boolean(),
|
|
6198
|
+
isHidden: z220.boolean(),
|
|
6196
6199
|
header: DTODocumentationItemHeaderV1
|
|
6197
6200
|
});
|
|
6198
6201
|
|
|
@@ -6206,27 +6209,27 @@ var DTODocumentationGroupStructureV1 = ElementGroup.omit({
|
|
|
6206
6209
|
data: true,
|
|
6207
6210
|
shortPersistentId: true
|
|
6208
6211
|
}).extend({
|
|
6209
|
-
title:
|
|
6210
|
-
isRoot:
|
|
6211
|
-
childrenIds:
|
|
6212
|
+
title: z221.string(),
|
|
6213
|
+
isRoot: z221.boolean(),
|
|
6214
|
+
childrenIds: z221.array(z221.string()),
|
|
6212
6215
|
groupBehavior: DocumentationGroupBehavior,
|
|
6213
|
-
shortPersistentId:
|
|
6214
|
-
type:
|
|
6216
|
+
shortPersistentId: z221.string(),
|
|
6217
|
+
type: z221.literal("Group")
|
|
6215
6218
|
});
|
|
6216
6219
|
var DTODocumentationGroupV1 = DTODocumentationGroupStructureV1.extend({
|
|
6217
6220
|
configuration: DTODocumentationItemConfigurationV1
|
|
6218
6221
|
});
|
|
6219
6222
|
|
|
6220
6223
|
// src/api/dto/elements/documentation/hierarchy.ts
|
|
6221
|
-
import { z as
|
|
6222
|
-
var DTODocumentationHierarchyV2 =
|
|
6223
|
-
pages:
|
|
6224
|
+
import { z as z222 } from "zod";
|
|
6225
|
+
var DTODocumentationHierarchyV2 = z222.object({
|
|
6226
|
+
pages: z222.array(
|
|
6224
6227
|
DTODocumentationPageV2.extend({
|
|
6225
6228
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6226
6229
|
draftState: DTODocumentationDraftState.optional()
|
|
6227
6230
|
})
|
|
6228
6231
|
),
|
|
6229
|
-
groups:
|
|
6232
|
+
groups: z222.array(
|
|
6230
6233
|
DTODocumentationGroupV2.extend({
|
|
6231
6234
|
/** Defined when a page has changed since last publish and can be included into a partial publish */
|
|
6232
6235
|
draftState: DTODocumentationDraftState.optional()
|
|
@@ -6235,84 +6238,84 @@ var DTODocumentationHierarchyV2 = z221.object({
|
|
|
6235
6238
|
});
|
|
6236
6239
|
|
|
6237
6240
|
// src/api/dto/elements/documentation/page-actions-v2.ts
|
|
6238
|
-
import { z as
|
|
6239
|
-
var SuccessPayload2 =
|
|
6240
|
-
success:
|
|
6241
|
+
import { z as z223 } from "zod";
|
|
6242
|
+
var SuccessPayload2 = z223.object({
|
|
6243
|
+
success: z223.literal(true)
|
|
6241
6244
|
});
|
|
6242
|
-
var DTODocumentationPageCreateActionOutputV2 =
|
|
6243
|
-
type:
|
|
6245
|
+
var DTODocumentationPageCreateActionOutputV2 = z223.object({
|
|
6246
|
+
type: z223.literal("DocumentationPageCreate"),
|
|
6244
6247
|
output: SuccessPayload2
|
|
6245
6248
|
});
|
|
6246
|
-
var DTODocumentationPageUpdateActionOutputV2 =
|
|
6247
|
-
type:
|
|
6249
|
+
var DTODocumentationPageUpdateActionOutputV2 = z223.object({
|
|
6250
|
+
type: z223.literal("DocumentationPageUpdate"),
|
|
6248
6251
|
output: SuccessPayload2
|
|
6249
6252
|
});
|
|
6250
|
-
var DTODocumentationPageMoveActionOutputV2 =
|
|
6251
|
-
type:
|
|
6253
|
+
var DTODocumentationPageMoveActionOutputV2 = z223.object({
|
|
6254
|
+
type: z223.literal("DocumentationPageMove"),
|
|
6252
6255
|
output: SuccessPayload2
|
|
6253
6256
|
});
|
|
6254
|
-
var DTODocumentationPageDuplicateActionOutputV2 =
|
|
6255
|
-
type:
|
|
6257
|
+
var DTODocumentationPageDuplicateActionOutputV2 = z223.object({
|
|
6258
|
+
type: z223.literal("DocumentationPageDuplicate"),
|
|
6256
6259
|
output: SuccessPayload2
|
|
6257
6260
|
});
|
|
6258
|
-
var DTODocumentationPageDeleteActionOutputV2 =
|
|
6259
|
-
type:
|
|
6261
|
+
var DTODocumentationPageDeleteActionOutputV2 = z223.object({
|
|
6262
|
+
type: z223.literal("DocumentationPageDelete"),
|
|
6260
6263
|
output: SuccessPayload2
|
|
6261
6264
|
});
|
|
6262
|
-
var DTODocumentationPageRestoreActionOutput =
|
|
6263
|
-
type:
|
|
6265
|
+
var DTODocumentationPageRestoreActionOutput = z223.object({
|
|
6266
|
+
type: z223.literal("DocumentationPageRestore"),
|
|
6264
6267
|
output: SuccessPayload2
|
|
6265
6268
|
});
|
|
6266
|
-
var DTODocumentationGroupRestoreActionOutput =
|
|
6267
|
-
type:
|
|
6269
|
+
var DTODocumentationGroupRestoreActionOutput = z223.object({
|
|
6270
|
+
type: z223.literal("DocumentationGroupRestore"),
|
|
6268
6271
|
output: SuccessPayload2
|
|
6269
6272
|
});
|
|
6270
|
-
var DTODocumentationPageApprovalStateChangeActionOutput =
|
|
6271
|
-
type:
|
|
6273
|
+
var DTODocumentationPageApprovalStateChangeActionOutput = z223.object({
|
|
6274
|
+
type: z223.literal("DocumentationPageApprovalStateChange"),
|
|
6272
6275
|
output: SuccessPayload2
|
|
6273
6276
|
});
|
|
6274
|
-
var DTODocumentationPageCreateActionInputV2 =
|
|
6275
|
-
type:
|
|
6277
|
+
var DTODocumentationPageCreateActionInputV2 = z223.object({
|
|
6278
|
+
type: z223.literal("DocumentationPageCreate"),
|
|
6276
6279
|
input: DTOCreateDocumentationPageInputV2
|
|
6277
6280
|
});
|
|
6278
|
-
var DTODocumentationPageUpdateActionInputV2 =
|
|
6279
|
-
type:
|
|
6281
|
+
var DTODocumentationPageUpdateActionInputV2 = z223.object({
|
|
6282
|
+
type: z223.literal("DocumentationPageUpdate"),
|
|
6280
6283
|
input: DTOUpdateDocumentationPageInputV2
|
|
6281
6284
|
});
|
|
6282
|
-
var DTODocumentationPageMoveActionInputV2 =
|
|
6283
|
-
type:
|
|
6285
|
+
var DTODocumentationPageMoveActionInputV2 = z223.object({
|
|
6286
|
+
type: z223.literal("DocumentationPageMove"),
|
|
6284
6287
|
input: DTOMoveDocumentationPageInputV2
|
|
6285
6288
|
});
|
|
6286
|
-
var DTODocumentationPageDuplicateActionInputV2 =
|
|
6287
|
-
type:
|
|
6289
|
+
var DTODocumentationPageDuplicateActionInputV2 = z223.object({
|
|
6290
|
+
type: z223.literal("DocumentationPageDuplicate"),
|
|
6288
6291
|
input: DTODuplicateDocumentationPageInputV2
|
|
6289
6292
|
});
|
|
6290
|
-
var DTODocumentationPageDeleteActionInputV2 =
|
|
6291
|
-
type:
|
|
6293
|
+
var DTODocumentationPageDeleteActionInputV2 = z223.object({
|
|
6294
|
+
type: z223.literal("DocumentationPageDelete"),
|
|
6292
6295
|
input: DTODeleteDocumentationPageInputV2
|
|
6293
6296
|
});
|
|
6294
|
-
var DTODocumentationPageRestoreActionInput =
|
|
6295
|
-
type:
|
|
6297
|
+
var DTODocumentationPageRestoreActionInput = z223.object({
|
|
6298
|
+
type: z223.literal("DocumentationPageRestore"),
|
|
6296
6299
|
input: DTORestoreDocumentationPageInput
|
|
6297
6300
|
});
|
|
6298
|
-
var DTODocumentationGroupRestoreActionInput =
|
|
6299
|
-
type:
|
|
6301
|
+
var DTODocumentationGroupRestoreActionInput = z223.object({
|
|
6302
|
+
type: z223.literal("DocumentationGroupRestore"),
|
|
6300
6303
|
input: DTORestoreDocumentationGroupInput
|
|
6301
6304
|
});
|
|
6302
|
-
var DTODocumentationPageApprovalStateChangeActionInput =
|
|
6303
|
-
type:
|
|
6305
|
+
var DTODocumentationPageApprovalStateChangeActionInput = z223.object({
|
|
6306
|
+
type: z223.literal("DocumentationPageApprovalStateChange"),
|
|
6304
6307
|
input: DTODocumentationPageApprovalStateChangeInput
|
|
6305
6308
|
});
|
|
6306
6309
|
|
|
6307
6310
|
// src/api/dto/elements/documentation/page-content.ts
|
|
6308
|
-
import { z as
|
|
6311
|
+
import { z as z224 } from "zod";
|
|
6309
6312
|
var DTODocumentationPageContent = DocumentationPageContent;
|
|
6310
|
-
var DTODocumentationPageContentGetResponse =
|
|
6313
|
+
var DTODocumentationPageContentGetResponse = z224.object({
|
|
6311
6314
|
pageContent: DTODocumentationPageContent
|
|
6312
6315
|
});
|
|
6313
6316
|
|
|
6314
6317
|
// src/api/dto/elements/documentation/page-v1.ts
|
|
6315
|
-
import { z as
|
|
6318
|
+
import { z as z225 } from "zod";
|
|
6316
6319
|
var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
6317
6320
|
data: true,
|
|
6318
6321
|
meta: true,
|
|
@@ -6320,32 +6323,32 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
6320
6323
|
sortOrder: true
|
|
6321
6324
|
}).extend({
|
|
6322
6325
|
configuration: DTODocumentationItemConfigurationV1,
|
|
6323
|
-
blocks:
|
|
6324
|
-
title:
|
|
6325
|
-
path:
|
|
6326
|
+
blocks: z225.array(PageBlockV1),
|
|
6327
|
+
title: z225.string(),
|
|
6328
|
+
path: z225.string()
|
|
6326
6329
|
});
|
|
6327
6330
|
|
|
6328
6331
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
6329
|
-
import { z as
|
|
6332
|
+
import { z as z226 } from "zod";
|
|
6330
6333
|
var DTOFigmaNodeRenderFormat = FigmaNodeRenderFormat;
|
|
6331
|
-
var DTOFigmaNodeOrigin =
|
|
6332
|
-
sourceId:
|
|
6333
|
-
fileId:
|
|
6334
|
-
parentName:
|
|
6334
|
+
var DTOFigmaNodeOrigin = z226.object({
|
|
6335
|
+
sourceId: z226.string(),
|
|
6336
|
+
fileId: z226.string().optional(),
|
|
6337
|
+
parentName: z226.string().optional()
|
|
6335
6338
|
});
|
|
6336
|
-
var DTOFigmaNodeData =
|
|
6339
|
+
var DTOFigmaNodeData = z226.object({
|
|
6337
6340
|
// Id of the node in the Figma file
|
|
6338
|
-
figmaNodeId:
|
|
6341
|
+
figmaNodeId: z226.string(),
|
|
6339
6342
|
// Validity
|
|
6340
|
-
isValid:
|
|
6343
|
+
isValid: z226.boolean(),
|
|
6341
6344
|
// Asset data
|
|
6342
|
-
assetId:
|
|
6343
|
-
assetUrl:
|
|
6345
|
+
assetId: z226.string(),
|
|
6346
|
+
assetUrl: z226.string(),
|
|
6344
6347
|
assetFormat: DTOFigmaNodeRenderFormat,
|
|
6345
6348
|
// Asset metadata
|
|
6346
|
-
assetScale:
|
|
6347
|
-
assetWidth:
|
|
6348
|
-
assetHeight:
|
|
6349
|
+
assetScale: z226.number(),
|
|
6350
|
+
assetWidth: z226.number().optional(),
|
|
6351
|
+
assetHeight: z226.number().optional()
|
|
6349
6352
|
});
|
|
6350
6353
|
var DTOFigmaNode = FigmaNodeReference.omit({
|
|
6351
6354
|
data: true,
|
|
@@ -6354,15 +6357,15 @@ var DTOFigmaNode = FigmaNodeReference.omit({
|
|
|
6354
6357
|
data: DTOFigmaNodeData,
|
|
6355
6358
|
origin: DTOFigmaNodeOrigin
|
|
6356
6359
|
});
|
|
6357
|
-
var DTOFigmaNodeRenderInput =
|
|
6360
|
+
var DTOFigmaNodeRenderInput = z226.object({
|
|
6358
6361
|
/**
|
|
6359
6362
|
* Id of a design system's data source representing a linked Figma file
|
|
6360
6363
|
*/
|
|
6361
|
-
sourceId:
|
|
6364
|
+
sourceId: z226.string(),
|
|
6362
6365
|
/**
|
|
6363
6366
|
* Id of a node within the Figma file
|
|
6364
6367
|
*/
|
|
6365
|
-
figmaFileNodeId:
|
|
6368
|
+
figmaFileNodeId: z226.string(),
|
|
6366
6369
|
/**
|
|
6367
6370
|
* Format in which the node must be rendered, png by default.
|
|
6368
6371
|
*/
|
|
@@ -6370,97 +6373,97 @@ var DTOFigmaNodeRenderInput = z225.object({
|
|
|
6370
6373
|
});
|
|
6371
6374
|
|
|
6372
6375
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
6373
|
-
import { z as
|
|
6374
|
-
var DTOFigmaNodeRenderActionOutput =
|
|
6375
|
-
type:
|
|
6376
|
-
figmaNodes:
|
|
6376
|
+
import { z as z227 } from "zod";
|
|
6377
|
+
var DTOFigmaNodeRenderActionOutput = z227.object({
|
|
6378
|
+
type: z227.literal("FigmaNodeRender"),
|
|
6379
|
+
figmaNodes: z227.array(DTOFigmaNode)
|
|
6377
6380
|
});
|
|
6378
|
-
var DTOFigmaNodeRenderActionInput =
|
|
6379
|
-
type:
|
|
6381
|
+
var DTOFigmaNodeRenderActionInput = z227.object({
|
|
6382
|
+
type: z227.literal("FigmaNodeRender"),
|
|
6380
6383
|
input: DTOFigmaNodeRenderInput.array()
|
|
6381
6384
|
});
|
|
6382
6385
|
|
|
6383
6386
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6384
|
-
import { z as
|
|
6387
|
+
import { z as z229 } from "zod";
|
|
6385
6388
|
|
|
6386
6389
|
// src/api/dto/elements/properties/property-definitions.ts
|
|
6387
|
-
import { z as
|
|
6390
|
+
import { z as z228 } from "zod";
|
|
6388
6391
|
var CODE_NAME_REGEX2 = /^[a-zA-Z_$][a-zA-Z_$0-9]{1,99}$/;
|
|
6389
|
-
var DTOElementPropertyDefinition =
|
|
6390
|
-
id:
|
|
6391
|
-
designSystemVersionId:
|
|
6392
|
+
var DTOElementPropertyDefinition = z228.object({
|
|
6393
|
+
id: z228.string(),
|
|
6394
|
+
designSystemVersionId: z228.string(),
|
|
6392
6395
|
meta: ObjectMeta,
|
|
6393
|
-
persistentId:
|
|
6396
|
+
persistentId: z228.string(),
|
|
6394
6397
|
type: ElementPropertyTypeSchema,
|
|
6395
6398
|
targetElementType: ElementPropertyTargetType,
|
|
6396
|
-
codeName:
|
|
6397
|
-
options:
|
|
6399
|
+
codeName: z228.string().regex(CODE_NAME_REGEX2),
|
|
6400
|
+
options: z228.array(ElementPropertyDefinitionOption).optional(),
|
|
6398
6401
|
linkElementType: ElementPropertyLinkType.optional()
|
|
6399
6402
|
});
|
|
6400
|
-
var DTOElementPropertyDefinitionsGetResponse =
|
|
6401
|
-
definitions:
|
|
6403
|
+
var DTOElementPropertyDefinitionsGetResponse = z228.object({
|
|
6404
|
+
definitions: z228.array(DTOElementPropertyDefinition)
|
|
6402
6405
|
});
|
|
6403
6406
|
var DTOCreateElementPropertyDefinitionInputV2 = DTOElementPropertyDefinition.omit({
|
|
6404
6407
|
id: true,
|
|
6405
6408
|
designSystemVersionId: true
|
|
6406
6409
|
});
|
|
6407
|
-
var DTOUpdateElementPropertyDefinitionInputV2 =
|
|
6408
|
-
id:
|
|
6409
|
-
name:
|
|
6410
|
-
description:
|
|
6411
|
-
codeName:
|
|
6412
|
-
options:
|
|
6410
|
+
var DTOUpdateElementPropertyDefinitionInputV2 = z228.object({
|
|
6411
|
+
id: z228.string(),
|
|
6412
|
+
name: z228.string().optional(),
|
|
6413
|
+
description: z228.string().optional(),
|
|
6414
|
+
codeName: z228.string().regex(CODE_NAME_REGEX2).optional(),
|
|
6415
|
+
options: z228.array(ElementPropertyDefinitionOption).optional()
|
|
6413
6416
|
});
|
|
6414
|
-
var DTODeleteElementPropertyDefinitionInputV2 =
|
|
6415
|
-
id:
|
|
6417
|
+
var DTODeleteElementPropertyDefinitionInputV2 = z228.object({
|
|
6418
|
+
id: z228.string()
|
|
6416
6419
|
});
|
|
6417
6420
|
|
|
6418
6421
|
// src/api/dto/elements/properties/property-definitions-actions-v2.ts
|
|
6419
|
-
var SuccessPayload3 =
|
|
6420
|
-
success:
|
|
6422
|
+
var SuccessPayload3 = z229.object({
|
|
6423
|
+
success: z229.literal(true)
|
|
6421
6424
|
});
|
|
6422
|
-
var DTOPropertyDefinitionCreateActionOutputV2 =
|
|
6423
|
-
type:
|
|
6425
|
+
var DTOPropertyDefinitionCreateActionOutputV2 = z229.object({
|
|
6426
|
+
type: z229.literal("PropertyDefinitionCreate"),
|
|
6424
6427
|
definition: DTOElementPropertyDefinition
|
|
6425
6428
|
});
|
|
6426
|
-
var DTOPropertyDefinitionUpdateActionOutputV2 =
|
|
6427
|
-
type:
|
|
6429
|
+
var DTOPropertyDefinitionUpdateActionOutputV2 = z229.object({
|
|
6430
|
+
type: z229.literal("PropertyDefinitionUpdate"),
|
|
6428
6431
|
definition: DTOElementPropertyDefinition
|
|
6429
6432
|
});
|
|
6430
|
-
var DTOPropertyDefinitionDeleteActionOutputV2 =
|
|
6431
|
-
type:
|
|
6433
|
+
var DTOPropertyDefinitionDeleteActionOutputV2 = z229.object({
|
|
6434
|
+
type: z229.literal("PropertyDefinitionDelete"),
|
|
6432
6435
|
output: SuccessPayload3
|
|
6433
6436
|
});
|
|
6434
|
-
var DTOPropertyDefinitionCreateActionInputV2 =
|
|
6435
|
-
type:
|
|
6437
|
+
var DTOPropertyDefinitionCreateActionInputV2 = z229.object({
|
|
6438
|
+
type: z229.literal("PropertyDefinitionCreate"),
|
|
6436
6439
|
input: DTOCreateElementPropertyDefinitionInputV2
|
|
6437
6440
|
});
|
|
6438
|
-
var DTOPropertyDefinitionUpdateActionInputV2 =
|
|
6439
|
-
type:
|
|
6441
|
+
var DTOPropertyDefinitionUpdateActionInputV2 = z229.object({
|
|
6442
|
+
type: z229.literal("PropertyDefinitionUpdate"),
|
|
6440
6443
|
input: DTOUpdateElementPropertyDefinitionInputV2
|
|
6441
6444
|
});
|
|
6442
|
-
var DTOPropertyDefinitionDeleteActionInputV2 =
|
|
6443
|
-
type:
|
|
6445
|
+
var DTOPropertyDefinitionDeleteActionInputV2 = z229.object({
|
|
6446
|
+
type: z229.literal("PropertyDefinitionDelete"),
|
|
6444
6447
|
input: DTODeleteElementPropertyDefinitionInputV2
|
|
6445
6448
|
});
|
|
6446
6449
|
|
|
6447
6450
|
// src/api/dto/elements/properties/property-values.ts
|
|
6448
|
-
import { z as
|
|
6449
|
-
var DTOElementPropertyValue =
|
|
6450
|
-
id:
|
|
6451
|
-
designSystemVersionId:
|
|
6452
|
-
definitionId:
|
|
6453
|
-
targetElementId:
|
|
6454
|
-
value:
|
|
6455
|
-
valuePreview:
|
|
6451
|
+
import { z as z230 } from "zod";
|
|
6452
|
+
var DTOElementPropertyValue = z230.object({
|
|
6453
|
+
id: z230.string(),
|
|
6454
|
+
designSystemVersionId: z230.string(),
|
|
6455
|
+
definitionId: z230.string(),
|
|
6456
|
+
targetElementId: z230.string(),
|
|
6457
|
+
value: z230.union([z230.string(), z230.number(), z230.boolean()]).optional(),
|
|
6458
|
+
valuePreview: z230.string().optional()
|
|
6456
6459
|
});
|
|
6457
|
-
var DTOElementPropertyValuesGetResponse =
|
|
6458
|
-
values:
|
|
6460
|
+
var DTOElementPropertyValuesGetResponse = z230.object({
|
|
6461
|
+
values: z230.array(DTOElementPropertyValue)
|
|
6459
6462
|
});
|
|
6460
6463
|
|
|
6461
6464
|
// src/api/dto/elements/elements-action-v2.ts
|
|
6462
|
-
import { z as
|
|
6463
|
-
var DTOElementActionOutput =
|
|
6465
|
+
import { z as z231 } from "zod";
|
|
6466
|
+
var DTOElementActionOutput = z231.discriminatedUnion("type", [
|
|
6464
6467
|
// Documentation pages
|
|
6465
6468
|
DTODocumentationPageCreateActionOutputV2,
|
|
6466
6469
|
DTODocumentationPageUpdateActionOutputV2,
|
|
@@ -6487,7 +6490,7 @@ var DTOElementActionOutput = z230.discriminatedUnion("type", [
|
|
|
6487
6490
|
// Approvals
|
|
6488
6491
|
DTODocumentationPageApprovalStateChangeActionOutput
|
|
6489
6492
|
]);
|
|
6490
|
-
var DTOElementActionInput =
|
|
6493
|
+
var DTOElementActionInput = z231.discriminatedUnion("type", [
|
|
6491
6494
|
// Documentation pages
|
|
6492
6495
|
DTODocumentationPageCreateActionInputV2,
|
|
6493
6496
|
DTODocumentationPageUpdateActionInputV2,
|
|
@@ -6516,60 +6519,60 @@ var DTOElementActionInput = z230.discriminatedUnion("type", [
|
|
|
6516
6519
|
]);
|
|
6517
6520
|
|
|
6518
6521
|
// src/api/dto/elements/get-elements-v2.ts
|
|
6519
|
-
import { z as
|
|
6520
|
-
var DTOElementsGetTypeFilter =
|
|
6521
|
-
var DTOElementsGetQuerySchema =
|
|
6522
|
-
types:
|
|
6522
|
+
import { z as z232 } from "zod";
|
|
6523
|
+
var DTOElementsGetTypeFilter = z232.enum(["FigmaNode"]);
|
|
6524
|
+
var DTOElementsGetQuerySchema = z232.object({
|
|
6525
|
+
types: z232.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
6523
6526
|
});
|
|
6524
|
-
var DTOElementsGetOutput =
|
|
6525
|
-
figmaNodes:
|
|
6527
|
+
var DTOElementsGetOutput = z232.object({
|
|
6528
|
+
figmaNodes: z232.array(DTOFigmaNode).optional()
|
|
6526
6529
|
});
|
|
6527
6530
|
|
|
6528
6531
|
// src/api/dto/figma-components/assets/download.ts
|
|
6529
|
-
import { z as
|
|
6530
|
-
var DTOAssetRenderConfiguration =
|
|
6531
|
-
prefix:
|
|
6532
|
-
suffix:
|
|
6533
|
-
scale:
|
|
6534
|
-
format:
|
|
6535
|
-
});
|
|
6536
|
-
var DTORenderedAssetFile =
|
|
6537
|
-
assetId:
|
|
6538
|
-
fileName:
|
|
6539
|
-
sourceUrl:
|
|
6532
|
+
import { z as z233 } from "zod";
|
|
6533
|
+
var DTOAssetRenderConfiguration = z233.object({
|
|
6534
|
+
prefix: z233.string().optional(),
|
|
6535
|
+
suffix: z233.string().optional(),
|
|
6536
|
+
scale: z233.enum(["x1", "x2", "x3", "x4"]),
|
|
6537
|
+
format: z233.enum(["png", "pdf", "svg"])
|
|
6538
|
+
});
|
|
6539
|
+
var DTORenderedAssetFile = z233.object({
|
|
6540
|
+
assetId: z233.string(),
|
|
6541
|
+
fileName: z233.string(),
|
|
6542
|
+
sourceUrl: z233.string(),
|
|
6540
6543
|
settings: DTOAssetRenderConfiguration,
|
|
6541
|
-
originalName:
|
|
6544
|
+
originalName: z233.string()
|
|
6542
6545
|
});
|
|
6543
|
-
var DTODownloadAssetsRequest =
|
|
6544
|
-
persistentIds:
|
|
6546
|
+
var DTODownloadAssetsRequest = z233.object({
|
|
6547
|
+
persistentIds: z233.array(z233.string().uuid()).optional(),
|
|
6545
6548
|
settings: DTOAssetRenderConfiguration.array()
|
|
6546
6549
|
});
|
|
6547
|
-
var DTODownloadAssetsResponse =
|
|
6550
|
+
var DTODownloadAssetsResponse = z233.object({
|
|
6548
6551
|
items: DTORenderedAssetFile.array()
|
|
6549
6552
|
});
|
|
6550
6553
|
|
|
6551
6554
|
// src/api/dto/liveblocks/auth-response.ts
|
|
6552
|
-
import { z as
|
|
6553
|
-
var DTOLiveblocksAuthResponse =
|
|
6554
|
-
token:
|
|
6555
|
+
import { z as z234 } from "zod";
|
|
6556
|
+
var DTOLiveblocksAuthResponse = z234.object({
|
|
6557
|
+
token: z234.string()
|
|
6555
6558
|
});
|
|
6556
6559
|
|
|
6557
6560
|
// src/api/dto/users/authenticated-user.ts
|
|
6558
|
-
import { z as
|
|
6561
|
+
import { z as z236 } from "zod";
|
|
6559
6562
|
|
|
6560
6563
|
// src/api/dto/users/user.ts
|
|
6561
|
-
import { z as
|
|
6562
|
-
var DTOUserProfile =
|
|
6563
|
-
name:
|
|
6564
|
-
nickname:
|
|
6565
|
-
avatar:
|
|
6566
|
-
});
|
|
6567
|
-
var DTOUser =
|
|
6568
|
-
id:
|
|
6569
|
-
email:
|
|
6564
|
+
import { z as z235 } from "zod";
|
|
6565
|
+
var DTOUserProfile = z235.object({
|
|
6566
|
+
name: z235.string(),
|
|
6567
|
+
nickname: z235.string().optional(),
|
|
6568
|
+
avatar: z235.string().optional()
|
|
6569
|
+
});
|
|
6570
|
+
var DTOUser = z235.object({
|
|
6571
|
+
id: z235.string(),
|
|
6572
|
+
email: z235.string(),
|
|
6570
6573
|
profile: DTOUserProfile
|
|
6571
6574
|
});
|
|
6572
|
-
var DTOUserGetResponse =
|
|
6575
|
+
var DTOUserGetResponse = z235.object({
|
|
6573
6576
|
user: DTOUser
|
|
6574
6577
|
});
|
|
6575
6578
|
var DTOUserProfileUpdate = UserProfileUpdate;
|
|
@@ -6578,39 +6581,39 @@ var DTOUserProfileUpdate = UserProfileUpdate;
|
|
|
6578
6581
|
var DTOUserOnboardingDepartment = UserOnboardingDepartment;
|
|
6579
6582
|
var DTOUserOnboardingJobLevel = UserOnboardingJobLevel;
|
|
6580
6583
|
var DTOUserSource = UserSource;
|
|
6581
|
-
var DTOUserOnboarding =
|
|
6582
|
-
companyName:
|
|
6583
|
-
numberOfPeopleInOrg:
|
|
6584
|
-
numberOfPeopleInDesignTeam:
|
|
6584
|
+
var DTOUserOnboarding = z236.object({
|
|
6585
|
+
companyName: z236.string().optional(),
|
|
6586
|
+
numberOfPeopleInOrg: z236.string().optional(),
|
|
6587
|
+
numberOfPeopleInDesignTeam: z236.string().optional(),
|
|
6585
6588
|
department: DTOUserOnboardingDepartment.optional(),
|
|
6586
|
-
jobTitle:
|
|
6587
|
-
phase:
|
|
6589
|
+
jobTitle: z236.string().optional(),
|
|
6590
|
+
phase: z236.string().optional(),
|
|
6588
6591
|
jobLevel: DTOUserOnboardingJobLevel.optional(),
|
|
6589
|
-
designSystemName:
|
|
6590
|
-
defaultDestination:
|
|
6591
|
-
isPageDraftOnboardingFinished:
|
|
6592
|
+
designSystemName: z236.string().optional(),
|
|
6593
|
+
defaultDestination: z236.string().optional(),
|
|
6594
|
+
isPageDraftOnboardingFinished: z236.boolean().optional()
|
|
6592
6595
|
});
|
|
6593
6596
|
var DTOAuthenticatedUserProfile = DTOUserProfile.extend({
|
|
6594
6597
|
onboarding: DTOUserOnboarding.optional()
|
|
6595
6598
|
});
|
|
6596
6599
|
var DTOAuthenticatedUser = DTOUser.extend({
|
|
6597
6600
|
profile: DTOAuthenticatedUserProfile,
|
|
6598
|
-
createdAt:
|
|
6599
|
-
loggedOutAt:
|
|
6601
|
+
createdAt: z236.coerce.date(),
|
|
6602
|
+
loggedOutAt: z236.coerce.date().optional(),
|
|
6600
6603
|
source: DTOUserSource.optional()
|
|
6601
6604
|
});
|
|
6602
|
-
var DTOAuthenticatedUserResponse =
|
|
6605
|
+
var DTOAuthenticatedUserResponse = z236.object({
|
|
6603
6606
|
user: DTOAuthenticatedUser
|
|
6604
6607
|
});
|
|
6605
6608
|
|
|
6606
6609
|
// src/api/dto/users/update.ts
|
|
6607
|
-
import { z as
|
|
6608
|
-
var DTOUserProfileUpdateResponse =
|
|
6610
|
+
import { z as z237 } from "zod";
|
|
6611
|
+
var DTOUserProfileUpdateResponse = z237.object({
|
|
6609
6612
|
user: User
|
|
6610
6613
|
});
|
|
6611
6614
|
|
|
6612
6615
|
// src/api/endpoints/design-system/versions/brands.ts
|
|
6613
|
-
import { z as
|
|
6616
|
+
import { z as z238 } from "zod";
|
|
6614
6617
|
var BrandsEndpoint = class {
|
|
6615
6618
|
constructor(requestExecutor) {
|
|
6616
6619
|
this.requestExecutor = requestExecutor;
|
|
@@ -6618,16 +6621,16 @@ var BrandsEndpoint = class {
|
|
|
6618
6621
|
get(designSystemId, versionId, brandId) {
|
|
6619
6622
|
return this.requestExecutor.json(
|
|
6620
6623
|
`/design-systems/${designSystemId}/versions/${versionId}/brands/${brandId}`,
|
|
6621
|
-
|
|
6624
|
+
z238.any()
|
|
6622
6625
|
);
|
|
6623
6626
|
}
|
|
6624
6627
|
list(designSystemId, versionId) {
|
|
6625
|
-
return this.requestExecutor.json(`/design-systems/${designSystemId}/versions/${versionId}/brands`,
|
|
6628
|
+
return this.requestExecutor.json(`/design-systems/${designSystemId}/versions/${versionId}/brands`, z238.any());
|
|
6626
6629
|
}
|
|
6627
6630
|
};
|
|
6628
6631
|
|
|
6629
6632
|
// src/api/endpoints/design-system/versions/overrides.ts
|
|
6630
|
-
import { z as
|
|
6633
|
+
import { z as z239 } from "zod";
|
|
6631
6634
|
var OverridesEndpoint = class {
|
|
6632
6635
|
constructor(requestExecutor) {
|
|
6633
6636
|
this.requestExecutor = requestExecutor;
|
|
@@ -6635,7 +6638,7 @@ var OverridesEndpoint = class {
|
|
|
6635
6638
|
create(dsId, versionId, themeId, body) {
|
|
6636
6639
|
return this.requestExecutor.json(
|
|
6637
6640
|
`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}/overrides`,
|
|
6638
|
-
|
|
6641
|
+
z239.any(),
|
|
6639
6642
|
{
|
|
6640
6643
|
method: "POST",
|
|
6641
6644
|
body
|
|
@@ -6657,7 +6660,7 @@ var VersionStatsEndpoint = class {
|
|
|
6657
6660
|
};
|
|
6658
6661
|
|
|
6659
6662
|
// src/api/endpoints/design-system/versions/themes.ts
|
|
6660
|
-
import { z as
|
|
6663
|
+
import { z as z240 } from "zod";
|
|
6661
6664
|
var ThemesEndpoint = class {
|
|
6662
6665
|
constructor(requestExecutor) {
|
|
6663
6666
|
this.requestExecutor = requestExecutor;
|
|
@@ -6665,26 +6668,26 @@ var ThemesEndpoint = class {
|
|
|
6665
6668
|
this.overrides = new OverridesEndpoint(requestExecutor);
|
|
6666
6669
|
}
|
|
6667
6670
|
create(dsId, versionId, body) {
|
|
6668
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`,
|
|
6671
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes`, z240.any(), {
|
|
6669
6672
|
method: "POST",
|
|
6670
6673
|
body
|
|
6671
6674
|
});
|
|
6672
6675
|
}
|
|
6673
6676
|
delete(dsId, versionId, themeId) {
|
|
6674
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`,
|
|
6677
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/themes/${themeId}`, z240.any(), {
|
|
6675
6678
|
method: "DELETE"
|
|
6676
6679
|
});
|
|
6677
6680
|
}
|
|
6678
6681
|
};
|
|
6679
6682
|
|
|
6680
6683
|
// src/api/endpoints/design-system/versions/tokens.ts
|
|
6681
|
-
import { z as
|
|
6684
|
+
import { z as z241 } from "zod";
|
|
6682
6685
|
var TokensEndpoint = class {
|
|
6683
6686
|
constructor(requestExecutor) {
|
|
6684
6687
|
this.requestExecutor = requestExecutor;
|
|
6685
6688
|
}
|
|
6686
6689
|
create(dsId, versionId, body) {
|
|
6687
|
-
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`,
|
|
6690
|
+
return this.requestExecutor.json(`/design-systems/${dsId}/versions/${versionId}/tokens`, z241.any(), {
|
|
6688
6691
|
method: "POST",
|
|
6689
6692
|
body
|
|
6690
6693
|
});
|
|
@@ -6728,7 +6731,7 @@ var DesignSystemVersionsEndpoint = class {
|
|
|
6728
6731
|
};
|
|
6729
6732
|
|
|
6730
6733
|
// src/api/endpoints/design-system/design-systems.ts
|
|
6731
|
-
import { z as
|
|
6734
|
+
import { z as z242 } from "zod";
|
|
6732
6735
|
var DesignSystemsEndpoint = class {
|
|
6733
6736
|
constructor(requestExecutor) {
|
|
6734
6737
|
this.requestExecutor = requestExecutor;
|
|
@@ -6744,10 +6747,10 @@ var DesignSystemsEndpoint = class {
|
|
|
6744
6747
|
return this.requestExecutor.json(`/workspaces/${wsId}/design-systems`, DTODesignSystemsListResponse);
|
|
6745
6748
|
}
|
|
6746
6749
|
get(dsId) {
|
|
6747
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6750
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z242.any());
|
|
6748
6751
|
}
|
|
6749
6752
|
delete(dsId) {
|
|
6750
|
-
return this.requestExecutor.json(`/design-systems/${dsId}`,
|
|
6753
|
+
return this.requestExecutor.json(`/design-systems/${dsId}`, z242.any(), { method: "DELETE" });
|
|
6751
6754
|
}
|
|
6752
6755
|
update(dsId, body) {
|
|
6753
6756
|
return this.requestExecutor.json(`/design-systems/${dsId}`, DTODesignSystemResponse, {
|
|
@@ -6781,7 +6784,7 @@ var WorkspaceInvitationsEndpoint = class {
|
|
|
6781
6784
|
};
|
|
6782
6785
|
|
|
6783
6786
|
// src/api/endpoints/workspaces/workspace-members.ts
|
|
6784
|
-
import { z as
|
|
6787
|
+
import { z as z243 } from "zod";
|
|
6785
6788
|
var WorkspaceMembersEndpoint = class {
|
|
6786
6789
|
constructor(requestExecutor) {
|
|
6787
6790
|
this.requestExecutor = requestExecutor;
|
|
@@ -6798,7 +6801,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6798
6801
|
});
|
|
6799
6802
|
}
|
|
6800
6803
|
invite(workspaceId, body) {
|
|
6801
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`,
|
|
6804
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/members`, z243.any(), { method: "POST", body });
|
|
6802
6805
|
}
|
|
6803
6806
|
delete(workspaceId, userId) {
|
|
6804
6807
|
return this.requestExecutor.json(`/workspaces/${workspaceId}/members/${userId}`, DTOWorkspaceResponse, {
|
|
@@ -6808,7 +6811,7 @@ var WorkspaceMembersEndpoint = class {
|
|
|
6808
6811
|
};
|
|
6809
6812
|
|
|
6810
6813
|
// src/api/endpoints/workspaces/workspaces.ts
|
|
6811
|
-
import { z as
|
|
6814
|
+
import { z as z244 } from "zod";
|
|
6812
6815
|
var WorkspacesEndpoint = class {
|
|
6813
6816
|
constructor(requestExecutor) {
|
|
6814
6817
|
this.requestExecutor = requestExecutor;
|
|
@@ -6828,10 +6831,10 @@ var WorkspacesEndpoint = class {
|
|
|
6828
6831
|
});
|
|
6829
6832
|
}
|
|
6830
6833
|
delete(workspaceId) {
|
|
6831
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}`,
|
|
6834
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}`, z244.any(), { method: "DELETE" });
|
|
6832
6835
|
}
|
|
6833
6836
|
subscription(workspaceId) {
|
|
6834
|
-
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`,
|
|
6837
|
+
return this.requestExecutor.json(`/workspaces/${workspaceId}/subscription`, z244.any(), { method: "GET" });
|
|
6835
6838
|
}
|
|
6836
6839
|
};
|
|
6837
6840
|
|
|
@@ -6925,9 +6928,9 @@ ${bodyText}`,
|
|
|
6925
6928
|
|
|
6926
6929
|
// src/api/transport/request-executor.ts
|
|
6927
6930
|
import fetch from "node-fetch";
|
|
6928
|
-
import { z as
|
|
6929
|
-
var ResponseWrapper =
|
|
6930
|
-
result:
|
|
6931
|
+
import { z as z245 } from "zod";
|
|
6932
|
+
var ResponseWrapper = z245.object({
|
|
6933
|
+
result: z245.record(z245.any())
|
|
6931
6934
|
});
|
|
6932
6935
|
var RequestExecutor = class {
|
|
6933
6936
|
constructor(testServerConfig) {
|
|
@@ -7053,7 +7056,7 @@ function generateHash(input, debug = false) {
|
|
|
7053
7056
|
}
|
|
7054
7057
|
|
|
7055
7058
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7056
|
-
import { z as
|
|
7059
|
+
import { z as z246 } from "zod";
|
|
7057
7060
|
|
|
7058
7061
|
// src/yjs/version-room/base.ts
|
|
7059
7062
|
var VersionRoomBaseYDoc = class {
|
|
@@ -7583,24 +7586,24 @@ var FrontendVersionRoomYDoc = class {
|
|
|
7583
7586
|
};
|
|
7584
7587
|
|
|
7585
7588
|
// src/yjs/design-system-content/documentation-hierarchy.ts
|
|
7586
|
-
var DocumentationHierarchySettings =
|
|
7587
|
-
routingVersion:
|
|
7588
|
-
isDraftFeatureAdopted:
|
|
7589
|
-
isApprovalFeatureEnabled:
|
|
7590
|
-
approvalRequiredForPublishing:
|
|
7589
|
+
var DocumentationHierarchySettings = z246.object({
|
|
7590
|
+
routingVersion: z246.string(),
|
|
7591
|
+
isDraftFeatureAdopted: z246.boolean(),
|
|
7592
|
+
isApprovalFeatureEnabled: z246.boolean(),
|
|
7593
|
+
approvalRequiredForPublishing: z246.boolean()
|
|
7591
7594
|
});
|
|
7592
7595
|
function yjsToDocumentationHierarchy(doc) {
|
|
7593
7596
|
return new FrontendVersionRoomYDoc(doc).getDocumentationHierarchy();
|
|
7594
7597
|
}
|
|
7595
7598
|
|
|
7596
7599
|
// src/yjs/design-system-content/item-configuration.ts
|
|
7597
|
-
import { z as
|
|
7598
|
-
var DTODocumentationPageRoomHeaderData =
|
|
7599
|
-
title:
|
|
7600
|
+
import { z as z247 } from "zod";
|
|
7601
|
+
var DTODocumentationPageRoomHeaderData = z247.object({
|
|
7602
|
+
title: z247.string(),
|
|
7600
7603
|
configuration: DTODocumentationItemConfigurationV2
|
|
7601
7604
|
});
|
|
7602
|
-
var DTODocumentationPageRoomHeaderDataUpdate =
|
|
7603
|
-
title:
|
|
7605
|
+
var DTODocumentationPageRoomHeaderDataUpdate = z247.object({
|
|
7606
|
+
title: z247.string().optional(),
|
|
7604
7607
|
configuration: DTODocumentationItemConfigurationV2.omit({ header: true }).extend({ header: DocumentationItemHeaderV2.partial() }).optional()
|
|
7605
7608
|
});
|
|
7606
7609
|
function itemConfigurationToYjs(yDoc, item) {
|
|
@@ -7651,7 +7654,7 @@ function yjsToItemConfiguration(yDoc) {
|
|
|
7651
7654
|
header: rawHeader
|
|
7652
7655
|
};
|
|
7653
7656
|
return {
|
|
7654
|
-
title:
|
|
7657
|
+
title: z247.string().parse(title),
|
|
7655
7658
|
configuration: DTODocumentationItemConfigurationV2.parse(rawConfig)
|
|
7656
7659
|
};
|
|
7657
7660
|
}
|
|
@@ -7661,9 +7664,9 @@ var PageBlockEditorModel = PageBlockEditorModelV2;
|
|
|
7661
7664
|
var PageSectionEditorModel = PageSectionEditorModelV2;
|
|
7662
7665
|
|
|
7663
7666
|
// src/yjs/docs-editor/model/page.ts
|
|
7664
|
-
import { z as
|
|
7665
|
-
var DocumentationPageEditorModel =
|
|
7666
|
-
blocks:
|
|
7667
|
+
import { z as z248 } from "zod";
|
|
7668
|
+
var DocumentationPageEditorModel = z248.object({
|
|
7669
|
+
blocks: z248.array(DocumentationPageContentItem)
|
|
7667
7670
|
});
|
|
7668
7671
|
|
|
7669
7672
|
// src/yjs/docs-editor/prosemirror/inner-editor-schema.ts
|
|
@@ -11183,7 +11186,7 @@ var blocks = [
|
|
|
11183
11186
|
|
|
11184
11187
|
// src/yjs/docs-editor/prosemirror-to-blocks.ts
|
|
11185
11188
|
import { yXmlFragmentToProsemirrorJSON } from "y-prosemirror";
|
|
11186
|
-
import { z as
|
|
11189
|
+
import { z as z249 } from "zod";
|
|
11187
11190
|
function yDocToPage(yDoc, definitions) {
|
|
11188
11191
|
return yXmlFragmentToPage(yDoc.getXmlFragment("default"), definitions);
|
|
11189
11192
|
}
|
|
@@ -11263,7 +11266,7 @@ function prosemirrorNodeToSectionItem(prosemirrorNode, definitionsMap) {
|
|
|
11263
11266
|
return null;
|
|
11264
11267
|
return {
|
|
11265
11268
|
id,
|
|
11266
|
-
title: getProsemirrorAttribute(prosemirrorNode, "title",
|
|
11269
|
+
title: getProsemirrorAttribute(prosemirrorNode, "title", z249.string()) ?? "",
|
|
11267
11270
|
columns: (prosemirrorNode.content ?? []).filter((c) => c.type === "sectionItemColumn").map((c) => prosemirrorNodeToSectionColumns(c, definitionsMap)).filter(nonNullFilter)
|
|
11268
11271
|
};
|
|
11269
11272
|
}
|
|
@@ -11298,7 +11301,7 @@ function internalProsemirrorNodesToBlocks(prosemirrorNodes, definitionsMap, dept
|
|
|
11298
11301
|
});
|
|
11299
11302
|
}
|
|
11300
11303
|
function internalProsemirrorNodeToBlock(prosemirrorNode, definitionsMap, depth) {
|
|
11301
|
-
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId",
|
|
11304
|
+
const definitionId = getProsemirrorAttribute(prosemirrorNode, "definitionId", z249.string());
|
|
11302
11305
|
if (!definitionId) {
|
|
11303
11306
|
console.warn(`definitionId on ${prosemirrorNode.type} is required to be interpreted as a block, skipping node`);
|
|
11304
11307
|
return [];
|
|
@@ -11340,7 +11343,7 @@ function parseAsRichText(prosemirrorNode, definition, property) {
|
|
|
11340
11343
|
if (!id)
|
|
11341
11344
|
return null;
|
|
11342
11345
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11343
|
-
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type",
|
|
11346
|
+
const calloutType = parseCalloutType(getProsemirrorAttribute(prosemirrorNode, "type", z249.string().optional()));
|
|
11344
11347
|
return {
|
|
11345
11348
|
id,
|
|
11346
11349
|
type: "Block",
|
|
@@ -11468,10 +11471,10 @@ function parseRichTextAttribute(mark) {
|
|
|
11468
11471
|
return null;
|
|
11469
11472
|
}
|
|
11470
11473
|
function parseProsemirrorLink(mark) {
|
|
11471
|
-
const href = getProsemirrorAttribute(mark, "href",
|
|
11474
|
+
const href = getProsemirrorAttribute(mark, "href", z249.string().optional());
|
|
11472
11475
|
if (!href)
|
|
11473
11476
|
return null;
|
|
11474
|
-
const target = getProsemirrorAttribute(mark, "target",
|
|
11477
|
+
const target = getProsemirrorAttribute(mark, "target", z249.string().optional());
|
|
11475
11478
|
const openInNewTab = target === "_blank";
|
|
11476
11479
|
if (href.startsWith("@")) {
|
|
11477
11480
|
return {
|
|
@@ -11490,10 +11493,10 @@ function parseProsemirrorLink(mark) {
|
|
|
11490
11493
|
}
|
|
11491
11494
|
}
|
|
11492
11495
|
function parseProsemirrorCommentHighlight(mark) {
|
|
11493
|
-
const highlightId = getProsemirrorAttribute(mark, "highlightId",
|
|
11496
|
+
const highlightId = getProsemirrorAttribute(mark, "highlightId", z249.string().optional());
|
|
11494
11497
|
if (!highlightId)
|
|
11495
11498
|
return null;
|
|
11496
|
-
const isResolved = getProsemirrorAttribute(mark, "resolved",
|
|
11499
|
+
const isResolved = getProsemirrorAttribute(mark, "resolved", z249.boolean().optional()) ?? false;
|
|
11497
11500
|
return {
|
|
11498
11501
|
type: "Comment",
|
|
11499
11502
|
commentHighlightId: highlightId,
|
|
@@ -11505,7 +11508,7 @@ function parseAsTable(prosemirrorNode, definition, property) {
|
|
|
11505
11508
|
if (!id)
|
|
11506
11509
|
return null;
|
|
11507
11510
|
const variantId = getProsemirrorBlockVariantId(prosemirrorNode);
|
|
11508
|
-
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder",
|
|
11511
|
+
const hasBorder = getProsemirrorAttribute(prosemirrorNode, "hasBorder", z249.boolean().optional()) !== false;
|
|
11509
11512
|
const tableChild = prosemirrorNode.content?.find((c) => c.type === "table");
|
|
11510
11513
|
if (!tableChild) {
|
|
11511
11514
|
return emptyTable(id, variantId, 0);
|
|
@@ -11552,9 +11555,9 @@ function parseAsTableCell(prosemirrorNode) {
|
|
|
11552
11555
|
const id = getProsemirrorBlockId(prosemirrorNode);
|
|
11553
11556
|
if (!id)
|
|
11554
11557
|
return null;
|
|
11555
|
-
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign",
|
|
11558
|
+
const textAlign = getProsemirrorAttribute(prosemirrorNode, "textAlign", z249.string().optional());
|
|
11556
11559
|
let columnWidth;
|
|
11557
|
-
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth",
|
|
11560
|
+
const columnWidthArray = getProsemirrorAttribute(prosemirrorNode, "colwidth", z249.array(z249.number()).nullish());
|
|
11558
11561
|
if (columnWidthArray) {
|
|
11559
11562
|
columnWidth = roundDimension(columnWidthArray[0]);
|
|
11560
11563
|
}
|
|
@@ -11592,7 +11595,7 @@ function parseAsTableNode(prosemirrorNode) {
|
|
|
11592
11595
|
value: parseRichText(prosemirrorNode.content ?? [])
|
|
11593
11596
|
};
|
|
11594
11597
|
case "image":
|
|
11595
|
-
const items = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11598
|
+
const items = getProsemirrorAttribute(prosemirrorNode, "items", z249.string());
|
|
11596
11599
|
if (!items)
|
|
11597
11600
|
return null;
|
|
11598
11601
|
const parsedItems = PageBlockItemV2.array().safeParse(JSON.parse(items));
|
|
@@ -11712,7 +11715,7 @@ function definitionExpectsPlaceholderItem(definition) {
|
|
|
11712
11715
|
);
|
|
11713
11716
|
}
|
|
11714
11717
|
function parseBlockItems(prosemirrorNode, definition) {
|
|
11715
|
-
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items",
|
|
11718
|
+
const itemsString = getProsemirrorAttribute(prosemirrorNode, "items", z249.string());
|
|
11716
11719
|
if (!itemsString)
|
|
11717
11720
|
return null;
|
|
11718
11721
|
const itemsJson = JSON.parse(itemsString);
|
|
@@ -11724,18 +11727,18 @@ function parseBlockItems(prosemirrorNode, definition) {
|
|
|
11724
11727
|
}
|
|
11725
11728
|
function parseAppearance(prosemirrorNode) {
|
|
11726
11729
|
let appearance = {};
|
|
11727
|
-
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance",
|
|
11730
|
+
const rawAppearanceString = getProsemirrorAttribute(prosemirrorNode, "appearance", z249.string().optional());
|
|
11728
11731
|
if (rawAppearanceString) {
|
|
11729
11732
|
const parsedAppearance = PageBlockAppearanceV2.safeParse(JSON.parse(rawAppearanceString));
|
|
11730
11733
|
if (parsedAppearance.success) {
|
|
11731
11734
|
appearance = parsedAppearance.data;
|
|
11732
11735
|
}
|
|
11733
11736
|
}
|
|
11734
|
-
const columns = getProsemirrorAttribute(prosemirrorNode, "columns",
|
|
11737
|
+
const columns = getProsemirrorAttribute(prosemirrorNode, "columns", z249.number().optional());
|
|
11735
11738
|
if (columns) {
|
|
11736
11739
|
appearance.numberOfColumns = columns;
|
|
11737
11740
|
}
|
|
11738
|
-
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor",
|
|
11741
|
+
const backgroundColor = getProsemirrorAttribute(prosemirrorNode, "backgroundColor", z249.string().optional());
|
|
11739
11742
|
if (backgroundColor) {
|
|
11740
11743
|
const parsedColor = PageBlockColorV2.safeParse(JSON.parse(backgroundColor));
|
|
11741
11744
|
if (parsedColor.success) {
|
|
@@ -11830,13 +11833,13 @@ function valueSchemaForPropertyType(type) {
|
|
|
11830
11833
|
}
|
|
11831
11834
|
}
|
|
11832
11835
|
function getProsemirrorBlockId(prosemirrorNode) {
|
|
11833
|
-
const id = getProsemirrorAttribute(prosemirrorNode, "id",
|
|
11836
|
+
const id = getProsemirrorAttribute(prosemirrorNode, "id", z249.string());
|
|
11834
11837
|
if (!id)
|
|
11835
11838
|
console.warn(`Prosemirror attribute "id" on ${prosemirrorNode.type} is required`);
|
|
11836
11839
|
return id;
|
|
11837
11840
|
}
|
|
11838
11841
|
function getProsemirrorBlockVariantId(prosemirrorNode) {
|
|
11839
|
-
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(
|
|
11842
|
+
return getProsemirrorAttribute(prosemirrorNode, "variantId", nullishToOptional(z249.string()));
|
|
11840
11843
|
}
|
|
11841
11844
|
function getProsemirrorAttribute(prosemirrorNode, attributeName, validationSchema) {
|
|
11842
11845
|
const parsedAttr = validationSchema.safeParse(prosemirrorNode.attrs?.[attributeName]);
|