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