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